context-mode 0.9.16 → 0.9.17

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
@@ -62,15 +62,17 @@ if (cacheMatch) {
62
62
  }
63
63
  }
64
64
 
65
- // Ensure native module is available
66
- if (!existsSync(resolve(__dirname, "node_modules", "better-sqlite3"))) {
67
- try {
68
- execSync("npm install better-sqlite3 --no-package-lock --no-save --silent", {
69
- cwd: __dirname,
70
- stdio: "pipe",
71
- timeout: 60000,
72
- });
73
- } catch { /* best effort */ }
65
+ // Ensure external dependencies are available
66
+ for (const pkg of ["better-sqlite3", "turndown", "turndown-plugin-gfm", "@mixmark-io/domino"]) {
67
+ if (!existsSync(resolve(__dirname, "node_modules", pkg))) {
68
+ try {
69
+ execSync(`npm install ${pkg} --no-package-lock --no-save --silent`, {
70
+ cwd: __dirname,
71
+ stdio: "pipe",
72
+ timeout: 60000,
73
+ });
74
+ } catch { /* best effort */ }
75
+ }
74
76
  }
75
77
 
76
78
  // Bundle exists (CI-built) — start instantly