@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,7 +1,7 @@
1
1
  import { Effect, Stream, Schema } from "effect";
2
2
  import { Sse } from "effect/encoding";
3
3
  import { HttpClientError } from "effect/http";
4
- import type { ServerInfoOutput, ServerPairOutput, ServerConnectInput, ServerConnectOutput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginGuiInput, PluginGuiOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionListOutput, SessionCreateInput, SessionActiveOutput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionContextOutput, SessionDiffInput, SessionDiffOutput, SessionInboxListInput, SessionInboxListOutput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionGenerateInput, SessionGenerateOutput, SessionInterruptInput, SessionInterruptOutput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormListOutput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, ExperimentalSessionStatsInput, ExperimentalSessionStatsOutput, ExperimentalSessionImportInput, ExperimentalSessionExportInput, ExperimentalSessionExportOutput, ExperimentalSessionSkillInput, ExperimentalSessionWaitInput, ExperimentalSessionInstructionsEntryListInput, ExperimentalSessionInstructionsEntryListOutput, ExperimentalSessionInstructionsEntryPutInput, ExperimentalSessionInstructionsEntryRemoveInput, ExperimentalSessionLogInput, ExperimentalSessionLogOutput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, ExperimentalGenerateTextInput, ExperimentalGenerateTextOutput, ExperimentalGenerateImageInput, ExperimentalGenerateDecisionsInput, ExperimentalVoiceModelsOutput, ExperimentalVoiceSessionInput, ExperimentalVoiceSessionOutput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, ExperimentalIntegrationWellknownAddInput, McpListInput, McpListOutput, McpResourceCatalogInput, McpResourceCatalogOutput, ExperimentalMcpAddInput, ExperimentalMcpRemoveInput, ExperimentalMcpConnectInput, ExperimentalMcpDisconnectInput, ExperimentalMcpClientTokenInput, ExperimentalMcpClientTokenOutput, CredentialListOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedListOutput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionCreateOutput, PermissionListInput, PermissionListOutput, PermissionGetInput, PermissionReplyInput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, ExperimentalFileWatchInput, ExperimentalFileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, RpcCallOutput, EventSubscribeInput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyReadOutput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyListOutput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyCreateOutput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyGetOutput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtyUpdateOutput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtySnapshotOutput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsInitInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugHeapDumpInput, DebugHeapDumpOutput, DebugLocationListOutput, DebugLocationEvictInput, ExperimentalMigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ExperimentalUsageLimitsInput, ExperimentalUsageLimitsOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ExperimentalConfigUpdateInput } from "../api/api.js";
4
+ import type { ServerInfoOutput, ServerPairOutput, ServerConnectInput, ServerConnectOutput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginGuiInput, PluginGuiOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionListOutput, SessionCreateInput, SessionActiveOutput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionContextOutput, SessionDiffInput, SessionDiffOutput, SessionInboxListInput, SessionInboxListOutput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionGenerateInput, SessionGenerateOutput, SessionInterruptInput, SessionInterruptOutput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormListOutput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, ExperimentalSessionStatsInput, ExperimentalSessionStatsOutput, ExperimentalSessionImportInput, ExperimentalSessionExportInput, ExperimentalSessionExportOutput, ExperimentalSessionSkillInput, ExperimentalSessionWaitInput, ExperimentalSessionInstructionsEntryListInput, ExperimentalSessionInstructionsEntryListOutput, ExperimentalSessionInstructionsEntryPutInput, ExperimentalSessionInstructionsEntryRemoveInput, ExperimentalSessionLogInput, ExperimentalSessionLogOutput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, ExperimentalGenerateTextInput, ExperimentalGenerateTextOutput, ExperimentalGenerateImageInput, ExperimentalGenerateDecisionsInput, ExperimentalVoiceModelsOutput, ExperimentalVoiceSessionInput, ExperimentalVoiceSessionOutput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, ExperimentalIntegrationWellknownAddInput, McpListInput, McpListOutput, McpResourceCatalogInput, McpResourceCatalogOutput, ExperimentalMcpAddInput, ExperimentalMcpRemoveInput, ExperimentalMcpConnectInput, ExperimentalMcpDisconnectInput, ExperimentalMcpClientTokenInput, ExperimentalMcpClientTokenOutput, CredentialListOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedListOutput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionCreateOutput, PermissionListInput, PermissionListOutput, PermissionGetInput, PermissionReplyInput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, ExperimentalFileWatchInput, ExperimentalFileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, RpcCallOutput, EventSubscribeInput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyReadOutput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyListOutput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyCreateOutput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyGetOutput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtyUpdateOutput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtySnapshotOutput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ExperimentalScheduleCreateInput, ExperimentalScheduleListInput, ExperimentalScheduleListOutput, ExperimentalScheduleGetInput, ExperimentalSchedulePauseInput, ExperimentalScheduleResumeInput, ExperimentalScheduleDeleteInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsInitInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugHeapDumpInput, DebugHeapDumpOutput, DebugLocationListOutput, DebugLocationEvictInput, ExperimentalMigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ExperimentalUsageLimitsInput, ExperimentalUsageLimitsOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ExperimentalConfigUpdateInput } from "../api/api.js";
5
5
  import { ClientError } from "./client-error.js";
