xtrm-tools 2.1.2 → 2.1.3
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/README.md +37 -30
- package/cli/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -198,19 +198,23 @@ Task intake and service routing for Docker service projects.
|
|
|
198
198
|
|
|
199
199
|
### Standalone Hooks
|
|
200
200
|
|
|
201
|
-
**
|
|
202
|
-
- Trigger: PreToolUse (
|
|
203
|
-
- Purpose:
|
|
201
|
+
**main-guard.mjs**
|
|
202
|
+
- Trigger: PreToolUse (Write|Edit|MultiEdit)
|
|
203
|
+
- Purpose: Blocks direct edits on protected branches with structured deny output
|
|
204
204
|
|
|
205
205
|
**type-safety-enforcement.py**
|
|
206
206
|
- Trigger: PreToolUse (Bash|Edit|Write)
|
|
207
207
|
- Purpose: Enforce type safety in Python code
|
|
208
208
|
|
|
209
|
-
**
|
|
210
|
-
- Trigger:
|
|
211
|
-
- Purpose:
|
|
209
|
+
**agent_context.py**
|
|
210
|
+
- Trigger: Support module used by Python hooks
|
|
211
|
+
- Purpose: Shared hook input/output helper
|
|
212
212
|
|
|
213
|
-
**
|
|
213
|
+
**beads gate hooks** (installed with `xtrm install all`, or included when beads+dolt is available):
|
|
214
|
+
- `beads-edit-gate.mjs` (PreToolUse)
|
|
215
|
+
- `beads-commit-gate.mjs` (PreToolUse)
|
|
216
|
+
- `beads-stop-gate.mjs` (Stop)
|
|
217
|
+
- `beads-close-memory-prompt.mjs` (PostToolUse)
|
|
214
218
|
|
|
215
219
|
## Project Skills
|
|
216
220
|
|
|
@@ -301,11 +305,12 @@ npm link # registers `xtrm` globally
|
|
|
301
305
|
xtrm <command> [options]
|
|
302
306
|
```
|
|
303
307
|
|
|
304
|
-
| Command
|
|
305
|
-
|
|
|
306
|
-
| `
|
|
307
|
-
| `status`
|
|
308
|
-
| `reset`
|
|
308
|
+
| Command | Description |
|
|
309
|
+
| --------- | -------------------------------- |
|
|
310
|
+
| `install` | Install/update tools |
|
|
311
|
+
| `status` | Show diff without making changes |
|
|
312
|
+
| `reset` | Clear saved preferences |
|
|
313
|
+
| `help` | Show command/component overview |
|
|
309
314
|
|
|
310
315
|
---
|
|
311
316
|
|
|
@@ -329,7 +334,7 @@ xtrm install --backport # reverse direction: copy drifted local edits → re
|
|
|
329
334
|
- **cli-table3 plan table**: Formatted table showing Target / + New / ↑ Update / ! Drift / Total
|
|
330
335
|
- **boxen summary card**: Completion summary with green/yellow border based on drift
|
|
331
336
|
- **Themed output**: Semantic colors (success, error, warning, muted, accent) via `theme.ts`
|
|
332
|
-
- **
|
|
337
|
+
- **beads+dolt prerequisite flow**: `xtrm install` / `xtrm install all` check workflow backend and can install missing deps
|
|
333
338
|
- **Auto-detection**: Scans Claude Code targets automatically (`~/.claude`, `%APPDATA%/Claude` on Windows) plus the `.agents/skills` cache for skills-only sync
|
|
334
339
|
- **Inline sync**: `status` command offers to apply sync immediately after showing changes
|
|
335
340
|
- **Single confirmation**: See full plan across all targets, confirm once
|
|
@@ -395,8 +400,8 @@ xtrm reset
|
|
|
395
400
|
|
|
396
401
|
1. Clone this repository:
|
|
397
402
|
```bash
|
|
398
|
-
git clone https://github.com/Jaggerxtrm/
|
|
399
|
-
cd
|
|
403
|
+
git clone https://github.com/Jaggerxtrm/xtrm-tools.git
|
|
404
|
+
cd xtrm-tools
|
|
400
405
|
```
|
|
401
406
|
|
|
402
407
|
2. Copy skills to Claude Code:
|
|
@@ -457,9 +462,9 @@ If you use Gemini CLI or Qwen CLI, you can still use xtrm-tools skills and hooks
|
|
|
457
462
|
|
|
458
463
|
## Configuration
|
|
459
464
|
|
|
460
|
-
### MCP Servers (
|
|
465
|
+
### MCP Servers (Unified CLI Sync)
|
|
461
466
|
|
|
462
|
-
MCP servers are configured from canonical sources
|
|
467
|
+
MCP servers are configured from canonical sources and synced via official CLI commands.
|
|
463
468
|
|
|
464
469
|
**Core Servers** (installed by default):
|
|
465
470
|
- **serena**: Code analysis (requires `uvx`, auto project detection)
|
|
@@ -484,22 +489,24 @@ MCP servers are configured from canonical sources with automatic format adaptati
|
|
|
484
489
|
- **Persistence:** Values preserved across syncs; never overwritten
|
|
485
490
|
- Edit `~/.config/xtrm-tools/.env` to add your API keys manually
|
|
486
491
|
|
|
487
|
-
**Unified MCP CLI Sync
|
|
488
|
-
- Uses official `mcp add
|
|
492
|
+
**Unified MCP CLI Sync**:
|
|
493
|
+
- Uses official `claude mcp add` / `claude mcp list` commands
|
|
489
494
|
- **Idempotent:** Re-running is always safe — skips already-installed servers
|
|
490
495
|
- **Deduplication:** Prevents same server from syncing N times when multiple dirs selected
|
|
491
|
-
- **Interactive consent:** Multiselect prompt (space to toggle, all pre-selected)
|
|
492
496
|
- **Prerequisite auto-install:** Runs `npm install -g gitnexus` automatically when selected
|
|
493
497
|
- **Post-install guidance:** Shows required next steps (e.g., `npx gitnexus analyze`)
|
|
494
498
|
- **Timeout protection:** 10s timeout on CLI calls to prevent hangs
|
|
495
499
|
- **Clean errors:** User-friendly messages (no stack traces)
|
|
496
500
|
|
|
497
|
-
**
|
|
498
|
-
-
|
|
499
|
-
-
|
|
501
|
+
**Scopes**:
|
|
502
|
+
- Global installs (`xtrm install`, `xtrm install all`, `xtrm install basic`) sync MCP into Claude global config
|
|
503
|
+
- Project installs (`xtrm install project <name|all>`) sync core MCP at project scope (`-s project`)
|
|
500
504
|
|
|
501
|
-
**
|
|
502
|
-
-
|
|
505
|
+
**Supported Agent**:
|
|
506
|
+
- Claude Code
|
|
507
|
+
|
|
508
|
+
**Deprecated**:
|
|
509
|
+
- JSON file MCP sync (superseded by official CLI method)
|
|
503
510
|
- Repo `.env` files — use centralized `~/.config/xtrm-tools/.env`
|
|
504
511
|
|
|
505
512
|
**Documentation**: See [docs/mcp-servers-config.md](docs/mcp-servers-config.md) for complete setup guide.
|
|
@@ -526,7 +533,7 @@ Adjust hook execution timeouts in `settings.json`:
|
|
|
526
533
|
"hooks": {
|
|
527
534
|
"UserPromptSubmit": [{
|
|
528
535
|
"hooks": [{
|
|
529
|
-
"timeout": 5000 // Timeout in milliseconds (5000ms = 5 seconds)
|
|
536
|
+
"timeout": 5000 // Timeout in milliseconds (5000ms = 5 seconds)
|
|
530
537
|
}]
|
|
531
538
|
}]
|
|
532
539
|
}
|
|
@@ -574,7 +581,7 @@ Project-specific operational knowledge system for Docker service projects. Gives
|
|
|
574
581
|
|
|
575
582
|
```bash
|
|
576
583
|
cd ~/projects/my-project
|
|
577
|
-
python3 /path/to/
|
|
584
|
+
python3 /path/to/xtrm-tools/project-skills/service-skills-set/install-service-skills.py
|
|
578
585
|
```
|
|
579
586
|
|
|
580
587
|
- Idempotent — safe to re-run after updates
|
|
@@ -657,7 +664,7 @@ See [CHANGELOG.md](CHANGELOG.md) for complete version history.
|
|
|
657
664
|
## Repository Structure
|
|
658
665
|
|
|
659
666
|
```
|
|
660
|
-
|
|
667
|
+
xtrm-tools/
|
|
661
668
|
├── README.md # This file
|
|
662
669
|
├── CHANGELOG.md # Version history
|
|
663
670
|
├── ROADMAP.md # Future plans
|
|
@@ -667,7 +674,7 @@ jaggers-agent-tools/
|
|
|
667
674
|
├── cli/ # Config Manager CLI (TypeScript)
|
|
668
675
|
│ ├── src/
|
|
669
676
|
│ │ ├── index.ts # Entry point (Commander program)
|
|
670
|
-
│ │ ├── commands/ #
|
|
677
|
+
│ │ ├── commands/ # install.ts, install-project.ts, status.ts, reset.ts, help.ts
|
|
671
678
|
│ │ ├── adapters/ # base, claude, gemini, qwen, registry
|
|
672
679
|
│ │ ├── core/ # context, diff, sync-executor, manifest, rollback
|
|
673
680
|
│ │ ├── utils/ # hash, atomic-config, config-adapter, env-manager, theme…
|
|
@@ -708,7 +715,7 @@ jaggers-agent-tools/
|
|
|
708
715
|
│ ├── type-safety-enforcement.py # Type safety
|
|
709
716
|
│ ├── gitnexus/
|
|
710
717
|
│ │ └── gitnexus-hook.cjs # PreToolUse knowledge graph enrichment
|
|
711
|
-
│ └──
|
|
718
|
+
│ └── main-guard.mjs # Protected-branch edit guard
|
|
712
719
|
│
|
|
713
720
|
├── config/ # Canonical configuration
|
|
714
721
|
│ ├── mcp_servers.json # Core MCP servers
|
package/cli/package.json
CHANGED