limixbot 0.3.106 → 0.3.108

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 (124) hide show
  1. package/dist/assets/{ActivityPanel-CCcPfgz5.js → ActivityPanel-CTrLS1XS.js} +1 -1
  2. package/dist/assets/{App-zBBulOuW.js → App-CG84MXOY.js} +123 -123
  3. package/dist/assets/{AppEventEditor-DwF0_M1b.js → AppEventEditor-ZtIPD0FQ.js} +1 -1
  4. package/dist/assets/{BotSettingsDialog-DxU0bbvL.js → BotSettingsDialog-C3tyr4gD.js} +1 -1
  5. package/dist/assets/{BrowserPanel-BhTErfef.js → BrowserPanel-BBSj_PCL.js} +1 -1
  6. package/dist/assets/{BrowserProfilesManager-Db3HtlGT.js → BrowserProfilesManager-CBzqzPcQ.js} +1 -1
  7. package/dist/assets/{CloudAddDialog-kamEe44b.js → CloudAddDialog-tp51EOQi.js} +1 -1
  8. package/dist/assets/{ComputerFilesPane-CcKrhxHb.js → ComputerFilesPane-QxES8_oW.js} +1 -1
  9. package/dist/assets/{ComputerPanel-xvhrDI3V.js → ComputerPanel-Go21aHH_.js} +2 -2
  10. package/dist/assets/{DataPanel-U-hn3L__.js → DataPanel-CohjsyZS.js} +1 -1
  11. package/dist/assets/{DesktopViewer-CfXOdLV9.js → DesktopViewer-B-u0gJRh.js} +1 -1
  12. package/dist/assets/{GrokMoveDialog-DUq8KP9G.js → GrokMoveDialog-Dta-wMUD.js} +1 -1
  13. package/dist/assets/{InspectorPanel-USPl8hOG.js → InspectorPanel-DNVQ8l5h.js} +1 -1
  14. package/dist/assets/{KeyboardShortcutsModal-p9ysRLk1.js → KeyboardShortcutsModal-DKAqPkt7.js} +1 -1
  15. package/dist/assets/{LimixResizeHandles-BKWnbJ2i.js → LimixResizeHandles-DkFJU9cC.js} +1 -1
  16. package/dist/assets/{LiveDesktop-DhWsbWD4.js → LiveDesktop-CBma2qSi.js} +1 -1
  17. package/dist/assets/{LocalVmWorkspace-CmUPQxAR.js → LocalVmWorkspace-Dmj0Asui.js} +1 -1
  18. package/dist/assets/{MacLocalControl-BhwfZLHm.js → MacLocalControl-3ulCDLa0.js} +1 -1
  19. package/dist/assets/{MarkdownFilePreview-CuhD_8FB.js → MarkdownFilePreview-D14WSq4R.js} +1 -1
  20. package/dist/assets/{MenuMotion-y3_mgPH0.js → MenuMotion-B9JoFJEt.js} +1 -1
  21. package/dist/assets/{NewBotDialog-wcLErpXf.js → NewBotDialog-YvTqJ2Ew.js} +1 -1
  22. package/dist/assets/{PhoneAppDialog-DgId8RUc.js → PhoneAppDialog-ilnxxFj8.js} +1 -1
  23. package/dist/assets/PlacesRail-CaLUibn0.js +1 -0
  24. package/dist/assets/{PluginsPanel-mk1MGvXs.js → PluginsPanel-BcyGpf-0.js} +1 -1
  25. package/dist/assets/{ProIntroduction-BYE3bQsp.js → ProIntroduction-CSkNp2Uo.js} +1 -1
  26. package/dist/assets/{RemoteAgentSettingsPanel-CKiEG2R6.js → RemoteAgentSettingsPanel-CqIm4aob.js} +1 -1
  27. package/dist/assets/RoomPanel-DV9a_WMs.js +2 -0
  28. package/dist/assets/{RoutinesPage-BsAHR1A_.js → RoutinesPage-l0d2HuFh.js} +1 -1
  29. package/dist/assets/{SettingsModal-B2079ETl.js → SettingsModal-DrG6Vc09.js} +1 -1
  30. package/dist/assets/{ShareTeamDialog-do0hDEeZ.js → ShareTeamDialog-CxhYnAKl.js} +1 -1
  31. package/dist/assets/{SignedInSites-GP2V7pnE.js → SignedInSites-BLbxN4TK.js} +1 -1
  32. package/dist/assets/{TeamLibraryPanel-DZT4YTMk.js → TeamLibraryPanel-DCCNY9_4.js} +1 -1
  33. package/dist/assets/{TeamMapPage-D0E4dgpI.js → TeamMapPage-BHXeLBCn.js} +1 -1
  34. package/dist/assets/{TriggersPage-DjLrZqK8.js → TriggersPage-DFXX3U13.js} +1 -1
  35. package/dist/assets/{VisibilitySection-D1WhMCk7.js → VisibilitySection-Bj2CSIz8.js} +1 -1
  36. package/dist/assets/{WebhookTrigger-DhQjWpWp.js → WebhookTrigger-BUWw55_B.js} +1 -1
  37. package/dist/assets/{WorksOnGrid-BXuGA0Sp.js → WorksOnGrid-DI002IF-.js} +1 -1
  38. package/dist/assets/{abnfDiagram-YUKMZFIV-ChcWlNpY.js → abnfDiagram-YUKMZFIV-CubZHNNN.js} +1 -1
  39. package/dist/assets/{activity-SfzB9gft.js → activity-ChMUGHD6.js} +1 -1
  40. package/dist/assets/{architectureDiagram-47P4ROYG-DVoUFfCS.js → architectureDiagram-47P4ROYG-BjkE3ua2.js} +1 -1
  41. package/dist/assets/{blockDiagram-E7TT5TSB-DqPV7RMZ.js → blockDiagram-E7TT5TSB-B0xJWLLo.js} +1 -1
  42. package/dist/assets/{c4Diagram-CRA5TL53-BGmVwlFz.js → c4Diagram-CRA5TL53-C3R8kaIP.js} +1 -1
  43. package/dist/assets/{calendar-days-D3-4I6P4.js → calendar-days-BpO4M3vx.js} +1 -1
  44. package/dist/assets/channel-4N5hcZWy.js +1 -0
  45. package/dist/assets/{chunk-2Q5K7J3B-B1ypkJ8E.js → chunk-2Q5K7J3B-l_O8ZRRd.js} +1 -1
  46. package/dist/assets/{chunk-5VM5RSS4-CcV9LLDc.js → chunk-5VM5RSS4-DP3OzgSB.js} +1 -1
  47. package/dist/assets/{chunk-7TKQ45FW-BIxUGZLZ.js → chunk-7TKQ45FW-p77hSFzy.js} +1 -1
  48. package/dist/assets/{chunk-AW2ZBBNX-BeDhUW76.js → chunk-AW2ZBBNX-C1gYF7fm.js} +1 -1
  49. package/dist/assets/{chunk-FVRAUYC3-ChrQXxWu.js → chunk-FVRAUYC3-BexM3DoL.js} +2 -2
  50. package/dist/assets/{chunk-HTAEGDNF-CoqYrJ09.js → chunk-HTAEGDNF-BjonrpqU.js} +1 -1
  51. package/dist/assets/{chunk-JWPE2WC7-x_G8N4UY.js → chunk-JWPE2WC7-BuJoxSSh.js} +1 -1
  52. package/dist/assets/{chunk-KQW6MTUR-BNgvE0Zx.js → chunk-KQW6MTUR-CaU2S5FM.js} +1 -1
  53. package/dist/assets/{chunk-XXDRQBXY-B6XLUBJo.js → chunk-XXDRQBXY-7TUtGbpu.js} +1 -1
  54. package/dist/assets/{classDiagram-v2-K4WV4PDN-DBiYaY2I.js → classDiagram-v2-K4WV4PDN-DOEuEhSU.js} +1 -1
  55. package/dist/assets/{coins-DkeI1D3d.js → coins-ur1KYL99.js} +1 -1
  56. package/dist/assets/{core-B3DZ2YZD.js → core-DVjkFPvv.js} +1 -1
  57. package/dist/assets/{cose-bilkent-JH36ORCC-DcXcgm4G.js → cose-bilkent-JH36ORCC-CQNfbn7O.js} +1 -1
  58. package/dist/assets/{cynefin-EF2NZ3EQ-D4661Ow3.js → cynefin-EF2NZ3EQ-qD8b0bs6.js} +1 -1
  59. package/dist/assets/{cynefinDiagram-3GCD6N5R-D9JCrRjr.js → cynefinDiagram-3GCD6N5R-DQkexdtW.js} +1 -1
  60. package/dist/assets/{dagre-W4DXFKR2-D7uDOym_.js → dagre-W4DXFKR2-PTyvK2we.js} +1 -1
  61. package/dist/assets/{diagram-2UJZ2QOL-C1DYfm72.js → diagram-2UJZ2QOL-Dx57ouOP.js} +1 -1
  62. package/dist/assets/{diagram-OVF4WLC6-C-nti_Wz.js → diagram-OVF4WLC6-hfV7_CUw.js} +1 -1
  63. package/dist/assets/{diagram-PFPMY2P6-B9JKIvnW.js → diagram-PFPMY2P6-TEor4AXl.js} +1 -1
  64. package/dist/assets/{diagram-UMYRVEAY-B3XBHAVr.js → diagram-UMYRVEAY-CFmYINOI.js} +1 -1
  65. package/dist/assets/{diagram-YEKJPTXX-R_DeJtDT.js → diagram-YEKJPTXX-CGgS1-TL.js} +1 -1
  66. package/dist/assets/{diagram-ZIFT7M5P-ClA3xuGy.js → diagram-ZIFT7M5P-AZv4tvfR.js} +1 -1
  67. package/dist/assets/{ebnfDiagram-VR2GEFS7-D3DyL10J.js → ebnfDiagram-VR2GEFS7-CqFGW2h9.js} +1 -1
  68. package/dist/assets/{elk-IJKZMXRS-NoFnL8PW.js → elk-IJKZMXRS-B96qGVom.js} +1 -1
  69. package/dist/assets/{erDiagram-O2IAPWRE-BPyOLz1a.js → erDiagram-O2IAPWRE-CL4hsrFS.js} +1 -1
  70. package/dist/assets/{file-up-BV8p1OPd.js → file-up-svtPjzBJ.js} +1 -1
  71. package/dist/assets/{flowDiagram-OXPTDLAJ-CdHiMknj.js → flowDiagram-OXPTDLAJ-Dfi9JSvh.js} +1 -1
  72. package/dist/assets/{ganttDiagram-R7TSEDQI-B3qyDG4d.js → ganttDiagram-R7TSEDQI-DWRdRak7.js} +1 -1
  73. package/dist/assets/{gitGraphDiagram-XJZIOB7I-CN5_yp8t.js → gitGraphDiagram-XJZIOB7I-midpe3TK.js} +1 -1
  74. package/dist/assets/{import-name-DMgD6yXZ.js → import-name-He5LDxDq.js} +1 -1
  75. package/dist/assets/{index-DSJo2jnB.js → index-Cp-6CGKc.js} +1 -1
  76. package/dist/assets/{index-Bi9hjnIk.js → index-DlFIRtPe.js} +3 -3
  77. package/dist/assets/{infoDiagram-5W2HQ5XZ-C1awaPUj.js → infoDiagram-5W2HQ5XZ-CbAdLnvD.js} +1 -1
  78. package/dist/assets/{ishikawaDiagram-K3B6WC7H-DcG1GTWM.js → ishikawaDiagram-K3B6WC7H-C_ApAUuQ.js} +1 -1
  79. package/dist/assets/{journeyDiagram-COXZFDF6-B-T-4Ss2.js → journeyDiagram-COXZFDF6-CctP-b2H.js} +1 -1
  80. package/dist/assets/{kanban-definition-P3RFRI5V-DhgMKb1S.js → kanban-definition-P3RFRI5V-DC7dcA8J.js} +1 -1
  81. package/dist/assets/{mcp-servers-B7A4aRDZ.js → mcp-servers-CLZ0PI_2.js} +1 -1
  82. package/dist/assets/{mermaid.core-C0Ni5l0v.js → mermaid.core-CSkFmzL9.js} +4 -4
  83. package/dist/assets/{mindmap-definition-LZFPQGKD-CljImffi.js → mindmap-definition-LZFPQGKD-Cen4HI0t.js} +1 -1
  84. package/dist/assets/{minimize-CkQHJV84.js → minimize-CxRfFVCm.js} +1 -1
  85. package/dist/assets/{monitor-D_UAFHyW.js → monitor-COin3QOZ.js} +1 -1
  86. package/dist/assets/{new-bot-OFavyOJo.js → new-bot-DxHaApV0.js} +1 -1
  87. package/dist/assets/{org-library-D--Qr-TG.js → org-library-CYxHJUvG.js} +1 -1
  88. package/dist/assets/{package-format-CamEIwIj.js → package-format-DuWZOSdu.js} +1 -1
  89. package/dist/assets/{pegDiagram-BGZESJAR-CgnU1Ac1.js → pegDiagram-BGZESJAR-BFITuJHv.js} +1 -1
  90. package/dist/assets/{pieDiagram-CAPJLFHJ-BJmtZCJF.js → pieDiagram-CAPJLFHJ-ssZLi5Kn.js} +1 -1
  91. package/dist/assets/{quadrantDiagram-GDMTTRAM-Dqg3HXnH.js → quadrantDiagram-GDMTTRAM-CYLDd4d8.js} +1 -1
  92. package/dist/assets/{rail-Bi4B37ED.js → rail-e42ZGZq5.js} +1 -1
  93. package/dist/assets/{railroadDiagram-SM67HX2B-Dh4hx5Fo.js → railroadDiagram-SM67HX2B-D1isRKfv.js} +1 -1
  94. package/dist/assets/{remote-desktop-panel-D_S7gQya.js → remote-desktop-panel-BR4X58aF.js} +1 -1
  95. package/dist/assets/{requirementDiagram-X7JNWC4A-DoDrImJb.js → requirementDiagram-X7JNWC4A-nJHriWdx.js} +1 -1
  96. package/dist/assets/{sankeyDiagram-UM26HJRW-4kxKCZbK.js → sankeyDiagram-UM26HJRW-B4TeIoZP.js} +1 -1
  97. package/dist/assets/{sequenceDiagram-ZO4K6R2Y-Dfn3sj5H.js → sequenceDiagram-ZO4K6R2Y-FT9vSi82.js} +1 -1
  98. package/dist/assets/{sizeCapture-INFHLROL-e4etpscL.js → sizeCapture-INFHLROL-BJeWcKQB.js} +1 -1
  99. package/dist/assets/{stateDiagram-v2-TBUQTH76-CiH2EjAT.js → stateDiagram-v2-TBUQTH76-DLoESpvK.js} +1 -1
  100. package/dist/assets/styles-nSoWYPXZ.css +1 -0
  101. package/dist/assets/{swimlanes-N4OXWK64-elz4HcrR.js → swimlanes-N4OXWK64-B_Tvsqp9.js} +1 -1
  102. package/dist/assets/swimlanesDiagram-K3J5GTZL-BmyIsPGN.js +8 -0
  103. package/dist/assets/{team-share-CVGnlnZg.js → team-share-C3IlYx6V.js} +1 -1
  104. package/dist/assets/{timeline-definition-YOQAKGHF-CBvNtqBT.js → timeline-definition-YOQAKGHF-BcCYXVCW.js} +1 -1
  105. package/dist/assets/{usecaseDiagram-VIAY4XPW-Cqnlu-5K.js → usecaseDiagram-VIAY4XPW-C3CL7PfH.js} +1 -1
  106. package/dist/assets/{vennDiagram-BLWOH2XV-B1DVqqPC.js → vennDiagram-BLWOH2XV-Dphz89In.js} +1 -1
  107. package/dist/assets/{wardleyDiagram-YMQ3BMBF-CQPngjvL.js → wardleyDiagram-YMQ3BMBF-B_S0ekVP.js} +1 -1
  108. package/dist/assets/{xychartDiagram-TAQBALBS-Djna4qxy.js → xychartDiagram-TAQBALBS-j4-ks84f.js} +1 -1
  109. package/dist/index.html +3 -3
  110. package/dist/rail.html +5 -5
  111. package/dist-server/index.js +35 -35
  112. package/dist-server/limixbot.js +118 -119
  113. package/dist-server/package.json +1 -1
  114. package/dist-server/pair-cli.js +118 -119
  115. package/dist-server/server/fleet-agent.js +2 -2
  116. package/dist-server/server/fleet-cli.js +4 -4
  117. package/dist-server/server/fleet.js +22 -16
  118. package/package.json +1 -1
  119. package/dist/assets/PlacesRail-Be4MJsKP.js +0 -1
  120. package/dist/assets/RoomPanel-DOg2_LNg.js +0 -2
  121. package/dist/assets/channel-BeYKH3lV.js +0 -1
  122. package/dist/assets/styles-CwdgkwPB.css +0 -1
  123. package/dist/assets/swimlanesDiagram-K3J5GTZL-C2oR937G.js +0 -8
  124. /package/dist/assets/{styles-BC55IU1j.js → styles-DPHR6abF.js} +0 -0
