@opencode/client 2.0.21 → 2.0.23

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.
Files changed (59) hide show
  1. package/dist/chunks/{contract-fnmdfwt6.js → service-version-02j88w0z.js} +14 -21
  2. package/dist/chunks/{contract-1tbj6z39.js → service-version-1y4a697q.js} +1 -1
  3. package/dist/chunks/{contract-tqcb80dw.js → service-version-21favj1f.js} +5 -5
  4. package/dist/chunks/{contract-txckps9j.js → service-version-6f43cgzz.js} +1 -0
  5. package/dist/chunks/{contract-x6wet7em.js → service-version-7yt87z36.js} +6 -3
  6. package/dist/chunks/{contract-h11j9btw.js → service-version-e5ea35j7.js} +1 -1
  7. package/dist/chunks/{contract-frbwqjmf.js → service-version-frbwqjmf.js} +1 -1
  8. package/dist/chunks/{contract-3heptsgt.js → service-version-gah0fg5v.js} +4 -4
  9. package/dist/chunks/{contract-c3yh8bjt.js → service-version-nyqggzs9.js} +62 -47
  10. package/dist/chunks/{contract-t1xa31vm.js → service-version-t1xa31vm.js} +1 -1
  11. package/dist/chunks/{contract-4tveyqeh.js → service-version-vt9jbch8.js} +4 -2
  12. package/dist/chunks/{contract-z6qdwcsf.js → service-version-z6qdwcsf.js} +2 -2
  13. package/dist/contract.js +1 -1
  14. package/dist/effect/api/api.d.ts +13 -0
  15. package/dist/effect/client.d.ts +94 -93
  16. package/dist/effect/client.js +8 -8
  17. package/dist/effect/generated/client-error.js +1 -1
  18. package/dist/effect/generated/client.d.ts +94 -93
  19. package/dist/effect/generated/client.js +3 -3
  20. package/dist/effect/generated/index.js +4 -4
  21. package/dist/effect/index.js +8 -8
  22. package/dist/effect/rpc.js +2 -2
  23. package/dist/effect/service.js +29 -17
  24. package/dist/promise/client.d.ts +1 -0
  25. package/dist/promise/client.js +7 -7
  26. package/dist/promise/generated/client-error.js +1 -1
  27. package/dist/promise/generated/client.d.ts +2 -1
  28. package/dist/promise/generated/client.js +2 -2
  29. package/dist/promise/generated/index.js +13 -9
  30. package/dist/promise/generated/types.d.ts +72 -3
  31. package/dist/promise/generated/types.js +6 -2
  32. package/dist/promise/index.js +15 -11
  33. package/dist/promise/rpc.js +2 -2
  34. package/dist/promise/service.js +29 -17
  35. package/dist/pty-handoff.d.ts +4 -1
  36. package/dist/pty-handoff.js +1 -1
  37. package/dist/rpc-runtime.js +1 -1
  38. package/dist/service-contender.js +1 -1
  39. package/dist/service-timing.js +1 -1
  40. package/dist/service-version.js +1 -1
  41. package/dist/service.js +1 -1
  42. package/dist/shared-events.js +1 -1
  43. package/dist/solid/connection.js +1 -1
  44. package/dist/solid/data.js +9 -9
  45. package/dist/solid/index.js +11 -11
  46. package/dist/solid/pty.js +1 -1
  47. package/package.json +4 -4
  48. /package/dist/chunks/{contract-6mptkzbc.js → service-version-6mptkzbc.js} +0 -0
  49. /package/dist/chunks/{contract-9rqn6x4v.js → service-version-9rqn6x4v.js} +0 -0
  50. /package/dist/chunks/{contract-gne7h7mq.js → service-version-gne7h7mq.js} +0 -0
  51. /package/dist/chunks/{contract-m2eywc8w.js → service-version-m2eywc8w.js} +0 -0
  52. /package/dist/chunks/{contract-nwcpakzx.js → service-version-nwcpakzx.js} +0 -0
  53. /package/dist/chunks/{contract-qav6mfdz.js → service-version-qav6mfdz.js} +0 -0
  54. /package/dist/chunks/{contract-sxt88q69.js → service-version-sxt88q69.js} +0 -0
  55. /package/dist/chunks/{contract-vmytr4q8.js → service-version-vmytr4q8.js} +0 -0
  56. /package/dist/chunks/{contract-vyas3vgt.js → service-version-vyas3vgt.js} +0 -0
  57. /package/dist/chunks/{contract-xgnj2w4v.js → service-version-xgnj2w4v.js} +0 -0
  58. /package/dist/chunks/{contract-y2etg5bs.js → service-version-y2etg5bs.js} +0 -0
  59. /package/dist/chunks/{contract-ydhz1zrh.js → service-version-ydhz1zrh.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./contract-9rqn6x4v.js";
3
+ } from "./service-version-9rqn6x4v.js";
4
4
 
