@opencode/client 0.0.0-dev-1302 → 0.0.0-dev-1304

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 (67) hide show
  1. package/dist/chunks/{contract-xc262c29.js → service-2xxned0e.js} +6 -6
  2. package/dist/chunks/{contract-k08hsd4a.js → service-49q9zpks.js} +9 -9
  3. package/dist/chunks/{contract-5a9sek8y.js → service-5bwjzgt1.js} +20 -21
  4. package/dist/chunks/{contract-b6kzr061.js → service-6hqrj29e.js} +2 -2
  5. package/dist/chunks/{contract-2ny4vxct.js → service-8ye1ye6f.js} +2 -2
  6. package/dist/chunks/{contract-sqcsh66p.js → service-gecjxyvt.js} +4 -4
  7. package/dist/chunks/{contract-7fbxmab6.js → service-hymesegy.js} +2 -2
  8. package/dist/chunks/{contract-dvkthykg.js → service-mqnb71k6.js} +1 -1
  9. package/dist/chunks/{contract-18xz77sd.js → service-myz4ngx9.js} +5 -5
  10. package/dist/chunks/{contract-10v1erad.js → service-nmmc7qpz.js} +14 -15
  11. package/dist/chunks/{contract-ryy6kscr.js → service-ryy6kscr.js} +1 -1
  12. package/dist/chunks/{contract-j9cqx0dj.js → service-xafd70ys.js} +1 -1
  13. package/dist/contract.js +1 -1
  14. package/dist/effect/api/api.d.ts +38 -38
  15. package/dist/effect/client.d.ts +7 -239
  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 +8 -240
  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 +4 -4
  23. package/dist/effect/service.js +6 -6
  24. package/dist/promise/client.d.ts +7 -7
  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 +8 -8
  28. package/dist/promise/generated/client.js +2 -2
  29. package/dist/promise/generated/index.js +6 -6
  30. package/dist/promise/generated/types.d.ts +110 -124
  31. package/dist/promise/generated/types.js +3 -3
  32. package/dist/promise/index.js +11 -11
  33. package/dist/promise/media.d.ts +7 -7
  34. package/dist/promise/media.js +1 -1
  35. package/dist/promise/rpc.js +2 -2
  36. package/dist/promise/service.js +6 -6
  37. package/dist/pty-handoff.js +4 -4
  38. package/dist/rpc-runtime.js +1 -1
  39. package/dist/service-contender.js +1 -1
  40. package/dist/service-probe.js +3 -3
  41. package/dist/service-timing.js +1 -1
  42. package/dist/service-version.js +1 -1
  43. package/dist/service.js +1 -1
  44. package/dist/shared-events.js +3 -3
  45. package/dist/solid/connection.js +1 -1
  46. package/dist/solid/data.js +10 -10
  47. package/dist/solid/index.js +14 -14
  48. package/dist/solid/pty.js +1 -1
  49. package/dist/solid/retention.js +1 -1
  50. package/dist/solid/usage.js +1 -1
  51. package/package.json +4 -4
  52. /package/dist/chunks/{contract-3eaz3m83.js → service-3eaz3m83.js} +0 -0
  53. /package/dist/chunks/{contract-60xe5cbf.js → service-60xe5cbf.js} +0 -0
  54. /package/dist/chunks/{contract-6mptkzbc.js → service-6mptkzbc.js} +0 -0
  55. /package/dist/chunks/{contract-6mq2wh8y.js → service-6mq2wh8y.js} +0 -0
  56. /package/dist/chunks/{contract-6r38tsk5.js → service-6r38tsk5.js} +0 -0
  57. /package/dist/chunks/{contract-7f0py9js.js → service-7f0py9js.js} +0 -0
  58. /package/dist/chunks/{contract-8s2anffy.js → service-8s2anffy.js} +0 -0
  59. /package/dist/chunks/{contract-9rqn6x4v.js → service-9rqn6x4v.js} +0 -0
  60. /package/dist/chunks/{contract-js54wxgp.js → service-js54wxgp.js} +0 -0
  61. /package/dist/chunks/{contract-mwrzahmf.js → service-mwrzahmf.js} +0 -0
  62. /package/dist/chunks/{contract-qav6mfdz.js → service-qav6mfdz.js} +0 -0
  63. /package/dist/chunks/{contract-sxt88q69.js → service-sxt88q69.js} +0 -0
  64. /package/dist/chunks/{contract-ve4aws36.js → service-ve4aws36.js} +0 -0
  65. /package/dist/chunks/{contract-vyas3vgt.js → service-vyas3vgt.js} +0 -0
  66. /package/dist/chunks/{contract-xgnj2w4v.js → service-xgnj2w4v.js} +0 -0
  67. /package/dist/chunks/{contract-ydhz1zrh.js → service-ydhz1zrh.js} +0 -0
