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

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.
@@ -3016,7 +3016,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3016
3016
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
3017
3017
  };
3018
3018
  };
3019
- }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.rename", "POST", "/api/session/:sessionID/rename", Schema.toCodecStringTree<Schema.Struct<{
3019
+ }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.rename", "PATCH", "/api/session/:sessionID", Schema.toCodecStringTree<Schema.Struct<{
3020
3020
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
3021
3021
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3022
3022
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -3388,18 +3388,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3388
3388
  readonly text: Schema.String;
3389
3389
  }>>, never, never>;
3390
3390
  }>>>, never, never>;
3391
- readonly command: Schema.String;
3392
- }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof CommandNotFoundError | typeof CommandExecutionError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.skill", "POST", "/api/session/:sessionID/skill", Schema.toCodecStringTree<Schema.Struct<{
3391
+ readonly name: Schema.String;
3392
+ }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof CommandNotFoundError | typeof CommandExecutionError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.skill", "POST", "/api/experimental/session/:sessionID/skill", Schema.toCodecStringTree<Schema.Struct<{
3393
3393
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
3394
3394
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3395
3395
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3396
3396
  };
3397
3397
  }>>, never, Schema.toCodecJson<Schema.Struct<{
3398
- readonly id: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
3399
- create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3400
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3401
- }>;
3402
- readonly skill: Schema.brand<Schema.String, "Skill.ID">;
3398
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
3403
3399
  readonly resume: Schema.optional<Schema.Boolean>;
3404
3400
  }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof SkillNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.synthetic", "POST", "/api/session/:sessionID/synthetic", Schema.toCodecStringTree<Schema.Struct<{
3405
3401
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -3441,8 +3437,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3441
3437
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3442
3438
  };
3443
3439
  }>>, never, Schema.toCodecJson<Schema.Struct<{
3444
- readonly id: Schema.optional<Schema.brand<Schema.String, "Event.ID"> & {
3445
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
3440
+ readonly id: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
3441
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3442
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3446
3443
  }>;
3447
3444
  readonly command: Schema.String;
3448
3445
  }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.compact", "POST", "/api/session/:sessionID/compact", Schema.toCodecStringTree<Schema.Struct<{
@@ -242,7 +242,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
242
242
  summary: "Switch session model",
243
243
  description: "Switch the model used by subsequent provider turns.",
244
244
  })))
245
- .add(HttpApiEndpoint.post("session.rename", "/api/session/:sessionID/rename", {
245
+ .add(HttpApiEndpoint.patch("session.rename", "/api/session/:sessionID", {
246
246
  params: { sessionID: Session.ID },
247
247
  payload: Schema.Struct({ title: Schema.String }),
248
248
  success: HttpApiSchema.NoContent,
@@ -262,7 +262,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
262
262
  }).annotateMerge(OpenApi.annotations({
263
263
  identifier: "session.move",
264
264
  summary: "Move session",
265
- description: "Move a session to another project directory, optionally transferring local changes.",
265
+ description: "Move a session to another project directory at the requested delivery boundary.",
266
266
  })))
267
267
  .add(HttpApiEndpoint.post("session.prompt", "/api/session/:sessionID/prompt", {
268
268
  params: { sessionID: Session.ID },
@@ -285,7 +285,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
285
285
  .add(HttpApiEndpoint.post("session.command", "/api/session/:sessionID/command", {
286
286
  params: { sessionID: Session.ID },
287
287
  payload: Schema.Struct({
288
- command: Schema.String,
288
+ name: Schema.String,
289
289
  ...PromptInput.Prompt.fields,
290
290
  delivery: SessionInbox.Delivery.pipe(Schema.optional),
291
291
  }),
@@ -298,11 +298,10 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
298
298
  summary: "Run command",
299
299
  description: "Execute a slash command callback immediately.",
300
300
  })))
301
- .add(HttpApiEndpoint.post("session.skill", "/api/session/:sessionID/skill", {
301
+ .add(HttpApiEndpoint.post("session.skill", "/api/experimental/session/:sessionID/skill", {
302
302
  params: { sessionID: Session.ID },
303
303
  payload: Schema.Struct({
304
- id: SessionMessage.ID.pipe(Schema.optional),
305
- skill: Skill.ID,
304
+ id: Skill.ID,
306
305
  resume: Schema.Boolean.pipe(Schema.optional),
307
306
  }),
308
307
  success: HttpApiSchema.NoContent,
@@ -310,7 +309,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
310
309
  })
311
310
  .middleware(sessionLocationMiddleware)
312
311
  .annotateMerge(OpenApi.annotations({
313
- identifier: "session.skill",
312
+ identifier: "experimental.session.skill",
314
313
  summary: "Activate skill",
315
314
  description: "Activate a skill for a session by appending a skill message and resuming execution.",
316
315
  })))
@@ -336,7 +335,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
336
335
  .add(HttpApiEndpoint.post("session.shell", "/api/session/:sessionID/shell", {
337
336
  params: { sessionID: Session.ID },
338
337
  payload: Schema.Struct({
339
- id: Event.ID.pipe(Schema.optional),
338
+ id: SessionMessage.ID.pipe(Schema.optional),
340
339
  command: Schema.String,
341
340
  }),
342
341
  success: HttpApiSchema.NoContent,
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-19599",
4
+ "version": "0.0.0-dev-19601",
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-19599",
35
+ "@opencode/schema": "0.0.0-dev-19601",
36
36
  "effect": "4.0.0-rc.112"
37
37
  },
38
38
  "devDependencies": {