xtrm-tools 0.5.6 → 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/dist/index.cjs +102 -9
- package/cli/dist/index.cjs.map +1 -1
- package/cli/package.json +1 -1
- package/hooks/README.md +14 -0
- package/package.json +1 -1
package/cli/package.json
CHANGED
package/hooks/README.md
CHANGED
|
@@ -10,6 +10,20 @@ Hooks intercept specific events in the Claude Code lifecycle. Following architec
|
|
|
10
10
|
|
|
11
11
|
## Project Hooks
|
|
12
12
|
|
|
13
|
+
### main-guard.mjs
|
|
14
|
+
|
|
15
|
+
**Purpose**: Enforces PR-only merge workflow with full git protection. Blocks direct commits and dangerous `git checkout`, `git reset`, and file writes via Bash on protected branches (`main`/`master`).
|
|
16
|
+
|
|
17
|
+
**Trigger**: PreToolUse (Write|Edit|MultiEdit|Serena edit tools|Bash)
|
|
18
|
+
|
|
19
|
+
**Configuration**: Installed automatically to protect the main branch from unreviewed changes.
|
|
20
|
+
|
|
21
|
+
### main-guard-post-push.mjs
|
|
22
|
+
|
|
23
|
+
**Purpose**: Workflow enforcement. After pushing a feature branch, reminds to open a PR, merge using `gh pr merge --squash`, and sync local via `git reset --hard origin/main`.
|
|
24
|
+
|
|
25
|
+
**Trigger**: PostToolUse (Bash: git push)
|
|
26
|
+
|
|
13
27
|
### gitnexus-hook.cjs
|
|
14
28
|
|
|
15
29
|
**Purpose**: Enriches tool calls with knowledge graph context via `gitnexus augment`. Now supports Serena tools and uses a deduplication cache for efficiency.
|