pi-subagent-manager 0.11.1 → 0.11.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/README.md +1 -1
- package/docs/tools-and-ui.md +4 -4
- package/package.json +1 -1
- package/src/index.ts +3 -1
- package/src/ui/ui.ts +2 -2
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ They inherit your current model until you set preferences. Details: [docs/defaul
|
|
|
72
72
|
| `/agents import` | Import agents from other subagent extensions |
|
|
73
73
|
| `/agents reload` | Reload definitions and settings |
|
|
74
74
|
|
|
75
|
-
A live **Agents** widget sits above the input box. Choose **Full** (the existing tree) or **Minimal** (colored status counts and running-agent token totals, plus the browser hint) under **Status Widget** in `/agents` settings. In the fullscreen tree, **Enter** opens an agent's live view. Type in the bottom **Steer** input and press **Enter** to send it a steering message, including nested agents. **Tab** switches between input and transcript controls, **Escape** returns, and **i** in the tree opens existing thread actions. A status strip below the previews shows how many agents are running and **Press ← to open subagent browser**. Once the main turn ends and all subagents are idle, the preview collapses to a single status-count line; `/agents tree` still opens the full tree.
|
|
75
|
+
A live **Agents** widget sits above the input box. Choose **Full** (the existing tree) or **Minimal** (colored status counts and running-agent token totals, plus the browser hint) under **Status Widget** in `/agents` settings. In the fullscreen tree, **Enter** opens an agent's live view. Type in the bottom **Steer** input and press **Enter** to send it a steering message, including nested agents. **Tab** switches between input and transcript controls, **Escape** returns, and **i** in the tree opens existing thread actions. A status strip below the previews shows how many agents are running and **Press ← to open subagent browser**. Once the main turn ends and all subagents are idle, the preview collapses to a single status-count line; `/agents tree` still opens the full tree. While subagents are starting or running, press **Left** at the start of the main draft to open it; otherwise Left stays native. `/agents tree` remains available regardless of agent activity. See [live navigation](docs/tools-and-ui.md#live-agent-navigation) for controls and compatibility.
|
|
76
76
|
|
|
77
77
|
Experimental features are marked **[labs]** in settings. Enable **[labs] Nerd Font icons** in `/agents` to show role-specific icons beside agent names (off by default; requires a Nerd Font in your terminal). Custom agent types can set an optional `icon` or use **[labs] Icon** in `/agents types`. See [icon setup](docs/settings.md#labs-nerd-font-icons-nerdfonticons).
|
|
78
78
|
|
package/docs/tools-and-ui.md
CHANGED
|
@@ -68,13 +68,13 @@ The fullscreen watcher shows steer and agent messages in full, including the in-
|
|
|
68
68
|
|
|
69
69
|
#### Left-arrow entry
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
While any subagent is **starting or running**, press physical **Left (←)** at the beginning of the main draft (or in an empty input) to open the subagent browser. With no active subagents, or elsewhere in the draft, Left retains normal cursor movement. `/agents tree` remains available regardless of agent activity. Down is always native editing/history navigation. Autocomplete, jumps, paste and configured shortcuts take precedence. Navigating preserves the main draft/cursor and does not require the root to be idle.
|
|
72
72
|
|
|
73
73
|
Left-arrow entry is enabled by default in the TUI; `/agents tree` remains available everywhere. Pi has one custom-editor slot: installation is skipped if another factory owns it or an existing draft is nonempty, since the host cannot transfer cursor/undo/expanded-paste state. Load order can still let a later editor replace ours. Initial startup uses Pi's history hydration; replacement installations seed history once. Session-tree rebuilds keep the existing editor instance.
|
|
74
74
|
|
|
75
75
|
While navigation is open, the host fullscreen search shortcut is temporarily disabled through public keybindings to avoid stacking a second host overlay. The prior binding owner is restored only if no other extension replaced it. **Known host limitation:** if an unrelated extension stacks another overlay above navigation, Pi's custom-UI completion can close the newer overlay instead. Avoid concurrent extension-owned overlays; a host identity-targeted completion API is needed to remove this limitation. No private host access or unsupported overlay-lifecycle workaround is used.
|
|
76
76
|
|
|
77
|
-
Run `python3 scripts/live-agent-navigation-smoke.py` after `npm install` for credential-free, offline POSIX PTY checks in regular/fullscreen mode (entry, root return,
|
|
77
|
+
Run `python3 scripts/live-agent-navigation-smoke.py` after `npm install` for credential-free, offline POSIX PTY checks in regular/fullscreen mode (idle Left gating, explicit command entry, root return, resize and host-search suppression). No model prompts are submitted. Broader manual acceptance covers concurrent live turns, autocomplete/paste/undo interactions, remapped shortcuts and rich custom content.
|
|
78
78
|
|
|
79
79
|
## Agents widget
|
|
80
80
|
|
|
@@ -83,7 +83,7 @@ The widget above the input editor has two display modes, selected with **Status
|
|
|
83
83
|
- **Full** (default): the existing compact tree, at most twelve lines.
|
|
84
84
|
- **Minimal**: a summary line such as `3 running, 2 stopped, 1 failed, 1 paused ↑12k ↓3k`, with semantic theme colors. Starting agents count as running; completed agents are counted when present. Token totals include only currently starting/running agents, not the main conversation or settled threads. Use `/agents tree` for details.
|
|
85
85
|
|
|
86
|
-
Once the main turn has ended and no subagents are starting or running, either mode collapses to a single status-count line without the browser hint. The full tree remains available via `/agents tree
|
|
86
|
+
Once the main turn has ended and no subagents are starting or running, either mode collapses to a single status-count line without the browser hint. The full tree remains available via `/agents tree`; **Left** at the start of the draft opens it only while subagents are starting or running. A new main turn or active subagent restores the configured display mode.
|
|
87
87
|
|
|
88
88
|
In full mode:
|
|
89
89
|
|
|
@@ -91,7 +91,7 @@ In full mode:
|
|
|
91
91
|
- A second, indented line shows latest activity.
|
|
92
92
|
- Active branches are shown first; the most recent agents within each state are preferred when previews overflow. Overflow is counted, not listed.
|
|
93
93
|
- Time freezes while paused and resumes on continue.
|
|
94
|
-
- A small status strip below the previews shows the running count (including starting agents) and **Press ← to open subagent browser**, including when agents overflow.
|
|
94
|
+
- A small status strip below the previews shows the running count (including starting agents) and **Press ← to open subagent browser**, including when agents overflow. Full and minimal modes show the hint only while subagents are starting or running. RPC output omits the keyboard hint.
|
|
95
95
|
|
|
96
96
|
### Interrupts and stopping agents
|
|
97
97
|
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -80,7 +80,9 @@ export default function piSubagent(pi: ExtensionAPI): void {
|
|
|
80
80
|
initialHistory: seedHistory ? history : undefined,
|
|
81
81
|
generation: () => navigationGeneration,
|
|
82
82
|
canOpen: () => manager !== undefined && context?.mode === "tui" &&
|
|
83
|
-
limits.subagentMode !== "off" && !navigation.isOpen
|
|
83
|
+
limits.subagentMode !== "off" && !navigation.isOpen &&
|
|
84
|
+
manager.list().some((thread) => thread.path !== "/root" &&
|
|
85
|
+
(thread.state === "starting" || thread.state === "running")),
|
|
84
86
|
openTree: () => manager && context
|
|
85
87
|
? navigation.open(context, manager.scope("/root"), undefined, limits.nerdFontIcons) : undefined,
|
|
86
88
|
onError: (error) => context?.ui.notify(
|
package/src/ui/ui.ts
CHANGED
|
@@ -473,7 +473,7 @@ export function renderAgentTree(
|
|
|
473
473
|
lines.push(agentLine(row, columns, theme, nerdFontIcons));
|
|
474
474
|
lines.push(activityLine(row, columns, theme));
|
|
475
475
|
}
|
|
476
|
-
lines.push(agentWidgetStatus(live, omitted, columns, theme, showBrowserHint));
|
|
476
|
+
lines.push(agentWidgetStatus(live, omitted, columns, theme, showBrowserHint && live > 0));
|
|
477
477
|
return lines;
|
|
478
478
|
}
|
|
479
479
|
|
|
@@ -521,7 +521,7 @@ export function renderAgentSummary(
|
|
|
521
521
|
const right = theme.fg("muted", `↑${formatCount(input)} ↓${formatCount(output)}`);
|
|
522
522
|
const columns = Math.max(0, width);
|
|
523
523
|
const lines = [fitLine(left, right, columns)];
|
|
524
|
-
if (showBrowserHint)
|
|
524
|
+
if (showBrowserHint && counts.running > 0)
|
|
525
525
|
lines.push(truncateToWidth(theme.fg("muted", AGENT_BROWSER_HINT), columns, ""));
|
|
526
526
|
return lines;
|
|
527
527
|
}
|