fuli-context 0.27.14 → 0.27.16

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 (279) hide show
  1. package/README.md +21 -0
  2. package/README.zh-CN.md +20 -0
  3. package/dist/web/assets/{AboutPage-CvZpi5Th.js → AboutPage-DvGP5oew.js} +1 -1
  4. package/dist/web/assets/{AboutSectionHeading-Di6FXshT.js → AboutSectionHeading-DQLpU-LX.js} +1 -1
  5. package/dist/web/assets/{AdvancedOnly-BLALY-rN.js → AdvancedOnly-D3BTbbl0.js} +1 -1
  6. package/dist/web/assets/{AgentAppsPage-BrR-3WY9.js → AgentAppsPage-DWwVdXaN.js} +1 -1
  7. package/dist/web/assets/{AgentAvatar-CS2_X_mW.js → AgentAvatar-C-qXHE1H.js} +1 -1
  8. package/dist/web/assets/{AgentHand-BywJYDw2.js → AgentHand-B4V79OMX.js} +1 -1
  9. package/dist/web/assets/{AgentManagement-DDrgMAYI.js → AgentManagement-Bj3b_VpR.js} +1 -1
  10. package/dist/web/assets/{AgentMentionCopy-ZniAkMbQ.js → AgentMentionCopy-CcGGU2LY.js} +1 -1
  11. package/dist/web/assets/{AgentName-CKisrZC2.js → AgentName-CpqRfTQx.js} +1 -1
  12. package/dist/web/assets/{AgentProfilePage-Dcr9_tlF.js → AgentProfilePage-DgpLgAtE.js} +3 -3
  13. package/dist/web/assets/{AgentServicesPage-BFg73r5V.js → AgentServicesPage-DLmt22nV.js} +1 -1
  14. package/dist/web/assets/{AppViewerPage--tIIQSNV.js → AppViewerPage-CoycXPa8.js} +1 -1
  15. package/dist/web/assets/{BackToTop-DjjZiioG.js → BackToTop-CVsZqRqu.js} +1 -1
  16. package/dist/web/assets/{BoardCardFieldsMenu-D27GDY37.js → BoardCardFieldsMenu-BhGbXVCc.js} +1 -1
  17. package/dist/web/assets/{BoardMoveMenu-Dsb3M1dK.js → BoardMoveMenu-DgcS4rCa.js} +1 -1
  18. package/dist/web/assets/{Breadcrumb-WFJpNEhB.js → Breadcrumb-Ct7e6OYm.js} +1 -1
  19. package/dist/web/assets/{CaptureChangePage-CaaBLB_i.js → CaptureChangePage-DzUhCdQD.js} +1 -1
  20. package/dist/web/assets/{Collection-uJeWV37V.js → Collection-Bs2KQouG.js} +1 -1
  21. package/dist/web/assets/{CopyFixPrompt-DjaCkxd0.js → CopyFixPrompt-Bv_caDTd.js} +1 -1
  22. package/dist/web/assets/{DataFormatPage-CCMPDrgC.js → DataFormatPage-l9tilr5P.js} +1 -1
  23. package/dist/web/assets/{DebugTurnPage-BBH-clV8.js → DebugTurnPage-5BXToKCk.js} +1 -1
  24. package/dist/web/assets/{DebugTurnsPage-DelWh7Gl.js → DebugTurnsPage-Buz3RP5E.js} +1 -1
  25. package/dist/web/assets/{DialogTitle-CZ6wNeO8.js → DialogTitle-3cbaDXar.js} +1 -1
  26. package/dist/web/assets/{EmployeeRedirectPage-DY8bphUp.js → EmployeeRedirectPage-B2WSyQ4r.js} +1 -1
  27. package/dist/web/assets/{EmployeeScopeDialog-DjEBp9rf.js → EmployeeScopeDialog-B_e-PQ8G.js} +1 -1
  28. package/dist/web/assets/{EmployeeWorkbench-Dw40VPwg.js → EmployeeWorkbench-Bk2cZdp1.js} +1 -1
  29. package/dist/web/assets/FieldRoot-CWgB5qau.js +1 -0
  30. package/dist/web/assets/{FlaBlockedTasks-vnimgRen.js → FlaBlockedTasks-CzSwoKLk.js} +1 -1
  31. package/dist/web/assets/{FlaGrowth-DCNV1G5D.js → FlaGrowth-C8O0QHwC.js} +1 -1
  32. package/dist/web/assets/{FlaOccupationKit-B4C8_w5s.js → FlaOccupationKit-DZK3j3mR.js} +1 -1
  33. package/dist/web/assets/{FlaTaskSheets-BMrIpP58.js → FlaTaskSheets-CtqeoO1u.js} +1 -1
  34. package/dist/web/assets/{FlasPage-CQ4bRp8t.js → FlasPage-BDha0WYc.js} +1 -1
  35. package/dist/web/assets/{GrowthLoading-29Mwt-3Z.js → GrowthLoading-Cf0bPF3Q.js} +1 -1
  36. package/dist/web/assets/{HabitDeliveryPage-DT4QnImn.js → HabitDeliveryPage-BqSUYrAz.js} +1 -1
  37. package/dist/web/assets/{HowtoPage-Bc1AW-0v.js → HowtoPage-BoKrkQG9.js} +1 -1
  38. package/dist/web/assets/{InboxPage-BdEisjVP.js → InboxPage-D6oP06im.js} +1 -1
  39. package/dist/web/assets/{KnowledgeDeleteButton-DXxpjD-H.js → KnowledgeDeleteButton-BRBRwjQi.js} +1 -1
  40. package/dist/web/assets/{KnowledgeHardDeleteSection-BCrE6va1.js → KnowledgeHardDeleteSection-04BFLuNv.js} +1 -1
  41. package/dist/web/assets/{KnowledgeItemEditPage-DzG65pO2.js → KnowledgeItemEditPage-hUoreDyp.js} +1 -1
  42. package/dist/web/assets/{KnowledgeItemSummaryCard-BLD5mIf1.js → KnowledgeItemSummaryCard-BIePM9pG.js} +1 -1
  43. package/dist/web/assets/{KnowledgeOrganizerPage-BI9FMXNf.js → KnowledgeOrganizerPage-BSLT89Rn.js} +1 -1
  44. package/dist/web/assets/KnowledgePage-DZPa8muX.js +1 -0
  45. package/dist/web/assets/{KnowledgePeek-DWnbDnck.js → KnowledgePeek-BRwIehvJ.js} +1 -1
  46. package/dist/web/assets/{KnowledgeTurnReceiptPage-CA1bzDp8.js → KnowledgeTurnReceiptPage-BimpLgkf.js} +1 -1
  47. package/dist/web/assets/{KnowledgeWorkspace-DSCYx13A.js → KnowledgeWorkspace-kG7D5BqN.js} +1 -1
  48. package/dist/web/assets/{MeAvatar-B3uGt3b2.js → MeAvatar-oFVbooie.js} +1 -1
  49. package/dist/web/assets/{MeLink-Ded2bH1O.js → MeLink-Da6v55D-.js} +1 -1
  50. package/dist/web/assets/{MenuSeparator-BV-ueXXc.js → MenuSeparator-6uCMyjlG.js} +1 -1
  51. package/dist/web/assets/{ModelSettingsPage-IIamekiP.js → ModelSettingsPage-BcaQyqJv.js} +1 -1
  52. package/dist/web/assets/{NewSessionPanel-tdt9DWIK.js → NewSessionPanel-Bkj9sACa.js} +1 -1
  53. package/dist/web/assets/{NotFoundPage-sEk3AZBp.js → NotFoundPage-yZC3Bf0L.js} +1 -1
  54. package/dist/web/assets/{NoticeRow-CuW9LqCE.js → NoticeRow-C5Gizy8U.js} +1 -1
  55. package/dist/web/assets/{OccupationsPage-Da6Y83x4.js → OccupationsPage-CB9WAmfB.js} +1 -1
  56. package/dist/web/assets/{PageOutline-BAumEpfv.js → PageOutline-H1YZcpKH.js} +1 -1
  57. package/dist/web/assets/{PageStack-DQWUE-Va.js → PageStack-OfaGhlB9.js} +1 -1
  58. package/dist/web/assets/{PersonalProfilePage-CSNXAsHH.js → PersonalProfilePage-DdJHUTpa.js} +1 -1
  59. package/dist/web/assets/PersonalProjectsPage-ZiPK9uq0.js +1 -0
  60. package/dist/web/assets/{PinIcon-DgBYcXfL.js → PinIcon-B0AQYl66.js} +1 -1
  61. package/dist/web/assets/{PopperContent-DXQxGpwR.js → PopperContent-CVXepuUC.js} +1 -1
  62. package/dist/web/assets/{Presence-BfvV8dDn.js → Presence-BN4OmYc9.js} +1 -1
  63. package/dist/web/assets/{ProfileAuthorChip-D98dBhq3.js → ProfileAuthorChip-B_V0NkUt.js} +1 -1
  64. package/dist/web/assets/{ProjectAgentsPage-BrR3Txlc.js → ProjectAgentsPage-CqS2uLA4.js} +1 -1
  65. package/dist/web/assets/{ProjectJudgmentPolicy-DOtB7cAm.js → ProjectJudgmentPolicy-DNrS_fq7.js} +1 -1
  66. package/dist/web/assets/{RequesterModeSelect-CZsssSbT.js → RequesterModeSelect-BzLkdUFS.js} +1 -1
  67. package/dist/web/assets/{RoundtablesPage-GW35QxnC.js → RoundtablesPage-D_L07I16.js} +1 -1
  68. package/dist/web/assets/{RovingFocusGroup-D8Wx19ae.js → RovingFocusGroup-Cf4tQYLt.js} +1 -1
  69. package/dist/web/assets/{RovingFocusItem-B_BdBBug.js → RovingFocusItem-Bjr-auXN.js} +1 -1
  70. package/dist/web/assets/{SessionMigrationPage-pT6x8nX2.js → SessionMigrationPage-DqT7XkaH.js} +1 -1
  71. package/dist/web/assets/{SessionRecordsPage-DojnfV3q.js → SessionRecordsPage-C7CccMko.js} +1 -1
  72. package/dist/web/assets/SettingsPage-Docv0Ilr.css +1 -0
  73. package/dist/web/assets/SettingsPage-c41pV5VX.js +3 -0
  74. package/dist/web/assets/{SharedJefaReportPage-CObNk_31.js → SharedJefaReportPage-DRXjcyvN.js} +1 -1
  75. package/dist/web/assets/{StatementCalendarPage-DYyQ2o5Y.js → StatementCalendarPage-BIxdCVmI.js} +1 -1
  76. package/dist/web/assets/{StatementRows-DabPtjwc.js → StatementRows-BV77XQXa.js} +1 -1
  77. package/dist/web/assets/{TagVocabularyPage-CryAPOBs.js → TagVocabularyPage-xowg9e-0.js} +1 -1
  78. package/dist/web/assets/{TaskBlockerClear-EbGO-WBp.js → TaskBlockerClear-HIUn3B56.js} +1 -1
  79. package/dist/web/assets/{TaskBlockerNotice-C3VCB9tv.js → TaskBlockerNotice-BXozcJNO.js} +1 -1
  80. package/dist/web/assets/{TaskReason-U6iQPTm5.js → TaskReason-B9mo7G9G.js} +1 -1
  81. package/dist/web/assets/{TeamCard-BB9JXbvO.js → TeamCard-BgLDOUrp.js} +1 -1
  82. package/dist/web/assets/{TeamCardsWidget-6eDVfpBO.js → TeamCardsWidget-oFErdpr-.js} +1 -1
  83. package/dist/web/assets/{TeamIsland-B2KE7OBR.js → TeamIsland-a91OejBt.js} +1 -1
  84. package/dist/web/assets/{Teleport-BPJSYlVk.js → Teleport-Bq22sdRp.js} +1 -1
  85. package/dist/web/assets/{TextField-2cleth-B.js → TextField-Dq9oGwwQ.js} +1 -1
  86. package/dist/web/assets/TodayPage-BTpt-4Kd.css +1 -0
  87. package/dist/web/assets/{TodayPage-LTu0Wjpe.js → TodayPage-Dw3et7sK.js} +1 -1
  88. package/dist/web/assets/TonborgDelegationSwitch-Mj_HqsTA.css +1 -0
  89. package/dist/web/assets/TonborgDelegationSwitch-efmSdC0U.js +1 -0
  90. package/dist/web/assets/{UiChip-B4t0eucg.js → UiChip-w3aQDuoO.js} +1 -1
  91. package/dist/web/assets/{UiDialog-BwwKOaaQ.js → UiDialog-BQVnIalT.js} +1 -1
  92. package/dist/web/assets/{UiDisclosure-DgTLXULO.js → UiDisclosure-B1SRk17k.js} +1 -1
  93. package/dist/web/assets/{UiIcon-BYki6bRF.js → UiIcon-X7VJyTtW.js} +1 -1
  94. package/dist/web/assets/{UiSegmented-Dpt1CrKL.js → UiSegmented-CvQGiMjw.js} +1 -1
  95. package/dist/web/assets/{UiWeight-DoFCB_2-.js → UiWeight-BW2FyfZj.js} +1 -1
  96. package/dist/web/assets/{VirtualDirectoryList-CE_dOXQ0.js → VirtualDirectoryList-BdZtoa_v.js} +1 -1
  97. package/dist/web/assets/{VisitRequestDialog-CPzCMe8C.js → VisitRequestDialog-cyjkGIM8.js} +1 -1
  98. package/dist/web/assets/{VisitRequestsPage-B4xgFSP2.js → VisitRequestsPage-BhmySfdJ.js} +1 -1
  99. package/dist/web/assets/{VisuallyHidden-SMxnlXvE.js → VisuallyHidden-DR95cfoQ.js} +1 -1
  100. package/dist/web/assets/{VisuallyHiddenInput-BT0-8ijR.js → VisuallyHiddenInput-BvoNjX4U.js} +1 -1
  101. package/dist/web/assets/WidgetSlot-BFozXCzN.js +2 -0
  102. package/dist/web/assets/{WorkbenchListPage-BP01KDyU.js → WorkbenchListPage-BDFY0Cs7.js} +1 -1
  103. package/dist/web/assets/_plugin-vue_export-helper-BB4OD0pm.js +9 -0
  104. package/dist/web/assets/{agent-apps-B_qz6Zcd.js → agent-apps-sjSDmgvg.js} +1 -1
  105. package/dist/web/assets/agent-occupation-C8sLJTsm.js +1 -0
  106. package/dist/web/assets/{agent-pins-Bg96KUf5.js → agent-pins-yVfWNuJl.js} +1 -1
  107. package/dist/web/assets/{agent-roster-records-kjA-Ger4.js → agent-roster-records-Cc0Nn5GV.js} +1 -1
  108. package/dist/web/assets/{agent-work-summary-D8dh1K4w.js → agent-work-summary-PW6xgNM2.js} +1 -1
  109. package/dist/web/assets/{attach-closest-edge-2NxKRyeh.js → attach-closest-edge-CcuoJl8K.js} +1 -1
  110. package/dist/web/assets/{attention-store-C5l6JpZH.js → attention-store-lVVPGRD4.js} +1 -1
  111. package/dist/web/assets/{badge-CsT4EGAw.js → badge-SlVRpAT1.js} +1 -1
  112. package/dist/web/assets/{button-0hJmrvEz.js → button-DaCf049q.js} +1 -1
  113. package/dist/web/assets/{card-CfRrubhe.js → card-CU-fMIwI.js} +1 -1
  114. package/dist/web/assets/{catalog-4FezGaCz.js → catalog-BGcUbTAn.js} +1 -1
  115. package/dist/web/assets/{checkbox-Cd0HdftL.js → checkbox-BXJb7XxN.js} +1 -1
  116. package/dist/web/assets/{client-C_5zi19e.js → client-Czx1m2q7.js} +1 -1
  117. package/dist/web/assets/{client-links-store-DA-LfPg2.js → client-links-store-lPiPZrdj.js} +1 -1
  118. package/dist/web/assets/{combobox-C2agI_jg.js → combobox-BnTpTtCD.js} +1 -1
  119. package/dist/web/assets/{console-BJ-B1h0_.js → console-BVTfuCGS.js} +1 -1
  120. package/dist/web/assets/{conversation-launcher-settings-Ma0C2abQ.js → conversation-launcher-settings-BE9N0RNZ.js} +1 -1
  121. package/dist/web/assets/{copy-mention-D-1qYzIp.js → copy-mention-DefPSDHA.js} +1 -1
  122. package/dist/web/assets/{dialog-GjdK7-oa.js → dialog-i73g2wCu.js} +1 -1
  123. package/dist/web/assets/{dist-DtccFug9.js → dist-D4vkYocO.js} +1 -1
  124. package/dist/web/assets/{dist-CJSZ7q4a.js → dist-DaGiq9tT.js} +1 -1
  125. package/dist/web/assets/{dropdown-menu-D5Ge5Xr_.js → dropdown-menu-Cmjta51i.js} +1 -1
  126. package/dist/web/assets/{field-DLZyx0SO.js → field-DNFFjUOg.js} +1 -1
  127. package/dist/web/assets/{format-bytes-4cYFMoqO.js → format-bytes-iVfP_Uth.js} +1 -1
  128. package/dist/web/assets/{habit-delivery-api-DXa-F-mR.js → habit-delivery-api-B02Lhs58.js} +1 -1
  129. package/dist/web/assets/{hover-card-pI5jiQjV.js → hover-card-DbjVSrp_.js} +1 -1
  130. package/dist/web/assets/{identity-DbfVDxjc.js → identity-D9O6Buig.js} +1 -1
  131. package/dist/web/assets/{index-DfxxiOxw.js → index-CrFuVoTH.js} +20 -20
  132. package/dist/web/assets/{index-Ddwg5pGj.css → index-Cysku2l_.css} +1 -1
  133. package/dist/web/assets/{input-dm3OMJKG.js → input-D-v-Qzn9.js} +1 -1
  134. package/dist/web/assets/{label-VwJusqfA.js → label-BElkyClR.js} +1 -1
  135. package/dist/web/assets/label-table-D4SR42iJ.js +1 -0
  136. package/dist/web/assets/{model-Dbw4qmlX.js → model-AGAChkMn.js} +1 -1
  137. package/dist/web/assets/{model-q_ALzjId.js → model-BE6jYIay.js} +1 -1
  138. package/dist/web/assets/{model-B6u8l1XS.js → model-CMcIj6YH.js} +1 -1
  139. package/dist/web/assets/{model-Ji3kBqC9.js → model-CYuzfMlT.js} +1 -1
  140. package/dist/web/assets/{model-VyIsGjqp.js → model-Cq1mMseJ.js} +1 -1
  141. package/dist/web/assets/{model-DIkwLGdJ.js → model-DBLGBYG2.js} +1 -1
  142. package/dist/web/assets/{model-BszMx7Z9.js → model-DK69qvU8.js} +1 -1
  143. package/dist/web/assets/{model-BQf3MokZ.js → model-DS-vaSNE.js} +1 -1
  144. package/dist/web/assets/{model-XybfeO7a.js → model-bve-XDFz.js} +1 -1
  145. package/dist/web/assets/{model-health-UIh4dfrV.js → model-health-CnYUPVT2.js} +1 -1
  146. package/dist/web/assets/{motion-ClEWPttD.js → motion-D-CCN29z.js} +1 -1
  147. package/dist/web/assets/{motion-CwSHEDN1.js → motion-D2ROf5sb.js} +1 -1
  148. package/dist/web/assets/{motion-preference-Jluq7znA.js → motion-preference-ByJGpZkg.js} +1 -1
  149. package/dist/web/assets/{occupation-catalog-B5dMgBK0.js → occupation-catalog-DIcniNgM.js} +1 -1
  150. package/dist/web/assets/{occupation-kits-DTkZPXjb.js → occupation-kits-BbwJDWeG.js} +1 -1
  151. package/dist/web/assets/{option-CB8naTwB.js → option-DfNbcA2F.js} +1 -1
  152. package/dist/web/assets/{orchestration-filters-UT2YiQUx.js → orchestration-filters-DUQWlZKZ.js} +1 -1
  153. package/dist/web/assets/{overview-data-h_siVstG.js → overview-data-BUOawtae.js} +1 -1
  154. package/dist/web/assets/{page-refresh-BfgBdG0V.js → page-refresh-D-9vjKh3.js} +1 -1
  155. package/dist/web/assets/{page-title-BAa1zRfp.js → page-title-jJR8RG43.js} +1 -1
  156. package/dist/web/assets/{person-profile-DYbngbHC.js → person-profile-DvCj-51r.js} +1 -1
  157. package/dist/web/assets/{popover-BbwgofLP.js → popover-BXPPZqzX.js} +1 -1
  158. package/dist/web/assets/popup-host-Dib21BfM.js +1 -0
  159. package/dist/web/assets/{preference-conflicts-Dl6-ciPf.js → preference-conflicts-B7wzi4wF.js} +1 -1
  160. package/dist/web/assets/{profile-model-DNgR5s9w.js → profile-model-BNboCMX6.js} +1 -1
  161. package/dist/web/assets/{project-board-layout-eEzfFb2L.js → project-board-layout-BRKAN9I4.js} +1 -1
  162. package/dist/web/assets/{project-capture-RJUvo0OJ.js → project-capture-D7b-lL9n.js} +1 -1
  163. package/dist/web/assets/{project-origin-Iino9EI1.js → project-origin--TOvgLtz.js} +1 -1
  164. package/dist/web/assets/{quick-edit-api-DkLS_scr.js → quick-edit-api-BJ7Sc1A9.js} +1 -1
  165. package/dist/web/assets/{radio-group-B-F0t7GM.js → radio-group-Yf8AOhYN.js} +1 -1
  166. package/dist/web/assets/{review-api-JHFYW0Ys.js → review-api-NH2tbymc.js} +1 -1
  167. package/dist/web/assets/{review-list-C9hL4nci.js → review-list-mVJ2Fpq7.js} +1 -1
  168. package/dist/web/assets/{review-store-CMccqKHW.js → review-store-BLlMfs2O.js} +1 -1
  169. package/dist/web/assets/{role-names-DjM9F_A4.js → role-names-BYQ6Ejew.js} +1 -1
  170. package/dist/web/assets/{roundtable-live-BLGZEjz1.js → roundtable-live-CR0oX3WO.js} +1 -1
  171. package/dist/web/assets/{runtime-dom.esm-bundler-DNPYGzfX.js → runtime-dom.esm-bundler-KYUj_0oy.js} +1 -1
  172. package/dist/web/assets/{select-B4q63yG5.js → select-pNF6h6qI.js} +1 -1
  173. package/dist/web/assets/{session-launch-offers-BvttGsWi.js → session-launch-offers-BTllWzUC.js} +1 -1
  174. package/dist/web/assets/{settings-autosave-Bkcx8xUd.js → settings-autosave-DyOdfJxq.js} +1 -1
  175. package/dist/web/assets/settings-tabs-CkbYPvea.js +1 -0
  176. package/dist/web/assets/{shared-report-Cds3uZk-.js → shared-report-DQkPNPXT.js} +3 -3
  177. package/dist/web/assets/{source-adapters-D_Nry8q3.js → source-adapters-DWeqGlv1.js} +1 -1
  178. package/dist/web/assets/{switch-BkWgFhKP.js → switch-BvmWnWvB.js} +1 -1
  179. package/dist/web/assets/{tabs-BWb5DRkD.js → tabs-0_-pA86a.js} +1 -1
  180. package/dist/web/assets/{task-card-fields-CS4BdXVp.js → task-card-fields-DwubByG0.js} +1 -1
  181. package/dist/web/assets/{task-labels-BYsMAzzz.js → task-labels-CN2HuRqR.js} +1 -1
  182. package/dist/web/assets/{task-reason-DOD8t8r9.js → task-reason-KI4bNRpp.js} +1 -1
  183. package/dist/web/assets/{team-sheets-CrIg9qux.js → team-sheets-fOIhyrB4.js} +1 -1
  184. package/dist/web/assets/{textarea-DBMiRcU3.js → textarea-CmNV5bwv.js} +1 -1
  185. package/dist/web/assets/{ui-DaELq8Rx.js → ui-BeOaiL_A.js} +1 -1
  186. package/dist/web/assets/{useAgentRecords-BLtnb6gc.js → useAgentRecords-D4Ugm9rW.js} +1 -1
  187. package/dist/web/assets/{useAgentWorkSummary-xXRThDbk.js → useAgentWorkSummary-DvUTEZw5.js} +1 -1
  188. package/dist/web/assets/{useApi-CROJJdhE-BUP9hMGz.js → useApi-CROJJdhE-CSF8LJLr.js} +1 -1
  189. package/dist/web/assets/{useClipboardCopy-BOvzyi5Y.js → useClipboardCopy-O9-rbEx_.js} +1 -1
  190. package/dist/web/assets/{useFocusReturn-DXdT_RjX.js → useFocusReturn-BE8B69VE.js} +1 -1
  191. package/dist/web/assets/useFormControl-CzEMn4gU.js +1 -0
  192. package/dist/web/assets/{useForwardExpose-CkLfKvmw.js → useForwardExpose-BGcyhq2E.js} +1 -1
  193. package/dist/web/assets/{useForwardPropsEmits-CSwmGOAp.js → useForwardPropsEmits-D9U18v-C.js} +1 -1
  194. package/dist/web/assets/useForwardScopeId-D_7eH0Y1.js +1 -0
  195. package/dist/web/assets/{useKnowledgeConfirm-DwJVa5ls.js → useKnowledgeConfirm-ClYKOaTx.js} +1 -1
  196. package/dist/web/assets/{useKnowledgeItemPeek-DXtbN6pm.js → useKnowledgeItemPeek-CubZmvZv.js} +1 -1
  197. package/dist/web/assets/{useListPages-Dc1d3uAI.js → useListPages-BrDUJlfX.js} +1 -1
  198. package/dist/web/assets/{useMinimumLoadingDisplay-B7BVkPaG.js → useMinimumLoadingDisplay-8UJsD3Tu.js} +1 -1
  199. package/dist/web/assets/{useNow-Bqv5RlRh.js → useNow-Vmb6v8i_.js} +1 -1
  200. package/dist/web/assets/{usePageTools-CZSfbkYS.js → usePageTools-CNhXN947.js} +1 -1
  201. package/dist/web/assets/usePrimitiveElement-B1twpLbS.js +1 -0
  202. package/dist/web/assets/{useProjectAgentRoster-BvwVC7qo.js → useProjectAgentRoster-GT6oVfSp.js} +1 -1
  203. package/dist/web/assets/{useRoutePeek-BfsswswL.js → useRoutePeek-DoN7BxDJ.js} +1 -1
  204. package/dist/web/assets/{useTeamWork-_foEcdYb.js → useTeamWork-D15ytrFD.js} +1 -1
  205. package/dist/web/assets/{useTypeahead-uYqmNC4-.js → useTypeahead-HUfOxVR_.js} +1 -1
  206. package/dist/web/assets/{useVisitAwaiting-L9-20E1e.js → useVisitAwaiting-CmqtjpIE.js} +1 -1
  207. package/dist/web/assets/{utils-c2PiB5hP.js → utils-B-zi0mpE.js} +1 -1
  208. package/dist/web/assets/{utils-CQS1A1UH.js → utils-B6gAPcyi.js} +1 -1
  209. package/dist/web/assets/{verification-BVy02jVN.js → verification-Cv4Wo6E9.js} +1 -1
  210. package/dist/web/assets/{version-7A3cbAVf.js → version-BWAXzwxb.js} +1 -1
  211. package/dist/web/assets/{vue-router-BIfti3gB.js → vue-router-DvV79UrI.js} +1 -1
  212. package/dist/web/index.html +78 -78
  213. package/docs/client-connections.md +17 -7
  214. package/docs/employee-agents.md +4 -3
  215. package/docs/judgment-and-autonomy.md +2 -2
  216. package/graph-provider/fuli_graph/agent_conversation_models.py +2 -0
  217. package/graph-provider/fuli_graph/store_agent_conversations.py +11 -5
  218. package/graph-provider/fuli_graph/store_task_contexts.py +57 -1
  219. package/graph-provider/fuli_graph/task_context_routes.py +10 -1
  220. package/graph-provider/pyproject.toml +1 -1
  221. package/native/win32/fuli-win-helper.exe +0 -0
  222. package/npm-shrinkwrap.json +2 -2
  223. package/package.json +1 -1
  224. package/skills/capturing-session-knowledge/SKILL.md +2 -0
  225. package/skills/operating-fuli/SKILL.md +6 -6
  226. package/skills/operating-fuli/references/workflow-recipes.md +1 -0
  227. package/src/agent-introductions/store.js +83 -0
  228. package/src/agent-roundtable/turn-receipt.js +2 -1
  229. package/src/agent-tools/agent-conversation-definitions.js +2 -1
  230. package/src/agent-tools/interface-catalog.js +4 -2
  231. package/src/agents/identity-receipt.js +5 -2
  232. package/src/data-format/local-stores.js +13 -1
  233. package/src/desktop-glance/glance.js +117 -0
  234. package/src/employees/builtin/jefa/board-store.js +15 -0
  235. package/src/employees/builtin/jefa/tools.js +29 -2
  236. package/src/employees/recruitment.js +5 -1
  237. package/src/employees/service.js +12 -1
  238. package/src/graphiti/agent-conversations.js +1 -0
  239. package/src/graphiti/collaboration-preference-entry.js +1 -1
  240. package/src/graphiti/conversation-triage.js +4 -1
  241. package/src/graphiti/local-runtimes.js +13 -0
  242. package/src/graphiti/provider-client.js +4 -0
  243. package/src/graphiti/session-capture-pause-request.js +3 -1
  244. package/src/graphiti/task-entry-introduction.js +135 -0
  245. package/src/graphiti/task-entry-preferences.js +8 -2
  246. package/src/graphiti/task-entry-project-scope.js +7 -3
  247. package/src/graphiti/task-knowledge-checkpoint.js +2 -1
  248. package/src/graphiti/task-preference-reader.js +3 -1
  249. package/src/http/api-router.js +4 -0
  250. package/src/http/desktop-glance-api-router.js +16 -0
  251. package/src/judgment/acceptance.js +12 -4
  252. package/src/judgment/backend.js +5 -0
  253. package/src/judgment/engine.js +16 -9
  254. package/src/judgment/review-delegation.js +32 -8
  255. package/src/model-backends/http.js +12 -6
  256. package/src/model-backends/port.js +6 -0
  257. package/src/model-backends/role-trust.js +33 -12
  258. package/src/old-data/guarded-stores.js +7 -2
  259. package/src/presence/windows-helper-pin.js +1 -1
  260. package/src/system/client-connection-status.js +1 -1
  261. package/src/whats-new/lines/0.27.15.json +13 -0
  262. package/src/whats-new/lines/0.27.16.json +13 -0
  263. package/dist/web/assets/FieldRoot-CPiCM8E9.js +0 -1
  264. package/dist/web/assets/KnowledgePage-C_q-mGTL.js +0 -1
  265. package/dist/web/assets/PersonalProjectsPage-xtKY0LDl.js +0 -1
  266. package/dist/web/assets/SettingsPage-DBc87gON.js +0 -1
  267. package/dist/web/assets/SettingsPage-FXe6id2_.css +0 -1
  268. package/dist/web/assets/TodayPage-AZR8M_JV.css +0 -1
  269. package/dist/web/assets/TonborgDelegationSwitch-BFb1JkWe.css +0 -1
  270. package/dist/web/assets/TonborgDelegationSwitch-ClHrOupR.js +0 -1
  271. package/dist/web/assets/WidgetSlot-LCDULX5e.js +0 -2
  272. package/dist/web/assets/_plugin-vue_export-helper-BFFFeCCW.js +0 -9
  273. package/dist/web/assets/agent-occupation-Cv9A5bge.js +0 -1
  274. package/dist/web/assets/label-table-DdDk7TsA.js +0 -1
  275. package/dist/web/assets/popup-host-DjHptYk0.js +0 -1
  276. package/dist/web/assets/settings-tabs-DY3_oy8M.js +0 -1
  277. package/dist/web/assets/useFormControl-6GABkavq.js +0 -1
  278. package/dist/web/assets/useForwardScopeId-BDsgyTsQ.js +0 -1
  279. package/dist/web/assets/usePrimitiveElement-CWChuDmV.js +0 -1
