pi-agent-swarm 0.6.0 → 0.7.0

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
@@ -152,6 +152,8 @@ The badge never wraps and never drops the role; it degrades through three tiers
152
152
  - **COMPACT**: name truncated with an ellipsis + 8-column id prefix + role. The prefix is a first-class identifier shared by `MANAGER-<prefix>` naming and `/lead` prefix matching, so it carries no ellipsis.
153
153
  - **MINIMAL**: swarm-colored dot + role. The full identity stays available in the `/swarm` menu and message envelopes.
154
154
 
155
+ A live mission adds a `swarm-mission` countdown beside the roster and `swarm-leader-gen` generation marker. Its full Active badge uses `SWM 蜂群`; narrower Active tiers, LOCK-4 convergence (`鎖閘`/`収斂 WRAP`), and flashing FINAL use `SWM`. Five tiers degrade from 51 to 13 columns, and the renderer subtracts sibling status widths instead of assuming a separate footer line. See [Mission countdown and footer badge](../../docs/mission-countdown.md) for states, timing, storage, and shared-line configuration.
156
+
155
157
  ## 🖥️ External terminal backend
156
158
 
157
159
  Pi Agent Swarm launches each session as a plain terminal window through a configurable command (default `alacritty -e`).
@@ -172,6 +174,7 @@ Edit user settings in `<getAgentDir()>/pi-agent-swarm.json`, normally `~/.pi/age
172
174
  "pinToLeadWorkspace": false,
173
175
  "autoName": true,
174
176
  "autoNameModel": "anthropic/claude-haiku-4-5",
177
+ "workerPiArgs": ["--auto-approve"],
175
178
  "leaderRecycling": {
176
179
  "enabled": false,
177
180
  "mode": "ask",
@@ -179,6 +182,13 @@ Edit user settings in `<getAgentDir()>/pi-agent-swarm.json`, normally `~/.pi/age
179
182
  "softContextTokens": 100000,
180
183
  "highWaterPercent": 75,
181
184
  "maxReplacements": 3
185
+ },
186
+ "missionCountdown": {
187
+ "enabled": true,
188
+ "requireBeforeSpawn": false,
189
+ "minMinutes": 2,
190
+ "maxMinutes": 90,
191
+ "wrapUpGraceMs": 300000
182
192
  }
183
193
  }
184
194
  ```
@@ -191,7 +201,9 @@ Edit user settings in `<getAgentDir()>/pi-agent-swarm.json`, normally `~/.pi/age
191
201
  | `pinToLeadWorkspace` | `true`, `false` | `false` | Moves each new window onto the lead session's workspace instead of the focused one. |
192
202
  | `autoName` | `true`, `false` | `true` | Renames a human-started session from the bootstrap `MANAGER-<id>` name to a `MAN-<title>` summary of its first three completed turns (or after the first completed external-agent run reported over the extension-neutral `pi-agent-swarm:external-turn:v1` event on `pi.events` with at least 20 user characters). The rename uses a one-shot completion, ignores proxy/tool status noise, retries on later turns if the completion fails, and steps aside forever as soon as you set a name yourself. Spawned child sessions keep their launch names. |
193
203
  | `autoNameModel` | `provider/id` | unset | Model used for the `MAN-<title>` completion. When unset, the session's current model is used, so no extra authentication is needed. An unresolvable value keeps the default name and reports a warning. |
194
- | `leaderRecycling` | object | disabled | Leader handoff policy: `enabled` defaults to `false`; `mode` is `ask` or `auto`; soft thresholds default to 50% and 100,000 tokens; high water defaults to 75%; at most three replacements are authorized by default. Invalid fields fall back individually with warnings. |
204
+ | `workerPiArgs` | string array | unset | Extra Pi CLI arguments appended after profile arguments for every spawned worker. At most 32 non-empty arguments of 256 characters each are accepted. NUL and line breaks are rejected, as are session-identity and output-mode flags such as `--session`, `--resume`, `--mode`, and `--print`. Do not put credentials in this process-argument setting. |
205
+ | `leaderRecycling` | object | disabled | Leader handoff policy: `enabled` defaults to `false`; `mode` is `ask` or `auto`; soft thresholds default to 50% and 100,000 tokens; high water defaults to 75%; at most three replacements are authorized by default. Invalid fields fall back individually with warnings. A timed-out mission requires a recyclable leader to hand off before starting another mission. |
206
+ | `missionCountdown` | object | enabled | Mission deadline policy. `requireBeforeSpawn` defaults to `false`; estimates are clamped to 2–90 minutes by default; `wrapUpGraceMs` defaults to 300,000 ms. The badge and lifecycle are documented in [Mission countdown](../../docs/mission-countdown.md). |
195
207
 
196
208
  Pi Agent Swarm does not read project settings or extension-specific environment-variable overrides.
197
209
  A missing file uses the defaults without creating the file.
