@predotdev/mcp 2.0.0 → 2.0.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/setup.mjs +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@predotdev/mcp",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "pre.dev in any coding agent: Browser Agents in the Chrome you already use and in the cloud, plus specs and plans. One command to set up. Free and open source.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/setup.mjs CHANGED
@@ -147,7 +147,9 @@ export function createSetup(ctx) {
147
147
  function installApp() {
148
148
  if (path.resolve(packageRoot) === path.resolve(APP_DIR)) return ok(`Installed in ${APP_DIR.replace(home, '~')}`);
149
149
  fs.mkdirSync(path.join(APP_DIR, 'src'), { recursive: true });
150
- for (const file of ['src/bridge.mjs', 'src/tools.mjs', 'src/setup.mjs', 'package.json', 'LICENSE', 'README.md']) {
150
+ // Every module in src/, so a new one can never be left out of the installed copy.
151
+ const modules = fs.readdirSync(path.join(packageRoot, 'src')).filter(name => name.endsWith('.mjs')).map(name => `src/${name}`);
152
+ for (const file of [...modules, 'package.json', 'LICENSE', 'README.md']) {
151
153
  const from = path.join(packageRoot, file);
152
154
  if (!fs.existsSync(from)) continue;
153
155
  const tmp = path.join(APP_DIR, `${file}.${process.pid}`);