pi-straw-boss 0.105.0 → 0.105.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/package.json +1 -1
- package/src/doctor.ts +3 -2
- package/src/doctorlive.ts +1 -1
- package/src/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-straw-boss",
|
|
3
|
-
"version": "0.105.
|
|
3
|
+
"version": "0.105.1",
|
|
4
4
|
"description": "Straw Boss coordination for pi in Herdr: sessions join a tab's net by choice, the first joiner is its main agent, a workspace tower opens on demand with a live monitoring dashboard, and boss_broadcast reaches the rest",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/src/doctor.ts
CHANGED
|
@@ -162,9 +162,10 @@ export function renderDoctor(r: DoctorReport): string {
|
|
|
162
162
|
return lines.join("\n");
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
/** The session_start self-check's message, or undefined when every expected tool is active
|
|
165
|
+
/** The session_start self-check's message, or undefined when every expected tool is active, and for a child, whose tools are its launch's choice (a role's tool list, auto-exit without
|
|
166
|
+
* subagent_done) and whose parent supervises it: a child told to hand over stopped before its work. */
|
|
166
167
|
export function selfCheckText(r: DoctorReport): string | undefined {
|
|
167
|
-
if (!r.missing.length && r.verdict !== "H1") return undefined;
|
|
168
|
+
if (r.role === "child" || (!r.missing.length && r.verdict !== "H1")) return undefined;
|
|
168
169
|
const first = r.missing[0];
|
|
169
170
|
const what = first ? `\`${first.name}\` is not active (registered: ${first.state === "unregistered" ? "no" : "yes"}${r.silent.length ? `; ${r.silent.join(", ")} loaded nothing` : ""})` : `pi-herdr-agents failed to load (${r.stamp?.failed})`;
|
|
170
171
|
const more = r.missing.length > 1 ? `, with ${r.missing.slice(1).map((t) => t.name).join(", ")}` : "";
|
package/src/doctorlive.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { execFileSyncExe } from "./exe.mjs";
|
|
|
6
6
|
import { agentDirOf, diagnose, type DoctorFacts, type DoctorReport, type DoctorRole, gitInstallDir, LOAD_STAMP_KEY, type LoadStamp, packageName, pinOf, renderDoctor, selfCheckText, settingsPackages } from "./doctor.ts";
|
|
7
7
|
|
|
8
8
|
// The doctor in this process (docs/how-it-works.md#the-doctor): the sb_doctor tool, /boss doctor (boss.ts), and the self-check at each session start. Every session in a pane gets the
|
|
9
|
-
// self-check, a child too; the tool and the command go to the sessions that are no child. What this process has is read here; what it means is doctor.ts's.
|
|
9
|
+
// self-check, a child too, which never warns (doctor.ts selfCheckText); the tool and the command go to the sessions that are no child. What this process has is read here; what it means is doctor.ts's.
|
|
10
10
|
|
|
11
11
|
export const DOCTOR_MESSAGE = "sb-doctor";
|
|
12
12
|
const DESCRIPTION = "Check this session's own tools and loads: whether subagent, intercom, todo and MonitorCreate are registered and active, whether pi-herdr-agents loaded and is current, and what to do. Call it before concluding a tool is missing.";
|
package/src/index.ts
CHANGED
|
@@ -84,7 +84,7 @@ export function createStrawBoss({ run: given, world: reading, api = herdrApi(),
|
|
|
84
84
|
s.autoOn = auto.on;
|
|
85
85
|
registerTrust(pi, kit, undefined, auto.trust); // pi's startup trust question reaches the GUI too, before any session has joined the net (trust/ask.ts), subagents included
|
|
86
86
|
interceptUi(pi, auto); // any extension's select and confirm reach the same bridge, subagents included
|
|
87
|
-
// The doctor (doctorlive.ts): every session in a pane checks its own tools at each session start; /boss doctor goes to the ones that are no child, sb_doctor to the joined ones and the tower.
|
|
87
|
+
// The doctor (doctorlive.ts): every session in a pane checks its own tools at each session start (a child never warns); /boss doctor goes to the ones that are no child, sb_doctor to the joined ones and the tower.
|
|
88
88
|
const doctorDeps = { env, role: () => (env.PI_SUBAGENT_ID ? "child" as const : (kit.role() ?? "none")), tell: kit.tell };
|
|
89
89
|
if (env.PI_SUBAGENT_ID) return void (registerDoctor(pi, doctorDeps), registerChildKind(pi, env), auto.attach()); // a child records its role for the net (childkind.ts)
|
|
90
90
|
// A pi the sb server started for a tower run (runmode.ts) decides first, at session_start: when it is a run, nothing of the net starts.
|