Skip to content

Commit c1924e9

Browse files
committed
fix: switch openclaw agent-sdk dep from file: to npm ^0.1.0, fix plugin upgrade
- openclaw now depends on @vectorize-io/hindsight-agent-sdk@^0.1.0 from npm (file: refs don't resolve when installed from npm registry) - CLI removes old plugin extension dir before reinstalling (openclaw doesn't support in-place upgrade)
1 parent c6b0cf3 commit c1924e9

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

hindsight-integrations/openclaw/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
"dependencies": {
4848
"@clack/prompts": "^1.2.0",
49-
"@vectorize-io/hindsight-agent-sdk": "file:../../hindsight-tools/hindsight-agent-sdk",
49+
"@vectorize-io/hindsight-agent-sdk": "^0.1.0",
5050
"@vectorize-io/hindsight-all": "^0.1.0",
5151
"@vectorize-io/hindsight-client": "^0.5.0"
5252
},

hindsight-tools/self-driving-agents/src/cli.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ async function ensurePlugin(): Promise<void> {
255255
p.log.warn("Hindsight plugin not found. Installing...");
256256
}
257257
try {
258+
if (needsUpgrade) {
259+
// Remove old version first — openclaw doesn't support in-place upgrade
260+
const extDir = join(homedir(), ".openclaw", "extensions", "hindsight-openclaw");
261+
rmSync(extDir, { recursive: true, force: true });
262+
}
258263
execSync("openclaw plugins install @vectorize-io/hindsight-openclaw", { stdio: "inherit" });
259264
} catch {
260265
p.cancel(

0 commit comments

Comments
 (0)