5
5
  // src/pty-handoff.ts
6
6
  var exports_pty_handoff = {};
@@ -16,38 +16,31 @@ async function prepare2(file, info, timeout) {
16
16
  const existing = await read(file);
17
17
  if (existing !== undefined && existing.expiresAt > Date.now() && same(existing.source, info))
18
18
  return;
19
- const { ClientError, OpenCode } = await import("../promise/index.js");
19
+ const { OpenCode } = await import("../promise/index.js");
20
20
  const client = OpenCode.make({
21
21
  baseUrl: info.url,
22
22
  headers: info.password === undefined ? undefined : { authorization: "Basic " + Buffer.from(`opencode:${info.password}`).toString("base64") }
23
23
  });
24
- const missing = (error) => error instanceof ClientError && error.reason === "UnexpectedStatus" && typeof error.cause === "object" && error.cause !== null && ("status" in error.cause) && error.cause.status === 404;
25
- const result = await client.experimental.persistentPty.handoff({ signal: AbortSignal.timeout(timeout) }).then((value) => ({ value }), (cause) => ({ cause }));
26
- if ("cause" in result) {
24
+ const handoff = await client.experimental.persistentPty.handoff({ signal: AbortSignal.timeout(timeout) }).then(parse).catch(async (cause) => {
27
25
  const concurrent = await read(file);
28
26
  if (concurrent !== undefined && concurrent.expiresAt > Date.now() && same(concurrent.source, info))
29
27
  return;
30
- if (!missing(result.cause))
31
- throw new Error("Failed to prepare persistent terminals for service replacement", { cause: result.cause });
32
- console.warn("Background service cannot hand off persistent terminals; shutting them down before replacement");
33
- await client.experimental.persistentPty.shutdown({ signal: AbortSignal.timeout(timeout) }).catch((cause) => {
34
- if (missing(cause))
35
- return;
36
- throw new Error("Failed to shut down persistent terminals before service replacement", { cause });
37
- });
38
- await publish(file, info, null);
28
+ console.warn("Background service cannot hand off persistent terminals; shutting them down before replacement", cause);
29
+ await client.experimental.persistentPty.shutdown({ signal: AbortSignal.timeout(timeout) }).catch(() => {});
30
+ return null;
31
+ });
32
+ if (handoff === undefined)
39
33
  return;
40
- }
41
- const body = result.value;
34
+ await publish(file, info, handoff).catch((cause) => console.warn("Failed to publish persistent terminal handoff", cause));
35
+ }
36
+ function parse(body) {
42
37
  if (typeof body !== "object" || body === null || !("handoff" in body))
43
38
  throw new Error("Invalid persistent terminal handoff response");
44
- if (body.handoff === null) {
45
- await publish(file, info, null);
46
- return;
47
- }
39
+ if (body.handoff === null)
40
+ return null;
48
41
  if (!isHandoff(body.handoff) || body.handoff.expiresAt <= Date.now())
49
42
  throw new Error("Invalid or expired persistent terminal handoff");
50
- await publish(file, info, body.handoff);
43
+ return body.handoff;
51
44
  }
52
45
  async function publish(file, info, handoff) {
53
46
  const temporary = `${file}.pty-handoff.${crypto.randomUUID()}.tmp`;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isRpcError2,
3
3
  isRpcInternalError2
4
- } from "./contract-4tveyqeh.js";
4
+ } from "./service-version-vt9jbch8.js";
5
5
 
6
6
  // src/promise/rpc.ts
7
7
  function makeRpc2(raw, events) {
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  make7
3
- } from "./contract-frbwqjmf.js";
3
+ } from "./service-version-frbwqjmf.js";
4
4
  import {
5
5
  ClientError2
6
- } from "./contract-y2etg5bs.js";
6
+ } from "./service-version-y2etg5bs.js";
7
7
  import {
8
8
  make3
9
- } from "./contract-x6wet7em.js";
9
+ } from "./service-version-7yt87z36.js";
10
10
  import {
11
11
  make4,
12
12
  aborted2
13
- } from "./contract-z6qdwcsf.js";
13
+ } from "./service-version-z6qdwcsf.js";
14
14
  import {
15
15
  __export
16
- } from "./contract-9rqn6x4v.js";
16
+ } from "./service-version-9rqn6x4v.js";
17
17
 
18
18
  // src/effect/client.ts
19
19
  var exports_client = {};
