prjct-cli 2.42.4 → 2.42.5
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 +20 -0
- package/dist/bin/prjct-core.mjs +420 -420
- package/dist/daemon/entry.mjs +198 -198
- package/dist/mcp/server.mjs +139 -139
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
Fixes from a full code review of the v2.42.0–v2.42.4 range (7 review angles, 42 candidates, verified).
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- **Lazy command loaders no longer memoize rejected promises.** A transient import/constructor error during the first dispatch of a command group used to be cached forever — every later command in that group replayed the same error for the daemon's lifetime (the old eager loading failed loud at startup instead). Both layers fixed (registry group loaders + the 17 `PrjctCommands` getters); the next dispatch now retries.
|
|
9
|
+
- **`mapOptions` numbers**: non-numeric input for a numeric flag maps to `undefined` (flag ignored) instead of `NaN`.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- New CI guard: `manifest-completeness` instantiates every command group and verifies each manifest `routing.method` actually exists — restoring the registration-time validation the lazy refactor deferred to first dispatch.
|
|
13
|
+
- `registerLazyMethod` memoizes the resolved instance+method pair (was re-resolving per dispatch); dead `registerMethod` deleted (single registration mechanism).
|
|
14
|
+
- `runBinCommand` imports moved into the branches that use them — every bin command was paying the `version` branch's chalk/ai-provider/file-helper imports.
|
|
15
|
+
- `compareSemver` deduped to the `schemas/model.ts` implementation; the monotonic-stamp rule shared between `nextKvStamp` and `updateDoc`; `cosineSimilarity` single-sourced over `dot`/`l2Norm`.
|
|
16
|
+
|
|
17
|
+
|
|
5
18
|
Optimization backlog pass (the items deferred since v2.37.x, consolidated in mem_1814).
|
|
6
19
|
|
|
7
20
|
### Fixed
|
|
@@ -29,6 +42,13 @@ Optimization backlog pass (the items deferred since v2.37.x, consolidated in mem
|
|
|
29
42
|
- **`bin/prjct.ts` split**: the ~550 lines of bin-only command handlers moved to `core/cli/bin-commands.ts` (1082 → 536 lines); the entry point keeps startup concerns only.
|
|
30
43
|
- **`core/workflow/` → `core/workflow-engine/`** — disambiguates the rule engine from `core/workflows/` (implementations).
|
|
31
44
|
|
|
45
|
+
## [2.42.5] - 2026-06-10
|
|
46
|
+
|
|
47
|
+
### Bug Fixes
|
|
48
|
+
|
|
49
|
+
- confirmed findings from the v2.42.x range code review (#421)
|
|
50
|
+
|
|
51
|
+
|
|
32
52
|
## [2.42.4] - 2026-06-10
|
|
33
53
|
|
|
34
54
|
### Performance
|