fuli-context 0.23.0-beta.2 → 0.23.0-beta.4
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 +42 -11
- package/README.zh-CN.md +32 -9
- package/dist/web/assets/AboutPage-B6mIpS1j.css +1 -0
- package/dist/web/assets/AboutPage-CKRMZNsv.js +1 -0
- package/dist/web/assets/AboutSectionHeading-BAcFywEH.js +1 -0
- package/dist/web/assets/AboutSectionHeading-CiD3M3eG.css +1 -0
- package/dist/web/assets/AgentAppsPage-BhWX9IS0.js +1 -0
- package/dist/web/assets/AgentAppsPage-cmBHnFzM.css +1 -0
- package/dist/web/assets/AgentConversations-oZFXZE1X.css +1 -0
- package/dist/web/assets/AgentConversations-xZc9rhY_.js +2 -0
- package/dist/web/assets/AgentHand-C3LbglgF.js +1 -0
- package/dist/web/assets/AgentHand-FJ4FbRF7.css +1 -0
- package/dist/web/assets/AgentMentionCopy-CNKrzZvE.css +1 -0
- package/dist/web/assets/AgentMentionCopy-YKhMt81y.js +1 -0
- package/dist/web/assets/AgentName-DS0Q8qO5.js +1 -0
- package/dist/web/assets/AgentProfilePage-CeWo-h4O.js +2 -0
- package/dist/web/assets/AgentProfilePage-J9qPhwPn.css +1 -0
- package/dist/web/assets/AgentServicesPage-B8uVtBHl.js +1 -0
- package/dist/web/assets/AgentServicesPage-DaHTvcuJ.css +1 -0
- package/dist/web/assets/AgentWorkbench-DMpyLghn.js +2 -0
- package/dist/web/assets/AppViewerPage-Cqri1lFM.js +1 -0
- package/dist/web/assets/AppViewerPage-N5C_6WLz.css +1 -0
- package/dist/web/assets/BoardMoveMenu-BRaCyiA4.js +1 -0
- package/dist/web/assets/Breadcrumb-bsc0JKtG.css +1 -0
- package/dist/web/assets/Breadcrumb-dthSvaJp.js +1 -0
- package/dist/web/assets/CaptureChangePage-BDUKI87S.js +1 -0
- package/dist/web/assets/CaptureChangePage-CrMYnG5V.css +1 -0
- package/dist/web/assets/ConnectionsPage-Cwt-knQQ.css +1 -0
- package/dist/web/assets/ConnectionsPage-DtwTxdAt.js +1 -0
- package/dist/web/assets/CopyFixPrompt-Cvi5WxHz.js +2 -0
- package/dist/web/assets/CopyFixPrompt-TGm4ejH6.css +1 -0
- package/dist/web/assets/DataFormatPage-0Ne27K6I.css +1 -0
- package/dist/web/assets/DataFormatPage-D-sp3DXe.js +2 -0
- package/dist/web/assets/EmployeeScopeDialog-CqvOdWHo.js +1 -0
- package/dist/web/assets/EmployeeScopeDialog-Do5PHQh7.css +1 -0
- package/dist/web/assets/EmployeeTaskBoard-C9TrhlzX.css +1 -0
- package/dist/web/assets/EmployeeTaskBoard-CXk1iSGQ.js +3 -0
- package/dist/web/assets/EmployeeWorkbenchPage-CmAVdsQr.js +3 -0
- package/dist/web/assets/EmployeeWorkbenchPage-rnyZbHPq.css +1 -0
- package/dist/web/assets/FieldRoot-rEt0HPP6.js +1 -0
- package/dist/web/assets/FlaTaskSheets-BbWEIxT-.js +1 -0
- package/dist/web/assets/FlaTaskSheets-BwR7FPdM.css +1 -0
- package/dist/web/assets/FlasPage-BLxkEx_s.css +1 -0
- package/dist/web/assets/FlasPage-CDofxSws.js +1 -0
- package/dist/web/assets/HowtoPage-BRV2W1Go.css +1 -0
- package/dist/web/assets/HowtoPage-DJw3spFQ.js +1 -0
- package/dist/web/assets/{InboxPage-CbbiHgTr.css → InboxPage-Bkx6nIhb.css} +1 -1
- package/dist/web/assets/InboxPage-Dwug5NGF.js +4 -0
- package/dist/web/assets/KnowledgeDeleteButton-DHACtqqN.js +1 -0
- package/dist/web/assets/KnowledgeHardDeleteSection-BxeAQbsl.js +1 -0
- package/dist/web/assets/KnowledgeItemEditPage-CXbKQ9V1.js +1 -0
- package/dist/web/assets/KnowledgeItemSummaryCard-kRYMWEmW.js +1 -0
- package/dist/web/assets/KnowledgeOrganizerPage-CNm2jvJZ.css +1 -0
- package/dist/web/assets/KnowledgeOrganizerPage-D9OIO7Pb.js +1 -0
- package/dist/web/assets/KnowledgePage-CHe0ZUgp.js +1 -0
- package/dist/web/assets/KnowledgePeek-BBQrb1sf.css +1 -0
- package/dist/web/assets/KnowledgePeek-eI1BtzIb.js +1 -0
- package/dist/web/assets/KnowledgeTurnReceiptPage-DjUBDtxT.js +1 -0
- package/dist/web/assets/KnowledgeWorkspace-CCVaqk1K.js +4 -0
- package/dist/web/assets/KnowledgeWorkspace-u-FDhmTO.css +1 -0
- package/dist/web/assets/MeLink-D8dd0e88.css +1 -0
- package/dist/web/assets/MeLink-psV6ECAa.js +1 -0
- package/dist/web/assets/MenuSeparator-CSu_azV8.js +1 -0
- package/dist/web/assets/ModelSettingsPage-Cf4frD0W.js +1 -0
- package/dist/web/assets/ModelSettingsPage-ConWy_ec.css +1 -0
- package/dist/web/assets/NotFoundPage-CAdUFYOt.js +1 -0
- package/dist/web/assets/OccupationsPage-BpgBWXCQ.js +1 -0
- package/dist/web/assets/OccupationsPage-Di7B-bPl.css +1 -0
- package/dist/web/assets/OverviewPage-DAN8xttm.js +1 -0
- package/dist/web/assets/OverviewPage-Dwlw24sw.css +1 -0
- package/dist/web/assets/PageColumns-BcqpwFSZ.js +1 -0
- package/dist/web/assets/PageColumns-DEideeB7.css +1 -0
- package/dist/web/assets/PersonalProfilePage-DS5-TMnl.js +1 -0
- package/dist/web/assets/PersonalProfilePage-DUhOcIpa.css +1 -0
- package/dist/web/assets/PersonalProjectsPage-D9p02cmp.js +1 -0
- package/dist/web/assets/PinIcon-B5ftILj8.js +1 -0
- package/dist/web/assets/PinIcon-D1RrWjaX.css +1 -0
- package/dist/web/assets/PopperContent--QqsOlSH.js +1 -0
- package/dist/web/assets/Presence-Cs3zU430.js +3 -0
- package/dist/web/assets/ProjectAgentDetailPage-CjqLqIGA.js +8 -0
- package/dist/web/assets/ProjectAgentDetailPage-NDQi8x1V.css +1 -0
- package/dist/web/assets/ProjectAgentDialog--T6mU-FW.css +1 -0
- package/dist/web/assets/ProjectAgentDialog-BjwHqTux.js +5 -0
- package/dist/web/assets/ProjectAgentsPage-CMmMh1ed.js +1 -0
- package/dist/web/assets/ProjectAgentsPage-tcUHuDnv.css +1 -0
- package/dist/web/assets/ProjectJudgmentPolicy-6DNEgyWb.js +2 -0
- package/dist/web/assets/ProjectJudgmentPolicy-DnjMniaz.css +1 -0
- package/dist/web/assets/PublicProjectsPage-CskSzffL.css +1 -0
- package/dist/web/assets/PublicProjectsPage-DLWROXAQ.js +1 -0
- package/dist/web/assets/RoundtablesPage-BZE4VSiG.css +1 -0
- package/dist/web/assets/RoundtablesPage-D-KyMkFt.js +1 -0
- package/dist/web/assets/RovingFocusGroup-cT0nXfF5.js +1 -0
- package/dist/web/assets/RovingFocusItem-C8EJQfEH.js +1 -0
- package/dist/web/assets/SessionMigrationPage-DV1dpg2-.js +1 -0
- package/dist/web/assets/SessionRecordsPage-CcBP-OqB.js +1 -0
- package/dist/web/assets/SettingsPage-BFuwIxOE.js +1 -0
- package/dist/web/assets/SettingsPage-YJiqBdoh.css +1 -0
- package/dist/web/assets/SharedJefaReportPage-COu74Ves.js +1 -0
- package/dist/web/assets/SharedJefaReportPage-Ezvb_OKJ.css +1 -0
- package/dist/web/assets/TagVocabularyPage-BFHYvMGd.js +1 -0
- package/dist/web/assets/TaskBlockerClear-ByQz3dcN.js +1 -0
- package/dist/web/assets/TaskBlockerNotice-C3WIIBR7.css +1 -0
- package/dist/web/assets/TaskBlockerNotice-DZW9inqa.js +1 -0
- package/dist/web/assets/TaskReason-BlXXAugY.js +1 -0
- package/dist/web/assets/TeamCard-B7fkh6d7.css +1 -0
- package/dist/web/assets/TeamCard-NL4ZBaXE.js +1 -0
- package/dist/web/assets/TeamCardsWidget-4fLgA3Wd.css +1 -0
- package/dist/web/assets/TeamCardsWidget-yg153o9O.js +1 -0
- package/dist/web/assets/TeamIsland-CEiEEGje.css +1 -0
- package/dist/web/assets/TeamIsland-CerFYjbI.js +1 -0
- package/dist/web/assets/Teleport-Dl8LIv22.js +1 -0
- package/dist/web/assets/TextField-ZuitWbGq.js +1 -0
- package/dist/web/assets/UiChip-BDCpGX6p.js +1 -0
- package/dist/web/assets/UiDialog-BsMxORJs.js +1 -0
- package/dist/web/assets/UiDisclosure-DKFoJTGO.js +1 -0
- package/dist/web/assets/UiIcon-C_ORNoGZ.js +1 -0
- package/dist/web/assets/UiIconButton-CUhAkCrQ.js +1 -0
- package/dist/web/assets/UiNotice-bXB6OSdZ.js +1 -0
- package/dist/web/assets/UiSegmented-BNAncA-D.js +1 -0
- package/dist/web/assets/UiWeight-BWVP-gOA.js +1 -0
- package/dist/web/assets/VirtualDirectoryList-05knTRYQ.js +1 -0
- package/dist/web/assets/VisuallyHiddenInput-Dy6RvTdG.js +1 -0
- package/dist/web/assets/WidgetSlot-DXDNYNa4.js +2 -0
- package/dist/web/assets/_plugin-vue_export-helper-5L73c974.js +9 -0
- package/dist/web/assets/_plugin-vue_export-helper-CX218uN7.css +1 -0
- package/dist/web/assets/agent-apps-Dha3YYuW.js +1 -0
- package/dist/web/assets/agent-avatar-CXby2E6T.js +1 -0
- package/dist/web/assets/agent-occupation-C6GLJmYV.js +1 -0
- package/dist/web/assets/{agent-pins-D2cylMl0.js → agent-pins-DzMlH93K.js} +1 -1
- package/dist/web/assets/agent-profile-BBqkfac0.css +1 -0
- package/dist/web/assets/{agent-roster-records-DgWGHLHW.js → agent-roster-records-pCYzR1as.js} +1 -1
- package/dist/web/assets/agent-work-summary-bzTwEUaA.js +1 -0
- package/dist/web/assets/agent-workflows-Cu2jeo0O.js +1 -0
- package/dist/web/assets/{attach-closest-edge-B5hSH5Q1.js → attach-closest-edge-4hOrsXQ7.js} +1 -1
- package/dist/web/assets/attention-store-Cya4cJXx.js +1 -0
- package/dist/web/assets/{badge-CG2m9xwC.js → badge-BUP0sAgE.js} +1 -1
- package/dist/web/assets/button-C0KlaGKu.js +1 -0
- package/dist/web/assets/button-CigPij0N.css +1 -0
- package/dist/web/assets/card-DO8J3ODI.js +1 -0
- package/dist/web/assets/catalog-CznlFM24.js +1 -0
- package/dist/web/assets/checkbox-Ci31CGcv.js +1 -0
- package/dist/web/assets/client-B4Wrtrwq.js +55 -0
- package/dist/web/assets/client-connection-model-BGm0fie7.css +1 -0
- package/dist/web/assets/client-connection-model-ChWCmB3j.js +1 -0
- package/dist/web/assets/client-links-store-DLFEmGMO.js +1 -0
- package/dist/web/assets/combobox-DxBYcSw_.js +1 -0
- package/dist/web/assets/console-CSxuGqKW.js +1 -0
- package/dist/web/assets/context-menu-CWtfnJ7f.js +1 -0
- package/dist/web/assets/conversation-launcher-settings-B-F2070z.js +1 -0
- package/dist/web/assets/desktop-client-Bu15_-ze.js +1 -0
- package/dist/web/assets/dialog-CHJ7t5Z5.js +1 -0
- package/dist/web/assets/dist-Dv1b7jHO.js +1 -0
- package/dist/web/assets/dist-oVPUQsbr.js +1 -0
- package/dist/web/assets/field-CBBnwCK5.js +1 -0
- package/dist/web/assets/field-look-DWQFsbva.js +1 -0
- package/dist/web/assets/fla-mention-D_Qb7VeY.js +1 -0
- package/dist/web/assets/fuli-mark-color-D7GcUwLK.js +1 -0
- package/dist/web/assets/{identity-DI_OdSEg.js → identity-CxUEE19F.js} +1 -1
- package/dist/web/assets/index-BgR3Foqs.css +1 -0
- package/dist/web/assets/index-BkLX7aD3.js +2 -0
- package/dist/web/assets/input-B-AWLUIB.js +1 -0
- package/dist/web/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/web/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/web/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/web/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/web/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/web/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/web/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/web/assets/judgment-api-DiZLvwSS.js +1 -0
- package/dist/web/assets/label-3iPLx5ID.js +1 -0
- package/dist/web/assets/label-table-BL6dYICR.js +1 -0
- package/dist/web/assets/{model-CmYu_CSs.js → model-BUiuTlzZ.js} +1 -1
- package/dist/web/assets/{model-kV1gs-y2.js → model-BjKQI9os.js} +1 -1
- package/dist/web/assets/model-C9k69GNH.js +1 -0
- package/dist/web/assets/model-CAW2BJod.js +1 -0
- package/dist/web/assets/model-CwNEeG3n.js +1 -0
- package/dist/web/assets/{model-BOXKOC62.js → model-T8KOb44M.js} +1 -1
- package/dist/web/assets/motion-D1nrep32.js +1 -0
- package/dist/web/assets/{motion-preference-fHFXX4cl.js → motion-preference-De_Kl_Lz.js} +1 -1
- package/dist/web/assets/noto-sans-sc-100-wght-normal-DluiXYzi.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-101-wght-normal-CPkZHnw0.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-102-wght-normal-gzIulUH6.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-103-wght-normal-CJfSBxFo.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-104-wght-normal-B3QMglgE.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-105-wght-normal-xXh_OMfk.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-106-wght-normal-B9n3jMjP.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-107-wght-normal-D7fvVprN.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-108-wght-normal-J0_LhxVo.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-109-wght-normal-Dsp-De_0.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-110-wght-normal-DE_6NUrb.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-111-wght-normal-C4S-TlTn.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-112-wght-normal-BcFuP3w6.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-113-wght-normal-Dk932kmj.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-114-wght-normal-CO_5Xo-i.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-115-wght-normal-BWy07H14.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-116-wght-normal-B4HVAfHo.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-117-wght-normal-siZzFqgK.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-118-wght-normal-xhBB7f6V.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-119-wght-normal-Ck_g2FGz.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-21-wght-normal-D0x9-yBt.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-22-wght-normal-BBUVTShg.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-23-wght-normal-Du1oYWkE.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-24-wght-normal-CmWjJ0gt.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-25-wght-normal-BFHiqilg.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-26-wght-normal-C0sF2Z2f.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-27-wght-normal-COFdrquJ.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-28-wght-normal-DMgdNu1o.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-29-wght-normal-Cmq8em30.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-30-wght-normal-CZWqZ3yU.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-31-wght-normal-Wfi_lutW.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-32-wght-normal-BRJQ4PY5.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-33-wght-normal-CUVQXNAJ.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-34-wght-normal-Bspba0wC.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-35-wght-normal-K8fX_YPG.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-36-wght-normal-CkITyjoT.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-37-wght-normal-WCZ2zfEe.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-38-wght-normal-DeM7CUce.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-39-wght-normal-BMZNLWQU.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-40-wght-normal-BQ5xpS5j.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-41-wght-normal-Hthm7FFi.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-42-wght-normal-eaS2gKds.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-43-wght-normal-o-T53XXV.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-44-wght-normal-BJH5J4Ez.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-45-wght-normal-BKuxSCOJ.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-46-wght-normal-BR_5Mu6e.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-47-wght-normal-CyY7gKNX.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-48-wght-normal-BNMfTR6k.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-49-wght-normal-DX-0y7wg.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-5-wght-normal-CfWugllB.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-50-wght-normal-DAOGW-Dr.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-51-wght-normal-BlFLOjcP.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-52-wght-normal-OZjrybnw.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-53-wght-normal-CwyWNT6x.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-54-wght-normal-DM0nRe18.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-55-wght-normal-DBK2wUOR.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-56-wght-normal-C-VKK1LS.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-57-wght-normal-Cdbfh5kq.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-58-wght-normal-CflMKARZ.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-59-wght-normal-BS4Kwzxx.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-6-wght-normal-ChnZIQfQ.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-60-wght-normal-B7QOYsXJ.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-61-wght-normal-C8JjQS7w.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-62-wght-normal-bS4wq1Gg.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-63-wght-normal-BJr8P-OB.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-64-wght-normal-DVB11t7j.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-65-wght-normal-DMPCXBvK.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-66-wght-normal-BobaG10V.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-67-wght-normal-Dzk7WhCR.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-68-wght-normal-DGbCD9xu.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-69-wght-normal-Ctrv1EqA.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-70-wght-normal-RgTO941D.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-71-wght-normal-D9sG-CWv.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-72-wght-normal-C4oWy3ul.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-73-wght-normal-B1ZoOTgM.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-74-wght-normal-F7dH_rZJ.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-75-wght-normal-Cp2wp4si.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-76-wght-normal-B494D7xS.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-77-wght-normal-B3MVY9Ax.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-78-wght-normal-5jX7iNMC.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-79-wght-normal-BIoZy8fr.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-80-wght-normal-Bje1Fxy1.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-81-wght-normal-B2NN7Qi3.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-82-wght-normal-CUggNZi4.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-83-wght-normal-99rD8YO-.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-84-wght-normal-zMBmUocm.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-85-wght-normal-CjI3qdxG.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-86-wght-normal-BHY8TVEH.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-87-wght-normal-DioZSHnU.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-88-wght-normal-BXYxwf2t.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-89-wght-normal-ClMFrFaL.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-90-wght-normal-BnOlPreP.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-91-wght-normal-DTr9RQcS.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-99-wght-normal-BI6XPoxp.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-cyrillic-wght-normal-BGmsQlw-.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-latin-ext-wght-normal-DuJTpTg_.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-latin-wght-normal-DDW8mKAR.woff2 +0 -0
- package/dist/web/assets/noto-sans-sc-vietnamese-wght-normal-Bi3ATJ76.woff2 +0 -0
- package/dist/web/assets/occupation-catalog-CAr1dMne.js +1 -0
- package/dist/web/assets/option-BWWjxbq3.js +1 -0
- package/dist/web/assets/{orchestration-filters-BqUPBFf1.js → orchestration-filters-Cu9KEzWE.js} +1 -1
- package/dist/web/assets/page-title-D85cy-Gw.js +1 -0
- package/dist/web/assets/popover-CK2RPUca.js +1 -0
- package/dist/web/assets/profile-model-CmlnYR5S.js +1 -0
- package/dist/web/assets/{project-board-layout-Dtyrl2is.js → project-board-layout-B98ahp5z.js} +1 -1
- package/dist/web/assets/{project-board-settings-CNVNKEfm.js → project-board-settings-FqVJy8Qc.js} +1 -1
- package/dist/web/assets/{project-capture-BpaGUI-m.js → project-capture-C9k3Hn2L.js} +1 -1
- package/dist/web/assets/project-options---TgBSj5.js +1 -0
- package/dist/web/assets/{project-origin-DJ4d13mb.js → project-origin-DPS6z4JE.js} +1 -1
- package/dist/web/assets/project-team-api-D2TqY8ur.js +1 -0
- package/dist/web/assets/quick-edit-api-HeqCthkI.js +1 -0
- package/dist/web/assets/radio-group-DW_o1Pvw.js +1 -0
- package/dist/web/assets/relative-time-BMGOGI9g.js +1 -0
- package/dist/web/assets/role-names-BLXNm1Y-.js +1 -0
- package/dist/web/assets/roundtable-live-C4ofSQnO.js +1 -0
- package/dist/web/assets/runtime-dom.esm-bundler-D0rq11tc.js +2 -0
- package/dist/web/assets/save-file-BhxXu_TS.js +1 -0
- package/dist/web/assets/select-BNTbpaH0.js +1 -0
- package/dist/web/assets/session-launch-offers-CzyTBLuU.js +2 -0
- package/dist/web/assets/{shared-report-BRgNEV5m.js → shared-report-CFHkX28R.js} +1 -1
- package/dist/web/assets/source-adapters-DHE0N_zZ.js +1 -0
- package/dist/web/assets/source-coverage-4PsHC9TK.js +1 -0
- package/dist/web/assets/switch-CkPT5pyz.js +1 -0
- package/dist/web/assets/tabs-CtHJKWAp.js +1 -0
- package/dist/web/assets/task-evidence-DIbw2U42.js +1 -0
- package/dist/web/assets/task-labels-DURdU8fe.js +1 -0
- package/dist/web/assets/task-reason-DOApVx8t.js +1 -0
- package/dist/web/assets/team-sheets-qhD2NZc2.js +1 -0
- package/dist/web/assets/textarea-CH2XRqYW.js +1 -0
- package/dist/web/assets/ui-CoUaCzmO.css +1 -0
- package/dist/web/assets/ui-EHTcuLi2.js +1 -0
- package/dist/web/assets/{useAgentRecords-DZPebmJ_.js → useAgentRecords-B8jIE9Bn.js} +1 -1
- package/dist/web/assets/useAgentWorkSummary-B6jzMWbM.js +1 -0
- package/dist/web/assets/{useApi-CROJJdhE-CpF4ddpD.js → useApi-CROJJdhE-D_tqepMk.js} +1 -1
- package/dist/web/assets/useClipboardCopy-DEQ1foAx.js +1 -0
- package/dist/web/assets/{useFocusReturn-DVcg2RDp.js → useFocusReturn-Dpw69zXV.js} +1 -1
- package/dist/web/assets/useForwardExpose-C47lrDaD.js +1 -0
- package/dist/web/assets/useForwardScopeId-DcRfi1l2.js +1 -0
- package/dist/web/assets/useId-CuZqfgez.js +1 -0
- package/dist/web/assets/useKnowledgeItemPeek-m4BnhrL5.js +1 -0
- package/dist/web/assets/{useMinimumLoadingDisplay-SSJELjga.js → useMinimumLoadingDisplay-9yDoWzZM.js} +1 -1
- package/dist/web/assets/{useRoutePeek-U71ADWt0.js → useRoutePeek-Dbqzke7o.js} +1 -1
- package/dist/web/assets/useTeamPeople-2ldXE7Tm.js +1 -0
- package/dist/web/assets/useTeamWork-COGY6gar.js +1 -0
- package/dist/web/assets/useTypeahead-PSb8oNtj.js +1 -0
- package/dist/web/assets/utils-DCf2MqaS.js +1 -0
- package/dist/web/assets/utils-DN9ASB_c.js +1 -0
- package/dist/web/assets/version-CSNFMcNE.js +1 -0
- package/dist/web/assets/vue-router-BT1vCjpZ.js +1 -0
- package/dist/web/favicon.ico +0 -0
- package/dist/web/index.html +73 -55
- package/docs/agent-conversations-and-collaboration.md +7 -2
- package/docs/agent-interface-architecture.md +21 -1
- package/docs/agent-roundtable.md +20 -2
- package/docs/client-connections.md +47 -21
- package/docs/employee-agents.md +1 -1
- package/docs/external-knowledge-architecture.md +2 -1
- package/graph-provider/fuli_graph/agent_conversation_routes.py +5 -1
- package/graph-provider/fuli_graph/client_coverage.py +6 -6
- package/graph-provider/fuli_graph/collaboration_context.py +4 -0
- package/graph-provider/fuli_graph/conversation_triage_models.py +7 -0
- package/graph-provider/fuli_graph/knowledge_batch_confirmation.py +15 -2
- package/graph-provider/fuli_graph/knowledge_hard_delete.py +47 -4
- package/graph-provider/fuli_graph/knowledge_hard_delete_models.py +5 -0
- package/graph-provider/fuli_graph/knowledge_hard_delete_routes.py +6 -1
- package/graph-provider/fuli_graph/knowledge_item_view.py +2 -1
- package/graph-provider/fuli_graph/knowledge_item_view_models.py +3 -2
- package/graph-provider/fuli_graph/knowledge_management.py +10 -1
- package/graph-provider/fuli_graph/knowledge_project_scope.py +16 -4
- package/graph-provider/fuli_graph/knowledge_review.py +12 -7
- package/graph-provider/fuli_graph/knowledge_review_models.py +2 -0
- package/graph-provider/fuli_graph/knowledge_scope_edit.py +58 -25
- package/graph-provider/fuli_graph/knowledge_search.py +13 -27
- package/graph-provider/fuli_graph/knowledge_session_migration.py +48 -12
- package/graph-provider/fuli_graph/knowledge_versions.py +4 -2
- package/graph-provider/fuli_graph/knowledge_weight.py +59 -14
- package/graph-provider/fuli_graph/knowledge_weight_models.py +2 -2
- package/graph-provider/fuli_graph/models.py +8 -1
- package/graph-provider/fuli_graph/project_agent_models.py +17 -0
- package/graph-provider/fuli_graph/project_agent_routes.py +9 -0
- package/graph-provider/fuli_graph/project_agent_task_models.py +11 -0
- package/graph-provider/fuli_graph/project_brief.py +4 -1
- package/graph-provider/fuli_graph/project_profile_authors.py +42 -0
- package/graph-provider/fuli_graph/store.py +2 -0
- package/graph-provider/fuli_graph/store_conversation_triage.py +50 -13
- package/graph-provider/fuli_graph/store_project_agent_naming.py +19 -0
- package/graph-provider/fuli_graph/store_project_agent_rename.py +59 -0
- package/graph-provider/fuli_graph/store_project_agents.py +31 -5
- package/graph-provider/fuli_graph/task_context_auto_close.py +1 -1
- package/graph-provider/fuli_graph/topic_knowledge_migration.py +108 -0
- 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 +180 -484
- package/package.json +12 -4
- package/packages/roundtable/src/roundtable/service.js +4 -0
- package/skills/capturing-session-knowledge/SKILL.md +1 -0
- package/skills/capturing-session-knowledge/references/retrieval.md +12 -4
- package/skills/flreview/SKILL.md +1 -1
- package/skills/grilling-project/SKILL.md +3 -1
- package/skills/grilling-project/references/project-profile.md +8 -0
- package/skills/operating-fuli/SKILL.md +7 -5
- package/skills/operating-fuli/references/workflow-recipes.md +8 -3
- package/src/agent-apps/console-actions.js +48 -0
- package/src/agent-apps/host-tools/catalog.js +5 -0
- package/src/agent-apps/pages.js +42 -0
- package/src/agent-apps/service.js +3 -1
- package/src/agent-avatars/port.js +74 -0
- package/src/agent-avatars/store.js +90 -0
- package/src/agent-kits/client-detection.js +62 -0
- package/src/agent-kits/client-installer.js +20 -13
- package/src/agent-kits/custom-clients.js +83 -0
- package/src/agent-kits/derived-file.js +9 -6
- package/src/agent-kits/fuli-installer-manifest.json +3 -0
- package/src/agent-kits/installer-manifest.js +31 -9
- package/src/agent-kits/pins.js +6 -6
- package/src/agent-kits/ports.js +5 -2
- package/src/agent-kits/session-clients.js +1 -0
- package/src/agent-kits/vendor/agent-installer/README.md +1 -1
- package/src/agent-kits/vendor/agent-installer/index.d.ts +2 -0
- package/src/agent-services/port.js +13 -10
- package/src/agent-tools/graph-definitions.js +2 -0
- package/src/agent-tools/graph-handlers.js +9 -3
- package/src/agent-tools/interface-catalog.js +19 -2
- package/src/agent-tools/interface-definitions.js +5 -5
- package/src/agent-tools/project-agent-definitions.js +2 -1
- package/src/agent-tools/project-agent-tool-definitions.js +15 -2
- package/src/agent-tools/project-space-definitions.js +5 -4
- package/src/agent-tools/work-surface-definitions.js +34 -0
- package/src/agent-workflows/port.js +12 -1
- package/src/agent-workflows/store.js +6 -0
- package/src/agents/codex/hook-trust.js +11 -0
- package/src/agents/codex/lifecycle-hooks.js +5 -7
- package/src/agents/cursor/lifecycle-hooks.js +0 -5
- package/src/agents/identity-receipt.js +3 -2
- package/src/agents/opencode/plugin-file.js +25 -2
- package/src/agents/source-applications.js +9 -7
- package/src/agents/turn-receipt.js +4 -3
- package/src/cli/clients-command.js +14 -10
- package/src/cli/command-registry.js +1 -1
- package/src/cli/connect-command.js +2 -2
- package/src/cli/local-runtime-command.js +32 -31
- package/src/cli/mcp-command.js +8 -1
- package/src/cli/setup-command.js +6 -2
- package/src/cli/uninstall-command.js +1 -1
- package/src/cli/update-command.js +16 -21
- package/src/conversations/task-context-view.js +67 -4
- package/src/data-format/format-notices.js +3 -2
- package/src/data-format/local-stores.js +9 -0
- package/src/desktop/desktop-controller.js +138 -0
- package/src/desktop/fuli-links.js +56 -0
- package/src/desktop/macos-controller.js +36 -0
- package/src/desktop/reveal-path.js +21 -0
- package/src/desktop/terminal-window.js +52 -0
- package/src/desktop/windows-controller.js +2 -120
- package/src/desktop/windows-desktop-client.js +76 -28
- package/src/desktop/windows-installation-switch.js +4 -0
- package/src/desktop/windows-installation.js +4 -0
- package/src/desktop/windows-node-launcher.js +69 -0
- package/src/desktop/windows-uninstall-command.js +1 -1
- package/src/desktop/windows-uninstall.js +13 -7
- package/src/external-knowledge/conflict-policy.js +72 -16
- package/src/external-knowledge/connected-search.js +13 -2
- package/src/graphiti/capture-change-confirmation.js +1 -1
- package/src/graphiti/capture-onboarding.js +2 -14
- package/src/graphiti/conversation-triage.js +5 -3
- package/src/graphiti/federated-application.js +17 -0
- package/src/graphiti/federated-search.js +2 -1
- package/src/graphiti/first-run-guide.js +43 -0
- package/src/graphiti/fla-picker.js +9 -3
- package/src/graphiti/local-runtimes.js +24 -0
- package/src/graphiti/personal-projects.js +39 -4
- package/src/graphiti/project-agent-control-plane.js +19 -1
- package/src/graphiti/project-agent-mapping.js +15 -2
- package/src/graphiti/project-agent-task-entry.js +1 -1
- package/src/graphiti/project-agent-task-sheets.js +79 -0
- package/src/graphiti/project-agent-workflows.js +9 -0
- package/src/graphiti/project-brief.js +7 -1
- package/src/graphiti/project-path-context.js +22 -13
- package/src/graphiti/project-profile-authors.js +97 -0
- package/src/graphiti/provider-client.js +4 -1
- package/src/graphiti/repository-project-registration.js +6 -1
- package/src/graphiti/repository-remote.js +102 -0
- package/src/graphiti/task-agent-assignment.js +13 -0
- package/src/graphiti/task-entry-preferences.js +2 -2
- package/src/graphiti/task-entry-project-mention.js +9 -5
- package/src/graphiti/task-knowledge-checkpoint.js +4 -0
- package/src/graphiti/task-knowledge-guidance.js +1 -1
- package/src/graphiti/topic-proposals.js +73 -9
- package/src/http/agent-app-api-router.js +38 -3
- package/src/http/agent-app-page-router.js +111 -0
- package/src/http/agent-attention-api-router.js +2 -1
- package/src/http/agent-avatars-api-router.js +52 -0
- package/src/http/api-router.js +25 -2
- package/src/http/capture-onboarding-api-router.js +8 -0
- package/src/http/diagnostics-api-router.js +25 -0
- package/src/http/external-knowledge-api-router.js +10 -0
- package/src/http/graph-api-router.js +26 -2
- package/src/http/knowledge-hard-delete-api-router.js +1 -1
- package/src/http/static-handler.js +5 -21
- package/src/http/topic-proposals-api-router.js +3 -2
- package/src/http/work-surfaces-api-router.js +50 -0
- package/src/knowledge-hard-delete/console-port.js +1 -0
- package/src/knowledge-hard-delete/input.js +3 -1
- package/src/local-runtime/lifecycle.js +32 -1
- package/src/mcp/chat-listing.js +14 -1
- package/src/mcp/create-mcp-server.js +27 -21
- package/src/mcp/process-registry.js +30 -12
- package/src/mcp/relay-target.js +34 -0
- package/src/mcp/runtime.js +6 -4
- package/src/mcp/session-id.js +1 -0
- package/src/mcp/stdio-relay.js +153 -0
- package/src/mcp/tool-annotations.js +4 -0
- package/src/native-runtime/bundle-manifest.js +24 -0
- package/src/native-runtime/macos-assets.js +20 -0
- package/src/native-runtime/neo4j-install.js +5 -3
- package/src/native-runtime/runtime.js +20 -10
- package/src/native-runtime/windows-assets.js +4 -16
- package/src/presence/windows-helper-pin.js +1 -1
- package/src/server.js +4 -0
- package/src/setup/agents/adapter-contract.js +1 -6
- package/src/setup/agents/antigravity/adapter.test.js +45 -0
- package/src/setup/agents/antigravity/index.js +15 -0
- package/src/setup/agents/claude-code/adapter.test.js +3 -6
- package/src/setup/agents/claude-desktop/adapter.test.js +3 -6
- package/src/setup/agents/claude-desktop/index.js +7 -14
- package/src/setup/agents/codex/adapter.test.js +3 -6
- package/src/setup/agents/config-writers.js +10 -11
- package/src/setup/agents/cursor/adapter.test.js +3 -6
- package/src/setup/agents/descriptor-adapter.js +8 -12
- package/src/setup/agents/descriptor-adapter.test.js +4 -10
- package/src/setup/agents/descriptor-packs.test.js +0 -1
- package/src/setup/agents/descriptor-schema.js +5 -4
- package/src/setup/agents/gemini/adapter.test.js +6 -10
- package/src/setup/agents/gemini/index.js +2 -4
- package/src/setup/agents/json-mcp.js +1 -11
- package/src/setup/agents/kiro/adapter.test.js +3 -4
- package/src/setup/agents/kiro/index.js +2 -4
- package/src/setup/agents/opencode/adapter.test.js +12 -18
- package/src/setup/agents/opencode/config-writer.js +13 -18
- package/src/setup/agents/qwen-code/adapter.test.js +3 -3
- package/src/setup/agents/qwen-code/index.js +2 -4
- package/src/setup/agents/registry.js +3 -2
- package/src/setup/agents.js +9 -8
- package/src/setup/claude-code-config.js +0 -21
- package/src/setup/claude-desktop-config.js +1 -1
- package/src/setup/client-connection.js +1 -1
- package/src/setup/codex-bootstrap.js +0 -17
- package/src/setup/codex-config.js +0 -18
- package/src/setup/cursor-config.js +1 -8
- package/src/setup/first-run-capture.js +6 -2
- package/src/setup/graph-runtime.js +26 -8
- package/src/setup/install-agent.js +4 -6
- package/src/setup/integration-context.js +16 -0
- package/src/setup/options.js +6 -0
- package/src/setup/paths.js +18 -1
- package/src/setup/session-skill.js +1 -1
- package/src/setup/setup.js +23 -36
- package/src/setup/uninstall.js +12 -17
- package/src/storage/json-format.js +14 -0
- package/src/system/blocked-port-recovery.js +74 -0
- package/src/system/client-connection-install.js +13 -11
- package/src/system/client-connection-status.js +50 -83
- package/src/system/console-port-switch.js +2 -1
- package/src/system/console-update.js +4 -3
- package/src/system/custom-client-connection.js +26 -0
- package/src/system/diagnostics-bundle.js +95 -0
- package/src/system/diagnostics-redaction.js +64 -0
- package/src/system/doctor.js +100 -18
- package/src/system/package-version-checker.js +32 -12
- package/src/system/reserved-ports.js +1 -1
- package/src/system/runtime-settings.js +18 -2
- package/src/system/settings-guide.js +9 -1
- package/src/system/system-service.js +36 -31
- package/src/work-surfaces/agent-tools.js +31 -0
- package/src/work-surfaces/port.js +173 -0
- package/src/work-surfaces/sources.js +103 -0
- package/src/work-surfaces/store.js +118 -0
- package/dist/web/assets/AboutPage-Bxm7RJZg.css +0 -1
- package/dist/web/assets/AboutPage-CRIF2M8n.js +0 -1
- package/dist/web/assets/AgentHand-CLQqBbmG.css +0 -1
- package/dist/web/assets/AgentHand-Dp9TFS4q.js +0 -1
- package/dist/web/assets/AgentMentionCopy-BXOrsEWh.css +0 -1
- package/dist/web/assets/AgentMentionCopy-C7N92Shm.js +0 -1
- package/dist/web/assets/AgentName-CbsQ9vDy.js +0 -1
- package/dist/web/assets/AgentProfilePage-B_V-Dm8v.css +0 -1
- package/dist/web/assets/AgentProfilePage-DOpq0b3j.js +0 -2
- package/dist/web/assets/AgentServicesPage-CB6IUOrP.css +0 -1
- package/dist/web/assets/AgentServicesPage-Dr9WU0f9.js +0 -1
- package/dist/web/assets/AgentWorkbench-DTWZFf1A.js +0 -2
- package/dist/web/assets/AgentsDirectoryPage-CxDOdNxT.js +0 -1
- package/dist/web/assets/AgentsDirectoryPage-DjEfG9dC.css +0 -1
- package/dist/web/assets/BackLink-ByRr21Sw.js +0 -1
- package/dist/web/assets/BoardMoveMenu-Bd1T62eA.js +0 -1
- package/dist/web/assets/CaptureChangePage-CGpkQJJC.css +0 -1
- package/dist/web/assets/CaptureChangePage-DyuSSSDE.js +0 -1
- package/dist/web/assets/Card-BD5ohuk8.js +0 -1
- package/dist/web/assets/CardHeader-DTVqXpsf.js +0 -1
- package/dist/web/assets/CardTitle-C5REIVlp.js +0 -1
- package/dist/web/assets/ConnectionsPage-CKruAjBF.js +0 -1
- package/dist/web/assets/CreateProjectDialog-BaPfiS1T.css +0 -1
- package/dist/web/assets/CreateProjectDialog-D6JS3RtH.js +0 -2
- package/dist/web/assets/DataFormatPage-CpWphMGD.css +0 -1
- package/dist/web/assets/DataFormatPage-DNaogYjf.js +0 -2
- package/dist/web/assets/DialogFooter-C5AIwQ5R.js +0 -1
- package/dist/web/assets/EmployeeScopeDialog-CBexPEM7.css +0 -1
- package/dist/web/assets/EmployeeScopeDialog-Lmfos9SA.js +0 -1
- package/dist/web/assets/EmployeeTaskBoard-CjLAmGZI.css +0 -1
- package/dist/web/assets/EmployeeTaskBoard-U3KmfQG3.js +0 -3
- package/dist/web/assets/EmployeeWorkbenchPage-BFVC_klR.css +0 -1
- package/dist/web/assets/EmployeeWorkbenchPage-O9DEMzLT.js +0 -3
- package/dist/web/assets/FieldDescription-_fuW5MBO.js +0 -1
- package/dist/web/assets/GrowthLoading--m-lSUeo.js +0 -1
- package/dist/web/assets/GrowthLoading-B_QrPkEy.css +0 -1
- package/dist/web/assets/InboxPage-DmJfYzaK.js +0 -4
- package/dist/web/assets/Input-DqjML-Qy.js +0 -1
- package/dist/web/assets/KnowledgeHardDeleteSection-AFg1ybWc.js +0 -1
- package/dist/web/assets/KnowledgeItemEditPage-B29px-r0.js +0 -1
- package/dist/web/assets/KnowledgeItemSummaryCard-BhHet9HU.js +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-BfD42JmC.js +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-D2VWOi81.css +0 -1
- package/dist/web/assets/KnowledgePage-nbTejsvV.js +0 -1
- package/dist/web/assets/KnowledgePeek-ByakOiOO.js +0 -2
- package/dist/web/assets/KnowledgePeek-CK2RKeRx.css +0 -1
- package/dist/web/assets/KnowledgeTurnReceiptPage-B1fMTy2W.js +0 -1
- package/dist/web/assets/KnowledgeWorkspace-DCzwenHE.js +0 -4
- package/dist/web/assets/KnowledgeWorkspace-j8xlGwtg.css +0 -1
- package/dist/web/assets/Label-CufKLEgT.js +0 -1
- package/dist/web/assets/ModelSettingsPage-Yx5VBioo.css +0 -1
- package/dist/web/assets/ModelSettingsPage-jQKn4MsB.js +0 -1
- package/dist/web/assets/NotFoundPage-B4KkZO2q.js +0 -1
- package/dist/web/assets/OccupationsPage-5Ja81Cfg.js +0 -1
- package/dist/web/assets/OccupationsPage-BvCTm4r1.css +0 -1
- package/dist/web/assets/OverviewPage-BIDy1btk.css +0 -1
- package/dist/web/assets/OverviewPage-C-K4KDNM.js +0 -2
- package/dist/web/assets/PersonalProfilePage-1N8EhCW6.css +0 -1
- package/dist/web/assets/PersonalProfilePage-BVZ3WHmf.js +0 -1
- package/dist/web/assets/PersonalProjectsPage-C1J8Poj8.js +0 -1
- package/dist/web/assets/PersonalProjectsPage-Cf5mrQmy.css +0 -1
- package/dist/web/assets/PopperContent-C-KMpRbF.js +0 -1
- package/dist/web/assets/Presence-B4aVQMT8.js +0 -3
- package/dist/web/assets/ProjectAgentDetailPage-B6bTOIhe.js +0 -8
- package/dist/web/assets/ProjectAgentDetailPage-DA90j4yU.css +0 -1
- package/dist/web/assets/ProjectAgentDialog-CWuqScFD.js +0 -5
- package/dist/web/assets/ProjectAgentDialog-DHP7BfAf.css +0 -1
- package/dist/web/assets/ProjectAgentFirstTask-BVDcaNNi.css +0 -1
- package/dist/web/assets/ProjectAgentFirstTask-C7qzXCQ6.js +0 -1
- package/dist/web/assets/ProjectAgentsPage-BNtWbct5.js +0 -1
- package/dist/web/assets/ProjectAgentsPage-Bym-IM4-.css +0 -1
- package/dist/web/assets/ProjectJudgmentPolicy-BnYrRs9X.css +0 -1
- package/dist/web/assets/ProjectJudgmentPolicy-L_plkldY.js +0 -1
- package/dist/web/assets/ProjectScopePicker-BM3MbIYV.css +0 -1
- package/dist/web/assets/ProjectScopePicker-BXy07CHg.js +0 -1
- package/dist/web/assets/PublicProjectsPage-Cftk4zLX.js +0 -1
- package/dist/web/assets/PublicProjectsPage-Ditr0SY-.css +0 -1
- package/dist/web/assets/RadioGroupItem-DoOqLMbZ.js +0 -1
- package/dist/web/assets/RoundtablesPage-EReKCqSf.css +0 -1
- package/dist/web/assets/RoundtablesPage-RCtrPHxs.js +0 -1
- package/dist/web/assets/RovingFocusGroup-BeCLKMQA.js +0 -1
- package/dist/web/assets/RovingFocusItem-BN-h70s_.js +0 -1
- package/dist/web/assets/SessionMigrationPage-Dcjylswy.js +0 -1
- package/dist/web/assets/SessionRecordsPage-jrFse2a1.js +0 -1
- package/dist/web/assets/SettingsPage-BkHm8GV4.js +0 -1
- package/dist/web/assets/SettingsPage-BxAXf6EF.css +0 -1
- package/dist/web/assets/SharedJefaReportPage-ROvh2rjx.css +0 -1
- package/dist/web/assets/SharedJefaReportPage-_KXsTVGF.js +0 -1
- package/dist/web/assets/Switch-BPAVVtqu.js +0 -1
- package/dist/web/assets/TableHeader-P9d7xF7t.js +0 -1
- package/dist/web/assets/TabsContent-Casnps6y.js +0 -1
- package/dist/web/assets/TabsTrigger-AQwqcZRn.js +0 -1
- package/dist/web/assets/TagVocabularyPage-CsDJkbU3.js +0 -1
- package/dist/web/assets/TaskBlockerClear-wqHV47Vx.js +0 -1
- package/dist/web/assets/TaskBlockerNotice-CZkho0TF.css +0 -1
- package/dist/web/assets/TaskBlockerNotice-DJytDDst.js +0 -1
- package/dist/web/assets/TaskExecutionPlan-8dwc8_Jf.css +0 -1
- package/dist/web/assets/TaskExecutionPlan-BPnu-yfT.js +0 -2
- package/dist/web/assets/TaskReason-C5g8DpOy.js +0 -1
- package/dist/web/assets/Teleport-BV0XYmdS.js +0 -1
- package/dist/web/assets/TextField-C69MdaFy.js +0 -1
- package/dist/web/assets/Textarea-D1Kzx_7L.js +0 -1
- package/dist/web/assets/UiChip-BqOpp18Q.js +0 -1
- package/dist/web/assets/UiDialog-BAWkdfF-.js +0 -1
- package/dist/web/assets/UiDisclosure-mGmGItAv.js +0 -1
- package/dist/web/assets/UiIcon-BUYpKd4D.js +0 -1
- package/dist/web/assets/UiIconButton-CeiP7Vmj.js +0 -1
- package/dist/web/assets/UiNotice-BlznzX5i.js +0 -1
- package/dist/web/assets/UiSegmented-DlgYMxnc.js +0 -1
- package/dist/web/assets/UiSelect-BWViyott.js +0 -1
- package/dist/web/assets/UiSelect-fhrGABzy.css +0 -1
- package/dist/web/assets/UiWeight-DZwt7cIP.js +0 -1
- package/dist/web/assets/UnassignedConversationsPanel-DV2CpIdb.js +0 -1
- package/dist/web/assets/VirtualDirectoryList-D-3X_X7D.js +0 -1
- package/dist/web/assets/VisuallyHiddenInput-BjPsr2D4.js +0 -1
- package/dist/web/assets/Workbench3D-BxpszsXO.css +0 -1
- package/dist/web/assets/Workbench3D-CVlnk7bc.js +0 -2
- package/dist/web/assets/_plugin-vue_export-helper-lED7mxHY.js +0 -9
- package/dist/web/assets/accordion-GR6gjqFY.js +0 -1
- package/dist/web/assets/agent-avatar-CBfHZX_0.js +0 -1
- package/dist/web/assets/agent-profile-D4aymIbD.css +0 -1
- package/dist/web/assets/agent-profile.css_vue_type_style_index_0_src_true_lang-w5YilVWS.js +0 -1
- package/dist/web/assets/agent-task-board-DCS97QK2.js +0 -1
- package/dist/web/assets/agent-work-summary-QPOQuybY.js +0 -1
- package/dist/web/assets/attention-store-DKza0N1e.js +0 -1
- package/dist/web/assets/button-CZBMEiSm.js +0 -1
- package/dist/web/assets/checkbox-3VSDPUJw.js +0 -1
- package/dist/web/assets/client-Dwnwq6uu.js +0 -1
- package/dist/web/assets/client-links-store-DG6AhNPP.js +0 -1
- package/dist/web/assets/console-ny5TvCWK.js +0 -1
- package/dist/web/assets/conversation-launcher-settings-Ds-piWNR.js +0 -1
- package/dist/web/assets/design-lab-DrVlcS2x.js +0 -1
- package/dist/web/assets/dialog-C3x9ziBB.js +0 -1
- package/dist/web/assets/dist-CB11Zet2.js +0 -1
- package/dist/web/assets/dropdown-menu-Cdtg4lAd.js +0 -1
- package/dist/web/assets/field-DMSD3CwL.js +0 -1
- package/dist/web/assets/fuli-logo-Bu9WBuQe.js +0 -1
- package/dist/web/assets/fuli-logo-ER1wQ8Kk.png +0 -0
- package/dist/web/assets/galaxy-scene-BwL9s-x4.js +0 -1
- package/dist/web/assets/index-B5zVxSJb.css +0 -1
- package/dist/web/assets/index-S0AnueS1.js +0 -2
- package/dist/web/assets/is-equal-8VOV02sH.js +0 -1
- package/dist/web/assets/judgment-api-CwnpLQOf.js +0 -1
- package/dist/web/assets/label-table-vGnKmYm3.js +0 -1
- package/dist/web/assets/layout-DCeMsVR8.js +0 -1
- package/dist/web/assets/model-BlAV3okF.js +0 -1
- package/dist/web/assets/model-C7hgak_o.js +0 -1
- package/dist/web/assets/model-DSSYQ-i_.js +0 -1
- package/dist/web/assets/occupation-catalog-DOk8egq8.js +0 -1
- package/dist/web/assets/office-scene-Df4cLTmp.js +0 -1
- package/dist/web/assets/page-title-D1CadCvf.js +0 -1
- package/dist/web/assets/profile-model-DGbpJdVC.js +0 -1
- package/dist/web/assets/project-team-api-yJVsib_j.js +0 -1
- package/dist/web/assets/quick-edit-api-CBMbWX0d.js +0 -1
- package/dist/web/assets/rolldown-runtime-4tVxZq34.js +0 -1
- package/dist/web/assets/runtime-dom.esm-bundler-ClO7ICIC.js +0 -2
- package/dist/web/assets/select-CCN-VOqx.js +0 -1
- package/dist/web/assets/source-adapters-8UHmhZTa.js +0 -1
- package/dist/web/assets/source-coverage-B8gNeptJ.js +0 -1
- package/dist/web/assets/stage-Bw1Kfjt_.js +0 -1
- package/dist/web/assets/stage-ucn3npX-.js +0 -3835
- package/dist/web/assets/task-evidence-B2smSxDg.js +0 -1
- package/dist/web/assets/task-labels-pCGKthln.js +0 -1
- package/dist/web/assets/ui-Bfbk4_Xk.js +0 -1
- package/dist/web/assets/ui-CwdCReAf.css +0 -1
- package/dist/web/assets/useDirection-DXu4lssv.js +0 -1
- package/dist/web/assets/useForwardExpose-CNq5826B.js +0 -1
- package/dist/web/assets/useKnowledgeItemPeek-CxwXNZqm.js +0 -1
- package/dist/web/assets/usePrimitiveElement-WBpNZTN_.js +0 -1
- package/dist/web/assets/useTypeahead-CJkAiAa9.js +0 -1
- package/dist/web/assets/utils-CfVEk15i.js +0 -1
- package/dist/web/assets/vue-router-BFTYTsOL.js +0 -1
- package/dist/web/assets/workbench-model-CaNC35vW.js +0 -1
- package/src/agent-kits/installer-shadow.js +0 -82
- package/src/setup/agent-installation-status.js +0 -65
- package/src/setup/agents/registration.js +0 -13
|
@@ -7,6 +7,7 @@ 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 { linkedGitDirectory, originRemoteKey, projectsWithRemote } from './repository-remote.js';
|
|
10
11
|
|
|
11
12
|
// Says what to pass, never the path the caller sent.
|
|
12
13
|
const INVALID_PATH_MESSAGE = 'projectPath must be an existing absolute directory. '
|
|
@@ -47,12 +48,10 @@ export function resolvePersonalProjectPath(projectPath, projects, {
|
|
|
47
48
|
throw new InvalidInputError(INVALID_PATH_MESSAGE);
|
|
48
49
|
}
|
|
49
50
|
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
.filter((projectId) => safeProjectId(projectId, pathApi))
|
|
55
|
-
);
|
|
51
|
+
const registered = projects
|
|
52
|
+
.filter(project => project.scope_type !== 'temporary' && project.scopeType !== 'temporary')
|
|
53
|
+
.filter(({ project_id: projectId }) => safeProjectId(projectId, pathApi));
|
|
54
|
+
const projectIds = new Set(registered.map(({ project_id: projectId }) => projectId));
|
|
56
55
|
const repositoryRoot = findRepositoryRoot(currentPath, {
|
|
57
56
|
fileExists,
|
|
58
57
|
pathApi
|
|
@@ -64,13 +63,16 @@ export function resolvePersonalProjectPath(projectPath, projects, {
|
|
|
64
63
|
pathApi.join(repositoryRoot, '.git'),
|
|
65
64
|
{ readText, pathApi }
|
|
66
65
|
);
|
|
66
|
+
const remote = () => remoteProject(repositoryRoot, registered, { readText, pathApi });
|
|
67
67
|
if (worktreeId) {
|
|
68
68
|
// A worktree's folder name is arbitrary; only its original repository
|
|
69
69
|
// identifies the project, even when the folder names another project.
|
|
70
70
|
return resolveProjectId(worktreeId, projectIds, 'git_worktree_origin')
|
|
71
|
+
?? remote()
|
|
71
72
|
?? unresolved('unmatched', safeProjectId(worktreeId, pathApi) ? { repositoryProjectId: worktreeId } : {});
|
|
72
73
|
}
|
|
73
|
-
const repository = resolveProjectId(pathApi.basename(repositoryRoot), projectIds, 'repository_root')
|
|
74
|
+
const repository = resolveProjectId(pathApi.basename(repositoryRoot), projectIds, 'repository_root')
|
|
75
|
+
?? remote();
|
|
74
76
|
if (repository) return repository;
|
|
75
77
|
if (safeProjectId(pathApi.basename(repositoryRoot), pathApi)) {
|
|
76
78
|
repositoryProjectId = pathApi.basename(repositoryRoot);
|
|
@@ -130,17 +132,24 @@ function worktreeOriginProjectId(gitMarkerPath, {
|
|
|
130
132
|
readText,
|
|
131
133
|
pathApi
|
|
132
134
|
}) {
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
if (!gitDirectory) return null;
|
|
136
|
-
const resolved = pathApi.isAbsolute(gitDirectory)
|
|
137
|
-
? pathApi.normalize(gitDirectory)
|
|
138
|
-
: pathApi.resolve(pathApi.dirname(gitMarkerPath), gitDirectory);
|
|
135
|
+
const resolved = linkedGitDirectory(gitMarkerPath, { readText, pathApi });
|
|
136
|
+
if (!resolved) return null;
|
|
139
137
|
const marker = /[\\/]\.git[\\/]worktrees[\\/]/i.exec(resolved);
|
|
140
138
|
if (!marker) return null;
|
|
141
139
|
return pathApi.basename(resolved.slice(0, marker.index));
|
|
142
140
|
}
|
|
143
141
|
|
|
142
|
+
// A clone under another folder name: its origin URL equals exactly one
|
|
143
|
+
// project's recorded repository URL.
|
|
144
|
+
function remoteProject(repositoryRoot, projects, { readText, pathApi }) {
|
|
145
|
+
const remote = originRemoteKey(repositoryRoot, { readText, pathApi });
|
|
146
|
+
if (!remote) return null;
|
|
147
|
+
const matches = projectsWithRemote(projects, remote);
|
|
148
|
+
if (matches.length === 1) return matched(matches[0].project_id, 'git_remote');
|
|
149
|
+
if (matches.length > 1) return unresolved('ambiguous', { candidateCount: matches.length });
|
|
150
|
+
return null;
|
|
151
|
+
}
|
|
152
|
+
|
|
144
153
|
function safeProjectId(projectId, pathApi) {
|
|
145
154
|
return typeof projectId === 'string'
|
|
146
155
|
&& projectId.length > 0
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// Who wrote each project profile field (Jevons 11-02). A person's text is
|
|
2
|
+
// authoritative, an Agent's text is a draft it may keep rewriting, and text a
|
|
3
|
+
// person edited from an Agent's draft is shared. The Provider stores the
|
|
4
|
+
// records and defaults profiles saved before them
|
|
5
|
+
// (graph-provider/fuli_graph/project_profile_authors.py).
|
|
6
|
+
const AUTHORED_FIELDS = Object.freeze(['purpose', 'scope', 'technical_summary', 'boundaries']);
|
|
7
|
+
|
|
8
|
+
// Mirrors the knowledge weights the console explains: a person 100%, an Agent's
|
|
9
|
+
// draft below an Agent-confirmed fact.
|
|
10
|
+
const AUTHOR_WEIGHTS = Object.freeze({ person: 100, both: 90, agent: 50 });
|
|
11
|
+
|
|
12
|
+
// A person's save keeps the Agent as co-author while at least this share of
|
|
13
|
+
// the previous text's character pairs is still there.
|
|
14
|
+
const KEPT_SHARE_FOR_BOTH = 0.4;
|
|
15
|
+
|
|
16
|
+
export const PERSON_WRITER = Object.freeze({ kind: 'person' });
|
|
17
|
+
// FULI's own drafts (a README excerpt, a bare project name) have no FLA.
|
|
18
|
+
export const UNNAMED_AGENT_WRITER = Object.freeze({ kind: 'agent' });
|
|
19
|
+
|
|
20
|
+
const PERSON_FIELD_REFUSAL = '人写过的字段,请在控制台修改或请用户确认 (written by a person; edit it in the console or ask the user)';
|
|
21
|
+
|
|
22
|
+
// The profile to store: `next` with each authored field's record decided from
|
|
23
|
+
// `previous` (null when the project is new) and who is writing. An Agent never
|
|
24
|
+
// overwrites a field a person wrote; that field keeps its previous text and
|
|
25
|
+
// is listed in `refused`.
|
|
26
|
+
export function applyProfileAuthorship(previous, next, writer, now = new Date()) {
|
|
27
|
+
const updatedAt = now.toISOString();
|
|
28
|
+
const authors = {};
|
|
29
|
+
const refused = [];
|
|
30
|
+
const profile = { ...next };
|
|
31
|
+
for (const field of AUTHORED_FIELDS) {
|
|
32
|
+
const before = fieldText(previous?.[field]);
|
|
33
|
+
const after = fieldText(next[field]);
|
|
34
|
+
const record = previous?.authors?.[field] ?? null;
|
|
35
|
+
if (before === after) {
|
|
36
|
+
if (record && after) authors[field] = record;
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if (writer.kind === 'agent' && (record?.kind === 'person' || record?.kind === 'both')) {
|
|
40
|
+
profile[field] = previous[field];
|
|
41
|
+
authors[field] = record;
|
|
42
|
+
refused.push({ field, author: record.kind, reason: PERSON_FIELD_REFUSAL });
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
if (!after) continue;
|
|
46
|
+
authors[field] = writer.kind === 'agent'
|
|
47
|
+
? agentRecord('agent', writer, updatedAt)
|
|
48
|
+
: personRecord(record, before, after, updatedAt);
|
|
49
|
+
}
|
|
50
|
+
return { profile: { ...profile, authors }, refused };
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// One short tag per field for an Agent reading the brief; AI-only text reads as a draft.
|
|
54
|
+
export function authorTag(record) {
|
|
55
|
+
const weight = `${record.kind} ${AUTHOR_WEIGHTS[record.kind]}%`;
|
|
56
|
+
return record.kind === 'agent' ? `${weight} AI 草稿,可改` : weight;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function personRecord(record, before, after, updatedAt) {
|
|
60
|
+
const coAuthored = (record?.kind === 'agent' || record?.kind === 'both')
|
|
61
|
+
&& keptShare(before, after) >= KEPT_SHARE_FOR_BOTH;
|
|
62
|
+
return coAuthored
|
|
63
|
+
? agentRecord('both', { agentId: record.agent_id, agentName: record.agent_name }, updatedAt)
|
|
64
|
+
: { kind: 'person', updated_at: updatedAt };
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function agentRecord(kind, { agentId, agentName }, updatedAt) {
|
|
68
|
+
return { kind, ...(agentId ? { agent_id: agentId } : {}), ...(agentName ? { agent_name: agentName } : {}),
|
|
69
|
+
updated_at: updatedAt };
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function fieldText(value) {
|
|
73
|
+
const lines = Array.isArray(value) ? value : [value];
|
|
74
|
+
return lines.filter(line => typeof line === 'string' && line.trim()).map(line => line.trim()).join('\n');
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// The share of the previous text's adjacent character pairs (counted with
|
|
78
|
+
// repeats) that the new text still has. Pairs, not words, so Chinese text
|
|
79
|
+
// without spaces is measured the same way as English.
|
|
80
|
+
function keptShare(before, after) {
|
|
81
|
+
const previous = pairs(before);
|
|
82
|
+
if (!previous.length) return 0;
|
|
83
|
+
const available = new Map();
|
|
84
|
+
for (const pair of pairs(after)) available.set(pair, (available.get(pair) ?? 0) + 1);
|
|
85
|
+
let kept = 0;
|
|
86
|
+
for (const pair of previous) {
|
|
87
|
+
const count = available.get(pair) ?? 0;
|
|
88
|
+
if (count) { kept += 1; available.set(pair, count - 1); }
|
|
89
|
+
}
|
|
90
|
+
return kept / previous.length;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function pairs(text) {
|
|
94
|
+
const characters = [...text.replace(/\s+/g, ' ')];
|
|
95
|
+
if (characters.length < 2) return characters;
|
|
96
|
+
return characters.slice(1).map((character, index) => characters[index] + character);
|
|
97
|
+
}
|
|
@@ -88,7 +88,7 @@ export class GraphitiProviderClient {
|
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
conversationTriage(operation, input) {
|
|
91
|
-
if (!['record', 'read', 'topics', 'form'].includes(operation)) throw new TypeError('Unknown conversation triage operation');
|
|
91
|
+
if (!['record', 'read', 'topics', 'form', 'decline', 'reopen'].includes(operation)) throw new TypeError('Unknown conversation triage operation');
|
|
92
92
|
return this.#request(`/v1/conversation-triage/${operation}`, { method: 'POST', body: input });
|
|
93
93
|
}
|
|
94
94
|
currentTaskContext(input, { timeoutMs = this.requestTimeoutMs, signal } = {}) {
|
|
@@ -340,6 +340,9 @@ export class GraphitiProviderClient {
|
|
|
340
340
|
verifyTaskCheckpoint(query) {
|
|
341
341
|
return this.#request(`/v1/task-context-sessions/checkpoint?${new URLSearchParams(query)}`);
|
|
342
342
|
}
|
|
343
|
+
renameProjectAgent(agentId, input) {
|
|
344
|
+
return this.#request(`/v1/project-agents/${encodeURIComponent(agentId)}/name`, { method: 'PUT', body: input });
|
|
345
|
+
}
|
|
343
346
|
updateProjectAgentOccupation(agentId, input) {
|
|
344
347
|
return this.#request(`/v1/project-agents/${encodeURIComponent(agentId)}/occupation`, {
|
|
345
348
|
method: 'PUT', body: input
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { repositoryProjectDraft } from './project-brief.js';
|
|
2
|
+
import { findRepositoryRoot } from './project-path-context.js';
|
|
3
|
+
import { originRemoteSource } from './repository-remote.js';
|
|
2
4
|
import { hostInternalActivity } from './task-entry-activity-origin.js';
|
|
5
|
+
import { UNNAMED_AGENT_WRITER } from './project-profile-authors.js';
|
|
3
6
|
|
|
4
7
|
export const TASK_ENTRY_TOOLS = new Set(['begin_task_context', 'get_collaboration_preferences']);
|
|
5
8
|
|
|
@@ -12,10 +15,12 @@ export async function registerRepositoryProject(application, resolution, { sessi
|
|
|
12
15
|
try {
|
|
13
16
|
const draft = await repositoryProjectDraft({ projectPath });
|
|
14
17
|
if (!draft) return resolution;
|
|
18
|
+
const source = originRemoteSource(findRepositoryRoot(projectPath));
|
|
15
19
|
await application.upsertPersonalProject({
|
|
16
20
|
personalSpaceId: application.config.personal.spaceId,
|
|
17
21
|
projectId,
|
|
18
|
-
|
|
22
|
+
writer: UNNAMED_AGENT_WRITER,
|
|
23
|
+
profile: { name: projectId, lifecycle: 'active', ...draft, ...(source ? { sources: [source] } : {}) }
|
|
19
24
|
});
|
|
20
25
|
} catch {
|
|
21
26
|
return resolution;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// A repository's identity by its origin remote, read from Git's own files as
|
|
2
|
+
// text: a separate clone under another folder name is still the same project.
|
|
3
|
+
|
|
4
|
+
import { readFileSync } from 'node:fs';
|
|
5
|
+
import path from 'node:path';
|
|
6
|
+
|
|
7
|
+
const REPOSITORY_SOURCE_KINDS = new Set(['repository', 'frontend_repository', 'backend_repository']);
|
|
8
|
+
const SECTION = /^\s*\[\s*([A-Za-z0-9.-]+)(?:\s+"((?:[^"\\]|\\.)*)")?\s*\]\s*(.*)$/;
|
|
9
|
+
const URL_ENTRY = /^\s*url\s*=\s*(.*)$/i;
|
|
10
|
+
const URL_FORM = /^(?:[a-z][a-z0-9+.-]*):\/\/(?:[^@/]*@)?(\[[^\]]+\]|[^/:]+)(?::\d*)?(\/.*)$/i;
|
|
11
|
+
// scp-like ssh, host:path. A one-letter host is a Windows drive, not a remote.
|
|
12
|
+
const SCP_FORM = /^(?:[^@/]+@)?([^/:]{2,}):(?!\/\/)(.+)$/;
|
|
13
|
+
|
|
14
|
+
// The gitdir a .git file points to (a worktree, a submodule); null for a .git directory.
|
|
15
|
+
export function linkedGitDirectory(gitMarkerPath, { readText, pathApi }) {
|
|
16
|
+
const gitDirectory = /^gitdir:\s*(.+)$/im.exec(readText(gitMarkerPath))?.[1]?.trim();
|
|
17
|
+
if (!gitDirectory) return null;
|
|
18
|
+
return pathApi.isAbsolute(gitDirectory)
|
|
19
|
+
? pathApi.normalize(gitDirectory)
|
|
20
|
+
: pathApi.resolve(pathApi.dirname(gitMarkerPath), gitDirectory);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// The normalised origin URL of the repository rooted at repositoryRoot, or null.
|
|
24
|
+
// A worktree's remotes live in the common directory its commondir names.
|
|
25
|
+
export function originRemoteKey(repositoryRoot, { readText, pathApi }) {
|
|
26
|
+
const url = originRemoteUrl(repositoryRoot, { readText, pathApi });
|
|
27
|
+
return url ? remoteKey(url) : null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Read once using the same Git directory and config rules as remote matching.
|
|
31
|
+
function originRemoteUrl(repositoryRoot, { readText, pathApi }) {
|
|
32
|
+
const gitMarker = pathApi.join(repositoryRoot, '.git');
|
|
33
|
+
const gitDirectory = linkedGitDirectory(gitMarker, { readText, pathApi }) ?? gitMarker;
|
|
34
|
+
const commonDirectory = readText(pathApi.join(gitDirectory, 'commondir')).trim();
|
|
35
|
+
const configDirectory = commonDirectory ? pathApi.resolve(gitDirectory, commonDirectory) : gitDirectory;
|
|
36
|
+
return originUrl(readText(pathApi.join(configDirectory, 'config')));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// A source suitable for a newly registered profile, without remote credentials.
|
|
40
|
+
export function originRemoteSource(repositoryRoot) {
|
|
41
|
+
const remote = originRemoteUrl(repositoryRoot, { pathApi: path, readText: readTextOrEmpty });
|
|
42
|
+
if (!remote) return null;
|
|
43
|
+
const safeRemote = remote.replace(/^([a-z][a-z0-9+.-]*:\/\/)[^/@]*@/i, '$1')
|
|
44
|
+
.replace(/^[^/@:]+:[^/@]+@(?=[^/]+:)/, '');
|
|
45
|
+
const key = remoteKey(safeRemote);
|
|
46
|
+
const normalizable = /^(?:https?|ssh):\/\//i.test(safeRemote) || SCP_FORM.test(safeRemote);
|
|
47
|
+
const uri = normalizable && key ? `https://${key}` : safeRemote;
|
|
48
|
+
const titlePath = key?.split('/').slice(1).join('/') ?? uri.replace(/\\/g, '/');
|
|
49
|
+
const title = titlePath.replace(/\/+$/, '').replace(/\.git$/i, '').split('/').filter(Boolean).slice(-2).join('/') || uri;
|
|
50
|
+
return { key: 'origin-remote', kind: 'repository', title, uri, sensitivity: 'normal' };
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function readTextOrEmpty(filePath) {
|
|
54
|
+
try { return readFileSync(filePath, 'utf8'); } catch { return ''; }
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// The registered projects whose profile records a repository source at remote.
|
|
58
|
+
export function projectsWithRemote(projects, remote) {
|
|
59
|
+
return projects.filter(project => (project.profile?.sources ?? []).some(source =>
|
|
60
|
+
REPOSITORY_SOURCE_KINDS.has(source.kind) && typeof source.uri === 'string' && remoteKey(source.uri) === remote));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// host/path with scheme, user, port, trailing slashes and .git removed and the
|
|
64
|
+
// host lowercased, so ssh and https forms of one repository are equal. Local
|
|
65
|
+
// paths and file URLs name no shared repository and give null.
|
|
66
|
+
function remoteKey(url) {
|
|
67
|
+
const value = url.trim();
|
|
68
|
+
if (/^file:/i.test(value)) return null;
|
|
69
|
+
const parts = URL_FORM.exec(value) ?? SCP_FORM.exec(value);
|
|
70
|
+
if (!parts) return null;
|
|
71
|
+
const repositoryPath = parts[2].replace(/^\/+|\/+$/g, '').replace(/\.git$/i, '');
|
|
72
|
+
return repositoryPath ? `${parts[1].toLowerCase()}/${repositoryPath}` : null;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// The first url of [remote "origin"] in a Git config file's text.
|
|
76
|
+
function originUrl(config) {
|
|
77
|
+
let inOrigin = false;
|
|
78
|
+
for (const line of config.split(/\r?\n/)) {
|
|
79
|
+
const section = SECTION.exec(line);
|
|
80
|
+
let entry = line;
|
|
81
|
+
if (section) {
|
|
82
|
+
inOrigin = section[1].toLowerCase() === 'remote' && section[2] === 'origin';
|
|
83
|
+
entry = section[3];
|
|
84
|
+
}
|
|
85
|
+
const url = inOrigin && URL_ENTRY.exec(entry)?.[1];
|
|
86
|
+
if (url) return configValue(url);
|
|
87
|
+
}
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function configValue(raw) {
|
|
92
|
+
let value = '';
|
|
93
|
+
let quoted = false;
|
|
94
|
+
for (let index = 0; index < raw.length; index += 1) {
|
|
95
|
+
const character = raw[index];
|
|
96
|
+
if (character === '\\' && index + 1 < raw.length) value += raw[++index];
|
|
97
|
+
else if (character === '"') quoted = !quoted;
|
|
98
|
+
else if (!quoted && (character === '#' || character === ';')) break;
|
|
99
|
+
else value += character;
|
|
100
|
+
}
|
|
101
|
+
return value.trim();
|
|
102
|
+
}
|
|
@@ -48,6 +48,19 @@ export function withRouteMarkers(assignment, markers) {
|
|
|
48
48
|
return { ...base, match_basis: [...base.match_basis.slice(0, MATCH_BASIS_LIMIT - markers.length), ...markers] };
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
// Why the entry selected no Agent, as a route marker: the checkpoint receipt
|
|
52
|
+
// then gives the entry's reason instead of a generic one.
|
|
53
|
+
const UNASSIGNED = /^entry_unassigned:(\S+) (\S+)$/u;
|
|
54
|
+
export function unassignedMarkers(selection) {
|
|
55
|
+
if (!selection?.status || selection.agent) return [];
|
|
56
|
+
return [`entry_unassigned:${markerField(selection.status)} ${markerField(selection.reason ?? null)}`];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function storedUnassignment(task) {
|
|
60
|
+
const match = (task?.agentAssignment?.match_basis ?? []).map(item => UNASSIGNED.exec(item)).find(Boolean);
|
|
61
|
+
return match ? { status: markerValue(match[1]), reason: markerValue(match[2]) } : null;
|
|
62
|
+
}
|
|
63
|
+
|
|
51
64
|
const NO_VALUE = '-';
|
|
52
65
|
// One space-free field of a route marker: IDs and names with spaces and %
|
|
53
66
|
// escaped, `-` for none. markerValue reads it back (null for none or malformed).
|
|
@@ -4,7 +4,7 @@ import { groupDiscussionEntry } from './task-entry-group-discussion.js';
|
|
|
4
4
|
import { beginTaskContext, beginTaskFromPreferences } from './agent-knowledge-workflows.js';
|
|
5
5
|
import { getCollaborationPreferences as getCollaborationPreferencesWorkflow } from './collaboration-preference-workflow.js';
|
|
6
6
|
import { resolveTaskEntryAgent, loadProjectAgentContinuity } from './project-agent-task-entry.js';
|
|
7
|
-
import { applyAgentAssignment } from './task-agent-assignment.js';
|
|
7
|
+
import { applyAgentAssignment, unassignedMarkers } from './task-agent-assignment.js';
|
|
8
8
|
import { triageCandidates } from './conversation-triage.js';
|
|
9
9
|
import { withProjectCandidate } from './assistant-project-candidate.js';
|
|
10
10
|
import { withBoardMatch } from './jefa-board-match.js';
|
|
@@ -118,7 +118,7 @@ async function entryPreferences(application, projectResolution, {
|
|
|
118
118
|
const group = projectResolution.group ? await groupDiscussionEntry(application, projectResolution.group,
|
|
119
119
|
fla?.selection ?? selected, projectResolution.personalProjectId ?? null) : null;
|
|
120
120
|
const selection = group?.selection ?? fla?.selection ?? selected;
|
|
121
|
-
const routeMarkers = [...(fla?.markers ?? []), ...(group?.markers ?? [])];
|
|
121
|
+
const routeMarkers = [...(fla?.markers ?? []), ...(group?.markers ?? []), ...unassignedMarkers(selection)];
|
|
122
122
|
// A rejected explicit role must not leak its private preferences via fallback.
|
|
123
123
|
const selectedAgentId = selection ? selection.agent?.agentId ?? null : projectAgentId;
|
|
124
124
|
const standing = standingOwnerEntry(projectResolution, selection);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createHash } from 'node:crypto';
|
|
2
|
+
import { PERSON_WRITER, UNNAMED_AGENT_WRITER } from './project-profile-authors.js';
|
|
2
3
|
|
|
3
4
|
const NEW_PROJECT = /^\s*(?:新项目|new project)\s*[::]\s*([^\n\r,,。]{1,80})/i;
|
|
4
5
|
const NAME_END = /^(?:$|[\s::,,。.、!!??])/;
|
|
@@ -17,7 +18,9 @@ export async function projectNamedInPrompt(application, taskPrompt) {
|
|
|
17
18
|
if (requested) {
|
|
18
19
|
const existing = projects.filter(project => sameName(project, requested));
|
|
19
20
|
if (existing.length) return choice(existing, 'named_in_prompt');
|
|
20
|
-
|
|
21
|
+
const brief = requestedBrief(taskPrompt, requested);
|
|
22
|
+
return createNamedProject(application, spaceId, all, requested, brief,
|
|
23
|
+
brief.brief_draft ? UNNAMED_AGENT_WRITER : PERSON_WRITER);
|
|
21
24
|
}
|
|
22
25
|
return choice(namedAtOpening(projects, taskPrompt), 'named_in_prompt');
|
|
23
26
|
}
|
|
@@ -53,10 +56,11 @@ export function projectDisplayName(project) {
|
|
|
53
56
|
return project.profile?.name || project.project_id;
|
|
54
57
|
}
|
|
55
58
|
|
|
56
|
-
|
|
59
|
+
// `writer` is who the purpose comes from: the person by default, an Agent for its own draft.
|
|
60
|
+
export async function createProjectNamed(application, name, purpose, writer = PERSON_WRITER) {
|
|
57
61
|
const spaceId = application.config.personal.spaceId;
|
|
58
62
|
return createNamedProject(application, spaceId,
|
|
59
|
-
await application.personal.listPersonalProjects(spaceId), name, { purpose });
|
|
63
|
+
await application.personal.listPersonalProjects(spaceId), name, { purpose }, writer);
|
|
60
64
|
}
|
|
61
65
|
|
|
62
66
|
// Display names only, for a compact triage candidate list.
|
|
@@ -82,7 +86,7 @@ function choice(projects, basis) {
|
|
|
82
86
|
// The readable slug is used while it is free; a different name that slugs the
|
|
83
87
|
// same way gets a name-derived suffix. A concurrent create of the same name
|
|
84
88
|
// is the same project, so a create-only conflict re-reads before giving up.
|
|
85
|
-
async function createNamedProject(application, spaceId, all, name, brief) {
|
|
89
|
+
async function createNamedProject(application, spaceId, all, name, brief, writer) {
|
|
86
90
|
const taken = new Map(all.map(project => [project.project_id, project]));
|
|
87
91
|
const owns = project => nameable(project) && sameName(project, name);
|
|
88
92
|
const readable = readableId(name);
|
|
@@ -92,7 +96,7 @@ async function createNamedProject(application, spaceId, all, name, brief) {
|
|
|
92
96
|
continue;
|
|
93
97
|
}
|
|
94
98
|
try {
|
|
95
|
-
await application.upsertPersonalProject({ personalSpaceId: spaceId, projectId, createOnly: true,
|
|
99
|
+
await application.upsertPersonalProject({ personalSpaceId: spaceId, projectId, createOnly: true, writer,
|
|
96
100
|
profile: { name, ...brief, lifecycle: 'active' } });
|
|
97
101
|
return { personalProjectId: projectId, basis: 'created_from_prompt' };
|
|
98
102
|
} catch (error) {
|
|
@@ -19,6 +19,7 @@ import { receiptFormatNotices } from '../data-format/format-notices.js';
|
|
|
19
19
|
import { activeSealedWorkerRequest } from '../app/agent-request-context.js';
|
|
20
20
|
import { checkpointHumanInteraction } from './checkpoint-human-interaction.js';
|
|
21
21
|
import { clearSessionTaskBlockers } from './task-blocker-progress.js';
|
|
22
|
+
import { storedUnassignment } from './task-agent-assignment.js';
|
|
22
23
|
|
|
23
24
|
export async function checkpointTaskKnowledge(application, {
|
|
24
25
|
taskContextToken,
|
|
@@ -99,9 +100,12 @@ export async function checkpointTaskKnowledge(application, {
|
|
|
99
100
|
await clearSessionTaskBlockers(application, { sourceApplication: task.sourceApplication,
|
|
100
101
|
sessionIds: [task.sessionId], cause: 'session_activity', captureAllowed: captureCheck.allowed });
|
|
101
102
|
const interaction = activeSealedWorkerRequest() ? {} : await checkpointHumanInteraction(application, task);
|
|
103
|
+
// A task without an owner says why, as its entry did.
|
|
104
|
+
const unassigned = task.projectAgentId ? null : storedUnassignment(task);
|
|
102
105
|
return { ...interaction, ...result, conversation, ...(triaged ? { triage: triaged } : {}),
|
|
103
106
|
agent_receipt: taskAgentReceipt(application, { projectId: task.personalProjectId,
|
|
104
107
|
agentId: task.projectAgentId ?? null, name: team.name, role: team.role, sourceApplication: task.sourceApplication,
|
|
108
|
+
assignmentStatus: unassigned?.status ?? null, assignmentReason: unassigned?.reason ?? null,
|
|
105
109
|
workStatus: effectiveLog.status, conversationId: conversation?.conversation_id ?? null,
|
|
106
110
|
persistence: conversation?.status ?? null, collaborators: team.collaborators,
|
|
107
111
|
notices: [...namedFlaReceiptNotices(task), ...standingReceiptNotices(task), ...receiptNotices(captureCheck, [], { settingsUrl: captureSettingsUrl(application) }), ...await receiptFormatNotices(application, { taskId: task.token })],
|
|
@@ -2,7 +2,7 @@ export const STOP_HOOK_CHECKPOINT_GUIDANCE = 'Call checkpoint_task_knowledge for
|
|
|
2
2
|
|
|
3
3
|
export function taskKnowledgeGuidance() {
|
|
4
4
|
return {
|
|
5
|
-
execution_plan: 'For an explicit durable project execution plan, publish public steps via record_project_agent_task_activity.executionPlan and update step statuses as work progresses. Reuse step IDs and send the full current plan; steps: [] withdraws it. Optional: never invent plans, infer progress percentages or expose private reasoning. Completed steps do not replace verification or human acceptance.',
|
|
5
|
+
execution_plan: 'For an explicit durable project execution plan, publish public steps via record_project_agent_task_activity.executionPlan and update step statuses as work progresses. Reuse step IDs and send the full current plan; steps: [] withdraws it. Set agentId on a step to the participant whose share it is. Optional: never invent plans, infer progress percentages or expose private reasoning. Completed steps do not replace verification or human acceptance.',
|
|
6
6
|
collaboration: 'Before implementation, call plan_agent_collaboration with taskSize and all known implementationAgentIds; follow divisionPlan. Standard work: main FLA + different FLA for independent acceptance. Complex work: add at most one explicitly bounded independentWork. Small low-impact edits, coupled changes and command-only checks need no artificial split. Keep coupled implementation together; separate meaningful acceptance once artifacts are stable. The stable project lead decomposes, integrates and delivers. Reuse qualified specialists; gaps use approved loans or existing HR flow. Workers get bounded briefs and necessary artifact references, not the full conversation. Start with at most 3 results/query; expand only for a specific gap. Use only authorized clients/models and assess_agent_action under existing user policies. Publish assigned scopes/dependencies via the optional execution plan; report real worker/model/usage and leave unknown tokens unknown. Verify artifacts via record_agent_verification with evidence; escalate capability after two failures. Recommendations, command runs and configured peers alone are not independent worker execution.',
|
|
7
7
|
profile_capture: 'Separately evaluate durable artifact taste (including writing voice, wording, structure, formatting), stable collaboration personality and decision preferences; do not default all to judgment_preference. Writing evidence uses tasteDomain: writing; a scene-limited item uses attributes.tasteDomain (frontend, ui, ux, design, visual, architecture, code, testing, chat) or workKind, and only explicit user words set attributes.constraint: hard (every scene, chat included) or soft (small talk may omit it); remember takes the same fields. Retain exact session/turn/time provenance. Agent-inferred personality stays pending. Report missing evidence; do not promise automatic progress from use alone.',
|
|
8
8
|
knowledge_routing: 'Finish with retain_nothing+reason or one capture+captureRouting using explicit personal_global/current_project scopes. Partition each entity/relationship key exactly once; keep relationships with endpoints. Project-limited preferences stay current_project; global scope requires explicit sourceExcerpt evidence, never inferred from profileAspect. Global capture uses standalone preference entities (e.g. PersonalPreference/profileAspect taste), never relabelled Person/Project anchors. Every routed AI proposal remains pending; excerpts do not verify global applicability. Routine review goes to Tonborg under saved policy and must not block independent work. For human decisions use human_interaction: ask native choices with custom input in this conversation, without requiring a review page. review_paths are optional inspection links. Private employee working context belongs in agentMemory, not shared knowledge.',
|
|
@@ -1,15 +1,23 @@
|
|
|
1
|
+
import { receiptConsoleUrl } from '../agents/identity-receipt.js';
|
|
1
2
|
import { createProjectNamed, projectByName } from './task-entry-project-mention.js';
|
|
3
|
+
import { PERSON_WRITER, UNNAMED_AGENT_WRITER } from './project-profile-authors.js';
|
|
2
4
|
import { sourceConsoleUrl } from './source-marker.js';
|
|
3
5
|
import { ApplicationError, ApplicationErrorCode } from '../app/application-error.js';
|
|
4
6
|
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
7
|
+
// A topic that keeps coming back over several days grows into its own project.
|
|
8
|
+
// With the setting topicPromotion 'auto' (rec#11 D-86, the default) Astro forms
|
|
9
|
+
// it at once and the receipt says so with a link to rename, move or undo it;
|
|
10
|
+
// with 'ask' it is only proposed and the person decides in the console. "Not
|
|
11
|
+
// yet" and an undo both wait for more conversations. Every rule reads stored
|
|
12
|
+
// triage counts; no model is called. Forming also moves what the topic's
|
|
13
|
+
// sessions held in their temporary projects into it, and an undo moves back
|
|
14
|
+
// what nobody changed since (the Provider's topic_knowledge_migration).
|
|
9
15
|
export const PROPOSAL_MIN_CONVERSATIONS = 3;
|
|
10
16
|
export const PROPOSAL_MIN_DAYS = 2;
|
|
11
17
|
export const PROPOSAL_ASK_AGAIN_AFTER = 3;
|
|
12
18
|
const PROPOSAL_LIMIT = 20;
|
|
19
|
+
// Starts the purpose of a project Astro formed by itself; an undo archives only those.
|
|
20
|
+
const PROMOTED_PURPOSE = 'Astro 自动升级';
|
|
13
21
|
|
|
14
22
|
export function isProposable(stats) {
|
|
15
23
|
if (!stats || stats.count < PROPOSAL_MIN_CONVERSATIONS || (stats.days ?? 0) < PROPOSAL_MIN_DAYS) return false;
|
|
@@ -33,25 +41,81 @@ export async function proposalForTopic(application, topic) {
|
|
|
33
41
|
guidance: 'Add ask_user to the end of your reply. Only the person decides, in the console; never form the project yourself.' };
|
|
34
42
|
}
|
|
35
43
|
|
|
44
|
+
// For the conversation that was just labelled, by the person's setting: a
|
|
45
|
+
// formed project to announce, a question to relay, or nothing yet.
|
|
46
|
+
export async function topicOutcome(application, topic, { sourceApplication = 'other' } = {}) {
|
|
47
|
+
return application.topicPromotion?.() === 'auto'
|
|
48
|
+
? promoteTopic(application, topic, { sourceApplication })
|
|
49
|
+
: proposalForTopic(application, topic);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// rec#11 D-86: the topic is formed without asking. A project of that name is
|
|
53
|
+
// reused; two of that name fall back to asking, since only the person can pick.
|
|
54
|
+
export async function promoteTopic(application, topic, { sourceApplication = 'other' } = {}) {
|
|
55
|
+
const [stats] = await topics(application, { topic, limit: 1 });
|
|
56
|
+
if (!isProposable(stats)) return null;
|
|
57
|
+
const existing = await projectByName(application, stats.topic);
|
|
58
|
+
if (existing?.ambiguous) return proposalForTopic(application, topic);
|
|
59
|
+
const reason = `${PROMOTED_PURPOSE}:话题「${stats.topic}」累计 ${stats.count} 个会话、跨 ${stats.days} 天`;
|
|
60
|
+
const formed = await formTopicProject(application, stats, existing, reason, sourceApplication);
|
|
61
|
+
const link = `${receiptConsoleUrl(application)}/employees/assistant?${new URLSearchParams({
|
|
62
|
+
promoted: formed.personal_project_id, topic: stats.topic })}`;
|
|
63
|
+
return { ...formed, status: 'promoted', proposed_by: 'employee.assistant',
|
|
64
|
+
notice: `FULI:话题「${stats.topic}」聊了 ${stats.count} 次、跨 ${stats.days} 天,已升级为项目「${stats.topic}」`
|
|
65
|
+
+ `${formed.knowledge_moved ? `,搬了 ${formed.knowledge_moved} 条知识` : ''}。[改名、换上级或撤销](<${link}>)`,
|
|
66
|
+
guidance: 'Add notice to the end of your reply, unchanged. The person can rename, move or undo it at its link.' };
|
|
67
|
+
}
|
|
68
|
+
|
|
36
69
|
// The person said yes: an AI-draft brief, a lead staffed through AR, and every
|
|
37
70
|
// open conversation of the topic attached. The lead hires more people only when
|
|
38
71
|
// the work needs them. People can rename, merge or split it afterwards.
|
|
39
72
|
export async function acceptTopicProposal(application, { topic, sourceApplication = 'other' }) {
|
|
40
73
|
const stats = await openTopic(application, topic);
|
|
41
|
-
const spaceId = application.config.personal.spaceId;
|
|
42
|
-
const reason = `你同意了 Astro 的建议:话题「${stats.topic}」累计 ${stats.count} 个会话、跨 ${stats.days} 天`;
|
|
43
74
|
const existing = await projectByName(application, stats.topic);
|
|
44
75
|
if (existing?.ambiguous) throw new ApplicationError(ApplicationErrorCode.VALIDATION,
|
|
45
76
|
`More than one project is named ${stats.topic}; move the conversations to one of them instead`);
|
|
46
|
-
const
|
|
77
|
+
const reason = `你同意了 Astro 的建议:话题「${stats.topic}」累计 ${stats.count} 个会话、跨 ${stats.days} 天`;
|
|
78
|
+
return { ...await formTopicProject(application, stats, existing, reason, sourceApplication), status: 'formed' };
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Undo of a formation: the topic's conversations are open again and count as
|
|
82
|
+
// declined at that size; the knowledge that moved in with them goes back unless
|
|
83
|
+
// someone changed it since; a project Astro created by itself is archived
|
|
84
|
+
// (kept, restorable), one that already existed is left as it was.
|
|
85
|
+
export async function undoTopicPromotion(application, { topic, personalProjectId }) {
|
|
86
|
+
const name = typeof topic === 'string' ? topic.trim() : '';
|
|
87
|
+
if (!name || typeof personalProjectId !== 'string' || !personalProjectId) {
|
|
88
|
+
throw new ApplicationError(ApplicationErrorCode.VALIDATION, 'A topic and its project are required');
|
|
89
|
+
}
|
|
90
|
+
const spaceId = application.config.personal.spaceId;
|
|
91
|
+
const reopened = await application.personal.conversationTriage('reopen', {
|
|
92
|
+
personal_space_id: spaceId, topic: name, personal_project_id: personalProjectId });
|
|
93
|
+
const project = (await application.personal.listPersonalProjects(spaceId))
|
|
94
|
+
.find(entry => entry.project_id === personalProjectId);
|
|
95
|
+
const archive = Boolean(project?.profile?.purpose?.startsWith(PROMOTED_PURPOSE)) && project.profile.lifecycle !== 'archived';
|
|
96
|
+
// The person's undo; only the lifecycle changes, so every field keeps its author.
|
|
97
|
+
if (archive) await application.upsertPersonalProject({ personalSpaceId: spaceId, projectId: personalProjectId,
|
|
98
|
+
writer: PERSON_WRITER, profile: { ...project.profile, lifecycle: 'archived' } });
|
|
99
|
+
return { status: 'reopened', topic: reopened.topic, personal_project_id: personalProjectId,
|
|
100
|
+
conversations: reopened.conversation_ids.length, project_archived: archive,
|
|
101
|
+
knowledge_returned: reopened.knowledge.returned, knowledge_kept: reopened.knowledge.kept,
|
|
102
|
+
ask_again_at: reopened.declined_count + PROPOSAL_ASK_AGAIN_AFTER };
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
async function formTopicProject(application, stats, existing, reason, sourceApplication) {
|
|
106
|
+
const spaceId = application.config.personal.spaceId;
|
|
107
|
+
// Astro's own wording, also when the person accepted it.
|
|
108
|
+
const project = existing ?? await createProjectNamed(application, stats.topic, `${reason}(AI 草稿,可编辑)`,
|
|
109
|
+
UNNAMED_AGENT_WRITER);
|
|
47
110
|
const projectId = project.personalProjectId;
|
|
48
111
|
const lead = await application.personal.staffDefaultProjectLead({ personal_space_id: spaceId,
|
|
49
112
|
personal_project_id: projectId, source_application: sourceApplication }).catch(() => null);
|
|
50
113
|
const attached = await application.personal.conversationTriage('form', {
|
|
51
114
|
personal_space_id: spaceId, topic: stats.topic, personal_project_id: projectId });
|
|
52
|
-
return {
|
|
115
|
+
return { personal_project_id: projectId, topic: stats.topic, reason, created: !existing,
|
|
53
116
|
lead_agent_id: lead?.agent?.agent_id ?? null, lead_status: lead?.status ?? 'unavailable',
|
|
54
|
-
conversations: attached.conversation_ids.length
|
|
117
|
+
conversations: attached.conversation_ids.length, knowledge_moved: attached.knowledge.moved,
|
|
118
|
+
knowledge_kept: attached.knowledge.kept };
|
|
55
119
|
}
|
|
56
120
|
|
|
57
121
|
export async function declineTopicProposal(application, { topic }) {
|
|
@@ -4,7 +4,7 @@ import { ApplicationError } from '../app/application-error.js';
|
|
|
4
4
|
import { refuseRemoteDecision } from './request-policy.js';
|
|
5
5
|
import { readJson, sendJson } from './response.js';
|
|
6
6
|
|
|
7
|
-
const ROUTE = /^\/api\/agent-apps(?:\/([^/]+)(?:\/(approve|disable|rollback|delete-code|data-deletion|delete-data))?)?$/;
|
|
7
|
+
const ROUTE = /^\/api\/agent-apps(?:\/([^/]+)(?:\/(approve|disable|rollback|delete-code|data-deletion|delete-data|start|stop|restart|confirm|export|reveal-export))?)?$/;
|
|
8
8
|
const LOCAL_CONSOLE = Object.freeze({ entrypoint: 'http', user: 'local-console' });
|
|
9
9
|
const version = z.string().min(1).max(32);
|
|
10
10
|
const text = z.string().max(128);
|
|
@@ -15,8 +15,15 @@ const BODIES = Object.freeze({
|
|
|
15
15
|
rollback: z.object({ version, confirmIrreversibleMigration: z.boolean().optional() }).strict(),
|
|
16
16
|
'delete-code': z.object({}).strict(),
|
|
17
17
|
'data-deletion': z.object({}).strict(),
|
|
18
|
-
'delete-data': z.object({ ticket: text.optional(), confirm: text.optional() }).strict()
|
|
18
|
+
'delete-data': z.object({ ticket: text.optional(), confirm: text.optional() }).strict(),
|
|
19
|
+
start: z.object({}).strict(),
|
|
20
|
+
stop: z.object({}).strict(),
|
|
21
|
+
restart: z.object({}).strict(),
|
|
22
|
+
confirm: z.object({ action: z.enum(['approve', 'rollback']), version }).strict(),
|
|
23
|
+
export: z.object({}).strict(),
|
|
24
|
+
'reveal-export': z.object({ path: z.string().min(1).max(1024) }).strict()
|
|
19
25
|
});
|
|
26
|
+
const CONSOLE_ACTIONS = new Set(['confirm', 'export', 'reveal-export']);
|
|
20
27
|
|
|
21
28
|
// Reads are open to the console. Writes approve, activate or remove Agent-written
|
|
22
29
|
// code. Normal Agent tools (MCP and fuli_call) have no route to them, and they
|
|
@@ -45,6 +52,10 @@ export async function handleAgentAppApiRequest({ request, response, url, app })
|
|
|
45
52
|
const parsed = BODIES[action].safeParse(await readJson(request));
|
|
46
53
|
if (!parsed.success) throw new TypeError('Invalid Agent app request');
|
|
47
54
|
const body = parsed.data;
|
|
55
|
+
const consoleActions = app.agentAppConsole;
|
|
56
|
+
if (CONSOLE_ACTIONS.has(action) && !consoleActions) {
|
|
57
|
+
throw new ApplicationError('app_console_unavailable', 'This step needs the local FULI console', { status: 409 });
|
|
58
|
+
}
|
|
48
59
|
const operations = {
|
|
49
60
|
approve: () => agentApps.approve({ appId, version: body.version, digest: body.digest, approver: LOCAL_CONSOLE,
|
|
50
61
|
confirmResident: body.confirmResident, confirmIrreversibleMigration: body.confirmIrreversibleMigration }),
|
|
@@ -53,8 +64,32 @@ export async function handleAgentAppApiRequest({ request, response, url, app })
|
|
|
53
64
|
confirmIrreversibleMigration: body.confirmIrreversibleMigration }),
|
|
54
65
|
'delete-code': () => agentApps.deleteCode({ appId, actor: LOCAL_CONSOLE }),
|
|
55
66
|
'data-deletion': () => agentApps.prepareDataDeletion({ appId }),
|
|
56
|
-
'delete-data': () => agentApps.deleteData({ appId, ticket: body.ticket, confirm: body.confirm, actor: LOCAL_CONSOLE })
|
|
67
|
+
'delete-data': () => agentApps.deleteData({ appId, ticket: body.ticket, confirm: body.confirm, actor: LOCAL_CONSOLE }),
|
|
68
|
+
start: () => lifecycle(agentApps, appId, () => agentApps.start({ appId })),
|
|
69
|
+
stop: () => lifecycle(agentApps, appId, () => agentApps.stop({ appId })),
|
|
70
|
+
restart: () => lifecycle(agentApps, appId, async () => {
|
|
71
|
+
await agentApps.stop({ appId });
|
|
72
|
+
return agentApps.start({ appId });
|
|
73
|
+
}),
|
|
74
|
+
// A terminal window for the typed confirmation, the data copied into a new
|
|
75
|
+
// folder FULI picks, and that folder shown (src/agent-apps/console-actions.js).
|
|
76
|
+
confirm: () => consoleActions.confirmInTerminal({ appId, action: body.action, version: body.version }),
|
|
77
|
+
export: () => consoleActions.exportData({ appId }),
|
|
78
|
+
'reveal-export': () => consoleActions.revealExport({ appId, path: body.path })
|
|
57
79
|
};
|
|
58
80
|
sendJson(response, 200, await operations[action]());
|
|
59
81
|
return true;
|
|
60
82
|
}
|
|
83
|
+
|
|
84
|
+
// Start, stop and restart from the console run the same instance lifecycle as
|
|
85
|
+
// a start on demand: the run gate decides, so a version approved only in the
|
|
86
|
+
// console is refused with the gate's own reason (confirmation_required,
|
|
87
|
+
// reconfirmation_required, challenge_mismatch, runner_check_failed) and the
|
|
88
|
+
// console shows the next step. A success answers with the instance as read() shows it.
|
|
89
|
+
async function lifecycle(agentApps, appId, run) {
|
|
90
|
+
const outcome = await run();
|
|
91
|
+
if (outcome?.status === 'run_refused') {
|
|
92
|
+
throw new ApplicationError(outcome.reason, outcome.message, { status: 409 });
|
|
93
|
+
}
|
|
94
|
+
return { ...outcome, instance: agentApps.read({ appId }).instance };
|
|
95
|
+
}
|