@@ -4,6 +4,7 @@ var stderrLimit = 8 * 1024;
4
4
  function spawnServiceContender2(command, args, env) {
5
5
  const child = spawn(command, args, {
6
6
  detached: true,
7
+ windowsHide: true,
7
8
  stdio: ["ignore", "ignore", "pipe"],
8
9
  env: { ...process.env, ...env }
9
10
  });
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ClientApi2
3
- } from "./contract-vmytr4q8.js";
3
+ } from "./service-version-vmytr4q8.js";
4
4
  import {
5
5
  ClientError2
6
- } from "./contract-y2etg5bs.js";
6
+ } from "./service-version-y2etg5bs.js";
7
7
  import {
8
8
  __export
9
- } from "./contract-9rqn6x4v.js";
9
+ } from "./service-version-9rqn6x4v.js";
10
10
 
11
11
  // src/effect/generated/client.ts
12
12
  var exports_client2 = {};
@@ -72,6 +72,7 @@ var EndpointSessionStats = (raw) => (input) => preserveEffect()(raw["session.sta
72
72
  var EndpointSessionCreate = (raw) => (input) => preserveEffect()(raw["session.create"]({
73
73
  payload: {
74
74
  id: input?.["id"],
75
+ parentID: input?.["parentID"],
75
76
  title: input?.["title"],
76
77
  agent: input?.["agent"],
77
78
  model: input?.["model"],
@@ -538,6 +539,7 @@ var adaptGroupWorktree = (raw) => ({
538
539
  remove: EndpointWorktreeRemove(raw),
539
540
  refresh: EndpointWorktreeRefresh(raw)
540
541
  });
542
+ var EndpointVcsInit = (raw) => (input) => preserveEffect()(raw["vcs.init"]({ query: { location: input?.["location"], provider: input?.["provider"] } }).pipe(Effect.mapError(mapClientError)));
541
543
  var EndpointVcsGet = (raw) => (input) => preserveEffect()(raw["vcs.get"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
542
544
  var EndpointVcsBase = (raw) => (input) => preserveEffect()(raw["vcs.base"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
543
545
  var EndpointVcsStatus = (raw) => (input) => preserveEffect()(raw["vcs.status"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
@@ -548,6 +550,7 @@ var EndpointVcsDiff = (raw) => (input) => preserveEffect()(raw["vcs.diff"]({
548
550
  query: { location: input["location"], mode: input["mode"], base: input["base"], context: input["context"] }
549
551
  }).pipe(Effect.mapError(mapClientError)));
550
552
  var adaptGroupVcs = (raw) => ({
553
+ init: EndpointVcsInit(raw),
551
554
  get: EndpointVcsGet(raw),
552
555
  base: EndpointVcsBase(raw),
553
556
  status: EndpointVcsStatus(raw),
@@ -2,7 +2,7 @@ import {
2
2
  isFormNotFoundError2,
3
3
  isFormAlreadySettledError2,
4
4
  isPermissionNotFoundError2
5
- } from "./contract-4tveyqeh.js";
5
+ } from "./service-version-vt9jbch8.js";
6
6
 
7
7
  // src/solid/data.ts
8
8
  import { Worktree } from "@opencode/schema/worktree";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./contract-9rqn6x4v.js";
3
+ } from "./service-version-9rqn6x4v.js";
4
4
 
5
5
  // src/shared-events.ts
6
6
  var exports_shared_events = {};
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  make7
3
- } from "./contract-frbwqjmf.js";
3
+ } from "./service-version-frbwqjmf.js";
4
4
  import {
5
5
  make6
6
- } from "./contract-c3yh8bjt.js";
6
+ } from "./service-version-nyqggzs9.js";
7
7
  import {
8
8
  makeRpc2
9
- } from "./contract-1tbj6z39.js";
9
+ } from "./service-version-1y4a697q.js";
10
10
  import {
11
11
  __export
12
- } from "./contract-9rqn6x4v.js";
12
+ } from "./service-version-9rqn6x4v.js";
13
13
 
14
14
  // src/promise/client.ts
15
15
  var exports_client3 = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ClientError3
3
- } from "./contract-nwcpakzx.js";
3
+ } from "./service-version-nwcpakzx.js";
4
4
  import {
5
5
  __export
6
- } from "./contract-9rqn6x4v.js";
6
+ } from "./service-version-9rqn6x4v.js";
7
7
 
8
8
  // src/promise/generated/client.ts
9
9
  var exports_client4 = {};
@@ -160,7 +160,7 @@ function make6(options) {
160
160
  path: `/api/location`,
161
161
  query: { location: input?.["location"] },
162
162
  successStatus: 200,
163
- declaredStatuses: [400, 401],
163
+ declaredStatuses: [400, 401, 404],
164
164
  empty: false
165
165
  }, requestOptions),
166
166
  reload: (requestOptions) => request({
@@ -177,7 +177,7 @@ function make6(options) {
177
177
  path: `/api/agent`,
178
178
  query: { location: input?.["location"] },
179
179
  successStatus: 200,
180
- declaredStatuses: [400, 401],
180
+ declaredStatuses: [400, 401, 404],
181
181
  empty: false
182
182
  }, requestOptions),
183
183
  get: (input, requestOptions) => request({
@@ -195,7 +195,7 @@ function make6(options) {
195
195
  path: `/api/plugin`,
196
196
  query: { location: input?.["location"] },
197
197
  successStatus: 200,
198
- declaredStatuses: [400, 401],
198
+ declaredStatuses: [400, 401, 404],
199
199
  empty: false
200
200
  }, requestOptions),
201
201
  check: (input, requestOptions) => request({
@@ -204,7 +204,7 @@ function make6(options) {
204
204
  query: { location: input?.["location"] },
205
205
  body: { target: input?.["target"] },
206
206
  successStatus: 200,
207
- declaredStatuses: [400, 401],
207
+ declaredStatuses: [400, 401, 404],
208
208
  empty: false
209
209
  }, requestOptions),
210
210
  update: (input, requestOptions) => request({
@@ -213,7 +213,7 @@ function make6(options) {
213
213
  query: { location: input["location"] },
214
214
  body: { targets: input["targets"] },
215
215
  successStatus: 204,
216
- declaredStatuses: [400, 401, 503],
216
+ declaredStatuses: [400, 401, 404, 503],
217
217
  empty: true
218
218
  }, requestOptions)
219
219
  },
@@ -254,6 +254,7 @@ function make6(options) {
254
254
  path: `/api/session`,
255
255
  body: {
256
256
  id: input?.["id"],
257
+ parentID: input?.["parentID"],
257
258
  title: input?.["title"],
258
259
  agent: input?.["agent"],
259
260
  model: input?.["model"],
@@ -262,7 +263,7 @@ function make6(options) {
262
263
  permissions: input?.["permissions"]
263
264
  },
264
265
  successStatus: 200,
265
- declaredStatuses: [400, 401],
266
+ declaredStatuses: [400, 401, 404],
266
267
  empty: false
267
268
  }, requestOptions).then((value) => value.data),
268
269
  import: (input, requestOptions) => request({
@@ -622,7 +623,7 @@ function make6(options) {
622
623
  path: `/api/model`,
623
624
  query: { location: input?.["location"] },
624
625
  successStatus: 200,
625
- declaredStatuses: [400, 401, 503],
626
+ declaredStatuses: [400, 401, 404, 503],
626
627
  empty: false
627
628
  }, requestOptions),
628
629
  default: (input, requestOptions) => request({
@@ -630,7 +631,7 @@ function make6(options) {
630
631
  path: `/api/model/default`,
631
632
  query: { location: input?.["location"] },
632
633
  successStatus: 200,
633
- declaredStatuses: [400, 401, 503],
634
+ declaredStatuses: [400, 401, 404, 503],
634
635
  empty: false
635
636
  }, requestOptions)
636
637
  },
@@ -640,7 +641,7 @@ function make6(options) {
640
641
  path: `/api/experimental/generate`,
641
642
  body: { prompt: input["prompt"], model: input["model"] },
642
643
  successStatus: 200,
643
- declaredStatuses: [400, 401, 503],
644
+ declaredStatuses: [400, 401, 404, 503],
644
645
  empty: false
645
646
  }, requestOptions).then((value) => value.data)
646
647
  },
@@ -650,7 +651,7 @@ function make6(options) {
650
651
  path: `/api/provider`,
651
652
  query: { location: input?.["location"] },
652
653
  successStatus: 200,
653
- declaredStatuses: [400, 401, 503],
654
+ declaredStatuses: [400, 401, 404, 503],
654
655
  empty: false
655
656
  }, requestOptions),
656
657
  get: (input, requestOptions) => request({
@@ -668,7 +669,7 @@ function make6(options) {
668
669
  path: `/api/integration`,
669
670
  query: { location: input?.["location"] },
670
671
  successStatus: 200,
671
- declaredStatuses: [400, 401],
672
+ declaredStatuses: [400, 401, 404],
672
673
  empty: false
673
674
  }, requestOptions),
674
675
  get: (input, requestOptions) => request({
@@ -686,7 +687,7 @@ function make6(options) {
686
687
  query: { location: input["location"] },
687
688
  body: { url: input["url"] },
688
689
  successStatus: 204,
689
- declaredStatuses: [400, 401],
690
+ declaredStatuses: [400, 401, 404],
690
691
  empty: true
691
692
  }, requestOptions)
692
693
  },
@@ -708,7 +709,7 @@ function make6(options) {
708
709
  query: { location: input["location"] },
709
710
  body: { methodID: input["methodID"], answer: input["answer"], label: input["label"] },
710
711
  successStatus: 200,
711
- declaredStatuses: [400, 401],
712
+ declaredStatuses: [400, 401, 404],
712
713
  empty: false
713
714
  }, requestOptions),
714
715
  status: (input, requestOptions) => request({
@@ -733,7 +734,7 @@ function make6(options) {
733
734
  path: `/api/integration/${encodeURIComponent(input.integrationID)}/connect/oauth/${encodeURIComponent(input.attemptID)}`,
734
735
  query: { location: input["location"] },
735
736
  successStatus: 204,
736
- declaredStatuses: [400, 401],
737
+ declaredStatuses: [400, 401, 404],
737
738
  empty: true
738
739
  }, requestOptions)
739
740
  },
@@ -760,7 +761,7 @@ function make6(options) {
760
761
  path: `/api/integration/${encodeURIComponent(input.integrationID)}/connect/command/${encodeURIComponent(input.attemptID)}`,
761
762
  query: { location: input["location"] },
762
763
  successStatus: 204,
763
- declaredStatuses: [400, 401],
764
+ declaredStatuses: [400, 401, 404],
764
765
  empty: true
765
766
  }, requestOptions)
766
767
  }
@@ -771,7 +772,7 @@ function make6(options) {
771
772
  path: `/api/mcp`,
772
773
  query: { location: input?.["location"] },
773
774
  successStatus: 200,
774
- declaredStatuses: [400, 401],
775
+ declaredStatuses: [400, 401, 404],
775
776
  empty: false
776
777
  }, requestOptions),
777
778
  add: (input, requestOptions) => request({
@@ -780,7 +781,7 @@ function make6(options) {
780
781
  query: { location: input["location"] },
781
782
  body: { config: input["config"] },
782
783
  successStatus: 204,
783
- declaredStatuses: [400, 401],
784
+ declaredStatuses: [400, 401, 404],
784
785
  empty: true
785
786
  }, requestOptions),
786
787
  remove: (input, requestOptions) => request({
@@ -813,7 +814,7 @@ function make6(options) {
813
814
  path: `/api/mcp/resource`,
814
815
  query: { location: input?.["location"] },
815
816
  successStatus: 200,
816
- declaredStatuses: [400, 401],
817
+ declaredStatuses: [400, 401, 404],
817
818
  empty: false
818
819
  }, requestOptions)
819
820
  }
@@ -858,7 +859,7 @@ function make6(options) {
858
859
  }, requestOptions)
859
860
  },
