@imdeadpool/guardex 5.0.15 → 5.0.17
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 +12 -0
- package/bin/multiagent-safety.js +32 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -372,6 +372,18 @@ npm pack --dry-run
|
|
|
372
372
|
|
|
373
373
|
## Release notes
|
|
374
374
|
|
|
375
|
+
### v5.0.17
|
|
376
|
+
|
|
377
|
+
- Bumped package version from `5.0.16` to `5.0.17` for the next npm publish.
|
|
378
|
+
|
|
379
|
+
### v5.0.16
|
|
380
|
+
|
|
381
|
+
- Fixed `gx doctor` runtime crash (`parseDoctorArgs is not defined`) by restoring the doctor argument parser for `--target` and `--strict`.
|
|
382
|
+
- Fixed `gx doctor` command routing so the repair-first doctor flow remains the active command path (duplicate legacy doctor definition no longer overrides it).
|
|
383
|
+
- Updated worktree change detection to run `git status --porcelain --untracked-files=normal --` for consistent normal untracked-file behavior.
|
|
384
|
+
- Added regression coverage that asserts the doctor parser function exists in `bin/multiagent-safety.js`.
|
|
385
|
+
- Bumped package version from `5.0.15` to `5.0.16`.
|
|
386
|
+
|
|
375
387
|
### v5.0.15
|
|
376
388
|
|
|
377
389
|
- 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
|
}
|
|
@@ -2094,7 +2117,14 @@ function mapWorktreePathsByBranch(repoRoot) {
|
|
|
2094
2117
|
}
|
|
2095
2118
|
|
|
2096
2119
|
function hasSignificantWorkingTreeChanges(worktreePath) {
|
|
2097
|
-
const result = run('git', [
|
|
2120
|
+
const result = run('git', [
|
|
2121
|
+
'-C',
|
|
2122
|
+
worktreePath,
|
|
2123
|
+
'status',
|
|
2124
|
+
'--porcelain',
|
|
2125
|
+
'--untracked-files=normal',
|
|
2126
|
+
'--',
|
|
2127
|
+
]);
|
|
2098
2128
|
if (result.status !== 0) {
|
|
2099
2129
|
return true;
|
|
2100
2130
|
}
|
|
@@ -4636,7 +4666,7 @@ function initWorkspace(rawArgs) {
|
|
|
4636
4666
|
}
|
|
4637
4667
|
}
|
|
4638
4668
|
|
|
4639
|
-
function
|
|
4669
|
+
function doctorAudit(rawArgs) {
|
|
4640
4670
|
const options = parseDoctorArgs(rawArgs);
|
|
4641
4671
|
const repoRoot = resolveRepoRoot(options.target);
|
|
4642
4672
|
const failures = [];
|