fuli-context 0.27.2 → 0.27.4

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 (414) hide show
  1. package/dist/web/assets/{AboutPage-Bgcf03U0.js → AboutPage-DJxp-WMU.js} +1 -1
  2. package/dist/web/assets/AboutSectionHeading-BUu85T3-.js +1 -0
  3. package/dist/web/assets/AboutSectionHeading-CaZhhuuu.css +1 -0
  4. package/dist/web/assets/AgentAppsPage-Di4HU1sH.js +1 -0
  5. package/dist/web/assets/AgentAvatar-N7IaseYC.js +1 -0
  6. package/dist/web/assets/AgentAvatar-VUEAsIqM.css +1 -0
  7. package/dist/web/assets/{AgentHand-BwE2VGth.js → AgentHand-BDCERx8p.js} +1 -1
  8. package/dist/web/assets/AgentManagement-CJLZoyuq.js +7 -0
  9. package/dist/web/assets/AgentManagement-Cc00RLSO.css +1 -0
  10. package/dist/web/assets/{AgentMentionCopy-y3JD1Cef.js → AgentMentionCopy-Cpsy2XwV.js} +1 -1
  11. package/dist/web/assets/{AgentName-XrBcHq4R.js → AgentName-B150JTrl.js} +1 -1
  12. package/dist/web/assets/{AgentProfilePage-DE7z980p.js → AgentProfilePage-rckt2qEt.js} +3 -3
  13. package/dist/web/assets/AgentServicesPage-_rY596Cl.js +1 -0
  14. package/dist/web/assets/{AppViewerPage-BaKMk9pp.js → AppViewerPage-Kq3r1mwI.js} +1 -1
  15. package/dist/web/assets/{BackToTop-DITd9y7X.js → BackToTop-Da6u7_d8.js} +1 -1
  16. package/dist/web/assets/{BoardCardFieldsMenu-CWtHiVR-.js → BoardCardFieldsMenu-CyJSO3vT.js} +1 -1
  17. package/dist/web/assets/{BoardMoveMenu-CEDdltY7.js → BoardMoveMenu-B_lUROwH.js} +1 -1
  18. package/dist/web/assets/{Breadcrumb-C98voz9V.js → Breadcrumb-CA0zg3OI.js} +1 -1
  19. package/dist/web/assets/{CaptureChangePage-CE8tJfiQ.js → CaptureChangePage-nnCFkG4H.js} +1 -1
  20. package/dist/web/assets/Collection-CL-ehAUe.js +1 -0
  21. package/dist/web/assets/{CopyFixPrompt-C2hC04lV.js → CopyFixPrompt-Bp3GsUzJ.js} +1 -1
  22. package/dist/web/assets/{DataFormatPage-BjZkck9o.js → DataFormatPage-COPJnuZH.js} +1 -1
  23. package/dist/web/assets/DebugTurnPage-CuREiHr-.js +1 -0
  24. package/dist/web/assets/{DebugTurnsPage-BlDDz1Fk.js → DebugTurnsPage-i2jPDad3.js} +1 -1
  25. package/dist/web/assets/DialogTitle-aiTJ0Qmu.js +1 -0
  26. package/dist/web/assets/{EmployeeRedirectPage-CSSuvAqx.js → EmployeeRedirectPage-DPSjSW-l.js} +1 -1
  27. package/dist/web/assets/EmployeeScopeDialog-Bui2TPpl.js +1 -0
  28. package/dist/web/assets/{EmployeeWorkbench-DvEojWb7.js → EmployeeWorkbench-DAC8kuJP.js} +1 -1
  29. package/dist/web/assets/FieldRoot-B2x8LUg_.js +1 -0
  30. package/dist/web/assets/FlaBlockedTasks-CWa5T5nU.css +1 -0
  31. package/dist/web/assets/FlaBlockedTasks-Ds1c5xaw.js +1 -0
  32. package/dist/web/assets/{FlaGrowth-OdlmgEVi.js → FlaGrowth-CJSExsDl.js} +1 -1
  33. package/dist/web/assets/{FlaOccupationKit-CnouVWnU.js → FlaOccupationKit-yibMGA7g.js} +1 -1
  34. package/dist/web/assets/{FlaTaskSheets-rSIdCtzz.js → FlaTaskSheets-CJSjxa9s.js} +1 -1
  35. package/dist/web/assets/{FlasPage-BZ791caF.js → FlasPage-BvIsNjmr.js} +1 -1
  36. package/dist/web/assets/{GrowthLoading-BYOSvxZY.js → GrowthLoading-Ddj4TqCR.js} +1 -1
  37. package/dist/web/assets/{HowtoPage-DNTwYQCD.css → HowtoPage-DfHVIb8E.css} +1 -1
  38. package/dist/web/assets/HowtoPage-kSC2Tym0.js +1 -0
  39. package/dist/web/assets/{InboxPage-C3cSvJjB.js → InboxPage-Qfx9kB6z.js} +3 -3
  40. package/dist/web/assets/{KnowledgeDeleteButton-yc8Gi-BH.js → KnowledgeDeleteButton-yq2NE_5V.js} +1 -1
  41. package/dist/web/assets/{KnowledgeHardDeleteSection-D9Ktc-uC.js → KnowledgeHardDeleteSection-DYLuMTkw.js} +1 -1
  42. package/dist/web/assets/{KnowledgeItemEditPage-Csy4oOxD.js → KnowledgeItemEditPage-C_6CCT0l.js} +1 -1
  43. package/dist/web/assets/{KnowledgeItemSummaryCard-BH5UYmde.js → KnowledgeItemSummaryCard-DaS6I6IJ.js} +1 -1
  44. package/dist/web/assets/KnowledgeOrganizerPage-C0TW5FWc.js +1 -0
  45. package/dist/web/assets/KnowledgePage-CpU8zlbY.js +1 -0
  46. package/dist/web/assets/KnowledgePeek-C8KO5NBx.js +1 -0
  47. package/dist/web/assets/{KnowledgeTurnReceiptPage-Bd_LIdCc.js → KnowledgeTurnReceiptPage-Bss7rO8X.js} +1 -1
  48. package/dist/web/assets/{KnowledgeWorkspace-Be2gUul5.css → KnowledgeWorkspace-B2YB4aaQ.css} +1 -1
  49. package/dist/web/assets/KnowledgeWorkspace-NBt_5LEZ.js +4 -0
  50. package/dist/web/assets/{MeAvatar-CmhuRFOf.js → MeAvatar-ec_0AfqZ.js} +1 -1
  51. package/dist/web/assets/{MeLink-BesUihiS.js → MeLink-mcOCZh0y.js} +1 -1
  52. package/dist/web/assets/MenuSeparator-BdUe-nrq.js +1 -0
  53. package/dist/web/assets/ModelSettingsPage-DG4g9dZG.js +1 -0
  54. package/dist/web/assets/{NewSessionPanel-Bvp9ElzU.js → NewSessionPanel-Dp9REysi.js} +1 -1
  55. package/dist/web/assets/{NotFoundPage-BrolI2fz.js → NotFoundPage-mQNgXOdV.js} +1 -1
  56. package/dist/web/assets/NoticeRow-CVxAQhy5.js +1 -0
  57. package/dist/web/assets/NoticeRow-ktVO_9Es.css +1 -0
  58. package/dist/web/assets/OccupationsPage-M2bNGjfX.js +1 -0
  59. package/dist/web/assets/{PageOutline-DULpqEwg.js → PageOutline-BIuKlaez.js} +1 -1
  60. package/dist/web/assets/{PageStack-DTzWJuae.js → PageStack-CJdqrH8a.js} +1 -1
  61. package/dist/web/assets/PersonalProfilePage-CbgimIFG.js +1 -0
  62. package/dist/web/assets/PersonalProjectsPage-Dm38FUPv.js +1 -0
  63. package/dist/web/assets/{PinIcon-YYoaYKTx.js → PinIcon-DBS7pHXp.js} +1 -1
  64. package/dist/web/assets/PopperContent-DyZQrl-r.js +1 -0
  65. package/dist/web/assets/Presence-wz-KVyjT.js +3 -0
  66. package/dist/web/assets/{ProfileAuthorChip-BEfiuJbm.js → ProfileAuthorChip-DAY42zZ8.js} +1 -1
  67. package/dist/web/assets/ProjectAgentsPage-BKWGB-4t.js +5 -0
  68. package/dist/web/assets/{ProjectJudgmentPolicy-CCzHtmOb.js → ProjectJudgmentPolicy-D1UHlAih.js} +1 -1
  69. package/dist/web/assets/RequesterModeSelect-BpaRF_th.js +1 -0
  70. package/dist/web/assets/RequesterModeSelect-DH1PGLmn.css +1 -0
  71. package/dist/web/assets/RoundtablesPage-9mlvO7FV.js +13 -0
  72. package/dist/web/assets/{RoundtablesPage-DL-IOngN.css → RoundtablesPage-Cdbl7Tbx.css} +1 -1
  73. package/dist/web/assets/RovingFocusGroup-CHDkM3pP.js +1 -0
  74. package/dist/web/assets/RovingFocusItem-H6anRCEm.js +1 -0
  75. package/dist/web/assets/{SessionMigrationPage-DrK4df0L.js → SessionMigrationPage-DZfyUaJe.js} +1 -1
  76. package/dist/web/assets/{SessionRecordsPage-CFAgM65g.js → SessionRecordsPage-CK6iztwv.js} +1 -1
  77. package/dist/web/assets/SettingsPage-CVM1Gw0D.js +1 -0
  78. package/dist/web/assets/SettingsPage-DqZGF8J1.css +1 -0
  79. package/dist/web/assets/{SharedJefaReportPage-DbTPYwa_.js → SharedJefaReportPage-cfEk0Tzn.js} +1 -1
  80. package/dist/web/assets/{StatementCalendarPage-CIo5R14R.js → StatementCalendarPage-OmZa4AdL.js} +1 -1
  81. package/dist/web/assets/{StatementRows-CubaC9KG.js → StatementRows-Cdv1wlMo.js} +1 -1
  82. package/dist/web/assets/{TagVocabularyPage-BVlLmKv2.js → TagVocabularyPage-C9pRT-Co.js} +1 -1
  83. package/dist/web/assets/TaskBlockerClear-BBmPbomO.css +1 -0
  84. package/dist/web/assets/TaskBlockerClear-BGpJYYbz.js +1 -0
  85. package/dist/web/assets/TaskBlockerNotice-BtOREiqc.js +1 -0
  86. package/dist/web/assets/{TaskReason-CrLPeiOg.js → TaskReason-Dys3TUp_.js} +1 -1
  87. package/dist/web/assets/{TeamCard-SBMJMd7P.js → TeamCard-D7FU45G4.js} +1 -1
  88. package/dist/web/assets/{TeamCardsWidget-CGLW04TH.js → TeamCardsWidget-hYsXSXcW.js} +1 -1
  89. package/dist/web/assets/TeamIsland-Bw875ekj.js +9 -0
  90. package/dist/web/assets/Teleport-DcReQWaw.js +1 -0
  91. package/dist/web/assets/{TextField-Cd8UOHKv.js → TextField-BO5vPcVo.js} +1 -1
  92. package/dist/web/assets/TodayPage-D9HV_tMn.js +1 -0
  93. package/dist/web/assets/TodayPage-uBkMchn5.css +1 -0
  94. package/dist/web/assets/{TonborgDelegationSwitch-BOidSjkk.js → TonborgDelegationSwitch-TCl6Nu4Q.js} +1 -1
  95. package/dist/web/assets/{UiChip-B2z0UERX.js → UiChip-BDaNYy7i.js} +1 -1
  96. package/dist/web/assets/UiDialog-CkrPgXkI.js +1 -0
  97. package/dist/web/assets/{UiDisclosure-Bw4Wu0Dm.js → UiDisclosure-DHBkq9rj.js} +1 -1
  98. package/dist/web/assets/{UiIcon-BuaIQ57Z.js → UiIcon-BBBPl7ce.js} +1 -1
  99. package/dist/web/assets/UiSegmented-EzA-Ehx4.js +1 -0
  100. package/dist/web/assets/{UiWeight-DpBexUUy.js → UiWeight-EHzBhu5a.js} +1 -1
  101. package/dist/web/assets/{VirtualDirectoryList-RV2XtTPO.js → VirtualDirectoryList-BJrM_eeP.js} +1 -1
  102. package/dist/web/assets/VisitRequestDialog-ISewTzM3.css +1 -0
  103. package/dist/web/assets/VisitRequestDialog-jbgJBF2e.js +1 -0
  104. package/dist/web/assets/VisitRequestsPage-Bkxxiaxy.js +1 -0
  105. package/dist/web/assets/VisitRequestsPage-DfIzoLBx.css +1 -0
  106. package/dist/web/assets/{VisuallyHidden-DciDIEua.js → VisuallyHidden-CgxInDXj.js} +1 -1
  107. package/dist/web/assets/VisuallyHiddenInput-CaWSS7uB.js +1 -0
  108. package/dist/web/assets/WidgetSlot-DENSHLjb.js +2 -0
  109. package/dist/web/assets/WorkbenchListPage-J-UpUosh.js +1 -0
  110. package/dist/web/assets/_plugin-vue_export-helper-B0wc-mt_.js +9 -0
  111. package/dist/web/assets/{agent-apps-B_0syRPr.js → agent-apps-BNje45bS.js} +1 -1
  112. package/dist/web/assets/agent-occupation-aAG5t3l1.js +1 -0
  113. package/dist/web/assets/{agent-pins-B9wMvxGh.js → agent-pins-BCrkTGGW.js} +1 -1
  114. package/dist/web/assets/{agent-roster-records-CY0aSUNq.js → agent-roster-records-BFUsBcZY.js} +1 -1
  115. package/dist/web/assets/{agent-work-summary-Cs8jPFL0.js → agent-work-summary-B_VLOm6o.js} +1 -1
  116. package/dist/web/assets/{attach-closest-edge-BRDsvYPn.js → attach-closest-edge-BPnS_9Lk.js} +1 -1
  117. package/dist/web/assets/{attention-store-HMiJ1K6M.js → attention-store-qIzsiW3O.js} +1 -1
  118. package/dist/web/assets/{badge-jafr8Jg1.js → badge-CtWdRMi-.js} +1 -1
  119. package/dist/web/assets/{button-d6TCVE0s.js → button-_gyKncGb.js} +1 -1
  120. package/dist/web/assets/{card-ebnaJXQA.js → card-BYD6uklY.js} +1 -1
  121. package/dist/web/assets/{catalog-CvdvPGYk.js → catalog-PjA5J9yg.js} +1 -1
  122. package/dist/web/assets/checkbox-5re4FS0U.js +1 -0
  123. package/dist/web/assets/{client--hZxcKYo.js → client-LxAXnO12.js} +1 -1
  124. package/dist/web/assets/{client-links-store-XyR0EzJi.js → client-links-store-CYdBPEgD.js} +1 -1
  125. package/dist/web/assets/combobox-BPUtDA5_.js +1 -0
  126. package/dist/web/assets/{console-D597wx3f.js → console-D45-ZZfX.js} +1 -1
  127. package/dist/web/assets/{conversation-launcher-settings-CFFH9C2y.js → conversation-launcher-settings-BS2bz1uR.js} +1 -1
  128. package/dist/web/assets/copy-mention-D0xSzmH6.js +1 -0
  129. package/dist/web/assets/dialog-xaUosJps.js +1 -0
  130. package/dist/web/assets/{dist-B78L06NL.js → dist-C0lQzDOh.js} +1 -1
  131. package/dist/web/assets/{dist-Dy5JoHWF.js → dist-C1Hez3C6.js} +1 -1
  132. package/dist/web/assets/dropdown-menu-8tDY2fah.js +1 -0
  133. package/dist/web/assets/{field-DeguT8it.js → field-B9eFY0rX.js} +1 -1
  134. package/dist/web/assets/{format-bytes-Br4RwHnA.js → format-bytes-DHztF0Wp.js} +1 -1
  135. package/dist/web/assets/hover-card-CCcSIBsB.js +1 -0
  136. package/dist/web/assets/{identity-V8oA_IuB.js → identity-CW-Srg08.js} +1 -1
  137. package/dist/web/assets/index-CpxVWv-F.js +24 -0
  138. package/dist/web/assets/{input-CRCpCN_c.js → input-BiH7RC9P.js} +1 -1
  139. package/dist/web/assets/label-BdftnoQ0.js +1 -0
  140. package/dist/web/assets/label-table-CLQKbitJ.js +1 -0
  141. package/dist/web/assets/{model-BwOv-HBS.js → model-C7tDPa_1.js} +1 -1
  142. package/dist/web/assets/{model-CB4ObIOH.js → model-Cg5zXaMF.js} +1 -1
  143. package/dist/web/assets/{model-CwFZ_IgV.js → model-DDyIT1eK.js} +1 -1
  144. package/dist/web/assets/{model-CjQPAeCy.js → model-DMd25lv5.js} +1 -1
  145. package/dist/web/assets/{model-C-60EMcI.js → model-DXpi8vqS.js} +1 -1
  146. package/dist/web/assets/{model-D-vak-m0.js → model-DaJv8e-8.js} +1 -1
  147. package/dist/web/assets/{model-B4AuKvPj.js → model-Q1SCdf0F.js} +1 -1
  148. package/dist/web/assets/{model-CUAxIOXR.js → model-qBLcWPQW.js} +1 -1
  149. package/dist/web/assets/{motion-D5Fs3-ut.js → motion-4AmdlpVT.js} +1 -1
  150. package/dist/web/assets/{motion-Cr9JChF9.js → motion-D-GVIJyc.js} +1 -1
  151. package/dist/web/assets/{motion-preference-DgdzdVh8.js → motion-preference-CXHE1-Z7.js} +1 -1
  152. package/dist/web/assets/{occupation-catalog-DHsjkd_q.js → occupation-catalog-CsWai-cw.js} +1 -1
  153. package/dist/web/assets/{occupation-kits-BVLLRN4V.js → occupation-kits-CZQzDPeY.js} +1 -1
  154. package/dist/web/assets/{option-DhAwzags.js → option-B_OFUmRs.js} +1 -1
  155. package/dist/web/assets/{orchestration-filters-lhR2CHlQ.js → orchestration-filters-DqAPmniI.js} +1 -1
  156. package/dist/web/assets/{overview-data-QDnygL-x.js → overview-data-BbAd5G_f.js} +1 -1
  157. package/dist/web/assets/{page-refresh-BVRlo-dI.js → page-refresh-abwcdMEQ.js} +1 -1
  158. package/dist/web/assets/{page-title-ReSXziuS.js → page-title-cvuGZaZo.js} +1 -1
  159. package/dist/web/assets/{person-profile-BgUfg57K.js → person-profile-C8eoODdy.js} +1 -1
  160. package/dist/web/assets/popover-h4zQ7MDI.js +1 -0
  161. package/dist/web/assets/popup-host-8S4Sf9UR.js +1 -0
  162. package/dist/web/assets/{preference-conflicts-a-H51vUw.js → preference-conflicts-Cu00Gk8W.js} +1 -1
  163. package/dist/web/assets/{profile-model-CM98TJsj.js → profile-model-BZIzIQTS.js} +1 -1
  164. package/dist/web/assets/{project-board-layout-RH6UXkCA.js → project-board-layout-DxdyuEpb.js} +1 -1
  165. package/dist/web/assets/{project-capture-DcQ8cXIt.js → project-capture-BQ0ryWdP.js} +1 -1
  166. package/dist/web/assets/{project-origin-BNzeAazi.js → project-origin-CdqHLvij.js} +1 -1
  167. package/dist/web/assets/{quick-edit-api-COKVNuPk.js → quick-edit-api-sf5vVWXR.js} +1 -1
  168. package/dist/web/assets/radio-group-BdWVlNgf.js +1 -0
  169. package/dist/web/assets/{review-api-CAKGInLD.js → review-api-Cbrwrt6C.js} +1 -1
  170. package/dist/web/assets/{review-list-CbpXvBp-.js → review-list-D18L_t-q.js} +1 -1
  171. package/dist/web/assets/{review-store-BzrmqVoj.js → review-store-1jNUbNaJ.js} +1 -1
  172. package/dist/web/assets/{role-names-Ba0c6AbS.js → role-names-CiUKQtV9.js} +1 -1
  173. package/dist/web/assets/{roundtable-live-CoKmaXKd.js → roundtable-live-BzB34cUe.js} +1 -1
  174. package/dist/web/assets/{runtime-dom.esm-bundler-CaYBCU9Y.js → runtime-dom.esm-bundler-BwoD95K8.js} +1 -1
  175. package/dist/web/assets/select-D9sqPsDx.js +1 -0
  176. package/dist/web/assets/{session-launch-offers-C-oBkMKe.js → session-launch-offers-BOZp9NmT.js} +1 -1
  177. package/dist/web/assets/{settings-autosave-C3bTildI.js → settings-autosave-F9mwjeN-.js} +1 -1
  178. package/dist/web/assets/{settings-tabs-C9VDs91j.css → settings-tabs-D8608YHW.css} +1 -1
  179. package/dist/web/assets/settings-tabs-dWS8xFQR.js +1 -0
  180. package/dist/web/assets/shared-report-BmpdFBj3.js +3 -0
  181. package/dist/web/assets/{source-adapters-CunVF9JG.js → source-adapters-CZGvDHoP.js} +1 -1
  182. package/dist/web/assets/switch-BFhMPFpu.js +1 -0
  183. package/dist/web/assets/tabs-B6N6pM8p.js +1 -0
  184. package/dist/web/assets/{task-card-fields-Ce11pWnv.js → task-card-fields-G9NoV8iz.js} +1 -1
  185. package/dist/web/assets/{task-labels-BulIuDQB.js → task-labels-Y0y3oeAL.js} +1 -1
  186. package/dist/web/assets/{task-reason-gHlp8KHO.js → task-reason-D84kviwH.js} +1 -1
  187. package/dist/web/assets/{team-sheets-BzV1WjjK.js → team-sheets-DtMFWcPH.js} +1 -1
  188. package/dist/web/assets/{textarea-D6czUY3a.js → textarea-8EWEgEpw.js} +1 -1
  189. package/dist/web/assets/ui-BxmkvkMK.js +1 -0
  190. package/dist/web/assets/{useAgentRecords-DijrJ79w.js → useAgentRecords-D5CXJVEf.js} +1 -1
  191. package/dist/web/assets/{useAgentWorkSummary-CUv88AVP.js → useAgentWorkSummary-D1Ep9uAl.js} +1 -1
  192. package/dist/web/assets/{useApi-CROJJdhE-CxqsMZ6P.js → useApi-CROJJdhE-Cb6lwzpM.js} +1 -1
  193. package/dist/web/assets/{useClipboardCopy-uGyNKuWB.js → useClipboardCopy-C3PFlW0X.js} +1 -1
  194. package/dist/web/assets/{useFocusReturn-7BKdKvqF.js → useFocusReturn-B73WeAHQ.js} +1 -1
  195. package/dist/web/assets/useFormControl-DwHlZ4bV.js +1 -0
  196. package/dist/web/assets/useForwardExpose-4rpHye8H.js +1 -0
  197. package/dist/web/assets/{useForwardPropsEmits-BMeknK03.js → useForwardPropsEmits-DX7VZylm.js} +1 -1
  198. package/dist/web/assets/useForwardScopeId-BJDKoqyi.js +1 -0
  199. package/dist/web/assets/{useKnowledgeConfirm-mFWI8EbK.js → useKnowledgeConfirm-yhZ8Iqzc.js} +1 -1
  200. package/dist/web/assets/{useKnowledgeItemPeek-DtazLM2s.js → useKnowledgeItemPeek-D-zThKj5.js} +1 -1
  201. package/dist/web/assets/useListPages-BNB3C09x.js +1 -0
  202. package/dist/web/assets/{useMinimumLoadingDisplay-D5UC2KRz.js → useMinimumLoadingDisplay-DzHl6chR.js} +1 -1
  203. package/dist/web/assets/useNow-ChD63hSg.js +1 -0
  204. package/dist/web/assets/{usePageTools-BXkR_gpB.js → usePageTools-D3N7UX5-.js} +1 -1
  205. package/dist/web/assets/usePrimitiveElement-CdgGZRug.js +1 -0
  206. package/dist/web/assets/{useProjectAgentRoster-blZ5REnH.js → useProjectAgentRoster-BhjNHid8.js} +1 -1
  207. package/dist/web/assets/{useRoutePeek-D_j5KVFv.js → useRoutePeek-C2k0liTX.js} +1 -1
  208. package/dist/web/assets/{useTeamWork-e57CKhLW.js → useTeamWork-Bo2hjiA1.js} +1 -1
  209. package/dist/web/assets/{useTypeahead-6a1q-4Oq.js → useTypeahead-DTOx7gNa.js} +1 -1
  210. package/dist/web/assets/{utils-DBsOpQt4.js → utils-DXRJ1hJ4.js} +1 -1
  211. package/dist/web/assets/utils-DeBPoCtM.js +1 -0
  212. package/dist/web/assets/{verification-BlF0avgs.js → verification-DRKJF06P.js} +1 -1
  213. package/dist/web/assets/{version-oG6VyAd6.js → version-B2XiHNBv.js} +1 -1
  214. package/dist/web/assets/{vue-router-CCvxNose.js → vue-router-CbcwRkrV.js} +1 -1
  215. package/dist/web/assets/{NoticeRow-DD-J76Yo.css → workbench-card-Dt0820yW.css} +1 -1
  216. package/dist/web/index.html +77 -74
  217. package/docs/agent-roundtable.md +214 -3
  218. package/graph-provider/fuli_graph/graph_field_contract.py +2 -0
  219. package/graph-provider/fuli_graph/graph_format_migrations.py +5 -0
  220. package/graph-provider/fuli_graph/knowledge_search.py +84 -7
  221. package/graph-provider/fuli_graph/knowledge_sensitivity.py +105 -0
  222. package/graph-provider/fuli_graph/knowledge_source_delete_copies.py +36 -0
  223. package/graph-provider/fuli_graph/models.py +25 -0
  224. package/graph-provider/fuli_graph/project_agent_remote_origins.py +27 -13
  225. package/graph-provider/pyproject.toml +1 -1
  226. package/native/win32/fuli-win-helper.exe +0 -0
  227. package/npm-shrinkwrap.json +2 -2
  228. package/package.json +1 -1
  229. package/packages/roundtable/src/agents/claude-code/constrained-run.js +58 -0
  230. package/packages/roundtable/src/agents/claude-code/wake.js +32 -12
  231. package/packages/roundtable/src/agents/codex/wake.js +25 -7
  232. package/packages/roundtable/src/agents/wake-usage.js +14 -0
  233. package/packages/roundtable/src/host.js +33 -0
  234. package/packages/roundtable/src/peer/control-cli.js +5 -1
  235. package/packages/roundtable/src/peer/control.js +10 -3
  236. package/packages/roundtable/src/peer/coordinator-service.js +30 -13
  237. package/packages/roundtable/src/peer/coordinator-store.js +11 -4
  238. package/packages/roundtable/src/peer/lan-addresses.js +8 -2
  239. package/packages/roundtable/src/peer/nearby-pairing.js +13 -1
  240. package/packages/roundtable/src/peer/origin-proof.js +17 -2
  241. package/packages/roundtable/src/peer/peer-port.js +45 -7
  242. package/packages/roundtable/src/peer/peer-runtime.js +40 -6
  243. package/packages/roundtable/src/peer/protocol.js +89 -2
  244. package/packages/roundtable/src/peer/query-answer.js +110 -0
  245. package/packages/roundtable/src/peer/runner.js +108 -13
  246. package/packages/roundtable/src/roundtable/constrained-run.js +48 -0
  247. package/packages/roundtable/src/roundtable/group-discussion.js +1 -1
  248. package/packages/roundtable/src/roundtable/service.js +120 -21
  249. package/packages/roundtable/src/roundtable/store.js +14 -0
  250. package/packages/roundtable/src/roundtable/wake-attempt-store.js +41 -0
  251. package/packages/roundtable/src/roundtable/wake-claim-release.js +20 -12
  252. package/packages/roundtable/src/roundtable/wake-failure.js +81 -0
  253. package/packages/roundtable/src/roundtable/wake-ladder.js +5 -0
  254. package/packages/roundtable/src/roundtable/wake.js +69 -24
  255. package/packages/roundtable/src/standalone/host.js +5 -2
  256. package/skills/capturing-session-knowledge/references/coordination.md +19 -0
  257. package/skills/operating-fuli/SKILL.md +12 -3
  258. package/skills/operating-fuli/references/workflow-recipes.md +7 -3
  259. package/src/agent-apps/host-tools/catalog.js +1 -0
  260. package/src/agent-kits/fuli-mcp-entry.js +25 -0
  261. package/src/agent-peer/http.js +15 -1
  262. package/src/agent-roundtable/tools.js +11 -0
  263. package/src/agent-tools/interface-catalog.js +21 -6
  264. package/src/agent-tools/statement-definitions.js +3 -1
  265. package/src/agents/claude-code/hook-contract.js +29 -0
  266. package/src/agents/claude-code/lifecycle-event.js +337 -0
  267. package/src/agents/claude-code/lifecycle-hook.js +10 -296
  268. package/src/agents/codex/hook-contract.js +31 -0
  269. package/src/agents/codex/lifecycle-event.js +350 -0
  270. package/src/agents/codex/lifecycle-hook.js +10 -326
  271. package/src/agents/lifecycle-events.js +75 -0
  272. package/src/agents/lifecycle-failure.js +3 -2
  273. package/src/agents/lifecycle-forwarder.js +268 -0
  274. package/src/agents/lifecycle-hook-calls.js +93 -0
  275. package/src/agents/source-applications.js +8 -0
  276. package/src/agents/token-usage-resolver.js +10 -0
  277. package/src/data-format/data-newer-than-package.js +65 -0
  278. package/src/data-format/local-stores.js +4 -1
  279. package/src/desktop/failed-update-recovery.js +80 -0
  280. package/src/desktop/macos-app-update.js +86 -22
  281. package/src/desktop/windows-controller.js +17 -4
  282. package/src/desktop/windows-installation-context.js +26 -1
  283. package/src/desktop/windows-installation-switch.js +83 -21
  284. package/src/desktop/windows-rollback.js +4 -4
  285. package/src/desktop/windows-tray-update.js +1 -1
  286. package/src/desktop/windows-update-command.js +4 -1
  287. package/src/desktop/windows-update.js +4 -4
  288. package/src/diagnostics/failure-records.js +18 -2
  289. package/src/diagnostics/query.js +2 -2
  290. package/src/diagnostics/safe-event.js +38 -12
  291. package/src/external-knowledge/safe-diagnostic.js +2 -5
  292. package/src/graphiti/federated-application.js +2 -1
  293. package/src/graphiti/local-runtimes.js +25 -1
  294. package/src/graphiti/project-agent-task-sessions.js +1 -8
  295. package/src/graphiti/roundtable-host.js +62 -0
  296. package/src/graphiti/runtime-config.js +3 -1
  297. package/src/graphiti/task-context-entry.js +6 -3
  298. package/src/guest-access/failed-bearer-limit.js +31 -0
  299. package/src/guest-access/guest-card.js +22 -0
  300. package/src/guest-access/guest-mcp.js +34 -0
  301. package/src/guest-access/guest-routes.js +144 -0
  302. package/src/guest-access/listener.js +152 -0
  303. package/src/guest-access/refusal-tally.js +37 -0
  304. package/src/guest-access/runtime.js +117 -0
  305. package/src/http/api-router.js +10 -1
  306. package/src/http/guest-links-api-router.js +42 -0
  307. package/src/http/lifecycle-hooks-api-router.js +128 -0
  308. package/src/http/response.js +7 -6
  309. package/src/http/statement-api-router.js +10 -3
  310. package/src/http/visitor-access-api-router.js +51 -0
  311. package/src/judgment/routing.js +6 -1
  312. package/src/knowledge-impressions/store.js +30 -6
  313. package/src/local-runtime/console-autostart-record.js +10 -0
  314. package/src/local-runtime/console-health.js +7 -2
  315. package/src/local-runtime/lifecycle.js +2 -3
  316. package/src/mcp/create-mcp-server.js +2 -0
  317. package/src/mcp/http-session-transport.js +384 -0
  318. package/src/mcp/remote-http-server.js +27 -357
  319. package/src/mcp/session-id.js +1 -1
  320. package/src/mcp/tool-annotations.js +3 -1
  321. package/src/native-runtime/runtime.js +28 -3
  322. package/src/native-runtime/windows-processes.js +6 -6
  323. package/src/presence/windows-helper-pin.js +1 -1
  324. package/src/server/lan-access.js +43 -9
  325. package/src/server.js +31 -2
  326. package/src/setup/graph-runtime.js +10 -6
  327. package/src/statement/agent-tool.js +16 -8
  328. package/src/statement/compounding-statement.js +55 -0
  329. package/src/system/doctor.js +1 -1
  330. package/src/system/fuli-process-scan.js +81 -0
  331. package/src/system/system-service.js +2 -2
  332. package/src/text/control-characters.js +9 -0
  333. package/src/text/local-paths.js +98 -0
  334. package/src/text/shareable-text.js +23 -0
  335. package/src/visit-requests/auto-envelope.js +101 -0
  336. package/src/visit-requests/git-names.js +10 -0
  337. package/src/visit-requests/http.js +105 -0
  338. package/src/visit-requests/peer-entry.js +18 -0
  339. package/src/visit-requests/records.js +140 -0
  340. package/src/visit-requests/runner.js +164 -0
  341. package/src/visit-requests/service.js +575 -0
  342. package/src/visit-requests/worktree.js +351 -0
  343. package/src/visitor-access/guest-links.js +75 -0
  344. package/src/visitor-access/port.js +269 -0
  345. package/src/visitor-access/rate-limit.js +49 -0
  346. package/src/visitor-access/shared-project-search.js +129 -0
  347. package/src/visitor-access/store.js +313 -0
  348. package/src/whats-new/lines/0.27.3.json +13 -0
  349. package/src/whats-new/lines/0.27.4.json +13 -0
  350. package/dist/web/assets/AboutSectionHeading-BaQBY_Xs.js +0 -1
  351. package/dist/web/assets/AboutSectionHeading-DjXpIV27.css +0 -1
  352. package/dist/web/assets/AgentAppsPage-DNuujLT2.js +0 -1
  353. package/dist/web/assets/AgentAvatar-DGXedNUs.js +0 -1
  354. package/dist/web/assets/AgentAvatar-DbsG1_BY.css +0 -1
  355. package/dist/web/assets/AgentManagement-2r8DUS1N.js +0 -7
  356. package/dist/web/assets/AgentManagement-hRkMpjvY.css +0 -1
  357. package/dist/web/assets/AgentServicesPage-CWfGSxcb.js +0 -1
  358. package/dist/web/assets/DebugTurnPage-B82geu1y.js +0 -1
  359. package/dist/web/assets/DialogTitle-fpANsAcy.js +0 -1
  360. package/dist/web/assets/EmployeeScopeDialog-BoEMQOEj.js +0 -1
  361. package/dist/web/assets/FieldRoot-D3lnRut5.js +0 -1
  362. package/dist/web/assets/HowtoPage-lYwzi4Vm.js +0 -1
  363. package/dist/web/assets/KnowledgeOrganizerPage-BTeQX0gH.js +0 -1
  364. package/dist/web/assets/KnowledgePage-BuukvNxz.js +0 -1
  365. package/dist/web/assets/KnowledgePeek-D0pcU7U5.js +0 -1
  366. package/dist/web/assets/KnowledgeWorkspace-Dr-zYpDQ.js +0 -4
  367. package/dist/web/assets/MenuSeparator-BGo0DgyF.js +0 -1
  368. package/dist/web/assets/ModelSettingsPage-CBPwuIBM.js +0 -1
  369. package/dist/web/assets/NoticeRow-Q9QT5NqB.js +0 -1
  370. package/dist/web/assets/OccupationsPage-CZCeeihl.js +0 -1
  371. package/dist/web/assets/PersonalProfilePage-DbXWycCQ.js +0 -1
  372. package/dist/web/assets/PersonalProjectsPage-pdAJpnZd.js +0 -1
  373. package/dist/web/assets/PopperContent-CnNwFMIA.js +0 -1
  374. package/dist/web/assets/Presence-CuIoA2sH.js +0 -3
  375. package/dist/web/assets/ProjectAgentsPage-BPf2RLsw.js +0 -5
  376. package/dist/web/assets/RoundtablesPage-BDU4W-bg.js +0 -13
  377. package/dist/web/assets/RovingFocusGroup-DS4v3bEq.js +0 -1
  378. package/dist/web/assets/RovingFocusItem-bLEnnw2Y.js +0 -1
  379. package/dist/web/assets/SettingsPage-CsJxhhsu.js +0 -1
  380. package/dist/web/assets/SettingsPage-VX_e4ty2.css +0 -1
  381. package/dist/web/assets/TaskBlockerNotice-YSvmy6B4.js +0 -1
  382. package/dist/web/assets/TeamIsland-jJKTwCJD.js +0 -9
  383. package/dist/web/assets/Teleport-CRjWb-eC.js +0 -1
  384. package/dist/web/assets/TodayPage-BvbZCEFJ.js +0 -1
  385. package/dist/web/assets/TodayPage-EJ8SWFE0.css +0 -1
  386. package/dist/web/assets/UiSegmented-DlI1vR3k.js +0 -1
  387. package/dist/web/assets/VisuallyHiddenInput-mfi7gVBu.js +0 -1
  388. package/dist/web/assets/WidgetSlot-xFZKjZ5z.js +0 -2
  389. package/dist/web/assets/WorkbenchListPage-suawrzji.js +0 -1
  390. package/dist/web/assets/_plugin-vue_export-helper-CYsAcErn.js +0 -9
  391. package/dist/web/assets/agent-occupation-C-9THmIG.js +0 -1
  392. package/dist/web/assets/checkbox-CdIozFRY.js +0 -1
  393. package/dist/web/assets/combobox-DzLSYxyO.js +0 -1
  394. package/dist/web/assets/copy-mention-CWsw8po1.js +0 -1
  395. package/dist/web/assets/dialog-SLa8cPbS.js +0 -1
  396. package/dist/web/assets/dropdown-menu-C-PcZxRY.js +0 -1
  397. package/dist/web/assets/hover-card-B-H7mMvg.js +0 -1
  398. package/dist/web/assets/index-DdAVEwQV.js +0 -24
  399. package/dist/web/assets/label-DwMBzI2m.js +0 -1
  400. package/dist/web/assets/label-table-DiaZlHIp.js +0 -1
  401. package/dist/web/assets/popover-UYksnAeH.js +0 -1
  402. package/dist/web/assets/popup-host-DMoMkD3v.js +0 -1
  403. package/dist/web/assets/radio-group-DfegNkLG.js +0 -1
  404. package/dist/web/assets/select-Bq2TQ0Gw.js +0 -1
  405. package/dist/web/assets/settings-tabs-DFZcxOaQ.js +0 -1
  406. package/dist/web/assets/shared-report-Ci1jBiYV.js +0 -3
  407. package/dist/web/assets/switch-DaUSEDq0.js +0 -1
  408. package/dist/web/assets/tabs-B_7xQRfl.js +0 -1
  409. package/dist/web/assets/ui-BCHzwL4X.js +0 -1
  410. package/dist/web/assets/useDirection-Bi78LycK.js +0 -1
  411. package/dist/web/assets/useForwardScopeId-DHGSyWlZ.js +0 -1
  412. package/dist/web/assets/usePrimitiveElement-BxOn-Fn_.js +0 -1
  413. package/dist/web/assets/utils-BQtZ8ZUw.js +0 -1
  414. package/src/system/mcp-process-scan.js +0 -55