860
861
  project: {
861
- list: (requestOptions) => request({ method: "GET", path: `/api/project`, successStatus: 200, declaredStatuses: [400, 401], empty: false }, requestOptions),
862
+ list: (requestOptions) => request({ method: "GET", path: `/api/project`, successStatus: 200, declaredStatuses: [400, 401, 404], empty: false }, requestOptions),
862
863
  update: (input, requestOptions) => request({
863
864
  method: "PATCH",
864
865
  path: `/api/project/${encodeURIComponent(input.projectID)}`,
@@ -879,7 +880,7 @@ function make6(options) {
879
880
  path: `/api/form`,
880
881
  query: { location: input?.["location"] },
881
882
  successStatus: 200,
882
- declaredStatuses: [400, 401],
883
+ declaredStatuses: [400, 401, 404],
883
884
  empty: false
884
885
  }, requestOptions)
885
886
  },
@@ -890,7 +891,7 @@ function make6(options) {
890
891
  path: `/api/permission/request`,
891
892
  query: { location: input?.["location"] },
892
893
  successStatus: 200,
893
- declaredStatuses: [400, 401],
894
+ declaredStatuses: [400, 401, 404],
894
895
  empty: false
895
896
  }, requestOptions)
896
897
  },
@@ -900,14 +901,14 @@ function make6(options) {
900
901
  path: `/api/permission/saved`,
901
902
  query: { projectID: input?.["projectID"] },
902
903
  successStatus: 200,
903
- declaredStatuses: [400, 401],
904
+ declaredStatuses: [400, 401, 404],
904
905
  empty: false
905
906
  }, requestOptions).then((value) => value.data),
