limixbot 0.3.139 → 0.3.141

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 (130) hide show
  1. package/dist/assets/{ActivityPanel-COfO9kz3.js → ActivityPanel-D2qDgfNj.js} +1 -1
  2. package/dist/assets/{App-XogBV-zY.js → App-DVlUATuq.js} +10 -10
  3. package/dist/assets/{AppEventEditor-BDUGn9JQ.js → AppEventEditor-CmS34S85.js} +1 -1
  4. package/dist/assets/{BotSettingsDialog-B-QQjKGU.js → BotSettingsDialog-BY263Hpx.js} +1 -1
  5. package/dist/assets/{BrowserPanel-gpGgHms3.js → BrowserPanel-DLVH7EJz.js} +3 -3
  6. package/dist/assets/{BrowserProfilesManager-y_0rgxx6.js → BrowserProfilesManager-D3g9wElR.js} +1 -1
  7. package/dist/assets/{CloudAddDialog-ilsQ68Qb.js → CloudAddDialog-DPjSxdZe.js} +1 -1
  8. package/dist/assets/{ComputerFilesPane-oPSU8cF_.js → ComputerFilesPane-CIPgFHiZ.js} +1 -1
  9. package/dist/assets/{ComputerPanel-BPp3YoQQ.js → ComputerPanel-DKZ15Lrh.js} +2 -2
  10. package/dist/assets/{DataPanel-C_HhHiX2.js → DataPanel-DkAmUHzs.js} +1 -1
  11. package/dist/assets/{DesktopViewer-DQLJ65-k.js → DesktopViewer-DHpPKouz.js} +1 -1
  12. package/dist/assets/{GrokMoveDialog-KAfEBP8T.js → GrokMoveDialog-CgvM91-Q.js} +1 -1
  13. package/dist/assets/{InspectorPanel-CZlQbHob.js → InspectorPanel-CaqVaz-4.js} +1 -1
  14. package/dist/assets/{KeyboardShortcutsModal-jVso0auj.js → KeyboardShortcutsModal-CFccCEn6.js} +1 -1
  15. package/dist/assets/{LimixResizeHandles-kWhVXgUg.js → LimixResizeHandles-B05qQGL-.js} +1 -1
  16. package/dist/assets/{LiveDesktop-BVNJPX_h.js → LiveDesktop-Bmf7e4Tu.js} +1 -1
  17. package/dist/assets/{LocalVmWorkspace-B-10kwYn.js → LocalVmWorkspace-B3bDhQ9N.js} +1 -1
  18. package/dist/assets/{MacLocalControl-BQlB6oNZ.js → MacLocalControl-D8SRatvL.js} +1 -1
  19. package/dist/assets/{MarkdownFilePreview-CKDCxBAx.js → MarkdownFilePreview-C9mfh0mo.js} +1 -1
  20. package/dist/assets/{MenuMotion-DnZ3mfiD.js → MenuMotion-DuXPPcvo.js} +1 -1
  21. package/dist/assets/{NewBotDialog-DCt1ND3t.js → NewBotDialog-CLFDLsS2.js} +1 -1
  22. package/dist/assets/{PhoneAppDialog-DQ9V4p_V.js → PhoneAppDialog-DnUaN-Fw.js} +1 -1
  23. package/dist/assets/{PlacesRail-BBWcVP0k.js → PlacesRail-BJ-bXfSa.js} +1 -1
  24. package/dist/assets/{PluginsPanel-Br_6z80C.js → PluginsPanel-BZBrWQa4.js} +1 -1
  25. package/dist/assets/{ProIntroduction-CPyFbdnM.js → ProIntroduction-CKjldFF7.js} +1 -1
  26. package/dist/assets/{RemoteAgentSettingsPanel-CU-TIrOi.js → RemoteAgentSettingsPanel-DR-uywnp.js} +1 -1
  27. package/dist/assets/{RoomPanel-DaUBFxP4.js → RoomPanel-DziKRgaS.js} +1 -1
  28. package/dist/assets/{RoutinesPage-C91dSD_m.js → RoutinesPage-BCXo72z8.js} +1 -1
  29. package/dist/assets/{SettingsModal-DbfAt-F4.js → SettingsModal-B6gPauoi.js} +1 -1
  30. package/dist/assets/{ShareTeamDialog-BZlRFRFD.js → ShareTeamDialog-poRrRYw-.js} +1 -1
  31. package/dist/assets/{SignedInSites-DZTRiBI3.js → SignedInSites-CRn_yDkj.js} +1 -1
  32. package/dist/assets/{TeamLibraryPanel-C7fsWV2G.js → TeamLibraryPanel-xD4xGcM6.js} +1 -1
  33. package/dist/assets/{TeamMapPage-DmhWrV6j.js → TeamMapPage-BRw5VmSq.js} +1 -1
  34. package/dist/assets/{TriggersPage-DFyo9nf6.js → TriggersPage-C1ZtmBq8.js} +1 -1
  35. package/dist/assets/{VisibilitySection-DNI6SJel.js → VisibilitySection-C9airA4D.js} +1 -1
  36. package/dist/assets/{WebhookTrigger-tAdGlws5.js → WebhookTrigger-zYpN5d7o.js} +1 -1
  37. package/dist/assets/{WorksOnGrid-BT5vH_EO.js → WorksOnGrid-KJ3p-nHy.js} +1 -1
  38. package/dist/assets/{abnfDiagram-YUKMZFIV-Ce8eTiWW.js → abnfDiagram-YUKMZFIV-CSHaWbId.js} +1 -1
  39. package/dist/assets/{activity--SWQgP4n.js → activity-B-rv6SH8.js} +1 -1
  40. package/dist/assets/{architectureDiagram-47P4ROYG-uK5gzFcN.js → architectureDiagram-47P4ROYG-Ck3N_K_O.js} +1 -1
  41. package/dist/assets/{blockDiagram-E7TT5TSB-h0sJ21LK.js → blockDiagram-E7TT5TSB-pBM7maMq.js} +1 -1
  42. package/dist/assets/{c4Diagram-CRA5TL53-D6FSuQ4K.js → c4Diagram-CRA5TL53-Bf-p0I8b.js} +1 -1
  43. package/dist/assets/{calendar-days-DitBJQ7q.js → calendar-days-CHQoR3I7.js} +1 -1
  44. package/dist/assets/channel-COvC08kf.js +1 -0
  45. package/dist/assets/{chunk-2Q5K7J3B-uToClUtI.js → chunk-2Q5K7J3B-DlQOtOaL.js} +1 -1
  46. package/dist/assets/{chunk-5VM5RSS4-D-aGvVMe.js → chunk-5VM5RSS4-CiOX0aHl.js} +1 -1
  47. package/dist/assets/{chunk-7TKQ45FW-BLunZGXD.js → chunk-7TKQ45FW-BTushWZv.js} +1 -1
  48. package/dist/assets/{chunk-AW2ZBBNX-CNTLlxEl.js → chunk-AW2ZBBNX-aJ3nOFgT.js} +1 -1
  49. package/dist/assets/{chunk-FVRAUYC3-DjOBV8XJ.js → chunk-FVRAUYC3-CyeNqn_N.js} +2 -2
  50. package/dist/assets/{chunk-HTAEGDNF-lPxF8CJg.js → chunk-HTAEGDNF-P55CSFqg.js} +1 -1
  51. package/dist/assets/{chunk-JWPE2WC7-De4B0D7D.js → chunk-JWPE2WC7-BhrD2ioJ.js} +1 -1
  52. package/dist/assets/{chunk-KQW6MTUR-cx8qFIBr.js → chunk-KQW6MTUR-BDxkLHse.js} +1 -1
  53. package/dist/assets/{chunk-XXDRQBXY-BUeyVkn0.js → chunk-XXDRQBXY-BPP3938f.js} +1 -1
  54. package/dist/assets/{classDiagram-v2-K4WV4PDN-dK4st9xs.js → classDiagram-v2-K4WV4PDN-BZbKyiCn.js} +1 -1
  55. package/dist/assets/{coins-MJbwpEBq.js → coins-C9XJU_4V.js} +1 -1
  56. package/dist/assets/{core-BAGxQvVI.js → core-BUwTlq4P.js} +1 -1
  57. package/dist/assets/{cose-bilkent-JH36ORCC-jCX-7UJX.js → cose-bilkent-JH36ORCC-C7d1E0jy.js} +1 -1
  58. package/dist/assets/{cynefin-EF2NZ3EQ-CP2d7lx5.js → cynefin-EF2NZ3EQ-Dpnrpxzf.js} +1 -1
  59. package/dist/assets/{cynefinDiagram-3GCD6N5R-FY_TCIwN.js → cynefinDiagram-3GCD6N5R-1qGYRFwt.js} +1 -1
  60. package/dist/assets/{dagre-W4DXFKR2-BWXmKLRg.js → dagre-W4DXFKR2-DSfoACwc.js} +1 -1
  61. package/dist/assets/{diagram-2UJZ2QOL-CHEKJ_l4.js → diagram-2UJZ2QOL-Dr3i5W8y.js} +1 -1
  62. package/dist/assets/{diagram-OVF4WLC6-DCb8-TQG.js → diagram-OVF4WLC6-Kp35HPdA.js} +1 -1
  63. package/dist/assets/{diagram-PFPMY2P6-CIYmKBh5.js → diagram-PFPMY2P6-CjlhrI6Z.js} +1 -1
  64. package/dist/assets/{diagram-UMYRVEAY-9NdqhGVc.js → diagram-UMYRVEAY-DTW5ZRM1.js} +1 -1
  65. package/dist/assets/{diagram-YEKJPTXX-C3J9AGvJ.js → diagram-YEKJPTXX-m5Lo1ObV.js} +1 -1
  66. package/dist/assets/{diagram-ZIFT7M5P-BTWPaT48.js → diagram-ZIFT7M5P-D5C5w_He.js} +1 -1
  67. package/dist/assets/{ebnfDiagram-VR2GEFS7-6PXFyzKG.js → ebnfDiagram-VR2GEFS7-C-d31ZAB.js} +1 -1
  68. package/dist/assets/{elk-IJKZMXRS-Kyo_ClKD.js → elk-IJKZMXRS-Bp6SD_1S.js} +1 -1
  69. package/dist/assets/{erDiagram-O2IAPWRE-CY6f4L3d.js → erDiagram-O2IAPWRE-B2JhynZv.js} +1 -1
  70. package/dist/assets/{file-up-q6N1oToi.js → file-up-C1s0CBrI.js} +1 -1
  71. package/dist/assets/{flowDiagram-OXPTDLAJ-CIyEI3gW.js → flowDiagram-OXPTDLAJ-DeWXJ4_K.js} +1 -1
  72. package/dist/assets/{ganttDiagram-R7TSEDQI-0uDsU0zP.js → ganttDiagram-R7TSEDQI-CEqLhR3V.js} +1 -1
  73. package/dist/assets/{gitGraphDiagram-XJZIOB7I-C8WgSPMm.js → gitGraphDiagram-XJZIOB7I-BSgcVYrZ.js} +1 -1
  74. package/dist/assets/{import-name-BiqwUM8m.js → import-name-DbblQVDB.js} +1 -1
  75. package/dist/assets/{index-m7zGNgrr.js → index-CZOD-N3O.js} +3 -3
  76. package/dist/assets/{index-Bxu5GjYs.js → index-D4gkCUyb.js} +1 -1
  77. package/dist/assets/{infoDiagram-5W2HQ5XZ-vfG8gNz3.js → infoDiagram-5W2HQ5XZ-BLfUURj8.js} +1 -1
  78. package/dist/assets/{ishikawaDiagram-K3B6WC7H-kDpcmOkz.js → ishikawaDiagram-K3B6WC7H-CrNMsTRP.js} +1 -1
  79. package/dist/assets/{journeyDiagram-COXZFDF6-CNQ1ns0p.js → journeyDiagram-COXZFDF6-CzPPBwy1.js} +1 -1
  80. package/dist/assets/{kanban-definition-P3RFRI5V-b7Gw39SF.js → kanban-definition-P3RFRI5V-andT-HRd.js} +1 -1
  81. package/dist/assets/{mermaid.core-B76WO5rM.js → mermaid.core-BwghuPvM.js} +4 -4
  82. package/dist/assets/{mindmap-definition-LZFPQGKD-DtR2Z2_c.js → mindmap-definition-LZFPQGKD-DZLJJqER.js} +1 -1
  83. package/dist/assets/{minimize-L5w7-dGg.js → minimize-CyN9vCVh.js} +1 -1
  84. package/dist/assets/{monitor-CTZE2syc.js → monitor-rsXvQAT7.js} +1 -1
  85. package/dist/assets/{new-bot-DU60NyAZ.js → new-bot-CrUATi6Y.js} +1 -1
  86. package/dist/assets/{org-library-a2la24O2.js → org-library-DMy-TMqt.js} +1 -1
  87. package/dist/assets/{package-format-Dg1ECWML.js → package-format-DxsHLDfa.js} +1 -1
  88. package/dist/assets/{pegDiagram-BGZESJAR-DyOa8O_6.js → pegDiagram-BGZESJAR-Ag5ieNd4.js} +1 -1
  89. package/dist/assets/{pieDiagram-CAPJLFHJ-CWaMQ0jL.js → pieDiagram-CAPJLFHJ-BEKrcMMG.js} +1 -1
  90. package/dist/assets/{quadrantDiagram-GDMTTRAM-WW31d2Mf.js → quadrantDiagram-GDMTTRAM-5NrUzt7G.js} +1 -1
  91. package/dist/assets/{rail-pvuszcdm.js → rail-BEuN4gG8.js} +1 -1
  92. package/dist/assets/{railroadDiagram-SM67HX2B-DqD_8LgC.js → railroadDiagram-SM67HX2B-BQUI7-8z.js} +1 -1
  93. package/dist/assets/{remote-desktop-panel-DxjQVZ3G.js → remote-desktop-panel-DCwNJ1YY.js} +1 -1
  94. package/dist/assets/{requirementDiagram-X7JNWC4A-BbpAELLg.js → requirementDiagram-X7JNWC4A-DJizyC_R.js} +1 -1
  95. package/dist/assets/{sankeyDiagram-UM26HJRW-DfhCSit0.js → sankeyDiagram-UM26HJRW-BDQyU8Wh.js} +1 -1
  96. package/dist/assets/{sequenceDiagram-ZO4K6R2Y-BWx6HNt_.js → sequenceDiagram-ZO4K6R2Y-BTaigEFp.js} +1 -1
  97. package/dist/assets/{sizeCapture-INFHLROL-9Z9mWyEZ.js → sizeCapture-INFHLROL-J__bNJvX.js} +1 -1
  98. package/dist/assets/{stateDiagram-v2-TBUQTH76-C7wdnY0H.js → stateDiagram-v2-TBUQTH76-CKOTLRyo.js} +1 -1
  99. package/dist/assets/{styles-DW6_pSlc.js → styles-XkQHO_MZ.js} +1 -1
  100. package/dist/assets/{swimlanes-N4OXWK64-BdAVZ2Mp.js → swimlanes-N4OXWK64-DPAhFVMp.js} +1 -1
  101. package/dist/assets/swimlanesDiagram-K3J5GTZL-BRiVojk7.js +8 -0
  102. package/dist/assets/{team-share-CjdhSquW.js → team-share-BqhAEQhI.js} +1 -1
  103. package/dist/assets/{timeline-definition-YOQAKGHF-C5RyxpFL.js → timeline-definition-YOQAKGHF-CUrEL6lo.js} +1 -1
  104. package/dist/assets/{usecaseDiagram-VIAY4XPW-CLx4IMzT.js → usecaseDiagram-VIAY4XPW-DdD_FmQL.js} +1 -1
  105. package/dist/assets/{vennDiagram-BLWOH2XV-CDdYuSAc.js → vennDiagram-BLWOH2XV-i8yTvYzp.js} +1 -1
  106. package/dist/assets/{vi-CND2A7To.js → vi-Ck4CHn3q.js} +1 -1
  107. package/dist/assets/{wardleyDiagram-YMQ3BMBF-KxnUFn7x.js → wardleyDiagram-YMQ3BMBF-CK5DR3ZK.js} +1 -1
  108. package/dist/assets/{xychartDiagram-TAQBALBS-DzqYm7Vb.js → xychartDiagram-TAQBALBS-BvUrUg5I.js} +1 -1
  109. package/dist/index.html +2 -2
  110. package/dist/rail.html +4 -4
  111. package/dist-server/cloud-home-start.js +21 -20
  112. package/dist-server/container-mcp.js +21 -20
  113. package/dist-server/index.js +2603 -2573
  114. package/dist-server/limixbot.js +21 -21
  115. package/dist-server/package.json +1 -1
  116. package/dist-server/pair-cli.js +21 -21
  117. package/dist-server/server/browser/viewers/live-v1.js +3 -4
  118. package/dist-server/server/browser-live.js +29 -14
  119. package/dist-server/server/index.js +83 -20
  120. package/dist-server/server/plugin-hub.js +2 -0
  121. package/dist-server/server/routes/bot-messages.js +19 -18
  122. package/dist-server/server/steer-queue.js +22 -10
  123. package/dist-server/server/user-errors.js +2 -0
  124. package/dist-server/server/workspace-read.js +276 -0
  125. package/dist-server/shared/mcp-name.js +1 -0
  126. package/dist-server/vps-container-mcp.js +21 -20
  127. package/dist-server/workspace-backup.worker.js +22 -22
  128. package/package.json +1 -1
  129. package/dist/assets/channel-DXsnTIKn.js +0 -1
  130. package/dist/assets/swimlanesDiagram-K3J5GTZL-BpuCUF0j.js +0 -8
