fuli-context 0.27.1 → 0.27.2
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-BKyNoI0v.js → AboutPage-Bgcf03U0.js} +1 -1
- package/dist/web/assets/{AboutSectionHeading-DwvCvoqO.js → AboutSectionHeading-BaQBY_Xs.js} +1 -1
- package/dist/web/assets/{AgentAppsPage-Cp2-sZXi.js → AgentAppsPage-DNuujLT2.js} +1 -1
- package/dist/web/assets/{AgentAvatar-CDhU4m0T.js → AgentAvatar-DGXedNUs.js} +1 -1
- package/dist/web/assets/{AgentHand-BfRjs1He.js → AgentHand-BwE2VGth.js} +1 -1
- package/dist/web/assets/AgentManagement-2r8DUS1N.js +7 -0
- package/dist/web/assets/AgentManagement-hRkMpjvY.css +1 -0
- package/dist/web/assets/{AgentMentionCopy-_pr-D8vX.js → AgentMentionCopy-y3JD1Cef.js} +1 -1
- package/dist/web/assets/{AgentName-CUuWNrzE.js → AgentName-XrBcHq4R.js} +1 -1
- package/dist/web/assets/AgentProfilePage-DE7z980p.js +5 -0
- package/dist/web/assets/{AgentServicesPage-CAL-JT1J.js → AgentServicesPage-CWfGSxcb.js} +1 -1
- package/dist/web/assets/{AppViewerPage-Ct46NPXP.js → AppViewerPage-BaKMk9pp.js} +1 -1
- package/dist/web/assets/{BackToTop-DOlt-xjQ.js → BackToTop-DITd9y7X.js} +1 -1
- package/dist/web/assets/{BoardCardFieldsMenu-RFcx_CAs.js → BoardCardFieldsMenu-CWtHiVR-.js} +1 -1
- package/dist/web/assets/{BoardMoveMenu-GJ8lpuZY.js → BoardMoveMenu-CEDdltY7.js} +1 -1
- package/dist/web/assets/{Breadcrumb-DTo6Zvtb.js → Breadcrumb-C98voz9V.js} +1 -1
- package/dist/web/assets/{CaptureChangePage-DRgWyCRo.js → CaptureChangePage-CE8tJfiQ.js} +1 -1
- package/dist/web/assets/{CopyFixPrompt-1UXH_ItZ.js → CopyFixPrompt-C2hC04lV.js} +1 -1
- package/dist/web/assets/{DataFormatPage-CgFXfOW_.js → DataFormatPage-BjZkck9o.js} +1 -1
- package/dist/web/assets/{DebugTurnPage-B8YhpTPm.js → DebugTurnPage-B82geu1y.js} +1 -1
- package/dist/web/assets/{DebugTurnsPage-BGKSH3n0.js → DebugTurnsPage-BlDDz1Fk.js} +1 -1
- package/dist/web/assets/DialogTitle-fpANsAcy.js +1 -0
- package/dist/web/assets/{EmployeeRedirectPage-8qPpnbyP.js → EmployeeRedirectPage-CSSuvAqx.js} +1 -1
- package/dist/web/assets/{EmployeeScopeDialog-BZymZidB.js → EmployeeScopeDialog-BoEMQOEj.js} +1 -1
- package/dist/web/assets/EmployeeWorkbench-DvEojWb7.js +4 -0
- package/dist/web/assets/{EmployeeWorkbench-Bp9pUkfS.css → EmployeeWorkbench-rhY970vW.css} +1 -1
- package/dist/web/assets/FieldRoot-D3lnRut5.js +1 -0
- package/dist/web/assets/{FlaGrowth-CaFdmezv.js → FlaGrowth-OdlmgEVi.js} +1 -1
- package/dist/web/assets/{FlaOccupationKit-CFoBUWGF.js → FlaOccupationKit-CnouVWnU.js} +1 -1
- package/dist/web/assets/{FlaTaskSheets-BShmW9R5.js → FlaTaskSheets-rSIdCtzz.js} +1 -1
- package/dist/web/assets/FlasPage-BZ791caF.js +1 -0
- package/dist/web/assets/{FlasPage-H99IZ9M6.css → FlasPage-D3CcJcvN.css} +1 -1
- package/dist/web/assets/{GrowthLoading-CVBn4r4q.js → GrowthLoading-BYOSvxZY.js} +1 -1
- package/dist/web/assets/{HowtoPage-CrvMmT6K.css → HowtoPage-DNTwYQCD.css} +1 -1
- package/dist/web/assets/HowtoPage-lYwzi4Vm.js +1 -0
- package/dist/web/assets/{InboxPage-D9VIDrsL.js → InboxPage-C3cSvJjB.js} +1 -1
- package/dist/web/assets/{KnowledgeDeleteButton-C01O4FSO.js → KnowledgeDeleteButton-yc8Gi-BH.js} +1 -1
- package/dist/web/assets/{KnowledgeHardDeleteSection-jqad3dJN.js → KnowledgeHardDeleteSection-D9Ktc-uC.js} +1 -1
- package/dist/web/assets/KnowledgeItemEditPage-Csy4oOxD.js +1 -0
- package/dist/web/assets/{KnowledgeItemSummaryCard-XbkYp7Dy.js → KnowledgeItemSummaryCard-BH5UYmde.js} +1 -1
- package/dist/web/assets/KnowledgeOrganizerPage-BTeQX0gH.js +1 -0
- package/dist/web/assets/KnowledgePage-BuukvNxz.js +1 -0
- package/dist/web/assets/KnowledgePeek-D0pcU7U5.js +1 -0
- package/dist/web/assets/KnowledgeTurnReceiptPage-Bd_LIdCc.js +1 -0
- package/dist/web/assets/{KnowledgeWorkspace-CmzU6Vuh.js → KnowledgeWorkspace-Dr-zYpDQ.js} +3 -3
- package/dist/web/assets/{MeAvatar-D_LFqHrR.js → MeAvatar-CmhuRFOf.js} +1 -1
- package/dist/web/assets/{MeLink-CeIxjFrm.js → MeLink-BesUihiS.js} +1 -1
- package/dist/web/assets/MenuSeparator-BGo0DgyF.js +1 -0
- package/dist/web/assets/ModelSettingsPage-CBPwuIBM.js +1 -0
- package/dist/web/assets/{NewSessionPanel-BKrOFEMO.js → NewSessionPanel-Bvp9ElzU.js} +1 -1
- package/dist/web/assets/{NotFoundPage-CdOCRj3P.js → NotFoundPage-BrolI2fz.js} +1 -1
- package/dist/web/assets/{workbench-card-Dt0820yW.css → NoticeRow-DD-J76Yo.css} +1 -1
- package/dist/web/assets/NoticeRow-Q9QT5NqB.js +1 -0
- package/dist/web/assets/{OccupationsPage-BrBus-nh.js → OccupationsPage-CZCeeihl.js} +1 -1
- package/dist/web/assets/{PageOutline-VtLLW4kh.js → PageOutline-DULpqEwg.js} +1 -1
- package/dist/web/assets/PageStack-BMzrkyV4.css +1 -0
- package/dist/web/assets/PageStack-DTzWJuae.js +1 -0
- package/dist/web/assets/PersonalProfilePage-DbXWycCQ.js +1 -0
- package/dist/web/assets/PersonalProjectsPage-pdAJpnZd.js +1 -0
- package/dist/web/assets/{PinIcon-DD3Un-hh.js → PinIcon-YYoaYKTx.js} +1 -1
- package/dist/web/assets/PopperContent-CnNwFMIA.js +1 -0
- package/dist/web/assets/Presence-CuIoA2sH.js +3 -0
- package/dist/web/assets/{ProfileAuthorChip-Dm5GjcAt.js → ProfileAuthorChip-BEfiuJbm.js} +1 -1
- package/dist/web/assets/{ProjectAgentsPage-B5r0DKWL.js → ProjectAgentsPage-BPf2RLsw.js} +1 -1
- package/dist/web/assets/{ProjectJudgmentPolicy-DVFV5Cai.js → ProjectJudgmentPolicy-CCzHtmOb.js} +1 -1
- package/dist/web/assets/{RoundtablesPage-DlAXApKi.js → RoundtablesPage-BDU4W-bg.js} +1 -1
- package/dist/web/assets/RovingFocusGroup-DS4v3bEq.js +1 -0
- package/dist/web/assets/RovingFocusItem-bLEnnw2Y.js +1 -0
- package/dist/web/assets/SessionMigrationPage-DrK4df0L.js +1 -0
- package/dist/web/assets/{SessionRecordsPage-Dy203sP2.js → SessionRecordsPage-CFAgM65g.js} +1 -1
- package/dist/web/assets/SettingsPage-CsJxhhsu.js +1 -0
- package/dist/web/assets/SettingsPage-VX_e4ty2.css +1 -0
- package/dist/web/assets/{SharedJefaReportPage-CASkC5pc.js → SharedJefaReportPage-DbTPYwa_.js} +1 -1
- package/dist/web/assets/StatementCalendarPage-CIo5R14R.js +1 -0
- package/dist/web/assets/StatementCalendarPage-t8pJI4G6.css +1 -0
- package/dist/web/assets/StatementRows-CubaC9KG.js +1 -0
- package/dist/web/assets/StatementRows-TQ2i_uXU.css +1 -0
- package/dist/web/assets/{TagVocabularyPage-Bd57YcUL.js → TagVocabularyPage-BVlLmKv2.js} +1 -1
- package/dist/web/assets/TaskBlockerNotice-YSvmy6B4.js +1 -0
- package/dist/web/assets/{TaskReason-BxYwBDoB.js → TaskReason-CrLPeiOg.js} +1 -1
- package/dist/web/assets/{TeamCard-cWYC5z07.js → TeamCard-SBMJMd7P.js} +1 -1
- package/dist/web/assets/TeamCardsWidget-CGLW04TH.js +1 -0
- package/dist/web/assets/TeamIsland-jJKTwCJD.js +9 -0
- package/dist/web/assets/Teleport-CRjWb-eC.js +1 -0
- package/dist/web/assets/{TextField-XakqTnVl.js → TextField-Cd8UOHKv.js} +1 -1
- package/dist/web/assets/TodayPage-BvbZCEFJ.js +1 -0
- package/dist/web/assets/TodayPage-EJ8SWFE0.css +1 -0
- package/dist/web/assets/{TonborgDelegationSwitch-B59PUZBz.js → TonborgDelegationSwitch-BOidSjkk.js} +1 -1
- package/dist/web/assets/{UiChip-BFdfq8Jm.js → UiChip-B2z0UERX.js} +1 -1
- package/dist/web/assets/{UiDisclosure-G3MiGB7F.js → UiDisclosure-Bw4Wu0Dm.js} +1 -1
- package/dist/web/assets/{UiIcon--qI1_q89.js → UiIcon-BuaIQ57Z.js} +1 -1
- package/dist/web/assets/{UiSegmented-CRJ06vHP.js → UiSegmented-DlI1vR3k.js} +1 -1
- package/dist/web/assets/{UiWeight-BRA-6EY_.js → UiWeight-DpBexUUy.js} +1 -1
- package/dist/web/assets/{VirtualDirectoryList-Dm07NMxq.js → VirtualDirectoryList-RV2XtTPO.js} +1 -1
- package/dist/web/assets/{VisuallyHidden-DIg8c_z2.js → VisuallyHidden-DciDIEua.js} +1 -1
- package/dist/web/assets/{VisuallyHiddenInput-rcWqHewS.js → VisuallyHiddenInput-mfi7gVBu.js} +1 -1
- package/dist/web/assets/WidgetSlot-xFZKjZ5z.js +2 -0
- package/dist/web/assets/WorkbenchListPage-BKT03RRO.css +1 -0
- package/dist/web/assets/WorkbenchListPage-suawrzji.js +1 -0
- package/dist/web/assets/_plugin-vue_export-helper-CYsAcErn.js +9 -0
- package/dist/web/assets/{agent-apps-Svxh5tiY.js → agent-apps-B_0syRPr.js} +1 -1
- package/dist/web/assets/agent-occupation-C-9THmIG.js +1 -0
- package/dist/web/assets/{agent-pins-CvATgFji.js → agent-pins-B9wMvxGh.js} +1 -1
- package/dist/web/assets/{agent-roster-records-CsYjmaNn.js → agent-roster-records-CY0aSUNq.js} +1 -1
- package/dist/web/assets/{agent-work-summary-BOeJ4JXc.js → agent-work-summary-Cs8jPFL0.js} +1 -1
- package/dist/web/assets/{attach-closest-edge-DFoBNGBU.js → attach-closest-edge-BRDsvYPn.js} +1 -1
- package/dist/web/assets/{attention-store-CHxXJTuF.js → attention-store-HMiJ1K6M.js} +1 -1
- package/dist/web/assets/{badge-DqHf-RNw.js → badge-jafr8Jg1.js} +1 -1
- package/dist/web/assets/{button-CdYobu4m.js → button-d6TCVE0s.js} +1 -1
- package/dist/web/assets/{card-8xZot-73.js → card-ebnaJXQA.js} +1 -1
- package/dist/web/assets/{catalog-h6KbvKdB.js → catalog-CvdvPGYk.js} +1 -1
- package/dist/web/assets/checkbox-CdIozFRY.js +1 -0
- package/dist/web/assets/{client-DRnUmjCk.js → client--hZxcKYo.js} +1 -1
- package/dist/web/assets/{client-links-store-DQY0A5PC.js → client-links-store-XyR0EzJi.js} +1 -1
- package/dist/web/assets/combobox-DzLSYxyO.js +1 -0
- package/dist/web/assets/{console-BF8ZU9dG.js → console-D597wx3f.js} +1 -1
- package/dist/web/assets/conversation-launcher-settings-CFFH9C2y.js +1 -0
- package/dist/web/assets/copy-mention-CWsw8po1.js +1 -0
- package/dist/web/assets/dialog-SLa8cPbS.js +1 -0
- package/dist/web/assets/{dist--2DWcoU9.js → dist-B78L06NL.js} +1 -1
- package/dist/web/assets/{dist-INkzWhVF.js → dist-Dy5JoHWF.js} +1 -1
- package/dist/web/assets/dropdown-menu-C-PcZxRY.js +1 -0
- package/dist/web/assets/{field-7G2bSNl5.js → field-DeguT8it.js} +1 -1
- package/dist/web/assets/{format-bytes-Jj3-0UhP.js → format-bytes-Br4RwHnA.js} +1 -1
- package/dist/web/assets/hover-card-B-H7mMvg.js +1 -0
- package/dist/web/assets/identity-V8oA_IuB.js +1 -0
- package/dist/web/assets/{index-HRZACEmh.css → index-CHDkJLQR.css} +1 -1
- package/dist/web/assets/index-DdAVEwQV.js +24 -0
- package/dist/web/assets/{input-z5o2wIZC.js → input-CRCpCN_c.js} +1 -1
- package/dist/web/assets/label-DwMBzI2m.js +1 -0
- package/dist/web/assets/label-table-DiaZlHIp.js +1 -0
- package/dist/web/assets/{model-BKg9fdsn.js → model-B4AuKvPj.js} +1 -1
- package/dist/web/assets/model-BwOv-HBS.js +1 -0
- package/dist/web/assets/{model-BMd98Yux.js → model-C-60EMcI.js} +1 -1
- package/dist/web/assets/{model-Ejc2vysd.js → model-CB4ObIOH.js} +1 -1
- package/dist/web/assets/{model-Bhyqm3my.js → model-CUAxIOXR.js} +1 -1
- package/dist/web/assets/{model-CCaA3vRN.js → model-CjQPAeCy.js} +1 -1
- package/dist/web/assets/{model-CGfhtR6w.js → model-CwFZ_IgV.js} +1 -1
- package/dist/web/assets/{model-BD6AfoOR.js → model-D-vak-m0.js} +1 -1
- package/dist/web/assets/{motion-pePEUhOt.js → motion-Cr9JChF9.js} +1 -1
- package/dist/web/assets/motion-D5Fs3-ut.js +1 -0
- package/dist/web/assets/{motion-preference-DTwjqiJ8.js → motion-preference-DgdzdVh8.js} +1 -1
- package/dist/web/assets/{occupation-catalog-ByjQk0EY.js → occupation-catalog-DHsjkd_q.js} +1 -1
- package/dist/web/assets/{occupation-kits-Dg6UZqc1.js → occupation-kits-BVLLRN4V.js} +1 -1
- package/dist/web/assets/{option-BIjYeAh2.js → option-DhAwzags.js} +1 -1
- package/dist/web/assets/{orchestration-filters-3AfjDoHQ.js → orchestration-filters-lhR2CHlQ.js} +1 -1
- package/dist/web/assets/overview-data-QDnygL-x.js +1 -0
- package/dist/web/assets/{page-refresh-BTqRX45n.js → page-refresh-BVRlo-dI.js} +1 -1
- package/dist/web/assets/{page-title-B5RyNTPD.js → page-title-ReSXziuS.js} +1 -1
- package/dist/web/assets/{person-profile-BzPwdtix.js → person-profile-BgUfg57K.js} +1 -1
- package/dist/web/assets/popover-UYksnAeH.js +1 -0
- package/dist/web/assets/popup-host-DMoMkD3v.js +1 -0
- package/dist/web/assets/preference-conflicts-a-H51vUw.js +1 -0
- package/dist/web/assets/{profile-model-TAsyybji.js → profile-model-CM98TJsj.js} +1 -1
- package/dist/web/assets/{project-board-layout-BwyHItDc.js → project-board-layout-RH6UXkCA.js} +1 -1
- package/dist/web/assets/{project-capture-I8-7JwsK.js → project-capture-DcQ8cXIt.js} +1 -1
- package/dist/web/assets/{project-origin-B_Ku288r.js → project-origin-BNzeAazi.js} +1 -1
- package/dist/web/assets/{quick-edit-api-Cm-W3ZVP.js → quick-edit-api-COKVNuPk.js} +1 -1
- package/dist/web/assets/radio-group-DfegNkLG.js +1 -0
- package/dist/web/assets/{review-api-Gwr5nP1B.js → review-api-CAKGInLD.js} +1 -1
- package/dist/web/assets/{review-list-CNeXKjBw.js → review-list-CbpXvBp-.js} +1 -1
- package/dist/web/assets/{review-store-BaMwO51r.js → review-store-BzrmqVoj.js} +1 -1
- package/dist/web/assets/{role-names-C-F0XIE1.js → role-names-Ba0c6AbS.js} +1 -1
- package/dist/web/assets/{roundtable-live-CM4Cqw2v.js → roundtable-live-CoKmaXKd.js} +1 -1
- package/dist/web/assets/{runtime-dom.esm-bundler-tA5o2TEo.js → runtime-dom.esm-bundler-CaYBCU9Y.js} +1 -1
- package/dist/web/assets/select-Bq2TQ0Gw.js +1 -0
- package/dist/web/assets/{session-launch-offers-CEdCRTz9.js → session-launch-offers-C-oBkMKe.js} +1 -1
- package/dist/web/assets/{settings-autosave-D3wBf_zN.js → settings-autosave-C3bTildI.js} +1 -1
- package/dist/web/assets/settings-tabs-DFZcxOaQ.js +1 -0
- package/dist/web/assets/{shared-report-KyuP8oQk.js → shared-report-Ci1jBiYV.js} +3 -3
- package/dist/web/assets/{source-adapters-BR-AAGhD.js → source-adapters-CunVF9JG.js} +1 -1
- package/dist/web/assets/switch-DaUSEDq0.js +1 -0
- package/dist/web/assets/tabs-B_7xQRfl.js +1 -0
- package/dist/web/assets/{task-card-fields-BWlLtcKE.js → task-card-fields-Ce11pWnv.js} +1 -1
- package/dist/web/assets/{task-evidence-DydhKn9x.js → task-evidence-D0XkNnb8.js} +1 -1
- package/dist/web/assets/{task-labels-BrNKooHK.js → task-labels-BulIuDQB.js} +1 -1
- package/dist/web/assets/{task-reason-CvmaNQWE.js → task-reason-gHlp8KHO.js} +1 -1
- package/dist/web/assets/{team-sheets-DkAuebg6.js → team-sheets-BzV1WjjK.js} +1 -1
- package/dist/web/assets/{textarea-BQnuJ0v3.js → textarea-D6czUY3a.js} +1 -1
- package/dist/web/assets/{ui-CJiEsCpv.js → ui-BCHzwL4X.js} +1 -1
- package/dist/web/assets/{useAgentRecords-PysQYF4V.js → useAgentRecords-DijrJ79w.js} +1 -1
- package/dist/web/assets/{useAgentWorkSummary-DaNyOo2z.js → useAgentWorkSummary-CUv88AVP.js} +1 -1
- package/dist/web/assets/{useApi-CROJJdhE-CgPyy2pi.js → useApi-CROJJdhE-CxqsMZ6P.js} +1 -1
- package/dist/web/assets/{useClipboardCopy-Cf3GZrHC.js → useClipboardCopy-uGyNKuWB.js} +1 -1
- package/dist/web/assets/useDirection-Bi78LycK.js +1 -0
- package/dist/web/assets/{useFocusReturn-uY18_eDg.js → useFocusReturn-7BKdKvqF.js} +1 -1
- package/dist/web/assets/{useForwardPropsEmits-mGaDeNMp.js → useForwardPropsEmits-BMeknK03.js} +1 -1
- package/dist/web/assets/useForwardScopeId-DHGSyWlZ.js +1 -0
- package/dist/web/assets/{useKnowledgeConfirm-PcqqgwNU.js → useKnowledgeConfirm-mFWI8EbK.js} +1 -1
- package/dist/web/assets/{useKnowledgeItemPeek-yjyrSFtf.js → useKnowledgeItemPeek-DtazLM2s.js} +1 -1
- package/dist/web/assets/{useMinimumLoadingDisplay-Bu6xyHby.js → useMinimumLoadingDisplay-D5UC2KRz.js} +1 -1
- package/dist/web/assets/{usePageTools-DYi9x7HJ.js → usePageTools-BXkR_gpB.js} +1 -1
- package/dist/web/assets/usePrimitiveElement-BxOn-Fn_.js +1 -0
- package/dist/web/assets/{useProjectAgentRoster-KPwWl2jE.js → useProjectAgentRoster-blZ5REnH.js} +1 -1
- package/dist/web/assets/{useRoutePeek-BiHDBRKc.js → useRoutePeek-D_j5KVFv.js} +1 -1
- package/dist/web/assets/useTeamWork-e57CKhLW.js +1 -0
- package/dist/web/assets/{useTypeahead-D_Z5P9Xm.js → useTypeahead-6a1q-4Oq.js} +1 -1
- package/dist/web/assets/{utils-CAAvfQSj.js → utils-BQtZ8ZUw.js} +1 -1
- package/dist/web/assets/{utils-D6RjkXrh.js → utils-DBsOpQt4.js} +1 -1
- package/dist/web/assets/{verification-DoN2EFaZ.js → verification-BlF0avgs.js} +1 -1
- package/dist/web/assets/{version-DbJq2Cfv.js → version-oG6VyAd6.js} +1 -1
- package/dist/web/assets/{vue-router-BwoPnYha.js → vue-router-CCvxNose.js} +1 -1
- package/dist/web/index.html +74 -75
- package/graph-provider/fuli_graph/app.py +4 -0
- package/graph-provider/fuli_graph/knowledge_statement.py +230 -0
- package/graph-provider/fuli_graph/knowledge_statement_days.py +109 -0
- package/graph-provider/pyproject.toml +1 -1
- package/native/win32/fuli-win-helper.exe +0 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/packages/roundtable/src/peer/control-cli.js +31 -3
- package/packages/roundtable/src/peer/control.js +14 -2
- package/packages/roundtable/src/peer/coordinator-service.js +14 -8
- package/packages/roundtable/src/peer/lan-addresses.js +16 -1
- package/packages/roundtable/src/peer/nearby-discovery.js +105 -44
- package/packages/roundtable/src/peer/pairing-share.js +139 -0
- package/packages/roundtable/src/peer/peer-runtime.js +179 -42
- package/skills/operating-fuli/SKILL.md +9 -1
- package/skills/operating-fuli/references/workflow-recipes.md +2 -1
- package/src/agent-apps/host-tools/catalog.js +2 -0
- package/src/agent-delegation/operation-log.js +15 -1
- package/src/agent-delegation/port.js +1 -2
- package/src/agent-tools/graph-definitions.js +2 -0
- package/src/agent-tools/graph-handlers.js +2 -0
- package/src/agent-tools/interface-catalog.js +1 -0
- package/src/agent-tools/statement-definitions.js +18 -0
- package/src/graphiti/local-runtimes.js +5 -0
- package/src/graphiti/project-agent-task-sessions.js +49 -0
- package/src/graphiti/provider-client.js +8 -0
- package/src/graphiti/roundtable-host.js +4 -0
- package/src/graphiti/task-context-entry.js +10 -6
- package/src/http/api-router.js +2 -0
- package/src/http/graph-api-router.js +5 -2
- package/src/http/statement-api-router.js +27 -0
- package/src/judgment/store.js +9 -0
- package/src/knowledge-impressions/store.js +72 -9
- package/src/mcp/tool-annotations.js +1 -0
- package/src/notices/recent-notices.js +2 -1
- package/src/presence/windows-helper-pin.js +1 -1
- package/src/statement/agent-tool.js +29 -0
- package/src/statement/compounding-statement.js +134 -0
- package/src/whats-new/lines/0.27.2.json +13 -0
- package/dist/web/assets/AgentManagement-Cc00RLSO.css +0 -1
- package/dist/web/assets/AgentManagement-qCpr876m.js +0 -7
- package/dist/web/assets/AgentProfilePage-DcOBhuHG.js +0 -5
- package/dist/web/assets/DialogTitle-CIVSlKqQ.js +0 -1
- package/dist/web/assets/EmployeeWorkbench-BnxEZCSS.js +0 -4
- package/dist/web/assets/FieldRoot-D6HtUgDA.js +0 -1
- package/dist/web/assets/FlasPage-DtkW-_9f.js +0 -1
- package/dist/web/assets/HowtoPage-B8f5J_An.js +0 -1
- package/dist/web/assets/KnowledgeItemEditPage-DV8TVpvf.js +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-C4G6JCmG.js +0 -1
- package/dist/web/assets/KnowledgePage-Afiw2Kxy.js +0 -1
- package/dist/web/assets/KnowledgePeek-DIcPS9WU.js +0 -1
- package/dist/web/assets/KnowledgeTurnReceiptPage-7ncXkxKd.js +0 -1
- package/dist/web/assets/MenuSeparator-yD3wld9s.js +0 -1
- package/dist/web/assets/ModelSettingsPage-BqClsFmC.js +0 -1
- package/dist/web/assets/NoticeRow-CQShZQtw.js +0 -1
- package/dist/web/assets/NoticeRow-ktVO_9Es.css +0 -1
- package/dist/web/assets/OverviewPage-Cq89Klha.js +0 -1
- package/dist/web/assets/OverviewPage-KVt4LcE-.css +0 -1
- package/dist/web/assets/PageColumns-CgIXTt4J.js +0 -1
- package/dist/web/assets/PageColumns-DEideeB7.css +0 -1
- package/dist/web/assets/PersonalProfilePage-C_dmUEuW.js +0 -1
- package/dist/web/assets/PersonalProjectsPage-CiCFHVt_.js +0 -1
- package/dist/web/assets/PopperContent-CCmt2yHl.js +0 -1
- package/dist/web/assets/Presence-DqPb-1P1.js +0 -3
- package/dist/web/assets/RecentNotices-DYXEBfYm.js +0 -1
- package/dist/web/assets/RovingFocusGroup-CI4aZr1z.js +0 -1
- package/dist/web/assets/RovingFocusItem-C_N843Nb.js +0 -1
- package/dist/web/assets/SessionMigrationPage-CVKkTACn.js +0 -1
- package/dist/web/assets/SettingsPage-BcrAdXX7.js +0 -1
- package/dist/web/assets/SettingsPage-BlhCcwPn.css +0 -1
- package/dist/web/assets/TaskBlockerClear-BBmPbomO.css +0 -1
- package/dist/web/assets/TaskBlockerClear-DGaXP2ak.js +0 -1
- package/dist/web/assets/TaskBlockerNotice-8nogmPA-.js +0 -1
- package/dist/web/assets/TeamCardsWidget-BOf6oHOp.js +0 -1
- package/dist/web/assets/TeamIsland-BD5s-zFZ.js +0 -9
- package/dist/web/assets/Teleport-DhMmMHjy.js +0 -1
- package/dist/web/assets/WidgetSlot-C5h--noP.js +0 -2
- package/dist/web/assets/WorkbenchListHead-D40-J4GT.js +0 -1
- package/dist/web/assets/WorkbenchListPage-BX6Z9gkB.css +0 -1
- package/dist/web/assets/WorkbenchListPage-CJUvq4Ac.js +0 -1
- package/dist/web/assets/_plugin-vue_export-helper-D9CtLGVz.js +0 -9
- package/dist/web/assets/agent-occupation-Dhoz7LjT.js +0 -1
- package/dist/web/assets/agent-workflows-BS4KlKFj.js +0 -1
- package/dist/web/assets/checkbox-DZ6CDZ8r.js +0 -1
- package/dist/web/assets/combobox-DE0HzdKP.js +0 -1
- package/dist/web/assets/conversation-launcher-settings-D4vYOpHN.js +0 -1
- package/dist/web/assets/copy-mention-Crs0NIJB.js +0 -1
- package/dist/web/assets/dialog-Bg5NVU4Y.js +0 -1
- package/dist/web/assets/dropdown-menu-C5Kf9x2y.js +0 -1
- package/dist/web/assets/hover-card-llxR7wrX.js +0 -1
- package/dist/web/assets/index-C2o_v2mq.js +0 -24
- package/dist/web/assets/label-BtTrlS8e.js +0 -1
- package/dist/web/assets/label-table-CuTFbFd3.js +0 -1
- package/dist/web/assets/model-Bb0VtRJH.js +0 -1
- package/dist/web/assets/motion-Cw_hptY4.js +0 -1
- package/dist/web/assets/overview-data-BIeNATEJ.js +0 -1
- package/dist/web/assets/popover-BsWyCEy5.js +0 -1
- package/dist/web/assets/popup-host-DWJ1gygp.js +0 -1
- package/dist/web/assets/radio-group-DJ5np5d_.js +0 -1
- package/dist/web/assets/select-DJ7iyJ-X.js +0 -1
- package/dist/web/assets/settings-tabs-B9pCaEFP.js +0 -1
- package/dist/web/assets/switch-BoOtTu6O.js +0 -1
- package/dist/web/assets/tabs-D0TAS18R.js +0 -1
- package/dist/web/assets/useForwardExpose-Ci_aBJDg.js +0 -1
- package/dist/web/assets/useForwardScopeId-DYW8CZTp.js +0 -1
- package/dist/web/assets/usePrimitiveElement-DdC34jzt.js +0 -1
- package/dist/web/assets/useTeamPeople-Od3dDz6d.js +0 -1
- package/dist/web/assets/useTeamWork-CDKVZwYe.js +0 -1
|
@@ -7,11 +7,12 @@ import { startCoordinatorServer } from './coordinator-http.js';
|
|
|
7
7
|
import { cleanName, createCoordinatorService } from './coordinator-service.js';
|
|
8
8
|
import { createCoordinatorStore } from './coordinator-store.js';
|
|
9
9
|
import { loadDeviceIdentity } from './device-identity.js';
|
|
10
|
-
import { announcedAddresses, lanAddresses, virtualAddresses } from './lan-addresses.js';
|
|
10
|
+
import { announcedAddresses, discoveryAdapters, lanAddresses, virtualAddresses } from './lan-addresses.js';
|
|
11
11
|
import { createAttemptLedger } from './nearby-attempts.js';
|
|
12
12
|
import { createBonjourDiscovery } from './nearby-discovery.js';
|
|
13
13
|
import { createNearbyPairing } from './nearby-pairing.js';
|
|
14
14
|
import { createNearbyPresence } from './nearby-presence.js';
|
|
15
|
+
import { createPairingShare } from './pairing-share.js';
|
|
15
16
|
import { answersAs, connectNearby, createPeerClient, pairWithCoordinator } from './peer-transport.js';
|
|
16
17
|
import { coordinatorUrl, decodeInvitation, PeerError, shortFingerprint } from './protocol.js';
|
|
17
18
|
import { createPeerRunner } from './runner.js';
|
|
@@ -31,13 +32,19 @@ const PAIRED_GRACE_MS = 5_000;
|
|
|
31
32
|
// within this time did not finish its side: the trust is taken back.
|
|
32
33
|
const TRUST_USE_MS = 60_000;
|
|
33
34
|
const LOOPBACK = /^(127\.|::1$)/;
|
|
35
|
+
// The search for projects to add answers with this many by default, at most SEARCH_MAX.
|
|
36
|
+
const SEARCH_LIMIT = 20;
|
|
37
|
+
const SEARCH_MAX = 50;
|
|
34
38
|
const teamPeople = team => team?.people ?? [];
|
|
39
|
+
// A project another computer can ask: never an archived, temporary or session-only one.
|
|
40
|
+
const pickable = project => !project.temporary && !project.sessionOnly && !project.archived;
|
|
35
41
|
|
|
36
42
|
// The local owner's LAN roundtable controls, run only by the console process.
|
|
37
43
|
// Nothing here starts unless the owner turned it on; console LAN access does not.
|
|
38
44
|
export function createPeerRuntime({ host, roundtable, port, interfaces = networkInterfaces, allowLoopback = false,
|
|
39
45
|
claimWaitMs, createDiscovery = createBonjourDiscovery, startServer = startCoordinatorServer, nearbyListenHost = NEARBY_LISTEN_HOST, clock = Date.now,
|
|
40
|
-
nearbySessionMs = NEARBY_SESSION_MS, pairedGraceMs = PAIRED_GRACE_MS, trustUseMs = TRUST_USE_MS,
|
|
46
|
+
nearbySessionMs = NEARBY_SESSION_MS, pairedGraceMs = PAIRED_GRACE_MS, trustUseMs = TRUST_USE_MS, autoShareRetryMs, autoShareAttempts,
|
|
47
|
+
publishMs = PUBLISH_MS, onError = () => {} }) {
|
|
41
48
|
const store = () => port.nodeStore();
|
|
42
49
|
let coordinator = null;
|
|
43
50
|
let runner = null;
|
|
@@ -54,8 +61,8 @@ export function createPeerRuntime({ host, roundtable, port, interfaces = network
|
|
|
54
61
|
const trustChecks = new Set();
|
|
55
62
|
const spaceId = () => host.spaceId();
|
|
56
63
|
const identity = () => loadDeviceIdentity(port.directory);
|
|
57
|
-
const discovery = createDiscovery({
|
|
58
|
-
.catch(onError) });
|
|
64
|
+
const discovery = createDiscovery({ adapters: () => discoveryAdapters(interfaces),
|
|
65
|
+
onFailure: (error) => endNearby({ kind: 'discovery_failed', reason: failureCode(error) }).catch(onError) });
|
|
59
66
|
const presence = createNearbyPresence({ discovery, clock });
|
|
60
67
|
const attempts = createAttemptLedger({ clock, read: () => (port.configured() ? store().setting('nearbyAttempts') : null),
|
|
61
68
|
update: (change) => store().updateSetting('nearbyAttempts', change) });
|
|
@@ -90,6 +97,7 @@ export function createPeerRuntime({ host, roundtable, port, interfaces = network
|
|
|
90
97
|
if (settings) await startCoordinator(settings).catch((error) => { onError(error); });
|
|
91
98
|
if (store().setting('membership') && (coordinator || !settings)) await startRunner();
|
|
92
99
|
checkPendingTrust();
|
|
100
|
+
pairingShare.resume();
|
|
93
101
|
const nearby = store().setting('nearby');
|
|
94
102
|
if (!nearby) return;
|
|
95
103
|
if (!(nearby.until > clock())) await endNearby({ kind: 'timeout' });
|
|
@@ -104,6 +112,8 @@ export function createPeerRuntime({ host, roundtable, port, interfaces = network
|
|
|
104
112
|
let server = null;
|
|
105
113
|
const service = createCoordinatorService({ store: coordinatorStore, identity: device, authority, name,
|
|
106
114
|
onTrustChange: () => server?.refreshTrust(),
|
|
115
|
+
// A device that left (or was revoked) ends its pairing's share, as a revoke here does.
|
|
116
|
+
onRevoked: (nodeId) => pairingShare.forget(nodeId),
|
|
107
117
|
repositoryChanges: { read: () => store().setting('repositoryChanges'), write: (value) => store().setSetting('repositoryChanges', value) } });
|
|
108
118
|
try {
|
|
109
119
|
server = await startServer({ service, identity: device, host: address, port: listenPort, claimWaitMs,
|
|
@@ -138,7 +148,7 @@ export function createPeerRuntime({ host, roundtable, port, interfaces = network
|
|
|
138
148
|
publisher = setInterval(() => {
|
|
139
149
|
publish().catch(onError);
|
|
140
150
|
narrowListener().catch(onError);
|
|
141
|
-
},
|
|
151
|
+
}, publishMs);
|
|
142
152
|
publisher.unref();
|
|
143
153
|
}
|
|
144
154
|
|
|
@@ -167,13 +177,13 @@ export function createPeerRuntime({ host, roundtable, port, interfaces = network
|
|
|
167
177
|
// Each share names the lead it was made for; after a handoff the old share
|
|
168
178
|
// is withheld until the owner shares the project's new lead. A team that
|
|
169
179
|
// cannot be read right now is no handoff: its share stays as last published.
|
|
170
|
-
async function shareStates() {
|
|
171
|
-
const
|
|
172
|
-
const names = new Map(
|
|
180
|
+
async function shareStates({ projects = null, team: readTeam = teamReader() } = {}) {
|
|
181
|
+
const listed = projects ?? await host.listProjects().catch(() => []);
|
|
182
|
+
const names = new Map(listed.map((project) => [project.projectId, project.name]));
|
|
173
183
|
return Promise.all(store().shares().filter((share) => share.spaceId === spaceId()).map(async (share) => {
|
|
174
184
|
const projectName = names.get(share.projectId) ?? share.projectId;
|
|
175
185
|
let team;
|
|
176
|
-
try { team = await
|
|
186
|
+
try { team = await readTeam(share.projectId); }
|
|
177
187
|
catch (error) { return { ...share, projectName, lead: null, state: 'team_unreadable', reason: error.code ?? 'team_unreadable' }; }
|
|
178
188
|
const person = share.communicationOnly ? teamPeople(team).find(a => a.agentId === share.agentId) : team?.lead;
|
|
179
189
|
const current = person?.agentId === share.agentId;
|
|
@@ -222,45 +232,150 @@ export function createPeerRuntime({ host, roundtable, port, interfaces = network
|
|
|
222
232
|
|
|
223
233
|
// This device's own repository addresses, keyed with the paired group's
|
|
224
234
|
// secret (from the coordinator, only after pairing): the coordinator matches
|
|
225
|
-
// them between devices, and no device sees another device's digests.
|
|
235
|
+
// them between devices, and no device sees another device's digests. Only
|
|
236
|
+
// projects another computer can ask count: never archived, temporary or session-only ones.
|
|
226
237
|
async function repositoryDigests(key) {
|
|
227
238
|
const projects = await host.listProjects().catch(() => []);
|
|
228
|
-
return [...new Set(projects.filter(
|
|
239
|
+
return [...new Set(projects.filter(pickable).flatMap((project) => projectDigests(project, key)))];
|
|
229
240
|
}
|
|
230
241
|
|
|
231
|
-
|
|
232
|
-
|
|
242
|
+
// The coordinator's directory as this device sees it: the other devices and
|
|
243
|
+
// whether it holds this device's own digests under its current key.
|
|
244
|
+
async function readDirectory() {
|
|
245
|
+
if (!runnerClient) return { devices: [] };
|
|
233
246
|
try {
|
|
234
|
-
const { devices } = await runnerClient.post('/peer/1/directory', {}, { timeoutMs: DIRECTORY_READ_MS });
|
|
235
|
-
return
|
|
247
|
+
const { devices, ownRepositoriesKnown } = await runnerClient.post('/peer/1/directory', {}, { timeoutMs: DIRECTORY_READ_MS });
|
|
248
|
+
return { ownRepositoriesKnown,
|
|
249
|
+
devices: (Array.isArray(devices) ? devices : []).map((entry) => ({ ...entry, name: cleanName(entry?.name) || 'FULI' })) };
|
|
236
250
|
}
|
|
237
|
-
catch { return []; }
|
|
251
|
+
catch { return { devices: [] }; }
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
const pairedDirectory = async () => (await readDirectory()).devices;
|
|
255
|
+
|
|
256
|
+
// One read per project team within one answer, however many parts of it ask.
|
|
257
|
+
function teamReader() {
|
|
258
|
+
const teams = new Map();
|
|
259
|
+
return (projectId) => {
|
|
260
|
+
if (!teams.has(projectId)) teams.set(projectId, host.projectTeam(projectId));
|
|
261
|
+
return teams.get(projectId);
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
const sharedProjectIds = () => new Set(store().shares().filter((share) => share.spaceId === spaceId()).map((share) => share.projectId));
|
|
266
|
+
|
|
267
|
+
// The paired devices that registered this project with the same own repository.
|
|
268
|
+
function sameProjectOn(project, paired) {
|
|
269
|
+
const digests = new Set(repositoryKey ? projectDigests(project, repositoryKey) : []);
|
|
270
|
+
return paired.filter((device) => (device.sameRepositories ?? []).some((digest) => digests.has(digest)))
|
|
271
|
+
.map(({ nodeId, name }) => ({ nodeId, name }));
|
|
238
272
|
}
|
|
239
273
|
|
|
240
|
-
//
|
|
241
|
-
//
|
|
242
|
-
//
|
|
243
|
-
//
|
|
244
|
-
async function shareable() {
|
|
245
|
-
const
|
|
274
|
+
// The short list the card and `fuli peer` show: projects shared now (an
|
|
275
|
+
// already-shared one stays listed so it can be taken back, whatever it has
|
|
276
|
+
// become since) and the suggestions, projects a paired device registered
|
|
277
|
+
// with the same own repository. Every other project is found by searchShareable.
|
|
278
|
+
async function shareable({ projects, paired, team = teamReader() }) {
|
|
279
|
+
const shared = sharedProjectIds();
|
|
246
280
|
const agents = await host.listAgents().catch(() => []);
|
|
281
|
+
const listed = projects.flatMap((project) => {
|
|
282
|
+
const same = sameProjectOn(project, paired);
|
|
283
|
+
return shared.has(project.projectId) || (pickable(project) && same.length) ? [{ project, same }] : [];
|
|
284
|
+
});
|
|
285
|
+
return Promise.all(listed.map(({ project, same }) => shareEntry(project, same, { agents, team })));
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// One project as the card shows it: its current lead, the clients that lead
|
|
289
|
+
// may use and the paired devices with the same own repository. A folder is
|
|
290
|
+
// offered only when this computer knows one whose Git remote is that repository.
|
|
291
|
+
async function shareEntry(project, same, { agents, team }) {
|
|
292
|
+
const projectId = project.projectId;
|
|
293
|
+
const projectTeam = await team(projectId).catch(() => null);
|
|
294
|
+
const lead = projectTeam?.lead ?? null;
|
|
295
|
+
return { projectId, projectName: project.name ?? projectId,
|
|
296
|
+
lead: lead ? { agentId: lead.agentId, name: lead.name } : null, clients: wakeClients(agents, lead?.agentId),
|
|
297
|
+
communicationAgents: teamPeople(projectTeam).map(person => ({ agentId: person.agentId, name: person.name,
|
|
298
|
+
occupation: agents.find(a => a.agentId === person.agentId)?.occupation?.role ?? null })),
|
|
299
|
+
sameProjectOn: same, knownFolder: same.length && lead ? await repositoryFolder(project, lead.agentId) : null };
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
const wakeClients = (agents, agentId) => (agents.find((agent) => agent.agentId === agentId)?.profile.allowedClients ?? [])
|
|
303
|
+
.filter((client) => WAKE_CLIENTS.has(client));
|
|
304
|
+
|
|
305
|
+
// The other projects the person may add, found by name (no team reads): never
|
|
306
|
+
// archived, temporary or session-only ones (another computer has nothing to
|
|
307
|
+
// ask them), and none the short list already shows. An empty query lists the
|
|
308
|
+
// host's order, most recently changed first.
|
|
309
|
+
async function searchShareable({ query = '', limit = SEARCH_LIMIT } = {}) {
|
|
310
|
+
if (!store().setting('membership')) throw new PeerError('peer_not_paired', 'Pair this computer before sharing a project', 409);
|
|
311
|
+
const size = Number.isSafeInteger(limit) ? Math.min(Math.max(limit, 1), SEARCH_MAX) : SEARCH_LIMIT;
|
|
312
|
+
const needle = String(query ?? '').trim().toLowerCase();
|
|
313
|
+
const projects = await host.listProjects().catch(() => []);
|
|
314
|
+
const shared = sharedProjectIds();
|
|
247
315
|
const paired = repositoryKey ? await pairedDirectory() : [];
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
.filter((client) => WAKE_CLIENTS.has(client));
|
|
253
|
-
const digests = new Set(repositoryKey ? projectDigests(project, repositoryKey) : []);
|
|
254
|
-
const sameProjectOn = paired.filter((device) => (device.sameRepositories ?? []).some((digest) => digests.has(digest)))
|
|
255
|
-
.map(({ nodeId, name }) => ({ nodeId, name }));
|
|
256
|
-
return { projectId, projectName: project.name ?? projectId,
|
|
257
|
-
lead: team?.lead ? { agentId: team.lead.agentId, name: team.lead.name } : null, clients: allowed,
|
|
258
|
-
communicationAgents: teamPeople(team).map(person => ({ agentId: person.agentId, name: person.name,
|
|
259
|
-
occupation: agents.find(a => a.agentId === person.agentId)?.occupation?.role ?? null })),
|
|
260
|
-
sameProjectOn, knownFolder: sameProjectOn.length && team?.lead ? await repositoryFolder(project, team.lead.agentId) : null };
|
|
261
|
-
}));
|
|
316
|
+
const found = projects.filter((project) => pickable(project) && !shared.has(project.projectId)
|
|
317
|
+
&& !sameProjectOn(project, paired).length && (project.name ?? project.projectId).toLowerCase().includes(needle));
|
|
318
|
+
return { projects: found.slice(0, size).map((project) => ({ projectId: project.projectId, projectName: project.name ?? project.projectId })),
|
|
319
|
+
more: found.length > size };
|
|
262
320
|
}
|
|
263
321
|
|
|
322
|
+
// The full entry of one project the person just picked from the search.
|
|
323
|
+
async function shareableProject(projectId) {
|
|
324
|
+
if (!store().setting('membership')) throw new PeerError('peer_not_paired', 'Pair this computer before sharing a project', 409);
|
|
325
|
+
const project = (await host.listProjects().catch(() => [])).find((entry) => entry.projectId === projectId);
|
|
326
|
+
if (!project || !(pickable(project) || sharedProjectIds().has(projectId))) {
|
|
327
|
+
throw new PeerError('project_not_found', 'No project of this computer can be shared under that id', 404);
|
|
328
|
+
}
|
|
329
|
+
const paired = repositoryKey ? await pairedDirectory() : [];
|
|
330
|
+
return shareEntry(project, sameProjectOn(project, paired), { agents: await host.listAgents().catch(() => []), team: teamReader() });
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
// ---- Sharing the projects both computers have, once per pairing (pairing-share.js) ----
|
|
334
|
+
|
|
335
|
+
// What the coordinator answers about one paired device: whether both
|
|
336
|
+
// computers' digests under its current key are there (settled), how many
|
|
337
|
+
// other devices the group has, and the projects here the device reports too.
|
|
338
|
+
// Publishing first sends this computer's digests under the current key.
|
|
339
|
+
async function pairingMatch(fingerprint) {
|
|
340
|
+
await publish().catch(onError);
|
|
341
|
+
const answer = await readDirectory();
|
|
342
|
+
const other = answer.devices.find((entry) => entry.nodeId === fingerprint);
|
|
343
|
+
const projects = await host.listProjects().catch(() => []);
|
|
344
|
+
const common = other ? projects.filter((project) => pickable(project) && sameProjectOn(project, [other]).length) : [];
|
|
345
|
+
// A coordinator from before these flags settles only on a match.
|
|
346
|
+
const known = answer.ownRepositoriesKnown === undefined ? common.length > 0
|
|
347
|
+
: answer.ownRepositoriesKnown === true && other?.repositoriesKnown === true;
|
|
348
|
+
return { settled: Boolean(other) && known, others: answer.devices.filter((entry) => entry.nodeId !== fingerprint).length, common };
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
// Each project's share as a manual save makes it: the current lead, its first
|
|
352
|
+
// allowed wake client, and the folder only when the host maps it to this project.
|
|
353
|
+
async function pairingShares(projects) {
|
|
354
|
+
const agents = await host.listAgents().catch(() => []);
|
|
355
|
+
const shares = [];
|
|
356
|
+
for (const project of projects) {
|
|
357
|
+
const lead = (await host.projectTeam(project.projectId).catch(() => null))?.lead;
|
|
358
|
+
const [client] = wakeClients(agents, lead?.agentId);
|
|
359
|
+
if (!client) continue;
|
|
360
|
+
const folder = await repositoryFolder(project, lead.agentId);
|
|
361
|
+
shares.push({ projectName: project.name ?? project.projectId, share: { spaceId: spaceId(), projectId: project.projectId,
|
|
362
|
+
agentId: lead.agentId, clients: [client],
|
|
363
|
+
workingDirectory: folder ? await confirmedFolder(folder, project.projectId).catch(() => null) : null } });
|
|
364
|
+
}
|
|
365
|
+
return shares;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
// The projects whose share the person changed (added or removed) in a save, and when.
|
|
369
|
+
const touchedSince = (projectId, since) => (store().setting('shareTouches')?.[projectId] ?? 0) >= since;
|
|
370
|
+
|
|
371
|
+
const pairingShare = createPairingShare({ clock, attemptMs: autoShareRetryMs, attempts: autoShareAttempts, onError, port: {
|
|
372
|
+
setting: (key) => store().setting(key), setSetting: (key, value) => store().setSetting(key, value),
|
|
373
|
+
paired: () => Boolean(port.configured() && store().setting('membership')),
|
|
374
|
+
match: pairingMatch, prepare: pairingShares, sharedProjectIds, touchedSince,
|
|
375
|
+
writeShares: (shares) => store().replaceShares([...store().shares(), ...shares], port.idFactory),
|
|
376
|
+
afterWrite: async () => { await runner?.reconcileShares(); await publish().catch(onError); },
|
|
377
|
+
} });
|
|
378
|
+
|
|
264
379
|
async function repositoryFolder(project, agentId) {
|
|
265
380
|
const folder = await roundtable.knownProjectFolder({ agentId, projectId: project.projectId }).catch(() => null);
|
|
266
381
|
if (!folder || !host.folderRepository) return null;
|
|
@@ -271,11 +386,14 @@ export function createPeerRuntime({ host, roundtable, port, interfaces = network
|
|
|
271
386
|
async function status() {
|
|
272
387
|
if (!port.configured()) {
|
|
273
388
|
return { beta: true, role: null, device: null, coordinator: null, addresses: localAddresses(), devices: [],
|
|
274
|
-
openInvitations: 0, shares: [], shareable: [], lastPublish: null, nearby: await nearbyView() };
|
|
389
|
+
openInvitations: 0, shares: [], shareable: [], groupSize: 0, autoShared: [], autoSharePending: false, lastPublish: null, nearby: await nearbyView() };
|
|
275
390
|
}
|
|
276
391
|
const membership = store().setting('membership');
|
|
277
392
|
const device = membership ? await identity() : null;
|
|
278
393
|
const devices = membership?.role === 'coordinator' ? storedDevices() : [];
|
|
394
|
+
const projects = membership ? await host.listProjects().catch(() => []) : [];
|
|
395
|
+
const paired = membership ? await pairedDirectory() : [];
|
|
396
|
+
const team = teamReader();
|
|
279
397
|
return {
|
|
280
398
|
beta: true,
|
|
281
399
|
remoteRemovalPending: Boolean(store().setting('pendingLeave')),
|
|
@@ -287,8 +405,12 @@ export function createPeerRuntime({ host, roundtable, port, interfaces = network
|
|
|
287
405
|
addresses: localAddresses(),
|
|
288
406
|
devices: devices.map((entry) => ({ ...entry, shortFingerprint: shortFingerprint(entry.nodeId) })),
|
|
289
407
|
openInvitations: coordinator ? coordinator.service.openInvitations() : 0,
|
|
290
|
-
shares: membership ? (await shareStates()).map(({ lead: _lead, ...share }) => share) : [],
|
|
291
|
-
shareable: membership ? await shareable() : [],
|
|
408
|
+
shares: membership ? (await shareStates({ projects, team })).map(({ lead: _lead, ...share }) => share) : [],
|
|
409
|
+
shareable: membership ? await shareable({ projects, paired, team }) : [],
|
|
410
|
+
// This computer and the paired devices it sees: a share reaches every one of them.
|
|
411
|
+
groupSize: membership ? paired.length + 1 : 0,
|
|
412
|
+
autoShared: membership ? pairingShare.view() : [],
|
|
413
|
+
autoSharePending: membership ? pairingShare.waiting() : false,
|
|
292
414
|
lastPublish: membership ? lastPublish : null,
|
|
293
415
|
nearby: await nearbyView(),
|
|
294
416
|
};
|
|
@@ -339,6 +461,9 @@ export function createPeerRuntime({ host, roundtable, port, interfaces = network
|
|
|
339
461
|
if (result.coordinatorNodeId !== invitation.fingerprint) throw new PeerError('invalid_pairing', 'The coordinator answered with another identity', 502);
|
|
340
462
|
await adoptCoordinator({ url: invitation.url, certPem: invitation.certificatePem, fingerprint: invitation.fingerprint,
|
|
341
463
|
name: invitation.name, authority: invitation.authority });
|
|
464
|
+
// Joining is the consent, as the 6 digits are nearby: the console says so
|
|
465
|
+
// under the previewed invitation, `fuli peer join` prints it before it joins.
|
|
466
|
+
await pairingShare.start(invitation.fingerprint)?.catch(onError);
|
|
342
467
|
return status();
|
|
343
468
|
}
|
|
344
469
|
|
|
@@ -388,6 +513,14 @@ export function createPeerRuntime({ host, roundtable, port, interfaces = network
|
|
|
388
513
|
...(communicationOnly ? { communicationOnly: true } : {}),
|
|
389
514
|
workingDirectory: entry.workingDirectory ? await confirmedFolder(entry.workingDirectory, projectId) : null });
|
|
390
515
|
}
|
|
516
|
+
// A project the person shared or took back here keeps that choice: sharing at pairing never overrides it.
|
|
517
|
+
const before = sharedProjectIds();
|
|
518
|
+
const after = new Set(shares.map((share) => share.projectId));
|
|
519
|
+
const changed = [...before, ...after].filter((projectId) => before.has(projectId) !== after.has(projectId));
|
|
520
|
+
if (changed.length) {
|
|
521
|
+
store().setSetting('shareTouches', { ...(store().setting('shareTouches') ?? {}),
|
|
522
|
+
...Object.fromEntries(changed.map((projectId) => [projectId, clock()])) });
|
|
523
|
+
}
|
|
391
524
|
store().replaceShares(shares, port.idFactory);
|
|
392
525
|
await runner?.reconcileShares();
|
|
393
526
|
// A list the coordinator did not get is said here, not only in the log.
|
|
@@ -411,8 +544,7 @@ export function createPeerRuntime({ host, roundtable, port, interfaces = network
|
|
|
411
544
|
|
|
412
545
|
async function revokeDevice(nodeId) {
|
|
413
546
|
if (!coordinator) throw new PeerError('not_coordinator', 'Only the coordinator device revokes devices', 409);
|
|
414
|
-
|
|
415
|
-
store().forgetAuthority(nodeId);
|
|
547
|
+
revokeStored(nodeId);
|
|
416
548
|
return status();
|
|
417
549
|
}
|
|
418
550
|
|
|
@@ -430,6 +562,8 @@ export function createPeerRuntime({ host, roundtable, port, interfaces = network
|
|
|
430
562
|
store().setSetting('coordinator', null);
|
|
431
563
|
store().setSetting('reachedAddresses', null);
|
|
432
564
|
store().setSetting('pendingTrust', null);
|
|
565
|
+
pairingShare.clear();
|
|
566
|
+
store().setSetting('shareTouches', null);
|
|
433
567
|
listenFailure = null;
|
|
434
568
|
if (membership?.role === 'member') store().setSetting('pendingLeave', membership.coordinator);
|
|
435
569
|
await finishLeaving();
|
|
@@ -460,6 +594,7 @@ export function createPeerRuntime({ host, roundtable, port, interfaces = network
|
|
|
460
594
|
try { coordinatorStore.revokeNode(nodeId, new Date(clock()).toISOString()); } finally { coordinatorStore.close(); }
|
|
461
595
|
}
|
|
462
596
|
store().forgetAuthority(nodeId);
|
|
597
|
+
pairingShare.forget(nodeId);
|
|
463
598
|
}
|
|
464
599
|
|
|
465
600
|
// ---- Nearby pairing (rec issue 127) ----
|
|
@@ -587,6 +722,7 @@ export function createPeerRuntime({ host, roundtable, port, interfaces = network
|
|
|
587
722
|
|
|
588
723
|
function afterPairing(peer) {
|
|
589
724
|
nearbyNotice = { kind: 'paired', name: peer.name, fingerprint: peer.fingerprint, at: new Date(clock()).toISOString() };
|
|
725
|
+
pairingShare.start(peer.fingerprint)?.catch(onError);
|
|
590
726
|
const timer = setTimeout(() => endNearby({ kind: 'paired', name: peer.name, fingerprint: peer.fingerprint }).catch(onError), pairedGraceMs);
|
|
591
727
|
timer.unref?.();
|
|
592
728
|
}
|
|
@@ -725,12 +861,13 @@ export function createPeerRuntime({ host, roundtable, port, interfaces = network
|
|
|
725
861
|
clearTimeout(nearbyTimer);
|
|
726
862
|
for (const timer of trustChecks) clearTimeout(timer);
|
|
727
863
|
trustChecks.clear();
|
|
864
|
+
pairingShare.close();
|
|
728
865
|
pairing.close();
|
|
729
866
|
presence.stop();
|
|
730
867
|
await stopAll();
|
|
731
868
|
}
|
|
732
869
|
|
|
733
|
-
return { resume, status, enableCoordinator, createInvitation, previewInvitation, join, setShares, revokeDevice, disable,
|
|
870
|
+
return { resume, status, searchShareable, shareableProject, enableCoordinator, createInvitation, previewInvitation, join, setShares, revokeDevice, disable,
|
|
734
871
|
nearbyOn, nearbyOff, pairNearby, confirmPairing, cancelPairing, clearPairingAttempts, publish, close, runnerActive: () => Boolean(runner) };
|
|
735
872
|
}
|
|
736
873
|
|
|
@@ -41,7 +41,7 @@ Console changes without their own tool are `agent_delegable` (on by default) or
|
|
|
41
41
|
- On by default: settings (runtime settings, recall, session links, one-click update, occupation plugin updates, client connections, doctor repair, confirming capture changes, restoring old data, deleting `#fulidebug` turn records), organisation (occupations, an FLA's occupation and look, workflow decisions, standing assignments, marking a block cleared), projects (hierarchy, Astro's project proposals, conversation owners, temporary-project moves, one item's scope, tag governance), services and apps (stop services, delete records, clear logs; start, stop, restart, approve, roll back, disable, export apps), roundtable board/chat mode.
|
|
42
42
|
- Also on by default: built-in Agent and semantic search (语义搜索) model settings (model, egress, budget, 「只给建议」, 「交给 Tonborg 确认」, 测试连接 `POST /api/model-backends/roles/:role/check`).
|
|
43
43
|
- Semantic search needs no model service: `GET /api/embedding-models` lists small built-in models FULI downloads and runs on this computer (no key, nothing leaves it). With model settings on, `POST /api/embedding-models/download { id, use: true }` downloads one and switches search to it when the download is whole (the answer comes at once; read the list for progress or a failed reason), `POST /api/embedding-models/use { id }` switches to an installed one, `POST /api/embedding-models/remove { id }` deletes one search does not use. Offer the recommended model when the person has no model for 语义搜索.
|
|
44
|
-
- Off until the person turns it on: LAN roundtable (listen, pair, share, revoke, leave, nearby pairing `POST /api/peer/nearby` / `nearby/pair` / `nearby/cancel`), sharing a project's Jefa board publicly. Confirming a nearby pairing code and clearing the pairing-attempt count are `local_user_only`: the person compares both screens and confirms on each computer; see the LAN roundtable recipe in `references/workflow-recipes.md`.
|
|
44
|
+
- Off until the person turns it on: LAN roundtable (listen, pair, share, revoke, leave, nearby pairing `POST /api/peer/nearby` / `nearby/pair` / `nearby/cancel`), sharing a project's Jefa board publicly. Confirming a nearby pairing code and clearing the pairing-attempt count are `local_user_only`: the person compares both screens and confirms on each computer. That confirmation (and joining with an invitation) also shares the leads of up to 8 projects the other computer reports having too, only in a group of these two computers, and nothing else; other projects are added by search; see the LAN roundtable recipe in `references/workflow-recipes.md`.
|
|
45
45
|
- Never delegable: permanent knowledge deletion and its preview/export, deleting old data now, data-format migration apply/rollback/prune/restore, deleting an Agent app's code or data, the Agent-access switch, AI permissions themselves, model API keys and listing a model endpoint's models with the saved key.
|
|
46
46
|
- Connecting a model when the person asks (「帮我给 FULI 配个模型」), in this order:
|
|
47
47
|
1. Ask which OpenAI- or Anthropic-compatible endpoint and key to use, or use the one they named. Never search environment variables, config files or documents for a key yourself.
|
|
@@ -81,6 +81,14 @@ Before FULI changes data it keeps a copy: a store's format backup, a graph expor
|
|
|
81
81
|
- A graph export (`restoreCommand`) is restored by the person at a terminal while FULI is stopped; the other kinds have no restore.
|
|
82
82
|
- Deleting old data now cannot be undone and is the person's, in 设置 › 系统 › 存储 (Settings › System › Storage); never delete backup files yourself.
|
|
83
83
|
|
|
84
|
+
## The statement (复利账单)
|
|
85
|
+
|
|
86
|
+
When the person asks what FULI did for them this week, read `read_compounding_statement` (through `fuli_call`; `from`/`to` default to this computer's current week, Monday to Monday, `weeks` to 8). It is the console's `GET /api/statement` plus `provenance`, one line per number:
|
|
87
|
+
|
|
88
|
+
- Observed by FULI: `total.confirmed` and `series` (confirmed, current items at each week end), `carried` (tasks, clients and distinct items FULI delivered at task entry), `learned` (new items, the person's and Tonborg's confirmations, promotions by the usage rule, retired items), `decided` (Tonborg's applied decisions and the person's undos), `changed` (console changes FLAs made for them that succeeded), `answered` (Agent questions they answered).
|
|
89
|
+
- Reported by Agents: `used` (`knowledge_used` events: Agents' own claims that knowledge mattered, cited or applied) and `done` (the status Agents gave their tasks). Say they are the Agents' claims; never present any number as a measured outcome, quality or time saved, and never add one FULI did not return.
|
|
90
|
+
- A section named in `unavailable` could not be read now (for example the Graph Provider is down): say it is unavailable, never show it as zero or estimate it. Older tasks have no client or delivered preferences on record, so `carried` counts them by their recall alone.
|
|
91
|
+
|
|
84
92
|
## Selecting tools
|
|
85
93
|
|
|
86
94
|
Start from `list_agent_interfaces`; names and schemas can evolve. With a chat-profile connection, read one tool's schema with `list_agent_interfaces(toolName)` and run it with `fuli_call(toolName, input)`; the listed tools never change during a session, so do not wait for a discovered tool to appear in your tool list. Common workflows and verification pairs are summarized in [workflow-recipes.md](references/workflow-recipes.md). Load that reference only when choosing or sequencing tools is not obvious from the catalog.
|
|
@@ -9,6 +9,7 @@ Use these as sequencing hints only. Always call `list_agent_interfaces` and insp
|
|
|
9
9
|
| Change how knowledge conflicts are handled | `get_external_knowledge_conflict_policy` (without `personalProjectId`: the default and each project's own choice) | one project: `update_external_knowledge_conflict_policy` (`mode: null` returns it to the default); every project without its own choice: the same tool without `personalProjectId`, only when the person asks for the default | `get_external_knowledge_conflict_policy` with the project's ID: `mode` and `source` (`project` or `default`) |
|
|
10
10
|
| Change capture behavior (global, client or project mode; "这个项目以后别记了" is `recordProjects` with the current project's ID) | `get_capture_policy` with `projectPath` | `update_capture_policy` (with the current `taskContextToken`) saves nothing and returns `preview` and `confirmUrl`: show both word for word; the person confirms or cancels in the FULI console. No Agent call can complete it | `get_capture_policy` after the person says they confirmed |
|
|
11
11
|
| See or restore old data FULI kept (backups, "之前的数据还在吗", how much space FULI takes) | `read_old_data`, then with the item's `id` for its files and `path` for one text file | the person asks to restore a `restorable` item: `run_delegated_action` `POST /api/old-data/:id/restore` (settings permission; FULI restarts). Deleting now stays the person's in 设置 › 系统 › 存储 | `read_old_data`: a new item holds the store as it was before the restore |
|
|
12
|
+
| Show the person their week (复利账单, "这周 FULI 帮我做了什么") | `read_compounding_statement` (no arguments: this local week) | none; read only | each number's `provenance` line: `used` and `done` are the Agents' own reports, and a section in `unavailable` is said to be unavailable, never zero |
|
|
12
13
|
| Pause or resume recording of this session ("这次别记" / "继续记") | none | `update_capture_policy` with only `sessionPaused` and the current `taskContextToken`, at once and without confirmation | end the reply with the returned `agent_receipt` |
|
|
13
14
|
| Turn FULI off or on for this session | none | no Agent tool: tell the person to type `/fuli stop` or `fuli stop` (`start`, `restart`, `status`) | the hook's answer is shown to the person |
|
|
14
15
|
| Check whether FULI works and what needs fixing, including a client that needs an update or a restart to load one (体检) | the `policy-and-health` workflow names the read-only doctor route, `GET /api/system/doctor` on the local console | its 「自动修复」 (reconnecting clients that were connected before; on Windows, limiting a `data_dir_shared` data directory to the person's account and SYSTEM) is `run_delegated_action` with `POST /api/system/doctor/repair` when the person asks (settings permission); otherwise tell them what the console banner lists. Items with `fix: person` (confirming a data format migration, restarting client sessions, trusting Codex's hooks in `/hooks`) stay theirs. An `npm_copy_installed` info item (only on the desktop app) names an npm installation of FULI beside the app: the app already runs the shared data and pointed the connected clients at itself; `data.copies[].shellCommands` are the bare commands a terminal still answers with that older copy. The console offers 「卸载」 for it; you remove it only with the person's own words (`agent_relayed` `POST /api/system/npm-copies/uninstall`), and closing its console notice is the delegable settings route `PUT /api/system/npm-copies/notice`. Whether terminals run the desktop app's own `fl`/`fuli` is `GET /api/system/cli-path`, switched only with the person's own words (`agent_relayed` `PUT /api/system/cli-path` `{ enabled }`) (turning it off takes out exactly the PATH entry and scripts FULI added). A client session moves to a newly installed FULI on its own once it is idle, so a `sessions_outdated` item names only sessions started before that hand-over existed, and each needs one restart. Servers from a FULI older than its process records are found in the operating system's process list instead: one `sessions_outdated:other:unknown` item with `runningVersion: null`, a `count`, no `sessions` and `since` the oldest start. Such a session also gets one task-entry notice; when its connection predates the task-entry contract, the notice says the hook token may not be readable there, and a task-context refusal to an older connection names its version and asks for a reconnect. Its `sessions` are what the console's 「打开」 links open when the person clicks them, never something to open for them. A `data_format_waiting` item with `lastSeenAt` is the graph's answer from before it went idle: until it is confirmed, every FULI write to the graph fails with `data_format_read_only`. `unchecked` lists what was not checked, never a healthy result (`data_dir`: the data directory's ACL could not be read); `uncheckedReasons` says why (`graph_format`: `graph_sleeping` or `graph_not_answering`; `hook_trust:codex`: `codex_missing`, `codex_timeout` or `codex_error`, when FULI could not read Codex's app-server `hooks/list`; a `hook_trust_untrusted` item with `fix: person` reports FULI hooks that are not all trusted, which the person trusts in Codex's `/hooks`; `sessions`: `process_list_unavailable`, when the process list could not be read within 5 seconds, so nothing is said about unrecorded servers; `transcript_format:<clientId>`: `no_transcript` when a connected client has no transcript changed in the last 7 days, or `transcript_unreadable`; a `client_format_changed` item with `fix: person` reports a connected client whose newest transcript FULI's parser read under half of (at least 5 lines, counts only in `data.recognized` / `data.total`), so capture from it may miss records until FULI is updated; `clients`: `client_detection_unavailable`, because agent-installer, which reads which clients are installed and whether FULI is in them, could not run, so nothing is known about any client) | the person's banner after they repair; never confirm a migration, restart a session or trust hooks for them |
|
|
@@ -46,7 +47,7 @@ Bole and Tonborg are provisioned by the Provider as fixed native roles: `recruit
|
|
|
46
47
|
|
|
47
48
|
Every Agent has a person-like nickname unique in its personal space. When recruiting or creating one, put the job in its occupation and responsibility, not its `displayName`: a job-title name or none is replaced by a generated name. Right before proposing a new Agent's `displayName` (`recruitmentProfile` or `upsert_project_agent`), call `get_agent_naming_style`: when the person saved a style (FLA 取名偏好), propose a name in it; when it returns `null`, omit `displayName`. A given name another Agent uses is refused with `agent_name_taken` and free generated names, before anything is written: propose another in the same style, or use one of them. If you cannot find a free name, tell the person; never reuse a taken one. Only the person edits the style, on their home page (「我」, `/preferences`) beside Bole, where it starts as FULI's own naming rule; leaving or restoring that default saves no style (`explain_settings` gives the link). Changing a style never renames existing Agents, and renaming an existing Agent to a taken name is refused the same way. Never rename an existing Agent on your own; a read may return `nameSuggestion` for the person to accept. When the person asks to rename any Agent, FULI's own roles included, call `rename_project_agent` (`displayName`; `null` gives Jefa, Bole, Tonborg or Astro its built-in name back): only the shown name changes, identity stays the `agentId`, and a renamed role still answers to its built-in name, which no other Agent may take. An Agent's avatar (a re-rolled drawing, an uploaded picture, or the default) is the person's choice; change it only when they ask, with `run_delegated_action` (`PUT /api/agent-avatars/:agentId`, organisation permission). The person's own home works the same way: their picture and what FULI calls them are set only there, on this computer (`PUT /api/person-profile` is `agent_relayed`: change it only with the person's exact words from chat; no Agent tool reads the picture). When they said how to be called, the task entry's `context.address_as` carries it: address them by it in replies, and never ask for it, guess it or write it into knowledge. Without it, keep your usual neutral address.
|
|
48
49
|
|
|
49
|
-
LAN roundtable nearby pairing (rec#127; `lan_roundtable` permission, off until the person turns it on): with their go-ahead, an Agent may turn discovery on with `run_delegated_action` `POST /api/peer/nearby { on: true, name? }` (or `fuli peer nearby on [--name NAME]`) on each computer and start a pairing; it tells devices on that network that the computer runs FULI, under the name given or `FULI` plus four fingerprint characters (never the computer's own name). It turns itself off after a pairing or 30 minutes (`nearby.ended` says why, including `discovery_failed` with its reason); turning it on again while on keeps that end. Read `GET /api/peer` (`nearby.devices`: name, `fingerprint`, `paired`), then start `POST /api/peer/nearby/pair { fingerprint }` (`fuli peer pair <first 4+ characters>`). Both computers then show the same `nearby.pairing.code` for 2 minutes. Never confirm it, read it out as compared, or type it for the person: `POST /api/peer/nearby/confirm` is `local_user_only`. The person ticks 「两台电脑的 6 位数字一样」 and clicks 确认 on each computer, or runs `fuli peer confirm <the code shown on the other computer>` there; a code that differs cancels the pairing (`code_mismatch`). `POST /api/peer/nearby/cancel` stops or refuses a request. Every pairing handshake is counted on each computer (`nearby.attempts`: 5 per 10 minutes, 10 per 24 hours); off and on, a restart or an Agent never clears it. At the limit (`nearby.limited`) tell the person that many attempts can mean someone is trying to pair uninvited; they may wait, or clear it themselves on that computer as a deliberate second step (「是我自己在试…」 then 确认清零, or `fuli peer nearby clear-attempts`; `POST /api/peer/nearby/attempts/clear` is `local_user_only`). `nearby.pairing.state` `waiting` means this computer trusts the other but it has not connected yet; only after its first connection is it `paired` (or `trust_withdrawn` when it never connects). When `coordinator.listenFailure` is set nothing listens (its address is gone); tell the person to turn the LAN roundtable off and on. Nobody picks the coordinator: the computer that already coordinates others keeps it, otherwise the one picked from the list.
|
|
50
|
+
LAN roundtable nearby pairing (rec#127; `lan_roundtable` permission, off until the person turns it on): with their go-ahead, an Agent may turn discovery on with `run_delegated_action` `POST /api/peer/nearby { on: true, name? }` (or `fuli peer nearby on [--name NAME]`) on each computer and start a pairing; it tells devices on that network that the computer runs FULI, under the name given or `FULI` plus four fingerprint characters (never the computer's own name). It turns itself off after a pairing or 30 minutes (`nearby.ended` says why, including `discovery_failed` with its reason); turning it on again while on keeps that end. Read `GET /api/peer` (`nearby.devices`: name, `fingerprint`, `paired`), then start `POST /api/peer/nearby/pair { fingerprint }` (`fuli peer pair <first 4+ characters>`). Both computers then show the same `nearby.pairing.code` for 2 minutes. Never confirm it, read it out as compared, or type it for the person: `POST /api/peer/nearby/confirm` is `local_user_only`. The person ticks 「两台电脑的 6 位数字一样」 and clicks 确认 on each computer, or runs `fuli peer confirm <the code shown on the other computer>` there; a code that differs cancels the pairing (`code_mismatch`). `POST /api/peer/nearby/cancel` stops or refuses a request. Every pairing handshake is counted on each computer (`nearby.attempts`: 5 per 10 minutes, 10 per 24 hours); off and on, a restart or an Agent never clears it. At the limit (`nearby.limited`) tell the person that many attempts can mean someone is trying to pair uninvited; they may wait, or clear it themselves on that computer as a deliberate second step (「是我自己在试…」 then 确认清零, or `fuli peer nearby clear-attempts`; `POST /api/peer/nearby/attempts/clear` is `local_user_only`). `nearby.pairing.state` `waiting` means this computer trusts the other but it has not connected yet; only after its first connection is it `paired` (or `trust_withdrawn` when it never connects). When `coordinator.listenFailure` is set nothing listens (its address is gone); tell the person to turn the LAN roundtable off and on. Nobody picks the coordinator: the computer that already coordinates others keeps it, otherwise the one picked from the list. Pairing shares the leads of up to 8 projects the other computer reports having too: when the person confirms the code (on each computer), and on the computer that joins with an invitation (the screen and `fuli peer join` say so first), FULI shares once per paired device the lead of every project here whose own repository the coordinator reports the other computer also registered (never archived, temporary or session-only ones; a reference source never counts), with the lead's first allowed wake client and the folder only when a checkout is known and maps to that project. It waits until the coordinator holds both computers' digests under its current key (up to about 3 minutes). It shares nothing when more than 8 match (`skipped: too_many`) or when the group has any other computer (`skipped: group`; a share reaches every device in the group): then the person uses 「共享这 N 个相同的项目」, told that the other computers can ask those leads too (`groupSize` > 2). It never changes or removes an existing share, and a project the person shared or unticked since the pairing keeps their choice. `GET /api/peer` `autoShared` lists what each pairing shared or why it shared none, and the card names them (「配对后已共享:…」); `autoSharePending` is true while a pairing still waits for that answer. Known limit: on a computer that joined (a member), both the matching projects and who else is in the group come from the coordinating computer, which the member cannot check; a dishonest coordinator could hide other members, so the member's card says the other computer decides who else is in the group and anything unsure can be unticked. The confirm step stays `local_user_only`. `shareable` is short: the shared projects and the suggestions; `shareable[].sameProjectOn` names paired computers whose project has the same own repository (matched on the coordinator with a key only the paired group has; a device never sees another's digests), and `knownFolder` a folder here whose Git origin is that repository (null: ask the person). Suggestions not shared yet (the coordinator of an invitation pairing, pairings from before this) are shared only by the person: 「共享这 N 个相同的项目」 or ticking them. Other projects are found by name with `GET /api/peer/shareable?query=<text>&limit=20` (`{ projects: [{ projectId, projectName }], more }`, no team reads) and read whole with `GET /api/peer/shareable/<projectId>` before adding them; nothing is shared until saved with `PUT /api/peer/shares` (the full list). A share list the coordinator did not get fails with `share_not_published` and shows in `lastPublish`.
|
|
50
51
|
|
|
51
52
|
Runtime settings, the doctor's repair, adding or removing a hand-described client, marking a blocked task cleared and the other `agent_delegable` entries are made for the person with `run_delegated_action` (see SKILL.md). Clear a block only after you fixed it, with `reason` saying what you did; the history names you, not the person. Reporting `running` or `queued` with `record_project_agent_task_activity` and your `taskContextToken` makes that clear for you first, only when the report itself would pass (same permission, same record; the result's `blockerCleared` says so), and with Organisation off nothing is cleared and the refusal names the switch. Confirming a block FULI shows as probably resolved (「确认已解除」) is the person's own click. The following controls are deliberately local-user-only unless the current interface catalog says otherwise:
|
|
52
53
|
|
|
@@ -124,6 +124,8 @@ export const HOST_TOOL_CATALOG = Object.freeze({
|
|
|
124
124
|
read_diagnostic_events: UNSCOPED,
|
|
125
125
|
// Reads files under the data directory, outside any app's space.
|
|
126
126
|
read_old_data: UNSCOPED,
|
|
127
|
+
// The person's whole statement: counts across every project and FLA.
|
|
128
|
+
read_compounding_statement: UNSCOPED,
|
|
127
129
|
// Public upstream text plus the space's own answers, read by occupation or Agent.
|
|
128
130
|
read_occupation_kit: UNSCOPED,
|
|
129
131
|
explain_settings: UNSCOPED,
|
|
@@ -8,6 +8,9 @@ import { openFormattedDatabase, sqliteFormat } from '../../packages/roundtable/s
|
|
|
8
8
|
// it relayed (rec#80), the person's words and the message they were found in.
|
|
9
9
|
// One row per call, never updated or deleted, so the person reads back
|
|
10
10
|
// exactly what happened in their name.
|
|
11
|
+
// The log's file in a data directory.
|
|
12
|
+
export const DELEGATION_LOG_FILE = 'agent-delegation.sqlite';
|
|
13
|
+
|
|
11
14
|
export const AGENT_DELEGATION_FORMAT = sqliteFormat({
|
|
12
15
|
store: 'agent-delegation',
|
|
13
16
|
schema: `
|
|
@@ -51,11 +54,22 @@ export class DelegatedOperationLog {
|
|
|
51
54
|
|
|
52
55
|
// Newest first.
|
|
53
56
|
recent(limit) {
|
|
54
|
-
if (
|
|
57
|
+
if (this.#missing()) return [];
|
|
55
58
|
return this.db.prepare('SELECT * FROM delegated_operations ORDER BY at DESC, rowid DESC LIMIT ?').all(limit)
|
|
56
59
|
.map(operationView);
|
|
57
60
|
}
|
|
58
61
|
|
|
62
|
+
// How many changes made for the person succeeded in [from, to) (ISO instants).
|
|
63
|
+
succeededBetween(from, to) {
|
|
64
|
+
if (this.#missing()) return 0;
|
|
65
|
+
return this.db.prepare(`SELECT COUNT(*) AS count FROM delegated_operations
|
|
66
|
+
WHERE outcome = 'succeeded' AND at >= ? AND at < ?`).get(from, to).count;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
#missing() {
|
|
70
|
+
return !this.database && this.path !== ':memory:' && !existsSync(this.path);
|
|
71
|
+
}
|
|
72
|
+
|
|
59
73
|
close() {
|
|
60
74
|
this.database?.close();
|
|
61
75
|
this.database = null;
|
|
@@ -2,7 +2,7 @@ import { join } from 'node:path';
|
|
|
2
2
|
|
|
3
3
|
import { DELEGATION_CATEGORIES, interfaceForRequest } from '../agent-tools/interface-catalog.js';
|
|
4
4
|
import { InvalidInputError } from '../app/application-error.js';
|
|
5
|
-
import { DelegatedOperationLog } from './operation-log.js';
|
|
5
|
+
import { DELEGATION_LOG_FILE, DelegatedOperationLog } from './operation-log.js';
|
|
6
6
|
import { createDelegationPolicyStore } from './policy-store.js';
|
|
7
7
|
import { agentAccessOffRefusal, categoryOffRefusal, delegableEntry, personWordsRequiredRefusal } from './refusals.js';
|
|
8
8
|
|
|
@@ -10,7 +10,6 @@ import { agentAccessOffRefusal, categoryOffRefusal, delegableEntry, personWordsR
|
|
|
10
10
|
// permissions, rec#11 D-81) and the record of each change an FLA made. The
|
|
11
11
|
// console's loopback routes and its delegation gate are the only users.
|
|
12
12
|
const DELEGATION_POLICY_FILE = 'agent-delegation-policy.json';
|
|
13
|
-
const DELEGATION_LOG_FILE = 'agent-delegation.sqlite';
|
|
14
13
|
const RECENT_LIMIT = 20;
|
|
15
14
|
|
|
16
15
|
// dataDir: the data directory; null keeps both in memory.
|
|
@@ -11,6 +11,7 @@ import { WORK_SURFACE_DEFINITIONS } from './work-surface-definitions.js';
|
|
|
11
11
|
import { DELEGATION_DEFINITIONS } from './delegation-definitions.js';
|
|
12
12
|
import { DIAGNOSTIC_DEFINITIONS } from './diagnostic-definitions.js';
|
|
13
13
|
import { OLD_DATA_DEFINITIONS } from './old-data-definitions.js';
|
|
14
|
+
import { STATEMENT_DEFINITIONS } from './statement-definitions.js';
|
|
14
15
|
import { TONBORG_QUESTION_DEFINITIONS } from './tonborg-question-definitions.js';
|
|
15
16
|
import { REPLY_ECHO_DEFINITIONS } from './reply-echo-definitions.js';
|
|
16
17
|
import { OCCUPATION_KIT_DEFINITIONS } from './occupation-kit-definitions.js';
|
|
@@ -48,6 +49,7 @@ export const GRAPH_TOOL_DEFINITIONS = [
|
|
|
48
49
|
...DELEGATION_DEFINITIONS,
|
|
49
50
|
...DIAGNOSTIC_DEFINITIONS,
|
|
50
51
|
...OLD_DATA_DEFINITIONS,
|
|
52
|
+
...STATEMENT_DEFINITIONS,
|
|
51
53
|
...OCCUPATION_KIT_DEFINITIONS,
|
|
52
54
|
...TASK_PREFERENCE_DEFINITIONS,
|
|
53
55
|
...TASK_ENTRY_DEFINITIONS,
|
|
@@ -13,6 +13,7 @@ import { WORK_SURFACE_HANDLERS } from '../work-surfaces/agent-tools.js';
|
|
|
13
13
|
import { DELEGATION_HANDLERS } from '../agent-delegation/agent-tool.js';
|
|
14
14
|
import { DIAGNOSTIC_HANDLERS } from '../diagnostics/agent-tool.js';
|
|
15
15
|
import { OLD_DATA_HANDLERS } from '../old-data/agent-tools.js';
|
|
16
|
+
import { STATEMENT_HANDLERS } from '../statement/agent-tool.js';
|
|
16
17
|
import { REPLY_ECHO_HANDLERS } from '../graphiti/reply-echo-agent-tool.js';
|
|
17
18
|
import { OCCUPATION_KIT_HANDLERS } from '../occupation-plugins/agent-tools.js';
|
|
18
19
|
import { agentNamingStyleAnswer } from '../agent-naming/naming-style.js';
|
|
@@ -44,6 +45,7 @@ const HANDLERS = Object.freeze({
|
|
|
44
45
|
...DELEGATION_HANDLERS,
|
|
45
46
|
...DIAGNOSTIC_HANDLERS,
|
|
46
47
|
...OLD_DATA_HANDLERS,
|
|
48
|
+
...STATEMENT_HANDLERS,
|
|
47
49
|
...REPLY_ECHO_HANDLERS,
|
|
48
50
|
...OCCUPATION_KIT_HANDLERS,
|
|
49
51
|
control_project_agent_task_run: (app, input) => app.controlProjectAgentTaskRun({ ...input, agentInvocation: true }),
|
|
@@ -260,6 +260,7 @@ export function agentInterfaceCatalog() {
|
|
|
260
260
|
{ domain: 'delegated-actions', toolNames: ['run_delegated_action'], readRoutes: ['GET /api/agent-delegation'], guidance: 'A console change made for the person: pass the exact route of an agent_delegable, agent_delegable_off or agent_relayed entry, its params and body, and why. Refused while its category is off; then tell the person where to turn it on, never retry another way. agent_relayed entries are the person\'s own decisions (attention replies, Tonborg votes, conflict rulings, confirmations, Jefa acceptance, their profile and first-run answers): ask them in chat, then pass their exact words as personWords. FULI looks for those words in the message that began your task, their newest 5 saved messages of this session and their answers in the client\'s own question card during this task, and records the decision as theirs, relayed by you, with the quote; person_words_not_found means ask them again, never rephrase, shorten into new meaning or invent words they did not say. Every call is recorded with who, task and undo; mention the returned delegation_receipt in your reply. Their messages to FLAs stay theirs alone, and your own judgment is never relayed: record it with your own tools as agent-confirmed.' },
|
|
261
261
|
{ domain: 'occupation-kits', toolNames: ['read_occupation_kit'], readRoutes: ['GET /api/occupation-plugins', 'GET /api/project-agents/:agentId/occupation-kit'], guidance: 'Each occupation starter kit, curated from open-source collections with their license: a checklist and acceptance items quoted from the upstream, recommended Skills and MCP servers. Read it when you start work of your occupation, not every turn. When Bole recruits, show the kit and ask the person once which recommended Skills and MCP servers the new FLA uses; pass their answer as occupationKit in decide_project_agent_recruitment. Install an enabled Skill only from its url; never connect an MCP server for them (keys stay theirs). With personalProjectId, lessons and checks the person kept in that project sit on top of the kit; the upstream text is never edited.' },
|
|
262
262
|
{ domain: 'old-data', toolNames: ['read_old_data'], readRoutes: ['GET /api/old-data'], guidance: 'Backups FULI kept before a change (format backups, graph exports, settings and client configuration copies, old logs) and how much live and old data take. Read a backup\'s text files to answer from it. restorable items go back with run_delegated_action POST /api/old-data/:id/restore (settings permission; FULI restarts); a graph export only at a terminal (restoreCommand). Deleting one now is the person\'s, in Settings › 存储.' },
|
|
263
|
+
{ domain: 'compounding-statement', toolNames: ['read_compounding_statement'], readRoutes: ['GET /api/statement'], guidance: 'The person\'s 复利账单 for a window (default this local week): counts only, each with a provenance line. used and done are the Agents\' own reports, never measured outcomes or time saved; a section in unavailable could not be read now, so say so instead of guessing. Read only.' },
|
|
263
264
|
{ domain: 'session-records', toolNames: ['read_session_records'], readRoutes: ['GET /api/session-records'], guidance: 'Only the session of the calling task. Records a turn of this session made in another project are never returned, not even as a count; the person opens the console list for them.' },
|
|
264
265
|
{ domain: 'diagnostics', toolNames: ['read_diagnostic_events'], readRoutes: ['GET /api/diagnostics/events'], guidance: 'FULI\'s own runtime failures (hooks, HTTP API, Graph Provider start, MCP tools), newest first with counts by component, level and code; filter by from/to, component, level and code, page with nextCursor. An empty page is not proof of health: read truncated, sourcesUnavailable and notCovered. When FULI is down, the person or a shell runs fuli diagnostics, which reads the same files. Read only; events hold no prompts, knowledge, tokens or query values.' },
|
|
265
266
|
{ domain: 'policy-and-health', toolNames: ['get_capture_policy', 'explain_settings', 'get_project_agent_coordination_policy', 'get_graphiti_status'], readRoutes: ['GET /api/system/doctor', 'GET /api/system/npm-copies', 'GET /api/system/cli-path', 'GET /api/system/whats-new'], guidance: 'GET /api/system/whats-new answers what is new in the installed FULI version: lines.zh and lines.en (null when the release has none), releaseUrl, and notice (non-null while the console has not shown it yet; read only, never mark it seen for the person). The doctor (体检) lists what keeps FULI from working and who fixes it: fix auto items are repaired by 「自动修复」 (POST /api/system/doctor/repair, run_delegated_action with the settings permission); fix person items need the person, such as confirming a data format migration or restarting client sessions. Read only; never confirm a migration or restart a session for them. On the desktop app, GET /api/system/npm-copies lists npm installations of FULI beside it (the app already runs their data and clients); removing one is POST /api/system/npm-copies/uninstall { packageRoot } through run_delegated_action with the person’s own words, and on failure its manualCommand is what the person runs.' },
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { boundedString, integerSchema, objectSchema } from './schema.js';
|
|
2
|
+
import { MAX_WEEKS } from '../statement/compounding-statement.js';
|
|
3
|
+
|
|
4
|
+
// The person's compounding statement for their own AI (src/statement). Full
|
|
5
|
+
// profile only; chat reaches it through list_agent_interfaces/fuli_call.
|
|
6
|
+
export const STATEMENT_DEFINITIONS = [
|
|
7
|
+
{
|
|
8
|
+
name: 'read_compounding_statement',
|
|
9
|
+
title: 'READ · Compounding statement',
|
|
10
|
+
description: 'The person\'s 复利账单: counts FULI has for a window (default this local week), each with a line saying '
|
|
11
|
+
+ 'whether FULI observed it or Agents reported it. unavailable names sections that could not be read; never estimate them.',
|
|
12
|
+
inputSchema: objectSchema({
|
|
13
|
+
from: { ...boundedString(40), description: 'ISO 8601 instant with zone' },
|
|
14
|
+
to: { ...boundedString(40), description: 'ISO 8601 instant with zone' },
|
|
15
|
+
weeks: integerSchema({ minimum: 1, maximum: MAX_WEEKS })
|
|
16
|
+
})
|
|
17
|
+
}
|
|
18
|
+
];
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
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
|
+
import { DELEGATION_LOG_FILE, DelegatedOperationLog } from '../agent-delegation/operation-log.js';
|
|
25
26
|
import { createAgentAvatars } from '../agent-avatars/port.js';
|
|
26
27
|
import { createProjectChangeLog } from '../project-change-log/port.js';
|
|
27
28
|
import { createPersonProfile } from '../person-profile/port.js';
|
|
@@ -97,6 +98,9 @@ export function openLocalRuntimes(app, { runtimeConfigPath, paths, env, fetchImp
|
|
|
97
98
|
app.agentWorkflows = createAgentWorkflows({ path: join(dataDir, 'agent-workflows.sqlite') });
|
|
98
99
|
// Which knowledge the automatic recall showed and which the Agent reported using (rec#63); recall reads it as a ranking prior.
|
|
99
100
|
app.recallImpressions = new RecallImpressionsStore(join(dataDir, 'recall-impressions.sqlite'));
|
|
101
|
+
// Read here only for the compounding statement's count of changes made for the person;
|
|
102
|
+
// the console's delegation port alone records them. A missing file reads as none.
|
|
103
|
+
app.delegatedOperations = new DelegatedOperationLog(join(dataDir, DELEGATION_LOG_FILE));
|
|
100
104
|
// Each Agent's look as the person chose it (rec#11 D-89); the file is created by the first choice.
|
|
101
105
|
app.agentAvatars = createAgentAvatars({ path: join(dataDir, 'agent-avatars.sqlite') });
|
|
102
106
|
// What changed in each project's profile; the file is created by the first change.
|
|
@@ -137,6 +141,7 @@ export function closeLocalRuntimes(app) {
|
|
|
137
141
|
app.standingAssignments?.close();
|
|
138
142
|
app.agentWorkflows?.close();
|
|
139
143
|
app.recallImpressions?.close();
|
|
144
|
+
app.delegatedOperations?.close();
|
|
140
145
|
app.agentAvatars?.close();
|
|
141
146
|
app.occupationPlugins?.close();
|
|
142
147
|
app.projectChangeLog?.close();
|