@yusukeshib/pi-babysit 0.6.2 → 0.6.3

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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/index.ts +12 -12
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -80,8 +80,8 @@ backgrounding (`… &`, `nohup`, `setsid`, `disown`). Set
80
80
 
81
81
  A widget below the editor separates session **kind** from task **state** at a glance:
82
82
  summary counts use `RUNNING` / `IDLE`, and every row is labeled
83
- `[PROCESS] [RUNNING]`, `[AGENT] [RUNNING]`, or `[AGENT] [IDLE]`. The displayed
84
- `age` is total session age, not time spent in the current state.
83
+ `PROCESS RUNNING`, `AGENT RUNNING`, or `AGENT IDLE`. The displayed `age`
84
+ is total session age, not time spent in the current state.
85
85
 
86
86
  ## Logs without context flooding
87
87
 
package/index.ts CHANGED
@@ -2274,9 +2274,9 @@ export function widgetSummaryText(procs: number, busy: number, idle: number): st
2274
2274
  const running: string[] = [];
2275
2275
  if (procs > 0) running.push(`${procs} process${procs > 1 ? "es" : ""}`);
2276
2276
  if (busy > 0) running.push(`${busy} agent${busy > 1 ? "s" : ""}`);
2277
- if (running.length > 0) sections.push(`RUNNING ${running.join(" · ")}`);
2278
- if (idle > 0) sections.push(`IDLE ${idle} agent${idle > 1 ? "s" : ""}`);
2279
- return sections.join(" │ ");
2277
+ if (running.length > 0) sections.push(`RUNNING ${running.join(" ")}`);
2278
+ if (idle > 0) sections.push(`IDLE ${idle} agent${idle > 1 ? "s" : ""}`);
2279
+ return sections.join(" ");
2280
2280
  }
2281
2281
 
2282
2282
  export function widgetSessionHeader(
@@ -2286,7 +2286,7 @@ export function widgetSessionHeader(
2286
2286
  elapsed?: string,
2287
2287
  ): string {
2288
2288
  const icon = state === "running" ? "▶" : "○";
2289
- return ` ${icon} ${id} [${kind.toUpperCase()}] [${state.toUpperCase()}]${elapsed ? ` · age ${elapsed}` : ""}`;
2289
+ return ` ${icon} ${id} ${kind.toUpperCase()} ${state.toUpperCase()}${elapsed ? ` age ${elapsed}` : ""}`;
2290
2290
  }
2291
2291
 
2292
2292
  function renderWidgetLines(procs: number, busy: number, idle: number, theme: Theme): string[] {
@@ -2296,12 +2296,12 @@ function renderWidgetLines(procs: number, busy: number, idle: number, theme: The
2296
2296
  if (procs > 0) running.push(`${procs} process${procs > 1 ? "es" : ""}`);
2297
2297
  if (busy > 0) running.push(`${busy} agent${busy > 1 ? "s" : ""}`);
2298
2298
  if (running.length > 0) {
2299
- sections.push(`${theme.fg("success", theme.bold("RUNNING"))} ${running.join(" · ")}`);
2299
+ sections.push(`${theme.fg("success", theme.bold("RUNNING"))} ${running.join(" ")}`);
2300
2300
  }
2301
2301
  if (idle > 0) {
2302
- sections.push(`${theme.fg("muted", theme.bold("IDLE"))} ${idle} agent${idle > 1 ? "s" : ""}`);
2302
+ sections.push(`${theme.fg("muted", theme.bold("IDLE"))} ${idle} agent${idle > 1 ? "s" : ""}`);
2303
2303
  }
2304
- return [theme.bg("toolPendingBg", ` ${sections.join(" │ ")} `)];
2304
+ return [theme.bg("toolPendingBg", ` ${sections.join(" ")} `)];
2305
2305
  }
2306
2306
 
2307
2307
  function renderWidgetSessionHeader(
@@ -2313,9 +2313,9 @@ function renderWidgetSessionHeader(
2313
2313
  ): string {
2314
2314
  const running = state === "running";
2315
2315
  const icon = theme.fg(running ? "success" : "muted", running ? "▶" : "○");
2316
- const kindLabel = theme.fg(kind === "process" ? "accent" : "warning", theme.bold(`[${kind.toUpperCase()}]`));
2317
- const stateLabel = theme.fg(running ? "success" : "muted", theme.bold(`[${state.toUpperCase()}]`));
2318
- return ` ${icon} ${id} ${kindLabel} ${stateLabel}${elapsed ? theme.fg("dim", ` · age ${elapsed}`) : ""}`;
2316
+ const kindLabel = theme.fg(kind === "process" ? "accent" : "warning", theme.bold(kind.toUpperCase()));
2317
+ const stateLabel = theme.fg(running ? "success" : "muted", theme.bold(state.toUpperCase()));
2318
+ return ` ${icon} ${id} ${kindLabel} ${stateLabel}${elapsed ? theme.fg("dim", ` age ${elapsed}`) : ""}`;
2319
2319
  }
2320
2320
 
2321
2321
  // How many trailing output lines to show per running session in the widget.
@@ -3257,10 +3257,10 @@ export default function (pi: ExtensionAPI) {
3257
3257
  theme,
3258
3258
  );
3259
3259
  if (tails[index].length === 1) {
3260
- lines.push(`${header} │ ${tails[index][0]}`);
3260
+ lines.push(`${header} ${tails[index][0]}`);
3261
3261
  } else {
3262
3262
  lines.push(header);
3263
- for (const tail of tails[index]) lines.push(` │ ${tail}`);
3263
+ for (const tail of tails[index]) lines.push(` ${tail}`);
3264
3264
  }
3265
3265
  });
3266
3266
  ctx.ui.setWidget("pi-babysit", lines, { placement: "belowEditor" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yusukeshib/pi-babysit",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Run any shell command and pi subagents under babysit, with context-safe captured output.",
5
5
  "keywords": [
6
6
  "pi-package",