fuli-context 0.25.2 → 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 (515) 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-CVFYWDSt.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/client-connections.md +29 -5
  217. package/docs/employee-agents.md +1 -1
  218. package/docs/external-knowledge-architecture.md +8 -3
  219. package/docs/judgment-and-autonomy.md +6 -4
  220. package/docs/project-agent-memory.md +12 -1
  221. package/graph-provider/fuli_graph/app.py +12 -234
  222. package/graph-provider/fuli_graph/auth.py +10 -0
  223. package/graph-provider/fuli_graph/builtin_embedding.py +388 -0
  224. package/graph-provider/fuli_graph/builtin_embedding_routes.py +53 -0
  225. package/graph-provider/fuli_graph/client_coverage.py +2 -2
  226. package/graph-provider/fuli_graph/config.py +3 -0
  227. package/graph-provider/fuli_graph/knowledge_duplicates.py +0 -1
  228. package/graph-provider/fuli_graph/knowledge_index_scan.py +13 -6
  229. package/graph-provider/fuli_graph/knowledge_search.py +111 -45
  230. package/graph-provider/fuli_graph/knowledge_semantic.py +9 -0
  231. package/graph-provider/fuli_graph/knowledge_semantic_index.py +5 -3
  232. package/graph-provider/fuli_graph/knowledge_tags.py +5 -10
  233. package/graph-provider/fuli_graph/models.py +1 -81
  234. package/graph-provider/fuli_graph/personal_global_preference_models.py +0 -23
  235. package/graph-provider/fuli_graph/personal_global_preferences.py +5 -630
  236. package/graph-provider/fuli_graph/preference_conflicts.py +3 -1
  237. package/graph-provider/fuli_graph/project_agent_delegations.py +6 -1
  238. package/graph-provider/fuli_graph/project_agent_executor_models.py +0 -26
  239. package/graph-provider/fuli_graph/project_agent_models.py +1 -0
  240. package/graph-provider/fuli_graph/project_agent_routes.py +0 -27
  241. package/graph-provider/fuli_graph/project_agent_task_models.py +0 -18
  242. package/graph-provider/fuli_graph/project_agent_work_log.py +4 -2
  243. package/graph-provider/fuli_graph/project_knowledge.py +2 -1
  244. package/graph-provider/fuli_graph/retired_graph_labels.py +30 -0
  245. package/graph-provider/fuli_graph/store_identity.py +4 -16
  246. package/graph-provider/fuli_graph/store_project_agent_executor_learning.py +0 -7
  247. package/graph-provider/fuli_graph/store_project_agent_executor_routing.py +0 -2
  248. package/graph-provider/fuli_graph/store_project_agent_executors.py +0 -8
  249. package/graph-provider/fuli_graph/store_project_agent_task_recruitment.py +1 -61
  250. package/graph-provider/fuli_graph/store_project_agents.py +1 -1
  251. package/graph-provider/fuli_graph/store_projects.py +0 -151
  252. package/graph-provider/fuli_graph/store_publication.py +1 -160
  253. package/graph-provider/fuli_graph/store_records.py +0 -43
  254. package/graph-provider/fuli_graph/store_task_contexts.py +10 -0
  255. package/graph-provider/fuli_graph/task_checkpoint_amendment.py +77 -0
  256. package/graph-provider/fuli_graph/task_context_auto_close.py +1 -1
  257. package/graph-provider/fuli_graph/task_context_models.py +19 -0
  258. package/graph-provider/fuli_graph/task_context_routes.py +5 -1
  259. package/graph-provider/fuli_graph/workflow_candidate_models.py +1 -61
  260. package/graph-provider/fuli_graph/workflow_candidates.py +7 -446
  261. package/graph-provider/fuli_graph/workflow_observation_models.py +1 -1
  262. package/graph-provider/pyproject.toml +1 -1
  263. package/native/win32/fuli-win-helper.exe +0 -0
  264. package/npm-shrinkwrap.json +2 -2
  265. package/package.json +1 -2
  266. package/packages/roundtable/src/agents/codex/wake.js +25 -2
  267. package/packages/roundtable/src/agents/session-log.js +29 -7
  268. package/packages/roundtable/src/host.js +3 -0
  269. package/packages/roundtable/src/roundtable/near-names.js +27 -0
  270. package/packages/roundtable/src/roundtable/reply-inbox.js +6 -2
  271. package/packages/roundtable/src/roundtable/service.js +183 -49
  272. package/packages/roundtable/src/roundtable/stand-in.js +64 -0
  273. package/packages/roundtable/src/roundtable/store.js +8 -6
  274. package/packages/roundtable/src/roundtable/wake-ladder.js +63 -0
  275. package/packages/roundtable/src/roundtable/wake.js +7 -0
  276. package/packages/roundtable/src/standalone/mcp.js +0 -5
  277. package/packages/roundtable/src/standalone/serve.js +13 -0
  278. package/registry/embedding-models.json +208 -0
  279. package/skills/capturing-session-knowledge/SKILL.md +2 -2
  280. package/skills/capturing-session-knowledge/references/capture.md +15 -34
  281. package/skills/capturing-session-knowledge/references/coordination.md +39 -0
  282. package/skills/capturing-session-knowledge/references/retrieval.md +9 -13
  283. package/skills/grilling-project/SKILL.md +8 -53
  284. package/skills/grilling-project/agents/openai.yaml +2 -2
  285. package/skills/grilling-project/references/project-profile.md +6 -23
  286. package/skills/operating-fuli/SKILL.md +36 -8
  287. package/skills/operating-fuli/references/workflow-recipes.md +3 -2
  288. package/src/agent-apps/host-tools/catalog.js +2 -25
  289. package/src/agent-kits/client-detection.js +14 -4
  290. package/src/agent-kits/installer-manifest.js +16 -5
  291. package/src/agent-kits/pack-manifest.js +7 -2
  292. package/src/agent-kits/pins.js +6 -6
  293. package/src/agent-kits/session-clients.js +1 -0
  294. package/src/agent-kits/vendor/agent-installer/README.md +1 -1
  295. package/src/agent-roundtable/tools.js +2 -2
  296. package/src/agent-roundtable/turn-receipt.js +65 -0
  297. package/src/agent-tools/graph-definitions.js +4 -2
  298. package/src/agent-tools/graph-handlers.js +5 -43
  299. package/src/agent-tools/interface-catalog.js +11 -15
  300. package/src/agent-tools/interface-definitions.js +0 -7
  301. package/src/agent-tools/judgment-definitions.js +1 -1
  302. package/src/agent-tools/knowledge-curation-definitions.js +1 -63
  303. package/src/agent-tools/knowledge-definitions.js +11 -124
  304. package/src/agent-tools/project-agent-definitions.js +0 -1
  305. package/src/agent-tools/project-agent-tool-definitions.js +0 -16
  306. package/src/agent-tools/project-organizing-definitions.js +31 -0
  307. package/src/agent-tools/project-space-definitions.js +4 -83
  308. package/src/agent-tools/retired-tools.js +37 -0
  309. package/src/agent-tools/task-entry-definitions.js +4 -3
  310. package/src/agent-tools/tonborg-question-definitions.js +3 -3
  311. package/src/agent-tools.js +5 -1
  312. package/src/agents/choice-answers.js +2 -1
  313. package/src/agents/claude-code/choice-answers.js +2 -24
  314. package/src/agents/claude-desktop/app-control.js +23 -0
  315. package/src/agents/client-apps.js +8 -0
  316. package/src/agents/codex/choice-answers.js +61 -0
  317. package/src/agents/codex/lifecycle-hook.js +3 -11
  318. package/src/agents/dsh/bundle.js +50 -0
  319. package/src/agents/dsh/lifecycle-hook.js +18 -0
  320. package/src/agents/dsh/plugin.js +111 -0
  321. package/src/agents/identity-receipt.js +19 -4
  322. package/src/agents/jsonl-tail.js +35 -0
  323. package/src/agents/opencode/lifecycle-hook.js +9 -174
  324. package/src/agents/opencode/plugin-file.js +7 -29
  325. package/src/agents/opencode/plugin.js +3 -76
  326. package/src/agents/plugin-hook-process.js +87 -0
  327. package/src/agents/plugin-lifecycle-hook.js +174 -0
  328. package/src/agents/plugin-module-source.js +26 -0
  329. package/src/agents/source-applications.js +3 -3
  330. package/src/agents/token-usage-resolver.js +0 -6
  331. package/src/cli/clients-command.js +3 -3
  332. package/src/cli/command-registry.js +1 -2
  333. package/src/cli/connect-command.js +1 -1
  334. package/src/cli/mcp-command.js +1 -1
  335. package/src/cli/setup-command.js +3 -2
  336. package/src/cli.js +0 -5
  337. package/src/conversations/entry-budget.js +1 -1
  338. package/src/conversations/person-words.js +0 -5
  339. package/src/data-format/local-stores.js +6 -0
  340. package/src/debug-turns/model-request.js +2 -27
  341. package/src/desktop/npm-copy-data.js +20 -6
  342. package/src/embedding-models/manifest.js +147 -0
  343. package/src/embedding-models/port.js +117 -0
  344. package/src/embedding-models/registry.js +24 -0
  345. package/src/embedding-models/store.js +208 -0
  346. package/src/external-knowledge/connectors/custom.js +4 -0
  347. package/src/external-knowledge/connectors/mcp.js +13 -1
  348. package/src/external-knowledge/connectors/response-values.js +8 -0
  349. package/src/external-knowledge/connectors/retrieval-api.js +5 -1
  350. package/src/external-knowledge/service.js +22 -5
  351. package/src/graphiti/agent-conversations.js +3 -2
  352. package/src/graphiti/agent-knowledge-workflows.js +1 -6
  353. package/src/graphiti/capture-change-confirmation.js +1 -1
  354. package/src/graphiti/checkpoint-amendment.js +50 -0
  355. package/src/graphiti/checkpoint-capture.js +7 -3
  356. package/src/graphiti/checkpoint-save-status.js +71 -0
  357. package/src/graphiti/federated-application.js +11 -132
  358. package/src/graphiti/first-run-guide.js +25 -4
  359. package/src/graphiti/fuli-markup.js +1 -1
  360. package/src/graphiti/human-review-channel.js +4 -2
  361. package/src/graphiti/knowledge-curation.js +12 -24
  362. package/src/graphiti/knowledge-provider-mapping.js +0 -21
  363. package/src/graphiti/knowledge-reader.js +0 -7
  364. package/src/graphiti/knowledge-spaces.js +36 -0
  365. package/src/graphiti/local-runtimes.js +9 -1
  366. package/src/graphiti/personal-global-preference-candidates.js +0 -44
  367. package/src/graphiti/project-agent-control-plane.js +5 -12
  368. package/src/graphiti/project-agent-mapping.js +0 -13
  369. package/src/graphiti/project-agent-workflows.js +0 -16
  370. package/src/graphiti/provider-client.js +26 -167
  371. package/src/graphiti/reply-echo-group.js +7 -6
  372. package/src/graphiti/roundtable-host.js +5 -0
  373. package/src/graphiti/session-knowledge-capture.js +5 -31
  374. package/src/graphiti/task-entry-owner-change.js +66 -0
  375. package/src/graphiti/task-entry-preferences.js +16 -4
  376. package/src/graphiti/task-entry-project-scope.js +5 -1
  377. package/src/graphiti/task-knowledge-checkpoint.js +30 -14
  378. package/src/graphiti/topic-proposals.js +31 -8
  379. package/src/graphiti/topic-team-handoff.js +121 -0
  380. package/src/graphiti/workflow-learning.js +0 -25
  381. package/src/graphiti/workspace-provider-client.js +4 -50
  382. package/src/http/api-router.js +15 -0
  383. package/src/http/capture-onboarding-api-router.js +13 -4
  384. package/src/http/embedding-models-api-router.js +36 -0
  385. package/src/http/graph-api-router.js +3 -125
  386. package/src/http/project-organizing-api-router.js +27 -0
  387. package/src/http/reply-echo-api-router.js +2 -2
  388. package/src/http/request-policy.js +0 -4
  389. package/src/judgment/acceptance.js +2 -2
  390. package/src/judgment/agent-view.js +8 -8
  391. package/src/judgment/conversation.js +75 -69
  392. package/src/judgment/engine.js +33 -36
  393. package/src/judgment/explain-method.js +8 -7
  394. package/src/judgment/http.js +3 -1
  395. package/src/judgment/question-options.js +117 -74
  396. package/src/judgment/question-tools.js +54 -34
  397. package/src/judgment/review-delegation.js +16 -3
  398. package/src/judgment/review-prompt.js +29 -33
  399. package/src/judgment/routing.js +4 -3
  400. package/src/judgment/service.js +50 -8
  401. package/src/judgment/verdict-schema.js +2 -7
  402. package/src/knowledge-hard-delete/console-port.js +1 -7
  403. package/src/knowledge-hard-delete/forget-references.js +1 -1
  404. package/src/knowledge-owner-reads/console-port.js +8 -19
  405. package/src/mcp/chat-listing.js +1 -1
  406. package/src/mcp/create-mcp-server.js +12 -32
  407. package/src/mcp/direct-call.js +0 -2
  408. package/src/mcp/preference-delivery.js +4 -2
  409. package/src/mcp/provider-task-context-registry.js +14 -0
  410. package/src/mcp/session-id.js +1 -33
  411. package/src/mcp/tool-annotations.js +3 -44
  412. package/src/model-backends/adapters/builtin-embeddings.js +44 -0
  413. package/src/model-backends/adapters/registry.js +3 -1
  414. package/src/model-backends/config.js +17 -4
  415. package/src/model-backends/port.js +10 -4
  416. package/src/model-backends/runtime.js +6 -13
  417. package/src/model-backends/secret-store.js +2 -20
  418. package/src/native-runtime/runtime.js +13 -2
  419. package/src/presence/windows-helper-pin.js +1 -1
  420. package/src/project-organizing/agent-tool.js +65 -0
  421. package/src/project-organizing/model-tiers.js +31 -0
  422. package/src/project-organizing/port.js +130 -0
  423. package/src/server.js +22 -13
  424. package/src/setup/agents/claude-code/descriptor.json +1 -5
  425. package/src/setup/agents/codex/descriptor.json +1 -5
  426. package/src/setup/agents/cursor/descriptor.json +1 -5
  427. package/src/setup/agents/descriptor-schema.js +4 -1
  428. package/src/setup/agents/opencode/descriptor.json +1 -5
  429. package/src/setup/paths.js +1 -0
  430. package/src/system/client-connection-install.js +12 -2
  431. package/src/system/client-connection-status.js +90 -20
  432. package/src/system/client-restart.js +72 -0
  433. package/src/system/configured-install.js +103 -0
  434. package/src/system/doctor-repair.js +3 -1
  435. package/src/system/doctor.js +3 -1
  436. package/src/system/system-service.js +14 -2
  437. package/src/whats-new/lines/0.27.0.json +13 -0
  438. package/dist/web/assets/CaptureChangePage-BzwcfacI.js +0 -1
  439. package/dist/web/assets/ConnectionsPage-C_vgqwF2.js +0 -1
  440. package/dist/web/assets/ConnectionsPage-DS2PEG6K.css +0 -1
  441. package/dist/web/assets/FieldRoot-DRf4wM5x.js +0 -1
  442. package/dist/web/assets/InboxPage-1ue8vA7H.css +0 -1
  443. package/dist/web/assets/InboxPage-zNUnnYeJ.js +0 -6
  444. package/dist/web/assets/KnowledgeOrganizerPage-BWvF1GEu.js +0 -1
  445. package/dist/web/assets/KnowledgePage--Z4_kAhq.js +0 -1
  446. package/dist/web/assets/KnowledgePeek-BgzQA9SI.js +0 -1
  447. package/dist/web/assets/KnowledgeWorkspace-0yOpWtEB.js +0 -4
  448. package/dist/web/assets/KnowledgeWorkspace-BgWo6lBj.css +0 -1
  449. package/dist/web/assets/ModelSettingsPage-B9PS1Kay.css +0 -1
  450. package/dist/web/assets/ModelSettingsPage-BL6MsF7C.js +0 -1
  451. package/dist/web/assets/NoticeRow-BXZWn4EZ.js +0 -1
  452. package/dist/web/assets/OverviewPage-_9e2idJR.js +0 -1
  453. package/dist/web/assets/PageOutline-CFGtHmOK.js +0 -1
  454. package/dist/web/assets/PageOutline-DG5ZYtA8.css +0 -1
  455. package/dist/web/assets/PersonalProjectsPage-AhgP6CL8.js +0 -1
  456. package/dist/web/assets/ProjectAgentsPage-O-cMavcz.js +0 -5
  457. package/dist/web/assets/ProjectJudgmentPolicy-CyHAu0nm.js +0 -2
  458. package/dist/web/assets/ProjectJudgmentPolicy-DnjMniaz.css +0 -1
  459. package/dist/web/assets/PublicProjectsPage-Ck1QSR0R.js +0 -1
  460. package/dist/web/assets/PublicProjectsPage-CskSzffL.css +0 -1
  461. package/dist/web/assets/SettingsPage-Cj3pEWcd.css +0 -1
  462. package/dist/web/assets/SettingsPage-bLssMIz6.js +0 -1
  463. package/dist/web/assets/TaskBlockerNotice-iUiD3BuZ.js +0 -1
  464. package/dist/web/assets/UiIcon-vgD4v8q8.js +0 -1
  465. package/dist/web/assets/UiIconButton-BzyMc14P.js +0 -1
  466. package/dist/web/assets/WidgetSlot-Dw5nWlb7.js +0 -2
  467. package/dist/web/assets/WorkbenchListPage-D0xX-YNl.js +0 -1
  468. package/dist/web/assets/_plugin-vue_export-helper-B4pFJCwG.js +0 -9
  469. package/dist/web/assets/agent-occupation-CjfQqSzd.js +0 -1
  470. package/dist/web/assets/agent-profile-BNPLhDog.css +0 -1
  471. package/dist/web/assets/agent-roster-records-Bi5HWDif.js +0 -1
  472. package/dist/web/assets/console-DgRc8Itw.js +0 -1
  473. package/dist/web/assets/conversation-launcher-settings-CZAfuu8B.js +0 -1
  474. package/dist/web/assets/identity-DIG-uOiU.js +0 -1
  475. package/dist/web/assets/index-C2VDC1uO.js +0 -24
  476. package/dist/web/assets/index-DF0TcfPY.css +0 -1
  477. package/dist/web/assets/label-table-CDzYRZpc.js +0 -1
  478. package/dist/web/assets/model-BjUERpoQ.js +0 -3
  479. package/dist/web/assets/npm-copies-BLRc0FXW.js +0 -1
  480. package/dist/web/assets/overview-data-Cq1gefY5.js +0 -1
  481. package/dist/web/assets/popup-host-ctKYu9Ze.js +0 -1
  482. package/dist/web/assets/review-api-CJaNgPMA.js +0 -1
  483. package/dist/web/assets/review-store-DSQpb5P8.js +0 -1
  484. package/dist/web/assets/source-adapters-DPJzumzC.js +0 -1
  485. package/dist/web/assets/task-evidence-DIbw2U42.js +0 -1
  486. package/dist/web/assets/useForwardScopeId-DZCnSswO.js +0 -1
  487. package/dist/web/assets/usePrimitiveElement-tPQM7XJs.js +0 -1
  488. package/dist/web/assets/useTeamPeople-D_5cxxf1.js +0 -1
  489. package/dist/web/assets/version-lXtOG8uf.js +0 -1
  490. package/docs/public-personal-architecture.md +0 -73
  491. package/graph-provider/fuli_graph/common_knowledge.py +0 -459
  492. package/graph-provider/fuli_graph/common_knowledge_models.py +0 -54
  493. package/graph-provider/fuli_graph/project_management.py +0 -251
  494. package/skills/flreview/SKILL.md +0 -101
  495. package/skills/flreview/agents/openai.yaml +0 -6
  496. package/src/agent-tools/project-relation-definitions.js +0 -36
  497. package/src/agents/codex/acp-process.js +0 -244
  498. package/src/agents/codex/acp-session.js +0 -190
  499. package/src/agents/codex/acp-worker.js +0 -54
  500. package/src/agents/codex/review-command.js +0 -29
  501. package/src/cli/worker-command.js +0 -80
  502. package/src/graphiti/checkpoint-provider-outage.js +0 -23
  503. package/src/graphiti/common-knowledge-candidates.js +0 -222
  504. package/src/graphiti/public-project-relations.js +0 -28
  505. package/src/graphiti/public-projects.js +0 -125
  506. package/src/graphiti/public-submission-reconciliation.js +0 -37
  507. package/src/graphiti/public-submission.js +0 -77
  508. package/src/graphiti/publication-draft-capture.js +0 -28
  509. package/src/graphiti/publication-draft-input.js +0 -11
  510. package/src/graphiti/publication-review-queues.js +0 -50
  511. package/src/graphiti/worker-plan-host.js +0 -92
  512. package/src/graphiti/worker-run-host.js +0 -287
  513. package/src/graphiti/workflow-observation.js +0 -72
  514. package/src/mcp/common-knowledge-preview-tokens.js +0 -67
  515. package/src/server/worker-plan-runtime.js +0 -56
