fuli-context 0.23.0-beta.9 → 0.25.0
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/README.md +169 -979
- package/README.zh-CN.md +157 -830
- package/dist/web/assets/{AboutPage-Co0jsR1c.js → AboutPage-Dx07_Z8u.js} +1 -1
- package/dist/web/assets/AboutSectionHeading-BdhpM609.js +1 -0
- package/dist/web/assets/AboutSectionHeading-DjXpIV27.css +1 -0
- package/dist/web/assets/AgentAppsPage-5VW0uCTz.js +1 -0
- package/dist/web/assets/{AgentAppsPage-BuJWNNdL.css → AgentAppsPage-BCxrjrsE.css} +1 -1
- package/dist/web/assets/AgentAvatar-DbsG1_BY.css +1 -0
- package/dist/web/assets/AgentAvatar-DlAQP7gm.js +1 -0
- package/dist/web/assets/{AgentHand-CTKH7yFY.js → AgentHand-FPFg9-Y1.js} +1 -1
- package/dist/web/assets/AgentManagement-CLFw9oV9.css +1 -0
- package/dist/web/assets/AgentManagement-UTe4I3WA.js +7 -0
- package/dist/web/assets/AgentMentionCopy-B9eIIr3L.css +1 -0
- package/dist/web/assets/AgentMentionCopy-C5ExlutT.js +1 -0
- package/dist/web/assets/{AgentName-DNxVHPb0.js → AgentName-C8mYbtKs.js} +1 -1
- package/dist/web/assets/AgentProfilePage-BLeyT3By.js +5 -0
- package/dist/web/assets/{AgentProfilePage-D5QUzw5N.css → AgentProfilePage-DumsVHP1.css} +1 -1
- package/dist/web/assets/AgentServicesPage-B2mDUgYZ.css +1 -0
- package/dist/web/assets/AgentServicesPage-BXi152Xc.js +1 -0
- package/dist/web/assets/{AppViewerPage-BMnN0lgj.js → AppViewerPage-BR8ttEGa.js} +1 -1
- package/dist/web/assets/{BackToTop-BfdZE6xK.js → BackToTop-5_AQRMZl.js} +1 -1
- package/dist/web/assets/{BoardCardFieldsMenu-xjUzesvU.js → BoardCardFieldsMenu-Bb_Z9a4Q.js} +1 -1
- package/dist/web/assets/{BoardMoveMenu-CCvochC4.js → BoardMoveMenu-B-f8O6cC.js} +1 -1
- package/dist/web/assets/{Breadcrumb-ys780J7e.js → Breadcrumb-DtM5lZy5.js} +1 -1
- package/dist/web/assets/{CaptureChangePage-BY7KKPuU.js → CaptureChangePage-BzwcfacI.js} +1 -1
- package/dist/web/assets/ConnectionsPage-C_vgqwF2.js +1 -0
- package/dist/web/assets/ConnectionsPage-DS2PEG6K.css +1 -0
- package/dist/web/assets/{CopyFixPrompt-ERDPz6w7.js → CopyFixPrompt-CErC3Paj.js} +1 -1
- package/dist/web/assets/DataFormatPage-Ccy_e9rf.css +1 -0
- package/dist/web/assets/DataFormatPage-DwL4Ofc9.js +2 -0
- package/dist/web/assets/DebugTurnPage-UpK_3ZWY.js +1 -0
- package/dist/web/assets/DebugTurnsPage-C0aZg5-3.js +1 -0
- package/dist/web/assets/{DialogTitle-C86eI8Q_.js → DialogTitle-BQXOe8EK.js} +1 -1
- package/dist/web/assets/{EmployeeRedirectPage-B5Sh-mOu.js → EmployeeRedirectPage-BjWpXDSM.js} +1 -1
- package/dist/web/assets/EmployeeScopeDialog-Bt3ZlDyZ.js +1 -0
- package/dist/web/assets/EmployeeScopeDialog-U_-eNH0Z.css +1 -0
- package/dist/web/assets/{EmployeeWorkbench-BhReI8l6.css → EmployeeWorkbench-Bp9pUkfS.css} +1 -1
- package/dist/web/assets/EmployeeWorkbench-GtJIUD5G.js +4 -0
- package/dist/web/assets/FieldRoot-DRf4wM5x.js +1 -0
- package/dist/web/assets/FlaGrowth-DgVLB8hp.css +1 -0
- package/dist/web/assets/FlaGrowth-OQtTLTng.js +1 -0
- package/dist/web/assets/FlaOccupationKit-BvrKsosv.css +1 -0
- package/dist/web/assets/FlaOccupationKit-C-x4VrKk.js +1 -0
- package/dist/web/assets/{FlaTaskSheets-IQ1HsEu5.js → FlaTaskSheets-CoaF5CbQ.js} +1 -1
- package/dist/web/assets/FlasPage-CgIVOGFM.js +1 -0
- package/dist/web/assets/FlasPage-H99IZ9M6.css +1 -0
- package/dist/web/assets/{GrowthLoading-BMf6Z2MU.js → GrowthLoading-VuVo2vLf.js} +1 -1
- package/dist/web/assets/HowtoPage-CZ3mOdLc.js +1 -0
- package/dist/web/assets/{HowtoPage-BRV2W1Go.css → HowtoPage-CrvMmT6K.css} +1 -1
- package/dist/web/assets/InboxPage-1ue8vA7H.css +1 -0
- package/dist/web/assets/InboxPage-zNUnnYeJ.js +6 -0
- package/dist/web/assets/{KnowledgeDeleteButton-Bo7gXmnS.js → KnowledgeDeleteButton-BlUnSG3b.js} +1 -1
- package/dist/web/assets/{KnowledgeHardDeleteSection-amJaLmkS.js → KnowledgeHardDeleteSection-CznXBtHY.js} +1 -1
- package/dist/web/assets/KnowledgeItemEditPage-DGRNkAYd.js +1 -0
- package/dist/web/assets/{KnowledgeItemSummaryCard-CjcKr6Xr.js → KnowledgeItemSummaryCard-Co5JKBHl.js} +1 -1
- package/dist/web/assets/KnowledgeOrganizerPage-BWvF1GEu.js +1 -0
- package/dist/web/assets/KnowledgeOrganizerPage-CJaFkfS7.css +1 -0
- package/dist/web/assets/KnowledgePage--Z4_kAhq.js +1 -0
- package/dist/web/assets/KnowledgePeek-BgzQA9SI.js +1 -0
- package/dist/web/assets/{KnowledgePeek-Bm5jRVA9.css → KnowledgePeek-CwZVuSkf.css} +1 -1
- package/dist/web/assets/{KnowledgeTurnReceiptPage-CbRSAOkW.js → KnowledgeTurnReceiptPage-Csyjimeg.js} +1 -1
- package/dist/web/assets/KnowledgeWorkspace-0yOpWtEB.js +4 -0
- package/dist/web/assets/{KnowledgeWorkspace-DCoVFyf0.css → KnowledgeWorkspace-BgWo6lBj.css} +1 -1
- package/dist/web/assets/{MeAvatar-Ca5kjZR7.js → MeAvatar-aY_q8cKs.js} +1 -1
- package/dist/web/assets/{MeLink-CMsMg8E_.js → MeLink-B0pNwVLa.js} +1 -1
- package/dist/web/assets/MenuSeparator-BR-uLovR.js +1 -0
- package/dist/web/assets/ModelSettingsPage-B9PS1Kay.css +1 -0
- package/dist/web/assets/ModelSettingsPage-BL6MsF7C.js +1 -0
- package/dist/web/assets/{NotFoundPage-j5qbgkxY.js → NotFoundPage-Cr1MaPuk.js} +1 -1
- package/dist/web/assets/NoticeRow-BXZWn4EZ.js +1 -0
- package/dist/web/assets/NoticeRow-ktVO_9Es.css +1 -0
- package/dist/web/assets/OccupationsPage-CkVqZ2pz.js +1 -0
- package/dist/web/assets/OccupationsPage-Dup7WzNh.css +1 -0
- package/dist/web/assets/OverviewPage-DFW3Ua0Z.js +1 -0
- package/dist/web/assets/OverviewPage-Dr4jrXW4.css +1 -0
- package/dist/web/assets/{PageColumns-C93sMwwH.js → PageColumns-DvehZlYm.js} +1 -1
- package/dist/web/assets/PageOutline-CFGtHmOK.js +1 -0
- package/dist/web/assets/PageOutline-DG5ZYtA8.css +1 -0
- package/dist/web/assets/{PersonalProfilePage-DdBfHnqq.css → PersonalProfilePage-DnjNX2xK.css} +1 -1
- package/dist/web/assets/PersonalProfilePage-TxsNr44t.js +1 -0
- package/dist/web/assets/PersonalProjectsPage-AhgP6CL8.js +1 -0
- package/dist/web/assets/{PinIcon-Dp4Ubaw6.js → PinIcon-BTQsnxRY.js} +1 -1
- package/dist/web/assets/PopperContent-DtMksk76.js +1 -0
- package/dist/web/assets/{Presence-D-jzaDBV.js → Presence-B0zMpCF4.js} +1 -1
- package/dist/web/assets/ProfileAuthorChip-BqT9Vv65.js +1 -0
- package/dist/web/assets/ProfileAuthorChip-CAWNGoW3.css +1 -0
- package/dist/web/assets/{ProjectAgentsPage-RpfiV2Fm.css → ProjectAgentsPage-CjeXFzHr.css} +1 -1
- package/dist/web/assets/ProjectAgentsPage-O-cMavcz.js +5 -0
- package/dist/web/assets/{ProjectJudgmentPolicy-DR8Rk_1K.js → ProjectJudgmentPolicy-CyHAu0nm.js} +2 -2
- package/dist/web/assets/{PublicProjectsPage-QwAtKnu1.js → PublicProjectsPage-Ck1QSR0R.js} +1 -1
- package/dist/web/assets/RecentNotices-vJobVOcm.js +1 -0
- package/dist/web/assets/{RoundtablesPage-DLZdviOP.js → RoundtablesPage-C3dYekQ5.js} +6 -6
- package/dist/web/assets/{RoundtablesPage-DK9A9J-y.css → RoundtablesPage-DL-IOngN.css} +1 -1
- package/dist/web/assets/RovingFocusGroup-CUqyjFSs.js +1 -0
- package/dist/web/assets/{RovingFocusItem-HhNodnJn.js → RovingFocusItem-CyyuWXjE.js} +1 -1
- package/dist/web/assets/{SessionMigrationPage-_W2BnsjS.js → SessionMigrationPage-DukDM0TP.js} +1 -1
- package/dist/web/assets/SessionRecordsPage-DZ5ZBiuS.js +1 -0
- package/dist/web/assets/SettingsPage-BVIU7iFS.js +1 -0
- package/dist/web/assets/SettingsPage-Cj3pEWcd.css +1 -0
- package/dist/web/assets/SharedJefaReportPage-DUY03VLS.js +1 -0
- package/dist/web/assets/TagVocabularyPage-BKLFJiSu.js +1 -0
- package/dist/web/assets/TaskBlockerClear-BBmPbomO.css +1 -0
- package/dist/web/assets/TaskBlockerClear-BxOiiuK8.js +1 -0
- package/dist/web/assets/TaskBlockerNotice-iUiD3BuZ.js +1 -0
- package/dist/web/assets/{TaskReason-BgF2K1hA.js → TaskReason-D5j7L8tl.js} +1 -1
- package/dist/web/assets/TeamCard-CDunbIrP.js +1 -0
- package/dist/web/assets/TeamCard-CihQsZZ1.css +1 -0
- package/dist/web/assets/{TeamCardsWidget-CZTQVqyh.js → TeamCardsWidget-CUW-fPn7.js} +1 -1
- package/dist/web/assets/TeamIsland-CmpDmIX2.js +9 -0
- package/dist/web/assets/{TeamIsland-BBQbpozz.css → TeamIsland-DvtcsAsb.css} +1 -1
- package/dist/web/assets/{Teleport-Dg_IoSZh.js → Teleport-Dzdr8umQ.js} +1 -1
- package/dist/web/assets/{TextField-Y8DAIUw6.js → TextField-BPhEpEv9.js} +1 -1
- package/dist/web/assets/TonborgDelegationSwitch-C1nkJqkJ.js +1 -0
- package/dist/web/assets/TonborgDelegationSwitch-DeqERWoo.css +1 -0
- package/dist/web/assets/{UiChip-vvwIQTGB.js → UiChip-BEQ067LV.js} +1 -1
- package/dist/web/assets/UiDialog-JjqzOA0z.js +1 -0
- package/dist/web/assets/{UiDisclosure-Bp0vA9km.js → UiDisclosure-L6GEJHSw.js} +1 -1
- package/dist/web/assets/UiIcon-vgD4v8q8.js +1 -0
- package/dist/web/assets/UiIconButton-BzyMc14P.js +1 -0
- package/dist/web/assets/{UiSegmented-DX8WXXVn.js → UiSegmented-CIIm3KoV.js} +1 -1
- package/dist/web/assets/{UiWeight-Ci6wZg1W.js → UiWeight-D-2iZ_Kc.js} +1 -1
- package/dist/web/assets/VirtualDirectoryList-BJecsQct.css +1 -0
- package/dist/web/assets/VirtualDirectoryList-BV8KsA-Z.js +1 -0
- package/dist/web/assets/{VisuallyHidden-BLRDANy_.js → VisuallyHidden-BxKxuXRF.js} +1 -1
- package/dist/web/assets/VisuallyHiddenInput-DD4vhlqT.js +1 -0
- package/dist/web/assets/WidgetSlot-Dw5nWlb7.js +2 -0
- package/dist/web/assets/WorkbenchListHead-B0TjHsTO.js +1 -0
- package/dist/web/assets/WorkbenchListPage-BX6Z9gkB.css +1 -0
- package/dist/web/assets/WorkbenchListPage-D0xX-YNl.js +1 -0
- package/dist/web/assets/_plugin-vue_export-helper-B4pFJCwG.js +9 -0
- package/dist/web/assets/agent-apps-B1Je-mpY.js +1 -0
- package/dist/web/assets/agent-occupation-CjfQqSzd.js +1 -0
- package/dist/web/assets/{agent-pins-CoyKIkO2.js → agent-pins-DxHlJ96z.js} +1 -1
- package/dist/web/assets/agent-profile-BNPLhDog.css +1 -0
- package/dist/web/assets/{agent-roster-records-PfAgndHp.js → agent-roster-records-Bi5HWDif.js} +1 -1
- package/dist/web/assets/agent-work-summary-o_9-QWBL.js +1 -0
- package/dist/web/assets/{agent-workflows-CRdfc5xN.js → agent-workflows-DgdbJqpg.js} +1 -1
- package/dist/web/assets/{attach-closest-edge-BIyU46Kh.js → attach-closest-edge-DUc_VUVO.js} +1 -1
- package/dist/web/assets/{attention-store-BrThOc88.js → attention-store-Bod20yM3.js} +1 -1
- package/dist/web/assets/{badge-mwWygmG4.js → badge-tMy2Qr94.js} +1 -1
- package/dist/web/assets/{button-byjQ5eLH.js → button-DnKFsImW.js} +1 -1
- package/dist/web/assets/{card-Bo5Wyknz.js → card-Ccu7HCNb.js} +1 -1
- package/dist/web/assets/{catalog-CgoPKxd_.js → catalog-CJUV8OJ6.js} +1 -1
- package/dist/web/assets/checkbox-D1R6kTUB.js +1 -0
- package/dist/web/assets/{client-DmgW-kvA.js → client-D-G2i5VU.js} +2 -2
- package/dist/web/assets/client-links-store-UgmraFBZ.js +1 -0
- package/dist/web/assets/combobox-C7QLYGzs.js +1 -0
- package/dist/web/assets/console-DgRc8Itw.js +1 -0
- package/dist/web/assets/{conversation-launcher-settings-DVd61o9s.js → conversation-launcher-settings-CZAfuu8B.js} +1 -1
- package/dist/web/assets/copy-mention-C0EJhDPy.js +1 -0
- package/dist/web/assets/{dialog-CHAmruFj.js → dialog-Bbq93W68.js} +1 -1
- package/dist/web/assets/{dist-Bz5tCO-_.js → dist-Dd8yFhv6.js} +1 -1
- package/dist/web/assets/{dist-B9snV3GY.js → dist-PpsW5ZE3.js} +1 -1
- package/dist/web/assets/dropdown-menu-1fGUL0V3.js +1 -0
- package/dist/web/assets/{field-ZZb3Sy9Y.js → field-DjVv_wIS.js} +1 -1
- package/dist/web/assets/{format-bytes-DiEwa-ch.js → format-bytes-BKq_E0Hs.js} +1 -1
- package/dist/web/assets/hover-card-BO-929hq.js +1 -0
- package/dist/web/assets/{identity-4i_OR9WP.js → identity-DIG-uOiU.js} +1 -1
- package/dist/web/assets/index-C7IVLf_v.js +24 -0
- package/dist/web/assets/index-DF0TcfPY.css +1 -0
- package/dist/web/assets/{input-BP9Wn4Yk.js → input-DmwRmYO2.js} +1 -1
- package/dist/web/assets/is-equal-8VOV02sH.js +1 -0
- package/dist/web/assets/{label-xRSp2rqO.js → label-BvwPUTS4.js} +1 -1
- package/dist/web/assets/label-table-CDzYRZpc.js +1 -0
- package/dist/web/assets/{model-DRrCt6Xz.js → model-0TZRbkN2.js} +1 -1
- package/dist/web/assets/model-BF_ZMPLi.js +1 -0
- package/dist/web/assets/model-BjUERpoQ.js +3 -0
- package/dist/web/assets/model-CaR7VPg7.js +1 -0
- package/dist/web/assets/{model-6a2cm5q3.js → model-Dfe81jZT.js} +1 -1
- package/dist/web/assets/{model-DiJvQFH-.js → model-DpkZUZUL.js} +1 -1
- package/dist/web/assets/{model-CidDnNzT.js → model-Tmn6HvL-.js} +1 -1
- package/dist/web/assets/{model-P1cRTtx9.js → model-y7OUvtKz.js} +1 -1
- package/dist/web/assets/motion-C1fZrqmI.js +1 -0
- package/dist/web/assets/{motion-eJ8Y9ulR.js → motion-mAmbRj_M.js} +1 -1
- package/dist/web/assets/{motion-preference-CC0XwuGQ.js → motion-preference-Dz9S1bZa.js} +1 -1
- package/dist/web/assets/npm-copies-BLRc0FXW.js +1 -0
- package/dist/web/assets/{client-connection-model-DVwA-GIu.css → npm-copies-GRyMAduA.css} +1 -1
- package/dist/web/assets/occupation-catalog-_SnxxRbK.js +1 -0
- package/dist/web/assets/occupation-kits-DFC6Auuc.js +1 -0
- package/dist/web/assets/{option-CdihAKf9.js → option-DC8frdbr.js} +1 -1
- package/dist/web/assets/{orchestration-filters-DmF4Qs8E.js → orchestration-filters-UeiAHJqn.js} +1 -1
- package/dist/web/assets/overview-data-Cq1gefY5.js +1 -0
- package/dist/web/assets/page-refresh-DdRJaxMv.js +1 -0
- package/dist/web/assets/{page-title-CPUoKkyh.js → page-title-Cm9u_qw1.js} +1 -1
- package/dist/web/assets/person-profile-BH2AzOfw.js +1 -0
- package/dist/web/assets/popover-DW__YCSE.js +1 -0
- package/dist/web/assets/popup-host-ctKYu9Ze.js +1 -0
- package/dist/web/assets/profile-model-DtISOJ-X.js +1 -0
- package/dist/web/assets/{project-board-layout-BPk55Azx.js → project-board-layout-CTM8kAgq.js} +1 -1
- package/dist/web/assets/{project-capture-zRbPkI54.js → project-capture-B3pNhpFF.js} +1 -1
- package/dist/web/assets/{project-origin-BNl8Mqof.js → project-origin-BO8Ngccf.js} +1 -1
- package/dist/web/assets/quick-edit-api-B169r5Qb.js +1 -0
- package/dist/web/assets/radio-group-DqA46cXQ.js +1 -0
- package/dist/web/assets/review-api-CJaNgPMA.js +1 -0
- package/dist/web/assets/review-list-BbV-Mle7.js +1 -0
- package/dist/web/assets/review-store-DSQpb5P8.js +1 -0
- package/dist/web/assets/{role-names-BDswxugG.js → role-names-By0xdfTn.js} +1 -1
- package/dist/web/assets/roundtable-live-u9qUU6aA.js +1 -0
- package/dist/web/assets/{runtime-dom.esm-bundler-CjD1s0uc.js → runtime-dom.esm-bundler-DhFy4Djs.js} +1 -1
- package/dist/web/assets/save-file-oGyIokMI.js +1 -0
- package/dist/web/assets/select-TqPBladU.js +1 -0
- package/dist/web/assets/{session-launch-offers-2SxrTwBr.js → session-launch-offers-CtQeY4Qk.js} +1 -1
- package/dist/web/assets/{settings-restart-fHB-lEm8.js → settings-autosave-C7vW3_SP.js} +1 -1
- package/dist/web/assets/settings-restart-p12HUUve.js +1 -0
- package/dist/web/assets/shared-report-DQBSigHB.js +3 -0
- package/dist/web/assets/{source-adapters-TLaUKVEM.js → source-adapters-DPJzumzC.js} +1 -1
- package/dist/web/assets/{switch-Cq1rT1Ti.js → switch-D7w_0h3m.js} +1 -1
- package/dist/web/assets/tabs-DR8k0PN9.js +1 -0
- package/dist/web/assets/{task-card-fields-BkwTMtq6.js → task-card-fields-X1ZYCm_j.js} +1 -1
- package/dist/web/assets/{task-labels-CVomryt6.js → task-labels-LuXoQhF9.js} +1 -1
- package/dist/web/assets/{task-reason-BenU3Ly4.js → task-reason-ChpbGtyx.js} +1 -1
- package/dist/web/assets/{team-sheets-BIFVatFG.js → team-sheets-DYCQqa8I.js} +1 -1
- package/dist/web/assets/{textarea-CEokSlpT.js → textarea-D53VYanK.js} +1 -1
- package/dist/web/assets/ui-D4nAhcmu.css +1 -0
- package/dist/web/assets/ui-DmNbL8MW.js +1 -0
- package/dist/web/assets/{useAgentRecords-B0ODDGeO.js → useAgentRecords-Hy9nqMs7.js} +1 -1
- package/dist/web/assets/useAgentWorkSummary-mloD4p12.js +1 -0
- package/dist/web/assets/{useApi-CROJJdhE-CbQwoO_u.js → useApi-CROJJdhE-DnUGUb8O.js} +1 -1
- package/dist/web/assets/{useClipboardCopy-Dd9bf8dt.js → useClipboardCopy-BTuQMeWI.js} +1 -1
- package/dist/web/assets/{useFocusReturn-DFHFciMS.js → useFocusReturn-4hUmSzj9.js} +1 -1
- package/dist/web/assets/{useForwardExpose-D3bCxDJx.js → useForwardExpose-BDmW7q7u.js} +1 -1
- package/dist/web/assets/{useForwardPropsEmits-CshHUE63.js → useForwardPropsEmits-BzT2luD4.js} +1 -1
- package/dist/web/assets/useForwardScopeId-DZCnSswO.js +1 -0
- package/dist/web/assets/useKnowledgeConfirm-L8wnJCuX.js +1 -0
- package/dist/web/assets/useKnowledgeItemPeek-C_huXt6E.js +1 -0
- package/dist/web/assets/{useMinimumLoadingDisplay-Br2MBA-0.js → useMinimumLoadingDisplay-Dkl8NQru.js} +1 -1
- package/dist/web/assets/usePageTools-CbDOdIrg.js +1 -0
- package/dist/web/assets/usePrimitiveElement-tPQM7XJs.js +1 -0
- package/dist/web/assets/{useProjectAgentRoster-BLHF34Hj.js → useProjectAgentRoster-BBmRvcgr.js} +1 -1
- package/dist/web/assets/{useRoutePeek-KvY9hOQI.js → useRoutePeek-CRbCDqsm.js} +1 -1
- package/dist/web/assets/useTeamPeople-D_5cxxf1.js +1 -0
- package/dist/web/assets/{useTeamWork-wKGBRcNv.js → useTeamWork-CXEQwF4n.js} +1 -1
- package/dist/web/assets/{useTypeahead-C50w2tTI.js → useTypeahead-CVYuxPOD.js} +1 -1
- package/dist/web/assets/{utils-CArDYAhe.js → utils-BnrWDlfm.js} +1 -1
- package/dist/web/assets/utils-BsGjKHV8.js +1 -0
- package/dist/web/assets/verification-DbCo_dnY.js +1 -0
- package/dist/web/assets/version-1lwoVj6f.js +1 -0
- package/dist/web/assets/{vue-router-BzQKabzW.js → vue-router-D4_ms6om.js} +1 -1
- package/dist/web/assets/website-YgovUEcN.js +1 -0
- package/dist/web/assets/workbench-card-Dt0820yW.css +1 -0
- package/dist/web/index.html +90 -73
- package/docs/agent-conversations-and-collaboration.md +55 -58
- package/docs/agent-interface-architecture.md +7 -2
- package/docs/agent-roundtable.md +7 -7
- package/docs/client-connections.md +88 -10
- package/docs/client-links.md +16 -1
- package/docs/employee-agents.md +2 -2
- package/docs/judgment-and-autonomy.md +4 -2
- package/docs/public-personal-architecture.md +1 -1
- package/graph-provider/fuli_graph/app.py +6 -0
- package/graph-provider/fuli_graph/graph_field_contract.py +16 -5
- package/graph-provider/fuli_graph/graph_format_migrations.py +16 -0
- package/graph-provider/fuli_graph/graph_models.py +11 -62
- package/graph-provider/fuli_graph/graph_query.py +46 -105
- package/graph-provider/fuli_graph/knowledge_batch_confirmation.py +7 -5
- package/graph-provider/fuli_graph/knowledge_duplicate_models.py +24 -0
- package/graph-provider/fuli_graph/knowledge_duplicate_rules.py +157 -0
- package/graph-provider/fuli_graph/knowledge_duplicates.py +357 -0
- package/graph-provider/fuli_graph/knowledge_index_scan.py +120 -0
- package/graph-provider/fuli_graph/knowledge_item_routes.py +3 -1
- package/graph-provider/fuli_graph/knowledge_item_view.py +45 -2
- package/graph-provider/fuli_graph/knowledge_item_view_models.py +21 -0
- package/graph-provider/fuli_graph/knowledge_management.py +6 -1
- package/graph-provider/fuli_graph/knowledge_outdated.py +15 -5
- package/graph-provider/fuli_graph/knowledge_retrieval_models.py +95 -0
- package/graph-provider/fuli_graph/knowledge_retrieval_terms.py +116 -0
- package/graph-provider/fuli_graph/knowledge_review.py +65 -2
- package/graph-provider/fuli_graph/knowledge_review_models.py +5 -0
- package/graph-provider/fuli_graph/knowledge_search.py +191 -62
- package/graph-provider/fuli_graph/knowledge_semantic.py +87 -0
- package/graph-provider/fuli_graph/knowledge_semantic_index.py +98 -0
- package/graph-provider/fuli_graph/knowledge_semantic_models.py +72 -0
- package/graph-provider/fuli_graph/knowledge_semantic_query.py +19 -0
- package/graph-provider/fuli_graph/knowledge_versions.py +12 -1
- package/graph-provider/fuli_graph/models.py +13 -2
- package/graph-provider/fuli_graph/preference_versions.py +28 -7
- package/graph-provider/fuli_graph/project_agent_routes.py +60 -2
- package/graph-provider/fuli_graph/project_agent_task_models.py +63 -5
- package/graph-provider/fuli_graph/store.py +2 -0
- package/graph-provider/fuli_graph/store_project_agent_task_activity.py +12 -3
- package/graph-provider/fuli_graph/store_project_agent_task_blockers.py +110 -23
- package/graph-provider/fuli_graph/store_project_agent_task_pages.py +186 -0
- package/graph-provider/fuli_graph/store_project_agent_task_reads.py +6 -4
- package/graph-provider/fuli_graph/store_project_agent_task_recruitment.py +0 -7
- package/graph-provider/fuli_graph/store_project_agent_tasks.py +4 -3
- package/graph-provider/fuli_graph/store_task_contexts.py +14 -4
- package/graph-provider/fuli_graph/task_blocker.py +38 -6
- package/graph-provider/fuli_graph/task_context_routes.py +1 -1
- package/graph-provider/fuli_graph/tonborg_confirmation.py +48 -0
- package/graph-provider/pyproject.toml +1 -1
- package/native/win32/fuli-win-helper.exe +0 -0
- package/npm-shrinkwrap.json +16 -50
- package/package.json +2 -2
- package/packages/roundtable/src/peer/node-store.js +2 -6
- package/packages/roundtable/src/roundtable/chat-service.js +2 -1
- package/packages/roundtable/src/roundtable/chat.js +11 -1
- package/packages/roundtable/src/roundtable/delivery-state.js +43 -0
- package/packages/roundtable/src/roundtable/fla-address.js +6 -0
- package/packages/roundtable/src/roundtable/group-discussion-store.js +2 -2
- package/packages/roundtable/src/roundtable/group-discussion.js +15 -15
- package/packages/roundtable/src/roundtable/person-conversation.js +2 -1
- package/packages/roundtable/src/roundtable/service.js +38 -9
- package/packages/roundtable/src/roundtable/store.js +8 -5
- package/packages/roundtable/src/storage/database-format.js +21 -16
- package/registry/client-links.json +66 -4
- package/registry/occupation-plugins.json +593 -0
- package/skills/capturing-session-knowledge/SKILL.md +24 -7
- package/skills/capturing-session-knowledge/references/capture.md +22 -6
- package/skills/capturing-session-knowledge/references/coordination.md +16 -6
- package/skills/capturing-session-knowledge/references/retrieval.md +25 -6
- package/skills/flreview/SKILL.md +1 -1
- package/skills/operating-fuli/SKILL.md +42 -11
- package/skills/operating-fuli/references/workflow-recipes.md +9 -5
- package/src/acceptance-checks/port.js +37 -0
- package/src/adaptive-runtime/settings.js +1 -1
- package/src/adaptive-runtime/state.js +3 -3
- package/src/agent-apps/host-tools/catalog.js +7 -0
- package/src/agent-apps/store.js +2 -10
- package/src/agent-delegation/person-words.js +15 -1
- package/src/agent-kits/cli-presence.js +78 -0
- package/src/agent-kits/client-detection.js +7 -0
- package/src/agent-kits/client-installer.js +20 -3
- package/src/agent-kits/installer-manifest.js +11 -6
- package/src/agent-kits/legacy-hook-cleanup.js +4 -3
- package/src/agent-kits/new-sessions.js +82 -0
- package/src/agent-kits/opencode-plugin-gate.js +3 -1
- package/src/agent-kits/pins.js +12 -12
- package/src/agent-kits/ports.js +5 -2
- package/src/agent-kits/session-launcher.js +11 -4
- package/src/agent-kits/vendor/agent-installer/README.md +1 -1
- package/src/agent-kits/vendor/agent-installer/index.d.ts +1 -1
- package/src/agent-kits/vendor/agent-session-launcher/README.md +1 -1
- package/src/agent-kits/vendor/agent-session-launcher/index.d.ts +30 -1
- package/src/agent-kits/vendor/agent-session-launcher/index.mjs +8 -0
- package/src/agent-roundtable/tools.js +3 -3
- package/src/agent-services/store.js +2 -4
- package/src/agent-tools/agent-workflow-definitions.js +7 -3
- package/src/agent-tools/checkpoint-definitions.js +5 -4
- package/src/agent-tools/fla-lesson-definitions.js +24 -0
- package/src/agent-tools/graph-definitions.js +8 -0
- package/src/agent-tools/graph-handlers.js +10 -1
- package/src/agent-tools/interface-catalog.js +38 -7
- package/src/agent-tools/model-backend-definitions.js +1 -1
- package/src/agent-tools/occupation-kit-definitions.js +20 -0
- package/src/agent-tools/project-agent-definitions.js +19 -40
- package/src/agent-tools/project-agent-tool-definitions.js +5 -1
- package/src/agent-tools/reply-echo-definitions.js +18 -0
- package/src/agent-tools/tonborg-question-definitions.js +26 -0
- package/src/agent-workflows/agent-tools.js +69 -3
- package/src/agent-workflows/port.js +32 -4
- package/src/agent-workflows/store.js +16 -9
- package/src/agents/choice-answers.js +19 -0
- package/src/agents/claude-code/choice-answers.js +49 -0
- package/src/agents/claude-code/fla-menu-command.js +14 -0
- package/src/agents/claude-code/lifecycle-hook.js +16 -9
- package/src/agents/claude-code/transcript-format-probe.js +31 -0
- package/src/agents/claude-code/turn-records.js +38 -0
- package/src/agents/codex/fla-prompts.js +98 -0
- package/src/agents/codex/lifecycle-hook.js +9 -8
- package/src/agents/codex/transcript-format-probe.js +29 -0
- package/src/agents/cursor/lifecycle-hook.js +3 -2
- package/src/agents/identity-receipt.js +9 -7
- package/src/agents/lifecycle-failure.js +9 -0
- package/src/agents/lifecycle-message.js +4 -5
- package/src/agents/opencode/lifecycle-hook.js +12 -7
- package/src/agents/opencode/plugin.js +7 -2
- package/src/agents/token-usage-resolver.js +1 -1
- package/src/agents/transcript-format-registry.js +34 -0
- package/src/agents/transcript-format-scan.js +71 -0
- package/src/agents/turn-receipt.js +5 -4
- package/src/cli/command-registry.js +1 -1
- package/src/cli/local-runtime-command.js +5 -2
- package/src/cli/local-runtime-options.js +7 -3
- package/src/cli/models-command.js +15 -11
- package/src/cli/update-command.js +2 -2
- package/src/cli/update-installation.js +23 -6
- package/src/cli/workspace-connection-command.js +2 -2
- package/src/client-links/registry.js +6 -112
- package/src/conversations/entry-skeleton.js +113 -55
- package/src/conversations/human-interaction.js +1 -1
- package/src/conversations/person-words.js +29 -0
- package/src/conversations/preference-lifecycle.js +2 -1
- package/src/conversations/preference-session.js +17 -14
- package/src/conversations/reply-citations.js +21 -0
- package/src/conversations/stop-auto-close.js +42 -9
- package/src/conversations/task-context-view.js +113 -27
- package/src/conversations/turn-findings.js +105 -0
- package/src/data-format/format-notices.js +2 -1
- package/src/data-format/local-stores.js +22 -1
- package/src/debug-turns/model-capture.js +1 -1
- package/src/debug-turns/record.js +1 -1
- package/src/desktop/cli-path.js +253 -0
- package/src/desktop/desktop-app-package.js +31 -0
- package/src/desktop/{fuli-links.js → desktop-client-links.js} +20 -16
- package/src/desktop/desktop-controller.js +35 -3
- package/src/desktop/npm-adoption-store.js +7 -0
- package/src/desktop/npm-adoption.js +119 -0
- package/src/desktop/npm-copies.js +73 -0
- package/src/desktop/npm-copy-control.js +56 -0
- package/src/desktop/npm-copy-data.js +51 -0
- package/src/desktop/npm-copy-uninstall.js +67 -0
- package/src/desktop/windows-controller.js +13 -1
- package/src/desktop/windows-installation-switch.js +1 -1
- package/src/desktop/windows-node-launcher.js +11 -0
- package/src/desktop/windows-uninstall.js +3 -0
- package/src/dreaming/astro-calls.js +47 -0
- package/src/dreaming/projects.js +39 -0
- package/src/dreaming/run.js +312 -0
- package/src/dreaming/scheduler.js +58 -0
- package/src/employees/builtin/jefa/board-store.js +2 -10
- package/src/employees/builtin/jefa/tools.js +1 -1
- package/src/employees/management-policy.js +1 -1
- package/src/employees/manifest.js +1 -1
- package/src/employees/service.js +11 -1
- package/src/external-knowledge/document-mapping.js +1 -1
- package/src/external-knowledge/index.js +0 -4
- package/src/fla-growth/lessons.js +40 -0
- package/src/fla-growth/task-verification.js +25 -0
- package/src/fla-growth/tool-suggestions.js +107 -0
- package/src/fla-growth/verification.js +30 -0
- package/src/graphiti/agent-access-policy.js +1 -1
- package/src/graphiti/agent-conversations.js +2 -2
- package/src/graphiti/agent-growth.js +32 -4
- package/src/graphiti/capture-change-confirmation.js +4 -1
- package/src/graphiti/capture-notice.js +2 -1
- package/src/graphiti/capture-onboarding.js +1 -1
- package/src/graphiti/collaboration-preference-projection.js +1 -1
- package/src/graphiti/conversation-triage.js +1 -1
- package/src/graphiti/current-project-knowledge-search.js +24 -1
- package/src/graphiti/execution-mode.js +1 -1
- package/src/graphiti/federated-application.js +16 -8
- package/src/graphiti/federated-search.js +8 -1
- package/src/graphiti/fla-mention.js +105 -96
- package/src/graphiti/fla-menu-reader.js +25 -0
- package/src/graphiti/fla-menu.js +108 -0
- package/src/graphiti/fla-picker.js +21 -16
- package/src/graphiti/fuli-markup.js +60 -0
- package/src/graphiti/group-member-context.js +1 -1
- package/src/graphiti/human-review-channel.js +16 -2
- package/src/graphiti/knowledge-result-budget.js +2 -2
- package/src/graphiti/knowledge-review.js +2 -1
- package/src/graphiti/local-runtimes.js +11 -0
- package/src/graphiti/preference-task-scope.js +1 -1
- package/src/graphiti/project-agent-control-plane.js +6 -0
- package/src/graphiti/project-agent-mapping.js +23 -10
- package/src/graphiti/project-agent-mention.js +10 -28
- package/src/graphiti/project-agent-task-entry.js +1 -1
- package/src/graphiti/project-agent-task-sheets.js +1 -1
- package/src/graphiti/project-agent-workflows.js +20 -5
- package/src/graphiti/project-knowledge-presence.js +27 -0
- package/src/graphiti/project-path-context.js +2 -2
- package/src/graphiti/provider-client.js +60 -0
- package/src/graphiti/recall-policy.js +1 -1
- package/src/graphiti/reply-echo-agent-tool.js +36 -0
- package/src/graphiti/reply-echo-group.js +85 -0
- package/src/graphiti/reply-echo.js +87 -0
- package/src/graphiti/session-knowledge-migration.js +2 -1
- package/src/graphiti/session-prompt-sentences.js +52 -0
- package/src/graphiti/session-records.js +3 -2
- package/src/graphiti/source-marker.js +14 -0
- package/src/graphiti/task-blocker-progress.js +24 -1
- package/src/graphiti/task-context-entry.js +11 -0
- package/src/graphiti/task-entry-group-discussion.js +31 -31
- package/src/graphiti/task-entry-named-fla.js +40 -70
- package/src/graphiti/task-entry-preferences.js +16 -3
- package/src/graphiti/task-entry-project-scope.js +4 -4
- package/src/graphiti/task-entry-read-only.js +28 -0
- package/src/graphiti/task-entry-standing-owner.js +3 -3
- package/src/graphiti/task-experiences.js +21 -3
- package/src/graphiti/task-knowledge-checkpoint.js +4 -1
- package/src/graphiti/task-knowledge-recall.js +157 -28
- package/src/graphiti/task-prompt-statement.js +49 -0
- package/src/graphiti/task-remember.js +23 -9
- package/src/graphiti/task-stated-rules.js +75 -0
- package/src/graphiti/temporary-project-scope.js +1 -1
- package/src/graphiti/topic-proposals.js +6 -5
- package/src/graphiti/user-taste-skill.js +1 -1
- package/src/graphiti/workflow-candidate-mapping.js +1 -1
- package/src/http/agent-delegation-gate.js +9 -0
- package/src/http/api-router.js +27 -1
- package/src/http/cli-path-api-router.js +35 -0
- package/src/http/desktop-client-api-router.js +18 -0
- package/src/http/dreaming-api-router.js +35 -0
- package/src/http/graph-api-router.js +17 -0
- package/src/http/knowledge-item-api-router.js +7 -0
- package/src/http/notices-api-router.js +37 -0
- package/src/http/npm-copies-api-router.js +36 -0
- package/src/http/occupation-plugins-api-router.js +43 -0
- package/src/http/reply-echo-api-router.js +53 -0
- package/src/http/response.js +1 -1
- package/src/http/retrieval-terms-api-router.js +37 -0
- package/src/http/retrospectives-api-router.js +18 -0
- package/src/http/semantic-api-router.js +26 -0
- package/src/http/session-launch-api-router.js +34 -1
- package/src/http/static-handler.js +1 -1
- package/src/http/task-blocker-api-router.js +17 -5
- package/src/http/task-verification-api-router.js +16 -0
- package/src/http/whats-new-api-router.js +34 -0
- package/src/judgment/acceptance.js +10 -3
- package/src/judgment/agent-view.js +21 -4
- package/src/judgment/conversation.js +86 -2
- package/src/judgment/delegated-reviews.js +23 -0
- package/src/judgment/engine.js +49 -16
- package/src/judgment/explain-method.js +11 -0
- package/src/judgment/http.js +17 -2
- package/src/judgment/question-options.js +97 -0
- package/src/judgment/question-tools.js +235 -0
- package/src/judgment/review-delegation.js +89 -0
- package/src/judgment/review-prompt.js +44 -3
- package/src/judgment/review-verdicts.js +13 -4
- package/src/judgment/runtime.js +3 -1
- package/src/judgment/service.js +25 -5
- package/src/judgment/store.js +44 -8
- package/src/judgment/verdict-schema.js +6 -0
- package/src/judgment/visible-items.js +15 -4
- package/src/knowledge-duplicates/scheduler.js +28 -0
- package/src/knowledge-hard-delete/forget-references.js +5 -2
- package/src/knowledge-impressions/store.js +17 -5
- package/src/local-runtime/console-autostart-record.js +95 -0
- package/src/local-runtime/console-autostart.js +143 -0
- package/src/local-runtime/console-health.js +26 -0
- package/src/local-runtime/installed-console-launcher.js +73 -0
- package/src/local-runtime/lifecycle.js +88 -21
- package/src/local-runtime/processes.js +15 -2
- package/src/local-runtime/unresponsive-console.js +77 -0
- package/src/local-runtime/windows-process-handle.js +9 -3
- package/src/mcp/create-mcp-server.js +4 -0
- package/src/mcp/fla-menu-prompts.js +60 -0
- package/src/mcp/process-registry.js +45 -3
- package/src/mcp/runtime.js +13 -4
- package/src/mcp/session-id.js +3 -2
- package/src/mcp/stdio-relay.js +4 -1
- package/src/mcp/tool-annotations.js +5 -2
- package/src/mcp/tool-profiles.js +1 -1
- package/src/mcp/tool-result.js +3 -1
- package/src/model-backends/adapters/anthropic-messages.js +3 -3
- package/src/model-backends/adapters/exchange.js +2 -2
- package/src/model-backends/adapters/ollama-local-build.js +1 -1
- package/src/model-backends/adapters/openai-chat.js +3 -3
- package/src/model-backends/adapters/openai-embeddings.js +60 -0
- package/src/model-backends/adapters/registry.js +3 -1
- package/src/model-backends/adapters/typesafe-systemone.js +1 -1
- package/src/model-backends/budget.js +23 -8
- package/src/model-backends/config.js +50 -16
- package/src/model-backends/decision-contract.js +2 -1
- package/src/model-backends/endpoint-models.js +80 -0
- package/src/model-backends/http.js +22 -2
- package/src/model-backends/keys-http.js +5 -4
- package/src/model-backends/model-fetch.js +37 -0
- package/src/model-backends/models-http.js +54 -0
- package/src/model-backends/port.js +194 -69
- package/src/model-backends/prompt.js +15 -4
- package/src/model-backends/request.js +42 -3
- package/src/model-backends/role-settings.js +27 -2
- package/src/model-backends/role-trust.js +3 -15
- package/src/model-backends/role-work-store.js +2 -12
- package/src/model-backends/runtime.js +11 -2
- package/src/model-backends/secret-store.js +61 -12
- package/src/model-backends/suggestion-log.js +6 -15
- package/src/model-backends/usage-ledger.js +28 -18
- package/src/notices/recent-notices.js +175 -0
- package/src/notifications/needs-person.js +1 -1
- package/src/occupation-plugins/agent-tools.js +59 -0
- package/src/occupation-plugins/choice-store.js +65 -0
- package/src/occupation-plugins/manifest.js +165 -0
- package/src/occupation-plugins/port.js +104 -0
- package/src/occupation-plugins/recruitment.js +38 -0
- package/src/presence/windows-helper-pin.js +1 -1
- package/src/registry/updatable-manifest.js +127 -0
- package/src/retrieval-terms/fill.js +102 -0
- package/src/retrieval-terms/runner.js +50 -0
- package/src/retrieval-terms/terms-model.js +99 -0
- package/src/retrospectives/run.js +113 -0
- package/src/retrospectives/runs.js +18 -0
- package/src/retrospectives/scheduler.js +58 -0
- package/src/semantic/scheduler.js +50 -0
- package/src/semantic/semantic-index.js +94 -0
- package/src/server/application-lifecycle.js +1 -1
- package/src/server/signal-shutdown.js +31 -0
- package/src/server.js +41 -18
- package/src/setup/first-run-capture.js +6 -2
- package/src/setup/graph-runtime.js +46 -38
- package/src/setup/neo4j-memory-profile.js +1 -1
- package/src/setup/paths.js +2 -0
- package/src/standing-assignments/store.js +2 -4
- package/src/system/client-connection-status.js +8 -4
- package/src/system/doctor.js +80 -4
- package/src/system/graph-migration.js +1 -1
- package/src/system/mcp-process-scan.js +55 -0
- package/src/system/platform-path.js +21 -9
- package/src/system/runtime-settings.js +19 -7
- package/src/system/settings-guide.js +7 -0
- package/src/system/system-service.js +64 -7
- package/src/task-blockers/console-port.js +12 -6
- package/src/text/markdown-link.js +12 -0
- package/src/text/single-line.js +6 -0
- package/src/text/utf8-preview.js +7 -6
- package/src/whats-new/lines/0.25.0.json +17 -0
- package/src/whats-new/release-lines.js +66 -0
- package/src/whats-new/whats-new.js +70 -0
- package/src/work-surfaces/store.js +2 -4
- package/dist/web/assets/AboutSectionHeading-CiD3M3eG.css +0 -1
- package/dist/web/assets/AboutSectionHeading-w5P9g9WB.js +0 -1
- package/dist/web/assets/AgentAppsPage-DY_TV5EE.js +0 -1
- package/dist/web/assets/AgentManagement-CeF4mjtg.css +0 -1
- package/dist/web/assets/AgentManagement-VWpTW_38.js +0 -7
- package/dist/web/assets/AgentMentionCopy-CNKrzZvE.css +0 -1
- package/dist/web/assets/AgentMentionCopy-DI23ym95.js +0 -1
- package/dist/web/assets/AgentProfilePage-DrqWGjqt.js +0 -5
- package/dist/web/assets/AgentServicesPage-ARIWfmuh.css +0 -1
- package/dist/web/assets/AgentServicesPage-DEz1dnct.js +0 -1
- package/dist/web/assets/ConnectionsPage-Cj-T0BH2.js +0 -1
- package/dist/web/assets/ConnectionsPage-Cwt-knQQ.css +0 -1
- package/dist/web/assets/DataFormatPage-0Ne27K6I.css +0 -1
- package/dist/web/assets/DataFormatPage-D39VmkWL.js +0 -2
- package/dist/web/assets/DebugTurnPage-C6xOOTYf.js +0 -1
- package/dist/web/assets/DebugTurnsPage-uclemAXU.js +0 -1
- package/dist/web/assets/EmployeeScopeDialog-DbEgouOr.js +0 -1
- package/dist/web/assets/EmployeeScopeDialog-Do5PHQh7.css +0 -1
- package/dist/web/assets/EmployeeWorkbench-Cd0Yrv4Z.js +0 -4
- package/dist/web/assets/FieldRoot-BZby7Lhw.js +0 -1
- package/dist/web/assets/FlaGrowth-BS5MVg54.js +0 -1
- package/dist/web/assets/FlaGrowth-BzXY8pcx.css +0 -1
- package/dist/web/assets/FlasPage-DsAcdiFS.js +0 -1
- package/dist/web/assets/FlasPage-SLQDMv47.css +0 -1
- package/dist/web/assets/HowtoPage-CKJAtKbM.js +0 -1
- package/dist/web/assets/InboxPage-Bkx6nIhb.css +0 -1
- package/dist/web/assets/InboxPage-DPV8n8FW.js +0 -4
- package/dist/web/assets/KnowledgeItemEditPage-n0jtTdHB.js +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-CNm2jvJZ.css +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-CzXXBL9z.js +0 -1
- package/dist/web/assets/KnowledgePage-CZ9oDt3D.js +0 -1
- package/dist/web/assets/KnowledgePeek-J6gHDda8.js +0 -1
- package/dist/web/assets/KnowledgeWorkspace-6C9dPHLk.js +0 -4
- package/dist/web/assets/MenuSeparator-BlL75cLC.js +0 -1
- package/dist/web/assets/ModelSettingsPage-BwUnvtP6.js +0 -1
- package/dist/web/assets/ModelSettingsPage-ConWy_ec.css +0 -1
- package/dist/web/assets/OccupationsPage-DLIkdMDv.js +0 -1
- package/dist/web/assets/OccupationsPage-Di7B-bPl.css +0 -1
- package/dist/web/assets/OverviewPage-BeExbgPK.js +0 -1
- package/dist/web/assets/OverviewPage-xdF5g6bZ.css +0 -1
- package/dist/web/assets/PageOutline-BqVgnlos.css +0 -1
- package/dist/web/assets/PageOutline-Dtu7R8Wo.js +0 -1
- package/dist/web/assets/PersonalProfilePage-CIeXNXqv.js +0 -1
- package/dist/web/assets/PersonalProjectsPage-DM70jshg.js +0 -1
- package/dist/web/assets/PopperContent-D6WQ0NV4.js +0 -1
- package/dist/web/assets/ProfileAuthorChip-C_0hzDoP.css +0 -1
- package/dist/web/assets/ProfileAuthorChip-CpLzynWF.js +0 -1
- package/dist/web/assets/ProjectAgentsPage-v-Wtq-2-.js +0 -5
- package/dist/web/assets/RovingFocusGroup-CmwaBpdi.js +0 -1
- package/dist/web/assets/SessionRecordsPage-CedaErNM.js +0 -1
- package/dist/web/assets/SettingsPage-D85vqpZb.css +0 -1
- package/dist/web/assets/SettingsPage-aRxdnfBu.js +0 -1
- package/dist/web/assets/SharedJefaReportPage-BkmmPYH1.js +0 -1
- package/dist/web/assets/TagVocabularyPage-Bcd5fvzW.js +0 -1
- package/dist/web/assets/TaskBlockerClear-Bln3zxga.js +0 -1
- package/dist/web/assets/TaskBlockerClear-CjSNfpyP.css +0 -1
- package/dist/web/assets/TaskBlockerNotice-Db1uAtT2.js +0 -1
- package/dist/web/assets/TeamCard-B4J2jkm5.js +0 -1
- package/dist/web/assets/TeamCard-CsmWDw2Q.css +0 -1
- package/dist/web/assets/TeamIsland-DXIQQ3bx.js +0 -9
- package/dist/web/assets/UiDialog-Cbb3AvXb.js +0 -1
- package/dist/web/assets/UiIcon-o5x6Sf-c.js +0 -1
- package/dist/web/assets/UiIconButton-EZ8ktpFH.js +0 -1
- package/dist/web/assets/UiNotice-DYZn5s6m.js +0 -1
- package/dist/web/assets/VirtualDirectoryList-1vLi41SD.css +0 -1
- package/dist/web/assets/VirtualDirectoryList-XB8MT97E.js +0 -1
- package/dist/web/assets/VisuallyHiddenInput-D-GgOU3T.js +0 -1
- package/dist/web/assets/WidgetSlot-URHq8Let.js +0 -2
- package/dist/web/assets/_plugin-vue_export-helper-PxAQThRD.js +0 -9
- package/dist/web/assets/agent-apps-CQf2Eba8.js +0 -1
- package/dist/web/assets/agent-avatar-lPJyVS9O.js +0 -1
- package/dist/web/assets/agent-occupation-DM6nIHrD.js +0 -1
- package/dist/web/assets/agent-profile-Clb-gYu-.css +0 -1
- package/dist/web/assets/agent-work-summary-bzTwEUaA.js +0 -1
- package/dist/web/assets/checkbox-BB8_0W6A.js +0 -1
- package/dist/web/assets/client-connection-model-CrDtN1yF.js +0 -1
- package/dist/web/assets/client-links-store-B7VjTEfO.js +0 -1
- package/dist/web/assets/combobox-BOXLFvvr.js +0 -1
- package/dist/web/assets/console-BB2sTsSs.js +0 -1
- package/dist/web/assets/context-menu-DW29av0t.js +0 -1
- package/dist/web/assets/dropdown-menu-C0AuLdFm.js +0 -1
- package/dist/web/assets/fla-mention-D_Qb7VeY.js +0 -1
- package/dist/web/assets/index-CSV9nk7P.js +0 -2
- package/dist/web/assets/index-DFt6UfTv.css +0 -1
- package/dist/web/assets/label-table-BUAeArKh.js +0 -1
- package/dist/web/assets/model-4BHOc7rR.js +0 -1
- package/dist/web/assets/model-CxmTkWuw.js +0 -1
- package/dist/web/assets/motion-TN6JdrrU.js +0 -1
- package/dist/web/assets/occupation-catalog-C3Hj8p4a.js +0 -1
- package/dist/web/assets/person-profile-Cmkd1uXt.js +0 -1
- package/dist/web/assets/popover-DyX7FE_t.js +0 -1
- package/dist/web/assets/profile-model-CmC9A3we.js +0 -1
- package/dist/web/assets/quick-edit-api-D6Xgntqh.js +0 -1
- package/dist/web/assets/radio-group-AkUGYCQ8.js +0 -1
- package/dist/web/assets/roundtable-live-C1wc_F30.js +0 -1
- package/dist/web/assets/save-file-rPduHi2f.js +0 -1
- package/dist/web/assets/select-CuhUd9VL.js +0 -1
- package/dist/web/assets/shared-report-BKhY4rtE.js +0 -3
- package/dist/web/assets/tabs-B8ccOT5z.js +0 -1
- package/dist/web/assets/ui-CoUaCzmO.css +0 -1
- package/dist/web/assets/ui-Pf0_u3Mo.js +0 -1
- package/dist/web/assets/useAgentWorkSummary-CNoUxwOW.js +0 -1
- package/dist/web/assets/useForwardScopeId-Bzm9IM9h.js +0 -1
- package/dist/web/assets/useKnowledgeItemPeek-24H5cZzL.js +0 -1
- package/dist/web/assets/useTeamPeople-IATXewrX.js +0 -1
- package/dist/web/assets/utils-_mWlJRpS.js +0 -1
- package/dist/web/assets/version-Cw272WBv.js +0 -1
- package/src/workspace-protocol/array-validation.js +0 -19
- package/src/workspace-protocol/base64url-contract.js +0 -27
- package/src/workspace-protocol/constants.js +0 -37
- package/src/workspace-protocol/error-contract.js +0 -24
- package/src/workspace-protocol/fact-contract.js +0 -110
- package/src/workspace-protocol/governance-contract.js +0 -47
- package/src/workspace-protocol/index.js +0 -53
- package/src/workspace-protocol/json-budget.js +0 -19
- package/src/workspace-protocol/manifest-contract.js +0 -186
- package/src/workspace-protocol/publication-contract.js +0 -212
- package/src/workspace-protocol/query-contract.js +0 -149
- package/src/workspace-protocol/scalar-contract.js +0 -192
- package/src/workspace-protocol/sync-contract.js +0 -184
- package/src/workspace-protocol/text-contract.js +0 -39
- package/src/workspace-protocol/validation.js +0 -66
- /package/dist/web/assets/{UiNotice-ZCBdABdM.css → UiIconButton-ZCBdABdM.css} +0 -0
- /package/dist/web/assets/{settings-restart-BU_GGtbG.css → settings-autosave-BU_GGtbG.css} +0 -0
|
@@ -10,9 +10,15 @@ export const KNOWLEDGE_KEY = /^(entity|relationship):(.+)$/;
|
|
|
10
10
|
// The Provider's visible-items limit per read.
|
|
11
11
|
const VISIBILITY_BATCH = 100;
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// withState: also each visible item's review state (pending, agent_confirmed,
|
|
14
|
+
// confirmed, historical), so a question about an item the person decided
|
|
15
|
+
// elsewhere is not asked again (11-06). withVersion: with it, each one's edit
|
|
16
|
+
// version, so an answer changes the item only as it was read (11-07).
|
|
17
|
+
export async function visibleKnowledgeKeys(personal, { personalSpaceId, reader }, keys, { withState = false, withVersion = false } = {}) {
|
|
14
18
|
const asked = [...new Set(keys)].filter(key => KNOWLEDGE_KEY.test(key ?? ''));
|
|
15
19
|
const visible = new Set();
|
|
20
|
+
const states = new Map();
|
|
21
|
+
const versions = new Map();
|
|
16
22
|
try {
|
|
17
23
|
for (let start = 0; start < asked.length; start += VISIBILITY_BATCH) {
|
|
18
24
|
const items = asked.slice(start, start + VISIBILITY_BATCH).map(key => {
|
|
@@ -20,11 +26,16 @@ export async function visibleKnowledgeKeys(personal, { personalSpaceId, reader }
|
|
|
20
26
|
return { item_kind, item_id };
|
|
21
27
|
});
|
|
22
28
|
const answer = await personal.readVisibleKnowledgeItems({ personal_space_id: personalSpaceId, items,
|
|
23
|
-
...providerReaderFields(reader) })
|
|
29
|
+
...providerReaderFields(reader), ...(withState || withVersion ? { with_state: true } : {}),
|
|
30
|
+
...(withVersion ? { with_version: true } : {}) });
|
|
24
31
|
for (const item of answer?.items ?? []) visible.add(`${item.item_kind}:${item.item_id}`);
|
|
32
|
+
for (const item of answer?.states ?? []) {
|
|
33
|
+
states.set(`${item.item_kind}:${item.item_id}`, item.state);
|
|
34
|
+
if (Number.isInteger(item.version)) versions.set(`${item.item_kind}:${item.item_id}`, item.version);
|
|
35
|
+
}
|
|
25
36
|
}
|
|
26
|
-
return { visible, unavailable: false };
|
|
37
|
+
return { visible, states, versions, unavailable: false };
|
|
27
38
|
} catch {
|
|
28
|
-
return { visible, unavailable: true };
|
|
39
|
+
return { visible, states, versions, unavailable: true };
|
|
29
40
|
}
|
|
30
41
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// The console host's periodic duplicate-merge pass (rec#88, after #839). The
|
|
2
|
+
// Provider merges a copy of current knowledge into one current item when it is
|
|
3
|
+
// written or confirmed; this pass catches what that missed: items stored
|
|
4
|
+
// before it existed, and copies in other words that only match once their
|
|
5
|
+
// meaning vectors arrive. The Provider decides every merge with strict rules,
|
|
6
|
+
// keeps the merged copy as history and lets a person split it back. One pass
|
|
7
|
+
// at a time, under the graph lease; a failed pass waits for the next tick.
|
|
8
|
+
const INTERVAL_MS = 30 * 60_000;
|
|
9
|
+
|
|
10
|
+
export function startDuplicateMerger({ app, withLease = (_owner, run) => run(), intervalMs = INTERVAL_MS }) {
|
|
11
|
+
let running = false, stopped = false, active = null;
|
|
12
|
+
const pass = async () => {
|
|
13
|
+
if (stopped || running || app.getAgentAccessPolicy?.().enabled === false) return;
|
|
14
|
+
running = true;
|
|
15
|
+
try {
|
|
16
|
+
await withLease('knowledge-duplicates', () => app.personal.mergeDuplicates({
|
|
17
|
+
personalSpaceId: app.config.personal.spaceId }));
|
|
18
|
+
} catch {
|
|
19
|
+
// Nothing here is the person's to handle; the next tick tries again.
|
|
20
|
+
} finally {
|
|
21
|
+
running = false;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const timer = setInterval(() => { if (!active) active = pass().finally(() => { active = null; }); }, intervalMs);
|
|
25
|
+
timer.unref?.();
|
|
26
|
+
// The pass in flight, or nothing: stopping with none in flight closes nothing late.
|
|
27
|
+
return () => { stopped = true; clearInterval(timer); return active ?? undefined; };
|
|
28
|
+
}
|
|
@@ -7,8 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
const NAMING_FIELDS = ['item_id', 'itemId', 'target', 'candidate_key', 'candidateKey', 'id'];
|
|
9
9
|
const TEXT_FIELDS = ['title', 'name', 'summary', 'content', 'fact', 'instruction', 'reason', 'excerpt',
|
|
10
|
-
'note', 'text', 'objective', 'resultSummary'
|
|
11
|
-
|
|
10
|
+
'note', 'text', 'objective', 'resultSummary',
|
|
11
|
+
// A delegated review's question to the person, phrased as Tonborg's guess (rec#96).
|
|
12
|
+
'question'];
|
|
13
|
+
// options: the choices Tonborg's question offered about the item (rec#99).
|
|
14
|
+
const LIST_FIELDS = ['evidence', 'options'];
|
|
12
15
|
|
|
13
16
|
// references: { itemIds, candidateKeys } of what the delete removed.
|
|
14
17
|
export function knowledgeReferences({ itemIds = [], candidateKeys = [] }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createHash } from 'node:crypto';
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
3
|
|
|
4
|
-
import { openFormattedDatabase, sqliteFormat } from '../../packages/roundtable/src/storage/database-format.js';
|
|
4
|
+
import { immediateTransaction, openFormattedDatabase, sqliteFormat } from '../../packages/roundtable/src/storage/database-format.js';
|
|
5
5
|
|
|
6
6
|
// rec#63 direction A: which knowledge items the automatic task-entry recall
|
|
7
7
|
// showed an Agent, and which of them the Agent later reported using. Step 2
|
|
@@ -49,9 +49,7 @@ export class RecallImpressionsStore {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
transaction(work) {
|
|
52
|
-
this.db
|
|
53
|
-
try { const result = work(); this.db.exec('COMMIT'); return result; }
|
|
54
|
-
catch (error) { this.db.exec('ROLLBACK'); throw error; }
|
|
52
|
+
return immediateTransaction(this.db, work);
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
// facts are relationships, entities are entities; rank is the 1-based
|
|
@@ -117,6 +115,18 @@ export class RecallImpressionsStore {
|
|
|
117
115
|
return usage;
|
|
118
116
|
}
|
|
119
117
|
|
|
118
|
+
// Per item id, the hashed task contexts that reported applying it: what a
|
|
119
|
+
// verification state joins with those tasks' judged acceptances.
|
|
120
|
+
appliedTaskKeys({ personalSpaceId, itemIds }) {
|
|
121
|
+
const keys = new Map();
|
|
122
|
+
const ids = [...new Set((itemIds ?? []).filter(Boolean))];
|
|
123
|
+
if (!ids.length || !this.readable) return keys;
|
|
124
|
+
const rows = this.db.prepare('SELECT item_id, task_key FROM recall_impressions WHERE personal_space_id = ? '
|
|
125
|
+
+ `AND use_kind = 'applied' AND item_id IN (${ids.map(() => '?').join(', ')})`).all(personalSpaceId, ...ids);
|
|
126
|
+
for (const { item_id: itemId, task_key: taskKey } of rows) keys.set(itemId, [...(keys.get(itemId) ?? []), taskKey]);
|
|
127
|
+
return keys;
|
|
128
|
+
}
|
|
129
|
+
|
|
120
130
|
summary({ personalSpaceId, personalProjectId = null }) {
|
|
121
131
|
if (!this.readable) return { tasks: 0, shown: 0, used: 0, byRank: [] };
|
|
122
132
|
const rows = personalProjectId
|
|
@@ -145,6 +155,8 @@ export class RecallImpressionsStore {
|
|
|
145
155
|
}
|
|
146
156
|
}
|
|
147
157
|
|
|
148
|
-
|
|
158
|
+
// What a judged acceptance records too, so a verification state joins its
|
|
159
|
+
// task context to the items used there without keeping the token.
|
|
160
|
+
export function taskKeyFor(taskContextToken) {
|
|
149
161
|
return createHash('sha256').update(taskContextToken).digest('hex');
|
|
150
162
|
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { existsSync } from 'node:fs';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
|
|
4
|
+
import { acquireFileLock } from '../storage/file-lock.js';
|
|
5
|
+
import { jsonFormat, readJsonRecord, updateVersionedJsonFileAtomic } from '../storage/json-format.js';
|
|
6
|
+
|
|
7
|
+
// What the automatic console start (console-autostart.js) remembers in one
|
|
8
|
+
// data directory, shared by every client session's MCP process (rec#94):
|
|
9
|
+
// whether the person stopped FULI on purpose, when it was started
|
|
10
|
+
// automatically, and why it is no longer started automatically. A person's
|
|
11
|
+
// start clears all of it; a person's stop records stoppedAt before the
|
|
12
|
+
// console stops, so no session brings it back meanwhile.
|
|
13
|
+
|
|
14
|
+
export const CONSOLE_AUTOSTART_FILE = 'console-autostart.json';
|
|
15
|
+
export const CONSOLE_AUTOSTART_FORMAT = jsonFormat({ store: 'console-autostart', versions: [1] });
|
|
16
|
+
const EMPTY = Object.freeze({ version: 1, stoppedAt: null, starts: [], held: null });
|
|
17
|
+
// held.reason: gave_up (too many starts in the window) or data_format
|
|
18
|
+
// (a data format step waits for the person).
|
|
19
|
+
const HELD_REASONS = new Set(['gave_up', 'data_format']);
|
|
20
|
+
|
|
21
|
+
const recordPath = dataDir => join(dataDir, CONSOLE_AUTOSTART_FILE);
|
|
22
|
+
const START_LOCK_FILE = '.console-start.lock';
|
|
23
|
+
|
|
24
|
+
// The one lock of every console start in a data directory: each `fuli
|
|
25
|
+
// start` (the person's, the desktop client's, an automatic one) holds it
|
|
26
|
+
// while it starts, and a session holds it while it decides, so two starts
|
|
27
|
+
// never run at once. waitMs 0 fails at once with code file_lock_busy.
|
|
28
|
+
export function acquireConsoleStartLock(dataDir, { waitMs = 0 } = {}) {
|
|
29
|
+
return acquireFileLock(join(dataDir, START_LOCK_FILE), { waitMs });
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// The record, or { unreadable: true } for one this FULI does not read.
|
|
33
|
+
export function readConsoleAutostart(dataDir) {
|
|
34
|
+
const record = readJsonRecord(recordPath(dataDir), CONSOLE_AUTOSTART_FORMAT);
|
|
35
|
+
if (record?.status === 'unreadable') return { unreadable: true };
|
|
36
|
+
return normalize(record);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// mutate(record) returns the next record, or undefined to keep it; returns
|
|
40
|
+
// the record as it is afterwards.
|
|
41
|
+
export function updateConsoleAutostart(dataDir, mutate) {
|
|
42
|
+
return normalize(updateVersionedJsonFileAtomic(recordPath(dataDir), CONSOLE_AUTOSTART_FORMAT,
|
|
43
|
+
current => {
|
|
44
|
+
const next = mutate(normalize(current));
|
|
45
|
+
return next === undefined ? undefined : { ...next, version: 1 };
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function recordPersonStop(dataDir, now = new Date()) {
|
|
50
|
+
updateConsoleAutostart(dataDir, () => ({ ...EMPTY, stoppedAt: now.toISOString() }));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// A start the person asked for wants FULI again: nothing is held any more.
|
|
54
|
+
// Writes only over an existing record, so a first start creates no file.
|
|
55
|
+
export function recordPersonStart(dataDir) {
|
|
56
|
+
if (!existsSync(recordPath(dataDir))) return;
|
|
57
|
+
updateConsoleAutostart(dataDir, current => sameAs(current, EMPTY) ? undefined : { ...EMPTY });
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// One sentence for the task entry's "FULI unavailable" text, or ''.
|
|
61
|
+
export function consoleAutostartNotice(dataDir) {
|
|
62
|
+
let record;
|
|
63
|
+
try { record = readConsoleAutostart(dataDir); } catch { return ''; }
|
|
64
|
+
if (record.unreadable) return '';
|
|
65
|
+
if (record.stoppedAt) {
|
|
66
|
+
return 'FULI was stopped on purpose, so it is not started automatically; it runs again when the person starts it. '
|
|
67
|
+
+ '/ FULI 是被手动停止的,不会自动启动;用户再次启动后恢复。';
|
|
68
|
+
}
|
|
69
|
+
if (record.held?.reason === 'gave_up') {
|
|
70
|
+
return 'FULI stopped starting itself after 3 automatic starts in 10 minutes did not keep it running. '
|
|
71
|
+
+ 'Tell the person once to start FULI from the FULI app or with `fuli start`. '
|
|
72
|
+
+ '/ FULI 10 分钟内自动启动 3 次仍未保持运行,已停止自动启动。请告诉用户一次:从 FULI 应用或 `fuli start` 启动。';
|
|
73
|
+
}
|
|
74
|
+
if (record.held?.reason === 'data_format') {
|
|
75
|
+
return 'FULI is not started automatically while a data format update waits for the person. '
|
|
76
|
+
+ 'Tell the person once to start FULI and confirm it in the console under Settings, Data format. '
|
|
77
|
+
+ '/ 数据格式更新在等用户确认,FULI 不会自动启动。请告诉用户一次:启动 FULI,在控制台「设置 › 数据格式」确认。';
|
|
78
|
+
}
|
|
79
|
+
return '';
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function normalize(record) {
|
|
83
|
+
if (!record || typeof record !== 'object') return { ...EMPTY };
|
|
84
|
+
return {
|
|
85
|
+
version: 1,
|
|
86
|
+
stoppedAt: typeof record.stoppedAt === 'string' ? record.stoppedAt : null,
|
|
87
|
+
starts: Array.isArray(record.starts) ? record.starts.filter(at => Number.isFinite(Date.parse(at))) : [],
|
|
88
|
+
held: HELD_REASONS.has(record.held?.reason) && typeof record.held.at === 'string'
|
|
89
|
+
? { reason: record.held.reason, at: record.held.at } : null
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function sameAs(a, b) {
|
|
94
|
+
return a.stoppedAt === b.stoppedAt && a.held === b.held && a.starts.length === b.starts.length;
|
|
95
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { existsSync } from 'node:fs';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
|
|
4
|
+
import { inspectLocalStores } from '../data-format/local-stores.js';
|
|
5
|
+
import { holdDataDirectory } from '../data-format/maintenance-lock.js';
|
|
6
|
+
import { readJsonFile } from '../storage/json-file.js';
|
|
7
|
+
import { checkLocalConsoleHealth } from './console-health.js';
|
|
8
|
+
import { acquireConsoleStartLock, readConsoleAutostart, updateConsoleAutostart } from './console-autostart-record.js';
|
|
9
|
+
import { installedConsoleLauncher } from './installed-console-launcher.js';
|
|
10
|
+
import { isProcessAlive } from './processes.js';
|
|
11
|
+
|
|
12
|
+
// A client session's MCP process starts the FULI console when it is not
|
|
13
|
+
// running, and keeps checking while the session stays open (rec#94), the way
|
|
14
|
+
// the desktop client does (fuli_controller.dart). Every session of one data
|
|
15
|
+
// directory shares one lock and one record (console-autostart-record.js), so
|
|
16
|
+
// only one of them starts it. It never starts a console the person stopped
|
|
17
|
+
// on purpose, one whose data waits for the person's format confirmation, or a
|
|
18
|
+
// whole-store restore's data; and after 3 starts within 10 minutes it stops
|
|
19
|
+
// trying until the person starts FULI. A console whose process stays alive
|
|
20
|
+
// without answering (rec#94: a shutdown that never finished) counts as down
|
|
21
|
+
// once it has not answered for stuckMs; the start then replaces it
|
|
22
|
+
// (unresponsive-console.js).
|
|
23
|
+
|
|
24
|
+
export const CONSOLE_AUTOSTART_LIMITS = Object.freeze({
|
|
25
|
+
starts: 3,
|
|
26
|
+
windowMs: 10 * 60_000,
|
|
27
|
+
// A start in progress (Neo4j can take a minute) is not started again.
|
|
28
|
+
startingMs: 2 * 60_000,
|
|
29
|
+
checkEveryMs: 15_000,
|
|
30
|
+
firstCheckMs: 1_000,
|
|
31
|
+
// A busy console answers within a few checks; one that has not answered
|
|
32
|
+
// for this long is not coming back.
|
|
33
|
+
stuckMs: 40_000
|
|
34
|
+
});
|
|
35
|
+
const CONSOLE_HEALTH_CHECK_MS = 5_000;
|
|
36
|
+
const CONSOLE_AUTOSTART_ENV = 'FULI_CONSOLE_AUTOSTART';
|
|
37
|
+
// The local store states a person has to act on (format-notices.js).
|
|
38
|
+
const WAITING_STORE_STATES = new Set(['pending_confirmation', 'half_applied', 'newer_format', 'unsupported']);
|
|
39
|
+
|
|
40
|
+
// check() → running | unanswered | stopped_by_person | not_configured
|
|
41
|
+
// | unreadable | busy | starting | gave_up | needs_person | started. It reads
|
|
42
|
+
// small files, asks the recorded console's health and spawns at most one
|
|
43
|
+
// detached process. consoleState() → ready | unanswered | down.
|
|
44
|
+
export function consoleAutostart({ dataDir, launcher, now = Date.now, limits = CONSOLE_AUTOSTART_LIMITS,
|
|
45
|
+
consoleState = () => recordedConsoleState(dataDir), configured = () => existsSync(join(dataDir, 'graph-runtime.json')),
|
|
46
|
+
lock = () => acquireConsoleStartLock(dataDir), waitsForPerson = () => dataWaitsForPerson(dataDir) }) {
|
|
47
|
+
let unansweredSince = null;
|
|
48
|
+
return {
|
|
49
|
+
async check() {
|
|
50
|
+
const state = await consoleState();
|
|
51
|
+
if (state === 'ready') { unansweredSince = null; return 'running'; }
|
|
52
|
+
if (state === 'unanswered') {
|
|
53
|
+
unansweredSince ??= now();
|
|
54
|
+
if (now() - unansweredSince < limits.stuckMs) return 'unanswered';
|
|
55
|
+
} else unansweredSince = null;
|
|
56
|
+
const seen = readConsoleAutostart(dataDir);
|
|
57
|
+
if (seen.unreadable) return 'unreadable';
|
|
58
|
+
if (seen.stoppedAt) return 'stopped_by_person';
|
|
59
|
+
if (!configured()) return 'not_configured';
|
|
60
|
+
let release;
|
|
61
|
+
try { release = lock(); } catch (error) {
|
|
62
|
+
if (error?.code === 'file_lock_busy') return 'busy';
|
|
63
|
+
throw error;
|
|
64
|
+
}
|
|
65
|
+
try {
|
|
66
|
+
// Another session may have started it while this one waited.
|
|
67
|
+
if (await consoleState() === 'ready') return 'running';
|
|
68
|
+
return startUnderLock();
|
|
69
|
+
} finally { release(); }
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
function startUnderLock() {
|
|
74
|
+
const at = now();
|
|
75
|
+
const record = readConsoleAutostart(dataDir);
|
|
76
|
+
if (record.unreadable) return 'unreadable';
|
|
77
|
+
if (record.stoppedAt) return 'stopped_by_person';
|
|
78
|
+
if (record.held?.reason === 'gave_up') return 'gave_up';
|
|
79
|
+
const recent = record.starts.filter(start => at - Date.parse(start) < limits.windowMs);
|
|
80
|
+
if (recent.some(start => at - Date.parse(start) < limits.startingMs)) return 'starting';
|
|
81
|
+
if (recent.length >= limits.starts) {
|
|
82
|
+
hold('gave_up', at);
|
|
83
|
+
return 'gave_up';
|
|
84
|
+
}
|
|
85
|
+
if (waitsForPerson()) {
|
|
86
|
+
hold('data_format', at);
|
|
87
|
+
return 'needs_person';
|
|
88
|
+
}
|
|
89
|
+
// Written inside the record's own lock: a person's stop saved meanwhile wins.
|
|
90
|
+
const written = updateConsoleAutostart(dataDir, current => current.stoppedAt ? undefined
|
|
91
|
+
: { ...current, starts: [...recent, new Date(at).toISOString()], held: null });
|
|
92
|
+
if (written.stoppedAt) return 'stopped_by_person';
|
|
93
|
+
launcher.start();
|
|
94
|
+
return 'started';
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function hold(reason, at) {
|
|
98
|
+
updateConsoleAutostart(dataDir, current => current.stoppedAt || current.held?.reason === reason ? undefined
|
|
99
|
+
: { ...current, held: { reason, at: new Date(at).toISOString() } });
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// Starts checking for this MCP process; returns the stop. Nothing runs for a
|
|
104
|
+
// package that is not an installed FULI, or with FULI_CONSOLE_AUTOSTART=off.
|
|
105
|
+
export function superviseConsole({ dataDir, env = process.env, limits = CONSOLE_AUTOSTART_LIMITS,
|
|
106
|
+
launcher = installedConsoleLauncher({ dataDir, env }), setTimer = setTimeout, clearTimer = clearTimeout,
|
|
107
|
+
onError = () => {}, ...dependencies }) {
|
|
108
|
+
if (env[CONSOLE_AUTOSTART_ENV] === 'off' || !launcher) return () => {};
|
|
109
|
+
const autostart = consoleAutostart({ dataDir, launcher, limits, ...dependencies });
|
|
110
|
+
let timer = null, stopped = false;
|
|
111
|
+
const schedule = delayMs => {
|
|
112
|
+
if (stopped) return;
|
|
113
|
+
timer = setTimer(tick, delayMs);
|
|
114
|
+
timer?.unref?.();
|
|
115
|
+
};
|
|
116
|
+
async function tick() {
|
|
117
|
+
try { await autostart.check(); } catch (error) { onError(error); }
|
|
118
|
+
schedule(limits.checkEveryMs);
|
|
119
|
+
}
|
|
120
|
+
schedule(limits.firstCheckMs);
|
|
121
|
+
return () => { stopped = true; if (timer !== null) clearTimer(timer); };
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
async function recordedConsoleState(dataDir) {
|
|
125
|
+
let state;
|
|
126
|
+
try { state = readJsonFile(join(dataDir, 'graph-runtime-state.json'), null); } catch { return 'down'; }
|
|
127
|
+
if (!Number.isInteger(state?.pid) || !isProcessAlive(state.pid)) return 'down';
|
|
128
|
+
if (typeof state.url !== 'string') return 'unanswered';
|
|
129
|
+
return await checkLocalConsoleHealth(state.url, state.pid, state.version, CONSOLE_HEALTH_CHECK_MS) ? 'ready' : 'unanswered';
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// A whole-store restore holding the data directory, or a local store whose
|
|
133
|
+
// format step waits for the person: the console stays for the person to start.
|
|
134
|
+
// Whether a whole-store restore holds the data or a format step waits for the person;
|
|
135
|
+
// the desktop app also waits before taking it over (npm-adoption.js).
|
|
136
|
+
export function dataWaitsForPerson(dataDir) {
|
|
137
|
+
try { holdDataDirectory(dataDir)(); } catch { return true; }
|
|
138
|
+
try {
|
|
139
|
+
return inspectLocalStores(dataDir).some(store => WAITING_STORE_STATES.has(store.state));
|
|
140
|
+
} catch {
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Whether the recorded FULI console answers as itself: its /api/health names
|
|
2
|
+
// the service and the PID that was recorded for it.
|
|
3
|
+
|
|
4
|
+
export const CONSOLE_HEALTH_TIMEOUT_MS = 2500;
|
|
5
|
+
|
|
6
|
+
// timeoutMs bounds the whole check, including the legacy state fallback.
|
|
7
|
+
export async function checkLocalConsoleHealth(url, expectedPid, stateVersion = 3, timeoutMs = CONSOLE_HEALTH_TIMEOUT_MS) {
|
|
8
|
+
const signal = AbortSignal.timeout(timeoutMs);
|
|
9
|
+
try {
|
|
10
|
+
const response = await fetch(`${url}/api/health`, { signal });
|
|
11
|
+
if (response.ok) {
|
|
12
|
+
const body = await response.json();
|
|
13
|
+
return body?.service === 'fuli-local-console' &&
|
|
14
|
+
(!Number.isInteger(expectedPid) || body.pid === expectedPid);
|
|
15
|
+
}
|
|
16
|
+
if (response.status !== 404 || stateVersion !== 2) return false;
|
|
17
|
+
} catch {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
try {
|
|
22
|
+
return (await fetch(`${url}/api/state`, { signal })).ok;
|
|
23
|
+
} catch {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { spawn } from 'node:child_process';
|
|
2
|
+
import { readFileSync } from 'node:fs';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
|
|
6
|
+
import { canonicalWindowsInstallPath, readWindowsInstallation } from '../desktop/windows-installation-context.js';
|
|
7
|
+
import { isMacosAppPackage } from '../desktop/desktop-app-package.js';
|
|
8
|
+
import { readMacosNativeBundle } from '../native-runtime/macos-assets.js';
|
|
9
|
+
|
|
10
|
+
const ownRoot = fileURLToPath(new URL('../..', import.meta.url));
|
|
11
|
+
|
|
12
|
+
// How an MCP process starts the console of an installed FULI (rec#94), always
|
|
13
|
+
// through the installed package's own Node and CLI with the data directory the
|
|
14
|
+
// MCP process uses: `fuli start --data-dir <dataDir> --automatic`, detached so
|
|
15
|
+
// it outlives the session. Installed means the Windows installation record's
|
|
16
|
+
// current package (installation.json, read again at every start, so an update
|
|
17
|
+
// starts the new version), the package inside FULI.app, or an npm
|
|
18
|
+
// installation. A source checkout or build folder is never started.
|
|
19
|
+
// Returns null when this package is none of those.
|
|
20
|
+
export function installedConsoleLauncher({ dataDir, packageRoot = ownRoot, platform = process.platform,
|
|
21
|
+
execPath = process.execPath, env = process.env, spawnProcess = spawn } = {}) {
|
|
22
|
+
const target = installedConsoleTarget({ dataDir, packageRoot, platform, execPath });
|
|
23
|
+
if (!target) return null;
|
|
24
|
+
return {
|
|
25
|
+
start() {
|
|
26
|
+
const spec = target();
|
|
27
|
+
if (!spec) return false;
|
|
28
|
+
const child = spawnProcess(spec.command, [spec.cli, 'start', '--data-dir', dataDir, '--automatic'],
|
|
29
|
+
{ cwd: spec.cwd, env, detached: true, stdio: 'ignore', windowsHide: true });
|
|
30
|
+
child.on?.('error', () => {});
|
|
31
|
+
child.unref?.();
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// () => { command, cli, cwd } of the installed package, or null when its
|
|
38
|
+
// record no longer names one; null instead of a function when this package
|
|
39
|
+
// is not an installed one.
|
|
40
|
+
export function installedConsoleTarget({ dataDir, packageRoot, platform, execPath }) {
|
|
41
|
+
let installation = null;
|
|
42
|
+
try { installation = readWindowsInstallation(packageRoot); } catch { return null; }
|
|
43
|
+
if (installation) {
|
|
44
|
+
const sameData = record => samePath(record.dataDir, dataDir);
|
|
45
|
+
if (!sameData(installation)) return null;
|
|
46
|
+
const recordPath = join(installation.installRoot, 'installation.json');
|
|
47
|
+
return () => {
|
|
48
|
+
let record;
|
|
49
|
+
try { record = JSON.parse(readFileSync(recordPath, 'utf8')); } catch { return null; }
|
|
50
|
+
if (record?.status !== 'installed' || typeof record.packageRoot !== 'string' || !sameData(record)) return null;
|
|
51
|
+
return { command: join(record.packageRoot, 'runtime', 'node', 'node.exe'),
|
|
52
|
+
cli: join(record.packageRoot, 'src', 'cli.js'), cwd: record.packageRoot };
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
if (platform === 'darwin' && isMacosAppPackage(packageRoot)) {
|
|
56
|
+
try { if (!readMacosNativeBundle(packageRoot)) return null; } catch { return null; }
|
|
57
|
+
return () => ({ command: join(packageRoot, 'runtime', 'node', 'bin', 'node'),
|
|
58
|
+
cli: join(packageRoot, 'src', 'cli.js'), cwd: packageRoot });
|
|
59
|
+
}
|
|
60
|
+
if (packageRoot.split(/[\\/]/).includes('node_modules')) {
|
|
61
|
+
return () => ({ command: execPath, cli: join(packageRoot, 'src', 'cli.js'), cwd: packageRoot });
|
|
62
|
+
}
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function samePath(a, b) {
|
|
67
|
+
if (typeof a !== 'string' || typeof b !== 'string') return false;
|
|
68
|
+
try {
|
|
69
|
+
return canonicalWindowsInstallPath(a).toLowerCase() === canonicalWindowsInstallPath(b).toLowerCase();
|
|
70
|
+
} catch {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { spawn } from 'node:child_process';
|
|
2
2
|
import { existsSync, unlinkSync } from 'node:fs';
|
|
3
|
-
import {
|
|
3
|
+
import { dirname } from 'node:path';
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
checkLocalConsoleHealth,
|
|
7
|
-
ensureGraphRuntime,
|
|
8
|
-
stopGraphProviders
|
|
9
|
-
} from '../setup/graph-runtime.js';
|
|
5
|
+
import { ensureGraphRuntime, stopGraphProviders } from '../setup/graph-runtime.js';
|
|
10
6
|
import { beginFirstRunCapture } from '../setup/first-run-capture.js';
|
|
11
7
|
import { readJsonFile } from '../storage/json-file.js';
|
|
12
8
|
import { readAdaptiveRuntimeSettings } from '../adaptive-runtime/settings.js';
|
|
@@ -18,24 +14,54 @@ import {
|
|
|
18
14
|
} from '../system/runtime-settings.js';
|
|
19
15
|
import { FULI_VERSION } from '../package-metadata.js';
|
|
20
16
|
import { compareSemanticVersions, parseSemanticVersion } from '../semantic-version.js';
|
|
21
|
-
import {
|
|
17
|
+
import { checkLocalConsoleHealth } from './console-health.js';
|
|
18
|
+
import { isProcessAlive, stopProcess, waitForExit } from './processes.js';
|
|
19
|
+
import { CONSOLE_STOP_LIMITS, consoleProcessOwned, endUnresponsiveConsole, terminateConsole } from './unresponsive-console.js';
|
|
20
|
+
import {
|
|
21
|
+
acquireConsoleStartLock,
|
|
22
|
+
readConsoleAutostart,
|
|
23
|
+
recordPersonStart,
|
|
24
|
+
recordPersonStop
|
|
25
|
+
} from './console-autostart-record.js';
|
|
22
26
|
|
|
23
|
-
const CONSOLE_EXIT_TIMEOUT_MS = 15_000;
|
|
24
27
|
const CONSOLE_VERSION_TIMEOUT_MS = 2_500;
|
|
25
28
|
const STOPPING_CONSOLE_GRACE_MS = 3_000;
|
|
26
29
|
// Stopping waits longer for the console's identity than status does: a
|
|
27
30
|
// console busy for a few seconds is still the one to stop, and an answer
|
|
28
31
|
// missed here leaves it running (Update-Fuli: "could not be stopped").
|
|
29
32
|
const STOP_IDENTITY_TIMEOUT_MS = 10_000;
|
|
33
|
+
// A start waits this long for another one to finish (Neo4j's first start is slow).
|
|
34
|
+
const START_LOCK_WAIT_MS = 5 * 60_000;
|
|
30
35
|
|
|
31
36
|
export async function startLocalRuntime(input, dependencies = {}) {
|
|
32
37
|
const deps = lifecycleDependencies(dependencies);
|
|
38
|
+
// One start at a time per data directory: a later one finds FULI running.
|
|
39
|
+
const release = deps.lockStart(dataDirOf(input.paths));
|
|
40
|
+
try {
|
|
41
|
+
return await startUnlocked(input, deps);
|
|
42
|
+
} finally {
|
|
43
|
+
release();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
async function startUnlocked(input, deps) {
|
|
33
48
|
const runtimeSettings = input.runtimeSettings ?? DEFAULT_RUNTIME_SETTINGS;
|
|
34
49
|
const config = deps.readConfig(input.paths.graphRuntimeConfigPath);
|
|
35
50
|
const managesDevelopmentWorkspace = hasManagedDevelopmentWorkspace(
|
|
36
51
|
config,
|
|
37
52
|
runtimeSettings
|
|
38
53
|
);
|
|
54
|
+
// A start a client session's MCP process asked for (console-autostart.js)
|
|
55
|
+
// yields to a stop the person made after it decided; any other start is the
|
|
56
|
+
// person wanting FULI again.
|
|
57
|
+
const dataDir = dataDirOf(input.paths);
|
|
58
|
+
if (input.automatic === true) {
|
|
59
|
+
if (dataDir && deps.readAutostart(dataDir).stoppedAt) {
|
|
60
|
+
throw new Error('FULI was stopped on purpose; it is not started automatically.');
|
|
61
|
+
}
|
|
62
|
+
} else {
|
|
63
|
+
deps.recordStart(dataDir);
|
|
64
|
+
}
|
|
39
65
|
const buildProviders = input.rebuild === true || !config ||
|
|
40
66
|
!deps.fileExists(input.paths.graphEnvPath);
|
|
41
67
|
// A first start without setup (the Windows tray) asks the same question (rec#5 C10).
|
|
@@ -68,6 +94,8 @@ export async function stopLocalRuntime(input, dependencies = {}) {
|
|
|
68
94
|
const runtimeSettings = input.runtimeSettings ?? DEFAULT_RUNTIME_SETTINGS;
|
|
69
95
|
const config = deps.readConfig(input.paths.graphRuntimeConfigPath);
|
|
70
96
|
const state = deps.readState(input.paths.graphRuntimeStatePath);
|
|
97
|
+
// Recorded first, so no client session starts it again while it stops.
|
|
98
|
+
deps.recordStop(dataDirOf(input.paths));
|
|
71
99
|
const consoleResult = await stopRecordedConsole(state, input.paths, deps);
|
|
72
100
|
const managesDevelopmentWorkspace = state?.managedProviders?.includes(
|
|
73
101
|
'development-workspace'
|
|
@@ -162,6 +190,9 @@ export async function inspectLocalRuntime(input, dependencies = {}) {
|
|
|
162
190
|
status: consoleReady ? 'ready' : processAlive ? 'unverified' : 'stopped',
|
|
163
191
|
url: stateLooksOwned ? state.url : `http://127.0.0.1:${input.port}`,
|
|
164
192
|
pid: processAlive ? state.pid : null,
|
|
193
|
+
// A stop removes the state file, so a state left behind by a dead process
|
|
194
|
+
// means nobody asked it to stop: the desktop client starts it again.
|
|
195
|
+
...(stateLooksOwned && !processAlive ? { crashed: true } : {}),
|
|
165
196
|
...(stateLooksOwned && state.lan === true
|
|
166
197
|
? { lan: true, lanUrls: safeLanUrls(state.lanUrls) }
|
|
167
198
|
: {})
|
|
@@ -230,15 +261,29 @@ async function stopRecordedConsole(state, paths, deps) {
|
|
|
230
261
|
deps.removeState(paths.graphRuntimeStatePath);
|
|
231
262
|
return 'not_running';
|
|
232
263
|
}
|
|
233
|
-
|
|
264
|
+
// Alive without answering (a shutdown that never finished, rec#94): asked
|
|
265
|
+
// once more, then ended only when the OS shows this data directory's console.
|
|
266
|
+
const ended = await endUnresponsiveConsole(state, paths, {
|
|
267
|
+
...consoleStop(deps, STOP_IDENTITY_TIMEOUT_MS), limits: { ...CONSOLE_STOP_LIMITS, answerWaitMs: 0 } });
|
|
268
|
+
if (ended === 'unverified') return 'unverified';
|
|
269
|
+
if (ended === 'still_running') return 'still_running';
|
|
270
|
+
if (ended !== 'answering') {
|
|
271
|
+
deps.removeState(paths.graphRuntimeStatePath);
|
|
272
|
+
return ended === 'exited' ? 'not_running' : 'stopped';
|
|
273
|
+
}
|
|
234
274
|
}
|
|
235
275
|
|
|
236
|
-
|
|
237
|
-
if (!await deps.waitForExit(state.pid)) return 'still_running';
|
|
276
|
+
if (!await terminateConsole(state.pid, consoleStop(deps))) return 'still_running';
|
|
238
277
|
deps.removeState(paths.graphRuntimeStatePath);
|
|
239
278
|
return 'stopped';
|
|
240
279
|
}
|
|
241
280
|
|
|
281
|
+
// The lifecycle's own process and health checks, so a stubbed runtime stays stubbed.
|
|
282
|
+
function consoleStop(deps, healthTimeoutMs) {
|
|
283
|
+
return { signal: deps.stopProcess, isAlive: deps.isProcessAlive, waitForExit: deps.waitForExit, owned: deps.consoleProcessOwned,
|
|
284
|
+
health: (url, pid, version) => deps.consoleHealth(url, pid, version, healthTimeoutMs) };
|
|
285
|
+
}
|
|
286
|
+
|
|
242
287
|
function lifecycleDependencies(overrides) {
|
|
243
288
|
return {
|
|
244
289
|
readConfig: (path) => readJsonFile(path, null),
|
|
@@ -259,14 +304,46 @@ function lifecycleDependencies(overrides) {
|
|
|
259
304
|
isProcessAlive,
|
|
260
305
|
stopProcess,
|
|
261
306
|
waitForExit,
|
|
307
|
+
consoleProcessOwned,
|
|
262
308
|
removeState: (path) => {
|
|
263
309
|
if (existsSync(path)) unlinkSync(path);
|
|
264
310
|
},
|
|
265
311
|
openExternal,
|
|
312
|
+
// The person's intent for client sessions (console-autostart-record.js).
|
|
313
|
+
// Stubbed runtimes in tests leave the data directory they name alone.
|
|
314
|
+
recordStop: overrides.stopProcess || overrides.ensureRuntime ? () => {} : keepIntent(recordPersonStop),
|
|
315
|
+
recordStart: overrides.ensureRuntime ? () => {} : keepIntent(recordPersonStart),
|
|
316
|
+
readAutostart: overrides.ensureRuntime ? () => ({ stoppedAt: null }) : readConsoleAutostart,
|
|
317
|
+
lockStart: overrides.ensureRuntime ? () => () => {} : lockConsoleStart,
|
|
266
318
|
...overrides
|
|
267
319
|
};
|
|
268
320
|
}
|
|
269
321
|
|
|
322
|
+
// The data directory the paths name, or null for paths that name none.
|
|
323
|
+
function dataDirOf(paths) {
|
|
324
|
+
if (typeof paths?.dataDir === 'string' && paths.dataDir) return paths.dataDir;
|
|
325
|
+
return typeof paths?.graphRuntimeStatePath === 'string' ? dirname(paths.graphRuntimeStatePath) : null;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
function lockConsoleStart(dataDir) {
|
|
329
|
+
if (!dataDir || !existsSync(dataDir)) return () => {};
|
|
330
|
+
try {
|
|
331
|
+
return acquireConsoleStartLock(dataDir, { waitMs: START_LOCK_WAIT_MS });
|
|
332
|
+
} catch (error) {
|
|
333
|
+
if (error?.code !== 'file_lock_busy') throw error;
|
|
334
|
+
throw new Error('Another FULI start is still running for this data directory; try again when it has finished.');
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
// A start or stop never fails over the intent record: at worst a session
|
|
339
|
+
// starts FULI once more, or not at all, until the next start or stop.
|
|
340
|
+
function keepIntent(record) {
|
|
341
|
+
return (dataDir) => {
|
|
342
|
+
if (!dataDir || !existsSync(dataDir)) return;
|
|
343
|
+
try { record(dataDir); } catch { /* the start or stop itself goes on */ }
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
|
|
270
347
|
function pathsValue(value) {
|
|
271
348
|
return typeof value === 'string' && value ? value : null;
|
|
272
349
|
}
|
|
@@ -360,13 +437,3 @@ function safeLanUrls(value) {
|
|
|
360
437
|
? value.filter((url) => typeof url === 'string' && url.startsWith('http://'))
|
|
361
438
|
: [];
|
|
362
439
|
}
|
|
363
|
-
|
|
364
|
-
// Closing graph connections can take several seconds on macOS.
|
|
365
|
-
async function waitForExit(pid, timeoutMs = CONSOLE_EXIT_TIMEOUT_MS) {
|
|
366
|
-
const deadline = Date.now() + timeoutMs;
|
|
367
|
-
while (Date.now() < deadline) {
|
|
368
|
-
if (!isProcessAlive(pid)) return true;
|
|
369
|
-
await delay(100);
|
|
370
|
-
}
|
|
371
|
-
return !isProcessAlive(pid);
|
|
372
|
-
}
|