fuli-context 0.27.2 → 0.27.3

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 (321) hide show
  1. package/dist/web/assets/{AboutPage-Bgcf03U0.js → AboutPage-C-fJv2EQ.js} +1 -1
  2. package/dist/web/assets/AboutSectionHeading-CaZhhuuu.css +1 -0
  3. package/dist/web/assets/AboutSectionHeading-DLjnjHfb.js +1 -0
  4. package/dist/web/assets/AgentAppsPage-CBcUlh8U.js +1 -0
  5. package/dist/web/assets/AgentAvatar-Cu_TwSqc.js +1 -0
  6. package/dist/web/assets/AgentAvatar-VUEAsIqM.css +1 -0
  7. package/dist/web/assets/{AgentHand-BwE2VGth.js → AgentHand-1yBhYv72.js} +1 -1
  8. package/dist/web/assets/AgentManagement-Cc00RLSO.css +1 -0
  9. package/dist/web/assets/AgentManagement-D8jHUEWK.js +7 -0
  10. package/dist/web/assets/{AgentMentionCopy-y3JD1Cef.js → AgentMentionCopy-BRxaxi6r.js} +1 -1
  11. package/dist/web/assets/{AgentName-XrBcHq4R.js → AgentName-CL8xix6s.js} +1 -1
  12. package/dist/web/assets/{AgentProfilePage-DE7z980p.js → AgentProfilePage-BosYAypt.js} +3 -3
  13. package/dist/web/assets/AgentServicesPage-BQHw7Cyx.js +1 -0
  14. package/dist/web/assets/{AppViewerPage-BaKMk9pp.js → AppViewerPage-CO5-dW38.js} +1 -1
  15. package/dist/web/assets/{BackToTop-DITd9y7X.js → BackToTop-dl4Y4CgO.js} +1 -1
  16. package/dist/web/assets/{BoardCardFieldsMenu-CWtHiVR-.js → BoardCardFieldsMenu-BBqsgCq8.js} +1 -1
  17. package/dist/web/assets/{BoardMoveMenu-CEDdltY7.js → BoardMoveMenu-Rys8yvXz.js} +1 -1
  18. package/dist/web/assets/{Breadcrumb-C98voz9V.js → Breadcrumb-DXXN0moP.js} +1 -1
  19. package/dist/web/assets/{CaptureChangePage-CE8tJfiQ.js → CaptureChangePage-lNiPS4XI.js} +1 -1
  20. package/dist/web/assets/{CopyFixPrompt-C2hC04lV.js → CopyFixPrompt-Cpve4rdS.js} +1 -1
  21. package/dist/web/assets/{DataFormatPage-BjZkck9o.js → DataFormatPage-DpBIwY-n.js} +1 -1
  22. package/dist/web/assets/DebugTurnPage-DzJ07GMF.js +1 -0
  23. package/dist/web/assets/{DebugTurnsPage-BlDDz1Fk.js → DebugTurnsPage-CNAeNt5i.js} +1 -1
  24. package/dist/web/assets/DialogTitle-D0EVi01-.js +1 -0
  25. package/dist/web/assets/{EmployeeRedirectPage-CSSuvAqx.js → EmployeeRedirectPage-qlH0SVZY.js} +1 -1
  26. package/dist/web/assets/EmployeeScopeDialog-C4B724Jj.js +1 -0
  27. package/dist/web/assets/{EmployeeWorkbench-DvEojWb7.js → EmployeeWorkbench-BgpxZ_1F.js} +1 -1
  28. package/dist/web/assets/FieldRoot-oxmAMICi.js +1 -0
  29. package/dist/web/assets/FlaBlockedTasks-CWa5T5nU.css +1 -0
  30. package/dist/web/assets/FlaBlockedTasks-DGw9I-j7.js +1 -0
  31. package/dist/web/assets/{FlaGrowth-OdlmgEVi.js → FlaGrowth-Ct4GbCJZ.js} +1 -1
  32. package/dist/web/assets/{FlaOccupationKit-CnouVWnU.js → FlaOccupationKit-Cbx058JA.js} +1 -1
  33. package/dist/web/assets/{FlaTaskSheets-rSIdCtzz.js → FlaTaskSheets-CoWj7Gw3.js} +1 -1
  34. package/dist/web/assets/{FlasPage-BZ791caF.js → FlasPage-BGrz_P1x.js} +1 -1
  35. package/dist/web/assets/{GrowthLoading-BYOSvxZY.js → GrowthLoading-BHxVzIoM.js} +1 -1
  36. package/dist/web/assets/{HowtoPage-DNTwYQCD.css → HowtoPage-DfHVIb8E.css} +1 -1
  37. package/dist/web/assets/HowtoPage-Dx7xGKQi.js +1 -0
  38. package/dist/web/assets/{InboxPage-C3cSvJjB.js → InboxPage-ByZQpihN.js} +1 -1
  39. package/dist/web/assets/{KnowledgeDeleteButton-yc8Gi-BH.js → KnowledgeDeleteButton-dvslN7EO.js} +1 -1
  40. package/dist/web/assets/{KnowledgeHardDeleteSection-D9Ktc-uC.js → KnowledgeHardDeleteSection-DMARNrze.js} +1 -1
  41. package/dist/web/assets/{KnowledgeItemEditPage-Csy4oOxD.js → KnowledgeItemEditPage-D7X3K-Fu.js} +1 -1
  42. package/dist/web/assets/{KnowledgeItemSummaryCard-BH5UYmde.js → KnowledgeItemSummaryCard-Carpboje.js} +1 -1
  43. package/dist/web/assets/KnowledgeOrganizerPage-CdFva4xO.js +1 -0
  44. package/dist/web/assets/KnowledgePage-CwrWmdLl.js +1 -0
  45. package/dist/web/assets/KnowledgePeek-C4QSXTOF.js +1 -0
  46. package/dist/web/assets/{KnowledgeTurnReceiptPage-Bd_LIdCc.js → KnowledgeTurnReceiptPage-CY85DtmF.js} +1 -1
  47. package/dist/web/assets/{KnowledgeWorkspace-Dr-zYpDQ.js → KnowledgeWorkspace-D8Q8usZc.js} +1 -1
  48. package/dist/web/assets/{MeAvatar-CmhuRFOf.js → MeAvatar-WSCaLEJ1.js} +1 -1
  49. package/dist/web/assets/{MeLink-BesUihiS.js → MeLink-rP0IiTaj.js} +1 -1
  50. package/dist/web/assets/MenuSeparator-C_h65gsb.js +1 -0
  51. package/dist/web/assets/ModelSettingsPage-B_Udk6b7.js +1 -0
  52. package/dist/web/assets/{NewSessionPanel-Bvp9ElzU.js → NewSessionPanel-DNYTQ0Lw.js} +1 -1
  53. package/dist/web/assets/{NotFoundPage-BrolI2fz.js → NotFoundPage-BbnR0KYy.js} +1 -1
  54. package/dist/web/assets/{NoticeRow-Q9QT5NqB.js → NoticeRow-CcQ1J4wZ.js} +1 -1
  55. package/dist/web/assets/OccupationsPage-DQGGceta.js +1 -0
  56. package/dist/web/assets/{PageOutline-DULpqEwg.js → PageOutline-nKD_AvCJ.js} +1 -1
  57. package/dist/web/assets/{PageStack-DTzWJuae.js → PageStack-BVHOFq7x.js} +1 -1
  58. package/dist/web/assets/PersonalProfilePage-Cm1NxyU0.js +1 -0
  59. package/dist/web/assets/PersonalProjectsPage-CgqC4u77.js +1 -0
  60. package/dist/web/assets/{PinIcon-YYoaYKTx.js → PinIcon-DxjWqB7x.js} +1 -1
  61. package/dist/web/assets/PopperContent-BkTZlJWP.js +1 -0
  62. package/dist/web/assets/Presence-DrSz_UA1.js +3 -0
  63. package/dist/web/assets/{ProfileAuthorChip-BEfiuJbm.js → ProfileAuthorChip-CN1ZYzKN.js} +1 -1
  64. package/dist/web/assets/ProjectAgentsPage-DMnRnXDT.js +5 -0
  65. package/dist/web/assets/{ProjectJudgmentPolicy-CCzHtmOb.js → ProjectJudgmentPolicy-DBszt68M.js} +1 -1
  66. package/dist/web/assets/{RoundtablesPage-DL-IOngN.css → RoundtablesPage-Cdbl7Tbx.css} +1 -1
  67. package/dist/web/assets/RoundtablesPage-QtNyNaDg.js +13 -0
  68. package/dist/web/assets/{RovingFocusGroup-DS4v3bEq.js → RovingFocusGroup-Dvddk8pN.js} +1 -1
  69. package/dist/web/assets/RovingFocusItem-Ck-FCX8l.js +1 -0
  70. package/dist/web/assets/{SessionMigrationPage-DrK4df0L.js → SessionMigrationPage-Chm5L6p4.js} +1 -1
  71. package/dist/web/assets/{SessionRecordsPage-CFAgM65g.js → SessionRecordsPage-BHPaCRH-.js} +1 -1
  72. package/dist/web/assets/SettingsPage-C80ljt40.js +1 -0
  73. package/dist/web/assets/SettingsPage-CnqtNPWd.css +1 -0
  74. package/dist/web/assets/{SharedJefaReportPage-DbTPYwa_.js → SharedJefaReportPage-DHD4As4b.js} +1 -1
  75. package/dist/web/assets/{StatementCalendarPage-CIo5R14R.js → StatementCalendarPage-lkq1OrUT.js} +1 -1
  76. package/dist/web/assets/{StatementRows-CubaC9KG.js → StatementRows-DS-_XbkC.js} +1 -1
  77. package/dist/web/assets/{TagVocabularyPage-BVlLmKv2.js → TagVocabularyPage-ap97B1fd.js} +1 -1
  78. package/dist/web/assets/TaskBlockerClear-BBmPbomO.css +1 -0
  79. package/dist/web/assets/TaskBlockerClear-xmjIgmON.js +1 -0
  80. package/dist/web/assets/TaskBlockerNotice-D3awZbiX.js +1 -0
  81. package/dist/web/assets/{TaskReason-CrLPeiOg.js → TaskReason-Y_gLRUR4.js} +1 -1
  82. package/dist/web/assets/{TeamCard-SBMJMd7P.js → TeamCard-C5BOBfgK.js} +1 -1
  83. package/dist/web/assets/{TeamCardsWidget-CGLW04TH.js → TeamCardsWidget-jLieh7GV.js} +1 -1
  84. package/dist/web/assets/TeamIsland-C2U6j6W0.js +9 -0
  85. package/dist/web/assets/Teleport-RJS88HRO.js +1 -0
  86. package/dist/web/assets/{TextField-Cd8UOHKv.js → TextField-CwecNrfC.js} +1 -1
  87. package/dist/web/assets/TodayPage-wkVzpeI1.js +1 -0
  88. package/dist/web/assets/{TonborgDelegationSwitch-BOidSjkk.js → TonborgDelegationSwitch-C9jrfVCw.js} +1 -1
  89. package/dist/web/assets/{UiChip-B2z0UERX.js → UiChip-DLTDKZh9.js} +1 -1
  90. package/dist/web/assets/UiDialog-u4ZkP4DG.js +1 -0
  91. package/dist/web/assets/{UiDisclosure-Bw4Wu0Dm.js → UiDisclosure-CKVkr79z.js} +1 -1
  92. package/dist/web/assets/{UiIcon-BuaIQ57Z.js → UiIcon-D2DJw7hg.js} +1 -1
  93. package/dist/web/assets/UiSegmented-D6pLjXXW.js +1 -0
  94. package/dist/web/assets/{UiWeight-DpBexUUy.js → UiWeight-BOEi9suT.js} +1 -1
  95. package/dist/web/assets/{VirtualDirectoryList-RV2XtTPO.js → VirtualDirectoryList-BX3eeyRo.js} +1 -1
  96. package/dist/web/assets/{VisuallyHidden-DciDIEua.js → VisuallyHidden-DjqI8CEj.js} +1 -1
  97. package/dist/web/assets/{VisuallyHiddenInput-mfi7gVBu.js → VisuallyHiddenInput-Cc2Qp6aL.js} +1 -1
  98. package/dist/web/assets/WidgetSlot-7bCPwUl2.js +2 -0
  99. package/dist/web/assets/{WorkbenchListPage-suawrzji.js → WorkbenchListPage-DlE6S2WC.js} +1 -1
  100. package/dist/web/assets/_plugin-vue_export-helper-BXUcxlz4.js +9 -0
  101. package/dist/web/assets/{agent-apps-B_0syRPr.js → agent-apps-CFWQ-pVX.js} +1 -1
  102. package/dist/web/assets/agent-occupation-BQG-rvnx.js +1 -0
  103. package/dist/web/assets/{agent-pins-B9wMvxGh.js → agent-pins-XtAvsJ8S.js} +1 -1
  104. package/dist/web/assets/{agent-roster-records-CY0aSUNq.js → agent-roster-records-DiZKG26q.js} +1 -1
  105. package/dist/web/assets/{agent-work-summary-Cs8jPFL0.js → agent-work-summary-CvHRy3NR.js} +1 -1
  106. package/dist/web/assets/{attach-closest-edge-BRDsvYPn.js → attach-closest-edge-De5463t-.js} +1 -1
  107. package/dist/web/assets/{attention-store-HMiJ1K6M.js → attention-store-CWRvv8xT.js} +1 -1
  108. package/dist/web/assets/{badge-jafr8Jg1.js → badge-CyUHAZlb.js} +1 -1
  109. package/dist/web/assets/{button-d6TCVE0s.js → button-DgFpUg62.js} +1 -1
  110. package/dist/web/assets/{card-ebnaJXQA.js → card-BG73LSt9.js} +1 -1
  111. package/dist/web/assets/{catalog-CvdvPGYk.js → catalog-KaWiF7K5.js} +1 -1
  112. package/dist/web/assets/checkbox-DNX0E3Ym.js +1 -0
  113. package/dist/web/assets/{client--hZxcKYo.js → client-eeoB__-w.js} +1 -1
  114. package/dist/web/assets/{client-links-store-XyR0EzJi.js → client-links-store-C1T7b2HQ.js} +1 -1
  115. package/dist/web/assets/combobox-BG6YUVkp.js +1 -0
  116. package/dist/web/assets/{console-D597wx3f.js → console-KA3Jxkr4.js} +1 -1
  117. package/dist/web/assets/{conversation-launcher-settings-CFFH9C2y.js → conversation-launcher-settings-QWrAaAPe.js} +1 -1
  118. package/dist/web/assets/copy-mention-BwT-8AqP.js +1 -0
  119. package/dist/web/assets/dialog-CPHmFum7.js +1 -0
  120. package/dist/web/assets/{dist-B78L06NL.js → dist-CTCo5IXd.js} +1 -1
  121. package/dist/web/assets/{dist-Dy5JoHWF.js → dist-e1tihV1g.js} +1 -1
  122. package/dist/web/assets/dropdown-menu-BScsuHhH.js +1 -0
  123. package/dist/web/assets/{field-DeguT8it.js → field-8F_Pt8vb.js} +1 -1
  124. package/dist/web/assets/{format-bytes-Br4RwHnA.js → format-bytes-DkVJGLsS.js} +1 -1
  125. package/dist/web/assets/hover-card-Db-Mrxk6.js +1 -0
  126. package/dist/web/assets/{identity-V8oA_IuB.js → identity-wfQfyysH.js} +1 -1
  127. package/dist/web/assets/index-CRSH-FaE.js +24 -0
  128. package/dist/web/assets/{input-CRCpCN_c.js → input-DFTIPfkE.js} +1 -1
  129. package/dist/web/assets/label-BDet7nvg.js +1 -0
  130. package/dist/web/assets/label-table-BVh638Sy.js +1 -0
  131. package/dist/web/assets/{model-CwFZ_IgV.js → model-BwEuimI0.js} +1 -1
  132. package/dist/web/assets/{model-CjQPAeCy.js → model-Bzgg7OTO.js} +1 -1
  133. package/dist/web/assets/{model-BwOv-HBS.js → model-C7J0jC4U.js} +1 -1
  134. package/dist/web/assets/{model-D-vak-m0.js → model-D3j-Q4br.js} +1 -1
  135. package/dist/web/assets/{model-C-60EMcI.js → model-DFuUc43Z.js} +1 -1
  136. package/dist/web/assets/{model-B4AuKvPj.js → model-DGpMX2GY.js} +1 -1
  137. package/dist/web/assets/{model-CB4ObIOH.js → model-LXhsHZ_S.js} +1 -1
  138. package/dist/web/assets/{model-CUAxIOXR.js → model-WhGp0XZv.js} +1 -1
  139. package/dist/web/assets/{motion-D5Fs3-ut.js → motion-0KGuL0P9.js} +1 -1
  140. package/dist/web/assets/{motion-Cr9JChF9.js → motion-BhDwEDuX.js} +1 -1
  141. package/dist/web/assets/{motion-preference-DgdzdVh8.js → motion-preference--VYomm-z.js} +1 -1
  142. package/dist/web/assets/{occupation-catalog-DHsjkd_q.js → occupation-catalog-D5SQWfUI.js} +1 -1
  143. package/dist/web/assets/{occupation-kits-BVLLRN4V.js → occupation-kits-CrqixyUx.js} +1 -1
  144. package/dist/web/assets/{option-DhAwzags.js → option-C9CkqCvy.js} +1 -1
  145. package/dist/web/assets/{orchestration-filters-lhR2CHlQ.js → orchestration-filters-DTnWbCEm.js} +1 -1
  146. package/dist/web/assets/{overview-data-QDnygL-x.js → overview-data-BvW9uhT4.js} +1 -1
  147. package/dist/web/assets/{page-refresh-BVRlo-dI.js → page-refresh-GRJ3nMpT.js} +1 -1
  148. package/dist/web/assets/{page-title-ReSXziuS.js → page-title-B9HNL7K4.js} +1 -1
  149. package/dist/web/assets/{person-profile-BgUfg57K.js → person-profile-Cng7edLa.js} +1 -1
  150. package/dist/web/assets/popover-BgaSR8Zf.js +1 -0
  151. package/dist/web/assets/popup-host-CFQVWMSj.js +1 -0
  152. package/dist/web/assets/{preference-conflicts-a-H51vUw.js → preference-conflicts-WphCdbo6.js} +1 -1
  153. package/dist/web/assets/{profile-model-CM98TJsj.js → profile-model-B9K6ylO1.js} +1 -1
  154. package/dist/web/assets/{project-board-layout-RH6UXkCA.js → project-board-layout-GxgeqkX4.js} +1 -1
  155. package/dist/web/assets/{project-capture-DcQ8cXIt.js → project-capture-C6NQkcJw.js} +1 -1
  156. package/dist/web/assets/{project-origin-BNzeAazi.js → project-origin-DuSzjbhd.js} +1 -1
  157. package/dist/web/assets/{quick-edit-api-COKVNuPk.js → quick-edit-api-BDFnInRp.js} +1 -1
  158. package/dist/web/assets/radio-group-D6RUfdDr.js +1 -0
  159. package/dist/web/assets/{review-api-CAKGInLD.js → review-api-D31JYGWJ.js} +1 -1
  160. package/dist/web/assets/{review-list-CbpXvBp-.js → review-list-Cvacm108.js} +1 -1
  161. package/dist/web/assets/{review-store-BzrmqVoj.js → review-store-D7_Vfhh7.js} +1 -1
  162. package/dist/web/assets/{role-names-Ba0c6AbS.js → role-names-DebBvCND.js} +1 -1
  163. package/dist/web/assets/{roundtable-live-CoKmaXKd.js → roundtable-live-DfN7Sw9Q.js} +1 -1
  164. package/dist/web/assets/{runtime-dom.esm-bundler-CaYBCU9Y.js → runtime-dom.esm-bundler-DBdCxLeu.js} +1 -1
  165. package/dist/web/assets/select-C0ecw2Gn.js +1 -0
  166. package/dist/web/assets/{session-launch-offers-C-oBkMKe.js → session-launch-offers-BO40dDPk.js} +1 -1
  167. package/dist/web/assets/{settings-autosave-C3bTildI.js → settings-autosave-q7Wr9G3O.js} +1 -1
  168. package/dist/web/assets/{settings-tabs-DFZcxOaQ.js → settings-tabs-D7-3akvW.js} +1 -1
  169. package/dist/web/assets/shared-report-j27wViAk.js +3 -0
  170. package/dist/web/assets/{source-adapters-CunVF9JG.js → source-adapters-D3VpWZ6y.js} +1 -1
  171. package/dist/web/assets/switch-ClI3aPV3.js +1 -0
  172. package/dist/web/assets/tabs-BYpn35nj.js +1 -0
  173. package/dist/web/assets/{task-card-fields-Ce11pWnv.js → task-card-fields-CR_cHUml.js} +1 -1
  174. package/dist/web/assets/{task-labels-BulIuDQB.js → task-labels-C6FR9pf_.js} +1 -1
  175. package/dist/web/assets/{task-reason-gHlp8KHO.js → task-reason-C2NjR8__.js} +1 -1
  176. package/dist/web/assets/{team-sheets-BzV1WjjK.js → team-sheets-5rb7d8An.js} +1 -1
  177. package/dist/web/assets/{textarea-D6czUY3a.js → textarea-BW51g0FT.js} +1 -1
  178. package/dist/web/assets/ui-rJlFkhnh.js +1 -0
  179. package/dist/web/assets/{useAgentRecords-DijrJ79w.js → useAgentRecords-BDEGuChX.js} +1 -1
  180. package/dist/web/assets/{useAgentWorkSummary-CUv88AVP.js → useAgentWorkSummary-B7fcYNAf.js} +1 -1
  181. package/dist/web/assets/{useApi-CROJJdhE-CxqsMZ6P.js → useApi-CROJJdhE-CXkEmQ40.js} +1 -1
  182. package/dist/web/assets/{useClipboardCopy-uGyNKuWB.js → useClipboardCopy-CLyPUkax.js} +1 -1
  183. package/dist/web/assets/useDirection-hD2Ki6e_.js +1 -0
  184. package/dist/web/assets/{useFocusReturn-7BKdKvqF.js → useFocusReturn-BzZRnzjC.js} +1 -1
  185. package/dist/web/assets/useForwardExpose-BFvXozfQ.js +1 -0
  186. package/dist/web/assets/{useForwardPropsEmits-BMeknK03.js → useForwardPropsEmits-BQIBYWrX.js} +1 -1
  187. package/dist/web/assets/useForwardScopeId-DJpBz5AW.js +1 -0
  188. package/dist/web/assets/{useKnowledgeConfirm-mFWI8EbK.js → useKnowledgeConfirm-B7ljY3BE.js} +1 -1
  189. package/dist/web/assets/{useKnowledgeItemPeek-DtazLM2s.js → useKnowledgeItemPeek-W54o0cXF.js} +1 -1
  190. package/dist/web/assets/{useMinimumLoadingDisplay-D5UC2KRz.js → useMinimumLoadingDisplay-i0As_nIh.js} +1 -1
  191. package/dist/web/assets/useNow-w9sbWus7.js +1 -0
  192. package/dist/web/assets/{usePageTools-BXkR_gpB.js → usePageTools-ChjnsxqE.js} +1 -1
  193. package/dist/web/assets/usePrimitiveElement-tPtHrVAh.js +1 -0
  194. package/dist/web/assets/{useProjectAgentRoster-blZ5REnH.js → useProjectAgentRoster-Cv-2h61l.js} +1 -1
  195. package/dist/web/assets/{useRoutePeek-D_j5KVFv.js → useRoutePeek-6T3XqFw1.js} +1 -1
  196. package/dist/web/assets/{useTeamWork-e57CKhLW.js → useTeamWork-rjEihEaF.js} +1 -1
  197. package/dist/web/assets/{useTypeahead-6a1q-4Oq.js → useTypeahead-BBlzBvAi.js} +1 -1
  198. package/dist/web/assets/{utils-BQtZ8ZUw.js → utils-Bhge2HAf.js} +1 -1
  199. package/dist/web/assets/{utils-DBsOpQt4.js → utils-DVo87S8o.js} +1 -1
  200. package/dist/web/assets/{verification-BlF0avgs.js → verification-BKmnZihv.js} +1 -1
  201. package/dist/web/assets/{version-oG6VyAd6.js → version-BYqyCHiB.js} +1 -1
  202. package/dist/web/assets/{vue-router-CCvxNose.js → vue-router-BJZE7CCr.js} +1 -1
  203. package/dist/web/index.html +75 -73
  204. package/docs/agent-roundtable.md +5 -3
  205. package/graph-provider/fuli_graph/graph_field_contract.py +2 -0
  206. package/graph-provider/fuli_graph/graph_format_migrations.py +5 -0
  207. package/graph-provider/fuli_graph/knowledge_search.py +84 -7
  208. package/graph-provider/fuli_graph/knowledge_sensitivity.py +105 -0
  209. package/graph-provider/fuli_graph/knowledge_source_delete_copies.py +36 -0
  210. package/graph-provider/fuli_graph/models.py +25 -0
  211. package/graph-provider/fuli_graph/project_agent_remote_origins.py +27 -13
  212. package/graph-provider/pyproject.toml +1 -1
  213. package/native/win32/fuli-win-helper.exe +0 -0
  214. package/npm-shrinkwrap.json +2 -2
  215. package/package.json +1 -1
  216. package/packages/roundtable/src/agents/claude-code/wake.js +13 -8
  217. package/packages/roundtable/src/host.js +21 -0
  218. package/packages/roundtable/src/peer/control-cli.js +5 -1
  219. package/packages/roundtable/src/peer/control.js +10 -3
  220. package/packages/roundtable/src/peer/coordinator-service.js +30 -13
  221. package/packages/roundtable/src/peer/coordinator-store.js +11 -4
  222. package/packages/roundtable/src/peer/nearby-pairing.js +13 -1
  223. package/packages/roundtable/src/peer/origin-proof.js +17 -2
  224. package/packages/roundtable/src/peer/peer-port.js +45 -7
  225. package/packages/roundtable/src/peer/peer-runtime.js +20 -4
  226. package/packages/roundtable/src/peer/protocol.js +68 -2
  227. package/packages/roundtable/src/peer/query-answer.js +78 -0
  228. package/packages/roundtable/src/peer/runner.js +107 -13
  229. package/packages/roundtable/src/roundtable/service.js +73 -14
  230. package/packages/roundtable/src/roundtable/store.js +8 -0
  231. package/packages/roundtable/src/roundtable/wake-attempt-store.js +26 -0
  232. package/packages/roundtable/src/roundtable/wake-failure.js +77 -0
  233. package/packages/roundtable/src/roundtable/wake-ladder.js +5 -0
  234. package/packages/roundtable/src/roundtable/wake.js +39 -15
  235. package/packages/roundtable/src/standalone/host.js +5 -2
  236. package/skills/capturing-session-knowledge/references/coordination.md +11 -0
  237. package/skills/operating-fuli/SKILL.md +5 -3
  238. package/skills/operating-fuli/references/workflow-recipes.md +3 -3
  239. package/src/agent-apps/host-tools/catalog.js +1 -0
  240. package/src/agent-peer/http.js +15 -1
  241. package/src/agent-roundtable/tools.js +8 -0
  242. package/src/agent-tools/interface-catalog.js +5 -4
  243. package/src/data-format/local-stores.js +3 -0
  244. package/src/desktop/windows-controller.js +17 -4
  245. package/src/desktop/windows-installation-context.js +26 -1
  246. package/src/diagnostics/failure-records.js +16 -0
  247. package/src/diagnostics/query.js +2 -2
  248. package/src/diagnostics/safe-event.js +4 -12
  249. package/src/external-knowledge/safe-diagnostic.js +2 -5
  250. package/src/graphiti/local-runtimes.js +4 -0
  251. package/src/graphiti/roundtable-host.js +49 -0
  252. package/src/http/api-router.js +2 -0
  253. package/src/http/visitor-access-api-router.js +37 -0
  254. package/src/mcp/create-mcp-server.js +2 -0
  255. package/src/mcp/session-id.js +1 -1
  256. package/src/mcp/tool-annotations.js +3 -1
  257. package/src/presence/windows-helper-pin.js +1 -1
  258. package/src/text/control-characters.js +9 -0
  259. package/src/text/local-paths.js +48 -0
  260. package/src/text/shareable-text.js +23 -0
  261. package/src/visitor-access/port.js +194 -0
  262. package/src/visitor-access/rate-limit.js +26 -0
  263. package/src/visitor-access/shared-project-search.js +129 -0
  264. package/src/visitor-access/store.js +192 -0
  265. package/src/whats-new/lines/0.27.3.json +13 -0
  266. package/dist/web/assets/AboutSectionHeading-BaQBY_Xs.js +0 -1
  267. package/dist/web/assets/AboutSectionHeading-DjXpIV27.css +0 -1
  268. package/dist/web/assets/AgentAppsPage-DNuujLT2.js +0 -1
  269. package/dist/web/assets/AgentAvatar-DGXedNUs.js +0 -1
  270. package/dist/web/assets/AgentAvatar-DbsG1_BY.css +0 -1
  271. package/dist/web/assets/AgentManagement-2r8DUS1N.js +0 -7
  272. package/dist/web/assets/AgentManagement-hRkMpjvY.css +0 -1
  273. package/dist/web/assets/AgentServicesPage-CWfGSxcb.js +0 -1
  274. package/dist/web/assets/DebugTurnPage-B82geu1y.js +0 -1
  275. package/dist/web/assets/DialogTitle-fpANsAcy.js +0 -1
  276. package/dist/web/assets/EmployeeScopeDialog-BoEMQOEj.js +0 -1
  277. package/dist/web/assets/FieldRoot-D3lnRut5.js +0 -1
  278. package/dist/web/assets/HowtoPage-lYwzi4Vm.js +0 -1
  279. package/dist/web/assets/KnowledgeOrganizerPage-BTeQX0gH.js +0 -1
  280. package/dist/web/assets/KnowledgePage-BuukvNxz.js +0 -1
  281. package/dist/web/assets/KnowledgePeek-D0pcU7U5.js +0 -1
  282. package/dist/web/assets/MenuSeparator-BGo0DgyF.js +0 -1
  283. package/dist/web/assets/ModelSettingsPage-CBPwuIBM.js +0 -1
  284. package/dist/web/assets/OccupationsPage-CZCeeihl.js +0 -1
  285. package/dist/web/assets/PersonalProfilePage-DbXWycCQ.js +0 -1
  286. package/dist/web/assets/PersonalProjectsPage-pdAJpnZd.js +0 -1
  287. package/dist/web/assets/PopperContent-CnNwFMIA.js +0 -1
  288. package/dist/web/assets/Presence-CuIoA2sH.js +0 -3
  289. package/dist/web/assets/ProjectAgentsPage-BPf2RLsw.js +0 -5
  290. package/dist/web/assets/RoundtablesPage-BDU4W-bg.js +0 -13
  291. package/dist/web/assets/RovingFocusItem-bLEnnw2Y.js +0 -1
  292. package/dist/web/assets/SettingsPage-CsJxhhsu.js +0 -1
  293. package/dist/web/assets/SettingsPage-VX_e4ty2.css +0 -1
  294. package/dist/web/assets/TaskBlockerNotice-YSvmy6B4.js +0 -1
  295. package/dist/web/assets/TeamIsland-jJKTwCJD.js +0 -9
  296. package/dist/web/assets/Teleport-CRjWb-eC.js +0 -1
  297. package/dist/web/assets/TodayPage-BvbZCEFJ.js +0 -1
  298. package/dist/web/assets/UiSegmented-DlI1vR3k.js +0 -1
  299. package/dist/web/assets/WidgetSlot-xFZKjZ5z.js +0 -2
  300. package/dist/web/assets/_plugin-vue_export-helper-CYsAcErn.js +0 -9
  301. package/dist/web/assets/agent-occupation-C-9THmIG.js +0 -1
  302. package/dist/web/assets/checkbox-CdIozFRY.js +0 -1
  303. package/dist/web/assets/combobox-DzLSYxyO.js +0 -1
  304. package/dist/web/assets/copy-mention-CWsw8po1.js +0 -1
  305. package/dist/web/assets/dialog-SLa8cPbS.js +0 -1
  306. package/dist/web/assets/dropdown-menu-C-PcZxRY.js +0 -1
  307. package/dist/web/assets/hover-card-B-H7mMvg.js +0 -1
  308. package/dist/web/assets/index-DdAVEwQV.js +0 -24
  309. package/dist/web/assets/label-DwMBzI2m.js +0 -1
  310. package/dist/web/assets/label-table-DiaZlHIp.js +0 -1
  311. package/dist/web/assets/popover-UYksnAeH.js +0 -1
  312. package/dist/web/assets/popup-host-DMoMkD3v.js +0 -1
  313. package/dist/web/assets/radio-group-DfegNkLG.js +0 -1
  314. package/dist/web/assets/select-Bq2TQ0Gw.js +0 -1
  315. package/dist/web/assets/shared-report-Ci1jBiYV.js +0 -3
  316. package/dist/web/assets/switch-DaUSEDq0.js +0 -1
  317. package/dist/web/assets/tabs-B_7xQRfl.js +0 -1
  318. package/dist/web/assets/ui-BCHzwL4X.js +0 -1
  319. package/dist/web/assets/useDirection-Bi78LycK.js +0 -1
  320. package/dist/web/assets/useForwardScopeId-DHGSyWlZ.js +0 -1
  321. package/dist/web/assets/usePrimitiveElement-BxOn-Fn_.js +0 -1
