volute 0.13.1 → 0.13.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.
@@ -3,7 +3,7 @@ import {
3
3
  AgentManager,
4
4
  getAgentManager,
5
5
  initAgentManager
6
- } from "./chunk-K2ZT3YQ3.js";
6
+ } from "./chunk-QRRXD2V7.js";
7
7
  import "./chunk-O4BN3ZIY.js";
8
8
  import "./chunk-NXT67PPK.js";
9
9
  import "./chunk-LGSW7T7K.js";
@@ -19,7 +19,7 @@ import {
19
19
 
20
20
  // src/lib/agent-manager.ts
21
21
  import { execFile, spawn } from "child_process";
22
- import { chmodSync, existsSync as existsSync3, mkdirSync, readFileSync as readFileSync2, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "fs";
22
+ import { existsSync as existsSync3, mkdirSync, readFileSync as readFileSync2, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "fs";
23
23
  import { resolve } from "path";
24
24
  import { promisify } from "util";
25
25
 
@@ -208,11 +208,6 @@ var AgentManager = class {
208
208
  };
209
209
  if (isIsolationEnabled()) {
210
210
  env.HOME = resolve(dir, "home");
211
- if (process.env.CLAUDE_CONFIG_DIR) {
212
- const projectsDir = resolve(process.env.CLAUDE_CONFIG_DIR, "projects");
213
- mkdirSync(projectsDir, { recursive: true });
214
- chmodSync(projectsDir, 1528);
215
- }
216
211
  }
217
212
  const tsxBin = resolve(dir, "node_modules", ".bin", "tsx");
218
213
  const tsxArgs = ["src/server.ts", "--port", String(port)];
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-GUQVVO3V.js");
12
+ const { default: pkg } = await import("./package-MMTPOMUN.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-BQYYF4YL.js").then((m) => m.run(args));
40
40
  break;
41
41
  case "up":
42
- await import("./up-PR7SGODX.js").then((m) => m.run(args));
42
+ await import("./up-ROC7LJ7G.js").then((m) => m.run(args));
43
43
  break;
44
44
  case "down":
45
45
  await import("./down-36YCOZ7V.js").then((m) => m.run(args));
46
46
  break;
47
47
  case "restart":
48
- await import("./daemon-restart-43RQBPF2.js").then((m) => m.run(args));
48
+ await import("./daemon-restart-P3FEE3QJ.js").then((m) => m.run(args));
49
49
  break;
50
50
  case "setup":
51
- await import("./setup-Y6P7RFQ4.js").then((m) => m.run(args));
51
+ await import("./setup-5NXV25ZS.js").then((m) => m.run(args));
52
52
  break;
53
53
  case "service":
54
54
  await import("./service-5X5EKPVM.js").then((m) => m.run(args));
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  run
4
- } from "./chunk-DCZZFBCX.js";
4
+ } from "./chunk-KN4WBLH2.js";
5
5
  import {
6
6
  stopDaemon
7
7
  } from "./chunk-6BQHEIDO.js";
package/dist/daemon.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  initAgentManager,
14
14
  loadJsonMap,
15
15
  saveJsonMap
16
- } from "./chunk-K2ZT3YQ3.js";
16
+ } from "./chunk-QRRXD2V7.js";
17
17
  import {
18
18
  findOpenClawSession,
19
19
  importOpenClawConnectors,
@@ -3493,7 +3493,7 @@ var app13 = new Hono13().post("/:name/chat", zValidator4("json", chatSchema), as
3493
3493
  const participants = await getParticipants(conversationId);
3494
3494
  const agentParticipants = participants.filter((p) => p.userType === "agent");
3495
3495
  const participantNames = participants.map((p) => p.username);
3496
- const { getAgentManager: getAgentManager2 } = await import("./agent-manager-BLAMP6YV.js");
3496
+ const { getAgentManager: getAgentManager2 } = await import("./agent-manager-4O4AC2S6.js");
3497
3497
  const manager = getAgentManager2();
3498
3498
  const runningAgents = agentParticipants.map((ap) => {
3499
3499
  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.13.1",
7
+ version: "0.13.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",
@@ -24,7 +24,6 @@ var PROFILE_PATH = "/etc/profile.d/volute.sh";
24
24
  var WRAPPER_PATH = "/usr/local/bin/volute";
25
25
  var DATA_DIR = "/var/lib/volute";
26
26
  var AGENTS_DIR = "/agents";
27
- var CLAUDE_DIR = `${DATA_DIR}/.claude`;
28
27
  var HOST_RE = /^[a-zA-Z0-9.:_-]+$/;
29
28
  function validateHost(host) {
30
29
  if (!HOST_RE.test(host)) {
@@ -62,7 +61,6 @@ function generateUnit(voluteBin, port, host) {
62
61
  `Environment=VOLUTE_HOME=${DATA_DIR}`,
63
62
  `Environment=VOLUTE_AGENTS_DIR=${AGENTS_DIR}`,
64
63
  "Environment=VOLUTE_ISOLATION=user",
65
- `Environment=CLAUDE_CONFIG_DIR=${CLAUDE_DIR}`,
66
64
  "Restart=on-failure",
67
65
  "RestartSec=5",
68
66
  "ProtectSystem=true",
@@ -75,7 +73,7 @@ function generateUnit(voluteBin, port, host) {
75
73
  console.warn(`Warning: ProtectHome=yes omitted because volute binary is under ${home}.`);
76
74
  console.warn("Consider installing Node.js system-wide for stronger sandboxing.");
77
75
  }
78
- lines.push("", "[Install]", "WantedBy=multi-user.target", "");
76
+ lines.push("RestrictSUIDSGID=yes", "", "[Install]", "WantedBy=multi-user.target", "");
79
77
  return lines.join("\n");
80
78
  }
81
79
  function install(port, host) {
@@ -96,10 +94,6 @@ function install(port, host) {
96
94
  console.log(`Created ${AGENTS_DIR}`);
97
95
  ensureVoluteGroup({ force: true });
98
96
  console.log("Ensured volute group exists");
99
- mkdirSync(CLAUDE_DIR, { recursive: true });
100
- execFileSync("chown", ["root:volute", CLAUDE_DIR]);
101
- execFileSync("chmod", ["2770", CLAUDE_DIR]);
102
- console.log(`Created ${CLAUDE_DIR}`);
103
97
  execFileSync("chmod", ["755", DATA_DIR]);
104
98
  execFileSync("chmod", ["755", AGENTS_DIR]);
105
99
  console.log("Set permissions on directories");
@@ -143,10 +137,6 @@ exec "${voluteBin}" "$@"
143
137
  console.log(`
144
138
  Volute daemon is running. Data directory: ${DATA_DIR}`);
145
139
  console.log("Use `systemctl status volute` to check status.");
146
- console.log(
147
- `
148
- For agent-sdk agents, copy ~/.claude/.credentials.json to ${CLAUDE_DIR}/.credentials.json`
149
- );
150
140
  } catch (err) {
151
141
  const e = err;
152
142
  console.error("Service installed but failed to start.");
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  readGlobalConfig,
4
4
  run
5
- } from "./chunk-DCZZFBCX.js";
5
+ } from "./chunk-KN4WBLH2.js";
6
6
  import "./chunk-YYUSXARD.js";
7
7
  import "./chunk-KRJ6KCBI.js";
8
8
  import "./chunk-NXT67PPK.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "volute",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "CLI for creating and managing self-modifying AI agents powered by the Claude Agent SDK",
5
5
  "type": "module",
6
6
  "license": "MIT",
File without changes