fuli-context 0.23.0 → 0.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (689) hide show
  1. package/README.md +169 -979
  2. package/README.zh-CN.md +157 -830
  3. package/dist/web/assets/{AboutPage-S8QFfzpA.js → AboutPage-Dx07_Z8u.js} +1 -1
  4. package/dist/web/assets/{AboutSectionHeading-B5CzH4Zs.js → AboutSectionHeading-BdhpM609.js} +1 -1
  5. package/dist/web/assets/AgentAppsPage-5VW0uCTz.js +1 -0
  6. package/dist/web/assets/{AgentAppsPage-BuJWNNdL.css → AgentAppsPage-BCxrjrsE.css} +1 -1
  7. package/dist/web/assets/AgentAvatar-DbsG1_BY.css +1 -0
  8. package/dist/web/assets/AgentAvatar-DlAQP7gm.js +1 -0
  9. package/dist/web/assets/{AgentHand-BGGdVdd9.js → AgentHand-FPFg9-Y1.js} +1 -1
  10. package/dist/web/assets/AgentManagement-CLFw9oV9.css +1 -0
  11. package/dist/web/assets/AgentManagement-UTe4I3WA.js +7 -0
  12. package/dist/web/assets/AgentMentionCopy-B9eIIr3L.css +1 -0
  13. package/dist/web/assets/AgentMentionCopy-C5ExlutT.js +1 -0
  14. package/dist/web/assets/{AgentName-CUjBNQ8j.js → AgentName-C8mYbtKs.js} +1 -1
  15. package/dist/web/assets/AgentProfilePage-BLeyT3By.js +5 -0
  16. package/dist/web/assets/{AgentProfilePage-D5QUzw5N.css → AgentProfilePage-DumsVHP1.css} +1 -1
  17. package/dist/web/assets/AgentServicesPage-B2mDUgYZ.css +1 -0
  18. package/dist/web/assets/AgentServicesPage-BXi152Xc.js +1 -0
  19. package/dist/web/assets/{AppViewerPage-CcOlwxck.js → AppViewerPage-BR8ttEGa.js} +1 -1
  20. package/dist/web/assets/{BackToTop-C3KYEoCW.js → BackToTop-5_AQRMZl.js} +1 -1
  21. package/dist/web/assets/{BoardCardFieldsMenu-BlBWT1j7.js → BoardCardFieldsMenu-Bb_Z9a4Q.js} +1 -1
  22. package/dist/web/assets/{BoardMoveMenu-Bc7xC1Uh.js → BoardMoveMenu-B-f8O6cC.js} +1 -1
  23. package/dist/web/assets/{Breadcrumb-C_xMiD-Z.js → Breadcrumb-DtM5lZy5.js} +1 -1
  24. package/dist/web/assets/{CaptureChangePage-Bekp1aWg.js → CaptureChangePage-BzwcfacI.js} +1 -1
  25. package/dist/web/assets/ConnectionsPage-C_vgqwF2.js +1 -0
  26. package/dist/web/assets/ConnectionsPage-DS2PEG6K.css +1 -0
  27. package/dist/web/assets/{CopyFixPrompt-Bp-UX4Hq.js → CopyFixPrompt-DlarhfPK.js} +1 -1
  28. package/dist/web/assets/DataFormatPage-Ccy_e9rf.css +1 -0
  29. package/dist/web/assets/DataFormatPage-DwL4Ofc9.js +2 -0
  30. package/dist/web/assets/DebugTurnPage-UpK_3ZWY.js +1 -0
  31. package/dist/web/assets/DebugTurnsPage-C0aZg5-3.js +1 -0
  32. package/dist/web/assets/{DialogTitle-Lj5s6nwG.js → DialogTitle-BQXOe8EK.js} +1 -1
  33. package/dist/web/assets/{EmployeeRedirectPage-DnvwJeCN.js → EmployeeRedirectPage-BjWpXDSM.js} +1 -1
  34. package/dist/web/assets/EmployeeScopeDialog-Bt3ZlDyZ.js +1 -0
  35. package/dist/web/assets/EmployeeScopeDialog-U_-eNH0Z.css +1 -0
  36. package/dist/web/assets/{EmployeeWorkbench-BhReI8l6.css → EmployeeWorkbench-Bp9pUkfS.css} +1 -1
  37. package/dist/web/assets/EmployeeWorkbench-GtJIUD5G.js +4 -0
  38. package/dist/web/assets/FieldRoot-DRf4wM5x.js +1 -0
  39. package/dist/web/assets/FlaGrowth-DgVLB8hp.css +1 -0
  40. package/dist/web/assets/FlaGrowth-OQtTLTng.js +1 -0
  41. package/dist/web/assets/FlaOccupationKit-BvrKsosv.css +1 -0
  42. package/dist/web/assets/FlaOccupationKit-C-x4VrKk.js +1 -0
  43. package/dist/web/assets/{FlaTaskSheets-CNdaBy1P.js → FlaTaskSheets-CoaF5CbQ.js} +1 -1
  44. package/dist/web/assets/FlasPage-CgIVOGFM.js +1 -0
  45. package/dist/web/assets/FlasPage-H99IZ9M6.css +1 -0
  46. package/dist/web/assets/{GrowthLoading-Cr8xZwwO.js → GrowthLoading-VuVo2vLf.js} +1 -1
  47. package/dist/web/assets/{HowtoPage-Cv1YQy1s.js → HowtoPage-CZ3mOdLc.js} +1 -1
  48. package/dist/web/assets/{HowtoPage-t12tDDpS.css → HowtoPage-CrvMmT6K.css} +1 -1
  49. package/dist/web/assets/InboxPage-1ue8vA7H.css +1 -0
  50. package/dist/web/assets/InboxPage-zNUnnYeJ.js +6 -0
  51. package/dist/web/assets/{KnowledgeDeleteButton-FEyEvhlR.js → KnowledgeDeleteButton-BlUnSG3b.js} +1 -1
  52. package/dist/web/assets/{KnowledgeHardDeleteSection-CVwTeMEJ.js → KnowledgeHardDeleteSection-CznXBtHY.js} +1 -1
  53. package/dist/web/assets/KnowledgeItemEditPage-DGRNkAYd.js +1 -0
  54. package/dist/web/assets/{KnowledgeItemSummaryCard-49EADY_Z.js → KnowledgeItemSummaryCard-Co5JKBHl.js} +1 -1
  55. package/dist/web/assets/KnowledgeOrganizerPage-BWvF1GEu.js +1 -0
  56. package/dist/web/assets/KnowledgeOrganizerPage-CJaFkfS7.css +1 -0
  57. package/dist/web/assets/KnowledgePage--Z4_kAhq.js +1 -0
  58. package/dist/web/assets/KnowledgePeek-BgzQA9SI.js +1 -0
  59. package/dist/web/assets/{KnowledgePeek-Bm5jRVA9.css → KnowledgePeek-CwZVuSkf.css} +1 -1
  60. package/dist/web/assets/{KnowledgeTurnReceiptPage-BOz7IpaK.js → KnowledgeTurnReceiptPage-Csyjimeg.js} +1 -1
  61. package/dist/web/assets/KnowledgeWorkspace-0yOpWtEB.js +4 -0
  62. package/dist/web/assets/{KnowledgeWorkspace-DCoVFyf0.css → KnowledgeWorkspace-BgWo6lBj.css} +1 -1
  63. package/dist/web/assets/{MeAvatar-CYVcRiuW.js → MeAvatar-aY_q8cKs.js} +1 -1
  64. package/dist/web/assets/{MeLink-BdqkzhT6.js → MeLink-B0pNwVLa.js} +1 -1
  65. package/dist/web/assets/MenuSeparator-BR-uLovR.js +1 -0
  66. package/dist/web/assets/ModelSettingsPage-B9PS1Kay.css +1 -0
  67. package/dist/web/assets/ModelSettingsPage-BL6MsF7C.js +1 -0
  68. package/dist/web/assets/{NotFoundPage-Dmn32VWo.js → NotFoundPage-Cr1MaPuk.js} +1 -1
  69. package/dist/web/assets/NoticeRow-BXZWn4EZ.js +1 -0
  70. package/dist/web/assets/NoticeRow-ktVO_9Es.css +1 -0
  71. package/dist/web/assets/OccupationsPage-CkVqZ2pz.js +1 -0
  72. package/dist/web/assets/OccupationsPage-Dup7WzNh.css +1 -0
  73. package/dist/web/assets/OverviewPage-BkJ17OYv.js +1 -0
  74. package/dist/web/assets/OverviewPage-Dr4jrXW4.css +1 -0
  75. package/dist/web/assets/{PageColumns-DpfaPeu7.js → PageColumns-DvehZlYm.js} +1 -1
  76. package/dist/web/assets/PageOutline-CFGtHmOK.js +1 -0
  77. package/dist/web/assets/PageOutline-DG5ZYtA8.css +1 -0
  78. package/dist/web/assets/{PersonalProfilePage-DdBfHnqq.css → PersonalProfilePage-DnjNX2xK.css} +1 -1
  79. package/dist/web/assets/PersonalProfilePage-TxsNr44t.js +1 -0
  80. package/dist/web/assets/PersonalProjectsPage-AhgP6CL8.js +1 -0
  81. package/dist/web/assets/{PinIcon-B7dvh7ld.js → PinIcon-BTQsnxRY.js} +1 -1
  82. package/dist/web/assets/PopperContent-DtMksk76.js +1 -0
  83. package/dist/web/assets/{Presence-D3HKb5Hb.js → Presence-B0zMpCF4.js} +1 -1
  84. package/dist/web/assets/ProfileAuthorChip-BqT9Vv65.js +1 -0
  85. package/dist/web/assets/ProfileAuthorChip-CAWNGoW3.css +1 -0
  86. package/dist/web/assets/{ProjectAgentsPage-RpfiV2Fm.css → ProjectAgentsPage-CjeXFzHr.css} +1 -1
  87. package/dist/web/assets/ProjectAgentsPage-O-cMavcz.js +5 -0
  88. package/dist/web/assets/{ProjectJudgmentPolicy-GA33aSRi.js → ProjectJudgmentPolicy-CyHAu0nm.js} +2 -2
  89. package/dist/web/assets/{PublicProjectsPage-PJlBI8IE.js → PublicProjectsPage-Ck1QSR0R.js} +1 -1
  90. package/dist/web/assets/RecentNotices-vJobVOcm.js +1 -0
  91. package/dist/web/assets/{RoundtablesPage-DT5DUXsa.js → RoundtablesPage-C3dYekQ5.js} +6 -6
  92. package/dist/web/assets/{RoundtablesPage-DK9A9J-y.css → RoundtablesPage-DL-IOngN.css} +1 -1
  93. package/dist/web/assets/RovingFocusGroup-CUqyjFSs.js +1 -0
  94. package/dist/web/assets/{RovingFocusItem-CFd7tXzD.js → RovingFocusItem-CyyuWXjE.js} +1 -1
  95. package/dist/web/assets/{SessionMigrationPage-BZ1lEDQr.js → SessionMigrationPage-DukDM0TP.js} +1 -1
  96. package/dist/web/assets/SessionRecordsPage-DZ5ZBiuS.js +1 -0
  97. package/dist/web/assets/SettingsPage-CWGk0XZ_.js +1 -0
  98. package/dist/web/assets/SettingsPage-Cj3pEWcd.css +1 -0
  99. package/dist/web/assets/SharedJefaReportPage-DUY03VLS.js +1 -0
  100. package/dist/web/assets/TagVocabularyPage-BKLFJiSu.js +1 -0
  101. package/dist/web/assets/TaskBlockerClear-BBmPbomO.css +1 -0
  102. package/dist/web/assets/TaskBlockerClear-BxOiiuK8.js +1 -0
  103. package/dist/web/assets/TaskBlockerNotice-iUiD3BuZ.js +1 -0
  104. package/dist/web/assets/{TaskReason-LQ0CFiKu.js → TaskReason-D5j7L8tl.js} +1 -1
  105. package/dist/web/assets/TeamCard-CDunbIrP.js +1 -0
  106. package/dist/web/assets/TeamCard-CihQsZZ1.css +1 -0
  107. package/dist/web/assets/{TeamCardsWidget-DGX9k0S6.js → TeamCardsWidget-CUW-fPn7.js} +1 -1
  108. package/dist/web/assets/TeamIsland-CmpDmIX2.js +9 -0
  109. package/dist/web/assets/{TeamIsland-BBQbpozz.css → TeamIsland-DvtcsAsb.css} +1 -1
  110. package/dist/web/assets/{Teleport-C1upABpY.js → Teleport-Dzdr8umQ.js} +1 -1
  111. package/dist/web/assets/{TextField-ZnmRqG0h.js → TextField-BPhEpEv9.js} +1 -1
  112. package/dist/web/assets/TonborgDelegationSwitch-C1nkJqkJ.js +1 -0
  113. package/dist/web/assets/TonborgDelegationSwitch-DeqERWoo.css +1 -0
  114. package/dist/web/assets/{UiChip-CizeOu1Q.js → UiChip-BEQ067LV.js} +1 -1
  115. package/dist/web/assets/{UiDialog-CGTzxn3-.js → UiDialog-JjqzOA0z.js} +1 -1
  116. package/dist/web/assets/{UiDisclosure-ueMA4jl0.js → UiDisclosure-L6GEJHSw.js} +1 -1
  117. package/dist/web/assets/{UiIcon-sD1hUsOF.js → UiIcon-vgD4v8q8.js} +1 -1
  118. package/dist/web/assets/UiIconButton-BzyMc14P.js +1 -0
  119. package/dist/web/assets/{UiSegmented-BZ-jqnPE.js → UiSegmented-CIIm3KoV.js} +1 -1
  120. package/dist/web/assets/{UiWeight-BRO3oVMZ.js → UiWeight-D-2iZ_Kc.js} +1 -1
  121. package/dist/web/assets/VirtualDirectoryList-BJecsQct.css +1 -0
  122. package/dist/web/assets/VirtualDirectoryList-BV8KsA-Z.js +1 -0
  123. package/dist/web/assets/{VisuallyHidden-B8wfJ_mU.js → VisuallyHidden-BxKxuXRF.js} +1 -1
  124. package/dist/web/assets/VisuallyHiddenInput-DD4vhlqT.js +1 -0
  125. package/dist/web/assets/WidgetSlot-Dw5nWlb7.js +2 -0
  126. package/dist/web/assets/WorkbenchListHead-B0TjHsTO.js +1 -0
  127. package/dist/web/assets/WorkbenchListPage-BX6Z9gkB.css +1 -0
  128. package/dist/web/assets/WorkbenchListPage-D0xX-YNl.js +1 -0
  129. package/dist/web/assets/_plugin-vue_export-helper-B4pFJCwG.js +9 -0
  130. package/dist/web/assets/agent-apps-B1Je-mpY.js +1 -0
  131. package/dist/web/assets/agent-occupation-CjfQqSzd.js +1 -0
  132. package/dist/web/assets/{agent-pins-8KX0ynzy.js → agent-pins-DxHlJ96z.js} +1 -1
  133. package/dist/web/assets/agent-profile-BNPLhDog.css +1 -0
  134. package/dist/web/assets/{agent-roster-records-PfAgndHp.js → agent-roster-records-Bi5HWDif.js} +1 -1
  135. package/dist/web/assets/agent-work-summary-o_9-QWBL.js +1 -0
  136. package/dist/web/assets/{agent-workflows-DQlqVOoA.js → agent-workflows-DgdbJqpg.js} +1 -1
  137. package/dist/web/assets/{attach-closest-edge-D2qlayPy.js → attach-closest-edge-DUc_VUVO.js} +1 -1
  138. package/dist/web/assets/{attention-store-BnZ8l3kk.js → attention-store-Bod20yM3.js} +1 -1
  139. package/dist/web/assets/{badge-DX_xrLV6.js → badge-tMy2Qr94.js} +1 -1
  140. package/dist/web/assets/{button-CEkPBC1E.js → button-DnKFsImW.js} +1 -1
  141. package/dist/web/assets/{card-DNQ0_6vT.js → card-Ccu7HCNb.js} +1 -1
  142. package/dist/web/assets/{catalog-KnpBkv5t.js → catalog-CJUV8OJ6.js} +1 -1
  143. package/dist/web/assets/checkbox-D1R6kTUB.js +1 -0
  144. package/dist/web/assets/{client-CSQcWFRh.js → client-D-G2i5VU.js} +2 -2
  145. package/dist/web/assets/client-links-store-UgmraFBZ.js +1 -0
  146. package/dist/web/assets/combobox-C7QLYGzs.js +1 -0
  147. package/dist/web/assets/console-DgRc8Itw.js +1 -0
  148. package/dist/web/assets/{conversation-launcher-settings-CXFE-q_A.js → conversation-launcher-settings-CZAfuu8B.js} +1 -1
  149. package/dist/web/assets/copy-mention-C0EJhDPy.js +1 -0
  150. package/dist/web/assets/{dialog-CxhKMo0D.js → dialog-Bbq93W68.js} +1 -1
  151. package/dist/web/assets/{dist-B9GqMC5C.js → dist-Dd8yFhv6.js} +1 -1
  152. package/dist/web/assets/{dist-DIJqkL4O.js → dist-PpsW5ZE3.js} +1 -1
  153. package/dist/web/assets/dropdown-menu-1fGUL0V3.js +1 -0
  154. package/dist/web/assets/{field-LNsBZqam.js → field-DjVv_wIS.js} +1 -1
  155. package/dist/web/assets/{format-bytes-Bqefdt37.js → format-bytes-BKq_E0Hs.js} +1 -1
  156. package/dist/web/assets/hover-card-BO-929hq.js +1 -0
  157. package/dist/web/assets/{identity-DRfhWjty.js → identity-DIG-uOiU.js} +1 -1
  158. package/dist/web/assets/index-DF0TcfPY.css +1 -0
  159. package/dist/web/assets/index-RWEx1M91.js +24 -0
  160. package/dist/web/assets/{input-UoZ-0Xne.js → input-DmwRmYO2.js} +1 -1
  161. package/dist/web/assets/is-equal-8VOV02sH.js +1 -0
  162. package/dist/web/assets/{label-DpjbTOxt.js → label-BvwPUTS4.js} +1 -1
  163. package/dist/web/assets/label-table-CDzYRZpc.js +1 -0
  164. package/dist/web/assets/{model-CpuIG8Du.js → model-0TZRbkN2.js} +1 -1
  165. package/dist/web/assets/model-BF_ZMPLi.js +1 -0
  166. package/dist/web/assets/model-BjUERpoQ.js +3 -0
  167. package/dist/web/assets/model-CaR7VPg7.js +1 -0
  168. package/dist/web/assets/{model-pJ6k3zYD.js → model-Dfe81jZT.js} +1 -1
  169. package/dist/web/assets/{model-BYKHVgJr.js → model-DpkZUZUL.js} +1 -1
  170. package/dist/web/assets/{model-13BQndfF.js → model-Tmn6HvL-.js} +1 -1
  171. package/dist/web/assets/{model-B5g0CFcM.js → model-y7OUvtKz.js} +1 -1
  172. package/dist/web/assets/motion-C1fZrqmI.js +1 -0
  173. package/dist/web/assets/{motion-C-ZimCUS.js → motion-mAmbRj_M.js} +1 -1
  174. package/dist/web/assets/{motion-preference-BQiiwhab.js → motion-preference-Dz9S1bZa.js} +1 -1
  175. package/dist/web/assets/npm-copies-BLRc0FXW.js +1 -0
  176. package/dist/web/assets/{client-connection-model-DVwA-GIu.css → npm-copies-GRyMAduA.css} +1 -1
  177. package/dist/web/assets/occupation-catalog-_SnxxRbK.js +1 -0
  178. package/dist/web/assets/occupation-kits-DFC6Auuc.js +1 -0
  179. package/dist/web/assets/{option-CcHPBOo6.js → option-DC8frdbr.js} +1 -1
  180. package/dist/web/assets/{orchestration-filters-DmF4Qs8E.js → orchestration-filters-UeiAHJqn.js} +1 -1
  181. package/dist/web/assets/overview-data-Cq1gefY5.js +1 -0
  182. package/dist/web/assets/page-refresh-DdRJaxMv.js +1 -0
  183. package/dist/web/assets/{page-title-NXphgeQI.js → page-title-Cm9u_qw1.js} +1 -1
  184. package/dist/web/assets/person-profile-BH2AzOfw.js +1 -0
  185. package/dist/web/assets/{popover-xSRzcSmY.js → popover-DW__YCSE.js} +1 -1
  186. package/dist/web/assets/popup-host-ctKYu9Ze.js +1 -0
  187. package/dist/web/assets/profile-model-DtISOJ-X.js +1 -0
  188. package/dist/web/assets/{project-board-layout-DBQeP_QP.js → project-board-layout-CTM8kAgq.js} +1 -1
  189. package/dist/web/assets/{project-capture-BhYsDWwJ.js → project-capture-B3pNhpFF.js} +1 -1
  190. package/dist/web/assets/{project-origin-D8jy8EF_.js → project-origin-BO8Ngccf.js} +1 -1
  191. package/dist/web/assets/quick-edit-api-B169r5Qb.js +1 -0
  192. package/dist/web/assets/radio-group-DqA46cXQ.js +1 -0
  193. package/dist/web/assets/review-api-CJaNgPMA.js +1 -0
  194. package/dist/web/assets/review-list-BbV-Mle7.js +1 -0
  195. package/dist/web/assets/review-store-DSQpb5P8.js +1 -0
  196. package/dist/web/assets/{role-names-PECaMfQo.js → role-names-By0xdfTn.js} +1 -1
  197. package/dist/web/assets/roundtable-live-u9qUU6aA.js +1 -0
  198. package/dist/web/assets/{runtime-dom.esm-bundler-f39i44Mt.js → runtime-dom.esm-bundler-DhFy4Djs.js} +1 -1
  199. package/dist/web/assets/save-file-oGyIokMI.js +1 -0
  200. package/dist/web/assets/select-TqPBladU.js +1 -0
  201. package/dist/web/assets/{session-launch-offers-X9b0DwF1.js → session-launch-offers-CtQeY4Qk.js} +1 -1
  202. package/dist/web/assets/{settings-restart-BnwcTv3i.js → settings-autosave-C7vW3_SP.js} +1 -1
  203. package/dist/web/assets/settings-restart-p12HUUve.js +1 -0
  204. package/dist/web/assets/{shared-report-BxNVLalR.js → shared-report-DQBSigHB.js} +3 -3
  205. package/dist/web/assets/{source-adapters-aupsL146.js → source-adapters-DPJzumzC.js} +1 -1
  206. package/dist/web/assets/{switch-B3Y3oE_n.js → switch-D7w_0h3m.js} +1 -1
  207. package/dist/web/assets/tabs-DR8k0PN9.js +1 -0
  208. package/dist/web/assets/{task-card-fields-DAx6zMLz.js → task-card-fields-X1ZYCm_j.js} +1 -1
  209. package/dist/web/assets/{task-labels-BdDFvSAy.js → task-labels-LuXoQhF9.js} +1 -1
  210. package/dist/web/assets/{task-reason-7WnPreht.js → task-reason-ChpbGtyx.js} +1 -1
  211. package/dist/web/assets/{team-sheets-Cr0ZTPw3.js → team-sheets-DYCQqa8I.js} +1 -1
  212. package/dist/web/assets/{textarea-CRzFqL9a.js → textarea-D53VYanK.js} +1 -1
  213. package/dist/web/assets/ui-D4nAhcmu.css +1 -0
  214. package/dist/web/assets/ui-DmNbL8MW.js +1 -0
  215. package/dist/web/assets/{useAgentRecords-CMtpd3Fj.js → useAgentRecords-Hy9nqMs7.js} +1 -1
  216. package/dist/web/assets/useAgentWorkSummary-mloD4p12.js +1 -0
  217. package/dist/web/assets/{useApi-CROJJdhE-CRCgNOqq.js → useApi-CROJJdhE-DnUGUb8O.js} +1 -1
  218. package/dist/web/assets/{useClipboardCopy-DkqKK3wY.js → useClipboardCopy-BTuQMeWI.js} +1 -1
  219. package/dist/web/assets/{useFocusReturn-BZpVmQnM.js → useFocusReturn-4hUmSzj9.js} +1 -1
  220. package/dist/web/assets/{useForwardExpose-Di-MnbTz.js → useForwardExpose-BDmW7q7u.js} +1 -1
  221. package/dist/web/assets/{useForwardPropsEmits-L9XcB5DG.js → useForwardPropsEmits-BzT2luD4.js} +1 -1
  222. package/dist/web/assets/useForwardScopeId-DZCnSswO.js +1 -0
  223. package/dist/web/assets/useKnowledgeConfirm-L8wnJCuX.js +1 -0
  224. package/dist/web/assets/useKnowledgeItemPeek-C_huXt6E.js +1 -0
  225. package/dist/web/assets/{useMinimumLoadingDisplay-CWPiOaDl.js → useMinimumLoadingDisplay-Dkl8NQru.js} +1 -1
  226. package/dist/web/assets/usePageTools-CbDOdIrg.js +1 -0
  227. package/dist/web/assets/usePrimitiveElement-tPQM7XJs.js +1 -0
  228. package/dist/web/assets/{useProjectAgentRoster-CWVpSsQ3.js → useProjectAgentRoster-BBmRvcgr.js} +1 -1
  229. package/dist/web/assets/{useRoutePeek-DxLVksbJ.js → useRoutePeek-CRbCDqsm.js} +1 -1
  230. package/dist/web/assets/useTeamPeople-D_5cxxf1.js +1 -0
  231. package/dist/web/assets/{useTeamWork-BTZd_wKs.js → useTeamWork-CXEQwF4n.js} +1 -1
  232. package/dist/web/assets/{useTypeahead-pEZNpBls.js → useTypeahead-CVYuxPOD.js} +1 -1
  233. package/dist/web/assets/{utils-BsxOjD1Q.js → utils-BnrWDlfm.js} +1 -1
  234. package/dist/web/assets/utils-BsGjKHV8.js +1 -0
  235. package/dist/web/assets/verification-DbCo_dnY.js +1 -0
  236. package/dist/web/assets/{version-db3QWWjt.js → version-Ci3l8Vnb.js} +1 -1
  237. package/dist/web/assets/{vue-router-B79HWW1l.js → vue-router-D4_ms6om.js} +1 -1
  238. package/dist/web/assets/workbench-card-Dt0820yW.css +1 -0
  239. package/dist/web/index.html +90 -74
  240. package/docs/agent-conversations-and-collaboration.md +55 -58
  241. package/docs/agent-interface-architecture.md +7 -2
  242. package/docs/agent-roundtable.md +9 -8
  243. package/docs/client-connections.md +85 -8
  244. package/docs/client-links.md +16 -1
  245. package/docs/employee-agents.md +1 -1
  246. package/docs/judgment-and-autonomy.md +2 -0
  247. package/docs/public-personal-architecture.md +1 -1
  248. package/graph-provider/fuli_graph/app.py +2 -0
  249. package/graph-provider/fuli_graph/graph_field_contract.py +6 -3
  250. package/graph-provider/fuli_graph/graph_format_migrations.py +6 -0
  251. package/graph-provider/fuli_graph/graph_models.py +11 -62
  252. package/graph-provider/fuli_graph/graph_query.py +46 -105
  253. package/graph-provider/fuli_graph/knowledge_batch_confirmation.py +7 -5
  254. package/graph-provider/fuli_graph/knowledge_duplicate_models.py +24 -0
  255. package/graph-provider/fuli_graph/knowledge_duplicate_rules.py +157 -0
  256. package/graph-provider/fuli_graph/knowledge_duplicates.py +357 -0
  257. package/graph-provider/fuli_graph/knowledge_item_routes.py +3 -1
  258. package/graph-provider/fuli_graph/knowledge_item_view.py +45 -2
  259. package/graph-provider/fuli_graph/knowledge_item_view_models.py +21 -0
  260. package/graph-provider/fuli_graph/knowledge_management.py +6 -1
  261. package/graph-provider/fuli_graph/knowledge_outdated.py +15 -5
  262. package/graph-provider/fuli_graph/knowledge_review.py +65 -2
  263. package/graph-provider/fuli_graph/knowledge_review_models.py +5 -0
  264. package/graph-provider/fuli_graph/knowledge_search.py +0 -31
  265. package/graph-provider/fuli_graph/knowledge_versions.py +12 -1
  266. package/graph-provider/fuli_graph/models.py +9 -2
  267. package/graph-provider/fuli_graph/preference_versions.py +28 -7
  268. package/graph-provider/fuli_graph/project_agent_routes.py +60 -2
  269. package/graph-provider/fuli_graph/project_agent_task_models.py +63 -5
  270. package/graph-provider/fuli_graph/store.py +2 -0
  271. package/graph-provider/fuli_graph/store_project_agent_task_activity.py +12 -3
  272. package/graph-provider/fuli_graph/store_project_agent_task_blockers.py +110 -23
  273. package/graph-provider/fuli_graph/store_project_agent_task_pages.py +186 -0
  274. package/graph-provider/fuli_graph/store_project_agent_task_reads.py +6 -4
  275. package/graph-provider/fuli_graph/store_project_agent_task_recruitment.py +0 -7
  276. package/graph-provider/fuli_graph/store_project_agent_tasks.py +4 -3
  277. package/graph-provider/fuli_graph/store_task_contexts.py +14 -4
  278. package/graph-provider/fuli_graph/task_blocker.py +38 -6
  279. package/graph-provider/fuli_graph/tonborg_confirmation.py +48 -0
  280. package/graph-provider/pyproject.toml +1 -1
  281. package/native/win32/fuli-win-helper.exe +0 -0
  282. package/npm-shrinkwrap.json +16 -50
  283. package/package.json +2 -2
  284. package/packages/roundtable/src/peer/node-store.js +2 -6
  285. package/packages/roundtable/src/roundtable/chat-service.js +2 -1
  286. package/packages/roundtable/src/roundtable/chat.js +11 -1
  287. package/packages/roundtable/src/roundtable/delivery-state.js +43 -0
  288. package/packages/roundtable/src/roundtable/fla-address.js +6 -0
  289. package/packages/roundtable/src/roundtable/group-discussion-store.js +2 -2
  290. package/packages/roundtable/src/roundtable/group-discussion.js +15 -15
  291. package/packages/roundtable/src/roundtable/person-conversation.js +2 -1
  292. package/packages/roundtable/src/roundtable/service.js +40 -9
  293. package/packages/roundtable/src/roundtable/store.js +30 -7
  294. package/packages/roundtable/src/storage/database-format.js +21 -16
  295. package/registry/client-links.json +66 -4
  296. package/registry/occupation-plugins.json +593 -0
  297. package/skills/capturing-session-knowledge/SKILL.md +16 -3
  298. package/skills/capturing-session-knowledge/references/capture.md +22 -6
  299. package/skills/capturing-session-knowledge/references/coordination.md +16 -6
  300. package/skills/capturing-session-knowledge/references/retrieval.md +23 -6
  301. package/skills/flreview/SKILL.md +1 -1
  302. package/skills/operating-fuli/SKILL.md +40 -13
  303. package/skills/operating-fuli/references/workflow-recipes.md +9 -5
  304. package/src/acceptance-checks/port.js +37 -0
  305. package/src/adaptive-runtime/settings.js +1 -1
  306. package/src/adaptive-runtime/state.js +3 -3
  307. package/src/agent-apps/host-tools/catalog.js +7 -0
  308. package/src/agent-apps/store.js +2 -10
  309. package/src/agent-delegation/person-words.js +15 -1
  310. package/src/agent-kits/cli-presence.js +78 -0
  311. package/src/agent-kits/client-installer.js +9 -5
  312. package/src/agent-kits/installer-manifest.js +11 -6
  313. package/src/agent-kits/legacy-hook-cleanup.js +4 -3
  314. package/src/agent-kits/new-sessions.js +82 -0
  315. package/src/agent-kits/opencode-plugin-gate.js +3 -1
  316. package/src/agent-kits/pins.js +12 -12
  317. package/src/agent-kits/ports.js +5 -2
  318. package/src/agent-kits/session-launcher.js +11 -4
  319. package/src/agent-kits/vendor/agent-installer/README.md +1 -1
  320. package/src/agent-kits/vendor/agent-installer/index.d.ts +1 -1
  321. package/src/agent-kits/vendor/agent-session-launcher/README.md +1 -1
  322. package/src/agent-kits/vendor/agent-session-launcher/index.d.ts +30 -1
  323. package/src/agent-kits/vendor/agent-session-launcher/index.mjs +8 -0
  324. package/src/agent-roundtable/tools.js +3 -3
  325. package/src/agent-services/store.js +2 -4
  326. package/src/agent-tools/agent-workflow-definitions.js +7 -3
  327. package/src/agent-tools/checkpoint-definitions.js +5 -4
  328. package/src/agent-tools/fla-lesson-definitions.js +24 -0
  329. package/src/agent-tools/graph-definitions.js +8 -0
  330. package/src/agent-tools/graph-handlers.js +15 -4
  331. package/src/agent-tools/interface-catalog.js +34 -9
  332. package/src/agent-tools/model-backend-definitions.js +1 -1
  333. package/src/agent-tools/occupation-kit-definitions.js +20 -0
  334. package/src/agent-tools/project-agent-definitions.js +19 -40
  335. package/src/agent-tools/project-agent-tool-definitions.js +5 -1
  336. package/src/agent-tools/reply-echo-definitions.js +18 -0
  337. package/src/agent-tools/tonborg-question-definitions.js +26 -0
  338. package/src/agent-workflows/agent-tools.js +69 -3
  339. package/src/agent-workflows/port.js +32 -4
  340. package/src/agent-workflows/store.js +16 -9
  341. package/src/agents/call-source.js +11 -0
  342. package/src/agents/choice-answers.js +19 -0
  343. package/src/agents/claude-code/choice-answers.js +49 -0
  344. package/src/agents/claude-code/fla-menu-command.js +14 -0
  345. package/src/agents/claude-code/lifecycle-hook.js +16 -9
  346. package/src/agents/claude-code/turn-records.js +38 -0
  347. package/src/agents/claude-desktop/code-tab-token-source.js +26 -0
  348. package/src/agents/codex/fla-prompts.js +98 -0
  349. package/src/agents/codex/lifecycle-hook.js +8 -7
  350. package/src/agents/cursor/lifecycle-hook.js +3 -2
  351. package/src/agents/identity-receipt.js +9 -7
  352. package/src/agents/lifecycle-failure.js +15 -5
  353. package/src/agents/lifecycle-message.js +4 -5
  354. package/src/agents/opencode/lifecycle-hook.js +12 -7
  355. package/src/agents/opencode/plugin.js +7 -2
  356. package/src/agents/token-usage-resolver.js +1 -1
  357. package/src/agents/turn-receipt.js +5 -4
  358. package/src/cli/command-registry.js +1 -1
  359. package/src/cli/local-runtime-command.js +5 -2
  360. package/src/cli/local-runtime-options.js +7 -3
  361. package/src/cli/models-command.js +15 -11
  362. package/src/cli/update-command.js +2 -2
  363. package/src/cli/update-installation.js +23 -6
  364. package/src/cli/workspace-connection-command.js +2 -2
  365. package/src/client-links/registry.js +6 -112
  366. package/src/conversations/current-task-lookup.js +2 -3
  367. package/src/conversations/entry-skeleton.js +113 -55
  368. package/src/conversations/human-interaction.js +1 -1
  369. package/src/conversations/person-words.js +29 -0
  370. package/src/conversations/preference-session.js +17 -14
  371. package/src/conversations/stop-auto-close.js +28 -7
  372. package/src/conversations/task-context-view.js +113 -27
  373. package/src/conversations/turn-findings.js +105 -0
  374. package/src/data-format/format-notices.js +2 -1
  375. package/src/data-format/local-stores.js +22 -1
  376. package/src/debug-turns/model-capture.js +1 -1
  377. package/src/debug-turns/record.js +1 -1
  378. package/src/desktop/cli-path.js +253 -0
  379. package/src/desktop/desktop-app-package.js +31 -0
  380. package/src/desktop/{fuli-links.js → desktop-client-links.js} +20 -16
  381. package/src/desktop/desktop-controller.js +35 -3
  382. package/src/desktop/npm-adoption-store.js +7 -0
  383. package/src/desktop/npm-adoption.js +119 -0
  384. package/src/desktop/npm-copies.js +73 -0
  385. package/src/desktop/npm-copy-control.js +56 -0
  386. package/src/desktop/npm-copy-data.js +51 -0
  387. package/src/desktop/npm-copy-uninstall.js +67 -0
  388. package/src/desktop/windows-controller.js +13 -1
  389. package/src/desktop/windows-installation-switch.js +1 -1
  390. package/src/desktop/windows-node-launcher.js +11 -0
  391. package/src/desktop/windows-uninstall.js +3 -0
  392. package/src/dreaming/astro-calls.js +47 -0
  393. package/src/dreaming/projects.js +39 -0
  394. package/src/dreaming/run.js +38 -36
  395. package/src/dreaming/scheduler.js +2 -2
  396. package/src/employees/builtin/jefa/board-store.js +2 -10
  397. package/src/employees/builtin/jefa/tools.js +1 -1
  398. package/src/employees/management-policy.js +1 -1
  399. package/src/employees/manifest.js +1 -1
  400. package/src/employees/service.js +11 -1
  401. package/src/external-knowledge/document-mapping.js +1 -1
  402. package/src/external-knowledge/index.js +0 -4
  403. package/src/fla-growth/lessons.js +40 -0
  404. package/src/fla-growth/task-verification.js +25 -0
  405. package/src/fla-growth/tool-suggestions.js +107 -0
  406. package/src/fla-growth/verification.js +30 -0
  407. package/src/graphiti/agent-access-policy.js +1 -1
  408. package/src/graphiti/agent-conversations.js +2 -2
  409. package/src/graphiti/agent-growth.js +32 -4
  410. package/src/graphiti/capture-change-confirmation.js +4 -1
  411. package/src/graphiti/capture-notice.js +2 -1
  412. package/src/graphiti/capture-onboarding.js +1 -1
  413. package/src/graphiti/checkpoint-provider-outage.js +23 -0
  414. package/src/graphiti/collaboration-preference-projection.js +1 -1
  415. package/src/graphiti/conversation-triage.js +1 -1
  416. package/src/graphiti/execution-mode.js +1 -1
  417. package/src/graphiti/federated-application.js +16 -8
  418. package/src/graphiti/fla-mention.js +105 -96
  419. package/src/graphiti/fla-menu-reader.js +25 -0
  420. package/src/graphiti/fla-menu.js +108 -0
  421. package/src/graphiti/fla-picker.js +21 -16
  422. package/src/graphiti/fuli-markup.js +60 -0
  423. package/src/graphiti/group-member-context.js +1 -1
  424. package/src/graphiti/human-review-channel.js +16 -2
  425. package/src/graphiti/knowledge-result-budget.js +2 -2
  426. package/src/graphiti/knowledge-review.js +2 -1
  427. package/src/graphiti/local-runtimes.js +11 -0
  428. package/src/graphiti/preference-task-scope.js +1 -1
  429. package/src/graphiti/project-agent-control-plane.js +6 -0
  430. package/src/graphiti/project-agent-mapping.js +23 -10
  431. package/src/graphiti/project-agent-mention.js +10 -28
  432. package/src/graphiti/project-agent-task-entry.js +1 -1
  433. package/src/graphiti/project-agent-task-sheets.js +1 -1
  434. package/src/graphiti/project-agent-workflows.js +20 -5
  435. package/src/graphiti/project-knowledge-presence.js +27 -0
  436. package/src/graphiti/project-path-context.js +2 -2
  437. package/src/graphiti/provider-client.js +24 -0
  438. package/src/graphiti/provider-outage.js +20 -0
  439. package/src/graphiti/recall-policy.js +1 -1
  440. package/src/graphiti/reply-echo-agent-tool.js +36 -0
  441. package/src/graphiti/reply-echo-group.js +85 -0
  442. package/src/graphiti/reply-echo.js +87 -0
  443. package/src/graphiti/session-knowledge-migration.js +2 -1
  444. package/src/graphiti/session-prompt-sentences.js +52 -0
  445. package/src/graphiti/session-records.js +3 -2
  446. package/src/graphiti/source-marker.js +14 -0
  447. package/src/graphiti/task-blocker-progress.js +24 -1
  448. package/src/graphiti/task-context-entry.js +20 -1
  449. package/src/graphiti/task-entry-group-discussion.js +31 -31
  450. package/src/graphiti/task-entry-named-fla.js +40 -70
  451. package/src/graphiti/task-entry-preferences.js +2 -2
  452. package/src/graphiti/task-entry-project-scope.js +4 -4
  453. package/src/graphiti/task-entry-provider-outage.js +25 -0
  454. package/src/graphiti/task-entry-read-only.js +1 -1
  455. package/src/graphiti/task-entry-standing-owner.js +3 -3
  456. package/src/graphiti/task-experiences.js +21 -3
  457. package/src/graphiti/task-knowledge-checkpoint.js +5 -2
  458. package/src/graphiti/task-knowledge-recall.js +140 -25
  459. package/src/graphiti/task-prompt-statement.js +49 -0
  460. package/src/graphiti/task-remember.js +23 -9
  461. package/src/graphiti/task-scene.js +1 -1
  462. package/src/graphiti/task-stated-rules.js +75 -0
  463. package/src/graphiti/temporary-project-scope.js +1 -1
  464. package/src/graphiti/topic-proposals.js +6 -5
  465. package/src/graphiti/user-taste-skill.js +1 -1
  466. package/src/graphiti/workflow-candidate-mapping.js +1 -1
  467. package/src/http/agent-delegation-gate.js +9 -0
  468. package/src/http/api-router.js +16 -0
  469. package/src/http/cli-path-api-router.js +35 -0
  470. package/src/http/desktop-client-api-router.js +18 -0
  471. package/src/http/dreaming-api-router.js +10 -7
  472. package/src/http/graph-api-router.js +17 -0
  473. package/src/http/notices-api-router.js +37 -0
  474. package/src/http/npm-copies-api-router.js +36 -0
  475. package/src/http/occupation-plugins-api-router.js +43 -0
  476. package/src/http/reply-echo-api-router.js +53 -0
  477. package/src/http/response.js +1 -1
  478. package/src/http/retrospectives-api-router.js +18 -0
  479. package/src/http/session-launch-api-router.js +34 -1
  480. package/src/http/static-handler.js +1 -1
  481. package/src/http/task-blocker-api-router.js +17 -5
  482. package/src/http/task-verification-api-router.js +16 -0
  483. package/src/http/whats-new-api-router.js +34 -0
  484. package/src/judgment/acceptance.js +10 -3
  485. package/src/judgment/agent-view.js +21 -4
  486. package/src/judgment/conversation.js +86 -2
  487. package/src/judgment/delegated-reviews.js +23 -0
  488. package/src/judgment/engine.js +49 -16
  489. package/src/judgment/explain-method.js +11 -0
  490. package/src/judgment/http.js +17 -2
  491. package/src/judgment/question-options.js +97 -0
  492. package/src/judgment/question-tools.js +235 -0
  493. package/src/judgment/review-delegation.js +89 -0
  494. package/src/judgment/review-prompt.js +44 -3
  495. package/src/judgment/review-verdicts.js +13 -4
  496. package/src/judgment/runtime.js +3 -1
  497. package/src/judgment/service.js +25 -5
  498. package/src/judgment/store.js +44 -8
  499. package/src/judgment/verdict-schema.js +6 -0
  500. package/src/judgment/visible-items.js +15 -4
  501. package/src/knowledge-duplicates/scheduler.js +28 -0
  502. package/src/knowledge-hard-delete/forget-references.js +5 -2
  503. package/src/knowledge-impressions/store.js +17 -5
  504. package/src/local-runtime/console-autostart-record.js +95 -0
  505. package/src/local-runtime/console-autostart.js +143 -0
  506. package/src/local-runtime/console-health.js +26 -0
  507. package/src/local-runtime/installed-console-launcher.js +73 -0
  508. package/src/local-runtime/lifecycle.js +85 -21
  509. package/src/local-runtime/processes.js +15 -2
  510. package/src/local-runtime/unresponsive-console.js +77 -0
  511. package/src/mcp/create-mcp-server.js +11 -4
  512. package/src/mcp/fla-menu-prompts.js +60 -0
  513. package/src/mcp/runtime.js +11 -3
  514. package/src/mcp/session-id.js +3 -2
  515. package/src/mcp/tool-annotations.js +5 -2
  516. package/src/mcp/tool-profiles.js +1 -1
  517. package/src/mcp/tool-result.js +3 -1
  518. package/src/model-backends/adapters/anthropic-messages.js +2 -2
  519. package/src/model-backends/adapters/ollama-local-build.js +1 -1
  520. package/src/model-backends/adapters/openai-chat.js +2 -2
  521. package/src/model-backends/budget.js +10 -1
  522. package/src/model-backends/config.js +2 -2
  523. package/src/model-backends/endpoint-models.js +80 -0
  524. package/src/model-backends/http.js +3 -1
  525. package/src/model-backends/keys-http.js +5 -4
  526. package/src/model-backends/models-http.js +54 -0
  527. package/src/model-backends/port.js +32 -5
  528. package/src/model-backends/prompt.js +11 -1
  529. package/src/model-backends/role-settings.js +27 -2
  530. package/src/model-backends/role-trust.js +3 -15
  531. package/src/model-backends/role-work-store.js +2 -12
  532. package/src/model-backends/runtime.js +11 -2
  533. package/src/model-backends/secret-store.js +61 -12
  534. package/src/model-backends/suggestion-log.js +6 -15
  535. package/src/model-backends/usage-ledger.js +28 -18
  536. package/src/notices/recent-notices.js +175 -0
  537. package/src/notifications/needs-person.js +1 -1
  538. package/src/occupation-plugins/agent-tools.js +59 -0
  539. package/src/occupation-plugins/choice-store.js +65 -0
  540. package/src/occupation-plugins/manifest.js +165 -0
  541. package/src/occupation-plugins/port.js +104 -0
  542. package/src/occupation-plugins/recruitment.js +38 -0
  543. package/src/presence/windows-helper-pin.js +1 -1
  544. package/src/registry/updatable-manifest.js +127 -0
  545. package/src/retrieval-terms/fill.js +1 -1
  546. package/src/retrospectives/run.js +113 -0
  547. package/src/retrospectives/runs.js +18 -0
  548. package/src/retrospectives/scheduler.js +58 -0
  549. package/src/server/application-lifecycle.js +1 -1
  550. package/src/server/signal-shutdown.js +31 -0
  551. package/src/server.js +26 -18
  552. package/src/setup/first-run-capture.js +6 -2
  553. package/src/setup/graph-runtime.js +46 -38
  554. package/src/setup/neo4j-memory-profile.js +1 -1
  555. package/src/setup/paths.js +2 -0
  556. package/src/standing-assignments/store.js +2 -4
  557. package/src/system/client-connection-status.js +3 -1
  558. package/src/system/doctor.js +19 -2
  559. package/src/system/graph-migration.js +1 -1
  560. package/src/system/platform-path.js +21 -9
  561. package/src/system/runtime-settings.js +19 -7
  562. package/src/system/settings-guide.js +7 -0
  563. package/src/system/system-service.js +41 -2
  564. package/src/task-blockers/console-port.js +12 -6
  565. package/src/text/markdown-link.js +12 -0
  566. package/src/text/single-line.js +6 -0
  567. package/src/text/utf8-preview.js +7 -6
  568. package/src/whats-new/lines/0.25.0.json +17 -0
  569. package/src/whats-new/lines/0.25.1.json +13 -0
  570. package/src/whats-new/release-lines.js +66 -0
  571. package/src/whats-new/whats-new.js +70 -0
  572. package/src/work-surfaces/store.js +2 -4
  573. package/dist/web/assets/AgentAppsPage-BYXraPFM.js +0 -1
  574. package/dist/web/assets/AgentManagement-Bza8k5ra.js +0 -7
  575. package/dist/web/assets/AgentManagement-CeF4mjtg.css +0 -1
  576. package/dist/web/assets/AgentMentionCopy-C72hY2QL.js +0 -1
  577. package/dist/web/assets/AgentMentionCopy-CNKrzZvE.css +0 -1
  578. package/dist/web/assets/AgentProfilePage-kp7-gRRx.js +0 -5
  579. package/dist/web/assets/AgentServicesPage-ARIWfmuh.css +0 -1
  580. package/dist/web/assets/AgentServicesPage-IsGaz7FY.js +0 -1
  581. package/dist/web/assets/ConnectionsPage-BpvecWXD.js +0 -1
  582. package/dist/web/assets/ConnectionsPage-Cwt-knQQ.css +0 -1
  583. package/dist/web/assets/DataFormatPage-dsy8d3oA.js +0 -2
  584. package/dist/web/assets/DataFormatPage-sSnjjUY4.css +0 -1
  585. package/dist/web/assets/DebugTurnPage-cIJV7xDW.js +0 -1
  586. package/dist/web/assets/DebugTurnsPage-B6Te_Alp.js +0 -1
  587. package/dist/web/assets/EmployeeScopeDialog-CXNZ62Ab.js +0 -1
  588. package/dist/web/assets/EmployeeScopeDialog-Do5PHQh7.css +0 -1
  589. package/dist/web/assets/EmployeeWorkbench-DALIO-cM.js +0 -4
  590. package/dist/web/assets/FieldRoot-DRnAC66O.js +0 -1
  591. package/dist/web/assets/FlaGrowth-7wlv31Tl.js +0 -1
  592. package/dist/web/assets/FlaGrowth-BzXY8pcx.css +0 -1
  593. package/dist/web/assets/FlasPage-BCs1Ffpf.js +0 -1
  594. package/dist/web/assets/FlasPage-SLQDMv47.css +0 -1
  595. package/dist/web/assets/InboxPage-Bkx6nIhb.css +0 -1
  596. package/dist/web/assets/InboxPage-CgJnymOY.js +0 -4
  597. package/dist/web/assets/KnowledgeItemEditPage-rwpM8cF1.js +0 -1
  598. package/dist/web/assets/KnowledgeOrganizerPage-7IdnjM3L.js +0 -1
  599. package/dist/web/assets/KnowledgeOrganizerPage-CNm2jvJZ.css +0 -1
  600. package/dist/web/assets/KnowledgePage-gxqOIZxf.js +0 -1
  601. package/dist/web/assets/KnowledgePeek-CQyCxHFj.js +0 -1
  602. package/dist/web/assets/KnowledgeWorkspace-A7zVb26p.js +0 -4
  603. package/dist/web/assets/MenuSeparator-quqkZZXY.js +0 -1
  604. package/dist/web/assets/ModelSettingsPage-B8jC_uew.js +0 -3
  605. package/dist/web/assets/ModelSettingsPage-DhCn_SF6.css +0 -1
  606. package/dist/web/assets/OccupationsPage-BVREfX_R.js +0 -1
  607. package/dist/web/assets/OccupationsPage-Di7B-bPl.css +0 -1
  608. package/dist/web/assets/OverviewPage-CHyEbdP4.js +0 -1
  609. package/dist/web/assets/OverviewPage-xdF5g6bZ.css +0 -1
  610. package/dist/web/assets/PageOutline-BKBQ1T4d.js +0 -1
  611. package/dist/web/assets/PageOutline-BqVgnlos.css +0 -1
  612. package/dist/web/assets/PersonalProfilePage-Cxp2gn6J.js +0 -1
  613. package/dist/web/assets/PersonalProjectsPage-821imOxR.js +0 -1
  614. package/dist/web/assets/PopperContent-DNqbLkNa.js +0 -1
  615. package/dist/web/assets/ProfileAuthorChip-7HSHODdR.js +0 -1
  616. package/dist/web/assets/ProfileAuthorChip-C_0hzDoP.css +0 -1
  617. package/dist/web/assets/ProjectAgentsPage-DBsXS6Xa.js +0 -5
  618. package/dist/web/assets/RovingFocusGroup-BB0d3k17.js +0 -1
  619. package/dist/web/assets/SessionRecordsPage-BMAAtIAt.js +0 -1
  620. package/dist/web/assets/SettingsPage-BYNEk6BM.js +0 -1
  621. package/dist/web/assets/SettingsPage-Uj1IpZpS.css +0 -1
  622. package/dist/web/assets/SharedJefaReportPage-g35o6jUb.js +0 -1
  623. package/dist/web/assets/TagVocabularyPage-COubNJXz.js +0 -1
  624. package/dist/web/assets/TaskBlockerClear-B5MpHdlh.js +0 -1
  625. package/dist/web/assets/TaskBlockerClear-CjSNfpyP.css +0 -1
  626. package/dist/web/assets/TaskBlockerNotice-CIN0HRiE.js +0 -1
  627. package/dist/web/assets/TeamCard-CsmWDw2Q.css +0 -1
  628. package/dist/web/assets/TeamCard-D-kLa5rT.js +0 -1
  629. package/dist/web/assets/TeamIsland-BIo-l49b.js +0 -9
  630. package/dist/web/assets/UiIconButton-CCo4NPYv.js +0 -1
  631. package/dist/web/assets/UiNotice-DGPFbVo7.js +0 -1
  632. package/dist/web/assets/VirtualDirectoryList-1vLi41SD.css +0 -1
  633. package/dist/web/assets/VirtualDirectoryList-BkV3gj5E.js +0 -1
  634. package/dist/web/assets/VisuallyHiddenInput-Bdcr9CwC.js +0 -1
  635. package/dist/web/assets/WidgetSlot-DFojQaSo.js +0 -2
  636. package/dist/web/assets/_plugin-vue_export-helper-B9AJmZbc.js +0 -9
  637. package/dist/web/assets/agent-apps-CKGFfySp.js +0 -1
  638. package/dist/web/assets/agent-avatar-V6M_DF3r.js +0 -1
  639. package/dist/web/assets/agent-occupation-PZ2YAIM8.js +0 -1
  640. package/dist/web/assets/agent-profile-Clb-gYu-.css +0 -1
  641. package/dist/web/assets/agent-work-summary-bzTwEUaA.js +0 -1
  642. package/dist/web/assets/checkbox-DPyLHneg.js +0 -1
  643. package/dist/web/assets/client-connection-model-vO2cap6a.js +0 -1
  644. package/dist/web/assets/client-links-store-DMqe0MbK.js +0 -1
  645. package/dist/web/assets/combobox-zUq9bkyM.js +0 -1
  646. package/dist/web/assets/console-DaoAO-EO.js +0 -1
  647. package/dist/web/assets/context-menu-CcGDnF_k.js +0 -1
  648. package/dist/web/assets/dropdown-menu-CXmMnCBh.js +0 -1
  649. package/dist/web/assets/fla-mention-D_Qb7VeY.js +0 -1
  650. package/dist/web/assets/index-B4AMPpl_.css +0 -1
  651. package/dist/web/assets/index-BYIOAXnn.js +0 -2
  652. package/dist/web/assets/label-table-BnWNYfyk.js +0 -1
  653. package/dist/web/assets/model-CDevUwUw.js +0 -1
  654. package/dist/web/assets/model-P5fSGsiJ.js +0 -1
  655. package/dist/web/assets/motion-QY5FKKko.js +0 -1
  656. package/dist/web/assets/occupation-catalog-uDDhZwKK.js +0 -1
  657. package/dist/web/assets/person-profile-DXXfpvta.js +0 -1
  658. package/dist/web/assets/popup-host-Bmvrf-2t.js +0 -1
  659. package/dist/web/assets/profile-model-6gTmScHC.js +0 -1
  660. package/dist/web/assets/quick-edit-api-WLh_88w6.js +0 -1
  661. package/dist/web/assets/radio-group-B4r78nDh.js +0 -1
  662. package/dist/web/assets/roundtable-live-DFeDF56c.js +0 -1
  663. package/dist/web/assets/save-file-rPduHi2f.js +0 -1
  664. package/dist/web/assets/select-_JO3Mxdp.js +0 -1
  665. package/dist/web/assets/tabs-BlcZiEMY.js +0 -1
  666. package/dist/web/assets/ui-BopQuQfc.js +0 -1
  667. package/dist/web/assets/ui-CoUaCzmO.css +0 -1
  668. package/dist/web/assets/useAgentWorkSummary-BQbhaHov.js +0 -1
  669. package/dist/web/assets/useForwardScopeId-CUQFIAIj.js +0 -1
  670. package/dist/web/assets/useKnowledgeItemPeek-PmQJixw5.js +0 -1
  671. package/dist/web/assets/useTeamPeople-CDISP0PM.js +0 -1
  672. package/dist/web/assets/utils-B4pBTmyh.js +0 -1
  673. package/src/workspace-protocol/array-validation.js +0 -19
  674. package/src/workspace-protocol/base64url-contract.js +0 -27
  675. package/src/workspace-protocol/constants.js +0 -37
  676. package/src/workspace-protocol/error-contract.js +0 -24
  677. package/src/workspace-protocol/fact-contract.js +0 -110
  678. package/src/workspace-protocol/governance-contract.js +0 -47
  679. package/src/workspace-protocol/index.js +0 -53
  680. package/src/workspace-protocol/json-budget.js +0 -19
  681. package/src/workspace-protocol/manifest-contract.js +0 -186
  682. package/src/workspace-protocol/publication-contract.js +0 -212
  683. package/src/workspace-protocol/query-contract.js +0 -149
  684. package/src/workspace-protocol/scalar-contract.js +0 -192
  685. package/src/workspace-protocol/sync-contract.js +0 -184
  686. package/src/workspace-protocol/text-contract.js +0 -39
  687. package/src/workspace-protocol/validation.js +0 -66
  688. /package/dist/web/assets/{UiNotice-ZCBdABdM.css → UiIconButton-ZCBdABdM.css} +0 -0
  689. /package/dist/web/assets/{settings-restart-BU_GGtbG.css → settings-autosave-BU_GGtbG.css} +0 -0
