context-mode 1.0.50 → 1.0.52

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/start.mjs CHANGED
@@ -115,14 +115,16 @@ if (cacheMatch) {
115
115
  }
116
116
  }
117
117
 
118
- // Ensure external dependencies are available
119
- for (const pkg of ["better-sqlite3", "turndown", "turndown-plugin-gfm", "@mixmark-io/domino"]) {
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: 60000,
127
+ timeout: 120000,
126
128
  });
127
129
  } catch { /* best effort */ }
128
130
  }