@opencode/client 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.
@@ -15,10 +15,10 @@ import type { SessionInbox } from "@opencode/schema/session-inbox";
15
15
  import type { PromptInput } from "@opencode/schema/prompt-input";
16
16
  import type { AgentAttachment } from "@opencode/schema/prompt";
17
17
  import type { Skill } from "@opencode/schema/skill";
18
- import type { Event } from "@opencode/schema/event";
19
18
  import type { FileDiff } from "@opencode/schema/file-diff";
20
19
  import type { InstructionEntry } from "@opencode/schema/instruction-entry";
21
20
  import type { Schema } from "effect";
21
+ import type { Event } from "@opencode/schema/event";
22
22
  import type { EventLog } from "@opencode/schema/event-log";
23
23
  import type { Shell } from "@opencode/schema/shell";
24
24
  import type { Provider } from "@opencode/schema/provider";
@@ -299,7 +299,7 @@ export type SessionPromptOutput = SessionInbox.User;
299
299
  export type SessionPromptOperation<E = never> = (input: SessionPromptInput) => Effect.Effect<SessionPromptOutput, E>;
300
300
  export type SessionCommandInput = {
301
301
  readonly sessionID: Session.ID;
302
- readonly command: string;
302
+ readonly name: string;
303
303
  readonly text: string;
304
304
  readonly files?: ReadonlyArray<PromptInput.FileAttachment> | undefined;
305
305
  readonly agents?: ReadonlyArray<AgentAttachment> | undefined;
@@ -310,8 +310,7 @@ export type SessionCommandOutput = void;
310
310
  export type SessionCommandOperation<E = never> = (input: SessionCommandInput) => Effect.Effect<SessionCommandOutput, E>;
311
311
  export type SessionSkillInput = {
312
312
  readonly sessionID: Session.ID;
313
- readonly id?: SessionMessage.ID | undefined;
314
- readonly skill: Skill.ID;
313
+ readonly id: Skill.ID;
315
314
  readonly resume?: boolean | undefined;
316
315
  };
317
316
  export type SessionSkillOutput = void;
@@ -331,7 +330,7 @@ export type SessionSyntheticOutput = SessionInbox.Synthetic;
331
330
  export type SessionSyntheticOperation<E = never> = (input: SessionSyntheticInput) => Effect.Effect<SessionSyntheticOutput, E>;
332
331
  export type SessionShellInput = {
333
332
  readonly sessionID: Session.ID;
334
- readonly id?: Event.ID | undefined;
333
+ readonly id?: SessionMessage.ID | undefined;
335
334
  readonly command: string;
336
335
  };
337
336
  export type SessionShellOutput = void;
@@ -91,7 +91,7 @@ const EndpointSessionPrompt = (raw) => (input) => preserveEffect()(raw["session.
91
91
  const EndpointSessionCommand = (raw) => (input) => preserveEffect()(raw["session.command"]({
92
92
  params: { sessionID: input["sessionID"] },
93
93
  payload: {
94
- command: input["command"],
94
+ name: input["name"],
95
95
  text: input["text"],
96
96
  files: input["files"],
97
97
  agents: input["agents"],
@@ -101,7 +101,7 @@ const EndpointSessionCommand = (raw) => (input) => preserveEffect()(raw["session
101
101
  }).pipe(Effect.mapError(mapClientError)));
102
102
  const EndpointSessionSkill = (raw) => (input) => preserveEffect()(raw["session.skill"]({
103
103
  params: { sessionID: input["sessionID"] },
104
- payload: { id: input["id"], skill: input["skill"], resume: input["resume"] },
104
+ payload: { id: input["id"], resume: input["resume"] },
105
105
  }).pipe(Effect.mapError(mapClientError)));
106
106
  const EndpointSessionSynthetic = (raw) => (input) => preserveEffect()(raw["session.synthetic"]({
107
107
  params: { sessionID: input["sessionID"] },
@@ -298,8 +298,8 @@ export function make(options) {
298
298
  empty: true,
299
299
  }, requestOptions),
300
300
  rename: (input, requestOptions) => request({
301
- method: "POST",
302
- path: `/api/session/${encodeURIComponent(input.sessionID)}/rename`,
301
+ method: "PATCH",
302
+ path: `/api/session/${encodeURIComponent(input.sessionID)}`,
303
303
  body: { title: input["title"] },
304
304
  successStatus: 204,
305
305
  declaredStatuses: [400, 401, 404],
@@ -334,7 +334,7 @@ export function make(options) {
334
334
  method: "POST",
335
335
  path: `/api/session/${encodeURIComponent(input.sessionID)}/command`,
336
336
  body: {
337
- command: input["command"],
337
+ name: input["name"],
338
338
  text: input["text"],
339
339
  files: input["files"],
340
340
  agents: input["agents"],
@@ -347,8 +347,8 @@ export function make(options) {
347
347
  }, requestOptions),
348
348
  skill: (input, requestOptions) => request({
349
349
  method: "POST",
350
- path: `/api/session/${encodeURIComponent(input.sessionID)}/skill`,
351
- body: { id: input["id"], skill: input["skill"], resume: input["resume"] },
350
+ path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/skill`,
351
+ body: { id: input["id"], resume: input["resume"] },
352
352
  successStatus: 204,
353
353
  declaredStatuses: [400, 401, 404],
354
354
  empty: true,
@@ -5551,8 +5551,8 @@ export type SessionCommandInput = {
5551
5551
  readonly sessionID: {
5552
5552
  readonly sessionID: string;
5553
5553
  }["sessionID"];
5554
- readonly command: {
5555
- readonly command: string;
5554
+ readonly name: {
5555
+ readonly name: string;
5556
5556
  readonly text: string;
5557
5557
  readonly files?: ReadonlyArray<{
5558
5558
  readonly uri: string;
@@ -5581,9 +5581,9 @@ export type SessionCommandInput = {
5581
5581
  };
5582
5582
  }>;
5583
5583
  readonly delivery?: ("steer" | "queue") | null;
5584
- }["command"];
5584
+ }["name"];
5585
5585
  readonly text: {
5586
- readonly command: string;
5586
+ readonly name: string;
5587
5587
  readonly text: string;
5588
5588
  readonly files?: ReadonlyArray<{
5589
5589
  readonly uri: string;
@@ -5614,7 +5614,7 @@ export type SessionCommandInput = {
5614
5614
  readonly delivery?: ("steer" | "queue") | null;
5615
5615
  }["text"];
5616
5616
  readonly files?: {
5617
- readonly command: string;
5617
+ readonly name: string;
5618
5618
  readonly text: string;
5619
5619
  readonly files?: ReadonlyArray<{
5620
5620
  readonly uri: string;
@@ -5645,7 +5645,7 @@ export type SessionCommandInput = {
5645
5645
  readonly delivery?: ("steer" | "queue") | null;
5646
5646
  }["files"];
5647
5647
  readonly agents?: {
5648
- readonly command: string;
5648
+ readonly name: string;
5649
5649
  readonly text: string;
5650
5650
  readonly files?: ReadonlyArray<{
5651
5651
  readonly uri: string;
@@ -5676,7 +5676,7 @@ export type SessionCommandInput = {
5676
5676
  readonly delivery?: ("steer" | "queue") | null;
5677
5677
  }["agents"];
5678
5678
  readonly skills?: {
5679
- readonly command: string;
5679
+ readonly name: string;
5680
5680
  readonly text: string;
5681
5681
  readonly files?: ReadonlyArray<{
5682
5682
  readonly uri: string;
@@ -5707,7 +5707,7 @@ export type SessionCommandInput = {
5707
5707
  readonly delivery?: ("steer" | "queue") | null;
5708
5708
  }["skills"];
5709
5709
  readonly delivery?: {
5710
- readonly command: string;
5710
+ readonly name: string;
5711
5711
  readonly text: string;
5712
5712
  readonly files?: ReadonlyArray<{
5713
5713
  readonly uri: string;
@@ -5743,19 +5743,12 @@ export type SessionSkillInput = {
5743
5743
  readonly sessionID: {
5744
5744
  readonly sessionID: string;
5745
5745
  }["sessionID"];
5746
- readonly id?: {
5747
- readonly id?: string | undefined;
5748
- readonly skill: string;
5746
+ readonly id: {
5747
+ readonly id: string;
5749
5748
  readonly resume?: boolean | undefined;
5750
5749
  }["id"];
5751
- readonly skill: {
5752
- readonly id?: string | undefined;
5753
- readonly skill: string;
5754
- readonly resume?: boolean | undefined;
5755
- }["skill"];
5756
5750
  readonly resume?: {
5757
- readonly id?: string | undefined;
5758
- readonly skill: string;
5751
+ readonly id: string;
5759
5752
  readonly resume?: boolean | undefined;
5760
5753
  }["resume"];
5761
5754
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/client",
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": {
@@ -57,8 +57,8 @@
57
57
  "typecheck": "tsgo --noEmit"
58
58
  },
59
59
  "dependencies": {
60
- "@opencode/schema": "0.0.0-dev-19599",
61
- "@opencode/protocol": "0.0.0-dev-19599"
60
+ "@opencode/schema": "0.0.0-dev-19601",
61
+ "@opencode/protocol": "0.0.0-dev-19601"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "effect": "4.0.0-rc.112",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@effect/platform-node": "4.0.0-rc.112",
77
- "@opencode/httpapi-codegen": "0.0.0-dev-19599",
77
+ "@opencode/httpapi-codegen": "0.0.0-dev-19601",
78
78
  "@tsconfig/bun": "1.0.9",
79
79
  "@types/bun": "1.4.0",
80
80
  "@typescript/native-preview": "7.0.0-dev.20251207.1",