bazilion 0.25.0 → 0.26.1

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 (382) hide show
  1. package/README.md +41 -140
  2. package/dist/cli.js +5001 -2
  3. package/dist/cli.js.map +1 -0
  4. package/dist/daemon.js +17836 -2
  5. package/dist/daemon.js.map +1 -0
  6. package/dist/schema.sql +382 -0
  7. package/dist/web/client/assets/{AgentAvatar-JYijLvZ2.js → AgentAvatar-DWx-bM6n.js} +1 -1
  8. package/dist/web/client/assets/ChatPane-DOV_HJg-.js +72 -0
  9. package/dist/web/client/assets/ConfigPage-Dfu9DzFX.js +1 -0
  10. package/dist/web/client/assets/ConfirmDialog-536ziJ5P.js +1 -0
  11. package/dist/web/client/assets/FieldRow-z1JqCdqn.js +1 -0
  12. package/dist/web/client/assets/ModelSelect-CvOHjUyB.js +1 -0
  13. package/dist/web/client/assets/ResultCard-X4nTbjYY.js +1 -0
  14. package/dist/web/client/assets/SectionTabs-DXHzXmmb.js +1 -0
  15. package/dist/web/client/assets/SkillFindings-8LX6bYf_.js +1 -0
  16. package/dist/web/client/assets/SkillsPicker-Cr87y_W-.js +1 -0
  17. package/dist/web/client/assets/SpawnDialog-DoZl-yes.js +1 -0
  18. package/dist/web/client/assets/SpawnTeamModal-C638hEoN.js +1 -0
  19. package/dist/web/client/assets/Tabs-D0LgBNIk.js +1 -0
  20. package/dist/web/client/assets/TeamForm-C-WzvOl4.js +1 -0
  21. package/dist/web/client/assets/TeamPolicyEditor-CSKBx0oK.js +7 -0
  22. package/dist/web/client/assets/UnsavedChangesGuard-GC-vzw7h.js +1 -0
  23. package/dist/web/client/assets/_id-BKLynswT.js +1 -0
  24. package/dist/web/client/assets/_id-BYM_NORr.js +1 -0
  25. package/dist/web/client/assets/_id-Cxa98a9m.js +1 -0
  26. package/dist/web/client/assets/_id-D4hV1U1t.js +1 -0
  27. package/dist/web/client/assets/agent-actions-CXQCoxKO.js +1 -0
  28. package/dist/web/client/assets/agents-BxPS1_Bp.js +1 -0
  29. package/dist/web/client/assets/agents-GozAWW-l.js +1 -0
  30. package/dist/web/client/assets/attention-Cz9rZcrr.js +1 -0
  31. package/dist/web/client/assets/chevron-right-CPAb1zac.js +1 -0
  32. package/dist/web/client/assets/config-9vv9Lipb.js +3 -0
  33. package/dist/web/client/assets/entities-xVoB-p2j.js +1 -0
  34. package/dist/web/client/assets/inbox-DHLArXxl.js +1 -0
  35. package/dist/web/client/assets/index-1YXquAq8.js +52 -0
  36. package/dist/web/client/assets/jsx-runtime-bzQ4Vb5N.js +1 -0
  37. package/dist/web/client/assets/learning-PvtXm8Ne.js +1 -0
  38. package/dist/web/client/assets/login-DIJpNQFo.js +1 -0
  39. package/dist/web/client/assets/mcp-pKBL0xIf.js +1 -0
  40. package/dist/web/client/assets/members-DHWsgsEs.js +1 -0
  41. package/dist/web/client/assets/memory-CEVppPyU.js +1 -0
  42. package/dist/web/client/assets/plus-BaIRdB10.js +1 -0
  43. package/dist/web/client/assets/policy-DEh4BLSw.js +1 -0
  44. package/dist/web/client/assets/preload-helper-eUUcpe2S.js +1 -0
  45. package/dist/web/client/assets/results-DgJPjEZF.js +1 -0
  46. package/dist/web/client/assets/review-BbshafTQ.js +1 -0
  47. package/dist/web/client/assets/route-Ccb8v41z.js +1 -0
  48. package/dist/web/client/assets/route-D1d6kCEV.js +1 -0
  49. package/dist/web/client/assets/routes-g7V4ru7T.js +1 -0
  50. package/dist/web/client/assets/services-B2f7e5jV.js +1 -0
  51. package/dist/web/client/assets/settings-B6elpcYm.js +1 -0
  52. package/dist/web/client/assets/skills-CngE7TF8.js +1 -0
  53. package/dist/web/client/assets/styles-xUnZ-ep_.css +2 -0
  54. package/dist/web/client/assets/teams-BdJZXOan.js +1 -0
  55. package/dist/web/client/assets/teams-c496ISsT.js +1 -0
  56. package/dist/web/client/assets/telegram-B_-hK6EC.js +1 -0
  57. package/dist/web/client/assets/tokens-CKz8gx4-.js +1 -0
  58. package/dist/web/client/assets/triggers-DCEPciGW.js +1 -0
  59. package/dist/web/client/assets/welcome-D-zVOLGA.js +1 -0
  60. package/dist/web/client/baziu.svg +176 -7
  61. package/dist/web/server/assets/ChatPane-De_FPEoD.js +1887 -0
  62. package/dist/web/server/assets/ConfigPage-CGld_wCK.js +28 -0
  63. package/dist/web/server/assets/ConfirmDialog-LdVlEanK.js +132 -0
  64. package/dist/web/server/assets/{FieldRow-DPO8x_le.js → FieldRow-Dah2KKqo.js} +8 -15
  65. package/dist/web/server/assets/ModelSelect-Vwro6OkL.js +43 -0
  66. package/dist/web/server/assets/{Page-DJNoI4Gn.js → Page-CMSYKXWJ.js} +51 -2
  67. package/dist/web/server/assets/ResultCard-CZn1w4KA.js +97 -0
  68. package/dist/web/server/assets/SectionTabs-CqFg9Vwx.js +53 -0
  69. package/dist/web/server/assets/Sidebar-puq47KyR.js +430 -0
  70. package/dist/web/server/assets/SkillFindings-Bd6e81Wu.js +46 -0
  71. package/dist/web/server/assets/SkillsPicker-DlqEfRWh.js +67 -0
  72. package/dist/web/server/assets/SpawnDialog-BGNaMfFb.js +111 -0
  73. package/dist/web/server/assets/SpawnTeamModal-C6GbfScI.js +97 -0
  74. package/dist/web/server/assets/Tabs-BhF41MfQ.js +20 -0
  75. package/dist/web/server/assets/TeamForm-C93tpn9r.js +96 -0
  76. package/dist/web/server/assets/TeamPolicyEditor-BHS3J0R9.js +738 -0
  77. package/dist/web/server/assets/{UnsavedChangesGuard-BfSyMhiD.js → UnsavedChangesGuard-Dm4a27_5.js} +1 -1
  78. package/dist/web/server/assets/_id-B0x1ffz3.js +12 -0
  79. package/dist/web/server/assets/_id-BR6tnR6I.js +23 -0
  80. package/dist/web/server/assets/_id-Bdf_Rg62.js +19 -0
  81. package/dist/web/server/assets/_id-Bm611NQz.js +13 -0
  82. package/dist/web/server/assets/{_id-4fEeAcp0.js → _id-ByiXeIPS.js} +9 -8
  83. package/dist/web/server/assets/_id-D5UCoyES.js +359 -0
  84. package/dist/web/server/assets/_id-DHx5UmmL.js +12 -0
  85. package/dist/web/server/assets/_id-DLpGmOVm.js +19 -0
  86. package/dist/web/server/assets/_id-Y5ctILG2.js +13 -0
  87. package/dist/web/server/assets/_id-dDA0pdVo.js +54 -0
  88. package/dist/web/server/assets/_id-lOVnT5sS.js +383 -0
  89. package/dist/web/server/assets/{_id-BhJCnRR1.js → _id-sW6zXrTP.js} +4 -4
  90. package/dist/web/server/assets/_tanstack-start-manifest_v-B8u80HjK.js +292 -0
  91. package/dist/web/server/assets/agent-actions-BBdFVdoa.js +20 -0
  92. package/dist/web/server/assets/{agents-Cmw-sUUD.js → agents-BK8OmB8g.js} +7 -6
  93. package/dist/web/server/assets/{agents-DOrzqCXg.js → agents-BNPkidbH.js} +8 -10
  94. package/dist/web/server/assets/{agents-BitDk_C5.js → agents-Cn9GkXFX.js} +1 -3
  95. package/dist/web/server/assets/agents-D4tqK1kH.js +131 -0
  96. package/dist/web/server/assets/agents-DycxHDt8.js +327 -0
  97. package/dist/web/server/assets/{agents-DmmuOHw8.js → agents-lOqc6VGd.js} +4 -4
  98. package/dist/web/server/assets/api-WWxPqx67.js +85 -0
  99. package/dist/web/server/assets/attention-BIm455bC.js +216 -0
  100. package/dist/web/server/assets/{attention-Cy3Xu-Su.js → attention-DULVjdmF.js} +2 -4
  101. package/dist/web/server/assets/{attention-CsYqmV0L.js → attention-YWnLKA2E.js} +4 -2
  102. package/dist/web/server/assets/{auth-DChuQIh4.js → auth-DiN92ydD.js} +7 -8
  103. package/dist/web/server/assets/{config-0_5yhRKg.js → config-BNEgu7WG.js} +141 -432
  104. package/dist/web/server/assets/{config-VsmvCulS.js → config-C1VB28se.js} +1 -1
  105. package/dist/web/server/assets/{config-CpHD812q.js → config-TdVqnqNL.js} +3 -7
  106. package/dist/web/server/assets/cookies-HnTYjKRp.js +17 -0
  107. package/dist/web/server/assets/daemon-client-DL2ik2Em.js +146 -0
  108. package/dist/web/server/assets/entities-Dn2xzKIw.js +16 -0
  109. package/dist/web/server/assets/inbox-4Vj5jTT8.js +245 -0
  110. package/dist/web/server/assets/inbox-D4IqUv3l.js +38 -0
  111. package/dist/web/server/assets/inbox-Dle24AfV.js +23 -0
  112. package/dist/web/server/assets/learning-BScq7VbO.js +12 -0
  113. package/dist/web/server/assets/learning-CBWFEnhg.js +263 -0
  114. package/dist/web/server/assets/{learning-BuL0c1vH.js → learning-DWAKevhF.js} +6 -14
  115. package/dist/web/server/assets/{login-rDox7PRD.js → login-JoIjlcmu.js} +2 -5
  116. package/dist/web/server/assets/{login-B_-9L8TU.js → login-VV10kZBl.js} +15 -17
  117. package/dist/web/server/assets/mcp-B09_O05r.js +250 -0
  118. package/dist/web/server/assets/{mcp-B8ErRiR_.js → mcp-BwmpNQPN.js} +1 -1
  119. package/dist/web/server/assets/{mcp-BEdnl_TT.js → mcp-CqdTfXcn.js} +1 -3
  120. package/dist/web/server/assets/members-B8QBF6TF.js +12 -0
  121. package/dist/web/server/assets/{members-DFLi2nQg.js → members-DsF02Wp7.js} +2 -2
  122. package/dist/web/server/assets/members-tWZA9b15.js +36 -0
  123. package/dist/web/server/assets/memory-BNN0b-0x.js +12 -0
  124. package/dist/web/server/assets/memory-CTl1E1Rm.js +267 -0
  125. package/dist/web/server/assets/memory-CV5uCBb2.js +12 -0
  126. package/dist/web/server/assets/policy-C9M6zV6w.js +79 -0
  127. package/dist/web/server/assets/policy-h-6NpU3m.js +19 -0
  128. package/dist/web/server/assets/policy-xEw9X0DK.js +12 -0
  129. package/dist/web/server/assets/public-origin-BpDkdS5Q.js +34 -0
  130. package/dist/web/server/assets/results-D3A3UA4d.js +182 -0
  131. package/dist/web/server/assets/results-D6Ui5S8D.js +12 -0
  132. package/dist/web/server/assets/results-DWmxvfyn.js +15 -0
  133. package/dist/web/server/assets/review-CyQky-WQ.js +40 -0
  134. package/dist/web/server/assets/review-Sq0GGcPV.js +322 -0
  135. package/dist/web/server/assets/review-XWbSF8cF.js +12 -0
  136. package/dist/web/server/assets/route-BErtkz6t.js +19 -0
  137. package/dist/web/server/assets/route-CLoV-An_.js +48 -0
  138. package/dist/web/server/assets/route-WQ19JkBa.js +19 -0
  139. package/dist/web/server/assets/route-dEK_2GLj.js +203 -0
  140. package/dist/web/server/assets/route-iHTkhO81.js +16 -0
  141. package/dist/web/server/assets/route-zs8uUQtB.js +16 -0
  142. package/dist/web/server/assets/router-BI9gmY3S.js +751 -0
  143. package/dist/web/server/assets/routes-081s4n24.js +45 -0
  144. package/dist/web/server/assets/routes-CWo5WPsr.js +15 -0
  145. package/dist/web/server/assets/routes-Cqp1ufHm.js +56 -0
  146. package/dist/web/server/assets/{services-ZeEIgTn0.js → services-BLvAvb8g.js} +1 -1
  147. package/dist/web/server/assets/{services-UL_2b8PP.js → services-Q9HYQXXB.js} +2 -8
  148. package/dist/web/server/assets/{services-T8adll3y.js → services-tCfB1B83.js} +21 -38
  149. package/dist/web/server/assets/settings-CVaGv-xF.js +12 -0
  150. package/dist/web/server/assets/settings-D9viV-86.js +561 -0
  151. package/dist/web/server/assets/settings-DaZNZ_CC.js +27 -0
  152. package/dist/web/server/assets/{skills-D1oy3JAH.js → skills-BZg_txbf.js} +1 -3
  153. package/dist/web/server/assets/skills-C7fqRPna.js +275 -0
  154. package/dist/web/server/assets/{skills-kfqhxYmf.js → skills-C_g8IKag.js} +1 -1
  155. package/dist/web/server/assets/start-DTX6aKCi.js +100 -0
  156. package/dist/web/server/assets/teams-BHkhnt6b.js +12 -0
  157. package/dist/web/server/assets/teams-BS-oweRl.js +80 -0
  158. package/dist/web/server/assets/teams-BSflKBP8.js +108 -0
  159. package/dist/web/server/assets/teams-CNyB5nM9.js +12 -0
  160. package/dist/web/server/assets/{teams-BW2ARIvk.js → teams-D4CaU76n.js} +3 -5
  161. package/dist/web/server/assets/teams-DX2HmKqi.js +21 -0
  162. package/dist/web/server/assets/{telegram-U9UAdUEx.js → telegram-BUdnc8oF.js} +1 -1
  163. package/dist/web/server/assets/{telegram-ByHqeAGC.js → telegram-C4v1HhyJ.js} +1 -1
  164. package/dist/web/server/assets/{telegram-IMfV34-w.js → telegram-CrJiygCX.js} +223 -471
  165. package/dist/web/server/assets/{tokens-CiThDMwM.js → tokens-B1twAJdd.js} +5 -5
  166. package/dist/web/server/assets/tokens-DdjEyALj.js +232 -0
  167. package/dist/web/server/assets/tokens-DqldzPUq.js +14 -0
  168. package/dist/web/server/assets/triggers-B7LW784F.js +214 -0
  169. package/dist/web/server/assets/triggers-C5sMCZXv2.js +12 -0
  170. package/dist/web/server/assets/triggers-DMfVdImD.js +12 -0
  171. package/dist/web/server/assets/{welcome-BFWKx138.js → welcome-D0d38Pzx.js} +5 -6
  172. package/dist/web/server/server.js +55 -159
  173. package/dist/web-server.js +3 -3
  174. package/dist/worker.js +1692 -6375
  175. package/dist/worker.js.map +1 -1
  176. package/package.json +8 -18
  177. package/dist/browser-keychain.js +0 -83
  178. package/dist/browser-keychain.js.map +0 -1
  179. package/dist/cli-main.js +0 -9211
  180. package/dist/cli-main.js.map +0 -1
  181. package/dist/daemon-main.js +0 -50664
  182. package/dist/daemon-main.js.map +0 -1
  183. package/dist/migrations/0001_init.sql +0 -1103
  184. package/dist/migrations/0002_device_token_scopes.sql +0 -8
  185. package/dist/migrations/0003_web_pairing_tokens.sql +0 -18
  186. package/dist/migrations/0004_image_generation.sql +0 -25
  187. package/dist/native-darwin-entry.js +0 -692
  188. package/dist/native-darwin-entry.js.map +0 -1
  189. package/dist/native-linux-entry.js +0 -60
  190. package/dist/native-linux-entry.js.map +0 -1
  191. package/dist/runtime-version.js +0 -28
  192. package/dist/runtime-version.js.map +0 -1
  193. package/dist/web/client/assets/AgentTabs-kEd-oDRM.js +0 -1
  194. package/dist/web/client/assets/ChatPane-DhvlzNPJ.js +0 -76
  195. package/dist/web/client/assets/ConfigPage-CMKsWDjh.js +0 -1
  196. package/dist/web/client/assets/ConfirmDialog-DpAzoNG8.js +0 -1
  197. package/dist/web/client/assets/FieldRow-OQ-Ezw5t.js +0 -1
  198. package/dist/web/client/assets/ProductionTeamPolicyEditor-DhT-Q13a.js +0 -7
  199. package/dist/web/client/assets/ProfileCommunicationEditor-CnQIp4e6.js +0 -1
  200. package/dist/web/client/assets/RecoveryState-B4Rne9N_.js +0 -1
  201. package/dist/web/client/assets/ResultCard-BxAlMky1.js +0 -1
  202. package/dist/web/client/assets/ResultSourceConversation-BzIw43-r.js +0 -1
  203. package/dist/web/client/assets/SectionTabs-D3M6F_HR.js +0 -1
  204. package/dist/web/client/assets/TeamTabs-BZbg-UFx.js +0 -1
  205. package/dist/web/client/assets/TemplatesTabs-D8geEOte.js +0 -1
  206. package/dist/web/client/assets/UnsavedChangesGuard-CPQe9VLw.js +0 -1
  207. package/dist/web/client/assets/_id-1RIodFdi.js +0 -1
  208. package/dist/web/client/assets/_id-BV3w2kDj.js +0 -1
  209. package/dist/web/client/assets/_id-C9zxKqvQ.js +0 -1
  210. package/dist/web/client/assets/_id-CLG_POnZ.js +0 -1
  211. package/dist/web/client/assets/_id-Cha845UH.js +0 -1
  212. package/dist/web/client/assets/_id-DssxcwBl.js +0 -1
  213. package/dist/web/client/assets/_id-IDHR-MEm.js +0 -1
  214. package/dist/web/client/assets/_id-SGs5zOcT.js +0 -1
  215. package/dist/web/client/assets/activity-0srO4qbd.js +0 -1
  216. package/dist/web/client/assets/activity-DxQGr6eP.js +0 -1
  217. package/dist/web/client/assets/agents-CVTYoXKu.js +0 -1
  218. package/dist/web/client/assets/agents-DPTu6Sm_.js +0 -1
  219. package/dist/web/client/assets/agents-nHiIbumu.js +0 -1
  220. package/dist/web/client/assets/approvals-Di_Bux_Q.js +0 -1
  221. package/dist/web/client/assets/approvals-ScNrQg7q.js +0 -1
  222. package/dist/web/client/assets/attention-BF-Llt9z.js +0 -1
  223. package/dist/web/client/assets/attention-D7xB17sN.js +0 -1
  224. package/dist/web/client/assets/chevron-right-CJ2wat15.js +0 -1
  225. package/dist/web/client/assets/config-BOuIcP1T.js +0 -3
  226. package/dist/web/client/assets/context-wo9lNjHx.js +0 -1
  227. package/dist/web/client/assets/git-review-presentation-CzHQulDk.js +0 -1
  228. package/dist/web/client/assets/inbox-CNLmz0Jp.js +0 -1
  229. package/dist/web/client/assets/inbox-De6HOll3.js +0 -1
  230. package/dist/web/client/assets/index-CjI7_vB3.js +0 -52
  231. package/dist/web/client/assets/jsx-runtime-DGeXAQPT.js +0 -1
  232. package/dist/web/client/assets/learning-591SFAKg.js +0 -1
  233. package/dist/web/client/assets/learning-D6bO0NeB.js +0 -1
  234. package/dist/web/client/assets/login-Q7uP-v0M.js +0 -1
  235. package/dist/web/client/assets/mcp-BGy64VOv.js +0 -1
  236. package/dist/web/client/assets/mcp-DSCjhc5I.js +0 -1
  237. package/dist/web/client/assets/members-CBVor-P4.js +0 -1
  238. package/dist/web/client/assets/members-CCcecjC3.js +0 -1
  239. package/dist/web/client/assets/memory-CSE8EQ48.js +0 -1
  240. package/dist/web/client/assets/memory-DgGz0wh4.js +0 -1
  241. package/dist/web/client/assets/policy-6j-NQvBj.js +0 -1
  242. package/dist/web/client/assets/policy-Do0TvNWc.js +0 -1
  243. package/dist/web/client/assets/preload-helper-bztXdkDj.js +0 -1
  244. package/dist/web/client/assets/react-3W8R1pOO.js +0 -1
  245. package/dist/web/client/assets/results-CCQGn0dE.js +0 -1
  246. package/dist/web/client/assets/results-Cx6_ChIY.js +0 -1
  247. package/dist/web/client/assets/review-CyS5b0fz.js +0 -1
  248. package/dist/web/client/assets/review-qG-2gqEp.js +0 -1
  249. package/dist/web/client/assets/routes-DRic0xNy.js +0 -1
  250. package/dist/web/client/assets/services-B_7lf-mx.js +0 -1
  251. package/dist/web/client/assets/services-ByBA_yA-.js +0 -1
  252. package/dist/web/client/assets/skills--lnDzPWe.js +0 -1
  253. package/dist/web/client/assets/skills-C70btgIg.js +0 -1
  254. package/dist/web/client/assets/styles-e_ADuRbs.css +0 -2
  255. package/dist/web/client/assets/team-policy-D0jpnn2b.js +0 -1
  256. package/dist/web/client/assets/teams-BL-Fr2xF.js +0 -1
  257. package/dist/web/client/assets/teams-BeoxArzy.js +0 -1
  258. package/dist/web/client/assets/teams-C4mb790r.js +0 -1
  259. package/dist/web/client/assets/teams-DHStw3OS.js +0 -1
  260. package/dist/web/client/assets/telegram-BIMiebJl.js +0 -1
  261. package/dist/web/client/assets/templates-CzHXXiA_.js +0 -1
  262. package/dist/web/client/assets/tokens-B9ehOc1o.js +0 -1
  263. package/dist/web/client/assets/tokens-DhaMzFWK.js +0 -1
  264. package/dist/web/client/assets/triggers--xMpHFW7.js +0 -1
  265. package/dist/web/client/assets/triggers-DLzZu8bB.js +0 -1
  266. package/dist/web/client/assets/verifications-FzypGVwW.js +0 -2
  267. package/dist/web/client/assets/verifications-fR9W-adv.js +0 -1
  268. package/dist/web/client/assets/welcome-pjZD7pq4.js +0 -1
  269. package/dist/web/client/assets/wire-constants-CBD-lTaa.js +0 -1
  270. package/dist/web/client/assets/x-CZxV4X-6.js +0 -1
  271. package/dist/web/server/assets/AgentTabs-DVVkxBks.js +0 -49
  272. package/dist/web/server/assets/ChatPane-CeDUEjmn.js +0 -2962
  273. package/dist/web/server/assets/ConfigPage-J3s_PX4o.js +0 -69
  274. package/dist/web/server/assets/ConfirmDialog-C-2cbcmQ.js +0 -99
  275. package/dist/web/server/assets/ProductionTeamPolicyEditor-DNtdMn2a.js +0 -1026
  276. package/dist/web/server/assets/ProfileCommunicationEditor-C2RU-2QB.js +0 -107
  277. package/dist/web/server/assets/RecoveryState-DFPWxMIo.js +0 -37
  278. package/dist/web/server/assets/ResultCard-BtVFqdRU.js +0 -162
  279. package/dist/web/server/assets/ResultSourceConversation-xn4EKjaP.js +0 -64
  280. package/dist/web/server/assets/SectionTabs-DQWPEk1x.js +0 -8
  281. package/dist/web/server/assets/Sidebar-Dk9bErQV.js +0 -1243
  282. package/dist/web/server/assets/TeamTabs-XybMRm3w.js +0 -59
  283. package/dist/web/server/assets/TemplatesTabs-BiJt7Fjx.js +0 -31
  284. package/dist/web/server/assets/WorkspaceRecoveryCard-B-6gfg0D.js +0 -18
  285. package/dist/web/server/assets/_id-6aGxCNlp.js +0 -37
  286. package/dist/web/server/assets/_id-BJeSZ4DF.js +0 -11
  287. package/dist/web/server/assets/_id-BSkg6FJC.js +0 -45
  288. package/dist/web/server/assets/_id-BfT3umhN.js +0 -14
  289. package/dist/web/server/assets/_id-Bk4SHXs4.js +0 -626
  290. package/dist/web/server/assets/_id-C0C6wOt8.js +0 -42
  291. package/dist/web/server/assets/_id-CAxK6pln.js +0 -6
  292. package/dist/web/server/assets/_id-CGMvV1p5.js +0 -1183
  293. package/dist/web/server/assets/_id-CI33J2xv.js +0 -11
  294. package/dist/web/server/assets/_id-C_FnWQ61.js +0 -11
  295. package/dist/web/server/assets/_id-CmS2d0me.js +0 -17
  296. package/dist/web/server/assets/_id-D9VWEfdp.js +0 -28
  297. package/dist/web/server/assets/_id-DhheAcWL.js +0 -1035
  298. package/dist/web/server/assets/_id-t8AepTB2.js +0 -26
  299. package/dist/web/server/assets/_id-ujm4R5OF.js +0 -18
  300. package/dist/web/server/assets/_tanstack-start-manifest_v-CXwNJhX2.js +0 -376
  301. package/dist/web/server/assets/activity-BKb_BIx7.js +0 -168
  302. package/dist/web/server/assets/activity-CDNYyLBC.js +0 -11
  303. package/dist/web/server/assets/activity-DhzxlXUk.js +0 -12
  304. package/dist/web/server/assets/activity-lf7L7wiL.js +0 -14
  305. package/dist/web/server/assets/agents-BzJDqrC8.js +0 -11
  306. package/dist/web/server/assets/agents-C65TunMF.js +0 -505
  307. package/dist/web/server/assets/agents-uXBu1F5L.js +0 -387
  308. package/dist/web/server/assets/approvals-CcU_pIWW.js +0 -11
  309. package/dist/web/server/assets/approvals-CpDs6ASO.js +0 -14
  310. package/dist/web/server/assets/approvals-FyuTjfdY.js +0 -332
  311. package/dist/web/server/assets/approvals-szknIxB6.js +0 -12
  312. package/dist/web/server/assets/attention-BeA3zGve.js +0 -268
  313. package/dist/web/server/assets/attention-jtJ9PIMp.js +0 -11
  314. package/dist/web/server/assets/browser-BiDvr0fy.js +0 -66
  315. package/dist/web/server/assets/context-DuxjdpaW.js +0 -11
  316. package/dist/web/server/assets/daemon-client-C-RlJHYO.js +0 -301
  317. package/dist/web/server/assets/git-review-BB3M9nYg.js +0 -26
  318. package/dist/web/server/assets/git-review-CqZTrIWS.js +0 -179
  319. package/dist/web/server/assets/git-review-presentation-TJiHJhen.js +0 -81
  320. package/dist/web/server/assets/inbox-Be3CUU4o.js +0 -11
  321. package/dist/web/server/assets/inbox-D1ROE7jB.js +0 -44
  322. package/dist/web/server/assets/inbox-DsH5oRK0.js +0 -168
  323. package/dist/web/server/assets/inbox-qKMkeprB.js +0 -29
  324. package/dist/web/server/assets/learning-BYCwIOzZ.js +0 -18
  325. package/dist/web/server/assets/learning-C3pqLE5b.js +0 -11
  326. package/dist/web/server/assets/learning-D7jWRhqD.js +0 -365
  327. package/dist/web/server/assets/mcp-BQ4KvXp1.js +0 -11
  328. package/dist/web/server/assets/mcp-Dhryb75M.js +0 -328
  329. package/dist/web/server/assets/members-8aWhtn4G.js +0 -100
  330. package/dist/web/server/assets/members-Cjpysp35.js +0 -14
  331. package/dist/web/server/assets/members-DWedYCMh.js +0 -11
  332. package/dist/web/server/assets/memory-BH7L-l65.js +0 -11
  333. package/dist/web/server/assets/memory-Bq0s1fr7.js +0 -18
  334. package/dist/web/server/assets/memory-CS-9Bb6q.js +0 -28
  335. package/dist/web/server/assets/memory-DN5iMDQL.js +0 -389
  336. package/dist/web/server/assets/policy-CK3VuVuv.js +0 -11
  337. package/dist/web/server/assets/policy-DDi8AjcD.js +0 -21
  338. package/dist/web/server/assets/policy-DcYIJaHW.js +0 -490
  339. package/dist/web/server/assets/policy-JF7ZI2-i.js +0 -40
  340. package/dist/web/server/assets/public-origin-xV0lm0Ty.js +0 -25
  341. package/dist/web/server/assets/publications-DV2uRrvJ.js +0 -57
  342. package/dist/web/server/assets/results-CkNoVDrY.js +0 -362
  343. package/dist/web/server/assets/results-DSGwi3vj.js +0 -14
  344. package/dist/web/server/assets/results-DlOsdBE7.js +0 -11
  345. package/dist/web/server/assets/results-vtkmZPro.js +0 -12
  346. package/dist/web/server/assets/review-BG71IaCa.js +0 -1061
  347. package/dist/web/server/assets/review-Bs6AbrSn.js +0 -40
  348. package/dist/web/server/assets/review-CPmUi4PR.js +0 -11
  349. package/dist/web/server/assets/review-packets-CO69K-FK.js +0 -172
  350. package/dist/web/server/assets/router-BFqyjkYu.js +0 -921
  351. package/dist/web/server/assets/routes-B6TnJyQ8.js +0 -57
  352. package/dist/web/server/assets/routes-BfEa101d.js +0 -14
  353. package/dist/web/server/assets/routes-pUMIGzyy.js +0 -53
  354. package/dist/web/server/assets/services-Ba6tFlZz.js +0 -16
  355. package/dist/web/server/assets/skills-CGvPejPD.js +0 -11
  356. package/dist/web/server/assets/skills-cVlLDnvf.js +0 -399
  357. package/dist/web/server/assets/start-D4Wq9iTa.js +0 -70
  358. package/dist/web/server/assets/team-policy-vPG01onj.js +0 -180
  359. package/dist/web/server/assets/teams-6c5B9wnI.js +0 -11
  360. package/dist/web/server/assets/teams-BEIUG9fI.js +0 -112
  361. package/dist/web/server/assets/teams-Bi3CeEM5.js +0 -11
  362. package/dist/web/server/assets/teams-C9tfV3IC.js +0 -12
  363. package/dist/web/server/assets/teams-DKROLgw-.js +0 -36
  364. package/dist/web/server/assets/teams-DLt48Vxw.js +0 -284
  365. package/dist/web/server/assets/teams-DuhXk1M5.js +0 -14
  366. package/dist/web/server/assets/templates-CuqFhsiO.js +0 -11
  367. package/dist/web/server/assets/tokens-DDJYBy6R.js +0 -16
  368. package/dist/web/server/assets/tokens-qVijmBxr.js +0 -11
  369. package/dist/web/server/assets/tokens-zSK57Trr.js +0 -452
  370. package/dist/web/server/assets/triggers-B9CIl4Co.js +0 -27
  371. package/dist/web/server/assets/triggers-Cr9af7Xw.js +0 -367
  372. package/dist/web/server/assets/triggers-DIruOyMb.js +0 -18
  373. package/dist/web/server/assets/triggers-x_OA9u5f.js +0 -11
  374. package/dist/web/server/assets/utils-ySbqTi3g.js +0 -24
  375. package/dist/web/server/assets/verification-DBsJYadO.js +0 -97
  376. package/dist/web/server/assets/verifications-DjZsx65b.js +0 -12
  377. package/dist/web/server/assets/verifications-DvOyI3Mr.js +0 -28
  378. package/dist/web/server/assets/verifications-YrEdiZmk.js +0 -326
  379. package/dist/web/server/assets/web-search-dgw10fLn.js +0 -12
  380. package/dist/web/server/assets/wire-constants-C8nBJcU3.js +0 -16
  381. /package/{LICENSE → dist/LICENSE} +0 -0
  382. /package/dist/web/client/assets/{ProductionTeamPolicyEditor-DLioOiRN.css → TeamPolicyEditor-DLioOiRN.css} +0 -0