906
907
  remove: (input, requestOptions) => request({
907
908
  method: "DELETE",
908
909
  path: `/api/permission/saved/${encodeURIComponent(input.id)}`,
909
910
  successStatus: 204,
910
- declaredStatuses: [400, 401],
911
+ declaredStatuses: [400, 401, 404],
911
912
  empty: true
912
913
  }, requestOptions)
913
914
  },
@@ -965,7 +966,7 @@ function make6(options) {
965
966
  path: `/api/fs/list`,
966
967
  query: { location: input?.["location"], path: input?.["path"] },
967
968
  successStatus: 200,
968
- declaredStatuses: [400, 401],
969
+ declaredStatuses: [400, 401, 404],
969
970
  empty: false
970
971
  }, requestOptions),
971
972
  find: (input, requestOptions) => request({
@@ -973,7 +974,7 @@ function make6(options) {
973
974
  path: `/api/fs/find`,
974
975
  query: { location: input["location"], query: input["query"], type: input["type"], limit: input["limit"] },
975
976
  successStatus: 200,
976
- declaredStatuses: [400, 401],
977
+ declaredStatuses: [400, 401, 404],
977
978
  empty: false
978
979
  }, requestOptions),
979
980
  write: (input, requestOptions) => request({
@@ -982,7 +983,7 @@ function make6(options) {
982
983
  query: { location: input["location"], path: input["path"] },
983
984
  body: input["payload"],
984
985
  successStatus: 200,
985
- declaredStatuses: [400, 401],
986
+ declaredStatuses: [400, 401, 404],
986
987
  empty: false,
987
988
  binaryBody: true
988
989
  }, requestOptions)
@@ -993,7 +994,7 @@ function make6(options) {
993
994
  path: `/api/command`,
994
995
  query: { location: input?.["location"] },
995
996
  successStatus: 200,
996
- declaredStatuses: [400, 401],
997
+ declaredStatuses: [400, 401, 404],
997
998
  empty: false
998
999
  }, requestOptions)
999
1000
  },
