@opencode-ai/protocol 0.0.0-next-17236 → 0.0.0-next-17247

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.
@@ -8533,7 +8533,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
8533
8533
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8534
8534
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8535
8535
  };
8536
- }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.background", "POST", "/api/session/:sessionID/background", Schema.toCodecStringTree<Schema.Struct<{
8536
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
8537
+ continue: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
8538
+ }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.background", "POST", "/api/session/:sessionID/background", Schema.toCodecStringTree<Schema.Struct<{
8537
8539
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
8538
8540
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8539
8541
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -476,6 +476,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
476
476
  })))
477
477
  .add(HttpApiEndpoint.post("session.interrupt", "/api/session/:sessionID/interrupt", {
478
478
  params: { sessionID: Session.ID },
479
+ query: { continue: BooleanFromString.pipe(Schema.optional) },
479
480
  success: HttpApiSchema.NoContent,
480
481
  error: SessionNotFoundError,
481
482
  })
@@ -483,7 +484,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
483
484
  .annotateMerge(OpenApi.annotations({
484
485
  identifier: "v2.session.interrupt",
485
486
  summary: "Interrupt session execution",
486
- description: "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op.",
487
+ description: "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op. When continue=true, execution resumes if durable pending work remains after interruption.",
487
488
  })))
488
489
  .add(HttpApiEndpoint.post("session.background", "/api/session/:sessionID/background", {
489
490
  params: { sessionID: Session.ID },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/protocol",
4
- "version": "0.0.0-next-17236",
4
+ "version": "0.0.0-next-17247",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "typecheck": "tsgo --noEmit"
29
29
  },
30
30
  "dependencies": {
31
- "@opencode-ai/schema": "0.0.0-next-17236",
31
+ "@opencode-ai/schema": "0.0.0-next-17247",
32
32
  "effect": "4.0.0-beta.101"
33
33
  },
34
34
  "devDependencies": {