@@ -1,1061 +0,0 @@
1
- import { n as createServerFn } from "../server.js";
2
- import { n as Button } from "./utils-ySbqTi3g.js";
3
- import { r as PageShell } from "./Page-DJNoI4Gn.js";
4
- import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
5
- import { a as fetchReviewFileLink, c as recordReviewConclusion, i as fetchReviewExport, l as resolveReviewFinding, n as addReviewFinding, o as fetchReviewPacket, r as createReviewPacket, s as recordReportedState, t as Route } from "./review-Bs6AbrSn.js";
6
- import { a as fetchTeamSnapshot, i as fetchTeamReview, n as fetchFileDiff, o as prepareReviewFeedback, s as sendReviewFeedback, t as captureTeamSnapshot } from "./git-review-BB3M9nYg.js";
7
- import { a as referenceLabel, i as changeSummary, o as snapshotLabel, r as baseLabel, s as unavailableMessage } from "./git-review-presentation-TJiHJhen.js";
8
- import { t as TeamTabs } from "./TeamTabs-XybMRm3w.js";
9
- import { useState } from "react";
10
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
- //#region src/lib/publications.ts
12
- var fetchTeamPublications = createServerFn({ method: "POST" }).validator((input) => input).handler(createSsrRpc("8cb9f33e191419922cf300f6a376425d82c51eefacc87c7ac673a4dc6d5404d6"));
13
- var publishReviewedRevision = createServerFn({ method: "POST" }).validator((input) => input).handler(createSsrRpc("f514a362fcd27ca13859cf38b528929dac740cb400fe6cd920fedfb5b4860198"));
14
- //#endregion
15
- //#region src/components/PublicationPanel.tsx
16
- function PublicationPanel({ teamId }) {
17
- const [view, setView] = useState(null);
18
- const [packetId, setPacketId] = useState("");
19
- const [branch, setBranch] = useState("");
20
- const [busy, setBusy] = useState(false);
21
- const [error, setError] = useState(null);
22
- const [refusal, setRefusal] = useState(null);
23
- const load = async () => {
24
- setBusy(true);
25
- const next = await fetchTeamPublications({ data: { id: teamId } });
26
- setBusy(false);
27
- setView(next);
28
- };
29
- if (view === null) return /* @__PURE__ */ jsxs("section", {
30
- className: "card space-y-3",
31
- "aria-label": "Publications",
32
- children: [
33
- /* @__PURE__ */ jsx("h3", { children: "Publications" }),
34
- /* @__PURE__ */ jsx("p", {
35
- className: "muted",
36
- children: "Publishing commits a reviewed revision to a new branch and opens a pull request. It never merges and never deploys, and the commit is unsigned."
37
- }),
38
- /* @__PURE__ */ jsx(Button, {
39
- variant: "ghost",
40
- disabled: busy,
41
- onClick: () => void load(),
42
- children: "Load publications"
43
- })
44
- ]
45
- });
46
- return /* @__PURE__ */ jsxs("section", {
47
- className: "card space-y-3",
48
- "aria-label": "Publications",
49
- children: [
50
- /* @__PURE__ */ jsx("h3", { children: "Publications" }),
51
- /* @__PURE__ */ jsx("p", {
52
- className: "muted",
53
- children: "Publishing commits a reviewed revision to a new branch and opens a pull request. It never merges and never deploys, and the commit is unsigned."
54
- }),
55
- /* @__PURE__ */ jsxs("div", {
56
- className: "flex flex-wrap items-end gap-2",
57
- children: [
58
- /* @__PURE__ */ jsxs("label", {
59
- className: "flex flex-col grow text-sm",
60
- children: [/* @__PURE__ */ jsx("span", {
61
- className: "muted",
62
- children: "Reviewed packet id"
63
- }), /* @__PURE__ */ jsx("input", {
64
- value: packetId,
65
- onChange: (event) => setPacketId(event.target.value)
66
- })]
67
- }),
68
- /* @__PURE__ */ jsxs("label", {
69
- className: "flex flex-col grow text-sm",
70
- children: [/* @__PURE__ */ jsx("span", {
71
- className: "muted",
72
- children: "Branch (optional)"
73
- }), /* @__PURE__ */ jsx("input", {
74
- value: branch,
75
- placeholder: "bazilion/review-…",
76
- onChange: (event) => setBranch(event.target.value)
77
- })]
78
- }),
79
- /* @__PURE__ */ jsx(Button, {
80
- variant: "primary",
81
- disabled: busy || packetId.trim().length === 0,
82
- onClick: () => {
83
- (async () => {
84
- setBusy(true);
85
- setError(null);
86
- setRefusal(null);
87
- const result = await publishReviewedRevision({ data: {
88
- id: teamId,
89
- packetId: packetId.trim(),
90
- ...branch.trim() ? { headBranch: branch.trim() } : {}
91
- } });
92
- setBusy(false);
93
- if ("blocked" in result && result.blocked) {
94
- setRefusal(result.blocked);
95
- return;
96
- }
97
- if ("unavailable" in result && result.unavailable) {
98
- setError(result.unavailable.message);
99
- return;
100
- }
101
- await load();
102
- })();
103
- },
104
- children: "Publish"
105
- }),
106
- /* @__PURE__ */ jsx(Button, {
107
- variant: "ghost",
108
- disabled: busy,
109
- onClick: () => void load(),
110
- children: "Refresh"
111
- })
112
- ]
113
- }),
114
- refusal ? /* @__PURE__ */ jsxs("p", {
115
- role: "alert",
116
- className: "rounded-sm border border-fawn p-2 text-sm",
117
- children: [
118
- "Refused (",
119
- refusal.reason,
120
- "): ",
121
- refusal.detail,
122
- " — nothing was sent."
123
- ]
124
- }) : null,
125
- error ? /* @__PURE__ */ jsx("p", {
126
- role: "alert",
127
- className: "rounded-sm border border-fawn p-2 text-sm",
128
- children: error
129
- }) : null,
130
- view.unavailable ? /* @__PURE__ */ jsx("p", {
131
- role: "alert",
132
- children: view.unavailable.message
133
- }) : null,
134
- view.publications.length === 0 ? /* @__PURE__ */ jsx("p", {
135
- className: "muted",
136
- children: "No publications yet. Nothing has been sent anywhere for this Team."
137
- }) : /* @__PURE__ */ jsx("ul", {
138
- className: "list",
139
- children: view.publications.map((publication) => /* @__PURE__ */ jsxs("li", {
140
- className: "card space-y-1",
141
- children: [
142
- /* @__PURE__ */ jsxs("div", {
143
- className: "flex flex-wrap items-baseline justify-between gap-2",
144
- children: [/* @__PURE__ */ jsx("strong", { children: publication.state }), /* @__PURE__ */ jsxs("span", {
145
- className: "muted",
146
- children: [
147
- publication.host,
148
- " ",
149
- publication.repository
150
- ]
151
- })]
152
- }),
153
- /* @__PURE__ */ jsxs("p", {
154
- className: "muted",
155
- children: [
156
- publication.headBranch,
157
- " (base ",
158
- publication.baseBranch,
159
- ") · packet ",
160
- publication.packetId
161
- ]
162
- }),
163
- publication.commitOid ? /* @__PURE__ */ jsxs("p", {
164
- className: "muted",
165
- children: [
166
- "commit ",
167
- publication.commitOid.slice(0, 12),
168
- " · unsigned"
169
- ]
170
- }) : null,
171
- publication.pullRequestUrl ? /* @__PURE__ */ jsxs("p", {
172
- className: "muted",
173
- children: [
174
- "pull request",
175
- " ",
176
- /* @__PURE__ */ jsxs("a", {
177
- href: publication.pullRequestUrl,
178
- rel: "noreferrer",
179
- target: "_blank",
180
- children: ["#", publication.pullRequestNumber ?? ""]
181
- })
182
- ]
183
- }) : publication.state === "published" ? /* @__PURE__ */ jsx("p", {
184
- className: "muted",
185
- children: "no pull request was opened"
186
- }) : null,
187
- publication.refusalReason ? /* @__PURE__ */ jsxs("p", {
188
- className: "muted",
189
- children: [
190
- "refused: ",
191
- publication.refusalReason,
192
- " — ",
193
- publication.refusalDetail
194
- ]
195
- }) : null,
196
- publication.error ? /* @__PURE__ */ jsxs("p", {
197
- className: "muted",
198
- children: ["note: ", publication.error]
199
- }) : null,
200
- /* @__PURE__ */ jsx("p", {
201
- className: "muted",
202
- children: publication.state === "refused" ? "Nothing was sent: no commit, no push, no pull request." : publication.state === "uncertain" ? "Whether the branch reached the host is unknown. Check the host before publishing again." : "Nothing was merged and nothing was deployed."
203
- })
204
- ]
205
- }, publication.id))
206
- })
207
- ]
208
- });
209
- }
210
- //#endregion
211
- //#region src/components/ReviewPacketPanel.tsx
212
- var SEVERITIES = [
213
- "blocker",
214
- "major",
215
- "minor",
216
- "info"
217
- ];
218
- var CONCLUSIONS = [
219
- "changes_requested",
220
- "commented",
221
- "recommended"
222
- ];
223
- /**
224
- * The completion facts, in the order they happen. Each is shown with the state it actually has: a review
225
- * conclusion is not acceptance, and a reported state is what the operator said rather than something the
226
- * daemon checked.
227
- */
228
- var REPORTED_STATES = [
229
- "committed",
230
- "pushed",
231
- "pullRequest",
232
- "merged",
233
- "deployed",
234
- "productionAccepted"
235
- ];
236
- function applicabilityLabel(comparison) {
237
- return comparison === "identical" ? "unchanged since capture" : comparison === "changed" ? "changed since capture (never a pass)" : "not checked";
238
- }
239
- function ReviewPacketPanel({ teamId, view }) {
240
- const [reports, setReports] = useState({});
241
- const [busy, setBusy] = useState(false);
242
- const [error, setError] = useState(null);
243
- const [snapshotId, setSnapshotId] = useState(view.snapshots[0]?.id ?? "");
244
- const [reviewer, setReviewer] = useState(view.members[0]?.id ?? "");
245
- const [finding, setFinding] = useState({
246
- path: "",
247
- severity: "major",
248
- note: ""
249
- });
250
- const [handoff, setHandoff] = useState(null);
251
- const [link, setLink] = useState(null);
252
- const [reference, setReference] = useState("");
253
- const [reportedState, setReportedState] = useState("committed");
254
- const [linkPath, setLinkPath] = useState("");
255
- const run = async (action) => {
256
- setBusy(true);
257
- setError(null);
258
- try {
259
- const result = await action();
260
- if ("report" in result && result.report) setReports((current) => ({
261
- ...current,
262
- [result.report.packet.id]: result.report
263
- }));
264
- else if ("message" in result) setError(result);
265
- } finally {
266
- setBusy(false);
267
- }
268
- };
269
- const create = () => run(() => createReviewPacket({ data: {
270
- id: teamId,
271
- snapshotId,
272
- reviewerAgentId: reviewer || null
273
- } }));
274
- const load = (packetId) => run(() => fetchReviewPacket({ data: {
275
- id: teamId,
276
- packetId
277
- } }));
278
- const reportFor = (packetId) => reports[packetId];
279
- return /* @__PURE__ */ jsxs("section", {
280
- className: "space-y-3",
281
- "aria-label": "Review packets",
282
- children: [
283
- /* @__PURE__ */ jsxs("div", {
284
- className: "flex items-baseline justify-between gap-2",
285
- children: [/* @__PURE__ */ jsx("h3", { children: "Review packets" }), /* @__PURE__ */ jsx("span", {
286
- className: "muted",
287
- children: "A packet binds one captured revision. Findings are recorded against it; resolving one needs an explicit decision or a named later revision."
288
- })]
289
- }),
290
- /* @__PURE__ */ jsxs("div", {
291
- className: "flex flex-wrap items-end gap-2",
292
- children: [
293
- /* @__PURE__ */ jsxs("label", {
294
- className: "flex flex-col text-sm",
295
- children: [/* @__PURE__ */ jsx("span", {
296
- className: "muted",
297
- children: "Revision"
298
- }), /* @__PURE__ */ jsxs("select", {
299
- value: snapshotId,
300
- onChange: (event) => setSnapshotId(event.target.value),
301
- className: "unstyled",
302
- children: [view.snapshots.length === 0 ? /* @__PURE__ */ jsx("option", {
303
- value: "",
304
- children: "(none captured)"
305
- }) : null, view.snapshots.map((snapshot) => /* @__PURE__ */ jsxs("option", {
306
- value: snapshot.id,
307
- children: [snapshot.id.slice(0, 12), snapshot.complete ? "" : " — INCOMPLETE"]
308
- }, snapshot.id))]
309
- })]
310
- }),
311
- /* @__PURE__ */ jsxs("label", {
312
- className: "flex flex-col text-sm",
313
- children: [/* @__PURE__ */ jsx("span", {
314
- className: "muted",
315
- children: "Reviewer (optional)"
316
- }), /* @__PURE__ */ jsxs("select", {
317
- value: reviewer,
318
- onChange: (event) => setReviewer(event.target.value),
319
- className: "unstyled",
320
- children: [/* @__PURE__ */ jsx("option", {
321
- value: "",
322
- children: "none — nothing delegated"
323
- }), view.members.map((member) => /* @__PURE__ */ jsx("option", {
324
- value: member.id,
325
- children: member.name
326
- }, member.id))]
327
- })]
328
- }),
329
- /* @__PURE__ */ jsx(Button, {
330
- variant: "primary",
331
- disabled: busy || !snapshotId,
332
- onClick: create,
333
- children: "Open packet"
334
- })
335
- ]
336
- }),
337
- error ? /* @__PURE__ */ jsx("p", {
338
- role: "alert",
339
- className: "rounded-sm border border-fawn p-2 text-sm",
340
- children: error.message
341
- }) : null,
342
- view.packets.length === 0 ? /* @__PURE__ */ jsx("p", {
343
- className: "muted",
344
- children: "No review packets yet."
345
- }) : /* @__PURE__ */ jsx("ul", {
346
- className: "list",
347
- children: view.packets.map((entry) => {
348
- const report = reportFor(entry.packet.id);
349
- return /* @__PURE__ */ jsxs("li", {
350
- className: "card space-y-2",
351
- children: [
352
- /* @__PURE__ */ jsxs("div", {
353
- className: "flex flex-wrap items-baseline justify-between gap-2",
354
- children: [/* @__PURE__ */ jsxs("div", { children: [
355
- /* @__PURE__ */ jsx("strong", { children: entry.packet.state }),
356
- " ",
357
- /* @__PURE__ */ jsxs("span", {
358
- className: "muted",
359
- children: [
360
- entry.packet.reviewerAgentId ?? "no reviewer",
361
- " ·",
362
- " ",
363
- entry.packet.snapshot.id.slice(0, 12)
364
- ]
365
- })
366
- ] }), /* @__PURE__ */ jsxs("div", {
367
- className: "flex gap-2",
368
- children: [/* @__PURE__ */ jsx(Button, {
369
- variant: "ghost",
370
- disabled: busy,
371
- onClick: () => load(entry.packet.id),
372
- children: "Details"
373
- }), /* @__PURE__ */ jsx(Button, {
374
- variant: "ghost",
375
- disabled: busy,
376
- onClick: async () => {
377
- setBusy(true);
378
- const result = await fetchReviewExport({ data: {
379
- id: teamId,
380
- packetId: entry.packet.id
381
- } });
382
- setBusy(false);
383
- if ("handoff" in result) setHandoff({
384
- packetId: entry.packet.id,
385
- patch: result.patch,
386
- text: result.handoff
387
- });
388
- else if ("message" in result) setError(result);
389
- },
390
- children: "Handoff"
391
- })]
392
- })]
393
- }),
394
- /* @__PURE__ */ jsxs("p", {
395
- className: "muted",
396
- children: [
397
- entry.counts.findings,
398
- " finding(s), ",
399
- entry.counts.unresolved,
400
- " unresolved",
401
- entry.counts.blockers > 0 ? `, ${entry.counts.blockers} blocker(s)` : "",
402
- " ·",
403
- " ",
404
- entry.conclusion ?? "no conclusion yet"
405
- ]
406
- }),
407
- handoff?.packetId === entry.packet.id ? /* @__PURE__ */ jsxs("div", {
408
- className: "space-y-1",
409
- children: [
410
- /* @__PURE__ */ jsx("h4", { children: "Handoff" }),
411
- /* @__PURE__ */ jsx("pre", {
412
- className: "overflow-x-auto rounded-sm border border-fawn p-2 text-xs",
413
- children: handoff.text
414
- }),
415
- handoff.patch ? /* @__PURE__ */ jsx("pre", {
416
- className: "overflow-x-auto rounded-sm border border-fawn p-2 text-xs",
417
- children: handoff.patch
418
- }) : null,
419
- /* @__PURE__ */ jsx(Button, {
420
- variant: "ghost",
421
- onClick: () => {
422
- navigator.clipboard?.writeText(handoff.patch || handoff.text);
423
- },
424
- children: "Copy"
425
- })
426
- ]
427
- }) : null,
428
- report ? /* @__PURE__ */ jsxs(Fragment, { children: [
429
- /* @__PURE__ */ jsxs("p", {
430
- className: "muted",
431
- children: ["applicability: ", applicabilityLabel(report.applicability.comparison)]
432
- }),
433
- /* @__PURE__ */ jsx("ul", { children: report.findings.map((item) => /* @__PURE__ */ jsxs("li", { children: [
434
- /* @__PURE__ */ jsxs("span", {
435
- className: "muted",
436
- children: [
437
- "[",
438
- item.severity,
439
- "]"
440
- ]
441
- }),
442
- " ",
443
- /* @__PURE__ */ jsxs("code", { children: [item.path, item.lineStart === null ? "" : `:${item.lineStart}${item.lineEnd && item.lineEnd !== item.lineStart ? `-${item.lineEnd}` : ""}`] }),
444
- " ",
445
- "— ",
446
- item.note,
447
- item.resolution ? /* @__PURE__ */ jsxs("span", {
448
- className: "muted",
449
- children: [
450
- " ",
451
- "· resolved (",
452
- item.resolution.kind,
453
- ") by ",
454
- item.resolution.by.kind
455
- ]
456
- }) : item.state === "unverified" ? /* @__PURE__ */ jsx("span", {
457
- className: "muted",
458
- children: " · UNVERIFIED — not correlated to this revision"
459
- }) : /* @__PURE__ */ jsx(Button, {
460
- variant: "ghost",
461
- disabled: busy,
462
- onClick: () => run(() => resolveReviewFinding({ data: {
463
- id: teamId,
464
- packetId: entry.packet.id,
465
- findingId: item.id,
466
- resolutionKind: "explicit",
467
- resolutionNote: "resolved by the operator"
468
- } })),
469
- children: "Resolve explicitly"
470
- })
471
- ] }, item.id)) }),
472
- /* @__PURE__ */ jsxs("div", {
473
- className: "flex flex-wrap items-end gap-2",
474
- children: [
475
- /* @__PURE__ */ jsxs("label", {
476
- className: "flex flex-col text-sm",
477
- children: [/* @__PURE__ */ jsx("span", {
478
- className: "muted",
479
- children: "Finding path"
480
- }), /* @__PURE__ */ jsx("input", {
481
- value: finding.path,
482
- onChange: (event) => setFinding({
483
- ...finding,
484
- path: event.target.value
485
- })
486
- })]
487
- }),
488
- /* @__PURE__ */ jsxs("label", {
489
- className: "flex flex-col text-sm",
490
- children: [/* @__PURE__ */ jsx("span", {
491
- className: "muted",
492
- children: "Severity"
493
- }), /* @__PURE__ */ jsx("select", {
494
- value: finding.severity,
495
- onChange: (event) => setFinding({
496
- ...finding,
497
- severity: event.target.value
498
- }),
499
- children: SEVERITIES.map((severity) => /* @__PURE__ */ jsx("option", {
500
- value: severity,
501
- children: severity
502
- }, severity))
503
- })]
504
- }),
505
- /* @__PURE__ */ jsxs("label", {
506
- className: "flex flex-col grow text-sm",
507
- children: [/* @__PURE__ */ jsx("span", {
508
- className: "muted",
509
- children: "Note"
510
- }), /* @__PURE__ */ jsx("input", {
511
- value: finding.note,
512
- onChange: (event) => setFinding({
513
- ...finding,
514
- note: event.target.value
515
- })
516
- })]
517
- }),
518
- /* @__PURE__ */ jsx(Button, {
519
- variant: "ghost",
520
- disabled: busy || !finding.path || !finding.note,
521
- onClick: () => run(() => addReviewFinding({ data: {
522
- id: teamId,
523
- packetId: entry.packet.id,
524
- path: finding.path,
525
- severity: finding.severity,
526
- note: finding.note
527
- } })),
528
- children: "Add finding"
529
- })
530
- ]
531
- }),
532
- /* @__PURE__ */ jsxs("div", {
533
- className: "flex flex-wrap items-center gap-2",
534
- children: [/* @__PURE__ */ jsx("span", {
535
- className: "muted",
536
- children: "Conclusion:"
537
- }), CONCLUSIONS.map((conclusion) => /* @__PURE__ */ jsx(Button, {
538
- variant: "ghost",
539
- disabled: busy,
540
- onClick: () => run(() => recordReviewConclusion({ data: {
541
- id: teamId,
542
- packetId: entry.packet.id,
543
- conclusion
544
- } })),
545
- children: conclusion
546
- }, conclusion))]
547
- }),
548
- /* @__PURE__ */ jsxs("div", {
549
- className: "space-y-1",
550
- children: [
551
- /* @__PURE__ */ jsx("span", {
552
- className: "muted",
553
- children: "Where a file link points. The workspace belongs to the machine running the daemon, so this says which host it names and whether it is the reviewed revision."
554
- }),
555
- /* @__PURE__ */ jsxs("div", {
556
- className: "flex flex-wrap items-center gap-2",
557
- children: [
558
- /* @__PURE__ */ jsx("input", {
559
- placeholder: "changed path",
560
- value: linkPath,
561
- onChange: (event) => setLinkPath(event.target.value)
562
- }),
563
- /* @__PURE__ */ jsx(Button, {
564
- variant: "ghost",
565
- disabled: busy || !linkPath,
566
- onClick: async () => {
567
- const result = await fetchReviewFileLink({ data: {
568
- id: teamId,
569
- packetId: entry.packet.id,
570
- path: linkPath
571
- } });
572
- if ("link" in result) setLink({
573
- packetId: entry.packet.id,
574
- link: result.link
575
- });
576
- else if ("message" in result) setError(result);
577
- },
578
- children: "Resolve location"
579
- }),
580
- link?.packetId === entry.packet.id ? /* @__PURE__ */ jsx(Button, {
581
- variant: "ghost",
582
- onClick: () => void navigator.clipboard?.writeText(link.link.copyTarget),
583
- children: "Copy location"
584
- }) : null
585
- ]
586
- }),
587
- link?.packetId === entry.packet.id ? /* @__PURE__ */ jsxs("p", {
588
- className: "muted",
589
- children: [
590
- /* @__PURE__ */ jsx("code", { children: link.link.copyTarget }),
591
- " · on",
592
- " ",
593
- link.link.host.daemon ?? "the daemon host",
594
- " ·",
595
- " ",
596
- link.link.mode === "live" ? "the reviewed revision" : link.link.mode === "stale" ? "the CURRENT file, not the reviewed revision" : "unknown",
597
- " ",
598
- "·",
599
- " ",
600
- link.link.canOpen ? `an editor is configured on the daemon host (${link.link.command})` : "no editor configured, so nothing can be opened here"
601
- ]
602
- }) : null
603
- ]
604
- }),
605
- /* @__PURE__ */ jsxs("p", {
606
- className: "muted",
607
- children: [
608
- "completed: change prepared=",
609
- String(report.facts.changePrepared),
610
- " checks current=",
611
- String(report.facts.checksCurrent),
612
- " reviewed=",
613
- String(report.facts.reviewed),
614
- " — a conclusion is not acceptance, and nothing here commits, pushes, merges or deploys."
615
- ]
616
- }),
617
- /* @__PURE__ */ jsxs("div", {
618
- className: "space-y-1",
619
- children: [
620
- /* @__PURE__ */ jsx("span", {
621
- className: "muted",
622
- children: "Beyond this point nothing is verified: Bazilion has no code-host integration, so these are whatever you report."
623
- }),
624
- /* @__PURE__ */ jsxs("div", {
625
- className: "flex flex-wrap items-center gap-2",
626
- children: [
627
- /* @__PURE__ */ jsx("select", {
628
- className: "unstyled",
629
- value: reportedState,
630
- onChange: (event) => setReportedState(event.target.value),
631
- children: REPORTED_STATES.map((state) => /* @__PURE__ */ jsx("option", {
632
- value: state,
633
- children: state
634
- }, state))
635
- }),
636
- /* @__PURE__ */ jsx("input", {
637
- placeholder: "commit id, URL, release name…",
638
- value: reference,
639
- onChange: (event) => setReference(event.target.value)
640
- }),
641
- /* @__PURE__ */ jsx(Button, {
642
- variant: "ghost",
643
- disabled: busy,
644
- onClick: () => run(() => recordReportedState({ data: {
645
- id: teamId,
646
- packetId: entry.packet.id,
647
- state: reportedState,
648
- reference: reference || null
649
- } })),
650
- children: "Report"
651
- })
652
- ]
653
- }),
654
- /* @__PURE__ */ jsxs("p", {
655
- className: "muted",
656
- children: [
657
- "reported (reported, not verified):",
658
- " ",
659
- Object.entries(report.packet.reported).filter(([, value]) => value !== null).map(([key, value]) => `${key}=${value}`).join(" ") || "nothing yet"
660
- ]
661
- })
662
- ]
663
- })
664
- ] }) : null
665
- ]
666
- }, entry.packet.id);
667
- })
668
- })
669
- ]
670
- });
671
- }
672
- //#endregion
673
- //#region src/routes/teams/$id/review.tsx?tsr-split=component
674
- function ReviewPage() {
675
- const loaded = Route.useLoaderData();
676
- const teamId = loaded.team.id;
677
- const [base, setBase] = useState("");
678
- const [appliedBase, setAppliedBase] = useState("");
679
- const [review, setReview] = useState(loaded.review);
680
- const [unavailable, setUnavailable] = useState(loaded.unavailable);
681
- const [snapshots, setSnapshots] = useState(loaded.snapshots);
682
- const [selected, setSelected] = useState(null);
683
- const [diff, setDiff] = useState(null);
684
- const [snapshot, setSnapshot] = useState(null);
685
- const [latestSnapshotId, setLatestSnapshotId] = useState(() => loaded.snapshots[0]?.snapshotId ?? null);
686
- const [note, setNote] = useState("");
687
- const [agentId, setAgentId] = useState(() => loaded.members[0]?.id ?? "");
688
- const [composed, setComposed] = useState(null);
689
- const [status, setStatus] = useState(null);
690
- const [busy, setBusy] = useState(false);
691
- async function load(nextBase = appliedBase) {
692
- setBusy(true);
693
- setStatus({
694
- kind: "info",
695
- message: "Loading changes…"
696
- });
697
- try {
698
- const data = await fetchTeamReview({ data: {
699
- id: teamId,
700
- ...nextBase ? { base: nextBase } : {}
701
- } });
702
- if (!data) return;
703
- setReview(data.review);
704
- setUnavailable(data.unavailable);
705
- setSnapshots(data.snapshots);
706
- setAppliedBase(nextBase);
707
- setSelected(null);
708
- setDiff(null);
709
- setStatus(null);
710
- } finally {
711
- setBusy(false);
712
- }
713
- }
714
- async function openDiff(path) {
715
- setSelected(path);
716
- setDiff(null);
717
- setStatus({
718
- kind: "info",
719
- message: "Loading diff…"
720
- });
721
- setDiff(await fetchFileDiff({ data: {
722
- id: teamId,
723
- path,
724
- ...appliedBase ? { base: appliedBase } : {}
725
- } }));
726
- setStatus(null);
727
- }
728
- async function capture() {
729
- setBusy(true);
730
- setStatus({
731
- kind: "info",
732
- message: "Capturing a source snapshot…"
733
- });
734
- const result = await captureTeamSnapshot({ data: { id: teamId } });
735
- if ("reference" in result) {
736
- setStatus({
737
- kind: "info",
738
- message: `Captured ${referenceLabel(result.reference)}`
739
- });
740
- await load();
741
- } else setStatus({
742
- kind: "error",
743
- message: unavailableMessage(result.code, result.message)
744
- });
745
- setBusy(false);
746
- }
747
- async function prepare() {
748
- if (!selected) return;
749
- setBusy(true);
750
- setStatus({
751
- kind: "info",
752
- message: "Preparing feedback…"
753
- });
754
- const result = await prepareReviewFeedback({ data: {
755
- id: teamId,
756
- path: selected,
757
- ...latestSnapshotId ? { snapshotId: latestSnapshotId } : {},
758
- ...note.trim() ? { note } : {}
759
- } });
760
- if ("message" in result && "reference" in result) {
761
- setComposed(result);
762
- setStatus(null);
763
- } else setStatus({
764
- kind: "error",
765
- message: unavailableMessage(result.code, result.message)
766
- });
767
- setBusy(false);
768
- }
769
- async function send() {
770
- if (!composed || !agentId) return;
771
- setBusy(true);
772
- const result = await sendReviewFeedback({ data: {
773
- agentId,
774
- message: composed.message
775
- } });
776
- setStatus("queued" in result ? {
777
- kind: "info",
778
- message: "Feedback queued for the Agent. It runs as the next turn."
779
- } : {
780
- kind: "error",
781
- message: unavailableMessage(result.code, result.message)
782
- });
783
- if ("queued" in result) setComposed(null);
784
- setBusy(false);
785
- }
786
- async function openSnapshot(snapshotId) {
787
- setStatus({
788
- kind: "info",
789
- message: "Loading snapshot…"
790
- });
791
- const loadedSnapshot = await fetchTeamSnapshot({ data: {
792
- id: teamId,
793
- snapshotId
794
- } });
795
- setSnapshot(loadedSnapshot);
796
- setStatus(loadedSnapshot ? null : {
797
- kind: "error",
798
- message: "That snapshot is no longer retained."
799
- });
800
- }
801
- const changes = review?.changes;
802
- return /* @__PURE__ */ jsxs(PageShell, { children: [
803
- /* @__PURE__ */ jsxs("header", { children: [/* @__PURE__ */ jsxs("h1", { children: [loaded.team.name || loaded.team.id, " review"] }), /* @__PURE__ */ jsx("p", { children: "Changes since a pinned baseline, and the source snapshots taken for them. Inspection is read-only — nothing here stages, commits or reverts anything." })] }),
804
- /* @__PURE__ */ jsx(TeamTabs, { teamId }),
805
- /* @__PURE__ */ jsxs("section", {
806
- className: "space-y-2",
807
- "aria-label": "Comparison base",
808
- children: [
809
- /* @__PURE__ */ jsxs("div", {
810
- className: "flex flex-col gap-2 sm:flex-row sm:items-end",
811
- children: [/* @__PURE__ */ jsxs("label", {
812
- className: "flex min-w-0 flex-1 flex-col gap-1",
813
- children: [/* @__PURE__ */ jsx("span", { children: "Comparison base" }), /* @__PURE__ */ jsx("input", {
814
- className: "input",
815
- value: base,
816
- placeholder: "HEAD",
817
- onChange: (event) => setBase(event.target.value),
818
- onKeyDown: (event) => {
819
- if (event.key === "Enter") load(base);
820
- }
821
- })]
822
- }), /* @__PURE__ */ jsxs("div", {
823
- className: "flex gap-2",
824
- children: [/* @__PURE__ */ jsx(Button, {
825
- variant: "ghost",
826
- disabled: busy,
827
- onClick: () => void load(base),
828
- children: "Apply base"
829
- }), /* @__PURE__ */ jsx(Button, {
830
- variant: "primary",
831
- disabled: busy,
832
- onClick: () => void load(),
833
- children: "Refresh"
834
- })]
835
- })]
836
- }),
837
- changes && /* @__PURE__ */ jsx("p", {
838
- className: "text-sm opacity-80",
839
- children: baseLabel(changes.identity, changes)
840
- }),
841
- /* @__PURE__ */ jsx("p", {
842
- className: "text-xs opacity-70",
843
- children: "A branch name is resolved to a concrete commit when the review loads, so a moving tip cannot rewrite what you are looking at."
844
- })
845
- ]
846
- }),
847
- status && /* @__PURE__ */ jsx("p", {
848
- role: status.kind === "error" ? "alert" : "status",
849
- className: "text-sm",
850
- children: status.message
851
- }),
852
- unavailable && /* @__PURE__ */ jsxs("section", {
853
- className: "rounded-sm border border-fawn bg-ivory p-3",
854
- "aria-label": "Review unavailable",
855
- children: [/* @__PURE__ */ jsx("p", {
856
- role: "alert",
857
- children: unavailableMessage(unavailable.code, unavailable.message)
858
- }), unavailable.code && /* @__PURE__ */ jsxs("p", {
859
- className: "text-xs opacity-70",
860
- children: ["code: ", unavailable.code]
861
- })]
862
- }),
863
- changes && /* @__PURE__ */ jsxs("section", {
864
- className: "space-y-2",
865
- "aria-label": "Changes since baseline",
866
- children: [
867
- /* @__PURE__ */ jsx("h2", { children: "Changes since baseline" }),
868
- changes.changes.length === 0 && /* @__PURE__ */ jsx("p", { children: "No changes since this baseline." }),
869
- changes.changes.length > 0 && /* @__PURE__ */ jsx("ul", {
870
- className: "divide-y divide-fawn rounded-sm border border-fawn",
871
- children: changes.changes.map((change) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("button", {
872
- type: "button",
873
- "aria-current": selected === change.path ? "true" : void 0,
874
- onClick: () => void openDiff(change.path),
875
- className: "flex w-full flex-col gap-1 px-3 py-2 text-left hover:bg-sapphire-glow focus:bg-sapphire-glow",
876
- children: [/* @__PURE__ */ jsx("span", {
877
- className: "break-all font-mono text-sm",
878
- children: change.previousPath ? `${change.previousPath} → ${change.path}` : change.path
879
- }), /* @__PURE__ */ jsxs("span", {
880
- className: "text-xs opacity-80",
881
- children: [changeSummary(change), change.patchTruncated ? " · diff truncated" : ""]
882
- })]
883
- }) }, `${change.status}:${change.path}`))
884
- }),
885
- changes.truncated && /* @__PURE__ */ jsx("p", {
886
- className: "text-sm",
887
- children: "This list is incomplete: more files changed than the review limit allows."
888
- }),
889
- (changes.withheld.excluded > 0 || changes.withheld.untracked > 0) && /* @__PURE__ */ jsxs("p", {
890
- className: "text-xs opacity-80",
891
- children: [
892
- changes.withheld.excluded,
893
- " excluded and ",
894
- changes.withheld.untracked,
895
- " untracked path(s) withheld by scope policy."
896
- ]
897
- }),
898
- changes.issues.map((issue) => /* @__PURE__ */ jsxs("p", {
899
- className: "text-xs opacity-80",
900
- children: [
901
- "note: ",
902
- issue.code,
903
- ": ",
904
- issue.message
905
- ]
906
- }, `${issue.code}:${issue.message}`))
907
- ]
908
- }),
909
- selected && /* @__PURE__ */ jsxs("section", {
910
- className: "space-y-2",
911
- "aria-label": "Selected file diff",
912
- children: [
913
- /* @__PURE__ */ jsx("h2", {
914
- className: "break-all font-mono text-base",
915
- children: selected
916
- }),
917
- diff === null ? /* @__PURE__ */ jsx("p", {
918
- className: "text-sm",
919
- children: "Loading…"
920
- }) : diff.patch === null ? /* @__PURE__ */ jsxs("p", {
921
- className: "text-sm",
922
- children: [
923
- "No diff text for this file",
924
- diff.omitted ? ` (${diff.omitted.replaceAll("_", " ")})` : "",
925
- "."
926
- ]
927
- }) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("pre", {
928
- className: "max-h-96 overflow-auto whitespace-pre-wrap break-words rounded-sm bg-[rgba(42,31,22,0.04)] p-3 font-mono text-xs",
929
- children: diff.patch
930
- }), diff.truncated && /* @__PURE__ */ jsx("p", {
931
- className: "text-xs",
932
- children: "This diff was truncated at the patch limit."
933
- })] }),
934
- /* @__PURE__ */ jsxs("div", {
935
- className: "space-y-2 rounded-sm border border-fawn p-3",
936
- children: [
937
- /* @__PURE__ */ jsx("h3", { children: "Send feedback about this file" }),
938
- /* @__PURE__ */ jsxs("label", {
939
- className: "flex flex-col gap-1",
940
- children: [/* @__PURE__ */ jsx("span", { children: "Note (optional)" }), /* @__PURE__ */ jsx("textarea", {
941
- className: "input",
942
- rows: 2,
943
- value: note,
944
- onChange: (event) => setNote(event.target.value)
945
- })]
946
- }),
947
- /* @__PURE__ */ jsxs("label", {
948
- className: "flex flex-col gap-1",
949
- children: [/* @__PURE__ */ jsx("span", { children: "Agent" }), /* @__PURE__ */ jsx("select", {
950
- className: "input",
951
- value: agentId,
952
- onChange: (event) => setAgentId(event.target.value),
953
- children: loaded.members.map((member) => /* @__PURE__ */ jsx("option", {
954
- value: member.id,
955
- children: member.name
956
- }, member.id))
957
- })]
958
- }),
959
- /* @__PURE__ */ jsxs("div", {
960
- className: "flex flex-wrap gap-2",
961
- children: [/* @__PURE__ */ jsx(Button, {
962
- variant: "ghost",
963
- disabled: busy,
964
- onClick: () => void prepare(),
965
- children: "Preview message"
966
- }), /* @__PURE__ */ jsx(Button, {
967
- variant: "primary",
968
- disabled: busy || !composed || !agentId,
969
- onClick: () => void send(),
970
- children: "Queue for Agent"
971
- })]
972
- }),
973
- latestSnapshotId ? /* @__PURE__ */ jsxs("p", {
974
- className: "text-xs opacity-70",
975
- children: [
976
- "Referenced snapshot: ",
977
- latestSnapshotId.slice(0, 12),
978
- ". It is rechecked now, and the verdict is stated in the message."
979
- ]
980
- }) : /* @__PURE__ */ jsx("p", {
981
- className: "text-xs opacity-70",
982
- children: "No snapshot captured for this Team yet, so the feedback will say its source identity is unknown rather than implying the lines still match."
983
- }),
984
- composed && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", {
985
- className: "text-sm",
986
- children: composed.applicability === "current" ? "This file is unchanged since the snapshot." : composed.applicability === "stale" ? "This file changed since the snapshot — the selected lines may have moved." : `Source identity unknown (${composed.applicabilityReason}).`
987
- }), /* @__PURE__ */ jsx("pre", {
988
- className: "max-h-64 overflow-auto whitespace-pre-wrap break-words rounded-sm bg-[rgba(42,31,22,0.04)] p-3 font-mono text-xs",
989
- children: composed.message
990
- })] })
991
- ]
992
- })
993
- ]
994
- }),
995
- /* @__PURE__ */ jsxs("section", {
996
- className: "space-y-2",
997
- "aria-label": "Source snapshots",
998
- children: [
999
- /* @__PURE__ */ jsxs("div", {
1000
- className: "flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",
1001
- children: [/* @__PURE__ */ jsx("h2", { children: "Source snapshots" }), /* @__PURE__ */ jsx(Button, {
1002
- variant: "ghost",
1003
- disabled: busy,
1004
- onClick: () => void capture(),
1005
- children: "Capture snapshot"
1006
- })]
1007
- }),
1008
- /* @__PURE__ */ jsx("p", {
1009
- className: "text-xs opacity-70",
1010
- children: "A snapshot records HEAD, the index and digests of changed files — never file content. Untracked content is only included when a path is named explicitly."
1011
- }),
1012
- snapshots.length === 0 && /* @__PURE__ */ jsx("p", { children: "No retained snapshots for this Team." }),
1013
- snapshots.length > 0 && /* @__PURE__ */ jsx("ul", {
1014
- className: "divide-y divide-fawn rounded-sm border border-fawn",
1015
- children: snapshots.map((entry) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("button", {
1016
- type: "button",
1017
- onClick: () => void openSnapshot(entry.snapshotId),
1018
- className: "w-full px-3 py-2 text-left font-mono text-xs hover:bg-sapphire-glow focus:bg-sapphire-glow",
1019
- children: snapshotLabel(entry)
1020
- }) }, entry.snapshotId))
1021
- }),
1022
- snapshot && /* @__PURE__ */ jsxs("div", {
1023
- className: "space-y-1",
1024
- children: [
1025
- /* @__PURE__ */ jsxs("p", {
1026
- className: "text-sm",
1027
- children: [
1028
- snapshot.id.slice(0, 12),
1029
- " · ",
1030
- snapshot.complete ? "complete" : "incomplete — applicability unknown",
1031
- " · head ",
1032
- snapshot.head?.slice(0, 12) ?? "(unborn)"
1033
- ]
1034
- }),
1035
- snapshot.entries.length > 0 && /* @__PURE__ */ jsx("ul", {
1036
- className: "space-y-1 font-mono text-xs",
1037
- children: snapshot.entries.map((entry) => /* @__PURE__ */ jsxs("li", { children: [
1038
- entry.layer,
1039
- " · ",
1040
- entry.kind,
1041
- " · ",
1042
- entry.path,
1043
- entry.bytes === null ? "" : ` · ${entry.bytes}B`
1044
- ] }, `${entry.layer}:${entry.path}`))
1045
- }),
1046
- snapshot.exclusions.length > 0 && /* @__PURE__ */ jsxs("p", {
1047
- className: "text-xs opacity-80",
1048
- children: ["withheld: ", snapshot.exclusions.map((item) => `${item.path} (${item.reason})`).join(", ")]
1049
- })
1050
- ]
1051
- })
1052
- ]
1053
- }),
1054
- loaded.packets ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ReviewPacketPanel, {
1055
- teamId,
1056
- view: loaded.packets
1057
- }), /* @__PURE__ */ jsx(PublicationPanel, { teamId })] }) : null
1058
- ] });
1059
- }
1060
- //#endregion
1061
- export { ReviewPage as component };