@@ -22,6 +22,8 @@ import {
22
22
  import { createStandingAssignments } from '../standing-assignments/port.js';
23
23
  import { createAgentWorkflows } from '../agent-workflows/port.js';
24
24
  import { RecallImpressionsStore } from '../knowledge-impressions/store.js';
25
+ import { AGENT_INTRODUCTIONS_FILE, AgentIntroductionStore } from '../agent-introductions/store.js';
26
+ import { keptDataBefore } from '../data-format/local-stores.js';
25
27
  import { DELEGATION_LOG_FILE, DelegatedOperationLog } from '../agent-delegation/operation-log.js';
26
28
  import { createAgentAvatars } from '../agent-avatars/port.js';
27
29
  import { createProjectChangeLog } from '../project-change-log/port.js';
@@ -102,6 +104,16 @@ export function openLocalRuntimes(app, { runtimeConfigPath, paths, env, fetchImp
102
104
  app.agentWorkflows = createAgentWorkflows({ path: join(dataDir, 'agent-workflows.sqlite') });
103
105
  // Which knowledge the automatic recall showed and which the Agent reported using (rec#63); recall reads it as a ranking prior.
104
106
  app.recallImpressions = new RecallImpressionsStore(join(dataDir, 'recall-impressions.sqlite'));
107
+ // Which FLAs the person knows and who last owned each project's tasks. Created
108
+ // when FULI first opens this data directory with it. After an upgrade (FULI
109
+ // already kept data here) the FLAs that exist then are not introduced as new;
110
+ // on a new installation every FLA is new to the person, so introductions
111
+ // count from the epoch.
112
+ app.agentIntroductions = new AgentIntroductionStore(join(dataDir, AGENT_INTRODUCTIONS_FILE));
113
+ try {
114
+ app.agentIntroductions.begin(() => keptDataBefore(dataDir, [AGENT_INTRODUCTIONS_FILE])
115
+ ? new Date().toISOString() : new Date(0).toISOString());
116
+ } catch { /* no introductions; entries go on */ }
105
117
  // Read here only for the compounding statement's count of changes made for the person;
106
118
  // the console's delegation port alone records them. A missing file reads as none.
107
119
  app.delegatedOperations = new DelegatedOperationLog(join(dataDir, DELEGATION_LOG_FILE));
@@ -164,6 +176,7 @@ export function closeLocalRuntimes(app) {
164
176
  app.standingAssignments?.close();
165
177
  app.agentWorkflows?.close();
166
178
  app.recallImpressions?.close();
179
+ app.agentIntroductions?.close();
167
180
  app.delegatedOperations?.close();
168
181
  app.agentAvatars?.close();
169
182
  app.visitorAccess?.close();
@@ -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
  }
@@ -4,6 +4,7 @@ import { taskAgentIdentity } from './agent-conversations.js';
4
4
  import { captureDecision, captureSettingsVersion, taskCaptureScope } from './capture-decision.js';
5
5
  import { receiptNotices } from './capture-notice.js';
6
6
  import { storedHabitsLine } from './turn-receipt-delivery.js';
7
+ import { introductionReceiptLine } from './task-entry-introduction.js';
7
8
 
8
9
  // "这次别记" / "继续记" (rec#5 C3, C4-3): an Agent pauses or resumes automatic
9
10
  // recording of the session it works in, on the person's word and without a
@@ -35,7 +36,8 @@ export async function setSessionCapturePause(application, { taskContextToken, se
35
36
  // It replaces the entry receipt, so the first task of a new conversation keeps its habits line.
36
37
  agent_receipt: withReceiptLines(taskAgentReceipt(application, { projectId: task.personalProjectId,
37
38
  agentId: task.projectAgentId ?? null, ...await taskAgentIdentity(application, task),
38
- sourceApplication: task.sourceApplication, notices: receiptNotices(decision, [], { settingsUrl: captureSettingsUrl(application) }) }),
39
+ sourceApplication: task.sourceApplication, notices: receiptNotices(decision, [], { settingsUrl: captureSettingsUrl(application) }),
40
+ introduction: introductionReceiptLine(task) }),
39
41
  [storedHabitsLine(application, task)].filter(Boolean)),
40
42
  guidance: !state ? UNSAVED_GUIDANCE : sessionPaused ? PAUSED_GUIDANCE : RESUMED_GUIDANCE };
41
43
  }
@@ -0,0 +1,135 @@
1
+ import { receiptSummary, receiptText } from '../agents/identity-receipt.js';
2
+ import { sha256Bytes } from '../security/digest.js';
3
+ import { hostInternalActivity } from './task-entry-activity-origin.js';
4
+ import { TASK_ENTRY_TOOLS } from './repository-project-registration.js';
5
+
6
+ // A new FLA introduces itself once, in the receipt line under its name
7
+ // (11-17): the first time it owns one of the person's tasks, when it was
8
+ // created after introductions began (FLAs the person already had are known).
9
+ // A project whose tasks pass from one FLA to another says so once too (a
10
+ // hand-off, naming both). Only the owner of a person's own task entry does;
11
+ // a worker run, a roundtable wake and a tool that only reads preferences do
12
+ // not. What was said is kept locally (agent-introductions store); the line
13
+ // rides on the task as a route marker, so a receipt that replaces the
14
+ // entry's (checkpoint, roundtable, pause, recovery) carries it the same turn,
15
+ // and so does a second entry of the same turn.
16
+
17
+ // "fla_introduction <prompt hash or -> <line>"
18
+ const MARKER = /^fla_introduction (\S+) (.+)$/su;
19
+ const NO_PROMPT = '-';
20
+ // Code points each value may take in the line; with the longest template the
21
+ // line stays within 100 characters (test/fla-introduction.test.js measures it).
22
+ const LIMITS = Object.freeze({ name: 14, project: 14, previous: 14, duty: 16 });
23
+ // The first clause of a profile's responsibility is what the line calls its duty.
24
+ const CLAUSE_END = /[,,。;;::\n]|\.\s/u;
25
+ // A project changes owner only when its own routing chose the project's lead;
26
+ // a member picked for the work kind works there without taking it over.
27
+ const LEAD_REASONS = new Set(['project_team_lead']);
28
+
29
+ const duty = value => value ? `(${value})` : '';
30
+ // Projectless tasks (an unclaimed conversation's Astro) are "things not in a project yet".
31
+ const area = project => project ? ` ${project} 的事` : '还没归项目的事';
32
+
33
+ // Same FLA, same wording: the variant is chosen by its agent ID. A hand-off
34
+ // promises only the project's work: the earlier FLA's own memory stays its own.
35
+ const FIRST_MEETING = [
36
+ v => `👋 初次见面,我是 ${v.name}${duty(v.duty)}。以后${area(v.project)}找我,消息开头写 ${v.address}。`,
37
+ v => `🌱 新助手 ${v.name} 报到${duty(v.duty)}!以后${area(v.project)}归我照看,有事消息开头写 ${v.address}。`,
38
+ v => `🎒 ${v.name} 到岗${duty(v.duty)},以后${area(v.project)}交给我。找我的暗号:消息开头写 ${v.address}。`,
39
+ v => `☕ 你好,我是 ${v.name}${duty(v.duty)},以后${area(v.project)}归我管。想找我,消息开头写 ${v.address}。`
40
+ ];
41
+ const HANDOFF = [
42
+ v => `🤝 ${v.project} 从 ${v.previous} 手里交到我 ${v.name} 这儿了:项目里的事我接着办,找我消息开头写 ${v.address}。`,
43
+ v => `🏃 接力棒到手!${v.project} 由 ${v.previous} 交给我 ${v.name},项目里的事我接着办,找我消息开头写 ${v.address}。`,
44
+ v => `🔑 ${v.previous} 把 ${v.project} 的钥匙交给了我 ${v.name},项目里的事我接着办;找我消息开头写 ${v.address}。`,
45
+ v => `📦 ${v.name} 从 ${v.previous} 那儿接过 ${v.project} 啦,项目里的事我接着办;找我消息开头写 ${v.address}。`
46
+ ];
47
+
48
+ // The entry's introduction ({ line, marker }), or null. A second entry of the
49
+ // same turn for the same owner repeats the first one's (resolution.turnIntroduction)
50
+ // without asking the store, which already counts it as said. A project's owner
51
+ // is tracked only when routing chose the project's lead: an FLA the person or
52
+ // host named (#FLA, #FLG, an explicit Agent) or a member picked for the work
53
+ // works there without taking it over. sessionOwnerFrom is the FLA a session
54
+ // owner-change notice already names as the earlier one: a hand-off from it
55
+ // would say the same twice, so it is left out.
56
+ export function introductionEntry(application, { resolution, selection, context, input, sessionOwnerFrom = null,
57
+ now = new Date() }) {
58
+ const agentId = selection?.agent?.agentId;
59
+ if (!agentId || !context?.role || !application.agentIntroductions || !input.agentInvocation
60
+ || !TASK_ENTRY_TOOLS.has(input.agentToolName)
61
+ || hostInternalActivity(application, { sessionId: input.sessionId ?? input.sourceSessionId ?? null })) return null;
62
+ const carried = resolution.turnIntroduction;
63
+ if (carried?.agentId === agentId) return entryOf(carried.line, input.taskPrompt);
64
+ const projectId = resolution.personalProjectId ?? null;
65
+ const led = LEAD_REASONS.has(selection.reason) || context.team?.lead_agent_id === agentId;
66
+ const routed = projectId && led && !resolution.fla && !resolution.group && !input.projectAgentId;
67
+ let met;
68
+ try {
69
+ met = application.agentIntroductions.meet({ personalSpaceId: application.config.personal.spaceId, agentId,
70
+ agentCreatedAt: selection.agent.createdAt ?? null, agentName: context.role.name ?? null,
71
+ projectId: routed ? projectId : null, at: now.toISOString() });
72
+ } catch {
73
+ // A store this FULI cannot use introduces nobody; the entry goes on.
74
+ return null;
75
+ }
76
+ const previous = met.previousOwner?.agentId === sessionOwnerFrom ? null : met.previousOwner;
77
+ const line = introductionLine({ agentId, name: context.role.name ?? agentId,
78
+ responsibility: context.role.responsibility, project: projectId ? context.project_brief?.name || '这个项目' : null,
79
+ previous: previous ? previous.name ?? previous.agentId : null, firstMeeting: met.firstMeeting });
80
+ return line ? entryOf(line, input.taskPrompt) : null;
81
+ }
82
+
83
+ // The introduction the session's current task gave, when this entry is a
84
+ // second one of the same turn and that task has no completed checkpoint: the
85
+ // client's prompt hook run again with the same turn ID (Codex, for input
86
+ // arriving mid-turn), or, without a turn ID, the Agent's own
87
+ // get_collaboration_preferences for the same task prompt. A different prompt
88
+ // is a new turn, so a client whose turns are never checkpointed does not carry
89
+ // the line on.
90
+ export function sameTurnIntroduction(sessionTask, { turnId = null, agentToolName = null, taskPrompt = null } = {}) {
91
+ if (!sessionTask?.projectAgentId || sessionTask.checkpoint?.phase === 'complete') return null;
92
+ const stored = storedIntroduction(sessionTask);
93
+ if (!stored) return null;
94
+ const sameTurn = turnId ? sessionTask.turnId === turnId
95
+ : agentToolName === 'get_collaboration_preferences' && stored.prompt !== NO_PROMPT && stored.prompt === promptKey(taskPrompt);
96
+ return sameTurn ? { agentId: sessionTask.projectAgentId, line: stored.line } : null;
97
+ }
98
+
99
+ // The receipt line a task's entry introduced its owner with, or null.
100
+ export function introductionReceiptLine(task) {
101
+ return storedIntroduction(task)?.line ?? null;
102
+ }
103
+
104
+ function storedIntroduction(task) {
105
+ const match = (task?.agentAssignment?.match_basis ?? []).map(item => MARKER.exec(item)).find(Boolean);
106
+ return match ? { prompt: match[1], line: match[2] } : null;
107
+ }
108
+
109
+ // The marker keeps a short hash of the entry's task prompt, never its text.
110
+ function entryOf(line, taskPrompt) {
111
+ return { line, marker: `fla_introduction ${promptKey(taskPrompt)} ${line}` };
112
+ }
113
+
114
+ function promptKey(taskPrompt) {
115
+ const text = typeof taskPrompt === 'string' ? taskPrompt.replace(/\s+/g, ' ').trim() : '';
116
+ return text ? sha256Bytes(text).slice(0, 16) : NO_PROMPT;
117
+ }
118
+
119
+ // One Markdown line of receipt text, every value escaped. A name too long to
120
+ // show whole is addressed by a bare #FLA, which lists the person's FLAs.
121
+ function introductionLine({ agentId, name, responsibility, project, previous, firstMeeting }) {
122
+ const templates = previous ? HANDOFF : firstMeeting ? FIRST_MEETING : null;
123
+ if (!templates) return null;
124
+ const shown = name.replace(/\s+/g, ' ').trim();
125
+ return templates[parseInt(sha256Bytes(agentId).slice(0, 8), 16) % templates.length]({
126
+ name: receiptSummary(shown, LIMITS.name),
127
+ address: [...shown].length <= LIMITS.name ? `#FLA ${receiptText(shown)}` : '#FLA',
128
+ duty: firstClause(responsibility), project: project && receiptSummary(project, LIMITS.project),
129
+ previous: previous && receiptSummary(previous, LIMITS.previous) });
130
+ }
131
+
132
+ function firstClause(responsibility) {
133
+ const clause = String(responsibility ?? '').trim().split(CLAUSE_END)[0].trim();
134
+ return clause ? receiptSummary(clause, LIMITS.duty) : null;
135
+ }
@@ -19,6 +19,7 @@ import { withSharedProjectList } from './shared-project-list.js';
19
19
  import { clearSessionTaskBlockers } from './task-blocker-progress.js';
20
20
  import { standingOwnerEntry } from './task-entry-standing-owner.js';
21
21
  import { changedOwner, ownerChangeEntry, previousOwnerName } from './task-entry-owner-change.js';
22
+ import { introductionEntry } from './task-entry-introduction.js';
22
23
  import { roundtableAskEntry } from './task-entry-roundtable-ask.js';
23
24
  import { isReadOnlyRefusal, readOnlyLifecycle, readOnlyTaskEntry } from './task-entry-read-only.js';
24
25
 
@@ -207,8 +208,12 @@ async function entryPreferences(application, projectResolution, {
207
208
  const managedPreferences = management ? { ...preferences, project_management_context: management } : preferences;
208
209
  if (context) applyAgentAssignment(context, selection);
209
210
  const ownerChange = ownerFrom && ownerChangeEntry(ownerFrom, ownerFromName, projectResolution, selection.agent.agentId, context?.role?.name);
211
+ // A worker run (includeMessages false) never introduces its Agent to the person.
212
+ const introduction = includeMessages ? introductionEntry(application, { resolution: projectResolution, selection,
213
+ context, input: { projectAgentId, sessionId, sourceSessionId, agentInvocation, agentToolName, taskPrompt },
214
+ sessionOwnerFrom: ownerChange ? ownerFrom.agentId : null }) : null;
210
215
  const routeMarkers = [...(fla?.markers ?? []), ...(group?.markers ?? []), ...unassignedMarkers(selection),
211
- ...(ownerChange ? [ownerChange.marker] : [])];
216
+ ...(ownerChange ? [ownerChange.marker] : []), ...(introduction ? [introduction.marker] : [])];
212
217
  // Questions other Agents left for this Agent while it was not running.
213
218
  const waiting = includeMessages && selection?.agent && application.roundtable
214
219
  ? application.roundtable.pending(selection.agent.agentId, projectResolution.personalProjectId) : [];
@@ -243,7 +248,8 @@ async function entryPreferences(application, projectResolution, {
243
248
  agent_receipt: taskAgentReceipt(application, {
244
249
  projectId: projectResolution.personalProjectId, agentId: selection?.agent?.agentId ?? null,
245
250
  name: context?.role?.name, role: selection?.agent?.profile?.name, sourceApplication,
246
- assignmentStatus: selection?.status, assignmentReason: selection?.reason, notices
251
+ assignmentStatus: selection?.status, assignmentReason: selection?.reason, notices,
252
+ introduction: introduction?.line
247
253
  }) };
248
254
  }
249
255
 
@@ -7,6 +7,7 @@ import { groupDiscussionRequest } from './task-entry-group-discussion.js';
7
7
  import { addressedAgentId } from './fla-mention.js';
8
8
  import { ASSISTANT_AGENT_ID } from '../employees/fixed-roles.js';
9
9
  import { sessionOwnerOf } from './task-entry-owner-change.js';
10
+ import { sameTurnIntroduction } from './task-entry-introduction.js';
10
11
  import { REMOTE_CONFLICT } from './agent-project-resolution.js';
11
12
 
12
13
  // Restore only exact session provenance; a normal folder name is not a role binding.
@@ -25,14 +26,17 @@ export async function resolveTaskEntryProject(application, resolution, input) {
25
26
  let sessionTask = null;
26
27
  try { sessionTask = await readSessionTask(); } catch { /* no stored member choice can be proven */ }
27
28
  const group = groupDiscussionRequest(application, input, sessionTask);
29
+ // A second entry of the same turn repeats that turn's introduction (task-entry-introduction.js).
30
+ const turnIntroduction = sameTurnIntroduction(sessionTask, input);
31
+ const carried = turnIntroduction ? { turnIntroduction } : {};
28
32
  const named = fla && namedFlaResolution(fla);
29
- if (named) return group ? { ...named, group } : named;
33
+ if (named) return { ...named, ...(group ? { group } : {}), ...carried };
30
34
  const home = await sessionEntryProject(application, resolution, input, readSessionTask);
31
35
  const routed = group?.holdsProject ? home : await withStandingOwner(application, home, input);
32
36
  // Whose the session's last task was, so the entry can say when that changes (task-entry-owner-change.js).
33
37
  const sessionOwner = sessionOwnerOf(sessionTask);
34
- return fla || group || sessionOwner ? { ...routed, ...(fla ? { fla } : {}), ...(group ? { group } : {}),
35
- ...(sessionOwner ? { sessionOwner } : {}) } : routed;
38
+ return fla || group || sessionOwner || turnIntroduction ? { ...routed, ...(fla ? { fla } : {}), ...(group ? { group } : {}),
39
+ ...(sessionOwner ? { sessionOwner } : {}), ...carried } : routed;
36
40
  }
37
41
 
38
42
  // The session's current task, read at most once per entry, and not at all
@@ -16,6 +16,7 @@ import { receiptNotices } from './capture-notice.js';
16
16
  import { standingReceiptNotices } from './task-entry-standing-owner.js';
17
17
  import { namedFlaReceiptNotices } from './task-entry-named-fla.js';
18
18
  import { ownerChangeReceiptNotices } from './task-entry-owner-change.js';
19
+ import { introductionReceiptLine } from './task-entry-introduction.js';
19
20
  import { receiptFormatNotices } from '../data-format/format-notices.js';
20
21
  import { activeSealedWorkerRequest } from '../app/agent-request-context.js';
21
22
  import { checkpointHumanInteraction } from './checkpoint-human-interaction.js';
@@ -121,7 +122,7 @@ export async function checkpointTaskKnowledge(application, {
121
122
  assignmentStatus: unassigned?.status ?? null, assignmentReason: unassigned?.reason ?? null,
122
123
  workStatus: effectiveLog.status, conversationId: conversation?.conversation_id ?? null,
123
124
  persistence: conversation?.status ?? null, collaborators: team.collaborators,
124
- roundtable: roundtableTurn(task.token),
125
+ roundtable: roundtableTurn(task.token), introduction: introductionReceiptLine(task),
125
126
  notices: [...namedFlaReceiptNotices(task), ...standingReceiptNotices(task), ...ownerChangeReceiptNotices(task), ...receiptNotices(decision, [], { settingsUrl: captureSettingsUrl(application),
126
127
  unsavedRemember: decision.allowed ? null : remember }), ...await receiptFormatNotices(application, { taskId: task.token })],
127
128
  turnReceipt: await checkpointTurnReceipt(application, checkpointTask, { memory, agentName: team.name }) }),
@@ -6,6 +6,7 @@ import { taskPreferenceScope } from '../mcp/provider-task-context-registry.js';
6
6
  import { projectAgentCollaborationPreferences } from './collaboration-preference-workflow.js';
7
7
  import { taskKnowledgeGuidance } from './task-knowledge-guidance.js';
8
8
  import { taskJudgmentContext } from './task-entry-preferences.js';
9
+ import { introductionReceiptLine } from './task-entry-introduction.js';
9
10
  import { withWorkerTaskGuidance } from './worker-task-context.js';
10
11
  import { blockedPreferenceRecovery } from '../mcp/preference-delivery.js';
11
12
  import { projectAgentRecord } from './project-agent-mapping.js';
@@ -95,7 +96,8 @@ export async function readTaskPreferences(application, {
95
96
  agent_receipt: taskAgentReceipt(application, { projectId: task.personalProjectId,
96
97
  agentId: task.projectAgentId, name: rawAgent.profile?.display_name ?? null, role: rawAgent.profile?.name ?? null, sourceApplication: task.sourceApplication,
97
98
  notices: [...receiptNotices(await captureDecision(application, taskCaptureScope(task)), [],
98
- { settingsUrl: captureSettingsUrl(application) }), ...await receiptFormatNotices(application, { taskId: task.token })] }),
99
+ { settingsUrl: captureSettingsUrl(application) }), ...await receiptFormatNotices(application, { taskId: task.token })],
100
+ introduction: introductionReceiptLine(task) }),
99
101
  preference_delivery: { status: 'complete' }, preferences_complete: true,