@@ -4,7 +4,7 @@ import { appendFileSync, chmodSync, existsSync, mkdirSync, rmSync } from "node:f
4
4
  import { createServer } from "node:http";
5
5
  import { dirname } from "node:path";
6
6
  import { defaultFleetDeps, executePlan, loadRegistry, markProvisioningFailed, planFleetAction } from "./fleet-cli.js";
7
- import { assertSlug, fleetLayout, fleetUser, openRouterModelIds, workspaceDataDir } from "./fleet.js";
7
+ import { assertSlug, fleetLayout, fleetUser, fleetWorkspaceUnit, openRouterModelIds, workspaceDataDir } from "./fleet.js";
8
8
  const MAX_BODY = 256 * 1024;
9
9
  export function readBody(req) {
10
10
  return new Promise((resolve, reject) => {
@@ -132,7 +132,7 @@ export function createFleetAgent(options) {
132
132
  const workspaces = [];
133
133
  for (const workspace of Object.values(registry.workspaces).sort((a, b) => a.slug.localeCompare(b.slug))) {
134
134
  const live = workspace.status === "running" || workspace.status === "suspended"
135
- ? (await deps.run(["systemctl", "is-active", `openmausbot@${workspace.slug}.service`])).output.trim() || "unknown"
135
+ ? (await deps.run(["systemctl", "is-active", fleetWorkspaceUnit(workspace.slug)])).output.trim() || "unknown"
136
136
  : workspace.status;
137
137
  workspaces.push(statusOnly ? { slug: workspace.slug, live } : { ...workspace, live, usage: workspaceUsage(layout, workspace.slug, now(), deps) });
138
138
  }
@@ -4,7 +4,7 @@ import { appendFileSync, closeSync, existsSync, fsyncSync, lstatSync, mkdirSync,
4
4
  import { posix } from "node:path";
5
5
  import { writeFileAtomic } from "./atomic.js";
6
6
  import { unstableInstallWarning } from "./service-unit.js";
7
- import { applySignIn, assertManagedWorkspace, assertSlug, assertUnixUser, createPlan, deletePlan, describeSteps, fleetLayout, fleetUser, fenceRules, initPlan, MANAGED_OPENROUTER, managedOpenRouterModels, parseRegistry, resumePlan, suspendPlan, upgradePlan, workspaceDataDir, workspaceHome, } from "./fleet.js";
7
+ import { applySignIn, assertManagedWorkspace, assertSlug, assertUnixUser, createPlan, deletePlan, describeSteps, fleetLayout, fleetUser, fleetWorkspaceDropIn, fleetWorkspaceUnit, fenceRules, initPlan, MANAGED_OPENROUTER, managedOpenRouterModels, parseRegistry, resumePlan, suspendPlan, upgradePlan, workspaceDataDir, workspaceHome, } from "./fleet.js";
8
8
  // Tenant-controlled ancestors can be renamed between any two filesystem calls: the boundary is dropping ALL root authority
9
9
  // before I/O, not a preceding lstat. The checks also reject visible symlinks, shared inodes and special files.
10
10
  const TENANT_IO = String.raw `
@@ -215,7 +215,7 @@ export async function executePlan(steps, deps, io) {
215
215
  }
216
216
  case "health":
217
217
  if (!(await deps.health(step.url, HEALTH_TIMEOUT_MS)))
218
- return failed(io, step.why, `${step.url} did not answer within ${HEALTH_TIMEOUT_MS / 1000}s; check journalctl -u openmausbot@<slug>`);
218
+ return failed(io, step.why, `${step.url} did not answer within ${HEALTH_TIMEOUT_MS / 1000}s; check journalctl -u limixbot@<slug>.service`);
219
219
  break;
220
220
  case "note":
221
221
  io.log(step.text);
@@ -274,7 +274,7 @@ export function planFleetAction(input, deps) {
274
274
  const registry = loadRegistry(layout, deps);
275
275
  if (registry.workspaces[input.slug])
276
276
  throw new Error(`workspace "${input.slug}" already exists`);
277
- for (const path of [workspaceHome(layout, input.slug), posix.join(layout.instancesDir, `${input.slug}.env`), posix.join(layout.caddyDir, `${input.slug}.caddy`), posix.join(posix.dirname(layout.unitFile), `openmausbot@${input.slug}.service.d`)]) {
277
+ for (const path of [workspaceHome(layout, input.slug), posix.join(layout.instancesDir, `${input.slug}.env`), posix.join(layout.caddyDir, `${input.slug}.caddy`), fleetWorkspaceDropIn(layout, input.slug)]) {
278
278
  if (deps.pathExists(path))
279
279
  throw new Error(`workspace path already exists: ${path}; recover or remove it explicitly before provisioning a fresh workspace`);
280
280
  }
@@ -408,7 +408,7 @@ export async function runFleetCommand(input, io, deps = defaultFleetDeps()) {
408
408
  return 0;
409
409
  }
410
410
  for (const workspace of rows) {
411
- const live = asRoot && (workspace.status === "running" || workspace.status === "suspended") ? (await deps.run(["systemctl", "is-active", `openmausbot@${workspace.slug}.service`])).output.trim() : workspace.status;
411
+ const live = asRoot && (workspace.status === "running" || workspace.status === "suspended") ? (await deps.run(["systemctl", "is-active", fleetWorkspaceUnit(workspace.slug)])).output.trim() : workspace.status;
412
412
  io.log(`${workspace.slug.padEnd(24)} https://${workspace.host.padEnd(40)} :${String(workspace.port).padEnd(6)} ${live}`);
413
413
  }
414
414
  return 0;
@@ -1,7 +1,14 @@
1
- // Many client workspaces on one Linux server, each its own OS user and `openmausbot@<slug>` service. This module only plans:
1
+ // Many client workspaces on one Linux server, each its own OS user and `limixbot@<slug>` service. This module only plans:
2
2
  // it renders files and fixed argument lists as steps, and never builds a shell command string.
3
3
  import { posix } from "node:path";
4
- const { join } = posix;
4
+ const { dirname, join } = posix;
5
+ const WORKSPACE_UNIT_PREFIX = "limixbot@";
6
+ export function fleetWorkspaceUnit(slug) {
7
+ return `${WORKSPACE_UNIT_PREFIX}${slug}.service`;
8
+ }
9
+ export function fleetWorkspaceDropIn(layout, slug) {
10
+ return join(dirname(layout.unitFile), `${fleetWorkspaceUnit(slug)}.d`);
11
+ }
5
12
  /** A workspace name: DNS label and Unix user suffix at once. */
6
13
  export const FLEET_SLUG = /^[a-z][a-z0-9-]{1,30}$/;
7
14
  export const FLEET_USER_PREFIX = "omb-";
@@ -13,7 +20,7 @@ export function fleetLayout(root = "/") {
13
20
  etcDir: at("etc", "openmausbot"),
14
21
  registryFile: at("etc", "openmausbot", "fleet.json"),
15
22
  instancesDir: at("etc", "openmausbot", "instances"),
16
- unitFile: at("etc", "systemd", "system", "openmausbot@.service"),
23
+ unitFile: at("etc", "systemd", "system", fleetWorkspaceUnit("")),
17
24
  fenceFile: at("etc", "openmausbot", "fence.nft"),
18
25
  fenceUnitFile: at("etc", "systemd", "system", "openmausbot-fence.service"),
19
26
  caddyDir: at("etc", "caddy", "omb.d"),
@@ -29,7 +36,7 @@ export function agentUnit(spec) {
29
36
  const layout = spec.layout ?? fleetLayout();
30
37
  const strip = spec.script.endsWith(".ts") ? " --experimental-strip-types" : "";
31
38
  return [
32
- "# Written by `openmausbot fleet init`. The operator workspace creates and manages workspaces through this.",
39
+ "# Written by `limixbot fleet init`. The operator workspace creates and manages workspaces through this.",
33
40
  "[Unit]",
34
41
  "Description=Limix Bot fleet agent",
35
42
  "After=network-online.target",
@@ -91,7 +98,7 @@ export function templateUnit(spec) {
91
98
  const layout = spec.layout ?? fleetLayout();
92
99
  const strip = spec.script.endsWith(".ts") ? " --experimental-strip-types" : "";
93
100
  return [
94
- "# Written by `openmausbot fleet init`. One unit for every workspace: %i is the slug.",
101
+ "# Written by `limixbot fleet init`. One unit for every workspace: %i is the slug.",
95
102
  "[Unit]",
96
103
  "Description=Limix Bot workspace %i",
97
104
  "After=network-online.target openmausbot-fence.service",
@@ -125,7 +132,7 @@ export function templateUnit(spec) {
125
132
  }
126
133
  export function fenceUnit(layout = fleetLayout()) {
127
134
  return [
128
- "# Written by `openmausbot fleet init`: keeps each workspace's loopback ports to its own user.",
135
+ "# Written by `limixbot fleet init`: keeps each workspace's loopback ports to its own user.",
129
136
  "[Unit]",
130
137
  "Description=Limix Bot per-workspace loopback fence",
131
138
  "",
@@ -141,7 +148,7 @@ export function fenceUnit(layout = fleetLayout()) {
141
148
  }
142
149
  /** nftables: only a workspace's own user, Caddy and root may open its loopback ports, so a bot's shell cannot reach a sibling's API. */
143
150
  export function fenceRules(workspaces) {
144
- const lines = ["#!/usr/sbin/nft -f", "# Written by `openmausbot fleet`; regenerated on every create, suspend, resume and delete.", "add table inet openmausbot", "flush table inet openmausbot", "table inet openmausbot {", "\tchain output {", "\t\ttype filter hook output priority 0; policy accept;"];
151
+ const lines = ["#!/usr/sbin/nft -f", "# Written by `limixbot fleet`; regenerated on every create, suspend, resume and delete.", "add table inet openmausbot", "flush table inet openmausbot", "table inet openmausbot {", "\tchain output {", "\t\ttype filter hook output priority 0; policy accept;"];
145
152
  for (const workspace of [...workspaces].sort((a, b) => a.slug.localeCompare(b.slug))) {
146
153
  if (workspace.status !== "running" && workspace.status !== "suspended" && workspace.status !== "retained" && !workspace.accountCreated)
147
154
  continue;
@@ -314,14 +321,14 @@ export function createPlan(input) {
314
321
  { kind: "write", path: join(layout.instancesDir, `${workspace.slug}.env`), content: instanceEnv({ workspace, dataDir, licenseKey: input.licenseKey, portalUrl: input.seed.portalUrl }), mode: 0o600 },
315
322
  ...(input.memoryMax
316
323
  ? [
317
- { kind: "mkdir", path: join(layout.unitFile.replace(/openmausbot@\.service$/, ""), `openmausbot@${workspace.slug}.service.d`), mode: 0o755 },
318
- { kind: "write", path: join(layout.unitFile.replace(/openmausbot@\.service$/, ""), `openmausbot@${workspace.slug}.service.d`, "limits.conf"), content: `[Service]\nMemoryMax=${input.memoryMax}\n`, mode: 0o644 },
324
+ { kind: "mkdir", path: fleetWorkspaceDropIn(layout, workspace.slug), mode: 0o755 },
325
+ { kind: "write", path: join(fleetWorkspaceDropIn(layout, workspace.slug), "limits.conf"), content: `[Service]\nMemoryMax=${input.memoryMax}\n`, mode: 0o644 },
319
326
  ]
320
327
  : []),
321
328
  { kind: "write", path: layout.fenceFile, content: fenceRules(Object.values(registry.workspaces)), mode: 0o600 },
322
329
  { kind: "run", argv: ["nft", "-f", layout.fenceFile], why: "fence the new ports to their user" },
323
330
  { kind: "run", argv: ["systemctl", "daemon-reload"], why: "pick up the workspace's environment and limits" },
324
- { kind: "run", argv: ["systemctl", "enable", "--now", `openmausbot@${workspace.slug}.service`], why: "start the workspace now and at boot" },
331
+ { kind: "run", argv: ["systemctl", "enable", "--now", fleetWorkspaceUnit(workspace.slug)], why: "start the workspace now and at boot" },
325
332
  { kind: "health", url: `http://127.0.0.1:${workspace.port}/api/health`, why: "wait for the workspace to answer" },
326
333
  { kind: "write", path: join(layout.caddyDir, `${workspace.slug}.caddy`), content: caddySite(workspace), mode: 0o644 },
327
334
  { kind: "run", argv: ["systemctl", "reload", "caddy"], why: `serve https://${workspace.host} and fetch its certificate` },
@@ -350,7 +357,7 @@ export function suspendPlan(input) {
350
357
  return {
351
358
  registry,
352
359
  steps: [
353
- { kind: "run", argv: ["systemctl", "disable", "--now", `openmausbot@${workspace.slug}.service`], why: "stop the workspace and keep it stopped at boot" },
360
+ { kind: "run", argv: ["systemctl", "disable", "--now", fleetWorkspaceUnit(workspace.slug)], why: "stop the workspace and keep it stopped at boot" },
354
361
  { kind: "write", path: join(layout.caddyDir, `${workspace.slug}.caddy`), content: caddySite(workspace), mode: 0o644 },
355
362
  { kind: "run", argv: ["systemctl", "reload", "caddy"], why: "show the suspended page instead" },
356
363
  { kind: "write", path: layout.registryFile, content: `${JSON.stringify(registry, null, 2)}\n`, mode: 0o600 },
@@ -363,7 +370,7 @@ export function resumePlan(input) {
363
370
  return {
364
371
  registry,
365
372
  steps: [
366
- { kind: "run", argv: ["systemctl", "enable", "--now", `openmausbot@${workspace.slug}.service`], why: "start the workspace again" },
373
+ { kind: "run", argv: ["systemctl", "enable", "--now", fleetWorkspaceUnit(workspace.slug)], why: "start the workspace again" },
367
374
  { kind: "health", url: `http://127.0.0.1:${workspace.port}/api/health`, why: "wait for the workspace to answer" },
368
375
  { kind: "write", path: join(layout.caddyDir, `${workspace.slug}.caddy`), content: caddySite(workspace), mode: 0o644 },
369
376
  { kind: "run", argv: ["systemctl", "reload", "caddy"], why: "serve it again" },
@@ -380,15 +387,14 @@ export function deletePlan(input) {
380
387
  assertManagedWorkspace(workspace);
381
388
  const { [input.slug]: _gone, ...rest } = input.registry.workspaces;
382
389
  const registry = { ...input.registry, workspaces: input.keepData ? { ...rest, [input.slug]: { ...workspace, status: "retained" } } : rest };
383
- const unitsDir = layout.unitFile.replace(/openmausbot@\.service$/, "");
384
390
  return {
385
391
  registry,
386
392
  steps: [
387
- { kind: "run", argv: ["systemctl", "disable", "--now", `openmausbot@${workspace.slug}.service`], why: "stop the workspace" },
393
+ { kind: "run", argv: ["systemctl", "disable", "--now", fleetWorkspaceUnit(workspace.slug)], why: "stop the workspace" },
388
394
  { kind: "remove", path: join(layout.caddyDir, `${workspace.slug}.caddy`) },
389
395
  { kind: "run", argv: ["systemctl", "reload", "caddy"], why: "stop serving its address" },
390
396
  { kind: "remove", path: join(layout.instancesDir, `${workspace.slug}.env`) },
391
- { kind: "remove", path: join(unitsDir, `openmausbot@${workspace.slug}.service.d`, "limits.conf") },
397
+ { kind: "remove", path: join(fleetWorkspaceDropIn(layout, workspace.slug), "limits.conf") },
392
398
  { kind: "write", path: layout.fenceFile, content: fenceRules(Object.values(registry.workspaces)), mode: 0o600 },
393
399
  { kind: "run", argv: ["nft", "-f", layout.fenceFile], why: input.keepData ? "keep the retained account's fence" : "drop its fence rule" },
394
400
  // Keep the nologin account too: recycling its UID would hand the preserved home to a new workspace.
@@ -403,7 +409,7 @@ export function upgradePlan(input) {
403
409
  const running = Object.values(input.registry.workspaces).filter((workspace) => workspace.status === "running").sort((a, b) => a.slug.localeCompare(b.slug));
404
410
  return [
405
411
  { kind: "run", argv: ["npm", "install", "-g", "limixbot@latest"], why: "install the release every workspace runs from" },
406
- ...running.map((workspace) => ({ kind: "run", argv: ["systemctl", "restart", `openmausbot@${workspace.slug}.service`], why: `restart ${workspace.slug} on the new release` })),
412
+ ...running.map((workspace) => ({ kind: "run", argv: ["systemctl", "restart", fleetWorkspaceUnit(workspace.slug)], why: `restart ${workspace.slug} on the new release` })),
407
413
  ...running.map((workspace) => ({ kind: "health", url: `http://127.0.0.1:${workspace.port}/api/health`, why: `wait for ${workspace.slug}` })),
408
414
  ];
409
415
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "limixbot",
3
- "version": "0.3.106",
3
+ "version": "0.3.108",
4
4
  "description": "Run the Limix Bot server anywhere and pair your devices to it (Leox ৹ Limix AI)",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",