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.
Files changed (521) hide show
  1. package/README.md +23 -3
  2. package/README.zh-CN.md +19 -4
  3. package/dist/web/assets/{AboutPage-Dx07_Z8u.js → AboutPage-Bp2Edkdg.js} +1 -1
  4. package/dist/web/assets/{AboutSectionHeading-BdhpM609.js → AboutSectionHeading-DFfY2f_Z.js} +1 -1
  5. package/dist/web/assets/{AgentAppsPage-5VW0uCTz.js → AgentAppsPage-CjyvPZSs.js} +1 -1
  6. package/dist/web/assets/{AgentAvatar-DlAQP7gm.js → AgentAvatar-w-2A3nsJ.js} +1 -1
  7. package/dist/web/assets/{AgentHand-FPFg9-Y1.js → AgentHand-BGGU49Jt.js} +1 -1
  8. package/dist/web/assets/{AgentManagement-CLFw9oV9.css → AgentManagement-Cc00RLSO.css} +1 -1
  9. package/dist/web/assets/{AgentManagement-UTe4I3WA.js → AgentManagement-MMGrwdD2.js} +2 -2
  10. package/dist/web/assets/{AgentMentionCopy-C5ExlutT.js → AgentMentionCopy-BAHZjubz.js} +1 -1
  11. package/dist/web/assets/{AgentName-C8mYbtKs.js → AgentName-CXlsC-4o.js} +1 -1
  12. package/dist/web/assets/{AgentProfilePage-DumsVHP1.css → AgentProfilePage-Ce25JSzZ.css} +1 -1
  13. package/dist/web/assets/{AgentProfilePage-BLeyT3By.js → AgentProfilePage-eDKbJJwY.js} +5 -5
  14. package/dist/web/assets/{AgentServicesPage-BXi152Xc.js → AgentServicesPage-CZwsN5U2.js} +1 -1
  15. package/dist/web/assets/{AppViewerPage-BR8ttEGa.js → AppViewerPage-6gWP6nAf.js} +1 -1
  16. package/dist/web/assets/{BackToTop-5_AQRMZl.js → BackToTop-Cs5_rV99.js} +1 -1
  17. package/dist/web/assets/{BoardCardFieldsMenu-Bb_Z9a4Q.js → BoardCardFieldsMenu-CvFrsIgy.js} +1 -1
  18. package/dist/web/assets/{BoardMoveMenu-B-f8O6cC.js → BoardMoveMenu-B5isxIcK.js} +1 -1
  19. package/dist/web/assets/{Breadcrumb-DtM5lZy5.js → Breadcrumb-BXTA4e-W.js} +1 -1
  20. package/dist/web/assets/CaptureChangePage-Ca72_PHc.js +1 -0
  21. package/dist/web/assets/{CopyFixPrompt-DlarhfPK.js → CopyFixPrompt-wGATZKOq.js} +1 -1
  22. package/dist/web/assets/{DataFormatPage-DwL4Ofc9.js → DataFormatPage-CQKkFhcH.js} +1 -1
  23. package/dist/web/assets/{DebugTurnPage-UpK_3ZWY.js → DebugTurnPage-CUqbuhgX.js} +1 -1
  24. package/dist/web/assets/{DebugTurnsPage-C0aZg5-3.js → DebugTurnsPage-HwaTG8Fa.js} +1 -1
  25. package/dist/web/assets/{DialogTitle-BQXOe8EK.js → DialogTitle-HYzAHbGg.js} +1 -1
  26. package/dist/web/assets/{EmployeeRedirectPage-BjWpXDSM.js → EmployeeRedirectPage-C2SHpAEF.js} +1 -1
  27. package/dist/web/assets/{EmployeeScopeDialog-Bt3ZlDyZ.js → EmployeeScopeDialog-yUCgujKT.js} +1 -1
  28. package/dist/web/assets/{EmployeeWorkbench-GtJIUD5G.js → EmployeeWorkbench-CbRJhkJO.js} +3 -3
  29. package/dist/web/assets/FieldRoot-BLcsuPMA.js +1 -0
  30. package/dist/web/assets/{FlaGrowth-OQtTLTng.js → FlaGrowth-DGnUPN7D.js} +1 -1
  31. package/dist/web/assets/{FlaOccupationKit-C-x4VrKk.js → FlaOccupationKit-DAJjSrmL.js} +1 -1
  32. package/dist/web/assets/{FlaTaskSheets-CoaF5CbQ.js → FlaTaskSheets-DRLgfrVC.js} +1 -1
  33. package/dist/web/assets/{FlasPage-CgIVOGFM.js → FlasPage-CMv2awKJ.js} +1 -1
  34. package/dist/web/assets/{GrowthLoading-VuVo2vLf.js → GrowthLoading-NLj2W4jj.js} +1 -1
  35. package/dist/web/assets/{HowtoPage-CZ3mOdLc.js → HowtoPage-CkGRrKpf.js} +1 -1
  36. package/dist/web/assets/InboxPage-Bv8XUdl8.css +1 -0
  37. package/dist/web/assets/InboxPage-DfQvtnyq.js +6 -0
  38. package/dist/web/assets/{KnowledgeDeleteButton-BlUnSG3b.js → KnowledgeDeleteButton-DaT-gTmm.js} +1 -1
  39. package/dist/web/assets/{KnowledgeHardDeleteSection-CznXBtHY.js → KnowledgeHardDeleteSection-C9d7DVLa.js} +1 -1
  40. package/dist/web/assets/{KnowledgeItemEditPage-DGRNkAYd.js → KnowledgeItemEditPage-BUKQK37o.js} +1 -1
  41. package/dist/web/assets/{KnowledgeItemSummaryCard-Co5JKBHl.js → KnowledgeItemSummaryCard-eLzjKvgN.js} +1 -1
  42. package/dist/web/assets/KnowledgeOrganizerPage-CiZ9JlNX.js +1 -0
  43. package/dist/web/assets/KnowledgePage-C3_Cvz4g.js +1 -0
  44. package/dist/web/assets/{KnowledgePeek-CwZVuSkf.css → KnowledgePeek-D6SeISIM.css} +1 -1
  45. package/dist/web/assets/KnowledgePeek-DtOOiARX.js +1 -0
  46. package/dist/web/assets/{KnowledgeTurnReceiptPage-Csyjimeg.js → KnowledgeTurnReceiptPage-Dne5NQ9q.js} +1 -1
  47. package/dist/web/assets/KnowledgeWorkspace-Cq_XYcma.js +4 -0
  48. package/dist/web/assets/KnowledgeWorkspace-DDg3tUb3.css +1 -0
  49. package/dist/web/assets/{MeAvatar-aY_q8cKs.js → MeAvatar-f6qxg9dN.js} +1 -1
  50. package/dist/web/assets/{MeLink-B0pNwVLa.js → MeLink-DTvFYaYE.js} +1 -1
  51. package/dist/web/assets/{MenuSeparator-BR-uLovR.js → MenuSeparator-CLmsZ9rj.js} +1 -1
  52. package/dist/web/assets/ModelSettingsPage-B38R-kBZ.css +1 -0
  53. package/dist/web/assets/ModelSettingsPage-COVaW4eh.js +1 -0
  54. package/dist/web/assets/NewSessionPanel-9yINjwyx.js +1 -0
  55. package/dist/web/assets/NewSessionPanel-CTdd7xpN.css +1 -0
  56. package/dist/web/assets/{NotFoundPage-Cr1MaPuk.js → NotFoundPage-CqevPz0_.js} +1 -1
  57. package/dist/web/assets/NoticeRow-D5MWTeBY.js +1 -0
  58. package/dist/web/assets/{OccupationsPage-CkVqZ2pz.js → OccupationsPage-BKd051j1.js} +1 -1
  59. package/dist/web/assets/OverviewPage-C90G_adj.js +1 -0
  60. package/dist/web/assets/{OverviewPage-Dr4jrXW4.css → OverviewPage-KVt4LcE-.css} +1 -1
  61. package/dist/web/assets/{PageColumns-DvehZlYm.js → PageColumns-Df60nEzj.js} +1 -1
  62. package/dist/web/assets/PageOutline-D5h1GuKt.css +1 -0
  63. package/dist/web/assets/PageOutline-HHUlu2x3.js +1 -0
  64. package/dist/web/assets/{PersonalProfilePage-TxsNr44t.js → PersonalProfilePage-DIDgG3NH.js} +1 -1
  65. package/dist/web/assets/PersonalProjectsPage-DwhlEpNg.js +1 -0
  66. package/dist/web/assets/{PinIcon-BTQsnxRY.js → PinIcon-DP-9Iisk.js} +1 -1
  67. package/dist/web/assets/{PopperContent-DtMksk76.js → PopperContent-DWCMeKSL.js} +1 -1
  68. package/dist/web/assets/{Presence-B0zMpCF4.js → Presence-Ba3jqPYx.js} +1 -1
  69. package/dist/web/assets/{ProfileAuthorChip-BqT9Vv65.js → ProfileAuthorChip-BKZJC_N2.js} +1 -1
  70. package/dist/web/assets/ProjectAgentsPage-BefVF9ZP.js +5 -0
  71. package/dist/web/assets/ProjectJudgmentPolicy-BHyiqKLV.css +1 -0
  72. package/dist/web/assets/ProjectJudgmentPolicy-BJ5sVuFI.js +2 -0
  73. package/dist/web/assets/{RecentNotices-vJobVOcm.js → RecentNotices-CDHGIky1.js} +1 -1
  74. package/dist/web/assets/{RoundtablesPage-C3dYekQ5.js → RoundtablesPage-D5Xc3yun.js} +2 -2
  75. package/dist/web/assets/{RovingFocusGroup-CUqyjFSs.js → RovingFocusGroup-DoGybG5V.js} +1 -1
  76. package/dist/web/assets/{RovingFocusItem-CyyuWXjE.js → RovingFocusItem-B455TzUI.js} +1 -1
  77. package/dist/web/assets/{SessionMigrationPage-DukDM0TP.js → SessionMigrationPage-BAzXqxxO.js} +1 -1
  78. package/dist/web/assets/{SessionRecordsPage-DZ5ZBiuS.js → SessionRecordsPage-C6U5YGSt.js} +1 -1
  79. package/dist/web/assets/SettingsPage-7mNL3bwe.js +1 -0
  80. package/dist/web/assets/SettingsPage-Cku8SoLk.css +1 -0
  81. package/dist/web/assets/{SharedJefaReportPage-DUY03VLS.js → SharedJefaReportPage-rH6I4cI9.js} +1 -1
  82. package/dist/web/assets/{TagVocabularyPage-BKLFJiSu.js → TagVocabularyPage-Brpr-Q-y.js} +1 -1
  83. package/dist/web/assets/{TaskBlockerClear-BxOiiuK8.js → TaskBlockerClear-BHOMZYwm.js} +1 -1
  84. package/dist/web/assets/TaskBlockerNotice-POmS2neR.js +1 -0
  85. package/dist/web/assets/{TaskReason-D5j7L8tl.js → TaskReason-RKKs4Kb5.js} +1 -1
  86. package/dist/web/assets/{TeamCard-CDunbIrP.js → TeamCard-8hjo1h0x.js} +1 -1
  87. package/dist/web/assets/{TeamCardsWidget-CUW-fPn7.js → TeamCardsWidget-DIHFUDrF.js} +1 -1
  88. package/dist/web/assets/{TeamIsland-CmpDmIX2.js → TeamIsland-DdhEcVOZ.js} +1 -1
  89. package/dist/web/assets/{Teleport-Dzdr8umQ.js → Teleport-CukHuRhz.js} +1 -1
  90. package/dist/web/assets/{TextField-BPhEpEv9.js → TextField-G2fJ4aFQ.js} +1 -1
  91. package/dist/web/assets/{TonborgDelegationSwitch-C1nkJqkJ.js → TonborgDelegationSwitch-BA3Qb8Wr.js} +1 -1
  92. package/dist/web/assets/{UiChip-BEQ067LV.js → UiChip-BHEJVA6L.js} +1 -1
  93. package/dist/web/assets/{UiChip-DulygSq8.css → UiChip-BiUmvjdz.css} +1 -1
  94. package/dist/web/assets/{UiDialog-JjqzOA0z.js → UiDialog-bUwGQz96.js} +1 -1
  95. package/dist/web/assets/{UiDisclosure-L6GEJHSw.js → UiDisclosure-B1pd8qXW.js} +1 -1
  96. package/dist/web/assets/UiIcon-K7OhYTSy.js +1 -0
  97. package/dist/web/assets/{UiIconButton-ZCBdABdM.css → UiIconButton-D3R6WwwI.css} +1 -1
  98. package/dist/web/assets/UiIconButton-DlLZ5_Yc.js +1 -0
  99. package/dist/web/assets/{UiSegmented-CIIm3KoV.js → UiSegmented-CYrTxDn1.js} +1 -1
  100. package/dist/web/assets/{UiWeight-D-2iZ_Kc.js → UiWeight-eAw682rH.js} +1 -1
  101. package/dist/web/assets/{VirtualDirectoryList-BV8KsA-Z.js → VirtualDirectoryList-BGum1GZc.js} +1 -1
  102. package/dist/web/assets/{VisuallyHidden-BxKxuXRF.js → VisuallyHidden-Ck6D7rq-.js} +1 -1
  103. package/dist/web/assets/{VisuallyHiddenInput-DD4vhlqT.js → VisuallyHiddenInput-DXWhIUlB.js} +1 -1
  104. package/dist/web/assets/WidgetSlot-D6vCSWaz.js +2 -0
  105. package/dist/web/assets/{WorkbenchListHead-B0TjHsTO.js → WorkbenchListHead-CR_fDYYr.js} +1 -1
  106. package/dist/web/assets/WorkbenchListPage-Zr5PW-cf.js +1 -0
  107. package/dist/web/assets/_plugin-vue_export-helper-BRS32yXs.js +9 -0
  108. package/dist/web/assets/{agent-apps-B1Je-mpY.js → agent-apps-D0eG1aMx.js} +1 -1
  109. package/dist/web/assets/agent-occupation-CEd3bAhb.js +1 -0
  110. package/dist/web/assets/{agent-pins-DxHlJ96z.js → agent-pins-OYjJQ38F.js} +1 -1
  111. package/dist/web/assets/agent-profile-TuRobv9N.css +1 -0
  112. package/dist/web/assets/agent-roster-records-CsYjmaNn.js +1 -0
  113. package/dist/web/assets/{agent-work-summary-o_9-QWBL.js → agent-work-summary-BOeJ4JXc.js} +1 -1
  114. package/dist/web/assets/{agent-workflows-DgdbJqpg.js → agent-workflows-D3VeY6Yz.js} +1 -1
  115. package/dist/web/assets/{attach-closest-edge-DUc_VUVO.js → attach-closest-edge-C75rKXiz.js} +1 -1
  116. package/dist/web/assets/{attention-store-Bod20yM3.js → attention-store-k4mPCefZ.js} +1 -1
  117. package/dist/web/assets/{badge-tMy2Qr94.js → badge-B2rll-68.js} +1 -1
  118. package/dist/web/assets/{button-DnKFsImW.js → button-q6JhonlL.js} +1 -1
  119. package/dist/web/assets/{card-Ccu7HCNb.js → card-CPQiMHSu.js} +1 -1
  120. package/dist/web/assets/{catalog-CJUV8OJ6.js → catalog-CBPcEkXC.js} +1 -1
  121. package/dist/web/assets/{checkbox-D1R6kTUB.js → checkbox-C67upxzl.js} +1 -1
  122. package/dist/web/assets/{client-D-G2i5VU.js → client-KFFphxpK.js} +1 -1
  123. package/dist/web/assets/{client-links-store-UgmraFBZ.js → client-links-store-Cw9c8MWc.js} +1 -1
  124. package/dist/web/assets/{combobox-C7QLYGzs.js → combobox-yHRJ-zN-.js} +1 -1
  125. package/dist/web/assets/console-BCR2S3AF.js +1 -0
  126. package/dist/web/assets/conversation-launcher-settings-28CqC1Gn.js +1 -0
  127. package/dist/web/assets/{copy-mention-C0EJhDPy.js → copy-mention-C4Nos381.js} +1 -1
  128. package/dist/web/assets/{dialog-Bbq93W68.js → dialog-Cjoy4nsv.js} +1 -1
  129. package/dist/web/assets/{dist-PpsW5ZE3.js → dist-CaVgk2QB.js} +1 -1
  130. package/dist/web/assets/{dist-Dd8yFhv6.js → dist-D73EXNtz.js} +1 -1
  131. package/dist/web/assets/{dropdown-menu-1fGUL0V3.js → dropdown-menu-Dto6hjoc.js} +1 -1
  132. package/dist/web/assets/{field-DjVv_wIS.js → field-BaUOZtN5.js} +1 -1
  133. package/dist/web/assets/{format-bytes-BKq_E0Hs.js → format-bytes-D5eCtdg1.js} +1 -1
  134. package/dist/web/assets/{hover-card-BO-929hq.js → hover-card-Bg0dulGq.js} +1 -1
  135. package/dist/web/assets/index-B-aRUs9w.js +24 -0
  136. package/dist/web/assets/index-HRZACEmh.css +1 -0
  137. package/dist/web/assets/{input-DmwRmYO2.js → input-Dxh25T4M.js} +1 -1
  138. package/dist/web/assets/{label-BvwPUTS4.js → label-CbrduZla.js} +1 -1
  139. package/dist/web/assets/label-table-_YAtPkRI.js +1 -0
  140. package/dist/web/assets/{model-Tmn6HvL-.js → model--lR9icA_.js} +1 -1
  141. package/dist/web/assets/{model-DpkZUZUL.js → model-Bgh75q3j.js} +1 -1
  142. package/dist/web/assets/model-Big7Ppeu.js +1 -0
  143. package/dist/web/assets/{model-BF_ZMPLi.js → model-Blk5Wgg2.js} +1 -1
  144. package/dist/web/assets/{model-0TZRbkN2.js → model-CWMP5GOL.js} +1 -1
  145. package/dist/web/assets/{model-y7OUvtKz.js → model-D4DkvMH-.js} +1 -1
  146. package/dist/web/assets/{model-CaR7VPg7.js → model-DcsCYhXk.js} +1 -1
  147. package/dist/web/assets/model-ZwOxwk2m.js +3 -0
  148. package/dist/web/assets/{model-Dfe81jZT.js → model-jC3F-J2F.js} +1 -1
  149. package/dist/web/assets/{motion-mAmbRj_M.js → motion-BL3lek9c.js} +1 -1
  150. package/dist/web/assets/{motion-C1fZrqmI.js → motion-_MepnmMC.js} +1 -1
  151. package/dist/web/assets/{motion-preference-Dz9S1bZa.js → motion-preference-D3UMHojT.js} +1 -1
  152. package/dist/web/assets/{occupation-catalog-_SnxxRbK.js → occupation-catalog-BeJ2O9nm.js} +1 -1
  153. package/dist/web/assets/{occupation-kits-DFC6Auuc.js → occupation-kits-Bkiu6MzD.js} +1 -1
  154. package/dist/web/assets/{option-DC8frdbr.js → option-Crs2MA88.js} +1 -1
  155. package/dist/web/assets/{orchestration-filters-UeiAHJqn.js → orchestration-filters-3AfjDoHQ.js} +1 -1
  156. package/dist/web/assets/overview-data-BIeNATEJ.js +1 -0
  157. package/dist/web/assets/{page-refresh-DdRJaxMv.js → page-refresh-Bz5r7A_Q.js} +1 -1
  158. package/dist/web/assets/{page-title-Cm9u_qw1.js → page-title-KYZApNys.js} +1 -1
  159. package/dist/web/assets/{person-profile-BH2AzOfw.js → person-profile-mhLxWtq7.js} +1 -1
  160. package/dist/web/assets/{popover-DW__YCSE.js → popover-CMahoDLo.js} +1 -1
  161. package/dist/web/assets/popup-host-DKN99Od3.js +1 -0
  162. package/dist/web/assets/{profile-model-DtISOJ-X.js → profile-model-DWutKuCZ.js} +1 -1
  163. package/dist/web/assets/{project-board-layout-CTM8kAgq.js → project-board-layout-CWMHQuUA.js} +1 -1
  164. package/dist/web/assets/{project-capture-B3pNhpFF.js → project-capture-CebFSnn0.js} +1 -1
  165. package/dist/web/assets/{project-origin-BO8Ngccf.js → project-origin-BnUVE0be.js} +1 -1
  166. package/dist/web/assets/{quick-edit-api-B169r5Qb.js → quick-edit-api-YwzoODMc.js} +1 -1
  167. package/dist/web/assets/{radio-group-DqA46cXQ.js → radio-group-vRt8y8mF.js} +1 -1
  168. package/dist/web/assets/review-api-WhNB3ppo.js +1 -0
  169. package/dist/web/assets/{review-list-BbV-Mle7.js → review-list-_PN7ljSY.js} +1 -1
  170. package/dist/web/assets/review-store-CobX9No6.js +1 -0
  171. package/dist/web/assets/{role-names-By0xdfTn.js → role-names-wD9l8uz5.js} +1 -1
  172. package/dist/web/assets/{roundtable-live-u9qUU6aA.js → roundtable-live-Dm4Vwo75.js} +1 -1
  173. package/dist/web/assets/{runtime-dom.esm-bundler-DhFy4Djs.js → runtime-dom.esm-bundler-DzfwnSj8.js} +1 -1
  174. package/dist/web/assets/{select-TqPBladU.js → select-B9mVptgx.js} +1 -1
  175. package/dist/web/assets/{session-launch-offers-CtQeY4Qk.js → session-launch-offers-C9UkoKUJ.js} +1 -1
  176. package/dist/web/assets/{settings-autosave-C7vW3_SP.js → settings-autosave-L0zSXnBO.js} +1 -1
  177. package/dist/web/assets/{npm-copies-GRyMAduA.css → settings-tabs-C9VDs91j.css} +1 -1
  178. package/dist/web/assets/settings-tabs-DTbgqX8g.js +1 -0
  179. package/dist/web/assets/{shared-report-DQBSigHB.js → shared-report-0FO_y0sa.js} +3 -3
  180. package/dist/web/assets/source-adapters-r-NIqO77.js +1 -0
  181. package/dist/web/assets/{switch-D7w_0h3m.js → switch-BCzrGc4W.js} +1 -1
  182. package/dist/web/assets/{tabs-DR8k0PN9.js → tabs-CB38D8N0.js} +1 -1
  183. package/dist/web/assets/{task-card-fields-X1ZYCm_j.js → task-card-fields-B1z1PmTT.js} +1 -1
  184. package/dist/web/assets/task-evidence-DydhKn9x.js +1 -0
  185. package/dist/web/assets/{task-labels-LuXoQhF9.js → task-labels-DTc5OuFF.js} +1 -1
  186. package/dist/web/assets/{task-reason-ChpbGtyx.js → task-reason-CneTZWRv.js} +1 -1
  187. package/dist/web/assets/{team-sheets-DYCQqa8I.js → team-sheets-CUt3Vp2s.js} +1 -1
  188. package/dist/web/assets/{textarea-D53VYanK.js → textarea-DJ0ucCir.js} +1 -1
  189. package/dist/web/assets/{ui-DmNbL8MW.js → ui-M_UKzb_A.js} +1 -1
  190. package/dist/web/assets/{useAgentRecords-Hy9nqMs7.js → useAgentRecords-CwkwZy8H.js} +1 -1
  191. package/dist/web/assets/{useAgentWorkSummary-mloD4p12.js → useAgentWorkSummary-DoiCqME7.js} +1 -1
  192. package/dist/web/assets/{useApi-CROJJdhE-DnUGUb8O.js → useApi-CROJJdhE-CenjhnR5.js} +1 -1
  193. package/dist/web/assets/{useClipboardCopy-BTuQMeWI.js → useClipboardCopy-Ba86PzjA.js} +1 -1
  194. package/dist/web/assets/{useFocusReturn-4hUmSzj9.js → useFocusReturn-B0ErBkt_.js} +1 -1
  195. package/dist/web/assets/{useForwardExpose-BDmW7q7u.js → useForwardExpose-DJ6fcpI2.js} +1 -1
  196. package/dist/web/assets/{useForwardPropsEmits-BzT2luD4.js → useForwardPropsEmits-D1vvIUcB.js} +1 -1
  197. package/dist/web/assets/useForwardScopeId-CoSQtoUU.js +1 -0
  198. package/dist/web/assets/{useKnowledgeConfirm-L8wnJCuX.js → useKnowledgeConfirm-781LUhoU.js} +1 -1
  199. package/dist/web/assets/{useKnowledgeItemPeek-C_huXt6E.js → useKnowledgeItemPeek-CnuCvJKQ.js} +1 -1
  200. package/dist/web/assets/{useMinimumLoadingDisplay-Dkl8NQru.js → useMinimumLoadingDisplay-DCC9EfQ9.js} +1 -1
  201. package/dist/web/assets/{usePageTools-CbDOdIrg.js → usePageTools-BaB021q0.js} +1 -1
  202. package/dist/web/assets/usePrimitiveElement-iRKqOVuY.js +1 -0
  203. package/dist/web/assets/{useProjectAgentRoster-BBmRvcgr.js → useProjectAgentRoster-M3wbWpS-.js} +1 -1
  204. package/dist/web/assets/{useRoutePeek-CRbCDqsm.js → useRoutePeek-CYg5JyYt.js} +1 -1
  205. package/dist/web/assets/useTeamPeople-CPC62La3.js +1 -0
  206. package/dist/web/assets/{useTeamWork-CXEQwF4n.js → useTeamWork-Dql3_qLV.js} +1 -1
  207. package/dist/web/assets/{useTypeahead-CVYuxPOD.js → useTypeahead-DYb5kVkH.js} +1 -1
  208. package/dist/web/assets/{utils-BnrWDlfm.js → utils-B7sUn8rD.js} +1 -1
  209. package/dist/web/assets/{utils-BsGjKHV8.js → utils-Cli0RsEd.js} +1 -1
  210. package/dist/web/assets/{verification-DbCo_dnY.js → verification-DY7kllTI.js} +1 -1
  211. package/dist/web/assets/version-CBgUEmnM.js +1 -0
  212. package/dist/web/assets/{vue-router-D4_ms6om.js → vue-router-ab7kABlJ.js} +1 -1
  213. package/dist/web/index.html +82 -86
  214. package/docs/agent-conversations-and-collaboration.md +6 -0
  215. package/docs/agent-interface-architecture.md +4 -1
  216. package/docs/agent-roundtable.md +8 -2
  217. package/docs/client-connections.md +33 -5
  218. package/docs/employee-agents.md +1 -1
  219. package/docs/external-knowledge-architecture.md +8 -3
  220. package/docs/judgment-and-autonomy.md +6 -4
  221. package/docs/project-agent-memory.md +12 -1
  222. package/graph-provider/fuli_graph/app.py +12 -234
  223. package/graph-provider/fuli_graph/auth.py +10 -0
  224. package/graph-provider/fuli_graph/builtin_embedding.py +388 -0
  225. package/graph-provider/fuli_graph/builtin_embedding_routes.py +53 -0
  226. package/graph-provider/fuli_graph/client_coverage.py +2 -2
  227. package/graph-provider/fuli_graph/config.py +3 -0
  228. package/graph-provider/fuli_graph/knowledge_duplicates.py +0 -1
  229. package/graph-provider/fuli_graph/knowledge_index_scan.py +13 -6
  230. package/graph-provider/fuli_graph/knowledge_search.py +111 -45
  231. package/graph-provider/fuli_graph/knowledge_semantic.py +9 -0
  232. package/graph-provider/fuli_graph/knowledge_semantic_index.py +5 -3
  233. package/graph-provider/fuli_graph/knowledge_tags.py +5 -10
  234. package/graph-provider/fuli_graph/models.py +1 -81
  235. package/graph-provider/fuli_graph/personal_global_preference_models.py +0 -23
  236. package/graph-provider/fuli_graph/personal_global_preferences.py +5 -630
  237. package/graph-provider/fuli_graph/preference_conflicts.py +3 -1
  238. package/graph-provider/fuli_graph/project_agent_delegations.py +6 -1
  239. package/graph-provider/fuli_graph/project_agent_executor_models.py +0 -26
  240. package/graph-provider/fuli_graph/project_agent_models.py +1 -0
  241. package/graph-provider/fuli_graph/project_agent_routes.py +0 -27
  242. package/graph-provider/fuli_graph/project_agent_task_models.py +0 -18
  243. package/graph-provider/fuli_graph/project_agent_work_log.py +4 -2
  244. package/graph-provider/fuli_graph/project_knowledge.py +2 -1
  245. package/graph-provider/fuli_graph/retired_graph_labels.py +30 -0
  246. package/graph-provider/fuli_graph/store_identity.py +4 -16
  247. package/graph-provider/fuli_graph/store_project_agent_executor_learning.py +0 -7
  248. package/graph-provider/fuli_graph/store_project_agent_executor_routing.py +0 -2
  249. package/graph-provider/fuli_graph/store_project_agent_executors.py +0 -8
  250. package/graph-provider/fuli_graph/store_project_agent_task_recruitment.py +1 -61
  251. package/graph-provider/fuli_graph/store_project_agents.py +1 -1
  252. package/graph-provider/fuli_graph/store_projects.py +0 -151
  253. package/graph-provider/fuli_graph/store_publication.py +1 -160
  254. package/graph-provider/fuli_graph/store_records.py +0 -43
  255. package/graph-provider/fuli_graph/store_task_contexts.py +10 -0
  256. package/graph-provider/fuli_graph/task_checkpoint_amendment.py +77 -0
  257. package/graph-provider/fuli_graph/task_context_auto_close.py +1 -1
  258. package/graph-provider/fuli_graph/task_context_models.py +19 -0
  259. package/graph-provider/fuli_graph/task_context_routes.py +5 -1
  260. package/graph-provider/fuli_graph/workflow_candidate_models.py +1 -61
  261. package/graph-provider/fuli_graph/workflow_candidates.py +7 -446
  262. package/graph-provider/fuli_graph/workflow_observation_models.py +1 -1
  263. package/graph-provider/pyproject.toml +1 -1
  264. package/native/win32/fuli-win-helper.exe +0 -0
  265. package/npm-shrinkwrap.json +2 -2
  266. package/package.json +1 -2
  267. package/packages/roundtable/src/agents/codex/wake.js +25 -2
  268. package/packages/roundtable/src/agents/session-log.js +29 -7
  269. package/packages/roundtable/src/host.js +3 -0
  270. package/packages/roundtable/src/roundtable/delivery-state.js +1 -1
  271. package/packages/roundtable/src/roundtable/near-names.js +27 -0
  272. package/packages/roundtable/src/roundtable/reply-inbox.js +6 -2
  273. package/packages/roundtable/src/roundtable/service.js +198 -53
  274. package/packages/roundtable/src/roundtable/stand-in.js +64 -0
  275. package/packages/roundtable/src/roundtable/store.js +34 -23
  276. package/packages/roundtable/src/roundtable/wake-claim-release.js +88 -0
  277. package/packages/roundtable/src/roundtable/wake-ladder.js +63 -0
  278. package/packages/roundtable/src/roundtable/wake.js +10 -1
  279. package/packages/roundtable/src/standalone/mcp.js +0 -5
  280. package/packages/roundtable/src/standalone/serve.js +13 -0
  281. package/registry/embedding-models.json +208 -0
  282. package/skills/capturing-session-knowledge/SKILL.md +2 -2
  283. package/skills/capturing-session-knowledge/references/capture.md +15 -34
  284. package/skills/capturing-session-knowledge/references/coordination.md +39 -0
  285. package/skills/capturing-session-knowledge/references/retrieval.md +9 -13
  286. package/skills/grilling-project/SKILL.md +8 -53
  287. package/skills/grilling-project/agents/openai.yaml +2 -2
  288. package/skills/grilling-project/references/project-profile.md +6 -23
  289. package/skills/operating-fuli/SKILL.md +36 -8
  290. package/skills/operating-fuli/references/workflow-recipes.md +3 -2
  291. package/src/agent-apps/host-tools/catalog.js +2 -25
  292. package/src/agent-kits/client-detection.js +14 -4
  293. package/src/agent-kits/installer-manifest.js +16 -5
  294. package/src/agent-kits/pack-manifest.js +7 -2
  295. package/src/agent-kits/pins.js +6 -6
  296. package/src/agent-kits/session-clients.js +1 -0
  297. package/src/agent-kits/vendor/agent-installer/README.md +1 -1
  298. package/src/agent-roundtable/tools.js +2 -2
  299. package/src/agent-roundtable/turn-receipt.js +65 -0
  300. package/src/agent-tools/graph-definitions.js +4 -2
  301. package/src/agent-tools/graph-handlers.js +5 -43
  302. package/src/agent-tools/interface-catalog.js +11 -15
  303. package/src/agent-tools/interface-definitions.js +0 -7
  304. package/src/agent-tools/judgment-definitions.js +1 -1
  305. package/src/agent-tools/knowledge-curation-definitions.js +1 -63
  306. package/src/agent-tools/knowledge-definitions.js +11 -124
  307. package/src/agent-tools/project-agent-definitions.js +0 -1
  308. package/src/agent-tools/project-agent-tool-definitions.js +1 -17
  309. package/src/agent-tools/project-organizing-definitions.js +31 -0
  310. package/src/agent-tools/project-space-definitions.js +4 -83
  311. package/src/agent-tools/retired-tools.js +37 -0
  312. package/src/agent-tools/task-entry-definitions.js +4 -3
  313. package/src/agent-tools/tonborg-question-definitions.js +3 -3
  314. package/src/agent-tools.js +5 -1
  315. package/src/agents/choice-answers.js +2 -1
  316. package/src/agents/claude-code/choice-answers.js +2 -24
  317. package/src/agents/claude-desktop/app-control.js +23 -0
  318. package/src/agents/client-apps.js +8 -0
  319. package/src/agents/codex/choice-answers.js +61 -0
  320. package/src/agents/codex/lifecycle-hook.js +3 -11
  321. package/src/agents/dsh/bundle.js +50 -0
  322. package/src/agents/dsh/lifecycle-hook.js +18 -0
  323. package/src/agents/dsh/plugin.js +111 -0
  324. package/src/agents/identity-receipt.js +19 -4
  325. package/src/agents/jsonl-tail.js +35 -0
  326. package/src/agents/lifecycle-message.js +15 -4
  327. package/src/agents/opencode/lifecycle-hook.js +9 -174
  328. package/src/agents/opencode/plugin-file.js +7 -29
  329. package/src/agents/opencode/plugin.js +3 -76
  330. package/src/agents/plugin-hook-process.js +87 -0
  331. package/src/agents/plugin-lifecycle-hook.js +174 -0
  332. package/src/agents/plugin-module-source.js +26 -0
  333. package/src/agents/source-applications.js +3 -3
  334. package/src/agents/token-usage-resolver.js +8 -6
  335. package/src/cli/clients-command.js +3 -3
  336. package/src/cli/command-registry.js +1 -2
  337. package/src/cli/connect-command.js +1 -1
  338. package/src/cli/mcp-command.js +1 -1
  339. package/src/cli/setup-command.js +3 -2
  340. package/src/cli.js +0 -5
  341. package/src/conversations/entry-budget.js +1 -1
  342. package/src/conversations/person-words.js +0 -5
  343. package/src/data-format/local-stores.js +6 -0
  344. package/src/debug-turns/model-request.js +2 -27
  345. package/src/desktop/npm-copy-data.js +20 -6
  346. package/src/embedding-models/manifest.js +147 -0
  347. package/src/embedding-models/port.js +117 -0
  348. package/src/embedding-models/registry.js +24 -0
  349. package/src/embedding-models/store.js +208 -0
  350. package/src/external-knowledge/connectors/custom.js +4 -0
  351. package/src/external-knowledge/connectors/mcp.js +13 -1
  352. package/src/external-knowledge/connectors/response-values.js +8 -0
  353. package/src/external-knowledge/connectors/retrieval-api.js +5 -1
  354. package/src/external-knowledge/service.js +22 -5
  355. package/src/graphiti/agent-conversations.js +3 -2
  356. package/src/graphiti/agent-knowledge-workflows.js +1 -6
  357. package/src/graphiti/capture-change-confirmation.js +1 -1
  358. package/src/graphiti/checkpoint-amendment.js +50 -0
  359. package/src/graphiti/checkpoint-capture.js +7 -3
  360. package/src/graphiti/checkpoint-save-status.js +71 -0
  361. package/src/graphiti/federated-application.js +11 -132
  362. package/src/graphiti/first-run-guide.js +25 -4
  363. package/src/graphiti/fuli-markup.js +1 -1
  364. package/src/graphiti/human-review-channel.js +4 -2
  365. package/src/graphiti/knowledge-curation.js +12 -24
  366. package/src/graphiti/knowledge-provider-mapping.js +0 -21
  367. package/src/graphiti/knowledge-reader.js +0 -7
  368. package/src/graphiti/knowledge-spaces.js +36 -0
  369. package/src/graphiti/local-runtimes.js +13 -2
  370. package/src/graphiti/personal-global-preference-candidates.js +0 -44
  371. package/src/graphiti/project-agent-control-plane.js +5 -12
  372. package/src/graphiti/project-agent-mapping.js +0 -13
  373. package/src/graphiti/project-agent-workflows.js +0 -16
  374. package/src/graphiti/provider-client.js +26 -167
  375. package/src/graphiti/reply-echo-group.js +7 -6
  376. package/src/graphiti/roundtable-host.js +5 -0
  377. package/src/graphiti/session-knowledge-capture.js +5 -31
  378. package/src/graphiti/task-entry-owner-change.js +66 -0
  379. package/src/graphiti/task-entry-preferences.js +16 -4
  380. package/src/graphiti/task-entry-project-scope.js +5 -1
  381. package/src/graphiti/task-knowledge-checkpoint.js +30 -14
  382. package/src/graphiti/topic-proposals.js +31 -8
  383. package/src/graphiti/topic-team-handoff.js +121 -0
  384. package/src/graphiti/workflow-learning.js +0 -25
  385. package/src/graphiti/workspace-provider-client.js +4 -50
  386. package/src/http/api-router.js +15 -0
  387. package/src/http/capture-onboarding-api-router.js +13 -4
  388. package/src/http/embedding-models-api-router.js +36 -0
  389. package/src/http/graph-api-router.js +3 -125
  390. package/src/http/project-organizing-api-router.js +27 -0
  391. package/src/http/reply-echo-api-router.js +2 -2
  392. package/src/http/request-policy.js +0 -4
  393. package/src/judgment/acceptance.js +2 -2
  394. package/src/judgment/agent-view.js +8 -8
  395. package/src/judgment/backend.js +8 -2
  396. package/src/judgment/conversation.js +75 -69
  397. package/src/judgment/engine.js +33 -36
  398. package/src/judgment/explain-method.js +8 -7
  399. package/src/judgment/http.js +3 -1
  400. package/src/judgment/question-options.js +117 -74
  401. package/src/judgment/question-tools.js +54 -34
  402. package/src/judgment/review-delegation.js +16 -3
  403. package/src/judgment/review-prompt.js +29 -33
  404. package/src/judgment/routing.js +4 -3
  405. package/src/judgment/service.js +50 -8
  406. package/src/judgment/verdict-schema.js +2 -7
  407. package/src/knowledge-hard-delete/console-port.js +1 -7
  408. package/src/knowledge-hard-delete/forget-references.js +1 -1
  409. package/src/knowledge-owner-reads/console-port.js +8 -19
  410. package/src/mcp/chat-listing.js +1 -1
  411. package/src/mcp/create-mcp-server.js +12 -32
  412. package/src/mcp/direct-call.js +0 -2
  413. package/src/mcp/preference-delivery.js +4 -2
  414. package/src/mcp/provider-task-context-registry.js +14 -0
  415. package/src/mcp/session-id.js +1 -33
  416. package/src/mcp/tool-annotations.js +3 -44
  417. package/src/model-backends/adapters/builtin-embeddings.js +44 -0
  418. package/src/model-backends/adapters/registry.js +3 -1
  419. package/src/model-backends/config.js +17 -4
  420. package/src/model-backends/port.js +10 -4
  421. package/src/model-backends/runtime.js +6 -13
  422. package/src/model-backends/secret-store.js +2 -20
  423. package/src/native-runtime/runtime.js +13 -2
  424. package/src/presence/windows-helper-pin.js +1 -1
  425. package/src/project-organizing/agent-tool.js +65 -0
  426. package/src/project-organizing/model-tiers.js +31 -0
  427. package/src/project-organizing/port.js +130 -0
  428. package/src/server.js +22 -13
  429. package/src/setup/agents/claude-code/descriptor.json +1 -5
  430. package/src/setup/agents/codex/descriptor.json +1 -5
  431. package/src/setup/agents/cursor/descriptor.json +1 -5
  432. package/src/setup/agents/descriptor-schema.js +4 -1
  433. package/src/setup/agents/opencode/descriptor.json +1 -5
  434. package/src/setup/paths.js +1 -0
  435. package/src/system/client-connection-install.js +12 -2
  436. package/src/system/client-connection-status.js +90 -20
  437. package/src/system/client-restart.js +72 -0
  438. package/src/system/configured-install.js +103 -0
  439. package/src/system/doctor-repair.js +3 -1
  440. package/src/system/doctor.js +3 -1
  441. package/src/system/system-service.js +14 -2
  442. package/src/whats-new/lines/0.25.2.json +13 -0
  443. package/src/whats-new/lines/0.27.0.json +13 -0
  444. package/dist/web/assets/CaptureChangePage-BzwcfacI.js +0 -1
  445. package/dist/web/assets/ConnectionsPage-C_vgqwF2.js +0 -1
  446. package/dist/web/assets/ConnectionsPage-DS2PEG6K.css +0 -1
  447. package/dist/web/assets/FieldRoot-DRf4wM5x.js +0 -1
  448. package/dist/web/assets/InboxPage-1ue8vA7H.css +0 -1
  449. package/dist/web/assets/InboxPage-zNUnnYeJ.js +0 -6
  450. package/dist/web/assets/KnowledgeOrganizerPage-BWvF1GEu.js +0 -1
  451. package/dist/web/assets/KnowledgePage--Z4_kAhq.js +0 -1
  452. package/dist/web/assets/KnowledgePeek-BgzQA9SI.js +0 -1
  453. package/dist/web/assets/KnowledgeWorkspace-0yOpWtEB.js +0 -4
  454. package/dist/web/assets/KnowledgeWorkspace-BgWo6lBj.css +0 -1
  455. package/dist/web/assets/ModelSettingsPage-B9PS1Kay.css +0 -1
  456. package/dist/web/assets/ModelSettingsPage-BL6MsF7C.js +0 -1
  457. package/dist/web/assets/NoticeRow-BXZWn4EZ.js +0 -1
  458. package/dist/web/assets/OverviewPage-BkJ17OYv.js +0 -1
  459. package/dist/web/assets/PageOutline-CFGtHmOK.js +0 -1
  460. package/dist/web/assets/PageOutline-DG5ZYtA8.css +0 -1
  461. package/dist/web/assets/PersonalProjectsPage-AhgP6CL8.js +0 -1
  462. package/dist/web/assets/ProjectAgentsPage-O-cMavcz.js +0 -5
  463. package/dist/web/assets/ProjectJudgmentPolicy-CyHAu0nm.js +0 -2
  464. package/dist/web/assets/ProjectJudgmentPolicy-DnjMniaz.css +0 -1
  465. package/dist/web/assets/PublicProjectsPage-Ck1QSR0R.js +0 -1
  466. package/dist/web/assets/PublicProjectsPage-CskSzffL.css +0 -1
  467. package/dist/web/assets/SettingsPage-CWGk0XZ_.js +0 -1
  468. package/dist/web/assets/SettingsPage-Cj3pEWcd.css +0 -1
  469. package/dist/web/assets/TaskBlockerNotice-iUiD3BuZ.js +0 -1
  470. package/dist/web/assets/UiIcon-vgD4v8q8.js +0 -1
  471. package/dist/web/assets/UiIconButton-BzyMc14P.js +0 -1
  472. package/dist/web/assets/WidgetSlot-Dw5nWlb7.js +0 -2
  473. package/dist/web/assets/WorkbenchListPage-D0xX-YNl.js +0 -1
  474. package/dist/web/assets/_plugin-vue_export-helper-B4pFJCwG.js +0 -9
  475. package/dist/web/assets/agent-occupation-CjfQqSzd.js +0 -1
  476. package/dist/web/assets/agent-profile-BNPLhDog.css +0 -1
  477. package/dist/web/assets/agent-roster-records-Bi5HWDif.js +0 -1
  478. package/dist/web/assets/console-DgRc8Itw.js +0 -1
  479. package/dist/web/assets/conversation-launcher-settings-CZAfuu8B.js +0 -1
  480. package/dist/web/assets/identity-DIG-uOiU.js +0 -1
  481. package/dist/web/assets/index-DF0TcfPY.css +0 -1
  482. package/dist/web/assets/index-RWEx1M91.js +0 -24
  483. package/dist/web/assets/label-table-CDzYRZpc.js +0 -1
  484. package/dist/web/assets/model-BjUERpoQ.js +0 -3
  485. package/dist/web/assets/npm-copies-BLRc0FXW.js +0 -1
  486. package/dist/web/assets/overview-data-Cq1gefY5.js +0 -1
  487. package/dist/web/assets/popup-host-ctKYu9Ze.js +0 -1
  488. package/dist/web/assets/review-api-CJaNgPMA.js +0 -1
  489. package/dist/web/assets/review-store-DSQpb5P8.js +0 -1
  490. package/dist/web/assets/source-adapters-DPJzumzC.js +0 -1
  491. package/dist/web/assets/task-evidence-DIbw2U42.js +0 -1
  492. package/dist/web/assets/useForwardScopeId-DZCnSswO.js +0 -1
  493. package/dist/web/assets/usePrimitiveElement-tPQM7XJs.js +0 -1
  494. package/dist/web/assets/useTeamPeople-D_5cxxf1.js +0 -1
  495. package/dist/web/assets/version-Ci3l8Vnb.js +0 -1
  496. package/docs/public-personal-architecture.md +0 -73
  497. package/graph-provider/fuli_graph/common_knowledge.py +0 -459
  498. package/graph-provider/fuli_graph/common_knowledge_models.py +0 -54
  499. package/graph-provider/fuli_graph/project_management.py +0 -251
  500. package/skills/flreview/SKILL.md +0 -101
  501. package/skills/flreview/agents/openai.yaml +0 -6
  502. package/src/agent-tools/project-relation-definitions.js +0 -36
  503. package/src/agents/codex/acp-process.js +0 -244
  504. package/src/agents/codex/acp-session.js +0 -190
  505. package/src/agents/codex/acp-worker.js +0 -54
  506. package/src/agents/codex/review-command.js +0 -29
  507. package/src/cli/worker-command.js +0 -80
  508. package/src/graphiti/checkpoint-provider-outage.js +0 -23
  509. package/src/graphiti/common-knowledge-candidates.js +0 -222
  510. package/src/graphiti/public-project-relations.js +0 -28
  511. package/src/graphiti/public-projects.js +0 -125
  512. package/src/graphiti/public-submission-reconciliation.js +0 -37
  513. package/src/graphiti/public-submission.js +0 -77
  514. package/src/graphiti/publication-draft-capture.js +0 -28
  515. package/src/graphiti/publication-draft-input.js +0 -11
  516. package/src/graphiti/publication-review-queues.js +0 -50
  517. package/src/graphiti/worker-plan-host.js +0 -92
  518. package/src/graphiti/worker-run-host.js +0 -287
  519. package/src/graphiti/workflow-observation.js +0 -72
  520. package/src/mcp/common-knowledge-preview-tokens.js +0 -67
  521. package/src/server/worker-plan-runtime.js +0 -56
