@opencode/client 0.0.0-dev-20303 → 0.0.0-dev-20308
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/{shared-events-1tbj6z39.js → pty-handoff-1tbj6z39.js} +1 -1
- package/dist/chunks/{shared-events-y2etg5bs.js → pty-handoff-7f0py9js.js} +2 -2
- package/dist/chunks/{shared-events-n8g24fq8.js → pty-handoff-8wk26zth.js} +34 -19
- package/dist/chunks/{shared-events-vzz071z7.js → pty-handoff-b0zkjx9t.js} +17 -17
- package/dist/chunks/{shared-events-frbwqjmf.js → pty-handoff-frbwqjmf.js} +1 -1
- package/dist/chunks/pty-handoff-fty2ne3g.js +30 -0
- package/dist/chunks/{shared-events-h11j9btw.js → pty-handoff-h11j9btw.js} +1 -1
- package/dist/chunks/{shared-events-za5s8wze.js → pty-handoff-j6k3g3f8.js} +22 -10
- package/dist/chunks/{shared-events-nwcpakzx.js → pty-handoff-js54wxgp.js} +2 -2
- package/dist/chunks/{shared-events-47hsxm5z.js → pty-handoff-kpa38e12.js} +1 -1
- package/dist/chunks/{shared-events-65kht65h.js → pty-handoff-mnyft54j.js} +5 -5
- package/dist/chunks/{shared-events-t1xa31vm.js → pty-handoff-t1xa31vm.js} +1 -1
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +13 -0
- package/dist/effect/client.d.ts +2 -0
- package/dist/effect/client.js +12 -12
- package/dist/effect/generated/client-error.js +3 -3
- package/dist/effect/generated/client.d.ts +3 -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 +5 -5
- package/dist/promise/client.d.ts +2 -0
- package/dist/promise/client.js +11 -11
- package/dist/promise/generated/client-error.js +3 -3
- package/dist/promise/generated/client.d.ts +3 -1
- package/dist/promise/generated/client.js +4 -4
- package/dist/promise/generated/index.js +10 -10
- package/dist/promise/generated/types.d.ts +161 -2
- package/dist/promise/generated/types.js +1 -1
- package/dist/promise/index.js +13 -13
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +5 -5
- package/dist/pty-handoff.js +1 -1
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- 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 +11 -11
- package/dist/solid/pty.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/shared-events-gx437w19.js +0 -30
- /package/dist/chunks/{shared-events-4tveyqeh.js → pty-handoff-4tveyqeh.js} +0 -0
- /package/dist/chunks/{shared-events-6mptkzbc.js → pty-handoff-6mptkzbc.js} +0 -0
- /package/dist/chunks/{shared-events-9rqn6x4v.js → pty-handoff-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{shared-events-gne7h7mq.js → pty-handoff-gne7h7mq.js} +0 -0
- /package/dist/chunks/{shared-events-m2eywc8w.js → pty-handoff-m2eywc8w.js} +0 -0
- /package/dist/chunks/{shared-events-qav6mfdz.js → pty-handoff-qav6mfdz.js} +0 -0
- /package/dist/chunks/{shared-events-sxt88q69.js → pty-handoff-sxt88q69.js} +0 -0
- /package/dist/chunks/{shared-events-txckps9j.js → pty-handoff-txckps9j.js} +0 -0
- /package/dist/chunks/{shared-events-vmytr4q8.js → pty-handoff-vmytr4q8.js} +0 -0
- /package/dist/chunks/{shared-events-vyas3vgt.js → pty-handoff-vyas3vgt.js} +0 -0
- /package/dist/chunks/{shared-events-xgnj2w4v.js → pty-handoff-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{shared-events-ydhz1zrh.js → pty-handoff-ydhz1zrh.js} +0 -0
package/dist/effect/service.js
CHANGED
|
@@ -2,21 +2,21 @@ import {
|
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderFailure2,
|
|
4
4
|
contenderFinished2
|
|
5
|
-
} from "../chunks/
|
|
5
|
+
} from "../chunks/pty-handoff-txckps9j.js";
|
|
6
6
|
import {
|
|
7
7
|
defaultEnsureTiming2,
|
|
8
8
|
ensureTiming2
|
|
9
|
-
} from "../chunks/
|
|
9
|
+
} from "../chunks/pty-handoff-xgnj2w4v.js";
|
|
10
10
|
import {
|
|
11
11
|
matchesVersion2
|
|
12
|
-
} from "../chunks/
|
|
12
|
+
} from "../chunks/pty-handoff-sxt88q69.js";
|
|
13
13
|
import {
|
|
14
14
|
prepare2,
|
|
15
15
|
environment2,
|
|
16
16
|
complete2,
|
|
17
17
|
clear2
|
|
18
|
-
} from "../chunks/
|
|
19
|
-
import"../chunks/
|
|
18
|
+
} from "../chunks/pty-handoff-kpa38e12.js";
|
|
19
|
+
import"../chunks/pty-handoff-qav6mfdz.js";
|
|
20
20
|
|
|
21
21
|
// src/effect/service.ts
|
|
22
22
|
import { Effect, FileSystem, Option, Schedule, Schema } from "effect";
|
package/dist/promise/client.d.ts
CHANGED
|
@@ -137,6 +137,8 @@ export declare function make(options: ClientOptions): {
|
|
|
137
137
|
};
|
|
138
138
|
};
|
|
139
139
|
credential: {
|
|
140
|
+
list: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").CredentialEntry[]>;
|
|
141
|
+
create: (input: import("./index.js").CredentialCreateInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").CredentialEntry>;
|
|
140
142
|
update: (input: import("./index.js").CredentialUpdateInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
141
143
|
activate: (input: import("./index.js").CredentialActivateInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
142
144
|
remove: (input: import("./index.js").CredentialRemoveInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
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
|
+
make2,
|
|
3
|
+
exports_client
|
|
4
|
+
} from "../chunks/pty-handoff-fty2ne3g.js";
|
|
5
|
+
import"../chunks/pty-handoff-vyas3vgt.js";
|
|
6
|
+
import"../chunks/pty-handoff-1tbj6z39.js";
|
|
7
|
+
import"../chunks/pty-handoff-4tveyqeh.js";
|
|
8
|
+
import"../chunks/pty-handoff-8wk26zth.js";
|
|
9
|
+
import"../chunks/pty-handoff-js54wxgp.js";
|
|
10
|
+
import"../chunks/pty-handoff-frbwqjmf.js";
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
exports_client as OpenCode,
|
|
13
|
+
make2 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, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, FileWriteInput, FileWriteOutput, 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, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, 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, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, FileWriteInput, FileWriteOutput, 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, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "./types.js";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -138,6 +138,8 @@ export declare function make(options: ClientOptions): {
|
|
|
138
138
|
};
|
|
139
139
|
};
|
|
140
140
|
credential: {
|
|
141
|
+
list: (requestOptions?: RequestOptions) => Promise<import("./types.js").CredentialEntry[]>;
|
|
142
|
+
create: (input: CredentialCreateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").CredentialEntry>;
|
|
141
143
|
update: (input: CredentialUpdateInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
142
144
|
activate: (input: CredentialActivateInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
143
145
|
remove: (input: CredentialRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/
|
|
4
|
-
import"../../chunks/
|
|
2
|
+
make3
|
|
3
|
+
} from "../../chunks/pty-handoff-8wk26zth.js";
|
|
4
|
+
import"../../chunks/pty-handoff-js54wxgp.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
make3 as make
|
|
7
7
|
};
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import"../../chunks/
|
|
2
|
-
import {
|
|
3
|
-
exports_client4
|
|
4
|
-
} from "../../chunks/shared-events-n8g24fq8.js";
|
|
5
|
-
import {
|
|
6
|
-
ClientError3
|
|
7
|
-
} from "../../chunks/shared-events-nwcpakzx.js";
|
|
1
|
+
import"../../chunks/pty-handoff-vyas3vgt.js";
|
|
8
2
|
import {
|
|
9
3
|
isInvalidRequestError2,
|
|
10
4
|
isUnauthorizedError2,
|
|
@@ -37,10 +31,16 @@ import {
|
|
|
37
31
|
isForbiddenError2,
|
|
38
32
|
isShellNotFoundError2,
|
|
39
33
|
isWorktreeError2
|
|
40
|
-
} from "../../chunks/
|
|
34
|
+
} from "../../chunks/pty-handoff-4tveyqeh.js";
|
|
35
|
+
import {
|
|
36
|
+
exports_client2
|
|
37
|
+
} from "../../chunks/pty-handoff-8wk26zth.js";
|
|
38
|
+
import {
|
|
39
|
+
ClientError2
|
|
40
|
+
} from "../../chunks/pty-handoff-js54wxgp.js";
|
|
41
41
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
ClientError2 as ClientError,
|
|
43
|
+
exports_client2 as OpenCode,
|
|
44
44
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
45
45
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
46
46
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
|
@@ -483,6 +483,16 @@ export type McpResourceTemplate = {
|
|
|
483
483
|
description?: string;
|
|
484
484
|
mimeType?: string;
|
|
485
485
|
};
|
|
486
|
+
export type CredentialOAuth = {
|
|
487
|
+
type: "oauth";
|
|
488
|
+
methodID: string;
|
|
489
|
+
refresh: string;
|
|
490
|
+
access: string;
|
|
491
|
+
expires: number;
|
|
492
|
+
metadata?: {
|
|
493
|
+
[x: string]: JsonValue;
|
|
494
|
+
};
|
|
495
|
+
};
|
|
486
496
|
export type ProjectVcs = string;
|
|
487
497
|
export type ProjectIcon = {
|
|
488
498
|
url?: string;
|
|
@@ -2408,7 +2418,7 @@ export type FormMultiselectField1 = {
|
|
|
2408
2418
|
custom?: boolean;
|
|
2409
2419
|
default?: Array<string>;
|
|
2410
2420
|
};
|
|
2411
|
-
export type
|
|
2421
|
+
export type FormAnswer2 = {
|
|
2412
2422
|
[x: string]: FormValue1;
|
|
2413
2423
|
};
|
|
2414
2424
|
export type SessionStatusUpdated = {
|
|
@@ -2711,6 +2721,14 @@ export type FormState = {
|
|
|
2711
2721
|
} | {
|
|
2712
2722
|
status: "cancelled";
|
|
2713
2723
|
};
|
|
2724
|
+
export type CredentialKey = {
|
|
2725
|
+
type: "key";
|
|
2726
|
+
key: string;
|
|
2727
|
+
metadata?: {
|
|
2728
|
+
[x: string]: JsonValue;
|
|
2729
|
+
};
|
|
2730
|
+
configuration?: FormAnswer;
|
|
2731
|
+
};
|
|
2714
2732
|
export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
|
|
2715
2733
|
export type FormField1 = FormStringField1 | FormNumberField1 | FormIntegerField1 | FormBooleanField1 | FormMultiselectField1 | FormExternalField;
|
|
2716
2734
|
export type FormReplied = {
|
|
@@ -2724,7 +2742,7 @@ export type FormReplied = {
|
|
|
2724
2742
|
data: {
|
|
2725
2743
|
id: string;
|
|
2726
2744
|
sessionID: string;
|
|
2727
|
-
answer:
|
|
2745
|
+
answer: FormAnswer2;
|
|
2728
2746
|
};
|
|
2729
2747
|
};
|
|
2730
2748
|
export type ReferenceInfo = {
|
|
@@ -3174,6 +3192,7 @@ export type SessionMessageAssistantTool1 = {
|
|
|
3174
3192
|
};
|
|
3175
3193
|
};
|
|
3176
3194
|
export type FormFields = [FormField, ...Array<FormField>];
|
|
3195
|
+
export type CredentialValue = CredentialOAuth | CredentialKey;
|
|
3177
3196
|
export type FormFields2 = [FormField1, ...Array<FormField1>];
|
|
3178
3197
|
export type SessionsResponse = {
|
|
3179
3198
|
data: Array<SessionInfo>;
|
|
@@ -3256,6 +3275,13 @@ export type IntegrationKeyMethod = {
|
|
|
3256
3275
|
label?: string;
|
|
3257
3276
|
form?: FormFields;
|
|
3258
3277
|
};
|
|
3278
|
+
export type CredentialEntry = {
|
|
3279
|
+
id: string;
|
|
3280
|
+
integrationID: string;
|
|
3281
|
+
label: string;
|
|
3282
|
+
active: boolean;
|
|
3283
|
+
value: CredentialValue;
|
|
3284
|
+
};
|
|
3259
3285
|
export type FormInfo1 = {
|
|
3260
3286
|
id: string;
|
|
3261
3287
|
sessionID: string;
|
|
@@ -7490,6 +7516,139 @@ export type McpResourceCatalogOutput = {
|
|
|
7490
7516
|
location: LocationPublicRef;
|
|
7491
7517
|
data: McpResourceCatalog;
|
|
7492
7518
|
};
|
|
7519
|
+
export type CredentialListOutput = {
|
|
7520
|
+
data: Array<CredentialEntry>;
|
|
7521
|
+
}["data"];
|
|
7522
|
+
export type CredentialCreateInput = {
|
|
7523
|
+
readonly id?: {
|
|
7524
|
+
readonly id?: string;
|
|
7525
|
+
readonly integrationID: string;
|
|
7526
|
+
readonly label?: string;
|
|
7527
|
+
readonly value: {
|
|
7528
|
+
readonly type: "oauth";
|
|
7529
|
+
readonly methodID: string;
|
|
7530
|
+
readonly refresh: string;
|
|
7531
|
+
readonly access: string;
|
|
7532
|
+
readonly expires: number;
|
|
7533
|
+
readonly metadata?: {
|
|
7534
|
+
readonly [x: string]: JsonValue;
|
|
7535
|
+
};
|
|
7536
|
+
} | {
|
|
7537
|
+
readonly type: "key";
|
|
7538
|
+
readonly key: string;
|
|
7539
|
+
readonly metadata?: {
|
|
7540
|
+
readonly [x: string]: JsonValue;
|
|
7541
|
+
};
|
|
7542
|
+
readonly configuration?: {
|
|
7543
|
+
readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
|
|
7544
|
+
};
|
|
7545
|
+
};
|
|
7546
|
+
readonly activate?: boolean;
|
|
7547
|
+
}["id"];
|
|
7548
|
+
readonly integrationID: {
|
|
7549
|
+
readonly id?: string;
|
|
7550
|
+
readonly integrationID: string;
|
|
7551
|
+
readonly label?: string;
|
|
7552
|
+
readonly value: {
|
|
7553
|
+
readonly type: "oauth";
|
|
7554
|
+
readonly methodID: string;
|
|
7555
|
+
readonly refresh: string;
|
|
7556
|
+
readonly access: string;
|
|
7557
|
+
readonly expires: number;
|
|
7558
|
+
readonly metadata?: {
|
|
7559
|
+
readonly [x: string]: JsonValue;
|
|
7560
|
+
};
|
|
7561
|
+
} | {
|
|
7562
|
+
readonly type: "key";
|
|
7563
|
+
readonly key: string;
|
|
7564
|
+
readonly metadata?: {
|
|
7565
|
+
readonly [x: string]: JsonValue;
|
|
7566
|
+
};
|
|
7567
|
+
readonly configuration?: {
|
|
7568
|
+
readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
|
|
7569
|
+
};
|
|
7570
|
+
};
|
|
7571
|
+
readonly activate?: boolean;
|
|
7572
|
+
}["integrationID"];
|
|
7573
|
+
readonly label?: {
|
|
7574
|
+
readonly id?: string;
|
|
7575
|
+
readonly integrationID: string;
|
|
7576
|
+
readonly label?: string;
|
|
7577
|
+
readonly value: {
|
|
7578
|
+
readonly type: "oauth";
|
|
7579
|
+
readonly methodID: string;
|
|
7580
|
+
readonly refresh: string;
|
|
7581
|
+
readonly access: string;
|
|
7582
|
+
readonly expires: number;
|
|
7583
|
+
readonly metadata?: {
|
|
7584
|
+
readonly [x: string]: JsonValue;
|
|
7585
|
+
};
|
|
7586
|
+
} | {
|
|
7587
|
+
readonly type: "key";
|
|
7588
|
+
readonly key: string;
|
|
7589
|
+
readonly metadata?: {
|
|
7590
|
+
readonly [x: string]: JsonValue;
|
|
7591
|
+
};
|
|
7592
|
+
readonly configuration?: {
|
|
7593
|
+
readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
|
|
7594
|
+
};
|
|
7595
|
+
};
|
|
7596
|
+
readonly activate?: boolean;
|
|
7597
|
+
}["label"];
|
|
7598
|
+
readonly value: {
|
|
7599
|
+
readonly id?: string;
|
|
7600
|
+
readonly integrationID: string;
|
|
7601
|
+
readonly label?: string;
|
|
7602
|
+
readonly value: {
|
|
7603
|
+
readonly type: "oauth";
|
|
7604
|
+
readonly methodID: string;
|
|
7605
|
+
readonly refresh: string;
|
|
7606
|
+
readonly access: string;
|
|
7607
|
+
readonly expires: number;
|
|
7608
|
+
readonly metadata?: {
|
|
7609
|
+
readonly [x: string]: JsonValue;
|
|
7610
|
+
};
|
|
7611
|
+
} | {
|
|
7612
|
+
readonly type: "key";
|
|
7613
|
+
readonly key: string;
|
|
7614
|
+
readonly metadata?: {
|
|
7615
|
+
readonly [x: string]: JsonValue;
|
|
7616
|
+
};
|
|
7617
|
+
readonly configuration?: {
|
|
7618
|
+
readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
|
|
7619
|
+
};
|
|
7620
|
+
};
|
|
7621
|
+
readonly activate?: boolean;
|
|
7622
|
+
}["value"];
|
|
7623
|
+
readonly activate?: {
|
|
7624
|
+
readonly id?: string;
|
|
7625
|
+
readonly integrationID: string;
|
|
7626
|
+
readonly label?: string;
|
|
7627
|
+
readonly value: {
|
|
7628
|
+
readonly type: "oauth";
|
|
7629
|
+
readonly methodID: string;
|
|
7630
|
+
readonly refresh: string;
|
|
7631
|
+
readonly access: string;
|
|
7632
|
+
readonly expires: number;
|
|
7633
|
+
readonly metadata?: {
|
|
7634
|
+
readonly [x: string]: JsonValue;
|
|
7635
|
+
};
|
|
7636
|
+
} | {
|
|
7637
|
+
readonly type: "key";
|
|
7638
|
+
readonly key: string;
|
|
7639
|
+
readonly metadata?: {
|
|
7640
|
+
readonly [x: string]: JsonValue;
|
|
7641
|
+
};
|
|
7642
|
+
readonly configuration?: {
|
|
7643
|
+
readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
|
|
7644
|
+
};
|
|
7645
|
+
};
|
|
7646
|
+
readonly activate?: boolean;
|
|
7647
|
+
}["activate"];
|
|
7648
|
+
};
|
|
7649
|
+
export type CredentialCreateOutput = {
|
|
7650
|
+
data: CredentialEntry;
|
|
7651
|
+
}["data"];
|
|
7493
7652
|
export type CredentialUpdateInput = {
|
|
7494
7653
|
readonly credentialID: {
|
|
7495
7654
|
readonly credentialID: string;
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
isForbiddenError2,
|
|
31
31
|
isShellNotFoundError2,
|
|
32
32
|
isWorktreeError2
|
|
33
|
-
} from "../../chunks/
|
|
33
|
+
} from "../../chunks/pty-handoff-4tveyqeh.js";
|
|
34
34
|
export {
|
|
35
35
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
36
36
|
isCommandExecutionError2 as isCommandExecutionError,
|
package/dist/promise/index.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/pty-handoff-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import {
|
|
8
|
-
ClientError3
|
|
9
|
-
} from "../chunks/shared-events-nwcpakzx.js";
|
|
10
|
-
import"../chunks/shared-events-1tbj6z39.js";
|
|
3
|
+
exports_client
|
|
4
|
+
} from "../chunks/pty-handoff-fty2ne3g.js";
|
|
5
|
+
import"../chunks/pty-handoff-vyas3vgt.js";
|
|
6
|
+
import"../chunks/pty-handoff-1tbj6z39.js";
|
|
11
7
|
import {
|
|
12
8
|
isInvalidRequestError2,
|
|
13
9
|
isUnauthorizedError2,
|
|
@@ -40,11 +36,15 @@ import {
|
|
|
40
36
|
isForbiddenError2,
|
|
41
37
|
isShellNotFoundError2,
|
|
42
38
|
isWorktreeError2
|
|
43
|
-
} from "../chunks/
|
|
44
|
-
import"../chunks/
|
|
39
|
+
} from "../chunks/pty-handoff-4tveyqeh.js";
|
|
40
|
+
import"../chunks/pty-handoff-8wk26zth.js";
|
|
41
|
+
import {
|
|
42
|
+
ClientError2
|
|
43
|
+
} from "../chunks/pty-handoff-js54wxgp.js";
|
|
44
|
+
import"../chunks/pty-handoff-frbwqjmf.js";
|
|
45
45
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
ClientError2 as ClientError,
|
|
47
|
+
exports_client as OpenCode,
|
|
48
48
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
49
49
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
50
50
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
package/dist/promise/rpc.js
CHANGED
package/dist/promise/service.js
CHANGED
|
@@ -2,21 +2,21 @@ import {
|
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderFailure2,
|
|
4
4
|
contenderFinished2
|
|
5
|
-
} from "../chunks/
|
|
5
|
+
} from "../chunks/pty-handoff-txckps9j.js";
|
|
6
6
|
import {
|
|
7
7
|
defaultEnsureTiming2,
|
|
8
8
|
ensureTiming2
|
|
9
|
-
} from "../chunks/
|
|
9
|
+
} from "../chunks/pty-handoff-xgnj2w4v.js";
|
|
10
10
|
import {
|
|
11
11
|
matchesVersion2
|
|
12
|
-
} from "../chunks/
|
|
12
|
+
} from "../chunks/pty-handoff-sxt88q69.js";
|
|
13
13
|
import {
|
|
14
14
|
prepare2,
|
|
15
15
|
environment2,
|
|
16
16
|
complete2,
|
|
17
17
|
clear2
|
|
18
|
-
} from "../chunks/
|
|
19
|
-
import"../chunks/
|
|
18
|
+
} from "../chunks/pty-handoff-kpa38e12.js";
|
|
19
|
+
import"../chunks/pty-handoff-qav6mfdz.js";
|
|
20
20
|
|
|
21
21
|
// src/promise/service.ts
|
|
22
22
|
import { readFile, rm } from "node:fs/promises";
|
package/dist/pty-handoff.js
CHANGED
package/dist/rpc-runtime.js
CHANGED
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/pty-handoff-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/pty-handoff-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/pty-handoff-h11j9btw.js";
|
|
6
|
+
import"../chunks/pty-handoff-m2eywc8w.js";
|
|
7
|
+
import"../chunks/pty-handoff-fty2ne3g.js";
|
|
8
|
+
import"../chunks/pty-handoff-vyas3vgt.js";
|
|
9
|
+
import"../chunks/pty-handoff-1tbj6z39.js";
|
|
10
|
+
import"../chunks/pty-handoff-4tveyqeh.js";
|
|
11
|
+
import"../chunks/pty-handoff-8wk26zth.js";
|
|
12
|
+
import"../chunks/pty-handoff-js54wxgp.js";
|
|
13
|
+
import"../chunks/pty-handoff-frbwqjmf.js";
|
|
14
14
|
export {
|
|
15
15
|
createData2 as createData,
|
|
16
16
|
locationKey2 as locationKey,
|
package/dist/solid/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
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/pty-handoff-js54wxgp.js";
|
|
2
|
+
import"../chunks/pty-handoff-8wk26zth.js";
|
|
3
|
+
import"../chunks/pty-handoff-4tveyqeh.js";
|
|
4
|
+
import"../chunks/pty-handoff-vyas3vgt.js";
|
|
5
|
+
import"../chunks/pty-handoff-frbwqjmf.js";
|
|
6
|
+
import"../chunks/pty-handoff-1tbj6z39.js";
|
|
7
|
+
import"../chunks/pty-handoff-fty2ne3g.js";
|
|
8
|
+
import"../chunks/pty-handoff-m2eywc8w.js";
|
|
9
9
|
import {
|
|
10
10
|
settleMs2,
|
|
11
11
|
locationKey2,
|
|
12
12
|
createData2
|
|
13
|
-
} from "../chunks/
|
|
13
|
+
} from "../chunks/pty-handoff-h11j9btw.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultIdleTimeout2,
|
|
16
16
|
foregroundIdleThreshold2,
|
|
17
17
|
createClientConnection2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/pty-handoff-ydhz1zrh.js";
|
|
19
19
|
import {
|
|
20
20
|
createPtyClient2,
|
|
21
21
|
createPersistentPtyClient2
|
|
22
|
-
} from "../chunks/
|
|
22
|
+
} from "../chunks/pty-handoff-gne7h7mq.js";
|
|
23
23
|
export {
|
|
24
24
|
createClientConnection2 as createClientConnection,
|
|
25
25
|
createData2 as createData,
|
package/dist/solid/pty.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-20308",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"typecheck": "tsgo --noEmit"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@opencode/schema": "0.0.0-dev-
|
|
61
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
60
|
+
"@opencode/schema": "0.0.0-dev-20308",
|
|
61
|
+
"@opencode/protocol": "0.0.0-dev-20308"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"effect": "4.0.0-rc.112",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@effect/platform-node": "4.0.0-rc.112",
|
|
77
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
77
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-20308",
|
|
78
78
|
"@tsconfig/bun": "1.0.9",
|
|
79
79
|
"@types/bun": "1.4.0",
|
|
80
80
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
make7
|
|
3
|
-
} from "./shared-events-frbwqjmf.js";
|
|
4
|
-
import {
|
|
5
|
-
make6
|
|
6
|
-
} from "./shared-events-n8g24fq8.js";
|
|
7
|
-
import {
|
|
8
|
-
makeRpc2
|
|
9
|
-
} from "./shared-events-1tbj6z39.js";
|
|
10
|
-
import {
|
|
11
|
-
__export
|
|
12
|
-
} from "./shared-events-9rqn6x4v.js";
|
|
13
|
-
|
|
14
|
-
// src/promise/client.ts
|
|
15
|
-
var exports_client3 = {};
|
|
16
|
-
__export(exports_client3, {
|
|
17
|
-
OpenCode: () => exports_client3,
|
|
18
|
-
make: () => make5
|
|
19
|
-
});
|
|
20
|
-
function make5(options) {
|
|
21
|
-
const raw = make6(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 { make5, exports_client3 };
|