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
|
@@ -19,11 +19,15 @@
|
|
|
19
19
|
// several FLAs. Its text may name members and ask for more to be
|
|
20
20
|
// recommended (task-entry-group-discussion.js); `#FLG 1 3` or `#FLG 开始`
|
|
21
21
|
// answers its member choice, optionally with how the group works (`一起看`
|
|
22
|
-
// in this session, `圆桌` in the roundtable)
|
|
22
|
+
// in this session, `圆桌` in the roundtable) and the roundtable's options
|
|
23
|
+
// (`短期`/`长期`, `3轮`/`不限轮数`; rec#129), and `#FLG 结束` stops it. A
|
|
23
24
|
// bare reply of numbers answers the choice too; a bare "好", "开始" or
|
|
24
|
-
// "一起看" does not.
|
|
25
|
+
// "一起看" does not. `#FLG 加入 <code>` (or `join`) joins a started
|
|
26
|
+
// discussion from any connected client.
|
|
25
27
|
|
|
26
28
|
// The keywords, half- or full-width `#`, any case.
|
|
29
|
+
import { JOIN_CODE_PATTERN } from '../../packages/roundtable/src/roundtable/group-discussion.js';
|
|
30
|
+
|
|
27
31
|
const KEYWORD = /^[##]FLA(?=$|\s)/iu;
|
|
28
32
|
const GROUP = /^[##]FLG(?=$|[\s::,,])/iu;
|
|
29
33
|
// Everything below reads at most this much of a prompt, and every pattern
|
|
@@ -47,6 +51,16 @@ const MODE = String.raw`(?:(${SESSION_MODE})|(${ROUNDTABLE_MODE}))`;
|
|
|
47
51
|
// alone takes the preselection only after `#FLG` (`#FLG 开始`, `#FLG 一起看`).
|
|
48
52
|
const CHOICES = new RegExp(String.raw`^(\d{1,2}(?: \d{1,2})*)(?: ?(?:开始|确认|go|start|ok))?(?: ?${MODE})?\.?$`, 'iu');
|
|
49
53
|
const CONFIRM = new RegExp(String.raw`^(开始吧|开始|确认|go|start)?(?: ?${MODE})?\.?$`, 'iu');
|
|
54
|
+
// A roundtable's options ride on the same answer (rec#129), each a whole word:
|
|
55
|
+
// how long its join code lives and how many rounds its host may lead.
|
|
56
|
+
const LONG = /(?:^| )(?:长期调研群|长期|long)(?= |$)/iu;
|
|
57
|
+
const SHORT = /(?:^| )(?:短期|short)(?= |$)/iu;
|
|
58
|
+
const ROUNDS = /(?:^| )(?:(?:限定|最多) ?)?([1-9]) ?(?:轮|rounds?)(?= |$)/iu;
|
|
59
|
+
const NO_ROUND_LIMIT = /(?:^| )(?:不限轮数|不限|no limit|unlimited)(?= |$)/iu;
|
|
60
|
+
// `#FLG 加入 7K3M` (or `join`): this session joins a started discussion by its
|
|
61
|
+
// code, exactly the shape FULI generates. Text after the code (on its line
|
|
62
|
+
// or on later lines) is ignored; anything else after 加入 is a question.
|
|
63
|
+
const JOIN = new RegExp(String.raw`^(?:加入|join)[\s::]*(${JOIN_CODE_PATTERN})(?=$|[\s,,。.!!::])`, 'iu');
|
|
50
64
|
// What a client puts ahead of the person's words is skipped before deciding
|
|
51
65
|
// what the message starts with: a quoted file (Claude Code writes
|
|
52
66
|
// `@"C:\…\clip.mp4"`, possibly with `#FLA` right after it) or any other `@`
|
|
@@ -115,20 +129,45 @@ function groupMention(rest) {
|
|
|
115
129
|
const text = rest.replace(/^[\s::,,]+/u, '').trim();
|
|
116
130
|
const words = reply(text);
|
|
117
131
|
if (words !== null && RELEASE.test(words)) return { release: true };
|
|
118
|
-
const
|
|
119
|
-
if (
|
|
120
|
-
|
|
132
|
+
const join = JOIN.exec(text);
|
|
133
|
+
if (join) return { join: join[1].toUpperCase() };
|
|
134
|
+
const { rest: answer, options } = discussionOptions(words);
|
|
135
|
+
const confirm = answer === null ? null : CONFIRM.exec(answer);
|
|
136
|
+
if (confirm?.slice(1).some(Boolean)) return { confirm: true, ...namedMode(confirm), ...options };
|
|
137
|
+
// Only options (`#FLG 长期 不限轮数`) confirm the preselection with them.
|
|
138
|
+
if (answer === '' && Object.keys(options).length) return { confirm: true, ...options };
|
|
139
|
+
return choicesIn(answer, options) ?? { query: text };
|
|
121
140
|
}
|
|
122
141
|
|
|
123
142
|
// A reply of numbers to a member choice, after anything the client attached:
|
|
124
|
-
// { choices: [n…] } (distinct, as typed) and the
|
|
143
|
+
// { choices: [n…] } (distinct, as typed), the mode and the options it names, or null.
|
|
125
144
|
export function groupChoiceReply(prompt) {
|
|
126
|
-
|
|
145
|
+
const { rest, options } = discussionOptions(reply(afterAttachments(prompt)));
|
|
146
|
+
return choicesIn(rest, options);
|
|
127
147
|
}
|
|
128
148
|
|
|
129
|
-
function choicesIn(words) {
|
|
149
|
+
function choicesIn(words, options = {}) {
|
|
130
150
|
const numbers = words === null ? null : CHOICES.exec(words);
|
|
131
|
-
return numbers ? { choices: [...new Set(numbers[1].split(' ').map(Number))], ...namedMode(numbers) } : null;
|
|
151
|
+
return numbers ? { choices: [...new Set(numbers[1].split(' ').map(Number))], ...namedMode(numbers), ...options } : null;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// The roundtable options a short reply names ({ lifetime: 'short' | 'long',
|
|
155
|
+
// roundLimit: n, 0 for no limit }) and the reply without them.
|
|
156
|
+
function discussionOptions(words) {
|
|
157
|
+
if (words === null) return { rest: null, options: {} };
|
|
158
|
+
let rest = words;
|
|
159
|
+
const options = {};
|
|
160
|
+
const take = (pattern, apply) => {
|
|
161
|
+
const found = pattern.exec(rest);
|
|
162
|
+
if (!found) return;
|
|
163
|
+
apply(found);
|
|
164
|
+
rest = `${rest.slice(0, found.index)} ${rest.slice(found.index + found[0].length)}`.replace(/ +/gu, ' ').trim();
|
|
165
|
+
};
|
|
166
|
+
take(LONG, () => { options.lifetime = 'long'; });
|
|
167
|
+
take(SHORT, () => { options.lifetime ??= 'short'; });
|
|
168
|
+
take(NO_ROUND_LIMIT, () => { options.roundLimit = 0; });
|
|
169
|
+
take(ROUNDS, found => { options.roundLimit ??= Number(found[1]); });
|
|
170
|
+
return { rest, options };
|
|
132
171
|
}
|
|
133
172
|
|
|
134
173
|
// The mode a question asks for, 'session' or 'roundtable', or null.
|
|
@@ -22,7 +22,7 @@ const ONLY_LINKS = new RegExp(String.raw`^[\s>*•·,,、;;::-]*(?:${LABEL
|
|
|
22
22
|
const MARKUP_LINES = [
|
|
23
23
|
/^\s*\*{0,2}FULI 来源 · \d+ 条\*{0,2}\s*$/u,
|
|
24
24
|
/^\s*[-*•]?\s*另有 \d+ 条命中/u,
|
|
25
|
-
/FULI
|
|
25
|
+
/FULI Agents?:/u,
|
|
26
26
|
/^\s*FULI [本上]轮沉淀(?:(补发))? \d+ 条/u,
|
|
27
27
|
/^\s*另 \d+ 条未列出:/u,
|
|
28
28
|
/^\s*[-*•]\s*(?:新增|更新)\s.*|.*\]\(<?(?:fuli:|https?:)/u,
|
|
@@ -2,7 +2,7 @@ import { readFileSync } from 'node:fs';
|
|
|
2
2
|
import { join } from 'node:path';
|
|
3
3
|
|
|
4
4
|
import { parseProviderEnv } from '../setup/provider-env.js';
|
|
5
|
-
import { ProviderRequestError } from './provider-client.js';
|
|
5
|
+
import { ProviderRequestError, providerRefusalMessage } from './provider-client.js';
|
|
6
6
|
|
|
7
7
|
// The personal provider as a person's own console and CLI reach it for the
|
|
8
8
|
// operations that change real data on their word: a confirmed data format
|
|
@@ -73,7 +73,9 @@ export function providerRefusal(status, payload) {
|
|
|
73
73
|
const detail = payload?.detail;
|
|
74
74
|
const code = typeof detail?.code === 'string' ? detail.code : status >= 500 ? 'provider_http_5xx' : 'provider_error';
|
|
75
75
|
const message = typeof detail?.message === 'string' ? detail.message
|
|
76
|
-
: typeof detail === 'string' && status < 500 ? detail
|
|
76
|
+
: typeof detail === 'string' && status < 500 ? detail
|
|
77
|
+
// A validation failure (422) lists fields and reasons; the console shows them.
|
|
78
|
+
: Array.isArray(detail) && status < 500 ? providerRefusalMessage(payload) : `The graph provider answered HTTP ${status}`;
|
|
77
79
|
const deletedAt = typeof detail?.deleted_at === 'string' ? detail.deleted_at : undefined;
|
|
78
80
|
const items = Array.isArray(detail?.items) ? detail.items : Array.isArray(detail?.stale_items) ? detail.stale_items : undefined;
|
|
79
81
|
const details = deletedAt || items ? { ...(deletedAt ? { deletedAt } : {}), ...(items ? { items } : {}) } : null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { providerCommonKnowledgePromotion } from './agent-knowledge-workflows.js';
|
|
2
1
|
import {
|
|
3
2
|
providerConfirmationActor,
|
|
4
3
|
providerConfirmationBasis
|
|
@@ -6,23 +5,6 @@ import {
|
|
|
6
5
|
import { assertActivePersonalSpace } from './active-personal-space.js';
|
|
7
6
|
import { assertSafeKnowledgeMutation } from './knowledge-credential-guard.js';
|
|
8
7
|
|
|
9
|
-
export async function previewCommonKnowledgePromotion(application, input) {
|
|
10
|
-
assertActivePersonalSpace(application, input.personalSpaceId);
|
|
11
|
-
assertSafeKnowledgeMutation(input);
|
|
12
|
-
return application.personal.previewCommonKnowledgePromotion(
|
|
13
|
-
providerCommonKnowledgePromotion(input)
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export async function applyCommonKnowledgePromotion(application, input) {
|
|
18
|
-
assertActivePersonalSpace(application, input.personalSpaceId);
|
|
19
|
-
assertSafeKnowledgeMutation(input);
|
|
20
|
-
return application.personal.applyCommonKnowledgePromotion({
|
|
21
|
-
...providerCommonKnowledgePromotion(input),
|
|
22
|
-
operation_actor: input.operationActor ?? 'agent'
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
|
|
26
8
|
export async function recordKnowledgeUsage(application, {
|
|
27
9
|
personalSpaceId,
|
|
28
10
|
taskId,
|
|
@@ -44,7 +26,13 @@ export async function recordKnowledgeUsage(application, {
|
|
|
44
26
|
});
|
|
45
27
|
}
|
|
46
28
|
|
|
47
|
-
|
|
29
|
+
// A change the console sends as the person's own goes on its human-review
|
|
30
|
+
// port (ownerReads, src/knowledge-owner-reads): the provider refuses
|
|
31
|
+
// operation_actor 'human' on the access token alone.
|
|
32
|
+
const changeChannel = (application, input, ownerReads) =>
|
|
33
|
+
(input.operationActor === 'human' && ownerReads ? ownerReads : application.personal);
|
|
34
|
+
|
|
35
|
+
export async function reviseKnowledgeItem(application, input, ownerReads = null) {
|
|
48
36
|
assertActivePersonalSpace(application, input.personalSpaceId);
|
|
49
37
|
assertSafeKnowledgeMutation(input);
|
|
50
38
|
const body = {
|
|
@@ -94,13 +82,13 @@ export async function reviseKnowledgeItem(application, input) {
|
|
|
94
82
|
if (input.replacementItemKind !== undefined) {
|
|
95
83
|
body.replacement_item_kind = input.replacementItemKind;
|
|
96
84
|
}
|
|
97
|
-
return application.
|
|
85
|
+
return changeChannel(application, input, ownerReads).reviseKnowledgeItem(input.itemId, body);
|
|
98
86
|
}
|
|
99
87
|
|
|
100
|
-
export async function confirmKnowledgeBatch(application, input) {
|
|
88
|
+
export async function confirmKnowledgeBatch(application, input, ownerReads = null) {
|
|
101
89
|
assertActivePersonalSpace(application, input.personalSpaceId);
|
|
102
90
|
assertSafeKnowledgeMutation(input);
|
|
103
|
-
return application.
|
|
91
|
+
return changeChannel(application, input, ownerReads).confirmKnowledgeBatch({
|
|
104
92
|
personal_space_id: input.personalSpaceId,
|
|
105
93
|
group_kind: input.groupKind,
|
|
106
94
|
group_value: input.groupValue,
|
|
@@ -117,9 +105,9 @@ export async function confirmKnowledgeBatch(application, input) {
|
|
|
117
105
|
});
|
|
118
106
|
}
|
|
119
107
|
|
|
120
|
-
export async function reassignKnowledgeItem(application, input) {
|
|
108
|
+
export async function reassignKnowledgeItem(application, input, ownerReads = null) {
|
|
121
109
|
assertActivePersonalSpace(application, input.personalSpaceId);
|
|
122
|
-
return application.
|
|
110
|
+
return changeChannel(application, input, ownerReads).reassignKnowledgeItem(input.itemId, {
|
|
123
111
|
personal_space_id: input.personalSpaceId,
|
|
124
112
|
item_kind: input.itemKind,
|
|
125
113
|
target_project_id: input.targetProjectId,
|
|
@@ -83,27 +83,6 @@ function assertReasoningSummaries(items, collectionName) {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
export function assertPublicKnowledgeEligible(episode) {
|
|
87
|
-
const items = [...episode.entities, ...episode.relationships];
|
|
88
|
-
const blocked = items.find((item) =>
|
|
89
|
-
item.profile_aspect ||
|
|
90
|
-
item.confirmation_status !== 'confirmed' ||
|
|
91
|
-
!item.confirmation_basis?.confirmed_by ||
|
|
92
|
-
!item.confirmation_basis?.confirmed_at ||
|
|
93
|
-
!['user', 'authoritative_source'].includes(item.confirmation_basis.confirmed_by.kind)
|
|
94
|
-
);
|
|
95
|
-
if (blocked) {
|
|
96
|
-
throw new TypeError(
|
|
97
|
-
'Only knowledge with an auditable confirmation can enter public review'
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
if (items.some((item) => (item.origin_quadrant ?? 'known_known') !== 'known_known')) {
|
|
101
|
-
throw new TypeError(
|
|
102
|
-
'Only knowledge originally captured as known-known can enter public review'
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
86
|
export function providerConfirmationBasis(basis) {
|
|
108
87
|
if (!basis) return undefined;
|
|
109
88
|
return {
|
|
@@ -37,10 +37,3 @@ export function preferenceConflictsPath(personalSpaceId, { status = null, limit
|
|
|
37
37
|
return `/v1/preference-conflicts?${query}`;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
// The Provider's publication drafts. An Agent's read leaves out a draft of an
|
|
41
|
-
// FLA's work, made before the Provider refused them; the console's port reads all.
|
|
42
|
-
export function publicationDraftsPath(personalSpaceId, { status = 'pending', metadataOnly = false } = {}) {
|
|
43
|
-
const query = new URLSearchParams({ personal_space_id: personalSpaceId, status });
|
|
44
|
-
if (metadataOnly) query.set('metadata_only', 'true');
|
|
45
|
-
return `/v1/publication-drafts?${query}`;
|
|
46
|
-
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// The active personal space, its projects, and what the configured workspace
|
|
2
|
+
// providers and existing subscriptions still show (read only).
|
|
3
|
+
export async function listKnowledgeSpaces(application) {
|
|
4
|
+
const [availablePersonalSpaces, personalProjects, subscriptions, ...workspaceSpaces] = await Promise.all([
|
|
5
|
+
application.personal.listSpaces(),
|
|
6
|
+
application.personal.listPersonalProjects(application.config.personal.spaceId),
|
|
7
|
+
application.personal.listSubscriptions(application.config.personal.spaceId),
|
|
8
|
+
...[...application.workspaces.values()].map(async (workspace) => ({
|
|
9
|
+
providerUrl: workspace.providerUrl,
|
|
10
|
+
principalId: workspace.principalId,
|
|
11
|
+
spaces: await safely(() => workspace.client.listSpaces(), [])
|
|
12
|
+
}))
|
|
13
|
+
]);
|
|
14
|
+
const personalSpaces = availablePersonalSpaces.filter(({ id }) => id === application.config.personal.spaceId);
|
|
15
|
+
return {
|
|
16
|
+
activePersonalSpaceId: application.config.personal.spaceId,
|
|
17
|
+
personalSpaces,
|
|
18
|
+
personalProjects,
|
|
19
|
+
projects: workspaceSpaces.flatMap(({ providerUrl, principalId, spaces }) =>
|
|
20
|
+
spaces.map((space) => ({
|
|
21
|
+
...space,
|
|
22
|
+
providerUrl,
|
|
23
|
+
isOwner: space.owner_id === principalId
|
|
24
|
+
}))
|
|
25
|
+
),
|
|
26
|
+
subscriptions
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async function safely(operation, fallback) {
|
|
31
|
+
try {
|
|
32
|
+
return await operation();
|
|
33
|
+
} catch {
|
|
34
|
+
return fallback;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -25,6 +25,8 @@ import { RecallImpressionsStore } from '../knowledge-impressions/store.js';
|
|
|
25
25
|
import { createAgentAvatars } from '../agent-avatars/port.js';
|
|
26
26
|
import { createProjectChangeLog } from '../project-change-log/port.js';
|
|
27
27
|
import { createPersonProfile } from '../person-profile/port.js';
|
|
28
|
+
import { createProjectOrganizing } from '../project-organizing/port.js';
|
|
29
|
+
import { isLoopbackUrl } from '../external-knowledge/connectors/response-values.js';
|
|
28
30
|
import { entryPromptRecords } from '../agent-delegation/entry-prompts.js';
|
|
29
31
|
import { createWorkSurfaces } from '../work-surfaces/port.js';
|
|
30
32
|
import { createOldDataShelf } from '../old-data/port.js';
|
|
@@ -81,7 +83,11 @@ export function openLocalRuntimes(app, { runtimeConfigPath, paths, env, fetchImp
|
|
|
81
83
|
openTerminal: openTerminalWindow,
|
|
82
84
|
reveal: revealPath
|
|
83
85
|
});
|
|
84
|
-
|
|
86
|
+
// A built-in embedding model runs in the local graph service (src/embedding-models).
|
|
87
|
+
// Only a graph service on this computer: one elsewhere would receive the texts, and the
|
|
88
|
+
// built-in protocol asks for no project approval because nothing is meant to leave.
|
|
89
|
+
app.modelBackends = openModelBackendRuntime(paths, {
|
|
90
|
+
builtinEmbed: isLoopbackUrl(providerIdentity) ? input => app.personal.builtinEmbed(input) : null });
|
|
85
91
|
({ trust: app.modelTrust, history: app.modelSettingsHistory } = openRoleTrustAndHistory(paths, app.modelBackends));
|
|
86
92
|
attachJudgmentRuntime(app, paths);
|
|
87
93
|
app.roleSuggestions = openRoleSuggestionLog(paths, { recoveryGate: app.knowledgeRecoveryGate });
|
|
@@ -97,6 +103,8 @@ export function openLocalRuntimes(app, { runtimeConfigPath, paths, env, fetchImp
|
|
|
97
103
|
app.projectChangeLog = createProjectChangeLog({ path: join(dataDir, 'project-change-log.sqlite') });
|
|
98
104
|
// The person's own name and picture (「我」); the file is created by the first change.
|
|
99
105
|
app.personProfile = createPersonProfile({ path: join(dataDir, 'person-profile.json') });
|
|
106
|
+
// How well each project is known and what each 整理 run did (rec#114); created by the first run.
|
|
107
|
+
app.projectOrganizing = createProjectOrganizing({ path: join(dataDir, 'project-organizing.json') });
|
|
100
108
|
// The prompt of each session's current hook-entered task, kept only for the relay check (rec#80).
|
|
101
109
|
app.entryPrompts = entryPromptRecords(dataDir);
|
|
102
110
|
// What the person answered in the client's own question card, for the same check.
|
|
@@ -131,22 +131,6 @@ export async function discoverPersonalGlobalPreferenceCandidates(application, {
|
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
export async function previewPersonalGlobalPreferenceDecision(application, input) {
|
|
135
|
-
return application.personal.inspectPersonalGlobalPreferenceDecision(
|
|
136
|
-
input.candidateId,
|
|
137
|
-
providerPersonalGlobalPreferenceDecision(input)
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
export async function applyPersonalGlobalPreferenceDecision(application, input) {
|
|
142
|
-
return application.personal.applyPersonalGlobalPreferenceDecision(
|
|
143
|
-
input.candidateId,
|
|
144
|
-
providerPersonalGlobalPreferenceDecision(input, {
|
|
145
|
-
approvalToken: input.previewToken
|
|
146
|
-
})
|
|
147
|
-
);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
134
|
function clusterPersonalGlobalPreferenceItems(
|
|
151
135
|
items,
|
|
152
136
|
minProjects,
|
|
@@ -395,34 +379,6 @@ function personalGlobalCandidateWithDecisionState(candidate, revision) {
|
|
|
395
379
|
};
|
|
396
380
|
}
|
|
397
381
|
|
|
398
|
-
function providerPersonalGlobalPreferenceDecision(input, {
|
|
399
|
-
approvalToken = null
|
|
400
|
-
} = {}) {
|
|
401
|
-
const result = {
|
|
402
|
-
personal_space_id: input.personalSpaceId,
|
|
403
|
-
candidate_version: input.candidateVersion,
|
|
404
|
-
decision_revision: input.decisionRevision,
|
|
405
|
-
source_items: input.sourceItems.map((item) => ({
|
|
406
|
-
item_id: item.itemId,
|
|
407
|
-
item_kind: item.itemKind,
|
|
408
|
-
project_id: item.projectId
|
|
409
|
-
})),
|
|
410
|
-
preference_key: input.preferenceKey,
|
|
411
|
-
target_scope: input.targetScope,
|
|
412
|
-
target_project_id: input.targetProjectId ?? null,
|
|
413
|
-
decision: input.decision,
|
|
414
|
-
global_title: input.globalTitle ?? null,
|
|
415
|
-
global_instruction: input.globalInstruction ?? null,
|
|
416
|
-
profile_aspect: input.profileAspect ?? null,
|
|
417
|
-
human_confirmation_reason: input.humanConfirmationReason,
|
|
418
|
-
confirmed_at: input.confirmedAt,
|
|
419
|
-
session_id: input.sessionId,
|
|
420
|
-
idempotency_key: input.idempotencyKey
|
|
421
|
-
};
|
|
422
|
-
if (approvalToken) result.approval_token = approvalToken;
|
|
423
|
-
return result;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
382
|
function personalGlobalPreferenceCandidateId(itemIds) {
|
|
427
383
|
return `personal-global-${createHash('sha256')
|
|
428
384
|
.update([...itemIds].sort().join('\n'))
|
|
@@ -9,6 +9,7 @@ import { queryConversations, resumeConversation, updateConversationPolicy } from
|
|
|
9
9
|
import { recordUserTriage } from './conversation-triage.js';
|
|
10
10
|
import { acceptTopicProposal, declineTopicProposal, listTopicProposals, undoTopicPromotion } from './topic-proposals.js';
|
|
11
11
|
import { registerStandingAssignment } from './standing-assignment-entry.js';
|
|
12
|
+
import { organizeProject } from '../project-organizing/agent-tool.js';
|
|
12
13
|
import { agentProjectResolution } from './agent-project-resolution.js';
|
|
13
14
|
import { listAgentAttention, getAgentAttention, changeAgentAttention, respondToAgentAttention } from './agent-attention.js';
|
|
14
15
|
import { loadProjectTeam } from './project-team-view.js';
|
|
@@ -37,7 +38,6 @@ import {
|
|
|
37
38
|
getProjectAgent as getProjectAgentWorkflow,
|
|
38
39
|
getProjectAgentContext as getProjectAgentContextWorkflow,
|
|
39
40
|
getProjectAgentCoordinationPolicy as getProjectAgentCoordinationPolicyWorkflow,
|
|
40
|
-
getProjectAgentRecruitmentPolicy as getProjectAgentRecruitmentPolicyWorkflow,
|
|
41
41
|
ignoreProjectAgentRoutingLearning as ignoreProjectAgentRoutingLearningWorkflow,
|
|
42
42
|
listCurrentProjectAgents as listCurrentProjectAgentsWorkflow,
|
|
43
43
|
listExecutorRoutingRules as listExecutorRoutingRulesWorkflow,
|
|
@@ -59,7 +59,6 @@ import {
|
|
|
59
59
|
submitProjectAgentTask as submitProjectAgentTaskWorkflow,
|
|
60
60
|
updateExecutorRoutingRule as updateExecutorRoutingRuleWorkflow,
|
|
61
61
|
updateProjectAgentCoordinationPolicy as updateProjectAgentCoordinationPolicyWorkflow,
|
|
62
|
-
updateProjectAgentRecruitmentPolicy as updateProjectAgentRecruitmentPolicyWorkflow,
|
|
63
62
|
upsertExecutor as upsertExecutorWorkflow,
|
|
64
63
|
upsertExecutorRoutingRule as upsertExecutorRoutingRuleWorkflow,
|
|
65
64
|
upsertProjectAgent as upsertProjectAgentWorkflow,
|
|
@@ -103,6 +102,10 @@ export class ProjectAgentControlPlaneApplication {
|
|
|
103
102
|
async registerStandingAssignment(input) {
|
|
104
103
|
return registerStandingAssignment(this, input);
|
|
105
104
|
}
|
|
105
|
+
// 整理: how well the task's project is known, and what a run settled (rec#114).
|
|
106
|
+
async organizeProject(input) {
|
|
107
|
+
return organizeProject(this, input);
|
|
108
|
+
}
|
|
106
109
|
async queryAgentConversations(input) {
|
|
107
110
|
this.#assertSpace(input.personalSpaceId);
|
|
108
111
|
return queryConversations(this, input);
|
|
@@ -338,16 +341,6 @@ export class ProjectAgentControlPlaneApplication {
|
|
|
338
341
|
return updateProjectAgentCoordinationPolicyWorkflow(this, input);
|
|
339
342
|
}
|
|
340
343
|
|
|
341
|
-
async getProjectAgentRecruitmentPolicy(input) {
|
|
342
|
-
this.#assertSpace(input.personalSpaceId);
|
|
343
|
-
return getProjectAgentRecruitmentPolicyWorkflow(this, input);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
async updateProjectAgentRecruitmentPolicy(input) {
|
|
347
|
-
this.#assertSpace(input.personalSpaceId);
|
|
348
|
-
return updateProjectAgentRecruitmentPolicyWorkflow(this, input);
|
|
349
|
-
}
|
|
350
|
-
|
|
351
344
|
async listProjectAgentRecruitments(input) {
|
|
352
345
|
this.#assertSpace(input.personalSpaceId);
|
|
353
346
|
return listProjectAgentRecruitmentsWorkflow(this, input);
|
|
@@ -848,19 +848,6 @@ export function projectAgentActivityRecord(value = {}) {
|
|
|
848
848
|
};
|
|
849
849
|
}
|
|
850
850
|
|
|
851
|
-
export function projectAgentRecruitmentPolicyRecord(value = {}) {
|
|
852
|
-
return {
|
|
853
|
-
personalSpaceId: value.personal_space_id,
|
|
854
|
-
confirmationMode: value.confirmation_mode ?? 'automatic',
|
|
855
|
-
updatedAt: value.updated_at ?? null,
|
|
856
|
-
...(value.policy_status ? {
|
|
857
|
-
policyStatus: value.policy_status,
|
|
858
|
-
appliesToRecruitment: value.applies_to_recruitment,
|
|
859
|
-
warning: value.warning
|
|
860
|
-
} : {})
|
|
861
|
-
};
|
|
862
|
-
}
|
|
863
|
-
|
|
864
851
|
export function projectAgentCoordinationPolicyRecord(value = {}) {
|
|
865
852
|
return {
|
|
866
853
|
personalSpaceId: value.personal_space_id,
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { InvalidInputError } from '../app/application-error.js';
|
|
2
|
+
import { utf8Preview } from '../text/utf8-preview.js';
|
|
3
|
+
|
|
4
|
+
// What list_project_agent_tasks gives an Agent to triage tasks (rec#123): one
|
|
5
|
+
// line of facts per task, never its events or routing decision, which made a
|
|
6
|
+
// page of five tasks over 100 KB and the generic result cut drop fields and
|
|
7
|
+
// leave empty objects. view_project_agent_task reads one task in full.
|
|
8
|
+
const DEFAULT_LIMIT = 50;
|
|
9
|
+
// A page stops below the tool's 128 KiB result limit, so it is never cut; the
|
|
10
|
+
// cursor continues after the last task it holds.
|
|
11
|
+
const PAGE_BYTES = 96 * 1024;
|
|
12
|
+
const TITLE_BYTES = 200;
|
|
13
|
+
const TEXT_BYTES = 400;
|
|
14
|
+
const CURSOR_HINT = 'cursor must be the nextCursor of an earlier list_project_agent_tasks page';
|
|
15
|
+
const TASK_DETAIL_HINT = 'view_project_agent_task(taskId) reads one task with its events, routing and full text';
|
|
16
|
+
|
|
17
|
+
export async function listProjectAgentTaskSummaries(app, { cursor = null, limit = null, ...filters }) {
|
|
18
|
+
const size = limit ?? DEFAULT_LIMIT;
|
|
19
|
+
const after = cursor ? taskCursor(cursor) : null;
|
|
20
|
+
// One more task than the page says whether another page follows.
|
|
21
|
+
const tasks = await app.listProjectAgentTasks({ ...filters, limit: size + 1,
|
|
22
|
+
afterUpdatedAt: after?.updatedAt ?? null, afterTaskId: after?.taskId ?? null });
|
|
23
|
+
const page = [];
|
|
24
|
+
let bytes = 0;
|
|
25
|
+
for (const task of tasks.slice(0, size)) {
|
|
26
|
+
const summary = taskSummary(task);
|
|
27
|
+
const added = Buffer.byteLength(JSON.stringify(summary)) + 1;
|
|
28
|
+
if (page.length && bytes + added > PAGE_BYTES) break;
|
|
29
|
+
page.push(summary);
|
|
30
|
+
bytes += added;
|
|
31
|
+
}
|
|
32
|
+
const last = page.at(-1);
|
|
33
|
+
// A Provider that does not know the cursor answers with the first page again: stop there, never loop.
|
|
34
|
+
const moved = !after || !page.length || Date.parse(page[0].updatedAt) < Date.parse(after.updatedAt)
|
|
35
|
+
|| (Date.parse(page[0].updatedAt) === Date.parse(after.updatedAt) && page[0].taskId !== after.taskId);
|
|
36
|
+
return { tasks: page, nextCursor: moved && tasks.length > page.length && last ? encodeCursor(last) : null,
|
|
37
|
+
detail: TASK_DETAIL_HINT };
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function taskSummary(task) {
|
|
41
|
+
return {
|
|
42
|
+
taskId: task.taskId,
|
|
43
|
+
personalProjectId: task.personalProjectId,
|
|
44
|
+
...(task.projectScope ? { projectScope: task.projectScope } : {}),
|
|
45
|
+
title: bounded(task.title, TITLE_BYTES),
|
|
46
|
+
status: task.status,
|
|
47
|
+
revision: task.revision,
|
|
48
|
+
workKind: task.workKind,
|
|
49
|
+
leadAgentId: task.leadAgentId,
|
|
50
|
+
participants: (task.participants ?? []).map(({ agentId, role, status }) => ({ agentId, role, status })),
|
|
51
|
+
blocker: task.blocker ? { ...task.blocker, reason: bounded(task.blocker.reason, TEXT_BYTES) } : null,
|
|
52
|
+
resultSummary: bounded(task.resultSummary, TEXT_BYTES),
|
|
53
|
+
failureReason: bounded(task.failureReason, TEXT_BYTES),
|
|
54
|
+
qualityGate: task.qualityGate,
|
|
55
|
+
activityOrigin: task.activityOrigin,
|
|
56
|
+
createdAt: task.createdAt,
|
|
57
|
+
updatedAt: task.updatedAt,
|
|
58
|
+
completedAt: task.completedAt
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const bounded = (text, limit) => (typeof text === 'string' ? utf8Preview(text, limit) : text);
|
|
63
|
+
|
|
64
|
+
// The position after one listed task: the list's order is latest change first, then task ID.
|
|
65
|
+
function encodeCursor({ updatedAt, taskId }) {
|
|
66
|
+
return Buffer.from(JSON.stringify([updatedAt, taskId])).toString('base64url');
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function taskCursor(cursor) {
|
|
70
|
+
let position;
|
|
71
|
+
try {
|
|
72
|
+
position = JSON.parse(Buffer.from(String(cursor), 'base64url').toString('utf8'));
|
|
73
|
+
} catch {
|
|
74
|
+
throw new InvalidInputError(CURSOR_HINT);
|
|
75
|
+
}
|
|
76
|
+
const [updatedAt, taskId] = Array.isArray(position) ? position : [];
|
|
77
|
+
if (!Array.isArray(position) || position.length !== 2 || typeof taskId !== 'string' || !taskId
|
|
78
|
+
|| typeof updatedAt !== 'string' || !Number.isFinite(Date.parse(updatedAt))) {
|
|
79
|
+
throw new InvalidInputError(CURSOR_HINT);
|
|
80
|
+
}
|
|
81
|
+
return { updatedAt, taskId };
|
|
82
|
+
}
|
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
projectAgentActivityRecord,
|
|
15
15
|
projectAgentAssignmentRecord,
|
|
16
16
|
projectAgentCoordinationPolicyRecord,
|
|
17
|
-
projectAgentRecruitmentPolicyRecord,
|
|
18
17
|
projectAgentRecruitmentRecord,
|
|
19
18
|
projectAgentTaskRecord,
|
|
20
19
|
projectAgentTaskOutcomeRecord,
|
|
@@ -40,6 +39,7 @@ import {
|
|
|
40
39
|
routingLearningRecord
|
|
41
40
|
} from './project-agent-mapping.js';
|
|
42
41
|
import { coversClient } from '../agents/source-applications.js';
|
|
42
|
+
import { remoteConflictAction } from './agent-project-resolution.js';
|
|
43
43
|
|
|
44
44
|
const CHARACTER_FIELDS = Object.freeze(['judgment', 'taste', 'personality']);
|
|
45
45
|
|
|
@@ -243,9 +243,9 @@ export async function coordinateProjectAgentTask(
|
|
|
243
243
|
personal_space_id: application.config.personal.spaceId,
|
|
244
244
|
personal_project_id: null,
|
|
245
245
|
project_resolution: projectResolution,
|
|
246
|
-
required_action: projectResolution.status === 'ambiguous'
|
|
246
|
+
required_action: remoteConflictAction(projectResolution) ?? (projectResolution.status === 'ambiguous'
|
|
247
247
|
? 'Run from the exact project directory; Fuli will not guess among workspace children.'
|
|
248
|
-
: 'Register this repository or directory as one local personal project first.',
|
|
248
|
+
: 'Register this repository or directory as one local personal project first.'),
|
|
249
249
|
host_execution_required: false,
|
|
250
250
|
worker_plan: []
|
|
251
251
|
};
|
|
@@ -392,7 +392,9 @@ export async function listProjectAgentTasks(application, input) {
|
|
|
392
392
|
personalProjectId: input.personalProjectId ?? null,
|
|
393
393
|
agentId: input.agentId ?? null,
|
|
394
394
|
status: input.status ?? null,
|
|
395
|
-
limit: input.limit ?? null
|
|
395
|
+
limit: input.limit ?? null,
|
|
396
|
+
afterUpdatedAt: input.afterUpdatedAt ?? null,
|
|
397
|
+
afterTaskId: input.afterTaskId ?? null
|
|
396
398
|
});
|
|
397
399
|
return asList(value, ['tasks', 'items']).map(projectAgentTaskRecord);
|
|
398
400
|
}
|
|
@@ -458,21 +460,6 @@ export async function updateProjectAgentCoordinationPolicy(application, input) {
|
|
|
458
460
|
);
|
|
459
461
|
}
|
|
460
462
|
|
|
461
|
-
export async function getProjectAgentRecruitmentPolicy(application, input) {
|
|
462
|
-
return projectAgentRecruitmentPolicyRecord(
|
|
463
|
-
await application.personal.getProjectAgentRecruitmentPolicy(input.personalSpaceId)
|
|
464
|
-
);
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
export async function updateProjectAgentRecruitmentPolicy(application, input) {
|
|
468
|
-
return projectAgentRecruitmentPolicyRecord(
|
|
469
|
-
await application.personal.updateProjectAgentRecruitmentPolicy({
|
|
470
|
-
personal_space_id: input.personalSpaceId,
|
|
471
|
-
confirmation_mode: input.confirmationMode
|
|
472
|
-
})
|
|
473
|
-
);
|
|
474
|
-
}
|
|
475
|
-
|
|
476
463
|
export async function listProjectAgentRecruitments(application, input) {
|
|
477
464
|
const value = await application.personal.listProjectAgentRecruitments({
|
|
478
465
|
personalSpaceId: input.personalSpaceId,
|
|
@@ -646,9 +633,9 @@ export async function getProjectAgentContext(
|
|
|
646
633
|
personal_space_id: application.config.personal.spaceId,
|
|
647
634
|
personal_project_id: null,
|
|
648
635
|
project_resolution: projectResolution,
|
|
649
|
-
required_action: projectResolution.status === 'ambiguous'
|
|
636
|
+
required_action: remoteConflictAction(projectResolution) ?? (projectResolution.status === 'ambiguous'
|
|
650
637
|
? 'Run from the exact project directory; Fuli will not guess among workspace children.'
|
|
651
|
-
: 'Register this repository or directory as one local personal project first.'
|
|
638
|
+
: 'Register this repository or directory as one local personal project first.')
|
|
652
639
|
};
|
|
653
640
|
}
|
|
654
641
|
|
|
@@ -7,7 +7,9 @@ import {
|
|
|
7
7
|
import path from 'node:path';
|
|
8
8
|
import { ApplicationError, InvalidInputError } from '../app/application-error.js';
|
|
9
9
|
import { hostPathOfCallerPath } from '../system/platform-path.js';
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
claimsUnaddressedRepository, linkedGitDirectory, originRemoteKey, projectsWithRemote, recordsOtherRemote
|
|
12
|
+
} from './repository-remote.js';
|
|
11
13
|
|
|
12
14
|
// Says what to pass, never the path the caller sent.
|
|
13
15
|
const INVALID_PATH_MESSAGE = 'projectPath must be an existing absolute directory. '
|
|
@@ -59,14 +61,9 @@ export function resolvePersonalProjectPath(projectPath, projects, {
|
|
|
59
61
|
// An unregistered repository can be registered under this exact ID.
|
|
60
62
|
let repositoryProjectId = null;
|
|
61
63
|
if (repositoryRoot) {
|
|
62
|
-
// The origin remote decides first (#632): a clone or worktree whose folder
|
|
63
|
-
// is named after another project still belongs to its own repository.
|
|
64
64
|
const remote = originRemoteKey(repositoryRoot, { readText, pathApi });
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
// Without a recorded remote the folder names the project, as before,
|
|
68
|
-
// unless that project records another repository: then nothing matches
|
|
69
|
-
// and no registration under its ID is offered.
|
|
65
|
+
// A project whose own repository is at another remote is not this
|
|
66
|
+
// checkout, whatever the folder is called.
|
|
70
67
|
const otherRepository = resolution => Boolean(remote && resolution?.personalProjectId && recordsOtherRemote(
|
|
71
68
|
registered.find(({ project_id: projectId }) => projectId === resolution.personalProjectId), remote));
|
|
72
69
|
const worktreeId = worktreeOriginProjectId(
|
|
@@ -77,6 +74,23 @@ export function resolvePersonalProjectPath(projectPath, projects, {
|
|
|
77
74
|
// identifies the project, even when the folder names another project.
|
|
78
75
|
const candidateId = worktreeId ?? pathApi.basename(repositoryRoot);
|
|
79
76
|
const named = resolveProjectId(candidateId, projectIds, worktreeId ? 'git_worktree_origin' : 'repository_root');
|
|
77
|
+
// The origin remote decides first (#632). Only when the folder or the
|
|
78
|
+
// worktree's original repository names another current project that
|
|
79
|
+
// claims a repository of its own without its address may that project be
|
|
80
|
+
// this checkout too: then the person chooses rather than the owner
|
|
81
|
+
// switching silently (rec#125).
|
|
82
|
+
const byRemote = remote && remoteProject(remote, registered);
|
|
83
|
+
const namedProject = named?.personalProjectId
|
|
84
|
+
&& registered.find(({ project_id: projectId }) => projectId === named.personalProjectId);
|
|
85
|
+
if (byRemote?.personalProjectId && namedProject && named.personalProjectId !== byRemote.personalProjectId
|
|
86
|
+
&& namedProject.profile?.lifecycle !== 'archived' && claimsUnaddressedRepository(namedProject)) {
|
|
87
|
+
return unresolved('ambiguous', { candidateCount: 2, reason: 'repository_remote_conflict',
|
|
88
|
+
candidateProjectIds: [byRemote.personalProjectId, named.personalProjectId] });
|
|
89
|
+
}
|
|
90
|
+
if (byRemote) return byRemote;
|
|
91
|
+
// Without a recorded remote the folder names the project, as before,
|
|
92
|
+
// unless that project records another repository: then nothing matches
|
|
93
|
+
// and no registration under its ID is offered.
|
|
80
94
|
if (otherRepository(named)) return unresolved('unmatched', { reason: 'repository_remote_conflict' });
|
|
81
95
|
if (named) return named;
|
|
82
96
|
if (worktreeId) {
|
|
@@ -146,7 +160,7 @@ function worktreeOriginProjectId(gitMarkerPath, {
|
|
|
146
160
|
}
|
|
147
161
|
|
|
148
162
|
// A clone under another folder name: its origin URL equals exactly one
|
|
149
|
-
// project's recorded repository URL.
|
|
163
|
+
// project's own recorded repository URL.
|
|
150
164
|
function remoteProject(remote, projects) {
|
|
151
165
|
const matches = projectsWithRemote(projects, remote);
|
|
152
166
|
if (matches.length === 1) return matched(matches[0].project_id, 'git_remote');
|