fix(lobster): restore literal dep reference for runtime contract

70ab6b324d dropped the last literal "@clawdbot/lobster" mention from the
runner while keeping the join-built dynamic import, so the unused-direct-
dependency contract started failing on main. Document the join trick with
the literal package path so the contract sees the dependency again.
This commit is contained in:
Peter Steinberger
2026-07-13 14:52:07 -07:00
parent 898ef1f45c
commit 76834210f8
+3
View File
@@ -274,6 +274,9 @@ async function withTimeout<T>(
}
async function loadEmbeddedToolRuntimeFromPackage(): Promise<EmbeddedToolRuntime> {
// Joined specifier keeps bundlers from statically resolving
// @clawdbot/lobster/core; the plugin's declared @clawdbot/lobster dependency
// provides it at runtime, so it is a used direct dependency.
const coreSpecifier = ["@clawdbot", "lobster", "core"].join("/");
return (await import(coreSpecifier)) as EmbeddedToolRuntime;
}