@@ -1,15 +1,15 @@
1
1
  import {
2
- make6
3
- } from "./contract-sqcsh66p.js";
2
+ make7
3
+ } from "./service-gecjxyvt.js";
4
4
  import {
5
5
  make3
6
- } from "./contract-10v1erad.js";
6
+ } from "./service-nmmc7qpz.js";
7
7
  import {
8
8
  makeRpc2
9
- } from "./contract-j9cqx0dj.js";
9
+ } from "./service-xafd70ys.js";
10
10
  import {
11
11
  __export
12
- } from "./contract-9rqn6x4v.js";
12
+ } from "./service-9rqn6x4v.js";
13
13
 
14
14
  // src/promise/client.ts
15
15
  var exports_client = {};
@@ -19,7 +19,7 @@ __export(exports_client, {
19
19
  });
20
20
  function make2(options) {
21
21
  const raw = make3(options);
22
- const events = make6((signal, onActivity) => raw.event.subscribe(undefined, { signal, onActivity }));
22
+ const events = make7((signal, onActivity) => raw.event.subscribe(undefined, { signal, onActivity }));
23
23
  return {
24
24
  ...raw,
25
25
  rpc: Object.assign(makeRpc2(raw, events), raw.rpc),
@@ -1,19 +1,19 @@
1
1
  import {
2
- make6
3
- } from "./contract-sqcsh66p.js";
2
+ make7
3
+ } from "./service-gecjxyvt.js";
4
4
  import {
5
5
  ClientError3
6
- } from "./contract-7f0py9js.js";
6
+ } from "./service-7f0py9js.js";
7
7
  import {
8
8
  make5
9
- } from "./contract-5a9sek8y.js";
9
+ } from "./service-5bwjzgt1.js";
10
10
  import {
11
- make7,
11
+ make6,
12
12
  aborted2
13
- } from "./contract-18xz77sd.js";
13
+ } from "./service-myz4ngx9.js";
14
14
  import {
15
15
  __export
16
- } from "./contract-9rqn6x4v.js";
16
+ } from "./service-9rqn6x4v.js";
17
17
 
18
18
  // src/effect/client.ts
19
19
  var exports_client3 = {};
@@ -40,12 +40,12 @@ var make4 = Effect.fn("OpenCode.make")(function* (options) {
40
40
  this.cause = cause;
41
41
  }
42
42
  }
43
- const shared = make6((signal) => Stream.toAsyncIterableWith(native.pipe(Stream.interruptWhen(aborted2(signal)), Stream.catchCause((cause) => Stream.fail(new EventFailure(cause)))), context));
43
+ const shared = make7((signal) => Stream.toAsyncIterableWith(native.pipe(Stream.interruptWhen(aborted2(signal)), Stream.catchCause((cause) => Stream.fail(new EventFailure(cause)))), context));
44
44
  const subscribe = (input) => Stream.fromAsyncIterable(shared.subscribe({ types: input?.types }), (error) => error).pipe(Stream.catch((error) => Stream.failCause(error instanceof EventFailure ? error.cause : Cause.fail(new ClientError3({ cause: error })))));
