@imdeadpool/guardex 7.0.18 → 7.0.19
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 +28 -19
- package/bin/multiagent-safety.js +199 -122
- package/package.json +1 -1
- package/templates/AGENTS.multiagent-safety.md +3 -0
- package/templates/codex/skills/gitguardex/SKILL.md +1 -1
- package/templates/codex/skills/guardex-merge-skills-to-dev/SKILL.md +3 -3
- package/templates/githooks/pre-commit +21 -2
- package/templates/scripts/agent-branch-finish.sh +32 -19
- package/templates/scripts/agent-branch-merge.sh +24 -5
- package/templates/scripts/agent-branch-start.sh +23 -29
- package/templates/scripts/agent-file-locks.py +11 -11
- package/templates/scripts/codex-agent.sh +37 -55
- package/templates/scripts/review-bot-watch.sh +30 -7
- package/templates/vscode/guardex-active-agents/README.md +3 -2
- package/templates/vscode/guardex-active-agents/extension.js +49 -9
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ npm i -g @imdeadpool/guardex
|
|
|
49
49
|
|
|
50
50
|
<p align="center">
|
|
51
51
|
<sub>
|
|
52
|
-
Then <code>cd</code> into your repo and run <code>gx setup</code> — hook shims,
|
|
52
|
+
Then <code>cd</code> into your repo and run <code>gx setup</code> — hook shims, repo state,
|
|
53
53
|
and OMX / OpenSpec / caveman wiring all scaffold in one go.
|
|
54
54
|
</sub>
|
|
55
55
|
</p>
|
|
@@ -88,7 +88,7 @@ cd /path/to/your/repo
|
|
|
88
88
|
gx setup
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
That's it. Install and update via `@imdeadpool/guardex`. Setup installs the minimal repo footprint: managed hook
|
|
91
|
+
That's it. Install and update via `@imdeadpool/guardex`. Setup installs the minimal repo footprint: managed hook shims, repo-local state, AGENTS wiring, OpenSpec/caveman/OMX scaffolding, and a small set of repo-local helper assets. Aliases: `gx` (preferred), `gitguardex` (full), `guardex` (legacy compatibility).
|
|
92
92
|
|
|
93
93
|
---
|
|
94
94
|
|
|
@@ -178,7 +178,7 @@ Before you branch, repair, or start agents, run plain `gx`. It gives you a one-s
|
|
|
178
178
|
|
|
179
179
|

