shuvcode 2.2.2-shuv.1 → 2.2.5-shuv.2

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.
@@ -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;
@@ -485,12 +489,27 @@ export type ScheduleConditionShell = {
485
489
  matches?: string;
486
490
  changes?: boolean;
487
491
  };
492
+ export type ScheduleConditionCode = {
493
+ type: "code";
494
+ code: string;
495
+ };
488
496
  export type ScheduleActionPrompt = {
489
497
  type: "prompt";
490
498
  prompt: string;
491
499
  };
492
500
  export type ScheduleStatus = "active" | "paused" | "done";
493
501
  export type ScheduleOutcome = "fired" | "late" | "checked" | "expired" | "skipped" | "disabled" | "failed";
502
+ export type ArtifactCapability = "static" | "server-code" | "sqlite" | "durable-objects";
503
+ export type ArtifactID = string;
504
+ export type ArtifactTime = {
505
+ created: number;
506
+ updated: number;
507
+ };
508
+ export type JobStatus = "running" | "completed" | "error" | "cancelled";
509
+ export type JobTime = {
510
+ started: number;
511
+ completed?: number;
512
+ };
494
513
  export type ReferenceGitSource = {
495
514
  type: "git";
496
515
  repository: string;
@@ -527,6 +546,7 @@ export type UsageLimitsMeter = {
527
546
  resetsAt: number;
528
547
  };
529
548
  export type McpProtocol = "legacy" | "auto" | "2026-07-28";
549
+ export type ConfigCompactionPercent = string;
530
550
  export type ConfigWorktree = {
531
551
  directory: string;
532
552
  };
@@ -578,6 +598,7 @@ export type ModelRef = {
578
598
  };
579
599
  export type ProviderCache = {
580
600
  ttl?: ProviderCacheTTL;
601
+ warming?: ProviderCacheWarming;
581
602
  };
582
603
  export type ModelVariantSettings = {
583
604
  compaction?: ProviderCompaction;
@@ -1047,6 +1068,7 @@ export type IntegrationAttempt = {
1047
1068
  url: string;
1048
1069
  instructions: string;
1049
1070
  mode: "auto" | "code";
1071
+ paste?: true;
1050
1072
  time: {
1051
1073
  created: number;
1052
1074
  expires: number;
@@ -1121,6 +1143,7 @@ export type PersistentPtyInfo = {
1121
1143
  pid: number;
1122
1144
  exitCode?: number;
1123
1145
  sessionID: SessionID;
1146
+ userTitle: string | null;
1124
1147
  foregroundProcess: string | null;
1125
1148
  size: {
1126
1149
  cols: number;
@@ -1224,8 +1247,54 @@ export type ScheduleWhenEvery = {
1224
1247
  every: ScheduleDuration;
1225
1248
  tz?: string;
1226
1249
  };
1227
- export type ScheduleCondition = ScheduleConditionShell;
1250
+ export type ScheduleCondition = ScheduleConditionShell | ScheduleConditionCode;
1228
1251
  export type ScheduleAction = ScheduleActionPrompt;
1252
+ export type ArtifactProvider = {
1253
+ id: string;
1254
+ name: string;
1255
+ capabilities: Array<ArtifactCapability>;
1256
+ default: boolean;
1257
+ };
1258
+ export type ArtifactInfo = {
1259
+ id: ArtifactID;
1260
+ provider: string;
1261
+ sessionID?: SessionID;
1262
+ title: string;
1263
+ entry: string;
1264
+ url: string;
1265
+ time: ArtifactTime;
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
+ };
1229
1298
  export type VcsInfo = {
1230
1299
  provider?: string;
1231
1300
  branch: VcsBranch;
@@ -2731,6 +2800,16 @@ export type WebsearchUpdated = {
2731
2800
  location?: LocationRef;
2732
2801
  data: {};
2733
2802
  };
2803
+ export type ArtifactUpdated = {
2804
+ id: EventID;
2805
+ created: number;
2806
+ metadata?: {
2807
+ [x: string]: any;
2808
+ };
2809
+ type: "artifact.updated";
2810
+ location?: LocationRef;
2811
+ data: {};
2812
+ };
2734
2813
  export type SessionStatusUpdated = {
2735
2814
  id: EventID;
2736
2815
  created: number;
@@ -2990,6 +3069,19 @@ export type PersistentPtyAdded = {
2990
3069
  terminal: PersistentPtyInfo;
2991
3070
  };
2992
3071
  };
3072
+ export type PersistentPtyUpdated = {
3073
+ id: EventID;
3074
+ created: number;
3075
+ metadata?: {
3076
+ [x: string]: any;
3077
+ };
3078
+ type: "persistent-pty.updated";
3079
+ location?: LocationRef;
3080
+ data: {
3081
+ sessionID: SessionID;
3082
+ terminal: PersistentPtyInfo;
3083
+ };
3084
+ };
2993
3085
  export type PersistentPtySnapshot = {
2994
3086
  info: PersistentPtyInfo;
2995
3087
  text: string;
@@ -3015,6 +3107,13 @@ export type FormReplied = {
3015
3107
  };
3016
3108
  };
3017
3109
  export type ScheduleWhen = ScheduleWhenIn | ScheduleWhenAt | ScheduleWhenEvery | ScheduleWhenCron;
3110
+ export type ArtifactContent = {
3111
+ info: ArtifactInfo;
3112
+ files: {
3113
+ [x: string]: string;
3114
+ };
3115
+ };
3116
+ export type JobInfo = JobShell | JobSubagent | JobImage;
3018
3117
  export type SessionInboxMove = {
3019
3118
  id: SessionMessageID;
3020
3119
  sessionID: SessionID;
@@ -3201,7 +3300,7 @@ export type ConfigEntry = {
3201
3300
  timezone?: string;
3202
3301
  permissions?: PermissionRuleset;
3203
3302
  policies?: Array<{
3204
- action: "provider.use" | "tool.use" | "integration.use";
3303
+ action: "provider.use" | "tool.use" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use" | "websearch.use";
3205
3304
  resource: string;
3206
3305
  effect: "allow" | "deny";
3207
3306
  }>;
@@ -3323,7 +3422,7 @@ export type ConfigEntry = {
3323
3422
  keep?: {
3324
3423
  tokens?: number;
3325
3424
  };
3326
- buffer?: number;
3425
+ buffer?: ConfigCompactionPercent | number;
3327
3426
  };
3328
3427
  skills?: Array<string>;
3329
3428
  commands?: {
@@ -3365,7 +3464,7 @@ export type ConfigEntry = {
3365
3464
  worktree?: ConfigWorktree;
3366
3465
  warming?: boolean | {
3367
3466
  prompt?: string;
3368
- interval?: string;
3467
+ interval?: "auto" | (string & {});
3369
3468
  duration?: string;
3370
3469
  };
3371
3470
  providers?: {
@@ -3455,11 +3554,12 @@ export type ConfigEntry = {
3455
3554
  };
3456
3555
  };
3457
3556
  schedules?: boolean;
3557
+ artifacts?: boolean;
3458
3558
  subagent_depth?: number;
3459
3559
  jev?: boolean;
3460
3560
  location_idle_timeout?: string | false;
3461
3561
  policies?: Array<{
3462
- action: "provider.use" | "tool.use" | "integration.use";
3562
+ action: "provider.use" | "tool.use" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use" | "websearch.use";
3463
3563
  resource: string;
3464
3564
  effect: "allow" | "deny";
3465
3565
  }>;
@@ -3735,7 +3835,7 @@ export type IntegrationInfo = {
3735
3835
  connections: Array<ConnectionInfo>;
3736
3836
  };
3737
3837
  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;
3738
- 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;
3838
+ 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;
3739
3839
  export type SessionLogItem = SessionEventDurable | EventLogSynced;
3740
3840
  export type InvalidRequestError = {
3741
3841
  readonly _tag: "InvalidRequestError";
@@ -3959,12 +4059,24 @@ export type PtyNotFoundError = {
3959
4059
  readonly message: string;
3960
4060
  };
3961
4061
  export declare const isPtyNotFoundError: (value: unknown) => value is PtyNotFoundError;
4062
+ export type PtyFeatureUnsupportedError = {
4063
+ readonly _tag: "PtyFeatureUnsupportedError";
4064
+ readonly feature: string;
4065
+ readonly message: string;
4066
+ };
4067
+ export declare const isPtyFeatureUnsupportedError: (value: unknown) => value is PtyFeatureUnsupportedError;
3962
4068
  export type ScheduleNotFoundError = {
3963
4069
  readonly _tag: "ScheduleNotFoundError";
3964
4070
  readonly scheduleID: string;
3965
4071
  readonly message: string;
3966
4072
  };
3967
4073
  export declare const isScheduleNotFoundError: (value: unknown) => value is ScheduleNotFoundError;
4074
+ export type ArtifactNotFoundError = {
4075
+ readonly _tag: "ArtifactNotFoundError";
4076
+ readonly artifactID: string;
4077
+ readonly message: string;
4078
+ };
4079
+ export declare const isArtifactNotFoundError: (value: unknown) => value is ArtifactNotFoundError;
3968
4080
  export type ShellNotFoundError = {
3969
4081
  readonly _tag: "ShellNotFoundError";
3970
4082
  readonly id: string;
@@ -5267,7 +5379,7 @@ export type RpcCallInput = {
5267
5379
  };
5268
5380
  export type RpcCallOutput = RpcOutput;
5269
5381
  export type EventSubscribeInput = {
5270
- 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;
5382
+ 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;
5271
5383
  };
5272
5384
  export type EventSubscribeOutput = V2Event;
5273
5385
  export type PtyListInput = {
@@ -5381,10 +5493,11 @@ export type ExperimentalPersistentPtyGetOutput = {
5381
5493
  export type ExperimentalPersistentPtyUpdateInput = {
5382
5494
  readonly ptyID: string;
5383
5495
  readonly attachmentID?: string | undefined;
5384
- readonly size: {
5496
+ readonly size?: {
5385
5497
  readonly cols: number;
5386
5498
  readonly rows: number;
5387
- };
5499
+ } | undefined;
5500
+ readonly title?: string | null | undefined;
5388
5501
  };
5389
5502
  export type ExperimentalPersistentPtyUpdateOutput = {
5390
5503
  data: PersistentPtyInfo;
@@ -5438,18 +5551,32 @@ export type ExperimentalScheduleCreateInput = {
5438
5551
  readonly every?: never;
5439
5552
  readonly tz?: string;
5440
5553
  }) | undefined;
5441
- readonly if?: {
5554
+ readonly if?: ({
5442
5555
  readonly run: string;
5443
5556
  readonly is?: string;
5444
5557
  readonly matches?: string;
5445
5558
  readonly changes?: boolean;
5446
- } | undefined;
5447
- readonly until?: {
5559
+ readonly code?: never;
5560
+ } | {
5561
+ readonly code: string;
5562
+ readonly run?: never;
5563
+ readonly is?: never;
5564
+ readonly matches?: never;
5565
+ readonly changes?: never;
5566
+ }) | undefined;
5567
+ readonly until?: ({
5448
5568
  readonly run: string;
5449
5569
  readonly is?: string;
5450
5570
  readonly matches?: string;
5451
5571
  readonly changes?: boolean;
5452
- } | undefined;
5572
+ readonly code?: never;
5573
+ } | {
5574
+ readonly code: string;
5575
+ readonly run?: never;
5576
+ readonly is?: never;
5577
+ readonly matches?: never;
5578
+ readonly changes?: never;
5579
+ }) | undefined;
5453
5580
  readonly ends?: {
5454
5581
  readonly after?: string;
5455
5582
  readonly at?: string;
@@ -5488,6 +5615,92 @@ export type ExperimentalScheduleDeleteInput = {
5488
5615
  readonly scheduleID: string;
5489
5616
  };
5490
5617
  export type ExperimentalScheduleDeleteOutput = void;
5618
+ export type ExperimentalArtifactsProvidersInput = {
5619
+ readonly location?: {
5620
+ readonly directory?: string | undefined;
5621
+ } | undefined;
5622
+ };
5623
+ export type ExperimentalArtifactsProvidersOutput = {
5624
+ location: LocationPublicRef;
5625
+ data: Array<ArtifactProvider>;
5626
+ };
5627
+ export type ExperimentalArtifactsListInput = {
5628
+ readonly location?: {
5629
+ readonly directory?: string | undefined;
5630
+ } | undefined;
5631
+ readonly sessionID?: string | undefined;
5632
+ readonly provider?: string | undefined;
5633
+ };
5634
+ export type ExperimentalArtifactsListOutput = {
5635
+ location: LocationPublicRef;
5636
+ data: Array<ArtifactInfo>;
5637
+ };
5638
+ export type ExperimentalArtifactsCreateInput = {
5639
+ readonly location?: {
5640
+ readonly directory?: string | undefined;
5641
+ } | undefined;
5642
+ readonly title: string;
5643
+ readonly files: {
5644
+ readonly [x: string]: string;
5645
+ };
5646
+ readonly entry?: string | undefined;
5647
+ readonly provider?: string | undefined;
5648
+ readonly sessionID?: string | undefined;
5649
+ };
5650
+ export type ExperimentalArtifactsCreateOutput = {
5651
+ location: LocationPublicRef;
5652
+ data: ArtifactInfo;
5653
+ };
5654
+ export type ExperimentalArtifactsGetInput = {
5655
+ readonly artifactID: string;
5656
+ readonly location?: {
5657
+ readonly directory?: string | undefined;
5658
+ } | undefined;
5659
+ };
5660
+ export type ExperimentalArtifactsGetOutput = {
5661
+ location: LocationPublicRef;
5662
+ data: ArtifactContent;
5663
+ };
5664
+ export type ExperimentalArtifactsUpdateInput = {
5665
+ readonly artifactID: string;
5666
+ readonly location?: {
5667
+ readonly directory?: string | undefined;
5668
+ } | undefined;
5669
+ readonly title?: string | undefined;
5670
+ readonly files: {
5671
+ readonly [x: string]: string;
5672
+ };
5673
+ readonly entry?: string | undefined;
5674
+ readonly sessionID?: string | undefined;
5675
+ };
5676
+ export type ExperimentalArtifactsUpdateOutput = {
5677
+ location: LocationPublicRef;
5678
+ data: ArtifactInfo;
5679
+ };
5680
+ export type ExperimentalArtifactsDeleteInput = {
5681
+ readonly artifactID: string;
5682
+ readonly location?: {
5683
+ readonly directory?: string | undefined;
5684
+ } | undefined;
5685
+ };
5686
+ export type ExperimentalArtifactsDeleteOutput = void;
5687
+ export type ExperimentalArtifactsViewInput = {
5688
+ readonly artifactID: string;
5689
+ readonly location?: {
5690
+ readonly directory?: string | undefined;
5691
+ } | undefined;
5692
+ readonly path: string;
5693
+ };
5694
+ export type ExperimentalArtifactsViewOutput = globalThis.Uint8Array;
5695
+ export type ExperimentalJobListInput = {
5696
+ readonly sessionID?: string | undefined;
5697
+ readonly kind?: ("shell" | "subagent" | "image") | undefined;
5698
+ readonly status?: ("running" | "completed" | "error" | "cancelled") | undefined;
5699
+ readonly descendants?: boolean | undefined;
5700
+ };
5701
+ export type ExperimentalJobListOutput = {
5702
+ data: Array<JobInfo>;
5703
+ }["data"];
5491
5704
  export type ShellListInput = {
5492
5705
  readonly location?: {
5493
5706
  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";