xtrm-tools 0.5.0 → 0.5.1

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.0",
3
+ "version": "0.5.1",
4
4
  "description": "Claude Code tools installer (skills, hooks, MCP servers)",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
@@ -13,8 +13,8 @@ import {
13
13
  resolveClaimAndWorkState,
14
14
  decideCommitGate,
15
15
  } from './beads-gate-core.mjs';
16
- import { withSafeBdContext, isMemoryGatePending, isMemoryAckCommand } from './beads-gate-utils.mjs';
17
- import { commitBlockMessage, memoryGatePendingMessage } from './beads-gate-messages.mjs';
16
+ import { withSafeBdContext } from './beads-gate-utils.mjs';
17
+ import { commitBlockMessage } from './beads-gate-messages.mjs';
18
18
 
19
19
  const input = readHookInput();
20
20
  if (!input) process.exit(0);
@@ -29,16 +29,6 @@ withSafeBdContext(() => {
29
29
  const ctx = resolveSessionContext(input);
30
30
  if (!ctx || !ctx.isBeadsProject) process.exit(0);
31
31
 
32
- // Memory gate: block all Bash except acknowledgment commands while gate pending
33
- if (ctx.sessionId && isMemoryGatePending(ctx.sessionId, ctx.cwd)) {
34
- if (!isMemoryAckCommand(commandUnquoted)) {
35
- process.stdout.write(JSON.stringify({ decision: 'block', reason: memoryGatePendingMessage() }));
36
- process.stdout.write('\n');
37
- process.exit(0);
38
- }
39
- process.exit(0); // memory-ack command — allow
40
- }
41
-
42
32
  // Only intercept git commit for the claim-gate check
43
33
  if (!/\bgit\s+commit\b/.test(commandUnquoted)) process.exit(0);
44
34
 
@@ -13,8 +13,8 @@ import {
13
13
  resolveClaimAndWorkState,
14
14
  decideEditGate,
15
15
  } from './beads-gate-core.mjs';
16
- import { withSafeBdContext, isMemoryGatePending } from './beads-gate-utils.mjs';
17
- import { editBlockMessage, editBlockFallbackMessage, memoryGatePendingMessage } from './beads-gate-messages.mjs';
16
+ import { withSafeBdContext } from './beads-gate-utils.mjs';
17
+ import { editBlockMessage, editBlockFallbackMessage } from './beads-gate-messages.mjs';
18
18
 
19
19
  const input = readHookInput();
20
20
  if (!input) process.exit(0);
@@ -23,13 +23,6 @@ withSafeBdContext(() => {
23
23
  const ctx = resolveSessionContext(input);
24
24
  if (!ctx || !ctx.isBeadsProject) process.exit(0);
25
25
 
26
- // Memory gate takes priority: block edits while pending acknowledgment
27
- if (ctx.sessionId && isMemoryGatePending(ctx.sessionId, ctx.cwd)) {
28
- process.stdout.write(JSON.stringify({ decision: 'block', reason: memoryGatePendingMessage() }));
29
- process.stdout.write('\n');
30
- process.exit(0);
31
- }
32
-
33
26
  const state = resolveClaimAndWorkState(ctx);
34
27
  const decision = decideEditGate(ctx, state);
35
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xtrm-tools",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Claude Code tools installer (skills, hooks, MCP servers)",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -8,7 +8,8 @@
8
8
  "cli"
9
9
  ],
10
10
  "bin": {
11
- "xtrm": "cli/dist/index.cjs"
11
+ "xtrm": "cli/dist/index.cjs",
12
+ "xt": "cli/dist/index.cjs"
12
13
  },
13
14
  "files": [
14
15
  "README.md",
@@ -54,7 +55,7 @@
54
55
  },
55
56
  "dependencies": {
56
57
  "comment-json": "^4.2.3",
57
- "conf": "^12.0.2",
58
+ "conf": "^15.1.0",
58
59
  "dotenv": "^17.3.1",
59
60
  "fs-extra": "^11.2.0",
60
61
  "kleur": "^4.1.5",