1.3 KiB
1.3 KiB
Scratchpad: MACP OC Bridge (2026-03-30)
- Objective: Replace the OpenClaw MACP plugin's Pi-direct
runTurnwith the MACP controller queue bridge. - Scope:
plugins/macp/src/macp-runtime.ts,plugins/macp/src/index.ts,plugins/macp/openclaw.plugin.json,plugins/macp/README.md. - Plan:
- Read controller/dispatcher/plugin docs and confirm queue/result contract.
- Queue tasks through
.mosaic/orchestrator/tasks.jsonusing a brief file and controller trigger. - Poll result JSON, stream output back to ACP, then validate with typecheck/format checks.
- Risks:
- The repo orchestrator must be enabled in
.mosaic/orchestrator/config.json. - Result JSON does not always embed worker output, so the runtime falls back to metadata-linked output files or a formatted result summary.
- The repo orchestrator must be enabled in
- Verification:
npx tsc --noEmit --target es2022 --module nodenext --moduleResolution nodenext --skipLibCheck plugins/macp/src/macp-runtime.ts plugins/macp/src/index.tspnpm prettier --write "plugins/macp/**/*.{ts,json,md}"pnpm format:checknpx tsc --noEmit -p plugins/macp/tsconfig.jsonstill fails in this branch becauseplugins/macp/tsconfig.jsonextends a missingpackages/config/typescript/library.jsonfile and also pulls in pre-existing external OpenClaw type noise.