6
6
  export declare const make: (options?: {
7
7
  readonly baseUrl?: URL | string;
@@ -38,6 +38,162 @@ export declare const make: (options?: {
38
38
  remove: (input: ExperimentalPersistentPtyRemoveInput) => Effect.Effect<void, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").PtyNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
39
39
  connectToken: (input: ExperimentalPersistentPtyConnectTokenInput) => Effect.Effect<import("@opencode/schema/pty-ticket").ConnectToken, ClientError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").PtyNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
40
40
  };
41
+ schedule: {
42
+ create: (input: ExperimentalScheduleCreateInput) => Effect.Effect<{
43
+ readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
44
+ readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
45
+ readonly name?: string | undefined;
46
+ readonly when: {
47
+ readonly tz?: string | undefined;
48
+ readonly type: "in";
49
+ readonly in: string;
50
+ } | {
51
+ readonly tz?: string | undefined;
52
+ readonly type: "at";
53
+ readonly at: string;
54
+ } | {
55
+ readonly tz?: string | undefined;
56
+ readonly type: "every";
57
+ readonly every: string;
58
+ } | {
59
+ readonly tz?: string | undefined;
60
+ readonly type: "cron";
61
+ readonly cron: string;
62
+ };
63
+ readonly tz: string;
64
+ readonly action: {
65
+ readonly type: "prompt";
66
+ readonly prompt: string;
67
+ };
68
+ readonly status: "active" | "done" | "paused";
69
+ readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
70
+ readonly endsAt?: import("effect/DateTime").Utc | undefined;
71
+ readonly remainingRuns?: number | undefined;
72
+ readonly runCount: number;
73
+ readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
74
+ readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
75
+ readonly time: {
76
+ readonly created: import("effect/DateTime").Utc;
77
+ readonly updated: import("effect/DateTime").Utc;
78
+ };
79
+ }, ClientError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
80
+ list: (input: ExperimentalScheduleListInput) => Effect.Effect<ExperimentalScheduleListOutput, ClientError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
81
+ get: (input: ExperimentalScheduleGetInput) => Effect.Effect<{
82
+ readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
83
+ readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
84
+ readonly name?: string | undefined;
85
+ readonly when: {
86
+ readonly tz?: string | undefined;
87
+ readonly type: "in";
88
+ readonly in: string;
89
+ } | {
90
+ readonly tz?: string | undefined;
91
+ readonly type: "at";
92
+ readonly at: string;
93
+ } | {
94
+ readonly tz?: string | undefined;
95
+ readonly type: "every";
96
+ readonly every: string;
97
+ } | {
98
+ readonly tz?: string | undefined;
99
+ readonly type: "cron";
100
+ readonly cron: string;
101
+ };
102
+ readonly tz: string;
103
+ readonly action: {
104
+ readonly type: "prompt";
105
+ readonly prompt: string;
106
+ };
107
+ readonly status: "active" | "done" | "paused";
108
+ readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
109
+ readonly endsAt?: import("effect/DateTime").Utc | undefined;
110
+ readonly remainingRuns?: number | undefined;
111
+ readonly runCount: number;
112
+ readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
113
+ readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
114
+ readonly time: {
115
+ readonly created: import("effect/DateTime").Utc;
116
+ readonly updated: import("effect/DateTime").Utc;
117
+ };
118
+ }, ClientError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ScheduleNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
119
+ pause: (input: ExperimentalSchedulePauseInput) => Effect.Effect<{
120
+ readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
121
+ readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
122
+ readonly name?: string | undefined;
123
+ readonly when: {
124
+ readonly tz?: string | undefined;
125
+ readonly type: "in";
126
+ readonly in: string;
127
+ } | {
128
+ readonly tz?: string | undefined;
129
+ readonly type: "at";
130
+ readonly at: string;
131
+ } | {
132
+ readonly tz?: string | undefined;
133
+ readonly type: "every";
134
+ readonly every: string;
135
+ } | {
136
+ readonly tz?: string | undefined;
137
+ readonly type: "cron";
138
+ readonly cron: string;
139
+ };
140
+ readonly tz: string;
141
+ readonly action: {
142
+ readonly type: "prompt";
143
+ readonly prompt: string;
144
+ };
145
+ readonly status: "active" | "done" | "paused";
146
+ readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
147
+ readonly endsAt?: import("effect/DateTime").Utc | undefined;
148
+ readonly remainingRuns?: number | undefined;
149
+ readonly runCount: number;
150
+ readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
151
+ readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
152
+ readonly time: {
153
+ readonly created: import("effect/DateTime").Utc;
154
+ readonly updated: import("effect/DateTime").Utc;
155
+ };
156
+ }, ClientError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ScheduleNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
157
+ resume: (input: ExperimentalScheduleResumeInput) => Effect.Effect<{
158
+ readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
159
+ readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
160
+ readonly name?: string | undefined;
161
+ readonly when: {
162
+ readonly tz?: string | undefined;
163
+ readonly type: "in";
164
+ readonly in: string;
165
+ } | {
166
+ readonly tz?: string | undefined;
167
+ readonly type: "at";
168
+ readonly at: string;
169
+ } | {
170
+ readonly tz?: string | undefined;
171
+ readonly type: "every";
172
+ readonly every: string;
173
+ } | {
174
+ readonly tz?: string | undefined;
175
+ readonly type: "cron";
176
+ readonly cron: string;
177
+ };
178
+ readonly tz: string;
179
+ readonly action: {
180
+ readonly type: "prompt";
181
+ readonly prompt: string;
182
+ };
183
+ readonly status: "active" | "done" | "paused";
184
+ readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
185
+ readonly endsAt?: import("effect/DateTime").Utc | undefined;
186
+ readonly remainingRuns?: number | undefined;
187
+ readonly runCount: number;
188
+ readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
189
+ readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
190
+ readonly time: {
191
+ readonly created: import("effect/DateTime").Utc;
192
+ readonly updated: import("effect/DateTime").Utc;
193
+ };
194
+ }, ClientError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ScheduleNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
195
+ delete: (input: ExperimentalScheduleDeleteInput) => Effect.Effect<void, ClientError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ScheduleNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
196
+ };
41
197
  session: {
42
198
  stats: (input?: ExperimentalSessionStatsInput) => Effect.Effect<ExperimentalSessionStatsOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
43
199
  import: (input: ExperimentalSessionImportInput) => Effect.Effect<import("@opencode/schema/session").Info, ClientError | import("@opencode/protocol/errors").ConflictError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
@@ -1,8 +1,8 @@
1
1
  import {
2
- make6
3
- } from "../../chunks/service-contender-8mywvvwh.js";
4
- import"../../chunks/service-contender-7f0py9js.js";
5
- import"../../chunks/service-contender-60xe5cbf.js";
2
+ make5
3
+ } from "../../chunks/service-timing-ezgsckc2.js";
4
+ import"../../chunks/service-timing-7f0py9js.js";
5
+ import"../../chunks/service-timing-60xe5cbf.js";
6
6
  export {
7
- make6 as make
7
+ make5 as make
8
8
  };
@@ -1,11 +1,11 @@
1
- import"../../chunks/service-contender-6mptkzbc.js";
1
+ import"../../chunks/service-timing-6mptkzbc.js";
2
2
  import {
3
3
  exports_client4
4
- } from "../../chunks/service-contender-8mywvvwh.js";
4
+ } from "../../chunks/service-timing-ezgsckc2.js";
5
5
  import {
6
6
  ClientError3
7
- } from "../../chunks/service-contender-7f0py9js.js";
8
- import"../../chunks/service-contender-60xe5cbf.js";
7
+ } from "../../chunks/service-timing-7f0py9js.js";
8
+ import"../../chunks/service-timing-60xe5cbf.js";
9
9
  export {
10
10
  ClientError3 as ClientError,
11
11
  exports_client4 as OpenCode
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  ClientError3
3
- } from "../chunks/service-contender-7f0py9js.js";
4
- import"../chunks/service-contender-60xe5cbf.js";
5
- import"../chunks/service-contender-8mywvvwh.js";
6
- import"../chunks/service-contender-6mptkzbc.js";
7
- import"../chunks/service-contender-gecjxyvt.js";
8
- import"../chunks/service-contender-ryy6kscr.js";
9
- import"../chunks/service-contender-anregfhs.js";
3
+ } from "../chunks/service-timing-7f0py9js.js";
4
+ import"../chunks/service-timing-60xe5cbf.js";
5
+ import"../chunks/service-timing-ezgsckc2.js";
6
+ import"../chunks/service-timing-6mptkzbc.js";
7
+ import"../chunks/service-timing-gecjxyvt.js";
8
+ import"../chunks/service-timing-ryy6kscr.js";
9
+ import"../chunks/service-timing-myz4ngx9.js";
10
10
  import {
11
11
  exports_client3
12
- } from "../chunks/service-contender-ph0x2cx8.js";
12
+ } from "../chunks/service-timing-zhqzgfm1.js";
13
13
 
