@opencode/client 2.3.2 → 2.4.1
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-timing-mghtrbnp.js → shared-events-0zwvty4t.js} +9 -9
- package/dist/chunks/{service-timing-d300ns9h.js → shared-events-2bkgs6c9.js} +36 -5
- package/dist/chunks/{service-timing-8ye1ye6f.js → shared-events-2ny4vxct.js} +2 -2
- package/dist/chunks/{service-timing-nr9zca37.js → shared-events-3qzdf0w0.js} +16 -7
- package/dist/chunks/{service-timing-gecjxyvt.js → shared-events-5f99ddep.js} +5 -5
- package/dist/chunks/{service-timing-mqnb71k6.js → shared-events-99sx9v8v.js} +114 -4
- package/dist/chunks/{service-timing-15p82y03.js → shared-events-9j12j8xw.js} +5 -5
- package/dist/chunks/{service-timing-57ewgbn2.js → shared-events-bn6zvdqw.js} +2 -2
- package/dist/chunks/{service-timing-6hqrj29e.js → shared-events-d8dhy2yj.js} +3 -2
- package/dist/chunks/{service-timing-xafd70ys.js → shared-events-p88pr19t.js} +1 -1
- package/dist/chunks/{service-timing-srved1k0.js → shared-events-rfwe0c94.js} +4 -4
- package/dist/chunks/{service-timing-ryy6kscr.js → shared-events-ryy6kscr.js} +1 -1
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +52 -1
- package/dist/effect/client.d.ts +81 -3
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +81 -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 +7 -1
- package/dist/promise/client.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.d.ts +7 -1
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +7 -5
- package/dist/promise/generated/types.d.ts +158 -58
- package/dist/promise/generated/types.js +4 -2
- package/dist/promise/index.js +12 -10
- package/dist/promise/media.d.ts +7 -1
- 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.d.ts +7 -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/{service-timing-3eaz3m83.js → shared-events-3eaz3m83.js} +0 -0
- /package/dist/chunks/{service-timing-60xe5cbf.js → shared-events-60xe5cbf.js} +0 -0
- /package/dist/chunks/{service-timing-6mptkzbc.js → shared-events-6mptkzbc.js} +0 -0
- /package/dist/chunks/{service-timing-6mq2wh8y.js → shared-events-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{service-timing-6r38tsk5.js → shared-events-6r38tsk5.js} +0 -0
- /package/dist/chunks/{service-timing-8s2anffy.js → shared-events-8s2anffy.js} +0 -0
- /package/dist/chunks/{service-timing-9rqn6x4v.js → shared-events-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-timing-mwrzahmf.js → shared-events-mwrzahmf.js} +0 -0
- /package/dist/chunks/{service-timing-nwcpakzx.js → shared-events-nwcpakzx.js} +0 -0
- /package/dist/chunks/{service-timing-qav6mfdz.js → shared-events-qav6mfdz.js} +0 -0
- /package/dist/chunks/{service-timing-sxt88q69.js → shared-events-sxt88q69.js} +0 -0
- /package/dist/chunks/{service-timing-ve4aws36.js → shared-events-ve4aws36.js} +0 -0
- /package/dist/chunks/{service-timing-vyas3vgt.js → shared-events-vyas3vgt.js} +0 -0
- /package/dist/chunks/{service-timing-xgnj2w4v.js → shared-events-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{service-timing-y2etg5bs.js → shared-events-y2etg5bs.js} +0 -0
- /package/dist/chunks/{service-timing-ydhz1zrh.js → shared-events-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, ExperimentalGenerateVideoCreateInput, ExperimentalGenerateVideoGetInput, 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, ExperimentalBlobGetInput, ExperimentalBlobGetOutput, ExperimentalAutomationCreateInput, ExperimentalAutomationListInput, ExperimentalAutomationGetInput, ExperimentalAutomationPauseInput, ExperimentalAutomationResumeInput, ExperimentalAutomationDeleteInput, 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";
|
|
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, ExperimentalGenerateVideoCreateInput, ExperimentalGenerateVideoGetInput, 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, ExperimentalBlobGetInput, ExperimentalBlobGetOutput, ExperimentalAutomationCreateInput, ExperimentalAutomationListInput, ExperimentalAutomationGetInput, ExperimentalAutomationPauseInput, ExperimentalAutomationResumeInput, ExperimentalAutomationDeleteInput, ExperimentalArtifactsProvidersInput, ExperimentalArtifactsProvidersOutput, ExperimentalArtifactsListInput, ExperimentalArtifactsListOutput, ExperimentalArtifactsCreateInput, ExperimentalArtifactsCreateOutput, ExperimentalArtifactsGetInput, ExperimentalArtifactsGetOutput, ExperimentalArtifactsUpdateInput, ExperimentalArtifactsUpdateOutput, ExperimentalArtifactsDeleteInput, ExperimentalArtifactsViewInput, ExperimentalArtifactsViewOutput, ExperimentalJobListInput, ExperimentalJobCancelInput, ExperimentalMachineAddInput, ExperimentalMachineRemoveInput, 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;
|
|
@@ -122,6 +122,12 @@ export declare function make(options: ClientOptions): {
|
|
|
122
122
|
};
|
|
123
123
|
job: {
|
|
124
124
|
list: (input?: ExperimentalJobListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").JobInfo[]>;
|
|
125
|
+
cancel: (input: ExperimentalJobCancelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
126
|
+
};
|
|
127
|
+
machine: {
|
|
128
|
+
list: (requestOptions?: RequestOptions) => Promise<import("./types.js").MachineInfo[]>;
|
|
129
|
+
add: (input: ExperimentalMachineAddInput, requestOptions?: RequestOptions) => Promise<import("./types.js").MachineInvite>;
|
|
130
|
+
remove: (input: ExperimentalMachineRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
125
131
|
};
|
|
126
132
|
migration: {
|
|
127
133
|
v1: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import"../../chunks/
|
|
1
|
+
import"../../chunks/shared-events-vyas3vgt.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client4
|
|
4
|
-
} from "../../chunks/
|
|
4
|
+
} from "../../chunks/shared-events-2bkgs6c9.js";
|
|
5
5
|
import {
|
|
6
6
|
ClientError3
|
|
7
|
-
} from "../../chunks/
|
|
7
|
+
} from "../../chunks/shared-events-nwcpakzx.js";
|
|
8
8
|
import {
|
|
9
9
|
isInvalidRequestError2,
|
|
10
10
|
isUnauthorizedError2,
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
isModelNotFoundError2,
|
|
30
30
|
isUnsupportedModelError2,
|
|
31
31
|
isProviderRequestError2,
|
|
32
|
-
isForbiddenError2,
|
|
33
32
|
isVideoNotFoundError2,
|
|
34
33
|
isIntegrationNotFoundError2,
|
|
35
34
|
isIntegrationAttemptNotFoundError2,
|
|
36
35
|
isIntegrationMethodNotFoundError2,
|
|
37
36
|
isMcpServerNotFoundError2,
|
|
37
|
+
isForbiddenError2,
|
|
38
38
|
isProjectNotFoundError2,
|
|
39
39
|
isPermissionSavedNotFoundError2,
|
|
40
40
|
isPermissionNotFoundError2,
|
|
@@ -46,10 +46,11 @@ import {
|
|
|
46
46
|
isBlobNotFoundError2,
|
|
47
47
|
isAutomationNotFoundError2,
|
|
48
48
|
isArtifactNotFoundError2,
|
|
49
|
+
isMachineNotFoundError2,
|
|
49
50
|
isShellNotFoundError2,
|
|
50
51
|
isWorktreeError2,
|
|
51
52
|
isVcsInitNotSupportedError2
|
|
52
|
-
} from "../../chunks/
|
|
53
|
+
} from "../../chunks/shared-events-d8dhy2yj.js";
|
|
53
54
|
export {
|
|
54
55
|
ClientError3 as ClientError,
|
|
55
56
|
exports_client4 as OpenCode,
|
|
@@ -72,6 +73,7 @@ export {
|
|
|
72
73
|
isInvalidCursorError2 as isInvalidCursorError,
|
|
73
74
|
isInvalidRequestError2 as isInvalidRequestError,
|
|
74
75
|
isLocationNotFoundError2 as isLocationNotFoundError,
|
|
76
|
+
isMachineNotFoundError2 as isMachineNotFoundError,
|
|
75
77
|
isMcpServerNotFoundError2 as isMcpServerNotFoundError,
|
|
76
78
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
77
79
|
isModelNotFoundError2 as isModelNotFoundError,
|
|
@@ -246,6 +246,11 @@ export type ModelMaxTokensField = "max_completion_tokens" | "max_tokens";
|
|
|
246
246
|
export type ModelCacheFormat = "anthropic" | "alibaba";
|
|
247
247
|
export type ModelMediaInput = "assets" | "state" | "root";
|
|
248
248
|
export type ToolFreeformFormat = "text" | "regex" | "lark";
|
|
249
|
+
export type ModelSpeed = {
|
|
250
|
+
base: string;
|
|
251
|
+
id: string;
|
|
252
|
+
faster: boolean;
|
|
253
|
+
};
|
|
249
254
|
export type MoneyUSDPerMillionTokens = number;
|
|
250
255
|
export type GenerateTextResponse = {
|
|
251
256
|
data: {
|
|
@@ -435,6 +440,11 @@ export type RpcOutput = {
|
|
|
435
440
|
};
|
|
436
441
|
export type PermissionReply = "once" | "always" | "reject";
|
|
437
442
|
export type PtyID = string;
|
|
443
|
+
export type JobStatus = "running" | "completed" | "error" | "cancelled";
|
|
444
|
+
export type JobTime = {
|
|
445
|
+
started: number;
|
|
446
|
+
completed?: number;
|
|
447
|
+
};
|
|
438
448
|
export type FormMetadata1 = {
|
|
439
449
|
[x: string]: any;
|
|
440
450
|
};
|
|
@@ -493,6 +503,10 @@ export type AutomationActionCode = {
|
|
|
493
503
|
code: string;
|
|
494
504
|
args?: JsonValue;
|
|
495
505
|
};
|
|
506
|
+
export type AutomationActionShell = {
|
|
507
|
+
type: "shell";
|
|
508
|
+
command: string;
|
|
509
|
+
};
|
|
496
510
|
export type AutomationStatus = "active" | "paused" | "done";
|
|
497
511
|
export type AutomationOutcome = "fired" | "late" | "skipped" | "disabled" | "failed" | "expired";
|
|
498
512
|
export type ArtifactCapability = "static" | "server-code" | "sqlite" | "durable-objects";
|
|
@@ -501,10 +515,21 @@ export type ArtifactTime = {
|
|
|
501
515
|
created: number;
|
|
502
516
|
updated: number;
|
|
503
517
|
};
|
|
504
|
-
export type
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
518
|
+
export type MachineInfo = {
|
|
519
|
+
id: string;
|
|
520
|
+
online: boolean;
|
|
521
|
+
paired: boolean;
|
|
522
|
+
os?: string;
|
|
523
|
+
arch?: string;
|
|
524
|
+
connection?: {
|
|
525
|
+
kind: "websocket" | "iroh";
|
|
526
|
+
path?: "direct" | "relayed";
|
|
527
|
+
rtt?: number;
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
export type MachineReach = {
|
|
531
|
+
type: "url";
|
|
532
|
+
url: string;
|
|
508
533
|
};
|
|
509
534
|
export type ReferenceGitSource = {
|
|
510
535
|
type: "git";
|
|
@@ -1036,7 +1061,6 @@ export type BlobInfo = {
|
|
|
1036
1061
|
id: BlobID;
|
|
1037
1062
|
mime: string;
|
|
1038
1063
|
bytes: number;
|
|
1039
|
-
expiresAt: number;
|
|
1040
1064
|
};
|
|
1041
1065
|
export type GenerateVideoError = {
|
|
1042
1066
|
id: GenerateVideoID;
|
|
@@ -1056,6 +1080,8 @@ export type GenerateChoiceAnswer = {
|
|
|
1056
1080
|
};
|
|
1057
1081
|
export type VoiceModel = {
|
|
1058
1082
|
model: string;
|
|
1083
|
+
name: string;
|
|
1084
|
+
engine: string;
|
|
1059
1085
|
provider: string;
|
|
1060
1086
|
transports: Array<VoiceTransportType>;
|
|
1061
1087
|
available: boolean;
|
|
@@ -1202,6 +1228,54 @@ export type PersistentPtyReadResult = {
|
|
|
1202
1228
|
};
|
|
1203
1229
|
};
|
|
1204
1230
|
};
|
|
1231
|
+
export type JobShell = {
|
|
1232
|
+
kind: "shell";
|
|
1233
|
+
id: string;
|
|
1234
|
+
sessionID: SessionID;
|
|
1235
|
+
status: JobStatus;
|
|
1236
|
+
title?: string;
|
|
1237
|
+
time: JobTime;
|
|
1238
|
+
shellID: string;
|
|
1239
|
+
command: string;
|
|
1240
|
+
};
|
|
1241
|
+
export type JobSubagent = {
|
|
1242
|
+
kind: "subagent";
|
|
1243
|
+
id: string;
|
|
1244
|
+
sessionID: SessionID;
|
|
1245
|
+
status: JobStatus;
|
|
1246
|
+
title?: string;
|
|
1247
|
+
time: JobTime;
|
|
1248
|
+
childSessionID: SessionID;
|
|
1249
|
+
agent: string;
|
|
1250
|
+
description: string;
|
|
1251
|
+
};
|
|
1252
|
+
export type JobImage = {
|
|
1253
|
+
kind: "image";
|
|
1254
|
+
id: string;
|
|
1255
|
+
sessionID: SessionID;
|
|
1256
|
+
status: JobStatus;
|
|
1257
|
+
title?: string;
|
|
1258
|
+
time: JobTime;
|
|
1259
|
+
path: string;
|
|
1260
|
+
model: string;
|
|
1261
|
+
};
|
|
1262
|
+
export type JobVideo = {
|
|
1263
|
+
kind: "video";
|
|
1264
|
+
id: string;
|
|
1265
|
+
sessionID: SessionID;
|
|
1266
|
+
status: JobStatus;
|
|
1267
|
+
title?: string;
|
|
1268
|
+
time: JobTime;
|
|
1269
|
+
path: string;
|
|
1270
|
+
};
|
|
1271
|
+
export type JobCodeMode = {
|
|
1272
|
+
kind: "codemode";
|
|
1273
|
+
id: string;
|
|
1274
|
+
sessionID: SessionID;
|
|
1275
|
+
status: JobStatus;
|
|
1276
|
+
title?: string;
|
|
1277
|
+
time: JobTime;
|
|
1278
|
+
};
|
|
1205
1279
|
export type FormStringField1 = {
|
|
1206
1280
|
key: string;
|
|
1207
1281
|
title?: string;
|
|
@@ -1290,44 +1364,13 @@ export type ArtifactInfo = {
|
|
|
1290
1364
|
url: string;
|
|
1291
1365
|
time: ArtifactTime;
|
|
1292
1366
|
};
|
|
1293
|
-
export type
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
shellID: string;
|
|
1301
|
-
command: string;
|
|
1302
|
-
};
|
|
1303
|
-
export type JobSubagent = {
|
|
1304
|
-
kind: "subagent";
|
|
1305
|
-
id: string;
|
|
1306
|
-
sessionID: SessionID;
|
|
1307
|
-
status: JobStatus;
|
|
1308
|
-
title?: string;
|
|
1309
|
-
time: JobTime;
|
|
1310
|
-
childSessionID: SessionID;
|
|
1311
|
-
agent: string;
|
|
1312
|
-
description: string;
|
|
1313
|
-
};
|
|
1314
|
-
export type JobImage = {
|
|
1315
|
-
kind: "image";
|
|
1316
|
-
id: string;
|
|
1317
|
-
sessionID: SessionID;
|
|
1318
|
-
status: JobStatus;
|
|
1319
|
-
title?: string;
|
|
1320
|
-
time: JobTime;
|
|
1321
|
-
path: string;
|
|
1322
|
-
model: string;
|
|
1323
|
-
};
|
|
1324
|
-
export type JobCodeMode = {
|
|
1325
|
-
kind: "codemode";
|
|
1326
|
-
id: string;
|
|
1327
|
-
sessionID: SessionID;
|
|
1328
|
-
status: JobStatus;
|
|
1329
|
-
title?: string;
|
|
1330
|
-
time: JobTime;
|
|
1367
|
+
export type MachineInvite = {
|
|
1368
|
+
name: string;
|
|
1369
|
+
join: string;
|
|
1370
|
+
expires: number;
|
|
1371
|
+
reach: Array<MachineReach | {
|
|
1372
|
+
type: "iroh";
|
|
1373
|
+
}>;
|
|
1331
1374
|
};
|
|
1332
1375
|
export type VcsInfo = {
|
|
1333
1376
|
provider?: string;
|
|
@@ -3142,6 +3185,7 @@ export type PersistentPtySnapshot = {
|
|
|
3142
3185
|
y: number;
|
|
3143
3186
|
};
|
|
3144
3187
|
};
|
|
3188
|
+
export type JobInfo = JobShell | JobSubagent | JobImage | JobVideo | JobCodeMode;
|
|
3145
3189
|
export type FormField1 = FormStringField1 | FormNumberField1 | FormIntegerField1 | FormBooleanField1 | FormMultiselectField1 | FormExternalField;
|
|
3146
3190
|
export type FormReplied = {
|
|
3147
3191
|
id: EventID;
|
|
@@ -3164,7 +3208,6 @@ export type ArtifactContent = {
|
|
|
3164
3208
|
[x: string]: string;
|
|
3165
3209
|
};
|
|
3166
3210
|
};
|
|
3167
|
-
export type JobInfo = JobShell | JobSubagent | JobImage | JobCodeMode;
|
|
3168
3211
|
export type SessionInboxMove = {
|
|
3169
3212
|
id: SessionMessageID;
|
|
3170
3213
|
sessionID: SessionID;
|
|
@@ -3244,6 +3287,9 @@ export type ModelInfo = {
|
|
|
3244
3287
|
};
|
|
3245
3288
|
capabilities: ModelCapabilities;
|
|
3246
3289
|
variants: Array<ModelVariant>;
|
|
3290
|
+
experimental?: {
|
|
3291
|
+
speed?: ModelSpeed;
|
|
3292
|
+
};
|
|
3247
3293
|
time: {
|
|
3248
3294
|
released: number;
|
|
3249
3295
|
};
|
|
@@ -3349,6 +3395,7 @@ export type ConfigEntry = {
|
|
|
3349
3395
|
};
|
|
3350
3396
|
username?: string;
|
|
3351
3397
|
timezone?: string;
|
|
3398
|
+
automations?: boolean;
|
|
3352
3399
|
permissions?: PermissionRuleset;
|
|
3353
3400
|
policies?: Array<{
|
|
3354
3401
|
action: "provider.use" | "tool.use" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use" | "websearch.use";
|
|
@@ -3601,13 +3648,23 @@ export type ConfigEntry = {
|
|
|
3601
3648
|
all_flags?: boolean;
|
|
3602
3649
|
todo?: boolean;
|
|
3603
3650
|
media_blob?: boolean;
|
|
3604
|
-
automations?: boolean;
|
|
3605
3651
|
artifacts?: boolean;
|
|
3606
|
-
video_generate?: boolean;
|
|
3607
3652
|
console_watches?: boolean;
|
|
3608
|
-
|
|
3653
|
+
recommended_api?: boolean;
|
|
3654
|
+
model_speeds?: boolean;
|
|
3609
3655
|
full_codemode?: boolean;
|
|
3610
|
-
|
|
3656
|
+
machines?: boolean;
|
|
3657
|
+
home_memory?: boolean;
|
|
3658
|
+
project_overlay?: boolean;
|
|
3659
|
+
opencode_api?: boolean;
|
|
3660
|
+
sqlite_fts?: boolean;
|
|
3661
|
+
video_generate?: boolean | {
|
|
3662
|
+
model?: string | {
|
|
3663
|
+
providerID: string;
|
|
3664
|
+
model: string;
|
|
3665
|
+
variant?: string;
|
|
3666
|
+
};
|
|
3667
|
+
};
|
|
3611
3668
|
part_rows?: boolean;
|
|
3612
3669
|
image_generate?: boolean | {
|
|
3613
3670
|
model?: string | {
|
|
@@ -3629,7 +3686,7 @@ export type ConfigEntry = {
|
|
|
3629
3686
|
type: "directory";
|
|
3630
3687
|
path: AbsolutePath;
|
|
3631
3688
|
};
|
|
3632
|
-
export type AutomationAction = AutomationActionPrompt | AutomationActionCode;
|
|
3689
|
+
export type AutomationAction = AutomationActionPrompt | AutomationActionCode | AutomationActionShell;
|
|
3633
3690
|
export type UsageLimitsInfo = {
|
|
3634
3691
|
workspace: {
|
|
3635
3692
|
id: string;
|
|
@@ -3710,6 +3767,18 @@ export type CredentialEntry = {
|
|
|
3710
3767
|
active: boolean;
|
|
3711
3768
|
value: CredentialValue;
|
|
3712
3769
|
};
|
|
3770
|
+
export type ExperimentalJobUpdated = {
|
|
3771
|
+
id: EventID;
|
|
3772
|
+
created: number;
|
|
3773
|
+
metadata?: {
|
|
3774
|
+
[x: string]: any;
|
|
3775
|
+
};
|
|
3776
|
+
type: "experimental.job.updated";
|
|
3777
|
+
location?: LocationRef;
|
|
3778
|
+
data: {
|
|
3779
|
+
info: JobInfo;
|
|
3780
|
+
};
|
|
3781
|
+
};
|
|
3713
3782
|
export type FormFields1 = [FormField1, ...Array<FormField1>];
|
|
3714
3783
|
export type AgentInfo = {
|
|
3715
3784
|
id: AgentID;
|
|
@@ -3901,7 +3970,7 @@ export type IntegrationInfo = {
|
|
|
3901
3970
|
connections: Array<ConnectionInfo>;
|
|
3902
3971
|
};
|
|
3903
3972
|
export type SessionEventDurable = SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionMetadataUpdated | SessionPermissions | SessionViewed | SessionArchived | SessionUnarchived | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepFirstToken | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionUsageRecorded | SessionMessageContentUpdated;
|
|
3904
|
-
export type V2Event = LocationShutdown | ModelsDevRefreshed | CredentialUpdated | CredentialSwitched | IntegrationUpdated | ProviderUpdated | ModelUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionMetadataUpdated | SessionPermissions | SessionViewed | SessionArchived | SessionUnarchived | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepFirstToken | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PluginUpdated | ProjectUpdated | WorktreeUpdated | WorktreeResolved | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | PersistentPtyAdded | PersistentPtyRemoved | PersistentPtyUpdated | ShellCreated | ShellExited | ShellDeleted | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | ArtifactUpdated | SessionStatusUpdated | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | ExperimentalMcpEvent | V2EventRpc | V2EventServerConnected;
|
|
3973
|
+
export type V2Event = LocationShutdown | ModelsDevRefreshed | CredentialUpdated | CredentialSwitched | IntegrationUpdated | ProviderUpdated | ModelUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionMetadataUpdated | SessionPermissions | SessionViewed | SessionArchived | SessionUnarchived | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepFirstToken | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PluginUpdated | ProjectUpdated | WorktreeUpdated | WorktreeResolved | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | PersistentPtyAdded | PersistentPtyRemoved | PersistentPtyUpdated | ShellCreated | ShellExited | ShellDeleted | ExperimentalJobUpdated | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | ArtifactUpdated | SessionStatusUpdated | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | ExperimentalMcpEvent | V2EventRpc | V2EventServerConnected;
|
|
3905
3974
|
export type SessionLogItem = SessionEventDurable | EventLogSynced;
|
|
3906
3975
|
export type InvalidRequestError = {
|
|
3907
3976
|
readonly _tag: "InvalidRequestError";
|
|
@@ -4050,11 +4119,6 @@ export type ProviderRequestError = {
|
|
|
4050
4119
|
readonly retryAfterMs?: number | undefined;
|
|
4051
4120
|
};
|
|
4052
4121
|
export declare const isProviderRequestError: (value: unknown) => value is ProviderRequestError;
|
|
4053
|
-
export type ForbiddenError = {
|
|
4054
|
-
readonly _tag: "ForbiddenError";
|
|
4055
|
-
readonly message: string;
|
|
4056
|
-
};
|
|
4057
|
-
export declare const isForbiddenError: (value: unknown) => value is ForbiddenError;
|
|
4058
4122
|
export type VideoNotFoundError = {
|
|
4059
4123
|
readonly _tag: "VideoNotFoundError";
|
|
4060
4124
|
readonly videoID: string;
|
|
@@ -4087,6 +4151,11 @@ export type McpServerNotFoundError = {
|
|
|
4087
4151
|
readonly message: string;
|
|
4088
4152
|
};
|
|
4089
4153
|
export declare const isMcpServerNotFoundError: (value: unknown) => value is McpServerNotFoundError;
|
|
4154
|
+
export type ForbiddenError = {
|
|
4155
|
+
readonly _tag: "ForbiddenError";
|
|
4156
|
+
readonly message: string;
|
|
4157
|
+
};
|
|
4158
|
+
export declare const isForbiddenError: (value: unknown) => value is ForbiddenError;
|
|
4090
4159
|
export type ProjectNotFoundError = {
|
|
4091
4160
|
readonly _tag: "ProjectNotFoundError";
|
|
4092
4161
|
readonly projectID: string;
|
|
@@ -4155,6 +4224,12 @@ export type ArtifactNotFoundError = {
|
|
|
4155
4224
|
readonly message: string;
|
|
4156
4225
|
};
|
|
4157
4226
|
export declare const isArtifactNotFoundError: (value: unknown) => value is ArtifactNotFoundError;
|
|
4227
|
+
export type MachineNotFoundError = {
|
|
4228
|
+
readonly _tag: "MachineNotFoundError";
|
|
4229
|
+
readonly machine: string;
|
|
4230
|
+
readonly message: string;
|
|
4231
|
+
};
|
|
4232
|
+
export declare const isMachineNotFoundError: (value: unknown) => value is MachineNotFoundError;
|
|
4158
4233
|
export type ShellNotFoundError = {
|
|
4159
4234
|
readonly _tag: "ShellNotFoundError";
|
|
4160
4235
|
readonly id: string;
|
|
@@ -5447,7 +5522,7 @@ export type ExperimentalFileWriteInput = {
|
|
|
5447
5522
|
readonly directory?: string | undefined;
|
|
5448
5523
|
} | undefined;
|
|
5449
5524
|
readonly path: string;
|
|
5450
|
-
readonly payload: globalThis.Uint8Array;
|
|
5525
|
+
readonly payload: globalThis.Uint8Array | globalThis.Blob;
|
|
5451
5526
|
};
|
|
5452
5527
|
export type ExperimentalFileWriteOutput = {
|
|
5453
5528
|
location: LocationPublicRef;
|
|
@@ -5495,7 +5570,7 @@ export type RpcCallInput = {
|
|
|
5495
5570
|
};
|
|
5496
5571
|
export type RpcCallOutput = RpcOutput;
|
|
5497
5572
|
export type EventSubscribeInput = {
|
|
5498
|
-
readonly types?: ReadonlyArray<"location.shutdown" | "models-dev.refreshed" | "credential.updated" | "credential.switched" | "integration.updated" | "provider.updated" | "model.updated" | "agent.updated" | "session.created" | "session.agent.selected" | "session.model.selected" | "session.moved" | "session.renamed" | "session.metadata.updated" | "session.permissions" | "session.viewed" | "session.archived" | "session.unarchived" | "session.usage.updated" | "session.deleted" | "session.forked" | "session.inbox.delivered" | "session.inbox.enqueued" | "session.inbox.cancelled" | "session.inbox.delivery.changed" | "session.execution.started" | "session.execution.succeeded" | "session.execution.failed" | "session.execution.interrupted" | "session.instructions.updated" | "session.synthetic" | "session.skill.activated" | "session.shell.started" | "session.shell.ended" | "session.step.started" | "session.step.first-token" | "session.step.streamed" | "session.step.ended" | "session.step.failed" | "session.text.started" | "session.text.delta" | "session.text.ended" | "session.reasoning.started" | "session.reasoning.delta" | "session.reasoning.ended" | "session.tool.input.started" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.called" | "session.tool.progress" | "session.tool.success" | "session.tool.failed" | "session.retry.scheduled" | "session.compaction.started" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.revert.staged" | "session.revert.cleared" | "session.revert.committed" | "filesystem.changed" | "reference.updated" | "permission.asked" | "permission.replied" | "plugin.updated" | "project.updated" | "worktree.updated" | "worktree.resolved" | "command.updated" | "config.updated" | "skill.updated" | "pty.created" | "pty.updated" | "pty.exited" | "pty.deleted" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "shell.created" | "shell.exited" | "shell.deleted" | "form.created" | "form.replied" | "form.cancelled" | "websearch.updated" | "artifact.updated" | "session.status" | "session.idle" | "tui.prompt.append" | "tui.command.execute" | "tui.toast.show" | "tui.session.select" | "installation.updated" | "installation.update-available" | "vcs.branch.updated" | "mcp.status.changed" | "mcp.resources.changed" | "experimental.mcp.event" | `${"rpc."}${string}`> | undefined;
|
|
5573
|
+
readonly types?: ReadonlyArray<"location.shutdown" | "models-dev.refreshed" | "credential.updated" | "credential.switched" | "integration.updated" | "provider.updated" | "model.updated" | "agent.updated" | "session.created" | "session.agent.selected" | "session.model.selected" | "session.moved" | "session.renamed" | "session.metadata.updated" | "session.permissions" | "session.viewed" | "session.archived" | "session.unarchived" | "session.usage.updated" | "session.deleted" | "session.forked" | "session.inbox.delivered" | "session.inbox.enqueued" | "session.inbox.cancelled" | "session.inbox.delivery.changed" | "session.execution.started" | "session.execution.succeeded" | "session.execution.failed" | "session.execution.interrupted" | "session.instructions.updated" | "session.synthetic" | "session.skill.activated" | "session.shell.started" | "session.shell.ended" | "session.step.started" | "session.step.first-token" | "session.step.streamed" | "session.step.ended" | "session.step.failed" | "session.text.started" | "session.text.delta" | "session.text.ended" | "session.reasoning.started" | "session.reasoning.delta" | "session.reasoning.ended" | "session.tool.input.started" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.called" | "session.tool.progress" | "session.tool.success" | "session.tool.failed" | "session.retry.scheduled" | "session.compaction.started" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.revert.staged" | "session.revert.cleared" | "session.revert.committed" | "filesystem.changed" | "reference.updated" | "permission.asked" | "permission.replied" | "plugin.updated" | "project.updated" | "worktree.updated" | "worktree.resolved" | "command.updated" | "config.updated" | "skill.updated" | "pty.created" | "pty.updated" | "pty.exited" | "pty.deleted" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "shell.created" | "shell.exited" | "shell.deleted" | "experimental.job.updated" | "form.created" | "form.replied" | "form.cancelled" | "websearch.updated" | "artifact.updated" | "session.status" | "session.idle" | "tui.prompt.append" | "tui.command.execute" | "tui.toast.show" | "tui.session.select" | "installation.updated" | "installation.update-available" | "vcs.branch.updated" | "mcp.status.changed" | "mcp.resources.changed" | "experimental.mcp.event" | `${"rpc."}${string}`> | undefined;
|
|
5499
5574
|
};
|
|
5500
5575
|
export type EventSubscribeOutput = V2Event;
|
|
5501
5576
|
export type PtyListInput = {
|
|
@@ -5681,6 +5756,9 @@ export type ExperimentalAutomationCreateInput = {
|
|
|
5681
5756
|
readonly type: "code";
|
|
5682
5757
|
readonly code: string;
|
|
5683
5758
|
readonly args?: JsonValue;
|
|
5759
|
+
} | {
|
|
5760
|
+
readonly type: "shell";
|
|
5761
|
+
readonly command: string;
|
|
5684
5762
|
};
|
|
5685
5763
|
readonly expires?: string | undefined;
|
|
5686
5764
|
};
|
|
@@ -5795,13 +5873,35 @@ export type ExperimentalArtifactsViewInput = {
|
|
|
5795
5873
|
export type ExperimentalArtifactsViewOutput = globalThis.Uint8Array;
|
|
5796
5874
|
export type ExperimentalJobListInput = {
|
|
5797
5875
|
readonly sessionID?: string | undefined;
|
|
5798
|
-
readonly kind?: ("shell" | "subagent" | "image" | "codemode") | undefined;
|
|
5876
|
+
readonly kind?: ("shell" | "subagent" | "image" | "video" | "codemode") | undefined;
|
|
5799
5877
|
readonly status?: ("running" | "completed" | "error" | "cancelled") | undefined;
|
|
5800
5878
|
readonly descendants?: boolean | undefined;
|
|
5801
5879
|
};
|
|
5802
5880
|
export type ExperimentalJobListOutput = {
|
|
5803
5881
|
data: Array<JobInfo>;
|
|
5804
5882
|
}["data"];
|
|
5883
|
+
export type ExperimentalJobCancelInput = {
|
|
5884
|
+
readonly id: string;
|
|
5885
|
+
};
|
|
5886
|
+
export type ExperimentalJobCancelOutput = void;
|
|
5887
|
+
export type ExperimentalMachineListOutput = {
|
|
5888
|
+
data: Array<MachineInfo>;
|
|
5889
|
+
}["data"];
|
|
5890
|
+
export type ExperimentalMachineAddInput = {
|
|
5891
|
+
readonly name: string;
|
|
5892
|
+
readonly reach: ReadonlyArray<{
|
|
5893
|
+
readonly type: "url";
|
|
5894
|
+
readonly url: string;
|
|
5895
|
+
}>;
|
|
5896
|
+
readonly replace?: boolean | undefined;
|
|
5897
|
+
};
|
|
5898
|
+
export type ExperimentalMachineAddOutput = {
|
|
5899
|
+
data: MachineInvite;
|
|
5900
|
+
}["data"];
|
|
5901
|
+
export type ExperimentalMachineRemoveInput = {
|
|
5902
|
+
readonly name: string;
|
|
5903
|
+
};
|
|
5904
|
+
export type ExperimentalMachineRemoveOutput = void;
|
|
5805
5905
|
export type ShellListInput = {
|
|
5806
5906
|
readonly location?: {
|
|
5807
5907
|
readonly directory?: string | undefined;
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
isModelNotFoundError2,
|
|
23
23
|
isUnsupportedModelError2,
|
|
24
24
|
isProviderRequestError2,
|
|
25
|
-
isForbiddenError2,
|
|
26
25
|
isVideoNotFoundError2,
|
|
27
26
|
isIntegrationNotFoundError2,
|
|
28
27
|
isIntegrationAttemptNotFoundError2,
|
|
29
28
|
isIntegrationMethodNotFoundError2,
|
|
30
29
|
isMcpServerNotFoundError2,
|
|
30
|
+
isForbiddenError2,
|
|
31
31
|
isProjectNotFoundError2,
|
|
32
32
|
isPermissionSavedNotFoundError2,
|
|
33
33
|
isPermissionNotFoundError2,
|
|
@@ -39,10 +39,11 @@ import {
|
|
|
39
39
|
isBlobNotFoundError2,
|
|
40
40
|
isAutomationNotFoundError2,
|
|
41
41
|
isArtifactNotFoundError2,
|
|
42
|
+
isMachineNotFoundError2,
|
|
42
43
|
isShellNotFoundError2,
|
|
43
44
|
isWorktreeError2,
|
|
44
45
|
isVcsInitNotSupportedError2
|
|
45
|
-
} from "../../chunks/
|
|
46
|
+
} from "../../chunks/shared-events-d8dhy2yj.js";
|
|
46
47
|
export {
|
|
47
48
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
48
49
|
isArtifactNotFoundError2 as isArtifactNotFoundError,
|
|
@@ -63,6 +64,7 @@ export {
|
|
|
63
64
|
isInvalidCursorError2 as isInvalidCursorError,
|
|
64
65
|
isInvalidRequestError2 as isInvalidRequestError,
|
|
65
66
|
isLocationNotFoundError2 as isLocationNotFoundError,
|
|
67
|
+
isMachineNotFoundError2 as isMachineNotFoundError,
|
|
66
68
|
isMcpServerNotFoundError2 as isMcpServerNotFoundError,
|
|
67
69
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
68
70
|
isModelNotFoundError2 as isModelNotFoundError,
|
package/dist/promise/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/shared-events-6r38tsk5.js";
|
|
2
2
|
import {
|
|
3
3
|
mediaHashFromUri2,
|
|
4
4
|
withMediaRefs2
|
|
5
|
-
} from "../chunks/
|
|
5
|
+
} from "../chunks/shared-events-mwrzahmf.js";
|
|
6
6
|
import {
|
|
7
7
|
exports_client3
|
|
8
|
-
} from "../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
8
|
+
} from "../chunks/shared-events-rfwe0c94.js";
|
|
9
|
+
import"../chunks/shared-events-vyas3vgt.js";
|
|
10
|
+
import"../chunks/shared-events-2bkgs6c9.js";
|
|
11
11
|
import {
|
|
12
12
|
ClientError3
|
|
13
|
-
} from "../chunks/
|
|
14
|
-
import"../chunks/
|
|
13
|
+
} from "../chunks/shared-events-nwcpakzx.js";
|
|
14
|
+
import"../chunks/shared-events-p88pr19t.js";
|
|
15
15
|
import {
|
|
16
16
|
isInvalidRequestError2,
|
|
17
17
|
isUnauthorizedError2,
|
|
@@ -36,12 +36,12 @@ import {
|
|
|
36
36
|
isModelNotFoundError2,
|
|
37
37
|
isUnsupportedModelError2,
|
|
38
38
|
isProviderRequestError2,
|
|
39
|
-
isForbiddenError2,
|
|
40
39
|
isVideoNotFoundError2,
|
|
41
40
|
isIntegrationNotFoundError2,
|
|
42
41
|
isIntegrationAttemptNotFoundError2,
|
|
43
42
|
isIntegrationMethodNotFoundError2,
|
|
44
43
|
isMcpServerNotFoundError2,
|
|
44
|
+
isForbiddenError2,
|
|
45
45
|
isProjectNotFoundError2,
|
|
46
46
|
isPermissionSavedNotFoundError2,
|
|
47
47
|
isPermissionNotFoundError2,
|
|
@@ -53,11 +53,12 @@ import {
|
|
|
53
53
|
isBlobNotFoundError2,
|
|
54
54
|
isAutomationNotFoundError2,
|
|
55
55
|
isArtifactNotFoundError2,
|
|
56
|
+
isMachineNotFoundError2,
|
|
56
57
|
isShellNotFoundError2,
|
|
57
58
|
isWorktreeError2,
|
|
58
59
|
isVcsInitNotSupportedError2
|
|
59
|
-
} from "../chunks/
|
|
60
|
-
import"../chunks/
|
|
60
|
+
} from "../chunks/shared-events-d8dhy2yj.js";
|
|
61
|
+
import"../chunks/shared-events-5f99ddep.js";
|
|
61
62
|
export {
|
|
62
63
|
ClientError3 as ClientError,
|
|
63
64
|
exports_client3 as OpenCode,
|
|
@@ -80,6 +81,7 @@ export {
|
|
|
80
81
|
isInvalidCursorError2 as isInvalidCursorError,
|
|
81
82
|
isInvalidRequestError2 as isInvalidRequestError,
|
|
82
83
|
isLocationNotFoundError2 as isLocationNotFoundError,
|
|
84
|
+
isMachineNotFoundError2 as isMachineNotFoundError,
|
|
83
85
|
isMcpServerNotFoundError2 as isMcpServerNotFoundError,
|
|
84
86
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
85
87
|
isModelNotFoundError2 as isModelNotFoundError,
|