context-mode 1.0.51 → 1.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/.openclaw-plugin/openclaw.plugin.json +1 -1
- package/.openclaw-plugin/package.json +1 -1
- package/README.md +1 -0
- package/build/adapters/opencode/index.d.ts +2 -0
- package/build/adapters/opencode/index.js +16 -18
- package/cli.bundle.mjs +71 -71
- package/hooks/cursor/posttooluse.mjs +1 -0
- package/hooks/cursor/sessionstart.mjs +1 -0
- package/hooks/ensure-deps.mjs +39 -0
- package/hooks/gemini-cli/aftertool.mjs +1 -0
- package/hooks/gemini-cli/precompress.mjs +1 -0
- package/hooks/gemini-cli/sessionstart.mjs +1 -0
- package/hooks/kiro/posttooluse.mjs +1 -0
- package/hooks/posttooluse.mjs +1 -0
- package/hooks/precompact.mjs +1 -0
- package/hooks/sessionstart.mjs +1 -0
- package/hooks/userpromptsubmit.mjs +1 -0
- package/hooks/vscode-copilot/posttooluse.mjs +1 -0
- package/hooks/vscode-copilot/precompact.mjs +1 -0
- package/hooks/vscode-copilot/sessionstart.mjs +1 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/server.bundle.mjs +51 -51
- package/start.mjs +5 -3
package/start.mjs
CHANGED
|
@@ -115,14 +115,16 @@ if (cacheMatch) {
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
// Ensure
|
|
119
|
-
|
|
118
|
+
// Ensure native dependencies are available (shared with hooks via ensure-deps.mjs)
|
|
119
|
+
import { ensureDeps } from "./hooks/ensure-deps.mjs";
|
|
120
|
+
// ensure-deps handles better-sqlite3; also install pure-JS deps used by server
|
|
121
|
+
for (const pkg of ["turndown", "turndown-plugin-gfm", "@mixmark-io/domino"]) {
|
|
120
122
|
if (!existsSync(resolve(__dirname, "node_modules", pkg))) {
|
|
121
123
|
try {
|
|
122
124
|
execSync(`npm install ${pkg} --no-package-lock --no-save --silent`, {
|
|
123
125
|
cwd: __dirname,
|
|
124
126
|
stdio: "pipe",
|
|
125
|
-
timeout:
|
|
127
|
+
timeout: 120000,
|
|
126
128
|
});
|
|
127
129
|
} catch { /* best effort */ }
|
|
128
130
|
}
|