@opencode/client 0.0.0-dev-21775 → 0.0.0-dev-21777
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{service-probe-4xs9mw5n.js → rpc-runtime-0f1fbpb7.js} +2 -2
- package/dist/chunks/{service-probe-y2etg5bs.js → rpc-runtime-7f0py9js.js} +2 -2
- package/dist/chunks/{service-probe-8bbb028w.js → rpc-runtime-8bbb028w.js} +1 -1
- package/dist/chunks/{service-probe-8p3n1yjj.js → rpc-runtime-8wfm4fz6.js} +17 -17
- package/dist/chunks/{service-probe-2ny4vxct.js → rpc-runtime-8ye1ye6f.js} +2 -2
- package/dist/chunks/{service-probe-9j12j8xw.js → rpc-runtime-anregfhs.js} +5 -5
- package/dist/chunks/{service-probe-nwcpakzx.js → rpc-runtime-js54wxgp.js} +2 -2
- package/dist/chunks/{service-probe-ryy6kscr.js → rpc-runtime-ryy6kscr.js} +1 -1
- package/dist/chunks/{service-probe-skhp7hxc.js → rpc-runtime-skhp7hxc.js} +1 -1
- package/dist/chunks/rpc-runtime-sz1wg37z.js +30 -0
- package/dist/chunks/{service-probe-m7bh361g.js → rpc-runtime-t0xxv8t7.js} +29 -19
- package/dist/chunks/{service-probe-9fgg8pn6.js → rpc-runtime-xeq38ene.js} +13 -10
- package/dist/chunks/{service-probe-bm83m8es.js → rpc-runtime-yv0d8k9r.js} +13 -1
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +15 -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 +50 -0
- 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 +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.d.ts +6 -1
- package/dist/solid/data.js +9 -9
- package/dist/solid/index.js +13 -13
- package/dist/solid/pty.js +1 -1
- package/dist/solid/retention.js +1 -1
- package/dist/solid/usage.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/service-probe-ssx1wzz3.js +0 -30
- /package/dist/chunks/{service-probe-6mptkzbc.js → rpc-runtime-6mptkzbc.js} +0 -0
- /package/dist/chunks/{service-probe-6mq2wh8y.js → rpc-runtime-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{service-probe-8s2anffy.js → rpc-runtime-8s2anffy.js} +0 -0
- /package/dist/chunks/{service-probe-9rqn6x4v.js → rpc-runtime-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-probe-c46qzyff.js → rpc-runtime-c46qzyff.js} +0 -0
- /package/dist/chunks/{service-probe-gne7h7mq.js → rpc-runtime-gne7h7mq.js} +0 -0
- /package/dist/chunks/{service-probe-m2eywc8w.js → rpc-runtime-m2eywc8w.js} +0 -0
- /package/dist/chunks/{service-probe-qav6mfdz.js → rpc-runtime-qav6mfdz.js} +0 -0
- /package/dist/chunks/{service-probe-sxt88q69.js → rpc-runtime-sxt88q69.js} +0 -0
- /package/dist/chunks/{service-probe-ve4aws36.js → rpc-runtime-ve4aws36.js} +0 -0
- /package/dist/chunks/{service-probe-vmytr4q8.js → rpc-runtime-vmytr4q8.js} +0 -0
- /package/dist/chunks/{service-probe-vyas3vgt.js → rpc-runtime-vyas3vgt.js} +0 -0
- /package/dist/chunks/{service-probe-xgnj2w4v.js → rpc-runtime-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{service-probe-ydhz1zrh.js → rpc-runtime-ydhz1zrh.js} +0 -0
package/dist/effect/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
2
|
+
ClientError3
|
|
3
|
+
} from "../chunks/rpc-runtime-7f0py9js.js";
|
|
4
|
+
import"../chunks/rpc-runtime-vmytr4q8.js";
|
|
5
|
+
import"../chunks/rpc-runtime-xeq38ene.js";
|
|
6
|
+
import"../chunks/rpc-runtime-6mptkzbc.js";
|
|
7
|
+
import"../chunks/rpc-runtime-8bbb028w.js";
|
|
8
|
+
import"../chunks/rpc-runtime-ryy6kscr.js";
|
|
9
|
+
import"../chunks/rpc-runtime-anregfhs.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "../chunks/
|
|
11
|
+
exports_client3
|
|
12
|
+
} from "../chunks/rpc-runtime-8wfm4fz6.js";
|
|
13
13
|
|
|
14
14
|
// src/effect/index.ts
|
|
15
15
|
import { Agent } from "@opencode/schema/agent";
|
|
@@ -43,7 +43,7 @@ import { PromptInput } from "@opencode/schema/prompt-input";
|
|
|
43
43
|
export {
|
|
44
44
|
AbsolutePath,
|
|
45
45
|
Agent,
|
|
46
|
-
|
|
46
|
+
ClientError3 as ClientError,
|
|
47
47
|
Command,
|
|
48
48
|
Config,
|
|
49
49
|
Credential,
|
|
@@ -54,7 +54,7 @@ export {
|
|
|
54
54
|
Integration,
|
|
55
55
|
Location,
|
|
56
56
|
Model,
|
|
57
|
-
|
|
57
|
+
exports_client3 as OpenCode,
|
|
58
58
|
Permission,
|
|
59
59
|
PermissionSaved,
|
|
60
60
|
Project,
|
package/dist/effect/rpc.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
make5,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/rpc-runtime-anregfhs.js";
|
|
6
|
+
import"../chunks/rpc-runtime-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/rpc-runtime-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/
|
|
8
|
+
} from "../chunks/rpc-runtime-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/rpc-runtime-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
decide2,
|
|
14
14
|
fallback2,
|
|
15
15
|
same2,
|
|
16
16
|
probeResult2,
|
|
17
17
|
headers2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/rpc-runtime-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/rpc-runtime-0f1fbpb7.js";
|
|
25
|
+
import"../chunks/rpc-runtime-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
|
@@ -252,6 +252,9 @@ export declare function make(options: ClientOptions): {
|
|
|
252
252
|
providers: (input?: import("./index.js").WebsearchProvidersInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").WebsearchProvidersOutput>;
|
|
253
253
|
query: (input: import("./index.js").WebsearchQueryInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").WebsearchQueryOutput>;
|
|
254
254
|
};
|
|
255
|
+
usage: {
|
|
256
|
+
limits: (input?: import("./index.js").UsageLimitsInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").UsageLimitsOutput>;
|
|
257
|
+
};
|
|
255
258
|
config: {
|
|
256
259
|
get: (input?: import("./index.js").ConfigGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ConfigGetOutput>;
|
|
257
260
|
shells: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ConfigShellsOutput>;
|
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/rpc-runtime-sz1wg37z.js";
|
|
5
|
+
import"../chunks/rpc-runtime-skhp7hxc.js";
|
|
6
|
+
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
7
|
+
import"../chunks/rpc-runtime-t0xxv8t7.js";
|
|
8
|
+
import"../chunks/rpc-runtime-js54wxgp.js";
|
|
9
|
+
import"../chunks/rpc-runtime-c46qzyff.js";
|
|
10
|
+
import"../chunks/rpc-runtime-8bbb028w.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, 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, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsInitInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugHeapDumpInput, DebugHeapDumpOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "./types.js";
|
|
1
|
+
import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionStatsInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, VoiceSessionInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, McpClientTokenInput, McpClientTokenOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, FileWriteInput, FileWriteOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsInitInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugHeapDumpInput, DebugHeapDumpOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, UsageLimitsInput, UsageLimitsOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "./types.js";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -265,6 +265,9 @@ export declare function make(options: ClientOptions): {
|
|
|
265
265
|
providers: (input?: WebsearchProvidersInput, requestOptions?: RequestOptions) => Promise<WebsearchProvidersOutput>;
|
|
266
266
|
query: (input: WebsearchQueryInput, requestOptions?: RequestOptions) => Promise<WebsearchQueryOutput>;
|
|
267
267
|
};
|
|
268
|
+
usage: {
|
|
269
|
+
limits: (input?: UsageLimitsInput, requestOptions?: RequestOptions) => Promise<UsageLimitsOutput>;
|
|
270
|
+
};
|
|
268
271
|
config: {
|
|
269
272
|
get: (input?: ConfigGetInput, requestOptions?: RequestOptions) => Promise<ConfigGetOutput>;
|
|
270
273
|
shells: (requestOptions?: RequestOptions) => Promise<ConfigShellsOutput>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/
|
|
4
|
-
import"../../chunks/
|
|
2
|
+
make3
|
|
3
|
+
} from "../../chunks/rpc-runtime-t0xxv8t7.js";
|
|
4
|
+
import"../../chunks/rpc-runtime-js54wxgp.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
make3 as make
|
|
7
7
|
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import"../../chunks/
|
|
1
|
+
import"../../chunks/rpc-runtime-vyas3vgt.js";
|
|
2
|
+
import {
|
|
3
|
+
exports_client2
|
|
4
|
+
} from "../../chunks/rpc-runtime-t0xxv8t7.js";
|
|
5
|
+
import {
|
|
6
|
+
ClientError2
|
|
7
|
+
} from "../../chunks/rpc-runtime-js54wxgp.js";
|
|
2
8
|
import {
|
|
3
9
|
isInvalidRequestError2,
|
|
4
10
|
isUnauthorizedError2,
|
|
@@ -34,16 +40,10 @@ import {
|
|
|
34
40
|
isShellNotFoundError2,
|
|
35
41
|
isWorktreeError2,
|
|
36
42
|
isVcsInitNotSupportedError2
|
|
37
|
-
} from "../../chunks/
|
|
38
|
-
import {
|
|
39
|
-
exports_client4
|
|
40
|
-
} from "../../chunks/service-probe-m7bh361g.js";
|
|
41
|
-
import {
|
|
42
|
-
ClientError3
|
|
43
|
-
} from "../../chunks/service-probe-nwcpakzx.js";
|
|
43
|
+
} from "../../chunks/rpc-runtime-c46qzyff.js";
|
|
44
44
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
ClientError2 as ClientError,
|
|
46
|
+
exports_client2 as OpenCode,
|
|
47
47
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
48
48
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
49
49
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
|
@@ -452,6 +452,11 @@ export type WebSearchResult = {
|
|
|
452
452
|
published?: number;
|
|
453
453
|
};
|
|
454
454
|
};
|
|
455
|
+
export type UsageLimitsMeter = {
|
|
456
|
+
percent: number;
|
|
457
|
+
limited: boolean;
|
|
458
|
+
resetsAt: number;
|
|
459
|
+
};
|
|
455
460
|
export type McpProtocol = "legacy" | "auto" | "2026-07-28";
|
|
456
461
|
export type ConfigWorktree = {
|
|
457
462
|
directory: string;
|
|
@@ -601,6 +606,12 @@ export type SessionMessageCompactionRunning = {
|
|
|
601
606
|
reason: "auto" | "manual";
|
|
602
607
|
summary: string;
|
|
603
608
|
};
|
|
609
|
+
export type UsageLimitsBudgetModel = {
|
|
610
|
+
providerID: ProviderID;
|
|
611
|
+
modelID: string;
|
|
612
|
+
name: string;
|
|
613
|
+
spent?: MoneyUSD;
|
|
614
|
+
};
|
|
604
615
|
export type FileSystemEntry = {
|
|
605
616
|
path: RelativePath;
|
|
606
617
|
type: "file" | "directory";
|
|
@@ -1140,6 +1151,11 @@ export type WebSearchProvider = {
|
|
|
1140
1151
|
id: WebSearchID;
|
|
1141
1152
|
name: string;
|
|
1142
1153
|
};
|
|
1154
|
+
export type UsageLimitsGo = {
|
|
1155
|
+
rolling: UsageLimitsMeter;
|
|
1156
|
+
weekly: UsageLimitsMeter;
|
|
1157
|
+
monthly: UsageLimitsMeter;
|
|
1158
|
+
};
|
|
1143
1159
|
export type ConfigModelCapabilities = {
|
|
1144
1160
|
tools?: boolean;
|
|
1145
1161
|
input?: Array<string>;
|
|
@@ -1248,6 +1264,20 @@ export type ModelVariant = {
|
|
|
1248
1264
|
};
|
|
1249
1265
|
};
|
|
1250
1266
|
export type PermissionRuleset = Array<PermissionRule>;
|
|
1267
|
+
export type UsageLimitsBudget = {
|
|
1268
|
+
id: string;
|
|
1269
|
+
limit: MoneyUSD;
|
|
1270
|
+
spent: MoneyUSD;
|
|
1271
|
+
scope: "each" | "combined";
|
|
1272
|
+
per: "set" | "model";
|
|
1273
|
+
coverage: "all" | "models";
|
|
1274
|
+
models: Array<UsageLimitsBudgetModel>;
|
|
1275
|
+
vendors: Array<string>;
|
|
1276
|
+
inputPriceAtLeast?: MoneyUSDPerMillionTokens;
|
|
1277
|
+
picked: boolean;
|
|
1278
|
+
shared: boolean;
|
|
1279
|
+
resetsAt: number;
|
|
1280
|
+
};
|
|
1251
1281
|
export type SessionMessageUser = {
|
|
1252
1282
|
id: SessionMessageID;
|
|
1253
1283
|
metadata?: {
|
|
@@ -3277,6 +3307,15 @@ export type ConfigEntry = {
|
|
|
3277
3307
|
type: "directory";
|
|
3278
3308
|
path: AbsolutePath;
|
|
3279
3309
|
};
|
|
3310
|
+
export type UsageLimitsInfo = {
|
|
3311
|
+
workspace: {
|
|
3312
|
+
id: string;
|
|
3313
|
+
name?: string;
|
|
3314
|
+
usageURL: string;
|
|
3315
|
+
};
|
|
3316
|
+
go?: UsageLimitsGo;
|
|
3317
|
+
budgets: Array<UsageLimitsBudget>;
|
|
3318
|
+
};
|
|
3280
3319
|
export type SessionInboxUser = {
|
|
3281
3320
|
id: SessionMessageID;
|
|
3282
3321
|
sessionID: SessionID;
|
|
@@ -7855,6 +7894,17 @@ export type WebsearchQueryOutput = {
|
|
|
7855
7894
|
results: Array<WebSearchResult>;
|
|
7856
7895
|
};
|
|
7857
7896
|
};
|
|
7897
|
+
export type UsageLimitsInput = {
|
|
7898
|
+
readonly location?: {
|
|
7899
|
+
readonly location?: {
|
|
7900
|
+
readonly directory?: string | undefined;
|
|
7901
|
+
} | undefined;
|
|
7902
|
+
}["location"];
|
|
7903
|
+
};
|
|
7904
|
+
export type UsageLimitsOutput = {
|
|
7905
|
+
location: LocationPublicRef;
|
|
7906
|
+
data: UsageLimitsInfo | null;
|
|
7907
|
+
};
|
|
7858
7908
|
export type ConfigGetInput = {
|
|
7859
7909
|
readonly location?: {
|
|
7860
7910
|
readonly location?: {
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
isShellNotFoundError2,
|
|
34
34
|
isWorktreeError2,
|
|
35
35
|
isVcsInitNotSupportedError2
|
|
36
|
-
} from "../../chunks/
|
|
36
|
+
} from "../../chunks/rpc-runtime-c46qzyff.js";
|
|
37
37
|
export {
|
|
38
38
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
39
39
|
isCommandExecutionError2 as isCommandExecutionError,
|
package/dist/promise/index.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/rpc-runtime-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
3
|
+
exports_client
|
|
4
|
+
} from "../chunks/rpc-runtime-sz1wg37z.js";
|
|
5
|
+
import"../chunks/rpc-runtime-skhp7hxc.js";
|
|
6
|
+
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
7
|
+
import"../chunks/rpc-runtime-t0xxv8t7.js";
|
|
8
|
+
import {
|
|
9
|
+
ClientError2
|
|
10
|
+
} from "../chunks/rpc-runtime-js54wxgp.js";
|
|
7
11
|
import {
|
|
8
12
|
isInvalidRequestError2,
|
|
9
13
|
isUnauthorizedError2,
|
|
@@ -39,15 +43,11 @@ import {
|
|
|
39
43
|
isShellNotFoundError2,
|
|
40
44
|
isWorktreeError2,
|
|
41
45
|
isVcsInitNotSupportedError2
|
|
42
|
-
} from "../chunks/
|
|
43
|
-
import"../chunks/
|
|
44
|
-
import {
|
|
45
|
-
ClientError3
|
|
46
|
-
} from "../chunks/service-probe-nwcpakzx.js";
|
|
47
|
-
import"../chunks/service-probe-8bbb028w.js";
|
|
46
|
+
} from "../chunks/rpc-runtime-c46qzyff.js";
|
|
47
|
+
import"../chunks/rpc-runtime-8bbb028w.js";
|
|
48
48
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
ClientError2 as ClientError,
|
|
50
|
+
exports_client as OpenCode,
|
|
51
51
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
52
52
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
53
53
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
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/rpc-runtime-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/
|
|
8
|
+
} from "../chunks/rpc-runtime-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/rpc-runtime-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
decide2,
|
|
14
14
|
fallback2,
|
|
15
15
|
same2,
|
|
16
16
|
probeResult2,
|
|
17
17
|
headers2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/rpc-runtime-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/rpc-runtime-0f1fbpb7.js";
|
|
25
|
+
import"../chunks/rpc-runtime-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/promise/service.ts
|
|
28
28
|
import { readFile, rm } from "node:fs/promises";
|
package/dist/pty-handoff.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
complete2,
|
|
5
5
|
clear2,
|
|
6
6
|
exports_pty_handoff
|
|
7
|
-
} from "./chunks/
|
|
8
|
-
import"./chunks/
|
|
9
|
-
import"./chunks/
|
|
10
|
-
import"./chunks/
|
|
7
|
+
} from "./chunks/rpc-runtime-0f1fbpb7.js";
|
|
8
|
+
import"./chunks/rpc-runtime-8ye1ye6f.js";
|
|
9
|
+
import"./chunks/rpc-runtime-xgnj2w4v.js";
|
|
10
|
+
import"./chunks/rpc-runtime-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/rpc-runtime-8ye1ye6f.js";
|
|
8
|
+
import"./chunks/rpc-runtime-xgnj2w4v.js";
|
|
9
|
+
import"./chunks/rpc-runtime-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/rpc-runtime-qav6mfdz.js";
|
package/dist/shared-events.js
CHANGED
package/dist/solid/connection.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
defaultIdleTimeout2,
|
|
3
3
|
foregroundIdleThreshold2,
|
|
4
4
|
createClientConnection2
|
|
5
|
-
} from "../chunks/
|
|
5
|
+
} from "../chunks/rpc-runtime-ydhz1zrh.js";
|
|
6
6
|
export {
|
|
7
7
|
createClientConnection2 as createClientConnection,
|
|
8
8
|
defaultIdleTimeout2 as defaultIdleTimeout,
|
package/dist/solid/data.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentInfo, CommandInfo, ConfigEntry, SessionFormCancelInput, FormInfo, SessionFormReplyInput, IntegrationInfo, LocationRef, McpResource, McpServer, ModelInfo, ModelRef, PermissionSavedInfo, PermissionRequest, PermissionReplyInput, Project, ProviderInfo, ReferenceInfo, SessionMessageInfo, SessionInfo, SessionInboxInfo, SessionInboxCompaction, ShellInfo, SkillInfo, VcsInfo, OpenCodeEvent, OpenCodeClient, WebSearchProvider } from "../promise";
|
|
1
|
+
import type { AgentInfo, CommandInfo, ConfigEntry, SessionFormCancelInput, FormInfo, SessionFormReplyInput, IntegrationInfo, LocationRef, McpResource, McpServer, ModelInfo, ModelRef, PermissionSavedInfo, PermissionRequest, PermissionReplyInput, Project, ProviderInfo, ReferenceInfo, SessionMessageInfo, SessionInfo, SessionInboxInfo, SessionInboxCompaction, ShellInfo, SkillInfo, UsageLimitsInfo, VcsInfo, OpenCodeEvent, OpenCodeClient, WebSearchProvider } from "../promise";
|
|
2
2
|
import { type SessionPromptInput } from "../promise";
|
|
3
3
|
export type DataSessionStatus = "idle" | "running";
|
|
4
4
|
/**
|
|
@@ -151,6 +151,11 @@ export declare function createData(config: CreateDataInput): {
|
|
|
151
151
|
sync: (ref?: LocationRef) => Promise<void>;
|
|
152
152
|
invalidate: (ref?: LocationRef) => void;
|
|
153
153
|
};
|
|
154
|
+
usage: {
|
|
155
|
+
limits: (ref?: LocationRef) => UsageLimitsInfo | null | undefined;
|
|
156
|
+
sync: (ref?: LocationRef) => Promise<void>;
|
|
157
|
+
invalidate: (ref?: LocationRef) => void;
|
|
158
|
+
};
|
|
154
159
|
agent: {
|
|
155
160
|
list: (ref?: LocationRef) => AgentInfo[] | undefined;
|
|
156
161
|
sync: (ref?: LocationRef) => Promise<void>;
|
package/dist/solid/data.js
CHANGED
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
settleMs2,
|
|
3
3
|
locationKey2,
|
|
4
4
|
createData2
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
11
|
-
import"../chunks/
|
|
12
|
-
import"../chunks/
|
|
13
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/rpc-runtime-yv0d8k9r.js";
|
|
6
|
+
import"../chunks/rpc-runtime-m2eywc8w.js";
|
|
7
|
+
import"../chunks/rpc-runtime-sz1wg37z.js";
|
|
8
|
+
import"../chunks/rpc-runtime-skhp7hxc.js";
|
|
9
|
+
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
10
|
+
import"../chunks/rpc-runtime-t0xxv8t7.js";
|
|
11
|
+
import"../chunks/rpc-runtime-js54wxgp.js";
|
|
12
|
+
import"../chunks/rpc-runtime-c46qzyff.js";
|
|
13
|
+
import"../chunks/rpc-runtime-8bbb028w.js";
|
|
14
14
|
export {
|
|
15
15
|
createData2 as createData,
|
|
16
16
|
locationKey2 as locationKey,
|
package/dist/solid/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import"../chunks/
|
|
2
|
-
import"../chunks/
|
|
3
|
-
import"../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/rpc-runtime-js54wxgp.js";
|
|
2
|
+
import"../chunks/rpc-runtime-t0xxv8t7.js";
|
|
3
|
+
import"../chunks/rpc-runtime-c46qzyff.js";
|
|
4
|
+
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
5
|
+
import"../chunks/rpc-runtime-8bbb028w.js";
|
|
6
|
+
import"../chunks/rpc-runtime-skhp7hxc.js";
|
|
7
|
+
import"../chunks/rpc-runtime-sz1wg37z.js";
|
|
8
|
+
import"../chunks/rpc-runtime-m2eywc8w.js";
|
|
9
9
|
import {
|
|
10
10
|
settleMs2,
|
|
11
11
|
locationKey2,
|
|
12
12
|
createData2
|
|
13
|
-
} from "../chunks/
|
|
13
|
+
} from "../chunks/rpc-runtime-yv0d8k9r.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultIdleTimeout2,
|
|
16
16
|
foregroundIdleThreshold2,
|
|
17
17
|
createClientConnection2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/rpc-runtime-ydhz1zrh.js";
|
|
19
19
|
import {
|
|
20
20
|
createPtyClient2,
|
|
21
21
|
createPersistentPtyClient2
|
|
22
|
-
} from "../chunks/
|
|
22
|
+
} from "../chunks/rpc-runtime-gne7h7mq.js";
|
|
23
23
|
import {
|
|
24
24
|
createSessionRetention2
|
|
25
|
-
} from "../chunks/
|
|
25
|
+
} from "../chunks/rpc-runtime-6mq2wh8y.js";
|
|
26
26
|
import {
|
|
27
27
|
lastAssistantWithUsage2
|
|
28
|
-
} from "../chunks/
|
|
28
|
+
} from "../chunks/rpc-runtime-8s2anffy.js";
|
|
29
29
|
export {
|
|
30
30
|
createClientConnection2 as createClientConnection,
|
|
31
31
|
createData2 as createData,
|
package/dist/solid/pty.js
CHANGED
package/dist/solid/retention.js
CHANGED