@@ -1003,7 +1004,7 @@ function make6(options) {
1003
1004
  path: `/api/skill`,
1004
1005
  query: { location: input?.["location"] },
1005
1006
  successStatus: 200,
1006
- declaredStatuses: [400, 401],
1007
+ declaredStatuses: [400, 401, 404],
1007
1008
  empty: false
1008
1009
  }, requestOptions)
1009
1010
  },
@@ -1014,7 +1015,7 @@ function make6(options) {
1014
1015
  query: { location: input["location"] },
1015
1016
  body: { input: input["input"] },
1016
1017
  successStatus: 200,
1017
- declaredStatuses: [400, 401, 500],
1018
+ declaredStatuses: [400, 401, 404, 500],
1018
1019
  empty: false
1019
1020
  }, requestOptions)
1020
1021
  },
@@ -1027,7 +1028,7 @@ function make6(options) {
1027
1028
  path: `/api/pty`,
1028
1029
  query: { location: input?.["location"] },
1029
1030
  successStatus: 200,
1030
- declaredStatuses: [400, 401],
1031
+ declaredStatuses: [400, 401, 404],
1031
1032
  empty: false
1032
1033
  }, requestOptions),
1033
1034
  create: (input, requestOptions) => request({
@@ -1042,7 +1043,7 @@ function make6(options) {
1042
1043
  env: input?.["env"]
1043
1044
  },
1044
1045
  successStatus: 200,
1045
- declaredStatuses: [400, 401],
1046
+ declaredStatuses: [400, 401, 404],
1046
1047
  empty: false
1047
1048
  }, requestOptions),
1048
1049
  get: (input, requestOptions) => request({
@@ -1173,7 +1174,7 @@ function make6(options) {
1173
1174
  path: `/api/shell`,
1174
1175
  query: { location: input?.["location"] },
1175
1176
  successStatus: 200,
1176
- declaredStatuses: [400, 401],
1177
+ declaredStatuses: [400, 401, 404],
1177
1178
  empty: false
1178
1179
  }, requestOptions),
1179
1180
  create: (input, requestOptions) => request({
@@ -1187,7 +1188,7 @@ function make6(options) {
1187
1188
  metadata: input["metadata"]
1188
1189
  },
1189
1190
  successStatus: 200,
1190
- declaredStatuses: [400, 401],
1191
+ declaredStatuses: [400, 401, 404],
1191
1192
  empty: false
1192
1193
  }, requestOptions),
1193
1194
  get: (input, requestOptions) => request({
@@ -1211,7 +1212,7 @@ function make6(options) {
1211
1212
  path: `/api/shell/${encodeURIComponent(input.id)}`,
1212
1213
  query: { location: input["location"] },
1213
1214
  successStatus: 204,
1214
- declaredStatuses: [400, 401],
1215
+ declaredStatuses: [400, 401, 404],
1215
1216
  empty: true
1216
1217
  }, requestOptions)
1217
1218
  },
@@ -1221,7 +1222,7 @@ function make6(options) {
1221
1222
  path: `/api/reference`,
1222
1223
  query: { location: input?.["location"] },
1223
1224
  successStatus: 200,
1224
- declaredStatuses: [400, 401],
1225
+ declaredStatuses: [400, 401, 404],
1225
1226
  empty: false
1226
1227
  }, requestOptions)
