taskplane 0.25.7 → 0.25.8
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/dashboard/server.cjs +7 -6
- package/extensions/taskplane/merge.ts +2917 -2900
- package/package.json +1 -1
package/dashboard/server.cjs
CHANGED
|
@@ -1121,18 +1121,19 @@ function buildDashboardState() {
|
|
|
1121
1121
|
|
|
1122
1122
|
// TP-164: Inject merge snapshot telemetry into the telemetry map so
|
|
1123
1123
|
// `telemetry[sessionName]` resolves for the merge pane.
|
|
1124
|
-
//
|
|
1125
|
-
//
|
|
1126
|
-
// JSONL
|
|
1124
|
+
// Snapshots are the PRIMARY source for merge telemetry — merge agents don't
|
|
1125
|
+
// write to .pi/telemetry/*.jsonl (the JSONL path is for lane workers only).
|
|
1126
|
+
// Inject snapshot data when no JSONL-backed entry exists for this session.
|
|
1127
1127
|
for (const snap of Object.values(runtimeMergeSnapshots)) {
|
|
1128
1128
|
const key = snap.sessionName;
|
|
1129
1129
|
if (!key) continue;
|
|
1130
1130
|
const agent = snap.agent;
|
|
1131
1131
|
if (!agent) continue;
|
|
1132
|
-
// Only inject if there is no existing telemetry entry
|
|
1133
|
-
//
|
|
1132
|
+
// Only inject if there is no existing JSONL-backed telemetry entry.
|
|
1133
|
+
// Merge agents don't emit to .pi/telemetry/, so existing will always be
|
|
1134
|
+
// absent unless something else wrote to it — in that case defer to it.
|
|
1134
1135
|
const existing = telemetry[key];
|
|
1135
|
-
if (!existing
|
|
1136
|
+
if (!existing) {
|
|
1136
1137
|
telemetry[key] = {
|
|
1137
1138
|
inputTokens: agent.inputTokens || 0,
|
|
1138
1139
|
outputTokens: agent.outputTokens || 0,
|