overmux 0.0.7 → 0.0.8
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/CHANGELOG.md +11 -0
- package/dist/auth/.vite/manifest.json +1 -1
- package/dist/auth/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/auth/assets/index-Gk_oLI4g.js +2571 -0
- package/dist/auth/index.html +1 -1
- package/dist/bin.js +8 -5
- package/dist/bin.js.map +1 -1
- package/dist/docs/200-getting-started/100-install-and-run-overmux.md +1 -1
- package/dist/docs/400-reference/700-cli/050-init.md +3 -1
- package/docs/200-getting-started/100-install-and-run-overmux.md +1 -1
- package/docs/400-reference/700-cli/050-init.md +3 -1
- package/package.json +5 -4
- package/src/internal/cli/commands/init-template.ts +3 -0
- package/src/internal/cli/commands/init.ts +16 -6
- package/dist/auth/assets/index-Bc0hP5IW.js +0 -2580
|
@@ -21,7 +21,7 @@ First you need to install the `overmux` CLI.
|
|
|
21
21
|
Prerequisites:
|
|
22
22
|
|
|
23
23
|
- [Node.js 22](https://nodejs.org/en/download) or newer
|
|
24
|
-
- [pnpm 10](https://pnpm.io/installation) or newer
|
|
24
|
+
- [pnpm 10.5.0](https://pnpm.io/installation) or newer
|
|
25
25
|
|
|
26
26
|
Install Overmux globally:
|
|
27
27
|
|
|
@@ -10,6 +10,8 @@ overmux init
|
|
|
10
10
|
|
|
11
11
|
The application is created in `$XDG_CONFIG_HOME/overmux` (default `~/.config/overmux`). See [storage locations](../300-storage-locations.md) for directory defaults and overrides.
|
|
12
12
|
|
|
13
|
-
The command validates the toolchain before writing files. When Mise is installed, it must be [activated in the shell](https://mise.jdx.dev/getting-started.html#activate-mise); the generated `mise.toml` pins Node 22, pnpm 10, and the latest published Overmux version. Without Mise, pnpm 10 or newer must already be available and `mise.toml` is omitted.
|
|
13
|
+
The command validates the toolchain before writing files. When Mise is installed, it must be [activated in the shell](https://mise.jdx.dev/getting-started.html#activate-mise); the generated `mise.toml` pins Node 22, pnpm 10, and the latest published Overmux version. Without Mise, pnpm 10.5.0 or newer must already be available and `mise.toml` is omitted.
|
|
14
14
|
|
|
15
15
|
The initializer pins the exact latest published `overmux` version in `package.json`, installs dependencies, generates `pnpm-lock.yaml`, and runs `overmux check`. Existing scaffold files cause the command to fail without changing them. Unrelated files are preserved.
|
|
16
|
+
|
|
17
|
+
The generated `pnpm-workspace.yaml` allows only `node-pty` to run dependency build scripts, including when you later add `@overmux/tmux`. This approval is project-local; global pnpm settings are unchanged. On Linux, building `node-pty` still requires `node-gyp`, Python, and a native compiler toolchain, which `overmux init` does not install.
|
|
@@ -21,7 +21,7 @@ First you need to install the `overmux` CLI.
|
|
|
21
21
|
Prerequisites:
|
|
22
22
|
|
|
23
23
|
- [Node.js 22](https://nodejs.org/en/download) or newer
|
|
24
|
-
- [pnpm 10](https://pnpm.io/installation) or newer
|
|
24
|
+
- [pnpm 10.5.0](https://pnpm.io/installation) or newer
|
|
25
25
|
|
|
26
26
|
Install Overmux globally:
|
|
27
27
|
|
|
@@ -10,6 +10,8 @@ overmux init
|
|
|
10
10
|
|
|
11
11
|
The application is created in `$XDG_CONFIG_HOME/overmux` (default `~/.config/overmux`). See [storage locations](../300-storage-locations.md) for directory defaults and overrides.
|
|
12
12
|
|
|
13
|
-
The command validates the toolchain before writing files. When Mise is installed, it must be [activated in the shell](https://mise.jdx.dev/getting-started.html#activate-mise); the generated `mise.toml` pins Node 22, pnpm 10, and the latest published Overmux version. Without Mise, pnpm 10 or newer must already be available and `mise.toml` is omitted.
|
|
13
|
+
The command validates the toolchain before writing files. When Mise is installed, it must be [activated in the shell](https://mise.jdx.dev/getting-started.html#activate-mise); the generated `mise.toml` pins Node 22, pnpm 10, and the latest published Overmux version. Without Mise, pnpm 10.5.0 or newer must already be available and `mise.toml` is omitted.
|
|
14
14
|
|
|
15
15
|
The initializer pins the exact latest published `overmux` version in `package.json`, installs dependencies, generates `pnpm-lock.yaml`, and runs `overmux check`. Existing scaffold files cause the command to fail without changing them. Unrelated files are preserved.
|
|
16
|
+
|
|
17
|
+
The generated `pnpm-workspace.yaml` allows only `node-pty` to run dependency build scripts, including when you later add `@overmux/tmux`. This approval is project-local; global pnpm settings are unchanged. On Linux, building `node-pty` still requires `node-gyp`, Python, and a native compiler toolchain, which `overmux init` does not install.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "overmux",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://github.com/richardgill/overmux",
|
|
6
6
|
"repository": {
|
|
@@ -53,8 +53,7 @@
|
|
|
53
53
|
"typescript": "5.9.3",
|
|
54
54
|
"web-push": "3.6.7",
|
|
55
55
|
"ws": "8.21.3",
|
|
56
|
-
"
|
|
57
|
-
"@overmux/keybindings": "0.0.5"
|
|
56
|
+
"@overmux/keybindings": "0.0.6"
|
|
58
57
|
},
|
|
59
58
|
"devDependencies": {
|
|
60
59
|
"@playwright/test": "1.58.0",
|
|
@@ -67,6 +66,7 @@
|
|
|
67
66
|
"react-dom": "19.2.3",
|
|
68
67
|
"vite": "8.2.2",
|
|
69
68
|
"vitest": "4.1.10",
|
|
69
|
+
"zod": "4.6.5",
|
|
70
70
|
"@overmux/ai-context": "0.0.1",
|
|
71
71
|
"@overmux/lib": "0.0.1",
|
|
72
72
|
"@overmux/shared": "0.0.1",
|
|
@@ -75,7 +75,8 @@
|
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"react": "^19.0.0",
|
|
77
77
|
"react-dom": "^19.0.0",
|
|
78
|
-
"vite": "^8.2.1"
|
|
78
|
+
"vite": "^8.2.1",
|
|
79
|
+
"zod": "^4.6.5"
|
|
79
80
|
},
|
|
80
81
|
"publishConfig": {
|
|
81
82
|
"access": "public"
|
|
@@ -7,6 +7,7 @@ export const initScaffoldPaths = [
|
|
|
7
7
|
"mise.toml",
|
|
8
8
|
"package.json",
|
|
9
9
|
"pnpm-lock.yaml",
|
|
10
|
+
"pnpm-workspace.yaml",
|
|
10
11
|
"overmux.config.ts",
|
|
11
12
|
"src/server/index.ts",
|
|
12
13
|
"src/ui/app.tsx",
|
|
@@ -31,6 +32,7 @@ const packageJson = (overmuxVersion: string) =>
|
|
|
31
32
|
overmux: overmuxVersion,
|
|
32
33
|
react: "^19.0.0",
|
|
33
34
|
"react-dom": "^19.0.0",
|
|
35
|
+
zod: "^4.6.5",
|
|
34
36
|
},
|
|
35
37
|
devDependencies: {
|
|
36
38
|
"@types/react": "^19.0.0",
|
|
@@ -65,6 +67,7 @@ pnpm = "10"
|
|
|
65
67
|
}
|
|
66
68
|
: {}),
|
|
67
69
|
"package.json": packageJson(overmuxVersion),
|
|
70
|
+
"pnpm-workspace.yaml": "onlyBuiltDependencies:\n - node-pty\n",
|
|
68
71
|
"overmux.config.ts": `import { defineOvermuxConfig } from "overmux";
|
|
69
72
|
|
|
70
73
|
import server from "./src/server/index";
|
|
@@ -112,13 +112,21 @@ const detectToolchain = (dependencies: InitDependencies): InitToolchain => {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
const pnpm = dependencies.runCommand("pnpm", ["--version"]);
|
|
115
|
-
const major =
|
|
116
|
-
if (
|
|
117
|
-
|
|
115
|
+
const [major = NaN, minor = NaN] = pnpm.stdout.trim().split(".").map(Number);
|
|
116
|
+
if (
|
|
117
|
+
!commandExists(pnpm) ||
|
|
118
|
+
pnpm.status !== 0 ||
|
|
119
|
+
!Number.isFinite(major) ||
|
|
120
|
+
!Number.isFinite(minor)
|
|
121
|
+
) {
|
|
122
|
+
throw new Error(
|
|
123
|
+
"pnpm 10.5.0 or newer is required when mise is not installed",
|
|
124
|
+
);
|
|
118
125
|
}
|
|
119
|
-
|
|
126
|
+
// pnpm 10.5 introduced build approval settings in pnpm-workspace.yaml.
|
|
127
|
+
if (major < 10 || (major === 10 && minor < 5)) {
|
|
120
128
|
throw new Error(
|
|
121
|
-
`pnpm 10 or newer is required when mise is not installed (found ${pnpm.stdout.trim()})`,
|
|
129
|
+
`pnpm 10.5.0 or newer is required when mise is not installed (found ${pnpm.stdout.trim()})`,
|
|
122
130
|
);
|
|
123
131
|
}
|
|
124
132
|
return "pnpm";
|
|
@@ -161,8 +169,10 @@ const runProjectCommand = ({
|
|
|
161
169
|
}
|
|
162
170
|
};
|
|
163
171
|
|
|
172
|
+
// The generated workspace isolates the project and supplies its build allowlist.
|
|
173
|
+
// --ignore-workspace would also ignore that allowlist.
|
|
164
174
|
const pnpmCommands = [
|
|
165
|
-
["install"
|
|
175
|
+
["install"],
|
|
166
176
|
["exec", "overmux", "check", "--config", "./overmux.config.ts"],
|
|
167
177
|
] as const;
|
|
168
178
|
|