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,7 +1,7 @@
|
|
|
1
1
|
import { InvalidInputError } from '../../../app/application-error.js';
|
|
2
2
|
import { arraySchema, booleanSchema, boundedString, enumSchema, integerSchema, objectSchema } from '../../../agent-tools/schema.js';
|
|
3
3
|
import { jsonSchemaToZod } from '../../../mcp/tool-schema.js';
|
|
4
|
-
import { parseProjectBoard, projectBoardSchema, TASK_STATUSES } from './project-board.js';
|
|
4
|
+
import { DUE_DATE_SCHEMA, parseProjectBoard, projectBoardSchema, TASK_STATUSES } from './project-board.js';
|
|
5
5
|
import { prepareSessionTitle, reportSessionTitle } from './session-titles.js';
|
|
6
6
|
|
|
7
7
|
// Jefa's nine workbench tools (docs/employee-agents.md). Each runs in the
|
|
@@ -24,13 +24,14 @@ const taskFields = {
|
|
|
24
24
|
acceptanceCriteria: arraySchema(boundedString(500), { maxItems: 20 }),
|
|
25
25
|
tags: arraySchema(boundedString(60), { maxItems: 12 }),
|
|
26
26
|
workType: boundedString(60),
|
|
27
|
-
boardColumn: boundedString(48)
|
|
27
|
+
boardColumn: boundedString(48),
|
|
28
|
+
dueDate: DUE_DATE_SCHEMA
|
|
28
29
|
};
|
|
29
30
|
|
|
30
31
|
const DEFINITIONS = [
|
|
31
|
-
tool('read_board', 'board.read', 'Read this project\'s board: tasks ordered by status (active, blocked, review, planned, done), then priority and recency. version changes on every board write; truncated means more tasks exist than limit. projectBoard is how the project\'s own board is set up: its project manager (managerAgentId, null when Jefa manages it directly) and board. A builtin board with columns names the person\'s own columns, each standing for one status; a task\'s boardColumn is the column it was moved to (none: the first column for its status). An external board means the project\'s work is tracked at its link, not here.',
|
|
32
|
-
objectSchema({ limit: integerSchema({ minimum: 1, maximum: BOARD_LIMIT_MAX }), statuses: arraySchema(enumSchema(ALL_STATUSES), { maxItems: 5 }) }),
|
|
33
|
-
(store, scope, input) => ({ ...store.board(scope, { limit: input.limit ?? BOARD_LIMIT_DEFAULT, statuses: input.statuses }),
|
|
32
|
+
tool('read_board', 'board.read', 'Read this project\'s board: tasks ordered by status (active, blocked, review, planned, done), then priority and recency. version changes on every board write; truncated means more tasks exist than limit. projectBoard is how the project\'s own board is set up: its project manager (managerAgentId, null when Jefa manages it directly) and board. A builtin board with columns names the person\'s own columns, each standing for one status; a task\'s boardColumn is the column it was moved to (none: the first column for its status). An external board means the project\'s work is tracked at its link, not here. times adds startedAt and columnSince to each task.',
|
|
33
|
+
objectSchema({ limit: integerSchema({ minimum: 1, maximum: BOARD_LIMIT_MAX }), statuses: arraySchema(enumSchema(ALL_STATUSES), { maxItems: 5 }), doneSince: boundedString(64), doneBefore: boundedString(64), times: booleanSchema() }),
|
|
34
|
+
(store, scope, input) => ({ ...store.board(scope, { limit: input.limit ?? BOARD_LIMIT_DEFAULT, statuses: input.statuses, doneSince: input.doneSince, doneBefore: input.doneBefore, times: input.times }),
|
|
34
35
|
projectBoard: store.projectBoard(scope) })),
|
|
35
36
|
tool('get_task', 'board.read', 'Read one task with its acceptance criteria and recent change history. Its updatedAt is the version update_tasks expects.',
|
|
36
37
|
objectSchema({ workItemId: id }, ['workItemId']),
|
|
@@ -38,7 +39,7 @@ const DEFINITIONS = [
|
|
|
38
39
|
tool('create_tasks', 'board.write', 'Create concise tasks for new work after reading the board to avoid duplicates. messageId makes a retry return the same tasks. New tasks are private and start planned unless a status or boardColumn (a custom column id, whose status the task takes) is given; done is never allowed.',
|
|
39
40
|
objectSchema({ messageId: requestId, tasks: arraySchema(objectSchema(taskFields, ['title']), { minItems: 1, maxItems: 20 }) }, ['messageId', 'tasks']),
|
|
40
41
|
(store, scope, input) => ({ createdWorkItems: store.create(scope, { requestId: input.messageId, tasks: input.tasks, actor: 'agent' }) })),
|
|
41
|
-
tool('update_tasks', 'board.write', 'Change tasks you read. Each update carries the task\'s updatedAt as expectedUpdatedAt; if any task changed meanwhile the whole request fails with version_conflict and nothing is written, so read again. requestId makes a retry return the same result. Agent completion moves a task to review; only the person marks it done. boardColumn moves a task to one of the project\'s custom columns and sets its status to the one that column stands for; a status change alone puts it in the first column for that status.',
|
|
42
|
+
tool('update_tasks', 'board.write', 'Change tasks you read. Each update carries the task\'s updatedAt as expectedUpdatedAt; if any task changed meanwhile the whole request fails with version_conflict and nothing is written, so read again. requestId makes a retry return the same result. Agent completion moves a task to review; only the person marks it done. boardColumn moves a task to one of the project\'s custom columns and sets its status to the one that column stands for; a status change alone puts it in the first column for that status. dueDate is a calendar day (YYYY-MM-DD); null clears it.',
|
|
42
43
|
objectSchema({ requestId, updates: arraySchema(objectSchema({ id, expectedUpdatedAt: boundedString(64), ...taskFields }, ['id', 'expectedUpdatedAt']), { minItems: 1, maxItems: 50 }) }, ['requestId', 'updates']),
|
|
43
44
|
(store, scope, input) => ({ updatedWorkItems: store.update(scope, { requestId: input.requestId, updates: input.updates, actor: 'agent' }) })),
|
|
44
45
|
tool('configure_project_board', 'board.write', 'Only on the person\'s explicit request: set up this project\'s own board. managerAgentId names the project\'s own project manager, an Agent with an active assignment in this project (null: Jefa manages it directly). board is either kind builtin with the person\'s own columns in order, each { label, mapsTo } standing for one status so Jefa still sees every project\'s progress (no columns: the built-in ones), or kind external with external.url (and an optional label) when the project is tracked on another board. Read projectBoard with read_board first and pass its revision as expectedRevision; keep each existing column\'s id when renaming or reordering it, and omit id only for a new column. An omitted field keeps its value. requestId makes a retry return the same result. Jefa\'s own flow and the built-in statuses never change.',
|
|
@@ -11,9 +11,27 @@ import { ASSISTANT_AGENT_ID } from '../graphiti/assistant-identity.js';
|
|
|
11
11
|
// The global assistant (Astro) answers outside projects; it has no project scope.
|
|
12
12
|
const globalOnly = manifest => employeeAgentId(manifest.id) === ASSISTANT_AGENT_ID;
|
|
13
13
|
|
|
14
|
+
// Jefa's board opens with one read per project, and each asked the Provider for
|
|
15
|
+
// every Agent and project: that, not the board, was the wait. The console's
|
|
16
|
+
// read-only calls in a burst share one answer; everything else reads fresh.
|
|
17
|
+
const BURST_READ_MS = 2000;
|
|
18
|
+
|
|
19
|
+
function sharedInBurst(read, now = Date.now) {
|
|
20
|
+
let at = 0;
|
|
21
|
+
let answer = null;
|
|
22
|
+
return () => {
|
|
23
|
+
if (answer && now() - at < BURST_READ_MS) return answer;
|
|
24
|
+
at = now();
|
|
25
|
+
answer = read().catch((error) => { answer = null; throw error; });
|
|
26
|
+
return answer;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
14
30
|
export function createEmployeeRecruitment({ app, registry, managementStore }) {
|
|
15
31
|
const locks = new Map();
|
|
16
32
|
const spaceId = app.config.personal.spaceId;
|
|
33
|
+
const burstProjects = sharedInBurst(() => app.listPersonalProjects({ personalSpaceId: spaceId }));
|
|
34
|
+
const burstAgents = sharedInBurst(() => app.listProjectAgents({ personalSpaceId: spaceId }));
|
|
17
35
|
|
|
18
36
|
function assertSpace(input) {
|
|
19
37
|
if (input.personalSpaceId && input.personalSpaceId !== spaceId) {
|
|
@@ -26,7 +44,7 @@ export function createEmployeeRecruitment({ app, registry, managementStore }) {
|
|
|
26
44
|
const id = input.personalProjectId;
|
|
27
45
|
if (!id && !required) return null;
|
|
28
46
|
if (!id) throw new EmployeeError('Select a project before opening the workbench', 400, 'project_required');
|
|
29
|
-
const projects = await app.listPersonalProjects({ personalSpaceId: spaceId });
|
|
47
|
+
const projects = await (input.readOnly ? burstProjects() : app.listPersonalProjects({ personalSpaceId: spaceId }));
|
|
30
48
|
const match = projects.find((entry) => entry.project_id === id);
|
|
31
49
|
if (!match || match.profile?.lifecycle === 'archived') {
|
|
32
50
|
throw new EmployeeError('Project is unavailable; create or select an active FULI project', 404, 'project_not_found');
|
|
@@ -199,7 +217,7 @@ export function createEmployeeRecruitment({ app, registry, managementStore }) {
|
|
|
199
217
|
const selectedProject = await project(input, true);
|
|
200
218
|
const { manifest } = registry.get(input.templateId);
|
|
201
219
|
// All-project policy also covers projects without a materialized assignment.
|
|
202
|
-
const agents = await app.listProjectAgents({ personalSpaceId: spaceId });
|
|
220
|
+
const agents = await (input.readOnly ? burstAgents() : app.listProjectAgents({ personalSpaceId: spaceId }));
|
|
203
221
|
const agent = agents.find((entry) => entry.agentId === employeeAgentId(manifest.id));
|
|
204
222
|
const stored = managementStore.read(spaceId, manifest.id);
|
|
205
223
|
const management = managementFor(manifest, agent, stored);
|
package/src/employees/service.js
CHANGED
|
@@ -51,8 +51,18 @@ export function createEmployeeService({ app, runtimeConfigPath, registry: config
|
|
|
51
51
|
return { ...context, tools };
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
// The console opening a board may share a burst's authorization read. An Agent's
|
|
55
|
+
// call never does: a permission withdrawn a moment ago must stop it.
|
|
56
|
+
async function readsOnly(input) {
|
|
57
|
+
if (input.sourceApplication) return false;
|
|
58
|
+
try {
|
|
59
|
+
const tools = await (await registry.runtime(input.templateId)).describeTools();
|
|
60
|
+
return /\.read$/.test(tools.find((entry) => entry.name === input.tool)?.permission ?? '');
|
|
61
|
+
} catch { return false; }
|
|
62
|
+
}
|
|
63
|
+
|
|
54
64
|
async function callTool(input) {
|
|
55
|
-
const context = await workspace(input);
|
|
65
|
+
const context = await workspace({ ...input, readOnly: await readsOnly(input) });
|
|
56
66
|
const runtime = await registry.runtime(context.templateId);
|
|
57
67
|
const tools = await runtime.describeTools();
|
|
58
68
|
const tool = tools.find((entry) => entry.name === input.tool);
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { getKnowledgeGraph } from './knowledge-graph-reads.js';
|
|
2
|
+
|
|
3
|
+
// What an FLA learned by doing (rec#78, slice 1): the reusable experiences it
|
|
4
|
+
// reported at checkpoints, with how often later tasks applied them. The
|
|
5
|
+
// Provider already counts uses and promotes a pending experience to
|
|
6
|
+
// agent_confirmed after enough distinct tasks; this read puts those in front
|
|
7
|
+
// of the person, who keeps or drops each one. Read-only, model-free, current
|
|
8
|
+
// versions only: a dropped experience leaves this list and stays in history.
|
|
9
|
+
|
|
10
|
+
const EXPERIENCE_TYPE = 'ReusableExperience';
|
|
11
|
+
const PAGE_LIMIT = 2000;
|
|
12
|
+
// A project graph larger than this many pages is read in part and says so.
|
|
13
|
+
const MAX_PAGES = 5;
|
|
14
|
+
const ITEM_LIMIT = 50;
|
|
15
|
+
// Used in at least this many tasks: proven, the order the person judges in.
|
|
16
|
+
const PROVEN_TASKS = 2;
|
|
17
|
+
|
|
18
|
+
// Waiting for the person first (promoted by use, then used but pending), then
|
|
19
|
+
// untried, then already kept; more tasks, more uses and later use first.
|
|
20
|
+
const ORDER = { agent_confirmed: 0, pending: 1, confirmed: 3 };
|
|
21
|
+
const rank = item => item.status === 'pending' && !item.uses ? 2 : ORDER[item.status] ?? 2;
|
|
22
|
+
|
|
23
|
+
export async function getAgentGrowth(application, { personalSpaceId, agentId, personalProjectId = null }, ownerReads = null) {
|
|
24
|
+
const agent = personalProjectId ? null
|
|
25
|
+
: (await application.listProjectAgents({ personalSpaceId })).find(candidate => candidate.agentId === agentId);
|
|
26
|
+
// An Agent this space does not list has learned nothing here.
|
|
27
|
+
const projectIds = personalProjectId ? [personalProjectId]
|
|
28
|
+
: [...new Set((agent?.assignments ?? []).filter(assignment => assignment.status === 'active')
|
|
29
|
+
.map(assignment => assignment.personalProjectId))];
|
|
30
|
+
let partial = false;
|
|
31
|
+
const items = [];
|
|
32
|
+
for (const projectId of projectIds) {
|
|
33
|
+
const read = await experiencesIn(application, personalSpaceId, projectId, agentId, ownerReads);
|
|
34
|
+
partial ||= read.partial;
|
|
35
|
+
items.push(...read.items);
|
|
36
|
+
}
|
|
37
|
+
items.sort((a, b) => rank(a) - rank(b) || b.tasks - a.tasks || b.uses - a.uses
|
|
38
|
+
|| String(b.lastUsedAt ?? '').localeCompare(String(a.lastUsedAt ?? '')));
|
|
39
|
+
return { agentId, personalProjectIds: projectIds, partial,
|
|
40
|
+
counts: { total: items.length, proven: items.filter(item => item.proven).length,
|
|
41
|
+
kept: items.filter(item => item.status === 'confirmed').length },
|
|
42
|
+
items: items.slice(0, ITEM_LIMIT) };
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
async function experiencesIn(application, spaceId, personalProjectId, agentId, ownerReads) {
|
|
46
|
+
const items = [];
|
|
47
|
+
let offset = null;
|
|
48
|
+
for (let page = 0; page < MAX_PAGES; page++) {
|
|
49
|
+
const graph = await getKnowledgeGraph(application, { spaceId, personalProjectId, limit: PAGE_LIMIT, offset }, ownerReads);
|
|
50
|
+
for (const node of graph.nodes) {
|
|
51
|
+
if (node.type !== EXPERIENCE_TYPE || node.invalid_at || (node.version_status ?? 'current') !== 'current'
|
|
52
|
+
|| node.confirmation_basis?.proposed_by?.label !== agentId) continue;
|
|
53
|
+
items.push({ itemId: node.id, personalProjectId, title: node.name,
|
|
54
|
+
solution: node.attributes?.solution ?? node.summary ?? '', boundary: node.attributes?.boundary ?? null,
|
|
55
|
+
status: node.confirmation_status ?? 'pending', uses: node.qualified_use_count ?? 0,
|
|
56
|
+
tasks: node.distinct_task_count ?? 0, proven: (node.distinct_task_count ?? 0) >= PROVEN_TASKS, lastUsedAt: node.last_used_at ?? null, createdAt: node.created_at ?? null,
|
|
57
|
+
// What a person's 保留 confirms on: the reasons the FLA recorded with it.
|
|
58
|
+
basis: node.confirmation_basis ?? null });
|
|
59
|
+
}
|
|
60
|
+
if (!graph.truncated || graph.next_offset == null) return { items, partial: false };
|
|
61
|
+
offset = graph.next_offset;
|
|
62
|
+
}
|
|
63
|
+
return { items, partial: true };
|
|
64
|
+
}
|
|
@@ -31,6 +31,13 @@ export function agentCollaborationPreference(item) {
|
|
|
31
31
|
return preference;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
// A delivered preference names its item, so a person's correction can revise
|
|
35
|
+
// it (rec#75). Conflict alternatives stay without it.
|
|
36
|
+
export function deliveredCollaborationPreference(item) {
|
|
37
|
+
return { ...(item.id ? { id: item.id, item_kind: item.item_kind ?? 'entity' } : {}),
|
|
38
|
+
...agentCollaborationPreference(item) };
|
|
39
|
+
}
|
|
40
|
+
|
|
34
41
|
export function activePreferenceConflicts(result) {
|
|
35
42
|
const items = [
|
|
36
43
|
...(result.global_preferences ?? []),
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
} from './agent-project-resolution.js';
|
|
4
4
|
import {
|
|
5
5
|
activePreferenceConflicts,
|
|
6
|
-
agentCollaborationPreference,
|
|
7
6
|
agentDeferredPreferenceConflict,
|
|
8
|
-
deferredPreferenceConflicts
|
|
7
|
+
deferredPreferenceConflicts,
|
|
8
|
+
deliveredCollaborationPreference
|
|
9
9
|
} from './collaboration-preference-projection.js';
|
|
10
10
|
import {
|
|
11
11
|
recallTaskKnowledge,
|
|
@@ -167,7 +167,7 @@ export function projectAgentCollaborationPreferences(raw, projectResolution, { p
|
|
|
167
167
|
const applicationGuidance = guidanceFor(projectResolution.personalProjectId, projectAgentId);
|
|
168
168
|
return {
|
|
169
169
|
effective_preferences: effectivePreferences
|
|
170
|
-
.map(
|
|
170
|
+
.map(deliveredCollaborationPreference),
|
|
171
171
|
...(scopeUnknown.length ? { scope_unknown: scopeUnknown } : {}),
|
|
172
172
|
deferred_conflicts: deferredConflicts.map(agentDeferredPreferenceConflict),
|
|
173
173
|
active_conflicts: activePreferenceConflicts(result),
|
|
@@ -7,6 +7,14 @@ import {
|
|
|
7
7
|
|
|
8
8
|
// search_current_project_knowledge: the resolved project's own knowledge first,
|
|
9
9
|
// with related projects only suggested, never searched without confirmation.
|
|
10
|
+
// Search matches words; the Agent asking understands meaning. When no query
|
|
11
|
+
// matched, it gets the project's titles to judge for itself: FULI needs no model
|
|
12
|
+
// of its own for that, and the titles cost tokens only on a miss.
|
|
13
|
+
const INDEX_TITLES = 40;
|
|
14
|
+
const INDEX_TITLE_CHARS = 120;
|
|
15
|
+
// What the entry already delivers, or what is no knowledge to read.
|
|
16
|
+
const NOT_INDEXED = new Set(['PersonalProject', 'ProjectSource', 'PersonalPreference']);
|
|
17
|
+
const INDEX_READ = 'Nothing matched these words. If a title here means what you need, search for its exact words before relying on it; pending items are not confirmed.';
|
|
10
18
|
export async function searchCurrentProjectKnowledge(
|
|
11
19
|
application,
|
|
12
20
|
resolution,
|
|
@@ -48,6 +56,7 @@ export async function searchCurrentProjectKnowledge(
|
|
|
48
56
|
)),
|
|
49
57
|
loadRelatedProjectSuggestions(application, resolution.personalProjectId)
|
|
50
58
|
]);
|
|
59
|
+
const index = !cursor && results.every(noMatch) ? projectTitleIndex(relatedProjects.graph) : null;
|
|
51
60
|
return budgetKnowledgeSearch({
|
|
52
61
|
status: 'searched',
|
|
53
62
|
personal_space_id: application.config.personal.spaceId,
|
|
@@ -62,6 +71,7 @@ export async function searchCurrentProjectKnowledge(
|
|
|
62
71
|
related_project_expansion_requires_confirmation: true
|
|
63
72
|
},
|
|
64
73
|
results,
|
|
74
|
+
...(index ? { knowledge_index: index } : {}),
|
|
65
75
|
related_project_suggestions: relatedProjects.suggestions,
|
|
66
76
|
related_project_suggestions_status: relatedProjects.status,
|
|
67
77
|
related_project_guidance: relatedProjectGuidance(relatedProjects.suggestions)
|
|
@@ -70,6 +80,18 @@ export async function searchCurrentProjectKnowledge(
|
|
|
70
80
|
personalProjectId: resolution.personalProjectId, queries, limitPerQuery, includeHistorical, includePending } });
|
|
71
81
|
}
|
|
72
82
|
|
|
83
|
+
const noMatch = result => !result?.facts?.length && !result?.entities?.length;
|
|
84
|
+
|
|
85
|
+
// Confirmed first, newest within each; a bounded list, with how many there are.
|
|
86
|
+
function projectTitleIndex(graph) {
|
|
87
|
+
const items = (graph?.nodes ?? []).filter(node => !NOT_INDEXED.has(node.type) && !node.invalid_at && node.name);
|
|
88
|
+
if (!items.length) return null;
|
|
89
|
+
const confirmed = node => (node.confirmation_status === 'confirmed' ? 0 : 1);
|
|
90
|
+
const ordered = items.sort((left, right) => confirmed(left) - confirmed(right) || String(right.created_at).localeCompare(String(left.created_at)));
|
|
91
|
+
return { total: items.length, read: INDEX_READ, titles: ordered.slice(0, INDEX_TITLES)
|
|
92
|
+
.map(node => [String(node.name).slice(0, INDEX_TITLE_CHARS), node.confirmation_status === 'confirmed' ? 'confirmed' : 'pending']) };
|
|
93
|
+
}
|
|
94
|
+
|
|
73
95
|
async function loadRelatedProjectSuggestions(application, personalProjectId) {
|
|
74
96
|
try {
|
|
75
97
|
const graph = await application.personal.graph(
|
|
@@ -79,7 +101,8 @@ async function loadRelatedProjectSuggestions(application, personalProjectId) {
|
|
|
79
101
|
);
|
|
80
102
|
return {
|
|
81
103
|
status: graph?.truncated ? 'partial' : 'available',
|
|
82
|
-
suggestions: relatedProjectSuggestions(graph, personalProjectId)
|
|
104
|
+
suggestions: relatedProjectSuggestions(graph, personalProjectId),
|
|
105
|
+
graph
|
|
83
106
|
};
|
|
84
107
|
} catch {
|
|
85
108
|
return { status: 'unavailable', suggestions: [] };
|
|
@@ -20,12 +20,13 @@ import { createCaptureOnboarding } from './capture-onboarding.js';
|
|
|
20
20
|
import { createFirstRunGuide, firstRunGuidePathForRuntime } from './first-run-guide.js';
|
|
21
21
|
import { SessionCapturePauseStore, sessionCapturePausePathForRuntime } from './capture-session-pause.js';
|
|
22
22
|
import { setSessionCapturePause } from './session-capture-pause-request.js';
|
|
23
|
-
import { readOwnSessionRecords } from './session-records.js';
|
|
23
|
+
import { readOwnSessionRecords, recentSessionUserMessages } from './session-records.js';
|
|
24
24
|
import {
|
|
25
25
|
AgentAccessPolicyStore,
|
|
26
26
|
agentAccessPolicyPathForRuntime
|
|
27
27
|
} from './agent-access-policy.js';
|
|
28
28
|
import { RecallPolicyStore, recallPolicyPathForRuntime } from './recall-policy.js';
|
|
29
|
+
import { sessionMigrationNoticesForRuntime } from './session-migration-notices.js';
|
|
29
30
|
import {
|
|
30
31
|
sourceConsoleUrl
|
|
31
32
|
} from './source-marker.js';
|
|
@@ -83,6 +84,7 @@ import {
|
|
|
83
84
|
searchCurrentProjectKnowledge,
|
|
84
85
|
searchKnowledge
|
|
85
86
|
} from './knowledge-graph-reads.js';
|
|
87
|
+
import { getAgentGrowth } from './agent-growth.js';
|
|
86
88
|
import {
|
|
87
89
|
applyCommonKnowledgePromotion,
|
|
88
90
|
applyKnowledgeProjectAction,
|
|
@@ -116,6 +118,7 @@ import {
|
|
|
116
118
|
} from './public-project-relations.js';
|
|
117
119
|
import {
|
|
118
120
|
agentProfileWriter,
|
|
121
|
+
listPersonalProjectHistory,
|
|
119
122
|
listPersonalProjects,
|
|
120
123
|
listProjectRelationWeights,
|
|
121
124
|
upsertPersonalProject
|
|
@@ -221,6 +224,8 @@ export class FederatedGraphApplication extends ProjectAgentControlPlaneApplicati
|
|
|
221
224
|
this.firstRunGuide = firstRunGuide;
|
|
222
225
|
this.sessionCapturePauseStore = sessionCapturePauseStore;
|
|
223
226
|
this.runtimeConfigPath = runtimeConfigPath;
|
|
227
|
+
// A confirmed session migration waiting for that session's next task entry (rec#82).
|
|
228
|
+
this.sessionMigrationNotices = sessionMigrationNoticesForRuntime(runtimeConfigPath);
|
|
224
229
|
this.agentAccessPolicyStore = agentAccessPolicyStore;
|
|
225
230
|
this.recallPolicyStore = recallPolicyStore;
|
|
226
231
|
this.consoleUrl = consoleUrl;
|
|
@@ -339,6 +344,10 @@ export class FederatedGraphApplication extends ProjectAgentControlPlaneApplicati
|
|
|
339
344
|
return getKnowledgeGraph(this, input, ownerReads);
|
|
340
345
|
}
|
|
341
346
|
|
|
347
|
+
async getAgentGrowth(input, ownerReads) {
|
|
348
|
+
return getAgentGrowth(this, input, ownerReads);
|
|
349
|
+
}
|
|
350
|
+
|
|
342
351
|
async startKnowledgeReview(input) {
|
|
343
352
|
return startKnowledgeReviewWorkflow(this, input);
|
|
344
353
|
}
|
|
@@ -467,6 +476,10 @@ export class FederatedGraphApplication extends ProjectAgentControlPlaneApplicati
|
|
|
467
476
|
return agentProfileWriter(this, input);
|
|
468
477
|
}
|
|
469
478
|
|
|
479
|
+
listPersonalProjectHistory(input) {
|
|
480
|
+
return listPersonalProjectHistory(this, input);
|
|
481
|
+
}
|
|
482
|
+
|
|
470
483
|
async listPersonalProjects(input) {
|
|
471
484
|
return listPersonalProjects(this, input);
|
|
472
485
|
}
|
|
@@ -610,6 +623,11 @@ export class FederatedGraphApplication extends ProjectAgentControlPlaneApplicati
|
|
|
610
623
|
return readOwnSessionRecords(this, input);
|
|
611
624
|
}
|
|
612
625
|
|
|
626
|
+
// The person's newest saved messages in a task's own session (rec#80).
|
|
627
|
+
recentSessionUserMessages(task, limit) {
|
|
628
|
+
return recentSessionUserMessages(this, task, limit);
|
|
629
|
+
}
|
|
630
|
+
|
|
613
631
|
getRecallPolicy() {
|
|
614
632
|
return this.recallPolicyStore.read();
|
|
615
633
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { personalContextProjectIds, personalProjectSearchBatches, scopedSearchItems } from './personal-context.js';
|
|
2
|
+
import { queryVector } from '../semantic/semantic-index.js';
|
|
2
3
|
import { createFuliSourceMarker } from './source-marker.js';
|
|
3
4
|
import { relatedProjectGuidance } from './related-project-suggestions.js';
|
|
4
5
|
import { groupSubscriptions, loadSearchRelatedProjectSuggestions, rankedSearchItems,
|
|
@@ -6,6 +7,9 @@ import { groupSubscriptions, loadSearchRelatedProjectSuggestions, rankedSearchIt
|
|
|
6
7
|
import { recordReadExtensionUsage } from './project-memory-usage.js';
|
|
7
8
|
import { budgetKnowledgeSearch } from './knowledge-result-budget.js';
|
|
8
9
|
|
|
10
|
+
// A search waits this long for its query's vector, then goes on by words.
|
|
11
|
+
const QUERY_VECTOR_TIMEOUT_MS = 1500;
|
|
12
|
+
|
|
9
13
|
export async function searchFederatedKnowledge(application, {
|
|
10
14
|
personalSpaceId,
|
|
11
15
|
query,
|
|
@@ -53,6 +57,8 @@ export async function searchFederatedKnowledge(application, {
|
|
|
53
57
|
.map(({ project_id: projectId }) => projectId)
|
|
54
58
|
)
|
|
55
59
|
: personalContextProjectIds(personalProjectId, contextPersonalProjectIds);
|
|
60
|
+
// rec#88: the query's vector when a person connected a model for it; words alone otherwise.
|
|
61
|
+
const semantic = await queryVector(application, { personalProjectId, query, timeoutMs: QUERY_VECTOR_TIMEOUT_MS });
|
|
56
62
|
const personalSearches = personalProjectSearchBatches(selectedPersonalProjectIds)
|
|
57
63
|
.map((personalProjectIds, index) => {
|
|
58
64
|
const activePersonalProjectId = (
|
|
@@ -70,7 +76,8 @@ export async function searchFederatedKnowledge(application, {
|
|
|
70
76
|
active_personal_project_id: activePersonalProjectId,
|
|
71
77
|
project_agent_id: activePersonalProjectId ? projectAgentId : null,
|
|
72
78
|
inherit_project_knowledge: personalProjectScope === 'bounded',
|
|
73
|
-
include_personal_global: index === 0
|
|
79
|
+
include_personal_global: index === 0,
|
|
80
|
+
...(semantic ? { semantic } : {})
|
|
74
81
|
});
|
|
75
82
|
});
|
|
76
83
|
const grouped = groupSubscriptions(selectedSubscriptions);
|
|
@@ -23,18 +23,24 @@ import { createStandingAssignments } from '../standing-assignments/port.js';
|
|
|
23
23
|
import { createAgentWorkflows } from '../agent-workflows/port.js';
|
|
24
24
|
import { RecallImpressionsStore } from '../knowledge-impressions/store.js';
|
|
25
25
|
import { createAgentAvatars } from '../agent-avatars/port.js';
|
|
26
|
+
import { createProjectChangeLog } from '../project-change-log/port.js';
|
|
26
27
|
import { createPersonProfile } from '../person-profile/port.js';
|
|
28
|
+
import { entryPromptRecords } from '../agent-delegation/entry-prompts.js';
|
|
27
29
|
import { createWorkSurfaces } from '../work-surfaces/port.js';
|
|
30
|
+
import { createOldDataShelf } from '../old-data/port.js';
|
|
28
31
|
import { workSurfaceNames, workSurfaceSources } from '../work-surfaces/sources.js';
|
|
29
32
|
import { createAgentDirectorySnapshots } from '../agents/directory-snapshots.js';
|
|
30
33
|
import { attachExternalKnowledgeRuntime } from '../external-knowledge/runtime.js';
|
|
31
34
|
import { createSessionPreferenceDelivery } from '../conversations/preference-session.js';
|
|
35
|
+
import { diagnosticEventLog } from '../diagnostics/event-log.js';
|
|
32
36
|
|
|
33
37
|
// The local stores and runtimes an application opened from a runtime
|
|
34
38
|
// directory owns. Adding one means opening it here and closing it below.
|
|
35
39
|
export function openLocalRuntimes(app, { runtimeConfigPath, paths, env, fetchImpl }) {
|
|
36
40
|
const dataDir = dirname(runtimeConfigPath);
|
|
37
41
|
const providerIdentity = app.config.personal.providerUrl;
|
|
42
|
+
// The runtime failures this process and the data directory's other FULI processes caught (rec#73).
|
|
43
|
+
app.diagnosticEvents = diagnosticEventLog(dataDir);
|
|
38
44
|
app.preferenceDelivery = createSessionPreferenceDelivery({
|
|
39
45
|
directory: join(dataDir, 'preference-delivery'),
|
|
40
46
|
env
|
|
@@ -81,11 +87,17 @@ export function openLocalRuntimes(app, { runtimeConfigPath, paths, env, fetchImp
|
|
|
81
87
|
app.recallImpressions = new RecallImpressionsStore(join(dataDir, 'recall-impressions.sqlite'));
|
|
82
88
|
// Each Agent's look as the person chose it (rec#11 D-89); the file is created by the first choice.
|
|
83
89
|
app.agentAvatars = createAgentAvatars({ path: join(dataDir, 'agent-avatars.sqlite') });
|
|
90
|
+
// What changed in each project's profile; the file is created by the first change.
|
|
91
|
+
app.projectChangeLog = createProjectChangeLog({ path: join(dataDir, 'project-change-log.sqlite') });
|
|
84
92
|
// The person's own name and picture (「我」); the file is created by the first change.
|
|
85
93
|
app.personProfile = createPersonProfile({ path: join(dataDir, 'person-profile.json') });
|
|
94
|
+
// The prompt of each session's current hook-entered task, kept only for the relay check (rec#80).
|
|
95
|
+
app.entryPrompts = entryPromptRecords(dataDir);
|
|
86
96
|
// Every FLA's work surfaces in one table, with 全部暂停 and 恢复 (rec#11 D-85); the file is created by the first pause.
|
|
87
97
|
app.workSurfaces = createWorkSurfaces({ path: join(dataDir, 'work-surfaces.sqlite'), sources: workSurfaceSources(app),
|
|
88
98
|
names: (personalSpaceId) => workSurfaceNames(app, personalSpaceId) });
|
|
99
|
+
// The copies FULI keeps before it changes something (旧数据, rec#80 group B); reads only.
|
|
100
|
+
app.oldData = createOldDataShelf({ paths });
|
|
89
101
|
app.roundtableHost = createFuliRoundtableHost(app);
|
|
90
102
|
app.peer = createPeerPort({ dataDir, host: app.roundtableHost });
|
|
91
103
|
app.roundtable = createAgentRoundtable({
|
|
@@ -105,6 +117,7 @@ export function closeLocalRuntimes(app) {
|
|
|
105
117
|
app.agentWorkflows?.close();
|
|
106
118
|
app.recallImpressions?.close();
|
|
107
119
|
app.agentAvatars?.close();
|
|
120
|
+
app.projectChangeLog?.close();
|
|
108
121
|
app.workSurfaces?.close();
|
|
109
122
|
app.roleWork?.close();
|
|
110
123
|
app.roleSuggestions?.close();
|
|
@@ -21,6 +21,8 @@ export async function upsertPersonalProject(application, input) {
|
|
|
21
21
|
profile,
|
|
22
22
|
...(createOnly ? { create_only: true } : {})
|
|
23
23
|
});
|
|
24
|
+
application.projectChangeLog?.record({ personalSpaceId: input.personalSpaceId, projectId: input.projectId,
|
|
25
|
+
writer: input.writer, previous, saved });
|
|
24
26
|
return refused.length ? { ...saved, refused_fields: refused } : saved;
|
|
25
27
|
}
|
|
26
28
|
|
|
@@ -46,6 +48,15 @@ export async function listPersonalProjects(application, input = {}) {
|
|
|
46
48
|
return input.projectId === undefined ? projects : projects.filter(project => project.project_id === input.projectId);
|
|
47
49
|
}
|
|
48
50
|
|
|
51
|
+
// What changed in one project's profile, newest first; local, so it needs no Provider.
|
|
52
|
+
export function listPersonalProjectHistory(application, input) {
|
|
53
|
+
const personalSpaceId = input.personalSpaceId ?? application.config.personal.spaceId;
|
|
54
|
+
if (personalSpaceId !== application.config.personal.spaceId) {
|
|
55
|
+
throw new TypeError('Project history must use the active personal space');
|
|
56
|
+
}
|
|
57
|
+
return application.projectChangeLog.list({ personalSpaceId, projectId: input.projectId, limit: input.limit });
|
|
58
|
+
}
|
|
59
|
+
|
|
49
60
|
export async function listProjectRelationWeights(application, input = {}) {
|
|
50
61
|
const personalSpaceId = input.personalSpaceId ?? application.config.personal.spaceId;
|
|
51
62
|
if (personalSpaceId !== application.config.personal.spaceId) {
|
|
@@ -61,6 +61,7 @@ export function projectAgentRecord(value) {
|
|
|
61
61
|
updatedAt: value.updated_at
|
|
62
62
|
};
|
|
63
63
|
copyOptional(result.profile, 'character', profile.character, Object.hasOwn(profile, 'character'));
|
|
64
|
+
copyOptional(result.profile, 'characterAuthors', profile.character_authors, Object.hasOwn(profile, 'character_authors'));
|
|
64
65
|
copyOptional(result.profile, 'expectations', profile.expectations, Object.hasOwn(profile, 'expectations'));
|
|
65
66
|
copyOptional(
|
|
66
67
|
result.profile,
|
|
@@ -16,8 +16,12 @@ export async function listAgentWorkbenches(application, { personalSpaceId, agent
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
// Every FLA's task sheets in one space (rec#11 D-85, the work-surfaces table).
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
// A filter narrows the read itself: filtered after the limit, an FLA whose tasks
|
|
20
|
+
// fell outside the first 200 would read as having none (rec#72).
|
|
21
|
+
export async function listSpaceWorkbenches(application, { personalSpaceId, agentId = null, personalProjectId = null }) {
|
|
22
|
+
const tasks = await application.listProjectAgentTasks({ personalSpaceId, agentId, personalProjectId, limit: TASK_LIMIT });
|
|
23
|
+
return { partial: tasks.length >= TASK_LIMIT,
|
|
24
|
+
workbenches: tasks.filter(task => !HIDDEN_STATUSES.has(task.status)).map(task => taskSheet(task)) };
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
async function visibleTaskSheets(application, { personalSpaceId, agentId }) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ApplicationError, ApplicationErrorCode } from '../app/application-error.js';
|
|
2
|
+
import { applyFieldAuthorship, UNNAMED_AGENT_WRITER } from './project-profile-authors.js';
|
|
2
3
|
import { loadProjectAgentContinuity } from './project-agent-task-entry.js';
|
|
3
4
|
import { dismissalLessonHint } from './project-agent-dismissal.js';
|
|
4
5
|
import { requireGroupedAgentTaskContext } from './project-team-hierarchy.js';
|
|
5
|
-
import { resolveCoordinationScope, scopedTaskIdempotencyKey } from './temporary-project-scope.js';
|
|
6
|
+
import { otherProjectTask, resolveCoordinationScope, scopedTaskIdempotencyKey } from './temporary-project-scope.js';
|
|
6
7
|
import { enrichProjectAgentTaskActivity } from '../agents/token-usage-resolver.js';
|
|
7
8
|
import { parseProjectBoard } from '../employees/builtin/jefa/project-board.js';
|
|
8
9
|
import {
|
|
@@ -39,19 +40,36 @@ import {
|
|
|
39
40
|
} from './project-agent-mapping.js';
|
|
40
41
|
import { coversClient } from '../agents/source-applications.js';
|
|
41
42
|
|
|
43
|
+
const CHARACTER_FIELDS = Object.freeze(['judgment', 'taste', 'personality']);
|
|
44
|
+
|
|
42
45
|
export async function upsertProjectAgent(application, input) {
|
|
43
46
|
if (input.profile?.status === 'archived') {
|
|
44
47
|
throw new ApplicationError(ApplicationErrorCode.VALIDATION,
|
|
45
48
|
'An Agent leaves only through dismiss_project_agent with the user\'s reason; an upsert cannot archive it.');
|
|
46
49
|
}
|
|
50
|
+
const profile = providerProjectAgentProfile(input.profile);
|
|
51
|
+
const { authored, refused } = await authorCharacter(application, input, profile);
|
|
47
52
|
const value = await application.personal.upsertProjectAgent({
|
|
48
53
|
personal_space_id: input.personalSpaceId,
|
|
49
54
|
personal_project_id: input.personalProjectId ?? null,
|
|
50
55
|
agent_id: input.agentId,
|
|
51
|
-
profile:
|
|
56
|
+
profile: authored,
|
|
52
57
|
...(input.occupation ? { occupation: input.occupation } : {})
|
|
53
58
|
});
|
|
54
|
-
|
|
59
|
+
const record = projectAgentRecord(value);
|
|
60
|
+
return refused.length ? { ...record, refusedFields: refused } : record;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Who wrote an FLA's preferences, as for a project's profile: `writer` is set by
|
|
64
|
+
// the entry, never read from a payload. A person's text stays theirs; any entry
|
|
65
|
+
// without a writer (recruitment, a role's own setup) writes as AI.
|
|
66
|
+
async function authorCharacter(application, input, profile) {
|
|
67
|
+
if (!profile.character) return { authored: profile, refused: [] };
|
|
68
|
+
const previous = await application.personal.getProjectAgent(input.personalSpaceId, input.personalProjectId ?? null, input.agentId)
|
|
69
|
+
.then(value => value?.profile ?? null).catch(() => null);
|
|
70
|
+
const { values, authors, refused } = applyFieldAuthorship(CHARACTER_FIELDS, previous?.character, profile.character,
|
|
71
|
+
previous?.character_authors, input.writer ?? UNNAMED_AGENT_WRITER);
|
|
72
|
+
return { authored: { ...profile, character: values, character_authors: authors }, refused };
|
|
55
73
|
}
|
|
56
74
|
|
|
57
75
|
export async function listProjectAgents(application, input) {
|
|
@@ -236,7 +254,7 @@ export async function coordinateProjectAgentTask(
|
|
|
236
254
|
entryTask = await application.taskContextRegistry.context(input.taskContextToken, input.sourceApplication);
|
|
237
255
|
}
|
|
238
256
|
if (entryTask && entryTask.personalProjectId !== projectId) {
|
|
239
|
-
throw
|
|
257
|
+
throw otherProjectTask();
|
|
240
258
|
}
|
|
241
259
|
const route = await submitProjectAgentTask(application, {
|
|
242
260
|
personalSpaceId: application.config.personal.spaceId,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// person edited from an Agent's draft is shared. The Provider stores the
|
|
4
4
|
// records and defaults profiles saved before them
|
|
5
5
|
// (graph-provider/fuli_graph/project_profile_authors.py).
|
|
6
|
-
const AUTHORED_FIELDS = Object.freeze(['purpose', 'scope', 'technical_summary', 'boundaries']);
|
|
6
|
+
export const AUTHORED_FIELDS = Object.freeze(['purpose', 'scope', 'technical_summary', 'boundaries']);
|
|
7
7
|
|
|
8
8
|
// Mirrors the knowledge weights the console explains: a person 100%, an Agent's
|
|
9
9
|
// draft below an Agent-confirmed fact.
|
|
@@ -24,20 +24,27 @@ const PERSON_FIELD_REFUSAL = '人写过的字段,请在控制台修改或请
|
|
|
24
24
|
// overwrites a field a person wrote; that field keeps its previous text and
|
|
25
25
|
// is listed in `refused`.
|
|
26
26
|
export function applyProfileAuthorship(previous, next, writer, now = new Date()) {
|
|
27
|
+
const { values, authors, refused } = applyFieldAuthorship(AUTHORED_FIELDS, previous, next, previous?.authors, writer, now);
|
|
28
|
+
return { profile: { ...values, authors }, refused };
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// The same rule for any set of text fields: `values` is `next` with refused
|
|
32
|
+
// fields kept as they were, `authors` the record of each field with text.
|
|
33
|
+
export function applyFieldAuthorship(fields, previous, next, previousAuthors, writer, now = new Date()) {
|
|
27
34
|
const updatedAt = now.toISOString();
|
|
28
35
|
const authors = {};
|
|
29
36
|
const refused = [];
|
|
30
|
-
const
|
|
31
|
-
for (const field of
|
|
37
|
+
const values = { ...next };
|
|
38
|
+
for (const field of fields) {
|
|
32
39
|
const before = fieldText(previous?.[field]);
|
|
33
40
|
const after = fieldText(next[field]);
|
|
34
|
-
const record =
|
|
41
|
+
const record = previousAuthors?.[field] ?? null;
|
|
35
42
|
if (before === after) {
|
|
36
43
|
if (record && after) authors[field] = record;
|
|
37
44
|
continue;
|
|
38
45
|
}
|
|
39
46
|
if (writer.kind === 'agent' && (record?.kind === 'person' || record?.kind === 'both')) {
|
|
40
|
-
|
|
47
|
+
values[field] = previous[field];
|
|
41
48
|
authors[field] = record;
|
|
42
49
|
refused.push({ field, author: record.kind, reason: PERSON_FIELD_REFUSAL });
|
|
43
50
|
continue;
|
|
@@ -47,7 +54,7 @@ export function applyProfileAuthorship(previous, next, writer, now = new Date())
|
|
|
47
54
|
? agentRecord('agent', writer, updatedAt)
|
|
48
55
|
: personRecord(record, before, after, updatedAt);
|
|
49
56
|
}
|
|
50
|
-
return {
|
|
57
|
+
return { values, authors, refused };
|
|
51
58
|
}
|
|
52
59
|
|
|
53
60
|
// One short tag per field for an Agent reading the brief; AI-only text reads as a draft.
|
|
@@ -69,7 +76,7 @@ function agentRecord(kind, { agentId, agentName }, updatedAt) {
|
|
|
69
76
|
updated_at: updatedAt };
|
|
70
77
|
}
|
|
71
78
|
|
|
72
|
-
function fieldText(value) {
|
|
79
|
+
export function fieldText(value) {
|
|
73
80
|
const lines = Array.isArray(value) ? value : [value];
|
|
74
81
|
return lines.filter(line => typeof line === 'string' && line.trim()).map(line => line.trim()).join('\n');
|
|
75
82
|
}
|
|
@@ -922,6 +922,42 @@ export class GraphitiProviderClient {
|
|
|
922
922
|
);
|
|
923
923
|
}
|
|
924
924
|
search(input) { return this.#request('/v1/search', { method: 'POST', body: input }); }
|
|
925
|
+
// rec#88: the meaning index. Node embeds the pending texts with the model a
|
|
926
|
+
// person connected and hands the vectors back; ordinary access token.
|
|
927
|
+
semanticPending({ personalSpaceId, model, limit, after }) {
|
|
928
|
+
return this.#request('/v1/semantic/pending', {
|
|
929
|
+
method: 'POST', body: { personal_space_id: personalSpaceId, model, limit, after }
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
writeSemanticVectors({ personalSpaceId, model, items }) {
|
|
933
|
+
return this.#request('/v1/semantic/vectors', {
|
|
934
|
+
method: 'POST', body: { personal_space_id: personalSpaceId, model, items }
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
semanticStatus({ personalSpaceId, model }) {
|
|
938
|
+
return this.#request('/v1/semantic/status', {
|
|
939
|
+
method: 'POST', body: { personal_space_id: personalSpaceId, model }
|
|
940
|
+
});
|
|
941
|
+
}
|
|
942
|
+
// rec#92: retrieval terms for old knowledge. Node asks a model for the other
|
|
943
|
+
// ways someone would ask for each item and stores them beside it; ordinary
|
|
944
|
+
// access token, no version and nothing a person confirms.
|
|
945
|
+
retrievalCandidates({ personalSpaceId, personalProjectId, limit, after, missingOnly }) {
|
|
946
|
+
return this.#request('/v1/retrieval/candidates', {
|
|
947
|
+
method: 'POST', body: { personal_space_id: personalSpaceId, personal_project_id: personalProjectId,
|
|
948
|
+
limit, after, missing_only: missingOnly }
|
|
949
|
+
});
|
|
950
|
+
}
|
|
951
|
+
writeRetrievalTerms({ personalSpaceId, items }) {
|
|
952
|
+
return this.#request('/v1/retrieval/terms', {
|
|
953
|
+
method: 'POST', body: { personal_space_id: personalSpaceId, items }
|
|
954
|
+
});
|
|
955
|
+
}
|
|
956
|
+
retrievalStats({ personalSpaceId, personalProjectId }) {
|
|
957
|
+
return this.#request('/v1/retrieval/stats', {
|
|
958
|
+
method: 'POST', body: { personal_space_id: personalSpaceId, personal_project_id: personalProjectId }
|
|
959
|
+
});
|
|
960
|
+
}
|
|
925
961
|
collaborationPreferences(
|
|
926
962
|
personalSpaceId,
|
|
927
963
|
personalProjectId = null,
|