@@ -2,36 +2,40 @@
2
2
  // (rec#55). Parsing only: which FLA a name means is decided against the
3
3
  // person's roster (fla-picker.js), and whether it may work by the Provider.
4
4
  //
5
- // - `#FLA <name>` or `@FLA <name>` at the very start: the explicit form. It
6
- // names one of the person's FLAs or one of FULI's own roles (Bole, Jefa,
7
- // Tonborg, Astro; rec#58). `#FLA` also counts at the start of a line, and
8
- // right after a request word (`请让 #FLA Jamie Ash 看一下`, `帮我 #FLA 小林 …`,
9
- // `please #FLA …`), where it takes only an exact name (`inline`) and never
10
- // opens the picker. Anywhere else, in quotes or in code it is text, such as
11
- // a question about the syntax.
12
- // - `@<name>` at the very start of the prompt. An `@` later in the prompt,
13
- // inside quotes or code, never addresses an FLA.
14
- // - A bare `#FLA` / `@FLA` asks for the picker; `#FLA 2` answers it;
15
- // `@FLA 结束` (end, release) ends this session's binding.
16
- // - `@FLG …` or `#FLG …` (Fuli Agents Group) only at the very start: a
17
- // discussion among several FLAs. Its text may name members and ask for
18
- // more to be recommended (task-entry-group-discussion.js); `@FLG 1 3` or
19
- // `@FLG 开始` answers its member choice, optionally with how the group
20
- // works (`一起看` in this session, `圆桌` in the roundtable), and `@FLG 结束`
21
- // stops it. A bare reply of numbers answers the choice too; a bare "好",
22
- // "开始" or "一起看" does not.
5
+ // Every FULI address starts with `#`. `@` belongs to the clients (Claude Code
6
+ // attaches files with `@"C:\…\clip.mp4"`, Cursor and Codex reference with it),
7
+ // so `@` never addresses an FLA: `@Name`, `@FLA` and `@FLG` are plain text.
23
8
  //
