@bli-cockpit/mcp 0.1.58 → 0.1.59
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/usage-tools.js +8 -1
- package/package.json +1 -1
package/dist/usage-tools.js
CHANGED
|
@@ -25,7 +25,14 @@ export function registerUsageTools(server, deps) {
|
|
|
25
25
|
const waiting = coverage?.sessions_awaiting_count ?? 0;
|
|
26
26
|
const automatedExcluded = coverage?.sessions_automated_excluded ?? 0;
|
|
27
27
|
const why = waiting > 0 || automatedExcluded > 0 ? ` ${waiting} waiting on a token count, ${automatedExcluded} automated and excluded.` : "";
|
|
28
|
-
|
|
28
|
+
// BLI-4554: the same sentence the page and the CLI print, carrying the
|
|
29
|
+
// price sheet's version and date. An agent reading only the text half of
|
|
30
|
+
// this answer must not be able to quote a dollar figure without the
|
|
31
|
+
// provenance that comes with it.
|
|
32
|
+
const priceLabel = typeof response.body.api_list_price_equivalent_label === "string"
|
|
33
|
+
? ` ${response.body.api_list_price_equivalent_label}.`
|
|
34
|
+
: "";
|
|
35
|
+
return textResult(`${coverage?.sessions_extracted ?? 0} of ${coverage?.sessions_observed ?? 0} sessions extracted.${why} ${coverage?.sessions_counted_at_upload ?? 0} of ${coverage?.sessions_observed ?? 0} sessions counted at upload, ${coverage?.sessions_counted_by_server ?? 0} by server backfill, ${coverage?.sessions_counted_by_ladder ?? 0} by the ladder.${args.groupBy === "task_type" ? ` ${coverage?.sessions_labelled ?? 0} of ${coverage?.sessions_observed ?? 0} sessions labelled by topic.` : ""}${priceLabel}`, response.body);
|
|
29
36
|
}));
|
|
30
37
|
registrarFor(server)("usage_sessions", {
|
|
31
38
|
title: "Read task or subject sessions",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bli-cockpit/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.59",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "bli-tower: an MCP server over BLI Cockpit's agent doors: JARVIS (jarvis_*), documents (docs_*), channels (msg_*), issues (work_*), the daily page (brief_*), meeting notes (notes_*), the ops board (ops_status/slack_*), settings/team/model, Scout and the workbook, plus the legacy event-stream tools (emit_event, get_ticket_timeline, get_active_tickets).",
|
|
6
6
|
"type": "module",
|