@@ -41,6 +41,9 @@
41
41
  // matchedTerms? }] (a project name, or an active standing assignment);
42
42
  // when it throws, find_agents answers from the directory
43
43
  // and names its code as workUnavailable
44
+ // standInScope({ agentId, name, occupation, projectId, text, client, sessionId })
45
+ // optional: the Agent's shareable index for a session that
46
+ // stands in for it (stand-in.js); never its private memory
44
47
  // requestSignal() optional, sync: the current request's AbortSignal
45
48
  // inRestrictedWorker() optional, sync: true inside a sealed worker run
46
49
  export const ROUNDTABLE_HOST_METHODS = Object.freeze([
@@ -12,7 +12,7 @@ const INBOX = 'sees it in its inbox when its next task starts (task-entry agent_
12
12
  const NOT_STARTED = {
13
13
  execution_claimed: ({ name, blockedBy }) => `FULI started no session: an earlier message to ${name}`
14
14
  + (blockedBy?.messageId ? ` (${blockedBy.messageId}${blockedBy.since ? `, since ${blockedBy.since}` : ''})` : '')
15
- + ' still owns its one wake, and FULI never runs two at once. A wake that nothing ends stops holding an hour after it began; send again then.',
15
+ + ' still owns its one wake, and FULI never runs two at once. If that wake was lost (its console stopped), it is released once its process has ended, checked from an hour after it began.',
16
16
  cleanup_unconfirmed: ({ name }) => `FULI started no session: ${name}'s previously woken process has not been confirmed to end.`,
17
17
  chat_waiting: ({ name }) => `FULI started no session: ${name} is already waiting in this chat.`,
18
18
  no_client: ({ name, clients }) => clients.length
@@ -0,0 +1,27 @@
1
+ // Names a person most likely meant when what they typed matches no Agent
2
+ // (rec#110: 「astra」 for Astro): a name within a small edit distance, ignoring
3
+ // case. Only offered as a question to the person, never used as the match.
4
+ const MAX_SUGGESTIONS = 3;
5
+
6
+ export function nearNames(needle, agents, namesOf) {
7
+ const wanted = String(needle ?? '').trim().toLowerCase();
8
+ if (wanted.length < 3) return [];
9
+ const limit = Math.max(1, Math.floor(wanted.length / 4));
10
+ return agents.map(agent => ({ agent, distance: Math.min(...namesOf(agent).filter(Boolean)
11
+ .map(name => editDistance(wanted, name.toLowerCase()))) }))
12
+ .filter(entry => entry.distance <= limit)
13
+ .sort((left, right) => left.distance - right.distance)
14
+ .slice(0, MAX_SUGGESTIONS).map(entry => entry.agent);
15
+ }
16
+
17
+ function editDistance(left, right) {
18
+ let previous = Array.from({ length: right.length + 1 }, (_, index) => index);
19
+ for (let i = 1; i <= left.length; i += 1) {
20
+ const current = [i];
21
+ for (let j = 1; j <= right.length; j += 1) {
22
+ current[j] = Math.min(previous[j] + 1, current[j - 1] + 1, previous[j - 1] + (left[i - 1] === right[j - 1] ? 0 : 1));
23
+ }
24
+ previous = current;
25
+ }
26
+ return previous[right.length];
27
+ }
@@ -3,13 +3,17 @@ const PREVIEW_LENGTH = 160;
3
3
  const UNREAD = ['pending', 'announced'];
4
4
  export const AGENT_REPLIES_GUIDANCE = 'Other Agents answered asks you sent on the roundtable. Read each full reply once with '
5
5
  + 'read_agent_messages (replies); read_agent_thread shows the whole thread. A reply is not evidence of execution or human approval.';
6
+ export const STAND_IN_HANDBACKS_GUIDANCE = 'While no session of yours could be woken, another session stood in for you (代入) on these asks. '
7
+ + 'Read each full handback once with read_agent_messages (handbacks). It is that session\'s work as you, not yours: keep in your own '
8
+ + 'work record (checkpoint workLog) only what still holds.';
6
9
 
7
10
  // A reply to an ask the asker did not get back from its own message_agent call
8
11
  // waits here until the asker reads it. Its next task entry announces it once;
9
12
  // read_agent_messages hands over the full body once. A reply returned directly
10
13
  // (message_agent, get_agent_message_status) counts as read and is never repeated.
11
- export function createReplyInbox({ store, spaceId }) {
12
- const unread = (agentId, projectId, states) => store.repliesFor(spaceId(), agentId, projectId, states, INBOX_LIMIT + 1);
14
+ // kind 'handback': what a stand-in did as an Agent (stand-in.js), handed to that Agent the same way.
15
+ export function createReplyInbox({ store, spaceId, kind = 'reply' }) {
16
+ const unread = (agentId, projectId, states) => store.repliesFor(spaceId(), agentId, projectId, states, INBOX_LIMIT + 1, kind);
13
17
  // Only the call that moves a reply on returns it, so two processes never both deliver it.
14
18
  const claim = (rows, from, to, via) => rows.filter(row => store.markReplyDelivery(row.id, from, to, via));
15
19
  return {
@@ -1,4 +1,5 @@
1
1
  import { waitForChatChange } from './chat-wait.js';
2
+ import { createWakeClaimRelease } from './wake-claim-release.js';
2
3
  import { createHash, randomUUID } from 'node:crypto';
3
4
  import { projectAddress, resolveProjectAddress, resolveProjectLead, verifiedProjectFolder } from './project-target.js';
4
5
  import { observeReturnedMemory, taskContextHash } from './memory-observation.js';
@@ -7,13 +8,16 @@ import { flaAddress } from './fla-address.js';
7
8
  import { createGroupDiscussion } from './group-discussion.js';
8
9
  import { createPersonConversation } from './person-conversation.js';
9
10
  import { ATTENTION_REPLIES_GUIDANCE, createAttentionInbox } from './attention-inbox.js';
10
- import { createReplyInbox } from './reply-inbox.js';
11
+ import { STAND_IN_HANDBACKS_GUIDANCE, createReplyInbox } from './reply-inbox.js';
11
12
  import { agentDiscoveryProfile, matchesAgentDiscovery } from './discovery.js';
12
13
  import { CLIENT_LABELS, deliveryState } from './delivery-state.js';
13
14
 
14
15
  import { RoundtableError } from '../errors.js';
15
16
  import { assertRoundtableHost } from '../host.js';
16
- import { WAKE_CLIENTS, resolveClientCommand, sessionWorkingDirectory, wakeAgent } from './wake.js';
17
+ import { nearNames } from './near-names.js';
18
+ import { WAKE_CLIENTS, resolveClientCommand, sessionTurnRunning, sessionWorkingDirectory, wakeAgent } from './wake.js';
19
+ import { createWakeLadder, standInAllowed } from './wake-ladder.js';
20
+ import { enterStandIn, recordStandInReply, standInState } from './stand-in.js';
17
21
 
18
22
  const THREAD_MESSAGE_LIMIT = 24;
19
23
  const NESTED_ASK_LIMIT = 3;
@@ -25,10 +29,13 @@ const RECORDED_REFUSALS = new Set(['execution_claimed', 'cleanup_unconfirmed']);
25
29
  // Agents talk to each other directly: an ask wakes the recipient in its own
26
30
  // client and returns its answer, or waits in its inbox for its next task.
27
31
  export function createAgentRoundtable({ host, peer = null, openStore, wake = wakeAgent, idFactory = randomUUID,
28
- env = process.env, locateCwd = sessionWorkingDirectory, clientAvailable = (client) => Boolean(resolveClientCommand(client)),
32
+ env = process.env, locateCwd = sessionWorkingDirectory, turnRunning = sessionTurnRunning, clientAvailable = (client) => Boolean(resolveClientCommand(client)),
29
33
  // Boot-anchor evidence recorded with a cleanup hold. Production records none
30
34
  // (null) until a separately verified proof exists; release stays disabled.
31
35
  bootEvidence = async () => null, now = Date.now,
36
+ // Which recorded wake processes still run (wake-claim-release.js); null = cannot tell.
37
+ inspectProcess = async () => null,
38
+ groupAlive = undefined,
32
39
  // The installed desktop app of a client, or null. Runtimes pass
33
40
  // createDesktopApps (agents/desktop-registry.js); without it every ask wakes headlessly.
34
41
  desktopApp = () => null }) {
@@ -39,6 +46,7 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
39
46
  const refreshes = new Map();
40
47
  let refreshOffset = 0;
41
48
  const store = new Proxy({}, { get: (_target, property) => (opened ??= openStore())[property] });
49
+ const wakeClaims = createWakeClaimRelease({ store, inspectProcess, groupAlive, now });
42
50
 
43
51
  async function sender({ taskContextToken, sourceApplication }) {
44
52
  if (!taskContextToken) return { agent: null, client: sourceApplication ?? 'other', session: null, projectId: null };
@@ -54,8 +62,14 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
54
62
  async function agentById(agentId) {
55
63
  return (await agents()).find((agent) => agent.agentId === agentId) ?? null;
56
64
  }
65
+ const agentNames = agent => [agent.profile.displayName, agent.profile.name];
66
+ function didYouMean(needle, all) {
67
+ const near = nearNames(needle, all, agentNames);
68
+ return near.length ? ` Did you mean ${near.map(agent => `${label(agent)} (${agent.agentId})`).join(', ')}? Ask the person before using it.` : '';
69
+ }
57
70
  async function recipient(to) {
58
- const needle = String(to ?? '').trim().replace(/^@\{?|\}$/g, '');
71
+ // find_agents' address (local:<agentId>) is accepted as it is (rec#110).
72
+ const needle = String(to ?? '').trim().replace(/^@\{?|\}$/g, '').replace(/^local:/, '');
59
73
  const all = await agents();
60
74
  const exact = all.find((agent) => agent.agentId === needle || agent.agentId === decodeURIComponent(needle));
61
75
  if (exact) return exact;
@@ -67,7 +81,7 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
67
81
  if (named.length === 1) return named[0];
68
82
  throw validation(named.length
69
83
  ? `More than one Agent is named "${needle}"; use its agentId: ${named.map((agent) => agent.agentId).join(', ')}`
70
- : `No active Agent matches "${needle}". Call find_agents first.`);
84
+ : `No active Agent matches "${needle}".${didYouMean(needle, all)} Call find_agents first.`);
71
85
  }
72
86
 
73
87
  // An Agent addressed by ID who works only in another project is a cross-project
@@ -131,7 +145,11 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
131
145
  recentConversations: await conversations(agent, personalProjectId)
132
146
  })));
133
147
  const remote = peer ? await peer.remoteAgents({ query: needle, occupation, capability, projectId }).catch(() => null) : null;
148
+ // Nothing matched what the person typed: the closest names, as a question to them (rec#110).
149
+ const near = !local.length && needle && !project ? nearNames(needle, await agents(), agentNames) : [];
134
150
  return { agents: local, ...(workUnavailable ? { workUnavailable } : {}),
151
+ ...(near.length ? { didYouMean: near.map(agent => ({ agentId: agent.agentId, name: label(agent) })),
152
+ didYouMeanGuidance: 'No Agent has that name; ask the person whether they meant one of these before messaging it.' } : {}),
135
153
  ...(project ? { project: { projectId: personalProjectId, address: `project:${personalProjectId}`, reason: project.reason } } : {}),
136
154
  ...(remote ? { remoteAgents: remote.agents, ...(remote.unavailable ? { remoteUnavailable: remote.unavailable } : {}) } : {}),
137
155
  guidance: remote
@@ -139,11 +157,15 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
139
157
  : 'message_agent sends to an Agent (optionally one of its recentConversations) and returns its answer.' };
140
158
  }
141
159
 
142
- // Ordered attempts: the chosen conversation (or the Agent's latest one), then a
143
- // fresh session with the Agent's memory in that client and in its other clients.
144
- async function deliveryTargets(agent, conversation, projectId, projectPath, { clients = null, freshCwd = null, strictCwd = false } = {}) {
145
- const allowed = (agent.profile.allowedClients ?? []).filter((client) => WAKE_CLIENTS.includes(client)
146
- && (!clients || clients.includes(client)) && clientAvailable(client));
160
+ // Ordered attempts (wake-ladder.js): the chosen conversation (or the Agent's
161
+ // latest one), then a fresh session with the Agent's memory, in the sender's
162
+ // own client first (preferClient), then in the Agent's other clients. Each
163
+ // candidate passed over is said on the ladder with why.
164
+ async function deliveryTargets(agent, conversation, projectId, projectPath, { clients = null, freshCwd = null, strictCwd = false,
165
+ preferClient = null, ladder = null } = {}) {
166
+ const permitted = (agent.profile.allowedClients ?? []).filter((client) => WAKE_CLIENTS.includes(client)
167
+ && (!clients || clients.includes(client)));
168
+ const allowed = permitted.filter(client => clientAvailable(client));
147
169
  const explicit = Boolean(conversation) && !['auto', 'new'].includes(conversation);
148
170
  let resumable = null;
149
171
  if (conversation !== 'new') {
@@ -151,16 +173,25 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
151
173
  const candidates = explicit
152
174
  ? known.filter((session) => session.sessionId === conversation && (!strictCwd || session.projectId === projectId))
153
175
  : known.filter((session) => !projectId || session.projectId === projectId);
176
+ if (!candidates.length) ladder?.skip('resume', { reason: 'no_previous_session' });
154
177
  for (const session of candidates) {
155
- if (!allowed.includes(session.client)) continue;
178
+ const passed = reason => ladder?.skip('resume', { client: session.client, session: session.sessionId, reason });
179
+ if (!allowed.includes(session.client)) { passed(permitted.includes(session.client) ? 'client_unavailable' : 'client_not_allowed'); continue; }
156
180
  const cwd = locateCwd(session.client, session.sessionId);
157
- if (cwd) { resumable = { client: session.client, sessionId: session.sessionId, cwd }; break; }
181
+ if (!cwd) { passed('session_not_found'); continue; }
182
+ // A running turn is never joined: a desktop app queues behind it, a headless wake passes it over (deliver).
183
+ resumable = { client: session.client, sessionId: session.sessionId, cwd,
184
+ ...(turnRunning(session.client, session.sessionId) ? { busy: true } : {}) };
185
+ break;
158
186
  }
159
187
  if (explicit && !resumable) throw validation('That conversation cannot be resumed on this machine');
160
188
  }
161
- const freshClients = resumable
162
- ? [resumable.client, ...(explicit ? [] : allowed.filter((client) => client !== resumable.client))]
163
- : WAKE_CLIENTS.filter((client) => allowed.includes(client));
189
+ if (!explicit && preferClient && WAKE_CLIENTS.includes(preferClient) && !allowed.includes(preferClient)) {
190
+ ladder?.skip('new_session', { client: preferClient,
191
+ reason: permitted.includes(preferClient) ? 'client_unavailable' : 'client_not_allowed' });
192
+ }
193
+ const freshClients = explicit ? [resumable.client]
194
+ : [...new Set([preferClient ?? resumable?.client, ...WAKE_CLIENTS])].filter((client) => allowed.includes(client));
164
195
  // A strict delivery only starts new sessions in a folder known for this project.
165
196
  const strictFolder = strictCwd ? freshCwd ?? resumable?.cwd ?? await projectFolder(agent, projectId) : null;
166
197
  if (strictCwd && !strictFolder) return resumable ? [resumable] : [];
@@ -183,27 +214,37 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
183
214
  // Tries each target until one answers as the restored Agent. The grant is the
184
215
  // only authority the woken session receives and is revoked after every attempt.
185
216
  async function deliver({ ask, attempts, prompt, timeoutMs, issueGrant, signal, onSpawn, peerDepth, oneGrant = false,
186
- readOnly = false }) {
217
+ readOnly = false, ladder = null }) {
187
218
  const unusable = new Set();
188
219
  let failure = 'wake_failed';
189
220
  let cleanup = null;
190
221
  for (const delivery of attempts) {
191
222
  if (unusable.has(delivery.client)) continue;
192
223
  if (signal?.aborted) { failure = 'cancelled'; break; }
224
+ // Resuming in place would write into a turn that is still running.
225
+ if (delivery.busy) {
226
+ failure = 'session_busy';
227
+ ladder?.skip('resume', { client: delivery.client, session: delivery.sessionId, reason: failure });
228
+ continue;
229
+ }
193
230
  store.updateMessage(ask.id, { status: 'delivering', toClient: delivery.client, toSession: delivery.sessionId });
194
231
  let answer;
195
232
  let grant;
196
233
  try {
197
234
  grant = await issueGrant(delivery, timeoutMs / 1000);
198
235
  answer = await wake({ client: delivery.client, sessionId: delivery.sessionId, cwd: delivery.cwd,
199
- timeoutMs, prompt, delegationToken: grant.token, peerDepth, signal, onSpawn, readOnly,
236
+ timeoutMs, prompt, delegationToken: grant.token, peerDepth, signal, readOnly,
237
+ onSpawn: (pid) => { wakeClaims.recordSpawn(ask.id, pid); onSpawn?.(pid); },
200
238
  onSession: session => host.sealDelegation({ token: grant.token, sessionId: session }) });
201
239
  const verified = answer.sessionId && await host.verifyDelegation({ token: grant.token, sessionId: answer.sessionId });
202
240
  if (!verified?.redeemed) throw Object.assign(new Error('The receiving session did not restore the Agent'),
203
241
  { code: 'delegation_not_redeemed' });
204
242
  store.recordMemoryResult(ask.id, verified.memoryResultCount ?? 0);
205
243
  } catch (error) {
206
- failure = error.code ?? 'wake_failed';
244
+ failure = attemptFailure(error);
245
+ ladder?.attempt(delivery, 'failed', failure);
246
+ // The team rules refused this Agent: no other channel or stand-in may reach it.
247
+ if (failure === 'not_permitted') break;
207
248
  // A process that may still be running must not get a sibling on another channel.
208
249
  if (error.cleanup) {
209
250
  cleanup = error.cleanup;
@@ -224,6 +265,7 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
224
265
  // the fail-closed backstop if the Provider is temporarily unreachable.
225
266
  if (grant?.token) await host.revokeDelegation({ token: grant.token }).catch(() => {});
226
267
  }
268
+ ladder?.attempt(delivery, 'answered');
227
269
  return { answer, delivery, via: `${delivery.client}:${delivery.sessionId ? 'resume' : 'new'}` };
228
270
  }
229
271
  throw Object.assign(new Error('No client answered'), { code: failure, ...(cleanup ? { cleanup } : {}) });
@@ -255,7 +297,12 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
255
297
  const target = resolved?.agent ?? await recipient(to);
256
298
  const targetProjectId = projectId ?? agentProjectOutsideSender(target, from) ?? from.projectId;
257
299
  const crossProject = Boolean(targetProjectId && from.projectId && targetProjectId !== from.projectId);
258
- if (from.agent?.agentId === target.agentId && !crossProject && !threadId) throw validation('An Agent cannot open a thread with itself');
300
+ // The same FLA in another session is another instance of it (rec#109): it
301
+ // is reached by naming that session, never by its bare name.
302
+ if (from.agent?.agentId === target.agentId && !crossProject && !threadId
303
+ && (['auto', 'new'].includes(conversation ?? 'auto') || conversation === from.session)) {
304
+ throw validation(await sameAgentGuidance(target, from));
305
+ }
259
306
  const { thread, history } = openThread(threadId, from.projectId, body, label(target));
260
307
  const ask = store.appendMessage(thread.id, { id: idFactory(), kind: 'ask', body, status: 'queued',
261
308
  from: { agentId: from.agent?.agentId, name: from.agent ? label(from.agent) : CLIENT_LABELS[from.client] ?? from.client,
@@ -265,11 +312,14 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
265
312
  // The source token never enters the communication log.
266
313
  const nested = history.filter((message) => message.kind === 'ask' && message.status === 'delivering').length;
267
314
  if (!wait || nested >= NESTED_ASK_LIMIT) return queued(thread, ask, target, nested ? 'nested_limit' : 'not_waiting');
268
- if (!taskContextToken || !from.projectId) return queued(thread, ask, target, 'task_context_required');
269
- const woken = await wakeAsk({ thread, ask, target, chatWakeChatId, signal, readOnly,
315
+ if (!taskContextToken) return queued(thread, ask, target, 'task_context_required');
316
+ const ladder = createWakeLadder();
317
+ // A task outside every project holds no authority the Provider can pass on.
318
+ const woken = !from.projectId ? withoutGrant(ask, ladder) : await wakeAsk({ thread, ask, target, chatWakeChatId, signal, readOnly, ladder,
270
319
  timeoutMs: Math.min(Math.max(timeoutSeconds, 30), 900) * 1000,
271
320
  targets: async () => deliveryTargets(target, conversation, targetProjectId, crossProject ? null : projectPath,
272
- crossProject ? { strictCwd: true, freshCwd: await verifiedProjectFolder(host, targetProjectId, projectPath) } : {}),
321
+ { preferClient: from.client, ladder,
322
+ ...(crossProject ? { strictCwd: true, freshCwd: await verifiedProjectFolder(host, targetProjectId, projectPath) } : {}) }),
273
323
  noTargets: () => crossProject && WAKE_CLIENTS.some(client => target.profile.allowedClients.includes(client) && clientAvailable(client))
274
324
  ? 'no_working_directory' : 'no_client',
275
325
  prompt: wakePrompt({ thread, ask, target, senderName: ask.from_name, senderClient: from.client,
@@ -280,12 +330,24 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
280
330
  targetSessionId: delivery.client === 'codex' ? delivery.sessionId : null,
281
331
  lifetimeSeconds: lifetime }),
282
332
  replyTo: { agentId: from.agent?.agentId, name: ask.from_name, client: from.client, session: from.session } });
283
- if (woken.status !== 'answered') return { ...queued(thread, ask, target, woken.reason, woken), ...cleanupView(woken.cleanup) };
333
+ if (woken.status !== 'answered') {
334
+ // Nobody could come: the sender's own session takes the recipient on, unless
335
+ // the recipient may still be running, the rules refused it, or this is a woken session.
336
+ // A cross-project ask keeps its strict boundary, and a chat or discussion turn
337
+ // must be the member itself.
338
+ if (woken.reason !== 'waiting_in_desktop_app' && standInAllowed(woken.reason) && !woken.cleanup
339
+ && !env.FULI_ROUNDTABLE_DELEGATION && !crossProject && !readOnly && !chatWakeChatId) {
340
+ return { ...await enterStandIn({ host, store, thread, ask, target: { agentId: target.agentId, name: label(target),
341
+ occupation: target.occupation ?? null }, from: { name: ask.from_name, client: from.client, session: from.session },
342
+ projectId: targetProjectId, reason: woken.reason }), ladder: ladder.view('stand_in') };
343
+ }
344
+ return { ...queued(thread, ask, target, woken.reason, woken), ...cleanupView(woken.cleanup), ladder: ladder.view(woken.tier ?? null) };
345
+ }
284
346
  replyInbox.handOver(woken.reply, 'message_agent');
285
347
  const observation = await observeReturnedMemory(host, store, { ask, reply: woken.reply, from, taskContextToken });
286
348
  return { status: 'answered', threadId: thread.id, messageId: ask.id, recipient: { agentId: target.agentId, name: label(target) },
287
349
  ...(observation ? { memoryObservation: observation } : {}),
288
- via: woken.via, reply: woken.reply.body };
350
+ via: woken.via, reply: woken.reply.body, ladder: ladder.view(woken.tier) };
289
351
  }
290
352
 
291
353
  // The one way an ask wakes its recipient, whoever sent it: a durable execution
@@ -293,7 +355,8 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
293
355
  // verified answer becomes its reply. An ask that is not answered stays queued
294
356
  // with the reason, so the recipient still sees it when it next works.
295
357
  async function wakeAsk({ thread, ask, target, targets, noTargets, prompt, timeoutMs, signal, issueGrant, replyTo,
296
- chatWakeChatId = null, readOnly = false }) {
358
+ chatWakeChatId = null, readOnly = false, ladder = null }) {
359
+ await wakeClaims.release(spaceId(), target.agentId);
297
360
  const claim = store.claimExecution(spaceId(), target.agentId, ask.id, { chatWakeChatId });
298
361
  if (!claim.claimed) {
299
362
  // Recorded so the thread and get_agent_message_status say why no client has it.
@@ -311,15 +374,15 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
311
374
  }
312
375
  // A read-only turn cannot go to a desktop conversation, which runs with the person's own settings.
313
376
  const app = readOnly ? null : desktopApp(attempts[0].client);
314
- if (app) return handToDesktop({ thread, ask, target, delivery: attempts[0], app, timeoutMs, signal });
377
+ if (app) return handToDesktop({ thread, ask, target, delivery: attempts[0], app, timeoutMs, signal, ladder });
315
378
  try {
316
- const { answer, delivery, via } = await deliver({ ask, attempts, prompt, timeoutMs, signal, readOnly, issueGrant });
379
+ const { answer, delivery, via } = await deliver({ ask, attempts, prompt, timeoutMs, signal, readOnly, issueGrant, ladder });
317
380
  finishWake(ask);
318
381
  store.updateMessage(ask.id, { status: 'answered', via });
319
382
  const reply = store.appendMessage(thread.id, { id: idFactory(), kind: 'reply', body: answer.body, status: 'sent',
320
383
  inReplyTo: ask.id, via, from: { agentId: target.agentId, name: label(target), client: delivery.client,
321
384
  session: answer.sessionId }, to: replyTo, delivery: replyInbox.pendingFor(replyTo) });
322
- return { status: 'answered', reply, via };
385
+ return { status: 'answered', reply, via, tier: delivery.sessionId ? 'resume' : 'new_session' };
323
386
  } catch (error) {
324
387
  finishWake(ask, error);
325
388
  store.updateMessage(ask.id, { status: 'queued', error: error.code ?? 'wake_failed' });
@@ -327,27 +390,64 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
327
390
  }
328
391
  }
329
392
 
330
- // The ask joins the Agent's inbox conversation in the desktop app, where the
331
- // person sees it being worked on; the conversation answers with
332
- // reply_agent_message. The caller waits for that reply up to its timeout; after
333
- // it, the ask stays queued and the reply still reaches the thread.
334
- async function handToDesktop({ thread, ask, target, delivery, app, timeoutMs, signal }) {
393
+ // The ask joins a conversation in the desktop app, where the person sees it
394
+ // being worked on: the Agent's own latest conversation when it has one (the
395
+ // app queues it behind a running turn), else the Agent's inbox conversation.
396
+ // The conversation answers with reply_agent_message. The caller waits for that
397
+ // reply up to its timeout; after it, the ask stays queued and the reply still
398
+ // reaches the thread.
399
+ async function handToDesktop({ thread, ask, target, delivery, app, timeoutMs, signal, ladder = null }) {
335
400
  const inbox = { spaceId: spaceId(), agentId: target.agentId, projectId: messageProject(ask) ?? '', client: delivery.client };
336
- try {
337
- const conversationId = store.desktopInboxes.find(inbox) ?? store.desktopInboxes.remember({ ...inbox,
338
- conversationId: await app.createInbox({ cwd: delivery.cwd, greeting: inboxGreeting(target) }) });
401
+ const message = wakePrompt({ thread, ask, target, senderName: ask.from_name,
402
+ senderClient: ask.from_client, targetProjectId: ask.target_project_id, replyInInbox: true });
403
+ const handTo = async conversationId => {
339
404
  store.updateMessage(ask.id, { status: 'queued', toClient: delivery.client, toSession: conversationId });
340
- await app.handOff({ threadId: conversationId, message: wakePrompt({ thread, ask, target, senderName: ask.from_name,
341
- senderClient: ask.from_client, targetProjectId: ask.target_project_id, replyInInbox: true }) });
405
+ await app.handOff({ threadId: conversationId, message });
406
+ };
407
+ let tier = null;
408
+ try {
409
+ if (delivery.sessionId) {
410
+ try {
411
+ await handTo(delivery.sessionId);
412
+ ladder?.attempt(delivery, 'handed_off');
413
+ tier = 'resume';
414
+ } catch (error) {
415
+ ladder?.attempt(delivery, 'failed', error.code ?? 'codex_app_failed');
416
+ }
417
+ }
418
+ if (!tier) {
419
+ const conversationId = store.desktopInboxes.find(inbox) ?? store.desktopInboxes.remember({ ...inbox,
420
+ conversationId: await app.createInbox({ cwd: delivery.cwd, greeting: inboxGreeting(target) }) });
421
+ await handTo(conversationId);
422
+ ladder?.attempt({ client: delivery.client, sessionId: null }, 'handed_off');
423
+ tier = 'new_session';
424
+ }
342
425
  } catch (error) {
426
+ ladder?.attempt({ client: delivery.client, sessionId: null }, 'failed', error.code ?? 'wake_failed');
343
427
  store.updateMessage(ask.id, { status: 'queued', error: error.code ?? 'wake_failed' });
344
428
  return { status: 'queued', reason: error.code ?? 'wake_failed' };
345
429
  } finally { finishWake(ask); }
346
430
  const replied = await waitForChatChange(() => store.messages(thread.id).find(message => message.in_reply_to === ask.id) ?? null,
347
431
  { store: store.chat, signal, timeoutSeconds: timeoutMs / 1000, ready: Boolean }).catch(() => null);
348
432
  const handed = store.getMessage(ask.id);
349
- return replied ? { status: 'answered', reply: replied, via: replied.via }
350
- : { status: 'queued', reason: 'waiting_in_desktop_app', toClient: handed.to_client, toSession: handed.to_session };
433
+ return replied ? { status: 'answered', reply: replied, via: replied.via, tier }
434
+ : { status: 'queued', reason: 'waiting_in_desktop_app', toClient: handed.to_client, toSession: handed.to_session, tier };
435
+ }
436
+
437
+ // A sender outside every project cannot grant a wake; the ladder says so for
438
+ // both tiers that need the grant.
439
+ function withoutGrant(ask, ladder) {
440
+ for (const tier of ['resume', 'new_session']) ladder.skip(tier, { reason: 'sender_without_project' });
441
+ store.updateMessage(ask.id, { status: 'queued', error: 'sender_without_project' });
442
+ return { status: 'queued', reason: 'sender_without_project' };
443
+ }
444
+
445
+ // Addressing one's own FLA by name: name the other session instead.
446
+ async function sameAgentGuidance(target, from) {
447
+ const others = (await conversations(target, null)).filter(session => session.sessionId !== from.session);
448
+ return `${label(target)} is the current task's own FLA. To reach another session of it, pass conversation: `
449
+ + (others.length ? others.map(session => `"${session.sessionId}" (${CLIENT_LABELS[session.client] ?? session.client})`).join(', ')
450
+ : 'a sessionId from find_agents recentConversations (none is known now)') + '.';
351
451
  }
352
452
 
353
453
  // The recipient is resolved before the thread, so an unknown threadId never
@@ -451,6 +551,7 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
451
551
  from: { agentId: `peer:${device.nodeId.slice(0, 16)}:${assertion.from.agentId}`, name: `${assertion.from.name} · ${device.name}`,
452
552
  client: assertion.from.client ?? 'other' },
453
553
  to: { agentId: target.agentId, name: label(target) } });
554
+ await wakeClaims.release(share.spaceId, target.agentId);
454
555
  const execution = store.claimExecution(share.spaceId, target.agentId, ask.id);
455
556
  if (!execution.claimed) {
456
557
  store.updateMessage(ask.id, { status: 'failed', error: execution.reason });
@@ -515,7 +616,7 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
515
616
  return { status: ask.status, threadId: ask.thread_id, messageId: ask.id,
516
617
  recipient: { agentId: ask.to_agent, name: ask.to_name }, ...(reply ? { reply: reply.body, via: reply.via } : {}),
517
618
  ...(ask.error ? { reason: ask.error } : {}), ...cleanupView(storedCleanup(ask)),
518
- ...(ask.status === 'queued' ? await queuedState(ask) : {}) };
619
+ ...(ask.status === 'queued' ? await queuedState(ask) : {}), ...(ask.status === 'stand_in' ? standInState(ask) : {}) };
519
620
  }
520
621
 
521
622
  async function cancelMessage({ taskContextToken, sourceApplication, messageId }) {
@@ -529,22 +630,22 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
529
630
  function taskScopedAsk(me, messageId) {
530
631
  const ask = store.getMessage(messageId);
531
632
  const thread = ask && store.getThread(ask.thread_id);
532
- if (!ask || ask.kind !== 'ask' || !me.agent || !me.projectId || thread?.space_id !== spaceId()
533
- || !((ask.from_agent === me.agent.agentId && thread.project_id === me.projectId)
534
- || (ask.to_agent === me.agent.agentId && messageProject(ask) === me.projectId))) {
633
+ if (!ask || ask.kind !== 'ask' || !me.agent || thread?.space_id !== spaceId()
634
+ || !((ask.from_agent === me.agent.agentId && sameProject(thread.project_id, me.projectId))
635
+ || (ask.to_agent === me.agent.agentId && sameProject(messageProject(ask), me.projectId)))) {
535
636
  throw validation('No such message for this Agent in the current project');
536
637
  }
537
638
  return ask;
538
639
  }
539
640
 
540
641
  async function cancelAsk(ask) {
541
- // A wake that outlived its console no longer answers it; its ask is back in the inbox.
542
- if (ask.status === 'delivering' && !peer?.hasSent(ask.id) && store.expireStaleClaims(spaceId(), ask.to_agent)) ask = store.getMessage(ask.id);
642
+ // A wake its console lost, whose process has ended, no longer answers; its ask is back in the inbox.
643
+ if (ask.status === 'delivering' && !peer?.hasSent(ask.id) && await wakeClaims.release(spaceId(), ask.to_agent)) ask = store.getMessage(ask.id);
543
644
  if (peer?.hasSent(ask.id)) {
544
645
  if (!REMOTE_PENDING.has(ask.status)) return remoteView(ask);
545
646
  return remoteView(applyRemote(ask.id, await peer.cancel(ask.id)));
546
647
  }
547
- if (ask.status === 'queued') store.updateMessage(ask.id, { status: 'cancelled', error: 'cancelled' });
648
+ if (['queued', 'stand_in'].includes(ask.status)) store.updateMessage(ask.id, { status: 'cancelled', error: 'cancelled' });
548
649
  else if (ask.status === 'delivering') throw validation('This message is being answered in another process; it ends at its timeout');
549
650
  return statusOf(store.getMessage(ask.id));
550
651
  }
@@ -562,30 +663,60 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
562
663
  if (!me.agent) return { messages: [] };
563
664
  const attentionReplies = me.projectId ? attentionInbox.read(me.agent.agentId, me.projectId) : [];
564
665
  const { replies, more } = me.projectId ? replyInbox.read(me.agent.agentId, me.projectId) : { replies: [] };
666
+ const { replies: handbacks } = me.projectId ? handbackInbox.read(me.agent.agentId, me.projectId) : { replies: [] };
565
667
  return { messages: store.pendingFor(spaceId(), me.agent.agentId)
566
668
  .filter(message => messageProject(message) === me.projectId).map(inboxItem),
567
669
  guidance: 'Answer each with reply_agent_message.',
568
670
  ...(replies.length ? { replies, repliesGuidance: `Answers to asks you sent, each returned once.${more
569
671
  ? ' More are waiting: call read_agent_messages again.' : ''}` } : {}),
672
+ ...(handbacks.length ? { handbacks, handbacksGuidance: STAND_IN_HANDBACKS_GUIDANCE } : {}),
570
673
  ...(attentionReplies.length ? { attentionReplies, attentionRepliesGuidance: ATTENTION_REPLIES_GUIDANCE } : {}) };
571
674
  }
572
675
 
573
676
  async function replyMessage({ taskContextToken, sourceApplication, messageId, body }) {
574
677
  const me = await sender({ taskContextToken, sourceApplication });
575
678
  const ask = store.getMessage(messageId);
576
- if (!ask || ask.kind !== 'ask' || !me.agent || ask.to_agent !== me.agent.agentId
577
- || messageProject(ask) !== me.projectId) throw validation('No such message for this Agent');
679
+ // The session that stood in answers for the Agent it stood in for; the Agent
680
+ // itself can still answer its own ask first.
681
+ if (ask?.kind === 'ask' && ask.status === 'stand_in' && me.session && ask.from_session === me.session
682
+ && (ask.from_agent ?? null) === (me.agent?.agentId ?? null) && ask.to_client === me.client && ask.to_session === me.session) {
683
+ if (!standInInScope(ask, me)) throw validation('No such message for this Agent in the current project');
684
+ return recordStandInReply({ store, ask, executor: { client: me.client, session: me.session }, body, idFactory });
685
+ }
686
+ // The conversation FULI handed the ask to answers for its recipient, whichever
687
+ // FLA its task was entered as: a member's desktop conversation enters as the
688
+ // project lead it reports to, and its answer was refused (rec#111).
689
+ const handedHere = ask?.kind === 'ask' && Boolean(me.session) && ask.to_client === me.client && ask.to_session === me.session
690
+ && ask.from_session !== me.session;
691
+ // The store reads by ID only: an ask of another space is never this task's to answer.
692
+ if (!ask || ask.kind !== 'ask' || !(handedHere || (me.agent && ask.to_agent === me.agent.agentId))
693
+ || store.getThread(ask.thread_id)?.space_id !== spaceId()
694
+ || !sameProject(messageProject(ask), me.projectId)) throw validation('No such message for this Agent');
695
+ const answering = me.agent && ask.to_agent === me.agent.agentId
696
+ ? { agentId: me.agent.agentId, name: label(me.agent) } : { agentId: ask.to_agent, name: ask.to_name };
578
697
  if (ask.target_project_id && ask.target_project_id !== store.getThread(ask.thread_id)?.project_id) {
579
- if (await host.projectLeadId(ask.target_project_id) !== me.agent.agentId) throw validation('The target project lead changed');
698
+ if (await host.projectLeadId(ask.target_project_id) !== answering.agentId) throw validation('The target project lead changed');
580
699
  }
581
700
  if (ask.status === 'answered') throw validation('This message was already answered');
582
701
  if (ask.from_agent?.startsWith('peer:')) throw validation('A remote device message is answered by its delivery, not from the inbox');
583
702
  store.updateMessage(ask.id, { status: 'answered', via: `${me.client}:inbox` });
584
703
  const to = { agentId: ask.from_agent, name: ask.from_name, client: ask.from_client, session: ask.from_session };
585
704
  store.appendMessage(ask.thread_id, { id: idFactory(), kind: 'reply', body, status: 'sent', inReplyTo: ask.id,
586
- via: `${me.client}:inbox`, from: { agentId: me.agent.agentId, name: label(me.agent), client: me.client, session: me.session },
705
+ via: `${me.client}:inbox`, from: { ...answering, client: me.client, session: me.session },
587
706
  to, delivery: replyInbox.pendingFor(to) });
588
- return { status: 'sent', threadId: ask.thread_id };
707
+ // asker: who this answer is for, so the turn's receipt can name them.
708
+ return { status: 'sent', threadId: ask.thread_id,
709
+ ...(ask.from_agent ? { asker: { agentId: ask.from_agent, name: ask.from_name } } : {}) };
710
+ }
711
+
712
+ // A stand-in answers only inside the space and project its ask was sent from,
713
+ // and a stand-in is never cross-project (messageAgent), so the ask's target
714
+ // project is that same project. A task outside every project matches only null.
715
+ function standInInScope(ask, me) {
716
+ const thread = store.getThread(ask.thread_id);
717
+ if (!thread || thread.space_id !== spaceId()) return false;
718
+ const project = thread.project_id ?? null;
719
+ return project === (me.projectId ?? null) && (ask.target_project_id ?? project) === project;
589
720
  }
590
721
 
591
722
  function refreshRemote({ threadId = null } = {}) {
@@ -658,9 +789,12 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
658
789
  ? { token: env.FULI_ROUNDTABLE_DELEGATION, sessionId: sessionId ?? null } : null;
659
790
  }
660
791
 
792
+ // A task with no project (a global assistant) reaches the messages of no project.
793
+ const sameProject = (left, right) => (left ?? null) === (right ?? null);
661
794
  const messageProject = message => message.target_project_id ?? store.getThread(message.thread_id)?.project_id ?? null;
662
795
  const attentionInbox = createAttentionInbox({ store, spaceId });
663
796
  const replyInbox = createReplyInbox({ store, spaceId });
797
+ const handbackInbox = createReplyInbox({ store, spaceId, kind: 'handback' });
664
798
  // A reply returned to the asker directly is not delivered again from its inbox.
665
799
  const handedOver = (view, via) => {
666
800
  if (view.reply) replyInbox.handOver(store.messages(view.threadId).find(message => message.in_reply_to === view.messageId), via);
@@ -668,7 +802,10 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
668
802
  };
669
803
  // False when an earlier run of this Agent may still be running (a cleanup hold).
670
804
  const waitUntilIdle = async (agentId, signal) => {
671
- const state = await waitForChatChange(() => store.executionState(spaceId(), agentId),
805
+ const state = await waitForChatChange(async () => {
806
+ await wakeClaims.release(spaceId(), agentId);
807
+ return store.executionState(spaceId(), agentId);
808
+ },
672
809
  { store: store.chat, signal, ready: state => state.held || !state.busy });
673
810
  return !state.held;
674
811
  };
@@ -705,6 +842,7 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
705
842
  deliverAttentionReply: attentionInbox.deliver,
706
843
  attentionReplies: attentionInbox.taskEntry,
707
844
  agentReplies: replyInbox.announce,
845
+ standInHandbacks: handbackInbox.announce,
708
846
  ownerThread,
709
847
  ownerSend: async input => ownerThread({ threadId: await person.send(input) }),
710
848
  ownerSetMode: async input => ownerThread({ threadId: await person.setMode(input) }),
@@ -714,6 +852,13 @@ export function createAgentRoundtable({ host, peer = null, openStore, wake = wak
714
852
  } };
715
853
  }
716
854
 
855
+ // A Provider refusal of the grant without a code of its own (403: the
856
+ // reporting lines do not connect these Agents) is the team rules saying no.
857
+ function attemptFailure(error) {
858
+ if (error.status === 403 && (!error.code || error.code === 'provider_error')) return 'not_permitted';
859
+ return error.code ?? 'wake_failed';
860
+ }
861
+
717
862
  function remoteRowId(kind, parts) {
718
863
  return `peer-${kind}-${createHash('sha256').update(JSON.stringify(parts)).digest('hex').slice(0, 40)}`;
719
864
  }