@opencode/client 0.0.0-dev-536 → 0.0.0-dev-544
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-b6gvhk3y.js → service-timing-65x8rqc1.js} +34 -19
- package/dist/chunks/{contract-y2etg5bs.js → service-timing-7f0py9js.js} +2 -2
- package/dist/chunks/{contract-2ny4vxct.js → service-timing-8ye1ye6f.js} +2 -2
- package/dist/chunks/{contract-15p82y03.js → service-timing-anregfhs.js} +5 -5
- package/dist/chunks/{contract-zw58vhj7.js → service-timing-ftg2z55g.js} +17 -17
- package/dist/chunks/{contract-gecjxyvt.js → service-timing-gecjxyvt.js} +1 -1
- package/dist/chunks/{contract-nwcpakzx.js → service-timing-js54wxgp.js} +2 -2
- package/dist/chunks/service-timing-nehah77e.js +30 -0
- package/dist/chunks/{contract-6ppcy18n.js → service-timing-r42c8qx2.js} +2 -2
- package/dist/chunks/{contract-ryy6kscr.js → service-timing-ryy6kscr.js} +1 -1
- package/dist/chunks/{contract-sbaynanj.js → service-timing-sbaynanj.js} +1 -1
- package/dist/chunks/{contract-a0tnr2rp.js → service-timing-synk33rf.js} +20 -11
- package/dist/chunks/{contract-xqwq6bgr.js → service-timing-xqwq6bgr.js} +1 -1
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +12 -0
- package/dist/effect/client.d.ts +3 -0
- package/dist/effect/client.js +12 -12
- package/dist/effect/generated/client-error.js +3 -3
- package/dist/effect/generated/client.d.ts +4 -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 +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 +46 -0
- package/dist/promise/generated/types.js +1 -1
- package/dist/promise/index.js +17 -17
- package/dist/promise/media.d.ts +3 -0
- package/dist/promise/media.js +1 -1
- 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 +10 -10
- package/dist/solid/index.js +14 -14
- 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-msqj3znm.js +0 -30
- /package/dist/chunks/{contract-3eaz3m83.js → service-timing-3eaz3m83.js} +0 -0
- /package/dist/chunks/{contract-60xe5cbf.js → service-timing-60xe5cbf.js} +0 -0
- /package/dist/chunks/{contract-6mptkzbc.js → service-timing-6mptkzbc.js} +0 -0
- /package/dist/chunks/{contract-6mq2wh8y.js → service-timing-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{contract-6r38tsk5.js → service-timing-6r38tsk5.js} +0 -0
- /package/dist/chunks/{contract-8s2anffy.js → service-timing-8s2anffy.js} +0 -0
- /package/dist/chunks/{contract-9rqn6x4v.js → service-timing-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{contract-mwrzahmf.js → service-timing-mwrzahmf.js} +0 -0
- /package/dist/chunks/{contract-qav6mfdz.js → service-timing-qav6mfdz.js} +0 -0
- /package/dist/chunks/{contract-sdjh9vmn.js → service-timing-sdjh9vmn.js} +0 -0
- /package/dist/chunks/{contract-sxt88q69.js → service-timing-sxt88q69.js} +0 -0
- /package/dist/chunks/{contract-ve4aws36.js → service-timing-ve4aws36.js} +0 -0
- /package/dist/chunks/{contract-vyas3vgt.js → service-timing-vyas3vgt.js} +0 -0
- /package/dist/chunks/{contract-xgnj2w4v.js → service-timing-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{contract-ydhz1zrh.js → service-timing-ydhz1zrh.js} +0 -0
package/dist/effect/rpc.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
make5,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/service-timing-anregfhs.js";
|
|
6
|
+
import"../chunks/service-timing-ryy6kscr.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
|
10
|
-
|
|
10
|
+
make5 as make
|
|
11
11
|
};
|
package/dist/effect/service.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderPool2
|
|
4
|
-
} from "../chunks/
|
|
4
|
+
} from "../chunks/service-timing-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/
|
|
8
|
+
} from "../chunks/service-timing-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/service-timing-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/service-timing-8ye1ye6f.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/service-timing-r42c8qx2.js";
|
|
25
|
+
import"../chunks/service-timing-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
|
@@ -106,6 +106,9 @@ export declare function make(options: ClientOptions): {
|
|
|
106
106
|
delete: (input: import("./index.js").ExperimentalArtifactsDeleteInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
107
107
|
view: (input: import("./index.js").ExperimentalArtifactsViewInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ExperimentalArtifactsViewOutput>;
|
|
108
108
|
};
|
|
109
|
+
job: {
|
|
110
|
+
list: (input?: import("./index.js").ExperimentalJobListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").JobInfo[]>;
|
|
111
|
+
};
|
|
109
112
|
migration: {
|
|
110
113
|
v1: {
|
|
111
114
|
status: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ExperimentalMigrationV1StatusOutput>;
|
package/dist/promise/client.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
2
|
+
make2,
|
|
3
|
+
exports_client
|
|
4
|
+
} from "../chunks/service-timing-nehah77e.js";
|
|
5
|
+
import"../chunks/service-timing-vyas3vgt.js";
|
|
6
|
+
import"../chunks/service-timing-65x8rqc1.js";
|
|
7
|
+
import"../chunks/service-timing-js54wxgp.js";
|
|
8
|
+
import"../chunks/service-timing-xqwq6bgr.js";
|
|
9
|
+
import"../chunks/service-timing-sdjh9vmn.js";
|
|
10
|
+
import"../chunks/service-timing-gecjxyvt.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, PluginGuiInput, PluginGuiOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionGenerateInput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, ExperimentalSessionStatsInput, ExperimentalSessionImportInput, ExperimentalSessionExportInput, ExperimentalSessionSkillInput, ExperimentalSessionWaitInput, ExperimentalSessionInstructionsEntryListInput, ExperimentalSessionInstructionsEntryPutInput, ExperimentalSessionInstructionsEntryRemoveInput, ExperimentalSessionLogInput, ExperimentalSessionLogOutput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, ExperimentalGenerateTextInput, ExperimentalGenerateImageInput, ExperimentalGenerateDecisionsInput, ExperimentalVoiceSessionInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, ExperimentalIntegrationWellknownAddInput, McpListInput, McpListOutput, McpResourceCatalogInput, McpResourceCatalogOutput, ExperimentalMcpAddInput, ExperimentalMcpRemoveInput, ExperimentalMcpConnectInput, ExperimentalMcpDisconnectInput, ExperimentalMcpClientTokenInput, ExperimentalMcpClientTokenOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, ExperimentalFileWriteInput, ExperimentalFileWriteOutput, ExperimentalFileWatchInput, ExperimentalFileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ExperimentalMediaGetInput, ExperimentalMediaGetOutput, ExperimentalScheduleCreateInput, ExperimentalScheduleListInput, ExperimentalScheduleGetInput, ExperimentalSchedulePauseInput, ExperimentalScheduleResumeInput, ExperimentalScheduleDeleteInput, ExperimentalArtifactsProvidersInput, ExperimentalArtifactsProvidersOutput, ExperimentalArtifactsListInput, ExperimentalArtifactsListOutput, ExperimentalArtifactsCreateInput, ExperimentalArtifactsCreateOutput, ExperimentalArtifactsGetInput, ExperimentalArtifactsGetOutput, ExperimentalArtifactsUpdateInput, ExperimentalArtifactsUpdateOutput, ExperimentalArtifactsDeleteInput, ExperimentalArtifactsViewInput, ExperimentalArtifactsViewOutput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsInitInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugHeapDumpInput, DebugHeapDumpOutput, DebugLocationListOutput, DebugLocationEvictInput, ExperimentalMigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ExperimentalUsageLimitsInput, ExperimentalUsageLimitsOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ExperimentalConfigUpdateInput } from "./types.js";
|
|
1
|
+
import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginGuiInput, PluginGuiOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionGenerateInput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, ExperimentalSessionStatsInput, ExperimentalSessionImportInput, ExperimentalSessionExportInput, ExperimentalSessionSkillInput, ExperimentalSessionWaitInput, ExperimentalSessionInstructionsEntryListInput, ExperimentalSessionInstructionsEntryPutInput, ExperimentalSessionInstructionsEntryRemoveInput, ExperimentalSessionLogInput, ExperimentalSessionLogOutput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, ExperimentalGenerateTextInput, ExperimentalGenerateImageInput, ExperimentalGenerateDecisionsInput, ExperimentalVoiceSessionInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, ExperimentalIntegrationWellknownAddInput, McpListInput, McpListOutput, McpResourceCatalogInput, McpResourceCatalogOutput, ExperimentalMcpAddInput, ExperimentalMcpRemoveInput, ExperimentalMcpConnectInput, ExperimentalMcpDisconnectInput, ExperimentalMcpClientTokenInput, ExperimentalMcpClientTokenOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, ExperimentalFileWriteInput, ExperimentalFileWriteOutput, ExperimentalFileWatchInput, ExperimentalFileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ExperimentalMediaGetInput, ExperimentalMediaGetOutput, ExperimentalScheduleCreateInput, ExperimentalScheduleListInput, ExperimentalScheduleGetInput, ExperimentalSchedulePauseInput, ExperimentalScheduleResumeInput, ExperimentalScheduleDeleteInput, ExperimentalArtifactsProvidersInput, ExperimentalArtifactsProvidersOutput, ExperimentalArtifactsListInput, ExperimentalArtifactsListOutput, ExperimentalArtifactsCreateInput, ExperimentalArtifactsCreateOutput, ExperimentalArtifactsGetInput, ExperimentalArtifactsGetOutput, ExperimentalArtifactsUpdateInput, ExperimentalArtifactsUpdateOutput, ExperimentalArtifactsDeleteInput, ExperimentalArtifactsViewInput, ExperimentalArtifactsViewOutput, ExperimentalJobListInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsInitInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugHeapDumpInput, DebugHeapDumpOutput, DebugLocationListOutput, DebugLocationEvictInput, ExperimentalMigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ExperimentalUsageLimitsInput, ExperimentalUsageLimitsOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ExperimentalConfigUpdateInput } from "./types.js";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -113,6 +113,9 @@ export declare function make(options: ClientOptions): {
|
|
|
113
113
|
delete: (input: ExperimentalArtifactsDeleteInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
114
114
|
view: (input: ExperimentalArtifactsViewInput, requestOptions?: RequestOptions) => Promise<ExperimentalArtifactsViewOutput>;
|
|
115
115
|
};
|
|
116
|
+
job: {
|
|
117
|
+
list: (input?: ExperimentalJobListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").JobInfo[]>;
|
|
118
|
+
};
|
|
116
119
|
migration: {
|
|
117
120
|
v1: {
|
|
118
121
|
status: (requestOptions?: RequestOptions) => Promise<ExperimentalMigrationV1StatusOutput>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/
|
|
4
|
-
import"../../chunks/
|
|
2
|
+
make3
|
|
3
|
+
} from "../../chunks/service-timing-65x8rqc1.js";
|
|
4
|
+
import"../../chunks/service-timing-js54wxgp.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
make3 as make
|
|
7
7
|
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import"../../chunks/
|
|
1
|
+
import"../../chunks/service-timing-vyas3vgt.js";
|
|
2
|
+
import {
|
|
3
|
+
exports_client2
|
|
4
|
+
} from "../../chunks/service-timing-65x8rqc1.js";
|
|
5
|
+
import {
|
|
6
|
+
ClientError2
|
|
7
|
+
} from "../../chunks/service-timing-js54wxgp.js";
|
|
2
8
|
import {
|
|
3
9
|
isInvalidRequestError2,
|
|
4
10
|
isUnauthorizedError2,
|
|
@@ -41,16 +47,10 @@ import {
|
|
|
41
47
|
isShellNotFoundError2,
|
|
42
48
|
isWorktreeError2,
|
|
43
49
|
isVcsInitNotSupportedError2
|
|
44
|
-
} from "../../chunks/
|
|
45
|
-
import {
|
|
46
|
-
exports_client4
|
|
47
|
-
} from "../../chunks/contract-b6gvhk3y.js";
|
|
48
|
-
import {
|
|
49
|
-
ClientError3
|
|
50
|
-
} from "../../chunks/contract-nwcpakzx.js";
|
|
50
|
+
} from "../../chunks/service-timing-sdjh9vmn.js";
|
|
51
51
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
ClientError2 as ClientError,
|
|
53
|
+
exports_client2 as OpenCode,
|
|
54
54
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
55
55
|
isArtifactNotFoundError2 as isArtifactNotFoundError,
|
|
56
56
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
@@ -505,6 +505,11 @@ export type ArtifactTime = {
|
|
|
505
505
|
created: number;
|
|
506
506
|
updated: number;
|
|
507
507
|
};
|
|
508
|
+
export type JobStatus = "running" | "completed" | "error" | "cancelled";
|
|
509
|
+
export type JobTime = {
|
|
510
|
+
started: number;
|
|
511
|
+
completed?: number;
|
|
512
|
+
};
|
|
508
513
|
export type ReferenceGitSource = {
|
|
509
514
|
type: "git";
|
|
510
515
|
repository: string;
|
|
@@ -1258,6 +1263,37 @@ export type ArtifactInfo = {
|
|
|
1258
1263
|
url: string;
|
|
1259
1264
|
time: ArtifactTime;
|
|
1260
1265
|
};
|
|
1266
|
+
export type JobShell = {
|
|
1267
|
+
kind: "shell";
|
|
1268
|
+
id: string;
|
|
1269
|
+
sessionID: SessionID;
|
|
1270
|
+
status: JobStatus;
|
|
1271
|
+
title?: string;
|
|
1272
|
+
time: JobTime;
|
|
1273
|
+
shellID: string;
|
|
1274
|
+
command: string;
|
|
1275
|
+
};
|
|
1276
|
+
export type JobSubagent = {
|
|
1277
|
+
kind: "subagent";
|
|
1278
|
+
id: string;
|
|
1279
|
+
sessionID: SessionID;
|
|
1280
|
+
status: JobStatus;
|
|
1281
|
+
title?: string;
|
|
1282
|
+
time: JobTime;
|
|
1283
|
+
childSessionID: SessionID;
|
|
1284
|
+
agent: string;
|
|
1285
|
+
description: string;
|
|
1286
|
+
};
|
|
1287
|
+
export type JobImage = {
|
|
1288
|
+
kind: "image";
|
|
1289
|
+
id: string;
|
|
1290
|
+
sessionID: SessionID;
|
|
1291
|
+
status: JobStatus;
|
|
1292
|
+
title?: string;
|
|
1293
|
+
time: JobTime;
|
|
1294
|
+
path: string;
|
|
1295
|
+
model: string;
|
|
1296
|
+
};
|
|
1261
1297
|
export type VcsInfo = {
|
|
1262
1298
|
provider?: string;
|
|
1263
1299
|
branch: VcsBranch;
|
|
@@ -3037,6 +3073,7 @@ export type ArtifactContent = {
|
|
|
3037
3073
|
[x: string]: string;
|
|
3038
3074
|
};
|
|
3039
3075
|
};
|
|
3076
|
+
export type JobInfo = JobShell | JobSubagent | JobImage;
|
|
3040
3077
|
export type SessionInboxMove = {
|
|
3041
3078
|
id: SessionMessageID;
|
|
3042
3079
|
sessionID: SessionID;
|
|
@@ -5614,6 +5651,15 @@ export type ExperimentalArtifactsViewInput = {
|
|
|
5614
5651
|
readonly path: string;
|
|
5615
5652
|
};
|
|
5616
5653
|
export type ExperimentalArtifactsViewOutput = globalThis.Uint8Array;
|
|
5654
|
+
export type ExperimentalJobListInput = {
|
|
5655
|
+
readonly sessionID?: string | undefined;
|
|
5656
|
+
readonly kind?: ("shell" | "subagent" | "image") | undefined;
|
|
5657
|
+
readonly status?: ("running" | "completed" | "error" | "cancelled") | undefined;
|
|
5658
|
+
readonly descendants?: boolean | undefined;
|
|
5659
|
+
};
|
|
5660
|
+
export type ExperimentalJobListOutput = {
|
|
5661
|
+
data: Array<JobInfo>;
|
|
5662
|
+
}["data"];
|
|
5617
5663
|
export type ShellListInput = {
|
|
5618
5664
|
readonly location?: {
|
|
5619
5665
|
readonly directory?: string | undefined;
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
isShellNotFoundError2,
|
|
41
41
|
isWorktreeError2,
|
|
42
42
|
isVcsInitNotSupportedError2
|
|
43
|
-
} from "../../chunks/
|
|
43
|
+
} from "../../chunks/service-timing-sdjh9vmn.js";
|
|
44
44
|
export {
|
|
45
45
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
46
46
|
isArtifactNotFoundError2 as isArtifactNotFoundError,
|
package/dist/promise/index.js
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/service-timing-6r38tsk5.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
3
|
+
exports_client
|
|
4
|
+
} from "../chunks/service-timing-nehah77e.js";
|
|
5
|
+
import"../chunks/service-timing-vyas3vgt.js";
|
|
6
|
+
import"../chunks/service-timing-65x8rqc1.js";
|
|
7
|
+
import {
|
|
8
|
+
ClientError2
|
|
9
|
+
} from "../chunks/service-timing-js54wxgp.js";
|
|
10
|
+
import {
|
|
11
|
+
mediaHashFromUri2,
|
|
12
|
+
withMediaRefs2
|
|
13
|
+
} from "../chunks/service-timing-mwrzahmf.js";
|
|
14
|
+
import"../chunks/service-timing-xqwq6bgr.js";
|
|
7
15
|
import {
|
|
8
16
|
isInvalidRequestError2,
|
|
9
17
|
isUnauthorizedError2,
|
|
@@ -46,19 +54,11 @@ import {
|
|
|
46
54
|
isShellNotFoundError2,
|
|
47
55
|
isWorktreeError2,
|
|
48
56
|
isVcsInitNotSupportedError2
|
|
49
|
-
} from "../chunks/
|
|
50
|
-
import
|
|
51
|
-
mediaHashFromUri2,
|
|
52
|
-
withMediaRefs2
|
|
53
|
-
} from "../chunks/contract-mwrzahmf.js";
|
|
54
|
-
import"../chunks/contract-b6gvhk3y.js";
|
|
55
|
-
import {
|
|
56
|
-
ClientError3
|
|
57
|
-
} from "../chunks/contract-nwcpakzx.js";
|
|
58
|
-
import"../chunks/contract-gecjxyvt.js";
|
|
57
|
+
} from "../chunks/service-timing-sdjh9vmn.js";
|
|
58
|
+
import"../chunks/service-timing-gecjxyvt.js";
|
|
59
59
|
export {
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
ClientError2 as ClientError,
|
|
61
|
+
exports_client as OpenCode,
|
|
62
62
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
63
63
|
isArtifactNotFoundError2 as isArtifactNotFoundError,
|
|
64
64
|
isCommandExecutionError2 as isCommandExecutionError,
|
package/dist/promise/media.d.ts
CHANGED
|
@@ -116,6 +116,9 @@ export declare function withMediaRefs(api: ReturnType<typeof make>): {
|
|
|
116
116
|
delete: (input: import("./index.js").ExperimentalArtifactsDeleteInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
117
117
|
view: (input: import("./index.js").ExperimentalArtifactsViewInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ExperimentalArtifactsViewOutput>;
|
|
118
118
|
};
|
|
119
|
+
job: {
|
|
120
|
+
list: (input?: import("./index.js").ExperimentalJobListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").JobInfo[]>;
|
|
121
|
+
};
|
|
119
122
|
migration: {
|
|
120
123
|
v1: {
|
|
121
124
|
status: (requestOptions?: RequestOptions) => Promise<import("./index.js").ExperimentalMigrationV1StatusOutput>;
|
package/dist/promise/media.js
CHANGED
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/service-timing-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/
|
|
8
|
+
} from "../chunks/service-timing-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/service-timing-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/service-timing-8ye1ye6f.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/service-timing-r42c8qx2.js";
|
|
25
|
+
import"../chunks/service-timing-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/service-timing-r42c8qx2.js";
|
|
8
|
+
import"./chunks/service-timing-8ye1ye6f.js";
|
|
9
|
+
import"./chunks/service-timing-xgnj2w4v.js";
|
|
10
|
+
import"./chunks/service-timing-sxt88q69.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/service-timing-8ye1ye6f.js";
|
|
8
|
+
import"./chunks/service-timing-xgnj2w4v.js";
|
|
9
|
+
import"./chunks/service-timing-sxt88q69.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/service-timing-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/service-timing-ydhz1zrh.js";
|
|
6
6
|
export {
|
|
7
7
|
createClientConnection2 as createClientConnection,
|
|
8
8
|
defaultIdleTimeout2 as defaultIdleTimeout,
|
package/dist/solid/data.js
CHANGED
|
@@ -2,16 +2,16 @@ 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/
|
|
14
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/service-timing-sbaynanj.js";
|
|
6
|
+
import"../chunks/service-timing-6r38tsk5.js";
|
|
7
|
+
import"../chunks/service-timing-nehah77e.js";
|
|
8
|
+
import"../chunks/service-timing-vyas3vgt.js";
|
|
9
|
+
import"../chunks/service-timing-65x8rqc1.js";
|
|
10
|
+
import"../chunks/service-timing-js54wxgp.js";
|
|
11
|
+
import"../chunks/service-timing-mwrzahmf.js";
|
|
12
|
+
import"../chunks/service-timing-xqwq6bgr.js";
|
|
13
|
+
import"../chunks/service-timing-sdjh9vmn.js";
|
|
14
|
+
import"../chunks/service-timing-gecjxyvt.js";
|
|
15
15
|
export {
|
|
16
16
|
createData2 as createData,
|
|
17
17
|
locationKey2 as locationKey,
|
package/dist/solid/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import"../chunks/
|
|
2
|
-
import"../chunks/
|
|
3
|
-
import"../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/service-timing-js54wxgp.js";
|
|
2
|
+
import"../chunks/service-timing-65x8rqc1.js";
|
|
3
|
+
import"../chunks/service-timing-sdjh9vmn.js";
|
|
4
|
+
import"../chunks/service-timing-vyas3vgt.js";
|
|
5
|
+
import"../chunks/service-timing-gecjxyvt.js";
|
|
6
|
+
import"../chunks/service-timing-xqwq6bgr.js";
|
|
7
|
+
import"../chunks/service-timing-nehah77e.js";
|
|
8
|
+
import"../chunks/service-timing-mwrzahmf.js";
|
|
9
|
+
import"../chunks/service-timing-6r38tsk5.js";
|
|
10
10
|
import {
|
|
11
11
|
settleMs2,
|
|
12
12
|
locationKey2,
|
|
13
13
|
createData2
|
|
14
|
-
} from "../chunks/
|
|
14
|
+
} from "../chunks/service-timing-sbaynanj.js";
|
|
15
15
|
import {
|
|
16
16
|
defaultIdleTimeout2,
|
|
17
17
|
foregroundIdleThreshold2,
|
|
18
18
|
createClientConnection2
|
|
19
|
-
} from "../chunks/
|
|
19
|
+
} from "../chunks/service-timing-ydhz1zrh.js";
|
|
20
20
|
import {
|
|
21
21
|
PersistentPtyMessage2,
|
|
22
22
|
decodePersistentPtyMessage2,
|
|
23
23
|
persistentPtyFrame2,
|
|
24
24
|
createPersistentPtyClient2
|
|
25
|
-
} from "../chunks/
|
|
25
|
+
} from "../chunks/service-timing-3eaz3m83.js";
|
|
26
26
|
import {
|
|
27
27
|
createSessionRetention2
|
|
28
|
-
} from "../chunks/
|
|
28
|
+
} from "../chunks/service-timing-6mq2wh8y.js";
|
|
29
29
|
import {
|
|
30
30
|
lastAssistantWithUsage2
|
|
31
|
-
} from "../chunks/
|
|
31
|
+
} from "../chunks/service-timing-8s2anffy.js";
|
|
32
32
|
export {
|
|
33
33
|
PersistentPtyMessage2 as PersistentPtyMessage,
|
|
34
34
|
createClientConnection2 as createClientConnection,
|
package/dist/solid/pty.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
decodePersistentPtyMessage2,
|
|
4
4
|
persistentPtyFrame2,
|
|
5
5
|
createPersistentPtyClient2
|
|
6
|
-
} from "../chunks/
|
|
6
|
+
} from "../chunks/service-timing-3eaz3m83.js";
|
|
7
7
|
export {
|
|
8
8
|
PersistentPtyMessage2 as PersistentPtyMessage,
|
|
9
9
|
createPersistentPtyClient2 as createPersistentPtyClient,
|
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-544",
|
|
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-544",
|
|
67
|
+
"@opencode/protocol": "0.0.0-dev-544"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"effect": "4.1.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@effect/platform-node": "4.1.0",
|
|
83
83
|
"@modelcontextprotocol/client": "2.3.1",
|
|
84
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
84
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-544",
|
|
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 "./contract-gecjxyvt.js";
|
|
4
|
-
import {
|
|
5
|
-
make6
|
|
6
|
-
} from "./contract-b6gvhk3y.js";
|
|
7
|
-
import {
|
|
8
|
-
makeRpc2
|
|
9
|
-
} from "./contract-xqwq6bgr.js";
|
|
10
|
-
import {
|
|
11
|
-
__export
|
|
12
|
-
} from "./contract-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(undefined, { 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 };
|
|
File without changes
|