fuli-context 0.25.1 → 0.27.0
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-Bp2Edkdg.js} +1 -1
- package/dist/web/assets/{AboutSectionHeading-BdhpM609.js → AboutSectionHeading-DFfY2f_Z.js} +1 -1
- package/dist/web/assets/{AgentAppsPage-5VW0uCTz.js → AgentAppsPage-CjyvPZSs.js} +1 -1
- package/dist/web/assets/{AgentAvatar-DlAQP7gm.js → AgentAvatar-w-2A3nsJ.js} +1 -1
- package/dist/web/assets/{AgentHand-FPFg9-Y1.js → AgentHand-BGGU49Jt.js} +1 -1
- package/dist/web/assets/{AgentManagement-CLFw9oV9.css → AgentManagement-Cc00RLSO.css} +1 -1
- package/dist/web/assets/{AgentManagement-UTe4I3WA.js → AgentManagement-MMGrwdD2.js} +2 -2
- package/dist/web/assets/{AgentMentionCopy-C5ExlutT.js → AgentMentionCopy-BAHZjubz.js} +1 -1
- package/dist/web/assets/{AgentName-C8mYbtKs.js → AgentName-CXlsC-4o.js} +1 -1
- package/dist/web/assets/{AgentProfilePage-DumsVHP1.css → AgentProfilePage-Ce25JSzZ.css} +1 -1
- package/dist/web/assets/{AgentProfilePage-BLeyT3By.js → AgentProfilePage-eDKbJJwY.js} +5 -5
- package/dist/web/assets/{AgentServicesPage-BXi152Xc.js → AgentServicesPage-CZwsN5U2.js} +1 -1
- package/dist/web/assets/{AppViewerPage-BR8ttEGa.js → AppViewerPage-6gWP6nAf.js} +1 -1
- package/dist/web/assets/{BackToTop-5_AQRMZl.js → BackToTop-Cs5_rV99.js} +1 -1
- package/dist/web/assets/{BoardCardFieldsMenu-Bb_Z9a4Q.js → BoardCardFieldsMenu-CvFrsIgy.js} +1 -1
- package/dist/web/assets/{BoardMoveMenu-B-f8O6cC.js → BoardMoveMenu-B5isxIcK.js} +1 -1
- package/dist/web/assets/{Breadcrumb-DtM5lZy5.js → Breadcrumb-BXTA4e-W.js} +1 -1
- package/dist/web/assets/CaptureChangePage-Ca72_PHc.js +1 -0
- package/dist/web/assets/{CopyFixPrompt-DlarhfPK.js → CopyFixPrompt-wGATZKOq.js} +1 -1
- package/dist/web/assets/{DataFormatPage-DwL4Ofc9.js → DataFormatPage-CQKkFhcH.js} +1 -1
- package/dist/web/assets/{DebugTurnPage-UpK_3ZWY.js → DebugTurnPage-CUqbuhgX.js} +1 -1
- package/dist/web/assets/{DebugTurnsPage-C0aZg5-3.js → DebugTurnsPage-HwaTG8Fa.js} +1 -1
- package/dist/web/assets/{DialogTitle-BQXOe8EK.js → DialogTitle-HYzAHbGg.js} +1 -1
- package/dist/web/assets/{EmployeeRedirectPage-BjWpXDSM.js → EmployeeRedirectPage-C2SHpAEF.js} +1 -1
- package/dist/web/assets/{EmployeeScopeDialog-Bt3ZlDyZ.js → EmployeeScopeDialog-yUCgujKT.js} +1 -1
- package/dist/web/assets/{EmployeeWorkbench-GtJIUD5G.js → EmployeeWorkbench-CbRJhkJO.js} +3 -3
- package/dist/web/assets/FieldRoot-BLcsuPMA.js +1 -0
- package/dist/web/assets/{FlaGrowth-OQtTLTng.js → FlaGrowth-DGnUPN7D.js} +1 -1
- package/dist/web/assets/{FlaOccupationKit-C-x4VrKk.js → FlaOccupationKit-DAJjSrmL.js} +1 -1
- package/dist/web/assets/{FlaTaskSheets-CoaF5CbQ.js → FlaTaskSheets-DRLgfrVC.js} +1 -1
- package/dist/web/assets/{FlasPage-CgIVOGFM.js → FlasPage-CMv2awKJ.js} +1 -1
- package/dist/web/assets/{GrowthLoading-VuVo2vLf.js → GrowthLoading-NLj2W4jj.js} +1 -1
- package/dist/web/assets/{HowtoPage-CZ3mOdLc.js → HowtoPage-CkGRrKpf.js} +1 -1
- package/dist/web/assets/InboxPage-Bv8XUdl8.css +1 -0
- package/dist/web/assets/InboxPage-DfQvtnyq.js +6 -0
- package/dist/web/assets/{KnowledgeDeleteButton-BlUnSG3b.js → KnowledgeDeleteButton-DaT-gTmm.js} +1 -1
- package/dist/web/assets/{KnowledgeHardDeleteSection-CznXBtHY.js → KnowledgeHardDeleteSection-C9d7DVLa.js} +1 -1
- package/dist/web/assets/{KnowledgeItemEditPage-DGRNkAYd.js → KnowledgeItemEditPage-BUKQK37o.js} +1 -1
- package/dist/web/assets/{KnowledgeItemSummaryCard-Co5JKBHl.js → KnowledgeItemSummaryCard-eLzjKvgN.js} +1 -1
- package/dist/web/assets/KnowledgeOrganizerPage-CiZ9JlNX.js +1 -0
- package/dist/web/assets/KnowledgePage-C3_Cvz4g.js +1 -0
- package/dist/web/assets/{KnowledgePeek-CwZVuSkf.css → KnowledgePeek-D6SeISIM.css} +1 -1
- package/dist/web/assets/KnowledgePeek-DtOOiARX.js +1 -0
- package/dist/web/assets/{KnowledgeTurnReceiptPage-Csyjimeg.js → KnowledgeTurnReceiptPage-Dne5NQ9q.js} +1 -1
- package/dist/web/assets/KnowledgeWorkspace-Cq_XYcma.js +4 -0
- package/dist/web/assets/KnowledgeWorkspace-DDg3tUb3.css +1 -0
- package/dist/web/assets/{MeAvatar-aY_q8cKs.js → MeAvatar-f6qxg9dN.js} +1 -1
- package/dist/web/assets/{MeLink-B0pNwVLa.js → MeLink-DTvFYaYE.js} +1 -1
- package/dist/web/assets/{MenuSeparator-BR-uLovR.js → MenuSeparator-CLmsZ9rj.js} +1 -1
- package/dist/web/assets/ModelSettingsPage-B38R-kBZ.css +1 -0
- package/dist/web/assets/ModelSettingsPage-COVaW4eh.js +1 -0
- package/dist/web/assets/NewSessionPanel-9yINjwyx.js +1 -0
- package/dist/web/assets/NewSessionPanel-CTdd7xpN.css +1 -0
- package/dist/web/assets/{NotFoundPage-Cr1MaPuk.js → NotFoundPage-CqevPz0_.js} +1 -1
- package/dist/web/assets/NoticeRow-D5MWTeBY.js +1 -0
- package/dist/web/assets/{OccupationsPage-CkVqZ2pz.js → OccupationsPage-BKd051j1.js} +1 -1
- package/dist/web/assets/OverviewPage-C90G_adj.js +1 -0
- package/dist/web/assets/{OverviewPage-Dr4jrXW4.css → OverviewPage-KVt4LcE-.css} +1 -1
- package/dist/web/assets/{PageColumns-DvehZlYm.js → PageColumns-Df60nEzj.js} +1 -1
- package/dist/web/assets/PageOutline-D5h1GuKt.css +1 -0
- package/dist/web/assets/PageOutline-HHUlu2x3.js +1 -0
- package/dist/web/assets/{PersonalProfilePage-TxsNr44t.js → PersonalProfilePage-DIDgG3NH.js} +1 -1
- package/dist/web/assets/PersonalProjectsPage-DwhlEpNg.js +1 -0
- package/dist/web/assets/{PinIcon-BTQsnxRY.js → PinIcon-DP-9Iisk.js} +1 -1
- package/dist/web/assets/{PopperContent-DtMksk76.js → PopperContent-DWCMeKSL.js} +1 -1
- package/dist/web/assets/{Presence-B0zMpCF4.js → Presence-Ba3jqPYx.js} +1 -1
- package/dist/web/assets/{ProfileAuthorChip-BqT9Vv65.js → ProfileAuthorChip-BKZJC_N2.js} +1 -1
- package/dist/web/assets/ProjectAgentsPage-BefVF9ZP.js +5 -0
- package/dist/web/assets/ProjectJudgmentPolicy-BHyiqKLV.css +1 -0
- package/dist/web/assets/ProjectJudgmentPolicy-BJ5sVuFI.js +2 -0
- package/dist/web/assets/{RecentNotices-vJobVOcm.js → RecentNotices-CDHGIky1.js} +1 -1
- package/dist/web/assets/{RoundtablesPage-C3dYekQ5.js → RoundtablesPage-D5Xc3yun.js} +2 -2
- package/dist/web/assets/{RovingFocusGroup-CUqyjFSs.js → RovingFocusGroup-DoGybG5V.js} +1 -1
- package/dist/web/assets/{RovingFocusItem-CyyuWXjE.js → RovingFocusItem-B455TzUI.js} +1 -1
- package/dist/web/assets/{SessionMigrationPage-DukDM0TP.js → SessionMigrationPage-BAzXqxxO.js} +1 -1
- package/dist/web/assets/{SessionRecordsPage-DZ5ZBiuS.js → SessionRecordsPage-C6U5YGSt.js} +1 -1
- package/dist/web/assets/SettingsPage-7mNL3bwe.js +1 -0
- package/dist/web/assets/SettingsPage-Cku8SoLk.css +1 -0
- package/dist/web/assets/{SharedJefaReportPage-DUY03VLS.js → SharedJefaReportPage-rH6I4cI9.js} +1 -1
- package/dist/web/assets/{TagVocabularyPage-BKLFJiSu.js → TagVocabularyPage-Brpr-Q-y.js} +1 -1
- package/dist/web/assets/{TaskBlockerClear-BxOiiuK8.js → TaskBlockerClear-BHOMZYwm.js} +1 -1
- package/dist/web/assets/TaskBlockerNotice-POmS2neR.js +1 -0
- package/dist/web/assets/{TaskReason-D5j7L8tl.js → TaskReason-RKKs4Kb5.js} +1 -1
- package/dist/web/assets/{TeamCard-CDunbIrP.js → TeamCard-8hjo1h0x.js} +1 -1
- package/dist/web/assets/{TeamCardsWidget-CUW-fPn7.js → TeamCardsWidget-DIHFUDrF.js} +1 -1
- package/dist/web/assets/{TeamIsland-CmpDmIX2.js → TeamIsland-DdhEcVOZ.js} +1 -1
- package/dist/web/assets/{Teleport-Dzdr8umQ.js → Teleport-CukHuRhz.js} +1 -1
- package/dist/web/assets/{TextField-BPhEpEv9.js → TextField-G2fJ4aFQ.js} +1 -1
- package/dist/web/assets/{TonborgDelegationSwitch-C1nkJqkJ.js → TonborgDelegationSwitch-BA3Qb8Wr.js} +1 -1
- package/dist/web/assets/{UiChip-BEQ067LV.js → UiChip-BHEJVA6L.js} +1 -1
- package/dist/web/assets/{UiChip-DulygSq8.css → UiChip-BiUmvjdz.css} +1 -1
- package/dist/web/assets/{UiDialog-JjqzOA0z.js → UiDialog-bUwGQz96.js} +1 -1
- package/dist/web/assets/{UiDisclosure-L6GEJHSw.js → UiDisclosure-B1pd8qXW.js} +1 -1
- package/dist/web/assets/UiIcon-K7OhYTSy.js +1 -0
- package/dist/web/assets/{UiIconButton-ZCBdABdM.css → UiIconButton-D3R6WwwI.css} +1 -1
- package/dist/web/assets/UiIconButton-DlLZ5_Yc.js +1 -0
- package/dist/web/assets/{UiSegmented-CIIm3KoV.js → UiSegmented-CYrTxDn1.js} +1 -1
- package/dist/web/assets/{UiWeight-D-2iZ_Kc.js → UiWeight-eAw682rH.js} +1 -1
- package/dist/web/assets/{VirtualDirectoryList-BV8KsA-Z.js → VirtualDirectoryList-BGum1GZc.js} +1 -1
- package/dist/web/assets/{VisuallyHidden-BxKxuXRF.js → VisuallyHidden-Ck6D7rq-.js} +1 -1
- package/dist/web/assets/{VisuallyHiddenInput-DD4vhlqT.js → VisuallyHiddenInput-DXWhIUlB.js} +1 -1
- package/dist/web/assets/WidgetSlot-D6vCSWaz.js +2 -0
- package/dist/web/assets/{WorkbenchListHead-B0TjHsTO.js → WorkbenchListHead-CR_fDYYr.js} +1 -1
- package/dist/web/assets/WorkbenchListPage-Zr5PW-cf.js +1 -0
- package/dist/web/assets/_plugin-vue_export-helper-BRS32yXs.js +9 -0
- package/dist/web/assets/{agent-apps-B1Je-mpY.js → agent-apps-D0eG1aMx.js} +1 -1
- package/dist/web/assets/agent-occupation-CEd3bAhb.js +1 -0
- package/dist/web/assets/{agent-pins-DxHlJ96z.js → agent-pins-OYjJQ38F.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-D3VeY6Yz.js} +1 -1
- package/dist/web/assets/{attach-closest-edge-DUc_VUVO.js → attach-closest-edge-C75rKXiz.js} +1 -1
- package/dist/web/assets/{attention-store-Bod20yM3.js → attention-store-k4mPCefZ.js} +1 -1
- package/dist/web/assets/{badge-tMy2Qr94.js → badge-B2rll-68.js} +1 -1
- package/dist/web/assets/{button-DnKFsImW.js → button-q6JhonlL.js} +1 -1
- package/dist/web/assets/{card-Ccu7HCNb.js → card-CPQiMHSu.js} +1 -1
- package/dist/web/assets/{catalog-CJUV8OJ6.js → catalog-CBPcEkXC.js} +1 -1
- package/dist/web/assets/{checkbox-D1R6kTUB.js → checkbox-C67upxzl.js} +1 -1
- package/dist/web/assets/{client-D-G2i5VU.js → client-KFFphxpK.js} +1 -1
- package/dist/web/assets/{client-links-store-UgmraFBZ.js → client-links-store-Cw9c8MWc.js} +1 -1
- package/dist/web/assets/{combobox-C7QLYGzs.js → combobox-yHRJ-zN-.js} +1 -1
- package/dist/web/assets/console-BCR2S3AF.js +1 -0
- package/dist/web/assets/conversation-launcher-settings-28CqC1Gn.js +1 -0
- package/dist/web/assets/{copy-mention-C0EJhDPy.js → copy-mention-C4Nos381.js} +1 -1
- package/dist/web/assets/{dialog-Bbq93W68.js → dialog-Cjoy4nsv.js} +1 -1
- package/dist/web/assets/{dist-PpsW5ZE3.js → dist-CaVgk2QB.js} +1 -1
- package/dist/web/assets/{dist-Dd8yFhv6.js → dist-D73EXNtz.js} +1 -1
- package/dist/web/assets/{dropdown-menu-1fGUL0V3.js → dropdown-menu-Dto6hjoc.js} +1 -1
- package/dist/web/assets/{field-DjVv_wIS.js → field-BaUOZtN5.js} +1 -1
- package/dist/web/assets/{format-bytes-BKq_E0Hs.js → format-bytes-D5eCtdg1.js} +1 -1
- package/dist/web/assets/{hover-card-BO-929hq.js → hover-card-Bg0dulGq.js} +1 -1
- package/dist/web/assets/index-B-aRUs9w.js +24 -0
- package/dist/web/assets/index-HRZACEmh.css +1 -0
- package/dist/web/assets/{input-DmwRmYO2.js → input-Dxh25T4M.js} +1 -1
- package/dist/web/assets/{label-BvwPUTS4.js → label-CbrduZla.js} +1 -1
- package/dist/web/assets/label-table-_YAtPkRI.js +1 -0
- package/dist/web/assets/{model-Tmn6HvL-.js → model--lR9icA_.js} +1 -1
- package/dist/web/assets/{model-DpkZUZUL.js → model-Bgh75q3j.js} +1 -1
- package/dist/web/assets/model-Big7Ppeu.js +1 -0
- package/dist/web/assets/{model-BF_ZMPLi.js → model-Blk5Wgg2.js} +1 -1
- package/dist/web/assets/{model-0TZRbkN2.js → model-CWMP5GOL.js} +1 -1
- package/dist/web/assets/{model-y7OUvtKz.js → model-D4DkvMH-.js} +1 -1
- package/dist/web/assets/{model-CaR7VPg7.js → model-DcsCYhXk.js} +1 -1
- package/dist/web/assets/model-ZwOxwk2m.js +3 -0
- package/dist/web/assets/{model-Dfe81jZT.js → model-jC3F-J2F.js} +1 -1
- package/dist/web/assets/{motion-mAmbRj_M.js → motion-BL3lek9c.js} +1 -1
- package/dist/web/assets/{motion-C1fZrqmI.js → motion-_MepnmMC.js} +1 -1
- package/dist/web/assets/{motion-preference-Dz9S1bZa.js → motion-preference-D3UMHojT.js} +1 -1
- package/dist/web/assets/{occupation-catalog-_SnxxRbK.js → occupation-catalog-BeJ2O9nm.js} +1 -1
- package/dist/web/assets/{occupation-kits-DFC6Auuc.js → occupation-kits-Bkiu6MzD.js} +1 -1
- package/dist/web/assets/{option-DC8frdbr.js → option-Crs2MA88.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-Bz5r7A_Q.js} +1 -1
- package/dist/web/assets/{page-title-Cm9u_qw1.js → page-title-KYZApNys.js} +1 -1
- package/dist/web/assets/{person-profile-BH2AzOfw.js → person-profile-mhLxWtq7.js} +1 -1
- package/dist/web/assets/{popover-DW__YCSE.js → popover-CMahoDLo.js} +1 -1
- package/dist/web/assets/popup-host-DKN99Od3.js +1 -0
- package/dist/web/assets/{profile-model-DtISOJ-X.js → profile-model-DWutKuCZ.js} +1 -1
- package/dist/web/assets/{project-board-layout-CTM8kAgq.js → project-board-layout-CWMHQuUA.js} +1 -1
- package/dist/web/assets/{project-capture-B3pNhpFF.js → project-capture-CebFSnn0.js} +1 -1
- package/dist/web/assets/{project-origin-BO8Ngccf.js → project-origin-BnUVE0be.js} +1 -1
- package/dist/web/assets/{quick-edit-api-B169r5Qb.js → quick-edit-api-YwzoODMc.js} +1 -1
- package/dist/web/assets/{radio-group-DqA46cXQ.js → radio-group-vRt8y8mF.js} +1 -1
- package/dist/web/assets/review-api-WhNB3ppo.js +1 -0
- package/dist/web/assets/{review-list-BbV-Mle7.js → review-list-_PN7ljSY.js} +1 -1
- package/dist/web/assets/review-store-CobX9No6.js +1 -0
- package/dist/web/assets/{role-names-By0xdfTn.js → role-names-wD9l8uz5.js} +1 -1
- package/dist/web/assets/{roundtable-live-u9qUU6aA.js → roundtable-live-Dm4Vwo75.js} +1 -1
- package/dist/web/assets/{runtime-dom.esm-bundler-DhFy4Djs.js → runtime-dom.esm-bundler-DzfwnSj8.js} +1 -1
- package/dist/web/assets/{select-TqPBladU.js → select-B9mVptgx.js} +1 -1
- package/dist/web/assets/{session-launch-offers-CtQeY4Qk.js → session-launch-offers-C9UkoKUJ.js} +1 -1
- package/dist/web/assets/{settings-autosave-C7vW3_SP.js → settings-autosave-L0zSXnBO.js} +1 -1
- package/dist/web/assets/{npm-copies-GRyMAduA.css → settings-tabs-C9VDs91j.css} +1 -1
- package/dist/web/assets/settings-tabs-DTbgqX8g.js +1 -0
- package/dist/web/assets/{shared-report-DQBSigHB.js → shared-report-0FO_y0sa.js} +3 -3
- package/dist/web/assets/source-adapters-r-NIqO77.js +1 -0
- package/dist/web/assets/{switch-D7w_0h3m.js → switch-BCzrGc4W.js} +1 -1
- package/dist/web/assets/{tabs-DR8k0PN9.js → tabs-CB38D8N0.js} +1 -1
- package/dist/web/assets/{task-card-fields-X1ZYCm_j.js → task-card-fields-B1z1PmTT.js} +1 -1
- package/dist/web/assets/task-evidence-DydhKn9x.js +1 -0
- package/dist/web/assets/{task-labels-LuXoQhF9.js → task-labels-DTc5OuFF.js} +1 -1
- package/dist/web/assets/{task-reason-ChpbGtyx.js → task-reason-CneTZWRv.js} +1 -1
- package/dist/web/assets/{team-sheets-DYCQqa8I.js → team-sheets-CUt3Vp2s.js} +1 -1
- package/dist/web/assets/{textarea-D53VYanK.js → textarea-DJ0ucCir.js} +1 -1
- package/dist/web/assets/{ui-DmNbL8MW.js → ui-M_UKzb_A.js} +1 -1
- package/dist/web/assets/{useAgentRecords-Hy9nqMs7.js → useAgentRecords-CwkwZy8H.js} +1 -1
- package/dist/web/assets/{useAgentWorkSummary-mloD4p12.js → useAgentWorkSummary-DoiCqME7.js} +1 -1
- package/dist/web/assets/{useApi-CROJJdhE-DnUGUb8O.js → useApi-CROJJdhE-CenjhnR5.js} +1 -1
- package/dist/web/assets/{useClipboardCopy-BTuQMeWI.js → useClipboardCopy-Ba86PzjA.js} +1 -1
- package/dist/web/assets/{useFocusReturn-4hUmSzj9.js → useFocusReturn-B0ErBkt_.js} +1 -1
- package/dist/web/assets/{useForwardExpose-BDmW7q7u.js → useForwardExpose-DJ6fcpI2.js} +1 -1
- package/dist/web/assets/{useForwardPropsEmits-BzT2luD4.js → useForwardPropsEmits-D1vvIUcB.js} +1 -1
- package/dist/web/assets/useForwardScopeId-CoSQtoUU.js +1 -0
- package/dist/web/assets/{useKnowledgeConfirm-L8wnJCuX.js → useKnowledgeConfirm-781LUhoU.js} +1 -1
- package/dist/web/assets/{useKnowledgeItemPeek-C_huXt6E.js → useKnowledgeItemPeek-CnuCvJKQ.js} +1 -1
- package/dist/web/assets/{useMinimumLoadingDisplay-Dkl8NQru.js → useMinimumLoadingDisplay-DCC9EfQ9.js} +1 -1
- package/dist/web/assets/{usePageTools-CbDOdIrg.js → usePageTools-BaB021q0.js} +1 -1
- package/dist/web/assets/usePrimitiveElement-iRKqOVuY.js +1 -0
- package/dist/web/assets/{useProjectAgentRoster-BBmRvcgr.js → useProjectAgentRoster-M3wbWpS-.js} +1 -1
- package/dist/web/assets/{useRoutePeek-CRbCDqsm.js → useRoutePeek-CYg5JyYt.js} +1 -1
- package/dist/web/assets/useTeamPeople-CPC62La3.js +1 -0
- package/dist/web/assets/{useTeamWork-CXEQwF4n.js → useTeamWork-Dql3_qLV.js} +1 -1
- package/dist/web/assets/{useTypeahead-CVYuxPOD.js → useTypeahead-DYb5kVkH.js} +1 -1
- package/dist/web/assets/{utils-BnrWDlfm.js → utils-B7sUn8rD.js} +1 -1
- package/dist/web/assets/{utils-BsGjKHV8.js → utils-Cli0RsEd.js} +1 -1
- package/dist/web/assets/{verification-DbCo_dnY.js → verification-DY7kllTI.js} +1 -1
- package/dist/web/assets/version-CBgUEmnM.js +1 -0
- package/dist/web/assets/{vue-router-D4_ms6om.js → vue-router-ab7kABlJ.js} +1 -1
- package/dist/web/index.html +82 -86
- package/docs/agent-conversations-and-collaboration.md +6 -0
- package/docs/agent-interface-architecture.md +4 -1
- package/docs/agent-roundtable.md +8 -2
- package/docs/client-connections.md +33 -5
- package/docs/employee-agents.md +1 -1
- package/docs/external-knowledge-architecture.md +8 -3
- package/docs/judgment-and-autonomy.md +6 -4
- package/docs/project-agent-memory.md +12 -1
- package/graph-provider/fuli_graph/app.py +12 -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 +0 -1
- package/graph-provider/fuli_graph/knowledge_index_scan.py +13 -6
- package/graph-provider/fuli_graph/knowledge_search.py +111 -45
- package/graph-provider/fuli_graph/knowledge_semantic.py +9 -0
- 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 +1 -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/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 +0 -27
- package/graph-provider/fuli_graph/project_agent_task_models.py +0 -18
- 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_recruitment.py +1 -61
- 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_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 +2 -2
- package/package.json +1 -2
- package/packages/roundtable/src/agents/codex/wake.js +25 -2
- package/packages/roundtable/src/agents/session-log.js +29 -7
- package/packages/roundtable/src/host.js +3 -0
- package/packages/roundtable/src/roundtable/delivery-state.js +1 -1
- 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 +198 -53
- package/packages/roundtable/src/roundtable/stand-in.js +64 -0
- package/packages/roundtable/src/roundtable/store.js +34 -23
- package/packages/roundtable/src/roundtable/wake-claim-release.js +88 -0
- package/packages/roundtable/src/roundtable/wake-ladder.js +63 -0
- package/packages/roundtable/src/roundtable/wake.js +10 -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 +39 -0
- 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 +6 -23
- package/skills/operating-fuli/SKILL.md +36 -8
- package/skills/operating-fuli/references/workflow-recipes.md +3 -2
- package/src/agent-apps/host-tools/catalog.js +2 -25
- 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/tools.js +2 -2
- 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 +5 -43
- package/src/agent-tools/interface-catalog.js +11 -15
- package/src/agent-tools/interface-definitions.js +0 -7
- 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 +0 -1
- package/src/agent-tools/project-agent-tool-definitions.js +1 -17
- package/src/agent-tools/project-organizing-definitions.js +31 -0
- package/src/agent-tools/project-space-definitions.js +4 -83
- package/src/agent-tools/retired-tools.js +37 -0
- 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 +3 -11
- 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 +19 -4
- package/src/agents/jsonl-tail.js +35 -0
- package/src/agents/lifecycle-message.js +15 -4
- 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 +8 -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 +1 -1
- package/src/conversations/person-words.js +0 -5
- 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/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/federated-application.js +11 -132
- package/src/graphiti/first-run-guide.js +25 -4
- 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 +13 -2
- 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-workflows.js +0 -16
- package/src/graphiti/provider-client.js +26 -167
- package/src/graphiti/reply-echo-group.js +7 -6
- package/src/graphiti/roundtable-host.js +5 -0
- package/src/graphiti/session-knowledge-capture.js +5 -31
- package/src/graphiti/task-entry-owner-change.js +66 -0
- package/src/graphiti/task-entry-preferences.js +16 -4
- package/src/graphiti/task-entry-project-scope.js +5 -1
- package/src/graphiti/task-knowledge-checkpoint.js +30 -14
- package/src/graphiti/topic-proposals.js +31 -8
- package/src/graphiti/topic-team-handoff.js +121 -0
- package/src/graphiti/workflow-learning.js +0 -25
- package/src/graphiti/workspace-provider-client.js +4 -50
- package/src/http/api-router.js +15 -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/judgment/acceptance.js +2 -2
- package/src/judgment/agent-view.js +8 -8
- package/src/judgment/backend.js +8 -2
- package/src/judgment/conversation.js +75 -69
- package/src/judgment/engine.js +33 -36
- package/src/judgment/explain-method.js +8 -7
- package/src/judgment/http.js +3 -1
- package/src/judgment/question-options.js +117 -74
- package/src/judgment/question-tools.js +54 -34
- package/src/judgment/review-delegation.js +16 -3
- package/src/judgment/review-prompt.js +29 -33
- package/src/judgment/routing.js +4 -3
- package/src/judgment/service.js +50 -8
- 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 +12 -32
- package/src/mcp/direct-call.js +0 -2
- package/src/mcp/preference-delivery.js +4 -2
- package/src/mcp/provider-task-context-registry.js +14 -0
- package/src/mcp/session-id.js +1 -33
- package/src/mcp/tool-annotations.js +3 -44
- 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 +17 -4
- package/src/model-backends/port.js +10 -4
- package/src/model-backends/runtime.js +6 -13
- package/src/model-backends/secret-store.js +2 -20
- package/src/native-runtime/runtime.js +13 -2
- package/src/presence/windows-helper-pin.js +1 -1
- package/src/project-organizing/agent-tool.js +65 -0
- package/src/project-organizing/model-tiers.js +31 -0
- package/src/project-organizing/port.js +130 -0
- package/src/server.js +22 -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/whats-new/lines/0.25.2.json +13 -0
- package/src/whats-new/lines/0.27.0.json +13 -0
- 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/FieldRoot-DRf4wM5x.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/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/OverviewPage-BkJ17OYv.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/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-CWGk0XZ_.js +0 -1
- package/dist/web/assets/SettingsPage-Cj3pEWcd.css +0 -1
- package/dist/web/assets/TaskBlockerNotice-iUiD3BuZ.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/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-DF0TcfPY.css +0 -1
- package/dist/web/assets/index-RWEx1M91.js +0 -24
- 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/source-adapters-DPJzumzC.js +0 -1
- package/dist/web/assets/task-evidence-DIbw2U42.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-Ci3l8Vnb.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
|
@@ -152,7 +152,12 @@ class StoreAgentDelegations:
|
|
|
152
152
|
lead = policy.team_lead_agent_id
|
|
153
153
|
sender = context.get('project_agent_id')
|
|
154
154
|
target_project_id = request.target_personal_project_id or project_id
|
|
155
|
-
|
|
155
|
+
# The same FLA in another of its sessions is another instance of it
|
|
156
|
+
# (rec#109): it needs no reporting line, but never its own session.
|
|
157
|
+
same_agent = sender is not None and sender == request.agent_id
|
|
158
|
+
if same_agent and request.target_session_id and request.target_session_id == context.get('session_id'):
|
|
159
|
+
raise HTTPException(403, 'An Agent cannot wake the session it is working in')
|
|
160
|
+
if target_project_id == project_id and not same_agent and not direct_reporting_link(policy, sender, request.agent_id):
|
|
156
161
|
raise HTTPException(403, 'Communicate only with the immediate reporting lead or direct reports')
|
|
157
162
|
sender_profile_updated_at = None
|
|
158
163
|
if getattr(policy, 'sub_teams', []):
|
|
@@ -377,32 +377,6 @@ class ProjectAgentExecutorRoutingRuleUpdate(StrictModel):
|
|
|
377
377
|
return self
|
|
378
378
|
|
|
379
379
|
|
|
380
|
-
class ProjectAgentExecutorSelectionRequest(StrictModel):
|
|
381
|
-
personal_space_id: str = Field(min_length=1, max_length=128)
|
|
382
|
-
personal_project_id: str = Field(min_length=1, max_length=128)
|
|
383
|
-
task_id: str = Field(min_length=1, max_length=128)
|
|
384
|
-
agent_id: str = Field(min_length=1, max_length=128)
|
|
385
|
-
work_kind: str = Field(min_length=1, max_length=128)
|
|
386
|
-
required_capabilities: list[str] = Field(default_factory=list, max_length=32)
|
|
387
|
-
model_strategy: ProjectAgentModelStrategy = Field(
|
|
388
|
-
default_factory=ProjectAgentModelStrategy
|
|
389
|
-
)
|
|
390
|
-
executor_policy: ProjectAgentExecutorPolicy | None = None
|
|
391
|
-
idempotency_key: str = Field(min_length=8, max_length=256)
|
|
392
|
-
source_application: SourceApplication | None = None
|
|
393
|
-
source_session_id: str | None = Field(default=None, min_length=1, max_length=256)
|
|
394
|
-
|
|
395
|
-
@field_validator('required_capabilities')
|
|
396
|
-
@classmethod
|
|
397
|
-
def validate_capabilities(cls, value: list[str]) -> list[str]:
|
|
398
|
-
return unique_text_list(value, 'required executor capabilities')
|
|
399
|
-
|
|
400
|
-
@model_validator(mode='after')
|
|
401
|
-
def reject_sensitive_values(self):
|
|
402
|
-
reject_credentials(self, 'executor selection request')
|
|
403
|
-
return self
|
|
404
|
-
|
|
405
|
-
|
|
406
380
|
class ProjectAgentExecutorSelection(StrictModel):
|
|
407
381
|
selection_id: str
|
|
408
382
|
task_id: str
|
|
@@ -51,8 +51,6 @@ from .project_agent_coordination_models import (
|
|
|
51
51
|
from .project_agent_task_models import (
|
|
52
52
|
ProjectAgentActivityResult,
|
|
53
53
|
ProjectAgentRecruitmentDecision,
|
|
54
|
-
ProjectAgentRecruitmentPolicyRecord,
|
|
55
|
-
ProjectAgentRecruitmentPolicyUpdate,
|
|
56
54
|
ProjectAgentRecruitmentRecord,
|
|
57
55
|
ProjectAgentTaskActivityCreate,
|
|
58
56
|
ProjectAgentTaskBlockerClear,
|
|
@@ -473,31 +471,6 @@ def register_project_agent_routes(
|
|
|
473
471
|
) -> ProjectAgentCoordinationPolicyRecord:
|
|
474
472
|
return await store.update_project_agent_coordination_policy(actor, request)
|
|
475
473
|
|
|
476
|
-
@application.get(
|
|
477
|
-
'/v1/project-agent-recruitment-policy',
|
|
478
|
-
response_model=ProjectAgentRecruitmentPolicyRecord,
|
|
479
|
-
deprecated=True,
|
|
480
|
-
)
|
|
481
|
-
async def get_project_agent_recruitment_policy(
|
|
482
|
-
actor: Actor,
|
|
483
|
-
personal_space_id: Annotated[str, Query(min_length=1, max_length=128)],
|
|
484
|
-
) -> ProjectAgentRecruitmentPolicyRecord:
|
|
485
|
-
return await store.get_project_agent_recruitment_policy(
|
|
486
|
-
actor,
|
|
487
|
-
personal_space_id,
|
|
488
|
-
)
|
|
489
|
-
|
|
490
|
-
@application.put(
|
|
491
|
-
'/v1/project-agent-recruitment-policy',
|
|
492
|
-
response_model=ProjectAgentRecruitmentPolicyRecord,
|
|
493
|
-
deprecated=True,
|
|
494
|
-
)
|
|
495
|
-
async def update_project_agent_recruitment_policy(
|
|
496
|
-
request: ProjectAgentRecruitmentPolicyUpdate,
|
|
497
|
-
actor: Actor,
|
|
498
|
-
) -> ProjectAgentRecruitmentPolicyRecord:
|
|
499
|
-
return await store.update_project_agent_recruitment_policy(actor, request)
|
|
500
|
-
|
|
501
474
|
@application.get(
|
|
502
475
|
'/v1/project-agent-recruitments',
|
|
503
476
|
response_model=list[ProjectAgentRecruitmentRecord],
|
|
@@ -832,24 +832,6 @@ class ProjectAgentTaskRouteResult(StrictModel):
|
|
|
832
832
|
client_notice: str | None = None
|
|
833
833
|
|
|
834
834
|
|
|
835
|
-
class ProjectAgentRecruitmentPolicyRecord(StrictModel):
|
|
836
|
-
personal_space_id: str
|
|
837
|
-
confirmation_mode: ProjectAgentRecruitmentConfirmationMode = 'automatic'
|
|
838
|
-
updated_at: datetime | None = None
|
|
839
|
-
policy_status: Literal['superseded'] = 'superseded'
|
|
840
|
-
applies_to_recruitment: Literal[False] = False
|
|
841
|
-
warning: str = (
|
|
842
|
-
'Legacy storage only; this setting does not control recruitment. '
|
|
843
|
-
'Use update_project_agent_coordination_policy with the exact project '
|
|
844
|
-
'and askBeforeRecruitment to change effective authorization.'
|
|
845
|
-
)
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
class ProjectAgentRecruitmentPolicyUpdate(StrictModel):
|
|
849
|
-
personal_space_id: str = Field(min_length=1, max_length=128)
|
|
850
|
-
confirmation_mode: ProjectAgentRecruitmentConfirmationMode
|
|
851
|
-
|
|
852
|
-
|
|
853
835
|
class ProjectAgentRecruitmentDecision(StrictModel):
|
|
854
836
|
personal_space_id: str = Field(min_length=1, max_length=128)
|
|
855
837
|
personal_project_id: str = Field(min_length=1, max_length=128)
|
|
@@ -21,7 +21,9 @@ async def read_employee_work_log(store, space_id, project_id, agent_id):
|
|
|
21
21
|
for row in rows:
|
|
22
22
|
record = json.loads(row['record_json'])
|
|
23
23
|
checkpoint = record.get('checkpoint') or {}
|
|
24
|
-
|
|
24
|
+
# The latest amendment is the current outcome; the original stays in the record (rec#85).
|
|
25
|
+
current = (checkpoint.get('amendments') or [checkpoint])[-1]
|
|
26
|
+
log = current.get('work_log') or {}
|
|
25
27
|
result.append({
|
|
26
28
|
'task_context_token': record['token'],
|
|
27
29
|
'source_application': record['source_application'],
|
|
@@ -29,7 +31,7 @@ async def read_employee_work_log(store, space_id, project_id, agent_id):
|
|
|
29
31
|
'created_at': record['created_at'],
|
|
30
32
|
'status': (log.get('status', 'unreported') if row['completed']
|
|
31
33
|
else 'running' if row.get('current') else 'incomplete'),
|
|
32
|
-
'summary': log.get('summary') or
|
|
34
|
+
'summary': log.get('summary') or current.get('reason')
|
|
33
35
|
or 'The employee has not submitted a work summary for this task.',
|
|
34
36
|
'memory_updated': bool(row.get('memory_updated')),
|
|
35
37
|
})
|
|
@@ -143,7 +143,8 @@ async def apply_knowledge_project_action(
|
|
|
143
143
|
item_kind=request.item_kind,
|
|
144
144
|
target_project_id=target_project_id,
|
|
145
145
|
reason=request.reason,
|
|
146
|
-
|
|
146
|
+
# The person's own move only with the proof, never by claim.
|
|
147
|
+
operation_actor='human' if _human_action(actor, request) else 'agent',
|
|
147
148
|
),
|
|
148
149
|
)
|
|
149
150
|
status = 'created' if project_created else 'linked'
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""Node labels and properties earlier FULI versions wrote and no code writes
|
|
2
|
+
or reads now.
|
|
3
|
+
|
|
4
|
+
The stored graph format is frozen: a graph that has these nodes keeps them,
|
|
5
|
+
and the migrations that declared their labels keep declaring them. They are
|
|
6
|
+
named here, as Cypher patterns, so the format checks
|
|
7
|
+
(tests/test_graph_format.py, tests/test_graph_field_contract.py) still see
|
|
8
|
+
every declared label and property in the code and a future cleanup migration
|
|
9
|
+
has one place to start from.
|
|
10
|
+
|
|
11
|
+
Retired on 2026-11-11 with their features: the personal-global preference
|
|
12
|
+
decision preview (it could never be applied), the workflow candidate review
|
|
13
|
+
with its rules (nothing recorded observations to review), and public projects
|
|
14
|
+
(team proposals, project-to-project relations and common-knowledge
|
|
15
|
+
promotion; the promotion records a person already has stay readable and
|
|
16
|
+
hard-deletable).
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
RETIRED_NODE_PATTERNS = (
|
|
20
|
+
'(:FuliPersonalGlobalPreferenceDecisionPreview)',
|
|
21
|
+
'(:FuliWorkflowReviewPreview)',
|
|
22
|
+
'(:FuliWorkflowReviewEvent)',
|
|
23
|
+
'(:FuliWorkflowRule)',
|
|
24
|
+
'(:FuliProposal {submitted_by, decision_note})',
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
RETIRED_PROPERTY_PATTERNS = (
|
|
28
|
+
'()-[:FULI_PROJECT_RELATION {decision_note}]->()',
|
|
29
|
+
'(:FuliCommonKnowledgePromotion {duplicate_item_ids})',
|
|
30
|
+
)
|
|
@@ -4,7 +4,6 @@ from fastapi import HTTPException, status
|
|
|
4
4
|
|
|
5
5
|
from .auth import issue_access_token, token_hash
|
|
6
6
|
from .models import PrincipalResult, SpaceCreate, SpaceRecord
|
|
7
|
-
from .project_management import publish_project
|
|
8
7
|
from .provider_values import graphiti_group_id, now_utc
|
|
9
8
|
|
|
10
9
|
|
|
@@ -107,20 +106,13 @@ class StoreIdentity:
|
|
|
107
106
|
return PrincipalResult(principal_id=principal_id, access_token=access_token)
|
|
108
107
|
|
|
109
108
|
async def create_space(self, actor: dict, request: SpaceCreate) -> SpaceRecord:
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
# Public projects were removed: a workspace provider serves what it already
|
|
110
|
+
# holds and takes no new project or release; only a personal space is created.
|
|
111
|
+
if self.settings.provider_mode != 'personal' or request.kind != 'personal':
|
|
112
112
|
raise HTTPException(
|
|
113
113
|
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
|
|
114
|
-
detail=
|
|
114
|
+
detail='Public projects were removed; only a personal provider creates a personal space',
|
|
115
115
|
)
|
|
116
|
-
if request.kind == 'project' and request.profile:
|
|
117
|
-
if any(source.sensitivity != 'normal' for source in request.profile.sources):
|
|
118
|
-
raise HTTPException(
|
|
119
|
-
status_code=422,
|
|
120
|
-
detail='private or restricted project sources cannot be published',
|
|
121
|
-
)
|
|
122
|
-
if request.kind == 'project':
|
|
123
|
-
return await publish_project(self, actor, request)
|
|
124
116
|
space_id = str(uuid4())
|
|
125
117
|
group_id = graphiti_group_id(self.settings.provider_id, request.kind, space_id)
|
|
126
118
|
created_at = now_utc()
|
|
@@ -233,7 +225,3 @@ class StoreIdentity:
|
|
|
233
225
|
def _require_personal(self) -> None:
|
|
234
226
|
if self.settings.provider_mode != 'personal':
|
|
235
227
|
raise HTTPException(status_code=404, detail='personal provider endpoint')
|
|
236
|
-
|
|
237
|
-
def _require_workspace(self) -> None:
|
|
238
|
-
if self.settings.provider_mode != 'workspace':
|
|
239
|
-
raise HTTPException(status_code=404, detail='workspace provider endpoint')
|
|
@@ -919,10 +919,3 @@ class StoreProjectAgentExecutorLearning:
|
|
|
919
919
|
if item.evidence_kind in {'rework_requested'}:
|
|
920
920
|
return 'rework', 1.0
|
|
921
921
|
return 'failure', 1.0
|
|
922
|
-
|
|
923
|
-
record_executor_outcome_evidence = record_project_agent_executor_outcome_evidence
|
|
924
|
-
list_executor_outcome_evidence = list_project_agent_executor_outcome_evidence
|
|
925
|
-
list_executor_outcome_aggregates = list_project_agent_executor_outcome_aggregates
|
|
926
|
-
ignore_executor_outcome_evidence = ignore_project_agent_executor_outcome_evidence
|
|
927
|
-
reset_executor_outcomes = reset_project_agent_executor_outcomes
|
|
928
|
-
aggregate_executor_outcomes = aggregate_project_agent_executor_outcomes
|
|
@@ -1107,21 +1107,13 @@ class StoreProjectAgentExecutors(
|
|
|
1107
1107
|
|
|
1108
1108
|
# Short aliases make the mixin convenient for provider/facade adapters and
|
|
1109
1109
|
# keep the public naming independent from the eventual HTTP route names.
|
|
1110
|
-
register_executor = register_project_agent_executor
|
|
1111
1110
|
upsert_executor = upsert_project_agent_executor
|
|
1112
1111
|
authorize_executor = authorize_project_agent_executor
|
|
1113
|
-
record_executor_preflight = record_project_agent_executor_preflight
|
|
1114
|
-
record_executor_health = record_project_agent_executor_health
|
|
1115
1112
|
list_executors = list_project_agent_executors
|
|
1116
1113
|
get_executor = get_project_agent_executor
|
|
1117
|
-
archive_executor = archive_project_agent_executor
|
|
1118
|
-
update_executor_priority = update_project_agent_executor_priority
|
|
1119
|
-
create_executor_routing_rule = create_project_agent_executor_routing_rule
|
|
1120
1114
|
list_executor_routing_rules = list_project_agent_executor_routing_rules
|
|
1121
1115
|
update_executor_routing_rule = update_project_agent_executor_routing_rule
|
|
1122
1116
|
get_executor_routing_rule = get_project_agent_executor_routing_rule
|
|
1123
|
-
archive_executor_routing_rule = archive_project_agent_executor_routing_rule
|
|
1124
|
-
record_task_executor_actual = record_project_agent_executor_actual
|
|
1125
1117
|
|
|
1126
1118
|
@staticmethod
|
|
1127
1119
|
def _payload_hash(value: Any) -> str:
|
|
@@ -21,12 +21,10 @@ from .project_agent_recruitment_occupation import (
|
|
|
21
21
|
from .project_agent_recruitment_values import project_agent_recruitment_profile, project_agent_recruitment_record
|
|
22
22
|
from .project_agent_task_models import (
|
|
23
23
|
ProjectAgentRecruitmentDecision,
|
|
24
|
-
ProjectAgentRecruitmentPolicyRecord,
|
|
25
|
-
ProjectAgentRecruitmentPolicyUpdate,
|
|
26
24
|
ProjectAgentRecruitmentRecord,
|
|
27
25
|
ProjectAgentRoutingDecisionRecord,
|
|
28
26
|
)
|
|
29
|
-
from .provider_values import
|
|
27
|
+
from .provider_values import now_utc, stable_uuid
|
|
30
28
|
from .store_project_agents import SYSTEM_HR_AGENT_ID
|
|
31
29
|
from .store_transactions import query_store_transaction
|
|
32
30
|
from .occupation_catalog import BUILTIN_OCCUPATION_KEYS
|
|
@@ -44,64 +42,6 @@ class StoreProjectAgentTaskRecruitment(StoreRecruitmentFulfillment):
|
|
|
44
42
|
|
|
45
43
|
_normalized_recruitment_profile = staticmethod(normalized_recruitment_profile)
|
|
46
44
|
|
|
47
|
-
async def get_project_agent_recruitment_policy(
|
|
48
|
-
self,
|
|
49
|
-
actor: dict,
|
|
50
|
-
personal_space_id: str,
|
|
51
|
-
) -> ProjectAgentRecruitmentPolicyRecord:
|
|
52
|
-
self._require_personal()
|
|
53
|
-
await self.authorize(actor, personal_space_id, 'reader')
|
|
54
|
-
records, _, _ = await self.runtime.driver.execute_query(
|
|
55
|
-
'''
|
|
56
|
-
MATCH (:FuliSpace {id: $personal_space_id, kind: 'personal'})-
|
|
57
|
-
[:HAS_PROJECT_AGENT_RECRUITMENT_POLICY]->
|
|
58
|
-
(policy:FuliProjectAgentRecruitmentPolicy)
|
|
59
|
-
RETURN policy
|
|
60
|
-
''',
|
|
61
|
-
personal_space_id=personal_space_id,
|
|
62
|
-
routing_='r',
|
|
63
|
-
)
|
|
64
|
-
if not records:
|
|
65
|
-
return ProjectAgentRecruitmentPolicyRecord(
|
|
66
|
-
personal_space_id=personal_space_id,
|
|
67
|
-
confirmation_mode='automatic',
|
|
68
|
-
updated_at=None,
|
|
69
|
-
)
|
|
70
|
-
raw = dict(records[0]['policy'])
|
|
71
|
-
return ProjectAgentRecruitmentPolicyRecord(
|
|
72
|
-
personal_space_id=personal_space_id,
|
|
73
|
-
confirmation_mode=raw.get('confirmation_mode') or 'automatic',
|
|
74
|
-
updated_at=native_datetime(raw.get('updated_at')),
|
|
75
|
-
)
|
|
76
|
-
|
|
77
|
-
async def update_project_agent_recruitment_policy(
|
|
78
|
-
self,
|
|
79
|
-
actor: dict,
|
|
80
|
-
request: ProjectAgentRecruitmentPolicyUpdate,
|
|
81
|
-
) -> ProjectAgentRecruitmentPolicyRecord:
|
|
82
|
-
self._require_personal()
|
|
83
|
-
await self.authorize(actor, request.personal_space_id, 'maintainer')
|
|
84
|
-
updated_at = now_utc()
|
|
85
|
-
await self.runtime.driver.execute_query(
|
|
86
|
-
'''
|
|
87
|
-
MATCH (space:FuliSpace {id: $personal_space_id, kind: 'personal'})
|
|
88
|
-
MERGE (policy:FuliProjectAgentRecruitmentPolicy {
|
|
89
|
-
personal_space_id: $personal_space_id
|
|
90
|
-
})
|
|
91
|
-
SET policy.confirmation_mode = $confirmation_mode,
|
|
92
|
-
policy.updated_at = $updated_at
|
|
93
|
-
MERGE (space)-[:HAS_PROJECT_AGENT_RECRUITMENT_POLICY]->(policy)
|
|
94
|
-
''',
|
|
95
|
-
personal_space_id=request.personal_space_id,
|
|
96
|
-
confirmation_mode=request.confirmation_mode,
|
|
97
|
-
updated_at=updated_at,
|
|
98
|
-
)
|
|
99
|
-
return ProjectAgentRecruitmentPolicyRecord(
|
|
100
|
-
personal_space_id=request.personal_space_id,
|
|
101
|
-
confirmation_mode=request.confirmation_mode,
|
|
102
|
-
updated_at=updated_at,
|
|
103
|
-
)
|
|
104
|
-
|
|
105
45
|
async def decide_project_agent_recruitment(
|
|
106
46
|
self,
|
|
107
47
|
actor: dict,
|
|
@@ -1108,7 +1108,7 @@ class StoreProjectAgents:
|
|
|
1108
1108
|
value
|
|
1109
1109
|
for value in observed_values
|
|
1110
1110
|
if value in {
|
|
1111
|
-
'codex', 'claude', 'claude_code', 'cursor', 'kiro', 'opencode', 'antigravity', 'other'
|
|
1111
|
+
'codex', 'claude', 'claude_code', 'cursor', 'kiro', 'opencode', 'antigravity', 'dsh', 'other'
|
|
1112
1112
|
}
|
|
1113
1113
|
})
|
|
1114
1114
|
return ProjectAgentRecord(
|
|
@@ -3,36 +3,12 @@ from fastapi import HTTPException
|
|
|
3
3
|
from .models import (
|
|
4
4
|
PersonalProjectRecord,
|
|
5
5
|
PersonalProjectUpsert,
|
|
6
|
-
ProjectDeleteResult,
|
|
7
|
-
ProjectReleaseRecord,
|
|
8
|
-
ProjectRelationCreate,
|
|
9
|
-
ProjectRelationDecision,
|
|
10
|
-
ProjectRelationRecord,
|
|
11
|
-
)
|
|
12
|
-
from .project_management import (
|
|
13
|
-
delete_project as delete_public_project,
|
|
14
|
-
list_project_releases as read_project_releases,
|
|
15
6
|
)
|
|
16
7
|
from .provider_values import now_utc, stable_uuid
|
|
17
8
|
from .project_brief import legacy_project_brief
|
|
18
9
|
|
|
19
10
|
|
|
20
11
|
class StoreProjects:
|
|
21
|
-
async def list_project_releases(
|
|
22
|
-
self,
|
|
23
|
-
actor: dict,
|
|
24
|
-
project_id: str,
|
|
25
|
-
) -> list[ProjectReleaseRecord]:
|
|
26
|
-
self._require_workspace()
|
|
27
|
-
return await read_project_releases(self, actor, project_id)
|
|
28
|
-
|
|
29
|
-
async def delete_project(
|
|
30
|
-
self,
|
|
31
|
-
actor: dict,
|
|
32
|
-
project_id: str,
|
|
33
|
-
) -> ProjectDeleteResult:
|
|
34
|
-
return await delete_public_project(self, actor, project_id)
|
|
35
|
-
|
|
36
12
|
async def upsert_personal_project(
|
|
37
13
|
self,
|
|
38
14
|
actor: dict,
|
|
@@ -128,130 +104,3 @@ class StoreProjects:
|
|
|
128
104
|
return await legacy_project_brief(
|
|
129
105
|
self, self._personal_project(records[0]['project'], personal_space_id)
|
|
130
106
|
)
|
|
131
|
-
|
|
132
|
-
async def create_project_relation(
|
|
133
|
-
self,
|
|
134
|
-
actor: dict,
|
|
135
|
-
source_project_id: str,
|
|
136
|
-
request: ProjectRelationCreate,
|
|
137
|
-
) -> ProjectRelationRecord:
|
|
138
|
-
self._require_workspace()
|
|
139
|
-
if source_project_id == request.target_project_id:
|
|
140
|
-
raise HTTPException(status_code=422, detail='a project cannot relate to itself')
|
|
141
|
-
await self.authorize(actor, source_project_id, 'maintainer')
|
|
142
|
-
target, _, _ = await self.runtime.driver.execute_query(
|
|
143
|
-
'''
|
|
144
|
-
MATCH (target:FuliSpace {
|
|
145
|
-
id: $target_project_id,
|
|
146
|
-
kind: 'project',
|
|
147
|
-
visibility: 'public'
|
|
148
|
-
})
|
|
149
|
-
RETURN target
|
|
150
|
-
''',
|
|
151
|
-
target_project_id=request.target_project_id,
|
|
152
|
-
routing_='r',
|
|
153
|
-
)
|
|
154
|
-
if not target:
|
|
155
|
-
raise HTTPException(status_code=404, detail='target project not found')
|
|
156
|
-
if request.relation_type == 'PART_OF':
|
|
157
|
-
existing_parent, _, _ = await self.runtime.driver.execute_query(
|
|
158
|
-
'''
|
|
159
|
-
MATCH (:FuliSpace {id: $source_project_id})-
|
|
160
|
-
[relation:FULI_PROJECT_RELATION {relation_type: 'PART_OF'}]->
|
|
161
|
-
(:FuliSpace)
|
|
162
|
-
WHERE relation.status IN ['pending', 'active']
|
|
163
|
-
RETURN relation.id AS id
|
|
164
|
-
''',
|
|
165
|
-
source_project_id=source_project_id,
|
|
166
|
-
routing_='r',
|
|
167
|
-
)
|
|
168
|
-
if existing_parent:
|
|
169
|
-
raise HTTPException(status_code=409, detail='project already has a parent relation')
|
|
170
|
-
relation_id = stable_uuid(
|
|
171
|
-
self.settings.provider_id,
|
|
172
|
-
'project-relation',
|
|
173
|
-
source_project_id,
|
|
174
|
-
request.relation_type,
|
|
175
|
-
request.target_project_id,
|
|
176
|
-
)
|
|
177
|
-
relation_status = 'pending' if request.relation_type == 'PART_OF' else 'active'
|
|
178
|
-
created_at = now_utc()
|
|
179
|
-
records, _, _ = await self.runtime.driver.execute_query(
|
|
180
|
-
'''
|
|
181
|
-
MATCH (source:FuliSpace {id: $source_project_id, kind: 'project'})
|
|
182
|
-
MATCH (target:FuliSpace {id: $target_project_id, kind: 'project'})
|
|
183
|
-
MERGE (source)-[relation:FULI_PROJECT_RELATION {id: $id}]->(target)
|
|
184
|
-
ON CREATE SET relation.source_project_id = $source_project_id,
|
|
185
|
-
relation.target_project_id = $target_project_id,
|
|
186
|
-
relation.relation_type = $relation_type,
|
|
187
|
-
relation.status = $relation_status,
|
|
188
|
-
relation.note = $note,
|
|
189
|
-
relation.created_by = $created_by,
|
|
190
|
-
relation.created_at = $created_at
|
|
191
|
-
RETURN relation
|
|
192
|
-
''',
|
|
193
|
-
source_project_id=source_project_id,
|
|
194
|
-
target_project_id=request.target_project_id,
|
|
195
|
-
id=relation_id,
|
|
196
|
-
relation_type=request.relation_type,
|
|
197
|
-
relation_status=relation_status,
|
|
198
|
-
note=request.note,
|
|
199
|
-
created_by=actor['id'],
|
|
200
|
-
created_at=created_at,
|
|
201
|
-
)
|
|
202
|
-
return self._project_relation(records[0]['relation'])
|
|
203
|
-
|
|
204
|
-
async def list_project_relations(
|
|
205
|
-
self,
|
|
206
|
-
actor: dict,
|
|
207
|
-
project_id: str,
|
|
208
|
-
) -> list[ProjectRelationRecord]:
|
|
209
|
-
self._require_workspace()
|
|
210
|
-
await self.authorize(actor, project_id, 'reader')
|
|
211
|
-
records, _, _ = await self.runtime.driver.execute_query(
|
|
212
|
-
'''
|
|
213
|
-
MATCH (source:FuliSpace)-[relation:FULI_PROJECT_RELATION]->
|
|
214
|
-
(target:FuliSpace)
|
|
215
|
-
WHERE source.id = $project_id OR target.id = $project_id
|
|
216
|
-
RETURN relation ORDER BY relation.created_at DESC
|
|
217
|
-
''',
|
|
218
|
-
project_id=project_id,
|
|
219
|
-
routing_='r',
|
|
220
|
-
)
|
|
221
|
-
return [self._project_relation(record['relation']) for record in records]
|
|
222
|
-
|
|
223
|
-
async def decide_project_relation(
|
|
224
|
-
self,
|
|
225
|
-
actor: dict,
|
|
226
|
-
target_project_id: str,
|
|
227
|
-
relation_id: str,
|
|
228
|
-
decision: ProjectRelationDecision,
|
|
229
|
-
) -> ProjectRelationRecord:
|
|
230
|
-
self._require_workspace()
|
|
231
|
-
await self.authorize(actor, target_project_id, 'maintainer')
|
|
232
|
-
decided_at = now_utc()
|
|
233
|
-
relation_status = 'active' if decision.decision == 'confirm' else 'rejected'
|
|
234
|
-
records, _, _ = await self.runtime.driver.execute_query(
|
|
235
|
-
'''
|
|
236
|
-
MATCH (:FuliSpace)-[relation:FULI_PROJECT_RELATION {
|
|
237
|
-
id: $relation_id,
|
|
238
|
-
target_project_id: $target_project_id,
|
|
239
|
-
relation_type: 'PART_OF',
|
|
240
|
-
status: 'pending'
|
|
241
|
-
}]->(:FuliSpace)
|
|
242
|
-
SET relation.status = $relation_status,
|
|
243
|
-
relation.decision_note = $note,
|
|
244
|
-
relation.decided_by = $decided_by,
|
|
245
|
-
relation.decided_at = $decided_at
|
|
246
|
-
RETURN relation
|
|
247
|
-
''',
|
|
248
|
-
relation_id=relation_id,
|
|
249
|
-
target_project_id=target_project_id,
|
|
250
|
-
relation_status=relation_status,
|
|
251
|
-
note=decision.note,
|
|
252
|
-
decided_by=actor['id'],
|
|
253
|
-
decided_at=decided_at,
|
|
254
|
-
)
|
|
255
|
-
if not records:
|
|
256
|
-
raise HTTPException(status_code=409, detail='project relation is not pending')
|
|
257
|
-
return self._project_relation(records[0]['relation'])
|