@opencode/client 2.2.7 → 2.3.1

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 (69) hide show
  1. package/dist/chunks/{shared-events-2r38e168.js → service-3v8v7cjx.js} +42 -28
  2. package/dist/chunks/{shared-events-sdjh9vmn.js → service-6hqrj29e.js} +5 -3
  3. package/dist/chunks/{shared-events-y2etg5bs.js → service-7f0py9js.js} +2 -2
  4. package/dist/chunks/{shared-events-2ny4vxct.js → service-8ye1ye6f.js} +2 -2
  5. package/dist/chunks/{shared-events-15p82y03.js → service-anregfhs.js} +5 -5
  6. package/dist/chunks/service-az3r2kmr.js +30 -0
  7. package/dist/chunks/{shared-events-gecjxyvt.js → service-gecjxyvt.js} +1 -1
  8. package/dist/chunks/{shared-events-nwcpakzx.js → service-js54wxgp.js} +2 -2
  9. package/dist/chunks/{shared-events-yn39sb5p.js → service-mqnb71k6.js} +49 -16
  10. package/dist/chunks/{shared-events-c49mnkv6.js → service-n22dhmav.js} +17 -17
  11. package/dist/chunks/{shared-events-qdgaygb4.js → service-nmmc7qpz.js} +68 -32
  12. package/dist/chunks/{shared-events-ryy6kscr.js → service-ryy6kscr.js} +1 -1
  13. package/dist/chunks/{shared-events-xj1v5np5.js → service-th5q8fjm.js} +2 -2
  14. package/dist/chunks/{shared-events-xqwq6bgr.js → service-xafd70ys.js} +1 -1
  15. package/dist/contract.js +1 -1
  16. package/dist/effect/api/api.d.ts +81 -39
  17. package/dist/effect/client.d.ts +53 -240
  18. package/dist/effect/client.js +12 -12
  19. package/dist/effect/generated/client-error.js +3 -3
  20. package/dist/effect/generated/client.d.ts +53 -240
  21. package/dist/effect/generated/client.js +5 -5
  22. package/dist/effect/generated/index.js +8 -8
  23. package/dist/effect/index.js +12 -12
  24. package/dist/effect/rpc.js +4 -4
  25. package/dist/effect/service.js +6 -6
  26. package/dist/promise/client.d.ts +15 -8
  27. package/dist/promise/client.js +11 -11
  28. package/dist/promise/generated/client-error.js +3 -3
  29. package/dist/promise/generated/client.d.ts +15 -8
  30. package/dist/promise/generated/client.js +4 -4
  31. package/dist/promise/generated/index.js +16 -12
  32. package/dist/promise/generated/types.d.ts +268 -144
  33. package/dist/promise/generated/types.js +8 -4
  34. package/dist/promise/index.js +23 -19
  35. package/dist/promise/media.d.ts +15 -8
  36. package/dist/promise/media.js +1 -1
  37. package/dist/promise/rpc.js +2 -2
  38. package/dist/promise/service.js +6 -6
  39. package/dist/pty-handoff.js +4 -4
  40. package/dist/rpc-runtime.js +1 -1
  41. package/dist/service-contender.js +1 -1
  42. package/dist/service-probe.js +3 -3
  43. package/dist/service-timing.js +1 -1
  44. package/dist/service-version.js +1 -1
  45. package/dist/service.js +1 -1
  46. package/dist/shared-events.js +1 -1
  47. package/dist/solid/connection.js +1 -1
  48. package/dist/solid/data.d.ts +5 -2
  49. package/dist/solid/data.js +10 -10
  50. package/dist/solid/index.js +14 -14
  51. package/dist/solid/pty.js +1 -1
  52. package/dist/solid/retention.js +1 -1
  53. package/dist/solid/usage.js +1 -1
  54. package/package.json +4 -4
  55. package/dist/chunks/shared-events-dqjrwhzg.js +0 -30
  56. /package/dist/chunks/{shared-events-3eaz3m83.js → service-3eaz3m83.js} +0 -0
  57. /package/dist/chunks/{shared-events-60xe5cbf.js → service-60xe5cbf.js} +0 -0
  58. /package/dist/chunks/{shared-events-6mptkzbc.js → service-6mptkzbc.js} +0 -0
  59. /package/dist/chunks/{shared-events-6mq2wh8y.js → service-6mq2wh8y.js} +0 -0
  60. /package/dist/chunks/{shared-events-6r38tsk5.js → service-6r38tsk5.js} +0 -0
  61. /package/dist/chunks/{shared-events-8s2anffy.js → service-8s2anffy.js} +0 -0
  62. /package/dist/chunks/{shared-events-9rqn6x4v.js → service-9rqn6x4v.js} +0 -0
  63. /package/dist/chunks/{shared-events-mwrzahmf.js → service-mwrzahmf.js} +0 -0
  64. /package/dist/chunks/{shared-events-qav6mfdz.js → service-qav6mfdz.js} +0 -0
  65. /package/dist/chunks/{shared-events-sxt88q69.js → service-sxt88q69.js} +0 -0
  66. /package/dist/chunks/{shared-events-ve4aws36.js → service-ve4aws36.js} +0 -0
  67. /package/dist/chunks/{shared-events-vyas3vgt.js → service-vyas3vgt.js} +0 -0
  68. /package/dist/chunks/{shared-events-xgnj2w4v.js → service-xgnj2w4v.js} +0 -0
  69. /package/dist/chunks/{shared-events-ydhz1zrh.js → service-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, ExperimentalScheduleCreateInput, ExperimentalScheduleListInput, ExperimentalScheduleListOutput, ExperimentalScheduleGetInput, ExperimentalSchedulePauseInput, ExperimentalScheduleResumeInput, ExperimentalScheduleDeleteInput, ExperimentalArtifactsProvidersInput, ExperimentalArtifactsProvidersOutput, ExperimentalArtifactsListInput, ExperimentalArtifactsListOutput, ExperimentalArtifactsCreateInput, ExperimentalArtifactsCreateOutput, ExperimentalArtifactsGetInput, ExperimentalArtifactsGetOutput, ExperimentalArtifactsUpdateInput, ExperimentalArtifactsUpdateOutput, ExperimentalArtifactsDeleteInput, ExperimentalJobListInput, ExperimentalJobListOutput, 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, ExperimentalGenerateVideoCreateInput, ExperimentalGenerateVideoGetInput, 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, ExperimentalAutomationCreateInput, ExperimentalAutomationListInput, ExperimentalAutomationListOutput, ExperimentalAutomationGetInput, ExperimentalAutomationPauseInput, ExperimentalAutomationResumeInput, ExperimentalAutomationDeleteInput, ExperimentalArtifactsProvidersInput, ExperimentalArtifactsProvidersOutput, ExperimentalArtifactsListInput, ExperimentalArtifactsListOutput, ExperimentalArtifactsCreateInput, ExperimentalArtifactsCreateOutput, ExperimentalArtifactsGetInput, ExperimentalArtifactsGetOutput, ExperimentalArtifactsUpdateInput, ExperimentalArtifactsUpdateOutput, ExperimentalArtifactsDeleteInput, ExperimentalJobListInput, ExperimentalJobListOutput, 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,245 +38,13 @@ 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 if?: {
65
- readonly type: "code";
66
- readonly code: string;
67
- } | {
68
- readonly type: "shell";
69
- readonly run: string;
70
- readonly is?: string | undefined;
71
- readonly matches?: string | undefined;
72
- readonly changes?: boolean | undefined;
73
- } | undefined;
74
- readonly until?: {
75
- readonly type: "code";
76
- readonly code: string;
77
- } | {
78
- readonly type: "shell";
79
- readonly run: string;
80
- readonly is?: string | undefined;
81
- readonly matches?: string | undefined;
82
- readonly changes?: boolean | undefined;
83
- } | undefined;
84
- readonly action: {
85
- readonly type: "prompt";
86
- readonly prompt: string;
87
- };
88
- readonly status: "active" | "done" | "paused";
89
- readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
90
- readonly endsAt?: import("effect/DateTime").Utc | undefined;
91
- readonly remainingRuns?: number | undefined;
92
- readonly runCount: number;
93
- readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
94
- readonly lastOutcome?: "checked" | "disabled" | "expired" | "failed" | "fired" | "late" | "skipped" | undefined;
95
- readonly lastOutput?: string | undefined;
96
- readonly time: {
97
- readonly created: import("effect/DateTime").Utc;
98
- readonly updated: import("effect/DateTime").Utc;
99
- };
100
- }, 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>;
101
- 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>;
102
- get: (input: ExperimentalScheduleGetInput) => Effect.Effect<{
103
- readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
104
- readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
105
- readonly name?: string | undefined;
106
- readonly when: {
107
- readonly tz?: string | undefined;
108
- readonly type: "in";
109
- readonly in: string;
110
- } | {
111
- readonly tz?: string | undefined;
112
- readonly type: "at";
113
- readonly at: string;
114
- } | {
115
- readonly tz?: string | undefined;
116
- readonly type: "every";
117
- readonly every: string;
118
- } | {
119
- readonly tz?: string | undefined;
120
- readonly type: "cron";
121
- readonly cron: string;
122
- };
123
- readonly tz: string;
124
- readonly if?: {
125
- readonly type: "code";
126
- readonly code: string;
127
- } | {
128
- readonly type: "shell";
129
- readonly run: string;
130
- readonly is?: string | undefined;
131
- readonly matches?: string | undefined;
132
- readonly changes?: boolean | undefined;
133
- } | undefined;
134
- readonly until?: {
135
- readonly type: "code";
136
- readonly code: string;
137
- } | {
138
- readonly type: "shell";
139
- readonly run: string;
140
- readonly is?: string | undefined;
141
- readonly matches?: string | undefined;
142
- readonly changes?: boolean | undefined;
143
- } | undefined;
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?: "checked" | "disabled" | "expired" | "failed" | "fired" | "late" | "skipped" | undefined;
155
- readonly lastOutput?: string | undefined;
156
- readonly time: {
157
- readonly created: import("effect/DateTime").Utc;
158
- readonly updated: import("effect/DateTime").Utc;
159
- };
160
- }, 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>;
161
- pause: (input: ExperimentalSchedulePauseInput) => Effect.Effect<{
162
- readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
163
- readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
164
- readonly name?: string | undefined;
165
- readonly when: {
166
- readonly tz?: string | undefined;
167
- readonly type: "in";
168
- readonly in: string;
169
- } | {
170
- readonly tz?: string | undefined;
171
- readonly type: "at";
172
- readonly at: string;
173
- } | {
174
- readonly tz?: string | undefined;
175
- readonly type: "every";
176
- readonly every: string;
177
- } | {
178
- readonly tz?: string | undefined;
179
- readonly type: "cron";
180
- readonly cron: string;
181
- };
182
- readonly tz: string;
183
- readonly if?: {
184
- readonly type: "code";
185
- readonly code: string;
186
- } | {
187
- readonly type: "shell";
188
- readonly run: string;
189
- readonly is?: string | undefined;
190
- readonly matches?: string | undefined;
191
- readonly changes?: boolean | undefined;
192
- } | undefined;
193
- readonly until?: {
194
- readonly type: "code";
195
- readonly code: string;
196
- } | {
197
- readonly type: "shell";
198
- readonly run: string;
199
- readonly is?: string | undefined;
200
- readonly matches?: string | undefined;
201
- readonly changes?: boolean | undefined;
202
- } | undefined;
203
- readonly action: {
204
- readonly type: "prompt";
205
- readonly prompt: string;
206
- };
207
- readonly status: "active" | "done" | "paused";
208
- readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
209
- readonly endsAt?: import("effect/DateTime").Utc | undefined;
210
- readonly remainingRuns?: number | undefined;
211
- readonly runCount: number;
212
- readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
213
- readonly lastOutcome?: "checked" | "disabled" | "expired" | "failed" | "fired" | "late" | "skipped" | undefined;
214
- readonly lastOutput?: string | undefined;
215
- readonly time: {
216
- readonly created: import("effect/DateTime").Utc;
217
- readonly updated: import("effect/DateTime").Utc;
218
- };
219
- }, 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>;
220
- resume: (input: ExperimentalScheduleResumeInput) => Effect.Effect<{
221
- readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
222
- readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
223
- readonly name?: string | undefined;
224
- readonly when: {
225
- readonly tz?: string | undefined;
226
- readonly type: "in";
227
- readonly in: string;
228
- } | {
229
- readonly tz?: string | undefined;
230
- readonly type: "at";
231
- readonly at: string;
232
- } | {
233
- readonly tz?: string | undefined;
234
- readonly type: "every";
235
- readonly every: string;
236
- } | {
237
- readonly tz?: string | undefined;
238
- readonly type: "cron";
239
- readonly cron: string;
240
- };
241
- readonly tz: string;
242
- readonly if?: {
243
- readonly type: "code";
244
- readonly code: string;
245
- } | {
246
- readonly type: "shell";
247
- readonly run: string;
248
- readonly is?: string | undefined;
249
- readonly matches?: string | undefined;
250
- readonly changes?: boolean | undefined;
251
- } | undefined;
252
- readonly until?: {
253
- readonly type: "code";
254
- readonly code: string;
255
- } | {
256
- readonly type: "shell";
257
- readonly run: string;
258
- readonly is?: string | undefined;
259
- readonly matches?: string | undefined;
260
- readonly changes?: boolean | undefined;
261
- } | undefined;
262
- readonly action: {
263
- readonly type: "prompt";
264
- readonly prompt: string;
265
- };
266
- readonly status: "active" | "done" | "paused";
267
- readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
268
- readonly endsAt?: import("effect/DateTime").Utc | undefined;
269
- readonly remainingRuns?: number | undefined;
270
- readonly runCount: number;
271
- readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
272
- readonly lastOutcome?: "checked" | "disabled" | "expired" | "failed" | "fired" | "late" | "skipped" | undefined;
273
- readonly lastOutput?: string | undefined;
274
- readonly time: {
275
- readonly created: import("effect/DateTime").Utc;
276
- readonly updated: import("effect/DateTime").Utc;
277
- };
278
- }, 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>;
279
- 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>;
41
+ automation: {
42
+ create: (input: ExperimentalAutomationCreateInput) => Effect.Effect<import("@opencode/schema/automation").Info, 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>;
43
+ list: (input?: ExperimentalAutomationListInput) => Effect.Effect<ExperimentalAutomationListOutput, 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>;
44
+ get: (input: ExperimentalAutomationGetInput) => Effect.Effect<import("@opencode/schema/automation").Info, import("@opencode/protocol/errors").AutomationNotFoundError | ClientError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
45
+ pause: (input: ExperimentalAutomationPauseInput) => Effect.Effect<import("@opencode/schema/automation").Info, import("@opencode/protocol/errors").AutomationNotFoundError | ClientError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
46
+ resume: (input: ExperimentalAutomationResumeInput) => Effect.Effect<import("@opencode/schema/automation").Info, import("@opencode/protocol/errors").AutomationNotFoundError | ClientError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
47
+ delete: (input: ExperimentalAutomationDeleteInput) => Effect.Effect<void, import("@opencode/protocol/errors").AutomationNotFoundError | ClientError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
280
48
  };