45
45
  return {
46
46
  ...raw,
47
47
  event: { ...raw.event, subscribe },
48
- rpc: Object.assign(make7((input, options) => raw.rpc.call(input).pipe(Effect.provideService(CurrentHeaders, options?.headers)), subscribe), raw.rpc)
48
+ rpc: Object.assign(make6((input, options) => raw.rpc.call(input).pipe(Effect.provideService(CurrentHeaders, options?.headers)), subscribe), raw.rpc)
49
49
  };
50
50
  });
51
51
 
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ClientApi2
3
- } from "./contract-60xe5cbf.js";
3
+ } from "./service-60xe5cbf.js";
4
4
  import {
5
5
  ClientError3
6
- } from "./contract-7f0py9js.js";
6
+ } from "./service-7f0py9js.js";
7
7
  import {
8
8
  __export
9
- } from "./contract-9rqn6x4v.js";
9
+ } from "./service-9rqn6x4v.js";
10
10
 
11
11
  // src/effect/generated/client.ts
12
12
  var exports_client4 = {};
@@ -563,22 +563,21 @@ var EndpointExperimentalPersistentPtyConnectToken = (raw) => (input) => preserve
563
563
  params: { ptyID: input["ptyID"] },
564
564
  headers: { "x-opencode-ticket": input["x-opencode-ticket"] }
565
565
  }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
