@opencode/schema 0.0.0-dev-1126 → 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.
@@ -66,6 +66,7 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
66
66
  readonly console_watches: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
67
67
  readonly media_blob: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
68
68
  readonly schedules: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
69
+ readonly shell_timeout_background: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
69
70
  readonly todo: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
70
71
  }>, {}>;
71
72
  export declare class Info extends Info_base {
@@ -13,6 +13,7 @@ export declare const registry: {
13
13
  readonly schedules: "Enable experimental scheduled tasks that wake a session with a prompt.";
14
14
  readonly artifacts: "Enable experimental artifacts backed by pluggable providers.";
15
15
  readonly codemode_vm: "Run the Code Mode execute tool on the experimental bytecode VM instead of the legacy interpreter.";
16
+ readonly shell_timeout_background: "Move foreground shell commands to the background when their timeout expires.";
16
17
  readonly console_watches: "Watch Slack threads, GitHub pull requests, issues, commits and Actions runs, and the workspace's MCP servers' events through OpenCode Console, and wake sessions when they change.";
17
18
  };
18
19
  export type Key = keyof typeof registry;
@@ -13,5 +13,6 @@ export const registry = {
13
13
  schedules: "Enable experimental scheduled tasks that wake a session with a prompt.",
14
14
  artifacts: "Enable experimental artifacts backed by pluggable providers.",
15
15
  codemode_vm: "Run the Code Mode execute tool on the experimental bytecode VM instead of the legacy interpreter.",
16
+ shell_timeout_background: "Move foreground shell commands to the background when their timeout expires.",
16
17
  console_watches: "Watch Slack threads, GitHub pull requests, issues, commits and Actions runs, and the workspace's MCP servers' events through OpenCode Console, and wake sessions when they change.",
17
18
  };
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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/schema",
4
- "version": "0.0.0-dev-1126",
4
+ "version": "0.0.0-dev-1141",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {