feat: planqueue backlog CLI codifying the ordering interface#1
Closed
aryrabelo wants to merge 3 commits into
Closed
feat: planqueue backlog CLI codifying the ordering interface#1aryrabelo wants to merge 3 commits into
aryrabelo wants to merge 3 commits into
Conversation
Replaces the pending-items skill's hand-pasted SQL with a real CLI over ~/.planqueue/backlog.db. The store OWNS the two invariants the prose SQL left to caller discipline: - PRAGMA foreign_keys = ON on every (fresh) connection. - an atomic cycle-guard inside the same transaction as every edge insert, so a dependency can never close a cycle (which the non-recursive ready query would otherwise turn into a silent deadlock). src/backlog.ts = BacklogStore (bun:sqlite; ready/blocked/addDep/setStatus/addEpic). src/cli.ts = argv dispatch, JSON stdout, imports (not copies) resolveLocation from @aryrabelo/planqueue-core to derive the current repo for ready ordering. New bin 'planqueue'. 7 unit tests (temp db) cover ready ordering, blocked, and the cycle guard (self/missing/direct/transitive). bun test + typecheck + biome clean. Follow-up (blocked by protected-path hook): DOX pass on src/AGENTS.md to document the new CLI surface.
- Document the 0.1.1 changes: /clear-note, /rebuild-note, the widget/label rename, and the new planqueue backlog CLI (bin entry). - Sync pi.setLabel to 'PlanQueue · Notes' to match the widget branding.
Owner
Author
|
Moved to a dedicated operator-owned package @aryrabelo/operator-backlog. The epic/backlog level is a hermes-operator concern and must not ship inside the OSS PlanQueue notes plugin. PlanQueue stays clean (notes/FIFO only); operator-backlog imports resolveLocation from @aryrabelo/planqueue-core. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Codifies the pending-items ordering as a real CLI over ~/.planqueue/backlog.db. The store OWNS PRAGMA foreign_keys=ON per connection and an atomic cycle-guard inside every edge-insert transaction (so a dep can never close a cycle -> silent deadlock).
src/backlog.ts (BacklogStore, bun:sqlite) + src/cli.ts (argv, JSON stdout, imports resolveLocation from planqueue-core). New bin 'planqueue'. 8 tests, bun+typecheck+biome clean, smoke-tested e2e.
Caveats: