repoburg 1.3.277 → 1.3.279

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.
@@ -10,8 +10,8 @@
10
10
  href="https://fonts.googleapis.com/css2?family=Inter:wght@400;450;510;590;600&family=JetBrains+Mono:wght@400;500&display=swap"
11
11
  rel="stylesheet"
12
12
  />
13
- <script type="module" crossorigin src="/assets/index-_wc4JDGr.js"></script>
14
- <link rel="stylesheet" crossorigin href="/assets/index-l4iJLb5_.css">
13
+ <script type="module" crossorigin src="/assets/index-DMFO29nN.js"></script>
14
+ <link rel="stylesheet" crossorigin href="/assets/index-BD6rEkyH.css">
15
15
  </head>
16
16
  <body>
17
17
  <div id="root"></div>
@@ -20,7 +20,9 @@ const checkRemoteAuth_1 = require("./middleware/checkRemoteAuth");
20
20
  const staticServing_1 = require("./staticServing");
21
21
  const router_1 = require("./recorder/router");
22
22
  const tabtape_1 = require("./tabtape");
23
- const PORT = 9998;
23
+ // REPOBURG_DAEMON_PORT is for checks that start a second daemon next to the
24
+ // running one (runtime/smoke-test.sh); everything else expects 9998.
25
+ const PORT = Number(process.env.REPOBURG_DAEMON_PORT) || 9998;
24
26
  /**
25
27
  * tabtape (browser session recording and replay) on this port under
26
28
  * /tabtape. Failure is non-fatal: the daemon keeps running without it.
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.serviceManager = void 0;
40
40
  exports.backendScriptPath = backendScriptPath;
41
41
  exports.instanceEnv = instanceEnv;
42
+ exports.backendStartOptions = backendStartOptions;
42
43
  exports.describeError = describeError;
43
44
  const pm2_1 = __importDefault(require("pm2"));
44
45
  const path_1 = __importDefault(require("path"));
@@ -84,6 +85,27 @@ function instanceEnv(projectPath, name, port) {
84
85
  // Drop keys unset in the caller env — pm2 env is {[key: string]: string}.
85
86
  return Object.fromEntries(Object.entries(base).filter(([, v]) => v !== undefined));
86
87
  }
88
+ /**
89
+ * pm2 options for a backend instance. The interpreter is the daemon's own
90
+ * node: left unset, pm2 runs a `.js` script with the first `node` in PATH,
91
+ * which can be another Node.js version than the one the native modules
92
+ * (better-sqlite3) were built for, for example the user's nvm node next to
93
+ * the node of the Repoburg runtime (runtime/).
94
+ */
95
+ function backendStartOptions(name, script, env, logPaths) {
96
+ return {
97
+ name,
98
+ script,
99
+ interpreter: process.execPath,
100
+ exec_mode: 'fork',
101
+ instances: 1,
102
+ env,
103
+ output: logPaths.out,
104
+ error: logPaths.err,
105
+ log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
106
+ merge_logs: true,
107
+ };
108
+ }
87
109
  /** Human message for unknown errors (pm2 throws arrays of Errors). */
88
110
  function describeError(error) {
89
111
  if (error instanceof Error)
@@ -199,31 +221,11 @@ class ServiceManager {
199
221
  await this.remove(name);
200
222
  }
201
223
  const port = await (0, get_port_1.default)({ port: (0, get_port_1.portNumbers)(3400, 3999) });
202
- const isDevelopment = process.env.NODE_ENV === 'development';
203
- let interpreter = undefined;
204
224
  const script = backendScriptPath(__dirname);
205
- if (isDevelopment) {
206
- interpreter = 'node';
207
- console.log(`[ServiceManager] Development mode detected (NODE_ENV=${process.env.NODE_ENV}).`);
208
- }
209
- else {
210
- console.log(`[ServiceManager] Production mode detected (NODE_ENV=${process.env.NODE_ENV}).`);
211
- }
212
- console.log(`[ServiceManager] Starting backend service using script: ${script}`);
225
+ console.log(`[ServiceManager] Starting backend service using script: ${script} (node: ${process.execPath})`);
213
226
  const logPaths = this._getLogPathsForName(name);
214
227
  console.log(`logPaths:`, logPaths);
215
- const options = {
216
- name,
217
- script,
218
- interpreter,
219
- exec_mode: 'fork',
220
- instances: 1,
221
- env: instanceEnv(absolutePath, name, port),
222
- output: logPaths.out,
223
- error: logPaths.err,
224
- log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
225
- merge_logs: true,
226
- };
228
+ const options = backendStartOptions(name, script, instanceEnv(absolutePath, name, port), logPaths);
227
229
  try {
228
230
  const pm2Process = await this.startPm2(options);
229
231
  const pid = pm2Process?.pid ?? null;
@@ -49,6 +49,26 @@ describe('instanceEnv', () => {
49
49
  }
50
50
  });
51
51
  });
