chore(cli): typecheck clean (10 → 0)
- broker-actions: msg-status section header used out-of-scope `id` variable; was a real bug (renders "message undefined…" on the JSON path). Fixed to use the in-scope lookupId. - exit-codes: add IO_ERROR (10) — referenced in three places by platform-actions but never declared. - types/text-import.d.ts: declare wildcard `*.md` module so Bun's text-import attribute used by skill.ts typechecks. - ipc/server: cast PeerSummary/SkillSummary through unknown before spreading into Record<string, unknown>. - mcp/server: typed JSON.parse for SSE events. - bridge/daemon-route: import path with .ts → .js (esm). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -328,7 +328,7 @@ function makeHandler(opts: {
|
||||
if (filterMesh && filterMesh !== slug) continue;
|
||||
try {
|
||||
const peers = await b.listPeers();
|
||||
for (const p of peers) all.push({ ...(p as Record<string, unknown>), mesh: slug });
|
||||
for (const p of peers) all.push({ ...(p as unknown as Record<string, unknown>), mesh: slug });
|
||||
} catch (e) {
|
||||
opts.log("warn", "ipc_peers_broker_failed", { mesh: slug, err: String(e) });
|
||||
}
|
||||
@@ -486,7 +486,7 @@ function makeHandler(opts: {
|
||||
if (filterMesh && filterMesh !== slug) continue;
|
||||
try {
|
||||
const skills = await b.listSkills(query);
|
||||
for (const s of skills) all.push({ ...(s as Record<string, unknown>), mesh: slug });
|
||||
for (const s of skills) all.push({ ...(s as unknown as Record<string, unknown>), mesh: slug });
|
||||
} catch (e) {
|
||||
opts.log("warn", "ipc_skills_broker_failed", { mesh: slug, err: String(e) });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user