taskplane 0.23.5 → 0.23.6

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.
@@ -1706,9 +1706,11 @@ export function presentBatchSummary(
1706
1706
  const duration = batchState.endedAt && batchState.startedAt
1707
1707
  ? formatDurationMs(batchState.endedAt - batchState.startedAt)
1708
1708
  : "in progress";
1709
- const cost = (diagnostics?.batchCost ?? 0) > 0
1710
- ? `$${(diagnostics?.batchCost ?? 0).toFixed(2)}`
1711
- : "not tracked";
1709
+ // TP-115: Use V2 lane snapshot cost when diagnostics.batchCost is zero
1710
+ const rawCost = (diagnostics?.batchCost ?? 0) > 0
1711
+ ? diagnostics!.batchCost
1712
+ : computeV2BatchCost(stateRoot, batchState.batchId);
1713
+ const cost = rawCost > 0 ? `$${rawCost.toFixed(2)}` : "not tracked";
1712
1714
  const filename = `${opId}-${batchState.batchId}-summary.md`;
1713
1715
 
1714
1716
  const conciseText =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taskplane",
3
- "version": "0.23.5",
3
+ "version": "0.23.6",
4
4
  "description": "AI agent orchestration for pi — parallel task execution with checkpoint discipline",
5
5
  "keywords": [
6
6
  "pi-package",