24
- // A leading `@` is not an address when it is evidently something else: an
25
- // email (`@user@example.com`), a package scope or path (`@scope/pkg`), a code
26
- // decorator or annotation (`@Override`, `@dataclass`, `@app.route(...)`), or a
27
- // file name (`@README.md`).
9
+ // - `#FLA <name>` names one of the person's FLAs or one of FULI's own roles
10
+ // (Bole, Jefa, Tonborg, Astro; rec#58), only at the very start of the
11
+ // message, after any whitespace and any files the client attached first.
12
+ // Case does not matter (`#fla`, `#Fla`). Anywhere else (mid-sentence, a
13
+ // later line, quotes, code) `#FLA` is text, such as a remark about the syntax.
14
+ // - `#FLA {agentId}` (percent-encoded) is the stable form FULI writes into
15
+ // continuation prompts and roundtable wakes (flaAddress).
16
+ // - A bare `#FLA` asks for the picker; `#FLA 2` answers it;
17
+ // `#FLA 结束` (end, release) ends this session's binding.
18
+ // - `#FLG …` (Fuli Agents Group) only at the very start: a discussion among
19
+ // several FLAs. Its text may name members and ask for more to be
20
+ // recommended (task-entry-group-discussion.js); `#FLG 1 3` or `#FLG 开始`
21
+ // answers its member choice, optionally with how the group works (`一起看`
22
+ // in this session, `圆桌` in the roundtable), and `#FLG 结束` stops it. A
23
+ // bare reply of numbers answers the choice too; a bare "好", "开始" or
24
+ // "一起看" does not.
28
25
 
