fuli-context 0.27.3 → 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 (349) hide show
  1. package/dist/web/assets/{AboutPage-C-fJv2EQ.js → AboutPage-DJxp-WMU.js} +1 -1
  2. package/dist/web/assets/{AboutSectionHeading-DLjnjHfb.js → AboutSectionHeading-BUu85T3-.js} +1 -1
  3. package/dist/web/assets/{AgentAppsPage-CBcUlh8U.js → AgentAppsPage-Di4HU1sH.js} +1 -1
  4. package/dist/web/assets/{AgentAvatar-Cu_TwSqc.js → AgentAvatar-N7IaseYC.js} +1 -1
  5. package/dist/web/assets/{AgentHand-1yBhYv72.js → AgentHand-BDCERx8p.js} +1 -1
  6. package/dist/web/assets/{AgentManagement-D8jHUEWK.js → AgentManagement-CJLZoyuq.js} +1 -1
  7. package/dist/web/assets/{AgentMentionCopy-BRxaxi6r.js → AgentMentionCopy-Cpsy2XwV.js} +1 -1
  8. package/dist/web/assets/{AgentName-CL8xix6s.js → AgentName-B150JTrl.js} +1 -1
  9. package/dist/web/assets/{AgentProfilePage-BosYAypt.js → AgentProfilePage-rckt2qEt.js} +3 -3
  10. package/dist/web/assets/{AgentServicesPage-BQHw7Cyx.js → AgentServicesPage-_rY596Cl.js} +1 -1
  11. package/dist/web/assets/{AppViewerPage-CO5-dW38.js → AppViewerPage-Kq3r1mwI.js} +1 -1
  12. package/dist/web/assets/{BackToTop-dl4Y4CgO.js → BackToTop-Da6u7_d8.js} +1 -1
  13. package/dist/web/assets/{BoardCardFieldsMenu-BBqsgCq8.js → BoardCardFieldsMenu-CyJSO3vT.js} +1 -1
  14. package/dist/web/assets/{BoardMoveMenu-Rys8yvXz.js → BoardMoveMenu-B_lUROwH.js} +1 -1
  15. package/dist/web/assets/{Breadcrumb-DXXN0moP.js → Breadcrumb-CA0zg3OI.js} +1 -1
  16. package/dist/web/assets/{CaptureChangePage-lNiPS4XI.js → CaptureChangePage-nnCFkG4H.js} +1 -1
  17. package/dist/web/assets/Collection-CL-ehAUe.js +1 -0
  18. package/dist/web/assets/{CopyFixPrompt-Cpve4rdS.js → CopyFixPrompt-Bp3GsUzJ.js} +1 -1
  19. package/dist/web/assets/{DataFormatPage-DpBIwY-n.js → DataFormatPage-COPJnuZH.js} +1 -1
  20. package/dist/web/assets/{DebugTurnPage-DzJ07GMF.js → DebugTurnPage-CuREiHr-.js} +1 -1
  21. package/dist/web/assets/{DebugTurnsPage-CNAeNt5i.js → DebugTurnsPage-i2jPDad3.js} +1 -1
  22. package/dist/web/assets/{DialogTitle-D0EVi01-.js → DialogTitle-aiTJ0Qmu.js} +1 -1
  23. package/dist/web/assets/{EmployeeRedirectPage-qlH0SVZY.js → EmployeeRedirectPage-DPSjSW-l.js} +1 -1
  24. package/dist/web/assets/{EmployeeScopeDialog-C4B724Jj.js → EmployeeScopeDialog-Bui2TPpl.js} +1 -1
  25. package/dist/web/assets/{EmployeeWorkbench-BgpxZ_1F.js → EmployeeWorkbench-DAC8kuJP.js} +1 -1
  26. package/dist/web/assets/FieldRoot-B2x8LUg_.js +1 -0
  27. package/dist/web/assets/{FlaBlockedTasks-DGw9I-j7.js → FlaBlockedTasks-Ds1c5xaw.js} +1 -1
  28. package/dist/web/assets/{FlaGrowth-Ct4GbCJZ.js → FlaGrowth-CJSExsDl.js} +1 -1
  29. package/dist/web/assets/{FlaOccupationKit-Cbx058JA.js → FlaOccupationKit-yibMGA7g.js} +1 -1
  30. package/dist/web/assets/{FlaTaskSheets-CoWj7Gw3.js → FlaTaskSheets-CJSjxa9s.js} +1 -1
  31. package/dist/web/assets/{FlasPage-BGrz_P1x.js → FlasPage-BvIsNjmr.js} +1 -1
  32. package/dist/web/assets/{GrowthLoading-BHxVzIoM.js → GrowthLoading-Ddj4TqCR.js} +1 -1
  33. package/dist/web/assets/HowtoPage-kSC2Tym0.js +1 -0
  34. package/dist/web/assets/{InboxPage-ByZQpihN.js → InboxPage-Qfx9kB6z.js} +3 -3
  35. package/dist/web/assets/{KnowledgeDeleteButton-dvslN7EO.js → KnowledgeDeleteButton-yq2NE_5V.js} +1 -1
  36. package/dist/web/assets/{KnowledgeHardDeleteSection-DMARNrze.js → KnowledgeHardDeleteSection-DYLuMTkw.js} +1 -1
  37. package/dist/web/assets/{KnowledgeItemEditPage-D7X3K-Fu.js → KnowledgeItemEditPage-C_6CCT0l.js} +1 -1
  38. package/dist/web/assets/{KnowledgeItemSummaryCard-Carpboje.js → KnowledgeItemSummaryCard-DaS6I6IJ.js} +1 -1
  39. package/dist/web/assets/{KnowledgeOrganizerPage-CdFva4xO.js → KnowledgeOrganizerPage-C0TW5FWc.js} +1 -1
  40. package/dist/web/assets/KnowledgePage-CpU8zlbY.js +1 -0
  41. package/dist/web/assets/{KnowledgePeek-C4QSXTOF.js → KnowledgePeek-C8KO5NBx.js} +1 -1
  42. package/dist/web/assets/{KnowledgeTurnReceiptPage-CY85DtmF.js → KnowledgeTurnReceiptPage-Bss7rO8X.js} +1 -1
  43. package/dist/web/assets/{KnowledgeWorkspace-Be2gUul5.css → KnowledgeWorkspace-B2YB4aaQ.css} +1 -1
  44. package/dist/web/assets/KnowledgeWorkspace-NBt_5LEZ.js +4 -0
  45. package/dist/web/assets/{MeAvatar-WSCaLEJ1.js → MeAvatar-ec_0AfqZ.js} +1 -1
  46. package/dist/web/assets/{MeLink-rP0IiTaj.js → MeLink-mcOCZh0y.js} +1 -1
  47. package/dist/web/assets/MenuSeparator-BdUe-nrq.js +1 -0
  48. package/dist/web/assets/ModelSettingsPage-DG4g9dZG.js +1 -0
  49. package/dist/web/assets/{NewSessionPanel-DNYTQ0Lw.js → NewSessionPanel-Dp9REysi.js} +1 -1
  50. package/dist/web/assets/{NotFoundPage-BbnR0KYy.js → NotFoundPage-mQNgXOdV.js} +1 -1
  51. package/dist/web/assets/NoticeRow-CVxAQhy5.js +1 -0
  52. package/dist/web/assets/NoticeRow-ktVO_9Es.css +1 -0
  53. package/dist/web/assets/{OccupationsPage-DQGGceta.js → OccupationsPage-M2bNGjfX.js} +1 -1
  54. package/dist/web/assets/{PageOutline-nKD_AvCJ.js → PageOutline-BIuKlaez.js} +1 -1
  55. package/dist/web/assets/{PageStack-BVHOFq7x.js → PageStack-CJdqrH8a.js} +1 -1
  56. package/dist/web/assets/{PersonalProfilePage-Cm1NxyU0.js → PersonalProfilePage-CbgimIFG.js} +1 -1
  57. package/dist/web/assets/PersonalProjectsPage-Dm38FUPv.js +1 -0
  58. package/dist/web/assets/{PinIcon-DxjWqB7x.js → PinIcon-DBS7pHXp.js} +1 -1
  59. package/dist/web/assets/PopperContent-DyZQrl-r.js +1 -0
  60. package/dist/web/assets/{Presence-DrSz_UA1.js → Presence-wz-KVyjT.js} +1 -1
  61. package/dist/web/assets/{ProfileAuthorChip-CN1ZYzKN.js → ProfileAuthorChip-DAY42zZ8.js} +1 -1
  62. package/dist/web/assets/{ProjectAgentsPage-DMnRnXDT.js → ProjectAgentsPage-BKWGB-4t.js} +1 -1
  63. package/dist/web/assets/{ProjectJudgmentPolicy-DBszt68M.js → ProjectJudgmentPolicy-D1UHlAih.js} +1 -1
  64. package/dist/web/assets/RequesterModeSelect-BpaRF_th.js +1 -0
  65. package/dist/web/assets/RequesterModeSelect-DH1PGLmn.css +1 -0
  66. package/dist/web/assets/{RoundtablesPage-QtNyNaDg.js → RoundtablesPage-9mlvO7FV.js} +1 -1
  67. package/dist/web/assets/RovingFocusGroup-CHDkM3pP.js +1 -0
  68. package/dist/web/assets/RovingFocusItem-H6anRCEm.js +1 -0
  69. package/dist/web/assets/{SessionMigrationPage-Chm5L6p4.js → SessionMigrationPage-DZfyUaJe.js} +1 -1
  70. package/dist/web/assets/{SessionRecordsPage-BHPaCRH-.js → SessionRecordsPage-CK6iztwv.js} +1 -1
  71. package/dist/web/assets/SettingsPage-CVM1Gw0D.js +1 -0
  72. package/dist/web/assets/{SettingsPage-CnqtNPWd.css → SettingsPage-DqZGF8J1.css} +1 -1
  73. package/dist/web/assets/{SharedJefaReportPage-DHD4As4b.js → SharedJefaReportPage-cfEk0Tzn.js} +1 -1
  74. package/dist/web/assets/{StatementCalendarPage-lkq1OrUT.js → StatementCalendarPage-OmZa4AdL.js} +1 -1
  75. package/dist/web/assets/{StatementRows-DS-_XbkC.js → StatementRows-Cdv1wlMo.js} +1 -1
  76. package/dist/web/assets/{TagVocabularyPage-ap97B1fd.js → TagVocabularyPage-C9pRT-Co.js} +1 -1
  77. package/dist/web/assets/{TaskBlockerClear-xmjIgmON.js → TaskBlockerClear-BGpJYYbz.js} +1 -1
  78. package/dist/web/assets/{TaskBlockerNotice-D3awZbiX.js → TaskBlockerNotice-BtOREiqc.js} +1 -1
  79. package/dist/web/assets/{TaskReason-Y_gLRUR4.js → TaskReason-Dys3TUp_.js} +1 -1
  80. package/dist/web/assets/{TeamCard-C5BOBfgK.js → TeamCard-D7FU45G4.js} +1 -1
  81. package/dist/web/assets/{TeamCardsWidget-jLieh7GV.js → TeamCardsWidget-hYsXSXcW.js} +1 -1
  82. package/dist/web/assets/{TeamIsland-C2U6j6W0.js → TeamIsland-Bw875ekj.js} +1 -1
  83. package/dist/web/assets/{Teleport-RJS88HRO.js → Teleport-DcReQWaw.js} +1 -1
  84. package/dist/web/assets/{TextField-CwecNrfC.js → TextField-BO5vPcVo.js} +1 -1
  85. package/dist/web/assets/TodayPage-D9HV_tMn.js +1 -0
  86. package/dist/web/assets/TodayPage-uBkMchn5.css +1 -0
  87. package/dist/web/assets/{TonborgDelegationSwitch-C9jrfVCw.js → TonborgDelegationSwitch-TCl6Nu4Q.js} +1 -1
  88. package/dist/web/assets/{UiChip-DLTDKZh9.js → UiChip-BDaNYy7i.js} +1 -1
  89. package/dist/web/assets/{UiDialog-u4ZkP4DG.js → UiDialog-CkrPgXkI.js} +1 -1
  90. package/dist/web/assets/{UiDisclosure-CKVkr79z.js → UiDisclosure-DHBkq9rj.js} +1 -1
  91. package/dist/web/assets/{UiIcon-D2DJw7hg.js → UiIcon-BBBPl7ce.js} +1 -1
  92. package/dist/web/assets/{UiSegmented-D6pLjXXW.js → UiSegmented-EzA-Ehx4.js} +1 -1
  93. package/dist/web/assets/{UiWeight-BOEi9suT.js → UiWeight-EHzBhu5a.js} +1 -1
  94. package/dist/web/assets/{VirtualDirectoryList-BX3eeyRo.js → VirtualDirectoryList-BJrM_eeP.js} +1 -1
  95. package/dist/web/assets/VisitRequestDialog-ISewTzM3.css +1 -0
  96. package/dist/web/assets/VisitRequestDialog-jbgJBF2e.js +1 -0
  97. package/dist/web/assets/VisitRequestsPage-Bkxxiaxy.js +1 -0
  98. package/dist/web/assets/VisitRequestsPage-DfIzoLBx.css +1 -0
  99. package/dist/web/assets/{VisuallyHidden-DjqI8CEj.js → VisuallyHidden-CgxInDXj.js} +1 -1
  100. package/dist/web/assets/VisuallyHiddenInput-CaWSS7uB.js +1 -0
  101. package/dist/web/assets/WidgetSlot-DENSHLjb.js +2 -0
  102. package/dist/web/assets/WorkbenchListPage-J-UpUosh.js +1 -0
  103. package/dist/web/assets/_plugin-vue_export-helper-B0wc-mt_.js +9 -0
  104. package/dist/web/assets/{agent-apps-CFWQ-pVX.js → agent-apps-BNje45bS.js} +1 -1
  105. package/dist/web/assets/agent-occupation-aAG5t3l1.js +1 -0
  106. package/dist/web/assets/{agent-pins-XtAvsJ8S.js → agent-pins-BCrkTGGW.js} +1 -1
  107. package/dist/web/assets/{agent-roster-records-DiZKG26q.js → agent-roster-records-BFUsBcZY.js} +1 -1
  108. package/dist/web/assets/{agent-work-summary-CvHRy3NR.js → agent-work-summary-B_VLOm6o.js} +1 -1
  109. package/dist/web/assets/{attach-closest-edge-De5463t-.js → attach-closest-edge-BPnS_9Lk.js} +1 -1
  110. package/dist/web/assets/{attention-store-CWRvv8xT.js → attention-store-qIzsiW3O.js} +1 -1
  111. package/dist/web/assets/{badge-CyUHAZlb.js → badge-CtWdRMi-.js} +1 -1
  112. package/dist/web/assets/{button-DgFpUg62.js → button-_gyKncGb.js} +1 -1
  113. package/dist/web/assets/{card-BG73LSt9.js → card-BYD6uklY.js} +1 -1
  114. package/dist/web/assets/{catalog-KaWiF7K5.js → catalog-PjA5J9yg.js} +1 -1
  115. package/dist/web/assets/checkbox-5re4FS0U.js +1 -0
  116. package/dist/web/assets/{client-eeoB__-w.js → client-LxAXnO12.js} +1 -1
  117. package/dist/web/assets/{client-links-store-C1T7b2HQ.js → client-links-store-CYdBPEgD.js} +1 -1
  118. package/dist/web/assets/combobox-BPUtDA5_.js +1 -0
  119. package/dist/web/assets/{console-KA3Jxkr4.js → console-D45-ZZfX.js} +1 -1
  120. package/dist/web/assets/{conversation-launcher-settings-QWrAaAPe.js → conversation-launcher-settings-BS2bz1uR.js} +1 -1
  121. package/dist/web/assets/copy-mention-D0xSzmH6.js +1 -0
  122. package/dist/web/assets/{dialog-CPHmFum7.js → dialog-xaUosJps.js} +1 -1
  123. package/dist/web/assets/{dist-CTCo5IXd.js → dist-C0lQzDOh.js} +1 -1
  124. package/dist/web/assets/{dist-e1tihV1g.js → dist-C1Hez3C6.js} +1 -1
  125. package/dist/web/assets/dropdown-menu-8tDY2fah.js +1 -0
  126. package/dist/web/assets/{field-8F_Pt8vb.js → field-B9eFY0rX.js} +1 -1
  127. package/dist/web/assets/{format-bytes-DkVJGLsS.js → format-bytes-DHztF0Wp.js} +1 -1
  128. package/dist/web/assets/{hover-card-Db-Mrxk6.js → hover-card-CCcSIBsB.js} +1 -1
  129. package/dist/web/assets/{identity-wfQfyysH.js → identity-CW-Srg08.js} +1 -1
  130. package/dist/web/assets/{index-CRSH-FaE.js → index-CpxVWv-F.js} +3 -3
  131. package/dist/web/assets/{input-DFTIPfkE.js → input-BiH7RC9P.js} +1 -1
  132. package/dist/web/assets/{label-BDet7nvg.js → label-BdftnoQ0.js} +1 -1
  133. package/dist/web/assets/label-table-CLQKbitJ.js +1 -0
  134. package/dist/web/assets/{model-C7J0jC4U.js → model-C7tDPa_1.js} +1 -1
  135. package/dist/web/assets/{model-LXhsHZ_S.js → model-Cg5zXaMF.js} +1 -1
  136. package/dist/web/assets/{model-BwEuimI0.js → model-DDyIT1eK.js} +1 -1
  137. package/dist/web/assets/{model-Bzgg7OTO.js → model-DMd25lv5.js} +1 -1
  138. package/dist/web/assets/{model-DFuUc43Z.js → model-DXpi8vqS.js} +1 -1
  139. package/dist/web/assets/{model-D3j-Q4br.js → model-DaJv8e-8.js} +1 -1
  140. package/dist/web/assets/{model-DGpMX2GY.js → model-Q1SCdf0F.js} +1 -1
  141. package/dist/web/assets/{model-WhGp0XZv.js → model-qBLcWPQW.js} +1 -1
  142. package/dist/web/assets/{motion-0KGuL0P9.js → motion-4AmdlpVT.js} +1 -1
  143. package/dist/web/assets/{motion-BhDwEDuX.js → motion-D-GVIJyc.js} +1 -1
  144. package/dist/web/assets/{motion-preference--VYomm-z.js → motion-preference-CXHE1-Z7.js} +1 -1
  145. package/dist/web/assets/{occupation-catalog-D5SQWfUI.js → occupation-catalog-CsWai-cw.js} +1 -1
  146. package/dist/web/assets/{occupation-kits-CrqixyUx.js → occupation-kits-CZQzDPeY.js} +1 -1
  147. package/dist/web/assets/{option-C9CkqCvy.js → option-B_OFUmRs.js} +1 -1
  148. package/dist/web/assets/{orchestration-filters-DTnWbCEm.js → orchestration-filters-DqAPmniI.js} +1 -1
  149. package/dist/web/assets/{overview-data-BvW9uhT4.js → overview-data-BbAd5G_f.js} +1 -1
  150. package/dist/web/assets/{page-refresh-GRJ3nMpT.js → page-refresh-abwcdMEQ.js} +1 -1
  151. package/dist/web/assets/{page-title-B9HNL7K4.js → page-title-cvuGZaZo.js} +1 -1
  152. package/dist/web/assets/{person-profile-Cng7edLa.js → person-profile-C8eoODdy.js} +1 -1
  153. package/dist/web/assets/{popover-BgaSR8Zf.js → popover-h4zQ7MDI.js} +1 -1
  154. package/dist/web/assets/popup-host-8S4Sf9UR.js +1 -0
  155. package/dist/web/assets/{preference-conflicts-WphCdbo6.js → preference-conflicts-Cu00Gk8W.js} +1 -1
  156. package/dist/web/assets/{profile-model-B9K6ylO1.js → profile-model-BZIzIQTS.js} +1 -1
  157. package/dist/web/assets/{project-board-layout-GxgeqkX4.js → project-board-layout-DxdyuEpb.js} +1 -1
  158. package/dist/web/assets/{project-capture-C6NQkcJw.js → project-capture-BQ0ryWdP.js} +1 -1
  159. package/dist/web/assets/{project-origin-DuSzjbhd.js → project-origin-CdqHLvij.js} +1 -1
  160. package/dist/web/assets/{quick-edit-api-BDFnInRp.js → quick-edit-api-sf5vVWXR.js} +1 -1
  161. package/dist/web/assets/radio-group-BdWVlNgf.js +1 -0
  162. package/dist/web/assets/{review-api-D31JYGWJ.js → review-api-Cbrwrt6C.js} +1 -1
  163. package/dist/web/assets/{review-list-Cvacm108.js → review-list-D18L_t-q.js} +1 -1
  164. package/dist/web/assets/{review-store-D7_Vfhh7.js → review-store-1jNUbNaJ.js} +1 -1
  165. package/dist/web/assets/{role-names-DebBvCND.js → role-names-CiUKQtV9.js} +1 -1
  166. package/dist/web/assets/{roundtable-live-DfN7Sw9Q.js → roundtable-live-BzB34cUe.js} +1 -1
  167. package/dist/web/assets/{runtime-dom.esm-bundler-DBdCxLeu.js → runtime-dom.esm-bundler-BwoD95K8.js} +1 -1
  168. package/dist/web/assets/select-D9sqPsDx.js +1 -0
  169. package/dist/web/assets/{session-launch-offers-BO40dDPk.js → session-launch-offers-BOZp9NmT.js} +1 -1
  170. package/dist/web/assets/{settings-autosave-q7Wr9G3O.js → settings-autosave-F9mwjeN-.js} +1 -1
  171. package/dist/web/assets/{settings-tabs-C9VDs91j.css → settings-tabs-D8608YHW.css} +1 -1
  172. package/dist/web/assets/settings-tabs-dWS8xFQR.js +1 -0
  173. package/dist/web/assets/{shared-report-j27wViAk.js → shared-report-BmpdFBj3.js} +3 -3
  174. package/dist/web/assets/{source-adapters-D3VpWZ6y.js → source-adapters-CZGvDHoP.js} +1 -1
  175. package/dist/web/assets/switch-BFhMPFpu.js +1 -0
  176. package/dist/web/assets/tabs-B6N6pM8p.js +1 -0
  177. package/dist/web/assets/{task-card-fields-CR_cHUml.js → task-card-fields-G9NoV8iz.js} +1 -1
  178. package/dist/web/assets/{task-labels-C6FR9pf_.js → task-labels-Y0y3oeAL.js} +1 -1
  179. package/dist/web/assets/{task-reason-C2NjR8__.js → task-reason-D84kviwH.js} +1 -1
  180. package/dist/web/assets/{team-sheets-5rb7d8An.js → team-sheets-DtMFWcPH.js} +1 -1
  181. package/dist/web/assets/{textarea-BW51g0FT.js → textarea-8EWEgEpw.js} +1 -1
  182. package/dist/web/assets/{ui-rJlFkhnh.js → ui-BxmkvkMK.js} +1 -1
  183. package/dist/web/assets/{useAgentRecords-BDEGuChX.js → useAgentRecords-D5CXJVEf.js} +1 -1
  184. package/dist/web/assets/{useAgentWorkSummary-B7fcYNAf.js → useAgentWorkSummary-D1Ep9uAl.js} +1 -1
  185. package/dist/web/assets/{useApi-CROJJdhE-CXkEmQ40.js → useApi-CROJJdhE-Cb6lwzpM.js} +1 -1
  186. package/dist/web/assets/{useClipboardCopy-CLyPUkax.js → useClipboardCopy-C3PFlW0X.js} +1 -1
  187. package/dist/web/assets/{useFocusReturn-BzZRnzjC.js → useFocusReturn-B73WeAHQ.js} +1 -1
  188. package/dist/web/assets/useFormControl-DwHlZ4bV.js +1 -0
  189. package/dist/web/assets/{useForwardExpose-BFvXozfQ.js → useForwardExpose-4rpHye8H.js} +1 -1
  190. package/dist/web/assets/{useForwardPropsEmits-BQIBYWrX.js → useForwardPropsEmits-DX7VZylm.js} +1 -1
  191. package/dist/web/assets/useForwardScopeId-BJDKoqyi.js +1 -0
  192. package/dist/web/assets/{useKnowledgeConfirm-B7ljY3BE.js → useKnowledgeConfirm-yhZ8Iqzc.js} +1 -1
  193. package/dist/web/assets/{useKnowledgeItemPeek-W54o0cXF.js → useKnowledgeItemPeek-D-zThKj5.js} +1 -1
  194. package/dist/web/assets/useListPages-BNB3C09x.js +1 -0
  195. package/dist/web/assets/{useMinimumLoadingDisplay-i0As_nIh.js → useMinimumLoadingDisplay-DzHl6chR.js} +1 -1
  196. package/dist/web/assets/{useNow-w9sbWus7.js → useNow-ChD63hSg.js} +1 -1
  197. package/dist/web/assets/{usePageTools-ChjnsxqE.js → usePageTools-D3N7UX5-.js} +1 -1
  198. package/dist/web/assets/usePrimitiveElement-CdgGZRug.js +1 -0
  199. package/dist/web/assets/{useProjectAgentRoster-Cv-2h61l.js → useProjectAgentRoster-BhjNHid8.js} +1 -1
  200. package/dist/web/assets/{useRoutePeek-6T3XqFw1.js → useRoutePeek-C2k0liTX.js} +1 -1
  201. package/dist/web/assets/{useTeamWork-rjEihEaF.js → useTeamWork-Bo2hjiA1.js} +1 -1
  202. package/dist/web/assets/{useTypeahead-BBlzBvAi.js → useTypeahead-DTOx7gNa.js} +1 -1
  203. package/dist/web/assets/{utils-DVo87S8o.js → utils-DXRJ1hJ4.js} +1 -1
  204. package/dist/web/assets/utils-DeBPoCtM.js +1 -0
  205. package/dist/web/assets/{verification-BKmnZihv.js → verification-DRKJF06P.js} +1 -1
  206. package/dist/web/assets/{version-BYqyCHiB.js → version-B2XiHNBv.js} +1 -1
  207. package/dist/web/assets/{vue-router-BJZE7CCr.js → vue-router-CbcwRkrV.js} +1 -1
  208. package/dist/web/assets/{NoticeRow-DD-J76Yo.css → workbench-card-Dt0820yW.css} +1 -1
  209. package/dist/web/index.html +76 -75
  210. package/docs/agent-roundtable.md +210 -1
  211. package/graph-provider/pyproject.toml +1 -1
  212. package/native/win32/fuli-win-helper.exe +0 -0
  213. package/npm-shrinkwrap.json +2 -2
  214. package/package.json +1 -1
  215. package/packages/roundtable/src/agents/claude-code/constrained-run.js +58 -0
  216. package/packages/roundtable/src/agents/claude-code/wake.js +24 -9
  217. package/packages/roundtable/src/agents/codex/wake.js +25 -7
  218. package/packages/roundtable/src/agents/wake-usage.js +14 -0
  219. package/packages/roundtable/src/host.js +14 -2
  220. package/packages/roundtable/src/peer/lan-addresses.js +8 -2
  221. package/packages/roundtable/src/peer/peer-port.js +2 -2
  222. package/packages/roundtable/src/peer/peer-runtime.js +20 -2
  223. package/packages/roundtable/src/peer/protocol.js +25 -4
  224. package/packages/roundtable/src/peer/query-answer.js +39 -7
  225. package/packages/roundtable/src/peer/runner.js +5 -4
  226. package/packages/roundtable/src/roundtable/constrained-run.js +48 -0
  227. package/packages/roundtable/src/roundtable/group-discussion.js +1 -1
  228. package/packages/roundtable/src/roundtable/service.js +57 -17
  229. package/packages/roundtable/src/roundtable/store.js +7 -1
  230. package/packages/roundtable/src/roundtable/wake-attempt-store.js +21 -6
  231. package/packages/roundtable/src/roundtable/wake-claim-release.js +20 -12
  232. package/packages/roundtable/src/roundtable/wake-failure.js +7 -3
  233. package/packages/roundtable/src/roundtable/wake.js +32 -11
  234. package/skills/capturing-session-knowledge/references/coordination.md +8 -0
  235. package/skills/operating-fuli/SKILL.md +8 -1
  236. package/skills/operating-fuli/references/workflow-recipes.md +4 -0
  237. package/src/agent-kits/fuli-mcp-entry.js +25 -0
  238. package/src/agent-roundtable/tools.js +6 -3
  239. package/src/agent-tools/interface-catalog.js +16 -2
  240. package/src/agent-tools/statement-definitions.js +3 -1
  241. package/src/agents/claude-code/hook-contract.js +29 -0
  242. package/src/agents/claude-code/lifecycle-event.js +337 -0
  243. package/src/agents/claude-code/lifecycle-hook.js +10 -296
  244. package/src/agents/codex/hook-contract.js +31 -0
  245. package/src/agents/codex/lifecycle-event.js +350 -0
  246. package/src/agents/codex/lifecycle-hook.js +10 -326
  247. package/src/agents/lifecycle-events.js +75 -0
  248. package/src/agents/lifecycle-failure.js +3 -2
  249. package/src/agents/lifecycle-forwarder.js +268 -0
  250. package/src/agents/lifecycle-hook-calls.js +93 -0
  251. package/src/agents/source-applications.js +8 -0
  252. package/src/agents/token-usage-resolver.js +10 -0
  253. package/src/data-format/data-newer-than-package.js +65 -0
  254. package/src/data-format/local-stores.js +1 -1
  255. package/src/desktop/failed-update-recovery.js +80 -0
  256. package/src/desktop/macos-app-update.js +86 -22
  257. package/src/desktop/windows-installation-switch.js +83 -21
  258. package/src/desktop/windows-rollback.js +4 -4
  259. package/src/desktop/windows-tray-update.js +1 -1
  260. package/src/desktop/windows-update-command.js +4 -1
  261. package/src/desktop/windows-update.js +4 -4
  262. package/src/diagnostics/failure-records.js +2 -2
  263. package/src/diagnostics/safe-event.js +34 -0
  264. package/src/graphiti/federated-application.js +2 -1
  265. package/src/graphiti/local-runtimes.js +22 -2
  266. package/src/graphiti/project-agent-task-sessions.js +1 -8
  267. package/src/graphiti/roundtable-host.js +15 -2
  268. package/src/graphiti/runtime-config.js +3 -1
  269. package/src/graphiti/task-context-entry.js +6 -3
  270. package/src/guest-access/failed-bearer-limit.js +31 -0
  271. package/src/guest-access/guest-card.js +22 -0
  272. package/src/guest-access/guest-mcp.js +34 -0
  273. package/src/guest-access/guest-routes.js +144 -0
  274. package/src/guest-access/listener.js +152 -0
  275. package/src/guest-access/refusal-tally.js +37 -0
  276. package/src/guest-access/runtime.js +117 -0
  277. package/src/http/api-router.js +8 -1
  278. package/src/http/guest-links-api-router.js +42 -0
  279. package/src/http/lifecycle-hooks-api-router.js +128 -0
  280. package/src/http/response.js +7 -6
  281. package/src/http/statement-api-router.js +10 -3
  282. package/src/http/visitor-access-api-router.js +29 -15
  283. package/src/judgment/routing.js +6 -1
  284. package/src/knowledge-impressions/store.js +30 -6
  285. package/src/local-runtime/console-autostart-record.js +10 -0
  286. package/src/local-runtime/console-health.js +7 -2
  287. package/src/local-runtime/lifecycle.js +2 -3
  288. package/src/mcp/http-session-transport.js +384 -0
  289. package/src/mcp/remote-http-server.js +27 -357
  290. package/src/native-runtime/runtime.js +28 -3
  291. package/src/native-runtime/windows-processes.js +6 -6
  292. package/src/presence/windows-helper-pin.js +1 -1
  293. package/src/server/lan-access.js +43 -9
  294. package/src/server.js +31 -2
  295. package/src/setup/graph-runtime.js +10 -6
  296. package/src/statement/agent-tool.js +16 -8
  297. package/src/statement/compounding-statement.js +55 -0
  298. package/src/system/doctor.js +1 -1
  299. package/src/system/fuli-process-scan.js +81 -0
  300. package/src/system/system-service.js +2 -2
  301. package/src/text/local-paths.js +61 -11
  302. package/src/visit-requests/auto-envelope.js +101 -0
  303. package/src/visit-requests/git-names.js +10 -0
  304. package/src/visit-requests/http.js +105 -0
  305. package/src/visit-requests/peer-entry.js +18 -0
  306. package/src/visit-requests/records.js +140 -0
  307. package/src/visit-requests/runner.js +164 -0
  308. package/src/visit-requests/service.js +575 -0
  309. package/src/visit-requests/worktree.js +351 -0
  310. package/src/visitor-access/guest-links.js +75 -0
  311. package/src/visitor-access/port.js +82 -7
  312. package/src/visitor-access/rate-limit.js +23 -0
  313. package/src/visitor-access/store.js +124 -3
  314. package/src/whats-new/lines/0.27.4.json +13 -0
  315. package/dist/web/assets/FieldRoot-oxmAMICi.js +0 -1
  316. package/dist/web/assets/HowtoPage-Dx7xGKQi.js +0 -1
  317. package/dist/web/assets/KnowledgePage-CwrWmdLl.js +0 -1
  318. package/dist/web/assets/KnowledgeWorkspace-D8Q8usZc.js +0 -4
  319. package/dist/web/assets/MenuSeparator-C_h65gsb.js +0 -1
  320. package/dist/web/assets/ModelSettingsPage-B_Udk6b7.js +0 -1
  321. package/dist/web/assets/NoticeRow-CcQ1J4wZ.js +0 -1
  322. package/dist/web/assets/PersonalProjectsPage-CgqC4u77.js +0 -1
  323. package/dist/web/assets/PopperContent-BkTZlJWP.js +0 -1
  324. package/dist/web/assets/RovingFocusGroup-Dvddk8pN.js +0 -1
  325. package/dist/web/assets/RovingFocusItem-Ck-FCX8l.js +0 -1
  326. package/dist/web/assets/SettingsPage-C80ljt40.js +0 -1
  327. package/dist/web/assets/TodayPage-EJ8SWFE0.css +0 -1
  328. package/dist/web/assets/TodayPage-wkVzpeI1.js +0 -1
  329. package/dist/web/assets/VisuallyHiddenInput-Cc2Qp6aL.js +0 -1
  330. package/dist/web/assets/WidgetSlot-7bCPwUl2.js +0 -2
  331. package/dist/web/assets/WorkbenchListPage-DlE6S2WC.js +0 -1
  332. package/dist/web/assets/_plugin-vue_export-helper-BXUcxlz4.js +0 -9
  333. package/dist/web/assets/agent-occupation-BQG-rvnx.js +0 -1
  334. package/dist/web/assets/checkbox-DNX0E3Ym.js +0 -1
  335. package/dist/web/assets/combobox-BG6YUVkp.js +0 -1
  336. package/dist/web/assets/copy-mention-BwT-8AqP.js +0 -1
  337. package/dist/web/assets/dropdown-menu-BScsuHhH.js +0 -1
  338. package/dist/web/assets/label-table-BVh638Sy.js +0 -1
  339. package/dist/web/assets/popup-host-CFQVWMSj.js +0 -1
  340. package/dist/web/assets/radio-group-D6RUfdDr.js +0 -1
  341. package/dist/web/assets/select-C0ecw2Gn.js +0 -1
  342. package/dist/web/assets/settings-tabs-D7-3akvW.js +0 -1
  343. package/dist/web/assets/switch-ClI3aPV3.js +0 -1
  344. package/dist/web/assets/tabs-BYpn35nj.js +0 -1
  345. package/dist/web/assets/useDirection-hD2Ki6e_.js +0 -1
  346. package/dist/web/assets/useForwardScopeId-DJpBz5AW.js +0 -1
  347. package/dist/web/assets/usePrimitiveElement-tPtHrVAh.js +0 -1
  348. package/dist/web/assets/utils-Bhge2HAf.js +0 -1
  349. package/src/system/mcp-process-scan.js +0 -55
