@opencode/client 2.3.0 → 2.3.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.
Files changed (67) hide show
  1. package/dist/chunks/{contract-15p82y03.js → service-timing-15p82y03.js} +2 -2
  2. package/dist/chunks/{contract-ec62es4n.js → service-timing-57ewgbn2.js} +2 -2
  3. package/dist/chunks/{contract-sdjh9vmn.js → service-timing-6hqrj29e.js} +5 -3
  4. package/dist/chunks/{contract-8ye1ye6f.js → service-timing-8ye1ye6f.js} +2 -2
  5. package/dist/chunks/{contract-qdgaygb4.js → service-timing-d300ns9h.js} +51 -15
  6. package/dist/chunks/{contract-gecjxyvt.js → service-timing-gecjxyvt.js} +1 -1
  7. package/dist/chunks/{contract-2n8q20a3.js → service-timing-mghtrbnp.js} +5 -5
  8. package/dist/chunks/{contract-tztyfz1b.js → service-timing-mqnb71k6.js} +1 -1
  9. package/dist/chunks/{contract-yk5evh6f.js → service-timing-nr9zca37.js} +35 -21
  10. package/dist/chunks/{contract-ryy6kscr.js → service-timing-ryy6kscr.js} +1 -1
  11. package/dist/chunks/{contract-b5ykzypt.js → service-timing-srved1k0.js} +4 -4
  12. package/dist/chunks/{contract-xqwq6bgr.js → service-timing-xafd70ys.js} +1 -1
  13. package/dist/contract.js +1 -1
  14. package/dist/effect/api/api.d.ts +60 -38
  15. package/dist/effect/client.d.ts +11 -239
  16. package/dist/effect/client.js +8 -8
  17. package/dist/effect/generated/client-error.js +1 -1
  18. package/dist/effect/generated/client.d.ts +12 -240
  19. package/dist/effect/generated/client.js +3 -3
  20. package/dist/effect/generated/index.js +4 -4
  21. package/dist/effect/index.js +8 -8
  22. package/dist/effect/rpc.js +2 -2
  23. package/dist/effect/service.js +6 -6
  24. package/dist/promise/client.d.ts +14 -7
  25. package/dist/promise/client.js +7 -7
  26. package/dist/promise/generated/client-error.js +1 -1
  27. package/dist/promise/generated/client.d.ts +15 -8
  28. package/dist/promise/generated/client.js +2 -2
  29. package/dist/promise/generated/index.js +11 -7
  30. package/dist/promise/generated/types.d.ts +209 -135
  31. package/dist/promise/generated/types.js +8 -4
  32. package/dist/promise/index.js +19 -15
  33. package/dist/promise/media.d.ts +14 -7
  34. package/dist/promise/media.js +1 -1
  35. package/dist/promise/rpc.js +2 -2
  36. package/dist/promise/service.js +6 -6
  37. package/dist/pty-handoff.js +4 -4
  38. package/dist/rpc-runtime.js +1 -1
  39. package/dist/service-contender.js +1 -1
  40. package/dist/service-probe.js +3 -3
  41. package/dist/service-timing.js +1 -1
  42. package/dist/service-version.js +1 -1
  43. package/dist/service.js +1 -1
  44. package/dist/shared-events.js +1 -1
  45. package/dist/solid/connection.js +1 -1
  46. package/dist/solid/data.js +10 -10
  47. package/dist/solid/index.js +14 -14
  48. package/dist/solid/pty.js +1 -1
  49. package/dist/solid/retention.js +1 -1
  50. package/dist/solid/usage.js +1 -1
  51. package/package.json +4 -4
  52. /package/dist/chunks/{contract-3eaz3m83.js → service-timing-3eaz3m83.js} +0 -0
  53. /package/dist/chunks/{contract-60xe5cbf.js → service-timing-60xe5cbf.js} +0 -0
  54. /package/dist/chunks/{contract-6mptkzbc.js → service-timing-6mptkzbc.js} +0 -0
  55. /package/dist/chunks/{contract-6mq2wh8y.js → service-timing-6mq2wh8y.js} +0 -0
  56. /package/dist/chunks/{contract-6r38tsk5.js → service-timing-6r38tsk5.js} +0 -0
  57. /package/dist/chunks/{contract-8s2anffy.js → service-timing-8s2anffy.js} +0 -0
  58. /package/dist/chunks/{contract-9rqn6x4v.js → service-timing-9rqn6x4v.js} +0 -0
  59. /package/dist/chunks/{contract-mwrzahmf.js → service-timing-mwrzahmf.js} +0 -0
  60. /package/dist/chunks/{contract-nwcpakzx.js → service-timing-nwcpakzx.js} +0 -0
  61. /package/dist/chunks/{contract-qav6mfdz.js → service-timing-qav6mfdz.js} +0 -0
  62. /package/dist/chunks/{contract-sxt88q69.js → service-timing-sxt88q69.js} +0 -0
  63. /package/dist/chunks/{contract-ve4aws36.js → service-timing-ve4aws36.js} +0 -0
  64. /package/dist/chunks/{contract-vyas3vgt.js → service-timing-vyas3vgt.js} +0 -0
  65. /package/dist/chunks/{contract-xgnj2w4v.js → service-timing-xgnj2w4v.js} +0 -0
  66. /package/dist/chunks/{contract-y2etg5bs.js → service-timing-y2etg5bs.js} +0 -0
  67. /package/dist/chunks/{contract-ydhz1zrh.js → service-timing-ydhz1zrh.js} +0 -0