29
- const KEYWORD = /^[#@]FLA(?=$|\s)/iu;
30
- const LINE_KEYWORD = /\n[ \t]*#FLA(?=$|\s)/iu;
31
- const REQUEST_KEYWORD = /(?:请|让|帮我|麻烦|交给|(?<![\p{L}\p{N}_])(?:please|ask|let))[ \t,,::]*#FLA(?=$|\s)/iu;
32
- const GROUP = /^[#@]FLG(?=$|[\s::,,])/iu;
33
- const RELEASE = /^(?:结束|释放|解除|退出|停止|end|release|stop)\s*[。.!!]?\s*$/iu;
34
- const CHOICE = /^(\d{1,2})\s*[.、))]?\s*$/u;
26
+ // The keywords, half- or full-width `#`, any case.
27
+ const KEYWORD = /^[##]FLA(?=$|\s)/iu;
28
+ const GROUP = /^[##]FLG(?=$|[\s::,,])/iu;
29
+ // Everything below reads at most this much of a prompt, and every pattern
30
+ // matches in linear time: a pasted prompt never stalls the entry.
31
+ const ADDRESS_LIMIT = 2048;
32
+ // Short replies (a number, a release, a confirmation) are first reduced to
33
+ // words with single spaces (reply), so their patterns hold no adjacent
34
+ // optional runs to backtrack over. Longer text is never such a reply.
35
+ const REPLY_LIMIT = 128;
36
+ const SEPARATORS = /[\s,,、。!!]+/gu;
37
+ const RELEASE = /^(?:结束|释放|解除|退出|停止|end|release|stop)\.?$/iu;
38
+ const CHOICE = /^(\d{1,2})[.))]?$/u;
35
39
  // How a confirmed group works (rec#55): in this session, which reads every
