fuli-context 0.27.0 → 0.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web/assets/{AboutPage-Bp2Edkdg.js → AboutPage-BKyNoI0v.js} +1 -1
- package/dist/web/assets/{AboutSectionHeading-DFfY2f_Z.js → AboutSectionHeading-DwvCvoqO.js} +1 -1
- package/dist/web/assets/AgentAppsPage-Cp2-sZXi.js +1 -0
- package/dist/web/assets/{AgentAvatar-w-2A3nsJ.js → AgentAvatar-CDhU4m0T.js} +1 -1
- package/dist/web/assets/{AgentHand-BGGU49Jt.js → AgentHand-BfRjs1He.js} +1 -1
- package/dist/web/assets/{AgentManagement-MMGrwdD2.js → AgentManagement-qCpr876m.js} +1 -1
- package/dist/web/assets/{AgentMentionCopy-BAHZjubz.js → AgentMentionCopy-_pr-D8vX.js} +1 -1
- package/dist/web/assets/{AgentName-CXlsC-4o.js → AgentName-CUuWNrzE.js} +1 -1
- package/dist/web/assets/AgentProfilePage-DcOBhuHG.js +5 -0
- package/dist/web/assets/AgentServicesPage-CAL-JT1J.js +1 -0
- package/dist/web/assets/{AppViewerPage-6gWP6nAf.js → AppViewerPage-Ct46NPXP.js} +1 -1
- package/dist/web/assets/{BackToTop-Cs5_rV99.js → BackToTop-DOlt-xjQ.js} +1 -1
- package/dist/web/assets/{BoardCardFieldsMenu-CvFrsIgy.js → BoardCardFieldsMenu-RFcx_CAs.js} +1 -1
- package/dist/web/assets/{BoardMoveMenu-B5isxIcK.js → BoardMoveMenu-GJ8lpuZY.js} +1 -1
- package/dist/web/assets/Breadcrumb-DTo6Zvtb.js +1 -0
- package/dist/web/assets/{CaptureChangePage-Ca72_PHc.js → CaptureChangePage-DRgWyCRo.js} +1 -1
- package/dist/web/assets/{CopyFixPrompt-wGATZKOq.js → CopyFixPrompt-1UXH_ItZ.js} +1 -1
- package/dist/web/assets/DataFormatPage-CgFXfOW_.js +2 -0
- package/dist/web/assets/DebugTurnPage-B8YhpTPm.js +1 -0
- package/dist/web/assets/DebugTurnsPage-BGKSH3n0.js +1 -0
- package/dist/web/assets/{DialogTitle-HYzAHbGg.js → DialogTitle-CIVSlKqQ.js} +1 -1
- package/dist/web/assets/{EmployeeRedirectPage-C2SHpAEF.js → EmployeeRedirectPage-8qPpnbyP.js} +1 -1
- package/dist/web/assets/EmployeeScopeDialog-BZymZidB.js +1 -0
- package/dist/web/assets/{EmployeeWorkbench-CbRJhkJO.js → EmployeeWorkbench-BnxEZCSS.js} +1 -1
- package/dist/web/assets/FieldRoot-D6HtUgDA.js +1 -0
- package/dist/web/assets/{FlaGrowth-DGnUPN7D.js → FlaGrowth-CaFdmezv.js} +1 -1
- package/dist/web/assets/{FlaOccupationKit-DAJjSrmL.js → FlaOccupationKit-CFoBUWGF.js} +1 -1
- package/dist/web/assets/{FlaTaskSheets-DRLgfrVC.js → FlaTaskSheets-BShmW9R5.js} +1 -1
- package/dist/web/assets/FlasPage-DtkW-_9f.js +1 -0
- package/dist/web/assets/{GrowthLoading-NLj2W4jj.js → GrowthLoading-CVBn4r4q.js} +1 -1
- package/dist/web/assets/{HowtoPage-CkGRrKpf.js → HowtoPage-B8f5J_An.js} +1 -1
- package/dist/web/assets/InboxPage-D9VIDrsL.js +6 -0
- package/dist/web/assets/{KnowledgeDeleteButton-DaT-gTmm.js → KnowledgeDeleteButton-C01O4FSO.js} +1 -1
- package/dist/web/assets/{KnowledgeHardDeleteSection-C9d7DVLa.js → KnowledgeHardDeleteSection-jqad3dJN.js} +1 -1
- package/dist/web/assets/KnowledgeItemEditPage-DV8TVpvf.js +1 -0
- package/dist/web/assets/{KnowledgeItemSummaryCard-eLzjKvgN.js → KnowledgeItemSummaryCard-XbkYp7Dy.js} +1 -1
- package/dist/web/assets/KnowledgeOrganizerPage-C4G6JCmG.js +1 -0
- package/dist/web/assets/KnowledgePage-Afiw2Kxy.js +1 -0
- package/dist/web/assets/KnowledgePeek-DIcPS9WU.js +1 -0
- package/dist/web/assets/{KnowledgeTurnReceiptPage-Dne5NQ9q.js → KnowledgeTurnReceiptPage-7ncXkxKd.js} +1 -1
- package/dist/web/assets/{KnowledgeWorkspace-DDg3tUb3.css → KnowledgeWorkspace-Be2gUul5.css} +1 -1
- package/dist/web/assets/KnowledgeWorkspace-CmzU6Vuh.js +4 -0
- package/dist/web/assets/{MeAvatar-f6qxg9dN.js → MeAvatar-D_LFqHrR.js} +1 -1
- package/dist/web/assets/{MeLink-DTvFYaYE.js → MeLink-CeIxjFrm.js} +1 -1
- package/dist/web/assets/{MenuSeparator-CLmsZ9rj.js → MenuSeparator-yD3wld9s.js} +1 -1
- package/dist/web/assets/{ModelSettingsPage-B38R-kBZ.css → ModelSettingsPage-BZcyT7Vy.css} +1 -1
- package/dist/web/assets/ModelSettingsPage-BqClsFmC.js +1 -0
- package/dist/web/assets/{NewSessionPanel-9yINjwyx.js → NewSessionPanel-BKrOFEMO.js} +1 -1
- package/dist/web/assets/{NotFoundPage-CqevPz0_.js → NotFoundPage-CdOCRj3P.js} +1 -1
- package/dist/web/assets/{NoticeRow-D5MWTeBY.js → NoticeRow-CQShZQtw.js} +1 -1
- package/dist/web/assets/OccupationsPage-BrBus-nh.js +1 -0
- package/dist/web/assets/OverviewPage-Cq89Klha.js +1 -0
- package/dist/web/assets/{PageColumns-Df60nEzj.js → PageColumns-CgIXTt4J.js} +1 -1
- package/dist/web/assets/{PageOutline-HHUlu2x3.js → PageOutline-VtLLW4kh.js} +1 -1
- package/dist/web/assets/{PersonalProfilePage-DnjNX2xK.css → PersonalProfilePage-BE5q2bqc.css} +1 -1
- package/dist/web/assets/PersonalProfilePage-C_dmUEuW.js +1 -0
- package/dist/web/assets/PersonalProjectsPage-CiCFHVt_.js +1 -0
- package/dist/web/assets/{PinIcon-DP-9Iisk.js → PinIcon-DD3Un-hh.js} +1 -1
- package/dist/web/assets/{PopperContent-DWCMeKSL.js → PopperContent-CCmt2yHl.js} +1 -1
- package/dist/web/assets/{Presence-Ba3jqPYx.js → Presence-DqPb-1P1.js} +1 -1
- package/dist/web/assets/{ProfileAuthorChip-BKZJC_N2.js → ProfileAuthorChip-Dm5GjcAt.js} +1 -1
- package/dist/web/assets/ProjectAgentsPage-B5r0DKWL.js +5 -0
- package/dist/web/assets/{ProjectJudgmentPolicy-BJ5sVuFI.js → ProjectJudgmentPolicy-DVFV5Cai.js} +1 -1
- package/dist/web/assets/{RecentNotices-CDHGIky1.js → RecentNotices-DYXEBfYm.js} +1 -1
- package/dist/web/assets/{RoundtablesPage-D5Xc3yun.js → RoundtablesPage-DlAXApKi.js} +1 -1
- package/dist/web/assets/{RovingFocusGroup-DoGybG5V.js → RovingFocusGroup-CI4aZr1z.js} +1 -1
- package/dist/web/assets/{RovingFocusItem-B455TzUI.js → RovingFocusItem-C_N843Nb.js} +1 -1
- package/dist/web/assets/{SessionMigrationPage-BAzXqxxO.js → SessionMigrationPage-CVKkTACn.js} +1 -1
- package/dist/web/assets/{SessionRecordsPage-C6U5YGSt.js → SessionRecordsPage-Dy203sP2.js} +1 -1
- package/dist/web/assets/SettingsPage-BcrAdXX7.js +1 -0
- package/dist/web/assets/SettingsPage-BlhCcwPn.css +1 -0
- package/dist/web/assets/SharedJefaReportPage-CASkC5pc.js +1 -0
- package/dist/web/assets/{TagVocabularyPage-Brpr-Q-y.js → TagVocabularyPage-Bd57YcUL.js} +1 -1
- package/dist/web/assets/TaskBlockerClear-DGaXP2ak.js +1 -0
- package/dist/web/assets/{TaskBlockerNotice-POmS2neR.js → TaskBlockerNotice-8nogmPA-.js} +1 -1
- package/dist/web/assets/{TaskReason-RKKs4Kb5.js → TaskReason-BxYwBDoB.js} +1 -1
- package/dist/web/assets/{TeamCard-8hjo1h0x.js → TeamCard-cWYC5z07.js} +1 -1
- package/dist/web/assets/{TeamCardsWidget-DIHFUDrF.js → TeamCardsWidget-BOf6oHOp.js} +1 -1
- package/dist/web/assets/{TeamIsland-DdhEcVOZ.js → TeamIsland-BD5s-zFZ.js} +1 -1
- package/dist/web/assets/{Teleport-CukHuRhz.js → Teleport-DhMmMHjy.js} +1 -1
- package/dist/web/assets/{TextField-G2fJ4aFQ.js → TextField-XakqTnVl.js} +1 -1
- package/dist/web/assets/TonborgDelegationSwitch-B59PUZBz.js +1 -0
- package/dist/web/assets/TonborgDelegationSwitch-BFb1JkWe.css +1 -0
- package/dist/web/assets/{UiChip-BHEJVA6L.js → UiChip-BFdfq8Jm.js} +1 -1
- package/dist/web/assets/{UiDisclosure-B1pd8qXW.js → UiDisclosure-G3MiGB7F.js} +1 -1
- package/dist/web/assets/{UiIcon-K7OhYTSy.js → UiIcon--qI1_q89.js} +1 -1
- package/dist/web/assets/UiSegmented-CRJ06vHP.js +1 -0
- package/dist/web/assets/{UiWeight-eAw682rH.js → UiWeight-BRA-6EY_.js} +1 -1
- package/dist/web/assets/{VirtualDirectoryList-BGum1GZc.js → VirtualDirectoryList-Dm07NMxq.js} +1 -1
- package/dist/web/assets/{VisuallyHidden-Ck6D7rq-.js → VisuallyHidden-DIg8c_z2.js} +1 -1
- package/dist/web/assets/{VisuallyHiddenInput-DXWhIUlB.js → VisuallyHiddenInput-rcWqHewS.js} +1 -1
- package/dist/web/assets/WidgetSlot-C5h--noP.js +2 -0
- package/dist/web/assets/{WorkbenchListHead-CR_fDYYr.js → WorkbenchListHead-D40-J4GT.js} +1 -1
- package/dist/web/assets/WorkbenchListPage-CJUvq4Ac.js +1 -0
- package/dist/web/assets/_plugin-vue_export-helper-D9CtLGVz.js +9 -0
- package/dist/web/assets/{agent-apps-D0eG1aMx.js → agent-apps-Svxh5tiY.js} +1 -1
- package/dist/web/assets/agent-occupation-Dhoz7LjT.js +1 -0
- package/dist/web/assets/{agent-pins-OYjJQ38F.js → agent-pins-CvATgFji.js} +1 -1
- package/dist/web/assets/{agent-workflows-D3VeY6Yz.js → agent-workflows-BS4KlKFj.js} +1 -1
- package/dist/web/assets/{attach-closest-edge-C75rKXiz.js → attach-closest-edge-DFoBNGBU.js} +1 -1
- package/dist/web/assets/{attention-store-k4mPCefZ.js → attention-store-CHxXJTuF.js} +1 -1
- package/dist/web/assets/{badge-B2rll-68.js → badge-DqHf-RNw.js} +1 -1
- package/dist/web/assets/{button-q6JhonlL.js → button-CdYobu4m.js} +1 -1
- package/dist/web/assets/{card-CPQiMHSu.js → card-8xZot-73.js} +1 -1
- package/dist/web/assets/{catalog-CBPcEkXC.js → catalog-h6KbvKdB.js} +1 -1
- package/dist/web/assets/{checkbox-C67upxzl.js → checkbox-DZ6CDZ8r.js} +1 -1
- package/dist/web/assets/{client-KFFphxpK.js → client-DRnUmjCk.js} +1 -1
- package/dist/web/assets/{client-links-store-Cw9c8MWc.js → client-links-store-DQY0A5PC.js} +1 -1
- package/dist/web/assets/{combobox-yHRJ-zN-.js → combobox-DE0HzdKP.js} +1 -1
- package/dist/web/assets/{console-BCR2S3AF.js → console-BF8ZU9dG.js} +1 -1
- package/dist/web/assets/{conversation-launcher-settings-28CqC1Gn.js → conversation-launcher-settings-D4vYOpHN.js} +1 -1
- package/dist/web/assets/{copy-mention-C4Nos381.js → copy-mention-Crs0NIJB.js} +1 -1
- package/dist/web/assets/{dialog-Cjoy4nsv.js → dialog-Bg5NVU4Y.js} +1 -1
- package/dist/web/assets/{dist-CaVgk2QB.js → dist--2DWcoU9.js} +1 -1
- package/dist/web/assets/{dist-D73EXNtz.js → dist-INkzWhVF.js} +1 -1
- package/dist/web/assets/{dropdown-menu-Dto6hjoc.js → dropdown-menu-C5Kf9x2y.js} +1 -1
- package/dist/web/assets/{field-BaUOZtN5.js → field-7G2bSNl5.js} +1 -1
- package/dist/web/assets/{format-bytes-D5eCtdg1.js → format-bytes-Jj3-0UhP.js} +1 -1
- package/dist/web/assets/{hover-card-Bg0dulGq.js → hover-card-llxR7wrX.js} +1 -1
- package/dist/web/assets/index-C2o_v2mq.js +24 -0
- package/dist/web/assets/{input-Dxh25T4M.js → input-z5o2wIZC.js} +1 -1
- package/dist/web/assets/{label-CbrduZla.js → label-BtTrlS8e.js} +1 -1
- package/dist/web/assets/label-table-CuTFbFd3.js +1 -0
- package/dist/web/assets/{model-CWMP5GOL.js → model-BD6AfoOR.js} +1 -1
- package/dist/web/assets/{model-ZwOxwk2m.js → model-BKg9fdsn.js} +1 -1
- package/dist/web/assets/{model-Blk5Wgg2.js → model-BMd98Yux.js} +1 -1
- package/dist/web/assets/{model-DcsCYhXk.js → model-Bb0VtRJH.js} +1 -1
- package/dist/web/assets/{model--lR9icA_.js → model-Bhyqm3my.js} +1 -1
- package/dist/web/assets/{model-jC3F-J2F.js → model-CCaA3vRN.js} +1 -1
- package/dist/web/assets/{model-D4DkvMH-.js → model-CGfhtR6w.js} +1 -1
- package/dist/web/assets/{model-Bgh75q3j.js → model-Ejc2vysd.js} +1 -1
- package/dist/web/assets/{motion-_MepnmMC.js → motion-Cw_hptY4.js} +1 -1
- package/dist/web/assets/{motion-BL3lek9c.js → motion-pePEUhOt.js} +1 -1
- package/dist/web/assets/{motion-preference-D3UMHojT.js → motion-preference-DTwjqiJ8.js} +1 -1
- package/dist/web/assets/{occupation-catalog-BeJ2O9nm.js → occupation-catalog-ByjQk0EY.js} +1 -1
- package/dist/web/assets/{occupation-kits-Bkiu6MzD.js → occupation-kits-Dg6UZqc1.js} +1 -1
- package/dist/web/assets/{option-Crs2MA88.js → option-BIjYeAh2.js} +1 -1
- package/dist/web/assets/{page-refresh-Bz5r7A_Q.js → page-refresh-BTqRX45n.js} +1 -1
- package/dist/web/assets/{page-title-KYZApNys.js → page-title-B5RyNTPD.js} +1 -1
- package/dist/web/assets/{person-profile-mhLxWtq7.js → person-profile-BzPwdtix.js} +1 -1
- package/dist/web/assets/{popover-CMahoDLo.js → popover-BsWyCEy5.js} +1 -1
- package/dist/web/assets/popup-host-DWJ1gygp.js +1 -0
- package/dist/web/assets/{profile-model-DWutKuCZ.js → profile-model-TAsyybji.js} +1 -1
- package/dist/web/assets/{project-board-layout-CWMHQuUA.js → project-board-layout-BwyHItDc.js} +1 -1
- package/dist/web/assets/{project-capture-CebFSnn0.js → project-capture-I8-7JwsK.js} +1 -1
- package/dist/web/assets/{project-origin-BnUVE0be.js → project-origin-B_Ku288r.js} +1 -1
- package/dist/web/assets/{quick-edit-api-YwzoODMc.js → quick-edit-api-Cm-W3ZVP.js} +1 -1
- package/dist/web/assets/{radio-group-vRt8y8mF.js → radio-group-DJ5np5d_.js} +1 -1
- package/dist/web/assets/review-api-Gwr5nP1B.js +1 -0
- package/dist/web/assets/{review-list-_PN7ljSY.js → review-list-CNeXKjBw.js} +1 -1
- package/dist/web/assets/{review-store-CobX9No6.js → review-store-BaMwO51r.js} +1 -1
- package/dist/web/assets/{role-names-wD9l8uz5.js → role-names-C-F0XIE1.js} +1 -1
- package/dist/web/assets/{roundtable-live-Dm4Vwo75.js → roundtable-live-CM4Cqw2v.js} +1 -1
- package/dist/web/assets/{runtime-dom.esm-bundler-DzfwnSj8.js → runtime-dom.esm-bundler-tA5o2TEo.js} +1 -1
- package/dist/web/assets/{select-B9mVptgx.js → select-DJ7iyJ-X.js} +1 -1
- package/dist/web/assets/{session-launch-offers-C9UkoKUJ.js → session-launch-offers-CEdCRTz9.js} +1 -1
- package/dist/web/assets/{settings-autosave-L0zSXnBO.js → settings-autosave-D3wBf_zN.js} +1 -1
- package/dist/web/assets/settings-tabs-B9pCaEFP.js +1 -0
- package/dist/web/assets/shared-report-KyuP8oQk.js +3 -0
- package/dist/web/assets/{source-adapters-r-NIqO77.js → source-adapters-BR-AAGhD.js} +1 -1
- package/dist/web/assets/{switch-BCzrGc4W.js → switch-BoOtTu6O.js} +1 -1
- package/dist/web/assets/{tabs-CB38D8N0.js → tabs-D0TAS18R.js} +1 -1
- package/dist/web/assets/{task-card-fields-B1z1PmTT.js → task-card-fields-BWlLtcKE.js} +1 -1
- package/dist/web/assets/{task-labels-DTc5OuFF.js → task-labels-BrNKooHK.js} +1 -1
- package/dist/web/assets/{task-reason-CneTZWRv.js → task-reason-CvmaNQWE.js} +1 -1
- package/dist/web/assets/{team-sheets-CUt3Vp2s.js → team-sheets-DkAuebg6.js} +1 -1
- package/dist/web/assets/{textarea-DJ0ucCir.js → textarea-BQnuJ0v3.js} +1 -1
- package/dist/web/assets/ui-CJiEsCpv.js +1 -0
- package/dist/web/assets/ui-CgwSWg1F.css +1 -0
- package/dist/web/assets/{useAgentRecords-CwkwZy8H.js → useAgentRecords-PysQYF4V.js} +1 -1
- package/dist/web/assets/{useAgentWorkSummary-DoiCqME7.js → useAgentWorkSummary-DaNyOo2z.js} +1 -1
- package/dist/web/assets/{useApi-CROJJdhE-CenjhnR5.js → useApi-CROJJdhE-CgPyy2pi.js} +1 -1
- package/dist/web/assets/{useClipboardCopy-Ba86PzjA.js → useClipboardCopy-Cf3GZrHC.js} +1 -1
- package/dist/web/assets/{useFocusReturn-B0ErBkt_.js → useFocusReturn-uY18_eDg.js} +1 -1
- package/dist/web/assets/{useForwardExpose-DJ6fcpI2.js → useForwardExpose-Ci_aBJDg.js} +1 -1
- package/dist/web/assets/{useForwardPropsEmits-D1vvIUcB.js → useForwardPropsEmits-mGaDeNMp.js} +1 -1
- package/dist/web/assets/useForwardScopeId-DYW8CZTp.js +1 -0
- package/dist/web/assets/{useKnowledgeConfirm-781LUhoU.js → useKnowledgeConfirm-PcqqgwNU.js} +1 -1
- package/dist/web/assets/{useKnowledgeItemPeek-CnuCvJKQ.js → useKnowledgeItemPeek-yjyrSFtf.js} +1 -1
- package/dist/web/assets/{useMinimumLoadingDisplay-DCC9EfQ9.js → useMinimumLoadingDisplay-Bu6xyHby.js} +1 -1
- package/dist/web/assets/{usePageTools-BaB021q0.js → usePageTools-DYi9x7HJ.js} +1 -1
- package/dist/web/assets/usePrimitiveElement-DdC34jzt.js +1 -0
- package/dist/web/assets/{useProjectAgentRoster-M3wbWpS-.js → useProjectAgentRoster-KPwWl2jE.js} +1 -1
- package/dist/web/assets/{useRoutePeek-CYg5JyYt.js → useRoutePeek-BiHDBRKc.js} +1 -1
- package/dist/web/assets/useTeamPeople-Od3dDz6d.js +1 -0
- package/dist/web/assets/{useTeamWork-Dql3_qLV.js → useTeamWork-CDKVZwYe.js} +1 -1
- package/dist/web/assets/{useTypeahead-DYb5kVkH.js → useTypeahead-D_Z5P9Xm.js} +1 -1
- package/dist/web/assets/{utils-Cli0RsEd.js → utils-CAAvfQSj.js} +1 -1
- package/dist/web/assets/{utils-B7sUn8rD.js → utils-D6RjkXrh.js} +1 -1
- package/dist/web/assets/{verification-DY7kllTI.js → verification-DoN2EFaZ.js} +1 -1
- package/dist/web/assets/{version-CBgUEmnM.js → version-DbJq2Cfv.js} +1 -1
- package/dist/web/assets/{vue-router-ab7kABlJ.js → vue-router-BwoPnYha.js} +1 -1
- package/dist/web/index.html +74 -77
- package/docs/agent-roundtable.md +45 -3
- package/docs/judgment-and-autonomy.md +2 -0
- package/graph-provider/fuli_graph/app.py +2 -0
- package/graph-provider/fuli_graph/knowledge_duplicates.py +27 -14
- package/graph-provider/fuli_graph/knowledge_search.py +31 -32
- package/graph-provider/fuli_graph/knowledge_semantic.py +38 -11
- package/graph-provider/fuli_graph/models.py +15 -0
- package/graph-provider/fuli_graph/preference_organizing.py +162 -0
- package/graph-provider/fuli_graph/project_agent_routes.py +22 -0
- package/graph-provider/fuli_graph/project_agent_task_models.py +26 -2
- package/graph-provider/fuli_graph/store_project_agent_task_activity.py +51 -11
- package/graph-provider/fuli_graph/store_project_agent_task_blockers.py +13 -6
- package/graph-provider/fuli_graph/store_project_agent_task_person_close.py +82 -0
- package/graph-provider/fuli_graph/store_project_agent_tasks.py +18 -1
- package/graph-provider/fuli_graph/task_blocker.py +10 -0
- package/graph-provider/pyproject.toml +1 -1
- package/native/win32/fuli-win-helper.exe +0 -0
- package/npm-shrinkwrap.json +57 -9
- package/package.json +4 -3
- package/packages/roundtable/package.json +1 -0
- package/packages/roundtable/src/agents/claude-code/wake.js +4 -2
- package/packages/roundtable/src/agents/codex/wake.js +1 -0
- package/packages/roundtable/src/host.js +4 -1
- package/packages/roundtable/src/peer/control-cli.js +75 -2
- package/packages/roundtable/src/peer/control.js +15 -1
- package/packages/roundtable/src/peer/coordinator-http.js +23 -2
- package/packages/roundtable/src/peer/coordinator-service.js +81 -9
- package/packages/roundtable/src/peer/coordinator-store.js +2 -1
- package/packages/roundtable/src/peer/lan-addresses.js +28 -0
- package/packages/roundtable/src/peer/nearby-attempts.js +73 -0
- package/packages/roundtable/src/peer/nearby-discovery.js +71 -0
- package/packages/roundtable/src/peer/nearby-pairing.js +422 -0
- package/packages/roundtable/src/peer/nearby-presence.js +93 -0
- package/packages/roundtable/src/peer/node-store.js +10 -0
- package/packages/roundtable/src/peer/peer-runtime.js +528 -70
- package/packages/roundtable/src/peer/peer-transport.js +58 -3
- package/packages/roundtable/src/peer/protocol.js +24 -1
- package/packages/roundtable/src/roundtable/chat-service.js +14 -3
- package/packages/roundtable/src/roundtable/chat.js +1 -0
- package/packages/roundtable/src/roundtable/delivery-state.js +2 -1
- package/packages/roundtable/src/roundtable/group-discussion-store.js +130 -5
- package/packages/roundtable/src/roundtable/group-discussion.js +596 -111
- package/packages/roundtable/src/roundtable/service.js +10 -2
- package/packages/roundtable/src/roundtable/store.js +11 -1
- package/packages/roundtable/src/roundtable/wake.js +3 -1
- package/packages/roundtable/src/standalone/cli.js +1 -1
- package/skills/capturing-session-knowledge/SKILL.md +1 -1
- package/skills/capturing-session-knowledge/references/coordination.md +28 -4
- package/skills/grilling-project/references/project-profile.md +13 -5
- package/skills/operating-fuli/SKILL.md +22 -5
- package/skills/operating-fuli/references/workflow-recipes.md +5 -2
- package/src/agent-delegation/port.js +1 -1
- package/src/agent-delegation/refusals.js +12 -4
- package/src/agent-roundtable/task-context.js +1 -1
- package/src/agent-roundtable/tools.js +5 -2
- package/src/agent-tools/graph-handlers.js +4 -3
- package/src/agent-tools/interface-catalog.js +10 -1
- package/src/agent-tools/interface-definitions.js +3 -2
- package/src/agent-tools/project-agent-definitions.js +2 -1
- package/src/agent-tools/project-organizing-definitions.js +7 -4
- package/src/agent-tools/project-space-definitions.js +2 -0
- package/src/agent-tools/session-fuli-gate.js +6 -1
- package/src/agents/codex/lifecycle-hook.js +3 -1
- package/src/agents/identity-receipt.js +3 -1
- package/src/agents/native-session-env.js +7 -0
- package/src/conversations/entry-budget.js +3 -2
- package/src/conversations/entry-inline-budget.js +40 -10
- package/src/conversations/preference-lifecycle.js +3 -3
- package/src/conversations/turn-findings.js +9 -2
- package/src/graphiti/agent-project-resolution.js +18 -0
- package/src/graphiti/collaboration-preference-entry.js +5 -2
- package/src/graphiti/current-project-knowledge-search.js +3 -3
- package/src/graphiti/fla-mention.js +48 -9
- package/src/graphiti/project-agent-task-summaries.js +82 -0
- package/src/graphiti/project-agent-workflows.js +8 -5
- package/src/graphiti/project-path-context.js +23 -9
- package/src/graphiti/provider-client.js +15 -1
- package/src/graphiti/repository-remote.js +34 -8
- package/src/graphiti/roundtable-host.js +9 -1
- package/src/graphiti/task-context-entry.js +4 -1
- package/src/graphiti/task-entry-group-discussion.js +111 -25
- package/src/graphiti/task-entry-owner-change.js +22 -2
- package/src/graphiti/task-entry-preferences.js +9 -4
- package/src/graphiti/task-entry-project-scope.js +19 -0
- package/src/graphiti/task-preference-pages.js +3 -3
- package/src/graphiti/task-preference-reader.js +44 -9
- package/src/graphiti/worker-task-context.js +1 -1
- package/src/http/api-router.js +3 -0
- package/src/http/task-blocker-api-router.js +11 -1
- package/src/http/task-close-api-router.js +59 -0
- package/src/judgment/engine.js +6 -1
- package/src/judgment/http.js +2 -2
- package/src/judgment/review-delegation.js +16 -4
- package/src/judgment/review-egress.js +25 -0
- package/src/judgment/service.js +1 -1
- package/src/mcp/create-mcp-server.js +2 -2
- package/src/mcp/direct-call.js +3 -2
- package/src/mcp/preference-delivery.js +64 -6
- package/src/mcp/session-id.js +12 -4
- package/src/mcp/tool-result.js +8 -6
- package/src/model-backends/config.js +7 -0
- package/src/model-backends/egress.js +8 -0
- package/src/model-backends/failures.js +8 -0
- package/src/model-backends/port.js +39 -16
- package/src/model-backends/role-trust.js +3 -9
- package/src/model-backends/usage-ledger.js +20 -9
- package/src/presence/windows-helper-pin.js +1 -1
- package/src/project-organizing/agent-tool.js +34 -7
- package/src/server.js +7 -0
- package/src/task-blockers/agent-resume.js +73 -0
- package/src/task-blockers/console-port.js +5 -2
- package/src/task-blockers/resume-status.js +2 -0
- package/src/task-closing/console-port.js +26 -0
- package/src/whats-new/lines/0.27.1.json +13 -0
- package/dist/web/assets/AgentAppsPage-CjyvPZSs.js +0 -1
- package/dist/web/assets/AgentProfilePage-eDKbJJwY.js +0 -5
- package/dist/web/assets/AgentServicesPage-CZwsN5U2.js +0 -1
- package/dist/web/assets/Breadcrumb-BXTA4e-W.js +0 -1
- package/dist/web/assets/DataFormatPage-CQKkFhcH.js +0 -2
- package/dist/web/assets/DebugTurnPage-CUqbuhgX.js +0 -1
- package/dist/web/assets/DebugTurnsPage-HwaTG8Fa.js +0 -1
- package/dist/web/assets/EmployeeScopeDialog-yUCgujKT.js +0 -1
- package/dist/web/assets/FieldRoot-BLcsuPMA.js +0 -1
- package/dist/web/assets/FlasPage-CMv2awKJ.js +0 -1
- package/dist/web/assets/InboxPage-DfQvtnyq.js +0 -6
- package/dist/web/assets/KnowledgeItemEditPage-BUKQK37o.js +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-CiZ9JlNX.js +0 -1
- package/dist/web/assets/KnowledgePage-C3_Cvz4g.js +0 -1
- package/dist/web/assets/KnowledgePeek-DtOOiARX.js +0 -1
- package/dist/web/assets/KnowledgeWorkspace-Cq_XYcma.js +0 -4
- package/dist/web/assets/ModelSettingsPage-COVaW4eh.js +0 -1
- package/dist/web/assets/OccupationsPage-BKd051j1.js +0 -1
- package/dist/web/assets/OverviewPage-C90G_adj.js +0 -1
- package/dist/web/assets/PersonalProfilePage-DIDgG3NH.js +0 -1
- package/dist/web/assets/PersonalProjectsPage-DwhlEpNg.js +0 -1
- package/dist/web/assets/ProjectAgentsPage-BefVF9ZP.js +0 -5
- package/dist/web/assets/SettingsPage-7mNL3bwe.js +0 -1
- package/dist/web/assets/SettingsPage-Cku8SoLk.css +0 -1
- package/dist/web/assets/SharedJefaReportPage-rH6I4cI9.js +0 -1
- package/dist/web/assets/TaskBlockerClear-BHOMZYwm.js +0 -1
- package/dist/web/assets/TonborgDelegationSwitch-BA3Qb8Wr.js +0 -1
- package/dist/web/assets/TonborgDelegationSwitch-DeqERWoo.css +0 -1
- package/dist/web/assets/UiDialog-bUwGQz96.js +0 -1
- package/dist/web/assets/UiIconButton-D3R6WwwI.css +0 -1
- package/dist/web/assets/UiIconButton-DlLZ5_Yc.js +0 -1
- package/dist/web/assets/UiSegmented-CYrTxDn1.js +0 -1
- package/dist/web/assets/WidgetSlot-D6vCSWaz.js +0 -2
- package/dist/web/assets/WorkbenchListPage-Zr5PW-cf.js +0 -1
- package/dist/web/assets/_plugin-vue_export-helper-BRS32yXs.js +0 -9
- package/dist/web/assets/agent-occupation-CEd3bAhb.js +0 -1
- package/dist/web/assets/index-B-aRUs9w.js +0 -24
- package/dist/web/assets/label-table-_YAtPkRI.js +0 -1
- package/dist/web/assets/popup-host-DKN99Od3.js +0 -1
- package/dist/web/assets/review-api-WhNB3ppo.js +0 -1
- package/dist/web/assets/settings-tabs-DTbgqX8g.js +0 -1
- package/dist/web/assets/shared-report-0FO_y0sa.js +0 -3
- package/dist/web/assets/ui-D4nAhcmu.css +0 -1
- package/dist/web/assets/ui-M_UKzb_A.js +0 -1
- package/dist/web/assets/useForwardScopeId-CoSQtoUU.js +0 -1
- package/dist/web/assets/usePrimitiveElement-iRKqOVuY.js +0 -1
- package/dist/web/assets/useTeamPeople-CPC62La3.js +0 -1
|
@@ -71,7 +71,9 @@ export async function codexLifecycleOutput(event, input, invoke, { delivery, cur
|
|
|
71
71
|
{ delivery, currentTask, onCurrentTask });
|
|
72
72
|
const context = await invoke('begin_task_context', { sessionId: input.session_id,
|
|
73
73
|
turnId: input.turn_id ?? null, projectPath: input.cwd, taskPrompt: withoutDebugMark(input.prompt).slice(0, 8192),
|
|
74
|
-
sourceApplication: 'codex', sourceSessionId: input.session_id, ...taskSceneInput(withoutDebugMark(input.prompt))
|
|
74
|
+
sourceApplication: 'codex', sourceSessionId: input.session_id, ...taskSceneInput(withoutDebugMark(input.prompt)),
|
|
75
|
+
// Codex names the session's model in its prompt hook input; a #FLG join records it (rec#129).
|
|
76
|
+
...(typeof input.model === 'string' && input.model.trim() ? { clientModel: input.model.trim().slice(0, 120) } : {}) });
|
|
75
77
|
const entry = compactTaskContext(context);
|
|
76
78
|
return preferenceHookOutput(entry, event, input, delivery, 'codex',
|
|
77
79
|
'Fuli task context. Apply effective_preferences. ' + taskClosingInstruction(entry) + PASS_TASK_TOKEN + TASK_RULES_ON_DEMAND);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { sourceConsoleUrl } from '../graphiti/source-marker.js';
|
|
2
|
+
import { REMOTE_CONFLICT } from '../graphiti/agent-project-resolution.js';
|
|
2
3
|
import { agentLabel } from './agent-label.js';
|
|
3
4
|
import { flaAddress } from '../../packages/roundtable/src/roundtable/fla-address.js';
|
|
4
5
|
import { markdownLink } from '../text/markdown-link.js';
|
|
@@ -168,7 +169,8 @@ function receiptSessionUrl(value) {
|
|
|
168
169
|
function unassignedReceipt(status, reason) {
|
|
169
170
|
if (!status) return 'FULI Agent:分配未完成(任务没有可用负责人)';
|
|
170
171
|
if (status === 'project_unresolved') {
|
|
171
|
-
|
|
172
|
+
// A repository address and folder name that point to two projects wait for the person too (rec#125).
|
|
173
|
+
return reason === 'ambiguous' || reason === REMOTE_CONFLICT ?'FULI Agent:分配待确认(项目归属待确认)'
|
|
172
174
|
: reason === 'session_identity_required' ? 'FULI Agent:分配失败(缺少会话标识)'
|
|
173
175
|
: 'FULI Agent:分配失败(项目归属未能恢复)';
|
|
174
176
|
}
|
|
@@ -10,6 +10,13 @@ export function nativeSessionFromEnv(sourceApplication, env = process.env) {
|
|
|
10
10
|
return READERS[sourceApplication]?.(env) ?? null;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
// Whether the host this process was started for names its sessions at all. A
|
|
14
|
+
// process of such a host without its session (the variable unset, a stale
|
|
15
|
+
// process) proves nothing; one of a host that names none has only its token.
|
|
16
|
+
export function hostNamesSessions(sourceApplication) {
|
|
17
|
+
return Object.hasOwn(READERS, sourceApplication);
|
|
18
|
+
}
|
|
19
|
+
|
|
13
20
|
// The session of a shell command the client started, as its prompt hooks name
|
|
14
21
|
// it: { sessionId }, { refused } when the environment cannot prove it, or null
|
|
15
22
|
// when the client names none. Claude Code updates its value on /clear.
|
|
@@ -97,9 +97,10 @@ function missingParts(entry) {
|
|
|
97
97
|
? [{ parts: [`project_agent_context.${part}`], tool: 'get_project_agent_memory',
|
|
98
98
|
arguments: { personalSpaceId: spaceId, personalProjectId, agentId } }] : [];
|
|
99
99
|
const messages = ['agent_messages', 'agent_replies', 'stand_in_handbacks', 'attention_replies'].filter(part => entry[part]?.length);
|
|
100
|
+
// The reader replays the task Agent; a task without one it refuses (rec#128).
|
|
100
101
|
return [
|
|
101
|
-
{ parts: ['effective_preferences', 'task_guidance', ...['project_agent_context', 'judgment_context'].filter(part => entry[part])],
|
|
102
|
-
tool: 'read_task_preferences', arguments: { taskContextToken: token }, note: RECOVERY_NOTE },
|
|
102
|
+
...(agentId ? [{ parts: ['effective_preferences', 'task_guidance', ...['project_agent_context', 'judgment_context'].filter(part => entry[part])],
|
|
103
|
+
tool: 'read_task_preferences', arguments: { taskContextToken: token }, note: RECOVERY_NOTE }] : []),
|
|
103
104
|
...memory('memory', projectId), ...memory('global_memory', null),
|
|
104
105
|
...(messages.length ? [{ parts: messages, tool: 'read_agent_messages', arguments: { taskContextToken: token } }] : [])
|
|
105
106
|
];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { copyPreferenceScope, entryWorkKind } from './preference-snapshot.js';
|
|
2
2
|
import { preferenceAlwaysInline, preferenceNamesWorkKind, preferenceSceneReplaceable } from '../graphiti/preference-task-scope.js';
|
|
3
|
-
import { blockedByDeliveryBudget, blockedPreferenceDelivery } from '../mcp/preference-delivery.js';
|
|
3
|
+
import { blockedByDeliveryBudget, blockedPreferenceDelivery, taskPreferenceRead } from '../mcp/preference-delivery.js';
|
|
4
4
|
import { managerRead, memoryRead, teamRead } from './entry-detail-readers.js';
|
|
5
5
|
|
|
6
6
|
// The blocked reason of an entry that does not fit its host's inline limit.
|
|
@@ -17,6 +17,11 @@ export const ALWAYS_INLINE_OMITTED_LABEL = 'Hard rules are among them (preferenc
|
|
|
17
17
|
+ 'if they are not already in this conversation, read the omitted ones once with read_task_preferences before acting; '
|
|
18
18
|
+ 'they stay in force.';
|
|
19
19
|
|
|
20
|
+
// Instead of the sentences above when the task's reader cannot serve them
|
|
21
|
+
// (no read named, rec#128): nothing points at a read that would be refused.
|
|
22
|
+
export const OMITTED_UNREADABLE_LABEL = 'More preferences or conflicts apply than this entry lists (preferences_omitted, '
|
|
23
|
+
+ 'active_conflicts_omitted) and this task cannot read them: before acting where one may apply, tell the person and ask.';
|
|
24
|
+
|
|
20
25
|
// Added when the active conflicts are left out (D-72).
|
|
21
26
|
export const OMITTED_CONFLICTS_LABEL = 'Unresolved preference conflicts apply that this entry does not list (active_conflicts_omitted): '
|
|
22
27
|
+ 'read them with read_task_preferences before acting where one may apply, and apply no alternative until it is resolved.';
|
|
@@ -64,7 +69,9 @@ export function fitUncached(fit, value, render) {
|
|
|
64
69
|
// Code's preview they were never seen. Closing fields and identity always
|
|
65
70
|
// stay. An entry that does not fit even so is never sent past the limit: it is
|
|
66
71
|
// the blocked frame (inline_budget) that keeps the token, closing fields and
|
|
67
|
-
// identity
|
|
72
|
+
// identity, lists the largest prefix of the same ranking that fits beside them
|
|
73
|
+
// with the rest counted, and recovers through read_task_preferences where the
|
|
74
|
+
// reader can serve the task (taskPreferenceRead).
|
|
68
75
|
export function inlineEntryFit(limit, length) {
|
|
69
76
|
return (whole, { deliver, complete }) => {
|
|
70
77
|
// A frame the renderer blocked as over its own delivery budget is short,
|
|
@@ -120,7 +127,22 @@ export function inlineEntryFit(limit, length) {
|
|
|
120
127
|
}
|
|
121
128
|
return best;
|
|
122
129
|
}
|
|
123
|
-
|
|
130
|
+
// Not even the leanest entry fits beside the hard rules (a long role,
|
|
131
|
+
// which is never cut): the blocked frame keeps the token, closing fields
|
|
132
|
+
// and identity, and lists the largest prefix of the same ranking that
|
|
133
|
+
// still fits beside them, rather than none (rec#128).
|
|
134
|
+
if (!preferences.length) return deliver(blockedPreferenceDelivery(value, INLINE_BUDGET));
|
|
135
|
+
const ordered = [...kept, ...ranked];
|
|
136
|
+
const blocked = count => blockedPreferenceDelivery(value, INLINE_BUDGET,
|
|
137
|
+
selectedPreferences(value, new Set(ordered.slice(0, count)), preferences.length));
|
|
138
|
+
let listed = 0;
|
|
139
|
+
let most = ordered.length;
|
|
140
|
+
while (listed < most) {
|
|
141
|
+
const middle = Math.ceil((listed + most) / 2);
|
|
142
|
+
if (fits(deliver(blocked(middle)))) listed = middle;
|
|
143
|
+
else most = middle - 1;
|
|
144
|
+
}
|
|
145
|
+
return deliver(blocked(listed));
|
|
124
146
|
};
|
|
125
147
|
}
|
|
126
148
|
|
|
@@ -159,12 +181,18 @@ function withoutPreferenceIds(value) {
|
|
|
159
181
|
}
|
|
160
182
|
|
|
161
183
|
function withPreferences(level, selected, total) {
|
|
162
|
-
return copyPreferenceScope(level, { ...withoutCompleteClaims(level),
|
|
163
|
-
|
|
184
|
+
return copyPreferenceScope(level, { ...withoutCompleteClaims(level), ...selectedPreferences(level, selected, total) });
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// The listed subset and what it leaves out. The read is named only where the
|
|
188
|
+
// reader can serve it (taskPreferenceRead, rec#128).
|
|
189
|
+
function selectedPreferences(value, selected, total) {
|
|
190
|
+
const read = taskPreferenceRead(value);
|
|
191
|
+
return { effective_preferences: value.effective_preferences.filter((_, index) => selected.has(index)),
|
|
164
192
|
preferences_omitted: { count: total - selected.size,
|
|
165
|
-
...(
|
|
193
|
+
...(value.effective_preferences.some((item, index) => !selected.has(index) && preferenceAlwaysInline(item))
|
|
166
194
|
? { includes_always_inline: true } : {}),
|
|
167
|
-
read
|
|
195
|
+
...(read ? { read } : {}) } };
|
|
168
196
|
}
|
|
169
197
|
|
|
170
198
|
// The entry, then each smaller context: the recall as a pointer, then the
|
|
@@ -231,9 +259,11 @@ const DETAIL_STEPS = [
|
|
|
231
259
|
title_mode: manager.title_mode, suggested_match: manager.suggested_match, guidance: manager.guidance,
|
|
232
260
|
read: managerRead(manager) })) } } : null;
|
|
233
261
|
},
|
|
234
|
-
({ active_conflicts: conflicts, ...value }) =>
|
|
235
|
-
|
|
236
|
-
|
|
262
|
+
({ active_conflicts: conflicts, ...value }) => {
|
|
263
|
+
const read = taskPreferenceRead(value);
|
|
264
|
+
return conflicts?.length ? { ...withoutCompleteClaims(value),
|
|
265
|
+
active_conflicts_omitted: { count: conflicts.length, ...(read ? { read } : {}) } } : null;
|
|
266
|
+
}
|
|
237
267
|
];
|
|
238
268
|
|
|
239
269
|
// A layer's preview without its notes: its scope, revision and rules stay,
|
|
@@ -5,8 +5,7 @@ import { withoutDeliveryProofs } from './recent-context.js';
|
|
|
5
5
|
import { copyPreferenceScope, taskPreferenceMetadata, withPreferenceScope } from './preference-snapshot.js';
|
|
6
6
|
import { joinTaskPreferencePages } from '../graphiti/task-preference-pages.js';
|
|
7
7
|
import { ALWAYS_INLINE_OMITTED_LABEL, fitUncached, inlineEntryFit, OMITTED_CONFLICTS_LABEL, OMITTED_PREFERENCES_LABEL,
|
|
8
|
-
WHOLE_ENTRY } from './entry-inline-budget.js';
|
|
9
|
-
import { BLOCKED_PREFERENCE_LABEL } from '../mcp/preference-delivery.js';
|
|
8
|
+
OMITTED_UNREADABLE_LABEL, WHOLE_ENTRY } from './entry-inline-budget.js';
|
|
10
9
|
import { taskReceiptInstruction } from '../agents/lifecycle-message.js';
|
|
11
10
|
import { skeletonFrameLabel } from './entry-skeleton.js';
|
|
12
11
|
|
|
@@ -81,7 +80,7 @@ export async function preferenceHookOutput(entry, event, input, delivery, source
|
|
|
81
80
|
const frameLabel = projected => omittedLabel(label, boundedLabel, projected);
|
|
82
81
|
const format = projected => hookAdditionalContextToolResult(projected, { hookEventName: event,
|
|
83
82
|
label: skeletonFrameLabel(frameLabel(projected), projected), limitBytes: 128 * 1024, itemLimit: 1000,
|
|
84
|
-
|
|
83
|
+
blockedNote: taskReceiptInstruction(value) });
|
|
85
84
|
const fit = inlineChars ? inlineEntryFit(inlineChars, hookContextLength) : WHOLE_ENTRY;
|
|
86
85
|
// An entry without a task has nothing for delivery to track (task-entry-read-only.js).
|
|
87
86
|
const result = delivery && typeof entry.taskContextToken === 'string' ? await delivery.deliver(value, { sourceApplication,
|
|
@@ -94,6 +93,7 @@ export async function preferenceHookOutput(entry, event, input, delivery, source
|
|
|
94
93
|
function omittedLabel(label, boundedLabel, projected) {
|
|
95
94
|
const omitted = projected?.preferences_omitted, conflicts = projected?.active_conflicts_omitted;
|
|
96
95
|
if (!omitted && !conflicts) return label;
|
|
96
|
+
if (!(omitted ?? conflicts).read) return `${boundedLabel} ${OMITTED_UNREADABLE_LABEL}`;
|
|
97
97
|
return [boundedLabel, ...(omitted ? [OMITTED_PREFERENCES_LABEL] : []),
|
|
98
98
|
...(omitted?.includes_always_inline ? [ALWAYS_INLINE_OMITTED_LABEL] : []), ...(conflicts ? [OMITTED_CONFLICTS_LABEL] : [])].join(' ');
|
|
99
99
|
}
|
|
@@ -10,8 +10,15 @@
|
|
|
10
10
|
// to other items. Kept as experiences, each turn wrapped the last one's link
|
|
11
11
|
// and the review queue filled with nested echoes of earlier replies.
|
|
12
12
|
const ERROR_LINE = /(?:Error|ENOENT|not found|Cannot find|No such file|failed)/u;
|
|
13
|
-
// A project script, as a person would type it again.
|
|
14
|
-
|
|
13
|
+
// A project script, as a person would type it again. pnpm and yarn run a script by its bare
|
|
14
|
+
// name, so their own commands are left out: `pnpm exec`, `pnpm dlx` and the like are the package
|
|
15
|
+
// manager's, not a check of the project, and each finished task kept one as knowledge (rec#124).
|
|
16
|
+
const MANAGER_COMMANDS = 'exec|dlx|install|i|add|remove|rm|uninstall|update|up|upgrade|outdated|why|list|ls|link|unlink'
|
|
17
|
+
+ '|store|config|init|create|publish|pack|login|logout|cache|prune|rebuild|dedupe|audit|info|view|bin|root|patch'
|
|
18
|
+
+ '|import|fetch|approve-builds|setup|env|self-update|set|workspace|workspaces|global|node|npm|version|help';
|
|
19
|
+
const BARE_SCRIPT = `(?!(?:${MANAGER_COMMANDS})(?![\\w:.-]))\\w[\\w:.-]*`;
|
|
20
|
+
const PROJECT_SCRIPT = new RegExp(
|
|
21
|
+
`^(?:npm (?:test|t|run [\\w:.-]+)|pnpm (?:test|run [\\w:.-]+|${BARE_SCRIPT})|yarn (?:test|run [\\w:.-]+|${BARE_SCRIPT})|make [\\w.-]+)\\b`, 'u');
|
|
15
22
|
const DENIED = /^(?:This (?:Bash )?command|A variable in braces|Permission to use)|require[sd]? approval/u;
|
|
16
23
|
|
|
17
24
|
export function turnFindings(records) {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// The repository address and the folder name point to two projects (rec#125).
|
|
2
|
+
export const REMOTE_CONFLICT = 'repository_remote_conflict';
|
|
3
|
+
|
|
1
4
|
export function agentProjectResolution(resolution) {
|
|
2
5
|
const result = {
|
|
3
6
|
status: resolution.status,
|
|
@@ -7,5 +10,20 @@ export function agentProjectResolution(resolution) {
|
|
|
7
10
|
if (resolution.candidateCount !== undefined) {
|
|
8
11
|
result.candidate_count = resolution.candidateCount;
|
|
9
12
|
}
|
|
13
|
+
// Only this conflict names its two candidates (IDs, never addresses).
|
|
14
|
+
if (resolution.status === 'ambiguous' && resolution.reason === REMOTE_CONFLICT) {
|
|
15
|
+
result.reason = REMOTE_CONFLICT;
|
|
16
|
+
result.candidate_project_ids = resolution.candidateProjectIds ?? [];
|
|
17
|
+
}
|
|
10
18
|
return result;
|
|
11
19
|
}
|
|
20
|
+
|
|
21
|
+
// The required action for this conflict, or null for any other resolution.
|
|
22
|
+
export function remoteConflictAction(resolution) {
|
|
23
|
+
if (resolution.status !== 'ambiguous' || resolution.reason !== REMOTE_CONFLICT) return null;
|
|
24
|
+
// Callers hold either the resolver's object or its agentProjectResolution view.
|
|
25
|
+
const [byRemote, byFolder] = resolution.candidateProjectIds ?? resolution.candidate_project_ids ?? [];
|
|
26
|
+
return `The repository address points to project ${byRemote} and the folder name to project ${byFolder}. `
|
|
27
|
+
+ 'The person picks one (start the message with that project\'s name, or #FLA its Agent), or marks the '
|
|
28
|
+
+ 'repository source of the project it does not belong to as role "reference".';
|
|
29
|
+
}
|
|
@@ -31,7 +31,9 @@ async function collaborationPreferences(application, {
|
|
|
31
31
|
agentInvocation = false,
|
|
32
32
|
agentToolName = 'get_collaboration_preferences',
|
|
33
33
|
// The session's current task when the caller already read it (task-context-entry.js).
|
|
34
|
-
sessionTask
|
|
34
|
+
sessionTask,
|
|
35
|
+
// The model a client's prompt hook reported (Codex), for a #FLG join (rec#129); hooks only.
|
|
36
|
+
clientModel = null
|
|
35
37
|
} = {}) {
|
|
36
38
|
let projectResolution = await resolvePreferenceProject(application, { personalProjectId, projectPath });
|
|
37
39
|
if (projectResolution.repositoryProjectId && agentInvocation && TASK_ENTRY_TOOLS.has(agentToolName)
|
|
@@ -43,7 +45,8 @@ async function collaborationPreferences(application, {
|
|
|
43
45
|
projectResolution = await registerRepositoryProject(application, projectResolution, { sessionId, projectPath });
|
|
44
46
|
}
|
|
45
47
|
projectResolution = await resolveTaskEntryProject(application, projectResolution, {
|
|
46
|
-
sessionId, sourceSessionId, sourceApplication, agentInvocation, agentToolName, projectAgentId, taskPrompt, sessionTask
|
|
48
|
+
sessionId, sourceSessionId, sourceApplication, agentInvocation, agentToolName, projectAgentId, taskPrompt, sessionTask,
|
|
49
|
+
clientModel
|
|
47
50
|
});
|
|
48
51
|
const preferences = await taskEntryPreferences(application, projectResolution, {
|
|
49
52
|
personalProjectId, projectAgentId, projectPath, taskPrompt, sourceApplication,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { agentProjectResolution } from './agent-project-resolution.js';
|
|
1
|
+
import { agentProjectResolution, remoteConflictAction } from './agent-project-resolution.js';
|
|
2
2
|
import { budgetKnowledgeSearch } from './knowledge-result-budget.js';
|
|
3
3
|
import {
|
|
4
4
|
relatedProjectGuidance,
|
|
@@ -35,9 +35,9 @@ export async function searchCurrentProjectKnowledge(
|
|
|
35
35
|
personal_project_id: null,
|
|
36
36
|
project_resolution: projectResolution,
|
|
37
37
|
results: [],
|
|
38
|
-
required_action: resolution.status === 'ambiguous'
|
|
38
|
+
required_action: remoteConflictAction(resolution) ?? (resolution.status === 'ambiguous'
|
|
39
39
|
? 'Run from the exact project directory or explicitly choose one project; Fuli will not guess among workspace children.'
|
|
40
|
-
: 'Register this repository or directory as one local personal project before project-scoped search.'
|
|
40
|
+
: 'Register this repository or directory as one local personal project before project-scoped search.')
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -19,11 +19,15 @@
|
|
|
19
19
|
// several FLAs. Its text may name members and ask for more to be
|
|
20
20
|
// recommended (task-entry-group-discussion.js); `#FLG 1 3` or `#FLG 开始`
|
|
21
21
|
// answers its member choice, optionally with how the group works (`一起看`
|
|
22
|
-
// in this session, `圆桌` in the roundtable)
|
|
22
|
+
// in this session, `圆桌` in the roundtable) and the roundtable's options
|
|
23
|
+
// (`短期`/`长期`, `3轮`/`不限轮数`; rec#129), and `#FLG 结束` stops it. A
|
|
23
24
|
// bare reply of numbers answers the choice too; a bare "好", "开始" or
|
|
24
|
-
// "一起看" does not.
|
|
25
|
+
// "一起看" does not. `#FLG 加入 <code>` (or `join`) joins a started
|
|
26
|
+
// discussion from any connected client.
|
|
25
27
|
|
|
26
28
|
// The keywords, half- or full-width `#`, any case.
|
|
29
|
+
import { JOIN_CODE_PATTERN } from '../../packages/roundtable/src/roundtable/group-discussion.js';
|
|
30
|
+
|
|
27
31
|
const KEYWORD = /^[##]FLA(?=$|\s)/iu;
|
|
28
32
|
const GROUP = /^[##]FLG(?=$|[\s::,,])/iu;
|
|
29
33
|
// Everything below reads at most this much of a prompt, and every pattern
|
|
@@ -47,6 +51,16 @@ const MODE = String.raw`(?:(${SESSION_MODE})|(${ROUNDTABLE_MODE}))`;
|
|
|
47
51
|
// alone takes the preselection only after `#FLG` (`#FLG 开始`, `#FLG 一起看`).
|
|
48
52
|
const CHOICES = new RegExp(String.raw`^(\d{1,2}(?: \d{1,2})*)(?: ?(?:开始|确认|go|start|ok))?(?: ?${MODE})?\.?$`, 'iu');
|
|
49
53
|
const CONFIRM = new RegExp(String.raw`^(开始吧|开始|确认|go|start)?(?: ?${MODE})?\.?$`, 'iu');
|
|
54
|
+
// A roundtable's options ride on the same answer (rec#129), each a whole word:
|
|
55
|
+
// how long its join code lives and how many rounds its host may lead.
|
|
56
|
+
const LONG = /(?:^| )(?:长期调研群|长期|long)(?= |$)/iu;
|
|
57
|
+
const SHORT = /(?:^| )(?:短期|short)(?= |$)/iu;
|
|
58
|
+
const ROUNDS = /(?:^| )(?:(?:限定|最多) ?)?([1-9]) ?(?:轮|rounds?)(?= |$)/iu;
|
|
59
|
+
const NO_ROUND_LIMIT = /(?:^| )(?:不限轮数|不限|no limit|unlimited)(?= |$)/iu;
|
|
60
|
+
// `#FLG 加入 7K3M` (or `join`): this session joins a started discussion by its
|
|
61
|
+
// code, exactly the shape FULI generates. Text after the code (on its line
|
|
62
|
+
// or on later lines) is ignored; anything else after 加入 is a question.
|
|
63
|
+
const JOIN = new RegExp(String.raw`^(?:加入|join)[\s::]*(${JOIN_CODE_PATTERN})(?=$|[\s,,。.!!::])`, 'iu');
|
|
50
64
|
// What a client puts ahead of the person's words is skipped before deciding
|
|
51
65
|
// what the message starts with: a quoted file (Claude Code writes
|
|
52
66
|
// `@"C:\…\clip.mp4"`, possibly with `#FLA` right after it) or any other `@`
|
|
@@ -115,20 +129,45 @@ function groupMention(rest) {
|
|
|
115
129
|
const text = rest.replace(/^[\s::,,]+/u, '').trim();
|
|
116
130
|
const words = reply(text);
|
|
117
131
|
if (words !== null && RELEASE.test(words)) return { release: true };
|
|
118
|
-
const
|
|
119
|
-
if (
|
|
120
|
-
|
|
132
|
+
const join = JOIN.exec(text);
|
|
133
|
+
if (join) return { join: join[1].toUpperCase() };
|
|
134
|
+
const { rest: answer, options } = discussionOptions(words);
|
|
135
|
+
const confirm = answer === null ? null : CONFIRM.exec(answer);
|
|
136
|
+
if (confirm?.slice(1).some(Boolean)) return { confirm: true, ...namedMode(confirm), ...options };
|
|
137
|
+
// Only options (`#FLG 长期 不限轮数`) confirm the preselection with them.
|
|
138
|
+
if (answer === '' && Object.keys(options).length) return { confirm: true, ...options };
|
|
139
|
+
return choicesIn(answer, options) ?? { query: text };
|
|
121
140
|
}
|
|
122
141
|
|
|
123
142
|
// A reply of numbers to a member choice, after anything the client attached:
|
|
124
|
-
// { choices: [n…] } (distinct, as typed) and the
|
|
143
|
+
// { choices: [n…] } (distinct, as typed), the mode and the options it names, or null.
|
|
125
144
|
export function groupChoiceReply(prompt) {
|
|
126
|
-
|
|
145
|
+
const { rest, options } = discussionOptions(reply(afterAttachments(prompt)));
|
|
146
|
+
return choicesIn(rest, options);
|
|
127
147
|
}
|
|
128
148
|
|
|
129
|
-
function choicesIn(words) {
|
|
149
|
+
function choicesIn(words, options = {}) {
|
|
130
150
|
const numbers = words === null ? null : CHOICES.exec(words);
|
|
131
|
-
return numbers ? { choices: [...new Set(numbers[1].split(' ').map(Number))], ...namedMode(numbers) } : null;
|
|
151
|
+
return numbers ? { choices: [...new Set(numbers[1].split(' ').map(Number))], ...namedMode(numbers), ...options } : null;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// The roundtable options a short reply names ({ lifetime: 'short' | 'long',
|
|
155
|
+
// roundLimit: n, 0 for no limit }) and the reply without them.
|
|
156
|
+
function discussionOptions(words) {
|
|
157
|
+
if (words === null) return { rest: null, options: {} };
|
|
158
|
+
let rest = words;
|
|
159
|
+
const options = {};
|
|
160
|
+
const take = (pattern, apply) => {
|
|
161
|
+
const found = pattern.exec(rest);
|
|
162
|
+
if (!found) return;
|
|
163
|
+
apply(found);
|
|
164
|
+
rest = `${rest.slice(0, found.index)} ${rest.slice(found.index + found[0].length)}`.replace(/ +/gu, ' ').trim();
|
|
165
|
+
};
|
|
166
|
+
take(LONG, () => { options.lifetime = 'long'; });
|
|
167
|
+
take(SHORT, () => { options.lifetime ??= 'short'; });
|
|
168
|
+
take(NO_ROUND_LIMIT, () => { options.roundLimit = 0; });
|
|
169
|
+
take(ROUNDS, found => { options.roundLimit ??= Number(found[1]); });
|
|
170
|
+
return { rest, options };
|
|
132
171
|
}
|
|
133
172
|
|
|
134
173
|
// The mode a question asks for, 'session' or 'roundtable', or null.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { InvalidInputError } from '../app/application-error.js';
|
|
2
|
+
import { utf8Preview } from '../text/utf8-preview.js';
|
|
3
|
+
|
|
4
|
+
// What list_project_agent_tasks gives an Agent to triage tasks (rec#123): one
|
|
5
|
+
// line of facts per task, never its events or routing decision, which made a
|
|
6
|
+
// page of five tasks over 100 KB and the generic result cut drop fields and
|
|
7
|
+
// leave empty objects. view_project_agent_task reads one task in full.
|
|
8
|
+
const DEFAULT_LIMIT = 50;
|
|
9
|
+
// A page stops below the tool's 128 KiB result limit, so it is never cut; the
|
|
10
|
+
// cursor continues after the last task it holds.
|
|
11
|
+
const PAGE_BYTES = 96 * 1024;
|
|
12
|
+
const TITLE_BYTES = 200;
|
|
13
|
+
const TEXT_BYTES = 400;
|
|
14
|
+
const CURSOR_HINT = 'cursor must be the nextCursor of an earlier list_project_agent_tasks page';
|
|
15
|
+
const TASK_DETAIL_HINT = 'view_project_agent_task(taskId) reads one task with its events, routing and full text';
|
|
16
|
+
|
|
17
|
+
export async function listProjectAgentTaskSummaries(app, { cursor = null, limit = null, ...filters }) {
|
|
18
|
+
const size = limit ?? DEFAULT_LIMIT;
|
|
19
|
+
const after = cursor ? taskCursor(cursor) : null;
|
|
20
|
+
// One more task than the page says whether another page follows.
|
|
21
|
+
const tasks = await app.listProjectAgentTasks({ ...filters, limit: size + 1,
|
|
22
|
+
afterUpdatedAt: after?.updatedAt ?? null, afterTaskId: after?.taskId ?? null });
|
|
23
|
+
const page = [];
|
|
24
|
+
let bytes = 0;
|
|
25
|
+
for (const task of tasks.slice(0, size)) {
|
|
26
|
+
const summary = taskSummary(task);
|
|
27
|
+
const added = Buffer.byteLength(JSON.stringify(summary)) + 1;
|
|
28
|
+
if (page.length && bytes + added > PAGE_BYTES) break;
|
|
29
|
+
page.push(summary);
|
|
30
|
+
bytes += added;
|
|
31
|
+
}
|
|
32
|
+
const last = page.at(-1);
|
|
33
|
+
// A Provider that does not know the cursor answers with the first page again: stop there, never loop.
|
|
34
|
+
const moved = !after || !page.length || Date.parse(page[0].updatedAt) < Date.parse(after.updatedAt)
|
|
35
|
+
|| (Date.parse(page[0].updatedAt) === Date.parse(after.updatedAt) && page[0].taskId !== after.taskId);
|
|
36
|
+
return { tasks: page, nextCursor: moved && tasks.length > page.length && last ? encodeCursor(last) : null,
|
|
37
|
+
detail: TASK_DETAIL_HINT };
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function taskSummary(task) {
|
|
41
|
+
return {
|
|
42
|
+
taskId: task.taskId,
|
|
43
|
+
personalProjectId: task.personalProjectId,
|
|
44
|
+
...(task.projectScope ? { projectScope: task.projectScope } : {}),
|
|
45
|
+
title: bounded(task.title, TITLE_BYTES),
|
|
46
|
+
status: task.status,
|
|
47
|
+
revision: task.revision,
|
|
48
|
+
workKind: task.workKind,
|
|
49
|
+
leadAgentId: task.leadAgentId,
|
|
50
|
+
participants: (task.participants ?? []).map(({ agentId, role, status }) => ({ agentId, role, status })),
|
|
51
|
+
blocker: task.blocker ? { ...task.blocker, reason: bounded(task.blocker.reason, TEXT_BYTES) } : null,
|
|
52
|
+
resultSummary: bounded(task.resultSummary, TEXT_BYTES),
|
|
53
|
+
failureReason: bounded(task.failureReason, TEXT_BYTES),
|
|
54
|
+
qualityGate: task.qualityGate,
|
|
55
|
+
activityOrigin: task.activityOrigin,
|
|
56
|
+
createdAt: task.createdAt,
|
|
57
|
+
updatedAt: task.updatedAt,
|
|
58
|
+
completedAt: task.completedAt
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const bounded = (text, limit) => (typeof text === 'string' ? utf8Preview(text, limit) : text);
|
|
63
|
+
|
|
64
|
+
// The position after one listed task: the list's order is latest change first, then task ID.
|
|
65
|
+
function encodeCursor({ updatedAt, taskId }) {
|
|
66
|
+
return Buffer.from(JSON.stringify([updatedAt, taskId])).toString('base64url');
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function taskCursor(cursor) {
|
|
70
|
+
let position;
|
|
71
|
+
try {
|
|
72
|
+
position = JSON.parse(Buffer.from(String(cursor), 'base64url').toString('utf8'));
|
|
73
|
+
} catch {
|
|
74
|
+
throw new InvalidInputError(CURSOR_HINT);
|
|
75
|
+
}
|
|
76
|
+
const [updatedAt, taskId] = Array.isArray(position) ? position : [];
|
|
77
|
+
if (!Array.isArray(position) || position.length !== 2 || typeof taskId !== 'string' || !taskId
|
|
78
|
+
|| typeof updatedAt !== 'string' || !Number.isFinite(Date.parse(updatedAt))) {
|
|
79
|
+
throw new InvalidInputError(CURSOR_HINT);
|
|
80
|
+
}
|
|
81
|
+
return { updatedAt, taskId };
|
|
82
|
+
}
|
|
@@ -39,6 +39,7 @@ import {
|
|
|
39
39
|
routingLearningRecord
|
|
40
40
|
} from './project-agent-mapping.js';
|
|
41
41
|
import { coversClient } from '../agents/source-applications.js';
|
|
42
|
+
import { remoteConflictAction } from './agent-project-resolution.js';
|
|
42
43
|
|
|
43
44
|
const CHARACTER_FIELDS = Object.freeze(['judgment', 'taste', 'personality']);
|
|
44
45
|
|
|
@@ -242,9 +243,9 @@ export async function coordinateProjectAgentTask(
|
|
|
242
243
|
personal_space_id: application.config.personal.spaceId,
|
|
243
244
|
personal_project_id: null,
|
|
244
245
|
project_resolution: projectResolution,
|
|
245
|
-
required_action: projectResolution.status === 'ambiguous'
|
|
246
|
+
required_action: remoteConflictAction(projectResolution) ?? (projectResolution.status === 'ambiguous'
|
|
246
247
|
? 'Run from the exact project directory; Fuli will not guess among workspace children.'
|
|
247
|
-
: 'Register this repository or directory as one local personal project first.',
|
|
248
|
+
: 'Register this repository or directory as one local personal project first.'),
|
|
248
249
|
host_execution_required: false,
|
|
249
250
|
worker_plan: []
|
|
250
251
|
};
|
|
@@ -391,7 +392,9 @@ export async function listProjectAgentTasks(application, input) {
|
|
|
391
392
|
personalProjectId: input.personalProjectId ?? null,
|
|
392
393
|
agentId: input.agentId ?? null,
|
|
393
394
|
status: input.status ?? null,
|
|
394
|
-
limit: input.limit ?? null
|
|
395
|
+
limit: input.limit ?? null,
|
|
396
|
+
afterUpdatedAt: input.afterUpdatedAt ?? null,
|
|
397
|
+
afterTaskId: input.afterTaskId ?? null
|
|
395
398
|
});
|
|
396
399
|
return asList(value, ['tasks', 'items']).map(projectAgentTaskRecord);
|
|
397
400
|
}
|
|
@@ -630,9 +633,9 @@ export async function getProjectAgentContext(
|
|
|
630
633
|
personal_space_id: application.config.personal.spaceId,
|
|
631
634
|
personal_project_id: null,
|
|
632
635
|
project_resolution: projectResolution,
|
|
633
|
-
required_action: projectResolution.status === 'ambiguous'
|
|
636
|
+
required_action: remoteConflictAction(projectResolution) ?? (projectResolution.status === 'ambiguous'
|
|
634
637
|
? 'Run from the exact project directory; Fuli will not guess among workspace children.'
|
|
635
|
-
: 'Register this repository or directory as one local personal project first.'
|
|
638
|
+
: 'Register this repository or directory as one local personal project first.')
|
|
636
639
|
};
|
|
637
640
|
}
|
|
638
641
|
|
|
@@ -7,7 +7,9 @@ import {
|
|
|
7
7
|
import path from 'node:path';
|
|
8
8
|
import { ApplicationError, InvalidInputError } from '../app/application-error.js';
|
|
9
9
|
import { hostPathOfCallerPath } from '../system/platform-path.js';
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
claimsUnaddressedRepository, linkedGitDirectory, originRemoteKey, projectsWithRemote, recordsOtherRemote
|
|
12
|
+
} from './repository-remote.js';
|
|
11
13
|
|
|
12
14
|
// Says what to pass, never the path the caller sent.
|
|
13
15
|
const INVALID_PATH_MESSAGE = 'projectPath must be an existing absolute directory. '
|
|
@@ -59,14 +61,9 @@ export function resolvePersonalProjectPath(projectPath, projects, {
|
|
|
59
61
|
// An unregistered repository can be registered under this exact ID.
|
|
60
62
|
let repositoryProjectId = null;
|
|
61
63
|
if (repositoryRoot) {
|
|
62
|
-
// The origin remote decides first (#632): a clone or worktree whose folder
|
|
63
|
-
// is named after another project still belongs to its own repository.
|
|
64
64
|
const remote = originRemoteKey(repositoryRoot, { readText, pathApi });
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
// Without a recorded remote the folder names the project, as before,
|
|
68
|
-
// unless that project records another repository: then nothing matches
|
|
69
|
-
// and no registration under its ID is offered.
|
|
65
|
+
// A project whose own repository is at another remote is not this
|
|
66
|
+
// checkout, whatever the folder is called.
|
|
70
67
|
const otherRepository = resolution => Boolean(remote && resolution?.personalProjectId && recordsOtherRemote(
|
|
71
68
|
registered.find(({ project_id: projectId }) => projectId === resolution.personalProjectId), remote));
|
|
72
69
|
const worktreeId = worktreeOriginProjectId(
|
|
@@ -77,6 +74,23 @@ export function resolvePersonalProjectPath(projectPath, projects, {
|
|
|
77
74
|
// identifies the project, even when the folder names another project.
|
|
78
75
|
const candidateId = worktreeId ?? pathApi.basename(repositoryRoot);
|
|
79
76
|
const named = resolveProjectId(candidateId, projectIds, worktreeId ? 'git_worktree_origin' : 'repository_root');
|
|
77
|
+
// The origin remote decides first (#632). Only when the folder or the
|
|
78
|
+
// worktree's original repository names another current project that
|
|
79
|
+
// claims a repository of its own without its address may that project be
|
|
80
|
+
// this checkout too: then the person chooses rather than the owner
|
|
81
|
+
// switching silently (rec#125).
|
|
82
|
+
const byRemote = remote && remoteProject(remote, registered);
|
|
83
|
+
const namedProject = named?.personalProjectId
|
|
84
|
+
&& registered.find(({ project_id: projectId }) => projectId === named.personalProjectId);
|
|
85
|
+
if (byRemote?.personalProjectId && namedProject && named.personalProjectId !== byRemote.personalProjectId
|
|
86
|
+
&& namedProject.profile?.lifecycle !== 'archived' && claimsUnaddressedRepository(namedProject)) {
|
|
87
|
+
return unresolved('ambiguous', { candidateCount: 2, reason: 'repository_remote_conflict',
|
|
88
|
+
candidateProjectIds: [byRemote.personalProjectId, named.personalProjectId] });
|
|
89
|
+
}
|
|
90
|
+
if (byRemote) return byRemote;
|
|
91
|
+
// Without a recorded remote the folder names the project, as before,
|
|
92
|
+
// unless that project records another repository: then nothing matches
|
|
93
|
+
// and no registration under its ID is offered.
|
|
80
94
|
if (otherRepository(named)) return unresolved('unmatched', { reason: 'repository_remote_conflict' });
|
|
81
95
|
if (named) return named;
|
|
82
96
|
if (worktreeId) {
|
|
@@ -146,7 +160,7 @@ function worktreeOriginProjectId(gitMarkerPath, {
|
|
|
146
160
|
}
|
|
147
161
|
|
|
148
162
|
// A clone under another folder name: its origin URL equals exactly one
|
|
149
|
-
// project's recorded repository URL.
|
|
163
|
+
// project's own recorded repository URL.
|
|
150
164
|
function remoteProject(remote, projects) {
|
|
151
165
|
const matches = projectsWithRemote(projects, remote);
|
|
152
166
|
if (matches.length === 1) return matched(matches[0].project_id, 'git_remote');
|
|
@@ -396,7 +396,9 @@ export class GraphitiProviderClient {
|
|
|
396
396
|
personalProjectId = null,
|
|
397
397
|
agentId = null,
|
|
398
398
|
status = null,
|
|
399
|
-
limit = null
|
|
399
|
+
limit = null,
|
|
400
|
+
afterUpdatedAt = null,
|
|
401
|
+
afterTaskId = null
|
|
400
402
|
}) {
|
|
401
403
|
const query = new URLSearchParams({
|
|
402
404
|
personal_space_id: personalSpaceId
|
|
@@ -405,6 +407,11 @@ export class GraphitiProviderClient {
|
|
|
405
407
|
if (agentId) query.set('agent_id', agentId);
|
|
406
408
|
if (status) query.set('status', status);
|
|
407
409
|
if (limit !== null && limit !== undefined) query.set('limit', String(limit));
|
|
410
|
+
// The last task an earlier page listed; the Provider takes both or neither.
|
|
411
|
+
if (afterUpdatedAt && afterTaskId) {
|
|
412
|
+
query.set('after_updated_at', afterUpdatedAt);
|
|
413
|
+
query.set('after_task_id', afterTaskId);
|
|
414
|
+
}
|
|
408
415
|
return this.#request(`/v1/project-agent-tasks?${query}`);
|
|
409
416
|
}
|
|
410
417
|
// One keyset page of the console's full task lists (store_project_agent_task_pages.py).
|
|
@@ -815,6 +822,13 @@ export class GraphitiProviderClient {
|
|
|
815
822
|
method: 'POST', body: { personal_space_id: personalSpaceId, ...(limit ? { limit } : {}) }
|
|
816
823
|
});
|
|
817
824
|
}
|
|
825
|
+
// rec#121: a page of the person's current preferences, read as an Agent, with the
|
|
826
|
+
// copies the same duplicate rules call one; a proposal for the person, never merged.
|
|
827
|
+
readPreferenceOrganizing({ personalSpaceId, offset = 0 }) {
|
|
828
|
+
return this.#request('/v1/knowledge/preferences/organizing', {
|
|
829
|
+
method: 'POST', body: { personal_space_id: personalSpaceId, offset }
|
|
830
|
+
});
|
|
831
|
+
}
|
|
818
832
|
semanticStatus({ personalSpaceId, model }) {
|
|
819
833
|
return this.#request('/v1/semantic/status', {
|
|
820
834
|
method: 'POST', body: { personal_space_id: personalSpaceId, model }
|