@@ -322,25 +322,24 @@ export function createBotMessageRoutes(deps) {
322
322
  // The steer awaited adapter work: re-read every ownership invariant before writing anything.
323
323
  const current = store.projectBotForTask(bot.id, bot.threadId);
324
324
  // "indeterminate" never restores: the words may already be in the live turn, and a replay would run them twice.
325
- if ((steered === "steered" && current?.busy ||
326
- steered === "indeterminate" && current) &&
327
- store.taskByThread(bot.id, bot.threadId)) {
325
+ if (steered !== "refused" && current && store.taskByThread(bot.id, bot.threadId)) {
328
326
  if (auth.kind === "session" || DESKTOP_MANAGED)
329
327
  clearUnattended(bot.threadId);
330
- const messages = held.items.map((item) => store.appendMessage(bot.threadId, {
331
- role: "user",
332
- kind: "text",
333
- text: item.text,
334
- replyToId: item.replyToId,
335
- sendId: item.sendId,
336
- ...(item.dataContext ? { dataContext: item.dataContext } : {}),
337
- queueId: item.messageId,
338
- peerAsk: item.peerAsk,
339
- steered: true,
340
- sender: item.sender,
341
- ...spokenLineFields(item.via, item.callId),
342
- ...(item.fromApp ? { fromApp: item.fromApp } : {}),
343
- }));
328
+ const messages = held.items.map((item) => (item.rowId ? store.messagesFor(bot.threadId).find(message => message.id === item.rowId) : undefined)
329
+ ?? store.appendMessage(bot.threadId, {
330
+ role: "user",
331
+ kind: "text",
332
+ text: item.text,
333
+ replyToId: item.replyToId,
334
+ sendId: item.sendId,
335
+ ...(item.dataContext ? { dataContext: item.dataContext } : {}),
336
+ queueId: item.messageId,
337
+ peerAsk: item.peerAsk,
338
+ steered: true,
339
+ sender: item.sender,
340
+ ...spokenLineFields(item.via, item.callId),
341
+ ...(item.fromApp ? { fromApp: item.fromApp } : {}),
342
+ }));
344
343
  const asked = messages.filter((_, index) => !held.items[index]?.unattended && !held.items[index]?.peerAsk).at(-1);
345
344
  if (asked)
346
345
  store.setTaskAskedAt(bot.id, bot.threadId, asked.at);
@@ -348,9 +347,11 @@ export function createBotMessageRoutes(deps) {
348
347
  handoffs.steered(bot.threadId, steerTarget, instance?.instanceId, message.id);
349
348
  const queueIds = held.items.map((item) => item.messageId);
350
349
  settleHeldSteeredQueue(held);
350
+ if (!current.busy)
351
+ drainQueuedSends();
351
352
  return json(res, 200, { ok: true, steered: true, threadId: bot.threadId, messages, queueIds });
352
353
  }
353
- if (steered === "indeterminate") {
354
+ if (steered !== "refused") {
354
355
  // No destination left: settle, so a restart cannot replay words a dead turn may have run.
355
356
  settleHeldSteeredQueue(held);
356
357
  if (!store.taskByThread(bot.id, bot.threadId)) {
@@ -5,8 +5,10 @@ import { drainCoalesceHead } from "./admission.js";
5
5
  import { spokenLineFields } from "./live-call-record.js";
6
6
  import { workOriginSchema } from "./peer-provenance.js";
7
7
  const queues = new Map();
8
+ const heldQueues = new Map();
8
9
  export function restoreSteeredMessages() {
9
10
  queues.clear();
11
+ heldQueues.clear();
10
12
  for (const row of chatFollowups("bot")) {
11
13
  if (row.status !== "pending")
12
14
  continue;
@@ -40,7 +42,11 @@ const changed = () => {
40
42
  /** Public pending chips only: never expose provider prompts or reply context. `shownSender`: where several people write,
41
43
  * whose each chip is. */
42
44
  export function queuedSteerSnapshot(ownsThread, whyHeld = () => undefined, shownSender = () => undefined) {
43
- return Object.fromEntries([...queues]
45
+ const visible = new Map(queues);
46
+ for (const [threadId, held] of heldQueues) {
47
+ visible.set(threadId, { botId: held.botId, items: [...held.items, ...(queues.get(threadId)?.items ?? [])] });
48
+ }
49
+ return Object.fromEntries([...visible]
44
50
  .filter(([threadId, entry]) => ownsThread(entry.botId, threadId))
45
51
  .map(([threadId, entry]) => [threadId, entry.items.filter((item) => !item.rowId).map((item) => ({
46
52
  queueId: item.messageId, text: item.text, ...(item.reason ? { reason: item.reason, why: whyHeld(threadId, item.reason) } : {}),
@@ -127,7 +133,7 @@ export function drainSteeredMessages(store, run, isBlocked) {
127
133
  changed();
128
134
  continue;
129
135
  }
130
- if (bot.busy || isBlocked?.(entry.botId, threadId, entry.items[0]))
136
+ if (bot.busy || heldQueues.has(threadId) || isBlocked?.(entry.botId, threadId, entry.items[0]))
131
137
  continue;
132
138
  // isBlocked can re-enter this drain; if a nested drain took this entry, it is stale.
133
139
  if (queues.get(threadId) !== entry)
@@ -140,7 +146,6 @@ export function drainSteeredMessages(store, run, isBlocked) {
140
146
  queues.set(threadId, { botId: entry.botId, items: rest });
141
147
  else
142
148
  queues.delete(threadId);
143
- changed();
144
149
  const appended = [];
145
150
  for (const item of group) {
146
151
  const recorded = item.rowId ? store.messagesFor?.(threadId).find((message) => message.id === item.rowId) : undefined;
@@ -160,6 +165,7 @@ export function drainSteeredMessages(store, run, isBlocked) {
160
165
  ...(item.reaction ? { reaction: item.reaction } : {}),
161
166
  }));
162
167
  }
168
+ changed();
163
169
  const last = appended.at(-1);
164
170
  if (!last)
165
171
  continue;
@@ -191,10 +197,8 @@ function coalesceIdentity(item) {
191
197
  return item.via === "call" ? `call:${item.callId ?? ""}|${person}` : person;
192
198
  }
193
199
  export function queuedSteeredMessage(botId, threadId, sendId) {
194
- const entry = queues.get(threadId);
195
- if (!entry || entry.botId !== botId)
196
- return null;
197
- const item = entry.items.find((candidate) => candidate.sendId === sendId);
200
+ const matchingSend = (entry) => entry?.botId === botId ? entry.items.find((candidate) => candidate.sendId === sendId) : undefined;
201
+ const item = matchingSend(heldQueues.get(threadId)) ?? matchingSend(queues.get(threadId));
198
202
  return item ? { id: item.messageId, text: item.text, replyToId: item.replyToId, ...(item.reason ? { reason: item.reason } : {}) } : null;
199
203
  }
200
204
  /** Whose waiting line this is, or null when nothing waits under that id. */
@@ -224,13 +228,16 @@ export function cancelSteeredMessage(botId, messageId, expectedThreadId) {
224
228
  /** The entry leaves first, so a racing settle cannot also dispatch these words; the caller must restore or settle it. */
225
229
  export function holdSteeredQueue(botId, threadId, queueId) {
226
230
  const entry = queues.get(threadId);
227
- if (!entry || entry.botId !== botId || !entry.items.some((item) => item.messageId === queueId))
231
+ if (heldQueues.has(threadId) || !entry || entry.botId !== botId || !entry.items.some((item) => item.messageId === queueId))
228
232
  return null;
233
+ const held = { botId, threadId, items: entry.items };
234
+ heldQueues.set(threadId, held);
229
235
  queues.delete(threadId);
230
- changed();
231
- return { botId, threadId, items: entry.items };
236
+ return held;
232
237
  }
233
238
  export function restoreHeldSteeredQueue(held) {
239
+ if (heldQueues.get(held.threadId) !== held)
240
+ return;
234
241
  const existing = queues.get(held.threadId);
235
242
  if (existing && existing.botId !== held.botId)
236
243
  throw new Error("queued task belongs to another bot");
@@ -238,10 +245,15 @@ export function restoreHeldSteeredQueue(held) {
238
245
  botId: held.botId,
239
246
  items: existing ? [...held.items, ...existing.items] : held.items,
240
247
  });
248
+ heldQueues.delete(held.threadId);
241
249
  changed();
242
250
  }
243
251
  export function settleHeldSteeredQueue(held) {
252
+ if (heldQueues.get(held.threadId) !== held)
253
+ return;
244
254
  settleChatFollowups(held.items.map((item) => item.messageId), null);
255
+ heldQueues.delete(held.threadId);
256
+ changed();
245
257
  }
246
258
  export function _queuedCount(threadId) {
247
259
  return queues.get(threadId)?.items.length ?? 0;
@@ -109,6 +109,8 @@ export const USER_ERROR = {
109
109
  "serverError.engineCheck.timeout": "{name} didn't answer within {seconds} seconds.",
110
110
  "serverError.request.bodyTimeout": "The request took too long. Check the connection and try again.",
111
111
  "serverError.browser.restartingUnresponsive": "The browser stopped responding, so it is being restarted. The live view reconnects by itself.",
112
+ "serverError.browser.restartNeeded": "A browser action was interrupted. Choose Restart browser… in the browser menu before continuing.",
113
+ "serverError.browser.streamDisconnected": "The browser stream disconnected.",
112
114
  "serverError.computer.desktopOnly": "Only the Limix Bot app on this computer can let a bot use it. Open the app here, or let the bot work in its own browser or on a cloud desktop instead.",
113
115
  "serverError.computer.permissionsThenRestart": "Limix Bot can't use this computer yet — make sure Limix Bot has the permissions it asks for, then restart it",
114
116
  "serverError.computer.notReadyDetail": "Limix Bot can't use this computer yet — {reason}",
@@ -0,0 +1,276 @@
1
+ import { constants } from "node:fs";
2
+ import { lstat, open, opendir, realpath } from "node:fs/promises";
3
+ import { extname, isAbsolute, join, relative, resolve, sep } from "node:path";
4
+ export const WORKSPACE_READ = "limix-workspace-read";
5
+ export const WORKSPACE_READ_PATH = "/api/internal/workspace-read/mcp";
6
+ const MAX_FILE_BYTES = 128 * 1024;
7
+ const MAX_SCAN_BYTES = 1024 * 1024;
8
+ const MAX_ENTRIES = 512;
9
+ const MAX_FILES = 128;
10
+ const MAX_ITEMS = 8;
11
+ const MAX_LINE_BYTES = 216;
12
+ const MAX_ITEM_BYTES = 850;
13
+ const files = new Set([".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".mts", ".cts", ".md", ".txt", ".py", ".rs", ".go", ".java", ".cs", ".css", ".html", ".vue", ".svelte", ".sql"]);
14
+ const ignored = new Set(["node_modules", "vendor", "dist", "build", "coverage", "target"]);
15
+ const decoder = new TextDecoder("utf-8", { fatal: true });
16
+ const readFlags = process.platform === "win32" ? constants.O_RDONLY : constants.O_RDONLY | constants.O_NOFOLLOW | constants.O_NONBLOCK;
17
+ const record = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
18
+ const within = (root, path) => {
19
+ const suffix = relative(root, path);
20
+ return suffix !== ".." && !suffix.startsWith(".." + sep) && !isAbsolute(suffix);
21
+ };
22
+ export function sameWorkspacePath(left, right) {
23
+ return Boolean(left && right && isAbsolute(left) && isAbsolute(right) && relative(resolve(left), resolve(right)) === "");
24
+ }
25
+ export async function bindWorkspaceRead(path, dataDir) {
26
+ try {
27
+ const canonical = await realpath(path);
28
+ const data = await realpath(dataDir);
29
+ if (within(data, canonical) || within(canonical, data) || canonical.startsWith("\\\\"))
30
+ return;
31
+ const stat = await lstat(path, { bigint: true });
32
+ if (stat.isDirectory() && !stat.isSymbolicLink() && stat.ino !== 0n)
33
+ return { path, canonical, dev: stat.dev, ino: stat.ino };
34
+ }
35
+ catch { }
36
+ }
37
+ export async function workspaceReadRootCurrent(root) {
38
+ try {
39
+ const stat = await lstat(root.path, { bigint: true });
40
+ return stat.isDirectory() && stat.dev === root.dev && stat.ino === root.ino && sameWorkspacePath(root.canonical, await realpath(root.path));
41
+ }
42
+ catch {
43
+ return false;
44
+ }
45
+ }
46
+ const pathSchema = { type: "string", description: "Workspace-relative file path with forward slashes.", minLength: 1, maxLength: 160 };
47
+ const lineSchema = { type: "integer", minimum: 1, maximum: MAX_FILE_BYTES };
48
+ const objectSchema = (properties, required) => ({ type: "object", properties, required, additionalProperties: false });
49
+ const batchSchema = (key, items) => objectSchema({ [key]: { type: "array", items, minItems: 1, maxItems: MAX_ITEMS } }, [key]);
50
+ const tools = [
51
+ { name: "batch_search", description: "Find independent case-sensitive literal strings in supported workspace text files. An optional exact path skips the bounded directory scan.", inputSchema: batchSchema("queries", objectSchema({ text: { type: "string", minLength: 1, maxLength: 128 }, path: pathSchema }, ["text"])) },
52
+ { name: "quick_outline", description: "Find simple named declarations in JavaScript and TypeScript files. Verify exact code with read_slices.", inputSchema: batchSchema("paths", pathSchema) },
53
+ { name: "read_slices", description: "Read inclusive 1-based line ranges from supported workspace text files.", inputSchema: batchSchema("ranges", objectSchema({ path: pathSchema, start: lineSchema, end: lineSchema }, ["path", "start", "end"])) },
54
+ ].map(tool => ({ ...tool, annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false } }));
55
+ function allowedName(name) {
56
+ return name.length > 0 && !name.startsWith(".") && !ignored.has(name.toLowerCase()) && !/[\\:\x00-\x1f\x7f]/u.test(name)
57
+ && !/[. ]$/u.test(name) && !/^(?:con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/iu.test(name);
58
+ }
59
+ function supportedPath(path) {
60
+ return typeof path === "string" && Buffer.byteLength(path) <= 160
61
+ && path.split("/").every(allowedName) && files.has(extname(path).toLowerCase());
62
+ }
63
+ async function readWorkspaceFile(root, path) {
64
+ if (!supportedPath(path))
65
+ throw new Error("Expected a supported relative workspace file.");
66
+ const target = join(root.canonical, path);
67
+ try {
68
+ if (!sameWorkspacePath(target, await realpath(target)))
69
+ throw new Error();
70
+ const before = await lstat(target, { bigint: true });
71
+ if (!before.isFile() || before.nlink !== 1n || before.ino === 0n || before.size > BigInt(MAX_FILE_BYTES)
72
+ || !sameWorkspacePath(target, await realpath(target)))
73
+ throw new Error();
74
+ const file = await open(target, readFlags);
75
+ try {
76
+ // Validate the opened file before reading so replacing the path cannot redirect the read.
77
+ const opened = await file.stat({ bigint: true });
78
+ if (!opened.isFile() || opened.nlink !== 1n || opened.dev !== before.dev || opened.ino !== before.ino
79
+ || opened.size > BigInt(MAX_FILE_BYTES) || !await workspaceReadRootCurrent(root)
80
+ || !sameWorkspacePath(target, await realpath(target)))
81
+ throw new Error();
82
+ const buffer = Buffer.alloc(Number(opened.size) + 1);
83
+ let length = 0;
84
+ while (length < buffer.length) {
85
+ const { bytesRead } = await file.read(buffer, length, buffer.length - length, length);
86
+ if (!bytesRead)
87
+ break;
88
+ length += bytesRead;
89
+ }
90
+ const after = await lstat(target, { bigint: true });
91
+ if (length !== Number(opened.size) || after.dev !== opened.dev || after.ino !== opened.ino
92
+ || after.mtimeNs !== opened.mtimeNs || after.ctimeNs !== opened.ctimeNs
93
+ || !sameWorkspacePath(target, await realpath(target)))
94
+ throw new Error();
95
+ const text = decoder.decode(buffer.subarray(0, length));
96
+ if (text.includes("\0"))
97
+ throw new Error();
98
+ return { path, length, lines: text ? text.replace(/(?:\r\n|\n|\r)$/u, "").split(/\r\n|\n|\r/u) : [] };
99
+ }
100
+ finally {
101
+ await file.close();
102
+ }
103
+ }
104
+ catch {
105
+ throw new Error("File unavailable as bounded UTF-8 workspace text.");
106
+ }
107
+ }
108
+ async function scanWorkspace(root) {
109
+ const paths = [];
110
+ const pending = [""];
111
+ let entries = 0;
112
+ let truncated = false;
113
+ while (pending.length && !truncated) {
114
+ const directory = pending.shift();
115
+ const target = join(root.canonical, directory);
116
+ try {
117
+ if (!sameWorkspacePath(target, await realpath(target))) {
118
+ truncated = true;
119
+ break;
120
+ }
121
+ for await (const entry of await opendir(target)) {
122
+ if (++entries > MAX_ENTRIES) {
123
+ truncated = true;
124
+ break;
125
+ }
126
+ if (!allowedName(entry.name))
127
+ continue;
128
+ const path = directory ? directory + "/" + entry.name : entry.name;
129
+ if (entry.isDirectory() && path.split("/").length < 8)
130
+ pending.push(path);
131
+ else if (entry.isDirectory())
132
+ truncated = true;
133
+ else if (entry.isFile() && supportedPath(path))
134
+ paths.push(path);
135
+ }
136
+ }
137
+ catch {
138
+ truncated = true;
139
+ }
140
+ }
141
+ const contents = [];
142
+ let bytes = 0;
143
+ for (const path of paths.sort().slice(0, MAX_FILES)) {
144
+ const file = await readWorkspaceFile(root, path).catch(() => null);
145
+ if (!file) {
146
+ truncated = true;
147
+ continue;
148
+ }
149
+ bytes += file.length;
150
+ if (bytes > MAX_SCAN_BYTES) {
151
+ truncated = true;
152
+ break;
153
+ }
154
+ contents.push(file);
155
+ }
156
+ return { contents, truncated: truncated || paths.length > MAX_FILES };
157
+ }
158
+ function prefix(text, bytes) {
159
+ let length = 0;
160
+ let chars = 0;
161
+ for (const point of text) {
162
+ length += Buffer.byteLength(point);
163
+ if (length > bytes)
164
+ break;
165
+ chars += point.length;
166
+ }
167
+ return text.slice(0, chars);
168
+ }
169
+ function boundedRows(index, candidates, truncated = false) {
170
+ const rows = [];
171
+ let bytes = 0;
172
+ for (const candidate of candidates) {
173
+ const text = prefix(candidate.text, MAX_LINE_BYTES);
174
+ const row = { ...candidate, text, ...(text !== candidate.text ? { clipped: true } : {}) };
175
+ bytes += Buffer.byteLength(JSON.stringify(row)) + 1;
176
+ if (rows.length === 12 || bytes > MAX_ITEM_BYTES) {
177
+ truncated = true;
178
+ break;
179
+ }
180
+ truncated ||= row.clipped === true;
181
+ rows.push(row);
182
+ }
183
+ return { index, rows, truncated };
184
+ }
185
+ const declaration = /^(?:export\s+)?(?:default\s+)?(?:declare\s+)?(?:abstract\s+)?(?:async\s+)?(?:function(?:\s*\*\s*|\s+)|(?:class|interface|type|enum|namespace|const|let|var)\s+)[A-Za-z_$][\w$]*/u;
186
+ function* matchingLines(contents, match, start = 1, end = MAX_FILE_BYTES) {
187
+ for (const { path, lines } of contents) {
188
+ for (let line = start; line <= Math.min(end, lines.length); line++) {
189
+ const text = lines[line - 1];
190
+ if (match(text))
191
+ yield { path, line, text };
192
+ }
193
+ }
194
+ }
195
+ function* searchLines(contents, query) {
196
+ for (const row of matchingLines(contents, line => line.includes(query))) {
197
+ if (prefix(row.text, MAX_LINE_BYTES).includes(query))
198
+ yield row;
199
+ else
200
+ yield { ...row, text: row.text.slice(row.text.indexOf(query)), clipped: true };
201
+ }
202
+ }
203
+ function textResult(text, isError = false) {
204
+ return { content: [{ type: "text", text }], ...(isError ? { isError } : {}) };
205
+ }
206
+ async function callWorkspace(root, name, args) {
207
+ const key = name === "batch_search" ? "queries" : name === "quick_outline" ? "paths" : "ranges";
208
+ const items = args[key];
209
+ if (Object.keys(args).length !== 1 || !Array.isArray(items) || items.length < 1 || items.length > MAX_ITEMS) {
210
+ return textResult("Expected one batch of 1–8 items.", true);
211
+ }
212
+ let scan;
213
+ const results = [];
214
+ for (const [index, item] of items.entries()) {
215
+ try {
216
+ if (name === "batch_search") {
217
+ if (!record(item) || Object.keys(item).some(key => key !== "text" && key !== "path") || typeof item.text !== "string"
218
+ || !item.text || Buffer.byteLength(item.text) > 128 || /[\r\n]/u.test(item.text))
219
+ throw new Error("Expected a nonempty single-line search literal.");
220
+ const query = item.text;
221
+ const selected = Object.hasOwn(item, "path") ? { contents: [await readWorkspaceFile(root, item.path)], truncated: false } : (scan ??= await scanWorkspace(root));
222
+ results.push(boundedRows(index, searchLines(selected.contents, query), selected.truncated));
223
+ }
224
+ else if (name === "quick_outline") {
225
+ if (typeof item !== "string" || !/\.(?:[mc]?[jt]s|[jt]sx)$/iu.test(item))
226
+ throw new Error("Expected a JavaScript or TypeScript path.");
227
+ results.push(boundedRows(index, matchingLines([await readWorkspaceFile(root, item)], line => declaration.test(line))));
228
+ }
229
+ else {
230
+ if (!record(item) || Object.keys(item).length !== 3 || typeof item.start !== "number" || typeof item.end !== "number"
231
+ || !Number.isInteger(item.start) || !Number.isInteger(item.end) || item.start < 1 || item.end < item.start
232
+ || item.end > MAX_FILE_BYTES)
233
+ throw new Error("Expected a valid inclusive line range.");
234
+ const file = await readWorkspaceFile(root, item.path);
235
+ if (item.start > file.lines.length)
236
+ throw new Error("Start line is beyond the end of the file.");
237
+ results.push(boundedRows(index, matchingLines([file], () => true, item.start, item.end)));
238
+ }
239
+ }
240
+ catch (error) {
241
+ results.push({ index, rows: [], truncated: false, error: error.message });
242
+ }
243
+ }
244
+ return textResult(JSON.stringify({ results }));
245
+ }
246
+ export async function workspaceReadRpc(root, request, allowed) {
247
+ const valid = record(request) && request.jsonrpc === "2.0" && typeof request.method === "string";
248
+ const id = valid && (typeof request.id === "string" || typeof request.id === "number") ? request.id : null;
249
+ const reply = (result) => ({ jsonrpc: "2.0", id, result });
250
+ const error = (code, message) => ({ jsonrpc: "2.0", id, error: { code, message } });
251
+ if (!valid)
252
+ return error(-32600, "Invalid MCP request.");
253
+ if (!Object.hasOwn(request, "id"))
254
+ return;
255
+ if (request.method === "initialize") {
256
+ const asked = record(request.params) ? request.params.protocolVersion : undefined;
257
+ const protocolVersion = typeof asked === "string" && ["2025-11-25", "2025-06-18", "2025-03-26", "2024-11-05"].includes(asked) ? asked : "2025-11-25";
258
+ return reply({ protocolVersion, capabilities: { tools: {} }, serverInfo: { name: WORKSPACE_READ, version: "1.0.0" } });
259
+ }
260
+ if (request.method === "ping")
261
+ return reply({});
262
+ if (request.method === "tools/list")
263
+ return reply({ tools: tools.filter(tool => allowed(tool.name, {})) });
264
+ if (request.method !== "tools/call")
265
+ return error(-32601, "Method not found.");
266
+ const params = request.params;
267
+ if (!record(params) || typeof params.name !== "string" || !record(params.arguments)
268
+ || !tools.some(tool => tool.name === params.name))
269
+ return error(-32602, "Invalid workspace tool call.");
270
+ const { name, arguments: args } = params;
271
+ if (!allowed(name, args))
272
+ return error(-32602, "Workspace tool is outside the current access scope.");
273
+ const result = await callWorkspace(root, name, args);
274
+ return allowed(name, args) && await workspaceReadRootCurrent(root) && allowed(name, args)
275
+ ? reply(result) : error(-32602, "Workspace access changed during the call.");
276
+ }
@@ -9,6 +9,7 @@ export const RESERVED_MCP_NAMES = new Set([
9
9
  "email",
10
10
  "device",
11
11
  "phone",
12
+ "limix-workspace-read",
12
13
  "dweb",
13
14
  "openmausbot_connectors",
14
15
  "openmausbot_phone",
@@ -1349,26 +1349,27 @@ such bot","serverError.owner.personal":"{bot} is {name}'s own Limix Bot: it alwa
1349
1349
  .department.emptyFirst":"Move all bots (including archived bots) and group chats out of this department first","serverError.department.deleteBusy":"Stop this department's active work before deleting it","serverError.department.generalChief":"General already has a Chief of Staff. Move or change this department's Chief before deleting it","serverError.backup.recursiveLink":"Cannot back up a symbolic link to the folder that contains it: {path}","serverError.setup.noTools":"This bot's AI can't set i\
1350
1350
  t up by itself. Tell the bot what you'd like it to do instead.","serverError.setup.missingConversation":"There is no such conversation.","serverError.setup.stopOwner":"Only the person who pressed Set me up, or an owner or admin, can stop it.","serverError.setup.hasInstructions":"This bot already has instructions. To change its job, type /setup and what you'd like it to do.","serverError.setup.started":"This chat has already started. Type /setup and what you'd like this bot to do.","serverError.s\
1351
1351
  etup.someoneElse":"Someone else is setting this bot up.","serverError.approval.allThreads":"Finish this bot's approval change first. Every thread's provider must support this approval level.","serverError.approval.pending":"Finish this bot's pending approval change first","serverError.approval.provider":"Use the bot's provider on this thread before applying its approval level","serverError.engineCheck.timeout":"{name} didn't answer within {seconds} seconds.","serverError.request.bodyTimeout":"Th\
1352
- e request took too long. Check the connection and try again.","serverError.browser.restartingUnresponsive":"The browser stopped responding, so it is being restarted. The live view reconnects by itself.","serverError.computer.desktopOnly":"Only the Limix Bot app on this computer can let a bot use it. Open the app here, or let the bot work in its own browser or on a cloud desktop instead.","serverError.computer.permissionsThenRestart":"Limix Bot can't use this computer yet \u2014 make sure Limix Bot ha\
1353
- s the permissions it asks for, then restart it","serverError.computer.notReadyDetail":"Limix Bot can't use this computer yet \u2014 {reason}","serverError.computer.notReadyMacPermission":"Limix Bot can't use this computer yet \u2014 {reason}. Relaunch Limix Bot after granting the missing macOS permission.","serverError.install.invalidDetails":"{name}'s install details are invalid. Nothing was downloaded.","serverError.install.versionGone":"This version of {name} is no longer available to downloa\
1354
- d. Update Limix Bot, then try again.","serverError.install.downloadLimited":"The download site is limiting downloads right now. Try again in a few minutes.","serverError.install.siteNotAnswering":"{name}'s download site isn't answering right now. Try again later.","serverError.install.downloadFailed":"{name} couldn't be downloaded. Check the internet connection and try again.","serverError.install.downloadTooLarge":"The {name} download was larger than expected, so it was stopped. Nothing was ins\
1355
- talled.","serverError.install.unofficialDownload":"The {name} download did not come from its official site, so it was stopped. Nothing was installed.","serverError.install.redirects":"The {name} download kept redirecting, so it was stopped. Nothing was installed.","serverError.install.safetyCheck":"The {name} download failed its safety check, so nothing was installed. Try again later.","serverError.install.downloadTimeout":"The {name} download took too long and was stopped. Check the internet co\
1356
- nnection and try again.","serverError.install.unsafeArchive":"The archive contains an unexpected or unsafe file. Nothing was installed.","serverError.install.unsafeFile":"The {name} download holds an unexpected or unsafe file, so nothing was installed.","serverError.install.notPlainFolder":"Limix Bot's folder for {name} is not a plain folder ({path}), so nothing was changed. Move it away, then try again.","serverError.install.unexpectedFolder":"Limix Bot's folder for {name} holds something it di\
1357
- d not put there ({path}), so nothing was changed. Move it away, then try again.","serverError.install.diskSpace":"There is not enough free disk space to install {name}. Free up about {megabytes} MB, then try again.","serverError.install.openElsewhere":"{name} is open in another window. Close it, then try again.","serverError.install.cannotWrite":"Limix Bot can't write to its folder for {name}. Check the folder's permissions, then try again.","serverError.install.failed":"{name} couldn't be insta\
1358
- lled. Try again.","serverError.install.noDownload":"{name} has no download for this computer.","serverError.install.existingDoesNotStart":"{name} is installed, but it doesn't start on this computer ({failure}). Nothing was changed.","serverError.install.programMissing":"The {name} download did not contain the program it should, so nothing was installed.","serverError.install.notSigned":"The downloaded {name} is not signed by its maker, so nothing was installed.","serverError.install.downloadDoes\
1359
- NotStart":"{name} was downloaded, but it doesn't start on this computer ({failure}). Nothing was installed.","serverError.secret.missing":"no such credential request","serverError.secret.settingsCard":"this card saves a key in Settings","serverError.secret.savingFromPhone":"this secret is currently being saved from a phone","serverError.secret.declined":"this request was declined","serverError.secret.replaced":"this request was replaced by a newer one","serverError.secret.taskStopped":"this requ\
1360
- est stopped with its task","serverError.secret.alreadySaved":"this secret was already saved","serverError.secret.valueSize":"Enter the secret: up to {bytes} bytes.","serverError.secret.notKeptSafely":"The secret could not be kept safely. Nothing was saved.","serverError.secret.unavailableLower":"this credential request is no longer available","serverError.signIn.requestMissing":"no such sign-in request","serverError.signIn.requestReplaced":"this sign-in request was superseded by a newer one","se\
1361
- rverError.signIn.answeredInChat":"this sign-in request was already answered in the chat","serverError.signIn.alreadyDone":"this sign-in request was already marked done","serverError.signIn.alreadyCancelled":"this sign-in request was already cancelled","serverError.inbox.answerNotPassed":"That answer can't be passed back.","serverError.room.nameOneLine":"room name must fit on one line","serverError.computer.systemUnsupported":"bots can't use this computer on this system \u2014 choose another place for\
1362
- this bot to work","serverError.computer.aiUnsupported":"this bot's AI can't use this computer \u2014 pick another AI for this bot, or choose another place for it to work","serverError.wait.alreadyEnded":"This wait has already ended.","serverError.botDefaults.nameLength":"name must be at most 100 characters","serverError.botDefaults.sectionLength":"section must be at most 60 characters","serverError.botDefaults.invalid":"These bot settings are not valid.","serverError.postiz.addressHttps":"Enter\
1363
- your Postiz server's address, starting with https://.","serverError.postiz.addressNoCredentials":"Leave any user name or password out of the Postiz address.","serverError.postiz.addressNoQuery":"Enter the Postiz address without anything after ? or #.","serverError.postiz.addressLocalHttp":"Use an https:// address. Plain http:// works only for a Postiz server on this computer.","serverError.postiz.addressUseHttps":"Use your Postiz server's https:// address.","serverError.postiz.addressContainsKe\
1364
- y":"That address has a key in it. Enter the server address alone, and paste the key in its own box.","serverError.postiz.mcpUpdating":"MCP servers are being updated. Try again in a moment.","serverError.setup.limixbotMissing":"no such Limix Bot","serverError.setup.limixbotOwnerOnly":"only Limix Bot's own person can do this","serverError.setup.noIntroToFollowUp":"this conversation has no intro to follow up","serverError.inbox.missing":"There is no inbox here.","serverError.inbox.lineMissing":"Tha\
1365
- t line is not in your inbox.","serverError.inbox.answerRequired":"This waits on your answer: answer it, or close it, where it asks.","serverError.instance.settingsInvalid":"Supply a valid CLI path, account name, configuration directory, boolean tools setting or a reply wait of 1 to 60 minutes.","serverError.instance.replyWaitUnsupported":"The reply wait is available for OpenAI-compatible servers only.","serverError.instance.modelsUnsupported":"Model IDs can be changed for added OpenAI-compatible\
1366
- servers only.","serverError.instance.defaultModelRemoved":"{model} is the default model. Choose another default model before removing it from this server.","serverError.mcp.personalHeadersShared":"Personal MCP header values cannot be saved in shared configuration. Save your key in your personal connection.","serverError.mcp.testSignInFirst":"Sign in to the team to test your own connection.","serverError.postiz.adminOnly":"Only the owner or an admin can manage the Postiz connection.","serverErro\
1367
- r.postiz.keyAlone":"Paste the Postiz API key alone.","serverError.postiz.addressAsText":"Send the Postiz address as text.","serverError.secret.localService":"A local service cannot enter a secret. Enter it in Limix Bot.","serverError.secret.cloudOwnerOnly":"Only the owner of this Cloud can enter this secret.","serverError.secret.conversationOwnerOnly":"Only the person this conversation belongs to can enter this secret.","serverError.secret.credentialSavingFromPhone":"this credential is currently\
1368
- being saved from a phone","serverError.secret.credentialDismissed":"this credential request was dismissed","serverError.secret.credentialSuperseded":"this credential request was superseded by a newer one","serverError.secret.notSavedYet":"{label} was not saved yet","serverError.secret.notReadyToResume":"this credential request is not ready to resume","serverError.secret.noLongerConfigured":"{label} is no longer configured","serverError.department.moveChiefConflict":"A department can have only o\
1369
- ne Chief of Staff. Change the Chief before moving this bot.","serverError.department.membershipChanged":"Department membership changed. Reopen the dialog and try again.","serverError.mcp.addressAsText":"Send the MCP server address as text.","serverError.mcp.addressChanged":"The MCP server address changed. Reload the server and try again.","serverError.attachment.alreadyInMessage":"This file is already in a message, so it stays.","serverError.engine.signedOut":"{name} is signed out.","serverError\
1370
- .bot.viewOnly":"You can view {bot}, not chat with it.","serverError.secret.mailboxAlreadyConnected":"this mailbox was already connected","serverError.secret.emailAndPassword":"Enter your email address and its password.","serverError.secret.emailUnavailable":"Email can't be connected here.","serverError.mailbox.adminOnly":"Only the owner or an admin can manage the mailboxes.","serverError.mailbox.addressAndPassword":"Enter your email address and password.","serverError.mailbox.outgoingFields":"Ch\
1371
- eck the outgoing server: a name like mail.example.com, a port from 1 to 65535, and SSL/TLS or STARTTLS.","serverError.voice.fishKeyRequired":"Add a Fish Audio key in Settings \u2192 API keys to talk to your bots here.","serverError.voice.fishTranscribeConnection":"Couldn't reach Fish Audio to hear you \u2014 check your connection.","serverError.file.tooLarge":"This file is {size}, over the {limit} limit for opening files from chat. The file itself is still saved as {name}."};var BOT_PROFILE_LIMITS={name:100,title:200,description:4e3,voice:200,soul:24e3};function fitsOnOneLine(value){for(let i=0;i<value.length;i+=1){let code=value.charCodeAt(i);if(code<32||code>=127&&code<=159||code===8232||code===8233)return!1}return!0}var REPLY_STYLES=["default","conversational"];var MASCOT_BODY_IDS=["cursor","blob","circle","squircle","capsule","drop","shield","hexagon","diamond","star"],mascotBodySchema=external_exports.enum(MASCOT_BODY_IDS);var HALLOWEEN_BODY_IDS=["pumpkin","ghost","witch","bat","cat","skull","monster","mummy","vampire","spider"],DIWALI_BODY_IDS=["rocket","anaar","chakri","sparkler","bomb","laddu","chakli","jalebi","katli","karanji"],CARVED_BODY_IDS=[...HALLOWEEN_BODY_IDS,...DIWALI_BODY_IDS];var BOT_BODY_IDS=[...MASCOT_BODY_IDS,...CARVED_BODY_IDS],botBodySchema=external_exports.enum(BOT_BODY_IDS);var festival=(bodies,costumes)=>({bodies,costumes}),FESTIVALS={halloween:festival(HALLOWEEN_BODY_IDS,{orange:"pumpkin",purple:"ghost",teal:"witch",red:"bat",blue:"cat",cyan:"skull",green:"monster",yellow:"mummy",coral:"vampire",pink:"spider"}),diwali:festival(DIWALI_BODY_IDS,{orange:"laddu",purple:"chakri",teal:"karanji",red:"rocket",blue:"bomb",cyan:"chakli",green:"anaar",yellow:"katli",coral:"jalebi",pink:"sparkler"})},FESTIVAL_IDS=Object.keys(FESTIVALS);var profilePatchSchema=external_exports.object({name:external_exports.string({error:"name must be a string"}).max(BOT_PROFILE_LIMITS.name,{error:"name must be at most 100 characters"}).refine(value=>!!value.trim(),{error:"name must not be empty"}).refine(fitsOnOneLine,{error:"name must fit on one line"}).optional(),title:external_exports.string({error:"title must be a string"}).max(BOT_PROFILE_LIMITS.title,{error:"title must be at most 200 characters"}).refine(fitsOnOneLine,{error:"title must fi\
1352
+ e request took too long. Check the connection and try again.","serverError.browser.restartingUnresponsive":"The browser stopped responding, so it is being restarted. The live view reconnects by itself.","serverError.browser.restartNeeded":"A browser action was interrupted. Choose Restart browser\u2026 in the browser menu before continuing.","serverError.browser.streamDisconnected":"The browser stream disconnected.","serverError.computer.desktopOnly":"Only the Limix Bot app on this computer can l\
1353
+ et a bot use it. Open the app here, or let the bot work in its own browser or on a cloud desktop instead.","serverError.computer.permissionsThenRestart":"Limix Bot can't use this computer yet \u2014 make sure Limix Bot has the permissions it asks for, then restart it","serverError.computer.notReadyDetail":"Limix Bot can't use this computer yet \u2014 {reason}","serverError.computer.notReadyMacPermission":"Limix Bot can't use this computer yet \u2014 {reason}. Relaunch Limix Bot after granting the mis\
1354
+ sing macOS permission.","serverError.install.invalidDetails":"{name}'s install details are invalid. Nothing was downloaded.","serverError.install.versionGone":"This version of {name} is no longer available to download. Update Limix Bot, then try again.","serverError.install.downloadLimited":"The download site is limiting downloads right now. Try again in a few minutes.","serverError.install.siteNotAnswering":"{name}'s download site isn't answering right now. Try again later.","serverError.instal\
1355
+ l.downloadFailed":"{name} couldn't be downloaded. Check the internet connection and try again.","serverError.install.downloadTooLarge":"The {name} download was larger than expected, so it was stopped. Nothing was installed.","serverError.install.unofficialDownload":"The {name} download did not come from its official site, so it was stopped. Nothing was installed.","serverError.install.redirects":"The {name} download kept redirecting, so it was stopped. Nothing was installed.","serverError.instal\
1356
+ l.safetyCheck":"The {name} download failed its safety check, so nothing was installed. Try again later.","serverError.install.downloadTimeout":"The {name} download took too long and was stopped. Check the internet connection and try again.","serverError.install.unsafeArchive":"The archive contains an unexpected or unsafe file. Nothing was installed.","serverError.install.unsafeFile":"The {name} download holds an unexpected or unsafe file, so nothing was installed.","serverError.install.notPlainF\
1357
+ older":"Limix Bot's folder for {name} is not a plain folder ({path}), so nothing was changed. Move it away, then try again.","serverError.install.unexpectedFolder":"Limix Bot's folder for {name} holds something it did not put there ({path}), so nothing was changed. Move it away, then try again.","serverError.install.diskSpace":"There is not enough free disk space to install {name}. Free up about {megabytes} MB, then try again.","serverError.install.openElsewhere":"{name} is open in another windo\
1358
+ w. Close it, then try again.","serverError.install.cannotWrite":"Limix Bot can't write to its folder for {name}. Check the folder's permissions, then try again.","serverError.install.failed":"{name} couldn't be installed. Try again.","serverError.install.noDownload":"{name} has no download for this computer.","serverError.install.existingDoesNotStart":"{name} is installed, but it doesn't start on this computer ({failure}). Nothing was changed.","serverError.install.programMissing":"The {name} do\
1359
+ wnload did not contain the program it should, so nothing was installed.","serverError.install.notSigned":"The downloaded {name} is not signed by its maker, so nothing was installed.","serverError.install.downloadDoesNotStart":"{name} was downloaded, but it doesn't start on this computer ({failure}). Nothing was installed.","serverError.secret.missing":"no such credential request","serverError.secret.settingsCard":"this card saves a key in Settings","serverError.secret.savingFromPhone":"this secr\
1360
+ et is currently being saved from a phone","serverError.secret.declined":"this request was declined","serverError.secret.replaced":"this request was replaced by a newer one","serverError.secret.taskStopped":"this request stopped with its task","serverError.secret.alreadySaved":"this secret was already saved","serverError.secret.valueSize":"Enter the secret: up to {bytes} bytes.","serverError.secret.notKeptSafely":"The secret could not be kept safely. Nothing was saved.","serverError.secret.unavai\
1361
+ lableLower":"this credential request is no longer available","serverError.signIn.requestMissing":"no such sign-in request","serverError.signIn.requestReplaced":"this sign-in request was superseded by a newer one","serverError.signIn.answeredInChat":"this sign-in request was already answered in the chat","serverError.signIn.alreadyDone":"this sign-in request was already marked done","serverError.signIn.alreadyCancelled":"this sign-in request was already cancelled","serverError.inbox.answerNotPass\
1362
+ ed":"That answer can't be passed back.","serverError.room.nameOneLine":"room name must fit on one line","serverError.computer.systemUnsupported":"bots can't use this computer on this system \u2014 choose another place for this bot to work","serverError.computer.aiUnsupported":"this bot's AI can't use this computer \u2014 pick another AI for this bot, or choose another place for it to work","serverError.wait.alreadyEnded":"This wait has already ended.","serverError.botDefaults.nameLength":"name m\
1363
+ ust be at most 100 characters","serverError.botDefaults.sectionLength":"section must be at most 60 characters","serverError.botDefaults.invalid":"These bot settings are not valid.","serverError.postiz.addressHttps":"Enter your Postiz server's address, starting with https://.","serverError.postiz.addressNoCredentials":"Leave any user name or password out of the Postiz address.","serverError.postiz.addressNoQuery":"Enter the Postiz address without anything after ? or #.","serverError.postiz.addres\
1364
+ sLocalHttp":"Use an https:// address. Plain http:// works only for a Postiz server on this computer.","serverError.postiz.addressUseHttps":"Use your Postiz server's https:// address.","serverError.postiz.addressContainsKey":"That address has a key in it. Enter the server address alone, and paste the key in its own box.","serverError.postiz.mcpUpdating":"MCP servers are being updated. Try again in a moment.","serverError.setup.limixbotMissing":"no such Limix Bot","serverError.setup.limixbotOwnerO\
1365
+ nly":"only Limix Bot's own person can do this","serverError.setup.noIntroToFollowUp":"this conversation has no intro to follow up","serverError.inbox.missing":"There is no inbox here.","serverError.inbox.lineMissing":"That line is not in your inbox.","serverError.inbox.answerRequired":"This waits on your answer: answer it, or close it, where it asks.","serverError.instance.settingsInvalid":"Supply a valid CLI path, account name, configuration directory, boolean tools setting or a reply wait of 1\
1366
+ to 60 minutes.","serverError.instance.replyWaitUnsupported":"The reply wait is available for OpenAI-compatible servers only.","serverError.instance.modelsUnsupported":"Model IDs can be changed for added OpenAI-compatible servers only.","serverError.instance.defaultModelRemoved":"{model} is the default model. Choose another default model before removing it from this server.","serverError.mcp.personalHeadersShared":"Personal MCP header values cannot be saved in shared configuration. Save your key\
1367
+ in your personal connection.","serverError.mcp.testSignInFirst":"Sign in to the team to test your own connection.","serverError.postiz.adminOnly":"Only the owner or an admin can manage the Postiz connection.","serverError.postiz.keyAlone":"Paste the Postiz API key alone.","serverError.postiz.addressAsText":"Send the Postiz address as text.","serverError.secret.localService":"A local service cannot enter a secret. Enter it in Limix Bot.","serverError.secret.cloudOwnerOnly":"Only the owner of thi\
1368
+ s Cloud can enter this secret.","serverError.secret.conversationOwnerOnly":"Only the person this conversation belongs to can enter this secret.","serverError.secret.credentialSavingFromPhone":"this credential is currently being saved from a phone","serverError.secret.credentialDismissed":"this credential request was dismissed","serverError.secret.credentialSuperseded":"this credential request was superseded by a newer one","serverError.secret.notSavedYet":"{label} was not saved yet","serverError\
1369
+ .secret.notReadyToResume":"this credential request is not ready to resume","serverError.secret.noLongerConfigured":"{label} is no longer configured","serverError.department.moveChiefConflict":"A department can have only one Chief of Staff. Change the Chief before moving this bot.","serverError.department.membershipChanged":"Department membership changed. Reopen the dialog and try again.","serverError.mcp.addressAsText":"Send the MCP server address as text.","serverError.mcp.addressChanged":"The \
1370
+ MCP server address changed. Reload the server and try again.","serverError.attachment.alreadyInMessage":"This file is already in a message, so it stays.","serverError.engine.signedOut":"{name} is signed out.","serverError.bot.viewOnly":"You can view {bot}, not chat with it.","serverError.secret.mailboxAlreadyConnected":"this mailbox was already connected","serverError.secret.emailAndPassword":"Enter your email address and its password.","serverError.secret.emailUnavailable":"Email can't be conne\
1371
+ cted here.","serverError.mailbox.adminOnly":"Only the owner or an admin can manage the mailboxes.","serverError.mailbox.addressAndPassword":"Enter your email address and password.","serverError.mailbox.outgoingFields":"Check the outgoing server: a name like mail.example.com, a port from 1 to 65535, and SSL/TLS or STARTTLS.","serverError.voice.fishKeyRequired":"Add a Fish Audio key in Settings \u2192 API keys to talk to your bots here.","serverError.voice.fishTranscribeConnection":"Couldn't reach\
1372
+ Fish Audio to hear you \u2014 check your connection.","serverError.file.tooLarge":"This file is {size}, over the {limit} limit for opening files from chat. The file itself is still saved as {name}."};var BOT_PROFILE_LIMITS={name:100,title:200,description:4e3,voice:200,soul:24e3};function fitsOnOneLine(value){for(let i=0;i<value.length;i+=1){let code=value.charCodeAt(i);if(code<32||code>=127&&code<=159||code===8232||code===8233)return!1}return!0}var REPLY_STYLES=["default","conversational"];var MASCOT_BODY_IDS=["cursor","blob","circle","squircle","capsule","drop","shield","hexagon","diamond","star"],mascotBodySchema=external_exports.enum(MASCOT_BODY_IDS);var HALLOWEEN_BODY_IDS=["pumpkin","ghost","witch","bat","cat","skull","monster","mummy","vampire","spider"],DIWALI_BODY_IDS=["rocket","anaar","chakri","sparkler","bomb","laddu","chakli","jalebi","katli","karanji"],CARVED_BODY_IDS=[...HALLOWEEN_BODY_IDS,...DIWALI_BODY_IDS];var BOT_BODY_IDS=[...MASCOT_BODY_IDS,...CARVED_BODY_IDS],botBodySchema=external_exports.enum(BOT_BODY_IDS);var festival=(bodies,costumes)=>({bodies,costumes}),FESTIVALS={halloween:festival(HALLOWEEN_BODY_IDS,{orange:"pumpkin",purple:"ghost",teal:"witch",red:"bat",blue:"cat",cyan:"skull",green:"monster",yellow:"mummy",coral:"vampire",pink:"spider"}),diwali:festival(DIWALI_BODY_IDS,{orange:"laddu",purple:"chakri",teal:"karanji",red:"rocket",blue:"bomb",cyan:"chakli",green:"anaar",yellow:"katli",coral:"jalebi",pink:"sparkler"})},FESTIVAL_IDS=Object.keys(FESTIVALS);var profilePatchSchema=external_exports.object({name:external_exports.string({error:"name must be a string"}).max(BOT_PROFILE_LIMITS.name,{error:"name must be at most 100 characters"}).refine(value=>!!value.trim(),{error:"name must not be empty"}).refine(fitsOnOneLine,{error:"name must fit on one line"}).optional(),title:external_exports.string({error:"title must be a string"}).max(BOT_PROFILE_LIMITS.title,{error:"title must be at most 200 characters"}).refine(fitsOnOneLine,{error:"title must fi\
1372
1373
  t on one line"}).optional(),description:external_exports.string({error:"description must be a string"}).max(BOT_PROFILE_LIMITS.description,{error:"description must be at most 4000 characters"}).optional(),soul:external_exports.string({error:"soul must be a string"}).refine(value=>Buffer.byteLength(value,"utf8")<=BOT_PROFILE_LIMITS.soul,{error:"standing instructions must be at most 24000 bytes"}).optional(),notifications:external_exports.boolean({error:"notifications must be true or false"}).optional(),
1373
1374
  avatarUrl:external_exports.union([botAvatarUrlSchema,external_exports.literal(""),external_exports.null()],{error:"avatarUrl must be a stored PNG, JPEG, GIF, or WebP attachment"}).optional(),avatarCrop:botAvatarCropSchema.optional(),avatarZoom:external_exports.number({error:"avatarZoom must be a number from 1 to 3"}).finite().min(AVATAR_ZOOM_MIN).max(AVATAR_ZOOM_MAX).optional(),avatarFocusX:external_exports.number({error:"avatarFocusX must be a number from 0 to 1"}).finite().min(0).max(1).optional(),
1374
1375
  avatarFocusY:external_exports.number({error:"avatarFocusY must be a number from 0 to 1"}).finite().min(0).max(1).optional(),mascotBody:botBodySchema.optional(),mascotFaceColor:mascotFaceColorSchema.nullable().optional(),voice:external_exports.string({error:"voice must be a string"}).max(BOT_PROFILE_LIMITS.voice,{error:"voice must be at most 200 characters"}).optional(),speakReplies:external_exports.boolean({error:"speakReplies must be true or false"}).optional(),replyStyle:external_exports.enum(