fuli-context 0.27.3 → 0.27.4
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/web/assets/{AboutPage-C-fJv2EQ.js → AboutPage-DJxp-WMU.js} +1 -1
- package/dist/web/assets/{AboutSectionHeading-DLjnjHfb.js → AboutSectionHeading-BUu85T3-.js} +1 -1
- package/dist/web/assets/{AgentAppsPage-CBcUlh8U.js → AgentAppsPage-Di4HU1sH.js} +1 -1
- package/dist/web/assets/{AgentAvatar-Cu_TwSqc.js → AgentAvatar-N7IaseYC.js} +1 -1
- package/dist/web/assets/{AgentHand-1yBhYv72.js → AgentHand-BDCERx8p.js} +1 -1
- package/dist/web/assets/{AgentManagement-D8jHUEWK.js → AgentManagement-CJLZoyuq.js} +1 -1
- package/dist/web/assets/{AgentMentionCopy-BRxaxi6r.js → AgentMentionCopy-Cpsy2XwV.js} +1 -1
- package/dist/web/assets/{AgentName-CL8xix6s.js → AgentName-B150JTrl.js} +1 -1
- package/dist/web/assets/{AgentProfilePage-BosYAypt.js → AgentProfilePage-rckt2qEt.js} +3 -3
- package/dist/web/assets/{AgentServicesPage-BQHw7Cyx.js → AgentServicesPage-_rY596Cl.js} +1 -1
- package/dist/web/assets/{AppViewerPage-CO5-dW38.js → AppViewerPage-Kq3r1mwI.js} +1 -1
- package/dist/web/assets/{BackToTop-dl4Y4CgO.js → BackToTop-Da6u7_d8.js} +1 -1
- package/dist/web/assets/{BoardCardFieldsMenu-BBqsgCq8.js → BoardCardFieldsMenu-CyJSO3vT.js} +1 -1
- package/dist/web/assets/{BoardMoveMenu-Rys8yvXz.js → BoardMoveMenu-B_lUROwH.js} +1 -1
- package/dist/web/assets/{Breadcrumb-DXXN0moP.js → Breadcrumb-CA0zg3OI.js} +1 -1
- package/dist/web/assets/{CaptureChangePage-lNiPS4XI.js → CaptureChangePage-nnCFkG4H.js} +1 -1
- package/dist/web/assets/Collection-CL-ehAUe.js +1 -0
- package/dist/web/assets/{CopyFixPrompt-Cpve4rdS.js → CopyFixPrompt-Bp3GsUzJ.js} +1 -1
- package/dist/web/assets/{DataFormatPage-DpBIwY-n.js → DataFormatPage-COPJnuZH.js} +1 -1
- package/dist/web/assets/{DebugTurnPage-DzJ07GMF.js → DebugTurnPage-CuREiHr-.js} +1 -1
- package/dist/web/assets/{DebugTurnsPage-CNAeNt5i.js → DebugTurnsPage-i2jPDad3.js} +1 -1
- package/dist/web/assets/{DialogTitle-D0EVi01-.js → DialogTitle-aiTJ0Qmu.js} +1 -1
- package/dist/web/assets/{EmployeeRedirectPage-qlH0SVZY.js → EmployeeRedirectPage-DPSjSW-l.js} +1 -1
- package/dist/web/assets/{EmployeeScopeDialog-C4B724Jj.js → EmployeeScopeDialog-Bui2TPpl.js} +1 -1
- package/dist/web/assets/{EmployeeWorkbench-BgpxZ_1F.js → EmployeeWorkbench-DAC8kuJP.js} +1 -1
- package/dist/web/assets/FieldRoot-B2x8LUg_.js +1 -0
- package/dist/web/assets/{FlaBlockedTasks-DGw9I-j7.js → FlaBlockedTasks-Ds1c5xaw.js} +1 -1
- package/dist/web/assets/{FlaGrowth-Ct4GbCJZ.js → FlaGrowth-CJSExsDl.js} +1 -1
- package/dist/web/assets/{FlaOccupationKit-Cbx058JA.js → FlaOccupationKit-yibMGA7g.js} +1 -1
- package/dist/web/assets/{FlaTaskSheets-CoWj7Gw3.js → FlaTaskSheets-CJSjxa9s.js} +1 -1
- package/dist/web/assets/{FlasPage-BGrz_P1x.js → FlasPage-BvIsNjmr.js} +1 -1
- package/dist/web/assets/{GrowthLoading-BHxVzIoM.js → GrowthLoading-Ddj4TqCR.js} +1 -1
- package/dist/web/assets/HowtoPage-kSC2Tym0.js +1 -0
- package/dist/web/assets/{InboxPage-ByZQpihN.js → InboxPage-Qfx9kB6z.js} +3 -3
- package/dist/web/assets/{KnowledgeDeleteButton-dvslN7EO.js → KnowledgeDeleteButton-yq2NE_5V.js} +1 -1
- package/dist/web/assets/{KnowledgeHardDeleteSection-DMARNrze.js → KnowledgeHardDeleteSection-DYLuMTkw.js} +1 -1
- package/dist/web/assets/{KnowledgeItemEditPage-D7X3K-Fu.js → KnowledgeItemEditPage-C_6CCT0l.js} +1 -1
- package/dist/web/assets/{KnowledgeItemSummaryCard-Carpboje.js → KnowledgeItemSummaryCard-DaS6I6IJ.js} +1 -1
- package/dist/web/assets/{KnowledgeOrganizerPage-CdFva4xO.js → KnowledgeOrganizerPage-C0TW5FWc.js} +1 -1
- package/dist/web/assets/KnowledgePage-CpU8zlbY.js +1 -0
- package/dist/web/assets/{KnowledgePeek-C4QSXTOF.js → KnowledgePeek-C8KO5NBx.js} +1 -1
- package/dist/web/assets/{KnowledgeTurnReceiptPage-CY85DtmF.js → KnowledgeTurnReceiptPage-Bss7rO8X.js} +1 -1
- package/dist/web/assets/{KnowledgeWorkspace-Be2gUul5.css → KnowledgeWorkspace-B2YB4aaQ.css} +1 -1
- package/dist/web/assets/KnowledgeWorkspace-NBt_5LEZ.js +4 -0
- package/dist/web/assets/{MeAvatar-WSCaLEJ1.js → MeAvatar-ec_0AfqZ.js} +1 -1
- package/dist/web/assets/{MeLink-rP0IiTaj.js → MeLink-mcOCZh0y.js} +1 -1
- package/dist/web/assets/MenuSeparator-BdUe-nrq.js +1 -0
- package/dist/web/assets/ModelSettingsPage-DG4g9dZG.js +1 -0
- package/dist/web/assets/{NewSessionPanel-DNYTQ0Lw.js → NewSessionPanel-Dp9REysi.js} +1 -1
- package/dist/web/assets/{NotFoundPage-BbnR0KYy.js → NotFoundPage-mQNgXOdV.js} +1 -1
- package/dist/web/assets/NoticeRow-CVxAQhy5.js +1 -0
- package/dist/web/assets/NoticeRow-ktVO_9Es.css +1 -0
- package/dist/web/assets/{OccupationsPage-DQGGceta.js → OccupationsPage-M2bNGjfX.js} +1 -1
- package/dist/web/assets/{PageOutline-nKD_AvCJ.js → PageOutline-BIuKlaez.js} +1 -1
- package/dist/web/assets/{PageStack-BVHOFq7x.js → PageStack-CJdqrH8a.js} +1 -1
- package/dist/web/assets/{PersonalProfilePage-Cm1NxyU0.js → PersonalProfilePage-CbgimIFG.js} +1 -1
- package/dist/web/assets/PersonalProjectsPage-Dm38FUPv.js +1 -0
- package/dist/web/assets/{PinIcon-DxjWqB7x.js → PinIcon-DBS7pHXp.js} +1 -1
- package/dist/web/assets/PopperContent-DyZQrl-r.js +1 -0
- package/dist/web/assets/{Presence-DrSz_UA1.js → Presence-wz-KVyjT.js} +1 -1
- package/dist/web/assets/{ProfileAuthorChip-CN1ZYzKN.js → ProfileAuthorChip-DAY42zZ8.js} +1 -1
- package/dist/web/assets/{ProjectAgentsPage-DMnRnXDT.js → ProjectAgentsPage-BKWGB-4t.js} +1 -1
- package/dist/web/assets/{ProjectJudgmentPolicy-DBszt68M.js → ProjectJudgmentPolicy-D1UHlAih.js} +1 -1
- package/dist/web/assets/RequesterModeSelect-BpaRF_th.js +1 -0
- package/dist/web/assets/RequesterModeSelect-DH1PGLmn.css +1 -0
- package/dist/web/assets/{RoundtablesPage-QtNyNaDg.js → RoundtablesPage-9mlvO7FV.js} +1 -1
- package/dist/web/assets/RovingFocusGroup-CHDkM3pP.js +1 -0
- package/dist/web/assets/RovingFocusItem-H6anRCEm.js +1 -0
- package/dist/web/assets/{SessionMigrationPage-Chm5L6p4.js → SessionMigrationPage-DZfyUaJe.js} +1 -1
- package/dist/web/assets/{SessionRecordsPage-BHPaCRH-.js → SessionRecordsPage-CK6iztwv.js} +1 -1
- package/dist/web/assets/SettingsPage-CVM1Gw0D.js +1 -0
- package/dist/web/assets/{SettingsPage-CnqtNPWd.css → SettingsPage-DqZGF8J1.css} +1 -1
- package/dist/web/assets/{SharedJefaReportPage-DHD4As4b.js → SharedJefaReportPage-cfEk0Tzn.js} +1 -1
- package/dist/web/assets/{StatementCalendarPage-lkq1OrUT.js → StatementCalendarPage-OmZa4AdL.js} +1 -1
- package/dist/web/assets/{StatementRows-DS-_XbkC.js → StatementRows-Cdv1wlMo.js} +1 -1
- package/dist/web/assets/{TagVocabularyPage-ap97B1fd.js → TagVocabularyPage-C9pRT-Co.js} +1 -1
- package/dist/web/assets/{TaskBlockerClear-xmjIgmON.js → TaskBlockerClear-BGpJYYbz.js} +1 -1
- package/dist/web/assets/{TaskBlockerNotice-D3awZbiX.js → TaskBlockerNotice-BtOREiqc.js} +1 -1
- package/dist/web/assets/{TaskReason-Y_gLRUR4.js → TaskReason-Dys3TUp_.js} +1 -1
- package/dist/web/assets/{TeamCard-C5BOBfgK.js → TeamCard-D7FU45G4.js} +1 -1
- package/dist/web/assets/{TeamCardsWidget-jLieh7GV.js → TeamCardsWidget-hYsXSXcW.js} +1 -1
- package/dist/web/assets/{TeamIsland-C2U6j6W0.js → TeamIsland-Bw875ekj.js} +1 -1
- package/dist/web/assets/{Teleport-RJS88HRO.js → Teleport-DcReQWaw.js} +1 -1
- package/dist/web/assets/{TextField-CwecNrfC.js → TextField-BO5vPcVo.js} +1 -1
- package/dist/web/assets/TodayPage-D9HV_tMn.js +1 -0
- package/dist/web/assets/TodayPage-uBkMchn5.css +1 -0
- package/dist/web/assets/{TonborgDelegationSwitch-C9jrfVCw.js → TonborgDelegationSwitch-TCl6Nu4Q.js} +1 -1
- package/dist/web/assets/{UiChip-DLTDKZh9.js → UiChip-BDaNYy7i.js} +1 -1
- package/dist/web/assets/{UiDialog-u4ZkP4DG.js → UiDialog-CkrPgXkI.js} +1 -1
- package/dist/web/assets/{UiDisclosure-CKVkr79z.js → UiDisclosure-DHBkq9rj.js} +1 -1
- package/dist/web/assets/{UiIcon-D2DJw7hg.js → UiIcon-BBBPl7ce.js} +1 -1
- package/dist/web/assets/{UiSegmented-D6pLjXXW.js → UiSegmented-EzA-Ehx4.js} +1 -1
- package/dist/web/assets/{UiWeight-BOEi9suT.js → UiWeight-EHzBhu5a.js} +1 -1
- package/dist/web/assets/{VirtualDirectoryList-BX3eeyRo.js → VirtualDirectoryList-BJrM_eeP.js} +1 -1
- package/dist/web/assets/VisitRequestDialog-ISewTzM3.css +1 -0
- package/dist/web/assets/VisitRequestDialog-jbgJBF2e.js +1 -0
- package/dist/web/assets/VisitRequestsPage-Bkxxiaxy.js +1 -0
- package/dist/web/assets/VisitRequestsPage-DfIzoLBx.css +1 -0
- package/dist/web/assets/{VisuallyHidden-DjqI8CEj.js → VisuallyHidden-CgxInDXj.js} +1 -1
- package/dist/web/assets/VisuallyHiddenInput-CaWSS7uB.js +1 -0
- package/dist/web/assets/WidgetSlot-DENSHLjb.js +2 -0
- package/dist/web/assets/WorkbenchListPage-J-UpUosh.js +1 -0
- package/dist/web/assets/_plugin-vue_export-helper-B0wc-mt_.js +9 -0
- package/dist/web/assets/{agent-apps-CFWQ-pVX.js → agent-apps-BNje45bS.js} +1 -1
- package/dist/web/assets/agent-occupation-aAG5t3l1.js +1 -0
- package/dist/web/assets/{agent-pins-XtAvsJ8S.js → agent-pins-BCrkTGGW.js} +1 -1
- package/dist/web/assets/{agent-roster-records-DiZKG26q.js → agent-roster-records-BFUsBcZY.js} +1 -1
- package/dist/web/assets/{agent-work-summary-CvHRy3NR.js → agent-work-summary-B_VLOm6o.js} +1 -1
- package/dist/web/assets/{attach-closest-edge-De5463t-.js → attach-closest-edge-BPnS_9Lk.js} +1 -1
- package/dist/web/assets/{attention-store-CWRvv8xT.js → attention-store-qIzsiW3O.js} +1 -1
- package/dist/web/assets/{badge-CyUHAZlb.js → badge-CtWdRMi-.js} +1 -1
- package/dist/web/assets/{button-DgFpUg62.js → button-_gyKncGb.js} +1 -1
- package/dist/web/assets/{card-BG73LSt9.js → card-BYD6uklY.js} +1 -1
- package/dist/web/assets/{catalog-KaWiF7K5.js → catalog-PjA5J9yg.js} +1 -1
- package/dist/web/assets/checkbox-5re4FS0U.js +1 -0
- package/dist/web/assets/{client-eeoB__-w.js → client-LxAXnO12.js} +1 -1
- package/dist/web/assets/{client-links-store-C1T7b2HQ.js → client-links-store-CYdBPEgD.js} +1 -1
- package/dist/web/assets/combobox-BPUtDA5_.js +1 -0
- package/dist/web/assets/{console-KA3Jxkr4.js → console-D45-ZZfX.js} +1 -1
- package/dist/web/assets/{conversation-launcher-settings-QWrAaAPe.js → conversation-launcher-settings-BS2bz1uR.js} +1 -1
- package/dist/web/assets/copy-mention-D0xSzmH6.js +1 -0
- package/dist/web/assets/{dialog-CPHmFum7.js → dialog-xaUosJps.js} +1 -1
- package/dist/web/assets/{dist-CTCo5IXd.js → dist-C0lQzDOh.js} +1 -1
- package/dist/web/assets/{dist-e1tihV1g.js → dist-C1Hez3C6.js} +1 -1
- package/dist/web/assets/dropdown-menu-8tDY2fah.js +1 -0
- package/dist/web/assets/{field-8F_Pt8vb.js → field-B9eFY0rX.js} +1 -1
- package/dist/web/assets/{format-bytes-DkVJGLsS.js → format-bytes-DHztF0Wp.js} +1 -1
- package/dist/web/assets/{hover-card-Db-Mrxk6.js → hover-card-CCcSIBsB.js} +1 -1
- package/dist/web/assets/{identity-wfQfyysH.js → identity-CW-Srg08.js} +1 -1
- package/dist/web/assets/{index-CRSH-FaE.js → index-CpxVWv-F.js} +3 -3
- package/dist/web/assets/{input-DFTIPfkE.js → input-BiH7RC9P.js} +1 -1
- package/dist/web/assets/{label-BDet7nvg.js → label-BdftnoQ0.js} +1 -1
- package/dist/web/assets/label-table-CLQKbitJ.js +1 -0
- package/dist/web/assets/{model-C7J0jC4U.js → model-C7tDPa_1.js} +1 -1
- package/dist/web/assets/{model-LXhsHZ_S.js → model-Cg5zXaMF.js} +1 -1
- package/dist/web/assets/{model-BwEuimI0.js → model-DDyIT1eK.js} +1 -1
- package/dist/web/assets/{model-Bzgg7OTO.js → model-DMd25lv5.js} +1 -1
- package/dist/web/assets/{model-DFuUc43Z.js → model-DXpi8vqS.js} +1 -1
- package/dist/web/assets/{model-D3j-Q4br.js → model-DaJv8e-8.js} +1 -1
- package/dist/web/assets/{model-DGpMX2GY.js → model-Q1SCdf0F.js} +1 -1
- package/dist/web/assets/{model-WhGp0XZv.js → model-qBLcWPQW.js} +1 -1
- package/dist/web/assets/{motion-0KGuL0P9.js → motion-4AmdlpVT.js} +1 -1
- package/dist/web/assets/{motion-BhDwEDuX.js → motion-D-GVIJyc.js} +1 -1
- package/dist/web/assets/{motion-preference--VYomm-z.js → motion-preference-CXHE1-Z7.js} +1 -1
- package/dist/web/assets/{occupation-catalog-D5SQWfUI.js → occupation-catalog-CsWai-cw.js} +1 -1
- package/dist/web/assets/{occupation-kits-CrqixyUx.js → occupation-kits-CZQzDPeY.js} +1 -1
- package/dist/web/assets/{option-C9CkqCvy.js → option-B_OFUmRs.js} +1 -1
- package/dist/web/assets/{orchestration-filters-DTnWbCEm.js → orchestration-filters-DqAPmniI.js} +1 -1
- package/dist/web/assets/{overview-data-BvW9uhT4.js → overview-data-BbAd5G_f.js} +1 -1
- package/dist/web/assets/{page-refresh-GRJ3nMpT.js → page-refresh-abwcdMEQ.js} +1 -1
- package/dist/web/assets/{page-title-B9HNL7K4.js → page-title-cvuGZaZo.js} +1 -1
- package/dist/web/assets/{person-profile-Cng7edLa.js → person-profile-C8eoODdy.js} +1 -1
- package/dist/web/assets/{popover-BgaSR8Zf.js → popover-h4zQ7MDI.js} +1 -1
- package/dist/web/assets/popup-host-8S4Sf9UR.js +1 -0
- package/dist/web/assets/{preference-conflicts-WphCdbo6.js → preference-conflicts-Cu00Gk8W.js} +1 -1
- package/dist/web/assets/{profile-model-B9K6ylO1.js → profile-model-BZIzIQTS.js} +1 -1
- package/dist/web/assets/{project-board-layout-GxgeqkX4.js → project-board-layout-DxdyuEpb.js} +1 -1
- package/dist/web/assets/{project-capture-C6NQkcJw.js → project-capture-BQ0ryWdP.js} +1 -1
- package/dist/web/assets/{project-origin-DuSzjbhd.js → project-origin-CdqHLvij.js} +1 -1
- package/dist/web/assets/{quick-edit-api-BDFnInRp.js → quick-edit-api-sf5vVWXR.js} +1 -1
- package/dist/web/assets/radio-group-BdWVlNgf.js +1 -0
- package/dist/web/assets/{review-api-D31JYGWJ.js → review-api-Cbrwrt6C.js} +1 -1
- package/dist/web/assets/{review-list-Cvacm108.js → review-list-D18L_t-q.js} +1 -1
- package/dist/web/assets/{review-store-D7_Vfhh7.js → review-store-1jNUbNaJ.js} +1 -1
- package/dist/web/assets/{role-names-DebBvCND.js → role-names-CiUKQtV9.js} +1 -1
- package/dist/web/assets/{roundtable-live-DfN7Sw9Q.js → roundtable-live-BzB34cUe.js} +1 -1
- package/dist/web/assets/{runtime-dom.esm-bundler-DBdCxLeu.js → runtime-dom.esm-bundler-BwoD95K8.js} +1 -1
- package/dist/web/assets/select-D9sqPsDx.js +1 -0
- package/dist/web/assets/{session-launch-offers-BO40dDPk.js → session-launch-offers-BOZp9NmT.js} +1 -1
- package/dist/web/assets/{settings-autosave-q7Wr9G3O.js → settings-autosave-F9mwjeN-.js} +1 -1
- package/dist/web/assets/{settings-tabs-C9VDs91j.css → settings-tabs-D8608YHW.css} +1 -1
- package/dist/web/assets/settings-tabs-dWS8xFQR.js +1 -0
- package/dist/web/assets/{shared-report-j27wViAk.js → shared-report-BmpdFBj3.js} +3 -3
- package/dist/web/assets/{source-adapters-D3VpWZ6y.js → source-adapters-CZGvDHoP.js} +1 -1
- package/dist/web/assets/switch-BFhMPFpu.js +1 -0
- package/dist/web/assets/tabs-B6N6pM8p.js +1 -0
- package/dist/web/assets/{task-card-fields-CR_cHUml.js → task-card-fields-G9NoV8iz.js} +1 -1
- package/dist/web/assets/{task-labels-C6FR9pf_.js → task-labels-Y0y3oeAL.js} +1 -1
- package/dist/web/assets/{task-reason-C2NjR8__.js → task-reason-D84kviwH.js} +1 -1
- package/dist/web/assets/{team-sheets-5rb7d8An.js → team-sheets-DtMFWcPH.js} +1 -1
- package/dist/web/assets/{textarea-BW51g0FT.js → textarea-8EWEgEpw.js} +1 -1
- package/dist/web/assets/{ui-rJlFkhnh.js → ui-BxmkvkMK.js} +1 -1
- package/dist/web/assets/{useAgentRecords-BDEGuChX.js → useAgentRecords-D5CXJVEf.js} +1 -1
- package/dist/web/assets/{useAgentWorkSummary-B7fcYNAf.js → useAgentWorkSummary-D1Ep9uAl.js} +1 -1
- package/dist/web/assets/{useApi-CROJJdhE-CXkEmQ40.js → useApi-CROJJdhE-Cb6lwzpM.js} +1 -1
- package/dist/web/assets/{useClipboardCopy-CLyPUkax.js → useClipboardCopy-C3PFlW0X.js} +1 -1
- package/dist/web/assets/{useFocusReturn-BzZRnzjC.js → useFocusReturn-B73WeAHQ.js} +1 -1
- package/dist/web/assets/useFormControl-DwHlZ4bV.js +1 -0
- package/dist/web/assets/{useForwardExpose-BFvXozfQ.js → useForwardExpose-4rpHye8H.js} +1 -1
- package/dist/web/assets/{useForwardPropsEmits-BQIBYWrX.js → useForwardPropsEmits-DX7VZylm.js} +1 -1
- package/dist/web/assets/useForwardScopeId-BJDKoqyi.js +1 -0
- package/dist/web/assets/{useKnowledgeConfirm-B7ljY3BE.js → useKnowledgeConfirm-yhZ8Iqzc.js} +1 -1
- package/dist/web/assets/{useKnowledgeItemPeek-W54o0cXF.js → useKnowledgeItemPeek-D-zThKj5.js} +1 -1
- package/dist/web/assets/useListPages-BNB3C09x.js +1 -0
- package/dist/web/assets/{useMinimumLoadingDisplay-i0As_nIh.js → useMinimumLoadingDisplay-DzHl6chR.js} +1 -1
- package/dist/web/assets/{useNow-w9sbWus7.js → useNow-ChD63hSg.js} +1 -1
- package/dist/web/assets/{usePageTools-ChjnsxqE.js → usePageTools-D3N7UX5-.js} +1 -1
- package/dist/web/assets/usePrimitiveElement-CdgGZRug.js +1 -0
- package/dist/web/assets/{useProjectAgentRoster-Cv-2h61l.js → useProjectAgentRoster-BhjNHid8.js} +1 -1
- package/dist/web/assets/{useRoutePeek-6T3XqFw1.js → useRoutePeek-C2k0liTX.js} +1 -1
- package/dist/web/assets/{useTeamWork-rjEihEaF.js → useTeamWork-Bo2hjiA1.js} +1 -1
- package/dist/web/assets/{useTypeahead-BBlzBvAi.js → useTypeahead-DTOx7gNa.js} +1 -1
- package/dist/web/assets/{utils-DVo87S8o.js → utils-DXRJ1hJ4.js} +1 -1
- package/dist/web/assets/utils-DeBPoCtM.js +1 -0
- package/dist/web/assets/{verification-BKmnZihv.js → verification-DRKJF06P.js} +1 -1
- package/dist/web/assets/{version-BYqyCHiB.js → version-B2XiHNBv.js} +1 -1
- package/dist/web/assets/{vue-router-BJZE7CCr.js → vue-router-CbcwRkrV.js} +1 -1
- package/dist/web/assets/{NoticeRow-DD-J76Yo.css → workbench-card-Dt0820yW.css} +1 -1
- package/dist/web/index.html +76 -75
- package/docs/agent-roundtable.md +210 -1
- package/graph-provider/pyproject.toml +1 -1
- package/native/win32/fuli-win-helper.exe +0 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/packages/roundtable/src/agents/claude-code/constrained-run.js +58 -0
- package/packages/roundtable/src/agents/claude-code/wake.js +24 -9
- package/packages/roundtable/src/agents/codex/wake.js +25 -7
- package/packages/roundtable/src/agents/wake-usage.js +14 -0
- package/packages/roundtable/src/host.js +14 -2
- package/packages/roundtable/src/peer/lan-addresses.js +8 -2
- package/packages/roundtable/src/peer/peer-port.js +2 -2
- package/packages/roundtable/src/peer/peer-runtime.js +20 -2
- package/packages/roundtable/src/peer/protocol.js +25 -4
- package/packages/roundtable/src/peer/query-answer.js +39 -7
- package/packages/roundtable/src/peer/runner.js +5 -4
- package/packages/roundtable/src/roundtable/constrained-run.js +48 -0
- package/packages/roundtable/src/roundtable/group-discussion.js +1 -1
- package/packages/roundtable/src/roundtable/service.js +57 -17
- package/packages/roundtable/src/roundtable/store.js +7 -1
- package/packages/roundtable/src/roundtable/wake-attempt-store.js +21 -6
- package/packages/roundtable/src/roundtable/wake-claim-release.js +20 -12
- package/packages/roundtable/src/roundtable/wake-failure.js +7 -3
- package/packages/roundtable/src/roundtable/wake.js +32 -11
- package/skills/capturing-session-knowledge/references/coordination.md +8 -0
- package/skills/operating-fuli/SKILL.md +8 -1
- package/skills/operating-fuli/references/workflow-recipes.md +4 -0
- package/src/agent-kits/fuli-mcp-entry.js +25 -0
- package/src/agent-roundtable/tools.js +6 -3
- package/src/agent-tools/interface-catalog.js +16 -2
- package/src/agent-tools/statement-definitions.js +3 -1
- package/src/agents/claude-code/hook-contract.js +29 -0
- package/src/agents/claude-code/lifecycle-event.js +337 -0
- package/src/agents/claude-code/lifecycle-hook.js +10 -296
- package/src/agents/codex/hook-contract.js +31 -0
- package/src/agents/codex/lifecycle-event.js +350 -0
- package/src/agents/codex/lifecycle-hook.js +10 -326
- package/src/agents/lifecycle-events.js +75 -0
- package/src/agents/lifecycle-failure.js +3 -2
- package/src/agents/lifecycle-forwarder.js +268 -0
- package/src/agents/lifecycle-hook-calls.js +93 -0
- package/src/agents/source-applications.js +8 -0
- package/src/agents/token-usage-resolver.js +10 -0
- package/src/data-format/data-newer-than-package.js +65 -0
- package/src/data-format/local-stores.js +1 -1
- package/src/desktop/failed-update-recovery.js +80 -0
- package/src/desktop/macos-app-update.js +86 -22
- package/src/desktop/windows-installation-switch.js +83 -21
- package/src/desktop/windows-rollback.js +4 -4
- package/src/desktop/windows-tray-update.js +1 -1
- package/src/desktop/windows-update-command.js +4 -1
- package/src/desktop/windows-update.js +4 -4
- package/src/diagnostics/failure-records.js +2 -2
- package/src/diagnostics/safe-event.js +34 -0
- package/src/graphiti/federated-application.js +2 -1
- package/src/graphiti/local-runtimes.js +22 -2
- package/src/graphiti/project-agent-task-sessions.js +1 -8
- package/src/graphiti/roundtable-host.js +15 -2
- package/src/graphiti/runtime-config.js +3 -1
- package/src/graphiti/task-context-entry.js +6 -3
- package/src/guest-access/failed-bearer-limit.js +31 -0
- package/src/guest-access/guest-card.js +22 -0
- package/src/guest-access/guest-mcp.js +34 -0
- package/src/guest-access/guest-routes.js +144 -0
- package/src/guest-access/listener.js +152 -0
- package/src/guest-access/refusal-tally.js +37 -0
- package/src/guest-access/runtime.js +117 -0
- package/src/http/api-router.js +8 -1
- package/src/http/guest-links-api-router.js +42 -0
- package/src/http/lifecycle-hooks-api-router.js +128 -0
- package/src/http/response.js +7 -6
- package/src/http/statement-api-router.js +10 -3
- package/src/http/visitor-access-api-router.js +29 -15
- package/src/judgment/routing.js +6 -1
- package/src/knowledge-impressions/store.js +30 -6
- package/src/local-runtime/console-autostart-record.js +10 -0
- package/src/local-runtime/console-health.js +7 -2
- package/src/local-runtime/lifecycle.js +2 -3
- package/src/mcp/http-session-transport.js +384 -0
- package/src/mcp/remote-http-server.js +27 -357
- package/src/native-runtime/runtime.js +28 -3
- package/src/native-runtime/windows-processes.js +6 -6
- package/src/presence/windows-helper-pin.js +1 -1
- package/src/server/lan-access.js +43 -9
- package/src/server.js +31 -2
- package/src/setup/graph-runtime.js +10 -6
- package/src/statement/agent-tool.js +16 -8
- package/src/statement/compounding-statement.js +55 -0
- package/src/system/doctor.js +1 -1
- package/src/system/fuli-process-scan.js +81 -0
- package/src/system/system-service.js +2 -2
- package/src/text/local-paths.js +61 -11
- package/src/visit-requests/auto-envelope.js +101 -0
- package/src/visit-requests/git-names.js +10 -0
- package/src/visit-requests/http.js +105 -0
- package/src/visit-requests/peer-entry.js +18 -0
- package/src/visit-requests/records.js +140 -0
- package/src/visit-requests/runner.js +164 -0
- package/src/visit-requests/service.js +575 -0
- package/src/visit-requests/worktree.js +351 -0
- package/src/visitor-access/guest-links.js +75 -0
- package/src/visitor-access/port.js +82 -7
- package/src/visitor-access/rate-limit.js +23 -0
- package/src/visitor-access/store.js +124 -3
- package/src/whats-new/lines/0.27.4.json +13 -0
- package/dist/web/assets/FieldRoot-oxmAMICi.js +0 -1
- package/dist/web/assets/HowtoPage-Dx7xGKQi.js +0 -1
- package/dist/web/assets/KnowledgePage-CwrWmdLl.js +0 -1
- package/dist/web/assets/KnowledgeWorkspace-D8Q8usZc.js +0 -4
- package/dist/web/assets/MenuSeparator-C_h65gsb.js +0 -1
- package/dist/web/assets/ModelSettingsPage-B_Udk6b7.js +0 -1
- package/dist/web/assets/NoticeRow-CcQ1J4wZ.js +0 -1
- package/dist/web/assets/PersonalProjectsPage-CgqC4u77.js +0 -1
- package/dist/web/assets/PopperContent-BkTZlJWP.js +0 -1
- package/dist/web/assets/RovingFocusGroup-Dvddk8pN.js +0 -1
- package/dist/web/assets/RovingFocusItem-Ck-FCX8l.js +0 -1
- package/dist/web/assets/SettingsPage-C80ljt40.js +0 -1
- package/dist/web/assets/TodayPage-EJ8SWFE0.css +0 -1
- package/dist/web/assets/TodayPage-wkVzpeI1.js +0 -1
- package/dist/web/assets/VisuallyHiddenInput-Cc2Qp6aL.js +0 -1
- package/dist/web/assets/WidgetSlot-7bCPwUl2.js +0 -2
- package/dist/web/assets/WorkbenchListPage-DlE6S2WC.js +0 -1
- package/dist/web/assets/_plugin-vue_export-helper-BXUcxlz4.js +0 -9
- package/dist/web/assets/agent-occupation-BQG-rvnx.js +0 -1
- package/dist/web/assets/checkbox-DNX0E3Ym.js +0 -1
- package/dist/web/assets/combobox-BG6YUVkp.js +0 -1
- package/dist/web/assets/copy-mention-BwT-8AqP.js +0 -1
- package/dist/web/assets/dropdown-menu-BScsuHhH.js +0 -1
- package/dist/web/assets/label-table-BVh638Sy.js +0 -1
- package/dist/web/assets/popup-host-CFQVWMSj.js +0 -1
- package/dist/web/assets/radio-group-D6RUfdDr.js +0 -1
- package/dist/web/assets/select-C0ecw2Gn.js +0 -1
- package/dist/web/assets/settings-tabs-D7-3akvW.js +0 -1
- package/dist/web/assets/switch-ClI3aPV3.js +0 -1
- package/dist/web/assets/tabs-BYpn35nj.js +0 -1
- package/dist/web/assets/useDirection-hD2Ki6e_.js +0 -1
- package/dist/web/assets/useForwardScopeId-DJpBz5AW.js +0 -1
- package/dist/web/assets/usePrimitiveElement-tPtHrVAh.js +0 -1
- package/dist/web/assets/utils-Bhge2HAf.js +0 -1
- package/src/system/mcp-process-scan.js +0 -55
|
@@ -4,7 +4,13 @@ import { tmpdir } from 'node:os';
|
|
|
4
4
|
import { basename, dirname, join, resolve } from 'node:path';
|
|
5
5
|
import { setTimeout as delay } from 'node:timers/promises';
|
|
6
6
|
|
|
7
|
+
import { dataNewerThanThisPackage } from '../data-format/data-newer-than-package.js';
|
|
8
|
+
import { waitForConsoleStarts } from '../local-runtime/console-autostart-record.js';
|
|
7
9
|
import { readMacosNativeBundle } from '../native-runtime/macos-assets.js';
|
|
10
|
+
import {
|
|
11
|
+
consoleLeftRunning, consoleStillRunning, failedStartError, keepNewVersionOnNewerData, newVersionDidNotStop,
|
|
12
|
+
previousVersionBlocked, reasonText, startsBusyBeforeUpdate, startsStillRunning
|
|
13
|
+
} from './failed-update-recovery.js';
|
|
8
14
|
import { downloadVerifiedReleaseAsset, failure } from './release-asset.js';
|
|
9
15
|
|
|
10
16
|
// The console's one-click update of FULI.app, the macOS twin of the Windows
|
|
@@ -12,14 +18,18 @@ import { downloadVerifiedReleaseAsset, failure } from './release-asset.js';
|
|
|
12
18
|
// .dmg, copy the new FULI.app next to the installed one, stop FULI and close
|
|
13
19
|
// its window, swap the two bundles, start FULI from the new one, refresh the
|
|
14
20
|
// Agent clients that were already connected (setup --connected-only, as the
|
|
15
|
-
// Windows switch does) and open its window again. A new version that does not
|
|
16
|
-
//
|
|
21
|
+
// Windows switch does) and open its window again. A new version that does not
|
|
22
|
+
// start is swapped back only when it stopped and the previous one can run on
|
|
23
|
+
// the data (recover below). The data directory is never touched. Runs in
|
|
17
24
|
// the console's detached update worker, on the old bundle's Node, which keeps
|
|
18
25
|
// running after its bundle moves.
|
|
19
26
|
//
|
|
20
27
|
// Failures carry .code for the page's Chinese message: not_installed,
|
|
21
|
-
// no_permission, download_failed, checksum_mismatch, start_failed (rolled back
|
|
22
|
-
// rollback_failed
|
|
28
|
+
// no_permission, download_failed, checksum_mismatch, start_failed (rolled back
|
|
29
|
+
// and the previous version runs), rollback_failed (switching back did not
|
|
30
|
+
// finish), kept_new_version (the new version stays installed: it would not stop,
|
|
31
|
+
// or the data is already too new for the previous one). The message names the
|
|
32
|
+
// new version's first start error and what was done after it, on one line.
|
|
23
33
|
|
|
24
34
|
const HDIUTIL = '/usr/bin/hdiutil';
|
|
25
35
|
const DITTO = '/usr/bin/ditto';
|
|
@@ -35,13 +45,16 @@ export const macosDmgName = (version, arch) => `fuli-macos-${arch}-${version}.dm
|
|
|
35
45
|
// Returns { status: 'updated', version, clients: 'reconnected' | 'not_reconnected' }.
|
|
36
46
|
export async function updateMacosAppFromRelease({ packageRoot, dataDir, version, progress = () => {} }, {
|
|
37
47
|
download = downloadVerifiedReleaseAsset, runCommand = run, controller = runController, cli = runCli,
|
|
38
|
-
client = macosDesktopClient, readBundle = readMacosNativeBundle, tempRoot = tmpdir(), env = process.env
|
|
48
|
+
client = macosDesktopClient, readBundle = readMacosNativeBundle, tempRoot = tmpdir(), env = process.env,
|
|
49
|
+
dataNewer = dataNewerThanThisPackage, holdStarts = waitForConsoleStarts, consolesLeft = consoleLeftRunning,
|
|
50
|
+
rename = renameSync
|
|
39
51
|
} = {}) {
|
|
40
52
|
const app = installedApp(packageRoot);
|
|
41
53
|
const { arch } = readBundle(packageRoot);
|
|
42
54
|
const parent = dirname(app);
|
|
43
55
|
const staged = join(parent, `.${basename(app)}.update`);
|
|
44
56
|
const previous = join(parent, `.${basename(app)}.previous`);
|
|
57
|
+
const failed = join(parent, `.${basename(app)}.failed`);
|
|
45
58
|
const directory = mkdtempSync(join(tempRoot, 'fuli-app-update-'));
|
|
46
59
|
try {
|
|
47
60
|
const dmg = await download({ version, name: macosDmgName(version, arch), directory, what: 'macOS app image' }, { progress });
|
|
@@ -55,19 +68,32 @@ export async function updateMacosAppFromRelease({ packageRoot, dataDir, version,
|
|
|
55
68
|
|
|
56
69
|
progress('restarting');
|
|
57
70
|
const clientWasRunning = await client.close(app);
|
|
58
|
-
|
|
59
|
-
|
|
71
|
+
// A stop sees only a console a finished start recorded, so it runs once no
|
|
72
|
+
// start (an Agent session's automatic one) is under way, and the bundles
|
|
73
|
+
// are swapped before any start may begin: none runs from the old bundle
|
|
74
|
+
// after its stop. The new version's own start takes the lock itself.
|
|
75
|
+
let release;
|
|
76
|
+
try { release = holdStarts(dataDir); } catch (error) {
|
|
60
77
|
if (clientWasRunning) client.open(app);
|
|
61
|
-
throw
|
|
78
|
+
throw startsBusyBeforeUpdate(error);
|
|
62
79
|
}
|
|
63
|
-
|
|
64
|
-
|
|
80
|
+
try {
|
|
81
|
+
const stopped = await controller(packageRoot, 'stop', env);
|
|
82
|
+
if (!stopped.ok) {
|
|
83
|
+
if (clientWasRunning) client.open(app);
|
|
84
|
+
throw new Error(`FULI did not stop before the update; nothing was changed. ${stopped.error ?? ''}`.trim());
|
|
85
|
+
}
|
|
86
|
+
rmSync(previous, { recursive: true, force: true });
|
|
87
|
+
rmSync(failed, { recursive: true, force: true });
|
|
88
|
+
swap(app, staged, previous);
|
|
89
|
+
} finally { release(); }
|
|
65
90
|
const started = await controller(bundleRoot(app), 'start', env);
|
|
66
91
|
if (!started.ok) {
|
|
67
|
-
await
|
|
68
|
-
if (
|
|
69
|
-
|
|
70
|
-
|
|
92
|
+
const recovered = await recover({ app, previous, failed, dataDir, env, controller, dataNewer, holdStarts, consolesLeft, rename });
|
|
93
|
+
if (!recovered.ok) {
|
|
94
|
+
if (clientWasRunning) client.open(app);
|
|
95
|
+
throw failedStartError(version, started.error, recovered);
|
|
96
|
+
}
|
|
71
97
|
}
|
|
72
98
|
// The clients' MCP entries name paths inside FULI.app, which stay the same;
|
|
73
99
|
// their Skills and hooks come from the new version's client packs.
|
|
@@ -140,17 +166,55 @@ function permissionAware(error, message) {
|
|
|
140
166
|
return failure(`${message} ${error?.message ?? ''}`.trim(), denied ? 'no_permission' : 'download_failed');
|
|
141
167
|
}
|
|
142
168
|
|
|
143
|
-
|
|
169
|
+
// After the new version's start was reported failed. Its first start may only
|
|
170
|
+
// be slow (stores upgrade, Neo4j starts cold), so nothing is moved before it
|
|
171
|
+
// stopped: a bundle is never moved or deleted under a FULI that runs from it.
|
|
172
|
+
// The previous version comes back only when it can run on the data the new one
|
|
173
|
+
// may already have upgraded; otherwise the new one stays and is started once
|
|
174
|
+
// more, so the app on disk always matches the data. The new bundle is set
|
|
175
|
+
// aside, not deleted, until the previous version runs.
|
|
176
|
+
// Answers { ok: true } when the new version runs after all, else
|
|
177
|
+
// { ok: false, code, outcome }: what was done, as one sentence.
|
|
178
|
+
// A stop sees only a console a finished start recorded. Another start (an
|
|
179
|
+
// Agent session's automatic one, console-autostart.js) may still be bringing
|
|
180
|
+
// one up, so the stop runs once no start is under way, and no start (a
|
|
181
|
+
// person's included) begins until the update's own next start: none may run
|
|
182
|
+
// while the data is read or a bundle moves. That start takes the lock itself.
|
|
183
|
+
async function recover(context) {
|
|
184
|
+
let held;
|
|
185
|
+
try { held = context.holdStarts(context.dataDir); } catch (error) { return startsStillRunning(error); }
|
|
186
|
+
let released = false;
|
|
187
|
+
const release = () => { if (!released) { released = true; held(); } };
|
|
188
|
+
try { return await recoverHoldingStarts(context, release); } finally { release(); }
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
async function recoverHoldingStarts({ app, previous, failed, dataDir, env, controller, dataNewer, consolesLeft, rename }, release) {
|
|
192
|
+
const start = () => { release(); return controller(bundleRoot(app), 'start', env); };
|
|
193
|
+
const stopped = await controller(bundleRoot(app), 'stop', env);
|
|
194
|
+
if (!stopped.ok) return newVersionDidNotStop(stopped.error);
|
|
195
|
+
// A console the failed start left, unrecorded, may still upgrade stores or hold its port.
|
|
196
|
+
const left = await consolesLeft(dataDir);
|
|
197
|
+
if (left) return consoleStillRunning(left);
|
|
198
|
+
const kept = await keepNewVersionOnNewerData(previousVersionBlocked(() => dataNewer(dataDir)), start);
|
|
199
|
+
if (kept) return kept;
|
|
144
200
|
try {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
renameSync(previous, app);
|
|
148
|
-
const restarted = await controller(bundleRoot(app), 'start', env);
|
|
149
|
-
if (!restarted.ok) throw new Error(restarted.error ?? 'The previous version did not start.');
|
|
201
|
+
rename(app, failed);
|
|
202
|
+
rename(previous, app);
|
|
150
203
|
} catch (error) {
|
|
151
|
-
|
|
152
|
-
|
|
204
|
+
try { if (!existsSync(app) && existsSync(failed)) rename(failed, app); } catch { /* said below */ }
|
|
205
|
+
const reason = reasonText(error?.message ?? error);
|
|
206
|
+
return { ok: false, code: 'rollback_failed', outcome: existsSync(app)
|
|
207
|
+
? `switching back to the previous version failed, so the new one stays (${reason}).`
|
|
208
|
+
: `switching back to the previous version failed and nothing is installed at ${app}: the new version is at ${failed} `
|
|
209
|
+
+ `and the previous one at ${previous} (${reason}).` };
|
|
210
|
+
}
|
|
211
|
+
const restarted = await start();
|
|
212
|
+
if (!restarted.ok) {
|
|
213
|
+
return { ok: false, code: 'rollback_failed',
|
|
214
|
+
outcome: `the previous version was restored but did not start either (${reasonText(restarted.error)}).` };
|
|
153
215
|
}
|
|
216
|
+
rmSync(failed, { recursive: true, force: true });
|
|
217
|
+
return { ok: false, code: 'start_failed', outcome: 'the previous version was restored and started again.' };
|
|
154
218
|
}
|
|
155
219
|
|
|
156
220
|
// The bundled controller the desktop client itself runs (macos-controller.js).
|
|
@@ -4,6 +4,12 @@ import { dirname, join } from 'node:path';
|
|
|
4
4
|
import { writeTextFileAtomic } from '../storage/json-file.js';
|
|
5
5
|
import { canonicalWindowsInstallPath, installationSha256, windowsInstallPathsOverlap } from './windows-installation-context.js';
|
|
6
6
|
import { placeWindowsNodeLauncher } from './windows-node-launcher.js';
|
|
7
|
+
import { dataFormatMarks, dataUpgradedSince } from '../data-format/data-newer-than-package.js';
|
|
8
|
+
import { waitForConsoleStarts } from '../local-runtime/console-autostart-record.js';
|
|
9
|
+
import {
|
|
10
|
+
consoleLeftRunning, consoleStillRunning, failedStartError, keepNewVersionOnNewerData, newVersionDidNotStop, previousVersionBlocked,
|
|
11
|
+
startsBusyBeforeUpdate, startsStillRunning
|
|
12
|
+
} from './failed-update-recovery.js';
|
|
7
13
|
import { stopInstalledFuli } from './windows-running-fuli.js';
|
|
8
14
|
import { backupWindowsGraph, prepareWindowsUpdateRuntime, restoreWindowsUpdateRuntime } from './windows-update-runtime.js';
|
|
9
15
|
|
|
@@ -48,11 +54,19 @@ export function stageWindowsShortcuts(shortcuts, packageRoot, createShortcut, re
|
|
|
48
54
|
|
|
49
55
|
// stopping: how processes that outlive the installed CLI's stop are handled (windows-running-fuli.js).
|
|
50
56
|
// backupGraph: the graph backup before a Neo4j patch upgrade (windows-update-runtime.js).
|
|
51
|
-
|
|
57
|
+
// holdStarts: the console start lock (console-autostart-record.js). A stop sees
|
|
58
|
+
// only a console a finished start recorded, so it runs once no start (an Agent
|
|
59
|
+
// session's automatic one) is under way, and the lock is kept until the record
|
|
60
|
+
// names the version that starts next: no console starts from the version being
|
|
61
|
+
// replaced after its stop. That version's own start takes the lock itself.
|
|
62
|
+
export async function stopAndSwitchWindowsInstallation(plan, staged, packageRoot, { runCli, lock, write, discard = () => {}, stopping = {},
|
|
63
|
+
backupGraph = backupWindowsGraph, holdStarts = waitForConsoleStarts, consolesLeft = consoleLeftRunning }) {
|
|
64
|
+
let releaseStarts = () => {};
|
|
52
65
|
try {
|
|
53
66
|
lock.assertHeld();
|
|
54
67
|
assertInstallationUnchanged(plan.recordPath, plan.record);
|
|
55
68
|
for (const shortcut of plan.shortcuts) assertInstallationUnchanged(shortcut.path, shortcut.bytes);
|
|
69
|
+
try { releaseStarts = once(holdStarts(plan.current.dataDir)); } catch (error) { throw startsBusyBeforeUpdate(error); }
|
|
56
70
|
// Client configurations run the version installation.json names through this
|
|
57
71
|
// launcher, so it is placed before anything stops and outlives a restored switch.
|
|
58
72
|
placeWindowsNodeLauncher(plan.installRoot, packageRoot);
|
|
@@ -60,13 +74,19 @@ export async function stopAndSwitchWindowsInstallation(plan, staged, packageRoot
|
|
|
60
74
|
await stopInstalledFuli(plan, { ...stopping, runCli, write });
|
|
61
75
|
lock.assertHeld();
|
|
62
76
|
} catch (error) {
|
|
77
|
+
releaseStarts();
|
|
63
78
|
discard();
|
|
64
79
|
throw error;
|
|
65
80
|
}
|
|
66
|
-
return switchInstallation(plan, staged, packageRoot, runCli, lock, write, backupGraph);
|
|
81
|
+
return switchInstallation(plan, staged, packageRoot, { runCli, lock, write, backupGraph, releaseStarts, holdStarts, consolesLeft });
|
|
67
82
|
}
|
|
68
83
|
|
|
69
|
-
|
|
84
|
+
function once(release) {
|
|
85
|
+
let released = false;
|
|
86
|
+
return () => { if (!released) { released = true; release(); } };
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
async function switchInstallation(plan, staged, packageRoot, { runCli, lock, write, backupGraph, releaseStarts, holdStarts, consolesLeft }) {
|
|
70
90
|
const execute = runCli;
|
|
71
91
|
runCli = async (...args) => {
|
|
72
92
|
lock.assertHeld();
|
|
@@ -81,12 +101,19 @@ async function switchInstallation(plan, staged, packageRoot, runCli, lock, write
|
|
|
81
101
|
const args = command => [command, '--data-dir', current.dataDir];
|
|
82
102
|
// A confirmed downgrade lets the new version replace the recorded Provider.
|
|
83
103
|
const startArgs = () => plan.downgrade ? [...args('start'), '--allow-provider-downgrade'] : args('start');
|
|
84
|
-
|
|
104
|
+
const startNew = async () => {
|
|
105
|
+
await requireInstalledCli(runCli, packageRoot, startArgs(), 'Fuli ' + plan.applicationVersion + ' did not start.');
|
|
106
|
+
await requireInstalledCli(runCli, packageRoot, args('status'), 'Fuli ' + plan.applicationVersion + ' did not report a running state.');
|
|
107
|
+
};
|
|
108
|
+
let switched = false, started = false, marks = {};
|
|
85
109
|
const replaced = [];
|
|
86
110
|
try {
|
|
87
111
|
lock.assertHeld();
|
|
88
112
|
assertInstallationUnchanged(plan.recordPath, plan.record);
|
|
89
113
|
for (const shortcut of plan.shortcuts) assertInstallationUnchanged(shortcut.path, shortcut.bytes);
|
|
114
|
+
// The stores as the stopped version left them: what the new one changes
|
|
115
|
+
// decides whether that version may come back (failed-update-recovery.js).
|
|
116
|
+
marks = dataFormatMarks(current.dataDir);
|
|
90
117
|
if (upgrade) {
|
|
91
118
|
write(`Backing up the graph before upgrading Neo4j ${upgrade.from} → ${upgrade.to}...`);
|
|
92
119
|
try { await backupGraph(staged.runtime, current); }
|
|
@@ -100,17 +127,48 @@ async function switchInstallation(plan, staged, packageRoot, runCli, lock, write
|
|
|
100
127
|
if (bytes) { assertInstallationUnchanged(path, bytes); writeTextFileAtomic(path, staged.shortcuts[index]); replaced.push(index); }
|
|
101
128
|
});
|
|
102
129
|
started = true;
|
|
130
|
+
releaseStarts();
|
|
103
131
|
write('Starting Fuli ' + plan.applicationVersion + '...');
|
|
104
|
-
await
|
|
105
|
-
await requireInstalledCli(runCli, packageRoot, args('status'), 'Fuli ' + plan.applicationVersion + ' did not report a running state.');
|
|
132
|
+
await startNew();
|
|
106
133
|
} catch (error) {
|
|
134
|
+
releaseStarts();
|
|
107
135
|
lock.assertHeld(); // A lost owner must not interfere with another updater.
|
|
108
|
-
//
|
|
109
|
-
//
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
136
|
+
// From before the new version's stop until the update's own next start, no
|
|
137
|
+
// start (a person's included) begins: none may run while the data is read
|
|
138
|
+
// or the record changes. That start takes the lock itself.
|
|
139
|
+
let releaseRecovery = () => {};
|
|
140
|
+
try {
|
|
141
|
+
if (started) {
|
|
142
|
+
try { releaseRecovery = once(holdStarts(current.dataDir)); }
|
|
143
|
+
catch (busy) { throw failedStartError(plan.applicationVersion, error.message, startsStillRunning(busy)); }
|
|
144
|
+
}
|
|
145
|
+
if (!started || !await newVersionRunsAfterAll(error, releaseRecovery)) await restorePrevious(error, releaseRecovery);
|
|
146
|
+
} finally { releaseRecovery(); }
|
|
147
|
+
}
|
|
148
|
+
return reconnect();
|
|
149
|
+
|
|
150
|
+
// Stop while the new receipt is still authoritative, once no start is under
|
|
151
|
+
// way. Never restart the old version when the new process may still be using
|
|
152
|
+
// the same database, or on data the new one already upgraded: then the new
|
|
153
|
+
// one stays selected and is started once more. True when it runs now.
|
|
154
|
+
async function newVersionRunsAfterAll(error, releaseBeforeStart) {
|
|
155
|
+
try { await requireInstalledCli(runCli, packageRoot, args('stop'), 'Fuli ' + plan.applicationVersion + ' could not be stopped; automatic rollback was not attempted.'); }
|
|
156
|
+
catch (stopError) { throw failedStartError(plan.applicationVersion, error.message, newVersionDidNotStop(stopError.message)); }
|
|
157
|
+
lock.assertHeld();
|
|
158
|
+
// A console the failed start left, unrecorded, may still upgrade stores or hold its port.
|
|
159
|
+
const left = await consolesLeft(current.dataDir);
|
|
160
|
+
if (left) throw failedStartError(plan.applicationVersion, error.message, consoleStillRunning(left));
|
|
161
|
+
const decision = await keepNewVersionOnNewerData(previousVersionBlocked(() => dataUpgradedSince(marks, current.dataDir)),
|
|
162
|
+
async () => {
|
|
163
|
+
releaseBeforeStart();
|
|
164
|
+
try { await startNew(); return { ok: true }; } catch (retry) { return { ok: false, error: retry.message }; }
|
|
165
|
+
});
|
|
166
|
+
if (!decision) return false;
|
|
167
|
+
if (decision.ok) return true;
|
|
168
|
+
throw failedStartError(plan.applicationVersion, error.message, decision);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
async function restorePrevious(error, releaseBeforeStart = () => {}) {
|
|
114
172
|
lock.assertHeld();
|
|
115
173
|
restoreWindowsUpdateRuntime(staged.runtime, plan.applicationVersion);
|
|
116
174
|
const failures = [];
|
|
@@ -122,21 +180,25 @@ async function switchInstallation(plan, staged, packageRoot, runCli, lock, write
|
|
|
122
180
|
try {
|
|
123
181
|
lock.assertHeld();
|
|
124
182
|
assertInstallationUnchanged(plan.recordPath, plan.record);
|
|
183
|
+
releaseBeforeStart();
|
|
125
184
|
await requireInstalledCli(runCli, current.packageRoot, args('start'), 'The previous Fuli did not start again.');
|
|
126
185
|
await requireInstalledCli(runCli, current.packageRoot, args('status'), 'The previous Fuli did not report a running state.');
|
|
127
186
|
} catch (caught) { failures.push(caught); }
|
|
128
187
|
if (failures.length) throw new AggregateError([error, ...failures], 'Rollback needs attention: ' + failures.map(e => e.message).join('; ') + (started ? kept() : ''));
|
|
129
188
|
throw new Error(`${error.message} Fuli ${current.applicationVersion} was restored; the other copy is kept at ${packageRoot}.${started ? kept() : ''}`, { cause: error });
|
|
130
189
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
190
|
+
|
|
191
|
+
async function reconnect() {
|
|
192
|
+
write('Reconnecting already connected Agent clients...');
|
|
193
|
+
let clients = 'not_reconnected';
|
|
194
|
+
try {
|
|
195
|
+
const result = await runCli(packageRoot, ['setup', '--yes', '--connected-only', '--data-dir', current.dataDir,
|
|
196
|
+
...(plan.downgrade ? ['--allow-provider-downgrade'] : [])]);
|
|
197
|
+
if (result.code === 0) clients = 'reconnected';
|
|
198
|
+
} catch { /* Report integration refresh separately from the final runtime check. */ }
|
|
199
|
+
await requireInstalledCli(runCli, packageRoot, args('status'), 'Fuli ' + plan.applicationVersion + ' is installed, but its runtime needs attention after client reconnection. Reopen Fuli to inspect its status.');
|
|
200
|
+
return { ...staged.next, clients };
|
|
201
|
+
}
|
|
140
202
|
}
|
|
141
203
|
|
|
142
204
|
export function assertInstallationUnchanged(path, bytes) {
|
|
@@ -22,17 +22,17 @@ export function planWindowsRollback({ installRoot, env = process.env, readShortc
|
|
|
22
22
|
|
|
23
23
|
export async function rollbackWindowsInstallation(options, {
|
|
24
24
|
runCli = runInstalledCli, createShortcut = createWindowsShortcut, readShortcut = readWindowsShortcut,
|
|
25
|
-
acquireLock = acquireWindowsUpdateLock, write = () => {}, stopping, desktopClient = windowsDesktopClient
|
|
25
|
+
acquireLock = acquireWindowsUpdateLock, write = () => {}, stopping, holdStarts, consolesLeft, desktopClient = windowsDesktopClient
|
|
26
26
|
} = {}) {
|
|
27
27
|
const plan = planWindowsRollback({ ...options, readShortcut });
|
|
28
28
|
if (options.expectedInstallationId && options.expectedInstallationId !== plan.current.installationId) {
|
|
29
29
|
throw new Error('The installation changed after confirmation; review the rollback again.');
|
|
30
30
|
}
|
|
31
31
|
return withWindowsClientClosed(plan, desktopClient,
|
|
32
|
-
() => switchToKeptVersion(plan, { runCli, createShortcut, readShortcut, acquireLock, write, stopping }));
|
|
32
|
+
() => switchToKeptVersion(plan, { runCli, createShortcut, readShortcut, acquireLock, write, stopping, holdStarts, consolesLeft }));
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
async function switchToKeptVersion(plan, { runCli, createShortcut, readShortcut, acquireLock, write, stopping }) {
|
|
35
|
+
async function switchToKeptVersion(plan, { runCli, createShortcut, readShortcut, acquireLock, write, stopping, holdStarts, consolesLeft }) {
|
|
36
36
|
const lock = await acquireLock(plan.current.dataDir);
|
|
37
37
|
try {
|
|
38
38
|
lock.assertHeld();
|
|
@@ -46,7 +46,7 @@ async function switchToKeptVersion(plan, { runCli, createShortcut, readShortcut,
|
|
|
46
46
|
const staged = { next, record: Buffer.from(JSON.stringify(next, null, 2) + '\n'),
|
|
47
47
|
shortcuts: stageWindowsShortcuts(plan.shortcuts, target.packageRoot, createShortcut, readShortcut),
|
|
48
48
|
runtime: snapshotWindowsUpdateRuntime(plan.current, target.packageRoot, { downgrade: true }) };
|
|
49
|
-
return await stopAndSwitchWindowsInstallation(plan, staged, target.packageRoot, { runCli, lock, write, stopping });
|
|
49
|
+
return await stopAndSwitchWindowsInstallation(plan, staged, target.packageRoot, { runCli, lock, write, stopping, holdStarts, consolesLeft });
|
|
50
50
|
} finally { await lock.release(); }
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -39,7 +39,7 @@ export async function updateWindowsTrayFromRelease({ installation, version, stop
|
|
|
39
39
|
// ('reconnected' or 'not_reconnected'); the console's doctor reads it from the journal.
|
|
40
40
|
if (result?.status === 'updated') return { status: 'updated', version: result.applicationVersion, clients: result.clients ?? null };
|
|
41
41
|
throw Object.assign(new Error(result?.error ?? `The update ended without an outcome (exit ${code}); nothing was reported.`),
|
|
42
|
-
result?.blockers ? { blockers: result.blockers } : {});
|
|
42
|
+
typeof result?.errorCode === 'string' ? { code: result.errorCode } : {}, result?.blockers ? { blockers: result.blockers } : {});
|
|
43
43
|
} finally {
|
|
44
44
|
// The client of the version installed now: the new one, or the kept one after a rollback.
|
|
45
45
|
if (clientWasRunning) desktopClient.reopen(installation.installRoot);
|
|
@@ -41,7 +41,10 @@ export async function runWindowsUpdateCommand(args = [], dependencies = {}) {
|
|
|
41
41
|
if (result.clients !== 'reconnected') write('客户端重新连接未完成;请检查后运行新版 setup。 / Client reconnection did not finish; inspect the installation and run setup from the new version.');
|
|
42
42
|
return result;
|
|
43
43
|
} catch (error) {
|
|
44
|
-
|
|
44
|
+
// errorCode: the reason the console page names (failed-update-recovery.js, e.g. kept_new_version).
|
|
45
|
+
report({ status: 'failed', error: String(error?.message ?? error).split('\n')[0],
|
|
46
|
+
...(typeof error?.code === 'string' && /^[a-z_]+$/.test(error.code) ? { errorCode: error.code } : {}),
|
|
47
|
+
...(error?.blockers ? { blockers: error.blockers } : {}) });
|
|
45
48
|
throw error;
|
|
46
49
|
}
|
|
47
50
|
}
|
|
@@ -47,7 +47,7 @@ export function planWindowsUpdate({ source, installRoot, env = process.env, read
|
|
|
47
47
|
|
|
48
48
|
export async function updateWindowsInstallation(options, {
|
|
49
49
|
runCli = runInstalledCli, createShortcut = createWindowsShortcut, readShortcut = readWindowsShortcut,
|
|
50
|
-
acquireLock = acquireWindowsUpdateLock, write = () => {}, stopping, backupGraph, desktopClient = windowsDesktopClient
|
|
50
|
+
acquireLock = acquireWindowsUpdateLock, write = () => {}, stopping, backupGraph, holdStarts, consolesLeft, desktopClient = windowsDesktopClient
|
|
51
51
|
} = {}) {
|
|
52
52
|
const plan = planWindowsUpdate({ ...options, readShortcut });
|
|
53
53
|
if ((options.expectedInstallationId && options.expectedInstallationId !== plan.current.installationId)
|
|
@@ -55,10 +55,10 @@ export async function updateWindowsInstallation(options, {
|
|
|
55
55
|
throw new Error('The installation or update package changed after confirmation; review the update again.');
|
|
56
56
|
}
|
|
57
57
|
return withWindowsClientClosed(plan, desktopClient,
|
|
58
|
-
() => stageAndSwitch(plan, { runCli, createShortcut, readShortcut, acquireLock, write, stopping, backupGraph }));
|
|
58
|
+
() => stageAndSwitch(plan, { runCli, createShortcut, readShortcut, acquireLock, write, stopping, backupGraph, holdStarts, consolesLeft }));
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
async function stageAndSwitch(plan, { runCli, createShortcut, readShortcut, acquireLock, write, stopping, backupGraph }) {
|
|
61
|
+
async function stageAndSwitch(plan, { runCli, createShortcut, readShortcut, acquireLock, write, stopping, backupGraph, holdStarts, consolesLeft }) {
|
|
62
62
|
const lock = await acquireLock(plan.current.dataDir);
|
|
63
63
|
try {
|
|
64
64
|
lock.assertHeld();
|
|
@@ -76,7 +76,7 @@ async function stageAndSwitch(plan, { runCli, createShortcut, readShortcut, acqu
|
|
|
76
76
|
discard();
|
|
77
77
|
throw error;
|
|
78
78
|
}
|
|
79
|
-
return await stopAndSwitchWindowsInstallation(plan, staged, packageRoot, { runCli, lock, write, discard, stopping, backupGraph });
|
|
79
|
+
return await stopAndSwitchWindowsInstallation(plan, staged, packageRoot, { runCli, lock, write, discard, stopping, backupGraph, holdStarts, consolesLeft });
|
|
80
80
|
} finally { await lock.release(); }
|
|
81
81
|
}
|
|
82
82
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isControlledError } from '../app/application-error.js';
|
|
2
|
-
import { errorCode, failureReason } from './safe-event.js';
|
|
2
|
+
import { errorCode, failureReason, recordedFailureReason } from './safe-event.js';
|
|
3
3
|
|
|
4
4
|
// The diagnostics events of the console's HTTP API and of MCP tool calls
|
|
5
5
|
// (rec#73), recorded after the caller already has its answer. A missing log
|
|
@@ -26,7 +26,7 @@ export function recordToolFailure(log, { toolName, error, sessionId = null, star
|
|
|
26
26
|
operation: toolName,
|
|
27
27
|
outcome: !isControlledError(error) || error.status >= SERVER_ERROR ? 'failed' : 'refused',
|
|
28
28
|
code: isControlledError(error) ? errorCode(error) : 'internal_error',
|
|
29
|
-
reason:
|
|
29
|
+
reason: recordedFailureReason(error, 'Tool execution failed'),
|
|
30
30
|
durationMs: Date.now() - startedAt,
|
|
31
31
|
correlationId: sessionId
|
|
32
32
|
}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { randomUUID } from 'node:crypto';
|
|
2
|
+
import { isAbsolute, relative, sep } from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
2
4
|
|
|
3
5
|
import { isControlledError } from '../app/application-error.js';
|
|
4
6
|
import { FULI_VERSION } from '../package-metadata.js';
|
|
@@ -36,6 +38,38 @@ export function failureReason(error, fallback) {
|
|
|
36
38
|
return isControlledError(error) && typeof error.message === 'string' ? error.message : fallback;
|
|
37
39
|
}
|
|
38
40
|
|
|
41
|
+
// A failure record's reason. An error no caller handled (an Agent saw only
|
|
42
|
+
// internal_error) keeps its message out, like failureReason, but names its
|
|
43
|
+
// class, its cause's code and the first frame of FULI's own code that raised
|
|
44
|
+
// it, relative to the install: enough to find the bug from the record alone
|
|
45
|
+
// (rec#137), with no value the call carried.
|
|
46
|
+
export function recordedFailureReason(error, fallback) {
|
|
47
|
+
if (isControlledError(error)) return failureReason(error, fallback);
|
|
48
|
+
const name = [error?.name].find(value => typeof value === 'string' && SAFE_CODE.test(value)) ?? 'unknown';
|
|
49
|
+
const cause = errorCode(error?.cause);
|
|
50
|
+
const site = failureSite(error);
|
|
51
|
+
return `${fallback} (${name}${cause ? `, cause ${cause}` : ''}${site ? ` at ${site}` : ''})`;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const INSTALL_ROOT = fileURLToPath(new URL('../../', import.meta.url));
|
|
55
|
+
const OWN_CODE = /^(src|packages)\//;
|
|
56
|
+
const STACK_FRAME = /^\s*at (?:.*\()?(.+?):(\d+):\d+\)?$/;
|
|
57
|
+
|
|
58
|
+
// `src/…/module.js:LINE` of the innermost stack frame in FULI's own code, or null.
|
|
59
|
+
function failureSite(error) {
|
|
60
|
+
const stack = typeof error?.stack === 'string' ? error.stack : '';
|
|
61
|
+
for (const line of stack.split('\n').slice(1)) {
|
|
62
|
+
const frame = STACK_FRAME.exec(line);
|
|
63
|
+
if (!frame) continue;
|
|
64
|
+
let file = frame[1];
|
|
65
|
+
try { if (file.startsWith('file://')) file = fileURLToPath(file); } catch { continue; }
|
|
66
|
+
if (!isAbsolute(file)) continue;
|
|
67
|
+
const own = relative(INSTALL_ROOT, file).split(sep).join('/');
|
|
68
|
+
if (OWN_CODE.test(own) && !own.includes('node_modules/')) return `${own}:${frame[2]}`;
|
|
69
|
+
}
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
|
|
39
73
|
// Text kept for an Agent to read: one line, URL credentials dropped and query
|
|
40
74
|
// values masked, local paths, secrets and long opaque values replaced.
|
|
41
75
|
function safeText(value, limit = REASON_BYTES) {
|
|
@@ -99,6 +99,7 @@ import {
|
|
|
99
99
|
listProjectRelationWeights,
|
|
100
100
|
upsertPersonalProject
|
|
101
101
|
} from './personal-projects.js';
|
|
102
|
+
import { environmentTokenUsageResolver } from '../agents/token-usage-resolver.js';
|
|
102
103
|
|
|
103
104
|
export function openFederatedGraphApplication({
|
|
104
105
|
runtimeConfigPath,
|
|
@@ -123,7 +124,7 @@ export function openFederatedGraphApplication({
|
|
|
123
124
|
),
|
|
124
125
|
recallPolicyStore: recallPolicyStore ?? new RecallPolicyStore(recallPolicyPathForRuntime(runtimeConfigPath)),
|
|
125
126
|
firstRunGuide: createFirstRunGuide(firstRunGuidePathForRuntime(runtimeConfigPath)),
|
|
126
|
-
tokenUsageResolver,
|
|
127
|
+
tokenUsageResolver: tokenUsageResolver ?? environmentTokenUsageResolver(env),
|
|
127
128
|
// Read per use (briefly cached): an MCP process that starts while the console is restarting
|
|
128
129
|
// (an update reconnects every client) must not keep the default port for its whole life.
|
|
129
130
|
consoleUrl: liveSourceConsoleUrl(runtimeConfigPath),
|
|
@@ -31,6 +31,9 @@ import { isLoopbackUrl } from '../external-knowledge/connectors/response-values.
|
|
|
31
31
|
import { entryPromptRecords } from '../agent-delegation/entry-prompts.js';
|
|
32
32
|
import { createWorkSurfaces } from '../work-surfaces/port.js';
|
|
33
33
|
import { createVisitorAccess } from '../visitor-access/port.js';
|
|
34
|
+
import { createVisitRequests } from '../visit-requests/service.js';
|
|
35
|
+
import { createVisitRunner } from '../visit-requests/runner.js';
|
|
36
|
+
import { CONSTRAINED_RUN_CLIENTS, runConstrained } from '../../packages/roundtable/src/roundtable/constrained-run.js';
|
|
34
37
|
import { createOldDataShelf } from '../old-data/port.js';
|
|
35
38
|
import { createOccupationPlugins } from '../occupation-plugins/port.js';
|
|
36
39
|
import { workSurfaceNames, workSurfaceSources } from '../work-surfaces/sources.js';
|
|
@@ -105,7 +108,24 @@ export function openLocalRuntimes(app, { runtimeConfigPath, paths, env, fetchImp
|
|
|
105
108
|
// Each Agent's look as the person chose it (rec#11 D-89); the file is created by the first choice.
|
|
106
109
|
app.agentAvatars = createAgentAvatars({ path: join(dataDir, 'agent-avatars.sqlite') });
|
|
107
110
|
// What visitors from other computers read of a shared project, and each requester's mode; created by the first one.
|
|
108
|
-
app.visitorAccess = createVisitorAccess({ path: join(dataDir, 'visitor-access.sqlite'), application: app
|
|
111
|
+
app.visitorAccess = createVisitorAccess({ path: join(dataDir, 'visitor-access.sqlite'), application: app,
|
|
112
|
+
// Work a paired computer asks to have done here (seconding C): plain constrained client runs, as the shared lead, in its own worktree.
|
|
113
|
+
requests: ({ store, modeOf }) => createVisitRequests({ store, modeOf, runner: createVisitRunner({
|
|
114
|
+
runClient: (input) => runConstrained({ ...input, env }),
|
|
115
|
+
projectFolder: (input) => app.roundtable.knownProjectFolder(input),
|
|
116
|
+
verifyFolder: async (folder, projectId) => await app.roundtableHost.projectForPath(folder) === projectId,
|
|
117
|
+
root: join(dataDir, 'visit-worktrees') }),
|
|
118
|
+
// A run whose client may still be running keeps its worktree until the OS shows that process ended.
|
|
119
|
+
inspectProcess: createProcessInspector().inspect,
|
|
120
|
+
leads: {
|
|
121
|
+
confirm: async ({ projectId, agentId }) => await app.roundtableHost.projectLeadId(projectId) === agentId,
|
|
122
|
+
constrainedClients: async ({ agentId }) => (await app.roundtable.visitClients({ agentId }))
|
|
123
|
+
.filter((client) => CONSTRAINED_RUN_CLIENTS.includes(client)),
|
|
124
|
+
describe: async ({ projectId, agentId }) => {
|
|
125
|
+
const { lead } = await app.roundtableHost.projectTeam(projectId);
|
|
126
|
+
return lead?.agentId === agentId ? { name: lead.name, responsibility: lead.responsibility ?? null } : null;
|
|
127
|
+
}
|
|
128
|
+
} }) });
|
|
109
129
|
// What changed in each project's profile; the file is created by the first change.
|
|
110
130
|
app.projectChangeLog = createProjectChangeLog({ path: join(dataDir, 'project-change-log.sqlite') });
|
|
111
131
|
// The person's own name and picture (「我」); the file is created by the first change.
|
|
@@ -115,7 +135,7 @@ export function openLocalRuntimes(app, { runtimeConfigPath, paths, env, fetchImp
|
|
|
115
135
|
// The prompt of each session's current hook-entered task, kept only for the relay check (rec#80).
|
|
116
136
|
app.entryPrompts = entryPromptRecords(dataDir);
|
|
117
137
|
// What the person answered in the client's own question card, for the same check.
|
|
118
|
-
app.nativeChoiceAnswers = task => nativeChoiceAnswers(task);
|
|
138
|
+
app.nativeChoiceAnswers = task => nativeChoiceAnswers(task, { env });
|
|
119
139
|
// Every FLA's work surfaces in one table, with 全部暂停 and 恢复 (rec#11 D-85); the file is created by the first pause.
|
|
120
140
|
app.workSurfaces = createWorkSurfaces({ path: join(dataDir, 'work-surfaces.sqlite'), sources: workSurfaceSources(app),
|
|
121
141
|
names: (personalSpaceId) => workSurfaceNames(app, personalSpaceId) });
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isFuliProcessSession } from '../mcp/session-id.js';
|
|
2
|
+
import { normalisedClient } from '../agents/source-applications.js';
|
|
2
3
|
|
|
3
4
|
// Which client sessions an open task runs in, for 今天's 正在干活: only what the
|
|
4
5
|
// task's own records name. Each progress event keeps the client and session
|
|
@@ -11,14 +12,6 @@ import { isFuliProcessSession } from '../mcp/session-id.js';
|
|
|
11
12
|
const TASK_SESSION_LIMIT = 3;
|
|
12
13
|
const FINISHED = new Set(['completed', 'failed', 'cancelled']);
|
|
13
14
|
|
|
14
|
-
// The console writes a client lower-case with spaces and dashes as underscores,
|
|
15
|
-
// so `claude-code`, `Claude Code` and `claude_code` are one client there too.
|
|
16
|
-
function normalisedClient(value) {
|
|
17
|
-
return typeof value === 'string'
|
|
18
|
-
? value.trim().toLocaleLowerCase().replaceAll('-', '_').replaceAll(' ', '_')
|
|
19
|
-
: '';
|
|
20
|
-
}
|
|
21
|
-
|
|
22
15
|
/** At most three `{ client, sessionId | null }`, one per client: the latest reporters first, then the session the task came from. */
|
|
23
16
|
export function taskSessions(task) {
|
|
24
17
|
if (FINISHED.has(task.status)) return [];
|
|
@@ -11,6 +11,7 @@ import { findRepositoryRoot } from './project-path-context.js';
|
|
|
11
11
|
import { recordWakeFailure } from '../diagnostics/failure-records.js';
|
|
12
12
|
import { withoutControls } from '../text/control-characters.js';
|
|
13
13
|
import { shareableText } from '../text/shareable-text.js';
|
|
14
|
+
import { answerVisitRequest, VISIT_REQUEST_ACTIONS } from '../visit-requests/peer-entry.js';
|
|
14
15
|
|
|
15
16
|
// What the host refuses on its own (the share's lead): the sender learns only QUERY_REFUSED.
|
|
16
17
|
const LEAD_REFUSALS = new Set(['lead_unreadable', 'lead_changed']);
|
|
@@ -135,12 +136,17 @@ export function createFuliRoundtableHost(app, { warn = line => process.stderr.wr
|
|
|
135
136
|
// before the search gets). The requester key is the asking device's
|
|
136
137
|
// verified fingerprint (requester.node, checked by the runner against its
|
|
137
138
|
// certificate); name and agentName are display text only.
|
|
138
|
-
|
|
139
|
+
// A request to have work done here, or its status (seconding C), goes
|
|
140
|
+
// through the same port and the same lead check (src/visit-requests/peer-entry.js).
|
|
141
|
+
async searchSharedProject({ projectId, agentId, workingDirectory = null, requester, query }) {
|
|
139
142
|
if (!app.visitorAccess) return { ok: false, code: 'search_unavailable' };
|
|
140
143
|
const who = visitor(requester);
|
|
141
144
|
const leadRefusal = lead => (!lead ? 'lead_unreadable' : lead.agentId && lead.agentId === agentId ? null : 'lead_changed');
|
|
142
145
|
const currentShareLead = () => (typeof agentId === 'string' && agentId ? currentLead(projectId, query.action) : null);
|
|
143
|
-
const answer = query.action
|
|
146
|
+
const answer = VISIT_REQUEST_ACTIONS.has(query.action)
|
|
147
|
+
? await answerVisitRequest({ visitorAccess: app.visitorAccess, requester: who, projectId, agentId, workingDirectory, query,
|
|
148
|
+
confirmLead: async () => leadRefusal(await currentShareLead()) })
|
|
149
|
+
: query.action === 'card'
|
|
144
150
|
? await app.visitorAccess.showSharedCard({ projectId, requester: who, card: async () => {
|
|
145
151
|
const lead = await currentShareLead();
|
|
146
152
|
const code = leadRefusal(lead);
|
|
@@ -152,6 +158,13 @@ export function createFuliRoundtableHost(app, { warn = line => process.stderr.wr
|
|
|
152
158
|
confirm: async () => leadRefusal(await currentShareLead()) });
|
|
153
159
|
return !answer.ok && LEAD_REFUSALS.has(answer.code) ? { ok: false, code: QUERY_REFUSED } : answer;
|
|
154
160
|
},
|
|
161
|
+
// A paired device the person revoked: its open visit requests end too.
|
|
162
|
+
peerDeviceRevoked: nodeId => app.visitorAccess?.requesterRevoked(`peer:${nodeId}`),
|
|
163
|
+
// A share removed (or handed to another lead) ends that project's open visit requests.
|
|
164
|
+
peerSharesChanged: shares => app.visitorAccess?.requests?.sharesChanged(shares),
|
|
165
|
+
// FULI's own MCP server as its installer writes it for that client; a wake on
|
|
166
|
+
// another computer's text loads only this one (roundtable deliver onlyFuliMcp).
|
|
167
|
+
fuliMcpServer: client => app.fuliMcpServer?.(client) ?? null,
|
|
155
168
|
// A visiting query the runner refused once the asking device was proven,
|
|
156
169
|
// with the project of the share it named when that share is known.
|
|
157
170
|
refuseSharedQuery: ({ requester, action, code, projectId = null }) =>
|
|
@@ -13,8 +13,10 @@ export function resolveGraphRuntimeOptions(args = [], env = process.env, options
|
|
|
13
13
|
const configuredPath = runtimeValue(args, '--runtime-config') ??
|
|
14
14
|
nonEmptyText(env.FULI_GRAPH_RUNTIME_CONFIG);
|
|
15
15
|
const dataDir = resolveSetupPaths({ env, ...options.setupPaths }).dataDir;
|
|
16
|
+
// A relative --runtime-config is the caller's: a hook run by the console
|
|
17
|
+
// passes the hook process's working directory (lifecycle-events.js).
|
|
16
18
|
return {
|
|
17
|
-
runtimeConfigPath: resolve(configuredPath ?? join(dataDir, 'graph-runtime.json'))
|
|
19
|
+
runtimeConfigPath: resolve(options.setupPaths?.cwd ?? '', configuredPath ?? join(dataDir, 'graph-runtime.json'))
|
|
18
20
|
};
|
|
19
21
|
}
|
|
20
22
|
|