@opencode/protocol 0.0.0-beta-19500 → 0.0.0-dev-19274

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.
@@ -15,7 +15,6 @@ import { ConflictError, CommandExecutionError, CommandNotFoundError, InvalidCurs
15
15
  import { Agent } from "@opencode/schema/agent";
16
16
  import { Skill } from "@opencode/schema/skill";
17
17
  import { Model } from "@opencode/schema/model";
18
- import { Permission } from "@opencode/schema/permission";
19
18
  import { Location } from "@opencode/schema/location";
20
19
  import { SessionEvent } from "@opencode/schema/session-event";
21
20
  import { EventLog } from "@opencode/schema/event-log";
@@ -130,7 +129,6 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
130
129
  model: Model.Ref.pipe(Schema.optional),
131
130
  location: Location.Ref.pipe(Schema.optional),
132
131
  metadata: Session.Metadata.pipe(Schema.optional),
133
- permissions: Permission.Ruleset.pipe(Schema.optional),
134
132
  }),
135
133
  success: Schema.Struct({ data: Session.Info }),
136
134
  }).annotateMerge(OpenApi.annotations({
@@ -522,6 +520,16 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
522
520
  identifier: "v2.session.message",
523
521
  summary: "Get session message",
524
522
  description: "Retrieve one projected message owned by the Session.",
523
+ })))
524
+ .add(HttpApiEndpoint.patch("session.messageUpdate", "/api/session/:sessionID/message/:messageID", {
525
+ params: { sessionID: Session.ID, messageID: SessionMessage.ID },
526
+ payload: Schema.Struct({ content: Schema.Array(SessionMessage.AssistantContent) }),
527
+ success: Schema.Struct({ data: SessionMessage.Assistant }),
528
+ error: [SessionNotFoundError, MessageNotFoundError, InvalidRequestError, SessionBusyError, ConflictError],
529
+ }).annotateMerge(OpenApi.annotations({
530
+ identifier: "v2.session.messageUpdate",
531
+ summary: "Update assistant message content",
532
+ description: "Replace the content of a completed assistant message in an idle session.",
525
533
  })))
526
534
  .add(HttpApiEndpoint.put("session.environment", "/api/session/:sessionID/environment", {
527
535
  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-beta-19500",
4
+ "version": "0.0.0-dev-19274",
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-beta-19500",
35
+ "@opencode/schema": "0.0.0-dev-19274",
36
36
  "effect": "4.0.0-rc.112"
37
37
  },
38
38
  "devDependencies": {