@thehammer/danx-session-telemetry 0.1.29 → 0.1.31
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/.source-hash +1 -1
- package/dist/claim-tracker.d.ts +6 -2
- package/dist/claim-tracker.js +9 -3
- package/package.json +1 -1
package/dist/.source-hash
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ade91474df465c805cff25ba35ef8265728fbf4a6649e43ea3401b5812ed943c
|
package/dist/claim-tracker.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
/** The
|
|
2
|
-
export declare const
|
|
1
|
+
/** The `danxbot_api` tool of a dispatched worker's `danx-dashboard` server. */
|
|
2
|
+
export declare const DISPATCH_API_TOOL_NAME = "mcp__danx-dashboard__danxbot_api";
|
|
3
|
+
/** The `danxbot_api` tool of the danxbot plugin's server, which an operator session's sub-agent calls. */
|
|
4
|
+
export declare const PLUGIN_API_TOOL_NAME = "mcp__plugin_danxbot_danx-dashboard__danxbot_api";
|
|
5
|
+
/** Every tool name a sub-agent reaches the dashboard API through. */
|
|
6
|
+
export declare const DASHBOARD_API_TOOL_NAMES: ReadonlySet<string>;
|
|
3
7
|
/** A card id as the issue routes name it, e.g. `DX-3962`. Also the wire's validation for every card id a claim carries. */
|
|
4
8
|
export declare const ISSUE_ID_PATTERN: RegExp;
|
|
5
9
|
/** Longest card id a claim may carry (`dispatches.issue_id` is `VARCHAR(32)`). */
|
package/dist/claim-tracker.js
CHANGED
|
@@ -46,8 +46,14 @@
|
|
|
46
46
|
* Pure bookkeeping — no `node:` imports, so it rides the browser-safe subpath too.
|
|
47
47
|
*/
|
|
48
48
|
import { MAIN_SOURCE } from "./usage-ledger.js";
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
// DX-4578: both names are live, neither a fallback. A dispatched worker's clean-room config names the server `danx-dashboard`; an operator
|
|
50
|
+
// session's sub-agent reaches it through the danxbot plugin's server (`plugin:danxbot:danx-dashboard`, tools `mcp__plugin_danxbot_danx-dashboard__*`).
|
|
51
|
+
/** The `danxbot_api` tool of a dispatched worker's `danx-dashboard` server. */
|
|
52
|
+
export const DISPATCH_API_TOOL_NAME = "mcp__danx-dashboard__danxbot_api";
|
|
53
|
+
/** The `danxbot_api` tool of the danxbot plugin's server, which an operator session's sub-agent calls. */
|
|
54
|
+
export const PLUGIN_API_TOOL_NAME = "mcp__plugin_danxbot_danx-dashboard__danxbot_api";
|
|
55
|
+
/** Every tool name a sub-agent reaches the dashboard API through. */
|
|
56
|
+
export const DASHBOARD_API_TOOL_NAMES = new Set([DISPATCH_API_TOOL_NAME, PLUGIN_API_TOOL_NAME]);
|
|
51
57
|
/** A card id as the issue routes name it, e.g. `DX-3962`. Also the wire's validation for every card id a claim carries. */
|
|
52
58
|
export const ISSUE_ID_PATTERN = /^[A-Za-z][A-Za-z0-9]*-[0-9]+$/;
|
|
53
59
|
/** Longest card id a claim may carry (`dispatches.issue_id` is `VARCHAR(32)`). */
|
|
@@ -102,7 +108,7 @@ function resultSucceeded(block) {
|
|
|
102
108
|
}
|
|
103
109
|
/** The transition a `tool_use` block asks for, or `null` when it is not a claim or release of a card. */
|
|
104
110
|
function transitionOf(block) {
|
|
105
|
-
if (block.type !== "tool_use" || block.name !==
|
|
111
|
+
if (block.type !== "tool_use" || typeof block.name !== "string" || !DASHBOARD_API_TOOL_NAMES.has(block.name))
|
|
106
112
|
return null;
|
|
107
113
|
const input = block.input;
|
|
108
114
|
if (input === null || typeof input !== "object")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thehammer/danx-session-telemetry",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"description": "Shared Claude Code transcript collector (DX-2962) — incremental JSONL tailing for the danxbot worker and the danx-dashboard-mcp desktop bridge, so both run identical collector code.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|