limixbot 0.3.105 → 0.3.106

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.
Files changed (75) hide show
  1. package/cli.js +1 -1
  2. package/dist/assets/{ActivityPanel-Cbm_MV4_.js → ActivityPanel-CCcPfgz5.js} +1 -1
  3. package/dist/assets/{App-CdDhOj9Z.js → App-zBBulOuW.js} +11 -11
  4. package/dist/assets/{AppEventEditor-Cbwuipry.js → AppEventEditor-DwF0_M1b.js} +1 -1
  5. package/dist/assets/{BotSettingsDialog-C8LF47q9.js → BotSettingsDialog-DxU0bbvL.js} +1 -1
  6. package/dist/assets/{BrowserPanel-Xb2e7PXu.js → BrowserPanel-BhTErfef.js} +1 -1
  7. package/dist/assets/{BrowserProfilesManager-BNS5E_18.js → BrowserProfilesManager-Db3HtlGT.js} +1 -1
  8. package/dist/assets/{CloudAddDialog-f84YQfvX.js → CloudAddDialog-kamEe44b.js} +1 -1
  9. package/dist/assets/{ComputerFilesPane-BsZ9OtSJ.js → ComputerFilesPane-CcKrhxHb.js} +1 -1
  10. package/dist/assets/{ComputerPanel-a3_n-Lx2.js → ComputerPanel-xvhrDI3V.js} +2 -2
  11. package/dist/assets/{DataPanel-C3buf1SP.js → DataPanel-U-hn3L__.js} +1 -1
  12. package/dist/assets/{GrokMoveDialog-B43cbS0W.js → GrokMoveDialog-DUq8KP9G.js} +1 -1
  13. package/dist/assets/{InspectorPanel-Cs9FS_iX.js → InspectorPanel-USPl8hOG.js} +1 -1
  14. package/dist/assets/{KeyboardShortcutsModal-C1Yic9QC.js → KeyboardShortcutsModal-p9ysRLk1.js} +1 -1
  15. package/dist/assets/{LimixResizeHandles-DKF6WDfT.js → LimixResizeHandles-BKWnbJ2i.js} +1 -1
  16. package/dist/assets/{LiveDesktop-xm24_62C.js → LiveDesktop-DhWsbWD4.js} +1 -1
  17. package/dist/assets/{LocalVmWorkspace-B91eNABI.js → LocalVmWorkspace-CmUPQxAR.js} +1 -1
  18. package/dist/assets/{MacLocalControl-CurQWXB4.js → MacLocalControl-BhwfZLHm.js} +1 -1
  19. package/dist/assets/{MarkdownFilePreview-8kMe2rTR.js → MarkdownFilePreview-CuhD_8FB.js} +1 -1
  20. package/dist/assets/{NewBotDialog-dJmhmATK.js → NewBotDialog-wcLErpXf.js} +1 -1
  21. package/dist/assets/{PhoneAppDialog-CGplah7d.js → PhoneAppDialog-DgId8RUc.js} +1 -1
  22. package/dist/assets/{PluginsPanel-Boc4Pd3r.js → PluginsPanel-mk1MGvXs.js} +1 -1
  23. package/dist/assets/{ProIntroduction-J0r_kMie.js → ProIntroduction-BYE3bQsp.js} +1 -1
  24. package/dist/assets/{RemoteAgentSettingsPanel-lJv8UpKf.js → RemoteAgentSettingsPanel-CKiEG2R6.js} +1 -1
  25. package/dist/assets/{RoomPanel-C0PK6RRW.js → RoomPanel-DOg2_LNg.js} +1 -1
  26. package/dist/assets/{RoutinesPage-DMdxfslh.js → RoutinesPage-BsAHR1A_.js} +1 -1
  27. package/dist/assets/{SettingsModal-DtTIkNSu.js → SettingsModal-B2079ETl.js} +1 -1
  28. package/dist/assets/{ShareTeamDialog-BVjQQgRH.js → ShareTeamDialog-do0hDEeZ.js} +1 -1
  29. package/dist/assets/{SignedInSites--OK-tl6k.js → SignedInSites-GP2V7pnE.js} +1 -1
  30. package/dist/assets/{TeamLibraryPanel-bC-6F_Y3.js → TeamLibraryPanel-DZT4YTMk.js} +1 -1
  31. package/dist/assets/{TeamMapPage-4zEXJFbR.js → TeamMapPage-D0E4dgpI.js} +1 -1
  32. package/dist/assets/{TriggersPage-BT6g9Qzg.js → TriggersPage-DjLrZqK8.js} +1 -1
  33. package/dist/assets/{VisibilitySection-CxIPRF7z.js → VisibilitySection-D1WhMCk7.js} +1 -1
  34. package/dist/assets/{WebhookTrigger-DkFSYsbI.js → WebhookTrigger-DhQjWpWp.js} +1 -1
  35. package/dist/assets/{WorksOnGrid-Cl8JsM01.js → WorksOnGrid-BXuGA0Sp.js} +1 -1
  36. package/dist/assets/{core-6oEBX5E0.js → core-B3DZ2YZD.js} +1 -1
  37. package/dist/assets/{import-name-lXRpvJU5.js → import-name-DMgD6yXZ.js} +1 -1
  38. package/dist/assets/{index-Dv79GO2D.js → index-Bi9hjnIk.js} +2 -2
  39. package/dist/assets/{index-DJS0AZbc.js → index-DSJo2jnB.js} +1 -1
  40. package/dist/assets/{mcp-servers-CQx7iElK.js → mcp-servers-B7A4aRDZ.js} +1 -1
  41. package/dist/assets/{new-bot-DDzAckAK.js → new-bot-OFavyOJo.js} +1 -1
  42. package/dist/assets/{org-library-DpkG9WUs.js → org-library-D--Qr-TG.js} +1 -1
  43. package/dist/assets/{package-format-CQ9ehT0X.js → package-format-CamEIwIj.js} +1 -1
  44. package/dist/assets/{remote-desktop-panel-C-3gtWIh.js → remote-desktop-panel-D_S7gQya.js} +1 -1
  45. package/dist/index.html +1 -1
  46. package/dist-server/cloud-home-start.js +3 -3
  47. package/dist-server/index.js +102 -97
  48. package/dist-server/{openmausbot.js → limixbot.js} +78 -78
  49. package/dist-server/package.json +1 -1
  50. package/dist-server/pair-cli.js +78 -78
  51. package/dist-server/server/bot-api-host.js +11 -8
  52. package/dist-server/server/bot-channels/engine.js +17 -2
  53. package/dist-server/server/browser-relay.js +1 -1
  54. package/dist-server/server/caddy.js +1 -1
  55. package/dist-server/server/cli-invocation.js +5 -5
  56. package/dist-server/server/cli-usage.js +25 -25
  57. package/dist-server/server/cli.js +3 -3
  58. package/dist-server/server/container-computer.js +1 -1
  59. package/dist-server/server/drivers/antigravity-acp.js +1 -1
  60. package/dist-server/server/enterprise.js +2 -2
  61. package/dist-server/server/fleet.js +1 -1
  62. package/dist-server/server/headless/main.js +27 -27
  63. package/dist-server/server/index.js +10 -4
  64. package/dist-server/server/move-freeze.js +2 -2
  65. package/dist-server/server/package-export.js +3 -3
  66. package/dist-server/server/sentinel/paths.js +1 -1
  67. package/dist-server/server/service-cli.js +6 -6
  68. package/dist-server/server/service-unit.js +5 -5
  69. package/dist-server/server/tts/system-voices.js +1 -1
  70. package/dist-server/server/update-check.js +4 -4
  71. package/dist-server/server/workspace-backup.js +2 -2
  72. package/dist-server/server-launcher.js +3 -2
  73. package/dist-server/workspace-backup.worker.js +5 -5
  74. package/package.json +1 -1
  75. /package/dist-server/server/{openmausbot.js → limixbot.js} +0 -0