100
102
  same_task_recovery_available: true, truncated: false
101
103
  };
@@ -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
@@ -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
+ }
@@ -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,7 +2,7 @@ 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';
@@ -50,8 +50,9 @@ const reviewPolicy = (store, space, project) => {
50
50
  };
51
51
 
52
52
  // trust: whether Tonborg's configured model may apply a review by itself
53
- // (src/model-backends/role-trust.js, rec#10 D-36); without one, every review
54
- // 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.
55
56
  export function createJudgmentEngine({ app, judge = createJudgmentBackend(), trust = null } = {}) {
56
57
  // The capture switch is part of the gate (rec#10 D-36.7): while recording is
57
58
  // off for the review's scope, a trusted model's approval is a suggestion too.
@@ -144,7 +145,7 @@ export function createJudgmentEngine({ app, judge = createJudgmentBackend(), tru
144
145
  records.push(store.record(space, { personalProjectId: project || null, kind: 'review', target: 'review', title: 'Tonborg review',
145
146
  ...pendingRecord(answer), policy }, `pending:${answer.pending.packageId}`));
146
147
  }
147
- 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);
148
149
  const gate = trustKey && gateOf(trustKey);
149
150
  // rec#26: one model request judges the whole batch, so injected text in
150
151
  // any candidate may have steered every verdict of that answer.
@@ -276,7 +277,7 @@ export function createJudgmentEngine({ app, judge = createJudgmentBackend(), tru
276
277
  const input = parse(reviewInput, raw); await service.scope(input);
277
278
  return reviewAcrossScopes(service, input, true);
278
279
  }, assess: (service, input) => assessRouting({ app, decide, context, service, input }),
279
- accept: (service, input) => assessAcceptance({ app, decide, context, service, input }),
280
+ accept: (service, input) => assessAcceptance({ app, decide, context, service, trust, input }),
280
281
  // A session answered a handed-off judgment: rerun the same operation, which
281
282
  // uses that answer only while its evidence and policy are unchanged.
282
283
  // execution names the role_work execution that may use the answer.
@@ -285,7 +286,8 @@ export function createJudgmentEngine({ app, judge = createJudgmentBackend(), tru
285
286
  if (operation === TONBORG_OPERATIONS.review) return review(service, input, { localOnly: true, execution });
286
287
  if (operation === TONBORG_OPERATIONS.routing) return assessRouting({ app, decide: executing, context, service, input });
287
288
  if (operation === TONBORG_OPERATIONS.acceptance) {
288
- 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 } });
289
291
  }
290
292
  throw new TypeError(`Unknown Tonborg operation: ${operation}`);
291
293
  } };
