@opencode/schema 0.0.0-dev-1136 → 0.0.0-dev-1141
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.
- package/dist/tool.d.ts +5 -0
- package/package.json +1 -1
package/dist/tool.d.ts
CHANGED
|
@@ -13,6 +13,11 @@ export interface Context {
|
|
|
13
13
|
readonly messageID: SessionMessage.ID;
|
|
14
14
|
readonly id: CallID;
|
|
15
15
|
readonly progress: (update: Metadata) => Effect.Effect<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Completes when the user asks the call to stop. A tool that awaits it can stop its work and fail with what it
|
|
18
|
+
* has; a tool that does not is interrupted.
|
|
19
|
+
*/
|
|
20
|
+
readonly cancel?: Effect.Effect<void>;
|
|
16
21
|
}
|
|
17
22
|
export interface Namespace {
|
|
18
23
|
readonly name: string;
|