@wrongstack/cli 0.7.4 → 0.7.5
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 +32 -4
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -4825,11 +4825,27 @@ function buildSpawnCommand(opts) {
|
|
|
4825
4825
|
function buildAgentsCommand(opts) {
|
|
4826
4826
|
return {
|
|
4827
4827
|
name: "agents",
|
|
4828
|
-
description: "Show status of spawned subagents. /agents monitor opens the agents monitor overlay.",
|
|
4828
|
+
description: "Show status of spawned subagents. /agents monitor opens the agents monitor overlay. /agents on|off toggles the overlay.",
|
|
4829
|
+
help: [
|
|
4830
|
+
"Usage: /agents [monitor|on|off]",
|
|
4831
|
+
" /agents \u2014 show subagent status summary",
|
|
4832
|
+
" /agents monitor \u2014 open the agents monitor overlay",
|
|
4833
|
+
" /agents on \u2014 show the agents monitor overlay",
|
|
4834
|
+
" /agents off \u2014 hide the agents monitor overlay"
|
|
4835
|
+
].join("\n"),
|
|
4829
4836
|
async run(args) {
|
|
4837
|
+
const arg = args.trim().toLowerCase();
|
|
4838
|
+
if (arg === "monitor" || arg === "on") {
|
|
4839
|
+
opts.agentsMonitorController?.setVisible(true);
|
|
4840
|
+
return { message: "Agents monitor shown." };
|
|
4841
|
+
}
|
|
4842
|
+
if (arg === "off") {
|
|
4843
|
+
opts.agentsMonitorController?.setVisible(false);
|
|
4844
|
+
return { message: "Agents monitor hidden." };
|
|
4845
|
+
}
|
|
4830
4846
|
if (!opts.onAgents) return { message: "Multi-agent is not enabled in this session." };
|
|
4831
|
-
const subagentId =
|
|
4832
|
-
return { message: await opts.onAgents(subagentId
|
|
4847
|
+
const subagentId = arg || void 0;
|
|
4848
|
+
return { message: await opts.onAgents(subagentId) };
|
|
4833
4849
|
}
|
|
4834
4850
|
};
|
|
4835
4851
|
}
|
|
@@ -10420,6 +10436,7 @@ async function execute(deps) {
|
|
|
10420
10436
|
fleetStreamController,
|
|
10421
10437
|
statuslineHiddenItems,
|
|
10422
10438
|
setStatuslineHiddenItems,
|
|
10439
|
+
agentsMonitorController,
|
|
10423
10440
|
getYolo,
|
|
10424
10441
|
getAutonomy,
|
|
10425
10442
|
onAutonomy,
|
|
@@ -10577,6 +10594,7 @@ async function execute(deps) {
|
|
|
10577
10594
|
fleetStreamController,
|
|
10578
10595
|
statuslineHiddenItems,
|
|
10579
10596
|
setStatuslineHiddenItems,
|
|
10597
|
+
agentsMonitorController,
|
|
10580
10598
|
initialGoal: goalFlag,
|
|
10581
10599
|
initialAsk: askFlag,
|
|
10582
10600
|
projectRoot,
|
|
@@ -12238,8 +12256,15 @@ async function main(argv) {
|
|
|
12238
12256
|
if (!hiddenItemsFromConfig[k]) hiddenItemsList.push(k);
|
|
12239
12257
|
}
|
|
12240
12258
|
const statuslineHiddenItems = hiddenItemsList;
|
|
12241
|
-
[...statuslineHiddenItems];
|
|
12259
|
+
let currentHiddenItems = [...statuslineHiddenItems];
|
|
12242
12260
|
const setStatuslineHiddenItems = (items) => {
|
|
12261
|
+
currentHiddenItems = items;
|
|
12262
|
+
};
|
|
12263
|
+
const agentsMonitorController = {
|
|
12264
|
+
visible: false,
|
|
12265
|
+
setVisible(visible) {
|
|
12266
|
+
this.visible = visible;
|
|
12267
|
+
}
|
|
12243
12268
|
};
|
|
12244
12269
|
const slashCmds = buildBuiltinSlashCommands({
|
|
12245
12270
|
registry: slashRegistry,
|
|
@@ -12261,6 +12286,9 @@ async function main(argv) {
|
|
|
12261
12286
|
llmProvider: provider,
|
|
12262
12287
|
llmModel: config.model,
|
|
12263
12288
|
statuslineConfig: statuslineConfigDeps,
|
|
12289
|
+
statuslineHiddenItems: [...currentHiddenItems],
|
|
12290
|
+
setStatuslineHiddenItems,
|
|
12291
|
+
agentsMonitorController,
|
|
12264
12292
|
onSpawn: async (description, spawnOpts) => {
|
|
12265
12293
|
const { subagentId, taskId } = await multiAgentHost.spawn(description, spawnOpts);
|
|
12266
12294
|
const tags = [];
|