taskplane 0.28.0 → 0.28.1
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/public/app.js +70 -18
- package/dashboard/public/style.css +36 -0
- package/dashboard/server.cjs +2 -0
- package/extensions/taskplane/discovery.ts +4 -4
- package/extensions/taskplane/extension.ts +5135 -5125
- package/extensions/taskplane/persistence.ts +29 -0
- package/extensions/taskplane/types.ts +2 -0
- package/package.json +1 -1
|
@@ -1876,6 +1876,35 @@ export function saveBatchHistory(repoRoot: string, summary: BatchHistorySummary)
|
|
|
1876
1876
|
}
|
|
1877
1877
|
}
|
|
1878
1878
|
|
|
1879
|
+
/**
|
|
1880
|
+
* Update an existing batch history entry with the integration timestamp.
|
|
1881
|
+
*
|
|
1882
|
+
* Sets `integratedAt` on the matching entry (by batchId). If no entry
|
|
1883
|
+
* is found, this is a no-op — the batch may predate the history feature.
|
|
1884
|
+
*
|
|
1885
|
+
* @since TP-179
|
|
1886
|
+
*/
|
|
1887
|
+
export function updateBatchHistoryIntegration(repoRoot: string, batchId: string, integratedAt: number): void {
|
|
1888
|
+
const filePath = batchHistoryPath(repoRoot);
|
|
1889
|
+
try {
|
|
1890
|
+
const history = loadBatchHistory(repoRoot);
|
|
1891
|
+
const entry = history.find(e => e.batchId === batchId);
|
|
1892
|
+
if (!entry) {
|
|
1893
|
+
execLog("batch", "history", `no history entry found for batchId=${batchId}, skipping integratedAt update`);
|
|
1894
|
+
return;
|
|
1895
|
+
}
|
|
1896
|
+
entry.integratedAt = integratedAt;
|
|
1897
|
+
const dir = dirname(filePath);
|
|
1898
|
+
if (!existsSync(dir)) mkdirSync(dir, { recursive: true });
|
|
1899
|
+
const tmpPath = filePath + ".tmp";
|
|
1900
|
+
writeFileSync(tmpPath, JSON.stringify(history, null, 2));
|
|
1901
|
+
renameSync(tmpPath, filePath);
|
|
1902
|
+
execLog("batch", "history", `updated integratedAt for batchId=${batchId}`);
|
|
1903
|
+
} catch (err) {
|
|
1904
|
+
execLog("batch", "history", `failed to update integratedAt: ${err}`);
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1879
1908
|
|
|
1880
1909
|
// ── Tier 0 Supervisor Event Logging (TP-039 Step 2) ─────────────────
|
|
1881
1910
|
|
|
@@ -3295,6 +3295,8 @@ export interface BatchHistorySummary {
|
|
|
3295
3295
|
tokens: TokenCounts;
|
|
3296
3296
|
tasks: BatchTaskSummary[];
|
|
3297
3297
|
waves: BatchWaveSummary[];
|
|
3298
|
+
/** Timestamp (ms since epoch) when the batch was integrated. Set by orch-integrate. */
|
|
3299
|
+
integratedAt?: number;
|
|
3298
3300
|
}
|
|
3299
3301
|
|
|
3300
3302
|
/** Max number of batch history entries to retain. */
|