mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user