@opencode-ai/protocol 0.0.0-next-17020 → 0.0.0-next-17025

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.
@@ -152,8 +152,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
152
152
  params: { sessionID: Session.ID },
153
153
  success: Schema.Struct({ data: Session.Info }),
154
154
  error: SessionNotFoundError,
155
- })
156
- .annotateMerge(OpenApi.annotations({
155
+ }).annotateMerge(OpenApi.annotations({
157
156
  identifier: "v2.session.get",
158
157
  summary: "Get session",
159
158
  description: "Retrieve a session by ID.",
@@ -222,8 +221,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
222
221
  payload: Location.Ref,
223
222
  success: HttpApiSchema.NoContent,
224
223
  error: [SessionNotFoundError, InvalidRequestError],
225
- })
226
- .annotateMerge(OpenApi.annotations({
224
+ }).annotateMerge(OpenApi.annotations({
227
225
  identifier: "v2.session.move",
228
226
  summary: "Move session",
229
227
  description: "Move a session to another project directory, optionally transferring local changes.",
@@ -371,8 +369,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
371
369
  params: { sessionID: Session.ID },
372
370
  success: Schema.Struct({ data: Schema.Array(SessionMessage.Info) }),
373
371
  error: [SessionNotFoundError, UnknownError],
374
- })
375
- .annotateMerge(OpenApi.annotations({
372
+ }).annotateMerge(OpenApi.annotations({
376
373
  identifier: "v2.session.context",
377
374
  summary: "Get session context",
378
375
  description: "Retrieve the active context messages for a session (all messages after the last compaction).",
@@ -381,8 +378,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
381
378
  params: { sessionID: Session.ID },
382
379
  success: Schema.Struct({ data: Schema.Array(SessionPending.Info) }),
383
380
  error: SessionNotFoundError,
384
- })
385
- .annotateMerge(OpenApi.annotations({
381
+ }).annotateMerge(OpenApi.annotations({
386
382
  identifier: "v2.session.pending.list",
387
383
  summary: "List pending session work",
388
384
  description: "List durable admitted session work not yet visible in projected history, ordered by admission. Includes unpromoted user and synthetic inputs and unhandled compaction barriers. The runner owns consumption; items disappear once promoted or handled.",
@@ -472,8 +468,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
472
468
  data: Schema.Union([SessionEvent.Durable, EventLog.Synced]).annotate({ identifier: "SessionLogItem" }),
473
469
  }),
474
470
  error: SessionNotFoundError,
475
- })
476
- .annotateMerge(OpenApi.annotations({
471
+ }).annotateMerge(OpenApi.annotations({
477
472
  identifier: "v2.session.log",
478
473
  summary: "Read the session log",
479
474
  description: "Experimental durable session event log. Reads events after an exclusive aggregate sequence and continues with live events when follow=true.",
@@ -504,8 +499,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
504
499
  params: { sessionID: Session.ID, messageID: SessionMessage.ID },
505
500
  success: Schema.Struct({ data: SessionMessage.Info }),
506
501
  error: [SessionNotFoundError, MessageNotFoundError],
507
- })
508
- .annotateMerge(OpenApi.annotations({
502
+ }).annotateMerge(OpenApi.annotations({
509
503
  identifier: "v2.session.message",
510
504
  summary: "Get session message",
511
505
  description: "Retrieve one projected message owned by the Session.",
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-17020",
4
+ "version": "0.0.0-next-17025",
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-17020",
31
+ "@opencode-ai/schema": "0.0.0-next-17025",
32
32
  "effect": "4.0.0-beta.101"
33
33
  },
34
34
  "devDependencies": {