fuli-context 0.23.0-beta.8 → 0.23.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/dist/web/assets/{AboutPage-BHbNacTY.js → AboutPage-S8QFfzpA.js} +1 -1
- package/dist/web/assets/AboutSectionHeading-B5CzH4Zs.js +1 -0
- package/dist/web/assets/AboutSectionHeading-DjXpIV27.css +1 -0
- package/dist/web/assets/AgentAppsPage-BYXraPFM.js +1 -0
- package/dist/web/assets/{AgentHand-BGzGOjzl.js → AgentHand-BGGdVdd9.js} +1 -1
- package/dist/web/assets/AgentManagement-Bza8k5ra.js +7 -0
- package/dist/web/assets/AgentManagement-CeF4mjtg.css +1 -0
- package/dist/web/assets/AgentMentionCopy-C72hY2QL.js +1 -0
- package/dist/web/assets/{AgentName-C5HzUHaA.js → AgentName-CUjBNQ8j.js} +1 -1
- package/dist/web/assets/AgentProfilePage-D5QUzw5N.css +1 -0
- package/dist/web/assets/AgentProfilePage-kp7-gRRx.js +5 -0
- package/dist/web/assets/AgentServicesPage-IsGaz7FY.js +1 -0
- package/dist/web/assets/{AppViewerPage-N5C_6WLz.css → AppViewerPage-CJ0Zy6LA.css} +1 -1
- package/dist/web/assets/AppViewerPage-CcOlwxck.js +1 -0
- package/dist/web/assets/{BackToTop-SL4ai3_g.js → BackToTop-C3KYEoCW.js} +1 -1
- package/dist/web/assets/BoardCardFieldsMenu-BlBWT1j7.js +1 -0
- package/dist/web/assets/BoardMoveMenu-Bc7xC1Uh.js +1 -0
- package/dist/web/assets/Breadcrumb-BbwBNrG2.css +1 -0
- package/dist/web/assets/Breadcrumb-C_xMiD-Z.js +1 -0
- package/dist/web/assets/CaptureChangePage-Bekp1aWg.js +1 -0
- package/dist/web/assets/ConnectionsPage-BpvecWXD.js +1 -0
- package/dist/web/assets/{CopyFixPrompt-CCrPxN5x.js → CopyFixPrompt-Bp-UX4Hq.js} +1 -1
- package/dist/web/assets/DataFormatPage-dsy8d3oA.js +2 -0
- package/dist/web/assets/DataFormatPage-sSnjjUY4.css +1 -0
- package/dist/web/assets/DebugTurnPage-HdFAyc2D.css +1 -0
- package/dist/web/assets/DebugTurnPage-cIJV7xDW.js +1 -0
- package/dist/web/assets/DebugTurnsPage-B6Te_Alp.js +1 -0
- package/dist/web/assets/DebugTurnsPage-BFuOzyWR.css +1 -0
- package/dist/web/assets/{DialogTitle-CTKjDGQc.js → DialogTitle-Lj5s6nwG.js} +1 -1
- package/dist/web/assets/EmployeeRedirectPage-DnvwJeCN.js +1 -0
- package/dist/web/assets/EmployeeScopeDialog-CXNZ62Ab.js +1 -0
- package/dist/web/assets/EmployeeWorkbench-BhReI8l6.css +1 -0
- package/dist/web/assets/EmployeeWorkbench-DALIO-cM.js +4 -0
- package/dist/web/assets/FieldRoot-DRnAC66O.js +1 -0
- package/dist/web/assets/FlaGrowth-7wlv31Tl.js +1 -0
- package/dist/web/assets/FlaGrowth-BzXY8pcx.css +1 -0
- package/dist/web/assets/FlaTaskSheets-CNdaBy1P.js +1 -0
- package/dist/web/assets/FlasPage-BCs1Ffpf.js +1 -0
- package/dist/web/assets/{FlasPage-Cb6Q5lge.css → FlasPage-SLQDMv47.css} +1 -1
- package/dist/web/assets/{button-CaCh3Iim.css → GrowthLoading-CigPij0N.css} +1 -1
- package/dist/web/assets/GrowthLoading-Cr8xZwwO.js +1 -0
- package/dist/web/assets/HowtoPage-Cv1YQy1s.js +1 -0
- package/dist/web/assets/{HowtoPage-BRV2W1Go.css → HowtoPage-t12tDDpS.css} +1 -1
- package/dist/web/assets/{InboxPage-DSOmt6VL.js → InboxPage-CgJnymOY.js} +2 -2
- package/dist/web/assets/KnowledgeDeleteButton-FEyEvhlR.js +1 -0
- package/dist/web/assets/KnowledgeHardDeleteSection-CVwTeMEJ.js +1 -0
- package/dist/web/assets/KnowledgeItemEditPage-rwpM8cF1.js +1 -0
- package/dist/web/assets/{KnowledgeItemSummaryCard-D1h0e1Hn.js → KnowledgeItemSummaryCard-49EADY_Z.js} +1 -1
- package/dist/web/assets/KnowledgeOrganizerPage-7IdnjM3L.js +1 -0
- package/dist/web/assets/KnowledgePage-gxqOIZxf.js +1 -0
- package/dist/web/assets/KnowledgePeek-Bm5jRVA9.css +1 -0
- package/dist/web/assets/KnowledgePeek-CQyCxHFj.js +1 -0
- package/dist/web/assets/KnowledgeTurnReceiptPage-BOz7IpaK.js +1 -0
- package/dist/web/assets/KnowledgeWorkspace-A7zVb26p.js +4 -0
- package/dist/web/assets/KnowledgeWorkspace-DCoVFyf0.css +1 -0
- package/dist/web/assets/{MeAvatar-DHJA3h2E.js → MeAvatar-CYVcRiuW.js} +1 -1
- package/dist/web/assets/{MeLink-CU7zuYgD.js → MeLink-BdqkzhT6.js} +1 -1
- package/dist/web/assets/{MenuSeparator-DV3U0Y8_.js → MenuSeparator-quqkZZXY.js} +1 -1
- package/dist/web/assets/ModelSettingsPage-B8jC_uew.js +3 -0
- package/dist/web/assets/ModelSettingsPage-DhCn_SF6.css +1 -0
- package/dist/web/assets/{NotFoundPage-BMWxdf6r.js → NotFoundPage-Dmn32VWo.js} +1 -1
- package/dist/web/assets/OccupationsPage-BVREfX_R.js +1 -0
- package/dist/web/assets/OverviewPage-CHyEbdP4.js +1 -0
- package/dist/web/assets/OverviewPage-xdF5g6bZ.css +1 -0
- package/dist/web/assets/{PageColumns-D7jIeVv6.js → PageColumns-DpfaPeu7.js} +1 -1
- package/dist/web/assets/PageOutline-BKBQ1T4d.js +1 -0
- package/dist/web/assets/PageOutline-BqVgnlos.css +1 -0
- package/dist/web/assets/PersonalProfilePage-Cxp2gn6J.js +1 -0
- package/dist/web/assets/PersonalProjectsPage-821imOxR.js +1 -0
- package/dist/web/assets/{PinIcon-DzYhXU_p.js → PinIcon-B7dvh7ld.js} +1 -1
- package/dist/web/assets/{PopperContent-BnejG-fO.js → PopperContent-DNqbLkNa.js} +1 -1
- package/dist/web/assets/{Presence-o9BoSyBV.js → Presence-D3HKb5Hb.js} +1 -1
- package/dist/web/assets/ProfileAuthorChip-7HSHODdR.js +1 -0
- package/dist/web/assets/ProfileAuthorChip-C_0hzDoP.css +1 -0
- package/dist/web/assets/ProjectAgentsPage-DBsXS6Xa.js +5 -0
- package/dist/web/assets/{ProjectAgentsPage-Dt37ogX1.css → ProjectAgentsPage-RpfiV2Fm.css} +1 -1
- package/dist/web/assets/ProjectJudgmentPolicy-GA33aSRi.js +2 -0
- package/dist/web/assets/PublicProjectsPage-PJlBI8IE.js +1 -0
- package/dist/web/assets/{RoundtablesPage-C6vo4kl6.css → RoundtablesPage-DK9A9J-y.css} +1 -1
- package/dist/web/assets/{RoundtablesPage-B2mqkwwR.js → RoundtablesPage-DT5DUXsa.js} +2 -2
- package/dist/web/assets/{RovingFocusGroup-CKxT5j44.js → RovingFocusGroup-BB0d3k17.js} +1 -1
- package/dist/web/assets/{RovingFocusItem-Cr-XrVve.js → RovingFocusItem-CFd7tXzD.js} +1 -1
- package/dist/web/assets/SessionMigrationPage-BZ1lEDQr.js +1 -0
- package/dist/web/assets/SessionRecordsPage-BMAAtIAt.js +1 -0
- package/dist/web/assets/SettingsPage-BYNEk6BM.js +1 -0
- package/dist/web/assets/SettingsPage-Uj1IpZpS.css +1 -0
- package/dist/web/assets/SharedJefaReportPage-g35o6jUb.js +1 -0
- package/dist/web/assets/TagVocabularyPage-COubNJXz.js +1 -0
- package/dist/web/assets/{TaskBlockerClear-38qdj0bl.js → TaskBlockerClear-B5MpHdlh.js} +1 -1
- package/dist/web/assets/{TaskBlockerNotice--X8TtCGj.js → TaskBlockerNotice-CIN0HRiE.js} +1 -1
- package/dist/web/assets/{TaskReason-COiuiZVd.js → TaskReason-LQ0CFiKu.js} +1 -1
- package/dist/web/assets/{TeamCard-Bl4riuQt.css → TeamCard-CsmWDw2Q.css} +1 -1
- package/dist/web/assets/TeamCard-D-kLa5rT.js +1 -0
- package/dist/web/assets/TeamCardsWidget-DGX9k0S6.js +1 -0
- package/dist/web/assets/{TeamIsland-D8ycFpkZ.js → TeamIsland-BIo-l49b.js} +2 -2
- package/dist/web/assets/{Teleport-BAIkXp2z.js → Teleport-C1upABpY.js} +1 -1
- package/dist/web/assets/{TextField-BFGv0VA5.js → TextField-ZnmRqG0h.js} +1 -1
- package/dist/web/assets/{UiChip-h_SUumBM.js → UiChip-CizeOu1Q.js} +1 -1
- package/dist/web/assets/UiDialog-CGTzxn3-.js +1 -0
- package/dist/web/assets/{UiDisclosure-BO5EAYyS.js → UiDisclosure-ueMA4jl0.js} +1 -1
- package/dist/web/assets/UiIcon-sD1hUsOF.js +1 -0
- package/dist/web/assets/{UiIconButton-C0WP-F-p.js → UiIconButton-CCo4NPYv.js} +1 -1
- package/dist/web/assets/{UiNotice-NCEwjNQR.js → UiNotice-DGPFbVo7.js} +1 -1
- package/dist/web/assets/{UiSegmented-B49yYjJ3.js → UiSegmented-BZ-jqnPE.js} +1 -1
- package/dist/web/assets/{UiWeight-DRIwuLUX.js → UiWeight-BRO3oVMZ.js} +1 -1
- package/dist/web/assets/{VirtualDirectoryList-Dieq64pn.js → VirtualDirectoryList-BkV3gj5E.js} +1 -1
- package/dist/web/assets/{VisuallyHidden-DIWFV5lV.js → VisuallyHidden-B8wfJ_mU.js} +1 -1
- package/dist/web/assets/{VisuallyHiddenInput-WxcAZDj2.js → VisuallyHiddenInput-Bdcr9CwC.js} +1 -1
- package/dist/web/assets/WidgetSlot-DFojQaSo.js +2 -0
- package/dist/web/assets/_plugin-vue_export-helper-B9AJmZbc.js +9 -0
- package/dist/web/assets/{agent-apps-CXhZLNMa.js → agent-apps-CKGFfySp.js} +1 -1
- package/dist/web/assets/{agent-avatar-xTnj6P4n.js → agent-avatar-V6M_DF3r.js} +1 -1
- package/dist/web/assets/agent-occupation-PZ2YAIM8.js +1 -0
- package/dist/web/assets/{agent-pins-CMBM9w6b.js → agent-pins-8KX0ynzy.js} +1 -1
- package/dist/web/assets/agent-profile-Clb-gYu-.css +1 -0
- package/dist/web/assets/{agent-roster-records-pCYzR1as.js → agent-roster-records-PfAgndHp.js} +1 -1
- package/dist/web/assets/{agent-workflows-IeF737kp.js → agent-workflows-DQlqVOoA.js} +1 -1
- package/dist/web/assets/{attach-closest-edge-B34lttZK.js → attach-closest-edge-D2qlayPy.js} +1 -1
- package/dist/web/assets/{attention-store-BTKBC8TZ.js → attention-store-BnZ8l3kk.js} +1 -1
- package/dist/web/assets/{badge-Bnc2nVhV.js → badge-DX_xrLV6.js} +1 -1
- package/dist/web/assets/button-CEkPBC1E.js +1 -0
- package/dist/web/assets/button-CoXXgtY5.css +1 -0
- package/dist/web/assets/{card-B2JIXyum.js → card-DNQ0_6vT.js} +1 -1
- package/dist/web/assets/{catalog-C8eUDXUx.js → catalog-KnpBkv5t.js} +1 -1
- package/dist/web/assets/{checkbox-Blw3CguI.js → checkbox-DPyLHneg.js} +1 -1
- package/dist/web/assets/{client-AaxCWoEF.js → client-CSQcWFRh.js} +2 -2
- package/dist/web/assets/client-connection-model-vO2cap6a.js +1 -0
- package/dist/web/assets/{client-links-store-CmP5Qsfa.js → client-links-store-DMqe0MbK.js} +1 -1
- package/dist/web/assets/combobox-zUq9bkyM.js +1 -0
- package/dist/web/assets/{console-DtxpKdVW.js → console-DaoAO-EO.js} +1 -1
- package/dist/web/assets/{context-menu-DSGaOBX2.js → context-menu-CcGDnF_k.js} +1 -1
- package/dist/web/assets/{conversation-launcher-settings-DAL9Kf4y.js → conversation-launcher-settings-CXFE-q_A.js} +1 -1
- package/dist/web/assets/{dialog-CwFuZvhM.js → dialog-CxhKMo0D.js} +1 -1
- package/dist/web/assets/dist-B9GqMC5C.js +1 -0
- package/dist/web/assets/dist-DIJqkL4O.js +1 -0
- package/dist/web/assets/dropdown-menu-CXmMnCBh.js +1 -0
- package/dist/web/assets/field-LNsBZqam.js +1 -0
- package/dist/web/assets/{format-bytes-N7zRFzUD.js → format-bytes-Bqefdt37.js} +1 -1
- package/dist/web/assets/{identity-BUFzZs1s.js → identity-DRfhWjty.js} +1 -1
- package/dist/web/assets/index-B4AMPpl_.css +1 -0
- package/dist/web/assets/index-BYIOAXnn.js +2 -0
- package/dist/web/assets/{input-Db1wVnd4.js → input-UoZ-0Xne.js} +1 -1
- package/dist/web/assets/{label--RjFNYxb.js → label-DpjbTOxt.js} +1 -1
- package/dist/web/assets/label-table-BnWNYfyk.js +1 -0
- package/dist/web/assets/{model-crzN3PVX.js → model-13BQndfF.js} +1 -1
- package/dist/web/assets/{model-KuA63FiT.js → model-B5g0CFcM.js} +1 -1
- package/dist/web/assets/model-BYKHVgJr.js +1 -0
- package/dist/web/assets/{model-B5f68kqL.js → model-CDevUwUw.js} +1 -1
- package/dist/web/assets/model-CpuIG8Du.js +4 -0
- package/dist/web/assets/{model-B5dQs6Zt.js → model-P5fSGsiJ.js} +1 -1
- package/dist/web/assets/{model-DOf6QDiY.js → model-pJ6k3zYD.js} +1 -1
- package/dist/web/assets/{motion-CeLn8y1x.js → motion-C-ZimCUS.js} +1 -1
- package/dist/web/assets/{motion-wEp9RlID.js → motion-QY5FKKko.js} +1 -1
- package/dist/web/assets/{motion-preference-DfUreaML.js → motion-preference-BQiiwhab.js} +1 -1
- package/dist/web/assets/{occupation-catalog-Crs_Zc8R.js → occupation-catalog-uDDhZwKK.js} +1 -1
- package/dist/web/assets/{option-DCSIgajR.js → option-CcHPBOo6.js} +1 -1
- package/dist/web/assets/{orchestration-filters-Cu9KEzWE.js → orchestration-filters-DmF4Qs8E.js} +1 -1
- package/dist/web/assets/{page-title-Bvm24KbY.js → page-title-NXphgeQI.js} +1 -1
- package/dist/web/assets/{person-profile-Cf0Sytyw.js → person-profile-DXXfpvta.js} +1 -1
- package/dist/web/assets/popover-xSRzcSmY.js +1 -0
- package/dist/web/assets/popup-host-Bmvrf-2t.js +1 -0
- package/dist/web/assets/{profile-model-DkDH6Qth.js → profile-model-6gTmScHC.js} +1 -1
- package/dist/web/assets/{project-board-layout-OeuzohUI.js → project-board-layout-DBQeP_QP.js} +1 -1
- package/dist/web/assets/{project-capture-BQAqeAJf.js → project-capture-BhYsDWwJ.js} +1 -1
- package/dist/web/assets/{project-origin-CENDtRuK.js → project-origin-D8jy8EF_.js} +1 -1
- package/dist/web/assets/{quick-edit-api-Qndjqk1h.js → quick-edit-api-WLh_88w6.js} +1 -1
- package/dist/web/assets/{radio-group-pfWejLFt.js → radio-group-B4r78nDh.js} +1 -1
- package/dist/web/assets/{role-names-aIXV-sMx.js → role-names-PECaMfQo.js} +1 -1
- package/dist/web/assets/{roundtable-live-D7Asm_GB.js → roundtable-live-DFeDF56c.js} +1 -1
- package/dist/web/assets/{runtime-dom.esm-bundler-BS2lpl87.js → runtime-dom.esm-bundler-f39i44Mt.js} +1 -1
- package/dist/web/assets/save-file-rPduHi2f.js +1 -0
- package/dist/web/assets/select-_JO3Mxdp.js +1 -0
- package/dist/web/assets/{session-launch-offers-kLW-dRsW.js → session-launch-offers-X9b0DwF1.js} +1 -1
- package/dist/web/assets/settings-restart-BnwcTv3i.js +1 -0
- package/dist/web/assets/shared-report-BxNVLalR.js +3 -0
- package/dist/web/assets/shared-report-mYIyRY9C.css +1 -0
- package/dist/web/assets/{source-adapters-CUxqZHz7.js → source-adapters-aupsL146.js} +1 -1
- package/dist/web/assets/{switch-Cdz4-JcE.js → switch-B3Y3oE_n.js} +1 -1
- package/dist/web/assets/{tabs-C3w1-eMu.js → tabs-BlcZiEMY.js} +1 -1
- package/dist/web/assets/{task-board-model-DSr4P56O.js → task-board-model-CmMKsWdY.js} +1 -1
- package/dist/web/assets/task-card-fields-DAx6zMLz.js +1 -0
- package/dist/web/assets/task-labels-BdDFvSAy.js +1 -0
- package/dist/web/assets/{task-reason-BywD_kfi.js → task-reason-7WnPreht.js} +1 -1
- package/dist/web/assets/{team-sheets-D8Y--CP4.js → team-sheets-Cr0ZTPw3.js} +1 -1
- package/dist/web/assets/{textarea-C228nxbD.js → textarea-CRzFqL9a.js} +1 -1
- package/dist/web/assets/{ui-BM8jZcP6.js → ui-BopQuQfc.js} +1 -1
- package/dist/web/assets/{useAgentRecords-D7x4xQ9O.js → useAgentRecords-CMtpd3Fj.js} +1 -1
- package/dist/web/assets/{useAgentWorkSummary-pc1i6nr0.js → useAgentWorkSummary-BQbhaHov.js} +1 -1
- package/dist/web/assets/{useApi-CROJJdhE-DZtkWJZv.js → useApi-CROJJdhE-CRCgNOqq.js} +1 -1
- package/dist/web/assets/{useClipboardCopy-sTthF_MD.js → useClipboardCopy-DkqKK3wY.js} +1 -1
- package/dist/web/assets/{useFocusReturn-BoyUh5y3.js → useFocusReturn-BZpVmQnM.js} +1 -1
- package/dist/web/assets/{useForwardExpose-CqXuqZvd.js → useForwardExpose-Di-MnbTz.js} +1 -1
- package/dist/web/assets/{useForwardPropsEmits-0F_e7unJ.js → useForwardPropsEmits-L9XcB5DG.js} +1 -1
- package/dist/web/assets/useForwardScopeId-CUQFIAIj.js +1 -0
- package/dist/web/assets/useKnowledgeItemPeek-PmQJixw5.js +1 -0
- package/dist/web/assets/{useMinimumLoadingDisplay-CzfqbQPs.js → useMinimumLoadingDisplay-CWPiOaDl.js} +1 -1
- package/dist/web/assets/useProjectAgentRoster-CWVpSsQ3.js +1 -0
- package/dist/web/assets/{useRoutePeek-BDgll9Fy.js → useRoutePeek-DxLVksbJ.js} +1 -1
- package/dist/web/assets/useTeamPeople-CDISP0PM.js +1 -0
- package/dist/web/assets/{useTeamWork-BSFi27vj.js → useTeamWork-BTZd_wKs.js} +1 -1
- package/dist/web/assets/{useTypeahead-D_g4j3Xp.js → useTypeahead-pEZNpBls.js} +1 -1
- package/dist/web/assets/{utils-C6vsxGrE.js → utils-B4pBTmyh.js} +1 -1
- package/dist/web/assets/utils-BsxOjD1Q.js +1 -0
- package/dist/web/assets/version-db3QWWjt.js +1 -0
- package/dist/web/assets/{vue-router-BPhQ0Qow.js → vue-router-B79HWW1l.js} +1 -1
- package/dist/web/assets/website-YgovUEcN.js +1 -0
- package/dist/web/index.html +71 -66
- package/docs/agent-interface-architecture.md +13 -4
- package/docs/client-connections.md +3 -2
- package/docs/employee-agents.md +11 -9
- package/docs/judgment-and-autonomy.md +4 -4
- package/graph-provider/fuli_graph/app.py +4 -0
- package/graph-provider/fuli_graph/collaboration_context.py +3 -7
- package/graph-provider/fuli_graph/graph_field_contract.py +10 -2
- package/graph-provider/fuli_graph/graph_format_builtin_occupations.py +33 -1
- package/graph-provider/fuli_graph/graph_format_migrations.py +18 -0
- package/graph-provider/fuli_graph/graph_query.py +3 -12
- package/graph-provider/fuli_graph/knowledge_index_scan.py +120 -0
- package/graph-provider/fuli_graph/knowledge_outdated.py +9 -1
- package/graph-provider/fuli_graph/knowledge_retrieval_models.py +95 -0
- package/graph-provider/fuli_graph/knowledge_retrieval_terms.py +116 -0
- package/graph-provider/fuli_graph/knowledge_search.py +220 -39
- package/graph-provider/fuli_graph/knowledge_semantic.py +87 -0
- package/graph-provider/fuli_graph/knowledge_semantic_index.py +98 -0
- package/graph-provider/fuli_graph/knowledge_semantic_models.py +72 -0
- package/graph-provider/fuli_graph/knowledge_semantic_query.py +19 -0
- package/graph-provider/fuli_graph/knowledge_versions.py +14 -7
- package/graph-provider/fuli_graph/models.py +4 -0
- package/graph-provider/fuli_graph/occupation_catalog.py +6 -3
- package/graph-provider/fuli_graph/personal_global_preferences.py +3 -7
- package/graph-provider/fuli_graph/preference_versions.py +110 -0
- package/graph-provider/fuli_graph/project_agent_models.py +3 -0
- package/graph-provider/fuli_graph/project_agent_recruitment_occupation.py +1 -1
- package/graph-provider/fuli_graph/provider_values.py +7 -0
- package/graph-provider/fuli_graph/search_projection.py +2 -6
- package/graph-provider/fuli_graph/store_knowledge.py +10 -1
- package/graph-provider/fuli_graph/task_context_routes.py +1 -1
- package/graph-provider/pyproject.toml +1 -1
- package/native/win32/fuli-win-helper.exe +0 -0
- package/npm-shrinkwrap.json +3 -4
- package/package.json +2 -1
- package/skills/capturing-session-knowledge/SKILL.md +14 -7
- package/skills/capturing-session-knowledge/references/capture.md +12 -2
- package/skills/capturing-session-knowledge/references/retrieval.md +13 -4
- package/skills/grilling-project/SKILL.md +2 -0
- package/skills/operating-fuli/SKILL.md +36 -8
- package/skills/operating-fuli/references/workflow-recipes.md +10 -9
- package/src/agent-apps/host-tools/catalog.js +3 -0
- package/src/agent-delegation/agent-tool.js +12 -2
- package/src/agent-delegation/delegation-header.js +32 -8
- package/src/agent-delegation/entry-prompts.js +54 -0
- package/src/agent-delegation/operation-log.js +17 -7
- package/src/agent-delegation/person-words.js +38 -0
- package/src/agent-delegation/port.js +6 -4
- package/src/agent-delegation/refusals.js +14 -0
- package/src/agent-kits/client-detection.js +7 -0
- package/src/agent-kits/client-installer.js +13 -0
- package/src/agent-tools/delegation-definitions.js +5 -3
- package/src/agent-tools/diagnostic-definitions.js +23 -0
- package/src/agent-tools/graph-definitions.js +4 -0
- package/src/agent-tools/graph-handlers.js +6 -1
- package/src/agent-tools/interface-catalog.js +47 -17
- package/src/agent-tools/model-backend-definitions.js +1 -1
- package/src/agent-tools/old-data-definitions.js +16 -0
- package/src/agent-tools/task-entry-definitions.js +1 -1
- package/src/agent-tools/work-surface-definitions.js +1 -1
- package/src/agents/claude-code/lifecycle-hook.js +19 -5
- package/src/agents/claude-code/transcript-format-probe.js +31 -0
- package/src/agents/codex/lifecycle-hook.js +27 -7
- package/src/agents/codex/transcript-format-probe.js +29 -0
- package/src/agents/cursor/lifecycle-hook.js +4 -1
- package/src/agents/lifecycle-failure.js +27 -0
- package/src/agents/lifecycle-message.js +10 -0
- package/src/agents/opencode/lifecycle-hook.js +18 -2
- package/src/agents/transcript-format-registry.js +34 -0
- package/src/agents/transcript-format-scan.js +71 -0
- package/src/cli/command-registry.js +3 -0
- package/src/cli/diagnostics-command.js +59 -0
- package/src/cli/setup-command.js +3 -0
- package/src/cli.js +5 -0
- package/src/conversations/entry-budget.js +1 -1
- package/src/conversations/entry-detail-readers.js +22 -0
- package/src/conversations/entry-inline-budget.js +24 -12
- package/src/conversations/entry-skeleton.js +27 -9
- package/src/conversations/preference-lifecycle.js +2 -1
- package/src/conversations/preference-session.js +5 -2
- package/src/conversations/preference-snapshot.js +4 -1
- package/src/conversations/preference-view.js +5 -1
- package/src/conversations/reply-citations.js +21 -0
- package/src/conversations/stop-auto-close.js +21 -9
- package/src/conversations/task-context-view.js +31 -0
- package/src/data-format/backup-retention.js +8 -0
- package/src/data-format/local-stores.js +24 -2
- package/src/debug-turns/fuli-surface.js +23 -0
- package/src/debug-turns/model-capture.js +84 -0
- package/src/debug-turns/model-request.js +97 -0
- package/src/debug-turns/record.js +178 -0
- package/src/debug-turns/recorder.js +53 -0
- package/src/debug-turns/store.js +91 -0
- package/src/debug-turns/transcript-reader.js +64 -0
- package/src/debug-turns/trigger.js +25 -0
- package/src/diagnostics/agent-tool.js +14 -0
- package/src/diagnostics/event-log.js +133 -0
- package/src/diagnostics/failure-records.js +43 -0
- package/src/diagnostics/query.js +114 -0
- package/src/diagnostics/safe-event.js +83 -0
- package/src/dreaming/run.js +310 -0
- package/src/dreaming/scheduler.js +58 -0
- package/src/employees/builtin/jefa/board-store.js +78 -19
- package/src/employees/builtin/jefa/http.js +8 -5
- package/src/employees/builtin/jefa/project-board.js +2 -0
- package/src/employees/builtin/jefa/tools.js +7 -6
- package/src/employees/recruitment.js +20 -2
- package/src/employees/service.js +11 -1
- package/src/graphiti/agent-growth.js +64 -0
- package/src/graphiti/collaboration-preference-projection.js +7 -0
- package/src/graphiti/collaboration-preference-workflow.js +3 -3
- package/src/graphiti/current-project-knowledge-search.js +24 -1
- package/src/graphiti/federated-application.js +19 -1
- package/src/graphiti/federated-search.js +8 -1
- package/src/graphiti/local-runtimes.js +13 -0
- package/src/graphiti/personal-projects.js +11 -0
- package/src/graphiti/project-agent-mapping.js +1 -0
- package/src/graphiti/project-agent-task-sheets.js +6 -2
- package/src/graphiti/project-agent-workflows.js +22 -4
- package/src/graphiti/project-profile-authors.js +14 -7
- package/src/graphiti/provider-client.js +36 -0
- package/src/graphiti/session-knowledge-migration.js +103 -3
- package/src/graphiti/session-migration-notices.js +65 -0
- package/src/graphiti/session-records.js +22 -4
- package/src/graphiti/task-context-entry.js +5 -1
- package/src/graphiti/task-entry-preferences.js +31 -2
- package/src/graphiti/task-entry-read-only.js +28 -0
- package/src/graphiti/task-knowledge-checkpoint.js +2 -0
- package/src/graphiti/task-knowledge-recall.js +96 -19
- package/src/graphiti/task-remember.js +7 -2
- package/src/graphiti/task-update-request.js +13 -0
- package/src/graphiti/temporary-project-scope.js +7 -1
- package/src/graphiti/turn-receipt-delivery.js +5 -3
- package/src/http/agent-delegation-gate.js +5 -4
- package/src/http/agent-growth-api-router.js +17 -0
- package/src/http/api-router.js +18 -2
- package/src/http/capture-onboarding-api-router.js +3 -2
- package/src/http/debug-turns-api-router.js +70 -0
- package/src/http/diagnostic-events-api-router.js +27 -0
- package/src/http/dreaming-api-router.js +32 -0
- package/src/http/graph-api-router.js +35 -1
- package/src/http/knowledge-item-api-router.js +19 -2
- package/src/http/knowledge-scope-api-router.js +3 -2
- package/src/http/old-data-api-router.js +47 -0
- package/src/http/person-profile-api-router.js +3 -2
- package/src/http/retrieval-terms-api-router.js +37 -0
- package/src/http/semantic-api-router.js +26 -0
- package/src/judgment/agent-view.js +1 -1
- package/src/judgment/backend.js +30 -0
- package/src/judgment/http.js +2 -1
- package/src/judgment/review-prompt.js +2 -0
- package/src/judgment/routing.js +10 -2
- package/src/judgment/service.js +8 -2
- package/src/judgment/store.js +17 -7
- package/src/local-runtime/lifecycle.js +3 -0
- package/src/local-runtime/windows-process-handle.js +9 -3
- package/src/mcp/create-mcp-server.js +42 -25
- package/src/mcp/process-registry.js +45 -3
- package/src/mcp/runtime.js +2 -1
- package/src/mcp/stdio-relay.js +4 -1
- package/src/mcp/tool-annotations.js +2 -0
- package/src/model-backends/adapters/anthropic-messages.js +1 -1
- package/src/model-backends/adapters/exchange.js +2 -2
- package/src/model-backends/adapters/openai-chat.js +1 -1
- package/src/model-backends/adapters/openai-embeddings.js +60 -0
- package/src/model-backends/adapters/registry.js +3 -1
- package/src/model-backends/adapters/typesafe-systemone.js +1 -1
- package/src/model-backends/budget.js +14 -8
- package/src/model-backends/config.js +49 -15
- package/src/model-backends/decision-contract.js +2 -1
- package/src/model-backends/http.js +19 -1
- package/src/model-backends/model-fetch.js +37 -0
- package/src/model-backends/port.js +165 -67
- package/src/model-backends/prompt.js +4 -3
- package/src/model-backends/request.js +42 -3
- package/src/native-runtime/runtime.js +28 -4
- package/src/old-data/agent-tools.js +17 -0
- package/src/old-data/backup-reader.js +78 -0
- package/src/old-data/console-actions.js +53 -0
- package/src/old-data/guarded-stores.js +18 -0
- package/src/old-data/inventory.js +142 -0
- package/src/old-data/port.js +53 -0
- package/src/person-profile/port.js +2 -1
- package/src/presence/windows-helper-pin.js +1 -1
- package/src/project-change-log/port.js +65 -0
- package/src/project-change-log/store.js +60 -0
- package/src/retrieval-terms/fill.js +102 -0
- package/src/retrieval-terms/runner.js +50 -0
- package/src/retrieval-terms/terms-model.js +99 -0
- package/src/security/sensitive-content.js +11 -0
- package/src/semantic/scheduler.js +50 -0
- package/src/semantic/semantic-index.js +94 -0
- package/src/server.js +20 -1
- package/src/setup/paths.js +1 -1
- package/src/setup/setup.js +7 -0
- package/src/system/client-connection-status.js +6 -4
- package/src/system/doctor-repair.js +16 -4
- package/src/system/doctor.js +75 -3
- package/src/system/log-paths.js +11 -0
- package/src/system/log-retention.js +2 -8
- package/src/system/mcp-process-scan.js +55 -0
- package/src/system/resource-monitor.js +18 -2
- package/src/system/system-service.js +39 -7
- package/src/system/windows-data-acl.js +109 -0
- package/src/work-surfaces/port.js +17 -11
- package/src/work-surfaces/sources.js +4 -3
- package/dist/web/assets/AboutSectionHeading-BOXKE5Le.js +0 -1
- package/dist/web/assets/AboutSectionHeading-CiD3M3eG.css +0 -1
- package/dist/web/assets/AgentAppsPage-DS2X485q.js +0 -1
- package/dist/web/assets/AgentConversations-D7QJVFIo.js +0 -2
- package/dist/web/assets/AgentConversations-oZFXZE1X.css +0 -1
- package/dist/web/assets/AgentMentionCopy-O6pAjjYE.js +0 -1
- package/dist/web/assets/AgentProfilePage-CKCTcTzc.js +0 -2
- package/dist/web/assets/AgentProfilePage-D1ha8O3z.css +0 -1
- package/dist/web/assets/AgentServicesPage-C3npKkHp.js +0 -1
- package/dist/web/assets/AgentWorkbench-CJ4TYQA1.css +0 -1
- package/dist/web/assets/AgentWorkbench-D9HGRW-n.js +0 -2
- package/dist/web/assets/AppViewerPage-Al4TzYJF.js +0 -1
- package/dist/web/assets/BoardMoveMenu-ncWgEitd.js +0 -1
- package/dist/web/assets/Breadcrumb-QzjzIJdS.js +0 -1
- package/dist/web/assets/Breadcrumb-bsc0JKtG.css +0 -1
- package/dist/web/assets/CaptureChangePage-BQdqH2qC.js +0 -1
- package/dist/web/assets/ConnectionsPage-Be8jIb93.js +0 -1
- package/dist/web/assets/DataFormatPage-0Ne27K6I.css +0 -1
- package/dist/web/assets/DataFormatPage-C92rwzHa.js +0 -2
- package/dist/web/assets/EmployeeScopeDialog-DdR2DzcW.js +0 -1
- package/dist/web/assets/EmployeeTaskBoard-Bo8JT36K.js +0 -3
- package/dist/web/assets/EmployeeTaskBoard-Dljjy_L7.css +0 -1
- package/dist/web/assets/EmployeeWorkbenchPage-B249Mgle.js +0 -3
- package/dist/web/assets/EmployeeWorkbenchPage-BBjZJ6Od.css +0 -1
- package/dist/web/assets/FieldRoot-YdKVCBhW.js +0 -1
- package/dist/web/assets/FlaTaskSheets-Cm5SLq7J.js +0 -1
- package/dist/web/assets/FlasPage-C57gTN5X.js +0 -1
- package/dist/web/assets/HowtoPage-CDJScY6b.js +0 -1
- package/dist/web/assets/KnowledgeDeleteButton-5EtCPPl4.js +0 -1
- package/dist/web/assets/KnowledgeHardDeleteSection-r0lZ7ijb.js +0 -1
- package/dist/web/assets/KnowledgeItemEditPage-BStIRllM.js +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-BByk8hbw.js +0 -1
- package/dist/web/assets/KnowledgePage-DuWS3bRP.js +0 -1
- package/dist/web/assets/KnowledgePeek-BycBJ2xR.js +0 -1
- package/dist/web/assets/KnowledgePeek-EvumfJER.css +0 -1
- package/dist/web/assets/KnowledgeTurnReceiptPage-DTcDN-pG.js +0 -1
- package/dist/web/assets/KnowledgeWorkspace-CJo-6xdn.js +0 -4
- package/dist/web/assets/KnowledgeWorkspace-DPBq-At0.css +0 -1
- package/dist/web/assets/ModelSettingsPage-C1ghraAh.js +0 -1
- package/dist/web/assets/ModelSettingsPage-ConWy_ec.css +0 -1
- package/dist/web/assets/OccupationsPage-BY1jej7i.js +0 -1
- package/dist/web/assets/OverviewPage-C7YJf-Cq.css +0 -1
- package/dist/web/assets/OverviewPage-Dl-H0EBe.js +0 -1
- package/dist/web/assets/PersonalProfilePage-BcaVzKM6.js +0 -1
- package/dist/web/assets/PersonalProjectsPage-CO4ZYVAI.js +0 -1
- package/dist/web/assets/ProjectAgentDetailPage-Bgh78Mr5.js +0 -8
- package/dist/web/assets/ProjectAgentDetailPage-h7hr9iee.css +0 -1
- package/dist/web/assets/ProjectAgentDialog--T6mU-FW.css +0 -1
- package/dist/web/assets/ProjectAgentDialog-DzTor5ky.js +0 -5
- package/dist/web/assets/ProjectAgentsPage-CzN183pa.js +0 -1
- package/dist/web/assets/ProjectJudgmentPolicy-BMlEBJM3.js +0 -2
- package/dist/web/assets/PublicProjectsPage-DAHT31B8.js +0 -1
- package/dist/web/assets/SessionMigrationPage-IW07XhmD.js +0 -1
- package/dist/web/assets/SessionRecordsPage-Du76tewc.js +0 -1
- package/dist/web/assets/SettingsPage-CJNXe313.js +0 -1
- package/dist/web/assets/SettingsPage-D3AYCNTC.css +0 -1
- package/dist/web/assets/SharedJefaReportPage-dzHSSGhu.js +0 -1
- package/dist/web/assets/TagVocabularyPage-C_oV6GFs.js +0 -1
- package/dist/web/assets/TeamCard-CdO0RiNB.js +0 -1
- package/dist/web/assets/TeamCardsWidget-Cg_kJmb-.js +0 -1
- package/dist/web/assets/UiDialog-CUgrU6SQ.js +0 -1
- package/dist/web/assets/UiIcon-DPv0eZIU.js +0 -1
- package/dist/web/assets/WidgetSlot-BSU_-l_4.js +0 -2
- package/dist/web/assets/_plugin-vue_export-helper-DQENg-QE.js +0 -9
- package/dist/web/assets/agent-occupation-BvOgDW-q.js +0 -1
- package/dist/web/assets/agent-profile-BBqkfac0.css +0 -1
- package/dist/web/assets/agent-task-board-Cf9il_1i.js +0 -1
- package/dist/web/assets/button-N4FjuQuJ.js +0 -1
- package/dist/web/assets/client-connection-model-C3gpYYl7.js +0 -1
- package/dist/web/assets/combobox-DHwWXUpj.js +0 -1
- package/dist/web/assets/desktop-client-DnfjyLBX.js +0 -1
- package/dist/web/assets/dist-BInsvNsv.js +0 -1
- package/dist/web/assets/dist-Dc8jFf8M.js +0 -1
- package/dist/web/assets/field-BQLn7Hfw.js +0 -1
- package/dist/web/assets/index-CXPYDcyq.js +0 -2
- package/dist/web/assets/index-x95VDmzK.css +0 -1
- package/dist/web/assets/judgment-api-CK9yqrpU.js +0 -1
- package/dist/web/assets/label-table-KdyaCTvK.js +0 -1
- package/dist/web/assets/model-D4kKYvpj.js +0 -1
- package/dist/web/assets/popover-D4YFkL_5.js +0 -1
- package/dist/web/assets/project-board-settings-DPP6xKLz.js +0 -1
- package/dist/web/assets/project-team-api-7ybLH-uJ.js +0 -1
- package/dist/web/assets/save-file-CRxAsski.js +0 -1
- package/dist/web/assets/select-CUy1AIwE.js +0 -1
- package/dist/web/assets/settings-restart-JYH81qB-.js +0 -1
- package/dist/web/assets/shared-report-8p3nBKr-.js +0 -1
- package/dist/web/assets/source-coverage-4PsHC9TK.js +0 -1
- package/dist/web/assets/task-labels-CXBG2chm.js +0 -1
- package/dist/web/assets/useForwardScopeId-DVUFcuwO.js +0 -1
- package/dist/web/assets/useKnowledgeItemPeek-KZveY8Wz.js +0 -1
- package/dist/web/assets/useTeamPeople-Dna3Yrm3.js +0 -1
- package/dist/web/assets/utils-BX1QI2N6.js +0 -1
- package/dist/web/assets/version-CBPeq5nI.js +0 -1
|
@@ -1,20 +1,22 @@
|
|
|
1
|
+
import { PERSON_WORDS_MAX } from '../agent-delegation/person-words.js';
|
|
1
2
|
import { boundedString, objectSchema } from './schema.js';
|
|
2
3
|
|
|
3
4
|
// One tool for every console change the person lets FLAs make for them
|
|
4
5
|
// (rec#11 D-81). Full profile only; chat reaches it through
|
|
5
6
|
// list_agent_interfaces/fuli_call. The routes are the catalog's
|
|
6
|
-
// agent_delegable and
|
|
7
|
+
// agent_delegable, agent_delegable_off and agent_relayed entries.
|
|
7
8
|
export const DELEGATION_DEFINITIONS = [
|
|
8
9
|
{
|
|
9
10
|
name: 'run_delegated_action',
|
|
10
11
|
title: 'WRITE · Make a console change for the person',
|
|
11
|
-
description: '
|
|
12
|
+
description: 'One agent_delegable(_off)/agent_relayed route from list_agent_interfaces, when the person asks or the task needs it. Route, :params, the console page JSON body, why. agent_relayed: ask in chat, pass their exact words in personWords. Refused for local_user_only, a category turned off (Settings › AI permissions) or person_words_not_found. Reply with delegation_receipt.markdown.',
|
|
12
13
|
inputSchema: objectSchema({
|
|
13
14
|
taskContextToken: boundedString(256),
|
|
14
15
|
route: boundedString(300),
|
|
15
16
|
params: { type: 'object', additionalProperties: boundedString(512), description: 'Value of each :param in route.' },
|
|
16
17
|
body: { type: 'object', additionalProperties: true },
|
|
17
|
-
reason: boundedString(500)
|
|
18
|
+
reason: boundedString(500),
|
|
19
|
+
personWords: boundedString(PERSON_WORDS_MAX)
|
|
18
20
|
}, ['taskContextToken', 'route', 'reason'])
|
|
19
21
|
}
|
|
20
22
|
];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DIAGNOSTIC_COMPONENTS, DIAGNOSTIC_LEVELS } from '../diagnostics/safe-event.js';
|
|
2
|
+
import { MAX_DIAGNOSTIC_LIMIT } from '../diagnostics/query.js';
|
|
3
|
+
import { boundedString, enumSchema, integerSchema, objectSchema } from './schema.js';
|
|
4
|
+
|
|
5
|
+
// FULI's own runtime failures (rec#73). Full profile only; chat reaches it
|
|
6
|
+
// through list_agent_interfaces/fuli_call, so no session pays for its schema.
|
|
7
|
+
export const DIAGNOSTIC_DEFINITIONS = [
|
|
8
|
+
{
|
|
9
|
+
name: 'read_diagnostic_events',
|
|
10
|
+
title: 'READ · FULI runtime failures',
|
|
11
|
+
description: 'When FULI misbehaves: failures its hooks, HTTP API, Graph Provider start and MCP tools caught, newest first, '
|
|
12
|
+
+ 'with counts. Empty is not healthy: check truncated, sourcesUnavailable and notCovered. Page with nextCursor.',
|
|
13
|
+
inputSchema: objectSchema({
|
|
14
|
+
from: { ...boundedString(40), description: 'ISO 8601 date-time' },
|
|
15
|
+
to: { ...boundedString(40), description: 'ISO 8601 date-time' },
|
|
16
|
+
component: enumSchema(DIAGNOSTIC_COMPONENTS),
|
|
17
|
+
level: enumSchema(DIAGNOSTIC_LEVELS),
|
|
18
|
+
code: boundedString(64),
|
|
19
|
+
limit: integerSchema({ minimum: 1, maximum: MAX_DIAGNOSTIC_LIMIT }),
|
|
20
|
+
cursor: boundedString(64)
|
|
21
|
+
})
|
|
22
|
+
}
|
|
23
|
+
];
|
|
@@ -7,6 +7,8 @@ import { AGENT_SERVICE_DEFINITIONS } from './agent-service-definitions.js';
|
|
|
7
7
|
import { AGENT_WORKFLOW_DEFINITIONS } from './agent-workflow-definitions.js';
|
|
8
8
|
import { WORK_SURFACE_DEFINITIONS } from './work-surface-definitions.js';
|
|
9
9
|
import { DELEGATION_DEFINITIONS } from './delegation-definitions.js';
|
|
10
|
+
import { DIAGNOSTIC_DEFINITIONS } from './diagnostic-definitions.js';
|
|
11
|
+
import { OLD_DATA_DEFINITIONS } from './old-data-definitions.js';
|
|
10
12
|
import { TASK_RUN_DEFINITIONS } from './task-run-definitions.js';
|
|
11
13
|
import { TASK_PREFERENCE_DEFINITIONS } from './task-preference-definitions.js';
|
|
12
14
|
import { AGENT_INTERFACE_DEFINITIONS } from './interface-definitions.js';
|
|
@@ -35,6 +37,8 @@ export const GRAPH_TOOL_DEFINITIONS = [
|
|
|
35
37
|
...AGENT_WORKFLOW_DEFINITIONS,
|
|
36
38
|
...WORK_SURFACE_DEFINITIONS,
|
|
37
39
|
...DELEGATION_DEFINITIONS,
|
|
40
|
+
...DIAGNOSTIC_DEFINITIONS,
|
|
41
|
+
...OLD_DATA_DEFINITIONS,
|
|
38
42
|
...TASK_PREFERENCE_DEFINITIONS,
|
|
39
43
|
...TASK_ENTRY_DEFINITIONS,
|
|
40
44
|
...KNOWLEDGE_DEFINITIONS,
|
|
@@ -10,6 +10,8 @@ import { reportAgentService } from '../agent-services/agent-report.js';
|
|
|
10
10
|
import { AGENT_WORKFLOW_HANDLERS } from '../agent-workflows/agent-tools.js';
|
|
11
11
|
import { WORK_SURFACE_HANDLERS } from '../work-surfaces/agent-tools.js';
|
|
12
12
|
import { DELEGATION_HANDLERS } from '../agent-delegation/agent-tool.js';
|
|
13
|
+
import { DIAGNOSTIC_HANDLERS } from '../diagnostics/agent-tool.js';
|
|
14
|
+
import { OLD_DATA_HANDLERS } from '../old-data/agent-tools.js';
|
|
13
15
|
import { agentNamingStyleAnswer } from '../agent-naming/naming-style.js';
|
|
14
16
|
|
|
15
17
|
// These tools read or change the two local stores that can retain deleted
|
|
@@ -30,6 +32,8 @@ const HANDLERS = Object.freeze({
|
|
|
30
32
|
...AGENT_WORKFLOW_HANDLERS,
|
|
31
33
|
...WORK_SURFACE_HANDLERS,
|
|
32
34
|
...DELEGATION_HANDLERS,
|
|
35
|
+
...DIAGNOSTIC_HANDLERS,
|
|
36
|
+
...OLD_DATA_HANDLERS,
|
|
33
37
|
control_project_agent_task_run: (app, input) => app.controlProjectAgentTaskRun({ ...input, agentInvocation: true }),
|
|
34
38
|
// An Agent reads Tonborg's records without their words (rec#50, judgment/agent-view.js).
|
|
35
39
|
list_judgments: (app, input) => app.judgment.agent.records(input),
|
|
@@ -183,7 +187,8 @@ const HANDLERS = Object.freeze({
|
|
|
183
187
|
async () => app.upsertPersonalProject({ ...input, writer: await app.agentProfileWriter(input) })),
|
|
184
188
|
list_personal_projects: (app, input) => app.listPersonalProjects(input),
|
|
185
189
|
upsert_project_agent: (app, input) => captureGuard(app, { sourceApplication: input?.sourceApplication,
|
|
186
|
-
personalProjectId: input?.personalProjectId ?? null },
|
|
190
|
+
personalProjectId: input?.personalProjectId ?? null },
|
|
191
|
+
async () => app.upsertProjectAgent({ ...input, writer: await app.agentProfileWriter(input) })),
|
|
187
192
|
rename_project_agent: (app, input) => app.renameProjectAgent(input),
|
|
188
193
|
list_project_agents: (app, input) => app.listCurrentProjectAgents(input),
|
|
189
194
|
get_project_agent: (app, input) => app.getProjectAgent(input),
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
// Who may make each console change (rec#11 D-81). agent: a named Agent tool.
|
|
2
2
|
// agent_delegable / agent_delegable_off: an FLA makes it for the person with
|
|
3
3
|
// run_delegated_action while the person keeps its category on in Settings ›
|
|
4
|
-
// AI permissions; _off categories start off.
|
|
5
|
-
//
|
|
4
|
+
// AI permissions; _off categories start off. agent_relayed (rec#80): the
|
|
5
|
+
// person's own decision, which an FLA relays with their exact words from this
|
|
6
|
+
// session's chat; FULI runs it only when it finds those words in the person's
|
|
7
|
+
// recent messages, and records it as the person's, relayed by that FLA.
|
|
8
|
+
// local_user_only: never an Agent, whatever the person's permissions say.
|
|
9
|
+
// Each category's default:
|
|
6
10
|
const DELEGATION_DEFAULTS = Object.freeze({
|
|
7
|
-
settings: true, organisation: true, projects: true, services_apps: true, roundtable: true,
|
|
11
|
+
settings: true, organisation: true, projects: true, services_apps: true, roundtable: true, decisions: true,
|
|
8
12
|
lan_roundtable: false, model_settings: false, public_projects: false,
|
|
9
13
|
});
|
|
10
14
|
|
|
@@ -32,9 +36,10 @@ const UI_MUTATION_PARITY = Object.freeze([
|
|
|
32
36
|
delegable('model_settings', 'PUT /api/model-backends/roles/:role', 'Save the earlier settings again; GET /api/model-backends/history shows them.'),
|
|
33
37
|
local('PUT /api/model-backends/keys/:reference', 'A built-in Agent\'s model API key is entered by the person on the model settings page (loopback only) or with fuli models set-key; it is stored on this computer, never shown again, and no Agent tool can read or set it.'),
|
|
34
38
|
delegable('model_settings', 'PUT /api/model-backends/roles/:role/trust', 'Switch it back.'),
|
|
39
|
+
local('POST /api/semantic/fill', 'Filling the meaning index sends knowledge to their own model, so it starts only from this computer; it also runs by itself every few minutes while a model is connected.'),
|
|
35
40
|
local('PUT /api/judgment/policy', 'Autonomy grants delegated authority and requires the local user.'),
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
relayed('POST /api/judgment/feedback', 'Vote again; every earlier vote and reason is kept.'),
|
|
42
|
+
relayed('POST /api/judgment/undo', 'Not undone from FULI; ask Tonborg to review the item again.'),
|
|
38
43
|
agent('POST /api/judgment/review', 'review_with_tonborg'),
|
|
39
44
|
agent('POST /api/judgment/assess', 'assess_agent_action'),
|
|
40
45
|
agent('POST /api/judgment/accept', 'assess_task_completion'),
|
|
@@ -42,15 +47,15 @@ const UI_MUTATION_PARITY = Object.freeze([
|
|
|
42
47
|
agent('PUT /api/agent-conversations/policy', 'update_agent_conversation_policy'),
|
|
43
48
|
agent('POST /api/agent-attention', 'request_agent_attention'),
|
|
44
49
|
agent('POST /api/agent-attention/cancel', 'cancel_agent_attention'),
|
|
45
|
-
|
|
50
|
+
relayed('POST /api/agent-attention/respond', 'Not undone; the requesting Agent already has the answer. The person answers again in chat.'),
|
|
46
51
|
agent('POST /api/system/runtime/leases', 'acquire_runtime_lease'),
|
|
47
52
|
agent('PATCH /api/system/runtime/leases/:leaseId', 'refresh_runtime_lease'),
|
|
48
53
|
agent('DELETE /api/system/runtime/leases/:leaseId', 'release_runtime_lease'),
|
|
49
54
|
agent('PATCH /api/capture-policy', 'update_capture_policy'),
|
|
50
55
|
delegable('settings', 'POST /api/capture-changes/:previewId/confirm', 'Ask for the opposite change with update_capture_policy.'),
|
|
51
56
|
delegable('settings', 'POST /api/capture-changes/:previewId/cancel', 'Ask again with update_capture_policy.'),
|
|
52
|
-
|
|
53
|
-
|
|
57
|
+
relayed('POST /api/capture-onboarding', 'Change where FULI records with update_capture_policy.'),
|
|
58
|
+
relayed('POST /api/first-run-guide', 'Not undone; the guide stays closed and 设置 › 客户端 offers the same steps.'),
|
|
54
59
|
delegable('settings', 'PATCH /api/recall-policy', 'Set answerFromConfirmed back.'),
|
|
55
60
|
local('PATCH /api/agent-access-policy', 'The Agent access kill switch requires local user presence and cannot be changed by an Agent.'),
|
|
56
61
|
local('PUT /api/agent-delegation/categories/:category', 'What FLAs may do for the person (AI permissions) is the local person\'s own grant on this computer; an Agent never widens or narrows it.'),
|
|
@@ -64,6 +69,14 @@ const UI_MUTATION_PARITY = Object.freeze([
|
|
|
64
69
|
delegable('settings', 'DELETE /api/system/client-connection/custom-clients/:clientId', 'Describe it again with POST /api/system/client-connection/custom-clients.'),
|
|
65
70
|
local('POST /api/system/graph-migration', 'Moving an older install\'s Docker graph into the built-in graph stops and restarts FULI; the person starts it from Settings. An Agent can read GET /api/system/doctor, and when the click cannot finish, follow the guide the doctor item links (data.guideUrl) with the person.'),
|
|
66
71
|
delegable('settings', 'POST /api/system/doctor/repair', 'Not undone; it rewrites client configuration to what setup writes.'),
|
|
72
|
+
local('PUT /api/debug-turns/capture', 'The local person turns on the hidden model request capture, which routes their own client through this computer.'),
|
|
73
|
+
local('POST /api/dreaming/run', 'The local person starts a Dreaming run, which sends a project\'s sessions to their own model.'),
|
|
74
|
+
local('POST /api/retrieval-terms/trial', 'The local person tests retrieval terms on a sample, which sends project knowledge to their own model.'),
|
|
75
|
+
local('POST /api/retrieval-terms/fill', 'The local person fills retrieval terms, which sends project knowledge to their own model.'),
|
|
76
|
+
local('POST /api/retrieval-terms/stop', 'Stops a fill the local person started; it runs only on this computer.'),
|
|
77
|
+
local('POST /api/model-backends/roles/:role/check', 'The local person sends one fixed test request to a role\'s model.'),
|
|
78
|
+
delegable('settings', 'DELETE /api/debug-turns/:id', 'Not undone; the next #fulidebug turn records again.'),
|
|
79
|
+
delegable('settings', 'POST /api/debug-turns/delete', 'Not undone; the next #fulidebug turn records again.'),
|
|
67
80
|
agent('POST /api/capture', 'capture_session_knowledge'),
|
|
68
81
|
agent('POST /api/subscriptions', 'subscribe_public_project'),
|
|
69
82
|
agent('DELETE /api/subscriptions/:projectId', 'unsubscribe_public_project'),
|
|
@@ -79,8 +92,9 @@ const UI_MUTATION_PARITY = Object.freeze([
|
|
|
79
92
|
agent('PUT /api/project-agents', 'upsert_project_agent'),
|
|
80
93
|
agent('PUT /api/project-agents/:agentId/name', 'rename_project_agent'),
|
|
81
94
|
delegable('organisation', 'PUT /api/agent-avatars/:agentId', 'Every earlier look is kept; choose the earlier one again.'),
|
|
82
|
-
|
|
95
|
+
relayed('PUT /api/person-profile', 'Save the earlier name and picture again.'),
|
|
83
96
|
agent('DELETE /api/project-agents/:agentId', 'cleanup_test_project_agents'),
|
|
97
|
+
agent('POST /api/project-agents/:agentId/dismissal', 'dismiss_project_agent'),
|
|
84
98
|
delegable('organisation', 'PUT /api/project-agents/:agentId/occupation', 'Set the earlier occupation again.'),
|
|
85
99
|
delegable('organisation', 'POST /api/occupations', 'Archive it, or delete it while nobody holds it.'),
|
|
86
100
|
delegable('organisation', 'PUT /api/occupations/:key', 'Save the earlier name and duties again.'),
|
|
@@ -124,13 +138,13 @@ const UI_MUTATION_PARITY = Object.freeze([
|
|
|
124
138
|
agent('POST /api/personal-review/:draftId/decision', 'review_personal_draft'),
|
|
125
139
|
agent('POST /api/review/:proposalId/decision', 'review_project_proposal'),
|
|
126
140
|
agent('POST /api/preference-conflicts/defer', 'defer_preference_conflict'),
|
|
127
|
-
|
|
141
|
+
relayed('POST /api/preference-conflicts/:conflictId/complete', 'Revise the kept preference with revise_personal_knowledge; the ruling stays in its history.'),
|
|
128
142
|
agent('PATCH /api/knowledge/:itemKind/:itemId', 'revise_personal_knowledge'),
|
|
129
143
|
agent('POST /api/knowledge-tags', 'change_knowledge_tags'),
|
|
130
144
|
agent('POST /api/knowledge-tags/governance/preview', 'change_knowledge_tags'),
|
|
131
145
|
delegable('projects', 'POST /api/knowledge-tags/governance', 'Apply the governance undo of that change.'),
|
|
132
146
|
agent('POST /api/knowledge/:itemKind/:itemId/assignment', 'reassign_personal_knowledge'),
|
|
133
|
-
|
|
147
|
+
relayed('POST /api/knowledge/:itemKind/:itemId/preference-scope', 'Set the earlier visibility again.'),
|
|
134
148
|
delegable('projects', 'POST /api/knowledge/:itemKind/:itemId/scope', 'Set the earlier scope again.'),
|
|
135
149
|
delegable('projects', 'POST /api/knowledge/session-migration', 'Set each moved item\'s scope back with POST /api/knowledge/:itemKind/:itemId/scope.'),
|
|
136
150
|
agent('POST /api/knowledge/entity/:itemId/project-action/preview', 'preview_personal_project_action'),
|
|
@@ -139,16 +153,23 @@ const UI_MUTATION_PARITY = Object.freeze([
|
|
|
139
153
|
local('POST /api/knowledge/:itemKind/:itemId/hard-delete/export', 'The full-text export of a permanent deletion preview is part of the person\'s console-only decision (rec#5 C9). An Agent may only suggest the person opens the item page.'),
|
|
140
154
|
local('POST /api/knowledge/:itemKind/:itemId/hard-delete/status', 'Settling a permanent delete whose answer was lost, and finishing its local cleanup, belongs to the local console that started it.'),
|
|
141
155
|
local('POST /api/knowledge/:itemKind/:itemId/hard-delete', 'A permanent delete needs the person\'s second confirmation of the exact preview in the local console; no Agent or MCP tool can perform or confirm it.'),
|
|
142
|
-
|
|
156
|
+
relayed('POST /api/knowledge/batch-confirmation', 'Return each item to pending with revise_personal_knowledge.'),
|
|
143
157
|
agent('POST /api/employee-templates/:templateId/recruit', 'recruit_employee'),
|
|
144
158
|
agent('POST /api/employee-templates/:templateId/call', 'call_employee_tool'),
|
|
145
|
-
|
|
159
|
+
relayed('PATCH /employee-workspaces/:templateId/:projectId/api/work-items/:itemId/status', 'Move the task back to its earlier status.'),
|
|
146
160
|
delegable('public_projects', 'PATCH /employee-workspaces/:templateId/:projectId/api/projects/:projectId/sharing', 'Set the project back to private.'),
|
|
147
161
|
local('POST /api/data-format/apply', 'Applying a data format migration rewrites real local data; a person confirms the previewed plan in the local console or at a terminal (fuli migrate apply). Agents may run fuli migrate status or preview, which only read.'),
|
|
148
|
-
|
|
162
|
+
relayed('POST /api/data-format/dismiss-notices', 'Not undone; the reminders were about migrations already finished.'),
|
|
149
163
|
local('POST /api/data-format/rollback', 'Undoing a data format migration changes real local data and is confirmed by a person in the local console or with fuli migrate rollback.'),
|
|
150
164
|
local('POST /api/data-format/prune', 'Pruning format backups and graph undo journals deletes what a later undo or restore could use; the person checks an unverified prune in the local console or with fuli migrate prune.'),
|
|
151
165
|
local('POST /api/data-format/restore', 'A whole-store restore discards every change made after the backup and restarts FULI; the person confirms exactly what it discards in the local console, or runs fuli migrate restore with FULI stopped.'),
|
|
166
|
+
// 旧数据 (rec#80 group B). Unlike POST /api/data-format/restore, the shelf's
|
|
167
|
+
// restore keeps the store as it is now as a new format backup first, so it
|
|
168
|
+
// is reversible the same way and needs no preview the person confirms.
|
|
169
|
+
delegable('settings', 'POST /api/old-data/:id/restore', 'Restore the backup this restore kept of the store as it was (the newest one read_old_data lists for it).'),
|
|
170
|
+
// Local for now: permanent deletion of old data waits for rec#80's relay
|
|
171
|
+
// kind (PR #659), through which the person approves an Agent's request.
|
|
172
|
+
local('POST /api/old-data/:id/delete', 'Deleting old data now cannot be undone; the person deletes it in Settings › 存储 on this computer. An Agent lists and reads it with read_old_data.'),
|
|
152
173
|
delegable('services_apps', 'POST /api/agent-apps/:appId/approve', 'Disable the app or roll it back.'),
|
|
153
174
|
delegable('services_apps', 'POST /api/agent-apps/:appId/disable', 'Start it again.'),
|
|
154
175
|
delegable('services_apps', 'POST /api/agent-apps/:appId/rollback', 'Approve the newer version again.'),
|
|
@@ -159,7 +180,7 @@ const UI_MUTATION_PARITY = Object.freeze([
|
|
|
159
180
|
delegable('services_apps', 'POST /api/agent-apps/:appId/stop', 'Start it.'),
|
|
160
181
|
local('POST /api/agent-apps/:appId/confirm', 'Opening a terminal window for the typed app-name confirmation of an approval or rollback is the local person\'s button; the person answers in that window, and no Agent tool opens it.'),
|
|
161
182
|
delegable('services_apps', 'POST /api/agent-apps/:appId/export', 'Remove the new export folder.'),
|
|
162
|
-
|
|
183
|
+
relayed('POST /api/agent-apps/:appId/reveal-export', 'Nothing to undo; it only shows the folder.'),
|
|
163
184
|
delegable('services_apps', 'POST /api/agent-apps/:appId/restart', 'Stop it if it should stay off.'),
|
|
164
185
|
]);
|
|
165
186
|
|
|
@@ -173,6 +194,7 @@ export function agentInterfaceCatalog() {
|
|
|
173
194
|
'Use the named Agent tool instead of browser automation for FULI data reads and writes.',
|
|
174
195
|
'Read the tool schema and current record before writes; preserve versions, scopes, and idempotency keys.',
|
|
175
196
|
'agent_delegable and agent_delegable_off entries run through run_delegated_action only while the person keeps their category on (Settings › AI permissions); each call is recorded with its undo. Act only when the task needs it.',
|
|
197
|
+
'agent_relayed entries are the person\'s own decisions: ask them in chat and pass their exact words as personWords to run_delegated_action; FULI runs it only when those words are in their recent messages of this session.',
|
|
176
198
|
'local_user_only entries are deliberate trust boundaries, not missing interfaces; no permission opens them.',
|
|
177
199
|
],
|
|
178
200
|
coverage: {
|
|
@@ -180,13 +202,14 @@ export function agentInterfaceCatalog() {
|
|
|
180
202
|
agentControlled: count('agent'),
|
|
181
203
|
agentDelegable: count('agent_delegable'),
|
|
182
204
|
agentDelegableOff: count('agent_delegable_off'),
|
|
205
|
+
agentRelayed: count('agent_relayed'),
|
|
183
206
|
localUserOnly: count('local_user_only'),
|
|
184
207
|
},
|
|
185
208
|
delegationCategories: structuredClone(DELEGATION_CATEGORIES),
|
|
186
209
|
uiMutationParity,
|
|
187
210
|
readWorkflows: [
|
|
188
211
|
{ domain: 'human-attention', toolNames: ['list_agent_attention', 'request_agent_attention', 'cancel_agent_attention'], guidance: 'Ask in the live conversation when the person is present; raise a hand only for an explicit human action while they are away. Answers arrive as attention_replies (task entry, read_agent_messages, agent_chat wait). Responses do not grant permissions or accept tasks.' },
|
|
189
|
-
{ domain: 'projects', toolNames: ['list_knowledge_spaces', 'list_personal_projects', 'list_project_releases', 'list_project_relations'] },
|
|
212
|
+
{ domain: 'projects', toolNames: ['list_knowledge_spaces', 'list_personal_projects', 'list_project_releases', 'list_project_relations'], readRoutes: ['GET /api/personal-projects/:projectId/history'], guidance: 'Every real profile change is recorded on its own, with who made it; the history is append-only and read in the console.' },
|
|
190
213
|
{ domain: 'knowledge', toolNames: ['search_knowledge_graph', 'get_knowledge_graph', 'get_user_taste_skill', 'list_preference_conflicts'] },
|
|
191
214
|
{ domain: 'knowledge-tags', toolNames: ['resolve_knowledge_tags'], readRoutes: ['GET /api/knowledge-tags', 'GET /api/knowledge-tags/metrics'], guidance: 'Resolve before creating. Reuse an exact or alias match; similar is a candidate only. Make a synonym reuse a tag with add_alias, never a second tag. A merged tag\'s ID and words lead to the tag it went into. Tags organize retrieval; they never grant access or confirm knowledge. Merging, splitting, approving or retiring applies POST /api/knowledge-tags/governance (run_delegated_action, projects permission).' },
|
|
192
215
|
{ domain: 'people-and-tasks', toolNames: ['get_project_team', 'list_project_agents', 'list_project_agent_assignments', 'list_project_agent_tasks', 'view_project_agent_task', 'view_project_agent_activity', 'list_project_agent_recruitments'], guidance: 'After @FLG … 一起看 (task entry flg.status together), flg.context indexes only the confirmed members: read a full task with view_project_agent_task and knowledge with search_current_project_knowledge for that member\'s project. Read-only: never change their tasks or assignments, and never read another FLA\'s working memory with get_project_agent_memory; it stays private to that FLA.' },
|
|
@@ -205,8 +228,10 @@ export function agentInterfaceCatalog() {
|
|
|
205
228
|
{ domain: 'agent-services', toolNames: ['report_agent_service'], readRoutes: ['GET /api/agent-services', 'GET /api/agent-services/:serviceId/log'], guidance: 'Register each long-running server you start (address, purpose, pid, command) and update it when you stop or restart it. Agent app workbenches are recorded by FULI. Stopping one service through FULI, deleting a record or clearing a log runs through run_delegated_action (services_apps permission); pausing many is pause_work_surfaces.' },
|
|
206
229
|
{ domain: 'work-surfaces', toolNames: ['list_work_surfaces', 'pause_work_surfaces', 'resume_work_surfaces'], readRoutes: ['GET /api/work-surfaces', 'GET /api/work-surfaces/pauses'], guidance: 'Every FLA\'s Agent services, Agent apps, workflows and workbenches in one table; filter by FLA, project, kind, state or text. Pause snapshots and turns off what is on among services and apps; workflows and workbenches have no off switch and are only listed. Resume reopens exactly what that pause turned off; an Agent service is not restarted by FULI (restart_required). The person and Agents may both do it.' },
|
|
207
230
|
{ domain: 'agent-workflows', toolNames: ['list_agent_workflows', 'read_agent_workflow', 'propose_agent_workflow', 'record_agent_workflow_run', 'list_workflow_candidates'], readRoutes: ['GET /api/agent-workflows'], guidance: 'Your own repeated work as named steps. Read the index first and one active workflow only when the task needs it. Propose from a repeated candidate or your own steps; it waits for a decision: the person\'s in the console, or one an FLA records for them with run_delegated_action (organisation permission). Nothing runs by itself; record a run you did.' },
|
|
208
|
-
{ domain: 'delegated-actions', toolNames: ['run_delegated_action'], readRoutes: ['GET /api/agent-delegation'], guidance: 'A console change made for the person: pass the exact route of an agent_delegable or
|
|
231
|
+
{ domain: 'delegated-actions', toolNames: ['run_delegated_action'], readRoutes: ['GET /api/agent-delegation'], guidance: 'A console change made for the person: pass the exact route of an agent_delegable, agent_delegable_off or agent_relayed entry, its params and body, and why. Refused while its category is off; then tell the person where to turn it on, never retry another way. agent_relayed entries are the person\'s own decisions (attention replies, Tonborg votes, conflict rulings, confirmations, Jefa acceptance, their profile and first-run answers): ask them in chat, then pass their exact words as personWords. FULI looks for those words in the message that began your task and their last 20 saved messages of this session, and records the decision as theirs, relayed by you, with the quote; person_words_not_found means ask them again, never rephrase, shorten into new meaning or invent words they did not say. Every call is recorded with who, task and undo; mention the returned delegation_receipt in your reply. Their messages to FLAs stay theirs alone, and your own judgment is never relayed: record it with your own tools as agent-confirmed.' },
|
|
232
|
+
{ domain: 'old-data', toolNames: ['read_old_data'], readRoutes: ['GET /api/old-data'], guidance: 'Backups FULI kept before a change (format backups, graph exports, settings and client configuration copies, old logs) and how much live and old data take. Read a backup\'s text files to answer from it. restorable items go back with run_delegated_action POST /api/old-data/:id/restore (settings permission; FULI restarts); a graph export only at a terminal (restoreCommand). Deleting one now is the person\'s, in Settings › 存储.' },
|
|
209
233
|
{ domain: 'session-records', toolNames: ['read_session_records'], readRoutes: ['GET /api/session-records'], guidance: 'Only the session of the calling task. Records a turn of this session made in another project are never returned, not even as a count; the person opens the console list for them.' },
|
|
234
|
+
{ domain: 'diagnostics', toolNames: ['read_diagnostic_events'], readRoutes: ['GET /api/diagnostics/events'], guidance: 'FULI\'s own runtime failures (hooks, HTTP API, Graph Provider start, MCP tools), newest first with counts by component, level and code; filter by from/to, component, level and code, page with nextCursor. An empty page is not proof of health: read truncated, sourcesUnavailable and notCovered. When FULI is down, the person or a shell runs fuli diagnostics, which reads the same files. Read only; events hold no prompts, knowledge, tokens or query values.' },
|
|
210
235
|
{ domain: 'policy-and-health', toolNames: ['get_capture_policy', 'explain_settings', 'get_project_agent_coordination_policy', 'get_project_agent_recruitment_policy', 'get_graphiti_status'], readRoutes: ['GET /api/system/doctor'], guidance: 'The doctor (体检) lists what keeps FULI from working and who fixes it: fix auto items are repaired by 「自动修复」 (POST /api/system/doctor/repair, run_delegated_action with the settings permission); fix person items need the person, such as confirming a data format migration or restarting client sessions. Read only; never confirm a migration or restart a session for them.' },
|
|
211
236
|
],
|
|
212
237
|
};
|
|
@@ -228,6 +253,11 @@ function delegable(category, route, undo) {
|
|
|
228
253
|
category, undo });
|
|
229
254
|
}
|
|
230
255
|
|
|
256
|
+
// The person's own decision an FLA relays in their words (rec#80).
|
|
257
|
+
function relayed(route, undo) {
|
|
258
|
+
return Object.freeze({ route, access: 'agent_relayed', category: 'decisions', undo });
|
|
259
|
+
}
|
|
260
|
+
|
|
231
261
|
// The catalog entry an exact route names ('PUT /api/occupations/:key'), or
|
|
232
262
|
// the one a request's method and path match; null when there is none.
|
|
233
263
|
export function interfaceForRoute(route) {
|
|
@@ -7,7 +7,7 @@ const tokens = integerSchema({ minimum: 0 });
|
|
|
7
7
|
|
|
8
8
|
export const MODEL_BACKEND_DEFINITIONS = [
|
|
9
9
|
{ name: 'get_model_usage', title: 'READ · Built-in Agent model usage',
|
|
10
|
-
description: 'Model API usage of
|
|
10
|
+
description: 'Model API usage of built-in Agents (assistant=Astro) and semantic search by role, provider, model and channel, with each role\'s budget window. One record per attempt; requests are distinct requestIds. Unknown usage stays null, never 0; cost is a configured-price estimate. No prompts or keys.',
|
|
11
11
|
inputSchema: objectSchema({ role: enumSchema(MODEL_BACKEND_ROLES), from: dateTime, to: dateTime }) },
|
|
12
12
|
{ name: 'role_work', title: 'WRITE · Built-in Agent work package',
|
|
13
13
|
description: 'Answer a built-in Agent\'s handed-off work package in this session. claim (optional packageId) returns instructions, evidence, answerSchema and a lease; submit sends answer within it. The host validates it like a model answer; the role keeps its permission gates. Late or mismatched answers are stale. Never an independent verification.',
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { boundedString, objectSchema } from './schema.js';
|
|
2
|
+
|
|
3
|
+
// The person's own AI reads their old data (rec#80 group B), read-only. Full
|
|
4
|
+
// profile only; chat reaches it through list_agent_interfaces/fuli_call.
|
|
5
|
+
// Restoring is run_delegated_action; deleting now is the person's.
|
|
6
|
+
export const OLD_DATA_DEFINITIONS = [
|
|
7
|
+
{
|
|
8
|
+
name: 'read_old_data',
|
|
9
|
+
title: 'READ · Old data FULI kept',
|
|
10
|
+
description: 'No id: every backup FULI kept before a change (what left it, when, bytes, restorable) and the live/old data sizes. id: its files. id+path: one text file, first 32 KB; binaries refused. Restore: run_delegated_action POST /api/old-data/:id/restore; deleting is the person\'s.',
|
|
11
|
+
inputSchema: objectSchema({
|
|
12
|
+
id: boundedString(600),
|
|
13
|
+
path: boundedString(600)
|
|
14
|
+
})
|
|
15
|
+
}
|
|
16
|
+
];
|
|
@@ -10,7 +10,7 @@ export const TASK_ENTRY_DEFINITIONS = [
|
|
|
10
10
|
{
|
|
11
11
|
name: 'begin_task_context',
|
|
12
12
|
title: 'LIFECYCLE · Begin a Fuli-aware task',
|
|
13
|
-
description: 'Supported Agent hooks call before the model processes a user prompt. Resolves the exact local project from projectPath and loads effective collaboration preferences. Uses taskPrompt transiently for bounded automatic recall of signaled stable prior facts, runbooks, URLs, decisions, releases, deployments, or authentication methods. Never
|
|
13
|
+
description: 'Supported Agent hooks call before the model processes a user prompt. Resolves the exact local project from projectPath and loads effective collaboration preferences. Uses taskPrompt transiently for bounded automatic recall of signaled stable prior facts, runbooks, URLs, decisions, releases, deployments, or authentication methods. Never returns projectPath/taskPrompt; a hook entry keeps taskPrompt locally to checkpoint, for relay checks. Inspect task_knowledge_recall before reasking stable context. Returns opaque taskContextToken and required agent_receipt; include agent_receipt.markdown unchanged exactly once in every final user-visible reply, including greetings/capture-disabled tasks. Fuli setup generates Claude Code/Codex UserPromptSubmit hook configuration and a Cursor task-entry adapter; configuration proves neither host loading, trust, nor execution. Use supplied hook context without repeating preference fallback. Cursor retrieves context through the Agent if its hook cannot inject it.',
|
|
14
14
|
inputSchema: objectSchema({
|
|
15
15
|
sessionId: id,
|
|
16
16
|
turnId: id,
|
|
@@ -16,7 +16,7 @@ export const WORK_SURFACE_DEFINITIONS = [
|
|
|
16
16
|
{
|
|
17
17
|
name: 'list_work_surfaces',
|
|
18
18
|
title: 'READ · All FLAs\' work surfaces',
|
|
19
|
-
description: 'One row each: kind, name, FLA, project, state, on, pausable, changedAt. Filters combine.',
|
|
19
|
+
description: 'One row each: kind, name, FLA, project, state, on, pausable, changedAt. Filters combine. partial/truncated: narrow by agentId or personalProjectId.',
|
|
20
20
|
inputSchema: objectSchema(filter)
|
|
21
21
|
},
|
|
22
22
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { randomUUID } from 'node:crypto';
|
|
3
|
-
import { PASS_TASK_TOKEN, TASK_RULES_ON_DEMAND, taskClosingInstruction } from '../lifecycle-message.js';
|
|
3
|
+
import { hookFailureCause, PASS_TASK_TOKEN, TASK_RULES_ON_DEMAND, taskClosingInstruction } from '../lifecycle-message.js';
|
|
4
4
|
import { transcriptLifecycle } from '../../conversations/transcript-lifecycle.js';
|
|
5
5
|
import { transcriptCaptureScope } from '../../conversations/sync-transcript.js';
|
|
6
6
|
import { captureDecision, withCaptureLookups } from '../../graphiti/capture-decision.js';
|
|
@@ -23,12 +23,15 @@ import { createRuntimeLeaseClient } from '../../adaptive-runtime/lease-client.js
|
|
|
23
23
|
import { openFederatedGraphApplication } from '../../graphiti/federated-application.js';
|
|
24
24
|
import { resolveGraphRuntimeOptions } from '../../graphiti/runtime-config.js';
|
|
25
25
|
import { isMainModule } from '../../system/main-module.js';
|
|
26
|
+
import { recordHookFailure, runtimeConfigPathOf } from '../lifecycle-failure.js';
|
|
26
27
|
import { readHookInput } from '../lifecycle-input.js';
|
|
27
28
|
import { stopHookOutcome } from '../../conversations/stop-auto-close.js';
|
|
28
29
|
import { outdatedMcpNotice, withOutdatedMcpNotice } from '../../mcp/process-registry.js';
|
|
29
30
|
import { FULI_VERSION } from '../../package-metadata.js';
|
|
30
31
|
import { taskSceneInput } from '../../graphiti/task-scene.js';
|
|
31
32
|
import { entryBudget, entryNotice, noteEntryNotice, NO_TASK_AT_DEADLINE, partialEntryText, runWithEntryBudget } from '../../conversations/entry-budget.js';
|
|
33
|
+
import { recordDebugTurn } from '../../debug-turns/recorder.js';
|
|
34
|
+
import { withDebugMarkNotice, withoutDebugMark } from '../../debug-turns/trigger.js';
|
|
32
35
|
|
|
33
36
|
// Claude Code shows the model only a preview (about the first 10,000
|
|
34
37
|
// characters) of a hook context longer than that and saves the rest as a file
|
|
@@ -64,7 +67,7 @@ export async function claudeLifecycleOutput(event, input, invoke, { delivery, cu
|
|
|
64
67
|
if (basis) return withinInlineLimit(event, input,
|
|
65
68
|
await claudeRefreshOutput(event, input, invoke, { delivery, currentTask, onCurrentTask }, basis));
|
|
66
69
|
const context = await invoke('begin_task_context', {
|
|
67
|
-
sessionId, projectPath: input.cwd, taskPrompt: input.prompt.slice(0, 8192), ...source, ...taskSceneInput(input.prompt)
|
|
70
|
+
sessionId, projectPath: input.cwd, taskPrompt: withoutDebugMark(input.prompt).slice(0, 8192), ...source, ...taskSceneInput(withoutDebugMark(input.prompt))
|
|
68
71
|
});
|
|
69
72
|
const entry = compactTaskContext(context);
|
|
70
73
|
return withinInlineLimit(event, input, await preferenceHookOutput(entry, event, input, delivery, 'claude_code',
|
|
@@ -72,7 +75,7 @@ export async function claudeLifecycleOutput(event, input, invoke, { delivery, cu
|
|
|
72
75
|
false, { inlineChars: CLAUDE_ENTRY_INLINE_CHARS }));
|
|
73
76
|
}
|
|
74
77
|
const check = await invoke('verify_task_checkpoint', { sessionId, ...source });
|
|
75
|
-
return stopHookOutcome(check, invoke, source);
|
|
78
|
+
return stopHookOutcome(check, invoke, source, { reply: input.last_assistant_message });
|
|
76
79
|
}
|
|
77
80
|
|
|
78
81
|
// The last guard of the inline limit (rec#11 D-72): a context the bounded
|
|
@@ -201,7 +204,15 @@ export async function runClaudeLifecycleHook(args, dependencies = {}) {
|
|
|
201
204
|
if (entered) await endTurnsObservedAtEntry(ledger, held, input, CLAUDE_UNRESOLVED_TURNS);
|
|
202
205
|
return lifecycle;
|
|
203
206
|
}), request);
|
|
204
|
-
|
|
207
|
+
const delivered = event === 'UserPromptSubmit'
|
|
208
|
+
? withDebugMarkNotice(withOutdatedMcpNotice(output, notice()), input?.prompt) : output;
|
|
209
|
+
await recordDebugTurn({ runtimeConfigPath, sourceApplication: 'claude_code', event, input,
|
|
210
|
+
output: delivered, adapter: CLAUDE_TRANSCRIPT });
|
|
211
|
+
return delivered;
|
|
212
|
+
} catch (error) {
|
|
213
|
+
await recordDebugTurn({ runtimeConfigPath, sourceApplication: 'claude_code', event, input,
|
|
214
|
+
output: { hookFailed: hookFailureCause(error) }, adapter: CLAUDE_TRANSCRIPT });
|
|
215
|
+
throw error;
|
|
205
216
|
} finally {
|
|
206
217
|
await Promise.allSettled([close(leases), close(app)]);
|
|
207
218
|
}
|
|
@@ -243,6 +254,7 @@ async function main() {
|
|
|
243
254
|
const timeoutMs = Number.isSafeInteger(configured) && configured > 0 && configured <= 2_147_483_647
|
|
244
255
|
? configured : 28000;
|
|
245
256
|
const controller = new AbortController();
|
|
257
|
+
const startedAt = Date.now();
|
|
246
258
|
let input = null;
|
|
247
259
|
let emitted = false;
|
|
248
260
|
const emit = (output, callback) => {
|
|
@@ -265,8 +277,10 @@ async function main() {
|
|
|
265
277
|
captureTimeoutMs: Math.max(1, Math.min(750, Math.floor(timeoutMs / 4))),
|
|
266
278
|
readInput: async () => { input = await readHookInput(); return input; } }));
|
|
267
279
|
emit(output);
|
|
268
|
-
} catch {
|
|
280
|
+
} catch (error) {
|
|
269
281
|
emit(controller.signal.aborted ? claudeEntryDeadlineOutput(event, input, budget) : claudeLifecycleUnavailable(event, input));
|
|
282
|
+
recordHookFailure({ runtimeConfigPath: runtimeConfigPathOf(args), client: 'claude_code', event, error,
|
|
283
|
+
sessionId: input?.session_id, startedAt });
|
|
270
284
|
} finally {
|
|
271
285
|
clearTimeout(abort);
|
|
272
286
|
clearTimeout(deadline);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { homedir } from 'node:os';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
|
|
4
|
+
import { countTranscriptTail } from '../transcript-format-scan.js';
|
|
5
|
+
import { normalizeClaudeRecord } from './conversation-transcript.js';
|
|
6
|
+
|
|
7
|
+
// Whether FULI still reads Claude Code's private JSONL format: its newest
|
|
8
|
+
// transcript's tail, counted by the parser capture uses
|
|
9
|
+
// (conversation-transcript.js). Only turns are judged: Claude Code adds record
|
|
10
|
+
// types of its own all the time, and those say nothing about a turn's format.
|
|
11
|
+
const PARSED_TYPES = new Set(['user', 'assistant']);
|
|
12
|
+
const SKIPPED_BLOCKS = new Set(['thinking', 'redacted_thinking', 'image', 'document']);
|
|
13
|
+
const leftOut = (block) => SKIPPED_BLOCKS.has(block?.type) || (block?.type === 'text' && block.text === '');
|
|
14
|
+
|
|
15
|
+
function recognizeClaudeRecord(record) {
|
|
16
|
+
if (!PARSED_TYPES.has(record?.type)) return null;
|
|
17
|
+
if (typeof record.sessionId !== 'string') return false;
|
|
18
|
+
if (normalizeClaudeRecord(record, record.sessionId).length) return true;
|
|
19
|
+
// An empty message, or one of only thinking, images or empty text, is left out by design.
|
|
20
|
+
const content = record.message?.content;
|
|
21
|
+
if (typeof content === 'string') return null;
|
|
22
|
+
return Array.isArray(content) && content.every(leftOut) ? null : false;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Claude Code keeps projects/<encoded-cwd>/<session>.jsonl under CLAUDE_CONFIG_DIR or ~/.claude.
|
|
26
|
+
export const claudeTranscriptFormat = Object.freeze({
|
|
27
|
+
clientId: 'claude-code',
|
|
28
|
+
root: (env) => join(env.CLAUDE_CONFIG_DIR || join(homedir(), '.claude'), 'projects'),
|
|
29
|
+
depth: 1,
|
|
30
|
+
probe: (path) => countTranscriptTail(path, recognizeClaudeRecord)
|
|
31
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { randomUUID } from 'node:crypto';
|
|
3
|
-
import { PASS_TASK_TOKEN, TASK_RULES_ON_DEMAND, taskClosingInstruction } from '../lifecycle-message.js';
|
|
3
|
+
import { hookFailureCause, PASS_TASK_TOKEN, TASK_RULES_ON_DEMAND, taskClosingInstruction } from '../lifecycle-message.js';
|
|
4
|
+
import { recordHookFailure } from '../lifecycle-failure.js';
|
|
4
5
|
import { outdatedMcpNotice, withOutdatedMcpNotice } from '../../mcp/process-registry.js';
|
|
5
6
|
import { FULI_VERSION } from '../../package-metadata.js';
|
|
6
7
|
import { transcriptLifecycle } from '../../conversations/transcript-lifecycle.js';
|
|
@@ -25,6 +26,8 @@ import { readHookInput } from '../lifecycle-input.js';
|
|
|
25
26
|
import { stopHookOutcome } from '../../conversations/stop-auto-close.js';
|
|
26
27
|
import { taskSceneInput } from '../../graphiti/task-scene.js';
|
|
27
28
|
import { entryBudget, entryNotice, noteEntryNotice, NO_TASK_AT_DEADLINE, partialEntryText, runWithEntryBudget } from '../../conversations/entry-budget.js';
|
|
29
|
+
import { recordDebugTurn } from '../../debug-turns/recorder.js';
|
|
30
|
+
import { withDebugMarkNotice, withoutDebugMark } from '../../debug-turns/trigger.js';
|
|
28
31
|
|
|
29
32
|
// Task entry gets longer: a warm entry already takes 2–4 s on a Mac and a cold
|
|
30
33
|
// first one ran past 5 s, which costs the model two fallback requests. Both
|
|
@@ -52,7 +55,7 @@ export async function codexStopLifecycleOutput(input, invoke) {
|
|
|
52
55
|
});
|
|
53
56
|
// Never force another model turn. A hook-delivered task with no checkpoint
|
|
54
57
|
// is closed as honestly reported retain_nothing; others get the reminder.
|
|
55
|
-
return stopHookOutcome(check, invoke, { sourceApplication: 'codex', sourceSessionId: sessionId });
|
|
58
|
+
return stopHookOutcome(check, invoke, { sourceApplication: 'codex', sourceSessionId: sessionId }, { reply: input?.last_assistant_message });
|
|
56
59
|
}
|
|
57
60
|
|
|
58
61
|
export async function codexLifecycleOutput(event, input, invoke, { delivery, currentTask, entryRefusal, onCurrentTask } = {}) {
|
|
@@ -70,8 +73,8 @@ export async function codexLifecycleOutput(event, input, invoke, { delivery, cur
|
|
|
70
73
|
if (codexRefreshTurn(event, input)) return refreshCurrentTaskInPlace(event, input, invoke, CODEX_UNRESOLVED_TURNS,
|
|
71
74
|
{ delivery, currentTask, onCurrentTask });
|
|
72
75
|
const context = await invoke('begin_task_context', { sessionId: input.session_id,
|
|
73
|
-
turnId: input.turn_id ?? null, projectPath: input.cwd, taskPrompt: input.prompt.slice(0, 8192),
|
|
74
|
-
sourceApplication: 'codex', sourceSessionId: input.session_id, ...taskSceneInput(input.prompt) });
|
|
76
|
+
turnId: input.turn_id ?? null, projectPath: input.cwd, taskPrompt: withoutDebugMark(input.prompt).slice(0, 8192),
|
|
77
|
+
sourceApplication: 'codex', sourceSessionId: input.session_id, ...taskSceneInput(withoutDebugMark(input.prompt)) });
|
|
75
78
|
const entry = compactTaskContext(context);
|
|
76
79
|
const output = await preferenceHookOutput(entry, event, input, delivery, 'codex',
|
|
77
80
|
'Fuli task context. Apply effective_preferences. ' + taskClosingInstruction(entry) + PASS_TASK_TOKEN + TASK_RULES_ON_DEMAND);
|
|
@@ -153,9 +156,16 @@ export async function runCodexLifecycleHook(args, dependencies = {}) {
|
|
|
153
156
|
if (entered) await endTurnsObservedAtEntry(ledger, held, input, CODEX_UNRESOLVED_TURNS);
|
|
154
157
|
return lifecycle;
|
|
155
158
|
}, { signal: dependencies.signal });
|
|
156
|
-
const delivered = event === 'UserPromptSubmit'
|
|
159
|
+
const delivered = event === 'UserPromptSubmit'
|
|
160
|
+
? withDebugMarkNotice(withOutdatedMcpNotice(output, notice()), input?.prompt) : output;
|
|
157
161
|
write(`${JSON.stringify(delivered)}\n`);
|
|
162
|
+
// After the host has its answer; a #fulidebug record never changes or delays it.
|
|
163
|
+
await recordDebugTurn({ runtimeConfigPath, sourceApplication: 'codex', event, input, output: delivered, adapter: CODEX_TRANSCRIPT });
|
|
158
164
|
return delivered;
|
|
165
|
+
} catch (error) {
|
|
166
|
+
await recordDebugTurn({ runtimeConfigPath, sourceApplication: 'codex', event, input,
|
|
167
|
+
output: { hookFailed: hookFailureCause(error) }, adapter: CODEX_TRANSCRIPT });
|
|
168
|
+
throw error;
|
|
159
169
|
} finally {
|
|
160
170
|
await cleanup();
|
|
161
171
|
}
|
|
@@ -274,7 +284,15 @@ export async function runCodexLifecycleCommand(args, dependencies = {}) {
|
|
|
274
284
|
(dependencies.write ?? (value => process.stdout.write(value)))(value);
|
|
275
285
|
};
|
|
276
286
|
let input = null;
|
|
287
|
+
let runtimeConfigPath = null;
|
|
288
|
+
const startedAt = Date.now();
|
|
277
289
|
const readInput = dependencies.readInput ?? readHookInput;
|
|
290
|
+
// The hook's own resolution, kept so a failure is recorded where its data lives.
|
|
291
|
+
const resolveRuntimeOptions = (...resolveArgs) => {
|
|
292
|
+
const options = (dependencies.resolveRuntimeOptions ?? resolveGraphRuntimeOptions)(...resolveArgs);
|
|
293
|
+
runtimeConfigPath = options?.runtimeConfigPath ?? null;
|
|
294
|
+
return options;
|
|
295
|
+
};
|
|
278
296
|
const unavailable = cause => `${JSON.stringify(codexLifecycleUnavailable(event, input, cause))}\n`;
|
|
279
297
|
const budget = entryBudget(timeoutMs);
|
|
280
298
|
let cleanup = async () => {};
|
|
@@ -293,11 +311,13 @@ export async function runCodexLifecycleCommand(args, dependencies = {}) {
|
|
|
293
311
|
});
|
|
294
312
|
try {
|
|
295
313
|
const running = runWithEntryBudget(budget, () => runCodexLifecycleHook(args, { ...dependencies, signal: controller.signal, write,
|
|
314
|
+
resolveRuntimeOptions,
|
|
296
315
|
captureTimeoutMs: Math.max(1, Math.min(750, Math.floor(timeoutMs / 4))),
|
|
297
316
|
readInput: async () => { input = await readInput(); return input; },
|
|
298
|
-
onCleanup: close => { cleanup = close; } })).then(() => ({ timedOut: false }), () => {
|
|
317
|
+
onCleanup: close => { cleanup = close; } })).then(() => ({ timedOut: false }), (error) => {
|
|
299
318
|
// Never print prompts, transcripts, paths or credentials.
|
|
300
|
-
write(unavailable(
|
|
319
|
+
write(unavailable(hookFailureCause(error)));
|
|
320
|
+
recordHookFailure({ runtimeConfigPath, client: 'codex', event, error, sessionId: input?.session_id, startedAt });
|
|
301
321
|
return { timedOut: false };
|
|
302
322
|
});
|
|
303
323
|
return await Promise.race([running, expired]);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { homedir } from 'node:os';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
|
|
4
|
+
import { countTranscriptTail } from '../transcript-format-scan.js';
|
|
5
|
+
import { normalizeCodexRecord } from './conversation-transcript.js';
|
|
6
|
+
|
|
7
|
+
// Whether FULI still reads Codex's private rollout format: its newest
|
|
8
|
+
// rollout's tail, counted by the parser capture uses
|
|
9
|
+
// (conversation-transcript.js). Records the parser leaves out by design
|
|
10
|
+
// (developer messages, analysis) are not counted. Only messages are judged:
|
|
11
|
+
// Codex adds record and item types of its own, which say nothing about a turn.
|
|
12
|
+
|
|
13
|
+
function recognizeCodexRecord(record) {
|
|
14
|
+
if (normalizeCodexRecord(record).length) return true;
|
|
15
|
+
const item = record?.payload;
|
|
16
|
+
if (record?.type !== 'response_item' || item?.type !== 'message') return null;
|
|
17
|
+
if (typeof item.role !== 'string') return false;
|
|
18
|
+
// Developer and analysis messages, and an empty turn, are left out by design.
|
|
19
|
+
if (!['user', 'assistant'].includes(item.role) || item.channel === 'analysis') return null;
|
|
20
|
+
return Array.isArray(item.content) && item.content.length === 0 ? null : false;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Codex keeps sessions/YYYY/MM/DD/rollout-*.jsonl under CODEX_HOME or ~/.codex.
|
|
24
|
+
export const codexTranscriptFormat = Object.freeze({
|
|
25
|
+
clientId: 'codex',
|
|
26
|
+
root: (env) => join(env.CODEX_HOME || join(homedir(), '.codex'), 'sessions'),
|
|
27
|
+
depth: 3,
|
|
28
|
+
probe: (path) => countTranscriptTail(path, recognizeCodexRecord)
|
|
29
|
+
});
|
|
@@ -4,6 +4,7 @@ import { callAgentTool } from '../../agent-tools.js';
|
|
|
4
4
|
import { createRuntimeLeaseClient } from '../../adaptive-runtime/lease-client.js';
|
|
5
5
|
import { openFederatedGraphApplication } from '../../graphiti/federated-application.js';
|
|
6
6
|
import { isMainModule } from '../../system/main-module.js';
|
|
7
|
+
import { recordHookFailure, runtimeConfigPathOf } from '../lifecycle-failure.js';
|
|
7
8
|
import { readHookInput } from '../lifecycle-input.js';
|
|
8
9
|
import { resolveGraphRuntimeOptions } from '../../graphiti/runtime-config.js';
|
|
9
10
|
import { sessionFuliCommandResult, sessionFuliEntryRefusal, sessionFuliSessionBegan } from '../../conversations/session-fuli-entry.js';
|
|
@@ -123,14 +124,16 @@ async function closeQuietly(resource) {
|
|
|
123
124
|
async function main() {
|
|
124
125
|
const args = process.argv.slice(2);
|
|
125
126
|
const event = args[args.indexOf('--event') + 1];
|
|
127
|
+
const startedAt = Date.now();
|
|
126
128
|
try {
|
|
127
129
|
await runCursorLifecycleHook(args);
|
|
128
|
-
} catch {
|
|
130
|
+
} catch (error) {
|
|
129
131
|
// Don't print prompts, transcripts, runtime config, paths or credentials.
|
|
130
132
|
const warning = 'Fuli role context is unavailable; check the Provider connection. Memory recovery is not verified.';
|
|
131
133
|
process.stdout.write(`${JSON.stringify(event === 'beforeSubmitPrompt'
|
|
132
134
|
? { continue: true, user_message: warning }
|
|
133
135
|
: event === 'sessionStart' ? { additional_context: warning } : {})}\n`);
|
|
136
|
+
recordHookFailure({ runtimeConfigPath: runtimeConfigPathOf(args), client: 'cursor', event, error, startedAt });
|
|
134
137
|
}
|
|
135
138
|
}
|
|
136
139
|
|