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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xtrm-cli",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "description": "Claude Code tools installer (skills, hooks, MCP servers)",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xtrm-tools",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "description": "Claude Code tools installer (skills, hooks, MCP servers)",
5
5
  "license": "MIT",
6
6
  "type": "module",