@opencode/client 0.0.0-dev-210 → 0.0.0-dev-216
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.
- package/dist/chunks/{service-contender-anregfhs.js → contract-15p82y03.js} +5 -5
- package/dist/chunks/{service-contender-8ye1ye6f.js → contract-2ny4vxct.js} +2 -2
- package/dist/chunks/{service-contender-khkm0pf7.js → contract-csehnca4.js} +1 -1
- package/dist/chunks/{service-contender-0f3b9fnq.js → contract-cvg5j6d1.js} +2 -1
- package/dist/chunks/{service-contender-ph0x2cx8.js → contract-e4dem3g3.js} +17 -17
- package/dist/chunks/{service-contender-gecjxyvt.js → contract-gecjxyvt.js} +1 -1
- package/dist/chunks/{service-contender-bwabkrm6.js → contract-jndfjhn3.js} +2 -2
- package/dist/chunks/{service-contender-z11mztjj.js → contract-kdshn947.js} +1 -1
- package/dist/chunks/{service-contender-js54wxgp.js → contract-nwcpakzx.js} +2 -2
- package/dist/chunks/contract-p0cwenbx.js +30 -0
- package/dist/chunks/{service-contender-8mywvvwh.js → contract-r76mn47y.js} +32 -10
- package/dist/chunks/{service-contender-ryy6kscr.js → contract-ryy6kscr.js} +1 -1
- package/dist/chunks/{service-contender-7f0py9js.js → contract-y2etg5bs.js} +2 -2
- package/dist/chunks/{service-contender-sp3vqdnr.js → contract-yn2a71yh.js} +71 -19
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +43 -0
- package/dist/effect/client.d.ts +156 -0
- package/dist/effect/client.js +12 -12
- package/dist/effect/generated/client-error.js +3 -3
- package/dist/effect/generated/client.d.ts +157 -1
- package/dist/effect/generated/client.js +5 -5
- package/dist/effect/generated/index.js +8 -8
- package/dist/effect/index.js +12 -12
- package/dist/effect/rpc.js +4 -4
- package/dist/effect/service.js +6 -6
- package/dist/promise/client.d.ts +8 -0
- package/dist/promise/client.js +11 -11
- package/dist/promise/generated/client-error.js +3 -3
- package/dist/promise/generated/client.d.ts +9 -1
- package/dist/promise/generated/client.js +4 -4
- package/dist/promise/generated/index.js +11 -9
- package/dist/promise/generated/types.d.ts +121 -0
- package/dist/promise/generated/types.js +3 -1
- package/dist/promise/index.js +15 -13
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +6 -6
- package/dist/pty-handoff.js +4 -4
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- package/dist/service-probe.js +3 -3
- package/dist/service-timing.js +1 -1
- package/dist/service-version.js +1 -1
- package/dist/service.js +1 -1
- package/dist/shared-events.js +1 -1
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.js +9 -9
- package/dist/solid/index.js +13 -13
- package/dist/solid/pty.js +1 -1
- package/dist/solid/retention.js +1 -1
- package/dist/solid/usage.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/service-contender-ek8qkqrq.js +0 -30
- /package/dist/chunks/{service-contender-60xe5cbf.js → contract-60xe5cbf.js} +0 -0
- /package/dist/chunks/{service-contender-6mptkzbc.js → contract-6mptkzbc.js} +0 -0
- /package/dist/chunks/{service-contender-6mq2wh8y.js → contract-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{service-contender-8s2anffy.js → contract-8s2anffy.js} +0 -0
- /package/dist/chunks/{service-contender-9rqn6x4v.js → contract-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-contender-gne7h7mq.js → contract-gne7h7mq.js} +0 -0
- /package/dist/chunks/{service-contender-m2eywc8w.js → contract-m2eywc8w.js} +0 -0
- /package/dist/chunks/{service-contender-qav6mfdz.js → contract-qav6mfdz.js} +0 -0
- /package/dist/chunks/{service-contender-sxt88q69.js → contract-sxt88q69.js} +0 -0
- /package/dist/chunks/{service-contender-ve4aws36.js → contract-ve4aws36.js} +0 -0
- /package/dist/chunks/{service-contender-vyas3vgt.js → contract-vyas3vgt.js} +0 -0
- /package/dist/chunks/{service-contender-xgnj2w4v.js → contract-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{service-contender-ydhz1zrh.js → contract-ydhz1zrh.js} +0 -0
package/dist/effect/client.d.ts
CHANGED
|
@@ -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>;
|
package/dist/effect/client.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
11
|
-
import"../chunks/
|
|
2
|
+
make2,
|
|
3
|
+
exports_client
|
|
4
|
+
} from "../chunks/contract-e4dem3g3.js";
|
|
5
|
+
import"../chunks/contract-6mptkzbc.js";
|
|
6
|
+
import"../chunks/contract-15p82y03.js";
|
|
7
|
+
import"../chunks/contract-r76mn47y.js";
|
|
8
|
+
import"../chunks/contract-y2etg5bs.js";
|
|
9
|
+
import"../chunks/contract-60xe5cbf.js";
|
|
10
|
+
import"../chunks/contract-gecjxyvt.js";
|
|
11
|
+
import"../chunks/contract-ryy6kscr.js";
|
|
12
12
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
exports_client as OpenCode,
|
|
14
|
+
make2 as make
|
|
15
15
|
};
|
|
@@ -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
|
-
|
|
3
|
-
} from "../../chunks/
|
|
4
|
-
import"../../chunks/
|
|
5
|
-
import"../../chunks/
|
|
2
|
+
make4
|
|
3
|
+
} from "../../chunks/contract-r76mn47y.js";
|
|
4
|
+
import"../../chunks/contract-y2etg5bs.js";
|
|
5
|
+
import"../../chunks/contract-60xe5cbf.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
make4 as make
|
|
8
8
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import"../../chunks/
|
|
1
|
+
import"../../chunks/contract-6mptkzbc.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../chunks/
|
|
3
|
+
exports_client2
|
|
4
|
+
} from "../../chunks/contract-r76mn47y.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../chunks/
|
|
8
|
-
import"../../chunks/
|
|
6
|
+
ClientError2
|
|
7
|
+
} from "../../chunks/contract-y2etg5bs.js";
|
|
8
|
+
import"../../chunks/contract-60xe5cbf.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
ClientError2 as ClientError,
|
|
11
|
+
exports_client2 as OpenCode
|
|
12
12
|
};
|
package/dist/effect/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
2
|
+
ClientError2
|
|
3
|
+
} from "../chunks/contract-y2etg5bs.js";
|
|
4
|
+
import"../chunks/contract-60xe5cbf.js";
|
|
5
|
+
import"../chunks/contract-r76mn47y.js";
|
|
6
|
+
import"../chunks/contract-6mptkzbc.js";
|
|
7
|
+
import"../chunks/contract-gecjxyvt.js";
|
|
8
|
+
import"../chunks/contract-ryy6kscr.js";
|
|
9
|
+
import"../chunks/contract-15p82y03.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "../chunks/
|
|
11
|
+
exports_client
|
|
12
|
+
} from "../chunks/contract-e4dem3g3.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
|
-
|
|
46
|
+
ClientError2 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
|
-
|
|
57
|
+
exports_client as OpenCode,
|
|
58
58
|
Permission,
|
|
59
59
|
PermissionSaved,
|
|
60
60
|
Project,
|
package/dist/effect/rpc.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
make3,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/contract-15p82y03.js";
|
|
6
|
+
import"../chunks/contract-ryy6kscr.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
|
10
|
-
|
|
10
|
+
make3 as make
|
|
11
11
|
};
|
package/dist/effect/service.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderPool2
|
|
4
|
-
} from "../chunks/
|
|
4
|
+
} from "../chunks/contract-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/
|
|
8
|
+
} from "../chunks/contract-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/contract-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
decide2,
|
|
14
14
|
fallback2,
|
|
15
15
|
same2,
|
|
16
16
|
probeResult2,
|
|
17
17
|
headers2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/contract-2ny4vxct.js";
|
|
19
19
|
import {
|
|
20
20
|
prepare2,
|
|
21
21
|
environment2,
|
|
22
22
|
complete2,
|
|
23
23
|
clear2
|
|
24
|
-
} from "../chunks/
|
|
25
|
-
import"../chunks/
|
|
24
|
+
} from "../chunks/contract-jndfjhn3.js";
|
|
25
|
+
import"../chunks/contract-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/effect/service.ts
|
|
28
28
|
import { Effect, FileSystem, Option, Schedule, Schema } from "effect";
|
package/dist/promise/client.d.ts
CHANGED
|
@@ -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>;
|
package/dist/promise/client.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
2
|
+
make5,
|
|
3
|
+
exports_client3
|
|
4
|
+
} from "../chunks/contract-p0cwenbx.js";
|
|
5
|
+
import"../chunks/contract-vyas3vgt.js";
|
|
6
|
+
import"../chunks/contract-yn2a71yh.js";
|
|
7
|
+
import"../chunks/contract-kdshn947.js";
|
|
8
|
+
import"../chunks/contract-cvg5j6d1.js";
|
|
9
|
+
import"../chunks/contract-nwcpakzx.js";
|
|
10
|
+
import"../chunks/contract-gecjxyvt.js";
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
exports_client3 as OpenCode,
|
|
13
|
+
make5 as make
|
|
14
14
|
};
|
|
@@ -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>;
|