@imdeadpool/guardex 5.0.15 → 5.0.16

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 CHANGED
@@ -372,6 +372,12 @@ npm pack --dry-run
372
372
 
373
373
  ## Release notes
374
374
 
375
+ ### v5.0.16
376
+
377
+ - Fixed `gx doctor` runtime crash (`parseDoctorArgs is not defined`) by restoring the doctor argument parser for `--target` and `--strict`.
378
+ - Added regression coverage that asserts the doctor parser function exists in `bin/multiagent-safety.js`.
379
+ - Bumped package version from `5.0.15` to `5.0.16`.
380
+
375
381
  ### v5.0.15
376
382
 
377
383
  - Added `gx setup --parent-workspace-view` to generate a parent-folder VS Code workspace (`../<repo>-branches.code-workspace`) that shows both the base repo and `.omx/agent-worktrees` in Source Control.
@@ -927,6 +927,29 @@ function parseSetupArgs(rawArgs, defaults) {
927
927
  return parseCommonArgs(forwardedArgs, setupDefaults);
928
928
  }
929
929
 
930
+ function parseDoctorArgs(rawArgs) {
931
+ const options = {
932
+ target: process.cwd(),
933
+ strict: false,
934
+ };
935
+
936
+ for (let index = 0; index < rawArgs.length; index += 1) {
937
+ const arg = rawArgs[index];
938
+ if (arg === '--target' || arg === '-t') {
939
+ options.target = requireValue(rawArgs, index, '--target');
940
+ index += 1;
941
+ continue;
942
+ }
943
+ if (arg === '--strict') {
944
+ options.strict = true;
945
+ continue;
946
+ }
947
+ throw new Error(`Unknown option: ${arg}`);
948
+ }
949
+
950
+ return options;
951
+ }
952
+
930
953
  function normalizeWorkspacePath(relativePath) {
931
954
  return String(relativePath || '.').replace(/\\/g, '/');
932
955
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imdeadpool/guardex",
3
- "version": "5.0.15",
3
+ "version": "5.0.16",
4
4
  "description": "GuardeX: the Guardian T-Rex for your repo, with hardened multi-agent git guardrails.",
5
5
  "license": "MIT",
6
6
  "preferGlobal": true,