@loicngr/kobo 1.4.4 → 1.4.5
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.
|
@@ -8,6 +8,11 @@ import { getWorkspace, updateDevServerStatus } from './workspace-service.js';
|
|
|
8
8
|
function getWorktreePath(projectPath, workingBranch) {
|
|
9
9
|
return path.join(projectPath, '.worktrees', workingBranch);
|
|
10
10
|
}
|
|
11
|
+
/** Build a clean env for child processes, stripping Kobo-specific variables. */
|
|
12
|
+
function cleanEnv() {
|
|
13
|
+
const { PORT, SERVER_PORT, ...rest } = process.env;
|
|
14
|
+
return rest;
|
|
15
|
+
}
|
|
11
16
|
// ── State ──────────────────────────────────────────────────────────────────────
|
|
12
17
|
/** workspaceId -> spawned dev-server process */
|
|
13
18
|
const trackedProcesses = new Map();
|
|
@@ -143,7 +148,7 @@ export function startDevServer(workspaceId) {
|
|
|
143
148
|
const proc = spawn('bash', ['-c', settings.devServer.startCommand], {
|
|
144
149
|
cwd,
|
|
145
150
|
env: {
|
|
146
|
-
...
|
|
151
|
+
...cleanEnv(),
|
|
147
152
|
INSTANCE: instanceName,
|
|
148
153
|
DEV_DOCKER_NO_FOLLOW: '1',
|
|
149
154
|
},
|
|
@@ -229,7 +234,7 @@ export function stopDevServer(workspaceId) {
|
|
|
229
234
|
execSync(settings.devServer.stopCommand, {
|
|
230
235
|
cwd,
|
|
231
236
|
env: {
|
|
232
|
-
...
|
|
237
|
+
...cleanEnv(),
|
|
233
238
|
INSTANCE: instanceName,
|
|
234
239
|
PROJECT_NAME: config?.projectName ?? '',
|
|
235
240
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loicngr/kobo",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.5",
|
|
4
4
|
"description": "Kōbō — multi-workspace agent manager for Claude Code. Orchestrates isolated git worktrees with dev servers, Notion integration, and MCP tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "GPL-3.0-or-later",
|