@brainpilot/protocol 0.0.14 → 0.1.0
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/domain.d.ts +642 -16
- package/dist/domain.d.ts.map +1 -1
- package/dist/domain.js +87 -0
- package/dist/domain.js.map +1 -1
- package/dist/http.d.ts +385 -4
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +17 -2
- package/dist/http.js.map +1 -1
- package/package.json +1 -1
package/dist/domain.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../src/domain.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,sBAAsB,CAAC;AAMjD,kFAAkF;AAClF,eAAO,MAAM,qBAAqB,6BAA2B,CAAC;AAC9D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,aAAa;;;;;IAKxB,mFAAmF;;;;;;;;;;;;;;EAEnF,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAMpD,gCAAgC;AAChC,eAAO,MAAM,qBAAqB,oDAAkD,CAAC;AACrF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;EAM5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY3B,CAAC;AACH,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAoCpE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAwC,CAAC;AACjF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAMhF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;EAM1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAI5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAM5D,eAAO,MAAM,cAAc,8BAA4B,CAAC;AACxD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
package/dist/domain.js
CHANGED
|
@@ -86,6 +86,93 @@ export const SessionTokenUsageSchema = z.object({
|
|
|
86
86
|
total: TokenUsageSchema,
|
|
87
87
|
byAgent: z.record(z.string(), TokenUsageSchema),
|
|
88
88
|
});
|
|
89
|
+
/* ------------------------------------------------------------------ *
|
|
90
|
+
* Per-run usage stats (tools + skills + token deltas)
|
|
91
|
+
*
|
|
92
|
+
* Purpose: **behavioural research** — answer "which tools/skills did each
|
|
93
|
+
* agent use, per run, over the life of this session". Sibling to
|
|
94
|
+
* SessionTokenUsage above; kept in its own persisted file (`stats.json`) so
|
|
95
|
+
* we can write on every RUN_FINISHED without churning `usage.json`.
|
|
96
|
+
*
|
|
97
|
+
* Coverage (see `docs/superpowers/specs/…usage-stats-design.md`):
|
|
98
|
+
* - Tools: ~99% (every Pi tool execution goes through one core-loop path
|
|
99
|
+
* that emits `tool_execution_start`/`end`). Only known gap is hard-abort
|
|
100
|
+
* mid-preparation, which is rare.
|
|
101
|
+
* - Skills: only the `skill_search` custom tool is counted. `/skill:<name>`
|
|
102
|
+
* slash-command expansions and implicit `<available_skills>` loads are
|
|
103
|
+
* not observable from the current event surface and are OUT OF SCOPE
|
|
104
|
+
* (upgradable later via a Pi extension without touching this schema).
|
|
105
|
+
* ------------------------------------------------------------------ */
|
|
106
|
+
/**
|
|
107
|
+
* Per-agent per-tool invocation counter. Key is the tool name (`"read"`,
|
|
108
|
+
* `"bash"`, `"skill_search"`, external-MCP-bridged names, …). Value is the
|
|
109
|
+
* number of times the runtime observed a `tool_execution_start` for that
|
|
110
|
+
* tool. Aborted mid-run tools still count — we count *invocations*, not
|
|
111
|
+
* *successful completions*; see `errors` on `AgentStatsSchema` for the
|
|
112
|
+
* failure counter.
|
|
113
|
+
*/
|
|
114
|
+
export const ToolCallCountsSchema = z.record(z.string(), z.number().int().nonnegative());
|
|
115
|
+
/**
|
|
116
|
+
* Per-skill invocation counter. Split by the three `skill_search` sub-modes
|
|
117
|
+
* (see packages/runtime/src/tools/skill-search.ts):
|
|
118
|
+
* - `queries` — `mode="query"` with `keywords` (exploration; no body read)
|
|
119
|
+
* - `loads` — `mode="query"` with `skill_name` (returns full SKILL.md)
|
|
120
|
+
* - `browses` — `mode="browse"` (directory/file browse under a skill)
|
|
121
|
+
*
|
|
122
|
+
* A special key `"__search__"` collects `queries` where the args carried no
|
|
123
|
+
* `skill_name` (pure keyword search — the agent looked around but did not
|
|
124
|
+
* commit to a named skill). Args that fail to parse are also charged to
|
|
125
|
+
* `__search__.queries` so counters are never dropped silently.
|
|
126
|
+
*/
|
|
127
|
+
export const SkillCounterSchema = z.object({
|
|
128
|
+
queries: z.number().int().nonnegative(),
|
|
129
|
+
loads: z.number().int().nonnegative(),
|
|
130
|
+
browses: z.number().int().nonnegative(),
|
|
131
|
+
});
|
|
132
|
+
export const SkillCountsSchema = z.record(z.string(), SkillCounterSchema);
|
|
133
|
+
/**
|
|
134
|
+
* All countable stats for one agent, in one accounting unit (session
|
|
135
|
+
* cumulative, or a single RUN_STATS delta).
|
|
136
|
+
*
|
|
137
|
+
* `errors` counts `tool_execution_end.isError === true` per tool name; it is
|
|
138
|
+
* additive to `tools` — `tools[name]` is "attempted N times", `errors[name]`
|
|
139
|
+
* is "of those, M failed". We do not subtract.
|
|
140
|
+
*/
|
|
141
|
+
export const AgentStatsSchema = z.object({
|
|
142
|
+
tokens: TokenUsageSchema,
|
|
143
|
+
tools: ToolCallCountsSchema,
|
|
144
|
+
skills: SkillCountsSchema,
|
|
145
|
+
errors: ToolCallCountsSchema,
|
|
146
|
+
});
|
|
147
|
+
/** Status stamped onto a `RunStats` entry when it is finalized. */
|
|
148
|
+
export const RunStatsStatusSchema = z.enum(["ok", "error", "aborted"]);
|
|
149
|
+
/**
|
|
150
|
+
* One completed run's contribution, computed as `cumulative_after -
|
|
151
|
+
* cumulative_before`. Appended to `SessionStats.byRun` when the run reaches
|
|
152
|
+
* a terminal event (`RUN_FINISHED` / `RUN_ERROR`) or is aborted.
|
|
153
|
+
*/
|
|
154
|
+
export const RunStatsSchema = z.object({
|
|
155
|
+
runId: z.string(),
|
|
156
|
+
agentName: z.string(),
|
|
157
|
+
startedAt: z.number().int().nonnegative(),
|
|
158
|
+
finishedAt: z.number().int().nonnegative(),
|
|
159
|
+
status: RunStatsStatusSchema,
|
|
160
|
+
delta: AgentStatsSchema,
|
|
161
|
+
});
|
|
162
|
+
/**
|
|
163
|
+
* Full stats snapshot for one session:
|
|
164
|
+
* - `total` — everything summed across agents and runs.
|
|
165
|
+
* - `byAgent` — per-agent cumulative (mirrors `SessionTokenUsage.byAgent`).
|
|
166
|
+
* - `byRun` — time-ordered per-run deltas. Append-only; never truncated
|
|
167
|
+
* (`events.jsonl` is the ultimate SSOT and is uncapped, so
|
|
168
|
+
* this stays bounded by the same envelope).
|
|
169
|
+
*/
|
|
170
|
+
export const SessionStatsSchema = z.object({
|
|
171
|
+
sessionId: z.string(),
|
|
172
|
+
total: AgentStatsSchema,
|
|
173
|
+
byAgent: z.record(z.string(), AgentStatsSchema),
|
|
174
|
+
byRun: z.array(RunStatsSchema),
|
|
175
|
+
});
|
|
89
176
|
/**
|
|
90
177
|
* Authoritative live session state. Identical shape across SSE first frame
|
|
91
178
|
* (`CUSTOM:session_state`), push events, and `GET /sessions/:id/state`.
|
package/dist/domain.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain.js","sourceRoot":"","sources":["../src/domain.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;wEAEwE;AAExE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAEjD;;wEAEwE;AAExE,kFAAkF;AAClF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAG9D,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,mFAAmF;IACnF,eAAe,EAAE,qBAAqB,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAGH;;wEAEwE;AAExE,gCAAgC;AAChC,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,I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AC,MAAM,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC3C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAGH;;wEAEwE;AAExE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC"}
|
package/dist/http.d.ts
CHANGED
|
@@ -208,11 +208,11 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
|
|
|
208
208
|
active: z.ZodBoolean;
|
|
209
209
|
runId: z.ZodNullable<z.ZodString>;
|
|
210
210
|
}, "strip", z.ZodTypeAny, {
|
|
211
|
-
active: boolean;
|
|
212
211
|
runId: string | null;
|
|
213
|
-
}, {
|
|
214
212
|
active: boolean;
|
|
213
|
+
}, {
|
|
215
214
|
runId: string | null;
|
|
215
|
+
active: boolean;
|
|
216
216
|
}>;
|
|
217
217
|
agents: z.ZodArray<z.ZodObject<{
|
|
218
218
|
name: z.ZodString;
|
|
@@ -307,8 +307,8 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
|
|
|
307
307
|
}>>;
|
|
308
308
|
}, "strip", z.ZodTypeAny, {
|
|
309
309
|
runState: {
|
|
310
|
-
active: boolean;
|
|
311
310
|
runId: string | null;
|
|
311
|
+
active: boolean;
|
|
312
312
|
};
|
|
313
313
|
agents: {
|
|
314
314
|
status: string;
|
|
@@ -337,8 +337,8 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
|
|
|
337
337
|
} | undefined;
|
|
338
338
|
}, {
|
|
339
339
|
runState: {
|
|
340
|
-
active: boolean;
|
|
341
340
|
runId: string | null;
|
|
341
|
+
active: boolean;
|
|
342
342
|
};
|
|
343
343
|
agents: {
|
|
344
344
|
status: string;
|
|
@@ -367,6 +367,378 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
|
|
|
367
367
|
} | undefined;
|
|
368
368
|
}>;
|
|
369
369
|
export type GetSessionStateResponse = z.infer<typeof GetSessionStateResponseSchema>;
|
|
370
|
+
/**
|
|
371
|
+
* Full stats snapshot: tokens (mirrors what `session_state` already ships)
|
|
372
|
+
* plus per-agent tool/skill/error counters and a per-run delta timeline.
|
|
373
|
+
* See `SessionStatsSchema` in domain.ts for the shape.
|
|
374
|
+
*/
|
|
375
|
+
export declare const GetSessionStatsResponseSchema: z.ZodObject<{
|
|
376
|
+
sessionId: z.ZodString;
|
|
377
|
+
total: z.ZodObject<{
|
|
378
|
+
tokens: z.ZodObject<{
|
|
379
|
+
input: z.ZodNumber;
|
|
380
|
+
output: z.ZodNumber;
|
|
381
|
+
cacheRead: z.ZodNumber;
|
|
382
|
+
cacheWrite: z.ZodNumber;
|
|
383
|
+
total: z.ZodNumber;
|
|
384
|
+
}, "strip", z.ZodTypeAny, {
|
|
385
|
+
input: number;
|
|
386
|
+
output: number;
|
|
387
|
+
cacheRead: number;
|
|
388
|
+
cacheWrite: number;
|
|
389
|
+
total: number;
|
|
390
|
+
}, {
|
|
391
|
+
input: number;
|
|
392
|
+
output: number;
|
|
393
|
+
cacheRead: number;
|
|
394
|
+
cacheWrite: number;
|
|
395
|
+
total: number;
|
|
396
|
+
}>;
|
|
397
|
+
tools: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
398
|
+
skills: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
399
|
+
queries: z.ZodNumber;
|
|
400
|
+
loads: z.ZodNumber;
|
|
401
|
+
browses: z.ZodNumber;
|
|
402
|
+
}, "strip", z.ZodTypeAny, {
|
|
403
|
+
queries: number;
|
|
404
|
+
loads: number;
|
|
405
|
+
browses: number;
|
|
406
|
+
}, {
|
|
407
|
+
queries: number;
|
|
408
|
+
loads: number;
|
|
409
|
+
browses: number;
|
|
410
|
+
}>>;
|
|
411
|
+
errors: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
412
|
+
}, "strip", z.ZodTypeAny, {
|
|
413
|
+
tokens: {
|
|
414
|
+
input: number;
|
|
415
|
+
output: number;
|
|
416
|
+
cacheRead: number;
|
|
417
|
+
cacheWrite: number;
|
|
418
|
+
total: number;
|
|
419
|
+
};
|
|
420
|
+
tools: Record<string, number>;
|
|
421
|
+
skills: Record<string, {
|
|
422
|
+
queries: number;
|
|
423
|
+
loads: number;
|
|
424
|
+
browses: number;
|
|
425
|
+
}>;
|
|
426
|
+
errors: Record<string, number>;
|
|
427
|
+
}, {
|
|
428
|
+
tokens: {
|
|
429
|
+
input: number;
|
|
430
|
+
output: number;
|
|
431
|
+
cacheRead: number;
|
|
432
|
+
cacheWrite: number;
|
|
433
|
+
total: number;
|
|
434
|
+
};
|
|
435
|
+
tools: Record<string, number>;
|
|
436
|
+
skills: Record<string, {
|
|
437
|
+
queries: number;
|
|
438
|
+
loads: number;
|
|
439
|
+
browses: number;
|
|
440
|
+
}>;
|
|
441
|
+
errors: Record<string, number>;
|
|
442
|
+
}>;
|
|
443
|
+
byAgent: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
444
|
+
tokens: z.ZodObject<{
|
|
445
|
+
input: z.ZodNumber;
|
|
446
|
+
output: z.ZodNumber;
|
|
447
|
+
cacheRead: z.ZodNumber;
|
|
448
|
+
cacheWrite: z.ZodNumber;
|
|
449
|
+
total: z.ZodNumber;
|
|
450
|
+
}, "strip", z.ZodTypeAny, {
|
|
451
|
+
input: number;
|
|
452
|
+
output: number;
|
|
453
|
+
cacheRead: number;
|
|
454
|
+
cacheWrite: number;
|
|
455
|
+
total: number;
|
|
456
|
+
}, {
|
|
457
|
+
input: number;
|
|
458
|
+
output: number;
|
|
459
|
+
cacheRead: number;
|
|
460
|
+
cacheWrite: number;
|
|
461
|
+
total: number;
|
|
462
|
+
}>;
|
|
463
|
+
tools: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
464
|
+
skills: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
465
|
+
queries: z.ZodNumber;
|
|
466
|
+
loads: z.ZodNumber;
|
|
467
|
+
browses: z.ZodNumber;
|
|
468
|
+
}, "strip", z.ZodTypeAny, {
|
|
469
|
+
queries: number;
|
|
470
|
+
loads: number;
|
|
471
|
+
browses: number;
|
|
472
|
+
}, {
|
|
473
|
+
queries: number;
|
|
474
|
+
loads: number;
|
|
475
|
+
browses: number;
|
|
476
|
+
}>>;
|
|
477
|
+
errors: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
478
|
+
}, "strip", z.ZodTypeAny, {
|
|
479
|
+
tokens: {
|
|
480
|
+
input: number;
|
|
481
|
+
output: number;
|
|
482
|
+
cacheRead: number;
|
|
483
|
+
cacheWrite: number;
|
|
484
|
+
total: number;
|
|
485
|
+
};
|
|
486
|
+
tools: Record<string, number>;
|
|
487
|
+
skills: Record<string, {
|
|
488
|
+
queries: number;
|
|
489
|
+
loads: number;
|
|
490
|
+
browses: number;
|
|
491
|
+
}>;
|
|
492
|
+
errors: Record<string, number>;
|
|
493
|
+
}, {
|
|
494
|
+
tokens: {
|
|
495
|
+
input: number;
|
|
496
|
+
output: number;
|
|
497
|
+
cacheRead: number;
|
|
498
|
+
cacheWrite: number;
|
|
499
|
+
total: number;
|
|
500
|
+
};
|
|
501
|
+
tools: Record<string, number>;
|
|
502
|
+
skills: Record<string, {
|
|
503
|
+
queries: number;
|
|
504
|
+
loads: number;
|
|
505
|
+
browses: number;
|
|
506
|
+
}>;
|
|
507
|
+
errors: Record<string, number>;
|
|
508
|
+
}>>;
|
|
509
|
+
byRun: z.ZodArray<z.ZodObject<{
|
|
510
|
+
runId: z.ZodString;
|
|
511
|
+
agentName: z.ZodString;
|
|
512
|
+
startedAt: z.ZodNumber;
|
|
513
|
+
finishedAt: z.ZodNumber;
|
|
514
|
+
status: z.ZodEnum<["ok", "error", "aborted"]>;
|
|
515
|
+
delta: z.ZodObject<{
|
|
516
|
+
tokens: z.ZodObject<{
|
|
517
|
+
input: z.ZodNumber;
|
|
518
|
+
output: z.ZodNumber;
|
|
519
|
+
cacheRead: z.ZodNumber;
|
|
520
|
+
cacheWrite: z.ZodNumber;
|
|
521
|
+
total: z.ZodNumber;
|
|
522
|
+
}, "strip", z.ZodTypeAny, {
|
|
523
|
+
input: number;
|
|
524
|
+
output: number;
|
|
525
|
+
cacheRead: number;
|
|
526
|
+
cacheWrite: number;
|
|
527
|
+
total: number;
|
|
528
|
+
}, {
|
|
529
|
+
input: number;
|
|
530
|
+
output: number;
|
|
531
|
+
cacheRead: number;
|
|
532
|
+
cacheWrite: number;
|
|
533
|
+
total: number;
|
|
534
|
+
}>;
|
|
535
|
+
tools: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
536
|
+
skills: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
537
|
+
queries: z.ZodNumber;
|
|
538
|
+
loads: z.ZodNumber;
|
|
539
|
+
browses: z.ZodNumber;
|
|
540
|
+
}, "strip", z.ZodTypeAny, {
|
|
541
|
+
queries: number;
|
|
542
|
+
loads: number;
|
|
543
|
+
browses: number;
|
|
544
|
+
}, {
|
|
545
|
+
queries: number;
|
|
546
|
+
loads: number;
|
|
547
|
+
browses: number;
|
|
548
|
+
}>>;
|
|
549
|
+
errors: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
550
|
+
}, "strip", z.ZodTypeAny, {
|
|
551
|
+
tokens: {
|
|
552
|
+
input: number;
|
|
553
|
+
output: number;
|
|
554
|
+
cacheRead: number;
|
|
555
|
+
cacheWrite: number;
|
|
556
|
+
total: number;
|
|
557
|
+
};
|
|
558
|
+
tools: Record<string, number>;
|
|
559
|
+
skills: Record<string, {
|
|
560
|
+
queries: number;
|
|
561
|
+
loads: number;
|
|
562
|
+
browses: number;
|
|
563
|
+
}>;
|
|
564
|
+
errors: Record<string, number>;
|
|
565
|
+
}, {
|
|
566
|
+
tokens: {
|
|
567
|
+
input: number;
|
|
568
|
+
output: number;
|
|
569
|
+
cacheRead: number;
|
|
570
|
+
cacheWrite: number;
|
|
571
|
+
total: number;
|
|
572
|
+
};
|
|
573
|
+
tools: Record<string, number>;
|
|
574
|
+
skills: Record<string, {
|
|
575
|
+
queries: number;
|
|
576
|
+
loads: number;
|
|
577
|
+
browses: number;
|
|
578
|
+
}>;
|
|
579
|
+
errors: Record<string, number>;
|
|
580
|
+
}>;
|
|
581
|
+
}, "strip", z.ZodTypeAny, {
|
|
582
|
+
status: "aborted" | "error" | "ok";
|
|
583
|
+
runId: string;
|
|
584
|
+
agentName: string;
|
|
585
|
+
startedAt: number;
|
|
586
|
+
finishedAt: number;
|
|
587
|
+
delta: {
|
|
588
|
+
tokens: {
|
|
589
|
+
input: number;
|
|
590
|
+
output: number;
|
|
591
|
+
cacheRead: number;
|
|
592
|
+
cacheWrite: number;
|
|
593
|
+
total: number;
|
|
594
|
+
};
|
|
595
|
+
tools: Record<string, number>;
|
|
596
|
+
skills: Record<string, {
|
|
597
|
+
queries: number;
|
|
598
|
+
loads: number;
|
|
599
|
+
browses: number;
|
|
600
|
+
}>;
|
|
601
|
+
errors: Record<string, number>;
|
|
602
|
+
};
|
|
603
|
+
}, {
|
|
604
|
+
status: "aborted" | "error" | "ok";
|
|
605
|
+
runId: string;
|
|
606
|
+
agentName: string;
|
|
607
|
+
startedAt: number;
|
|
608
|
+
finishedAt: number;
|
|
609
|
+
delta: {
|
|
610
|
+
tokens: {
|
|
611
|
+
input: number;
|
|
612
|
+
output: number;
|
|
613
|
+
cacheRead: number;
|
|
614
|
+
cacheWrite: number;
|
|
615
|
+
total: number;
|
|
616
|
+
};
|
|
617
|
+
tools: Record<string, number>;
|
|
618
|
+
skills: Record<string, {
|
|
619
|
+
queries: number;
|
|
620
|
+
loads: number;
|
|
621
|
+
browses: number;
|
|
622
|
+
}>;
|
|
623
|
+
errors: Record<string, number>;
|
|
624
|
+
};
|
|
625
|
+
}>, "many">;
|
|
626
|
+
}, "strip", z.ZodTypeAny, {
|
|
627
|
+
total: {
|
|
628
|
+
tokens: {
|
|
629
|
+
input: number;
|
|
630
|
+
output: number;
|
|
631
|
+
cacheRead: number;
|
|
632
|
+
cacheWrite: number;
|
|
633
|
+
total: number;
|
|
634
|
+
};
|
|
635
|
+
tools: Record<string, number>;
|
|
636
|
+
skills: Record<string, {
|
|
637
|
+
queries: number;
|
|
638
|
+
loads: number;
|
|
639
|
+
browses: number;
|
|
640
|
+
}>;
|
|
641
|
+
errors: Record<string, number>;
|
|
642
|
+
};
|
|
643
|
+
byAgent: Record<string, {
|
|
644
|
+
tokens: {
|
|
645
|
+
input: number;
|
|
646
|
+
output: number;
|
|
647
|
+
cacheRead: number;
|
|
648
|
+
cacheWrite: number;
|
|
649
|
+
total: number;
|
|
650
|
+
};
|
|
651
|
+
tools: Record<string, number>;
|
|
652
|
+
skills: Record<string, {
|
|
653
|
+
queries: number;
|
|
654
|
+
loads: number;
|
|
655
|
+
browses: number;
|
|
656
|
+
}>;
|
|
657
|
+
errors: Record<string, number>;
|
|
658
|
+
}>;
|
|
659
|
+
sessionId: string;
|
|
660
|
+
byRun: {
|
|
661
|
+
status: "aborted" | "error" | "ok";
|
|
662
|
+
runId: string;
|
|
663
|
+
agentName: string;
|
|
664
|
+
startedAt: number;
|
|
665
|
+
finishedAt: number;
|
|
666
|
+
delta: {
|
|
667
|
+
tokens: {
|
|
668
|
+
input: number;
|
|
669
|
+
output: number;
|
|
670
|
+
cacheRead: number;
|
|
671
|
+
cacheWrite: number;
|
|
672
|
+
total: number;
|
|
673
|
+
};
|
|
674
|
+
tools: Record<string, number>;
|
|
675
|
+
skills: Record<string, {
|
|
676
|
+
queries: number;
|
|
677
|
+
loads: number;
|
|
678
|
+
browses: number;
|
|
679
|
+
}>;
|
|
680
|
+
errors: Record<string, number>;
|
|
681
|
+
};
|
|
682
|
+
}[];
|
|
683
|
+
}, {
|
|
684
|
+
total: {
|
|
685
|
+
tokens: {
|
|
686
|
+
input: number;
|
|
687
|
+
output: number;
|
|
688
|
+
cacheRead: number;
|
|
689
|
+
cacheWrite: number;
|
|
690
|
+
total: number;
|
|
691
|
+
};
|
|
692
|
+
tools: Record<string, number>;
|
|
693
|
+
skills: Record<string, {
|
|
694
|
+
queries: number;
|
|
695
|
+
loads: number;
|
|
696
|
+
browses: number;
|
|
697
|
+
}>;
|
|
698
|
+
errors: Record<string, number>;
|
|
699
|
+
};
|
|
700
|
+
byAgent: Record<string, {
|
|
701
|
+
tokens: {
|
|
702
|
+
input: number;
|
|
703
|
+
output: number;
|
|
704
|
+
cacheRead: number;
|
|
705
|
+
cacheWrite: number;
|
|
706
|
+
total: number;
|
|
707
|
+
};
|
|
708
|
+
tools: Record<string, number>;
|
|
709
|
+
skills: Record<string, {
|
|
710
|
+
queries: number;
|
|
711
|
+
loads: number;
|
|
712
|
+
browses: number;
|
|
713
|
+
}>;
|
|
714
|
+
errors: Record<string, number>;
|
|
715
|
+
}>;
|
|
716
|
+
sessionId: string;
|
|
717
|
+
byRun: {
|
|
718
|
+
status: "aborted" | "error" | "ok";
|
|
719
|
+
runId: string;
|
|
720
|
+
agentName: string;
|
|
721
|
+
startedAt: number;
|
|
722
|
+
finishedAt: number;
|
|
723
|
+
delta: {
|
|
724
|
+
tokens: {
|
|
725
|
+
input: number;
|
|
726
|
+
output: number;
|
|
727
|
+
cacheRead: number;
|
|
728
|
+
cacheWrite: number;
|
|
729
|
+
total: number;
|
|
730
|
+
};
|
|
731
|
+
tools: Record<string, number>;
|
|
732
|
+
skills: Record<string, {
|
|
733
|
+
queries: number;
|
|
734
|
+
loads: number;
|
|
735
|
+
browses: number;
|
|
736
|
+
}>;
|
|
737
|
+
errors: Record<string, number>;
|
|
738
|
+
};
|
|
739
|
+
}[];
|
|
740
|
+
}>;
|
|
741
|
+
export type GetSessionStatsResponse = z.infer<typeof GetSessionStatsResponseSchema>;
|
|
370
742
|
/** A normal user message injected into the session. */
|
|
371
743
|
export declare const SendMessageContentSchema: z.ZodObject<{
|
|
372
744
|
content: z.ZodString;
|
|
@@ -1461,6 +1833,15 @@ export declare const RUNTIME_ROUTES: {
|
|
|
1461
1833
|
readonly method: "GET";
|
|
1462
1834
|
readonly path: "/sessions/:id/state";
|
|
1463
1835
|
};
|
|
1836
|
+
/**
|
|
1837
|
+
* Per-run + per-session usage stats (tokens + tool/skill/error counters).
|
|
1838
|
+
* Payload: `SessionStatsSchema`. Persisted alongside the session at
|
|
1839
|
+
* `<dataRoot>/.bp/<sid>/stats.json`.
|
|
1840
|
+
*/
|
|
1841
|
+
readonly getSessionStats: {
|
|
1842
|
+
readonly method: "GET";
|
|
1843
|
+
readonly path: "/sessions/:id/stats";
|
|
1844
|
+
};
|
|
1464
1845
|
/** Graph of Trace (reasoning DAG) for a session. */
|
|
1465
1846
|
readonly getTrace: {
|
|
1466
1847
|
readonly method: "GET";
|
package/dist/http.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE3D,MAAM,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;;;;;;;;;;IAI/E;;;;OAIG;;;;;IAEH,oDAAoD;;;;;;;;;IAGpD,4CAA4C;;;;;IAE5C,8EAA8E;;;;;IAE9E;;;;;;OAMG;;;;;;;;;;;;;;;;;IAKH;;;;;;;;;OASG;;;;;;;;;;;;;;;;;IAKH;;;;OAIG;;;;;CAEwC,CAAC;AAE9C,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,cAAc,CAAC"}
|
package/dist/http.js
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
*/
|
|
26
26
|
import { z } from "zod";
|
|
27
27
|
import { AgUiEventSchema } from "./events.js";
|
|
28
|
-
import { AgentStatusSchema, SessionSchema, SessionStateSnapshotSchema } from "./domain.js";
|
|
28
|
+
import { AgentStatusSchema, SessionSchema, SessionStateSnapshotSchema, SessionStatsSchema, } from "./domain.js";
|
|
29
29
|
/* ------------------------------------------------------------------ *
|
|
30
30
|
* GET /health
|
|
31
31
|
* ------------------------------------------------------------------ */
|
|
@@ -84,6 +84,15 @@ export const DeleteSessionResponseSchema = z.object({
|
|
|
84
84
|
* GET /sessions/:id/state (authoritative snapshot)
|
|
85
85
|
* ------------------------------------------------------------------ */
|
|
86
86
|
export const GetSessionStateResponseSchema = SessionStateSnapshotSchema;
|
|
87
|
+
/* ------------------------------------------------------------------ *
|
|
88
|
+
* GET /sessions/:id/stats (per-run + per-session usage stats)
|
|
89
|
+
* ------------------------------------------------------------------ */
|
|
90
|
+
/**
|
|
91
|
+
* Full stats snapshot: tokens (mirrors what `session_state` already ships)
|
|
92
|
+
* plus per-agent tool/skill/error counters and a per-run delta timeline.
|
|
93
|
+
* See `SessionStatsSchema` in domain.ts for the shape.
|
|
94
|
+
*/
|
|
95
|
+
export const GetSessionStatsResponseSchema = SessionStatsSchema;
|
|
87
96
|
/* ------------------------------------------------------------------ *
|
|
88
97
|
* POST /sessions/:id/messages (inject user message)
|
|
89
98
|
* ------------------------------------------------------------------ */
|
|
@@ -156,7 +165,7 @@ export const InterruptResponseSchema = z.object({
|
|
|
156
165
|
* disk, symmetric with the `readRawFile` download. Preferred for
|
|
157
166
|
* large uploads.
|
|
158
167
|
* Both return `WriteFileResponseSchema` and enforce the same traversal
|
|
159
|
-
* guard + size cap (`BP_UPLOAD_MAX_BYTES`, default
|
|
168
|
+
* guard + size cap (`BP_UPLOAD_MAX_BYTES`, default 1 GiB). */
|
|
160
169
|
/** #47: base64 JSON upload body. Content is base64 (binary-safe over the JSON byte chain). */
|
|
161
170
|
export const WriteFileRequestSchema = z.object({
|
|
162
171
|
/** Workspace-relative path (a leading `/workspace` prefix is tolerated). */
|
|
@@ -195,6 +204,12 @@ export const RUNTIME_ROUTES = {
|
|
|
195
204
|
updateSession: { method: "PUT", path: "/sessions/:id" },
|
|
196
205
|
deleteSession: { method: "DELETE", path: "/sessions/:id" },
|
|
197
206
|
getSessionState: { method: "GET", path: "/sessions/:id/state" },
|
|
207
|
+
/**
|
|
208
|
+
* Per-run + per-session usage stats (tokens + tool/skill/error counters).
|
|
209
|
+
* Payload: `SessionStatsSchema`. Persisted alongside the session at
|
|
210
|
+
* `<dataRoot>/.bp/<sid>/stats.json`.
|
|
211
|
+
*/
|
|
212
|
+
getSessionStats: { method: "GET", path: "/sessions/:id/stats" },
|
|
198
213
|
/** Graph of Trace (reasoning DAG) for a session. */
|
|
199
214
|
getTrace: { method: "GET", path: "/sessions/:id/trace" },
|
|
200
215
|
sendMessage: { method: "POST", path: "/sessions/:id/messages" },
|