prjct-cli 1.24.1 → 1.26.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/CHANGELOG.md CHANGED
@@ -1,5 +1,96 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.26.0] - 2026-02-11
4
+
5
+ ### Features
6
+
7
+ - kill JSON I/O + skill-on-demand --md architecture (PRJ-303) (#173)
8
+
9
+
10
+ ## [1.27.0] - 2026-02-11
11
+
12
+ ### Features
13
+
14
+ - **`--md` flag on all CLI commands**: New LLM-optimized markdown output mode for all commands (`prjct task --md`, `prjct done --md`, `prjct sync --md`, etc.). Produces clean markdown with task context, relevant files, subtasks, and next steps — designed for agent consumption.
15
+ - **Ultra-thin templates**: All 36 command templates reduced from 6,066 → ~600 total lines (~90% reduction). Fast commands are ~10 lines, smart commands ~30 lines. Templates delegate data/formatting to CLI `--md` output, preserving agentic intelligence (exploration, planning, clarification).
16
+ - **Ultra-thin global instructions**: CLAUDE.md reduced from 488 → 16 lines (~97% reduction). GEMINI.md, WINDSURF.md, ANTIGRAVITY.md, CURSOR.mdc similarly reduced. Zero wasted context tokens.
17
+ - **New `md-formatter.ts` utility**: Shared markdown formatting functions (`mdTaskHeader`, `mdSubtasks`, `mdRelevantFiles`, `mdInstructions`, `mdNextSteps`, etc.) used by all command groups.
18
+ - **Fix: `task` command registration**: `prjct task` was listed in command-data but had no handler in registry or CLI routing. Now properly registered and routed through both normal CLI and daemon paths.
19
+
20
+ ### Changes
21
+
22
+ - 36 command templates rewritten (auth, bug, cleanup, dash, design, done, enrich, git, history, idea, impact, init, jira, learnings, linear, merge, next, pause, plan, prd, resume, review, serve, setup, ship, skill, spec, status, sync, task, test, update, verify, workflow, analyze)
23
+ - 5 global templates rewritten (CLAUDE.md, GEMINI.md, WINDSURF.md, ANTIGRAVITY.md, CURSOR.mdc)
24
+ - 6 CLAUDE.md modules deprecated (CLAUDE-commands, CLAUDE-git, CLAUDE-storage, CLAUDE-intelligence simplified to stubs; CLAUDE-core reduced to 14 lines; module-config.json single profile)
25
+ - `dist/templates.json` reduced from 358 KB → 177.6 KB (~50% reduction)
26
+ - All command groups (workflow, planning, shipping, analytics, analysis) accept `{ md?: boolean }` option
27
+ - Daemon `executeCommand` now has explicit cases for all workflow commands with `--md` passthrough
28
+ - `core/index.ts` standardCommands map passes `md` flag to all handlers
29
+
30
+ ### Metrics
31
+
32
+ | Metric | Before | After | Reduction |
33
+ |--------|--------|-------|-----------|
34
+ | CLAUDE.md (always loaded) | 488 lines | 16 lines | 97% |
35
+ | Templates total lines | 6,066 | ~600 | 90% |
36
+ | `dist/templates.json` | 358 KB | 177.6 KB | 50% |
37
+ | Context tokens per session | ~6,500 | ~350 | 95% |
38
+
39
+ ## [1.26.1] - 2026-02-10
40
+
41
+ ### Added
42
+ - purge JSON I/O from templates + prjct update command
43
+
44
+ ## [1.26.0] - 2026-02-10
45
+
46
+ ### Features
47
+
48
+ - **`prjct update` command**: New CLI command that migrates all projects from JSON to SQLite and sweeps leftover JSON files. Supports `--all` (all projects) and `--dry-run` flags.
49
+ - **Template purge — zero JSON I/O**: Rewrote all 49 template files (commands, subagents, global instructions) to use `prjct` CLI commands instead of direct JSON file reads/writes. Templates now delegate all data operations to the CLI, which handles SQLite internally.
50
+ - **Fix performance-tracker date filter**: `getReport(id, 0)` now correctly means "today" instead of "this exact millisecond".
51
+
52
+ ### Changes
53
+
54
+ - 27 command templates simplified to use CLI commands (`prjct task`, `prjct done`, `prjct ship`, etc.)
55
+ - 8 global instruction files updated (CLAUDE-core/intelligence/storage, ANTIGRAVITY, GEMINI, CURSOR, WINDSURF, STORAGE-SPEC)
56
+ - 7 subagent/context templates updated (agent-base, orchestrator, planner, shipper, workflow, dashboard, roadmap)
57
+ - New `core/commands/update.ts` with `UpdateCommands` class
58
+ - Registered in command-data, register, index, and commands facade
59
+
60
+ ## [1.25.0] - 2026-02-11
61
+
62
+ ### Features
63
+
64
+ - kill all JSON file I/O — everything to SQLite (PRJ-303) (#172)
65
+
66
+ ## [1.25.0] - 2026-02-10
67
+
68
+ ### Features
69
+
70
+ - **Kill all JSON file I/O — everything to SQLite (PRJ-303)**: Migrated 4 modules that were still reading/writing JSON files directly, bypassing the SQLite migration. All storage now goes through `prjctDb` or `StorageManager`.
71
+
72
+ ### Changes
73
+
74
+ - `core/integrations/linear/sync.ts` — Replaced `readFile`/`writeFile` on `issues.json` with `prjctDb.getDoc/setDoc`
75
+ - `core/services/context-generator.ts` — Replaced direct `state.json`, `queue.json`, `ideas.json`, `shipped.json` reads with `stateStorage`, `queueStorage`, `ideasStorage`, `shippedStorage`
76
+ - `core/services/sync-service.ts` — `updateProjectJson` and `updateStateJson` now use `prjctDb`/`stateStorage` instead of `fs.readFile`/`fs.writeFile`
77
+ - `core/services/hooks-service.ts` — `getHookConfig`/`saveHookConfig` now use `prjctDb.getDoc/setDoc` for `project.json` data
78
+ - `core/storage/migrate-json.ts` — Added `sweepLegacyJson()` that runs on every sync to import and delete any ghost JSON files
79
+ - Templates updated to reference `prjct.db` instead of `storage/*.json`
80
+
81
+ ### Test Plan
82
+
83
+ #### For QA
84
+ 1. Run `bun test` — 1057 tests pass
85
+ 2. Run `prjct linear sync` — issues stored in `prjct.db`, no `issues.json` on disk
86
+ 3. Run `prjct sync --yes` — regenerates context without JSON file errors
87
+ 4. Verify `ls ~/.prjct-cli/projects/*/storage/` has no `.json` files
88
+ 5. Run `prjct status` — works without JSON files
89
+
90
+ #### For Users
91
+ **What changed:** Internal storage optimization — no user action needed.
92
+ **Breaking changes:** None
93
+
3
94
  ## [1.24.1] - 2026-02-11
4
95
 
5
96
  ### Bug Fixes