@@ -107,6 +107,13 @@ function pickSwarmColor(seed, palette = SWARM_COLORS) {
107
107
  function swarmColorName(hex) {
108
108
  return HEX_TO_NAME.get(hex.toLowerCase());
109
109
  }
110
+ function colorize(text, hex) {
111
+ try {
112
+ return styleText(text, { fg: parseColor(hex) }, getTerminalColorMode());
113
+ } catch {
114
+ return text;
115
+ }
116
+ }
110
117
  function contrastTextColor(bgHex) {
111
118
  const match = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/u.exec(bgHex.toLowerCase());
112
119
  if (!match) return "#ffffff";
@@ -138,7 +145,8 @@ export {
138
145
  normalizeSwarmColor,
139
146
  pickSwarmColor,
140
147
  swarmColorName,
148
+ colorize,
141
149
  contrastTextColor,
142
150
  badge
143
151
  };
144
- //# sourceMappingURL=chunk-77JHO3GV.ts.map
152
+ //# sourceMappingURL=chunk-CV4VP4UE.ts.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/text.ts", "../../src/color.ts"],
4
4
  "sourcesContent": ["export function safeTerminalText(value: string): string {\n let output = \"\";\n for (const character of value) {\n const codePoint = character.codePointAt(0) ?? 0;\n if (isTerminalControl(codePoint)) continue;\n output += character === \"\\t\" ? \" \" : character;\n }\n return output;\n}\n\nexport function safeTerminalLine(value: string): string {\n return safeTerminalText(value)\n .replace(/[\\r\\n]+/gu, \" \")\n .trim();\n}\n\nexport function safeError(error: unknown): string {\n return safeTerminalLine(error instanceof Error ? error.message : String(error));\n}\n\nexport function normalizeOptionalText(value: string | undefined, label: string, maxBytes: number): string | undefined {\n if (value === undefined) return undefined;\n const normalized = value.trim();\n if (!normalized) return undefined;\n if (normalized.includes(\"\\0\") || Buffer.byteLength(normalized) > maxBytes) {\n throw new Error(`Pi Agent Swarm ${label} is invalid or too large`);\n }\n return normalized;\n}\n\nfunction isTerminalControl(codePoint: number): boolean {\n return (\n (codePoint >= 0x00 && codePoint <= 0x08) ||\n codePoint === 0x0b ||\n codePoint === 0x0c ||\n codePoint === 0x0d ||\n (codePoint >= 0x0e && codePoint <= 0x1f) ||\n (codePoint >= 0x7f && codePoint <= 0x9f) ||\n (codePoint >= 0x202a && codePoint <= 0x202e) ||\n (codePoint >= 0x2066 && codePoint <= 0x2069)\n );\n}\n", "import { getTerminalColorMode, parseColor, styleText } from \"@earendil-works/pi-tui\";\n\nexport interface SwarmColor {\n name: string;\n hex: string;\n}\n\nexport type SwarmColorPaletteName = \"muted\" | \"bright\";\n\n/**\n * Roster palettes derived from GitHub Linguist language colors (the language bar on\n * github.com), one language per hue slot (see scripts/color-draft.mjs for the visual\n * draft). `muted` is the default low-saturation set; its yellow deliberately matches\n * the footer's ROLE badge (ROLE_BADGE_BACKGROUND) so a yellow session reads as one\n * warm block. `bright` keeps the same slots at GitHub's original vivid tones. Both\n * palettes share slot order, so a seed or stored name keeps its hue when the\n * `colorPalette` setting switches.\n */\nexport const SWARM_COLOR_PALETTES: Record<SwarmColorPaletteName, readonly SwarmColor[]> = {\n muted: [\n { name: \"red\", hex: \"#c22d40\" }, // Scala\n { name: \"orange\", hex: \"#b07219\" }, // Java\n { name: \"yellow\", hex: \"#ffc85a\" }, // matches ROLE_BADGE_BACKGROUND in footer.ts\n { name: \"green\", hex: \"#41b883\" }, // Vue\n { name: \"cyan\", hex: \"#4298b8\" }, // Groovy\n { name: \"blue\", hex: \"#3178c6\" }, // TypeScript\n { name: \"magenta\", hex: \"#b83998\" }, // Erlang\n { name: \"purple\", hex: \"#8847b9\" }, // Elixir\n ],\n bright: [\n { name: \"red\", hex: \"#db5855\" }, // Clojure\n { name: \"orange\", hex: \"#dea584\" }, // Rust\n { name: \"yellow\", hex: \"#f1e05a\" }, // JavaScript\n { name: \"green\", hex: \"#89e051\" }, // Shell\n { name: \"cyan\", hex: \"#00add8\" }, // Go\n { name: \"blue\", hex: \"#3572a5\" }, // Python\n { name: \"magenta\", hex: \"#f34b7d\" }, // C++\n { name: \"purple\", hex: \"#a97bff\" }, // Kotlin\n ],\n};\n\n/** Default roster palette: the muted GitHub-derived set. */\nexport const SWARM_COLORS: readonly SwarmColor[] = SWARM_COLOR_PALETTES.muted;\n\n/**\n * Pre-palette Tailwind colors. Kept only so hexes assigned by older versions still\n * resolve to a palette name in labels; never used for new assignments.\n */\nconst LEGACY_SWARM_COLORS: readonly SwarmColor[] = [\n { name: \"red\", hex: \"#ef4444\" },\n { name: \"orange\", hex: \"#f97316\" },\n { name: \"yellow\", hex: \"#eab308\" },\n { name: \"green\", hex: \"#22c55e\" },\n { name: \"cyan\", hex: \"#06b6d4\" },\n { name: \"blue\", hex: \"#3b82f6\" },\n { name: \"magenta\", hex: \"#d946ef\" },\n { name: \"purple\", hex: \"#8b5cf6\" },\n];\n\n/** The palette behind a `colorPalette` setting value. */\nexport function swarmColorPalette(name: SwarmColorPaletteName): readonly SwarmColor[] {\n return SWARM_COLOR_PALETTES[name];\n}\n\nconst HEX_RE = /^#[0-9a-f]{6}$/u;\nconst HEX_TO_NAME = new Map<string, string>();\nfor (const palette of [SWARM_COLOR_PALETTES.muted, SWARM_COLOR_PALETTES.bright, LEGACY_SWARM_COLORS]) {\n for (const color of palette) {\n if (!HEX_TO_NAME.has(color.hex)) HEX_TO_NAME.set(color.hex, color.name);\n }\n}\n\n/** Accept a palette name or a #rrggbb hex; return a normalized #rrggbb hex, or undefined. */\nexport function normalizeSwarmColor(value: unknown, palette: readonly SwarmColor[] = SWARM_COLORS): string | undefined {\n if (typeof value !== \"string\") return undefined;\n const trimmed = value.trim().toLowerCase();\n const named = palette.find((color) => color.name === trimmed);\n if (named) return named.hex;\n if (HEX_RE.test(trimmed)) return trimmed;\n return undefined;\n}\n\n/** Deterministic palette color from a seed string (stable, no coordination needed). */\nexport function pickSwarmColor(seed: string, palette: readonly SwarmColor[] = SWARM_COLORS): string {\n let hash = 0;\n for (let i = 0; i < seed.length; i += 1) hash = (hash * 31 + seed.charCodeAt(i)) >>> 0;\n return palette[hash % palette.length].hex;\n}\n\n/** Palette name for a hex, or undefined when the hex is off-palette. */\nexport function swarmColorName(hex: string): string | undefined {\n return HEX_TO_NAME.get(hex.toLowerCase());\n}\n\n/** Wrap text in a foreground color escape sequence (ANSI), best-effort. */\nexport function colorize(text: string, hex: string): string {\n try {\n return styleText(text, { fg: parseColor(hex) }, getTerminalColorMode());\n } catch {\n return text;\n }\n}\n\n/**\n * Pick black or white text for a filled badge on the given background, using WCAG\n * relative luminance so the choice is measured rather than eyeballed.\n */\nexport function contrastTextColor(bgHex: string): string {\n const match = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/u.exec(bgHex.toLowerCase());\n if (!match) return \"#ffffff\";\n const [r, g, b] = match.slice(1).map((pair) => Number.parseInt(pair, 16));\n const channel = (value: number): number => {\n const s = value / 255;\n return s <= 0.03928 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4;\n };\n const luminance = 0.2126 * channel(r) + 0.7152 * channel(g) + 0.0722 * channel(b);\n const onBlack = (luminance + 0.05) / 0.05;\n const onWhite = 1.05 / (luminance + 0.05);\n return onBlack >= onWhite ? \"#000000\" : \"#ffffff\";\n}\n\n/** Wrap text in a filled badge (background with an explicit foreground), best-effort. */\nexport function badge(text: string, bgHex: string, fgHex: string): string {\n try {\n return styleText(text, { fg: parseColor(fgHex), bg: parseColor(bgHex) }, getTerminalColorMode());\n } catch {\n return text;\n }\n}\n"],
5
- "mappings": ";;;;AAAO,SAAS,iBAAiB,OAAuB;AACtD,MAAI,SAAS;AACb,aAAW,aAAa,OAAO;AAC7B,UAAM,YAAY,UAAU,YAAY,CAAC,KAAK;AAC9C,QAAI,kBAAkB,SAAS,EAAG;AAClC,cAAU,cAAc,MAAO,SAAS;AAAA,EAC1C;AACA,SAAO;AACT;AAEO,SAAS,iBAAiB,OAAuB;AACtD,SAAO,iBAAiB,KAAK,EAC1B,QAAQ,aAAa,GAAG,EACxB,KAAK;AACV;AAEO,SAAS,UAAU,OAAwB;AAChD,SAAO,iBAAiB,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC;AAChF;AAEO,SAAS,sBAAsB,OAA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from "./chunk-CV4VP4UE.ts";
7
7
 
8
8
  // src/menu.ts
9
9
  var DIRECTION_OPTIONS = ["Right", "Down", "Left", "Up"];
@@ -129,4 +129,4 @@ export {
129
129
  createSwarmMenu,
130
130
  showSwarmMenu
131
131
  };
132
- //# sourceMappingURL=menu-NLK5I2DA.ts.map
132
+ //# sourceMappingURL=menu-A2TQAWN6.ts.map