@opencode/client 0.0.0-dev-210 → 0.0.0-dev-220

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 (64) hide show
  1. package/dist/chunks/{service-contender-bwabkrm6.js → service-timing-6kf08f7d.js} +2 -2
  2. package/dist/chunks/{service-contender-8ye1ye6f.js → service-timing-8ye1ye6f.js} +2 -2
  3. package/dist/chunks/{service-contender-khkm0pf7.js → service-timing-csehnca4.js} +1 -1
  4. package/dist/chunks/{service-contender-0f3b9fnq.js → service-timing-cvg5j6d1.js} +2 -1
  5. package/dist/chunks/{service-contender-ek8qkqrq.js → service-timing-e9tdq5f3.js} +4 -4
  6. package/dist/chunks/{service-contender-8mywvvwh.js → service-timing-ezgsckc2.js} +28 -6
  7. package/dist/chunks/{service-contender-gecjxyvt.js → service-timing-gecjxyvt.js} +1 -1
  8. package/dist/chunks/{service-contender-z11mztjj.js → service-timing-kdshn947.js} +1 -1
  9. package/dist/chunks/{service-contender-anregfhs.js → service-timing-myz4ngx9.js} +5 -5
  10. package/dist/chunks/{service-contender-sp3vqdnr.js → service-timing-nf58s6mc.js} +54 -2
  11. package/dist/chunks/{service-contender-ryy6kscr.js → service-timing-ryy6kscr.js} +1 -1
  12. package/dist/chunks/{service-contender-ph0x2cx8.js → service-timing-zhqzgfm1.js} +9 -9
  13. package/dist/contract.js +1 -1
  14. package/dist/effect/api/api.d.ts +43 -0
  15. package/dist/effect/client.d.ts +156 -0
  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 +157 -1
  19. package/dist/effect/generated/client.js +5 -5
  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 +8 -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 +9 -1
  28. package/dist/promise/generated/client.js +2 -2
  29. package/dist/promise/generated/index.js +8 -6
  30. package/dist/promise/generated/types.d.ts +127 -4
  31. package/dist/promise/generated/types.js +3 -1
  32. package/dist/promise/index.js +12 -10
  33. package/dist/promise/rpc.js +2 -2
  34. package/dist/promise/service.js +6 -6
  35. package/dist/pty-handoff.js +4 -4
  36. package/dist/rpc-runtime.js +1 -1
  37. package/dist/service-contender.js +1 -1
  38. package/dist/service-probe.js +3 -3
  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 +13 -13
  46. package/dist/solid/pty.js +1 -1
  47. package/dist/solid/retention.js +1 -1
  48. package/dist/solid/usage.js +1 -1
  49. package/package.json +4 -4
  50. /package/dist/chunks/{service-contender-60xe5cbf.js → service-timing-60xe5cbf.js} +0 -0
  51. /package/dist/chunks/{service-contender-6mptkzbc.js → service-timing-6mptkzbc.js} +0 -0
  52. /package/dist/chunks/{service-contender-6mq2wh8y.js → service-timing-6mq2wh8y.js} +0 -0
  53. /package/dist/chunks/{service-contender-7f0py9js.js → service-timing-7f0py9js.js} +0 -0
  54. /package/dist/chunks/{service-contender-8s2anffy.js → service-timing-8s2anffy.js} +0 -0
  55. /package/dist/chunks/{service-contender-9rqn6x4v.js → service-timing-9rqn6x4v.js} +0 -0
  56. /package/dist/chunks/{service-contender-gne7h7mq.js → service-timing-gne7h7mq.js} +0 -0
  57. /package/dist/chunks/{service-contender-js54wxgp.js → service-timing-js54wxgp.js} +0 -0
  58. /package/dist/chunks/{service-contender-m2eywc8w.js → service-timing-m2eywc8w.js} +0 -0
  59. /package/dist/chunks/{service-contender-qav6mfdz.js → service-timing-qav6mfdz.js} +0 -0
  60. /package/dist/chunks/{service-contender-sxt88q69.js → service-timing-sxt88q69.js} +0 -0
  61. /package/dist/chunks/{service-contender-ve4aws36.js → service-timing-ve4aws36.js} +0 -0
  62. /package/dist/chunks/{service-contender-vyas3vgt.js → service-timing-vyas3vgt.js} +0 -0
  63. /package/dist/chunks/{service-contender-xgnj2w4v.js → service-timing-xgnj2w4v.js} +0 -0
  64. /package/dist/chunks/{service-contender-ydhz1zrh.js → service-timing-ydhz1zrh.js} +0 -0
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  headers2
3
- } from "./service-contender-8ye1ye6f.js";
3
+ } from "./service-timing-8ye1ye6f.js";
4
4
  import {
5
5
  __export
6
- } from "./service-contender-9rqn6x4v.js";
6
+ } from "./service-timing-9rqn6x4v.js";
7
7
 
