@opencode/client 2.2.4 → 2.2.6
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-9j12j8xw.js → contract-15p82y03.js} +5 -5
- package/dist/chunks/{service-qbhap0da.js → contract-1r8wv9wh.js} +2 -2
- package/dist/chunks/{service-c5ps3bxz.js → contract-503zgqsd.js} +9 -9
- package/dist/chunks/{service-8ye1ye6f.js → contract-8ye1ye6f.js} +2 -2
- package/dist/chunks/{service-gecjxyvt.js → contract-gecjxyvt.js} +1 -1
- package/dist/chunks/{service-ryy6kscr.js → contract-ryy6kscr.js} +1 -1
- package/dist/chunks/{service-b6gvhk3y.js → contract-vxrn9xjg.js} +17 -2
- package/dist/chunks/{service-vzds1rj7.js → contract-xby11z3y.js} +4 -4
- package/dist/chunks/{service-xqwq6bgr.js → contract-xqwq6bgr.js} +1 -1
- package/dist/chunks/{service-ykkgdxgz.js → contract-yk5evh6f.js} +16 -7
- package/dist/chunks/{service-sbaynanj.js → contract-yn39sb5p.js} +6 -1
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +12 -0
- package/dist/effect/client.d.ts +5 -2
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +6 -3
- package/dist/effect/generated/client.js +5 -5
- package/dist/effect/generated/index.js +4 -4
- package/dist/effect/index.js +8 -8
- 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 +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.d.ts +4 -1
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +8 -8
- package/dist/promise/generated/types.d.ts +66 -6
- package/dist/promise/generated/types.js +1 -1
- package/dist/promise/index.js +11 -11
- 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 +7 -7
- /package/dist/chunks/{service-3eaz3m83.js → contract-3eaz3m83.js} +0 -0
- /package/dist/chunks/{service-60xe5cbf.js → contract-60xe5cbf.js} +0 -0
- /package/dist/chunks/{service-6mptkzbc.js → contract-6mptkzbc.js} +0 -0
- /package/dist/chunks/{service-6mq2wh8y.js → contract-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{service-6r38tsk5.js → contract-6r38tsk5.js} +0 -0
- /package/dist/chunks/{service-8s2anffy.js → contract-8s2anffy.js} +0 -0
- /package/dist/chunks/{service-9rqn6x4v.js → contract-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-mwrzahmf.js → contract-mwrzahmf.js} +0 -0
- /package/dist/chunks/{service-nwcpakzx.js → contract-nwcpakzx.js} +0 -0
- /package/dist/chunks/{service-qav6mfdz.js → contract-qav6mfdz.js} +0 -0
- /package/dist/chunks/{service-sdjh9vmn.js → contract-sdjh9vmn.js} +0 -0
- /package/dist/chunks/{service-sxt88q69.js → contract-sxt88q69.js} +0 -0
- /package/dist/chunks/{service-ve4aws36.js → contract-ve4aws36.js} +0 -0
- /package/dist/chunks/{service-vyas3vgt.js → contract-vyas3vgt.js} +0 -0
- /package/dist/chunks/{service-xgnj2w4v.js → contract-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{service-y2etg5bs.js → contract-y2etg5bs.js} +0 -0
- /package/dist/chunks/{service-ydhz1zrh.js → contract-ydhz1zrh.js} +0 -0
|
@@ -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,10 +1,4 @@
|
|
|
1
|
-
import"../../chunks/
|
|
2
|
-
import {
|
|
3
|
-
exports_client4
|
|
4
|
-
} from "../../chunks/service-b6gvhk3y.js";
|
|
5
|
-
import {
|
|
6
|
-
ClientError3
|
|
7
|
-
} from "../../chunks/service-nwcpakzx.js";
|
|
1
|
+
import"../../chunks/contract-vyas3vgt.js";
|
|
8
2
|
import {
|
|
9
3
|
isInvalidRequestError2,
|
|
10
4
|
isUnauthorizedError2,
|
|
@@ -47,7 +41,13 @@ import {
|
|
|
47
41
|
isShellNotFoundError2,
|
|
48
42
|
isWorktreeError2,
|
|
49
43
|
isVcsInitNotSupportedError2
|
|
50
|
-
} from "../../chunks/
|
|
44
|
+
} from "../../chunks/contract-sdjh9vmn.js";
|
|
45
|
+
import {
|
|
46
|
+
exports_client4
|
|
47
|
+
} from "../../chunks/contract-vxrn9xjg.js";
|
|
48
|
+
import {
|
|
49
|
+
ClientError3
|
|
50
|
+
} from "../../chunks/contract-nwcpakzx.js";
|
|
51
51
|
export {
|
|
52
52
|
ClientError3 as ClientError,
|
|
53
53
|
exports_client4 as OpenCode,
|
|
@@ -30,6 +30,10 @@ export type ProviderCompaction = {
|
|
|
30
30
|
type: "native";
|
|
31
31
|
};
|
|
32
32
|
export type ProviderCacheTTL = `${number}${"ms" | "s" | "m" | "h" | "d"}`;
|
|
33
|
+
export type ProviderCacheWarming = boolean | {
|
|
34
|
+
interval?: "auto" | (string & {});
|
|
35
|
+
duration?: string;
|
|
36
|
+
};
|
|
33
37
|
export type ProviderTransport = "http" | "websocket";
|
|
34
38
|
export type ProviderEncoding = "zstd" | "gzip" | "none";
|
|
35
39
|
export type AgentColor = string;
|
|
@@ -501,6 +505,11 @@ export type ArtifactTime = {
|
|
|
501
505
|
created: number;
|
|
502
506
|
updated: number;
|
|
503
507
|
};
|
|
508
|
+
export type JobStatus = "running" | "completed" | "error" | "cancelled";
|
|
509
|
+
export type JobTime = {
|
|
510
|
+
started: number;
|
|
511
|
+
completed?: number;
|
|
512
|
+
};
|
|
504
513
|
export type ReferenceGitSource = {
|
|
505
514
|
type: "git";
|
|
506
515
|
repository: string;
|
|
@@ -537,6 +546,7 @@ export type UsageLimitsMeter = {
|
|
|
537
546
|
resetsAt: number;
|
|
538
547
|
};
|
|
539
548
|
export type McpProtocol = "legacy" | "auto" | "2026-07-28";
|
|
549
|
+
export type ConfigCompactionPercent = string;
|
|
540
550
|
export type ConfigWorktree = {
|
|
541
551
|
directory: string;
|
|
542
552
|
};
|
|
@@ -588,6 +598,7 @@ export type ModelRef = {
|
|
|
588
598
|
};
|
|
589
599
|
export type ProviderCache = {
|
|
590
600
|
ttl?: ProviderCacheTTL;
|
|
601
|
+
warming?: ProviderCacheWarming;
|
|
591
602
|
};
|
|
592
603
|
export type ModelVariantSettings = {
|
|
593
604
|
compaction?: ProviderCompaction;
|
|
@@ -1057,6 +1068,7 @@ export type IntegrationAttempt = {
|
|
|
1057
1068
|
url: string;
|
|
1058
1069
|
instructions: string;
|
|
1059
1070
|
mode: "auto" | "code";
|
|
1071
|
+
paste?: true;
|
|
1060
1072
|
time: {
|
|
1061
1073
|
created: number;
|
|
1062
1074
|
expires: number;
|
|
@@ -1252,6 +1264,37 @@ export type ArtifactInfo = {
|
|
|
1252
1264
|
url: string;
|
|
1253
1265
|
time: ArtifactTime;
|
|
1254
1266
|
};
|
|
1267
|
+
export type JobShell = {
|
|
1268
|
+
kind: "shell";
|
|
1269
|
+
id: string;
|
|
1270
|
+
sessionID: SessionID;
|
|
1271
|
+
status: JobStatus;
|
|
1272
|
+
title?: string;
|
|
1273
|
+
time: JobTime;
|
|
1274
|
+
shellID: string;
|
|
1275
|
+
command: string;
|
|
1276
|
+
};
|
|
1277
|
+
export type JobSubagent = {
|
|
1278
|
+
kind: "subagent";
|
|
1279
|
+
id: string;
|
|
1280
|
+
sessionID: SessionID;
|
|
1281
|
+
status: JobStatus;
|
|
1282
|
+
title?: string;
|
|
1283
|
+
time: JobTime;
|
|
1284
|
+
childSessionID: SessionID;
|
|
1285
|
+
agent: string;
|
|
1286
|
+
description: string;
|
|
1287
|
+
};
|
|
1288
|
+
export type JobImage = {
|
|
1289
|
+
kind: "image";
|
|
1290
|
+
id: string;
|
|
1291
|
+
sessionID: SessionID;
|
|
1292
|
+
status: JobStatus;
|
|
1293
|
+
title?: string;
|
|
1294
|
+
time: JobTime;
|
|
1295
|
+
path: string;
|
|
1296
|
+
model: string;
|
|
1297
|
+
};
|
|
1255
1298
|
export type VcsInfo = {
|
|
1256
1299
|
provider?: string;
|
|
1257
1300
|
branch: VcsBranch;
|
|
@@ -3031,6 +3074,7 @@ export type ArtifactContent = {
|
|
|
3031
3074
|
[x: string]: string;
|
|
3032
3075
|
};
|
|
3033
3076
|
};
|
|
3077
|
+
export type JobInfo = JobShell | JobSubagent | JobImage;
|
|
3034
3078
|
export type SessionInboxMove = {
|
|
3035
3079
|
id: SessionMessageID;
|
|
3036
3080
|
sessionID: SessionID;
|
|
@@ -3217,7 +3261,7 @@ export type ConfigEntry = {
|
|
|
3217
3261
|
timezone?: string;
|
|
3218
3262
|
permissions?: PermissionRuleset;
|
|
3219
3263
|
policies?: Array<{
|
|
3220
|
-
action: "provider.use" | "tool.use" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use";
|
|
3264
|
+
action: "provider.use" | "tool.use" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use" | "websearch.use";
|
|
3221
3265
|
resource: string;
|
|
3222
3266
|
effect: "allow" | "deny";
|
|
3223
3267
|
}>;
|
|
@@ -3309,6 +3353,7 @@ export type ConfigEntry = {
|
|
|
3309
3353
|
execution?: number;
|
|
3310
3354
|
};
|
|
3311
3355
|
protocol?: McpProtocol;
|
|
3356
|
+
pool?: boolean;
|
|
3312
3357
|
} | {
|
|
3313
3358
|
type: "remote";
|
|
3314
3359
|
url: string;
|
|
@@ -3331,6 +3376,7 @@ export type ConfigEntry = {
|
|
|
3331
3376
|
execution?: number;
|
|
3332
3377
|
};
|
|
3333
3378
|
protocol?: McpProtocol;
|
|
3379
|
+
pool?: boolean;
|
|
3334
3380
|
};
|
|
3335
3381
|
};
|
|
3336
3382
|
};
|
|
@@ -3339,7 +3385,7 @@ export type ConfigEntry = {
|
|
|
3339
3385
|
keep?: {
|
|
3340
3386
|
tokens?: number;
|
|
3341
3387
|
};
|
|
3342
|
-
buffer?: number;
|
|
3388
|
+
buffer?: ConfigCompactionPercent | number;
|
|
3343
3389
|
};
|
|
3344
3390
|
skills?: Array<string>;
|
|
3345
3391
|
commands?: {
|
|
@@ -3381,7 +3427,7 @@ export type ConfigEntry = {
|
|
|
3381
3427
|
worktree?: ConfigWorktree;
|
|
3382
3428
|
warming?: boolean | {
|
|
3383
3429
|
prompt?: string;
|
|
3384
|
-
interval?: string;
|
|
3430
|
+
interval?: "auto" | (string & {});
|
|
3385
3431
|
duration?: string;
|
|
3386
3432
|
};
|
|
3387
3433
|
providers?: {
|
|
@@ -3460,9 +3506,14 @@ export type ConfigEntry = {
|
|
|
3460
3506
|
};
|
|
3461
3507
|
experimental?: {
|
|
3462
3508
|
portable_shell_scanner?: boolean;
|
|
3509
|
+
all_flags?: boolean;
|
|
3463
3510
|
todo?: boolean;
|
|
3464
3511
|
background_compaction?: boolean;
|
|
3465
3512
|
media_blob?: boolean;
|
|
3513
|
+
schedules?: boolean;
|
|
3514
|
+
artifacts?: boolean;
|
|
3515
|
+
part_rows?: boolean;
|
|
3516
|
+
codemode_vm?: boolean;
|
|
3466
3517
|
image_generate?: boolean | {
|
|
3467
3518
|
model?: string | {
|
|
3468
3519
|
providerID: string;
|
|
@@ -3470,12 +3521,10 @@ export type ConfigEntry = {
|
|
|
3470
3521
|
variant?: string;
|
|
3471
3522
|
};
|
|
3472
3523
|
};
|
|
3473
|
-
schedules?: boolean;
|
|
3474
|
-
artifacts?: boolean;
|
|
3475
3524
|
subagent_depth?: number;
|
|
3476
3525
|
location_idle_timeout?: string | false;
|
|
3477
3526
|
policies?: Array<{
|
|
3478
|
-
action: "provider.use" | "tool.use" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use";
|
|
3527
|
+
action: "provider.use" | "tool.use" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use" | "websearch.use";
|
|
3479
3528
|
resource: string;
|
|
3480
3529
|
effect: "allow" | "deny";
|
|
3481
3530
|
}>;
|
|
@@ -5013,6 +5062,7 @@ export type ExperimentalMcpAddInput = {
|
|
|
5013
5062
|
readonly execution?: number;
|
|
5014
5063
|
};
|
|
5015
5064
|
readonly protocol?: "legacy" | "auto" | "2026-07-28";
|
|
5065
|
+
readonly pool?: boolean;
|
|
5016
5066
|
} | {
|
|
5017
5067
|
readonly type: "remote";
|
|
5018
5068
|
readonly url: string;
|
|
@@ -5035,6 +5085,7 @@ export type ExperimentalMcpAddInput = {
|
|
|
5035
5085
|
readonly execution?: number;
|
|
5036
5086
|
};
|
|
5037
5087
|
readonly protocol?: "legacy" | "auto" | "2026-07-28";
|
|
5088
|
+
readonly pool?: boolean;
|
|
5038
5089
|
};
|
|
5039
5090
|
};
|
|
5040
5091
|
export type ExperimentalMcpAddOutput = void;
|
|
@@ -5608,6 +5659,15 @@ export type ExperimentalArtifactsViewInput = {
|
|
|
5608
5659
|
readonly path: string;
|
|
5609
5660
|
};
|
|
5610
5661
|
export type ExperimentalArtifactsViewOutput = globalThis.Uint8Array;
|
|
5662
|
+
export type ExperimentalJobListInput = {
|
|
5663
|
+
readonly sessionID?: string | undefined;
|
|
5664
|
+
readonly kind?: ("shell" | "subagent" | "image") | undefined;
|
|
5665
|
+
readonly status?: ("running" | "completed" | "error" | "cancelled") | undefined;
|
|
5666
|
+
readonly descendants?: boolean | undefined;
|
|
5667
|
+
};
|
|
5668
|
+
export type ExperimentalJobListOutput = {
|
|
5669
|
+
data: Array<JobInfo>;
|
|
5670
|
+
}["data"];
|
|
5611
5671
|
export type ShellListInput = {
|
|
5612
5672
|
readonly location?: {
|
|
5613
5673
|
readonly directory?: string | undefined;
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
isShellNotFoundError2,
|
|
41
41
|
isWorktreeError2,
|
|
42
42
|
isVcsInitNotSupportedError2
|
|
43
|
-
} from "../../chunks/
|
|
43
|
+
} from "../../chunks/contract-sdjh9vmn.js";
|
|
44
44
|
export {
|
|
45
45
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
46
46
|
isArtifactNotFoundError2 as isArtifactNotFoundError,
|
package/dist/promise/index.js
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/contract-6r38tsk5.js";
|
|
2
2
|
import {
|
|
3
3
|
mediaHashFromUri2,
|
|
4
4
|
withMediaRefs2
|
|
5
|
-
} from "../chunks/
|
|
5
|
+
} from "../chunks/contract-mwrzahmf.js";
|
|
6
6
|
import {
|
|
7
7
|
exports_client3
|
|
8
|
-
} from "../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
11
|
-
import {
|
|
12
|
-
ClientError3
|
|
13
|
-
} from "../chunks/service-nwcpakzx.js";
|
|
14
|
-
import"../chunks/service-xqwq6bgr.js";
|
|
8
|
+
} from "../chunks/contract-xby11z3y.js";
|
|
9
|
+
import"../chunks/contract-vyas3vgt.js";
|
|
10
|
+
import"../chunks/contract-xqwq6bgr.js";
|
|
15
11
|
import {
|
|
16
12
|
isInvalidRequestError2,
|
|
17
13
|
isUnauthorizedError2,
|
|
@@ -54,8 +50,12 @@ import {
|
|
|
54
50
|
isShellNotFoundError2,
|
|
55
51
|
isWorktreeError2,
|
|
56
52
|
isVcsInitNotSupportedError2
|
|
57
|
-
} from "../chunks/
|
|
58
|
-
import"../chunks/
|
|
53
|
+
} from "../chunks/contract-sdjh9vmn.js";
|
|
54
|
+
import"../chunks/contract-vxrn9xjg.js";
|
|
55
|
+
import {
|
|
56
|
+
ClientError3
|
|
57
|
+
} from "../chunks/contract-nwcpakzx.js";
|
|
58
|
+
import"../chunks/contract-gecjxyvt.js";
|
|
59
59
|
export {
|
|
60
60
|
ClientError3 as ClientError,
|
|
61
61
|
exports_client3 as OpenCode,
|
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/contract-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/
|
|
8
|
+
} from "../chunks/contract-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/contract-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
decide2,
|
|
14
14
|
fallback2,
|
|
15
15
|
same2,
|
|
16
16
|
probeResult2,
|
|
17
17
|
headers2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/contract-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/contract-1r8wv9wh.js";
|
|
25
|
+
import"../chunks/contract-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/promise/service.ts
|
|
28
28
|
import { readFile, rm } from "node:fs/promises";
|
package/dist/pty-handoff.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
complete2,
|
|
5
5
|
clear2,
|
|
6
6
|
exports_pty_handoff
|
|
7
|
-
} from "./chunks/
|
|
8
|
-
import"./chunks/
|
|
9
|
-
import"./chunks/
|
|
10
|
-
import"./chunks/
|
|
7
|
+
} from "./chunks/contract-1r8wv9wh.js";
|
|
8
|
+
import"./chunks/contract-8ye1ye6f.js";
|
|
9
|
+
import"./chunks/contract-xgnj2w4v.js";
|
|
10
|
+
import"./chunks/contract-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/contract-8ye1ye6f.js";
|
|
8
|
+
import"./chunks/contract-xgnj2w4v.js";
|
|
9
|
+
import"./chunks/contract-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/contract-qav6mfdz.js";
|
package/dist/shared-events.js
CHANGED
package/dist/solid/connection.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
defaultIdleTimeout2,
|
|
3
3
|
foregroundIdleThreshold2,
|
|
4
4
|
createClientConnection2
|
|
5
|
-
} from "../chunks/
|
|
5
|
+
} from "../chunks/contract-ydhz1zrh.js";
|
|
6
6
|
export {
|
|
7
7
|
createClientConnection2 as createClientConnection,
|
|
8
8
|
defaultIdleTimeout2 as defaultIdleTimeout,
|
package/dist/solid/data.js
CHANGED
|
@@ -2,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/contract-yn39sb5p.js";
|
|
6
|
+
import"../chunks/contract-6r38tsk5.js";
|
|
7
|
+
import"../chunks/contract-mwrzahmf.js";
|
|
8
|
+
import"../chunks/contract-xby11z3y.js";
|
|
9
|
+
import"../chunks/contract-vyas3vgt.js";
|
|
10
|
+
import"../chunks/contract-xqwq6bgr.js";
|
|
11
|
+
import"../chunks/contract-sdjh9vmn.js";
|
|
12
|
+
import"../chunks/contract-vxrn9xjg.js";
|
|
13
|
+
import"../chunks/contract-nwcpakzx.js";
|
|
14
|
+
import"../chunks/contract-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/contract-nwcpakzx.js";
|
|
2
|
+
import"../chunks/contract-vxrn9xjg.js";
|
|
3
|
+
import"../chunks/contract-sdjh9vmn.js";
|
|
4
|
+
import"../chunks/contract-vyas3vgt.js";
|
|
5
|
+
import"../chunks/contract-gecjxyvt.js";
|
|
6
|
+
import"../chunks/contract-xqwq6bgr.js";
|
|
7
|
+
import"../chunks/contract-xby11z3y.js";
|
|
8
|
+
import"../chunks/contract-mwrzahmf.js";
|
|
9
|
+
import"../chunks/contract-6r38tsk5.js";
|
|
10
10
|
import {
|
|
11
11
|
settleMs2,
|
|
12
12
|
locationKey2,
|
|
13
13
|
createData2
|
|
14
|
-
} from "../chunks/
|
|
14
|
+
} from "../chunks/contract-yn39sb5p.js";
|
|
15
15
|
import {
|
|
16
16
|
defaultIdleTimeout2,
|
|
17
17
|
foregroundIdleThreshold2,
|
|
18
18
|
createClientConnection2
|
|
19
|
-
} from "../chunks/
|
|
19
|
+
} from "../chunks/contract-ydhz1zrh.js";
|
|
20
20
|
import {
|
|
21
21
|
PersistentPtyMessage2,
|
|
22
22
|
decodePersistentPtyMessage2,
|
|
23
23
|
persistentPtyFrame2,
|
|
24
24
|
createPersistentPtyClient2
|
|
25
|
-
} from "../chunks/
|
|
25
|
+
} from "../chunks/contract-3eaz3m83.js";
|
|
26
26
|
import {
|
|
27
27
|
createSessionRetention2
|
|
28
|
-
} from "../chunks/
|
|
28
|
+
} from "../chunks/contract-6mq2wh8y.js";
|
|
29
29
|
import {
|
|
30
30
|
lastAssistantWithUsage2
|
|
31
|
-
} from "../chunks/
|
|
31
|
+
} from "../chunks/contract-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/contract-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": "2.2.
|
|
4
|
+
"version": "2.2.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
"typecheck:tsc": "tsc --noEmit"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@opencode/schema": "2.2.
|
|
67
|
-
"@opencode/protocol": "2.2.
|
|
66
|
+
"@opencode/schema": "2.2.6",
|
|
67
|
+
"@opencode/protocol": "2.2.6"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"effect": "4.0
|
|
70
|
+
"effect": "4.1.0",
|
|
71
71
|
"solid-js": ">=1.9.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependenciesMeta": {
|
|
@@ -79,13 +79,13 @@
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@effect/platform-node": "4.0
|
|
82
|
+
"@effect/platform-node": "4.1.0",
|
|
83
83
|
"@modelcontextprotocol/client": "2.3.1",
|
|
84
|
-
"@opencode/httpapi-codegen": "2.2.
|
|
84
|
+
"@opencode/httpapi-codegen": "2.2.6",
|
|
85
85
|
"@tsconfig/bun": "1.0.9",
|
|
86
86
|
"@types/bun": "1.4.3",
|
|
87
87
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
88
|
-
"effect": "4.0
|
|
88
|
+
"effect": "4.1.0",
|
|
89
89
|
"solid-js": "1.9.17"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|