566
- var EndpointExperimentalScheduleCreate = (raw) => (input) => preserveEffect()(raw["schedule.create"]({
566
+ var EndpointExperimentalAutomationCreate = (raw) => (input) => preserveEffect()(raw["automation.create"]({
567
567
  payload: {
568
568
  sessionID: input["sessionID"],
569
+ directory: input["directory"],
569
570
  name: input["name"],
570
- when: input["when"],
571
- if: input["if"],
572
- until: input["until"],
573
- ends: input["ends"],
574
- prompt: input["prompt"]
571
+ trigger: input["trigger"],
572
+ action: input["action"],
573
+ expires: input["expires"]
575
574
  }
576
575
  }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
577
- var EndpointExperimentalScheduleList = (raw) => (input) => preserveEffect()(raw["schedule.list"]({ query: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
578
- var EndpointExperimentalScheduleGet = (raw) => (input) => preserveEffect()(raw["schedule.get"]({ params: { scheduleID: input["scheduleID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
579
- var EndpointExperimentalSchedulePause = (raw) => (input) => preserveEffect()(raw["schedule.pause"]({ params: { scheduleID: input["scheduleID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
580
- var EndpointExperimentalScheduleResume = (raw) => (input) => preserveEffect()(raw["schedule.resume"]({ params: { scheduleID: input["scheduleID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
581
- var EndpointExperimentalScheduleDelete = (raw) => (input) => preserveEffect()(raw["schedule.delete"]({ params: { scheduleID: input["scheduleID"] } }).pipe(Effect.mapError(mapClientError)));
576
+ var EndpointExperimentalAutomationList = (raw) => (input) => preserveEffect()(raw["automation.list"]({ query: { sessionID: input?.["sessionID"], directory: input?.["directory"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
577
+ var EndpointExperimentalAutomationGet = (raw) => (input) => preserveEffect()(raw["automation.get"]({ params: { automationID: input["automationID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
578
+ var EndpointExperimentalAutomationPause = (raw) => (input) => preserveEffect()(raw["automation.pause"]({ params: { automationID: input["automationID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
579
+ var EndpointExperimentalAutomationResume = (raw) => (input) => preserveEffect()(raw["automation.resume"]({ params: { automationID: input["automationID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
580
+ var EndpointExperimentalAutomationDelete = (raw) => (input) => preserveEffect()(raw["automation.delete"]({ params: { automationID: input["automationID"] } }).pipe(Effect.mapError(mapClientError)));
582
581
  var EndpointExperimentalArtifactsProviders = (raw) => (input) => preserveEffect()(raw["artifacts.providers"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
583
582
  var EndpointExperimentalArtifactsList = (raw) => (input) => preserveEffect()(raw["artifacts.list"]({
584
583
  query: { location: input?.["location"], sessionID: input?.["sessionID"], provider: input?.["provider"] }
@@ -627,13 +626,13 @@ var adaptGroupExperimental = (raw) => ({
627
626
  remove: EndpointExperimentalPersistentPtyRemove(raw),
628
627
  connectToken: EndpointExperimentalPersistentPtyConnectToken(raw)
629
628
  },
630
- schedule: {
631
- create: EndpointExperimentalScheduleCreate(raw),
632
- list: EndpointExperimentalScheduleList(raw),
633
- get: EndpointExperimentalScheduleGet(raw),
634
- pause: EndpointExperimentalSchedulePause(raw),
635
- resume: EndpointExperimentalScheduleResume(raw),
636
- delete: EndpointExperimentalScheduleDelete(raw)
629
+ automation: {
630
+ create: EndpointExperimentalAutomationCreate(raw),
631
+ list: EndpointExperimentalAutomationList(raw),
632
+ get: EndpointExperimentalAutomationGet(raw),
633
+ pause: EndpointExperimentalAutomationPause(raw),
634
+ resume: EndpointExperimentalAutomationResume(raw),
635
+ delete: EndpointExperimentalAutomationDelete(raw)
637
636
  },
638
637
  artifacts: {
639
638
  providers: EndpointExperimentalArtifactsProviders(raw),
@@ -37,10 +37,10 @@ var isRpcInternalError2 = (value) => typeof value === "object" && value !== null
37
37
  var isPtyNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "PtyNotFoundError";
38
38
  var isPtyFeatureUnsupportedError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "PtyFeatureUnsupportedError";
39
39
  var isBlobNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "BlobNotFoundError";
40
- var isScheduleNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ScheduleNotFoundError";
40
+ var isAutomationNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "AutomationNotFoundError";
41
41
  var isArtifactNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ArtifactNotFoundError";
42
42
  var isShellNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ShellNotFoundError";
43
43
  var isWorktreeError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "WorktreeError";
44
44
  var isVcsInitNotSupportedError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "VcsInitNotSupportedError";
45
45
 
46
- export { isInvalidRequestError2, isUnauthorizedError2, isLocationNotFoundError2, isServiceUnavailableError2, isAgentNotFoundError2, isPluginNotFoundError2, isInvalidCursorError2, isSessionNotFoundError2, isMessageNotFoundError2, isConflictError2, isCommandNotFoundError2, isCommandExecutionError2, isSessionBusyError2, isUnknownError2, isFormNotFoundError2, isFormInvalidAnswerError2, isFormAlreadySettledError2, isSkillNotFoundError2, isInstructionEntryValueTooLargeError2, isProviderNotFoundError2, isModelNotFoundError2, isUnsupportedModelError2, isProviderRequestError2, isForbiddenError2, isVideoNotFoundError2, isIntegrationNotFoundError2, isIntegrationAttemptNotFoundError2, isIntegrationMethodNotFoundError2, isMcpServerNotFoundError2, isProjectNotFoundError2, isPermissionSavedNotFoundError2, isPermissionNotFoundError2, isFileNotFoundError2, isRpcError2, isRpcInternalError2, isPtyNotFoundError2, isPtyFeatureUnsupportedError2, isBlobNotFoundError2, isScheduleNotFoundError2, isArtifactNotFoundError2, isShellNotFoundError2, isWorktreeError2, isVcsInitNotSupportedError2 };
46
+ export { isInvalidRequestError2, isUnauthorizedError2, isLocationNotFoundError2, isServiceUnavailableError2, isAgentNotFoundError2, isPluginNotFoundError2, isInvalidCursorError2, isSessionNotFoundError2, isMessageNotFoundError2, isConflictError2, isCommandNotFoundError2, isCommandExecutionError2, isSessionBusyError2, isUnknownError2, isFormNotFoundError2, isFormInvalidAnswerError2, isFormAlreadySettledError2, isSkillNotFoundError2, isInstructionEntryValueTooLargeError2, isProviderNotFoundError2, isModelNotFoundError2, isUnsupportedModelError2, isProviderRequestError2, isForbiddenError2, isVideoNotFoundError2, isIntegrationNotFoundError2, isIntegrationAttemptNotFoundError2, isIntegrationMethodNotFoundError2, isMcpServerNotFoundError2, isProjectNotFoundError2, isPermissionSavedNotFoundError2, isPermissionNotFoundError2, isFileNotFoundError2, isRpcError2, isRpcInternalError2, isPtyNotFoundError2, isPtyFeatureUnsupportedError2, isBlobNotFoundError2, isAutomationNotFoundError2, isArtifactNotFoundError2, isShellNotFoundError2, isWorktreeError2, isVcsInitNotSupportedError2 };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  defaultEnsureTiming2
3
- } from "./contract-xgnj2w4v.js";
3
+ } from "./service-xgnj2w4v.js";
4
4
  import {
5
5
  matchesVersion2
6
- } from "./contract-sxt88q69.js";
6
+ } from "./service-sxt88q69.js";
7
7
 
8
8
  // src/service-probe.ts
9
9
  import { homedir } from "node:os";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  __export
3
- } from "./contract-9rqn6x4v.js";
3
+ } from "./service-9rqn6x4v.js";
4
4
 
5
5
  // src/shared-events.ts
6
6
  var exports_shared_events = {};
7
7
  __export(exports_shared_events, {
8
8
  SharedEvents: () => exports_shared_events,
9
- make: () => make6
9
+ make: () => make7
10
10
  });
11
- function make6(connect) {
11
+ function make7(connect) {
12
12
  let current;
13
13
  const capacity = 4096;
14
14
  function stop(connection) {
@@ -146,4 +146,4 @@ function make6(connect) {
146
146
  };
147
147
  }
148
148
 
149
- export { make6, exports_shared_events };
149
+ export { make7, exports_shared_events };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  headers2
3
- } from "./contract-2ny4vxct.js";
3
+ } from "./service-8ye1ye6f.js";
4
4
  import {
5
5
  __export
6
- } from "./contract-9rqn6x4v.js";
6
+ } from "./service-9rqn6x4v.js";
7
7
 
8
8
  // src/pty-handoff.ts
9
9
  var exports_pty_handoff = {};
@@ -4,7 +4,7 @@ import {
4
4
  isFormNotFoundError2,
5
5
  isFormAlreadySettledError2,
6
6
  isPermissionNotFoundError2
7
- } from "./contract-b6kzr061.js";
7
+ } from "./service-6hqrj29e.js";
8
8
 
9
9
  // src/solid/data.ts
10
10
  import { Worktree } from "@opencode/schema/worktree";
@@ -3,20 +3,20 @@ import {
3
3
  readError2,
4
4
  event2,
5
5
  eventType2
6
- } from "./contract-ryy6kscr.js";
6
+ } from "./service-ryy6kscr.js";
7
7
  import {
8
8
  __export
9
- } from "./contract-9rqn6x4v.js";
9
+ } from "./service-9rqn6x4v.js";
10
10
 
11
11
  // src/effect/rpc.ts
12
12
  var exports_rpc = {};
13
13
  __export(exports_rpc, {
14
14
  RpcClientRuntime: () => exports_rpc,
15
15
  aborted: () => aborted2,
16
- make: () => make7
16
+ make: () => make6
17
17
  });
18
18
  import { Effect, Stream } from "effect";
19
- function make7(call, subscribe) {
19
+ function make6(call, subscribe) {
20
20
  return (definition) => {
21
21
  const methods = Object.fromEntries(Object.entries(definition.methods).map(([name, method]) => [
22
22
  name,
@@ -59,4 +59,4 @@ function aborted2(signal) {
59
59
  });
60
60
  }
61
61
 
62
- export { make7, aborted2, exports_rpc };
62
+ export { make6, aborted2, exports_rpc };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ClientError2
3
- } from "./contract-js54wxgp.js";
3
+ } from "./service-js54wxgp.js";
4
4
  import {
5
5
  __export
6
- } from "./contract-9rqn6x4v.js";
6
+ } from "./service-9rqn6x4v.js";
7
7
 
8
8
  // src/promise/generated/client.ts
9
9
  var exports_client2 = {};
@@ -893,18 +893,17 @@ function make3(options) {
893
893
  binary: true
894
894
  }, requestOptions)
895
895
  },
896
- schedule: {
896
+ automation: {
897
897
  create: (input, requestOptions) => request({
898
898
  method: "POST",
899
- path: `/api/experimental/schedule`,
899
+ path: `/api/experimental/automation`,
900
900
  body: {
901
901
  sessionID: input["sessionID"],
902
+ directory: input["directory"],
902
903
  name: input["name"],
903
- when: input["when"],
904
- if: input["if"],
905
- until: input["until"],
906
- ends: input["ends"],
907
- prompt: input["prompt"]
904
+ trigger: input["trigger"],
905
+ action: input["action"],
906
+ expires: input["expires"]
908
907
  },
909
908
  successStatus: 200,
910
909
  declaredStatuses: [400, 401, 403, 404],
@@ -912,36 +911,36 @@ function make3(options) {
912
911
  }, requestOptions).then((value) => value.data),
913
912
  list: (input, requestOptions) => request({
914
913
  method: "GET",
915
- path: `/api/experimental/schedule`,
916
- query: { sessionID: input["sessionID"] },
914
+ path: `/api/experimental/automation`,
915
+ query: { sessionID: input?.["sessionID"], directory: input?.["directory"] },
917
916
  successStatus: 200,
918
917
  declaredStatuses: [400, 401, 403, 404],
919
918
  empty: false
920
919
  }, requestOptions).then((value) => value.data),
921
920
  get: (input, requestOptions) => request({
922
921
  method: "GET",
923
- path: `/api/experimental/schedule/${encodeURIComponent(input.scheduleID)}`,
922
+ path: `/api/experimental/automation/${encodeURIComponent(input.automationID)}`,
924
923
  successStatus: 200,
925
924
  declaredStatuses: [400, 401, 403, 404],
926
925
  empty: false
927
926
  }, requestOptions).then((value) => value.data),
928
927
  pause: (input, requestOptions) => request({
929
928
  method: "POST",
930
- path: `/api/experimental/schedule/${encodeURIComponent(input.scheduleID)}/pause`,
929
+ path: `/api/experimental/automation/${encodeURIComponent(input.automationID)}/pause`,
931
930
  successStatus: 200,
932
931
  declaredStatuses: [400, 401, 403, 404],
933
932
  empty: false
934
933
  }, requestOptions).then((value) => value.data),
935
934
  resume: (input, requestOptions) => request({
936
935
  method: "POST",
937
- path: `/api/experimental/schedule/${encodeURIComponent(input.scheduleID)}/resume`,
936
+ path: `/api/experimental/automation/${encodeURIComponent(input.automationID)}/resume`,
938
937
  successStatus: 200,
939
938
  declaredStatuses: [400, 401, 403, 404],
940
939
  empty: false
941
940
  }, requestOptions).then((value) => value.data),
942
941
  delete: (input, requestOptions) => request({
943
942
  method: "DELETE",
944
- path: `/api/experimental/schedule/${encodeURIComponent(input.scheduleID)}`,
943
+ path: `/api/experimental/automation/${encodeURIComponent(input.automationID)}`,
945
944
  successStatus: 204,
946
945
  declaredStatuses: [400, 401, 403, 404],
947
946
  empty: true
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./contract-9rqn6x4v.js";
3
+ } from "./service-9rqn6x4v.js";
4
4
 
5
5
  // src/rpc-runtime.ts
6
6
  var exports_rpc_runtime = {};
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isRpcError2,
3
3
  isRpcInternalError2
4
- } from "./contract-b6kzr061.js";
4
+ } from "./service-6hqrj29e.js";
5
5
 
6
6
  // src/promise/rpc.ts
7
7
  function makeRpc2(raw, events) {
package/dist/contract.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  effectOmitEndpoints2,
5
5
  groupNames2,
6
6
  promiseOmitEndpoints2
7
- } from "./chunks/contract-60xe5cbf.js";
7
+ } from "./chunks/service-60xe5cbf.js";
8
8
  export {
9
9
  ClientApi2 as ClientApi,
10
10
  clientNamespace2 as clientNamespace,
@@ -36,7 +36,7 @@ import type { FileSystem } from "@opencode/schema/filesystem";
36
36
  import type { Command } from "@opencode/schema/command";
37
37
  import type { OpenCodeEvent } from "@opencode/protocol/groups/event";
38
38
  import type { Pty } from "@opencode/schema/pty";
39
- import type { Schedule } from "@opencode/schema/schedule";
39
+ import type { Automation } from "@opencode/schema/automation";
40
40
  import type { Artifact } from "@opencode/schema/artifact";
41
41
  import type { Job } from "@opencode/schema/job";
42
42
  import type { Reference } from "@opencode/schema/reference";
@@ -2750,42 +2750,42 @@ export type ExperimentalPersistentPtyConnectTokenInput = {
2750
2750
  };
2751
2751
  export type ExperimentalPersistentPtyConnectTokenOutput = PtyTicket.ConnectToken;
2752
2752
  export type ExperimentalPersistentPtyConnectTokenOperation<E = never> = (input: ExperimentalPersistentPtyConnectTokenInput) => Effect.Effect<ExperimentalPersistentPtyConnectTokenOutput, E>;
2753
- export type ExperimentalScheduleCreateInput = {
2754
- readonly sessionID: Session.ID;
2755
- readonly name?: string | undefined;
2756
- readonly when?: Schedule.WhenInput | undefined;
2757
- readonly if?: Schedule.ConditionInput | undefined;
2758
- readonly until?: Schedule.ConditionInput | undefined;
2759
- readonly ends?: Schedule.Ends | undefined;
2760
- readonly prompt: string;
2753
+ export type ExperimentalAutomationCreateInput = {
2754
+ readonly sessionID?: Session.ID | undefined;
2755
+ readonly directory?: string | undefined;
2756
+ readonly name: string;
2757
+ readonly trigger: Automation.Trigger;
2758
+ readonly action: Automation.ActionInput;
2759
+ readonly expires?: string | undefined;
2761
2760
  };
2762
- export type ExperimentalScheduleCreateOutput = Schedule.Info;
2763
- export type ExperimentalScheduleCreateOperation<E = never> = (input: ExperimentalScheduleCreateInput) => Effect.Effect<ExperimentalScheduleCreateOutput, E>;
2764
- export type ExperimentalScheduleListInput = {
2765
- readonly sessionID: Session.ID;
2761
+ export type ExperimentalAutomationCreateOutput = Automation.Info;
2762
+ export type ExperimentalAutomationCreateOperation<E = never> = (input: ExperimentalAutomationCreateInput) => Effect.Effect<ExperimentalAutomationCreateOutput, E>;
2763
+ export type ExperimentalAutomationListInput = {
2764
+ readonly sessionID?: Session.ID | undefined;
2765
+ readonly directory?: string | undefined;
2766
2766
  };
2767
- export type ExperimentalScheduleListOutput = ReadonlyArray<Schedule.Info>;
2768
- export type ExperimentalScheduleListOperation<E = never> = (input: ExperimentalScheduleListInput) => Effect.Effect<ExperimentalScheduleListOutput, E>;
2769
- export type ExperimentalScheduleGetInput = {
2770
- readonly scheduleID: Schedule.ID;
2767
+ export type ExperimentalAutomationListOutput = ReadonlyArray<Automation.Info>;
2768
+ export type ExperimentalAutomationListOperation<E = never> = (input?: ExperimentalAutomationListInput) => Effect.Effect<ExperimentalAutomationListOutput, E>;
2769
+ export type ExperimentalAutomationGetInput = {
2770
+ readonly automationID: Automation.ID;
2771
2771
  };
2772
- export type ExperimentalScheduleGetOutput = Schedule.Info;
2773
- export type ExperimentalScheduleGetOperation<E = never> = (input: ExperimentalScheduleGetInput) => Effect.Effect<ExperimentalScheduleGetOutput, E>;
2774
- export type ExperimentalSchedulePauseInput = {
2775
- readonly scheduleID: Schedule.ID;
2772
+ export type ExperimentalAutomationGetOutput = Automation.Info;
2773
+ export type ExperimentalAutomationGetOperation<E = never> = (input: ExperimentalAutomationGetInput) => Effect.Effect<ExperimentalAutomationGetOutput, E>;
2774
+ export type ExperimentalAutomationPauseInput = {
2775
+ readonly automationID: Automation.ID;
2776
2776
  };
2777
- export type ExperimentalSchedulePauseOutput = Schedule.Info;
2778
- export type ExperimentalSchedulePauseOperation<E = never> = (input: ExperimentalSchedulePauseInput) => Effect.Effect<ExperimentalSchedulePauseOutput, E>;
2779
- export type ExperimentalScheduleResumeInput = {
2780
- readonly scheduleID: Schedule.ID;
2777
+ export type ExperimentalAutomationPauseOutput = Automation.Info;
2778
+ export type ExperimentalAutomationPauseOperation<E = never> = (input: ExperimentalAutomationPauseInput) => Effect.Effect<ExperimentalAutomationPauseOutput, E>;
2779
+ export type ExperimentalAutomationResumeInput = {
2780
+ readonly automationID: Automation.ID;
2781
2781
  };
2782
- export type ExperimentalScheduleResumeOutput = Schedule.Info;
2783
- export type ExperimentalScheduleResumeOperation<E = never> = (input: ExperimentalScheduleResumeInput) => Effect.Effect<ExperimentalScheduleResumeOutput, E>;
2784
- export type ExperimentalScheduleDeleteInput = {
2785
- readonly scheduleID: Schedule.ID;
2782
+ export type ExperimentalAutomationResumeOutput = Automation.Info;
2783
+ export type ExperimentalAutomationResumeOperation<E = never> = (input: ExperimentalAutomationResumeInput) => Effect.Effect<ExperimentalAutomationResumeOutput, E>;
2784
+ export type ExperimentalAutomationDeleteInput = {
2785
+ readonly automationID: Automation.ID;
2786
2786
  };
2787
- export type ExperimentalScheduleDeleteOutput = void;
2788
- export type ExperimentalScheduleDeleteOperation<E = never> = (input: ExperimentalScheduleDeleteInput) => Effect.Effect<ExperimentalScheduleDeleteOutput, E>;
2787
+ export type ExperimentalAutomationDeleteOutput = void;
2788
+ export type ExperimentalAutomationDeleteOperation<E = never> = (input: ExperimentalAutomationDeleteInput) => Effect.Effect<ExperimentalAutomationDeleteOutput, E>;
2789
2789
  export type ExperimentalArtifactsProvidersInput = {
2790
2790
  readonly location?: {
2791
2791
  readonly directory?: string | undefined;
@@ -2882,13 +2882,13 @@ export interface ExperimentalApi<E = never> {
2882
2882
  readonly remove: ExperimentalPersistentPtyRemoveOperation<E>;
2883
2883
  readonly connectToken: ExperimentalPersistentPtyConnectTokenOperation<E>;
2884
2884
  };
2885
- readonly schedule: {
2886
- readonly create: ExperimentalScheduleCreateOperation<E>;
2887
- readonly list: ExperimentalScheduleListOperation<E>;
2888
- readonly get: ExperimentalScheduleGetOperation<E>;
2889
- readonly pause: ExperimentalSchedulePauseOperation<E>;
2890
- readonly resume: ExperimentalScheduleResumeOperation<E>;
2891
- readonly delete: ExperimentalScheduleDeleteOperation<E>;
2885
+ readonly automation: {
2886
+ readonly create: ExperimentalAutomationCreateOperation<E>;
2887
+ readonly list: ExperimentalAutomationListOperation<E>;
2888
+ readonly get: ExperimentalAutomationGetOperation<E>;
2889
+ readonly pause: ExperimentalAutomationPauseOperation<E>;
2890
+ readonly resume: ExperimentalAutomationResumeOperation<E>;
2891
+ readonly delete: ExperimentalAutomationDeleteOperation<E>;
2892
2892
  };
2893
2893
  readonly artifacts: {
2894
2894
  readonly providers: ExperimentalArtifactsProvidersOperation<E>;