@maplezzk/pi-interactive-subagents 3.8.4 → 3.9.1

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 CHANGED
@@ -39,6 +39,7 @@ Supported multiplexers:
39
39
  - [WezTerm](https://wezfurlong.org/wezterm/) (terminal emulator with built-in multiplexing)
40
40
  - [herdr](https://herdr.dev) (terminal-native agent multiplexer)
41
41
  - [Otty](https://otty.sh) (macOS terminal emulator with built-in multiplexing)
42
+ - [Orca](https://orca.dev) (agent workbench with built-in terminal multiplexing)
42
43
 
43
44
  Start pi inside one of them:
44
45
 
@@ -54,11 +55,13 @@ zellij --session pi # then run: pi
54
55
  # start herdr (`herdr`), split a pane (prefix+v or prefix+-), then run `pi` in it
55
56
  # or
56
57
  # just run pi inside Otty — no wrapper needed
58
+ # or
59
+ # just run pi inside Orca — no wrapper needed
57
60
  ```
58
61
 
59
- Optional: set `PI_SUBAGENT_MUX=muxy|cmux|tmux|zellij|wezterm|herdr|otty` to force a specific backend.
62
+ Optional: set `PI_SUBAGENT_MUX=muxy|cmux|tmux|zellij|wezterm|herdr|otty|orca` to force a specific backend.
60
63
 
61
- You can also configure it from inside Pi with `/config:subagent`. Run it without arguments for an interactive menu, or use `/config:subagent auto|muxy|cmux|tmux|zellij|wezterm|herdr|otty` for a direct choice. The selection is persisted in Pi's user extension config directory; explicit `PI_TERMINAL_MUX` / `PI_SUBAGENT_MUX` environment variables take precedence. `/subagent-config` and `/pi-subagent-config` remain available as compatibility aliases.
64
+ You can also configure it from inside Pi with `/config:subagent`. Run it without arguments for an interactive menu, or use `/config:subagent auto|muxy|cmux|tmux|zellij|wezterm|herdr|otty|orca` for a direct choice. The selection is persisted in Pi's user extension config directory; explicit `PI_TERMINAL_MUX` / `PI_SUBAGENT_MUX` environment variables take precedence. `/subagent-config` and `/pi-subagent-config` remain available as compatibility aliases.
62
65
 
63
66
  > **Otty notes:**
64
67
  > - Otty sets `TERM_PROGRAM=otty` automatically when pi runs inside it; the backend detects this env var.
@@ -501,6 +504,7 @@ Every sub-agent session displays a compact tools widget showing available and de
501
504
  - [WezTerm](https://wezfurlong.org/wezterm/)
502
505
  - [herdr](https://herdr.dev) (terminal-native agent multiplexer)
503
506
  - [Otty](https://otty.sh) (macOS terminal emulator; needs `ipc-allow-send-keys = true`)
507
+ - [Orca](https://orca.dev) (agent workbench; sets `TERM_PROGRAM=Orca` automatically)
504
508
 
505
509
  ```bash
506
510
  cmux pi
@@ -514,12 +518,14 @@ zellij --session pi # then run: pi
514
518
  # start herdr (`herdr`), split a pane, then run `pi` in it
515
519
  # or
516
520
  # just run pi inside Otty
521
+ # or
522
+ # just run pi inside Orca
517
523
  ```
518
524
 
519
525
  Optional backend override:
520
526
 
521
527
  ```bash
522
- export PI_SUBAGENT_MUX=cmux # or tmux, zellij, wezterm, herdr, otty
528
+ export PI_SUBAGENT_MUX=cmux # or tmux, zellij, wezterm, herdr, otty, orca
523
529
  ```
524
530
 
525
531
  ---
package/README.zh-CN.md CHANGED
@@ -20,7 +20,7 @@ subagent({ name: "Scout: DB", agent: "scout", task: "梳理数据库 schema" });
20
20
  pi install npm:@maplezzk/pi-interactive-subagents
21
21
  ```
22
22
 
23
- 支持的终端复用器:[cmux](https://github.com/manaflow-ai/cmux)、[tmux](https://github.com/tmux/tmux)、[zellij](https://zellij.dev)、[WezTerm](https://wezfurlong.org/wezterm/)、[herdr](https://herdr.dev)、[Otty](https://otty.sh)。
23
+ 支持的终端复用器:[cmux](https://github.com/manaflow-ai/cmux)、[tmux](https://github.com/tmux/tmux)、[zellij](https://zellij.dev)、[WezTerm](https://wezfurlong.org/wezterm/)、[herdr](https://herdr.dev)、[Otty](https://otty.sh)、[Orca](https://orca.dev)
24
24
 
25
25
  在其中启动 pi:
26
26
 
@@ -32,10 +32,10 @@ tmux new -A -s pi 'pi'
32
32
  zellij --session pi # 然后运行 pi
33
33
  ```
34
34
 
35
- 可选:设置 `PI_SUBAGENT_MUX=muxy|cmux|tmux|zellij|wezterm|herdr|otty` 强制指定后端。
35
+ 可选:设置 `PI_SUBAGENT_MUX=muxy|cmux|tmux|zellij|wezterm|herdr|otty|orca` 强制指定后端。
36
36
 
37
37
  也可以在 Pi 内通过 `/config:subagent` 配置:不带参数打开选择菜单,或直接运行
38
- `/config:subagent auto|muxy|cmux|tmux|zellij|wezterm|herdr|otty`。选择会保存到 Pi 的用户扩展配置目录;显式设置的 `PI_TERMINAL_MUX` / `PI_SUBAGENT_MUX` 优先级更高。`/subagent-config` 和 `/pi-subagent-config` 仍作为兼容别名保留。
38
+ `/config:subagent auto|muxy|cmux|tmux|zellij|wezterm|herdr|otty|orca`。选择会保存到 Pi 的用户扩展配置目录;显式设置的 `PI_TERMINAL_MUX` / `PI_SUBAGENT_MUX` 优先级更高。`/subagent-config` 和 `/pi-subagent-config` 仍作为兼容别名保留。
39
39
 
40
40
  ## 主要能力
41
41
 
@@ -32,8 +32,8 @@
32
32
  "en-US": "Subagent multiplexer set to: {value}"
33
33
  },
34
34
  "muxInvalid": {
35
- "zh-CN": "不支持的 mux:{value}。可选:auto、muxy、cmux、tmux、zellij、wezterm、herdr、otty。",
36
- "en-US": "Unsupported mux: {value}. Choose auto, muxy, cmux, tmux, zellij, wezterm, herdr, or otty."
35
+ "zh-CN": "不支持的 mux:{value}。可选:auto、muxy、cmux、tmux、zellij、wezterm、herdr、otty、orca。",
36
+ "en-US": "Unsupported mux: {value}. Choose auto, muxy, cmux, tmux, zellij, wezterm, herdr, otty, or orca."
37
37
  },
38
38
  "muxInteractiveOnly": {
39
39
  "zh-CN": "请在支持 UI 的 Pi 会话中运行 /config:subagent。",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maplezzk/pi-interactive-subagents",
3
- "version": "3.8.4",
3
+ "version": "3.9.1",
4
4
  "description": "Interactive async subagents for pi — spawn, orchestrate, and manage sub-agent sessions in multiplexer panes. Fork of HazAT/pi-interactive-subagents.",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
@@ -59,7 +59,7 @@
59
59
  "dependencies": {
60
60
  "ajv": "^8.20.0",
61
61
  "pi-extensions-i18n": "^0.3.1",
62
- "pi-terminal-mux": "^0.3.1"
62
+ "pi-terminal-mux": "^0.3.2"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "@earendil-works/pi-coding-agent": ">=0.80.0 <0.81.0",
@@ -38,6 +38,7 @@ import {
38
38
  isWezTermAvailable,
39
39
  isHerdrAvailable,
40
40
  isOttyAvailable,
41
+ isOrcaAvailable,
41
42
  type MuxBackend,
42
43
  } from "pi-terminal-mux";
43
44
 
@@ -963,6 +964,7 @@ function isMuxBackendAvailable(backend: MuxBackend): boolean {
963
964
  case "wezterm": return isWezTermAvailable();
964
965
  case "herdr": return isHerdrAvailable();
965
966
  case "otty": return isOttyAvailable();
967
+ case "orca": return isOrcaAvailable();
966
968
  }
967
969
  }
968
970
 
@@ -11,7 +11,7 @@ export interface SubagentMuxConfig {
11
11
  source: SubagentMuxConfigSource;
12
12
  }
13
13
 
14
- const BACKENDS: readonly MuxBackend[] = ["muxy", "cmux", "tmux", "zellij", "wezterm", "herdr", "otty"];
14
+ const BACKENDS: readonly MuxBackend[] = ["muxy", "cmux", "tmux", "zellij", "wezterm", "herdr", "otty", "orca"];
15
15
  const CONFIG_FILE = "config.json";
16
16
 
17
17
  function isMuxBackend(value: unknown): value is MuxBackend {