fuli-context 0.27.13 → 0.27.15

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 (328) hide show
  1. package/README.md +21 -0
  2. package/README.zh-CN.md +20 -0
  3. package/dist/web/assets/{AboutPage-B_l0fL3_.js → AboutPage-DvGP5oew.js} +1 -1
  4. package/dist/web/assets/{AboutSectionHeading-FkC0V4ZM.js → AboutSectionHeading-DQLpU-LX.js} +1 -1
  5. package/dist/web/assets/{AdvancedOnly-oNI_wJfk.js → AdvancedOnly-D3BTbbl0.js} +1 -1
  6. package/dist/web/assets/{AgentAppsPage-95Sr6oLp.js → AgentAppsPage-DWwVdXaN.js} +1 -1
  7. package/dist/web/assets/{AgentAvatar-DNf2k3_2.js → AgentAvatar-C-qXHE1H.js} +1 -1
  8. package/dist/web/assets/{AgentHand-ClleTtSi.js → AgentHand-B4V79OMX.js} +1 -1
  9. package/dist/web/assets/{AgentManagement-nW4k_wxv.js → AgentManagement-Bj3b_VpR.js} +1 -1
  10. package/dist/web/assets/{AgentMentionCopy-DmZlnvlR.js → AgentMentionCopy-CcGGU2LY.js} +1 -1
  11. package/dist/web/assets/{AgentName-B2qWcURi.js → AgentName-CpqRfTQx.js} +1 -1
  12. package/dist/web/assets/{AgentProfilePage-BKU203HE.js → AgentProfilePage-DgpLgAtE.js} +3 -3
  13. package/dist/web/assets/{AgentServicesPage-13WXOPPB.js → AgentServicesPage-DLmt22nV.js} +1 -1
  14. package/dist/web/assets/{AppViewerPage-DWoH0nVJ.js → AppViewerPage-CoycXPa8.js} +1 -1
  15. package/dist/web/assets/{BackToTop-6WOSgokN.js → BackToTop-CVsZqRqu.js} +1 -1
  16. package/dist/web/assets/{BoardCardFieldsMenu-DqHG6aEz.js → BoardCardFieldsMenu-BhGbXVCc.js} +1 -1
  17. package/dist/web/assets/{BoardMoveMenu-CnKMHK8p.js → BoardMoveMenu-DgcS4rCa.js} +1 -1
  18. package/dist/web/assets/{Breadcrumb-DxTO2Mmi.js → Breadcrumb-Ct7e6OYm.js} +1 -1
  19. package/dist/web/assets/{CaptureChangePage-CeqjPWo2.js → CaptureChangePage-DzUhCdQD.js} +1 -1
  20. package/dist/web/assets/{Collection-qi4Es1fz.js → Collection-Bs2KQouG.js} +1 -1
  21. package/dist/web/assets/{CopyFixPrompt-BclENSuP.js → CopyFixPrompt-DEGrc4au.js} +1 -1
  22. package/dist/web/assets/{DataFormatPage-D1QJPv4p.js → DataFormatPage-l9tilr5P.js} +1 -1
  23. package/dist/web/assets/{DebugTurnPage-BIPOYueM.js → DebugTurnPage-5BXToKCk.js} +1 -1
  24. package/dist/web/assets/{DebugTurnsPage-CQXwx7aV.js → DebugTurnsPage-Buz3RP5E.js} +1 -1
  25. package/dist/web/assets/{DialogTitle-BDICj-RE.js → DialogTitle-3cbaDXar.js} +1 -1
  26. package/dist/web/assets/{EmployeeRedirectPage-DhuuM5ek.js → EmployeeRedirectPage-B2WSyQ4r.js} +1 -1
  27. package/dist/web/assets/{EmployeeScopeDialog-B4yqCNQF.js → EmployeeScopeDialog-B_e-PQ8G.js} +1 -1
  28. package/dist/web/assets/EmployeeWorkbench-Bk2cZdp1.js +4 -0
  29. package/dist/web/assets/FieldRoot-CWgB5qau.js +1 -0
  30. package/dist/web/assets/{FlaBlockedTasks-DNudWHQO.js → FlaBlockedTasks-CzSwoKLk.js} +1 -1
  31. package/dist/web/assets/{FlaGrowth-YLyAxwPs.js → FlaGrowth-C8O0QHwC.js} +1 -1
  32. package/dist/web/assets/{FlaOccupationKit-Ce-20LX3.js → FlaOccupationKit-DZK3j3mR.js} +1 -1
  33. package/dist/web/assets/{FlaTaskSheets-DfWUHHrR.js → FlaTaskSheets-CtqeoO1u.js} +1 -1
  34. package/dist/web/assets/{FlasPage-PX-vlQOd.js → FlasPage-BDha0WYc.js} +1 -1
  35. package/dist/web/assets/{GrowthLoading-DebtDrNr.js → GrowthLoading-Cf0bPF3Q.js} +1 -1
  36. package/dist/web/assets/HabitDeliveryPage-BqSUYrAz.js +1 -0
  37. package/dist/web/assets/{HowtoPage-VgoLU8fX.js → HowtoPage-BoKrkQG9.js} +1 -1
  38. package/dist/web/assets/{InboxPage-D34psCmA.js → InboxPage-D6oP06im.js} +1 -1
  39. package/dist/web/assets/{KnowledgeDeleteButton-DF1OMjE9.js → KnowledgeDeleteButton-BRBRwjQi.js} +1 -1
  40. package/dist/web/assets/{KnowledgeHardDeleteSection-BrZpXx-X.js → KnowledgeHardDeleteSection-04BFLuNv.js} +1 -1
  41. package/dist/web/assets/{KnowledgeItemEditPage-Bex9opxd.js → KnowledgeItemEditPage-hUoreDyp.js} +1 -1
  42. package/dist/web/assets/{KnowledgeItemSummaryCard-CdCHQUVE.js → KnowledgeItemSummaryCard-BIePM9pG.js} +1 -1
  43. package/dist/web/assets/{KnowledgeOrganizerPage-DL4HdiRI.js → KnowledgeOrganizerPage-BSLT89Rn.js} +1 -1
  44. package/dist/web/assets/KnowledgePage-DZPa8muX.js +1 -0
  45. package/dist/web/assets/{KnowledgePeek-dtA-7Pwo.js → KnowledgePeek-BRwIehvJ.js} +1 -1
  46. package/dist/web/assets/{KnowledgeTurnReceiptPage-Bc0mtGBh.js → KnowledgeTurnReceiptPage-BimpLgkf.js} +1 -1
  47. package/dist/web/assets/{KnowledgeWorkspace-D3vFw5if.js → KnowledgeWorkspace-kG7D5BqN.js} +1 -1
  48. package/dist/web/assets/{MeAvatar-CKPltrBq.js → MeAvatar-oFVbooie.js} +1 -1
  49. package/dist/web/assets/{MeLink-BuhHHgTP.js → MeLink-Da6v55D-.js} +1 -1
  50. package/dist/web/assets/{MenuSeparator-B3ZADZB1.js → MenuSeparator-6uCMyjlG.js} +1 -1
  51. package/dist/web/assets/{ModelSettingsPage-B6dR5BiF.js → ModelSettingsPage-BcaQyqJv.js} +1 -1
  52. package/dist/web/assets/{NewSessionPanel-D_8VPeIK.js → NewSessionPanel-Bkj9sACa.js} +1 -1
  53. package/dist/web/assets/{NotFoundPage-Dep-OHxE.js → NotFoundPage-yZC3Bf0L.js} +1 -1
  54. package/dist/web/assets/{NoticeRow-B9ulEnZf.js → NoticeRow-C5Gizy8U.js} +1 -1
  55. package/dist/web/assets/{OccupationsPage-dVfpNOz2.js → OccupationsPage-CB9WAmfB.js} +1 -1
  56. package/dist/web/assets/{PageOutline-CIYCs2_7.js → PageOutline-H1YZcpKH.js} +1 -1
  57. package/dist/web/assets/{PageStack-DcOXhT2V.js → PageStack-OfaGhlB9.js} +1 -1
  58. package/dist/web/assets/{PersonalProfilePage-BnVd_ETP.css → PersonalProfilePage-B0_Pxi-K.css} +1 -1
  59. package/dist/web/assets/PersonalProfilePage-DdJHUTpa.js +1 -0
  60. package/dist/web/assets/PersonalProjectsPage-ZiPK9uq0.js +1 -0
  61. package/dist/web/assets/{PinIcon-ByCWycOq.js → PinIcon-B0AQYl66.js} +1 -1
  62. package/dist/web/assets/{PopperContent-DhxdWcVJ.js → PopperContent-CVXepuUC.js} +1 -1
  63. package/dist/web/assets/{Presence-DvSWiJKc.js → Presence-BN4OmYc9.js} +1 -1
  64. package/dist/web/assets/{ProfileAuthorChip-Dw2rKa8-.js → ProfileAuthorChip-B_V0NkUt.js} +1 -1
  65. package/dist/web/assets/{ProjectAgentsPage-BNm8rs0J.js → ProjectAgentsPage-CqS2uLA4.js} +1 -1
  66. package/dist/web/assets/{ProjectAgentsPage-CjeXFzHr.css → ProjectAgentsPage-CwaCXHng.css} +1 -1
  67. package/dist/web/assets/{ProjectJudgmentPolicy-Bos0R_6g.js → ProjectJudgmentPolicy-DNrS_fq7.js} +1 -1
  68. package/dist/web/assets/{RequesterModeSelect-DUOORHOB.js → RequesterModeSelect-BzLkdUFS.js} +1 -1
  69. package/dist/web/assets/{RoundtablesPage-CWDeG6lr.js → RoundtablesPage-D_L07I16.js} +1 -1
  70. package/dist/web/assets/{RovingFocusGroup-MoXnukcS.js → RovingFocusGroup-Cf4tQYLt.js} +1 -1
  71. package/dist/web/assets/{RovingFocusItem-BBsi3zWj.js → RovingFocusItem-Bjr-auXN.js} +1 -1
  72. package/dist/web/assets/{SessionMigrationPage-DB0m-6ZH.js → SessionMigrationPage-DqT7XkaH.js} +1 -1
  73. package/dist/web/assets/{SessionRecordsPage-Dcl2FVUt.js → SessionRecordsPage-C7CccMko.js} +1 -1
  74. package/dist/web/assets/SettingsPage-CGO8HYEC.js +3 -0
  75. package/dist/web/assets/SettingsPage-CSs4nimS.css +1 -0
  76. package/dist/web/assets/{SharedJefaReportPage-IC9k9P7P.js → SharedJefaReportPage-DRXjcyvN.js} +1 -1
  77. package/dist/web/assets/{StatementCalendarPage-QDIi5HQR.js → StatementCalendarPage-BIxdCVmI.js} +1 -1
  78. package/dist/web/assets/StatementRows-BV77XQXa.js +1 -0
  79. package/dist/web/assets/{TagVocabularyPage-D7YumwmH.js → TagVocabularyPage-xowg9e-0.js} +1 -1
  80. package/dist/web/assets/{TaskBlockerClear-JhNNE6oq.js → TaskBlockerClear-HIUn3B56.js} +1 -1
  81. package/dist/web/assets/{TaskBlockerNotice-CtgDsZjJ.js → TaskBlockerNotice-BXozcJNO.js} +1 -1
  82. package/dist/web/assets/{TaskReason-C2wsLnQB.js → TaskReason-B9mo7G9G.js} +1 -1
  83. package/dist/web/assets/{TeamCard-xdsXkn6B.js → TeamCard-BgLDOUrp.js} +1 -1
  84. package/dist/web/assets/{TeamCardsWidget-D7KfZKFN.js → TeamCardsWidget-oFErdpr-.js} +1 -1
  85. package/dist/web/assets/{TeamIsland-DTnyPc-t.js → TeamIsland-a91OejBt.js} +1 -1
  86. package/dist/web/assets/{Teleport-DjMbt1H8.js → Teleport-Bq22sdRp.js} +1 -1
  87. package/dist/web/assets/{TextField-CRC6Bjh3.js → TextField-Dq9oGwwQ.js} +1 -1
  88. package/dist/web/assets/TodayPage-AZR8M_JV.css +1 -0
  89. package/dist/web/assets/TodayPage-Cx01cAUV.js +1 -0
  90. package/dist/web/assets/TonborgDelegationSwitch-Mj_HqsTA.css +1 -0
  91. package/dist/web/assets/TonborgDelegationSwitch-efmSdC0U.js +1 -0
  92. package/dist/web/assets/{UiChip-CjxMavEk.js → UiChip-w3aQDuoO.js} +1 -1
  93. package/dist/web/assets/UiDialog-BQVnIalT.js +1 -0
  94. package/dist/web/assets/{UiDisclosure-k0LlM6pl.js → UiDisclosure-B1SRk17k.js} +1 -1
  95. package/dist/web/assets/{UiIcon-CACHmP5l.js → UiIcon-X7VJyTtW.js} +1 -1
  96. package/dist/web/assets/{UiSegmented-CQVO8rhc.js → UiSegmented-CvQGiMjw.js} +1 -1
  97. package/dist/web/assets/{UiWeight-BmXTfcLH.js → UiWeight-BW2FyfZj.js} +1 -1
  98. package/dist/web/assets/{VirtualDirectoryList-Pr2Qi-dU.js → VirtualDirectoryList-BdZtoa_v.js} +1 -1
  99. package/dist/web/assets/{VisitRequestDialog-DAI67ioL.js → VisitRequestDialog-cyjkGIM8.js} +1 -1
  100. package/dist/web/assets/{VisitRequestsPage-Cj0ijsV8.js → VisitRequestsPage-BhmySfdJ.js} +1 -1
  101. package/dist/web/assets/{VisuallyHidden-BryO9rDo.js → VisuallyHidden-DR95cfoQ.js} +1 -1
  102. package/dist/web/assets/{VisuallyHiddenInput-DYdmVe47.js → VisuallyHiddenInput-BvoNjX4U.js} +1 -1
  103. package/dist/web/assets/WidgetSlot-BFozXCzN.js +2 -0
  104. package/dist/web/assets/{WorkbenchListPage-ClZVT7dm.js → WorkbenchListPage-BDFY0Cs7.js} +1 -1
  105. package/dist/web/assets/_plugin-vue_export-helper-BB4OD0pm.js +9 -0
  106. package/dist/web/assets/{agent-apps-CjrZf0-w.js → agent-apps-sjSDmgvg.js} +1 -1
  107. package/dist/web/assets/agent-occupation-C8sLJTsm.js +1 -0
  108. package/dist/web/assets/{agent-pins-Cu8AFRyj.js → agent-pins-yVfWNuJl.js} +1 -1
  109. package/dist/web/assets/{agent-roster-records-krYbDyoX.js → agent-roster-records-Cc0Nn5GV.js} +1 -1
  110. package/dist/web/assets/{agent-work-summary-DgNhwBDs.js → agent-work-summary-PW6xgNM2.js} +1 -1
  111. package/dist/web/assets/{attach-closest-edge-E_9u3LTc.js → attach-closest-edge-CcuoJl8K.js} +1 -1
  112. package/dist/web/assets/{attention-store-DB8sFqYP.js → attention-store-lVVPGRD4.js} +1 -1
  113. package/dist/web/assets/{badge-CnIj-Vjf.js → badge-SlVRpAT1.js} +1 -1
  114. package/dist/web/assets/{button-Bq6CtOwd.js → button-DaCf049q.js} +1 -1
  115. package/dist/web/assets/{card-BtoExyUu.js → card-CU-fMIwI.js} +1 -1
  116. package/dist/web/assets/{catalog-CKImWBc1.js → catalog-BGcUbTAn.js} +1 -1
  117. package/dist/web/assets/{checkbox-Ctz3kAzT.js → checkbox-BXJb7XxN.js} +1 -1
  118. package/dist/web/assets/{client-lWxuJzdQ.js → client-Czx1m2q7.js} +1 -1
  119. package/dist/web/assets/{client-links-store-Bq7jIrus.js → client-links-store-lPiPZrdj.js} +1 -1
  120. package/dist/web/assets/{combobox-Cx6qBlBW.js → combobox-BnTpTtCD.js} +1 -1
  121. package/dist/web/assets/{console-Co0rg13s.js → console-BVTfuCGS.js} +1 -1
  122. package/dist/web/assets/{conversation-launcher-settings-6oiDh8F5.js → conversation-launcher-settings-BE9N0RNZ.js} +1 -1
  123. package/dist/web/assets/{copy-mention-B8kd4NhM.js → copy-mention-DefPSDHA.js} +1 -1
  124. package/dist/web/assets/{dialog-C7ZNMqqv.js → dialog-i73g2wCu.js} +1 -1
  125. package/dist/web/assets/{dist-BvBBjfpN.js → dist-D4vkYocO.js} +1 -1
  126. package/dist/web/assets/{dist-BuQhl9nu.js → dist-DaGiq9tT.js} +1 -1
  127. package/dist/web/assets/{dropdown-menu-DdSRggWj.js → dropdown-menu-Cmjta51i.js} +1 -1
  128. package/dist/web/assets/{field-DTAH8Lxk.js → field-DNFFjUOg.js} +1 -1
  129. package/dist/web/assets/{format-bytes-L2iiNO-i.js → format-bytes-iVfP_Uth.js} +1 -1
  130. package/dist/web/assets/habit-delivery-api-B02Lhs58.js +1 -0
  131. package/dist/web/assets/{hover-card-BR4RBAKf.js → hover-card-DbjVSrp_.js} +1 -1
  132. package/dist/web/assets/{identity-JzX2orvv.js → identity-D9O6Buig.js} +1 -1
  133. package/dist/web/assets/{index-CKt2-FlB.css → index-Cysku2l_.css} +1 -1
  134. package/dist/web/assets/index-v2PfAWGl.js +24 -0
  135. package/dist/web/assets/{input-EnYUa2P8.js → input-D-v-Qzn9.js} +1 -1
  136. package/dist/web/assets/{label-BBBLSYRO.js → label-BElkyClR.js} +1 -1
  137. package/dist/web/assets/label-table-D4SR42iJ.js +1 -0
  138. package/dist/web/assets/{model-CfTCkbyX.js → model-AGAChkMn.js} +1 -1
  139. package/dist/web/assets/{model-D8YvY96y.js → model-BE6jYIay.js} +1 -1
  140. package/dist/web/assets/{model-BAkHkZVA.js → model-CMcIj6YH.js} +1 -1
  141. package/dist/web/assets/{model-BzuKf6DT.js → model-CYuzfMlT.js} +1 -1
  142. package/dist/web/assets/{model-DsBzcYT-.js → model-Cq1mMseJ.js} +1 -1
  143. package/dist/web/assets/{model--ObjLBUY.js → model-DBLGBYG2.js} +1 -1
  144. package/dist/web/assets/{model-C2aQw9hO.js → model-DK69qvU8.js} +1 -1
  145. package/dist/web/assets/{model-QOEG-dyt.js → model-DS-vaSNE.js} +1 -1
  146. package/dist/web/assets/{model-CmH2cJ8Q.js → model-bve-XDFz.js} +1 -1
  147. package/dist/web/assets/{model-health-AZIgeuoF.js → model-health-CnYUPVT2.js} +1 -1
  148. package/dist/web/assets/{motion-DG7gku93.js → motion-D-CCN29z.js} +1 -1
  149. package/dist/web/assets/{motion-iB_9OWK7.js → motion-D2ROf5sb.js} +1 -1
  150. package/dist/web/assets/{motion-preference-ByKvDRAP.js → motion-preference-ByJGpZkg.js} +1 -1
  151. package/dist/web/assets/{occupation-catalog-BSHATipY.js → occupation-catalog-DIcniNgM.js} +1 -1
  152. package/dist/web/assets/{occupation-kits-C9_iMZiE.js → occupation-kits-BbwJDWeG.js} +1 -1
  153. package/dist/web/assets/{option-BxnPKnWF.js → option-DfNbcA2F.js} +1 -1
  154. package/dist/web/assets/{orchestration-filters-BZEDHWMD.js → orchestration-filters-DUQWlZKZ.js} +1 -1
  155. package/dist/web/assets/{overview-data-BgvJ8XJr.js → overview-data-BUOawtae.js} +1 -1
  156. package/dist/web/assets/{page-refresh-DGbpJ0K-.js → page-refresh-D-9vjKh3.js} +1 -1
  157. package/dist/web/assets/{page-title-DMSN_kUH.js → page-title-jJR8RG43.js} +1 -1
  158. package/dist/web/assets/{person-profile-BqVCNO5v.js → person-profile-DvCj-51r.js} +1 -1
  159. package/dist/web/assets/{popover-CVrL5Qm8.js → popover-BXPPZqzX.js} +1 -1
  160. package/dist/web/assets/popup-host-Dib21BfM.js +1 -0
  161. package/dist/web/assets/{preference-conflicts-D61VWIBA.js → preference-conflicts-B7wzi4wF.js} +1 -1
  162. package/dist/web/assets/profile-model-BNboCMX6.js +1 -0
  163. package/dist/web/assets/{project-board-layout-CghqkCsy.js → project-board-layout-BRKAN9I4.js} +1 -1
  164. package/dist/web/assets/{project-capture-B7381dgl.js → project-capture-D7b-lL9n.js} +1 -1
  165. package/dist/web/assets/{project-origin-pSz6sKdw.js → project-origin--TOvgLtz.js} +1 -1
  166. package/dist/web/assets/{quick-edit-api-Cg3RECVu.js → quick-edit-api-BJ7Sc1A9.js} +1 -1
  167. package/dist/web/assets/{radio-group-DONBO2nI.js → radio-group-Yf8AOhYN.js} +1 -1
  168. package/dist/web/assets/{review-api-BxAsqJTp.js → review-api-NH2tbymc.js} +1 -1
  169. package/dist/web/assets/{review-list-SiPjO-AM.js → review-list-mVJ2Fpq7.js} +1 -1
  170. package/dist/web/assets/{review-store-BMdysfoC.js → review-store-BLlMfs2O.js} +1 -1
  171. package/dist/web/assets/{role-names-CmWaAZj9.js → role-names-BYQ6Ejew.js} +1 -1
  172. package/dist/web/assets/{roundtable-live-C9-QTRfe.js → roundtable-live-CR0oX3WO.js} +1 -1
  173. package/dist/web/assets/{runtime-dom.esm-bundler-BHgO62c_.js → runtime-dom.esm-bundler-KYUj_0oy.js} +1 -1
  174. package/dist/web/assets/{select-DBAH2q43.js → select-pNF6h6qI.js} +1 -1
  175. package/dist/web/assets/{session-launch-offers-B-cO34V2.js → session-launch-offers-BTllWzUC.js} +1 -1
  176. package/dist/web/assets/{settings-autosave-gAp-_C5E.js → settings-autosave-DyOdfJxq.js} +1 -1
  177. package/dist/web/assets/settings-tabs-CkbYPvea.js +1 -0
  178. package/dist/web/assets/{shared-report-DNZVm0ej.js → shared-report-DQkPNPXT.js} +3 -3
  179. package/dist/web/assets/{source-adapters-Cpn6XvAt.js → source-adapters-DWeqGlv1.js} +1 -1
  180. package/dist/web/assets/{switch-CvARV2vi.js → switch-BvmWnWvB.js} +1 -1
  181. package/dist/web/assets/{tabs-BgblPz6T.js → tabs-0_-pA86a.js} +1 -1
  182. package/dist/web/assets/{task-card-fields-S2gpajHG.js → task-card-fields-DwubByG0.js} +1 -1
  183. package/dist/web/assets/{task-labels-CYiztobh.js → task-labels-CN2HuRqR.js} +1 -1
  184. package/dist/web/assets/{task-reason-CUZHkfvp.js → task-reason-KI4bNRpp.js} +1 -1
  185. package/dist/web/assets/{team-sheets-Cb5eJek1.js → team-sheets-fOIhyrB4.js} +1 -1
  186. package/dist/web/assets/{textarea-D1Tkf6oR.js → textarea-CmNV5bwv.js} +1 -1
  187. package/dist/web/assets/{ui-BuGrLVDn.js → ui-BeOaiL_A.js} +1 -1
  188. package/dist/web/assets/{useAgentRecords-yoE1yF8S.js → useAgentRecords-D4Ugm9rW.js} +1 -1
  189. package/dist/web/assets/{useAgentWorkSummary-j17h_Ka4.js → useAgentWorkSummary-DvUTEZw5.js} +1 -1
  190. package/dist/web/assets/{useApi-CROJJdhE-D6pry1QV.js → useApi-CROJJdhE-CSF8LJLr.js} +1 -1
  191. package/dist/web/assets/{useClipboardCopy-CGzzjCDy.js → useClipboardCopy-O9-rbEx_.js} +1 -1
  192. package/dist/web/assets/{useFocusReturn-Ba_RIwc9.js → useFocusReturn-BE8B69VE.js} +1 -1
  193. package/dist/web/assets/useFormControl-CzEMn4gU.js +1 -0
  194. package/dist/web/assets/{useForwardExpose-D2ZwqP--.js → useForwardExpose-BGcyhq2E.js} +1 -1
  195. package/dist/web/assets/{useForwardPropsEmits-B_TlGceH.js → useForwardPropsEmits-D9U18v-C.js} +1 -1
  196. package/dist/web/assets/useForwardScopeId-D_7eH0Y1.js +1 -0
  197. package/dist/web/assets/{useKnowledgeConfirm-BxCF2JhH.js → useKnowledgeConfirm-ClYKOaTx.js} +1 -1
  198. package/dist/web/assets/{useKnowledgeItemPeek-D6MLIXB8.js → useKnowledgeItemPeek-CubZmvZv.js} +1 -1
  199. package/dist/web/assets/{useListPages-DYhvR900.js → useListPages-BrDUJlfX.js} +1 -1
  200. package/dist/web/assets/{useMinimumLoadingDisplay-DvMlC-0C.js → useMinimumLoadingDisplay-8UJsD3Tu.js} +1 -1
  201. package/dist/web/assets/{useNow-Bb3HaAKz.js → useNow-Vmb6v8i_.js} +1 -1
  202. package/dist/web/assets/{usePageTools-fNLnKzBV.js → usePageTools-CNhXN947.js} +1 -1
  203. package/dist/web/assets/usePrimitiveElement-B1twpLbS.js +1 -0
  204. package/dist/web/assets/{useProjectAgentRoster-CbXX3jbP.js → useProjectAgentRoster-GT6oVfSp.js} +1 -1
  205. package/dist/web/assets/{useRoutePeek-DLAVFY_C.js → useRoutePeek-DoN7BxDJ.js} +1 -1
  206. package/dist/web/assets/{useTeamWork-fVzv-gMe.js → useTeamWork-D15ytrFD.js} +1 -1
  207. package/dist/web/assets/{useTypeahead-Ces9iTDN.js → useTypeahead-HUfOxVR_.js} +1 -1
  208. package/dist/web/assets/{useVisitAwaiting-CJvXt5LU.js → useVisitAwaiting-CmqtjpIE.js} +1 -1
  209. package/dist/web/assets/{utils-D-zTPKuT.js → utils-B-zi0mpE.js} +1 -1
  210. package/dist/web/assets/{utils-DmCHG_y9.js → utils-B6gAPcyi.js} +1 -1
  211. package/dist/web/assets/{verification-H0MHrum7.js → verification-Cv4Wo6E9.js} +1 -1
  212. package/dist/web/assets/{version-DljnX5v1.js → version-BSosoSQY.js} +1 -1
  213. package/dist/web/assets/{vue-router-BzACvo8M.js → vue-router-DvV79UrI.js} +1 -1
  214. package/dist/web/index.html +78 -78
  215. package/docs/agent-roundtable.md +6 -1
  216. package/docs/client-connections.md +34 -13
  217. package/docs/employee-agents.md +6 -4
  218. package/docs/judgment-and-autonomy.md +2 -2
  219. package/graph-provider/fuli_graph/agent_conversation_models.py +2 -0
  220. package/graph-provider/fuli_graph/app.py +2 -0
  221. package/graph-provider/fuli_graph/fixed_roles.py +26 -0
  222. package/graph-provider/fuli_graph/graph_field_contract.py +1 -1
  223. package/graph-provider/fuli_graph/graph_format_migrations.py +6 -0
  224. package/graph-provider/fuli_graph/knowledge_statement_items.py +95 -0
  225. package/graph-provider/fuli_graph/occupation_catalog.py +8 -2
  226. package/graph-provider/fuli_graph/project_agent_coordination_models.py +6 -2
  227. package/graph-provider/fuli_graph/project_agent_task_models.py +3 -0
  228. package/graph-provider/fuli_graph/store_agent_conversations.py +11 -5
  229. package/graph-provider/fuli_graph/store_project_agent_attention.py +8 -1
  230. package/graph-provider/fuli_graph/store_project_agent_coordination_policy.py +13 -4
  231. package/graph-provider/fuli_graph/store_project_agent_dismissal.py +2 -0
  232. package/graph-provider/fuli_graph/store_project_agent_executors.py +4 -0
  233. package/graph-provider/fuli_graph/store_project_agent_task_staffing.py +52 -14
  234. package/graph-provider/fuli_graph/store_project_agent_tasks.py +5 -2
  235. package/graph-provider/fuli_graph/store_project_agents.py +5 -5
  236. package/graph-provider/fuli_graph/store_task_contexts.py +23 -1
  237. package/graph-provider/fuli_graph/system_agents.py +17 -9
  238. package/graph-provider/fuli_graph/task_context_routes.py +10 -1
  239. package/graph-provider/pyproject.toml +1 -1
  240. package/native/win32/fuli-win-helper.exe +0 -0
  241. package/npm-shrinkwrap.json +2 -2
  242. package/package.json +1 -1
  243. package/packages/roundtable/src/peer/control-cli.js +2 -1
  244. package/packages/roundtable/src/peer/peer-runtime.js +212 -67
  245. package/skills/capturing-session-knowledge/references/coordination.md +11 -4
  246. package/skills/operating-fuli/SKILL.md +7 -4
  247. package/skills/operating-fuli/references/workflow-recipes.md +2 -1
  248. package/src/agent-kits/client-detection.js +20 -12
  249. package/src/agent-kits/custom-clients.js +24 -7
  250. package/src/agent-tools/agent-conversation-definitions.js +2 -1
  251. package/src/agent-tools/interface-catalog.js +6 -4
  252. package/src/desktop-glance/glance.js +90 -0
  253. package/src/employees/builtin/jefa/board-store.js +15 -0
  254. package/src/employees/builtin/jefa/tools.js +29 -2
  255. package/src/employees/fixed-roles.js +25 -0
  256. package/src/employees/management-policy.js +3 -2
  257. package/src/employees/manifest.js +0 -3
  258. package/src/employees/recruitment.js +10 -6
  259. package/src/employees/service.js +12 -1
  260. package/src/graphiti/agent-collaboration.js +1 -1
  261. package/src/graphiti/agent-conversations.js +1 -0
  262. package/src/graphiti/assistant-project-candidate.js +2 -1
  263. package/src/graphiti/conversation-triage.js +6 -3
  264. package/src/graphiti/fla-picker.js +5 -7
  265. package/src/graphiti/jefa-board-match.js +2 -1
  266. package/src/graphiti/project-agent-mapping.js +4 -3
  267. package/src/graphiti/project-team-view.js +7 -2
  268. package/src/graphiti/provider-client.js +4 -0
  269. package/src/graphiti/task-entry-group-discussion.js +1 -1
  270. package/src/graphiti/task-entry-named-fla.js +2 -2
  271. package/src/graphiti/task-entry-preferences.js +2 -2
  272. package/src/graphiti/task-entry-project-scope.js +1 -1
  273. package/src/graphiti/topic-proposals.js +10 -9
  274. package/src/graphiti/topic-team-handoff.js +22 -45
  275. package/src/http/api-router.js +6 -2
  276. package/src/http/desktop-glance-api-router.js +16 -0
  277. package/src/http/statement-api-router.js +24 -3
  278. package/src/judgment/acceptance.js +12 -4
  279. package/src/judgment/backend.js +5 -0
  280. package/src/judgment/engine.js +21 -13
  281. package/src/judgment/question-tools.js +2 -3
  282. package/src/judgment/review-delegation.js +32 -8
  283. package/src/judgment/store.js +2 -1
  284. package/src/knowledge-impressions/store.js +23 -0
  285. package/src/knowledge-owner-reads/console-port.js +2 -1
  286. package/src/model-backends/budget.js +6 -1
  287. package/src/model-backends/failures.js +2 -0
  288. package/src/model-backends/http.js +12 -6
  289. package/src/model-backends/port.js +15 -6
  290. package/src/model-backends/request.js +4 -2
  291. package/src/model-backends/role-trust.js +33 -12
  292. package/src/model-backends/usage-ledger.js +15 -5
  293. package/src/old-data/guarded-stores.js +7 -2
  294. package/src/presence/windows-helper-pin.js +1 -1
  295. package/src/semantic/semantic-index.js +5 -4
  296. package/src/statement/detail-lists.js +33 -0
  297. package/src/system/client-connection-install.js +19 -9
  298. package/src/system/client-connection-status.js +1 -1
  299. package/src/system/custom-client-connection.js +15 -3
  300. package/src/system/system-service.js +1 -1
  301. package/src/whats-new/lines/0.27.14.json +15 -0
  302. package/src/whats-new/lines/0.27.15.json +13 -0
  303. package/dist/web/assets/EmployeeWorkbench-CqQ1GzZ5.js +0 -4
  304. package/dist/web/assets/FieldRoot-BjgS2fK-.js +0 -1
  305. package/dist/web/assets/HabitDeliveryPage-C6XDiEFn.js +0 -1
  306. package/dist/web/assets/KnowledgePage-Bc8s9asZ.js +0 -1
  307. package/dist/web/assets/PersonalProfilePage-dU9CmgH9.js +0 -1
  308. package/dist/web/assets/PersonalProjectsPage-BPSkUIhN.js +0 -1
  309. package/dist/web/assets/SettingsPage-BYbWO9wW.css +0 -1
  310. package/dist/web/assets/SettingsPage-CoyQF5YK.js +0 -1
  311. package/dist/web/assets/StatementRows-CdjZOdM5.js +0 -1
  312. package/dist/web/assets/TodayPage-CEnhprna.css +0 -1
  313. package/dist/web/assets/TodayPage-DY-7WZxJ.js +0 -1
  314. package/dist/web/assets/TonborgDelegationSwitch-BFb1JkWe.css +0 -1
  315. package/dist/web/assets/TonborgDelegationSwitch-BqOktR_J.js +0 -1
  316. package/dist/web/assets/UiDialog-D6yOswbW.js +0 -1
  317. package/dist/web/assets/WidgetSlot-B7yxgCiE.js +0 -2
  318. package/dist/web/assets/_plugin-vue_export-helper-BeJUwGpT.js +0 -9
  319. package/dist/web/assets/agent-occupation-C2t2vBpF.js +0 -1
  320. package/dist/web/assets/index-BV-ANqFp.js +0 -24
  321. package/dist/web/assets/label-table-fMpO7h0Z.js +0 -1
  322. package/dist/web/assets/popup-host-CiquKYlb.js +0 -1
  323. package/dist/web/assets/profile-model-C5a75PQ8.js +0 -1
  324. package/dist/web/assets/settings-tabs-Dl_s4RZD.js +0 -1
  325. package/dist/web/assets/useFormControl-Za9FvfCV.js +0 -1
  326. package/dist/web/assets/useForwardScopeId-CJ9RK88K.js +0 -1
  327. package/dist/web/assets/usePrimitiveElement-BFgEzNcq.js +0 -1
  328. package/src/graphiti/assistant-identity.js +0 -2
