shuvcode 2.2.1-shuv.1 → 2.2.5-shuv.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/client/client.d.ts +10 -1
- package/client/generated/client.d.ts +10 -1
- package/client/generated/client.js +76 -2
- package/client/generated/types.d.ts +210 -12
- package/client/generated/types.js +2 -0
- package/client/index.d.ts +1 -0
- package/client/index.js +4 -4
- package/client/media.d.ts +365 -0
- package/client/media.js +43 -0
- package/package.json +13 -13
|
@@ -478,12 +478,29 @@ export type ScheduleWhenCron = {
|
|
|
478
478
|
cron: string;
|
|
479
479
|
tz?: string;
|
|
480
480
|
};
|
|
481
|
+
export type ScheduleConditionShell = {
|
|
482
|
+
type: "shell";
|
|
483
|
+
run: string;
|
|
484
|
+
is?: string;
|
|
485
|
+
matches?: string;
|
|
486
|
+
changes?: boolean;
|
|
487
|
+
};
|
|
488
|
+
export type ScheduleConditionCode = {
|
|
489
|
+
type: "code";
|
|
490
|
+
code: string;
|
|
491
|
+
};
|
|
481
492
|
export type ScheduleActionPrompt = {
|
|
482
493
|
type: "prompt";
|
|
483
494
|
prompt: string;
|
|
484
495
|
};
|
|
485
496
|
export type ScheduleStatus = "active" | "paused" | "done";
|
|
486
|
-
export type ScheduleOutcome = "fired" | "late" | "skipped" | "disabled" | "failed";
|
|
497
|
+
export type ScheduleOutcome = "fired" | "late" | "checked" | "expired" | "skipped" | "disabled" | "failed";
|
|
498
|
+
export type ArtifactCapability = "static" | "server-code" | "sqlite" | "durable-objects";
|
|
499
|
+
export type ArtifactID = string;
|
|
500
|
+
export type ArtifactTime = {
|
|
501
|
+
created: number;
|
|
502
|
+
updated: number;
|
|
503
|
+
};
|
|
487
504
|
export type ReferenceGitSource = {
|
|
488
505
|
type: "git";
|
|
489
506
|
repository: string;
|
|
@@ -520,6 +537,7 @@ export type UsageLimitsMeter = {
|
|
|
520
537
|
resetsAt: number;
|
|
521
538
|
};
|
|
522
539
|
export type McpProtocol = "legacy" | "auto" | "2026-07-28";
|
|
540
|
+
export type ConfigCompactionPercent = string;
|
|
523
541
|
export type ConfigWorktree = {
|
|
524
542
|
directory: string;
|
|
525
543
|
};
|
|
@@ -1114,6 +1132,7 @@ export type PersistentPtyInfo = {
|
|
|
1114
1132
|
pid: number;
|
|
1115
1133
|
exitCode?: number;
|
|
1116
1134
|
sessionID: SessionID;
|
|
1135
|
+
userTitle: string | null;
|
|
1117
1136
|
foregroundProcess: string | null;
|
|
1118
1137
|
size: {
|
|
1119
1138
|
cols: number;
|
|
@@ -1217,7 +1236,23 @@ export type ScheduleWhenEvery = {
|
|
|
1217
1236
|
every: ScheduleDuration;
|
|
1218
1237
|
tz?: string;
|
|
1219
1238
|
};
|
|
1239
|
+
export type ScheduleCondition = ScheduleConditionShell | ScheduleConditionCode;
|
|
1220
1240
|
export type ScheduleAction = ScheduleActionPrompt;
|
|
1241
|
+
export type ArtifactProvider = {
|
|
1242
|
+
id: string;
|
|
1243
|
+
name: string;
|
|
1244
|
+
capabilities: Array<ArtifactCapability>;
|
|
1245
|
+
default: boolean;
|
|
1246
|
+
};
|
|
1247
|
+
export type ArtifactInfo = {
|
|
1248
|
+
id: ArtifactID;
|
|
1249
|
+
provider: string;
|
|
1250
|
+
sessionID?: SessionID;
|
|
1251
|
+
title: string;
|
|
1252
|
+
entry: string;
|
|
1253
|
+
url: string;
|
|
1254
|
+
time: ArtifactTime;
|
|
1255
|
+
};
|
|
1221
1256
|
export type VcsInfo = {
|
|
1222
1257
|
provider?: string;
|
|
1223
1258
|
branch: VcsBranch;
|
|
@@ -2723,6 +2758,16 @@ export type WebsearchUpdated = {
|
|
|
2723
2758
|
location?: LocationRef;
|
|
2724
2759
|
data: {};
|
|
2725
2760
|
};
|
|
2761
|
+
export type ArtifactUpdated = {
|
|
2762
|
+
id: EventID;
|
|
2763
|
+
created: number;
|
|
2764
|
+
metadata?: {
|
|
2765
|
+
[x: string]: any;
|
|
2766
|
+
};
|
|
2767
|
+
type: "artifact.updated";
|
|
2768
|
+
location?: LocationRef;
|
|
2769
|
+
data: {};
|
|
2770
|
+
};
|
|
2726
2771
|
export type SessionStatusUpdated = {
|
|
2727
2772
|
id: EventID;
|
|
2728
2773
|
created: number;
|
|
@@ -2982,6 +3027,19 @@ export type PersistentPtyAdded = {
|
|
|
2982
3027
|
terminal: PersistentPtyInfo;
|
|
2983
3028
|
};
|
|
2984
3029
|
};
|
|
3030
|
+
export type PersistentPtyUpdated = {
|
|
3031
|
+
id: EventID;
|
|
3032
|
+
created: number;
|
|
3033
|
+
metadata?: {
|
|
3034
|
+
[x: string]: any;
|
|
3035
|
+
};
|
|
3036
|
+
type: "persistent-pty.updated";
|
|
3037
|
+
location?: LocationRef;
|
|
3038
|
+
data: {
|
|
3039
|
+
sessionID: SessionID;
|
|
3040
|
+
terminal: PersistentPtyInfo;
|
|
3041
|
+
};
|
|
3042
|
+
};
|
|
2985
3043
|
export type PersistentPtySnapshot = {
|
|
2986
3044
|
info: PersistentPtyInfo;
|
|
2987
3045
|
text: string;
|
|
@@ -3007,6 +3065,12 @@ export type FormReplied = {
|
|
|
3007
3065
|
};
|
|
3008
3066
|
};
|
|
3009
3067
|
export type ScheduleWhen = ScheduleWhenIn | ScheduleWhenAt | ScheduleWhenEvery | ScheduleWhenCron;
|
|
3068
|
+
export type ArtifactContent = {
|
|
3069
|
+
info: ArtifactInfo;
|
|
3070
|
+
files: {
|
|
3071
|
+
[x: string]: string;
|
|
3072
|
+
};
|
|
3073
|
+
};
|
|
3010
3074
|
export type SessionInboxMove = {
|
|
3011
3075
|
id: SessionMessageID;
|
|
3012
3076
|
sessionID: SessionID;
|
|
@@ -3114,6 +3178,7 @@ export type SessionInfo = {
|
|
|
3114
3178
|
time: {
|
|
3115
3179
|
created: number;
|
|
3116
3180
|
updated: number;
|
|
3181
|
+
busy?: number;
|
|
3117
3182
|
idle?: number;
|
|
3118
3183
|
viewed?: number;
|
|
3119
3184
|
archived?: number;
|
|
@@ -3192,7 +3257,7 @@ export type ConfigEntry = {
|
|
|
3192
3257
|
timezone?: string;
|
|
3193
3258
|
permissions?: PermissionRuleset;
|
|
3194
3259
|
policies?: Array<{
|
|
3195
|
-
action: "provider.use" | "tool.use" | "integration.use";
|
|
3260
|
+
action: "provider.use" | "tool.use" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use";
|
|
3196
3261
|
resource: string;
|
|
3197
3262
|
effect: "allow" | "deny";
|
|
3198
3263
|
}>;
|
|
@@ -3314,7 +3379,7 @@ export type ConfigEntry = {
|
|
|
3314
3379
|
keep?: {
|
|
3315
3380
|
tokens?: number;
|
|
3316
3381
|
};
|
|
3317
|
-
buffer?: number;
|
|
3382
|
+
buffer?: ConfigCompactionPercent | number;
|
|
3318
3383
|
};
|
|
3319
3384
|
skills?: Array<string>;
|
|
3320
3385
|
commands?: {
|
|
@@ -3446,11 +3511,12 @@ export type ConfigEntry = {
|
|
|
3446
3511
|
};
|
|
3447
3512
|
};
|
|
3448
3513
|
schedules?: boolean;
|
|
3514
|
+
artifacts?: boolean;
|
|
3449
3515
|
subagent_depth?: number;
|
|
3450
3516
|
jev?: boolean;
|
|
3451
3517
|
location_idle_timeout?: string | false;
|
|
3452
3518
|
policies?: Array<{
|
|
3453
|
-
action: "provider.use" | "tool.use" | "integration.use";
|
|
3519
|
+
action: "provider.use" | "tool.use" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use";
|
|
3454
3520
|
resource: string;
|
|
3455
3521
|
effect: "allow" | "deny";
|
|
3456
3522
|
}>;
|
|
@@ -3539,13 +3605,15 @@ export type CredentialEntry = {
|
|
|
3539
3605
|
active: boolean;
|
|
3540
3606
|
value: CredentialValue;
|
|
3541
3607
|
};
|
|
3542
|
-
export type
|
|
3608
|
+
export type FormFields1 = [FormField1, ...Array<FormField1>];
|
|
3543
3609
|
export type ScheduleInfo = {
|
|
3544
3610
|
id: ScheduleID;
|
|
3545
3611
|
sessionID?: SessionID;
|
|
3546
3612
|
name?: string;
|
|
3547
3613
|
when: ScheduleWhen;
|
|
3548
3614
|
tz: string;
|
|
3615
|
+
if?: ScheduleCondition;
|
|
3616
|
+
until?: ScheduleCondition;
|
|
3549
3617
|
action: ScheduleAction;
|
|
3550
3618
|
status: ScheduleStatus;
|
|
3551
3619
|
nextDueAt?: number;
|
|
@@ -3554,6 +3622,7 @@ export type ScheduleInfo = {
|
|
|
3554
3622
|
runCount: number;
|
|
3555
3623
|
lastFiredAt?: number;
|
|
3556
3624
|
lastOutcome?: ScheduleOutcome;
|
|
3625
|
+
lastOutput?: string;
|
|
3557
3626
|
time: {
|
|
3558
3627
|
created: number;
|
|
3559
3628
|
updated: number;
|
|
@@ -3667,7 +3736,7 @@ export type FormInfo1 = {
|
|
|
3667
3736
|
sessionID: string;
|
|
3668
3737
|
title: string;
|
|
3669
3738
|
metadata?: FormMetadata1;
|
|
3670
|
-
fields:
|
|
3739
|
+
fields: FormFields1;
|
|
3671
3740
|
};
|
|
3672
3741
|
export type SessionMessageInfo = SessionMessageAgentSelected | SessionMessageModelSelected | SessionMessageLocationSwitched | SessionMessageUser | SessionMessageSynthetic | SessionMessageSystem | SessionMessageSkill | SessionMessageShell | SessionMessageAssistant | SessionMessageCompaction | SessionMessageIdle;
|
|
3673
3742
|
export type IntegrationMethod = IntegrationOAuthMethod | IntegrationCommandMethod | IntegrationKeyMethod | IntegrationExternalMethod | IntegrationEnvMethod;
|
|
@@ -3723,7 +3792,7 @@ export type IntegrationInfo = {
|
|
|
3723
3792
|
connections: Array<ConnectionInfo>;
|
|
3724
3793
|
};
|
|
3725
3794
|
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 | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolSubagentPrepared | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionUsageRecorded | SessionMessageContentUpdated;
|
|
3726
|
-
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 | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolSubagentPrepared | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PermissionCancelled | PluginUpdated | ProjectUpdated | WorktreeUpdated | WorktreeResolved | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | PersistentPtyAdded | PersistentPtyRemoved | ShellCreated | ShellExited | ShellDeleted | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatusUpdated | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | V2EventRpc | V2EventServerConnected;
|
|
3795
|
+
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 | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolSubagentPrepared | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PermissionCancelled | 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 | V2EventRpc | V2EventServerConnected;
|
|
3727
3796
|
export type SessionLogItem = SessionEventDurable | EventLogSynced;
|
|
3728
3797
|
export type InvalidRequestError = {
|
|
3729
3798
|
readonly _tag: "InvalidRequestError";
|
|
@@ -3947,12 +4016,24 @@ export type PtyNotFoundError = {
|
|
|
3947
4016
|
readonly message: string;
|
|
3948
4017
|
};
|
|
3949
4018
|
export declare const isPtyNotFoundError: (value: unknown) => value is PtyNotFoundError;
|
|
4019
|
+
export type PtyFeatureUnsupportedError = {
|
|
4020
|
+
readonly _tag: "PtyFeatureUnsupportedError";
|
|
4021
|
+
readonly feature: string;
|
|
4022
|
+
readonly message: string;
|
|
4023
|
+
};
|
|
4024
|
+
export declare const isPtyFeatureUnsupportedError: (value: unknown) => value is PtyFeatureUnsupportedError;
|
|
3950
4025
|
export type ScheduleNotFoundError = {
|
|
3951
4026
|
readonly _tag: "ScheduleNotFoundError";
|
|
3952
4027
|
readonly scheduleID: string;
|
|
3953
4028
|
readonly message: string;
|
|
3954
4029
|
};
|
|
3955
4030
|
export declare const isScheduleNotFoundError: (value: unknown) => value is ScheduleNotFoundError;
|
|
4031
|
+
export type ArtifactNotFoundError = {
|
|
4032
|
+
readonly _tag: "ArtifactNotFoundError";
|
|
4033
|
+
readonly artifactID: string;
|
|
4034
|
+
readonly message: string;
|
|
4035
|
+
};
|
|
4036
|
+
export declare const isArtifactNotFoundError: (value: unknown) => value is ArtifactNotFoundError;
|
|
3956
4037
|
export type ShellNotFoundError = {
|
|
3957
4038
|
readonly _tag: "ShellNotFoundError";
|
|
3958
4039
|
readonly id: string;
|
|
@@ -4141,6 +4222,12 @@ export type SessionPromptInput = {
|
|
|
4141
4222
|
readonly text: string;
|
|
4142
4223
|
readonly files?: ReadonlyArray<{
|
|
4143
4224
|
readonly uri: string;
|
|
4225
|
+
readonly source?: {
|
|
4226
|
+
readonly type: "inline";
|
|
4227
|
+
} | {
|
|
4228
|
+
readonly type: "uri";
|
|
4229
|
+
readonly uri: string;
|
|
4230
|
+
};
|
|
4144
4231
|
readonly name?: string;
|
|
4145
4232
|
readonly description?: string;
|
|
4146
4233
|
readonly mention?: {
|
|
@@ -4180,6 +4267,12 @@ export type SessionCommandInput = {
|
|
|
4180
4267
|
readonly text: string;
|
|
4181
4268
|
readonly files?: ReadonlyArray<{
|
|
4182
4269
|
readonly uri: string;
|
|
4270
|
+
readonly source?: {
|
|
4271
|
+
readonly type: "inline";
|
|
4272
|
+
} | {
|
|
4273
|
+
readonly type: "uri";
|
|
4274
|
+
readonly uri: string;
|
|
4275
|
+
};
|
|
4183
4276
|
readonly name?: string;
|
|
4184
4277
|
readonly description?: string;
|
|
4185
4278
|
readonly mention?: {
|
|
@@ -4591,6 +4684,7 @@ export type ExperimentalSessionImportInput = {
|
|
|
4591
4684
|
readonly time: {
|
|
4592
4685
|
readonly created: number;
|
|
4593
4686
|
readonly updated: number;
|
|
4687
|
+
readonly busy?: number;
|
|
4594
4688
|
readonly idle?: number;
|
|
4595
4689
|
readonly viewed?: number;
|
|
4596
4690
|
readonly archived?: number;
|
|
@@ -5242,7 +5336,7 @@ export type RpcCallInput = {
|
|
|
5242
5336
|
};
|
|
5243
5337
|
export type RpcCallOutput = RpcOutput;
|
|
5244
5338
|
export type EventSubscribeInput = {
|
|
5245
|
-
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.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.subagent.prepared" | "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" | "permission.cancelled" | "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" | "shell.created" | "shell.exited" | "shell.deleted" | "form.created" | "form.replied" | "form.cancelled" | "websearch.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" | `${"rpc."}${string}`> | undefined;
|
|
5339
|
+
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.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.subagent.prepared" | "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" | "permission.cancelled" | "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" | `${"rpc."}${string}`> | undefined;
|
|
5246
5340
|
};
|
|
5247
5341
|
export type EventSubscribeOutput = V2Event;
|
|
5248
5342
|
export type PtyListInput = {
|
|
@@ -5356,10 +5450,11 @@ export type ExperimentalPersistentPtyGetOutput = {
|
|
|
5356
5450
|
export type ExperimentalPersistentPtyUpdateInput = {
|
|
5357
5451
|
readonly ptyID: string;
|
|
5358
5452
|
readonly attachmentID?: string | undefined;
|
|
5359
|
-
readonly size
|
|
5453
|
+
readonly size?: {
|
|
5360
5454
|
readonly cols: number;
|
|
5361
5455
|
readonly rows: number;
|
|
5362
|
-
};
|
|
5456
|
+
} | undefined;
|
|
5457
|
+
readonly title?: string | null | undefined;
|
|
5363
5458
|
};
|
|
5364
5459
|
export type ExperimentalPersistentPtyUpdateOutput = {
|
|
5365
5460
|
data: PersistentPtyInfo;
|
|
@@ -5388,7 +5483,7 @@ export type ExperimentalMediaGetOutput = globalThis.Uint8Array;
|
|
|
5388
5483
|
export type ExperimentalScheduleCreateInput = {
|
|
5389
5484
|
readonly sessionID: string;
|
|
5390
5485
|
readonly name?: string | undefined;
|
|
5391
|
-
readonly when
|
|
5486
|
+
readonly when?: ({
|
|
5392
5487
|
readonly in: string;
|
|
5393
5488
|
readonly at?: never;
|
|
5394
5489
|
readonly every?: never;
|
|
@@ -5412,7 +5507,33 @@ export type ExperimentalScheduleCreateInput = {
|
|
|
5412
5507
|
readonly at?: never;
|
|
5413
5508
|
readonly every?: never;
|
|
5414
5509
|
readonly tz?: string;
|
|
5415
|
-
};
|
|
5510
|
+
}) | undefined;
|
|
5511
|
+
readonly if?: ({
|
|
5512
|
+
readonly run: string;
|
|
5513
|
+
readonly is?: string;
|
|
5514
|
+
readonly matches?: string;
|
|
5515
|
+
readonly changes?: boolean;
|
|
5516
|
+
readonly code?: never;
|
|
5517
|
+
} | {
|
|
5518
|
+
readonly code: string;
|
|
5519
|
+
readonly run?: never;
|
|
5520
|
+
readonly is?: never;
|
|
5521
|
+
readonly matches?: never;
|
|
5522
|
+
readonly changes?: never;
|
|
5523
|
+
}) | undefined;
|
|
5524
|
+
readonly until?: ({
|
|
5525
|
+
readonly run: string;
|
|
5526
|
+
readonly is?: string;
|
|
5527
|
+
readonly matches?: string;
|
|
5528
|
+
readonly changes?: boolean;
|
|
5529
|
+
readonly code?: never;
|
|
5530
|
+
} | {
|
|
5531
|
+
readonly code: string;
|
|
5532
|
+
readonly run?: never;
|
|
5533
|
+
readonly is?: never;
|
|
5534
|
+
readonly matches?: never;
|
|
5535
|
+
readonly changes?: never;
|
|
5536
|
+
}) | undefined;
|
|
5416
5537
|
readonly ends?: {
|
|
5417
5538
|
readonly after?: string;
|
|
5418
5539
|
readonly at?: string;
|
|
@@ -5451,6 +5572,83 @@ export type ExperimentalScheduleDeleteInput = {
|
|
|
5451
5572
|
readonly scheduleID: string;
|
|
5452
5573
|
};
|
|
5453
5574
|
export type ExperimentalScheduleDeleteOutput = void;
|
|
5575
|
+
export type ExperimentalArtifactsProvidersInput = {
|
|
5576
|
+
readonly location?: {
|
|
5577
|
+
readonly directory?: string | undefined;
|
|
5578
|
+
} | undefined;
|
|
5579
|
+
};
|
|
5580
|
+
export type ExperimentalArtifactsProvidersOutput = {
|
|
5581
|
+
location: LocationPublicRef;
|
|
5582
|
+
data: Array<ArtifactProvider>;
|
|
5583
|
+
};
|
|
5584
|
+
export type ExperimentalArtifactsListInput = {
|
|
5585
|
+
readonly location?: {
|
|
5586
|
+
readonly directory?: string | undefined;
|
|
5587
|
+
} | undefined;
|
|
5588
|
+
readonly sessionID?: string | undefined;
|
|
5589
|
+
readonly provider?: string | undefined;
|
|
5590
|
+
};
|
|
5591
|
+
export type ExperimentalArtifactsListOutput = {
|
|
5592
|
+
location: LocationPublicRef;
|
|
5593
|
+
data: Array<ArtifactInfo>;
|
|
5594
|
+
};
|
|
5595
|
+
export type ExperimentalArtifactsCreateInput = {
|
|
5596
|
+
readonly location?: {
|
|
5597
|
+
readonly directory?: string | undefined;
|
|
5598
|
+
} | undefined;
|
|
5599
|
+
readonly title: string;
|
|
5600
|
+
readonly files: {
|
|
5601
|
+
readonly [x: string]: string;
|
|
5602
|
+
};
|
|
5603
|
+
readonly entry?: string | undefined;
|
|
5604
|
+
readonly provider?: string | undefined;
|
|
5605
|
+
readonly sessionID?: string | undefined;
|
|
5606
|
+
};
|
|
5607
|
+
export type ExperimentalArtifactsCreateOutput = {
|
|
5608
|
+
location: LocationPublicRef;
|
|
5609
|
+
data: ArtifactInfo;
|
|
5610
|
+
};
|
|
5611
|
+
export type ExperimentalArtifactsGetInput = {
|
|
5612
|
+
readonly artifactID: string;
|
|
5613
|
+
readonly location?: {
|
|
5614
|
+
readonly directory?: string | undefined;
|
|
5615
|
+
} | undefined;
|
|
5616
|
+
};
|
|
5617
|
+
export type ExperimentalArtifactsGetOutput = {
|
|
5618
|
+
location: LocationPublicRef;
|
|
5619
|
+
data: ArtifactContent;
|
|
5620
|
+
};
|
|
5621
|
+
export type ExperimentalArtifactsUpdateInput = {
|
|
5622
|
+
readonly artifactID: string;
|
|
5623
|
+
readonly location?: {
|
|
5624
|
+
readonly directory?: string | undefined;
|
|
5625
|
+
} | undefined;
|
|
5626
|
+
readonly title?: string | undefined;
|
|
5627
|
+
readonly files: {
|
|
5628
|
+
readonly [x: string]: string;
|
|
5629
|
+
};
|
|
5630
|
+
readonly entry?: string | undefined;
|
|
5631
|
+
readonly sessionID?: string | undefined;
|
|
5632
|
+
};
|
|
5633
|
+
export type ExperimentalArtifactsUpdateOutput = {
|
|
5634
|
+
location: LocationPublicRef;
|
|
5635
|
+
data: ArtifactInfo;
|
|
5636
|
+
};
|
|
5637
|
+
export type ExperimentalArtifactsDeleteInput = {
|
|
5638
|
+
readonly artifactID: string;
|
|
5639
|
+
readonly location?: {
|
|
5640
|
+
readonly directory?: string | undefined;
|
|
5641
|
+
} | undefined;
|
|
5642
|
+
};
|
|
5643
|
+
export type ExperimentalArtifactsDeleteOutput = void;
|
|
5644
|
+
export type ExperimentalArtifactsViewInput = {
|
|
5645
|
+
readonly artifactID: string;
|
|
5646
|
+
readonly location?: {
|
|
5647
|
+
readonly directory?: string | undefined;
|
|
5648
|
+
} | undefined;
|
|
5649
|
+
readonly path: string;
|
|
5650
|
+
};
|
|
5651
|
+
export type ExperimentalArtifactsViewOutput = globalThis.Uint8Array;
|
|
5454
5652
|
export type ShellListInput = {
|
|
5455
5653
|
readonly location?: {
|
|
5456
5654
|
readonly directory?: string | undefined;
|
|
@@ -36,7 +36,9 @@ export const isFileNotFoundError = (value) => typeof value === "object" && value
|
|
|
36
36
|
export const isRpcError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "RpcError";
|
|
37
37
|
export const isRpcInternalError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "RpcInternalError";
|
|
38
38
|
export const isPtyNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "PtyNotFoundError";
|
|
39
|
+
export const isPtyFeatureUnsupportedError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "PtyFeatureUnsupportedError";
|
|
39
40
|
export const isScheduleNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "ScheduleNotFoundError";
|
|
41
|
+
export const isArtifactNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "ArtifactNotFoundError";
|
|
40
42
|
export const isShellNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "ShellNotFoundError";
|
|
41
43
|
export const isWorktreeError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "WorktreeError";
|
|
42
44
|
export const isVcsInitNotSupportedError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "VcsInitNotSupportedError";
|
package/client/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { OpenCode } from "./client.js";
|
|
2
2
|
export * from "./generated/index.js";
|
|
3
3
|
export { OpenCode } from "./client.js";
|
|
4
|
+
export { mediaHashFromUri, withMediaRefs, type MediaRequestOptions } from "./media.js";
|
|
4
5
|
export type { AgentApi, CommandApi, ConfigApi, EventApi, IntegrationApi, ModelApi, PluginApi, ProviderApi, ReferenceApi, RpcApi, RpcCallOptions, RpcClient, RpcEventPayload, WebSearchApi, SessionApi, SkillApi, } from "./api.js";
|
|
5
6
|
export type { EventSubscribeOutput as OpenCodeEvent } from "./generated/types.js";
|
|
6
7
|
export type { MediaFileAttachment as PromptMediaFileAttachment, Attachment as PromptAttachment, } from "@opencode/schema/prompt";
|