fuli-context 0.25.2 → 0.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -3
- package/README.zh-CN.md +19 -4
- package/dist/web/assets/{AboutPage-Dx07_Z8u.js → AboutPage-BKyNoI0v.js} +1 -1
- package/dist/web/assets/{AboutSectionHeading-BdhpM609.js → AboutSectionHeading-DwvCvoqO.js} +1 -1
- package/dist/web/assets/AgentAppsPage-Cp2-sZXi.js +1 -0
- package/dist/web/assets/{AgentAvatar-DlAQP7gm.js → AgentAvatar-CDhU4m0T.js} +1 -1
- package/dist/web/assets/{AgentHand-FPFg9-Y1.js → AgentHand-BfRjs1He.js} +1 -1
- package/dist/web/assets/{AgentManagement-CLFw9oV9.css → AgentManagement-Cc00RLSO.css} +1 -1
- package/dist/web/assets/{AgentManagement-UTe4I3WA.js → AgentManagement-qCpr876m.js} +2 -2
- package/dist/web/assets/{AgentMentionCopy-C5ExlutT.js → AgentMentionCopy-_pr-D8vX.js} +1 -1
- package/dist/web/assets/{AgentName-C8mYbtKs.js → AgentName-CUuWNrzE.js} +1 -1
- package/dist/web/assets/{AgentProfilePage-DumsVHP1.css → AgentProfilePage-Ce25JSzZ.css} +1 -1
- package/dist/web/assets/AgentProfilePage-DcOBhuHG.js +5 -0
- package/dist/web/assets/AgentServicesPage-CAL-JT1J.js +1 -0
- package/dist/web/assets/{AppViewerPage-BR8ttEGa.js → AppViewerPage-Ct46NPXP.js} +1 -1
- package/dist/web/assets/{BackToTop-5_AQRMZl.js → BackToTop-DOlt-xjQ.js} +1 -1
- package/dist/web/assets/{BoardCardFieldsMenu-Bb_Z9a4Q.js → BoardCardFieldsMenu-RFcx_CAs.js} +1 -1
- package/dist/web/assets/{BoardMoveMenu-B-f8O6cC.js → BoardMoveMenu-GJ8lpuZY.js} +1 -1
- package/dist/web/assets/Breadcrumb-DTo6Zvtb.js +1 -0
- package/dist/web/assets/CaptureChangePage-DRgWyCRo.js +1 -0
- package/dist/web/assets/{CopyFixPrompt-CVFYWDSt.js → CopyFixPrompt-1UXH_ItZ.js} +1 -1
- package/dist/web/assets/DataFormatPage-CgFXfOW_.js +2 -0
- package/dist/web/assets/DebugTurnPage-B8YhpTPm.js +1 -0
- package/dist/web/assets/DebugTurnsPage-BGKSH3n0.js +1 -0
- package/dist/web/assets/{DialogTitle-BQXOe8EK.js → DialogTitle-CIVSlKqQ.js} +1 -1
- package/dist/web/assets/{EmployeeRedirectPage-BjWpXDSM.js → EmployeeRedirectPage-8qPpnbyP.js} +1 -1
- package/dist/web/assets/EmployeeScopeDialog-BZymZidB.js +1 -0
- package/dist/web/assets/EmployeeWorkbench-BnxEZCSS.js +4 -0
- package/dist/web/assets/FieldRoot-D6HtUgDA.js +1 -0
- package/dist/web/assets/{FlaGrowth-OQtTLTng.js → FlaGrowth-CaFdmezv.js} +1 -1
- package/dist/web/assets/{FlaOccupationKit-C-x4VrKk.js → FlaOccupationKit-CFoBUWGF.js} +1 -1
- package/dist/web/assets/{FlaTaskSheets-CoaF5CbQ.js → FlaTaskSheets-BShmW9R5.js} +1 -1
- package/dist/web/assets/FlasPage-DtkW-_9f.js +1 -0
- package/dist/web/assets/{GrowthLoading-VuVo2vLf.js → GrowthLoading-CVBn4r4q.js} +1 -1
- package/dist/web/assets/{HowtoPage-CZ3mOdLc.js → HowtoPage-B8f5J_An.js} +1 -1
- package/dist/web/assets/InboxPage-Bv8XUdl8.css +1 -0
- package/dist/web/assets/InboxPage-D9VIDrsL.js +6 -0
- package/dist/web/assets/{KnowledgeDeleteButton-BlUnSG3b.js → KnowledgeDeleteButton-C01O4FSO.js} +1 -1
- package/dist/web/assets/{KnowledgeHardDeleteSection-CznXBtHY.js → KnowledgeHardDeleteSection-jqad3dJN.js} +1 -1
- package/dist/web/assets/KnowledgeItemEditPage-DV8TVpvf.js +1 -0
- package/dist/web/assets/{KnowledgeItemSummaryCard-Co5JKBHl.js → KnowledgeItemSummaryCard-XbkYp7Dy.js} +1 -1
- package/dist/web/assets/KnowledgeOrganizerPage-C4G6JCmG.js +1 -0
- package/dist/web/assets/KnowledgePage-Afiw2Kxy.js +1 -0
- package/dist/web/assets/{KnowledgePeek-CwZVuSkf.css → KnowledgePeek-D6SeISIM.css} +1 -1
- package/dist/web/assets/KnowledgePeek-DIcPS9WU.js +1 -0
- package/dist/web/assets/{KnowledgeTurnReceiptPage-Csyjimeg.js → KnowledgeTurnReceiptPage-7ncXkxKd.js} +1 -1
- package/dist/web/assets/KnowledgeWorkspace-Be2gUul5.css +1 -0
- package/dist/web/assets/KnowledgeWorkspace-CmzU6Vuh.js +4 -0
- package/dist/web/assets/{MeAvatar-aY_q8cKs.js → MeAvatar-D_LFqHrR.js} +1 -1
- package/dist/web/assets/{MeLink-B0pNwVLa.js → MeLink-CeIxjFrm.js} +1 -1
- package/dist/web/assets/{MenuSeparator-BR-uLovR.js → MenuSeparator-yD3wld9s.js} +1 -1
- package/dist/web/assets/ModelSettingsPage-BZcyT7Vy.css +1 -0
- package/dist/web/assets/ModelSettingsPage-BqClsFmC.js +1 -0
- package/dist/web/assets/NewSessionPanel-BKrOFEMO.js +1 -0
- package/dist/web/assets/NewSessionPanel-CTdd7xpN.css +1 -0
- package/dist/web/assets/{NotFoundPage-Cr1MaPuk.js → NotFoundPage-CdOCRj3P.js} +1 -1
- package/dist/web/assets/NoticeRow-CQShZQtw.js +1 -0
- package/dist/web/assets/OccupationsPage-BrBus-nh.js +1 -0
- package/dist/web/assets/OverviewPage-Cq89Klha.js +1 -0
- package/dist/web/assets/{OverviewPage-Dr4jrXW4.css → OverviewPage-KVt4LcE-.css} +1 -1
- package/dist/web/assets/{PageColumns-DvehZlYm.js → PageColumns-CgIXTt4J.js} +1 -1
- package/dist/web/assets/PageOutline-D5h1GuKt.css +1 -0
- package/dist/web/assets/PageOutline-VtLLW4kh.js +1 -0
- package/dist/web/assets/{PersonalProfilePage-DnjNX2xK.css → PersonalProfilePage-BE5q2bqc.css} +1 -1
- package/dist/web/assets/PersonalProfilePage-C_dmUEuW.js +1 -0
- package/dist/web/assets/PersonalProjectsPage-CiCFHVt_.js +1 -0
- package/dist/web/assets/{PinIcon-BTQsnxRY.js → PinIcon-DD3Un-hh.js} +1 -1
- package/dist/web/assets/{PopperContent-DtMksk76.js → PopperContent-CCmt2yHl.js} +1 -1
- package/dist/web/assets/{Presence-B0zMpCF4.js → Presence-DqPb-1P1.js} +1 -1
- package/dist/web/assets/{ProfileAuthorChip-BqT9Vv65.js → ProfileAuthorChip-Dm5GjcAt.js} +1 -1
- package/dist/web/assets/ProjectAgentsPage-B5r0DKWL.js +5 -0
- package/dist/web/assets/ProjectJudgmentPolicy-BHyiqKLV.css +1 -0
- package/dist/web/assets/ProjectJudgmentPolicy-DVFV5Cai.js +2 -0
- package/dist/web/assets/{RecentNotices-vJobVOcm.js → RecentNotices-DYXEBfYm.js} +1 -1
- package/dist/web/assets/{RoundtablesPage-C3dYekQ5.js → RoundtablesPage-DlAXApKi.js} +2 -2
- package/dist/web/assets/{RovingFocusGroup-CUqyjFSs.js → RovingFocusGroup-CI4aZr1z.js} +1 -1
- package/dist/web/assets/{RovingFocusItem-CyyuWXjE.js → RovingFocusItem-C_N843Nb.js} +1 -1
- package/dist/web/assets/{SessionMigrationPage-DukDM0TP.js → SessionMigrationPage-CVKkTACn.js} +1 -1
- package/dist/web/assets/{SessionRecordsPage-DZ5ZBiuS.js → SessionRecordsPage-Dy203sP2.js} +1 -1
- package/dist/web/assets/SettingsPage-BcrAdXX7.js +1 -0
- package/dist/web/assets/SettingsPage-BlhCcwPn.css +1 -0
- package/dist/web/assets/SharedJefaReportPage-CASkC5pc.js +1 -0
- package/dist/web/assets/{TagVocabularyPage-BKLFJiSu.js → TagVocabularyPage-Bd57YcUL.js} +1 -1
- package/dist/web/assets/TaskBlockerClear-DGaXP2ak.js +1 -0
- package/dist/web/assets/TaskBlockerNotice-8nogmPA-.js +1 -0
- package/dist/web/assets/{TaskReason-D5j7L8tl.js → TaskReason-BxYwBDoB.js} +1 -1
- package/dist/web/assets/{TeamCard-CDunbIrP.js → TeamCard-cWYC5z07.js} +1 -1
- package/dist/web/assets/{TeamCardsWidget-CUW-fPn7.js → TeamCardsWidget-BOf6oHOp.js} +1 -1
- package/dist/web/assets/{TeamIsland-CmpDmIX2.js → TeamIsland-BD5s-zFZ.js} +1 -1
- package/dist/web/assets/{Teleport-Dzdr8umQ.js → Teleport-DhMmMHjy.js} +1 -1
- package/dist/web/assets/{TextField-BPhEpEv9.js → TextField-XakqTnVl.js} +1 -1
- package/dist/web/assets/TonborgDelegationSwitch-B59PUZBz.js +1 -0
- package/dist/web/assets/TonborgDelegationSwitch-BFb1JkWe.css +1 -0
- package/dist/web/assets/{UiChip-BEQ067LV.js → UiChip-BFdfq8Jm.js} +1 -1
- package/dist/web/assets/{UiChip-DulygSq8.css → UiChip-BiUmvjdz.css} +1 -1
- package/dist/web/assets/{UiDisclosure-L6GEJHSw.js → UiDisclosure-G3MiGB7F.js} +1 -1
- package/dist/web/assets/UiIcon--qI1_q89.js +1 -0
- package/dist/web/assets/UiSegmented-CRJ06vHP.js +1 -0
- package/dist/web/assets/{UiWeight-D-2iZ_Kc.js → UiWeight-BRA-6EY_.js} +1 -1
- package/dist/web/assets/{VirtualDirectoryList-BV8KsA-Z.js → VirtualDirectoryList-Dm07NMxq.js} +1 -1
- package/dist/web/assets/{VisuallyHidden-BxKxuXRF.js → VisuallyHidden-DIg8c_z2.js} +1 -1
- package/dist/web/assets/{VisuallyHiddenInput-DD4vhlqT.js → VisuallyHiddenInput-rcWqHewS.js} +1 -1
- package/dist/web/assets/WidgetSlot-C5h--noP.js +2 -0
- package/dist/web/assets/{WorkbenchListHead-B0TjHsTO.js → WorkbenchListHead-D40-J4GT.js} +1 -1
- package/dist/web/assets/WorkbenchListPage-CJUvq4Ac.js +1 -0
- package/dist/web/assets/_plugin-vue_export-helper-D9CtLGVz.js +9 -0
- package/dist/web/assets/{agent-apps-B1Je-mpY.js → agent-apps-Svxh5tiY.js} +1 -1
- package/dist/web/assets/agent-occupation-Dhoz7LjT.js +1 -0
- package/dist/web/assets/{agent-pins-DxHlJ96z.js → agent-pins-CvATgFji.js} +1 -1
- package/dist/web/assets/agent-profile-TuRobv9N.css +1 -0
- package/dist/web/assets/agent-roster-records-CsYjmaNn.js +1 -0
- package/dist/web/assets/{agent-work-summary-o_9-QWBL.js → agent-work-summary-BOeJ4JXc.js} +1 -1
- package/dist/web/assets/{agent-workflows-DgdbJqpg.js → agent-workflows-BS4KlKFj.js} +1 -1
- package/dist/web/assets/{attach-closest-edge-DUc_VUVO.js → attach-closest-edge-DFoBNGBU.js} +1 -1
- package/dist/web/assets/{attention-store-Bod20yM3.js → attention-store-CHxXJTuF.js} +1 -1
- package/dist/web/assets/{badge-tMy2Qr94.js → badge-DqHf-RNw.js} +1 -1
- package/dist/web/assets/{button-DnKFsImW.js → button-CdYobu4m.js} +1 -1
- package/dist/web/assets/{card-Ccu7HCNb.js → card-8xZot-73.js} +1 -1
- package/dist/web/assets/{catalog-CJUV8OJ6.js → catalog-h6KbvKdB.js} +1 -1
- package/dist/web/assets/{checkbox-D1R6kTUB.js → checkbox-DZ6CDZ8r.js} +1 -1
- package/dist/web/assets/{client-D-G2i5VU.js → client-DRnUmjCk.js} +1 -1
- package/dist/web/assets/{client-links-store-UgmraFBZ.js → client-links-store-DQY0A5PC.js} +1 -1
- package/dist/web/assets/{combobox-C7QLYGzs.js → combobox-DE0HzdKP.js} +1 -1
- package/dist/web/assets/console-BF8ZU9dG.js +1 -0
- package/dist/web/assets/conversation-launcher-settings-D4vYOpHN.js +1 -0
- package/dist/web/assets/{copy-mention-C0EJhDPy.js → copy-mention-Crs0NIJB.js} +1 -1
- package/dist/web/assets/{dialog-Bbq93W68.js → dialog-Bg5NVU4Y.js} +1 -1
- package/dist/web/assets/{dist-PpsW5ZE3.js → dist--2DWcoU9.js} +1 -1
- package/dist/web/assets/{dist-Dd8yFhv6.js → dist-INkzWhVF.js} +1 -1
- package/dist/web/assets/{dropdown-menu-1fGUL0V3.js → dropdown-menu-C5Kf9x2y.js} +1 -1
- package/dist/web/assets/{field-DjVv_wIS.js → field-7G2bSNl5.js} +1 -1
- package/dist/web/assets/{format-bytes-BKq_E0Hs.js → format-bytes-Jj3-0UhP.js} +1 -1
- package/dist/web/assets/{hover-card-BO-929hq.js → hover-card-llxR7wrX.js} +1 -1
- package/dist/web/assets/index-C2o_v2mq.js +24 -0
- package/dist/web/assets/index-HRZACEmh.css +1 -0
- package/dist/web/assets/{input-DmwRmYO2.js → input-z5o2wIZC.js} +1 -1
- package/dist/web/assets/{label-BvwPUTS4.js → label-BtTrlS8e.js} +1 -1
- package/dist/web/assets/label-table-CuTFbFd3.js +1 -0
- package/dist/web/assets/{model-0TZRbkN2.js → model-BD6AfoOR.js} +1 -1
- package/dist/web/assets/model-BKg9fdsn.js +3 -0
- package/dist/web/assets/{model-BF_ZMPLi.js → model-BMd98Yux.js} +1 -1
- package/dist/web/assets/{model-CaR7VPg7.js → model-Bb0VtRJH.js} +1 -1
- package/dist/web/assets/{model-Tmn6HvL-.js → model-Bhyqm3my.js} +1 -1
- package/dist/web/assets/model-Big7Ppeu.js +1 -0
- package/dist/web/assets/{model-Dfe81jZT.js → model-CCaA3vRN.js} +1 -1
- package/dist/web/assets/{model-y7OUvtKz.js → model-CGfhtR6w.js} +1 -1
- package/dist/web/assets/{model-DpkZUZUL.js → model-Ejc2vysd.js} +1 -1
- package/dist/web/assets/{motion-C1fZrqmI.js → motion-Cw_hptY4.js} +1 -1
- package/dist/web/assets/{motion-mAmbRj_M.js → motion-pePEUhOt.js} +1 -1
- package/dist/web/assets/{motion-preference-Dz9S1bZa.js → motion-preference-DTwjqiJ8.js} +1 -1
- package/dist/web/assets/{occupation-catalog-_SnxxRbK.js → occupation-catalog-ByjQk0EY.js} +1 -1
- package/dist/web/assets/{occupation-kits-DFC6Auuc.js → occupation-kits-Dg6UZqc1.js} +1 -1
- package/dist/web/assets/{option-DC8frdbr.js → option-BIjYeAh2.js} +1 -1
- package/dist/web/assets/{orchestration-filters-UeiAHJqn.js → orchestration-filters-3AfjDoHQ.js} +1 -1
- package/dist/web/assets/overview-data-BIeNATEJ.js +1 -0
- package/dist/web/assets/{page-refresh-DdRJaxMv.js → page-refresh-BTqRX45n.js} +1 -1
- package/dist/web/assets/{page-title-Cm9u_qw1.js → page-title-B5RyNTPD.js} +1 -1
- package/dist/web/assets/{person-profile-BH2AzOfw.js → person-profile-BzPwdtix.js} +1 -1
- package/dist/web/assets/{popover-DW__YCSE.js → popover-BsWyCEy5.js} +1 -1
- package/dist/web/assets/popup-host-DWJ1gygp.js +1 -0
- package/dist/web/assets/{profile-model-DtISOJ-X.js → profile-model-TAsyybji.js} +1 -1
- package/dist/web/assets/{project-board-layout-CTM8kAgq.js → project-board-layout-BwyHItDc.js} +1 -1
- package/dist/web/assets/{project-capture-B3pNhpFF.js → project-capture-I8-7JwsK.js} +1 -1
- package/dist/web/assets/{project-origin-BO8Ngccf.js → project-origin-B_Ku288r.js} +1 -1
- package/dist/web/assets/{quick-edit-api-B169r5Qb.js → quick-edit-api-Cm-W3ZVP.js} +1 -1
- package/dist/web/assets/{radio-group-DqA46cXQ.js → radio-group-DJ5np5d_.js} +1 -1
- package/dist/web/assets/review-api-Gwr5nP1B.js +1 -0
- package/dist/web/assets/{review-list-BbV-Mle7.js → review-list-CNeXKjBw.js} +1 -1
- package/dist/web/assets/review-store-BaMwO51r.js +1 -0
- package/dist/web/assets/{role-names-By0xdfTn.js → role-names-C-F0XIE1.js} +1 -1
- package/dist/web/assets/{roundtable-live-u9qUU6aA.js → roundtable-live-CM4Cqw2v.js} +1 -1
- package/dist/web/assets/{runtime-dom.esm-bundler-DhFy4Djs.js → runtime-dom.esm-bundler-tA5o2TEo.js} +1 -1
- package/dist/web/assets/{select-TqPBladU.js → select-DJ7iyJ-X.js} +1 -1
- package/dist/web/assets/{session-launch-offers-CtQeY4Qk.js → session-launch-offers-CEdCRTz9.js} +1 -1
- package/dist/web/assets/{settings-autosave-C7vW3_SP.js → settings-autosave-D3wBf_zN.js} +1 -1
- package/dist/web/assets/settings-tabs-B9pCaEFP.js +1 -0
- package/dist/web/assets/{npm-copies-GRyMAduA.css → settings-tabs-C9VDs91j.css} +1 -1
- package/dist/web/assets/shared-report-KyuP8oQk.js +3 -0
- package/dist/web/assets/source-adapters-BR-AAGhD.js +1 -0
- package/dist/web/assets/{switch-D7w_0h3m.js → switch-BoOtTu6O.js} +1 -1
- package/dist/web/assets/{tabs-DR8k0PN9.js → tabs-D0TAS18R.js} +1 -1
- package/dist/web/assets/{task-card-fields-X1ZYCm_j.js → task-card-fields-BWlLtcKE.js} +1 -1
- package/dist/web/assets/task-evidence-DydhKn9x.js +1 -0
- package/dist/web/assets/{task-labels-LuXoQhF9.js → task-labels-BrNKooHK.js} +1 -1
- package/dist/web/assets/{task-reason-ChpbGtyx.js → task-reason-CvmaNQWE.js} +1 -1
- package/dist/web/assets/{team-sheets-DYCQqa8I.js → team-sheets-DkAuebg6.js} +1 -1
- package/dist/web/assets/{textarea-D53VYanK.js → textarea-BQnuJ0v3.js} +1 -1
- package/dist/web/assets/ui-CJiEsCpv.js +1 -0
- package/dist/web/assets/ui-CgwSWg1F.css +1 -0
- package/dist/web/assets/{useAgentRecords-Hy9nqMs7.js → useAgentRecords-PysQYF4V.js} +1 -1
- package/dist/web/assets/{useAgentWorkSummary-mloD4p12.js → useAgentWorkSummary-DaNyOo2z.js} +1 -1
- package/dist/web/assets/{useApi-CROJJdhE-DnUGUb8O.js → useApi-CROJJdhE-CgPyy2pi.js} +1 -1
- package/dist/web/assets/{useClipboardCopy-BTuQMeWI.js → useClipboardCopy-Cf3GZrHC.js} +1 -1
- package/dist/web/assets/{useFocusReturn-4hUmSzj9.js → useFocusReturn-uY18_eDg.js} +1 -1
- package/dist/web/assets/{useForwardExpose-BDmW7q7u.js → useForwardExpose-Ci_aBJDg.js} +1 -1
- package/dist/web/assets/{useForwardPropsEmits-BzT2luD4.js → useForwardPropsEmits-mGaDeNMp.js} +1 -1
- package/dist/web/assets/useForwardScopeId-DYW8CZTp.js +1 -0
- package/dist/web/assets/{useKnowledgeConfirm-L8wnJCuX.js → useKnowledgeConfirm-PcqqgwNU.js} +1 -1
- package/dist/web/assets/{useKnowledgeItemPeek-C_huXt6E.js → useKnowledgeItemPeek-yjyrSFtf.js} +1 -1
- package/dist/web/assets/{useMinimumLoadingDisplay-Dkl8NQru.js → useMinimumLoadingDisplay-Bu6xyHby.js} +1 -1
- package/dist/web/assets/{usePageTools-CbDOdIrg.js → usePageTools-DYi9x7HJ.js} +1 -1
- package/dist/web/assets/usePrimitiveElement-DdC34jzt.js +1 -0
- package/dist/web/assets/{useProjectAgentRoster-BBmRvcgr.js → useProjectAgentRoster-KPwWl2jE.js} +1 -1
- package/dist/web/assets/{useRoutePeek-CRbCDqsm.js → useRoutePeek-BiHDBRKc.js} +1 -1
- package/dist/web/assets/useTeamPeople-Od3dDz6d.js +1 -0
- package/dist/web/assets/{useTeamWork-CXEQwF4n.js → useTeamWork-CDKVZwYe.js} +1 -1
- package/dist/web/assets/{useTypeahead-CVYuxPOD.js → useTypeahead-D_Z5P9Xm.js} +1 -1
- package/dist/web/assets/{utils-BsGjKHV8.js → utils-CAAvfQSj.js} +1 -1
- package/dist/web/assets/{utils-BnrWDlfm.js → utils-D6RjkXrh.js} +1 -1
- package/dist/web/assets/{verification-DbCo_dnY.js → verification-DoN2EFaZ.js} +1 -1
- package/dist/web/assets/version-DbJq2Cfv.js +1 -0
- package/dist/web/assets/{vue-router-D4_ms6om.js → vue-router-BwoPnYha.js} +1 -1
- package/dist/web/index.html +80 -87
- package/docs/agent-conversations-and-collaboration.md +6 -0
- package/docs/agent-interface-architecture.md +4 -1
- package/docs/agent-roundtable.md +45 -3
- package/docs/client-connections.md +29 -5
- package/docs/employee-agents.md +1 -1
- package/docs/external-knowledge-architecture.md +8 -3
- package/docs/judgment-and-autonomy.md +8 -4
- package/docs/project-agent-memory.md +12 -1
- package/graph-provider/fuli_graph/app.py +14 -234
- package/graph-provider/fuli_graph/auth.py +10 -0
- package/graph-provider/fuli_graph/builtin_embedding.py +388 -0
- package/graph-provider/fuli_graph/builtin_embedding_routes.py +53 -0
- package/graph-provider/fuli_graph/client_coverage.py +2 -2
- package/graph-provider/fuli_graph/config.py +3 -0
- package/graph-provider/fuli_graph/knowledge_duplicates.py +27 -15
- package/graph-provider/fuli_graph/knowledge_index_scan.py +13 -6
- package/graph-provider/fuli_graph/knowledge_search.py +142 -77
- package/graph-provider/fuli_graph/knowledge_semantic.py +47 -11
- package/graph-provider/fuli_graph/knowledge_semantic_index.py +5 -3
- package/graph-provider/fuli_graph/knowledge_tags.py +5 -10
- package/graph-provider/fuli_graph/models.py +16 -81
- package/graph-provider/fuli_graph/personal_global_preference_models.py +0 -23
- package/graph-provider/fuli_graph/personal_global_preferences.py +5 -630
- package/graph-provider/fuli_graph/preference_conflicts.py +3 -1
- package/graph-provider/fuli_graph/preference_organizing.py +162 -0
- package/graph-provider/fuli_graph/project_agent_delegations.py +6 -1
- package/graph-provider/fuli_graph/project_agent_executor_models.py +0 -26
- package/graph-provider/fuli_graph/project_agent_models.py +1 -0
- package/graph-provider/fuli_graph/project_agent_routes.py +22 -27
- package/graph-provider/fuli_graph/project_agent_task_models.py +26 -20
- package/graph-provider/fuli_graph/project_agent_work_log.py +4 -2
- package/graph-provider/fuli_graph/project_knowledge.py +2 -1
- package/graph-provider/fuli_graph/retired_graph_labels.py +30 -0
- package/graph-provider/fuli_graph/store_identity.py +4 -16
- package/graph-provider/fuli_graph/store_project_agent_executor_learning.py +0 -7
- package/graph-provider/fuli_graph/store_project_agent_executor_routing.py +0 -2
- package/graph-provider/fuli_graph/store_project_agent_executors.py +0 -8
- package/graph-provider/fuli_graph/store_project_agent_task_activity.py +51 -11
- package/graph-provider/fuli_graph/store_project_agent_task_blockers.py +13 -6
- package/graph-provider/fuli_graph/store_project_agent_task_person_close.py +82 -0
- package/graph-provider/fuli_graph/store_project_agent_task_recruitment.py +1 -61
- package/graph-provider/fuli_graph/store_project_agent_tasks.py +18 -1
- package/graph-provider/fuli_graph/store_project_agents.py +1 -1
- package/graph-provider/fuli_graph/store_projects.py +0 -151
- package/graph-provider/fuli_graph/store_publication.py +1 -160
- package/graph-provider/fuli_graph/store_records.py +0 -43
- package/graph-provider/fuli_graph/store_task_contexts.py +10 -0
- package/graph-provider/fuli_graph/task_blocker.py +10 -0
- package/graph-provider/fuli_graph/task_checkpoint_amendment.py +77 -0
- package/graph-provider/fuli_graph/task_context_auto_close.py +1 -1
- package/graph-provider/fuli_graph/task_context_models.py +19 -0
- package/graph-provider/fuli_graph/task_context_routes.py +5 -1
- package/graph-provider/fuli_graph/workflow_candidate_models.py +1 -61
- package/graph-provider/fuli_graph/workflow_candidates.py +7 -446
- package/graph-provider/fuli_graph/workflow_observation_models.py +1 -1
- package/graph-provider/pyproject.toml +1 -1
- package/native/win32/fuli-win-helper.exe +0 -0
- package/npm-shrinkwrap.json +57 -9
- package/package.json +4 -4
- package/packages/roundtable/package.json +1 -0
- package/packages/roundtable/src/agents/claude-code/wake.js +4 -2
- package/packages/roundtable/src/agents/codex/wake.js +26 -2
- package/packages/roundtable/src/agents/session-log.js +29 -7
- package/packages/roundtable/src/host.js +7 -1
- package/packages/roundtable/src/peer/control-cli.js +75 -2
- package/packages/roundtable/src/peer/control.js +15 -1
- package/packages/roundtable/src/peer/coordinator-http.js +23 -2
- package/packages/roundtable/src/peer/coordinator-service.js +81 -9
- package/packages/roundtable/src/peer/coordinator-store.js +2 -1
- package/packages/roundtable/src/peer/lan-addresses.js +28 -0
- package/packages/roundtable/src/peer/nearby-attempts.js +73 -0
- package/packages/roundtable/src/peer/nearby-discovery.js +71 -0
- package/packages/roundtable/src/peer/nearby-pairing.js +422 -0
- package/packages/roundtable/src/peer/nearby-presence.js +93 -0
- package/packages/roundtable/src/peer/node-store.js +10 -0
- package/packages/roundtable/src/peer/peer-runtime.js +528 -70
- package/packages/roundtable/src/peer/peer-transport.js +58 -3
- package/packages/roundtable/src/peer/protocol.js +24 -1
- package/packages/roundtable/src/roundtable/chat-service.js +14 -3
- package/packages/roundtable/src/roundtable/chat.js +1 -0
- package/packages/roundtable/src/roundtable/delivery-state.js +2 -1
- package/packages/roundtable/src/roundtable/group-discussion-store.js +130 -5
- package/packages/roundtable/src/roundtable/group-discussion.js +596 -111
- package/packages/roundtable/src/roundtable/near-names.js +27 -0
- package/packages/roundtable/src/roundtable/reply-inbox.js +6 -2
- package/packages/roundtable/src/roundtable/service.js +191 -49
- package/packages/roundtable/src/roundtable/stand-in.js +64 -0
- package/packages/roundtable/src/roundtable/store.js +19 -7
- package/packages/roundtable/src/roundtable/wake-ladder.js +63 -0
- package/packages/roundtable/src/roundtable/wake.js +10 -1
- package/packages/roundtable/src/standalone/cli.js +1 -1
- package/packages/roundtable/src/standalone/mcp.js +0 -5
- package/packages/roundtable/src/standalone/serve.js +13 -0
- package/registry/embedding-models.json +208 -0
- package/skills/capturing-session-knowledge/SKILL.md +2 -2
- package/skills/capturing-session-knowledge/references/capture.md +15 -34
- package/skills/capturing-session-knowledge/references/coordination.md +67 -4
- package/skills/capturing-session-knowledge/references/retrieval.md +9 -13
- package/skills/grilling-project/SKILL.md +8 -53
- package/skills/grilling-project/agents/openai.yaml +2 -2
- package/skills/grilling-project/references/project-profile.md +18 -27
- package/skills/operating-fuli/SKILL.md +56 -11
- package/skills/operating-fuli/references/workflow-recipes.md +8 -4
- package/src/agent-apps/host-tools/catalog.js +2 -25
- package/src/agent-delegation/port.js +1 -1
- package/src/agent-delegation/refusals.js +12 -4
- package/src/agent-kits/client-detection.js +14 -4
- package/src/agent-kits/installer-manifest.js +16 -5
- package/src/agent-kits/pack-manifest.js +7 -2
- package/src/agent-kits/pins.js +6 -6
- package/src/agent-kits/session-clients.js +1 -0
- package/src/agent-kits/vendor/agent-installer/README.md +1 -1
- package/src/agent-roundtable/task-context.js +1 -1
- package/src/agent-roundtable/tools.js +7 -4
- package/src/agent-roundtable/turn-receipt.js +65 -0
- package/src/agent-tools/graph-definitions.js +4 -2
- package/src/agent-tools/graph-handlers.js +9 -46
- package/src/agent-tools/interface-catalog.js +20 -15
- package/src/agent-tools/interface-definitions.js +3 -9
- package/src/agent-tools/judgment-definitions.js +1 -1
- package/src/agent-tools/knowledge-curation-definitions.js +1 -63
- package/src/agent-tools/knowledge-definitions.js +11 -124
- package/src/agent-tools/project-agent-definitions.js +2 -2
- package/src/agent-tools/project-agent-tool-definitions.js +0 -16
- package/src/agent-tools/project-organizing-definitions.js +34 -0
- package/src/agent-tools/project-space-definitions.js +6 -83
- package/src/agent-tools/retired-tools.js +37 -0
- package/src/agent-tools/session-fuli-gate.js +6 -1
- package/src/agent-tools/task-entry-definitions.js +4 -3
- package/src/agent-tools/tonborg-question-definitions.js +3 -3
- package/src/agent-tools.js +5 -1
- package/src/agents/choice-answers.js +2 -1
- package/src/agents/claude-code/choice-answers.js +2 -24
- package/src/agents/claude-desktop/app-control.js +23 -0
- package/src/agents/client-apps.js +8 -0
- package/src/agents/codex/choice-answers.js +61 -0
- package/src/agents/codex/lifecycle-hook.js +6 -12
- package/src/agents/dsh/bundle.js +50 -0
- package/src/agents/dsh/lifecycle-hook.js +18 -0
- package/src/agents/dsh/plugin.js +111 -0
- package/src/agents/identity-receipt.js +22 -5
- package/src/agents/jsonl-tail.js +35 -0
- package/src/agents/native-session-env.js +7 -0
- package/src/agents/opencode/lifecycle-hook.js +9 -174
- package/src/agents/opencode/plugin-file.js +7 -29
- package/src/agents/opencode/plugin.js +3 -76
- package/src/agents/plugin-hook-process.js +87 -0
- package/src/agents/plugin-lifecycle-hook.js +174 -0
- package/src/agents/plugin-module-source.js +26 -0
- package/src/agents/source-applications.js +3 -3
- package/src/agents/token-usage-resolver.js +0 -6
- package/src/cli/clients-command.js +3 -3
- package/src/cli/command-registry.js +1 -2
- package/src/cli/connect-command.js +1 -1
- package/src/cli/mcp-command.js +1 -1
- package/src/cli/setup-command.js +3 -2
- package/src/cli.js +0 -5
- package/src/conversations/entry-budget.js +4 -3
- package/src/conversations/entry-inline-budget.js +40 -10
- package/src/conversations/person-words.js +0 -5
- package/src/conversations/preference-lifecycle.js +3 -3
- package/src/conversations/turn-findings.js +9 -2
- package/src/data-format/local-stores.js +6 -0
- package/src/debug-turns/model-request.js +2 -27
- package/src/desktop/npm-copy-data.js +20 -6
- package/src/embedding-models/manifest.js +147 -0
- package/src/embedding-models/port.js +117 -0
- package/src/embedding-models/registry.js +24 -0
- package/src/embedding-models/store.js +208 -0
- package/src/external-knowledge/connectors/custom.js +4 -0
- package/src/external-knowledge/connectors/mcp.js +13 -1
- package/src/external-knowledge/connectors/response-values.js +8 -0
- package/src/external-knowledge/connectors/retrieval-api.js +5 -1
- package/src/external-knowledge/service.js +22 -5
- package/src/graphiti/agent-conversations.js +3 -2
- package/src/graphiti/agent-knowledge-workflows.js +1 -6
- package/src/graphiti/agent-project-resolution.js +18 -0
- package/src/graphiti/capture-change-confirmation.js +1 -1
- package/src/graphiti/checkpoint-amendment.js +50 -0
- package/src/graphiti/checkpoint-capture.js +7 -3
- package/src/graphiti/checkpoint-save-status.js +71 -0
- package/src/graphiti/collaboration-preference-entry.js +5 -2
- package/src/graphiti/current-project-knowledge-search.js +3 -3
- package/src/graphiti/federated-application.js +11 -132
- package/src/graphiti/first-run-guide.js +25 -4
- package/src/graphiti/fla-mention.js +48 -9
- package/src/graphiti/fuli-markup.js +1 -1
- package/src/graphiti/human-review-channel.js +4 -2
- package/src/graphiti/knowledge-curation.js +12 -24
- package/src/graphiti/knowledge-provider-mapping.js +0 -21
- package/src/graphiti/knowledge-reader.js +0 -7
- package/src/graphiti/knowledge-spaces.js +36 -0
- package/src/graphiti/local-runtimes.js +9 -1
- package/src/graphiti/personal-global-preference-candidates.js +0 -44
- package/src/graphiti/project-agent-control-plane.js +5 -12
- package/src/graphiti/project-agent-mapping.js +0 -13
- package/src/graphiti/project-agent-task-summaries.js +82 -0
- package/src/graphiti/project-agent-workflows.js +8 -21
- package/src/graphiti/project-path-context.js +23 -9
- package/src/graphiti/provider-client.js +41 -168
- package/src/graphiti/reply-echo-group.js +7 -6
- package/src/graphiti/repository-remote.js +34 -8
- package/src/graphiti/roundtable-host.js +14 -1
- package/src/graphiti/session-knowledge-capture.js +5 -31
- package/src/graphiti/task-context-entry.js +4 -1
- package/src/graphiti/task-entry-group-discussion.js +111 -25
- package/src/graphiti/task-entry-owner-change.js +86 -0
- package/src/graphiti/task-entry-preferences.js +23 -6
- package/src/graphiti/task-entry-project-scope.js +24 -1
- package/src/graphiti/task-knowledge-checkpoint.js +30 -14
- package/src/graphiti/task-preference-pages.js +3 -3
- package/src/graphiti/task-preference-reader.js +44 -9
- package/src/graphiti/topic-proposals.js +31 -8
- package/src/graphiti/topic-team-handoff.js +121 -0
- package/src/graphiti/worker-task-context.js +1 -1
- package/src/graphiti/workflow-learning.js +0 -25
- package/src/graphiti/workspace-provider-client.js +4 -50
- package/src/http/api-router.js +18 -0
- package/src/http/capture-onboarding-api-router.js +13 -4
- package/src/http/embedding-models-api-router.js +36 -0
- package/src/http/graph-api-router.js +3 -125
- package/src/http/project-organizing-api-router.js +27 -0
- package/src/http/reply-echo-api-router.js +2 -2
- package/src/http/request-policy.js +0 -4
- package/src/http/task-blocker-api-router.js +11 -1
- package/src/http/task-close-api-router.js +59 -0
- package/src/judgment/acceptance.js +2 -2
- package/src/judgment/agent-view.js +8 -8
- package/src/judgment/conversation.js +75 -69
- package/src/judgment/engine.js +39 -37
- package/src/judgment/explain-method.js +8 -7
- package/src/judgment/http.js +5 -3
- package/src/judgment/question-options.js +117 -74
- package/src/judgment/question-tools.js +54 -34
- package/src/judgment/review-delegation.js +32 -7
- package/src/judgment/review-egress.js +25 -0
- package/src/judgment/review-prompt.js +29 -33
- package/src/judgment/routing.js +4 -3
- package/src/judgment/service.js +51 -9
- package/src/judgment/verdict-schema.js +2 -7
- package/src/knowledge-hard-delete/console-port.js +1 -7
- package/src/knowledge-hard-delete/forget-references.js +1 -1
- package/src/knowledge-owner-reads/console-port.js +8 -19
- package/src/mcp/chat-listing.js +1 -1
- package/src/mcp/create-mcp-server.js +13 -33
- package/src/mcp/direct-call.js +3 -4
- package/src/mcp/preference-delivery.js +65 -5
- package/src/mcp/provider-task-context-registry.js +14 -0
- package/src/mcp/session-id.js +13 -37
- package/src/mcp/tool-annotations.js +3 -44
- package/src/mcp/tool-result.js +8 -6
- package/src/model-backends/adapters/builtin-embeddings.js +44 -0
- package/src/model-backends/adapters/registry.js +3 -1
- package/src/model-backends/config.js +24 -4
- package/src/model-backends/egress.js +8 -0
- package/src/model-backends/failures.js +8 -0
- package/src/model-backends/port.js +46 -17
- package/src/model-backends/role-trust.js +3 -9
- package/src/model-backends/runtime.js +6 -13
- package/src/model-backends/secret-store.js +2 -20
- package/src/model-backends/usage-ledger.js +20 -9
- package/src/native-runtime/runtime.js +13 -2
- package/src/presence/windows-helper-pin.js +1 -1
- package/src/project-organizing/agent-tool.js +92 -0
- package/src/project-organizing/model-tiers.js +31 -0
- package/src/project-organizing/port.js +130 -0
- package/src/server.js +29 -13
- package/src/setup/agents/claude-code/descriptor.json +1 -5
- package/src/setup/agents/codex/descriptor.json +1 -5
- package/src/setup/agents/cursor/descriptor.json +1 -5
- package/src/setup/agents/descriptor-schema.js +4 -1
- package/src/setup/agents/opencode/descriptor.json +1 -5
- package/src/setup/paths.js +1 -0
- package/src/system/client-connection-install.js +12 -2
- package/src/system/client-connection-status.js +90 -20
- package/src/system/client-restart.js +72 -0
- package/src/system/configured-install.js +103 -0
- package/src/system/doctor-repair.js +3 -1
- package/src/system/doctor.js +3 -1
- package/src/system/system-service.js +14 -2
- package/src/task-blockers/agent-resume.js +73 -0
- package/src/task-blockers/console-port.js +5 -2
- package/src/task-blockers/resume-status.js +2 -0
- package/src/task-closing/console-port.js +26 -0
- package/src/whats-new/lines/0.27.0.json +13 -0
- package/src/whats-new/lines/0.27.1.json +13 -0
- package/dist/web/assets/AgentAppsPage-5VW0uCTz.js +0 -1
- package/dist/web/assets/AgentProfilePage-BLeyT3By.js +0 -5
- package/dist/web/assets/AgentServicesPage-BXi152Xc.js +0 -1
- package/dist/web/assets/Breadcrumb-DtM5lZy5.js +0 -1
- package/dist/web/assets/CaptureChangePage-BzwcfacI.js +0 -1
- package/dist/web/assets/ConnectionsPage-C_vgqwF2.js +0 -1
- package/dist/web/assets/ConnectionsPage-DS2PEG6K.css +0 -1
- package/dist/web/assets/DataFormatPage-DwL4Ofc9.js +0 -2
- package/dist/web/assets/DebugTurnPage-UpK_3ZWY.js +0 -1
- package/dist/web/assets/DebugTurnsPage-C0aZg5-3.js +0 -1
- package/dist/web/assets/EmployeeScopeDialog-Bt3ZlDyZ.js +0 -1
- package/dist/web/assets/EmployeeWorkbench-GtJIUD5G.js +0 -4
- package/dist/web/assets/FieldRoot-DRf4wM5x.js +0 -1
- package/dist/web/assets/FlasPage-CgIVOGFM.js +0 -1
- package/dist/web/assets/InboxPage-1ue8vA7H.css +0 -1
- package/dist/web/assets/InboxPage-zNUnnYeJ.js +0 -6
- package/dist/web/assets/KnowledgeItemEditPage-DGRNkAYd.js +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-BWvF1GEu.js +0 -1
- package/dist/web/assets/KnowledgePage--Z4_kAhq.js +0 -1
- package/dist/web/assets/KnowledgePeek-BgzQA9SI.js +0 -1
- package/dist/web/assets/KnowledgeWorkspace-0yOpWtEB.js +0 -4
- package/dist/web/assets/KnowledgeWorkspace-BgWo6lBj.css +0 -1
- package/dist/web/assets/ModelSettingsPage-B9PS1Kay.css +0 -1
- package/dist/web/assets/ModelSettingsPage-BL6MsF7C.js +0 -1
- package/dist/web/assets/NoticeRow-BXZWn4EZ.js +0 -1
- package/dist/web/assets/OccupationsPage-CkVqZ2pz.js +0 -1
- package/dist/web/assets/OverviewPage-_9e2idJR.js +0 -1
- package/dist/web/assets/PageOutline-CFGtHmOK.js +0 -1
- package/dist/web/assets/PageOutline-DG5ZYtA8.css +0 -1
- package/dist/web/assets/PersonalProfilePage-TxsNr44t.js +0 -1
- package/dist/web/assets/PersonalProjectsPage-AhgP6CL8.js +0 -1
- package/dist/web/assets/ProjectAgentsPage-O-cMavcz.js +0 -5
- package/dist/web/assets/ProjectJudgmentPolicy-CyHAu0nm.js +0 -2
- package/dist/web/assets/ProjectJudgmentPolicy-DnjMniaz.css +0 -1
- package/dist/web/assets/PublicProjectsPage-Ck1QSR0R.js +0 -1
- package/dist/web/assets/PublicProjectsPage-CskSzffL.css +0 -1
- package/dist/web/assets/SettingsPage-Cj3pEWcd.css +0 -1
- package/dist/web/assets/SettingsPage-bLssMIz6.js +0 -1
- package/dist/web/assets/SharedJefaReportPage-DUY03VLS.js +0 -1
- package/dist/web/assets/TaskBlockerClear-BxOiiuK8.js +0 -1
- package/dist/web/assets/TaskBlockerNotice-iUiD3BuZ.js +0 -1
- package/dist/web/assets/TonborgDelegationSwitch-C1nkJqkJ.js +0 -1
- package/dist/web/assets/TonborgDelegationSwitch-DeqERWoo.css +0 -1
- package/dist/web/assets/UiDialog-JjqzOA0z.js +0 -1
- package/dist/web/assets/UiIcon-vgD4v8q8.js +0 -1
- package/dist/web/assets/UiIconButton-BzyMc14P.js +0 -1
- package/dist/web/assets/UiIconButton-ZCBdABdM.css +0 -1
- package/dist/web/assets/UiSegmented-CIIm3KoV.js +0 -1
- package/dist/web/assets/WidgetSlot-Dw5nWlb7.js +0 -2
- package/dist/web/assets/WorkbenchListPage-D0xX-YNl.js +0 -1
- package/dist/web/assets/_plugin-vue_export-helper-B4pFJCwG.js +0 -9
- package/dist/web/assets/agent-occupation-CjfQqSzd.js +0 -1
- package/dist/web/assets/agent-profile-BNPLhDog.css +0 -1
- package/dist/web/assets/agent-roster-records-Bi5HWDif.js +0 -1
- package/dist/web/assets/console-DgRc8Itw.js +0 -1
- package/dist/web/assets/conversation-launcher-settings-CZAfuu8B.js +0 -1
- package/dist/web/assets/identity-DIG-uOiU.js +0 -1
- package/dist/web/assets/index-C2VDC1uO.js +0 -24
- package/dist/web/assets/index-DF0TcfPY.css +0 -1
- package/dist/web/assets/label-table-CDzYRZpc.js +0 -1
- package/dist/web/assets/model-BjUERpoQ.js +0 -3
- package/dist/web/assets/npm-copies-BLRc0FXW.js +0 -1
- package/dist/web/assets/overview-data-Cq1gefY5.js +0 -1
- package/dist/web/assets/popup-host-ctKYu9Ze.js +0 -1
- package/dist/web/assets/review-api-CJaNgPMA.js +0 -1
- package/dist/web/assets/review-store-DSQpb5P8.js +0 -1
- package/dist/web/assets/shared-report-DQBSigHB.js +0 -3
- package/dist/web/assets/source-adapters-DPJzumzC.js +0 -1
- package/dist/web/assets/task-evidence-DIbw2U42.js +0 -1
- package/dist/web/assets/ui-D4nAhcmu.css +0 -1
- package/dist/web/assets/ui-DmNbL8MW.js +0 -1
- package/dist/web/assets/useForwardScopeId-DZCnSswO.js +0 -1
- package/dist/web/assets/usePrimitiveElement-tPQM7XJs.js +0 -1
- package/dist/web/assets/useTeamPeople-D_5cxxf1.js +0 -1
- package/dist/web/assets/version-lXtOG8uf.js +0 -1
- package/docs/public-personal-architecture.md +0 -73
- package/graph-provider/fuli_graph/common_knowledge.py +0 -459
- package/graph-provider/fuli_graph/common_knowledge_models.py +0 -54
- package/graph-provider/fuli_graph/project_management.py +0 -251
- package/skills/flreview/SKILL.md +0 -101
- package/skills/flreview/agents/openai.yaml +0 -6
- package/src/agent-tools/project-relation-definitions.js +0 -36
- package/src/agents/codex/acp-process.js +0 -244
- package/src/agents/codex/acp-session.js +0 -190
- package/src/agents/codex/acp-worker.js +0 -54
- package/src/agents/codex/review-command.js +0 -29
- package/src/cli/worker-command.js +0 -80
- package/src/graphiti/checkpoint-provider-outage.js +0 -23
- package/src/graphiti/common-knowledge-candidates.js +0 -222
- package/src/graphiti/public-project-relations.js +0 -28
- package/src/graphiti/public-projects.js +0 -125
- package/src/graphiti/public-submission-reconciliation.js +0 -37
- package/src/graphiti/public-submission.js +0 -77
- package/src/graphiti/publication-draft-capture.js +0 -28
- package/src/graphiti/publication-draft-input.js +0 -11
- package/src/graphiti/publication-review-queues.js +0 -50
- package/src/graphiti/worker-plan-host.js +0 -92
- package/src/graphiti/worker-run-host.js +0 -287
- package/src/graphiti/workflow-observation.js +0 -72
- package/src/mcp/common-knowledge-preview-tokens.js +0 -67
- package/src/server/worker-plan-runtime.js +0 -56
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fuli-context",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.1",
|
|
4
4
|
"description": "Local-first collaboration relationship graph for AI agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"packages/roundtable/src/",
|
|
15
15
|
"dist/web/",
|
|
16
16
|
"docs/external-knowledge-architecture.md",
|
|
17
|
-
"docs/public-personal-architecture.md",
|
|
18
17
|
"docs/project-agent-memory.md",
|
|
19
18
|
"docs/agent-conversations-and-collaboration.md",
|
|
20
19
|
"docs/employee-agents.md",
|
|
@@ -88,10 +87,11 @@
|
|
|
88
87
|
"license": "Apache-2.0",
|
|
89
88
|
"dependencies": {
|
|
90
89
|
"@agentclientprotocol/sdk": "1.5.0",
|
|
91
|
-
"@hono/node-server": "2.1.
|
|
90
|
+
"@hono/node-server": "2.1.8",
|
|
92
91
|
"@internationalized/date": "3.12.4",
|
|
93
92
|
"@modelcontextprotocol/sdk": "^1.31.0",
|
|
94
93
|
"@peculiar/x509": "2.1.0",
|
|
94
|
+
"bonjour-service": "1.4.4",
|
|
95
95
|
"reflect-metadata": "0.2.2",
|
|
96
96
|
"smol-toml": "1.9.1",
|
|
97
97
|
"zod": "^4.6.7"
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
},
|
|
135
135
|
"overrides": {
|
|
136
136
|
"@modelcontextprotocol/sdk": {
|
|
137
|
-
"@hono/node-server": "2.1.
|
|
137
|
+
"@hono/node-server": "2.1.8"
|
|
138
138
|
},
|
|
139
139
|
"brace-expansion": "$brace-expansion",
|
|
140
140
|
"fast-uri": "3.1.9",
|
|
@@ -41,10 +41,12 @@ export const claudeCodeWake = Object.freeze({
|
|
|
41
41
|
return null;
|
|
42
42
|
},
|
|
43
43
|
|
|
44
|
-
// stream-json ends with one `result` event carrying the final answer.
|
|
45
|
-
|
|
44
|
+
// stream-json ends with one `result` event carrying the final answer. Its
|
|
45
|
+
// `system` `init` event names the model the session runs (rec#129).
|
|
46
|
+
initialState: () => ({ body: '', completed: true, failed: false, model: null }),
|
|
46
47
|
nativeSessionId: event => event.type === 'system' && event.subtype === 'init' ? event.session_id : null,
|
|
47
48
|
readEvent(event, state) {
|
|
49
|
+
if (event.type === 'system' && event.subtype === 'init' && typeof event.model === 'string') state.model = event.model;
|
|
48
50
|
if (event.type !== 'result') return;
|
|
49
51
|
state.body = event.result ?? '';
|
|
50
52
|
state.failed ||= Boolean(event.is_error);
|
|
@@ -2,7 +2,10 @@ import { existsSync, statSync } from 'node:fs';
|
|
|
2
2
|
import { homedir } from 'node:os';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
|
|
5
|
-
import { findFile, firstField, listDirectory } from '../session-log.js';
|
|
5
|
+
import { findFile, firstField, lastEntries, listDirectory } from '../session-log.js';
|
|
6
|
+
|
|
7
|
+
const TURN_START = 'task_started';
|
|
8
|
+
const TURN_ENDS = new Set(['task_complete', 'turn_aborted']);
|
|
6
9
|
|
|
7
10
|
// Wakes Codex headlessly with a read-only sandbox. Resuming records the exchange in
|
|
8
11
|
// that conversation; Codex refuses while the conversation is open in the app.
|
|
@@ -29,11 +32,28 @@ export const codexWake = Object.freeze({
|
|
|
29
32
|
|
|
30
33
|
// A session resumes only from the directory it started in.
|
|
31
34
|
sessionDirectory(sessionId, { home, env }) {
|
|
32
|
-
const file =
|
|
35
|
+
const file = sessionFile(sessionId, { home, env });
|
|
33
36
|
return file ? firstField(file, (line) => line.type === 'session_meta' ? line.payload?.cwd : null) : null;
|
|
34
37
|
},
|
|
35
38
|
|
|
39
|
+
// `codex exec resume` writes into the conversation in place, so a turn that
|
|
40
|
+
// may still be running there is never joined (rec#109): the ask goes elsewhere.
|
|
41
|
+
// Only evidence counts as idle: the last turn event read is an end, or the
|
|
42
|
+
// whole log was read and no turn ever started. A quiet log (a long tool wait),
|
|
43
|
+
// a start outside the read tail or a line that cannot be read (an event still
|
|
44
|
+
// being written, maybe a new start) proves nothing, so it may still be running.
|
|
45
|
+
turnRunning(sessionId, { home, env }) {
|
|
46
|
+
const file = sessionFile(sessionId, { home, env });
|
|
47
|
+
if (!file) return false;
|
|
48
|
+
const { entries, whole, unreadable } = lastEntries(file);
|
|
49
|
+
if (unreadable) return true;
|
|
50
|
+
const last = entries.filter(entry => entry.type === 'event_msg').map(entry => entry.payload?.type)
|
|
51
|
+
.filter(type => type === TURN_START || TURN_ENDS.has(type)).at(-1);
|
|
52
|
+
return last === undefined ? !whole : !TURN_ENDS.has(last);
|
|
53
|
+
},
|
|
54
|
+
|
|
36
55
|
// `codex exec --json` streams items; the last agent message before turn.completed is the answer.
|
|
56
|
+
// No event names the model, so a Codex wake's model stays unknown (rec#129).
|
|
37
57
|
initialState: () => ({ body: '', completed: false, failed: false }),
|
|
38
58
|
nativeSessionId: event => event.type === 'thread.started' ? event.thread_id : null,
|
|
39
59
|
readEvent(event, state) {
|
|
@@ -43,6 +63,10 @@ export const codexWake = Object.freeze({
|
|
|
43
63
|
},
|
|
44
64
|
});
|
|
45
65
|
|
|
66
|
+
function sessionFile(sessionId, { home, env }) {
|
|
67
|
+
return findFile(join(env.CODEX_HOME || join(home, '.codex'), 'sessions'), `${sessionId}.jsonl`, 4);
|
|
68
|
+
}
|
|
69
|
+
|
|
46
70
|
// The Codex app keeps each CLI version in its own folder; the newest is current.
|
|
47
71
|
export function newestBundledCodex(root) {
|
|
48
72
|
const candidates = [join(root, 'codex.exe'), ...listDirectory(root).map((entry) => join(root, entry, 'codex.exe'))]
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { closeSync, openSync, readSync, readdirSync } from 'node:fs';
|
|
1
|
+
import { closeSync, fstatSync, openSync, readSync, readdirSync } from 'node:fs';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
3
|
|
|
4
4
|
// Read-only helpers for locating a client's JSONL session log on disk.
|
|
5
5
|
|
|
6
|
+
const WINDOW_BYTES = 256 * 1024;
|
|
7
|
+
|
|
6
8
|
export function listDirectory(directory) {
|
|
7
9
|
try { return readdirSync(directory); } catch { return []; }
|
|
8
10
|
}
|
|
@@ -22,13 +24,33 @@ export function findFile(directory, suffix, depth) {
|
|
|
22
24
|
|
|
23
25
|
// The first non-empty string `pick` returns for a JSON line near the start of the log.
|
|
24
26
|
export function firstField(file, pick) {
|
|
27
|
+
for (const line of readWindow(file, 'start').lines) {
|
|
28
|
+
try { const value = pick(JSON.parse(line)); if (typeof value === 'string' && value) return value; } catch { /* partial line */ }
|
|
29
|
+
}
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// The JSON lines near the end of the log, oldest first; whether they are the
|
|
34
|
+
// whole log; and whether any line could not be read (`unreadable`): one still
|
|
35
|
+
// being written, or damaged. Only the first line of a cut tail is expected to be
|
|
36
|
+
// partial and does not count.
|
|
37
|
+
export function lastEntries(file) {
|
|
38
|
+
const { lines, whole } = readWindow(file, 'end');
|
|
39
|
+
const entries = [];
|
|
40
|
+
let unreadable = false;
|
|
41
|
+
lines.forEach((line, index) => {
|
|
42
|
+
if (!line.trim()) return;
|
|
43
|
+
try { entries.push(JSON.parse(line)); } catch { if (whole || index > 0) unreadable = true; }
|
|
44
|
+
});
|
|
45
|
+
return { entries, whole, unreadable };
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function readWindow(file, edge) {
|
|
25
49
|
const handle = openSync(file, 'r');
|
|
26
50
|
try {
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
return null;
|
|
51
|
+
const { size } = fstatSync(handle);
|
|
52
|
+
const buffer = Buffer.alloc(Math.min(WINDOW_BYTES, size));
|
|
53
|
+
const length = readSync(handle, buffer, 0, buffer.length, edge === 'end' ? size - buffer.length : 0);
|
|
54
|
+
return { lines: buffer.subarray(0, length).toString('utf8').split('\n'), whole: length === size };
|
|
33
55
|
} finally { closeSync(handle); }
|
|
34
56
|
}
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
// Agent { agentId, employeeNumber?, occupation?, assignments?, personalProjectId?,
|
|
7
7
|
// profile: { name, displayName?, responsibility?, capabilities?, allowedClients, status } }
|
|
8
8
|
// Session { client, sessionId, projectId, lastActive }
|
|
9
|
-
// Project { projectId, name, temporary, archived }
|
|
9
|
+
// Project { projectId, name, temporary, archived, repositories? } repositories: the normalised
|
|
10
|
+
// addresses of the project's own repositories (host/path), which paired devices compare as digests
|
|
10
11
|
// Team { lead: { agentId, name, employeeNumber?, responsibility? } | null, people: [same shape] }
|
|
11
12
|
//
|
|
12
13
|
// Methods (async unless marked sync)
|
|
@@ -36,11 +37,16 @@
|
|
|
36
37
|
// remoteOriginAuthority() public keys that verify those origins
|
|
37
38
|
// recordMemoryUsage(input) optional: { recorded, reason? }
|
|
38
39
|
// projectFolder(projectId) optional: the project's known folder for fresh sessions
|
|
40
|
+
// folderRepository(path) optional: the normalised origin address of the Git
|
|
41
|
+
// repository holding path, or null (LAN share folder check)
|
|
39
42
|
// matchWork(query) optional: leads the person's own names for work point to, in
|
|
40
43
|
// this space: [{ agentId, projectId, project, responsibility?,
|
|
41
44
|
// matchedTerms? }] (a project name, or an active standing assignment);
|
|
42
45
|
// when it throws, find_agents answers from the directory
|
|
43
46
|
// and names its code as workUnavailable
|
|
47
|
+
// standInScope({ agentId, name, occupation, projectId, text, client, sessionId })
|
|
48
|
+
// optional: the Agent's shareable index for a session that
|
|
49
|
+
// stands in for it (stand-in.js); never its private memory
|
|
44
50
|
// requestSignal() optional, sync: the current request's AbortSignal
|
|
45
51
|
// inRestrictedWorker() optional, sync: true inside a sealed worker run
|
|
46
52
|
export const ROUNDTABLE_HOST_METHODS = Object.freeze([
|
|
@@ -5,6 +5,10 @@ import { shortFingerprint } from './protocol.js';
|
|
|
5
5
|
export function peerUsage(command) {
|
|
6
6
|
return `${command} peer <action> (LAN roundtable Beta; the local service must be running)
|
|
7
7
|
status
|
|
8
|
+
nearby [on [--name NAME] | off | clear-attempts] list nearby FULI; on: be seen and listen for pairing
|
|
9
|
+
pair FINGERPRINT pair with a nearby FULI (first 4+ characters from the list)
|
|
10
|
+
confirm CODE the 6 digits the person reads on the OTHER computer
|
|
11
|
+
cancel cancel the pairing waiting here
|
|
8
12
|
host --address IP [--port PORT] [--name NAME] turn this computer into the coordinator
|
|
9
13
|
invite print a one-use pairing invitation (10 minutes)
|
|
10
14
|
join (--invitation TEXT | --invitation-file FILE) [--name NAME]
|
|
@@ -32,6 +36,27 @@ export async function runPeerControlCommand(args, { baseUrl, command, notRunning
|
|
|
32
36
|
};
|
|
33
37
|
switch (action) {
|
|
34
38
|
case 'status': return printStatus(await call('GET', '/api/peer'), write);
|
|
39
|
+
case 'nearby': {
|
|
40
|
+
const [toggle] = positional(rest);
|
|
41
|
+
if (toggle === 'on') return printNearby(await call('POST', '/api/peer/nearby', { on: true, name: option(rest, '--name') }), write, command);
|
|
42
|
+
if (toggle === 'off') return printNearby(await call('POST', '/api/peer/nearby', { on: false }), write, command);
|
|
43
|
+
if (toggle === 'clear-attempts') return printNearby(await call('POST', '/api/peer/nearby/attempts/clear', {}), write, command);
|
|
44
|
+
if (toggle) throw new Error(`Unknown nearby action: ${toggle}\n${peerUsage(command)}`);
|
|
45
|
+
return printNearby(await call('GET', '/api/peer'), write, command);
|
|
46
|
+
}
|
|
47
|
+
case 'pair': {
|
|
48
|
+
const [fingerprint] = positional(rest);
|
|
49
|
+
if (!fingerprint) throw new Error(`Pass the fingerprint of a computer from \`${command} peer nearby\`.`);
|
|
50
|
+
return printNearby(await call('POST', '/api/peer/nearby/pair', { fingerprint }), write, command);
|
|
51
|
+
}
|
|
52
|
+
case 'confirm': {
|
|
53
|
+
const code = positional(rest).join('');
|
|
54
|
+
if (!/^\d{6}$/.test(code)) throw new Error('Pass the 6-digit code shown on the other computer.');
|
|
55
|
+
const pairing = (await call('GET', '/api/peer')).nearby?.pairing;
|
|
56
|
+
if (!pairing?.requestId || pairing.state !== 'confirm') throw new Error('No pairing is waiting for confirmation here.');
|
|
57
|
+
return printNearby(await call('POST', '/api/peer/nearby/confirm', { requestId: pairing.requestId, code }), write, command);
|
|
58
|
+
}
|
|
59
|
+
case 'cancel': return printNearby(await call('POST', '/api/peer/nearby/cancel', {}), write, command);
|
|
35
60
|
case 'host': {
|
|
36
61
|
const address = option(rest, '--address');
|
|
37
62
|
if (!address) throw new Error(`Pass --address with one of this computer's LAN addresses (see \`${command} peer status\`).`);
|
|
@@ -79,12 +104,60 @@ function printStatus(status, write) {
|
|
|
79
104
|
write(`LAN roundtable (Beta): ${status.role === 'coordinator' ? 'coordinator' : 'paired device'}`);
|
|
80
105
|
write(`This device: ${status.device.shortFingerprint}`);
|
|
81
106
|
write(`Coordinator: ${status.coordinator.name} ${status.coordinator.url} (${status.coordinator.shortFingerprint})`);
|
|
107
|
+
const failure = status.coordinator.listenFailure;
|
|
108
|
+
if (failure) write(`Not listening: could not open ${failure.address}:${failure.port} (${failure.code}). Paired devices cannot reach this computer; turn the LAN roundtable off and on again.`);
|
|
82
109
|
for (const device of status.devices.filter((entry) => !entry.self)) {
|
|
83
|
-
write(` device ${device.name} ${device.shortFingerprint} ${device.status}${device.online ? ' online' : ''} ${device.nodeId}`);
|
|
110
|
+
write(` device ${device.name} ${device.shortFingerprint} ${device.status}${device.online ? ' online' : ''} · shared Agents ${device.sharedAgents} · ${device.nodeId}`);
|
|
84
111
|
}
|
|
85
112
|
for (const share of status.shares) {
|
|
86
|
-
write(` shared project lead: ${share.projectName} · ${share.clients.join(', ')} · ${share.state}${share.workingDirectory ? '' : ' · folder from recent sessions'}`);
|
|
113
|
+
write(` shared project lead: ${share.projectName} · ${share.clients.join(', ')} · ${share.state}${share.reason ? ` (${share.reason})` : ''}${share.workingDirectory ? '' : ' · folder from recent sessions'}`);
|
|
87
114
|
}
|
|
115
|
+
for (const project of status.shareable.filter((entry) => entry.sameProjectOn?.length)) {
|
|
116
|
+
write(` same project on ${project.sameProjectOn.map((device) => device.name).join(', ')}: ${project.projectName} (${project.projectId})${project.knownFolder ? '' : ' · no known folder here, pass --folder'}`);
|
|
117
|
+
}
|
|
118
|
+
if (status.lastPublish?.error) write(`The coordinator did not get this device's shared list: ${status.lastPublish.error}.`);
|
|
119
|
+
else if (status.lastPublish) write(`Shared list sent to the coordinator: ${status.lastPublish.agents} Agent(s) at ${status.lastPublish.at}`);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function printNearby(status, write, command) {
|
|
123
|
+
const { nearby } = status;
|
|
124
|
+
const ended = NEARBY_ENDED[nearby.ended?.kind];
|
|
125
|
+
if (ended) write(ended(nearby.ended));
|
|
126
|
+
if (!nearby.on) {
|
|
127
|
+
write(`Nearby pairing: off. \`${command} peer nearby on [--name NAME]\` lets computers on this network see that this one runs FULI (for 30 minutes).`);
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
write(`Nearby pairing: on until ${nearby.until}, seen as "${nearby.name}"${nearby.reason ? ` (${nearby.reason})` : ''}`);
|
|
131
|
+
const tried = nearby.attempts;
|
|
132
|
+
if (nearby.limited) write(`Too many pairing attempts (${tried.lastWindow} in 10 minutes, ${tried.lastDay} in 24 hours). Wait, or the person on this computer runs \`${command} peer nearby clear-attempts\`.`);
|
|
133
|
+
else if (tried?.lastDay) write(`Pairing attempts: ${tried.lastWindow} in the last 10 minutes, ${tried.lastDay} in 24 hours.`);
|
|
134
|
+
if (!nearby.devices.length) write(' No other FULI seen on this network yet.');
|
|
135
|
+
for (const device of nearby.devices) write(` ${device.name} · ${device.shortFingerprint}${device.paired ? ' · paired' : ''}`);
|
|
136
|
+
const { pairing } = nearby;
|
|
137
|
+
if (!pairing) return;
|
|
138
|
+
const device = `${pairing.device.name} (${pairing.device.shortFingerprint ?? '…'})`;
|
|
139
|
+
if (pairing.direction === 'incoming' && pairing.state === 'connecting') {
|
|
140
|
+
write(`${device} asks to pair with this computer. \`${command} peer cancel\` refuses it.`);
|
|
141
|
+
} else if (pairing.state === 'confirm' || pairing.state === 'finishing') {
|
|
142
|
+
write(`Pairing with ${device}: code ${pairing.code}. ${pairing.coordinator === 'this' ? 'This computer' : 'The other computer'} will coordinate.`);
|
|
143
|
+
write(pairing.confirmedHere
|
|
144
|
+
? `Confirmed here; waiting for the person on the other computer${pairing.confirmedThere ? ' (confirmed there too, finishing)' : ''}.`
|
|
145
|
+
: `Compare it with the code on the other computer; if they match, run \`${command} peer confirm <the code shown there>\` before ${pairing.expiresAt}.`);
|
|
146
|
+
} else write(`Pairing with ${device}: ${pairing.state}${pairing.reason ? ` (${pairing.reason})` : ''}`);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// Why nearby pairing turned itself off, or what it last did.
|
|
150
|
+
const NEARBY_ENDED = {
|
|
151
|
+
paired: (ended) => `Paired with ${ended.name}; nearby pairing turned itself off.`,
|
|
152
|
+
timeout: () => 'Nearby pairing turned itself off after 30 minutes.',
|
|
153
|
+
discovery_failed: (ended) => `Nearby discovery could not start: ${ended.reason}. Nearby pairing is off; the rest keeps running.`,
|
|
154
|
+
trust_withdrawn: (ended) => `${ended.name} never connected after pairing, so this computer no longer trusts it.`,
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
// The words before the first --option.
|
|
158
|
+
function positional(args) {
|
|
159
|
+
const first = args.findIndex((value) => value.startsWith('--'));
|
|
160
|
+
return first < 0 ? args : args.slice(0, first);
|
|
88
161
|
}
|
|
89
162
|
|
|
90
163
|
function option(args, name) {
|
|
@@ -19,7 +19,9 @@ export async function handlePeerControlRequest({ request, response, url, peer, r
|
|
|
19
19
|
sendJson(response, 200, result);
|
|
20
20
|
} catch (error) {
|
|
21
21
|
if (!(error instanceof PeerError)) throw error;
|
|
22
|
-
|
|
22
|
+
// A refusal is always an error status, whatever another device answered.
|
|
23
|
+
const status = Number.isInteger(error.status) && error.status >= 400 && error.status < 600 ? error.status : 502;
|
|
24
|
+
sendJson(response, status, { error: error.code, message: error.message });
|
|
23
25
|
}
|
|
24
26
|
return true;
|
|
25
27
|
}
|
|
@@ -43,5 +45,17 @@ async function route(request, pathname, peer, readJson) {
|
|
|
43
45
|
const revoke = /^\/api\/peer\/devices\/([0-9a-f]{64})\/revoke$/.exec(pathname);
|
|
44
46
|
if (revoke && method === 'POST') { await readJson(request); return peer.revokeDevice(revoke[1]); }
|
|
45
47
|
if (pathname === '/api/peer/disable' && method === 'POST') { await readJson(request); return peer.disable(); }
|
|
48
|
+
if (pathname === '/api/peer/nearby' && method === 'POST') {
|
|
49
|
+
const body = await readJson(request);
|
|
50
|
+
if (typeof body.on !== 'boolean') throw new PeerError('invalid_nearby', 'Pass on: true or on: false', 422);
|
|
51
|
+
return body.on ? peer.nearbyOn({ name: body.name }) : peer.nearbyOff();
|
|
52
|
+
}
|
|
53
|
+
if (pathname === '/api/peer/nearby/pair' && method === 'POST') return peer.pairNearby({ fingerprint: (await readJson(request)).fingerprint });
|
|
54
|
+
if (pathname === '/api/peer/nearby/confirm' && method === 'POST') {
|
|
55
|
+
const body = await readJson(request);
|
|
56
|
+
return peer.confirmPairing({ requestId: body.requestId, code: body.code });
|
|
57
|
+
}
|
|
58
|
+
if (pathname === '/api/peer/nearby/cancel' && method === 'POST') { await readJson(request); return peer.cancelPairing(); }
|
|
59
|
+
if (pathname === '/api/peer/nearby/attempts/clear' && method === 'POST') { await readJson(request); return peer.clearPairingAttempts(); }
|
|
46
60
|
return undefined;
|
|
47
61
|
}
|
|
@@ -8,8 +8,11 @@ const SWEEP_MS = 5_000;
|
|
|
8
8
|
|
|
9
9
|
// The only network listener of the LAN roundtable. Every route requires a
|
|
10
10
|
// TLS-verified, currently paired device, except one-use pairing, which accepts
|
|
11
|
-
// a not-yet-trusted client certificate and authorizes it by invitation code
|
|
12
|
-
|
|
11
|
+
// a not-yet-trusted client certificate and authorizes it by invitation code,
|
|
12
|
+
// and nearby pairing (nearby-pairing.js), which trusts nothing until the person
|
|
13
|
+
// on each computer confirmed the same code.
|
|
14
|
+
export async function startCoordinatorServer({ service, identity, host, port = 0, claimWaitMs = PEER_LIMITS.claimWaitMs,
|
|
15
|
+
nearby = null, onReached = () => {} }) {
|
|
13
16
|
const secureContext = () => ({ ...identity.tlsOptions, ca: service.trustedCertificates() });
|
|
14
17
|
const server = createServer({
|
|
15
18
|
...secureContext(), requestCert: true, rejectUnauthorized: false, minVersion: 'TLSv1.3',
|
|
@@ -19,6 +22,8 @@ export async function startCoordinatorServer({ service, identity, host, port = 0
|
|
|
19
22
|
{ error: error instanceof PeerError ? error.code : 'internal_error', message: error instanceof PeerError ? error.message : 'Request failed' }));
|
|
20
23
|
});
|
|
21
24
|
server.keepAliveTimeout = 5_000;
|
|
25
|
+
// The local address each paired device last reached this listener on.
|
|
26
|
+
const reached = new Map();
|
|
22
27
|
|
|
23
28
|
async function handle(request, response) {
|
|
24
29
|
const { pathname } = new URL(request.url, 'https://peer.invalid');
|
|
@@ -31,8 +36,20 @@ export async function startCoordinatorServer({ service, identity, host, port = 0
|
|
|
31
36
|
sendJson(response, service.pair({ code: body.code, name: body.name, authority: body.authority, certPem: derToPem(certificate.raw) }));
|
|
32
37
|
return;
|
|
33
38
|
}
|
|
39
|
+
// While nearby pairing is off, or on an adapter it does not answer on, these paths answer exactly as any unknown path.
|
|
40
|
+
if (pathname.startsWith('/peer/1/nearby/') && nearby?.listening(plainAddress(request.socket.localAddress))) {
|
|
41
|
+
const { value, after } = await nearby.handle(pathname, body, { certPem: derToPem(certificate.raw),
|
|
42
|
+
fingerprint: sha256Hex(certificate.raw), address: plainAddress(request.socket.remoteAddress),
|
|
43
|
+
localAddress: plainAddress(request.socket.localAddress) });
|
|
44
|
+
// A step that closes this listener (joining the other computer) runs once the answer is out.
|
|
45
|
+
if (after) response.once('finish', after);
|
|
46
|
+
sendJson(response, value);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
34
49
|
if (!request.socket.authorized) throw new PeerError('device_not_trusted', 'This device is not paired', 403);
|
|
35
50
|
const nodeId = service.authenticate(sha256Hex(certificate.raw)).id;
|
|
51
|
+
const reachedAt = plainAddress(request.socket.localAddress);
|
|
52
|
+
if (reached.get(nodeId) !== reachedAt) { reached.set(nodeId, reachedAt); onReached(nodeId, reachedAt); }
|
|
36
53
|
switch (pathname) {
|
|
37
54
|
case '/peer/1/directory/publish': return sendJson(response, service.publishDirectory(nodeId, body));
|
|
38
55
|
case '/peer/1/directory': return sendJson(response, service.directory(nodeId));
|
|
@@ -118,6 +135,10 @@ function readBody(request) {
|
|
|
118
135
|
});
|
|
119
136
|
}
|
|
120
137
|
|
|
138
|
+
function plainAddress(address) {
|
|
139
|
+
return typeof address === 'string' ? address.replace(/^::ffff:/, '') : null;
|
|
140
|
+
}
|
|
141
|
+
|
|
121
142
|
function send(response, status, value) {
|
|
122
143
|
if (response.headersSent) return;
|
|
123
144
|
const body = JSON.stringify(value);
|
|
@@ -5,7 +5,7 @@ import { isAuthorityKey } from './origin-proof.js';
|
|
|
5
5
|
import { createCoordinatorChat } from './chat-coordinator.js';
|
|
6
6
|
import {
|
|
7
7
|
canonicalJson, encodeInvitation, PEER_LIMITS, PeerError, peerCleanup, pemToDer, publicDirectoryEntry,
|
|
8
|
-
RESULT_OUTCOMES, sha256Hex, TERMINAL_STATUSES, validateAssertion,
|
|
8
|
+
graphemePrefix, RESULT_OUTCOMES, sha256Hex, TERMINAL_STATUSES, validateAssertion, withoutControls,
|
|
9
9
|
} from './protocol.js';
|
|
10
10
|
|
|
11
11
|
const ONLINE_MS = 90_000;
|
|
@@ -19,13 +19,23 @@ const ONLINE_MS = 90_000;
|
|
|
19
19
|
const LAST_SEEN_WRITE_MS = 15_000;
|
|
20
20
|
const PAIRING_FAILURE_WINDOW_MS = 10 * 60_000;
|
|
21
21
|
const PAIRING_FAILURE_LIMIT = 10;
|
|
22
|
+
const REPOSITORY_DIGEST = /^[0-9a-f]{32}$/;
|
|
23
|
+
// A paired device could publish guessed addresses to learn what others have:
|
|
24
|
+
// at most this many digests per device, and its set may change this often a day.
|
|
25
|
+
const REPOSITORY_LIMIT = 50;
|
|
26
|
+
const REPOSITORY_CHANGES_PER_DAY = 3;
|
|
27
|
+
const DAY_MS = 24 * 60 * 60_000;
|
|
22
28
|
|
|
23
29
|
// Routes messages between paired devices. It never executes anything: each
|
|
24
30
|
// receiving device re-checks its own shares and identity authority.
|
|
25
31
|
export function createCoordinatorService({ store, identity, authority, name, clock = Date.now,
|
|
26
|
-
randomCode = () => randomBytes(32).toString('base64url'), idFactory = randomUUID, onTrustChange = () => {}
|
|
32
|
+
randomCode = () => randomBytes(32).toString('base64url'), idFactory = randomUUID, onTrustChange = () => {},
|
|
33
|
+
repositoryChanges = memoryRecord() }) {
|
|
27
34
|
const iso = (offsetMs = 0) => new Date(clock() + offsetMs).toISOString();
|
|
28
35
|
const pairingFailures = [];
|
|
36
|
+
const repositories = new Map();
|
|
37
|
+
let repositoryKey = null;
|
|
38
|
+
rotateRepositoryKey();
|
|
29
39
|
if (!isAuthorityKey(authority)) throw new PeerError('authority_unavailable', 'The coordinator needs its local origin authority', 500);
|
|
30
40
|
store.upsertNode({ id: identity.fingerprint, name, certPem: identity.certPem, authority, at: iso() });
|
|
31
41
|
const chat = createCoordinatorChat({ store, identity, clock });
|
|
@@ -51,13 +61,28 @@ export function createCoordinatorService({ store, identity, authority, name, clo
|
|
|
51
61
|
pairingFailures.push(now);
|
|
52
62
|
throw new PeerError('invalid_pairing_code', 'This invitation is invalid, expired or already used', 403);
|
|
53
63
|
}
|
|
64
|
+
return trustDevice({ fingerprint, certPem, name: deviceName, authority: deviceAuthority }, () => {
|
|
65
|
+
if (!store.useInvitation(codeHash, fingerprint, iso())) throw new PeerError('invalid_pairing_code', 'This invitation was already used', 403);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Nearby pairing (nearby-pairing.js) writes the same trust record an
|
|
70
|
+
// invitation does, after the person on each computer confirmed the same code.
|
|
71
|
+
function trustNearbyDevice({ certPem, name: deviceName, authority: deviceAuthority }) {
|
|
72
|
+
const fingerprint = certificateFingerprint(certPem);
|
|
73
|
+
if (fingerprint === identity.fingerprint) throw new PeerError('invalid_pairing', 'A device cannot pair with itself', 400);
|
|
74
|
+
return trustDevice({ fingerprint, certPem, name: deviceName, authority: deviceAuthority });
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function trustDevice({ fingerprint, certPem, name: deviceName, authority: deviceAuthority }, claimInvitation = () => {}) {
|
|
54
78
|
if (!isAuthorityKey(deviceAuthority)) throw new PeerError('invalid_pairing', 'The device did not present its origin authority', 400);
|
|
55
79
|
const label = cleanName(deviceName) || `FULI device ${fingerprint.slice(0, 8)}`;
|
|
56
80
|
store.transaction(() => {
|
|
57
|
-
|
|
81
|
+
claimInvitation();
|
|
58
82
|
store.upsertNode({ id: fingerprint, name: label, certPem,
|
|
59
83
|
authority: { keyId: deviceAuthority.keyId, publicKey: deviceAuthority.publicKey }, at: iso() });
|
|
60
84
|
});
|
|
85
|
+
repositories.delete(fingerprint);
|
|
61
86
|
onTrustChange();
|
|
62
87
|
return { nodeId: fingerprint, coordinatorNodeId: identity.fingerprint, coordinatorName: name };
|
|
63
88
|
}
|
|
@@ -70,22 +95,57 @@ export function createCoordinatorService({ store, identity, authority, name, clo
|
|
|
70
95
|
return node;
|
|
71
96
|
}
|
|
72
97
|
|
|
73
|
-
function publishDirectory(nodeId, { agents }) {
|
|
98
|
+
function publishDirectory(nodeId, { agents, repositories: projectRepositories }) {
|
|
74
99
|
if (!Array.isArray(agents) || agents.length > PEER_LIMITS.directoryAgents) throw new PeerError('invalid_directory', 'Invalid shared Agent list');
|
|
75
|
-
const entries = agents.map(
|
|
100
|
+
const entries = agents.map((agent, index) => {
|
|
101
|
+
try { return publicDirectoryEntry(agent); }
|
|
102
|
+
catch (error) { throw new PeerError(error.code, `${error.message} (entry ${index + 1})`, error.status); }
|
|
103
|
+
});
|
|
76
104
|
store.setDirectory(nodeId, entries);
|
|
77
|
-
|
|
105
|
+
// Each device's own repository addresses, keyed with a secret only the
|
|
106
|
+
// paired group gets (repositoryKey, from this answer). Like online state
|
|
107
|
+
// they are kept only in memory and published again within a minute; a
|
|
108
|
+
// digest made with an older key is dropped.
|
|
109
|
+
if (projectRepositories?.keyId === repositoryKey.id) acceptRepositories(nodeId, repositoryDigests(projectRepositories.digests));
|
|
110
|
+
return { published: entries.length, repositoryKey };
|
|
78
111
|
}
|
|
79
112
|
|
|
113
|
+
// Another device's digests never leave the coordinator: each device learns
|
|
114
|
+
// only which of its own digests another paired device also has.
|
|
80
115
|
function directory(nodeId) {
|
|
81
116
|
const now = clock();
|
|
117
|
+
const mine = new Set(repositories.get(nodeId) ?? []);
|
|
82
118
|
return { devices: store.nodes().filter((node) => node.status === 'active' && node.id !== nodeId).map((node) => ({
|
|
83
119
|
nodeId: node.id, name: node.name,
|
|
84
120
|
online: seenWithin(node, now, ONLINE_MS),
|
|
85
121
|
agents: JSON.parse(node.directory_json),
|
|
122
|
+
sameRepositories: (repositories.get(node.id) ?? []).filter((digest) => mine.has(digest)),
|
|
86
123
|
})) };
|
|
87
124
|
}
|
|
88
125
|
|
|
126
|
+
// The same set again is free; a new set counts, and past the daily limit the earlier set stays.
|
|
127
|
+
// The count is kept in the host's store (repositoryChanges), so a restart
|
|
128
|
+
// does not reset it. The first set a device sends under a new key (after a
|
|
129
|
+
// restart or a revoke) is free, so a revoke never locks out the others.
|
|
130
|
+
function acceptRepositories(nodeId, digests) {
|
|
131
|
+
const current = repositories.get(nodeId);
|
|
132
|
+
if (current && current.length === digests.length && digests.every((digest) => current.includes(digest))) return;
|
|
133
|
+
const now = clock();
|
|
134
|
+
const all = repositoryChanges.read() ?? {};
|
|
135
|
+
const record = all[nodeId] ?? {};
|
|
136
|
+
const changes = (Array.isArray(record.at) ? record.at : []).filter((at) => Number.isFinite(at) && at > now - DAY_MS);
|
|
137
|
+
const firstUnderKey = record.keyId !== repositoryKey.id;
|
|
138
|
+
if (!firstUnderKey && changes.length >= REPOSITORY_CHANGES_PER_DAY) return;
|
|
139
|
+
repositoryChanges.write({ ...all, [nodeId]: { keyId: repositoryKey.id, at: firstUnderKey ? changes : [...changes, now] } });
|
|
140
|
+
repositories.set(nodeId, digests);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// A revoked device keeps the old key, so the group gets a new one.
|
|
144
|
+
function rotateRepositoryKey() {
|
|
145
|
+
repositoryKey = { id: randomUUID(), key: randomBytes(32).toString('base64url') };
|
|
146
|
+
repositories.clear();
|
|
147
|
+
}
|
|
148
|
+
|
|
89
149
|
function submit(nodeId, { assertion, signature }) {
|
|
90
150
|
validateAssertion(assertion, { now: clock() });
|
|
91
151
|
if (assertion.from.node !== nodeId) throw new PeerError('sender_mismatch', 'The message sender is not this device', 403);
|
|
@@ -229,6 +289,7 @@ export function createCoordinatorService({ store, identity, authority, name, clo
|
|
|
229
289
|
else store.updateMessage(message.id, { cancel_requested: 1 }, iso(), 'cancel_requested', 'device_revoked');
|
|
230
290
|
}
|
|
231
291
|
});
|
|
292
|
+
rotateRepositoryKey();
|
|
232
293
|
onTrustChange();
|
|
233
294
|
return { revoked: true };
|
|
234
295
|
}
|
|
@@ -258,12 +319,12 @@ export function createCoordinatorService({ store, identity, authority, name, clo
|
|
|
258
319
|
function devices() {
|
|
259
320
|
const now = clock();
|
|
260
321
|
return store.nodes().map((node) => ({ nodeId: node.id, name: node.name, status: node.status,
|
|
261
|
-
self: node.id === identity.fingerprint, pairedAt: node.paired_at, revokedAt: node.revoked_at,
|
|
322
|
+
self: node.id === identity.fingerprint, pairedAt: node.paired_at, revokedAt: node.revoked_at, lastSeenAt: node.last_seen_at ?? null,
|
|
262
323
|
online: node.id === identity.fingerprint || seenWithin(node, now, ONLINE_MS),
|
|
263
324
|
sharedAgents: JSON.parse(node.directory_json).length }));
|
|
264
325
|
}
|
|
265
326
|
|
|
266
|
-
return { chat: chat.execute, chatOwner: chat.ownerRead, chatUpdates: chat.ownerUpdates, createInvitation, pair, authenticate, publishDirectory, directory, submit, claim, renew, result,
|
|
327
|
+
return { chat: chat.execute, chatOwner: chat.ownerRead, chatUpdates: chat.ownerUpdates, createInvitation, pair, trustNearbyDevice, authenticate, publishDirectory, directory, submit, claim, renew, result,
|
|
267
328
|
status, cancel, revoke, sweep, devices, trustedCertificates: () => store.activeCertificates(),
|
|
268
329
|
openInvitations: () => store.openInvitations(iso()).length };
|
|
269
330
|
}
|
|
@@ -287,6 +348,17 @@ function statusView(message) {
|
|
|
287
348
|
...(message.cleanup_status ? { cleanup: { status: message.cleanup_status, code: message.cleanup_code ?? null } } : {}) };
|
|
288
349
|
}
|
|
289
350
|
|
|
351
|
+
// Only 32-hex digests pass (peer-runtime.js makes them); anything else is dropped, never echoed.
|
|
352
|
+
function repositoryDigests(value) {
|
|
353
|
+
return Array.isArray(value) ? [...new Set(value.filter((digest) => typeof digest === 'string' && REPOSITORY_DIGEST.test(digest)))]
|
|
354
|
+
.slice(0, REPOSITORY_LIMIT) : [];
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
function memoryRecord() {
|
|
358
|
+
let value = {};
|
|
359
|
+
return { read: () => value, write: (next) => { value = next; } };
|
|
360
|
+
}
|
|
361
|
+
|
|
290
362
|
export function cleanName(value) {
|
|
291
|
-
return typeof value === 'string' ? value.
|
|
363
|
+
return typeof value === 'string' ? graphemePrefix(withoutControls(value).trim(), 60).trim() : '';
|
|
292
364
|
}
|
|
@@ -62,7 +62,8 @@ export function createCoordinatorStore(path = ':memory:') {
|
|
|
62
62
|
upsertNode({ id, name, certPem, authority = null, at }) {
|
|
63
63
|
database.prepare(`INSERT INTO nodes(id, name, cert_pem, status, paired_at, authority_json) VALUES(?,?,?,'active',?,?)
|
|
64
64
|
ON CONFLICT(id) DO UPDATE SET name = excluded.name, cert_pem = excluded.cert_pem, status = 'active',
|
|
65
|
-
revoked_at = NULL, directory_json = '[]', paired_at = excluded.paired_at, authority_json = excluded.authority_json
|
|
65
|
+
revoked_at = NULL, directory_json = '[]', paired_at = excluded.paired_at, authority_json = excluded.authority_json,
|
|
66
|
+
last_seen_at = NULL`)
|
|
66
67
|
.run(id, name, certPem, at, authority ? JSON.stringify(authority) : null);
|
|
67
68
|
event(at, { nodeId: id, kind: 'paired' });
|
|
68
69
|
},
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Adapters for virtual machines, containers and VPNs (Hyper-V and WSL,
|
|
2
|
+
// VirtualBox, VMware, Docker, Tailscale, WireGuard, ZeroTier, macOS utun and
|
|
3
|
+
// AWDL): another computer on the LAN usually cannot reach their addresses.
|
|
4
|
+
const VIRTUAL_ADAPTER = /^(vethernet|virtualbox|vboxnet|vmware|vmnet|docker|br-|veth|virbr|utun|tun|tap|wg|zt|zerotier|tailscale|awdl|llw|bridge|hyper-v|wsl|nordlynx)/i;
|
|
5
|
+
|
|
6
|
+
// This computer's IPv4 LAN addresses, those of physical adapters first.
|
|
7
|
+
export function lanAddresses(interfaces) {
|
|
8
|
+
const all = classified(interfaces);
|
|
9
|
+
return [...all.filter((entry) => !entry.virtual), ...all.filter((entry) => entry.virtual)].map((entry) => entry.address);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// The addresses worth announcing: the physical ones, or all when there is none.
|
|
13
|
+
export function announcedAddresses(interfaces) {
|
|
14
|
+
const all = classified(interfaces);
|
|
15
|
+
const physical = all.filter((entry) => !entry.virtual);
|
|
16
|
+
return (physical.length ? physical : all).map((entry) => entry.address);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Addresses of virtual and VPN adapters, where nearby pairing does not answer.
|
|
20
|
+
export function virtualAddresses(interfaces) {
|
|
21
|
+
return classified(interfaces).filter((entry) => entry.virtual).map((entry) => entry.address);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function classified(interfaces) {
|
|
25
|
+
return Object.entries(interfaces()).flatMap(([name, list]) => (list ?? [])
|
|
26
|
+
.filter((entry) => entry && !entry.internal && (entry.family === 'IPv4' || entry.family === 4))
|
|
27
|
+
.map((entry) => ({ address: entry.address, virtual: VIRTUAL_ADAPTER.test(name) })));
|
|
28
|
+
}
|