prjct-cli 1.56.2 → 1.56.10

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,88 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.56.10] - 2026-04-11
4
+
5
+ ### Bug Fixes
6
+
7
+ - prefer direct Glob/Grep over Explore subagent (#247)
8
+ - chore: dead code purge + architecture docs (v1.56.8) (#246)
9
+
10
+
11
+ ## [1.56.9] - 2026-04-11
12
+
13
+ ### Changed
14
+ - `templates/tools/task.txt`: prefer direct `Glob`/`Grep` for simple
15
+ exploration; only delegate to `Explore` subagent when the search is
16
+ open-ended. Subagents inherit all MCP tool schemas from the parent
17
+ session and can start with heavy context, so prescriptive delegation
18
+ was hurting more than helping.
19
+
20
+ ## [1.56.8] - 2026-04-10
21
+
22
+ ### Removed
23
+ - **Dead code purge (-9400 LOC).** Deleted 43 unused files including the entire
24
+ `core/integrations/` subtree (Linear/Jira integration replaced by the MCP
25
+ gateway CLIs in `core/cli/linear.ts` and `core/cli/jira.ts`), orphan schemas
26
+ (`prd`, `issues`, `permissions`, `agents`, `command-context`, `enriched-task`,
27
+ `project`), orphan services (`skill-service`, `skill-installer`, `skill-lock`,
28
+ `context-selector`, `file-categorizer`, `git-analyzer`), orphan domain files
29
+ (`snapshot-manager`, `architecture-generator`, `context-estimator`,
30
+ `task-stack`), and various agentic/session/utility files.
31
+ - **24 re-export lines** across 16 files (`core/utils/output.ts`,
32
+ `core/utils/error-messages.ts`, `core/commands/maintenance.ts`, and others).
33
+ Import directly from the source module per the no-barrel rule.
34
+ - **Unused functions** trimmed from `core/utils/collection-filters.ts`,
35
+ `core/utils/runtime.ts`, `core/utils/jsonl-helper.ts`,
36
+ `core/utils/subtask-table.ts`, and `core/utils/mcp-config.ts`.
37
+
38
+ ### Added
39
+ - **`knip.json`** and `bun run knip` script for dead code detection. Entry
40
+ points reflect the five build targets from `scripts/build.js` plus tests.
41
+ - **`docs/architecture.md`** — layered architecture walkthrough, retrieval
42
+ triad (BM25 + import graph + git co-change) with ASCII diagram, schemas
43
+ pattern, storage and testing conventions, enforced code rules.
44
+ - **`docs/sqlite-migration.md`** — why v1.24.1 moved from JSON to SQLite,
45
+ what `migrate-json.ts` does, how to inspect `prjct.db` with `sqlite3`,
46
+ and troubleshooting recipes.
47
+ - **56 new tests** across `core/__tests__/sync/` (event-mapper, auth-config,
48
+ sync-client, sync-manager — 39 tests) and
49
+ `core/__tests__/tools/context/token-counter.test.ts` (17 tests).
50
+
51
+ ### Changed
52
+ - **Biome lint rules hardened.** `noUnusedVariables`, `noUnusedImports`, and
53
+ `noVoidTypeReturn` are now `"error"` (were `"warn"`). CI blocks on any
54
+ violation.
55
+ - **`AGENTS.md`** updated with a "Code rules" section (no barrels, SQLite
56
+ only, Biome errors blocking, Zod as source of truth) and references to the
57
+ new architecture docs.
58
+ - **`.gitignore`** no longer ignores `docs/` so documentation is versioned.
59
+
60
+ ### Tests
61
+ - Full suite: **1013 pass / 0 fail** (was 957).
62
+
63
+ ## [1.56.6] - 2026-04-07
64
+
65
+ ### Bug Fixes
66
+
67
+ - resolve biome check lint and format errors (#244)
68
+ - prefer installed dist over source files (#243)
69
+
70
+
71
+ ## [1.56.5] - 2026-04-07
72
+
73
+ ### Added
74
+ - current work
75
+
76
+ ## [1.56.4] - 2026-04-07
77
+
78
+ ### Added
79
+ - fix update to use installed files instead of source
80
+
81
+ ## [1.56.3] - 2026-04-07
82
+
83
+ ### Added
84
+ - fix update to use installed files instead of source
85
+
3
86
  ## [1.56.2] - 2026-04-06
4
87
 
5
88
  ### Bug Fixes
package/bin/prjct CHANGED
@@ -98,14 +98,22 @@ check_node() {
98
98
  command -v node >/dev/null 2>&1
99
99
  }
100
100
 
101
- # Run with bun (native TypeScript in dev, compiled in production)
101
+ # Run with bun (compiled dist preferred, TypeScript only for explicit dev)
102
102
  run_with_bun() {
103
- # Dev mode: raw TypeScript is faster
103
+ # Always prefer compiled dist works for npm install, npm link, bun link
104
+ if [ -f "$ROOT_DIR/dist/bin/prjct.mjs" ]; then
105
+ # Explicit dev mode: PRJCT_DEV=1 forces raw TypeScript (faster iteration)
106
+ if [ "$PRJCT_DEV" = "1" ] && [ -f "$SCRIPT_DIR/prjct.ts" ]; then
107
+ exec bun "$SCRIPT_DIR/prjct.ts" "$@"
108
+ fi
109
+ exec bun "$ROOT_DIR/dist/bin/prjct.mjs" "$@"
110
+ fi
111
+ # No dist: fall back to raw TypeScript (first run before build)
104
112
  if [ -f "$SCRIPT_DIR/prjct.ts" ]; then
105
113
  exec bun "$SCRIPT_DIR/prjct.ts" "$@"
106
114
  fi
107
- # Production: use compiled dist
108
- exec bun "$ROOT_DIR/dist/bin/prjct.mjs" "$@"
115
+ echo "Error: No entry point found. Run 'npm run build' first."
116
+ exit 1
109
117
  }
110
118
 
111
119
  # Run with node (compiled JavaScript)
@@ -113,7 +121,7 @@ run_with_node() {
113
121
  DIST_BIN="$ROOT_DIR/dist/bin/prjct.mjs"
114
122
 
115
123
  if [ ! -f "$DIST_BIN" ]; then
116
- # Dev mode: try to build
124
+ # No dist: try to build if this looks like a dev checkout
117
125
  if [ -f "$ROOT_DIR/scripts/build.js" ] && [ -d "$ROOT_DIR/core" ]; then
118
126
  echo "Building for Node.js (first run)..."
119
127
  node "$ROOT_DIR/scripts/build.js" || {