@@ -1,14 +1,7 @@
1
- import { ApplicationError, ApplicationErrorCode } from '../app/application-error.js';
2
1
  import { captureDecision, captureDisabled } from './capture-decision.js';
3
2
  import { preflightTaskCaptures } from './task-knowledge-routing.js';
4
- import {
5
- assertPublicKnowledgeEligible,
6
- providerEpisode,
7
- providerPersonalCommit
8
- } from './knowledge-provider-mapping.js';
9
- import { queuePublicationDraft } from './publication-draft-capture.js';
3
+ import { providerEpisode, providerPersonalCommit } from './knowledge-provider-mapping.js';
10
4
  import { assertNoCredentials } from './knowledge-credential-guard.js';
11
- import { configuredWorkspace } from './workspace-provider-client.js';
12
5
 
13
6
  // captureScope: the write's own scope when it differs from the target, as for
14
7
  // a task checkpoint whose global preference was learned in the task's project.
@@ -23,34 +16,15 @@ export async function preflightPersonalKnowledgeCaptures(application, inputs) {
23
16
  export async function captureSessionKnowledge(application, input, { captureScope = knowledgeCaptureScope(input) } = {}) {
24
17
  const capture = await captureDecision(application, captureScope);
25
18
  if (!capture.allowed) return { route: 'disabled', ...captureDisabled(capture) };
26
- const { episode, workspace, commit } = prepareKnowledgeCapture(application, input);
27
- if (input.targetKind === 'personal') {
28
- const result = await application.personal.commit(commit);
29
- return { route: 'personal', ...result };
30
- }
31
- return queuePublicationDraft(application, { input, workspace, episode });
19
+ const { commit } = prepareKnowledgeCapture(application, input);
20
+ const result = await application.personal.commit(commit);
21
+ return { route: 'personal', ...result };
32
22
  }
33
23
 
34
24
  function prepareKnowledgeCapture(application, input) {
35
25
  assertNoCredentials(input);
36
26
  const episode = providerEpisode(input);
37
- if (input.targetKind === 'personal') {
38
- return { episode, commit: providerPersonalCommit(input, episode, application.config.personal.spaceId) };
39
- }
40
- if (input.projectAgentId) {
41
- throw new ApplicationError(
42
- ApplicationErrorCode.VALIDATION,
43
- 'Project Agent knowledge can only be captured in the personal graph'
44
- );
45
- }
46
- if (episode.sensitivity !== 'normal') {
47
- throw new ApplicationError(
48
- ApplicationErrorCode.VALIDATION,
49
- 'Private or restricted knowledge cannot enter a team-shared project queue. Use targetKind "personal" with personalProjectId to keep it in the personal graph'
50
- );
51
- }
52
- assertPublicKnowledgeEligible(episode);
53
- return { episode, workspace: configuredWorkspace(application.workspaces, input.providerUrl) };
27
+ return { episode, commit: providerPersonalCommit(input, episode, application.config.personal.spaceId) };
54
28
  }
55
29
 
56
30
  function knowledgeCaptureScope(input) {
@@ -0,0 +1,66 @@
1
+ import { setTimeout as delay } from 'node:timers/promises';
2
+
3
+ import { receiptText } from '../agents/identity-receipt.js';
4
+ import { sessionTaskContext } from './task-entry-standing-owner.js';
5
+
6
+ // rec#110 item 9: within one session the FLA that owns a task can change
7
+ // between two tasks, most often because the working directory moved to
8
+ // another project. The entry then says so once, to the Agent and in the
9
+ // receipt, and names how to keep the earlier FLA (#FLA binds one across
10
+ // folders, task-entry-named-fla.js). The earlier FLA's records stay in their
11
+ // own scope; nothing is copied. The notice rides on the task as a route
12
+ // marker, so the checkpoint receipt that replaces the entry's says it too.
13
+
14
+ const GUIDANCE = 'This session\'s FLA changed: from this task on, to_agent_id owns the work. Tell the person once '
15
+ + '(the receipt notice says it). The earlier FLA\'s records stay in its scope and are not copied: carry what this '
16
+ + 'task needs from this conversation into your own checkpoint workLog. To keep the earlier FLA, the person starts '
17
+ + 'a message with #FLA and its name.';
18
+
19
+ // The earlier FLA's name is only for display: it is read beside the entry's
20
+ // other reads and given up after this long, leaving its ID (DOT on #875).
21
+ const NAME_WAIT_MS = 300;
22
+ const MARKER = /^owner_change:(\S+) (.+)$/su;
23
+
24
+ // The FLA and project of the session's current task, as the session itself
25
+ // holds them (a standing assignment's route keeps the session where it was).
26
+ export function sessionOwnerOf(task) {
27
+ const context = sessionTaskContext(task);
28
+ if (!context?.projectAgentId) return null;
29
+ return { agentId: context.projectAgentId, personalProjectId: context.personalProjectId ?? null };
30
+ }
31
+
32
+ // The earlier owner when this entry changes it, or null when the owner stays.
33
+ // A named FLA, a group discussion or a standing assignment already says why
34
+ // the owner is who it is, so it adds nothing then.
35
+ export function changedOwner(resolution, selection) {
36
+ const from = resolution.sessionOwner;
37
+ const to = selection?.agent?.agentId ?? null;
38
+ if (!from || !to || from.agentId === to || resolution.fla || resolution.group || resolution.standingOwner) return null;
39
+ return from;
40
+ }
41
+
42
+ // The earlier FLA's name, or null: never longer than NAME_WAIT_MS, never a failure.
43
+ export async function previousOwnerName(application, from) {
44
+ if (!from) return null;
45
+ const read = application.getProjectAgent({ personalSpaceId: application.config.personal.spaceId,
46
+ personalProjectId: from.personalProjectId, agentId: from.agentId })
47
+ .then(agent => agent?.profile?.displayName || agent?.profile?.name || null, () => null);
48
+ return Promise.race([read, delay(NAME_WAIT_MS, null, { ref: false })]);
49
+ }
50
+
51
+ // The owner_change field, receipt notice and route marker.
52
+ export function ownerChangeEntry(from, fromName, resolution, to, toName) {
53
+ const fromLabel = fromName ?? from.agentId;
54
+ const notice = `本会话上一个任务由 ${fromLabel} 负责,这次起由 ${toName ?? to} 负责;要继续由 ${fromLabel} 负责,消息开头写 #FLA ${fromLabel}`;
55
+ return {
56
+ field: { from_agent_id: from.agentId, from_project_id: from.personalProjectId, to_agent_id: to,
57
+ to_project_id: resolution.personalProjectId ?? null, guidance: GUIDANCE },
58
+ receiptNotice: receiptText(notice),
59
+ marker: `owner_change:${from.agentId} ${notice}`
60
+ };
61
+ }
62
+
63
+ // The checkpoint receipt repeats the notice the entry showed.
64
+ export function ownerChangeReceiptNotices(task) {
65
+ return (task?.agentAssignment?.match_basis ?? []).map(item => MARKER.exec(item)?.[2]).filter(Boolean).map(receiptText);
66
+ }
@@ -10,7 +10,7 @@ import { withProjectCandidate } from './assistant-project-candidate.js';
10
10
  import { withBoardMatch } from './jefa-board-match.js';
11
11
  import { ASSISTANT_AGENT_ID } from './assistant-identity.js';
12
12
  import { ATTENTION_REPLIES_GUIDANCE } from '../../packages/roundtable/src/roundtable/attention-inbox.js';
13
- import { AGENT_REPLIES_GUIDANCE } from '../../packages/roundtable/src/roundtable/reply-inbox.js';
13
+ import { AGENT_REPLIES_GUIDANCE, STAND_IN_HANDBACKS_GUIDANCE } from '../../packages/roundtable/src/roundtable/reply-inbox.js';
14
14
  import { captureDecision } from './capture-decision.js';
15
15
  import { receiptNotices } from './capture-notice.js';
16
16
  import { receiptFormatNotices } from '../data-format/format-notices.js';
@@ -18,6 +18,7 @@ import { noteEntryTask } from '../conversations/entry-budget.js';
18
18
  import { withSharedProjectList } from './shared-project-list.js';
19
19
  import { clearSessionTaskBlockers } from './task-blocker-progress.js';
20
20
  import { standingOwnerEntry } from './task-entry-standing-owner.js';
21
+ import { changedOwner, ownerChangeEntry, previousOwnerName } from './task-entry-owner-change.js';
21
22
  import { roundtableAskEntry } from './task-entry-roundtable-ask.js';
22
23
  import { isReadOnlyRefusal, readOnlyLifecycle, readOnlyTaskEntry } from './task-entry-read-only.js';
23
24
 
@@ -149,7 +150,7 @@ async function entryPreferences(application, projectResolution, {
149
150
  const group = projectResolution.group ? await groupDiscussionEntry(application, projectResolution.group,
150
151
  fla?.selection ?? selected, projectResolution.personalProjectId ?? null) : null;
151
152
  const selection = group?.selection ?? fla?.selection ?? selected;
152
- const routeMarkers = [...(fla?.markers ?? []), ...(group?.markers ?? []), ...unassignedMarkers(selection)];
153
+ const ownerFrom = changedOwner(projectResolution, selection);
153
154
  // A rejected explicit role must not leak its private preferences via fallback.
154
155
  const selectedAgentId = selection ? selection.agent?.agentId ?? null : projectAgentId;
155
156
  const standing = standingOwnerEntry(projectResolution, selection);
@@ -167,7 +168,7 @@ async function entryPreferences(application, projectResolution, {
167
168
  includeTeam ? taskJudgmentContext(application, projectResolution.personalProjectId) : null
168
169
  ]);
169
170
  });
170
- const [preferences, management, [context, judgmentContext], triage, capture, formatNotices, roundtableAsk] = await Promise.all([
171
+ const [preferences, management, [context, judgmentContext], triage, capture, formatNotices, roundtableAsk, ownerFromName] = await Promise.all([
171
172
  getCollaborationPreferencesWorkflow(
172
173
  application,
173
174
  projectResolution,
@@ -194,10 +195,15 @@ async function entryPreferences(application, projectResolution, {
194
195
  reads.formatNotices,
195
196
  // "去看看 / 问问 X 项目": which project's lead to ask on the roundtable (rec#71).
196
197
  includeMessages && agentInvocation ? roundtableAskEntry(application, { taskPrompt, sessionId },
197
- { personalProjectId: projectResolution.personalProjectId ?? null, agentId: selection?.agent?.agentId ?? null }) : null
198
+ { personalProjectId: projectResolution.personalProjectId ?? null, agentId: selection?.agent?.agentId ?? null }) : null,
199
+ // Display only: bounded, and its ID stands in (task-entry-owner-change.js).
200
+ previousOwnerName(application, ownerFrom)
198
201
  ]);
199
202
  const managedPreferences = management ? { ...preferences, project_management_context: management } : preferences;
200
203
  if (context) applyAgentAssignment(context, selection);
204
+ const ownerChange = ownerFrom && ownerChangeEntry(ownerFrom, ownerFromName, projectResolution, selection.agent.agentId, context?.role?.name);
205
+ const routeMarkers = [...(fla?.markers ?? []), ...(group?.markers ?? []), ...unassignedMarkers(selection),
206
+ ...(ownerChange ? [ownerChange.marker] : [])];
201
207
  // Questions other Agents left for this Agent while it was not running.
202
208
  const waiting = includeMessages && selection?.agent && application.roundtable
203
209
  ? application.roundtable.pending(selection.agent.agentId, projectResolution.personalProjectId) : [];
@@ -207,13 +213,18 @@ async function entryPreferences(application, projectResolution, {
207
213
  // Other Agents' replies to asks this Agent sent, announced once; the body comes from read_agent_messages.
208
214
  const replied = includeMessages && selection?.agent && projectResolution.personalProjectId && application.roundtable?.agentReplies
209
215
  ? application.roundtable.agentReplies(selection.agent.agentId, projectResolution.personalProjectId) : [];
216
+ // What another session did as this Agent while it stood in (代入), announced once the same way.
217
+ const handedBack = includeMessages && selection?.agent && projectResolution.personalProjectId && application.roundtable?.standInHandbacks
218
+ ? application.roundtable.standInHandbacks(selection.agent.agentId, projectResolution.personalProjectId) : [];
210
219
  const notices = [...[fla?.notice, group?.notice].filter(Boolean).map(receiptText),
211
220
  ...(standing?.notice ? [standing.receiptNotice] : []),
221
+ ...(ownerChange ? [ownerChange.receiptNotice] : []),
212
222
  ...receiptNotices(capture, projectResolution.basis === 'created_from_prompt' ? ['project_created'] : [],
213
223
  { settingsUrl: captureSettingsUrl(application) }), ...formatNotices];
214
224
  return { ...managedPreferences, ...(context ? { project_agent_context: context } : {}),
215
225
  ...(triage ? { triage_candidates: triage } : {}),
216
226
  ...(standing ? { standing_owner: standing.field } : {}),
227
+ ...(ownerChange ? { owner_change: ownerChange.field } : {}),
217
228
  ...(fla?.view ? { fla: fla.view } : {}), ...(group?.view ? { flg: group.view } : {}),
218
229
  ...(group?.interaction ?? fla?.interaction ? { human_interaction: group?.interaction ?? fla.interaction } : {}),
219
230
  ...(routeMarkers.length ? { [FLA_ROUTE]: routeMarkers } : {}),
@@ -223,6 +234,7 @@ async function entryPreferences(application, projectResolution, {
223
234
  ...(answered.length ? { attention_replies: answered, attention_replies_guidance: ATTENTION_REPLIES_GUIDANCE } : {}),
224
235
  ...(roundtableAsk ? { roundtable_ask: roundtableAsk } : {}),
225
236
  ...(replied.length ? { agent_replies: replied, agent_replies_guidance: AGENT_REPLIES_GUIDANCE } : {}),
237
+ ...(handedBack.length ? { stand_in_handbacks: handedBack, stand_in_handbacks_guidance: STAND_IN_HANDBACKS_GUIDANCE } : {}),
226
238
  agent_receipt: taskAgentReceipt(application, {
227
239
  projectId: projectResolution.personalProjectId, agentId: selection?.agent?.agentId ?? null,
228
240
  name: context?.role?.name, role: selection?.agent?.profile?.name, sourceApplication,
@@ -6,6 +6,7 @@ import { namedFlaRequest, namedFlaResolution, namedFlaTask } from './task-entry-
6
6
  import { groupDiscussionRequest } from './task-entry-group-discussion.js';
7
7
  import { addressedAgentId } from './fla-mention.js';
8
8
  import { ASSISTANT_AGENT_ID } from './assistant-identity.js';
9
+ import { sessionOwnerOf } from './task-entry-owner-change.js';
9
10
 
10
11
  // Restore only exact session provenance; a normal folder name is not a role binding.
11
12
  // An unclaimed conversation never creates a project or hires a lead: it stays
@@ -27,7 +28,10 @@ export async function resolveTaskEntryProject(application, resolution, input) {
27
28
  if (named) return group ? { ...named, group } : named;
28
29
  const home = await sessionEntryProject(application, resolution, input, readSessionTask);
29
30
  const routed = group?.holdsProject ? home : await withStandingOwner(application, home, input);
30
- return fla || group ? { ...routed, ...(fla ? { fla } : {}), ...(group ? { group } : {}) } : routed;
31
+ // Whose the session's last task was, so the entry can say when that changes (task-entry-owner-change.js).
32
+ const sessionOwner = sessionOwnerOf(sessionTask);
33
+ return fla || group || sessionOwner ? { ...routed, ...(fla ? { fla } : {}), ...(group ? { group } : {}),
34
+ ...(sessionOwner ? { sessionOwner } : {}) } : routed;
31
35
  }
32
36
 
33
37
  // The session's current task, read at most once per entry, and not at all
@@ -15,11 +15,15 @@ import { checkpointCaptureDecision, storedCheckpoint } from './checkpoint-captur
15
15
  import { receiptNotices } from './capture-notice.js';
16
16
  import { standingReceiptNotices } from './task-entry-standing-owner.js';
17
17
  import { namedFlaReceiptNotices } from './task-entry-named-fla.js';
18
+ import { ownerChangeReceiptNotices } from './task-entry-owner-change.js';
18
19
  import { receiptFormatNotices } from '../data-format/format-notices.js';
19
20
  import { activeSealedWorkerRequest } from '../app/agent-request-context.js';
20
21
  import { checkpointHumanInteraction } from './checkpoint-human-interaction.js';
21
22
  import { clearSessionTaskBlockers, noteBlockerProgress } from './task-blocker-progress.js';
22
23
  import { storedUnassignment } from './task-agent-assignment.js';
24
+ import { amendCheckpoint, assertAmendmentInput, checkpointConflictMessage } from './checkpoint-amendment.js';
25
+ import { admittedTask } from './checkpoint-save-status.js';
26
+ import { roundtableTurn } from '../agent-roundtable/turn-receipt.js';
23
27
 
24
28
  export async function checkpointTaskKnowledge(application, {
25
29
  taskContextToken,
@@ -36,13 +40,17 @@ export async function checkpointTaskKnowledge(application, {
36
40
  collaborators = [],
37
41
  triage = null,
38
42
  experiences = null,
39
- remember = null
43
+ remember = null,
44
+ amend = false
40
45
  }) {
41
46
  if (!['capture_candidates', 'retain_nothing'].includes(disposition)) {
42
47
  throw validationError('Unknown task knowledge checkpoint disposition');
43
48
  }
44
49
  const triageLabel = validateTriage(triage);
45
- const task = await application.taskContextRegistry.context(taskContextToken, sourceApplication);
50
+ // Before any write: a refused token here means this call saved nothing (checkpoint-save-status.js).
51
+ const task = await admittedTask(application.taskContextRegistry.context(taskContextToken, sourceApplication));
52
+ if (amend) assertAmendmentInput(task, { disposition, capture, captureRouting, agentMemory, knowledgeUsage,
53
+ triage, experiences, remember, collaborators });
46
54
  if (personalProjectId && task.personalProjectId !== personalProjectId) {
47
55
  throw validationError('Task checkpoint belongs to another project');
48
56
  }
@@ -70,7 +78,7 @@ export async function checkpointTaskKnowledge(application, {
70
78
  const scopedCaptures = captureRouting === null || internalActivity
71
79
  ? null : normalizeTaskCaptures(task, capture, captureRouting);
72
80
  if (disposition === 'capture_candidates') {
73
- if (!capture && !scopedCaptures) {
81
+ if (!capture && !scopedCaptures && !amend) {
74
82
  throw validationError('capture_candidates requires a bounded capture payload');
75
83
  }
76
84
  } else if (capture || scopedCaptures) {
@@ -85,25 +93,25 @@ export async function checkpointTaskKnowledge(application, {
85
93
  ...(internalActivity && captureRouting !== null ? { captureRouting } : {}), agentMemory, ...(workLog ? { workLog } : {}),
86
94
  ...(knowledgeUsage ? { knowledgeUsage } : {}) })
87
95
  )).digest('hex');
88
- if (task.checkpoint && task.checkpoint.fingerprint !== fingerprint) {
89
- throw validationError(
90
- 'Task checkpoint already has different input; resend the exact arguments of the first checkpoint call to finish it, or begin a new task context'
91
- );
96
+ if (!amend && task.checkpoint && task.checkpoint.fingerprint !== fingerprint) {
97
+ throw validationError(checkpointConflictMessage(task.checkpoint));
92
98
  }
93
- const finish = async (result, checkpointTask = task, memory = null) => {
99
+ // An amendment finishes from its stored entry: its log, decision and event (rec#85).
100
+ const finish = async (result, checkpointTask = task, memory = null, amendment = null) => {
101
+ const decision = amendment?.decision ?? captureCheck;
94
102
  // The turn is finished: the prompt kept for the relay check goes (rec#80).
95
103
  try { application.entryPrompts?.checkpointed(task); } catch { /* the next entry replaces it */ }
96
104
  const team = await taskTeam(application, checkpointTask, collaborators);
97
- const effectiveLog = workLog ?? { status: 'reported', summary: reason };
98
- const conversation = captureCheck.allowed ? await checkpointConversation(application, task, effectiveLog, team)
99
- : captureDisabled(captureCheck);
105
+ const effectiveLog = amendment?.log ?? workLog ?? { status: 'reported', summary: reason };
106
+ const conversation = decision.allowed ? await checkpointConversation(application, task, effectiveLog, team, amendment?.eventId)
107
+ : captureDisabled(decision);
100
108
  const triaged = await recordTriage(application, task, conversation, triageLabel);
101
109
  // This session went on, so a block it reported has ended and leaves the person's queue.
102
110
  await clearSessionTaskBlockers(application, { sourceApplication: task.sourceApplication,
103
- sessionIds: [task.sessionId], cause: 'session_activity', captureAllowed: captureCheck.allowed });
111
+ sessionIds: [task.sessionId], cause: 'session_activity', captureAllowed: decision.allowed });
104
112
  // Its Agent's blocks reported in other sessions may be solved here too: probably resolved.
105
113
  await noteBlockerProgress(application, { sourceApplication: task.sourceApplication, sessionId: task.sessionId,
106
- personalProjectId: task.personalProjectId, agentId: task.projectAgentId, captureAllowed: captureCheck.allowed });
114
+ personalProjectId: task.personalProjectId, agentId: task.projectAgentId, captureAllowed: decision.allowed });
107
115
  const interaction = activeSealedWorkerRequest() ? {} : await checkpointHumanInteraction(application, task);
108
116
  // A task without an owner says why, as its entry did.
109
117
  const unassigned = task.projectAgentId ? null : storedUnassignment(task);
@@ -113,10 +121,18 @@ export async function checkpointTaskKnowledge(application, {
113
121
  assignmentStatus: unassigned?.status ?? null, assignmentReason: unassigned?.reason ?? null,
114
122
  workStatus: effectiveLog.status, conversationId: conversation?.conversation_id ?? null,
115
123
  persistence: conversation?.status ?? null, collaborators: team.collaborators,
116
- notices: [...namedFlaReceiptNotices(task), ...standingReceiptNotices(task), ...receiptNotices(captureCheck, [], { settingsUrl: captureSettingsUrl(application) }), ...await receiptFormatNotices(application, { taskId: task.token })],
124
+ roundtable: roundtableTurn(task.token),
125
+ notices: [...namedFlaReceiptNotices(task), ...standingReceiptNotices(task), ...ownerChangeReceiptNotices(task), ...receiptNotices(decision, [], { settingsUrl: captureSettingsUrl(application) }), ...await receiptFormatNotices(application, { taskId: task.token })],
117
126
  turnReceipt: await checkpointTurnReceipt(application, checkpointTask, { memory, agentName: team.name }) }),
118
127
  ...(team.ignored.length ? { ignored_collaborators: team.ignored } : {}) };
119
128
  };
129
+ if (amend && fingerprint !== task.checkpoint.fingerprint) {
130
+ const amended = await amendCheckpoint(application, task, { disposition, reason, workLog, fingerprint }, captureCheck);
131
+ return finish({ status: 'amended', disposition, reason, personal_project_id: task.personalProjectId,
132
+ project_agent_id: task.projectAgentId ?? null, amendment: amended.sequence,
133
+ ...(amended.replayed ? { replayed: true } : {}) }, amended.task, null,
134
+ { ...amended, eventId: `${task.token}:amendment:${amended.sequence}` });
135
+ }
120
136
  if (task.checkpoint?.phase === 'complete') {
121
137
  return finish({ status: 'checkpointed', disposition, reason,
122
138
  personal_project_id: task.personalProjectId, project_agent_id: task.projectAgentId,
@@ -2,6 +2,7 @@ import { receiptConsoleUrl } from '../agents/identity-receipt.js';
2
2
  import { createProjectNamed, projectByName } from './task-entry-project-mention.js';
3
3
  import { PERSON_WRITER, UNNAMED_AGENT_WRITER } from './project-profile-authors.js';
4
4
  import { sourceConsoleUrl } from './source-marker.js';
5
+ import { staffTopicTeam, teamNotice } from './topic-team-handoff.js';
5
6
  import { ApplicationError, ApplicationErrorCode } from '../app/application-error.js';
6
7
  import { markdownLink } from '../text/markdown-link.js';
7
8
 
@@ -12,7 +13,9 @@ import { markdownLink } from '../text/markdown-link.js';
12
13
  // yet" and an undo both wait for more conversations. Every rule reads stored
13
14
  // triage counts; no model is called. Forming also moves what the topic's
14
15
  // sessions held in their temporary projects into it, and an undo moves back
15
- // what nobody changed since (the Provider's topic_knowledge_migration).
16
+ // what nobody changed since (the Provider's topic_knowledge_migration). Then
17
+ // Bole hires the project's first team and Astro hands the topic over to each
18
+ // of them as a task of their own (topic-team-handoff.js).
16
19
  export const PROPOSAL_MIN_CONVERSATIONS = 3;
17
20
  const PROPOSAL_MIN_DAYS = 2;
18
21
  const PROPOSAL_ASK_AGAIN_AFTER = 3;
@@ -63,20 +66,37 @@ async function promoteTopic(application, topic, { sourceApplication = 'other' }
63
66
  promoted: formed.personal_project_id, topic: stats.topic })}`;
64
67
  return { ...formed, status: 'promoted', proposed_by: 'employee.assistant',
65
68
  notice: `FULI:话题「${stats.topic}」聊了 ${stats.count} 次、跨 ${stats.days} 天,已升级为项目「${stats.topic}」`
66
- + `${formed.knowledge_moved ? `,搬了 ${formed.knowledge_moved} 条知识` : ''}。${markdownLink('改名、换上级或撤销', link)}`,
67
- guidance: 'Add notice to the end of your reply, unchanged. The person can rename, move or undo it at its link.' };
69
+ + `${formed.knowledge_moved ? `,搬了 ${formed.knowledge_moved} 条知识` : ''}${teamNotice(formed.team)}。`
70
+ + `${markdownLink('改名、换上级或撤销', link)}`,
71
+ ...startQuestion(formed),
72
+ guidance: 'Add notice to the end of your reply, unchanged. The person can rename, move or undo it at its link.'
73
+ + (formed.team?.handoffs.some(item => item.task_id)
74
+ ? ' Then ask start_question with the native choice of the host; only the person answers it.' : '') };
68
75
  }
69
76
 
70
- // The person said yes: an AI-draft brief, a lead staffed through AR, and every
71
- // open conversation of the topic attached. The lead hires more people only when
72
- // the work needs them. People can rename, merge or split it afterwards.
77
+ // Whether the team starts now is the person's call at that moment (Jevons
78
+ // 11-11): one click, with 其他 for their own words. Each handover is a
79
+ // backlog task, so "yes" is setting those tasks to queued.
80
+ function startQuestion(formed) {
81
+ // Only a task waiting in the backlog can be started; a blocked one says why in the task itself.
82
+ const tasks = (formed.team?.handoffs ?? []).filter(item => item.task_id && item.status === 'backlog').map(item => item.task_id);
83
+ if (!tasks.length) return {};
84
+ return { start_question: { ask: `「${formed.topic}」的团队现在就开工吗?`, options: ['马上开工', '先不'], allow_other: true,
85
+ on_yes: { tool: 'record_project_agent_task_activity', status: 'queued', summary: '你说马上开工',
86
+ personal_project_id: formed.personal_project_id, task_ids: tasks } } };
87
+ }
88
+
89
+ // The person said yes: an AI-draft brief, a lead staffed through AR, every
90
+ // open conversation of the topic attached, and the team hired and briefed.
91
+ // People can rename, merge or split it afterwards.
73
92
  export async function acceptTopicProposal(application, { topic, sourceApplication = 'other' }) {
74
93
  const stats = await openTopic(application, topic);
75
94
  const existing = await projectByName(application, stats.topic);
76
95
  if (existing?.ambiguous) throw new ApplicationError(ApplicationErrorCode.VALIDATION,
77
96
  `More than one project is named ${stats.topic}; move the conversations to one of them instead`);
78
97
  const reason = `你同意了 Astro 的建议:话题「${stats.topic}」累计 ${stats.count} 个会话、跨 ${stats.days} 天`;
79
- return { ...await formTopicProject(application, stats, existing, reason, sourceApplication), status: 'formed' };
98
+ const formed = await formTopicProject(application, stats, existing, reason, sourceApplication);
99
+ return { ...formed, ...startQuestion(formed), status: 'formed' };
80
100
  }
81
101
 
82
102
  // Undo of a formation: the topic's conversations are open again and count as
@@ -113,10 +133,13 @@ async function formTopicProject(application, stats, existing, reason, sourceAppl
113
133
  personal_project_id: projectId, source_application: sourceApplication }).catch(() => null);
114
134
  const attached = await application.personal.conversationTriage('form', {
115
135
  personal_space_id: spaceId, topic: stats.topic, personal_project_id: projectId });
136
+ const team = lead?.agent?.agent_id ? await staffTopicTeam(application, { topic: stats.topic, projectId, lead: lead.agent,
137
+ created: !existing, conversationIds: attached.conversation_ids, knowledgeMoved: attached.knowledge.moved,
138
+ sourceApplication }) : null;
116
139
  return { personal_project_id: projectId, topic: stats.topic, reason, created: !existing,
117
140
  lead_agent_id: lead?.agent?.agent_id ?? null, lead_status: lead?.status ?? 'unavailable',
118
141
  conversations: attached.conversation_ids.length, knowledge_moved: attached.knowledge.moved,
119
- knowledge_kept: attached.knowledge.kept };
142
+ knowledge_kept: attached.knowledge.kept, ...(team ? { team } : {}) };
120
143
  }
121
144
 
122
145
  export async function declineTopicProposal(application, { topic }) {
@@ -0,0 +1,121 @@
1
+ import { ASSISTANT_AGENT_ID } from './assistant-identity.js';
2
+ import { sha256Bytes } from '../security/digest.js';
3
+ import { singleLine } from '../text/single-line.js';
4
+
5
+ // When a topic grows into a project (topic-proposals.js), Astro has Bole hire
6
+ // a small team for it and hands the work over to each of them (Jevons 11-11).
7
+ // Bole has no runtime of its own: hiring is the Provider's ordinary staffing
8
+ // task, one per position. Each person's handover is a task of their own,
9
+ // assigned and not started: the lead's carries the whole brief, a member's
10
+ // says what they are there for. The brief is an index (dates and one-line
11
+ // outcomes of the topic's conversations, how much knowledge moved); bodies
12
+ // stay where they are and are read on demand. Nothing here calls a model, and
13
+ // nothing here can undo the formation: a step that fails is reported.
14
+
15
+ // The lead's own first rule ("执行与独立验收两位 FLA") decides who is hired
16
+ // until the topic's own work kinds are read.
17
+ const TEAM_POSITIONS = Object.freeze([
18
+ { key: 'engineering', workKind: 'implementation', label: '开发',
19
+ duty: '按负责人的拆分实现和修复,改动附可复现的验证。' },
20
+ { key: 'verification', workKind: 'verification', label: '独立验收',
21
+ duty: '独立验收别人的实质性改动:自己复现、自己判断,不沿用实现者的结论。' }
22
+ ]);
23
+ const BRIEF_CONVERSATIONS = 8;
24
+ const OUTCOME_CHARS = 120;
25
+ const TOPIC_CHARS = 60;
26
+ const CONVERSATION_PAGE = 50;
27
+
28
+ // topic, projectId and lead come from the formation; conversationIds and
29
+ // knowledgeMoved from what it attached. Returns who was hired and what each
30
+ // was handed, for the notice and the console.
31
+ export async function staffTopicTeam(application, { topic, projectId, lead, created, conversationIds, knowledgeMoved,
32
+ sourceApplication = 'other' }) {
33
+ const spaceId = application.config.personal.spaceId;
34
+ const name = topic.slice(0, TOPIC_CHARS);
35
+ const conversations = await topicConversations(application, conversationIds);
36
+ const brief = handoffBrief(name, conversations, conversationIds.length, knowledgeMoved);
37
+ // One handover per set of conversations: the same formation repeated is the
38
+ // same tasks, and a topic that grows into the project again is a new handover.
39
+ const formation = sha256Bytes(JSON.stringify([...conversationIds].sort())).slice(0, 16);
40
+ const submit = async (position, body) => {
41
+ try {
42
+ return handed(position, await application.personal.submitProjectAgentTask({
43
+ personal_space_id: spaceId, personal_project_id: projectId, duration: 'ongoing', start: false,
44
+ source_application: sourceApplication, idempotency_key: `topic-handoff:${projectId}:${formation}:${position}`, ...body }));
45
+ } catch { return { position, status: 'unavailable', agent_id: null, name: null, task_id: null }; }
46
+ };
47
+
48
+ const handoffs = [await submit('lead', { lead_agent_id: lead.agent_id, staffing_intent: 'reuse_preferred',
49
+ work_kind: 'project_context', title: `接手「${name}」`, objective: brief,
50
+ routing_reason: 'Astro hands the topic it looked after over to the project lead.' })];
51
+ // A project that already had people keeps its team: only the lead is briefed.
52
+ if (created && await withoutApproval(application, spaceId, projectId)) {
53
+ for (const position of TEAM_POSITIONS) {
54
+ handoffs.push({ ...await submit(position.key, { staffing_intent: 'new_durable', work_kind: position.workKind,
55
+ coordinator_agent_id: lead.agent_id, title: `接手「${name}」:${position.label}`,
56
+ objective: `${position.duty}\n负责人:${lead.profile?.display_name ?? lead.profile?.name ?? lead.agent_id}。\n\n${brief}`.slice(0, 4096),
57
+ routing_reason: 'Astro asked Bole for the team of a topic that grew into a project.',
58
+ recruitment_profile: { name: `${name} ${position.label}`, responsibility: position.duty,
59
+ work_kinds: [position.workKind], agent_type: 'durable' } }), label: position.label });
60
+ }
61
+ }
62
+ return { handoffs, conversations: conversationIds.length, knowledge: knowledgeMoved };
63
+ }
64
+
65
+ // A project Astro just formed hires its first team without a confirmation
66
+ // each (rec#11 D-84); the person can turn asking back on in the project's
67
+ // settings. False when the policy could not be saved: nobody is hired then.
68
+ async function withoutApproval(application, spaceId, projectId) {
69
+ try {
70
+ await application.personal.updateProjectAgentCoordinationPolicy({ personal_space_id: spaceId,
71
+ personal_project_id: projectId, ask_before_recruitment: false });
72
+ return true;
73
+ } catch { return false; }
74
+ }
75
+
76
+ function handed(position, route) {
77
+ const agent = route?.assigned_agent ?? null;
78
+ return { position, status: agent ? route.task?.status ?? 'assigned' : route?.decision ?? 'unassigned',
79
+ agent_id: agent?.agent_id ?? null, name: agent?.profile?.display_name ?? agent?.profile?.name ?? null,
80
+ task_id: route?.task?.task_id ?? null };
81
+ }
82
+
83
+ // The topic's conversations as Astro holds them: when each last moved and its
84
+ // one-line outcome. A read that fails leaves the brief with the counts alone.
85
+ async function topicConversations(application, conversationIds) {
86
+ const wanted = new Set(conversationIds);
87
+ try {
88
+ const listed = await application.personal.conversation('query', { personal_space_id: application.config.personal.spaceId,
89
+ personal_project_id: null, agent_id: ASSISTANT_AGENT_ID, source_application: null, mode: 'list',
90
+ limit: CONVERSATION_PAGE });
91
+ return (listed.conversations ?? []).filter(conversation => wanted.has(conversation.id))
92
+ .map(conversation => ({ id: conversation.id, day: String(conversation.last_activity ?? '').slice(0, 10),
93
+ outcome: singleLine(conversation.summary ?? '').slice(0, OUTCOME_CHARS) }))
94
+ .sort((left, right) => right.day.localeCompare(left.day));
95
+ } catch { return []; }
96
+ }
97
+
98
+ function handoffBrief(topic, conversations, conversationCount, knowledgeMoved) {
99
+ const shown = conversations.slice(0, BRIEF_CONVERSATIONS);
100
+ const days = conversations.map(conversation => conversation.day).filter(Boolean).sort();
101
+ const span = days.length ? `(${days[0]} 至 ${days.at(-1)})` : '';
102
+ const lines = shown.map(conversation => `- ${conversation.day || '日期未知'} · ${conversation.outcome || '没有记录结果'}`);
103
+ const rest = conversationCount - shown.length;
104
+ return [
105
+ `Astro 的交接:话题「${topic}」已成立为项目。`,
106
+ `此前由 Astro 接待:${conversationCount} 个会话${span},搬入项目 ${knowledgeMoved} 条知识。`,
107
+ ...(lines.length ? ['会话结果(新的在前):', ...lines] : []),
108
+ ...(rest > 0 && lines.length ? [`另有 ${rest} 个会话没有列出。`] : []),
109
+ '接手后:先用 search_current_project_knowledge 查搬来的知识,再定下一步;Astro 不再跟进这个话题。'
110
+ ].join('\n');
111
+ }
112
+
113
+ // One sentence for the receipt: who Bole hired and what Astro handed over.
114
+ export function teamNotice(team) {
115
+ if (!team) return '';
116
+ const hired = team.handoffs.filter(item => item.agent_id && item.position !== 'lead');
117
+ const people = hired.map(item => `${item.label} ${item.name ?? item.agent_id}`).join('、');
118
+ const handed = team.handoffs.filter(item => item.task_id).length;
119
+ return `${hired.length ? `,Bole 招了 ${hired.length} 人(${people})` : ''}`
120
+ + `${handed ? `,Astro 已交接给 ${handed} 人` : ''}`;
121
+ }
@@ -1,25 +1,8 @@
1
- import { captureDecision, captureDisabled } from './capture-decision.js';
2
1
  import { assertActivePersonalSpace } from './active-personal-space.js';
3
- import { assertNoCredentials } from './knowledge-credential-guard.js';
4
2
  import {
5
3
  providerWorkflowCandidateSearch,
6
4
  workflowCandidatePage
7
5
  } from './workflow-candidate-mapping.js';
8
- import {
9
- providerWorkflowTransitionObservation
10
- } from './workflow-observation.js';
11
-
12
- export async function recordWorkflowTransitionObservation(application, input) {
13
- assertActivePersonalSpace(application, input.personalSpaceId);
14
- const capture = await captureDecision(application, { sourceApplication: input.sourceApplication,
15
- personalProjectId: input.personalProjectId ?? null, sessionId: input.hostSessionId ?? null });
16
- if (!capture.allowed) return { route: 'disabled', ...captureDisabled(capture) };
17
- assertNoCredentials(input);
18
- const result = await application.personal.recordWorkflowObservation(
19
- providerWorkflowTransitionObservation(input)
20
- );
21
- return { route: 'personal', ...result };
22
- }
23
6
 
24
7
  export async function listWorkflowCandidates(application, input) {
25
8
  assertActivePersonalSpace(application, input.personalSpaceId);
@@ -28,11 +11,3 @@ export async function listWorkflowCandidates(application, input) {
28
11
  );
29
12
  return workflowCandidatePage(result);
30
13
  }
31
-
32
- export async function recommendNextWorkflowSteps(application, input) {
33
- assertActivePersonalSpace(application, input.personalSpaceId);
34
- const result = await application.personal.recommendWorkflowCandidates(
35
- providerWorkflowCandidateSearch(input)
36
- );
37
- return workflowCandidatePage(result);
38
- }