52
+ describe('backendStartOptions', () => {
53
+ it("runs the backend with the daemon's own node, not the first node in PATH", () => {
54
+ const options = (0, serviceManager_1.backendStartOptions)('proj', '/r/daemon/instance-entry.js', { PORT: '3400' }, {
55
+ out: '/h/.pm2/logs/proj-out.log',
56
+ err: '/h/.pm2/logs/proj-error.log',
57
+ });
58
+ expect(options).toEqual({
59
+ name: 'proj',
60
+ script: '/r/daemon/instance-entry.js',
61
+ interpreter: process.execPath,
62
+ exec_mode: 'fork',
63
+ instances: 1,
64
+ env: { PORT: '3400' },
65
+ output: '/h/.pm2/logs/proj-out.log',
66
+ error: '/h/.pm2/logs/proj-error.log',
67
+ log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
68
+ merge_logs: true,
69
+ });
70
+ });
71
+ });
52
72
  describe('describeError', () => {
53
73
  it('returns the message of an Error', () => {
54
74
  expect((0, serviceManager_1.describeError)(new Error('boom'))).toBe('boom');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repoburg",
3
- "version": "1.3.277",
3
+ "version": "1.3.279",
4
4
  "description": "A local AI-powered software developer assistant that runs on your own machine.",
5
5
  "author": "Celal Ertug",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -77,6 +77,8 @@
77
77
  "mac:build": "daemon-macos/scripts/build-app.sh",
78
78
  "mac:install": "daemon-macos/scripts/install.sh",
79
79
  "mac:release": "daemon-macos/scripts/release.sh",
80
+ "runtime:build": "runtime/build.sh",
81
+ "runtime:release": "runtime/release.sh",
80
82
  "jaeger:start": "docker run -d --rm --name jaeger -e COLLECTOR_OTLP_ENABLED=true -p 16686:16686 -p 4318:4318 jaegertracing/all-in-one:latest",
81
83
  "jaeger:stop": "docker stop jaeger",
82
84
  "lo:build": "npm run build -w backend && npm run build -w website2 && (cd agent-pane/backend && npm run build) && (cd agent-pane/frontend && npm run build) && npm run build -w recorder && npm run build -w visual-editor-proxy && npm run tabtape:build && npm run build -w daemon && cd frontend && npm run build",
package/platform-cli.js CHANGED
@@ -212,10 +212,11 @@ program
212
212
  const proxyPath = path.resolve(__dirname, 'visual-editor-proxy');
213
213
  console.log(chalk.cyan(`Starting Visual Editor proxy for: ${options.url}`));
214
214
 
215
- const child = spawn('npm', ['run', 'start'], {
215
+ // The proxy's `npm start` (node dist/src/main.js), run with this
216
+ // node: the Repoburg runtime has no npm or node in PATH.
217
+ const child = spawn(process.execPath, [path.join(proxyPath, 'dist', 'src', 'main.js')], {
216
218
  cwd: proxyPath,
217
219
  stdio: 'inherit', // Pipe output to the parent terminal
218
- shell: true,
219
220
  env: {
220
221
  ...process.env,
221
222
  TARGET_URL: options.url,
@@ -1,7 +1,7 @@
1
1
  {
2
- "tree": "be7a0bb65dfb8b69e1abe13098765c382867de6a",
3
- "commit": "31b07a5e042647eb71fb2db90884541905e67465",
2
+ "tree": "d64a42e34da47bfa9c700a72af183de7b539d91e",
3
+ "commit": "c9ab9267d68f4a9c8b38f1f003f0cefaeb2198bd",
4
4
  "dirty": false,
5
- "repoburgVersion": "1.3.277",
6
- "builtAt": "2026-10-26T06:31:02.934Z"
5
+ "repoburgVersion": "1.3.279",
6
+ "builtAt": "2026-10-30T05:21:03.398Z"
7
7
  }
@@ -58,5 +58,5 @@
58
58
  ]
59
59
  }
60
60
  ],
61
- "version_name": "0.6.0 (repoburg 1.3.277, 31b07a5)"
61
+ "version_name": "0.6.0 (repoburg 1.3.279, c9ab926)"
62
62
  }
@@ -23,6 +23,10 @@ if (!existsSync(path.join(extensionPath, 'manifest.json'))) {
23
23
  console.error(`tabtape: the extension is not built (${extensionPath}); run "npm install && npm run build" in the tabtape directory of the Repoburg repository`);
24
24
  process.exit(1);
25
25
  }
26
+ // npx and Playwright MCP's `#!/usr/bin/env node` bin look for node in PATH.
27
+ // This node's directory goes after the user's own entries, so it is only a
28
+ // fallback, for a node started by absolute path (the Repoburg runtime's).
29
+ const env = { ...process.env, PATH: [process.env.PATH, path.dirname(process.execPath)].filter(Boolean).join(path.delimiter) };
26
30
  const dir = await mkdtemp(path.join(os.tmpdir(), 'tabtape-playwright-mcp-'));
27
31
  const config = path.join(dir, 'config.json');
28
32
  await writeFile(
@@ -38,12 +42,12 @@ await writeFile(
38
42
  // when it is there, and downloads it (~100 MB) after an update. Its output
39
43
  // goes to stderr.
40
44
  await new Promise((resolve) => {
41
- const install = spawn('npx', ['-y', '@playwright/mcp@latest', 'install-browser', 'chromium'], { stdio: ['ignore', 2, 2] });
45
+ const install = spawn('npx', ['-y', '@playwright/mcp@latest', 'install-browser', 'chromium'], { stdio: ['ignore', 2, 2], env });
42
46
  install.on('exit', resolve);
43
47
  install.on('error', resolve);
44
48
  });
45
49
  const args = process.argv.slice(2).filter((a) => a !== '--isolated');
46
- const child = spawn('npx', ['-y', '@playwright/mcp@latest', '--config', config, '--user-data-dir', path.join(dir, 'profile'), ...args], { stdio: 'inherit' });
50
+ const child = spawn('npx', ['-y', '@playwright/mcp@latest', '--config', config, '--user-data-dir', path.join(dir, 'profile'), ...args], { stdio: 'inherit', env });
47
51
 
48
52
  const cleanup = () => rm(dir, { recursive: true, force: true }).catch(() => {});
49
53
  for (const signal of ['SIGINT', 'SIGTERM', 'SIGHUP']) process.on(signal, () => child.kill(signal));
@@ -1,7 +1,7 @@
1
1
  {
2
- "tree": "be7a0bb65dfb8b69e1abe13098765c382867de6a",
3
- "commit": "31b07a5e042647eb71fb2db90884541905e67465",
2
+ "tree": "d64a42e34da47bfa9c700a72af183de7b539d91e",
3
+ "commit": "c9ab9267d68f4a9c8b38f1f003f0cefaeb2198bd",
4
4
  "dirty": false,
5
- "repoburgVersion": "1.3.277",
6
- "builtAt": "2026-10-26T06:31:02.934Z"
5
+ "repoburgVersion": "1.3.279",
6
+ "builtAt": "2026-10-30T05:21:03.398Z"
7
7
  }