@linzumi/cli 0.0.35-beta → 0.0.36-beta
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/README.md +3 -2
- package/dist/index.js +9 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,7 +63,7 @@ Install the CLI or run it with `npx`:
|
|
|
63
63
|
|
|
64
64
|
```bash
|
|
65
65
|
npm install -g @linzumi/cli@latest
|
|
66
|
-
npx -y @linzumi/cli@0.0.
|
|
66
|
+
npx -y @linzumi/cli@0.0.36-beta --version
|
|
67
67
|
linzumi --version
|
|
68
68
|
```
|
|
69
69
|
|
|
@@ -114,7 +114,8 @@ linzumi paths add ~/code/my-app
|
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
The trust list lives at `~/.linzumi/config.json`. The bootstrap agent
|
|
117
|
-
adds `/tmp/hello_linzumi` for you on first run.
|
|
117
|
+
adds `/tmp/hello_linzumi` for you on first run. For `linzumi connect`, the
|
|
118
|
+
selected `--cwd` is also trusted for that runner process.
|
|
118
119
|
|
|
119
120
|
## When something looks wrong
|
|
120
121
|
|
package/dist/index.js
CHANGED
|
@@ -9421,7 +9421,7 @@ async function main(args) {
|
|
|
9421
9421
|
process.stdout.write(connectGuideText());
|
|
9422
9422
|
return;
|
|
9423
9423
|
case "version":
|
|
9424
|
-
process.stdout.write(`linzumi 0.0.
|
|
9424
|
+
process.stdout.write(`linzumi 0.0.36-beta
|
|
9425
9425
|
`);
|
|
9426
9426
|
return;
|
|
9427
9427
|
case "auth":
|
|
@@ -9935,13 +9935,15 @@ async function parseRunnerArgs(args, deps = {
|
|
|
9935
9935
|
process.exit(0);
|
|
9936
9936
|
}
|
|
9937
9937
|
if (values.get("version") === true) {
|
|
9938
|
-
process.stdout.write(`linzumi 0.0.
|
|
9938
|
+
process.stdout.write(`linzumi 0.0.36-beta
|
|
9939
9939
|
`);
|
|
9940
9940
|
process.exit(0);
|
|
9941
9941
|
}
|
|
9942
9942
|
const channelTarget = parseChannelSessionTarget(values);
|
|
9943
9943
|
const kandanUrl = required(values, "linzumi-url");
|
|
9944
9944
|
const cwd = stringValue3(values, "cwd") ?? process.cwd();
|
|
9945
|
+
const cwdAllowedCwds = assertConfiguredAllowedCwds([cwd]);
|
|
9946
|
+
const configuredAllowedCwds = values.has("allowed-cwd") ? assertConfiguredAllowedCwds(parseAllowedCwdList(stringValue3(values, "allowed-cwd"))) : readConfiguredAllowedCwds();
|
|
9945
9947
|
const codexBin = stringValue3(values, "codex-bin") ?? "codex";
|
|
9946
9948
|
const customCodeServerBin = stringValue3(values, "code-server-bin");
|
|
9947
9949
|
const explicitToken = stringValue3(values, "token");
|
|
@@ -9981,7 +9983,7 @@ async function parseRunnerArgs(args, deps = {
|
|
|
9981
9983
|
launchTui: values.get("launch-tui") === true,
|
|
9982
9984
|
fast: values.get("fast") === true,
|
|
9983
9985
|
logFile: stringValue3(values, "log-file"),
|
|
9984
|
-
allowedCwds:
|
|
9986
|
+
allowedCwds: Array.from(new Set([...cwdAllowedCwds, ...configuredAllowedCwds])),
|
|
9985
9987
|
allowedForwardPorts: parseAllowedPortList(stringValue3(values, "forward-port")),
|
|
9986
9988
|
codeServerBin: editorRuntime.codeServerBin,
|
|
9987
9989
|
editorRuntime: editorRuntime.runtime,
|
|
@@ -10221,7 +10223,7 @@ Codex:
|
|
|
10221
10223
|
--stream-flush-ms <ms> Batch live Codex deltas before Linzumi persistence, default 150
|
|
10222
10224
|
--fast Mark this runner as low-latency/fast in the availability message
|
|
10223
10225
|
--log-file <path> JSONL event log path, default <cwd>/.linzumi-runner.log
|
|
10224
|
-
--allowed-cwd <paths>
|
|
10226
|
+
--allowed-cwd <paths> Extra comma-separated roots where Linzumi may start local Codex sessions
|
|
10225
10227
|
--forward-port <ports> Comma-separated local TCP ports Linzumi may expose as authenticated previews
|
|
10226
10228
|
--code-server-bin <path> Custom development code-server executable. The default editor runtime is downloaded from Linzumi.
|
|
10227
10229
|
|
|
@@ -10318,8 +10320,9 @@ Usage:
|
|
|
10318
10320
|
linzumi paths add <path>
|
|
10319
10321
|
linzumi paths remove <path>
|
|
10320
10322
|
|
|
10321
|
-
Trusted paths are stored in ~/.linzumi/config.json. linzumi connect
|
|
10322
|
-
|
|
10323
|
+
Trusted paths are stored in ~/.linzumi/config.json. linzumi connect always
|
|
10324
|
+
trusts its selected cwd for that runner process and also uses configured paths
|
|
10325
|
+
unless --allowed-cwd is passed with explicit extra roots.
|
|
10323
10326
|
`;
|
|
10324
10327
|
}
|
|
10325
10328
|
function startHelpText() {
|
package/package.json
CHANGED