8
8
  // src/pty-handoff.ts
9
9
  var exports_pty_handoff = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  defaultEnsureTiming2
3
- } from "./service-contender-xgnj2w4v.js";
3
+ } from "./service-timing-xgnj2w4v.js";
4
4
  import {
5
5
  matchesVersion2
6
- } from "./service-contender-sxt88q69.js";
6
+ } from "./service-timing-sxt88q69.js";
7
7
 
8
8
  // src/service-probe.ts
9
9
  import { homedir } from "node:os";
@@ -2,7 +2,7 @@ import {
2
2
  isFormNotFoundError2,
3
3
  isFormAlreadySettledError2,
4
4
  isPermissionNotFoundError2
5
- } from "./service-contender-0f3b9fnq.js";
5
+ } from "./service-timing-cvg5j6d1.js";
6
6
 
7
7
  // src/solid/data.ts
8
8
  import { Worktree } from "@opencode/schema/worktree";
@@ -34,8 +34,9 @@ var isFileNotFoundError2 = (value) => typeof value === "object" && value !== nul
34
34
  var isRpcError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "RpcError";
35
35
  var isRpcInternalError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "RpcInternalError";
36
36
  var isPtyNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "PtyNotFoundError";
37
+ var isScheduleNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ScheduleNotFoundError";
37
38
  var isShellNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ShellNotFoundError";
38
39
  var isWorktreeError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "WorktreeError";
39
40
  var isVcsInitNotSupportedError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "VcsInitNotSupportedError";
40
41
 
41
- export { isInvalidRequestError2, isUnauthorizedError2, isLocationNotFoundError2, isServiceUnavailableError2, isAgentNotFoundError2, isPluginNotFoundError2, isInvalidCursorError2, isSessionNotFoundError2, isMessageNotFoundError2, isConflictError2, isCommandNotFoundError2, isCommandExecutionError2, isSessionBusyError2, isUnknownError2, isFormNotFoundError2, isFormInvalidAnswerError2, isFormAlreadySettledError2, isSkillNotFoundError2, isInstructionEntryValueTooLargeError2, isProviderNotFoundError2, isModelNotFoundError2, isUnsupportedModelError2, isProviderRequestError2, isIntegrationNotFoundError2, isIntegrationAttemptNotFoundError2, isIntegrationMethodNotFoundError2, isMcpServerNotFoundError2, isForbiddenError2, isProjectNotFoundError2, isPermissionSavedNotFoundError2, isPermissionNotFoundError2, isFileNotFoundError2, isRpcError2, isRpcInternalError2, isPtyNotFoundError2, isShellNotFoundError2, isWorktreeError2, isVcsInitNotSupportedError2 };
42
+ export { isInvalidRequestError2, isUnauthorizedError2, isLocationNotFoundError2, isServiceUnavailableError2, isAgentNotFoundError2, isPluginNotFoundError2, isInvalidCursorError2, isSessionNotFoundError2, isMessageNotFoundError2, isConflictError2, isCommandNotFoundError2, isCommandExecutionError2, isSessionBusyError2, isUnknownError2, isFormNotFoundError2, isFormInvalidAnswerError2, isFormAlreadySettledError2, isSkillNotFoundError2, isInstructionEntryValueTooLargeError2, isProviderNotFoundError2, isModelNotFoundError2, isUnsupportedModelError2, isProviderRequestError2, isIntegrationNotFoundError2, isIntegrationAttemptNotFoundError2, isIntegrationMethodNotFoundError2, isMcpServerNotFoundError2, isForbiddenError2, isProjectNotFoundError2, isPermissionSavedNotFoundError2, isPermissionNotFoundError2, isFileNotFoundError2, isRpcError2, isRpcInternalError2, isPtyNotFoundError2, isScheduleNotFoundError2, isShellNotFoundError2, isWorktreeError2, isVcsInitNotSupportedError2 };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  make7
3
- } from "./service-contender-gecjxyvt.js";
3
+ } from "./service-timing-gecjxyvt.js";
4
4
  import {
5
5
  make3
6
- } from "./service-contender-sp3vqdnr.js";
6
+ } from "./service-timing-nf58s6mc.js";
7
7
  import {
8
8
  makeRpc2
9
- } from "./service-contender-z11mztjj.js";
9
+ } from "./service-timing-kdshn947.js";
10
10
  import {
11
11
  __export
12
- } from "./service-contender-9rqn6x4v.js";
12
+ } from "./service-timing-9rqn6x4v.js";
13
13
 
