fuli-context 0.23.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +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-CErC3Paj.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-DFW3Ua0Z.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-BVIU7iFS.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-C7IVLf_v.js +24 -0
- package/dist/web/assets/index-DF0TcfPY.css +1 -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-1lwoVj6f.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 +7 -7
- 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 +38 -9
- package/packages/roundtable/src/roundtable/store.js +8 -5
- 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 +15 -2
- 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 +39 -12
- 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 +10 -1
- 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/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/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 +9 -0
- 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/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/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/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 +11 -0
- 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 +1 -1
- package/src/graphiti/task-entry-project-scope.js +4 -4
- 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 +4 -1
- 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-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 +4 -0
- 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/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,5 @@
|
|
|
1
|
+
import { setTimeout as delay } from 'node:timers/promises';
|
|
2
|
+
|
|
1
3
|
// Liveness and stop signals for local processes Fuli started or adopted.
|
|
2
4
|
|
|
3
5
|
export function isProcessAlive(pid) {
|
|
@@ -10,10 +12,21 @@ export function isProcessAlive(pid) {
|
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
// SIGTERM asks a POSIX process to stop; on Windows any signal ends it at once.
|
|
16
|
+
export function stopProcess(pid, signal = 'SIGTERM') {
|
|
14
17
|
try {
|
|
15
|
-
process.kill(pid,
|
|
18
|
+
process.kill(pid, signal);
|
|
16
19
|
} catch {
|
|
17
20
|
// Already stopped.
|
|
18
21
|
}
|
|
19
22
|
}
|
|
23
|
+
|
|
24
|
+
// Whether the process ended within timeoutMs.
|
|
25
|
+
export async function waitForExit(pid, timeoutMs, { isAlive = isProcessAlive, wait = delay, now = Date.now } = {}) {
|
|
26
|
+
const deadline = now() + timeoutMs;
|
|
27
|
+
while (now() < deadline) {
|
|
28
|
+
if (!isAlive(pid)) return true;
|
|
29
|
+
await wait(100);
|
|
30
|
+
}
|
|
31
|
+
return !isAlive(pid);
|
|
32
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { setTimeout as delay } from 'node:timers/promises';
|
|
2
|
+
|
|
3
|
+
import { createProcessInspector } from '../agent-services/process-identity.js';
|
|
4
|
+
import { checkLocalConsoleHealth } from './console-health.js';
|
|
5
|
+
import { isProcessAlive, stopProcess, waitForExit } from './processes.js';
|
|
6
|
+
|
|
7
|
+
// Ending the recorded FULI console when it has to go: a start replacing an
|
|
8
|
+
// older one, a stop, or a console that stays alive without answering (rec#94:
|
|
9
|
+
// after SIGTERM its listener closed but the process kept running, so every
|
|
10
|
+
// start refused and no session restarted it). A console that answers as
|
|
11
|
+
// itself is ended by its PID; one that does not answer only when the OS shows
|
|
12
|
+
// it running FULI's server with this data directory's runtime config, so a
|
|
13
|
+
// reused PID or another program is never ended.
|
|
14
|
+
|
|
15
|
+
export const CONSOLE_STOP_LIMITS = Object.freeze({
|
|
16
|
+
// A busy console may answer late; one shutting down exits meanwhile.
|
|
17
|
+
answerWaitMs: 10_000,
|
|
18
|
+
pollMs: 500,
|
|
19
|
+
// The console ends its own shutdown within 10 s (server/signal-shutdown.js).
|
|
20
|
+
termWaitMs: 12_000,
|
|
21
|
+
killWaitMs: 5_000
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// SIGTERM, then SIGKILL if it is still running after the console's own
|
|
25
|
+
// shutdown deadline. Whether it ended.
|
|
26
|
+
export async function terminateConsole(pid, overrides = {}) {
|
|
27
|
+
const deps = dependencies(overrides);
|
|
28
|
+
deps.signal(pid, 'SIGTERM');
|
|
29
|
+
if (await deps.waitForExit(pid, deps.limits.termWaitMs)) return true;
|
|
30
|
+
// Alive at every poll since the SIGTERM, so still the same process.
|
|
31
|
+
deps.signal(pid, 'SIGKILL');
|
|
32
|
+
return deps.waitForExit(pid, deps.limits.killWaitMs);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// A recorded console whose process is alive but did not answer:
|
|
36
|
+
// exited (gone, or its PID now runs another program) | answering | stopped
|
|
37
|
+
// | unverified (the OS could not show the process) | still_running.
|
|
38
|
+
export async function endUnresponsiveConsole(state, paths, overrides = {}) {
|
|
39
|
+
const deps = dependencies(overrides);
|
|
40
|
+
const deadline = deps.now() + deps.limits.answerWaitMs;
|
|
41
|
+
for (;;) {
|
|
42
|
+
if (!deps.isAlive(state.pid)) return 'exited';
|
|
43
|
+
if (await deps.health(state.url, state.pid, state.version)) return 'answering';
|
|
44
|
+
if (deps.now() >= deadline) break;
|
|
45
|
+
await deps.wait(deps.limits.pollMs);
|
|
46
|
+
}
|
|
47
|
+
const owner = await deps.owned(state.pid, paths);
|
|
48
|
+
if (owner === 'other' || !deps.isAlive(state.pid)) return 'exited';
|
|
49
|
+
if (owner !== 'owned') return 'unverified';
|
|
50
|
+
return await terminateConsole(state.pid, deps) ? 'stopped' : 'still_running';
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Whether the OS shows pid running this data directory's console, whose
|
|
54
|
+
// command line runs FULI's server.js with this data directory's runtime
|
|
55
|
+
// config (from any installed version): owned | other | unknown.
|
|
56
|
+
export async function consoleProcessOwned(pid, paths, {
|
|
57
|
+
inspect = pids => createProcessInspector().inspect(pids), platform = process.platform
|
|
58
|
+
} = {}) {
|
|
59
|
+
const configPath = paths?.graphRuntimeConfigPath;
|
|
60
|
+
if (typeof configPath !== 'string' || !configPath) return 'unknown';
|
|
61
|
+
const found = await inspect([pid]);
|
|
62
|
+
if (!found) return 'unknown';
|
|
63
|
+
if (!found.has(pid)) return 'other';
|
|
64
|
+
const commandLine = found.get(pid).commandLine;
|
|
65
|
+
if (typeof commandLine !== 'string' || !commandLine) return 'unknown';
|
|
66
|
+
// Windows paths compare without case and separator differences.
|
|
67
|
+
const fold = platform === 'win32' ? value => value.replaceAll('/', '\\').toLowerCase() : value => value;
|
|
68
|
+
const line = fold(commandLine);
|
|
69
|
+
return /server\.js\b/.test(line) && line.includes(fold(configPath)) ? 'owned' : 'other';
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function dependencies(overrides) {
|
|
73
|
+
const deps = { isAlive: isProcessAlive, health: checkLocalConsoleHealth, owned: consoleProcessOwned,
|
|
74
|
+
signal: stopProcess, wait: delay, now: Date.now, limits: CONSOLE_STOP_LIMITS, ...overrides };
|
|
75
|
+
deps.waitForExit ??= (pid, timeoutMs) => waitForExit(pid, timeoutMs, { isAlive: deps.isAlive, wait: deps.wait, now: deps.now });
|
|
76
|
+
return deps;
|
|
77
|
+
}
|
|
@@ -21,6 +21,7 @@ import { createCommonKnowledgePreviewTokens } from './common-knowledge-preview-t
|
|
|
21
21
|
import { auditLifecycleTool } from './lifecycle-audit.js';
|
|
22
22
|
import { recordToolFailure } from '../diagnostics/failure-records.js';
|
|
23
23
|
import { registerFuliContextResources } from './context-resources.js';
|
|
24
|
+
import { registerFlaMenuPrompts } from './fla-menu-prompts.js';
|
|
24
25
|
import { annotationsFor } from './tool-annotations.js';
|
|
25
26
|
import { isTestOnlyToolName, testToolsEnabled } from '../app/test-tools.js';
|
|
26
27
|
import {
|
|
@@ -140,6 +141,8 @@ export function createMcpServer(
|
|
|
140
141
|
registerResources = true,
|
|
141
142
|
workerTaskContext = null,
|
|
142
143
|
nativeRequestContext = null,
|
|
144
|
+
// The person's FLAs as prompts for the client's / menu (fla-menu-prompts.js); a client session only.
|
|
145
|
+
flaMenu = false,
|
|
143
146
|
// Receives the calling session of each call, when one is known (process-registry.js).
|
|
144
147
|
onSession = () => {}
|
|
145
148
|
} = {}
|
|
@@ -182,6 +185,7 @@ export function createMcpServer(
|
|
|
182
185
|
for (const tool of tools.values()) registerTool(server, tool, isChatProfile);
|
|
183
186
|
if (!tools.size) registerEmptyToolList(server);
|
|
184
187
|
if (registerResources && !workerTaskContext) registerFuliContextResources(server, app, { withRuntimeLease });
|
|
188
|
+
if (flaMenu && !workerTaskContext) registerFlaMenuPrompts(server, app, { sourceApplication: authoritativeSourceApplication, withRuntimeLease });
|
|
185
189
|
const onDemandTools = isChatProfile ? createToolMap(app,
|
|
186
190
|
projectActionPreviews, nativeThreadId, effectiveHostSessionId,
|
|
187
191
|
clock, authoritativeSourceApplication, withRuntimeLease, null, prepareToolInput, env, null, onSession) : null;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ErrorCode, GetPromptRequestSchema, ListPromptsRequestSchema, McpError } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
|
|
3
|
+
import { flaMenuSettings, readFlaMenuEntries } from '../graphiti/fla-menu-reader.js';
|
|
4
|
+
|
|
5
|
+
// The person's FLAs as MCP prompts (11-08), which Claude Code, OpenCode and
|
|
6
|
+
// Cursor list in their / menu: typing /fla shows each as
|
|
7
|
+
// "name — project — role", and choosing one sends `#FLA <name>` (fla-menu.js).
|
|
8
|
+
// The list is read when the client asks for it; while the client holds one,
|
|
9
|
+
// the setting and language are checked every few seconds and the roster
|
|
10
|
+
// every minute, and a change tells the client to read the list again. Off
|
|
11
|
+
// in the settings, the list is empty. Nothing is written into the client.
|
|
12
|
+
// The client's own requests hold a runtime lease; the background check does
|
|
13
|
+
// not, so an idle graph runtime is never kept awake by it (it just fails).
|
|
14
|
+
|
|
15
|
+
const SETTINGS_EVERY_MS = 5_000;
|
|
16
|
+
const ROSTER_EVERY = 12;
|
|
17
|
+
|
|
18
|
+
export function registerFlaMenuPrompts(server, application, { sourceApplication, settingsEveryMs = SETTINGS_EVERY_MS,
|
|
19
|
+
rosterEvery = ROSTER_EVERY, withRuntimeLease = (_owner, operation) => operation(), onError = () => {} } = {}) {
|
|
20
|
+
const settings = () => flaMenuSettings(application);
|
|
21
|
+
const read = () => readFlaMenuEntries(application, sourceApplication);
|
|
22
|
+
let shown = null;
|
|
23
|
+
let seenSettings = null;
|
|
24
|
+
// Only what the client shows counts: a new order alone announces nothing.
|
|
25
|
+
const remember = entries => {
|
|
26
|
+
shown = JSON.stringify([...entries].sort((a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0)));
|
|
27
|
+
seenSettings = JSON.stringify(settings());
|
|
28
|
+
return entries;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
server.server.registerCapabilities({ prompts: { listChanged: true } });
|
|
32
|
+
// An unreadable roster lists nothing for now; the next check announces the real list.
|
|
33
|
+
server.server.setRequestHandler(ListPromptsRequestSchema, async () => ({
|
|
34
|
+
prompts: remember(await withRuntimeLease('mcp-prompt:fla-menu', read).catch(error => { onError(error); return []; }))
|
|
35
|
+
.map(({ name, title, description }) => ({ name, title, description }))
|
|
36
|
+
}));
|
|
37
|
+
server.server.setRequestHandler(GetPromptRequestSchema, async request => {
|
|
38
|
+
const entry = (await withRuntimeLease('mcp-prompt:fla-menu', read)).find(item => item.name === request.params.name);
|
|
39
|
+
if (!entry) throw new McpError(ErrorCode.InvalidParams, `No FLA in the /fla menu is called ${request.params.name}`);
|
|
40
|
+
return { description: entry.description, messages: [{ role: 'user', content: { type: 'text', text: entry.text } }] };
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
let tick = 0;
|
|
44
|
+
let checking = false;
|
|
45
|
+
const timer = setInterval(async () => {
|
|
46
|
+
if (shown === null || checking) return;
|
|
47
|
+
if (!server.isConnected()) { clearInterval(timer); return; }
|
|
48
|
+
tick += 1;
|
|
49
|
+
if (JSON.stringify(settings()) === seenSettings && tick % rosterEvery) return;
|
|
50
|
+
checking = true;
|
|
51
|
+
try {
|
|
52
|
+
const previous = shown;
|
|
53
|
+
remember(await read());
|
|
54
|
+
if (shown !== previous) await server.server.sendPromptListChanged();
|
|
55
|
+
} catch (error) { onError(error); }
|
|
56
|
+
finally { checking = false; }
|
|
57
|
+
}, settingsEveryMs);
|
|
58
|
+
timer.unref?.();
|
|
59
|
+
return () => clearInterval(timer);
|
|
60
|
+
}
|
package/src/mcp/runtime.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { dirname } from 'node:path';
|
|
2
|
+
|
|
1
3
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
2
4
|
|
|
3
5
|
import {
|
|
@@ -12,6 +14,7 @@ import { nativeMcpRequestContextResolver } from '../agents/native-mcp-context.js
|
|
|
12
14
|
import { FULI_VERSION } from '../package-metadata.js';
|
|
13
15
|
import { registerMcpProcess } from './process-registry.js';
|
|
14
16
|
import { MCP_SESSION_STARTED_ENV } from './stdio-relay.js';
|
|
17
|
+
import { superviseConsole } from '../local-runtime/console-autostart.js';
|
|
15
18
|
|
|
16
19
|
export async function runStdio({ runtimeConfigPath, sourceApplication, toolNames = null, toolProfile = 'full', worker = null }) {
|
|
17
20
|
const app = openFederatedGraphApplication({ runtimeConfigPath });
|
|
@@ -26,6 +29,7 @@ export async function runStdio({ runtimeConfigPath, sourceApplication, toolNames
|
|
|
26
29
|
nativeRequestContext: nativeMcpRequestContextResolver(sourceApplication),
|
|
27
30
|
toolNames,
|
|
28
31
|
toolProfile,
|
|
32
|
+
flaMenu: true,
|
|
29
33
|
withRuntimeLease: leaseClient.withGraphLease,
|
|
30
34
|
onSession: sessionId => registration?.recordSession(sessionId)
|
|
31
35
|
});
|
|
@@ -34,13 +38,17 @@ export async function runStdio({ runtimeConfigPath, sourceApplication, toolNames
|
|
|
34
38
|
// Lets a later hook see that this client still runs this version after an
|
|
35
39
|
// update, and the doctor offer to open the sessions this server answered.
|
|
36
40
|
const registration = worker === null ? registerMcpProcess(runtimeConfigPath, { sourceApplication, version: FULI_VERSION, sessionStartedAt: process.env[MCP_SESSION_STARTED_ENV] }) : null;
|
|
41
|
+
// A client session keeps the installed console running (rec#94); a worker's
|
|
42
|
+
// process belongs to a session that already does.
|
|
43
|
+
const stopSupervising = worker === null && runtimeConfigPath
|
|
44
|
+
? superviseConsole({ dataDir: dirname(runtimeConfigPath) }) : () => {};
|
|
37
45
|
const close = createCloseOnce({
|
|
38
46
|
closeServer: () => server.close(),
|
|
39
47
|
closeApplication: async () => {
|
|
40
48
|
await leaseClient.close();
|
|
41
49
|
return app.close();
|
|
42
50
|
},
|
|
43
|
-
afterClose: () => { registration?.unregister(); removeHandlers(signalHandlers); }
|
|
51
|
+
afterClose: () => { stopSupervising(); registration?.unregister(); removeHandlers(signalHandlers); }
|
|
44
52
|
});
|
|
45
53
|
const quietClose = createQuietCloser(close, () => { process.exitCode = 1; });
|
|
46
54
|
|
|
@@ -60,7 +68,7 @@ export async function runStdio({ runtimeConfigPath, sourceApplication, toolNames
|
|
|
60
68
|
}
|
|
61
69
|
}
|
|
62
70
|
|
|
63
|
-
|
|
71
|
+
function createServerOrClose(app, factory = createMcpServer, options) {
|
|
64
72
|
try {
|
|
65
73
|
return factory(app, options);
|
|
66
74
|
} catch (error) {
|
|
@@ -89,7 +97,7 @@ export function createCloseOnce({ closeServer, closeApplication, afterClose = ()
|
|
|
89
97
|
};
|
|
90
98
|
}
|
|
91
99
|
|
|
92
|
-
|
|
100
|
+
function createQuietCloser(close, onFailure = () => {}) {
|
|
93
101
|
return () => {
|
|
94
102
|
close().catch(onFailure);
|
|
95
103
|
};
|
package/src/mcp/session-id.js
CHANGED
|
@@ -36,9 +36,10 @@ const PROJECT_AGENT_SOURCE_TOOLS = new Set([
|
|
|
36
36
|
'checkpoint_project_agent_memory',
|
|
37
37
|
'dismiss_project_agent',
|
|
38
38
|
// The task token is resolved for this client; its session is the conversation recorded.
|
|
39
|
-
'register_standing_assignment', 'report_agent_service',
|
|
39
|
+
'register_standing_assignment', 'report_agent_service', 'record_fla_lesson',
|
|
40
40
|
'propose_agent_workflow', 'list_agent_workflows', 'read_agent_workflow', 'record_agent_workflow_run',
|
|
41
|
-
'pause_work_surfaces', 'resume_work_surfaces', 'run_delegated_action',
|
|
41
|
+
'pause_work_surfaces', 'resume_work_surfaces', 'run_delegated_action', 'list_tonborg_questions', 'answer_tonborg_question',
|
|
42
|
+
'list_reply_echoes',
|
|
42
43
|
'record_project_agent_task_activity',
|
|
43
44
|
'preflight_executor',
|
|
44
45
|
'report_executor_health',
|
|
@@ -11,6 +11,9 @@ const READ_TOOLS = new Set([
|
|
|
11
11
|
'list_work_surfaces',
|
|
12
12
|
'read_diagnostic_events',
|
|
13
13
|
'read_old_data',
|
|
14
|
+
'list_tonborg_questions',
|
|
15
|
+
'list_reply_echoes',
|
|
16
|
+
'read_occupation_kit',
|
|
14
17
|
'list_preference_conflicts',
|
|
15
18
|
'list_agent_interfaces',
|
|
16
19
|
'get_capture_policy',
|
|
@@ -69,9 +72,9 @@ const READ_TOOLS = new Set([
|
|
|
69
72
|
const WRITE_TOOLS = new Set([
|
|
70
73
|
'agent_chat', 'group_discussion',
|
|
71
74
|
'review_with_tonborg', 'assess_agent_action', 'assess_task_completion', 'pin_agent', 'role_work',
|
|
72
|
-
'control_project_agent_task_run', 'register_standing_assignment', 'report_agent_service',
|
|
75
|
+
'control_project_agent_task_run', 'register_standing_assignment', 'report_agent_service', 'record_fla_lesson',
|
|
73
76
|
'propose_agent_workflow', 'record_agent_workflow_run',
|
|
74
|
-
'pause_work_surfaces', 'resume_work_surfaces', 'run_delegated_action',
|
|
77
|
+
'pause_work_surfaces', 'resume_work_surfaces', 'run_delegated_action', 'answer_tonborg_question',
|
|
75
78
|
'message_agent', 'reply_agent_message', 'cancel_agent_message',
|
|
76
79
|
'record_agent_verification',
|
|
77
80
|
'request_agent_loan', 'decide_agent_loan',
|
package/src/mcp/tool-profiles.js
CHANGED
|
@@ -11,7 +11,7 @@ const CHAT_TOOLS = Object.freeze([
|
|
|
11
11
|
'checkpoint_task_knowledge',
|
|
12
12
|
]);
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
const MCP_TOOL_PROFILES = Object.freeze({ full: null, chat: CHAT_TOOLS });
|
|
15
15
|
|
|
16
16
|
// Returns the allow-listed tool names, or null for every tool.
|
|
17
17
|
export function toolNamesForProfile(profile = 'full') {
|
package/src/mcp/tool-result.js
CHANGED
|
@@ -85,7 +85,9 @@ export function successToolResult(value, { limitBytes = RESULT_LIMIT_BYTES, item
|
|
|
85
85
|
if (state.truncated) throw new ApplicationError('validation', 'Cannot deliver the complete required Agent receipt');
|
|
86
86
|
}
|
|
87
87
|
if (preserveHumanInteraction && value?.human_interaction) {
|
|
88
|
-
|
|
88
|
+
// A question is delivered whole or not at all; its producers bound its choices
|
|
89
|
+
// (at most four), and a batch's source lists every decision it asks about (rec#96).
|
|
90
|
+
const nativeState = { truncated: false, itemLimit: 1000 };
|
|
89
91
|
required.human_interaction = sanitize(value.human_interaction, nativeState);
|
|
90
92
|
if (nativeState.truncated) throw new ApplicationError('validation', 'Cannot deliver the complete human question');
|
|
91
93
|
}
|
|
@@ -64,13 +64,13 @@ export const anthropicMessagesAdapter = Object.freeze({
|
|
|
64
64
|
state.stop = event.delta?.stop_reason ?? state.stop;
|
|
65
65
|
absorbUsage(counts, event.usage, { withOutput: true });
|
|
66
66
|
}
|
|
67
|
-
if (state.text.length > MAX_REPLY_CHARS) return attemptFailure(modelFailure('configuration', '
|
|
67
|
+
if (state.text.length > MAX_REPLY_CHARS) return attemptFailure(modelFailure('configuration', 'reply_too_long'), progress());
|
|
68
68
|
}
|
|
69
69
|
} catch (error) {
|
|
70
70
|
return attemptFailure(readFailure(error), progress());
|
|
71
71
|
}
|
|
72
72
|
if (state.stop === 'refusal') return attemptFailure(modelFailure('refusal', 'model_refusal'), progress());
|
|
73
|
-
if (state.stop === 'max_tokens') return attemptFailure(modelFailure('configuration', '
|
|
73
|
+
if (state.stop === 'max_tokens') return attemptFailure(modelFailure('configuration', 'output_token_limit'), progress());
|
|
74
74
|
return { ok: true, reply: state.text, ...progress() };
|
|
75
75
|
}
|
|
76
76
|
});
|
|
@@ -40,7 +40,7 @@ export async function observeLocalBuild({ connection, signal, fetchImpl }) {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
function localTagsUrl(endpoint) {
|
|
43
|
+
export function localTagsUrl(endpoint) {
|
|
44
44
|
const url = new URL(endpoint);
|
|
45
45
|
if (url.protocol !== 'http:' || !LOOPBACK_HOSTS.has(url.hostname) || !OLLAMA_API_BASE.test(url.pathname)) return null;
|
|
46
46
|
url.pathname = url.pathname.replace(OLLAMA_API_BASE, '/api/tags');
|
|
@@ -59,7 +59,7 @@ export const openAiChatAdapter = Object.freeze({
|
|
|
59
59
|
}
|
|
60
60
|
if (state.refusal) return attemptFailure(modelFailure('refusal', 'model_refusal'), state);
|
|
61
61
|
if (state.finish === 'content_filter') return attemptFailure(modelFailure('refusal', 'content_policy'), state);
|
|
62
|
-
if (state.finish === 'length') return attemptFailure(modelFailure('configuration', '
|
|
62
|
+
if (state.finish === 'length') return attemptFailure(modelFailure('configuration', 'output_token_limit'), state);
|
|
63
63
|
return { ok: true, reply: state.text, usage: state.usage, actualModel: state.actualModel };
|
|
64
64
|
}
|
|
65
65
|
});
|
|
@@ -79,5 +79,5 @@ function absorb(state, chunk, part) {
|
|
|
79
79
|
if (typeof content.refusal === 'string') state.refusal += content.refusal;
|
|
80
80
|
state.finish = choice.finish_reason ?? state.finish;
|
|
81
81
|
}
|
|
82
|
-
return state.text.length > MAX_REPLY_CHARS ? modelFailure('configuration', '
|
|
82
|
+
return state.text.length > MAX_REPLY_CHARS ? modelFailure('configuration', 'reply_too_long') : null;
|
|
83
83
|
}
|
|
@@ -11,6 +11,11 @@ const COST_PRECISION = 1e10;
|
|
|
11
11
|
// What a request still has to name when no limit is set: a provider needs an
|
|
12
12
|
// output size, a hung connection needs an end, and usage is read over a period.
|
|
13
13
|
const DEFAULT_OUTPUT_TOKENS = 16_000;
|
|
14
|
+
// A reasoning model's hidden reasoning counts against the same output limit:
|
|
15
|
+
// gpt-5.6 behind an Anthropic Messages gateway spent about 14k of 16k tokens
|
|
16
|
+
// reasoning over one Dreaming batch. Without a limit the person set, an
|
|
17
|
+
// attempt stopped at the default is tried once more with this much room.
|
|
18
|
+
const UNSET_OUTPUT_ROOM_TOKENS = 64_000;
|
|
14
19
|
const DEFAULT_TIMEOUT_MS = 600_000;
|
|
15
20
|
const DEFAULT_WINDOW_HOURS = 24;
|
|
16
21
|
|
|
@@ -19,10 +24,14 @@ export function estimateTokens(value) {
|
|
|
19
24
|
}
|
|
20
25
|
|
|
21
26
|
// A request may tighten the role's per-call limits, never widen them.
|
|
27
|
+
// outputRoomTokens: the most a retry stopped at the output limit may ask for.
|
|
22
28
|
export function callLimits(budget, requested = {}) {
|
|
29
|
+
const maxOutputTokens = Math.min(budget.maxOutputTokens ?? DEFAULT_OUTPUT_TOKENS, requested.maxOutputTokens ?? Infinity);
|
|
30
|
+
const unset = budget.maxOutputTokens == null && requested.maxOutputTokens == null;
|
|
23
31
|
return {
|
|
24
32
|
maxInputTokens: budget.maxInputTokens ?? Infinity,
|
|
25
|
-
maxOutputTokens
|
|
33
|
+
maxOutputTokens,
|
|
34
|
+
outputRoomTokens: unset ? UNSET_OUTPUT_ROOM_TOKENS : maxOutputTokens,
|
|
26
35
|
timeoutMs: Math.min(budget.timeoutMs ?? DEFAULT_TIMEOUT_MS, requested.timeoutMs ?? Infinity)
|
|
27
36
|
};
|
|
28
37
|
}
|
|
@@ -18,7 +18,7 @@ export const MODEL_BACKEND_ROLES = Object.freeze(['assistant', 'bole', 'jefa', '
|
|
|
18
18
|
export const SEMANTIC_ROLE = 'semantic';
|
|
19
19
|
export const KNOWLEDGE_EMBEDDING_OPERATION = 'knowledge_embedding';
|
|
20
20
|
const EMBEDDING_PROTOCOL = 'openai_embeddings';
|
|
21
|
-
const MODEL_BACKEND_PROTOCOLS = Object.freeze(['openai_chat', 'anthropic_messages', 'typesafe_systemone', EMBEDDING_PROTOCOL]);
|
|
21
|
+
export const MODEL_BACKEND_PROTOCOLS = Object.freeze(['openai_chat', 'anthropic_messages', 'typesafe_systemone', EMBEDDING_PROTOCOL]);
|
|
22
22
|
export const OPERATION_PATTERN = /^[a-z][a-z0-9_.-]{0,63}$/;
|
|
23
23
|
|
|
24
24
|
const CONFIG_VERSION = 1;
|
|
@@ -143,7 +143,7 @@ function normalizeHeaders(value, label) {
|
|
|
143
143
|
return Object.fromEntries(entries);
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
function endpointUrl(value, label) {
|
|
146
|
+
export function endpointUrl(value, label) {
|
|
147
147
|
const text = requiredString(value, label, 2048);
|
|
148
148
|
let url;
|
|
149
149
|
try {
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { localTagsUrl } from './adapters/ollama-local-build.js';
|
|
2
|
+
import { isJsonResponse, readFailure, readJsonBody } from './adapters/exchange.js';
|
|
3
|
+
import { httpFailure, transportFailure } from './failures.js';
|
|
4
|
+
import { modelFetch } from './model-fetch.js';
|
|
5
|
+
import { fetchWithoutRedirect, RedirectRefusedError } from './no-redirect-fetch.js';
|
|
6
|
+
|
|
7
|
+
// Which models an endpoint lists, for the model field of the settings dialog.
|
|
8
|
+
// One GET, no project content, never a redirect, bounded in time. An
|
|
9
|
+
// OpenAI-compatible endpoint answers GET {endpoint}/models with data[].id; a
|
|
10
|
+
// loopback Ollama that does not also answers GET /api/tags with models[].name.
|
|
11
|
+
// Anthropic answers GET {endpoint}/models with data[].id and needs the key.
|
|
12
|
+
// The key goes only into the request header: no answer or error carries it.
|
|
13
|
+
|
|
14
|
+
const LIST_TIMEOUT_MS = 5000;
|
|
15
|
+
const MAX_MODELS = 1000;
|
|
16
|
+
const MAX_MODEL_ID = 200;
|
|
17
|
+
const ANTHROPIC_VERSION = '2023-06-01';
|
|
18
|
+
const OPENAI_COMPATIBLE = new Set(['openai_chat', 'openai_embeddings']);
|
|
19
|
+
|
|
20
|
+
export class ModelListError extends Error {
|
|
21
|
+
constructor(code) {
|
|
22
|
+
super(`The endpoint's models could not be listed (${code})`);
|
|
23
|
+
this.name = 'ModelListError';
|
|
24
|
+
this.code = code;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// { protocol, endpoint } validated by the caller; secret: the key or null.
|
|
29
|
+
export async function listEndpointModels({ protocol, endpoint, secret, fetchImpl = modelFetch, timeoutMs = LIST_TIMEOUT_MS }) {
|
|
30
|
+
const signal = AbortSignal.timeout(timeoutMs);
|
|
31
|
+
if (protocol === 'anthropic_messages') {
|
|
32
|
+
if (!secret) throw new ModelListError('missing_key');
|
|
33
|
+
const answer = await readList(fetchImpl, `${endpoint}/models`, { 'x-api-key': secret, 'anthropic-version': ANTHROPIC_VERSION }, signal);
|
|
34
|
+
return { models: modelIds(answer?.data, 'id'), source: 'models' };
|
|
35
|
+
}
|
|
36
|
+
if (!OPENAI_COMPATIBLE.has(protocol)) throw new ModelListError('listing_unsupported');
|
|
37
|
+
const headers = secret ? { authorization: `Bearer ${secret}` } : {};
|
|
38
|
+
const tagsUrl = localTagsUrl(endpoint);
|
|
39
|
+
try {
|
|
40
|
+
const answer = await readList(fetchImpl, `${endpoint}/models`, headers, signal);
|
|
41
|
+
return { models: modelIds(answer?.data, 'id'), source: 'models' };
|
|
42
|
+
} catch (error) {
|
|
43
|
+
// A loopback Ollama also lists its tags; a redirect or timeout stays the
|
|
44
|
+
// answer, and so does the first failure when the tags fail too.
|
|
45
|
+
if (!tagsUrl || !(error instanceof ModelListError) || ['endpoint_redirected', 'timeout'].includes(error.code)) throw error;
|
|
46
|
+
return ollamaTags(fetchImpl, tagsUrl, signal).catch(() => { throw error; });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async function ollamaTags(fetchImpl, tagsUrl, signal) {
|
|
51
|
+
const answer = await readList(fetchImpl, tagsUrl, {}, signal);
|
|
52
|
+
return { models: modelIds(answer?.models, 'name'), source: 'ollama_tags' };
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async function readList(fetchImpl, url, headers, signal) {
|
|
56
|
+
let response;
|
|
57
|
+
try {
|
|
58
|
+
response = await fetchWithoutRedirect(fetchImpl, url, { method: 'GET', headers: { accept: 'application/json', ...headers }, signal });
|
|
59
|
+
} catch (error) {
|
|
60
|
+
if (error instanceof RedirectRefusedError) throw new ModelListError('endpoint_redirected');
|
|
61
|
+
throw new ModelListError(transportFailure(signal.aborted ? signal.reason : error).reason);
|
|
62
|
+
}
|
|
63
|
+
if (!response.ok || !isJsonResponse(response)) {
|
|
64
|
+
await response.body?.cancel();
|
|
65
|
+
throw new ModelListError(response.ok ? 'invalid_response' : httpFailure(response.status).reason);
|
|
66
|
+
}
|
|
67
|
+
try {
|
|
68
|
+
return await readJsonBody(response);
|
|
69
|
+
} catch (error) {
|
|
70
|
+
throw new ModelListError(readFailure(signal.aborted ? signal.reason : error).reason);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Plain, unique, sorted ids; an answer without the expected list is not a model list.
|
|
75
|
+
function modelIds(entries, field) {
|
|
76
|
+
if (!Array.isArray(entries)) throw new ModelListError('invalid_response');
|
|
77
|
+
const ids = entries.map(entry => entry?.[field])
|
|
78
|
+
.filter(id => typeof id === 'string' && id.length > 0 && id.length <= MAX_MODEL_ID && !/[\u0000-\u001f\u007f]/.test(id));
|
|
79
|
+
return [...new Set(ids)].sort((left, right) => left.localeCompare(right)).slice(0, MAX_MODELS).map(id => ({ id }));
|
|
80
|
+
}
|
|
@@ -117,7 +117,9 @@ export async function handleModelBackendApiRequest({
|
|
|
117
117
|
sendJson(response, 200, { ...settings, roles: settings.roles.map(role => ({ ...role,
|
|
118
118
|
trust: trustView(role, settings.connections, { automaticOperations, modelTrust, readEvaluation }),
|
|
119
119
|
localBuild: modelBackends.localBuild(role.role, role.connection?.id ?? null,
|
|
120
|
-
role.connection ? settings.connections[role.connection.id] : null)
|
|
120
|
+
role.connection ? settings.connections[role.connection.id] : null),
|
|
121
|
+
health: modelBackends.health?.(role.role, role.connection?.id ?? null,
|
|
122
|
+
role.connection ? settings.connections[role.connection.id] : null) ?? null })),
|
|
121
123
|
operations, workPackages: roleWork?.summary().packages ?? [], ...(saved ? { history: saved.history } : {}) });
|
|
122
124
|
return true;
|
|
123
125
|
}
|
|
@@ -12,7 +12,8 @@ import { secretReference } from './secret-store.js';
|
|
|
12
12
|
// (rec#11 D-70). No MCP or Agent tool reaches it.
|
|
13
13
|
const KEYS_ROUTE = '/api/model-backends/keys';
|
|
14
14
|
const KEY_ROUTE = /^\/api\/model-backends\/keys\/([^/]+)$/;
|
|
15
|
-
|
|
15
|
+
// endpoint: the address the key is for; the store ties the key to its origin.
|
|
16
|
+
const KEY_BODY = z.object({ key: z.string(), endpoint: z.string() }).strict();
|
|
16
17
|
|
|
17
18
|
export async function handleModelKeyRequest({ request, response, url, secrets }) {
|
|
18
19
|
const reference = KEY_ROUTE.exec(url.pathname)?.[1] ?? null;
|
|
@@ -29,13 +30,13 @@ export async function handleModelKeyRequest({ request, response, url, secrets })
|
|
|
29
30
|
}
|
|
30
31
|
try {
|
|
31
32
|
if (reference === null) {
|
|
32
|
-
sendJson(response, 200, { saved: secrets.references() });
|
|
33
|
+
sendJson(response, 200, { saved: secrets.references(), origins: secrets.origins() });
|
|
33
34
|
return true;
|
|
34
35
|
}
|
|
35
36
|
secretReference(reference, 'Key reference');
|
|
36
37
|
const parsed = KEY_BODY.safeParse(await readJson(request));
|
|
37
|
-
if (!parsed.success) throw new TypeError('Send the key as { "key": "…" }');
|
|
38
|
-
await secrets.set(reference, parsed.data.key);
|
|
38
|
+
if (!parsed.success) throw new TypeError('Send the key as { "key": "…", "endpoint": "https://…" }');
|
|
39
|
+
await secrets.set(reference, parsed.data.key, parsed.data.endpoint);
|
|
39
40
|
sendJson(response, 200, { reference, saved: true });
|
|
40
41
|
} catch (error) {
|
|
41
42
|
// The store's own refusals name the reference, never the key.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
import { refuseRemoteDecision } from '../http/request-policy.js';
|
|
4
|
+
import { readJson, sendJson } from '../http/response.js';
|
|
5
|
+
import { endpointUrl, MODEL_BACKEND_PROTOCOLS } from './config.js';
|
|
6
|
+
import { listEndpointModels, ModelListError } from './endpoint-models.js';
|
|
7
|
+
import { secretReference } from './secret-store.js';
|
|
8
|
+
|
|
9
|
+
// The model field of the settings dialog lists what the typed endpoint
|
|
10
|
+
// offers, before anything is saved (endpoint-models.js). It only reads, but it
|
|
11
|
+
// sends the saved key named by secretRef to that endpoint, so like 测试连接 it
|
|
12
|
+
// is loopback only; no MCP or Agent tool reaches it. The key is read from the
|
|
13
|
+
// store here and never answered, logged or put in a URL.
|
|
14
|
+
const MODELS_ROUTE = '/api/model-backends/models';
|
|
15
|
+
const LIST_BODY = z.object({
|
|
16
|
+
protocol: z.enum(MODEL_BACKEND_PROTOCOLS),
|
|
17
|
+
endpoint: z.string(),
|
|
18
|
+
secretRef: z.string().nullable().optional()
|
|
19
|
+
}).strict();
|
|
20
|
+
// Not the endpoint's answer: no saved key, or a protocol that lists nothing.
|
|
21
|
+
const LOCAL_CODES = new Set(['missing_key', 'listing_unsupported']);
|
|
22
|
+
|
|
23
|
+
export async function handleModelListRequest({ request, response, url, secrets, fetchImpl, timeoutMs }) {
|
|
24
|
+
if (url.pathname !== MODELS_ROUTE) return false;
|
|
25
|
+
response.setHeader('Cache-Control', 'no-store');
|
|
26
|
+
if (request.method !== 'POST') {
|
|
27
|
+
sendJson(response, 405, { error: 'Method not allowed' });
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
if (refuseRemoteDecision(request, response, 'A model endpoint is listed only on this computer')) return true;
|
|
31
|
+
const parsed = LIST_BODY.safeParse(await readJson(request));
|
|
32
|
+
if (!parsed.success) throw new TypeError('Send { "protocol", "endpoint", "secretRef"? }');
|
|
33
|
+
const { protocol } = parsed.data;
|
|
34
|
+
const endpoint = endpointUrl(parsed.data.endpoint, 'endpoint');
|
|
35
|
+
const reference = parsed.data.secretRef ? secretReference(parsed.data.secretRef, 'secretRef') : null;
|
|
36
|
+
if (reference && !secrets) {
|
|
37
|
+
sendJson(response, 503, { error: 'Model keys need a local FULI installation' });
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
try {
|
|
41
|
+
// A saved key goes only to the origin it was saved for; another typed host is refused first.
|
|
42
|
+
const secret = reference ? await secrets.read(reference, endpoint) : null;
|
|
43
|
+
if (reference && !secret) throw new ModelListError('missing_key');
|
|
44
|
+
sendJson(response, 200, await listEndpointModels({ protocol, endpoint, secret, fetchImpl, timeoutMs }));
|
|
45
|
+
} catch (error) {
|
|
46
|
+
// The store's own refusals name the reference, never the key.
|
|
47
|
+
if (typeof error?.code === 'string' && error.code.startsWith('secret_')) {
|
|
48
|
+
sendJson(response, 409, { error: error.message, code: error.code });
|
|
49
|
+
} else if (error instanceof ModelListError) {
|
|
50
|
+
sendJson(response, LOCAL_CODES.has(error.code) ? 409 : 502, { error: error.message, code: error.code });
|
|
51
|
+
} else throw error;
|
|
52
|
+
}
|
|
53
|
+
return true;
|
|
54
|
+
}
|