@brimveyn/aimux 1.14.11 → 1.14.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimveyn/aimux",
3
- "version": "1.14.11",
3
+ "version": "1.14.13",
4
4
  "description": "A terminal multiplexer for AI CLIs. Run Claude, Codex, OpenCode side-by-side with tabbed navigation, split panes, and persistent sessions.",
5
5
  "keywords": [
6
6
  "ai",
@@ -60,7 +60,7 @@
60
60
  "bump": "bun run scripts/bump.ts"
61
61
  },
62
62
  "dependencies": {
63
- "@brimveyn/aimux-config": "0.6.6",
63
+ "@brimveyn/aimux-config": "0.6.8",
64
64
  "@opentui/core": "^0.1.90",
65
65
  "@opentui/react": "^0.1.90",
66
66
  "@resvg/resvg-wasm": "^2.6.2",
@@ -29,7 +29,6 @@ import {
29
29
  removeGitWorktree,
30
30
  } from '../git/worktree'
31
31
  import { createPrefixedId } from '../platform/id'
32
- import { linkNodeModules } from '../platform/worktree-deps'
33
32
  import {
34
33
  assertSafeAimuxWorktreePath,
35
34
  isInsideAimuxWorktreeRoot,
@@ -1337,9 +1336,6 @@ async function createAimuxTempWorktree(
1337
1336
  await mkdir(dirname(targetPath), { recursive: true })
1338
1337
  await assertSafeAimuxWorktreePath(targetPath)
1339
1338
  await createGitWorktree({ baseRef, branchName, repoPath: repoRoot, targetPath })
1340
- // For JS projects, reuse the source checkout's installed dependencies instead
1341
- // of forcing a fresh install in the new worktree.
1342
- const linkedModules = await linkNodeModules(sourcePath, targetPath).catch(() => false)
1343
1339
  const now = new Date().toISOString()
1344
1340
 
1345
1341
  const worktree: WorktreeRecord = {
@@ -1364,11 +1360,7 @@ async function createAimuxTempWorktree(
1364
1360
  }))
1365
1361
  saveSessionCatalog(sessions)
1366
1362
  ctx.dispatch({ sessions, type: 'set-sessions' })
1367
- toast.success(
1368
- linkedModules
1369
- ? `Created worktree ${branchName} (linked node_modules)`
1370
- : `Created worktree ${branchName}`
1371
- )
1363
+ toast.success(`Created worktree ${branchName}`)
1372
1364
  return worktree
1373
1365
  }
1374
1366
 
@@ -1,22 +0,0 @@
1
- import { existsSync } from 'node:fs'
2
- import { realpath, symlink } from 'node:fs/promises'
3
- import { join } from 'node:path'
4
-
5
- /**
6
- * Symlink the source checkout's `node_modules` into a freshly created worktree
7
- * so a JS project's dependencies don't need reinstalling. No-op when the source
8
- * isn't a JS project, has no installed `node_modules`, or the worktree already
9
- * has one. Returns true when a symlink was created.
10
- */
11
- export async function linkNodeModules(sourceDir: string, worktreePath: string): Promise<boolean> {
12
- if (!existsSync(join(sourceDir, 'package.json'))) return false
13
- const sourceModules = join(sourceDir, 'node_modules')
14
- if (!existsSync(sourceModules)) return false
15
- const targetModules = join(worktreePath, 'node_modules')
16
- if (existsSync(targetModules)) return false
17
- // Resolve through any existing symlink so the new link points at the real
18
- // dependency store rather than chaining through another worktree.
19
- const resolved = await realpath(sourceModules)
20
- await symlink(resolved, targetModules, 'dir')
21
- return true
22
- }