moflo 4.8.74 → 4.8.75
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": "moflo",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.75",
|
|
4
4
|
"description": "MoFlo — AI agent orchestration for Claude Code. Forked from ruflo/claude-flow with patches applied to source, plus feature-level orchestration.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"@types/js-yaml": "^4.0.9",
|
|
113
113
|
"@types/node": "^20.19.37",
|
|
114
114
|
"eslint": "^8.0.0",
|
|
115
|
-
"moflo": "^4.8.
|
|
115
|
+
"moflo": "^4.8.74",
|
|
116
116
|
"tsx": "^4.21.0",
|
|
117
117
|
"typescript": "^5.9.3",
|
|
118
118
|
"vitest": "^4.0.0"
|
|
@@ -10,9 +10,11 @@
|
|
|
10
10
|
* container. projectRoot mounts at `/workspace` (the container's CWD);
|
|
11
11
|
* scopes inside projectRoot translate to `/workspace/<rel>`; absolute
|
|
12
12
|
* scopes outside the project are skipped with a log line.
|
|
13
|
-
* - Tool home paths mount under `/
|
|
14
|
-
* the container read and write the same config files the user
|
|
15
|
-
* Windows.
|
|
13
|
+
* - Tool home paths mount under `/home/node/<rel>` so that claude/gh/git
|
|
14
|
+
* inside the container read and write the same config files the user
|
|
15
|
+
* edits on Windows. The container runs as the `node` user (uid 1000)
|
|
16
|
+
* because Claude Code CLI refuses to run as root with
|
|
17
|
+
* `--dangerously-skip-permissions`.
|
|
16
18
|
* - `--network none` is the default; `net` cap or elevated/autonomous omit
|
|
17
19
|
* it (default bridge) — mirrors the bwrap policy.
|
|
18
20
|
* - `--rm` handles cleanup automatically.
|
|
@@ -23,8 +25,12 @@ import { homedir } from 'node:os';
|
|
|
23
25
|
import { posix, isAbsolute, relative } from 'node:path';
|
|
24
26
|
/** Container path where projectRoot is mounted. */
|
|
25
27
|
const CONTAINER_WORKSPACE = '/workspace';
|
|
26
|
-
/**
|
|
27
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Container path where the user's home is projected (for tool home mounts).
|
|
30
|
+
* The sandbox image switches to the `node` user, so tool configs must land
|
|
31
|
+
* in that user's home — not `/root`.
|
|
32
|
+
*/
|
|
33
|
+
const CONTAINER_HOME = '/home/node';
|
|
28
34
|
/**
|
|
29
35
|
* Tool home paths mounted rw for elevated/autonomous steps so claude, gh,
|
|
30
36
|
* git, npm can persist their config/credentials/cache. Mirrors the bwrap
|
|
@@ -112,7 +118,7 @@ function toSafeSegment(hostPath) {
|
|
|
112
118
|
* - net → omit `--network none`
|
|
113
119
|
*
|
|
114
120
|
* When `permissionLevel` is `elevated` or `autonomous`:
|
|
115
|
-
* - Mount tool home paths rw at `/
|
|
121
|
+
* - Mount tool home paths rw at `/home/node/<rel>`
|
|
116
122
|
* - Share the host network (omit `--network none`)
|
|
117
123
|
*/
|
|
118
124
|
export function buildDockerArgs(command, capabilities, projectRoot, options) {
|