fuli-context 0.23.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +169 -979
- package/README.zh-CN.md +157 -830
- package/dist/web/assets/{AboutPage-S8QFfzpA.js → AboutPage-Dx07_Z8u.js} +1 -1
- package/dist/web/assets/{AboutSectionHeading-B5CzH4Zs.js → AboutSectionHeading-BdhpM609.js} +1 -1
- package/dist/web/assets/AgentAppsPage-5VW0uCTz.js +1 -0
- package/dist/web/assets/{AgentAppsPage-BuJWNNdL.css → AgentAppsPage-BCxrjrsE.css} +1 -1
- package/dist/web/assets/AgentAvatar-DbsG1_BY.css +1 -0
- package/dist/web/assets/AgentAvatar-DlAQP7gm.js +1 -0
- package/dist/web/assets/{AgentHand-BGGdVdd9.js → AgentHand-FPFg9-Y1.js} +1 -1
- package/dist/web/assets/AgentManagement-CLFw9oV9.css +1 -0
- package/dist/web/assets/AgentManagement-UTe4I3WA.js +7 -0
- package/dist/web/assets/AgentMentionCopy-B9eIIr3L.css +1 -0
- package/dist/web/assets/AgentMentionCopy-C5ExlutT.js +1 -0
- package/dist/web/assets/{AgentName-CUjBNQ8j.js → AgentName-C8mYbtKs.js} +1 -1
- package/dist/web/assets/AgentProfilePage-BLeyT3By.js +5 -0
- package/dist/web/assets/{AgentProfilePage-D5QUzw5N.css → AgentProfilePage-DumsVHP1.css} +1 -1
- package/dist/web/assets/AgentServicesPage-B2mDUgYZ.css +1 -0
- package/dist/web/assets/AgentServicesPage-BXi152Xc.js +1 -0
- package/dist/web/assets/{AppViewerPage-CcOlwxck.js → AppViewerPage-BR8ttEGa.js} +1 -1
- package/dist/web/assets/{BackToTop-C3KYEoCW.js → BackToTop-5_AQRMZl.js} +1 -1
- package/dist/web/assets/{BoardCardFieldsMenu-BlBWT1j7.js → BoardCardFieldsMenu-Bb_Z9a4Q.js} +1 -1
- package/dist/web/assets/{BoardMoveMenu-Bc7xC1Uh.js → BoardMoveMenu-B-f8O6cC.js} +1 -1
- package/dist/web/assets/{Breadcrumb-C_xMiD-Z.js → Breadcrumb-DtM5lZy5.js} +1 -1
- package/dist/web/assets/{CaptureChangePage-Bekp1aWg.js → CaptureChangePage-BzwcfacI.js} +1 -1
- package/dist/web/assets/ConnectionsPage-C_vgqwF2.js +1 -0
- package/dist/web/assets/ConnectionsPage-DS2PEG6K.css +1 -0
- package/dist/web/assets/{CopyFixPrompt-Bp-UX4Hq.js → CopyFixPrompt-DlarhfPK.js} +1 -1
- package/dist/web/assets/DataFormatPage-Ccy_e9rf.css +1 -0
- package/dist/web/assets/DataFormatPage-DwL4Ofc9.js +2 -0
- package/dist/web/assets/DebugTurnPage-UpK_3ZWY.js +1 -0
- package/dist/web/assets/DebugTurnsPage-C0aZg5-3.js +1 -0
- package/dist/web/assets/{DialogTitle-Lj5s6nwG.js → DialogTitle-BQXOe8EK.js} +1 -1
- package/dist/web/assets/{EmployeeRedirectPage-DnvwJeCN.js → EmployeeRedirectPage-BjWpXDSM.js} +1 -1
- package/dist/web/assets/EmployeeScopeDialog-Bt3ZlDyZ.js +1 -0
- package/dist/web/assets/EmployeeScopeDialog-U_-eNH0Z.css +1 -0
- package/dist/web/assets/{EmployeeWorkbench-BhReI8l6.css → EmployeeWorkbench-Bp9pUkfS.css} +1 -1
- package/dist/web/assets/EmployeeWorkbench-GtJIUD5G.js +4 -0
- package/dist/web/assets/FieldRoot-DRf4wM5x.js +1 -0
- package/dist/web/assets/FlaGrowth-DgVLB8hp.css +1 -0
- package/dist/web/assets/FlaGrowth-OQtTLTng.js +1 -0
- package/dist/web/assets/FlaOccupationKit-BvrKsosv.css +1 -0
- package/dist/web/assets/FlaOccupationKit-C-x4VrKk.js +1 -0
- package/dist/web/assets/{FlaTaskSheets-CNdaBy1P.js → FlaTaskSheets-CoaF5CbQ.js} +1 -1
- package/dist/web/assets/FlasPage-CgIVOGFM.js +1 -0
- package/dist/web/assets/FlasPage-H99IZ9M6.css +1 -0
- package/dist/web/assets/{GrowthLoading-Cr8xZwwO.js → GrowthLoading-VuVo2vLf.js} +1 -1
- package/dist/web/assets/{HowtoPage-Cv1YQy1s.js → HowtoPage-CZ3mOdLc.js} +1 -1
- package/dist/web/assets/{HowtoPage-t12tDDpS.css → HowtoPage-CrvMmT6K.css} +1 -1
- package/dist/web/assets/InboxPage-1ue8vA7H.css +1 -0
- package/dist/web/assets/InboxPage-zNUnnYeJ.js +6 -0
- package/dist/web/assets/{KnowledgeDeleteButton-FEyEvhlR.js → KnowledgeDeleteButton-BlUnSG3b.js} +1 -1
- package/dist/web/assets/{KnowledgeHardDeleteSection-CVwTeMEJ.js → KnowledgeHardDeleteSection-CznXBtHY.js} +1 -1
- package/dist/web/assets/KnowledgeItemEditPage-DGRNkAYd.js +1 -0
- package/dist/web/assets/{KnowledgeItemSummaryCard-49EADY_Z.js → KnowledgeItemSummaryCard-Co5JKBHl.js} +1 -1
- package/dist/web/assets/KnowledgeOrganizerPage-BWvF1GEu.js +1 -0
- package/dist/web/assets/KnowledgeOrganizerPage-CJaFkfS7.css +1 -0
- package/dist/web/assets/KnowledgePage--Z4_kAhq.js +1 -0
- package/dist/web/assets/KnowledgePeek-BgzQA9SI.js +1 -0
- package/dist/web/assets/{KnowledgePeek-Bm5jRVA9.css → KnowledgePeek-CwZVuSkf.css} +1 -1
- package/dist/web/assets/{KnowledgeTurnReceiptPage-BOz7IpaK.js → KnowledgeTurnReceiptPage-Csyjimeg.js} +1 -1
- package/dist/web/assets/KnowledgeWorkspace-0yOpWtEB.js +4 -0
- package/dist/web/assets/{KnowledgeWorkspace-DCoVFyf0.css → KnowledgeWorkspace-BgWo6lBj.css} +1 -1
- package/dist/web/assets/{MeAvatar-CYVcRiuW.js → MeAvatar-aY_q8cKs.js} +1 -1
- package/dist/web/assets/{MeLink-BdqkzhT6.js → MeLink-B0pNwVLa.js} +1 -1
- package/dist/web/assets/MenuSeparator-BR-uLovR.js +1 -0
- package/dist/web/assets/ModelSettingsPage-B9PS1Kay.css +1 -0
- package/dist/web/assets/ModelSettingsPage-BL6MsF7C.js +1 -0
- package/dist/web/assets/{NotFoundPage-Dmn32VWo.js → NotFoundPage-Cr1MaPuk.js} +1 -1
- package/dist/web/assets/NoticeRow-BXZWn4EZ.js +1 -0
- package/dist/web/assets/NoticeRow-ktVO_9Es.css +1 -0
- package/dist/web/assets/OccupationsPage-CkVqZ2pz.js +1 -0
- package/dist/web/assets/OccupationsPage-Dup7WzNh.css +1 -0
- package/dist/web/assets/OverviewPage-BkJ17OYv.js +1 -0
- package/dist/web/assets/OverviewPage-Dr4jrXW4.css +1 -0
- package/dist/web/assets/{PageColumns-DpfaPeu7.js → PageColumns-DvehZlYm.js} +1 -1
- package/dist/web/assets/PageOutline-CFGtHmOK.js +1 -0
- package/dist/web/assets/PageOutline-DG5ZYtA8.css +1 -0
- package/dist/web/assets/{PersonalProfilePage-DdBfHnqq.css → PersonalProfilePage-DnjNX2xK.css} +1 -1
- package/dist/web/assets/PersonalProfilePage-TxsNr44t.js +1 -0
- package/dist/web/assets/PersonalProjectsPage-AhgP6CL8.js +1 -0
- package/dist/web/assets/{PinIcon-B7dvh7ld.js → PinIcon-BTQsnxRY.js} +1 -1
- package/dist/web/assets/PopperContent-DtMksk76.js +1 -0
- package/dist/web/assets/{Presence-D3HKb5Hb.js → Presence-B0zMpCF4.js} +1 -1
- package/dist/web/assets/ProfileAuthorChip-BqT9Vv65.js +1 -0
- package/dist/web/assets/ProfileAuthorChip-CAWNGoW3.css +1 -0
- package/dist/web/assets/{ProjectAgentsPage-RpfiV2Fm.css → ProjectAgentsPage-CjeXFzHr.css} +1 -1
- package/dist/web/assets/ProjectAgentsPage-O-cMavcz.js +5 -0
- package/dist/web/assets/{ProjectJudgmentPolicy-GA33aSRi.js → ProjectJudgmentPolicy-CyHAu0nm.js} +2 -2
- package/dist/web/assets/{PublicProjectsPage-PJlBI8IE.js → PublicProjectsPage-Ck1QSR0R.js} +1 -1
- package/dist/web/assets/RecentNotices-vJobVOcm.js +1 -0
- package/dist/web/assets/{RoundtablesPage-DT5DUXsa.js → RoundtablesPage-C3dYekQ5.js} +6 -6
- package/dist/web/assets/{RoundtablesPage-DK9A9J-y.css → RoundtablesPage-DL-IOngN.css} +1 -1
- package/dist/web/assets/RovingFocusGroup-CUqyjFSs.js +1 -0
- package/dist/web/assets/{RovingFocusItem-CFd7tXzD.js → RovingFocusItem-CyyuWXjE.js} +1 -1
- package/dist/web/assets/{SessionMigrationPage-BZ1lEDQr.js → SessionMigrationPage-DukDM0TP.js} +1 -1
- package/dist/web/assets/SessionRecordsPage-DZ5ZBiuS.js +1 -0
- package/dist/web/assets/SettingsPage-CWGk0XZ_.js +1 -0
- package/dist/web/assets/SettingsPage-Cj3pEWcd.css +1 -0
- package/dist/web/assets/SharedJefaReportPage-DUY03VLS.js +1 -0
- package/dist/web/assets/TagVocabularyPage-BKLFJiSu.js +1 -0
- package/dist/web/assets/TaskBlockerClear-BBmPbomO.css +1 -0
- package/dist/web/assets/TaskBlockerClear-BxOiiuK8.js +1 -0
- package/dist/web/assets/TaskBlockerNotice-iUiD3BuZ.js +1 -0
- package/dist/web/assets/{TaskReason-LQ0CFiKu.js → TaskReason-D5j7L8tl.js} +1 -1
- package/dist/web/assets/TeamCard-CDunbIrP.js +1 -0
- package/dist/web/assets/TeamCard-CihQsZZ1.css +1 -0
- package/dist/web/assets/{TeamCardsWidget-DGX9k0S6.js → TeamCardsWidget-CUW-fPn7.js} +1 -1
- package/dist/web/assets/TeamIsland-CmpDmIX2.js +9 -0
- package/dist/web/assets/{TeamIsland-BBQbpozz.css → TeamIsland-DvtcsAsb.css} +1 -1
- package/dist/web/assets/{Teleport-C1upABpY.js → Teleport-Dzdr8umQ.js} +1 -1
- package/dist/web/assets/{TextField-ZnmRqG0h.js → TextField-BPhEpEv9.js} +1 -1
- package/dist/web/assets/TonborgDelegationSwitch-C1nkJqkJ.js +1 -0
- package/dist/web/assets/TonborgDelegationSwitch-DeqERWoo.css +1 -0
- package/dist/web/assets/{UiChip-CizeOu1Q.js → UiChip-BEQ067LV.js} +1 -1
- package/dist/web/assets/{UiDialog-CGTzxn3-.js → UiDialog-JjqzOA0z.js} +1 -1
- package/dist/web/assets/{UiDisclosure-ueMA4jl0.js → UiDisclosure-L6GEJHSw.js} +1 -1
- package/dist/web/assets/{UiIcon-sD1hUsOF.js → UiIcon-vgD4v8q8.js} +1 -1
- package/dist/web/assets/UiIconButton-BzyMc14P.js +1 -0
- package/dist/web/assets/{UiSegmented-BZ-jqnPE.js → UiSegmented-CIIm3KoV.js} +1 -1
- package/dist/web/assets/{UiWeight-BRO3oVMZ.js → UiWeight-D-2iZ_Kc.js} +1 -1
- package/dist/web/assets/VirtualDirectoryList-BJecsQct.css +1 -0
- package/dist/web/assets/VirtualDirectoryList-BV8KsA-Z.js +1 -0
- package/dist/web/assets/{VisuallyHidden-B8wfJ_mU.js → VisuallyHidden-BxKxuXRF.js} +1 -1
- package/dist/web/assets/VisuallyHiddenInput-DD4vhlqT.js +1 -0
- package/dist/web/assets/WidgetSlot-Dw5nWlb7.js +2 -0
- package/dist/web/assets/WorkbenchListHead-B0TjHsTO.js +1 -0
- package/dist/web/assets/WorkbenchListPage-BX6Z9gkB.css +1 -0
- package/dist/web/assets/WorkbenchListPage-D0xX-YNl.js +1 -0
- package/dist/web/assets/_plugin-vue_export-helper-B4pFJCwG.js +9 -0
- package/dist/web/assets/agent-apps-B1Je-mpY.js +1 -0
- package/dist/web/assets/agent-occupation-CjfQqSzd.js +1 -0
- package/dist/web/assets/{agent-pins-8KX0ynzy.js → agent-pins-DxHlJ96z.js} +1 -1
- package/dist/web/assets/agent-profile-BNPLhDog.css +1 -0
- package/dist/web/assets/{agent-roster-records-PfAgndHp.js → agent-roster-records-Bi5HWDif.js} +1 -1
- package/dist/web/assets/agent-work-summary-o_9-QWBL.js +1 -0
- package/dist/web/assets/{agent-workflows-DQlqVOoA.js → agent-workflows-DgdbJqpg.js} +1 -1
- package/dist/web/assets/{attach-closest-edge-D2qlayPy.js → attach-closest-edge-DUc_VUVO.js} +1 -1
- package/dist/web/assets/{attention-store-BnZ8l3kk.js → attention-store-Bod20yM3.js} +1 -1
- package/dist/web/assets/{badge-DX_xrLV6.js → badge-tMy2Qr94.js} +1 -1
- package/dist/web/assets/{button-CEkPBC1E.js → button-DnKFsImW.js} +1 -1
- package/dist/web/assets/{card-DNQ0_6vT.js → card-Ccu7HCNb.js} +1 -1
- package/dist/web/assets/{catalog-KnpBkv5t.js → catalog-CJUV8OJ6.js} +1 -1
- package/dist/web/assets/checkbox-D1R6kTUB.js +1 -0
- package/dist/web/assets/{client-CSQcWFRh.js → client-D-G2i5VU.js} +2 -2
- package/dist/web/assets/client-links-store-UgmraFBZ.js +1 -0
- package/dist/web/assets/combobox-C7QLYGzs.js +1 -0
- package/dist/web/assets/console-DgRc8Itw.js +1 -0
- package/dist/web/assets/{conversation-launcher-settings-CXFE-q_A.js → conversation-launcher-settings-CZAfuu8B.js} +1 -1
- package/dist/web/assets/copy-mention-C0EJhDPy.js +1 -0
- package/dist/web/assets/{dialog-CxhKMo0D.js → dialog-Bbq93W68.js} +1 -1
- package/dist/web/assets/{dist-B9GqMC5C.js → dist-Dd8yFhv6.js} +1 -1
- package/dist/web/assets/{dist-DIJqkL4O.js → dist-PpsW5ZE3.js} +1 -1
- package/dist/web/assets/dropdown-menu-1fGUL0V3.js +1 -0
- package/dist/web/assets/{field-LNsBZqam.js → field-DjVv_wIS.js} +1 -1
- package/dist/web/assets/{format-bytes-Bqefdt37.js → format-bytes-BKq_E0Hs.js} +1 -1
- package/dist/web/assets/hover-card-BO-929hq.js +1 -0
- package/dist/web/assets/{identity-DRfhWjty.js → identity-DIG-uOiU.js} +1 -1
- package/dist/web/assets/index-DF0TcfPY.css +1 -0
- package/dist/web/assets/index-RWEx1M91.js +24 -0
- package/dist/web/assets/{input-UoZ-0Xne.js → input-DmwRmYO2.js} +1 -1
- package/dist/web/assets/is-equal-8VOV02sH.js +1 -0
- package/dist/web/assets/{label-DpjbTOxt.js → label-BvwPUTS4.js} +1 -1
- package/dist/web/assets/label-table-CDzYRZpc.js +1 -0
- package/dist/web/assets/{model-CpuIG8Du.js → model-0TZRbkN2.js} +1 -1
- package/dist/web/assets/model-BF_ZMPLi.js +1 -0
- package/dist/web/assets/model-BjUERpoQ.js +3 -0
- package/dist/web/assets/model-CaR7VPg7.js +1 -0
- package/dist/web/assets/{model-pJ6k3zYD.js → model-Dfe81jZT.js} +1 -1
- package/dist/web/assets/{model-BYKHVgJr.js → model-DpkZUZUL.js} +1 -1
- package/dist/web/assets/{model-13BQndfF.js → model-Tmn6HvL-.js} +1 -1
- package/dist/web/assets/{model-B5g0CFcM.js → model-y7OUvtKz.js} +1 -1
- package/dist/web/assets/motion-C1fZrqmI.js +1 -0
- package/dist/web/assets/{motion-C-ZimCUS.js → motion-mAmbRj_M.js} +1 -1
- package/dist/web/assets/{motion-preference-BQiiwhab.js → motion-preference-Dz9S1bZa.js} +1 -1
- package/dist/web/assets/npm-copies-BLRc0FXW.js +1 -0
- package/dist/web/assets/{client-connection-model-DVwA-GIu.css → npm-copies-GRyMAduA.css} +1 -1
- package/dist/web/assets/occupation-catalog-_SnxxRbK.js +1 -0
- package/dist/web/assets/occupation-kits-DFC6Auuc.js +1 -0
- package/dist/web/assets/{option-CcHPBOo6.js → option-DC8frdbr.js} +1 -1
- package/dist/web/assets/{orchestration-filters-DmF4Qs8E.js → orchestration-filters-UeiAHJqn.js} +1 -1
- package/dist/web/assets/overview-data-Cq1gefY5.js +1 -0
- package/dist/web/assets/page-refresh-DdRJaxMv.js +1 -0
- package/dist/web/assets/{page-title-NXphgeQI.js → page-title-Cm9u_qw1.js} +1 -1
- package/dist/web/assets/person-profile-BH2AzOfw.js +1 -0
- package/dist/web/assets/{popover-xSRzcSmY.js → popover-DW__YCSE.js} +1 -1
- package/dist/web/assets/popup-host-ctKYu9Ze.js +1 -0
- package/dist/web/assets/profile-model-DtISOJ-X.js +1 -0
- package/dist/web/assets/{project-board-layout-DBQeP_QP.js → project-board-layout-CTM8kAgq.js} +1 -1
- package/dist/web/assets/{project-capture-BhYsDWwJ.js → project-capture-B3pNhpFF.js} +1 -1
- package/dist/web/assets/{project-origin-D8jy8EF_.js → project-origin-BO8Ngccf.js} +1 -1
- package/dist/web/assets/quick-edit-api-B169r5Qb.js +1 -0
- package/dist/web/assets/radio-group-DqA46cXQ.js +1 -0
- package/dist/web/assets/review-api-CJaNgPMA.js +1 -0
- package/dist/web/assets/review-list-BbV-Mle7.js +1 -0
- package/dist/web/assets/review-store-DSQpb5P8.js +1 -0
- package/dist/web/assets/{role-names-PECaMfQo.js → role-names-By0xdfTn.js} +1 -1
- package/dist/web/assets/roundtable-live-u9qUU6aA.js +1 -0
- package/dist/web/assets/{runtime-dom.esm-bundler-f39i44Mt.js → runtime-dom.esm-bundler-DhFy4Djs.js} +1 -1
- package/dist/web/assets/save-file-oGyIokMI.js +1 -0
- package/dist/web/assets/select-TqPBladU.js +1 -0
- package/dist/web/assets/{session-launch-offers-X9b0DwF1.js → session-launch-offers-CtQeY4Qk.js} +1 -1
- package/dist/web/assets/{settings-restart-BnwcTv3i.js → settings-autosave-C7vW3_SP.js} +1 -1
- package/dist/web/assets/settings-restart-p12HUUve.js +1 -0
- package/dist/web/assets/{shared-report-BxNVLalR.js → shared-report-DQBSigHB.js} +3 -3
- package/dist/web/assets/{source-adapters-aupsL146.js → source-adapters-DPJzumzC.js} +1 -1
- package/dist/web/assets/{switch-B3Y3oE_n.js → switch-D7w_0h3m.js} +1 -1
- package/dist/web/assets/tabs-DR8k0PN9.js +1 -0
- package/dist/web/assets/{task-card-fields-DAx6zMLz.js → task-card-fields-X1ZYCm_j.js} +1 -1
- package/dist/web/assets/{task-labels-BdDFvSAy.js → task-labels-LuXoQhF9.js} +1 -1
- package/dist/web/assets/{task-reason-7WnPreht.js → task-reason-ChpbGtyx.js} +1 -1
- package/dist/web/assets/{team-sheets-Cr0ZTPw3.js → team-sheets-DYCQqa8I.js} +1 -1
- package/dist/web/assets/{textarea-CRzFqL9a.js → textarea-D53VYanK.js} +1 -1
- package/dist/web/assets/ui-D4nAhcmu.css +1 -0
- package/dist/web/assets/ui-DmNbL8MW.js +1 -0
- package/dist/web/assets/{useAgentRecords-CMtpd3Fj.js → useAgentRecords-Hy9nqMs7.js} +1 -1
- package/dist/web/assets/useAgentWorkSummary-mloD4p12.js +1 -0
- package/dist/web/assets/{useApi-CROJJdhE-CRCgNOqq.js → useApi-CROJJdhE-DnUGUb8O.js} +1 -1
- package/dist/web/assets/{useClipboardCopy-DkqKK3wY.js → useClipboardCopy-BTuQMeWI.js} +1 -1
- package/dist/web/assets/{useFocusReturn-BZpVmQnM.js → useFocusReturn-4hUmSzj9.js} +1 -1
- package/dist/web/assets/{useForwardExpose-Di-MnbTz.js → useForwardExpose-BDmW7q7u.js} +1 -1
- package/dist/web/assets/{useForwardPropsEmits-L9XcB5DG.js → useForwardPropsEmits-BzT2luD4.js} +1 -1
- package/dist/web/assets/useForwardScopeId-DZCnSswO.js +1 -0
- package/dist/web/assets/useKnowledgeConfirm-L8wnJCuX.js +1 -0
- package/dist/web/assets/useKnowledgeItemPeek-C_huXt6E.js +1 -0
- package/dist/web/assets/{useMinimumLoadingDisplay-CWPiOaDl.js → useMinimumLoadingDisplay-Dkl8NQru.js} +1 -1
- package/dist/web/assets/usePageTools-CbDOdIrg.js +1 -0
- package/dist/web/assets/usePrimitiveElement-tPQM7XJs.js +1 -0
- package/dist/web/assets/{useProjectAgentRoster-CWVpSsQ3.js → useProjectAgentRoster-BBmRvcgr.js} +1 -1
- package/dist/web/assets/{useRoutePeek-DxLVksbJ.js → useRoutePeek-CRbCDqsm.js} +1 -1
- package/dist/web/assets/useTeamPeople-D_5cxxf1.js +1 -0
- package/dist/web/assets/{useTeamWork-BTZd_wKs.js → useTeamWork-CXEQwF4n.js} +1 -1
- package/dist/web/assets/{useTypeahead-pEZNpBls.js → useTypeahead-CVYuxPOD.js} +1 -1
- package/dist/web/assets/{utils-BsxOjD1Q.js → utils-BnrWDlfm.js} +1 -1
- package/dist/web/assets/utils-BsGjKHV8.js +1 -0
- package/dist/web/assets/verification-DbCo_dnY.js +1 -0
- package/dist/web/assets/{version-db3QWWjt.js → version-Ci3l8Vnb.js} +1 -1
- package/dist/web/assets/{vue-router-B79HWW1l.js → vue-router-D4_ms6om.js} +1 -1
- package/dist/web/assets/workbench-card-Dt0820yW.css +1 -0
- package/dist/web/index.html +90 -74
- package/docs/agent-conversations-and-collaboration.md +55 -58
- package/docs/agent-interface-architecture.md +7 -2
- package/docs/agent-roundtable.md +9 -8
- package/docs/client-connections.md +85 -8
- package/docs/client-links.md +16 -1
- package/docs/employee-agents.md +1 -1
- package/docs/judgment-and-autonomy.md +2 -0
- package/docs/public-personal-architecture.md +1 -1
- package/graph-provider/fuli_graph/app.py +2 -0
- package/graph-provider/fuli_graph/graph_field_contract.py +6 -3
- package/graph-provider/fuli_graph/graph_format_migrations.py +6 -0
- package/graph-provider/fuli_graph/graph_models.py +11 -62
- package/graph-provider/fuli_graph/graph_query.py +46 -105
- package/graph-provider/fuli_graph/knowledge_batch_confirmation.py +7 -5
- package/graph-provider/fuli_graph/knowledge_duplicate_models.py +24 -0
- package/graph-provider/fuli_graph/knowledge_duplicate_rules.py +157 -0
- package/graph-provider/fuli_graph/knowledge_duplicates.py +357 -0
- package/graph-provider/fuli_graph/knowledge_item_routes.py +3 -1
- package/graph-provider/fuli_graph/knowledge_item_view.py +45 -2
- package/graph-provider/fuli_graph/knowledge_item_view_models.py +21 -0
- package/graph-provider/fuli_graph/knowledge_management.py +6 -1
- package/graph-provider/fuli_graph/knowledge_outdated.py +15 -5
- package/graph-provider/fuli_graph/knowledge_review.py +65 -2
- package/graph-provider/fuli_graph/knowledge_review_models.py +5 -0
- package/graph-provider/fuli_graph/knowledge_search.py +0 -31
- package/graph-provider/fuli_graph/knowledge_versions.py +12 -1
- package/graph-provider/fuli_graph/models.py +9 -2
- package/graph-provider/fuli_graph/preference_versions.py +28 -7
- package/graph-provider/fuli_graph/project_agent_routes.py +60 -2
- package/graph-provider/fuli_graph/project_agent_task_models.py +63 -5
- package/graph-provider/fuli_graph/store.py +2 -0
- package/graph-provider/fuli_graph/store_project_agent_task_activity.py +12 -3
- package/graph-provider/fuli_graph/store_project_agent_task_blockers.py +110 -23
- package/graph-provider/fuli_graph/store_project_agent_task_pages.py +186 -0
- package/graph-provider/fuli_graph/store_project_agent_task_reads.py +6 -4
- package/graph-provider/fuli_graph/store_project_agent_task_recruitment.py +0 -7
- package/graph-provider/fuli_graph/store_project_agent_tasks.py +4 -3
- package/graph-provider/fuli_graph/store_task_contexts.py +14 -4
- package/graph-provider/fuli_graph/task_blocker.py +38 -6
- package/graph-provider/fuli_graph/tonborg_confirmation.py +48 -0
- package/graph-provider/pyproject.toml +1 -1
- package/native/win32/fuli-win-helper.exe +0 -0
- package/npm-shrinkwrap.json +16 -50
- package/package.json +2 -2
- package/packages/roundtable/src/peer/node-store.js +2 -6
- package/packages/roundtable/src/roundtable/chat-service.js +2 -1
- package/packages/roundtable/src/roundtable/chat.js +11 -1
- package/packages/roundtable/src/roundtable/delivery-state.js +43 -0
- package/packages/roundtable/src/roundtable/fla-address.js +6 -0
- package/packages/roundtable/src/roundtable/group-discussion-store.js +2 -2
- package/packages/roundtable/src/roundtable/group-discussion.js +15 -15
- package/packages/roundtable/src/roundtable/person-conversation.js +2 -1
- package/packages/roundtable/src/roundtable/service.js +40 -9
- package/packages/roundtable/src/roundtable/store.js +30 -7
- package/packages/roundtable/src/storage/database-format.js +21 -16
- package/registry/client-links.json +66 -4
- package/registry/occupation-plugins.json +593 -0
- package/skills/capturing-session-knowledge/SKILL.md +16 -3
- package/skills/capturing-session-knowledge/references/capture.md +22 -6
- package/skills/capturing-session-knowledge/references/coordination.md +16 -6
- package/skills/capturing-session-knowledge/references/retrieval.md +23 -6
- package/skills/flreview/SKILL.md +1 -1
- package/skills/operating-fuli/SKILL.md +40 -13
- package/skills/operating-fuli/references/workflow-recipes.md +9 -5
- package/src/acceptance-checks/port.js +37 -0
- package/src/adaptive-runtime/settings.js +1 -1
- package/src/adaptive-runtime/state.js +3 -3
- package/src/agent-apps/host-tools/catalog.js +7 -0
- package/src/agent-apps/store.js +2 -10
- package/src/agent-delegation/person-words.js +15 -1
- package/src/agent-kits/cli-presence.js +78 -0
- package/src/agent-kits/client-installer.js +9 -5
- package/src/agent-kits/installer-manifest.js +11 -6
- package/src/agent-kits/legacy-hook-cleanup.js +4 -3
- package/src/agent-kits/new-sessions.js +82 -0
- package/src/agent-kits/opencode-plugin-gate.js +3 -1
- package/src/agent-kits/pins.js +12 -12
- package/src/agent-kits/ports.js +5 -2
- package/src/agent-kits/session-launcher.js +11 -4
- package/src/agent-kits/vendor/agent-installer/README.md +1 -1
- package/src/agent-kits/vendor/agent-installer/index.d.ts +1 -1
- package/src/agent-kits/vendor/agent-session-launcher/README.md +1 -1
- package/src/agent-kits/vendor/agent-session-launcher/index.d.ts +30 -1
- package/src/agent-kits/vendor/agent-session-launcher/index.mjs +8 -0
- package/src/agent-roundtable/tools.js +3 -3
- package/src/agent-services/store.js +2 -4
- package/src/agent-tools/agent-workflow-definitions.js +7 -3
- package/src/agent-tools/checkpoint-definitions.js +5 -4
- package/src/agent-tools/fla-lesson-definitions.js +24 -0
- package/src/agent-tools/graph-definitions.js +8 -0
- package/src/agent-tools/graph-handlers.js +15 -4
- package/src/agent-tools/interface-catalog.js +34 -9
- package/src/agent-tools/model-backend-definitions.js +1 -1
- package/src/agent-tools/occupation-kit-definitions.js +20 -0
- package/src/agent-tools/project-agent-definitions.js +19 -40
- package/src/agent-tools/project-agent-tool-definitions.js +5 -1
- package/src/agent-tools/reply-echo-definitions.js +18 -0
- package/src/agent-tools/tonborg-question-definitions.js +26 -0
- package/src/agent-workflows/agent-tools.js +69 -3
- package/src/agent-workflows/port.js +32 -4
- package/src/agent-workflows/store.js +16 -9
- package/src/agents/call-source.js +11 -0
- package/src/agents/choice-answers.js +19 -0
- package/src/agents/claude-code/choice-answers.js +49 -0
- package/src/agents/claude-code/fla-menu-command.js +14 -0
- package/src/agents/claude-code/lifecycle-hook.js +16 -9
- package/src/agents/claude-code/turn-records.js +38 -0
- package/src/agents/claude-desktop/code-tab-token-source.js +26 -0
- package/src/agents/codex/fla-prompts.js +98 -0
- package/src/agents/codex/lifecycle-hook.js +8 -7
- package/src/agents/cursor/lifecycle-hook.js +3 -2
- package/src/agents/identity-receipt.js +9 -7
- package/src/agents/lifecycle-failure.js +15 -5
- package/src/agents/lifecycle-message.js +4 -5
- package/src/agents/opencode/lifecycle-hook.js +12 -7
- package/src/agents/opencode/plugin.js +7 -2
- package/src/agents/token-usage-resolver.js +1 -1
- package/src/agents/turn-receipt.js +5 -4
- package/src/cli/command-registry.js +1 -1
- package/src/cli/local-runtime-command.js +5 -2
- package/src/cli/local-runtime-options.js +7 -3
- package/src/cli/models-command.js +15 -11
- package/src/cli/update-command.js +2 -2
- package/src/cli/update-installation.js +23 -6
- package/src/cli/workspace-connection-command.js +2 -2
- package/src/client-links/registry.js +6 -112
- package/src/conversations/current-task-lookup.js +2 -3
- package/src/conversations/entry-skeleton.js +113 -55
- package/src/conversations/human-interaction.js +1 -1
- package/src/conversations/person-words.js +29 -0
- package/src/conversations/preference-session.js +17 -14
- package/src/conversations/stop-auto-close.js +28 -7
- package/src/conversations/task-context-view.js +113 -27
- package/src/conversations/turn-findings.js +105 -0
- package/src/data-format/format-notices.js +2 -1
- package/src/data-format/local-stores.js +22 -1
- package/src/debug-turns/model-capture.js +1 -1
- package/src/debug-turns/record.js +1 -1
- package/src/desktop/cli-path.js +253 -0
- package/src/desktop/desktop-app-package.js +31 -0
- package/src/desktop/{fuli-links.js → desktop-client-links.js} +20 -16
- package/src/desktop/desktop-controller.js +35 -3
- package/src/desktop/npm-adoption-store.js +7 -0
- package/src/desktop/npm-adoption.js +119 -0
- package/src/desktop/npm-copies.js +73 -0
- package/src/desktop/npm-copy-control.js +56 -0
- package/src/desktop/npm-copy-data.js +51 -0
- package/src/desktop/npm-copy-uninstall.js +67 -0
- package/src/desktop/windows-controller.js +13 -1
- package/src/desktop/windows-installation-switch.js +1 -1
- package/src/desktop/windows-node-launcher.js +11 -0
- package/src/desktop/windows-uninstall.js +3 -0
- package/src/dreaming/astro-calls.js +47 -0
- package/src/dreaming/projects.js +39 -0
- package/src/dreaming/run.js +38 -36
- package/src/dreaming/scheduler.js +2 -2
- package/src/employees/builtin/jefa/board-store.js +2 -10
- package/src/employees/builtin/jefa/tools.js +1 -1
- package/src/employees/management-policy.js +1 -1
- package/src/employees/manifest.js +1 -1
- package/src/employees/service.js +11 -1
- package/src/external-knowledge/document-mapping.js +1 -1
- package/src/external-knowledge/index.js +0 -4
- package/src/fla-growth/lessons.js +40 -0
- package/src/fla-growth/task-verification.js +25 -0
- package/src/fla-growth/tool-suggestions.js +107 -0
- package/src/fla-growth/verification.js +30 -0
- package/src/graphiti/agent-access-policy.js +1 -1
- package/src/graphiti/agent-conversations.js +2 -2
- package/src/graphiti/agent-growth.js +32 -4
- package/src/graphiti/capture-change-confirmation.js +4 -1
- package/src/graphiti/capture-notice.js +2 -1
- package/src/graphiti/capture-onboarding.js +1 -1
- package/src/graphiti/checkpoint-provider-outage.js +23 -0
- package/src/graphiti/collaboration-preference-projection.js +1 -1
- package/src/graphiti/conversation-triage.js +1 -1
- package/src/graphiti/execution-mode.js +1 -1
- package/src/graphiti/federated-application.js +16 -8
- package/src/graphiti/fla-mention.js +105 -96
- package/src/graphiti/fla-menu-reader.js +25 -0
- package/src/graphiti/fla-menu.js +108 -0
- package/src/graphiti/fla-picker.js +21 -16
- package/src/graphiti/fuli-markup.js +60 -0
- package/src/graphiti/group-member-context.js +1 -1
- package/src/graphiti/human-review-channel.js +16 -2
- package/src/graphiti/knowledge-result-budget.js +2 -2
- package/src/graphiti/knowledge-review.js +2 -1
- package/src/graphiti/local-runtimes.js +11 -0
- package/src/graphiti/preference-task-scope.js +1 -1
- package/src/graphiti/project-agent-control-plane.js +6 -0
- package/src/graphiti/project-agent-mapping.js +23 -10
- package/src/graphiti/project-agent-mention.js +10 -28
- package/src/graphiti/project-agent-task-entry.js +1 -1
- package/src/graphiti/project-agent-task-sheets.js +1 -1
- package/src/graphiti/project-agent-workflows.js +20 -5
- package/src/graphiti/project-knowledge-presence.js +27 -0
- package/src/graphiti/project-path-context.js +2 -2
- package/src/graphiti/provider-client.js +24 -0
- package/src/graphiti/provider-outage.js +20 -0
- package/src/graphiti/recall-policy.js +1 -1
- package/src/graphiti/reply-echo-agent-tool.js +36 -0
- package/src/graphiti/reply-echo-group.js +85 -0
- package/src/graphiti/reply-echo.js +87 -0
- package/src/graphiti/session-knowledge-migration.js +2 -1
- package/src/graphiti/session-prompt-sentences.js +52 -0
- package/src/graphiti/session-records.js +3 -2
- package/src/graphiti/source-marker.js +14 -0
- package/src/graphiti/task-blocker-progress.js +24 -1
- package/src/graphiti/task-context-entry.js +20 -1
- package/src/graphiti/task-entry-group-discussion.js +31 -31
- package/src/graphiti/task-entry-named-fla.js +40 -70
- package/src/graphiti/task-entry-preferences.js +2 -2
- package/src/graphiti/task-entry-project-scope.js +4 -4
- package/src/graphiti/task-entry-provider-outage.js +25 -0
- package/src/graphiti/task-entry-read-only.js +1 -1
- package/src/graphiti/task-entry-standing-owner.js +3 -3
- package/src/graphiti/task-experiences.js +21 -3
- package/src/graphiti/task-knowledge-checkpoint.js +5 -2
- package/src/graphiti/task-knowledge-recall.js +140 -25
- package/src/graphiti/task-prompt-statement.js +49 -0
- package/src/graphiti/task-remember.js +23 -9
- package/src/graphiti/task-scene.js +1 -1
- package/src/graphiti/task-stated-rules.js +75 -0
- package/src/graphiti/temporary-project-scope.js +1 -1
- package/src/graphiti/topic-proposals.js +6 -5
- package/src/graphiti/user-taste-skill.js +1 -1
- package/src/graphiti/workflow-candidate-mapping.js +1 -1
- package/src/http/agent-delegation-gate.js +9 -0
- package/src/http/api-router.js +16 -0
- package/src/http/cli-path-api-router.js +35 -0
- package/src/http/desktop-client-api-router.js +18 -0
- package/src/http/dreaming-api-router.js +10 -7
- package/src/http/graph-api-router.js +17 -0
- package/src/http/notices-api-router.js +37 -0
- package/src/http/npm-copies-api-router.js +36 -0
- package/src/http/occupation-plugins-api-router.js +43 -0
- package/src/http/reply-echo-api-router.js +53 -0
- package/src/http/response.js +1 -1
- package/src/http/retrospectives-api-router.js +18 -0
- package/src/http/session-launch-api-router.js +34 -1
- package/src/http/static-handler.js +1 -1
- package/src/http/task-blocker-api-router.js +17 -5
- package/src/http/task-verification-api-router.js +16 -0
- package/src/http/whats-new-api-router.js +34 -0
- package/src/judgment/acceptance.js +10 -3
- package/src/judgment/agent-view.js +21 -4
- package/src/judgment/conversation.js +86 -2
- package/src/judgment/delegated-reviews.js +23 -0
- package/src/judgment/engine.js +49 -16
- package/src/judgment/explain-method.js +11 -0
- package/src/judgment/http.js +17 -2
- package/src/judgment/question-options.js +97 -0
- package/src/judgment/question-tools.js +235 -0
- package/src/judgment/review-delegation.js +89 -0
- package/src/judgment/review-prompt.js +44 -3
- package/src/judgment/review-verdicts.js +13 -4
- package/src/judgment/runtime.js +3 -1
- package/src/judgment/service.js +25 -5
- package/src/judgment/store.js +44 -8
- package/src/judgment/verdict-schema.js +6 -0
- package/src/judgment/visible-items.js +15 -4
- package/src/knowledge-duplicates/scheduler.js +28 -0
- package/src/knowledge-hard-delete/forget-references.js +5 -2
- package/src/knowledge-impressions/store.js +17 -5
- package/src/local-runtime/console-autostart-record.js +95 -0
- package/src/local-runtime/console-autostart.js +143 -0
- package/src/local-runtime/console-health.js +26 -0
- package/src/local-runtime/installed-console-launcher.js +73 -0
- package/src/local-runtime/lifecycle.js +85 -21
- package/src/local-runtime/processes.js +15 -2
- package/src/local-runtime/unresponsive-console.js +77 -0
- package/src/mcp/create-mcp-server.js +11 -4
- package/src/mcp/fla-menu-prompts.js +60 -0
- package/src/mcp/runtime.js +11 -3
- package/src/mcp/session-id.js +3 -2
- package/src/mcp/tool-annotations.js +5 -2
- package/src/mcp/tool-profiles.js +1 -1
- package/src/mcp/tool-result.js +3 -1
- package/src/model-backends/adapters/anthropic-messages.js +2 -2
- package/src/model-backends/adapters/ollama-local-build.js +1 -1
- package/src/model-backends/adapters/openai-chat.js +2 -2
- package/src/model-backends/budget.js +10 -1
- package/src/model-backends/config.js +2 -2
- package/src/model-backends/endpoint-models.js +80 -0
- package/src/model-backends/http.js +3 -1
- package/src/model-backends/keys-http.js +5 -4
- package/src/model-backends/models-http.js +54 -0
- package/src/model-backends/port.js +32 -5
- package/src/model-backends/prompt.js +11 -1
- package/src/model-backends/role-settings.js +27 -2
- package/src/model-backends/role-trust.js +3 -15
- package/src/model-backends/role-work-store.js +2 -12
- package/src/model-backends/runtime.js +11 -2
- package/src/model-backends/secret-store.js +61 -12
- package/src/model-backends/suggestion-log.js +6 -15
- package/src/model-backends/usage-ledger.js +28 -18
- package/src/notices/recent-notices.js +175 -0
- package/src/notifications/needs-person.js +1 -1
- package/src/occupation-plugins/agent-tools.js +59 -0
- package/src/occupation-plugins/choice-store.js +65 -0
- package/src/occupation-plugins/manifest.js +165 -0
- package/src/occupation-plugins/port.js +104 -0
- package/src/occupation-plugins/recruitment.js +38 -0
- package/src/presence/windows-helper-pin.js +1 -1
- package/src/registry/updatable-manifest.js +127 -0
- package/src/retrieval-terms/fill.js +1 -1
- package/src/retrospectives/run.js +113 -0
- package/src/retrospectives/runs.js +18 -0
- package/src/retrospectives/scheduler.js +58 -0
- package/src/server/application-lifecycle.js +1 -1
- package/src/server/signal-shutdown.js +31 -0
- package/src/server.js +26 -18
- package/src/setup/first-run-capture.js +6 -2
- package/src/setup/graph-runtime.js +46 -38
- package/src/setup/neo4j-memory-profile.js +1 -1
- package/src/setup/paths.js +2 -0
- package/src/standing-assignments/store.js +2 -4
- package/src/system/client-connection-status.js +3 -1
- package/src/system/doctor.js +19 -2
- package/src/system/graph-migration.js +1 -1
- package/src/system/platform-path.js +21 -9
- package/src/system/runtime-settings.js +19 -7
- package/src/system/settings-guide.js +7 -0
- package/src/system/system-service.js +41 -2
- package/src/task-blockers/console-port.js +12 -6
- package/src/text/markdown-link.js +12 -0
- package/src/text/single-line.js +6 -0
- package/src/text/utf8-preview.js +7 -6
- package/src/whats-new/lines/0.25.0.json +17 -0
- package/src/whats-new/lines/0.25.1.json +13 -0
- package/src/whats-new/release-lines.js +66 -0
- package/src/whats-new/whats-new.js +70 -0
- package/src/work-surfaces/store.js +2 -4
- package/dist/web/assets/AgentAppsPage-BYXraPFM.js +0 -1
- package/dist/web/assets/AgentManagement-Bza8k5ra.js +0 -7
- package/dist/web/assets/AgentManagement-CeF4mjtg.css +0 -1
- package/dist/web/assets/AgentMentionCopy-C72hY2QL.js +0 -1
- package/dist/web/assets/AgentMentionCopy-CNKrzZvE.css +0 -1
- package/dist/web/assets/AgentProfilePage-kp7-gRRx.js +0 -5
- package/dist/web/assets/AgentServicesPage-ARIWfmuh.css +0 -1
- package/dist/web/assets/AgentServicesPage-IsGaz7FY.js +0 -1
- package/dist/web/assets/ConnectionsPage-BpvecWXD.js +0 -1
- package/dist/web/assets/ConnectionsPage-Cwt-knQQ.css +0 -1
- package/dist/web/assets/DataFormatPage-dsy8d3oA.js +0 -2
- package/dist/web/assets/DataFormatPage-sSnjjUY4.css +0 -1
- package/dist/web/assets/DebugTurnPage-cIJV7xDW.js +0 -1
- package/dist/web/assets/DebugTurnsPage-B6Te_Alp.js +0 -1
- package/dist/web/assets/EmployeeScopeDialog-CXNZ62Ab.js +0 -1
- package/dist/web/assets/EmployeeScopeDialog-Do5PHQh7.css +0 -1
- package/dist/web/assets/EmployeeWorkbench-DALIO-cM.js +0 -4
- package/dist/web/assets/FieldRoot-DRnAC66O.js +0 -1
- package/dist/web/assets/FlaGrowth-7wlv31Tl.js +0 -1
- package/dist/web/assets/FlaGrowth-BzXY8pcx.css +0 -1
- package/dist/web/assets/FlasPage-BCs1Ffpf.js +0 -1
- package/dist/web/assets/FlasPage-SLQDMv47.css +0 -1
- package/dist/web/assets/InboxPage-Bkx6nIhb.css +0 -1
- package/dist/web/assets/InboxPage-CgJnymOY.js +0 -4
- package/dist/web/assets/KnowledgeItemEditPage-rwpM8cF1.js +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-7IdnjM3L.js +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-CNm2jvJZ.css +0 -1
- package/dist/web/assets/KnowledgePage-gxqOIZxf.js +0 -1
- package/dist/web/assets/KnowledgePeek-CQyCxHFj.js +0 -1
- package/dist/web/assets/KnowledgeWorkspace-A7zVb26p.js +0 -4
- package/dist/web/assets/MenuSeparator-quqkZZXY.js +0 -1
- package/dist/web/assets/ModelSettingsPage-B8jC_uew.js +0 -3
- package/dist/web/assets/ModelSettingsPage-DhCn_SF6.css +0 -1
- package/dist/web/assets/OccupationsPage-BVREfX_R.js +0 -1
- package/dist/web/assets/OccupationsPage-Di7B-bPl.css +0 -1
- package/dist/web/assets/OverviewPage-CHyEbdP4.js +0 -1
- package/dist/web/assets/OverviewPage-xdF5g6bZ.css +0 -1
- package/dist/web/assets/PageOutline-BKBQ1T4d.js +0 -1
- package/dist/web/assets/PageOutline-BqVgnlos.css +0 -1
- package/dist/web/assets/PersonalProfilePage-Cxp2gn6J.js +0 -1
- package/dist/web/assets/PersonalProjectsPage-821imOxR.js +0 -1
- package/dist/web/assets/PopperContent-DNqbLkNa.js +0 -1
- package/dist/web/assets/ProfileAuthorChip-7HSHODdR.js +0 -1
- package/dist/web/assets/ProfileAuthorChip-C_0hzDoP.css +0 -1
- package/dist/web/assets/ProjectAgentsPage-DBsXS6Xa.js +0 -5
- package/dist/web/assets/RovingFocusGroup-BB0d3k17.js +0 -1
- package/dist/web/assets/SessionRecordsPage-BMAAtIAt.js +0 -1
- package/dist/web/assets/SettingsPage-BYNEk6BM.js +0 -1
- package/dist/web/assets/SettingsPage-Uj1IpZpS.css +0 -1
- package/dist/web/assets/SharedJefaReportPage-g35o6jUb.js +0 -1
- package/dist/web/assets/TagVocabularyPage-COubNJXz.js +0 -1
- package/dist/web/assets/TaskBlockerClear-B5MpHdlh.js +0 -1
- package/dist/web/assets/TaskBlockerClear-CjSNfpyP.css +0 -1
- package/dist/web/assets/TaskBlockerNotice-CIN0HRiE.js +0 -1
- package/dist/web/assets/TeamCard-CsmWDw2Q.css +0 -1
- package/dist/web/assets/TeamCard-D-kLa5rT.js +0 -1
- package/dist/web/assets/TeamIsland-BIo-l49b.js +0 -9
- package/dist/web/assets/UiIconButton-CCo4NPYv.js +0 -1
- package/dist/web/assets/UiNotice-DGPFbVo7.js +0 -1
- package/dist/web/assets/VirtualDirectoryList-1vLi41SD.css +0 -1
- package/dist/web/assets/VirtualDirectoryList-BkV3gj5E.js +0 -1
- package/dist/web/assets/VisuallyHiddenInput-Bdcr9CwC.js +0 -1
- package/dist/web/assets/WidgetSlot-DFojQaSo.js +0 -2
- package/dist/web/assets/_plugin-vue_export-helper-B9AJmZbc.js +0 -9
- package/dist/web/assets/agent-apps-CKGFfySp.js +0 -1
- package/dist/web/assets/agent-avatar-V6M_DF3r.js +0 -1
- package/dist/web/assets/agent-occupation-PZ2YAIM8.js +0 -1
- package/dist/web/assets/agent-profile-Clb-gYu-.css +0 -1
- package/dist/web/assets/agent-work-summary-bzTwEUaA.js +0 -1
- package/dist/web/assets/checkbox-DPyLHneg.js +0 -1
- package/dist/web/assets/client-connection-model-vO2cap6a.js +0 -1
- package/dist/web/assets/client-links-store-DMqe0MbK.js +0 -1
- package/dist/web/assets/combobox-zUq9bkyM.js +0 -1
- package/dist/web/assets/console-DaoAO-EO.js +0 -1
- package/dist/web/assets/context-menu-CcGDnF_k.js +0 -1
- package/dist/web/assets/dropdown-menu-CXmMnCBh.js +0 -1
- package/dist/web/assets/fla-mention-D_Qb7VeY.js +0 -1
- package/dist/web/assets/index-B4AMPpl_.css +0 -1
- package/dist/web/assets/index-BYIOAXnn.js +0 -2
- package/dist/web/assets/label-table-BnWNYfyk.js +0 -1
- package/dist/web/assets/model-CDevUwUw.js +0 -1
- package/dist/web/assets/model-P5fSGsiJ.js +0 -1
- package/dist/web/assets/motion-QY5FKKko.js +0 -1
- package/dist/web/assets/occupation-catalog-uDDhZwKK.js +0 -1
- package/dist/web/assets/person-profile-DXXfpvta.js +0 -1
- package/dist/web/assets/popup-host-Bmvrf-2t.js +0 -1
- package/dist/web/assets/profile-model-6gTmScHC.js +0 -1
- package/dist/web/assets/quick-edit-api-WLh_88w6.js +0 -1
- package/dist/web/assets/radio-group-B4r78nDh.js +0 -1
- package/dist/web/assets/roundtable-live-DFeDF56c.js +0 -1
- package/dist/web/assets/save-file-rPduHi2f.js +0 -1
- package/dist/web/assets/select-_JO3Mxdp.js +0 -1
- package/dist/web/assets/tabs-BlcZiEMY.js +0 -1
- package/dist/web/assets/ui-BopQuQfc.js +0 -1
- package/dist/web/assets/ui-CoUaCzmO.css +0 -1
- package/dist/web/assets/useAgentWorkSummary-BQbhaHov.js +0 -1
- package/dist/web/assets/useForwardScopeId-CUQFIAIj.js +0 -1
- package/dist/web/assets/useKnowledgeItemPeek-PmQJixw5.js +0 -1
- package/dist/web/assets/useTeamPeople-CDISP0PM.js +0 -1
- package/dist/web/assets/utils-B4pBTmyh.js +0 -1
- package/src/workspace-protocol/array-validation.js +0 -19
- package/src/workspace-protocol/base64url-contract.js +0 -27
- package/src/workspace-protocol/constants.js +0 -37
- package/src/workspace-protocol/error-contract.js +0 -24
- package/src/workspace-protocol/fact-contract.js +0 -110
- package/src/workspace-protocol/governance-contract.js +0 -47
- package/src/workspace-protocol/index.js +0 -53
- package/src/workspace-protocol/json-budget.js +0 -19
- package/src/workspace-protocol/manifest-contract.js +0 -186
- package/src/workspace-protocol/publication-contract.js +0 -212
- package/src/workspace-protocol/query-contract.js +0 -149
- package/src/workspace-protocol/scalar-contract.js +0 -192
- package/src/workspace-protocol/sync-contract.js +0 -184
- package/src/workspace-protocol/text-contract.js +0 -39
- package/src/workspace-protocol/validation.js +0 -66
- /package/dist/web/assets/{UiNotice-ZCBdABdM.css → UiIconButton-ZCBdABdM.css} +0 -0
- /package/dist/web/assets/{settings-restart-BU_GGtbG.css → settings-autosave-BU_GGtbG.css} +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { projectStoresNothing } from './project-knowledge-presence.js';
|
|
1
2
|
import { createFuliSourceMarker, knowledgeItemTitle, sourceConsoleUrl } from './source-marker.js';
|
|
2
3
|
import { knowledgeItemRole } from './knowledge-item-role.js';
|
|
3
4
|
import { detectSensitiveContent } from '../security/sensitive-content.js';
|
|
@@ -5,8 +6,12 @@ import { budgetAutomaticRecall } from './knowledge-result-budget.js';
|
|
|
5
6
|
import { entryTimeBelow } from '../conversations/entry-time.js';
|
|
6
7
|
import { utf8Preview } from '../text/utf8-preview.js';
|
|
7
8
|
import { NEUTRAL, usagePriorLookup } from '../knowledge-impressions/ranking-prior.js';
|
|
9
|
+
import { promptSentenceKeys, taskStatement, withoutProhibitions } from './task-prompt-statement.js';
|
|
8
10
|
|
|
9
11
|
const MAX_QUERIES = 4;
|
|
12
|
+
// The verification intent's query rides beyond MAX_QUERIES: it is the only one
|
|
13
|
+
// that finds the kept checks, and a change request already spends the four.
|
|
14
|
+
const VERIFY_QUERY = 'project checks run test command script 检查 测试 命令';
|
|
10
15
|
const MAX_ITEMS_PER_KIND = 3;
|
|
11
16
|
const TOPIC_ONLY = plan => plan.trigger_categories.length === 1 && plan.trigger_categories[0] === 'topic';
|
|
12
17
|
const MAX_ITEM_TEXT = 1000;
|
|
@@ -18,7 +23,8 @@ const PENDING_NOTE = 'Pending items are agent-proposed and not confirmed by a pe
|
|
|
18
23
|
const RECALL_INTENTS = Object.freeze([
|
|
19
24
|
{
|
|
20
25
|
category: 'release_delivery',
|
|
21
|
-
|
|
26
|
+
// "Git Bash" and "Git for Windows" name a shell, not a delivery (rec#88).
|
|
27
|
+
pattern: /(?:发布|发版|上线|部署|推送|再推|release|publish|push|deploy|ship|rollout|commit|github|\bgit\b(?!\s+(?:bash|for\s+windows)\b))/iu,
|
|
22
28
|
queries: [
|
|
23
29
|
'发布 发版 版本 release publish runbook',
|
|
24
30
|
'推送 提交 push commit GitHub Connector runbook'
|
|
@@ -56,6 +62,14 @@ const RECALL_INTENTS = Object.freeze([
|
|
|
56
62
|
category: 'prior_context',
|
|
57
63
|
pattern: /(?:之前|以前|上次|已经存|保存过|记得|照旧|同样|还是用|不用再|先前|约定|定好的|previous|earlier|\bprior\b|last time|remember|same as|again|we (?:decided|agreed|settled|chose))/iu,
|
|
58
64
|
queries: ['先前 方法 规则 决策 runbook previous method decision']
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
// rec#88: "make sure the whole suite passes", "every project check passes":
|
|
68
|
+
// the project's checks and the step a test run needs first are kept by the
|
|
69
|
+
// Stop hook (turn-findings.js), and only a query about checks finds them.
|
|
70
|
+
category: 'verification',
|
|
71
|
+
pattern: /(?:\b(?:tests?|suite|specs?|checks?)\b[^.?!\n]{0,20}\b(?:pass|passes|passing|green)\b|\bmake sure\b[^.?!\n]{0,60}\bpass(?:es)?\b|\brun (?:the )?(?:tests|suite|checks)\b|跑通|测试(?:都)?通过|检查(?:都)?通过)/iu,
|
|
72
|
+
queries: [VERIFY_QUERY]
|
|
59
73
|
}
|
|
60
74
|
]);
|
|
61
75
|
|
|
@@ -100,6 +114,9 @@ const INDEX_READ = 'Titles of one bounded search: read one with search_current_p
|
|
|
100
114
|
// rec#63: after "searched, no match" models stopped looking and copied a
|
|
101
115
|
// stale value from the repository; one quick search is not the whole store.
|
|
102
116
|
const MISS_NEXT = 'One quick search only. Before taking a project value or rule (port, command, owner, convention) from repo files, search_current_project_knowledge for it.';
|
|
117
|
+
// rec#88: in a project that has stored nothing yet, that search can only miss
|
|
118
|
+
// (7 of 12 compounding-eval sessions spent a tool round trip on it).
|
|
119
|
+
const EMPTY_NEXT = 'This project has no stored knowledge yet; no further FULI search is needed.';
|
|
103
120
|
|
|
104
121
|
export const TASK_KNOWLEDGE_RETRIEVAL_GUIDANCE = Object.freeze({
|
|
105
122
|
before_reasking:
|
|
@@ -112,29 +129,31 @@ export const TASK_KNOWLEDGE_RETRIEVAL_GUIDANCE = Object.freeze({
|
|
|
112
129
|
'Treat automatic matches as candidates. Cite only items that materially support the task; if all are irrelevant, use noMatchSourceMarker. A recall without markers ran no search: show no marker.'
|
|
113
130
|
});
|
|
114
131
|
|
|
115
|
-
|
|
132
|
+
// `earlierSentences`: the sentence keys of the session's earlier prompts
|
|
133
|
+
// (session-prompt-sentences.js); the plan reads only the task's own text
|
|
134
|
+
// (task-prompt-statement.js), so repeated instructions, notes and
|
|
135
|
+
// prohibitions never choose its topics or queries (rec#88).
|
|
136
|
+
export function planTaskKnowledgeRecall(taskPrompt, { earlierSentences } = {}) {
|
|
116
137
|
if (typeof taskPrompt !== 'string' || !taskPrompt.trim()) {
|
|
117
138
|
return { status: 'not_requested', trigger_categories: [], queries: [] };
|
|
118
139
|
}
|
|
119
|
-
|
|
120
|
-
if (detectSensitiveContent(prompt).restricted) {
|
|
140
|
+
if (detectSensitiveContent(singleLine(taskPrompt).slice(0, 8192)).restricted) {
|
|
121
141
|
return {
|
|
122
142
|
status: 'suppressed_sensitive',
|
|
123
143
|
trigger_categories: [],
|
|
124
144
|
queries: []
|
|
125
145
|
};
|
|
126
146
|
}
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
};
|
|
147
|
+
const statementText = ownTaskText(taskPrompt, earlierSentences);
|
|
148
|
+
const prompt = singleLine(statementText).slice(0, 8192);
|
|
149
|
+
const intentPrompt = { artifact_location: withoutRelativeWhere(prompt) };
|
|
131
150
|
const matched = RECALL_INTENTS.filter(({ category, pattern }) =>
|
|
132
151
|
pattern.test(intentPrompt[category] ?? prompt));
|
|
133
152
|
// rec#88: 16 of 20 held-out misses were never searched because the prompt
|
|
134
153
|
// had no cue word. A prompt with words of its own is searched by them; one
|
|
135
154
|
// with none ("继续") has nothing to search for.
|
|
136
155
|
if (!matched.length) {
|
|
137
|
-
const own =
|
|
156
|
+
const own = ownClauseQueries(statementText);
|
|
138
157
|
return own.length ? { status: 'planned', trigger_categories: ['topic'], queries: own.slice(0, MAX_QUERIES) }
|
|
139
158
|
: { status: 'not_needed', trigger_categories: [], queries: [] };
|
|
140
159
|
}
|
|
@@ -145,19 +164,43 @@ export function planTaskKnowledgeRecall(taskPrompt) {
|
|
|
145
164
|
// clauses read the lead paragraph (focus falls back to the whole prompt when
|
|
146
165
|
// it names nothing): a name in trailing notes ("WSL Ubuntu", "Windows
|
|
147
166
|
// Node" in pasted environment rules) is not what the task is about.
|
|
148
|
-
const statement = leadParagraph(
|
|
167
|
+
const statement = leadParagraph(statementText);
|
|
149
168
|
const leadTerms = distinctivePromptTerms(statement);
|
|
150
169
|
const focus = (leadTerms.length ? leadTerms : distinctivePromptTerms(prompt)).join(' ').slice(0, 180);
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
170
|
+
// A named target still leaves room for the clauses that name a kept fact
|
|
171
|
+
// ("the same retry behaviour we use for email" beside "SMS"): its focused
|
|
172
|
+
// category queries come first, then those clauses under the same focus
|
|
173
|
+
// (compounding eval: the task's topic was otherwise never searched).
|
|
174
|
+
const targeted = namedTarget(statement);
|
|
175
|
+
const categoryQueries = matched.flatMap(({ queries: values }) => values).map((query) => focus ? `${focus} ${query}` : query);
|
|
176
|
+
const queries = targeted
|
|
177
|
+
? unique([...categoryQueries, ...ownClauseQueries(statementText, { cuedOnly: true }).map((query) => `${focus} ${query}`)])
|
|
178
|
+
: unique([...ownClauseQueries(statementText), ...categoryQueries]);
|
|
179
|
+
// The checks query goes out bare: a target's name would only dilute it.
|
|
180
|
+
const verify = matched.some(({ category }) => category === 'verification');
|
|
154
181
|
return {
|
|
155
182
|
status: 'planned',
|
|
156
183
|
trigger_categories: matched.map(({ category }) => category),
|
|
157
|
-
queries: queries.slice(0, MAX_QUERIES)
|
|
184
|
+
queries: [...queries.filter(query => !query.endsWith(VERIFY_QUERY)).slice(0, MAX_QUERIES), ...(verify ? [VERIFY_QUERY] : [])]
|
|
158
185
|
};
|
|
159
186
|
}
|
|
160
187
|
|
|
188
|
+
// The keys of the session's earlier prompts, recording this prompt's for the
|
|
189
|
+
// next one. A sensitive prompt is never recorded, not even by hash.
|
|
190
|
+
function sessionSentences(application, taskPrompt, { sourceApplication, sessionId }) {
|
|
191
|
+
const store = application.sessionPromptSentences;
|
|
192
|
+
if (!store || typeof taskPrompt !== 'string' || detectSensitiveContent(singleLine(taskPrompt).slice(0, 8192)).restricted) {
|
|
193
|
+
return new Set();
|
|
194
|
+
}
|
|
195
|
+
return store.exchange(sourceApplication, sessionId, promptSentenceKeys(taskPrompt.slice(0, 16384)));
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// The text the plan reads: the task's own statement, without its negated
|
|
199
|
+
// delivery actions and other prohibitions.
|
|
200
|
+
function ownTaskText(taskPrompt, earlierSentences) {
|
|
201
|
+
return withoutProhibitions(positiveDeliveryClauses(taskStatement(taskPrompt.slice(0, 16384), earlierSentences)));
|
|
202
|
+
}
|
|
203
|
+
|
|
161
204
|
// Negation is local to a clause. Positive later clauses remain candidates;
|
|
162
205
|
// this plans recall only and never grants permission to perform delivery.
|
|
163
206
|
function positiveDeliveryClauses(prompt) {
|
|
@@ -190,8 +233,11 @@ function withoutRelativeWhere(prompt) {
|
|
|
190
233
|
}
|
|
191
234
|
|
|
192
235
|
export async function recallTaskKnowledge(application, resolution, taskPrompt, { sourceApplication = null, sessionId = null } = {}) {
|
|
193
|
-
const
|
|
194
|
-
const
|
|
236
|
+
const earlierSentences = sessionSentences(application, taskPrompt, { sourceApplication, sessionId });
|
|
237
|
+
const plan = planTaskKnowledgeRecall(taskPrompt, { earlierSentences });
|
|
238
|
+
// The index and the focus filter read the same own text as the plan.
|
|
239
|
+
const ownText = plan.status === 'suppressed_sensitive' ? taskPrompt : ownTaskText(taskPrompt, earlierSentences);
|
|
240
|
+
const unasked = () => knowledgeIndexRecall(application, resolution, ownText, { sourceApplication, sessionId })
|
|
195
241
|
.then(index => index ?? recallWithoutSearch('not_needed', { trigger_categories: [], queries: [] }));
|
|
196
242
|
if (plan.status === 'not_needed') return await unasked();
|
|
197
243
|
if (plan.status !== 'planned') return recallWithoutSearch(plan.status, plan);
|
|
@@ -227,7 +273,7 @@ export async function recallTaskKnowledge(application, resolution, taskPrompt, {
|
|
|
227
273
|
.filter(({ status }) => status === 'fulfilled')
|
|
228
274
|
.map(({ value }) => ({ facts: withoutPreferences(value.facts), entities: withoutPreferences(value.entities) }));
|
|
229
275
|
const failedQueryCount = settlements.length - results.length;
|
|
230
|
-
const focusTerms = distinctivePromptTerms(singleLine(
|
|
276
|
+
const focusTerms = distinctivePromptTerms(singleLine(ownText).slice(0, 8192));
|
|
231
277
|
const factCandidates = confirmedFirst(filterRecallCandidates(results.flatMap(({ facts = [] }) => facts), focusTerms));
|
|
232
278
|
const entityCandidates = confirmedFirst(filterRecallCandidates(results.flatMap(({ entities = [] }) => entities), focusTerms));
|
|
233
279
|
// rec#63: how often Agents used each candidate once shown reorders, within
|
|
@@ -235,8 +281,13 @@ export async function recallTaskKnowledge(application, resolution, taskPrompt, {
|
|
|
235
281
|
const prior = usagePriorLookup(application.recallImpressions, {
|
|
236
282
|
personalSpaceId: application.config.personal.spaceId, facts: factCandidates, entities: entityCandidates });
|
|
237
283
|
const compare = (left, right) => compareRecallItems(left, right, prior);
|
|
238
|
-
const
|
|
239
|
-
|
|
284
|
+
const ranked = {
|
|
285
|
+
facts: rankedUnique(factCandidates, 'relationship', compare).slice(0, MAX_ITEMS_PER_KIND).map(compactFact),
|
|
286
|
+
entities: rankedUnique(entityCandidates, 'entity', compare).slice(0, MAX_ITEMS_PER_KIND).map(compactEntity)
|
|
287
|
+
};
|
|
288
|
+
// rec#88: a pending item the task names only in passing waits as a title.
|
|
289
|
+
const { facts, entities, weak } = relevantPending(ranked, ownText, { verifying: plan.trigger_categories.includes('verification') });
|
|
290
|
+
if (!facts.length && !entities.length && weak.length) return weakPendingIndex(plan, weak);
|
|
240
291
|
const pendingSlots = Object.entries({ facts, entities })
|
|
241
292
|
.filter(([, items]) => items.some((item) => !isConfirmed(item))).map(([slot]) => slot);
|
|
242
293
|
const sourceMarker = createFuliSourceMarker({
|
|
@@ -269,7 +320,8 @@ export async function recallTaskKnowledge(application, resolution, taskPrompt, {
|
|
|
269
320
|
})
|
|
270
321
|
} : {}),
|
|
271
322
|
...(pendingSlots.length ? { pending_fallback: { slots: pendingSlots, note: PENDING_NOTE } } : {}),
|
|
272
|
-
...(searched && !facts.length && !entities.length
|
|
323
|
+
...(searched && !facts.length && !entities.length
|
|
324
|
+
? { next: await projectStoresNothing(application, resolution.personalProjectId) ? EMPTY_NEXT : MISS_NEXT } : {}),
|
|
273
325
|
...(answersFromConfirmed(application) && confirmedByPeople([...facts, ...entities])
|
|
274
326
|
? { confirmed_use: CONFIRMED_USE } : {}),
|
|
275
327
|
facts,
|
|
@@ -285,6 +337,57 @@ export async function recallTaskKnowledge(application, resolution, taskPrompt, {
|
|
|
285
337
|
// only items the exact project defines that name one of those terms. Null,
|
|
286
338
|
// so the entry carries the unchanged not_needed recall, for anything but a
|
|
287
339
|
// change request in a resolved project with such a match in time.
|
|
340
|
+
// Pending items fill a slot only when nothing confirmed matched (confirmedFirst),
|
|
341
|
+
// and a long stated rule shares common project words with almost any task: the
|
|
342
|
+
// compounding eval's retry policy came back, whole, for a health-check task
|
|
343
|
+
// because both say "channel". A pending item is sent whole when the head of its
|
|
344
|
+
// statement (before its first colon or semicolon) shares at least two terms
|
|
345
|
+
// with the task's own words; otherwise only its title is listed, to read on
|
|
346
|
+
// demand. Confirmed items are never held back here.
|
|
347
|
+
const MIN_HEAD_OVERLAP = 2;
|
|
348
|
+
// A task that asks for its checks to pass is about the project's checks: a
|
|
349
|
+
// pending item whose head names a test, check, script or command is its topic.
|
|
350
|
+
const VERIFY_TERMS = new Set(['test', 'suite', 'spec', 'check', 'script', 'command', 'fixture', '测试', '检查', '命令']);
|
|
351
|
+
function relevantPending({ facts, entities }, ownText, { verifying = false } = {}) {
|
|
352
|
+
if ([...facts, ...entities].some(isConfirmed)) return { facts, entities, weak: [] };
|
|
353
|
+
const own = contentTerms(ownText);
|
|
354
|
+
const strong = item => {
|
|
355
|
+
const head = [...contentTerms(statementHead(item))];
|
|
356
|
+
return head.filter(term => own.has(term)).length >= MIN_HEAD_OVERLAP || (verifying && head.some(term => VERIFY_TERMS.has(term)));
|
|
357
|
+
};
|
|
358
|
+
const weak = [...facts.filter(item => !strong(item)).map(item => ({ item, kind: 'relationship' })),
|
|
359
|
+
...entities.filter(item => !strong(item)).map(item => ({ item, kind: 'entity' }))];
|
|
360
|
+
return { facts: facts.filter(strong), entities: entities.filter(strong), weak };
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
function statementHead(item) {
|
|
364
|
+
return String(item.name ?? item.fact ?? item.summary ?? '').split(/[::;;]/u)[0];
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
const HEAD_STOP_WORDS = new Set(['and', 'are', 'for', 'our', 'the', 'this', 'that', 'with', 'every', 'all', 'any', 'its', 'from', 'into']);
|
|
368
|
+
// Words and Chinese character pairs, a plural reduced to its singular.
|
|
369
|
+
function contentTerms(text) {
|
|
370
|
+
const lower = String(text).toLocaleLowerCase('en-US');
|
|
371
|
+
const words = (lower.match(/[a-z][a-z0-9-]{2,}/gu) ?? []).filter(word => !HEAD_STOP_WORDS.has(word) && !CLAUSE_STOP_WORDS.has(word))
|
|
372
|
+
.map(word => (word.endsWith('ies') ? `${word.slice(0, -3)}y` : word.endsWith('s') && !word.endsWith('ss') ? word.slice(0, -1) : word));
|
|
373
|
+
const han = (lower.replace(CLAUSE_HAN_FILLERS, '').match(/\p{Script=Han}+/gu) ?? []).flatMap(run => [...run].slice(0, -1).map((char, index) => char + run[index + 1]));
|
|
374
|
+
return new Set([...words, ...han]);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
// Only weakly related pending items matched: their titles, as the index tier lists them.
|
|
378
|
+
function weakPendingIndex(plan, weak) {
|
|
379
|
+
return {
|
|
380
|
+
status: 'indexed',
|
|
381
|
+
trigger_categories: plan.trigger_categories,
|
|
382
|
+
query_count: plan.queries.length,
|
|
383
|
+
guidance: taskKnowledgeRetrievalGuidance(),
|
|
384
|
+
knowledge_index: { matched_in_search: weak.length, read: INDEX_READ,
|
|
385
|
+
items: weak.slice(0, MAX_INDEX_ITEMS).map(({ item, kind }) => [item.id, indexTitle(knowledgeItemTitle(item, kind))]) },
|
|
386
|
+
facts: [],
|
|
387
|
+
entities: []
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
|
|
288
391
|
async function knowledgeIndexRecall(application, { personalProjectId }, taskPrompt, { sourceApplication, sessionId }) {
|
|
289
392
|
const prompt = singleLine(taskPrompt).slice(0, 8192);
|
|
290
393
|
if (!personalProjectId || !changeRequested(prompt) || entryTimeBelow(INDEX_MIN_REMAINING_MS)) return null;
|
|
@@ -311,7 +414,7 @@ async function knowledgeIndexRecall(application, { personalProjectId }, taskProm
|
|
|
311
414
|
// distinctive terms, keeping the items that project itself defines and that
|
|
312
415
|
// name one of those terms, confirmed first, as [id, title] pairs. Null when
|
|
313
416
|
// the text has no such term (no search) or nothing matches; a failed search
|
|
314
|
-
// throws. Task entry's index tier and the
|
|
417
|
+
// throws. Task entry's index tier and the #FLG same-session member index
|
|
315
418
|
// (group-member-context.js) share it. agentToolName labels the search.
|
|
316
419
|
export async function projectKnowledgeIndex(application, personalProjectId, text,
|
|
317
420
|
{ sourceApplication, sessionId, agentToolName }) {
|
|
@@ -498,8 +601,8 @@ const CLAUSE_WORD_LIMIT = 5;
|
|
|
498
601
|
const CLAUSE_HAN_LIMIT = 16;
|
|
499
602
|
// Asking and doing words: they say what to do with a fact, never which one.
|
|
500
603
|
const CLAUSE_STOP_WORDS = new Set(('about add adding after also answer because been before bullet bullets could create '
|
|
501
|
-
+ 'does entry existing exporting file folder following from full have here into just keep know like line list make more '
|
|
502
|
-
+ 'most much need new now one only please reply repo return returns saying short should show some sure tell than that '
|
|
604
|
+
+ 'does entry every existing exporting file folder following from full give have here into just keep know like line list make more '
|
|
605
|
+
+ 'most much need new now one only our please reply repo return returns saying short should show some sure tell than that '
|
|
503
606
|
+ 'their them then there these they this those three throw update use using what when where which while will with '
|
|
504
607
|
+ 'would write your').split(' '));
|
|
505
608
|
const CLAUSE_HAN_FILLERS = /请|帮我|帮忙|麻烦|一下|我们|你们|这个|那个|一个|然后|还有|的|了|吗|呢|吧/gu;
|
|
@@ -508,12 +611,24 @@ const CLAUSE_HAN_FILLERS = /请|帮我|帮忙|麻烦|一下|我们|你们|这个
|
|
|
508
611
|
// other clauses.
|
|
509
612
|
const KNOWN_FACT_CUE = /(?:agreed|decided|convention|policy|rule|owns?\b|owner|\breview|the way we|\bour\b|port\b|command|channel|region|约定|规范|规则|负责|端口|地址|命令|渠道|策略|惯例|决定)/iu;
|
|
510
613
|
|
|
614
|
+
// The task's own words weigh most where it states the task: the clauses of
|
|
615
|
+
// its lead paragraph's first line, or of the whole paragraph when that line
|
|
616
|
+
// yields none (a heading such as "Fix these:"). A trailing line a script
|
|
617
|
+
// appends ("Work only from this checkout") spends no query (rec#88).
|
|
618
|
+
function ownClauseQueries(text, { cuedOnly = false } = {}) {
|
|
619
|
+
const [lead = ''] = text.trim().split(/\r?\n[ \t]*\r?\n/u);
|
|
620
|
+
const lines = lead.split(/\r?\n/u).map(line => line.replace(CODE_SPAN, ' ')).filter(line => line.trim());
|
|
621
|
+
const first = clauseQueries(singleLine(lines[0] ?? ''), { cuedOnly });
|
|
622
|
+
return first.length ? first : clauseQueries(singleLine(lines.join(' ')), { cuedOnly });
|
|
623
|
+
}
|
|
624
|
+
|
|
511
625
|
// When some clauses name a kept fact, only they query: the rest of a change
|
|
512
626
|
// request ("so tests do not wait") would bring back unrelated items.
|
|
513
|
-
|
|
627
|
+
// `cuedOnly`: no clause names one, no query.
|
|
628
|
+
function clauseQueries(prompt, { cuedOnly = false } = {}) {
|
|
514
629
|
const clauses = prompt.split(/[,;:,;:。!?!?]|\.(?:\s|$)|\b(?:and|or|then)\b/iu);
|
|
515
630
|
const cued = clauses.filter((clause) => KNOWN_FACT_CUE.test(clause));
|
|
516
|
-
return (cued.length ? cued : clauses)
|
|
631
|
+
return (cued.length || cuedOnly ? cued : clauses)
|
|
517
632
|
.map(clauseQuery)
|
|
518
633
|
.filter(Boolean)
|
|
519
634
|
.slice(0, MAX_CLAUSE_QUERIES);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { contentHash } from '../../packages/roundtable/src/canonical-json.js';
|
|
2
|
+
|
|
3
|
+
// What of a prompt is the task's own (rec#88). Clients and scripts append the
|
|
4
|
+
// same instructions to every prompt ("Environment: …", "Do not commit, push,
|
|
5
|
+
// or create branches…"); taken as the task, they chose the recall topics and
|
|
6
|
+
// took the focus slots, so every turn recalled the same release items and
|
|
7
|
+
// never the facts the task named. The recall plans from the statement left
|
|
8
|
+
// once these are set aside:
|
|
9
|
+
// - a line that opens with a note label ("Environment:", "注意:") is a note,
|
|
10
|
+
// unless nothing else is left;
|
|
11
|
+
// - a sentence an earlier prompt of the same session already had is a
|
|
12
|
+
// repeat, unless the whole prompt repeats (the same request again);
|
|
13
|
+
// - a negated instruction ("do not …", "never …", "不要…") never chooses a
|
|
14
|
+
// topic or a query: it is cut up to the end of its clause.
|
|
15
|
+
const NOTE_LINE = /^\s*(?:environment|context|setup|notes?|constraints?|instructions|环境|背景|说明|备注|注意(?:事项)?)\s*[::]/iu;
|
|
16
|
+
const SENTENCE_BREAK = /(?<=[.!?])\s+|(?<=[。!?])/u;
|
|
17
|
+
const MIN_SENTENCE_CHARS = 8;
|
|
18
|
+
const PROHIBITION = /(?:\b(?:do\s+not|don't|never)\b[^,;:.!?\n]*|(?:不要|禁止|不得|切勿|请勿)[^,,;;::。!?!?\n并但而]*)/giu;
|
|
19
|
+
|
|
20
|
+
// The prompt without its notes and its repeated sentences, keeping its lines
|
|
21
|
+
// and paragraphs. `earlier` holds the sentence keys of the session's earlier prompts.
|
|
22
|
+
export function taskStatement(prompt, earlier = new Set()) {
|
|
23
|
+
const lines = String(prompt).split(/\r?\n/u);
|
|
24
|
+
const notes = lines.map(line => NOTE_LINE.test(line));
|
|
25
|
+
const own = notes.some((note, index) => !note && lines[index].trim()) ? lines.filter((_, index) => !notes[index]) : lines;
|
|
26
|
+
const fresh = own.map(line => sentencesOf(line).filter(sentence => !earlier.has(sentenceKey(sentence))).join(' '));
|
|
27
|
+
return (fresh.some(line => line.trim()) ? fresh : own).join('\n').trim();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// The text with its negated instructions cut out, for planning only.
|
|
31
|
+
export function withoutProhibitions(text) {
|
|
32
|
+
return text.replace(PROHIBITION, ' ');
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// The keys of a prompt's sentences, by hash only, for the session's later
|
|
36
|
+
// prompts. A very short sentence ("ok", "继续") has none: it is never a repeat.
|
|
37
|
+
export function promptSentenceKeys(prompt) {
|
|
38
|
+
return [...new Set(String(prompt).split(/\r?\n/u).flatMap(sentencesOf).map(sentenceKey).filter(Boolean))];
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function sentencesOf(line) {
|
|
42
|
+
return line.split(SENTENCE_BREAK).map(sentence => sentence.trim()).filter(Boolean);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function sentenceKey(sentence) {
|
|
46
|
+
const normalized = sentence.toLocaleLowerCase('en-US').replace(/\s+/gu, ' ').trim();
|
|
47
|
+
return normalized.length < MIN_SENTENCE_CHARS ? null
|
|
48
|
+
: contentHash({ purpose: 'task-prompt-sentence-v1', sentence: normalized }).slice(0, 32);
|
|
49
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { createHash } from 'node:crypto';
|
|
2
2
|
import { ApplicationError, ApplicationErrorCode } from '../app/application-error.js';
|
|
3
|
+
import { ONLY_MARKUP, withoutFuliMarkup } from './fuli-markup.js';
|
|
3
4
|
import { experienceCapture } from './task-experiences.js';
|
|
4
|
-
import { PREFERENCE_CONSTRAINTS, TASTE_DOMAINS, WORK_KINDS } from './task-scene.js';
|
|
5
|
+
import { PREFERENCE_CONSTRAINTS, TASTE_DOMAINS, WORK_KINDS, taskWorkKind } from './task-scene.js';
|
|
5
6
|
|
|
6
7
|
// Compact memory routing at checkpoint (F-P0-08): the finishing host lists what
|
|
7
8
|
// to remember as plain items and FULI builds the routed capture. The chat tool
|
|
@@ -101,22 +102,35 @@ function entity(task, key, statement, type, profileAspect, existenceReason) {
|
|
|
101
102
|
};
|
|
102
103
|
}
|
|
103
104
|
|
|
104
|
-
// The scene qualifiers a user stated (task-scene.js); never inferred from the text.
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
// The scene qualifiers a user stated (task-scene.js); never inferred from the text. constraint
|
|
106
|
+
// is listed as an enum and checked. workKind and tasteDomain stay plain strings in the chat
|
|
107
|
+
// listing to save tokens on every request (rec#95), so an unlisted value never rejects the
|
|
108
|
+
// item: a work kind is read with the same hints as a task prompt ("front-end styling" →
|
|
109
|
+
// frontend), and anything still unknown is left off; the preference itself is kept.
|
|
107
110
|
function sceneAttributes(item) {
|
|
108
111
|
const attributes = {};
|
|
109
|
-
|
|
110
|
-
if (item[
|
|
111
|
-
|
|
112
|
-
attributes[field] = item[field];
|
|
112
|
+
if (item.constraint !== undefined) {
|
|
113
|
+
if (!PREFERENCE_CONSTRAINTS.includes(item.constraint)) throw invalid(`remember[].constraint must be one of ${PREFERENCE_CONSTRAINTS.join(', ')}`);
|
|
114
|
+
attributes.constraint = item.constraint;
|
|
113
115
|
}
|
|
116
|
+
const workKind = listedOrHinted(item.workKind, WORK_KINDS, value => taskWorkKind(value.replace(/_+/gu, ' ')));
|
|
117
|
+
if (workKind) attributes.workKind = workKind;
|
|
118
|
+
const tasteDomain = listedOrHinted(item.tasteDomain, TASTE_DOMAINS, () => null);
|
|
119
|
+
if (tasteDomain) attributes.tasteDomain = tasteDomain;
|
|
114
120
|
return Object.keys(attributes).length ? { attributes } : {};
|
|
115
121
|
}
|
|
116
122
|
|
|
123
|
+
function listedOrHinted(value, allowed, hint) {
|
|
124
|
+
if (typeof value !== 'string' || !value.trim()) return null;
|
|
125
|
+
const plain = value.trim().toLowerCase();
|
|
126
|
+
return allowed.includes(plain) ? plain : hint(plain);
|
|
127
|
+
}
|
|
128
|
+
|
|
117
129
|
function text(value, limit, field) {
|
|
118
130
|
if (typeof value !== 'string' || !value.trim()) throw invalid(`${field} must be non-empty text`);
|
|
119
|
-
|
|
131
|
+
const own = withoutFuliMarkup(value);
|
|
132
|
+
if (!own) throw invalid(ONLY_MARKUP(field));
|
|
133
|
+
return own.slice(0, limit);
|
|
120
134
|
}
|
|
121
135
|
|
|
122
136
|
function invalid(message) {
|
|
@@ -67,7 +67,7 @@ export function taskWorkKind(prompt) {
|
|
|
67
67
|
// begin_task_context arguments from a hook: an unclassified prompt sends none.
|
|
68
68
|
export function taskSceneInput(prompt) {
|
|
69
69
|
const workKind = taskWorkKind(prompt);
|
|
70
|
-
return workKind ? { workKind } : {};
|
|
70
|
+
return workKind ? { promptScene: workKind } : {};
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
// The work kinds an item's tasteDomain names: undefined when it states none,
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { compactTaskCapture } from './task-remember.js';
|
|
2
|
+
import { normalizeTaskCaptures, taskCaptureInput } from './task-knowledge-routing.js';
|
|
3
|
+
import { taskCaptureScope } from './capture-decision.js';
|
|
4
|
+
import { checkpointCaptureDecision } from './checkpoint-capture.js';
|
|
5
|
+
import { taskStatement } from './task-prompt-statement.js';
|
|
6
|
+
import { personWords } from '../conversations/person-words.js';
|
|
7
|
+
import { withoutFuliMarkup } from './fuli-markup.js';
|
|
8
|
+
|
|
9
|
+
// What the person states as a standing project rule in a prompt (rec#88
|
|
10
|
+
// compounding eval): a policy or convention of theirs, a port, the command to
|
|
11
|
+
// run, or why something fails. A task the Stop hook closes by itself is closed
|
|
12
|
+
// without a model checkpoint, and models judged even "Our retry policy …: at
|
|
13
|
+
// most 3 attempts …" not worth keeping, so the project never learned it. The
|
|
14
|
+
// hook entry keeps such sentences itself, in the person's own words, as
|
|
15
|
+
// pending project facts: the existing review (a person, or Tonborg under its
|
|
16
|
+
// policy) decides whether they stand. Questions, requests and notes are never
|
|
17
|
+
// statements; nothing the model wrote is read here, nor what the host put in
|
|
18
|
+
// the prompt (a <system-reminder>, a <side-sessions-event> quoting another
|
|
19
|
+
// session's report) or a quoted paste: only the person's own words count.
|
|
20
|
+
const MAX_RULES = 3;
|
|
21
|
+
const MAX_RULE_CHARS = 600;
|
|
22
|
+
const STATED_RULE_PATTERNS = [
|
|
23
|
+
// "Our retry policy for every outbound channel: …", "our deploy command is …"
|
|
24
|
+
/\bour\s+(?:[\w./-]+\s+){0,6}?(?:policy|policies|convention|conventions|rule|rules|standard|port|ports|command|commands|process|workflow|naming)\b[^.?!]*?(?::|\b(?:is|are)\b)/iu,
|
|
25
|
+
// "our push provider's sandbox base URL is https://…", "our alert titles are `[x] …`": a thing of ours and
|
|
26
|
+
// its concrete value (a URL, a code literal or a number) — environment facts the code never holds (rec#88).
|
|
27
|
+
/\bour\s+(?:[\w'’./-]+\s+){0,6}?(?:is|are)\b[^.?!]*?(?:https?:\/\/|`|\b\d{2,}\b)/iu,
|
|
28
|
+
// "We always run the migrations first", "we never retry a 4xx"
|
|
29
|
+
/\bwe\s+(?:always|never|only)\s+\w+/iu,
|
|
30
|
+
// "the staging port is 4611", "admin port = 7310"
|
|
31
|
+
/\bport\s+(?:is|=|:)\s*\d{2,5}\b/iu,
|
|
32
|
+
// "the tests fail because …", "the root cause was …", "the fix is to …"
|
|
33
|
+
/\b(?:fails?|failed|failing|breaks?|broke)\b[^.?!]*\bbecause\b|\broot cause\b|\bthe fix (?:is|was)\b/iu,
|
|
34
|
+
// 「我们的重试策略:…」「我们的部署命令是…」
|
|
35
|
+
/我们(?:的)?[^,。;!?\n]{0,20}(?:策略|约定|规范|规则|端口|命令|流程)(?:是|为|:|:)/u,
|
|
36
|
+
// 「约定是…」「规定:…」「端口是 4611」
|
|
37
|
+
/(?:约定|规定|规范)(?:是|为|:|:)|端口(?:是|为|:|:)\s*\d{2,5}/u,
|
|
38
|
+
// 「我们总是先…」「一律…」「失败的原因是…」
|
|
39
|
+
/我们(?:总是|一律|从不|只用|都用)|(?:失败|报错|挂掉?)(?:的)?原因(?:是|在于)|根本原因|是因为/u
|
|
40
|
+
];
|
|
41
|
+
const QUESTION = /[??]\s*$|吗[。.]?\s*$/u;
|
|
42
|
+
const SENTENCES = /(?<=[.!?])\s+(?=[A-Z0-9`"'(])|(?<=[。!?])|\r?\n/u;
|
|
43
|
+
|
|
44
|
+
// The sentences of a prompt that state a project rule, as written, at most a few.
|
|
45
|
+
export function statedProjectRules(prompt) {
|
|
46
|
+
const own = withoutFuliMarkup(personWords(prompt));
|
|
47
|
+
if (!own) return [];
|
|
48
|
+
const sentences = taskStatement(own).split(SENTENCES).map(sentence => sentence.trim()).filter(Boolean);
|
|
49
|
+
const rules = sentences.filter(sentence => !QUESTION.test(sentence) && STATED_RULE_PATTERNS.some(pattern => pattern.test(sentence)))
|
|
50
|
+
.map(sentence => sentence.slice(0, MAX_RULE_CHARS));
|
|
51
|
+
return [...new Set(rules)].slice(0, MAX_RULES);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Keeps the prompt's stated rules for a hook-entered task as pending project
|
|
55
|
+
// facts in its project, under the same capture policy as a checkpoint. Its own
|
|
56
|
+
// idempotency key, so a later model checkpoint of the task is not a replay of
|
|
57
|
+
// it. Null when nothing was stated or the task has no project; never throws
|
|
58
|
+
// for the caller to handle as an entry failure.
|
|
59
|
+
export async function keepStatedRules(application, task, prompt, { decide = checkpointCaptureDecision } = {}) {
|
|
60
|
+
const rules = statedProjectRules(prompt);
|
|
61
|
+
if (!rules.length || !task?.personalProjectId) return null;
|
|
62
|
+
const decision = await decide(application, task);
|
|
63
|
+
if (!decision.allowed) return { status: 'capture_disabled', count: 0 };
|
|
64
|
+
const { capture, captureRouting } = compactTaskCapture(task,
|
|
65
|
+
{ remember: rules.map(text => ({ kind: 'project_fact', text })) }, { sourceApplication: task.sourceApplication });
|
|
66
|
+
const batches = normalizeTaskCaptures(task, capture, captureRouting);
|
|
67
|
+
let kept = 0;
|
|
68
|
+
for (const batch of batches) {
|
|
69
|
+
const input = { ...taskCaptureInput(application.config.personal.spaceId, task, batch),
|
|
70
|
+
idempotencyKey: `${task.token}:stated:${batch.scope}` };
|
|
71
|
+
const result = await application.captureSessionKnowledge(input, { captureScope: taskCaptureScope(task) });
|
|
72
|
+
if (['committed', 'duplicate'].includes(result?.status)) kept += batch.capture.entities.length;
|
|
73
|
+
}
|
|
74
|
+
return { status: kept ? 'kept' : 'not_kept', count: kept };
|
|
75
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createHash } from 'node:crypto';
|
|
2
2
|
import { ApplicationError } from '../app/application-error.js';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const temporaryProjectScope = Object.freeze({
|
|
5
5
|
type: 'temporary', lifetime: 'task', persisted: true
|
|
6
6
|
});
|
|
7
7
|
|
|
@@ -3,6 +3,7 @@ import { createProjectNamed, projectByName } from './task-entry-project-mention.
|
|
|
3
3
|
import { PERSON_WRITER, UNNAMED_AGENT_WRITER } from './project-profile-authors.js';
|
|
4
4
|
import { sourceConsoleUrl } from './source-marker.js';
|
|
5
5
|
import { ApplicationError, ApplicationErrorCode } from '../app/application-error.js';
|
|
6
|
+
import { markdownLink } from '../text/markdown-link.js';
|
|
6
7
|
|
|
7
8
|
// A topic that keeps coming back over several days grows into its own project.
|
|
8
9
|
// With the setting topicPromotion 'auto' (rec#11 D-86, the default) Astro forms
|
|
@@ -13,11 +14,11 @@ import { ApplicationError, ApplicationErrorCode } from '../app/application-error
|
|
|
13
14
|
// sessions held in their temporary projects into it, and an undo moves back
|
|
14
15
|
// what nobody changed since (the Provider's topic_knowledge_migration).
|
|
15
16
|
export const PROPOSAL_MIN_CONVERSATIONS = 3;
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
const PROPOSAL_MIN_DAYS = 2;
|
|
18
|
+
const PROPOSAL_ASK_AGAIN_AFTER = 3;
|
|
18
19
|
const PROPOSAL_LIMIT = 20;
|
|
19
20
|
// Starts the purpose of a project Astro formed by itself; an undo archives only those.
|
|
20
|
-
const PROMOTED_PURPOSE = 'Astro 自动升级';
|
|
21
|
+
export const PROMOTED_PURPOSE = 'Astro 自动升级';
|
|
21
22
|
|
|
22
23
|
export function isProposable(stats) {
|
|
23
24
|
if (!stats || stats.count < PROPOSAL_MIN_CONVERSATIONS || (stats.days ?? 0) < PROPOSAL_MIN_DAYS) return false;
|
|
@@ -51,7 +52,7 @@ export async function topicOutcome(application, topic, { sourceApplication = 'ot
|
|
|
51
52
|
|
|
52
53
|
// rec#11 D-86: the topic is formed without asking. A project of that name is
|
|
53
54
|
// reused; two of that name fall back to asking, since only the person can pick.
|
|
54
|
-
|
|
55
|
+
async function promoteTopic(application, topic, { sourceApplication = 'other' } = {}) {
|
|
55
56
|
const [stats] = await topics(application, { topic, limit: 1 });
|
|
56
57
|
if (!isProposable(stats)) return null;
|
|
57
58
|
const existing = await projectByName(application, stats.topic);
|
|
@@ -62,7 +63,7 @@ export async function promoteTopic(application, topic, { sourceApplication = 'ot
|
|
|
62
63
|
promoted: formed.personal_project_id, topic: stats.topic })}`;
|
|
63
64
|
return { ...formed, status: 'promoted', proposed_by: 'employee.assistant',
|
|
64
65
|
notice: `FULI:话题「${stats.topic}」聊了 ${stats.count} 次、跨 ${stats.days} 天,已升级为项目「${stats.topic}」`
|
|
65
|
-
+ `${formed.knowledge_moved ? `,搬了 ${formed.knowledge_moved} 条知识` : ''}
|
|
66
|
+
+ `${formed.knowledge_moved ? `,搬了 ${formed.knowledge_moved} 条知识` : ''}。${markdownLink('改名、换上级或撤销', link)}`,
|
|
66
67
|
guidance: 'Add notice to the end of your reply, unchanged. The person can rename, move or undo it at its link.' };
|
|
67
68
|
}
|
|
68
69
|
|
|
@@ -13,6 +13,14 @@ import { sendJson } from './response.js';
|
|
|
13
13
|
// who made it, why, the relayed words and how to undo it. A request without the
|
|
14
14
|
// header is the person's and passes unchanged. handle() runs the API routes
|
|
15
15
|
// and answers whether one handled the request.
|
|
16
|
+
const CALLS = new WeakMap();
|
|
17
|
+
|
|
18
|
+
// The delegated call this gate accepted for a request; null for the person's own.
|
|
19
|
+
// A route that records who made a change reads it here, never from the header.
|
|
20
|
+
export function delegatedCall(request) {
|
|
21
|
+
return CALLS.get(request) ?? null;
|
|
22
|
+
}
|
|
23
|
+
|
|
16
24
|
export async function handleDelegatedRequest({ request, response, delegation, agentAccessEnabled, handle }) {
|
|
17
25
|
const header = request.headers[DELEGATION_HEADER];
|
|
18
26
|
if (header === undefined) return handle();
|
|
@@ -37,6 +45,7 @@ export async function handleDelegatedRequest({ request, response, delegation, ag
|
|
|
37
45
|
}
|
|
38
46
|
const id = randomUUID();
|
|
39
47
|
response.setHeader(DELEGATION_OPERATION_HEADER, id);
|
|
48
|
+
CALLS.set(request, call);
|
|
40
49
|
let status;
|
|
41
50
|
try {
|
|
42
51
|
if (!await handle()) sendJson(response, 404, { error: 'No console route answers this request', code: 'not_found' });
|
package/src/http/api-router.js
CHANGED
|
@@ -6,8 +6,13 @@ import { handleEmployeeApiRequest } from './employee-api-router.js';
|
|
|
6
6
|
import { handleAgentAppApiRequest } from './agent-app-api-router.js';
|
|
7
7
|
import { handleDataFormatApiRequest } from './data-format-api-router.js';
|
|
8
8
|
import { handleDoctorApiRequest } from './doctor-api-router.js';
|
|
9
|
+
import { handleNpmCopiesRequest } from './npm-copies-api-router.js';
|
|
10
|
+
import { handleCliPathRequest } from './cli-path-api-router.js';
|
|
11
|
+
import { handleWhatsNewRequest } from './whats-new-api-router.js';
|
|
12
|
+
import { handleDesktopClientRequest } from './desktop-client-api-router.js';
|
|
9
13
|
import { handleDiagnosticsApiRequest } from './diagnostics-api-router.js';
|
|
10
14
|
import { handleOldDataRequest } from './old-data-api-router.js';
|
|
15
|
+
import { handleOccupationPluginsRequest } from './occupation-plugins-api-router.js';
|
|
11
16
|
import { handleDebugTurnsRequest } from './debug-turns-api-router.js';
|
|
12
17
|
import { handleDiagnosticEventsRequest } from './diagnostic-events-api-router.js';
|
|
13
18
|
import { handlePersonProfileRequest } from './person-profile-api-router.js';
|
|
@@ -30,10 +35,13 @@ import { handleJudgmentApiRequest } from '../judgment/http.js';
|
|
|
30
35
|
import { KNOWLEDGE_EMBEDDING_OPERATION } from '../model-backends/config.js';
|
|
31
36
|
import { handleModelBackendApiRequest } from '../model-backends/http.js';
|
|
32
37
|
import { handleModelKeyRequest } from '../model-backends/keys-http.js';
|
|
38
|
+
import { handleModelListRequest } from '../model-backends/models-http.js';
|
|
33
39
|
import { TONBORG_OPERATIONS } from '../judgment/backend.js';
|
|
34
40
|
import { ASTRO_OPERATION } from '../graphiti/assistant-project-candidate.js';
|
|
35
41
|
import { DREAMING_OPERATION } from '../dreaming/run.js';
|
|
36
42
|
import { handleDreamingRequest } from './dreaming-api-router.js';
|
|
43
|
+
import { handleNoticesRequest } from './notices-api-router.js';
|
|
44
|
+
import { handleRetrospectivesRequest } from './retrospectives-api-router.js';
|
|
37
45
|
import { handleSemanticRequest } from './semantic-api-router.js';
|
|
38
46
|
import { handleRetrievalTermsRequest } from './retrieval-terms-api-router.js';
|
|
39
47
|
import { RETRIEVAL_TERMS_OPERATION } from '../retrieval-terms/terms-model.js';
|
|
@@ -68,6 +76,7 @@ export async function handleApiRequest({
|
|
|
68
76
|
const url = new URL(request.url, 'http://127.0.0.1');
|
|
69
77
|
if (await handlePeerApiRequest({ request, response, url, peer })) return true;
|
|
70
78
|
if (await handleModelKeyRequest({ request, response, url, secrets: modelSecrets })) return true;
|
|
79
|
+
if (await handleModelListRequest({ request, response, url, secrets: modelSecrets })) return true;
|
|
71
80
|
if (await handleClientLinksRequest({ request, response, url, clientLinks })) return true;
|
|
72
81
|
if (await handleAgentDelegationRequest({ request, response, url, delegation: agentDelegation })) return true;
|
|
73
82
|
if (await handleRoundtableApiRequest({ request, response, url, roundtable: app.roundtable })) return true;
|
|
@@ -201,9 +210,16 @@ export async function handleApiRequest({
|
|
|
201
210
|
// Outside the graph runtime lease: polling the doctor never wakes a
|
|
202
211
|
// sleeping provider (its graph format plan then reads as unavailable).
|
|
203
212
|
if (await handleDoctorApiRequest({ request, response, url, system })) return true;
|
|
213
|
+
if (await handleNpmCopiesRequest({ request, response, url, system })) return true;
|
|
214
|
+
if (await handleCliPathRequest({ request, response, url, system })) return true;
|
|
215
|
+
if (await handleWhatsNewRequest({ request, response, url, system })) return true;
|
|
216
|
+
if (handleDesktopClientRequest({ request, response, url, system })) return true;
|
|
204
217
|
if (await handleDiagnosticsApiRequest({ request, response, url, app, system })) return true;
|
|
205
218
|
if (await handleOldDataRequest({ request, response, url, shelf: app.oldData, restore: dataFormatMigrations?.restore ?? null })) return true;
|
|
219
|
+
if (await handleOccupationPluginsRequest({ request, response, url, app })) return true;
|
|
206
220
|
if (await handleDreamingRequest({ request, response, url, app, ownerReads: knowledgeOwnerReads })) return true;
|
|
221
|
+
if (await handleNoticesRequest({ request, response, url, app, delegation: agentDelegation, system })) return true;
|
|
222
|
+
if (await handleRetrospectivesRequest({ request, response, url, app })) return true;
|
|
207
223
|
if (await handleSemanticRequest({ request, response, url, app, indexer: app.semanticIndexer ?? null })) return true;
|
|
208
224
|
if (await handleRetrievalTermsRequest({ request, response, url, app, runner: app.retrievalTerms ?? null })) return true;
|
|
209
225
|
if (await handleDebugTurnsRequest({ request, response, url, debugTurns: system?.debugTurns ?? null, modelCapture: system?.modelCapture ?? null })) return true;
|