prjct-cli 2.38.1 → 2.40.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prjct-cli",
3
- "version": "2.38.1",
3
+ "version": "2.40.0",
4
4
  "description": "Context layer for AI agents. Project context for Claude Code, Gemini CLI, and more.",
5
5
  "main": "dist/bin/prjct.mjs",
6
6
  "bin": {
@@ -18,3 +18,4 @@ Rules:
18
18
  - All commits include footer: `Generated with [p/](https://www.prjct.app/)`
19
19
  - All storage through `prjct` CLI (SQLite internally)
20
20
  - Start code tasks with `p. task` and follow Context Contract from CLI output
21
+ - Worktree hygiene: if working in a git worktree, remove it AFTER its PR merges — `git worktree remove` from the main worktree; never with uncommitted/unpushed work, never `--force`
@@ -10,6 +10,7 @@ Run `prjct <command> --md` and follow its output. Pull context on demand; never
10
10
  - Flow: `task` → work → `done` → `ship`
11
11
  - Memory: `prjct remember <decision|gotcha|learning|fact> "<text>"`, `prjct context memory <topic>` (recall), `prjct guard <file>` (preventive memory before editing)
12
12
  - Capture stray thoughts: `prjct capture "<text>"`
13
+ - Worktree hygiene: if working in a git worktree, remove it AFTER its PR merges — `git worktree remove` from the main worktree; never with uncommitted/unpushed work, never `--force`.
13
14
  - Run `prjct --help` for the full command list; prefer the prjct MCP tools (`prjct_*`) when available.
14
15
 
15
16
  Commit footer: `Generated with [p/](https://www.prjct.app/)`
@@ -13,6 +13,7 @@ Data:
13
13
  - Commit footer: `Generated with [p/](https://www.prjct.app/)`
14
14
  - Path resolution: `.prjct/prjct.config.json` → `~/.prjct-cli/projects/{projectId}`
15
15
  - Storage: `prjct` CLI (SQLite internally)
16
+ - Worktree hygiene: if working in a git worktree, remove it AFTER its PR merges — `git worktree remove` from the main worktree; never with uncommitted/unpushed work, never `--force`
16
17
 
17
18
  Crew (opt-in via `prjct crew install`): Leader (blue) · Implementer (purple) · Reviewer (pink). Subagent dispatch is Claude-Code-only; in Antigravity, identify the role you are playing explicitly.
18
19
 
@@ -18,6 +18,7 @@ Data:
18
18
  - Commit footer: `Generated with [p/](https://www.prjct.app/)`
19
19
  - Path resolution: `.prjct/prjct.config.json` → `~/.prjct-cli/projects/{projectId}`
20
20
  - Storage: `prjct` CLI (SQLite internally)
21
+ - Worktree hygiene: if working in a git worktree, remove it AFTER its PR merges — `git worktree remove` from the main worktree; never with uncommitted/unpushed work, never `--force`
21
22
 
22
23
  Crew (opt-in via `prjct crew install`): Leader (blue) · Implementer (purple) · Reviewer (pink). Subagent dispatch is Claude-Code-only; in Cursor, identify the role you are playing explicitly.
23
24
 
@@ -13,6 +13,7 @@ Data:
13
13
  - Commit footer: `Generated with [p/](https://www.prjct.app/)`
14
14
  - Path resolution: `.prjct/prjct.config.json` → `~/.prjct-cli/projects/{projectId}`
15
15
  - Storage: `prjct` CLI (SQLite internally)
16
+ - Worktree hygiene: if working in a git worktree, remove it AFTER its PR merges — `git worktree remove` from the main worktree; never with uncommitted/unpushed work, never `--force`
16
17
 
17
18
  Crew (opt-in via `prjct crew install`): Leader (blue) · Implementer (purple) · Reviewer (pink). Subagent dispatch is Claude-Code-only; in Gemini, identify the role you are playing explicitly.
18
19
 
@@ -18,6 +18,7 @@ Data:
18
18
  - Commit footer: `Generated with [p/](https://www.prjct.app/)`
19
19
  - Path resolution: `.prjct/prjct.config.json` → `~/.prjct-cli/projects/{projectId}`
20
20
  - Storage: `prjct` CLI (SQLite internally)
21
+ - Worktree hygiene: if working in a git worktree, remove it AFTER its PR merges — `git worktree remove` from the main worktree; never with uncommitted/unpushed work, never `--force`
21
22
 
22
23
  Crew (opt-in via `prjct crew install`): Leader (blue) · Implementer (purple) · Reviewer (pink). Subagent dispatch is Claude-Code-only; in Windsurf, identify the role you are playing explicitly.
23
24
 
@@ -109,4 +109,5 @@ When you actually run a heavy workflow (`review`, `qa`, `security`, `investigate
109
109
  - Secret-like content is refused by `remember` and `capture` unless `--force`.
110
110
  - Bare `prjct "<text>"` routes to `capture` (inbox), not `task`. Use `prjct task` explicitly for work that needs a branch/worktree.
111
111
  - Hooks in `~/.claude/settings.json` already inject persona + topical memory on SessionStart / UserPromptSubmit — you rarely need to call prjct by hand at session start.
112
+ - **Worktree hygiene.** If you are working inside a git worktree, clean it up so they don't pile up on the local machine: AFTER the branch's PR is *merged* (not at session end — an open PR keeps its worktree), `git worktree remove <path>` + `git worktree prune`, run from the MAIN worktree (git won't remove the worktree you're standing in). NEVER remove a worktree with uncommitted or unpushed work, and never `--force` over a dirty tree (it silently discards work).
112
113