@@ -0,0 +1,48 @@
1
+ // A file-system path of this computer inside text. Text that leaves this
2
+ // computer's own process (a diagnostic event, a visitor's search answer)
3
+ // names no such path; when unsure, more is replaced rather than less.
4
+ //
5
+ // A folder name may hold spaces: a segment followed by another separator is
6
+ // part of the path whatever it contains (C:\Users\First Last\file.txt).
7
+ //
8
+ // mode 'strict' (the default, a visitor's answer) also follows spaces in the
9
+ // last segment, preferring to replace too much:
10
+ // - every absolute POSIX path counts, under any root;
11
+ // - a drive or UNC path runs to the end of its line or quoted string
12
+ // (C:\Users\Alice\Private Repo);
13
+ // - a POSIX, home or relative path takes the following words on its line up
14
+ // to the last one, within eight, that holds a separator or ends in a dot
15
+ // extension (/home/alice/my folder/file.txt); words after it that do neither
16
+ // stay (see /opt/app for details).
17
+ // mode 'keep-routes' (a diagnostic event) treats only home, mount and system
18
+ // roots as POSIX paths and follows no spaces after the path: its operations
19
+ // name the console's own routes (POST /api/tasks) and the prose after them.
20
+ const SEGMENTS = String.raw`(?:[^\\/\r\n"'<>|*?]*[\\/])*[^\s\\/"'<>|*?]*`;
21
+ const WORD = String.raw`[^\s"'<>]`;
22
+ const PATH_WORDS = String.raw`(?:(?:[ \t]${WORD}+){0,7}?[ \t]${WORD}*?(?:[\\/]|\.[A-Za-z0-9]{1,8}(?!\w))${WORD}*)*`;
23
+ const TO_LINE_END = String.raw`[^\r\n"'<>|]*`;
24
+ const FILE_URL = String.raw`\bfile:[^\s"'<>]*`;
25
+ const HOME_OR_RELATIVE = String.raw`(?<![\w.~])(?:~|\.{1,2})[\\/]${SEGMENTS}`;
26
+ const POSIX = String.raw`(?<![\w.:/\\~-])\/`;
27
+ const SYSTEM_ROOTS = '(?:home|Users|mnt|root|tmp|var|private|etc|opt|Volumes|usr|srv|media|run)(?:/|\\b)';
28
+
29
+ const PATTERNS = Object.freeze({
30
+ strict: new RegExp([
31
+ FILE_URL,
32
+ String.raw`\b[A-Za-z]:[\\/]${TO_LINE_END}`,
33
+ String.raw`\\\\${TO_LINE_END}`,
34
+ `${HOME_OR_RELATIVE}${PATH_WORDS}`,
35
+ String.raw`${POSIX}[^\s/"'<>]+[^\s"'<>]*${PATH_WORDS}`
36
+ ].join('|'), 'gi'),
37
+ 'keep-routes': new RegExp([
38
+ FILE_URL,
39
+ String.raw`\b[A-Za-z]:[\\/]${SEGMENTS}`,
40
+ String.raw`\\\\${SEGMENTS}`,
41
+ HOME_OR_RELATIVE,
42
+ String.raw`${POSIX}${SYSTEM_ROOTS}[^\s"'<>]*`
43
+ ].join('|'), 'gi')
44
+ });
45
+
46
+ export function withoutLocalPaths(text, { mode = 'strict' } = {}) {
47
+ return text.replace(PATTERNS[mode], '[path]');
48
+ }
@@ -0,0 +1,23 @@
1
+ import { redactSensitiveContent } from '../security/sensitive-content.js';
2
+ import { withoutLocalPaths } from './local-paths.js';
3
+
4
+ // Text that leaves this computer's own process (a diagnostic event, a
5
+ // visitor's search answer): local paths replaced, URL credentials dropped and
6
+ // query values masked, PEM blocks, known secrets and long opaque values
7
+ // (tokens, signed ids) replaced. When unsure, more is replaced rather than less.
8
+ // Userinfo is everything up to the last @ before the host's path, query or
9
+ // fragment, so a password holding @ or : goes with it.
10
+ const URL_WITH_PARTS = /\b([a-z][a-z0-9+.-]*:\/\/)(?:[^\s/?#]*@)?([^\s?#]*)(\?[^\s#]*)?(#\S*)?/gi;
11
+ // A query pair outside a URL (?token=…, &key=…).
12
+ const QUERY_PAIR = /([?&][A-Za-z_][\w.-]*=)[^\s&#]*/g;
13
+ const PEM_BLOCK = /-----BEGIN [A-Z0-9 ]+-----[\s\S]*?(?:-----END [A-Z0-9 ]+-----|$)/g;
14
+ const OPAQUE_VALUE = /\b[A-Za-z0-9_-]{32,}\b/g;
15
+
16
+ // mode: how far a local path reaches (withoutLocalPaths), 'strict' by default.
17
+ export function shareableText(text, { mode = 'strict' } = {}) {
18
+ const masked = withoutLocalPaths(text.replace(PEM_BLOCK, '[redacted:pem]'), { mode })
19
+ .replace(URL_WITH_PARTS, (_url, scheme, rest, query = '') =>
20
+ `${scheme}${rest}${query && `?${query.slice(1).split('&').map(pair => `${pair.split('=')[0]}=…`).join('&')}`}`)
21
+ .replace(QUERY_PAIR, '$1…');
22
+ return redactSensitiveContent(masked).replace(OPAQUE_VALUE, '[redacted:opaque]');
23
+ }
@@ -0,0 +1,194 @@
1
+ import { withoutControls } from '../text/control-characters.js';
2
+ import { rateLimitRefusal } from './rate-limit.js';
3
+ import { searchableProject, searchableQueries, searchSharedProject, sharedCard } from './shared-project-search.js';
4
+ import { VisitorAccessStore } from './store.js';
5
+
6
+ // The one port the visiting assistant reaches this computer's shared project
7
+ // knowledge through: a requester from another computer searches one project
8
+ // or looks at who leads it, read-only, rate limited and recorded alike; and the
9
+ // per-requester mode. Every
10
+ // entry answers { ok: true, … } or { ok: false, code } and never throws for
11
+ // what a caller passed; nothing a visitor sends reaches the search but the
12
+ // project id and the queries.
13
+ //
14
+ // requester.key is who is asking, and every limit and record hangs on it. The
15
+ // caller builds it from an authenticated identity only: 'peer:' and the
16
+ // verified TLS fingerprint of the paired device, or 'guest:' and the id of a
17
+ // guest link this computer stored. Never from text the other side sent: the
18
+ // label and agent name are display text and may change freely; they never
19
+ // decide whether a requester is valid (only the key does), so no name can keep
20
+ // an attempt out of the limits and the record.
21
+ //
22
+ // A host that must check something with the Provider (the share's lead, the
23
+ // project's name) passes that check in (confirm, card): it runs only after the
24
+ // attempt is reserved, so a requester past its limits causes no Provider read.
25
+ const MODES = new Set(['ask_only', 'plan', 'auto', 'trusted']);
26
+ const DEFAULT_MODE = 'plan';
27
+ const REQUESTER_KEY = /^(?:peer:[0-9a-f]{64}|guest:[A-Za-z0-9_-]{8,64})$/;
28
+ // Display text is cut to this many UTF-16 units before it is cleaned.
29
+ const MAX_LABEL_UNITS = 1000;
30
+ const LABEL_CHARS = 120;
31
+ const READS_LIMIT = 200;
32
+
33
+ export function createVisitorAccess({ path = ':memory:', application, now = () => new Date(), warn }) {
34
+ const store = new VisitorAccessStore(path, { warn });
35
+
36
+ return {
37
+ // confirm(): optional; resolves null to go on, or a refusal code.
38
+ async searchSharedProject({ projectId, requester, queries, confirm = async () => null } = {}) {
39
+ const reservation = reserve({ projectId, requester, action: 'search', asked: () => searchableQueries(queries) });
40
+ if (reservation.code) return refused(reservation.code);
41
+ const refusal = await confirmed(confirm);
42
+ if (refusal) return settle(reservation.id, { outcome: 'refused', code: refusal }, refused(refusal));
43
+ let searched;
44
+ try {
45
+ searched = await searchSharedProject(application, { projectId: reservation.projectId, queries: reservation.queries });
46
+ } catch {
47
+ return settle(reservation.id, { outcome: 'failed', code: 'search_unavailable' }, refused('search_unavailable'));
48
+ }
49
+ return settle(reservation.id, { outcome: 'answered', bytes: searched.bytes,
50
+ resultsCount: searched.answer.results.reduce((count, result) => count + result.items.length, 0) }, searched.answer);
51
+ },
52
+
53
+ // A look at who answers for a shared project: card() resolves the lead's
54
+ // name and responsibility and the project's name as this computer knows
55
+ // them, or { code } to refuse; recorded and counted like a search, and
56
+ // cleaned like its results.
57
+ async showSharedCard({ projectId, requester, card } = {}) {
58
+ const reservation = reserve({ projectId, requester, action: 'card', asked: () => ({ queries: [] }) });
59
+ if (reservation.code) return refused(reservation.code);
60
+ let shown;
61
+ try {
62
+ const fields = await card();
63
+ if (typeof fields?.code === 'string') {
64
+ const code = plainCode(fields.code);
65
+ return settle(reservation.id, { outcome: 'refused', code }, refused(code));
66
+ }
67
+ shown = sharedCard(fields ?? {});
68
+ } catch {
69
+ return settle(reservation.id, { outcome: 'failed', code: 'card_unavailable' }, refused('card_unavailable'));
70
+ }
71
+ return settle(reservation.id, { outcome: 'answered', bytes: shown.bytes, resultsCount: 1 }, shown.card);
72
+ },
73
+
74
+ // A visiting query this computer refused before it reached this port
75
+ // (not shared, a wrong proof, a replay), once the asking device was
76
+ // proven: recorded with its code and counted toward that device's limits.
77
+ // projectId: the share's project when the host knows it, else none.
78
+ recordRefusedVisit({ requester, action, code, projectId = null } = {}) {
79
+ const who = requesterOf(requester);
80
+ if (!who) return refused('requester_invalid');
81
+ if (!ACTIONS.has(action) || typeof code !== 'string' || !PLAIN_CODE.test(code)) return refused('refusal_invalid');
82
+ const project = searchableProject(projectId) ? projectId : '';
83
+ try {
84
+ store.transaction(() => store.recordRefusal({ ...who, projectId: project, action, code, at: now() }));
85
+ return { ok: true };
86
+ } catch {
87
+ return refused(UNAVAILABLE);
88
+ }
89
+ },
90
+
91
+ recentReads({ requesterKey = null, projectId = null, limit } = {}) {
92
+ if (requesterKey !== null && !validKey(requesterKey)) return refused('requester_invalid');
93
+ if (projectId !== null && !searchableProject(projectId)) return refused('project_invalid');
94
+ try {
95
+ return { ok: true, reads: store.recentReads({ requesterKey, projectId,
96
+ limit: Number.isSafeInteger(limit) ? Math.min(Math.max(limit, 1), READS_LIMIT) : READS_LIMIT }) };
97
+ } catch {
98
+ return refused(UNAVAILABLE);
99
+ }
100
+ },
101
+
102
+ requesterMode(key) {
103
+ if (!validKey(key)) return refused('requester_invalid');
104
+ try { return { ok: true, mode: store.requester(key)?.mode ?? DEFAULT_MODE }; }
105
+ catch { return refused(UNAVAILABLE); }
106
+ },
107
+
108
+ setRequesterMode({ key, kind, label, mode, ownDevice } = {}) {
109
+ const shown = displayText(label);
110
+ if (!validKey(key) || !['peer', 'guest'].includes(kind) || !key.startsWith(`${kind}:`) || !shown) {
111
+ return refused('requester_invalid');
112
+ }
113
+ if (!MODES.has(mode)) return refused('mode_unknown');
114
+ if (mode === 'trusted' && !(kind === 'peer' && ownDevice === true)) return refused('mode_not_allowed');
115
+ try {
116
+ return { ok: true, requester: store.setRequester({ key, kind, label: shown, mode,
117
+ ownDevice: kind === 'peer' && ownDevice === true, at: now().toISOString() }) };
118
+ } catch { return refused(UNAVAILABLE); }
119
+ },
120
+
121
+ close: () => store.close()
122
+ };
123
+
124
+ // One attempt, checked and written in one transaction: past the requester's
125
+ // limits, with an invalid project or with what asked() refuses, a 'refused'
126
+ // row with its code; otherwise a 'pending' row the caller settles.
127
+ function reserve({ projectId, requester, action, asked }) {
128
+ const who = requesterOf(requester);
129
+ if (!who) return { code: 'requester_invalid' };
130
+ const at = now();
131
+ const project = searchableProject(projectId) ? projectId : '';
132
+ try {
133
+ return store.transaction(() => {
134
+ const question = asked();
135
+ const code = rateLimitRefusal(store, who.requesterKey, project, at) ?? (project ? null : 'project_invalid')
136
+ ?? question.code ?? null;
137
+ if (code) {
138
+ store.recordRefusal({ ...who, projectId: project, action, code, at });
139
+ return { code };
140
+ }
141
+ return { id: store.reserveRead({ ...who, projectId: project, action, queries: question.queries, at }),
142
+ projectId: project, queries: question.queries };
143
+ });
144
+ } catch {
145
+ return { code: UNAVAILABLE };
146
+ }
147
+ }
148
+
149
+ // A host's check, run after the reservation: a code, or null to go on; a check that throws refuses.
150
+ async function confirmed(confirm) {
151
+ try {
152
+ const code = await confirm();
153
+ return code === null ? null : plainCode(code);
154
+ } catch { return 'confirm_failed'; }
155
+ }
156
+
157
+ // Finishes a reserved row, then answers; a row that cannot be finished is not
158
+ // answered, so nothing leaves without its record.
159
+ function settle(id, outcome, answer) {
160
+ try {
161
+ store.settleRead(id, outcome);
162
+ return answer;
163
+ } catch {
164
+ return refused(UNAVAILABLE);
165
+ }
166
+ }
167
+ }
168
+
169
+ const ACTIONS = new Set(['search', 'card']);
170
+ const PLAIN_CODE = /^[a-z][a-z0-9_]{0,39}$/;
171
+ // One word for a store that cannot be used now.
172
+ const UNAVAILABLE = 'visitor_access_unavailable';
173
+ const plainCode = code => (typeof code === 'string' && PLAIN_CODE.test(code) ? code : 'refused');
174
+
175
+ const refused = code => ({ ok: false, code });
176
+ const validKey = key => typeof key === 'string' && REQUESTER_KEY.test(key);
177
+
178
+ // Display text without control or bidirectional characters, cut to
179
+ // MAX_LABEL_UNITS units before cleaning and LABEL_CHARS code points after;
180
+ // null when nothing readable is left.
181
+ function displayText(value) {
182
+ if (typeof value !== 'string') return null;
183
+ return [...withoutControls(value.slice(0, MAX_LABEL_UNITS))].slice(0, LABEL_CHARS).join('').trim() || null;
184
+ }
185
+
186
+ // The requester as recorded, or null only when its key cannot be used. A
187
+ // label with nothing readable becomes the start of the key; an agent name
188
+ // with nothing readable is left out.
189
+ function requesterOf(requester) {
190
+ if (!validKey(requester?.key)) return null;
191
+ return { requesterKey: requester.key, requesterLabel: displayText(requester.label) ?? requester.key.slice(0, LABEL_FALLBACK_CHARS),
192
+ agentName: displayText(requester.agentName) };
193
+ }
194
+ const LABEL_FALLBACK_CHARS = 17;
@@ -0,0 +1,26 @@
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
+ }
@@ -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
+ }
@@ -0,0 +1,192 @@
1
+ import { existsSync } from 'node:fs';
2
+
3
+ import { immediateTransaction, openFormattedDatabase, sqliteFormat } from '../../packages/roundtable/src/storage/database-format.js';
4
+
5
+ // Who may visit this computer's shared project knowledge from another one, in
6
+ // which mode, and every attempt a visitor made (the visiting assistant). A
7
+ // requester is 'peer:<device fingerprint>' or 'guest:<link id>'. A row is one
8
+ // contact: a search, or a look at the shared lead's card. A read row is
9
+ // written before its search runs (outcome 'pending') and settled afterwards
10
+ // as 'answered' or 'failed'; a refused attempt is a 'refused' row with its
11
+ // code. Rows keep the visitor's queries as they were searched (already cut),
12
+ // how many items and bytes went back, never the items themselves. Guest links
13
+ // and visit requests come with their own slices as later versions.
14
+ const READS_TABLE = `
15
+ CREATE TABLE IF NOT EXISTS visitor_reads(
16
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
17
+ requester_key TEXT NOT NULL,
18
+ requester_label TEXT NOT NULL,
19
+ agent_name TEXT,
20
+ project_id TEXT NOT NULL,
21
+ action TEXT NOT NULL CHECK(action IN ('search', 'card')),
22
+ outcome TEXT NOT NULL CHECK(outcome IN ('pending', 'answered', 'failed', 'refused')),
23
+ code TEXT,
24
+ queries_json TEXT NOT NULL,
25
+ results_count INTEGER NOT NULL,
26
+ bytes INTEGER NOT NULL,
27
+ at TEXT NOT NULL);
28
+ CREATE INDEX IF NOT EXISTS visitor_reads_at ON visitor_reads(at);
29
+ CREATE INDEX IF NOT EXISTS visitor_reads_requester_at ON visitor_reads(requester_key, at);`;
30
+
31
+ export const VISITOR_ACCESS_FORMAT = sqliteFormat({
32
+ store: 'visitor-access',
33
+ schema: `
34
+ CREATE TABLE IF NOT EXISTS requesters(
35
+ key TEXT PRIMARY KEY,
36
+ kind TEXT NOT NULL CHECK(kind IN ('peer', 'guest')),
37
+ label TEXT NOT NULL,
38
+ mode TEXT NOT NULL CHECK(mode IN ('ask_only', 'plan', 'auto', 'trusted')),
39
+ own_device INTEGER NOT NULL CHECK(own_device IN (0, 1)),
40
+ mode_updated_at TEXT NOT NULL,
41
+ CHECK(mode <> 'trusted' OR (kind = 'peer' AND own_device = 1)));
42
+ ${READS_TABLE}`
43
+ });
44
+
45
+ // Rows older than this are deleted on the next recorded attempt.
46
+ const RETENTION_DAYS = 90;
47
+ const DAY_MS = 24 * 60 * 60 * 1000;
48
+ const RETENTION_MS = RETENTION_DAYS * DAY_MS;
49
+ // A flood is visible long before this; past it, one requester's refusals in a
50
+ // day are no longer written, so the file stays bounded.
51
+ const REFUSALS_KEPT_PER_DAY = 1000;
52
+
53
+ export class VisitorAccessStore {
54
+ constructor(path = ':memory:', { warn = line => process.stderr.write(line) } = {}) {
55
+ this.path = path;
56
+ this.warn = warn;
57
+ }
58
+
59
+ // Opened on the first write; a missing file reads as empty and is never created by a read.
60
+ get db() {
61
+ if (!this.database) {
62
+ const database = openFormattedDatabase(this.path, VISITOR_ACCESS_FORMAT);
63
+ try {
64
+ const kept = setAsidePrereleaseReads(database);
65
+ if (kept) this.warn(`FULI: visitor reads from a pre-release build were kept as ${kept}; a new list starts.\n`);
66
+ } catch (error) {
67
+ database.close();
68
+ throw error;
69
+ }
70
+ this.database = database;
71
+ }
72
+ return this.database;
73
+ }
74
+
75
+ get readable() {
76
+ return Boolean(this.database) || this.path === ':memory:' || existsSync(this.path);
77
+ }
78
+
79
+ // One immediate transaction: what is counted in it and what is written in it
80
+ // cannot interleave with another process's attempt.
81
+ transaction(work) {
82
+ return immediateTransaction(this.db, work);
83
+ }
84
+
85
+ requester(key) {
86
+ if (!this.readable) return null;
87
+ const row = this.db.prepare('SELECT * FROM requesters WHERE key = ?').get(key);
88
+ return row ? requesterView(row) : null;
89
+ }
90
+
91
+ setRequester({ key, kind, label, mode, ownDevice, at }) {
92
+ this.db.prepare(`INSERT INTO requesters(key, kind, label, mode, own_device, mode_updated_at)
93
+ VALUES (?, ?, ?, ?, ?, ?) ON CONFLICT(key) DO UPDATE SET kind = excluded.kind, label = excluded.label,
94
+ mode = excluded.mode, own_device = excluded.own_device, mode_updated_at = excluded.mode_updated_at`)
95
+ .run(key, kind, label, mode, ownDevice ? 1 : 0, at);
96
+ return this.requester(key);
97
+ }
98
+
99
+ // A search or card about to be answered, as 'pending'; answers its row id. at is a Date.
100
+ reserveRead({ requesterKey, requesterLabel, agentName, projectId, action, queries, at }) {
101
+ this.#retain(at);
102
+ return Number(this.db.prepare(`INSERT INTO visitor_reads(requester_key, requester_label, agent_name, project_id,
103
+ action, outcome, code, queries_json, results_count, bytes, at) VALUES (?, ?, ?, ?, ?, 'pending', NULL, ?, 0, 0, ?)`)
104
+ .run(requesterKey, requesterLabel, agentName, projectId, action, JSON.stringify(queries), at.toISOString())
105
+ .lastInsertRowid);
106
+ }
107
+
108
+ settleRead(id, { outcome, code = null, resultsCount = 0, bytes = 0 }) {
109
+ this.db.prepare(`UPDATE visitor_reads SET outcome = ?, code = ?, results_count = ?, bytes = ?
110
+ WHERE id = ? AND outcome = 'pending'`).run(outcome, code, resultsCount, bytes, id);
111
+ }
112
+
113
+ // A refused attempt, without its queries; not written past
114
+ // REFUSALS_KEPT_PER_DAY of one requester's refusals in a day.
115
+ recordRefusal({ requesterKey, requesterLabel, agentName, projectId, action, code, at }) {
116
+ const today = new Date(at.getTime() - DAY_MS).toISOString();
117
+ const refused = this.db.prepare(`SELECT COUNT(*) AS count FROM visitor_reads
118
+ WHERE requester_key = ? AND outcome = 'refused' AND at > ?`).get(requesterKey, today).count;
119
+ if (refused >= REFUSALS_KEPT_PER_DAY) return;
120
+ this.#retain(at);
121
+ this.db.prepare(`INSERT INTO visitor_reads(requester_key, requester_label, agent_name, project_id, action,
122
+ outcome, code, queries_json, results_count, bytes, at) VALUES (?, ?, ?, ?, ?, 'refused', ?, '[]', 0, 0, ?)`)
123
+ .run(requesterKey, requesterLabel, agentName, projectId, action, code, at.toISOString());
124
+ }
125
+
126
+ // How many reads of one project, by every requester, ran or are running after
127
+ // since (an ISO instant); refused attempts are not reads.
128
+ projectReadsSince(projectId, since) {
129
+ if (!this.readable) return 0;
130
+ return this.db.prepare("SELECT COUNT(*) AS count FROM visitor_reads WHERE project_id = ? AND outcome <> 'refused' AND at > ?")
131
+ .get(projectId, since).count;
132
+ }
133
+
134
+ // How many attempts, of any outcome, one requester made after since (an ISO instant).
135
+ attemptsSince(requesterKey, since) {
136
+ if (!this.readable) return 0;
137
+ return this.db.prepare('SELECT COUNT(*) AS count FROM visitor_reads WHERE requester_key = ? AND at > ?')
138
+ .get(requesterKey, since).count;
139
+ }
140
+
141
+ // Newest first, optionally of one requester and one project.
142
+ recentReads({ requesterKey = null, projectId = null, limit }) {
143
+ if (!this.readable) return [];
144
+ return this.db.prepare(`SELECT * FROM visitor_reads
145
+ WHERE (? IS NULL OR requester_key = ?) AND (? IS NULL OR project_id = ?)
146
+ ORDER BY at DESC, id DESC LIMIT ?`)
147
+ .all(requesterKey, requesterKey, projectId, projectId, limit).map(readView);
148
+ }
149
+
150
+ close() {
151
+ this.database?.close();
152
+ this.database = null;
153
+ }
154
+
155
+ #retain(at) {
156
+ this.db.prepare('DELETE FROM visitor_reads WHERE at < ?').run(new Date(at.getTime() - RETENTION_MS).toISOString());
157
+ }
158
+ }
159
+
160
+ // PRE-RELEASE REPAIR, delete after the first release that contains this store.
161
+ // Version 1 never shipped in a release, and no release build writes this
162
+ // file; only development builds of the visiting assistant did, with a
163
+ // visitor_reads table without an outcome or without the card action. The
164
+ // format engine has no step that rebuilds a table, so such a table is set
165
+ // aside here, whole, in one transaction (renamed visitor_reads_prerelease_<n>,
166
+ // its indexes dropped), and the current table is created; requesters stay as
167
+ // they are. Answers the name it was kept under, or null when nothing was needed.
168
+ function setAsidePrereleaseReads(database) {
169
+ const sql = database.prepare("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'visitor_reads'").get()?.sql ?? '';
170
+ if (/\boutcome\b/.test(sql) && sql.includes("'card'")) return null;
171
+ return immediateTransaction(database, () => {
172
+ const taken = new Set(database.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name LIKE 'visitor_reads_prerelease_%'")
173
+ .all().map(row => row.name));
174
+ let index = 1;
175
+ while (taken.has(`visitor_reads_prerelease_${index}`)) index += 1;
176
+ const kept = `visitor_reads_prerelease_${index}`;
177
+ database.exec(`DROP INDEX IF EXISTS visitor_reads_at; DROP INDEX IF EXISTS visitor_reads_requester_at;
178
+ ALTER TABLE visitor_reads RENAME TO ${kept};${READS_TABLE}`);
179
+ return kept;
180
+ });
181
+ }
182
+
183
+ function requesterView(row) {
184
+ return { key: row.key, kind: row.kind, label: row.label, mode: row.mode, ownDevice: row.own_device === 1,
185
+ modeUpdatedAt: row.mode_updated_at };
186
+ }
187
+
188
+ function readView(row) {
189
+ return { id: row.id, requesterKey: row.requester_key, requesterLabel: row.requester_label, agentName: row.agent_name,
190
+ projectId: row.project_id, action: row.action, outcome: row.outcome, code: row.code,
191
+ queries: JSON.parse(row.queries_json), resultsCount: row.results_count, bytes: row.bytes, at: row.at };
192
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "version": "0.27.3",
3
+ "zh": [
4
+ "另一台电脑上的助手,两边现在是同一张脸;不在本机的多一圈虚线边框。",
5
+ "问另一台电脑的助手失败时会换个方式再试,最多三次,并留下原因。",
6
+ "配对的电脑可以只读地查你共享的项目;谁问过,设置里看得到。"
7
+ ],
8
+ "en": [
9
+ "An assistant on another computer has one face on both; a dashed ring marks it as remote.",
10
+ "A failed ask to another computer retries another way, up to three times, and keeps the reason.",
11
+ "A paired computer can read a project you shared, read-only; Settings shows who asked."
12
+ ]
13
+ }
@@ -1 +0,0 @@
1
- import{Et as e,M as t,Nt as n,V as r,k as i,pr as a,t as o}from"./_plugin-vue_export-helper-CYsAcErn.js";var s={class:`about-section-heading`},c={class:`about-section-heading__row`},l=[`id`],u=o(r({__name:`AboutSectionHeading`,props:{titleId:{},title:{},description:{}},setup(r){return(o,u)=>(e(),t(`header`,s,[i(`div`,c,[i(`h2`,{id:r.titleId},a(r.title),9,l),n(o.$slots,`action`,{},void 0,!0)]),i(`p`,null,a(r.description),1)]))}}),[[`__scopeId`,`data-v-41f197af`]]);export{u as t};
@@ -1 +0,0 @@
1
- .about-section-heading[data-v-41f197af]{border-bottom:1px solid var(--color-border);padding-bottom:24px}.about-section-heading__row[data-v-41f197af]{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 24px;display:flex}.about-section-heading h2[data-v-41f197af]{color:var(--color-ink);letter-spacing:-.02em;margin:0;font-size:clamp(20px,2.6vw,26px);font-weight:650;line-height:1.25}.about-section-heading p[data-v-41f197af]{max-width:680px;color:var(--color-muted);margin-top:8px;font-size:14px;line-height:1.65}