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,162 @@
|
|
|
1
|
+
"""The person's current preferences, read for an AI that tidies them with the
|
|
2
|
+
person (rec#121): a page of them, compact, and on the first page the copies
|
|
3
|
+
the duplicate pair rules (knowledge_duplicate_rules, through
|
|
4
|
+
knowledge_duplicates.duplicate_pairs) call one. Preferences are never merged
|
|
5
|
+
automatically (their own conflict review), so here a duplicate is only a
|
|
6
|
+
proposal: the AI asks the person and applies a yes with the existing
|
|
7
|
+
knowledge tools. Copies are compared within one aspect and one scope, and a
|
|
8
|
+
relationship also within one relation type and the same two endpoints, as the
|
|
9
|
+
periodic merge compares them; a preference repeated across projects is the
|
|
10
|
+
global-candidate check's (personal_global_preferences). Read only, and as an
|
|
11
|
+
Agent reads: another FLA's own preferences stay hidden (knowledge_visibility).
|
|
12
|
+
"""
|
|
13
|
+
from typing import Literal
|
|
14
|
+
|
|
15
|
+
from fastapi import HTTPException
|
|
16
|
+
from pydantic import Field
|
|
17
|
+
|
|
18
|
+
from .knowledge_audit_models import KnowledgeItemKind
|
|
19
|
+
from .knowledge_duplicates import duplicate_item_fields, duplicate_pairs
|
|
20
|
+
from .knowledge_semantic import item_text
|
|
21
|
+
from .knowledge_visibility import fla_relationship_visible_cypher, fla_visible_cypher, knowledge_reader, \
|
|
22
|
+
reader_parameter
|
|
23
|
+
from .model_base import StrictModel
|
|
24
|
+
|
|
25
|
+
# A preference is one sentence or two; a longer text is cut, its id reads the rest.
|
|
26
|
+
TEXT_CHARS = 300
|
|
27
|
+
MAX_DUPLICATE_GROUPS = 100
|
|
28
|
+
|
|
29
|
+
_PLACE = '''item.fuli_profile_aspect AS aspect, coalesce(item.fuli_preference_scope, 'global') AS scope,
|
|
30
|
+
item.fuli_preference_project_id AS project_id, coalesce(item.fuli_preference_project_ids, []) AS project_ids,
|
|
31
|
+
item.fuli_preference_agent_id AS agent_id'''
|
|
32
|
+
_SCANS = {
|
|
33
|
+
'entity': f'''
|
|
34
|
+
MATCH (item:Entity {{group_id: $group_id}})
|
|
35
|
+
WHERE item.fuli_invalid_at IS NULL AND item.fuli_profile_aspect IS NOT NULL
|
|
36
|
+
AND {fla_visible_cypher('item', 'entity')}
|
|
37
|
+
OPTIONAL MATCH (episode:Episodic {{group_id: $group_id}})-[:MENTIONS]->(item)
|
|
38
|
+
WITH item, max(episode.created_at) AS said_at
|
|
39
|
+
RETURN item {duplicate_item_fields('item', 'said_at')} AS item, {_PLACE}''',
|
|
40
|
+
# Retired ones too: their endpoints are preference subjects all the same.
|
|
41
|
+
'relationship': f'''
|
|
42
|
+
MATCH (source:Entity {{group_id: $group_id}})-[item:RELATES_TO {{group_id: $group_id}}]->(target:Entity)
|
|
43
|
+
WHERE item.fuli_profile_aspect IS NOT NULL
|
|
44
|
+
AND {fla_relationship_visible_cypher('item', 'source', 'target')}
|
|
45
|
+
RETURN item {duplicate_item_fields('item')} AS item, item.invalid_at IS NULL AS current, item.name AS relation,
|
|
46
|
+
source.uuid AS source_id, target.uuid AS target_id, {_PLACE}''',
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class PreferenceOrganizingRead(StrictModel):
|
|
51
|
+
personal_space_id: str = Field(min_length=1, max_length=128)
|
|
52
|
+
offset: int = Field(default=0, ge=0)
|
|
53
|
+
limit: int = Field(default=50, ge=1, le=100)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class OrganizingPreference(StrictModel):
|
|
57
|
+
item_kind: KnowledgeItemKind
|
|
58
|
+
item_id: str
|
|
59
|
+
aspect: str
|
|
60
|
+
scope: str
|
|
61
|
+
project_id: str | None = None
|
|
62
|
+
status: str
|
|
63
|
+
text: str
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class DuplicateCopy(StrictModel):
|
|
67
|
+
item_id: str
|
|
68
|
+
rule: Literal['same_text', 'covers', 'same_meaning']
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class PreferenceDuplicateGroup(StrictModel):
|
|
72
|
+
item_kind: KnowledgeItemKind
|
|
73
|
+
keep: str
|
|
74
|
+
same: list[DuplicateCopy]
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
class PreferenceOrganizingPage(StrictModel):
|
|
78
|
+
"""Empty fields are left out of the answer: no next_offset on the last
|
|
79
|
+
page, no duplicates after the first."""
|
|
80
|
+
total: int
|
|
81
|
+
pending: int
|
|
82
|
+
preferences: list[OrganizingPreference]
|
|
83
|
+
next_offset: int | None = None
|
|
84
|
+
duplicates: list[PreferenceDuplicateGroup] | None = None
|
|
85
|
+
duplicates_truncated: bool | None = None
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
async def read_preference_organizing(store, actor, request: PreferenceOrganizingRead) -> PreferenceOrganizingPage:
|
|
89
|
+
store._require_personal()
|
|
90
|
+
space = await store.authorize(actor, request.personal_space_id, 'reader')
|
|
91
|
+
if space['kind'] != 'personal':
|
|
92
|
+
raise HTTPException(status_code=422, detail='preference organising is personal-only')
|
|
93
|
+
reader = await knowledge_reader(store, actor, space, personal_project_id=None, project_agent_id=None)
|
|
94
|
+
scanned = {}
|
|
95
|
+
for item_kind, scan in _SCANS.items():
|
|
96
|
+
records, _, _ = await store.runtime.driver.execute_query(
|
|
97
|
+
'// preference organising: scan\n' + scan, group_id=space['group_id'],
|
|
98
|
+
reader=reader_parameter(reader), routing_='r')
|
|
99
|
+
scanned[item_kind] = [dict(record) for record in records]
|
|
100
|
+
# As the console lists them: an entity a preference relationship this reader
|
|
101
|
+
# sees hangs on (current or retired) is that preference's subject, not one of its own.
|
|
102
|
+
subjects = {record[end] for record in scanned['relationship'] for end in ('source_id', 'target_id')}
|
|
103
|
+
current = {'entity': [record for record in scanned['entity'] if record['item']['item_id'] not in subjects],
|
|
104
|
+
'relationship': [record for record in scanned['relationship'] if record['current']]}
|
|
105
|
+
preferences = sorted((_preference(item_kind, record) for item_kind, records in current.items() for record in records),
|
|
106
|
+
key=lambda item: (item.scope != 'global', item.project_id or '', item.aspect, item.text))
|
|
107
|
+
end = request.offset + request.limit
|
|
108
|
+
page = PreferenceOrganizingPage(
|
|
109
|
+
total=len(preferences), pending=sum(item.status == 'pending' for item in preferences),
|
|
110
|
+
preferences=preferences[request.offset:end], next_offset=end if end < len(preferences) else None)
|
|
111
|
+
if request.offset:
|
|
112
|
+
return page
|
|
113
|
+
groups = []
|
|
114
|
+
for item_kind, records in current.items():
|
|
115
|
+
pairs = await duplicate_pairs(store, space, item_kind, [_comparable(item_kind, record) for record in records])
|
|
116
|
+
groups += _duplicate_groups(item_kind, pairs)
|
|
117
|
+
page.duplicates = groups[:MAX_DUPLICATE_GROUPS]
|
|
118
|
+
page.duplicates_truncated = len(groups) > MAX_DUPLICATE_GROUPS
|
|
119
|
+
return page
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
def _duplicate_groups(item_kind: str, pairs) -> list[PreferenceDuplicateGroup]:
|
|
123
|
+
"""The pairs as groups around the copy that stays: a copy kept in one pair
|
|
124
|
+
and dropped in a later one joins the group of the copy that finally stays."""
|
|
125
|
+
kept_by = {merge.drop['item_id']: (merge.keep['item_id'], merge.rule) for merge in pairs}
|
|
126
|
+
|
|
127
|
+
def stays(item_id):
|
|
128
|
+
while item_id in kept_by:
|
|
129
|
+
item_id = kept_by[item_id][0]
|
|
130
|
+
return item_id
|
|
131
|
+
|
|
132
|
+
groups = {}
|
|
133
|
+
for drop_id, (_, rule) in kept_by.items():
|
|
134
|
+
groups.setdefault(stays(drop_id), []).append(DuplicateCopy(item_id=drop_id, rule=rule))
|
|
135
|
+
return [PreferenceDuplicateGroup(item_kind=item_kind, keep=keep, same=same) for keep, same in groups.items()]
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
def _comparable(item_kind: str, record: dict) -> dict:
|
|
139
|
+
"""Two preferences are compared only within one aspect and one scope; two
|
|
140
|
+
relationships also only with one relation type between the same two
|
|
141
|
+
entities, as the periodic merge compares them."""
|
|
142
|
+
place = [record['scope'], record['project_id'] or '', ','.join(sorted(record['project_ids'])), record['agent_id'] or '']
|
|
143
|
+
if item_kind == 'relationship':
|
|
144
|
+
return {'item': record['item'], 'kind_key': (record['aspect'], record['relation']),
|
|
145
|
+
'places': [[*place, record['source_id'], record['target_id']]]}
|
|
146
|
+
return {'item': record['item'], 'kind_key': record['aspect'], 'places': [place]}
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
def _preference(item_kind: str, record: dict) -> OrganizingPreference:
|
|
150
|
+
item = record['item']
|
|
151
|
+
text = item_text(item_kind, item)
|
|
152
|
+
return OrganizingPreference(
|
|
153
|
+
item_kind=item_kind, item_id=item['item_id'], aspect=record['aspect'], scope=record['scope'],
|
|
154
|
+
project_id=record['project_id'], status=item['confirmation_status'],
|
|
155
|
+
text=text if len(text) <= TEXT_CHARS else text[:TEXT_CHARS - 1] + '…')
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
def register_preference_organizing_routes(application, store, Actor) -> None:
|
|
159
|
+
@application.post('/v1/knowledge/preferences/organizing', response_model=PreferenceOrganizingPage,
|
|
160
|
+
response_model_exclude_none=True)
|
|
161
|
+
async def preference_organizing(request: PreferenceOrganizingRead, actor: Actor):
|
|
162
|
+
return await read_preference_organizing(store, actor, request)
|
|
@@ -152,7 +152,12 @@ class StoreAgentDelegations:
|
|
|
152
152
|
lead = policy.team_lead_agent_id
|
|
153
153
|
sender = context.get('project_agent_id')
|
|
154
154
|
target_project_id = request.target_personal_project_id or project_id
|
|
155
|
-
|
|
155
|
+
# The same FLA in another of its sessions is another instance of it
|
|
156
|
+
# (rec#109): it needs no reporting line, but never its own session.
|
|
157
|
+
same_agent = sender is not None and sender == request.agent_id
|
|
158
|
+
if same_agent and request.target_session_id and request.target_session_id == context.get('session_id'):
|
|
159
|
+
raise HTTPException(403, 'An Agent cannot wake the session it is working in')
|
|
160
|
+
if target_project_id == project_id and not same_agent and not direct_reporting_link(policy, sender, request.agent_id):
|
|
156
161
|
raise HTTPException(403, 'Communicate only with the immediate reporting lead or direct reports')
|
|
157
162
|
sender_profile_updated_at = None
|
|
158
163
|
if getattr(policy, 'sub_teams', []):
|
|
@@ -377,32 +377,6 @@ class ProjectAgentExecutorRoutingRuleUpdate(StrictModel):
|
|
|
377
377
|
return self
|
|
378
378
|
|
|
379
379
|
|
|
380
|
-
class ProjectAgentExecutorSelectionRequest(StrictModel):
|
|
381
|
-
personal_space_id: str = Field(min_length=1, max_length=128)
|
|
382
|
-
personal_project_id: str = Field(min_length=1, max_length=128)
|
|
383
|
-
task_id: str = Field(min_length=1, max_length=128)
|
|
384
|
-
agent_id: str = Field(min_length=1, max_length=128)
|
|
385
|
-
work_kind: str = Field(min_length=1, max_length=128)
|
|
386
|
-
required_capabilities: list[str] = Field(default_factory=list, max_length=32)
|
|
387
|
-
model_strategy: ProjectAgentModelStrategy = Field(
|
|
388
|
-
default_factory=ProjectAgentModelStrategy
|
|
389
|
-
)
|
|
390
|
-
executor_policy: ProjectAgentExecutorPolicy | None = None
|
|
391
|
-
idempotency_key: str = Field(min_length=8, max_length=256)
|
|
392
|
-
source_application: SourceApplication | None = None
|
|
393
|
-
source_session_id: str | None = Field(default=None, min_length=1, max_length=256)
|
|
394
|
-
|
|
395
|
-
@field_validator('required_capabilities')
|
|
396
|
-
@classmethod
|
|
397
|
-
def validate_capabilities(cls, value: list[str]) -> list[str]:
|
|
398
|
-
return unique_text_list(value, 'required executor capabilities')
|
|
399
|
-
|
|
400
|
-
@model_validator(mode='after')
|
|
401
|
-
def reject_sensitive_values(self):
|
|
402
|
-
reject_credentials(self, 'executor selection request')
|
|
403
|
-
return self
|
|
404
|
-
|
|
405
|
-
|
|
406
380
|
class ProjectAgentExecutorSelection(StrictModel):
|
|
407
381
|
selection_id: str
|
|
408
382
|
task_id: str
|
|
@@ -51,13 +51,12 @@ from .project_agent_coordination_models import (
|
|
|
51
51
|
from .project_agent_task_models import (
|
|
52
52
|
ProjectAgentActivityResult,
|
|
53
53
|
ProjectAgentRecruitmentDecision,
|
|
54
|
-
ProjectAgentRecruitmentPolicyRecord,
|
|
55
|
-
ProjectAgentRecruitmentPolicyUpdate,
|
|
56
54
|
ProjectAgentRecruitmentRecord,
|
|
57
55
|
ProjectAgentTaskActivityCreate,
|
|
58
56
|
ProjectAgentTaskBlockerClear,
|
|
59
57
|
ProjectAgentTaskBlockerClearResult,
|
|
60
58
|
ProjectAgentTaskBlockerPersonClear,
|
|
59
|
+
ProjectAgentTaskPersonClose,
|
|
61
60
|
ProjectAgentTaskBlockerProgress,
|
|
62
61
|
ProjectAgentTaskBlockerProgressResult,
|
|
63
62
|
ProjectAgentTaskRecord,
|
|
@@ -293,7 +292,12 @@ def register_project_agent_routes(
|
|
|
293
292
|
] = None,
|
|
294
293
|
status: Annotated[str | None, Query()] = None,
|
|
295
294
|
limit: Annotated[int, Query(ge=1, le=200)] = 100,
|
|
295
|
+
# The last task a caller already listed: its updated_at and task_id.
|
|
296
|
+
after_updated_at: datetime | None = None,
|
|
297
|
+
after_task_id: Annotated[str | None, Query(min_length=1, max_length=128)] = None,
|
|
296
298
|
) -> list[ProjectAgentTaskRecord]:
|
|
299
|
+
if (after_updated_at is None) != (after_task_id is None):
|
|
300
|
+
raise HTTPException(422, 'after_updated_at and after_task_id go together')
|
|
297
301
|
return await store.list_project_agent_tasks(
|
|
298
302
|
actor,
|
|
299
303
|
personal_space_id,
|
|
@@ -301,6 +305,8 @@ def register_project_agent_routes(
|
|
|
301
305
|
agent_id=agent_id,
|
|
302
306
|
status=status,
|
|
303
307
|
limit=limit,
|
|
308
|
+
after_updated_at=after_updated_at,
|
|
309
|
+
after_task_id=after_task_id,
|
|
304
310
|
)
|
|
305
311
|
|
|
306
312
|
@application.get('/v1/project-agent-task-pages', response_model=ProjectAgentTaskPage)
|
|
@@ -424,6 +430,20 @@ def register_project_agent_routes(
|
|
|
424
430
|
notify_task_change(request.personal_space_id, task_id)
|
|
425
431
|
return task
|
|
426
432
|
|
|
433
|
+
@application.post(
|
|
434
|
+
'/v1/project-agent-tasks/{task_id}/close',
|
|
435
|
+
response_model=ProjectAgentTaskRecord,
|
|
436
|
+
)
|
|
437
|
+
async def close_task_by_person(
|
|
438
|
+
task_id: str,
|
|
439
|
+
request: ProjectAgentTaskPersonClose,
|
|
440
|
+
actor: HumanReviewer,
|
|
441
|
+
) -> ProjectAgentTaskRecord:
|
|
442
|
+
"""The person completes or cancels a task, or an FLA relaying their words; human-review channel only."""
|
|
443
|
+
task = await store.close_task_by_person(actor, task_id, request)
|
|
444
|
+
notify_task_change(request.personal_space_id, task_id)
|
|
445
|
+
return task
|
|
446
|
+
|
|
427
447
|
@application.get(
|
|
428
448
|
'/v1/project-agents/{agent_id}/activity',
|
|
429
449
|
response_model=ProjectAgentActivityResult,
|
|
@@ -473,31 +493,6 @@ def register_project_agent_routes(
|
|
|
473
493
|
) -> ProjectAgentCoordinationPolicyRecord:
|
|
474
494
|
return await store.update_project_agent_coordination_policy(actor, request)
|
|
475
495
|
|
|
476
|
-
@application.get(
|
|
477
|
-
'/v1/project-agent-recruitment-policy',
|
|
478
|
-
response_model=ProjectAgentRecruitmentPolicyRecord,
|
|
479
|
-
deprecated=True,
|
|
480
|
-
)
|
|
481
|
-
async def get_project_agent_recruitment_policy(
|
|
482
|
-
actor: Actor,
|
|
483
|
-
personal_space_id: Annotated[str, Query(min_length=1, max_length=128)],
|
|
484
|
-
) -> ProjectAgentRecruitmentPolicyRecord:
|
|
485
|
-
return await store.get_project_agent_recruitment_policy(
|
|
486
|
-
actor,
|
|
487
|
-
personal_space_id,
|
|
488
|
-
)
|
|
489
|
-
|
|
490
|
-
@application.put(
|
|
491
|
-
'/v1/project-agent-recruitment-policy',
|
|
492
|
-
response_model=ProjectAgentRecruitmentPolicyRecord,
|
|
493
|
-
deprecated=True,
|
|
494
|
-
)
|
|
495
|
-
async def update_project_agent_recruitment_policy(
|
|
496
|
-
request: ProjectAgentRecruitmentPolicyUpdate,
|
|
497
|
-
actor: Actor,
|
|
498
|
-
) -> ProjectAgentRecruitmentPolicyRecord:
|
|
499
|
-
return await store.update_project_agent_recruitment_policy(actor, request)
|
|
500
|
-
|
|
501
496
|
@application.get(
|
|
502
497
|
'/v1/project-agent-recruitments',
|
|
503
498
|
response_model=list[ProjectAgentRecruitmentRecord],
|
|
@@ -498,13 +498,17 @@ class ProjectAgentTaskBlockerPersonClear(StrictModel):
|
|
|
498
498
|
confirm_hint: the person confirms the block FULI saw as probably resolved.
|
|
499
499
|
cleared_by 'agent' (with the FLA, its client and session when known): an
|
|
500
500
|
FLA made the clear for the person through run_delegated_action; note is
|
|
501
|
-
then its reason.
|
|
501
|
+
then its reason. resume_status: the task goes on running, or back to its
|
|
502
|
+
queue when the clearing Agent's report asks for queued (rec#123).
|
|
502
503
|
"""
|
|
503
504
|
|
|
504
505
|
personal_space_id: str = Field(min_length=1, max_length=128)
|
|
505
506
|
personal_project_id: str = Field(min_length=1, max_length=128)
|
|
506
507
|
note: str | None = Field(default=None, min_length=1, max_length=500)
|
|
507
508
|
confirm_hint: bool = False
|
|
509
|
+
resume_status: Literal['running', 'queued'] = 'running'
|
|
510
|
+
# The revision the clearer read; a task that changed since is not cleared.
|
|
511
|
+
expected_revision: int | None = Field(default=None, ge=0)
|
|
508
512
|
cleared_by: Literal['person', 'agent'] = 'person'
|
|
509
513
|
agent_id: str | None = Field(default=None, min_length=1, max_length=128)
|
|
510
514
|
source_application: SourceApplication | None = None
|
|
@@ -521,6 +525,24 @@ class ProjectAgentTaskBlockerPersonClear(StrictModel):
|
|
|
521
525
|
return self
|
|
522
526
|
|
|
523
527
|
|
|
528
|
+
class ProjectAgentTaskPersonClose(StrictModel):
|
|
529
|
+
"""The person completes or cancels a task themself (rec#123), on the human-review channel.
|
|
530
|
+
|
|
531
|
+
It is the person's acceptance, so it needs no participating Agent and no
|
|
532
|
+
verified artifact revision. relayed_by names the FLA that relayed the
|
|
533
|
+
person's words through run_delegated_action, with its client and session;
|
|
534
|
+
summary carries those words.
|
|
535
|
+
"""
|
|
536
|
+
|
|
537
|
+
personal_space_id: str = Field(min_length=1, max_length=128)
|
|
538
|
+
personal_project_id: str = Field(min_length=1, max_length=128)
|
|
539
|
+
status: Literal['completed', 'cancelled']
|
|
540
|
+
summary: str = Field(min_length=1, max_length=2000)
|
|
541
|
+
relayed_by: str | None = Field(default=None, min_length=1, max_length=128)
|
|
542
|
+
source_application: SourceApplication | None = None
|
|
543
|
+
source_session_id: str | None = Field(default=None, min_length=1, max_length=256)
|
|
544
|
+
|
|
545
|
+
|
|
524
546
|
class ProjectAgentTaskBlockerProgress(StrictModel):
|
|
525
547
|
"""An Agent's recorded work in a project, from one client session.
|
|
526
548
|
|
|
@@ -746,8 +768,10 @@ class ProjectAgentTaskActivityCreate(StrictModel):
|
|
|
746
768
|
@model_validator(mode='after')
|
|
747
769
|
def validate_actual_model(self):
|
|
748
770
|
if self.status in {'completed', 'failed'} and not self.agent_id:
|
|
771
|
+
# Never borrow a participant's ID to close for someone else (rec#123).
|
|
749
772
|
raise ValueError(
|
|
750
|
-
'completed or failed activity requires the participating Agent ID'
|
|
773
|
+
'completed or failed activity requires the participating Agent ID. '
|
|
774
|
+
'The person closing it? Relay their words via run_delegated_action, task close route'
|
|
751
775
|
)
|
|
752
776
|
if bool(self.actual_model_provider) != bool(self.actual_model):
|
|
753
777
|
raise ValueError('actual model provider and model must be reported together')
|
|
@@ -832,24 +856,6 @@ class ProjectAgentTaskRouteResult(StrictModel):
|
|
|
832
856
|
client_notice: str | None = None
|
|
833
857
|
|
|
834
858
|
|
|
835
|
-
class ProjectAgentRecruitmentPolicyRecord(StrictModel):
|
|
836
|
-
personal_space_id: str
|
|
837
|
-
confirmation_mode: ProjectAgentRecruitmentConfirmationMode = 'automatic'
|
|
838
|
-
updated_at: datetime | None = None
|
|
839
|
-
policy_status: Literal['superseded'] = 'superseded'
|
|
840
|
-
applies_to_recruitment: Literal[False] = False
|
|
841
|
-
warning: str = (
|
|
842
|
-
'Legacy storage only; this setting does not control recruitment. '
|
|
843
|
-
'Use update_project_agent_coordination_policy with the exact project '
|
|
844
|
-
'and askBeforeRecruitment to change effective authorization.'
|
|
845
|
-
)
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
class ProjectAgentRecruitmentPolicyUpdate(StrictModel):
|
|
849
|
-
personal_space_id: str = Field(min_length=1, max_length=128)
|
|
850
|
-
confirmation_mode: ProjectAgentRecruitmentConfirmationMode
|
|
851
|
-
|
|
852
|
-
|
|
853
859
|
class ProjectAgentRecruitmentDecision(StrictModel):
|
|
854
860
|
personal_space_id: str = Field(min_length=1, max_length=128)
|
|
855
861
|
personal_project_id: str = Field(min_length=1, max_length=128)
|
|
@@ -21,7 +21,9 @@ async def read_employee_work_log(store, space_id, project_id, agent_id):
|
|
|
21
21
|
for row in rows:
|
|
22
22
|
record = json.loads(row['record_json'])
|
|
23
23
|
checkpoint = record.get('checkpoint') or {}
|
|
24
|
-
|
|
24
|
+
# The latest amendment is the current outcome; the original stays in the record (rec#85).
|
|
25
|
+
current = (checkpoint.get('amendments') or [checkpoint])[-1]
|
|
26
|
+
log = current.get('work_log') or {}
|
|
25
27
|
result.append({
|
|
26
28
|
'task_context_token': record['token'],
|
|
27
29
|
'source_application': record['source_application'],
|
|
@@ -29,7 +31,7 @@ async def read_employee_work_log(store, space_id, project_id, agent_id):
|
|
|
29
31
|
'created_at': record['created_at'],
|
|
30
32
|
'status': (log.get('status', 'unreported') if row['completed']
|
|
31
33
|
else 'running' if row.get('current') else 'incomplete'),
|
|
32
|
-
'summary': log.get('summary') or
|
|
34
|
+
'summary': log.get('summary') or current.get('reason')
|
|
33
35
|
or 'The employee has not submitted a work summary for this task.',
|
|
34
36
|
'memory_updated': bool(row.get('memory_updated')),
|
|
35
37
|
})
|
|
@@ -143,7 +143,8 @@ async def apply_knowledge_project_action(
|
|
|
143
143
|
item_kind=request.item_kind,
|
|
144
144
|
target_project_id=target_project_id,
|
|
145
145
|
reason=request.reason,
|
|
146
|
-
|
|
146
|
+
# The person's own move only with the proof, never by claim.
|
|
147
|
+
operation_actor='human' if _human_action(actor, request) else 'agent',
|
|
147
148
|
),
|
|
148
149
|
)
|
|
149
150
|
status = 'created' if project_created else 'linked'
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""Node labels and properties earlier FULI versions wrote and no code writes
|
|
2
|
+
or reads now.
|
|
3
|
+
|
|
4
|
+
The stored graph format is frozen: a graph that has these nodes keeps them,
|
|
5
|
+
and the migrations that declared their labels keep declaring them. They are
|
|
6
|
+
named here, as Cypher patterns, so the format checks
|
|
7
|
+
(tests/test_graph_format.py, tests/test_graph_field_contract.py) still see
|
|
8
|
+
every declared label and property in the code and a future cleanup migration
|
|
9
|
+
has one place to start from.
|
|
10
|
+
|
|
11
|
+
Retired on 2026-11-11 with their features: the personal-global preference
|
|
12
|
+
decision preview (it could never be applied), the workflow candidate review
|
|
13
|
+
with its rules (nothing recorded observations to review), and public projects
|
|
14
|
+
(team proposals, project-to-project relations and common-knowledge
|
|
15
|
+
promotion; the promotion records a person already has stay readable and
|
|
16
|
+
hard-deletable).
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
RETIRED_NODE_PATTERNS = (
|
|
20
|
+
'(:FuliPersonalGlobalPreferenceDecisionPreview)',
|
|
21
|
+
'(:FuliWorkflowReviewPreview)',
|
|
22
|
+
'(:FuliWorkflowReviewEvent)',
|
|
23
|
+
'(:FuliWorkflowRule)',
|
|
24
|
+
'(:FuliProposal {submitted_by, decision_note})',
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
RETIRED_PROPERTY_PATTERNS = (
|
|
28
|
+
'()-[:FULI_PROJECT_RELATION {decision_note}]->()',
|
|
29
|
+
'(:FuliCommonKnowledgePromotion {duplicate_item_ids})',
|
|
30
|
+
)
|
|
@@ -4,7 +4,6 @@ from fastapi import HTTPException, status
|
|
|
4
4
|
|
|
5
5
|
from .auth import issue_access_token, token_hash
|
|
6
6
|
from .models import PrincipalResult, SpaceCreate, SpaceRecord
|
|
7
|
-
from .project_management import publish_project
|
|
8
7
|
from .provider_values import graphiti_group_id, now_utc
|
|
9
8
|
|
|
10
9
|
|
|
@@ -107,20 +106,13 @@ class StoreIdentity:
|
|
|
107
106
|
return PrincipalResult(principal_id=principal_id, access_token=access_token)
|
|
108
107
|
|
|
109
108
|
async def create_space(self, actor: dict, request: SpaceCreate) -> SpaceRecord:
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
# Public projects were removed: a workspace provider serves what it already
|
|
110
|
+
# holds and takes no new project or release; only a personal space is created.
|
|
111
|
+
if self.settings.provider_mode != 'personal' or request.kind != 'personal':
|
|
112
112
|
raise HTTPException(
|
|
113
113
|
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
|
|
114
|
-
detail=
|
|
114
|
+
detail='Public projects were removed; only a personal provider creates a personal space',
|
|
115
115
|
)
|
|
116
|
-
if request.kind == 'project' and request.profile:
|
|
117
|
-
if any(source.sensitivity != 'normal' for source in request.profile.sources):
|
|
118
|
-
raise HTTPException(
|
|
119
|
-
status_code=422,
|
|
120
|
-
detail='private or restricted project sources cannot be published',
|
|
121
|
-
)
|
|
122
|
-
if request.kind == 'project':
|
|
123
|
-
return await publish_project(self, actor, request)
|
|
124
116
|
space_id = str(uuid4())
|
|
125
117
|
group_id = graphiti_group_id(self.settings.provider_id, request.kind, space_id)
|
|
126
118
|
created_at = now_utc()
|
|
@@ -233,7 +225,3 @@ class StoreIdentity:
|
|
|
233
225
|
def _require_personal(self) -> None:
|
|
234
226
|
if self.settings.provider_mode != 'personal':
|
|
235
227
|
raise HTTPException(status_code=404, detail='personal provider endpoint')
|
|
236
|
-
|
|
237
|
-
def _require_workspace(self) -> None:
|
|
238
|
-
if self.settings.provider_mode != 'workspace':
|
|
239
|
-
raise HTTPException(status_code=404, detail='workspace provider endpoint')
|
|
@@ -919,10 +919,3 @@ class StoreProjectAgentExecutorLearning:
|
|
|
919
919
|
if item.evidence_kind in {'rework_requested'}:
|
|
920
920
|
return 'rework', 1.0
|
|
921
921
|
return 'failure', 1.0
|
|
922
|
-
|
|
923
|
-
record_executor_outcome_evidence = record_project_agent_executor_outcome_evidence
|
|
924
|
-
list_executor_outcome_evidence = list_project_agent_executor_outcome_evidence
|
|
925
|
-
list_executor_outcome_aggregates = list_project_agent_executor_outcome_aggregates
|
|
926
|
-
ignore_executor_outcome_evidence = ignore_project_agent_executor_outcome_evidence
|
|
927
|
-
reset_executor_outcomes = reset_project_agent_executor_outcomes
|
|
928
|
-
aggregate_executor_outcomes = aggregate_project_agent_executor_outcomes
|
|
@@ -1107,21 +1107,13 @@ class StoreProjectAgentExecutors(
|
|
|
1107
1107
|
|
|
1108
1108
|
# Short aliases make the mixin convenient for provider/facade adapters and
|
|
1109
1109
|
# keep the public naming independent from the eventual HTTP route names.
|
|
1110
|
-
register_executor = register_project_agent_executor
|
|
1111
1110
|
upsert_executor = upsert_project_agent_executor
|
|
1112
1111
|
authorize_executor = authorize_project_agent_executor
|
|
1113
|
-
record_executor_preflight = record_project_agent_executor_preflight
|
|
1114
|
-
record_executor_health = record_project_agent_executor_health
|
|
1115
1112
|
list_executors = list_project_agent_executors
|
|
1116
1113
|
get_executor = get_project_agent_executor
|
|
1117
|
-
archive_executor = archive_project_agent_executor
|
|
1118
|
-
update_executor_priority = update_project_agent_executor_priority
|
|
1119
|
-
create_executor_routing_rule = create_project_agent_executor_routing_rule
|
|
1120
1114
|
list_executor_routing_rules = list_project_agent_executor_routing_rules
|
|
1121
1115
|
update_executor_routing_rule = update_project_agent_executor_routing_rule
|
|
1122
1116
|
get_executor_routing_rule = get_project_agent_executor_routing_rule
|
|
1123
|
-
archive_executor_routing_rule = archive_project_agent_executor_routing_rule
|
|
1124
|
-
record_task_executor_actual = record_project_agent_executor_actual
|
|
1125
1117
|
|
|
1126
1118
|
@staticmethod
|
|
1127
1119
|
def _payload_hash(value: Any) -> str:
|
|
@@ -18,6 +18,38 @@ from .task_participant_running import running_since_set
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
TERMINAL_TASK_STATUSES = {"completed", "failed", "cancelled"}
|
|
21
|
+
# A revision named in a refusal; the whole message is cut at 240 characters.
|
|
22
|
+
_REVISION_SHOWN = 32
|
|
23
|
+
# rec#123 review: an Agent never writes the person's event; the person's own close is a relayed decision.
|
|
24
|
+
PERSON_EVENT_REFUSAL = ("actorKind human is the person's own event and is written only from the FULI console; "
|
|
25
|
+
'report as agent. If the person themself said the task is done or cancelled, relay '
|
|
26
|
+
'their words via run_delegated_action, task close route')
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def _unverified_completion(raw_task: dict, artifact_revision: str | None) -> str | None:
|
|
30
|
+
"""Why an Agent cannot complete a verified task on its own account yet, or None.
|
|
31
|
+
|
|
32
|
+
Every task but a default_lead staffing record is verified before an Agent
|
|
33
|
+
completes it. FULI records no "has no artifact" fact, so a task without
|
|
34
|
+
files names what it delivered (a config digest, an evidence ID) as its
|
|
35
|
+
revision; exempting tasks on the reporter's word would exempt every task.
|
|
36
|
+
The person's own close is their acceptance and needs none (rec#123); only
|
|
37
|
+
the no-revision guidance names it, for when the person themself said so.
|
|
38
|
+
An Agent whose revision failed or differs is never pointed past verification.
|
|
39
|
+
"""
|
|
40
|
+
verified = raw_task.get('verified_artifact_revision')
|
|
41
|
+
if raw_task.get('quality_gate') == 'passed' and verified and verified == artifact_revision:
|
|
42
|
+
return None
|
|
43
|
+
if not artifact_revision:
|
|
44
|
+
return ('Pass the artifactRevision (commit, or digest/ID of what you delivered) that '
|
|
45
|
+
'record_agent_verification passed, else report awaiting_review. Person themself said it '
|
|
46
|
+
'is done? Relay their words via run_delegated_action, task close route.')
|
|
47
|
+
if raw_task.get('quality_gate') == 'passed' and verified:
|
|
48
|
+
return (f'Verification passed for revision {verified[:_REVISION_SHOWN]}, not '
|
|
49
|
+
f'{artifact_revision[:_REVISION_SHOWN]}: complete with that one or verify yours.')
|
|
50
|
+
return (f'Revision {artifact_revision[:_REVISION_SHOWN]} not verified (gate '
|
|
51
|
+
f"{raw_task.get('quality_gate') or 'not run'}): run record_agent_verification "
|
|
52
|
+
'or report awaiting_review.')
|
|
21
53
|
|
|
22
54
|
|
|
23
55
|
class StoreProjectAgentTaskActivity:
|
|
@@ -37,6 +69,10 @@ class StoreProjectAgentTaskActivity:
|
|
|
37
69
|
request: ProjectAgentTaskActivityCreate,
|
|
38
70
|
) -> ProjectAgentTaskRecord:
|
|
39
71
|
self._require_personal()
|
|
72
|
+
if request.actor_kind == 'human' and actor.get('_human_review_verified') is not True:
|
|
73
|
+
# A person's event (a completion counts as 人确认) comes only on the
|
|
74
|
+
# console's human-review channel, like every other human-only write.
|
|
75
|
+
raise HTTPException(403, PERSON_EVENT_REFUSAL)
|
|
40
76
|
space = await self.authorize(actor, request.personal_space_id, 'maintainer')
|
|
41
77
|
await authorize_personal_project(
|
|
42
78
|
self,
|
|
@@ -111,9 +147,9 @@ class StoreProjectAgentTaskActivity:
|
|
|
111
147
|
if request.worker_run_id and await self._worker_run_superseded(request):
|
|
112
148
|
return self._task_from_row(row)
|
|
113
149
|
if request.status == 'completed' and raw_task.get('verification_required'):
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
raise HTTPException(409,
|
|
150
|
+
refusal = _unverified_completion(raw_task, request.artifact_revision)
|
|
151
|
+
if refusal:
|
|
152
|
+
raise HTTPException(409, refusal)
|
|
117
153
|
if request.expected_verification_attempt_id is not None:
|
|
118
154
|
if (request.status != 'completed' or raw_task.get('quality_gate') != 'passed'
|
|
119
155
|
or raw_task.get('verified_attempt_id') != request.expected_verification_attempt_id
|
|
@@ -132,14 +168,6 @@ class StoreProjectAgentTaskActivity:
|
|
|
132
168
|
from_blocking_session = blocked_in_session(
|
|
133
169
|
blocker, request.source_application, request.source_session_id,
|
|
134
170
|
)
|
|
135
|
-
if not worker_only:
|
|
136
|
-
self._validate_task_transition(
|
|
137
|
-
raw_task.get('status'),
|
|
138
|
-
request.status,
|
|
139
|
-
has_actual_executor=bool(request.actual_executor_id),
|
|
140
|
-
from_blocking_session=from_blocking_session,
|
|
141
|
-
from_lead=bool(request.agent_id) and request.agent_id == raw_task.get('lead_agent_id'),
|
|
142
|
-
)
|
|
143
171
|
# A report from another session that moves a blocked task on is the
|
|
144
172
|
# Agent's word that the block is resolved; its event says so.
|
|
145
173
|
blocker_cleared_by = 'agent' if (
|
|
@@ -184,6 +212,18 @@ class StoreProjectAgentTaskActivity:
|
|
|
184
212
|
{'agent_id': request.agent_id, 'profile': profile},
|
|
185
213
|
application,
|
|
186
214
|
)
|
|
215
|
+
# The transition is checked last: a blocked task's refusal
|
|
216
|
+
# (task_blocked_elsewhere) then means every other check of this report
|
|
217
|
+
# passed, so the Agent tool may clear the block for the person and
|
|
218
|
+
# record it without the report failing after the clear (rec#123).
|
|
219
|
+
if not worker_only:
|
|
220
|
+
self._validate_task_transition(
|
|
221
|
+
raw_task.get('status'),
|
|
222
|
+
request.status,
|
|
223
|
+
has_actual_executor=bool(request.actual_executor_id),
|
|
224
|
+
from_blocking_session=from_blocking_session,
|
|
225
|
+
from_lead=bool(request.agent_id) and request.agent_id == raw_task.get('lead_agent_id'),
|
|
226
|
+
)
|
|
187
227
|
if request.status in TERMINAL_TASK_STATUSES:
|
|
188
228
|
await self.close_task_agent_loans(actor, request.personal_space_id, request.task_id)
|
|
189
229
|
now = now_utc()
|