@ephemeral-ai/mayfly-cli 0.1.5 → 0.1.7-rc.1
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 +1 -1
- package/README.zh.md +1 -1
- package/lib/bin.js +11 -4
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ npm install -g @ephemeral-ai/mayfly-cli
|
|
|
9
9
|
mayfly
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
For this development checkout, use Node
|
|
12
|
+
For this development checkout, use Node ^24.22.3 || >=26.13.1 and the pinned pnpm:
|
|
13
13
|
|
|
14
14
|
```sh
|
|
15
15
|
pnpm install --frozen-lockfile
|
package/README.zh.md
CHANGED
package/lib/bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
-
import { run, validateArguments } from "@ephemeral-ai/mayfly
|
|
3
|
+
import { run, validateArguments } from "@ephemeral-ai/mayfly/bin";
|
|
4
4
|
import { createConnection, createServer, isIP } from "node:net";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import { dirname, join, resolve } from "node:path";
|
|
@@ -73,7 +73,12 @@ function parse(argv) {
|
|
|
73
73
|
"--host",
|
|
74
74
|
"--resume",
|
|
75
75
|
"--session",
|
|
76
|
-
"--cwd"
|
|
76
|
+
"--cwd",
|
|
77
|
+
"--preset",
|
|
78
|
+
"--output-format",
|
|
79
|
+
"--permission-mode",
|
|
80
|
+
"--questions",
|
|
81
|
+
"--timeout"
|
|
77
82
|
].includes(arg) && args[index + 1] !== void 0) result.remote.push(args[++index]);
|
|
78
83
|
}
|
|
79
84
|
}
|
|
@@ -85,10 +90,12 @@ function parse(argv) {
|
|
|
85
90
|
}
|
|
86
91
|
const HELP = `Mayfly terminal UI and background Host
|
|
87
92
|
|
|
88
|
-
Usage: mayfly [--profile <name>] [--resume <id>] [--cwd <path>] [task ...]
|
|
93
|
+
Usage: mayfly [--profile <name>] [--resume <id>] [--cwd <path>] [options] [task ...]
|
|
89
94
|
mayfly server [start|stop|restart|status|logs|enable|disable|upgrade] [options]
|
|
90
95
|
|
|
91
96
|
The terminal automatically starts its local Host. Quitting detaches only the UI.
|
|
97
|
+
Headless: -p, --print, --headless [--preset <id>] [--output-format text|jsonl]
|
|
98
|
+
[--permission-mode <preset>] [--auto-approve] [--team|--swarm] [--questions recommended|fail] [--timeout <ms>]
|
|
92
99
|
Server defaults to start. --profile selects an instance (default: mayfly).
|
|
93
100
|
Start/restart: --host <address> --port <0..65535> --print-startup-url
|
|
94
101
|
Logs: --follow (default: last 100 lines)
|
|
@@ -894,7 +901,7 @@ try {
|
|
|
894
901
|
else if (process.env.MAYFLY_DSH_STARTUP_URL || options.remote.some((arg) => /^--host(?:=|$)/u.test(arg))) await run(options.remote);
|
|
895
902
|
else {
|
|
896
903
|
const state = await ensure(options, ownBin(), (text) => process.stderr.write(text));
|
|
897
|
-
await run(options.remote, state.url);
|
|
904
|
+
await run(options.remote, { localStartupUrl: state.url });
|
|
898
905
|
}
|
|
899
906
|
}
|
|
900
907
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ephemeral-ai/mayfly-cli",
|
|
3
3
|
"description": "Mayfly terminal UI and background Host management",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.7-rc.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"directory": "packages/cli"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
|
-
"node": "
|
|
31
|
+
"node": "^24.22.3 || >=26.13.1"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@deepseek-ai/dsh": "0.2.
|
|
35
|
-
"@deepseek-ai/dsh-atomic-write": "0.2.
|
|
36
|
-
"@ephemeral-ai/mayfly-host": "0.1.
|
|
37
|
-
"@ephemeral-ai/mayfly
|
|
34
|
+
"@deepseek-ai/dsh": "0.2.3-alpha.3",
|
|
35
|
+
"@deepseek-ai/dsh-atomic-write": "0.2.3-alpha.3",
|
|
36
|
+
"@ephemeral-ai/mayfly-host": "0.1.7-rc.1",
|
|
37
|
+
"@ephemeral-ai/mayfly": "0.1.7-rc.1"
|
|
38
38
|
},
|
|
39
39
|
"keywords": [
|
|
40
40
|
"dsh",
|