14
14
  // src/effect/index.ts
15
15
  import { Agent } from "@opencode/schema/agent";
@@ -1,11 +1,11 @@
1
1
  import {
2
- make5,
2
+ make6,
3
3
  aborted2,
4
4
  exports_rpc
5
- } from "../chunks/service-contender-anregfhs.js";
6
- import"../chunks/service-contender-ryy6kscr.js";
5
+ } from "../chunks/service-timing-myz4ngx9.js";
6
+ import"../chunks/service-timing-ryy6kscr.js";
7
7
  export {
8
8
  exports_rpc as RpcClientRuntime,
9
9
  aborted2 as aborted,
10
- make5 as make
10
+ make6 as make
11
11
  };
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  spawnServiceContender2,
3
3
  contenderPool2
4
- } from "../chunks/service-contender-ve4aws36.js";
4
+ } from "../chunks/service-timing-ve4aws36.js";
5
5
  import {
6
6
  defaultEnsureTiming2,
7
7
  ensureTiming2
8
- } from "../chunks/service-contender-xgnj2w4v.js";
8
+ } from "../chunks/service-timing-xgnj2w4v.js";
9
9
  import {
10
10
  matchesVersion2
11
- } from "../chunks/service-contender-sxt88q69.js";
11
+ } from "../chunks/service-timing-sxt88q69.js";
12
12
  import {
13
13
  decide2,
14
14
  fallback2,
15
15
  same2,
16
16
  probeResult2,
17
17
  headers2
18
- } from "../chunks/service-contender-8ye1ye6f.js";
18
+ } from "../chunks/service-timing-8ye1ye6f.js";
19
19
  import {
20
20
  prepare2,
21
21
  environment2,
22
22
  complete2,
23
23
  clear2
24
- } from "../chunks/service-contender-bwabkrm6.js";
25
- import"../chunks/service-contender-qav6mfdz.js";
24
+ } from "../chunks/service-timing-6kf08f7d.js";
25
+ import"../chunks/service-timing-qav6mfdz.js";
26
26
 
