@opencode/client 2.0.32 → 2.1.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-2ny4vxct.js → service-version-2ny4vxct.js} +2 -2
- package/dist/chunks/{shared-events-m77rqa4a.js → service-version-61wt4y9h.js} +22 -17
- package/dist/chunks/{shared-events-1y4a697q.js → service-version-6vp15eh6.js} +1 -1
- package/dist/chunks/{shared-events-d86rytwj.js → service-version-bah0qqxw.js} +5 -5
- package/dist/chunks/{shared-events-vt9jbch8.js → service-version-ezt8t3fk.js} +2 -1
- package/dist/chunks/{shared-events-qf89ssmg.js → service-version-f93mzqah.js} +19 -5
- package/dist/chunks/{shared-events-frbwqjmf.js → service-version-frbwqjmf.js} +1 -1
- package/dist/chunks/{shared-events-mnyft54j.js → service-version-mnyft54j.js} +2 -2
- package/dist/chunks/{shared-events-hqeq47hr.js → service-version-nv358xrg.js} +17 -3
- package/dist/chunks/{shared-events-t1xa31vm.js → service-version-t1xa31vm.js} +1 -1
- package/dist/chunks/{shared-events-q008jpwa.js → service-version-x61gkv37.js} +4 -4
- package/dist/chunks/{shared-events-td2fzm91.js → service-version-yqfhh888.js} +1 -1
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +62 -29
- package/dist/effect/client.d.ts +1387 -1362
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +1278 -1253
- package/dist/effect/generated/client.js +3 -3
- package/dist/effect/generated/index.js +4 -4
- package/dist/effect/index.js +8 -8
- package/dist/effect/rpc.js +2 -2
- package/dist/effect/service.js +6 -6
- package/dist/promise/client.d.ts +8 -7
- package/dist/promise/client.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.d.ts +3 -2
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +6 -4
- package/dist/promise/generated/types.d.ts +228 -1429
- package/dist/promise/generated/types.js +3 -1
- package/dist/promise/index.js +10 -8
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +6 -6
- package/dist/pty-handoff.js +1 -1
- package/dist/rpc-runtime.d.ts +5 -5
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- package/dist/service-probe.d.ts +5 -5
- 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.js +9 -9
- package/dist/solid/index.js +12 -12
- package/dist/solid/pty.js +1 -1
- package/dist/solid/usage.js +1 -1
- package/package.json +6 -6
- /package/dist/chunks/{shared-events-6mptkzbc.js → service-version-6mptkzbc.js} +0 -0
- /package/dist/chunks/{shared-events-7f0py9js.js → service-version-7f0py9js.js} +0 -0
- /package/dist/chunks/{shared-events-8s2anffy.js → service-version-8s2anffy.js} +0 -0
- /package/dist/chunks/{shared-events-9rqn6x4v.js → service-version-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{shared-events-gne7h7mq.js → service-version-gne7h7mq.js} +0 -0
- /package/dist/chunks/{shared-events-js54wxgp.js → service-version-js54wxgp.js} +0 -0
- /package/dist/chunks/{shared-events-m2eywc8w.js → service-version-m2eywc8w.js} +0 -0
- /package/dist/chunks/{shared-events-qav6mfdz.js → service-version-qav6mfdz.js} +0 -0
- /package/dist/chunks/{shared-events-sxt88q69.js → service-version-sxt88q69.js} +0 -0
- /package/dist/chunks/{shared-events-ve4aws36.js → service-version-ve4aws36.js} +0 -0
- /package/dist/chunks/{shared-events-vmytr4q8.js → service-version-vmytr4q8.js} +0 -0
- /package/dist/chunks/{shared-events-vyas3vgt.js → service-version-vyas3vgt.js} +0 -0
- /package/dist/chunks/{shared-events-xgnj2w4v.js → service-version-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{shared-events-ydhz1zrh.js → service-version-ydhz1zrh.js} +0 -0
|
@@ -116,7 +116,7 @@ export type PromptMention = {
|
|
|
116
116
|
export type SkillID = string;
|
|
117
117
|
export type SkillName = string;
|
|
118
118
|
export type ShellID = string;
|
|
119
|
-
export type
|
|
119
|
+
export type SessionMessageNative = {
|
|
120
120
|
[x: string]: JsonValue;
|
|
121
121
|
};
|
|
122
122
|
export type SessionMessageToolStateStreaming = {
|
|
@@ -180,7 +180,7 @@ export type SessionInboxSyntheticPayload1 = {
|
|
|
180
180
|
[x: string]: any;
|
|
181
181
|
};
|
|
182
182
|
};
|
|
183
|
-
export type
|
|
183
|
+
export type SessionMessageNative1 = {
|
|
184
184
|
[x: string]: any;
|
|
185
185
|
};
|
|
186
186
|
export type ToolFileContent1 = {
|
|
@@ -345,6 +345,13 @@ export type McpResourceTemplate = {
|
|
|
345
345
|
description?: string;
|
|
346
346
|
mimeType?: string;
|
|
347
347
|
};
|
|
348
|
+
export type CredentialKey = {
|
|
349
|
+
type: "key";
|
|
350
|
+
key: string;
|
|
351
|
+
metadata?: {
|
|
352
|
+
[x: string]: JsonValue;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
348
355
|
export type ProjectVcs = string;
|
|
349
356
|
export type ProjectIcon = {
|
|
350
357
|
url?: string;
|
|
@@ -493,14 +500,6 @@ export type ModelRef = {
|
|
|
493
500
|
providerID: ProviderID;
|
|
494
501
|
variant?: string;
|
|
495
502
|
};
|
|
496
|
-
export type SessionProviderContextProvenance = {
|
|
497
|
-
providerID: ProviderID;
|
|
498
|
-
provider: string;
|
|
499
|
-
modelID: string;
|
|
500
|
-
route: string;
|
|
501
|
-
protocol: string;
|
|
502
|
-
endpoint: string;
|
|
503
|
-
};
|
|
504
503
|
export type ProviderSettings = {
|
|
505
504
|
timeout?: number | false;
|
|
506
505
|
headerTimeout?: number | false;
|
|
@@ -599,7 +598,6 @@ export type SessionMessageCompactionRunning = {
|
|
|
599
598
|
status: "running";
|
|
600
599
|
reason: "auto" | "manual";
|
|
601
600
|
summary: string;
|
|
602
|
-
recent: string;
|
|
603
601
|
};
|
|
604
602
|
export type FileSystemEntry = {
|
|
605
603
|
path: RelativePath;
|
|
@@ -720,12 +718,12 @@ export type ShellInfo1 = {
|
|
|
720
718
|
export type SessionMessageAssistantText = {
|
|
721
719
|
type: "text";
|
|
722
720
|
text: string;
|
|
723
|
-
|
|
721
|
+
native?: SessionMessageNative;
|
|
724
722
|
};
|
|
725
723
|
export type SessionMessageAssistantReasoning = {
|
|
726
724
|
type: "reasoning";
|
|
727
725
|
text: string;
|
|
728
|
-
|
|
726
|
+
native?: SessionMessageNative;
|
|
729
727
|
time?: {
|
|
730
728
|
created: number;
|
|
731
729
|
completed?: number;
|
|
@@ -805,12 +803,12 @@ export type LocationRef = {
|
|
|
805
803
|
export type SessionMessageAssistantText1 = {
|
|
806
804
|
type: "text";
|
|
807
805
|
text: string;
|
|
808
|
-
|
|
806
|
+
native?: SessionMessageNative1;
|
|
809
807
|
};
|
|
810
808
|
export type SessionMessageAssistantReasoning1 = {
|
|
811
809
|
type: "reasoning";
|
|
812
810
|
text: string;
|
|
813
|
-
|
|
811
|
+
native?: SessionMessageNative1;
|
|
814
812
|
time?: {
|
|
815
813
|
created: number;
|
|
816
814
|
completed?: number;
|
|
@@ -892,6 +890,7 @@ export type ModelCompatibility = {
|
|
|
892
890
|
requireFinishReason?: boolean;
|
|
893
891
|
requireAssistantAfterTool?: boolean;
|
|
894
892
|
supportsPromptCacheKey?: boolean;
|
|
893
|
+
streamUsage?: boolean;
|
|
895
894
|
cacheFormat?: ModelCacheFormat;
|
|
896
895
|
supportsThinkingBlockBinding?: boolean;
|
|
897
896
|
supportsEffortUpdates?: boolean;
|
|
@@ -903,6 +902,7 @@ export type ProviderCompatibility = {
|
|
|
903
902
|
requireFinishReason?: boolean;
|
|
904
903
|
requireAssistantAfterTool?: boolean;
|
|
905
904
|
supportsPromptCacheKey?: boolean;
|
|
905
|
+
streamUsage?: boolean;
|
|
906
906
|
cacheFormat?: ModelCacheFormat;
|
|
907
907
|
};
|
|
908
908
|
export type ModelCost = {
|
|
@@ -1121,7 +1121,7 @@ export type FormMultiselectField1 = {
|
|
|
1121
1121
|
custom?: boolean;
|
|
1122
1122
|
default?: Array<string>;
|
|
1123
1123
|
};
|
|
1124
|
-
export type
|
|
1124
|
+
export type FormAnswer1 = {
|
|
1125
1125
|
[x: string]: FormValue1;
|
|
1126
1126
|
};
|
|
1127
1127
|
export type VcsInfo = {
|
|
@@ -1203,10 +1203,22 @@ export type SessionMessageModelSelected = {
|
|
|
1203
1203
|
model: ModelRef;
|
|
1204
1204
|
previous?: ModelRef;
|
|
1205
1205
|
};
|
|
1206
|
-
export type
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1206
|
+
export type SessionMessageCompactionCompleted = {
|
|
1207
|
+
type: "compaction";
|
|
1208
|
+
id: SessionMessageID;
|
|
1209
|
+
metadata?: {
|
|
1210
|
+
[x: string]: JsonValue;
|
|
1211
|
+
};
|
|
1212
|
+
time: {
|
|
1213
|
+
created: number;
|
|
1214
|
+
};
|
|
1215
|
+
status: "completed";
|
|
1216
|
+
reason: "auto" | "manual";
|
|
1217
|
+
model?: ModelRef;
|
|
1218
|
+
native?: SessionMessageNative;
|
|
1219
|
+
summary: string;
|
|
1220
|
+
cost?: MoneyUSD;
|
|
1221
|
+
tokens?: TokenUsageInfo;
|
|
1210
1222
|
};
|
|
1211
1223
|
export type ProviderRequest = {
|
|
1212
1224
|
settings: ProviderSettings;
|
|
@@ -1393,6 +1405,40 @@ export type SessionViewed = {
|
|
|
1393
1405
|
idle: number;
|
|
1394
1406
|
};
|
|
1395
1407
|
};
|
|
1408
|
+
export type SessionArchived = {
|
|
1409
|
+
id: EventID;
|
|
1410
|
+
created: number;
|
|
1411
|
+
metadata?: {
|
|
1412
|
+
[x: string]: any;
|
|
1413
|
+
};
|
|
1414
|
+
type: "session.archived";
|
|
1415
|
+
durable: {
|
|
1416
|
+
aggregateID: string;
|
|
1417
|
+
seq: EventSeq;
|
|
1418
|
+
version: 1;
|
|
1419
|
+
};
|
|
1420
|
+
location?: LocationRef;
|
|
1421
|
+
data: {
|
|
1422
|
+
sessionID: SessionID;
|
|
1423
|
+
};
|
|
1424
|
+
};
|
|
1425
|
+
export type SessionUnarchived = {
|
|
1426
|
+
id: EventID;
|
|
1427
|
+
created: number;
|
|
1428
|
+
metadata?: {
|
|
1429
|
+
[x: string]: any;
|
|
1430
|
+
};
|
|
1431
|
+
type: "session.unarchived";
|
|
1432
|
+
durable: {
|
|
1433
|
+
aggregateID: string;
|
|
1434
|
+
seq: EventSeq;
|
|
1435
|
+
version: 1;
|
|
1436
|
+
};
|
|
1437
|
+
location?: LocationRef;
|
|
1438
|
+
data: {
|
|
1439
|
+
sessionID: SessionID;
|
|
1440
|
+
};
|
|
1441
|
+
};
|
|
1396
1442
|
export type SessionDeleted = {
|
|
1397
1443
|
id: EventID;
|
|
1398
1444
|
created: number;
|
|
@@ -1726,7 +1772,7 @@ export type SessionStepEnded = {
|
|
|
1726
1772
|
assistantMessageID: SessionMessageID;
|
|
1727
1773
|
finish: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
1728
1774
|
rawFinish?: string;
|
|
1729
|
-
|
|
1775
|
+
native?: SessionMessageNative1;
|
|
1730
1776
|
cost: MoneyUSD;
|
|
1731
1777
|
tokens: TokenUsageInfo;
|
|
1732
1778
|
snapshot?: SnapshotID;
|
|
@@ -1752,7 +1798,7 @@ export type SessionStepFailed = {
|
|
|
1752
1798
|
error: SessionStructuredError;
|
|
1753
1799
|
finish?: "content-filter";
|
|
1754
1800
|
rawFinish?: string;
|
|
1755
|
-
|
|
1801
|
+
native?: SessionMessageNative1;
|
|
1756
1802
|
cost?: MoneyUSD;
|
|
1757
1803
|
tokens?: TokenUsageInfo;
|
|
1758
1804
|
snapshot?: SnapshotID;
|
|
@@ -1796,7 +1842,7 @@ export type SessionTextEnded = {
|
|
|
1796
1842
|
assistantMessageID: SessionMessageID;
|
|
1797
1843
|
ordinal: number;
|
|
1798
1844
|
text: string;
|
|
1799
|
-
|
|
1845
|
+
native?: SessionMessageNative1;
|
|
1800
1846
|
};
|
|
1801
1847
|
};
|
|
1802
1848
|
export type SessionReasoningStarted = {
|
|
@@ -1816,7 +1862,7 @@ export type SessionReasoningStarted = {
|
|
|
1816
1862
|
sessionID: SessionID;
|
|
1817
1863
|
assistantMessageID: SessionMessageID;
|
|
1818
1864
|
ordinal: number;
|
|
1819
|
-
|
|
1865
|
+
native?: SessionMessageNative1;
|
|
1820
1866
|
};
|
|
1821
1867
|
};
|
|
1822
1868
|
export type SessionReasoningEnded = {
|
|
@@ -1837,7 +1883,7 @@ export type SessionReasoningEnded = {
|
|
|
1837
1883
|
assistantMessageID: SessionMessageID;
|
|
1838
1884
|
ordinal: number;
|
|
1839
1885
|
text: string;
|
|
1840
|
-
|
|
1886
|
+
native?: SessionMessageNative1;
|
|
1841
1887
|
};
|
|
1842
1888
|
};
|
|
1843
1889
|
export type SessionToolInputStarted = {
|
|
@@ -1901,7 +1947,7 @@ export type SessionToolCalled = {
|
|
|
1901
1947
|
[x: string]: any;
|
|
1902
1948
|
};
|
|
1903
1949
|
executed: boolean;
|
|
1904
|
-
|
|
1950
|
+
native?: SessionMessageNative1;
|
|
1905
1951
|
};
|
|
1906
1952
|
};
|
|
1907
1953
|
export type SessionRetryScheduled = {
|
|
@@ -1941,10 +1987,32 @@ export type SessionCompactionStarted = {
|
|
|
1941
1987
|
data: {
|
|
1942
1988
|
sessionID: SessionID;
|
|
1943
1989
|
reason: "auto" | "manual";
|
|
1944
|
-
recent: string;
|
|
1945
1990
|
inputID?: SessionMessageID;
|
|
1946
1991
|
};
|
|
1947
1992
|
};
|
|
1993
|
+
export type SessionCompactionEnded = {
|
|
1994
|
+
id: EventID;
|
|
1995
|
+
created: number;
|
|
1996
|
+
metadata?: {
|
|
1997
|
+
[x: string]: any;
|
|
1998
|
+
};
|
|
1999
|
+
type: "session.compaction.ended";
|
|
2000
|
+
durable: {
|
|
2001
|
+
aggregateID: string;
|
|
2002
|
+
seq: EventSeq;
|
|
2003
|
+
version: 1;
|
|
2004
|
+
};
|
|
2005
|
+
location?: LocationRef;
|
|
2006
|
+
data: {
|
|
2007
|
+
sessionID: SessionID;
|
|
2008
|
+
reason: "auto" | "manual";
|
|
2009
|
+
model?: ModelRef;
|
|
2010
|
+
native?: SessionMessageNative1;
|
|
2011
|
+
text: string;
|
|
2012
|
+
cost?: MoneyUSD;
|
|
2013
|
+
tokens?: TokenUsageInfo;
|
|
2014
|
+
};
|
|
2015
|
+
};
|
|
1948
2016
|
export type SessionCompactionFailed = {
|
|
1949
2017
|
id: EventID;
|
|
1950
2018
|
created: number;
|
|
@@ -2618,7 +2686,7 @@ export type SessionToolSuccess = {
|
|
|
2618
2686
|
[x: string]: JsonValue;
|
|
2619
2687
|
};
|
|
2620
2688
|
executed: boolean;
|
|
2621
|
-
|
|
2689
|
+
native?: SessionMessageNative1;
|
|
2622
2690
|
};
|
|
2623
2691
|
};
|
|
2624
2692
|
export type SessionToolFailed = {
|
|
@@ -2644,7 +2712,7 @@ export type SessionToolFailed = {
|
|
|
2644
2712
|
[x: string]: JsonValue;
|
|
2645
2713
|
};
|
|
2646
2714
|
executed: boolean;
|
|
2647
|
-
|
|
2715
|
+
native?: SessionMessageNative1;
|
|
2648
2716
|
};
|
|
2649
2717
|
};
|
|
2650
2718
|
export type SessionMessageToolStateCompleted1 = {
|
|
@@ -2678,14 +2746,6 @@ export type FormState = {
|
|
|
2678
2746
|
status: "cancelled";
|
|
2679
2747
|
message?: string;
|
|
2680
2748
|
};
|
|
2681
|
-
export type CredentialKey = {
|
|
2682
|
-
type: "key";
|
|
2683
|
-
key: string;
|
|
2684
|
-
metadata?: {
|
|
2685
|
-
[x: string]: JsonValue;
|
|
2686
|
-
};
|
|
2687
|
-
configuration?: FormAnswer;
|
|
2688
|
-
};
|
|
2689
2749
|
export type ProviderInfo = {
|
|
2690
2750
|
id: ProviderID;
|
|
2691
2751
|
canonical?: ProviderID;
|
|
@@ -2707,6 +2767,7 @@ export type VoiceSessionResponse = {
|
|
|
2707
2767
|
transport: VoiceTransport;
|
|
2708
2768
|
};
|
|
2709
2769
|
};
|
|
2770
|
+
export type CredentialValue = CredentialOAuth | CredentialKey | CredentialExternal;
|
|
2710
2771
|
export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
|
|
2711
2772
|
export type PtyCreated = {
|
|
2712
2773
|
id: EventID;
|
|
@@ -2766,7 +2827,7 @@ export type FormReplied = {
|
|
|
2766
2827
|
data: {
|
|
2767
2828
|
id: FormID;
|
|
2768
2829
|
sessionID: string;
|
|
2769
|
-
answer:
|
|
2830
|
+
answer: FormAnswer1;
|
|
2770
2831
|
};
|
|
2771
2832
|
};
|
|
2772
2833
|
export type SessionInboxMove = {
|
|
@@ -2803,50 +2864,7 @@ export type SessionStatsInfo = {
|
|
|
2803
2864
|
activity: Array<SessionStatsActivity>;
|
|
2804
2865
|
models: Array<SessionStatsModelUsage>;
|
|
2805
2866
|
};
|
|
2806
|
-
export type
|
|
2807
|
-
type: "compaction";
|
|
2808
|
-
id: SessionMessageID;
|
|
2809
|
-
metadata?: {
|
|
2810
|
-
[x: string]: JsonValue;
|
|
2811
|
-
};
|
|
2812
|
-
time: {
|
|
2813
|
-
created: number;
|
|
2814
|
-
};
|
|
2815
|
-
status: "completed";
|
|
2816
|
-
reason: "auto" | "manual";
|
|
2817
|
-
model?: ModelRef;
|
|
2818
|
-
providerState?: SessionMessageProviderState;
|
|
2819
|
-
summary: string;
|
|
2820
|
-
recent: string;
|
|
2821
|
-
providerContext?: SessionProviderContext;
|
|
2822
|
-
cost?: MoneyUSD;
|
|
2823
|
-
tokens?: TokenUsageInfo;
|
|
2824
|
-
};
|
|
2825
|
-
export type SessionCompactionEnded = {
|
|
2826
|
-
id: EventID;
|
|
2827
|
-
created: number;
|
|
2828
|
-
metadata?: {
|
|
2829
|
-
[x: string]: any;
|
|
2830
|
-
};
|
|
2831
|
-
type: "session.compaction.ended";
|
|
2832
|
-
durable: {
|
|
2833
|
-
aggregateID: string;
|
|
2834
|
-
seq: EventSeq;
|
|
2835
|
-
version: 1;
|
|
2836
|
-
};
|
|
2837
|
-
location?: LocationRef;
|
|
2838
|
-
data: {
|
|
2839
|
-
sessionID: SessionID;
|
|
2840
|
-
reason: "auto" | "manual";
|
|
2841
|
-
model?: ModelRef;
|
|
2842
|
-
providerState?: SessionMessageProviderState1;
|
|
2843
|
-
providerContext?: SessionProviderContext;
|
|
2844
|
-
text: string;
|
|
2845
|
-
recent: string;
|
|
2846
|
-
cost?: MoneyUSD;
|
|
2847
|
-
tokens?: TokenUsageInfo;
|
|
2848
|
-
};
|
|
2849
|
-
};
|
|
2867
|
+
export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
|
|
2850
2868
|
export type ModelInfo = {
|
|
2851
2869
|
id: string;
|
|
2852
2870
|
modelID: string;
|
|
@@ -3225,6 +3243,7 @@ export type ConfigEntry = {
|
|
|
3225
3243
|
};
|
|
3226
3244
|
experimental?: {
|
|
3227
3245
|
portable_shell_scanner?: boolean;
|
|
3246
|
+
todo?: boolean;
|
|
3228
3247
|
subagent_depth?: number;
|
|
3229
3248
|
policies?: Array<{
|
|
3230
3249
|
action: "provider.use" | "tool.use" | "integration.use";
|
|
@@ -3252,8 +3271,7 @@ export type SessionMessageAssistantTool = {
|
|
|
3252
3271
|
id: string;
|
|
3253
3272
|
name: string;
|
|
3254
3273
|
executed?: boolean;
|
|
3255
|
-
|
|
3256
|
-
providerResultState?: SessionMessageProviderState;
|
|
3274
|
+
native?: SessionMessageNative;
|
|
3257
3275
|
state: SessionMessageToolStateStreaming | SessionMessageToolStateRunning | SessionMessageToolStateCompleted | SessionMessageToolStateError;
|
|
3258
3276
|
time: {
|
|
3259
3277
|
created: number;
|
|
@@ -3283,8 +3301,7 @@ export type SessionMessageAssistantTool1 = {
|
|
|
3283
3301
|
id: string;
|
|
3284
3302
|
name: string;
|
|
3285
3303
|
executed?: boolean;
|
|
3286
|
-
|
|
3287
|
-
providerResultState?: SessionMessageProviderState1;
|
|
3304
|
+
native?: SessionMessageNative1;
|
|
3288
3305
|
state: SessionMessageToolStateStreaming | SessionMessageToolStateRunning1 | SessionMessageToolStateCompleted1 | SessionMessageToolStateError1;
|
|
3289
3306
|
time: {
|
|
3290
3307
|
created: number;
|
|
@@ -3293,9 +3310,14 @@ export type SessionMessageAssistantTool1 = {
|
|
|
3293
3310
|
};
|
|
3294
3311
|
};
|
|
3295
3312
|
export type FormFields = [FormField, ...Array<FormField>];
|
|
3296
|
-
export type
|
|
3313
|
+
export type CredentialEntry = {
|
|
3314
|
+
id: CredentialID;
|
|
3315
|
+
integrationID: IntegrationID;
|
|
3316
|
+
label: string;
|
|
3317
|
+
active: boolean;
|
|
3318
|
+
value: CredentialValue;
|
|
3319
|
+
};
|
|
3297
3320
|
export type FormFields2 = [FormField1, ...Array<FormField1>];
|
|
3298
|
-
export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
|
|
3299
3321
|
export type SessionsResponse = {
|
|
3300
3322
|
data: Array<SessionInfo>;
|
|
3301
3323
|
cursor: {
|
|
@@ -3325,7 +3347,7 @@ export type SessionMessageAssistant = {
|
|
|
3325
3347
|
};
|
|
3326
3348
|
finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
3327
3349
|
rawFinish?: string;
|
|
3328
|
-
|
|
3350
|
+
native?: SessionMessageNative;
|
|
3329
3351
|
cost?: MoneyUSD;
|
|
3330
3352
|
tokens?: TokenUsageInfo;
|
|
3331
3353
|
error?: SessionStructuredError;
|
|
@@ -3383,13 +3405,6 @@ export type IntegrationExternalMethod = {
|
|
|
3383
3405
|
label: string;
|
|
3384
3406
|
form?: FormFields;
|
|
3385
3407
|
};
|
|
3386
|
-
export type CredentialEntry = {
|
|
3387
|
-
id: CredentialID;
|
|
3388
|
-
integrationID: IntegrationID;
|
|
3389
|
-
label: string;
|
|
3390
|
-
active: boolean;
|
|
3391
|
-
value: CredentialValue;
|
|
3392
|
-
};
|
|
3393
3408
|
export type FormInfo1 = {
|
|
3394
3409
|
id: FormID;
|
|
3395
3410
|
sessionID: string;
|
|
@@ -3441,7 +3456,7 @@ export type SessionMessagesResponse = {
|
|
|
3441
3456
|
next?: string | null;
|
|
3442
3457
|
};
|
|
3443
3458
|
};
|
|
3444
|
-
export type SessionEventDurable = SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionMetadataUpdated | SessionPermissions | SessionViewed | 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;
|
|
3459
|
+
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;
|
|
3445
3460
|
export type IntegrationInfo = {
|
|
3446
3461
|
id: IntegrationID;
|
|
3447
3462
|
name: string;
|
|
@@ -3451,7 +3466,7 @@ export type IntegrationInfo = {
|
|
|
3451
3466
|
methods: Array<IntegrationMethod>;
|
|
3452
3467
|
connections: Array<ConnectionInfo>;
|
|
3453
3468
|
};
|
|
3454
|
-
export type V2Event = LocationShutdown | ModelsDevRefreshed | CredentialUpdated | CredentialSwitched | IntegrationUpdated | ProviderUpdated | ModelUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionMetadataUpdated | SessionPermissions | SessionViewed | 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 | ShellCreated | ShellExited | ShellDeleted | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatusUpdated | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | V2EventRpc | V2EventServerConnected;
|
|
3469
|
+
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 | ShellCreated | ShellExited | ShellDeleted | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatusUpdated | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | V2EventRpc | V2EventServerConnected;
|
|
3455
3470
|
export type SessionLogItem = SessionEventDurable | EventLogSynced;
|
|
3456
3471
|
export type InvalidRequestError = {
|
|
3457
3472
|
readonly _tag: "InvalidRequestError";
|
|
@@ -3602,6 +3617,12 @@ export type ProjectNotFoundError = {
|
|
|
3602
3617
|
readonly message: string;
|
|
3603
3618
|
};
|
|
3604
3619
|
export declare const isProjectNotFoundError: (value: unknown) => value is ProjectNotFoundError;
|
|
3620
|
+
export type PermissionSavedNotFoundError = {
|
|
3621
|
+
readonly _tag: "PermissionSavedNotFoundError";
|
|
3622
|
+
readonly id: string;
|
|
3623
|
+
readonly message: string;
|
|
3624
|
+
};
|
|
3625
|
+
export declare const isPermissionSavedNotFoundError: (value: unknown) => value is PermissionSavedNotFoundError;
|
|
3605
3626
|
export type PermissionNotFoundError = {
|
|
3606
3627
|
readonly _tag: "PermissionNotFoundError";
|
|
3607
3628
|
readonly requestID: string;
|
|
@@ -3744,6 +3765,7 @@ export type SessionListInput = {
|
|
|
3744
3765
|
readonly order?: "asc" | "desc" | undefined;
|
|
3745
3766
|
readonly search?: string | undefined;
|
|
3746
3767
|
readonly parentID?: string | null | undefined;
|
|
3768
|
+
readonly archived?: boolean | undefined;
|
|
3747
3769
|
readonly directory?: string | undefined;
|
|
3748
3770
|
readonly project?: string | undefined;
|
|
3749
3771
|
readonly subpath?: string | undefined;
|
|
@@ -3754,6 +3776,7 @@ export type SessionListInput = {
|
|
|
3754
3776
|
readonly order?: "asc" | "desc" | undefined;
|
|
3755
3777
|
readonly search?: string | undefined;
|
|
3756
3778
|
readonly parentID?: string | null | undefined;
|
|
3779
|
+
readonly archived?: boolean | undefined;
|
|
3757
3780
|
readonly directory?: string | undefined;
|
|
3758
3781
|
readonly project?: string | undefined;
|
|
3759
3782
|
readonly subpath?: string | undefined;
|
|
@@ -3764,6 +3787,7 @@ export type SessionListInput = {
|
|
|
3764
3787
|
readonly order?: "asc" | "desc" | undefined;
|
|
3765
3788
|
readonly search?: string | undefined;
|
|
3766
3789
|
readonly parentID?: string | null | undefined;
|
|
3790
|
+
readonly archived?: boolean | undefined;
|
|
3767
3791
|
readonly directory?: string | undefined;
|
|
3768
3792
|
readonly project?: string | undefined;
|
|
3769
3793
|
readonly subpath?: string | undefined;
|
|
@@ -3774,16 +3798,29 @@ export type SessionListInput = {
|
|
|
3774
3798
|
readonly order?: "asc" | "desc" | undefined;
|
|
3775
3799
|
readonly search?: string | undefined;
|
|
3776
3800
|
readonly parentID?: string | null | undefined;
|
|
3801
|
+
readonly archived?: boolean | undefined;
|
|
3777
3802
|
readonly directory?: string | undefined;
|
|
3778
3803
|
readonly project?: string | undefined;
|
|
3779
3804
|
readonly subpath?: string | undefined;
|
|
3780
3805
|
readonly cursor?: string | undefined;
|
|
3781
3806
|
}["parentID"];
|
|
3807
|
+
readonly archived?: {
|
|
3808
|
+
readonly limit?: number | undefined;
|
|
3809
|
+
readonly order?: "asc" | "desc" | undefined;
|
|
3810
|
+
readonly search?: string | undefined;
|
|
3811
|
+
readonly parentID?: string | null | undefined;
|
|
3812
|
+
readonly archived?: boolean | undefined;
|
|
3813
|
+
readonly directory?: string | undefined;
|
|
3814
|
+
readonly project?: string | undefined;
|
|
3815
|
+
readonly subpath?: string | undefined;
|
|
3816
|
+
readonly cursor?: string | undefined;
|
|
3817
|
+
}["archived"];
|
|
3782
3818
|
readonly directory?: {
|
|
3783
3819
|
readonly limit?: number | undefined;
|
|
3784
3820
|
readonly order?: "asc" | "desc" | undefined;
|
|
3785
3821
|
readonly search?: string | undefined;
|
|
3786
3822
|
readonly parentID?: string | null | undefined;
|
|
3823
|
+
readonly archived?: boolean | undefined;
|
|
3787
3824
|
readonly directory?: string | undefined;
|
|
3788
3825
|
readonly project?: string | undefined;
|
|
3789
3826
|
readonly subpath?: string | undefined;
|
|
@@ -3794,6 +3831,7 @@ export type SessionListInput = {
|
|
|
3794
3831
|
readonly order?: "asc" | "desc" | undefined;
|
|
3795
3832
|
readonly search?: string | undefined;
|
|
3796
3833
|
readonly parentID?: string | null | undefined;
|
|
3834
|
+
readonly archived?: boolean | undefined;
|
|
3797
3835
|
readonly directory?: string | undefined;
|
|
3798
3836
|
readonly project?: string | undefined;
|
|
3799
3837
|
readonly subpath?: string | undefined;
|
|
@@ -3804,6 +3842,7 @@ export type SessionListInput = {
|
|
|
3804
3842
|
readonly order?: "asc" | "desc" | undefined;
|
|
3805
3843
|
readonly search?: string | undefined;
|
|
3806
3844
|
readonly parentID?: string | null | undefined;
|
|
3845
|
+
readonly archived?: boolean | undefined;
|
|
3807
3846
|
readonly directory?: string | undefined;
|
|
3808
3847
|
readonly project?: string | undefined;
|
|
3809
3848
|
readonly subpath?: string | undefined;
|
|
@@ -3814,6 +3853,7 @@ export type SessionListInput = {
|
|
|
3814
3853
|
readonly order?: "asc" | "desc" | undefined;
|
|
3815
3854
|
readonly search?: string | undefined;
|
|
3816
3855
|
readonly parentID?: string | null | undefined;
|
|
3856
|
+
readonly archived?: boolean | undefined;
|
|
3817
3857
|
readonly directory?: string | undefined;
|
|
3818
3858
|
readonly project?: string | undefined;
|
|
3819
3859
|
readonly subpath?: string | undefined;
|
|
@@ -4108,915 +4148,77 @@ export type SessionImportInput = {
|
|
|
4108
4148
|
readonly directory: string;
|
|
4109
4149
|
};
|
|
4110
4150
|
};
|
|
4111
|
-
readonly messages: ReadonlyArray<
|
|
4112
|
-
|
|
4113
|
-
readonly
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
};
|
|
4119
|
-
readonly type: "agent-switched";
|
|
4120
|
-
readonly agent: string;
|
|
4121
|
-
readonly previous?: string;
|
|
4122
|
-
} | {
|
|
4151
|
+
readonly messages: ReadonlyArray<JsonValue>;
|
|
4152
|
+
readonly location?: {
|
|
4153
|
+
readonly directory: string;
|
|
4154
|
+
} | null;
|
|
4155
|
+
}["info"];
|
|
4156
|
+
readonly messages: {
|
|
4157
|
+
readonly info: {
|
|
4123
4158
|
readonly id: string;
|
|
4124
|
-
readonly
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
readonly variant?: string;
|
|
4159
|
+
readonly parentID?: string;
|
|
4160
|
+
readonly fork?: {
|
|
4161
|
+
readonly sessionID: string;
|
|
4162
|
+
readonly boundary: {
|
|
4163
|
+
readonly type: "before";
|
|
4164
|
+
readonly messageID: string;
|
|
4165
|
+
} | {
|
|
4166
|
+
readonly type: "through";
|
|
4167
|
+
readonly messageID: string;
|
|
4168
|
+
};
|
|
4135
4169
|
};
|
|
4136
|
-
readonly
|
|
4170
|
+
readonly projectID: string;
|
|
4171
|
+
readonly agent?: string;
|
|
4172
|
+
readonly model?: {
|
|
4137
4173
|
readonly id: string;
|
|
4138
4174
|
readonly providerID: string;
|
|
4139
4175
|
readonly variant?: string;
|
|
4140
4176
|
};
|
|
4141
|
-
|
|
4142
|
-
readonly
|
|
4143
|
-
|
|
4144
|
-
readonly
|
|
4177
|
+
readonly cost: number;
|
|
4178
|
+
readonly tokens: {
|
|
4179
|
+
readonly input: number;
|
|
4180
|
+
readonly output: number;
|
|
4181
|
+
readonly reasoning: number;
|
|
4182
|
+
readonly cache: {
|
|
4183
|
+
readonly read: number;
|
|
4184
|
+
readonly write: number;
|
|
4185
|
+
};
|
|
4145
4186
|
};
|
|
4187
|
+
readonly outcome?: "succeeded" | "failed" | "interrupted";
|
|
4146
4188
|
readonly time: {
|
|
4147
4189
|
readonly created: number;
|
|
4190
|
+
readonly updated: number;
|
|
4191
|
+
readonly idle?: number;
|
|
4192
|
+
readonly viewed?: number;
|
|
4193
|
+
readonly archived?: number;
|
|
4148
4194
|
};
|
|
4149
|
-
readonly
|
|
4150
|
-
readonly projectID?: string;
|
|
4195
|
+
readonly title?: string;
|
|
4151
4196
|
readonly subpath?: string;
|
|
4152
|
-
readonly location: {
|
|
4153
|
-
readonly directory: string;
|
|
4154
|
-
};
|
|
4155
|
-
readonly previous?: {
|
|
4156
|
-
readonly location: {
|
|
4157
|
-
readonly directory: string;
|
|
4158
|
-
};
|
|
4159
|
-
readonly projectID?: string;
|
|
4160
|
-
readonly subpath?: string;
|
|
4161
|
-
} | null;
|
|
4162
|
-
} | {
|
|
4163
|
-
readonly id: string;
|
|
4164
4197
|
readonly metadata?: {
|
|
4165
4198
|
readonly [x: string]: JsonValue;
|
|
4166
4199
|
};
|
|
4167
|
-
readonly
|
|
4168
|
-
readonly
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
readonly files?: ReadonlyArray<{
|
|
4172
|
-
readonly data: string;
|
|
4173
|
-
readonly mime: string;
|
|
4174
|
-
readonly source: {
|
|
4175
|
-
readonly type: "inline";
|
|
4176
|
-
} | {
|
|
4177
|
-
readonly type: "uri";
|
|
4178
|
-
readonly uri: string;
|
|
4179
|
-
};
|
|
4180
|
-
readonly name?: string;
|
|
4181
|
-
readonly description?: string;
|
|
4182
|
-
readonly mention?: {
|
|
4183
|
-
readonly start: number;
|
|
4184
|
-
readonly end: number;
|
|
4185
|
-
readonly text: string;
|
|
4186
|
-
};
|
|
4187
|
-
}>;
|
|
4188
|
-
readonly agents?: ReadonlyArray<{
|
|
4189
|
-
readonly name: string;
|
|
4190
|
-
readonly mention?: {
|
|
4191
|
-
readonly start: number;
|
|
4192
|
-
readonly end: number;
|
|
4193
|
-
readonly text: string;
|
|
4194
|
-
};
|
|
4195
|
-
}>;
|
|
4196
|
-
readonly skills?: ReadonlyArray<{
|
|
4197
|
-
readonly id: string;
|
|
4198
|
-
readonly name: string;
|
|
4199
|
-
readonly text?: string;
|
|
4200
|
-
readonly mention?: {
|
|
4201
|
-
readonly start: number;
|
|
4202
|
-
readonly end: number;
|
|
4203
|
-
readonly text: string;
|
|
4204
|
-
};
|
|
4200
|
+
readonly permissions?: ReadonlyArray<{
|
|
4201
|
+
readonly action: string;
|
|
4202
|
+
readonly resource: string;
|
|
4203
|
+
readonly effect: "allow" | "deny" | "ask";
|
|
4205
4204
|
}>;
|
|
4206
|
-
readonly
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
readonly
|
|
4205
|
+
readonly revert?: {
|
|
4206
|
+
readonly messageID: string;
|
|
4207
|
+
readonly partID?: string;
|
|
4208
|
+
readonly snapshot?: string;
|
|
4209
|
+
readonly files?: ReadonlyArray<{
|
|
4210
|
+
readonly file: string;
|
|
4211
|
+
readonly patch: string;
|
|
4212
|
+
readonly additions: number;
|
|
4213
|
+
readonly deletions: number;
|
|
4214
|
+
readonly status: "added" | "deleted" | "modified";
|
|
4215
|
+
}>;
|
|
4211
4216
|
};
|
|
4212
|
-
readonly
|
|
4213
|
-
readonly
|
|
4214
|
-
};
|
|
4215
|
-
readonly text: string;
|
|
4216
|
-
readonly description?: string;
|
|
4217
|
-
readonly type: "synthetic";
|
|
4218
|
-
} | {
|
|
4219
|
-
readonly id: string;
|
|
4220
|
-
readonly metadata?: {
|
|
4221
|
-
readonly [x: string]: JsonValue;
|
|
4222
|
-
};
|
|
4223
|
-
readonly time: {
|
|
4224
|
-
readonly created: number;
|
|
4225
|
-
};
|
|
4226
|
-
readonly type: "system";
|
|
4227
|
-
readonly text: string;
|
|
4228
|
-
readonly description?: string;
|
|
4229
|
-
} | {
|
|
4230
|
-
readonly id: string;
|
|
4231
|
-
readonly metadata?: {
|
|
4232
|
-
readonly [x: string]: JsonValue;
|
|
4233
|
-
};
|
|
4234
|
-
readonly time: {
|
|
4235
|
-
readonly created: number;
|
|
4236
|
-
};
|
|
4237
|
-
readonly type: "skill";
|
|
4238
|
-
readonly skill: string;
|
|
4239
|
-
readonly name: string;
|
|
4240
|
-
readonly text: string;
|
|
4241
|
-
} | {
|
|
4242
|
-
readonly id: string;
|
|
4243
|
-
readonly metadata?: {
|
|
4244
|
-
readonly [x: string]: JsonValue;
|
|
4245
|
-
};
|
|
4246
|
-
readonly time: {
|
|
4247
|
-
readonly created: number;
|
|
4248
|
-
readonly completed?: number;
|
|
4249
|
-
};
|
|
4250
|
-
readonly type: "shell";
|
|
4251
|
-
readonly shellID: string;
|
|
4252
|
-
readonly command: string;
|
|
4253
|
-
readonly status: "running" | "exited" | "timeout" | "killed";
|
|
4254
|
-
readonly exit?: number | "Infinity" | "-Infinity" | "NaN";
|
|
4255
|
-
readonly output?: {
|
|
4256
|
-
readonly output: string;
|
|
4257
|
-
readonly cursor: number;
|
|
4258
|
-
readonly size: number;
|
|
4259
|
-
readonly truncated: boolean;
|
|
4260
|
-
};
|
|
4261
|
-
} | {
|
|
4262
|
-
readonly id: string;
|
|
4263
|
-
readonly metadata?: {
|
|
4264
|
-
readonly [x: string]: JsonValue;
|
|
4265
|
-
};
|
|
4266
|
-
readonly time: {
|
|
4267
|
-
readonly created: number;
|
|
4268
|
-
readonly streamed?: number;
|
|
4269
|
-
readonly completed?: number;
|
|
4270
|
-
};
|
|
4271
|
-
readonly type: "assistant";
|
|
4272
|
-
readonly agent: string;
|
|
4273
|
-
readonly model: {
|
|
4274
|
-
readonly id: string;
|
|
4275
|
-
readonly providerID: string;
|
|
4276
|
-
readonly variant?: string;
|
|
4277
|
-
};
|
|
4278
|
-
readonly content: ReadonlyArray<{
|
|
4279
|
-
readonly type: "text";
|
|
4280
|
-
readonly text: string;
|
|
4281
|
-
readonly state?: {
|
|
4282
|
-
readonly [x: string]: JsonValue;
|
|
4283
|
-
};
|
|
4284
|
-
} | {
|
|
4285
|
-
readonly type: "reasoning";
|
|
4286
|
-
readonly text: string;
|
|
4287
|
-
readonly state?: {
|
|
4288
|
-
readonly [x: string]: JsonValue;
|
|
4289
|
-
};
|
|
4290
|
-
readonly time?: {
|
|
4291
|
-
readonly created: number;
|
|
4292
|
-
readonly completed?: number;
|
|
4293
|
-
};
|
|
4294
|
-
} | {
|
|
4295
|
-
readonly type: "tool";
|
|
4296
|
-
readonly id: string;
|
|
4297
|
-
readonly name: string;
|
|
4298
|
-
readonly executed?: boolean;
|
|
4299
|
-
readonly providerState?: {
|
|
4300
|
-
readonly [x: string]: JsonValue;
|
|
4301
|
-
};
|
|
4302
|
-
readonly providerResultState?: {
|
|
4303
|
-
readonly [x: string]: JsonValue;
|
|
4304
|
-
};
|
|
4305
|
-
readonly state: {
|
|
4306
|
-
readonly status: "streaming";
|
|
4307
|
-
readonly input: string;
|
|
4308
|
-
} | {
|
|
4309
|
-
readonly status: "running";
|
|
4310
|
-
readonly input: {
|
|
4311
|
-
readonly [x: string]: JsonValue;
|
|
4312
|
-
};
|
|
4313
|
-
readonly metadata: {
|
|
4314
|
-
readonly [x: string]: JsonValue;
|
|
4315
|
-
};
|
|
4316
|
-
} | {
|
|
4317
|
-
readonly status: "completed";
|
|
4318
|
-
readonly input: {
|
|
4319
|
-
readonly [x: string]: JsonValue;
|
|
4320
|
-
};
|
|
4321
|
-
readonly content: readonly [
|
|
4322
|
-
({
|
|
4323
|
-
readonly type: "text";
|
|
4324
|
-
readonly text: string;
|
|
4325
|
-
} | {
|
|
4326
|
-
readonly type: "file";
|
|
4327
|
-
readonly uri: string;
|
|
4328
|
-
readonly mime: string;
|
|
4329
|
-
readonly name?: string | null;
|
|
4330
|
-
}),
|
|
4331
|
-
...Array<{
|
|
4332
|
-
readonly type: "text";
|
|
4333
|
-
readonly text: string;
|
|
4334
|
-
} | {
|
|
4335
|
-
readonly type: "file";
|
|
4336
|
-
readonly uri: string;
|
|
4337
|
-
readonly mime: string;
|
|
4338
|
-
readonly name?: string | null;
|
|
4339
|
-
}>
|
|
4340
|
-
];
|
|
4341
|
-
readonly metadata?: {
|
|
4342
|
-
readonly [x: string]: JsonValue;
|
|
4343
|
-
};
|
|
4344
|
-
} | {
|
|
4345
|
-
readonly status: "error";
|
|
4346
|
-
readonly input: {
|
|
4347
|
-
readonly [x: string]: JsonValue;
|
|
4348
|
-
};
|
|
4349
|
-
readonly error: {
|
|
4350
|
-
readonly type: string;
|
|
4351
|
-
readonly message: string;
|
|
4352
|
-
readonly status?: number;
|
|
4353
|
-
readonly response?: {
|
|
4354
|
-
readonly body: string;
|
|
4355
|
-
};
|
|
4356
|
-
};
|
|
4357
|
-
readonly content?: readonly [
|
|
4358
|
-
({
|
|
4359
|
-
readonly type: "text";
|
|
4360
|
-
readonly text: string;
|
|
4361
|
-
} | {
|
|
4362
|
-
readonly type: "file";
|
|
4363
|
-
readonly uri: string;
|
|
4364
|
-
readonly mime: string;
|
|
4365
|
-
readonly name?: string | null;
|
|
4366
|
-
}),
|
|
4367
|
-
...Array<{
|
|
4368
|
-
readonly type: "text";
|
|
4369
|
-
readonly text: string;
|
|
4370
|
-
} | {
|
|
4371
|
-
readonly type: "file";
|
|
4372
|
-
readonly uri: string;
|
|
4373
|
-
readonly mime: string;
|
|
4374
|
-
readonly name?: string | null;
|
|
4375
|
-
}>
|
|
4376
|
-
];
|
|
4377
|
-
readonly metadata?: {
|
|
4378
|
-
readonly [x: string]: JsonValue;
|
|
4379
|
-
};
|
|
4380
|
-
};
|
|
4381
|
-
readonly time: {
|
|
4382
|
-
readonly created: number;
|
|
4383
|
-
readonly ran?: number;
|
|
4384
|
-
readonly completed?: number;
|
|
4385
|
-
};
|
|
4386
|
-
}>;
|
|
4387
|
-
readonly snapshot?: {
|
|
4388
|
-
readonly start?: string;
|
|
4389
|
-
readonly end?: string;
|
|
4390
|
-
readonly files?: ReadonlyArray<string>;
|
|
4391
|
-
};
|
|
4392
|
-
readonly finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
4393
|
-
readonly rawFinish?: string;
|
|
4394
|
-
readonly providerState?: {
|
|
4395
|
-
readonly [x: string]: JsonValue;
|
|
4396
|
-
};
|
|
4397
|
-
readonly cost?: number;
|
|
4398
|
-
readonly tokens?: {
|
|
4399
|
-
readonly input: number;
|
|
4400
|
-
readonly output: number;
|
|
4401
|
-
readonly reasoning: number;
|
|
4402
|
-
readonly cache: {
|
|
4403
|
-
readonly read: number;
|
|
4404
|
-
readonly write: number;
|
|
4405
|
-
};
|
|
4406
|
-
};
|
|
4407
|
-
readonly error?: {
|
|
4408
|
-
readonly type: string;
|
|
4409
|
-
readonly message: string;
|
|
4410
|
-
readonly status?: number;
|
|
4411
|
-
readonly response?: {
|
|
4412
|
-
readonly body: string;
|
|
4413
|
-
};
|
|
4414
|
-
};
|
|
4415
|
-
readonly retry?: {
|
|
4416
|
-
readonly attempt: number;
|
|
4417
|
-
readonly at: number;
|
|
4418
|
-
readonly error: {
|
|
4419
|
-
readonly type: string;
|
|
4420
|
-
readonly message: string;
|
|
4421
|
-
readonly status?: number;
|
|
4422
|
-
readonly response?: {
|
|
4423
|
-
readonly body: string;
|
|
4424
|
-
};
|
|
4425
|
-
};
|
|
4426
|
-
};
|
|
4427
|
-
} | ({
|
|
4428
|
-
readonly type: "compaction";
|
|
4429
|
-
readonly id: string;
|
|
4430
|
-
readonly metadata?: {
|
|
4431
|
-
readonly [x: string]: JsonValue;
|
|
4432
|
-
};
|
|
4433
|
-
readonly time: {
|
|
4434
|
-
readonly created: number;
|
|
4435
|
-
};
|
|
4436
|
-
readonly status: "running";
|
|
4437
|
-
readonly reason: "auto" | "manual";
|
|
4438
|
-
readonly summary: string;
|
|
4439
|
-
readonly recent: string;
|
|
4440
|
-
} | {
|
|
4441
|
-
readonly type: "compaction";
|
|
4442
|
-
readonly id: string;
|
|
4443
|
-
readonly metadata?: {
|
|
4444
|
-
readonly [x: string]: JsonValue;
|
|
4445
|
-
};
|
|
4446
|
-
readonly time: {
|
|
4447
|
-
readonly created: number;
|
|
4448
|
-
};
|
|
4449
|
-
readonly status: "completed";
|
|
4450
|
-
readonly reason: "auto" | "manual";
|
|
4451
|
-
readonly model?: {
|
|
4452
|
-
readonly id: string;
|
|
4453
|
-
readonly providerID: string;
|
|
4454
|
-
readonly variant?: string;
|
|
4455
|
-
};
|
|
4456
|
-
readonly providerState?: {
|
|
4457
|
-
readonly [x: string]: JsonValue;
|
|
4458
|
-
};
|
|
4459
|
-
readonly summary: string;
|
|
4460
|
-
readonly recent: string;
|
|
4461
|
-
readonly providerContext?: {
|
|
4462
|
-
readonly version: 1;
|
|
4463
|
-
readonly provenance: {
|
|
4464
|
-
readonly providerID: string;
|
|
4465
|
-
readonly provider: string;
|
|
4466
|
-
readonly modelID: string;
|
|
4467
|
-
readonly route: string;
|
|
4468
|
-
readonly protocol: string;
|
|
4469
|
-
readonly endpoint: string;
|
|
4470
|
-
};
|
|
4471
|
-
readonly messages: JsonValue;
|
|
4472
|
-
};
|
|
4473
|
-
readonly cost?: number;
|
|
4474
|
-
readonly tokens?: {
|
|
4475
|
-
readonly input: number;
|
|
4476
|
-
readonly output: number;
|
|
4477
|
-
readonly reasoning: number;
|
|
4478
|
-
readonly cache: {
|
|
4479
|
-
readonly read: number;
|
|
4480
|
-
readonly write: number;
|
|
4481
|
-
};
|
|
4482
|
-
};
|
|
4483
|
-
} | {
|
|
4484
|
-
readonly type: "compaction";
|
|
4485
|
-
readonly id: string;
|
|
4486
|
-
readonly metadata?: {
|
|
4487
|
-
readonly [x: string]: JsonValue;
|
|
4488
|
-
};
|
|
4489
|
-
readonly time: {
|
|
4490
|
-
readonly created: number;
|
|
4491
|
-
};
|
|
4492
|
-
readonly status: "failed";
|
|
4493
|
-
readonly reason: "auto" | "manual";
|
|
4494
|
-
readonly error: {
|
|
4495
|
-
readonly type: string;
|
|
4496
|
-
readonly message: string;
|
|
4497
|
-
readonly status?: number;
|
|
4498
|
-
readonly response?: {
|
|
4499
|
-
readonly body: string;
|
|
4500
|
-
};
|
|
4501
|
-
};
|
|
4502
|
-
readonly cost?: number;
|
|
4503
|
-
readonly tokens?: {
|
|
4504
|
-
readonly input: number;
|
|
4505
|
-
readonly output: number;
|
|
4506
|
-
readonly reasoning: number;
|
|
4507
|
-
readonly cache: {
|
|
4508
|
-
readonly read: number;
|
|
4509
|
-
readonly write: number;
|
|
4510
|
-
};
|
|
4511
|
-
};
|
|
4512
|
-
}) | {
|
|
4513
|
-
readonly id: string;
|
|
4514
|
-
readonly metadata?: {
|
|
4515
|
-
readonly [x: string]: JsonValue;
|
|
4516
|
-
};
|
|
4517
|
-
readonly time: {
|
|
4518
|
-
readonly created: number;
|
|
4519
|
-
};
|
|
4520
|
-
readonly type: "idle";
|
|
4521
|
-
readonly outcome: "succeeded" | "failed" | "interrupted";
|
|
4522
|
-
readonly error?: {
|
|
4523
|
-
readonly type: string;
|
|
4524
|
-
readonly message: string;
|
|
4525
|
-
readonly status?: number;
|
|
4526
|
-
readonly response?: {
|
|
4527
|
-
readonly body: string;
|
|
4528
|
-
};
|
|
4529
|
-
};
|
|
4530
|
-
}>;
|
|
4531
|
-
readonly location?: {
|
|
4532
|
-
readonly directory: string;
|
|
4533
|
-
} | null;
|
|
4534
|
-
}["info"];
|
|
4535
|
-
readonly messages: {
|
|
4536
|
-
readonly info: {
|
|
4537
|
-
readonly id: string;
|
|
4538
|
-
readonly parentID?: string;
|
|
4539
|
-
readonly fork?: {
|
|
4540
|
-
readonly sessionID: string;
|
|
4541
|
-
readonly boundary: {
|
|
4542
|
-
readonly type: "before";
|
|
4543
|
-
readonly messageID: string;
|
|
4544
|
-
} | {
|
|
4545
|
-
readonly type: "through";
|
|
4546
|
-
readonly messageID: string;
|
|
4547
|
-
};
|
|
4548
|
-
};
|
|
4549
|
-
readonly projectID: string;
|
|
4550
|
-
readonly agent?: string;
|
|
4551
|
-
readonly model?: {
|
|
4552
|
-
readonly id: string;
|
|
4553
|
-
readonly providerID: string;
|
|
4554
|
-
readonly variant?: string;
|
|
4555
|
-
};
|
|
4556
|
-
readonly cost: number;
|
|
4557
|
-
readonly tokens: {
|
|
4558
|
-
readonly input: number;
|
|
4559
|
-
readonly output: number;
|
|
4560
|
-
readonly reasoning: number;
|
|
4561
|
-
readonly cache: {
|
|
4562
|
-
readonly read: number;
|
|
4563
|
-
readonly write: number;
|
|
4564
|
-
};
|
|
4565
|
-
};
|
|
4566
|
-
readonly outcome?: "succeeded" | "failed" | "interrupted";
|
|
4567
|
-
readonly time: {
|
|
4568
|
-
readonly created: number;
|
|
4569
|
-
readonly updated: number;
|
|
4570
|
-
readonly idle?: number;
|
|
4571
|
-
readonly viewed?: number;
|
|
4572
|
-
readonly archived?: number;
|
|
4573
|
-
};
|
|
4574
|
-
readonly title?: string;
|
|
4575
|
-
readonly subpath?: string;
|
|
4576
|
-
readonly metadata?: {
|
|
4577
|
-
readonly [x: string]: JsonValue;
|
|
4578
|
-
};
|
|
4579
|
-
readonly permissions?: ReadonlyArray<{
|
|
4580
|
-
readonly action: string;
|
|
4581
|
-
readonly resource: string;
|
|
4582
|
-
readonly effect: "allow" | "deny" | "ask";
|
|
4583
|
-
}>;
|
|
4584
|
-
readonly revert?: {
|
|
4585
|
-
readonly messageID: string;
|
|
4586
|
-
readonly partID?: string;
|
|
4587
|
-
readonly snapshot?: string;
|
|
4588
|
-
readonly files?: ReadonlyArray<{
|
|
4589
|
-
readonly file: string;
|
|
4590
|
-
readonly patch: string;
|
|
4591
|
-
readonly additions: number;
|
|
4592
|
-
readonly deletions: number;
|
|
4593
|
-
readonly status: "added" | "deleted" | "modified";
|
|
4594
|
-
}>;
|
|
4595
|
-
};
|
|
4596
|
-
readonly location: {
|
|
4597
|
-
readonly directory: string;
|
|
4598
|
-
};
|
|
4599
|
-
};
|
|
4600
|
-
readonly messages: ReadonlyArray<{
|
|
4601
|
-
readonly id: string;
|
|
4602
|
-
readonly metadata?: {
|
|
4603
|
-
readonly [x: string]: JsonValue;
|
|
4604
|
-
};
|
|
4605
|
-
readonly time: {
|
|
4606
|
-
readonly created: number;
|
|
4607
|
-
};
|
|
4608
|
-
readonly type: "agent-switched";
|
|
4609
|
-
readonly agent: string;
|
|
4610
|
-
readonly previous?: string;
|
|
4611
|
-
} | {
|
|
4612
|
-
readonly id: string;
|
|
4613
|
-
readonly metadata?: {
|
|
4614
|
-
readonly [x: string]: JsonValue;
|
|
4615
|
-
};
|
|
4616
|
-
readonly time: {
|
|
4617
|
-
readonly created: number;
|
|
4618
|
-
};
|
|
4619
|
-
readonly type: "model-switched";
|
|
4620
|
-
readonly model: {
|
|
4621
|
-
readonly id: string;
|
|
4622
|
-
readonly providerID: string;
|
|
4623
|
-
readonly variant?: string;
|
|
4624
|
-
};
|
|
4625
|
-
readonly previous?: {
|
|
4626
|
-
readonly id: string;
|
|
4627
|
-
readonly providerID: string;
|
|
4628
|
-
readonly variant?: string;
|
|
4629
|
-
};
|
|
4630
|
-
} | {
|
|
4631
|
-
readonly id: string;
|
|
4632
|
-
readonly metadata?: {
|
|
4633
|
-
readonly [x: string]: JsonValue;
|
|
4634
|
-
};
|
|
4635
|
-
readonly time: {
|
|
4636
|
-
readonly created: number;
|
|
4637
|
-
};
|
|
4638
|
-
readonly type: "location-switched";
|
|
4639
|
-
readonly projectID?: string;
|
|
4640
|
-
readonly subpath?: string;
|
|
4641
|
-
readonly location: {
|
|
4642
|
-
readonly directory: string;
|
|
4643
|
-
};
|
|
4644
|
-
readonly previous?: {
|
|
4645
|
-
readonly location: {
|
|
4646
|
-
readonly directory: string;
|
|
4647
|
-
};
|
|
4648
|
-
readonly projectID?: string;
|
|
4649
|
-
readonly subpath?: string;
|
|
4650
|
-
} | null;
|
|
4651
|
-
} | {
|
|
4652
|
-
readonly id: string;
|
|
4653
|
-
readonly metadata?: {
|
|
4654
|
-
readonly [x: string]: JsonValue;
|
|
4655
|
-
};
|
|
4656
|
-
readonly time: {
|
|
4657
|
-
readonly created: number;
|
|
4658
|
-
};
|
|
4659
|
-
readonly text: string;
|
|
4660
|
-
readonly files?: ReadonlyArray<{
|
|
4661
|
-
readonly data: string;
|
|
4662
|
-
readonly mime: string;
|
|
4663
|
-
readonly source: {
|
|
4664
|
-
readonly type: "inline";
|
|
4665
|
-
} | {
|
|
4666
|
-
readonly type: "uri";
|
|
4667
|
-
readonly uri: string;
|
|
4668
|
-
};
|
|
4669
|
-
readonly name?: string;
|
|
4670
|
-
readonly description?: string;
|
|
4671
|
-
readonly mention?: {
|
|
4672
|
-
readonly start: number;
|
|
4673
|
-
readonly end: number;
|
|
4674
|
-
readonly text: string;
|
|
4675
|
-
};
|
|
4676
|
-
}>;
|
|
4677
|
-
readonly agents?: ReadonlyArray<{
|
|
4678
|
-
readonly name: string;
|
|
4679
|
-
readonly mention?: {
|
|
4680
|
-
readonly start: number;
|
|
4681
|
-
readonly end: number;
|
|
4682
|
-
readonly text: string;
|
|
4683
|
-
};
|
|
4684
|
-
}>;
|
|
4685
|
-
readonly skills?: ReadonlyArray<{
|
|
4686
|
-
readonly id: string;
|
|
4687
|
-
readonly name: string;
|
|
4688
|
-
readonly text?: string;
|
|
4689
|
-
readonly mention?: {
|
|
4690
|
-
readonly start: number;
|
|
4691
|
-
readonly end: number;
|
|
4692
|
-
readonly text: string;
|
|
4693
|
-
};
|
|
4694
|
-
}>;
|
|
4695
|
-
readonly type: "user";
|
|
4696
|
-
} | {
|
|
4697
|
-
readonly id: string;
|
|
4698
|
-
readonly metadata?: {
|
|
4699
|
-
readonly [x: string]: JsonValue;
|
|
4700
|
-
};
|
|
4701
|
-
readonly time: {
|
|
4702
|
-
readonly created: number;
|
|
4703
|
-
};
|
|
4704
|
-
readonly text: string;
|
|
4705
|
-
readonly description?: string;
|
|
4706
|
-
readonly type: "synthetic";
|
|
4707
|
-
} | {
|
|
4708
|
-
readonly id: string;
|
|
4709
|
-
readonly metadata?: {
|
|
4710
|
-
readonly [x: string]: JsonValue;
|
|
4711
|
-
};
|
|
4712
|
-
readonly time: {
|
|
4713
|
-
readonly created: number;
|
|
4714
|
-
};
|
|
4715
|
-
readonly type: "system";
|
|
4716
|
-
readonly text: string;
|
|
4717
|
-
readonly description?: string;
|
|
4718
|
-
} | {
|
|
4719
|
-
readonly id: string;
|
|
4720
|
-
readonly metadata?: {
|
|
4721
|
-
readonly [x: string]: JsonValue;
|
|
4722
|
-
};
|
|
4723
|
-
readonly time: {
|
|
4724
|
-
readonly created: number;
|
|
4725
|
-
};
|
|
4726
|
-
readonly type: "skill";
|
|
4727
|
-
readonly skill: string;
|
|
4728
|
-
readonly name: string;
|
|
4729
|
-
readonly text: string;
|
|
4730
|
-
} | {
|
|
4731
|
-
readonly id: string;
|
|
4732
|
-
readonly metadata?: {
|
|
4733
|
-
readonly [x: string]: JsonValue;
|
|
4734
|
-
};
|
|
4735
|
-
readonly time: {
|
|
4736
|
-
readonly created: number;
|
|
4737
|
-
readonly completed?: number;
|
|
4738
|
-
};
|
|
4739
|
-
readonly type: "shell";
|
|
4740
|
-
readonly shellID: string;
|
|
4741
|
-
readonly command: string;
|
|
4742
|
-
readonly status: "running" | "exited" | "timeout" | "killed";
|
|
4743
|
-
readonly exit?: number | "Infinity" | "-Infinity" | "NaN";
|
|
4744
|
-
readonly output?: {
|
|
4745
|
-
readonly output: string;
|
|
4746
|
-
readonly cursor: number;
|
|
4747
|
-
readonly size: number;
|
|
4748
|
-
readonly truncated: boolean;
|
|
4749
|
-
};
|
|
4750
|
-
} | {
|
|
4751
|
-
readonly id: string;
|
|
4752
|
-
readonly metadata?: {
|
|
4753
|
-
readonly [x: string]: JsonValue;
|
|
4754
|
-
};
|
|
4755
|
-
readonly time: {
|
|
4756
|
-
readonly created: number;
|
|
4757
|
-
readonly streamed?: number;
|
|
4758
|
-
readonly completed?: number;
|
|
4759
|
-
};
|
|
4760
|
-
readonly type: "assistant";
|
|
4761
|
-
readonly agent: string;
|
|
4762
|
-
readonly model: {
|
|
4763
|
-
readonly id: string;
|
|
4764
|
-
readonly providerID: string;
|
|
4765
|
-
readonly variant?: string;
|
|
4766
|
-
};
|
|
4767
|
-
readonly content: ReadonlyArray<{
|
|
4768
|
-
readonly type: "text";
|
|
4769
|
-
readonly text: string;
|
|
4770
|
-
readonly state?: {
|
|
4771
|
-
readonly [x: string]: JsonValue;
|
|
4772
|
-
};
|
|
4773
|
-
} | {
|
|
4774
|
-
readonly type: "reasoning";
|
|
4775
|
-
readonly text: string;
|
|
4776
|
-
readonly state?: {
|
|
4777
|
-
readonly [x: string]: JsonValue;
|
|
4778
|
-
};
|
|
4779
|
-
readonly time?: {
|
|
4780
|
-
readonly created: number;
|
|
4781
|
-
readonly completed?: number;
|
|
4782
|
-
};
|
|
4783
|
-
} | {
|
|
4784
|
-
readonly type: "tool";
|
|
4785
|
-
readonly id: string;
|
|
4786
|
-
readonly name: string;
|
|
4787
|
-
readonly executed?: boolean;
|
|
4788
|
-
readonly providerState?: {
|
|
4789
|
-
readonly [x: string]: JsonValue;
|
|
4790
|
-
};
|
|
4791
|
-
readonly providerResultState?: {
|
|
4792
|
-
readonly [x: string]: JsonValue;
|
|
4793
|
-
};
|
|
4794
|
-
readonly state: {
|
|
4795
|
-
readonly status: "streaming";
|
|
4796
|
-
readonly input: string;
|
|
4797
|
-
} | {
|
|
4798
|
-
readonly status: "running";
|
|
4799
|
-
readonly input: {
|
|
4800
|
-
readonly [x: string]: JsonValue;
|
|
4801
|
-
};
|
|
4802
|
-
readonly metadata: {
|
|
4803
|
-
readonly [x: string]: JsonValue;
|
|
4804
|
-
};
|
|
4805
|
-
} | {
|
|
4806
|
-
readonly status: "completed";
|
|
4807
|
-
readonly input: {
|
|
4808
|
-
readonly [x: string]: JsonValue;
|
|
4809
|
-
};
|
|
4810
|
-
readonly content: readonly [
|
|
4811
|
-
({
|
|
4812
|
-
readonly type: "text";
|
|
4813
|
-
readonly text: string;
|
|
4814
|
-
} | {
|
|
4815
|
-
readonly type: "file";
|
|
4816
|
-
readonly uri: string;
|
|
4817
|
-
readonly mime: string;
|
|
4818
|
-
readonly name?: string | null;
|
|
4819
|
-
}),
|
|
4820
|
-
...Array<{
|
|
4821
|
-
readonly type: "text";
|
|
4822
|
-
readonly text: string;
|
|
4823
|
-
} | {
|
|
4824
|
-
readonly type: "file";
|
|
4825
|
-
readonly uri: string;
|
|
4826
|
-
readonly mime: string;
|
|
4827
|
-
readonly name?: string | null;
|
|
4828
|
-
}>
|
|
4829
|
-
];
|
|
4830
|
-
readonly metadata?: {
|
|
4831
|
-
readonly [x: string]: JsonValue;
|
|
4832
|
-
};
|
|
4833
|
-
} | {
|
|
4834
|
-
readonly status: "error";
|
|
4835
|
-
readonly input: {
|
|
4836
|
-
readonly [x: string]: JsonValue;
|
|
4837
|
-
};
|
|
4838
|
-
readonly error: {
|
|
4839
|
-
readonly type: string;
|
|
4840
|
-
readonly message: string;
|
|
4841
|
-
readonly status?: number;
|
|
4842
|
-
readonly response?: {
|
|
4843
|
-
readonly body: string;
|
|
4844
|
-
};
|
|
4845
|
-
};
|
|
4846
|
-
readonly content?: readonly [
|
|
4847
|
-
({
|
|
4848
|
-
readonly type: "text";
|
|
4849
|
-
readonly text: string;
|
|
4850
|
-
} | {
|
|
4851
|
-
readonly type: "file";
|
|
4852
|
-
readonly uri: string;
|
|
4853
|
-
readonly mime: string;
|
|
4854
|
-
readonly name?: string | null;
|
|
4855
|
-
}),
|
|
4856
|
-
...Array<{
|
|
4857
|
-
readonly type: "text";
|
|
4858
|
-
readonly text: string;
|
|
4859
|
-
} | {
|
|
4860
|
-
readonly type: "file";
|
|
4861
|
-
readonly uri: string;
|
|
4862
|
-
readonly mime: string;
|
|
4863
|
-
readonly name?: string | null;
|
|
4864
|
-
}>
|
|
4865
|
-
];
|
|
4866
|
-
readonly metadata?: {
|
|
4867
|
-
readonly [x: string]: JsonValue;
|
|
4868
|
-
};
|
|
4869
|
-
};
|
|
4870
|
-
readonly time: {
|
|
4871
|
-
readonly created: number;
|
|
4872
|
-
readonly ran?: number;
|
|
4873
|
-
readonly completed?: number;
|
|
4874
|
-
};
|
|
4875
|
-
}>;
|
|
4876
|
-
readonly snapshot?: {
|
|
4877
|
-
readonly start?: string;
|
|
4878
|
-
readonly end?: string;
|
|
4879
|
-
readonly files?: ReadonlyArray<string>;
|
|
4880
|
-
};
|
|
4881
|
-
readonly finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
4882
|
-
readonly rawFinish?: string;
|
|
4883
|
-
readonly providerState?: {
|
|
4884
|
-
readonly [x: string]: JsonValue;
|
|
4885
|
-
};
|
|
4886
|
-
readonly cost?: number;
|
|
4887
|
-
readonly tokens?: {
|
|
4888
|
-
readonly input: number;
|
|
4889
|
-
readonly output: number;
|
|
4890
|
-
readonly reasoning: number;
|
|
4891
|
-
readonly cache: {
|
|
4892
|
-
readonly read: number;
|
|
4893
|
-
readonly write: number;
|
|
4894
|
-
};
|
|
4895
|
-
};
|
|
4896
|
-
readonly error?: {
|
|
4897
|
-
readonly type: string;
|
|
4898
|
-
readonly message: string;
|
|
4899
|
-
readonly status?: number;
|
|
4900
|
-
readonly response?: {
|
|
4901
|
-
readonly body: string;
|
|
4902
|
-
};
|
|
4903
|
-
};
|
|
4904
|
-
readonly retry?: {
|
|
4905
|
-
readonly attempt: number;
|
|
4906
|
-
readonly at: number;
|
|
4907
|
-
readonly error: {
|
|
4908
|
-
readonly type: string;
|
|
4909
|
-
readonly message: string;
|
|
4910
|
-
readonly status?: number;
|
|
4911
|
-
readonly response?: {
|
|
4912
|
-
readonly body: string;
|
|
4913
|
-
};
|
|
4914
|
-
};
|
|
4915
|
-
};
|
|
4916
|
-
} | ({
|
|
4917
|
-
readonly type: "compaction";
|
|
4918
|
-
readonly id: string;
|
|
4919
|
-
readonly metadata?: {
|
|
4920
|
-
readonly [x: string]: JsonValue;
|
|
4921
|
-
};
|
|
4922
|
-
readonly time: {
|
|
4923
|
-
readonly created: number;
|
|
4924
|
-
};
|
|
4925
|
-
readonly status: "running";
|
|
4926
|
-
readonly reason: "auto" | "manual";
|
|
4927
|
-
readonly summary: string;
|
|
4928
|
-
readonly recent: string;
|
|
4929
|
-
} | {
|
|
4930
|
-
readonly type: "compaction";
|
|
4931
|
-
readonly id: string;
|
|
4932
|
-
readonly metadata?: {
|
|
4933
|
-
readonly [x: string]: JsonValue;
|
|
4934
|
-
};
|
|
4935
|
-
readonly time: {
|
|
4936
|
-
readonly created: number;
|
|
4937
|
-
};
|
|
4938
|
-
readonly status: "completed";
|
|
4939
|
-
readonly reason: "auto" | "manual";
|
|
4940
|
-
readonly model?: {
|
|
4941
|
-
readonly id: string;
|
|
4942
|
-
readonly providerID: string;
|
|
4943
|
-
readonly variant?: string;
|
|
4944
|
-
};
|
|
4945
|
-
readonly providerState?: {
|
|
4946
|
-
readonly [x: string]: JsonValue;
|
|
4947
|
-
};
|
|
4948
|
-
readonly summary: string;
|
|
4949
|
-
readonly recent: string;
|
|
4950
|
-
readonly providerContext?: {
|
|
4951
|
-
readonly version: 1;
|
|
4952
|
-
readonly provenance: {
|
|
4953
|
-
readonly providerID: string;
|
|
4954
|
-
readonly provider: string;
|
|
4955
|
-
readonly modelID: string;
|
|
4956
|
-
readonly route: string;
|
|
4957
|
-
readonly protocol: string;
|
|
4958
|
-
readonly endpoint: string;
|
|
4959
|
-
};
|
|
4960
|
-
readonly messages: JsonValue;
|
|
4961
|
-
};
|
|
4962
|
-
readonly cost?: number;
|
|
4963
|
-
readonly tokens?: {
|
|
4964
|
-
readonly input: number;
|
|
4965
|
-
readonly output: number;
|
|
4966
|
-
readonly reasoning: number;
|
|
4967
|
-
readonly cache: {
|
|
4968
|
-
readonly read: number;
|
|
4969
|
-
readonly write: number;
|
|
4970
|
-
};
|
|
4971
|
-
};
|
|
4972
|
-
} | {
|
|
4973
|
-
readonly type: "compaction";
|
|
4974
|
-
readonly id: string;
|
|
4975
|
-
readonly metadata?: {
|
|
4976
|
-
readonly [x: string]: JsonValue;
|
|
4977
|
-
};
|
|
4978
|
-
readonly time: {
|
|
4979
|
-
readonly created: number;
|
|
4980
|
-
};
|
|
4981
|
-
readonly status: "failed";
|
|
4982
|
-
readonly reason: "auto" | "manual";
|
|
4983
|
-
readonly error: {
|
|
4984
|
-
readonly type: string;
|
|
4985
|
-
readonly message: string;
|
|
4986
|
-
readonly status?: number;
|
|
4987
|
-
readonly response?: {
|
|
4988
|
-
readonly body: string;
|
|
4989
|
-
};
|
|
4990
|
-
};
|
|
4991
|
-
readonly cost?: number;
|
|
4992
|
-
readonly tokens?: {
|
|
4993
|
-
readonly input: number;
|
|
4994
|
-
readonly output: number;
|
|
4995
|
-
readonly reasoning: number;
|
|
4996
|
-
readonly cache: {
|
|
4997
|
-
readonly read: number;
|
|
4998
|
-
readonly write: number;
|
|
4999
|
-
};
|
|
5000
|
-
};
|
|
5001
|
-
}) | {
|
|
5002
|
-
readonly id: string;
|
|
5003
|
-
readonly metadata?: {
|
|
5004
|
-
readonly [x: string]: JsonValue;
|
|
5005
|
-
};
|
|
5006
|
-
readonly time: {
|
|
5007
|
-
readonly created: number;
|
|
5008
|
-
};
|
|
5009
|
-
readonly type: "idle";
|
|
5010
|
-
readonly outcome: "succeeded" | "failed" | "interrupted";
|
|
5011
|
-
readonly error?: {
|
|
5012
|
-
readonly type: string;
|
|
5013
|
-
readonly message: string;
|
|
5014
|
-
readonly status?: number;
|
|
5015
|
-
readonly response?: {
|
|
5016
|
-
readonly body: string;
|
|
5017
|
-
};
|
|
4217
|
+
readonly location: {
|
|
4218
|
+
readonly directory: string;
|
|
5018
4219
|
};
|
|
5019
|
-
}
|
|
4220
|
+
};
|
|
4221
|
+
readonly messages: ReadonlyArray<JsonValue>;
|
|
5020
4222
|
readonly location?: {
|
|
5021
4223
|
readonly directory: string;
|
|
5022
4224
|
} | null;
|
|
@@ -5086,426 +4288,7 @@ export type SessionImportInput = {
|
|
|
5086
4288
|
readonly directory: string;
|
|
5087
4289
|
};
|
|
5088
4290
|
};
|
|
5089
|
-
readonly messages: ReadonlyArray<
|
|
5090
|
-
readonly id: string;
|
|
5091
|
-
readonly metadata?: {
|
|
5092
|
-
readonly [x: string]: JsonValue;
|
|
5093
|
-
};
|
|
5094
|
-
readonly time: {
|
|
5095
|
-
readonly created: number;
|
|
5096
|
-
};
|
|
5097
|
-
readonly type: "agent-switched";
|
|
5098
|
-
readonly agent: string;
|
|
5099
|
-
readonly previous?: string;
|
|
5100
|
-
} | {
|
|
5101
|
-
readonly id: string;
|
|
5102
|
-
readonly metadata?: {
|
|
5103
|
-
readonly [x: string]: JsonValue;
|
|
5104
|
-
};
|
|
5105
|
-
readonly time: {
|
|
5106
|
-
readonly created: number;
|
|
5107
|
-
};
|
|
5108
|
-
readonly type: "model-switched";
|
|
5109
|
-
readonly model: {
|
|
5110
|
-
readonly id: string;
|
|
5111
|
-
readonly providerID: string;
|
|
5112
|
-
readonly variant?: string;
|
|
5113
|
-
};
|
|
5114
|
-
readonly previous?: {
|
|
5115
|
-
readonly id: string;
|
|
5116
|
-
readonly providerID: string;
|
|
5117
|
-
readonly variant?: string;
|
|
5118
|
-
};
|
|
5119
|
-
} | {
|
|
5120
|
-
readonly id: string;
|
|
5121
|
-
readonly metadata?: {
|
|
5122
|
-
readonly [x: string]: JsonValue;
|
|
5123
|
-
};
|
|
5124
|
-
readonly time: {
|
|
5125
|
-
readonly created: number;
|
|
5126
|
-
};
|
|
5127
|
-
readonly type: "location-switched";
|
|
5128
|
-
readonly projectID?: string;
|
|
5129
|
-
readonly subpath?: string;
|
|
5130
|
-
readonly location: {
|
|
5131
|
-
readonly directory: string;
|
|
5132
|
-
};
|
|
5133
|
-
readonly previous?: {
|
|
5134
|
-
readonly location: {
|
|
5135
|
-
readonly directory: string;
|
|
5136
|
-
};
|
|
5137
|
-
readonly projectID?: string;
|
|
5138
|
-
readonly subpath?: string;
|
|
5139
|
-
} | null;
|
|
5140
|
-
} | {
|
|
5141
|
-
readonly id: string;
|
|
5142
|
-
readonly metadata?: {
|
|
5143
|
-
readonly [x: string]: JsonValue;
|
|
5144
|
-
};
|
|
5145
|
-
readonly time: {
|
|
5146
|
-
readonly created: number;
|
|
5147
|
-
};
|
|
5148
|
-
readonly text: string;
|
|
5149
|
-
readonly files?: ReadonlyArray<{
|
|
5150
|
-
readonly data: string;
|
|
5151
|
-
readonly mime: string;
|
|
5152
|
-
readonly source: {
|
|
5153
|
-
readonly type: "inline";
|
|
5154
|
-
} | {
|
|
5155
|
-
readonly type: "uri";
|
|
5156
|
-
readonly uri: string;
|
|
5157
|
-
};
|
|
5158
|
-
readonly name?: string;
|
|
5159
|
-
readonly description?: string;
|
|
5160
|
-
readonly mention?: {
|
|
5161
|
-
readonly start: number;
|
|
5162
|
-
readonly end: number;
|
|
5163
|
-
readonly text: string;
|
|
5164
|
-
};
|
|
5165
|
-
}>;
|
|
5166
|
-
readonly agents?: ReadonlyArray<{
|
|
5167
|
-
readonly name: string;
|
|
5168
|
-
readonly mention?: {
|
|
5169
|
-
readonly start: number;
|
|
5170
|
-
readonly end: number;
|
|
5171
|
-
readonly text: string;
|
|
5172
|
-
};
|
|
5173
|
-
}>;
|
|
5174
|
-
readonly skills?: ReadonlyArray<{
|
|
5175
|
-
readonly id: string;
|
|
5176
|
-
readonly name: string;
|
|
5177
|
-
readonly text?: string;
|
|
5178
|
-
readonly mention?: {
|
|
5179
|
-
readonly start: number;
|
|
5180
|
-
readonly end: number;
|
|
5181
|
-
readonly text: string;
|
|
5182
|
-
};
|
|
5183
|
-
}>;
|
|
5184
|
-
readonly type: "user";
|
|
5185
|
-
} | {
|
|
5186
|
-
readonly id: string;
|
|
5187
|
-
readonly metadata?: {
|
|
5188
|
-
readonly [x: string]: JsonValue;
|
|
5189
|
-
};
|
|
5190
|
-
readonly time: {
|
|
5191
|
-
readonly created: number;
|
|
5192
|
-
};
|
|
5193
|
-
readonly text: string;
|
|
5194
|
-
readonly description?: string;
|
|
5195
|
-
readonly type: "synthetic";
|
|
5196
|
-
} | {
|
|
5197
|
-
readonly id: string;
|
|
5198
|
-
readonly metadata?: {
|
|
5199
|
-
readonly [x: string]: JsonValue;
|
|
5200
|
-
};
|
|
5201
|
-
readonly time: {
|
|
5202
|
-
readonly created: number;
|
|
5203
|
-
};
|
|
5204
|
-
readonly type: "system";
|
|
5205
|
-
readonly text: string;
|
|
5206
|
-
readonly description?: string;
|
|
5207
|
-
} | {
|
|
5208
|
-
readonly id: string;
|
|
5209
|
-
readonly metadata?: {
|
|
5210
|
-
readonly [x: string]: JsonValue;
|
|
5211
|
-
};
|
|
5212
|
-
readonly time: {
|
|
5213
|
-
readonly created: number;
|
|
5214
|
-
};
|
|
5215
|
-
readonly type: "skill";
|
|
5216
|
-
readonly skill: string;
|
|
5217
|
-
readonly name: string;
|
|
5218
|
-
readonly text: string;
|
|
5219
|
-
} | {
|
|
5220
|
-
readonly id: string;
|
|
5221
|
-
readonly metadata?: {
|
|
5222
|
-
readonly [x: string]: JsonValue;
|
|
5223
|
-
};
|
|
5224
|
-
readonly time: {
|
|
5225
|
-
readonly created: number;
|
|
5226
|
-
readonly completed?: number;
|
|
5227
|
-
};
|
|
5228
|
-
readonly type: "shell";
|
|
5229
|
-
readonly shellID: string;
|
|
5230
|
-
readonly command: string;
|
|
5231
|
-
readonly status: "running" | "exited" | "timeout" | "killed";
|
|
5232
|
-
readonly exit?: number | "Infinity" | "-Infinity" | "NaN";
|
|
5233
|
-
readonly output?: {
|
|
5234
|
-
readonly output: string;
|
|
5235
|
-
readonly cursor: number;
|
|
5236
|
-
readonly size: number;
|
|
5237
|
-
readonly truncated: boolean;
|
|
5238
|
-
};
|
|
5239
|
-
} | {
|
|
5240
|
-
readonly id: string;
|
|
5241
|
-
readonly metadata?: {
|
|
5242
|
-
readonly [x: string]: JsonValue;
|
|
5243
|
-
};
|
|
5244
|
-
readonly time: {
|
|
5245
|
-
readonly created: number;
|
|
5246
|
-
readonly streamed?: number;
|
|
5247
|
-
readonly completed?: number;
|
|
5248
|
-
};
|
|
5249
|
-
readonly type: "assistant";
|
|
5250
|
-
readonly agent: string;
|
|
5251
|
-
readonly model: {
|
|
5252
|
-
readonly id: string;
|
|
5253
|
-
readonly providerID: string;
|
|
5254
|
-
readonly variant?: string;
|
|
5255
|
-
};
|
|
5256
|
-
readonly content: ReadonlyArray<{
|
|
5257
|
-
readonly type: "text";
|
|
5258
|
-
readonly text: string;
|
|
5259
|
-
readonly state?: {
|
|
5260
|
-
readonly [x: string]: JsonValue;
|
|
5261
|
-
};
|
|
5262
|
-
} | {
|
|
5263
|
-
readonly type: "reasoning";
|
|
5264
|
-
readonly text: string;
|
|
5265
|
-
readonly state?: {
|
|
5266
|
-
readonly [x: string]: JsonValue;
|
|
5267
|
-
};
|
|
5268
|
-
readonly time?: {
|
|
5269
|
-
readonly created: number;
|
|
5270
|
-
readonly completed?: number;
|
|
5271
|
-
};
|
|
5272
|
-
} | {
|
|
5273
|
-
readonly type: "tool";
|
|
5274
|
-
readonly id: string;
|
|
5275
|
-
readonly name: string;
|
|
5276
|
-
readonly executed?: boolean;
|
|
5277
|
-
readonly providerState?: {
|
|
5278
|
-
readonly [x: string]: JsonValue;
|
|
5279
|
-
};
|
|
5280
|
-
readonly providerResultState?: {
|
|
5281
|
-
readonly [x: string]: JsonValue;
|
|
5282
|
-
};
|
|
5283
|
-
readonly state: {
|
|
5284
|
-
readonly status: "streaming";
|
|
5285
|
-
readonly input: string;
|
|
5286
|
-
} | {
|
|
5287
|
-
readonly status: "running";
|
|
5288
|
-
readonly input: {
|
|
5289
|
-
readonly [x: string]: JsonValue;
|
|
5290
|
-
};
|
|
5291
|
-
readonly metadata: {
|
|
5292
|
-
readonly [x: string]: JsonValue;
|
|
5293
|
-
};
|
|
5294
|
-
} | {
|
|
5295
|
-
readonly status: "completed";
|
|
5296
|
-
readonly input: {
|
|
5297
|
-
readonly [x: string]: JsonValue;
|
|
5298
|
-
};
|
|
5299
|
-
readonly content: readonly [
|
|
5300
|
-
({
|
|
5301
|
-
readonly type: "text";
|
|
5302
|
-
readonly text: string;
|
|
5303
|
-
} | {
|
|
5304
|
-
readonly type: "file";
|
|
5305
|
-
readonly uri: string;
|
|
5306
|
-
readonly mime: string;
|
|
5307
|
-
readonly name?: string | null;
|
|
5308
|
-
}),
|
|
5309
|
-
...Array<{
|
|
5310
|
-
readonly type: "text";
|
|
5311
|
-
readonly text: string;
|
|
5312
|
-
} | {
|
|
5313
|
-
readonly type: "file";
|
|
5314
|
-
readonly uri: string;
|
|
5315
|
-
readonly mime: string;
|
|
5316
|
-
readonly name?: string | null;
|
|
5317
|
-
}>
|
|
5318
|
-
];
|
|
5319
|
-
readonly metadata?: {
|
|
5320
|
-
readonly [x: string]: JsonValue;
|
|
5321
|
-
};
|
|
5322
|
-
} | {
|
|
5323
|
-
readonly status: "error";
|
|
5324
|
-
readonly input: {
|
|
5325
|
-
readonly [x: string]: JsonValue;
|
|
5326
|
-
};
|
|
5327
|
-
readonly error: {
|
|
5328
|
-
readonly type: string;
|
|
5329
|
-
readonly message: string;
|
|
5330
|
-
readonly status?: number;
|
|
5331
|
-
readonly response?: {
|
|
5332
|
-
readonly body: string;
|
|
5333
|
-
};
|
|
5334
|
-
};
|
|
5335
|
-
readonly content?: readonly [
|
|
5336
|
-
({
|
|
5337
|
-
readonly type: "text";
|
|
5338
|
-
readonly text: string;
|
|
5339
|
-
} | {
|
|
5340
|
-
readonly type: "file";
|
|
5341
|
-
readonly uri: string;
|
|
5342
|
-
readonly mime: string;
|
|
5343
|
-
readonly name?: string | null;
|
|
5344
|
-
}),
|
|
5345
|
-
...Array<{
|
|
5346
|
-
readonly type: "text";
|
|
5347
|
-
readonly text: string;
|
|
5348
|
-
} | {
|
|
5349
|
-
readonly type: "file";
|
|
5350
|
-
readonly uri: string;
|
|
5351
|
-
readonly mime: string;
|
|
5352
|
-
readonly name?: string | null;
|
|
5353
|
-
}>
|
|
5354
|
-
];
|
|
5355
|
-
readonly metadata?: {
|
|
5356
|
-
readonly [x: string]: JsonValue;
|
|
5357
|
-
};
|
|
5358
|
-
};
|
|
5359
|
-
readonly time: {
|
|
5360
|
-
readonly created: number;
|
|
5361
|
-
readonly ran?: number;
|
|
5362
|
-
readonly completed?: number;
|
|
5363
|
-
};
|
|
5364
|
-
}>;
|
|
5365
|
-
readonly snapshot?: {
|
|
5366
|
-
readonly start?: string;
|
|
5367
|
-
readonly end?: string;
|
|
5368
|
-
readonly files?: ReadonlyArray<string>;
|
|
5369
|
-
};
|
|
5370
|
-
readonly finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
5371
|
-
readonly rawFinish?: string;
|
|
5372
|
-
readonly providerState?: {
|
|
5373
|
-
readonly [x: string]: JsonValue;
|
|
5374
|
-
};
|
|
5375
|
-
readonly cost?: number;
|
|
5376
|
-
readonly tokens?: {
|
|
5377
|
-
readonly input: number;
|
|
5378
|
-
readonly output: number;
|
|
5379
|
-
readonly reasoning: number;
|
|
5380
|
-
readonly cache: {
|
|
5381
|
-
readonly read: number;
|
|
5382
|
-
readonly write: number;
|
|
5383
|
-
};
|
|
5384
|
-
};
|
|
5385
|
-
readonly error?: {
|
|
5386
|
-
readonly type: string;
|
|
5387
|
-
readonly message: string;
|
|
5388
|
-
readonly status?: number;
|
|
5389
|
-
readonly response?: {
|
|
5390
|
-
readonly body: string;
|
|
5391
|
-
};
|
|
5392
|
-
};
|
|
5393
|
-
readonly retry?: {
|
|
5394
|
-
readonly attempt: number;
|
|
5395
|
-
readonly at: number;
|
|
5396
|
-
readonly error: {
|
|
5397
|
-
readonly type: string;
|
|
5398
|
-
readonly message: string;
|
|
5399
|
-
readonly status?: number;
|
|
5400
|
-
readonly response?: {
|
|
5401
|
-
readonly body: string;
|
|
5402
|
-
};
|
|
5403
|
-
};
|
|
5404
|
-
};
|
|
5405
|
-
} | ({
|
|
5406
|
-
readonly type: "compaction";
|
|
5407
|
-
readonly id: string;
|
|
5408
|
-
readonly metadata?: {
|
|
5409
|
-
readonly [x: string]: JsonValue;
|
|
5410
|
-
};
|
|
5411
|
-
readonly time: {
|
|
5412
|
-
readonly created: number;
|
|
5413
|
-
};
|
|
5414
|
-
readonly status: "running";
|
|
5415
|
-
readonly reason: "auto" | "manual";
|
|
5416
|
-
readonly summary: string;
|
|
5417
|
-
readonly recent: string;
|
|
5418
|
-
} | {
|
|
5419
|
-
readonly type: "compaction";
|
|
5420
|
-
readonly id: string;
|
|
5421
|
-
readonly metadata?: {
|
|
5422
|
-
readonly [x: string]: JsonValue;
|
|
5423
|
-
};
|
|
5424
|
-
readonly time: {
|
|
5425
|
-
readonly created: number;
|
|
5426
|
-
};
|
|
5427
|
-
readonly status: "completed";
|
|
5428
|
-
readonly reason: "auto" | "manual";
|
|
5429
|
-
readonly model?: {
|
|
5430
|
-
readonly id: string;
|
|
5431
|
-
readonly providerID: string;
|
|
5432
|
-
readonly variant?: string;
|
|
5433
|
-
};
|
|
5434
|
-
readonly providerState?: {
|
|
5435
|
-
readonly [x: string]: JsonValue;
|
|
5436
|
-
};
|
|
5437
|
-
readonly summary: string;
|
|
5438
|
-
readonly recent: string;
|
|
5439
|
-
readonly providerContext?: {
|
|
5440
|
-
readonly version: 1;
|
|
5441
|
-
readonly provenance: {
|
|
5442
|
-
readonly providerID: string;
|
|
5443
|
-
readonly provider: string;
|
|
5444
|
-
readonly modelID: string;
|
|
5445
|
-
readonly route: string;
|
|
5446
|
-
readonly protocol: string;
|
|
5447
|
-
readonly endpoint: string;
|
|
5448
|
-
};
|
|
5449
|
-
readonly messages: JsonValue;
|
|
5450
|
-
};
|
|
5451
|
-
readonly cost?: number;
|
|
5452
|
-
readonly tokens?: {
|
|
5453
|
-
readonly input: number;
|
|
5454
|
-
readonly output: number;
|
|
5455
|
-
readonly reasoning: number;
|
|
5456
|
-
readonly cache: {
|
|
5457
|
-
readonly read: number;
|
|
5458
|
-
readonly write: number;
|
|
5459
|
-
};
|
|
5460
|
-
};
|
|
5461
|
-
} | {
|
|
5462
|
-
readonly type: "compaction";
|
|
5463
|
-
readonly id: string;
|
|
5464
|
-
readonly metadata?: {
|
|
5465
|
-
readonly [x: string]: JsonValue;
|
|
5466
|
-
};
|
|
5467
|
-
readonly time: {
|
|
5468
|
-
readonly created: number;
|
|
5469
|
-
};
|
|
5470
|
-
readonly status: "failed";
|
|
5471
|
-
readonly reason: "auto" | "manual";
|
|
5472
|
-
readonly error: {
|
|
5473
|
-
readonly type: string;
|
|
5474
|
-
readonly message: string;
|
|
5475
|
-
readonly status?: number;
|
|
5476
|
-
readonly response?: {
|
|
5477
|
-
readonly body: string;
|
|
5478
|
-
};
|
|
5479
|
-
};
|
|
5480
|
-
readonly cost?: number;
|
|
5481
|
-
readonly tokens?: {
|
|
5482
|
-
readonly input: number;
|
|
5483
|
-
readonly output: number;
|
|
5484
|
-
readonly reasoning: number;
|
|
5485
|
-
readonly cache: {
|
|
5486
|
-
readonly read: number;
|
|
5487
|
-
readonly write: number;
|
|
5488
|
-
};
|
|
5489
|
-
};
|
|
5490
|
-
}) | {
|
|
5491
|
-
readonly id: string;
|
|
5492
|
-
readonly metadata?: {
|
|
5493
|
-
readonly [x: string]: JsonValue;
|
|
5494
|
-
};
|
|
5495
|
-
readonly time: {
|
|
5496
|
-
readonly created: number;
|
|
5497
|
-
};
|
|
5498
|
-
readonly type: "idle";
|
|
5499
|
-
readonly outcome: "succeeded" | "failed" | "interrupted";
|
|
5500
|
-
readonly error?: {
|
|
5501
|
-
readonly type: string;
|
|
5502
|
-
readonly message: string;
|
|
5503
|
-
readonly status?: number;
|
|
5504
|
-
readonly response?: {
|
|
5505
|
-
readonly body: string;
|
|
5506
|
-
};
|
|
5507
|
-
};
|
|
5508
|
-
}>;
|
|
4291
|
+
readonly messages: ReadonlyArray<JsonValue>;
|
|
5509
4292
|
readonly location?: {
|
|
5510
4293
|
readonly directory: string;
|
|
5511
4294
|
} | null;
|
|
@@ -5591,6 +4374,7 @@ export type SessionUpdateInput = {
|
|
|
5591
4374
|
readonly resource: string;
|
|
5592
4375
|
readonly effect: "allow" | "deny" | "ask";
|
|
5593
4376
|
}> | undefined;
|
|
4377
|
+
readonly archived?: boolean | undefined;
|
|
5594
4378
|
}["title"];
|
|
5595
4379
|
readonly metadata?: {
|
|
5596
4380
|
readonly title?: string | undefined;
|
|
@@ -5602,6 +4386,7 @@ export type SessionUpdateInput = {
|
|
|
5602
4386
|
readonly resource: string;
|
|
5603
4387
|
readonly effect: "allow" | "deny" | "ask";
|
|
5604
4388
|
}> | undefined;
|
|
4389
|
+
readonly archived?: boolean | undefined;
|
|
5605
4390
|
}["metadata"];
|
|
5606
4391
|
readonly permissions?: {
|
|
5607
4392
|
readonly title?: string | undefined;
|
|
@@ -5613,7 +4398,20 @@ export type SessionUpdateInput = {
|
|
|
5613
4398
|
readonly resource: string;
|
|
5614
4399
|
readonly effect: "allow" | "deny" | "ask";
|
|
5615
4400
|
}> | undefined;
|
|
4401
|
+
readonly archived?: boolean | undefined;
|
|
5616
4402
|
}["permissions"];
|
|
4403
|
+
readonly archived?: {
|
|
4404
|
+
readonly title?: string | undefined;
|
|
4405
|
+
readonly metadata?: {
|
|
4406
|
+
readonly [x: string]: JsonValue;
|
|
4407
|
+
} | undefined;
|
|
4408
|
+
readonly permissions?: ReadonlyArray<{
|
|
4409
|
+
readonly action: string;
|
|
4410
|
+
readonly resource: string;
|
|
4411
|
+
readonly effect: "allow" | "deny" | "ask";
|
|
4412
|
+
}> | undefined;
|
|
4413
|
+
readonly archived?: boolean | undefined;
|
|
4414
|
+
}["archived"];
|
|
5617
4415
|
};
|
|
5618
4416
|
export type SessionUpdateOutput = void;
|
|
5619
4417
|
export type SessionMoveInput = {
|
|
@@ -7287,25 +6085,25 @@ export type MessageListInput = {
|
|
|
7287
6085
|
readonly limit?: number | undefined;
|
|
7288
6086
|
readonly order?: "asc" | "desc" | undefined;
|
|
7289
6087
|
readonly cursor?: string | undefined;
|
|
7290
|
-
readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | undefined;
|
|
6088
|
+
readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | "idle" | undefined;
|
|
7291
6089
|
}["limit"];
|
|
7292
6090
|
readonly order?: {
|
|
7293
6091
|
readonly limit?: number | undefined;
|
|
7294
6092
|
readonly order?: "asc" | "desc" | undefined;
|
|
7295
6093
|
readonly cursor?: string | undefined;
|
|
7296
|
-
readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | undefined;
|
|
6094
|
+
readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | "idle" | undefined;
|
|
7297
6095
|
}["order"];
|
|
7298
6096
|
readonly cursor?: {
|
|
7299
6097
|
readonly limit?: number | undefined;
|
|
7300
6098
|
readonly order?: "asc" | "desc" | undefined;
|
|
7301
6099
|
readonly cursor?: string | undefined;
|
|
7302
|
-
readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | undefined;
|
|
6100
|
+
readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | "idle" | undefined;
|
|
7303
6101
|
}["cursor"];
|
|
7304
6102
|
readonly type?: {
|
|
7305
6103
|
readonly limit?: number | undefined;
|
|
7306
6104
|
readonly order?: "asc" | "desc" | undefined;
|
|
7307
6105
|
readonly cursor?: string | undefined;
|
|
7308
|
-
readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | undefined;
|
|
6106
|
+
readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | "idle" | undefined;
|
|
7309
6107
|
}["type"];
|
|
7310
6108
|
};
|
|
7311
6109
|
export type MessageListOutput = SessionMessagesResponse;
|
|
@@ -7792,9 +6590,6 @@ export type CredentialCreateInput = {
|
|
|
7792
6590
|
readonly metadata?: {
|
|
7793
6591
|
readonly [x: string]: JsonValue;
|
|
7794
6592
|
};
|
|
7795
|
-
readonly configuration?: {
|
|
7796
|
-
readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
|
|
7797
|
-
};
|
|
7798
6593
|
} | {
|
|
7799
6594
|
readonly type: "external";
|
|
7800
6595
|
readonly methodID: string;
|
|
@@ -7823,9 +6618,6 @@ export type CredentialCreateInput = {
|
|
|
7823
6618
|
readonly metadata?: {
|
|
7824
6619
|
readonly [x: string]: JsonValue;
|
|
7825
6620
|
};
|
|
7826
|
-
readonly configuration?: {
|
|
7827
|
-
readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
|
|
7828
|
-
};
|
|
7829
6621
|
} | {
|
|
7830
6622
|
readonly type: "external";
|
|
7831
6623
|
readonly methodID: string;
|
|
@@ -7854,9 +6646,6 @@ export type CredentialCreateInput = {
|
|
|
7854
6646
|
readonly metadata?: {
|
|
7855
6647
|
readonly [x: string]: JsonValue;
|
|
7856
6648
|
};
|
|
7857
|
-
readonly configuration?: {
|
|
7858
|
-
readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
|
|
7859
|
-
};
|
|
7860
6649
|
} | {
|
|
7861
6650
|
readonly type: "external";
|
|
7862
6651
|
readonly methodID: string;
|
|
@@ -7885,9 +6674,6 @@ export type CredentialCreateInput = {
|
|
|
7885
6674
|
readonly metadata?: {
|
|
7886
6675
|
readonly [x: string]: JsonValue;
|
|
7887
6676
|
};
|
|
7888
|
-
readonly configuration?: {
|
|
7889
|
-
readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
|
|
7890
|
-
};
|
|
7891
6677
|
} | {
|
|
7892
6678
|
readonly type: "external";
|
|
7893
6679
|
readonly methodID: string;
|
|
@@ -7916,9 +6702,6 @@ export type CredentialCreateInput = {
|
|
|
7916
6702
|
readonly metadata?: {
|
|
7917
6703
|
readonly [x: string]: JsonValue;
|
|
7918
6704
|
};
|
|
7919
|
-
readonly configuration?: {
|
|
7920
|
-
readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
|
|
7921
|
-
};
|
|
7922
6705
|
} | {
|
|
7923
6706
|
readonly type: "external";
|
|
7924
6707
|
readonly methodID: string;
|
|
@@ -8043,6 +6826,22 @@ export type PermissionSavedListInput = {
|
|
|
8043
6826
|
export type PermissionSavedListOutput = {
|
|
8044
6827
|
data: Array<PermissionSavedInfo>;
|
|
8045
6828
|
}["data"];
|
|
6829
|
+
export type PermissionSavedUpdateInput = {
|
|
6830
|
+
readonly id: {
|
|
6831
|
+
readonly id: string;
|
|
6832
|
+
}["id"];
|
|
6833
|
+
readonly action?: {
|
|
6834
|
+
readonly action?: string | undefined;
|
|
6835
|
+
readonly resource?: string | undefined;
|
|
6836
|
+
}["action"];
|
|
6837
|
+
readonly resource?: {
|
|
6838
|
+
readonly action?: string | undefined;
|
|
6839
|
+
readonly resource?: string | undefined;
|
|
6840
|
+
}["resource"];
|
|
6841
|
+
};
|
|
6842
|
+
export type PermissionSavedUpdateOutput = {
|
|
6843
|
+
data: PermissionSavedInfo;
|
|
6844
|
+
}["data"];
|
|
8046
6845
|
export type PermissionSavedRemoveInput = {
|
|
8047
6846
|
readonly id: {
|
|
8048
6847
|
readonly id: string;
|