@asterism-app/builtin-api 0.26.0 → 0.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/tools.ts +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asterism-app/builtin-api",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
4
4
  "description": "Public domain contracts and extensions for Asterism built-in features",
5
5
  "license": "MIT",
6
6
  "author": "Chien Zhang",
package/src/tools.ts CHANGED
@@ -113,12 +113,13 @@ export const See = defineTool({
113
113
  export const Wait = defineTool({
114
114
  id: builtin.name("tool.wait"),
115
115
  name: "wait",
116
- description: "Wait until a resource reaches its resting state, up to a timeout.",
116
+ description: "Wait until a resource reaches its resting state, with an optional timeout.",
117
117
  guidelines: [
118
118
  "The resource implementation defines its resting state. A resource already at rest returns immediately.",
119
+ "Normally omit timeout and wait for completion or cancellation. Specify it only when the task has an explicit time limit.",
119
120
  "Timeout or cancellation ends only the wait; the resource continues its own work. The result reports the observed state.",
120
121
  ],
121
122
  argsSchema: z.strictObject({
122
- timeout: z.number().positive().max(2147483).describe("Maximum wait in seconds."),
123
- }).describe("A bounded wait."),
123
+ timeout: z.number().positive().max(2147483).optional().describe("Optional maximum wait in seconds; omitted means no timeout."),
124
+ }).describe("Wait with an optional time limit."),
124
125
  });