@adhd/backlog 0.1.6 โ†’ 0.1.7

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 0.1.7 (2026-08-14)
2
+
3
+
4
+ ### ๐Ÿฉน Fixes
5
+
6
+ - **backlog:** persist citations, atomic repo migration, signal cleanup
7
+
8
+
9
+ ### โค๏ธ Thank You
10
+
11
+ - pseudosky
12
+
1
13
  ## 0.1.6 (2026-08-12)
2
14
 
3
15
 
package/client.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { GraphBacklogStore } from './store/graph-backlog-store.js';
2
2
  import { BacklogConfig } from './env.js';
3
- import { ArchiveOpts, ArchiveResult, AuditTrailResult, BacklogFilter, BacklogItem, BacklogStats, BacklogStatus, ClaimOpts, ClaimResult, Citation, CreateItemInput, CreateItemResult, DependencyGraph, ImportMarkdownInput, ImportResult, MigrationPhase, MigrationStatusResult, Priority, ReleaseResult, SetMigrationPhaseResult, StatsScope, TopoOrderResult, TransitionOpts, UpdateItemInput } from './model.js';
3
+ import { ArchiveOpts, ArchiveResult, AuditTrailResult, BacklogFilter, BacklogItem, BacklogStats, BacklogStatus, ClaimOpts, ClaimResult, Citation, CreateItemInput, CreateItemResult, DependencyGraph, ImportMarkdownInput, ImportResult, MigrationPhase, MigrationStatusResult, Priority, ReleaseResult, RepoMigrationResult, SetMigrationPhaseResult, StatsScope, TopoOrderResult, TransitionOpts, UpdateItemInput } from './model.js';
4
4
  import { Environment } from '@adhd/environment';
5
5
 
6
6
  /** The one type apigen special-cases via the `ctx-name-only` invariant. */
@@ -92,6 +92,30 @@ export declare function mergeItems(ctx: BacklogCtx, repo: string, keepHumanId: s
92
92
  export declare function setPriority(ctx: BacklogCtx, repo: string, humanId: string, priority: Priority): Promise<BacklogItem>;
93
93
  /** MEMBER_OF edge to a plan node (auto-created if the plan slug hasn't been seen before). */
94
94
  export declare function attachToPlan(ctx: BacklogCtx, repo: string, humanId: string, planSlug: string): Promise<void>;
95
+ /**
96
+ * BUG-BACKLOG-REPO-SPLIT-001 / DEBT-BACKLOG-REPO-MOVE-001 โ€” the dedicated
97
+ * primitive to move every live item out of `fromRepo` into `toRepo` (a
98
+ * repo-key correction, e.g. a legacy `"adhd"` string onto the canonical
99
+ * `"PseudoSky/adhd"`). `dryRun` defaults to `true`: a caller must pass
100
+ * `dryRun:false` explicitly to write anything โ€” the default call is always
101
+ * safe to make speculatively and returns the full plan (including which
102
+ * items would be renamed, and to what) with zero mutation.
103
+ *
104
+ * Collisions (a humanId already live in `toRepo`) are never silently
105
+ * dropped, overwritten, or left ambiguous โ€” each is deterministically
106
+ * renamed to the next free number in its own family within `toRepo`
107
+ * (`store/repo-migration.ts`'s `planRepoMigration`), and an audit note
108
+ * recording the original `(fromRepo, humanId)` is attached to the moved
109
+ * item so the rename is traceable. Cross-item links (DEPENDS_ON,
110
+ * RELATES_TO, PART_OF, SUPERSEDES, SAME_AS, MEMBER_OF, ASSIGNED_TO) are
111
+ * preserved automatically โ€” a move never changes a node's id, only its
112
+ * `namespace`/`repo`/`humanId`/`name`/`content`.
113
+ *
114
+ * Every planned item gets exactly one reported outcome
115
+ * (`results[i].ok`/`error`) when `dryRun:false` โ€” a per-item failure never
116
+ * aborts the rest of the batch and never goes unreported.
117
+ */
118
+ export declare function migrateRepo(ctx: BacklogCtx, fromRepo: string, toRepo: string, by: string, dryRun?: boolean): Promise<RepoMigrationResult>;
95
119
  export declare function importFromMarkdown(ctx: BacklogCtx, input: ImportMarkdownInput): Promise<ImportResult>;
96
120
  /**
97
121
  * Excludes archived items (SPEC.md ยง5.4 archiveResolved) โ€” see markdown.ts's