@opencode/client 0.0.0-dev-21907 → 0.0.0-dev-21915
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/{contract-10stgdsh.js → rpc-runtime-10stgdsh.js} +1 -1
- package/dist/chunks/{contract-myz4ngx9.js → rpc-runtime-15p82y03.js} +5 -5
- package/dist/chunks/{contract-0dkx1ar4.js → rpc-runtime-1evy2k36.js} +2 -2
- package/dist/chunks/{contract-8ye1ye6f.js → rpc-runtime-2ny4vxct.js} +2 -2
- package/dist/chunks/{contract-8bbb028w.js → rpc-runtime-8bbb028w.js} +1 -1
- package/dist/chunks/{contract-ff0ps5x1.js → rpc-runtime-nk1xsepz.js} +17 -11
- package/dist/chunks/{contract-js54wxgp.js → rpc-runtime-nwcpakzx.js} +2 -2
- package/dist/chunks/{contract-ryy6kscr.js → rpc-runtime-ryy6kscr.js} +1 -1
- package/dist/chunks/{contract-skhp7hxc.js → rpc-runtime-skhp7hxc.js} +1 -1
- package/dist/chunks/rpc-runtime-vsajws5y.js +30 -0
- package/dist/chunks/{contract-7f0py9js.js → rpc-runtime-y2etg5bs.js} +2 -2
- package/dist/chunks/{contract-7j4cb6hh.js → rpc-runtime-ykh90e52.js} +17 -17
- package/dist/chunks/{contract-vea8g3zs.js → rpc-runtime-zzd46hf5.js} +36 -20
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +1 -0
- package/dist/effect/client.d.ts +1 -0
- package/dist/effect/client.js +12 -12
- package/dist/effect/generated/client-error.js +3 -3
- package/dist/effect/generated/client.d.ts +1 -0
- 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 +3 -0
- package/dist/promise/client.js +11 -11
- package/dist/promise/generated/client-error.js +3 -3
- package/dist/promise/generated/client.d.ts +4 -1
- package/dist/promise/generated/client.js +4 -4
- package/dist/promise/generated/index.js +10 -10
- package/dist/promise/generated/types.d.ts +23 -0
- package/dist/promise/generated/types.js +1 -1
- package/dist/promise/index.d.ts +1 -0
- package/dist/promise/index.js +13 -13
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.d.ts +2 -2
- package/dist/promise/service.js +7 -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/contract-e6cagkty.js +0 -30
- /package/dist/chunks/{contract-6mptkzbc.js → rpc-runtime-6mptkzbc.js} +0 -0
- /package/dist/chunks/{contract-6mq2wh8y.js → rpc-runtime-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{contract-8s2anffy.js → rpc-runtime-8s2anffy.js} +0 -0
- /package/dist/chunks/{contract-9rqn6x4v.js → rpc-runtime-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{contract-c46qzyff.js → rpc-runtime-c46qzyff.js} +0 -0
- /package/dist/chunks/{contract-gne7h7mq.js → rpc-runtime-gne7h7mq.js} +0 -0
- /package/dist/chunks/{contract-m2eywc8w.js → rpc-runtime-m2eywc8w.js} +0 -0
- /package/dist/chunks/{contract-qav6mfdz.js → rpc-runtime-qav6mfdz.js} +0 -0
- /package/dist/chunks/{contract-sxt88q69.js → rpc-runtime-sxt88q69.js} +0 -0
- /package/dist/chunks/{contract-ve4aws36.js → rpc-runtime-ve4aws36.js} +0 -0
- /package/dist/chunks/{contract-vmytr4q8.js → rpc-runtime-vmytr4q8.js} +0 -0
- /package/dist/chunks/{contract-vyas3vgt.js → rpc-runtime-vyas3vgt.js} +0 -0
- /package/dist/chunks/{contract-xgnj2w4v.js → rpc-runtime-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{contract-ydhz1zrh.js → rpc-runtime-ydhz1zrh.js} +0 -0
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/rpc-runtime-vsajws5y.js";
|
|
5
|
+
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
6
|
+
import"../chunks/rpc-runtime-skhp7hxc.js";
|
|
7
|
+
import"../chunks/rpc-runtime-c46qzyff.js";
|
|
8
|
+
import"../chunks/rpc-runtime-zzd46hf5.js";
|
|
9
|
+
import"../chunks/rpc-runtime-nwcpakzx.js";
|
|
10
|
+
import"../chunks/rpc-runtime-8bbb028w.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, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionStatsInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, VoiceSessionInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, McpClientTokenInput, McpClientTokenOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, FileWriteInput, FileWriteOutput, FileWatchInput, FileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, 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, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, UsageLimitsInput, UsageLimitsOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "./types.js";
|
|
1
|
+
import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionStatsInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, VoiceSessionInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, McpClientTokenInput, McpClientTokenOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, FileWriteInput, FileWriteOutput, FileWatchInput, FileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, 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, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, UsageLimitsInput, UsageLimitsOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "./types.js";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -224,6 +224,9 @@ export declare function make(options: ClientOptions): {
|
|
|
224
224
|
remove: (input: ExperimentalPersistentPtyRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
225
225
|
connectToken: (input: ExperimentalPersistentPtyConnectTokenInput, requestOptions?: RequestOptions) => Promise<import("./types.js").PtyTicketConnectToken>;
|
|
226
226
|
};
|
|
227
|
+
media: {
|
|
228
|
+
get: (input: ExperimentalMediaGetInput, requestOptions?: RequestOptions) => Promise<ExperimentalMediaGetOutput>;
|
|
229
|
+
};
|
|
227
230
|
};
|
|
228
231
|
shell: {
|
|
229
232
|
list: (input?: ShellListInput, requestOptions?: RequestOptions) => Promise<ShellListOutput>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/
|
|
4
|
-
import"../../chunks/
|
|
2
|
+
make6
|
|
3
|
+
} from "../../chunks/rpc-runtime-zzd46hf5.js";
|
|
4
|
+
import"../../chunks/rpc-runtime-nwcpakzx.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
make6 as make
|
|
7
7
|
};
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import"../../chunks/
|
|
2
|
-
import {
|
|
3
|
-
exports_client2
|
|
4
|
-
} from "../../chunks/contract-vea8g3zs.js";
|
|
5
|
-
import {
|
|
6
|
-
ClientError2
|
|
7
|
-
} from "../../chunks/contract-js54wxgp.js";
|
|
1
|
+
import"../../chunks/rpc-runtime-vyas3vgt.js";
|
|
8
2
|
import {
|
|
9
3
|
isInvalidRequestError2,
|
|
10
4
|
isUnauthorizedError2,
|
|
@@ -40,10 +34,16 @@ import {
|
|
|
40
34
|
isShellNotFoundError2,
|
|
41
35
|
isWorktreeError2,
|
|
42
36
|
isVcsInitNotSupportedError2
|
|
43
|
-
} from "../../chunks/
|
|
37
|
+
} from "../../chunks/rpc-runtime-c46qzyff.js";
|
|
38
|
+
import {
|
|
39
|
+
exports_client4
|
|
40
|
+
} from "../../chunks/rpc-runtime-zzd46hf5.js";
|
|
41
|
+
import {
|
|
42
|
+
ClientError3
|
|
43
|
+
} from "../../chunks/rpc-runtime-nwcpakzx.js";
|
|
44
44
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
ClientError3 as ClientError,
|
|
46
|
+
exports_client4 as OpenCode,
|
|
47
47
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
48
48
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
49
49
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
|
@@ -82,6 +82,7 @@ export type FileDiffInfo = {
|
|
|
82
82
|
additions: number;
|
|
83
83
|
deletions: number;
|
|
84
84
|
status: "added" | "deleted" | "modified";
|
|
85
|
+
more?: true;
|
|
85
86
|
};
|
|
86
87
|
export type SessionsCursor = string;
|
|
87
88
|
export type SessionStatsToolTotals = {
|
|
@@ -4200,6 +4201,7 @@ export type SessionImportInput = {
|
|
|
4200
4201
|
readonly additions: number;
|
|
4201
4202
|
readonly deletions: number;
|
|
4202
4203
|
readonly status: "added" | "deleted" | "modified";
|
|
4204
|
+
readonly more?: true;
|
|
4203
4205
|
}>;
|
|
4204
4206
|
};
|
|
4205
4207
|
readonly location: {
|
|
@@ -4270,6 +4272,7 @@ export type SessionImportInput = {
|
|
|
4270
4272
|
readonly additions: number;
|
|
4271
4273
|
readonly deletions: number;
|
|
4272
4274
|
readonly status: "added" | "deleted" | "modified";
|
|
4275
|
+
readonly more?: true;
|
|
4273
4276
|
}>;
|
|
4274
4277
|
};
|
|
4275
4278
|
readonly location: {
|
|
@@ -4340,6 +4343,7 @@ export type SessionImportInput = {
|
|
|
4340
4343
|
readonly additions: number;
|
|
4341
4344
|
readonly deletions: number;
|
|
4342
4345
|
readonly status: "added" | "deleted" | "modified";
|
|
4346
|
+
readonly more?: true;
|
|
4343
4347
|
}>;
|
|
4344
4348
|
};
|
|
4345
4349
|
readonly location: {
|
|
@@ -7533,6 +7537,12 @@ export type ExperimentalPersistentPtyConnectTokenInput = {
|
|
|
7533
7537
|
export type ExperimentalPersistentPtyConnectTokenOutput = {
|
|
7534
7538
|
data: PtyTicketConnectToken;
|
|
7535
7539
|
}["data"];
|
|
7540
|
+
export type ExperimentalMediaGetInput = {
|
|
7541
|
+
readonly hash: {
|
|
7542
|
+
readonly hash: string;
|
|
7543
|
+
}["hash"];
|
|
7544
|
+
};
|
|
7545
|
+
export type ExperimentalMediaGetOutput = globalThis.Uint8Array;
|
|
7536
7546
|
export type ShellListInput = {
|
|
7537
7547
|
readonly location?: {
|
|
7538
7548
|
readonly location?: {
|
|
@@ -7809,6 +7819,7 @@ export type VcsDiffInput = {
|
|
|
7809
7819
|
readonly mode: "working" | "branch" | "committed";
|
|
7810
7820
|
readonly base?: string | undefined;
|
|
7811
7821
|
readonly context?: number | undefined;
|
|
7822
|
+
readonly untracked?: ("files" | "folders") | undefined;
|
|
7812
7823
|
}["location"];
|
|
7813
7824
|
readonly mode: {
|
|
7814
7825
|
readonly location?: {
|
|
@@ -7817,6 +7828,7 @@ export type VcsDiffInput = {
|
|
|
7817
7828
|
readonly mode: "working" | "branch" | "committed";
|
|
7818
7829
|
readonly base?: string | undefined;
|
|
7819
7830
|
readonly context?: number | undefined;
|
|
7831
|
+
readonly untracked?: ("files" | "folders") | undefined;
|
|
7820
7832
|
}["mode"];
|
|
7821
7833
|
readonly base?: {
|
|
7822
7834
|
readonly location?: {
|
|
@@ -7825,6 +7837,7 @@ export type VcsDiffInput = {
|
|
|
7825
7837
|
readonly mode: "working" | "branch" | "committed";
|
|
7826
7838
|
readonly base?: string | undefined;
|
|
7827
7839
|
readonly context?: number | undefined;
|
|
7840
|
+
readonly untracked?: ("files" | "folders") | undefined;
|
|
7828
7841
|
}["base"];
|
|
7829
7842
|
readonly context?: {
|
|
7830
7843
|
readonly location?: {
|
|
@@ -7833,7 +7846,17 @@ export type VcsDiffInput = {
|
|
|
7833
7846
|
readonly mode: "working" | "branch" | "committed";
|
|
7834
7847
|
readonly base?: string | undefined;
|
|
7835
7848
|
readonly context?: number | undefined;
|
|
7849
|
+
readonly untracked?: ("files" | "folders") | undefined;
|
|
7836
7850
|
}["context"];
|
|
7851
|
+
readonly untracked?: {
|
|
7852
|
+
readonly location?: {
|
|
7853
|
+
readonly directory?: string | undefined;
|
|
7854
|
+
} | undefined;
|
|
7855
|
+
readonly mode: "working" | "branch" | "committed";
|
|
7856
|
+
readonly base?: string | undefined;
|
|
7857
|
+
readonly context?: number | undefined;
|
|
7858
|
+
readonly untracked?: ("files" | "folders") | undefined;
|
|
7859
|
+
}["untracked"];
|
|
7837
7860
|
};
|
|
7838
7861
|
export type VcsDiffOutput = {
|
|
7839
7862
|
location: LocationPublicRef;
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
isShellNotFoundError2,
|
|
34
34
|
isWorktreeError2,
|
|
35
35
|
isVcsInitNotSupportedError2
|
|
36
|
-
} from "../../chunks/
|
|
36
|
+
} from "../../chunks/rpc-runtime-c46qzyff.js";
|
|
37
37
|
export {
|
|
38
38
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
39
39
|
isCommandExecutionError2 as isCommandExecutionError,
|
package/dist/promise/index.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ export * from "./generated/index.js";
|
|
|
3
3
|
export { OpenCode } from "./client.js";
|
|
4
4
|
export type { AgentApi, CommandApi, ConfigApi, EventApi, IntegrationApi, ModelApi, PluginApi, ProviderApi, ReferenceApi, RpcApi, RpcCallOptions, RpcClient, RpcEventPayload, WebSearchApi, SessionApi, SkillApi, } from "./api.js";
|
|
5
5
|
export type { EventSubscribeOutput as OpenCodeEvent } from "./generated/types.js";
|
|
6
|
+
export type { MediaFileAttachment as PromptMediaFileAttachment, Attachment as PromptAttachment, } from "@opencode/schema/prompt";
|
|
6
7
|
export type OpenCodeClient = ReturnType<typeof OpenCode.make>;
|
package/dist/promise/index.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/rpc-runtime-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import {
|
|
8
|
-
ClientError2
|
|
9
|
-
} from "../chunks/contract-js54wxgp.js";
|
|
10
|
-
import"../chunks/contract-skhp7hxc.js";
|
|
3
|
+
exports_client3
|
|
4
|
+
} from "../chunks/rpc-runtime-vsajws5y.js";
|
|
5
|
+
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
6
|
+
import"../chunks/rpc-runtime-skhp7hxc.js";
|
|
11
7
|
import {
|
|
12
8
|
isInvalidRequestError2,
|
|
13
9
|
isUnauthorizedError2,
|
|
@@ -43,11 +39,15 @@ import {
|
|
|
43
39
|
isShellNotFoundError2,
|
|
44
40
|
isWorktreeError2,
|
|
45
41
|
isVcsInitNotSupportedError2
|
|
46
|
-
} from "../chunks/
|
|
47
|
-
import"../chunks/
|
|
42
|
+
} from "../chunks/rpc-runtime-c46qzyff.js";
|
|
43
|
+
import"../chunks/rpc-runtime-zzd46hf5.js";
|
|
44
|
+
import {
|
|
45
|
+
ClientError3
|
|
46
|
+
} from "../chunks/rpc-runtime-nwcpakzx.js";
|
|
47
|
+
import"../chunks/rpc-runtime-8bbb028w.js";
|
|
48
48
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
ClientError3 as ClientError,
|
|
50
|
+
exports_client3 as OpenCode,
|
|
51
51
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
52
52
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
53
53
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
package/dist/promise/rpc.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DiscoverOptions, Endpoint, EnsureOptions, StopOptions } from "../service.js";
|
|
2
|
-
import { headers } from "../service-probe.js";
|
|
2
|
+
import { fallback, headers } from "../service-probe.js";
|
|
3
3
|
export * from "../service.js";
|
|
4
|
-
export { headers };
|
|
4
|
+
export { fallback, headers };
|
|
5
5
|
/** Discover a healthy, compatible local service without starting one. */
|
|
6
6
|
export declare function discover(options?: DiscoverOptions): Promise<{
|
|
7
7
|
url: string;
|
package/dist/promise/service.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderPool2
|
|
4
|
-
} from "../chunks/
|
|
4
|
+
} from "../chunks/rpc-runtime-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/
|
|
8
|
+
} from "../chunks/rpc-runtime-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/rpc-runtime-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/rpc-runtime-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/rpc-runtime-1evy2k36.js";
|
|
25
|
+
import"../chunks/rpc-runtime-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/promise/service.ts
|
|
28
28
|
import { readFile, rm } from "node:fs/promises";
|
|
@@ -182,6 +182,7 @@ export {
|
|
|
182
182
|
Service,
|
|
183
183
|
discover,
|
|
184
184
|
ensure,
|
|
185
|
+
fallback2 as fallback,
|
|
185
186
|
headers2 as headers,
|
|
186
187
|
stop
|
|
187
188
|
};
|
package/dist/pty-handoff.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
complete2,
|
|
5
5
|
clear2,
|
|
6
6
|
exports_pty_handoff
|
|
7
|
-
} from "./chunks/
|
|
8
|
-
import"./chunks/
|
|
9
|
-
import"./chunks/
|
|
10
|
-
import"./chunks/
|
|
7
|
+
} from "./chunks/rpc-runtime-1evy2k36.js";
|
|
8
|
+
import"./chunks/rpc-runtime-2ny4vxct.js";
|
|
9
|
+
import"./chunks/rpc-runtime-sxt88q69.js";
|
|
10
|
+
import"./chunks/rpc-runtime-xgnj2w4v.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_pty_handoff as PtyHandoff,
|
|
13
13
|
clear2 as clear,
|
package/dist/rpc-runtime.js
CHANGED
package/dist/service-probe.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
same2,
|
|
5
5
|
probeResult2,
|
|
6
6
|
headers2
|
|
7
|
-
} from "./chunks/
|
|
8
|
-
import"./chunks/
|
|
9
|
-
import"./chunks/
|
|
7
|
+
} from "./chunks/rpc-runtime-2ny4vxct.js";
|
|
8
|
+
import"./chunks/rpc-runtime-sxt88q69.js";
|
|
9
|
+
import"./chunks/rpc-runtime-xgnj2w4v.js";
|
|
10
10
|
export {
|
|
11
11
|
decide2 as decide,
|
|
12
12
|
fallback2 as fallback,
|
package/dist/service-timing.js
CHANGED
package/dist/service-version.js
CHANGED
package/dist/service.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunks/
|
|
1
|
+
import"./chunks/rpc-runtime-qav6mfdz.js";
|
package/dist/shared-events.js
CHANGED
package/dist/solid/connection.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
defaultIdleTimeout2,
|
|
3
3
|
foregroundIdleThreshold2,
|
|
4
4
|
createClientConnection2
|
|
5
|
-
} from "../chunks/
|
|
5
|
+
} from "../chunks/rpc-runtime-ydhz1zrh.js";
|
|
6
6
|
export {
|
|
7
7
|
createClientConnection2 as createClientConnection,
|
|
8
8
|
defaultIdleTimeout2 as defaultIdleTimeout,
|
package/dist/solid/data.js
CHANGED
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
settleMs2,
|
|
3
3
|
locationKey2,
|
|
4
4
|
createData2
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
11
|
-
import"../chunks/
|
|
12
|
-
import"../chunks/
|
|
13
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/rpc-runtime-10stgdsh.js";
|
|
6
|
+
import"../chunks/rpc-runtime-m2eywc8w.js";
|
|
7
|
+
import"../chunks/rpc-runtime-vsajws5y.js";
|
|
8
|
+
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
9
|
+
import"../chunks/rpc-runtime-skhp7hxc.js";
|
|
10
|
+
import"../chunks/rpc-runtime-c46qzyff.js";
|
|
11
|
+
import"../chunks/rpc-runtime-zzd46hf5.js";
|
|
12
|
+
import"../chunks/rpc-runtime-nwcpakzx.js";
|
|
13
|
+
import"../chunks/rpc-runtime-8bbb028w.js";
|
|
14
14
|
export {
|
|
15
15
|
createData2 as createData,
|
|
16
16
|
locationKey2 as locationKey,
|
package/dist/solid/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import"../chunks/
|
|
2
|
-
import"../chunks/
|
|
3
|
-
import"../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/rpc-runtime-nwcpakzx.js";
|
|
2
|
+
import"../chunks/rpc-runtime-zzd46hf5.js";
|
|
3
|
+
import"../chunks/rpc-runtime-c46qzyff.js";
|
|
4
|
+
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
5
|
+
import"../chunks/rpc-runtime-8bbb028w.js";
|
|
6
|
+
import"../chunks/rpc-runtime-skhp7hxc.js";
|
|
7
|
+
import"../chunks/rpc-runtime-vsajws5y.js";
|
|
8
|
+
import"../chunks/rpc-runtime-m2eywc8w.js";
|
|
9
9
|
import {
|
|
10
10
|
settleMs2,
|
|
11
11
|
locationKey2,
|
|
12
12
|
createData2
|
|
13
|
-
} from "../chunks/
|
|
13
|
+
} from "../chunks/rpc-runtime-10stgdsh.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultIdleTimeout2,
|
|
16
16
|
foregroundIdleThreshold2,
|
|
17
17
|
createClientConnection2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/rpc-runtime-ydhz1zrh.js";
|
|
19
19
|
import {
|
|
20
20
|
createPtyClient2,
|
|
21
21
|
createPersistentPtyClient2
|
|
22
|
-
} from "../chunks/
|
|
22
|
+
} from "../chunks/rpc-runtime-gne7h7mq.js";
|
|
23
23
|
import {
|
|
24
24
|
createSessionRetention2
|
|
25
|
-
} from "../chunks/
|
|
25
|
+
} from "../chunks/rpc-runtime-6mq2wh8y.js";
|
|
26
26
|
import {
|
|
27
27
|
lastAssistantWithUsage2
|
|
28
|
-
} from "../chunks/
|
|
28
|
+
} from "../chunks/rpc-runtime-8s2anffy.js";
|
|
29
29
|
export {
|
|
30
30
|
createClientConnection2 as createClientConnection,
|
|
31
31
|
createData2 as createData,
|
package/dist/solid/pty.js
CHANGED
package/dist/solid/retention.js
CHANGED
package/dist/solid/usage.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/client",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-21915",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"typecheck:tsc": "tsc --noEmit"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@opencode/schema": "0.0.0-dev-
|
|
66
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
65
|
+
"@opencode/schema": "0.0.0-dev-21915",
|
|
66
|
+
"@opencode/protocol": "0.0.0-dev-21915"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"effect": "4.0.1",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@effect/platform-node": "4.0.1",
|
|
82
82
|
"@modelcontextprotocol/client": "2.3.1",
|
|
83
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
83
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-21915",
|
|
84
84
|
"@tsconfig/bun": "1.0.9",
|
|
85
85
|
"@types/bun": "1.4.3",
|
|
86
86
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
make7
|
|
3
|
-
} from "./contract-8bbb028w.js";
|
|
4
|
-
import {
|
|
5
|
-
make3
|
|
6
|
-
} from "./contract-vea8g3zs.js";
|
|
7
|
-
import {
|
|
8
|
-
makeRpc2
|
|
9
|
-
} from "./contract-skhp7hxc.js";
|
|
10
|
-
import {
|
|
11
|
-
__export
|
|
12
|
-
} from "./contract-9rqn6x4v.js";
|
|
13
|
-
|
|
14
|
-
// src/promise/client.ts
|
|
15
|
-
var exports_client = {};
|
|
16
|
-
__export(exports_client, {
|
|
17
|
-
OpenCode: () => exports_client,
|
|
18
|
-
make: () => make2
|
|
19
|
-
});
|
|
20
|
-
function make2(options) {
|
|
21
|
-
const raw = make3(options);
|
|
22
|
-
const events = make7((signal, onActivity) => raw.event.subscribe({ signal, onActivity }));
|
|
23
|
-
return {
|
|
24
|
-
...raw,
|
|
25
|
-
rpc: Object.assign(makeRpc2(raw, events), raw.rpc),
|
|
26
|
-
event: events
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { make2, exports_client };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|