|
|
180
180
|
|
|
181
|
-
Use `gx setup` the first time you wire GitGuardex into a repo. It bootstraps the managed hook
|
|
181
|
+
Use `gx setup` the first time you wire GitGuardex into a repo. It bootstraps the managed hook shims, repo-local state, and optional workspace/OpenSpec wiring. If the repo drifts later, use `gx doctor` as the repair path: it reapplies the managed safety files, verifies the setup, and on protected `main` it auto-sandboxes the repair so your visible base branch stays clean.
|
|
182
182
|
|
|
183
183
|
---
|
|
184
184
|
|
|
@@ -203,7 +203,7 @@ gx branch finish \
|
|
|
203
203
|
--base main --via-pr --wait-for-merge --cleanup
|
|
204
204
|
```
|
|
205
205
|
|
|
206
|
-
If you
|
|
206
|
+
If you launch Codex through Guardex, the finish flow runs automatically when the Codex session exits — it auto-commits, retries once after syncing if the base moved during the run, then pushes and opens the PR.
|
|
207
207
|
|
|
208
208
|
GitGuardex normally prunes merged sandboxes for you as part of the finish flow. If you simply do not want a local sandbox/worktree anymore, remove that worktree directly; delete the branch too only if you are intentionally abandoning that lane:
|
|
209
209
|
|
|
@@ -245,7 +245,7 @@ To install the real companion into local VS Code from a GitGuardex-wired repo:
|
|
|
245
245
|
node scripts/install-vscode-active-agents-extension.js
|
|
246
246
|
```
|
|
247
247
|
|
|
248
|
-
It adds an `Active Agents` view to the Source Control container, groups each live repo into `ACTIVE AGENTS` and `CHANGES` sections, reads `.omx/state/active-sessions/*.json`, derives `thinking` versus `working` from each live sandbox worktree, and
|
|
248
|
+
It adds an `Active Agents` view to the Source Control container, groups each live repo into `ACTIVE AGENTS` and `CHANGES` sections, splits `ACTIVE AGENTS` into `WORKING NOW` and `THINKING` when both states are present, reads `.omx/state/active-sessions/*.json`, derives `thinking` versus `working` from each live sandbox worktree, and surfaces a working-count summary in the repo/header affordances. Reload the VS Code window after install.
|
|
249
249
|
|
|
250
250
|
---
|
|
251
251
|
|
|
@@ -542,7 +542,7 @@ Expanded flow:
|
|
|
542
542
|
|
|
543
543
|
### OpenSpec in agent sub-branches
|
|
544
544
|
|
|
545
|
-
- The
|
|
545
|
+
- The Guardex Codex launcher enforces OpenSpec workspaces before launching Codex.
|
|
546
546
|
- `gx branch start` can scaffold both `openspec/changes/<slug>/` and `openspec/plan/<slug>/` when `GUARDEX_OPENSPEC_AUTO_INIT=true`.
|
|
547
547
|
- The collaboration section in `tasks.md` is there for real cleanup handoffs too. If the first Codex/Claude session finishes the implementation work but hits a usage limit before `agent-branch-finish --cleanup`, hand the same sandbox to another agent, let that agent finish cleanup, and record the join/handoff in the change task.
|
|
548
548
|
|
|
@@ -560,26 +560,29 @@ Environment variables:
|
|
|
560
560
|
## Files installed by setup
|
|
561
561
|
|
|
562
562
|
```text
|
|
563
|
+
AGENTS.md # managed multi-agent block appended/refreshed in place
|
|
563
564
|
.githooks/pre-commit # shim -> gx hook run pre-commit
|
|
564
565
|
.githooks/pre-push # shim -> gx hook run pre-push
|
|
565
566
|
.githooks/post-merge # shim -> gx hook run post-merge
|
|
566
567
|
.githooks/post-checkout # shim -> gx hook run post-checkout
|
|
567
|
-
scripts/
|
|
568
|
-
scripts/
|
|
569
|
-
scripts/agent-
|
|
570
|
-
scripts/
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
scripts/openspec/init-plan-workspace.sh # shim -> CLI-owned OpenSpec init
|
|
575
|
-
scripts/openspec/init-change-workspace.sh # shim -> CLI-owned OpenSpec init
|
|
576
|
-
.omc/agent-worktrees
|
|
577
|
-
.omx/state/agent-file-locks.json
|
|
568
|
+
scripts/guardex-env.sh # repo toggle + hook/helper env bridge
|
|
569
|
+
scripts/guardex-docker-loader.sh # compose env/loader helper
|
|
570
|
+
scripts/agent-session-state.js # active-session state helper
|
|
571
|
+
scripts/install-vscode-active-agents-extension.js
|
|
572
|
+
.omc/agent-worktrees # Claude sandbox root
|
|
573
|
+
.omx/agent-worktrees # Codex sandbox root
|
|
574
|
+
.omx/state/agent-file-locks.json # file-lock registry
|
|
578
575
|
.github/pull.yml.example
|
|
579
576
|
.github/workflows/cr.yml
|
|
577
|
+
vscode/guardex-active-agents/package.json
|
|
578
|
+
vscode/guardex-active-agents/extension.js
|
|
579
|
+
vscode/guardex-active-agents/session-schema.js
|
|
580
|
+
vscode/guardex-active-agents/README.md
|
|
580
581
|
```
|
|
581
582
|
|
|
582
|
-
|
|
583
|
+
Legacy compatibility note: older repos may still contain repo-local workflow scripts under `scripts/`. Direct `gx branch ...`, `gx locks ...`, `gx finish`, `gx cleanup`, `gx merge`, and `gx migrate` do not require them. `gx migrate` removes those leftover workflow shims by default. The CLI still honors repo-local `scripts/review-bot-watch.sh` and `scripts/codex-agent.sh` when they are already present so older repos can keep working during migration.
|
|
584
|
+
|
|
585
|
+
Optional Codex/Claude user-level companions still install with `gx install-agent-skills`; they are not copied into each repo.
|
|
583
586
|
|
|
584
587
|
---
|
|
585
588
|
|
|
@@ -642,10 +645,16 @@ npm pack --dry-run
|
|
|
642
645
|
<details>
|
|
643
646
|
<summary><strong>v7.x</strong></summary>
|
|
644
647
|
|
|
648
|
+
### v7.0.19
|
|
649
|
+
- `gx setup` and `gx doctor` now accept targeted managed-file recovery after `--force`, so `gx doctor --force scripts/review-bot-watch.sh` repairs the named managed file instead of failing on an unknown argument.
|
|
650
|
+
- Managed-file conflict output now teaches both recovery forms directly: `--force <managed-path>` for one file and plain `--force` for whole-surface rewrites.
|
|
651
|
+
- GitGuardex now keeps small-task routing caveman-only by default and makes working VS Code agent lanes easier to spot at a glance while keeping the CLI-owned install-surface rollout intact.
|
|
652
|
+
- Bumped the release from `7.0.18` → `7.0.19` so the shipped setup/doctor recovery and UX refinements land on a fresh publishable npm version.
|
|
653
|
+
|
|
645
654
|
### v7.0.18
|
|
646
655
|
- GitGuardex now keeps the install workflow in `gx` itself: `gx branch ...`, `gx locks ...`, `gx worktree prune`, `gx migrate`, and user-level agent-skill install now own the agent lifecycle instead of teaching pasted repo scripts as the primary surface.
|
|
647
656
|
- Fresh installs switch repo hooks to tiny `gx hook run ...` shims, stop copying repo-local workflow implementations and repo-local skills, and stop injecting Guardex-managed `agent:*` package scripts into consumer repos.
|
|
648
|
-
- `gx migrate` can move older repos onto the smaller CLI-owned install surface while preserving the managed AGENTS block, lock registry state, repo-local
|
|
657
|
+
- `gx migrate` can move older repos onto the smaller CLI-owned install surface while preserving the managed AGENTS block, lock registry state, hook shims, required gitignore entries, and the repo-local helper assets that still carry local state.
|
|
649
658
|
- Bumped the release from `7.0.17` → `7.0.18` so the shipped CLI-owned install-surface changes land on a fresh publishable npm version.
|
|
650
659
|
|
|
651
660
|
### v7.0.17
|