fuli-context 0.25.2 → 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-CVFYWDSt.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/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 +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/near-names.js +27 -0
- package/packages/roundtable/src/roundtable/reply-inbox.js +6 -2
- package/packages/roundtable/src/roundtable/service.js +183 -49
- package/packages/roundtable/src/roundtable/stand-in.js +64 -0
- package/packages/roundtable/src/roundtable/store.js +8 -6
- package/packages/roundtable/src/roundtable/wake-ladder.js +63 -0
- package/packages/roundtable/src/roundtable/wake.js +7 -0
- 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 +0 -16
- 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/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 +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 +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-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/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.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-_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/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/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-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/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-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
|
@@ -64,15 +64,19 @@ export class ExternalKnowledgeService {
|
|
|
64
64
|
return this.registry.list().map(publicBinding);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
// caller 'agent': an Agent tool made the call, so the connector's
|
|
68
|
+
// person-only configuration is refused (discover and createBinding).
|
|
69
|
+
async discover(input, { caller } = {}) {
|
|
68
70
|
const connectorType = requiredString(input?.connectorType, 'connectorType', 64);
|
|
69
71
|
const connector = this.#connector(connectorType);
|
|
70
72
|
if (typeof connector.discover !== 'function') {
|
|
71
73
|
throw new TypeError(`${connectorType} does not support discovery`);
|
|
72
74
|
}
|
|
75
|
+
const connectorConfig = safeConfiguration(input.connectorConfig ?? {});
|
|
76
|
+
if (caller === 'agent') assertAgentConfiguration(connector, connectorConfig);
|
|
73
77
|
return connector.discover({
|
|
74
78
|
...this.#context({
|
|
75
|
-
connectorConfig
|
|
79
|
+
connectorConfig,
|
|
76
80
|
source: safeConfiguration(input.source ?? {})
|
|
77
81
|
}),
|
|
78
82
|
query: typeof input.query === 'string' ? input.query : null,
|
|
@@ -81,14 +85,15 @@ export class ExternalKnowledgeService {
|
|
|
81
85
|
});
|
|
82
86
|
}
|
|
83
87
|
|
|
84
|
-
async createBinding(input) {
|
|
85
|
-
return this.registry.withMutation(() => this.#createBinding(input));
|
|
88
|
+
async createBinding(input, { caller } = {}) {
|
|
89
|
+
return this.registry.withMutation(() => this.#createBinding(input, caller));
|
|
86
90
|
}
|
|
87
91
|
|
|
88
|
-
async #createBinding(input) {
|
|
92
|
+
async #createBinding(input, caller) {
|
|
89
93
|
const connectorType = requiredString(input?.connectorType, 'connectorType', 64);
|
|
90
94
|
const connector = this.#connector(connectorType);
|
|
91
95
|
const connectorConfig = safeConfiguration(input.connectorConfig ?? {});
|
|
96
|
+
if (caller === 'agent') assertAgentConfiguration(connector, connectorConfig);
|
|
92
97
|
const source = safeConfiguration(input.source ?? {});
|
|
93
98
|
const id = this.createId();
|
|
94
99
|
const targets = bindingTargets(input, { bindingId: id });
|
|
@@ -721,6 +726,18 @@ function bindingForTarget(binding, target) {
|
|
|
721
726
|
};
|
|
722
727
|
}
|
|
723
728
|
|
|
729
|
+
function assertAgentConfiguration(connector, connectorConfig) {
|
|
730
|
+
const fields = connector.personOnlyFields?.(connectorConfig) ?? [];
|
|
731
|
+
if (fields.length === 0) return;
|
|
732
|
+
throw new ApplicationError(
|
|
733
|
+
'local_user_only',
|
|
734
|
+
`connectorConfig.${fields.join(', connectorConfig.')} is set up by the person on the console's 连接 page: `
|
|
735
|
+
+ 'it runs a local command or sends a credential to an endpoint the caller chose. '
|
|
736
|
+
+ 'Ask the person to add this connection there, then use the binding it creates.',
|
|
737
|
+
{ status: 403 }
|
|
738
|
+
);
|
|
739
|
+
}
|
|
740
|
+
|
|
724
741
|
function safeConfiguration(value, path = 'configuration') {
|
|
725
742
|
if (!value || typeof value !== 'object' || Array.isArray(value)) {
|
|
726
743
|
throw new TypeError(`${path} must be an object`);
|
|
@@ -87,14 +87,15 @@ function recentPointer(latest) {
|
|
|
87
87
|
return Buffer.byteLength(JSON.stringify({ recent_conversation: pointer })) <= POINTER_BYTES ? pointer : null;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
// An amendment appends its own summary event; the first summary stays (rec#85).
|
|
91
|
+
export async function checkpointConversation(application, task, workLog, team = null, eventId = null) {
|
|
91
92
|
if (!task.projectAgentId) return { status: 'unassigned' };
|
|
92
93
|
const capture = await captureDecision(application, taskCaptureScope(task));
|
|
93
94
|
if (!capture.allowed) return captureDisabled(capture);
|
|
94
95
|
try {
|
|
95
96
|
const result = await application.personal.conversation('append', {
|
|
96
97
|
...conversationTask(application, task), summary: safeConversationContent(workLog.summary), status: workLog.status,
|
|
97
|
-
events: [{ event_id: `${task.token}:summary`, role: 'summary', kind: 'checkpoint', content: safeConversationContent(workLog.summary) }]
|
|
98
|
+
events: [{ event_id: eventId ?? `${task.token}:summary`, role: 'summary', kind: 'checkpoint', content: safeConversationContent(workLog.summary) }]
|
|
98
99
|
});
|
|
99
100
|
if (result.status !== 'saved') return result;
|
|
100
101
|
const owner = team ?? await taskAgentIdentity(application, task);
|
|
@@ -4,9 +4,4 @@ export { beginTaskContext, beginTaskFromPreferences } from './task-context-entry
|
|
|
4
4
|
export { checkpointTaskKnowledge } from './task-knowledge-checkpoint.js';
|
|
5
5
|
export { recordDecisionTrace } from './decision-trace.js';
|
|
6
6
|
export { recordKnowledgeFeedback } from './knowledge-feedback.js';
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
applyPersonalGlobalPreferenceDecision,
|
|
10
|
-
discoverPersonalGlobalPreferenceCandidates,
|
|
11
|
-
previewPersonalGlobalPreferenceDecision
|
|
12
|
-
} from './personal-global-preference-candidates.js';
|
|
7
|
+
export { discoverPersonalGlobalPreferenceCandidates } from './personal-global-preference-candidates.js';
|
|
@@ -27,7 +27,7 @@ const MAX_SNAPSHOT_ATTEMPTS = 5;
|
|
|
27
27
|
const COMPARED_SETTINGS = Object.freeze(['enabled', 'disabledSources', 'capturedSources', 'projectMode', 'excludedProjectIds',
|
|
28
28
|
'selectedProjectIds', 'unregisteredDirectories']);
|
|
29
29
|
const CLIENT_LABELS = Object.freeze({ codex: 'Codex', claude: 'Claude', claude_code: 'Claude Code', cursor: 'Cursor',
|
|
30
|
-
kiro: 'Kiro', opencode: 'OpenCode', antigravity: 'Antigravity', other: '其他客户端' });
|
|
30
|
+
kiro: 'Kiro', opencode: 'OpenCode', antigravity: 'Antigravity', dsh: 'DeepSeek Harness', other: '其他客户端' });
|
|
31
31
|
const CONSOLE_GUIDANCE = 'Nothing changed. Show preview and confirmUrl to the user word for word; they confirm or cancel in the FULI console. You cannot complete this change.';
|
|
32
32
|
const NO_CONSOLE_GUIDANCE = 'Nothing changed. Show preview to the user word for word; they can make this change in the FULI console settings. You cannot complete this change.';
|
|
33
33
|
// What the console says for a preview it can no longer apply: unknown, used,
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { validationError } from '../app/application-error.js';
|
|
2
|
+
import { storedCaptureOff, storedCheckpoint } from './checkpoint-capture.js';
|
|
3
|
+
|
|
4
|
+
// rec#85: a checkpoint is immutable, so a retry with other input is refused and
|
|
5
|
+
// never overwrites it. A checkpoint sent too early is corrected by an explicit
|
|
6
|
+
// amendment instead: a new reason and work log appended under the completed
|
|
7
|
+
// original, which stays as history. Capture, memory, usage and team decisions
|
|
8
|
+
// already applied are not part of an amendment.
|
|
9
|
+
const AMEND_ONLY = ['capture', 'captureRouting', 'agentMemory', 'knowledgeUsage', 'triage', 'experiences', 'remember'];
|
|
10
|
+
|
|
11
|
+
export function checkpointConflictMessage(checkpoint) {
|
|
12
|
+
return checkpoint?.phase === 'complete'
|
|
13
|
+
? 'Task checkpoint already has different input. A retry resends the exact first arguments; to correct a checkpoint sent too early, call again with amend: true and only the corrected reason and workLog (the first record stays)'
|
|
14
|
+
: 'Task checkpoint already has different input; resend the exact arguments of the first checkpoint call to finish it, then amend it with amend: true, or begin a new task context';
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function assertAmendmentInput(task, input) {
|
|
18
|
+
const extra = AMEND_ONLY.filter(key => input[key] != null);
|
|
19
|
+
if (extra.length || input.collaborators?.length) {
|
|
20
|
+
throw validationError(`An amendment carries only reason and workLog; decisions already applied stay (remove ${[...extra, ...(input.collaborators?.length ? ['collaborators'] : [])].join(', ')})`);
|
|
21
|
+
}
|
|
22
|
+
if (task.checkpoint?.phase !== 'complete') {
|
|
23
|
+
throw validationError('Nothing to amend yet: finish this task with checkpoint_task_knowledge first (without amend)');
|
|
24
|
+
}
|
|
25
|
+
if (input.disposition !== task.checkpoint.disposition) {
|
|
26
|
+
throw validationError(`An amendment keeps the checkpoint disposition ${task.checkpoint.disposition}`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Appends the amendment, or replays one already kept. With capture off the
|
|
31
|
+
// amendment keeps no words, as the checkpoint it corrects. What follows (the
|
|
32
|
+
// conversation event, the receipt) is built from the entry the Provider kept,
|
|
33
|
+
// with its own sequence and capture decision: a retry after capture came back
|
|
34
|
+
// on never records the off-period words it resent, and a retry of an older
|
|
35
|
+
// amendment never takes a newer one's event.
|
|
36
|
+
export async function amendCheckpoint(application, task, { disposition, reason, workLog, fingerprint }, captureCheck) {
|
|
37
|
+
const recorded = storedCheckpoint({ checkpoint: null }, { disposition, reason, fingerprint,
|
|
38
|
+
...(task.projectAgentId ? { workLog: workLog ?? { status: 'reported', summary: reason } } : {}) }, captureCheck);
|
|
39
|
+
const { task: amended, amendment } = await application.taskContextRegistry.amend(task.token,
|
|
40
|
+
{ disposition, reason: recorded.reason, fingerprint, workLog: recorded.workLog ?? null }, task.sourceApplication);
|
|
41
|
+
return { task: amended, sequence: amendment.sequence, replayed: amendment.replayed,
|
|
42
|
+
log: amendment.work_log ?? { status: 'reported', summary: amendment.reason },
|
|
43
|
+
decision: storedCaptureOff(amendment.reason) ?? captureCheck };
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// The outcome a checkpoint stands for now: its latest amendment, else itself.
|
|
47
|
+
// Takes the Provider's record (snake_case).
|
|
48
|
+
export function currentCheckpointWorkLog(checkpoint) {
|
|
49
|
+
return (checkpoint.amendments?.at(-1) ?? checkpoint).work_log;
|
|
50
|
+
}
|
|
@@ -9,9 +9,13 @@ import { captureDecision, taskCaptureScope } from './capture-decision.js';
|
|
|
9
9
|
const UNCAPTURED = /^Capture was off for this task \((\w+): (\w+)\); FULI kept no summary\.$/;
|
|
10
10
|
|
|
11
11
|
export async function checkpointCaptureDecision(application, task) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
return storedCaptureOff(task.checkpoint?.reason) ?? captureDecision(application, taskCaptureScope(task));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// The decision a stored record names when it was kept with capture off, else null.
|
|
16
|
+
export function storedCaptureOff(reason) {
|
|
17
|
+
const stored = UNCAPTURED.exec(reason ?? '');
|
|
18
|
+
return stored ? { allowed: false, reason: stored[2], layer: stored[1] } : null;
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
// What the checkpoint stores: the first attempt's record when one exists,
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ProviderRequestError } from './provider-client.js';
|
|
2
|
+
import { isProviderOutage } from './provider-outage.js';
|
|
3
|
+
|
|
4
|
+
// A checkpoint FULI's graph service did not save is a status the Agent acts
|
|
5
|
+
// on, not a bare error.
|
|
6
|
+
//
|
|
7
|
+
// rec#39: the first checkpoint call binds its input, so a call the Graph
|
|
8
|
+
// Provider never answered finishes only when resent unchanged. Say so instead
|
|
9
|
+
// of a bare timeout, which led Agents to retry with new wording and be refused.
|
|
10
|
+
const INCOMPLETE_GUIDANCE = 'This checkpoint did not finish because FULI\'s graph service did not answer. ' +
|
|
11
|
+
'FULI may already keep its input, so retry checkpoint_task_knowledge with exactly the same arguments; changed wording is refused. ' +
|
|
12
|
+
'Until a retry returns checkpointed, do not claim the task was saved; end with the entry agent_receipt. ' +
|
|
13
|
+
'If the retry fails again, say in one line that FULI could not save this task yet.';
|
|
14
|
+
|
|
15
|
+
// rec#110 item 8: a token the Provider does not know for this client
|
|
16
|
+
// (another client's, superseded or expired) or may not use, refused when the
|
|
17
|
+
// checkpoint first reads its task, before it writes anything: this call saved
|
|
18
|
+
// nothing, on the Provider or on this computer. The content is still in the
|
|
19
|
+
// Agent's conversation, so it is resent from there. A 403/404 after writing
|
|
20
|
+
// began (a later turn superseded the task between prepare and complete) is
|
|
21
|
+
// not this case and fails as before (DOT on #880). Fixed text only: the
|
|
22
|
+
// Provider's message is not forwarded.
|
|
23
|
+
const TOKEN_REFUSALS = new Set([403, 404]);
|
|
24
|
+
const admissionRefusals = new WeakSet();
|
|
25
|
+
const NOT_SAVED_GUIDANCE = 'FULI did not save this checkpoint: this connection cannot use its taskContextToken ' +
|
|
26
|
+
'(another client\'s, superseded or expired, or not allowed here), so this call saved nothing. Tell the person in one line ' +
|
|
27
|
+
'that this task\'s knowledge is not saved in FULI yet. Now, in this conversation, call get_collaboration_preferences ' +
|
|
28
|
+
'through this connection for a token of its own and call checkpoint_task_knowledge again with that token and the same ' +
|
|
29
|
+
'content. An amend:true correction belongs to its own task and cannot move to another.';
|
|
30
|
+
|
|
31
|
+
function checkpointIncomplete(error) {
|
|
32
|
+
return {
|
|
33
|
+
status: 'checkpoint_incomplete',
|
|
34
|
+
reason: error.code,
|
|
35
|
+
checkpoint_required: true,
|
|
36
|
+
retry: { tool: 'checkpoint_task_knowledge', same_input: true, attempts: 1 },
|
|
37
|
+
guidance: INCOMPLETE_GUIDANCE
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function checkpointNotSaved(error) {
|
|
42
|
+
return {
|
|
43
|
+
status: 'checkpoint_not_saved',
|
|
44
|
+
reason: 'task_token_refused',
|
|
45
|
+
http_status: error.status,
|
|
46
|
+
checkpoint_required: true,
|
|
47
|
+
retry: { tool: 'checkpoint_task_knowledge', same_content: true, new_token: true },
|
|
48
|
+
guidance: NOT_SAVED_GUIDANCE
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// The checkpoint's first read of its task; a token refused here is marked as refused before any write.
|
|
53
|
+
export async function admittedTask(read) {
|
|
54
|
+
try {
|
|
55
|
+
return await read;
|
|
56
|
+
} catch (error) {
|
|
57
|
+
if (error instanceof ProviderRequestError && TOKEN_REFUSALS.has(error.status)) admissionRefusals.add(error);
|
|
58
|
+
throw error;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Runs the checkpoint; an outage or a token refused at admission becomes its status, anything else fails as before.
|
|
63
|
+
export async function withCheckpointSaveStatus(checkpoint) {
|
|
64
|
+
try {
|
|
65
|
+
return await checkpoint;
|
|
66
|
+
} catch (error) {
|
|
67
|
+
if (isProviderOutage(error)) return checkpointIncomplete(error);
|
|
68
|
+
if (admissionRefusals.has(error)) return checkpointNotSaved(error);
|
|
69
|
+
throw error;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -3,10 +3,7 @@ import { closeLocalRuntimes, openLocalRuntimes } from './local-runtimes.js';
|
|
|
3
3
|
import { withTaskMemorySnapshot } from './project-agent-memory.js';
|
|
4
4
|
|
|
5
5
|
import { GraphitiProviderClient } from './provider-client.js';
|
|
6
|
-
import {
|
|
7
|
-
aggregatePublicCapabilities,
|
|
8
|
-
createWorkspaceProvider
|
|
9
|
-
} from './workspace-provider-client.js';
|
|
6
|
+
import { createWorkspaceProvider } from './workspace-provider-client.js';
|
|
10
7
|
import {
|
|
11
8
|
personalTokenRefresher,
|
|
12
9
|
readGraphRuntimeConfig
|
|
@@ -41,15 +38,10 @@ import { readRuntimeSettings } from '../system/runtime-settings.js';
|
|
|
41
38
|
import { describeSettings } from '../system/settings-guide.js';
|
|
42
39
|
import {
|
|
43
40
|
checkpointTaskKnowledge as checkpointTaskKnowledgeWorkflow,
|
|
44
|
-
discoverCommonKnowledgeCandidates as discoverCommonKnowledgeCandidatesWorkflow,
|
|
45
41
|
discoverPersonalGlobalPreferenceCandidates as
|
|
46
42
|
discoverPersonalGlobalPreferenceCandidatesWorkflow,
|
|
47
|
-
applyPersonalGlobalPreferenceDecision as
|
|
48
|
-
applyPersonalGlobalPreferenceDecisionWorkflow,
|
|
49
43
|
recordDecisionTrace as recordDecisionTraceWorkflow,
|
|
50
|
-
recordKnowledgeFeedback as recordKnowledgeFeedbackWorkflow
|
|
51
|
-
previewPersonalGlobalPreferenceDecision as
|
|
52
|
-
previewPersonalGlobalPreferenceDecisionWorkflow
|
|
44
|
+
recordKnowledgeFeedback as recordKnowledgeFeedbackWorkflow
|
|
53
45
|
} from './agent-knowledge-workflows.js';
|
|
54
46
|
import {
|
|
55
47
|
ProjectAgentControlPlaneApplication,
|
|
@@ -74,9 +66,7 @@ import {
|
|
|
74
66
|
validateCaptureSessionKnowledge
|
|
75
67
|
} from './session-knowledge-capture.js';
|
|
76
68
|
import {
|
|
77
|
-
listWorkflowCandidates
|
|
78
|
-
recommendNextWorkflowSteps,
|
|
79
|
-
recordWorkflowTransitionObservation
|
|
69
|
+
listWorkflowCandidates
|
|
80
70
|
} from './workflow-learning.js';
|
|
81
71
|
import { collaborationPreferencesAtEntry, getUserTasteSkill } from './collaboration-preference-entry.js';
|
|
82
72
|
import {
|
|
@@ -86,10 +76,8 @@ import {
|
|
|
86
76
|
} from './knowledge-graph-reads.js';
|
|
87
77
|
import { getAgentGrowth } from './agent-growth.js';
|
|
88
78
|
import {
|
|
89
|
-
applyCommonKnowledgePromotion,
|
|
90
79
|
applyKnowledgeProjectAction,
|
|
91
80
|
confirmKnowledgeBatch,
|
|
92
|
-
previewCommonKnowledgePromotion,
|
|
93
81
|
previewKnowledgeProjectAction,
|
|
94
82
|
reassignKnowledgeItem,
|
|
95
83
|
recordKnowledgeUsage,
|
|
@@ -103,19 +91,7 @@ import {
|
|
|
103
91
|
resolveDeferredPreferenceConflict
|
|
104
92
|
} from './preference-conflict-requests.js';
|
|
105
93
|
import { reviewHumanChange, searchHumanChanges } from './human-knowledge-changes.js';
|
|
106
|
-
import {
|
|
107
|
-
deletePublicProject,
|
|
108
|
-
listKnowledgeSpaces,
|
|
109
|
-
listProjectReleases,
|
|
110
|
-
publishPersonalProject,
|
|
111
|
-
subscribePublicProject,
|
|
112
|
-
unsubscribePublicProject
|
|
113
|
-
} from './public-projects.js';
|
|
114
|
-
import {
|
|
115
|
-
createProjectRelation,
|
|
116
|
-
listProjectRelations,
|
|
117
|
-
reviewProjectRelation
|
|
118
|
-
} from './public-project-relations.js';
|
|
94
|
+
import { listKnowledgeSpaces } from './knowledge-spaces.js';
|
|
119
95
|
import {
|
|
120
96
|
agentProfileWriter,
|
|
121
97
|
listPersonalProjectHistory,
|
|
@@ -123,13 +99,6 @@ import {
|
|
|
123
99
|
listProjectRelationWeights,
|
|
124
100
|
upsertPersonalProject
|
|
125
101
|
} from './personal-projects.js';
|
|
126
|
-
import {
|
|
127
|
-
listPersonalReviewQueue,
|
|
128
|
-
listReviewQueue,
|
|
129
|
-
reconcilePersonalSubmissions,
|
|
130
|
-
reviewPersonalDraft,
|
|
131
|
-
reviewProposal
|
|
132
|
-
} from './publication-review-queues.js';
|
|
133
102
|
|
|
134
103
|
export function openFederatedGraphApplication({
|
|
135
104
|
runtimeConfigPath,
|
|
@@ -287,10 +256,6 @@ export class FederatedGraphApplication extends ProjectAgentControlPlaneApplicati
|
|
|
287
256
|
return captureSessionKnowledge(this, input, options);
|
|
288
257
|
}
|
|
289
258
|
|
|
290
|
-
async recordWorkflowTransitionObservation(input) {
|
|
291
|
-
return recordWorkflowTransitionObservation(this, input);
|
|
292
|
-
}
|
|
293
|
-
|
|
294
259
|
getCollaborationPreferences(input) {
|
|
295
260
|
return collaborationPreferencesAtEntry(this, input);
|
|
296
261
|
}
|
|
@@ -317,36 +282,11 @@ export class FederatedGraphApplication extends ProjectAgentControlPlaneApplicati
|
|
|
317
282
|
return searchCurrentProjectKnowledge(this, input);
|
|
318
283
|
}
|
|
319
284
|
|
|
320
|
-
async discoverCommonKnowledgeCandidates(input) {
|
|
321
|
-
assertActivePersonalSpace(this, input.personalSpaceId);
|
|
322
|
-
return discoverCommonKnowledgeCandidatesWorkflow(this, input);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
285
|
async discoverPersonalGlobalPreferenceCandidates(input) {
|
|
326
286
|
assertActivePersonalSpace(this, input.personalSpaceId);
|
|
327
287
|
return discoverPersonalGlobalPreferenceCandidatesWorkflow(this, input);
|
|
328
288
|
}
|
|
329
289
|
|
|
330
|
-
async previewPersonalGlobalPreferenceDecision(input) {
|
|
331
|
-
assertActivePersonalSpace(this, input.personalSpaceId);
|
|
332
|
-
assertSafeKnowledgeMutation(input);
|
|
333
|
-
return previewPersonalGlobalPreferenceDecisionWorkflow(this, input);
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
async applyPersonalGlobalPreferenceDecision(input) {
|
|
337
|
-
assertActivePersonalSpace(this, input.personalSpaceId);
|
|
338
|
-
assertSafeKnowledgeMutation(input);
|
|
339
|
-
return applyPersonalGlobalPreferenceDecisionWorkflow(this, input);
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
async previewCommonKnowledgePromotion(input) {
|
|
343
|
-
return previewCommonKnowledgePromotion(this, input);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
async applyCommonKnowledgePromotion(input) {
|
|
347
|
-
return applyCommonKnowledgePromotion(this, input);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
290
|
async getKnowledgeGraph(input, ownerReads) {
|
|
351
291
|
return getKnowledgeGraph(this, input, ownerReads);
|
|
352
292
|
}
|
|
@@ -379,10 +319,6 @@ export class FederatedGraphApplication extends ProjectAgentControlPlaneApplicati
|
|
|
379
319
|
return listWorkflowCandidates(this, input);
|
|
380
320
|
}
|
|
381
321
|
|
|
382
|
-
async recommendNextWorkflowSteps(input) {
|
|
383
|
-
return recommendNextWorkflowSteps(this, input);
|
|
384
|
-
}
|
|
385
|
-
|
|
386
322
|
async recordKnowledgeUsage(input) {
|
|
387
323
|
return recordKnowledgeUsage(this, input);
|
|
388
324
|
}
|
|
@@ -398,8 +334,8 @@ export class FederatedGraphApplication extends ProjectAgentControlPlaneApplicati
|
|
|
398
334
|
return recordKnowledgeFeedbackWorkflow(this, input);
|
|
399
335
|
}
|
|
400
336
|
|
|
401
|
-
async reviseKnowledgeItem(input) {
|
|
402
|
-
return reviseKnowledgeItem(this, input);
|
|
337
|
+
async reviseKnowledgeItem(input, ownerReads) {
|
|
338
|
+
return reviseKnowledgeItem(this, input, ownerReads);
|
|
403
339
|
}
|
|
404
340
|
|
|
405
341
|
async knowledgeTags(operation, input) {
|
|
@@ -423,12 +359,12 @@ export class FederatedGraphApplication extends ProjectAgentControlPlaneApplicati
|
|
|
423
359
|
return completePreferenceConflict(this, input, ownerReads);
|
|
424
360
|
}
|
|
425
361
|
|
|
426
|
-
async confirmKnowledgeBatch(input) {
|
|
427
|
-
return confirmKnowledgeBatch(this, input);
|
|
362
|
+
async confirmKnowledgeBatch(input, ownerReads) {
|
|
363
|
+
return confirmKnowledgeBatch(this, input, ownerReads);
|
|
428
364
|
}
|
|
429
365
|
|
|
430
|
-
async reassignKnowledgeItem(input) {
|
|
431
|
-
return reassignKnowledgeItem(this, input);
|
|
366
|
+
async reassignKnowledgeItem(input, ownerReads) {
|
|
367
|
+
return reassignKnowledgeItem(this, input, ownerReads);
|
|
432
368
|
}
|
|
433
369
|
|
|
434
370
|
async setPersonalPreferenceScope(input) {
|
|
@@ -455,26 +391,6 @@ export class FederatedGraphApplication extends ProjectAgentControlPlaneApplicati
|
|
|
455
391
|
return listKnowledgeSpaces(this);
|
|
456
392
|
}
|
|
457
393
|
|
|
458
|
-
async subscribePublicProject(input) {
|
|
459
|
-
return subscribePublicProject(this, input);
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
async unsubscribePublicProject(input) {
|
|
463
|
-
return unsubscribePublicProject(this, input);
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
async publishPersonalProject(input) {
|
|
467
|
-
return publishPersonalProject(this, input);
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
async listProjectReleases(input) {
|
|
471
|
-
return listProjectReleases(this, input);
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
async deletePublicProject(input) {
|
|
475
|
-
return deletePublicProject(this, input);
|
|
476
|
-
}
|
|
477
|
-
|
|
478
394
|
async upsertPersonalProject(input) {
|
|
479
395
|
return upsertPersonalProject(this, input);
|
|
480
396
|
}
|
|
@@ -495,44 +411,12 @@ export class FederatedGraphApplication extends ProjectAgentControlPlaneApplicati
|
|
|
495
411
|
return listProjectRelationWeights(this, input);
|
|
496
412
|
}
|
|
497
413
|
|
|
498
|
-
async createProjectRelation(input) {
|
|
499
|
-
return createProjectRelation(this, input);
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
async listProjectRelations(input) {
|
|
503
|
-
return listProjectRelations(this, input);
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
async reviewProjectRelation(input) {
|
|
507
|
-
return reviewProjectRelation(this, input);
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
async listPersonalReviewQueue(input, ownerReads) {
|
|
511
|
-
return listPersonalReviewQueue(this, input, ownerReads);
|
|
512
|
-
}
|
|
513
|
-
|
|
514
414
|
async readRoleSuggestions({ limit } = {}) {
|
|
515
415
|
const personalSpaceId = this.config.personal.spaceId;
|
|
516
416
|
await this.knowledgeRecoveryGate?.refresh(personalSpaceId);
|
|
517
417
|
return this.roleSuggestions.list({ personalSpaceId, limit });
|
|
518
418
|
}
|
|
519
419
|
|
|
520
|
-
reconcilePersonalSubmissions(options, ownerReads) {
|
|
521
|
-
return reconcilePersonalSubmissions(this, options, ownerReads);
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
async reviewPersonalDraft(input, ownerReads) {
|
|
525
|
-
return reviewPersonalDraft(this, input, ownerReads);
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
async listReviewQueue(input) {
|
|
529
|
-
return listReviewQueue(this, input);
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
async reviewProposal(input) {
|
|
533
|
-
return reviewProposal(this, input);
|
|
534
|
-
}
|
|
535
|
-
|
|
536
420
|
async getGraphitiStatus() {
|
|
537
421
|
const [personal, ...workspaces] = await Promise.all([
|
|
538
422
|
this.personal.health(),
|
|
@@ -658,7 +542,6 @@ export class FederatedGraphApplication extends ProjectAgentControlPlaneApplicati
|
|
|
658
542
|
]);
|
|
659
543
|
const configured = this.workspaces.size > 0;
|
|
660
544
|
const connected = providers.workspaces.some(({ status }) => status === 'ready');
|
|
661
|
-
const publicStatus = configured ? (connected ? 'ready' : 'unavailable') : 'not_connected';
|
|
662
545
|
return {
|
|
663
546
|
mode: configured ? (connected ? 'connected' : 'degraded') : 'personal_only',
|
|
664
547
|
...spaces,
|
|
@@ -667,11 +550,7 @@ export class FederatedGraphApplication extends ProjectAgentControlPlaneApplicati
|
|
|
667
550
|
captureOnboarding: this.captureOnboarding.state(),
|
|
668
551
|
firstRunGuide: this.firstRunGuide.state(),
|
|
669
552
|
agentAccessPolicy: this.getAgentAccessPolicy(),
|
|
670
|
-
recallPolicy: this.getRecallPolicy()
|
|
671
|
-
publicProvider: { configured, status: publicStatus },
|
|
672
|
-
capabilities: aggregatePublicCapabilities(
|
|
673
|
-
this.workspaces, providers.workspaces, spaces.projects
|
|
674
|
-
)
|
|
553
|
+
recallPolicy: this.getRecallPolicy()
|
|
675
554
|
};
|
|
676
555
|
}
|
|
677
556
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { dirname, join, resolve } from 'node:path';
|
|
2
2
|
|
|
3
3
|
import { jsonFormat, readJsonRecord, writeVersionedJsonFileAtomic } from '../storage/json-format.js';
|
|
4
|
+
import { positiveInteger } from '../validation/values.js';
|
|
4
5
|
|
|
5
6
|
// The console's first-run guide (Jevons 11-02): connect the AI clients on this
|
|
6
7
|
// computer, start at login, then where FULI records. It opens once, for an
|
|
@@ -8,8 +9,16 @@ import { jsonFormat, readJsonRecord, writeVersionedJsonFileAtomic } from '../sto
|
|
|
8
9
|
// (setup/first-run-capture.js); an installation from before has no record
|
|
9
10
|
// and is never shown it. Finishing or skipping it in the console closes it
|
|
10
11
|
// for good; 设置 › 客户端 opens it again without a record.
|
|
12
|
+
//
|
|
13
|
+
// The same record keeps the console's beginner's guide (新手引导, Jevons
|
|
14
|
+
// 11-12): tourSeen is the newest tour version the console has shown, so every
|
|
15
|
+
// installation, new or from before, sees each tour version once, in the
|
|
16
|
+
// browser and the desktop client alike. A record that only holds tourSeen has
|
|
17
|
+
// no status, so it never opens the first-run guide.
|
|
11
18
|
export const FIRST_RUN_GUIDE_FORMAT = jsonFormat({ store: 'first-run-guide', versions: [1] });
|
|
12
19
|
const OUTCOMES = Object.freeze(['finished', 'skipped']);
|
|
20
|
+
// Far above any tour the console will ship; it only bounds what a caller can store.
|
|
21
|
+
const MAX_TOUR_VERSION = 1000;
|
|
13
22
|
|
|
14
23
|
export function firstRunGuidePathForRuntime(runtimeConfigPath) {
|
|
15
24
|
if (!runtimeConfigPath) return null;
|
|
@@ -24,20 +33,32 @@ export function createFirstRunGuide(path, { now = () => new Date().toISOString()
|
|
|
24
33
|
if (path) writeVersionedJsonFileAtomic(path, record, FIRST_RUN_GUIDE_FORMAT);
|
|
25
34
|
else memory = record;
|
|
26
35
|
};
|
|
36
|
+
const state = () => {
|
|
37
|
+
const record = read();
|
|
38
|
+
return { open: record?.status === 'open', tourSeen: Number.isInteger(record?.tourSeen) ? record.tourSeen : null };
|
|
39
|
+
};
|
|
27
40
|
return Object.freeze({
|
|
28
41
|
// Called when a new installation opens its capture question; a guide
|
|
29
42
|
// already opened or closed stays as it is.
|
|
30
43
|
begin() {
|
|
31
44
|
if (read() === null) write({ version: 1, status: 'open', since: now() });
|
|
32
45
|
},
|
|
33
|
-
state
|
|
46
|
+
state,
|
|
34
47
|
close(input) {
|
|
35
48
|
const outcome = input?.outcome;
|
|
36
49
|
if (!OUTCOMES.includes(outcome)) throw new TypeError(`First-run guide outcome must be one of ${OUTCOMES.join(', ')}`);
|
|
37
50
|
const record = read();
|
|
38
|
-
if (record?.status !== 'open') return
|
|
39
|
-
write({
|
|
40
|
-
return
|
|
51
|
+
if (record?.status !== 'open') return state();
|
|
52
|
+
write({ ...record, status: outcome, closedAt: now() });
|
|
53
|
+
return state();
|
|
54
|
+
},
|
|
55
|
+
// The console showed this tour version; an older version never lowers it.
|
|
56
|
+
markTourSeen(input) {
|
|
57
|
+
const version = positiveInteger(input?.version, 'version', MAX_TOUR_VERSION);
|
|
58
|
+
const record = read();
|
|
59
|
+
if (Number.isInteger(record?.tourSeen) && record.tourSeen >= version) return state();
|
|
60
|
+
write({ ...(record ?? { version: 1 }), tourSeen: version, tourSeenAt: now() });
|
|
61
|
+
return state();
|
|
41
62
|
}
|
|
42
63
|
});
|
|
43
64
|
}
|
|
@@ -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,
|