@imdeadpool/guardex 5.0.12 → 5.0.13
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 +10 -4
- package/bin/multiagent-safety.js +458 -60
- package/package.json +1 -1
- package/templates/AGENTS.multiagent-safety.md +18 -6
- package/templates/githooks/post-merge +43 -0
- package/templates/githooks/pre-commit +24 -15
- package/templates/githooks/pre-push +3 -3
- package/templates/scripts/agent-branch-finish.sh +0 -22
- package/templates/scripts/agent-branch-start.sh +66 -1
- package/templates/scripts/codex-agent.sh +82 -27
- package/templates/scripts/openspec/init-change-workspace.sh +87 -0
package/README.md
CHANGED
|
@@ -62,14 +62,14 @@ python3 scripts/agent-file-locks.py claim --branch "$(git rev-parse --abbrev-ref
|
|
|
62
62
|
npm test
|
|
63
63
|
|
|
64
64
|
# 4) Finish (commit/push/PR/merge flow)
|
|
65
|
-
bash scripts/agent-branch-finish.sh --branch "$(git rev-parse --abbrev-ref HEAD)"
|
|
65
|
+
bash scripts/agent-branch-finish.sh --branch "$(git rev-parse --abbrev-ref HEAD)" --base dev --via-pr --wait-for-merge
|
|
66
66
|
|
|
67
67
|
# 5) Optional cleanup after merge
|
|
68
68
|
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
|
|
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 `dev`.
|
|
73
73
|
|
|
74
74
|
If you run Codex in multiple existing agent worktrees directly (for example from VS Code Source Control), finalize all completed branches with:
|
|
75
75
|
|
|
@@ -342,10 +342,12 @@ openspec update
|
|
|
342
342
|
|
|
343
343
|
### OpenSpec in agent sub-branches
|
|
344
344
|
|
|
345
|
-
- `scripts/codex-agent.sh` enforces
|
|
346
|
-
- `scripts/agent-branch-start.sh` can
|
|
345
|
+
- `scripts/codex-agent.sh` enforces OpenSpec workspaces before it launches Codex in each sandbox branch/worktree.
|
|
346
|
+
- `scripts/agent-branch-start.sh` can scaffold both `openspec/changes/<agent-branch-slug>/` and `openspec/plan/<agent-branch-slug>/` when you set `MUSAFETY_OPENSPEC_AUTO_INIT=true`.
|
|
347
347
|
- Set `MUSAFETY_OPENSPEC_AUTO_INIT=false` (default for `agent-branch-start`) to skip branch-start auto-bootstrap.
|
|
348
348
|
- Set `MUSAFETY_OPENSPEC_PLAN_SLUG=<kebab-case-slug>` to force a specific plan workspace name.
|
|
349
|
+
- Set `MUSAFETY_OPENSPEC_CHANGE_SLUG=<kebab-case-slug>` to force a specific change workspace name.
|
|
350
|
+
- Set `MUSAFETY_OPENSPEC_CAPABILITY_SLUG=<kebab-case-slug>` to override the default capability folder used for `spec.md` scaffolding.
|
|
349
351
|
|
|
350
352
|
## Security and maintenance posture
|
|
351
353
|
|
|
@@ -364,6 +366,10 @@ npm pack --dry-run
|
|
|
364
366
|
|
|
365
367
|
## Release notes
|
|
366
368
|
|
|
369
|
+
### v5.0.13
|
|
370
|
+
|
|
371
|
+
- Bumped package version from `5.0.12` to `5.0.13` for the next npm publish.
|
|
372
|
+
|
|
367
373
|
### v5.0.12
|
|
368
374
|
|
|
369
375
|
- Bumped package version from `5.0.11` to `5.0.12` for the next npm publish.
|