limixbot 0.3.152 → 0.3.154
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-B80KWmOu.js → ActivityPanel-DIFL2UWu.js} +1 -1
- package/dist/assets/{App-kvV7NiY3.js → App-C4yNzHVh.js} +9 -9
- package/dist/assets/{AppEventEditor-bP6260DO.js → AppEventEditor-BnHOXKlK.js} +1 -1
- package/dist/assets/{BotSettingsDialog-1KPW5yRw.js → BotSettingsDialog-BDxPPRSt.js} +9 -9
- package/dist/assets/{BrowserPanel-rE5QhcPZ.js → BrowserPanel-7C2siZvA.js} +1 -1
- package/dist/assets/{BrowserProfilesManager-Bki0q9TN.js → BrowserProfilesManager-DT3_0YNy.js} +1 -1
- package/dist/assets/{CloudAddDialog-mQKspNDc.js → CloudAddDialog-DAK84Xp8.js} +1 -1
- package/dist/assets/{ComputerFilesPane-B-pkuW4h.js → ComputerFilesPane-CLll40_D.js} +1 -1
- package/dist/assets/{ComputerPanel-BsKZo2VK.js → ComputerPanel-DYVH95ii.js} +2 -2
- package/dist/assets/{DataPanel-Dh1tnzh6.js → DataPanel-BpWU7lio.js} +1 -1
- package/dist/assets/{DesktopViewer-DzTcedLr.js → DesktopViewer-CpR99OfE.js} +1 -1
- package/dist/assets/{GrokMoveDialog-CHgRlZj-.js → GrokMoveDialog-BCsZtfLt.js} +1 -1
- package/dist/assets/{InspectorPanel-CKIE84Lx.js → InspectorPanel-CrzVSG7i.js} +1 -1
- package/dist/assets/{KeyboardShortcutsModal-DPAw8Ad2.js → KeyboardShortcutsModal-BIbJVW9-.js} +1 -1
- package/dist/assets/{KnowledgePanel-B6Tx5D3x.js → KnowledgePanel-Sg_1jEKv.js} +1 -1
- package/dist/assets/{LimixResizeHandles-C29m-_Io.js → LimixResizeHandles-BdmQCBKT.js} +1 -1
- package/dist/assets/{LiveDesktop-CJmUlX7t.js → LiveDesktop-DqCcsH_j.js} +1 -1
- package/dist/assets/{LocalVmWorkspace-o8CEQfvC.js → LocalVmWorkspace-BNdGhJf5.js} +1 -1
- package/dist/assets/{MacLocalControl-VHfhfP-1.js → MacLocalControl-BizgfuSq.js} +1 -1
- package/dist/assets/{MarkdownFilePreview-CVg1Dv8-.js → MarkdownFilePreview-CLkT5s2b.js} +1 -1
- package/dist/assets/{MenuMotion-CkN_cwFK.js → MenuMotion-DZa0_5mG.js} +1 -1
- package/dist/assets/{NewBotDialog-C44BCac3.js → NewBotDialog-8bG4Xs-l.js} +1 -1
- package/dist/assets/{PhoneAppDialog-DtK5rRue.js → PhoneAppDialog-D6dh2YT4.js} +1 -1
- package/dist/assets/{PlacesRail-CiDy67dg.js → PlacesRail-DbAKPGkj.js} +1 -1
- package/dist/assets/{PluginsPanel-DpO8LuFQ.js → PluginsPanel-uXur23ye.js} +1 -1
- package/dist/assets/{ProIntroduction-8364k-yT.js → ProIntroduction-CgzCBF5_.js} +1 -1
- package/dist/assets/{RemoteAgentSettingsPanel-DNZOyjLd.js → RemoteAgentSettingsPanel-DK9XpaOh.js} +1 -1
- package/dist/assets/{RoomPanel-BjgeZyW_.js → RoomPanel-BPM4dzaG.js} +1 -1
- package/dist/assets/{RoutinesPage-U4CYV5gy.js → RoutinesPage-DresNrsn.js} +1 -1
- package/dist/assets/{SettingsModal-BN-s1Vsn.js → SettingsModal-DcNmqDB5.js} +5 -5
- package/dist/assets/{ShareTeamDialog-CSNzgOgX.js → ShareTeamDialog-lkjMPlgB.js} +1 -1
- package/dist/assets/{SignedInSites-CMyBj22P.js → SignedInSites-COdsl-Jr.js} +1 -1
- package/dist/assets/{TeamLibraryPanel-CTbcwEBK.js → TeamLibraryPanel-fD3U_PVO.js} +1 -1
- package/dist/assets/{TeamMapPage-BA1Gn4Nu.js → TeamMapPage-YL_Bca8J.js} +1 -1
- package/dist/assets/{TriggersPage-BIw8SsJe.js → TriggersPage-PS__fjCL.js} +1 -1
- package/dist/assets/{VisibilitySection-VxPMnLBf.js → VisibilitySection-CUizRA66.js} +1 -1
- package/dist/assets/{WebhookTrigger-CDOPgE1u.js → WebhookTrigger-BbHJhuck.js} +1 -1
- package/dist/assets/{WorksOnGrid-B11Ztjyn.js → WorksOnGrid-SMy19r6q.js} +1 -1
- package/dist/assets/{abnfDiagram-YUKMZFIV-DmMlye8h.js → abnfDiagram-YUKMZFIV-C7tigo7-.js} +1 -1
- package/dist/assets/{activity-BwL7R1oZ.js → activity-DniZfusL.js} +1 -1
- package/dist/assets/{architectureDiagram-47P4ROYG-CsJT_rlj.js → architectureDiagram-47P4ROYG-DD1F6kyh.js} +1 -1
- package/dist/assets/{blockDiagram-E7TT5TSB-DQZPKSCM.js → blockDiagram-E7TT5TSB-DnAzXbzy.js} +1 -1
- package/dist/assets/{c4Diagram-CRA5TL53-CFwJMSZU.js → c4Diagram-CRA5TL53-C_51pGIq.js} +1 -1
- package/dist/assets/{calendar-days-B6JEXMKZ.js → calendar-days-CMf5TzBV.js} +1 -1
- package/dist/assets/channel-BFatV5V7.js +1 -0
- package/dist/assets/{chunk-2Q5K7J3B-5GjI6Cta.js → chunk-2Q5K7J3B-DGOw1hB-.js} +1 -1
- package/dist/assets/{chunk-5VM5RSS4-DYH4c-ax.js → chunk-5VM5RSS4-CEglXE2A.js} +1 -1
- package/dist/assets/{chunk-7TKQ45FW-BmQUAA8g.js → chunk-7TKQ45FW-DJuQPbHD.js} +1 -1
- package/dist/assets/{chunk-AW2ZBBNX-DaPEyZZ8.js → chunk-AW2ZBBNX-DmUjDjZi.js} +1 -1
- package/dist/assets/{chunk-FVRAUYC3-B2zv-RDx.js → chunk-FVRAUYC3-qvZE-rBb.js} +2 -2
- package/dist/assets/{chunk-HTAEGDNF-BBigAiMr.js → chunk-HTAEGDNF-DJQ7bKlX.js} +1 -1
- package/dist/assets/{chunk-JWPE2WC7-nGpkrDer.js → chunk-JWPE2WC7-CtK71mtg.js} +1 -1
- package/dist/assets/{chunk-KQW6MTUR-RtfxoMR0.js → chunk-KQW6MTUR-C-9taXVN.js} +1 -1
- package/dist/assets/{chunk-XXDRQBXY-D0Z9X15P.js → chunk-XXDRQBXY-COVjh9NZ.js} +1 -1
- package/dist/assets/{classDiagram-v2-K4WV4PDN-DjLi8cTy.js → classDiagram-v2-K4WV4PDN-E6WJ2gvc.js} +1 -1
- package/dist/assets/{coins-DU5eeEgg.js → coins-SySXrF1O.js} +1 -1
- package/dist/assets/{core-IJ42VnCr.js → core-CvwNH6Uy.js} +1 -1
- package/dist/assets/{cose-bilkent-JH36ORCC-BV5TslYh.js → cose-bilkent-JH36ORCC-DYRVTKWT.js} +1 -1
- package/dist/assets/{cynefin-EF2NZ3EQ-Xj-A7F3v.js → cynefin-EF2NZ3EQ-WxNhgcuL.js} +1 -1
- package/dist/assets/{cynefinDiagram-3GCD6N5R-DwA9mpkS.js → cynefinDiagram-3GCD6N5R--gP11Coo.js} +1 -1
- package/dist/assets/{dagre-W4DXFKR2-CJyrR1La.js → dagre-W4DXFKR2-D8S1xx6y.js} +1 -1
- package/dist/assets/{diagram-2UJZ2QOL-D5e65aZj.js → diagram-2UJZ2QOL-DwI0oKe5.js} +1 -1
- package/dist/assets/{diagram-OVF4WLC6-BqZTYg6g.js → diagram-OVF4WLC6-CY1PMFNA.js} +1 -1
- package/dist/assets/{diagram-PFPMY2P6-DrjnFbqK.js → diagram-PFPMY2P6-BEdmIzGl.js} +1 -1
- package/dist/assets/{diagram-UMYRVEAY-BaV0xK5l.js → diagram-UMYRVEAY-B7R5dvVw.js} +1 -1
- package/dist/assets/{diagram-YEKJPTXX-DQgBrrT_.js → diagram-YEKJPTXX-7YqXi8K9.js} +1 -1
- package/dist/assets/{diagram-ZIFT7M5P-BkV-KgMI.js → diagram-ZIFT7M5P-C8Dr1PTC.js} +1 -1
- package/dist/assets/{ebnfDiagram-VR2GEFS7-IpsTZnQN.js → ebnfDiagram-VR2GEFS7-BHdUS5WV.js} +1 -1
- package/dist/assets/{elk-IJKZMXRS-DDQNuM9u.js → elk-IJKZMXRS-CGdzxQLX.js} +1 -1
- package/dist/assets/{erDiagram-O2IAPWRE-D9TBYgl3.js → erDiagram-O2IAPWRE-uCoJoO6c.js} +1 -1
- package/dist/assets/{file-up-ws1KLV4X.js → file-up-BKQQB2iO.js} +1 -1
- package/dist/assets/{flowDiagram-OXPTDLAJ-DbpnsdSz.js → flowDiagram-OXPTDLAJ-D0XG20Ad.js} +1 -1
- package/dist/assets/{ganttDiagram-R7TSEDQI-CuOV8r9U.js → ganttDiagram-R7TSEDQI-BnrdYKUF.js} +1 -1
- package/dist/assets/{gitGraphDiagram-XJZIOB7I--DnV2JAf.js → gitGraphDiagram-XJZIOB7I-BcEpz7t7.js} +1 -1
- package/dist/assets/{import-name-BWc5rW_1.js → import-name-Cx7z2uuD.js} +1 -1
- package/dist/assets/{index-D5fEAMqd.js → index-CnKbeHja.js} +3 -3
- package/dist/assets/{index-C80Smt_v.js → index-mIEtqomC.js} +1 -1
- package/dist/assets/{infoDiagram-5W2HQ5XZ-DFH8qIB_.js → infoDiagram-5W2HQ5XZ-C5VEHY7a.js} +1 -1
- package/dist/assets/{ishikawaDiagram-K3B6WC7H-CWVJRxcE.js → ishikawaDiagram-K3B6WC7H-QaE_8_br.js} +1 -1
- package/dist/assets/{journeyDiagram-COXZFDF6-CF5SHpVJ.js → journeyDiagram-COXZFDF6-BrgKmxwW.js} +1 -1
- package/dist/assets/{kanban-definition-P3RFRI5V-Dqcr-efW.js → kanban-definition-P3RFRI5V-9wQgMI3C.js} +1 -1
- package/dist/assets/{mermaid.core-DyBxnq9f.js → mermaid.core-ZHvdDgu6.js} +4 -4
- package/dist/assets/{mindmap-definition-LZFPQGKD-DUHqiBBP.js → mindmap-definition-LZFPQGKD-MTNZaDoa.js} +1 -1
- package/dist/assets/{minimize-Gt19QuOt.js → minimize-D6AyQ1d0.js} +1 -1
- package/dist/assets/{monitor-8xvlipPX.js → monitor-Cif4agWy.js} +1 -1
- package/dist/assets/{new-bot-DhYGTNqw.js → new-bot-DPL6QQjG.js} +1 -1
- package/dist/assets/{org-library-Cvd8tb9X.js → org-library-DKAyPTNn.js} +1 -1
- package/dist/assets/{package-format-BoXiXUGU.js → package-format-D52rhOI_.js} +1 -1
- package/dist/assets/{pegDiagram-BGZESJAR-B0ZD60O8.js → pegDiagram-BGZESJAR-X6mWc-Am.js} +1 -1
- package/dist/assets/{pieDiagram-CAPJLFHJ-D85g95l8.js → pieDiagram-CAPJLFHJ-B-TEgeWT.js} +1 -1
- package/dist/assets/{quadrantDiagram-GDMTTRAM-BJSfbIDU.js → quadrantDiagram-GDMTTRAM-CvcsNpUO.js} +1 -1
- package/dist/assets/{rail-BGOSUsWI.js → rail-BlhyEQNj.js} +1 -1
- package/dist/assets/{railroadDiagram-SM67HX2B-COsfytW7.js → railroadDiagram-SM67HX2B-H0AhpMbr.js} +1 -1
- package/dist/assets/{remote-desktop-panel-B6VIl0Qb.js → remote-desktop-panel-RRGHOWOQ.js} +1 -1
- package/dist/assets/{requirementDiagram-X7JNWC4A-Cvm3p_V4.js → requirementDiagram-X7JNWC4A-C7dvhedo.js} +1 -1
- package/dist/assets/{sankeyDiagram-UM26HJRW-B2qdUsyi.js → sankeyDiagram-UM26HJRW-BvjAyZBU.js} +1 -1
- package/dist/assets/{sequenceDiagram-ZO4K6R2Y-DuHG0mPh.js → sequenceDiagram-ZO4K6R2Y-CAygapn_.js} +1 -1
- package/dist/assets/{sizeCapture-INFHLROL-DIQvdFqx.js → sizeCapture-INFHLROL-62pvHUBs.js} +1 -1
- package/dist/assets/{stateDiagram-v2-TBUQTH76-Bn18bSq5.js → stateDiagram-v2-TBUQTH76-IOe804-t.js} +1 -1
- package/dist/assets/{styles-dQeXpYRh.js → styles-C4OYlVF_.js} +2 -2
- package/dist/assets/{styles-CMOouTIW.css → styles-Cjm60Wtn.css} +1 -1
- package/dist/assets/{swimlanes-N4OXWK64-BTBQ3Ghn.js → swimlanes-N4OXWK64-BPYg-ND1.js} +1 -1
- package/dist/assets/swimlanesDiagram-K3J5GTZL-CLsYl5pZ.js +8 -0
- package/dist/assets/{team-share-C_9b-rWK.js → team-share-U-ZV6moM.js} +1 -1
- package/dist/assets/{timeline-definition-YOQAKGHF-yrVM6nx1.js → timeline-definition-YOQAKGHF-DGr_FMl_.js} +1 -1
- package/dist/assets/{usecaseDiagram-VIAY4XPW-D7zK8Lsl.js → usecaseDiagram-VIAY4XPW-BsxmlkZ8.js} +1 -1
- package/dist/assets/{vennDiagram-BLWOH2XV-DXEv5byx.js → vennDiagram-BLWOH2XV-CuBGKGZ0.js} +1 -1
- package/dist/assets/{vi-CiY3ddy3.js → vi-DyBaCkk_.js} +1 -1
- package/dist/assets/{wardleyDiagram-YMQ3BMBF-pMqwXr4k.js → wardleyDiagram-YMQ3BMBF-BC86RAlz.js} +1 -1
- package/dist/assets/{xychartDiagram-TAQBALBS-DX7g4R5N.js → xychartDiagram-TAQBALBS-CffpNo4_.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/rail.html +5 -5
- package/dist-server/index.js +289 -284
- package/dist-server/package.json +1 -1
- package/dist-server/server/chief-of-staff.js +5 -3
- package/dist-server/server/index.js +37 -14
- package/dist-server/server/peer-roster.js +4 -0
- package/dist-server/server/routes/instances.js +15 -13
- package/dist-server/server/store.js +1 -1
- package/package.json +1 -1
- package/dist/assets/channel--G0H2dDa.js +0 -1
- package/dist/assets/swimlanesDiagram-K3J5GTZL-DJ2h-u90.js +0 -8
package/dist-server/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"0.3.
|
|
1
|
+
{"type":"module","version":"0.3.154"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { botOwner, nameFromEmail } from "../shared/bot-owner.js";
|
|
2
|
-
import { canManage, hasAuthority, peerName, renderRoster, reachablePeers } from "./peer-roster.js";
|
|
2
|
+
import { canManage, hasAuthority, inCoordinationGroup, peerName, renderRoster, reachablePeers } from "./peer-roster.js";
|
|
3
3
|
import { chiefLevel } from "./chief-level.js";
|
|
4
4
|
/** A thread one teammate opened on another: a Chief may fold it only when it manages both. */
|
|
5
5
|
export function chiefTidies(from, task, opener, owner) {
|
|
@@ -26,7 +26,7 @@ export function chiefOfStaffSystemPrompt(chiefId, bots, canDelegate, also) {
|
|
|
26
26
|
const sectionName = peerName(chiefSection) || "General";
|
|
27
27
|
const owner = chief ? botOwner(chief) : null;
|
|
28
28
|
const person = owner ? peerName(nameFromEmail(owner)) || "your person" : null;
|
|
29
|
-
const reachable = reachablePeers(bots, chief ?? { id: chiefId, name: "" }, also);
|
|
29
|
+
const reachable = reachablePeers(chief ? bots.filter(bot => inCoordinationGroup(chief, bot)) : bots, chief ?? { id: chiefId, name: "" }, also);
|
|
30
30
|
const team = chief ? reachable.filter((bot) => hasAuthority(chief, bot)) : reachable;
|
|
31
31
|
const others = chief ? reachable.filter((bot) => !hasAuthority(chief, bot)) : [];
|
|
32
32
|
const roster = renderRoster(team, {
|
|
@@ -56,7 +56,9 @@ export function chiefOfStaffSystemPrompt(chiefId, bots, canDelegate, also) {
|
|
|
56
56
|
chief?.managedSections?.length
|
|
57
57
|
? `The owner also made you responsible for these departments: ${chief.managedSections.map(s => peerName(s) || "General").join(", ")}. You supervise their bots and may propose setup changes there. You remain the user's single point of contact. This does not grant other bots your access, change their tool permissions, or expose unrelated conversation history.`
|
|
58
58
|
: "",
|
|
59
|
-
canDelegate &&
|
|
59
|
+
canDelegate && chief?.chiefOfStaff && chiefSection && !chief.defaultBot
|
|
60
|
+
? "Assign work and request advice only from bots in your own department. If nobody there fits, do the work yourself or explain which skill is missing."
|
|
61
|
+
: canDelegate && "Every other bot on this team, in any department, is reachable too: consult it or hand it work with coordinate_bots whenever a job needs it, without asking anyone to set anything up. Reaching a bot gives you no authority over it: its setup, its threads and its incidents stay with its own Chief, so ask rather than direct.",
|
|
60
62
|
"Do the work yourself, bring in a teammate when one fits the job, and return one concise consolidated answer. Never invent a teammate's progress or result. Normal permission and approval rules still apply.",
|
|
61
63
|
canDelegate && "A standing preference the person states for all their bots (where reminders go, how replies should sound) is one line you save yourself with memory_update action prefer: every bot reads it. Never send it to each bot with coordinate_bots.",
|
|
62
64
|
canDelegate ? SPECIALISTS : "",
|
|
@@ -167,7 +167,7 @@ import { createSideJobs, helperSelection } from "./side-jobs.js";
|
|
|
167
167
|
import { createAboutMe } from "./about-me.js";
|
|
168
168
|
import { createPersonPreference } from "./host/person-preference.js";
|
|
169
169
|
import { botMemoryUpdate, ownersOwnAsk } from "./memory-forget.js";
|
|
170
|
-
import { canManage, canReach, hasTeamAuthority, livePeerRoster, livePeerRosterBlock, peerName, peerRosterSystemPrompt, peerStatus, peerStatusWords, reachablePeers, resolveTeammate, roomPeerRosterSystemPrompt, roomRosterLine } from "./peer-roster.js";
|
|
170
|
+
import { canManage, canReach, hasTeamAuthority, inCoordinationGroup, livePeerRoster, livePeerRosterBlock, peerName, peerRosterSystemPrompt, peerStatus, peerStatusWords, reachablePeers, resolveTeammate, roomPeerRosterSystemPrompt, roomRosterLine } from "./peer-roster.js";
|
|
171
171
|
import { roomPostRefusal, sharedNamesNote, unreachedMentionLines } from "./same-name-mentions.js";
|
|
172
172
|
import { containerComputerAction, containerComputerFrame, containerComputerStatus, containerExec, containerRuntimeStatus, localVmWakeAction, perBotLocalVmTarget, teamLocalVmTarget, teamFolderDir, TEAM_FOLDER_GUEST, poolLocalVmTarget, SHARED_LOCAL_VM_TARGET, setupCommands, VM_WORKSPACE_GUEST, } from "./container-computer.js";
|
|
173
173
|
import { containerComputerMcp } from "./local-vm-box.js";
|
|
@@ -8606,7 +8606,7 @@ async function beginTurn(botId, text, opts) {
|
|
|
8606
8606
|
vpsUnavailableNote = ` This bot's VPS computer is unavailable this turn (${autoVpsProblem}), so no computer is mounted. Work that needs no screen can go ahead. If the request needs the VPS desktop, do not claim to have used it: say it is unavailable${hint ? ` and what the person can do: ${hint}` : "."}`;
|
|
8607
8607
|
}
|
|
8608
8608
|
// One reachability rule: a bot is never told about a peer that coordinate_bots would refuse.
|
|
8609
|
-
const sectionPeers = personalReach.peers(store.bots, bot, threadId);
|
|
8609
|
+
const sectionPeers = personalReach.peers(store.bots, bot, threadId).filter(peer => inCoordinationGroup(bot, peer));
|
|
8610
8610
|
const workspaceBot = store.bot(bot.id);
|
|
8611
8611
|
const workspaceReadRoot = cwd && workspaceBot && !guestConfined && (computerKind === null || computerKind === "local")
|
|
8612
8612
|
&& instance.adapter.capabilities.customMcp === true && workspaceReadAllowed(workspaceBot, threadId, cwd)
|
|
@@ -12292,7 +12292,7 @@ async function describeInstances() {
|
|
|
12292
12292
|
});
|
|
12293
12293
|
}
|
|
12294
12294
|
let companyShutdown = false;
|
|
12295
|
-
async function stopCompanyInstances(ids) {
|
|
12295
|
+
async function stopCompanyInstances(ids, removingAccount = false) {
|
|
12296
12296
|
if (!ids.length)
|
|
12297
12297
|
return;
|
|
12298
12298
|
if (companyShutdown) {
|
|
@@ -12302,7 +12302,7 @@ async function stopCompanyInstances(ids) {
|
|
|
12302
12302
|
}
|
|
12303
12303
|
return;
|
|
12304
12304
|
}
|
|
12305
|
-
const cause = "turn interrupted — the Company connection changed";
|
|
12305
|
+
const cause = removingAccount ? "turn interrupted — the AI account was removed" : "turn interrupted — the Company connection changed";
|
|
12306
12306
|
const selected = new Set(ids);
|
|
12307
12307
|
for (const id of ids)
|
|
12308
12308
|
providerInstancesChanging.add(id);
|
|
@@ -12325,9 +12325,9 @@ async function stopCompanyInstances(ids) {
|
|
|
12325
12325
|
watchdog.settle(threadId);
|
|
12326
12326
|
closeOpenApprovals(threadId);
|
|
12327
12327
|
directTurnBots.delete(threadId);
|
|
12328
|
-
routines?.failThread(threadId, "Company connection changed while this thread was running", { stopReason: "interrupted" });
|
|
12328
|
+
routines?.failThread(threadId, removingAccount ? cause : "Company connection changed while this thread was running", { stopReason: "interrupted" });
|
|
12329
12329
|
if (store.taskByThread(botId, threadId)) {
|
|
12330
|
-
store.appendMessage(threadId, { role: "bot", kind: "activity", tool: { name: "Company connection changed — choose whether to reconnect or use a personal model", ok: false } });
|
|
12330
|
+
store.appendMessage(threadId, { role: "bot", kind: "activity", tool: { name: removingAccount ? cause : "Company connection changed — choose whether to reconnect or use a personal model", ok: false } });
|
|
12331
12331
|
store.setTaskActivity(botId, threadId, "idle");
|
|
12332
12332
|
}
|
|
12333
12333
|
}
|
|
@@ -12358,10 +12358,11 @@ async function stopCompanyInstances(ids) {
|
|
|
12358
12358
|
store.patchGroup(group.id, { busyBotId: activeGroupSpeaker(group.id)?.botId ?? null });
|
|
12359
12359
|
store.setActivity(bot.id, "idle");
|
|
12360
12360
|
}
|
|
12361
|
-
|
|
12362
|
-
|
|
12363
|
-
|
|
12364
|
-
|
|
12361
|
+
if (!removingAccount)
|
|
12362
|
+
for (const id of ids) {
|
|
12363
|
+
providerAuthSessions.clearInstance(id);
|
|
12364
|
+
bus.detach(id);
|
|
12365
|
+
}
|
|
12365
12366
|
}
|
|
12366
12367
|
async function persistProviderInstance(instanceId, instances) {
|
|
12367
12368
|
saveConfig({ instances }, { replaceInstances: true });
|
|
@@ -12941,6 +12942,26 @@ const instanceRoutes = createInstanceRoutes({
|
|
|
12941
12942
|
hostedModels: Boolean(hostedModels),
|
|
12942
12943
|
providerConfigBusy: { get: () => providerConfigBusy, set: (busy) => { providerConfigBusy = busy; } },
|
|
12943
12944
|
providerInstancesChanging, describeInstances, persistProviderInstance, configStatus, broadcast, testCliBinary,
|
|
12945
|
+
async reassignAccount(id) {
|
|
12946
|
+
const available = selectableInstances(await registry.describe()).filter(instance => instance.instanceId !== id && readyToRun(instance, selectionContext));
|
|
12947
|
+
const replacement = await defaultSelection(null, available);
|
|
12948
|
+
if (!replacement.instanceId || !replacement.model || !available.some(instance => instance.instanceId === replacement.instanceId))
|
|
12949
|
+
return false;
|
|
12950
|
+
await stopCompanyInstances([id], true);
|
|
12951
|
+
const target = registry.get(replacement.instanceId);
|
|
12952
|
+
store.retireInstances(new Set([id]), replacement, {
|
|
12953
|
+
previousDriver: registry.get(id)?.driverKind,
|
|
12954
|
+
driverKind: target?.driverKind, canWorkOnCloud: canWorkOnCloud(cloudEngine(target)),
|
|
12955
|
+
keepCloud: () => false,
|
|
12956
|
+
});
|
|
12957
|
+
if (cfg.defaultModelSelection?.instanceId === id || cfg.newBotDefaults?.profile.modelSelection?.instanceId === id)
|
|
12958
|
+
saveNewBotModel(replacement);
|
|
12959
|
+
if (cfg.automaticRecovery?.backup?.instanceId === id) {
|
|
12960
|
+
saveConfig({ automaticRecovery: { enabled: false } });
|
|
12961
|
+
cfg.automaticRecovery = { enabled: false };
|
|
12962
|
+
}
|
|
12963
|
+
return true;
|
|
12964
|
+
},
|
|
12944
12965
|
cliProbeEnvironment, threadBusy, botForThread, activeGroupTurnForBot, checkInstance: testedAi.check,
|
|
12945
12966
|
});
|
|
12946
12967
|
ROUTES.push(createCustomDomainRoutes({ desktopManaged: DESKTOP_MANAGED, status: customDomainStatus, verify: (domain) => customDomainVerifier.verify(domain), save: (origin) => { saveConfig({ customDomain: origin }); cfg.customDomain = origin; }, sessionEnded: (auth) => auth.kind === "session" && !sessions.isLive(auth.session.id) }));
|
|
@@ -13870,7 +13891,7 @@ const handleRequest = async (req, res) => {
|
|
|
13870
13891
|
}
|
|
13871
13892
|
if (method === "GET" && path === "/api/internal/agents") {
|
|
13872
13893
|
const sender = internalSender;
|
|
13873
|
-
const bots = personalReach.peers(store.bots, sender, internalCapability.threadId)
|
|
13894
|
+
const bots = personalReach.peers(store.bots, sender, internalCapability.threadId).filter(peer => inCoordinationGroup(sender, peer))
|
|
13874
13895
|
.map((b) => {
|
|
13875
13896
|
const status = peerStatus(b.activity, b.busy);
|
|
13876
13897
|
return {
|
|
@@ -14494,9 +14515,10 @@ const handleRequest = async (req, res) => {
|
|
|
14494
14515
|
return refuse(404, "No such room; use list_room_targets.");
|
|
14495
14516
|
if (destination && destination.id !== source?.id && !outsideLineage.mayReach(address.threadId, destination.threadId))
|
|
14496
14517
|
return refuse(403, OUTSIDE_STAYS_HERE);
|
|
14518
|
+
const coordinationRoster = store.bots.filter(bot => inCoordinationGroup(internalSender, bot));
|
|
14497
14519
|
const botIds = [];
|
|
14498
14520
|
for (const raw of call.botIds) {
|
|
14499
|
-
const resolved = resolveTeammate(
|
|
14521
|
+
const resolved = resolveTeammate(coordinationRoster, internalSender, raw, placesElsewhere.explain, (bot) => (CLOUD_TEAM ? lookedAfterBy(bot, teamHost.personName) : null), { reaches: (bot) => personalReach.listed(internalSender, bot, address.threadId), hides: (bot) => personalReach.hides(internalSender, bot), refusal: (bot) => personalReach.refusal(internalSender, bot, address.threadId) });
|
|
14500
14522
|
if ("error" in resolved)
|
|
14501
14523
|
return refuse(403, resolved.error);
|
|
14502
14524
|
botIds.push(resolved.id);
|
|
@@ -14518,7 +14540,8 @@ const handleRequest = async (req, res) => {
|
|
|
14518
14540
|
const eligibility = target.botId === internalSender.id && !toSelf ? "Choose a teammate, not yourself"
|
|
14519
14541
|
: !addressed ? `No bot with id "${target.botId}" — call list_bots and copy the exact id from the result`
|
|
14520
14542
|
: addressed.hidden ? `The bot with id "${target.botId}" is no longer available — call list_bots for the ones you can reach`
|
|
14521
|
-
:
|
|
14543
|
+
: !inCoordinationGroup(internalSender, addressed) ? "Choose a teammate from your own department."
|
|
14544
|
+
: roomHandoffProblem(target, address) ?? personalReach.handOnProblem(internalSender, addressed, address.threadId, internalCapability.generation);
|
|
14522
14545
|
if (eligibility)
|
|
14523
14546
|
return refuse(403, eligibility);
|
|
14524
14547
|
}
|
|
@@ -14751,7 +14774,7 @@ const handleRequest = async (req, res) => {
|
|
|
14751
14774
|
.map(b => ({ id: b.id, name: b.name, title: b.title, busy: b.busy })),
|
|
14752
14775
|
})).filter(g => g.members.length);
|
|
14753
14776
|
return json(res, 200, { currentRoom: source ? { id: source.id, name: source.name, workingFolder: source.cwd || null } : null,
|
|
14754
|
-
bots: personalReach.peers(store.bots, internalSender, internalCapability.threadId).map(bot => ({ id: bot.id, name: bot.name, title: bot.title, section: bot.section, busy: bot.busy })),
|
|
14777
|
+
bots: personalReach.peers(store.bots, internalSender, internalCapability.threadId).filter(peer => inCoordinationGroup(internalSender, peer)).map(bot => ({ id: bot.id, name: bot.name, title: bot.title, section: bot.section, busy: bot.busy })),
|
|
14755
14778
|
rooms, note: "Each bot uses its own environment and permissions. Files are not transferred: pass absolute paths only when accessible to the recipient, otherwise pass the content." });
|
|
14756
14779
|
}
|
|
14757
14780
|
if (method === "POST" && path === "/api/internal/retry-thread") {
|
|
@@ -27,6 +27,10 @@ export function hasAuthority(from, target) {
|
|
|
27
27
|
export function canManage(from, target) {
|
|
28
28
|
return canReach(from, target) && hasAuthority(from, target);
|
|
29
29
|
}
|
|
30
|
+
export function inCoordinationGroup(from, target) {
|
|
31
|
+
return !from.chiefOfStaff || Boolean(from.defaultBot) || !sectionKey(from.section)
|
|
32
|
+
|| sectionKey(target.section) === sectionKey(from.section);
|
|
33
|
+
}
|
|
30
34
|
const PEER_STATUS_WORDS = {
|
|
31
35
|
available: "available",
|
|
32
36
|
working: "working right now",
|
|
@@ -566,24 +566,26 @@ export function createInstanceRoutes(deps) {
|
|
|
566
566
|
if (!addedChatgpt && !addedAntigravity && !isCodexEndpoint(instances[instanceId]) && !isAddedEndpoint(instanceId, instances[instanceId]) && (instances[instanceId].driver !== "claudeAgent" || instanceId === "claude")) {
|
|
567
567
|
return json(res, 400, { error: "Only added accounts and custom endpoints can be removed here." });
|
|
568
568
|
}
|
|
569
|
-
|
|
569
|
+
const inUse = providerInUse(instanceId) || cfg.newBotDefaults?.profile.modelSelection?.instanceId === instanceId || cfg.automaticRecovery?.backup?.instanceId === instanceId;
|
|
570
|
+
if (inUse && (url.searchParams.get("reassign") !== "1" || !deps.reassignAccount)) {
|
|
570
571
|
return json(res, 409, { error: "Choose another account for the bots and default model using this account before removing it." });
|
|
571
572
|
}
|
|
572
|
-
// OpenMausBot keeps a ChatGPT account's sign-in in its own data folder: removing the account clears it.
|
|
573
|
-
const live = addedChatgpt ? registry.get(instanceId) : undefined;
|
|
574
|
-
if (live?.signOut) {
|
|
575
|
-
try {
|
|
576
|
-
await providerAuthSessions.signOut(live, auth.kind === "session" ? auth.session.id : "loopback");
|
|
577
|
-
}
|
|
578
|
-
catch (error) {
|
|
579
|
-
if (error.code !== "chatgpt_revocation_unconfirmed") {
|
|
580
|
-
return json(res, 409, { error: error instanceof Error ? error.message : String(error), ...userErrorFields(error) });
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
573
|
providerConfigBusy.set(true);
|
|
585
574
|
providerInstancesChanging.add(instanceId);
|
|
586
575
|
try {
|
|
576
|
+
if (inUse && !await deps.reassignAccount(instanceId))
|
|
577
|
+
return json(res, 409, { error: "No other AI agent is ready. Connect another account and retry." });
|
|
578
|
+
const live = addedChatgpt ? registry.get(instanceId) : undefined;
|
|
579
|
+
if (live?.signOut) {
|
|
580
|
+
try {
|
|
581
|
+
await providerAuthSessions.signOut(live, auth.kind === "session" ? auth.session.id : "loopback");
|
|
582
|
+
}
|
|
583
|
+
catch (error) {
|
|
584
|
+
if (error.code !== "chatgpt_revocation_unconfirmed") {
|
|
585
|
+
return json(res, 409, { error: error instanceof Error ? error.message : String(error), ...userErrorFields(error) });
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
}
|
|
587
589
|
delete instances[instanceId];
|
|
588
590
|
await persistProviderInstance(instanceId, instances);
|
|
589
591
|
// An added Antigravity account's Google sign-in lives in Limix Bot's data folder too: removing the account deletes it.
|
|
@@ -1740,7 +1740,7 @@ export class Store {
|
|
|
1740
1740
|
const retired = (selection) => Boolean(selection && ids.has(selection.instanceId));
|
|
1741
1741
|
const without = (record) => Object.fromEntries(Object.entries(record).filter(([key]) => !ids.has(key)));
|
|
1742
1742
|
const touches = (record) => Boolean(record && Object.keys(record).some(key => ids.has(key)));
|
|
1743
|
-
const needsAsk = (target) => modelSwitchNeedsAsk(approvalModeFor(target), REMOVED_COMPUTER_DRIVER, options.driverKind);
|
|
1743
|
+
const needsAsk = (target) => modelSwitchNeedsAsk(approvalModeFor(target), options.previousDriver ?? REMOVED_COMPUTER_DRIVER, options.driverKind);
|
|
1744
1744
|
const askNow = { approvalMode: "ask", autoApprove: false, alwaysAllow: [] };
|
|
1745
1745
|
const changes = [];
|
|
1746
1746
|
const moves = [];
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{U as a,C as n}from"./mermaid.core-DyBxnq9f.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{c as r,s as e}from"./flowDiagram-OXPTDLAJ-DbpnsdSz.js";import{_ as o}from"./mermaid.core-DyBxnq9f.js";import"./chunk-5VM5RSS4-DYH4c-ax.js";import"./chunk-XXDRQBXY-D0Z9X15P.js";import"./chunk-KQW6MTUR-RtfxoMR0.js";import"./chunk-7TKQ45FW-BmQUAA8g.js";import"./channel--G0H2dDa.js";import"./styles-dQeXpYRh.js";import"./step-CkmJJ7wq.js";var a=o(t=>`${e(t)}
|
|
2
|
-
.swimlane.cluster:not([data-color-id]) rect {
|
|
3
|
-
stroke: ${t.clusterBorder} !important;
|
|
4
|
-
}
|
|
5
|
-
[data-look="neo"].cluster rect {
|
|
6
|
-
filter: none;
|
|
7
|
-
}
|
|
8
|
-
`,"getStyles"),m=a,y=r({styles:m});export{y as diagram};
|