@wrongstack/cli 0.10.0 → 0.10.3
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/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -3007,8 +3007,12 @@ function buildFleetCommand(opts) {
|
|
|
3007
3007
|
}
|
|
3008
3008
|
if (cmd === "kill" || cmd === "stop-all") {
|
|
3009
3009
|
const targetId = subargs[0];
|
|
3010
|
-
if (
|
|
3011
|
-
|
|
3010
|
+
if (targetId) {
|
|
3011
|
+
if (opts.onFleet) {
|
|
3012
|
+
const msg4 = await opts.onFleet("kill", targetId);
|
|
3013
|
+
return { message: msg4 };
|
|
3014
|
+
}
|
|
3015
|
+
const msg3 = `${color.amber("\u26A0 /fleet kill is not wired in this session.")}`;
|
|
3012
3016
|
opts.renderer.writeWarning(msg3);
|
|
3013
3017
|
return { message: msg3 };
|
|
3014
3018
|
}
|
|
@@ -3018,10 +3022,6 @@ function buildFleetCommand(opts) {
|
|
|
3018
3022
|
opts.renderer.write(msg3);
|
|
3019
3023
|
return { message: msg3 };
|
|
3020
3024
|
}
|
|
3021
|
-
if (opts.onFleet) {
|
|
3022
|
-
const msg3 = await opts.onFleet("kill", targetId);
|
|
3023
|
-
return { message: msg3 };
|
|
3024
|
-
}
|
|
3025
3025
|
const msg2 = `${color.amber("\u26A0 /fleet kill is not wired in this session.")}`;
|
|
3026
3026
|
opts.renderer.writeWarning(msg2);
|
|
3027
3027
|
return { message: msg2 };
|
|
@@ -13341,7 +13341,7 @@ async function main(argv) {
|
|
|
13341
13341
|
for (const sa of s.subagents) {
|
|
13342
13342
|
if (sa.status === "running" || sa.status === "idle") {
|
|
13343
13343
|
try {
|
|
13344
|
-
director.
|
|
13344
|
+
director.remove(sa.id);
|
|
13345
13345
|
killed++;
|
|
13346
13346
|
} catch {
|
|
13347
13347
|
}
|