@wrongstack/tui 1.0.28 → 1.0.29
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 +13 -9
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -83654,9 +83654,9 @@ function useResourceSlashCommands(deps) {
|
|
|
83654
83654
|
// src/hooks/use-session-slash-commands.ts
|
|
83655
83655
|
var import_react157 = __toESM(require_react(), 1);
|
|
83656
83656
|
import {
|
|
83657
|
-
areSubagentsAllowed,
|
|
83658
83657
|
isSubagentPolicyLocked,
|
|
83659
|
-
|
|
83658
|
+
setSessionSubagentPolicy,
|
|
83659
|
+
subagentPolicyMode
|
|
83660
83660
|
} from "@wrongstack/core/coordination";
|
|
83661
83661
|
import { toErrorMessage as toErrorMessage12 } from "@wrongstack/core/utils";
|
|
83662
83662
|
var RESUME_PICKER_SESSIONS = 500;
|
|
@@ -83666,22 +83666,26 @@ function useSessionSlashCommands(deps, part) {
|
|
|
83666
83666
|
if (part !== "head") return;
|
|
83667
83667
|
const cmd = {
|
|
83668
83668
|
name: "solo",
|
|
83669
|
-
description: "Control session-only subagents before the first message: /solo on|off|status.",
|
|
83669
|
+
description: "Control session-only subagents before the first message: /solo on|companions|off|status.",
|
|
83670
83670
|
async run(args) {
|
|
83671
83671
|
const action = (args ?? "").trim().toLowerCase() || "status";
|
|
83672
|
-
const
|
|
83672
|
+
const mode = subagentPolicyMode(agent.ctx);
|
|
83673
83673
|
if (action === "status") {
|
|
83674
|
+
const state = mode === "all" ? "off" : mode === "companions" ? "on (companions allowed)" : "on";
|
|
83674
83675
|
return {
|
|
83675
|
-
message: `Solo session is ${
|
|
83676
|
+
message: `Solo session is ${state}${isSubagentPolicyLocked(agent.ctx) ? " (locked)" : ""}.`
|
|
83676
83677
|
};
|
|
83677
83678
|
}
|
|
83678
|
-
if (action !== "on" && action !== "off") {
|
|
83679
|
-
return { message: "Usage: /solo on|off|status" };
|
|
83679
|
+
if (action !== "on" && action !== "off" && action !== "companions") {
|
|
83680
|
+
return { message: "Usage: /solo on|companions|off|status" };
|
|
83680
83681
|
}
|
|
83681
83682
|
try {
|
|
83682
|
-
await
|
|
83683
|
+
await setSessionSubagentPolicy(
|
|
83684
|
+
agent.ctx,
|
|
83685
|
+
action === "off" ? "all" : action === "companions" ? "companions" : "none"
|
|
83686
|
+
);
|
|
83683
83687
|
return {
|
|
83684
|
-
message: action === "on" ? "Solo session enabled. Chimera, delegation, and background subagents are blocked." : "Solo session disabled. Subagents are allowed for this session."
|
|
83688
|
+
message: action === "on" ? "Solo session enabled. Chimera, delegation, background subagents, and companions are blocked." : action === "companions" ? "Solo session enabled with companions. Chimera, delegation, and background subagents are blocked; the read-only memory and explore companions still run." : "Solo session disabled. Subagents are allowed for this session."
|
|
83685
83689
|
};
|
|
83686
83690
|
} catch (err) {
|
|
83687
83691
|
return { message: toErrorMessage12(err) };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/tui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "WrongStack terminal UI: Ink-based interactive renderer with history, pickers, and slash menus.",
|
|
6
6
|
"repository": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"!dist/**/*.map"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@wrongstack/core": "1.0.
|
|
30
|
-
"@wrongstack/kanban": "1.0.
|
|
31
|
-
"@wrongstack/runtime": "1.0.
|
|
32
|
-
"@wrongstack/sage": "1.0.
|
|
33
|
-
"@wrongstack/sdd": "1.0.
|
|
34
|
-
"@wrongstack/tools": "1.0.
|
|
29
|
+
"@wrongstack/core": "1.0.29",
|
|
30
|
+
"@wrongstack/kanban": "1.0.29",
|
|
31
|
+
"@wrongstack/runtime": "1.0.29",
|
|
32
|
+
"@wrongstack/sage": "1.0.29",
|
|
33
|
+
"@wrongstack/sdd": "1.0.29",
|
|
34
|
+
"@wrongstack/tools": "1.0.29",
|
|
35
35
|
"string-width": "8.2.2",
|
|
36
36
|
"wrap-ansi": "^10.0.1"
|
|
37
37
|
},
|