@opencode/client 0.0.0-dev-51 → 0.0.0-dev-56
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/{rpc-runtime-skhp7hxc.js → contract-1gqkvw7r.js} +1 -1
- package/dist/chunks/{rpc-runtime-2ny4vxct.js → contract-2ny4vxct.js} +2 -2
- package/dist/chunks/{rpc-runtime-bp00hqvg.js → contract-32eq5j33.js} +17 -17
- package/dist/chunks/{rpc-runtime-c46qzyff.js → contract-4x4a6tah.js} +2 -1
- package/dist/chunks/{rpc-runtime-anregfhs.js → contract-9j12j8xw.js} +5 -5
- package/dist/chunks/{rpc-runtime-840tc5bv.js → contract-ctxmvs8y.js} +12 -10
- package/dist/chunks/{rpc-runtime-gecjxyvt.js → contract-gecjxyvt.js} +1 -1
- package/dist/chunks/{rpc-runtime-js54wxgp.js → contract-nwcpakzx.js} +2 -2
- package/dist/chunks/contract-r6a5t1f9.js +30 -0
- package/dist/chunks/{rpc-runtime-e5kqbg6q.js → contract-rb7z442v.js} +27 -19
- package/dist/chunks/{rpc-runtime-ryy6kscr.js → contract-ryy6kscr.js} +1 -1
- package/dist/chunks/{rpc-runtime-10stgdsh.js → contract-s76jdhwt.js} +1 -1
- package/dist/chunks/{rpc-runtime-8sw072f5.js → contract-w2eqyd95.js} +2 -2
- package/dist/chunks/{rpc-runtime-7f0py9js.js → contract-y2etg5bs.js} +2 -2
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +12 -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 +2 -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 +1 -0
- package/dist/promise/client.js +11 -11
- package/dist/promise/generated/client-error.js +3 -3
- package/dist/promise/generated/client.d.ts +2 -1
- package/dist/promise/generated/client.js +4 -4
- package/dist/promise/generated/index.js +10 -8
- package/dist/promise/generated/types.d.ts +26 -2
- package/dist/promise/generated/types.js +3 -1
- package/dist/promise/index.js +14 -12
- 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/rpc-runtime-dzahhtav.js +0 -30
- /package/dist/chunks/{rpc-runtime-6mptkzbc.js → contract-6mptkzbc.js} +0 -0
- /package/dist/chunks/{rpc-runtime-6mq2wh8y.js → contract-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{rpc-runtime-8s2anffy.js → contract-8s2anffy.js} +0 -0
- /package/dist/chunks/{rpc-runtime-9rqn6x4v.js → contract-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{rpc-runtime-gne7h7mq.js → contract-gne7h7mq.js} +0 -0
- /package/dist/chunks/{rpc-runtime-m2eywc8w.js → contract-m2eywc8w.js} +0 -0
- /package/dist/chunks/{rpc-runtime-qav6mfdz.js → contract-qav6mfdz.js} +0 -0
- /package/dist/chunks/{rpc-runtime-sxt88q69.js → contract-sxt88q69.js} +0 -0
- /package/dist/chunks/{rpc-runtime-ve4aws36.js → contract-ve4aws36.js} +0 -0
- /package/dist/chunks/{rpc-runtime-vmytr4q8.js → contract-vmytr4q8.js} +0 -0
- /package/dist/chunks/{rpc-runtime-vyas3vgt.js → contract-vyas3vgt.js} +0 -0
- /package/dist/chunks/{rpc-runtime-xgnj2w4v.js → contract-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{rpc-runtime-ydhz1zrh.js → contract-ydhz1zrh.js} +0 -0
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-w2eqyd95.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
|
@@ -19,6 +19,7 @@ export declare function make(options: ClientOptions): {
|
|
|
19
19
|
};
|
|
20
20
|
plugin: {
|
|
21
21
|
list: (input?: import("./index.js").PluginListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PluginListOutput>;
|
|
22
|
+
gui: (input: import("./index.js").PluginGuiInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PluginGuiOutput>;
|
|
22
23
|
check: (input?: import("./index.js").PluginCheckInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PluginCheckOutput>;
|
|
23
24
|
update: (input: import("./index.js").PluginUpdateInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
24
25
|
};
|
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-r6a5t1f9.js";
|
|
5
|
+
import"../chunks/contract-vyas3vgt.js";
|
|
6
|
+
import"../chunks/contract-rb7z442v.js";
|
|
7
|
+
import"../chunks/contract-nwcpakzx.js";
|
|
8
|
+
import"../chunks/contract-1gqkvw7r.js";
|
|
9
|
+
import"../chunks/contract-4x4a6tah.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, 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, 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, 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, PluginGuiInput, PluginGuiOutput, 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, 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, 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;
|
|
@@ -26,6 +26,7 @@ export declare function make(options: ClientOptions): {
|
|
|
26
26
|
};
|
|
27
27
|
plugin: {
|
|
28
28
|
list: (input?: PluginListInput, requestOptions?: RequestOptions) => Promise<PluginListOutput>;
|
|
29
|
+
gui: (input: PluginGuiInput, requestOptions?: RequestOptions) => Promise<PluginGuiOutput>;
|
|
29
30
|
check: (input?: PluginCheckInput, requestOptions?: RequestOptions) => Promise<PluginCheckOutput>;
|
|
30
31
|
update: (input: PluginUpdateInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
31
32
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/
|
|
4
|
-
import"../../chunks/
|
|
2
|
+
make6
|
|
3
|
+
} from "../../chunks/contract-rb7z442v.js";
|
|
4
|
+
import"../../chunks/contract-nwcpakzx.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
make6 as make
|
|
7
7
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import"../../chunks/
|
|
1
|
+
import"../../chunks/contract-vyas3vgt.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../chunks/
|
|
3
|
+
exports_client4
|
|
4
|
+
} from "../../chunks/contract-rb7z442v.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../chunks/
|
|
6
|
+
ClientError3
|
|
7
|
+
} from "../../chunks/contract-nwcpakzx.js";
|
|
8
8
|
import {
|
|
9
9
|
isInvalidRequestError2,
|
|
10
10
|
isUnauthorizedError2,
|
|
11
11
|
isLocationNotFoundError2,
|
|
12
12
|
isServiceUnavailableError2,
|
|
13
13
|
isAgentNotFoundError2,
|
|
14
|
+
isPluginNotFoundError2,
|
|
14
15
|
isInvalidCursorError2,
|
|
15
16
|
isSessionNotFoundError2,
|
|
16
17
|
isConflictError2,
|
|
@@ -40,10 +41,10 @@ import {
|
|
|
40
41
|
isShellNotFoundError2,
|
|
41
42
|
isWorktreeError2,
|
|
42
43
|
isVcsInitNotSupportedError2
|
|
43
|
-
} from "../../chunks/
|
|
44
|
+
} from "../../chunks/contract-4x4a6tah.js";
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
ClientError3 as ClientError,
|
|
47
|
+
exports_client4 as OpenCode,
|
|
47
48
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
48
49
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
49
50
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
|
@@ -64,6 +65,7 @@ export {
|
|
|
64
65
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
65
66
|
isPermissionNotFoundError2 as isPermissionNotFoundError,
|
|
66
67
|
isPermissionSavedNotFoundError2 as isPermissionSavedNotFoundError,
|
|
68
|
+
isPluginNotFoundError2 as isPluginNotFoundError,
|
|
67
69
|
isProjectNotFoundError2 as isProjectNotFoundError,
|
|
68
70
|
isProviderNotFoundError2 as isProviderNotFoundError,
|
|
69
71
|
isPtyNotFoundError2 as isPtyNotFoundError,
|
|
@@ -34,6 +34,7 @@ export type ProviderTransport = "http" | "websocket";
|
|
|
34
34
|
export type ProviderEncoding = "zstd" | "gzip" | "none";
|
|
35
35
|
export type AgentColor = string;
|
|
36
36
|
export type PermissionEffect = "allow" | "deny" | "ask";
|
|
37
|
+
export type PluginID = string;
|
|
37
38
|
export type PluginSource = {
|
|
38
39
|
type: "builtin";
|
|
39
40
|
} | {
|
|
@@ -52,6 +53,7 @@ export type PluginFeatures = {
|
|
|
52
53
|
server?: true;
|
|
53
54
|
tui?: true;
|
|
54
55
|
rpc?: true;
|
|
56
|
+
gui?: true;
|
|
55
57
|
};
|
|
56
58
|
export type PluginState = {
|
|
57
59
|
status: "active";
|
|
@@ -60,6 +62,13 @@ export type PluginState = {
|
|
|
60
62
|
error: string;
|
|
61
63
|
ref?: string;
|
|
62
64
|
};
|
|
65
|
+
export type PluginGuiBundle = {
|
|
66
|
+
code: string;
|
|
67
|
+
revision: string;
|
|
68
|
+
options: {
|
|
69
|
+
[x: string]: JsonValue;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
63
72
|
export type SessionID = string;
|
|
64
73
|
export type SessionMessageID = string;
|
|
65
74
|
export type MoneyUSD = number;
|
|
@@ -520,7 +529,7 @@ export type PermissionRule = {
|
|
|
520
529
|
effect: PermissionEffect;
|
|
521
530
|
};
|
|
522
531
|
export type PluginInfo = {
|
|
523
|
-
id?:
|
|
532
|
+
id?: PluginID;
|
|
524
533
|
source: PluginSource;
|
|
525
534
|
features: PluginFeatures;
|
|
526
535
|
state: PluginState;
|
|
@@ -3530,7 +3539,6 @@ export type SessionEventDurable = SessionCreated | SessionAgentSelected | Sessio
|
|
|
3530
3539
|
export type IntegrationInfo = {
|
|
3531
3540
|
id: IntegrationID;
|
|
3532
3541
|
name: string;
|
|
3533
|
-
configured?: boolean;
|
|
3534
3542
|
metadata?: {
|
|
3535
3543
|
[x: string]: any;
|
|
3536
3544
|
};
|
|
@@ -3571,6 +3579,12 @@ export type AgentNotFoundError = {
|
|
|
3571
3579
|
readonly message: string;
|
|
3572
3580
|
};
|
|
3573
3581
|
export declare const isAgentNotFoundError: (value: unknown) => value is AgentNotFoundError;
|
|
3582
|
+
export type PluginNotFoundError = {
|
|
3583
|
+
readonly _tag: "PluginNotFoundError";
|
|
3584
|
+
readonly pluginID: string;
|
|
3585
|
+
readonly message: string;
|
|
3586
|
+
};
|
|
3587
|
+
export declare const isPluginNotFoundError: (value: unknown) => value is PluginNotFoundError;
|
|
3574
3588
|
export type InvalidCursorError = {
|
|
3575
3589
|
readonly _tag: "InvalidCursorError";
|
|
3576
3590
|
readonly message: string;
|
|
@@ -3793,6 +3807,16 @@ export type PluginListOutput = {
|
|
|
3793
3807
|
location: LocationPublicRef;
|
|
3794
3808
|
data: Array<PluginInfo>;
|
|
3795
3809
|
};
|
|
3810
|
+
export type PluginGuiInput = {
|
|
3811
|
+
readonly location?: {
|
|
3812
|
+
readonly directory?: string | undefined;
|
|
3813
|
+
} | undefined;
|
|
3814
|
+
readonly id: string;
|
|
3815
|
+
};
|
|
3816
|
+
export type PluginGuiOutput = {
|
|
3817
|
+
location: LocationPublicRef;
|
|
3818
|
+
data: PluginGuiBundle;
|
|
3819
|
+
};
|
|
3796
3820
|
export type PluginCheckInput = {
|
|
3797
3821
|
readonly location?: {
|
|
3798
3822
|
readonly directory?: string | undefined;
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
isLocationNotFoundError2,
|
|
5
5
|
isServiceUnavailableError2,
|
|
6
6
|
isAgentNotFoundError2,
|
|
7
|
+
isPluginNotFoundError2,
|
|
7
8
|
isInvalidCursorError2,
|
|
8
9
|
isSessionNotFoundError2,
|
|
9
10
|
isConflictError2,
|
|
@@ -33,7 +34,7 @@ import {
|
|
|
33
34
|
isShellNotFoundError2,
|
|
34
35
|
isWorktreeError2,
|
|
35
36
|
isVcsInitNotSupportedError2
|
|
36
|
-
} from "../../chunks/
|
|
37
|
+
} from "../../chunks/contract-4x4a6tah.js";
|
|
37
38
|
export {
|
|
38
39
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
39
40
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
@@ -55,6 +56,7 @@ export {
|
|
|
55
56
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
56
57
|
isPermissionNotFoundError2 as isPermissionNotFoundError,
|
|
57
58
|
isPermissionSavedNotFoundError2 as isPermissionSavedNotFoundError,
|
|
59
|
+
isPluginNotFoundError2 as isPluginNotFoundError,
|
|
58
60
|
isProjectNotFoundError2 as isProjectNotFoundError,
|
|
59
61
|
isProviderNotFoundError2 as isProviderNotFoundError,
|
|
60
62
|
isPtyNotFoundError2 as isPtyNotFoundError,
|
package/dist/promise/index.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/contract-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/rpc-runtime-e5kqbg6q.js";
|
|
3
|
+
exports_client3
|
|
4
|
+
} from "../chunks/contract-r6a5t1f9.js";
|
|
5
|
+
import"../chunks/contract-vyas3vgt.js";
|
|
6
|
+
import"../chunks/contract-rb7z442v.js";
|
|
8
7
|
import {
|
|
9
|
-
|
|
10
|
-
} from "../chunks/
|
|
8
|
+
ClientError3
|
|
9
|
+
} from "../chunks/contract-nwcpakzx.js";
|
|
10
|
+
import"../chunks/contract-1gqkvw7r.js";
|
|
11
11
|
import {
|
|
12
12
|
isInvalidRequestError2,
|
|
13
13
|
isUnauthorizedError2,
|
|
14
14
|
isLocationNotFoundError2,
|
|
15
15
|
isServiceUnavailableError2,
|
|
16
16
|
isAgentNotFoundError2,
|
|
17
|
+
isPluginNotFoundError2,
|
|
17
18
|
isInvalidCursorError2,
|
|
18
19
|
isSessionNotFoundError2,
|
|
19
20
|
isConflictError2,
|
|
@@ -43,11 +44,11 @@ import {
|
|
|
43
44
|
isShellNotFoundError2,
|
|
44
45
|
isWorktreeError2,
|
|
45
46
|
isVcsInitNotSupportedError2
|
|
46
|
-
} from "../chunks/
|
|
47
|
-
import"../chunks/
|
|
47
|
+
} from "../chunks/contract-4x4a6tah.js";
|
|
48
|
+
import"../chunks/contract-gecjxyvt.js";
|
|
48
49
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
ClientError3 as ClientError,
|
|
51
|
+
exports_client3 as OpenCode,
|
|
51
52
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
52
53
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
53
54
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
|
@@ -68,6 +69,7 @@ export {
|
|
|
68
69
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
69
70
|
isPermissionNotFoundError2 as isPermissionNotFoundError,
|
|
70
71
|
isPermissionSavedNotFoundError2 as isPermissionSavedNotFoundError,
|
|
72
|
+
isPluginNotFoundError2 as isPluginNotFoundError,
|
|
71
73
|
isProjectNotFoundError2 as isProjectNotFoundError,
|
|
72
74
|
isProviderNotFoundError2 as isProviderNotFoundError,
|
|
73
75
|
isPtyNotFoundError2 as isPtyNotFoundError,
|
package/dist/promise/rpc.js
CHANGED
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/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-w2eqyd95.js";
|
|
25
|
+
import"../chunks/contract-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/promise/service.ts
|
|
28
28
|
import { readFile, rm } from "node:fs/promises";
|
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/contract-w2eqyd95.js";
|
|
8
|
+
import"./chunks/contract-2ny4vxct.js";
|
|
9
|
+
import"./chunks/contract-sxt88q69.js";
|
|
10
|
+
import"./chunks/contract-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/contract-2ny4vxct.js";
|
|
8
|
+
import"./chunks/contract-sxt88q69.js";
|
|
9
|
+
import"./chunks/contract-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/contract-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/contract-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/contract-s76jdhwt.js";
|
|
6
|
+
import"../chunks/contract-m2eywc8w.js";
|
|
7
|
+
import"../chunks/contract-r6a5t1f9.js";
|
|
8
|
+
import"../chunks/contract-vyas3vgt.js";
|
|
9
|
+
import"../chunks/contract-rb7z442v.js";
|
|
10
|
+
import"../chunks/contract-nwcpakzx.js";
|
|
11
|
+
import"../chunks/contract-1gqkvw7r.js";
|
|
12
|
+
import"../chunks/contract-4x4a6tah.js";
|
|
13
|
+
import"../chunks/contract-gecjxyvt.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/contract-nwcpakzx.js";
|
|
2
|
+
import"../chunks/contract-rb7z442v.js";
|
|
3
|
+
import"../chunks/contract-4x4a6tah.js";
|
|
4
|
+
import"../chunks/contract-vyas3vgt.js";
|
|
5
|
+
import"../chunks/contract-gecjxyvt.js";
|
|
6
|
+
import"../chunks/contract-1gqkvw7r.js";
|
|
7
|
+
import"../chunks/contract-r6a5t1f9.js";
|
|
8
|
+
import"../chunks/contract-m2eywc8w.js";
|
|
9
9
|
import {
|
|
10
10
|
settleMs2,
|
|
11
11
|
locationKey2,
|
|
12
12
|
createData2
|
|
13
|
-
} from "../chunks/
|
|
13
|
+
} from "../chunks/contract-s76jdhwt.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultIdleTimeout2,
|
|
16
16
|
foregroundIdleThreshold2,
|
|
17
17
|
createClientConnection2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/contract-ydhz1zrh.js";
|
|
19
19
|
import {
|
|
20
20
|
createPtyClient2,
|
|
21
21
|
createPersistentPtyClient2
|
|
22
|
-
} from "../chunks/
|
|
22
|
+
} from "../chunks/contract-gne7h7mq.js";
|
|
23
23
|
import {
|
|
24
24
|
createSessionRetention2
|
|
25
|
-
} from "../chunks/
|
|
25
|
+
} from "../chunks/contract-6mq2wh8y.js";
|
|
26
26
|
import {
|
|
27
27
|
lastAssistantWithUsage2
|
|
28
|
-
} from "../chunks/
|
|
28
|
+
} from "../chunks/contract-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-56",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typecheck:tsc": "tsc --noEmit"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@opencode/schema": "0.0.0-dev-
|
|
67
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
66
|
+
"@opencode/schema": "0.0.0-dev-56",
|
|
67
|
+
"@opencode/protocol": "0.0.0-dev-56"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"effect": "4.0.1",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@effect/platform-node": "4.0.1",
|
|
83
83
|
"@modelcontextprotocol/client": "2.3.1",
|
|
84
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
84
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-56",
|
|
85
85
|
"@tsconfig/bun": "1.0.9",
|
|
86
86
|
"@types/bun": "1.4.3",
|
|
87
87
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
make7
|
|
3
|
-
} from "./rpc-runtime-gecjxyvt.js";
|
|
4
|
-
import {
|
|
5
|
-
make3
|
|
6
|
-
} from "./rpc-runtime-e5kqbg6q.js";
|
|
7
|
-
import {
|
|
8
|
-
makeRpc2
|
|
9
|
-
} from "./rpc-runtime-skhp7hxc.js";
|
|
10
|
-
import {
|
|
11
|
-
__export
|
|
12
|
-
} from "./rpc-runtime-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(undefined, { 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
|