@@ -1,9 +1,8 @@
1
1
  import { nativeChoiceInteraction } from '../conversations/human-interaction.js';
2
- import { FIXED_EMPLOYEE_AGENT_TYPES, employeeAgentId, employeeCapability } from '../employees/manifest.js';
2
+ import { ASSISTANT_AGENT_ID, FIXED_ROLES, TONBORG_AGENT_ID } from '../employees/fixed-roles.js';
3
3
  import { identityKey } from '../text/name-identity.js';
4
4
  import { termIndex } from '../standing-assignments/term-match.js';
5
5
  import { agentUnavailableReason } from './agent-availability.js';
6
- import { ASSISTANT_AGENT_ID } from './assistant-identity.js';
7
6
  import { isPeerRoleAgent } from './project-team-view.js';
8
7
  import { projectDisplayName } from './task-entry-project-mention.js';
9
8
 
@@ -20,7 +19,7 @@ import { projectDisplayName } from './task-entry-project-mention.js';
20
19
  const PICKER_OPTIONS = 4;
21
20
  const GLOBAL_PROJECT = '全局';
22
21
  // Built-in roles that also work without a project (roleCandidates).
23
- const SPACE_ROLES = new Set([employeeAgentId('tonborg')]);
22
+ const SPACE_ROLES = new Set([TONBORG_AGENT_ID]);
24
23
  // Management peers, AR and the assistant are FULI's own roles, and temporary