@@ -306,12 +308,17 @@ function reviewDecisions(value, candidates, delegated) {
306
308
  }
307
309
 
308
310
  // What the trust gate asks about an answer: the configured connection and
309
- // model that gave it, or none when the current session or a legacy CLI answered.
310
- 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) {
311
316
  const byModel = answer.judgedBy?.mode === 'model_api';
317
+ const handedOver = Boolean(policy.delegated) && sessionStandsIn(answer);
312
318
  return { role: 'tonborg', operation: TONBORG_OPERATIONS.review, scope,
313
319
  connection: byModel ? answer.modelReceipt?.connectionIdentity ?? null : null,
314
- model: byModel ? answer.modelReceipt?.requestedModel ?? null : null };
320
+ model: byModel ? answer.modelReceipt?.requestedModel ?? null : null,
321
+ ...(handedOver ? { handedOver: true } : {}) };
315
322
  }
316
323
 
317
324
  // rec#10 D-24, D-36: what the host does with one review verdict. The model's own
@@ -15,10 +15,14 @@ import { visibleKnowledgeKeys } from './visible-items.js';
15
15
  // as its best guess. Every such decision is a judgment record marked
16
16
  // delegated, with its reason, undone through /api/judgment/undo.
17
17
  //
18
- // It spends the tokens of Tonborg's own model, so it can be turned on only
19
- // while one is connected. Turning it on is the person's say-so for Tonborg to
20
- // act by itself: the same click clears 「只给建议」 and acknowledges the trust
21
- // warning (role-trust.js), each recorded in that role's settings history.
18
+ // With a model connected it spends that model's tokens. Without one the
19
+ // reviews wait as work packages for the current session, which answers them
20
+ // as Tonborg with its own model (Jevons 11-17); nothing runs in between.
21
+ // The session stands in only while no model is configured for Tonborg at all
22
+ // (role-trust.js). Turning it on is the person's say-so for Tonborg to act by
23
+ // itself: the same click clears 「只给建议」 and acknowledges the trust warning,
24
+ // each recorded in that role's settings history. An FLA turns it on only by
25
+ // relaying the person's words (agent_relayed in the interface catalog).
22
26
 
