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.
@@ -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. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taskplane",
3
- "version": "0.28.0",
3
+ "version": "0.28.1",
4
4
  "description": "AI agent orchestration for pi — parallel task execution with checkpoint discipline",
5
5
  "keywords": [
6
6
  "pi-package",