taskchef 8.1.0 → 8.2.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/.codex-plugin/plugin.json +1 -1
- package/README.md +2 -2
- package/docs/spec.md +9 -6
- package/package.json +1 -1
- package/src/dashboard/app.js +0 -3
- package/src/dashboard/dist/app.js +40 -40
- package/src/dashboard/dist/app.js.map +1 -1
- package/src/dashboard/dist/styles.css +1 -1
- package/src/dashboard/react/components/ActivityTimeline.tsx +43 -55
- package/src/dashboard/react/components/StatsGrid.tsx +60 -0
- package/src/dashboard/react/components/TaskCardStats.test.tsx +5 -4
- package/src/dashboard/react/components/TaskCardStats.tsx +12 -42
- package/src/dashboard/react/components/TaskDetail.test.tsx +19 -15
- package/src/dashboard/react/presentation.ts +18 -9
- package/src/dashboard/react/styles.css +12 -20
- package/src/usage.js +11 -19
package/README.md
CHANGED
|
@@ -368,8 +368,8 @@ figures are labeled API-equivalent estimates; provenance identifies the online
|
|
|
368
368
|
pricing request or offline fallback mode, and zero-priced unknown models show
|
|
369
369
|
cost unavailable rather than a misleading `$0.00`. Per-turn cost is also
|
|
370
370
|
unavailable when its cumulative boundaries used different ccusage versions or
|
|
371
|
-
pricing modes.
|
|
372
|
-
|
|
371
|
+
pricing modes. TaskChef displays the cumulative estimate supplied by ccusage
|
|
372
|
+
without applying a separate model-family or cache-write coverage policy.
|
|
373
373
|
The same detail view reports lifecycle wall-clock elapsed time independently of
|
|
374
374
|
ccusage. Each terminal turn shows **Elapsed** from `startedAt` to
|
|
375
375
|
`result.updatedAt`; **Total reported work** sums only valid terminal-turn
|
package/docs/spec.md
CHANGED
|
@@ -172,10 +172,12 @@ store a cumulative usage boundary, and MUST NOT receive a token or cost delta.
|
|
|
172
172
|
A later executor turn MUST use the nearest preceding reliable executor
|
|
173
173
|
boundary, skipping any intervening dashboard-manual turns.
|
|
174
174
|
|
|
175
|
-
The mode-0600 `.taskchef-usage.json` cache stores only normalized cumulative
|
|
175
|
+
The mode-0600 `.taskchef-usage.json` schema 2 cache stores only normalized cumulative
|
|
176
176
|
token boundaries, per-turn deltas, model names, estimated cost, source version,
|
|
177
177
|
and freshness. It is independent of task-log schema versions so legacy logs remain
|
|
178
|
-
readable.
|
|
178
|
+
readable. Schema 1 usage caches MUST migrate in memory by discarding their
|
|
179
|
+
TaskChef-specific cost-coverage classification while preserving valid ccusage
|
|
180
|
+
cumulative estimates. Writes MUST use the workspace lock and atomic replacement. Symlinked
|
|
179
181
|
or unsupported cache files MUST be rejected. Writes MUST compact the derived
|
|
180
182
|
cache to recent task projections, recent per-turn results, and the latest
|
|
181
183
|
cumulative boundary. An oversized legacy cache MUST be treated as rebuildable
|
|
@@ -214,10 +216,11 @@ The online mode records TaskChef's request, not a claim about ccusage's internal
|
|
|
214
216
|
cache. Dollar values MUST be labeled API-equivalent estimates. Positive token
|
|
215
217
|
usage with a zero or missing analyzer cost MUST display cost unavailable, not
|
|
216
218
|
`$0.00`. A per-turn dollar delta MUST be unavailable when its adjacent
|
|
217
|
-
cumulative boundaries use different analyzer versions
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
cumulative boundaries use different analyzer versions or requested pricing
|
|
220
|
+
modes. When ccusage supplies a valid cumulative estimate, TaskChef MUST display
|
|
221
|
+
it without applying its own model-family or cache-write coverage policy. A model
|
|
222
|
+
family change between otherwise compatible boundaries MUST NOT prevent TaskChef
|
|
223
|
+
from deriving the per-turn estimate.
|
|
221
224
|
The dashboard Settings response MUST report the provider version returned by
|
|
222
225
|
the executable resolved for runtime use, not merely copy the dependency pin.
|
|
223
226
|
|
package/package.json
CHANGED
package/src/dashboard/app.js
CHANGED
|
@@ -482,9 +482,6 @@ export function usagePresentation(usage, { wholeTask = false } = {}) {
|
|
|
482
482
|
: "";
|
|
483
483
|
const freshness = usage.sourceUpdatedAt ?? usage.sampledAt;
|
|
484
484
|
provenance.textContent = `Source: ccusage${version}${pricingMode}${freshness ? ` · updated ${formatRelativeTime(freshness)}` : ""}. Dollar cost is an API-equivalent estimate${wholeTask ? " for the task" : " for this turn"}.`;
|
|
485
|
-
if (usage.provenance?.costCoverage === "cache_writes_unverified") {
|
|
486
|
-
provenance.textContent += " ccusage may omit GPT-5.6 cache-write charges.";
|
|
487
|
-
}
|
|
488
485
|
container.append(provenance);
|
|
489
486
|
return container;
|
|
490
487
|
}
|