23
27
  const id = z.string().trim().min(1).max(256);
24
28
  const readInput = z.object({ personalSpaceId: id }).strict();
@@ -34,12 +38,16 @@ const ROLE = 'tonborg';
34
38
 
35
39
  // Whether Tonborg has a model of its own for knowledge review, and whether its
36
40
  // answers apply by themselves now (the trust gate as the settings page reads it).
41
+ // sessionStandsIn: no model is configured for Tonborg at all, so with the switch
42
+ // on the current session confirms for it; a configured model that is off or not
43
+ // allowed the review keeps the session's answers suggestions.
37
44
  function tonborgModel(modelTrust) {
38
- if (!modelTrust) return { connected: false, status: 'suggestion', reason: 'not_configured' };
45
+ if (!modelTrust) return { connected: false, sessionStandsIn: false, status: 'suggestion', reason: 'not_configured' };
39
46
  const view = modelTrust.view(ROLE, TONBORG_OPERATIONS.review);
40
47
  // Without a configured connection the view reads as a session's answer.
41
48
  const connected = !['not_configured', 'session_answer'].includes(view.reason);
42
- return { connected, status: view.status, reason: connected ? view.reason : 'not_configured' };
49
+ return { connected, sessionStandsIn: modelTrust.sessionMayStandIn(ROLE), status: view.status,
50
+ reason: connected ? view.reason : 'not_configured' };
43
51
  }
