@lensmcp/protocol-types 1.25.45 → 1.25.46
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/lib/attributes.d.ts +8 -8
- package/lib/context.d.ts +2 -2
- package/lib/edge.d.ts +8 -8
- package/lib/event.d.ts +43 -43
- package/lib/node.d.ts +11 -11
- package/lib/resources.d.ts +28 -28
- package/lib/team.d.ts +73 -2
- package/package.json +1 -1
package/lib/attributes.d.ts
CHANGED
|
@@ -150,10 +150,10 @@ export declare const MemoryOwnerAttrsSchema: z.ZodObject<{
|
|
|
150
150
|
}, z.core.$strip>;
|
|
151
151
|
export type MemoryOwnerAttrs = z.infer<typeof MemoryOwnerAttrsSchema>;
|
|
152
152
|
export declare const MemoryMutationOperationSchema: z.ZodEnum<{
|
|
153
|
-
|
|
153
|
+
delete: "delete";
|
|
154
154
|
push: "push";
|
|
155
|
+
set: "set";
|
|
155
156
|
add: "add";
|
|
156
|
-
delete: "delete";
|
|
157
157
|
clear: "clear";
|
|
158
158
|
subscribe: "subscribe";
|
|
159
159
|
listen: "listen";
|
|
@@ -163,10 +163,10 @@ export type MemoryMutationOperation = z.infer<typeof MemoryMutationOperationSche
|
|
|
163
163
|
export declare const MemoryMutationAttrsSchema: z.ZodObject<{
|
|
164
164
|
ownerNodeId: z.ZodString;
|
|
165
165
|
operation: z.ZodEnum<{
|
|
166
|
-
|
|
166
|
+
delete: "delete";
|
|
167
167
|
push: "push";
|
|
168
|
+
set: "set";
|
|
168
169
|
add: "add";
|
|
169
|
-
delete: "delete";
|
|
170
170
|
clear: "clear";
|
|
171
171
|
subscribe: "subscribe";
|
|
172
172
|
listen: "listen";
|
|
@@ -187,13 +187,13 @@ export declare const RectSchema: z.ZodObject<{
|
|
|
187
187
|
}, z.core.$strip>;
|
|
188
188
|
export type Rect = z.infer<typeof RectSchema>;
|
|
189
189
|
export declare const VisualFrameCauseSchema: z.ZodEnum<{
|
|
190
|
+
"hmr-update": "hmr-update";
|
|
190
191
|
"page-load": "page-load";
|
|
192
|
+
"state-update": "state-update";
|
|
191
193
|
"route-change": "route-change";
|
|
192
194
|
"user-action": "user-action";
|
|
193
195
|
"react-commit": "react-commit";
|
|
194
|
-
"state-update": "state-update";
|
|
195
196
|
"api-response": "api-response";
|
|
196
|
-
"hmr-update": "hmr-update";
|
|
197
197
|
"animation-tick": "animation-tick";
|
|
198
198
|
}>;
|
|
199
199
|
export type VisualFrameCause = z.infer<typeof VisualFrameCauseSchema>;
|
|
@@ -205,13 +205,13 @@ export declare const VisualChangeKindSchema: z.ZodEnum<{
|
|
|
205
205
|
export type VisualChangeKind = z.infer<typeof VisualChangeKindSchema>;
|
|
206
206
|
export declare const VisualFrameAttrsSchema: z.ZodObject<{
|
|
207
207
|
causedBy: z.ZodEnum<{
|
|
208
|
+
"hmr-update": "hmr-update";
|
|
208
209
|
"page-load": "page-load";
|
|
210
|
+
"state-update": "state-update";
|
|
209
211
|
"route-change": "route-change";
|
|
210
212
|
"user-action": "user-action";
|
|
211
213
|
"react-commit": "react-commit";
|
|
212
|
-
"state-update": "state-update";
|
|
213
214
|
"api-response": "api-response";
|
|
214
|
-
"hmr-update": "hmr-update";
|
|
215
215
|
"animation-tick": "animation-tick";
|
|
216
216
|
}>;
|
|
217
217
|
viewport: z.ZodObject<{
|
package/lib/context.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const FlowOriginTypeSchema: z.ZodEnum<{
|
|
3
|
+
request: "request";
|
|
3
4
|
"user-click": "user-click";
|
|
4
5
|
"user-input": "user-input";
|
|
5
6
|
keyboard: "keyboard";
|
|
@@ -25,7 +26,6 @@ export declare const FlowOriginTypeSchema: z.ZodEnum<{
|
|
|
25
26
|
"page-load": "page-load";
|
|
26
27
|
"form-submit": "form-submit";
|
|
27
28
|
"input-change": "input-change";
|
|
28
|
-
request: "request";
|
|
29
29
|
job: "job";
|
|
30
30
|
}>;
|
|
31
31
|
export type FlowOriginType = z.infer<typeof FlowOriginTypeSchema>;
|
|
@@ -38,6 +38,7 @@ export declare const TraceContextSchema: z.ZodObject<{
|
|
|
38
38
|
url: z.ZodOptional<z.ZodString>;
|
|
39
39
|
flowId: z.ZodOptional<z.ZodString>;
|
|
40
40
|
originType: z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
request: "request";
|
|
41
42
|
"user-click": "user-click";
|
|
42
43
|
"user-input": "user-input";
|
|
43
44
|
keyboard: "keyboard";
|
|
@@ -63,7 +64,6 @@ export declare const TraceContextSchema: z.ZodObject<{
|
|
|
63
64
|
"page-load": "page-load";
|
|
64
65
|
"form-submit": "form-submit";
|
|
65
66
|
"input-change": "input-change";
|
|
66
|
-
request: "request";
|
|
67
67
|
job: "job";
|
|
68
68
|
}>>;
|
|
69
69
|
originNodeId: z.ZodOptional<z.ZodString>;
|
package/lib/edge.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const EdgeAxisSchema: z.ZodEnum<{
|
|
3
|
+
state: "state";
|
|
4
|
+
network: "network";
|
|
5
|
+
data: "data";
|
|
3
6
|
db: "db";
|
|
4
|
-
memory: "memory";
|
|
5
7
|
visual: "visual";
|
|
8
|
+
memory: "memory";
|
|
6
9
|
render: "render";
|
|
7
|
-
state: "state";
|
|
8
|
-
network: "network";
|
|
9
10
|
backend: "backend";
|
|
10
11
|
performance: "performance";
|
|
11
12
|
lifecycle: "lifecycle";
|
|
12
13
|
ownership: "ownership";
|
|
13
14
|
caused: "caused";
|
|
14
15
|
async: "async";
|
|
15
|
-
data: "data";
|
|
16
16
|
}>;
|
|
17
17
|
export type EdgeAxis = z.infer<typeof EdgeAxisSchema>;
|
|
18
18
|
export declare const TraceEdgeSchema: z.ZodObject<{
|
|
@@ -20,19 +20,19 @@ export declare const TraceEdgeSchema: z.ZodObject<{
|
|
|
20
20
|
from: z.ZodString;
|
|
21
21
|
to: z.ZodString;
|
|
22
22
|
axis: z.ZodEnum<{
|
|
23
|
+
state: "state";
|
|
24
|
+
network: "network";
|
|
25
|
+
data: "data";
|
|
23
26
|
db: "db";
|
|
24
|
-
memory: "memory";
|
|
25
27
|
visual: "visual";
|
|
28
|
+
memory: "memory";
|
|
26
29
|
render: "render";
|
|
27
|
-
state: "state";
|
|
28
|
-
network: "network";
|
|
29
30
|
backend: "backend";
|
|
30
31
|
performance: "performance";
|
|
31
32
|
lifecycle: "lifecycle";
|
|
32
33
|
ownership: "ownership";
|
|
33
34
|
caused: "caused";
|
|
34
35
|
async: "async";
|
|
35
|
-
data: "data";
|
|
36
36
|
}>;
|
|
37
37
|
type: z.ZodString;
|
|
38
38
|
timestamp: z.ZodNumber;
|
package/lib/event.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const EventSourceSchema: z.ZodEnum<{
|
|
3
|
+
gateway: "gateway";
|
|
4
|
+
ai: "ai";
|
|
5
|
+
db: "db";
|
|
6
|
+
redis: "redis";
|
|
7
|
+
queue: "queue";
|
|
8
|
+
external: "external";
|
|
9
|
+
visual: "visual";
|
|
10
|
+
react: "react";
|
|
11
|
+
memory: "memory";
|
|
3
12
|
nx: "nx";
|
|
4
13
|
vite: "vite";
|
|
5
14
|
typescript: "typescript";
|
|
@@ -7,51 +16,42 @@ export declare const EventSourceSchema: z.ZodEnum<{
|
|
|
7
16
|
rollup: "rollup";
|
|
8
17
|
"client-runtime": "client-runtime";
|
|
9
18
|
chrome: "chrome";
|
|
10
|
-
react: "react";
|
|
11
19
|
valtio: "valtio";
|
|
12
20
|
nestjs: "nestjs";
|
|
13
21
|
nextjs: "nextjs";
|
|
14
|
-
db: "db";
|
|
15
|
-
redis: "redis";
|
|
16
|
-
queue: "queue";
|
|
17
|
-
memory: "memory";
|
|
18
|
-
visual: "visual";
|
|
19
22
|
perf: "perf";
|
|
20
23
|
security: "security";
|
|
21
|
-
gateway: "gateway";
|
|
22
|
-
external: "external";
|
|
23
|
-
ai: "ai";
|
|
24
24
|
lens: "lens";
|
|
25
25
|
custom: "custom";
|
|
26
26
|
}>;
|
|
27
27
|
export type EventSource = z.infer<typeof EventSourceSchema>;
|
|
28
28
|
export declare const EventCategorySchema: z.ZodEnum<{
|
|
29
|
+
build: "build";
|
|
30
|
+
test: "test";
|
|
31
|
+
state: "state";
|
|
32
|
+
agent: "agent";
|
|
33
|
+
network: "network";
|
|
34
|
+
ai: "ai";
|
|
29
35
|
db: "db";
|
|
30
|
-
|
|
36
|
+
typecheck: "typecheck";
|
|
37
|
+
lint: "lint";
|
|
31
38
|
visual: "visual";
|
|
39
|
+
memory: "memory";
|
|
40
|
+
cluster: "cluster";
|
|
41
|
+
trace: "trace";
|
|
32
42
|
security: "security";
|
|
33
|
-
ai: "ai";
|
|
34
|
-
build: "build";
|
|
35
|
-
lint: "lint";
|
|
36
|
-
typecheck: "typecheck";
|
|
37
|
-
test: "test";
|
|
38
43
|
runtime: "runtime";
|
|
39
44
|
render: "render";
|
|
40
|
-
trace: "trace";
|
|
41
|
-
state: "state";
|
|
42
|
-
network: "network";
|
|
43
45
|
backend: "backend";
|
|
44
46
|
performance: "performance";
|
|
45
47
|
deps: "deps";
|
|
46
|
-
cluster: "cluster";
|
|
47
|
-
agent: "agent";
|
|
48
48
|
}>;
|
|
49
49
|
export type EventCategory = z.infer<typeof EventCategorySchema>;
|
|
50
50
|
export declare const SeveritySchema: z.ZodEnum<{
|
|
51
51
|
error: "error";
|
|
52
|
-
debug: "debug";
|
|
53
52
|
info: "info";
|
|
54
53
|
warning: "warning";
|
|
54
|
+
debug: "debug";
|
|
55
55
|
fatal: "fatal";
|
|
56
56
|
}>;
|
|
57
57
|
export type Severity = z.infer<typeof SeveritySchema>;
|
|
@@ -60,6 +60,15 @@ export declare const BaseEventSchema: z.ZodObject<{
|
|
|
60
60
|
sessionId: z.ZodString;
|
|
61
61
|
timestamp: z.ZodNumber;
|
|
62
62
|
source: z.ZodEnum<{
|
|
63
|
+
gateway: "gateway";
|
|
64
|
+
ai: "ai";
|
|
65
|
+
db: "db";
|
|
66
|
+
redis: "redis";
|
|
67
|
+
queue: "queue";
|
|
68
|
+
external: "external";
|
|
69
|
+
visual: "visual";
|
|
70
|
+
react: "react";
|
|
71
|
+
memory: "memory";
|
|
63
72
|
nx: "nx";
|
|
64
73
|
vite: "vite";
|
|
65
74
|
typescript: "typescript";
|
|
@@ -67,49 +76,40 @@ export declare const BaseEventSchema: z.ZodObject<{
|
|
|
67
76
|
rollup: "rollup";
|
|
68
77
|
"client-runtime": "client-runtime";
|
|
69
78
|
chrome: "chrome";
|
|
70
|
-
react: "react";
|
|
71
79
|
valtio: "valtio";
|
|
72
80
|
nestjs: "nestjs";
|
|
73
81
|
nextjs: "nextjs";
|
|
74
|
-
db: "db";
|
|
75
|
-
redis: "redis";
|
|
76
|
-
queue: "queue";
|
|
77
|
-
memory: "memory";
|
|
78
|
-
visual: "visual";
|
|
79
82
|
perf: "perf";
|
|
80
83
|
security: "security";
|
|
81
|
-
gateway: "gateway";
|
|
82
|
-
external: "external";
|
|
83
|
-
ai: "ai";
|
|
84
84
|
lens: "lens";
|
|
85
85
|
custom: "custom";
|
|
86
86
|
}>;
|
|
87
87
|
category: z.ZodEnum<{
|
|
88
|
+
build: "build";
|
|
89
|
+
test: "test";
|
|
90
|
+
state: "state";
|
|
91
|
+
agent: "agent";
|
|
92
|
+
network: "network";
|
|
93
|
+
ai: "ai";
|
|
88
94
|
db: "db";
|
|
89
|
-
|
|
95
|
+
typecheck: "typecheck";
|
|
96
|
+
lint: "lint";
|
|
90
97
|
visual: "visual";
|
|
98
|
+
memory: "memory";
|
|
99
|
+
cluster: "cluster";
|
|
100
|
+
trace: "trace";
|
|
91
101
|
security: "security";
|
|
92
|
-
ai: "ai";
|
|
93
|
-
build: "build";
|
|
94
|
-
lint: "lint";
|
|
95
|
-
typecheck: "typecheck";
|
|
96
|
-
test: "test";
|
|
97
102
|
runtime: "runtime";
|
|
98
103
|
render: "render";
|
|
99
|
-
trace: "trace";
|
|
100
|
-
state: "state";
|
|
101
|
-
network: "network";
|
|
102
104
|
backend: "backend";
|
|
103
105
|
performance: "performance";
|
|
104
106
|
deps: "deps";
|
|
105
|
-
cluster: "cluster";
|
|
106
|
-
agent: "agent";
|
|
107
107
|
}>;
|
|
108
108
|
severity: z.ZodEnum<{
|
|
109
109
|
error: "error";
|
|
110
|
-
debug: "debug";
|
|
111
110
|
info: "info";
|
|
112
111
|
warning: "warning";
|
|
112
|
+
debug: "debug";
|
|
113
113
|
fatal: "fatal";
|
|
114
114
|
}>;
|
|
115
115
|
context: z.ZodObject<{
|
|
@@ -121,6 +121,7 @@ export declare const BaseEventSchema: z.ZodObject<{
|
|
|
121
121
|
url: z.ZodOptional<z.ZodString>;
|
|
122
122
|
flowId: z.ZodOptional<z.ZodString>;
|
|
123
123
|
originType: z.ZodOptional<z.ZodEnum<{
|
|
124
|
+
request: "request";
|
|
124
125
|
"user-click": "user-click";
|
|
125
126
|
"user-input": "user-input";
|
|
126
127
|
keyboard: "keyboard";
|
|
@@ -146,7 +147,6 @@ export declare const BaseEventSchema: z.ZodObject<{
|
|
|
146
147
|
"page-load": "page-load";
|
|
147
148
|
"form-submit": "form-submit";
|
|
148
149
|
"input-change": "input-change";
|
|
149
|
-
request: "request";
|
|
150
150
|
job: "job";
|
|
151
151
|
}>>;
|
|
152
152
|
originNodeId: z.ZodOptional<z.ZodString>;
|
package/lib/node.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const TraceNodeTypeSchema: z.ZodEnum<{
|
|
3
|
+
page: "page";
|
|
4
|
+
route: "route";
|
|
5
|
+
session: "session";
|
|
3
6
|
effect: "effect";
|
|
4
7
|
timer: "timer";
|
|
5
8
|
"hmr-update": "hmr-update";
|
|
6
|
-
route: "route";
|
|
7
9
|
render: "render";
|
|
8
10
|
promise: "promise";
|
|
9
|
-
session: "session";
|
|
10
11
|
"browser-context": "browser-context";
|
|
11
12
|
tab: "tab";
|
|
12
13
|
renderer: "renderer";
|
|
13
14
|
router: "router";
|
|
14
|
-
page: "page";
|
|
15
15
|
component: "component";
|
|
16
16
|
element: "element";
|
|
17
17
|
slot: "slot";
|
|
@@ -64,9 +64,9 @@ export declare const TraceNodeTypeSchema: z.ZodEnum<{
|
|
|
64
64
|
}>;
|
|
65
65
|
export type TraceNodeType = z.infer<typeof TraceNodeTypeSchema>;
|
|
66
66
|
export declare const LifecycleSchema: z.ZodEnum<{
|
|
67
|
-
created: "created";
|
|
68
|
-
active: "active";
|
|
69
67
|
completed: "completed";
|
|
68
|
+
active: "active";
|
|
69
|
+
created: "created";
|
|
70
70
|
disposed: "disposed";
|
|
71
71
|
errored: "errored";
|
|
72
72
|
}>;
|
|
@@ -75,18 +75,18 @@ export declare const TraceNodeSchema: z.ZodObject<{
|
|
|
75
75
|
id: z.ZodString;
|
|
76
76
|
parentTraceNodeId: z.ZodOptional<z.ZodString>;
|
|
77
77
|
type: z.ZodEnum<{
|
|
78
|
+
page: "page";
|
|
79
|
+
route: "route";
|
|
80
|
+
session: "session";
|
|
78
81
|
effect: "effect";
|
|
79
82
|
timer: "timer";
|
|
80
83
|
"hmr-update": "hmr-update";
|
|
81
|
-
route: "route";
|
|
82
84
|
render: "render";
|
|
83
85
|
promise: "promise";
|
|
84
|
-
session: "session";
|
|
85
86
|
"browser-context": "browser-context";
|
|
86
87
|
tab: "tab";
|
|
87
88
|
renderer: "renderer";
|
|
88
89
|
router: "router";
|
|
89
|
-
page: "page";
|
|
90
90
|
component: "component";
|
|
91
91
|
element: "element";
|
|
92
92
|
slot: "slot";
|
|
@@ -141,9 +141,9 @@ export declare const TraceNodeSchema: z.ZodObject<{
|
|
|
141
141
|
instanceId: z.ZodOptional<z.ZodString>;
|
|
142
142
|
generation: z.ZodOptional<z.ZodNumber>;
|
|
143
143
|
lifecycle: z.ZodEnum<{
|
|
144
|
-
created: "created";
|
|
145
|
-
active: "active";
|
|
146
144
|
completed: "completed";
|
|
145
|
+
active: "active";
|
|
146
|
+
created: "created";
|
|
147
147
|
disposed: "disposed";
|
|
148
148
|
errored: "errored";
|
|
149
149
|
}>;
|
|
@@ -156,6 +156,7 @@ export declare const TraceNodeSchema: z.ZodObject<{
|
|
|
156
156
|
url: z.ZodOptional<z.ZodString>;
|
|
157
157
|
flowId: z.ZodOptional<z.ZodString>;
|
|
158
158
|
originType: z.ZodOptional<z.ZodEnum<{
|
|
159
|
+
request: "request";
|
|
159
160
|
"user-click": "user-click";
|
|
160
161
|
"user-input": "user-input";
|
|
161
162
|
keyboard: "keyboard";
|
|
@@ -181,7 +182,6 @@ export declare const TraceNodeSchema: z.ZodObject<{
|
|
|
181
182
|
"page-load": "page-load";
|
|
182
183
|
"form-submit": "form-submit";
|
|
183
184
|
"input-change": "input-change";
|
|
184
|
-
request: "request";
|
|
185
185
|
job: "job";
|
|
186
186
|
}>>;
|
|
187
187
|
originNodeId: z.ZodOptional<z.ZodString>;
|
package/lib/resources.d.ts
CHANGED
|
@@ -14,18 +14,18 @@ export declare const ResourceEnvelopeSchema: z.ZodObject<{
|
|
|
14
14
|
export type ResourceEnvelope = z.infer<typeof ResourceEnvelopeSchema>;
|
|
15
15
|
export declare const AgentStatusKindSchema: z.ZodEnum<{
|
|
16
16
|
warning: "warning";
|
|
17
|
+
starting: "starting";
|
|
17
18
|
clean: "clean";
|
|
18
19
|
failing: "failing";
|
|
19
|
-
starting: "starting";
|
|
20
20
|
}>;
|
|
21
21
|
export type AgentStatusKind = z.infer<typeof AgentStatusKindSchema>;
|
|
22
22
|
export declare const AgentBlockingItemSchema: z.ZodObject<{
|
|
23
23
|
source: z.ZodString;
|
|
24
24
|
severity: z.ZodEnum<{
|
|
25
25
|
error: "error";
|
|
26
|
-
debug: "debug";
|
|
27
26
|
info: "info";
|
|
28
27
|
warning: "warning";
|
|
28
|
+
debug: "debug";
|
|
29
29
|
fatal: "fatal";
|
|
30
30
|
}>;
|
|
31
31
|
title: z.ZodString;
|
|
@@ -49,37 +49,37 @@ export declare const AgentBlockingItemSchema: z.ZodObject<{
|
|
|
49
49
|
export type AgentBlockingItem = z.infer<typeof AgentBlockingItemSchema>;
|
|
50
50
|
export declare const AgentChecksSchema: z.ZodObject<{
|
|
51
51
|
typecheck: z.ZodOptional<z.ZodEnum<{
|
|
52
|
-
unknown: "unknown";
|
|
53
52
|
passed: "passed";
|
|
54
53
|
failed: "failed";
|
|
54
|
+
unknown: "unknown";
|
|
55
55
|
}>>;
|
|
56
56
|
lint: z.ZodOptional<z.ZodEnum<{
|
|
57
|
-
unknown: "unknown";
|
|
58
57
|
passed: "passed";
|
|
59
58
|
failed: "failed";
|
|
59
|
+
unknown: "unknown";
|
|
60
60
|
}>>;
|
|
61
61
|
build: z.ZodOptional<z.ZodEnum<{
|
|
62
|
-
unknown: "unknown";
|
|
63
62
|
passed: "passed";
|
|
64
63
|
failed: "failed";
|
|
64
|
+
unknown: "unknown";
|
|
65
65
|
}>>;
|
|
66
66
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
67
|
-
warning: "warning";
|
|
68
|
-
unknown: "unknown";
|
|
69
67
|
passed: "passed";
|
|
70
68
|
failed: "failed";
|
|
71
|
-
}>>;
|
|
72
|
-
visual: z.ZodOptional<z.ZodEnum<{
|
|
73
69
|
warning: "warning";
|
|
74
70
|
unknown: "unknown";
|
|
71
|
+
}>>;
|
|
72
|
+
visual: z.ZodOptional<z.ZodEnum<{
|
|
75
73
|
passed: "passed";
|
|
76
74
|
failed: "failed";
|
|
77
|
-
}>>;
|
|
78
|
-
memory: z.ZodOptional<z.ZodEnum<{
|
|
79
75
|
warning: "warning";
|
|
80
76
|
unknown: "unknown";
|
|
77
|
+
}>>;
|
|
78
|
+
memory: z.ZodOptional<z.ZodEnum<{
|
|
81
79
|
passed: "passed";
|
|
82
80
|
failed: "failed";
|
|
81
|
+
warning: "warning";
|
|
82
|
+
unknown: "unknown";
|
|
83
83
|
}>>;
|
|
84
84
|
}, z.core.$strip>;
|
|
85
85
|
/**
|
|
@@ -92,14 +92,14 @@ export declare const AgentChecksSchema: z.ZodObject<{
|
|
|
92
92
|
* bundle it started with until that session ends).
|
|
93
93
|
*/
|
|
94
94
|
export declare const AgentServerModeSchema: z.ZodEnum<{
|
|
95
|
-
embedded: "embedded";
|
|
96
95
|
shared: "shared";
|
|
96
|
+
embedded: "embedded";
|
|
97
97
|
}>;
|
|
98
98
|
export type AgentServerMode = z.infer<typeof AgentServerModeSchema>;
|
|
99
99
|
export declare const AgentServerInfoSchema: z.ZodObject<{
|
|
100
100
|
mode: z.ZodEnum<{
|
|
101
|
-
embedded: "embedded";
|
|
102
101
|
shared: "shared";
|
|
102
|
+
embedded: "embedded";
|
|
103
103
|
}>;
|
|
104
104
|
pid: z.ZodNumber;
|
|
105
105
|
startedAt: z.ZodString;
|
|
@@ -114,9 +114,9 @@ export declare const AgentCurrentStatusSchema: z.ZodObject<{
|
|
|
114
114
|
sessionId: z.ZodString;
|
|
115
115
|
status: z.ZodEnum<{
|
|
116
116
|
warning: "warning";
|
|
117
|
+
starting: "starting";
|
|
117
118
|
clean: "clean";
|
|
118
119
|
failing: "failing";
|
|
119
|
-
starting: "starting";
|
|
120
120
|
}>;
|
|
121
121
|
activeTab: z.ZodOptional<z.ZodString>;
|
|
122
122
|
tabsWithIssues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -124,9 +124,9 @@ export declare const AgentCurrentStatusSchema: z.ZodObject<{
|
|
|
124
124
|
source: z.ZodString;
|
|
125
125
|
severity: z.ZodEnum<{
|
|
126
126
|
error: "error";
|
|
127
|
-
debug: "debug";
|
|
128
127
|
info: "info";
|
|
129
128
|
warning: "warning";
|
|
129
|
+
debug: "debug";
|
|
130
130
|
fatal: "fatal";
|
|
131
131
|
}>;
|
|
132
132
|
title: z.ZodString;
|
|
@@ -151,9 +151,9 @@ export declare const AgentCurrentStatusSchema: z.ZodObject<{
|
|
|
151
151
|
source: z.ZodString;
|
|
152
152
|
severity: z.ZodEnum<{
|
|
153
153
|
error: "error";
|
|
154
|
-
debug: "debug";
|
|
155
154
|
info: "info";
|
|
156
155
|
warning: "warning";
|
|
156
|
+
debug: "debug";
|
|
157
157
|
fatal: "fatal";
|
|
158
158
|
}>;
|
|
159
159
|
title: z.ZodString;
|
|
@@ -177,43 +177,43 @@ export declare const AgentCurrentStatusSchema: z.ZodObject<{
|
|
|
177
177
|
suggestedReads: z.ZodArray<z.ZodString>;
|
|
178
178
|
checks: z.ZodOptional<z.ZodObject<{
|
|
179
179
|
typecheck: z.ZodOptional<z.ZodEnum<{
|
|
180
|
-
unknown: "unknown";
|
|
181
180
|
passed: "passed";
|
|
182
181
|
failed: "failed";
|
|
182
|
+
unknown: "unknown";
|
|
183
183
|
}>>;
|
|
184
184
|
lint: z.ZodOptional<z.ZodEnum<{
|
|
185
|
-
unknown: "unknown";
|
|
186
185
|
passed: "passed";
|
|
187
186
|
failed: "failed";
|
|
187
|
+
unknown: "unknown";
|
|
188
188
|
}>>;
|
|
189
189
|
build: z.ZodOptional<z.ZodEnum<{
|
|
190
|
-
unknown: "unknown";
|
|
191
190
|
passed: "passed";
|
|
192
191
|
failed: "failed";
|
|
192
|
+
unknown: "unknown";
|
|
193
193
|
}>>;
|
|
194
194
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
195
|
-
warning: "warning";
|
|
196
|
-
unknown: "unknown";
|
|
197
195
|
passed: "passed";
|
|
198
196
|
failed: "failed";
|
|
199
|
-
}>>;
|
|
200
|
-
visual: z.ZodOptional<z.ZodEnum<{
|
|
201
197
|
warning: "warning";
|
|
202
198
|
unknown: "unknown";
|
|
199
|
+
}>>;
|
|
200
|
+
visual: z.ZodOptional<z.ZodEnum<{
|
|
203
201
|
passed: "passed";
|
|
204
202
|
failed: "failed";
|
|
205
|
-
}>>;
|
|
206
|
-
memory: z.ZodOptional<z.ZodEnum<{
|
|
207
203
|
warning: "warning";
|
|
208
204
|
unknown: "unknown";
|
|
205
|
+
}>>;
|
|
206
|
+
memory: z.ZodOptional<z.ZodEnum<{
|
|
209
207
|
passed: "passed";
|
|
210
208
|
failed: "failed";
|
|
209
|
+
warning: "warning";
|
|
210
|
+
unknown: "unknown";
|
|
211
211
|
}>>;
|
|
212
212
|
}, z.core.$strip>>;
|
|
213
213
|
server: z.ZodOptional<z.ZodObject<{
|
|
214
214
|
mode: z.ZodEnum<{
|
|
215
|
-
embedded: "embedded";
|
|
216
215
|
shared: "shared";
|
|
216
|
+
embedded: "embedded";
|
|
217
217
|
}>;
|
|
218
218
|
pid: z.ZodNumber;
|
|
219
219
|
startedAt: z.ZodString;
|
|
@@ -328,9 +328,9 @@ declare const CheckEntrySchema: z.ZodObject<{
|
|
|
328
328
|
rule: z.ZodOptional<z.ZodString>;
|
|
329
329
|
severity: z.ZodOptional<z.ZodEnum<{
|
|
330
330
|
error: "error";
|
|
331
|
-
debug: "debug";
|
|
332
331
|
info: "info";
|
|
333
332
|
warning: "warning";
|
|
333
|
+
debug: "debug";
|
|
334
334
|
fatal: "fatal";
|
|
335
335
|
}>>;
|
|
336
336
|
file: z.ZodOptional<z.ZodString>;
|
|
@@ -417,9 +417,9 @@ export declare const TypecheckErrorsSchema: z.ZodObject<{
|
|
|
417
417
|
rule: z.ZodOptional<z.ZodString>;
|
|
418
418
|
severity: z.ZodOptional<z.ZodEnum<{
|
|
419
419
|
error: "error";
|
|
420
|
-
debug: "debug";
|
|
421
420
|
info: "info";
|
|
422
421
|
warning: "warning";
|
|
422
|
+
debug: "debug";
|
|
423
423
|
fatal: "fatal";
|
|
424
424
|
}>>;
|
|
425
425
|
file: z.ZodOptional<z.ZodString>;
|
package/lib/team.d.ts
CHANGED
|
@@ -409,6 +409,46 @@ export interface DashTeamAgentBrief {
|
|
|
409
409
|
export interface DashTeamAgentsAnswer {
|
|
410
410
|
agents: DashTeamAgentBrief[];
|
|
411
411
|
}
|
|
412
|
+
/**
|
|
413
|
+
* An agent's model usage in one meaning whatever its client (issues/closed/foodguard-157). The clients write it
|
|
414
|
+
* differently — Codex a running `total_token_usage` whose input counts cached input too, Claude Code each reply's own
|
|
415
|
+
* `usage` (input, cache read and cache write apart), repeated on every line of the reply — so neither is added up as it
|
|
416
|
+
* is written. Input is every token the requests sent: `inputCumulative = cachedInput + uncachedInput + cacheWrite`.
|
|
417
|
+
* Each request re-sends its whole context, so input grows as requests × context size.
|
|
418
|
+
*/
|
|
419
|
+
export interface DashTeamAgentUsage {
|
|
420
|
+
/** Model requests: Codex `token_count` events that moved its total; Claude Code replies, once each (by `message.id`). */
|
|
421
|
+
requests: number;
|
|
422
|
+
inputCumulative: number;
|
|
423
|
+
/** Read from the provider's prompt cache — context re-sent (Codex `cached_input_tokens`, Claude `cache_read_input_tokens`). */
|
|
424
|
+
cachedInput: number;
|
|
425
|
+
/** Neither read from nor written to the cache (Claude `input_tokens`; Codex input − cached − cache write). */
|
|
426
|
+
uncachedInput: number;
|
|
427
|
+
/** Written to the cache (Claude `cache_creation_input_tokens`, Codex `cache_write_input_tokens`). */
|
|
428
|
+
cacheWrite: number;
|
|
429
|
+
output: number;
|
|
430
|
+
/** Of output, reasoning (Codex `reasoning_output_tokens`); Claude Code does not report it apart: 0. */
|
|
431
|
+
reasoning: number;
|
|
432
|
+
/** The largest context one request sent (Codex `last_token_usage.input_tokens`; Claude: a reply's whole input). */
|
|
433
|
+
maxContext: number;
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Codex's usage limit — one account (`plan_type`) and one reset — as the run's agents' `token_count` events read it
|
|
437
|
+
* (`rate_limits.primary`). The account's, not the run's: every Codex session on that account moves it.
|
|
438
|
+
*/
|
|
439
|
+
export interface DashTeamUsageLimit {
|
|
440
|
+
plan?: string;
|
|
441
|
+
/** When the limit resets (epoch ms) and its window in minutes (10080: weekly). */
|
|
442
|
+
resetsAt?: number;
|
|
443
|
+
windowMinutes?: number;
|
|
444
|
+
/** `used_percent` at the window's start (the last read before it, else its first) and at its end, and when each was read. */
|
|
445
|
+
from: number;
|
|
446
|
+
fromAt: number;
|
|
447
|
+
to: number;
|
|
448
|
+
toAt: number;
|
|
449
|
+
/** to − from: the points of the limit used in the window. */
|
|
450
|
+
used: number;
|
|
451
|
+
}
|
|
412
452
|
/** `GET /api/team/agent?id=` — one agent whole. */
|
|
413
453
|
export interface DashTeamAgentDetail extends DashTeamAgentBrief {
|
|
414
454
|
/** Not found: why, and where it looked. */
|
|
@@ -441,11 +481,19 @@ export interface DashTeamAgentDetail extends DashTeamAgentBrief {
|
|
|
441
481
|
/** Its client has OpenViking configured — absent: not known. */
|
|
442
482
|
configured?: boolean;
|
|
443
483
|
};
|
|
484
|
+
/**
|
|
485
|
+
* `input`: every input token its requests sent, cached included — Codex: its thread's `total_token_usage` now; Claude
|
|
486
|
+
* Code: each reply's input, cache reads and cache writes, summed once a reply (of what was read: `readFrom`). `total`:
|
|
487
|
+
* input + output. Before issues/closed/foodguard-157 a Claude Code agent's `input` was only its newest reply's context
|
|
488
|
+
* and its output was counted once a transcript LINE (about twice). `usage` says the same in more detail.
|
|
489
|
+
*/
|
|
444
490
|
tokens?: {
|
|
445
491
|
input: number;
|
|
446
492
|
output: number;
|
|
447
493
|
total: number;
|
|
448
494
|
};
|
|
495
|
+
/** Its model usage in one meaning for both clients, over what was read of its transcript (`readFrom`). */
|
|
496
|
+
usage?: DashTeamAgentUsage;
|
|
449
497
|
/**
|
|
450
498
|
* Agents it spawned (Codex subagents; Claude Code subagents), newest last — when (`at`), the task name it gave
|
|
451
499
|
* (`task`) and the start of what it told the agent (`message`), when the transcript says.
|
|
@@ -516,6 +564,8 @@ export interface DashTeamReviewAgent {
|
|
|
516
564
|
outcomes: Partial<Record<DashTeamOutcome, number>>;
|
|
517
565
|
/** Its own transcript, folded — `tail` left out (the zip has its lines in the window). */
|
|
518
566
|
transcript?: Omit<DashTeamAgentDetail, 'tail'>;
|
|
567
|
+
/** Its model usage in the run's window, from its own lines in it — `transcript.usage` is of its whole transcript. */
|
|
568
|
+
usage?: DashTeamAgentUsage;
|
|
519
569
|
}
|
|
520
570
|
/** One thing that happened, in time order. */
|
|
521
571
|
export interface DashTeamReviewEvent {
|
|
@@ -552,7 +602,7 @@ export interface DashTeamReviewDelegation {
|
|
|
552
602
|
}
|
|
553
603
|
/** What the run says about the process — a hint for the person reviewing it, never a verdict. */
|
|
554
604
|
export interface DashTeamReviewFlag {
|
|
555
|
-
kind: 'self-review' | 'manager-did-work' | 'same-model' | 'role-model-mismatch' | 'unjoined-agent' | 'long-wait' | 'silent-claim' | 'rework' | 'no-evidence' | 'recovery' | 'open-under-closed' | 'serial' | 'idle-agent' | DashTeamConductKind;
|
|
605
|
+
kind: 'self-review' | 'manager-did-work' | 'same-model' | 'role-model-mismatch' | 'unjoined-agent' | 'long-wait' | 'silent-claim' | 'rework' | 'no-evidence' | 'recovery' | 'open-under-closed' | 'serial' | 'idle-agent' | 'host-slept' | DashTeamConductKind;
|
|
556
606
|
severity: 'info' | 'warn';
|
|
557
607
|
text: string;
|
|
558
608
|
taskId?: string;
|
|
@@ -582,8 +632,29 @@ export interface DashTeamReviewMetrics {
|
|
|
582
632
|
handoffs: number;
|
|
583
633
|
messages: number;
|
|
584
634
|
notes: number;
|
|
585
|
-
/**
|
|
635
|
+
/**
|
|
636
|
+
* The window's input (cached included) and output, summed over the run's transcripts — `usage.all.inputCumulative +
|
|
637
|
+
* usage.all.output`. Before issues/closed/foodguard-157 it added Codex's whole-thread cumulative input to Claude
|
|
638
|
+
* Code's newest context, over whole transcripts: not comparable to this.
|
|
639
|
+
*/
|
|
586
640
|
tokens?: number;
|
|
641
|
+
/** The run's model usage in its window, one meaning for both clients, each transcript counted once. */
|
|
642
|
+
usage?: DashTeamReviewUsage;
|
|
643
|
+
}
|
|
644
|
+
/** A run's model usage: per client, and both clients' normalized fields summed — never one client's meaning added to another's. */
|
|
645
|
+
export interface DashTeamReviewUsage {
|
|
646
|
+
codex?: DashTeamAgentUsage & {
|
|
647
|
+
agents: number;
|
|
648
|
+
};
|
|
649
|
+
claude?: DashTeamAgentUsage & {
|
|
650
|
+
agents: number;
|
|
651
|
+
};
|
|
652
|
+
/** Both clients' fields summed (`maxContext`: the largest). */
|
|
653
|
+
all: DashTeamAgentUsage & {
|
|
654
|
+
agents: number;
|
|
655
|
+
};
|
|
656
|
+
/** Codex's usage limits the window moved, per account and reset: the points the person feels. */
|
|
657
|
+
limits?: DashTeamUsageLimit[];
|
|
587
658
|
}
|
|
588
659
|
/** `GET /api/team/review?id=` — a task's run whole: the task, the tasks under it, its agents, the flow, messages and delegations. */
|
|
589
660
|
export interface DashTeamReview {
|