volute 0.10.0 → 0.10.2
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/dist/{agent-manager-MRHHKAB6.js → agent-manager-4OCID725.js} +2 -2
- package/dist/{chunk-IQXBMFZG.js → chunk-46S7YHUB.js} +18 -6
- package/dist/{chunk-WV4W7BAT.js → chunk-KR6WRAJ4.js} +1 -1
- package/dist/cli.js +4 -4
- package/dist/{daemon-restart-QCLR6ZZV.js → daemon-restart-7X72OXOW.js} +1 -1
- package/dist/daemon.js +3 -3
- package/dist/{package-ERGXEDAF.js → package-BS2B432F.js} +1 -1
- package/dist/{setup-ABMZK6LS.js → setup-EDCCQ3X7.js} +2 -2
- package/dist/{up-MNNPCMFF.js → up-FCYL2IPZ.js} +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-4NAGJV3I.js → chunk-M5AEQLB3.js} +0 -0
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
AgentManager,
|
|
4
4
|
getAgentManager,
|
|
5
5
|
initAgentManager
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-KR6WRAJ4.js";
|
|
7
|
+
import "./chunk-46S7YHUB.js";
|
|
8
8
|
import "./chunk-QF22MYDJ.js";
|
|
9
9
|
import "./chunk-DP2DX4WV.js";
|
|
10
10
|
import "./chunk-K3NQKI34.js";
|
|
@@ -22,9 +22,10 @@ function ensureVoluteGroup(opts) {
|
|
|
22
22
|
execFileSync("getent", ["group", "volute"], { stdio: "ignore" });
|
|
23
23
|
} catch {
|
|
24
24
|
try {
|
|
25
|
-
execFileSync("groupadd", ["volute"], { stdio: "ignore" });
|
|
25
|
+
execFileSync("groupadd", ["volute"], { stdio: ["ignore", "ignore", "pipe"] });
|
|
26
26
|
} catch (err) {
|
|
27
|
-
|
|
27
|
+
const stderr = err?.stderr?.toString().trim();
|
|
28
|
+
throw new Error(`Failed to create volute group${stderr ? `: ${stderr}` : ""}`);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
}
|
|
@@ -38,10 +39,11 @@ function createAgentUser(name) {
|
|
|
38
39
|
}
|
|
39
40
|
try {
|
|
40
41
|
execFileSync("useradd", ["-r", "-M", "-G", "volute", "-s", "/usr/sbin/nologin", user], {
|
|
41
|
-
stdio: "ignore"
|
|
42
|
+
stdio: ["ignore", "ignore", "pipe"]
|
|
42
43
|
});
|
|
43
44
|
} catch (err) {
|
|
44
|
-
|
|
45
|
+
const stderr = err?.stderr?.toString().trim();
|
|
46
|
+
throw new Error(`Failed to create user ${user}${stderr ? `: ${stderr}` : ""}`);
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
function deleteAgentUser(name) {
|
|
@@ -68,8 +70,18 @@ async function applyIsolation(spawnOpts, agentName) {
|
|
|
68
70
|
function chownAgentDir(dir, name) {
|
|
69
71
|
if (!isIsolationEnabled()) return;
|
|
70
72
|
const user = agentUserName(name);
|
|
71
|
-
|
|
72
|
-
|
|
73
|
+
try {
|
|
74
|
+
execFileSync("chown", ["-R", `${user}:${user}`, dir], { stdio: ["ignore", "ignore", "pipe"] });
|
|
75
|
+
} catch (err) {
|
|
76
|
+
const stderr = err?.stderr?.toString().trim();
|
|
77
|
+
throw new Error(`Failed to chown ${dir} to ${user}${stderr ? `: ${stderr}` : ""}`);
|
|
78
|
+
}
|
|
79
|
+
try {
|
|
80
|
+
execFileSync("chmod", ["700", dir], { stdio: ["ignore", "ignore", "pipe"] });
|
|
81
|
+
} catch (err) {
|
|
82
|
+
const stderr = err?.stderr?.toString().trim();
|
|
83
|
+
throw new Error(`Failed to chmod ${dir}${stderr ? `: ${stderr}` : ""}`);
|
|
84
|
+
}
|
|
73
85
|
}
|
|
74
86
|
|
|
75
87
|
export {
|
package/dist/cli.js
CHANGED
|
@@ -9,7 +9,7 @@ if (!process.env.VOLUTE_HOME) {
|
|
|
9
9
|
var command = process.argv[2];
|
|
10
10
|
var args = process.argv.slice(3);
|
|
11
11
|
if (command === "--version" || command === "-v") {
|
|
12
|
-
const { default: pkg } = await import("./package-
|
|
12
|
+
const { default: pkg } = await import("./package-BS2B432F.js");
|
|
13
13
|
console.log(pkg.version);
|
|
14
14
|
process.exit(0);
|
|
15
15
|
}
|
|
@@ -39,16 +39,16 @@ switch (command) {
|
|
|
39
39
|
await import("./env-CGORIKVF.js").then((m) => m.run(args));
|
|
40
40
|
break;
|
|
41
41
|
case "up":
|
|
42
|
-
await import("./up-
|
|
42
|
+
await import("./up-FCYL2IPZ.js").then((m) => m.run(args));
|
|
43
43
|
break;
|
|
44
44
|
case "down":
|
|
45
45
|
await import("./down-4LIQG3CE.js").then((m) => m.run(args));
|
|
46
46
|
break;
|
|
47
47
|
case "restart":
|
|
48
|
-
await import("./daemon-restart-
|
|
48
|
+
await import("./daemon-restart-7X72OXOW.js").then((m) => m.run(args));
|
|
49
49
|
break;
|
|
50
50
|
case "setup":
|
|
51
|
-
await import("./setup-
|
|
51
|
+
await import("./setup-EDCCQ3X7.js").then((m) => m.run(args));
|
|
52
52
|
break;
|
|
53
53
|
case "service":
|
|
54
54
|
await import("./service-OW35VZ5G.js").then((m) => m.run(args));
|
package/dist/daemon.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
initAgentManager,
|
|
7
7
|
loadJsonMap,
|
|
8
8
|
saveJsonMap
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KR6WRAJ4.js";
|
|
10
10
|
import {
|
|
11
11
|
checkForUpdate,
|
|
12
12
|
checkForUpdateCached,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
ensureVoluteGroup,
|
|
21
21
|
getAgentUserIds,
|
|
22
22
|
isIsolationEnabled
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-46S7YHUB.js";
|
|
24
24
|
import {
|
|
25
25
|
exec,
|
|
26
26
|
resolveVoluteBin
|
|
@@ -3501,7 +3501,7 @@ var app13 = new Hono13().post("/:name/chat", zValidator3("json", chatSchema), as
|
|
|
3501
3501
|
const participants = await getParticipants(conversationId);
|
|
3502
3502
|
const agentParticipants = participants.filter((p) => p.userType === "agent");
|
|
3503
3503
|
const participantNames = participants.map((p) => p.username);
|
|
3504
|
-
const { getAgentManager: getAgentManager2 } = await import("./agent-manager-
|
|
3504
|
+
const { getAgentManager: getAgentManager2 } = await import("./agent-manager-4OCID725.js");
|
|
3505
3505
|
const manager = getAgentManager2();
|
|
3506
3506
|
const runningAgents = agentParticipants.map((ap) => {
|
|
3507
3507
|
const agentKey = ap.username === baseName ? name : ap.username;
|
|
@@ -4,7 +4,7 @@ import "./chunk-K3NQKI34.js";
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "volute",
|
|
7
|
-
version: "0.10.
|
|
7
|
+
version: "0.10.2",
|
|
8
8
|
description: "CLI for creating and managing self-modifying AI agents powered by the Claude Agent SDK",
|
|
9
9
|
type: "module",
|
|
10
10
|
license: "MIT",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ensureVoluteGroup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-46S7YHUB.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveVoluteBin
|
|
7
7
|
} from "./chunk-5C5JWR2L.js";
|
|
@@ -61,7 +61,7 @@ function generateUnit(voluteBin, port, host) {
|
|
|
61
61
|
"Environment=VOLUTE_ISOLATION=user",
|
|
62
62
|
"Restart=on-failure",
|
|
63
63
|
"RestartSec=5",
|
|
64
|
-
"ProtectSystem=
|
|
64
|
+
"ProtectSystem=true",
|
|
65
65
|
`ReadWritePaths=${DATA_DIR} ${AGENTS_DIR}`,
|
|
66
66
|
"PrivateTmp=yes"
|
|
67
67
|
];
|
package/package.json
CHANGED
|
File without changes
|