44
52
 
45
53
  // The switch as the console reads it: its state, Tonborg's model, and which
@@ -59,13 +67,29 @@ export async function reviewDelegation({ judgment, modelTrust, modelBackends = n
59
67
  return delegationView({ judgment, modelTrust, modelBackends }, personalSpaceId, judgment.store().delegation(personalSpaceId));
60
68
  }
61
69
 
70
+ // Whether the switch is on, for the model page's 执行方式 line. A judgment
71
+ // store that cannot be read yet reads as off: the line then says only what
72
+ // holds without the switch.
73
+ export async function reviewHandedOver(judgment, personalSpaceId) {
74
+ if (!judgment || !personalSpaceId) return false;
75
+ try {
76
+ await judgment.scope({ personalSpaceId });
77
+ return judgment.store().delegation(personalSpaceId).enabled;
78
+ } catch {
79
+ return false;
80
+ }
81
+ }
82
+
62
83
  export async function setReviewDelegation({ judgment, modelTrust, modelBackends = null, input }) {
63
84
  const { personalSpaceId, enabled, expectedRevision, language } = parse(writeInput, input);
64
85
  await judgment.scope({ personalSpaceId });
65
86
  // Only turning it on is the say-so; saving it on again (a new language) changes no trust setting.
66
87
  if (enabled && !judgment.store().delegation(personalSpaceId).enabled) {
67
- if (!tonborgModel(modelTrust).connected) {
68
- throw new EmployeeError('Connect a model for Tonborg first: delegated review runs on Tonborg\'s own model.', 409,
88
+ // Without a model of its own Tonborg's reviews go to the current session,
89
+ // which then confirms as Tonborg (Jevons 11-17). The say-so is kept in the
90
+ // trust store either way; without that store nothing could hold it.
91
+ if (!modelTrust) {
92
+ throw new EmployeeError('Delegated review needs the model trust store, which is unavailable here.', 409,
69
93
  'tonborg_model_required');
70
94
  }
71
95
  let trust = modelTrust.view(ROLE, TONBORG_OPERATIONS.review);
@@ -20,7 +20,10 @@ import { RETENTION } from './suggestion-log.js';
20
20
  // operations: the task types each role already sends to its model.
21
21
  // automaticOperations: the one operation per role that may apply its model's
22
22
  // answer by itself (rec#10 D-36); modelTrust (src/model-backends/role-trust.js)
23
- // says whether it does now. readEvaluation(key): the latest evaluation of that
23
+ // says whether it does now. handedOver[role](): whether the person handed that
24
+ // operation to the role with its own switch (for Tonborg 「交给 Tonborg
25
+ // 确认」), so a role without a model reads as the session standing in for it.
26
+ // readEvaluation(key): the latest evaluation of that
24
27
  // role's model on this computer (evaluation-record.js), or null.
25
28
  // localBuild: what a local Ollama listed for each role's configured model at
26
29
  // its latest answer (rec#10 D-32), read-only: an observation, never proof.
@@ -66,8 +69,8 @@ async function handleConnectionCheck({ request, response, modelBackends, role })
66
69
 
67
70
  export async function handleModelBackendApiRequest({
68
71
  request, response, url, modelBackends, roleWork = null, readRoleSuggestions = null, roleSettings = null, operations = {},
69
- automaticOperations = {}, modelTrust = null, settingsHistory = null, readEvaluation = null, ownerReads = null,
70
- personalSpaceId = null
72
+ automaticOperations = {}, handedOver = {}, modelTrust = null, settingsHistory = null, readEvaluation = null,
73
+ ownerReads = null, personalSpaceId = null
71
74
  }) {
72
75
  const checked = CHECK_ROUTE.exec(url.pathname)?.[1] ?? null;
73
76
  if (checked) return handleConnectionCheck({ request, response, modelBackends, role: checked });
@@ -114,8 +117,11 @@ export async function handleModelBackendApiRequest({
114
117
  }
115
118
  if (roleEdit || trustEdit || url.pathname === '/api/model-backends/roles') {
116
119
  const settings = modelBackends.roles();
120
+ const handed = Object.fromEntries(await Promise.all(Object.entries(handedOver)
121
+ .map(async ([role, read]) => [role, await read()])));
117
122
  sendJson(response, 200, { ...settings, roles: settings.roles.map(role => ({ ...role,
118
- trust: trustView(role, settings.connections, { automaticOperations, modelTrust, readEvaluation }),
123
+ trust: trustView(role, settings.connections, { automaticOperations, modelTrust, readEvaluation,
124
+ handedOver: handed[role.role] === true }),
119
125
  localBuild: modelBackends.localBuild(role.role, role.connection?.id ?? null,
120
126
  role.connection ? settings.connections[role.connection.id] : null),
121
127
  health: modelBackends.health?.(role.role, role.connection?.id ?? null,
@@ -143,10 +149,10 @@ function historyQuery(params) {
143
149
  // operation by itself now, the person's 「只给建议」 choice and warning
144
150
  // acknowledgement, and the latest local evaluation of the configured model.
145
151
  // null for a role with no such operation: everything it does is a suggestion.
146
- function trustView(role, connections, { automaticOperations, modelTrust, readEvaluation }) {
152
+ function trustView(role, connections, { automaticOperations, modelTrust, readEvaluation, handedOver }) {
147
153
  const operation = automaticOperations[role.role];
148
154
  if (!operation || !modelTrust) return null;
149
155
  const served = role.answeredBy === 'model_api' ? connections[role.connection.id] : null;
150
- return { operation, ...modelTrust.view(role.role, operation), evaluation: served && readEvaluation
156
+ return { operation, ...modelTrust.view(role.role, operation, { handedOver }), evaluation: served && readEvaluation
151
157
  ? readEvaluation({ role: role.role, operation, model: served.model, endpoint: served.endpoint }) : null };
152
158
  }
@@ -348,6 +348,12 @@ export function createModelBackendPort({ readConfig, secrets, ledger, fetchImpl
348
348
  const settings = this.roles().roles.find(entry => entry.role === role);
349
349
  return settings?.state === 'enabled' && settings.allowedOperations.includes(operation) ? settings : null;
350
350
  },
351
+ // Whether the person configured a model for the role at all: enabled or
352
+ // disabled, whatever operations it allows. A file that does not validate
353
+ // counts as configured, so nothing reads it as having no model.
354
+ hasModel(role) {
355
+ return this.roles().roles.find(entry => entry.role === role)?.state !== 'not_configured';
356
+ },
351
357
  // Whether the whole request would still be allowed out now, for a role
352
358
  // that rechecks before it shows a late answer. A role that is gone,
353
359
  // disabled or no longer allowed the operation allows nothing.