@opencode/client 0.0.0-dev-21269 → 0.0.0-dev-21286
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/{pty-handoff-x61gkv37.js → service-timing-2y0dw11y.js} +4 -4
- package/dist/chunks/{pty-handoff-1hkhww1g.js → service-timing-61wt4y9h.js} +14 -17
- package/dist/chunks/{pty-handoff-6vp15eh6.js → service-timing-6vp15eh6.js} +1 -1
- package/dist/chunks/{pty-handoff-8ye1ye6f.js → service-timing-8ye1ye6f.js} +2 -2
- package/dist/chunks/{pty-handoff-f93mzqah.js → service-timing-c9q0wppc.js} +6 -6
- package/dist/chunks/{pty-handoff-frbwqjmf.js → service-timing-frbwqjmf.js} +1 -1
- package/dist/chunks/{pty-handoff-2wvmafzq.js → service-timing-hesxqqf1.js} +1 -1
- package/dist/chunks/{pty-handoff-nv358xrg.js → service-timing-nv358xrg.js} +2 -2
- package/dist/chunks/{pty-handoff-jgqe9q94.js → service-timing-rvrf7qwv.js} +9 -9
- package/dist/chunks/{pty-handoff-t1xa31vm.js → service-timing-t1xa31vm.js} +1 -1
- package/dist/chunks/{pty-handoff-mnyft54j.js → service-timing-w1w809zr.js} +5 -5
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +10 -24
- package/dist/effect/client.d.ts +126 -140
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +956 -970
- package/dist/effect/generated/client.js +5 -5
- package/dist/effect/generated/index.js +4 -4
- package/dist/effect/index.js +8 -8
- package/dist/effect/rpc.js +4 -4
- package/dist/effect/service.js +6 -6
- package/dist/promise/client.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +8 -8
- package/dist/promise/generated/types.d.ts +168 -1462
- package/dist/promise/generated/types.js +1 -1
- package/dist/promise/index.js +10 -10
- 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.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.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 +4 -4
- /package/dist/chunks/{pty-handoff-6mptkzbc.js → service-timing-6mptkzbc.js} +0 -0
- /package/dist/chunks/{pty-handoff-7f0py9js.js → service-timing-7f0py9js.js} +0 -0
- /package/dist/chunks/{pty-handoff-8s2anffy.js → service-timing-8s2anffy.js} +0 -0
- /package/dist/chunks/{pty-handoff-9rqn6x4v.js → service-timing-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{pty-handoff-ezt8t3fk.js → service-timing-ezt8t3fk.js} +0 -0
- /package/dist/chunks/{pty-handoff-gne7h7mq.js → service-timing-gne7h7mq.js} +0 -0
- /package/dist/chunks/{pty-handoff-js54wxgp.js → service-timing-js54wxgp.js} +0 -0
- /package/dist/chunks/{pty-handoff-m2eywc8w.js → service-timing-m2eywc8w.js} +0 -0
- /package/dist/chunks/{pty-handoff-qav6mfdz.js → service-timing-qav6mfdz.js} +0 -0
- /package/dist/chunks/{pty-handoff-sxt88q69.js → service-timing-sxt88q69.js} +0 -0
- /package/dist/chunks/{pty-handoff-ve4aws36.js → service-timing-ve4aws36.js} +0 -0
- /package/dist/chunks/{pty-handoff-vmytr4q8.js → service-timing-vmytr4q8.js} +0 -0
- /package/dist/chunks/{pty-handoff-vyas3vgt.js → service-timing-vyas3vgt.js} +0 -0
- /package/dist/chunks/{pty-handoff-xgnj2w4v.js → service-timing-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{pty-handoff-ydhz1zrh.js → service-timing-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;
|
|
@@ -1123,7 +1121,7 @@ export type FormMultiselectField1 = {
|
|
|
1123
1121
|
custom?: boolean;
|
|
1124
1122
|
default?: Array<string>;
|
|
1125
1123
|
};
|
|
1126
|
-
export type
|
|
1124
|
+
export type FormAnswer1 = {
|
|
1127
1125
|
[x: string]: FormValue1;
|
|
1128
1126
|
};
|
|
1129
1127
|
export type VcsInfo = {
|
|
@@ -1205,10 +1203,22 @@ export type SessionMessageModelSelected = {
|
|
|
1205
1203
|
model: ModelRef;
|
|
1206
1204
|
previous?: ModelRef;
|
|
1207
1205
|
};
|
|
1208
|
-
export type
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
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;
|
|
1212
1222
|
};
|
|
1213
1223
|
export type ProviderRequest = {
|
|
1214
1224
|
settings: ProviderSettings;
|
|
@@ -1762,7 +1772,7 @@ export type SessionStepEnded = {
|
|
|
1762
1772
|
assistantMessageID: SessionMessageID;
|
|
1763
1773
|
finish: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
1764
1774
|
rawFinish?: string;
|
|
1765
|
-
|
|
1775
|
+
native?: SessionMessageNative1;
|
|
1766
1776
|
cost: MoneyUSD;
|
|
1767
1777
|
tokens: TokenUsageInfo;
|
|
1768
1778
|
snapshot?: SnapshotID;
|
|
@@ -1788,7 +1798,7 @@ export type SessionStepFailed = {
|
|
|
1788
1798
|
error: SessionStructuredError;
|
|
1789
1799
|
finish?: "content-filter";
|
|
1790
1800
|
rawFinish?: string;
|
|
1791
|
-
|
|
1801
|
+
native?: SessionMessageNative1;
|
|
1792
1802
|
cost?: MoneyUSD;
|
|
1793
1803
|
tokens?: TokenUsageInfo;
|
|
1794
1804
|
snapshot?: SnapshotID;
|
|
@@ -1832,7 +1842,7 @@ export type SessionTextEnded = {
|
|
|
1832
1842
|
assistantMessageID: SessionMessageID;
|
|
1833
1843
|
ordinal: number;
|
|
1834
1844
|
text: string;
|
|
1835
|
-
|
|
1845
|
+
native?: SessionMessageNative1;
|
|
1836
1846
|
};
|
|
1837
1847
|
};
|
|
1838
1848
|
export type SessionReasoningStarted = {
|
|
@@ -1852,7 +1862,7 @@ export type SessionReasoningStarted = {
|
|
|
1852
1862
|
sessionID: SessionID;
|
|
1853
1863
|
assistantMessageID: SessionMessageID;
|
|
1854
1864
|
ordinal: number;
|
|
1855
|
-
|
|
1865
|
+
native?: SessionMessageNative1;
|
|
1856
1866
|
};
|
|
1857
1867
|
};
|
|
1858
1868
|
export type SessionReasoningEnded = {
|
|
@@ -1873,7 +1883,7 @@ export type SessionReasoningEnded = {
|
|
|
1873
1883
|
assistantMessageID: SessionMessageID;
|
|
1874
1884
|
ordinal: number;
|
|
1875
1885
|
text: string;
|
|
1876
|
-
|
|
1886
|
+
native?: SessionMessageNative1;
|
|
1877
1887
|
};
|
|
1878
1888
|
};
|
|
1879
1889
|
export type SessionToolInputStarted = {
|
|
@@ -1937,7 +1947,7 @@ export type SessionToolCalled = {
|
|
|
1937
1947
|
[x: string]: any;
|
|
1938
1948
|
};
|
|
1939
1949
|
executed: boolean;
|
|
1940
|
-
|
|
1950
|
+
native?: SessionMessageNative1;
|
|
1941
1951
|
};
|
|
1942
1952
|
};
|
|
1943
1953
|
export type SessionRetryScheduled = {
|
|
@@ -1977,10 +1987,32 @@ export type SessionCompactionStarted = {
|
|
|
1977
1987
|
data: {
|
|
1978
1988
|
sessionID: SessionID;
|
|
1979
1989
|
reason: "auto" | "manual";
|
|
1980
|
-
recent: string;
|
|
1981
1990
|
inputID?: SessionMessageID;
|
|
1982
1991
|
};
|
|
1983
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
|
+
};
|
|
1984
2016
|
export type SessionCompactionFailed = {
|
|
1985
2017
|
id: EventID;
|
|
1986
2018
|
created: number;
|
|
@@ -2654,7 +2686,7 @@ export type SessionToolSuccess = {
|
|
|
2654
2686
|
[x: string]: JsonValue;
|
|
2655
2687
|
};
|
|
2656
2688
|
executed: boolean;
|
|
2657
|
-
|
|
2689
|
+
native?: SessionMessageNative1;
|
|
2658
2690
|
};
|
|
2659
2691
|
};
|
|
2660
2692
|
export type SessionToolFailed = {
|
|
@@ -2680,7 +2712,7 @@ export type SessionToolFailed = {
|
|
|
2680
2712
|
[x: string]: JsonValue;
|
|
2681
2713
|
};
|
|
2682
2714
|
executed: boolean;
|
|
2683
|
-
|
|
2715
|
+
native?: SessionMessageNative1;
|
|
2684
2716
|
};
|
|
2685
2717
|
};
|
|
2686
2718
|
export type SessionMessageToolStateCompleted1 = {
|
|
@@ -2714,14 +2746,6 @@ export type FormState = {
|
|
|
2714
2746
|
status: "cancelled";
|
|
2715
2747
|
message?: string;
|
|
2716
2748
|
};
|
|
2717
|
-
export type CredentialKey = {
|
|
2718
|
-
type: "key";
|
|
2719
|
-
key: string;
|
|
2720
|
-
metadata?: {
|
|
2721
|
-
[x: string]: JsonValue;
|
|
2722
|
-
};
|
|
2723
|
-
configuration?: FormAnswer;
|
|
2724
|
-
};
|
|
2725
2749
|
export type ProviderInfo = {
|
|
2726
2750
|
id: ProviderID;
|
|
2727
2751
|
canonical?: ProviderID;
|
|
@@ -2743,6 +2767,7 @@ export type VoiceSessionResponse = {
|
|
|
2743
2767
|
transport: VoiceTransport;
|
|
2744
2768
|
};
|
|
2745
2769
|
};
|
|
2770
|
+
export type CredentialValue = CredentialOAuth | CredentialKey | CredentialExternal;
|
|
2746
2771
|
export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
|
|
2747
2772
|
export type PtyCreated = {
|
|
2748
2773
|
id: EventID;
|
|
@@ -2802,7 +2827,7 @@ export type FormReplied = {
|
|
|
2802
2827
|
data: {
|
|
2803
2828
|
id: FormID;
|
|
2804
2829
|
sessionID: string;
|
|
2805
|
-
answer:
|
|
2830
|
+
answer: FormAnswer1;
|
|
2806
2831
|
};
|
|
2807
2832
|
};
|
|
2808
2833
|
export type SessionInboxMove = {
|
|
@@ -2839,50 +2864,7 @@ export type SessionStatsInfo = {
|
|
|
2839
2864
|
activity: Array<SessionStatsActivity>;
|
|
2840
2865
|
models: Array<SessionStatsModelUsage>;
|
|
2841
2866
|
};
|
|
2842
|
-
export type
|
|
2843
|
-
type: "compaction";
|
|
2844
|
-
id: SessionMessageID;
|
|
2845
|
-
metadata?: {
|
|
2846
|
-
[x: string]: JsonValue;
|
|
2847
|
-
};
|
|
2848
|
-
time: {
|
|
2849
|
-
created: number;
|
|
2850
|
-
};
|
|
2851
|
-
status: "completed";
|
|
2852
|
-
reason: "auto" | "manual";
|
|
2853
|
-
model?: ModelRef;
|
|
2854
|
-
providerState?: SessionMessageProviderState;
|
|
2855
|
-
summary: string;
|
|
2856
|
-
recent: string;
|
|
2857
|
-
providerContext?: SessionProviderContext;
|
|
2858
|
-
cost?: MoneyUSD;
|
|
2859
|
-
tokens?: TokenUsageInfo;
|
|
2860
|
-
};
|
|
2861
|
-
export type SessionCompactionEnded = {
|
|
2862
|
-
id: EventID;
|
|
2863
|
-
created: number;
|
|
2864
|
-
metadata?: {
|
|
2865
|
-
[x: string]: any;
|
|
2866
|
-
};
|
|
2867
|
-
type: "session.compaction.ended";
|
|
2868
|
-
durable: {
|
|
2869
|
-
aggregateID: string;
|
|
2870
|
-
seq: EventSeq;
|
|
2871
|
-
version: 1;
|
|
2872
|
-
};
|
|
2873
|
-
location?: LocationRef;
|
|
2874
|
-
data: {
|
|
2875
|
-
sessionID: SessionID;
|
|
2876
|
-
reason: "auto" | "manual";
|
|
2877
|
-
model?: ModelRef;
|
|
2878
|
-
providerState?: SessionMessageProviderState1;
|
|
2879
|
-
providerContext?: SessionProviderContext;
|
|
2880
|
-
text: string;
|
|
2881
|
-
recent: string;
|
|
2882
|
-
cost?: MoneyUSD;
|
|
2883
|
-
tokens?: TokenUsageInfo;
|
|
2884
|
-
};
|
|
2885
|
-
};
|
|
2867
|
+
export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
|
|
2886
2868
|
export type ModelInfo = {
|
|
2887
2869
|
id: string;
|
|
2888
2870
|
modelID: string;
|
|
@@ -3289,8 +3271,7 @@ export type SessionMessageAssistantTool = {
|
|
|
3289
3271
|
id: string;
|
|
3290
3272
|
name: string;
|
|
3291
3273
|
executed?: boolean;
|
|
3292
|
-
|
|
3293
|
-
providerResultState?: SessionMessageProviderState;
|
|
3274
|
+
native?: SessionMessageNative;
|
|
3294
3275
|
state: SessionMessageToolStateStreaming | SessionMessageToolStateRunning | SessionMessageToolStateCompleted | SessionMessageToolStateError;
|
|
3295
3276
|
time: {
|
|
3296
3277
|
created: number;
|
|
@@ -3320,8 +3301,7 @@ export type SessionMessageAssistantTool1 = {
|
|
|
3320
3301
|
id: string;
|
|
3321
3302
|
name: string;
|
|
3322
3303
|
executed?: boolean;
|
|
3323
|
-
|
|
3324
|
-
providerResultState?: SessionMessageProviderState1;
|
|
3304
|
+
native?: SessionMessageNative1;
|
|
3325
3305
|
state: SessionMessageToolStateStreaming | SessionMessageToolStateRunning1 | SessionMessageToolStateCompleted1 | SessionMessageToolStateError1;
|
|
3326
3306
|
time: {
|
|
3327
3307
|
created: number;
|
|
@@ -3330,9 +3310,14 @@ export type SessionMessageAssistantTool1 = {
|
|
|
3330
3310
|
};
|
|
3331
3311
|
};
|
|
3332
3312
|
export type FormFields = [FormField, ...Array<FormField>];
|
|
3333
|
-
export type
|
|
3313
|
+
export type CredentialEntry = {
|
|
3314
|
+
id: CredentialID;
|
|
3315
|
+
integrationID: IntegrationID;
|
|
3316
|
+
label: string;
|
|
3317
|
+
active: boolean;
|
|
3318
|
+
value: CredentialValue;
|
|
3319
|
+
};
|
|
3334
3320
|
export type FormFields2 = [FormField1, ...Array<FormField1>];
|
|
3335
|
-
export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
|
|
3336
3321
|
export type SessionsResponse = {
|
|
3337
3322
|
data: Array<SessionInfo>;
|
|
3338
3323
|
cursor: {
|
|
@@ -3362,7 +3347,7 @@ export type SessionMessageAssistant = {
|
|
|
3362
3347
|
};
|
|
3363
3348
|
finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
3364
3349
|
rawFinish?: string;
|
|
3365
|
-
|
|
3350
|
+
native?: SessionMessageNative;
|
|
3366
3351
|
cost?: MoneyUSD;
|
|
3367
3352
|
tokens?: TokenUsageInfo;
|
|
3368
3353
|
error?: SessionStructuredError;
|
|
@@ -3420,13 +3405,6 @@ export type IntegrationExternalMethod = {
|
|
|
3420
3405
|
label: string;
|
|
3421
3406
|
form?: FormFields;
|
|
3422
3407
|
};
|
|
3423
|
-
export type CredentialEntry = {
|
|
3424
|
-
id: CredentialID;
|
|
3425
|
-
integrationID: IntegrationID;
|
|
3426
|
-
label: string;
|
|
3427
|
-
active: boolean;
|
|
3428
|
-
value: CredentialValue;
|
|
3429
|
-
};
|
|
3430
3408
|
export type FormInfo1 = {
|
|
3431
3409
|
id: FormID;
|
|
3432
3410
|
sessionID: string;
|
|
@@ -4170,960 +4148,122 @@ export type SessionImportInput = {
|
|
|
4170
4148
|
readonly directory: string;
|
|
4171
4149
|
};
|
|
4172
4150
|
};
|
|
4173
|
-
readonly messages: ReadonlyArray<
|
|
4174
|
-
|
|
4175
|
-
readonly
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
};
|
|
4181
|
-
readonly type: "agent-switched";
|
|
4182
|
-
readonly agent: string;
|
|
4183
|
-
readonly previous?: string;
|
|
4184
|
-
} | {
|
|
4151
|
+
readonly messages: ReadonlyArray<JsonValue>;
|
|
4152
|
+
readonly location?: {
|
|
4153
|
+
readonly directory: string;
|
|
4154
|
+
} | null;
|
|
4155
|
+
}["info"];
|
|
4156
|
+
readonly messages: {
|
|
4157
|
+
readonly info: {
|
|
4185
4158
|
readonly id: string;
|
|
4186
|
-
readonly
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
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
|
+
};
|
|
4197
4169
|
};
|
|
4198
|
-
readonly
|
|
4170
|
+
readonly projectID: string;
|
|
4171
|
+
readonly agent?: string;
|
|
4172
|
+
readonly model?: {
|
|
4199
4173
|
readonly id: string;
|
|
4200
4174
|
readonly providerID: string;
|
|
4201
4175
|
readonly variant?: string;
|
|
4202
4176
|
};
|
|
4203
|
-
|
|
4204
|
-
readonly
|
|
4205
|
-
|
|
4206
|
-
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
|
+
};
|
|
4207
4186
|
};
|
|
4187
|
+
readonly outcome?: "succeeded" | "failed" | "interrupted";
|
|
4208
4188
|
readonly time: {
|
|
4209
4189
|
readonly created: number;
|
|
4190
|
+
readonly updated: number;
|
|
4191
|
+
readonly idle?: number;
|
|
4192
|
+
readonly viewed?: number;
|
|
4193
|
+
readonly archived?: number;
|
|
4210
4194
|
};
|
|
4211
|
-
readonly
|
|
4212
|
-
readonly projectID?: string;
|
|
4195
|
+
readonly title?: string;
|
|
4213
4196
|
readonly subpath?: string;
|
|
4214
|
-
readonly location: {
|
|
4215
|
-
readonly directory: string;
|
|
4216
|
-
};
|
|
4217
|
-
readonly previous?: {
|
|
4218
|
-
readonly location: {
|
|
4219
|
-
readonly directory: string;
|
|
4220
|
-
};
|
|
4221
|
-
readonly projectID?: string;
|
|
4222
|
-
readonly subpath?: string;
|
|
4223
|
-
} | null;
|
|
4224
|
-
} | {
|
|
4225
|
-
readonly id: string;
|
|
4226
4197
|
readonly metadata?: {
|
|
4227
4198
|
readonly [x: string]: JsonValue;
|
|
4228
4199
|
};
|
|
4229
|
-
readonly
|
|
4230
|
-
readonly
|
|
4200
|
+
readonly permissions?: ReadonlyArray<{
|
|
4201
|
+
readonly action: string;
|
|
4202
|
+
readonly resource: string;
|
|
4203
|
+
readonly effect: "allow" | "deny" | "ask";
|
|
4204
|
+
}>;
|
|
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
|
+
}>;
|
|
4216
|
+
};
|
|
4217
|
+
readonly location: {
|
|
4218
|
+
readonly directory: string;
|
|
4231
4219
|
};
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4220
|
+
};
|
|
4221
|
+
readonly messages: ReadonlyArray<JsonValue>;
|
|
4222
|
+
readonly location?: {
|
|
4223
|
+
readonly directory: string;
|
|
4224
|
+
} | null;
|
|
4225
|
+
}["messages"];
|
|
4226
|
+
readonly location?: {
|
|
4227
|
+
readonly info: {
|
|
4228
|
+
readonly id: string;
|
|
4229
|
+
readonly parentID?: string;
|
|
4230
|
+
readonly fork?: {
|
|
4231
|
+
readonly sessionID: string;
|
|
4232
|
+
readonly boundary: {
|
|
4233
|
+
readonly type: "before";
|
|
4234
|
+
readonly messageID: string;
|
|
4238
4235
|
} | {
|
|
4239
|
-
readonly type: "
|
|
4240
|
-
readonly
|
|
4241
|
-
};
|
|
4242
|
-
readonly name?: string;
|
|
4243
|
-
readonly description?: string;
|
|
4244
|
-
readonly mention?: {
|
|
4245
|
-
readonly start: number;
|
|
4246
|
-
readonly end: number;
|
|
4247
|
-
readonly text: string;
|
|
4248
|
-
};
|
|
4249
|
-
}>;
|
|
4250
|
-
readonly agents?: ReadonlyArray<{
|
|
4251
|
-
readonly name: string;
|
|
4252
|
-
readonly mention?: {
|
|
4253
|
-
readonly start: number;
|
|
4254
|
-
readonly end: number;
|
|
4255
|
-
readonly text: string;
|
|
4256
|
-
};
|
|
4257
|
-
}>;
|
|
4258
|
-
readonly skills?: ReadonlyArray<{
|
|
4259
|
-
readonly id: string;
|
|
4260
|
-
readonly name: string;
|
|
4261
|
-
readonly text?: string;
|
|
4262
|
-
readonly mention?: {
|
|
4263
|
-
readonly start: number;
|
|
4264
|
-
readonly end: number;
|
|
4265
|
-
readonly text: string;
|
|
4236
|
+
readonly type: "through";
|
|
4237
|
+
readonly messageID: string;
|
|
4266
4238
|
};
|
|
4267
|
-
}>;
|
|
4268
|
-
readonly type: "user";
|
|
4269
|
-
} | {
|
|
4270
|
-
readonly id: string;
|
|
4271
|
-
readonly metadata?: {
|
|
4272
|
-
readonly [x: string]: JsonValue;
|
|
4273
4239
|
};
|
|
4274
|
-
readonly
|
|
4275
|
-
|
|
4240
|
+
readonly projectID: string;
|
|
4241
|
+
readonly agent?: string;
|
|
4242
|
+
readonly model?: {
|
|
4243
|
+
readonly id: string;
|
|
4244
|
+
readonly providerID: string;
|
|
4245
|
+
readonly variant?: string;
|
|
4276
4246
|
};
|
|
4277
|
-
readonly
|
|
4278
|
-
readonly
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4247
|
+
readonly cost: number;
|
|
4248
|
+
readonly tokens: {
|
|
4249
|
+
readonly input: number;
|
|
4250
|
+
readonly output: number;
|
|
4251
|
+
readonly reasoning: number;
|
|
4252
|
+
readonly cache: {
|
|
4253
|
+
readonly read: number;
|
|
4254
|
+
readonly write: number;
|
|
4255
|
+
};
|
|
4284
4256
|
};
|
|
4257
|
+
readonly outcome?: "succeeded" | "failed" | "interrupted";
|
|
4285
4258
|
readonly time: {
|
|
4286
4259
|
readonly created: number;
|
|
4260
|
+
readonly updated: number;
|
|
4261
|
+
readonly idle?: number;
|
|
4262
|
+
readonly viewed?: number;
|
|
4263
|
+
readonly archived?: number;
|
|
4287
4264
|
};
|
|
4288
|
-
readonly
|
|
4289
|
-
readonly
|
|
4290
|
-
readonly description?: string;
|
|
4291
|
-
} | {
|
|
4292
|
-
readonly id: string;
|
|
4293
|
-
readonly metadata?: {
|
|
4294
|
-
readonly [x: string]: JsonValue;
|
|
4295
|
-
};
|
|
4296
|
-
readonly time: {
|
|
4297
|
-
readonly created: number;
|
|
4298
|
-
};
|
|
4299
|
-
readonly type: "skill";
|
|
4300
|
-
readonly skill: string;
|
|
4301
|
-
readonly name: string;
|
|
4302
|
-
readonly text: string;
|
|
4303
|
-
} | {
|
|
4304
|
-
readonly id: string;
|
|
4305
|
-
readonly metadata?: {
|
|
4306
|
-
readonly [x: string]: JsonValue;
|
|
4307
|
-
};
|
|
4308
|
-
readonly time: {
|
|
4309
|
-
readonly created: number;
|
|
4310
|
-
readonly completed?: number;
|
|
4311
|
-
};
|
|
4312
|
-
readonly type: "shell";
|
|
4313
|
-
readonly shellID: string;
|
|
4314
|
-
readonly command: string;
|
|
4315
|
-
readonly status: "running" | "exited" | "timeout" | "killed";
|
|
4316
|
-
readonly exit?: number | "Infinity" | "-Infinity" | "NaN";
|
|
4317
|
-
readonly output?: {
|
|
4318
|
-
readonly output: string;
|
|
4319
|
-
readonly cursor: number;
|
|
4320
|
-
readonly size: number;
|
|
4321
|
-
readonly truncated: boolean;
|
|
4322
|
-
};
|
|
4323
|
-
} | {
|
|
4324
|
-
readonly id: string;
|
|
4325
|
-
readonly metadata?: {
|
|
4326
|
-
readonly [x: string]: JsonValue;
|
|
4327
|
-
};
|
|
4328
|
-
readonly time: {
|
|
4329
|
-
readonly created: number;
|
|
4330
|
-
readonly streamed?: number;
|
|
4331
|
-
readonly completed?: number;
|
|
4332
|
-
};
|
|
4333
|
-
readonly type: "assistant";
|
|
4334
|
-
readonly agent: string;
|
|
4335
|
-
readonly model: {
|
|
4336
|
-
readonly id: string;
|
|
4337
|
-
readonly providerID: string;
|
|
4338
|
-
readonly variant?: string;
|
|
4339
|
-
};
|
|
4340
|
-
readonly content: ReadonlyArray<{
|
|
4341
|
-
readonly type: "text";
|
|
4342
|
-
readonly text: string;
|
|
4343
|
-
readonly state?: {
|
|
4344
|
-
readonly [x: string]: JsonValue;
|
|
4345
|
-
};
|
|
4346
|
-
} | {
|
|
4347
|
-
readonly type: "reasoning";
|
|
4348
|
-
readonly text: string;
|
|
4349
|
-
readonly state?: {
|
|
4350
|
-
readonly [x: string]: JsonValue;
|
|
4351
|
-
};
|
|
4352
|
-
readonly time?: {
|
|
4353
|
-
readonly created: number;
|
|
4354
|
-
readonly completed?: number;
|
|
4355
|
-
};
|
|
4356
|
-
} | {
|
|
4357
|
-
readonly type: "tool";
|
|
4358
|
-
readonly id: string;
|
|
4359
|
-
readonly name: string;
|
|
4360
|
-
readonly executed?: boolean;
|
|
4361
|
-
readonly providerState?: {
|
|
4362
|
-
readonly [x: string]: JsonValue;
|
|
4363
|
-
};
|
|
4364
|
-
readonly providerResultState?: {
|
|
4365
|
-
readonly [x: string]: JsonValue;
|
|
4366
|
-
};
|
|
4367
|
-
readonly state: {
|
|
4368
|
-
readonly status: "streaming";
|
|
4369
|
-
readonly input: string;
|
|
4370
|
-
} | {
|
|
4371
|
-
readonly status: "running";
|
|
4372
|
-
readonly input: {
|
|
4373
|
-
readonly [x: string]: JsonValue;
|
|
4374
|
-
};
|
|
4375
|
-
readonly metadata: {
|
|
4376
|
-
readonly [x: string]: JsonValue;
|
|
4377
|
-
};
|
|
4378
|
-
} | {
|
|
4379
|
-
readonly status: "completed";
|
|
4380
|
-
readonly input: {
|
|
4381
|
-
readonly [x: string]: JsonValue;
|
|
4382
|
-
};
|
|
4383
|
-
readonly content: readonly [
|
|
4384
|
-
({
|
|
4385
|
-
readonly type: "text";
|
|
4386
|
-
readonly text: string;
|
|
4387
|
-
} | {
|
|
4388
|
-
readonly type: "file";
|
|
4389
|
-
readonly uri: string;
|
|
4390
|
-
readonly mime: string;
|
|
4391
|
-
readonly name?: string | null;
|
|
4392
|
-
}),
|
|
4393
|
-
...Array<{
|
|
4394
|
-
readonly type: "text";
|
|
4395
|
-
readonly text: string;
|
|
4396
|
-
} | {
|
|
4397
|
-
readonly type: "file";
|
|
4398
|
-
readonly uri: string;
|
|
4399
|
-
readonly mime: string;
|
|
4400
|
-
readonly name?: string | null;
|
|
4401
|
-
}>
|
|
4402
|
-
];
|
|
4403
|
-
readonly metadata?: {
|
|
4404
|
-
readonly [x: string]: JsonValue;
|
|
4405
|
-
};
|
|
4406
|
-
} | {
|
|
4407
|
-
readonly status: "error";
|
|
4408
|
-
readonly input: {
|
|
4409
|
-
readonly [x: string]: JsonValue;
|
|
4410
|
-
};
|
|
4411
|
-
readonly error: {
|
|
4412
|
-
readonly type: string;
|
|
4413
|
-
readonly message: string;
|
|
4414
|
-
readonly status?: number;
|
|
4415
|
-
readonly response?: {
|
|
4416
|
-
readonly body: string;
|
|
4417
|
-
};
|
|
4418
|
-
};
|
|
4419
|
-
readonly content?: readonly [
|
|
4420
|
-
({
|
|
4421
|
-
readonly type: "text";
|
|
4422
|
-
readonly text: string;
|
|
4423
|
-
} | {
|
|
4424
|
-
readonly type: "file";
|
|
4425
|
-
readonly uri: string;
|
|
4426
|
-
readonly mime: string;
|
|
4427
|
-
readonly name?: string | null;
|
|
4428
|
-
}),
|
|
4429
|
-
...Array<{
|
|
4430
|
-
readonly type: "text";
|
|
4431
|
-
readonly text: string;
|
|
4432
|
-
} | {
|
|
4433
|
-
readonly type: "file";
|
|
4434
|
-
readonly uri: string;
|
|
4435
|
-
readonly mime: string;
|
|
4436
|
-
readonly name?: string | null;
|
|
4437
|
-
}>
|
|
4438
|
-
];
|
|
4439
|
-
readonly metadata?: {
|
|
4440
|
-
readonly [x: string]: JsonValue;
|
|
4441
|
-
};
|
|
4442
|
-
};
|
|
4443
|
-
readonly time: {
|
|
4444
|
-
readonly created: number;
|
|
4445
|
-
readonly ran?: number;
|
|
4446
|
-
readonly completed?: number;
|
|
4447
|
-
};
|
|
4448
|
-
}>;
|
|
4449
|
-
readonly snapshot?: {
|
|
4450
|
-
readonly start?: string;
|
|
4451
|
-
readonly end?: string;
|
|
4452
|
-
readonly files?: ReadonlyArray<string>;
|
|
4453
|
-
};
|
|
4454
|
-
readonly finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
4455
|
-
readonly rawFinish?: string;
|
|
4456
|
-
readonly providerState?: {
|
|
4457
|
-
readonly [x: string]: JsonValue;
|
|
4458
|
-
};
|
|
4459
|
-
readonly cost?: number;
|
|
4460
|
-
readonly tokens?: {
|
|
4461
|
-
readonly input: number;
|
|
4462
|
-
readonly output: number;
|
|
4463
|
-
readonly reasoning: number;
|
|
4464
|
-
readonly cache: {
|
|
4465
|
-
readonly read: number;
|
|
4466
|
-
readonly write: number;
|
|
4467
|
-
};
|
|
4468
|
-
};
|
|
4469
|
-
readonly error?: {
|
|
4470
|
-
readonly type: string;
|
|
4471
|
-
readonly message: string;
|
|
4472
|
-
readonly status?: number;
|
|
4473
|
-
readonly response?: {
|
|
4474
|
-
readonly body: string;
|
|
4475
|
-
};
|
|
4476
|
-
};
|
|
4477
|
-
readonly retry?: {
|
|
4478
|
-
readonly attempt: number;
|
|
4479
|
-
readonly at: number;
|
|
4480
|
-
readonly error: {
|
|
4481
|
-
readonly type: string;
|
|
4482
|
-
readonly message: string;
|
|
4483
|
-
readonly status?: number;
|
|
4484
|
-
readonly response?: {
|
|
4485
|
-
readonly body: string;
|
|
4486
|
-
};
|
|
4487
|
-
};
|
|
4488
|
-
};
|
|
4489
|
-
} | ({
|
|
4490
|
-
readonly type: "compaction";
|
|
4491
|
-
readonly id: string;
|
|
4492
|
-
readonly metadata?: {
|
|
4493
|
-
readonly [x: string]: JsonValue;
|
|
4494
|
-
};
|
|
4495
|
-
readonly time: {
|
|
4496
|
-
readonly created: number;
|
|
4497
|
-
};
|
|
4498
|
-
readonly status: "running";
|
|
4499
|
-
readonly reason: "auto" | "manual";
|
|
4500
|
-
readonly summary: string;
|
|
4501
|
-
readonly recent: string;
|
|
4502
|
-
} | {
|
|
4503
|
-
readonly type: "compaction";
|
|
4504
|
-
readonly id: string;
|
|
4505
|
-
readonly metadata?: {
|
|
4506
|
-
readonly [x: string]: JsonValue;
|
|
4507
|
-
};
|
|
4508
|
-
readonly time: {
|
|
4509
|
-
readonly created: number;
|
|
4510
|
-
};
|
|
4511
|
-
readonly status: "completed";
|
|
4512
|
-
readonly reason: "auto" | "manual";
|
|
4513
|
-
readonly model?: {
|
|
4514
|
-
readonly id: string;
|
|
4515
|
-
readonly providerID: string;
|
|
4516
|
-
readonly variant?: string;
|
|
4517
|
-
};
|
|
4518
|
-
readonly providerState?: {
|
|
4519
|
-
readonly [x: string]: JsonValue;
|
|
4520
|
-
};
|
|
4521
|
-
readonly summary: string;
|
|
4522
|
-
readonly recent: string;
|
|
4523
|
-
readonly providerContext?: {
|
|
4524
|
-
readonly version: 1;
|
|
4525
|
-
readonly provenance: {
|
|
4526
|
-
readonly providerID: string;
|
|
4527
|
-
readonly provider: string;
|
|
4528
|
-
readonly modelID: string;
|
|
4529
|
-
readonly route: string;
|
|
4530
|
-
readonly protocol: string;
|
|
4531
|
-
readonly endpoint: string;
|
|
4532
|
-
};
|
|
4533
|
-
readonly messages: JsonValue;
|
|
4534
|
-
};
|
|
4535
|
-
readonly cost?: number;
|
|
4536
|
-
readonly tokens?: {
|
|
4537
|
-
readonly input: number;
|
|
4538
|
-
readonly output: number;
|
|
4539
|
-
readonly reasoning: number;
|
|
4540
|
-
readonly cache: {
|
|
4541
|
-
readonly read: number;
|
|
4542
|
-
readonly write: number;
|
|
4543
|
-
};
|
|
4544
|
-
};
|
|
4545
|
-
} | {
|
|
4546
|
-
readonly type: "compaction";
|
|
4547
|
-
readonly id: string;
|
|
4548
|
-
readonly metadata?: {
|
|
4549
|
-
readonly [x: string]: JsonValue;
|
|
4550
|
-
};
|
|
4551
|
-
readonly time: {
|
|
4552
|
-
readonly created: number;
|
|
4553
|
-
};
|
|
4554
|
-
readonly status: "failed";
|
|
4555
|
-
readonly reason: "auto" | "manual";
|
|
4556
|
-
readonly error: {
|
|
4557
|
-
readonly type: string;
|
|
4558
|
-
readonly message: string;
|
|
4559
|
-
readonly status?: number;
|
|
4560
|
-
readonly response?: {
|
|
4561
|
-
readonly body: string;
|
|
4562
|
-
};
|
|
4563
|
-
};
|
|
4564
|
-
readonly cost?: number;
|
|
4565
|
-
readonly tokens?: {
|
|
4566
|
-
readonly input: number;
|
|
4567
|
-
readonly output: number;
|
|
4568
|
-
readonly reasoning: number;
|
|
4569
|
-
readonly cache: {
|
|
4570
|
-
readonly read: number;
|
|
4571
|
-
readonly write: number;
|
|
4572
|
-
};
|
|
4573
|
-
};
|
|
4574
|
-
}) | {
|
|
4575
|
-
readonly id: string;
|
|
4576
|
-
readonly metadata?: {
|
|
4577
|
-
readonly [x: string]: JsonValue;
|
|
4578
|
-
};
|
|
4579
|
-
readonly time: {
|
|
4580
|
-
readonly created: number;
|
|
4581
|
-
};
|
|
4582
|
-
readonly type: "idle";
|
|
4583
|
-
readonly outcome: "succeeded" | "failed" | "interrupted";
|
|
4584
|
-
readonly error?: {
|
|
4585
|
-
readonly type: string;
|
|
4586
|
-
readonly message: string;
|
|
4587
|
-
readonly status?: number;
|
|
4588
|
-
readonly response?: {
|
|
4589
|
-
readonly body: string;
|
|
4590
|
-
};
|
|
4591
|
-
};
|
|
4592
|
-
}>;
|
|
4593
|
-
readonly location?: {
|
|
4594
|
-
readonly directory: string;
|
|
4595
|
-
} | null;
|
|
4596
|
-
}["info"];
|
|
4597
|
-
readonly messages: {
|
|
4598
|
-
readonly info: {
|
|
4599
|
-
readonly id: string;
|
|
4600
|
-
readonly parentID?: string;
|
|
4601
|
-
readonly fork?: {
|
|
4602
|
-
readonly sessionID: string;
|
|
4603
|
-
readonly boundary: {
|
|
4604
|
-
readonly type: "before";
|
|
4605
|
-
readonly messageID: string;
|
|
4606
|
-
} | {
|
|
4607
|
-
readonly type: "through";
|
|
4608
|
-
readonly messageID: string;
|
|
4609
|
-
};
|
|
4610
|
-
};
|
|
4611
|
-
readonly projectID: string;
|
|
4612
|
-
readonly agent?: string;
|
|
4613
|
-
readonly model?: {
|
|
4614
|
-
readonly id: string;
|
|
4615
|
-
readonly providerID: string;
|
|
4616
|
-
readonly variant?: string;
|
|
4617
|
-
};
|
|
4618
|
-
readonly cost: number;
|
|
4619
|
-
readonly tokens: {
|
|
4620
|
-
readonly input: number;
|
|
4621
|
-
readonly output: number;
|
|
4622
|
-
readonly reasoning: number;
|
|
4623
|
-
readonly cache: {
|
|
4624
|
-
readonly read: number;
|
|
4625
|
-
readonly write: number;
|
|
4626
|
-
};
|
|
4627
|
-
};
|
|
4628
|
-
readonly outcome?: "succeeded" | "failed" | "interrupted";
|
|
4629
|
-
readonly time: {
|
|
4630
|
-
readonly created: number;
|
|
4631
|
-
readonly updated: number;
|
|
4632
|
-
readonly idle?: number;
|
|
4633
|
-
readonly viewed?: number;
|
|
4634
|
-
readonly archived?: number;
|
|
4635
|
-
};
|
|
4636
|
-
readonly title?: string;
|
|
4637
|
-
readonly subpath?: string;
|
|
4638
|
-
readonly metadata?: {
|
|
4639
|
-
readonly [x: string]: JsonValue;
|
|
4640
|
-
};
|
|
4641
|
-
readonly permissions?: ReadonlyArray<{
|
|
4642
|
-
readonly action: string;
|
|
4643
|
-
readonly resource: string;
|
|
4644
|
-
readonly effect: "allow" | "deny" | "ask";
|
|
4645
|
-
}>;
|
|
4646
|
-
readonly revert?: {
|
|
4647
|
-
readonly messageID: string;
|
|
4648
|
-
readonly partID?: string;
|
|
4649
|
-
readonly snapshot?: string;
|
|
4650
|
-
readonly files?: ReadonlyArray<{
|
|
4651
|
-
readonly file: string;
|
|
4652
|
-
readonly patch: string;
|
|
4653
|
-
readonly additions: number;
|
|
4654
|
-
readonly deletions: number;
|
|
4655
|
-
readonly status: "added" | "deleted" | "modified";
|
|
4656
|
-
}>;
|
|
4657
|
-
};
|
|
4658
|
-
readonly location: {
|
|
4659
|
-
readonly directory: string;
|
|
4660
|
-
};
|
|
4661
|
-
};
|
|
4662
|
-
readonly messages: ReadonlyArray<{
|
|
4663
|
-
readonly id: string;
|
|
4664
|
-
readonly metadata?: {
|
|
4665
|
-
readonly [x: string]: JsonValue;
|
|
4666
|
-
};
|
|
4667
|
-
readonly time: {
|
|
4668
|
-
readonly created: number;
|
|
4669
|
-
};
|
|
4670
|
-
readonly type: "agent-switched";
|
|
4671
|
-
readonly agent: string;
|
|
4672
|
-
readonly previous?: string;
|
|
4673
|
-
} | {
|
|
4674
|
-
readonly id: string;
|
|
4675
|
-
readonly metadata?: {
|
|
4676
|
-
readonly [x: string]: JsonValue;
|
|
4677
|
-
};
|
|
4678
|
-
readonly time: {
|
|
4679
|
-
readonly created: number;
|
|
4680
|
-
};
|
|
4681
|
-
readonly type: "model-switched";
|
|
4682
|
-
readonly model: {
|
|
4683
|
-
readonly id: string;
|
|
4684
|
-
readonly providerID: string;
|
|
4685
|
-
readonly variant?: string;
|
|
4686
|
-
};
|
|
4687
|
-
readonly previous?: {
|
|
4688
|
-
readonly id: string;
|
|
4689
|
-
readonly providerID: string;
|
|
4690
|
-
readonly variant?: string;
|
|
4691
|
-
};
|
|
4692
|
-
} | {
|
|
4693
|
-
readonly id: string;
|
|
4694
|
-
readonly metadata?: {
|
|
4695
|
-
readonly [x: string]: JsonValue;
|
|
4696
|
-
};
|
|
4697
|
-
readonly time: {
|
|
4698
|
-
readonly created: number;
|
|
4699
|
-
};
|
|
4700
|
-
readonly type: "location-switched";
|
|
4701
|
-
readonly projectID?: string;
|
|
4702
|
-
readonly subpath?: string;
|
|
4703
|
-
readonly location: {
|
|
4704
|
-
readonly directory: string;
|
|
4705
|
-
};
|
|
4706
|
-
readonly previous?: {
|
|
4707
|
-
readonly location: {
|
|
4708
|
-
readonly directory: string;
|
|
4709
|
-
};
|
|
4710
|
-
readonly projectID?: string;
|
|
4711
|
-
readonly subpath?: string;
|
|
4712
|
-
} | null;
|
|
4713
|
-
} | {
|
|
4714
|
-
readonly id: string;
|
|
4715
|
-
readonly metadata?: {
|
|
4716
|
-
readonly [x: string]: JsonValue;
|
|
4717
|
-
};
|
|
4718
|
-
readonly time: {
|
|
4719
|
-
readonly created: number;
|
|
4720
|
-
};
|
|
4721
|
-
readonly text: string;
|
|
4722
|
-
readonly files?: ReadonlyArray<{
|
|
4723
|
-
readonly data: string;
|
|
4724
|
-
readonly mime: string;
|
|
4725
|
-
readonly source: {
|
|
4726
|
-
readonly type: "inline";
|
|
4727
|
-
} | {
|
|
4728
|
-
readonly type: "uri";
|
|
4729
|
-
readonly uri: string;
|
|
4730
|
-
};
|
|
4731
|
-
readonly name?: string;
|
|
4732
|
-
readonly description?: string;
|
|
4733
|
-
readonly mention?: {
|
|
4734
|
-
readonly start: number;
|
|
4735
|
-
readonly end: number;
|
|
4736
|
-
readonly text: string;
|
|
4737
|
-
};
|
|
4738
|
-
}>;
|
|
4739
|
-
readonly agents?: ReadonlyArray<{
|
|
4740
|
-
readonly name: string;
|
|
4741
|
-
readonly mention?: {
|
|
4742
|
-
readonly start: number;
|
|
4743
|
-
readonly end: number;
|
|
4744
|
-
readonly text: string;
|
|
4745
|
-
};
|
|
4746
|
-
}>;
|
|
4747
|
-
readonly skills?: ReadonlyArray<{
|
|
4748
|
-
readonly id: string;
|
|
4749
|
-
readonly name: string;
|
|
4750
|
-
readonly text?: string;
|
|
4751
|
-
readonly mention?: {
|
|
4752
|
-
readonly start: number;
|
|
4753
|
-
readonly end: number;
|
|
4754
|
-
readonly text: string;
|
|
4755
|
-
};
|
|
4756
|
-
}>;
|
|
4757
|
-
readonly type: "user";
|
|
4758
|
-
} | {
|
|
4759
|
-
readonly id: string;
|
|
4760
|
-
readonly metadata?: {
|
|
4761
|
-
readonly [x: string]: JsonValue;
|
|
4762
|
-
};
|
|
4763
|
-
readonly time: {
|
|
4764
|
-
readonly created: number;
|
|
4765
|
-
};
|
|
4766
|
-
readonly text: string;
|
|
4767
|
-
readonly description?: string;
|
|
4768
|
-
readonly type: "synthetic";
|
|
4769
|
-
} | {
|
|
4770
|
-
readonly id: string;
|
|
4771
|
-
readonly metadata?: {
|
|
4772
|
-
readonly [x: string]: JsonValue;
|
|
4773
|
-
};
|
|
4774
|
-
readonly time: {
|
|
4775
|
-
readonly created: number;
|
|
4776
|
-
};
|
|
4777
|
-
readonly type: "system";
|
|
4778
|
-
readonly text: string;
|
|
4779
|
-
readonly description?: string;
|
|
4780
|
-
} | {
|
|
4781
|
-
readonly id: string;
|
|
4782
|
-
readonly metadata?: {
|
|
4783
|
-
readonly [x: string]: JsonValue;
|
|
4784
|
-
};
|
|
4785
|
-
readonly time: {
|
|
4786
|
-
readonly created: number;
|
|
4787
|
-
};
|
|
4788
|
-
readonly type: "skill";
|
|
4789
|
-
readonly skill: string;
|
|
4790
|
-
readonly name: string;
|
|
4791
|
-
readonly text: string;
|
|
4792
|
-
} | {
|
|
4793
|
-
readonly id: string;
|
|
4794
|
-
readonly metadata?: {
|
|
4795
|
-
readonly [x: string]: JsonValue;
|
|
4796
|
-
};
|
|
4797
|
-
readonly time: {
|
|
4798
|
-
readonly created: number;
|
|
4799
|
-
readonly completed?: number;
|
|
4800
|
-
};
|
|
4801
|
-
readonly type: "shell";
|
|
4802
|
-
readonly shellID: string;
|
|
4803
|
-
readonly command: string;
|
|
4804
|
-
readonly status: "running" | "exited" | "timeout" | "killed";
|
|
4805
|
-
readonly exit?: number | "Infinity" | "-Infinity" | "NaN";
|
|
4806
|
-
readonly output?: {
|
|
4807
|
-
readonly output: string;
|
|
4808
|
-
readonly cursor: number;
|
|
4809
|
-
readonly size: number;
|
|
4810
|
-
readonly truncated: boolean;
|
|
4811
|
-
};
|
|
4812
|
-
} | {
|
|
4813
|
-
readonly id: string;
|
|
4814
|
-
readonly metadata?: {
|
|
4815
|
-
readonly [x: string]: JsonValue;
|
|
4816
|
-
};
|
|
4817
|
-
readonly time: {
|
|
4818
|
-
readonly created: number;
|
|
4819
|
-
readonly streamed?: number;
|
|
4820
|
-
readonly completed?: number;
|
|
4821
|
-
};
|
|
4822
|
-
readonly type: "assistant";
|
|
4823
|
-
readonly agent: string;
|
|
4824
|
-
readonly model: {
|
|
4825
|
-
readonly id: string;
|
|
4826
|
-
readonly providerID: string;
|
|
4827
|
-
readonly variant?: string;
|
|
4828
|
-
};
|
|
4829
|
-
readonly content: ReadonlyArray<{
|
|
4830
|
-
readonly type: "text";
|
|
4831
|
-
readonly text: string;
|
|
4832
|
-
readonly state?: {
|
|
4833
|
-
readonly [x: string]: JsonValue;
|
|
4834
|
-
};
|
|
4835
|
-
} | {
|
|
4836
|
-
readonly type: "reasoning";
|
|
4837
|
-
readonly text: string;
|
|
4838
|
-
readonly state?: {
|
|
4839
|
-
readonly [x: string]: JsonValue;
|
|
4840
|
-
};
|
|
4841
|
-
readonly time?: {
|
|
4842
|
-
readonly created: number;
|
|
4843
|
-
readonly completed?: number;
|
|
4844
|
-
};
|
|
4845
|
-
} | {
|
|
4846
|
-
readonly type: "tool";
|
|
4847
|
-
readonly id: string;
|
|
4848
|
-
readonly name: string;
|
|
4849
|
-
readonly executed?: boolean;
|
|
4850
|
-
readonly providerState?: {
|
|
4851
|
-
readonly [x: string]: JsonValue;
|
|
4852
|
-
};
|
|
4853
|
-
readonly providerResultState?: {
|
|
4854
|
-
readonly [x: string]: JsonValue;
|
|
4855
|
-
};
|
|
4856
|
-
readonly state: {
|
|
4857
|
-
readonly status: "streaming";
|
|
4858
|
-
readonly input: string;
|
|
4859
|
-
} | {
|
|
4860
|
-
readonly status: "running";
|
|
4861
|
-
readonly input: {
|
|
4862
|
-
readonly [x: string]: JsonValue;
|
|
4863
|
-
};
|
|
4864
|
-
readonly metadata: {
|
|
4865
|
-
readonly [x: string]: JsonValue;
|
|
4866
|
-
};
|
|
4867
|
-
} | {
|
|
4868
|
-
readonly status: "completed";
|
|
4869
|
-
readonly input: {
|
|
4870
|
-
readonly [x: string]: JsonValue;
|
|
4871
|
-
};
|
|
4872
|
-
readonly content: readonly [
|
|
4873
|
-
({
|
|
4874
|
-
readonly type: "text";
|
|
4875
|
-
readonly text: string;
|
|
4876
|
-
} | {
|
|
4877
|
-
readonly type: "file";
|
|
4878
|
-
readonly uri: string;
|
|
4879
|
-
readonly mime: string;
|
|
4880
|
-
readonly name?: string | null;
|
|
4881
|
-
}),
|
|
4882
|
-
...Array<{
|
|
4883
|
-
readonly type: "text";
|
|
4884
|
-
readonly text: string;
|
|
4885
|
-
} | {
|
|
4886
|
-
readonly type: "file";
|
|
4887
|
-
readonly uri: string;
|
|
4888
|
-
readonly mime: string;
|
|
4889
|
-
readonly name?: string | null;
|
|
4890
|
-
}>
|
|
4891
|
-
];
|
|
4892
|
-
readonly metadata?: {
|
|
4893
|
-
readonly [x: string]: JsonValue;
|
|
4894
|
-
};
|
|
4895
|
-
} | {
|
|
4896
|
-
readonly status: "error";
|
|
4897
|
-
readonly input: {
|
|
4898
|
-
readonly [x: string]: JsonValue;
|
|
4899
|
-
};
|
|
4900
|
-
readonly error: {
|
|
4901
|
-
readonly type: string;
|
|
4902
|
-
readonly message: string;
|
|
4903
|
-
readonly status?: number;
|
|
4904
|
-
readonly response?: {
|
|
4905
|
-
readonly body: string;
|
|
4906
|
-
};
|
|
4907
|
-
};
|
|
4908
|
-
readonly content?: readonly [
|
|
4909
|
-
({
|
|
4910
|
-
readonly type: "text";
|
|
4911
|
-
readonly text: string;
|
|
4912
|
-
} | {
|
|
4913
|
-
readonly type: "file";
|
|
4914
|
-
readonly uri: string;
|
|
4915
|
-
readonly mime: string;
|
|
4916
|
-
readonly name?: string | null;
|
|
4917
|
-
}),
|
|
4918
|
-
...Array<{
|
|
4919
|
-
readonly type: "text";
|
|
4920
|
-
readonly text: string;
|
|
4921
|
-
} | {
|
|
4922
|
-
readonly type: "file";
|
|
4923
|
-
readonly uri: string;
|
|
4924
|
-
readonly mime: string;
|
|
4925
|
-
readonly name?: string | null;
|
|
4926
|
-
}>
|
|
4927
|
-
];
|
|
4928
|
-
readonly metadata?: {
|
|
4929
|
-
readonly [x: string]: JsonValue;
|
|
4930
|
-
};
|
|
4931
|
-
};
|
|
4932
|
-
readonly time: {
|
|
4933
|
-
readonly created: number;
|
|
4934
|
-
readonly ran?: number;
|
|
4935
|
-
readonly completed?: number;
|
|
4936
|
-
};
|
|
4937
|
-
}>;
|
|
4938
|
-
readonly snapshot?: {
|
|
4939
|
-
readonly start?: string;
|
|
4940
|
-
readonly end?: string;
|
|
4941
|
-
readonly files?: ReadonlyArray<string>;
|
|
4942
|
-
};
|
|
4943
|
-
readonly finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
4944
|
-
readonly rawFinish?: string;
|
|
4945
|
-
readonly providerState?: {
|
|
4946
|
-
readonly [x: string]: JsonValue;
|
|
4947
|
-
};
|
|
4948
|
-
readonly cost?: number;
|
|
4949
|
-
readonly tokens?: {
|
|
4950
|
-
readonly input: number;
|
|
4951
|
-
readonly output: number;
|
|
4952
|
-
readonly reasoning: number;
|
|
4953
|
-
readonly cache: {
|
|
4954
|
-
readonly read: number;
|
|
4955
|
-
readonly write: number;
|
|
4956
|
-
};
|
|
4957
|
-
};
|
|
4958
|
-
readonly error?: {
|
|
4959
|
-
readonly type: string;
|
|
4960
|
-
readonly message: string;
|
|
4961
|
-
readonly status?: number;
|
|
4962
|
-
readonly response?: {
|
|
4963
|
-
readonly body: string;
|
|
4964
|
-
};
|
|
4965
|
-
};
|
|
4966
|
-
readonly retry?: {
|
|
4967
|
-
readonly attempt: number;
|
|
4968
|
-
readonly at: number;
|
|
4969
|
-
readonly error: {
|
|
4970
|
-
readonly type: string;
|
|
4971
|
-
readonly message: string;
|
|
4972
|
-
readonly status?: number;
|
|
4973
|
-
readonly response?: {
|
|
4974
|
-
readonly body: string;
|
|
4975
|
-
};
|
|
4976
|
-
};
|
|
4977
|
-
};
|
|
4978
|
-
} | ({
|
|
4979
|
-
readonly type: "compaction";
|
|
4980
|
-
readonly id: string;
|
|
4981
|
-
readonly metadata?: {
|
|
4982
|
-
readonly [x: string]: JsonValue;
|
|
4983
|
-
};
|
|
4984
|
-
readonly time: {
|
|
4985
|
-
readonly created: number;
|
|
4986
|
-
};
|
|
4987
|
-
readonly status: "running";
|
|
4988
|
-
readonly reason: "auto" | "manual";
|
|
4989
|
-
readonly summary: string;
|
|
4990
|
-
readonly recent: string;
|
|
4991
|
-
} | {
|
|
4992
|
-
readonly type: "compaction";
|
|
4993
|
-
readonly id: string;
|
|
4994
|
-
readonly metadata?: {
|
|
4995
|
-
readonly [x: string]: JsonValue;
|
|
4996
|
-
};
|
|
4997
|
-
readonly time: {
|
|
4998
|
-
readonly created: number;
|
|
4999
|
-
};
|
|
5000
|
-
readonly status: "completed";
|
|
5001
|
-
readonly reason: "auto" | "manual";
|
|
5002
|
-
readonly model?: {
|
|
5003
|
-
readonly id: string;
|
|
5004
|
-
readonly providerID: string;
|
|
5005
|
-
readonly variant?: string;
|
|
5006
|
-
};
|
|
5007
|
-
readonly providerState?: {
|
|
5008
|
-
readonly [x: string]: JsonValue;
|
|
5009
|
-
};
|
|
5010
|
-
readonly summary: string;
|
|
5011
|
-
readonly recent: string;
|
|
5012
|
-
readonly providerContext?: {
|
|
5013
|
-
readonly version: 1;
|
|
5014
|
-
readonly provenance: {
|
|
5015
|
-
readonly providerID: string;
|
|
5016
|
-
readonly provider: string;
|
|
5017
|
-
readonly modelID: string;
|
|
5018
|
-
readonly route: string;
|
|
5019
|
-
readonly protocol: string;
|
|
5020
|
-
readonly endpoint: string;
|
|
5021
|
-
};
|
|
5022
|
-
readonly messages: JsonValue;
|
|
5023
|
-
};
|
|
5024
|
-
readonly cost?: number;
|
|
5025
|
-
readonly tokens?: {
|
|
5026
|
-
readonly input: number;
|
|
5027
|
-
readonly output: number;
|
|
5028
|
-
readonly reasoning: number;
|
|
5029
|
-
readonly cache: {
|
|
5030
|
-
readonly read: number;
|
|
5031
|
-
readonly write: number;
|
|
5032
|
-
};
|
|
5033
|
-
};
|
|
5034
|
-
} | {
|
|
5035
|
-
readonly type: "compaction";
|
|
5036
|
-
readonly id: string;
|
|
5037
|
-
readonly metadata?: {
|
|
5038
|
-
readonly [x: string]: JsonValue;
|
|
5039
|
-
};
|
|
5040
|
-
readonly time: {
|
|
5041
|
-
readonly created: number;
|
|
5042
|
-
};
|
|
5043
|
-
readonly status: "failed";
|
|
5044
|
-
readonly reason: "auto" | "manual";
|
|
5045
|
-
readonly error: {
|
|
5046
|
-
readonly type: string;
|
|
5047
|
-
readonly message: string;
|
|
5048
|
-
readonly status?: number;
|
|
5049
|
-
readonly response?: {
|
|
5050
|
-
readonly body: string;
|
|
5051
|
-
};
|
|
5052
|
-
};
|
|
5053
|
-
readonly cost?: number;
|
|
5054
|
-
readonly tokens?: {
|
|
5055
|
-
readonly input: number;
|
|
5056
|
-
readonly output: number;
|
|
5057
|
-
readonly reasoning: number;
|
|
5058
|
-
readonly cache: {
|
|
5059
|
-
readonly read: number;
|
|
5060
|
-
readonly write: number;
|
|
5061
|
-
};
|
|
5062
|
-
};
|
|
5063
|
-
}) | {
|
|
5064
|
-
readonly id: string;
|
|
5065
|
-
readonly metadata?: {
|
|
5066
|
-
readonly [x: string]: JsonValue;
|
|
5067
|
-
};
|
|
5068
|
-
readonly time: {
|
|
5069
|
-
readonly created: number;
|
|
5070
|
-
};
|
|
5071
|
-
readonly type: "idle";
|
|
5072
|
-
readonly outcome: "succeeded" | "failed" | "interrupted";
|
|
5073
|
-
readonly error?: {
|
|
5074
|
-
readonly type: string;
|
|
5075
|
-
readonly message: string;
|
|
5076
|
-
readonly status?: number;
|
|
5077
|
-
readonly response?: {
|
|
5078
|
-
readonly body: string;
|
|
5079
|
-
};
|
|
5080
|
-
};
|
|
5081
|
-
}>;
|
|
5082
|
-
readonly location?: {
|
|
5083
|
-
readonly directory: string;
|
|
5084
|
-
} | null;
|
|
5085
|
-
}["messages"];
|
|
5086
|
-
readonly location?: {
|
|
5087
|
-
readonly info: {
|
|
5088
|
-
readonly id: string;
|
|
5089
|
-
readonly parentID?: string;
|
|
5090
|
-
readonly fork?: {
|
|
5091
|
-
readonly sessionID: string;
|
|
5092
|
-
readonly boundary: {
|
|
5093
|
-
readonly type: "before";
|
|
5094
|
-
readonly messageID: string;
|
|
5095
|
-
} | {
|
|
5096
|
-
readonly type: "through";
|
|
5097
|
-
readonly messageID: string;
|
|
5098
|
-
};
|
|
5099
|
-
};
|
|
5100
|
-
readonly projectID: string;
|
|
5101
|
-
readonly agent?: string;
|
|
5102
|
-
readonly model?: {
|
|
5103
|
-
readonly id: string;
|
|
5104
|
-
readonly providerID: string;
|
|
5105
|
-
readonly variant?: string;
|
|
5106
|
-
};
|
|
5107
|
-
readonly cost: number;
|
|
5108
|
-
readonly tokens: {
|
|
5109
|
-
readonly input: number;
|
|
5110
|
-
readonly output: number;
|
|
5111
|
-
readonly reasoning: number;
|
|
5112
|
-
readonly cache: {
|
|
5113
|
-
readonly read: number;
|
|
5114
|
-
readonly write: number;
|
|
5115
|
-
};
|
|
5116
|
-
};
|
|
5117
|
-
readonly outcome?: "succeeded" | "failed" | "interrupted";
|
|
5118
|
-
readonly time: {
|
|
5119
|
-
readonly created: number;
|
|
5120
|
-
readonly updated: number;
|
|
5121
|
-
readonly idle?: number;
|
|
5122
|
-
readonly viewed?: number;
|
|
5123
|
-
readonly archived?: number;
|
|
5124
|
-
};
|
|
5125
|
-
readonly title?: string;
|
|
5126
|
-
readonly subpath?: string;
|
|
4265
|
+
readonly title?: string;
|
|
4266
|
+
readonly subpath?: string;
|
|
5127
4267
|
readonly metadata?: {
|
|
5128
4268
|
readonly [x: string]: JsonValue;
|
|
5129
4269
|
};
|
|
@@ -5148,426 +4288,7 @@ export type SessionImportInput = {
|
|
|
5148
4288
|
readonly directory: string;
|
|
5149
4289
|
};
|
|
5150
4290
|
};
|
|
5151
|
-
readonly messages: ReadonlyArray<
|
|
5152
|
-
readonly id: string;
|
|
5153
|
-
readonly metadata?: {
|
|
5154
|
-
readonly [x: string]: JsonValue;
|
|
5155
|
-
};
|
|
5156
|
-
readonly time: {
|
|
5157
|
-
readonly created: number;
|
|
5158
|
-
};
|
|
5159
|
-
readonly type: "agent-switched";
|
|
5160
|
-
readonly agent: string;
|
|
5161
|
-
readonly previous?: string;
|
|
5162
|
-
} | {
|
|
5163
|
-
readonly id: string;
|
|
5164
|
-
readonly metadata?: {
|
|
5165
|
-
readonly [x: string]: JsonValue;
|
|
5166
|
-
};
|
|
5167
|
-
readonly time: {
|
|
5168
|
-
readonly created: number;
|
|
5169
|
-
};
|
|
5170
|
-
readonly type: "model-switched";
|
|
5171
|
-
readonly model: {
|
|
5172
|
-
readonly id: string;
|
|
5173
|
-
readonly providerID: string;
|
|
5174
|
-
readonly variant?: string;
|
|
5175
|
-
};
|
|
5176
|
-
readonly previous?: {
|
|
5177
|
-
readonly id: string;
|
|
5178
|
-
readonly providerID: string;
|
|
5179
|
-
readonly variant?: string;
|
|
5180
|
-
};
|
|
5181
|
-
} | {
|
|
5182
|
-
readonly id: string;
|
|
5183
|
-
readonly metadata?: {
|
|
5184
|
-
readonly [x: string]: JsonValue;
|
|
5185
|
-
};
|
|
5186
|
-
readonly time: {
|
|
5187
|
-
readonly created: number;
|
|
5188
|
-
};
|
|
5189
|
-
readonly type: "location-switched";
|
|
5190
|
-
readonly projectID?: string;
|
|
5191
|
-
readonly subpath?: string;
|
|
5192
|
-
readonly location: {
|
|
5193
|
-
readonly directory: string;
|
|
5194
|
-
};
|
|
5195
|
-
readonly previous?: {
|
|
5196
|
-
readonly location: {
|
|
5197
|
-
readonly directory: string;
|
|
5198
|
-
};
|
|
5199
|
-
readonly projectID?: string;
|
|
5200
|
-
readonly subpath?: string;
|
|
5201
|
-
} | null;
|
|
5202
|
-
} | {
|
|
5203
|
-
readonly id: string;
|
|
5204
|
-
readonly metadata?: {
|
|
5205
|
-
readonly [x: string]: JsonValue;
|
|
5206
|
-
};
|
|
5207
|
-
readonly time: {
|
|
5208
|
-
readonly created: number;
|
|
5209
|
-
};
|
|
5210
|
-
readonly text: string;
|
|
5211
|
-
readonly files?: ReadonlyArray<{
|
|
5212
|
-
readonly data: string;
|
|
5213
|
-
readonly mime: string;
|
|
5214
|
-
readonly source: {
|
|
5215
|
-
readonly type: "inline";
|
|
5216
|
-
} | {
|
|
5217
|
-
readonly type: "uri";
|
|
5218
|
-
readonly uri: string;
|
|
5219
|
-
};
|
|
5220
|
-
readonly name?: string;
|
|
5221
|
-
readonly description?: string;
|
|
5222
|
-
readonly mention?: {
|
|
5223
|
-
readonly start: number;
|
|
5224
|
-
readonly end: number;
|
|
5225
|
-
readonly text: string;
|
|
5226
|
-
};
|
|
5227
|
-
}>;
|
|
5228
|
-
readonly agents?: ReadonlyArray<{
|
|
5229
|
-
readonly name: string;
|
|
5230
|
-
readonly mention?: {
|
|
5231
|
-
readonly start: number;
|
|
5232
|
-
readonly end: number;
|
|
5233
|
-
readonly text: string;
|
|
5234
|
-
};
|
|
5235
|
-
}>;
|
|
5236
|
-
readonly skills?: ReadonlyArray<{
|
|
5237
|
-
readonly id: string;
|
|
5238
|
-
readonly name: string;
|
|
5239
|
-
readonly text?: string;
|
|
5240
|
-
readonly mention?: {
|
|
5241
|
-
readonly start: number;
|
|
5242
|
-
readonly end: number;
|
|
5243
|
-
readonly text: string;
|
|
5244
|
-
};
|
|
5245
|
-
}>;
|
|
5246
|
-
readonly type: "user";
|
|
5247
|
-
} | {
|
|
5248
|
-
readonly id: string;
|
|
5249
|
-
readonly metadata?: {
|
|
5250
|
-
readonly [x: string]: JsonValue;
|
|
5251
|
-
};
|
|
5252
|
-
readonly time: {
|
|
5253
|
-
readonly created: number;
|
|
5254
|
-
};
|
|
5255
|
-
readonly text: string;
|
|
5256
|
-
readonly description?: string;
|
|
5257
|
-
readonly type: "synthetic";
|
|
5258
|
-
} | {
|
|
5259
|
-
readonly id: string;
|
|
5260
|
-
readonly metadata?: {
|
|
5261
|
-
readonly [x: string]: JsonValue;
|
|
5262
|
-
};
|
|
5263
|
-
readonly time: {
|
|
5264
|
-
readonly created: number;
|
|
5265
|
-
};
|
|
5266
|
-
readonly type: "system";
|
|
5267
|
-
readonly text: string;
|
|
5268
|
-
readonly description?: string;
|
|
5269
|
-
} | {
|
|
5270
|
-
readonly id: string;
|
|
5271
|
-
readonly metadata?: {
|
|
5272
|
-
readonly [x: string]: JsonValue;
|
|
5273
|
-
};
|
|
5274
|
-
readonly time: {
|
|
5275
|
-
readonly created: number;
|
|
5276
|
-
};
|
|
5277
|
-
readonly type: "skill";
|
|
5278
|
-
readonly skill: string;
|
|
5279
|
-
readonly name: string;
|
|
5280
|
-
readonly text: string;
|
|
5281
|
-
} | {
|
|
5282
|
-
readonly id: string;
|
|
5283
|
-
readonly metadata?: {
|
|
5284
|
-
readonly [x: string]: JsonValue;
|
|
5285
|
-
};
|
|
5286
|
-
readonly time: {
|
|
5287
|
-
readonly created: number;
|
|
5288
|
-
readonly completed?: number;
|
|
5289
|
-
};
|
|
5290
|
-
readonly type: "shell";
|
|
5291
|
-
readonly shellID: string;
|
|
5292
|
-
readonly command: string;
|
|
5293
|
-
readonly status: "running" | "exited" | "timeout" | "killed";
|
|
5294
|
-
readonly exit?: number | "Infinity" | "-Infinity" | "NaN";
|
|
5295
|
-
readonly output?: {
|
|
5296
|
-
readonly output: string;
|
|
5297
|
-
readonly cursor: number;
|
|
5298
|
-
readonly size: number;
|
|
5299
|
-
readonly truncated: boolean;
|
|
5300
|
-
};
|
|
5301
|
-
} | {
|
|
5302
|
-
readonly id: string;
|
|
5303
|
-
readonly metadata?: {
|
|
5304
|
-
readonly [x: string]: JsonValue;
|
|
5305
|
-
};
|
|
5306
|
-
readonly time: {
|
|
5307
|
-
readonly created: number;
|
|
5308
|
-
readonly streamed?: number;
|
|
5309
|
-
readonly completed?: number;
|
|
5310
|
-
};
|
|
5311
|
-
readonly type: "assistant";
|
|
5312
|
-
readonly agent: string;
|
|
5313
|
-
readonly model: {
|
|
5314
|
-
readonly id: string;
|
|
5315
|
-
readonly providerID: string;
|
|
5316
|
-
readonly variant?: string;
|
|
5317
|
-
};
|
|
5318
|
-
readonly content: ReadonlyArray<{
|
|
5319
|
-
readonly type: "text";
|
|
5320
|
-
readonly text: string;
|
|
5321
|
-
readonly state?: {
|
|
5322
|
-
readonly [x: string]: JsonValue;
|
|
5323
|
-
};
|
|
5324
|
-
} | {
|
|
5325
|
-
readonly type: "reasoning";
|
|
5326
|
-
readonly text: string;
|
|
5327
|
-
readonly state?: {
|
|
5328
|
-
readonly [x: string]: JsonValue;
|
|
5329
|
-
};
|
|
5330
|
-
readonly time?: {
|
|
5331
|
-
readonly created: number;
|
|
5332
|
-
readonly completed?: number;
|
|
5333
|
-
};
|
|
5334
|
-
} | {
|
|
5335
|
-
readonly type: "tool";
|
|
5336
|
-
readonly id: string;
|
|
5337
|
-
readonly name: string;
|
|
5338
|
-
readonly executed?: boolean;
|
|
5339
|
-
readonly providerState?: {
|
|
5340
|
-
readonly [x: string]: JsonValue;
|
|
5341
|
-
};
|
|
5342
|
-
readonly providerResultState?: {
|
|
5343
|
-
readonly [x: string]: JsonValue;
|
|
5344
|
-
};
|
|
5345
|
-
readonly state: {
|
|
5346
|
-
readonly status: "streaming";
|
|
5347
|
-
readonly input: string;
|
|
5348
|
-
} | {
|
|
5349
|
-
readonly status: "running";
|
|
5350
|
-
readonly input: {
|
|
5351
|
-
readonly [x: string]: JsonValue;
|
|
5352
|
-
};
|
|
5353
|
-
readonly metadata: {
|
|
5354
|
-
readonly [x: string]: JsonValue;
|
|
5355
|
-
};
|
|
5356
|
-
} | {
|
|
5357
|
-
readonly status: "completed";
|
|
5358
|
-
readonly input: {
|
|
5359
|
-
readonly [x: string]: JsonValue;
|
|
5360
|
-
};
|
|
5361
|
-
readonly content: readonly [
|
|
5362
|
-
({
|
|
5363
|
-
readonly type: "text";
|
|
5364
|
-
readonly text: string;
|
|
5365
|
-
} | {
|
|
5366
|
-
readonly type: "file";
|
|
5367
|
-
readonly uri: string;
|
|
5368
|
-
readonly mime: string;
|
|
5369
|
-
readonly name?: string | null;
|
|
5370
|
-
}),
|
|
5371
|
-
...Array<{
|
|
5372
|
-
readonly type: "text";
|
|
5373
|
-
readonly text: string;
|
|
5374
|
-
} | {
|
|
5375
|
-
readonly type: "file";
|
|
5376
|
-
readonly uri: string;
|
|
5377
|
-
readonly mime: string;
|
|
5378
|
-
readonly name?: string | null;
|
|
5379
|
-
}>
|
|
5380
|
-
];
|
|
5381
|
-
readonly metadata?: {
|
|
5382
|
-
readonly [x: string]: JsonValue;
|
|
5383
|
-
};
|
|
5384
|
-
} | {
|
|
5385
|
-
readonly status: "error";
|
|
5386
|
-
readonly input: {
|
|
5387
|
-
readonly [x: string]: JsonValue;
|
|
5388
|
-
};
|
|
5389
|
-
readonly error: {
|
|
5390
|
-
readonly type: string;
|
|
5391
|
-
readonly message: string;
|
|
5392
|
-
readonly status?: number;
|
|
5393
|
-
readonly response?: {
|
|
5394
|
-
readonly body: string;
|
|
5395
|
-
};
|
|
5396
|
-
};
|
|
5397
|
-
readonly content?: readonly [
|
|
5398
|
-
({
|
|
5399
|
-
readonly type: "text";
|
|
5400
|
-
readonly text: string;
|
|
5401
|
-
} | {
|
|
5402
|
-
readonly type: "file";
|
|
5403
|
-
readonly uri: string;
|
|
5404
|
-
readonly mime: string;
|
|
5405
|
-
readonly name?: string | null;
|
|
5406
|
-
}),
|
|
5407
|
-
...Array<{
|
|
5408
|
-
readonly type: "text";
|
|
5409
|
-
readonly text: string;
|
|
5410
|
-
} | {
|
|
5411
|
-
readonly type: "file";
|
|
5412
|
-
readonly uri: string;
|
|
5413
|
-
readonly mime: string;
|
|
5414
|
-
readonly name?: string | null;
|
|
5415
|
-
}>
|
|
5416
|
-
];
|
|
5417
|
-
readonly metadata?: {
|
|
5418
|
-
readonly [x: string]: JsonValue;
|
|
5419
|
-
};
|
|
5420
|
-
};
|
|
5421
|
-
readonly time: {
|
|
5422
|
-
readonly created: number;
|
|
5423
|
-
readonly ran?: number;
|
|
5424
|
-
readonly completed?: number;
|
|
5425
|
-
};
|
|
5426
|
-
}>;
|
|
5427
|
-
readonly snapshot?: {
|
|
5428
|
-
readonly start?: string;
|
|
5429
|
-
readonly end?: string;
|
|
5430
|
-
readonly files?: ReadonlyArray<string>;
|
|
5431
|
-
};
|
|
5432
|
-
readonly finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
5433
|
-
readonly rawFinish?: string;
|
|
5434
|
-
readonly providerState?: {
|
|
5435
|
-
readonly [x: string]: JsonValue;
|
|
5436
|
-
};
|
|
5437
|
-
readonly cost?: number;
|
|
5438
|
-
readonly tokens?: {
|
|
5439
|
-
readonly input: number;
|
|
5440
|
-
readonly output: number;
|
|
5441
|
-
readonly reasoning: number;
|
|
5442
|
-
readonly cache: {
|
|
5443
|
-
readonly read: number;
|
|
5444
|
-
readonly write: number;
|
|
5445
|
-
};
|
|
5446
|
-
};
|
|
5447
|
-
readonly error?: {
|
|
5448
|
-
readonly type: string;
|
|
5449
|
-
readonly message: string;
|
|
5450
|
-
readonly status?: number;
|
|
5451
|
-
readonly response?: {
|
|
5452
|
-
readonly body: string;
|
|
5453
|
-
};
|
|
5454
|
-
};
|
|
5455
|
-
readonly retry?: {
|
|
5456
|
-
readonly attempt: number;
|
|
5457
|
-
readonly at: number;
|
|
5458
|
-
readonly error: {
|
|
5459
|
-
readonly type: string;
|
|
5460
|
-
readonly message: string;
|
|
5461
|
-
readonly status?: number;
|
|
5462
|
-
readonly response?: {
|
|
5463
|
-
readonly body: string;
|
|
5464
|
-
};
|
|
5465
|
-
};
|
|
5466
|
-
};
|
|
5467
|
-
} | ({
|
|
5468
|
-
readonly type: "compaction";
|
|
5469
|
-
readonly id: string;
|
|
5470
|
-
readonly metadata?: {
|
|
5471
|
-
readonly [x: string]: JsonValue;
|
|
5472
|
-
};
|
|
5473
|
-
readonly time: {
|
|
5474
|
-
readonly created: number;
|
|
5475
|
-
};
|
|
5476
|
-
readonly status: "running";
|
|
5477
|
-
readonly reason: "auto" | "manual";
|
|
5478
|
-
readonly summary: string;
|
|
5479
|
-
readonly recent: string;
|
|
5480
|
-
} | {
|
|
5481
|
-
readonly type: "compaction";
|
|
5482
|
-
readonly id: string;
|
|
5483
|
-
readonly metadata?: {
|
|
5484
|
-
readonly [x: string]: JsonValue;
|
|
5485
|
-
};
|
|
5486
|
-
readonly time: {
|
|
5487
|
-
readonly created: number;
|
|
5488
|
-
};
|
|
5489
|
-
readonly status: "completed";
|
|
5490
|
-
readonly reason: "auto" | "manual";
|
|
5491
|
-
readonly model?: {
|
|
5492
|
-
readonly id: string;
|
|
5493
|
-
readonly providerID: string;
|
|
5494
|
-
readonly variant?: string;
|
|
5495
|
-
};
|
|
5496
|
-
readonly providerState?: {
|
|
5497
|
-
readonly [x: string]: JsonValue;
|
|
5498
|
-
};
|
|
5499
|
-
readonly summary: string;
|
|
5500
|
-
readonly recent: string;
|
|
5501
|
-
readonly providerContext?: {
|
|
5502
|
-
readonly version: 1;
|
|
5503
|
-
readonly provenance: {
|
|
5504
|
-
readonly providerID: string;
|
|
5505
|
-
readonly provider: string;
|
|
5506
|
-
readonly modelID: string;
|
|
5507
|
-
readonly route: string;
|
|
5508
|
-
readonly protocol: string;
|
|
5509
|
-
readonly endpoint: string;
|
|
5510
|
-
};
|
|
5511
|
-
readonly messages: JsonValue;
|
|
5512
|
-
};
|
|
5513
|
-
readonly cost?: number;
|
|
5514
|
-
readonly tokens?: {
|
|
5515
|
-
readonly input: number;
|
|
5516
|
-
readonly output: number;
|
|
5517
|
-
readonly reasoning: number;
|
|
5518
|
-
readonly cache: {
|
|
5519
|
-
readonly read: number;
|
|
5520
|
-
readonly write: number;
|
|
5521
|
-
};
|
|
5522
|
-
};
|
|
5523
|
-
} | {
|
|
5524
|
-
readonly type: "compaction";
|
|
5525
|
-
readonly id: string;
|
|
5526
|
-
readonly metadata?: {
|
|
5527
|
-
readonly [x: string]: JsonValue;
|
|
5528
|
-
};
|
|
5529
|
-
readonly time: {
|
|
5530
|
-
readonly created: number;
|
|
5531
|
-
};
|
|
5532
|
-
readonly status: "failed";
|
|
5533
|
-
readonly reason: "auto" | "manual";
|
|
5534
|
-
readonly error: {
|
|
5535
|
-
readonly type: string;
|
|
5536
|
-
readonly message: string;
|
|
5537
|
-
readonly status?: number;
|
|
5538
|
-
readonly response?: {
|
|
5539
|
-
readonly body: string;
|
|
5540
|
-
};
|
|
5541
|
-
};
|
|
5542
|
-
readonly cost?: number;
|
|
5543
|
-
readonly tokens?: {
|
|
5544
|
-
readonly input: number;
|
|
5545
|
-
readonly output: number;
|
|
5546
|
-
readonly reasoning: number;
|
|
5547
|
-
readonly cache: {
|
|
5548
|
-
readonly read: number;
|
|
5549
|
-
readonly write: number;
|
|
5550
|
-
};
|
|
5551
|
-
};
|
|
5552
|
-
}) | {
|
|
5553
|
-
readonly id: string;
|
|
5554
|
-
readonly metadata?: {
|
|
5555
|
-
readonly [x: string]: JsonValue;
|
|
5556
|
-
};
|
|
5557
|
-
readonly time: {
|
|
5558
|
-
readonly created: number;
|
|
5559
|
-
};
|
|
5560
|
-
readonly type: "idle";
|
|
5561
|
-
readonly outcome: "succeeded" | "failed" | "interrupted";
|
|
5562
|
-
readonly error?: {
|
|
5563
|
-
readonly type: string;
|
|
5564
|
-
readonly message: string;
|
|
5565
|
-
readonly status?: number;
|
|
5566
|
-
readonly response?: {
|
|
5567
|
-
readonly body: string;
|
|
5568
|
-
};
|
|
5569
|
-
};
|
|
5570
|
-
}>;
|
|
4291
|
+
readonly messages: ReadonlyArray<JsonValue>;
|
|
5571
4292
|
readonly location?: {
|
|
5572
4293
|
readonly directory: string;
|
|
5573
4294
|
} | null;
|
|
@@ -7869,9 +6590,6 @@ export type CredentialCreateInput = {
|
|
|
7869
6590
|
readonly metadata?: {
|
|
7870
6591
|
readonly [x: string]: JsonValue;
|
|
7871
6592
|
};
|
|
7872
|
-
readonly configuration?: {
|
|
7873
|
-
readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
|
|
7874
|
-
};
|
|
7875
6593
|
} | {
|
|
7876
6594
|
readonly type: "external";
|
|
7877
6595
|
readonly methodID: string;
|
|
@@ -7900,9 +6618,6 @@ export type CredentialCreateInput = {
|
|
|
7900
6618
|
readonly metadata?: {
|
|
7901
6619
|
readonly [x: string]: JsonValue;
|
|
7902
6620
|
};
|
|
7903
|
-
readonly configuration?: {
|
|
7904
|
-
readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
|
|
7905
|
-
};
|
|
7906
6621
|
} | {
|
|
7907
6622
|
readonly type: "external";
|
|
7908
6623
|
readonly methodID: string;
|
|
@@ -7931,9 +6646,6 @@ export type CredentialCreateInput = {
|
|
|
7931
6646
|
readonly metadata?: {
|
|
7932
6647
|
readonly [x: string]: JsonValue;
|
|
7933
6648
|
};
|
|
7934
|
-
readonly configuration?: {
|
|
7935
|
-
readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
|
|
7936
|
-
};
|
|
7937
6649
|
} | {
|
|
7938
6650
|
readonly type: "external";
|
|
7939
6651
|
readonly methodID: string;
|
|
@@ -7962,9 +6674,6 @@ export type CredentialCreateInput = {
|
|
|
7962
6674
|
readonly metadata?: {
|
|
7963
6675
|
readonly [x: string]: JsonValue;
|
|
7964
6676
|
};
|
|
7965
|
-
readonly configuration?: {
|
|
7966
|
-
readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
|
|
7967
|
-
};
|
|
7968
6677
|
} | {
|
|
7969
6678
|
readonly type: "external";
|
|
7970
6679
|
readonly methodID: string;
|
|
@@ -7993,9 +6702,6 @@ export type CredentialCreateInput = {
|
|
|
7993
6702
|
readonly metadata?: {
|
|
7994
6703
|
readonly [x: string]: JsonValue;
|
|
7995
6704
|
};
|
|
7996
|
-
readonly configuration?: {
|
|
7997
|
-
readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
|
|
7998
|
-
};
|
|
7999
6705
|
} | {
|
|
8000
6706
|
readonly type: "external";
|
|
8001
6707
|
readonly methodID: string;
|