fix: restore canvas ci checks

This commit is contained in:
Shakker
2026-05-07 11:55:52 +01:00
parent 0fd6607d56
commit 2c0f8a0beb
2 changed files with 6 additions and 9 deletions

View File

@@ -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<void>): Promise<void> {
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;

View File

@@ -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",