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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApplicationError } from '../app/application-error.js';
|
|
2
2
|
import { FULI_VERSION } from '../package-metadata.js';
|
|
3
3
|
import { activeAgentRequestSignal } from '../app/agent-request-context.js';
|
|
4
|
-
import { graphReadPath, preferenceConflictsPath
|
|
4
|
+
import { graphReadPath, preferenceConflictsPath } from './knowledge-reader.js';
|
|
5
5
|
import { preferenceTaskSession } from './preference-task-scope.js';
|
|
6
6
|
import { afterProjectWrite, sharedProjectList } from './shared-project-list.js';
|
|
7
7
|
|
|
@@ -33,7 +33,6 @@ export class ProviderRequestError extends ApplicationError {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export class GraphitiProviderClient {
|
|
36
|
-
#workflowObservationToken;
|
|
37
36
|
#refreshAccessToken;
|
|
38
37
|
|
|
39
38
|
constructor({
|
|
@@ -49,6 +48,9 @@ export class GraphitiProviderClient {
|
|
|
49
48
|
throw new TypeError('Graphiti provider token refresh must be a function');
|
|
50
49
|
}
|
|
51
50
|
if (!accessToken) throw new TypeError('Graphiti provider accessToken is required');
|
|
51
|
+
// Runtime configs still carry the MCP host's workflow observation token;
|
|
52
|
+
// nothing sends it since 11-11 (record_workflow_transition_observation was
|
|
53
|
+
// removed), but a malformed one still fails here as before.
|
|
52
54
|
if (workflowObservationToken !== null && (
|
|
53
55
|
typeof workflowObservationToken !== 'string' ||
|
|
54
56
|
workflowObservationToken.trim().length < 32
|
|
@@ -65,7 +67,6 @@ export class GraphitiProviderClient {
|
|
|
65
67
|
}
|
|
66
68
|
this.baseUrl = baseUrl.replace(/\/$/, '');
|
|
67
69
|
this.accessToken = accessToken;
|
|
68
|
-
this.#workflowObservationToken = workflowObservationToken?.trim() ?? null;
|
|
69
70
|
this.fetch = fetchImpl;
|
|
70
71
|
this.requestTimeoutMs = requestTimeoutMs;
|
|
71
72
|
this.#refreshAccessToken = refreshAccessToken;
|
|
@@ -107,34 +108,6 @@ export class GraphitiProviderClient {
|
|
|
107
108
|
const query = new URLSearchParams({ personal_space_id, personal_project_id });
|
|
108
109
|
return this.#workerRequest(`/v1/project-agent-worker-runs/${encodeURIComponent(runId)}?${query}`, { capability, signal });
|
|
109
110
|
}
|
|
110
|
-
prepareProjectAgentWorkerRun(input, { signal } = {}) {
|
|
111
|
-
return this.#workerHostRequest('/v1/project-agent-worker-runs', { method: 'PUT', body: input, signal });
|
|
112
|
-
}
|
|
113
|
-
claimProjectAgentWorkerStart(runId, scope, { capability, signal } = {}) {
|
|
114
|
-
return this.#workerRequest(`/v1/project-agent-worker-runs/${encodeURIComponent(runId)}/start-claim`, {
|
|
115
|
-
capability, signal, method: 'POST', body: scope
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
sealProjectAgentWorkerSession(runId, input, { capability, signal } = {}) {
|
|
119
|
-
return this.#workerRequest(`/v1/project-agent-worker-runs/${encodeURIComponent(runId)}/session`, {
|
|
120
|
-
capability, signal, method: 'PUT', body: input
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
closeProjectAgentWorkerRun(runId, input, { capability, signal } = {}) {
|
|
124
|
-
return this.#workerRequest(`/v1/project-agent-worker-runs/${encodeURIComponent(runId)}/close`, {
|
|
125
|
-
capability, signal, method: 'POST', body: input
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
dispatchProjectAgentWorkerPrompt(runId, input, { capability, signal } = {}) {
|
|
129
|
-
return this.#workerRequest(`/v1/project-agent-worker-runs/${encodeURIComponent(runId)}/dispatch`, {
|
|
130
|
-
capability, signal, method: 'POST', body: input
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
recordProjectAgentWorkerResult(runId, input, { capability, signal } = {}) {
|
|
134
|
-
return this.#workerRequest(`/v1/project-agent-worker-runs/${encodeURIComponent(runId)}/result`, {
|
|
135
|
-
capability, signal, method: 'POST', body: input
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
111
|
listProjectAgentTaskRuns({ personalSpaceId, personalProjectId, taskId, limit = 50, cursor }) {
|
|
139
112
|
const query = new URLSearchParams({ personal_space_id: personalSpaceId, personal_project_id: personalProjectId,
|
|
140
113
|
limit: String(limit) });
|
|
@@ -172,12 +145,6 @@ export class GraphitiProviderClient {
|
|
|
172
145
|
health() { return this.#request('/health', { authenticated: false }); }
|
|
173
146
|
listSpaces() { return this.#request('/v1/spaces'); }
|
|
174
147
|
createSpace(input) { return this.#request('/v1/spaces', { method: 'POST', body: input }); }
|
|
175
|
-
listProjectReleases(projectId) {
|
|
176
|
-
return this.#request(`/v1/projects/${encodeURIComponent(projectId)}/releases`);
|
|
177
|
-
}
|
|
178
|
-
deleteProject(projectId) {
|
|
179
|
-
return afterProjectWrite(this, () => this.#request(`/v1/projects/${encodeURIComponent(projectId)}`, { method: 'DELETE' }));
|
|
180
|
-
}
|
|
181
148
|
upsertPersonalProject(input) {
|
|
182
149
|
return afterProjectWrite(this, () => this.#request('/v1/personal-projects', { method: 'PUT', body: input }));
|
|
183
150
|
}
|
|
@@ -210,10 +177,6 @@ export class GraphitiProviderClient {
|
|
|
210
177
|
if (!Object.hasOwn(paths, operation)) throw new TypeError('Unknown attention operation');
|
|
211
178
|
return this.#request(paths[operation], { method: 'POST', body: input });
|
|
212
179
|
}
|
|
213
|
-
ensureSystemProjectHr(personalSpaceId) {
|
|
214
|
-
const query = new URLSearchParams({ personal_space_id: personalSpaceId });
|
|
215
|
-
return this.#request(`/v1/project-agents/system-hr?${query}`, { method: 'POST' });
|
|
216
|
-
}
|
|
217
180
|
listProjectAgents(
|
|
218
181
|
personalSpaceId,
|
|
219
182
|
personalProjectId = null,
|
|
@@ -321,6 +284,12 @@ export class GraphitiProviderClient {
|
|
|
321
284
|
method: 'PUT', body: input
|
|
322
285
|
});
|
|
323
286
|
}
|
|
287
|
+
// rec#85: a correction appended under a completed checkpoint.
|
|
288
|
+
amendTaskCheckpoint(token, input) {
|
|
289
|
+
return this.#request(`/v1/task-contexts/${encodeURIComponent(token)}/checkpoint/amendments`, {
|
|
290
|
+
method: 'POST', body: input
|
|
291
|
+
});
|
|
292
|
+
}
|
|
324
293
|
// rec#20: the checkpoint's reply claims its own turn receipt exactly once.
|
|
325
294
|
claimTurnReceipt(token, input) {
|
|
326
295
|
return this.#request(`/v1/task-contexts/${encodeURIComponent(token)}/turn-receipt/claim`, {
|
|
@@ -427,7 +396,9 @@ export class GraphitiProviderClient {
|
|
|
427
396
|
personalProjectId = null,
|
|
428
397
|
agentId = null,
|
|
429
398
|
status = null,
|
|
430
|
-
limit = null
|
|
399
|
+
limit = null,
|
|
400
|
+
afterUpdatedAt = null,
|
|
401
|
+
afterTaskId = null
|
|
431
402
|
}) {
|
|
432
403
|
const query = new URLSearchParams({
|
|
433
404
|
personal_space_id: personalSpaceId
|
|
@@ -436,6 +407,11 @@ export class GraphitiProviderClient {
|
|
|
436
407
|
if (agentId) query.set('agent_id', agentId);
|
|
437
408
|
if (status) query.set('status', status);
|
|
438
409
|
if (limit !== null && limit !== undefined) query.set('limit', String(limit));
|
|
410
|
+
// The last task an earlier page listed; the Provider takes both or neither.
|
|
411
|
+
if (afterUpdatedAt && afterTaskId) {
|
|
412
|
+
query.set('after_updated_at', afterUpdatedAt);
|
|
413
|
+
query.set('after_task_id', afterTaskId);
|
|
414
|
+
}
|
|
439
415
|
return this.#request(`/v1/project-agent-tasks?${query}`);
|
|
440
416
|
}
|
|
441
417
|
// One keyset page of the console's full task lists (store_project_agent_task_pages.py).
|
|
@@ -511,15 +487,6 @@ export class GraphitiProviderClient {
|
|
|
511
487
|
method: 'PUT', body: input
|
|
512
488
|
});
|
|
513
489
|
}
|
|
514
|
-
getProjectAgentRecruitmentPolicy(personalSpaceId) {
|
|
515
|
-
const query = new URLSearchParams({ personal_space_id: personalSpaceId });
|
|
516
|
-
return this.#request(`/v1/project-agent-recruitment-policy?${query}`);
|
|
517
|
-
}
|
|
518
|
-
updateProjectAgentRecruitmentPolicy(input) {
|
|
519
|
-
return this.#request('/v1/project-agent-recruitment-policy', {
|
|
520
|
-
method: 'PUT', body: input
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
490
|
listProjectAgentRecruitments({
|
|
524
491
|
personalSpaceId,
|
|
525
492
|
personalProjectId = null,
|
|
@@ -691,78 +658,16 @@ export class GraphitiProviderClient {
|
|
|
691
658
|
listProjectAgentScoreEvidence(query) {
|
|
692
659
|
return this.#request('/v1/project-agent-score-card/evidence', { method: 'POST', body: query });
|
|
693
660
|
}
|
|
694
|
-
createPublicationDraft(input) {
|
|
695
|
-
return this.#request('/v1/publication-drafts', { method: 'POST', body: input });
|
|
696
|
-
}
|
|
697
|
-
listPublicationDrafts(personalSpaceId, status = 'pending', { metadataOnly = false, ...options } = {}) {
|
|
698
|
-
return this.#request(publicationDraftsPath(personalSpaceId, { status, metadataOnly }), options);
|
|
699
|
-
}
|
|
700
|
-
getPublicationDraft(personalSpaceId, draftId) {
|
|
701
|
-
const query = new URLSearchParams({ personal_space_id: personalSpaceId });
|
|
702
|
-
return this.#request(
|
|
703
|
-
`/v1/publication-drafts/${encodeURIComponent(draftId)}?${query}`
|
|
704
|
-
);
|
|
705
|
-
}
|
|
706
|
-
decidePublicationDraft(personalSpaceId, draftId, input, options = {}) {
|
|
707
|
-
const query = new URLSearchParams({ personal_space_id: personalSpaceId });
|
|
708
|
-
return this.#request(
|
|
709
|
-
`/v1/publication-drafts/${encodeURIComponent(draftId)}/decision?${query}`,
|
|
710
|
-
{ ...options, method: 'POST', body: input }
|
|
711
|
-
);
|
|
712
|
-
}
|
|
713
|
-
createPrincipal(input) {
|
|
714
|
-
return this.#request('/v1/principals', { method: 'POST', body: input });
|
|
715
|
-
}
|
|
716
|
-
addMember(projectId, input) {
|
|
717
|
-
return this.#request(`/v1/projects/${encodeURIComponent(projectId)}/members`, {
|
|
718
|
-
method: 'POST', body: input
|
|
719
|
-
});
|
|
720
|
-
}
|
|
721
|
-
createProjectRelation(projectId, input) {
|
|
722
|
-
return this.#request(`/v1/projects/${encodeURIComponent(projectId)}/relations`, {
|
|
723
|
-
method: 'POST', body: input
|
|
724
|
-
});
|
|
725
|
-
}
|
|
726
|
-
listProjectRelations(projectId) {
|
|
727
|
-
return this.#request(`/v1/projects/${encodeURIComponent(projectId)}/relations`);
|
|
728
|
-
}
|
|
729
|
-
decideProjectRelation(projectId, relationId, input) {
|
|
730
|
-
return this.#request(
|
|
731
|
-
`/v1/projects/${encodeURIComponent(projectId)}/relations/` +
|
|
732
|
-
`${encodeURIComponent(relationId)}/decision`,
|
|
733
|
-
{ method: 'POST', body: input }
|
|
734
|
-
);
|
|
735
|
-
}
|
|
736
|
-
subscribe(input) {
|
|
737
|
-
return this.#request('/v1/subscriptions', { method: 'POST', body: input });
|
|
738
|
-
}
|
|
739
661
|
listSubscriptions(personalSpaceId) {
|
|
740
662
|
const query = new URLSearchParams({ personal_space_id: personalSpaceId });
|
|
741
663
|
return this.#request(`/v1/subscriptions?${query}`);
|
|
742
664
|
}
|
|
743
|
-
unsubscribe(personalSpaceId, projectId, providerUrl) {
|
|
744
|
-
const query = new URLSearchParams({
|
|
745
|
-
personal_space_id: personalSpaceId,
|
|
746
|
-
provider_url: providerUrl
|
|
747
|
-
});
|
|
748
|
-
return this.#request(`/v1/subscriptions/${encodeURIComponent(projectId)}?${query}`, {
|
|
749
|
-
method: 'DELETE'
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
665
|
commit(input) {
|
|
753
666
|
return this.#request('/v1/knowledge/commits', { method: 'POST', body: input });
|
|
754
667
|
}
|
|
755
668
|
preflightCommits(inputs) {
|
|
756
669
|
return this.#request('/v1/knowledge/commits/preflight', { method: 'POST', body: inputs });
|
|
757
670
|
}
|
|
758
|
-
recordWorkflowObservation(input) {
|
|
759
|
-
if (!this.#workflowObservationToken) {
|
|
760
|
-
throw new TypeError('MCP host workflow observation credential is not configured');
|
|
761
|
-
}
|
|
762
|
-
return this.#request('/v1/workflow-observations', {
|
|
763
|
-
method: 'POST', body: input, workflowObservation: true
|
|
764
|
-
});
|
|
765
|
-
}
|
|
766
671
|
startKnowledgeReview(input) {
|
|
767
672
|
return this.#request('/v1/knowledge/reviews/start', {
|
|
768
673
|
method: 'POST', body: input
|
|
@@ -793,11 +698,6 @@ export class GraphitiProviderClient {
|
|
|
793
698
|
method: 'POST', body: input
|
|
794
699
|
});
|
|
795
700
|
}
|
|
796
|
-
recommendWorkflowCandidates(input) {
|
|
797
|
-
return this.#request('/v1/workflow-candidates/recommendations', {
|
|
798
|
-
method: 'POST', body: input
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
701
|
reviseKnowledgeItem(itemId, input) {
|
|
802
702
|
return this.#request(`/v1/knowledge/items/${encodeURIComponent(itemId)}`, {
|
|
803
703
|
method: 'PATCH', body: input
|
|
@@ -846,16 +746,6 @@ export class GraphitiProviderClient {
|
|
|
846
746
|
{ method: 'POST', body: input }
|
|
847
747
|
);
|
|
848
748
|
}
|
|
849
|
-
previewCommonKnowledgePromotion(input) {
|
|
850
|
-
return this.#request('/v1/knowledge/common-promotions/preview', {
|
|
851
|
-
method: 'POST', body: input
|
|
852
|
-
});
|
|
853
|
-
}
|
|
854
|
-
applyCommonKnowledgePromotion(input) {
|
|
855
|
-
return this.#request('/v1/knowledge/common-promotions', {
|
|
856
|
-
method: 'POST', body: input
|
|
857
|
-
});
|
|
858
|
-
}
|
|
859
749
|
personalGlobalPreferenceDecisionStatus(input) {
|
|
860
750
|
return this.#request(
|
|
861
751
|
'/v1/personal-global-preference-candidates/decision-status',
|
|
@@ -869,20 +759,6 @@ export class GraphitiProviderClient {
|
|
|
869
759
|
{ method: 'POST', body: input }
|
|
870
760
|
);
|
|
871
761
|
}
|
|
872
|
-
inspectPersonalGlobalPreferenceDecision(candidateId, input) {
|
|
873
|
-
return this.#request(
|
|
874
|
-
'/v1/personal-global-preference-candidates/' +
|
|
875
|
-
`${encodeURIComponent(candidateId)}/decision-inspection`,
|
|
876
|
-
{ method: 'POST', body: input }
|
|
877
|
-
);
|
|
878
|
-
}
|
|
879
|
-
applyPersonalGlobalPreferenceDecision(candidateId, input) {
|
|
880
|
-
return this.#request(
|
|
881
|
-
'/v1/personal-global-preference-candidates/' +
|
|
882
|
-
`${encodeURIComponent(candidateId)}/decision`,
|
|
883
|
-
{ method: 'POST', body: input }
|
|
884
|
-
);
|
|
885
|
-
}
|
|
886
762
|
deferPreferenceConflict(input) {
|
|
887
763
|
return this.#request('/v1/preference-conflicts/defer', {
|
|
888
764
|
method: 'POST', body: input
|
|
@@ -916,28 +792,6 @@ export class GraphitiProviderClient {
|
|
|
916
792
|
{ method: 'POST', body: input }
|
|
917
793
|
);
|
|
918
794
|
}
|
|
919
|
-
createProposal(projectId, input, options = {}) {
|
|
920
|
-
return this.#request(`/v1/projects/${encodeURIComponent(projectId)}/proposals`, {
|
|
921
|
-
...options, method: 'POST', body: input
|
|
922
|
-
});
|
|
923
|
-
}
|
|
924
|
-
lookupProposal(projectId, idempotencyKey, options = {}) {
|
|
925
|
-
const query = new URLSearchParams({ idempotency_key: idempotencyKey });
|
|
926
|
-
return this.#request(`/v1/projects/${encodeURIComponent(projectId)}/proposals/lookup?${query}`, options);
|
|
927
|
-
}
|
|
928
|
-
listProposals(projectId, status = 'pending') {
|
|
929
|
-
const query = new URLSearchParams({ status });
|
|
930
|
-
return this.#request(
|
|
931
|
-
`/v1/projects/${encodeURIComponent(projectId)}/proposals?${query}`
|
|
932
|
-
);
|
|
933
|
-
}
|
|
934
|
-
decideProposal(projectId, proposalId, input) {
|
|
935
|
-
return this.#request(
|
|
936
|
-
`/v1/projects/${encodeURIComponent(projectId)}/proposals/` +
|
|
937
|
-
`${encodeURIComponent(proposalId)}/decision`,
|
|
938
|
-
{ method: 'POST', body: input }
|
|
939
|
-
);
|
|
940
|
-
}
|
|
941
795
|
search(input) { return this.#request('/v1/search', { method: 'POST', body: input }); }
|
|
942
796
|
// rec#88: the meaning index. Node embeds the pending texts with the model a
|
|
943
797
|
// person connected and hands the vectors back; ordinary access token.
|
|
@@ -951,6 +805,16 @@ export class GraphitiProviderClient {
|
|
|
951
805
|
method: 'POST', body: { personal_space_id: personalSpaceId, model, items }
|
|
952
806
|
});
|
|
953
807
|
}
|
|
808
|
+
// A catalog model the graph service runs on this computer (src/embedding-models):
|
|
809
|
+
// texts in, vectors out. A long page of long texts takes a while on a slow CPU.
|
|
810
|
+
builtinEmbed({ model, revision = null, texts, signal }) {
|
|
811
|
+
return this.#request('/v1/builtin-embeddings', { method: 'POST', body: { model, texts, ...(revision ? { revision } : {}) }, timeoutMs: 120_000,
|
|
812
|
+
...(signal ? { signal } : {}) });
|
|
813
|
+
}
|
|
814
|
+
// Lets go of the loaded model's files before they are removed or replaced.
|
|
815
|
+
unloadBuiltinEmbeddings() {
|
|
816
|
+
return this.#request('/v1/builtin-embeddings/unload', { method: 'POST' });
|
|
817
|
+
}
|
|
954
818
|
// rec#88: one bounded pass that merges duplicate current knowledge; the
|
|
955
819
|
// console host runs it periodically (src/knowledge-duplicates).
|
|
956
820
|
mergeDuplicates({ personalSpaceId, limit }) {
|
|
@@ -958,6 +822,13 @@ export class GraphitiProviderClient {
|
|
|
958
822
|
method: 'POST', body: { personal_space_id: personalSpaceId, ...(limit ? { limit } : {}) }
|
|
959
823
|
});
|
|
960
824
|
}
|
|
825
|
+
// rec#121: a page of the person's current preferences, read as an Agent, with the
|
|
826
|
+
// copies the same duplicate rules call one; a proposal for the person, never merged.
|
|
827
|
+
readPreferenceOrganizing({ personalSpaceId, offset = 0 }) {
|
|
828
|
+
return this.#request('/v1/knowledge/preferences/organizing', {
|
|
829
|
+
method: 'POST', body: { personal_space_id: personalSpaceId, offset }
|
|
830
|
+
});
|
|
831
|
+
}
|
|
961
832
|
semanticStatus({ personalSpaceId, model }) {
|
|
962
833
|
return this.#request('/v1/semantic/status', {
|
|
963
834
|
method: 'POST', body: { personal_space_id: personalSpaceId, model }
|
|
@@ -1028,7 +899,6 @@ export class GraphitiProviderClient {
|
|
|
1028
899
|
method = 'GET',
|
|
1029
900
|
body,
|
|
1030
901
|
authenticated = true,
|
|
1031
|
-
workflowObservation = false,
|
|
1032
902
|
workerCapability = null,
|
|
1033
903
|
stream = false,
|
|
1034
904
|
signal: requestSignal = activeAgentRequestSignal(),
|
|
@@ -1037,9 +907,6 @@ export class GraphitiProviderClient {
|
|
|
1037
907
|
// The provider names an older connection in its refusals by this (rec#74).
|
|
1038
908
|
const headers = { accept: stream ? 'text/event-stream' : 'application/json', 'x-fuli-client-version': FULI_VERSION };
|
|
1039
909
|
if (authenticated) headers.authorization = `Bearer ${this.accessToken}`;
|
|
1040
|
-
if (workflowObservation) {
|
|
1041
|
-
headers['x-fuli-workflow-observation-token'] = this.#workflowObservationToken;
|
|
1042
|
-
}
|
|
1043
910
|
if (workerCapability !== null) headers['x-fuli-worker-capability'] = workerCapability;
|
|
1044
911
|
if (body !== undefined) headers['content-type'] = 'application/json';
|
|
1045
912
|
const controller = new AbortController();
|
|
@@ -1163,6 +1030,12 @@ function providerErrorDiagnostic(status, payload) {
|
|
|
1163
1030
|
};
|
|
1164
1031
|
}
|
|
1165
1032
|
|
|
1033
|
+
// What a refusal says, for the human-review channel too (human-review-channel.js):
|
|
1034
|
+
// validation failures name the field and reason, and paths, URLs and tokens are removed.
|
|
1035
|
+
export function providerRefusalMessage(payload) {
|
|
1036
|
+
return sanitizeProviderDetail(providerErrorMessage(payload));
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1166
1039
|
function providerErrorMessage(payload, validationErrors = providerValidationErrors(payload)) {
|
|
1167
1040
|
if (typeof payload?.detail === 'string') return payload.detail;
|
|
1168
1041
|
if (typeof payload?.detail?.message === 'string') return payload.detail.message;
|
|
@@ -37,28 +37,29 @@ export async function findReplyEchoes(readPage) {
|
|
|
37
37
|
// Drops the named items that are still reply echoes, one after another; an
|
|
38
38
|
// item that failed stays pending and is named. relayed: an FLA's relay of the
|
|
39
39
|
// person's words (delegation-header.js), kept in the reason.
|
|
40
|
-
export async function dropReplyEchoes(app, readPage, { personalSpaceId, items }, relayed = null) {
|
|
40
|
+
export async function dropReplyEchoes(app, readPage, { personalSpaceId, items }, relayed = null, ownerReads = null) {
|
|
41
41
|
const wanted = itemKeys(items);
|
|
42
42
|
const found = new Map((await findReplyEchoes(readPage)).map(echo => [`${echo.itemKind}:${echo.itemId}`, echo]));
|
|
43
43
|
const reason = relayed ? `${DROP_REASON}(由 ${relayed.relayedBy ?? 'FLA'} 转达:「${relayed.personWords}」)` : DROP_REASON;
|
|
44
44
|
return change(app, personalSpaceId, wanted.filter(key => found.has(key)), 'invalidate', reason,
|
|
45
|
-
{ skipped: wanted.filter(key => !found.has(key)).map(splitKey) });
|
|
45
|
+
{ skipped: wanted.filter(key => !found.has(key)).map(splitKey) }, ownerReads);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
// Makes dropped items current again (the 撤销 of a drop).
|
|
49
|
-
export async function restoreReplyEchoes(app, { personalSpaceId, items }, relayed = null) {
|
|
49
|
+
export async function restoreReplyEchoes(app, { personalSpaceId, items }, relayed = null, ownerReads = null) {
|
|
50
50
|
const reason = relayed ? `${RESTORE_REASON}(由 ${relayed.relayedBy ?? 'FLA'} 转达:「${relayed.personWords}」)` : RESTORE_REASON;
|
|
51
|
-
return change(app, personalSpaceId, itemKeys(items), 'restore', reason, {});
|
|
51
|
+
return change(app, personalSpaceId, itemKeys(items), 'restore', reason, {}, ownerReads);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
// ownerReads: the console's port, whose proof makes each change the person's.
|
|
55
|
+
async function change(app, personalSpaceId, keys, action, reason, extra, ownerReads) {
|
|
55
56
|
const done = [];
|
|
56
57
|
const failed = [];
|
|
57
58
|
for (const key of keys) {
|
|
58
59
|
const { itemKind, itemId } = splitKey(key);
|
|
59
60
|
try {
|
|
60
61
|
await app.reviseKnowledgeItem({ personalSpaceId, personalProjectId: null, itemKind, itemId, action, reason,
|
|
61
|
-
operationActor: 'human' });
|
|
62
|
+
operationActor: 'human' }, ownerReads);
|
|
62
63
|
done.push({ itemKind, itemId });
|
|
63
64
|
} catch (error) {
|
|
64
65
|
failed.push({ itemKind, itemId, code: error?.code ?? 'error' });
|
|
@@ -47,24 +47,50 @@ export function originRemoteSource(repositoryRoot) {
|
|
|
47
47
|
const uri = normalizable && key ? `https://${key}` : safeRemote;
|
|
48
48
|
const titlePath = key?.split('/').slice(1).join('/') ?? uri.replace(/\\/g, '/');
|
|
49
49
|
const title = titlePath.replace(/\/+$/, '').replace(/\.git$/i, '').split('/').filter(Boolean).slice(-2).join('/') || uri;
|
|
50
|
-
return { key: 'origin-remote', kind: 'repository', title, uri, sensitivity: 'normal' };
|
|
50
|
+
return { key: 'origin-remote', kind: 'repository', role: 'own', title, uri, sensitivity: 'normal' };
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// The normalised origin URL of a repository on this computer, or null.
|
|
54
|
+
export function localOriginRemoteKey(repositoryRoot) {
|
|
55
|
+
return originRemoteKey(repositoryRoot, { pathApi: path, readText: readTextOrEmpty });
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
function readTextOrEmpty(filePath) {
|
|
54
59
|
try { return readFileSync(filePath, 'utf8'); } catch { return ''; }
|
|
55
60
|
}
|
|
56
61
|
|
|
57
|
-
//
|
|
62
|
+
// A project's own repository sources (rec#125). A repository it only refers
|
|
63
|
+
// to (role 'reference') says nothing about which project a checkout is. A
|
|
64
|
+
// source without a role is the project's own: FULI stores only 'reference',
|
|
65
|
+
// and every repository source counted as own before roles existed.
|
|
66
|
+
function ownRepositorySources(project) {
|
|
67
|
+
return (project?.profile?.sources ?? [])
|
|
68
|
+
.filter(source => REPOSITORY_SOURCE_KINDS.has(source.kind) && source.role !== 'reference');
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// The normalised addresses of a project's own repositories; the LAN roundtable
|
|
72
|
+
// matches projects across paired computers by them (rec issue 127).
|
|
73
|
+
export function ownRemotes(project) {
|
|
74
|
+
return ownRepositorySources(project)
|
|
75
|
+
.filter(source => typeof source.uri === 'string')
|
|
76
|
+
.map(source => remoteKey(source.uri)).filter(Boolean);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// True when the project says it has a repository of its own but not where:
|
|
80
|
+
// a checkout named after it may be that repository, whatever its remote.
|
|
81
|
+
export function claimsUnaddressedRepository(project) {
|
|
82
|
+
return ownRepositorySources(project).some(source => typeof source.uri !== 'string' || !source.uri.trim());
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// The registered projects whose own repository source is at remote.
|
|
58
86
|
export function projectsWithRemote(projects, remote) {
|
|
59
|
-
return projects.filter(project => (project
|
|
60
|
-
REPOSITORY_SOURCE_KINDS.has(source.kind) && typeof source.uri === 'string' && remoteKey(source.uri) === remote));
|
|
87
|
+
return projects.filter(project => ownRemotes(project).includes(remote));
|
|
61
88
|
}
|
|
62
89
|
|
|
63
|
-
// True when the project
|
|
64
|
-
//
|
|
90
|
+
// True when the project's own repository is at some other remote: a checkout
|
|
91
|
+
// of that remote is not this project, whatever its folder is called.
|
|
65
92
|
export function recordsOtherRemote(project, remote) {
|
|
66
|
-
return (project
|
|
67
|
-
&& typeof source.uri === 'string' && remoteKey(source.uri) !== null && remoteKey(source.uri) !== remote);
|
|
93
|
+
return ownRemotes(project).some(key => key !== remote);
|
|
68
94
|
}
|
|
69
95
|
|
|
70
96
|
// host/path with scheme, user, port, trailing slashes and .git removed and the
|
|
@@ -4,6 +4,9 @@ import { recordProjectMemoryUsage } from './project-memory-usage.js';
|
|
|
4
4
|
import { activeAgentRequestSignal, activeSealedWorkerRequest } from '../app/agent-request-context.js';
|
|
5
5
|
import { termsOverlap } from '../standing-assignments/term-match.js';
|
|
6
6
|
import { identityKey } from '../text/name-identity.js';
|
|
7
|
+
import { groupMemberContext } from './group-member-context.js';
|
|
8
|
+
import { localOriginRemoteKey, ownRemotes } from './repository-remote.js';
|
|
9
|
+
import { findRepositoryRoot } from './project-path-context.js';
|
|
7
10
|
|
|
8
11
|
// FULI as the Roundtable host: Agents, projects, task identity and wake
|
|
9
12
|
// authority all come from the Provider of this device's personal space.
|
|
@@ -11,7 +14,7 @@ export function createFuliRoundtableHost(app, { warn = line => process.stderr.wr
|
|
|
11
14
|
const spaceId = () => app.config.personal.spaceId;
|
|
12
15
|
const projectView = project => ({ projectId: project.project_id ?? project.personal_project_id ?? project.id,
|
|
13
16
|
name: project.profile?.name ?? project.name ?? null, temporary: project.scope_type === 'temporary',
|
|
14
|
-
archived: project.profile?.lifecycle === 'archived' });
|
|
17
|
+
archived: project.profile?.lifecycle === 'archived', repositories: ownRemotes(project) });
|
|
15
18
|
const projects = async () => {
|
|
16
19
|
const value = await app.personal.listPersonalProjects(spaceId());
|
|
17
20
|
return Array.isArray(value) ? value : value?.projects ?? [];
|
|
@@ -67,6 +70,12 @@ export function createFuliRoundtableHost(app, { warn = line => process.stderr.wr
|
|
|
67
70
|
.map(async ([projectId, project]) => ({ agentId: await projectLeadId(projectId).catch(() => null), projectId, project })));
|
|
68
71
|
return [...standing, ...named.filter(match => match.agentId)];
|
|
69
72
|
},
|
|
73
|
+
// The origin of the Git repository holding a folder, so a folder is
|
|
74
|
+
// offered for a project only when it is a checkout of that project's own repository.
|
|
75
|
+
folderRepository(folder) {
|
|
76
|
+
const root = findRepositoryRoot(folder);
|
|
77
|
+
return root ? localOriginRemoteKey(root) : null;
|
|
78
|
+
},
|
|
70
79
|
async projectForPath(path) {
|
|
71
80
|
if (!path || !app.projectPathResolver) return null;
|
|
72
81
|
const resolved = app.projectPathResolver(path, await projects());
|
|
@@ -99,6 +108,10 @@ export function createFuliRoundtableHost(app, { warn = line => process.stderr.wr
|
|
|
99
108
|
source_application: client, message_id: messageId, digest, target_node: targetNode,
|
|
100
109
|
binding_id: bindingId, expires_at: expiresAt, ...(purpose ? { purpose } : {}) }),
|
|
101
110
|
remoteOriginAuthority: () => app.personal.getRemoteOriginAuthority(spaceId()),
|
|
111
|
+
// A stand-in reads what a `#FLG 一起看` session reads of one member: its
|
|
112
|
+
// shareable index, never its working memory (group-member-context.js).
|
|
113
|
+
standInScope: ({ agentId, name, occupation, projectId, text, client, sessionId }) =>
|
|
114
|
+
groupMemberContext(app, [{ agentId, name, occupation, projectId }], text, { sourceApplication: client, sessionId }),
|
|
102
115
|
requestSignal: activeAgentRequestSignal,
|
|
103
116
|
inRestrictedWorker: activeSealedWorkerRequest,
|
|
104
117
|
recordMemoryUsage: input => app.personal.recordProjectMemoryUsage
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import { ApplicationError, ApplicationErrorCode } from '../app/application-error.js';
|
|
2
1
|
import { captureDecision, captureDisabled } from './capture-decision.js';
|
|
3
2
|
import { preflightTaskCaptures } from './task-knowledge-routing.js';
|
|
4
|
-
import {
|
|
5
|
-
assertPublicKnowledgeEligible,
|
|
6
|
-
providerEpisode,
|
|
7
|
-
providerPersonalCommit
|
|
8
|
-
} from './knowledge-provider-mapping.js';
|
|
9
|
-
import { queuePublicationDraft } from './publication-draft-capture.js';
|
|
3
|
+
import { providerEpisode, providerPersonalCommit } from './knowledge-provider-mapping.js';
|
|
10
4
|
import { assertNoCredentials } from './knowledge-credential-guard.js';
|
|
11
|
-
import { configuredWorkspace } from './workspace-provider-client.js';
|
|
12
5
|
|
|
13
6
|
// captureScope: the write's own scope when it differs from the target, as for
|
|
14
7
|
// a task checkpoint whose global preference was learned in the task's project.
|
|
@@ -23,34 +16,15 @@ export async function preflightPersonalKnowledgeCaptures(application, inputs) {
|
|
|
23
16
|
export async function captureSessionKnowledge(application, input, { captureScope = knowledgeCaptureScope(input) } = {}) {
|
|
24
17
|
const capture = await captureDecision(application, captureScope);
|
|
25
18
|
if (!capture.allowed) return { route: 'disabled', ...captureDisabled(capture) };
|
|
26
|
-
const {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return { route: 'personal', ...result };
|
|
30
|
-
}
|
|
31
|
-
return queuePublicationDraft(application, { input, workspace, episode });
|
|
19
|
+
const { commit } = prepareKnowledgeCapture(application, input);
|
|
20
|
+
const result = await application.personal.commit(commit);
|
|
21
|
+
return { route: 'personal', ...result };
|
|
32
22
|
}
|
|
33
23
|
|
|
34
24
|
function prepareKnowledgeCapture(application, input) {
|
|
35
25
|
assertNoCredentials(input);
|
|
36
26
|
const episode = providerEpisode(input);
|
|
37
|
-
|
|
38
|
-
return { episode, commit: providerPersonalCommit(input, episode, application.config.personal.spaceId) };
|
|
39
|
-
}
|
|
40
|
-
if (input.projectAgentId) {
|
|
41
|
-
throw new ApplicationError(
|
|
42
|
-
ApplicationErrorCode.VALIDATION,
|
|
43
|
-
'Project Agent knowledge can only be captured in the personal graph'
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
if (episode.sensitivity !== 'normal') {
|
|
47
|
-
throw new ApplicationError(
|
|
48
|
-
ApplicationErrorCode.VALIDATION,
|
|
49
|
-
'Private or restricted knowledge cannot enter a team-shared project queue. Use targetKind "personal" with personalProjectId to keep it in the personal graph'
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
assertPublicKnowledgeEligible(episode);
|
|
53
|
-
return { episode, workspace: configuredWorkspace(application.workspaces, input.providerUrl) };
|
|
27
|
+
return { episode, commit: providerPersonalCommit(input, episode, application.config.personal.spaceId) };
|
|
54
28
|
}
|
|
55
29
|
|
|
56
30
|
function knowledgeCaptureScope(input) {
|
|
@@ -25,7 +25,9 @@ export async function beginTaskContext(application, {
|
|
|
25
25
|
workKind,
|
|
26
26
|
promptScene,
|
|
27
27
|
workflow,
|
|
28
|
-
requiredCapabilities = []
|
|
28
|
+
requiredCapabilities = [],
|
|
29
|
+
// The model a client's prompt hook reported (Codex); like promptScene, hooks only, not in the tool schema.
|
|
30
|
+
clientModel = null
|
|
29
31
|
}) {
|
|
30
32
|
const continuationToken = /^FULI_CHECKPOINT_REQUIRED: (fuli-task-[a-zA-Z0-9-]{8,128})\b/.exec(taskPrompt ?? '')?.[1];
|
|
31
33
|
const readsCurrent = Boolean(!continuationToken && turnId && application.taskContextRegistry.current);
|
|
@@ -69,6 +71,7 @@ export async function beginTaskContext(application, {
|
|
|
69
71
|
requiredCapabilities,
|
|
70
72
|
agentInvocation: true,
|
|
71
73
|
agentToolName: 'begin_task_context',
|
|
74
|
+
...(clientModel ? { clientModel } : {}),
|
|
72
75
|
// Read above for a same-turn retry; the entry reuses it for the session's FLA binding.
|
|
73
76
|
...(readsCurrent ? { sessionTask: current } : {})
|
|
74
77
|
});
|