@yusukeshib/pi-babysit 0.6.8 → 0.6.11
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 +5 -4
- package/index.ts +4 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -85,10 +85,11 @@ summary counts use `RUNNING` / `IDLE`, and every row is labeled
|
|
|
85
85
|
Click the header to toggle to `babysits(n all)`, which also shows finished and failed
|
|
86
86
|
sessions, and click again to return to running-only. Both modes show newest first,
|
|
87
87
|
ten per page; `< 1/4 >` shows the current/total page when needed. Click the
|
|
88
|
-
arrows to page. Collapsed rows occupy one line
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
arrows to page. Collapsed rows occupy one line, previewing the command for
|
|
89
|
+
processes and the task for agents (with `…` when clipped). Click a row for the
|
|
90
|
+
complete wrapped command or task; agent rows also show their RPC worker launch
|
|
91
|
+
argv (bold, readable text rather than a copy-paste shell command), and up to 20
|
|
92
|
+
output lines. Opening another row closes the previous
|
|
92
93
|
one. A session with no available output shows an explicit placeholder when
|
|
93
94
|
expanded. Mouse clicks
|
|
94
95
|
require fullscreen mode; `/babysit` works in regular mode. The displayed `age`
|
package/index.ts
CHANGED
|
@@ -2430,11 +2430,9 @@ export function createWidgetComponent(
|
|
|
2430
2430
|
push(` ${text}`, target);
|
|
2431
2431
|
}
|
|
2432
2432
|
};
|
|
2433
|
-
if (!expanded && details
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
push(`${session.header} ${details[0]}`, target);
|
|
2437
|
-
for (const detail of details.slice(1)) pushDetail(detail);
|
|
2433
|
+
if (!expanded && details.length) {
|
|
2434
|
+
const preview = details[0].startsWith("task: ") ? details[0].slice(6) : details[0];
|
|
2435
|
+
push(`${session.header} ${preview}`, target, "…");
|
|
2438
2436
|
} else if (!expanded && tail.length === 1) {
|
|
2439
2437
|
push(`${session.header} ${tail[0]}`, target);
|
|
2440
2438
|
} else {
|
|
@@ -3513,7 +3511,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
3513
3511
|
...(meta?.task ? [`task: ${escapeCommandForDisplay(meta.task)}`] : []),
|
|
3514
3512
|
...(meta?.launchCommand ? [theme.bold(escapeCommandForDisplay(readableLaunchCommand(meta.launchCommand)))] : []),
|
|
3515
3513
|
]
|
|
3516
|
-
: meta?.command ? [theme.bold(
|
|
3514
|
+
: meta?.command ? [theme.bold(escapeCommandForDisplay(meta.command))] : [];
|
|
3517
3515
|
if (session.state === "running") {
|
|
3518
3516
|
const state: WidgetSessionState = isSubagent && progressById.get(id)?.done ? "idle" : "running";
|
|
3519
3517
|
return {
|