diff --git a/extensions/canvas/scripts/copy-a2ui.test.ts b/extensions/canvas/scripts/copy-a2ui.test.ts index 8ea2ea5adf5..16f30c63f27 100644 --- a/extensions/canvas/scripts/copy-a2ui.test.ts +++ b/extensions/canvas/scripts/copy-a2ui.test.ts @@ -7,15 +7,6 @@ import { copyA2uiAssets } from "./copy-a2ui.mjs"; const ORIGINAL_SKIP_MISSING = process.env.OPENCLAW_A2UI_SKIP_MISSING; const ORIGINAL_SPARSE_PROFILE = process.env.OPENCLAW_SPARSE_PROFILE; -async function withTempDir(prefix: string, run: (dir: string) => Promise): Promise { - const dir = await fs.mkdtemp(path.join(os.tmpdir(), prefix)); - try { - await run(dir); - } finally { - await fs.rm(dir, { recursive: true, force: true }); - } -} - describe("canvas a2ui copy", () => { beforeEach(() => { delete process.env.OPENCLAW_A2UI_SKIP_MISSING; diff --git a/scripts/deadcode-unused-files.allowlist.mjs b/scripts/deadcode-unused-files.allowlist.mjs index e5d4670b2f8..887f94800c3 100644 --- a/scripts/deadcode-unused-files.allowlist.mjs +++ b/scripts/deadcode-unused-files.allowlist.mjs @@ -2,8 +2,14 @@ // generated/build inputs, manifest-discovered plugin surfaces, live-test // helpers, or package bridge files that static production scanning cannot see. export const KNIP_UNUSED_FILE_ALLOWLIST = [ + "extensions/acpx/src/runtime-internals/error-format.mjs", + "extensions/acpx/src/runtime-internals/mcp-command-line.mjs", + "extensions/acpx/src/runtime-internals/mcp-proxy.mjs", + "extensions/canvas/src/host/a2ui-app/bootstrap.js", + "extensions/canvas/src/host/a2ui-app/rolldown.config.mjs", "extensions/diffs/src/viewer-client.ts", "extensions/diffs/src/viewer-payload.ts", + "extensions/matrix/src/plugin-entry.runtime.js", "extensions/memory-core/src/memory-tool-manager-mock.ts", "src/agents/subagent-registry.runtime.ts", "src/auto-reply/inbound.group-require-mention-test-plugins.ts",