fuli-context 0.25.1 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -3
- package/README.zh-CN.md +19 -4
- package/dist/web/assets/{AboutPage-Dx07_Z8u.js → AboutPage-Bp2Edkdg.js} +1 -1
- package/dist/web/assets/{AboutSectionHeading-BdhpM609.js → AboutSectionHeading-DFfY2f_Z.js} +1 -1
- package/dist/web/assets/{AgentAppsPage-5VW0uCTz.js → AgentAppsPage-CjyvPZSs.js} +1 -1
- package/dist/web/assets/{AgentAvatar-DlAQP7gm.js → AgentAvatar-w-2A3nsJ.js} +1 -1
- package/dist/web/assets/{AgentHand-FPFg9-Y1.js → AgentHand-BGGU49Jt.js} +1 -1
- package/dist/web/assets/{AgentManagement-CLFw9oV9.css → AgentManagement-Cc00RLSO.css} +1 -1
- package/dist/web/assets/{AgentManagement-UTe4I3WA.js → AgentManagement-MMGrwdD2.js} +2 -2
- package/dist/web/assets/{AgentMentionCopy-C5ExlutT.js → AgentMentionCopy-BAHZjubz.js} +1 -1
- package/dist/web/assets/{AgentName-C8mYbtKs.js → AgentName-CXlsC-4o.js} +1 -1
- package/dist/web/assets/{AgentProfilePage-DumsVHP1.css → AgentProfilePage-Ce25JSzZ.css} +1 -1
- package/dist/web/assets/{AgentProfilePage-BLeyT3By.js → AgentProfilePage-eDKbJJwY.js} +5 -5
- package/dist/web/assets/{AgentServicesPage-BXi152Xc.js → AgentServicesPage-CZwsN5U2.js} +1 -1
- package/dist/web/assets/{AppViewerPage-BR8ttEGa.js → AppViewerPage-6gWP6nAf.js} +1 -1
- package/dist/web/assets/{BackToTop-5_AQRMZl.js → BackToTop-Cs5_rV99.js} +1 -1
- package/dist/web/assets/{BoardCardFieldsMenu-Bb_Z9a4Q.js → BoardCardFieldsMenu-CvFrsIgy.js} +1 -1
- package/dist/web/assets/{BoardMoveMenu-B-f8O6cC.js → BoardMoveMenu-B5isxIcK.js} +1 -1
- package/dist/web/assets/{Breadcrumb-DtM5lZy5.js → Breadcrumb-BXTA4e-W.js} +1 -1
- package/dist/web/assets/CaptureChangePage-Ca72_PHc.js +1 -0
- package/dist/web/assets/{CopyFixPrompt-DlarhfPK.js → CopyFixPrompt-wGATZKOq.js} +1 -1
- package/dist/web/assets/{DataFormatPage-DwL4Ofc9.js → DataFormatPage-CQKkFhcH.js} +1 -1
- package/dist/web/assets/{DebugTurnPage-UpK_3ZWY.js → DebugTurnPage-CUqbuhgX.js} +1 -1
- package/dist/web/assets/{DebugTurnsPage-C0aZg5-3.js → DebugTurnsPage-HwaTG8Fa.js} +1 -1
- package/dist/web/assets/{DialogTitle-BQXOe8EK.js → DialogTitle-HYzAHbGg.js} +1 -1
- package/dist/web/assets/{EmployeeRedirectPage-BjWpXDSM.js → EmployeeRedirectPage-C2SHpAEF.js} +1 -1
- package/dist/web/assets/{EmployeeScopeDialog-Bt3ZlDyZ.js → EmployeeScopeDialog-yUCgujKT.js} +1 -1
- package/dist/web/assets/{EmployeeWorkbench-GtJIUD5G.js → EmployeeWorkbench-CbRJhkJO.js} +3 -3
- package/dist/web/assets/FieldRoot-BLcsuPMA.js +1 -0
- package/dist/web/assets/{FlaGrowth-OQtTLTng.js → FlaGrowth-DGnUPN7D.js} +1 -1
- package/dist/web/assets/{FlaOccupationKit-C-x4VrKk.js → FlaOccupationKit-DAJjSrmL.js} +1 -1
- package/dist/web/assets/{FlaTaskSheets-CoaF5CbQ.js → FlaTaskSheets-DRLgfrVC.js} +1 -1
- package/dist/web/assets/{FlasPage-CgIVOGFM.js → FlasPage-CMv2awKJ.js} +1 -1
- package/dist/web/assets/{GrowthLoading-VuVo2vLf.js → GrowthLoading-NLj2W4jj.js} +1 -1
- package/dist/web/assets/{HowtoPage-CZ3mOdLc.js → HowtoPage-CkGRrKpf.js} +1 -1
- package/dist/web/assets/InboxPage-Bv8XUdl8.css +1 -0
- package/dist/web/assets/InboxPage-DfQvtnyq.js +6 -0
- package/dist/web/assets/{KnowledgeDeleteButton-BlUnSG3b.js → KnowledgeDeleteButton-DaT-gTmm.js} +1 -1
- package/dist/web/assets/{KnowledgeHardDeleteSection-CznXBtHY.js → KnowledgeHardDeleteSection-C9d7DVLa.js} +1 -1
- package/dist/web/assets/{KnowledgeItemEditPage-DGRNkAYd.js → KnowledgeItemEditPage-BUKQK37o.js} +1 -1
- package/dist/web/assets/{KnowledgeItemSummaryCard-Co5JKBHl.js → KnowledgeItemSummaryCard-eLzjKvgN.js} +1 -1
- package/dist/web/assets/KnowledgeOrganizerPage-CiZ9JlNX.js +1 -0
- package/dist/web/assets/KnowledgePage-C3_Cvz4g.js +1 -0
- package/dist/web/assets/{KnowledgePeek-CwZVuSkf.css → KnowledgePeek-D6SeISIM.css} +1 -1
- package/dist/web/assets/KnowledgePeek-DtOOiARX.js +1 -0
- package/dist/web/assets/{KnowledgeTurnReceiptPage-Csyjimeg.js → KnowledgeTurnReceiptPage-Dne5NQ9q.js} +1 -1
- package/dist/web/assets/KnowledgeWorkspace-Cq_XYcma.js +4 -0
- package/dist/web/assets/KnowledgeWorkspace-DDg3tUb3.css +1 -0
- package/dist/web/assets/{MeAvatar-aY_q8cKs.js → MeAvatar-f6qxg9dN.js} +1 -1
- package/dist/web/assets/{MeLink-B0pNwVLa.js → MeLink-DTvFYaYE.js} +1 -1
- package/dist/web/assets/{MenuSeparator-BR-uLovR.js → MenuSeparator-CLmsZ9rj.js} +1 -1
- package/dist/web/assets/ModelSettingsPage-B38R-kBZ.css +1 -0
- package/dist/web/assets/ModelSettingsPage-COVaW4eh.js +1 -0
- package/dist/web/assets/NewSessionPanel-9yINjwyx.js +1 -0
- package/dist/web/assets/NewSessionPanel-CTdd7xpN.css +1 -0
- package/dist/web/assets/{NotFoundPage-Cr1MaPuk.js → NotFoundPage-CqevPz0_.js} +1 -1
- package/dist/web/assets/NoticeRow-D5MWTeBY.js +1 -0
- package/dist/web/assets/{OccupationsPage-CkVqZ2pz.js → OccupationsPage-BKd051j1.js} +1 -1
- package/dist/web/assets/OverviewPage-C90G_adj.js +1 -0
- package/dist/web/assets/{OverviewPage-Dr4jrXW4.css → OverviewPage-KVt4LcE-.css} +1 -1
- package/dist/web/assets/{PageColumns-DvehZlYm.js → PageColumns-Df60nEzj.js} +1 -1
- package/dist/web/assets/PageOutline-D5h1GuKt.css +1 -0
- package/dist/web/assets/PageOutline-HHUlu2x3.js +1 -0
- package/dist/web/assets/{PersonalProfilePage-TxsNr44t.js → PersonalProfilePage-DIDgG3NH.js} +1 -1
- package/dist/web/assets/PersonalProjectsPage-DwhlEpNg.js +1 -0
- package/dist/web/assets/{PinIcon-BTQsnxRY.js → PinIcon-DP-9Iisk.js} +1 -1
- package/dist/web/assets/{PopperContent-DtMksk76.js → PopperContent-DWCMeKSL.js} +1 -1
- package/dist/web/assets/{Presence-B0zMpCF4.js → Presence-Ba3jqPYx.js} +1 -1
- package/dist/web/assets/{ProfileAuthorChip-BqT9Vv65.js → ProfileAuthorChip-BKZJC_N2.js} +1 -1
- package/dist/web/assets/ProjectAgentsPage-BefVF9ZP.js +5 -0
- package/dist/web/assets/ProjectJudgmentPolicy-BHyiqKLV.css +1 -0
- package/dist/web/assets/ProjectJudgmentPolicy-BJ5sVuFI.js +2 -0
- package/dist/web/assets/{RecentNotices-vJobVOcm.js → RecentNotices-CDHGIky1.js} +1 -1
- package/dist/web/assets/{RoundtablesPage-C3dYekQ5.js → RoundtablesPage-D5Xc3yun.js} +2 -2
- package/dist/web/assets/{RovingFocusGroup-CUqyjFSs.js → RovingFocusGroup-DoGybG5V.js} +1 -1
- package/dist/web/assets/{RovingFocusItem-CyyuWXjE.js → RovingFocusItem-B455TzUI.js} +1 -1
- package/dist/web/assets/{SessionMigrationPage-DukDM0TP.js → SessionMigrationPage-BAzXqxxO.js} +1 -1
- package/dist/web/assets/{SessionRecordsPage-DZ5ZBiuS.js → SessionRecordsPage-C6U5YGSt.js} +1 -1
- package/dist/web/assets/SettingsPage-7mNL3bwe.js +1 -0
- package/dist/web/assets/SettingsPage-Cku8SoLk.css +1 -0
- package/dist/web/assets/{SharedJefaReportPage-DUY03VLS.js → SharedJefaReportPage-rH6I4cI9.js} +1 -1
- package/dist/web/assets/{TagVocabularyPage-BKLFJiSu.js → TagVocabularyPage-Brpr-Q-y.js} +1 -1
- package/dist/web/assets/{TaskBlockerClear-BxOiiuK8.js → TaskBlockerClear-BHOMZYwm.js} +1 -1
- package/dist/web/assets/TaskBlockerNotice-POmS2neR.js +1 -0
- package/dist/web/assets/{TaskReason-D5j7L8tl.js → TaskReason-RKKs4Kb5.js} +1 -1
- package/dist/web/assets/{TeamCard-CDunbIrP.js → TeamCard-8hjo1h0x.js} +1 -1
- package/dist/web/assets/{TeamCardsWidget-CUW-fPn7.js → TeamCardsWidget-DIHFUDrF.js} +1 -1
- package/dist/web/assets/{TeamIsland-CmpDmIX2.js → TeamIsland-DdhEcVOZ.js} +1 -1
- package/dist/web/assets/{Teleport-Dzdr8umQ.js → Teleport-CukHuRhz.js} +1 -1
- package/dist/web/assets/{TextField-BPhEpEv9.js → TextField-G2fJ4aFQ.js} +1 -1
- package/dist/web/assets/{TonborgDelegationSwitch-C1nkJqkJ.js → TonborgDelegationSwitch-BA3Qb8Wr.js} +1 -1
- package/dist/web/assets/{UiChip-BEQ067LV.js → UiChip-BHEJVA6L.js} +1 -1
- package/dist/web/assets/{UiChip-DulygSq8.css → UiChip-BiUmvjdz.css} +1 -1
- package/dist/web/assets/{UiDialog-JjqzOA0z.js → UiDialog-bUwGQz96.js} +1 -1
- package/dist/web/assets/{UiDisclosure-L6GEJHSw.js → UiDisclosure-B1pd8qXW.js} +1 -1
- package/dist/web/assets/UiIcon-K7OhYTSy.js +1 -0
- package/dist/web/assets/{UiIconButton-ZCBdABdM.css → UiIconButton-D3R6WwwI.css} +1 -1
- package/dist/web/assets/UiIconButton-DlLZ5_Yc.js +1 -0
- package/dist/web/assets/{UiSegmented-CIIm3KoV.js → UiSegmented-CYrTxDn1.js} +1 -1
- package/dist/web/assets/{UiWeight-D-2iZ_Kc.js → UiWeight-eAw682rH.js} +1 -1
- package/dist/web/assets/{VirtualDirectoryList-BV8KsA-Z.js → VirtualDirectoryList-BGum1GZc.js} +1 -1
- package/dist/web/assets/{VisuallyHidden-BxKxuXRF.js → VisuallyHidden-Ck6D7rq-.js} +1 -1
- package/dist/web/assets/{VisuallyHiddenInput-DD4vhlqT.js → VisuallyHiddenInput-DXWhIUlB.js} +1 -1
- package/dist/web/assets/WidgetSlot-D6vCSWaz.js +2 -0
- package/dist/web/assets/{WorkbenchListHead-B0TjHsTO.js → WorkbenchListHead-CR_fDYYr.js} +1 -1
- package/dist/web/assets/WorkbenchListPage-Zr5PW-cf.js +1 -0
- package/dist/web/assets/_plugin-vue_export-helper-BRS32yXs.js +9 -0
- package/dist/web/assets/{agent-apps-B1Je-mpY.js → agent-apps-D0eG1aMx.js} +1 -1
- package/dist/web/assets/agent-occupation-CEd3bAhb.js +1 -0
- package/dist/web/assets/{agent-pins-DxHlJ96z.js → agent-pins-OYjJQ38F.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-D3VeY6Yz.js} +1 -1
- package/dist/web/assets/{attach-closest-edge-DUc_VUVO.js → attach-closest-edge-C75rKXiz.js} +1 -1
- package/dist/web/assets/{attention-store-Bod20yM3.js → attention-store-k4mPCefZ.js} +1 -1
- package/dist/web/assets/{badge-tMy2Qr94.js → badge-B2rll-68.js} +1 -1
- package/dist/web/assets/{button-DnKFsImW.js → button-q6JhonlL.js} +1 -1
- package/dist/web/assets/{card-Ccu7HCNb.js → card-CPQiMHSu.js} +1 -1
- package/dist/web/assets/{catalog-CJUV8OJ6.js → catalog-CBPcEkXC.js} +1 -1
- package/dist/web/assets/{checkbox-D1R6kTUB.js → checkbox-C67upxzl.js} +1 -1
- package/dist/web/assets/{client-D-G2i5VU.js → client-KFFphxpK.js} +1 -1
- package/dist/web/assets/{client-links-store-UgmraFBZ.js → client-links-store-Cw9c8MWc.js} +1 -1
- package/dist/web/assets/{combobox-C7QLYGzs.js → combobox-yHRJ-zN-.js} +1 -1
- package/dist/web/assets/console-BCR2S3AF.js +1 -0
- package/dist/web/assets/conversation-launcher-settings-28CqC1Gn.js +1 -0
- package/dist/web/assets/{copy-mention-C0EJhDPy.js → copy-mention-C4Nos381.js} +1 -1
- package/dist/web/assets/{dialog-Bbq93W68.js → dialog-Cjoy4nsv.js} +1 -1
- package/dist/web/assets/{dist-PpsW5ZE3.js → dist-CaVgk2QB.js} +1 -1
- package/dist/web/assets/{dist-Dd8yFhv6.js → dist-D73EXNtz.js} +1 -1
- package/dist/web/assets/{dropdown-menu-1fGUL0V3.js → dropdown-menu-Dto6hjoc.js} +1 -1
- package/dist/web/assets/{field-DjVv_wIS.js → field-BaUOZtN5.js} +1 -1
- package/dist/web/assets/{format-bytes-BKq_E0Hs.js → format-bytes-D5eCtdg1.js} +1 -1
- package/dist/web/assets/{hover-card-BO-929hq.js → hover-card-Bg0dulGq.js} +1 -1
- package/dist/web/assets/index-B-aRUs9w.js +24 -0
- package/dist/web/assets/index-HRZACEmh.css +1 -0
- package/dist/web/assets/{input-DmwRmYO2.js → input-Dxh25T4M.js} +1 -1
- package/dist/web/assets/{label-BvwPUTS4.js → label-CbrduZla.js} +1 -1
- package/dist/web/assets/label-table-_YAtPkRI.js +1 -0
- package/dist/web/assets/{model-Tmn6HvL-.js → model--lR9icA_.js} +1 -1
- package/dist/web/assets/{model-DpkZUZUL.js → model-Bgh75q3j.js} +1 -1
- package/dist/web/assets/model-Big7Ppeu.js +1 -0
- package/dist/web/assets/{model-BF_ZMPLi.js → model-Blk5Wgg2.js} +1 -1
- package/dist/web/assets/{model-0TZRbkN2.js → model-CWMP5GOL.js} +1 -1
- package/dist/web/assets/{model-y7OUvtKz.js → model-D4DkvMH-.js} +1 -1
- package/dist/web/assets/{model-CaR7VPg7.js → model-DcsCYhXk.js} +1 -1
- package/dist/web/assets/model-ZwOxwk2m.js +3 -0
- package/dist/web/assets/{model-Dfe81jZT.js → model-jC3F-J2F.js} +1 -1
- package/dist/web/assets/{motion-mAmbRj_M.js → motion-BL3lek9c.js} +1 -1
- package/dist/web/assets/{motion-C1fZrqmI.js → motion-_MepnmMC.js} +1 -1
- package/dist/web/assets/{motion-preference-Dz9S1bZa.js → motion-preference-D3UMHojT.js} +1 -1
- package/dist/web/assets/{occupation-catalog-_SnxxRbK.js → occupation-catalog-BeJ2O9nm.js} +1 -1
- package/dist/web/assets/{occupation-kits-DFC6Auuc.js → occupation-kits-Bkiu6MzD.js} +1 -1
- package/dist/web/assets/{option-DC8frdbr.js → option-Crs2MA88.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-Bz5r7A_Q.js} +1 -1
- package/dist/web/assets/{page-title-Cm9u_qw1.js → page-title-KYZApNys.js} +1 -1
- package/dist/web/assets/{person-profile-BH2AzOfw.js → person-profile-mhLxWtq7.js} +1 -1
- package/dist/web/assets/{popover-DW__YCSE.js → popover-CMahoDLo.js} +1 -1
- package/dist/web/assets/popup-host-DKN99Od3.js +1 -0
- package/dist/web/assets/{profile-model-DtISOJ-X.js → profile-model-DWutKuCZ.js} +1 -1
- package/dist/web/assets/{project-board-layout-CTM8kAgq.js → project-board-layout-CWMHQuUA.js} +1 -1
- package/dist/web/assets/{project-capture-B3pNhpFF.js → project-capture-CebFSnn0.js} +1 -1
- package/dist/web/assets/{project-origin-BO8Ngccf.js → project-origin-BnUVE0be.js} +1 -1
- package/dist/web/assets/{quick-edit-api-B169r5Qb.js → quick-edit-api-YwzoODMc.js} +1 -1
- package/dist/web/assets/{radio-group-DqA46cXQ.js → radio-group-vRt8y8mF.js} +1 -1
- package/dist/web/assets/review-api-WhNB3ppo.js +1 -0
- package/dist/web/assets/{review-list-BbV-Mle7.js → review-list-_PN7ljSY.js} +1 -1
- package/dist/web/assets/review-store-CobX9No6.js +1 -0
- package/dist/web/assets/{role-names-By0xdfTn.js → role-names-wD9l8uz5.js} +1 -1
- package/dist/web/assets/{roundtable-live-u9qUU6aA.js → roundtable-live-Dm4Vwo75.js} +1 -1
- package/dist/web/assets/{runtime-dom.esm-bundler-DhFy4Djs.js → runtime-dom.esm-bundler-DzfwnSj8.js} +1 -1
- package/dist/web/assets/{select-TqPBladU.js → select-B9mVptgx.js} +1 -1
- package/dist/web/assets/{session-launch-offers-CtQeY4Qk.js → session-launch-offers-C9UkoKUJ.js} +1 -1
- package/dist/web/assets/{settings-autosave-C7vW3_SP.js → settings-autosave-L0zSXnBO.js} +1 -1
- package/dist/web/assets/{npm-copies-GRyMAduA.css → settings-tabs-C9VDs91j.css} +1 -1
- package/dist/web/assets/settings-tabs-DTbgqX8g.js +1 -0
- package/dist/web/assets/{shared-report-DQBSigHB.js → shared-report-0FO_y0sa.js} +3 -3
- package/dist/web/assets/source-adapters-r-NIqO77.js +1 -0
- package/dist/web/assets/{switch-D7w_0h3m.js → switch-BCzrGc4W.js} +1 -1
- package/dist/web/assets/{tabs-DR8k0PN9.js → tabs-CB38D8N0.js} +1 -1
- package/dist/web/assets/{task-card-fields-X1ZYCm_j.js → task-card-fields-B1z1PmTT.js} +1 -1
- package/dist/web/assets/task-evidence-DydhKn9x.js +1 -0
- package/dist/web/assets/{task-labels-LuXoQhF9.js → task-labels-DTc5OuFF.js} +1 -1
- package/dist/web/assets/{task-reason-ChpbGtyx.js → task-reason-CneTZWRv.js} +1 -1
- package/dist/web/assets/{team-sheets-DYCQqa8I.js → team-sheets-CUt3Vp2s.js} +1 -1
- package/dist/web/assets/{textarea-D53VYanK.js → textarea-DJ0ucCir.js} +1 -1
- package/dist/web/assets/{ui-DmNbL8MW.js → ui-M_UKzb_A.js} +1 -1
- package/dist/web/assets/{useAgentRecords-Hy9nqMs7.js → useAgentRecords-CwkwZy8H.js} +1 -1
- package/dist/web/assets/{useAgentWorkSummary-mloD4p12.js → useAgentWorkSummary-DoiCqME7.js} +1 -1
- package/dist/web/assets/{useApi-CROJJdhE-DnUGUb8O.js → useApi-CROJJdhE-CenjhnR5.js} +1 -1
- package/dist/web/assets/{useClipboardCopy-BTuQMeWI.js → useClipboardCopy-Ba86PzjA.js} +1 -1
- package/dist/web/assets/{useFocusReturn-4hUmSzj9.js → useFocusReturn-B0ErBkt_.js} +1 -1
- package/dist/web/assets/{useForwardExpose-BDmW7q7u.js → useForwardExpose-DJ6fcpI2.js} +1 -1
- package/dist/web/assets/{useForwardPropsEmits-BzT2luD4.js → useForwardPropsEmits-D1vvIUcB.js} +1 -1
- package/dist/web/assets/useForwardScopeId-CoSQtoUU.js +1 -0
- package/dist/web/assets/{useKnowledgeConfirm-L8wnJCuX.js → useKnowledgeConfirm-781LUhoU.js} +1 -1
- package/dist/web/assets/{useKnowledgeItemPeek-C_huXt6E.js → useKnowledgeItemPeek-CnuCvJKQ.js} +1 -1
- package/dist/web/assets/{useMinimumLoadingDisplay-Dkl8NQru.js → useMinimumLoadingDisplay-DCC9EfQ9.js} +1 -1
- package/dist/web/assets/{usePageTools-CbDOdIrg.js → usePageTools-BaB021q0.js} +1 -1
- package/dist/web/assets/usePrimitiveElement-iRKqOVuY.js +1 -0
- package/dist/web/assets/{useProjectAgentRoster-BBmRvcgr.js → useProjectAgentRoster-M3wbWpS-.js} +1 -1
- package/dist/web/assets/{useRoutePeek-CRbCDqsm.js → useRoutePeek-CYg5JyYt.js} +1 -1
- package/dist/web/assets/useTeamPeople-CPC62La3.js +1 -0
- package/dist/web/assets/{useTeamWork-CXEQwF4n.js → useTeamWork-Dql3_qLV.js} +1 -1
- package/dist/web/assets/{useTypeahead-CVYuxPOD.js → useTypeahead-DYb5kVkH.js} +1 -1
- package/dist/web/assets/{utils-BnrWDlfm.js → utils-B7sUn8rD.js} +1 -1
- package/dist/web/assets/{utils-BsGjKHV8.js → utils-Cli0RsEd.js} +1 -1
- package/dist/web/assets/{verification-DbCo_dnY.js → verification-DY7kllTI.js} +1 -1
- package/dist/web/assets/version-CBgUEmnM.js +1 -0
- package/dist/web/assets/{vue-router-D4_ms6om.js → vue-router-ab7kABlJ.js} +1 -1
- package/dist/web/index.html +82 -86
- package/docs/agent-conversations-and-collaboration.md +6 -0
- package/docs/agent-interface-architecture.md +4 -1
- package/docs/agent-roundtable.md +8 -2
- package/docs/client-connections.md +33 -5
- package/docs/employee-agents.md +1 -1
- package/docs/external-knowledge-architecture.md +8 -3
- package/docs/judgment-and-autonomy.md +6 -4
- package/docs/project-agent-memory.md +12 -1
- package/graph-provider/fuli_graph/app.py +12 -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 +0 -1
- package/graph-provider/fuli_graph/knowledge_index_scan.py +13 -6
- package/graph-provider/fuli_graph/knowledge_search.py +111 -45
- package/graph-provider/fuli_graph/knowledge_semantic.py +9 -0
- 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 +1 -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/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 +0 -27
- package/graph-provider/fuli_graph/project_agent_task_models.py +0 -18
- 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_recruitment.py +1 -61
- 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_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 +2 -2
- package/package.json +1 -2
- package/packages/roundtable/src/agents/codex/wake.js +25 -2
- package/packages/roundtable/src/agents/session-log.js +29 -7
- package/packages/roundtable/src/host.js +3 -0
- package/packages/roundtable/src/roundtable/delivery-state.js +1 -1
- 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 +198 -53
- package/packages/roundtable/src/roundtable/stand-in.js +64 -0
- package/packages/roundtable/src/roundtable/store.js +34 -23
- package/packages/roundtable/src/roundtable/wake-claim-release.js +88 -0
- package/packages/roundtable/src/roundtable/wake-ladder.js +63 -0
- package/packages/roundtable/src/roundtable/wake.js +10 -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 +39 -0
- 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 +6 -23
- package/skills/operating-fuli/SKILL.md +36 -8
- package/skills/operating-fuli/references/workflow-recipes.md +3 -2
- package/src/agent-apps/host-tools/catalog.js +2 -25
- 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/tools.js +2 -2
- 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 +5 -43
- package/src/agent-tools/interface-catalog.js +11 -15
- package/src/agent-tools/interface-definitions.js +0 -7
- 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 +0 -1
- package/src/agent-tools/project-agent-tool-definitions.js +1 -17
- package/src/agent-tools/project-organizing-definitions.js +31 -0
- package/src/agent-tools/project-space-definitions.js +4 -83
- package/src/agent-tools/retired-tools.js +37 -0
- 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 +3 -11
- 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 +19 -4
- package/src/agents/jsonl-tail.js +35 -0
- package/src/agents/lifecycle-message.js +15 -4
- 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 +8 -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 +1 -1
- package/src/conversations/person-words.js +0 -5
- 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/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/federated-application.js +11 -132
- package/src/graphiti/first-run-guide.js +25 -4
- 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 +13 -2
- 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-workflows.js +0 -16
- package/src/graphiti/provider-client.js +26 -167
- package/src/graphiti/reply-echo-group.js +7 -6
- package/src/graphiti/roundtable-host.js +5 -0
- package/src/graphiti/session-knowledge-capture.js +5 -31
- package/src/graphiti/task-entry-owner-change.js +66 -0
- package/src/graphiti/task-entry-preferences.js +16 -4
- package/src/graphiti/task-entry-project-scope.js +5 -1
- package/src/graphiti/task-knowledge-checkpoint.js +30 -14
- package/src/graphiti/topic-proposals.js +31 -8
- package/src/graphiti/topic-team-handoff.js +121 -0
- package/src/graphiti/workflow-learning.js +0 -25
- package/src/graphiti/workspace-provider-client.js +4 -50
- package/src/http/api-router.js +15 -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/judgment/acceptance.js +2 -2
- package/src/judgment/agent-view.js +8 -8
- package/src/judgment/backend.js +8 -2
- package/src/judgment/conversation.js +75 -69
- package/src/judgment/engine.js +33 -36
- package/src/judgment/explain-method.js +8 -7
- package/src/judgment/http.js +3 -1
- package/src/judgment/question-options.js +117 -74
- package/src/judgment/question-tools.js +54 -34
- package/src/judgment/review-delegation.js +16 -3
- package/src/judgment/review-prompt.js +29 -33
- package/src/judgment/routing.js +4 -3
- package/src/judgment/service.js +50 -8
- 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 +12 -32
- package/src/mcp/direct-call.js +0 -2
- package/src/mcp/preference-delivery.js +4 -2
- package/src/mcp/provider-task-context-registry.js +14 -0
- package/src/mcp/session-id.js +1 -33
- package/src/mcp/tool-annotations.js +3 -44
- 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 +17 -4
- package/src/model-backends/port.js +10 -4
- package/src/model-backends/runtime.js +6 -13
- package/src/model-backends/secret-store.js +2 -20
- package/src/native-runtime/runtime.js +13 -2
- package/src/presence/windows-helper-pin.js +1 -1
- package/src/project-organizing/agent-tool.js +65 -0
- package/src/project-organizing/model-tiers.js +31 -0
- package/src/project-organizing/port.js +130 -0
- package/src/server.js +22 -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/whats-new/lines/0.25.2.json +13 -0
- package/src/whats-new/lines/0.27.0.json +13 -0
- 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/FieldRoot-DRf4wM5x.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/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/OverviewPage-BkJ17OYv.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/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-CWGk0XZ_.js +0 -1
- package/dist/web/assets/SettingsPage-Cj3pEWcd.css +0 -1
- package/dist/web/assets/TaskBlockerNotice-iUiD3BuZ.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/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-DF0TcfPY.css +0 -1
- package/dist/web/assets/index-RWEx1M91.js +0 -24
- 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/source-adapters-DPJzumzC.js +0 -1
- package/dist/web/assets/task-evidence-DIbw2U42.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-Ci3l8Vnb.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
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { CLIENT_LABELS } from './delivery-state.js';
|
|
2
|
+
|
|
3
|
+
// The ladder's last tier (wake-ladder.js, rec#109): no session of the recipient
|
|
4
|
+
// could be brought in, so the sender's own session takes it on as a labelled
|
|
5
|
+
// 「代入」 (stand-in). It grants nothing: the session reads only the recipient's
|
|
6
|
+
// shareable index (the same one a `#FLG 一起看` session reads), and writes only
|
|
7
|
+
// to the roundtable: the stand-in's answer, recorded as the recipient's reply
|
|
8
|
+
// with the real executor, and a handback the recipient itself reads at its next
|
|
9
|
+
// task. Each FLA's own checkpoint keeps only its own work.
|
|
10
|
+
|
|
11
|
+
const STAND_IN_VIA = 'stand_in';
|
|
12
|
+
// The executor's model is what the client runs; FULI does not see it, and never guesses.
|
|
13
|
+
const UNKNOWN_MODEL = '-';
|
|
14
|
+
|
|
15
|
+
const STAND_IN_GUIDANCE = 'No session of this FLA could be brought in (see ladder), so this session stands in for it as 「代入」. '
|
|
16
|
+
+ 'Show the present line once. Prefix everything the stand-in says with speaker. Read only standIn.scope and the stand-in\'s own items on demand; '
|
|
17
|
+
+ 'never put your own private memory into its answer or its context into yours. Your checkpoint records only your own work. '
|
|
18
|
+
+ 'When it is done, call reply_agent_message(messageId, body = its increment: what it did, conclusions, blockers): FULI records that as its stand-in reply '
|
|
19
|
+
+ 'and hands it to the FLA for its next task. End the reply with standIn.receipt.markdown.';
|
|
20
|
+
|
|
21
|
+
export async function enterStandIn({ host, store, thread, ask, target, from, projectId, reason }) {
|
|
22
|
+
store.updateMessage(ask.id, { status: 'stand_in', error: reason, toClient: from.client, toSession: from.session });
|
|
23
|
+
let scope = null, scopeUnavailable = null;
|
|
24
|
+
try {
|
|
25
|
+
scope = await host.standInScope?.({ agentId: target.agentId, name: target.name, occupation: target.occupation,
|
|
26
|
+
projectId, text: ask.body, client: from.client, sessionId: from.session }) ?? null;
|
|
27
|
+
} catch (error) { scopeUnavailable = error.code ?? 'scope_unavailable'; }
|
|
28
|
+
const executor = { client: from.client, session: from.session, model: UNKNOWN_MODEL };
|
|
29
|
+
return { status: 'stand_in', threadId: thread.id, messageId: ask.id, reason,
|
|
30
|
+
recipient: { agentId: target.agentId, name: target.name },
|
|
31
|
+
standIn: {
|
|
32
|
+
present: `在场:${from.name} & ${target.name}(代入)`,
|
|
33
|
+
speaker: `【${target.name} · 代入】`,
|
|
34
|
+
...(scope ? { scope } : {}), ...(scopeUnavailable ? { scopeUnavailable } : {}),
|
|
35
|
+
receipt: { identity: { agentId: target.agentId, name: target.name }, mode: STAND_IN_VIA, executor,
|
|
36
|
+
markdown: `代入:${target.name}(实际执行:${clientName(from.client)} 本会话,模型 ${UNKNOWN_MODEL};不是 ${target.name} 自己的客户端)` },
|
|
37
|
+
guidance: STAND_IN_GUIDANCE } };
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// The stand-in's answer, given by the session that stood in: the recipient's
|
|
41
|
+
// reply (the asker wrote it, so nothing waits in the asker's inbox) and the
|
|
42
|
+
// recipient's handback. Both name the real client and session.
|
|
43
|
+
export function recordStandInReply({ store, ask, executor, body, idFactory }) {
|
|
44
|
+
const via = `${executor.client}:${STAND_IN_VIA}`;
|
|
45
|
+
store.updateMessage(ask.id, { status: 'answered', via });
|
|
46
|
+
const recipient = { agentId: ask.to_agent, name: ask.to_name };
|
|
47
|
+
store.appendMessage(ask.thread_id, { id: idFactory(), kind: 'reply', body, status: 'sent', inReplyTo: ask.id, via,
|
|
48
|
+
from: { ...recipient, client: executor.client, session: executor.session },
|
|
49
|
+
to: { agentId: ask.from_agent, name: ask.from_name, client: ask.from_client, session: ask.from_session } });
|
|
50
|
+
store.appendMessage(ask.thread_id, { id: idFactory(), kind: 'handback', body, status: 'sent', inReplyTo: ask.id, via,
|
|
51
|
+
from: { agentId: ask.from_agent, name: ask.from_name, client: executor.client, session: executor.session },
|
|
52
|
+
to: recipient, targetProjectId: ask.target_project_id, delivery: 'pending' });
|
|
53
|
+
return { status: 'sent', threadId: ask.thread_id, standIn: true };
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// What get_agent_message_status says about an ask a session stands in for.
|
|
57
|
+
export function standInState(ask) {
|
|
58
|
+
return { delivery: STAND_IN_VIA, guidance: `${ask.from_name}'s ${clientName(ask.to_client)} session is standing in for ${ask.to_name} (代入). `
|
|
59
|
+
+ `${ask.to_name} also sees it in its inbox and may answer first; the stand-in answers with reply_agent_message.` };
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function clientName(client) {
|
|
63
|
+
return CLIENT_LABELS[client] ?? client;
|
|
64
|
+
}
|
|
@@ -50,22 +50,22 @@ export const ROUNDTABLE_FORMAT = sqliteFormat({
|
|
|
50
50
|
id: 'roundtable/6-reply-delivery', to: 6, kind: 'add-columns', table: 'messages',
|
|
51
51
|
summary: 'whether each reply reached the Agent that asked, and through which tool',
|
|
52
52
|
columns: { delivery_status: 'TEXT', delivered_via: 'TEXT', delivered_at: 'TEXT' }
|
|
53
|
+
}, {
|
|
54
|
+
// The process a claim started, so a claim its console lost is released only
|
|
55
|
+
// once that process is gone (wake-claim-release.js). Older claims carry none.
|
|
56
|
+
id: 'roundtable/7-wake-process', to: 7, kind: 'add-columns', table: 'messages',
|
|
57
|
+
summary: 'which process each roundtable wake started, so a lost wake is released only after it ended',
|
|
58
|
+
columns: { wake_process_evidence: 'TEXT', wake_pid: 'TEXT', wake_pid_identity: 'TEXT' }
|
|
53
59
|
}],
|
|
54
60
|
pragmas: 'PRAGMA journal_mode = WAL;'
|
|
55
61
|
});
|
|
56
62
|
|
|
57
|
-
// The longest wake waits 15 minutes for its answer. A claim still active an hour
|
|
58
|
-
// later has no wake behind it: the console restarted or crashed mid-wake. It
|
|
59
|
-
// stops blocking the Agent; a run whose exit is unconfirmed stays held.
|
|
60
|
-
export const WAKE_CLAIM_TTL_MS = 60 * 60 * 1000;
|
|
61
|
-
|
|
62
63
|
// Every Agent-to-Agent exchange is kept as a thread of messages so people can
|
|
63
64
|
// see who talked to whom, through which client, and what was said. The file
|
|
64
65
|
// is shared by the console and every client's MCP process.
|
|
65
66
|
export function createRoundtableStore(path = ':memory:', { clock = () => new Date() } = {}) {
|
|
66
67
|
const database = openFormattedDatabase(path, ROUNDTABLE_FORMAT);
|
|
67
68
|
const now = () => clock().toISOString();
|
|
68
|
-
const claimCutoff = () => new Date(clock().getTime() - WAKE_CLAIM_TTL_MS).toISOString();
|
|
69
69
|
const chat = createChatStore(database, path);
|
|
70
70
|
const attention = createAttentionInboxStore(database, chat);
|
|
71
71
|
const discussions = createGroupDiscussionStore(database, chat);
|
|
@@ -162,12 +162,11 @@ export function createRoundtableStore(path = ':memory:', { clock = () => new Dat
|
|
|
162
162
|
claimExecution(spaceId, agentId, askId, { chatWakeChatId = null } = {}) {
|
|
163
163
|
return transaction(() => {
|
|
164
164
|
if (chatWakeChatId && chat.waiting(spaceId, `local:${agentId}`, chatWakeChatId)) return { claimed: false, reason: 'chat_waiting' };
|
|
165
|
-
this.expireStaleClaims(spaceId, agentId);
|
|
166
165
|
const state = this.executionState(spaceId, agentId, askId);
|
|
167
166
|
if (state.held) return { claimed: false, reason: 'cleanup_unconfirmed' };
|
|
168
167
|
if (state.busy) return { claimed: false, reason: 'execution_claimed', blockedBy: state.claim };
|
|
169
|
-
const claimed = database.prepare(`UPDATE messages SET execution_claim = 'active', execution_claimed_at =
|
|
170
|
-
WHERE id = ? AND execution_claim IS NULL`).run(now(), askId).changes === 1;
|
|
168
|
+
const claimed = database.prepare(`UPDATE messages SET execution_claim = 'active', execution_claimed_at = ?,
|
|
169
|
+
wake_process_evidence = '1' WHERE id = ? AND execution_claim IS NULL`).run(now(), askId).changes === 1;
|
|
171
170
|
return claimed ? { claimed: true } : { claimed: false, reason: 'execution_claimed' };
|
|
172
171
|
});
|
|
173
172
|
},
|
|
@@ -178,21 +177,31 @@ export function createRoundtableStore(path = ':memory:', { clock = () => new Dat
|
|
|
178
177
|
(m.execution_claim='active' OR (m.cleanup_status='unconfirmed' AND m.cleanup_released_at IS NULL))
|
|
179
178
|
ORDER BY m.execution_claimed_at`)
|
|
180
179
|
.all(spaceId, agentId, exceptAskId);
|
|
181
|
-
const
|
|
182
|
-
const active = blocking.find(row => row.execution_claim === 'active' && row.execution_claimed_at >= cutoff);
|
|
180
|
+
const active = blocking.find(row => row.execution_claim === 'active');
|
|
183
181
|
// The earlier ask that holds the Agent, so a refused sender can name what it waits on.
|
|
184
182
|
return { busy: Boolean(active), claim: active ? { messageId: active.id, since: active.execution_claimed_at } : null,
|
|
185
183
|
held: blocking.some(row => row.cleanup_status === 'unconfirmed' && row.cleanup_released_at === null) };
|
|
186
184
|
},
|
|
187
|
-
//
|
|
188
|
-
|
|
185
|
+
// The process this claim started, recorded at spawn; its identity follows once read.
|
|
186
|
+
recordWakeProcess(askId, pid, identity = null) {
|
|
187
|
+
database.prepare(`UPDATE messages SET wake_pid = ?, wake_pid_identity = coalesce(?, wake_pid_identity)
|
|
188
|
+
WHERE id = ? AND execution_claim = 'active'`).run(String(pid), identity, askId);
|
|
189
|
+
},
|
|
190
|
+
// Active claims of this Agent made before the cutoff, with no cleanup hold.
|
|
191
|
+
claimsBefore(spaceId, agentId, cutoff) {
|
|
192
|
+
return database.prepare(`SELECT m.id, m.execution_claimed_at, m.wake_process_evidence, m.wake_pid, m.wake_pid_identity
|
|
193
|
+
FROM messages m JOIN threads t ON t.id = m.thread_id
|
|
194
|
+
WHERE t.space_id = ? AND m.to_agent = ? AND m.kind = 'ask' AND m.execution_claim = 'active'
|
|
195
|
+
AND m.execution_claimed_at < ? AND (m.cleanup_status IS NULL OR m.cleanup_status != 'unconfirmed')`)
|
|
196
|
+
.all(spaceId, agentId, cutoff);
|
|
197
|
+
},
|
|
198
|
+
// A released claim's ask goes back to the inbox, so it can be read or cancelled.
|
|
199
|
+
expireClaim(askId) {
|
|
189
200
|
const expired = database.prepare(`UPDATE messages SET execution_claim = 'expired',
|
|
190
201
|
status = CASE WHEN status = 'delivering' THEN 'queued' ELSE status END,
|
|
191
202
|
error = CASE WHEN status = 'delivering' THEN 'wake_expired' ELSE error END, updated_at = ?
|
|
192
|
-
WHERE
|
|
193
|
-
|
|
194
|
-
AND thread_id IN (SELECT id FROM threads WHERE space_id = ?)`)
|
|
195
|
-
.run(now(), agentId, claimCutoff(), spaceId).changes;
|
|
203
|
+
WHERE id = ? AND execution_claim = 'active' AND (cleanup_status IS NULL OR cleanup_status != 'unconfirmed')`)
|
|
204
|
+
.run(now(), askId).changes === 1;
|
|
196
205
|
if (expired) chat.publishChanges();
|
|
197
206
|
return expired;
|
|
198
207
|
},
|
|
@@ -219,18 +228,20 @@ export function createRoundtableStore(path = ':memory:', { clock = () => new Dat
|
|
|
219
228
|
messages(threadId) {
|
|
220
229
|
return database.prepare('SELECT * FROM messages WHERE thread_id = ? ORDER BY seq').all(threadId);
|
|
221
230
|
},
|
|
222
|
-
// Questions waiting for this Agent that no delivery is currently answering
|
|
231
|
+
// Questions waiting for this Agent that no delivery is currently answering
|
|
232
|
+
// (one a sender's session stands in for still waits: the Agent may answer first).
|
|
223
233
|
pendingFor(spaceId, agentId, limit = 5) {
|
|
224
234
|
return database.prepare(`SELECT m.* FROM messages m JOIN threads t ON t.id = m.thread_id
|
|
225
|
-
WHERE t.space_id = ? AND m.to_agent = ? AND m.kind = 'ask' AND m.status
|
|
235
|
+
WHERE t.space_id = ? AND m.to_agent = ? AND m.kind = 'ask' AND m.status IN ('queued', 'stand_in')
|
|
226
236
|
ORDER BY m.created_at LIMIT ?`).all(spaceId, agentId, limit);
|
|
227
237
|
},
|
|
228
|
-
// Replies addressed to this Agent in one project, in
|
|
229
|
-
|
|
238
|
+
// Replies (or stand-in handbacks) addressed to this Agent in one project, in
|
|
239
|
+
// one of the given delivery states. A handback names its project itself.
|
|
240
|
+
repliesFor(spaceId, agentId, projectId, states, limit, kind = 'reply') {
|
|
230
241
|
return database.prepare(`SELECT m.*, t.subject FROM messages m JOIN threads t ON t.id = m.thread_id
|
|
231
|
-
WHERE t.space_id = ? AND t.project_id = ? AND m.to_agent = ? AND m.kind =
|
|
242
|
+
WHERE t.space_id = ? AND coalesce(m.target_project_id, t.project_id) = ? AND m.to_agent = ? AND m.kind = ?
|
|
232
243
|
AND m.delivery_status IN (${states.map(() => '?').join(',')})
|
|
233
|
-
ORDER BY m.created_at, m.seq LIMIT ?`).all(spaceId, projectId, agentId, ...states, limit);
|
|
244
|
+
ORDER BY m.created_at, m.seq LIMIT ?`).all(spaceId, projectId, agentId, kind, ...states, limit);
|
|
234
245
|
},
|
|
235
246
|
// Compare-and-set: true only for the one call that moved the reply on.
|
|
236
247
|
markReplyDelivery(id, from, to, via) {
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// A claim stays active until its wake ends (store.finishExecution). When the
|
|
2
|
+
// console restarts or crashes mid-wake nothing ends it, and the Agent could
|
|
3
|
+
// never be woken again (rec#97). A claim old enough that no live console still
|
|
4
|
+
// waits on it is released only on evidence that no process of it is running:
|
|
5
|
+
// the recorded process is gone, or its PID now belongs to another process, and
|
|
6
|
+
// on POSIX no member of its process group is left (the woken client leads its
|
|
7
|
+
// own group, wake.js; descendants outlive their leader). A process still
|
|
8
|
+
// running, a group that still answers, or an OS that cannot be asked keeps the
|
|
9
|
+
// hold: a woken client can outlive its console. Windows keeps no group, so the
|
|
10
|
+
// recorded process alone is checked there.
|
|
11
|
+
// A claim with no PID (its console was lost between the claim and the spawn),
|
|
12
|
+
// a claim written before processes were recorded, and a reused PID whose group
|
|
13
|
+
// still answers cannot be proven either way; they are released a day after
|
|
14
|
+
// they began, long after their delegation expired.
|
|
15
|
+
|
|
16
|
+
// The longest wake waits 15 minutes and is then stopped; an hour leaves margin.
|
|
17
|
+
export const WAKE_CLAIM_TTL_MS = 60 * 60 * 1000;
|
|
18
|
+
export const LEGACY_CLAIM_TTL_MS = 24 * 60 * 60 * 1000;
|
|
19
|
+
// A claim whose process is still running is asked about again at most this often.
|
|
20
|
+
const RECHECK_MS = 60 * 1000;
|
|
21
|
+
|
|
22
|
+
// inspectProcess(pids) -> Map<pid, { identity }> of the PIDs that exist, or null
|
|
23
|
+
// when the OS could not be asked (agent-services/process-identity.js).
|
|
24
|
+
// groupAlive(pgid) -> true while any process of the group exists, false when
|
|
25
|
+
// none does, null when the OS could not tell.
|
|
26
|
+
export function createWakeClaimRelease({ store, inspectProcess = async () => null, groupAlive = processGroupAlive,
|
|
27
|
+
now = Date.now }) {
|
|
28
|
+
const checked = new Map();
|
|
29
|
+
|
|
30
|
+
async function released(claim) {
|
|
31
|
+
const age = now() - Date.parse(claim.execution_claimed_at);
|
|
32
|
+
const unproven = age >= LEGACY_CLAIM_TTL_MS;
|
|
33
|
+
if (claim.wake_process_evidence !== '1' || !claim.wake_pid) return unproven;
|
|
34
|
+
const pid = Number(claim.wake_pid);
|
|
35
|
+
const running = await inspectProcess([pid]).catch(() => null);
|
|
36
|
+
if (!running) return false;
|
|
37
|
+
const current = running.get(pid);
|
|
38
|
+
const reused = Boolean(current && claim.wake_pid_identity && current.identity
|
|
39
|
+
&& String(current.identity) !== claim.wake_pid_identity);
|
|
40
|
+
if (current && !reused) return false;
|
|
41
|
+
const group = groupAlive(pid);
|
|
42
|
+
if (group === false) return true;
|
|
43
|
+
// A group that still answers may be the woken client's descendants, or the
|
|
44
|
+
// reused PID's own group: only the second is left to the day's limit.
|
|
45
|
+
return group === true && reused && unproven;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Releases what the evidence allows; the number of claims released.
|
|
49
|
+
async function release(spaceId, agentId) {
|
|
50
|
+
// A remote run is ended by its device's answer (applyRemote); this device sees no process of it.
|
|
51
|
+
if (String(agentId).startsWith('peer:')) return 0;
|
|
52
|
+
let count = 0;
|
|
53
|
+
for (const claim of store.claimsBefore(spaceId, agentId, new Date(now() - WAKE_CLAIM_TTL_MS).toISOString())) {
|
|
54
|
+
if (now() - (checked.get(claim.id) ?? -Infinity) < RECHECK_MS) continue;
|
|
55
|
+
checked.set(claim.id, now());
|
|
56
|
+
if (await released(claim) && store.expireClaim(claim.id)) {
|
|
57
|
+
count += 1;
|
|
58
|
+
checked.delete(claim.id);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return count;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Recorded synchronously at spawn, so a console lost right after still knows the PID.
|
|
65
|
+
function recordSpawn(askId, pid) {
|
|
66
|
+
if (!Number.isSafeInteger(pid) || pid <= 0) return;
|
|
67
|
+
store.recordWakeProcess(askId, pid);
|
|
68
|
+
void inspectProcess([pid]).then((found) => {
|
|
69
|
+
const identity = found?.get(pid)?.identity;
|
|
70
|
+
if (identity) store.recordWakeProcess(askId, pid, String(identity));
|
|
71
|
+
}).catch(() => {});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return { release, recordSpawn };
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// The woken client leads its own process group on POSIX (detached, wake.js).
|
|
78
|
+
// Signal 0 only asks whether any member exists.
|
|
79
|
+
export function processGroupAlive(pgid, { platform = process.platform, kill = process.kill } = {}) {
|
|
80
|
+
if (platform === 'win32') return false;
|
|
81
|
+
try {
|
|
82
|
+
kill(-pgid, 0);
|
|
83
|
+
return true;
|
|
84
|
+
} catch (error) {
|
|
85
|
+
if (error?.code === 'ESRCH') return false;
|
|
86
|
+
return error?.code === 'EPERM' ? true : null;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// The three ways an ask brings its recipient in, tried in order (rec#109):
|
|
2
|
+
// 1. resume — the recipient's own latest session in its client (Claude Code
|
|
3
|
+
// forks it; Codex queues behind a running turn or skips it);
|
|
4
|
+
// 2. new_session — a new session as the recipient, the sender's own client first;
|
|
5
|
+
// 3. stand_in — the sender's session takes the recipient on as a labelled
|
|
6
|
+
// 「代入」: same model, the recipient's shareable scope only.
|
|
7
|
+
// Each step records what it tried and why it did not answer, so the sender is
|
|
8
|
+
// never left with a bare `queued` (rec#110 item 1).
|
|
9
|
+
|
|
10
|
+
const LADDER_TIERS = Object.freeze(['resume', 'new_session', 'stand_in']);
|
|
11
|
+
|
|
12
|
+
// Why a step did not answer, in words the person reads as they are.
|
|
13
|
+
const REASONS = {
|
|
14
|
+
no_previous_session: '没有可续接的历史会话',
|
|
15
|
+
session_not_found: '本机找不到这个会话',
|
|
16
|
+
session_busy: '这个会话正在跑一轮,不插话',
|
|
17
|
+
client_unavailable: '客户端没安装或启动失败',
|
|
18
|
+
client_login_required: '客户端没登录',
|
|
19
|
+
client_not_allowed: '该 FLA 不允许在这个客户端运行',
|
|
20
|
+
no_client: '没有可启动的客户端',
|
|
21
|
+
no_working_directory: '本机不知道目标项目的目录',
|
|
22
|
+
sender_without_project: '发起方不在项目任务里,无法签发唤醒授权',
|
|
23
|
+
not_permitted: '团队规则不允许直接联系这个 FLA',
|
|
24
|
+
delegation_not_redeemed: '新会话没有以该 FLA 身份进入',
|
|
25
|
+
session_mismatch: '回答的会话不是被唤醒的那个',
|
|
26
|
+
wake_failed: '会话没有给出回答',
|
|
27
|
+
wake_timeout: '会话超时未答,可能仍在运行',
|
|
28
|
+
codex_app_failed: 'Codex 桌面端拒绝了请求',
|
|
29
|
+
waiting_in_desktop_app: '已交到桌面端会话,等待回复',
|
|
30
|
+
cancelled: '已取消'
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// Failures after which nobody may stand in: the recipient may still be
|
|
34
|
+
// running, the team rules refused it, or the sender chose not to wait.
|
|
35
|
+
const NO_STAND_IN = new Set(['wake_timeout', 'cancelled', 'not_permitted', 'execution_claimed',
|
|
36
|
+
'cleanup_unconfirmed', 'chat_waiting', 'nested_limit', 'not_waiting', 'task_context_required']);
|
|
37
|
+
|
|
38
|
+
export function createWakeLadder() {
|
|
39
|
+
const steps = [];
|
|
40
|
+
return {
|
|
41
|
+
skip(tier, { client = null, session = null, reason }) {
|
|
42
|
+
steps.push({ tier, client, session, outcome: 'skipped', reason });
|
|
43
|
+
},
|
|
44
|
+
attempt({ client, sessionId }, outcome, reason = null) {
|
|
45
|
+
steps.push({ tier: sessionId ? 'resume' : 'new_session', client, session: sessionId ?? null, outcome, reason });
|
|
46
|
+
},
|
|
47
|
+
// reached: the tier that answered or holds the ask; null when none did.
|
|
48
|
+
// Steps read in tier order (targets are planned before any runs), and a
|
|
49
|
+
// later tier passed over in planning is not said when an earlier one held.
|
|
50
|
+
view(reached) {
|
|
51
|
+
const rank = tier => LADDER_TIERS.indexOf(tier);
|
|
52
|
+
const shown = steps.map((step, order) => ({ step, order }))
|
|
53
|
+
.filter(({ step }) => reached === null || rank(step.tier) <= rank(reached))
|
|
54
|
+
.sort((a, b) => rank(a.step.tier) - rank(b.step.tier) || a.order - b.order)
|
|
55
|
+
.map(({ step }) => ({ ...step, ...(step.reason ? { why: REASONS[step.reason] ?? step.reason } : {}) }));
|
|
56
|
+
return { reached, steps: shown };
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function standInAllowed(reason) {
|
|
62
|
+
return !NO_STAND_IN.has(reason);
|
|
63
|
+
}
|
|
@@ -35,6 +35,13 @@ export function sessionWorkingDirectory(client, sessionId, { home = homedir(), e
|
|
|
35
35
|
return wakeAdapter(client)?.sessionDirectory(sessionId, { home, env }) ?? null;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
// Whether the session's client shows a turn still running in it. A client that
|
|
39
|
+
// forks on resume (Claude Code) never joins a running turn and says nothing.
|
|
40
|
+
export function sessionTurnRunning(client, sessionId, { home = homedir(), env = process.env } = {}) {
|
|
41
|
+
if (!SESSION_ID.test(sessionId)) return false;
|
|
42
|
+
return wakeAdapter(client)?.turnRunning?.(sessionId, { home, env }) ?? false;
|
|
43
|
+
}
|
|
44
|
+
|
|
38
45
|
export async function wakeAgent({ client, sessionId = null, cwd, prompt, timeoutMs = 300_000,
|
|
39
46
|
delegationToken = null, peerDepth = null, env = process.env, run = runProcess, signal, onSpawn, onSession, readOnly = false } = {}) {
|
|
40
47
|
const command = resolveClientCommand(client, { env });
|
|
@@ -96,7 +103,9 @@ export function runProcess(command, args, { cwd, env, input, timeoutMs, maxOutpu
|
|
|
96
103
|
const child = spawn(command, args, { cwd, env, shell: false, windowsHide: true,
|
|
97
104
|
detached: process.platform !== 'win32', stdio: ['pipe', 'pipe', 'ignore'] });
|
|
98
105
|
const closed = new Promise((resolve) => child.once('close', resolve));
|
|
99
|
-
|
|
106
|
+
// The PID is known as soon as spawn() returns: record it before anything can
|
|
107
|
+
// lose the console, not on the later spawn event (rec#97).
|
|
108
|
+
if (Number.isSafeInteger(child.pid)) onSpawn?.(child.pid);
|
|
100
109
|
let output = '', pending = '', bytes = 0, settled = false, childClosed = false;
|
|
101
110
|
const decoder = new StringDecoder('utf8');
|
|
102
111
|
const callbacks = new Set();
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { randomUUID } from 'node:crypto';
|
|
2
|
-
import { join } from 'node:path';
|
|
3
2
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
4
3
|
import { z } from 'zod';
|
|
5
4
|
|
|
@@ -93,7 +92,3 @@ export function createStandaloneMcp({ roundtable, host, store, client, cwd, woke
|
|
|
93
92
|
}
|
|
94
93
|
return { server, tools };
|
|
95
94
|
}
|
|
96
|
-
|
|
97
|
-
export function standalonePaths(home) {
|
|
98
|
-
return { standalone: join(home, 'standalone.sqlite'), roundtable: join(home, 'roundtable.sqlite') };
|
|
99
|
-
}
|
|
@@ -38,12 +38,25 @@ function sendJson(response, status, value) {
|
|
|
38
38
|
response.end(JSON.stringify(value));
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
// This service has no web page: its only caller is the command on this
|
|
42
|
+
// computer, which sends JSON and no browser headers. A page in a browser
|
|
43
|
+
// could otherwise post here across sites (a no-cors POST needs no preflight).
|
|
44
|
+
function fromWebPage(request) {
|
|
45
|
+
const { origin, 'sec-fetch-site': fetchSite, 'content-type': contentType = '' } = request.headers;
|
|
46
|
+
if (origin !== undefined || fetchSite !== undefined) return true;
|
|
47
|
+
return request.method !== 'GET' && !/^application\/json\b/i.test(contentType);
|
|
48
|
+
}
|
|
49
|
+
|
|
41
50
|
// Keeps the LAN roundtable of a standalone home running: it resumes whatever
|
|
42
51
|
// the owner turned on and answers the owner's controls on loopback only.
|
|
43
52
|
export async function startStandaloneServe({ standalone, port = DEFAULT_SERVE_PORT, onError = () => {} }) {
|
|
44
53
|
const runtime = createPeerRuntime({ host: standalone.host, roundtable: standalone.roundtable, port: standalone.peer, onError });
|
|
45
54
|
await runtime.resume().catch(onError);
|
|
46
55
|
const server = createServer((request, response) => {
|
|
56
|
+
if (fromWebPage(request)) {
|
|
57
|
+
sendJson(response, 403, { error: 'local_owner_only', message: 'LAN roundtable settings are changed with the fuli-roundtable command on this computer' });
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
47
60
|
handlePeerControlRequest({ request, response, url: new URL(request.url, 'http://127.0.0.1'), peer: runtime,
|
|
48
61
|
readJson, sendJson, unavailableMessage: 'The LAN roundtable is not available' })
|
|
49
62
|
.then(handled => { if (!handled) sendJson(response, 404, { error: 'not_found', message: 'Unknown route' }); })
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "fuli-embedding-models",
|
|
3
|
+
"formatVersion": 1,
|
|
4
|
+
"manifestVersion": 2,
|
|
5
|
+
"updatedAt": "2026-11-12",
|
|
6
|
+
"models": [
|
|
7
|
+
{
|
|
8
|
+
"id": "bge-small-zh-v1.5",
|
|
9
|
+
"name": "BGE Small 中文 v1.5",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"languages": [
|
|
12
|
+
"zh"
|
|
13
|
+
],
|
|
14
|
+
"dimensions": 512,
|
|
15
|
+
"maxTokens": 512,
|
|
16
|
+
"pooling": "cls",
|
|
17
|
+
"lowercase": true,
|
|
18
|
+
"stripAccents": false,
|
|
19
|
+
"recommended": false,
|
|
20
|
+
"memoryMb": 200,
|
|
21
|
+
"summary": {
|
|
22
|
+
"zh": "最快、最省内存的中文模型。用英文提问时没那么准。",
|
|
23
|
+
"en": "The fastest, lightest Chinese model; less accurate for questions asked in English."
|
|
24
|
+
},
|
|
25
|
+
"source": "https://huggingface.co/BAAI/bge-small-zh-v1.5",
|
|
26
|
+
"revision": "7999e1d3359715c523056ef9478215996d62a620",
|
|
27
|
+
"files": [
|
|
28
|
+
{
|
|
29
|
+
"path": "config.json",
|
|
30
|
+
"bytes": 776,
|
|
31
|
+
"sha256": "3853a7979202c348751b753e36f579c41d8da7d36af617d3d907e1fc9b441f2a",
|
|
32
|
+
"urls": [
|
|
33
|
+
"https://huggingface.co/BAAI/bge-small-zh-v1.5/resolve/7999e1d3359715c523056ef9478215996d62a620/config.json",
|
|
34
|
+
"https://hf-mirror.com/BAAI/bge-small-zh-v1.5/resolve/7999e1d3359715c523056ef9478215996d62a620/config.json"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"path": "vocab.txt",
|
|
39
|
+
"bytes": 109540,
|
|
40
|
+
"sha256": "45bbac6b341c319adc98a532532882e91a9cefc0329aa57bac9ae761c27b291c",
|
|
41
|
+
"urls": [
|
|
42
|
+
"https://huggingface.co/BAAI/bge-small-zh-v1.5/resolve/7999e1d3359715c523056ef9478215996d62a620/vocab.txt",
|
|
43
|
+
"https://hf-mirror.com/BAAI/bge-small-zh-v1.5/resolve/7999e1d3359715c523056ef9478215996d62a620/vocab.txt"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"path": "model.safetensors",
|
|
48
|
+
"bytes": 95827648,
|
|
49
|
+
"sha256": "354763b9b1357bc9c44f62c6be2276321081ed2567773608c0d0785b61d5a026",
|
|
50
|
+
"urls": [
|
|
51
|
+
"https://huggingface.co/BAAI/bge-small-zh-v1.5/resolve/7999e1d3359715c523056ef9478215996d62a620/model.safetensors",
|
|
52
|
+
"https://hf-mirror.com/BAAI/bge-small-zh-v1.5/resolve/7999e1d3359715c523056ef9478215996d62a620/model.safetensors"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "gte-small-zh",
|
|
59
|
+
"name": "GTE Small 中文",
|
|
60
|
+
"license": "MIT",
|
|
61
|
+
"languages": [
|
|
62
|
+
"zh"
|
|
63
|
+
],
|
|
64
|
+
"dimensions": 512,
|
|
65
|
+
"maxTokens": 512,
|
|
66
|
+
"pooling": "cls",
|
|
67
|
+
"lowercase": true,
|
|
68
|
+
"stripAccents": true,
|
|
69
|
+
"recommended": true,
|
|
70
|
+
"memoryMb": 240,
|
|
71
|
+
"summary": {
|
|
72
|
+
"zh": "中文为主的知识库首选。中英混排、用英文提问也找得准。",
|
|
73
|
+
"en": "First choice for knowledge mostly in Chinese; accurate for mixed and English questions too."
|
|
74
|
+
},
|
|
75
|
+
"source": "https://huggingface.co/thenlper/gte-small-zh",
|
|
76
|
+
"revision": "af7bd46fbb00b3a6963c8dd7f1786ddfbfbe973a",
|
|
77
|
+
"files": [
|
|
78
|
+
{
|
|
79
|
+
"path": "config.json",
|
|
80
|
+
"bytes": 772,
|
|
81
|
+
"sha256": "a0ee9be96d6ef1cf5af255705b52590212ef834aa9547e17d93399c438b63fe4",
|
|
82
|
+
"urls": [
|
|
83
|
+
"https://huggingface.co/thenlper/gte-small-zh/resolve/af7bd46fbb00b3a6963c8dd7f1786ddfbfbe973a/config.json",
|
|
84
|
+
"https://hf-mirror.com/thenlper/gte-small-zh/resolve/af7bd46fbb00b3a6963c8dd7f1786ddfbfbe973a/config.json"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"path": "vocab.txt",
|
|
89
|
+
"bytes": 69998,
|
|
90
|
+
"sha256": "fc4b55153cc8633a75d9142e721f05e26c833b186b356b1b9251f3f789ed75e4",
|
|
91
|
+
"urls": [
|
|
92
|
+
"https://huggingface.co/thenlper/gte-small-zh/resolve/af7bd46fbb00b3a6963c8dd7f1786ddfbfbe973a/vocab.txt",
|
|
93
|
+
"https://hf-mirror.com/thenlper/gte-small-zh/resolve/af7bd46fbb00b3a6963c8dd7f1786ddfbfbe973a/vocab.txt"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"path": "model.safetensors",
|
|
98
|
+
"bytes": 60532888,
|
|
99
|
+
"sha256": "08045028316ab4071f5e2b2926acdb36a8c21ffc4fe709991e1171650ec61281",
|
|
100
|
+
"urls": [
|
|
101
|
+
"https://huggingface.co/thenlper/gte-small-zh/resolve/af7bd46fbb00b3a6963c8dd7f1786ddfbfbe973a/model.safetensors",
|
|
102
|
+
"https://hf-mirror.com/thenlper/gte-small-zh/resolve/af7bd46fbb00b3a6963c8dd7f1786ddfbfbe973a/model.safetensors"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"id": "bge-small-en-v1.5",
|
|
109
|
+
"name": "BGE Small English v1.5",
|
|
110
|
+
"license": "MIT",
|
|
111
|
+
"languages": [
|
|
112
|
+
"en"
|
|
113
|
+
],
|
|
114
|
+
"dimensions": 384,
|
|
115
|
+
"maxTokens": 512,
|
|
116
|
+
"pooling": "cls",
|
|
117
|
+
"lowercase": true,
|
|
118
|
+
"stripAccents": true,
|
|
119
|
+
"recommended": false,
|
|
120
|
+
"memoryMb": 260,
|
|
121
|
+
"summary": {
|
|
122
|
+
"zh": "英文为主的知识库首选。不认识中文。",
|
|
123
|
+
"en": "First choice for knowledge mostly in English. It does not read Chinese."
|
|
124
|
+
},
|
|
125
|
+
"source": "https://huggingface.co/BAAI/bge-small-en-v1.5",
|
|
126
|
+
"revision": "5c38ec7c405ec4b44b94cc5a9bb96e735b38267a",
|
|
127
|
+
"files": [
|
|
128
|
+
{
|
|
129
|
+
"path": "config.json",
|
|
130
|
+
"bytes": 743,
|
|
131
|
+
"sha256": "094f8e891b932f2000c92cfc663bac4c62069f5d8af5b5278c4306aef3084750",
|
|
132
|
+
"urls": [
|
|
133
|
+
"https://huggingface.co/BAAI/bge-small-en-v1.5/resolve/5c38ec7c405ec4b44b94cc5a9bb96e735b38267a/config.json",
|
|
134
|
+
"https://hf-mirror.com/BAAI/bge-small-en-v1.5/resolve/5c38ec7c405ec4b44b94cc5a9bb96e735b38267a/config.json"
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"path": "vocab.txt",
|
|
139
|
+
"bytes": 231508,
|
|
140
|
+
"sha256": "07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3",
|
|
141
|
+
"urls": [
|
|
142
|
+
"https://huggingface.co/BAAI/bge-small-en-v1.5/resolve/5c38ec7c405ec4b44b94cc5a9bb96e735b38267a/vocab.txt",
|
|
143
|
+
"https://hf-mirror.com/BAAI/bge-small-en-v1.5/resolve/5c38ec7c405ec4b44b94cc5a9bb96e735b38267a/vocab.txt"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"path": "model.safetensors",
|
|
148
|
+
"bytes": 133466304,
|
|
149
|
+
"sha256": "3c9f31665447c8911517620762200d2245a2518d6e7208acc78cd9db317e21ad",
|
|
150
|
+
"urls": [
|
|
151
|
+
"https://huggingface.co/BAAI/bge-small-en-v1.5/resolve/5c38ec7c405ec4b44b94cc5a9bb96e735b38267a/model.safetensors",
|
|
152
|
+
"https://hf-mirror.com/BAAI/bge-small-en-v1.5/resolve/5c38ec7c405ec4b44b94cc5a9bb96e735b38267a/model.safetensors"
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"id": "all-minilm-l6-v2",
|
|
159
|
+
"name": "MiniLM L6 v2 (English)",
|
|
160
|
+
"license": "Apache-2.0",
|
|
161
|
+
"languages": [
|
|
162
|
+
"en"
|
|
163
|
+
],
|
|
164
|
+
"dimensions": 384,
|
|
165
|
+
"maxTokens": 256,
|
|
166
|
+
"pooling": "mean",
|
|
167
|
+
"lowercase": true,
|
|
168
|
+
"stripAccents": true,
|
|
169
|
+
"recommended": false,
|
|
170
|
+
"memoryMb": 180,
|
|
171
|
+
"summary": {
|
|
172
|
+
"zh": "最快的英文模型。不认识中文。",
|
|
173
|
+
"en": "The fastest for English. It does not read Chinese."
|
|
174
|
+
},
|
|
175
|
+
"source": "https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2",
|
|
176
|
+
"revision": "1110a243fdf4706b3f48f1d95db1a4f5529b4d41",
|
|
177
|
+
"files": [
|
|
178
|
+
{
|
|
179
|
+
"path": "config.json",
|
|
180
|
+
"bytes": 612,
|
|
181
|
+
"sha256": "953f9c0d463486b10a6871cc2fd59f223b2c70184f49815e7efbcab5d8908b41",
|
|
182
|
+
"urls": [
|
|
183
|
+
"https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/1110a243fdf4706b3f48f1d95db1a4f5529b4d41/config.json",
|
|
184
|
+
"https://hf-mirror.com/sentence-transformers/all-MiniLM-L6-v2/resolve/1110a243fdf4706b3f48f1d95db1a4f5529b4d41/config.json"
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"path": "vocab.txt",
|
|
189
|
+
"bytes": 231508,
|
|
190
|
+
"sha256": "07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3",
|
|
191
|
+
"urls": [
|
|
192
|
+
"https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/1110a243fdf4706b3f48f1d95db1a4f5529b4d41/vocab.txt",
|
|
193
|
+
"https://hf-mirror.com/sentence-transformers/all-MiniLM-L6-v2/resolve/1110a243fdf4706b3f48f1d95db1a4f5529b4d41/vocab.txt"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"path": "model.safetensors",
|
|
198
|
+
"bytes": 90868376,
|
|
199
|
+
"sha256": "53aa51172d142c89d9012cce15ae4d6cc0ca6895895114379cacb4fab128d9db",
|
|
200
|
+
"urls": [
|
|
201
|
+
"https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/1110a243fdf4706b3f48f1d95db1a4f5529b4d41/model.safetensors",
|
|
202
|
+
"https://hf-mirror.com/sentence-transformers/all-MiniLM-L6-v2/resolve/1110a243fdf4706b3f48f1d95db1a4f5529b4d41/model.safetensors"
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
}
|
|
@@ -54,7 +54,7 @@ receipt; the next entry in the same native session auto-closes an eligible fallb
|
|
|
54
54
|
`retain_nothing` / `reported`. Capture candidates, experiences, memory changes, explicit knowledge
|
|
55
55
|
usage, collaborators, failures/blockers and meaningful work summaries still need an explicit
|
|
56
56
|
checkpoint. Automatic closure never claims completed work or saved memory. An existing pending
|
|
57
|
-
task is not proof that its Hook context reached this turn. If `task_lifecycle.reason=data_format_read_only`, FULI waits for the person to confirm a data format update: use the preferences, keep reading and searching, skip the checkpoint, and tell the person once where to confirm. Otherwise, if `task_lifecycle.status=not_started`,
|
|
57
|
+
task is not proof that its Hook context reached this turn. When `preference_delivery.status=blocked`, its token is for the tools in `token_use` (`read_task_preferences` to recover, `checkpoint_task_knowledge` to close the task as incomplete); FULI reads and searches may carry it, but make no roundtable, team or write call with it until `preferences_complete=true`. If `task_lifecycle.reason=data_format_read_only`, FULI waits for the person to confirm a data format update: use the preferences, keep reading and searching, skip the checkpoint, and tell the person once where to confirm. Otherwise, if `task_lifecycle.status=not_started`,
|
|
58
58
|
preferences are available but checkpoint ownership is not established; report the missing
|
|
59
59
|
host identity or prompt rather than reusing an earlier token. Such an entry lists working
|
|
60
60
|
memory, team and managers only as their `read` calls (`get_project_agent_memory`,
|
|
@@ -66,7 +66,7 @@ remains unverified even if the preference fallback and task-summary checkpoint s
|
|
|
66
66
|
|
|
67
67
|
## Mandatory reply identity
|
|
68
68
|
|
|
69
|
-
Every final user-visible reply MUST include the current task’s `agent_receipt.markdown` unchanged exactly once. This includes greetings, status-only replies, failures, `retain_nothing`, and capture-disabled tasks. The receipt is independent of whether a memory checkpoint was saved. Never substitute a client name, configured peer, or an earlier task’s owner. If a legacy/unavailable entry supplies no receipt, explicitly state that the FULI Agent identity is unavailable. When `get_collaboration_preferences` returns `status: preferences_unavailable` (FULI's graph service did not answer), follow its `guidance`: continue without FULI preferences, retry it once before any FULI write or the final reply, and never reuse an earlier token. When `checkpoint_task_knowledge` returns `status: checkpoint_incomplete`, retry it once with exactly the same arguments (FULI may already keep the first input; changed wording is refused) and do not claim the task was saved until it returns `checkpointed`. A receipt with no authorized owner already supplies the correct neutral text.
|
|
69
|
+
Every final user-visible reply MUST include the current task’s `agent_receipt.markdown` unchanged exactly once. This includes greetings, status-only replies, failures, `retain_nothing`, and capture-disabled tasks. The receipt is independent of whether a memory checkpoint was saved. Never substitute a client name, configured peer, or an earlier task’s owner. When `message_agent` or `reply_agent_message` returns an `agent_receipt`, this turn used the roundtable: end the reply with that one instead of the entry receipt (a later checkpoint receipt replaces it). It reads `FULI Agents:A & B` when another FLA took part and links 「圆桌对话详情」; it covers this turn only, so the next turn signs with its own receipt again. When the entry has `owner_change`, this session's FLA changed (usually the folder moved to another project): tell the person once, carry what this task needs from this conversation into your own checkpoint `workLog` (the earlier FLA's records are not copied), and say that `#FLA <earlier name>` keeps the earlier FLA. If a legacy/unavailable entry supplies no receipt, explicitly state that the FULI Agent identity is unavailable. When `get_collaboration_preferences` returns `status: preferences_unavailable` (FULI's graph service did not answer), follow its `guidance`: continue without FULI preferences, retry it once before any FULI write or the final reply, and never reuse an earlier token. When `checkpoint_task_knowledge` returns `status: checkpoint_incomplete`, retry it once with exactly the same arguments (FULI may already keep the first input; changed wording is refused) and do not claim the task was saved until it returns `checkpointed`. When it returns `status: checkpoint_not_saved`, this connection's token was refused before anything was written, so this call saved nothing: tell the person in one line that this task's knowledge is not saved in FULI yet, call `get_collaboration_preferences` through this connection for a token of its own, and send the same content again with it in this conversation. A receipt with no authorized owner already supplies the correct neutral text.
|
|
70
70
|
|
|
71
71
|
Apply only `effective_preferences`. Personal-global preferences apply in every user task;
|
|
72
72
|
project-scoped preferences layer on only for the exact selected project. Do not apply items
|