xtrm-tools 0.5.7 → 0.5.8
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/cli/package.json +1 -1
- package/package.json +1 -1
- package/skills/using-xtrm/SKILL.md +12 -9
package/cli/package.json
CHANGED
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@ within this stack. Read it at session start and refer back when uncertain about
|
|
|
26
26
|
| **Hooks** | Automated lifecycle enforcement (gates, suggestions, reminders) |
|
|
27
27
|
| **Project Data (`xtrm init`)** | Per-repo bootstrap data (`.beads/`, `service-registry.json`, GitNexus index) |
|
|
28
28
|
| **MCP Servers** | Semantic tools: Serena (code), gitnexus (graph), context7 (docs), deepwiki |
|
|
29
|
-
| **CLI** | `xtrm install / status /
|
|
29
|
+
| **CLI** | `xtrm install / status / finish / reset / help` — sync and closure tooling |
|
|
30
30
|
| **beads (bd)** | Git-backed issue tracker with session gate enforcement |
|
|
31
31
|
|
|
32
32
|
---
|
|
@@ -79,23 +79,24 @@ You cannot edit files without a claim, and you cannot safely end a closure-in-pr
|
|
|
79
79
|
# 1. Claim before editing
|
|
80
80
|
bd list --status=open
|
|
81
81
|
bd update <id> --claim
|
|
82
|
-
# hook auto-sets session claim
|
|
82
|
+
# hook auto-sets session claim + auto-creates worktree + writes .xtrm-session-state.json
|
|
83
83
|
|
|
84
84
|
# 2. Work in the claimed branch/worktree
|
|
85
85
|
|
|
86
86
|
# 3. Close issue when implementation is done
|
|
87
87
|
bd close <id>
|
|
88
88
|
|
|
89
|
-
# 4. Session close protocol (single command
|
|
90
|
-
|
|
89
|
+
# 4. Session close protocol (single command)
|
|
90
|
+
xtrm finish
|
|
91
91
|
# blocking: commit/push/pr-create/auto-merge poll/worktree cleanup
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
**Key rules:**
|
|
95
95
|
- One active claim per session
|
|
96
96
|
- Always work on a **feature branch**, never directly on `main`/`master`
|
|
97
|
-
- `
|
|
98
|
-
-
|
|
97
|
+
- `main-guard.mjs` blocks edits on protected branches
|
|
98
|
+
- `beads-stop-gate.mjs` blocks stop for closure phases: `waiting-merge`, `conflicting`, `pending-cleanup`
|
|
99
|
+
- If blocked on stop: resolve state then re-run `xtrm finish`
|
|
99
100
|
|
|
100
101
|
---
|
|
101
102
|
|
|
@@ -210,10 +211,11 @@ These hooks run automatically — you cannot disable them mid-session:
|
|
|
210
211
|
|
|
211
212
|
| Hook | Trigger | Effect |
|
|
212
213
|
|---|---|---|
|
|
214
|
+
| `main-guard.mjs` | PreToolUse (Edit/Write/Serena/Bash) | Blocks edits and unsafe Bash on protected branches |
|
|
213
215
|
| `beads-edit-gate.mjs` | PreToolUse (Edit/Write/Serena) | Blocks edits without active claim |
|
|
214
216
|
| `beads-commit-gate.mjs` | PreToolUse (Bash: git commit) | Blocks commit with unclosed claim |
|
|
215
|
-
| `beads-claim-sync.mjs` | PostToolUse (Bash claim command) |
|
|
216
|
-
| `beads-stop-gate.mjs` | Stop | Blocks stop
|
|
217
|
+
| `beads-claim-sync.mjs` | PostToolUse (Bash claim command) | Syncs claim + creates worktree + writes session state |
|
|
218
|
+
| `beads-stop-gate.mjs` | Stop | Blocks stop for unresolved session-flow phases |
|
|
217
219
|
| `beads-memory-gate.mjs` | Stop | Prompts for persistent insights after closure |
|
|
218
220
|
| `beads-compact-save/restore.mjs` | PreCompact / SessionStart | Preserves claim + session state across compact |
|
|
219
221
|
| `serena-workflow-reminder.py` | SessionStart | Reminds semantic editing workflow |
|
|
@@ -239,4 +241,5 @@ These hooks run automatically — you cannot disable them mid-session:
|
|
|
239
241
|
2. All d=1 dependents updated (if any signal from impact analysis)
|
|
240
242
|
3. Tests pass (targeted + relevant integration)
|
|
241
243
|
4. Beads issue closed: `bd close <id>`
|
|
242
|
-
5. Run `
|
|
244
|
+
5. Run `xtrm finish` for blocking closure lifecycle
|
|
245
|
+
6. Verify session state reached `cleanup-done` (or intentional re-entry state)
|