test: fix stale boundary guardrails

This commit is contained in:
Peter Steinberger 2026-03-18 23:09:56 +00:00
parent a996f60f11
commit b9c4db1a77
2 changed files with 4 additions and 10 deletions

View File

@ -131,10 +131,10 @@ export { MyChannelRuntime } from "./src/runtime.js";
export { internalHelper } from "./src/helpers.js";
```
**Self-import guardrail**: never import your own extension through
`openclaw/plugin-sdk/my-channel` from production files. Route internal imports
through `./api.ts` or `./runtime-api.ts` instead. The SDK subpath is the
external contract only.
**Self-import guardrail**: never import your own extension back through its
published SDK contract path from production files. Route internal imports
through `./api.ts` or `./runtime-api.ts` instead. The SDK contract is for
external consumers only.
## Step 5: Add a plugin manifest

View File

@ -27,12 +27,6 @@ describe("plugin extension import boundary inventory", () => {
expect(inventory.some((entry) => entry.file === "src/plugins/web-search-providers.ts")).toBe(
false,
);
expect(inventory).toContainEqual(
expect.objectContaining({
file: "src/plugins/runtime/runtime-signal.ts",
resolvedPath: "extensions/signal/runtime-api.js",
}),
);
});
it("ignores plugin-sdk boundary shims by scope", async () => {