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.
- package/dist/assets/{ActivityPanel-COfO9kz3.js → ActivityPanel-D2qDgfNj.js} +1 -1
- package/dist/assets/{App-XogBV-zY.js → App-DVlUATuq.js} +10 -10
- package/dist/assets/{AppEventEditor-BDUGn9JQ.js → AppEventEditor-CmS34S85.js} +1 -1
- package/dist/assets/{BotSettingsDialog-B-QQjKGU.js → BotSettingsDialog-BY263Hpx.js} +1 -1
- package/dist/assets/{BrowserPanel-gpGgHms3.js → BrowserPanel-DLVH7EJz.js} +3 -3
- package/dist/assets/{BrowserProfilesManager-y_0rgxx6.js → BrowserProfilesManager-D3g9wElR.js} +1 -1
- package/dist/assets/{CloudAddDialog-ilsQ68Qb.js → CloudAddDialog-DPjSxdZe.js} +1 -1
- package/dist/assets/{ComputerFilesPane-oPSU8cF_.js → ComputerFilesPane-CIPgFHiZ.js} +1 -1
- package/dist/assets/{ComputerPanel-BPp3YoQQ.js → ComputerPanel-DKZ15Lrh.js} +2 -2
- package/dist/assets/{DataPanel-C_HhHiX2.js → DataPanel-DkAmUHzs.js} +1 -1
- package/dist/assets/{DesktopViewer-DQLJ65-k.js → DesktopViewer-DHpPKouz.js} +1 -1
- package/dist/assets/{GrokMoveDialog-KAfEBP8T.js → GrokMoveDialog-CgvM91-Q.js} +1 -1
- package/dist/assets/{InspectorPanel-CZlQbHob.js → InspectorPanel-CaqVaz-4.js} +1 -1
- package/dist/assets/{KeyboardShortcutsModal-jVso0auj.js → KeyboardShortcutsModal-CFccCEn6.js} +1 -1
- package/dist/assets/{LimixResizeHandles-kWhVXgUg.js → LimixResizeHandles-B05qQGL-.js} +1 -1
- package/dist/assets/{LiveDesktop-BVNJPX_h.js → LiveDesktop-Bmf7e4Tu.js} +1 -1
- package/dist/assets/{LocalVmWorkspace-B-10kwYn.js → LocalVmWorkspace-B3bDhQ9N.js} +1 -1
- package/dist/assets/{MacLocalControl-BQlB6oNZ.js → MacLocalControl-D8SRatvL.js} +1 -1
- package/dist/assets/{MarkdownFilePreview-CKDCxBAx.js → MarkdownFilePreview-C9mfh0mo.js} +1 -1
- package/dist/assets/{MenuMotion-DnZ3mfiD.js → MenuMotion-DuXPPcvo.js} +1 -1
- package/dist/assets/{NewBotDialog-DCt1ND3t.js → NewBotDialog-CLFDLsS2.js} +1 -1
- package/dist/assets/{PhoneAppDialog-DQ9V4p_V.js → PhoneAppDialog-DnUaN-Fw.js} +1 -1
- package/dist/assets/{PlacesRail-BBWcVP0k.js → PlacesRail-BJ-bXfSa.js} +1 -1
- package/dist/assets/{PluginsPanel-Br_6z80C.js → PluginsPanel-BZBrWQa4.js} +1 -1
- package/dist/assets/{ProIntroduction-CPyFbdnM.js → ProIntroduction-CKjldFF7.js} +1 -1
- package/dist/assets/{RemoteAgentSettingsPanel-CU-TIrOi.js → RemoteAgentSettingsPanel-DR-uywnp.js} +1 -1
- package/dist/assets/{RoomPanel-DaUBFxP4.js → RoomPanel-DziKRgaS.js} +1 -1
- package/dist/assets/{RoutinesPage-C91dSD_m.js → RoutinesPage-BCXo72z8.js} +1 -1
- package/dist/assets/{SettingsModal-DbfAt-F4.js → SettingsModal-B6gPauoi.js} +1 -1
- package/dist/assets/{ShareTeamDialog-BZlRFRFD.js → ShareTeamDialog-poRrRYw-.js} +1 -1
- package/dist/assets/{SignedInSites-DZTRiBI3.js → SignedInSites-CRn_yDkj.js} +1 -1
- package/dist/assets/{TeamLibraryPanel-C7fsWV2G.js → TeamLibraryPanel-xD4xGcM6.js} +1 -1
- package/dist/assets/{TeamMapPage-DmhWrV6j.js → TeamMapPage-BRw5VmSq.js} +1 -1
- package/dist/assets/{TriggersPage-DFyo9nf6.js → TriggersPage-C1ZtmBq8.js} +1 -1
- package/dist/assets/{VisibilitySection-DNI6SJel.js → VisibilitySection-C9airA4D.js} +1 -1
- package/dist/assets/{WebhookTrigger-tAdGlws5.js → WebhookTrigger-zYpN5d7o.js} +1 -1
- package/dist/assets/{WorksOnGrid-BT5vH_EO.js → WorksOnGrid-KJ3p-nHy.js} +1 -1
- package/dist/assets/{abnfDiagram-YUKMZFIV-Ce8eTiWW.js → abnfDiagram-YUKMZFIV-CSHaWbId.js} +1 -1
- package/dist/assets/{activity--SWQgP4n.js → activity-B-rv6SH8.js} +1 -1
- package/dist/assets/{architectureDiagram-47P4ROYG-uK5gzFcN.js → architectureDiagram-47P4ROYG-Ck3N_K_O.js} +1 -1
- package/dist/assets/{blockDiagram-E7TT5TSB-h0sJ21LK.js → blockDiagram-E7TT5TSB-pBM7maMq.js} +1 -1
- package/dist/assets/{c4Diagram-CRA5TL53-D6FSuQ4K.js → c4Diagram-CRA5TL53-Bf-p0I8b.js} +1 -1
- package/dist/assets/{calendar-days-DitBJQ7q.js → calendar-days-CHQoR3I7.js} +1 -1
- package/dist/assets/channel-COvC08kf.js +1 -0
- package/dist/assets/{chunk-2Q5K7J3B-uToClUtI.js → chunk-2Q5K7J3B-DlQOtOaL.js} +1 -1
- package/dist/assets/{chunk-5VM5RSS4-D-aGvVMe.js → chunk-5VM5RSS4-CiOX0aHl.js} +1 -1
- package/dist/assets/{chunk-7TKQ45FW-BLunZGXD.js → chunk-7TKQ45FW-BTushWZv.js} +1 -1
- package/dist/assets/{chunk-AW2ZBBNX-CNTLlxEl.js → chunk-AW2ZBBNX-aJ3nOFgT.js} +1 -1
- package/dist/assets/{chunk-FVRAUYC3-DjOBV8XJ.js → chunk-FVRAUYC3-CyeNqn_N.js} +2 -2
- package/dist/assets/{chunk-HTAEGDNF-lPxF8CJg.js → chunk-HTAEGDNF-P55CSFqg.js} +1 -1
- package/dist/assets/{chunk-JWPE2WC7-De4B0D7D.js → chunk-JWPE2WC7-BhrD2ioJ.js} +1 -1
- package/dist/assets/{chunk-KQW6MTUR-cx8qFIBr.js → chunk-KQW6MTUR-BDxkLHse.js} +1 -1
- package/dist/assets/{chunk-XXDRQBXY-BUeyVkn0.js → chunk-XXDRQBXY-BPP3938f.js} +1 -1
- package/dist/assets/{classDiagram-v2-K4WV4PDN-dK4st9xs.js → classDiagram-v2-K4WV4PDN-BZbKyiCn.js} +1 -1
- package/dist/assets/{coins-MJbwpEBq.js → coins-C9XJU_4V.js} +1 -1
- package/dist/assets/{core-BAGxQvVI.js → core-BUwTlq4P.js} +1 -1
- package/dist/assets/{cose-bilkent-JH36ORCC-jCX-7UJX.js → cose-bilkent-JH36ORCC-C7d1E0jy.js} +1 -1
- package/dist/assets/{cynefin-EF2NZ3EQ-CP2d7lx5.js → cynefin-EF2NZ3EQ-Dpnrpxzf.js} +1 -1
- package/dist/assets/{cynefinDiagram-3GCD6N5R-FY_TCIwN.js → cynefinDiagram-3GCD6N5R-1qGYRFwt.js} +1 -1
- package/dist/assets/{dagre-W4DXFKR2-BWXmKLRg.js → dagre-W4DXFKR2-DSfoACwc.js} +1 -1
- package/dist/assets/{diagram-2UJZ2QOL-CHEKJ_l4.js → diagram-2UJZ2QOL-Dr3i5W8y.js} +1 -1
- package/dist/assets/{diagram-OVF4WLC6-DCb8-TQG.js → diagram-OVF4WLC6-Kp35HPdA.js} +1 -1
- package/dist/assets/{diagram-PFPMY2P6-CIYmKBh5.js → diagram-PFPMY2P6-CjlhrI6Z.js} +1 -1
- package/dist/assets/{diagram-UMYRVEAY-9NdqhGVc.js → diagram-UMYRVEAY-DTW5ZRM1.js} +1 -1
- package/dist/assets/{diagram-YEKJPTXX-C3J9AGvJ.js → diagram-YEKJPTXX-m5Lo1ObV.js} +1 -1
- package/dist/assets/{diagram-ZIFT7M5P-BTWPaT48.js → diagram-ZIFT7M5P-D5C5w_He.js} +1 -1
- package/dist/assets/{ebnfDiagram-VR2GEFS7-6PXFyzKG.js → ebnfDiagram-VR2GEFS7-C-d31ZAB.js} +1 -1
- package/dist/assets/{elk-IJKZMXRS-Kyo_ClKD.js → elk-IJKZMXRS-Bp6SD_1S.js} +1 -1
- package/dist/assets/{erDiagram-O2IAPWRE-CY6f4L3d.js → erDiagram-O2IAPWRE-B2JhynZv.js} +1 -1
- package/dist/assets/{file-up-q6N1oToi.js → file-up-C1s0CBrI.js} +1 -1
- package/dist/assets/{flowDiagram-OXPTDLAJ-CIyEI3gW.js → flowDiagram-OXPTDLAJ-DeWXJ4_K.js} +1 -1
- package/dist/assets/{ganttDiagram-R7TSEDQI-0uDsU0zP.js → ganttDiagram-R7TSEDQI-CEqLhR3V.js} +1 -1
- package/dist/assets/{gitGraphDiagram-XJZIOB7I-C8WgSPMm.js → gitGraphDiagram-XJZIOB7I-BSgcVYrZ.js} +1 -1
- package/dist/assets/{import-name-BiqwUM8m.js → import-name-DbblQVDB.js} +1 -1
- package/dist/assets/{index-m7zGNgrr.js → index-CZOD-N3O.js} +3 -3
- package/dist/assets/{index-Bxu5GjYs.js → index-D4gkCUyb.js} +1 -1
- package/dist/assets/{infoDiagram-5W2HQ5XZ-vfG8gNz3.js → infoDiagram-5W2HQ5XZ-BLfUURj8.js} +1 -1
- package/dist/assets/{ishikawaDiagram-K3B6WC7H-kDpcmOkz.js → ishikawaDiagram-K3B6WC7H-CrNMsTRP.js} +1 -1
- package/dist/assets/{journeyDiagram-COXZFDF6-CNQ1ns0p.js → journeyDiagram-COXZFDF6-CzPPBwy1.js} +1 -1
- package/dist/assets/{kanban-definition-P3RFRI5V-b7Gw39SF.js → kanban-definition-P3RFRI5V-andT-HRd.js} +1 -1
- package/dist/assets/{mermaid.core-B76WO5rM.js → mermaid.core-BwghuPvM.js} +4 -4
- package/dist/assets/{mindmap-definition-LZFPQGKD-DtR2Z2_c.js → mindmap-definition-LZFPQGKD-DZLJJqER.js} +1 -1
- package/dist/assets/{minimize-L5w7-dGg.js → minimize-CyN9vCVh.js} +1 -1
- package/dist/assets/{monitor-CTZE2syc.js → monitor-rsXvQAT7.js} +1 -1
- package/dist/assets/{new-bot-DU60NyAZ.js → new-bot-CrUATi6Y.js} +1 -1
- package/dist/assets/{org-library-a2la24O2.js → org-library-DMy-TMqt.js} +1 -1
- package/dist/assets/{package-format-Dg1ECWML.js → package-format-DxsHLDfa.js} +1 -1
- package/dist/assets/{pegDiagram-BGZESJAR-DyOa8O_6.js → pegDiagram-BGZESJAR-Ag5ieNd4.js} +1 -1
- package/dist/assets/{pieDiagram-CAPJLFHJ-CWaMQ0jL.js → pieDiagram-CAPJLFHJ-BEKrcMMG.js} +1 -1
- package/dist/assets/{quadrantDiagram-GDMTTRAM-WW31d2Mf.js → quadrantDiagram-GDMTTRAM-5NrUzt7G.js} +1 -1
- package/dist/assets/{rail-pvuszcdm.js → rail-BEuN4gG8.js} +1 -1
- package/dist/assets/{railroadDiagram-SM67HX2B-DqD_8LgC.js → railroadDiagram-SM67HX2B-BQUI7-8z.js} +1 -1
- package/dist/assets/{remote-desktop-panel-DxjQVZ3G.js → remote-desktop-panel-DCwNJ1YY.js} +1 -1
- package/dist/assets/{requirementDiagram-X7JNWC4A-BbpAELLg.js → requirementDiagram-X7JNWC4A-DJizyC_R.js} +1 -1
- package/dist/assets/{sankeyDiagram-UM26HJRW-DfhCSit0.js → sankeyDiagram-UM26HJRW-BDQyU8Wh.js} +1 -1
- package/dist/assets/{sequenceDiagram-ZO4K6R2Y-BWx6HNt_.js → sequenceDiagram-ZO4K6R2Y-BTaigEFp.js} +1 -1
- package/dist/assets/{sizeCapture-INFHLROL-9Z9mWyEZ.js → sizeCapture-INFHLROL-J__bNJvX.js} +1 -1
- package/dist/assets/{stateDiagram-v2-TBUQTH76-C7wdnY0H.js → stateDiagram-v2-TBUQTH76-CKOTLRyo.js} +1 -1
- package/dist/assets/{styles-DW6_pSlc.js → styles-XkQHO_MZ.js} +1 -1
- package/dist/assets/{swimlanes-N4OXWK64-BdAVZ2Mp.js → swimlanes-N4OXWK64-DPAhFVMp.js} +1 -1
- package/dist/assets/swimlanesDiagram-K3J5GTZL-BRiVojk7.js +8 -0
- package/dist/assets/{team-share-CjdhSquW.js → team-share-BqhAEQhI.js} +1 -1
- package/dist/assets/{timeline-definition-YOQAKGHF-C5RyxpFL.js → timeline-definition-YOQAKGHF-CUrEL6lo.js} +1 -1
- package/dist/assets/{usecaseDiagram-VIAY4XPW-CLx4IMzT.js → usecaseDiagram-VIAY4XPW-DdD_FmQL.js} +1 -1
- package/dist/assets/{vennDiagram-BLWOH2XV-CDdYuSAc.js → vennDiagram-BLWOH2XV-i8yTvYzp.js} +1 -1
- package/dist/assets/{vi-CND2A7To.js → vi-Ck4CHn3q.js} +1 -1
- package/dist/assets/{wardleyDiagram-YMQ3BMBF-KxnUFn7x.js → wardleyDiagram-YMQ3BMBF-CK5DR3ZK.js} +1 -1
- package/dist/assets/{xychartDiagram-TAQBALBS-DzqYm7Vb.js → xychartDiagram-TAQBALBS-BvUrUg5I.js} +1 -1
- package/dist/index.html +2 -2
- package/dist/rail.html +4 -4
- package/dist-server/cloud-home-start.js +21 -20
- package/dist-server/container-mcp.js +21 -20
- package/dist-server/index.js +2603 -2573
- package/dist-server/limixbot.js +21 -21
- package/dist-server/package.json +1 -1
- package/dist-server/pair-cli.js +21 -21
- package/dist-server/server/browser/viewers/live-v1.js +3 -4
- package/dist-server/server/browser-live.js +29 -14
- package/dist-server/server/index.js +83 -20
- package/dist-server/server/plugin-hub.js +2 -0
- package/dist-server/server/routes/bot-messages.js +19 -18
- package/dist-server/server/steer-queue.js +22 -10
- package/dist-server/server/user-errors.js +2 -0
- package/dist-server/server/workspace-read.js +276 -0
- package/dist-server/shared/mcp-name.js +1 -0
- package/dist-server/vps-container-mcp.js +21 -20
- package/dist-server/workspace-backup.worker.js +22 -22
- package/package.json +1 -1
- package/dist/assets/channel-DXsnTIKn.js +0 -1
- package/dist/assets/swimlanesDiagram-K3J5GTZL-BpuCUF0j.js +0 -8
package/dist-server/limixbot.js
CHANGED
|
@@ -29,27 +29,27 @@ Error.owner.unavailable":"One or more bots are unavailable.","serverError.bot.mi
|
|
|
29
29
|
department.renameBusy":"Stop this department's active work before renaming it","serverError.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 \
|
|
30
30
|
the folder that contains it: {path}","serverError.setup.noTools":"This bot's AI can't set it 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":"Thi\
|
|
31
31
|
s chat has already started. Type /setup and what you'd like this bot to do.","serverError.setup.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.time\
|
|
32
|
-
out":"{name} didn't answer within {seconds} seconds.","serverError.request.bodyTimeout":"The 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.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
{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.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
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
|
|
46
|
-
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.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
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
|
|
52
|
-
} limit for opening files from chat. The file itself is still saved as {name}."}}});function isSecretName(name){let lower=name.toLowerCase();return lower==="omb_gate_upstream"||lower==="omb_remote_mcp_server"||lower.startsWith("omb_remote_mcp_config_")||SECRET_KEY_PARTS.some(part=>lower.includes(part))?!0:/(^|[_.-])keys?$/.test(lower)}function redactSecrets(input2,depth=0){if(typeof input2=="string")return redactSecretsInText(input2);if(depth>12||input2===null||typeof input2!="object")return input2;if(Array.isArray(input2))return input2.map(item=>{if(item!==null&&typeof item=="\
|
|
32
|
+
out":"{name} didn't answer within {seconds} seconds.","serverError.request.bodyTimeout":"The 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 disco\
|
|
33
|
+
nnected.","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 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":"\
|
|
34
|
+
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 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.siteNotAns\
|
|
35
|
+
wering":"{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 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 \
|
|
36
|
+
{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 connection and try again.","serverError.install.unsafeArchive":"The archive contains an unexpected or unsafe file. Nothing was installed.","serverError.install.unsafeFile":"The {name} downlo\
|
|
37
|
+
ad 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 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 {mega\
|
|
38
|
+
bytes} 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 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\
|
|
39
|
+
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.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.s\
|
|
40
|
+
ettingsCard":"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 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.not\
|
|
41
|
+
KeptSafely":"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","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\
|
|
42
|
+
.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 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","serverErro\
|
|
43
|
+
r.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 your Postiz server's address, starting with https://.","serverError.postiz.addressNoCredentials":"Leave any user name or password out of the Postiz address.","serverError.postiz.addr\
|
|
44
|
+
essNoQuery":"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.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 mo\
|
|
45
|
+
ment.","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":"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 v\
|
|
46
|
+
alid 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 servers only.","serverError.instance.defaultModelRemoved":"{model} is the default model. Choose another default model before removing it from this server.","serverError.mcp.personalH\
|
|
47
|
+
eadersShared":"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.","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 en\
|
|
48
|
+
ter 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 being saved from a phone","serverError.secret.credentialDismissed":"this credential request was dismissed","serverError.secret.credentialSuperseded":"this credential request was supe\
|
|
49
|
+
rseded 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 one Chief of Staff. Change the Chief before moving this bot.","serverError.department.membershipChanged":"Department membership changed. Reopen the dialog and try again.","serverError.\
|
|
50
|
+
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.bot.viewOnly":"You can view {bot}, not chat with it.","serverError.secret.mailboxAlreadyConnected":"this mailbox was already connected","serverError.secret.emailAndPassword":"Enter y\
|
|
51
|
+
our 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":"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 ke\
|
|
52
|
+
ys 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}."}}});function isSecretName(name){let lower=name.toLowerCase();return lower==="omb_gate_upstream"||lower==="omb_remote_mcp_server"||lower.startsWith("omb_remote_mcp_config_")||SECRET_KEY_PARTS.some(part=>lower.includes(part))?!0:/(^|[_.-])keys?$/.test(lower)}function redactSecrets(input2,depth=0){if(typeof input2=="string")return redactSecretsInText(input2);if(depth>12||input2===null||typeof input2!="object")return input2;if(Array.isArray(input2))return input2.map(item=>{if(item!==null&&typeof item=="\
|
|
53
53
|
object"&&!Array.isArray(item)&&typeof item.name=="string"&&typeof item.value=="string"){let entry=item;return isSecretName(entry.name)?{...entry,value:mask(entry.value)}:{...entry,value:redactSecretsInText(entry.value)}}return redactSecrets(item,depth+1)});let out={};for(let[key2,value]of Object.entries(input2)){if(typeof value=="string"&&isSecretName(key2)){out[key2]=mask(value);continue}out[key2]=redactSecrets(value,depth+1)}return out}var SECRET_KEY_PARTS,init_redact2=__esm({"server/redact.ts"(){
|
|
54
54
|
"use strict";init_redact();init_redact();SECRET_KEY_PARTS=["token","secret","password","passwd","apikey","api_key","authorization","auth_token"]}});var init_usage_attribution=__esm({"server/usage-attribution.ts"(){"use strict"}});var init_prices=__esm({"server/prices.ts"(){"use strict"}});function monthKey(at2){return`${at2.getUTCFullYear()}-${String(at2.getUTCMonth()+1).padStart(2,"0")}`}var DAY_MS,init_usage_ledger=__esm({"server/usage-ledger.ts"(){"use strict";init_usage_attribution();init_prices();DAY_MS=1440*6e4}});import{AsyncLocalStorage}from"node:async_hooks";import{appendFile,mkdir,readdir,stat,unlink}from"node:fs/promises";import{basename,join}from"node:path";function bindDecisionRetention(provider){retentionDays=provider}function boundRetentionDays(){return retentionDays()}function decisionRetentionDays(configured,env=process.env){let fromEnv=env.OMB_DECISION_RETENTION_DAYS?.trim(),parsed=fromEnv?Number(fromEnv):NaN;return Number.isInteger(parsed)&&parsed>=1&&parsed<=MAX_DECISION_RETENTION_DAYS?parsed:
|
|
55
55
|
typeof configured=="number"&&Number.isInteger(configured)&&configured>=1&&configured<=MAX_DECISION_RETENTION_DAYS?configured:DEFAULT_DECISION_RETENTION_DAYS}function decisionFileFor(dataDir,at2){return join(dataDir,DIR,`${monthKey(at2)}.ndjson`)}async function writeDecision(dataDir,record12){let at2=new Date(record12.at);await mkdir(join(dataDir,DIR),{recursive:!0,mode:448}),await appendFile(decisionFileFor(dataDir,at2),JSON.stringify(record12)+`
|
package/dist-server/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"0.3.
|
|
1
|
+
{"type":"module","version":"0.3.141"}
|
package/dist-server/pair-cli.js
CHANGED
|
@@ -29,27 +29,27 @@ Error.owner.unavailable":"One or more bots are unavailable.","serverError.bot.mi
|
|
|
29
29
|
department.renameBusy":"Stop this department's active work before renaming it","serverError.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 \
|
|
30
30
|
the folder that contains it: {path}","serverError.setup.noTools":"This bot's AI can't set it 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":"Thi\
|
|
31
31
|
s chat has already started. Type /setup and what you'd like this bot to do.","serverError.setup.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.time\
|
|
32
|
-
out":"{name} didn't answer within {seconds} seconds.","serverError.request.bodyTimeout":"The 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.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
{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.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
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
|
|
46
|
-
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.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
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
|
|
52
|
-
} limit for opening files from chat. The file itself is still saved as {name}."}}});function isSecretName(name){let lower=name.toLowerCase();return lower==="omb_gate_upstream"||lower==="omb_remote_mcp_server"||lower.startsWith("omb_remote_mcp_config_")||SECRET_KEY_PARTS.some(part=>lower.includes(part))?!0:/(^|[_.-])keys?$/.test(lower)}function redactSecrets(input2,depth=0){if(typeof input2=="string")return redactSecretsInText(input2);if(depth>12||input2===null||typeof input2!="object")return input2;if(Array.isArray(input2))return input2.map(item=>{if(item!==null&&typeof item=="\
|
|
32
|
+
out":"{name} didn't answer within {seconds} seconds.","serverError.request.bodyTimeout":"The 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 disco\
|
|
33
|
+
nnected.","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 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":"\
|
|
34
|
+
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 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.siteNotAns\
|
|
35
|
+
wering":"{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 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 \
|
|
36
|
+
{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 connection and try again.","serverError.install.unsafeArchive":"The archive contains an unexpected or unsafe file. Nothing was installed.","serverError.install.unsafeFile":"The {name} downlo\
|
|
37
|
+
ad 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 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 {mega\
|
|
38
|
+
bytes} 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 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\
|
|
39
|
+
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.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.s\
|
|
40
|
+
ettingsCard":"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 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.not\
|
|
41
|
+
KeptSafely":"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","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\
|
|
42
|
+
.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 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","serverErro\
|
|
43
|
+
r.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 your Postiz server's address, starting with https://.","serverError.postiz.addressNoCredentials":"Leave any user name or password out of the Postiz address.","serverError.postiz.addr\
|
|
44
|
+
essNoQuery":"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.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 mo\
|
|
45
|
+
ment.","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":"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 v\
|
|
46
|
+
alid 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 servers only.","serverError.instance.defaultModelRemoved":"{model} is the default model. Choose another default model before removing it from this server.","serverError.mcp.personalH\
|
|
47
|
+
eadersShared":"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.","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 en\
|
|
48
|
+
ter 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 being saved from a phone","serverError.secret.credentialDismissed":"this credential request was dismissed","serverError.secret.credentialSuperseded":"this credential request was supe\
|
|
49
|
+
rseded 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 one Chief of Staff. Change the Chief before moving this bot.","serverError.department.membershipChanged":"Department membership changed. Reopen the dialog and try again.","serverError.\
|
|
50
|
+
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.bot.viewOnly":"You can view {bot}, not chat with it.","serverError.secret.mailboxAlreadyConnected":"this mailbox was already connected","serverError.secret.emailAndPassword":"Enter y\
|
|
51
|
+
our 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":"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 ke\
|
|
52
|
+
ys 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}."}}});function isSecretName(name){let lower=name.toLowerCase();return lower==="omb_gate_upstream"||lower==="omb_remote_mcp_server"||lower.startsWith("omb_remote_mcp_config_")||SECRET_KEY_PARTS.some(part=>lower.includes(part))?!0:/(^|[_.-])keys?$/.test(lower)}function redactSecrets(input2,depth=0){if(typeof input2=="string")return redactSecretsInText(input2);if(depth>12||input2===null||typeof input2!="object")return input2;if(Array.isArray(input2))return input2.map(item=>{if(item!==null&&typeof item=="\
|
|
53
53
|
object"&&!Array.isArray(item)&&typeof item.name=="string"&&typeof item.value=="string"){let entry=item;return isSecretName(entry.name)?{...entry,value:mask(entry.value)}:{...entry,value:redactSecretsInText(entry.value)}}return redactSecrets(item,depth+1)});let out={};for(let[key2,value]of Object.entries(input2)){if(typeof value=="string"&&isSecretName(key2)){out[key2]=mask(value);continue}out[key2]=redactSecrets(value,depth+1)}return out}var SECRET_KEY_PARTS,init_redact2=__esm({"server/redact.ts"(){
|
|
54
54
|
"use strict";init_redact();init_redact();SECRET_KEY_PARTS=["token","secret","password","passwd","apikey","api_key","authorization","auth_token"]}});var init_usage_attribution=__esm({"server/usage-attribution.ts"(){"use strict"}});var init_prices=__esm({"server/prices.ts"(){"use strict"}});function monthKey(at2){return`${at2.getUTCFullYear()}-${String(at2.getUTCMonth()+1).padStart(2,"0")}`}var DAY_MS,init_usage_ledger=__esm({"server/usage-ledger.ts"(){"use strict";init_usage_attribution();init_prices();DAY_MS=1440*6e4}});import{AsyncLocalStorage}from"node:async_hooks";import{appendFile,mkdir,readdir,stat,unlink}from"node:fs/promises";import{basename,join}from"node:path";function bindDecisionRetention(provider){retentionDays=provider}function boundRetentionDays(){return retentionDays()}function decisionRetentionDays(configured,env=process.env){let fromEnv=env.OMB_DECISION_RETENTION_DAYS?.trim(),parsed=fromEnv?Number(fromEnv):NaN;return Number.isInteger(parsed)&&parsed>=1&&parsed<=MAX_DECISION_RETENTION_DAYS?parsed:
|
|
55
55
|
typeof configured=="number"&&Number.isInteger(configured)&&configured>=1&&configured<=MAX_DECISION_RETENTION_DAYS?configured:DEFAULT_DECISION_RETENTION_DAYS}function decisionFileFor(dataDir,at2){return join(dataDir,DIR,`${monthKey(at2)}.ndjson`)}async function writeDecision(dataDir,record12){let at2=new Date(record12.at);await mkdir(join(dataDir,DIR),{recursive:!0,mode:448}),await appendFile(decisionFileFor(dataDir,at2),JSON.stringify(record12)+`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BROWSER_HELD_ELSEWHERE } from "../../../shared/browser-held.js";
|
|
2
|
-
import { BROWSER_ASLEEP_ERROR, BROWSER_WAITING, BrowserLiveError, parseBrowserLiveAction } from "../../browser-live.js";
|
|
2
|
+
import { BROWSER_ASLEEP_ERROR, BROWSER_STREAM_DISCONNECTED, BROWSER_WAITING, BrowserLiveError, browserRestartNeeded, parseBrowserLiveAction } from "../../browser-live.js";
|
|
3
3
|
const MAX_FRAME = 3 * 1024 * 1024;
|
|
4
4
|
const MAX_BUFFER = 4 * 1024 * 1024;
|
|
5
5
|
const HEARTBEAT_MS = 10_000;
|
|
@@ -9,7 +9,6 @@ const VIEWERS_PER_SESSION = 2;
|
|
|
9
9
|
const LO_TIER = { maxWidth: 1280, maxHeight: 1280, quality: 70 };
|
|
10
10
|
/** A start this slow (a first Chrome download) tells the viewer it waits, as a busy browser did. */
|
|
11
11
|
const WAITING_AFTER_MS = 5_000;
|
|
12
|
-
const RESTART_NEEDED = "A browser action was interrupted. Choose Restart browser… in the browser menu before continuing.";
|
|
13
12
|
/** An address a viewer may show: a web page's, never its credentials. */
|
|
14
13
|
export function displayUrl(value) {
|
|
15
14
|
if (typeof value !== "string" || value.length > 8192)
|
|
@@ -141,7 +140,7 @@ export class LiveV1 {
|
|
|
141
140
|
return;
|
|
142
141
|
case "gone":
|
|
143
142
|
if (!viewer.restarting) {
|
|
144
|
-
this.#send(viewer,
|
|
143
|
+
this.#send(viewer, BROWSER_STREAM_DISCONNECTED);
|
|
145
144
|
this.#close(viewer);
|
|
146
145
|
}
|
|
147
146
|
return;
|
|
@@ -248,7 +247,7 @@ export class LiveV1 {
|
|
|
248
247
|
const holder = this.#service.heldBy(viewer.session);
|
|
249
248
|
if (holder && holder !== viewer.person)
|
|
250
249
|
return new BrowserLiveError(BROWSER_HELD_ELSEWHERE, 409);
|
|
251
|
-
return
|
|
250
|
+
return this.#service.interrupted(viewer.session) ? browserRestartNeeded() : new BrowserLiveError(otherwise, 409);
|
|
252
251
|
}
|
|
253
252
|
async action({ viewerId, botId, owner, body }) {
|
|
254
253
|
const viewer = this.#viewers.get(viewerId);
|
|
@@ -21,7 +21,6 @@ const BUSY_RETRY_MS = [1_000, 2_000, 5_000];
|
|
|
21
21
|
const BUSY_LIMIT_MS = 10 * 60_000;
|
|
22
22
|
// agent-browser's native press resolver supplies the virtual key codes and Enter/Tab text its raw input_keyboard relay omits.
|
|
23
23
|
const DISCRETE_KEYS = new Set(["Backspace", "Enter", "Tab", "Escape", "Delete", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"]);
|
|
24
|
-
const RESTART_NEEDED = "A browser action was interrupted. Choose Restart browser… in the browser menu before continuing.";
|
|
25
24
|
const restartedNote = (keepsSignIns) => `The page stopped responding, so the browser was restarted. ${keepsSignIns ? "Your sign-ins are kept; open" : "It is a temporary browser, so its sign-ins are gone; open"} the page again.`;
|
|
26
25
|
const INPUT_RELAY = { timeoutMs: 30_000, maxBytes: 65_536 };
|
|
27
26
|
/** Frames a view may have on its way without acknowledging them: over a slow link one acknowledgement round trip per frame
|
|
@@ -34,10 +33,16 @@ const ENDED_PROBE = { timeoutMs: 5_000, maxBytes: 65_536 };
|
|
|
34
33
|
export const BROWSER_ASLEEP_ERROR = { type: "error", retryable: false, asleep: true, message: "This browser closed after it sat unused, to save memory. Reconnect to open it again." };
|
|
35
34
|
/** What a view hears while its browser cannot show it yet; it keeps waiting. */
|
|
36
35
|
export const BROWSER_WAITING = { type: "waiting", reason: "busy" };
|
|
36
|
+
const streamDisconnected = userError("serverError.browser.streamDisconnected");
|
|
37
|
+
export const BROWSER_STREAM_DISCONNECTED = { type: "error", retryable: true, message: streamDisconnected.error, ...userErrorFields(streamDisconnected) };
|
|
37
38
|
export class BrowserLiveError extends Error {
|
|
38
39
|
status;
|
|
39
40
|
constructor(message, status = 400) { super(message); this.name = "BrowserLiveError"; this.status = status; }
|
|
40
41
|
}
|
|
42
|
+
export function browserRestartNeeded() {
|
|
43
|
+
const error = userError("serverError.browser.restartNeeded");
|
|
44
|
+
return Object.assign(new BrowserLiveError(error.error, 409), userErrorFields(error));
|
|
45
|
+
}
|
|
41
46
|
export class BrowserActionFailedError extends BrowserLiveError {
|
|
42
47
|
settled = true;
|
|
43
48
|
constructor(args) {
|
|
@@ -877,10 +882,8 @@ export class BrowserLive {
|
|
|
877
882
|
throw new BrowserLiveError("This browser view is no longer available.", 409);
|
|
878
883
|
const socket = new WebSocket(`ws://127.0.0.1:${port}/?pacing=ack&maxFps=15`);
|
|
879
884
|
viewer.socket = socket;
|
|
885
|
+
viewer.waiting = true;
|
|
880
886
|
this.startEvents(viewer);
|
|
881
|
-
viewer.waiting = false;
|
|
882
|
-
this.send(viewer, { type: "ready", viewerId: viewer.id, inputBatch: INPUT_BATCH_LIMIT });
|
|
883
|
-
this.control(viewer.session);
|
|
884
887
|
socket.addEventListener("message", (event) => {
|
|
885
888
|
if (!this.current(viewer)) {
|
|
886
889
|
this.close(viewer, true, true);
|
|
@@ -913,19 +916,31 @@ export class BrowserLive {
|
|
|
913
916
|
else
|
|
914
917
|
this.send(viewer, message);
|
|
915
918
|
});
|
|
916
|
-
socket.addEventListener("error", () => {
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
919
|
+
socket.addEventListener("error", () => {
|
|
920
|
+
if (viewer.closed || viewer.restarting)
|
|
921
|
+
return;
|
|
922
|
+
this.send(viewer, BROWSER_STREAM_DISCONNECTED);
|
|
923
|
+
this.close(viewer, true, true);
|
|
924
|
+
});
|
|
925
|
+
socket.addEventListener("close", (event) => {
|
|
926
|
+
if (!viewer.restarting)
|
|
927
|
+
this.close(viewer, true, !event.wasClean || event.code !== 1000);
|
|
928
|
+
});
|
|
922
929
|
// Handlers go on before awaiting the upgrade: upstream sends its cached status, tabs and first frame right after opening.
|
|
923
930
|
await new Promise((resolve, reject) => {
|
|
924
931
|
const timer = setTimeout(() => reject(new BrowserLiveError("The browser stream did not connect. Reopen the browser panel.", 503)), 10_000);
|
|
925
932
|
const failed = () => { clearTimeout(timer); reject(new BrowserLiveError("The browser stream did not connect. Reopen the browser panel.", 503)); };
|
|
926
933
|
socket.addEventListener("error", failed, { once: true });
|
|
927
934
|
socket.addEventListener("close", failed, { once: true });
|
|
928
|
-
socket.addEventListener("open", () => {
|
|
935
|
+
socket.addEventListener("open", () => {
|
|
936
|
+
clearTimeout(timer);
|
|
937
|
+
socket.removeEventListener("error", failed);
|
|
938
|
+
socket.removeEventListener("close", failed);
|
|
939
|
+
viewer.waiting = false;
|
|
940
|
+
this.send(viewer, { type: "ready", viewerId: viewer.id, inputBatch: INPUT_BATCH_LIMIT });
|
|
941
|
+
this.control(viewer.session);
|
|
942
|
+
resolve();
|
|
943
|
+
}, { once: true });
|
|
929
944
|
});
|
|
930
945
|
if (!this.current(viewer)) {
|
|
931
946
|
this.close(viewer);
|
|
@@ -950,10 +965,10 @@ export class BrowserLive {
|
|
|
950
965
|
const busy = error instanceof BrowserBusyError;
|
|
951
966
|
const explained = busy || error instanceof BrowserUnresponsiveError;
|
|
952
967
|
this.send(viewer, { type: "error", retryable: !busy, message: explained ? error.message : "The browser stream could not start.", ...userErrorFields(error) });
|
|
953
|
-
this.close(viewer);
|
|
968
|
+
this.close(viewer, true, true);
|
|
954
969
|
return;
|
|
955
970
|
}
|
|
956
|
-
this.close(viewer,
|
|
971
|
+
this.close(viewer, false, true);
|
|
957
972
|
throw error instanceof BrowserLiveError ? error : new BrowserLiveError("The browser stream could not start. Reopen the browser panel.", 503);
|
|
958
973
|
}
|
|
959
974
|
}
|
|
@@ -1104,7 +1119,7 @@ export class BrowserLive {
|
|
|
1104
1119
|
const holder = this.runtime.heldBy(viewer.session);
|
|
1105
1120
|
if (holder && holder !== viewer.person)
|
|
1106
1121
|
return new BrowserLiveError(BROWSER_HELD_ELSEWHERE, 409);
|
|
1107
|
-
return
|
|
1122
|
+
return this.runtime.interrupted(viewer.session) ? browserRestartNeeded() : new BrowserLiveError(otherwise, 409);
|
|
1108
1123
|
}
|
|
1109
1124
|
/** Done on a sign-in card, from any window or device: whoever holds this browser hands it back. */
|
|
1110
1125
|
handBack(session) {
|
|
@@ -207,6 +207,7 @@ import { FACTORY, factoryMount } from "./limix-factory.js";
|
|
|
207
207
|
import { industryGuestFacts, isIndustryCareBot, withIndustryCareMcp } from "./industry-care.js";
|
|
208
208
|
import { attachCustomMcp } from "./mcp-result-budget.js";
|
|
209
209
|
import { mcpToolProblem } from "./mcp-failure.js";
|
|
210
|
+
import { bindWorkspaceRead, sameWorkspacePath, workspaceReadRootCurrent, workspaceReadRpc, WORKSPACE_READ, WORKSPACE_READ_PATH } from "./workspace-read.js";
|
|
210
211
|
import { MCP_OAUTH_CALLBACK_PATH, McpOAuthManager } from "./mcp-oauth.js";
|
|
211
212
|
import { GROUP_GOAL_WAIT_MAX_MS, groupGoalCompletionTurnId, parseGroupGoalDecision, visibleCoordinatorText, runGoalRun, selectGroupGoalCoordinator, } from "./group-goal-run.js";
|
|
212
213
|
import { createGoalTurns } from "./host/goal-turns.js";
|
|
@@ -1706,7 +1707,7 @@ function beginInternalCapabilityGeneration(threadId, generation = randomUUID())
|
|
|
1706
1707
|
// Security invariant: a turn's depth, the hand-off it runs for and whether it may author skills are read from that record on every call, never
|
|
1707
1708
|
// from the engine, so a person's message and a teammate's report keep one bearer.
|
|
1708
1709
|
const sessionCredentials = new Map();
|
|
1709
|
-
function sessionGrants({ generation: _turn, depth: _depth, roomHandoffId: _handoff, skillAuthoring: _skills, ...grants }) {
|
|
1710
|
+
function sessionGrants({ generation: _turn, depth: _depth, roomHandoffId: _handoff, skillAuthoring: _skills, workspaceReadRoot: _workspace, ...grants }) {
|
|
1710
1711
|
const thread = botForThread(grants.botId, grants.threadId);
|
|
1711
1712
|
return JSON.stringify({ ...grants, approval: thread ? approvalModeFor(thread) : null });
|
|
1712
1713
|
}
|
|
@@ -1851,12 +1852,26 @@ const MAX_WORKSPACE_BOTS = 100;
|
|
|
1851
1852
|
const phoneProxyPath = SPAWNED_PROXIES.phone;
|
|
1852
1853
|
const researchAvailability = createResearchAvailability({ credential: () => researchCredential(cfg.treg?.key) });
|
|
1853
1854
|
researchAvailability.available();
|
|
1854
|
-
function agentsIntegration(botId, threadId, depth, skillAuthoring, generation, roomHandoffId, hostFiles = false, automated = false) {
|
|
1855
|
+
function agentsIntegration(botId, threadId, depth, skillAuthoring, generation, roomHandoffId, hostFiles = false, automated = false, workspaceRead = false) {
|
|
1855
1856
|
const bot = store.bot(botId), speaking = botForThread(botId, threadId) ?? bot;
|
|
1856
1857
|
// Only advertises the tools; the routes behind them refuse regardless.
|
|
1857
|
-
const host = { pluginRead: Boolean(bot && pluginHub.hasComponents(bot, Object.keys(engineMcpServers(bot)))), skillAuthoring: skillAuthoringEnabled(cfg), sharedComputers: botLending(), cloudHome: Boolean(CLOUD_HOME), team: Boolean(CLOUD_TEAM),
|
|
1858
|
+
const host = { pluginRead: Boolean(bot && pluginHub.hasComponents(bot, [...Object.keys(engineMcpServers(bot)), ...(workspaceRead ? [WORKSPACE_READ] : [])])), skillAuthoring: skillAuthoringEnabled(cfg), sharedComputers: botLending(), cloudHome: Boolean(CLOUD_HOME), team: Boolean(CLOUD_TEAM),
|
|
1858
1859
|
voiceNotes: tts.voiceReady(cfg, speaking?.voice) && speaking?.voiceNotes !== false, x: Boolean(researchCredential(cfg.treg?.key)), research: researchAvailability.available(), imageGeneration: imageGenerationReady(cfg), meetings: boat.boatConfigured(cfg) };
|
|
1859
|
-
return { ...agentsProxyLaunch(), env: agentsServerEnv({ threadId, bot: bot ?? { id: botId }, room: Boolean(store.groupByThread(threadId)), teamComputer: Boolean(bot && inheritedTeamComputer(bot)), botDriven: automated || botDrivenConversation(store.taskByThread(botId, threadId)), host }, { generation, depth, skillAuthoring, roomHandoffId, ...(hostFiles && !CLOUD_HOME && !HOSTED_WORKSPACE ? { deliversSavedFiles: true } : {}) }, (turn) => mintInternalCapability({ botId, threadId, kind: "agents", createdBots: 0, openedThreads: 0, ...turn }), `http://127.0.0.1:${PORT}`) };
|
|
1860
|
+
return { ...agentsProxyLaunch(), env: agentsServerEnv({ threadId, bot: bot ?? { id: botId }, room: Boolean(store.groupByThread(threadId)), teamComputer: Boolean(bot && inheritedTeamComputer(bot)), botDriven: automated || botDrivenConversation(store.taskByThread(botId, threadId)), host }, { generation, depth, skillAuthoring, roomHandoffId, ...(hostFiles && !CLOUD_HOME && !HOSTED_WORKSPACE ? { deliversSavedFiles: true } : {}) }, (turn) => mintInternalCapability({ botId, threadId, kind: "agents", createdBots: 0, openedThreads: 0, ...turn, ...(workspaceRead ? { workspaceReadMounted: true } : {}) }), `http://127.0.0.1:${PORT}`) };
|
|
1861
|
+
}
|
|
1862
|
+
function workspaceReadAllowed(bot, threadId, cwd) {
|
|
1863
|
+
return sameWorkspacePath(bot.cwd, cwd) && sameWorkspacePath(store.taskByThread(bot.id, threadId)?.cwd, cwd)
|
|
1864
|
+
&& !CLOUD_HOME && !CLOUD_TEAM && !HOSTED_WORKSPACE && !botBox.enabled()
|
|
1865
|
+
&& !cloudGuestDriven(threadId) && !botApiThread(threadId) && !proactive.fence.confines(threadId)
|
|
1866
|
+
&& managedPolicy.mcpAllowed(WORKSPACE_READ)
|
|
1867
|
+
&& canUseMcpServer(bot.toolScope, WORKSPACE_READ) && pluginHub.requiresServer(bot, WORKSPACE_READ);
|
|
1868
|
+
}
|
|
1869
|
+
function liveWorkspaceRead(capability) {
|
|
1870
|
+
const bot = store.bot(capability.botId);
|
|
1871
|
+
const switching = computerSelectionTurns.get(capability.threadId);
|
|
1872
|
+
return Boolean(bot && capability.workspaceReadRoot && internalCapabilityIsActive(capability)
|
|
1873
|
+
&& !(switching?.generation === capability.generation && switching.selected)
|
|
1874
|
+
&& workspaceReadAllowed(bot, capability.threadId, capability.workspaceReadRoot.path));
|
|
1860
1875
|
}
|
|
1861
1876
|
const hooksEnabled = () => process.env.OMB_HOOKS !== "0";
|
|
1862
1877
|
function hooksIntegration(botId, threadId, generation) {
|
|
@@ -8587,8 +8602,21 @@ async function beginTurn(botId, text, opts) {
|
|
|
8587
8602
|
}
|
|
8588
8603
|
// One reachability rule: a bot is never told about a peer that coordinate_bots would refuse.
|
|
8589
8604
|
const sectionPeers = personalReach.peers(store.bots, bot, threadId);
|
|
8605
|
+
const workspaceBot = store.bot(bot.id);
|
|
8606
|
+
const workspaceReadRoot = cwd && workspaceBot && !guestConfined && (computerKind === null || computerKind === "local")
|
|
8607
|
+
&& instance.adapter.capabilities.customMcp === true && workspaceReadAllowed(workspaceBot, threadId, cwd)
|
|
8608
|
+
? await bindWorkspaceRead(cwd, DATA_DIR) : undefined;
|
|
8609
|
+
if (workspaceReadRoot && directTurnClaimIsCurrent(bot.id, dispatchClaimId, threadId)) {
|
|
8610
|
+
const token = mintInternalCapability({
|
|
8611
|
+
botId: bot.id, threadId, generation: dispatchClaimId, kind: "workspace-read", depth: 0, skillAuthoring: false,
|
|
8612
|
+
workspaceReadRoot, createdBots: 0, openedThreads: 0,
|
|
8613
|
+
}, { perTurn: true });
|
|
8614
|
+
integrations.custom = { ...integrations.custom, [WORKSPACE_READ]: {
|
|
8615
|
+
type: "http", url: `http://127.0.0.1:${PORT}${WORKSPACE_READ_PATH}`, headers: { Authorization: `Bearer ${token}` },
|
|
8616
|
+
} };
|
|
8617
|
+
}
|
|
8590
8618
|
if (agentsMounted) {
|
|
8591
|
-
integrations.agents = agentsIntegration(bot.id, threadId, commsDepth, skillAuthoring, dispatchClaimId, opts?.coordination?.id, worksInWorkspace, opts?.automationSource !== undefined);
|
|
8619
|
+
integrations.agents = agentsIntegration(bot.id, threadId, commsDepth, skillAuthoring, dispatchClaimId, opts?.coordination?.id, worksInWorkspace, opts?.automationSource !== undefined, Boolean(integrations.custom?.[WORKSPACE_READ]));
|
|
8592
8620
|
}
|
|
8593
8621
|
if (instance.adapter.capabilities.hooks === true && hooksEnabled()) {
|
|
8594
8622
|
integrations.hooks = hooksIntegration(bot.id, threadId, dispatchClaimId);
|
|
@@ -13466,18 +13494,19 @@ const handleRequest = async (req, res) => {
|
|
|
13466
13494
|
? "hooks"
|
|
13467
13495
|
: path === "/api/internal/browser/mcp"
|
|
13468
13496
|
? "browser"
|
|
13469
|
-
: path ===
|
|
13470
|
-
|
|
13471
|
-
|
|
13472
|
-
: path ===
|
|
13473
|
-
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
|
|
13497
|
+
: path === WORKSPACE_READ_PATH ? "workspace-read"
|
|
13498
|
+
: path === DATA_INTERNAL_MCP_PATH
|
|
13499
|
+
? "data"
|
|
13500
|
+
: path === EMAIL_INTERNAL_MCP_PATH ? "email"
|
|
13501
|
+
: path === PHONE_INTERNAL_MCP_PATH
|
|
13502
|
+
? "device" : isLentMcpPath(path) ? "lent"
|
|
13503
|
+
: path === "/api/internal/phone/claim"
|
|
13504
|
+
? "phone"
|
|
13505
|
+
: path.startsWith("/api/internal/connectors/")
|
|
13506
|
+
? "connectors"
|
|
13507
|
+
: path === "/api/internal/computer-control" || path === "/api/internal/computer/mcp" || path === COMPUTER_JOURNAL_PATH
|
|
13508
|
+
? "computer"
|
|
13509
|
+
: "agents";
|
|
13481
13510
|
if (internalCapability.kind !== requiredCapabilityKind) {
|
|
13482
13511
|
return json(res, 403, { error: "this internal capability cannot access that service" });
|
|
13483
13512
|
}
|
|
@@ -13494,8 +13523,8 @@ const handleRequest = async (req, res) => {
|
|
|
13494
13523
|
if (claimedThread !== null && claimedThread !== internalCapability.threadId) {
|
|
13495
13524
|
return json(res, 403, { error: "the internal capability belongs to a different conversation" });
|
|
13496
13525
|
}
|
|
13497
|
-
const readInternalBody = async () => {
|
|
13498
|
-
const body = await readBody(req);
|
|
13526
|
+
const readInternalBody = async (maxBytes) => {
|
|
13527
|
+
const body = await readBody(req, maxBytes);
|
|
13499
13528
|
// Authorization at header time is not a lease: if the owning turn settled meanwhile, die before any side effect.
|
|
13500
13529
|
if (!internalCapabilityIsActive(internalCapability)) {
|
|
13501
13530
|
throw Object.assign(new Error(TURN_ENDED_REFUSAL), { status: 401 });
|
|
@@ -13514,6 +13543,31 @@ const handleRequest = async (req, res) => {
|
|
|
13514
13543
|
}
|
|
13515
13544
|
return body;
|
|
13516
13545
|
};
|
|
13546
|
+
if (path === WORKSPACE_READ_PATH) {
|
|
13547
|
+
const root = internalCapability.workspaceReadRoot;
|
|
13548
|
+
if (!root || !liveWorkspaceRead(internalCapability) || !await workspaceReadRootCurrent(root) || !liveWorkspaceRead(internalCapability)) {
|
|
13549
|
+
return json(res, 403, { error: "Workspace access is unavailable for this turn." });
|
|
13550
|
+
}
|
|
13551
|
+
if (method !== "POST") {
|
|
13552
|
+
res.writeHead(405, { allow: "POST" });
|
|
13553
|
+
res.end();
|
|
13554
|
+
return;
|
|
13555
|
+
}
|
|
13556
|
+
const frame = await readInternalBody(16 * 1024);
|
|
13557
|
+
if (!liveWorkspaceRead(internalCapability))
|
|
13558
|
+
return json(res, 403, { error: "Workspace access is unavailable for this turn." });
|
|
13559
|
+
const allowed = (name, args) => liveWorkspaceRead(internalCapability)
|
|
13560
|
+
&& allowsTool(store.bot(internalSender.id)?.toolScope, { kind: "mcp", server: WORKSPACE_READ, name }, args);
|
|
13561
|
+
const result = await workspaceReadRpc(root, frame, allowed);
|
|
13562
|
+
if (!liveWorkspaceRead(internalCapability))
|
|
13563
|
+
return json(res, 403, { error: "Workspace access is unavailable for this turn." });
|
|
13564
|
+
if (result === undefined) {
|
|
13565
|
+
res.writeHead(202);
|
|
13566
|
+
res.end();
|
|
13567
|
+
return;
|
|
13568
|
+
}
|
|
13569
|
+
return json(res, 200, result);
|
|
13570
|
+
}
|
|
13517
13571
|
const requireActiveInternalCapability = () => {
|
|
13518
13572
|
if (!internalCapabilityIsActive(internalCapability)) {
|
|
13519
13573
|
throw Object.assign(new Error(TURN_ENDED_REFUSAL), { status: 401 });
|
|
@@ -14247,7 +14301,16 @@ const handleRequest = async (req, res) => {
|
|
|
14247
14301
|
internalCapability.pluginReads = (internalCapability.pluginReads ?? 0) + 1;
|
|
14248
14302
|
if (!allowsTool(internalSender.toolScope, { kind: "mcp", server: "agents", name: "plugin_read" }, input))
|
|
14249
14303
|
return json(res, 403, { error: "Plugin reads disabled for this bot" });
|
|
14250
|
-
const allowed = () =>
|
|
14304
|
+
const allowed = () => {
|
|
14305
|
+
const bot = store.bot(internalSender.id);
|
|
14306
|
+
if (!bot)
|
|
14307
|
+
return [];
|
|
14308
|
+
const names = Object.keys(engineMcpServers(bot)).filter(name => canUseMcpServer(bot.toolScope, name));
|
|
14309
|
+
const cwd = store.taskByThread(bot.id, internalCapability.threadId)?.cwd;
|
|
14310
|
+
if (internalCapability.workspaceReadMounted && cwd && workspaceReadAllowed(bot, internalCapability.threadId, cwd))
|
|
14311
|
+
names.push(WORKSPACE_READ);
|
|
14312
|
+
return names;
|
|
14313
|
+
};
|
|
14251
14314
|
const result = await readPluginComponent(pluginHub, resolvePluginServer, internalSender, allowed, input, DATA_DIR, mcpServersHost.probeAs({ bot: internalSender.id }), origin => {
|
|
14252
14315
|
if (internalCapability.pluginOrigin && internalCapability.pluginOrigin !== origin)
|
|
14253
14316
|
return false;
|
|
@@ -361,6 +361,8 @@ export function createPluginHub(dir, targets, load = download) {
|
|
|
361
361
|
if (!state.installed.some(p => p.teams.includes(from)))
|
|
362
362
|
return;
|
|
363
363
|
save({ ...state, installed: state.installed.map(p => ({ ...p, teams: p.teams.flatMap(team => team !== from ? [team] : to ? [to] : []) })) });
|
|
364
|
+
}, requiresServer(bot, server) {
|
|
365
|
+
return active(bot, [server]).some(row => row.requiresMcp.includes(server) && !row.manifest?.source);
|
|
364
366
|
}, instructions(bot, availableMcp) {
|
|
365
367
|
const rows = active(bot, availableMcp);
|
|
366
368
|
const legacy = rows.filter(p => !p.manifest).map(p => "\n\nPlugin " + p.id + " (" + p.version + ")\n" + p.instructions).join("");
|