1227
1228
  },
@@ -1266,12 +1267,20 @@ function make6(options) {
1266
1267
  }, requestOptions)
1267
1268
  },
1268
1269
  vcs: {
1270
+ init: (input, requestOptions) => request({
1271
+ method: "POST",
1272
+ path: `/api/vcs/init`,
1273
+ query: { location: input?.["location"], provider: input?.["provider"] },
1274
+ successStatus: 204,
1275
+ declaredStatuses: [400, 401, 404, 409, 501, 503],
1276
+ empty: true
1277
+ }, requestOptions),
1269
1278
  get: (input, requestOptions) => request({
1270
1279
  method: "GET",
1271
1280
  path: `/api/vcs`,
1272
1281
  query: { location: input?.["location"] },
1273
1282
  successStatus: 200,
1274
- declaredStatuses: [400, 401],
1283
+ declaredStatuses: [400, 401, 404],
1275
1284
  empty: false
1276
1285
  }, requestOptions),
1277
1286
  base: (input, requestOptions) => request({
@@ -1279,7 +1288,7 @@ function make6(options) {
1279
1288
  path: `/api/vcs/base`,
1280
1289
  query: { location: input?.["location"] },
1281
1290
  successStatus: 200,
1282
- declaredStatuses: [400, 401, 503],
1291
+ declaredStatuses: [400, 401, 404, 503],
1283
1292
  empty: false
1284
1293
  }, requestOptions),
1285
1294
  status: (input, requestOptions) => request({
@@ -1287,7 +1296,7 @@ function make6(options) {
1287
1296
  path: `/api/vcs/status`,
1288
1297
  query: { location: input?.["location"] },
1289
1298
  successStatus: 200,
1290
- declaredStatuses: [400, 401],
1299
+ declaredStatuses: [400, 401, 404],
1291
1300
  empty: false
1292
1301
  }, requestOptions),
1293
1302
  branch: {
@@ -1296,7 +1305,7 @@ function make6(options) {
1296
1305
  path: `/api/vcs/branch`,
1297
1306
  query: { location: input?.["location"], search: input?.["search"], limit: input?.["limit"] },
1298
1307
  successStatus: 200,
1299
- declaredStatuses: [400, 401],
1308
+ declaredStatuses: [400, 401, 404],
1300
1309
  empty: false
1301
1310
  }, requestOptions)
1302
1311
  },
@@ -1305,7 +1314,7 @@ function make6(options) {
1305
1314
  path: `/api/vcs/diff`,
1306
1315
  query: { location: input["location"], mode: input["mode"], base: input["base"], context: input["context"] },
1307
1316
  successStatus: 200,
1308
- declaredStatuses: [400, 401, 503],
1317
+ declaredStatuses: [400, 401, 404, 503],
1309
1318
  empty: false
1310
1319
  }, requestOptions)
1311
1320
  },
@@ -1345,7 +1354,7 @@ function make6(options) {
1345
1354
  path: `/api/websearch/provider`,
1346
1355
  query: { location: input?.["location"] },
1347
1356
  successStatus: 200,
1348
- declaredStatuses: [400, 401, 503],
1357
+ declaredStatuses: [400, 401, 404, 503],
1349
1358
  empty: false
1350
1359
  }, requestOptions),
1351
1360
  query: (input, requestOptions) => request({
@@ -1354,7 +1363,7 @@ function make6(options) {
1354
1363
  query: { location: input["location"] },
1355
1364
  body: { query: input["query"], providerID: input["providerID"] },
1356
1365
  successStatus: 200,
1357
- declaredStatuses: [400, 401, 503],
1366
+ declaredStatuses: [400, 401, 404, 503],
1358
1367
  empty: false
1359
1368
  }, requestOptions)
1360
1369
  },
@@ -1364,16 +1373,22 @@ function make6(options) {
1364
1373
  path: `/api/config`,
1365
1374
  query: { location: input?.["location"] },
1366
1375
  successStatus: 200,
1367
- declaredStatuses: [400, 401],
1376
+ declaredStatuses: [400, 401, 404],
1377
+ empty: false
1378
+ }, requestOptions),
1379
+ shells: (requestOptions) => request({
1380
+ method: "GET",
1381
+ path: `/api/config/shell`,
1382
+ successStatus: 200,
1383
+ declaredStatuses: [400, 401, 404],
1368
1384
  empty: false
1369
1385
  }, requestOptions),
