iteration-cli 0.8.1 → 0.9.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/dist/claude-transcript.js +1 -0
- package/dist/storage.js +7 -2
- package/package.json +1 -1
package/dist/storage.js
CHANGED
|
@@ -562,9 +562,12 @@ export async function ensureHistoryBackfill(codexHome, paths) {
|
|
|
562
562
|
});
|
|
563
563
|
return true;
|
|
564
564
|
}
|
|
565
|
+
// Version 2 re-reads Claude history so stored sessions gain each response's
|
|
566
|
+
// final usage report and the PR links Claude records.
|
|
567
|
+
const CLAUDE_HISTORY_BACKFILL_VERSION = 2;
|
|
565
568
|
export async function ensureClaudeHistoryBackfill(claudeHome, paths) {
|
|
566
569
|
const version = await readHistoryBackfillVersion(paths);
|
|
567
|
-
if (version !== null && version >=
|
|
570
|
+
if (version !== null && version >= CLAUDE_HISTORY_BACKFILL_VERSION)
|
|
568
571
|
return false;
|
|
569
572
|
const state = await loadState(paths);
|
|
570
573
|
if (!state.initialized ||
|
|
@@ -573,7 +576,9 @@ export async function ensureClaudeHistoryBackfill(claudeHome, paths) {
|
|
|
573
576
|
}
|
|
574
577
|
await claudeFiles(path.join(claudeHome, "projects"));
|
|
575
578
|
await saveState({ ...state, cursors: {}, skipping: [] }, paths);
|
|
576
|
-
await writeJsonAtomic(paths.historyBackfill, {
|
|
579
|
+
await writeJsonAtomic(paths.historyBackfill, {
|
|
580
|
+
version: CLAUDE_HISTORY_BACKFILL_VERSION,
|
|
581
|
+
});
|
|
577
582
|
return true;
|
|
578
583
|
}
|
|
579
584
|
export async function ensureCursorHistoryBackfill(cursorHome, paths) {
|