test: fix stale boundary guardrails
This commit is contained in:
parent
a996f60f11
commit
b9c4db1a77
@ -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
|
||||
|
||||
|
||||
@ -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 () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user