@opencode/protocol 0.0.0-dev-19601 → 0.0.0-dev-19607

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.
@@ -3468,7 +3468,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3468
3468
  };
3469
3469
  readonly timeCreated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
3470
3470
  }>;
3471
- }>>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.wait", "POST", "/api/session/:sessionID/wait", Schema.toCodecStringTree<Schema.Struct<{
3471
+ }>>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.wait", "POST", "/api/experimental/session/:sessionID/wait", Schema.toCodecStringTree<Schema.Struct<{
3472
3472
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
3473
3473
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3474
3474
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -9898,7 +9898,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
9898
9898
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
9899
9899
  };
9900
9900
  }>>, Schema.toCodecStringTree<Schema.Struct<{
9901
- continue: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
9901
+ resume: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
9902
9902
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
9903
9903
  readonly interrupted: Schema.Boolean;
9904
9904
  }>>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.background", "POST", "/api/session/:sessionID/background", Schema.toCodecStringTree<Schema.Struct<{
@@ -362,14 +362,14 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
362
362
  summary: "Compact session",
363
363
  description: "Durably admit a session compaction request. Steers by default: it runs at the next step boundary instead of waiting behind queued prompts.",
364
364
  })))
365
- .add(HttpApiEndpoint.post("session.wait", "/api/session/:sessionID/wait", {
365
+ .add(HttpApiEndpoint.post("session.wait", "/api/experimental/session/:sessionID/wait", {
366
366
  params: { sessionID: Session.ID },
367
367
  success: HttpApiSchema.NoContent,
368
368
  error: [SessionNotFoundError, ServiceUnavailableError],
369
369
  })
370
370
  .middleware(sessionLocationMiddleware)
371
371
  .annotateMerge(OpenApi.annotations({
372
- identifier: "session.wait",
372
+ identifier: "experimental.session.wait",
373
373
  summary: "Wait for session",
374
374
  description: "Wait for a session agent loop to become idle.",
375
375
  })))
@@ -529,7 +529,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
529
529
  })))
530
530
  .add(HttpApiEndpoint.post("session.interrupt", "/api/session/:sessionID/interrupt", {
531
531
  params: { sessionID: Session.ID },
532
- query: { continue: BooleanFromString.pipe(Schema.optional) },
532
+ query: { resume: BooleanFromString.pipe(Schema.optional) },
533
533
  success: Schema.Struct({
534
534
  interrupted: Schema.Boolean.annotate({
535
535
  description: "Whether an active execution owned by this OpenCode process was interrupted.",
@@ -541,7 +541,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
541
541
  .annotateMerge(OpenApi.annotations({
542
542
  identifier: "session.interrupt",
543
543
  summary: "Interrupt session execution",
544
- description: "Interrupt active execution owned by this OpenCode process. Returns interrupted=true when an active execution was interrupted and false for the idle no-op. When continue=true, execution resumes pending steering input and next-in-line control items (manual compaction, moves) while queued prompts remain parked.",
544
+ description: "Interrupt active execution owned by this OpenCode process. Returns interrupted=true when an active execution was interrupted and false for the idle no-op. When resume=true, execution resumes pending steering input and next-in-line control items (manual compaction, moves) while queued prompts remain parked.",
545
545
  })))
546
546
  .add(HttpApiEndpoint.post("session.background", "/api/session/:sessionID/background", {
547
547
  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/protocol",
4
- "version": "0.0.0-dev-19601",
4
+ "version": "0.0.0-dev-19607",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -32,7 +32,7 @@
32
32
  "typecheck": "tsgo --noEmit"
33
33
  },
34
34
  "dependencies": {
35
- "@opencode/schema": "0.0.0-dev-19601",
35
+ "@opencode/schema": "0.0.0-dev-19607",
36
36
  "effect": "4.0.0-rc.112"
37
37
  },
38
38
  "devDependencies": {