@@ -1,5 +1,5 @@
1
- /** How this CLI was started, so every command it prints can be pasted as is: `npx openmausbot`, `pnpm omb` in a
2
- * checkout, the Docker image's `docker compose exec omb openmausbot` (OMB_CLI_PREFIX), or plain `openmausbot`. */
1
+ /** How this CLI was started, so every command it prints can be pasted as is: `npx limixbot`, `pnpm omb` in a
2
+ * checkout, the Docker image's `docker compose exec omb limixbot` (OMB_CLI_PREFIX), or plain `limixbot`. */
3
3
  export function cliPrefix(env = process.env, script = process.argv[1] ?? "") {
4
4
  const fixed = env.OMB_CLI_PREFIX?.trim();
5
5
  if (fixed)
@@ -8,10 +8,10 @@ export function cliPrefix(env = process.env, script = process.argv[1] ?? "") {
8
8
  return "pnpm omb";
9
9
  // npm 7+ runs an `npx` package from its cache's `_npx` folder (npm_command=exec alone also marks `npx vitest`).
10
10
  if (/[\\/]_npx[\\/]/.test(script))
11
- return "npx openmausbot";
12
- return "openmausbot";
11
+ return "npx limixbot";
12
+ return "limixbot";
13
13
  }
14
- /** `openmausbot <rest>` the way this CLI was started. */
14
+ /** `limixbot <rest>` the way this CLI was started. */
15
15
  export function cliCommand(rest, env, script) {
16
16
  return `${cliPrefix(env, script)} ${rest}`;
17
17
  }
@@ -2,53 +2,53 @@ export { HEADLESS_VERBS as HEADLESS_VERB_NAMES } from "./headless/args.js";
2
2
  export const HEADLESS_USAGE = `Drive a running workspace (scripts, CI, other agents):
3
3
  limixbot doctor check the server answers and an engine is ready
4
4
  limixbot doctor --host check this Linux machine can run a server (exit 7 if not)
5
- openmausbot bots | channels | models your bots, your rooms, the engines and their models
6
- openmausbot run BOT "do this" give a bot one job and wait until it and every teammate it asked are done
7
- openmausbot send BOT "text" send one message and return at once
8
- openmausbot wait BOT wait on work already running
9
- openmausbot messages BOT the latest messages of a conversation
10
- openmausbot interrupt BOT [--tree] press Stop (--tree: and every teammate on its job)
11
- openmausbot export BOT --out DIR write a job's transcripts, files and screens to DIR
12
- openmausbot events [--job THREAD] the server's live events as JSON lines
13
- openmausbot team apply FILE make the workspace match a team file (team export writes one)
14
- openmausbot engine set claude --key-env ANTHROPIC_API_KEY give it an engine without a screen
5
+ limixbot bots | channels | models your bots, your rooms, the engines and their models
6
+ limixbot run BOT "do this" give a bot one job and wait until it and every teammate it asked are done
7
+ limixbot send BOT "text" send one message and return at once
8
+ limixbot wait BOT wait on work already running
9
+ limixbot messages BOT the latest messages of a conversation
10
+ limixbot interrupt BOT [--tree] press Stop (--tree: and every teammate on its job)
11
+ limixbot export BOT --out DIR write a job's transcripts, files and screens to DIR
12
+ limixbot events [--job THREAD] the server's live events as JSON lines
13
+ limixbot team apply FILE make the workspace match a team file (team export writes one)
14
+ limixbot engine set claude --key-env ANTHROPIC_API_KEY give it an engine without a screen
15
15
  limixbot connect URL --code CODE --out FILE get a token for a workspace elsewhere
16
- openmausbot token create NAME --out FILE [--expires 90d] a token for CI that ends on its date (token list, token revoke ID)
17
- openmausbot new-bot | new-channel | set-model | edit | mcp
16
+ limixbot token create NAME --out FILE [--expires 90d] a token for CI that ends on its date (token list, token revoke ID)
17
+ limixbot new-bot | new-channel | set-model | edit | mcp
18
18
 
19
19
  Server: --url URL (or OPENMAUSBOT_URL), --port N (or OMB_PORT), else this computer's.
20
20
  Token: OPENMAUSBOT_TOKEN or --token-file FILE. --json prints one JSON document;
21
21
  progress goes to stderr (--quiet drops it). limixbot help VERB for the details.`;
22
- /** The usage text, its commands written the way this CLI was started (`npx openmausbot …`). */
23
- export function usage(prefix = "openmausbot") {
24
- return USAGE.split("\n").map((line) => line.replace(/^(\s+)openmausbot(?= )/, `$1${prefix}`)).join("\n");
22
+ /** The usage text, its commands written the way this CLI was started (`npx limixbot …`). */
23
+ export function usage(prefix = "limixbot") {
24
+ return USAGE.split("\n").map((line) => line.replace(/^(\s+)limixbot(?= )/, `$1${prefix}`)).join("\n");
25
25
  }
26
- export const USAGE = `openmausbot — your team of AI bots, ready in a few steps
26
+ export const USAGE = `limixbot — your team of AI bots, ready in a few steps
27
27
 
28
- openmausbot set up once, then open your workspace
28
+ limixbot set up once, then open your workspace
29
29
  limixbot setup [--data-dir DIR]
30
30
  limixbot start [the same options as serve]
31
31
  limixbot serve [--port 8799] [--data-dir DIR] [--label NAME]
32
32
  [--public-url https://host | --domain HOST | --tunnel | --tailscale] [--lan] [--relay]
33
33
  limixbot pair [--label NAME] [--phone [ios|android]] [--ttl 24h] [--public-url https://host]
34
- openmausbot devices [revoke ID]
34
+ limixbot devices [revoke ID]
35
35
  limixbot status
36
- openmausbot --version
36
+ limixbot --version
37
37
  limixbot login [--email you@example.com] [--relay]
38
38
  limixbot logout
39
- openmausbot access list | add EMAIL [--chat-only] | remove EMAIL
39
+ limixbot access list | add EMAIL [--chat-only] | remove EMAIL
40
40
  limixbot service install [the same way-in options as serve] [--port N] [--data-dir DIR] | uninstall
41
41
  [--sentinel] (the health scan below, every two minutes, instead of the server)
42
- openmausbot sentinel [--data-dir DIR] [--out DIR] [--once] [--json] (read-only health scan; see --help)
42
+ limixbot sentinel [--data-dir DIR] [--out DIR] [--once] [--json] (read-only health scan; see --help)
43
43
  limixbot browser install [--with-deps] | status
44
- openmausbot fleet init --domain HOST [--operator USER] | create NAME --admin EMAIL [--member EMAIL] [--brand FILE]
44
+ limixbot fleet init --domain HOST [--operator USER] | create NAME --admin EMAIL [--member EMAIL] [--brand FILE]
45
45
  [--anthropic-key-file FILE] [--cap USD] [--license-key KEY] [--memory 1G]
46
46
  | list | users NAME add|remove EMAIL [--chat-only] | suspend NAME | resume NAME
47
47
  | delete NAME --yes [--keep-data] | upgrade (all take --dry-run)
48
48
  | agent [--socket PATH] [--group USER] (root; installed by init --operator)
49
49
 
50
50
  setup choose AI access and optional phone access; keep existing bots and chats
51
- start same as openmausbot: use your saved settings and open the workspace
51
+ start same as limixbot: use your saved settings and open the workspace
52
52
  serve starts the server without prompts; in a terminal it prints a pairing
53
53
  code, the link to paste into the desktop app (+ → Connect to a
54
54
  server) and a QR for a phone
@@ -113,6 +113,6 @@ Ways in (pick one; --lan can join any):
113
113
 
114
114
  ${HEADLESS_USAGE}
115
115
 
116
- Install once with \`npm install -g openmausbot\`, then type \`openmausbot\`.
117
- Or run without a global install: \`npx openmausbot\`. Node 24+ is required.
116
+ Install once with \`npm install -g limixbot\`, then type \`limixbot\`.
117
+ Or run without a global install: \`npx limixbot\`. Node 24+ is required.
118
118
  `;
@@ -11,7 +11,7 @@
11
11
  // openmausbot logout
12
12
  // openmausbot run | send | wait | doctor | team apply | export | …
13
13
  //
14
- // This module only exports: openmausbot.ts runs main(), so bundling this file into other entries never runs it twice.
14
+ // This module only exports: limixbot.ts runs main(), so bundling this file into other entries never runs it twice.
15
15
  import { spawn } from "node:child_process";
16
16
  import { randomBytes } from "node:crypto";
17
17
  import { closeSync, existsSync, mkdirSync, openSync, readFileSync } from "node:fs";
@@ -249,7 +249,7 @@ async function api(port, path, init = {}) {
249
249
  const body = await res.json().catch(() => ({}));
250
250
  return { status: res.status, body };
251
251
  }
252
- export const SERVICE_TRUST_HELP = "This server does not treat commands on this computer as its owner (OMB_LOOPBACK_TRUST=service, or a hosted workspace), so it will not pair devices or list sessions for them. Sign in as an admin and use Settings → Remote access, let people sign in with their email (openmausbot access add you@example.com), or restart the server with OMB_LOOPBACK_TRUST=owner.";
252
+ export const SERVICE_TRUST_HELP = "This server does not treat commands on this computer as its owner (OMB_LOOPBACK_TRUST=service, or a hosted workspace), so it will not pair devices or list sessions for them. Sign in as an admin and use Settings → Remote access, let people sign in with their email (limixbot access add you@example.com), or restart the server with OMB_LOOPBACK_TRUST=owner.";
253
253
  function refusedAsService(status, body) {
254
254
  return status === 403 && typeof body?.error === "string" && /shared server|Sign in through the workspace portal/.test(body.error);
255
255
  }
@@ -475,7 +475,7 @@ export async function runAccess(options, io = defaultIo()) {
475
475
  };
476
476
  if (options.accessAction === "list") {
477
477
  if (!admins.length && !members.length) {
478
- io.log("nobody can sign in with an email yet; pairing codes only. Add someone with: openmausbot access add you@example.com");
478
+ io.log("nobody can sign in with an email yet; pairing codes only. Add someone with: limixbot access add you@example.com");
479
479
  return 0;
480
480
  }
481
481
  for (const entry of admins)
@@ -665,7 +665,7 @@ function baseImagePullArgs(runtime) {
665
665
  }
666
666
  async function prepareManagedImage(runtime, runner) {
667
667
  await runner(runtime, baseImagePullArgs(runtime), 10 * 60_000);
668
- const context = await mkdtemp(join(tmpdir(), "openmausbot-cua-image-"));
668
+ const context = await mkdtemp(join(tmpdir(), "limixbot-cua-image-"));
669
669
  try {
670
670
  await writeFile(join(context, "Dockerfile"), managedImageDockerfile(), { mode: 0o600 });
671
671
  await runner(runtime, ["build", ...(runtime === "container" ? [] : ["--force-rm"]), "-t", IMAGE, context], 10 * 60_000); // the legacy builder keeps a failed step's container without --force-rm
@@ -560,7 +560,7 @@ export function isValidAntigravityInitializeResult(initialized, expectedVersion)
560
560
  return true;
561
561
  }
562
562
  export async function validateAntigravityRuntime(runtime, expectedVersion) {
563
- const profileDirectory = await mkdtemp(join(tmpdir(), "openmaus-antigravity-verify-"));
563
+ const profileDirectory = await mkdtemp(join(tmpdir(), "limix-antigravity-verify-"));
564
564
  let client;
565
565
  let tempDirectory;
566
566
  let failed = false;
@@ -174,9 +174,9 @@ export function licenseWarning(status) {
174
174
  export function describeEdition(status) {
175
175
  if (status.edition === "enterprise") {
176
176
  const until = status.expiresAt ? ` until ${status.expiresAt}` : "";
177
- return `openmausbot enterprise edition for ${status.customer}${until}: ${status.features.join(", ") || "no features"}`;
177
+ return `Limix Bot enterprise edition for ${status.customer}${until}: ${status.features.join(", ") || "no features"}`;
178
178
  }
179
- return `openmausbot open-source edition${status.notice ? ` (${status.notice})` : ""}`;
179
+ return `Limix Bot open-source edition${status.notice ? ` (${status.notice})` : ""}`;
180
180
  }
181
181
  /** The edition as Settings shows it: a licence block only while an Enterprise licence is near or past expiry. */
182
182
  export function editionForSettings(status) {
@@ -402,7 +402,7 @@ export function deletePlan(input) {
402
402
  export function upgradePlan(input) {
403
403
  const running = Object.values(input.registry.workspaces).filter((workspace) => workspace.status === "running").sort((a, b) => a.slug.localeCompare(b.slug));
404
404
  return [
405
- { kind: "run", argv: ["npm", "install", "-g", "openmausbot@latest"], why: "install the release every workspace runs from" },
405
+ { kind: "run", argv: ["npm", "install", "-g", "limixbot@latest"], why: "install the release every workspace runs from" },
406
406
  ...running.map((workspace) => ({ kind: "run", argv: ["systemctl", "restart", `openmausbot@${workspace.slug}.service`], why: `restart ${workspace.slug} on the new release` })),
407
407
  ...running.map((workspace) => ({ kind: "health", url: `http://127.0.0.1:${workspace.port}/api/health`, why: `wait for ${workspace.slug}` })),
408
408
  ];
@@ -20,18 +20,18 @@ limixbot doctor --host [--data-dir DIR] [--port 8799] [--domain HOST]
20
20
  Check this Linux machine can run the server and the bots' sandbox: the system, Docker or Podman, user
21
21
  namespaces, seccomp, cgroup v2, free disk, size, ports and the clock. Each problem says its fix.
22
22
  Exit 0 ready (warnings allowed), 7 something is missing. On macOS and Windows it says it is for Linux.`,
23
- bots: "openmausbot bots\n Your bots and what each is doing.",
24
- channels: "openmausbot channels\n Your rooms (group chats) and who is in them.",
25
- models: "openmausbot models\n The engines and the models each offers (use them as INSTANCE/MODEL).",
26
- messages: `openmausbot messages TARGET [--limit 30]\n The latest messages of a conversation (at most 200).
23
+ bots: "limixbot bots\n Your bots and what each is doing.",
24
+ channels: "limixbot channels\n Your rooms (group chats) and who is in them.",
25
+ models: "limixbot models\n The engines and the models each offers (use them as INSTANCE/MODEL).",
26
+ messages: `limixbot messages TARGET [--limit 30]\n The latest messages of a conversation (at most 200).
27
27
  ${T}`,
28
- send: `openmausbot send TARGET (TEXT | --text TEXT | --message-file FILE | -) [--task new|current|ID] [--title T] [--send-id ID] [--dry-run]
28
+ send: `limixbot send TARGET (TEXT | --text TEXT | --message-file FILE | -) [--task new|current|ID] [--title T] [--send-id ID] [--dry-run]
29
29
  Send one message and return at once. It goes to the conversation the bot or room has open (--task current,
30
30
  the default), to a new one (--task new, titled by --title or the message's first line), or to --task ID.
31
31
  It says which conversation it went to. The same --send-id never sends twice.
32
32
  ${T}`,
33
- "send-channel": "openmausbot send-channel --channel ID (TEXT | --text TEXT) [--task new|current|ID] [--title T] [--dry-run]\n The same as send, for a room named by id.",
34
- run: `openmausbot run TARGET (TEXT | --message-file FILE | -) [--task new|current|ID] [--title T]
33
+ "send-channel": "limixbot send-channel --channel ID (TEXT | --text TEXT) [--task new|current|ID] [--title T] [--dry-run]\n The same as send, for a room named by id.",
34
+ run: `limixbot run TARGET (TEXT | --message-file FILE | -) [--task new|current|ID] [--title T]
35
35
  [--wait job|turn|none] [--timeout 30m] [--on-input exit|wait|stop] [--on-timeout leave|stop]
36
36
  [--strict] [--export DIR [--force]]
37
37
  Give a bot or room one job and wait until it, and every teammate it asked, is done.
@@ -42,53 +42,53 @@ limixbot doctor --host [--data-dir DIR] [--port 8799] [--domain HOST]
42
42
  --on-timeout: leave the work running, or stop it. --strict: a teammate that failed fails the run.
43
43
  Exit 0 done, 1 failed or stopped, 3 needs you, 4 timed out, 130 Ctrl-C (the work keeps running).
44
44
  ${T}`,
45
- wait: `openmausbot wait TARGET [--for job|turn] [--timeout 30m] [--on-input …] [--on-timeout …] [--strict] [--since MS]
45
+ wait: `limixbot wait TARGET [--for job|turn] [--timeout 30m] [--on-input …] [--on-timeout …] [--strict] [--since MS]
46
46
  Wait on a conversation already running (after run --wait none, Ctrl-C or a restarted CI step).
47
47
  --since MS (which run prints) keeps watching the same job, so one that ended meanwhile reports how.
48
48
  Nothing running: it returns at once (exit 0). Same exit codes as run.
49
49
  ${T}`,
50
- interrupt: `openmausbot interrupt TARGET [--tree] [--dry-run]\n Press Stop on a conversation. --tree also stops every teammate still working on its job.
50
+ interrupt: `limixbot interrupt TARGET [--tree] [--dry-run]\n Press Stop on a conversation. --tree also stops every teammate still working on its job.
51
51
  ${T}`,
52
- "new-bot": "openmausbot new-bot NAME [--title T] [--team T] [--model INSTANCE/MODEL] [--effort E]\n Make a bot.",
53
- "new-channel": "openmausbot new-channel NAME --members A,B [--team T]\n Make a room from bots, by name or id.",
54
- "set-model": "openmausbot set-model BOT --model INSTANCE/MODEL [--effort E] [--task ID] [--dry-run]\n Change an idle bot's model (or one idle conversation's, with --task).",
55
- edit: "openmausbot edit BOT --message ID (TEXT | --text TEXT) [--task ID] [--dry-run]\n Rewrite an earlier message of yours and have the bot answer again from there.",
56
- export: `openmausbot export TARGET --out DIR [--root ID] [--since MS] [--max-files 200] [--max-screens 100] [--max-bytes 500MB] [--force]
52
+ "new-bot": "limixbot new-bot NAME [--title T] [--team T] [--model INSTANCE/MODEL] [--effort E]\n Make a bot.",
53
+ "new-channel": "limixbot new-channel NAME --members A,B [--team T]\n Make a room from bots, by name or id.",
54
+ "set-model": "limixbot set-model BOT --model INSTANCE/MODEL [--effort E] [--task ID] [--dry-run]\n Change an idle bot's model (or one idle conversation's, with --task).",
55
+ edit: "limixbot edit BOT --message ID (TEXT | --text TEXT) [--task ID] [--dry-run]\n Rewrite an earlier message of yours and have the bot answer again from there.",
56
+ export: `limixbot export TARGET --out DIR [--root ID] [--since MS] [--max-files 200] [--max-screens 100] [--max-bytes 500MB] [--force]
57
57
  Write a conversation's job to DIR: the job tree, every transcript (secrets removed),
58
58
  the files its replies link to, and screen captures. --root keeps one job.
59
59
  ${T}`,
60
- events: `openmausbot events [--thread ID]… [--job THREAD_ID [--until-settled]] [--kind K,…] [--since CURSOR] [--screens] [--jsonl]
60
+ events: `limixbot events [--thread ID]… [--job THREAD_ID [--until-settled]] [--kind K,…] [--since CURSOR] [--screens] [--jsonl]
61
61
  The server's live events, one JSON line each: messages, threads, bots and rooms, or the kinds --kind names
62
62
  (--kind message,runtime adds token-level events to messages).
63
63
  --job follows the threads of one conversation's job; --until-settled ends with it.`,
64
- team: "openmausbot team apply FILE | team export --out FILE (see help team apply, help team export)",
65
- "team apply": `openmausbot team apply FILE [--dry-run | --check] [--prune] [--rotate-secrets] [--wait-idle 2m]
64
+ team: "limixbot team apply FILE | team export --out FILE (see help team apply, help team export)",
65
+ "team apply": `limixbot team apply FILE [--dry-run | --check] [--prune] [--rotate-secrets] [--wait-idle 2m]
66
66
  Make the workspace match a team file (YAML or JSON): teams and briefs, bots, skills, Chiefs,
67
67
  rooms and engines. Prints the plan, then applies it; a second apply prints "No changes.".
68
68
  --dry-run only prints the plan; --check exits 6 if anything would change. --prune deletes bots
69
69
  and rooms the file leaves out, in teams marked prune: true. Keys come from { env } or { file },
70
70
  and a key already set is kept unless --rotate-secrets. docs/headless-cli.md has the format.`,
71
- "team export": "openmausbot team export [--team NAME]… --out FILE\n Write the workspace (or some teams) as a team file; skills go beside it, keys as placeholders,\n and a key written into a soul, brief or skill is taken out.",
72
- engine: "openmausbot engine set KIND … | engine list (see help engine set)",
73
- "engine set": `openmausbot engine set KIND (--key-env VAR | --key-file FILE) [--base-url URL] [--only-claude-api] [--install] [--rotate] [--dry-run]
71
+ "team export": "limixbot team export [--team NAME]… --out FILE\n Write the workspace (or some teams) as a team file; skills go beside it, keys as placeholders,\n and a key written into a soul, brief or skill is taken out.",
72
+ engine: "limixbot engine set KIND … | engine list (see help engine set)",
73
+ "engine set": `limixbot engine set KIND (--key-env VAR | --key-file FILE) [--base-url URL] [--only-claude-api] [--install] [--rotate] [--dry-run]
74
74
  Give the workspace an engine key: claude, openai, openrouter, openai-compatible, xai, groq, greenference, modelgo, mistral or cerebras.
75
75
  The key is never printed. One already set is kept unless --rotate. --install installs the engine's
76
76
  command if it is not running already, so a script can run this on every start.
77
77
  claude: the key runs every Claude bot; --only-claude-api keeps it to "Claude (API key)" bots.`,
78
- "engine list": "openmausbot engine list\n The engines, whether each is ready, and which keys are set (never their values).",
78
+ "engine list": "limixbot engine list\n The engines, whether each is ready, and which keys are set (never their values).",
79
79
  connect: `limixbot connect [URL] [--code CODE] --out FILE [--label NAME] [--client] [--force]
80
80
  Get a token for a workspace you reach over the network, saved to FILE (only you can read it).
81
81
  On this computer's own server the code is made for you; elsewhere, get one from Settings → Phone.
82
82
  Then use it: --url URL --token-file FILE (or OPENMAUSBOT_URL and OPENMAUSBOT_TOKEN).`,
83
- mcp: "openmausbot mcp\n Serve the Limix Bot MCP tools on stdin and stdout, for an agent (docs/mcp-server.md).",
84
- token: "openmausbot token create NAME --out FILE … | token list | token revoke ID (see help token create)",
85
- "token create": `openmausbot token create NAME --out FILE [--scope client|admin] [--expires 90d] [--force]
83
+ mcp: "limixbot mcp\n Serve the Limix Bot MCP tools on stdin and stdout, for an agent (docs/mcp-server.md).",
84
+ token: "limixbot token create NAME --out FILE … | token list | token revoke ID (see help token create)",
85
+ "token create": `limixbot token create NAME --out FILE [--scope client|admin] [--expires 90d] [--force]
86
86
  An access token for CI and scripts, saved to FILE (only you can read it) and never printed.
87
87
  It ends on its date (--expires, at most the server's session limit: 180 days unless OMB_SESSION_MAX_DAYS)
88
88
  and never renews. --scope client (the default) can chat and answer approvals; admin can change settings.
89
- Then: --url URL --token-file FILE. It is listed with openmausbot sessions too.`,
90
- "token list": "openmausbot token list\n The access tokens, their scope, when each ends and when it was last used (never the token).",
91
- "token revoke": "openmausbot token revoke ID\n End an access token at once (openmausbot token list shows the ids).",
89
+ Then: --url URL --token-file FILE. It is listed with limixbot sessions too.`,
90
+ "token list": "limixbot token list\n The access tokens, their scope, when each ends and when it was last used (never the token).",
91
+ "token revoke": "limixbot token revoke ID\n End an access token at once (limixbot token list shows the ids).",
92
92
  };
93
93
  const VERBS = {
94
94
  doctor, bots: list, channels: list, models: list, messages, send, "send-channel": send, run: runVerb, wait: waitVerb,
@@ -9877,7 +9877,13 @@ const webhooks = new WebhookManager({
9877
9877
  }, ...createWebhookRoomPost({ store, cfg, roomTalks })
9878
9878
  });
9879
9879
  const webhookRequests = new WebhookRequestService({ store, webhooks, botName: (botId) => store.bot(botId)?.name ?? "the bot" });
9880
- const botApi = createBotApiHost({ store, startTurn, threadBusy, careFacts: (botId, message) => { const bot = store.bot(botId); return bot ? industryGuestFacts(bot, message, servers => managedPolicy.filterMcp(servers)) : Promise.resolve(undefined); }, canStart: (botId, threadId) => canAdmitDirectTurn(botId, threadId, false), canConfine: (botId) => registry.get(store.bot(botId)?.modelSelection.instanceId ?? "")?.adapter.capabilities.guestTurns === "confined", discard: (botId, threadId) => { store.deleteTask(botId, threadId); }, included: () => !cloudPlanTier.starter(), opened: (threadId) => { if (CLOUD_OWNER_KEY)
9880
+ const botApi = createBotApiHost({ store, startTurn, threadBusy, careFacts: (botId, message) => { const bot = store.bot(botId); return bot ? industryGuestFacts(bot, message, servers => managedPolicy.filterMcp(servers)) : Promise.resolve(undefined); }, canStart: (botId, threadId) => canAdmitDirectTurn(botId, threadId, false), channelModelChanging: (botId, threadId) => {
9881
+ const selection = threadId ? turnSelection(botId, threadId) : store.bot(botId)?.modelSelection;
9882
+ return Boolean(store.bot(botId)?.approvalGrant || selection && providerInstancesChanging.has(selection.instanceId));
9883
+ }, canConfine: (botId, threadId) => {
9884
+ const selection = threadId ? turnSelection(botId, threadId) : store.bot(botId)?.modelSelection;
9885
+ return registry.get(selection?.instanceId ?? "")?.adapter.capabilities.guestTurns === "confined";
9886
+ }, discard: (botId, threadId) => { store.deleteTask(botId, threadId); }, included: () => !cloudPlanTier.starter(), opened: (threadId) => { if (CLOUD_OWNER_KEY)
9881
9887
  threadStarters.set(threadId, CLOUD_OWNER_KEY); }, hooksBaseUrl: () => webhookIngressStatus().baseUrl, manageRefusal: (auth, botId) => auth.scopes.includes("admin") || (CLOUD_TEAM && levelOf(auth, botId) === "edit") ? null : refusalFor(store.bot(botId)?.name ?? "this bot", "edit").error, claimRequest: () => { cloudPower?.arrived("/hooks", {}); moveFreeze.assertTurns(); return workspaceMaintenance.request(); }, record: (auth, row) => appendAdminAction(DATA_DIR, { ...row, actor: decisionActorFor(auth) }) });
9882
9888
  const appTriggers = createAppTriggerHost({ store, webhooks, webhookBase: () => webhookIngressStatus().baseUrl, routines: () => routines, botState: unattendedDispatchState, timeZone: routineTimeZone, emit: broadcast, connectionMode: () => composio.connectionMode(cfg),
9883
9889
  access: composio.brokerAccess, connectedApps: () => composio.connectedServices(cfg), visibleBot: (auth, botId) => visibleTo(viewerFor(auth)).bot(botId),
@@ -9896,11 +9902,11 @@ try {
9896
9902
  claimRequest: () => { cloudPower?.arrived("/hooks", {}); moveFreeze.assertTurns(); return workspaceMaintenance.request(); }, door: botApi.door,
9897
9903
  });
9898
9904
  const advertised = WEBHOOK_PUBLIC_URL ? ` (advertised as ${webhookIngress.baseUrl})` : "";
9899
- console.log(`openmausbot webhook receiver on http://${webhookIngress.host}:${webhookIngress.port}${webhookIngress.socketServer ? ` and ${process.env.OMB_WEBHOOK_SOCKET?.trim()}` : ""}${advertised}`);
9905
+ console.log(`limixbot webhook receiver on http://${webhookIngress.host}:${webhookIngress.port}${webhookIngress.socketServer ? ` and ${process.env.OMB_WEBHOOK_SOCKET?.trim()}` : ""}${advertised}`);
9900
9906
  }
9901
9907
  catch (error) {
9902
9908
  webhookIngressError = error instanceof Error ? error.message : String(error);
9903
- console.error(`openmausbot webhook receiver unavailable: ${webhookIngressError}`);
9909
+ console.error(`limixbot webhook receiver unavailable: ${webhookIngressError}`);
9904
9910
  }
9905
9911
  const webhookIngressStatus = () => ({
9906
9912
  available: Boolean(webhookIngress),
@@ -16119,7 +16125,7 @@ server.listen(PORT, listenHost(server), async () => {
16119
16125
  companyRuntimeReady();
16120
16126
  cloudHealth?.speed.ready();
16121
16127
  void tailnetShare.start(process.env);
16122
- console.log(`openmausbot server on http://127.0.0.1:${PORT}`);
16128
+ console.log(`limixbot server on http://127.0.0.1:${PORT}`);
16123
16129
  personWaits.boot();
16124
16130
  browserSweep.start();
16125
16131
  startCloudTeamPolicy({ cloudHome: CLOUD_HOME, dataDir: DATA_DIR, managed: managedPolicy, sessions });
@@ -29,8 +29,8 @@ const READS = new Set(["GET", "HEAD", "OPTIONS"]);
29
29
  /** What a frozen copy keeps once its workspace is deleted: the marker, this server's identity, Files, downloaded tools
30
30
  * and caches, and its own runtime files. Everything else, credentials included, is the person's workspace. */
31
31
  const DEVICE_STATE = new Set(["moved.json", "environment-id", "sync", "tools", "cache", ".cache", "tmp", ".tmp", "dist-native", "tunnel-runtime",
32
- ".limixbot-server-child", "openmausbot-server.lease"]);
33
- const kept = (name) => DEVICE_STATE.has(name) || name.startsWith("openmausbot-server.lease.");
32
+ ".limixbot-server-child", ".openmausbot-server-child", "openmausbot-server.lease", "limixbot-server.lease"]);
33
+ const kept = (name) => DEVICE_STATE.has(name) || /^(?:limixbot|openmausbot)-server\.lease\./.test(name);
34
34
  /** Switches off every automation that is on, or only those named by key ("routine:<id>", "call:<id>", "webhook:<id>",
35
35
  * "app-event:<id>", "wait:<id>"); the person can switch each on again by hand, and a wait is cancelled. Done while frozen,
36
36
  * so none of them runs once the freeze lifts. One that can't be switched off is logged, never a reason to stay frozen.
@@ -161,7 +161,7 @@ export function createBotPackageExport(input) {
161
161
  enabledAfterInstall: false,
162
162
  }];
163
163
  });
164
- const id = portableKey(input.name, "openmaus-package", new Set());
164
+ const id = portableKey(input.name, "limix-package", new Set());
165
165
  const agents = bots.map((bot) => {
166
166
  const appearance = { color: bot.color };
167
167
  if (bot.mascotExpression)
@@ -634,7 +634,7 @@ export function createTeamPackageExport(input) {
634
634
  const exportedRoutines = new Set(routines.map((routine) => routine.key));
635
635
  return {
636
636
  document,
637
- filename: `${document.package.id}-${document.package.release}.openmaus.json`,
637
+ filename: `${document.package.id}-${document.package.release}.limix.json`,
638
638
  redacted: [...new Set([...addressRedactions, ...redacted])],
639
639
  skipped,
640
640
  published: {
@@ -720,7 +720,7 @@ export function createLibraryPackageExport(input) {
720
720
  }
721
721
  return {
722
722
  document,
723
- filename: `${document.package.id}-${document.package.release}.openmaus.json`,
723
+ filename: `${document.package.id}-${document.package.release}.limix.json`,
724
724
  redacted,
725
725
  skipped,
726
726
  published: { packageId, lastRelease: release },
@@ -3,7 +3,7 @@ import { createHash } from "node:crypto";
3
3
  import { existsSync, realpathSync } from "node:fs";
4
4
  import { homedir } from "node:os";
5
5
  import { basename, dirname, join, posix, resolve, win32 } from "node:path";
6
- const FOLDER = "openmausbot-sentinel";
6
+ const FOLDER = "limixbot-sentinel";
7
7
  export function defaultSentinelOut(dataDir, platform = process.platform, home = homedir(), env = process.env) {
8
8
  const path = platform === "win32" ? win32 : posix;
9
9
  const state = env.XDG_STATE_HOME && path.isAbsolute(env.XDG_STATE_HOME) ? env.XDG_STATE_HOME : path.join(home, ".local", "state");
@@ -57,7 +57,7 @@ export function runServiceCommand(input, io) {
57
57
  home,
58
58
  bindsLowPorts: Boolean(input.domain),
59
59
  ...(input.label ? { label: input.label } : {}),
60
- ...(script !== input.script ? { cliPrefix: "npx openmausbot" } : {}),
60
+ ...(script !== input.script ? { cliPrefix: "npx limixbot" } : {}),
61
61
  };
62
62
  const rendered = platform === "darwin" ? launchdPlist(spec) : systemdUnit(spec);
63
63
  mkdirSync(input.dataDir, { recursive: true, mode: 0o700 });
@@ -84,10 +84,10 @@ function pinnedCopy(input, io) {
84
84
  version = undefined;
85
85
  }
86
86
  const prefix = join(input.dataDir, "app", version ?? "latest");
87
- const command = `npm install --prefix ${prefix} openmausbot@${version ?? "latest"}`;
88
- io.log(`this run comes from npx's cache, which npm prunes: installing openmausbot ${version ?? ""} into ${prefix} for the service`.replace(" ", " "));
87
+ const command = `npm install --prefix ${prefix} limixbot@${version ?? "latest"}`;
88
+ io.log(`this run comes from npx's cache, which npm prunes: installing limixbot ${version ?? ""} into ${prefix} for the service`.replace(" ", " "));
89
89
  const installed = (input.installCopy ?? installWithNpm)(prefix, version ?? "latest");
90
- const script = join(prefix, "node_modules", "openmausbot", "dist-server", "openmausbot.js");
90
+ const script = join(prefix, "node_modules", "limixbot", "dist-server", "limixbot.js");
91
91
  if (installed && (input.exists ?? existsSync)(script))
92
92
  return script;
93
93
  io.error(`could not install that copy. Run this, then the same service install command again from it:\n ${command}\n node ${script} service install …`);
@@ -96,7 +96,7 @@ function pinnedCopy(input, io) {
96
96
  function installWithNpm(prefix, version) {
97
97
  mkdirSync(prefix, { recursive: true, mode: 0o700 });
98
98
  const npm = process.platform === "win32" ? "npm.cmd" : "npm";
99
- return spawnSync(npm, ["install", "--prefix", prefix, `openmausbot@${version}`, "--no-audit", "--no-fund"], { stdio: "inherit" }).status === 0;
99
+ return spawnSync(npm, ["install", "--prefix", prefix, `limixbot@${version}`, "--no-audit", "--no-fund"], { stdio: "inherit" }).status === 0;
100
100
  }
101
101
  function bundleHasSentinel(script) {
102
102
  try {
@@ -163,6 +163,6 @@ function runSentinelService(input, platform, home, io) {
163
163
  io.log("");
164
164
  io.log(`issues: ${join(out, "issues.jsonl")}`);
165
165
  io.log(`logs: ${platform === "darwin" ? join(out, "sentinel.log") : "journalctl --user -u openmausbot-sentinel"}`);
166
- io.log("after an app update or a Node upgrade, check the schedule still points at both: openmausbot sentinel --check-install");
166
+ io.log("after an app update or a Node upgrade, check the schedule still points at both: limixbot sentinel --check-install");
167
167
  return 0;
168
168
  }
@@ -16,7 +16,7 @@ export function serviceCommand(spec) {
16
16
  }
17
17
  export function systemdUnit(spec) {
18
18
  const lines = [
19
- "# Written by `openmausbot service install`. Re-run it to change the options.",
19
+ "# Written by `limixbot service install`. Re-run it to change the options.",
20
20
  "[Unit]",
21
21
  `Description=Limix Bot${spec.label ? ` (${spec.label})` : ""}`,
22
22
  "After=network-online.target",
@@ -88,7 +88,7 @@ export function launchdPlist(spec) {
88
88
  export function unstableInstallWarning(script) {
89
89
  const normalized = script.replace(/\\/g, "/");
90
90
  if (/\/_npx\//.test(normalized) || /\/\.npm\/_npx\//.test(normalized)) {
91
- return `this command runs from an npx cache (${dirname(script)}), which npm may delete at any time. Install it permanently first (npm install -g openmausbot) and run \`limixbot service install\` from that install.`;
91
+ return `this command runs from an npx cache (${dirname(script)}), which npm may delete at any time. Install it permanently first (npm install -g limixbot) and run \`limixbot service install\` from that install.`;
92
92
  }
93
93
  return null;
94
94
  }
@@ -119,10 +119,10 @@ export const SENTINEL_INTERVAL_SECONDS = 120;
119
119
  /** The app's executable run as Node (ELECTRON_RUN_AS_NODE) survives app updates and Node upgrades; null for an app predating Sentinel. */
120
120
  export function shippedSentinelCli(platform, home, exists, hasSentinel = () => true) {
121
121
  const candidates = platform === "darwin"
122
- ? ["/Applications/OpenMausBot.app", join(home, "Applications", "OpenMausBot.app")].map((app) => ({
123
- node: join(app, "Contents", "MacOS", "Limix Bot"), script: join(app, "Contents", "Resources", "server", "openmausbot.js"),
122
+ ? ["/Applications/Limix Bot.app", join(home, "Applications", "Limix Bot.app")].map((app) => ({
123
+ node: join(app, "Contents", "MacOS", "Limix Bot"), script: join(app, "Contents", "Resources", "server", "limixbot.js"),
124
124
  }))
125
- : platform === "linux" ? [{ node: "/opt/OpenMausBot/openmausbot", script: "/opt/OpenMausBot/resources/server/openmausbot.js" }] : [];
125
+ : platform === "linux" ? [{ node: "/opt/OpenMausBot/openmausbot", script: "/opt/OpenMausBot/resources/server/limixbot.js" }] : [];
126
126
  return candidates.find((cli) => exists(cli.node) && exists(cli.script) && hasSentinel(cli.script)) ?? null;
127
127
  }
128
128
  export function sentinelCommand(spec) {
@@ -38,7 +38,7 @@ export async function synthesizeSystem(text, voiceId, run = defaultRun) {
38
38
  const trimmed = text.trim();
39
39
  if (!trimmed)
40
40
  return { bytes: new Uint8Array(), mime: "audio/wav" };
41
- const dir = await mkdtemp(join(tmpdir(), "openmausbot-say-"));
41
+ const dir = await mkdtemp(join(tmpdir(), "limixbot-say-"));
42
42
  const out = join(dir, "utterance.wav");
43
43
  try {
44
44
  const args = ["-o", out, "--data-format=LEI16@22050"];
@@ -1,9 +1,9 @@
1
1
  // A self-hosted server cannot replace itself, so this only says whether a newer version exists and how this install is updated.
2
2
  import { existsSync } from "node:fs";
3
3
  import { join, sep } from "node:path";
4
- export const LATEST_RELEASE_URL = "https://api.github.com/repos/milind-soni/OpenMausBot/releases/latest";
4
+ export const LATEST_RELEASE_URL = "https://api.github.com/repos/leomieo/limix-bot/releases/latest";
5
5
  /** Written by .github/workflows/promote-stable.yml: the released version our own Clouds have run for 48 hours. */
6
- export const STABLE_CHANNEL_URL = "https://raw.githubusercontent.com/milind-soni/OpenMausBot/channels/stable.json";
6
+ export const STABLE_CHANNEL_URL = "https://raw.githubusercontent.com/leomieo/limix-bot/channels/stable.json";
7
7
  const CACHE_MS = 60 * 60_000;
8
8
  /** How long the last answer stands in when the channel cannot be read: an outage of GitHub is no reason to say nothing. */
9
9
  const STALE_MS = 24 * 60 * 60_000;
@@ -19,7 +19,7 @@ export function updateCommand(install, target) {
19
19
  switch (install) {
20
20
  case "docker": return { command: target && !target.stable ? `git pull && ./update.sh --version ${target.version}` : "git pull && ./update.sh", restart: false };
21
21
  case "podman": return { command: "git pull && cd deploy/podman && PODMAN_COMPOSE_PROVIDER=podman-compose podman compose --env-file .env -f compose.yaml up -d --build", restart: false };
22
- case "npm": return { command: `npm install -g openmausbot@${target?.version ?? "latest"}`, restart: true };
22
+ case "npm": return { command: `npm install -g limixbot@${target?.version ?? "latest"}`, restart: true };
23
23
  case "git": return { command: "git pull && pnpm install", restart: true };
24
24
  default: return undefined;
25
25
  }
@@ -89,7 +89,7 @@ export function createUpdateChecker(options) {
89
89
  ...updateCommand(options.install),
90
90
  });
91
91
  const ask = (url) => fetchJson(url, {
92
- headers: { accept: "application/vnd.github+json", "user-agent": "openmausbot-update-check" },
92
+ headers: { accept: "application/vnd.github+json", "user-agent": "limixbot-update-check" },
93
93
  signal: AbortSignal.timeout(8_000),
94
94
  });
95
95
  /** Null until a first version has been promoted: the record does not exist yet. */
@@ -29,7 +29,7 @@ const EXCLUDED = new Set([
29
29
  ".limixbot-server-child", "environment-id", "sessions.json", "tunnel-account.json",
30
30
  "team-computers.json",
31
31
  "vm-working-folders.json",
32
- "openmausbot-server.lease", "box-create-requests.lock", "messages.db-wal", "messages.db-shm",
32
+ ".limixbot-server-child", ".openmausbot-server-child", "openmausbot-server.lease", "limixbot-server.lease", "box-create-requests.lock", "messages.db-wal", "messages.db-shm",
33
33
  "runtime.db-wal", "runtime.db-shm",
34
34
  "decider-log",
35
35
  "cloud-owner.json",
@@ -57,7 +57,7 @@ const EXCLUSION_NOTES = [
57
57
  ];
58
58
  const RESTORE_WARNING = "Restoring pauses routines, webhooks and calendar calls, ends every wait, and does not resume pending delegations, queued chat messages or queued runs. Definitions and historical receipts are retained; review before enabling them again.";
59
59
  function excluded(name) {
60
- return EXCLUDED.has(name) || excludedWorkspaceAuthPath(name) || name.startsWith("openmausbot-server.lease.") || name.startsWith("box-create-requests.lock.") || /^perm-[A-Za-z0-9_-]+\.sock$/.test(name);
60
+ return EXCLUDED.has(name) || excludedWorkspaceAuthPath(name) || /^(?:limixbot|openmausbot)-server\.lease\./.test(name) || name.startsWith("box-create-requests.lock.") || /^perm-[A-Za-z0-9_-]+\.sock$/.test(name);
61
61
  }
62
62
  function forbiddenArchivePath(path) {
63
63
  const folded = path.toLowerCase();
@@ -1,11 +1,12 @@
1
1
  import { createRequire as __ombCreateRequire } from "node:module";
2
2
  const require = __ombCreateRequire(import.meta.url);
3
- import{spawn}from"node:child_process";import{existsSync as existsSync2,realpathSync}from"node:fs";import{homedir}from"node:os";import{dirname,join as join2,resolve}from"node:path";import{fileURLToPath,pathToFileURL}from"node:url";import{freemem,totalmem}from"node:os";var MB=1024*1024;function boxMemoryFrom(constrained,total){let cgroupLimit=constrained>0&&constrained<total?constrained:null;return{bytes:cgroupLimit??total,cgroupLimit}}var box;function boxMemory(){return box??=boxMemoryFrom(process.constrainedMemory?.()??0,totalmem()),box}var HEAP_SHARE=.6,HEAP_MIN_MB=128,HEAP_MAX_MB=4096;function heapSizeArgs(cgroupLimit,nodeOptions){return cgroupLimit===null||/--max[-_]old[-_]space[-_]size/.test(nodeOptions??"")?[]:[`--max-old-space-size=${Math.min(HEAP_MAX_MB,Math.max(HEAP_MIN_MB,Math.floor(cgroupLimit*HEAP_SHARE/MB)))}`]}import{execFileSync}from"node:child_process";import{existsSync,linkSync,mkdirSync,readdirSync,readFileSync,readlinkSync,renameSync,unlinkSync,writeFileSync}from"node:fs";import{hostname,uptime}from"node:os";import{join}from"node:path";var LEASE_NAME="openmausbot-server.lease",DELEGATED_CHILD_DIR=".limixbot-server-child";var UUID=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,MAX_PID=2147483647,MAX_BOOT_ID=128;var DataDirLeaseError=class extends Error{name="DataDirLeaseError"};function leaseError(message,cause){return Object.assign(new DataDirLeaseError(message),{cause})}function isPid(value){return Number.isInteger(value)&&value>0&&value<=MAX_PID}var cachedBootSession;function readBootSession(){try{if(process.platform==="linux")return normalizeBootId(readFileSync("/proc/sys/kernel/random/boot_id","utf8"));if(process.platform==="darwin")return normalizeBootId(execFileSync("/usr/sbin/sysctl",["-n","ker\
3
+ import{spawn}from"node:child_process";import{existsSync as existsSync2,realpathSync}from"node:fs";import{homedir}from"node:os";import{dirname,join as join2,resolve}from"node:path";import{fileURLToPath,pathToFileURL}from"node:url";import{freemem,totalmem}from"node:os";var MB=1024*1024;function boxMemoryFrom(constrained,total){let cgroupLimit=constrained>0&&constrained<total?constrained:null;return{bytes:cgroupLimit??total,cgroupLimit}}var box;function boxMemory(){return box??=boxMemoryFrom(process.constrainedMemory?.()??0,totalmem()),box}var HEAP_SHARE=.6,HEAP_MIN_MB=128,HEAP_MAX_MB=4096;function heapSizeArgs(cgroupLimit,nodeOptions){return cgroupLimit===null||/--max[-_]old[-_]space[-_]size/.test(nodeOptions??"")?[]:[`--max-old-space-size=${Math.min(HEAP_MAX_MB,Math.max(HEAP_MIN_MB,Math.floor(cgroupLimit*HEAP_SHARE/MB)))}`]}import{execFileSync}from"node:child_process";import{existsSync,linkSync,mkdirSync,readdirSync,readFileSync,readlinkSync,renameSync,unlinkSync,writeFileSync}from"node:fs";import{hostname,uptime}from"node:os";import{join}from"node:path";var LEASE_NAME="limixbot-server.lease",LEGACY_LEASE_NAME="openmausbot-server.lease",DELEGATED_CHILD_DIR=".limixbot-server-child";var UUID=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,MAX_PID=2147483647,MAX_BOOT_ID=128;var DataDirLeaseError=class extends Error{name="DataDirLeaseError"};function leaseError(message,cause){return Object.assign(new DataDirLeaseError(message),{cause})}function isPid(value){return Number.isInteger(value)&&value>0&&value<=MAX_PID}var cachedBootSession;function readBootSession(){try{if(process.platform==="linux")return normalizeBootId(readFileSync("/proc/sys/kernel/random/boot_id","utf8"));if(process.platform==="darwin")return normalizeBootId(execFileSync("/usr/sbin/sysctl",["-n","ker\
4
4
  n.bootsessionuuid"],{encoding:"utf8",timeout:5e3,stdio:["ignore","pipe","ignore"]}))}catch{}return null}function normalizeBootId(value){let id=String(value).trim();return id.length>0&&id.length<=MAX_BOOT_ID&&!/[^0-9A-Za-z:_.-]/.test(id)?id:null}function bootSession(){return cachedBootSession===void 0&&(cachedBootSession=readBootSession()),cachedBootSession}function isBootIdentity(value){return value===null||typeof value=="string"&&normalizeBootId(value)===value}var cachedPidNamespace;function readPidNamespace(){if(process.platform!=="linux")return null;try{return/^pid:\[([1-9][0-9]{0,19})\]$/.exec(readlinkSync("/proc/self/ns/pid"))?.[1]??null}catch{return null}}function pidNamespace(){return cachedPidNamespace===void 0&&(cachedPidNamespace=readPidNamespace()),cachedPidNamespace}function isPidNamespace(value){return value===null||typeof value=="str\
5
5
  ing"&&/^[1-9][0-9]{0,19}$/.test(value)}function isStartTicks(value){return value===null||Number.isSafeInteger(value)&&value>=0}function isLeaseOwner(value){return!value||typeof value!="object"||Array.isArray(value)?!1:value.version===1&&isPid(value.pid)&&typeof value.host=="string"&&value.host.length>0&&value.host.length<=255&&!/[\r\n\0]/.test(value.host)&&typeof value.token=="string"&&UUID.test(value.token)&&typeof value.createdAt=="number"&&Number.isFinite(value.createdAt)&&value.createdAt>0&&(value.boot===void 0||isBootIdentity(value.boot))&&(value.uptime===void 0||Number.isInteger(value.uptime)&&value.uptime>=0)&&(value.
6
6
  ns===void 0||isPidNamespace(value.ns))&&(value.start===void 0||isStartTicks(value.start))}function parseRecord(path,invalidMessage,validate){let raw;try{raw=readFileSync(path,"utf8")}catch(error){if(error?.code==="ENOENT")return null;throw leaseError("Limix Bot cannot read the data-directory lease; refusing to start to protect its state.",error)}let record;try{record=JSON.parse(raw)}catch(error){throw leaseError(invalidMessage,error)}if(!validate(record))throw leaseError(invalidMessage);return record}function readOwner(path){return parseRecord(path,"The Limix Bot data-directory lease\
7
7
  is invalid; refusing to start to protect its state.",isLeaseOwner)}function unlinkExact(path,message){try{unlinkSync(path)}catch(error){if(error?.code!=="ENOENT")throw leaseError(message,error)}}function validateDataDir(dataDir){if(typeof dataDir!="string"||dataDir.trim().length===0||/[\r\n\0]/.test(dataDir))throw leaseError("Limix Bot cannot lease an invalid data directory.");return dataDir}function clearRecordsFromEarlierRunOfThisContainer(dataDir){let boot=bootSession(),ns=pidNamespace();return boot===null||ns===null?[]:clearRecords(dataDir,record=>record.host===hostname()&&record.boot===boot&&typeof record.ns=="string"&&record.ns!==ns)}function clearRecords(dataDir,stale){validateDataDir(dataDir);let entries;try{entries=readdirSync(dataDir)}catch(error){if(error?.code==="ENOENT")return[];throw leaseError("Limix Bot cannot read its data directory.",error)}let paths=[join(dataDir,
8
- LEASE_NAME),join(dataDir,DELEGATED_CHILD_DIR,LEASE_NAME),...entries.filter(name=>name.startsWith(`${LEASE_NAME}.reap-`)).map(name=>join(dataDir,name))],cleared=[];for(let path of paths){let record=readOwner(path);!record||!stale(record)||(unlinkExact(path,"Limix Bot could not remove the data-directory record another machine left."),cleared.push({path,host:record.host,pid:record.pid}))}return cleared}function restartPolicy(now=Date.now){let restarts=0,startedAt=now();return{again(code,stopping=!1){return now()-startedAt>=6e4&&(restarts=0),stopping||code!==75||restarts>=5?!1:(restarts++,startedAt=now(),!0)}}}function serverCommand(here,env,options={}){let bootstrap=join2(here,"desktop-entry.mjs"),cached=(options.exists??existsSync2)(bootstrap),dataDir=env.OMB_DATA_DIR||join2(homedir(),".limixbot");return{args:[...heapSizeArgs((options.box??boxMemory()).cgroupLimit,env.NODE_OPTIONS),cached?bootstrap:join2(here,"index.js")],env:cached?{...env,OMB_SERVER_COMPILE_CACHE:join2(dataDir,"cache","node-compile")}:env}}function superviseServer(start,options={}){let signals=options.signals??process,now=options.
8
+ LEASE_NAME),join(dataDir,DELEGATED_CHILD_DIR,LEASE_NAME),join(dataDir,LEGACY_LEASE_NAME),join(dataDir,DELEGATED_CHILD_DIR,LEGACY_LEASE_NAME),join(dataDir,".openmausbot-server-child",LEGACY_LEASE_NAME),...entries.filter(name=>[LEASE_NAME,LEGACY_LEASE_NAME].some(prefix=>name.startsWith(`${prefix}.reap-`))).map(name=>join(dataDir,name))],cleared=[];for(let path of paths){let record=readOwner(path);!record||!stale(record)||(unlinkExact(path,"Limix Bot could not remove the data-directory record anoth\
9
+ er machine left."),cleared.push({path,host:record.host,pid:record.pid}))}return cleared}function restartPolicy(now=Date.now){let restarts=0,startedAt=now();return{again(code,stopping=!1){return now()-startedAt>=6e4&&(restarts=0),stopping||code!==75||restarts>=5?!1:(restarts++,startedAt=now(),!0)}}}function serverCommand(here,env,options={}){let bootstrap=join2(here,"desktop-entry.mjs"),cached=(options.exists??existsSync2)(bootstrap),dataDir=env.OMB_DATA_DIR||join2(homedir(),".limixbot");return{args:[...heapSizeArgs((options.box??boxMemory()).cgroupLimit,env.NODE_OPTIONS),cached?bootstrap:join2(here,"index.js")],env:cached?{...env,OMB_SERVER_COMPILE_CACHE:join2(dataDir,"cache","node-compile")}:env}}function superviseServer(start,options={}){let signals=options.signals??process,now=options.
9
10
  now??Date.now;return new Promise(done=>{let child,stopping=!1,policy=restartPolicy(now),pass=signal=>()=>{stopping=!0,child.kill(signal)},onTerm=pass("SIGTERM"),onInt=pass("SIGINT"),finish=code=>{signals.off("SIGTERM",onTerm),signals.off("SIGINT",onInt),done(code)},run=()=>{child=start(),child.once("error",()=>finish(1)),child.once("exit",(code,signal)=>{if(policy.again(code,stopping)){console.log("Limix Bot is starting again to finish installing a copy from the desktop app\u2026"),run();return}
10
11
  finish(code??(stopping&&(signal==="SIGTERM"||signal==="SIGINT")?0:1))})};signals.on("SIGTERM",onTerm),signals.on("SIGINT",onInt),run()})}function isEntry(){try{return!!process.argv[1]&&import.meta.url===pathToFileURL(realpathSync(resolve(process.argv[1]))).href}catch{return!1}}if(isEntry()){let dataDir=process.env.OMB_DATA_DIR||join2(homedir(),".limixbot");try{for(let{path,pid}of clearRecordsFromEarlierRunOfThisContainer(dataDir))console.log(`Removed ${path}, left by this container's server (pro\
11
12
  cess ${pid}) when it stopped without closing.`)}catch(error){console.warn(`The data folder's lease could not be checked: ${error instanceof Error?error.message:String(error)}`)}let server=serverCommand(dirname(fileURLToPath(import.meta.url)),process.env);superviseServer(()=>spawn(process.execPath,server.args,{stdio:"inherit",env:server.env})).then(code=>{process.exitCode=code})}export{serverCommand,superviseServer};
@@ -1620,11 +1620,11 @@ people,person,"uploads.json")))):[]}function teamPrivateAttachments(root,message
1620
1620
  (privacy.threads.has(String(row.thread))?candidates:kept).add(name)}}finally{db.close()}}return new Set([...candidates].filter(name=>!kept.has(name)))}function stripTeamPrivate(snapshot,privacy){let threads=[...privacy.threads];strip(snapshot.messages,db=>{for(let table of["messages","thread_state","chat_followups","notification_log"])deleteWhereIn(db,table,"thread_id",threads);if(hasTable(db,"command_receipts")&&db.exec("DELETE FROM command_receipts"),!hasTable(db,"memory_files"))return;let indexed=db.
1621
1621
  prepare("SELECT DISTINCT bot_id AS id FROM memory_files").all().map(row=>String(row.id));deleteWhereIn(db,"memory_files","bot_id",indexed.filter(id2=>memberLayer(id2)||privacy.bots.has(id2)))}),strip(snapshot.runtime,db=>{let assignments=[...new Set([...selectWhereIn(db,"assignments","id","requester_thread_id",threads),...selectWhereIn(db,"assignments","id","assignee_thread_id",threads)])];deleteWhereIn(db,"assignment_events","assignment_id",assignments),deleteWhereIn(db,"inbox","assignment_id",
1622
1622
  assignments),deleteWhereIn(db,"inbox","owner_thread_id",threads),deleteWhereIn(db,"assignments","id",assignments)})}var TEAM_PRIVATE_NOTE="Members' private chats are theirs alone and are not in this export: their conversations, what bots remember from them, their own Limix Bot and their About you stay out.";var MAX_WORKSPACE_BACKUP_BYTES=10*1024**3,MAX_WORKSPACE_BACKUP_FILES=1e5,MAX_WORKSPACE_BACKUP_UPLOAD_BYTES=MAX_WORKSPACE_BACKUP_BYTES+256*1024**2,MAX_METADATA_BYTES=16*1024**2,MAGIC=Buffer.from(`OMB-WORKSPACE-1
1623
- `),HEADER_BYTES=MAGIC.length+16+12;var ID=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,WAITS_FILE="waits.json",EXCLUDED=new Set([".backups","tools","browser","agent-browser-profiles","cache",".cache","tmp",".tmp","dist-native","tunnel-runtime","evidence",".limixbot-server-child","environment-id","sessions.json","tunnel-account.json","team-computers.json","vm-working-folders.json","openmausbot-server.lease","box-create-requests.lock","messages.db-wal","messages.db-shm","runtime.db-wal","runtime.db-shm","\
1624
- decider-log","cloud-owner.json","sync","claude-user-skills","box","engine-homes",WAITS_FILE,"data-format.json"]),EXCLUSION_NOTES=["Device pairing, server identity, live leases and runtime files (existing destination identities are preserved).","Saved credentials, provider and MCP connections, managed provider login homes and browser login profiles are not transferred. Destination connections are preserved; reconnect on a new device.","Downloaded tools and caches (they can be installed again), an\
1625
- d recorded browser step screenshots (export them from a conversation to keep them).","Installed dependency folders (node_modules) and symbolic links inside conversation work folders; reinstall or recreate them in the project.","External project folders, CLI login homes, browser session homes, OS keychains, companion devices and other servers.","VM/container disk layers and remote cloud data; durable files inside this workspace are included.","Waits bots set up: they end within a week, so ask the\
1626
- bot again after restoring."],RESTORE_WARNING="Restoring pauses routines, webhooks and calendar calls, ends every wait, and does not resume pending delegations, queued chat messages or queued runs. Definitions and historical receipts are retained; review before enabling them again.";function excluded(name){return EXCLUDED.has(name)||excludedWorkspaceAuthPath(name)||name.startsWith("openmausbot-server.lease.")||name.startsWith("box-create-requests.lock.")||/^perm-[A-Za-z0-9_-]+\.sock$/.test(name)}
1627
- function forbiddenArchivePath(path){let folded=path.toLowerCase();return excluded(folded.split("/")[0])||excludedWorkspaceAuthPath(folded)||path!==folded&&["config.json","webhooks.json"].includes(folded)}var SNAPSHOT_DATABASES={"messages.db":"messages-snapshot.db","runtime.db":"runtime-snapshot.db"},LIVE_DATABASE_SIDECARS=new Set(Object.keys(SNAPSHOT_DATABASES).flatMap(name=>[`${name}-wal`,`${name}-shm`]));function folder(path){mkdirSync2(path,{recursive:!0,mode:448});let stat=lstatSync2(path);if(!stat.isDirectory()||stat.isSymbolicLink())throw new Error("The backup directory must be a real directory, not a symbolic link.");chmodSync(path,448)}function backupRoot(dataDir2){let root=resolve2(dataDir2);if(root===parse3(root).root)throw new Error("A filesystem root cannot be a workspace backup target.");let stat=lstatSync2(root);if(!stat.isDirectory()||stat.isSymbolicLink())throw new Error("The works\
1623
+ `),HEADER_BYTES=MAGIC.length+16+12;var ID=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,WAITS_FILE="waits.json",EXCLUDED=new Set([".backups","tools","browser","agent-browser-profiles","cache",".cache","tmp",".tmp","dist-native","tunnel-runtime","evidence",".limixbot-server-child","environment-id","sessions.json","tunnel-account.json","team-computers.json","vm-working-folders.json",".limixbot-server-child",".openmausbot-server-child","openmausbot-server.lease","limixbot-server.lease","box-create-requests.\
1624
+ lock","messages.db-wal","messages.db-shm","runtime.db-wal","runtime.db-shm","decider-log","cloud-owner.json","sync","claude-user-skills","box","engine-homes",WAITS_FILE,"data-format.json"]),EXCLUSION_NOTES=["Device pairing, server identity, live leases and runtime files (existing destination identities are preserved).","Saved credentials, provider and MCP connections, managed provider login homes and browser login profiles are not transferred. Destination connections are preserved; reconnect on \
1625
+ a new device.","Downloaded tools and caches (they can be installed again), and recorded browser step screenshots (export them from a conversation to keep them).","Installed dependency folders (node_modules) and symbolic links inside conversation work folders; reinstall or recreate them in the project.","External project folders, CLI login homes, browser session homes, OS keychains, companion devices and other servers.","VM/container disk layers and remote cloud data; durable files inside this wo\
1626
+ rkspace are included.","Waits bots set up: they end within a week, so ask the bot again after restoring."],RESTORE_WARNING="Restoring pauses routines, webhooks and calendar calls, ends every wait, and does not resume pending delegations, queued chat messages or queued runs. Definitions and historical receipts are retained; review before enabling them again.";function excluded(name){return EXCLUDED.has(name)||excludedWorkspaceAuthPath(name)||/^(?:limixbot|openmausbot)-server\.lease\./.test(name)||
1627
+ name.startsWith("box-create-requests.lock.")||/^perm-[A-Za-z0-9_-]+\.sock$/.test(name)}function forbiddenArchivePath(path){let folded=path.toLowerCase();return excluded(folded.split("/")[0])||excludedWorkspaceAuthPath(folded)||path!==folded&&["config.json","webhooks.json"].includes(folded)}var SNAPSHOT_DATABASES={"messages.db":"messages-snapshot.db","runtime.db":"runtime-snapshot.db"},LIVE_DATABASE_SIDECARS=new Set(Object.keys(SNAPSHOT_DATABASES).flatMap(name=>[`${name}-wal`,`${name}-shm`]));function folder(path){mkdirSync2(path,{recursive:!0,mode:448});let stat=lstatSync2(path);if(!stat.isDirectory()||stat.isSymbolicLink())throw new Error("The backup directory must be a real directory, not a symbolic link.");chmodSync(path,448)}function backupRoot(dataDir2){let root=resolve2(dataDir2);if(root===parse3(root).root)throw new Error("A filesystem root cannot be a workspace backup target.");let stat=lstatSync2(root);if(!stat.isDirectory()||stat.isSymbolicLink())throw new Error("The works\
1628
1628
  pace data directory must not be a symbolic link.");let path=join13(root,".backups");return folder(path),path}function jobPath(dataDir2,id2){if(!ID.test(id2))throw new Error("Invalid workspace backup identifier.");let path=join13(backupRoot(dataDir2),id2);if(entryExists(path)){let stat=lstatSync2(path);if(!stat.isDirectory()||stat.isSymbolicLink())throw new Error("Unsafe workspace backup job directory.")}return path}function newJob(dataDir2,id2=randomUUID2()){let directory=jobPath(dataDir2,id2);return mkdirSync2(
1629
1629
  directory,{mode:448}),{id:id2,directory}}function record3(value){return value!==null&&typeof value=="object"&&!Array.isArray(value)}function entryExists(path){try{return lstatSync2(path),!0}catch(error62){if(error62.code==="ENOENT")return!1;throw error62}}function privateJson(path){let fd=openSync3(path,constants2.O_RDONLY|constants2.O_NOFOLLOW);try{let stat=fstatSync3(fd);if(!stat.isFile()||stat.size>MAX_METADATA_BYTES)throw new Error("Workspace backup metadata is too large or is not a regular \
1630
1630
  file.");return JSON.parse(readFileSync5(fd,"utf8"))}finally{closeSync3(fd)}}function writeJson(path,value){let text=JSON.stringify(value);if(Buffer.byteLength(text)>MAX_METADATA_BYTES)throw new Error("Workspace backup metadata exceeds the size limit.");writeFileAtomic(path,text,{mode:384})}function assertLocalAuthOutsideSnapshot(dataDir2){let configPath=join13(dataDir2,"config.json"),config2=existsSync3(configPath)?privateJson(configPath):{},instances=record3(config2)&&record3(config2.instances)?config2.instances:{},fields=["HOME","USERPROFILE","CLAUDE_CONFIG_DIR","CODEX_HOME","GROK_HOME","KIMI_CODE_HOME","HERMES_HOME","FACTORY_HOME_OVERRIDE","XDG_CONFIG_HOME","XDG_DATA_HOME","LOCALAPPDATA"],check2=(value,field,home2)=>{if(typeof value!="string"||!value.trim())return;let text=value.