@blackbelt-technology/pi-dashboard-cost-estimator 0.7.0 → 0.8.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/package.json +14 -5
- package/src/server/index.ts +1 -1
- package/src/telemetry/sessions.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blackbelt-technology/pi-dashboard-cost-estimator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Software cost & effort estimation from use cases, functional and non-functional requirements and a tech stack. Sizes with Use Case Points + COCOMO II scale, routes NFRs to derived scope or a residual multiplier, distributes effort across 11 roles, compares four delivery modes (human_only, human_with_ai, ai_steered_human_supervised, agentic_hitl), and runs a Beta-PERT Monte Carlo plus an NPV/ROI business case. Calibrates agent cost and steering time from real pi session telemetry.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -83,14 +83,23 @@
|
|
|
83
83
|
"!**/*.test.ts",
|
|
84
84
|
"!**/*.test.tsx",
|
|
85
85
|
".pi/skills/",
|
|
86
|
-
"README.md"
|
|
86
|
+
"README.md",
|
|
87
|
+
"!**/AGENTS.md",
|
|
88
|
+
"!**/*.AGENTS.md"
|
|
87
89
|
],
|
|
88
90
|
"scripts": {
|
|
89
91
|
"test": "vitest run"
|
|
90
92
|
},
|
|
93
|
+
"peerDependencies": {
|
|
94
|
+
"react": ">=18.0.0"
|
|
95
|
+
},
|
|
91
96
|
"dependencies": {
|
|
92
|
-
"@blackbelt-technology/dashboard-plugin-runtime": "^0.
|
|
93
|
-
"@blackbelt-technology/pi-dashboard-session-distiller": "^0.
|
|
94
|
-
"@blackbelt-technology/pi-dashboard-shared": "^0.
|
|
97
|
+
"@blackbelt-technology/dashboard-plugin-runtime": "^0.8.0",
|
|
98
|
+
"@blackbelt-technology/pi-dashboard-session-distiller": "^0.8.0",
|
|
99
|
+
"@blackbelt-technology/pi-dashboard-shared": "^0.8.0"
|
|
100
|
+
},
|
|
101
|
+
"devDependencies": {
|
|
102
|
+
"@types/react": "^19.0.0",
|
|
103
|
+
"react": "^19.0.0"
|
|
95
104
|
}
|
|
96
105
|
}
|
package/src/server/index.ts
CHANGED
|
@@ -85,7 +85,7 @@ export default async function registerPlugin(ctx: ServerPluginContext): Promise<
|
|
|
85
85
|
try {
|
|
86
86
|
records = scanSessions({ gapCapMinutes: gapCap });
|
|
87
87
|
} catch (error) {
|
|
88
|
-
ctx.logger.error(
|
|
88
|
+
ctx.logger.error("cost-estimator: session scan failed", error);
|
|
89
89
|
return { ok: false, error: "session scan failed", projects: [], measured: null, subscription: null };
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -139,7 +139,7 @@ function readSessionRecord(jsonlPath: string, gapCap: number): SessionRecord | n
|
|
|
139
139
|
let toolErrors = 0;
|
|
140
140
|
let corrections = 0;
|
|
141
141
|
|
|
142
|
-
for (const entry of events as Array<Record<string, unknown>>) {
|
|
142
|
+
for (const entry of events as unknown as Array<Record<string, unknown>>) {
|
|
143
143
|
if (entry.type !== "message") continue;
|
|
144
144
|
|
|
145
145
|
const stamp = typeof entry.timestamp === "string" ? Date.parse(entry.timestamp) : NaN;
|