281
49
  artifacts: {
282
50
  providers: (input?: ExperimentalArtifactsProvidersInput) => Effect.Effect<ExperimentalArtifactsProvidersOutput, ClientError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
@@ -307,6 +75,10 @@ export declare const make: (options?: {
307
75
  generate: {
308
76
  text: (input: ExperimentalGenerateTextInput) => Effect.Effect<ExperimentalGenerateTextOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | Schema.SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
309
77
  image: (input: ExperimentalGenerateImageInput) => Effect.Effect<import("@opencode/schema/generate").ImageResult, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | Schema.SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
78
+ video: {
79
+ create: (input: ExperimentalGenerateVideoCreateInput) => Effect.Effect<import("@opencode/schema/generate").VideoRunning, ClientError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | Schema.SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
80
+ get: (input: ExperimentalGenerateVideoGetInput) => Effect.Effect<import("@opencode/schema/generate").VideoJob, ClientError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").VideoNotFoundError, never>;
81
+ };
310
82
  decisions: (input: ExperimentalGenerateDecisionsInput) => Effect.Effect<import("@opencode/schema/generate").DecisionResult, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | Schema.SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
311
83
  };
312
84
  voice: {
@@ -1345,6 +1117,26 @@ export declare const make: (options?: {
1345
1117
  readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1346
1118
  readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1347
1119
  };
1120
+ } | {
1121
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1122
+ readonly created: number;
1123
+ readonly metadata?: {
1124
+ readonly [x: string]: unknown;
1125
+ } | undefined;
1126
+ readonly type: "session.step.first-token";
1127
+ readonly durable: {
1128
+ readonly aggregateID: string;
1129
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1130
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1131
+ };
1132
+ readonly location?: {
1133
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1134
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1135
+ } | undefined;
1136
+ readonly data: {
1137
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1138
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1139
+ };
1348
1140
  } | {
1349
1141
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1350
1142
  readonly created: number;
@@ -1773,6 +1565,27 @@ export declare const make: (options?: {
1773
1565
  readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
1774
1566
  readonly credentialID: string & import("effect/Brand").Brand<"Credential.ID">;
1775
1567
  };
1568
+ } | {
1569
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1570
+ readonly created: number;
1571
+ readonly metadata?: {
1572
+ readonly [x: string]: unknown;
1573
+ } | undefined;
1574
+ readonly type: "experimental.mcp.event";
1575
+ readonly location?: {
1576
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1577
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1578
+ } | undefined;
1579
+ readonly data: {
1580
+ readonly id: string;
1581
+ readonly server: string;
1582
+ readonly name: string;
1583
+ readonly eventId: string;
1584
+ readonly timestamp: string;
1585
+ readonly data: Schema.Json;
1586
+ readonly cursor: string | null;
1587
+ readonly truncated?: boolean | undefined;
1588
+ };
1776
1589
  } | {
1777
1590
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1778
1591
  readonly created: number;
@@ -1,8 +1,8 @@
1
1
  import {
2
- make4
3
- } from "../../chunks/shared-events-2r38e168.js";
4
- import"../../chunks/shared-events-y2etg5bs.js";
5
- import"../../chunks/shared-events-60xe5cbf.js";
2
+ make6
3
+ } from "../../chunks/service-3v8v7cjx.js";
4
+ import"../../chunks/service-7f0py9js.js";
5
+ import"../../chunks/service-60xe5cbf.js";
6
6
  export {
7
- make4 as make
7
+ make6 as make
8
8
  };
@@ -1,12 +1,12 @@
1
- import"../../chunks/shared-events-6mptkzbc.js";
1
+ import"../../chunks/service-6mptkzbc.js";
2
2
  import {
3
- exports_client2
4
- } from "../../chunks/shared-events-2r38e168.js";
3
+ exports_client4
4
+ } from "../../chunks/service-3v8v7cjx.js";
5
5
  import {
6
- ClientError2
7
- } from "../../chunks/shared-events-y2etg5bs.js";
8
- import"../../chunks/shared-events-60xe5cbf.js";
6
+ ClientError3
7
+ } from "../../chunks/service-7f0py9js.js";
8
+ import"../../chunks/service-60xe5cbf.js";
9
9
  export {
10
- ClientError2 as ClientError,
11
- exports_client2 as OpenCode
10
+ ClientError3 as ClientError,
11
+ exports_client4 as OpenCode
12
12
  };
@@ -1,15 +1,15 @@
1
1
  import {
2
- ClientError2
3
- } from "../chunks/shared-events-y2etg5bs.js";
4
- import"../chunks/shared-events-60xe5cbf.js";
5
- import"../chunks/shared-events-2r38e168.js";
6
- import"../chunks/shared-events-6mptkzbc.js";
7
- import"../chunks/shared-events-gecjxyvt.js";
8
- import"../chunks/shared-events-ryy6kscr.js";
9
- import"../chunks/shared-events-15p82y03.js";
2
+ ClientError3
3
+ } from "../chunks/service-7f0py9js.js";
4
+ import"../chunks/service-60xe5cbf.js";
5
+ import"../chunks/service-3v8v7cjx.js";
6
+ import"../chunks/service-6mptkzbc.js";
7
+ import"../chunks/service-gecjxyvt.js";
8
+ import"../chunks/service-ryy6kscr.js";
9
+ import"../chunks/service-anregfhs.js";
10
10
  import {
11
- exports_client
12
- } from "../chunks/shared-events-c49mnkv6.js";
11
+ exports_client3
12
+ } from "../chunks/service-n22dhmav.js";
13
13
 
14
14
  // src/effect/index.ts
15
15
  import { Agent } from "@opencode/schema/agent";
@@ -43,7 +43,7 @@ import { PromptInput } from "@opencode/schema/prompt-input";
43
43
  export {
44
44
  AbsolutePath,
45
45
  Agent,
46
- ClientError2 as ClientError,
46
+ ClientError3 as ClientError,
47
47
  Command,
48
48
  Config,
49
49
  Credential,
@@ -54,7 +54,7 @@ export {
54
54
  Integration,
55
55
  Location,
56
56
  Model,
57
- exports_client as OpenCode,
57
+ exports_client3 as OpenCode,
58
58
  Permission,
59
59
  PermissionSaved,
60
60
  Project,
@@ -1,11 +1,11 @@
1
1
  import {
2
- make3,
2
+ make5,
3
3
  aborted2,
4
4
  exports_rpc
5
- } from "../chunks/shared-events-15p82y03.js";
6
- import"../chunks/shared-events-ryy6kscr.js";
5
+ } from "../chunks/service-anregfhs.js";
6
+ import"../chunks/service-ryy6kscr.js";
7
7
  export {
8
8
  exports_rpc as RpcClientRuntime,
9
9
  aborted2 as aborted,
10
- make3 as make
10
+ make5 as make
11
11
  };
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  spawnServiceContender2,
3
3
  contenderPool2
4
- } from "../chunks/shared-events-ve4aws36.js";
4
+ } from "../chunks/service-ve4aws36.js";
5
5
  import {
6
6
  defaultEnsureTiming2,
7
7
  ensureTiming2
8
- } from "../chunks/shared-events-xgnj2w4v.js";
8
+ } from "../chunks/service-xgnj2w4v.js";
9
9
  import {
10
10
  matchesVersion2
11
- } from "../chunks/shared-events-sxt88q69.js";
11
+ } from "../chunks/service-sxt88q69.js";
12
12
  import {
13
13
  decide2,
14
14
  fallback2,
15
15
  same2,
16
16
  probeResult2,
17
17
  headers2
18
- } from "../chunks/shared-events-2ny4vxct.js";
18
+ } from "../chunks/service-8ye1ye6f.js";
19
19
  import {
20
20
  prepare2,
21
21
  environment2,
22
22
  complete2,
23
23
  clear2
24
- } from "../chunks/shared-events-xj1v5np5.js";
25
- import"../chunks/shared-events-qav6mfdz.js";
24
+ } from "../chunks/service-th5q8fjm.js";
25
+ import"../chunks/service-qav6mfdz.js";
26
26
 
27
27
  // src/effect/service.ts
28
28
  import { Effect, FileSystem, Option, Schedule, Schema } from "effect";