14
14
  // src/promise/client.ts
15
15
  var exports_client = {};
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  ClientApi2
3
- } from "./service-contender-60xe5cbf.js";
3
+ } from "./service-timing-60xe5cbf.js";
4
4
  import {
5
5
  ClientError3
6
- } from "./service-contender-7f0py9js.js";
6
+ } from "./service-timing-7f0py9js.js";
7
7
  import {
8
8
  __export
9
- } from "./service-contender-9rqn6x4v.js";
9
+ } from "./service-timing-9rqn6x4v.js";
10
10
 
11
11
  // src/effect/generated/client.ts
12
12
  var exports_client4 = {};
13
13
  __export(exports_client4, {
14
- make: () => make6
14
+ make: () => make5
15
15
  });
16
16
  import { Effect, Stream, Schema } from "effect";
17
17
  import { Sse } from "effect/encoding";
@@ -548,6 +548,20 @@ var EndpointExperimentalPersistentPtyConnectToken = (raw) => (input) => preserve
548
548
  params: { ptyID: input["ptyID"] },
549
549
  headers: { "x-opencode-ticket": input["x-opencode-ticket"] }
550
550
  }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
551
+ var EndpointExperimentalScheduleCreate = (raw) => (input) => preserveEffect()(raw["schedule.create"]({
552
+ payload: {
553
+ sessionID: input["sessionID"],
554
+ name: input["name"],
555
+ when: input["when"],
556
+ ends: input["ends"],
557
+ prompt: input["prompt"]
558
+ }
559
+ }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
560
+ var EndpointExperimentalScheduleList = (raw) => (input) => preserveEffect()(raw["schedule.list"]({ query: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
561
+ var EndpointExperimentalScheduleGet = (raw) => (input) => preserveEffect()(raw["schedule.get"]({ params: { scheduleID: input["scheduleID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
562
+ var EndpointExperimentalSchedulePause = (raw) => (input) => preserveEffect()(raw["schedule.pause"]({ params: { scheduleID: input["scheduleID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
563
+ var EndpointExperimentalScheduleResume = (raw) => (input) => preserveEffect()(raw["schedule.resume"]({ params: { scheduleID: input["scheduleID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
564
+ var EndpointExperimentalScheduleDelete = (raw) => (input) => preserveEffect()(raw["schedule.delete"]({ params: { scheduleID: input["scheduleID"] } }).pipe(Effect.mapError(mapClientError)));
551
565
  var adaptGroupExperimental = (raw) => ({
552
566
  persistentPty: {
553
567
  read: EndpointExperimentalPersistentPtyRead(raw),
@@ -560,6 +574,14 @@ var adaptGroupExperimental = (raw) => ({
560
574
  snapshot: EndpointExperimentalPersistentPtySnapshot(raw),
561
575
  remove: EndpointExperimentalPersistentPtyRemove(raw),
562
576
  connectToken: EndpointExperimentalPersistentPtyConnectToken(raw)
577
+ },
578
+ schedule: {
579
+ create: EndpointExperimentalScheduleCreate(raw),
580
+ list: EndpointExperimentalScheduleList(raw),
581
+ get: EndpointExperimentalScheduleGet(raw),
582
+ pause: EndpointExperimentalSchedulePause(raw),
583
+ resume: EndpointExperimentalScheduleResume(raw),
584
+ delete: EndpointExperimentalScheduleDelete(raw)
563
585
  }
564
586
  });
565
587
  var EndpointShellList = (raw) => (input) => preserveEffect()(raw["shell.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
@@ -764,6 +786,6 @@ var adaptClient = (raw) => {
764
786
  }
765
787
  };
766
788
  };
767
- var make6 = (options) => HttpApiClient.make(ClientApi2, options).pipe(Effect.map(adaptClient));
789
+ var make5 = (options) => HttpApiClient.make(ClientApi2, options).pipe(Effect.map(adaptClient));
768
790
 
769
- export { make6, exports_client4 };
791
+ export { make5, exports_client4 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./service-contender-9rqn6x4v.js";
3
+ } from "./service-timing-9rqn6x4v.js";
4
4
 
5
5
  // src/shared-events.ts
6
6
  var exports_shared_events = {};
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isRpcError2,
3
3
  isRpcInternalError2
4
- } from "./service-contender-0f3b9fnq.js";
4
+ } from "./service-timing-cvg5j6d1.js";
5
5
 
6
6
  // src/promise/rpc.ts
7
7
  function makeRpc2(raw, events) {
@@ -3,20 +3,20 @@ import {
3
3
  readError2,
4
4
  event2,
5
5
  eventType2
6
- } from "./service-contender-ryy6kscr.js";
6
+ } from "./service-timing-ryy6kscr.js";
7
7
  import {
8
8
  __export
9
- } from "./service-contender-9rqn6x4v.js";
9
+ } from "./service-timing-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: () => make5
16
+ make: () => make6
17
17
  });
18
18
  import { Effect, Stream } from "effect";
19
- function make5(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 { make5, aborted2, exports_rpc };
62
+ export { make6, aborted2, exports_rpc };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ClientError2
3
- } from "./service-contender-js54wxgp.js";
3
+ } from "./service-timing-js54wxgp.js";
4
4
  import {
5
5
  __export
6
- } from "./service-contender-9rqn6x4v.js";
6
+ } from "./service-timing-9rqn6x4v.js";
7
7
 
8
8
  // src/promise/generated/client.ts
9
9
  var exports_client2 = {};
@@ -856,6 +856,58 @@ function make3(options) {
856
856
  binary: true
857
857
  }, requestOptions)
858
858
  },
859
+ schedule: {
860
+ create: (input, requestOptions) => request({
861
+ method: "POST",
862
+ path: `/api/experimental/schedule`,
863
+ body: {
864
+ sessionID: input["sessionID"],
865
+ name: input["name"],
866
+ when: input["when"],
867
+ ends: input["ends"],
868
+ prompt: input["prompt"]
869
+ },
870
+ successStatus: 200,
871
+ declaredStatuses: [400, 401, 403, 404],
872
+ empty: false
873
+ }, requestOptions).then((value) => value.data),
874
+ list: (input, requestOptions) => request({
875
+ method: "GET",
876
+ path: `/api/experimental/schedule`,
877
+ query: { sessionID: input["sessionID"] },
878
+ successStatus: 200,
879
+ declaredStatuses: [400, 401, 403, 404],
880
+ empty: false
881
+ }, requestOptions).then((value) => value.data),
882
+ get: (input, requestOptions) => request({
883
+ method: "GET",
884
+ path: `/api/experimental/schedule/${encodeURIComponent(input.scheduleID)}`,
885
+ successStatus: 200,
886
+ declaredStatuses: [400, 401, 403, 404],
887
+ empty: false
888
+ }, requestOptions).then((value) => value.data),
889
+ pause: (input, requestOptions) => request({
890
+ method: "POST",
891
+ path: `/api/experimental/schedule/${encodeURIComponent(input.scheduleID)}/pause`,
892
+ successStatus: 200,
893
+ declaredStatuses: [400, 401, 403, 404],
894
+ empty: false
895
+ }, requestOptions).then((value) => value.data),
896
+ resume: (input, requestOptions) => request({
897
+ method: "POST",
898
+ path: `/api/experimental/schedule/${encodeURIComponent(input.scheduleID)}/resume`,
899
+ successStatus: 200,
900
+ declaredStatuses: [400, 401, 403, 404],
901
+ empty: false
902
+ }, requestOptions).then((value) => value.data),
903
+ delete: (input, requestOptions) => request({
904
+ method: "DELETE",
905
+ path: `/api/experimental/schedule/${encodeURIComponent(input.scheduleID)}`,
906
+ successStatus: 204,
907
+ declaredStatuses: [400, 401, 403, 404],
908
+ empty: true
909
+ }, requestOptions)
910
+ },
859
911
  migration: {
860
912
  v1: {
861
913
  status: (requestOptions) => request({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./service-contender-9rqn6x4v.js";
3
+ } from "./service-timing-9rqn6x4v.js";
4
4
 
5
5
  // src/rpc-runtime.ts
6
6
  var exports_rpc_runtime = {};
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  make7
3
- } from "./service-contender-gecjxyvt.js";
3
+ } from "./service-timing-gecjxyvt.js";
4
4
  import {
5
5
  ClientError3
6
- } from "./service-contender-7f0py9js.js";
6
+ } from "./service-timing-7f0py9js.js";
7
7
  import {
8
- make6
9
- } from "./service-contender-8mywvvwh.js";
8
+ make5
9
+ } from "./service-timing-ezgsckc2.js";
10
10
  import {
11
- make5,
11
+ make6,
12
12
  aborted2
13
- } from "./service-contender-anregfhs.js";
13
+ } from "./service-timing-myz4ngx9.js";
14
14
  import {
15
15
  __export
16
- } from "./service-contender-9rqn6x4v.js";
16
+ } from "./service-timing-9rqn6x4v.js";
17
17
 
18
18
  // src/effect/client.ts
19
19
  var exports_client3 = {};
@@ -30,7 +30,7 @@ var CurrentHeaders = Context.Reference("@opencode/client/effect/rpc/headers", {
30
30
  });
31
31
  var make4 = Effect.fn("OpenCode.make")(function* (options) {
32
32
  const httpClient = yield* HttpClient.HttpClient;
33
- const raw = yield* make6(options).pipe(Effect.provideService(HttpClient.HttpClient, HttpClient.mapRequestEffect(httpClient, (request) => Effect.map(CurrentHeaders, (headers) => headers ? HttpClientRequest.setHeaders(request, new Headers(headers)) : request))));
33
+ const raw = yield* make5(options).pipe(Effect.provideService(HttpClient.HttpClient, HttpClient.mapRequestEffect(httpClient, (request) => Effect.map(CurrentHeaders, (headers) => headers ? HttpClientRequest.setHeaders(request, new Headers(headers)) : request))));
34
34
  const context = yield* Effect.context();
35
35
  const native = raw.event.subscribe();
36
36
 
@@ -45,7 +45,7 @@ var make4 = Effect.fn("OpenCode.make")(function* (options) {
45
45
  return {
46
46
  ...raw,
47
47
  event: { ...raw.event, subscribe },
48
- rpc: Object.assign(make5((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
 
package/dist/contract.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  effectOmitEndpoints2,
5
5
  groupNames2,
6
6
  promiseOmitEndpoints2
7
- } from "./chunks/service-contender-60xe5cbf.js";
7
+ } from "./chunks/service-timing-60xe5cbf.js";
8
8
  export {
9
9
  ClientApi2 as ClientApi,
10
10
  clientNamespace2 as clientNamespace,
@@ -36,6 +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
40
  import type { Reference } from "@opencode/schema/reference";
40
41
  import type { Worktree } from "@opencode/schema/worktree";
41
42
  import type { Vcs } from "@opencode/schema/vcs";
@@ -2689,6 +2690,40 @@ export type ExperimentalPersistentPtyConnectTokenInput = {
2689
2690
  };
2690
2691
  export type ExperimentalPersistentPtyConnectTokenOutput = PtyTicket.ConnectToken;
2691
2692
  export type ExperimentalPersistentPtyConnectTokenOperation<E = never> = (input: ExperimentalPersistentPtyConnectTokenInput) => Effect.Effect<ExperimentalPersistentPtyConnectTokenOutput, E>;
2693
+ export type ExperimentalScheduleCreateInput = {
2694
+ readonly sessionID: Session.ID;
2695
+ readonly name?: string | undefined;
2696
+ readonly when: Schedule.WhenInput;
2697
+ readonly ends?: Schedule.Ends | undefined;
2698
+ readonly prompt: string;
2699
+ };
2700
+ export type ExperimentalScheduleCreateOutput = Schedule.Info;
2701
+ export type ExperimentalScheduleCreateOperation<E = never> = (input: ExperimentalScheduleCreateInput) => Effect.Effect<ExperimentalScheduleCreateOutput, E>;
2702
+ export type ExperimentalScheduleListInput = {
2703
+ readonly sessionID: Session.ID;
2704
+ };
2705
+ export type ExperimentalScheduleListOutput = ReadonlyArray<Schedule.Info>;
2706
+ export type ExperimentalScheduleListOperation<E = never> = (input: ExperimentalScheduleListInput) => Effect.Effect<ExperimentalScheduleListOutput, E>;
2707
+ export type ExperimentalScheduleGetInput = {
2708
+ readonly scheduleID: Schedule.ID;
2709
+ };
2710
+ export type ExperimentalScheduleGetOutput = Schedule.Info;
2711
+ export type ExperimentalScheduleGetOperation<E = never> = (input: ExperimentalScheduleGetInput) => Effect.Effect<ExperimentalScheduleGetOutput, E>;
2712
+ export type ExperimentalSchedulePauseInput = {
2713
+ readonly scheduleID: Schedule.ID;
2714
+ };
2715
+ export type ExperimentalSchedulePauseOutput = Schedule.Info;
2716
+ export type ExperimentalSchedulePauseOperation<E = never> = (input: ExperimentalSchedulePauseInput) => Effect.Effect<ExperimentalSchedulePauseOutput, E>;
2717
+ export type ExperimentalScheduleResumeInput = {
2718
+ readonly scheduleID: Schedule.ID;
2719
+ };
2720
+ export type ExperimentalScheduleResumeOutput = Schedule.Info;
2721
+ export type ExperimentalScheduleResumeOperation<E = never> = (input: ExperimentalScheduleResumeInput) => Effect.Effect<ExperimentalScheduleResumeOutput, E>;
2722
+ export type ExperimentalScheduleDeleteInput = {
2723
+ readonly scheduleID: Schedule.ID;
2724
+ };
2725
+ export type ExperimentalScheduleDeleteOutput = void;
2726
+ export type ExperimentalScheduleDeleteOperation<E = never> = (input: ExperimentalScheduleDeleteInput) => Effect.Effect<ExperimentalScheduleDeleteOutput, E>;
2692
2727
  export interface ExperimentalApi<E = never> {
2693
2728
  readonly persistentPty: {
2694
2729
  readonly read: ExperimentalPersistentPtyReadOperation<E>;
@@ -2702,6 +2737,14 @@ export interface ExperimentalApi<E = never> {
2702
2737
  readonly remove: ExperimentalPersistentPtyRemoveOperation<E>;
2703
2738
  readonly connectToken: ExperimentalPersistentPtyConnectTokenOperation<E>;
2704
2739
  };
2740
+ readonly schedule: {
2741
+ readonly create: ExperimentalScheduleCreateOperation<E>;
2742
+ readonly list: ExperimentalScheduleListOperation<E>;
2743
+ readonly get: ExperimentalScheduleGetOperation<E>;
2744
+ readonly pause: ExperimentalSchedulePauseOperation<E>;
2745
+ readonly resume: ExperimentalScheduleResumeOperation<E>;
2746
+ readonly delete: ExperimentalScheduleDeleteOperation<E>;
2747
+ };
2705
2748
  }
2706
2749
  export type ShellListInput = {
2707
2750
  readonly location?: {
@@ -41,6 +41,162 @@ export declare const make: (options?: {
41
41
  remove: (input: import("./api.js").ExperimentalPersistentPtyRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
42
42
  connectToken: (input: import("./api.js").ExperimentalPersistentPtyConnectTokenInput) => Effect.Effect<import("@opencode/schema/pty-ticket").ConnectToken, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
43
43
  };
44
+ schedule: {
45
+ create: (input: import("./api.js").ExperimentalScheduleCreateInput) => Effect.Effect<{
46
+ readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
47
+ readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
48
+ readonly name?: string | undefined;
49
+ readonly when: {
50
+ readonly tz?: string | undefined;
51
+ readonly type: "in";
52
+ readonly in: string;
53
+ } | {
54
+ readonly tz?: string | undefined;
55
+ readonly type: "at";
56
+ readonly at: string;
57
+ } | {
58
+ readonly tz?: string | undefined;
59
+ readonly type: "every";
60
+ readonly every: string;
61
+ } | {
62
+ readonly tz?: string | undefined;
63
+ readonly type: "cron";
64
+ readonly cron: string;
65
+ };
66
+ readonly tz: string;
67
+ readonly action: {
68
+ readonly type: "prompt";
69
+ readonly prompt: string;
70
+ };
71
+ readonly status: "active" | "done" | "paused";
72
+ readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
73
+ readonly endsAt?: import("effect/DateTime").Utc | undefined;
74
+ readonly remainingRuns?: number | undefined;
75
+ readonly runCount: number;
76
+ readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
77
+ readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
78
+ readonly time: {
79
+ readonly created: import("effect/DateTime").Utc;
80
+ readonly updated: import("effect/DateTime").Utc;
81
+ };
82
+ }, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
83
+ list: (input: import("./api.js").ExperimentalScheduleListInput) => Effect.Effect<import("./api.js").ExperimentalScheduleListOutput, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
84
+ get: (input: import("./api.js").ExperimentalScheduleGetInput) => Effect.Effect<{
85
+ readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
86
+ readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
87
+ readonly name?: string | undefined;
88
+ readonly when: {
89
+ readonly tz?: string | undefined;
90
+ readonly type: "in";
91
+ readonly in: string;
92
+ } | {
93
+ readonly tz?: string | undefined;
94
+ readonly type: "at";
95
+ readonly at: string;
96
+ } | {
97
+ readonly tz?: string | undefined;
98
+ readonly type: "every";
99
+ readonly every: string;
100
+ } | {
101
+ readonly tz?: string | undefined;
102
+ readonly type: "cron";
103
+ readonly cron: string;
104
+ };
105
+ readonly tz: string;
106
+ readonly action: {
107
+ readonly type: "prompt";
108
+ readonly prompt: string;
109
+ };
110
+ readonly status: "active" | "done" | "paused";
111
+ readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
112
+ readonly endsAt?: import("effect/DateTime").Utc | undefined;
113
+ readonly remainingRuns?: number | undefined;
114
+ readonly runCount: number;
115
+ readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
116
+ readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
117
+ readonly time: {
118
+ readonly created: import("effect/DateTime").Utc;
119
+ readonly updated: import("effect/DateTime").Utc;
120
+ };
121
+ }, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ScheduleNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
122
+ pause: (input: import("./api.js").ExperimentalSchedulePauseInput) => Effect.Effect<{
123
+ readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
124
+ readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
125
+ readonly name?: string | undefined;
126
+ readonly when: {
127
+ readonly tz?: string | undefined;
128
+ readonly type: "in";
129
+ readonly in: string;
130
+ } | {
131
+ readonly tz?: string | undefined;
132
+ readonly type: "at";
133
+ readonly at: string;
134
+ } | {
135
+ readonly tz?: string | undefined;
136
+ readonly type: "every";
137
+ readonly every: string;
138
+ } | {
139
+ readonly tz?: string | undefined;
140
+ readonly type: "cron";
141
+ readonly cron: string;
142
+ };
143
+ readonly tz: string;
144
+ readonly action: {
145
+ readonly type: "prompt";
146
+ readonly prompt: string;
147
+ };
148
+ readonly status: "active" | "done" | "paused";
149
+ readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
150
+ readonly endsAt?: import("effect/DateTime").Utc | undefined;
151
+ readonly remainingRuns?: number | undefined;
152
+ readonly runCount: number;
153
+ readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
154
+ readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
155
+ readonly time: {
156
+ readonly created: import("effect/DateTime").Utc;
157
+ readonly updated: import("effect/DateTime").Utc;
158
+ };
159
+ }, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ScheduleNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
160
+ resume: (input: import("./api.js").ExperimentalScheduleResumeInput) => Effect.Effect<{
161
+ readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
162
+ readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
163
+ readonly name?: string | undefined;
164
+ readonly when: {
165
+ readonly tz?: string | undefined;
166
+ readonly type: "in";
167
+ readonly in: string;
168
+ } | {
169
+ readonly tz?: string | undefined;
170
+ readonly type: "at";
171
+ readonly at: string;
172
+ } | {
173
+ readonly tz?: string | undefined;
174
+ readonly type: "every";
175
+ readonly every: string;
176
+ } | {
177
+ readonly tz?: string | undefined;
178
+ readonly type: "cron";
179
+ readonly cron: string;
180
+ };
181
+ readonly tz: string;
182
+ readonly action: {
183
+ readonly type: "prompt";
184
+ readonly prompt: string;
185
+ };
186
+ readonly status: "active" | "done" | "paused";
187
+ readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
188
+ readonly endsAt?: import("effect/DateTime").Utc | undefined;
189
+ readonly remainingRuns?: number | undefined;
190
+ readonly runCount: number;
191
+ readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
192
+ readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
193
+ readonly time: {
194
+ readonly created: import("effect/DateTime").Utc;
195
+ readonly updated: import("effect/DateTime").Utc;
196
+ };
197
+ }, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ScheduleNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
198
+ delete: (input: import("./api.js").ExperimentalScheduleDeleteInput) => Effect.Effect<void, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ScheduleNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
199
+ };
44
200
  session: {
45
201
  stats: (input?: import("./api.js").ExperimentalSessionStatsInput) => Effect.Effect<import("./api.js").ExperimentalSessionStatsOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
46
202
  import: (input: import("./api.js").ExperimentalSessionImportInput) => Effect.Effect<import("@opencode/schema/session").Info, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  make4,
3
3
  exports_client3
4
- } from "../chunks/service-contender-ph0x2cx8.js";
5
- import"../chunks/service-contender-anregfhs.js";
6
- import"../chunks/service-contender-6mptkzbc.js";
7
- import"../chunks/service-contender-8mywvvwh.js";
8
- import"../chunks/service-contender-7f0py9js.js";
9
- import"../chunks/service-contender-60xe5cbf.js";
10
- import"../chunks/service-contender-ryy6kscr.js";
11
- import"../chunks/service-contender-gecjxyvt.js";
4
+ } from "../chunks/service-timing-zhqzgfm1.js";
5
+ import"../chunks/service-timing-6mptkzbc.js";
6
+ import"../chunks/service-timing-ezgsckc2.js";
7
+ import"../chunks/service-timing-myz4ngx9.js";
8
+ import"../chunks/service-timing-ryy6kscr.js";
9
+ import"../chunks/service-timing-7f0py9js.js";
10
+ import"../chunks/service-timing-gecjxyvt.js";
11
+ import"../chunks/service-timing-60xe5cbf.js";
12
12
  export {
13
13
  exports_client3 as OpenCode,
14
14
  make4 as make
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ClientError3
3
- } from "../../chunks/service-contender-7f0py9js.js";
3
+ } from "../../chunks/service-timing-7f0py9js.js";
4
4
  export {
5
5
  ClientError3 as ClientError
6
6
  };