@imdeadpool/guardex 5.0.5 → 5.0.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/README.md +29 -4
- package/bin/multiagent-safety.js +496 -12
- package/package.json +3 -2
- package/templates/AGENTS.multiagent-safety.md +3 -1
- package/templates/githooks/pre-commit +32 -2
- package/templates/githooks/pre-push +18 -3
- package/templates/scripts/agent-branch-finish.sh +1 -1
- package/templates/scripts/agent-branch-start.sh +6 -39
- package/templates/scripts/agent-worktree-prune.sh +103 -1
- package/templates/scripts/codex-agent.sh +219 -7
package/README.md
CHANGED
|
@@ -69,6 +69,7 @@ gx cleanup --branch "$(git rev-parse --abbrev-ref HEAD)"
|
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
If you use `scripts/codex-agent.sh`, the finish flow is auto-run after the Codex session exits.
|
|
72
|
+
It auto-commits sandbox changes, retries once after syncing if the branch moved behind base during the run, then pushes/opens PR merge flow against the current base branch.
|
|
72
73
|
|
|
73
74
|
## Visual workflow
|
|
74
75
|
|
|
@@ -97,6 +98,9 @@ gx status
|
|
|
97
98
|
# setup and repair
|
|
98
99
|
gx setup
|
|
99
100
|
gx doctor
|
|
101
|
+
# setup + repair another repo without switching your current repo checkout
|
|
102
|
+
gx setup --target /path/to/repo
|
|
103
|
+
gx doctor --target /path/to/repo
|
|
100
104
|
|
|
101
105
|
# protected branch management
|
|
102
106
|
gx protect list
|
|
@@ -108,9 +112,9 @@ gx sync --check
|
|
|
108
112
|
gx sync
|
|
109
113
|
|
|
110
114
|
# continuously monitor open PRs targeting current branch and dispatch codex-agent review/merge tasks
|
|
111
|
-
|
|
115
|
+
gx review --interval 30
|
|
112
116
|
|
|
113
|
-
# cleanup merged agent branches
|
|
117
|
+
# cleanup merged agent branches and hide clean stale agent worktrees
|
|
114
118
|
gx cleanup
|
|
115
119
|
|
|
116
120
|
# scan/report
|
|
@@ -123,7 +127,7 @@ gx report scorecard --repo github.com/recodeecom/multiagent-safety
|
|
|
123
127
|
Run this in your local shell to keep watching PRs targeting the current branch (or `--base <branch>`):
|
|
124
128
|
|
|
125
129
|
```sh
|
|
126
|
-
|
|
130
|
+
gx review --interval 30
|
|
127
131
|
```
|
|
128
132
|
|
|
129
133
|
Useful flags:
|
|
@@ -143,9 +147,12 @@ Note: the monitor dispatches Codex through explicit `--task/--agent/--base` flag
|
|
|
143
147
|
- `gx setup` checks GitHub CLI (`gh`) and prints install guidance if missing.
|
|
144
148
|
- Interactive self-update prompt defaults to **No** (`[y/N]`).
|
|
145
149
|
- In initialized repos, `setup`/`install`/`fix` block protected-base writes unless explicitly overridden.
|
|
146
|
-
-
|
|
150
|
+
- Direct commits/pushes to protected branches are blocked by default.
|
|
151
|
+
- Exception: VS Code Source Control commits are allowed on protected branches that exist only locally (no upstream and no remote branch).
|
|
152
|
+
- Optional repo override for manual VS Code protected-branch writes: `git config multiagent.allowVscodeProtectedBranchWrites true`.
|
|
147
153
|
- Codex/agent sessions stay blocked on protected branches and must use `agent/*` branch + PR workflow.
|
|
148
154
|
- On protected `main`, `gx doctor` auto-runs in a sandbox agent branch/worktree.
|
|
155
|
+
- In-place agent branching is disabled; `scripts/agent-branch-start.sh` always creates a separate worktree to keep your visible local/base branch unchanged.
|
|
149
156
|
- `scripts/agent-branch-start.sh` hydrates `scripts/codex-agent.sh` into new sandbox worktrees when missing, so auto-finish launcher flow stays available.
|
|
150
157
|
|
|
151
158
|
## Configure protected branches
|
|
@@ -238,6 +245,24 @@ npm pack --dry-run
|
|
|
238
245
|
|
|
239
246
|
## Release notes
|
|
240
247
|
|
|
248
|
+
### v5.0.8
|
|
249
|
+
|
|
250
|
+
- Fixed `bin/multiagent-safety.js` syntax regressions in the doctor sandbox flow (`Unexpected identifier` / `Unexpected end of input`) that were breaking CLI execution and CI tests.
|
|
251
|
+
- Restored `scripts/codex-agent.sh` from `templates/scripts/codex-agent.sh` so critical runtime helper parity checks pass in clean CI clones.
|
|
252
|
+
- Bumped package version from `5.0.7` to `5.0.8` for the next npm publish.
|
|
253
|
+
|
|
254
|
+
### v5.0.7
|
|
255
|
+
### Unreleased (generated draft, not versioned yet)
|
|
256
|
+
|
|
257
|
+
- Add the user-facing changes for the next release here before assigning a version number.
|
|
258
|
+
- Keep this section focused on behavior changes (`Added`, `Changed`, `Fixed`) rather than version-bump-only notes.
|
|
259
|
+
|
|
260
|
+
### v5.0.6
|
|
261
|
+
|
|
262
|
+
- `gx cleanup` and auto-finish cleanup now prune clean agent worktrees by default, so VS Code Source Control focuses on your local branch plus worktrees with active changes.
|
|
263
|
+
- Added `gx cleanup --keep-clean-worktrees` to opt out and keep clean worktrees visible.
|
|
264
|
+
- Bumped package version from `5.0.5` to `5.0.6` for the next npm publish.
|
|
265
|
+
|
|
241
266
|
### v5.0.5
|
|
242
267
|
|
|
243
268
|
- Bumped package version from `5.0.4` to `5.0.5` so npm publish can proceed with the next patch release.
|