@@ -1,18 +1,52 @@
1
1
  import { isIPv4 } from 'node:net';
2
2
  import { networkInterfaces } from 'node:os';
3
3
 
4
+ import { isVirtualAdapter } from '../../packages/roundtable/src/peer/lan-addresses.js';
5
+
4
6
  export const LAN_ACCESS_USERNAME = 'fuli';
5
7
 
6
8
  export function discoverLanAddresses(interfaces = networkInterfaces()) {
7
- const addresses = [];
8
- for (const entries of Object.values(interfaces ?? {})) {
9
- for (const entry of entries ?? []) {
10
- if (!entry || entry.internal || !isIpv4Family(entry.family)) continue;
11
- if (!isPrivateLanIpv4(entry.address)) continue;
12
- addresses.push(entry.address);
13
- }
14
- }
15
- return [...new Set(addresses)].sort(compareIpv4);
9
+ return [...new Set(interfaceEntries(interfaces).filter(({ address }) => isPrivateLanIpv4(address))
10
+ .map(({ address }) => address))].sort(compareIpv4);
11
+ }
12
+
13
+ // The guest link listener (rec issue 133) also serves 100.64.0.0/10, the
14
+ // carrier-grade NAT range Tailscale and many company VPNs hand out, but only
15
+ // on an adapter named like a VPN: an ISP that hands out such an address
16
+ // directly puts strangers in that range. The console's own LAN access never
17
+ // serves it. Physical adapters come first (the address a person is offered),
18
+ // then virtual ones (Hyper-V, WSL, Docker, VPNs), each in address order.
19
+ const VPN_ADAPTER = /tailscale|utun|wg|wireguard|tun|tap|zerotier|vpn/i;
20
+
21
+ export function discoverGuestAddresses(interfaces = networkInterfaces()) {
22
+ const served = interfaceEntries(interfaces).filter(({ name, address }) => isPrivateLanIpv4(address)
23
+ || (isCarrierGradeNat(address) && VPN_ADAPTER.test(name)));
24
+ const ordered = (virtual) => served.filter(({ name }) => isVirtualAdapter(name) === virtual)
25
+ .map(({ address }) => address).sort(compareIpv4);
26
+ return [...new Set([...ordered(false), ...ordered(true)])];
27
+ }
28
+
29
+ // A guest request's source, given the bound address it arrived on (both may
30
+ // be IPv4-mapped IPv6): a private LAN address, or a carrier-grade NAT address
31
+ // arriving on one of this computer's own carrier-grade NAT addresses, which
32
+ // discoverGuestAddresses binds only on VPN adapters.
33
+ export function isGuestSourceAddress(source, arrivedOn) {
34
+ const plain = (address) => (typeof address === 'string' ? address.replace(/^::ffff:/i, '') : '');
35
+ if (isPrivateLanIpv4(plain(source))) return true;
36
+ return isCarrierGradeNat(plain(source)) && isCarrierGradeNat(plain(arrivedOn));
37
+ }
38
+
39
+ function isCarrierGradeNat(address) {
40
+ if (!isIPv4(address)) return false;
41
+ const [first, second] = address.split('.').map(Number);
42
+ return first === 100 && second >= 64 && second <= 127;
43
+ }
44
+
45
+ // Each non-loopback IPv4 address with the name of its adapter.
46
+ function interfaceEntries(interfaces) {
47
+ return Object.entries(interfaces ?? {}).flatMap(([name, entries]) => (entries ?? [])
48
+ .filter((entry) => entry && !entry.internal && isIpv4Family(entry.family))
49
+ .map((entry) => ({ name, address: entry.address })));
16
50
  }
