Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion dist/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ function bounded(data: Record<string, unknown>, 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) {
Expand Down
2 changes: 1 addition & 1 deletion src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
Loading