27
27
  // src/effect/service.ts
28
28
  import { Effect, FileSystem, Option, Schedule, Schema } from "effect";
@@ -89,6 +89,14 @@ export declare function make(options: ClientOptions): {
89
89
  media: {
90
90
  get: (input: import("./index.js").ExperimentalMediaGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ExperimentalMediaGetOutput>;
91
91
  };
92
+ schedule: {
93
+ create: (input: import("./index.js").ExperimentalScheduleCreateInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ScheduleInfo>;
94
+ list: (input: import("./index.js").ExperimentalScheduleListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ScheduleInfo[]>;
95
+ get: (input: import("./index.js").ExperimentalScheduleGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ScheduleInfo>;
96
+ pause: (input: import("./index.js").ExperimentalSchedulePauseInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ScheduleInfo>;
97
+ resume: (input: import("./index.js").ExperimentalScheduleResumeInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ScheduleInfo>;
98
+ delete: (input: import("./index.js").ExperimentalScheduleDeleteInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
99
+ };
92
100
  migration: {
93
101
  v1: {
94
102
  status: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ExperimentalMigrationV1StatusOutput>;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  make2,
3
3
  exports_client
4
- } from "../chunks/service-contender-ek8qkqrq.js";
5
- import"../chunks/service-contender-z11mztjj.js";
6
- import"../chunks/service-contender-vyas3vgt.js";
7
- import"../chunks/service-contender-sp3vqdnr.js";
8
- import"../chunks/service-contender-js54wxgp.js";
9
- import"../chunks/service-contender-0f3b9fnq.js";
10
- import"../chunks/service-contender-gecjxyvt.js";
4
+ } from "../chunks/service-timing-e9tdq5f3.js";
5
+ import"../chunks/service-timing-vyas3vgt.js";
6
+ import"../chunks/service-timing-nf58s6mc.js";
7
+ import"../chunks/service-timing-kdshn947.js";
8
+ import"../chunks/service-timing-cvg5j6d1.js";
9
+ import"../chunks/service-timing-js54wxgp.js";
10
+ import"../chunks/service-timing-gecjxyvt.js";
11
11
  export {
12
12
  exports_client as OpenCode,
13
13
  make2 as make
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ClientError2
3
- } from "../../chunks/service-contender-js54wxgp.js";
3
+ } from "../../chunks/service-timing-js54wxgp.js";
4
4
  export {
5
5
  ClientError2 as ClientError
6
6
  };
@@ -1,4 +1,4 @@
1
- import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginGuiInput, PluginGuiOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionGenerateInput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, ExperimentalSessionStatsInput, ExperimentalSessionImportInput, ExperimentalSessionExportInput, ExperimentalSessionSkillInput, ExperimentalSessionWaitInput, ExperimentalSessionInstructionsEntryListInput, ExperimentalSessionInstructionsEntryPutInput, ExperimentalSessionInstructionsEntryRemoveInput, ExperimentalSessionLogInput, ExperimentalSessionLogOutput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, ExperimentalGenerateTextInput, ExperimentalGenerateImageInput, ExperimentalGenerateDecisionsInput, ExperimentalVoiceSessionInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, ExperimentalIntegrationWellknownAddInput, McpListInput, McpListOutput, McpResourceCatalogInput, McpResourceCatalogOutput, ExperimentalMcpAddInput, ExperimentalMcpRemoveInput, ExperimentalMcpConnectInput, ExperimentalMcpDisconnectInput, ExperimentalMcpClientTokenInput, ExperimentalMcpClientTokenOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, ExperimentalFileWriteInput, ExperimentalFileWriteOutput, ExperimentalFileWatchInput, ExperimentalFileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ExperimentalMediaGetInput, ExperimentalMediaGetOutput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsInitInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugHeapDumpInput, DebugHeapDumpOutput, DebugLocationListOutput, DebugLocationEvictInput, ExperimentalMigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ExperimentalUsageLimitsInput, ExperimentalUsageLimitsOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ExperimentalConfigUpdateInput } from "./types.js";
1
+ import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginGuiInput, PluginGuiOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionGenerateInput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, ExperimentalSessionStatsInput, ExperimentalSessionImportInput, ExperimentalSessionExportInput, ExperimentalSessionSkillInput, ExperimentalSessionWaitInput, ExperimentalSessionInstructionsEntryListInput, ExperimentalSessionInstructionsEntryPutInput, ExperimentalSessionInstructionsEntryRemoveInput, ExperimentalSessionLogInput, ExperimentalSessionLogOutput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, ExperimentalGenerateTextInput, ExperimentalGenerateImageInput, ExperimentalGenerateDecisionsInput, ExperimentalVoiceSessionInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, ExperimentalIntegrationWellknownAddInput, McpListInput, McpListOutput, McpResourceCatalogInput, McpResourceCatalogOutput, ExperimentalMcpAddInput, ExperimentalMcpRemoveInput, ExperimentalMcpConnectInput, ExperimentalMcpDisconnectInput, ExperimentalMcpClientTokenInput, ExperimentalMcpClientTokenOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, ExperimentalFileWriteInput, ExperimentalFileWriteOutput, ExperimentalFileWatchInput, ExperimentalFileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ExperimentalMediaGetInput, ExperimentalMediaGetOutput, ExperimentalScheduleCreateInput, ExperimentalScheduleListInput, ExperimentalScheduleGetInput, ExperimentalSchedulePauseInput, ExperimentalScheduleResumeInput, ExperimentalScheduleDeleteInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsInitInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugHeapDumpInput, DebugHeapDumpOutput, DebugLocationListOutput, DebugLocationEvictInput, ExperimentalMigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ExperimentalUsageLimitsInput, ExperimentalUsageLimitsOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ExperimentalConfigUpdateInput } from "./types.js";
2
2
  export interface ClientOptions {
3
3
  readonly baseUrl: string;
4
4
  readonly fetch?: typeof globalThis.fetch;
@@ -96,6 +96,14 @@ export declare function make(options: ClientOptions): {
96
96
  media: {
97
97
  get: (input: ExperimentalMediaGetInput, requestOptions?: RequestOptions) => Promise<ExperimentalMediaGetOutput>;
98
98
  };
99
+ schedule: {
100
+ create: (input: ExperimentalScheduleCreateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ScheduleInfo>;
101
+ list: (input: ExperimentalScheduleListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ScheduleInfo[]>;
102
+ get: (input: ExperimentalScheduleGetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ScheduleInfo>;
103
+ pause: (input: ExperimentalSchedulePauseInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ScheduleInfo>;
104
+ resume: (input: ExperimentalScheduleResumeInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ScheduleInfo>;
105
+ delete: (input: ExperimentalScheduleDeleteInput, requestOptions?: RequestOptions) => Promise<void>;
106
+ };
99
107
  migration: {
100
108
  v1: {
101
109
  status: (requestOptions?: RequestOptions) => Promise<ExperimentalMigrationV1StatusOutput>;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  make3
3
- } from "../../chunks/service-contender-sp3vqdnr.js";
4
- import"../../chunks/service-contender-js54wxgp.js";
3
+ } from "../../chunks/service-timing-nf58s6mc.js";
4
+ import"../../chunks/service-timing-js54wxgp.js";
5
5
  export {
6
6
  make3 as make
7
7
  };
@@ -1,10 +1,7 @@
1
- import"../../chunks/service-contender-vyas3vgt.js";
1
+ import"../../chunks/service-timing-vyas3vgt.js";
2
2
  import {
3
3
  exports_client2
4
- } from "../../chunks/service-contender-sp3vqdnr.js";
5
- import {
6
- ClientError2
7
- } from "../../chunks/service-contender-js54wxgp.js";
4
+ } from "../../chunks/service-timing-nf58s6mc.js";
8
5
  import {
9
6
  isInvalidRequestError2,
10
7
  isUnauthorizedError2,
@@ -41,10 +38,14 @@ import {
41
38
  isRpcError2,
42
39
  isRpcInternalError2,
43
40
  isPtyNotFoundError2,
41
+ isScheduleNotFoundError2,
44
42
  isShellNotFoundError2,
45
43
  isWorktreeError2,
46
44
  isVcsInitNotSupportedError2
47
- } from "../../chunks/service-contender-0f3b9fnq.js";
45
+ } from "../../chunks/service-timing-cvg5j6d1.js";
46
+ import {
47
+ ClientError2
48
+ } from "../../chunks/service-timing-js54wxgp.js";
48
49
  export {
49
50
  ClientError2 as ClientError,
50
51
  exports_client2 as OpenCode,
@@ -76,6 +77,7 @@ export {
76
77
  isPtyNotFoundError2 as isPtyNotFoundError,
77
78
  isRpcError2 as isRpcError,
78
79
  isRpcInternalError2 as isRpcInternalError,
80
+ isScheduleNotFoundError2 as isScheduleNotFoundError,
79
81
  isServiceUnavailableError2 as isServiceUnavailableError,
80
82
  isSessionBusyError2 as isSessionBusyError,
81
83
  isSessionNotFoundError2 as isSessionNotFoundError,
@@ -466,6 +466,24 @@ export type PersistentPtyHandoff = {
466
466
  ticket: string;
467
467
  expiresAt: number;
468
468
  };
469
+ export type ScheduleID = string;
470
+ export type ScheduleDuration = string;
471
+ export type ScheduleWhenAt = {
472
+ type: "at";
473
+ at: string;
474
+ tz?: string;
475
+ };
476
+ export type ScheduleWhenCron = {
477
+ type: "cron";
478
+ cron: string;
479
+ tz?: string;
480
+ };
481
+ export type ScheduleActionPrompt = {
482
+ type: "prompt";
483
+ prompt: string;
484
+ };
485
+ export type ScheduleStatus = "active" | "paused" | "done";
486
+ export type ScheduleOutcome = "fired" | "late" | "skipped" | "disabled" | "failed";
469
487
  export type ReferenceGitSource = {
470
488
  type: "git";
471
489
  repository: string;
@@ -1189,6 +1207,17 @@ export type FormMultiselectField1 = {
1189
1207
  export type FormAnswer1 = {
1190
1208
  [x: string]: FormValue1;
1191
1209
  };
1210
+ export type ScheduleWhenIn = {
1211
+ type: "in";
1212
+ in: ScheduleDuration;
1213
+ tz?: string;
1214
+ };
1215
+ export type ScheduleWhenEvery = {
1216
+ type: "every";
1217
+ every: ScheduleDuration;
1218
+ tz?: string;
1219
+ };
1220
+ export type ScheduleAction = ScheduleActionPrompt;
1192
1221
  export type VcsInfo = {
1193
1222
  provider?: string;
1194
1223
  branch: VcsBranch;
@@ -2938,6 +2967,7 @@ export type FormReplied = {
2938
2967
  answer: FormAnswer1;
2939
2968
  };
2940
2969
  };
2970
+ export type ScheduleWhen = ScheduleWhenIn | ScheduleWhenAt | ScheduleWhenEvery | ScheduleWhenCron;
2941
2971
  export type SessionInboxMove = {
2942
2972
  id: SessionMessageID;
2943
2973
  sessionID: SessionID;
@@ -3369,10 +3399,12 @@ export type ConfigEntry = {
3369
3399
  todo?: boolean;
3370
3400
  background_compaction?: boolean;
3371
3401
  media_blob?: boolean;
3372
- image_model?: string | {
3373
- providerID: string;
3374
- model: string;
3375
- variant?: string;
3402
+ image_generate?: boolean | {
3403
+ model?: string | {
3404
+ providerID: string;
3405
+ model: string;
3406
+ variant?: string;
3407
+ };
3376
3408
  };
3377
3409
  schedules?: boolean;
3378
3410
  subagent_depth?: number;
@@ -3468,6 +3500,25 @@ export type CredentialEntry = {
3468
3500
  value: CredentialValue;
3469
3501
  };
3470
3502
  export type FormFields2 = [FormField1, ...Array<FormField1>];
3503
+ export type ScheduleInfo = {
3504
+ id: ScheduleID;
3505
+ sessionID?: SessionID;
3506
+ name?: string;
3507
+ when: ScheduleWhen;
3508
+ tz: string;
3509
+ action: ScheduleAction;
3510
+ status: ScheduleStatus;
3511
+ nextDueAt?: number;
3512
+ endsAt?: number;
3513
+ remainingRuns?: number;
3514
+ runCount: number;
3515
+ lastFiredAt?: number;
3516
+ lastOutcome?: ScheduleOutcome;
3517
+ time: {
3518
+ created: number;
3519
+ updated: number;
3520
+ };
3521
+ };
3471
3522
  export type AgentInfo = {
3472
3523
  id: AgentID;
3473
3524
  name: string;
@@ -3856,6 +3907,12 @@ export type PtyNotFoundError = {
3856
3907
  readonly message: string;
3857
3908
  };
3858
3909
  export declare const isPtyNotFoundError: (value: unknown) => value is PtyNotFoundError;
3910
+ export type ScheduleNotFoundError = {
3911
+ readonly _tag: "ScheduleNotFoundError";
3912
+ readonly scheduleID: string;
3913
+ readonly message: string;
3914
+ };
3915
+ export declare const isScheduleNotFoundError: (value: unknown) => value is ScheduleNotFoundError;
3859
3916
  export type ShellNotFoundError = {
3860
3917
  readonly _tag: "ShellNotFoundError";
3861
3918
  readonly id: string;
@@ -5288,6 +5345,72 @@ export type ExperimentalMediaGetInput = {
5288
5345
  readonly hash: string;
5289
5346
  };
5290
5347
  export type ExperimentalMediaGetOutput = globalThis.Uint8Array;
5348
+ export type ExperimentalScheduleCreateInput = {
5349
+ readonly sessionID: string;
5350
+ readonly name?: string | undefined;
5351
+ readonly when: {
5352
+ readonly in: string;
5353
+ readonly at?: never;
5354
+ readonly every?: never;
5355
+ readonly cron?: never;
5356
+ readonly tz?: string;
5357
+ } | {
5358
+ readonly at: string;
5359
+ readonly in?: never;
5360
+ readonly every?: never;
5361
+ readonly cron?: never;
5362
+ readonly tz?: string;
5363
+ } | {
5364
+ readonly every: string;
5365
+ readonly in?: never;
5366
+ readonly at?: never;
5367
+ readonly cron?: never;
5368
+ readonly tz?: string;
5369
+ } | {
5370
+ readonly cron: string;
5371
+ readonly in?: never;
5372
+ readonly at?: never;
5373
+ readonly every?: never;
5374
+ readonly tz?: string;
5375
+ };
5376
+ readonly ends?: {
5377
+ readonly after?: string;
5378
+ readonly at?: string;
5379
+ readonly times?: number;
5380
+ } | undefined;
5381
+ readonly prompt: string;
5382
+ };
5383
+ export type ExperimentalScheduleCreateOutput = {
5384
+ data: ScheduleInfo;
5385
+ }["data"];
5386
+ export type ExperimentalScheduleListInput = {
5387
+ readonly sessionID: string;
5388
+ };
5389
+ export type ExperimentalScheduleListOutput = {
5390
+ data: Array<ScheduleInfo>;
5391
+ }["data"];
5392
+ export type ExperimentalScheduleGetInput = {
5393
+ readonly scheduleID: string;
5394
+ };
5395
+ export type ExperimentalScheduleGetOutput = {
5396
+ data: ScheduleInfo;
5397
+ }["data"];
5398
+ export type ExperimentalSchedulePauseInput = {
5399
+ readonly scheduleID: string;
5400
+ };
5401
+ export type ExperimentalSchedulePauseOutput = {
5402
+ data: ScheduleInfo;
5403
+ }["data"];
5404
+ export type ExperimentalScheduleResumeInput = {
5405
+ readonly scheduleID: string;
5406
+ };
5407
+ export type ExperimentalScheduleResumeOutput = {
5408
+ data: ScheduleInfo;
5409
+ }["data"];
5410
+ export type ExperimentalScheduleDeleteInput = {
5411
+ readonly scheduleID: string;
5412
+ };
5413
+ export type ExperimentalScheduleDeleteOutput = void;
5291
5414
  export type ShellListInput = {
5292
5415
  readonly location?: {
5293
5416
  readonly directory?: string | undefined;
@@ -34,10 +34,11 @@ import {
34
34
  isRpcError2,
35
35
  isRpcInternalError2,
36
36
  isPtyNotFoundError2,
37
+ isScheduleNotFoundError2,
37
38
  isShellNotFoundError2,
38
39
  isWorktreeError2,
39
40
  isVcsInitNotSupportedError2
40
- } from "../../chunks/service-contender-0f3b9fnq.js";
41
+ } from "../../chunks/service-timing-cvg5j6d1.js";
41
42
  export {
42
43
  isAgentNotFoundError2 as isAgentNotFoundError,
43
44
  isCommandExecutionError2 as isCommandExecutionError,
@@ -67,6 +68,7 @@ export {
67
68
  isPtyNotFoundError2 as isPtyNotFoundError,
68
69
  isRpcError2 as isRpcError,
69
70
  isRpcInternalError2 as isRpcInternalError,
71
+ isScheduleNotFoundError2 as isScheduleNotFoundError,
70
72
  isServiceUnavailableError2 as isServiceUnavailableError,
71
73
  isSessionBusyError2 as isSessionBusyError,
72
74
  isSessionNotFoundError2 as isSessionNotFoundError,