1370
- shells: (requestOptions) => request({ method: "GET", path: `/api/config/shell`, successStatus: 200, declaredStatuses: [400, 401], empty: false }, requestOptions),
1371
1386
  update: (input, requestOptions) => request({
1372
1387
  method: "PATCH",
1373
1388
  path: `/api/experimental/config`,
1374
1389
  body: { shell: input["shell"] },
1375
1390
  successStatus: 204,
1376
- declaredStatuses: [400, 401],
1391
+ declaredStatuses: [400, 401, 404],
1377
1392
  empty: true
1378
1393
  }, requestOptions)
1379
1394
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./contract-9rqn6x4v.js";
3
+ } from "./service-version-9rqn6x4v.js";
4
4
 
5
5
  // src/rpc-runtime.ts
6
6
  var exports_rpc_runtime = {};
@@ -1,6 +1,7 @@
1
1
  // src/promise/generated/types.ts
2
2
  var isInvalidRequestError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "InvalidRequestError";
3
3
  var isUnauthorizedError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "UnauthorizedError";
4
+ var isLocationNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "LocationNotFoundError";
4
5
  var isServiceUnavailableError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ServiceUnavailableError";
5
6
  var isAgentNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "AgentNotFoundError";
6
7
  var isInvalidCursorError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "InvalidCursorError";
@@ -29,6 +30,7 @@ var isRpcInternalError2 = (value) => typeof value === "object" && value !== null
29
30
  var isPtyNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "PtyNotFoundError";
30
31
  var isForbiddenError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ForbiddenError";
31
32
  var isShellNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ShellNotFoundError";
32
- var isWorktreeError2 = (value) => typeof value === "object" && value !== null && ("name" in value) && value["name"] === "WorktreeError";
33
+ var isWorktreeError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "WorktreeError";
34
+ var isVcsInitNotSupportedError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "VcsInitNotSupportedError";
33
35
 
34
- export { isInvalidRequestError2, isUnauthorizedError2, isServiceUnavailableError2, isAgentNotFoundError2, isInvalidCursorError2, isSessionNotFoundError2, isConflictError2, isUnknownError2, isMessageNotFoundError2, isCommandNotFoundError2, isCommandExecutionError2, isSkillNotFoundError2, isSessionBusyError2, isInstructionEntryValueTooLargeError2, isFormNotFoundError2, isFormInvalidAnswerError2, isFormAlreadySettledError2, isProviderNotFoundError2, isIntegrationNotFoundError2, isIntegrationAttemptNotFoundError2, isIntegrationMethodNotFoundError2, isMcpServerNotFoundError2, isProjectNotFoundError2, isPermissionNotFoundError2, isFileNotFoundError2, isRpcError2, isRpcInternalError2, isPtyNotFoundError2, isForbiddenError2, isShellNotFoundError2, isWorktreeError2 };
36
+ export { isInvalidRequestError2, isUnauthorizedError2, isLocationNotFoundError2, isServiceUnavailableError2, isAgentNotFoundError2, isInvalidCursorError2, isSessionNotFoundError2, isConflictError2, isUnknownError2, isMessageNotFoundError2, isCommandNotFoundError2, isCommandExecutionError2, isSkillNotFoundError2, isSessionBusyError2, isInstructionEntryValueTooLargeError2, isFormNotFoundError2, isFormInvalidAnswerError2, isFormAlreadySettledError2, isProviderNotFoundError2, isIntegrationNotFoundError2, isIntegrationAttemptNotFoundError2, isIntegrationMethodNotFoundError2, isMcpServerNotFoundError2, isProjectNotFoundError2, isPermissionNotFoundError2, isFileNotFoundError2, isRpcError2, isRpcInternalError2, isPtyNotFoundError2, isForbiddenError2, isShellNotFoundError2, isWorktreeError2, isVcsInitNotSupportedError2 };
@@ -3,10 +3,10 @@ import {
3
3
  readError2,
4
4
  event2,
5
5
  eventType2
6
- } from "./contract-t1xa31vm.js";
6
+ } from "./service-version-t1xa31vm.js";
7
7
  import {
8
8
  __export
9
- } from "./contract-9rqn6x4v.js";
9
+ } from "./service-version-9rqn6x4v.js";
10
10
 
11
11
  // src/effect/rpc.ts
12
12
  var exports_rpc = {};
package/dist/contract.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  effectOmitEndpoints2,
4
4
  groupNames2,
5
5
  promiseOmitEndpoints2
6
- } from "./chunks/contract-vmytr4q8.js";
6
+ } from "./chunks/service-version-vmytr4q8.js";
7
7
  export {
8
8
  ClientApi2 as ClientApi,
9
9
  effectOmitEndpoints2 as effectOmitEndpoints,