fuli-context 0.25.2 → 0.27.1
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 +23 -3
- package/README.zh-CN.md +19 -4
- package/dist/web/assets/{AboutPage-Dx07_Z8u.js → AboutPage-BKyNoI0v.js} +1 -1
- package/dist/web/assets/{AboutSectionHeading-BdhpM609.js → AboutSectionHeading-DwvCvoqO.js} +1 -1
- package/dist/web/assets/AgentAppsPage-Cp2-sZXi.js +1 -0
- package/dist/web/assets/{AgentAvatar-DlAQP7gm.js → AgentAvatar-CDhU4m0T.js} +1 -1
- package/dist/web/assets/{AgentHand-FPFg9-Y1.js → AgentHand-BfRjs1He.js} +1 -1
- package/dist/web/assets/{AgentManagement-CLFw9oV9.css → AgentManagement-Cc00RLSO.css} +1 -1
- package/dist/web/assets/{AgentManagement-UTe4I3WA.js → AgentManagement-qCpr876m.js} +2 -2
- package/dist/web/assets/{AgentMentionCopy-C5ExlutT.js → AgentMentionCopy-_pr-D8vX.js} +1 -1
- package/dist/web/assets/{AgentName-C8mYbtKs.js → AgentName-CUuWNrzE.js} +1 -1
- package/dist/web/assets/{AgentProfilePage-DumsVHP1.css → AgentProfilePage-Ce25JSzZ.css} +1 -1
- package/dist/web/assets/AgentProfilePage-DcOBhuHG.js +5 -0
- package/dist/web/assets/AgentServicesPage-CAL-JT1J.js +1 -0
- package/dist/web/assets/{AppViewerPage-BR8ttEGa.js → AppViewerPage-Ct46NPXP.js} +1 -1
- package/dist/web/assets/{BackToTop-5_AQRMZl.js → BackToTop-DOlt-xjQ.js} +1 -1
- package/dist/web/assets/{BoardCardFieldsMenu-Bb_Z9a4Q.js → BoardCardFieldsMenu-RFcx_CAs.js} +1 -1
- package/dist/web/assets/{BoardMoveMenu-B-f8O6cC.js → BoardMoveMenu-GJ8lpuZY.js} +1 -1
- package/dist/web/assets/Breadcrumb-DTo6Zvtb.js +1 -0
- package/dist/web/assets/CaptureChangePage-DRgWyCRo.js +1 -0
- package/dist/web/assets/{CopyFixPrompt-CVFYWDSt.js → CopyFixPrompt-1UXH_ItZ.js} +1 -1
- package/dist/web/assets/DataFormatPage-CgFXfOW_.js +2 -0
- package/dist/web/assets/DebugTurnPage-B8YhpTPm.js +1 -0
- package/dist/web/assets/DebugTurnsPage-BGKSH3n0.js +1 -0
- package/dist/web/assets/{DialogTitle-BQXOe8EK.js → DialogTitle-CIVSlKqQ.js} +1 -1
- package/dist/web/assets/{EmployeeRedirectPage-BjWpXDSM.js → EmployeeRedirectPage-8qPpnbyP.js} +1 -1
- package/dist/web/assets/EmployeeScopeDialog-BZymZidB.js +1 -0
- package/dist/web/assets/EmployeeWorkbench-BnxEZCSS.js +4 -0
- package/dist/web/assets/FieldRoot-D6HtUgDA.js +1 -0
- package/dist/web/assets/{FlaGrowth-OQtTLTng.js → FlaGrowth-CaFdmezv.js} +1 -1
- package/dist/web/assets/{FlaOccupationKit-C-x4VrKk.js → FlaOccupationKit-CFoBUWGF.js} +1 -1
- package/dist/web/assets/{FlaTaskSheets-CoaF5CbQ.js → FlaTaskSheets-BShmW9R5.js} +1 -1
- package/dist/web/assets/FlasPage-DtkW-_9f.js +1 -0
- package/dist/web/assets/{GrowthLoading-VuVo2vLf.js → GrowthLoading-CVBn4r4q.js} +1 -1
- package/dist/web/assets/{HowtoPage-CZ3mOdLc.js → HowtoPage-B8f5J_An.js} +1 -1
- package/dist/web/assets/InboxPage-Bv8XUdl8.css +1 -0
- package/dist/web/assets/InboxPage-D9VIDrsL.js +6 -0
- package/dist/web/assets/{KnowledgeDeleteButton-BlUnSG3b.js → KnowledgeDeleteButton-C01O4FSO.js} +1 -1
- package/dist/web/assets/{KnowledgeHardDeleteSection-CznXBtHY.js → KnowledgeHardDeleteSection-jqad3dJN.js} +1 -1
- package/dist/web/assets/KnowledgeItemEditPage-DV8TVpvf.js +1 -0
- package/dist/web/assets/{KnowledgeItemSummaryCard-Co5JKBHl.js → KnowledgeItemSummaryCard-XbkYp7Dy.js} +1 -1
- package/dist/web/assets/KnowledgeOrganizerPage-C4G6JCmG.js +1 -0
- package/dist/web/assets/KnowledgePage-Afiw2Kxy.js +1 -0
- package/dist/web/assets/{KnowledgePeek-CwZVuSkf.css → KnowledgePeek-D6SeISIM.css} +1 -1
- package/dist/web/assets/KnowledgePeek-DIcPS9WU.js +1 -0
- package/dist/web/assets/{KnowledgeTurnReceiptPage-Csyjimeg.js → KnowledgeTurnReceiptPage-7ncXkxKd.js} +1 -1
- package/dist/web/assets/KnowledgeWorkspace-Be2gUul5.css +1 -0
- package/dist/web/assets/KnowledgeWorkspace-CmzU6Vuh.js +4 -0
- package/dist/web/assets/{MeAvatar-aY_q8cKs.js → MeAvatar-D_LFqHrR.js} +1 -1
- package/dist/web/assets/{MeLink-B0pNwVLa.js → MeLink-CeIxjFrm.js} +1 -1
- package/dist/web/assets/{MenuSeparator-BR-uLovR.js → MenuSeparator-yD3wld9s.js} +1 -1
- package/dist/web/assets/ModelSettingsPage-BZcyT7Vy.css +1 -0
- package/dist/web/assets/ModelSettingsPage-BqClsFmC.js +1 -0
- package/dist/web/assets/NewSessionPanel-BKrOFEMO.js +1 -0
- package/dist/web/assets/NewSessionPanel-CTdd7xpN.css +1 -0
- package/dist/web/assets/{NotFoundPage-Cr1MaPuk.js → NotFoundPage-CdOCRj3P.js} +1 -1
- package/dist/web/assets/NoticeRow-CQShZQtw.js +1 -0
- package/dist/web/assets/OccupationsPage-BrBus-nh.js +1 -0
- package/dist/web/assets/OverviewPage-Cq89Klha.js +1 -0
- package/dist/web/assets/{OverviewPage-Dr4jrXW4.css → OverviewPage-KVt4LcE-.css} +1 -1
- package/dist/web/assets/{PageColumns-DvehZlYm.js → PageColumns-CgIXTt4J.js} +1 -1
- package/dist/web/assets/PageOutline-D5h1GuKt.css +1 -0
- package/dist/web/assets/PageOutline-VtLLW4kh.js +1 -0
- package/dist/web/assets/{PersonalProfilePage-DnjNX2xK.css → PersonalProfilePage-BE5q2bqc.css} +1 -1
- package/dist/web/assets/PersonalProfilePage-C_dmUEuW.js +1 -0
- package/dist/web/assets/PersonalProjectsPage-CiCFHVt_.js +1 -0
- package/dist/web/assets/{PinIcon-BTQsnxRY.js → PinIcon-DD3Un-hh.js} +1 -1
- package/dist/web/assets/{PopperContent-DtMksk76.js → PopperContent-CCmt2yHl.js} +1 -1
- package/dist/web/assets/{Presence-B0zMpCF4.js → Presence-DqPb-1P1.js} +1 -1
- package/dist/web/assets/{ProfileAuthorChip-BqT9Vv65.js → ProfileAuthorChip-Dm5GjcAt.js} +1 -1
- package/dist/web/assets/ProjectAgentsPage-B5r0DKWL.js +5 -0
- package/dist/web/assets/ProjectJudgmentPolicy-BHyiqKLV.css +1 -0
- package/dist/web/assets/ProjectJudgmentPolicy-DVFV5Cai.js +2 -0
- package/dist/web/assets/{RecentNotices-vJobVOcm.js → RecentNotices-DYXEBfYm.js} +1 -1
- package/dist/web/assets/{RoundtablesPage-C3dYekQ5.js → RoundtablesPage-DlAXApKi.js} +2 -2
- package/dist/web/assets/{RovingFocusGroup-CUqyjFSs.js → RovingFocusGroup-CI4aZr1z.js} +1 -1
- package/dist/web/assets/{RovingFocusItem-CyyuWXjE.js → RovingFocusItem-C_N843Nb.js} +1 -1
- package/dist/web/assets/{SessionMigrationPage-DukDM0TP.js → SessionMigrationPage-CVKkTACn.js} +1 -1
- package/dist/web/assets/{SessionRecordsPage-DZ5ZBiuS.js → SessionRecordsPage-Dy203sP2.js} +1 -1
- package/dist/web/assets/SettingsPage-BcrAdXX7.js +1 -0
- package/dist/web/assets/SettingsPage-BlhCcwPn.css +1 -0
- package/dist/web/assets/SharedJefaReportPage-CASkC5pc.js +1 -0
- package/dist/web/assets/{TagVocabularyPage-BKLFJiSu.js → TagVocabularyPage-Bd57YcUL.js} +1 -1
- package/dist/web/assets/TaskBlockerClear-DGaXP2ak.js +1 -0
- package/dist/web/assets/TaskBlockerNotice-8nogmPA-.js +1 -0
- package/dist/web/assets/{TaskReason-D5j7L8tl.js → TaskReason-BxYwBDoB.js} +1 -1
- package/dist/web/assets/{TeamCard-CDunbIrP.js → TeamCard-cWYC5z07.js} +1 -1
- package/dist/web/assets/{TeamCardsWidget-CUW-fPn7.js → TeamCardsWidget-BOf6oHOp.js} +1 -1
- package/dist/web/assets/{TeamIsland-CmpDmIX2.js → TeamIsland-BD5s-zFZ.js} +1 -1
- package/dist/web/assets/{Teleport-Dzdr8umQ.js → Teleport-DhMmMHjy.js} +1 -1
- package/dist/web/assets/{TextField-BPhEpEv9.js → TextField-XakqTnVl.js} +1 -1
- package/dist/web/assets/TonborgDelegationSwitch-B59PUZBz.js +1 -0
- package/dist/web/assets/TonborgDelegationSwitch-BFb1JkWe.css +1 -0
- package/dist/web/assets/{UiChip-BEQ067LV.js → UiChip-BFdfq8Jm.js} +1 -1
- package/dist/web/assets/{UiChip-DulygSq8.css → UiChip-BiUmvjdz.css} +1 -1
- package/dist/web/assets/{UiDisclosure-L6GEJHSw.js → UiDisclosure-G3MiGB7F.js} +1 -1
- package/dist/web/assets/UiIcon--qI1_q89.js +1 -0
- package/dist/web/assets/UiSegmented-CRJ06vHP.js +1 -0
- package/dist/web/assets/{UiWeight-D-2iZ_Kc.js → UiWeight-BRA-6EY_.js} +1 -1
- package/dist/web/assets/{VirtualDirectoryList-BV8KsA-Z.js → VirtualDirectoryList-Dm07NMxq.js} +1 -1
- package/dist/web/assets/{VisuallyHidden-BxKxuXRF.js → VisuallyHidden-DIg8c_z2.js} +1 -1
- package/dist/web/assets/{VisuallyHiddenInput-DD4vhlqT.js → VisuallyHiddenInput-rcWqHewS.js} +1 -1
- package/dist/web/assets/WidgetSlot-C5h--noP.js +2 -0
- package/dist/web/assets/{WorkbenchListHead-B0TjHsTO.js → WorkbenchListHead-D40-J4GT.js} +1 -1
- package/dist/web/assets/WorkbenchListPage-CJUvq4Ac.js +1 -0
- package/dist/web/assets/_plugin-vue_export-helper-D9CtLGVz.js +9 -0
- package/dist/web/assets/{agent-apps-B1Je-mpY.js → agent-apps-Svxh5tiY.js} +1 -1
- package/dist/web/assets/agent-occupation-Dhoz7LjT.js +1 -0
- package/dist/web/assets/{agent-pins-DxHlJ96z.js → agent-pins-CvATgFji.js} +1 -1
- package/dist/web/assets/agent-profile-TuRobv9N.css +1 -0
- package/dist/web/assets/agent-roster-records-CsYjmaNn.js +1 -0
- package/dist/web/assets/{agent-work-summary-o_9-QWBL.js → agent-work-summary-BOeJ4JXc.js} +1 -1
- package/dist/web/assets/{agent-workflows-DgdbJqpg.js → agent-workflows-BS4KlKFj.js} +1 -1
- package/dist/web/assets/{attach-closest-edge-DUc_VUVO.js → attach-closest-edge-DFoBNGBU.js} +1 -1
- package/dist/web/assets/{attention-store-Bod20yM3.js → attention-store-CHxXJTuF.js} +1 -1
- package/dist/web/assets/{badge-tMy2Qr94.js → badge-DqHf-RNw.js} +1 -1
- package/dist/web/assets/{button-DnKFsImW.js → button-CdYobu4m.js} +1 -1
- package/dist/web/assets/{card-Ccu7HCNb.js → card-8xZot-73.js} +1 -1
- package/dist/web/assets/{catalog-CJUV8OJ6.js → catalog-h6KbvKdB.js} +1 -1
- package/dist/web/assets/{checkbox-D1R6kTUB.js → checkbox-DZ6CDZ8r.js} +1 -1
- package/dist/web/assets/{client-D-G2i5VU.js → client-DRnUmjCk.js} +1 -1
- package/dist/web/assets/{client-links-store-UgmraFBZ.js → client-links-store-DQY0A5PC.js} +1 -1
- package/dist/web/assets/{combobox-C7QLYGzs.js → combobox-DE0HzdKP.js} +1 -1
- package/dist/web/assets/console-BF8ZU9dG.js +1 -0
- package/dist/web/assets/conversation-launcher-settings-D4vYOpHN.js +1 -0
- package/dist/web/assets/{copy-mention-C0EJhDPy.js → copy-mention-Crs0NIJB.js} +1 -1
- package/dist/web/assets/{dialog-Bbq93W68.js → dialog-Bg5NVU4Y.js} +1 -1
- package/dist/web/assets/{dist-PpsW5ZE3.js → dist--2DWcoU9.js} +1 -1
- package/dist/web/assets/{dist-Dd8yFhv6.js → dist-INkzWhVF.js} +1 -1
- package/dist/web/assets/{dropdown-menu-1fGUL0V3.js → dropdown-menu-C5Kf9x2y.js} +1 -1
- package/dist/web/assets/{field-DjVv_wIS.js → field-7G2bSNl5.js} +1 -1
- package/dist/web/assets/{format-bytes-BKq_E0Hs.js → format-bytes-Jj3-0UhP.js} +1 -1
- package/dist/web/assets/{hover-card-BO-929hq.js → hover-card-llxR7wrX.js} +1 -1
- package/dist/web/assets/index-C2o_v2mq.js +24 -0
- package/dist/web/assets/index-HRZACEmh.css +1 -0
- package/dist/web/assets/{input-DmwRmYO2.js → input-z5o2wIZC.js} +1 -1
- package/dist/web/assets/{label-BvwPUTS4.js → label-BtTrlS8e.js} +1 -1
- package/dist/web/assets/label-table-CuTFbFd3.js +1 -0
- package/dist/web/assets/{model-0TZRbkN2.js → model-BD6AfoOR.js} +1 -1
- package/dist/web/assets/model-BKg9fdsn.js +3 -0
- package/dist/web/assets/{model-BF_ZMPLi.js → model-BMd98Yux.js} +1 -1
- package/dist/web/assets/{model-CaR7VPg7.js → model-Bb0VtRJH.js} +1 -1
- package/dist/web/assets/{model-Tmn6HvL-.js → model-Bhyqm3my.js} +1 -1
- package/dist/web/assets/model-Big7Ppeu.js +1 -0
- package/dist/web/assets/{model-Dfe81jZT.js → model-CCaA3vRN.js} +1 -1
- package/dist/web/assets/{model-y7OUvtKz.js → model-CGfhtR6w.js} +1 -1
- package/dist/web/assets/{model-DpkZUZUL.js → model-Ejc2vysd.js} +1 -1
- package/dist/web/assets/{motion-C1fZrqmI.js → motion-Cw_hptY4.js} +1 -1
- package/dist/web/assets/{motion-mAmbRj_M.js → motion-pePEUhOt.js} +1 -1
- package/dist/web/assets/{motion-preference-Dz9S1bZa.js → motion-preference-DTwjqiJ8.js} +1 -1
- package/dist/web/assets/{occupation-catalog-_SnxxRbK.js → occupation-catalog-ByjQk0EY.js} +1 -1
- package/dist/web/assets/{occupation-kits-DFC6Auuc.js → occupation-kits-Dg6UZqc1.js} +1 -1
- package/dist/web/assets/{option-DC8frdbr.js → option-BIjYeAh2.js} +1 -1
- package/dist/web/assets/{orchestration-filters-UeiAHJqn.js → orchestration-filters-3AfjDoHQ.js} +1 -1
- package/dist/web/assets/overview-data-BIeNATEJ.js +1 -0
- package/dist/web/assets/{page-refresh-DdRJaxMv.js → page-refresh-BTqRX45n.js} +1 -1
- package/dist/web/assets/{page-title-Cm9u_qw1.js → page-title-B5RyNTPD.js} +1 -1
- package/dist/web/assets/{person-profile-BH2AzOfw.js → person-profile-BzPwdtix.js} +1 -1
- package/dist/web/assets/{popover-DW__YCSE.js → popover-BsWyCEy5.js} +1 -1
- package/dist/web/assets/popup-host-DWJ1gygp.js +1 -0
- package/dist/web/assets/{profile-model-DtISOJ-X.js → profile-model-TAsyybji.js} +1 -1
- package/dist/web/assets/{project-board-layout-CTM8kAgq.js → project-board-layout-BwyHItDc.js} +1 -1
- package/dist/web/assets/{project-capture-B3pNhpFF.js → project-capture-I8-7JwsK.js} +1 -1
- package/dist/web/assets/{project-origin-BO8Ngccf.js → project-origin-B_Ku288r.js} +1 -1
- package/dist/web/assets/{quick-edit-api-B169r5Qb.js → quick-edit-api-Cm-W3ZVP.js} +1 -1
- package/dist/web/assets/{radio-group-DqA46cXQ.js → radio-group-DJ5np5d_.js} +1 -1
- package/dist/web/assets/review-api-Gwr5nP1B.js +1 -0
- package/dist/web/assets/{review-list-BbV-Mle7.js → review-list-CNeXKjBw.js} +1 -1
- package/dist/web/assets/review-store-BaMwO51r.js +1 -0
- package/dist/web/assets/{role-names-By0xdfTn.js → role-names-C-F0XIE1.js} +1 -1
- package/dist/web/assets/{roundtable-live-u9qUU6aA.js → roundtable-live-CM4Cqw2v.js} +1 -1
- package/dist/web/assets/{runtime-dom.esm-bundler-DhFy4Djs.js → runtime-dom.esm-bundler-tA5o2TEo.js} +1 -1
- package/dist/web/assets/{select-TqPBladU.js → select-DJ7iyJ-X.js} +1 -1
- package/dist/web/assets/{session-launch-offers-CtQeY4Qk.js → session-launch-offers-CEdCRTz9.js} +1 -1
- package/dist/web/assets/{settings-autosave-C7vW3_SP.js → settings-autosave-D3wBf_zN.js} +1 -1
- package/dist/web/assets/settings-tabs-B9pCaEFP.js +1 -0
- package/dist/web/assets/{npm-copies-GRyMAduA.css → settings-tabs-C9VDs91j.css} +1 -1
- package/dist/web/assets/shared-report-KyuP8oQk.js +3 -0
- package/dist/web/assets/source-adapters-BR-AAGhD.js +1 -0
- package/dist/web/assets/{switch-D7w_0h3m.js → switch-BoOtTu6O.js} +1 -1
- package/dist/web/assets/{tabs-DR8k0PN9.js → tabs-D0TAS18R.js} +1 -1
- package/dist/web/assets/{task-card-fields-X1ZYCm_j.js → task-card-fields-BWlLtcKE.js} +1 -1
- package/dist/web/assets/task-evidence-DydhKn9x.js +1 -0
- package/dist/web/assets/{task-labels-LuXoQhF9.js → task-labels-BrNKooHK.js} +1 -1
- package/dist/web/assets/{task-reason-ChpbGtyx.js → task-reason-CvmaNQWE.js} +1 -1
- package/dist/web/assets/{team-sheets-DYCQqa8I.js → team-sheets-DkAuebg6.js} +1 -1
- package/dist/web/assets/{textarea-D53VYanK.js → textarea-BQnuJ0v3.js} +1 -1
- package/dist/web/assets/ui-CJiEsCpv.js +1 -0
- package/dist/web/assets/ui-CgwSWg1F.css +1 -0
- package/dist/web/assets/{useAgentRecords-Hy9nqMs7.js → useAgentRecords-PysQYF4V.js} +1 -1
- package/dist/web/assets/{useAgentWorkSummary-mloD4p12.js → useAgentWorkSummary-DaNyOo2z.js} +1 -1
- package/dist/web/assets/{useApi-CROJJdhE-DnUGUb8O.js → useApi-CROJJdhE-CgPyy2pi.js} +1 -1
- package/dist/web/assets/{useClipboardCopy-BTuQMeWI.js → useClipboardCopy-Cf3GZrHC.js} +1 -1
- package/dist/web/assets/{useFocusReturn-4hUmSzj9.js → useFocusReturn-uY18_eDg.js} +1 -1
- package/dist/web/assets/{useForwardExpose-BDmW7q7u.js → useForwardExpose-Ci_aBJDg.js} +1 -1
- package/dist/web/assets/{useForwardPropsEmits-BzT2luD4.js → useForwardPropsEmits-mGaDeNMp.js} +1 -1
- package/dist/web/assets/useForwardScopeId-DYW8CZTp.js +1 -0
- package/dist/web/assets/{useKnowledgeConfirm-L8wnJCuX.js → useKnowledgeConfirm-PcqqgwNU.js} +1 -1
- package/dist/web/assets/{useKnowledgeItemPeek-C_huXt6E.js → useKnowledgeItemPeek-yjyrSFtf.js} +1 -1
- package/dist/web/assets/{useMinimumLoadingDisplay-Dkl8NQru.js → useMinimumLoadingDisplay-Bu6xyHby.js} +1 -1
- package/dist/web/assets/{usePageTools-CbDOdIrg.js → usePageTools-DYi9x7HJ.js} +1 -1
- package/dist/web/assets/usePrimitiveElement-DdC34jzt.js +1 -0
- package/dist/web/assets/{useProjectAgentRoster-BBmRvcgr.js → useProjectAgentRoster-KPwWl2jE.js} +1 -1
- package/dist/web/assets/{useRoutePeek-CRbCDqsm.js → useRoutePeek-BiHDBRKc.js} +1 -1
- package/dist/web/assets/useTeamPeople-Od3dDz6d.js +1 -0
- package/dist/web/assets/{useTeamWork-CXEQwF4n.js → useTeamWork-CDKVZwYe.js} +1 -1
- package/dist/web/assets/{useTypeahead-CVYuxPOD.js → useTypeahead-D_Z5P9Xm.js} +1 -1
- package/dist/web/assets/{utils-BsGjKHV8.js → utils-CAAvfQSj.js} +1 -1
- package/dist/web/assets/{utils-BnrWDlfm.js → utils-D6RjkXrh.js} +1 -1
- package/dist/web/assets/{verification-DbCo_dnY.js → verification-DoN2EFaZ.js} +1 -1
- package/dist/web/assets/version-DbJq2Cfv.js +1 -0
- package/dist/web/assets/{vue-router-D4_ms6om.js → vue-router-BwoPnYha.js} +1 -1
- package/dist/web/index.html +80 -87
- package/docs/agent-conversations-and-collaboration.md +6 -0
- package/docs/agent-interface-architecture.md +4 -1
- package/docs/agent-roundtable.md +45 -3
- package/docs/client-connections.md +29 -5
- package/docs/employee-agents.md +1 -1
- package/docs/external-knowledge-architecture.md +8 -3
- package/docs/judgment-and-autonomy.md +8 -4
- package/docs/project-agent-memory.md +12 -1
- package/graph-provider/fuli_graph/app.py +14 -234
- package/graph-provider/fuli_graph/auth.py +10 -0
- package/graph-provider/fuli_graph/builtin_embedding.py +388 -0
- package/graph-provider/fuli_graph/builtin_embedding_routes.py +53 -0
- package/graph-provider/fuli_graph/client_coverage.py +2 -2
- package/graph-provider/fuli_graph/config.py +3 -0
- package/graph-provider/fuli_graph/knowledge_duplicates.py +27 -15
- package/graph-provider/fuli_graph/knowledge_index_scan.py +13 -6
- package/graph-provider/fuli_graph/knowledge_search.py +142 -77
- package/graph-provider/fuli_graph/knowledge_semantic.py +47 -11
- package/graph-provider/fuli_graph/knowledge_semantic_index.py +5 -3
- package/graph-provider/fuli_graph/knowledge_tags.py +5 -10
- package/graph-provider/fuli_graph/models.py +16 -81
- package/graph-provider/fuli_graph/personal_global_preference_models.py +0 -23
- package/graph-provider/fuli_graph/personal_global_preferences.py +5 -630
- package/graph-provider/fuli_graph/preference_conflicts.py +3 -1
- package/graph-provider/fuli_graph/preference_organizing.py +162 -0
- package/graph-provider/fuli_graph/project_agent_delegations.py +6 -1
- package/graph-provider/fuli_graph/project_agent_executor_models.py +0 -26
- package/graph-provider/fuli_graph/project_agent_models.py +1 -0
- package/graph-provider/fuli_graph/project_agent_routes.py +22 -27
- package/graph-provider/fuli_graph/project_agent_task_models.py +26 -20
- package/graph-provider/fuli_graph/project_agent_work_log.py +4 -2
- package/graph-provider/fuli_graph/project_knowledge.py +2 -1
- package/graph-provider/fuli_graph/retired_graph_labels.py +30 -0
- package/graph-provider/fuli_graph/store_identity.py +4 -16
- package/graph-provider/fuli_graph/store_project_agent_executor_learning.py +0 -7
- package/graph-provider/fuli_graph/store_project_agent_executor_routing.py +0 -2
- package/graph-provider/fuli_graph/store_project_agent_executors.py +0 -8
- package/graph-provider/fuli_graph/store_project_agent_task_activity.py +51 -11
- package/graph-provider/fuli_graph/store_project_agent_task_blockers.py +13 -6
- package/graph-provider/fuli_graph/store_project_agent_task_person_close.py +82 -0
- package/graph-provider/fuli_graph/store_project_agent_task_recruitment.py +1 -61
- package/graph-provider/fuli_graph/store_project_agent_tasks.py +18 -1
- package/graph-provider/fuli_graph/store_project_agents.py +1 -1
- package/graph-provider/fuli_graph/store_projects.py +0 -151
- package/graph-provider/fuli_graph/store_publication.py +1 -160
- package/graph-provider/fuli_graph/store_records.py +0 -43
- package/graph-provider/fuli_graph/store_task_contexts.py +10 -0
- package/graph-provider/fuli_graph/task_blocker.py +10 -0
- package/graph-provider/fuli_graph/task_checkpoint_amendment.py +77 -0
- package/graph-provider/fuli_graph/task_context_auto_close.py +1 -1
- package/graph-provider/fuli_graph/task_context_models.py +19 -0
- package/graph-provider/fuli_graph/task_context_routes.py +5 -1
- package/graph-provider/fuli_graph/workflow_candidate_models.py +1 -61
- package/graph-provider/fuli_graph/workflow_candidates.py +7 -446
- package/graph-provider/fuli_graph/workflow_observation_models.py +1 -1
- package/graph-provider/pyproject.toml +1 -1
- package/native/win32/fuli-win-helper.exe +0 -0
- package/npm-shrinkwrap.json +57 -9
- package/package.json +4 -4
- package/packages/roundtable/package.json +1 -0
- package/packages/roundtable/src/agents/claude-code/wake.js +4 -2
- package/packages/roundtable/src/agents/codex/wake.js +26 -2
- package/packages/roundtable/src/agents/session-log.js +29 -7
- package/packages/roundtable/src/host.js +7 -1
- package/packages/roundtable/src/peer/control-cli.js +75 -2
- package/packages/roundtable/src/peer/control.js +15 -1
- package/packages/roundtable/src/peer/coordinator-http.js +23 -2
- package/packages/roundtable/src/peer/coordinator-service.js +81 -9
- package/packages/roundtable/src/peer/coordinator-store.js +2 -1
- package/packages/roundtable/src/peer/lan-addresses.js +28 -0
- package/packages/roundtable/src/peer/nearby-attempts.js +73 -0
- package/packages/roundtable/src/peer/nearby-discovery.js +71 -0
- package/packages/roundtable/src/peer/nearby-pairing.js +422 -0
- package/packages/roundtable/src/peer/nearby-presence.js +93 -0
- package/packages/roundtable/src/peer/node-store.js +10 -0
- package/packages/roundtable/src/peer/peer-runtime.js +528 -70
- package/packages/roundtable/src/peer/peer-transport.js +58 -3
- package/packages/roundtable/src/peer/protocol.js +24 -1
- package/packages/roundtable/src/roundtable/chat-service.js +14 -3
- package/packages/roundtable/src/roundtable/chat.js +1 -0
- package/packages/roundtable/src/roundtable/delivery-state.js +2 -1
- package/packages/roundtable/src/roundtable/group-discussion-store.js +130 -5
- package/packages/roundtable/src/roundtable/group-discussion.js +596 -111
- package/packages/roundtable/src/roundtable/near-names.js +27 -0
- package/packages/roundtable/src/roundtable/reply-inbox.js +6 -2
- package/packages/roundtable/src/roundtable/service.js +191 -49
- package/packages/roundtable/src/roundtable/stand-in.js +64 -0
- package/packages/roundtable/src/roundtable/store.js +19 -7
- package/packages/roundtable/src/roundtable/wake-ladder.js +63 -0
- package/packages/roundtable/src/roundtable/wake.js +10 -1
- package/packages/roundtable/src/standalone/cli.js +1 -1
- package/packages/roundtable/src/standalone/mcp.js +0 -5
- package/packages/roundtable/src/standalone/serve.js +13 -0
- package/registry/embedding-models.json +208 -0
- package/skills/capturing-session-knowledge/SKILL.md +2 -2
- package/skills/capturing-session-knowledge/references/capture.md +15 -34
- package/skills/capturing-session-knowledge/references/coordination.md +67 -4
- package/skills/capturing-session-knowledge/references/retrieval.md +9 -13
- package/skills/grilling-project/SKILL.md +8 -53
- package/skills/grilling-project/agents/openai.yaml +2 -2
- package/skills/grilling-project/references/project-profile.md +18 -27
- package/skills/operating-fuli/SKILL.md +56 -11
- package/skills/operating-fuli/references/workflow-recipes.md +8 -4
- package/src/agent-apps/host-tools/catalog.js +2 -25
- package/src/agent-delegation/port.js +1 -1
- package/src/agent-delegation/refusals.js +12 -4
- package/src/agent-kits/client-detection.js +14 -4
- package/src/agent-kits/installer-manifest.js +16 -5
- package/src/agent-kits/pack-manifest.js +7 -2
- package/src/agent-kits/pins.js +6 -6
- package/src/agent-kits/session-clients.js +1 -0
- package/src/agent-kits/vendor/agent-installer/README.md +1 -1
- package/src/agent-roundtable/task-context.js +1 -1
- package/src/agent-roundtable/tools.js +7 -4
- package/src/agent-roundtable/turn-receipt.js +65 -0
- package/src/agent-tools/graph-definitions.js +4 -2
- package/src/agent-tools/graph-handlers.js +9 -46
- package/src/agent-tools/interface-catalog.js +20 -15
- package/src/agent-tools/interface-definitions.js +3 -9
- package/src/agent-tools/judgment-definitions.js +1 -1
- package/src/agent-tools/knowledge-curation-definitions.js +1 -63
- package/src/agent-tools/knowledge-definitions.js +11 -124
- package/src/agent-tools/project-agent-definitions.js +2 -2
- package/src/agent-tools/project-agent-tool-definitions.js +0 -16
- package/src/agent-tools/project-organizing-definitions.js +34 -0
- package/src/agent-tools/project-space-definitions.js +6 -83
- package/src/agent-tools/retired-tools.js +37 -0
- package/src/agent-tools/session-fuli-gate.js +6 -1
- package/src/agent-tools/task-entry-definitions.js +4 -3
- package/src/agent-tools/tonborg-question-definitions.js +3 -3
- package/src/agent-tools.js +5 -1
- package/src/agents/choice-answers.js +2 -1
- package/src/agents/claude-code/choice-answers.js +2 -24
- package/src/agents/claude-desktop/app-control.js +23 -0
- package/src/agents/client-apps.js +8 -0
- package/src/agents/codex/choice-answers.js +61 -0
- package/src/agents/codex/lifecycle-hook.js +6 -12
- package/src/agents/dsh/bundle.js +50 -0
- package/src/agents/dsh/lifecycle-hook.js +18 -0
- package/src/agents/dsh/plugin.js +111 -0
- package/src/agents/identity-receipt.js +22 -5
- package/src/agents/jsonl-tail.js +35 -0
- package/src/agents/native-session-env.js +7 -0
- package/src/agents/opencode/lifecycle-hook.js +9 -174
- package/src/agents/opencode/plugin-file.js +7 -29
- package/src/agents/opencode/plugin.js +3 -76
- package/src/agents/plugin-hook-process.js +87 -0
- package/src/agents/plugin-lifecycle-hook.js +174 -0
- package/src/agents/plugin-module-source.js +26 -0
- package/src/agents/source-applications.js +3 -3
- package/src/agents/token-usage-resolver.js +0 -6
- package/src/cli/clients-command.js +3 -3
- package/src/cli/command-registry.js +1 -2
- package/src/cli/connect-command.js +1 -1
- package/src/cli/mcp-command.js +1 -1
- package/src/cli/setup-command.js +3 -2
- package/src/cli.js +0 -5
- package/src/conversations/entry-budget.js +4 -3
- package/src/conversations/entry-inline-budget.js +40 -10
- package/src/conversations/person-words.js +0 -5
- package/src/conversations/preference-lifecycle.js +3 -3
- package/src/conversations/turn-findings.js +9 -2
- package/src/data-format/local-stores.js +6 -0
- package/src/debug-turns/model-request.js +2 -27
- package/src/desktop/npm-copy-data.js +20 -6
- package/src/embedding-models/manifest.js +147 -0
- package/src/embedding-models/port.js +117 -0
- package/src/embedding-models/registry.js +24 -0
- package/src/embedding-models/store.js +208 -0
- package/src/external-knowledge/connectors/custom.js +4 -0
- package/src/external-knowledge/connectors/mcp.js +13 -1
- package/src/external-knowledge/connectors/response-values.js +8 -0
- package/src/external-knowledge/connectors/retrieval-api.js +5 -1
- package/src/external-knowledge/service.js +22 -5
- package/src/graphiti/agent-conversations.js +3 -2
- package/src/graphiti/agent-knowledge-workflows.js +1 -6
- package/src/graphiti/agent-project-resolution.js +18 -0
- package/src/graphiti/capture-change-confirmation.js +1 -1
- package/src/graphiti/checkpoint-amendment.js +50 -0
- package/src/graphiti/checkpoint-capture.js +7 -3
- package/src/graphiti/checkpoint-save-status.js +71 -0
- package/src/graphiti/collaboration-preference-entry.js +5 -2
- package/src/graphiti/current-project-knowledge-search.js +3 -3
- package/src/graphiti/federated-application.js +11 -132
- package/src/graphiti/first-run-guide.js +25 -4
- package/src/graphiti/fla-mention.js +48 -9
- package/src/graphiti/fuli-markup.js +1 -1
- package/src/graphiti/human-review-channel.js +4 -2
- package/src/graphiti/knowledge-curation.js +12 -24
- package/src/graphiti/knowledge-provider-mapping.js +0 -21
- package/src/graphiti/knowledge-reader.js +0 -7
- package/src/graphiti/knowledge-spaces.js +36 -0
- package/src/graphiti/local-runtimes.js +9 -1
- package/src/graphiti/personal-global-preference-candidates.js +0 -44
- package/src/graphiti/project-agent-control-plane.js +5 -12
- package/src/graphiti/project-agent-mapping.js +0 -13
- package/src/graphiti/project-agent-task-summaries.js +82 -0
- package/src/graphiti/project-agent-workflows.js +8 -21
- package/src/graphiti/project-path-context.js +23 -9
- package/src/graphiti/provider-client.js +41 -168
- package/src/graphiti/reply-echo-group.js +7 -6
- package/src/graphiti/repository-remote.js +34 -8
- package/src/graphiti/roundtable-host.js +14 -1
- package/src/graphiti/session-knowledge-capture.js +5 -31
- package/src/graphiti/task-context-entry.js +4 -1
- package/src/graphiti/task-entry-group-discussion.js +111 -25
- package/src/graphiti/task-entry-owner-change.js +86 -0
- package/src/graphiti/task-entry-preferences.js +23 -6
- package/src/graphiti/task-entry-project-scope.js +24 -1
- package/src/graphiti/task-knowledge-checkpoint.js +30 -14
- package/src/graphiti/task-preference-pages.js +3 -3
- package/src/graphiti/task-preference-reader.js +44 -9
- package/src/graphiti/topic-proposals.js +31 -8
- package/src/graphiti/topic-team-handoff.js +121 -0
- package/src/graphiti/worker-task-context.js +1 -1
- package/src/graphiti/workflow-learning.js +0 -25
- package/src/graphiti/workspace-provider-client.js +4 -50
- package/src/http/api-router.js +18 -0
- package/src/http/capture-onboarding-api-router.js +13 -4
- package/src/http/embedding-models-api-router.js +36 -0
- package/src/http/graph-api-router.js +3 -125
- package/src/http/project-organizing-api-router.js +27 -0
- package/src/http/reply-echo-api-router.js +2 -2
- package/src/http/request-policy.js +0 -4
- package/src/http/task-blocker-api-router.js +11 -1
- package/src/http/task-close-api-router.js +59 -0
- package/src/judgment/acceptance.js +2 -2
- package/src/judgment/agent-view.js +8 -8
- package/src/judgment/conversation.js +75 -69
- package/src/judgment/engine.js +39 -37
- package/src/judgment/explain-method.js +8 -7
- package/src/judgment/http.js +5 -3
- package/src/judgment/question-options.js +117 -74
- package/src/judgment/question-tools.js +54 -34
- package/src/judgment/review-delegation.js +32 -7
- package/src/judgment/review-egress.js +25 -0
- package/src/judgment/review-prompt.js +29 -33
- package/src/judgment/routing.js +4 -3
- package/src/judgment/service.js +51 -9
- package/src/judgment/verdict-schema.js +2 -7
- package/src/knowledge-hard-delete/console-port.js +1 -7
- package/src/knowledge-hard-delete/forget-references.js +1 -1
- package/src/knowledge-owner-reads/console-port.js +8 -19
- package/src/mcp/chat-listing.js +1 -1
- package/src/mcp/create-mcp-server.js +13 -33
- package/src/mcp/direct-call.js +3 -4
- package/src/mcp/preference-delivery.js +65 -5
- package/src/mcp/provider-task-context-registry.js +14 -0
- package/src/mcp/session-id.js +13 -37
- package/src/mcp/tool-annotations.js +3 -44
- package/src/mcp/tool-result.js +8 -6
- package/src/model-backends/adapters/builtin-embeddings.js +44 -0
- package/src/model-backends/adapters/registry.js +3 -1
- package/src/model-backends/config.js +24 -4
- package/src/model-backends/egress.js +8 -0
- package/src/model-backends/failures.js +8 -0
- package/src/model-backends/port.js +46 -17
- package/src/model-backends/role-trust.js +3 -9
- package/src/model-backends/runtime.js +6 -13
- package/src/model-backends/secret-store.js +2 -20
- package/src/model-backends/usage-ledger.js +20 -9
- package/src/native-runtime/runtime.js +13 -2
- package/src/presence/windows-helper-pin.js +1 -1
- package/src/project-organizing/agent-tool.js +92 -0
- package/src/project-organizing/model-tiers.js +31 -0
- package/src/project-organizing/port.js +130 -0
- package/src/server.js +29 -13
- package/src/setup/agents/claude-code/descriptor.json +1 -5
- package/src/setup/agents/codex/descriptor.json +1 -5
- package/src/setup/agents/cursor/descriptor.json +1 -5
- package/src/setup/agents/descriptor-schema.js +4 -1
- package/src/setup/agents/opencode/descriptor.json +1 -5
- package/src/setup/paths.js +1 -0
- package/src/system/client-connection-install.js +12 -2
- package/src/system/client-connection-status.js +90 -20
- package/src/system/client-restart.js +72 -0
- package/src/system/configured-install.js +103 -0
- package/src/system/doctor-repair.js +3 -1
- package/src/system/doctor.js +3 -1
- package/src/system/system-service.js +14 -2
- package/src/task-blockers/agent-resume.js +73 -0
- package/src/task-blockers/console-port.js +5 -2
- package/src/task-blockers/resume-status.js +2 -0
- package/src/task-closing/console-port.js +26 -0
- package/src/whats-new/lines/0.27.0.json +13 -0
- package/src/whats-new/lines/0.27.1.json +13 -0
- package/dist/web/assets/AgentAppsPage-5VW0uCTz.js +0 -1
- package/dist/web/assets/AgentProfilePage-BLeyT3By.js +0 -5
- package/dist/web/assets/AgentServicesPage-BXi152Xc.js +0 -1
- package/dist/web/assets/Breadcrumb-DtM5lZy5.js +0 -1
- package/dist/web/assets/CaptureChangePage-BzwcfacI.js +0 -1
- package/dist/web/assets/ConnectionsPage-C_vgqwF2.js +0 -1
- package/dist/web/assets/ConnectionsPage-DS2PEG6K.css +0 -1
- package/dist/web/assets/DataFormatPage-DwL4Ofc9.js +0 -2
- package/dist/web/assets/DebugTurnPage-UpK_3ZWY.js +0 -1
- package/dist/web/assets/DebugTurnsPage-C0aZg5-3.js +0 -1
- package/dist/web/assets/EmployeeScopeDialog-Bt3ZlDyZ.js +0 -1
- package/dist/web/assets/EmployeeWorkbench-GtJIUD5G.js +0 -4
- package/dist/web/assets/FieldRoot-DRf4wM5x.js +0 -1
- package/dist/web/assets/FlasPage-CgIVOGFM.js +0 -1
- package/dist/web/assets/InboxPage-1ue8vA7H.css +0 -1
- package/dist/web/assets/InboxPage-zNUnnYeJ.js +0 -6
- package/dist/web/assets/KnowledgeItemEditPage-DGRNkAYd.js +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-BWvF1GEu.js +0 -1
- package/dist/web/assets/KnowledgePage--Z4_kAhq.js +0 -1
- package/dist/web/assets/KnowledgePeek-BgzQA9SI.js +0 -1
- package/dist/web/assets/KnowledgeWorkspace-0yOpWtEB.js +0 -4
- package/dist/web/assets/KnowledgeWorkspace-BgWo6lBj.css +0 -1
- package/dist/web/assets/ModelSettingsPage-B9PS1Kay.css +0 -1
- package/dist/web/assets/ModelSettingsPage-BL6MsF7C.js +0 -1
- package/dist/web/assets/NoticeRow-BXZWn4EZ.js +0 -1
- package/dist/web/assets/OccupationsPage-CkVqZ2pz.js +0 -1
- package/dist/web/assets/OverviewPage-_9e2idJR.js +0 -1
- package/dist/web/assets/PageOutline-CFGtHmOK.js +0 -1
- package/dist/web/assets/PageOutline-DG5ZYtA8.css +0 -1
- package/dist/web/assets/PersonalProfilePage-TxsNr44t.js +0 -1
- package/dist/web/assets/PersonalProjectsPage-AhgP6CL8.js +0 -1
- package/dist/web/assets/ProjectAgentsPage-O-cMavcz.js +0 -5
- package/dist/web/assets/ProjectJudgmentPolicy-CyHAu0nm.js +0 -2
- package/dist/web/assets/ProjectJudgmentPolicy-DnjMniaz.css +0 -1
- package/dist/web/assets/PublicProjectsPage-Ck1QSR0R.js +0 -1
- package/dist/web/assets/PublicProjectsPage-CskSzffL.css +0 -1
- package/dist/web/assets/SettingsPage-Cj3pEWcd.css +0 -1
- package/dist/web/assets/SettingsPage-bLssMIz6.js +0 -1
- package/dist/web/assets/SharedJefaReportPage-DUY03VLS.js +0 -1
- package/dist/web/assets/TaskBlockerClear-BxOiiuK8.js +0 -1
- package/dist/web/assets/TaskBlockerNotice-iUiD3BuZ.js +0 -1
- package/dist/web/assets/TonborgDelegationSwitch-C1nkJqkJ.js +0 -1
- package/dist/web/assets/TonborgDelegationSwitch-DeqERWoo.css +0 -1
- package/dist/web/assets/UiDialog-JjqzOA0z.js +0 -1
- package/dist/web/assets/UiIcon-vgD4v8q8.js +0 -1
- package/dist/web/assets/UiIconButton-BzyMc14P.js +0 -1
- package/dist/web/assets/UiIconButton-ZCBdABdM.css +0 -1
- package/dist/web/assets/UiSegmented-CIIm3KoV.js +0 -1
- package/dist/web/assets/WidgetSlot-Dw5nWlb7.js +0 -2
- package/dist/web/assets/WorkbenchListPage-D0xX-YNl.js +0 -1
- package/dist/web/assets/_plugin-vue_export-helper-B4pFJCwG.js +0 -9
- package/dist/web/assets/agent-occupation-CjfQqSzd.js +0 -1
- package/dist/web/assets/agent-profile-BNPLhDog.css +0 -1
- package/dist/web/assets/agent-roster-records-Bi5HWDif.js +0 -1
- package/dist/web/assets/console-DgRc8Itw.js +0 -1
- package/dist/web/assets/conversation-launcher-settings-CZAfuu8B.js +0 -1
- package/dist/web/assets/identity-DIG-uOiU.js +0 -1
- package/dist/web/assets/index-C2VDC1uO.js +0 -24
- package/dist/web/assets/index-DF0TcfPY.css +0 -1
- package/dist/web/assets/label-table-CDzYRZpc.js +0 -1
- package/dist/web/assets/model-BjUERpoQ.js +0 -3
- package/dist/web/assets/npm-copies-BLRc0FXW.js +0 -1
- package/dist/web/assets/overview-data-Cq1gefY5.js +0 -1
- package/dist/web/assets/popup-host-ctKYu9Ze.js +0 -1
- package/dist/web/assets/review-api-CJaNgPMA.js +0 -1
- package/dist/web/assets/review-store-DSQpb5P8.js +0 -1
- package/dist/web/assets/shared-report-DQBSigHB.js +0 -3
- package/dist/web/assets/source-adapters-DPJzumzC.js +0 -1
- package/dist/web/assets/task-evidence-DIbw2U42.js +0 -1
- package/dist/web/assets/ui-D4nAhcmu.css +0 -1
- package/dist/web/assets/ui-DmNbL8MW.js +0 -1
- package/dist/web/assets/useForwardScopeId-DZCnSswO.js +0 -1
- package/dist/web/assets/usePrimitiveElement-tPQM7XJs.js +0 -1
- package/dist/web/assets/useTeamPeople-D_5cxxf1.js +0 -1
- package/dist/web/assets/version-lXtOG8uf.js +0 -1
- package/docs/public-personal-architecture.md +0 -73
- package/graph-provider/fuli_graph/common_knowledge.py +0 -459
- package/graph-provider/fuli_graph/common_knowledge_models.py +0 -54
- package/graph-provider/fuli_graph/project_management.py +0 -251
- package/skills/flreview/SKILL.md +0 -101
- package/skills/flreview/agents/openai.yaml +0 -6
- package/src/agent-tools/project-relation-definitions.js +0 -36
- package/src/agents/codex/acp-process.js +0 -244
- package/src/agents/codex/acp-session.js +0 -190
- package/src/agents/codex/acp-worker.js +0 -54
- package/src/agents/codex/review-command.js +0 -29
- package/src/cli/worker-command.js +0 -80
- package/src/graphiti/checkpoint-provider-outage.js +0 -23
- package/src/graphiti/common-knowledge-candidates.js +0 -222
- package/src/graphiti/public-project-relations.js +0 -28
- package/src/graphiti/public-projects.js +0 -125
- package/src/graphiti/public-submission-reconciliation.js +0 -37
- package/src/graphiti/public-submission.js +0 -77
- package/src/graphiti/publication-draft-capture.js +0 -28
- package/src/graphiti/publication-draft-input.js +0 -11
- package/src/graphiti/publication-review-queues.js +0 -50
- package/src/graphiti/worker-plan-host.js +0 -92
- package/src/graphiti/worker-run-host.js +0 -287
- package/src/graphiti/workflow-observation.js +0 -72
- package/src/mcp/common-knowledge-preview-tokens.js +0 -67
- package/src/server/worker-plan-runtime.js +0 -56
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { InvalidInputError } from '../app/application-error.js';
|
|
2
|
+
import { jsonFormat, readJsonRecord, updateVersionedJsonFileAtomic } from '../storage/json-format.js';
|
|
3
|
+
import { singleLine } from '../text/single-line.js';
|
|
4
|
+
import { modelTier } from './model-tiers.js';
|
|
5
|
+
|
|
6
|
+
// 整理 (rec#114): Astro organises a project's knowledge. It fills what is
|
|
7
|
+
// missing from the project's files and history (with the person's consent,
|
|
8
|
+
// from their clients' memories and earlier sessions), merges what repeats,
|
|
9
|
+
// marks what is stale or contradicts, and tidies the rest. The first run on a
|
|
10
|
+
// project is its onboarding. There is no interview: what the Agent is unsure
|
|
11
|
+
// of goes to a short list the person may answer.
|
|
12
|
+
//
|
|
13
|
+
// This store keeps how well nine areas are covered, which sources were read,
|
|
14
|
+
// and what each run did, so a run can stop and go on in any client and the
|
|
15
|
+
// console can show 「已了解 7 / 9」 and the last report. It holds no
|
|
16
|
+
// knowledge: what a run adds or proposes is ordinary pending knowledge.
|
|
17
|
+
|
|
18
|
+
export const PROJECT_ORGANIZING_FORMAT = jsonFormat({ store: 'project-organizing', versions: [1] });
|
|
19
|
+
|
|
20
|
+
// The areas, most basic first.
|
|
21
|
+
export const ORGANIZING_AREAS = Object.freeze([
|
|
22
|
+
{ id: 'purpose', zh: '这个项目是什么、给谁用', en: 'What the project is and who it is for' },
|
|
23
|
+
{ id: 'stack', zh: '技术栈和目录结构', en: 'Stack and layout' },
|
|
24
|
+
{ id: 'run', zh: '怎么运行、测试、发布', en: 'How to run, test and release' },
|
|
25
|
+
{ id: 'conventions', zh: '约定和品味', en: 'Conventions and taste' },
|
|
26
|
+
{ id: 'decisions', zh: '重要决定和原因', en: 'Decisions and their reasons' },
|
|
27
|
+
{ id: 'pitfalls', zh: '踩过的坑', en: 'Pitfalls' },
|
|
28
|
+
{ id: 'people', zh: '人和分工', en: 'People and who does what' },
|
|
29
|
+
{ id: 'systems', zh: '外部系统在哪', en: 'Where the outside systems are' },
|
|
30
|
+
{ id: 'preferences', zh: '你的做事偏好', en: 'Your working preferences' }
|
|
31
|
+
]);
|
|
32
|
+
// known: enough is recorded. unsure: something was found that the person has
|
|
33
|
+
// not confirmed. missing: nothing found yet. not_applicable: the person said
|
|
34
|
+
// the project has none.
|
|
35
|
+
export const AREA_STATUSES = Object.freeze(['known', 'unsure', 'missing', 'not_applicable']);
|
|
36
|
+
// What a run may read. The last three hold more than the project's own files,
|
|
37
|
+
// so each needs the person's yes before it is read.
|
|
38
|
+
// named_material is what the person pointed at in their request: a folder of
|
|
39
|
+
// documents, files, links, or another knowledge base this client can open.
|
|
40
|
+
// Naming it is the consent.
|
|
41
|
+
export const ORGANIZING_SOURCES = Object.freeze(['project_files', 'history', 'named_material', 'client_memories', 'past_sessions', 'external']);
|
|
42
|
+
export const CONSENT_SOURCES = Object.freeze(['client_memories', 'past_sessions', 'external']);
|
|
43
|
+
export const SOURCE_STATUSES = Object.freeze(['read', 'declined', 'unavailable']);
|
|
44
|
+
// What one run did, as counts: added (new pending knowledge), merged
|
|
45
|
+
// (duplicates proposed as one), stale (marked out of date or contradicting),
|
|
46
|
+
// unsure (left for the person to answer).
|
|
47
|
+
export const RUN_COUNTS = Object.freeze(['added', 'merged', 'stale', 'unsure']);
|
|
48
|
+
const NOTE_CHARS = 200;
|
|
49
|
+
const SCOPE_CHARS = 120;
|
|
50
|
+
const MODEL_CHARS = 120;
|
|
51
|
+
const MAX_COUNT = 100_000;
|
|
52
|
+
const KEPT_RUNS = 10;
|
|
53
|
+
const AREA_IDS = new Set(ORGANIZING_AREAS.map(area => area.id));
|
|
54
|
+
|
|
55
|
+
export function createProjectOrganizing({ path, now = () => new Date() }) {
|
|
56
|
+
const stored = () => readJsonRecord(path, PROJECT_ORGANIZING_FORMAT)?.projects ?? {};
|
|
57
|
+
const key = (personalSpaceId, personalProjectId) => `${personalSpaceId}\n${personalProjectId}`;
|
|
58
|
+
|
|
59
|
+
function view(personalSpaceId, personalProjectId) {
|
|
60
|
+
return projectView(stored()[key(personalSpaceId, personalProjectId)] ?? null);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Merges the areas and sources named, and adds the run's report when one is
|
|
64
|
+
// given; everything else stays as it was.
|
|
65
|
+
function update(personalSpaceId, personalProjectId, { areas = {}, sources = {}, run = null } = {}) {
|
|
66
|
+
const areaChanges = Object.entries(areas ?? {}).map(([id, value]) => [id, areaState(id, value)]);
|
|
67
|
+
const sourceChanges = Object.entries(sources ?? {}).map(([id, value]) => [id, sourceState(id, value)]);
|
|
68
|
+
const at = now().toISOString();
|
|
69
|
+
const report = run ? runReport(run, at) : null;
|
|
70
|
+
if (!areaChanges.length && !sourceChanges.length && !report) throw new InvalidInputError('Send areas, sources, run or several');
|
|
71
|
+
const saved = updateVersionedJsonFileAtomic(path, PROJECT_ORGANIZING_FORMAT, (record) => {
|
|
72
|
+
const projects = { ...(record?.projects ?? {}) };
|
|
73
|
+
const id = key(personalSpaceId, personalProjectId);
|
|
74
|
+
const project = projects[id] ?? { startedAt: at, areas: {}, sources: {}, runs: [] };
|
|
75
|
+
projects[id] = { ...project, updatedAt: at,
|
|
76
|
+
areas: { ...project.areas, ...Object.fromEntries(areaChanges) },
|
|
77
|
+
sources: { ...project.sources, ...Object.fromEntries(sourceChanges) },
|
|
78
|
+
runs: report ? [report, ...(project.runs ?? [])].slice(0, KEPT_RUNS) : project.runs ?? [] };
|
|
79
|
+
return { version: 1, projects };
|
|
80
|
+
}, { read: () => readJsonRecord(path, PROJECT_ORGANIZING_FORMAT) });
|
|
81
|
+
return projectView(saved.projects[key(personalSpaceId, personalProjectId)]);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return Object.freeze({ view, update });
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function areaState(id, value) {
|
|
88
|
+
if (!AREA_IDS.has(id)) throw new InvalidInputError(`Unknown area: ${id}`);
|
|
89
|
+
if (!AREA_STATUSES.includes(value?.status)) throw new InvalidInputError(`areas.${id}.status is one of ${AREA_STATUSES.join(', ')}`);
|
|
90
|
+
if (value.note !== undefined && typeof value.note !== 'string') throw new InvalidInputError(`areas.${id}.note is plain text`);
|
|
91
|
+
const note = singleLine(value.note ?? '').slice(0, NOTE_CHARS);
|
|
92
|
+
return { status: value.status, ...(note ? { note } : {}) };
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function sourceState(id, value) {
|
|
96
|
+
if (!ORGANIZING_SOURCES.includes(id)) throw new InvalidInputError(`Unknown source: ${id}`);
|
|
97
|
+
if (!SOURCE_STATUSES.includes(value)) throw new InvalidInputError(`sources.${id} is one of ${SOURCE_STATUSES.join(', ')}`);
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// One run as it is kept: when, on which model and its tier, what it covered, and its counts.
|
|
102
|
+
function runReport(run, at) {
|
|
103
|
+
if (typeof run !== 'object' || Array.isArray(run)) throw new InvalidInputError('run is an object');
|
|
104
|
+
const counts = Object.fromEntries(RUN_COUNTS.map((name) => {
|
|
105
|
+
const value = run[name] ?? 0;
|
|
106
|
+
if (!Number.isInteger(value) || value < 0 || value > MAX_COUNT) throw new InvalidInputError(`run.${name} is a whole number`);
|
|
107
|
+
return [name, value];
|
|
108
|
+
}));
|
|
109
|
+
for (const name of ['model', 'scope']) {
|
|
110
|
+
if (run[name] !== undefined && typeof run[name] !== 'string') throw new InvalidInputError(`run.${name} is plain text`);
|
|
111
|
+
}
|
|
112
|
+
const model = singleLine(run.model ?? '').slice(0, MODEL_CHARS);
|
|
113
|
+
const scope = singleLine(run.scope ?? '').slice(0, SCOPE_CHARS);
|
|
114
|
+
return { at, model: model || null, tier: modelTier(model), ...(scope ? { scope } : {}), ...counts };
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// A project as the console and an Agent read it: every area with its state
|
|
118
|
+
// (missing until something is recorded), how much is settled, what is open,
|
|
119
|
+
// and what the runs did, newest first.
|
|
120
|
+
function projectView(project) {
|
|
121
|
+
const areas = ORGANIZING_AREAS.map(area => ({ id: area.id, zh: area.zh, en: area.en,
|
|
122
|
+
status: project?.areas?.[area.id]?.status ?? 'missing',
|
|
123
|
+
...(project?.areas?.[area.id]?.note ? { note: project.areas[area.id].note } : {}) }));
|
|
124
|
+
const settled = areas.filter(area => area.status === 'known' || area.status === 'not_applicable').length;
|
|
125
|
+
return { started: Boolean(project), startedAt: project?.startedAt ?? null, updatedAt: project?.updatedAt ?? null,
|
|
126
|
+
areas, sources: { ...(project?.sources ?? {}) },
|
|
127
|
+
progress: { settled, total: areas.length, complete: settled === areas.length },
|
|
128
|
+
open: [...areas.filter(area => area.status === 'unsure'), ...areas.filter(area => area.status === 'missing')].map(area => area.id),
|
|
129
|
+
runs: [...(project?.runs ?? [])] };
|
|
130
|
+
}
|
package/src/server.js
CHANGED
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
lanServerAuthorities
|
|
25
25
|
} from './server/lan-access.js';
|
|
26
26
|
import { createServerApplication } from './server/application-lifecycle.js';
|
|
27
|
-
import { createWorkerPlanRuntime } from './server/worker-plan-runtime.js';
|
|
28
27
|
import { listenFetchableServer } from './server/listen.js';
|
|
29
28
|
import { resolveSetupPaths } from './setup/paths.js';
|
|
30
29
|
import { createSystemService } from './system/system-service.js';
|
|
@@ -45,6 +44,7 @@ import { createKnowledgeRecoveryCheck } from './knowledge-hard-delete/recovery-c
|
|
|
45
44
|
import { knowledgeScopeConsole as createKnowledgeScopeConsole } from './knowledge-scope/console-port.js';
|
|
46
45
|
import { projectHierarchyConsole as createProjectHierarchyConsole } from './project-hierarchy/console-port.js';
|
|
47
46
|
import { taskBlockerConsole as createTaskBlockerConsole } from './task-blockers/console-port.js';
|
|
47
|
+
import { taskCloseConsole as createTaskCloseConsole } from './task-closing/console-port.js';
|
|
48
48
|
import { knowledgeOwnerReads as createKnowledgeOwnerReads } from './knowledge-owner-reads/console-port.js';
|
|
49
49
|
import { reviewUndoConsole } from './judgment/review-undo.js';
|
|
50
50
|
import { knowledgeTagsConsole as createKnowledgeTagsConsole } from './knowledge-tags/console-port.js';
|
|
@@ -52,6 +52,10 @@ import { createModelRoleSettings } from './model-backends/role-settings.js';
|
|
|
52
52
|
import { createModelSecretStore } from './model-backends/secret-store.js';
|
|
53
53
|
import { latestEvaluation } from './model-backends/evaluation-record.js';
|
|
54
54
|
import { createClientLinksRegistry } from './client-links/registry.js';
|
|
55
|
+
import { createEmbeddingModels } from './embedding-models/port.js';
|
|
56
|
+
import { isLoopbackUrl } from './external-knowledge/connectors/response-values.js';
|
|
57
|
+
import { createEmbeddingModelRegistry } from './embedding-models/registry.js';
|
|
58
|
+
import { createEmbeddingModelStore, embeddingModelsDirectory } from './embedding-models/store.js';
|
|
55
59
|
import { createAgentDelegation } from './agent-delegation/port.js';
|
|
56
60
|
import { createCodexFlaPromptSync } from './agents/codex/fla-prompts.js';
|
|
57
61
|
import { readFlaMenuEntries } from './graphiti/fla-menu-reader.js';
|
|
@@ -115,8 +119,7 @@ export async function createServer(options = {}) {
|
|
|
115
119
|
const knowledgeHardDelete = options.knowledgeHardDelete ?? (localOptions.runtimeConfigPath
|
|
116
120
|
? createKnowledgeHardDelete(dirname(localOptions.runtimeConfigPath),
|
|
117
121
|
{ personalSpaceId: () => application.config?.personal?.spaceId ?? null,
|
|
118
|
-
agentSnapshots: application.agentSnapshots
|
|
119
|
-
reconcileSubmissions: () => application.reconcilePersonalSubmissions({}, knowledgeOwnerReads) }) : null);
|
|
122
|
+
agentSnapshots: application.agentSnapshots }) : null);
|
|
120
123
|
// A person's change of where knowledge applies (rec#20, rec#11 D-22), console only.
|
|
121
124
|
const knowledgeScope = options.knowledgeScope ?? (localOptions.runtimeConfigPath
|
|
122
125
|
? createKnowledgeScopeConsole(dirname(localOptions.runtimeConfigPath)) : null);
|
|
@@ -126,6 +129,9 @@ export async function createServer(options = {}) {
|
|
|
126
129
|
// A person's 「标记为已解除」 of a blocked task, console only.
|
|
127
130
|
const taskBlockers = options.taskBlockers ?? (localOptions.runtimeConfigPath
|
|
128
131
|
? createTaskBlockerConsole(dirname(localOptions.runtimeConfigPath)) : null);
|
|
132
|
+
// The person's own complete or cancel of a task, console only (rec#123).
|
|
133
|
+
const taskClosing = options.taskClosing ?? (localOptions.runtimeConfigPath
|
|
134
|
+
? createTaskCloseConsole(dirname(localOptions.runtimeConfigPath)) : null);
|
|
129
135
|
// The person's full knowledge reads, every FLA's included (console only).
|
|
130
136
|
const knowledgeOwnerReads = options.knowledgeOwnerReads ?? (localOptions.runtimeConfigPath
|
|
131
137
|
? createKnowledgeOwnerReads(dirname(localOptions.runtimeConfigPath)) : null);
|
|
@@ -172,13 +178,13 @@ export async function createServer(options = {}) {
|
|
|
172
178
|
let semanticIndexer = null;
|
|
173
179
|
let retrievalTerms = null;
|
|
174
180
|
let stopClientLinkUpdates = () => {};
|
|
181
|
+
let stopEmbeddingModelUpdates = () => {};
|
|
175
182
|
let stopOccupationPluginUpdates = () => {};
|
|
176
183
|
let peer = null;
|
|
177
|
-
let workerRuntime = null;
|
|
178
184
|
function closeResources() {
|
|
179
185
|
resourcesClosing ??= (async () => {
|
|
180
186
|
const failures = [];
|
|
181
|
-
for (const close of [() => stopJudgment(), () => stopDreaming(), () => stopRetrospectives(), () => stopToolSuggestions(), () => stopDuplicateMerger(), () => semanticIndexer?.stop(), () => retrievalTerms?.close(), () => stopClientLinkUpdates(), () =>
|
|
187
|
+
for (const close of [() => stopJudgment(), () => stopDreaming(), () => stopRetrospectives(), () => stopToolSuggestions(), () => stopDuplicateMerger(), () => semanticIndexer?.stop(), () => retrievalTerms?.close(), () => stopClientLinkUpdates(), () => stopEmbeddingModelUpdates(), () => stopOccupationPluginUpdates(), () => peer?.close(), () => system?.close?.(), () => agentDelegation?.close(), () => runtime.close(),
|
|
182
188
|
() => releaseDataDirectory()]) {
|
|
183
189
|
try {
|
|
184
190
|
const pending = close();
|
|
@@ -220,13 +226,6 @@ export async function createServer(options = {}) {
|
|
|
220
226
|
previewDataFormats: dataFormatMigrations ? () => dataFormatMigrations.preview() : null
|
|
221
227
|
})
|
|
222
228
|
: null);
|
|
223
|
-
if (options.workerRuntimeBindings !== undefined) {
|
|
224
|
-
workerRuntime = await createWorkerPlanRuntime({
|
|
225
|
-
runtimeConfigPath: options.runtimeConfigPath ?? localOptions.runtimeConfigPath,
|
|
226
|
-
workerRuntimeBindings: options.workerRuntimeBindings, provider: application.personal,
|
|
227
|
-
leases: options.workerRuntimeLeases, env: options.env ?? process.env
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
229
|
} catch (error) {
|
|
231
230
|
// The owned application can already hold local databases before system
|
|
232
231
|
// construction or configuration validation fails, even without a listener.
|
|
@@ -257,6 +256,7 @@ export async function createServer(options = {}) {
|
|
|
257
256
|
knowledgeScope,
|
|
258
257
|
projectHierarchy,
|
|
259
258
|
taskBlockers,
|
|
259
|
+
taskClosing,
|
|
260
260
|
knowledgeOwnerReads,
|
|
261
261
|
knowledgeTags,
|
|
262
262
|
modelRoleSettings,
|
|
@@ -310,6 +310,21 @@ export async function createServer(options = {}) {
|
|
|
310
310
|
semanticIndexer = startSemanticIndexer({ app: application,
|
|
311
311
|
...(system?.withGraphRuntimeLease ? { withLease: (owner, run) => system.withGraphRuntimeLease(owner, run) } : {}) });
|
|
312
312
|
application.semanticIndexer = semanticIndexer;
|
|
313
|
+
// Built-in embedding models: the catalog, the downloads and which one search uses.
|
|
314
|
+
// Offered only with a graph service on this computer (local-runtimes.js): elsewhere it cannot read the files.
|
|
315
|
+
const embeddingModelRegistry = options.embeddingModelRegistry ?? (localOptions.runtimeConfigPath && modelRoleSettings
|
|
316
|
+
&& isLoopbackUrl(application.config.personal.providerUrl)
|
|
317
|
+
? createEmbeddingModelRegistry({ statePath: resolveSetupPaths({ dataDir: dirname(localOptions.runtimeConfigPath) }).embeddingModelsPath })
|
|
318
|
+
: null);
|
|
319
|
+
application.embeddingModels = embeddingModelRegistry && createEmbeddingModels({
|
|
320
|
+
registry: embeddingModelRegistry,
|
|
321
|
+
store: options.embeddingModelStore
|
|
322
|
+
?? createEmbeddingModelStore({ directory: embeddingModelsDirectory(dirname(localOptions.runtimeConfigPath)) }),
|
|
323
|
+
modelBackends: application.modelBackends, roleSettings: modelRoleSettings,
|
|
324
|
+
unload: () => application.personal.unloadBuiltinEmbeddings(), fillIndex: () => { void semanticIndexer.runNow(); } });
|
|
325
|
+
stopEmbeddingModelUpdates = embeddingModelRegistry?.startAutoUpdate({
|
|
326
|
+
onError: (error) => console.warn(`The embedding model catalog was not updated: ${error?.message ?? error}`)
|
|
327
|
+
}) ?? (() => {});
|
|
313
328
|
retrievalTerms = createTermsRunner({ app: application,
|
|
314
329
|
...(system?.withGraphRuntimeLease ? { withLease: (owner, run) => system.withGraphRuntimeLease(owner, run) } : {}) });
|
|
315
330
|
application.retrievalTerms = retrievalTerms;
|
|
@@ -349,7 +364,6 @@ export async function createServer(options = {}) {
|
|
|
349
364
|
url: `http://${authority}`,
|
|
350
365
|
lanUrls: lanEnabled ? lanConsoleUrls(lanAddresses, address.port) : [],
|
|
351
366
|
app: application,
|
|
352
|
-
...(workerRuntime ? { workerPlanHost: workerRuntime.host } : {})
|
|
353
367
|
};
|
|
354
368
|
}
|
|
355
369
|
|
|
@@ -379,6 +393,7 @@ async function handleRequest({
|
|
|
379
393
|
knowledgeScope,
|
|
380
394
|
projectHierarchy,
|
|
381
395
|
taskBlockers,
|
|
396
|
+
taskClosing,
|
|
382
397
|
knowledgeOwnerReads,
|
|
383
398
|
knowledgeTags,
|
|
384
399
|
modelRoleSettings,
|
|
@@ -423,6 +438,7 @@ async function handleRequest({
|
|
|
423
438
|
knowledgeScope,
|
|
424
439
|
projectHierarchy,
|
|
425
440
|
taskBlockers,
|
|
441
|
+
taskClosing,
|
|
426
442
|
knowledgeOwnerReads,
|
|
427
443
|
knowledgeTags,
|
|
428
444
|
modelRoleSettings,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"id": "claude-code",
|
|
4
4
|
"version": "1.0.0",
|
|
5
|
-
"digest": "sha256:
|
|
5
|
+
"digest": "sha256:5df4f2cf30d488fa4224edcd24bed6584f7737b65014f299783ca6ae254447d9",
|
|
6
6
|
"label": "Claude Code",
|
|
7
7
|
"command": "claude",
|
|
8
8
|
"detection": {
|
|
@@ -47,10 +47,6 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"commandSkills": {
|
|
50
|
-
"review": {
|
|
51
|
-
"userCommand": "/flreview",
|
|
52
|
-
"nativeInvocation": "/flreview"
|
|
53
|
-
},
|
|
54
50
|
"sessionCommand": true
|
|
55
51
|
},
|
|
56
52
|
"configWriter": "claude-code-settings",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"id": "codex",
|
|
4
4
|
"version": "1.0.0",
|
|
5
|
-
"digest": "sha256:
|
|
5
|
+
"digest": "sha256:9bf5e12d7a997a478b607ab83ad236ebb9809b0a13f66fcb8e77f1d2a16ffb5d",
|
|
6
6
|
"label": "Codex",
|
|
7
7
|
"command": "codex",
|
|
8
8
|
"detection": {
|
|
@@ -57,10 +57,6 @@
|
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
59
|
"commandSkills": {
|
|
60
|
-
"review": {
|
|
61
|
-
"userCommand": "fuli review",
|
|
62
|
-
"nativeInvocation": "$flreview"
|
|
63
|
-
},
|
|
64
60
|
"sessionCommand": false
|
|
65
61
|
},
|
|
66
62
|
"configWriter": "codex-toml",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"id": "cursor",
|
|
4
4
|
"version": "1.0.0",
|
|
5
|
-
"digest": "sha256:
|
|
5
|
+
"digest": "sha256:779ff6864de5f1519962d34b01df0a9135f909c2929f4e16effd68f081063483",
|
|
6
6
|
"label": "Cursor",
|
|
7
7
|
"command": "cursor",
|
|
8
8
|
"detection": {
|
|
@@ -47,10 +47,6 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"commandSkills": {
|
|
50
|
-
"review": {
|
|
51
|
-
"userCommand": "/flreview",
|
|
52
|
-
"nativeInvocation": "/flreview"
|
|
53
|
-
},
|
|
54
50
|
"sessionCommand": true
|
|
55
51
|
},
|
|
56
52
|
"configWriter": "cursor-hooks",
|
|
@@ -60,7 +60,10 @@ const mcpServer = z.object({
|
|
|
60
60
|
}).strict();
|
|
61
61
|
|
|
62
62
|
const commandSkills = z.object({
|
|
63
|
-
|
|
63
|
+
// No longer read: the /flreview knowledge review was retired (11-11) and the
|
|
64
|
+
// built-in packs dropped it. Still accepted so schema-1 packs already
|
|
65
|
+
// published keep parsing; drop it with the next pack schema.
|
|
66
|
+
review: z.object({ userCommand: text(40), nativeInvocation: text(40) }).strict().optional(),
|
|
64
67
|
sessionCommand: z.boolean()
|
|
65
68
|
}).strict();
|
|
66
69
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"id": "opencode",
|
|
4
4
|
"version": "1.0.0",
|
|
5
|
-
"digest": "sha256:
|
|
5
|
+
"digest": "sha256:2853a86bc6ab3488b9d8f7b61d76a7918ff56a9f9d917c923aa57dd09656b31a",
|
|
6
6
|
"label": "OpenCode",
|
|
7
7
|
"command": "opencode",
|
|
8
8
|
"detection": {
|
|
@@ -47,10 +47,6 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"commandSkills": {
|
|
50
|
-
"review": {
|
|
51
|
-
"userCommand": "fuli review",
|
|
52
|
-
"nativeInvocation": "the flreview skill"
|
|
53
|
-
},
|
|
54
50
|
"sessionCommand": false
|
|
55
51
|
},
|
|
56
52
|
"configWriter": "opencode-plugin",
|
package/src/setup/paths.js
CHANGED
|
@@ -50,6 +50,7 @@ export function resolveSetupPaths({
|
|
|
50
50
|
standingAssignmentsPath: join(resolvedDataDir, 'standing-assignments.sqlite'),
|
|
51
51
|
modelEvaluationsPath: join(resolvedDataDir, 'model-evaluations.json'),
|
|
52
52
|
clientLinksPath: join(resolvedDataDir, 'client-links.json'),
|
|
53
|
+
embeddingModelsPath: join(resolvedDataDir, 'embedding-models.json'),
|
|
53
54
|
// Derived from FULI's settings and descriptor packs for the shared client components (src/agent-kits/).
|
|
54
55
|
launcherHostConfigPath: join(resolvedDataDir, 'agent-kits', 'launcher.json'),
|
|
55
56
|
installerManifestPath: join(resolvedDataDir, 'agent-kits', 'fuli-installer.json'),
|
|
@@ -3,10 +3,16 @@ import { CLIENT_COMPONENT_UNAVAILABLE } from '../agent-kits/client-installer.js'
|
|
|
3
3
|
import { installAgent } from '../setup/install-agent.js';
|
|
4
4
|
import { assertJsonObject } from '../validation/values.js';
|
|
5
5
|
|
|
6
|
+
// What the person reads when a client that writes its cached configuration back is (or may be) running.
|
|
7
|
+
export const CLIENT_RUNNING = '客户端正在运行,会把旧配置写回:先完全退出它,或在客户端接入里点「重启并更新」。'
|
|
8
|
+
+ ' The client is running and would write its old configuration back: quit it fully, or use Restart and update in Client connection.';
|
|
9
|
+
|
|
6
10
|
// The console's one-click connection: agent-installer writes a client it
|
|
7
11
|
// found on this machine that FULI may set up by itself. Without
|
|
8
|
-
// agent-installer nothing is written and the answer says why.
|
|
9
|
-
|
|
12
|
+
// agent-installer nothing is written and the answer says why. apps: the
|
|
13
|
+
// client apps that write their cached configuration back (src/agents/client-apps.js):
|
|
14
|
+
// one of them is written only when it is known to be closed (rec#106).
|
|
15
|
+
export function createClientInstaller({ installer, install = installAgent, apps = {} }) {
|
|
10
16
|
let busy = false;
|
|
11
17
|
return async (input) => {
|
|
12
18
|
assertJsonObject(input, 'Client connection');
|
|
@@ -16,6 +22,10 @@ export function createClientInstaller({ installer, install = installAgent }) {
|
|
|
16
22
|
if (busy) throw new TypeError('A client connection is already being installed');
|
|
17
23
|
busy = true;
|
|
18
24
|
try {
|
|
25
|
+
const app = Object.hasOwn(apps, input.clientId) ? apps[input.clientId] : null;
|
|
26
|
+
if (app && await app.running().catch(() => null) !== false) {
|
|
27
|
+
return { id: input.clientId, status: 'failed', restartRequired: false, reason: 'client_running', message: CLIENT_RUNNING };
|
|
28
|
+
}
|
|
19
29
|
const detected = await detectAgents(installer);
|
|
20
30
|
const result = detected.status === 'available'
|
|
21
31
|
? await install(installer, connectable(detected.agents, input.clientId))
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { homedir } from 'node:os';
|
|
3
|
+
import { sep } from 'node:path';
|
|
2
4
|
|
|
3
|
-
import { clientSourceApplication, detectClients } from '../agent-kits/client-detection.js';
|
|
5
|
+
import { clientSourceApplication, detectClients, entryState } from '../agent-kits/client-detection.js';
|
|
6
|
+
import { configuredInstall, installOf } from './configured-install.js';
|
|
4
7
|
import { jsonFormat, writeVersionedJsonFileAtomic } from '../storage/json-format.js';
|
|
5
8
|
|
|
6
9
|
// Kept per client so a long-lived console cannot grow this file without bound.
|
|
@@ -14,6 +17,11 @@ const STATUSES = new Set(['connected', 'changed', 'skills_left', 'removed', 'not
|
|
|
14
17
|
const LEFT = new Set(['current', 'outdated', 'conflict']);
|
|
15
18
|
// Where a client agent-installer leaves to the person documents its configuration.
|
|
16
19
|
const MANUAL_URLS = Object.freeze({ opencode: 'https://opencode.ai/docs/config/' });
|
|
20
|
+
// A client that writes back the FULI entry it had before an update does so
|
|
21
|
+
// when it next saves its own settings: minutes to an hour later (rec#106).
|
|
22
|
+
const OVERWRITE_WINDOW_MS = 2 * 60 * 60_000;
|
|
23
|
+
// An installation path kept in history is bounded like any other stored field.
|
|
24
|
+
const MAX_INSTALL_KEY = 1024;
|
|
17
25
|
|
|
18
26
|
/**
|
|
19
27
|
* Observe which agent clients are on this machine and whether FULI is in
|
|
@@ -23,9 +31,21 @@ const MANUAL_URLS = Object.freeze({ opencode: 'https://opencode.ai/docs/config/'
|
|
|
23
31
|
*
|
|
24
32
|
* installer: the client installer port. customClients: the custom client
|
|
25
33
|
* store (custom-clients.js). awaitingRestart: the open sessions that started
|
|
26
|
-
* before their client's last change (process-registry.js).
|
|
34
|
+
* before their client's last change (process-registry.js). consoleInstall:
|
|
35
|
+
* the command line this console writes into clients ({ nodePath,
|
|
36
|
+
* mcpServerPath, version }). apps: the client apps FULI can restart
|
|
37
|
+
* (src/agents/client-apps.js), asked whether they run only while their entry
|
|
38
|
+
* needs an update.
|
|
39
|
+
*
|
|
40
|
+
* A client whose entry FULI updated and which then, within
|
|
41
|
+
* OVERWRITE_WINDOW_MS, names again the very installation that update
|
|
42
|
+
* replaced was overwritten by that client, not by a newer FULI: that change
|
|
43
|
+
* says `overwritten` (rec#106).
|
|
27
44
|
*/
|
|
28
|
-
export function createClientConnectionObserver({ installer, customClients, historyPath, now = () => new Date(), awaitingRestart = () => []
|
|
45
|
+
export function createClientConnectionObserver({ installer, customClients, historyPath, now = () => new Date(), awaitingRestart = () => [],
|
|
46
|
+
consoleInstall = null, apps = {}, homeDir = homedir(), platform = process.platform }) {
|
|
47
|
+
const own = consoleInstall ? installOf([consoleInstall.nodePath, consoleInstall.mcpServerPath], { platform }) : null;
|
|
48
|
+
const ownInstall = own ? { path: displayPath(own.root, homeDir, platform), version: consoleInstall.version } : null;
|
|
29
49
|
// History that could not be written stays reliable for this observer.
|
|
30
50
|
let retained = null;
|
|
31
51
|
|
|
@@ -45,22 +65,38 @@ export function createClientConnectionObserver({ installer, customClients, histo
|
|
|
45
65
|
const extra = { sourceApplication, manualOnly: client.manual, restartSessions: waiting.get(sourceApplication) ?? 0,
|
|
46
66
|
...(client.manual && MANUAL_URLS[client.id] ? { manualUrl: MANUAL_URLS[client.id] } : {}) };
|
|
47
67
|
const record = history.clients[client.id] ?? { status: null, previouslyConnected: false, since: null, changes: [] };
|
|
48
|
-
// A FULI entry FULI cannot read or call its own
|
|
49
|
-
|
|
50
|
-
|
|
68
|
+
// A FULI entry FULI cannot read or call its own (for DeepSeek Harness, a
|
|
69
|
+
// plugin directory that is not FULI's) is never reported as a removal.
|
|
70
|
+
if (entryState(client.components) === 'conflict') {
|
|
71
|
+
return { shown: view(client, { ...record, status: 'unknown' }, { ...extra, lastKnownStatus: record.status }) };
|
|
51
72
|
}
|
|
52
73
|
const previouslyConnected = record.previouslyConnected || PRESENT.has(statusOf(client, false));
|
|
53
74
|
const status = statusOf(client, previouslyConnected);
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
75
|
+
// Only an entry that differs from this console's is read for what it names.
|
|
76
|
+
const configured = status === 'changed' ? configuredInstall(client.mcpPaths, { homeDir, platform }) : null;
|
|
77
|
+
// Only another installation can be written back: an entry naming the console's own (its Skills or hooks
|
|
78
|
+
// outdated, or a FULI that upgrades in place) is an ordinary update.
|
|
79
|
+
const foreign = configured && configured.key !== own?.key && configured.key.length <= MAX_INSTALL_KEY ? configured.key : null;
|
|
80
|
+
const replacedInstall = foreign ?? record.replacedInstall;
|
|
81
|
+
if (status !== record.status || previouslyConnected !== record.previouslyConnected || replacedInstall !== record.replacedInstall) {
|
|
82
|
+
const change = { from: record.status, to: status, detectedAt: observedAt,
|
|
83
|
+
...(overwrittenBy(record, status, foreign, observedAt) ? { overwritten: true } : {}) };
|
|
84
|
+
const changes = record.status && status !== record.status ? [...record.changes, change].slice(-MAX_CHANGES) : record.changes;
|
|
58
85
|
history.clients[client.id] = { status, previouslyConnected,
|
|
59
|
-
since: status === record.status ? record.since : observedAt, changes };
|
|
86
|
+
since: status === record.status ? record.since : observedAt, changes, ...(replacedInstall ? { replacedInstall } : {}) };
|
|
60
87
|
dirty = true;
|
|
61
88
|
}
|
|
62
|
-
return
|
|
89
|
+
return { client, record: history.clients[client.id] ?? record, configured, extra };
|
|
63
90
|
});
|
|
91
|
+
const views = await Promise.all(clients.map(async ({ shown, client, record, configured, extra }) => {
|
|
92
|
+
if (shown) return shown;
|
|
93
|
+
const app = record.status === 'changed' ? apps[client.id] : null;
|
|
94
|
+
const running = app ? await app.running().catch(() => null) : null;
|
|
95
|
+
return view(client, record, { ...extra, components: client.components,
|
|
96
|
+
...(configured ? { configuredInstall: { path: displayPath(configured.root, homeDir, platform), version: configured.version,
|
|
97
|
+
exists: configured.exists, sameAsConsole: configured.key === own?.key } } : {}),
|
|
98
|
+
...(app ? { restart: { running } } : {}) });
|
|
99
|
+
}));
|
|
64
100
|
let historySaved = true;
|
|
65
101
|
if (dirty) {
|
|
66
102
|
try {
|
|
@@ -69,10 +105,11 @@ export function createClientConnectionObserver({ installer, customClients, histo
|
|
|
69
105
|
} catch { retained = history; historySaved = false; }
|
|
70
106
|
}
|
|
71
107
|
const removable = customClients.removable();
|
|
72
|
-
return { scope: 'configuration', observedAt, available: true, historySaved, clients,
|
|
108
|
+
return { scope: 'configuration', observedAt, available: true, historySaved, clients: views,
|
|
109
|
+
...(ownInstall ? { installs: installsOf(ownInstall, views, platform) } : {}),
|
|
73
110
|
customClients: answer.clients.filter((client) => !client.builtin).map((client) => ({
|
|
74
111
|
id: client.id, label: client.label, detected: client.detected,
|
|
75
|
-
status: client.components
|
|
112
|
+
status: entryState(client.components) === 'conflict' ? 'unknown' : statusOf(client, false),
|
|
76
113
|
// Where the person puts FULI's MCP entry by hand, relative to home.
|
|
77
114
|
mcpPaths: client.mcpPaths, removable: removable.has(client.id) })) };
|
|
78
115
|
}
|
|
@@ -80,19 +117,50 @@ export function createClientConnectionObserver({ installer, customClients, histo
|
|
|
80
117
|
}
|
|
81
118
|
|
|
82
119
|
function statusOf(client, previouslyConnected) {
|
|
83
|
-
const {
|
|
120
|
+
const { skills } = client.components;
|
|
84
121
|
if (client.connected) return 'connected';
|
|
85
|
-
if (LEFT.has(
|
|
122
|
+
if (LEFT.has(entryState(client.components))) return 'changed';
|
|
86
123
|
if (LEFT.has(skills)) return 'skills_left';
|
|
87
124
|
if (previouslyConnected) return 'removed';
|
|
88
125
|
return client.detected ? 'not_connected' : 'not_detected';
|
|
89
126
|
}
|
|
90
127
|
|
|
91
|
-
//
|
|
128
|
+
// Whether this change back to an outdated entry restores what the last update replaced, soon after it.
|
|
129
|
+
function overwrittenBy(record, status, foreignKey, observedAt) {
|
|
130
|
+
const updated = record.changes.at(-1);
|
|
131
|
+
return status === 'changed' && record.status === 'connected' && Boolean(foreignKey) && foreignKey === record.replacedInstall
|
|
132
|
+
&& updated?.to === 'connected' && Date.parse(observedAt) - Date.parse(updated.detectedAt) <= OVERWRITE_WINDOW_MS;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// The console's installation and every other one a client entry names (rec#106: two FULIs on one machine).
|
|
136
|
+
function installsOf(own, views, platform) {
|
|
137
|
+
const others = new Map();
|
|
138
|
+
for (const client of views) {
|
|
139
|
+
const install = client.configuredInstall;
|
|
140
|
+
if (!install || install.sameAsConsole || !install.exists) continue;
|
|
141
|
+
const key = platform === 'win32' ? install.path.toLowerCase() : install.path;
|
|
142
|
+
const entry = others.get(key) ?? { path: install.path, version: install.version, clients: [] };
|
|
143
|
+
entry.clients.push(client.label);
|
|
144
|
+
others.set(key, entry);
|
|
145
|
+
}
|
|
146
|
+
return { console: own, others: [...others.values()] };
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// Home shown as ~ (case-insensitive on Windows), and on macOS an app bundle by its .app folder.
|
|
150
|
+
function displayPath(root, homeDir, platform) {
|
|
151
|
+
const home = homeDir.endsWith(sep) ? homeDir.slice(0, -1) : homeDir;
|
|
152
|
+
const fold = (value) => (platform === 'win32' ? value.toLowerCase() : value);
|
|
153
|
+
const inHome = fold(root) === fold(home) || fold(root).startsWith(fold(home) + sep);
|
|
154
|
+
const shown = inHome ? `~${root.slice(home.length)}` : root;
|
|
155
|
+
return platform === 'darwin' ? /^(.*?\.app)(?=[\\/]|$)/.exec(shown)?.[1] ?? shown : shown;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// Bounded fields leave this module; the only paths are FULI's own installations, home shown as ~.
|
|
92
159
|
function view(client, record, extra) {
|
|
93
160
|
return { id: client.id, label: client.label, detected: client.detected,
|
|
94
161
|
status: record.status, previouslyConnected: record.previouslyConnected,
|
|
95
|
-
since: record.since, changes: record.changes,
|
|
162
|
+
since: record.since, changes: record.changes, overwritten: record.status === 'changed' && record.changes.at(-1)?.overwritten === true,
|
|
163
|
+
...extra };
|
|
96
164
|
}
|
|
97
165
|
|
|
98
166
|
function readHistory(path) {
|
|
@@ -123,10 +191,12 @@ function sanitizeRecord(record) {
|
|
|
123
191
|
? record.changes.slice(-MAX_CHANGES)
|
|
124
192
|
.filter((change) => isObject(change) && STATUSES.has(change.from) && STATUSES.has(change.to)
|
|
125
193
|
&& isTimestamp(change.detectedAt))
|
|
126
|
-
.map(({ from, to, detectedAt }) => ({ from, to, detectedAt }))
|
|
194
|
+
.map(({ from, to, detectedAt, overwritten }) => ({ from, to, detectedAt, ...(overwritten === true ? { overwritten } : {}) }))
|
|
127
195
|
: [];
|
|
196
|
+
const replacedInstall = typeof record.replacedInstall === 'string' && record.replacedInstall.length <= MAX_INSTALL_KEY
|
|
197
|
+
? record.replacedInstall : null;
|
|
128
198
|
return { status: record.status, previouslyConnected,
|
|
129
|
-
since: isTimestamp(record.since) ? record.since : null, changes };
|
|
199
|
+
since: isTimestamp(record.since) ? record.since : null, changes, ...(replacedInstall ? { replacedInstall } : {}) };
|
|
130
200
|
}
|
|
131
201
|
|
|
132
202
|
function isObject(value) {
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { setTimeout as delay } from 'node:timers/promises';
|
|
2
|
+
|
|
3
|
+
import { assertJsonObject } from '../validation/values.js';
|
|
4
|
+
|
|
5
|
+
// How long the app has to finish its own quit (it may save open work first).
|
|
6
|
+
const QUIT_DEADLINE_MS = 30_000;
|
|
7
|
+
const QUIT_POLL_MS = 500;
|
|
8
|
+
// A reopened client reads its configuration, and may save it, as it starts.
|
|
9
|
+
const SETTLE_MS = 5_000;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 「重启并更新」 (rec#106): quit a client app that writes its cached
|
|
13
|
+
* configuration back, update FULI's entry while it is closed, reopen it, and
|
|
14
|
+
* check the entry is still current. Reached only from the console on this
|
|
15
|
+
* computer, never from an Agent: it ends the client's open sessions.
|
|
16
|
+
*
|
|
17
|
+
* apps: clientApps() (src/agents/client-apps.js). connect: the console's
|
|
18
|
+
* one-click connection (client-connection-install.js). inspect(id): the
|
|
19
|
+
* client as agent-installer finds it now (client-detection.js inspectAgent).
|
|
20
|
+
*
|
|
21
|
+
* Answers { id, status }: `connected`; `quit_failed` (still running, or not
|
|
22
|
+
* known to be closed: nothing written); `connect_failed` (with `reopened` when FULI had closed it);
|
|
23
|
+
* `reopen_failed` (updated, the person opens it); `check_failed` (reopened,
|
|
24
|
+
* but the entry is not current).
|
|
25
|
+
*/
|
|
26
|
+
export function createClientRestart({ apps, connect, inspect, wait = delay, now = Date.now }) {
|
|
27
|
+
let busy = false;
|
|
28
|
+
return async (input) => {
|
|
29
|
+
assertJsonObject(input, 'Client restart');
|
|
30
|
+
if (Object.keys(input).length !== 1 || typeof input.clientId !== 'string') throw new TypeError('Expected only a clientId');
|
|
31
|
+
const app = Object.hasOwn(apps, input.clientId) ? apps[input.clientId] : null;
|
|
32
|
+
if (!app) throw new TypeError('FULI cannot restart this client here');
|
|
33
|
+
if (busy) throw new TypeError('A client restart is already running');
|
|
34
|
+
busy = true;
|
|
35
|
+
try { return { id: input.clientId, ...await restart(app, input.clientId) }; } finally { busy = false; }
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
async function restart(app, clientId) {
|
|
39
|
+
// While it cannot be told whether the app runs, nothing is quit or written: asking a stopped app to quit may launch it.
|
|
40
|
+
const running = () => app.running().catch(() => null);
|
|
41
|
+
const wasRunning = await running();
|
|
42
|
+
if (wasRunning === null) return { status: 'quit_failed' };
|
|
43
|
+
if (wasRunning) {
|
|
44
|
+
// A quit that outlasts its command (the app saving first) still counts once the app has closed.
|
|
45
|
+
await app.quit().catch(() => {});
|
|
46
|
+
if (!await closed(running)) return { status: 'quit_failed' };
|
|
47
|
+
}
|
|
48
|
+
const written = await connect({ clientId }).catch(() => ({ status: 'failed' }));
|
|
49
|
+
// An app FULI closed is reopened whatever the write did; one that was not running stays closed,
|
|
50
|
+
// and its answer says nothing about reopening.
|
|
51
|
+
let reopened = null;
|
|
52
|
+
if (wasRunning) {
|
|
53
|
+
reopened = true;
|
|
54
|
+
try { await app.open(); } catch { reopened = false; }
|
|
55
|
+
}
|
|
56
|
+
if (written.status !== 'connected') {
|
|
57
|
+
return { status: 'connect_failed', ...(reopened === null ? {} : { reopened }), ...(written.reason ? { reason: written.reason } : {}) };
|
|
58
|
+
}
|
|
59
|
+
if (reopened === false) return { status: 'reopen_failed' };
|
|
60
|
+
await wait(SETTLE_MS);
|
|
61
|
+
return { status: (await inspect(clientId))?.integrationStatus === 'connected' ? 'connected' : 'check_failed' };
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
async function closed(running) {
|
|
65
|
+
const deadline = now() + QUIT_DEADLINE_MS;
|
|
66
|
+
while (now() < deadline) {
|
|
67
|
+
await wait(QUIT_POLL_MS);
|
|
68
|
+
if (await running() === false) return true;
|
|
69
|
+
}
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
}
|