diff --git a/dist/client.js b/dist/client.js index 1e9c9e0..c36ee2a 100644 --- a/dist/client.js +++ b/dist/client.js @@ -106,8 +106,8 @@ function bounded(data, field) { values.pop(); text = JSON.stringify({ ...value, - ace_truncated: true, - ace_omitted: source.length - values.length, + truncated: true, + omitted: source.length - values.length, }); } if (Buffer.byteLength(text) > MAX_TEXT) { diff --git a/dist/tools.js b/dist/tools.js index b2b4009..72b667b 100644 --- a/dist/tools.js +++ b/dist/tools.js @@ -193,7 +193,7 @@ export function desktopTools({ place, app }) { { name: "desktop_menus", op: "menus", - description: `Read one application's available menu structure using its exact target from desktop_apps. This sends no input or menu commands and does not activate the app; AX reads may populate lazy menus and trigger application callbacks. Optional path is 1 to 8 exact literal titles, selecting one observed menu or item and its descendants before returning content; missing or ambiguous paths are refused. Preserve punctuation and whitespace, with no splitting or normalization. The result is bound to the same process generation before and after the native read. Native results may come from a 2-second cache; their observation time and completeness are unknown, including lazy or budget-limited submenus. ${app} truncation counts are separate. Paths are literal title arrays for discovery, not reusable action targets. Enabled/checked state is omitted because the native service substitutes defaults for unavailable attributes. Native AX reads are synchronous and can delay cancellation or GUI responsiveness. No screenshot or input snapshot is returned.`, + description: `Read one application's available menu structure using its exact target from desktop_apps. This sends no input or menu commands and does not activate the app; AX reads may populate lazy menus and trigger application callbacks. Optional path is 1 to 8 exact literal titles, selecting one observed menu or item and its descendants before returning content; missing or ambiguous paths are refused. Preserve punctuation and whitespace, with no splitting or normalization. The result is bound to the same process generation before and after the native read. Native results may come from a 2-second cache; their observation time and completeness are unknown, including lazy or budget-limited submenus. Result truncation (truncated, omitted) is counted separately. Paths are literal title arrays for discovery, not reusable action targets. Enabled/checked state is omitted because the native service substitutes defaults for unavailable attributes. Native AX reads are synchronous and can delay cancellation or GUI responsiveness. No screenshot or input snapshot is returned.`, parameters: { type: "object", required: ["target"], diff --git a/src/client.ts b/src/client.ts index 6441d48..a1f7c4a 100644 --- a/src/client.ts +++ b/src/client.ts @@ -163,8 +163,8 @@ function bounded(data: Record, field: string): string { values.pop(); text = JSON.stringify({ ...value, - ace_truncated: true, - ace_omitted: source.length - values.length, + truncated: true, + omitted: source.length - values.length, }); } if (Buffer.byteLength(text) > MAX_TEXT) { diff --git a/src/tools.ts b/src/tools.ts index d905421..4830ba3 100644 --- a/src/tools.ts +++ b/src/tools.ts @@ -213,7 +213,7 @@ export function desktopTools({ place, app }: { place: string; app: string }): De name: "desktop_menus", op: "menus", description: - `Read one application's available menu structure using its exact target from desktop_apps. This sends no input or menu commands and does not activate the app; AX reads may populate lazy menus and trigger application callbacks. Optional path is 1 to 8 exact literal titles, selecting one observed menu or item and its descendants before returning content; missing or ambiguous paths are refused. Preserve punctuation and whitespace, with no splitting or normalization. The result is bound to the same process generation before and after the native read. Native results may come from a 2-second cache; their observation time and completeness are unknown, including lazy or budget-limited submenus. ${app} truncation counts are separate. Paths are literal title arrays for discovery, not reusable action targets. Enabled/checked state is omitted because the native service substitutes defaults for unavailable attributes. Native AX reads are synchronous and can delay cancellation or GUI responsiveness. No screenshot or input snapshot is returned.`, + `Read one application's available menu structure using its exact target from desktop_apps. This sends no input or menu commands and does not activate the app; AX reads may populate lazy menus and trigger application callbacks. Optional path is 1 to 8 exact literal titles, selecting one observed menu or item and its descendants before returning content; missing or ambiguous paths are refused. Preserve punctuation and whitespace, with no splitting or normalization. The result is bound to the same process generation before and after the native read. Native results may come from a 2-second cache; their observation time and completeness are unknown, including lazy or budget-limited submenus. Result truncation (truncated, omitted) is counted separately. Paths are literal title arrays for discovery, not reusable action targets. Enabled/checked state is omitted because the native service substitutes defaults for unavailable attributes. Native AX reads are synchronous and can delay cancellation or GUI responsiveness. No screenshot or input snapshot is returned.`, parameters: { type: "object", required: ["target"],