@icntswm/skillcheck 1.0.3 → 1.0.4

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/budget.js CHANGED
@@ -18,8 +18,9 @@ function listInputPrice(model) {
18
18
  return 5e-6;
19
19
  }
20
20
  /**
21
- * Running spend estimate for --budget. Runs killed by early-stop never report
22
- * a cost, so they are priced from their token usage: at the rate seen in
21
+ * Running spend estimate for --budget. claude usually reports its cost even
22
+ * when early-stop kills it, but a run killed before the result event does
23
+ * not; such runs are priced from their token usage: at the rate seen in
23
24
  * finished runs, or at list price before any run finishes. Runs with neither
24
25
  * cost nor usage count at the average known cost.
25
26
  */
package/dist/junit.js CHANGED
@@ -14,9 +14,10 @@ export function toJunit(report) {
14
14
  if (report.model !== null)
15
15
  properties.push(` <property name="model" value="${esc(report.model)}"/>`);
16
16
  properties.push(` <property name="costUsd" value="${report.summary.costUsd.toFixed(2)}"/>`);
17
- // early-stopped runs report no cost, so costUsd alone understates the spend
17
+ // a run killed before its result event reports no cost, so costUsd alone understates the spend
18
18
  if (report.summary.unknownCostRuns > 0) {
19
19
  properties.push(` <property name="unknownCostRuns" value="${report.summary.unknownCostRuns}"/>`);
20
+ properties.push(` <property name="estimatedCostUsd" value="${report.summary.estimatedCostUsd.toFixed(2)}"/>`);
20
21
  }
21
22
  properties.push(" </properties>");
22
23
  const cases = rows.map(({ c, kind }) => testcase(c, kind, suiteName));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icntswm/skillcheck",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Regression tests for Claude Code skills: check that every request still loads the right skill",
5
5
  "type": "module",
6
6
  "bin": {