@opencode/client 2.2.7 → 2.3.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/{shared-events-2r38e168.js → service-3v8v7cjx.js} +42 -28
- package/dist/chunks/{shared-events-sdjh9vmn.js → service-6hqrj29e.js} +5 -3
- package/dist/chunks/{shared-events-y2etg5bs.js → service-7f0py9js.js} +2 -2
- package/dist/chunks/{shared-events-2ny4vxct.js → service-8ye1ye6f.js} +2 -2
- package/dist/chunks/{shared-events-15p82y03.js → service-anregfhs.js} +5 -5
- package/dist/chunks/service-az3r2kmr.js +30 -0
- package/dist/chunks/{shared-events-gecjxyvt.js → service-gecjxyvt.js} +1 -1
- package/dist/chunks/{shared-events-nwcpakzx.js → service-js54wxgp.js} +2 -2
- package/dist/chunks/{shared-events-yn39sb5p.js → service-mqnb71k6.js} +49 -16
- package/dist/chunks/{shared-events-c49mnkv6.js → service-n22dhmav.js} +17 -17
- package/dist/chunks/{shared-events-qdgaygb4.js → service-nmmc7qpz.js} +68 -32
- package/dist/chunks/{shared-events-ryy6kscr.js → service-ryy6kscr.js} +1 -1
- package/dist/chunks/{shared-events-xj1v5np5.js → service-th5q8fjm.js} +2 -2
- package/dist/chunks/{shared-events-xqwq6bgr.js → service-xafd70ys.js} +1 -1
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +81 -39
- package/dist/effect/client.d.ts +53 -240
- package/dist/effect/client.js +12 -12
- package/dist/effect/generated/client-error.js +3 -3
- package/dist/effect/generated/client.d.ts +53 -240
- package/dist/effect/generated/client.js +5 -5
- package/dist/effect/generated/index.js +8 -8
- package/dist/effect/index.js +12 -12
- package/dist/effect/rpc.js +4 -4
- package/dist/effect/service.js +6 -6
- package/dist/promise/client.d.ts +15 -8
- package/dist/promise/client.js +11 -11
- package/dist/promise/generated/client-error.js +3 -3
- package/dist/promise/generated/client.d.ts +15 -8
- package/dist/promise/generated/client.js +4 -4
- package/dist/promise/generated/index.js +16 -12
- package/dist/promise/generated/types.d.ts +268 -144
- package/dist/promise/generated/types.js +8 -4
- package/dist/promise/index.js +23 -19
- package/dist/promise/media.d.ts +15 -8
- 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 +5 -2
- 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/shared-events-dqjrwhzg.js +0 -30
- /package/dist/chunks/{shared-events-3eaz3m83.js → service-3eaz3m83.js} +0 -0
- /package/dist/chunks/{shared-events-60xe5cbf.js → service-60xe5cbf.js} +0 -0
- /package/dist/chunks/{shared-events-6mptkzbc.js → service-6mptkzbc.js} +0 -0
- /package/dist/chunks/{shared-events-6mq2wh8y.js → service-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{shared-events-6r38tsk5.js → service-6r38tsk5.js} +0 -0
- /package/dist/chunks/{shared-events-8s2anffy.js → service-8s2anffy.js} +0 -0
- /package/dist/chunks/{shared-events-9rqn6x4v.js → service-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{shared-events-mwrzahmf.js → service-mwrzahmf.js} +0 -0
- /package/dist/chunks/{shared-events-qav6mfdz.js → service-qav6mfdz.js} +0 -0
- /package/dist/chunks/{shared-events-sxt88q69.js → service-sxt88q69.js} +0 -0
- /package/dist/chunks/{shared-events-ve4aws36.js → service-ve4aws36.js} +0 -0
- /package/dist/chunks/{shared-events-vyas3vgt.js → service-vyas3vgt.js} +0 -0
- /package/dist/chunks/{shared-events-xgnj2w4v.js → service-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{shared-events-ydhz1zrh.js → service-ydhz1zrh.js} +0 -0
|
@@ -36,6 +36,11 @@ export type ProviderCacheWarming = boolean | {
|
|
|
36
36
|
};
|
|
37
37
|
export type ProviderTransport = "http" | "websocket";
|
|
38
38
|
export type ProviderEncoding = "zstd" | "gzip" | "none";
|
|
39
|
+
export type ProviderTls = {
|
|
40
|
+
cert: string;
|
|
41
|
+
key: string;
|
|
42
|
+
passphrase?: string;
|
|
43
|
+
};
|
|
39
44
|
export type AgentColor = string;
|
|
40
45
|
export type PermissionEffect = "allow" | "deny" | "ask";
|
|
41
46
|
export type PluginID = string;
|
|
@@ -235,17 +240,12 @@ export type SessionMessageToolStateRunning1 = {
|
|
|
235
240
|
[x: string]: JsonValue;
|
|
236
241
|
};
|
|
237
242
|
};
|
|
238
|
-
export type ModelType = "chat" | "decision" | "image" | (string & {});
|
|
243
|
+
export type ModelType = "chat" | "decision" | "image" | "video" | (string & {});
|
|
239
244
|
export type ModelReasoningField = "reasoning" | "reasoning_content" | "reasoning_text" | (string & {});
|
|
240
245
|
export type ModelMaxTokensField = "max_completion_tokens" | "max_tokens";
|
|
241
246
|
export type ModelCacheFormat = "anthropic" | "alibaba";
|
|
242
247
|
export type ModelMediaInput = "assets" | "state" | "root";
|
|
243
|
-
export type
|
|
244
|
-
tools: boolean;
|
|
245
|
-
input: Array<string>;
|
|
246
|
-
output: Array<string>;
|
|
247
|
-
temperature?: boolean;
|
|
248
|
-
};
|
|
248
|
+
export type ToolFreeformFormat = "text" | "regex" | "lark";
|
|
249
249
|
export type MoneyUSDPerMillionTokens = number;
|
|
250
250
|
export type GenerateTextResponse = {
|
|
251
251
|
data: {
|
|
@@ -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
|
|
469
|
-
export type
|
|
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
|
|
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
|
|
481
|
-
type: "
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
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
|
|
491
|
+
export type AutomationActionCode = {
|
|
488
492
|
type: "code";
|
|
489
493
|
code: string;
|
|
494
|
+
args?: JsonValue;
|
|
490
495
|
};
|
|
491
|
-
export type
|
|
492
|
-
|
|
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;
|
|
@@ -1001,6 +1009,13 @@ export type ProviderCompatibility = {
|
|
|
1001
1009
|
cacheFormat?: ModelCacheFormat;
|
|
1002
1010
|
mediaInput?: ModelMediaInput;
|
|
1003
1011
|
};
|
|
1012
|
+
export type ModelCapabilities = {
|
|
1013
|
+
tools: boolean;
|
|
1014
|
+
freeform?: Array<ToolFreeformFormat>;
|
|
1015
|
+
input: Array<string>;
|
|
1016
|
+
output: Array<string>;
|
|
1017
|
+
temperature?: boolean;
|
|
1018
|
+
};
|
|
1004
1019
|
export type ModelCost = {
|
|
1005
1020
|
tier?: {
|
|
1006
1021
|
type: "context";
|
|
@@ -1013,6 +1028,22 @@ export type ModelCost = {
|
|
|
1013
1028
|
write: MoneyUSDPerMillionTokens;
|
|
1014
1029
|
};
|
|
1015
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
|
+
};
|
|
1016
1047
|
export type GenerateChoiceAnswer = {
|
|
1017
1048
|
type: "choice";
|
|
1018
1049
|
name: string;
|
|
@@ -1239,18 +1270,11 @@ export type FormMultiselectField1 = {
|
|
|
1239
1270
|
export type FormAnswer1 = {
|
|
1240
1271
|
[x: string]: FormValue1;
|
|
1241
1272
|
};
|
|
1242
|
-
export type
|
|
1243
|
-
type: "in";
|
|
1244
|
-
in: ScheduleDuration;
|
|
1245
|
-
tz?: string;
|
|
1246
|
-
};
|
|
1247
|
-
export type ScheduleWhenEvery = {
|
|
1273
|
+
export type AutomationTriggerEvery = {
|
|
1248
1274
|
type: "every";
|
|
1249
|
-
every:
|
|
1275
|
+
every: AutomationDuration;
|
|
1250
1276
|
tz?: string;
|
|
1251
1277
|
};
|
|
1252
|
-
export type ScheduleCondition = ScheduleConditionShell | ScheduleConditionCode;
|
|
1253
|
-
export type ScheduleAction = ScheduleActionPrompt;
|
|
1254
1278
|
export type ArtifactProvider = {
|
|
1255
1279
|
id: string;
|
|
1256
1280
|
name: string;
|
|
@@ -1297,6 +1321,14 @@ export type JobImage = {
|
|
|
1297
1321
|
path: string;
|
|
1298
1322
|
model: string;
|
|
1299
1323
|
};
|
|
1324
|
+
export type JobCodeMode = {
|
|
1325
|
+
kind: "codemode";
|
|
1326
|
+
id: string;
|
|
1327
|
+
sessionID: SessionID;
|
|
1328
|
+
status: JobStatus;
|
|
1329
|
+
title?: string;
|
|
1330
|
+
time: JobTime;
|
|
1331
|
+
};
|
|
1300
1332
|
export type VcsInfo = {
|
|
1301
1333
|
provider?: string;
|
|
1302
1334
|
branch: VcsBranch;
|
|
@@ -1312,6 +1344,7 @@ export type UsageLimitsGo = {
|
|
|
1312
1344
|
};
|
|
1313
1345
|
export type ConfigModelCapabilities = {
|
|
1314
1346
|
tools?: boolean;
|
|
1347
|
+
freeform?: Array<ToolFreeformFormat>;
|
|
1315
1348
|
input?: Array<string>;
|
|
1316
1349
|
output?: Array<string>;
|
|
1317
1350
|
temperature?: boolean;
|
|
@@ -1406,6 +1439,7 @@ export type ProviderSettings = {
|
|
|
1406
1439
|
cache?: ProviderCache;
|
|
1407
1440
|
transport?: ProviderTransport;
|
|
1408
1441
|
encoding?: ProviderEncoding;
|
|
1442
|
+
tls?: ProviderTls;
|
|
1409
1443
|
} & {
|
|
1410
1444
|
[x: string]: any;
|
|
1411
1445
|
};
|
|
@@ -1424,6 +1458,7 @@ export type ConfigProviderSettings = {
|
|
|
1424
1458
|
cache?: ProviderCache;
|
|
1425
1459
|
transport?: ProviderTransport;
|
|
1426
1460
|
encoding?: ProviderEncoding;
|
|
1461
|
+
tls?: ProviderTls;
|
|
1427
1462
|
} & {
|
|
1428
1463
|
[x: string]: JsonValue | null;
|
|
1429
1464
|
};
|
|
@@ -1445,6 +1480,11 @@ export type ModelVariant = {
|
|
|
1445
1480
|
};
|
|
1446
1481
|
};
|
|
1447
1482
|
export type PermissionRuleset = Array<PermissionRule>;
|
|
1483
|
+
export type AutomationActionPrompt = {
|
|
1484
|
+
type: "prompt";
|
|
1485
|
+
prompt: string;
|
|
1486
|
+
to: AutomationTarget;
|
|
1487
|
+
};
|
|
1448
1488
|
export type UsageLimitsBudget = {
|
|
1449
1489
|
id: string;
|
|
1450
1490
|
limit: MoneyUSD;
|
|
@@ -1971,6 +2011,24 @@ export type SessionStepStarted = {
|
|
|
1971
2011
|
started: number;
|
|
1972
2012
|
};
|
|
1973
2013
|
};
|
|
2014
|
+
export type SessionStepFirstToken = {
|
|
2015
|
+
id: EventID;
|
|
2016
|
+
created: number;
|
|
2017
|
+
metadata?: {
|
|
2018
|
+
[x: string]: any;
|
|
2019
|
+
};
|
|
2020
|
+
type: "session.step.first-token";
|
|
2021
|
+
durable: {
|
|
2022
|
+
aggregateID: string;
|
|
2023
|
+
seq: EventSeq;
|
|
2024
|
+
version: 1;
|
|
2025
|
+
};
|
|
2026
|
+
location?: LocationRef;
|
|
2027
|
+
data: {
|
|
2028
|
+
sessionID: SessionID;
|
|
2029
|
+
assistantMessageID: SessionMessageID;
|
|
2030
|
+
};
|
|
2031
|
+
};
|
|
1974
2032
|
export type SessionStepStreamed = {
|
|
1975
2033
|
id: EventID;
|
|
1976
2034
|
created: number;
|
|
@@ -2912,6 +2970,25 @@ export type McpResourcesChanged = {
|
|
|
2912
2970
|
server: string;
|
|
2913
2971
|
};
|
|
2914
2972
|
};
|
|
2973
|
+
export type ExperimentalMcpEvent = {
|
|
2974
|
+
id: EventID;
|
|
2975
|
+
created: number;
|
|
2976
|
+
metadata?: {
|
|
2977
|
+
[x: string]: any;
|
|
2978
|
+
};
|
|
2979
|
+
type: "experimental.mcp.event";
|
|
2980
|
+
location?: LocationRef;
|
|
2981
|
+
data: {
|
|
2982
|
+
id: string;
|
|
2983
|
+
server: string;
|
|
2984
|
+
name: string;
|
|
2985
|
+
eventId: string;
|
|
2986
|
+
timestamp: string;
|
|
2987
|
+
data: JsonValue;
|
|
2988
|
+
cursor: string | null;
|
|
2989
|
+
truncated?: boolean | undefined;
|
|
2990
|
+
};
|
|
2991
|
+
};
|
|
2915
2992
|
export type SessionToolSuccess = {
|
|
2916
2993
|
id: EventID;
|
|
2917
2994
|
created: number;
|
|
@@ -2984,6 +3061,14 @@ export type SessionMessageToolStateError1 = {
|
|
|
2984
3061
|
[x: string]: JsonValue;
|
|
2985
3062
|
};
|
|
2986
3063
|
};
|
|
3064
|
+
export type GenerateVideoCreateResponse = {
|
|
3065
|
+
data: GenerateVideoRunning;
|
|
3066
|
+
};
|
|
3067
|
+
export type GenerateVideoCompleted = {
|
|
3068
|
+
id: GenerateVideoID;
|
|
3069
|
+
status: "completed";
|
|
3070
|
+
blobs: Array<BlobInfo>;
|
|
3071
|
+
};
|
|
2987
3072
|
export type GenerateDecisionAnswer = GeneratePredicateAnswer | GenerateChoiceAnswer | GenerateScoreAnswer | GenerateErrorAnswer;
|
|
2988
3073
|
export type VoiceModelsResponse = {
|
|
2989
3074
|
data: {
|
|
@@ -3072,14 +3157,14 @@ export type FormReplied = {
|
|
|
3072
3157
|
answer: FormAnswer1;
|
|
3073
3158
|
};
|
|
3074
3159
|
};
|
|
3075
|
-
export type
|
|
3160
|
+
export type AutomationTrigger = AutomationTriggerAt | AutomationTriggerEvery | AutomationTriggerCron | AutomationTriggerEvent;
|
|
3076
3161
|
export type ArtifactContent = {
|
|
3077
3162
|
info: ArtifactInfo;
|
|
3078
3163
|
files: {
|
|
3079
3164
|
[x: string]: string;
|
|
3080
3165
|
};
|
|
3081
3166
|
};
|
|
3082
|
-
export type JobInfo = JobShell | JobSubagent | JobImage;
|
|
3167
|
+
export type JobInfo = JobShell | JobSubagent | JobImage | JobCodeMode;
|
|
3083
3168
|
export type SessionInboxMove = {
|
|
3084
3169
|
id: SessionMessageID;
|
|
3085
3170
|
sessionID: SessionID;
|
|
@@ -3387,6 +3472,7 @@ export type ConfigEntry = {
|
|
|
3387
3472
|
};
|
|
3388
3473
|
compaction?: {
|
|
3389
3474
|
auto?: boolean;
|
|
3475
|
+
background?: boolean;
|
|
3390
3476
|
keep?: {
|
|
3391
3477
|
tokens?: number;
|
|
3392
3478
|
};
|
|
@@ -3511,14 +3597,17 @@ export type ConfigEntry = {
|
|
|
3511
3597
|
};
|
|
3512
3598
|
experimental?: {
|
|
3513
3599
|
portable_shell_scanner?: boolean;
|
|
3600
|
+
codemode_vm?: boolean;
|
|
3514
3601
|
all_flags?: boolean;
|
|
3515
3602
|
todo?: boolean;
|
|
3516
|
-
background_compaction?: boolean;
|
|
3517
3603
|
media_blob?: boolean;
|
|
3518
|
-
|
|
3604
|
+
automations?: boolean;
|
|
3519
3605
|
artifacts?: boolean;
|
|
3520
|
-
|
|
3606
|
+
video_generate?: boolean;
|
|
3521
3607
|
console_watches?: boolean;
|
|
3608
|
+
mcp_events?: boolean;
|
|
3609
|
+
full_codemode?: boolean;
|
|
3610
|
+
schedules?: boolean;
|
|
3522
3611
|
part_rows?: boolean;
|
|
3523
3612
|
image_generate?: boolean | {
|
|
3524
3613
|
model?: string | {
|
|
@@ -3540,6 +3629,7 @@ export type ConfigEntry = {
|
|
|
3540
3629
|
type: "directory";
|
|
3541
3630
|
path: AbsolutePath;
|
|
3542
3631
|
};
|
|
3632
|
+
export type AutomationAction = AutomationActionPrompt | AutomationActionCode;
|
|
3543
3633
|
export type UsageLimitsInfo = {
|
|
3544
3634
|
workspace: {
|
|
3545
3635
|
id: string;
|
|
@@ -3606,6 +3696,7 @@ export type SessionMessageAssistantTool1 = {
|
|
|
3606
3696
|
completed?: number;
|
|
3607
3697
|
};
|
|
3608
3698
|
};
|
|
3699
|
+
export type GenerateVideoJob = GenerateVideoRunning | GenerateVideoCompleted | GenerateVideoError;
|
|
3609
3700
|
export type GenerateDecisionResult = {
|
|
3610
3701
|
answers: Array<GenerateDecisionAnswer>;
|
|
3611
3702
|
cost?: MoneyUSD;
|
|
@@ -3620,28 +3711,6 @@ export type CredentialEntry = {
|
|
|
3620
3711
|
value: CredentialValue;
|
|
3621
3712
|
};
|
|
3622
3713
|
export type FormFields1 = [FormField1, ...Array<FormField1>];
|
|
3623
|
-
export type ScheduleInfo = {
|
|
3624
|
-
id: ScheduleID;
|
|
3625
|
-
sessionID?: SessionID;
|
|
3626
|
-
name?: string;
|
|
3627
|
-
when: ScheduleWhen;
|
|
3628
|
-
tz: string;
|
|
3629
|
-
if?: ScheduleCondition;
|
|
3630
|
-
until?: ScheduleCondition;
|
|
3631
|
-
action: ScheduleAction;
|
|
3632
|
-
status: ScheduleStatus;
|
|
3633
|
-
nextDueAt?: number;
|
|
3634
|
-
endsAt?: number;
|
|
3635
|
-
remainingRuns?: number;
|
|
3636
|
-
runCount: number;
|
|
3637
|
-
lastFiredAt?: number;
|
|
3638
|
-
lastOutcome?: ScheduleOutcome;
|
|
3639
|
-
lastOutput?: string;
|
|
3640
|
-
time: {
|
|
3641
|
-
created: number;
|
|
3642
|
-
updated: number;
|
|
3643
|
-
};
|
|
3644
|
-
};
|
|
3645
3714
|
export type AgentInfo = {
|
|
3646
3715
|
id: AgentID;
|
|
3647
3716
|
name: string;
|
|
@@ -3662,6 +3731,28 @@ export type SessionsResponse = {
|
|
|
3662
3731
|
next?: SessionsCursor | null;
|
|
3663
3732
|
};
|
|
3664
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
|
+
};
|
|
3665
3756
|
export type SessionInboxInfo = SessionInboxUser | SessionInboxSynthetic | SessionInboxCompaction | SessionInboxMove;
|
|
3666
3757
|
export type SessionMessageAssistant = {
|
|
3667
3758
|
id: SessionMessageID;
|
|
@@ -3670,6 +3761,7 @@ export type SessionMessageAssistant = {
|
|
|
3670
3761
|
};
|
|
3671
3762
|
time: {
|
|
3672
3763
|
created: number;
|
|
3764
|
+
firstToken?: number;
|
|
3673
3765
|
streamed?: number;
|
|
3674
3766
|
completed?: number;
|
|
3675
3767
|
};
|
|
@@ -3742,6 +3834,9 @@ export type SessionInboxEnqueued = {
|
|
|
3742
3834
|
};
|
|
3743
3835
|
};
|
|
3744
3836
|
export type SessionMessageAssistantContentEncoded = SessionMessageAssistantText1 | SessionMessageAssistantReasoning1 | SessionMessageAssistantTool1;
|
|
3837
|
+
export type GenerateVideoGetResponse = {
|
|
3838
|
+
data: GenerateVideoJob;
|
|
3839
|
+
};
|
|
3745
3840
|
export type GenerateDecisionsResponse = {
|
|
3746
3841
|
data: GenerateDecisionResult;
|
|
3747
3842
|
};
|
|
@@ -3805,8 +3900,8 @@ export type IntegrationInfo = {
|
|
|
3805
3900
|
methods: Array<IntegrationMethod>;
|
|
3806
3901
|
connections: Array<ConnectionInfo>;
|
|
3807
3902
|
};
|
|
3808
|
-
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 | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionUsageRecorded | SessionMessageContentUpdated;
|
|
3809
|
-
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 | 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 | V2EventRpc | V2EventServerConnected;
|
|
3903
|
+
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;
|
|
3810
3905
|
export type SessionLogItem = SessionEventDurable | EventLogSynced;
|
|
3811
3906
|
export type InvalidRequestError = {
|
|
3812
3907
|
readonly _tag: "InvalidRequestError";
|
|
@@ -3955,6 +4050,17 @@ export type ProviderRequestError = {
|
|
|
3955
4050
|
readonly retryAfterMs?: number | undefined;
|
|
3956
4051
|
};
|
|
3957
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;
|
|
3958
4064
|
export type IntegrationNotFoundError = {
|
|
3959
4065
|
readonly _tag: "IntegrationNotFoundError";
|
|
3960
4066
|
readonly integrationID: string;
|
|
@@ -3981,11 +4087,6 @@ export type McpServerNotFoundError = {
|
|
|
3981
4087
|
readonly message: string;
|
|
3982
4088
|
};
|
|
3983
4089
|
export declare const isMcpServerNotFoundError: (value: unknown) => value is McpServerNotFoundError;
|
|
3984
|
-
export type ForbiddenError = {
|
|
3985
|
-
readonly _tag: "ForbiddenError";
|
|
3986
|
-
readonly message: string;
|
|
3987
|
-
};
|
|
3988
|
-
export declare const isForbiddenError: (value: unknown) => value is ForbiddenError;
|
|
3989
4090
|
export type ProjectNotFoundError = {
|
|
3990
4091
|
readonly _tag: "ProjectNotFoundError";
|
|
3991
4092
|
readonly projectID: string;
|
|
@@ -4036,12 +4137,18 @@ export type PtyFeatureUnsupportedError = {
|
|
|
4036
4137
|
readonly message: string;
|
|
4037
4138
|
};
|
|
4038
4139
|
export declare const isPtyFeatureUnsupportedError: (value: unknown) => value is PtyFeatureUnsupportedError;
|
|
4039
|
-
export type
|
|
4040
|
-
readonly _tag: "
|
|
4041
|
-
readonly
|
|
4140
|
+
export type BlobNotFoundError = {
|
|
4141
|
+
readonly _tag: "BlobNotFoundError";
|
|
4142
|
+
readonly blobID: string;
|
|
4042
4143
|
readonly message: string;
|
|
4043
4144
|
};
|
|
4044
|
-
export declare const
|
|
4145
|
+
export declare const isBlobNotFoundError: (value: unknown) => value is BlobNotFoundError;
|
|
4146
|
+
export type AutomationNotFoundError = {
|
|
4147
|
+
readonly _tag: "AutomationNotFoundError";
|
|
4148
|
+
readonly automationID: string;
|
|
4149
|
+
readonly message: string;
|
|
4150
|
+
};
|
|
4151
|
+
export declare const isAutomationNotFoundError: (value: unknown) => value is AutomationNotFoundError;
|
|
4045
4152
|
export type ArtifactNotFoundError = {
|
|
4046
4153
|
readonly _tag: "ArtifactNotFoundError";
|
|
4047
4154
|
readonly artifactID: string;
|
|
@@ -4790,7 +4897,7 @@ export type ModelListInput = {
|
|
|
4790
4897
|
readonly location?: {
|
|
4791
4898
|
readonly directory?: string | undefined;
|
|
4792
4899
|
} | undefined;
|
|
4793
|
-
readonly types?: ReadonlyArray<"chat" | "decision" | "image" | (string & {})> | undefined;
|
|
4900
|
+
readonly types?: ReadonlyArray<"chat" | "decision" | "image" | "video" | (string & {})> | undefined;
|
|
4794
4901
|
};
|
|
4795
4902
|
export type ModelListOutput = {
|
|
4796
4903
|
location: LocationPublicRef;
|
|
@@ -4831,6 +4938,38 @@ export type ExperimentalGenerateImageInput = {
|
|
|
4831
4938
|
readonly resolution?: ("1K" | "2K" | "4K" | (string & {})) | undefined;
|
|
4832
4939
|
};
|
|
4833
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"];
|
|
4834
4973
|
export type ExperimentalGenerateDecisionsInput = {
|
|
4835
4974
|
readonly model: {
|
|
4836
4975
|
readonly id: string;
|
|
@@ -5356,7 +5495,7 @@ export type RpcCallInput = {
|
|
|
5356
5495
|
};
|
|
5357
5496
|
export type RpcCallOutput = RpcOutput;
|
|
5358
5497
|
export type EventSubscribeInput = {
|
|
5359
|
-
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.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" | `${"rpc."}${string}`> | undefined;
|
|
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;
|
|
5360
5499
|
};
|
|
5361
5500
|
export type EventSubscribeOutput = V2Event;
|
|
5362
5501
|
export type PtyListInput = {
|
|
@@ -5500,98 +5639,83 @@ export type ExperimentalMediaGetInput = {
|
|
|
5500
5639
|
readonly hash: string;
|
|
5501
5640
|
};
|
|
5502
5641
|
export type ExperimentalMediaGetOutput = globalThis.Uint8Array;
|
|
5503
|
-
export type
|
|
5504
|
-
readonly
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
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";
|
|
5513
5652
|
readonly at: string;
|
|
5514
|
-
readonly in?: never;
|
|
5515
|
-
readonly every?: never;
|
|
5516
|
-
readonly cron?: never;
|
|
5517
5653
|
readonly tz?: string;
|
|
5518
5654
|
} | {
|
|
5655
|
+
readonly type: "every";
|
|
5519
5656
|
readonly every: string;
|
|
5520
|
-
readonly in?: never;
|
|
5521
|
-
readonly at?: never;
|
|
5522
|
-
readonly cron?: never;
|
|
5523
5657
|
readonly tz?: string;
|
|
5524
5658
|
} | {
|
|
5659
|
+
readonly type: "cron";
|
|
5525
5660
|
readonly cron: string;
|
|
5526
|
-
readonly in?: never;
|
|
5527
|
-
readonly at?: never;
|
|
5528
|
-
readonly every?: never;
|
|
5529
5661
|
readonly tz?: string;
|
|
5530
|
-
}) | undefined;
|
|
5531
|
-
readonly if?: ({
|
|
5532
|
-
readonly run: string;
|
|
5533
|
-
readonly is?: string;
|
|
5534
|
-
readonly matches?: string;
|
|
5535
|
-
readonly changes?: boolean;
|
|
5536
|
-
readonly code?: never;
|
|
5537
5662
|
} | {
|
|
5538
|
-
readonly
|
|
5539
|
-
readonly
|
|
5540
|
-
readonly
|
|
5541
|
-
readonly
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
readonly
|
|
5547
|
-
readonly
|
|
5548
|
-
readonly
|
|
5549
|
-
|
|
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
|
+
};
|
|
5550
5680
|
} | {
|
|
5681
|
+
readonly type: "code";
|
|
5551
5682
|
readonly code: string;
|
|
5552
|
-
readonly
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
readonly changes?: never;
|
|
5556
|
-
}) | undefined;
|
|
5557
|
-
readonly ends?: {
|
|
5558
|
-
readonly after?: string;
|
|
5559
|
-
readonly at?: string;
|
|
5560
|
-
readonly times?: number;
|
|
5561
|
-
} | undefined;
|
|
5562
|
-
readonly prompt: string;
|
|
5683
|
+
readonly args?: JsonValue;
|
|
5684
|
+
};
|
|
5685
|
+
readonly expires?: string | undefined;
|
|
5563
5686
|
};
|
|
5564
|
-
export type
|
|
5565
|
-
data:
|
|
5687
|
+
export type ExperimentalAutomationCreateOutput = {
|
|
5688
|
+
data: AutomationInfo;
|
|
5566
5689
|
}["data"];
|
|
5567
|
-
export type
|
|
5568
|
-
readonly sessionID
|
|
5690
|
+
export type ExperimentalAutomationListInput = {
|
|
5691
|
+
readonly sessionID?: string | undefined;
|
|
5692
|
+
readonly directory?: string | undefined;
|
|
5569
5693
|
};
|
|
5570
|
-
export type
|
|
5571
|
-
data: Array<
|
|
5694
|
+
export type ExperimentalAutomationListOutput = {
|
|
5695
|
+
data: Array<AutomationInfo>;
|
|
5572
5696
|
}["data"];
|
|
5573
|
-
export type
|
|
5574
|
-
readonly
|
|
5697
|
+
export type ExperimentalAutomationGetInput = {
|
|
5698
|
+
readonly automationID: string;
|
|
5575
5699
|
};
|
|
5576
|
-
export type
|
|
5577
|
-
data:
|
|
5700
|
+
export type ExperimentalAutomationGetOutput = {
|
|
5701
|
+
data: AutomationInfo;
|
|
5578
5702
|
}["data"];
|
|
5579
|
-
export type
|
|
5580
|
-
readonly
|
|
5703
|
+
export type ExperimentalAutomationPauseInput = {
|
|
5704
|
+
readonly automationID: string;
|
|
5581
5705
|
};
|
|
5582
|
-
export type
|
|
5583
|
-
data:
|
|
5706
|
+
export type ExperimentalAutomationPauseOutput = {
|
|
5707
|
+
data: AutomationInfo;
|
|
5584
5708
|
}["data"];
|
|
5585
|
-
export type
|
|
5586
|
-
readonly
|
|
5709
|
+
export type ExperimentalAutomationResumeInput = {
|
|
5710
|
+
readonly automationID: string;
|
|
5587
5711
|
};
|
|
5588
|
-
export type
|
|
5589
|
-
data:
|
|
5712
|
+
export type ExperimentalAutomationResumeOutput = {
|
|
5713
|
+
data: AutomationInfo;
|
|
5590
5714
|
}["data"];
|
|
5591
|
-
export type
|
|
5592
|
-
readonly
|
|
5715
|
+
export type ExperimentalAutomationDeleteInput = {
|
|
5716
|
+
readonly automationID: string;
|
|
5593
5717
|
};
|
|
5594
|
-
export type
|
|
5718
|
+
export type ExperimentalAutomationDeleteOutput = void;
|
|
5595
5719
|
export type ExperimentalArtifactsProvidersInput = {
|
|
5596
5720
|
readonly location?: {
|
|
5597
5721
|
readonly directory?: string | undefined;
|
|
@@ -5671,7 +5795,7 @@ export type ExperimentalArtifactsViewInput = {
|
|
|
5671
5795
|
export type ExperimentalArtifactsViewOutput = globalThis.Uint8Array;
|
|
5672
5796
|
export type ExperimentalJobListInput = {
|
|
5673
5797
|
readonly sessionID?: string | undefined;
|
|
5674
|
-
readonly kind?: ("shell" | "subagent" | "image") | undefined;
|
|
5798
|
+
readonly kind?: ("shell" | "subagent" | "image" | "codemode") | undefined;
|
|
5675
5799
|
readonly status?: ("running" | "completed" | "error" | "cancelled") | undefined;
|
|
5676
5800
|
readonly descendants?: boolean | undefined;
|
|
5677
5801
|
};
|