25
24
  // Agents belong to one task: none is an FLA a person continues by name.
26
25
  const NOT_PICKABLE_TYPES = new Set(['hr', 'temporary']);
@@ -38,8 +37,7 @@ const FUZZY = 2;
38
37
  // project (its global scope); undefined is one whose projects all ended.
39
38
  export function flaCandidates(roster, projects, personalSpaceId) {
40
39
  const named = new Map(projects.map(project => [project.project_id, project]));
41
- return inSpace(roster, personalSpaceId).filter(agent => agent.agent_id !== ASSISTANT_AGENT_ID
42
- && !NOT_PICKABLE_TYPES.has(agent.profile?.agent_type)
40
+ return inSpace(roster, personalSpaceId).filter(agent => !NOT_PICKABLE_TYPES.has(agent.profile?.agent_type)
43
41
  && !isPeerRoleAgent({ agentId: agent.agent_id, agentType: agent.profile?.agent_type,
44
42
  capabilities: agent.profile?.capabilities ?? [] }))
45
43
  .flatMap(agent => placements(agent, named).map(placement => candidate(agent, placement)));
@@ -68,8 +66,8 @@ function inSpace(roster, personalSpaceId) {
68
66
 
69
67
  // The Provider's own identity of a fixed role, not an Agent reusing its id.
70
68
  function isFixedRole(agent) {
71
- return Object.keys(FIXED_EMPLOYEE_AGENT_TYPES).some(id => agent.agent_id === employeeAgentId(id)
72
- && (agent.profile?.capabilities ?? []).includes(employeeCapability(id)));
69
+ return Object.values(FIXED_ROLES).some(role => agent.agent_id === role.agentId
70
+ && (agent.profile?.capabilities ?? []).includes(role.capability));
73
71
  }
74
72
 
75
73
  function placements(agent, named) {
@@ -22,6 +22,7 @@ export const JEFA_OPERATION = 'board_match';
22
22
  const OPERATION = JEFA_OPERATION;
23
23
  // One logical decision on the task-entry hot path, retry, repair and backoff
24
24
  // included; the port's shared deadline enforces it and aborts the request.
25
+ // It is sent as hotPath: a timeout under it is not the role's failure (rec#139).
25
26
  const HOT_PATH_TIMEOUT_MS = 3000;
26
27
  const PROMPT_OPENING_CHARS = 600;
27
28
  const SUMMARY_CHARS = 240;
@@ -144,7 +145,7 @@ function matchRequest(task, personalSpaceId, taskPrompt, listed) {
144
145
  requestId: `${OPERATION}:${contentHash({ scope, evidenceVersion, promptVersion: PROMPT_VERSION })}`,
145
146
  scope, versions: { evidence: evidenceVersion, policy: PROMPT_VERSION }, instructions: INSTRUCTIONS, evidence,
146
147
  output: { type: 'choice', options: [...ids.map(id => ({ id, description: `The task continues the board task in evidence ${id}.` })), NONE_OPTION] },
147
- decisions: ['propose'], budget: { timeoutMs: HOT_PATH_TIMEOUT_MS }
148
+ decisions: ['propose'], budget: { timeoutMs: HOT_PATH_TIMEOUT_MS, hotPath: true }
148
149
  };
149
150
  }
150
151
 
@@ -852,7 +852,7 @@ export function projectAgentCoordinationPolicyRecord(value = {}) {
852
852
  return {
853
853
  personalSpaceId: value.personal_space_id,
854
854
  personalProjectId: value.personal_project_id,
855
- askBeforeRecruitment: value.ask_before_recruitment ?? true,
855
+ askBeforeRecruitment: value.ask_before_recruitment ?? false,
856
856
  autoReusePreviousAgent: value.auto_reuse_previous_agent ?? true,
857
857
  autoGrowTeam: value.auto_grow_team ?? true,
858
858
  teamLeadAgentId: value.team_lead_agent_id ?? null,
@@ -868,8 +868,9 @@ export function providerProjectAgentCoordinationPolicy(input) {
868
868
  return {
869
869
  personal_space_id: input.personalSpaceId ?? input.personal_space_id,
870
870
  personal_project_id: input.personalProjectId ?? input.personal_project_id,
871
- ask_before_recruitment:
872
- input.askBeforeRecruitment ?? input.ask_before_recruitment ?? true,
871
+ // Stated only when the caller stated it: the Provider keeps the stored switch otherwise.
872
+ ...((input.askBeforeRecruitment ?? input.ask_before_recruitment) == null
873
+ ? {} : { ask_before_recruitment: input.askBeforeRecruitment ?? input.ask_before_recruitment }),
873
874
  auto_reuse_previous_agent:
874
875
  input.autoReusePreviousAgent ?? input.auto_reuse_previous_agent ?? true,
875
876
  ...(Object.hasOwn(input, 'autoGrowTeam') || Object.hasOwn(input, 'auto_grow_team')
@@ -1,9 +1,14 @@
1
+ import { FIXED_ROLES } from '../employees/fixed-roles.js';
2
+
1
3
  // One authoritative reading of a project's people. The coordination policy
2
4
  // owns the explicit hierarchy; active assignments decide who currently works
3
5
  // on the exact project. Assigned Agents outside the explicit team are shown as
4
6
  // collaborators and peer roles stay peers, never converted into direct reports.
5
- const PEER_AGENT_IDS = new Set(['employee.jefa', 'employee.bole', 'employee.tonborg', 'fuli-project-hr']);
6
- const PEER_CAPABILITIES = new Set(['fuli.employee:jefa', 'fuli.employee:bole', 'fuli.employee:tonborg']);
7
+ // FULI's own roles are peers of a project team, never its members.
8
+ const PEER_ROLES = Object.values(FIXED_ROLES);
9
+ // 'fuli-project-hr' is the AR identity from before Bole.
10
+ const PEER_AGENT_IDS = new Set([...PEER_ROLES.map(role => role.agentId), 'fuli-project-hr']);
11
+ const PEER_CAPABILITIES = new Set(PEER_ROLES.map(role => role.capability));
7
12
 
8
13
  export function isPeerRoleAgent({ agentId, agentType, capabilities = [] }) {
9
14
  return PEER_AGENT_IDS.has(agentId) || agentType === 'hr'
@@ -255,6 +255,10 @@ export class GraphitiProviderClient {
255
255
  if (personalProjectId) query.set('personal_project_id', personalProjectId);
256
256
  return this.#request(`/v1/task-context-sessions/recent?${query}`);
257
257
  }
258
+ // Each Agent that began a task since then, the latest first, and whether one is under way.
259
+ recentWorkingAgents({ personalSpaceId, since }) {
260
+ return this.#request(`/v1/task-context-agents/recent?${new URLSearchParams({ personal_space_id: personalSpaceId, since })}`);
261
+ }
258
262
  staffDefaultProjectLead(input) {
259
263
  return this.#request('/v1/project-agent-context/default-lead', { method: 'POST', body: input });
260
264
  }
@@ -8,7 +8,7 @@ import { hostInternalActivity } from './task-entry-activity-origin.js';
8
8
  import { markerField as field, markerValue as unfield } from './task-agent-assignment.js';
9
9
  import { WAKE_CLIENTS } from '../../packages/roundtable/src/agents/wake-registry.js';
10
10
  import { DEFAULT_ROUND_LIMIT } from '../../packages/roundtable/src/roundtable/group-discussion.js';
11
- import { ASSISTANT_AGENT_ID } from './assistant-identity.js';
11
+ import { ASSISTANT_AGENT_ID } from '../employees/fixed-roles.js';
12
12
 
13
13
  // `#FLG …` (Fuli Agents Group, rec#55): the person invites several of their
14
14
  // FLAs to discuss a question in this chat. The entry only prepares it:
@@ -7,7 +7,7 @@ import { hostInternalActivity } from './task-entry-activity-origin.js';
7
7
  import { nameableProjects } from './task-entry-project-mention.js';
8
8
  import { sessionMarkers, sessionTaskContext } from './task-entry-standing-owner.js';
9
9
  import { agentUnavailableReason } from './agent-availability.js';
10
- import { employeeAgentId } from '../employees/manifest.js';
10
+ import { TONBORG_AGENT_ID } from '../employees/fixed-roles.js';
11
11
  import { TONBORG_EXPLAIN_METHOD } from '../judgment/explain-method.js';
12
12
  import { markerField as field, markerValue as unfield } from './task-agent-assignment.js';
13
13
 
@@ -40,7 +40,7 @@ const CONTINUE_GUIDANCE = 'The person named this FLA to continue its own work in
40
40
  + 'resume_agent_conversation before acting; otherwise find its conversation with list_agent_conversations. If the '
41
41
  + 'task to continue is unclear, ask. Later turns stay with this FLA until the person names another or says #FLA 结束.';
42
42
  // What a built-in role does when named, beyond continuing: Tonborg goes through its questions (explain-method.js).
43
- const ROLE_GUIDANCE = Object.freeze({ [employeeAgentId('tonborg')]: TONBORG_EXPLAIN_METHOD });
43
+ const ROLE_GUIDANCE = Object.freeze({ [TONBORG_AGENT_ID]: TONBORG_EXPLAIN_METHOD });
44
44
  const UNAVAILABLE_GUIDANCE = 'Tell the person this notice and do no task work: do not act as, or claim the context '
45
45
  + 'of, another FLA. They can name another FLA, pick one with #FLA, or end the binding with #FLA 结束.';
46
46
  const CHOOSE_GUIDANCE = 'Ask this now with the host native single-choice UI (a numbered list where there is none), '
@@ -8,7 +8,7 @@ import { applyAgentAssignment, unassignedMarkers } from './task-agent-assignment
8
8
  import { triageCandidates } from './conversation-triage.js';
9
9
  import { withProjectCandidate } from './assistant-project-candidate.js';
10
10
  import { withBoardMatch } from './jefa-board-match.js';
11
- import { ASSISTANT_AGENT_ID } from './assistant-identity.js';
11
+ import { ASSISTANT_AGENT_ID, TONBORG_AGENT_ID } from '../employees/fixed-roles.js';
12
12
  import { ATTENTION_REPLIES_GUIDANCE } from '../../packages/roundtable/src/roundtable/attention-inbox.js';
13
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';
@@ -255,7 +255,7 @@ export const AUTO_JUDGMENT_GUIDANCE = 'Before choosing a new subagent, session,
255
255
  export async function taskJudgmentContext(application, personalProjectId) {
256
256
  const judgmentPolicy = await application.judgment?.policy({ personalSpaceId: application.config.personal.spaceId,
257
257
  personalProjectId: personalProjectId ?? null });
258
- return judgmentPolicy ? { agentId: 'employee.tonborg', policy: judgmentPolicy,
258
+ return judgmentPolicy ? { agentId: TONBORG_AGENT_ID, policy: judgmentPolicy,
259
259
  guidance: judgmentPolicy.mode === 'manual'
260
260
  ? 'Tonborg is available for advice via assess_agent_action; retain human review.'
261
261
  : AUTO_JUDGMENT_GUIDANCE } : null;
@@ -5,7 +5,7 @@ import { sessionTaskContext, withStandingOwner } from './task-entry-standing-own
5
5
  import { namedFlaRequest, namedFlaResolution, namedFlaTask } from './task-entry-named-fla.js';
6
6
  import { groupDiscussionRequest } from './task-entry-group-discussion.js';
7
7
  import { addressedAgentId } from './fla-mention.js';
8
- import { ASSISTANT_AGENT_ID } from './assistant-identity.js';
8
+ import { ASSISTANT_AGENT_ID } from '../employees/fixed-roles.js';
9
9
  import { sessionOwnerOf } from './task-entry-owner-change.js';
10
10
  import { REMOTE_CONFLICT } from './agent-project-resolution.js';
11
11
 
@@ -1,4 +1,5 @@
1
1
  import { receiptConsoleUrl } from '../agents/identity-receipt.js';
2
+ import { ASSISTANT_AGENT_ID } from '../employees/fixed-roles.js';
2
3
  import { createProjectNamed, projectByName } from './task-entry-project-mention.js';
3
4
  import { PERSON_WRITER, UNNAMED_AGENT_WRITER } from './project-profile-authors.js';
4
5
  import { sourceConsoleUrl } from './source-marker.js';
@@ -14,8 +15,8 @@ import { markdownLink } from '../text/markdown-link.js';
14
15
  // triage counts; no model is called. Forming also moves what the topic's
15
16
  // sessions held in their temporary projects into it, and an undo moves back
16
17
  // 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).
18
+ // Astro hands the topic over to the project's lead as a task of its own
19
+ // (topic-team-handoff.js); Bole hires anyone else when a task needs them.
19
20
  export const PROPOSAL_MIN_CONVERSATIONS = 3;
20
21
  const PROPOSAL_MIN_DAYS = 2;
21
22
  const PROPOSAL_ASK_AGAIN_AFTER = 3;
@@ -39,7 +40,7 @@ export async function proposalForTopic(application, topic) {
39
40
  const [stats] = await topics(application, { topic, limit: 1 });
40
41
  if (!isProposable(stats) || (stats.count - (stats.declined_count ?? 0)) % PROPOSAL_ASK_AGAIN_AFTER !== 0) return null;
41
42
  const url = `${application.consoleUrl ?? sourceConsoleUrl(null)}/employees/assistant`;
42
- return { status: 'ask_user', proposed_by: 'employee.assistant', ...proposalView(stats), console_url: url,
43
+ return { status: 'ask_user', proposed_by: ASSISTANT_AGENT_ID, ...proposalView(stats), console_url: url,
43
44
  ask_user: `「${stats.topic}」已经聊了 ${stats.count} 次、跨 ${stats.days} 天,还没成立项目。`
44
45
  + `要为它成立项目、招人长期维护吗?请在 FULI 控制台决定:${url}`,
45
46
  guidance: 'Add ask_user to the end of your reply. Only the person decides, in the console; never form the project yourself.' };
@@ -64,7 +65,7 @@ async function promoteTopic(application, topic, { sourceApplication = 'other' }
64
65
  const formed = await formTopicProject(application, stats, existing, reason, sourceApplication);
65
66
  const link = `${receiptConsoleUrl(application)}/employees/assistant?${new URLSearchParams({
66
67
  promoted: formed.personal_project_id, topic: stats.topic })}`;
67
- return { ...formed, status: 'promoted', proposed_by: 'employee.assistant',
68
+ return { ...formed, status: 'promoted', proposed_by: ASSISTANT_AGENT_ID,
68
69
  notice: `FULI:话题「${stats.topic}」聊了 ${stats.count} 次、跨 ${stats.days} 天,已升级为项目「${stats.topic}」`
69
70
  + `${formed.knowledge_moved ? `,搬了 ${formed.knowledge_moved} 条知识` : ''}${teamNotice(formed.team)}。`
70
71
  + `${markdownLink('改名、换上级或撤销', link)}`,
@@ -74,20 +75,20 @@ async function promoteTopic(application, topic, { sourceApplication = 'other' }
74
75
  ? ' Then ask start_question with the native choice of the host; only the person answers it.' : '') };
75
76
  }
76
77
 
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.
78
+ // Whether the lead starts now is the person's call at that moment (Jevons
79
+ // 11-11): one click, with 其他 for their own words. The handover is a
80
+ // backlog task, so "yes" is setting it to queued.
80
81
  function startQuestion(formed) {
81
82
  // Only a task waiting in the backlog can be started; a blocked one says why in the task itself.
82
83
  const tasks = (formed.team?.handoffs ?? []).filter(item => item.task_id && item.status === 'backlog').map(item => item.task_id);
83
84
  if (!tasks.length) return {};
84
- return { start_question: { ask: `「${formed.topic}」的团队现在就开工吗?`, options: ['马上开工', '先不'], allow_other: true,
85
+ return { start_question: { ask: `「${formed.topic}」的负责人现在就开工吗?`, options: ['马上开工', '先不'], allow_other: true,
85
86
  on_yes: { tool: 'record_project_agent_task_activity', status: 'queued', summary: '你说马上开工',
86
87
  personal_project_id: formed.personal_project_id, task_ids: tasks } } };
87
88
  }
88
89
 
89
90
  // 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
+ // open conversation of the topic attached, and the lead briefed.
91
92
  // People can rename, merge or split it afterwards.
92
93
  export async function acceptTopicProposal(application, { topic, sourceApplication = 'other' }) {
93
94
  const stats = await openTopic(application, topic);
@@ -1,33 +1,25 @@
1
- import { ASSISTANT_AGENT_ID } from './assistant-identity.js';
1
+ import { ASSISTANT_AGENT_ID } from '../employees/fixed-roles.js';
2
2
  import { sha256Bytes } from '../security/digest.js';
3
3
  import { singleLine } from '../text/single-line.js';
4
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
- ]);
5
+ // When a topic grows into a project (topic-proposals.js), Astro hands the
6
+ // work over to the project's lead, and to nobody else: a new project starts
7
+ // with its lead alone (Jevons 11-17, replacing the first team of 11-11).
8
+ // Whoever else it needs is hired by Bole when a task finds nobody for it, and
9
+ // that hire asks no confirmation in a project Astro formed (rec#11 D-84). The
10
+ // handover is a task of the lead's own, assigned and not started, carrying
11
+ // the brief: an index (dates and one-line outcomes of the topic's
12
+ // conversations, how much knowledge moved); bodies stay where they are and are
13
+ // read on demand. Nothing here calls a model, and nothing here can undo the
14
+ // formation: a step that fails is reported.
23
15
  const BRIEF_CONVERSATIONS = 8;
24
16
  const OUTCOME_CHARS = 120;
25
17
  const TOPIC_CHARS = 60;
26
18
  const CONVERSATION_PAGE = 50;
27
19
 
28
20
  // 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.
21
+ // knowledgeMoved from what it attached. Returns what the lead was handed, for
22
+ // the notice and the console.
31
23
  export async function staffTopicTeam(application, { topic, projectId, lead, created, conversationIds, knowledgeMoved,
32
24
  sourceApplication = 'other' }) {
33
25
  const spaceId = application.config.personal.spaceId;
@@ -48,29 +40,19 @@ export async function staffTopicTeam(application, { topic, projectId, lead, crea
48
40
  const handoffs = [await submit('lead', { lead_agent_id: lead.agent_id, staffing_intent: 'reuse_preferred',
49
41
  work_kind: 'project_context', title: `接手「${name}」`, objective: brief,
50
42
  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
- }
43
+ // A project that already had people keeps its own recruitment setting.
44
+ if (created) await hireWithoutAsking(application, spaceId, projectId);
62
45
  return { handoffs, conversations: conversationIds.length, knowledge: knowledgeMoved };
63
46
  }
64
47
 
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) {
48
+ // A project Astro just formed lets Bole hire without a confirmation each
49
+ // (rec#11 D-84); the person can turn asking back on in the project's
50
+ // settings. A policy that could not be saved leaves the project asking.
51
+ async function hireWithoutAsking(application, spaceId, projectId) {
69
52
  try {
70
53
  await application.personal.updateProjectAgentCoordinationPolicy({ personal_space_id: spaceId,
71
54
  personal_project_id: projectId, ask_before_recruitment: false });
72
- return true;
73
- } catch { return false; }
55
+ } catch { /* the project keeps asking before each hire */ }
74
56
  }
75
57
 
76
58
  function handed(position, route) {
@@ -110,12 +92,7 @@ function handoffBrief(topic, conversations, conversationCount, knowledgeMoved) {
110
92
  ].join('\n');
111
93
  }
112
94
 
113
- // One sentence for the receipt: who Bole hired and what Astro handed over.
95
+ // For the receipt: that Astro handed the topic over, once the lead has the task.
114
96
  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} 人` : ''}`;
97
+ return team?.handoffs.some(item => item.task_id) ? ',Astro 已交接给负责人' : '';
121
98
  }
@@ -10,6 +10,7 @@ import { handleNpmCopiesRequest } from './npm-copies-api-router.js';
10
10
  import { handleCliPathRequest } from './cli-path-api-router.js';
11
11
  import { handleWhatsNewRequest } from './whats-new-api-router.js';
12
12
  import { handleDesktopClientRequest } from './desktop-client-api-router.js';
13
+ import { handleDesktopGlanceRequest } from './desktop-glance-api-router.js';
13
14
  import { handleDiagnosticsApiRequest } from './diagnostics-api-router.js';
14
15
  import { handleOldDataRequest } from './old-data-api-router.js';
15
16
  import { handleOccupationPluginsRequest } from './occupation-plugins-api-router.js';
@@ -43,6 +44,7 @@ import { handleModelBackendApiRequest } from '../model-backends/http.js';
43
44
  import { handleModelKeyRequest } from '../model-backends/keys-http.js';
44
45
  import { handleModelListRequest } from '../model-backends/models-http.js';
45
46
  import { TONBORG_OPERATIONS } from '../judgment/backend.js';
47
+ import { reviewHandedOver } from '../judgment/review-delegation.js';
46
48
  import { ASTRO_OPERATION } from '../graphiti/assistant-project-candidate.js';
47
49
  import { DREAMING_OPERATION } from '../dreaming/run.js';
48
50
  import { handleDreamingRequest } from './dreaming-api-router.js';
@@ -100,6 +102,7 @@ export async function handleApiRequest({
100
102
  roleSettings: modelRoleSettings, operations: { assistant: [ASTRO_OPERATION, DREAMING_OPERATION, RETRIEVAL_TERMS_OPERATION], jefa: [JEFA_OPERATION], tonborg: Object.values(TONBORG_OPERATIONS),
101
103
  semantic: [KNOWLEDGE_EMBEDDING_OPERATION] },
102
104
  automaticOperations: { tonborg: TONBORG_OPERATIONS.review }, modelTrust: app.modelTrust ?? null,
105
+ handedOver: { tonborg: () => reviewHandedOver(app.judgment, app.config?.personal?.spaceId ?? null) },
103
106
  settingsHistory: app.modelSettingsHistory ?? null, readEvaluation: readModelEvaluation,
104
107
  ownerReads: knowledgeOwnerReads, personalSpaceId: app.config?.personal?.spaceId ?? null });
105
108
  // The suggestion log's owner proof is confirmed with the Provider, so that
@@ -170,7 +173,7 @@ export async function handleApiRequest({
170
173
  }
171
174
  sendJson(response, 200, request.method === 'POST'
172
175
  ? await system.addCustomClient(await readJson(request))
173
- : system.removeCustomClient(customClient[1]));
176
+ : await system.removeCustomClient(customClient[1]));
174
177
  return true;
175
178
  }
176
179
 
@@ -244,7 +247,7 @@ export async function handleApiRequest({
244
247
  if (await handleOccupationPluginsRequest({ request, response, url, app })) return true;
245
248
  if (await handleDreamingRequest({ request, response, url, app, ownerReads: knowledgeOwnerReads })) return true;
246
249
  if (await handleNoticesRequest({ request, response, url, app, delegation: agentDelegation, system })) return true;
247
- if (await handleStatementRequest({ request, response, url, app })) return true;
250
+ if (await handleStatementRequest({ request, response, url, app, ownerReads: knowledgeOwnerReads })) return true;
248
251
  if (await handleRetrospectivesRequest({ request, response, url, app })) return true;
249
252
  if (await handleSemanticRequest({ request, response, url, app, indexer: app.semanticIndexer ?? null })) return true;
250
253
  if (await handleEmbeddingModelsRequest({ request, response, url, embeddingModels: app.embeddingModels ?? null })) return true;
@@ -318,6 +321,7 @@ export async function handleApiRequest({
318
321
  await handleAgentWorkflowsRequest({ request, response, url, app }) ||
319
322
  await handleAgentAvatarsRequest({ request, response, url, app }) ||
320
323
  await handleWorkSurfacesRequest({ request, response, url, app }) ||
324
+ await handleDesktopGlanceRequest({ request, response, url, app }) ||
321
325
  await handleEmployeeApiRequest({ request, response, url, app }) ||
322
326
  await handleGraphApiRequest({ request, response, url, app, ownerReads: knowledgeOwnerReads });
323
327
  if (system?.withGraphRuntimeLease && (
@@ -0,0 +1,16 @@
1
+ import { desktopGlance } from '../desktop-glance/glance.js';
2
+ import { refuseRemoteDecision } from './request-policy.js';
3
+ import { sendJson } from './response.js';
4
+
5
+ // The few rows the desktop client's tray menu shows (src/desktop-glance/glance.js).
6
+ // Read only and only on this computer: it names assistants and what they work on.
7
+ const PATH = '/api/desktop/glance';
8
+
9
+ export async function handleDesktopGlanceRequest({ request, response, url, app }) {
10
+ if (url.pathname !== PATH) return false;
11
+ response.setHeader('Cache-Control', 'no-store');
12
+ if (refuseRemoteDecision(request, response, 'The desktop glance is read only on this computer')) return true;
13
+ if (request.method !== 'GET') { sendJson(response, 405, { error: 'Method not allowed' }); return true; }
14
+ sendJson(response, 200, await desktopGlance({ app }));
15
+ return true;
16
+ }
@@ -1,5 +1,7 @@
1
1
  import { InvalidInputError } from '../app/application-error.js';
2
2
  import { clientModelUsage, compoundingStatement, statementDays, statementDaysWindow, statementWindow } from '../statement/compounding-statement.js';
3
+ import { carriedTasks, learnedItems } from '../statement/detail-lists.js';
4
+ import { ownerReadsUnavailable } from './knowledge-item-api-router.js';
3
5
  import { refuseRemoteDecision } from './request-policy.js';
4
6
  import { sendJson } from './response.js';
5
7
 
@@ -7,13 +9,18 @@ import { sendJson } from './response.js';
7
9
  // this computer, like the workbench's notices: it counts what was done for
8
10
  // the person. from/to are the person's local week bounds the console computed;
9
11
  // /days takes a range of local days with the person's UTC offset; /usage the
10
- // clients and models the assistants worked with in from/to.
12
+ // clients and models the assistants worked with in from/to; /carried the
13
+ // conversations that carried habits and /learned the items captured and
14
+ // confirmed in from/to, the lists behind those numbers. /learned names every
15
+ // FLA's items, so it is read through ownerReads, the console's human-review port.
11
16
  const PATH = '/api/statement';
12
17
  const DAYS_PATH = '/api/statement/days';
13
18
  const USAGE_PATH = '/api/statement/usage';
14
- const PATHS = new Set([PATH, DAYS_PATH, USAGE_PATH]);
19
+ const CARRIED_PATH = '/api/statement/carried';
20
+ const LEARNED_PATH = '/api/statement/learned';
21
+ const PATHS = new Set([PATH, DAYS_PATH, USAGE_PATH, CARRIED_PATH, LEARNED_PATH]);
15
22
 
16
- export async function handleStatementRequest({ request, response, url, app }) {
23
+ export async function handleStatementRequest({ request, response, url, app, ownerReads = null }) {
17
24
  if (!PATHS.has(url.pathname)) return false;
18
25
  response.setHeader('Cache-Control', 'no-store');
19
26
  if (refuseRemoteDecision(request, response, 'The statement is read only on this computer')) return true;
@@ -27,6 +34,20 @@ export async function handleStatementRequest({ request, response, url, app }) {
27
34
  sendJson(response, 200, await clientModelUsage(app, statementWindow({ from: params.get('from'), to: params.get('to') })));
28
35
  return true;
29
36
  }
37
+ if (url.pathname === CARRIED_PATH) {
38
+ // The record of what task entries carried is this installation's own; without it there is no list, not an empty one.
39
+ if (!app.recallImpressions) {
40
+ sendJson(response, 503, { error: 'The conversations that carried habits are recorded only by a local FULI installation' });
41
+ return true;
42
+ }
43
+ sendJson(response, 200, carriedTasks(app, statementWindow({ from: params.get('from'), to: params.get('to') })));
44
+ return true;
45
+ }
46
+ if (url.pathname === LEARNED_PATH) {
47
+ if (!ownerReads) return ownerReadsUnavailable(response);
48
+ sendJson(response, 200, await learnedItems(app, ownerReads, statementWindow({ from: params.get('from'), to: params.get('to') })));
49
+ return true;
50
+ }
30
51
  if (params.has('weeks') && !/^\d{1,2}$/.test(params.get('weeks'))) throw new InvalidInputError('weeks must be a whole number of weeks');
31
52
  sendJson(response, 200, await compoundingStatement(app, statementWindow({ from: params.get('from'), to: params.get('to'),
32
53
  ...(params.has('weeks') ? { weeks: Number(params.get('weeks')) } : {}) })));
@@ -6,7 +6,7 @@ import { fingerprint } from './engine.js';
6
6
  import { VERDICT_FIELDS, verdictProperties } from './verdict-schema.js';
7
7
  import { objectSchema } from '../agent-tools/schema.js';
8
8
  import { jsonSchemaToZod } from '../mcp/tool-schema.js';
9
- import { failureProvenance, judgmentProvenance, pendingRecord, TONBORG_OPERATIONS } from './backend.js';
9
+ import { failureProvenance, judgmentProvenance, pendingRecord, sessionStandsIn, TONBORG_OPERATIONS } from './backend.js';
10
10
  import { PREFERENCE_RECEIPT_RULES, preferenceDeliveryRecord, preferenceHold } from './preference-receipt.js';
11
11
  import { SOURCE_APPLICATIONS } from '../agents/source-applications.js';
12
12
  import { taskKeyFor } from '../knowledge-impressions/store.js';
@@ -22,7 +22,8 @@ const verdictSchema = objectSchema(verdictProperties, VERDICT_FIELDS);
22
22
  const CHECK_RULES = ' acceptanceChecks are checks the person kept from earlier work in this project: escalate when the evidence shows a relevant one failing or unmet; one the task does not touch is no evidence either way.';
23
23
  const VERDICT_EXAMPLE = '{"outcome":"approve|escalate","summary":"concise reason","evidence":["specific evidence"],"confidence":0.0}';
24
24
 
25
- export async function assessAcceptance({ app, decide, context, service, input: raw }) {
25
+ // trust: the role trust store (src/model-backends/role-trust.js), or null.
26
+ export async function assessAcceptance({ app, decide, context, service, trust = null, input: raw }) {
26
27
  const input = parse(request, raw); await service.scope(input);
27
28
  const host = await app.taskContextRegistry.context(input.taskContextToken, input.sourceApplication);
28
29
  const task = await app.viewProjectAgentTask({ personalSpaceId: input.personalSpaceId,
@@ -73,8 +74,15 @@ export async function assessAcceptance({ app, decide, context, service, input: r
73
74
  outcome: 'escalate', summary: 'This artifact needs a passed verification from another Agent before automatic acceptance.',
74
75
  evidence: [gate.status], confidence: 0 } : { outcome: 'escalate', summary: hold.summary, evidence: hold.evidence, confidence: 0 };
75
76
  // C13: the lead's session judging its own task is not an independent
76
- // verification. Its verdict is kept, and a person decides.
77
- const selfAssessed = answer?.judgedBy?.independent === false;
77
+ // verification, and is recorded as such. With no model configured for
78
+ // Tonborg now and 「交给 Tonborg 确认」 on, the session stands in for it
79
+ // and its verdict counts (Jevons 11-17), after the passed verification
80
+ // from another Agent that every automatic acceptance needs. Otherwise,
81
+ // after Tonborg's model failed, or once a model was configured since the
82
+ // package was made, the verdict is kept as a proposal and a person decides.
83
+ const standsIn = sessionStandsIn(answer) && store.delegation(space).enabled
84
+ && trust?.sessionMayStandIn('tonborg') === true;
85
+ const selfAssessed = answer?.judgedBy?.independent === false && !standsIn;
78
86
  const evaluationId = randomUUID();
79
87
  // agentId names whose work was assessed, so Bole's score card can count it.
80
88
  record = store.record(space, { personalProjectId: project, kind: 'acceptance', target: input.taskId, evaluationId,
@@ -47,6 +47,11 @@ export function judgmentAnswer(response) {
47
47
  modelReceipt: response.modelReceipt ?? null };
48
48
  }
49
49
 
50
+ // Whether the current session answered with no model behind Tonborg: then
51
+ // it stands in for Tonborg (Jevons 11-17). A session that answered after
52
+ // Tonborg's model failed carries that model's receipt and does not.
53
+ export const sessionStandsIn = answer => answer?.judgedBy?.mode === 'current_session' && !answer.modelReceipt;
54
+
50
55
  // What a judgment record keeps about who judged; null when nobody did. C13:
51
56
  // a current-session answer is recorded as such, never as independent.
52
57
  export function judgmentProvenance(answer) {
@@ -2,10 +2,11 @@ import { createHash } from 'node:crypto';
2
2
  import { z } from 'zod';
3
3
  import { parse, parseAnswer } from './service.js';
4
4
  import { createJudgmentBackend, failureProvenance, judgmentAnswer, judgmentProvenance, pendingRecord,
5
- TONBORG_OPERATIONS } from './backend.js';
5
+ sessionStandsIn, TONBORG_OPERATIONS } from './backend.js';
6
6
  import { assessRouting } from './routing.js';
7
7
  import { assessAcceptance } from './acceptance.js';
8
8
  import { recoverInterruptedWrites } from './review-recovery.js';
9
+ import { FIXED_ROLES, TONBORG_AGENT_ID } from '../employees/fixed-roles.js';
9
10
  import { EmployeeError } from '../employees/manifest.js';
10
11
  import { judgmentHumanInteraction } from './conversation.js';
11
12
  import { arraySchema, enumSchema, objectSchema } from '../agent-tools/schema.js';
@@ -49,8 +50,9 @@ const reviewPolicy = (store, space, project) => {
49
50
  };
50
51
 
51
52
  // trust: whether Tonborg's configured model may apply a review by itself
52
- // (src/model-backends/role-trust.js, rec#10 D-36); without one, every review
53
- // is a suggestion.
53
+ // (src/model-backends/role-trust.js, rec#10 D-36), and whether the current
54
+ // session may stand in for Tonborg; without one, every review is a suggestion
55
+ // and no session stands in.
54
56
  export function createJudgmentEngine({ app, judge = createJudgmentBackend(), trust = null } = {}) {
55
57
  // The capture switch is part of the gate (rec#10 D-36.7): while recording is
56
58
  // off for the review's scope, a trusted model's approval is a suggestion too.
@@ -67,8 +69,8 @@ export function createJudgmentEngine({ app, judge = createJudgmentBackend(), tru
67
69
  evidenceVersion: fingerprint(call.data), policyVersion: policyVersion(call.policy) }));
68
70
  async function authorize(input, policy, { ensureAssignment = false } = {}) {
69
71
  const agents = await app.listProjectAgents({ personalSpaceId: input.personalSpaceId });
70
- const tonborg = agents.find(agent => agent.agentId === 'employee.tonborg');
71
- if (tonborg?.profile.status !== 'active' || !tonborg.profile.capabilities?.includes('fuli.employee:tonborg')) {
72
+ const tonborg = agents.find(agent => agent.agentId === TONBORG_AGENT_ID);
73
+ if (tonborg?.profile.status !== 'active' || !tonborg.profile.capabilities?.includes(FIXED_ROLES.tonborg.capability)) {
72
74
  throw new EmployeeError('Tonborg is unavailable', 403, 'judgment_agent_unavailable');
73
75
  }
74
76
  if (!coversClient(tonborg.profile.allowedClients, policy.client)) {
@@ -78,7 +80,7 @@ export function createJudgmentEngine({ app, judge = createJudgmentBackend(), tru
78
80
  }
79
81
  // taskScope carries only the work kind, session and workflow the caller actually knows.
80
82
  const readPreferences = (project, taskScope = {}) => readJudgmentPreferences(app, { personalProjectId: project,
81
- projectAgentId: project ? 'employee.tonborg' : null, taskScope });
83
+ projectAgentId: project ? TONBORG_AGENT_ID : null, taskScope });
82
84
  // memory, memoryRevision and feedback are Tonborg's own: its model reads
83
85
  // them, a session's work package leaves them out (session-package.js, D-58).
84
86
  async function context(service, input, policy = service.store().policy(input.personalSpaceId, input.personalProjectId ?? ''), taskScope = {}) {
@@ -87,7 +89,7 @@ export function createJudgmentEngine({ app, judge = createJudgmentBackend(), tru
87
89
  const preferences = await readPreferences(project, taskScope);
88
90
  let memory = null;
89
91
  if (project) {
90
- try { memory = await app.inspectProjectAgentMemory({ personalSpaceId: input.personalSpaceId, personalProjectId: project, agentId: 'employee.tonborg', limit: 1 }); }
92
+ try { memory = await app.inspectProjectAgentMemory({ personalSpaceId: input.personalSpaceId, personalProjectId: project, agentId: TONBORG_AGENT_ID, limit: 1 }); }
91
93
  catch (error) { if (![403, 404].includes(error.status)) throw error; }
92
94
  }
93
95
  return { preferences, memory: memory?.current?.memory ?? null,
@@ -143,7 +145,7 @@ export function createJudgmentEngine({ app, judge = createJudgmentBackend(), tru
143
145
  records.push(store.record(space, { personalProjectId: project || null, kind: 'review', target: 'review', title: 'Tonborg review',
144
146
  ...pendingRecord(answer), policy }, `pending:${answer.pending.packageId}`));
145
147
  }
146
- const trustKey = answer.pending ? null : reviewTrustKey(answer, { personalSpaceId: space, personalProjectId: project || null });
148
+ const trustKey = answer.pending ? null : reviewTrustKey(answer, { personalSpaceId: space, personalProjectId: project || null }, policy);
147
149
  const gate = trustKey && gateOf(trustKey);
148
150
  // rec#26: one model request judges the whole batch, so injected text in
149
151
  // any candidate may have steered every verdict of that answer.
@@ -275,7 +277,7 @@ export function createJudgmentEngine({ app, judge = createJudgmentBackend(), tru
275
277
  const input = parse(reviewInput, raw); await service.scope(input);
276
278
  return reviewAcrossScopes(service, input, true);
277
279
  }, assess: (service, input) => assessRouting({ app, decide, context, service, input }),
278
- accept: (service, input) => assessAcceptance({ app, decide, context, service, input }),
280
+ accept: (service, input) => assessAcceptance({ app, decide, context, service, trust, input }),
279
281
  // A session answered a handed-off judgment: rerun the same operation, which
280
282
  // uses that answer only while its evidence and policy are unchanged.
281
283
  // execution names the role_work execution that may use the answer.
@@ -284,7 +286,8 @@ export function createJudgmentEngine({ app, judge = createJudgmentBackend(), tru
284
286
  if (operation === TONBORG_OPERATIONS.review) return review(service, input, { localOnly: true, execution });
285
287
  if (operation === TONBORG_OPERATIONS.routing) return assessRouting({ app, decide: executing, context, service, input });
286
288
  if (operation === TONBORG_OPERATIONS.acceptance) {
287
- return assessAcceptance({ app, decide: executing, context, service, input: { ...input, taskContextToken: session.taskContextToken } });
289
+ return assessAcceptance({ app, decide: executing, context, service, trust,
290
+ input: { ...input, taskContextToken: session.taskContextToken } });
288
291
  }
289
292
  throw new TypeError(`Unknown Tonborg operation: ${operation}`);
290
293
  } };
@@ -305,12 +308,17 @@ function reviewDecisions(value, candidates, delegated) {
305
308
  }
306
309
 
307
310
  // What the trust gate asks about an answer: the configured connection and
308
- // model that gave it, or none when the current session or a legacy CLI answered.
309
- function reviewTrustKey(answer, scope) {
311
+ // model that gave it, or none when the current session or a legacy CLI
312
+ // answered. handedOver: 「交给 Tonborg 确认」 is on and the session answered
313
+ // with no model behind Tonborg (a session answer after a model failed carries
314
+ // that model's receipt, and stays a suggestion).
315
+ function reviewTrustKey(answer, scope, policy) {
310
316
  const byModel = answer.judgedBy?.mode === 'model_api';
317
+ const handedOver = Boolean(policy.delegated) && sessionStandsIn(answer);
311
318
  return { role: 'tonborg', operation: TONBORG_OPERATIONS.review, scope,
312
319
  connection: byModel ? answer.modelReceipt?.connectionIdentity ?? null : null,
313
- model: byModel ? answer.modelReceipt?.requestedModel ?? null : null };
320
+ model: byModel ? answer.modelReceipt?.requestedModel ?? null : null,
321
+ ...(handedOver ? { handedOver: true } : {}) };
314
322
  }
315
323
 
316
324
  // rec#10 D-24, D-36: what the host does with one review verdict. The model's own