@nyte-ai/schema 0.0.19 → 0.0.23
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/{browser-1nqahr9q.js → browser-ay8k1s1m.js} +4 -3
- package/dist/chunks/{browser-pvfshqyk.js → browser-etfrcxhb.js} +2 -2
- package/dist/chunks/{browser-hp9ze9ga.js → browser-fe66aj8v.js} +8 -2
- package/dist/chunks/{browser-sgst60b0.js → browser-fnanbp6m.js} +4 -1
- package/dist/chunks/{browser-jgxe05s4.js → browser-gzn951k8.js} +2 -2
- package/dist/chunks/{browser-j150etqf.js → browser-t5xqtqzh.js} +8 -6
- package/dist/chunks/{browser-3exd93gm.js → browser-xk4psyrx.js} +1 -1
- package/dist/src/events.d.ts +2 -0
- package/dist/src/events.js +2 -2
- package/dist/src/index.js +11 -7
- package/dist/src/parts.d.ts +7 -0
- package/dist/src/parts.js +3 -1
- package/dist/src/store.d.ts +1 -0
- package/dist/src/store.js +3 -3
- package/dist/src/views.d.ts +186 -0
- package/dist/src/views.js +4 -2
- package/dist/src/wire/operations/host.d.ts +157 -150
- package/dist/src/wire/operations/host.js +5 -1
- package/dist/src/wire/operations/index.d.ts +157 -150
- package/dist/src/wire/operations/index.js +5 -5
- package/dist/src/wire/operations/session.js +3 -3
- package/package.json +4 -4
|
@@ -42,8 +42,9 @@ import {
|
|
|
42
42
|
ToolProgressType2
|
|
43
43
|
} from "./browser-h86zs54a.js";
|
|
44
44
|
import {
|
|
45
|
-
PlacementType2
|
|
46
|
-
|
|
45
|
+
PlacementType2,
|
|
46
|
+
ToolChangesType2
|
|
47
|
+
} from "./browser-t5xqtqzh.js";
|
|
47
48
|
import {
|
|
48
49
|
ActivationType2
|
|
49
50
|
} from "./browser-bg1esaw0.js";
|
|
@@ -54,7 +55,7 @@ import {
|
|
|
54
55
|
|
|
55
56
|
// src/events.ts
|
|
56
57
|
import { Type } from "typebox";
|
|
57
|
-
var CHANGES = nullable2(
|
|
58
|
+
var CHANGES = nullable2(ToolChangesType2);
|
|
58
59
|
var REPLACED = nullable2(Type.Object({ previous: idSchema2(), stopped: nullable2(idSchema2()) }));
|
|
59
60
|
var CommitBodyType2 = Type.Union([
|
|
60
61
|
Type.Object({
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
HOST_OPERATIONS2,
|
|
15
15
|
MAINTENANCE_OPERATIONS2
|
|
16
|
-
} from "./browser-
|
|
16
|
+
} from "./browser-fnanbp6m.js";
|
|
17
17
|
import {
|
|
18
18
|
SESSION_OPERATIONS2
|
|
19
|
-
} from "./browser-
|
|
19
|
+
} from "./browser-gzn951k8.js";
|
|
20
20
|
import {
|
|
21
21
|
WORKSPACE_OPERATIONS2
|
|
22
22
|
} from "./browser-h5k4hqfq.js";
|
|
@@ -36,12 +36,13 @@ import {
|
|
|
36
36
|
import {
|
|
37
37
|
PartStatusType2,
|
|
38
38
|
PartViewType2
|
|
39
|
-
} from "./browser-
|
|
39
|
+
} from "./browser-t5xqtqzh.js";
|
|
40
40
|
import {
|
|
41
41
|
ActivationType2
|
|
42
42
|
} from "./browser-bg1esaw0.js";
|
|
43
43
|
import {
|
|
44
44
|
HeadInfoType2,
|
|
45
|
+
SessionInfoType2,
|
|
45
46
|
SessionCatalogViewType2
|
|
46
47
|
} from "./browser-xensz05x.js";
|
|
47
48
|
|
|
@@ -174,6 +175,11 @@ var ViewFrameType2 = Type.Union([
|
|
|
174
175
|
catalog: Type.Optional(VIEW.catalog)
|
|
175
176
|
})
|
|
176
177
|
]);
|
|
178
|
+
var SessionsFrameType2 = Type.Object({
|
|
179
|
+
kind: Type.Enum(["list", "delta"]),
|
|
180
|
+
order: viewSplice(idSchema2()),
|
|
181
|
+
items: Type.Array(SessionInfoType2)
|
|
182
|
+
});
|
|
177
183
|
var ViewOptionsSchema2 = standard2(ViewOptionsType2);
|
|
178
184
|
var UserStatusSchema2 = standard2(UserStatusType2);
|
|
179
185
|
var MessageSchema2 = standard2(MessageType2);
|
|
@@ -182,4 +188,4 @@ var SessionViewSchema2 = standard2(withJson2(SessionViewType2));
|
|
|
182
188
|
var HistoryPageSchema2 = standard2(withJson2(HistoryPageType2));
|
|
183
189
|
var ViewFrameSchema2 = standard2(withJson2(ViewFrameType2));
|
|
184
190
|
|
|
185
|
-
export { ViewOptionsType2, UserStatusType2, MessageType2, TurnInfoType2, SessionViewType2, HistoryPageType2, ViewAppendType2, ViewFrameType2, ViewOptionsSchema2, UserStatusSchema2, MessageSchema2, TurnInfoSchema2, SessionViewSchema2, HistoryPageSchema2, ViewFrameSchema2 };
|
|
191
|
+
export { ViewOptionsType2, UserStatusType2, MessageType2, TurnInfoType2, SessionViewType2, HistoryPageType2, ViewAppendType2, ViewFrameType2, SessionsFrameType2, ViewOptionsSchema2, UserStatusSchema2, MessageSchema2, TurnInfoSchema2, SessionViewSchema2, HistoryPageSchema2, ViewFrameSchema2 };
|
|
@@ -46,6 +46,9 @@ import {
|
|
|
46
46
|
pagedSchema2,
|
|
47
47
|
ParentFilterType2
|
|
48
48
|
} from "./browser-0byq2fja.js";
|
|
49
|
+
import {
|
|
50
|
+
SessionsFrameType2
|
|
51
|
+
} from "./browser-fe66aj8v.js";
|
|
49
52
|
import {
|
|
50
53
|
wireSchema2,
|
|
51
54
|
wireObject2,
|
|
@@ -215,7 +218,7 @@ var HOST_OPERATIONS2 = {
|
|
|
215
218
|
parents: Type.Optional(ParentFilterType2),
|
|
216
219
|
limit: Type.Optional(Type.Number())
|
|
217
220
|
}),
|
|
218
|
-
output: wireSchema2(
|
|
221
|
+
output: wireSchema2(SessionsFrameType2)
|
|
219
222
|
},
|
|
220
223
|
"sessions.start": {
|
|
221
224
|
...PARTICIPANT,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
import {
|
|
37
37
|
PlacementType2,
|
|
38
38
|
actOutcomeSchema2
|
|
39
|
-
} from "./browser-
|
|
39
|
+
} from "./browser-t5xqtqzh.js";
|
|
40
40
|
import {
|
|
41
41
|
SessionInfoSchema2,
|
|
42
42
|
CommandOutcomeSchema2,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
HistoryPageType2,
|
|
51
51
|
SessionViewSchema2,
|
|
52
52
|
ViewFrameSchema2
|
|
53
|
-
} from "./browser-
|
|
53
|
+
} from "./browser-fe66aj8v.js";
|
|
54
54
|
import {
|
|
55
55
|
wireSchema2,
|
|
56
56
|
wireObject2,
|
|
@@ -59,6 +59,12 @@ var PartViewType2 = Type.Object({
|
|
|
59
59
|
status: PartStatusType2,
|
|
60
60
|
owner: nullable2(Type.String())
|
|
61
61
|
});
|
|
62
|
+
var ToolChangesType2 = Type.Object({
|
|
63
|
+
added: Type.Number(),
|
|
64
|
+
removed: Type.Number(),
|
|
65
|
+
paths: Type.Array(Type.String()),
|
|
66
|
+
unattributed: Type.Optional(Type.Literal(true))
|
|
67
|
+
});
|
|
62
68
|
var TOOL_CALL = {
|
|
63
69
|
call: idSchema2(),
|
|
64
70
|
name: Type.String(),
|
|
@@ -76,11 +82,7 @@ var ToolPartStateType2 = Type.Union([
|
|
|
76
82
|
...TOOL_CALL,
|
|
77
83
|
phase: Type.Literal("settled"),
|
|
78
84
|
outcome: ToolOutcomeType2,
|
|
79
|
-
changes: nullable2(
|
|
80
|
-
added: Type.Number(),
|
|
81
|
-
removed: Type.Number(),
|
|
82
|
-
paths: Type.Array(Type.String())
|
|
83
|
-
}))
|
|
85
|
+
changes: nullable2(ToolChangesType2)
|
|
84
86
|
})
|
|
85
87
|
]);
|
|
86
88
|
function actOutcomeSchema2(output) {
|
|
@@ -98,4 +100,4 @@ var PartStatusSchema2 = standard2(withJson2(PartStatusType2));
|
|
|
98
100
|
var PartViewSchema2 = standard2(withJson2(PartViewType2));
|
|
99
101
|
var ToolPartStateSchema2 = standard2(withJson2(ToolPartStateType2));
|
|
100
102
|
|
|
101
|
-
export { SignatureType2, PlacementType2, PartStatusType2, PartViewType2, ToolPartStateType2, actOutcomeSchema2, PlacementSchema2, PartStatusSchema2, PartViewSchema2, ToolPartStateSchema2 };
|
|
103
|
+
export { SignatureType2, PlacementType2, PartStatusType2, PartViewType2, ToolChangesType2, ToolPartStateType2, actOutcomeSchema2, PlacementSchema2, PartStatusSchema2, PartViewSchema2, ToolPartStateSchema2 };
|
package/dist/src/events.d.ts
CHANGED
|
@@ -521,6 +521,7 @@ export declare const DurableEventType: Type.TUnion<[Type.TObject<{
|
|
|
521
521
|
added: Type.TNumber;
|
|
522
522
|
removed: Type.TNumber;
|
|
523
523
|
paths: Type.TArray<Type.TString>;
|
|
524
|
+
unattributed: Type.TOptional<Type.TLiteral<true>>;
|
|
524
525
|
}>, Type.TNull]>;
|
|
525
526
|
kind: Type.TLiteral<"call">;
|
|
526
527
|
call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
|
|
@@ -1368,6 +1369,7 @@ export declare const SessionEventType: Type.TUnion<[Type.TObject<{
|
|
|
1368
1369
|
added: Type.TNumber;
|
|
1369
1370
|
removed: Type.TNumber;
|
|
1370
1371
|
paths: Type.TArray<Type.TString>;
|
|
1372
|
+
unattributed: Type.TOptional<Type.TLiteral<true>>;
|
|
1371
1373
|
}>, Type.TNull]>;
|
|
1372
1374
|
kind: Type.TLiteral<"call">;
|
|
1373
1375
|
call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
|
package/dist/src/events.js
CHANGED
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
DurableEventSchema2,
|
|
8
8
|
SessionEventSchema2,
|
|
9
9
|
PatchEventSchema2
|
|
10
|
-
} from "../chunks/browser-
|
|
11
|
-
import"../chunks/browser-
|
|
10
|
+
} from "../chunks/browser-ay8k1s1m.js";
|
|
11
|
+
import"../chunks/browser-t5xqtqzh.js";
|
|
12
12
|
import"../chunks/browser-h86zs54a.js";
|
|
13
13
|
import"../chunks/browser-xensz05x.js";
|
|
14
14
|
import"../chunks/browser-bg1esaw0.js";
|
package/dist/src/index.js
CHANGED
|
@@ -279,13 +279,14 @@ import {
|
|
|
279
279
|
PlacementType2,
|
|
280
280
|
PartStatusType2,
|
|
281
281
|
PartViewType2,
|
|
282
|
+
ToolChangesType2,
|
|
282
283
|
ToolPartStateType2,
|
|
283
284
|
actOutcomeSchema2,
|
|
284
285
|
PlacementSchema2,
|
|
285
286
|
PartStatusSchema2,
|
|
286
287
|
PartViewSchema2,
|
|
287
288
|
ToolPartStateSchema2
|
|
288
|
-
} from "../chunks/browser-
|
|
289
|
+
} from "../chunks/browser-t5xqtqzh.js";
|
|
289
290
|
import {
|
|
290
291
|
CommitBodyType2,
|
|
291
292
|
DurableEventType2,
|
|
@@ -295,7 +296,7 @@ import {
|
|
|
295
296
|
DurableEventSchema2,
|
|
296
297
|
SessionEventSchema2,
|
|
297
298
|
PatchEventSchema2
|
|
298
|
-
} from "../chunks/browser-
|
|
299
|
+
} from "../chunks/browser-ay8k1s1m.js";
|
|
299
300
|
import {
|
|
300
301
|
GitStatusType2,
|
|
301
302
|
GitCommitViewType2,
|
|
@@ -394,7 +395,7 @@ import {
|
|
|
394
395
|
RefSchema2,
|
|
395
396
|
RefUpdateSchema2,
|
|
396
397
|
SetOutcomeSchema2
|
|
397
|
-
} from "../chunks/browser-
|
|
398
|
+
} from "../chunks/browser-xk4psyrx.js";
|
|
398
399
|
import {
|
|
399
400
|
ViewOptionsType2,
|
|
400
401
|
UserStatusType2,
|
|
@@ -404,6 +405,7 @@ import {
|
|
|
404
405
|
HistoryPageType2,
|
|
405
406
|
ViewAppendType2,
|
|
406
407
|
ViewFrameType2,
|
|
408
|
+
SessionsFrameType2,
|
|
407
409
|
ViewOptionsSchema2,
|
|
408
410
|
UserStatusSchema2,
|
|
409
411
|
MessageSchema2,
|
|
@@ -411,18 +413,18 @@ import {
|
|
|
411
413
|
SessionViewSchema2,
|
|
412
414
|
HistoryPageSchema2,
|
|
413
415
|
ViewFrameSchema2
|
|
414
|
-
} from "../chunks/browser-
|
|
416
|
+
} from "../chunks/browser-fe66aj8v.js";
|
|
415
417
|
import"../chunks/browser-r87w64mz.js";
|
|
416
418
|
import"../chunks/browser-fd3accdr.js";
|
|
417
419
|
import"../chunks/browser-pdv675va.js";
|
|
418
420
|
import"../chunks/browser-0xr6c36r.js";
|
|
419
421
|
import"../chunks/browser-0g0z3617.js";
|
|
420
|
-
import"../chunks/browser-
|
|
421
|
-
import"../chunks/browser-
|
|
422
|
+
import"../chunks/browser-fnanbp6m.js";
|
|
423
|
+
import"../chunks/browser-gzn951k8.js";
|
|
422
424
|
import"../chunks/browser-h5k4hqfq.js";
|
|
423
425
|
import {
|
|
424
426
|
OPERATIONS2
|
|
425
|
-
} from "../chunks/browser-
|
|
427
|
+
} from "../chunks/browser-etfrcxhb.js";
|
|
426
428
|
export {
|
|
427
429
|
ActivationSchema2 as ActivationSchema,
|
|
428
430
|
ActivationType2 as ActivationType,
|
|
@@ -696,6 +698,7 @@ export {
|
|
|
696
698
|
SessionInfoType2 as SessionInfoType,
|
|
697
699
|
SessionViewSchema2 as SessionViewSchema,
|
|
698
700
|
SessionViewType2 as SessionViewType,
|
|
701
|
+
SessionsFrameType2 as SessionsFrameType,
|
|
699
702
|
SetOutcomeSchema2 as SetOutcomeSchema,
|
|
700
703
|
SetOutcomeType2 as SetOutcomeType,
|
|
701
704
|
SettingInfoSchema2 as SettingInfoSchema,
|
|
@@ -714,6 +717,7 @@ export {
|
|
|
714
717
|
ThinkingType2 as ThinkingType,
|
|
715
718
|
ToolCallSchema2 as ToolCallSchema,
|
|
716
719
|
ToolCallType2 as ToolCallType,
|
|
720
|
+
ToolChangesType2 as ToolChangesType,
|
|
717
721
|
ToolClassSchema2 as ToolClassSchema,
|
|
718
722
|
ToolClassType2 as ToolClassType,
|
|
719
723
|
ToolContentSchema2 as ToolContentSchema,
|
package/dist/src/parts.d.ts
CHANGED
|
@@ -112,6 +112,12 @@ export declare const PartViewType: Type.TObject<{
|
|
|
112
112
|
owner: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
113
113
|
}>;
|
|
114
114
|
export type PartView = Decoded<typeof PartViewType>;
|
|
115
|
+
export declare const ToolChangesType: Type.TObject<{
|
|
116
|
+
added: Type.TNumber;
|
|
117
|
+
removed: Type.TNumber;
|
|
118
|
+
paths: Type.TArray<Type.TString>;
|
|
119
|
+
unattributed: Type.TOptional<Type.TLiteral<true>>;
|
|
120
|
+
}>;
|
|
115
121
|
export declare const ToolPartStateType: Type.TUnion<[Type.TObject<{
|
|
116
122
|
phase: Type.TLiteral<"calling">;
|
|
117
123
|
call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
|
|
@@ -201,6 +207,7 @@ export declare const ToolPartStateType: Type.TUnion<[Type.TObject<{
|
|
|
201
207
|
added: Type.TNumber;
|
|
202
208
|
removed: Type.TNumber;
|
|
203
209
|
paths: Type.TArray<Type.TString>;
|
|
210
|
+
unattributed: Type.TOptional<Type.TLiteral<true>>;
|
|
204
211
|
}>, Type.TNull]>;
|
|
205
212
|
call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
|
|
206
213
|
name: Type.TString;
|
package/dist/src/parts.js
CHANGED
|
@@ -3,13 +3,14 @@ import {
|
|
|
3
3
|
PlacementType2,
|
|
4
4
|
PartStatusType2,
|
|
5
5
|
PartViewType2,
|
|
6
|
+
ToolChangesType2,
|
|
6
7
|
ToolPartStateType2,
|
|
7
8
|
actOutcomeSchema2,
|
|
8
9
|
PlacementSchema2,
|
|
9
10
|
PartStatusSchema2,
|
|
10
11
|
PartViewSchema2,
|
|
11
12
|
ToolPartStateSchema2
|
|
12
|
-
} from "../chunks/browser-
|
|
13
|
+
} from "../chunks/browser-t5xqtqzh.js";
|
|
13
14
|
import"../chunks/browser-h86zs54a.js";
|
|
14
15
|
import"../chunks/browser-8ancsy4m.js";
|
|
15
16
|
import"../chunks/browser-40enyw9r.js";
|
|
@@ -29,6 +30,7 @@ export {
|
|
|
29
30
|
PlacementSchema2 as PlacementSchema,
|
|
30
31
|
PlacementType2 as PlacementType,
|
|
31
32
|
SignatureType2 as SignatureType,
|
|
33
|
+
ToolChangesType2 as ToolChangesType,
|
|
32
34
|
ToolPartStateSchema2 as ToolPartStateSchema,
|
|
33
35
|
ToolPartStateType2 as ToolPartStateType,
|
|
34
36
|
actOutcomeSchema2 as actOutcomeSchema
|
package/dist/src/store.d.ts
CHANGED
|
@@ -463,6 +463,7 @@ export declare const RefUpdateType: Type.TObject<{
|
|
|
463
463
|
added: Type.TNumber;
|
|
464
464
|
removed: Type.TNumber;
|
|
465
465
|
paths: Type.TArray<Type.TString>;
|
|
466
|
+
unattributed: Type.TOptional<Type.TLiteral<true>>;
|
|
466
467
|
}>, Type.TNull]>;
|
|
467
468
|
kind: Type.TLiteral<"call">;
|
|
468
469
|
call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
|
package/dist/src/store.js
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
RefSchema2,
|
|
6
6
|
RefUpdateSchema2,
|
|
7
7
|
SetOutcomeSchema2
|
|
8
|
-
} from "../chunks/browser-
|
|
9
|
-
import"../chunks/browser-
|
|
10
|
-
import"../chunks/browser-
|
|
8
|
+
} from "../chunks/browser-xk4psyrx.js";
|
|
9
|
+
import"../chunks/browser-ay8k1s1m.js";
|
|
10
|
+
import"../chunks/browser-t5xqtqzh.js";
|
|
11
11
|
import"../chunks/browser-h86zs54a.js";
|
|
12
12
|
import"../chunks/browser-xensz05x.js";
|
|
13
13
|
import"../chunks/browser-bg1esaw0.js";
|
package/dist/src/views.d.ts
CHANGED
|
@@ -3091,6 +3091,192 @@ export declare const ViewFrameType: Type.TUnion<[Type.TObject<{
|
|
|
3091
3091
|
}>]>;
|
|
3092
3092
|
/** One frame of a head's watch on the wire: the whole view first, then each later view as what changed since the frame before it, an absent field unchanged; a null `leadingPrompt` clears it. */
|
|
3093
3093
|
export type ViewFrame = Decoded<typeof ViewFrameType>;
|
|
3094
|
+
export declare const SessionsFrameType: Type.TObject<{
|
|
3095
|
+
kind: Type.TEnum<["list", "delta"]>;
|
|
3096
|
+
order: Type.TObject<{
|
|
3097
|
+
runs: Type.TArray<Type.TNumber>;
|
|
3098
|
+
items: Type.TArray<Type.TUnsafe<import("./ids.ts").Id<"session">>>;
|
|
3099
|
+
}>;
|
|
3100
|
+
items: Type.TArray<Type.TObject<{
|
|
3101
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"session">>;
|
|
3102
|
+
name: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
3103
|
+
parent: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"session">>, Type.TNull]>;
|
|
3104
|
+
call: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"call">>, Type.TNull]>;
|
|
3105
|
+
workspace: Type.TUnsafe<import("./ids.ts").Id<"workspace">>;
|
|
3106
|
+
pinned: Type.TBoolean;
|
|
3107
|
+
archived: Type.TBoolean;
|
|
3108
|
+
activation: Type.TUnion<[Type.TObject<{
|
|
3109
|
+
kind: Type.TLiteral<"active">;
|
|
3110
|
+
}>, Type.TObject<{
|
|
3111
|
+
kind: Type.TLiteral<"inactive">;
|
|
3112
|
+
}>, Type.TObject<{
|
|
3113
|
+
kind: Type.TLiteral<"unavailable">;
|
|
3114
|
+
reason: Type.TEnum<["unsupported", "unreachable"]>;
|
|
3115
|
+
workspace: Type.TUnsafe<import("./ids.ts").Id<"workspace">>;
|
|
3116
|
+
}>, Type.TObject<{
|
|
3117
|
+
kind: Type.TLiteral<"failed">;
|
|
3118
|
+
message: Type.TString;
|
|
3119
|
+
}>]>;
|
|
3120
|
+
heads: Type.TArray<Type.TObject<{
|
|
3121
|
+
name: Type.TUnsafe<import("./ids.ts").Id<"head">>;
|
|
3122
|
+
tip: Type.TUnion<[Type.TObject<{
|
|
3123
|
+
kind: Type.TLiteral<"start">;
|
|
3124
|
+
}>, Type.TObject<{
|
|
3125
|
+
kind: Type.TLiteral<"commit">;
|
|
3126
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
|
|
3127
|
+
}>]>;
|
|
3128
|
+
stack: Type.TUnion<[Type.TObject<{
|
|
3129
|
+
parent: Type.TUnsafe<import("./ids.ts").Id<"head">>;
|
|
3130
|
+
base: Type.TUnion<[Type.TObject<{
|
|
3131
|
+
kind: Type.TLiteral<"start">;
|
|
3132
|
+
}>, Type.TObject<{
|
|
3133
|
+
kind: Type.TLiteral<"commit">;
|
|
3134
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
|
|
3135
|
+
}>]>;
|
|
3136
|
+
stale: Type.TBoolean;
|
|
3137
|
+
}>, Type.TNull]>;
|
|
3138
|
+
execution: Type.TUnion<[Type.TObject<{
|
|
3139
|
+
kind: Type.TLiteral<"idle">;
|
|
3140
|
+
lastRun: Type.TUnion<[Type.TObject<{
|
|
3141
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"run">>;
|
|
3142
|
+
end: Type.TUnion<[Type.TObject<{
|
|
3143
|
+
kind: Type.TLiteral<"completed">;
|
|
3144
|
+
usage: Type.TObject<{
|
|
3145
|
+
input: Type.TNumber;
|
|
3146
|
+
output: Type.TNumber;
|
|
3147
|
+
cacheRead: Type.TNumber;
|
|
3148
|
+
cacheWrite: Type.TNumber;
|
|
3149
|
+
reasoning: Type.TUnion<[Type.TNumber, Type.TNull]>;
|
|
3150
|
+
total: Type.TNumber;
|
|
3151
|
+
cost: Type.TObject<{
|
|
3152
|
+
input: Type.TNumber;
|
|
3153
|
+
output: Type.TNumber;
|
|
3154
|
+
cacheRead: Type.TNumber;
|
|
3155
|
+
cacheWrite: Type.TNumber;
|
|
3156
|
+
total: Type.TNumber;
|
|
3157
|
+
}>;
|
|
3158
|
+
}>;
|
|
3159
|
+
}>, Type.TObject<{
|
|
3160
|
+
kind: Type.TLiteral<"stopped">;
|
|
3161
|
+
}>, Type.TObject<{
|
|
3162
|
+
kind: Type.TLiteral<"failed">;
|
|
3163
|
+
failure: Type.TObject<{
|
|
3164
|
+
class: Type.TEnum<["rate_limit", "auth", "quota", "context_window", "overloaded", "network", "aborted", "provider", "runner"]>;
|
|
3165
|
+
message: Type.TString;
|
|
3166
|
+
retryAfterMs: Type.TOptional<Type.TNumber>;
|
|
3167
|
+
}>;
|
|
3168
|
+
}>]>;
|
|
3169
|
+
endedAt: Type.TNumber;
|
|
3170
|
+
}>, Type.TNull]>;
|
|
3171
|
+
}>, Type.TObject<{
|
|
3172
|
+
kind: Type.TLiteral<"live">;
|
|
3173
|
+
run: Type.TObject<{
|
|
3174
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"run">>;
|
|
3175
|
+
head: Type.TUnsafe<import("./ids.ts").Id<"head">>;
|
|
3176
|
+
startedAt: Type.TNumber;
|
|
3177
|
+
attempt: Type.TNumber;
|
|
3178
|
+
configuration: Type.TObject<{
|
|
3179
|
+
kind: Type.TLiteral<"exact">;
|
|
3180
|
+
model: Type.TObject<{
|
|
3181
|
+
provider: Type.TString;
|
|
3182
|
+
id: Type.TString;
|
|
3183
|
+
}>;
|
|
3184
|
+
thinking: Type.TEnum<["off", "minimal", "low", "medium", "high", "xhigh", "max"]>;
|
|
3185
|
+
agent: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
3186
|
+
settings: Type.TRecord<"^.*$", Type.TUnsafe<import("./json.ts").Json>>;
|
|
3187
|
+
settingsVersion: Type.TString;
|
|
3188
|
+
}>;
|
|
3189
|
+
origin: Type.TUnion<[Type.TObject<{
|
|
3190
|
+
kind: Type.TLiteral<"input">;
|
|
3191
|
+
message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
|
|
3192
|
+
}>, Type.TObject<{
|
|
3193
|
+
kind: Type.TLiteral<"continuation">;
|
|
3194
|
+
from: Type.TEnum<["child", "job", "wake"]>;
|
|
3195
|
+
}>]>;
|
|
3196
|
+
}>;
|
|
3197
|
+
phase: Type.TEnum<["responding", "executing"]>;
|
|
3198
|
+
stopping: Type.TBoolean;
|
|
3199
|
+
}>, Type.TObject<{
|
|
3200
|
+
kind: Type.TLiteral<"waiting">;
|
|
3201
|
+
run: Type.TObject<{
|
|
3202
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"run">>;
|
|
3203
|
+
head: Type.TUnsafe<import("./ids.ts").Id<"head">>;
|
|
3204
|
+
startedAt: Type.TNumber;
|
|
3205
|
+
attempt: Type.TNumber;
|
|
3206
|
+
configuration: Type.TObject<{
|
|
3207
|
+
kind: Type.TLiteral<"exact">;
|
|
3208
|
+
model: Type.TObject<{
|
|
3209
|
+
provider: Type.TString;
|
|
3210
|
+
id: Type.TString;
|
|
3211
|
+
}>;
|
|
3212
|
+
thinking: Type.TEnum<["off", "minimal", "low", "medium", "high", "xhigh", "max"]>;
|
|
3213
|
+
agent: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
3214
|
+
settings: Type.TRecord<"^.*$", Type.TUnsafe<import("./json.ts").Json>>;
|
|
3215
|
+
settingsVersion: Type.TString;
|
|
3216
|
+
}>;
|
|
3217
|
+
origin: Type.TUnion<[Type.TObject<{
|
|
3218
|
+
kind: Type.TLiteral<"input">;
|
|
3219
|
+
message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
|
|
3220
|
+
}>, Type.TObject<{
|
|
3221
|
+
kind: Type.TLiteral<"continuation">;
|
|
3222
|
+
from: Type.TEnum<["child", "job", "wake"]>;
|
|
3223
|
+
}>]>;
|
|
3224
|
+
}>;
|
|
3225
|
+
on: Type.TUnion<[Type.TObject<{
|
|
3226
|
+
kind: Type.TLiteral<"run">;
|
|
3227
|
+
session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
|
|
3228
|
+
run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
|
|
3229
|
+
deadline: Type.TOptional<Type.TNumber>;
|
|
3230
|
+
}>, Type.TObject<{
|
|
3231
|
+
kind: Type.TLiteral<"job">;
|
|
3232
|
+
job: Type.TUnsafe<import("./ids.ts").Id<"job">>;
|
|
3233
|
+
deadline: Type.TOptional<Type.TNumber>;
|
|
3234
|
+
}>, Type.TObject<{
|
|
3235
|
+
kind: Type.TLiteral<"part">;
|
|
3236
|
+
part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
|
|
3237
|
+
deadline: Type.TOptional<Type.TNumber>;
|
|
3238
|
+
}>, Type.TObject<{
|
|
3239
|
+
kind: Type.TLiteral<"timer">;
|
|
3240
|
+
until: Type.TNumber;
|
|
3241
|
+
deadline: Type.TOptional<Type.TNumber>;
|
|
3242
|
+
}>]>;
|
|
3243
|
+
}>, Type.TObject<{
|
|
3244
|
+
kind: Type.TLiteral<"retrying">;
|
|
3245
|
+
run: Type.TObject<{
|
|
3246
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"run">>;
|
|
3247
|
+
head: Type.TUnsafe<import("./ids.ts").Id<"head">>;
|
|
3248
|
+
startedAt: Type.TNumber;
|
|
3249
|
+
attempt: Type.TNumber;
|
|
3250
|
+
configuration: Type.TObject<{
|
|
3251
|
+
kind: Type.TLiteral<"exact">;
|
|
3252
|
+
model: Type.TObject<{
|
|
3253
|
+
provider: Type.TString;
|
|
3254
|
+
id: Type.TString;
|
|
3255
|
+
}>;
|
|
3256
|
+
thinking: Type.TEnum<["off", "minimal", "low", "medium", "high", "xhigh", "max"]>;
|
|
3257
|
+
agent: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
3258
|
+
settings: Type.TRecord<"^.*$", Type.TUnsafe<import("./json.ts").Json>>;
|
|
3259
|
+
settingsVersion: Type.TString;
|
|
3260
|
+
}>;
|
|
3261
|
+
origin: Type.TUnion<[Type.TObject<{
|
|
3262
|
+
kind: Type.TLiteral<"input">;
|
|
3263
|
+
message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
|
|
3264
|
+
}>, Type.TObject<{
|
|
3265
|
+
kind: Type.TLiteral<"continuation">;
|
|
3266
|
+
from: Type.TEnum<["child", "job", "wake"]>;
|
|
3267
|
+
}>]>;
|
|
3268
|
+
}>;
|
|
3269
|
+
until: Type.TNumber;
|
|
3270
|
+
reason: Type.TString;
|
|
3271
|
+
}>]>;
|
|
3272
|
+
unread: Type.TBoolean;
|
|
3273
|
+
}>>;
|
|
3274
|
+
createdAt: Type.TNumber;
|
|
3275
|
+
lastActivityAt: Type.TNumber;
|
|
3276
|
+
}>>;
|
|
3277
|
+
}>;
|
|
3278
|
+
/** One frame of `sessions.watch`: the list's session ids as the previous frame's ids spliced (a `list` splices from none and starts every stream), and the row of each id the splice takes; a row a client cannot read is left out. */
|
|
3279
|
+
export type SessionsFrame = Decoded<typeof SessionsFrameType>;
|
|
3094
3280
|
export declare const ViewOptionsSchema: Schema<ViewOptions>;
|
|
3095
3281
|
export declare const UserStatusSchema: Schema<UserStatus>;
|
|
3096
3282
|
export declare const MessageSchema: Schema<Message>;
|
package/dist/src/views.js
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
HistoryPageType2,
|
|
8
8
|
ViewAppendType2,
|
|
9
9
|
ViewFrameType2,
|
|
10
|
+
SessionsFrameType2,
|
|
10
11
|
ViewOptionsSchema2,
|
|
11
12
|
UserStatusSchema2,
|
|
12
13
|
MessageSchema2,
|
|
@@ -14,8 +15,8 @@ import {
|
|
|
14
15
|
SessionViewSchema2,
|
|
15
16
|
HistoryPageSchema2,
|
|
16
17
|
ViewFrameSchema2
|
|
17
|
-
} from "../chunks/browser-
|
|
18
|
-
import"../chunks/browser-
|
|
18
|
+
} from "../chunks/browser-fe66aj8v.js";
|
|
19
|
+
import"../chunks/browser-t5xqtqzh.js";
|
|
19
20
|
import"../chunks/browser-h86zs54a.js";
|
|
20
21
|
import"../chunks/browser-xensz05x.js";
|
|
21
22
|
import"../chunks/browser-bg1esaw0.js";
|
|
@@ -38,6 +39,7 @@ export {
|
|
|
38
39
|
MessageType2 as MessageType,
|
|
39
40
|
SessionViewSchema2 as SessionViewSchema,
|
|
40
41
|
SessionViewType2 as SessionViewType,
|
|
42
|
+
SessionsFrameType2 as SessionsFrameType,
|
|
41
43
|
TurnInfoSchema2 as TurnInfoSchema,
|
|
42
44
|
TurnInfoType2 as TurnInfoType,
|
|
43
45
|
UserStatusSchema2 as UserStatusSchema,
|