@@ -0,0 +1,269 @@
1
+ import { withoutControls } from '../text/control-characters.js';
2
+ import { createStatusReadLimiter, rateLimitRefusal } from './rate-limit.js';
3
+ import { searchableProject, searchableQueries, searchSharedProject, sharedCard } from './shared-project-search.js';
4
+ import { VisitorAccessStore } from './store.js';
5
+ import { createGuestLinks } from './guest-links.js';
6
+
7
+ // The one port the visiting assistant reaches this computer's shared project
8
+ // knowledge through: a requester from another computer searches one project
9
+ // or looks at who leads it, read-only, rate limited and recorded alike; and the
10
+ // per-requester mode. Every
11
+ // entry answers { ok: true, … } or { ok: false, code } and never throws for
12
+ // what a caller passed; nothing a visitor sends reaches the search but the
13
+ // project id and the queries.
14
+ //
15
+ // requester.key is who is asking, and every limit and record hangs on it. The
16
+ // caller builds it from an authenticated identity only: 'peer:' and the
17
+ // verified TLS fingerprint of the paired device, or 'guest:' and the id of a
18
+ // guest link this computer stored. Never from text the other side sent: the
19
+ // label and agent name are display text and may change freely; they never
20
+ // decide whether a requester is valid (only the key does), so no name can keep
21
+ // an attempt out of the limits and the record.
22
+ //
23
+ // A host that must check something with the Provider (the share's lead, the
24
+ // project's name) passes that check in (confirm, card): it runs only after the
25
+ // attempt is reserved, so a requester past its limits causes no Provider read.
26
+ const MODES = new Set(['ask_only', 'plan', 'auto', 'trusted']);
27
+ const DEFAULT_MODE = 'plan';
28
+ // A guest link only asks: it is ask_only by default and can be set to nothing else.
29
+ const defaultMode = (key) => (key.startsWith('guest:') ? 'ask_only' : DEFAULT_MODE);
30
+ const REQUESTER_KEY = /^(?:peer:[0-9a-f]{64}|guest:[A-Za-z0-9_-]{8,64})$/;
31
+ // Display text is cut to this many UTF-16 units before it is cleaned.
32
+ const MAX_LABEL_UNITS = 1000;
33
+ const LABEL_CHARS = 120;
34
+ const READS_LIMIT = 200;
35
+
36
+ // requests({ store, modeOf }): optional, builds the visit request service
37
+ // (src/visit-requests/service.js) over this port's store; without it every
38
+ // request is refused as requests_unavailable.
39
+ export function createVisitorAccess({ path = ':memory:', application, now = () => new Date(), warn, requests: createRequests = null }) {
40
+ const store = new VisitorAccessStore(path, { warn });
41
+ const modeOf = (key) => store.requester(key)?.mode ?? defaultMode(key);
42
+ const requests = createRequests ? createRequests({ store, modeOf }) : null;
43
+ const statusReads = createStatusReadLimiter();
44
+
45
+ return {
46
+ // confirm(): optional; resolves null to go on, or a refusal code.
47
+ async searchSharedProject({ projectId, requester, queries, confirm = async () => null } = {}) {
48
+ const reservation = reserve({ projectId, requester, action: 'search', asked: () => searchableQueries(queries) });
49
+ if (reservation.code) return refused(reservation.code);
50
+ const refusal = await confirmed(confirm);
51
+ if (refusal) return settle(reservation.id, { outcome: 'refused', code: refusal }, refused(refusal));
52
+ let searched;
53
+ try {
54
+ searched = await searchSharedProject(application, { projectId: reservation.projectId, queries: reservation.queries });
55
+ } catch {
56
+ return settle(reservation.id, { outcome: 'failed', code: 'search_unavailable' }, refused('search_unavailable'));
57
+ }
58
+ return settle(reservation.id, { outcome: 'answered', bytes: searched.bytes,
59
+ resultsCount: searched.answer.results.reduce((count, result) => count + result.items.length, 0) }, searched.answer);
60
+ },
61
+
62
+ // A look at who answers for a shared project: card() resolves the lead's
63
+ // name and responsibility and the project's name as this computer knows
64
+ // them, or { code } to refuse; recorded and counted like a search, and
65
+ // cleaned like its results.
66
+ async showSharedCard({ projectId, requester, card } = {}) {
67
+ const reservation = reserve({ projectId, requester, action: 'card', asked: () => ({ queries: [] }) });
68
+ if (reservation.code) return refused(reservation.code);
69
+ let shown;
70
+ try {
71
+ const fields = await card();
72
+ if (typeof fields?.code === 'string') {
73
+ const code = plainCode(fields.code);
74
+ return settle(reservation.id, { outcome: 'refused', code }, refused(code));
75
+ }
76
+ shown = sharedCard(fields ?? {});
77
+ } catch {
78
+ return settle(reservation.id, { outcome: 'failed', code: 'card_unavailable' }, refused('card_unavailable'));
79
+ }
80
+ return settle(reservation.id, { outcome: 'answered', bytes: shown.bytes, resultsCount: 1 }, shown.card);
81
+ },
82
+
83
+ // A visiting query this computer refused before it reached this port
84
+ // (not shared, a wrong proof, a replay), once the asking device was
85
+ // proven: recorded with its code and counted toward that device's limits.
86
+ // projectId: the share's project when the host knows it, else none.
87
+ recordRefusedVisit({ requester, action, code, projectId = null } = {}) {
88
+ const who = requesterOf(requester);
89
+ if (!who) return refused('requester_invalid');
90
+ if (!ACTIONS.has(action) || typeof code !== 'string' || !PLAIN_CODE.test(code)) return refused('refusal_invalid');
91
+ const project = searchableProject(projectId) ? projectId : '';
92
+ try {
93
+ store.transaction(() => store.recordRefusal({ ...who, projectId: project, action, code, at: now() }));
94
+ return { ok: true };
95
+ } catch {
96
+ return refused(UNAVAILABLE);
97
+ }
98
+ },
99
+
100
+ recentReads({ requesterKey = null, projectId = null, limit } = {}) {
101
+ if (requesterKey !== null && !validKey(requesterKey)) return refused('requester_invalid');
102
+ if (projectId !== null && !searchableProject(projectId)) return refused('project_invalid');
103
+ try {
104
+ return { ok: true, reads: store.recentReads({ requesterKey, projectId,
105
+ limit: Number.isSafeInteger(limit) ? Math.min(Math.max(limit, 1), READS_LIMIT) : READS_LIMIT }) };
106
+ } catch {
107
+ return refused(UNAVAILABLE);
108
+ }
109
+ },
110
+
111
+ // Every requester with a mode the person set; any other is DEFAULT_MODE.
112
+ requesters() {
113
+ try { return { ok: true, requesters: store.requesters(), defaultMode: DEFAULT_MODE }; }
114
+ catch { return refused(UNAVAILABLE); }
115
+ },
116
+
117
+ requesterMode(key) {
118
+ if (!validKey(key)) return refused('requester_invalid');
119
+ try { return { ok: true, mode: store.requester(key)?.mode ?? defaultMode(key) }; }
120
+ catch { return refused(UNAVAILABLE); }
121
+ },
122
+
123
+ // label: optional for a requester already stored, which keeps its own.
124
+ setRequesterMode({ key, kind, label, mode, ownDevice } = {}) {
125
+ let shown;
126
+ try { shown = displayText(label) ?? (validKey(key) ? store.requester(key)?.label : null); }
127
+ catch { return refused(UNAVAILABLE); }
128
+ if (!validKey(key) || !['peer', 'guest'].includes(kind) || !key.startsWith(`${kind}:`) || !shown) {
129
+ return refused('requester_invalid');
130
+ }
131
+ if (!MODES.has(mode)) return refused('mode_unknown');
132
+ if (mode === 'trusted' && !(kind === 'peer' && ownDevice === true)) return refused('mode_not_allowed');
133
+ if (kind === 'guest' && !GUEST_MODES.has(mode)) return refused('mode_not_allowed');
134
+ let changed;
135
+ try {
136
+ // The mode and what it does to the requester's requests, in one transaction.
137
+ changed = store.transaction(() => ({ requester: store.setRequester({ key, kind, label: shown, mode,
138
+ ownDevice: kind === 'peer' && ownDevice === true, at: now().toISOString() }),
139
+ effects: requests?.modeChanged(key, mode) ?? { cancelled: [], returned: [] } }));
140
+ } catch { return refused(UNAVAILABLE); }
141
+ // Stops what was running at once; the worktrees are tidied after.
142
+ if (changed.effects.cancelled.length) void requests.settle(changed.effects).catch(() => {});
143
+ return { ok: true, ...changed };
144
+ },
145
+
146
+ // ---- visit requests (seconding, 外派 C) ----
147
+
148
+ // A visitor's request to have work done on this computer by the lead of
149
+ // the shared project: the requester's mode, its budget and the state
150
+ // machine decide; a refusal and every change of state are recorded.
151
+ // projectFolder: the share's folder when it names one (verified before use).
152
+ submitRequest({ requester, projectId, agentId, projectFolder = null, request } = {}) {
153
+ const who = requesterOf(requester);
154
+ if (!who) return refused('requester_invalid');
155
+ if (!requests) return refused('requests_unavailable');
156
+ if (!searchableProject(projectId) || typeof agentId !== 'string' || !agentId) return refused('project_invalid');
157
+ try {
158
+ // The visitor limits a card or search meets come first; a request itself is recorded as its own row.
159
+ const limited = rateLimitRefusal(store, who.requesterKey, projectId, now());
160
+ if (limited) return refused(limited);
161
+ return requests.submit({ requester: { key: who.requesterKey, label: who.requesterLabel, agentName: who.agentName },
162
+ source: who.requesterKey.startsWith('peer:') ? 'peer' : 'guest', projectId, agentId,
163
+ projectFolder: typeof projectFolder === 'string' && projectFolder ? projectFolder : null, request });
164
+ } catch { return refused(UNAVAILABLE); }
165
+ },
166
+
167
+ // The state of one request, only to the requester that made it: checked
168
+ // against the visitor limits, and nothing is written.
169
+ requestStatus({ requester, requestId } = {}) {
170
+ const who = requesterOf(requester);
171
+ if (!who) return refused('requester_invalid');
172
+ if (!requests) return refused('requests_unavailable');
173
+ try {
174
+ const at = now();
175
+ const limited = rateLimitRefusal(store, who.requesterKey, '', at) ?? statusReads.refusal(who.requesterKey, at);
176
+ return limited ? refused(limited) : requests.requesterStatus({ requesterKey: who.requesterKey, requestId });
177
+ }
178
+ catch { return refused(UNAVAILABLE); }
179
+ },
180
+
181
+ // A paired device the owner revoked: its open requests end with it.
182
+ requesterRevoked(key) {
183
+ if (!validKey(key) || !requests) return Promise.resolve({ cancelled: [], returned: [] });
184
+ return requests.requesterRevoked(key);
185
+ },
186
+
187
+ // The owner's console (src/visit-requests/http.js): list, card and decisions; null without the service.
188
+ requests,
189
+
190
+ // Guest links (deliverable B): created, listed and revoked by the person, opened by a bearer token.
191
+ guestLinks: createGuestLinks({ store, now }),
192
+
193
+ // With requests, after their running work stopped (a promise).
194
+ close: () => (requests ? requests.close().then(() => store.close()) : store.close())
195
+ };
196
+
197
+ // One attempt, checked and written in one transaction: past the requester's
198
+ // limits, with an invalid project or with what asked() refuses, a 'refused'
199
+ // row with its code; otherwise a 'pending' row the caller settles.
200
+ function reserve({ projectId, requester, action, asked }) {
201
+ const who = requesterOf(requester);
202
+ if (!who) return { code: 'requester_invalid' };
203
+ const at = now();
204
+ const project = searchableProject(projectId) ? projectId : '';
205
+ try {
206
+ return store.transaction(() => {
207
+ const question = asked();
208
+ const code = rateLimitRefusal(store, who.requesterKey, project, at) ?? (project ? null : 'project_invalid')
209
+ ?? question.code ?? null;
210
+ if (code) {
211
+ store.recordRefusal({ ...who, projectId: project, action, code, at });
212
+ return { code };
213
+ }
214
+ return { id: store.reserveRead({ ...who, projectId: project, action, queries: question.queries, at }),
215
+ projectId: project, queries: question.queries };
216
+ });
217
+ } catch {
218
+ return { code: UNAVAILABLE };
219
+ }
220
+ }
221
+
222
+ // A host's check, run after the reservation: a code, or null to go on; a check that throws refuses.
223
+ async function confirmed(confirm) {
224
+ try {
225
+ const code = await confirm();
226
+ return code === null ? null : plainCode(code);
227
+ } catch { return 'confirm_failed'; }
228
+ }
229
+
230
+ // Finishes a reserved row, then answers; a row that cannot be finished is not
231
+ // answered, so nothing leaves without its record.
232
+ function settle(id, outcome, answer) {
233
+ try {
234
+ store.settleRead(id, outcome);
235
+ return answer;
236
+ } catch {
237
+ return refused(UNAVAILABLE);
238
+ }
239
+ }
240
+ }
241
+
242
+ const ACTIONS = new Set(['search', 'card']);
243
+ // A guest link only asks (src/guest-access): no request of it is ever taken.
244
+ const GUEST_MODES = new Set(['ask_only']);
245
+ const PLAIN_CODE = /^[a-z][a-z0-9_]{0,39}$/;
246
+ // One word for a store that cannot be used now.
247
+ const UNAVAILABLE = 'visitor_access_unavailable';
248
+ const plainCode = code => (typeof code === 'string' && PLAIN_CODE.test(code) ? code : 'refused');
249
+
250
+ const refused = code => ({ ok: false, code });
251
+ const validKey = key => typeof key === 'string' && REQUESTER_KEY.test(key);
252
+
253
+ // Display text without control or bidirectional characters, cut to
254
+ // MAX_LABEL_UNITS units before cleaning and LABEL_CHARS code points after;
255
+ // null when nothing readable is left.
256
+ function displayText(value) {
257
+ if (typeof value !== 'string') return null;
258
+ return [...withoutControls(value.slice(0, MAX_LABEL_UNITS))].slice(0, LABEL_CHARS).join('').trim() || null;
259
+ }
260
+
261
+ // The requester as recorded, or null only when its key cannot be used. A
262
+ // label with nothing readable becomes the start of the key; an agent name
263
+ // with nothing readable is left out.
264
+ function requesterOf(requester) {
265
+ if (!validKey(requester?.key)) return null;
266
+ return { requesterKey: requester.key, requesterLabel: displayText(requester.label) ?? requester.key.slice(0, LABEL_FALLBACK_CHARS),
267
+ agentName: displayText(requester.agentName) };
268
+ }
269
+ const LABEL_FALLBACK_CHARS = 17;
@@ -0,0 +1,49 @@
1
+ // How often one requester may try to search this computer's shared
2
+ // knowledge, counted from the recorded attempts (answered, failed, pending and
3
+ // refused alike), so a restart or a second process resets nothing and a flood
4
+ // of refused attempts keeps its requester out. And how often one shared
5
+ // project may be read by everyone together: on a member computer the
6
+ // coordinator decides which devices exist, so a limit per requester alone
7
+ // would not bound a coordinator that invents new ones. Refused attempts do not
8
+ // count toward the project's limit, so a flood never locks a project longer.
9
+ // The caller runs this and the row it then writes in one transaction. Answers
10
+ // null when a read may run, otherwise the refusal code.
11
+ const SHORT_WINDOW_MS = 10 * 60 * 1000;
12
+ const SHORT_WINDOW_SEARCHES = 30;
13
+ const DAY_MS = 24 * 60 * 60 * 1000;
14
+ const DAY_SEARCHES = 300;
15
+ const PROJECT_SHORT_WINDOW_READS = 60;
16
+ const PROJECT_DAY_READS = 600;
17
+
18
+ export function rateLimitRefusal(store, requesterKey, projectId, now) {
19
+ const since = (windowMs) => new Date(now.getTime() - windowMs).toISOString();
20
+ if (store.attemptsSince(requesterKey, since(SHORT_WINDOW_MS)) >= SHORT_WINDOW_SEARCHES) return 'rate_limited_short';
21
+ if (store.attemptsSince(requesterKey, since(DAY_MS)) >= DAY_SEARCHES) return 'rate_limited_day';
22
+ if (!projectId) return null;
23
+ if (store.projectReadsSince(projectId, since(SHORT_WINDOW_MS)) >= PROJECT_SHORT_WINDOW_READS) return 'project_rate_limited_short';
24
+ if (store.projectReadsSince(projectId, since(DAY_MS)) >= PROJECT_DAY_READS) return 'project_rate_limited_day';
25
+ return null;
26
+ }
27
+
28
+ // Reads that write no row (a visit request's status) are counted here, in
29
+ // memory: at most STATUS_READS per requester in SHORT_WINDOW_MS, for at most
30
+ // STATUS_REQUESTERS requesters (the oldest forgotten first). A restart resets
31
+ // it; the recorded limits above still bound every requester.
32
+ const STATUS_READS = 60;
33
+ const STATUS_REQUESTERS = 1000;
34
+
35
+ export function createStatusReadLimiter() {
36
+ const reads = new Map();
37
+ return {
38
+ // null when this read may run (and counts it), otherwise the refusal code.
39
+ refusal(requesterKey, now) {
40
+ const since = now.getTime() - SHORT_WINDOW_MS;
41
+ const recent = (reads.get(requesterKey) ?? []).filter((at) => at > since);
42
+ if (recent.length >= STATUS_READS) return 'rate_limited_short';
43
+ reads.delete(requesterKey);
44
+ reads.set(requesterKey, [...recent, now.getTime()]);
45
+ if (reads.size > STATUS_REQUESTERS) reads.delete(reads.keys().next().value);
46
+ return null;
47
+ }
48
+ };
49
+ }
@@ -0,0 +1,129 @@
1
+ import { withoutControls } from '../text/control-characters.js';
2
+ import { shareableText } from '../text/shareable-text.js';
3
+ import { utf8Preview } from '../text/utf8-preview.js';
4
+
5
+ // What a visitor from another computer may read of one shared project: that
6
+ // project's own current, confirmed, normal-sensitivity knowledge and nothing
7
+ // around it. Every scope switch is fixed here; a caller passes only the
8
+ // project and the queries, so no caller can widen the search. No personal-
9
+ // global item, no parent, related or referencing project, no pending or
10
+ // historical item, no FLA memory, no query vector (it would send the query to
11
+ // a model), no title index on a miss and no related-project names; the
12
+ // Provider also leaves out relationships to any entity a visitor may not see.
13
+ // The provider's personal project id: 1 to 128 characters; here also no
14
+ // surrounding space or control character.
15
+ const PROJECT_ID = /^[^\s\p{Cc}](?:[^\p{Cc}]{0,126}[^\s\p{Cc}])?$/u;
16
+ const MAX_QUERIES = 4;
17
+ const MAX_QUERY_CHARS = 200;
18
+ // Longer text is refused before it is read as code points.
19
+ const MAX_QUERY_UNITS = 2000;
20
+ const RESULTS_PER_QUERY = 8;
21
+ // The whole answer the port returns, its ok field included.
22
+ const MAX_ANSWER_BYTES = 16 * 1024;
23
+ const CUT_MARK = '…';
24
+ // What the project's entry or the person's profile is, not project knowledge;
25
+ // a source entity may name a local repository.
26
+ const NOT_SHARED_TYPES = Object.freeze(['PersonalProject', 'ProjectSource', 'PersonalPreference']);
27
+
28
+ // One to MAX_QUERIES texts, each refused past MAX_QUERY_UNITS, stripped of
29
+ // control and bidirectional characters, then cut to MAX_QUERY_CHARS code
30
+ // points; answers the queries to search or a refusal code.
31
+ export function searchableQueries(asked) {
32
+ if (!Array.isArray(asked) || !asked.length) return { code: 'queries_missing' };
33
+ if (asked.length > MAX_QUERIES) return { code: 'too_many_queries' };
34
+ if (!asked.every(query => typeof query === 'string' && query.length <= MAX_QUERY_UNITS)) {
35
+ return { code: 'query_invalid' };
36
+ }
37
+ const queries = asked.map(query => [...withoutControls(query)].slice(0, MAX_QUERY_CHARS).join('').trim());
38
+ return queries.every(Boolean) ? { queries } : { code: 'query_invalid' };
39
+ }
40
+
41
+ export function searchableProject(projectId) {
42
+ return typeof projectId === 'string' && PROJECT_ID.test(projectId);
43
+ }
44
+
45
+ // projectId and queries as searchableProject and searchableQueries accept
46
+ // them, checked again here: this module is the boundary, so nothing wider
47
+ // reaches the Provider whoever calls it. Answers the exact object the port
48
+ // returns and its serialized size.
49
+ export async function searchSharedProject(application, { projectId, queries }) {
50
+ if (!searchableProject(projectId)) throw new TypeError('A visitor search needs one valid project id');
51
+ if (!Array.isArray(queries) || searchableQueries(queries).queries?.join('\n') !== queries.join('\n')) {
52
+ throw new TypeError('Visitor queries must come from searchableQueries');
53
+ }
54
+ const personalSpaceId = application.config.personal.spaceId;
55
+ const found = await Promise.all(queries.map(query => application.personal.search({
56
+ space_ids: [personalSpaceId],
57
+ query,
58
+ limit: RESULTS_PER_QUERY,
59
+ include_historical: false,
60
+ include_pending: false,
61
+ personal_project_ids: [projectId],
62
+ active_personal_project_id: projectId,
63
+ project_agent_id: null,
64
+ inherit_project_knowledge: false,
65
+ include_personal_global: false,
66
+ include_project_references: false,
67
+ excluded_entity_types: [...NOT_SHARED_TYPES],
68
+ max_sensitivity: 'normal'
69
+ })));
70
+ return boundedAnswer(queries.map((query, index) => ({ query, items: sharedItems(found[index], projectId) })));
71
+ }
72
+
73
+ // The provider already scoped the search; an item that still names another
74
+ // scope, an FLA or the person's preferences is left out rather than trusted.
75
+ function sharedItems(result, projectId) {
76
+ const inProject = item => item.defined_project_id === projectId && !item.inherited
77
+ && !item.project_agent_id && !item.profile_aspect;
78
+ const facts = (result?.facts ?? []).filter(inProject)
79
+ .map(fact => ({ score: fact.score ?? 0, item: { kind: 'fact', title: fact.relationship, text: fact.fact } }));
80
+ const entities = (result?.entities ?? []).filter(entity => inProject(entity) && !NOT_SHARED_TYPES.includes(entity.type))
81
+ .map(entity => ({ score: entity.score ?? 0, item: { kind: entity.type, title: entity.name, text: entity.summary } }));
82
+ return [...facts, ...entities].sort((left, right) => right.score - left.score).slice(0, RESULTS_PER_QUERY)
83
+ .map(({ item }) => ({ kind: visibleText(item.kind), title: visibleText(item.title), text: visibleText(item.text) }));
84
+ }
85
+
86
+ const visibleText = value => shareableText(withoutControls(value));
87
+
88
+ // Who answers for a shared project, as a visitor may see it: the lead's name
89
+ // and responsibility and the project's name, cleaned like search results. Each
90
+ // name is cut to CARD_NAME_CHARS code points and CARD_NAME_BYTES serialized
91
+ // bytes first, then the responsibility to what keeps the whole object, ok
92
+ // included, within MAX_CARD_BYTES, which is never passed. With the action
93
+ // added the reply stays well within the 1 KB a card may cross devices with.
94
+ // Answers the exact object the port returns and its serialized size.
95
+ const MAX_CARD_BYTES = 700;
96
+ const CARD_NAME_CHARS = 80;
97
+ const CARD_NAME_BYTES = 200;
98
+
99
+ export function sharedCard({ name, responsibility, projectName }) {
100
+ const serialized = text => Buffer.byteLength(JSON.stringify(text)) - 2;
101
+ const short = value => utf8Preview([...visibleText(value)].slice(0, CARD_NAME_CHARS).join(''), CARD_NAME_BYTES, serialized, CUT_MARK);
102
+ const card = { ok: true, name: short(name), responsibility: '', projectName: short(projectName) };
103
+ const room = MAX_CARD_BYTES - Buffer.byteLength(JSON.stringify(card));
104
+ card.responsibility = utf8Preview(visibleText(responsibility), room, serialized, CUT_MARK);
105
+ if (Buffer.byteLength(JSON.stringify(card)) > MAX_CARD_BYTES) card.responsibility = '';
106
+ return { card, bytes: Buffer.byteLength(JSON.stringify(card)) };
107
+ }
108
+
109
+ // Items in order until the serialized answer would pass MAX_ANSWER_BYTES; the
110
+ // item that does not fit is cut to what does, and the rest is left out.
111
+ // Measured with truncated false, the longer of its two values.
112
+ function boundedAnswer(answers) {
113
+ const answer = { ok: true, results: answers.map(({ query }) => ({ query, items: [] })), truncated: false };
114
+ const size = () => Buffer.byteLength(JSON.stringify(answer));
115
+ for (const [index, { items }] of answers.entries()) {
116
+ const kept = answer.results[index].items;
117
+ for (const item of items) {
118
+ kept.push(item);
119
+ if (size() <= MAX_ANSWER_BYTES) continue;
120
+ kept[kept.length - 1] = { ...item, text: '' };
121
+ const room = MAX_ANSWER_BYTES - size();
122
+ if (room <= Buffer.byteLength(CUT_MARK)) kept.pop();
123
+ else kept[kept.length - 1].text = utf8Preview(item.text, room, text => Buffer.byteLength(JSON.stringify(text)) - 2, CUT_MARK);
124
+ answer.truncated = true;
125
+ return { answer, bytes: size() };
126
+ }
127
+ }
128
+ return { answer, bytes: size() };
129
+ }