@imdeadpool/guardex 8.4.1 → 8.4.2
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/bin/multiagent-safety.js +9 -11
- package/package.json +2 -2
- package/src/cli/main.js +5 -8
package/bin/multiagent-safety.js
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const { runFromBin } = require('../src/cli/main');
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const finishCleanup = prepareBranchFinishCleanup(process.argv.slice(2), process.cwd());
|
|
4
|
+
const args = process.argv.slice(2);
|
|
5
|
+
const cleanup =
|
|
6
|
+
args[0] === 'branch' && args[1] === 'finish'
|
|
7
|
+
? require('../src/finish/post-branch-finish-cleanup')
|
|
8
|
+
: null;
|
|
9
|
+
const finishCleanup = cleanup?.prepareBranchFinishCleanup(args, process.cwd());
|
|
12
10
|
|
|
13
11
|
void runFromBin().then(() => {
|
|
14
12
|
if (!process.exitCode && finishCleanup) {
|
|
15
13
|
process.chdir(finishCleanup.repoRoot);
|
|
16
|
-
const pending = persistFinishedCleanup(finishCleanup);
|
|
17
|
-
if (pending && !cleanupFinishedDetachedWorktree(pending)) {
|
|
18
|
-
scheduleFinishedDetachedWorktreeCleanup(pending);
|
|
14
|
+
const pending = cleanup.persistFinishedCleanup(finishCleanup);
|
|
15
|
+
if (pending && !cleanup.cleanupFinishedDetachedWorktree(pending)) {
|
|
16
|
+
cleanup.scheduleFinishedDetachedWorktreeCleanup(pending);
|
|
19
17
|
}
|
|
20
18
|
}
|
|
21
19
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imdeadpool/guardex",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.2",
|
|
4
4
|
"description": "Guardian T-Rex for your multi-agent repo. Isolated worktrees, file locks, and PR-only merges stop parallel Codex & Claude agents from overwriting each other's work. Auto-wires Oh My Codex, Oh My Claude, OpenSpec, and Caveman.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"preferGlobal": true,
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"jsonc-parser": "3.3.1",
|
|
98
98
|
"semver": "7.7.4"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "3bf9656768d002719dc9498f17d317a3b2bf39cf"
|
|
101
101
|
}
|
package/src/cli/main.js
CHANGED
|
@@ -18,10 +18,6 @@ const {
|
|
|
18
18
|
DEPRECATED_COMMAND_ALIASES,
|
|
19
19
|
CLI_COMMAND_HELP
|
|
20
20
|
} = require('../context');
|
|
21
|
-
const toolchainModule = require('../toolchain');
|
|
22
|
-
const budgetModule = require('../budget');
|
|
23
|
-
const ciInitModule = require('../ci-init');
|
|
24
|
-
const speckitModule = require('../speckit');
|
|
25
21
|
const { usage, startTransientSpinner, commandHelpLines, commandCatalogJson } = require('../output');
|
|
26
22
|
const {
|
|
27
23
|
maybeSuggestCommand,
|
|
@@ -256,6 +252,7 @@ async function main() {
|
|
|
256
252
|
process.exitCode = 0;
|
|
257
253
|
return;
|
|
258
254
|
}
|
|
255
|
+
const toolchainModule = require('../toolchain');
|
|
259
256
|
toolchainModule.maybeSelfUpdateBeforeStatus();
|
|
260
257
|
toolchainModule.maybeOpenSpecUpdateBeforeStatus();
|
|
261
258
|
const statusPayload = require('./commands/status').status([]);
|
|
@@ -284,7 +281,7 @@ async function main() {
|
|
|
284
281
|
}
|
|
285
282
|
|
|
286
283
|
if (command === '--version' || command === '-v' || command === 'version') {
|
|
287
|
-
|
|
284
|
+
require('../toolchain').maybeSelfUpdateBeforeStatus();
|
|
288
285
|
console.log(packageJson.version);
|
|
289
286
|
return;
|
|
290
287
|
}
|
|
@@ -351,9 +348,9 @@ async function main() {
|
|
|
351
348
|
if (command === 'cleanup') return require('./commands/finish').cleanup(rest);
|
|
352
349
|
if (command === 'release') return require('./commands/release').release(rest);
|
|
353
350
|
if (command === 'watch') return require('./commands/watch').watch(rest);
|
|
354
|
-
if (command === 'budget') return
|
|
355
|
-
if (command === 'ci-init') return
|
|
356
|
-
if (command === 'speckit') return
|
|
351
|
+
if (command === 'budget') return require('../budget').runBudgetCommand(rest);
|
|
352
|
+
if (command === 'ci-init') return require('../ci-init').runCiInitCommand(rest);
|
|
353
|
+
if (command === 'speckit') return require('../speckit').runSpeckitCommand(rest);
|
|
357
354
|
|
|
358
355
|
const suggestion = maybeSuggestCommand(command);
|
|
359
356
|
if (suggestion) {
|