Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Merge origin/capy/gbra188-brain-first-instructions into capy/gbra194-spring-skills
garrytan20c95865a0ca
diff --cc src/commands/doctor/checks/harness-wiring.tsindex f5377098f7,cd29fcfa6c..0bc6e5c6bb--- a/src/commands/doctor/checks/harness-wiring.ts+++ b/src/commands/doctor/checks/harness-wiring.ts@@@ -470,8 -430,18 +470,19 @@@ function repairArgv(v: InstructionBlock/** Registration read (full run) or registration read + smoke (`--only harness_wiring`), plus the brain-first block. */export async function harnessWiringCheck(opts: { smoke: boolean }): Promise<Check> {const regs = readHarnessRegistrations();- return withSurfaceNote(withInstructionBlocks(await registrationCheck(opts, regs), instructionBlockViews(regs)), regs);+ const { skillsIndexViews } = await import('../../../core/setup/skills-block.ts');- return withSkillsIndex(withInstructionBlocks(await registrationCheck(opts, regs), instructionBlockViews(regs)), skillsIndexViews());++ return withSkillsIndex(withSurfaceNote(withInstructionBlocks(await registrationCheck(opts, regs), instructionBlockViews(regs)), regs), skillsIndexViews());+ }++ /**+ * Information only: a stdio registration pinned to `--surface full` keeps+ * working and is never rewritten; new installs register starter (the smaller+ * daily-driver tool list). Status and fix are unchanged.+ */+ export function withSurfaceNote(check: Check, regs: HarnessRegistration[]): Check {+ const full = regs.filter((r) => r.kind === 'stdio' && !r.env?.GBRAIN_SURFACE && r.args?.[r.args.indexOf('--surface') + 1] === 'full' && r.args.includes('--surface'));+ if (full.length === 0) return check;+ return { ...check, details: { ...(check.details ?? {}), surface_note: `${full.map((r) => HARNESS_LABEL[r.harness]).join(', ')} registered with --surface full, which stays supported. New installs register starter (a smaller tool list; request_tools reaches the rest).` } };}async function registrationCheck(opts: { smoke: boolean }, regs: HarnessRegistration[]): Promise<Check> {