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.
@@ -14,6 +14,7 @@ const CONTEXT_RECORD_TYPES = new Set([
14
14
  "file-history-delta",
15
15
  "cost-state",
16
16
  "queue-operation",
17
+ "pr-link",
17
18
  ]);
18
19
  function object(value) {
19
20
  const parsed = z.record(z.string(), z.json()).safeParse(value);
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 >= 1)
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, { version: 1 });
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iteration-cli",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",