@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 +6 -0
- package/bin/multiagent-safety.js +23 -0
- package/package.json +1 -1
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.
|
package/bin/multiagent-safety.js
CHANGED
|
@@ -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
|
}
|