@lensmcp/protocol-types 1.25.44 → 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 +6 -4
- package/lib/attributes.js +1 -1
- 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-design.d.ts +29 -5
- package/lib/team.d.ts +83 -2
- package/lib/team.js +1 -1
- package/lib/workspace-actions.d.ts +2 -0
- package/package.json +1 -1
package/lib/attributes.d.ts
CHANGED
|
@@ -101,6 +101,8 @@ export declare const LoopAttrsSchema: z.ZodObject<{
|
|
|
101
101
|
iterations: z.ZodNumber;
|
|
102
102
|
durationMs: z.ZodNumber;
|
|
103
103
|
dbCallsInsideLoop: z.ZodNumber;
|
|
104
|
+
dbBurst: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
stream: z.ZodOptional<z.ZodBoolean>;
|
|
104
106
|
redisCallsInsideLoop: z.ZodNumber;
|
|
105
107
|
awaitedOperationsInsideLoop: z.ZodNumber;
|
|
106
108
|
slowestIterations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -148,10 +150,10 @@ export declare const MemoryOwnerAttrsSchema: z.ZodObject<{
|
|
|
148
150
|
}, z.core.$strip>;
|
|
149
151
|
export type MemoryOwnerAttrs = z.infer<typeof MemoryOwnerAttrsSchema>;
|
|
150
152
|
export declare const MemoryMutationOperationSchema: z.ZodEnum<{
|
|
151
|
-
|
|
153
|
+
delete: "delete";
|
|
152
154
|
push: "push";
|
|
155
|
+
set: "set";
|
|
153
156
|
add: "add";
|
|
154
|
-
delete: "delete";
|
|
155
157
|
clear: "clear";
|
|
156
158
|
subscribe: "subscribe";
|
|
157
159
|
listen: "listen";
|
|
@@ -161,10 +163,10 @@ export type MemoryMutationOperation = z.infer<typeof MemoryMutationOperationSche
|
|
|
161
163
|
export declare const MemoryMutationAttrsSchema: z.ZodObject<{
|
|
162
164
|
ownerNodeId: z.ZodString;
|
|
163
165
|
operation: z.ZodEnum<{
|
|
164
|
-
|
|
166
|
+
delete: "delete";
|
|
165
167
|
push: "push";
|
|
168
|
+
set: "set";
|
|
166
169
|
add: "add";
|
|
167
|
-
delete: "delete";
|
|
168
170
|
clear: "clear";
|
|
169
171
|
subscribe: "subscribe";
|
|
170
172
|
listen: "listen";
|
package/lib/attributes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as e}from"zod";export const RenderPhaseSchema=e.enum(["mount","update"]),RenderWhySchema=e.discriminatedUnion("type",[e.object({type:e.literal("props"),changedKeys:e.array(e.string())}),e.object({type:e.literal("react-state"),hookIndex:e.number().int()}),e.object({type:e.literal("context"),contextName:e.string()}),e.object({type:e.literal("valtio-path"),path:e.string(),changedKeys:e.array(e.string())}),e.object({type:e.literal("parent-render"),parentRenderId:e.string()}),e.object({type:e.literal("hook-dep-changed"),hookInstanceId:e.string(),depsHashBefore:e.string(),depsHashAfter:e.string()}),e.object({type:e.literal("force"),reason:e.string()})]),RenderAttrsSchema=e.object({phase:RenderPhaseSchema,actualDurationMs:e.number().nonnegative(),baseDurationMs:e.number().nonnegative(),startTime:e.number().nonnegative(),commitTime:e.number().nonnegative(),why:e.array(RenderWhySchema)}),EffectRunAttrsSchema=e.object({hookInstanceId:e.string(),depsHash:e.string(),prevDepsHash:e.string().optional(),durationMs:e.number().nonnegative(),cleanupRan:e.boolean().optional()}),ValtioUpdateAttrsSchema=e.object({storeId:e.string(),path:e.string(),changedKeys:e.array(e.string()),beforeHash:e.string(),afterHash:e.string(),preview:e.unknown().optional()}),ServerRequestAttrsSchema=e.object({method:e.string(),route:e.string(),status:e.number().int().optional(),durationMs:e.number().nonnegative().optional(),traceparent:e.string().optional()}),LoopPatternSchema=e.enum(["N+1","sequential-await","growing-allocation"]),LoopAttrsSchema=e.object({iterations:e.number().int().nonnegative(),durationMs:e.number().nonnegative(),dbCallsInsideLoop:e.number().int().nonnegative(),redisCallsInsideLoop:e.number().int().nonnegative(),awaitedOperationsInsideLoop:e.number().int().nonnegative(),slowestIterations:e.array(e.object({index:e.number().int().nonnegative(),durationMs:e.number().nonnegative(),childNodeIds:e.array(e.string())})).optional(),patterns:e.array(LoopPatternSchema).optional()}),MemoryContainerKindSchema=e.enum(["Map","Set","Array","EventEmitter","Queue","RxSubject","Timer","Interval","Custom"]),MemoryOwnerAttrsSchema=e.object({ownerInstanceId:e.string(),containerKind:MemoryContainerKindSchema,fieldName:e.string(),itemCount:e.number().int().nonnegative(),estimatedBytes:e.number().nonnegative(),retainedBytes:e.number().nonnegative().optional(),growthSinceStart:e.number()}),MemoryMutationOperationSchema=e.enum(["set","push","add","delete","clear","subscribe","listen","schedule"]),MemoryMutationAttrsSchema=e.object({ownerNodeId:e.string(),operation:MemoryMutationOperationSchema,beforeCount:e.number().int().nonnegative(),afterCount:e.number().int().nonnegative(),estimatedDeltaBytes:e.number(),keyPreview:e.string().optional(),valueType:e.string().optional()}),RectSchema=e.object({x:e.number(),y:e.number(),width:e.number().nonnegative(),height:e.number().nonnegative()}),VisualFrameCauseSchema=e.enum(["page-load","route-change","user-action","react-commit","state-update","api-response","hmr-update","animation-tick"]),VisualChangeKindSchema=e.enum(["computed-style","layout","paint-order"]),VisualFrameAttrsSchema=e.object({causedBy:VisualFrameCauseSchema,viewport:RectSchema,layoutSnapshotId:e.string(),styleSnapshotId:e.string(),screenshotId:e.string().optional(),changedNodes:e.array(e.object({uid:e.string(),component:e.string().optional(),change:VisualChangeKindSchema,property:e.string().optional(),before:e.unknown().optional(),after:e.unknown().optional()}))}),VisualRuleTypeSchema=e.enum(["grid-spacing","alignment","overflow","text-clipping","color-contrast","token-usage","z-index","responsive","custom"]),VisualRuleTimingSchema=e.enum(["always","after-animation","stable-only","during-animation"]),VisualViolationSeveritySchema=e.enum(["info","warning","error"]),VisualViolationAttrsSchema=e.object({ruleId:e.string(),ruleType:VisualRuleTypeSchema,severity:VisualViolationSeveritySchema,timing:VisualRuleTimingSchema,element:e.object({uid:e.string(),component:e.string().optional(),rect:RectSchema}),expected:e.record(e.string(),e.unknown()),actual:e.record(e.string(),e.unknown()),evidence:e.object({computedStyle:e.string().optional(),screenshotCrop:e.string().optional(),trace:e.string().optional(),cssCause:e.object({selector:e.string(),file:e.string().optional(),line:e.number().int().optional(),declaration:e.string().optional()}).optional()})});
|
|
1
|
+
"use strict";import{z as e}from"zod";export const RenderPhaseSchema=e.enum(["mount","update"]),RenderWhySchema=e.discriminatedUnion("type",[e.object({type:e.literal("props"),changedKeys:e.array(e.string())}),e.object({type:e.literal("react-state"),hookIndex:e.number().int()}),e.object({type:e.literal("context"),contextName:e.string()}),e.object({type:e.literal("valtio-path"),path:e.string(),changedKeys:e.array(e.string())}),e.object({type:e.literal("parent-render"),parentRenderId:e.string()}),e.object({type:e.literal("hook-dep-changed"),hookInstanceId:e.string(),depsHashBefore:e.string(),depsHashAfter:e.string()}),e.object({type:e.literal("force"),reason:e.string()})]),RenderAttrsSchema=e.object({phase:RenderPhaseSchema,actualDurationMs:e.number().nonnegative(),baseDurationMs:e.number().nonnegative(),startTime:e.number().nonnegative(),commitTime:e.number().nonnegative(),why:e.array(RenderWhySchema)}),EffectRunAttrsSchema=e.object({hookInstanceId:e.string(),depsHash:e.string(),prevDepsHash:e.string().optional(),durationMs:e.number().nonnegative(),cleanupRan:e.boolean().optional()}),ValtioUpdateAttrsSchema=e.object({storeId:e.string(),path:e.string(),changedKeys:e.array(e.string()),beforeHash:e.string(),afterHash:e.string(),preview:e.unknown().optional()}),ServerRequestAttrsSchema=e.object({method:e.string(),route:e.string(),status:e.number().int().optional(),durationMs:e.number().nonnegative().optional(),traceparent:e.string().optional()}),LoopPatternSchema=e.enum(["N+1","sequential-await","growing-allocation"]),LoopAttrsSchema=e.object({iterations:e.number().int().nonnegative(),durationMs:e.number().nonnegative(),dbCallsInsideLoop:e.number().int().nonnegative(),dbBurst:e.number().int().nonnegative().optional(),stream:e.boolean().optional(),redisCallsInsideLoop:e.number().int().nonnegative(),awaitedOperationsInsideLoop:e.number().int().nonnegative(),slowestIterations:e.array(e.object({index:e.number().int().nonnegative(),durationMs:e.number().nonnegative(),childNodeIds:e.array(e.string())})).optional(),patterns:e.array(LoopPatternSchema).optional()}),MemoryContainerKindSchema=e.enum(["Map","Set","Array","EventEmitter","Queue","RxSubject","Timer","Interval","Custom"]),MemoryOwnerAttrsSchema=e.object({ownerInstanceId:e.string(),containerKind:MemoryContainerKindSchema,fieldName:e.string(),itemCount:e.number().int().nonnegative(),estimatedBytes:e.number().nonnegative(),retainedBytes:e.number().nonnegative().optional(),growthSinceStart:e.number()}),MemoryMutationOperationSchema=e.enum(["set","push","add","delete","clear","subscribe","listen","schedule"]),MemoryMutationAttrsSchema=e.object({ownerNodeId:e.string(),operation:MemoryMutationOperationSchema,beforeCount:e.number().int().nonnegative(),afterCount:e.number().int().nonnegative(),estimatedDeltaBytes:e.number(),keyPreview:e.string().optional(),valueType:e.string().optional()}),RectSchema=e.object({x:e.number(),y:e.number(),width:e.number().nonnegative(),height:e.number().nonnegative()}),VisualFrameCauseSchema=e.enum(["page-load","route-change","user-action","react-commit","state-update","api-response","hmr-update","animation-tick"]),VisualChangeKindSchema=e.enum(["computed-style","layout","paint-order"]),VisualFrameAttrsSchema=e.object({causedBy:VisualFrameCauseSchema,viewport:RectSchema,layoutSnapshotId:e.string(),styleSnapshotId:e.string(),screenshotId:e.string().optional(),changedNodes:e.array(e.object({uid:e.string(),component:e.string().optional(),change:VisualChangeKindSchema,property:e.string().optional(),before:e.unknown().optional(),after:e.unknown().optional()}))}),VisualRuleTypeSchema=e.enum(["grid-spacing","alignment","overflow","text-clipping","color-contrast","token-usage","z-index","responsive","custom"]),VisualRuleTimingSchema=e.enum(["always","after-animation","stable-only","during-animation"]),VisualViolationSeveritySchema=e.enum(["info","warning","error"]),VisualViolationAttrsSchema=e.object({ruleId:e.string(),ruleType:VisualRuleTypeSchema,severity:VisualViolationSeveritySchema,timing:VisualRuleTimingSchema,element:e.object({uid:e.string(),component:e.string().optional(),rect:RectSchema}),expected:e.record(e.string(),e.unknown()),actual:e.record(e.string(),e.unknown()),evidence:e.object({computedStyle:e.string().optional(),screenshotCrop:e.string().optional(),trace:e.string().optional(),cssCause:e.object({selector:e.string(),file:e.string().optional(),line:e.number().int().optional(),declaration:e.string().optional()}).optional()})});
|
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-design.d.ts
CHANGED
|
@@ -63,10 +63,14 @@ export interface TeamDesignRole {
|
|
|
63
63
|
/** Against the repository's current team: a new role, one that changes a role it has, or one it already has as is. */
|
|
64
64
|
status?: 'new' | 'changes' | 'same';
|
|
65
65
|
}
|
|
66
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* A role this project does not need — a default (accepted, it is written with `off: true`) or, `own`, one of the
|
|
68
|
+
* repository's own roles that a role of the design replaces (accepted, its file is deleted).
|
|
69
|
+
*/
|
|
67
70
|
export interface TeamDesignOff {
|
|
68
71
|
id: string;
|
|
69
72
|
why: string;
|
|
73
|
+
own?: true;
|
|
70
74
|
}
|
|
71
75
|
/**
|
|
72
76
|
* A hand-off, in the shape of `.lensmcp/team/flow.json`'s entries (libs/storage coordination/flow.ts). The work a chain
|
|
@@ -181,6 +185,17 @@ export interface DashTeamDesignRun {
|
|
|
181
185
|
files: string[];
|
|
182
186
|
goals: string[];
|
|
183
187
|
};
|
|
188
|
+
/**
|
|
189
|
+
* How its research went, from the run's record: the tool calls it made of the most it had, its ceiling, its turns,
|
|
190
|
+
* and why it ended — Claude answered on its own, the ceiling asked for the answer, or the tool calls ran out.
|
|
191
|
+
*/
|
|
192
|
+
research?: {
|
|
193
|
+
calls: number;
|
|
194
|
+
maxCalls: number;
|
|
195
|
+
maxUsd: number;
|
|
196
|
+
turns?: number;
|
|
197
|
+
ended: 'answered' | 'ceiling' | 'tool-calls';
|
|
198
|
+
};
|
|
184
199
|
}
|
|
185
200
|
/** What the person keeps of a design. Roles they edited carry their own rules. */
|
|
186
201
|
export interface DashTeamDesignAccept {
|
|
@@ -189,7 +204,7 @@ export interface DashTeamDesignAccept {
|
|
|
189
204
|
id: string;
|
|
190
205
|
rules?: string;
|
|
191
206
|
}>;
|
|
192
|
-
/**
|
|
207
|
+
/** Roles to take off: defaults are switched off (`off: true`), the repository's own are dropped (their files deleted). */
|
|
193
208
|
off: string[];
|
|
194
209
|
flow: boolean;
|
|
195
210
|
/** Write `.lensmcp/team/project.md`. */
|
|
@@ -207,13 +222,17 @@ export interface DashTeamDesignAccept {
|
|
|
207
222
|
* for a role whose flow step LensMCP keeps (tester, reviewer, qa, docs).
|
|
208
223
|
*/
|
|
209
224
|
export interface DashTeamDesignOverlap {
|
|
210
|
-
/** The
|
|
225
|
+
/** The role kept as it is — a default, or one of the repository's own (`own`). */
|
|
211
226
|
role: string;
|
|
212
227
|
/** The kinds it takes that the others take too. */
|
|
213
228
|
kinds: DashTeamKind[];
|
|
214
229
|
/** The roles of the design (or the repository) taking them on overlapping paths. */
|
|
215
230
|
with: string[];
|
|
216
231
|
canOff: boolean;
|
|
232
|
+
/** One of the repository's own roles: taken off by deleting its file (named in the accept's `off`), not by `off: true`. */
|
|
233
|
+
own?: true;
|
|
234
|
+
/** A default the accept names off whose off file would not be written (its file is there and not forced): it stays on. */
|
|
235
|
+
offKept?: true;
|
|
217
236
|
/** Its tasks still open, claimed or in recovery on the board — to re-route before it is switched off (at most 20). */
|
|
218
237
|
open: Array<{
|
|
219
238
|
id: string;
|
|
@@ -226,12 +245,15 @@ export interface DashTeamDesignOverlap {
|
|
|
226
245
|
/** In words, for the person. */
|
|
227
246
|
text: string;
|
|
228
247
|
}
|
|
229
|
-
/**
|
|
248
|
+
/**
|
|
249
|
+
* `POST /api/team/design/preview`: the files accepting would write, delete (a role of the repository's own it drops),
|
|
250
|
+
* what it would not and why, and the roles it would leave overlapping.
|
|
251
|
+
*/
|
|
230
252
|
export interface DashTeamDesignPreview {
|
|
231
253
|
files: Array<{
|
|
232
254
|
path: string;
|
|
233
255
|
exists: boolean;
|
|
234
|
-
action: 'write' | 'overwrite' | 'keep';
|
|
256
|
+
action: 'write' | 'overwrite' | 'keep' | 'delete';
|
|
235
257
|
same?: true;
|
|
236
258
|
}>;
|
|
237
259
|
problems: string[];
|
|
@@ -241,6 +263,8 @@ export interface DashTeamDesignPreview {
|
|
|
241
263
|
export interface DashTeamDesignAccepted {
|
|
242
264
|
written: string[];
|
|
243
265
|
kept: string[];
|
|
266
|
+
/** The files of the repository's own roles it dropped (deleted). */
|
|
267
|
+
removed?: string[];
|
|
244
268
|
goals: string[];
|
|
245
269
|
problems: string[];
|
|
246
270
|
/** Whether the agents on the team were told to agent_join again (a team file that changed). */
|
package/lib/team.d.ts
CHANGED
|
@@ -37,6 +37,11 @@ export interface DashTeamTask {
|
|
|
37
37
|
/** 0 (drop everything) … 3 (when there is time). */
|
|
38
38
|
priority: number;
|
|
39
39
|
parentId?: string;
|
|
40
|
+
/**
|
|
41
|
+
* On the board: the goal it is part of — the nearest goal above it, followed past the board's cut (planning/team/10).
|
|
42
|
+
* None on a goal itself, on a task under no goal, and from a LensMCP older than it.
|
|
43
|
+
*/
|
|
44
|
+
goalId?: string;
|
|
40
45
|
blockedBy?: string[];
|
|
41
46
|
/** Of `blockedBy`, the tasks not completed or cancelled yet — an open task with any is blocked. */
|
|
42
47
|
blockedOn?: string[];
|
|
@@ -404,6 +409,46 @@ export interface DashTeamAgentBrief {
|
|
|
404
409
|
export interface DashTeamAgentsAnswer {
|
|
405
410
|
agents: DashTeamAgentBrief[];
|
|
406
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
|
+
}
|
|
407
452
|
/** `GET /api/team/agent?id=` — one agent whole. */
|
|
408
453
|
export interface DashTeamAgentDetail extends DashTeamAgentBrief {
|
|
409
454
|
/** Not found: why, and where it looked. */
|
|
@@ -436,11 +481,19 @@ export interface DashTeamAgentDetail extends DashTeamAgentBrief {
|
|
|
436
481
|
/** Its client has OpenViking configured — absent: not known. */
|
|
437
482
|
configured?: boolean;
|
|
438
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
|
+
*/
|
|
439
490
|
tokens?: {
|
|
440
491
|
input: number;
|
|
441
492
|
output: number;
|
|
442
493
|
total: number;
|
|
443
494
|
};
|
|
495
|
+
/** Its model usage in one meaning for both clients, over what was read of its transcript (`readFrom`). */
|
|
496
|
+
usage?: DashTeamAgentUsage;
|
|
444
497
|
/**
|
|
445
498
|
* Agents it spawned (Codex subagents; Claude Code subagents), newest last — when (`at`), the task name it gave
|
|
446
499
|
* (`task`) and the start of what it told the agent (`message`), when the transcript says.
|
|
@@ -511,6 +564,8 @@ export interface DashTeamReviewAgent {
|
|
|
511
564
|
outcomes: Partial<Record<DashTeamOutcome, number>>;
|
|
512
565
|
/** Its own transcript, folded — `tail` left out (the zip has its lines in the window). */
|
|
513
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;
|
|
514
569
|
}
|
|
515
570
|
/** One thing that happened, in time order. */
|
|
516
571
|
export interface DashTeamReviewEvent {
|
|
@@ -547,7 +602,7 @@ export interface DashTeamReviewDelegation {
|
|
|
547
602
|
}
|
|
548
603
|
/** What the run says about the process — a hint for the person reviewing it, never a verdict. */
|
|
549
604
|
export interface DashTeamReviewFlag {
|
|
550
|
-
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;
|
|
551
606
|
severity: 'info' | 'warn';
|
|
552
607
|
text: string;
|
|
553
608
|
taskId?: string;
|
|
@@ -577,8 +632,29 @@ export interface DashTeamReviewMetrics {
|
|
|
577
632
|
handoffs: number;
|
|
578
633
|
messages: number;
|
|
579
634
|
notes: number;
|
|
580
|
-
/**
|
|
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
|
+
*/
|
|
581
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[];
|
|
582
658
|
}
|
|
583
659
|
/** `GET /api/team/review?id=` — a task's run whole: the task, the tasks under it, its agents, the flow, messages and delegations. */
|
|
584
660
|
export interface DashTeamReview {
|
|
@@ -622,6 +698,11 @@ export interface DashTeamReview {
|
|
|
622
698
|
}
|
|
623
699
|
/** The clients LensMCP launches headless: Codex (`codex exec`) and Claude Code (`claude -p`). */
|
|
624
700
|
export type DashTeamLaunchClient = 'codex' | 'claude';
|
|
701
|
+
/**
|
|
702
|
+
* The client a model is one of, by its id or a role's word for it — Claude Code's (`opus`, `claude-sonnet-4-5`), Codex's
|
|
703
|
+
* (`gpt-6.1-sol`, `o3`) — undefined for a word that names neither (`sol`). Neither client runs the other's models.
|
|
704
|
+
*/
|
|
705
|
+
export declare function modelClient(model: string | undefined): DashTeamLaunchClient | undefined;
|
|
625
706
|
/** An agent a manager launched (`agent_spawn`): what it runs, where, and how it is doing. */
|
|
626
707
|
export interface DashTeamLaunch {
|
|
627
708
|
id: string;
|
package/lib/team.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export const DASH_TEAM_KINDS=["goal","build","bug","review","test","qa","docs","marketing","research","chore"],DASH_TEAM_LINK_KINDS=["task","flow","error","suggestion","ai-call","review","page","route","commit","branch","worktree","file"];
|
|
1
|
+
"use strict";var o=Object.defineProperty;var r=(t,e)=>o(t,"name",{value:e,configurable:!0});var i=Object.defineProperty,a=r((t,e)=>i(t,"name",{value:e,configurable:!0}),"r");export const DASH_TEAM_KINDS=["goal","build","bug","review","test","qa","docs","marketing","research","chore"],DASH_TEAM_LINK_KINDS=["task","flow","error","suggestion","ai-call","review","page","route","commit","branch","worktree","file"];export function modelClient(t){const e=t?.trim()??"";if(/\b(claude|opus|sonnet|haiku|fable)\b/i.test(e))return"claude";if(/^(gpt|o\d+|codex)\b/i.test(e))return"codex"}r(modelClient,"modelClient"),a(modelClient,"modelClient");
|
|
@@ -6,6 +6,8 @@ export interface WorkspaceActionInput {
|
|
|
6
6
|
target?: string;
|
|
7
7
|
worktree?: string;
|
|
8
8
|
timeoutMs?: number;
|
|
9
|
+
/** The Node heap its processes get, MiB — none: 1536 for a test or e2e run, 4096 for the rest, or the person's NODE_OPTIONS heap. */
|
|
10
|
+
heapMb?: number;
|
|
9
11
|
files?: string[];
|
|
10
12
|
testName?: string;
|
|
11
13
|
hard?: boolean;
|