@@ -240,7 +240,7 @@ export type SessionMessageToolStateRunning1 = {
240
240
  [x: string]: JsonValue;
241
241
  };
242
242
  };
243
- export type ModelType = "chat" | "decision" | "image" | (string & {});
243
+ export type ModelType = "chat" | "decision" | "image" | "video" | (string & {});
244
244
  export type ModelReasoningField = "reasoning" | "reasoning_content" | "reasoning_text" | (string & {});
245
245
  export type ModelMaxTokensField = "max_completion_tokens" | "max_tokens";
246
246
  export type ModelCacheFormat = "anthropic" | "alibaba";
@@ -259,6 +259,9 @@ export type GenerateUsage = {
259
259
  export type GenerateNative = {
260
260
  [x: string]: JsonValue;
261
261
  };
262
+ export type GenerateVideoID = string;
263
+ export type BlobID = string;
264
+ export type GenerateVideoErrorReason = "failed" | "cancelled" | "expired" | "unknown";
262
265
  export type GeneratePredicateAnswer = {
263
266
  type: "predicate";
264
267
  name: string;
@@ -465,35 +468,33 @@ export type PersistentPtyHandoff = {
465
468
  ticket: string;
466
469
  expiresAt: number;
467
470
  };
468
- export type ScheduleID = string;
469
- export type ScheduleDuration = string;
470
- export type ScheduleWhenAt = {
471
+ export type AutomationID = string;
472
+ export type AutomationTriggerAt = {
471
473
  type: "at";
472
474
  at: string;
473
475
  tz?: string;
474
476
  };
475
- export type ScheduleWhenCron = {
477
+ export type AutomationDuration = string;
478
+ export type AutomationTriggerCron = {
476
479
  type: "cron";
477
480
  cron: string;
478
481
  tz?: string;
479
482
  };
480
- export type ScheduleConditionShell = {
481
- type: "shell";
482
- run: string;
483
- is?: string;
484
- matches?: string;
485
- changes?: boolean;
483
+ export type AutomationTriggerEvent = {
484
+ type: "event";
485
+ server: string;
486
+ event: string;
487
+ args?: {
488
+ [x: string]: JsonValue;
489
+ };
486
490
  };
487
- export type ScheduleConditionCode = {
491
+ export type AutomationActionCode = {
488
492
  type: "code";
489
493
  code: string;
494
+ args?: JsonValue;
490
495
  };
491
- export type ScheduleActionPrompt = {
492
- type: "prompt";
493
- prompt: string;
494
- };
495
- export type ScheduleStatus = "active" | "paused" | "done";
496
- export type ScheduleOutcome = "fired" | "late" | "checked" | "expired" | "skipped" | "disabled" | "failed";
496
+ export type AutomationStatus = "active" | "paused" | "done";
497
+ export type AutomationOutcome = "fired" | "late" | "skipped" | "disabled" | "failed" | "expired";
497
498
  export type ArtifactCapability = "static" | "server-code" | "sqlite" | "durable-objects";
498
499
  export type ArtifactID = string;
499
500
  export type ArtifactTime = {
@@ -618,6 +619,13 @@ export type PluginInfo = {
618
619
  features: PluginFeatures;
619
620
  state: PluginState;
620
621
  };
622
+ export type AutomationTarget = {
623
+ session: SessionID;
624
+ subagent?: never;
625
+ } | {
626
+ subagent: AgentID;
627
+ session?: never;
628
+ };
621
629
  export type SessionForkBoundary = {
622
630
  type: "before";
623
631
  messageID: SessionMessageID;
@@ -1020,6 +1028,22 @@ export type ModelCost = {
1020
1028
  write: MoneyUSDPerMillionTokens;
1021
1029
  };
1022
1030
  };
1031
+ export type GenerateVideoRunning = {
1032
+ id: GenerateVideoID;
1033
+ status: "running";
1034
+ };
1035
+ export type BlobInfo = {
1036
+ id: BlobID;
1037
+ mime: string;
1038
+ bytes: number;
1039
+ expiresAt: number;
1040
+ };
1041
+ export type GenerateVideoError = {
1042
+ id: GenerateVideoID;
1043
+ status: "error";
1044
+ error: string;
1045
+ reason: GenerateVideoErrorReason;
1046
+ };
1023
1047
  export type GenerateChoiceAnswer = {
1024
1048
  type: "choice";
1025
1049
  name: string;
@@ -1246,18 +1270,11 @@ export type FormMultiselectField1 = {
1246
1270
  export type FormAnswer1 = {
1247
1271
  [x: string]: FormValue1;
1248
1272
  };
1249
- export type ScheduleWhenIn = {
1250
- type: "in";
1251
- in: ScheduleDuration;
1252
- tz?: string;
1253
- };
1254
- export type ScheduleWhenEvery = {
1273
+ export type AutomationTriggerEvery = {
1255
1274
  type: "every";
1256
- every: ScheduleDuration;
1275
+ every: AutomationDuration;
1257
1276
  tz?: string;
1258
1277
  };
1259
- export type ScheduleCondition = ScheduleConditionShell | ScheduleConditionCode;
1260
- export type ScheduleAction = ScheduleActionPrompt;
1261
1278
  export type ArtifactProvider = {
1262
1279
  id: string;
1263
1280
  name: string;
@@ -1304,6 +1321,14 @@ export type JobImage = {
1304
1321
  path: string;
1305
1322
  model: string;
1306
1323
  };
1324
+ export type JobCodeMode = {
1325
+ kind: "codemode";
1326
+ id: string;
1327
+ sessionID: SessionID;
1328
+ status: JobStatus;
1329
+ title?: string;
1330
+ time: JobTime;
1331
+ };
1307
1332
  export type VcsInfo = {
1308
1333
  provider?: string;
1309
1334
  branch: VcsBranch;
@@ -1455,6 +1480,11 @@ export type ModelVariant = {
1455
1480
  };
1456
1481
  };
1457
1482
  export type PermissionRuleset = Array<PermissionRule>;
1483
+ export type AutomationActionPrompt = {
1484
+ type: "prompt";
1485
+ prompt: string;
1486
+ to: AutomationTarget;
1487
+ };
1458
1488
  export type UsageLimitsBudget = {
1459
1489
  id: string;
1460
1490
  limit: MoneyUSD;
@@ -3031,6 +3061,14 @@ export type SessionMessageToolStateError1 = {
3031
3061
  [x: string]: JsonValue;
3032
3062
  };
3033
3063
  };
3064
+ export type GenerateVideoCreateResponse = {
3065
+ data: GenerateVideoRunning;
3066
+ };
3067
+ export type GenerateVideoCompleted = {
3068
+ id: GenerateVideoID;
3069
+ status: "completed";
3070
+ blobs: Array<BlobInfo>;
3071
+ };
3034
3072
  export type GenerateDecisionAnswer = GeneratePredicateAnswer | GenerateChoiceAnswer | GenerateScoreAnswer | GenerateErrorAnswer;
3035
3073
  export type VoiceModelsResponse = {
3036
3074
  data: {
@@ -3119,14 +3157,14 @@ export type FormReplied = {
3119
3157
  answer: FormAnswer1;
3120
3158
  };
3121
3159
  };
3122
- export type ScheduleWhen = ScheduleWhenIn | ScheduleWhenAt | ScheduleWhenEvery | ScheduleWhenCron;
3160
+ export type AutomationTrigger = AutomationTriggerAt | AutomationTriggerEvery | AutomationTriggerCron | AutomationTriggerEvent;
3123
3161
  export type ArtifactContent = {
3124
3162
  info: ArtifactInfo;
3125
3163
  files: {
3126
3164
  [x: string]: string;
3127
3165
  };
3128
3166
  };
3129
- export type JobInfo = JobShell | JobSubagent | JobImage;
3167
+ export type JobInfo = JobShell | JobSubagent | JobImage | JobCodeMode;
3130
3168
  export type SessionInboxMove = {
3131
3169
  id: SessionMessageID;
3132
3170
  sessionID: SessionID;
@@ -3434,6 +3472,7 @@ export type ConfigEntry = {
3434
3472
  };
3435
3473
  compaction?: {
3436
3474
  auto?: boolean;
3475
+ background?: boolean;
3437
3476
  keep?: {
3438
3477
  tokens?: number;
3439
3478
  };
@@ -3561,13 +3600,14 @@ export type ConfigEntry = {
3561
3600
  codemode_vm?: boolean;
3562
3601
  all_flags?: boolean;
3563
3602
  todo?: boolean;
3564
- background_compaction?: boolean;
3565
3603
  media_blob?: boolean;
3566
- schedules?: boolean;
3604
+ automations?: boolean;
3567
3605
  artifacts?: boolean;
3568
- shell_timeout_background?: boolean;
3606
+ video_generate?: boolean;
3569
3607
  console_watches?: boolean;
3570
3608
  mcp_events?: boolean;
3609
+ full_codemode?: boolean;
3610
+ schedules?: boolean;
3571
3611
  part_rows?: boolean;
3572
3612
  image_generate?: boolean | {
3573
3613
  model?: string | {
@@ -3589,6 +3629,7 @@ export type ConfigEntry = {
3589
3629
  type: "directory";
3590
3630
  path: AbsolutePath;
3591
3631
  };
3632
+ export type AutomationAction = AutomationActionPrompt | AutomationActionCode;
3592
3633
  export type UsageLimitsInfo = {
3593
3634
  workspace: {
3594
3635
  id: string;
@@ -3655,6 +3696,7 @@ export type SessionMessageAssistantTool1 = {
3655
3696
  completed?: number;
3656
3697
  };
3657
3698
  };
3699
+ export type GenerateVideoJob = GenerateVideoRunning | GenerateVideoCompleted | GenerateVideoError;
3658
3700
  export type GenerateDecisionResult = {
3659
3701
  answers: Array<GenerateDecisionAnswer>;
3660
3702
  cost?: MoneyUSD;
@@ -3669,28 +3711,6 @@ export type CredentialEntry = {
3669
3711
  value: CredentialValue;
3670
3712
  };
3671
3713
  export type FormFields1 = [FormField1, ...Array<FormField1>];
3672
- export type ScheduleInfo = {
3673
- id: ScheduleID;
3674
- sessionID?: SessionID;
3675
- name?: string;
3676
- when: ScheduleWhen;
3677
- tz: string;
3678
- if?: ScheduleCondition;
3679
- until?: ScheduleCondition;
3680
- action: ScheduleAction;
3681
- status: ScheduleStatus;
3682
- nextDueAt?: number;
3683
- endsAt?: number;
3684
- remainingRuns?: number;
3685
- runCount: number;
3686
- lastFiredAt?: number;
3687
- lastOutcome?: ScheduleOutcome;
3688
- lastOutput?: string;
3689
- time: {
3690
- created: number;
3691
- updated: number;
3692
- };
3693
- };
3694
3714
  export type AgentInfo = {
3695
3715
  id: AgentID;
3696
3716
  name: string;
@@ -3711,6 +3731,28 @@ export type SessionsResponse = {
3711
3731
  next?: SessionsCursor | null;
3712
3732
  };
3713
3733
  };
3734
+ export type AutomationInfo = {
3735
+ id: AutomationID;
3736
+ name: string;
3737
+ projectID: ProjectID;
3738
+ sessionID?: SessionID;
3739
+ directory: string;
3740
+ trigger: AutomationTrigger;
3741
+ tz: string;
3742
+ action: AutomationAction;
3743
+ expires?: number;
3744
+ status: AutomationStatus;
3745
+ nextDueAt?: number;
3746
+ runCount: number;
3747
+ lastRunAt?: number;
3748
+ lastOutcome?: AutomationOutcome;
3749
+ lastOutput?: string;
3750
+ state?: JsonValue;
3751
+ time: {
3752
+ created: number;
3753
+ updated: number;
3754
+ };
3755
+ };
3714
3756
  export type SessionInboxInfo = SessionInboxUser | SessionInboxSynthetic | SessionInboxCompaction | SessionInboxMove;
3715
3757
  export type SessionMessageAssistant = {
3716
3758
  id: SessionMessageID;
@@ -3792,6 +3834,9 @@ export type SessionInboxEnqueued = {
3792
3834
  };
3793
3835
  };
3794
3836
  export type SessionMessageAssistantContentEncoded = SessionMessageAssistantText1 | SessionMessageAssistantReasoning1 | SessionMessageAssistantTool1;
3837
+ export type GenerateVideoGetResponse = {
3838
+ data: GenerateVideoJob;
3839
+ };
3795
3840
  export type GenerateDecisionsResponse = {
3796
3841
  data: GenerateDecisionResult;
3797
3842
  };
@@ -4005,6 +4050,17 @@ export type ProviderRequestError = {
4005
4050
  readonly retryAfterMs?: number | undefined;
4006
4051
  };
4007
4052
  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
+ export type VideoNotFoundError = {
4059
+ readonly _tag: "VideoNotFoundError";
4060
+ readonly videoID: string;
4061
+ readonly message: string;
4062
+ };
4063
+ export declare const isVideoNotFoundError: (value: unknown) => value is VideoNotFoundError;
4008
4064
  export type IntegrationNotFoundError = {
4009
4065
  readonly _tag: "IntegrationNotFoundError";
4010
4066
  readonly integrationID: string;
@@ -4031,11 +4087,6 @@ export type McpServerNotFoundError = {
4031
4087
  readonly message: string;
4032
4088
  };
4033
4089
  export declare const isMcpServerNotFoundError: (value: unknown) => value is McpServerNotFoundError;
4034
- export type ForbiddenError = {
4035
- readonly _tag: "ForbiddenError";
4036
- readonly message: string;
4037
- };
4038
- export declare const isForbiddenError: (value: unknown) => value is ForbiddenError;
4039
4090
  export type ProjectNotFoundError = {
4040
4091
  readonly _tag: "ProjectNotFoundError";
4041
4092
  readonly projectID: string;
@@ -4086,12 +4137,18 @@ export type PtyFeatureUnsupportedError = {
4086
4137
  readonly message: string;
4087
4138
  };
4088
4139
  export declare const isPtyFeatureUnsupportedError: (value: unknown) => value is PtyFeatureUnsupportedError;
4089
- export type ScheduleNotFoundError = {
4090
- readonly _tag: "ScheduleNotFoundError";
4091
- readonly scheduleID: string;
4140
+ export type BlobNotFoundError = {
4141
+ readonly _tag: "BlobNotFoundError";
4142
+ readonly blobID: string;
4143
+ readonly message: string;
4144
+ };
4145
+ export declare const isBlobNotFoundError: (value: unknown) => value is BlobNotFoundError;
4146
+ export type AutomationNotFoundError = {
4147
+ readonly _tag: "AutomationNotFoundError";
4148
+ readonly automationID: string;
4092
4149
  readonly message: string;
4093
4150
  };
4094
- export declare const isScheduleNotFoundError: (value: unknown) => value is ScheduleNotFoundError;
4151
+ export declare const isAutomationNotFoundError: (value: unknown) => value is AutomationNotFoundError;
4095
4152
  export type ArtifactNotFoundError = {
4096
4153
  readonly _tag: "ArtifactNotFoundError";
4097
4154
  readonly artifactID: string;
@@ -4840,7 +4897,7 @@ export type ModelListInput = {
4840
4897
  readonly location?: {
4841
4898
  readonly directory?: string | undefined;
4842
4899
  } | undefined;
4843
- readonly types?: ReadonlyArray<"chat" | "decision" | "image" | (string & {})> | undefined;
4900
+ readonly types?: ReadonlyArray<"chat" | "decision" | "image" | "video" | (string & {})> | undefined;
4844
4901
  };
4845
4902
  export type ModelListOutput = {
4846
4903
  location: LocationPublicRef;
@@ -4881,6 +4938,38 @@ export type ExperimentalGenerateImageInput = {
4881
4938
  readonly resolution?: ("1K" | "2K" | "4K" | (string & {})) | undefined;
4882
4939
  };
4883
4940
  export type ExperimentalGenerateImageOutput = GenerateImageResponse["data"];
4941
+ export type ExperimentalGenerateVideoCreateInput = {
4942
+ readonly model: {
4943
+ readonly id: string;
4944
+ readonly providerID: string;
4945
+ readonly variant?: string;
4946
+ };
4947
+ readonly prompt: string;
4948
+ readonly start?: {
4949
+ readonly data: string;
4950
+ readonly mime: string;
4951
+ readonly name?: string;
4952
+ } | undefined;
4953
+ readonly end?: {
4954
+ readonly data: string;
4955
+ readonly mime: string;
4956
+ readonly name?: string;
4957
+ } | undefined;
4958
+ readonly references?: ReadonlyArray<{
4959
+ readonly data: string;
4960
+ readonly mime: string;
4961
+ readonly name?: string;
4962
+ }> | undefined;
4963
+ readonly duration?: number | undefined;
4964
+ readonly aspect?: (`${number}${":"}${number}` | "auto") | undefined;
4965
+ readonly resolution?: ("480p" | "720p" | "1080p" | "4k" | (string & {})) | undefined;
4966
+ readonly sound?: boolean | undefined;
4967
+ };
4968
+ export type ExperimentalGenerateVideoCreateOutput = GenerateVideoCreateResponse["data"];
4969
+ export type ExperimentalGenerateVideoGetInput = {
4970
+ readonly id: string;
4971
+ };
4972
+ export type ExperimentalGenerateVideoGetOutput = GenerateVideoGetResponse["data"];
4884
4973
  export type ExperimentalGenerateDecisionsInput = {
4885
4974
  readonly model: {
4886
4975
  readonly id: string;
@@ -5550,98 +5639,83 @@ export type ExperimentalMediaGetInput = {
5550
5639
  readonly hash: string;
5551
5640
  };
5552
5641
  export type ExperimentalMediaGetOutput = globalThis.Uint8Array;
5553
- export type ExperimentalScheduleCreateInput = {
5554
- readonly sessionID: string;
5555
- readonly name?: string | undefined;
5556
- readonly when?: ({
5557
- readonly in: string;
5558
- readonly at?: never;
5559
- readonly every?: never;
5560
- readonly cron?: never;
5561
- readonly tz?: string;
5562
- } | {
5642
+ export type ExperimentalBlobGetInput = {
5643
+ readonly id: string;
5644
+ };
5645
+ export type ExperimentalBlobGetOutput = globalThis.Uint8Array;
5646
+ export type ExperimentalAutomationCreateInput = {
5647
+ readonly sessionID?: string | undefined;
5648
+ readonly directory?: string | undefined;
5649
+ readonly name: string;
5650
+ readonly trigger: {
5651
+ readonly type: "at";
5563
5652
  readonly at: string;
5564
- readonly in?: never;
5565
- readonly every?: never;
5566
- readonly cron?: never;
5567
5653
  readonly tz?: string;
5568
5654
  } | {
5655
+ readonly type: "every";
5569
5656
  readonly every: string;
5570
- readonly in?: never;
5571
- readonly at?: never;
5572
- readonly cron?: never;
5573
5657
  readonly tz?: string;
5574
5658
  } | {
5659
+ readonly type: "cron";
5575
5660
  readonly cron: string;
5576
- readonly in?: never;
5577
- readonly at?: never;
5578
- readonly every?: never;
5579
5661
  readonly tz?: string;
5580
- }) | undefined;
5581
- readonly if?: ({
5582
- readonly run: string;
5583
- readonly is?: string;
5584
- readonly matches?: string;
5585
- readonly changes?: boolean;
5586
- readonly code?: never;
5587
5662
  } | {
5588
- readonly code: string;
5589
- readonly run?: never;
5590
- readonly is?: never;
5591
- readonly matches?: never;
5592
- readonly changes?: never;
5593
- }) | undefined;
5594
- readonly until?: ({
5595
- readonly run: string;
5596
- readonly is?: string;
5597
- readonly matches?: string;
5598
- readonly changes?: boolean;
5599
- readonly code?: never;
5663
+ readonly type: "event";
5664
+ readonly server: string;
5665
+ readonly event: string;
5666
+ readonly args?: {
5667
+ readonly [x: string]: JsonValue;
5668
+ };
5669
+ };
5670
+ readonly action: {
5671
+ readonly type: "prompt";
5672
+ readonly prompt: string;
5673
+ readonly to?: {
5674
+ readonly session: string;
5675
+ readonly subagent?: never;
5676
+ } | {
5677
+ readonly subagent: string;
5678
+ readonly session?: never;
5679
+ };
5600
5680
  } | {
5681
+ readonly type: "code";
5601
5682
  readonly code: string;
5602
- readonly run?: never;
5603
- readonly is?: never;
5604
- readonly matches?: never;
5605
- readonly changes?: never;
5606
- }) | undefined;
5607
- readonly ends?: {
5608
- readonly after?: string;
5609
- readonly at?: string;
5610
- readonly times?: number;
5611
- } | undefined;
5612
- readonly prompt: string;
5683
+ readonly args?: JsonValue;
5684
+ };
5685
+ readonly expires?: string | undefined;
5613
5686
  };
5614
- export type ExperimentalScheduleCreateOutput = {
5615
- data: ScheduleInfo;
5687
+ export type ExperimentalAutomationCreateOutput = {
5688
+ data: AutomationInfo;
5616
5689
  }["data"];
5617
- export type ExperimentalScheduleListInput = {
5618
- readonly sessionID: string;
5690
+ export type ExperimentalAutomationListInput = {
5691
+ readonly sessionID?: string | undefined;
5692
+ readonly directory?: string | undefined;
5619
5693
  };
5620
- export type ExperimentalScheduleListOutput = {
5621
- data: Array<ScheduleInfo>;
5694
+ export type ExperimentalAutomationListOutput = {
5695
+ data: Array<AutomationInfo>;
5622
5696
  }["data"];
5623
- export type ExperimentalScheduleGetInput = {
5624
- readonly scheduleID: string;
5697
+ export type ExperimentalAutomationGetInput = {
5698
+ readonly automationID: string;
5625
5699
  };
5626
- export type ExperimentalScheduleGetOutput = {
5627
- data: ScheduleInfo;
5700
+ export type ExperimentalAutomationGetOutput = {
5701
+ data: AutomationInfo;
5628
5702
  }["data"];
5629
- export type ExperimentalSchedulePauseInput = {
5630
- readonly scheduleID: string;
5703
+ export type ExperimentalAutomationPauseInput = {
5704
+ readonly automationID: string;
5631
5705
  };
5632
- export type ExperimentalSchedulePauseOutput = {
5633
- data: ScheduleInfo;
5706
+ export type ExperimentalAutomationPauseOutput = {
5707
+ data: AutomationInfo;
5634
5708
  }["data"];
5635
- export type ExperimentalScheduleResumeInput = {
5636
- readonly scheduleID: string;
5709
+ export type ExperimentalAutomationResumeInput = {
5710
+ readonly automationID: string;
5637
5711
  };
5638
- export type ExperimentalScheduleResumeOutput = {
5639
- data: ScheduleInfo;
5712
+ export type ExperimentalAutomationResumeOutput = {
5713
+ data: AutomationInfo;
5640
5714
  }["data"];
5641
- export type ExperimentalScheduleDeleteInput = {
5642
- readonly scheduleID: string;
5715
+ export type ExperimentalAutomationDeleteInput = {
5716
+ readonly automationID: string;
5643
5717
  };
5644
- export type ExperimentalScheduleDeleteOutput = void;
5718
+ export type ExperimentalAutomationDeleteOutput = void;
5645
5719
  export type ExperimentalArtifactsProvidersInput = {
5646
5720
  readonly location?: {
5647
5721
  readonly directory?: string | undefined;
@@ -5721,7 +5795,7 @@ export type ExperimentalArtifactsViewInput = {
5721
5795
  export type ExperimentalArtifactsViewOutput = globalThis.Uint8Array;
5722
5796
  export type ExperimentalJobListInput = {
5723
5797
  readonly sessionID?: string | undefined;
5724
- readonly kind?: ("shell" | "subagent" | "image") | undefined;
5798
+ readonly kind?: ("shell" | "subagent" | "image" | "codemode") | undefined;
5725
5799
  readonly status?: ("running" | "completed" | "error" | "cancelled") | undefined;
5726
5800
  readonly descendants?: boolean | undefined;
5727
5801
  };
@@ -22,11 +22,12 @@ import {
22
22
  isModelNotFoundError2,
23
23
  isUnsupportedModelError2,
24
24
  isProviderRequestError2,
25
+ isForbiddenError2,
26
+ isVideoNotFoundError2,
25
27
  isIntegrationNotFoundError2,
26
28
  isIntegrationAttemptNotFoundError2,
27
29
  isIntegrationMethodNotFoundError2,
28
30
  isMcpServerNotFoundError2,
29
- isForbiddenError2,
30
31
  isProjectNotFoundError2,
31
32
  isPermissionSavedNotFoundError2,
32
33
  isPermissionNotFoundError2,
@@ -35,15 +36,18 @@ import {
35
36
  isRpcInternalError2,
36
37
  isPtyNotFoundError2,
37
38
  isPtyFeatureUnsupportedError2,
38
- isScheduleNotFoundError2,
39
+ isBlobNotFoundError2,
40
+ isAutomationNotFoundError2,
39
41
  isArtifactNotFoundError2,
40
42
  isShellNotFoundError2,
41
43
  isWorktreeError2,
42
44
  isVcsInitNotSupportedError2
43
- } from "../../chunks/contract-sdjh9vmn.js";
45
+ } from "../../chunks/service-timing-6hqrj29e.js";
44
46
  export {
45
47
  isAgentNotFoundError2 as isAgentNotFoundError,
46
48
  isArtifactNotFoundError2 as isArtifactNotFoundError,
49
+ isAutomationNotFoundError2 as isAutomationNotFoundError,
50
+ isBlobNotFoundError2 as isBlobNotFoundError,
47
51
  isCommandExecutionError2 as isCommandExecutionError,
48
52
  isCommandNotFoundError2 as isCommandNotFoundError,
49
53
  isConflictError2 as isConflictError,
@@ -72,7 +76,6 @@ export {
72
76
  isPtyNotFoundError2 as isPtyNotFoundError,
73
77
  isRpcError2 as isRpcError,
74
78
  isRpcInternalError2 as isRpcInternalError,
75
- isScheduleNotFoundError2 as isScheduleNotFoundError,
76
79
  isServiceUnavailableError2 as isServiceUnavailableError,
77
80
  isSessionBusyError2 as isSessionBusyError,
78
81
  isSessionNotFoundError2 as isSessionNotFoundError,
@@ -82,5 +85,6 @@ export {
82
85
  isUnknownError2 as isUnknownError,
83
86
  isUnsupportedModelError2 as isUnsupportedModelError,
84
87
  isVcsInitNotSupportedError2 as isVcsInitNotSupportedError,
88
+ isVideoNotFoundError2 as isVideoNotFoundError,
85
89
  isWorktreeError2 as isWorktreeError
86
90
  };
@@ -1,18 +1,17 @@
1
- import"../chunks/contract-6r38tsk5.js";
1
+ import"../chunks/service-timing-6r38tsk5.js";
2
+ import {
3
+ mediaHashFromUri2,
4
+ withMediaRefs2
5
+ } from "../chunks/service-timing-mwrzahmf.js";
2
6
  import {
3
7
  exports_client3
4
- } from "../chunks/contract-b5ykzypt.js";
5
- import"../chunks/contract-vyas3vgt.js";
6
- import"../chunks/contract-qdgaygb4.js";
8
+ } from "../chunks/service-timing-srved1k0.js";
9
+ import"../chunks/service-timing-vyas3vgt.js";
10
+ import"../chunks/service-timing-d300ns9h.js";
7
11
  import {
8
12
  ClientError3
9
- } from "../chunks/contract-nwcpakzx.js";
10
- import"../chunks/contract-gecjxyvt.js";
11
- import {
12
- mediaHashFromUri2,
13
- withMediaRefs2
14
- } from "../chunks/contract-mwrzahmf.js";
15
- import"../chunks/contract-xqwq6bgr.js";
13
+ } from "../chunks/service-timing-nwcpakzx.js";
14
+ import"../chunks/service-timing-xafd70ys.js";
16
15
  import {
17
16
  isInvalidRequestError2,
18
17
  isUnauthorizedError2,
@@ -37,11 +36,12 @@ import {
37
36
  isModelNotFoundError2,
38
37
  isUnsupportedModelError2,
39
38
  isProviderRequestError2,
39
+ isForbiddenError2,
40
+ isVideoNotFoundError2,
40
41
  isIntegrationNotFoundError2,
41
42
  isIntegrationAttemptNotFoundError2,
42
43
  isIntegrationMethodNotFoundError2,
43
44
  isMcpServerNotFoundError2,
44
- isForbiddenError2,
45
45
  isProjectNotFoundError2,
46
46
  isPermissionSavedNotFoundError2,
47
47
  isPermissionNotFoundError2,
@@ -50,17 +50,21 @@ import {
50
50
  isRpcInternalError2,
51
51
  isPtyNotFoundError2,
52
52
  isPtyFeatureUnsupportedError2,
53
- isScheduleNotFoundError2,
53
+ isBlobNotFoundError2,
54
+ isAutomationNotFoundError2,
54
55
  isArtifactNotFoundError2,
55
56
  isShellNotFoundError2,
56
57
  isWorktreeError2,
57
58
  isVcsInitNotSupportedError2
58
- } from "../chunks/contract-sdjh9vmn.js";
59
+ } from "../chunks/service-timing-6hqrj29e.js";
60
+ import"../chunks/service-timing-gecjxyvt.js";
59
61
  export {
60
62
  ClientError3 as ClientError,
61
63
  exports_client3 as OpenCode,
62
64
  isAgentNotFoundError2 as isAgentNotFoundError,
63
65
  isArtifactNotFoundError2 as isArtifactNotFoundError,
66
+ isAutomationNotFoundError2 as isAutomationNotFoundError,
67
+ isBlobNotFoundError2 as isBlobNotFoundError,
64
68
  isCommandExecutionError2 as isCommandExecutionError,
65
69
  isCommandNotFoundError2 as isCommandNotFoundError,
66
70
  isConflictError2 as isConflictError,
@@ -89,7 +93,6 @@ export {
89
93
  isPtyNotFoundError2 as isPtyNotFoundError,
90
94
  isRpcError2 as isRpcError,
91
95
  isRpcInternalError2 as isRpcInternalError,
92
- isScheduleNotFoundError2 as isScheduleNotFoundError,
93
96
  isServiceUnavailableError2 as isServiceUnavailableError,
94
97
  isSessionBusyError2 as isSessionBusyError,
95
98
  isSessionNotFoundError2 as isSessionNotFoundError,
@@ -99,6 +102,7 @@ export {
99
102
  isUnknownError2 as isUnknownError,
100
103
  isUnsupportedModelError2 as isUnsupportedModelError,
101
104
  isVcsInitNotSupportedError2 as isVcsInitNotSupportedError,
105
+ isVideoNotFoundError2 as isVideoNotFoundError,
102
106
  isWorktreeError2 as isWorktreeError,
103
107
  mediaHashFromUri2 as mediaHashFromUri,
104
108
  withMediaRefs2 as withMediaRefs