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,44 @@
|
|
|
1
|
+
import { modelFailure } from '../failures.js';
|
|
2
|
+
import { reportedUsage } from '../usage.js';
|
|
3
|
+
import { attemptFailure } from './exchange.js';
|
|
4
|
+
|
|
5
|
+
// A model from FULI's catalog that the graph service runs on this computer
|
|
6
|
+
// (src/embedding-models, graph-provider/fuli_graph/builtin_embedding.py). It
|
|
7
|
+
// serves only the semantic role and sends nothing out (`local`), so no
|
|
8
|
+
// project approval, key or price applies. The connection's model is the
|
|
9
|
+
// catalog id; the texts go to the graph service through the port's
|
|
10
|
+
// builtinEmbed, never to an address.
|
|
11
|
+
|
|
12
|
+
const DEFINITION = 'builtin_embeddings';
|
|
13
|
+
|
|
14
|
+
export const builtinEmbeddingsAdapter = Object.freeze({
|
|
15
|
+
protocol: 'builtin_embeddings',
|
|
16
|
+
outputMode: 'embedding',
|
|
17
|
+
repairable: false,
|
|
18
|
+
local: true,
|
|
19
|
+
supports: () => false,
|
|
20
|
+
async embed({ connection, texts, signal, builtinEmbed }) {
|
|
21
|
+
const state = { actualModel: null, usage: reportedUsage({ definition: DEFINITION }) };
|
|
22
|
+
if (!builtinEmbed) return attemptFailure(modelFailure('configuration', 'builtin_unavailable'), state);
|
|
23
|
+
let answer;
|
|
24
|
+
try {
|
|
25
|
+
// The saved name is `id@revision` (src/embedding-models/port.js). The graph service runs the id
|
|
26
|
+
// and refuses when the files on disk are another revision, so vectors of two sets of weights never share a name.
|
|
27
|
+
const [model, version = ''] = connection.model.split('@');
|
|
28
|
+
answer = await builtinEmbed({ model, revision: version.split('.')[0] || null, texts, signal });
|
|
29
|
+
} catch (error) {
|
|
30
|
+
// 404: the model is not downloaded (or was removed); 422: its files are not ones this version runs.
|
|
31
|
+
if (error?.status === 404) return attemptFailure(modelFailure('configuration', 'model_not_downloaded'), state);
|
|
32
|
+
if (error?.status === 422) return attemptFailure(modelFailure('configuration', 'model_not_runnable'), state);
|
|
33
|
+
return attemptFailure(modelFailure('transient', signal?.aborted ? 'timeout' : 'graph_service_unavailable'), state);
|
|
34
|
+
}
|
|
35
|
+
const vectors = answer?.vectors;
|
|
36
|
+
if (!Array.isArray(vectors) || vectors.length !== texts.length || !vectors.length
|
|
37
|
+
|| vectors.some(vector => !Array.isArray(vector) || vector.length !== vectors[0].length || !vector.every(Number.isFinite))) {
|
|
38
|
+
return attemptFailure(modelFailure('configuration', 'invalid_response'), state);
|
|
39
|
+
}
|
|
40
|
+
state.actualModel = connection.model;
|
|
41
|
+
state.usage = reportedUsage({ inputTokens: answer.tokens, outputTokens: 0, definition: DEFINITION });
|
|
42
|
+
return { ok: true, vectors, dimensions: vectors[0].length, usage: state.usage, actualModel: state.actualModel };
|
|
43
|
+
}
|
|
44
|
+
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { anthropicMessagesAdapter } from './anthropic-messages.js';
|
|
2
|
+
import { builtinEmbeddingsAdapter } from './builtin-embeddings.js';
|
|
2
3
|
import { openAiChatAdapter } from './openai-chat.js';
|
|
3
4
|
import { openAiEmbeddingsAdapter } from './openai-embeddings.js';
|
|
4
5
|
import { typeSafeSystemOneAdapter } from './typesafe-systemone.js';
|
|
@@ -8,5 +9,6 @@ export const MODEL_ADAPTERS = Object.freeze({
|
|
|
8
9
|
[openAiChatAdapter.protocol]: openAiChatAdapter,
|
|
9
10
|
[anthropicMessagesAdapter.protocol]: anthropicMessagesAdapter,
|
|
10
11
|
[typeSafeSystemOneAdapter.protocol]: typeSafeSystemOneAdapter,
|
|
11
|
-
[openAiEmbeddingsAdapter.protocol]: openAiEmbeddingsAdapter
|
|
12
|
+
[openAiEmbeddingsAdapter.protocol]: openAiEmbeddingsAdapter,
|
|
13
|
+
[builtinEmbeddingsAdapter.protocol]: builtinEmbeddingsAdapter
|
|
12
14
|
});
|
|
@@ -18,7 +18,16 @@ export const MODEL_BACKEND_ROLES = Object.freeze(['assistant', 'bole', 'jefa', '
|
|
|
18
18
|
export const SEMANTIC_ROLE = 'semantic';
|
|
19
19
|
export const KNOWLEDGE_EMBEDDING_OPERATION = 'knowledge_embedding';
|
|
20
20
|
const EMBEDDING_PROTOCOL = 'openai_embeddings';
|
|
21
|
-
|
|
21
|
+
// A model from FULI's catalog, downloaded and run by the graph service on this
|
|
22
|
+
// computer (src/embedding-models): no endpoint of the person's, no key, no
|
|
23
|
+
// price, and nothing leaves the computer. Its connection names the model by
|
|
24
|
+
// its catalog id; the endpoint is this fixed name for the local graph
|
|
25
|
+
// service and is never fetched.
|
|
26
|
+
export const BUILTIN_EMBEDDING_PROTOCOL = 'builtin_embeddings';
|
|
27
|
+
export const BUILTIN_EMBEDDING_ENDPOINT = 'http://127.0.0.1/builtin-embeddings';
|
|
28
|
+
const EMBEDDING_PROTOCOLS = new Set([EMBEDDING_PROTOCOL, BUILTIN_EMBEDDING_PROTOCOL]);
|
|
29
|
+
export const MODEL_BACKEND_PROTOCOLS = Object.freeze(['openai_chat', 'anthropic_messages', 'typesafe_systemone', EMBEDDING_PROTOCOL,
|
|
30
|
+
BUILTIN_EMBEDDING_PROTOCOL]);
|
|
22
31
|
export const OPERATION_PATTERN = /^[a-z][a-z0-9_.-]{0,63}$/;
|
|
23
32
|
|
|
24
33
|
const CONFIG_VERSION = 1;
|
|
@@ -75,6 +84,13 @@ export function connectionIdentity(id, connection) {
|
|
|
75
84
|
return contentHash({ id, protocol: connection.protocol, endpoint: connection.endpoint, model: connection.model });
|
|
76
85
|
}
|
|
77
86
|
|
|
87
|
+
// The whole configuration whose health roles share (rec#122): the connection
|
|
88
|
+
// identity above and its key reference, so a key reference changed in place
|
|
89
|
+
// starts with no record. Health only; the trust gate keeps connectionIdentity.
|
|
90
|
+
export function connectionHealthIdentity(id, connection) {
|
|
91
|
+
return contentHash({ connection: connectionIdentity(id, connection), secretRef: connection.secretRef ?? null });
|
|
92
|
+
}
|
|
93
|
+
|
|
78
94
|
// Validates a whole configuration, throwing a TypeError that names the field.
|
|
79
95
|
// Its result reads back to itself, so it is also what FULI writes.
|
|
80
96
|
export function normalizeConfig(raw) {
|
|
@@ -114,6 +130,10 @@ function normalizeConnection(value, label) {
|
|
|
114
130
|
if (!secretRef && KEYED_PROTOCOLS.has(value.protocol)) {
|
|
115
131
|
throw new TypeError(`${label}.secretRef is required for ${value.protocol}`);
|
|
116
132
|
}
|
|
133
|
+
if (value.protocol === BUILTIN_EMBEDDING_PROTOCOL && (value.endpoint !== BUILTIN_EMBEDDING_ENDPOINT || secretRef
|
|
134
|
+
|| value.headers != null || value.pricing != null)) {
|
|
135
|
+
throw new TypeError(`${label} is a built-in model: its endpoint is ${BUILTIN_EMBEDDING_ENDPOINT} and it takes no key, headers or prices`);
|
|
136
|
+
}
|
|
117
137
|
const reasoningEffort = value.reasoningEffort ?? null;
|
|
118
138
|
if (reasoningEffort !== null && (value.protocol !== 'openai_chat' || !REASONING_EFFORTS.includes(reasoningEffort))) {
|
|
119
139
|
throw new TypeError(`${label}.reasoningEffort is only for openai_chat and must be one of ${REASONING_EFFORTS.join(', ')}`);
|
|
@@ -180,12 +200,12 @@ function normalizeRole(value, label, connections, role) {
|
|
|
180
200
|
if (!Object.hasOwn(connections, connection)) {
|
|
181
201
|
throw new TypeError(`${label}.connection names a missing connection: ${connection}`);
|
|
182
202
|
}
|
|
183
|
-
const embeds = connections[connection].protocol
|
|
203
|
+
const embeds = EMBEDDING_PROTOCOLS.has(connections[connection].protocol);
|
|
184
204
|
if (role === SEMANTIC_ROLE && !embeds) {
|
|
185
|
-
throw new TypeError(`${label}.connection must use ${EMBEDDING_PROTOCOL}: semantic search turns text into vectors and cannot use a chat model`);
|
|
205
|
+
throw new TypeError(`${label}.connection must use ${EMBEDDING_PROTOCOL} or ${BUILTIN_EMBEDDING_PROTOCOL}: semantic search turns text into vectors and cannot use a chat model`);
|
|
186
206
|
}
|
|
187
207
|
if (role !== SEMANTIC_ROLE && embeds) {
|
|
188
|
-
throw new TypeError(`${label}.connection uses ${
|
|
208
|
+
throw new TypeError(`${label}.connection uses ${connections[connection].protocol}, which only semantic search takes; a built-in Agent needs a chat model`);
|
|
189
209
|
}
|
|
190
210
|
const allowedOperations = uniqueTextArray(value.allowedOperations, `${label}.allowedOperations`, MAX_OPERATIONS);
|
|
191
211
|
if (allowedOperations.some(operation => !OPERATION_PATTERN.test(operation))) {
|
|
@@ -9,6 +9,14 @@ export function egressAllowed(request, egress) {
|
|
|
9
9
|
return request.evidence.every(item => item.personalProjectId === null ? egress.allowUnassigned : approved(item.personalProjectId));
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
// The egress question of a role's operation in one scope, before any evidence
|
|
13
|
+
// exists: everything it would send belongs to that scope's project (or to none).
|
|
14
|
+
export function scopeEgress({ role, operation, scope }) {
|
|
15
|
+
const personalProjectId = scope.personalProjectId ?? null;
|
|
16
|
+
return { role, operation, scope: { personalSpaceId: scope.personalSpaceId, personalProjectId },
|
|
17
|
+
evidence: [{ personalProjectId }] };
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
// A role choosing what it may send asks the same question first.
|
|
13
21
|
export function projectApproved(egress, personalSpaceId, personalProjectId) {
|
|
14
22
|
return egress.approvedProjects.some(project =>
|
|
@@ -16,6 +16,14 @@ const MODEL_MISSING_SIGNAL = /model_not_found|model .{0,80}(not found|does not e
|
|
|
16
16
|
const TOO_LARGE_SIGNAL = /max_tokens_exceeded|context[_ -]length|maximum context|too (long|large)|exceeds .{0,40}(limit|context)/i;
|
|
17
17
|
const STRUCTURED_OUTPUT_SIGNAL = /response_format|json_schema|output_config|output_format|structured output/i;
|
|
18
18
|
|
|
19
|
+
// Failures that say only that the connection could not be reached (rec#122).
|
|
20
|
+
// Any newer answer on the same complete connection configuration, from any
|
|
21
|
+
// role, supersedes them. Every other failure is about the role's own call (its
|
|
22
|
+
// output, key use, permission, budget, egress or task) and stays the role's
|
|
23
|
+
// until the role itself answers. A timeout is the role's too: the time limit is
|
|
24
|
+
// the role's own budget, so a long request of one role says nothing of the rest.
|
|
25
|
+
export const CONNECTIVITY_REASONS = Object.freeze(['network']);
|
|
26
|
+
|
|
19
27
|
export function modelFailure(failureClass, reason, { retryAfterMs = null } = {}) {
|
|
20
28
|
return { failureClass, reason, retryAfterMs };
|
|
21
29
|
}
|
|
@@ -4,10 +4,10 @@ import { modelFetch } from './model-fetch.js';
|
|
|
4
4
|
|
|
5
5
|
import { MODEL_ADAPTERS } from './adapters/registry.js';
|
|
6
6
|
import { budgetBlock, callLimits, ceilingCost, estimateCost, estimateTokens, roundCost, windowStart } from './budget.js';
|
|
7
|
-
import { MODEL_BACKEND_ROLES, SEMANTIC_ROLE, configRevision, connectionIdentity } from './config.js';
|
|
7
|
+
import { MODEL_BACKEND_ROLES, SEMANTIC_ROLE, configRevision, connectionHealthIdentity, connectionIdentity } from './config.js';
|
|
8
8
|
import { decisionContract, decisionEnvelope } from './decision-contract.js';
|
|
9
9
|
import { egressAllowed } from './egress.js';
|
|
10
|
-
import { FAILURE_STATUS, isFallbackEligible, modelFailure } from './failures.js';
|
|
10
|
+
import { CONNECTIVITY_REASONS, FAILURE_STATUS, isFallbackEligible, modelFailure } from './failures.js';
|
|
11
11
|
import { decisionPrompt, promptForMode, repairTurns } from './prompt.js';
|
|
12
12
|
import {
|
|
13
13
|
CONNECTION_CHECK, connectionCheckRequest, embeddingCheckRequest, embeddingEgress, parseDecisionRequest, parseEmbeddingRequest,
|
|
@@ -46,8 +46,10 @@ const USAGE_NOTES = 'One record per actual model API attempt; requests count dis
|
|
|
46
46
|
const KEY_REFUSALS = Object.freeze({ secret_store_insecure: 'secret_store_insecure',
|
|
47
47
|
secret_endpoint_mismatch: 'key_endpoint_mismatch', secret_endpoint_unbound: 'key_endpoint_mismatch' });
|
|
48
48
|
|
|
49
|
+
// builtinEmbed({ model, texts, signal }): the local graph service's own model
|
|
50
|
+
// (adapters/builtin-embeddings.js); null where there is none.
|
|
49
51
|
export function createModelBackendPort({ readConfig, secrets, ledger, fetchImpl = modelFetch, wait = delay,
|
|
50
|
-
now = () => new Date(), timeoutSignal = ms => AbortSignal.timeout(ms) }) {
|
|
52
|
+
now = () => new Date(), timeoutSignal = ms => AbortSignal.timeout(ms), builtinEmbed = null }) {
|
|
51
53
|
// Endpoints that rejected json_schema output, for this process.
|
|
52
54
|
const promptOnly = new Set();
|
|
53
55
|
|
|
@@ -68,7 +70,8 @@ export function createModelBackendPort({ readConfig, secrets, ledger, fetchImpl
|
|
|
68
70
|
call.target = { id: call.roleConfig.connection, ...loaded.config.connections[call.roleConfig.connection] };
|
|
69
71
|
const adapter = MODEL_ADAPTERS[call.target.protocol];
|
|
70
72
|
if (!approved.supports(adapter)) return { stop: call.stop('configuration', 'unsupported_output') };
|
|
71
|
-
|
|
73
|
+
// A model on this computer sends nothing out, so no project needs approving for it.
|
|
74
|
+
if (!adapter.local && !approved.egress(call.roleConfig.egress)) return { stop: call.stop('refusal', 'egress_not_approved') };
|
|
72
75
|
if (!call.target.secretRef) return { adapter, secret: null };
|
|
73
76
|
let secret;
|
|
74
77
|
try {
|
|
@@ -113,7 +116,8 @@ export function createModelBackendPort({ readConfig, secrets, ledger, fetchImpl
|
|
|
113
116
|
const pending = {
|
|
114
117
|
requestId: request.requestId, attemptId: randomUUID(), attemptNumber: call.attempts.length + 1, purpose, channel: 'model_api',
|
|
115
118
|
role: request.role, operation: request.operation, personalSpaceId: request.scope.personalSpaceId,
|
|
116
|
-
personalProjectId: request.scope.personalProjectId, connectionId: target.id,
|
|
119
|
+
personalProjectId: request.scope.personalProjectId, connectionId: target.id,
|
|
120
|
+
healthIdentity: connectionHealthIdentity(target.id, target), protocol: target.protocol,
|
|
117
121
|
endpointHost: new URL(target.endpoint).host, endpoint: target.endpoint, requestedModel: target.model, outputMode: call.mode,
|
|
118
122
|
startedAt: attemptStarted.toISOString(), budgetCeilingTokens: inputTokens + maxOutputTokens,
|
|
119
123
|
costCurrency: target.pricing?.currency ?? null
|
|
@@ -255,7 +259,8 @@ export function createModelBackendPort({ readConfig, secrets, ledger, fetchImpl
|
|
|
255
259
|
if (blocked) return stop('budget_exhausted', blocked);
|
|
256
260
|
let result;
|
|
257
261
|
try {
|
|
258
|
-
result = await adapter.embed({ connection: target, secret, texts: request.texts, signal: timeoutSignal(remainingMs), fetchImpl
|
|
262
|
+
result = await adapter.embed({ connection: target, secret, texts: request.texts, signal: timeoutSignal(remainingMs), fetchImpl,
|
|
263
|
+
builtinEmbed });
|
|
259
264
|
} catch (error) {
|
|
260
265
|
ledger.settleUnknown(pending, { durationMs: now().getTime() - attemptStarted.getTime(), failureReason: 'attempt_error' });
|
|
261
266
|
throw error;
|
|
@@ -347,7 +352,15 @@ export function createModelBackendPort({ readConfig, secrets, ledger, fetchImpl
|
|
|
347
352
|
// disabled or no longer allowed the operation allows nothing.
|
|
348
353
|
allowsEgress(request) {
|
|
349
354
|
const settings = this.operationSettings(request.role, request.operation);
|
|
350
|
-
return Boolean(settings) &&
|
|
355
|
+
return Boolean(settings) && sendsAllowed(settings, request);
|
|
356
|
+
},
|
|
357
|
+
// Whether the role's own model, as configured now, would stop this request
|
|
358
|
+
// at egress before any attempt (prepare's egress_not_approved). A role
|
|
359
|
+
// without a model for the operation refuses nothing here: its work goes
|
|
360
|
+
// to the current session.
|
|
361
|
+
refusesEgress(request) {
|
|
362
|
+
const settings = this.operationSettings(request.role, request.operation);
|
|
363
|
+
return Boolean(settings) && !sendsAllowed(settings, request);
|
|
351
364
|
},
|
|
352
365
|
// What Settings shows of the local build behind a role's latest answer
|
|
353
366
|
// on its configured endpoint and model (rec#10 D-32). An observation of
|
|
@@ -355,18 +368,24 @@ export function createModelBackendPort({ readConfig, secrets, ledger, fetchImpl
|
|
|
355
368
|
// receipt, review record or gate. Only a connection on the read path
|
|
356
369
|
// (openai_chat on loopback HTTP /v1) applies. connectionId and
|
|
357
370
|
// connection: the role's configured connection, or null.
|
|
358
|
-
// Whether a role's configured model
|
|
359
|
-
//
|
|
360
|
-
//
|
|
361
|
-
//
|
|
371
|
+
// Whether a role's configured model answers (rec#92): ok, failing or
|
|
372
|
+
// unknown (never called yet), and what that is about (rec#122). A failure
|
|
373
|
+
// of the role's own latest call that is not about connectivity is the
|
|
374
|
+
// role's (scope 'role'); no other role's answer clears it. Otherwise the
|
|
375
|
+
// latest attempt on the whole connection configuration, by any role,
|
|
376
|
+
// that says whether it answers (scope 'connection'): a newer answer
|
|
377
|
+
// supersedes an older network failure, and a newer network failure
|
|
378
|
+
// reaches every role on it. An answer that would not validate still came
|
|
379
|
+
// from a working model, so only a failed call counts as failing.
|
|
362
380
|
health(role, connectionId, connection) {
|
|
363
381
|
if (!connection) return null;
|
|
364
|
-
const
|
|
365
|
-
|
|
366
|
-
if (
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
382
|
+
const identity = connectionHealthIdentity(connectionId, connection);
|
|
383
|
+
const own = ledger.lastAttempt({ healthIdentity: identity, role });
|
|
384
|
+
if (own?.outcome === 'failed' && !CONNECTIVITY_REASONS.includes(own.failureReason)) return failingHealth(own, 'role');
|
|
385
|
+
const shared = ledger.lastAttempt({ healthIdentity: identity, connectivityReasons: CONNECTIVITY_REASONS });
|
|
386
|
+
if (!shared) return { status: 'unknown', at: null, reason: null, scope: null };
|
|
387
|
+
return shared.outcome === 'failed' ? failingHealth(shared, 'connection')
|
|
388
|
+
: { status: 'ok', at: shared.at, reason: null, scope: 'connection' };
|
|
370
389
|
},
|
|
371
390
|
localBuild(role, connectionId, connection) {
|
|
372
391
|
const none = status => ({ status, digest: null, completedAt: null });
|
|
@@ -405,6 +424,16 @@ export function createModelBackendPort({ readConfig, secrets, ledger, fetchImpl
|
|
|
405
424
|
}
|
|
406
425
|
}
|
|
407
426
|
|
|
427
|
+
function failingHealth(attempt, scope) {
|
|
428
|
+
return { status: 'failing', at: attempt.at, reason: attempt.failureReason ?? attempt.failureClass ?? null, scope };
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
// A model on this computer sends nothing out; any other needs the request approved.
|
|
432
|
+
function sendsAllowed(settings, request) {
|
|
433
|
+
return MODEL_ADAPTERS[settings.connection.protocol].local === true
|
|
434
|
+
|| egressAllowed(request.texts ? embeddingEgress(request) : request, settings.egress);
|
|
435
|
+
}
|
|
436
|
+
|
|
408
437
|
function receiptUsage(attempts) {
|
|
409
438
|
if (!attempts.length) return null;
|
|
410
439
|
const sum = field => attempts.some(attempt => attempt.usage[field] !== null)
|
|
@@ -3,6 +3,7 @@ import { existsSync } from 'node:fs';
|
|
|
3
3
|
import { immediateTransaction, openFormattedDatabase, sqliteFormat } from '../../packages/roundtable/src/storage/database-format.js';
|
|
4
4
|
import { ApplicationError } from '../app/application-error.js';
|
|
5
5
|
import { MODEL_BACKEND_ROLES } from './config.js';
|
|
6
|
+
import { scopeEgress } from './egress.js';
|
|
6
7
|
|
|
7
8
|
// Whether a built-in Agent's own model may carry out an operation by itself
|
|
8
9
|
// (rec#10 D-36.5–D-36.12, replacing the D-24 build registry). A role the
|
|
@@ -80,7 +81,8 @@ export function createRoleTrust({ path = ':memory:', modelBackends, history = nu
|
|
|
80
81
|
if (!settings) return refuse('not_configured');
|
|
81
82
|
// Another connection, endpoint, protocol or model than the one that answered.
|
|
82
83
|
if (settings.connection.identity !== key.connection) return refuse('connection_changed');
|
|
83
|
-
|
|
84
|
+
// A review's own request shape: every evidence item belongs to the answer's project (judgment backend).
|
|
85
|
+
if (key.scope && !modelBackends.allowsEgress(scopeEgress(key))) return refuse('egress_not_approved');
|
|
84
86
|
if (current.suggestionsOnly) return refuse('suggestions_only');
|
|
85
87
|
if (!current.warningSeen) return refuse('warning_not_seen');
|
|
86
88
|
return { status: 'passed', reason: null, modelId: key.model };
|
|
@@ -170,11 +172,3 @@ export function createRoleTrust({ path = ':memory:', modelBackends, history = nu
|
|
|
170
172
|
close() { database?.close(); database = null; }
|
|
171
173
|
};
|
|
172
174
|
}
|
|
173
|
-
|
|
174
|
-
// The egress question the port answers for a review's own request shape:
|
|
175
|
-
// every evidence item belongs to the answer's project (judgment backend).
|
|
176
|
-
function egressRequest({ role, operation, scope }) {
|
|
177
|
-
const personalProjectId = scope.personalProjectId ?? null;
|
|
178
|
-
return { role, operation, scope: { personalSpaceId: scope.personalSpaceId, personalProjectId },
|
|
179
|
-
evidence: [{ personalProjectId }] };
|
|
180
|
-
}
|
|
@@ -10,20 +10,13 @@ import { ModelUsageLedger } from './usage-ledger.js';
|
|
|
10
10
|
|
|
11
11
|
// Composition of the model port for one FULI data directory. The config is
|
|
12
12
|
// read on every call, so a saved change applies without a restart.
|
|
13
|
-
//
|
|
14
|
-
export function openModelBackendRuntime(paths) {
|
|
15
|
-
const readConfig = () => readModelBackendConfig(paths.modelBackendConfigPath);
|
|
16
|
-
const secrets = createModelSecretStore({ path: paths.modelSecretStorePath });
|
|
17
|
-
const loaded = readConfig();
|
|
18
|
-
try {
|
|
19
|
-
if (loaded.state === 'ok') secrets.bindLegacyKeys(loaded.config.connections);
|
|
20
|
-
} catch (error) {
|
|
21
|
-
console.warn(`Model keys were not tied to their endpoints: ${error?.message ?? error}`);
|
|
22
|
-
}
|
|
13
|
+
// builtinEmbed reaches the local graph service's own embedding model (port.js).
|
|
14
|
+
export function openModelBackendRuntime(paths, { builtinEmbed = null } = {}) {
|
|
23
15
|
return createModelBackendPort({
|
|
24
|
-
readConfig,
|
|
25
|
-
secrets,
|
|
26
|
-
ledger: new ModelUsageLedger(paths.modelUsageLedgerPath)
|
|
16
|
+
readConfig: () => readModelBackendConfig(paths.modelBackendConfigPath),
|
|
17
|
+
secrets: createModelSecretStore({ path: paths.modelSecretStorePath }),
|
|
18
|
+
ledger: new ModelUsageLedger(paths.modelUsageLedgerPath),
|
|
19
|
+
builtinEmbed
|
|
27
20
|
});
|
|
28
21
|
}
|
|
29
22
|
|
|
@@ -15,10 +15,8 @@ import { createDpapiProtector } from './windows-dpapi.js';
|
|
|
15
15
|
// for, and is read only for that origin (dot review of fuli PR 784): a connection
|
|
16
16
|
// pointed at another host, by a delegated role edit or anything else, cannot
|
|
17
17
|
// take an existing key there. Using it elsewhere means saving it again for
|
|
18
|
-
// the new endpoint.
|
|
19
|
-
//
|
|
20
|
-
// connections naming them use (bindLegacyKeys); a key named by none or by
|
|
21
|
-
// several stays untied and is refused until it is saved again.
|
|
18
|
+
// the new endpoint. A key saved before origins were recorded (before 0.25) is
|
|
19
|
+
// untied and refused until it is saved again.
|
|
22
20
|
|
|
23
21
|
const STORE_VERSION = 1;
|
|
24
22
|
export const MODEL_SECRETS_FORMAT = jsonFormat({ store: 'model-secrets', versions: [STORE_VERSION] });
|
|
@@ -134,22 +132,6 @@ export function createModelSecretStore({
|
|
|
134
132
|
throw new ModelSecretError('secret_unreadable',
|
|
135
133
|
`The key for ${ref} could not be decrypted. Save it again on the model page or with: fuli models set-key ${ref} --endpoint <its endpoint>`);
|
|
136
134
|
}
|
|
137
|
-
},
|
|
138
|
-
// Once per store: ties each key saved before origins were recorded to the one origin of the
|
|
139
|
-
// configured connections that name it. Compatible with stores written before 0.25; it can go
|
|
140
|
-
// once no supported release writes untied keys and their owners have saved them again.
|
|
141
|
-
bindLegacyKeys(connections) {
|
|
142
|
-
if (fileMode(path) === null) return;
|
|
143
|
-
assertPrivate();
|
|
144
|
-
const current = stored();
|
|
145
|
-
if (current.legacyKeysBound) return;
|
|
146
|
-
const secrets = Object.fromEntries(Object.entries(current.secrets).map(([ref, record]) => {
|
|
147
|
-
if (record.endpoint) return [ref, record];
|
|
148
|
-
const origins = new Set(Object.values(connections).filter(connection => connection.secretRef === ref)
|
|
149
|
-
.map(connection => keyOrigin(connection.endpoint)));
|
|
150
|
-
return [ref, origins.size === 1 ? { ...record, endpoint: [...origins][0] } : record];
|
|
151
|
-
}));
|
|
152
|
-
write({ ...current, secrets, legacyKeysBound: true });
|
|
153
135
|
}
|
|
154
136
|
};
|
|
155
137
|
}
|
|
@@ -61,6 +61,12 @@ export const MODEL_USAGE_FORMAT = sqliteFormat({
|
|
|
61
61
|
id: 'model-usage/2-local-build-observation', to: 2, kind: 'add-columns', table: 'model_attempts',
|
|
62
62
|
summary: 'the configured endpoint of each attempt and the local model build listed after a valid answer',
|
|
63
63
|
columns: { endpoint: 'TEXT', observed_tag_digest: 'TEXT' }
|
|
64
|
+
}, {
|
|
65
|
+
// Earlier attempts keep it NULL: which key reference they used is not
|
|
66
|
+
// known, so they never count for a connection's health again.
|
|
67
|
+
id: 'model-usage/3-health-identity', to: 3, kind: 'add-columns', table: 'model_attempts',
|
|
68
|
+
summary: 'the health identity (connection and key reference) of the configuration each attempt used (rec#122)',
|
|
69
|
+
columns: { health_identity: 'TEXT' }
|
|
64
70
|
}]
|
|
65
71
|
});
|
|
66
72
|
|
|
@@ -79,7 +85,7 @@ export class ModelUsageLedger {
|
|
|
79
85
|
// True when stored, false when this (requestId, attemptId) already exists.
|
|
80
86
|
record(attempt) {
|
|
81
87
|
const { usage } = attempt;
|
|
82
|
-
const result = this.db.prepare(`INSERT INTO model_attempts VALUES(${Array(
|
|
88
|
+
const result = this.db.prepare(`INSERT INTO model_attempts VALUES(${Array(33).fill('?').join(',')})
|
|
83
89
|
ON CONFLICT(request_id, attempt_id) DO NOTHING`).run(
|
|
84
90
|
attempt.requestId, attempt.attemptId, attempt.attemptNumber, attempt.purpose, attempt.channel,
|
|
85
91
|
attempt.role, attempt.operation, attempt.personalSpaceId, attempt.personalProjectId,
|
|
@@ -87,7 +93,7 @@ export class ModelUsageLedger {
|
|
|
87
93
|
attempt.outputMode, attempt.startedAt, attempt.durationMs, attempt.outcome, attempt.failureClass, attempt.failureReason,
|
|
88
94
|
usage.inputTokens, usage.outputTokens, usage.totalTokens, usage.cachedInputTokens, usage.cacheWriteInputTokens,
|
|
89
95
|
usage.reasoningTokens, usage.definition, attempt.budgetCeilingTokens, attempt.estimatedCost, attempt.costCurrency,
|
|
90
|
-
attempt.endpoint ?? null, attempt.observedTagDigest ?? null);
|
|
96
|
+
attempt.endpoint ?? null, attempt.observedTagDigest ?? null, attempt.healthIdentity ?? null);
|
|
91
97
|
return result.changes === 1;
|
|
92
98
|
}
|
|
93
99
|
|
|
@@ -198,15 +204,20 @@ export class ModelUsageLedger {
|
|
|
198
204
|
completedAt: new Date(Date.parse(row.started_at) + row.duration_ms).toISOString() } : null;
|
|
199
205
|
}
|
|
200
206
|
|
|
201
|
-
// The latest
|
|
202
|
-
//
|
|
203
|
-
// or null when there is none (rec#92: the top bar turns
|
|
204
|
-
// configured model fails).
|
|
205
|
-
|
|
207
|
+
// The latest model API attempt on one connection configuration (config.js
|
|
208
|
+
// connectionHealthIdentity), whatever its outcome: { outcome, failureClass,
|
|
209
|
+
// failureReason, at }, or null when there is none (rec#92: the top bar turns
|
|
210
|
+
// red while the configured model fails). With role, only that role's
|
|
211
|
+
// attempts. With connectivityReasons and no role, the latest attempt of any
|
|
212
|
+
// role that says whether the connection answers (rec#122): an answer, valid
|
|
213
|
+
// or not, or a failure for one of those reasons.
|
|
214
|
+
lastAttempt({ healthIdentity, role = null, connectivityReasons = null }) {
|
|
215
|
+
const reasons = connectivityReasons ? JSON.stringify(connectivityReasons) : null;
|
|
206
216
|
const row = this.db.prepare(`SELECT outcome, failure_class, failure_reason, started_at, duration_ms FROM model_attempts
|
|
207
|
-
WHERE
|
|
217
|
+
WHERE channel = 'model_api' AND health_identity = ?1 AND (?2 IS NULL OR role = ?2)
|
|
218
|
+
AND (?3 IS NULL OR outcome != 'failed' OR failure_reason IN (SELECT value FROM json_each(?3)))
|
|
208
219
|
ORDER BY julianday(started_at) * 86400000 + duration_ms DESC, rowid DESC LIMIT 1`)
|
|
209
|
-
.get(
|
|
220
|
+
.get(healthIdentity, role, reasons);
|
|
210
221
|
return row ? { outcome: row.outcome, failureClass: row.failure_class, failureReason: row.failure_reason,
|
|
211
222
|
at: new Date(Date.parse(row.started_at) + row.duration_ms).toISOString() } : null;
|
|
212
223
|
}
|
|
@@ -44,6 +44,7 @@ import { isProcessAlive } from '../local-runtime/processes.js';
|
|
|
44
44
|
import { diagnosticEventLog } from '../diagnostics/event-log.js';
|
|
45
45
|
import { errorCode } from '../diagnostics/safe-event.js';
|
|
46
46
|
import { parseProviderEnv } from '../setup/provider-env.js';
|
|
47
|
+
import { embeddingModelsDirectory } from '../embedding-models/store.js';
|
|
47
48
|
import { nativeInstanceLogPaths } from '../setup/paths.js';
|
|
48
49
|
import { providerServerArguments } from './provider-arguments.js';
|
|
49
50
|
|
|
@@ -296,7 +297,9 @@ export function createNativeGraphServices({
|
|
|
296
297
|
FULI_NEO4J_URI: `bolt://127.0.0.1:${spec.boltPort}`,
|
|
297
298
|
FULI_NEO4J_USER: 'neo4j',
|
|
298
299
|
FULI_NEO4J_PASSWORD: spec.password,
|
|
299
|
-
FULI_EMBEDDING_DIM: '384'
|
|
300
|
+
FULI_EMBEDDING_DIM: '384',
|
|
301
|
+
// Where a person's downloaded embedding models are (src/embedding-models).
|
|
302
|
+
...(paths.dataDir ? { FULI_EMBEDDING_MODELS_DIR: embeddingModelsDirectory(paths.dataDir) } : {})
|
|
300
303
|
}
|
|
301
304
|
};
|
|
302
305
|
}
|
|
@@ -857,6 +860,11 @@ function withoutStarted(entries, started) {
|
|
|
857
860
|
|
|
858
861
|
// A lower version is refused unless the person asked for it explicitly, for
|
|
859
862
|
// example when moving from a local rc build to a public beta of the same release.
|
|
863
|
+
// The message starts with the code and both versions: it crosses a process
|
|
864
|
+
// boundary as text, and the desktop client reads them from it
|
|
865
|
+
// (desktop/flutter/lib/src/runtime/provider_conflict.dart).
|
|
866
|
+
export const PROVIDER_DOWNGRADE_REFUSED = 'provider_downgrade_refused';
|
|
867
|
+
|
|
860
868
|
function assertProviderUpgrade(installed, requested, allowDowngrade = false) {
|
|
861
869
|
if (allowDowngrade) return;
|
|
862
870
|
let comparison;
|
|
@@ -864,7 +872,10 @@ function assertProviderUpgrade(installed, requested, allowDowngrade = false) {
|
|
|
864
872
|
// SemVer ignores build metadata; Fuli's native revision orders runtime repairs.
|
|
865
873
|
const revision = value => BigInt(/\+native\.(\d+)$/.exec(value)?.[1] ?? '0');
|
|
866
874
|
if (comparison > 0 || (comparison === 0 && revision(installed) > revision(requested))) {
|
|
867
|
-
throw new Error(
|
|
875
|
+
throw Object.assign(new Error(`${PROVIDER_DOWNGRADE_REFUSED} installed=${installed} required=${requested}: `
|
|
876
|
+
+ `A newer native Graph Provider (${installed}) is already installed; this Fuli package brings ${requested}. `
|
|
877
|
+
+ 'Refusing an implicit downgrade: use the matching or newer Fuli package, or back up the data folder and run setup with --allow-provider-downgrade.'),
|
|
878
|
+
{ code: PROVIDER_DOWNGRADE_REFUSED, installedProviderVersion: installed, requiredProviderVersion: requested });
|
|
868
879
|
}
|
|
869
880
|
}
|
|
870
881
|
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
// and writes its digest here before publishing (scripts/pin-win-helper.js); a
|
|
4
4
|
// source checkout has no helper and no pin, so Windows Hello is unavailable there.
|
|
5
5
|
// The helper is not Authenticode-signed: this digest is its only integrity check.
|
|
6
|
-
export const WIN_HELPER_SHA256 = '
|
|
6
|
+
export const WIN_HELPER_SHA256 = 'f921877349df39149ff254c2dd1b60e379cc178c7b932d52bfb8b1c8c4771e25';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { ApplicationError, InvalidInputError } from '../app/application-error.js';
|
|
2
|
+
import { modelTier, tierAdvice } from './model-tiers.js';
|
|
3
|
+
import { CONSENT_SOURCES } from './port.js';
|
|
4
|
+
|
|
5
|
+
// The organize_project Agent tool (rec#114): read how well the project is
|
|
6
|
+
// known and what earlier runs did, or record what this run settled. The
|
|
7
|
+
// project is the task's own, so an Agent never names one. How to do the work
|
|
8
|
+
// is in skills/operating-fuli (Organising a project). Its preferences action
|
|
9
|
+
// (rec#121) reads the person's preferences instead and needs no project.
|
|
10
|
+
|
|
11
|
+
const GUIDANCE = 'Follow skills/operating-fuli (Organising a project). Work by yourself; do not interview the person. '
|
|
12
|
+
+ 'Material the person named (a folder, documents, links, another knowledge base) is read with your own tools and recorded as named_material. '
|
|
13
|
+
+ `Ask once before reading ${CONSENT_SOURCES.join(', ')} and record the answer in sources (read or declined). `
|
|
14
|
+
+ 'Save what you add as pending knowledge with checkpoint_task_knowledge. What you are unsure of goes in one short list '
|
|
15
|
+
+ 'at the end, each answerable 是 / 否 / 其他; the person may skip it. End with update: the areas settled and run with your counts.';
|
|
16
|
+
// With repeated_preference_check: a preference this project shares with another is asked about once, on that list.
|
|
17
|
+
const REPEATED_GUIDANCE = ' Run repeated_preference_check once with the subject of this project\'s preferences as query; '
|
|
18
|
+
+ 'each candidate found is one line on that list: 「偏好 X 在项目 A、B 里都有,升级成全局吗?」.';
|
|
19
|
+
// 「整理我的偏好」 (rec#121): the person's preferences, whatever folder the session is in.
|
|
20
|
+
const PREFERENCES_GUIDANCE = 'Follow skills/operating-fuli (Organising preferences). Read every page (offset: next_offset, until none) before proposing. '
|
|
21
|
+
+ 'duplicates (first page only) are copies FULI\'s duplicate rules call one; keep is the copy that stays. Propose in one list: copies to retire, '
|
|
22
|
+
+ 'preferences to move between global and a project, stale or contradicting ones to retire, pending ones to confirm. '
|
|
23
|
+
+ 'Change only what the person says yes to in this chat: retire or reword with revise_personal_knowledge '
|
|
24
|
+
+ '(invalidate, then link_replacement to the kept copy; mark_outdated; update). Confirming and moving scope are the person\'s '
|
|
25
|
+
+ 'decisions: relay their words with run_delegated_action (POST /api/knowledge/batch-confirmation, '
|
|
26
|
+
+ 'POST /api/knowledge/:itemKind/:itemId/preference-scope). Permanent deletion stays in the console.';
|
|
27
|
+
const PREFERENCES_REPEATED_GUIDANCE = ' For a subject listed in several projects, run repeated_preference_check with it as query.';
|
|
28
|
+
// The tool takes at most this many projects.
|
|
29
|
+
const MAX_CHECKED_PROJECTS = 32;
|
|
30
|
+
|
|
31
|
+
// The read call that finds preferences shared across the person's projects
|
|
32
|
+
// (this project and the others, when one is given); null with fewer than two
|
|
33
|
+
// projects, or when the projects cannot be listed.
|
|
34
|
+
async function repeatedPreferenceCheck(application, spaceId, projectId = null) {
|
|
35
|
+
let projects;
|
|
36
|
+
try {
|
|
37
|
+
projects = await application.personal.listPersonalProjects(spaceId);
|
|
38
|
+
} catch {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
const others = projects.map(project => project.project_id).filter(id => id && id !== projectId);
|
|
42
|
+
const checked = [projectId, ...others].filter(Boolean).slice(0, MAX_CHECKED_PROJECTS);
|
|
43
|
+
if (checked.length < 2) return null;
|
|
44
|
+
return { tool: 'discover_personal_global_preference_candidates',
|
|
45
|
+
arguments: { personalSpaceId: spaceId, personalProjectIds: checked } };
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// A page of the person's preferences; the first page (the only one with the copies
|
|
49
|
+
// the duplicate rules call one) also says how to apply what the person approves.
|
|
50
|
+
async function organizePreferences(application, offset = 0) {
|
|
51
|
+
if (!Number.isInteger(offset) || offset < 0) {
|
|
52
|
+
throw new InvalidInputError('offset is a whole number of 0 or more: pass the next_offset of the page before');
|
|
53
|
+
}
|
|
54
|
+
const spaceId = application.config.personal.spaceId;
|
|
55
|
+
const page = await application.personal.readPreferenceOrganizing({ personalSpaceId: spaceId, offset });
|
|
56
|
+
if (offset) return page;
|
|
57
|
+
const check = await repeatedPreferenceCheck(application, spaceId);
|
|
58
|
+
return { ...page, guidance: PREFERENCES_GUIDANCE + (check ? PREFERENCES_REPEATED_GUIDANCE : ''),
|
|
59
|
+
...(check ? { repeated_preference_check: check } : {}) };
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export async function organizeProject(application, input = {}) {
|
|
63
|
+
if (input.action === 'preferences') return organizePreferences(application, input.offset);
|
|
64
|
+
if (!application.projectOrganizing) {
|
|
65
|
+
throw new ApplicationError('project_organizing_unavailable', 'Organising a project needs a local FULI installation');
|
|
66
|
+
}
|
|
67
|
+
const task = await application.taskContextRegistry.context(input.taskContextToken, input.sourceApplication);
|
|
68
|
+
if (!task?.personalProjectId) {
|
|
69
|
+
throw new ApplicationError('project_unresolved', 'This task belongs to no project; run it from the project folder.', { status: 409 });
|
|
70
|
+
}
|
|
71
|
+
// A sentence started from the console names its project. A session opened in another
|
|
72
|
+
// project's folder must not organise that one under this name.
|
|
73
|
+
if (input.personalProjectId && input.personalProjectId !== task.personalProjectId) {
|
|
74
|
+
throw new ApplicationError('project_mismatch',
|
|
75
|
+
`This session works in project ${task.personalProjectId}, not ${input.personalProjectId}. Open the AI client in that project's folder and say it again.`,
|
|
76
|
+
{ status: 409 });
|
|
77
|
+
}
|
|
78
|
+
const spaceId = application.config.personal.spaceId;
|
|
79
|
+
const updating = input.action === 'update';
|
|
80
|
+
const state = updating
|
|
81
|
+
? application.projectOrganizing.update(spaceId, task.personalProjectId, { areas: input.areas, sources: input.sources, run: input.run })
|
|
82
|
+
: application.projectOrganizing.view(spaceId, task.personalProjectId);
|
|
83
|
+
// The area names come with a read; an update answers ids and states only.
|
|
84
|
+
const areas = state.areas.map(({ id, zh, status, note }) => ({ id, ...(updating ? {} : { name: zh }), status, ...(note ? { note } : {}) }));
|
|
85
|
+
const tier = modelTier(input.model);
|
|
86
|
+
const check = updating || !application.personal?.listPersonalProjects ? null
|
|
87
|
+
: await repeatedPreferenceCheck(application, spaceId, task.personalProjectId);
|
|
88
|
+
return { personal_project_id: task.personalProjectId, first_run: state.runs.length === 0, areas, sources: state.sources,
|
|
89
|
+
progress: state.progress, open: state.open, last_run: state.runs[0] ?? null,
|
|
90
|
+
...(updating ? {} : { model: { tier, advice: tierAdvice(tier) }, guidance: GUIDANCE + (check ? REPEATED_GUIDANCE : ''),
|
|
91
|
+
...(check ? { repeated_preference_check: check } : {}) }) };
|
|
92
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// How strong a model is for organising knowledge, told from its name. The
|
|
2
|
+
// work is judgement (what repeats, what is stale, what contradicts), so a
|
|
3
|
+
// stronger model does it better; a weak one should only copy what files say.
|
|
4
|
+
//
|
|
5
|
+
// Only families whose tier is not in doubt are listed. A name that matches
|
|
6
|
+
// none is `unknown`: FULI says so and advises the strongest model at hand,
|
|
7
|
+
// instead of guessing.
|
|
8
|
+
|
|
9
|
+
// Checked in order: a small variant of a strong family is weak.
|
|
10
|
+
const TIERS = Object.freeze([
|
|
11
|
+
{ tier: 'weak', pattern: /haiku|mini|nano|lite|small|tiny|flash|:\d(\.\d+)?b\b|-\d(\.\d+)?b\b/i },
|
|
12
|
+
{ tier: 'strong', pattern: /opus|fable|mythos/i },
|
|
13
|
+
{ tier: 'medium', pattern: /sonnet/i }
|
|
14
|
+
]);
|
|
15
|
+
|
|
16
|
+
export const MODEL_TIERS = Object.freeze(['strong', 'medium', 'weak', 'unknown']);
|
|
17
|
+
|
|
18
|
+
export function modelTier(model) {
|
|
19
|
+
if (typeof model !== 'string' || !model.trim()) return 'unknown';
|
|
20
|
+
return TIERS.find(({ pattern }) => pattern.test(model))?.tier ?? 'unknown';
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// What to tell the person before a run, for the Agent to pass on in their language.
|
|
24
|
+
const ADVICE = Object.freeze({
|
|
25
|
+
strong: 'This model is strong: it can do the whole job (fill, merge, mark stale, tidy).',
|
|
26
|
+
medium: 'This model is mid-range: it can do the whole job; a stronger model judges merges and contradictions better.',
|
|
27
|
+
weak: 'This model is small: copy what files and records say, and do not merge or judge what is stale. Tell the person a stronger model organises better.',
|
|
28
|
+
unknown: 'FULI does not know this model\'s strength. Organising is judgement, so tell the person the strongest model they have does it best.'
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export const tierAdvice = tier => ADVICE[tier] ?? ADVICE.unknown;
|