36
40
  // member's context (mode 1), or in the roundtable, where each member is woken
37
41
  // and answers for itself (mode 2). The choice offers both labels.
@@ -40,79 +44,91 @@ const ROUNDTABLE_MODE = String.raw`在?圆桌里?分头回复|圆桌|分头回
40
44
  const MODE = String.raw`(?:(${SESSION_MODE})|(${ROUNDTABLE_MODE}))`;
41
45
  // Several numbers answer a multi-select (`1 3`, `1,3`, `1、3`), optionally
42
46
  // followed by a confirmation word and a mode. A confirmation word or a mode
43
- // alone takes the preselection only after `@FLG` (`@FLG 开始`, `@FLG 一起看`).
44
- const CHOICES = new RegExp(String.raw`^(\d{1,2}(?:\s*[,,、\s]\s*\d{1,2})*)\s*[,,。]?\s*(?:开始|确认|go|start|ok)?`
45
- + String.raw`\s*[,,]?\s*${MODE}?\s*[。.!!]?\s*$`, 'iu');
46
- const CONFIRM = new RegExp(String.raw`^(开始吧|开始|确认|go|start)?\s*[,,]?\s*${MODE}?\s*[。.!!]?\s*$`, 'iu');
47
- // Inline code, fenced blocks and quotes are quoted text, never an address.
48
- const QUOTED = /```[\s\S]*?(?:```|$)|`[^`\n]*`|"[^"\n]*"|“[^”\n]*”|‘[^’\n]*’|「[^」\n]*」|『[^』\n]*』/gu;
49
- // An identifier called like a function (`@Component(`) or a dotted name
50
- // (`@pytest.mark`, `@README.md`). A trailing dot alone (`@J.R.`) is a name.
51
- const CALLED = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*\(/u;
52
- const DOTTED = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)+$/u;
53
- // Annotations and decorators people paste most often, written exactly so.
54
- const DECORATORS = new Set(['Override', 'Deprecated', 'SuppressWarnings', 'FunctionalInterface', 'SafeVarargs',
55
- 'Test', 'BeforeEach', 'AfterEach', 'BeforeAll', 'AfterAll', 'Autowired', 'Component', 'Service', 'Repository',
56
- 'Controller', 'RestController', 'Bean', 'Configuration', 'Entity', 'Injectable', 'Input', 'Output', 'NgModule',
57
- 'Nullable', 'NonNull', 'Transactional', 'dataclass', 'property', 'staticmethod', 'classmethod',
58
- 'abstractmethod', 'override', 'cached_property']);
59
- const ADDRESS_LIMIT = 2048;
47
+ // alone takes the preselection only after `#FLG` (`#FLG 开始`, `#FLG 一起看`).
48
+ const CHOICES = new RegExp(String.raw`^(\d{1,2}(?: \d{1,2})*)(?: ?(?:开始|确认|go|start|ok))?(?: ?${MODE})?\.?$`, 'iu');
49
+ const CONFIRM = new RegExp(String.raw`^(开始吧|开始|确认|go|start)?(?: ?${MODE})?\.?$`, 'iu');
50
+ // What a client puts ahead of the person's words is skipped before deciding
51
+ // what the message starts with: a quoted file (Claude Code writes
52
+ // `@"C:\…\clip.mp4"`, possibly with `#FLA` right after it) or any other `@`
53
+ // token without spaces (`@Makefile`, `@src/a.ts`, Cursor's `@Codebase`). A
54
+ // leading `@{…}` is not skipped: it is a legacy address.
55
+ const ATTACHMENT = /^@(?:"[^"\n]*"\s*|'[^'\n]*'\s*|(?!\{)\S+(?:\s+|$))/u;
60
56
  const STABLE = /^\{([^{}\s]+)\}(?=$|[\s,,::])/u;
57
+ // Compatibility with prompts FULI 0.23 and earlier wrote (continuation
58
+ // prompts, roundtable wakes): `@{agentId}` at the start, for any Agent ID
59
+ // (`@{employee.jefa}`, `@{<uuid>}`). Nothing writes it any more; drop it once
60
+ // 0.23 prompts are out of use.
61
+ const LEGACY_STABLE = /^@(?=\{)/u;
61
62
 
62
- // null, { release: true }, { choice: n }, { handoff: agentId } for the
63
- // portable `@{agentId}` form (a hand-off's continuation prompt),
64
- // { explicit, query }: the text after the keyword or `@`, which may name an
65
- // FLA and continue with the task (`inline: true` after a request word), or
66
- // { group } for `@FLG …` (groupMention).
63
+ // null, { release: true }, { choice: n }, { handoff: agentId } for the stable
64
+ // `#FLA {agentId}` form, { explicit: true, query }: the text after `#FLA`,
65
+ // which may name an FLA and continue with the task, or { group } for `#FLG …`
66
+ // (groupMention).
67
67
  export function parseFlaMention(prompt) {
68
- const text = typeof prompt === 'string' ? prompt.trimStart() : '';
68
+ const text = afterAttachments(prompt);
69
69
  const group = GROUP.exec(text);
70
70
  if (group) return { group: groupMention(text.slice(group[0].length)) };
71
- const keyword = KEYWORD.exec(text) ?? laterKeyword(text);
72
- if (keyword) {
73
- const rest = text.slice(keyword.index + keyword[0].length).trim().slice(0, ADDRESS_LIMIT);
74
- if (keyword.inline) return { explicit: true, query: rest, inline: true };
75
- if (RELEASE.test(rest)) return { release: true };
76
- const choice = CHOICE.exec(rest);
77
- if (choice) return { choice: Number(choice[1]) };
78
- return { explicit: true, query: rest };
71
+ if (LEGACY_STABLE.test(text)) {
72
+ const legacy = stableAddress(text.slice(1));
73
+ return legacy?.agentId ? { handoff: legacy.agentId } : null;
79
74
  }
80
- const address = leadingAgentAddress(text);
81
- if (address === null) return null;
82
- // `@{agentId}` is the portable form, resolved in its project's scope.
83
- const stable = stableAddress(address);
75
+ const keyword = KEYWORD.exec(text);
76
+ if (!keyword) return null;
77
+ const rest = text.slice(keyword[0].length).trim();
78
+ const stable = stableAddress(rest);
84
79
  if (stable) return stable.agentId ? { handoff: stable.agentId } : null;
85
- return address.startsWith('{') ? null : { explicit: false, query: address };
80
+ const words = reply(rest);
81
+ if (words !== null && RELEASE.test(words)) return { release: true };
82
+ const choice = words === null ? null : CHOICE.exec(words);
83
+ if (choice) return { choice: Number(choice[1]) };
84
+ return { explicit: true, query: rest };
85
+ }
86
+
87
+ // The Agent a prompt addresses by its stable ID (`#FLA {agentId}`, or a
88
+ // legacy `@{agentId}`), or null.
89
+ export function addressedAgentId(prompt) {
90
+ return parseFlaMention(prompt)?.handoff ?? null;
91
+ }
92
+
93
+ // The prompt's first ADDRESS_LIMIT characters, without leading whitespace and
94
+ // without what the client put ahead of the person's words. A cut prompt ends
95
+ // in `…`, so what is left can never read as a short reply.
96
+ function afterAttachments(prompt) {
97
+ const text = typeof prompt === 'string' ? prompt : '';
98
+ let rest = (text.length > ADDRESS_LIMIT ? `${text.slice(0, ADDRESS_LIMIT)}…` : text).trimStart();
99
+ for (let file = ATTACHMENT.exec(rest); file; file = ATTACHMENT.exec(rest)) rest = rest.slice(file[0].length);
100
+ return rest;
86
101
  }
87
102
 
88
- // `#FLA` after the start, outside code and quotes (blanking keeps positions):
89
- // at a line start, or inline after a request word, whichever comes first.
90
- function laterKeyword(text) {
91
- const plain = text.replace(QUOTED, quoted => ' '.repeat(quoted.length));
92
- const line = LINE_KEYWORD.exec(plain);
93
- const request = REQUEST_KEYWORD.exec(plain);
94
- if (line && (!request || line.index < request.index)) return line;
95
- return request ? Object.assign(request, { inline: true }) : null;
103
+ // A short reply as words separated by single spaces, or null when the text is
104
+ // too long to be one.
105
+ function reply(text) {
106
+ const trimmed = text.trim();
107
+ return trimmed.length > REPLY_LIMIT ? null : trimmed.replace(SEPARATORS, ' ').trim();
96
108
  }
97
109
 
98
- // What follows `@FLG`: { release } (stop the discussion), the answer to its
110
+ // What follows `#FLG`: { release } (stop the discussion), the answer to its
99
111
  // member choice (numbers, or { confirm } for the preselection, each with the
100
112
  // mode when it names one), or { query }: the question, which may name
101
113
  // members and ask for recommendations.
102
114
  function groupMention(rest) {
103
- const text = rest.replace(/^[\s::,,]+/u, '').trim().slice(0, ADDRESS_LIMIT);
104
- if (RELEASE.test(text)) return { release: true };
105
- const confirm = CONFIRM.exec(text);
115
+ const text = rest.replace(/^[\s::,,]+/u, '').trim();
116
+ const words = reply(text);
117
+ if (words !== null && RELEASE.test(words)) return { release: true };
118
+ const confirm = words === null ? null : CONFIRM.exec(words);
106
119
  if (confirm?.slice(1).some(Boolean)) return { confirm: true, ...namedMode(confirm) };
107
- return groupChoiceReply(text) ?? { query: text };
120
+ return choicesIn(words) ?? { query: text };
108
121
  }
109
122
 
110
- // A reply of numbers to a member choice: { choices: [n…] } (distinct, as
111
- // typed) and the mode it names, or null for anything else.
123
+ // A reply of numbers to a member choice, after anything the client attached:
124
+ // { choices: [n…] } (distinct, as typed) and the mode it names, or null.
112
125
  export function groupChoiceReply(prompt) {
113
- const numbers = CHOICES.exec(typeof prompt === 'string' ? prompt.trim() : '');
114
- return numbers ? { choices: [...new Set(numbers[1].split(/[\s,,、]+/u).filter(Boolean).map(Number))],
115
- ...namedMode(numbers) } : null;
126
+ return choicesIn(reply(afterAttachments(prompt)));
127
+ }
128
+
129
+ function choicesIn(words) {
130
+ const numbers = words === null ? null : CHOICES.exec(words);
131
+ return numbers ? { choices: [...new Set(numbers[1].split(' ').map(Number))], ...namedMode(numbers) } : null;
116
132
  }
117
133
 
118
134
  // The mode a question asks for, 'session' or 'roundtable', or null.
@@ -127,25 +143,18 @@ function namedMode(match) {
127
143
  return session ? { mode: 'session' } : roundtable ? { mode: 'roundtable' } : {};
128
144
  }
129
145
 
130
- // The portable `{agentId}` form (percent-encoded) an address opens with:
131
- // null when it does not, { agentId: null } when it is malformed.
132
- export function stableAddress(address) {
146
+ // The `{agentId}` form (percent-encoded) an address opens with: null when it
147
+ // does not, { agentId: null } when it is malformed.
148
+ function stableAddress(address) {
133
149
  const stable = STABLE.exec(address);
134
150
  if (!stable) return null;
135
151
  try { return { agentId: decodeURIComponent(stable[1]) }; } catch { return { agentId: null }; }
136
152
  }
137
153
 
138
- // A reply that is only a number, which answers a picker the session showed.
154
+ // A reply that is only a number, which answers a picker the session showed;
155
+ // files the client attached ahead of it do not count.
139
156
  export function choiceNumber(prompt) {
140
- const choice = CHOICE.exec(typeof prompt === 'string' ? prompt.trim() : '');
157
+ const words = reply(afterAttachments(prompt));
158
+ const choice = words === null ? null : CHOICE.exec(words);
141
159
  return choice ? Number(choice[1]) : null;
142
160
  }
143
-
144
- // The text after a leading `@` that may address an Agent, or null.
145
- export function leadingAgentAddress(prompt) {
146
- const text = typeof prompt === 'string' ? prompt.trimStart() : '';
147
- if (!text.startsWith('@') || KEYWORD.test(text) || GROUP.test(text)) return null;
148
- const token = /^@(\S*)/u.exec(text)[1];
149
- if (!token || /[@/]/u.test(token) || CALLED.test(token) || DOTTED.test(token) || DECORATORS.has(token)) return null;
150
- return text.slice(1, ADDRESS_LIMIT + 1);
151
- }
@@ -0,0 +1,25 @@
1
+ import { flaMenuEntries, menuLanguage, occupationNameMap } from './fla-menu.js';
2
+ import { menuCandidates } from './task-entry-named-fla.js';
3
+
4
+ // What a client's /fla menu lists now (fla-menu.js), read from the person's
5
+ // roster, nameable projects and occupation catalog: MCP prompts
6
+ // (src/mcp/fla-menu-prompts.js) and Codex prompt files
7
+ // (src/agents/codex/fla-prompts.js) both show this list.
8
+
9
+ // Whether the menu is on and its language (device settings, flaSlashMenu and
10
+ // consoleLanguage). Unreadable settings keep the default: on.
11
+ export function flaMenuSettings(application) {
12
+ try { return application.flaMenuSettings?.() ?? { enabled: true, language: '' }; }
13
+ catch { return { enabled: true, language: '' }; }
14
+ }
15
+
16
+ // The entries this client shows, or none while the setting is off.
17
+ export async function readFlaMenuEntries(application, sourceApplication) {
18
+ const { enabled, language } = flaMenuSettings(application);
19
+ if (!enabled) return [];
20
+ const [candidates, catalog] = await Promise.all([menuCandidates(application),
21
+ application.personal.occupationCatalog('list', { personal_space_id: application.config.personal.spaceId })
22
+ .catch(() => null)]);
23
+ return flaMenuEntries(candidates, { sourceApplication, language: menuLanguage(language),
24
+ occupationNames: occupationNameMap(catalog) });
25
+ }
@@ -0,0 +1,108 @@
1
+ import { identityKey } from '../text/name-identity.js';
2
+ import { singleLine } from '../text/single-line.js';
3
+ import { utf8Preview } from '../text/utf8-preview.js';
4
+ import { agentUnavailableReason } from './agent-availability.js';
5
+ import { rankCandidates } from './fla-picker.js';
6
+
7
+ // The person's FLAs as a client's slash menu (11-08): one entry per FLA and
8
+ // project it works in, and one per built-in role, named `fla-<name>` so typing
9
+ // `/fla` in the client lists them. Choosing one is the same as typing
10
+ // `#FLA <name>`: task entry resolves an entry's name to exactly that FLA
11
+ // (withMenuNames). Names stay as the person wrote them; project and role text
12
+ // follow the console language. Nothing here authorizes: task entry and the
13
+ // Provider still decide whether the chosen FLA may work.
14
+
15
+ export const FLA_MENU_PREFIX = 'fla-';
16
+ const MENU_LANGUAGES = Object.freeze(['zh-CN', 'en-US']);
17
+ // Lengths in UTF-16 code units, as agent-installer counts them (Codex
18
+ // prompt names at most 64), cut only between whole characters.
19
+ const SLUG_LIMIT = 40;
20
+ const NAME_LIMIT = 60;
21
+ const CONTROL = /[\u0000-\u001f\u007f-\u009f]/gu;
22
+ const GLOBAL_PROJECT = Object.freeze({ 'zh-CN': '全局', 'en-US': 'Global' });
23
+
24
+ // One menu name per FLA placement (a role counts once, wherever it works),
25
+ // the same for the same roster on every side: the name's slug, and when
26
+ // several share it, each with its project's slug, then a number.
27
+ function flaMenuNames(candidates) {
28
+ const items = [...new Map(candidates.map(item => [menuKey(item), item])).values()]
29
+ .sort((a, b) => compare(menuKey(a), menuKey(b)));
30
+ const base = item => FLA_MENU_PREFIX + (slug(item.name) || slug(item.agentId));
31
+ const shared = new Map();
32
+ for (const item of items) shared.set(base(item), (shared.get(base(item)) ?? 0) + 1);
33
+ const taken = new Set();
34
+ const names = new Map();
35
+ for (const item of items) {
36
+ const wanted = trimmed(shared.get(base(item)) > 1 && !item.role && item.project
37
+ ? `${base(item)}-${slug(item.project)}` : base(item), NAME_LIMIT);
38
+ let name = wanted;
39
+ for (let number = 2; taken.has(name); number += 1) name = `${wanted}-${number}`;
40
+ taken.add(name);
41
+ names.set(menuKey(item), name);
42
+ }
43
+ return names;
44
+ }
45
+
46
+ // The candidates with their menu name as one more name task entry matches
47
+ // after `#FLA` (namedAtOpening), so a client's pick names exactly one.
48
+ export function withMenuNames(candidates) {
49
+ const names = flaMenuNames(candidates);
50
+ return candidates.map(item => ({ ...item, aliases: [...(item.aliases ?? []), names.get(menuKey(item))] }));
51
+ }
52
+
53
+ // The entries this client shows: FLAs that can continue here and have a
54
+ // project (or work globally), ranked as the picker ranks them, then the
55
+ // built-in roles, which find their project when chosen. Each says
56
+ // "name — project — role" and expands to `#FLA <name>`, or to its menu name
57
+ // when another FLA shares the name. occupationNames: key → { 'zh-CN', 'en-US' }.
58
+ export function flaMenuEntries(candidates, { sourceApplication, language, occupationNames = new Map() }) {
59
+ const names = flaMenuNames(candidates);
60
+ const sharing = new Map();
61
+ for (const item of new Map(candidates.map(item => [menuKey(item), item])).values()) {
62
+ for (const key of new Set([item.name, ...(item.aliases ?? [])].map(identityKey))) sharing.set(key, (sharing.get(key) ?? 0) + 1);
63
+ }
64
+ const shown = candidates.filter(item => !agentUnavailableReason(item, sourceApplication)
65
+ && (item.role || item.projectId !== undefined));
66
+ const roles = [...new Map(shown.filter(item => item.role).map(item => [item.agentId, item])).values()];
67
+ return [...rankCandidates(shown.filter(item => !item.role)), ...roles].map(item => {
68
+ const name = names.get(menuKey(item));
69
+ const project = item.role ? null : item.projectId === null ? GLOBAL_PROJECT[language] : item.project;
70
+ return { name, title: item.name, role: Boolean(item.role),
71
+ description: singleLine([item.name, project, roleText(item, language, occupationNames)].filter(Boolean).join(' — '))
72
+ .replace(CONTROL, ''),
73
+ text: `#FLA ${sharing.get(identityKey(item.name)) > 1 ? name : item.name}` };
74
+ });
75
+ }
76
+
77
+ // The console language the person chose, else this computer's.
78
+ export function menuLanguage(setting, systemLocale = Intl.DateTimeFormat().resolvedOptions().locale) {
79
+ if (MENU_LANGUAGES.includes(setting)) return setting;
80
+ return /^zh\b/iu.test(systemLocale ?? '') ? 'zh-CN' : 'en-US';
81
+ }
82
+
83
+ // The occupation catalog's names by key, as the console shows them.
84
+ export function occupationNameMap(catalog) {
85
+ const items = Array.isArray(catalog) ? catalog : catalog?.items ?? catalog?.occupations ?? [];
86
+ return new Map(items.filter(item => item?.key).map(item => [item.key,
87
+ { 'zh-CN': item.name_zh || item.name_en, 'en-US': item.name_en || item.name_zh }]));
88
+ }
89
+
90
+ function roleText(item, language, occupationNames) {
91
+ return occupationNames.get(item.occupationKey)?.[language] || item.occupation || '';
92
+ }
93
+
94
+ function menuKey(item) {
95
+ return item.role ? item.agentId : `${item.agentId}\u0000${item.projectId ?? ''}`;
96
+ }
97
+
98
+ function slug(text) {
99
+ return trimmed(identityKey(text ?? '').replace(/[^\p{L}\p{M}\p{N}]+/gu, '-').replace(/^-+/u, ''), SLUG_LIMIT);
100
+ }
101
+
102
+ function trimmed(text, limit) {
103
+ return utf8Preview(text, limit, value => value.length, '').replace(/-+$/u, '');
104
+ }
105
+
106
+ function compare(a, b) {
107
+ return a < b ? -1 : a > b ? 1 : 0;
108
+ }
@@ -10,7 +10,7 @@ import { projectDisplayName } from './task-entry-project-mention.js';
10
10
  // The person's FLAs as choices (rec#54): one candidate per FLA and project it
11
11
  // works in, so the same name in two projects is two choices. Matching a typed
12
12
  // name, narrowing a partial one and ranking are shared by every picker over
13
- // FLAs; rec#55's @FLG member choice reuses them with a multi-select
13
+ // FLAs; rec#55's #FLG member choice reuses them with a multi-select
14
14
  // presentation and names found anywhere in its text. Names, projects and
15
15
  // role text only: nothing here reads memory, and the
16
16
  // Provider still decides whether a chosen FLA may work.
@@ -19,11 +19,13 @@ import { projectDisplayName } from './task-entry-project-mention.js';
19
19
  // list other clients show stays the same four, so a number means one thing.
20
20
  const PICKER_OPTIONS = 4;
21
21
  const GLOBAL_PROJECT = '全局';
22
+ // Built-in roles that also work without a project (roleCandidates).
23
+ const SPACE_ROLES = new Set([employeeAgentId('tonborg')]);
22
24
  // Management peers, AR and the assistant are FULI's own roles, and temporary
23
25
  // Agents belong to one task: none is an FLA a person continues by name.
24
26
  const NOT_PICKABLE_TYPES = new Set(['hr', 'temporary']);
25
27
  // A name ends at the end, a space or punctuation, or where the script changes
26
- // (`Jamie Ash继续`). Two CJK runs never split: `@小林子` is not "小林".
28
+ // (`Jamie Ash继续`). Two CJK runs never split: `小林子` is not "小林".
27
29
  const NAME_END = /^(?:$|[\s,,::;;!?!?.。、((])/u;
28
30
  const CJK = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u;
29
31
  const PARTIAL_LIMIT = 64;
@@ -43,16 +45,18 @@ export function flaCandidates(roster, projects, personalSpaceId) {
43
45
  .flatMap(agent => placements(agent, named).map(placement => candidate(agent, placement)));
44
46
  }
45
47
 
46
- // FULI's own roles (rec#58): Jefa, Bole and Tonborg work in the folder's
47
- // project (projectId undefined outside one), Astro globally. They are named
48
+ // FULI's own roles (rec#58): Jefa and Bole work in the folder's project
49
+ // (projectId undefined outside one), Astro globally, and Tonborg in the
50
+ // folder's project or, outside any, in its global scope: what it asks the
51
+ // person (待决策) belongs to the whole space (11-08). They are named
48
52
  // only exactly, with `#FLA <name>`, never listed in the picker; the Provider
49
53
  // and the role's own project scope still decide whether one may work there.
50
54
  // A role the person renamed still answers to its built-in name (rec#11 D-89).
51
55
  export function roleCandidates(roster, projects, personalSpaceId, currentProjectId) {
52
56
  const current = projects.find(project => project.project_id === currentProjectId);
53
57
  return inSpace(roster, personalSpaceId).filter(isFixedRole).map(agent => {
54
- const role = { ...candidate(agent, { project: agent.agent_id === ASSISTANT_AGENT_ID ? null : current, assignment: null }),
55
- role: true };
58
+ const project = agent.agent_id === ASSISTANT_AGENT_ID ? null : SPACE_ROLES.has(agent.agent_id) ? current ?? null : current;
59
+ const role = { ...candidate(agent, { project, assignment: null }), role: true };
56
60
  const builtIn = agent.profile?.name;
57
61
  return builtIn && identityKey(builtIn) !== identityKey(role.name) ? { ...role, aliases: [builtIn] } : role;
58
62
  });
@@ -82,6 +86,7 @@ function candidate(agent, { project, assignment }) {
82
86
  return { agentId: agent.agent_id, projectId: project === undefined ? undefined : project?.project_id ?? null,
83
87
  name, project: project ? projectDisplayName(project) : project === null ? GLOBAL_PROJECT : null,
84
88
  occupation: profile.display_name && profile.name !== name ? profile.name : '',
89
+ occupationKey: agent.occupation?.role ?? null,
85
90
  responsibility: profile.responsibility ?? '', capabilities: profile.capabilities ?? [],
86
91
  status: profile.status ?? 'active', allowedClients: profile.allowed_clients ?? [],
87
92
  recency: Math.max(0, ...[assignment?.updated_at, agent.current_task_running_since, agent.updated_at]
@@ -104,7 +109,7 @@ export function rankCandidates(candidates, { currentProjectId = null, recentAgen
104
109
  }
105
110
 
106
111
  // The candidates whose whole name opens the query, longest name first:
107
- // `@Jamie Ash 继续` names "Jamie Ash" even when "Jamie" exists too.
112
+ // `#FLA Jamie Ash 继续` names "Jamie Ash" even when "Jamie" exists too.
108
113
  // A built-in role's own name (aliases) counts as one of its names.
109
114
  export function namedAtOpening(query, candidates) {
110
115
  const text = identityKey(query);
@@ -115,11 +120,11 @@ export function namedAtOpening(query, candidates) {
115
120
  }
116
121
 
117
122
  // The candidates one of whose name's words is exactly the query's first word
118
- // (`@Jamie` for "Jamie Ash"; rec#11 D-68a). The word has at least two
119
- // characters, and a Latin one is matched as written: `@test` is an ordinary
120
- // prompt even beside "Test Bot". A word that is also a common term, written
121
- // as the name writes it (`@Mock` for "Mock Li"), still matches.
122
- export function namedByWord(query, candidates) {
123
+ // (`#Jamie` for "Jamie Ash" in a #FLG question). The word has at least two
124
+ // characters, and a Latin one is matched as written: `#test` names nobody
125
+ // even beside "Test Bot". A word that is also a common term, written
126
+ // as the name writes it (`#Mock` for "Mock Li"), still matches.
127
+ function namedByWord(query, candidates) {
123
128
  const word = typedWord(query);
124
129
  if ([...word].length < WORD_MINIMUM) return [];
125
130
  const words = name => ASCII.test(word) ? name.normalize('NFKC').split(/\s+/u) : identityKey(name).split(' ');
@@ -129,7 +134,7 @@ export function namedByWord(query, candidates) {
129
134
 
130
135
  // The candidates a partial name (the query's first word) fits, closest fit
131
136
  // first: names that start with it, or have a word that does (close fits);
132
- // only when there is none, names whose letters it follows in order (`@jsh`
137
+ // only when there is none, names whose letters it follows in order (`jsh`
133
138
  // fits "Jamie Ash"), which only narrow a picker. Ranking order within a fit.
134
139
  export function narrowedByPartial(query, candidates) {
135
140
  const partial = identityKey(typedWord(query));
@@ -151,7 +156,7 @@ function partialFit(partial, name) {
151
156
 
152
157
  // The query's first word as typed (compatibility forms folded, case kept),
153
158
  // cut where punctuation or the script changes, at most PARTIAL_LIMIT long.
154
- export function typedWord(query) {
159
+ function typedWord(query) {
155
160
  const characters = [...String(query).normalize('NFKC').trimStart().split(/\s/u)[0]];
156
161
  const end = characters.findIndex((character, index) => index > 0
157
162
  && (NAME_END.test(character) || CJK.test(character) !== CJK.test(characters[index - 1])));
@@ -166,7 +171,7 @@ function nameEnds(name, rest) {
166
171
  // The names a free text carries anywhere, as whole terms (term-match.js), each
167
172
  // with every candidate of that name: longest names first, and a name inside a
168
173
  // longer one already found does not count again ("Jamie" in "Jamie Ash"). A
169
- // word written `@Jamie` names whoever namedByWord finds. Order of appearance.
174
+ // word written `#Jamie` names whoever namedByWord finds. Order of appearance.
170
175
  export function namedInText(text, candidates) {
171
176
  let rest = identityKey(text);
172
177
  const found = [];
@@ -178,7 +183,7 @@ export function namedInText(text, candidates) {
178
183
  found.push({ at, items: candidates.filter(item => identityKey(item.name) === key) });
179
184
  rest = rest.slice(0, at) + '\u0000'.repeat(key.length) + rest.slice(at + key.length);
180
185
  }
181
- for (const word of String(text).matchAll(/(?:^|\s)@(\S+)/gu)) {
186
+ for (const word of String(text).matchAll(/(?:^|\s)#(\S+)/gu)) {
182
187
  const items = namedByWord(word[1], candidates).filter(item => !found.some(({ items: known }) => known.includes(item)));
183
188
  if (items.length) found.push({ at: Infinity, items });
184
189
  }
@@ -0,0 +1,60 @@
1
+ // FULI's own markup inside text that is about to become knowledge. A reply or
2
+ // prompt can carry what FULI put there: the source marker a recall asks the
3
+ // Agent to lead with (source-marker.js), the 「FULI 来源 · N 条」 list, the
4
+ // identity and turn receipts (identity-receipt.js, turn-receipt.js), a
5
+ // delegation receipt, and links to FULI's own items. Kept as knowledge, each
6
+ // capture wrapped the last one's link and the review queue filled with nested
7
+ // links to other pending items (seen 2026-11-08). This returns the text with
8
+ // all of that removed: a line that is only FULI markup goes, a link to a FULI
9
+ // page inside a sentence keeps its words and loses the link.
10
+ const LOOPBACK = String.raw`https?:\/\/(?:127\.0\.0\.1|localhost|\[::1\])(?::\d+)?`;
11
+ // A FULI page: any fuli:// link; on the console, a knowledge item or a turn's
12
+ // records, in the shapes FULI writes them (a project's own localhost pages stay).
13
+ const SEGMENT = String.raw`[^/\s<>()?#]+`;
14
+ const ITEM_KIND = '(?:entity|relationship)';
15
+ const FULI_URL = String.raw`(?:fuli:\/\/[^\s<>()]+|${LOOPBACK}\/knowledge\/(?:${SEGMENT}\/${SEGMENT}\/directory\/${ITEM_KIND}|item\/${SEGMENT}\/${ITEM_KIND}|turn\/${SEGMENT}\?episodes=)[^\s<>()]*)`;
16
+ const LABEL = String.raw`\[((?:\\.|[^\]\\])*)\]`;
17
+ const FULI_LINK = new RegExp(String.raw`${LABEL}\(<?${FULI_URL}>?\)`, 'gu');
18
+ const BARE_FULI_URL = new RegExp(String.raw`<?${FULI_URL}>?`, 'gu');
19
+ const SOURCE_MARKER = new RegExp(String.raw`\*{0,2}${LABEL}\(<?${LOOPBACK}[^\s<>()]*>?\)\*{0,2}`, 'gu');
20
+ const MARKER_LABEL = /^(?:🌠|◇)\s*FULI\s*·/u;
21
+ const ONLY_LINKS = new RegExp(String.raw`^[\s>*•·,,、;;::-]*(?:${LABEL}\(<?${FULI_URL}>?\)[\s*•·,,、;;::-]*)+$`, 'u');
22
+ const MARKUP_LINES = [
23
+ /^\s*\*{0,2}FULI 来源 · \d+ 条\*{0,2}\s*$/u,
24
+ /^\s*[-*•]?\s*另有 \d+ 条命中/u,
25
+ /FULI Agent:/u,
26
+ /^\s*FULI [本上]轮沉淀(?:(补发))? \d+ 条/u,
27
+ /^\s*另 \d+ 条未列出:/u,
28
+ /^\s*[-*•]\s*(?:新增|更新)\s.*|.*\]\(<?(?:fuli:|https?:)/u,
29
+ /^\s*🤝 已(?:代你操作|按你的原话记下)/u
30
+ ];
31
+
32
+ export function withoutFuliMarkup(text) {
33
+ if (typeof text !== 'string') return '';
34
+ return tidy(text.split(/\r?\n/u)
35
+ .filter(line => !MARKUP_LINES.some(pattern => pattern.test(line)) && !ONLY_LINKS.test(line))
36
+ .map(line => line
37
+ .replace(SOURCE_MARKER, (marker, label) => (MARKER_LABEL.test(label) ? '' : marker))
38
+ .replace(FULI_LINK, (link, label) => plainLabel(label))
39
+ .replace(BARE_FULI_URL, ''))
40
+ .join('\n'));
41
+ }
42
+
43
+ // Whether text carries any of that markup. Knowledge kept before #839 still
44
+ // can (reply-echo.js); anything captured since has none.
45
+ export function hasFuliMarkup(text) {
46
+ return typeof text === 'string' && Boolean(text.trim()) && withoutFuliMarkup(text) !== tidy(text);
47
+ }
48
+
49
+ function tidy(text) {
50
+ return text.split(/\r?\n/u).map(line => line.replace(/[ \t]+$/u, '')).join('\n').replace(/\n{3,}/gu, '\n\n').trim();
51
+ }
52
+
53
+ // Why a captured field that held nothing but FULI's markup is refused.
54
+ export const ONLY_MARKUP = field => `${field} holds only FULI's own markup (a source marker, receipt or link to a FULI item); state the approach or fact itself`;
55
+
56
+ // A link's words as written before source-marker.js escaped them for Markdown.
57
+ function plainLabel(label) {
58
+ return label.replace(/\\([\\[\]])/gu, '$1')
59
+ .replaceAll('&lt;', '<').replaceAll('&gt;', '>').replaceAll('&amp;', '&').trim();
60
+ }
@@ -3,7 +3,7 @@ import { projectKnowledgeIndex } from './task-knowledge-recall.js';
3
3
  import { singleLine } from '../text/single-line.js';
4
4
  import { utf8Preview } from '../text/utf8-preview.js';
5
5
 
6
- // `@FLG … 一起看` (rec#55 mode 1): the session works with the confirmed
6
+ // `#FLG … 一起看` (rec#55 mode 1): the session works with the confirmed
7
7
  // members in mind instead of waking them. This is the one read it gets: a
8
8
  // small index of each member, built from the reads the Agent tools already
9
9
  // make (the person's FLA roster with each FLA's projects, list_project_agent_tasks,
@@ -45,13 +45,27 @@ export function personalHumanReviewChannel(dataDir, {
45
45
  const headers = { authorization: `Bearer ${accessToken}`,
46
46
  ...(method === 'GET' ? {} : { 'content-type': 'application/json' }),
47
47
  ...(review ? { 'x-fuli-human-review-token': reviewToken() } : {}) };
48
- const response = await fetchImpl(`${providerUrl}${path}`, { method, headers,
49
- ...(method === 'GET' ? {} : { body: JSON.stringify(body ?? {}) }), signal: AbortSignal.timeout(timeoutMs) });
48
+ let response;
49
+ try {
50
+ response = await fetchImpl(`${providerUrl}${path}`, { method, headers,
51
+ ...(method === 'GET' ? {} : { body: JSON.stringify(body ?? {}) }), signal: AbortSignal.timeout(timeoutMs) });
52
+ } catch (error) {
53
+ throw unreachableProvider(error);
54
+ }
50
55
  const payload = await response.json().catch(() => ({}));
51
56
  return { ok: response.ok, status: response.status, payload };
52
57
  };
53
58
  }
54
59
 
60
+ // A provider that is not running, is restarting or did not answer in time, with
61
+ // the codes the provider client reports for the same failure. fetch rejects with
62
+ // a plain TypeError ("fetch failed"), which HTTP would answer as bad input.
63
+ function unreachableProvider(error) {
64
+ const timedOut = error?.name === 'TimeoutError';
65
+ return new ProviderRequestError(timedOut ? 'Graphiti provider request timed out.' : 'Graphiti provider is unavailable.',
66
+ { status: timedOut ? 504 : 0, code: timedOut ? 'provider_timeout' : 'provider_unavailable' });
67
+ }
68
+
55
69
  // The provider's refusal on this channel as the console reports it: its code
56
70
  // and message, when a deleted item was deleted, and which items a refused
57
71
  // batch names.
@@ -4,8 +4,8 @@ import { createFuliSourceMarker } from './source-marker.js';
4
4
  import { utf8Preview } from '../text/utf8-preview.js';
5
5
  import { approxTokens } from '../text/token-estimate.js';
6
6
 
7
- export const AUTOMATIC_RECALL_BYTES = 4 * 1024;
8
- export const SEARCH_PAGE_BYTES = 8 * 1024;
7
+ const AUTOMATIC_RECALL_BYTES = 4 * 1024;
8
+ const SEARCH_PAGE_BYTES = 8 * 1024;
9
9
  const QUERY_PREVIEW_BYTES = 160;
10
10
  const PROJECT_ID_LIST_BYTES = 512;
11
11
  const PROJECT_ID_LISTS = ['searchedPersonalProjectIds', 'requestedProjectIds', 'searchedProjectIds', 'failedProjectIds'];
@@ -27,7 +27,8 @@ export function recordKnowledgeReviewProgress(app, input) {
27
27
  outcome: input.outcome,
28
28
  note: input.note ?? null,
29
29
  ...(input.aiReviewEvidenceToken ? { ai_review_evidence_token: input.aiReviewEvidenceToken } : {}),
30
- ...(input.aiAssessment ? { ai_assessment: input.aiAssessment } : {})
30
+ ...(input.aiAssessment ? { ai_assessment: input.aiAssessment } : {}),
31
+ ...(input.confirmAsAgent ? { confirm_as_agent: true } : {})
31
32
  });
32
33
  }
33
34