@botiverse/raft-daemon 0.59.1 → 0.60.0

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.
@@ -1422,6 +1422,11 @@ function parseModeConfig(value) {
1422
1422
  if (value.kind === "fast") return { kind: "fast" };
1423
1423
  return { kind: "default" };
1424
1424
  }
1425
+ function parseCommandConfig(runtime, value) {
1426
+ if (runtime !== "claude" || typeof value !== "string") return void 0;
1427
+ const command = value.trim();
1428
+ return command ? command : void 0;
1429
+ }
1425
1430
  function hydrateRuntimeConfig(input) {
1426
1431
  const stored = isPlainRecord(input.runtimeConfig) && input.runtimeConfig.version === RUNTIME_CONFIG_VERSION ? input.runtimeConfig : null;
1427
1432
  const runtime = typeof stored?.runtime === "string" && stored.runtime.trim() || typeof input.runtime === "string" && input.runtime.trim() || "claude";
@@ -1432,6 +1437,7 @@ function hydrateRuntimeConfig(input) {
1432
1437
  const legacyClaudeApiKey = runtime === "claude" ? legacyEnvVars?.ANTHROPIC_API_KEY : void 0;
1433
1438
  const legacyClaudeCustomModel = runtime === "claude" ? legacyEnvVars?.ANTHROPIC_CUSTOM_MODEL_OPTION : void 0;
1434
1439
  const provider = stored ? parseProviderConfig(runtime, stored.provider, legacyClaudeApiUrl, legacyClaudeApiKey) : runtime === "claude" && legacyClaudeApiUrl && legacyClaudeApiKey ? { kind: "custom", apiUrl: legacyClaudeApiUrl, apiKey: legacyClaudeApiKey } : runtime === "claude" ? { kind: "default" } : void 0;
1440
+ const command = stored ? parseCommandConfig(runtime, stored.command) : void 0;
1435
1441
  return {
1436
1442
  version: RUNTIME_CONFIG_VERSION,
1437
1443
  runtime,
@@ -1439,7 +1445,8 @@ function hydrateRuntimeConfig(input) {
1439
1445
  model: stored ? parseModelConfig(runtime, stored.model, fallbackModel, provider, legacyClaudeCustomModel) : modelConfigFromLegacy(runtime, fallbackModel),
1440
1446
  mode: stored ? parseModeConfig(stored.mode) : { kind: "default" },
1441
1447
  reasoningEffort: stored?.reasoningEffort ?? input.reasoningEffort ?? null,
1442
- envVars: stripControlledRuntimeEnvVars(runtime, stored ? storedEnvVars : legacyEnvVars)
1448
+ envVars: stripControlledRuntimeEnvVars(runtime, stored ? storedEnvVars : legacyEnvVars),
1449
+ ...command ? { command } : {}
1443
1450
  };
1444
1451
  }
1445
1452
  function runtimeConfigModelValue(config) {
@@ -1466,7 +1473,8 @@ function runtimeConfigToLaunchFields(config) {
1466
1473
  model: runtimeConfigModelValue(normalized),
1467
1474
  mode: normalized.mode,
1468
1475
  reasoningEffort: normalized.reasoningEffort ?? null,
1469
- envVars: Object.keys(envVars).length > 0 ? envVars : null
1476
+ envVars: Object.keys(envVars).length > 0 ? envVars : null,
1477
+ ...normalized.command ? { command: normalized.command } : {}
1470
1478
  };
1471
1479
  }
1472
1480
  var PLAN_CONFIG = {
@@ -1477,8 +1485,11 @@ var PLAN_CONFIG = {
1477
1485
  price: 0,
1478
1486
  extraAgentPrice: 0,
1479
1487
  displayFeatures: [
1480
- "Unlimited human seats",
1481
- "Up to 5 agent seats",
1488
+ "Channels",
1489
+ "Tasks",
1490
+ "Unlimited agents on your own computers",
1491
+ "Agent Reminders",
1492
+ "Basic observability",
1482
1493
  "30 days of message history",
1483
1494
  "100 MB file uploads/month"
1484
1495
  ]
@@ -4421,6 +4432,10 @@ function resolveClaudeCommand(deps = {}) {
4421
4432
  CLAUDE_DESKTOP_CLI_SYSTEM_PATH
4422
4433
  ], deps);
4423
4434
  }
4435
+ function resolveClaudeLaunchCommand(config, deps = {}) {
4436
+ const launchRuntimeFields = runtimeConfigToLaunchFields(config);
4437
+ return launchRuntimeFields.command?.trim() || resolveClaudeCommand(deps);
4438
+ }
4424
4439
  function probeClaude(deps = {}) {
4425
4440
  const command = resolveClaudeCommand(deps);
4426
4441
  if (!command) return { available: false };
@@ -4567,7 +4582,7 @@ var ClaudeDriver = class {
4567
4582
  logger.info(
4568
4583
  `[Agent ${ctx.agentId}] transport=cli cli=${ctx.slockCliPath} token_file=${tokenFile}`
4569
4584
  );
4570
- const claudeCommand = resolveClaudeCommand();
4585
+ const claudeCommand = resolveClaudeLaunchCommand(ctx.config);
4571
4586
  const spawnSpec = buildClaudeSpawnSpec(claudeCommand);
4572
4587
  const proc = spawn(spawnSpec.command, args, {
4573
4588
  cwd: ctx.workingDirectory,
@@ -14290,7 +14305,7 @@ function resolveSlockCliPathOrEmpty(moduleUrl = import.meta.url) {
14290
14305
  }
14291
14306
  async function runBundledSlockCli(argv) {
14292
14307
  process.argv = [process.execPath, "slock", ...argv];
14293
- await import("./dist-QQ3DYJPK.js");
14308
+ await import("./dist-JVLCJ2QO.js");
14294
14309
  }
14295
14310
  function detectRuntimes(tracer = noopTracer) {
14296
14311
  const ids = [];
package/dist/cli/index.js CHANGED
@@ -15818,8 +15818,11 @@ var PLAN_CONFIG = {
15818
15818
  price: 0,
15819
15819
  extraAgentPrice: 0,
15820
15820
  displayFeatures: [
15821
- "Unlimited human seats",
15822
- "Up to 5 agent seats",
15821
+ "Channels",
15822
+ "Tasks",
15823
+ "Unlimited agents on your own computers",
15824
+ "Agent Reminders",
15825
+ "Basic observability",
15823
15826
  "30 days of message history",
15824
15827
  "100 MB file uploads/month"
15825
15828
  ]
package/dist/core.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  runBundledSlockCli,
12
12
  scanWorkspaceDirectories,
13
13
  subscribeDaemonLogs
14
- } from "./chunk-C7OYRUYW.js";
14
+ } from "./chunk-65UFKNJJ.js";
15
15
  export {
16
16
  DAEMON_CLI_USAGE,
17
17
  DaemonCore,
@@ -15624,8 +15624,11 @@ var PLAN_CONFIG = {
15624
15624
  price: 0,
15625
15625
  extraAgentPrice: 0,
15626
15626
  displayFeatures: [
15627
- "Unlimited human seats",
15628
- "Up to 5 agent seats",
15627
+ "Channels",
15628
+ "Tasks",
15629
+ "Unlimited agents on your own computers",
15630
+ "Agent Reminders",
15631
+ "Basic observability",
15629
15632
  "30 days of message history",
15630
15633
  "100 MB file uploads/month"
15631
15634
  ]
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  DAEMON_CLI_USAGE,
4
4
  DaemonCore,
5
5
  parseDaemonCliArgs
6
- } from "./chunk-C7OYRUYW.js";
6
+ } from "./chunk-65UFKNJJ.js";
7
7
 
8
8
  // src/index.ts
9
9
  var parsedArgs = parseDaemonCliArgs(process.argv.slice(2));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botiverse/raft-daemon",
3
- "version": "0.59.1",
3
+ "version": "0.60.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "raft-daemon": "dist/raft-daemon.js",