17
51
 
18
52
  export function lanConsoleUrls(addresses, port) {
package/src/server.js CHANGED
@@ -4,8 +4,10 @@ import { dirname } from 'node:path';
4
4
  import { fileURLToPath } from 'node:url';
5
5
 
6
6
  import { createPeerRuntime } from '../packages/roundtable/src/peer/peer-runtime.js';
7
+ import { createGuestAccess } from './guest-access/runtime.js';
7
8
  import { handleAgentAppPageRequest } from './http/agent-app-page-router.js';
8
9
  import { handleApiRequest } from './http/api-router.js';
10
+ import { createLifecycleHookCalls } from './agents/lifecycle-hook-calls.js';
9
11
  import { handleDelegatedRequest } from './http/agent-delegation-gate.js';
10
12
  import { mapHttpError } from './http/error-mapping.js';
11
13
  import { recordHttpFailure } from './diagnostics/failure-records.js';
@@ -26,6 +28,7 @@ import {
26
28
  import { createServerApplication } from './server/application-lifecycle.js';
27
29
  import { listenFetchableServer } from './server/listen.js';
28
30
  import { resolveSetupPaths } from './setup/paths.js';
31
+ import { fuliMcpServerEntry } from './agent-kits/fuli-mcp-entry.js';
29
32
  import { createSystemService } from './system/system-service.js';
30
33
  import { startDreamingScheduler } from './dreaming/scheduler.js';
31
34
  import { startRetrospectiveScheduler } from './retrospectives/scheduler.js';
@@ -163,6 +166,9 @@ export async function createServer(options = {}) {
163
166
  // What the person lets FLAs change for them, and each change made (rec#11 D-81).
164
167
  const agentDelegation = options.agentDelegation ?? (localOptions.runtimeConfigPath
165
168
  ? createAgentDelegation(dirname(localOptions.runtimeConfigPath)) : null);
169
+ // Installed hooks of this data directory hand their calls to this console (lifecycle-hooks-api-router.js).
170
+ const lifecycleHooks = options.lifecycleHooks ?? (localOptions.runtimeConfigPath
171
+ ? createLifecycleHookCalls({ runtimeConfigPath: localOptions.runtimeConfigPath, baseEnv: options.env ?? process.env }) : null);
166
172
  knowledgeHardDelete?.reconcile().catch((error) => {
167
173
  console.warn(`Permanent deletes were not reconciled: ${error?.message ?? error}`);
168
174
  });
@@ -181,10 +187,11 @@ export async function createServer(options = {}) {
181
187
  let stopEmbeddingModelUpdates = () => {};
182
188
  let stopOccupationPluginUpdates = () => {};
183
189
  let peer = null;
190
+ let guestAccess = null;
184
191
  function closeResources() {
185
192
  resourcesClosing ??= (async () => {
186
193
  const failures = [];
187
- for (const close of [() => stopJudgment(), () => stopDreaming(), () => stopRetrospectives(), () => stopToolSuggestions(), () => stopDuplicateMerger(), () => semanticIndexer?.stop(), () => retrievalTerms?.close(), () => stopClientLinkUpdates(), () => stopEmbeddingModelUpdates(), () => stopOccupationPluginUpdates(), () => peer?.close(), () => system?.close?.(), () => agentDelegation?.close(), () => runtime.close(),
194
+ for (const close of [() => stopJudgment(), () => stopDreaming(), () => stopRetrospectives(), () => stopToolSuggestions(), () => stopDuplicateMerger(), () => semanticIndexer?.stop(), () => retrievalTerms?.close(), () => stopClientLinkUpdates(), () => stopEmbeddingModelUpdates(), () => stopOccupationPluginUpdates(), () => peer?.close(), () => guestAccess?.close(), () => system?.close?.(), () => agentDelegation?.close(), () => runtime.close(),
188
195
  () => releaseDataDirectory()]) {
189
196
  try {
190
197
  const pending = close();
@@ -265,6 +272,7 @@ export async function createServer(options = {}) {
265
272
  judgmentUndo,
266
273
  clientLinks,
267
274
  agentDelegation,
275
+ lifecycleHooks,
268
276
  authority,
269
277
  lanAuthorities: allowedLanAuthorities,
270
278
  lanAccessToken: lanToken
@@ -338,9 +346,28 @@ export async function createServer(options = {}) {
338
346
  }) ?? (() => {});
339
347
  // Resumes only what the owner already turned on; console LAN access never enables it.
340
348
  if (application.peer && options.peer !== false) {
349
+ // FULI's own MCP server as the installer writes it for a client: an ask from another computer,
350
+ // answered only in this console, loads only this one (packages/roundtable deliver). Set here, in
351
+ // the console's composition root, so no hook or MCP process reaches the installer's packs.
352
+ if (localOptions.runtimeConfigPath) {
353
+ const paths = resolveSetupPaths({ dataDir: dirname(localOptions.runtimeConfigPath) });
354
+ application.fuliMcpServer = (client) => {
355
+ try { return fuliMcpServerEntry({ paths, runtimeConfigPath: localOptions.runtimeConfigPath, client }); } catch { return null; }
356
+ };
357
+ }
341
358
  peer = createPeerRuntime({ host: application.roundtableHost, roundtable: application.roundtable, port: application.peer,
342
359
  onError: (error) => console.error(`LAN roundtable: ${error.code ?? error.message}`) });
343
360
  peer.resume().catch((error) => console.error(`LAN roundtable could not resume: ${error.code ?? error.message}`));
361
+ // Visit requests arrive through that runtime and run in this process only.
362
+ try { application.visitorAccess?.requests?.resume(); }
363
+ catch (error) { console.error(`Visit requests could not resume: ${error.code ?? error.message}`); }
364
+ }
365
+ // Guest links (rec issue 133): their own listener on port 2729 while a link is live, never the console's.
366
+ if (application.visitorAccess && application.roundtableHost) {
367
+ guestAccess = createGuestAccess({ visitorAccess: application.visitorAccess, host: application.roundtableHost,
368
+ onError: (error) => console.error(`Guest links: ${error.code ?? error.message}`) });
369
+ application.guestAccess = guestAccess;
370
+ void guestAccess.start();
344
371
  }
345
372
 
346
373
  let closing = null;
@@ -402,6 +429,7 @@ async function handleRequest({
402
429
  judgmentUndo,
403
430
  clientLinks,
404
431
  agentDelegation,
432
+ lifecycleHooks,
405
433
  authority,
406
434
  lanAuthorities,
407
435
  lanAccessToken
@@ -446,7 +474,8 @@ async function handleRequest({
446
474
  readModelEvaluation,
447
475
  judgmentUndo,
448
476
  clientLinks,
449
- agentDelegation
477
+ agentDelegation,
478
+ lifecycleHooks
450
479
  }) })) return;
451
480
  serveStatic(new URL(request.url, 'http://127.0.0.1').pathname, response);
452
481
  }
@@ -271,9 +271,13 @@ export async function ensureGraphRuntime(input, dependencies = {}) {
271
271
  const url = `http://127.0.0.1:${runtimeSettings.ports.console}`;
272
272
  const consoleStart = Number.isInteger(child.pid) ? await waitForWeb(url, child.pid, deps) : 'abandoned';
273
273
  if (consoleStart !== 'ready') {
274
- if (Number.isInteger(child.pid)) deps.stopProcess(child.pid);
274
+ // This console was never recorded, so no stop will find it: the start
275
+ // returns only once it is gone (SIGTERM, then SIGKILL, bounded), and says
276
+ // so when it could not be confirmed gone.
277
+ const ended = !Number.isInteger(child.pid) || !deps.isProcessAlive(child.pid) || await terminateConsole(child.pid,
278
+ { signal: deps.stopProcess, isAlive: deps.isProcessAlive, wait: deps.wait, now: deps.now });
275
279
  throw new Error(consoleStartFailure(consoleStart, {
276
- url,
280
+ url, pid: child.pid, ended,
277
281
  providerUrls: input.personalOnly ? [urls.personal] : [urls.personal, urls.workspace],
278
282
  logPath: input.paths.logPath,
279
283
  portProblem: await deps.consolePortProblem(runtimeSettings.ports.console, lan ? '0.0.0.0' : '127.0.0.1')
@@ -548,10 +552,10 @@ function waitForWeb(url, pid, deps) {
548
552
  // By now Neo4j and the Provider run and the graph is set up; only the console
549
553
  // failed. Say so, so a person neither assumes nothing started nor loses track of it.
550
554
  // A port Windows reserves is named first: retrying on the same port cannot help.
551
- function consoleStartFailure(outcome, { url, providerUrls, logPath, portProblem }) {
552
- const problem = outcome === 'timed_out'
553
- ? `The Fuli console did not answer at ${url} within ${CONSOLE_READY_TIMEOUT_MS / 1000} s, so it was stopped.`
554
- : 'The Fuli console exited while starting.';
555
+ function consoleStartFailure(outcome, { url, pid, ended, providerUrls, logPath, portProblem }) {
556
+ const problem = outcome !== 'timed_out' ? 'The Fuli console exited while starting.'
557
+ : ended ? `The Fuli console did not answer at ${url} within ${CONSOLE_READY_TIMEOUT_MS / 1000} s, so it was stopped.`
558
+ : `The Fuli console did not answer at ${url} within ${CONSOLE_READY_TIMEOUT_MS / 1000} s and did not end when stopped; its process ${pid} may still be running.`;
555
559
  return `${portProblem ? `${portProblem} ` : ''}${problem} Neo4j and the graph Provider are already running (${providerUrls.join(', ')}) ` +
556
560
  `and your data is kept. The console's output is in ${logPath}. ` +
557
561
  'Run the same command again to retry, or run `fuli stop` to stop the graph services.';
@@ -1,9 +1,10 @@
1
1
  import { InvalidInputError } from '../app/application-error.js';
2
- import { compoundingStatement, currentLocalWeek, statementWindow } from './compounding-statement.js';
2
+ import { clientModelUsage, compoundingStatement, currentLocalWeek, statementWindow } from './compounding-statement.js';
3
3
 
4
4
  // read_compounding_statement: the same answer as GET /api/statement, plus one
5
5
  // line per number saying who stands behind it. An Agent's report is its own
6
- // claim; FULI did not see the work.
6
+ // claim; FULI did not see the work. usage: true adds GET /api/statement/usage
7
+ // for the same window.
7
8
  const PROVENANCE = Object.freeze({
8
9
  total: ['total.confirmed: observed, items FULI holds as confirmed now'],
9
10
  series: ['series: observed, confirmed items at each week end'],
@@ -15,15 +16,22 @@ const PROVENANCE = Object.freeze({
15
16
  decided: ['decided.forYou, decided.undone: observed, Tonborg\'s applied decisions and your undos'],
16
17
  changed: ['changed.forYou: observed, console changes FLAs made for you that succeeded'],
17
18
  done: ['done.finished, done.failed: reported, the status Agents gave their tasks'],
18
- answered: ['answered.questions: observed, Agent questions you answered in FULI']
19
+ answered: ['answered.questions: observed, Agent questions you answered in FULI'],
20
+ usage: ['usage.rows[].taskEntries: observed, task entries FULI recorded from that client (each that carried knowledge or a habit)',
21
+ 'usage.rows[].wakes, usage.rows[].failedWakes: observed, wakes FULI started that answered / did not',
22
+ 'usage.rows[].model: reported, as the client named it; null means no client reported it, never a guess',
23
+ 'usage.rows[].tokens: reported (client_reported), what woken clients reported for tokens.wakes wakes; absent = none reported']
19
24
  });
20
25
 
21
26
  export const STATEMENT_HANDLERS = Object.freeze({
22
- read_compounding_statement: async (app, { from, to, weeks } = {}) => {
27
+ read_compounding_statement: async (app, { from, to, weeks, usage = false } = {}) => {
23
28
  if ((from === undefined) !== (to === undefined)) throw new InvalidInputError('pass from and to together, or neither for this week');
24
- const window = from === undefined ? currentLocalWeek() : { from, to };
25
- const statement = await compoundingStatement(app, statementWindow({ ...window, ...(weeks === undefined ? {} : { weeks }) }));
26
- return { ...statement,
27
- provenance: Object.entries(PROVENANCE).filter(([section]) => section in statement).flatMap(([, lines]) => lines) };
29
+ const window = statementWindow({ ...(from === undefined ? currentLocalWeek() : { from, to }),
30
+ ...(weeks === undefined ? {} : { weeks }) });
31
+ const [statement, usageSection] = await Promise.all([compoundingStatement(app, window),
32
+ usage ? clientModelUsage(app, window) : null]);
33
+ const answer = { ...statement, ...(usageSection ? { usage: usageSection } : {}) };
34
+ return { ...answer,
35
+ provenance: Object.entries(PROVENANCE).filter(([section]) => section in answer).flatMap(([, lines]) => lines) };
28
36
  }
29
37
  });
@@ -1,5 +1,6 @@
1
1
  import { InvalidInputError } from '../app/application-error.js';
2
2
  import { positiveInteger } from '../validation/values.js';
3
+ import { normalisedClient } from '../agents/source-applications.js';
3
4
 
4
5
  // The person's compounding statement (复利账单): for one window, only the
5
6
  // numbers FULI really has. Each section comes from one source read once; a
@@ -14,6 +15,11 @@ const MAX_WINDOW_MS = 366 * DAY_MS;
14
15
  const MAX_DAYS = 371;
15
16
  export const DEFAULT_WEEKS = 8;
16
17
  export const MAX_WEEKS = 26;
18
+ // Usage by client and model: the rows a reader gets, and the days the executor judgment looks back.
19
+ const USAGE_ROWS = 20;
20
+ const USAGE_DAYS = 30;
21
+ const RECENT_USAGE_NOTE = 'taskEntries: task entries FULI recorded; wakes / failedWakes: wakes FULI started that answered / did not; '
22
+ + 'model null: not reported. A task entry records no outcome.';
17
23
  const INSTANT = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})$/;
18
24
 
19
25
  // from/to: ISO instants with a zone (the person's local week bounds, as the
@@ -111,6 +117,55 @@ export async function statementDays(app, { from, to, start, end, offsetMinutes }
111
117
  };
112
118
  }
113
119
 
120
+ // Which clients and models the person's assistants worked with in a window:
121
+ // task entries FULI recorded (client as recorded, model as the client's hook
122
+ // reported it) and wakes of clients FULI woke, answered and failed (model and
123
+ // tokens as the woken client reported them). A model nobody reported stays null, its own row;
124
+ // tokens appear only where a client reported them. Two grouped local reads;
125
+ // the most active rows first, at most USAGE_ROWS of them.
126
+ export async function clientModelUsage(app, { from, to }) {
127
+ const window = { from: from.toISOString(), to: to.toISOString() };
128
+ const [entries, wakes] = await Promise.all([
129
+ settle(() => app.recallImpressions.entriesByClientModel({ personalSpaceId: app.config.personal.spaceId, ...window })),
130
+ settle(() => app.roundtable.wakeUsage(window))
131
+ ]);
132
+ const rows = new Map();
133
+ const row = (reported, model) => {
134
+ const client = normalisedClient(reported) || 'other';
135
+ const key = JSON.stringify([client, model]);
136
+ if (!rows.has(key)) rows.set(key, { client, model, taskEntries: 0, wakes: 0, failedWakes: 0, tokens: null });
137
+ return rows.get(key);
138
+ };
139
+ for (const { client, model, entries: count } of entries?.value ?? []) row(client, model).taskEntries += count;
140
+ for (const { client, model, wakes: answered, failedWakes, inputTokens, outputTokens, tokenWakes } of wakes?.value ?? []) {
141
+ const target = row(client, model);
142
+ target.wakes += answered;
143
+ target.failedWakes += failedWakes;
144
+ if (tokenWakes) target.tokens = addTokens(target.tokens, { input: inputTokens, output: outputTokens, wakes: tokenWakes });
145
+ }
146
+ const work = row => row.taskEntries + row.wakes + row.failedWakes;
147
+ const ranked = [...rows.values()].sort((left, right) => work(right) - work(left)
148
+ || left.client.localeCompare(right.client) || String(left.model ?? '').localeCompare(String(right.model ?? '')));
149
+ return { window, rows: ranked.slice(0, USAGE_ROWS), more: ranked.length > USAGE_ROWS,
150
+ unavailable: [...(entries ? [] : ['taskEntries']), ...(wakes ? [] : ['wakes'])] };
151
+ }
152
+
153
+ // What Tonborg's executor judgment reads beside its other evidence: the last
154
+ // USAGE_DAYS days of clientModelUsage, compact. Null when nothing was read.
155
+ export async function recentClientModelUsage(app, now = new Date()) {
156
+ const usage = await clientModelUsage(app, { from: new Date(now.getTime() - USAGE_DAYS * DAY_MS), to: now });
157
+ if (!usage.rows.length) return null;
158
+ return { days: USAGE_DAYS, note: RECENT_USAGE_NOTE,
159
+ rows: usage.rows.map(({ client, model, taskEntries, wakes, failedWakes }) => ({ client, model, taskEntries, wakes, failedWakes })),
160
+ ...(usage.more ? { more: true } : {}) };
161
+ }
162
+
163
+ function addTokens(sum, { input, output, wakes }) {
164
+ const add = (left, right) => (left === null || right === null ? left ?? right : left + right);
165
+ return { input: add(sum?.input ?? null, input), output: add(sum?.output ?? null, output),
166
+ wakes: (sum?.wakes ?? 0) + wakes, source: 'client_reported' };
167
+ }
168
+
114
169
  function offsetOf(value) {
115
170
  const zone = value.match(/(Z|[+-]\d{2}:\d{2})$/)[1];
116
171
  if (zone === 'Z') return 0;
@@ -65,7 +65,7 @@ const canInstall = (client) => client.detected && !client.manualOnly && !client.
65
65
  // dataDirShared: the principals besides the person and SYSTEM that the data
66
66
  // directory's ACL lets in (windows-data-acl.js); none outside Windows.
67
67
  // runningServers: this installation's MCP servers the OS shows running
68
- // ([{ pid, parentPid, startedAt }], mcp-process-scan.js), or null when the
68
+ // ([{ pid, parentPid, startedAt }], fuli-process-scan.js), or null when the
69
69
  // list could not be read.
70
70
  // npmCopies: the npm installations of FULI beside the desktop app's own
71
71
  // (src/desktop/npm-copies.js); none when this console is not the app's.
@@ -0,0 +1,81 @@
1
+ import { execute, parsePowershellJson, powershellArguments } from '../local-runtime/windows-process-handle.js';
2
+
3
+ // FULI processes of one data directory that the OS shows running, recorded or
4
+ // not, by the --runtime-config their command line names. Each answers
5
+ // [{ pid, parentPid, startedAt }], or null when the list could not be read in time.
6
+ const SCAN_TIMEOUT_MS = 5000;
7
+ const MCP_SCRIPT = 'mcp-server.js';
8
+ const NOT_SESSIONS = ['--worker', '--call'];
9
+ // The console's entry, src/server.js (not mcp-server.js).
10
+ const CONSOLE_SCRIPT = /[\\/]src[\\/]server\.js\b/;
11
+
12
+ // Every command line naming server.js (the console's and the MCP server's); each scan filters its own.
13
+ const WINDOWS_SCRIPT = `$found = @(Get-CimInstance Win32_Process -Filter "CommandLine LIKE '%server.js%'" | ForEach-Object {
14
+ [pscustomobject]@{ pid = [int]$_.ProcessId; parentPid = [int]$_.ParentProcessId; commandLine = $_.CommandLine;
15
+ startedAt = $(if ($_.CreationDate) { $_.CreationDate.ToUniversalTime().ToString('o') } else { $null }) } })
16
+ ConvertTo-Json -Compress -Depth 3 -InputObject $found`;
17
+
18
+ // The stdio MCP servers of this installation: a server started by a FULI
19
+ // older than process-registry.js writes no record, so only the process list
20
+ // can name it. Worker (--worker) and one-shot (--call) runs are not sessions.
21
+ // A session can show more than one: the stdio relay (stdio-relay.js) and, on
22
+ // an installed Windows copy, FuliNode.exe run the same arguments as their server child.
23
+ // run(command, args, options) → { stdout }: execute() in production, a fake in tests.
24
+ export function runningMcpServers(runtimeConfigPath, options = {}) {
25
+ return scan(runtimeConfigPath, command => command.includes(MCP_SCRIPT) && !NOT_SESSIONS.some((flag) => command.includes(flag)),
26
+ options);
27
+ }
28
+
29
+ // The consoles serving this data directory, recorded or not: one a start
30
+ // gave up on, or whose start was killed, is in no record a stop reads.
31
+ export function runningConsoles(runtimeConfigPath, options = {}) {
32
+ return scan(runtimeConfigPath, command => CONSOLE_SCRIPT.test(command), options);
33
+ }
34
+
35
+ async function scan(runtimeConfigPath, matches, { platform = process.platform, run = execute } = {}) {
36
+ try {
37
+ const rows = platform === 'win32' ? await windowsRows(run) : await psRows(run);
38
+ // Windows and macOS compare paths without case; Windows also either separator.
39
+ const fold = platform === 'win32' ? value => value.replaceAll('\\', '/').toLowerCase()
40
+ : platform === 'darwin' ? value => value.toLowerCase() : value => value;
41
+ const wanted = fold(runtimeConfigPath);
42
+ return rows.filter(({ commandLine }) => {
43
+ const command = fold(commandLine);
44
+ return namesRuntimeConfig(command, wanted) && matches(command);
45
+ }).map(({ pid, parentPid, startedAt }) => ({ pid, parentPid, startedAt }));
46
+ } catch {
47
+ return null;
48
+ }
49
+ }
50
+
51
+ // Whether the argument after --runtime-config is exactly this path (optionally
52
+ // quoted), not one that merely contains it (/y/x/.fuli/… holds /x/.fuli/…).
53
+ function namesRuntimeConfig(command, wanted) {
54
+ const flag = /--runtime-config[=\s]\s*"?/g;
55
+ for (let found = flag.exec(command); found; found = flag.exec(command)) {
56
+ const rest = command.slice(found.index + found[0].length);
57
+ if (rest.startsWith(wanted) && /^(?:$|["\s])/.test(rest.slice(wanted.length))) return true;
58
+ }
59
+ return false;
60
+ }
61
+
62
+ async function windowsRows(run) {
63
+ const { stdout } = await run('powershell.exe', powershellArguments(WINDOWS_SCRIPT), { timeout: SCAN_TIMEOUT_MS });
64
+ const rows = parsePowershellJson(stdout);
65
+ return (Array.isArray(rows) ? rows : rows ? [rows] : []).filter((row) => typeof row.commandLine === 'string')
66
+ .map((row) => ({ pid: row.pid, parentPid: row.parentPid, commandLine: row.commandLine,
67
+ startedAt: typeof row.startedAt === 'string' ? new Date(row.startedAt).toISOString() : null }));
68
+ }
69
+
70
+ // lstart is read with TZ=UTC and LC_ALL=C, five fields: Tue Oct 27 10:15:30 2026.
71
+ async function psRows(run) {
72
+ const { stdout } = await run('ps', ['-A', '-ww', '-o', 'pid=,ppid=,lstart=,command='],
73
+ { timeout: SCAN_TIMEOUT_MS, env: { ...process.env, TZ: 'UTC', LC_ALL: 'C' } });
74
+ return stdout.split('\n').flatMap((line) => {
75
+ const match = /^\s*(\d+)\s+(\d+)\s+(\S+\s+\S+\s+\S+\s+\S+\s+\S+)\s+(.*)$/.exec(line);
76
+ if (!match) return [];
77
+ const started = new Date(`${match[3]} UTC`);
78
+ return [{ pid: Number(match[1]), parentPid: Number(match[2]), commandLine: match[4],
79
+ startedAt: Number.isNaN(started.getTime()) ? null : started.toISOString() }];
80
+ });
81
+ }
@@ -40,7 +40,7 @@ import { readFormatOperations } from '../data-format/operations-log.js';
40
40
  import { createModelCapture } from '../debug-turns/model-capture.js';
41
41
  import { windowsDataAcl } from './windows-data-acl.js';
42
42
  import { debugTurnStore } from '../debug-turns/store.js';
43
- import { runningMcpServers } from './mcp-process-scan.js';
43
+ import { runningMcpServers } from './fuli-process-scan.js';
44
44
  import { isDesktopAppPackage } from '../desktop/desktop-app-package.js';
45
45
  import { createNpmCopyControl } from '../desktop/npm-copy-control.js';
46
46
  import { createCliPathControl } from '../desktop/cli-path.js';
@@ -98,7 +98,7 @@ export function createSystemService({
98
98
  transcriptFormat = createTranscriptFormatProbe(),
99
99
  // Who can open the data directory on Windows (windows-data-acl.js).
100
100
  dataDirAcl = windowsDataAcl(),
101
- // This installation's MCP servers the OS shows running (mcp-process-scan.js).
101
+ // This installation's MCP servers the OS shows running (fuli-process-scan.js).
102
102
  scanMcpServers = runningMcpServers,
103
103
  now = Date.now,
104
104
  runtimeBroker = createAdaptiveRuntimeBroker({
@@ -12,37 +12,87 @@
12
12
  // (C:\Users\Alice\Private Repo);
13
13
  // - a POSIX, home or relative path takes the following words on its line up
14
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).
15
+ // extension (/home/alice/my folder/file.txt); when its last segment begins
16
+ // with a capital or a digit, also up to eight capitalised words or numbers
17
+ // right after it, unless it ends a sentence (/home/alice/Secret Plans 2);
18
+ // other words after it stay (see /opt/app for details, /usr/bin I think);
19
+ // known limit: a lower-case segment's tail stays (/home/alice/secret Plans);
20
+ // - such a path, or a file: URL, right after a quote or backtick runs to the
21
+ // same mark on its line ("/home/alice/secret plans"); a file: URL follows
22
+ // the capitalised words like a POSIX path;
23
+ // - closing punctuation after these paths stays, outside the replacement
24
+ // ([path], then).
17
25
  // mode 'keep-routes' (a diagnostic event) treats only home, mount and system
18
26
  // roots as POSIX paths and follows no spaces after the path: its operations
19
27
  // 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"'<>]`;
28
+ // In both modes a quote, backtick or angle bracket ends a path.
29
+ const SEGMENTS = String.raw`(?:[^\\/\r\n"'\x60<>|*?]*[\\/])*[^\s\\/"'\x60<>|*?]*`;
30
+ const WORD = String.raw`[^\s"'\x60<>]`;
22
31
  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"'<>]*`;
32
+ const TO_LINE_END = String.raw`[^\r\n"'\x60<>|]*`;
33
+ const FILE_URL = String.raw`\bfile:[^\s"'\x60<>]*`;
25
34
  const HOME_OR_RELATIVE = String.raw`(?<![\w.~])(?:~|\.{1,2})[\\/]${SEGMENTS}`;
26
35
  const POSIX = String.raw`(?<![\w.:/\\~-])\/`;
27
36
  const SYSTEM_ROOTS = '(?:home|Users|mnt|root|tmp|var|private|etc|opt|Volumes|usr|srv|media|run)(?:/|\\b)';
37
+ const QUOTES = new Set(['"', '\'', '`']);
38
+ const MAX_PATH_WORDS = 8;
39
+ // A following word that continues a path in strict mode: capitalised or a number.
40
+ const CAPITALISED_WORD = new RegExp(String.raw`[ \t]+[\p{Lu}\p{N}]${WORD}*`, 'uy');
41
+ const CAPITALISED = /[\p{Lu}\p{N}]/u;
42
+ // Punctuation that closes a sentence or a bracket after a path.
43
+ const CLOSING_MARKS = new Set(['.', ',', ';', ':', '!', '?', ')', ']', '}']);
44
+ const LINE_BREAKS = new Set(['\r', '\n']);
28
45
 
29
46
  const PATTERNS = Object.freeze({
30
47
  strict: new RegExp([
31
- FILE_URL,
32
48
  String.raw`\b[A-Za-z]:[\\/]${TO_LINE_END}`,
33
49
  String.raw`\\\\${TO_LINE_END}`,
34
- `${HOME_OR_RELATIVE}${PATH_WORDS}`,
35
- String.raw`${POSIX}[^\s/"'<>]+[^\s"'<>]*${PATH_WORDS}`
50
+ `(?<words>${FILE_URL}|${HOME_OR_RELATIVE}${PATH_WORDS}|${POSIX}[^\\s/"'\`<>]+[^\\s"'\`<>]*${PATH_WORDS})`
36
51
  ].join('|'), 'gi'),
37
52
  'keep-routes': new RegExp([
38
53
  FILE_URL,
39
54
  String.raw`\b[A-Za-z]:[\\/]${SEGMENTS}`,
40
55
  String.raw`\\\\${SEGMENTS}`,
41
56
  HOME_OR_RELATIVE,
42
- String.raw`${POSIX}${SYSTEM_ROOTS}[^\s"'<>]*`
57
+ String.raw`${POSIX}${SYSTEM_ROOTS}[^\s"'\x60<>]*`
43
58
  ].join('|'), 'gi')
44
59
  });
45
60
 
46
61
  export function withoutLocalPaths(text, { mode = 'strict' } = {}) {
47
- return text.replace(PATTERNS[mode], '[path]');
62
+ const pattern = new RegExp(PATTERNS[mode]);
63
+ let shown = '';
64
+ let from = 0;
65
+ for (let match = pattern.exec(text); match; match = pattern.exec(text)) {
66
+ const end = match.groups?.words === undefined ? pattern.lastIndex : pathWordsEnd(text, match.index, pattern.lastIndex);
67
+ shown += `${text.slice(from, match.index)}[path]`;
68
+ from = end;
69
+ pattern.lastIndex = Math.max(end, match.index + 1);
70
+ }
71
+ return shown + text.slice(from);
72
+ }
73
+
74
+ // Where a strict file: URL, POSIX, home or relative path that the pattern
75
+ // matched from start to end really ends (see the rules above). Each loop only
76
+ // walks characters no later match walks again, so long input stays linear.
77
+ function pathWordsEnd(text, start, end) {
78
+ const opener = text[start - 1];
79
+ if (QUOTES.has(opener)) {
80
+ for (let at = end; at < text.length && !LINE_BREAKS.has(text[at]); at += 1) if (text[at] === opener) return at;
81
+ }
82
+ let reached = end;
83
+ if (CAPITALISED.test(text[lastSegmentStart(text, start, end)] ?? '')) {
84
+ for (let words = 0; words < MAX_PATH_WORDS && !CLOSING_MARKS.has(text[reached - 1]); words += 1) {
85
+ CAPITALISED_WORD.lastIndex = reached;
86
+ if (!CAPITALISED_WORD.test(text)) break;
87
+ reached = CAPITALISED_WORD.lastIndex;
88
+ }
89
+ }
90
+ while (reached > start + 1 && CLOSING_MARKS.has(text[reached - 1])) reached -= 1;
91
+ return reached;
92
+ }
93
+
94
+ function lastSegmentStart(text, start, end) {
95
+ let at = end;
96
+ while (at > start && text[at - 1] !== '/' && text[at - 1] !== '\\') at -= 1;
97
+ return at;
48
98
  }
@@ -0,0 +1,101 @@
1
+ import { detectSensitiveContent } from '../security/sensitive-content.js';
2
+
3
+ // The rule a requester in mode auto runs under (auto_envelope_v1). It decides
4
+ // from facts FULI checks itself: the budget, the plan's declared fields (only
5
+ // to keep a request back, never to let one through on its own), and after the
6
+ // run the actual diff of the request's branch. What a model said can only make
7
+ // the outcome stricter: a plan that declares nothing risky still meets the
8
+ // diff check, and a diff that fails it is held whatever the plan said.
9
+ export const AUTO_ENVELOPE_RULE = 'auto_envelope_v1';
10
+ const MAX_CHANGED_LINES = 400;
11
+ const MAX_CHANGED_FILES = 20;
12
+
13
+ // Package manifests and lockfiles of the ecosystems FULI meets, build and
14
+ // tool files that run code when the owner opens, builds or tests the branch
15
+ // (editor, container and Agent settings, build scripts and wrappers, test
16
+ // hooks), CI, env files, Git's own files, config folders and anything that
17
+ // runs as a program.
18
+ const DENIED_NAMES = new Set(['package.json', 'package-lock.json', 'npm-shrinkwrap.json', 'yarn.lock', 'pnpm-lock.yaml',
19
+ 'pnpm-workspace.yaml', 'bun.lockb', 'cargo.toml', 'cargo.lock', 'go.mod', 'go.sum', 'pyproject.toml', 'poetry.lock',
20
+ 'pipfile', 'pipfile.lock', 'setup.py', 'setup.cfg', 'gemfile', 'gemfile.lock', 'composer.json', 'composer.lock',
21
+ 'pom.xml', 'packages.lock.json', 'podfile', 'podfile.lock', '.gitlab-ci.yml', '.travis.yml', 'azure-pipelines.yml',
22
+ 'jenkinsfile', 'makefile', 'justfile', 'rakefile', 'flake.nix', '.pre-commit-config.yaml', 'lefthook.yml', '.mcp.json',
23
+ 'claude.md', 'agents.md', 'gemini.md', '.npmrc', '.pnpmfile.cjs', '.envrc', 'conftest.py', 'build.rs', 'cmakelists.txt',
24
+ 'pytest.ini', 'tox.ini', 'noxfile.py', 'sitecustomize.py', 'usercustomize.py']);
25
+ const DENIED_DIRECTORIES = new Set(['.github', '.circleci', '.gitlab', '.husky', 'config', '.git', '.vscode', '.idea',
26
+ '.devcontainer', '.claude', '.cursor', '.mvn', '.cargo']);
27
+ const DENIED_PATTERNS = [/^requirements.*\.txt$/, /(?:^|\.)env(?:\.|$)/, /^\.yarnrc/, /\.csproj$/, /\.sln$/,
28
+ /^directory\.build\./, /^directory\.packages\.props$/, /^settings\.gradle/, /^build\.gradle/, /^gradlew/, /^mvnw/,
29
+ /\.config\.(?:js|cjs|mjs|ts|mts|cts)$/, /\.gemspec$/, /^dockerfile/, /^docker-compose/, /^\.eslintrc\.c?js$/, /^\.babelrc\.js$/,
30
+ /^\.prettierrc\.c?js$/, /\.targets$/, /\.props$/, /^gulpfile\./, /^gruntfile\./, /\.cmake$/, /\.pth$/,
31
+ /\.(?:exe|dll|so|dylib|sh|bash|zsh|bat|cmd|ps1|psm1|com|msi|app|jar|bin)$/];
32
+ // Folders denied where they start (gradle/wrapper sits inside gradle/).
33
+ const DENIED_PREFIXES = ['gradle/wrapper/'];
34
+
35
+ // Before the run: the budget is left and the lead's plan keeps to files under
36
+ // the project, with no dependency, configuration or network change. Answers
37
+ // { ok, checks: [{ name, ok }] }; a missing plan fails.
38
+ export function preRunCheck({ plan, budgetLeft }) {
39
+ const checks = [
40
+ { name: 'budget_left', ok: budgetLeft },
41
+ { name: 'plan_ready', ok: Boolean(plan) },
42
+ { name: 'areas_inside_project', ok: Boolean(plan) && plan.areas.length > 0 && plan.areas.every(insideProject) },
43
+ { name: 'no_dependency_changes', ok: plan?.dependencyChanges === false },
44
+ { name: 'no_config_changes', ok: plan?.configChanges === false },
45
+ { name: 'no_network', ok: plan?.network === false }
46
+ ];
47
+ return { ok: checks.every((check) => check.ok), checks };
48
+ }
49
+
50
+ // After the run, over the branch's actual changes (worktree.js branchChanges):
51
+ // every path inside the worktree and outside the deny list, no executable or
52
+ // binary file, at most MAX_CHANGED_LINES lines in MAX_CHANGED_FILES files, and
53
+ // no secret in what was added.
54
+ // platform: on Windows Git records no file modes, so any file without an
55
+ // extension (a script that is executable elsewhere) is denied too.
56
+ export function postRunCheck({ files, addedText, platform = process.platform }) {
57
+ const lines = files.reduce((sum, file) => sum + (file.added ?? 0) + (file.removed ?? 0), 0);
58
+ const checks = [
59
+ { name: 'paths_inside_worktree', ok: files.every((file) => insideProject(file.path)) },
60
+ { name: 'no_denied_paths', ok: !files.some((file) => deniedPath(file.path, platform)) },
61
+ { name: 'no_executables', ok: !files.some((file) => file.executable || file.binary || file.symlink) },
62
+ { name: 'within_size', ok: files.length <= MAX_CHANGED_FILES && lines <= MAX_CHANGED_LINES },
63
+ secretCheck(addedText)
64
+ ];
65
+ return { ok: checks.every((check) => check.ok), checks };
66
+ }
67
+
68
+ // Runs for every request whatever its mode: the changed paths that can run
69
+ // code when the branch is opened, checked out or built (the deny list above),
70
+ // at most HELD_PATHS of them, each cut to HELD_PATH_CHARS; any of them holds
71
+ // the result as runs_on_open for the owner to look at first.
72
+ const HELD_PATHS = 50;
73
+ const HELD_PATH_CHARS = 200;
74
+ export function runsOnOpenPaths(files, platform = process.platform) {
75
+ return files.filter((file) => deniedPath(file.path, platform) || file.executable || file.symlink)
76
+ .slice(0, HELD_PATHS).map((file) => file.path.slice(0, HELD_PATH_CHARS));
77
+ }
78
+
79
+ // Runs for every request whatever its mode: nothing that looks like a secret
80
+ // leaves this computer in a summary or reaches the owner's branch unflagged.
81
+ export function secretCheck(text) {
82
+ return { name: 'no_secrets', ok: !detectSensitiveContent(text).restricted };
83
+ }
84
+
85
+ // A path relative to the project, never climbing out of it.
86
+ function insideProject(path) {
87
+ if (typeof path !== 'string' || !path.trim() || path.includes('\0')) return false;
88
+ const normalized = path.replaceAll('\\', '/');
89
+ if (normalized.startsWith('/') || /^[A-Za-z]:/.test(normalized)) return false;
90
+ return !normalized.split('/').some((segment) => segment === '..');
91
+ }
92
+
93
+ function deniedPath(path, platform) {
94
+ const normalized = path.replaceAll('\\', '/').toLowerCase();
95
+ const segments = normalized.split('/');
96
+ const name = segments.at(-1);
97
+ return DENIED_NAMES.has(name) || name.startsWith('.git') || DENIED_PATTERNS.some((pattern) => pattern.test(name))
98
+ || DENIED_PREFIXES.some((prefix) => normalized.startsWith(prefix) || normalized.includes(`/${prefix}`))
99
+ || segments.slice(0, -1).some((segment) => DENIED_DIRECTORIES.has(segment))
100
+ || (platform === 'win32' && !name.includes('.'));
101
+ }
@@ -0,0 +1,10 @@
1
+ // Names Git or the file system resolve to .git / .gitmodules, so a visit
2
+ // worktree holding one under any spelling is held before Git sees it: any
3
+ // case, an 8.3 short name (git~1, gitmod~1), trailing dots or spaces (NTFS)
4
+ // and the characters HFS+ ignores (Git's own list: zero-width and
5
+ // direction marks, U+206A-U+206F, the byte order mark) dropped.
6
+ const IGNORABLE = /[​-‏‪-‮⁠-⁤-]/g;
7
+ const fileSystemName = (name) => name.replace(IGNORABLE, '').replace(/[. ]+$/, '').toLowerCase();
8
+
9
+ export const gitDirectoryName = (name) => ['.git', 'git~1'].includes(fileSystemName(name));
10
+ export const gitModulesName = (name) => fileSystemName(name) === '.gitmodules' || /^gitmod~\d+$/.test(fileSystemName(name));