bazilion 0.24.0 → 0.26.0

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 (375) hide show
  1. package/README.md +41 -128
  2. package/dist/cli.js +5000 -2
  3. package/dist/cli.js.map +1 -0
  4. package/dist/daemon.js +17803 -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-BgW59Bvn.js +72 -0
  9. package/dist/web/client/assets/ConfigPage-BcjKer-E.js +1 -0
  10. package/dist/web/client/assets/ConfirmDialog-B5BLql5H.js +1 -0
  11. package/dist/web/client/assets/FieldRow-Dr1dDiQ6.js +1 -0
  12. package/dist/web/client/assets/ModelSelect-CvOHjUyB.js +1 -0
  13. package/dist/web/client/assets/ResultCard-CDLhGze2.js +1 -0
  14. package/dist/web/client/assets/SectionTabs-DXHzXmmb.js +1 -0
  15. package/dist/web/client/assets/SkillFindings-BPmVzjOa.js +1 -0
  16. package/dist/web/client/assets/SkillsPicker-Cr87y_W-.js +1 -0
  17. package/dist/web/client/assets/SpawnDialog-CWvaYWBr.js +1 -0
  18. package/dist/web/client/assets/SpawnTeamModal-DxU7QH0e.js +1 -0
  19. package/dist/web/client/assets/Tabs-D0LgBNIk.js +1 -0
  20. package/dist/web/client/assets/TeamForm-Bxl3s8yF.js +1 -0
  21. package/dist/web/client/assets/TeamPolicyEditor-B-ikYl3V.js +7 -0
  22. package/dist/web/client/assets/UnsavedChangesGuard-CmeIPiXp.js +1 -0
  23. package/dist/web/client/assets/_id-B-Vo1VkF.js +1 -0
  24. package/dist/web/client/assets/_id-CNN1ila9.js +1 -0
  25. package/dist/web/client/assets/_id-CrGDqaFa.js +1 -0
  26. package/dist/web/client/assets/_id-iXED17f-.js +1 -0
  27. package/dist/web/client/assets/agent-actions-CmkRSxQg.js +1 -0
  28. package/dist/web/client/assets/agents-DwDcKOif.js +1 -0
  29. package/dist/web/client/assets/agents-KnMSeucP.js +1 -0
  30. package/dist/web/client/assets/attention-CLQIHUF6.js +1 -0
  31. package/dist/web/client/assets/chevron-right-DZFmP-cr.js +1 -0
  32. package/dist/web/client/assets/config-B483VUYj.js +3 -0
  33. package/dist/web/client/assets/entities-xVoB-p2j.js +1 -0
  34. package/dist/web/client/assets/inbox-DIXsxGV8.js +1 -0
  35. package/dist/web/client/assets/index-CKJ3uVR4.js +52 -0
  36. package/dist/web/client/assets/jsx-runtime-bzQ4Vb5N.js +1 -0
  37. package/dist/web/client/assets/learning-DDTz_N6N.js +1 -0
  38. package/dist/web/client/assets/login-6S3kA9Yb.js +1 -0
  39. package/dist/web/client/assets/mcp-Dm4DfYI9.js +1 -0
  40. package/dist/web/client/assets/members-CD93Kya7.js +1 -0
  41. package/dist/web/client/assets/memory-M28_uFOH.js +1 -0
  42. package/dist/web/client/assets/plus-xCBcVxeD.js +1 -0
  43. package/dist/web/client/assets/policy-IKYNTvWX.js +1 -0
  44. package/dist/web/client/assets/preload-helper-eUUcpe2S.js +1 -0
  45. package/dist/web/client/assets/results-CGNpUJ11.js +1 -0
  46. package/dist/web/client/assets/review-BN6V988m.js +1 -0
  47. package/dist/web/client/assets/route-DUIeAVZz.js +1 -0
  48. package/dist/web/client/assets/route-V5VM1ufA.js +1 -0
  49. package/dist/web/client/assets/routes-CInZFLoI.js +1 -0
  50. package/dist/web/client/assets/services-CeB7gfY5.js +1 -0
  51. package/dist/web/client/assets/settings-BWonPTKi.js +1 -0
  52. package/dist/web/client/assets/skills-CgrXwmh8.js +1 -0
  53. package/dist/web/client/assets/styles-d9JiV6N4.css +2 -0
  54. package/dist/web/client/assets/teams-C98Ww6Xu.js +1 -0
  55. package/dist/web/client/assets/teams-D-g74z8r.js +1 -0
  56. package/dist/web/client/assets/telegram-Cc8NJ4Tc.js +1 -0
  57. package/dist/web/client/assets/tokens-ZTSxCsD_.js +1 -0
  58. package/dist/web/client/assets/triggers-Br8Wk4Yk.js +1 -0
  59. package/dist/web/client/assets/welcome-C-hJvXWG.js +1 -0
  60. package/dist/web/server/assets/ChatPane-De_FPEoD.js +1887 -0
  61. package/dist/web/server/assets/ConfigPage-CGld_wCK.js +28 -0
  62. package/dist/web/server/assets/ConfirmDialog-LdVlEanK.js +132 -0
  63. package/dist/web/server/assets/{FieldRow-DPO8x_le.js → FieldRow-Dah2KKqo.js} +8 -15
  64. package/dist/web/server/assets/ModelSelect-Vwro6OkL.js +43 -0
  65. package/dist/web/server/assets/{Page-DJNoI4Gn.js → Page-CMSYKXWJ.js} +51 -2
  66. package/dist/web/server/assets/ResultCard-CZn1w4KA.js +97 -0
  67. package/dist/web/server/assets/SectionTabs-CqFg9Vwx.js +53 -0
  68. package/dist/web/server/assets/Sidebar-puq47KyR.js +430 -0
  69. package/dist/web/server/assets/SkillFindings-Bd6e81Wu.js +46 -0
  70. package/dist/web/server/assets/SkillsPicker-DlqEfRWh.js +67 -0
  71. package/dist/web/server/assets/SpawnDialog-BGNaMfFb.js +111 -0
  72. package/dist/web/server/assets/SpawnTeamModal-C6GbfScI.js +97 -0
  73. package/dist/web/server/assets/Tabs-BhF41MfQ.js +20 -0
  74. package/dist/web/server/assets/TeamForm-C93tpn9r.js +96 -0
  75. package/dist/web/server/assets/TeamPolicyEditor-BHS3J0R9.js +738 -0
  76. package/dist/web/server/assets/{UnsavedChangesGuard-BfSyMhiD.js → UnsavedChangesGuard-Dm4a27_5.js} +1 -1
  77. package/dist/web/server/assets/_id-B0x1ffz3.js +12 -0
  78. package/dist/web/server/assets/_id-BR6tnR6I.js +23 -0
  79. package/dist/web/server/assets/_id-Bdf_Rg62.js +19 -0
  80. package/dist/web/server/assets/_id-Bm611NQz.js +13 -0
  81. package/dist/web/server/assets/{_id-4fEeAcp0.js → _id-ByiXeIPS.js} +9 -8
  82. package/dist/web/server/assets/_id-D5UCoyES.js +359 -0
  83. package/dist/web/server/assets/_id-DHx5UmmL.js +12 -0
  84. package/dist/web/server/assets/_id-DLpGmOVm.js +19 -0
  85. package/dist/web/server/assets/_id-Y5ctILG2.js +13 -0
  86. package/dist/web/server/assets/_id-dDA0pdVo.js +54 -0
  87. package/dist/web/server/assets/_id-lOVnT5sS.js +383 -0
  88. package/dist/web/server/assets/{_id-BhJCnRR1.js → _id-sW6zXrTP.js} +4 -4
  89. package/dist/web/server/assets/_tanstack-start-manifest_v-BUFDfU9j.js +292 -0
  90. package/dist/web/server/assets/agent-actions-BBdFVdoa.js +20 -0
  91. package/dist/web/server/assets/{agents-Cmw-sUUD.js → agents-BK8OmB8g.js} +7 -6
  92. package/dist/web/server/assets/{agents-DOrzqCXg.js → agents-BNPkidbH.js} +8 -10
  93. package/dist/web/server/assets/{agents-BitDk_C5.js → agents-Cn9GkXFX.js} +1 -3
  94. package/dist/web/server/assets/agents-D4tqK1kH.js +131 -0
  95. package/dist/web/server/assets/agents-DycxHDt8.js +327 -0
  96. package/dist/web/server/assets/{agents-DmmuOHw8.js → agents-lOqc6VGd.js} +4 -4
  97. package/dist/web/server/assets/api-WWxPqx67.js +85 -0
  98. package/dist/web/server/assets/attention-BIm455bC.js +216 -0
  99. package/dist/web/server/assets/{attention-Cy3Xu-Su.js → attention-DULVjdmF.js} +2 -4
  100. package/dist/web/server/assets/{attention-CsYqmV0L.js → attention-YWnLKA2E.js} +4 -2
  101. package/dist/web/server/assets/{auth-DChuQIh4.js → auth-DiN92ydD.js} +7 -8
  102. package/dist/web/server/assets/{config-CMxeC2Bd.js → config-C0lOmAcs.js} +139 -414
  103. package/dist/web/server/assets/{config-CbioK6nX.js → config-D7Z2wgbk.js} +1 -1
  104. package/dist/web/server/assets/{config-CpHD812q.js → config-TdVqnqNL.js} +3 -7
  105. package/dist/web/server/assets/cookies-HnTYjKRp.js +17 -0
  106. package/dist/web/server/assets/daemon-client-DL2ik2Em.js +146 -0
  107. package/dist/web/server/assets/entities-Dn2xzKIw.js +16 -0
  108. package/dist/web/server/assets/inbox-4Vj5jTT8.js +245 -0
  109. package/dist/web/server/assets/inbox-D4IqUv3l.js +38 -0
  110. package/dist/web/server/assets/inbox-Dle24AfV.js +23 -0
  111. package/dist/web/server/assets/learning-BScq7VbO.js +12 -0
  112. package/dist/web/server/assets/learning-CBWFEnhg.js +263 -0
  113. package/dist/web/server/assets/{learning-BuL0c1vH.js → learning-DWAKevhF.js} +6 -14
  114. package/dist/web/server/assets/{login-rDox7PRD.js → login-JoIjlcmu.js} +2 -5
  115. package/dist/web/server/assets/{login-B_-9L8TU.js → login-VV10kZBl.js} +15 -17
  116. package/dist/web/server/assets/mcp-B09_O05r.js +250 -0
  117. package/dist/web/server/assets/{mcp-B8ErRiR_.js → mcp-BwmpNQPN.js} +1 -1
  118. package/dist/web/server/assets/{mcp-CLWr5_0I.js → mcp-CqdTfXcn.js} +1 -3
  119. package/dist/web/server/assets/members-B8QBF6TF.js +12 -0
  120. package/dist/web/server/assets/{members-DFLi2nQg.js → members-DsF02Wp7.js} +2 -2
  121. package/dist/web/server/assets/members-tWZA9b15.js +36 -0
  122. package/dist/web/server/assets/memory-BNN0b-0x.js +12 -0
  123. package/dist/web/server/assets/memory-CTl1E1Rm.js +267 -0
  124. package/dist/web/server/assets/memory-CV5uCBb2.js +12 -0
  125. package/dist/web/server/assets/policy-C9M6zV6w.js +79 -0
  126. package/dist/web/server/assets/policy-h-6NpU3m.js +19 -0
  127. package/dist/web/server/assets/policy-xEw9X0DK.js +12 -0
  128. package/dist/web/server/assets/public-origin-BpDkdS5Q.js +34 -0
  129. package/dist/web/server/assets/results-D3A3UA4d.js +182 -0
  130. package/dist/web/server/assets/results-D6Ui5S8D.js +12 -0
  131. package/dist/web/server/assets/results-DWmxvfyn.js +15 -0
  132. package/dist/web/server/assets/review-CyQky-WQ.js +40 -0
  133. package/dist/web/server/assets/review-Sq0GGcPV.js +322 -0
  134. package/dist/web/server/assets/review-XWbSF8cF.js +12 -0
  135. package/dist/web/server/assets/route-BErtkz6t.js +19 -0
  136. package/dist/web/server/assets/route-CLoV-An_.js +48 -0
  137. package/dist/web/server/assets/route-WQ19JkBa.js +19 -0
  138. package/dist/web/server/assets/route-dEK_2GLj.js +203 -0
  139. package/dist/web/server/assets/route-iHTkhO81.js +16 -0
  140. package/dist/web/server/assets/route-zs8uUQtB.js +16 -0
  141. package/dist/web/server/assets/router-vAv1HkV1.js +751 -0
  142. package/dist/web/server/assets/routes-081s4n24.js +45 -0
  143. package/dist/web/server/assets/routes-CWo5WPsr.js +15 -0
  144. package/dist/web/server/assets/routes-Cqp1ufHm.js +56 -0
  145. package/dist/web/server/assets/{services-ZeEIgTn0.js → services-BLvAvb8g.js} +1 -1
  146. package/dist/web/server/assets/{services-UL_2b8PP.js → services-Q9HYQXXB.js} +2 -8
  147. package/dist/web/server/assets/{services-T8adll3y.js → services-tCfB1B83.js} +21 -38
  148. package/dist/web/server/assets/settings-CVaGv-xF.js +12 -0
  149. package/dist/web/server/assets/settings-D9viV-86.js +561 -0
  150. package/dist/web/server/assets/settings-DaZNZ_CC.js +27 -0
  151. package/dist/web/server/assets/{skills-D1oy3JAH.js → skills-BZg_txbf.js} +1 -3
  152. package/dist/web/server/assets/skills-C7fqRPna.js +275 -0
  153. package/dist/web/server/assets/{skills-kfqhxYmf.js → skills-C_g8IKag.js} +1 -1
  154. package/dist/web/server/assets/start-DTX6aKCi.js +100 -0
  155. package/dist/web/server/assets/teams-BHkhnt6b.js +12 -0
  156. package/dist/web/server/assets/teams-BS-oweRl.js +80 -0
  157. package/dist/web/server/assets/teams-BSflKBP8.js +108 -0
  158. package/dist/web/server/assets/teams-CNyB5nM9.js +12 -0
  159. package/dist/web/server/assets/{teams-BW2ARIvk.js → teams-D4CaU76n.js} +3 -5
  160. package/dist/web/server/assets/teams-DX2HmKqi.js +21 -0
  161. package/dist/web/server/assets/{telegram-U9UAdUEx.js → telegram-BUdnc8oF.js} +1 -1
  162. package/dist/web/server/assets/{telegram-ByHqeAGC.js → telegram-C4v1HhyJ.js} +1 -1
  163. package/dist/web/server/assets/{telegram-IMfV34-w.js → telegram-CrJiygCX.js} +223 -471
  164. package/dist/web/server/assets/{tokens-CiThDMwM.js → tokens-B1twAJdd.js} +5 -5
  165. package/dist/web/server/assets/tokens-DdjEyALj.js +232 -0
  166. package/dist/web/server/assets/tokens-DqldzPUq.js +14 -0
  167. package/dist/web/server/assets/triggers-B7LW784F.js +214 -0
  168. package/dist/web/server/assets/triggers-C5sMCZXv2.js +12 -0
  169. package/dist/web/server/assets/triggers-DMfVdImD.js +12 -0
  170. package/dist/web/server/assets/{welcome-BFWKx138.js → welcome-D0d38Pzx.js} +5 -6
  171. package/dist/web/server/server.js +55 -159
  172. package/dist/web-server.js +3 -3
  173. package/dist/worker.js +1654 -5842
  174. package/dist/worker.js.map +1 -1
  175. package/package.json +6 -15
  176. package/dist/cli-main.js +0 -9180
  177. package/dist/cli-main.js.map +0 -1
  178. package/dist/daemon-main.js +0 -43074
  179. package/dist/daemon-main.js.map +0 -1
  180. package/dist/migrations/0001_init.sql +0 -1101
  181. package/dist/migrations/0002_device_token_scopes.sql +0 -8
  182. package/dist/migrations/0003_web_pairing_tokens.sql +0 -18
  183. package/dist/migrations/0004_image_generation.sql +0 -25
  184. package/dist/runtime-version.js +0 -28
  185. package/dist/runtime-version.js.map +0 -1
  186. package/dist/web/client/assets/AgentTabs-0mMqUuts.js +0 -1
  187. package/dist/web/client/assets/ChatPane-C4ZAMSqQ.js +0 -76
  188. package/dist/web/client/assets/ConfigPage-CbALCsl0.js +0 -1
  189. package/dist/web/client/assets/ConfirmDialog-CB1a-szq.js +0 -1
  190. package/dist/web/client/assets/FieldRow-BHGq10hz.js +0 -1
  191. package/dist/web/client/assets/ProductionTeamPolicyEditor-B4Ysob7y.js +0 -7
  192. package/dist/web/client/assets/ProfileCommunicationEditor-Bi1SwX0T.js +0 -1
  193. package/dist/web/client/assets/RecoveryState-CDWhoT3x.js +0 -1
  194. package/dist/web/client/assets/ResultCard-Crmt8j95.js +0 -1
  195. package/dist/web/client/assets/ResultSourceConversation-CqwZKlKb.js +0 -1
  196. package/dist/web/client/assets/SectionTabs-mghnc98b.js +0 -1
  197. package/dist/web/client/assets/TeamTabs-BuZ3DvCw.js +0 -1
  198. package/dist/web/client/assets/TemplatesTabs-D71oTTXM.js +0 -1
  199. package/dist/web/client/assets/UnsavedChangesGuard-CiCtGDIH.js +0 -1
  200. package/dist/web/client/assets/_id-B-8ssJLW.js +0 -1
  201. package/dist/web/client/assets/_id-BVY0iUYM.js +0 -1
  202. package/dist/web/client/assets/_id-C7A_A3eM.js +0 -1
  203. package/dist/web/client/assets/_id-CQlUNjzV.js +0 -1
  204. package/dist/web/client/assets/_id-CeALz6bj.js +0 -1
  205. package/dist/web/client/assets/_id-DQqcn57I.js +0 -1
  206. package/dist/web/client/assets/_id-DRiwwqZL.js +0 -1
  207. package/dist/web/client/assets/_id-DaqX-WEB.js +0 -1
  208. package/dist/web/client/assets/activity-C5aaqPEN.js +0 -1
  209. package/dist/web/client/assets/activity-D4Nt8GQM.js +0 -1
  210. package/dist/web/client/assets/agents-BPLszpKx.js +0 -1
  211. package/dist/web/client/assets/agents-BUqq1VBQ.js +0 -1
  212. package/dist/web/client/assets/agents-DFOLPsgX.js +0 -1
  213. package/dist/web/client/assets/approvals-8PPXdZxV.js +0 -1
  214. package/dist/web/client/assets/approvals-MVCITL8Q.js +0 -1
  215. package/dist/web/client/assets/attention-DiyHVOcZ.js +0 -1
  216. package/dist/web/client/assets/attention-e273gZ8d.js +0 -1
  217. package/dist/web/client/assets/chevron-right-DgJy0QeF.js +0 -1
  218. package/dist/web/client/assets/config-Dm6OgnLh.js +0 -3
  219. package/dist/web/client/assets/context-DhgSlMk5.js +0 -1
  220. package/dist/web/client/assets/git-review-presentation-CzHQulDk.js +0 -1
  221. package/dist/web/client/assets/inbox-B3To3KpL.js +0 -1
  222. package/dist/web/client/assets/inbox-C1_vHPb8.js +0 -1
  223. package/dist/web/client/assets/index-DtEE9JX2.js +0 -52
  224. package/dist/web/client/assets/jsx-runtime-DGeXAQPT.js +0 -1
  225. package/dist/web/client/assets/learning-B7wX_mkT.js +0 -1
  226. package/dist/web/client/assets/learning-DDwUAKmq.js +0 -1
  227. package/dist/web/client/assets/login-CWaSGdgc.js +0 -1
  228. package/dist/web/client/assets/mcp-CO5iBKHD.js +0 -1
  229. package/dist/web/client/assets/mcp-DO8sSn5c.js +0 -1
  230. package/dist/web/client/assets/members-Bd3z1Mbb.js +0 -1
  231. package/dist/web/client/assets/members-Dx9OcdY1.js +0 -1
  232. package/dist/web/client/assets/memory-BIZi6bBM.js +0 -1
  233. package/dist/web/client/assets/memory-DrYbH0we.js +0 -1
  234. package/dist/web/client/assets/policy-CcnTn0qG.js +0 -1
  235. package/dist/web/client/assets/policy-Dsj-SWqE.js +0 -1
  236. package/dist/web/client/assets/preload-helper-bztXdkDj.js +0 -1
  237. package/dist/web/client/assets/react-3W8R1pOO.js +0 -1
  238. package/dist/web/client/assets/results-GeOLM5Cw.js +0 -1
  239. package/dist/web/client/assets/results-t7jAchgU.js +0 -1
  240. package/dist/web/client/assets/review-CQaZNlyx.js +0 -1
  241. package/dist/web/client/assets/review-CYvx-3K2.js +0 -1
  242. package/dist/web/client/assets/routes-DoK4DMdi.js +0 -1
  243. package/dist/web/client/assets/services-BI7iyTHh.js +0 -1
  244. package/dist/web/client/assets/services-c9HkxKEP.js +0 -1
  245. package/dist/web/client/assets/skills-B0O0zwg1.js +0 -1
  246. package/dist/web/client/assets/skills-Ddf5PBNn.js +0 -1
  247. package/dist/web/client/assets/styles-e_ADuRbs.css +0 -2
  248. package/dist/web/client/assets/team-policy-D0jpnn2b.js +0 -1
  249. package/dist/web/client/assets/teams-BDbkurIa.js +0 -1
  250. package/dist/web/client/assets/teams-BNQ4z_k3.js +0 -1
  251. package/dist/web/client/assets/teams-Wvr8-LhE.js +0 -1
  252. package/dist/web/client/assets/teams-kRB5hV3h.js +0 -1
  253. package/dist/web/client/assets/telegram-Dx9tzt9d.js +0 -1
  254. package/dist/web/client/assets/templates-CGQ93r-m.js +0 -1
  255. package/dist/web/client/assets/tokens-CsOJULk9.js +0 -1
  256. package/dist/web/client/assets/tokens-zqJy3CQD.js +0 -1
  257. package/dist/web/client/assets/triggers-9UUKTR6l.js +0 -1
  258. package/dist/web/client/assets/triggers-BiXb1VFy.js +0 -1
  259. package/dist/web/client/assets/verifications-BKoHhRqF.js +0 -1
  260. package/dist/web/client/assets/verifications-CElk4UQp.js +0 -2
  261. package/dist/web/client/assets/welcome-BdcpBETx.js +0 -1
  262. package/dist/web/client/assets/wire-constants-CBD-lTaa.js +0 -1
  263. package/dist/web/client/assets/x-DtPVZP1O.js +0 -1
  264. package/dist/web/server/assets/AgentTabs-DVVkxBks.js +0 -49
  265. package/dist/web/server/assets/ChatPane-3CIVTz7o.js +0 -2954
  266. package/dist/web/server/assets/ConfigPage-J3s_PX4o.js +0 -69
  267. package/dist/web/server/assets/ConfirmDialog-C-2cbcmQ.js +0 -99
  268. package/dist/web/server/assets/ProductionTeamPolicyEditor-DNtdMn2a.js +0 -1026
  269. package/dist/web/server/assets/ProfileCommunicationEditor-C2RU-2QB.js +0 -107
  270. package/dist/web/server/assets/RecoveryState-DFPWxMIo.js +0 -37
  271. package/dist/web/server/assets/ResultCard-BtVFqdRU.js +0 -162
  272. package/dist/web/server/assets/ResultSourceConversation-DwuGuTa-.js +0 -64
  273. package/dist/web/server/assets/SectionTabs-DQWPEk1x.js +0 -8
  274. package/dist/web/server/assets/Sidebar-Dk9bErQV.js +0 -1243
  275. package/dist/web/server/assets/TeamTabs-XybMRm3w.js +0 -59
  276. package/dist/web/server/assets/TemplatesTabs-BiJt7Fjx.js +0 -31
  277. package/dist/web/server/assets/WorkspaceRecoveryCard-B-6gfg0D.js +0 -18
  278. package/dist/web/server/assets/_id-6aGxCNlp.js +0 -37
  279. package/dist/web/server/assets/_id-BJeSZ4DF.js +0 -11
  280. package/dist/web/server/assets/_id-BS4MnPa3.js +0 -18
  281. package/dist/web/server/assets/_id-BSkg6FJC.js +0 -45
  282. package/dist/web/server/assets/_id-BXOT74Jd.js +0 -900
  283. package/dist/web/server/assets/_id-BfT3umhN.js +0 -14
  284. package/dist/web/server/assets/_id-Bk4SHXs4.js +0 -626
  285. package/dist/web/server/assets/_id-C0C6wOt8.js +0 -42
  286. package/dist/web/server/assets/_id-C1-ygfez.js +0 -1183
  287. package/dist/web/server/assets/_id-CAxK6pln.js +0 -6
  288. package/dist/web/server/assets/_id-CI33J2xv.js +0 -11
  289. package/dist/web/server/assets/_id-CWlZT9kI.js +0 -26
  290. package/dist/web/server/assets/_id-C_FnWQ61.js +0 -11
  291. package/dist/web/server/assets/_id-CmS2d0me.js +0 -17
  292. package/dist/web/server/assets/_id-D9VWEfdp.js +0 -28
  293. package/dist/web/server/assets/_tanstack-start-manifest_v-LR-ldomm.js +0 -376
  294. package/dist/web/server/assets/activity-BKb_BIx7.js +0 -168
  295. package/dist/web/server/assets/activity-CDNYyLBC.js +0 -11
  296. package/dist/web/server/assets/activity-DhzxlXUk.js +0 -12
  297. package/dist/web/server/assets/activity-lf7L7wiL.js +0 -14
  298. package/dist/web/server/assets/agents-BzJDqrC8.js +0 -11
  299. package/dist/web/server/assets/agents-C65TunMF.js +0 -505
  300. package/dist/web/server/assets/agents-uXBu1F5L.js +0 -387
  301. package/dist/web/server/assets/approvals-CcU_pIWW.js +0 -11
  302. package/dist/web/server/assets/approvals-CpDs6ASO.js +0 -14
  303. package/dist/web/server/assets/approvals-FyuTjfdY.js +0 -332
  304. package/dist/web/server/assets/approvals-szknIxB6.js +0 -12
  305. package/dist/web/server/assets/attention-BeA3zGve.js +0 -268
  306. package/dist/web/server/assets/attention-jtJ9PIMp.js +0 -11
  307. package/dist/web/server/assets/browser-BiDvr0fy.js +0 -66
  308. package/dist/web/server/assets/context-DuxjdpaW.js +0 -11
  309. package/dist/web/server/assets/daemon-client-C-RlJHYO.js +0 -301
  310. package/dist/web/server/assets/git-review-BB3M9nYg.js +0 -26
  311. package/dist/web/server/assets/git-review-CqZTrIWS.js +0 -179
  312. package/dist/web/server/assets/git-review-presentation-TJiHJhen.js +0 -81
  313. package/dist/web/server/assets/inbox-Be3CUU4o.js +0 -11
  314. package/dist/web/server/assets/inbox-D1ROE7jB.js +0 -44
  315. package/dist/web/server/assets/inbox-DsH5oRK0.js +0 -168
  316. package/dist/web/server/assets/inbox-qKMkeprB.js +0 -29
  317. package/dist/web/server/assets/learning-BYCwIOzZ.js +0 -18
  318. package/dist/web/server/assets/learning-C3pqLE5b.js +0 -11
  319. package/dist/web/server/assets/learning-D7jWRhqD.js +0 -365
  320. package/dist/web/server/assets/mcp-BQ4KvXp1.js +0 -11
  321. package/dist/web/server/assets/mcp-DmzP8n2G.js +0 -328
  322. package/dist/web/server/assets/members-8aWhtn4G.js +0 -100
  323. package/dist/web/server/assets/members-Cjpysp35.js +0 -14
  324. package/dist/web/server/assets/members-DWedYCMh.js +0 -11
  325. package/dist/web/server/assets/memory-BH7L-l65.js +0 -11
  326. package/dist/web/server/assets/memory-Bq0s1fr7.js +0 -18
  327. package/dist/web/server/assets/memory-CS-9Bb6q.js +0 -28
  328. package/dist/web/server/assets/memory-DN5iMDQL.js +0 -389
  329. package/dist/web/server/assets/policy-CK3VuVuv.js +0 -11
  330. package/dist/web/server/assets/policy-DDi8AjcD.js +0 -21
  331. package/dist/web/server/assets/policy-DcYIJaHW.js +0 -490
  332. package/dist/web/server/assets/policy-JF7ZI2-i.js +0 -40
  333. package/dist/web/server/assets/public-origin-xV0lm0Ty.js +0 -25
  334. package/dist/web/server/assets/publications-DV2uRrvJ.js +0 -57
  335. package/dist/web/server/assets/results-C6edENBF.js +0 -362
  336. package/dist/web/server/assets/results-DjTerNLY.js +0 -14
  337. package/dist/web/server/assets/results-DlOsdBE7.js +0 -11
  338. package/dist/web/server/assets/results-vtkmZPro.js +0 -12
  339. package/dist/web/server/assets/review-BG71IaCa.js +0 -1061
  340. package/dist/web/server/assets/review-Bs6AbrSn.js +0 -40
  341. package/dist/web/server/assets/review-CPmUi4PR.js +0 -11
  342. package/dist/web/server/assets/review-packets-CO69K-FK.js +0 -172
  343. package/dist/web/server/assets/router-Doy5hj6V.js +0 -921
  344. package/dist/web/server/assets/routes-B6TnJyQ8.js +0 -57
  345. package/dist/web/server/assets/routes-ByEYvEFv.js +0 -53
  346. package/dist/web/server/assets/routes-Bz-Gprcp.js +0 -14
  347. package/dist/web/server/assets/services-Ba6tFlZz.js +0 -16
  348. package/dist/web/server/assets/skills-CGvPejPD.js +0 -11
  349. package/dist/web/server/assets/skills-cVlLDnvf.js +0 -399
  350. package/dist/web/server/assets/start-D4Wq9iTa.js +0 -70
  351. package/dist/web/server/assets/team-policy-vPG01onj.js +0 -180
  352. package/dist/web/server/assets/teams-6c5B9wnI.js +0 -11
  353. package/dist/web/server/assets/teams-BEIUG9fI.js +0 -112
  354. package/dist/web/server/assets/teams-Bi3CeEM5.js +0 -11
  355. package/dist/web/server/assets/teams-C9tfV3IC.js +0 -12
  356. package/dist/web/server/assets/teams-DKROLgw-.js +0 -36
  357. package/dist/web/server/assets/teams-DLt48Vxw.js +0 -284
  358. package/dist/web/server/assets/teams-DuhXk1M5.js +0 -14
  359. package/dist/web/server/assets/templates-CuqFhsiO.js +0 -11
  360. package/dist/web/server/assets/tokens-DDJYBy6R.js +0 -16
  361. package/dist/web/server/assets/tokens-qVijmBxr.js +0 -11
  362. package/dist/web/server/assets/tokens-zSK57Trr.js +0 -452
  363. package/dist/web/server/assets/triggers-B9CIl4Co.js +0 -27
  364. package/dist/web/server/assets/triggers-Cr9af7Xw.js +0 -367
  365. package/dist/web/server/assets/triggers-DIruOyMb.js +0 -18
  366. package/dist/web/server/assets/triggers-x_OA9u5f.js +0 -11
  367. package/dist/web/server/assets/utils-ySbqTi3g.js +0 -24
  368. package/dist/web/server/assets/verification-DBsJYadO.js +0 -97
  369. package/dist/web/server/assets/verifications-BVR0OK7x.js +0 -323
  370. package/dist/web/server/assets/verifications-DjZsx65b.js +0 -12
  371. package/dist/web/server/assets/verifications-EIw3Xh61.js +0 -28
  372. package/dist/web/server/assets/web-search-dgw10fLn.js +0 -12
  373. package/dist/web/server/assets/wire-constants-C8nBJcU3.js +0 -16
  374. /package/{LICENSE → dist/LICENSE} +0 -0
  375. /package/dist/web/client/assets/{ProductionTeamPolicyEditor-DLioOiRN.css → TeamPolicyEditor-DLioOiRN.css} +0 -0
@@ -1,900 +0,0 @@
1
- import { n as createServerFn } from "../server.js";
2
- import { a as workspaceRecoveryExplanation, i as WORKSPACE_RECOVERY_OUTCOME_TEXT } from "./daemon-client-C-RlJHYO.js";
3
- import { n as Button } from "./utils-ySbqTi3g.js";
4
- import { a as StatusBadge, i as SectionCard, r as PageShell } from "./Page-DJNoI4Gn.js";
5
- import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
6
- import { t as Route } from "./_id-BS4MnPa3.js";
7
- import { t as TeamTabs } from "./TeamTabs-XybMRm3w.js";
8
- import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-BfSyMhiD.js";
9
- import { useEffect, useRef, useState } from "react";
10
- import { useRouter } from "@tanstack/react-router";
11
- import { jsx, jsxs } from "react/jsx-runtime";
12
- //#region src/components/WorkspaceRecoveryCard.tsx
13
- var readRecovery = createServerFn({ method: "POST" }).validator((data) => data).handler(createSsrRpc("9f23b9b4ea534d187b98bfcb5a75272bf9c7ae319766ff93172d6d9ee3113452"));
14
- var attemptRecovery = createServerFn({ method: "POST" }).validator((data) => data).handler(createSsrRpc("1e7cbf76e28bcfd2222b105da85935e198ace00a583d3ffc1f4955aaa5ff37cb"));
15
- function WorkspaceRecoveryCard({ teamId }) {
16
- const generation = useRef(0);
17
- const selectedTeam = useRef(teamId);
18
- selectedTeam.current = teamId;
19
- const [report, setReport] = useState(null);
20
- const [outcome, setOutcome] = useState(null);
21
- const [busy, setBusy] = useState(false);
22
- const [error, setError] = useState(false);
23
- useEffect(() => {
24
- const epoch = ++generation.current;
25
- setBusy(false);
26
- setReport(null);
27
- setOutcome(null);
28
- setError(false);
29
- readRecovery({ data: { teamId } }).then((value) => {
30
- if (generation.current === epoch) setReport(value);
31
- }).catch(() => {
32
- if (generation.current === epoch) setError(true);
33
- });
34
- return () => {
35
- generation.current += 1;
36
- };
37
- }, [teamId]);
38
- async function refresh() {
39
- if (busy) return;
40
- const epoch = ++generation.current;
41
- const current = () => epoch === generation.current && selectedTeam.current === teamId;
42
- setBusy(true);
43
- setError(false);
44
- setOutcome(null);
45
- try {
46
- const value = await readRecovery({ data: { teamId } });
47
- if (current()) setReport(value);
48
- } catch {
49
- if (current()) setError(true);
50
- } finally {
51
- if (current()) setBusy(false);
52
- }
53
- }
54
- async function attempt(writerId) {
55
- if (busy) return;
56
- const epoch = ++generation.current;
57
- const current = () => epoch === generation.current && selectedTeam.current === teamId;
58
- setBusy(true);
59
- setError(false);
60
- setOutcome(null);
61
- try {
62
- const result = await attemptRecovery({ data: {
63
- teamId,
64
- writerId
65
- } });
66
- if (current()) {
67
- setReport(result.report);
68
- setOutcome(result.outcome);
69
- }
70
- } catch {
71
- if (current()) setError(true);
72
- } finally {
73
- if (current()) setBusy(false);
74
- }
75
- }
76
- return /* @__PURE__ */ jsxs("section", {
77
- className: "my-4 space-y-3",
78
- "aria-label": "Workspace recovery",
79
- children: [
80
- /* @__PURE__ */ jsxs("div", {
81
- className: "flex items-center justify-between gap-3",
82
- children: [/* @__PURE__ */ jsx("h3", {
83
- className: "font-semibold",
84
- children: "Workspace recovery"
85
- }), /* @__PURE__ */ jsx(Button, {
86
- variant: "ghost",
87
- disabled: busy,
88
- onClick: refresh,
89
- children: "Refresh status"
90
- })]
91
- }),
92
- /* @__PURE__ */ jsx("p", {
93
- className: "text-sm text-muted-foreground",
94
- children: "Owner-only recorded cleanup. Unknown or restored ownership stays blocked; there is no force-clear. Recovery of unconfirmed host-command cleanup is not supported in this release."
95
- }),
96
- error && /* @__PURE__ */ jsx("p", {
97
- role: "alert",
98
- children: "Recovery status unavailable. No cleanup confirmation."
99
- }),
100
- outcome && /* @__PURE__ */ jsx("p", {
101
- role: "status",
102
- children: WORKSPACE_RECOVERY_OUTCOME_TEXT[outcome]
103
- }),
104
- report && report.writers.length === 0 && /* @__PURE__ */ jsx("p", { children: "No recorded writers. This is not a workspace verification." }),
105
- report?.truncated && /* @__PURE__ */ jsx("p", { children: "Report truncated." }),
106
- report?.writers.map((writer) => /* @__PURE__ */ jsxs("div", {
107
- className: "space-y-2 rounded border p-3",
108
- children: [/* @__PURE__ */ jsxs("div", {
109
- className: "flex items-center gap-3 flex-wrap",
110
- children: [
111
- /* @__PURE__ */ jsx("code", { children: writer.writerId }),
112
- /* @__PURE__ */ jsx("span", { children: writer.posture }),
113
- /* @__PURE__ */ jsx(Button, {
114
- variant: "ghost",
115
- disabled: busy || writer.posture !== "recovery_required" || !!writer.blocker,
116
- onClick: () => attempt(writer.writerId),
117
- children: "Attempt recorded cleanup"
118
- })
119
- ]
120
- }), /* @__PURE__ */ jsx("p", {
121
- className: "text-sm",
122
- children: workspaceRecoveryExplanation(writer)
123
- })]
124
- }, writer.writerId))
125
- ]
126
- });
127
- }
128
- //#endregion
129
- //#region src/components/CodingDefaultsCard.tsx
130
- function CodingDefaultsCard({ teamId }) {
131
- const [status, setStatus] = useState(null);
132
- const [image, setImage] = useState("");
133
- const [cwd, setCwd] = useState(".");
134
- const [error, setError] = useState("");
135
- const [busy, setBusy] = useState(false);
136
- const url = `/api/teams/${encodeURIComponent(teamId)}/coding-environment`;
137
- useEffect(() => {
138
- let active = true;
139
- fetch(url).then(async (r) => {
140
- if (!r.ok) throw new Error("Defaults unavailable");
141
- return r.json();
142
- }).then((s) => {
143
- if (active) {
144
- setStatus(s);
145
- setImage(s.environment?.config.image ?? s.image);
146
- setCwd(s.environment?.config.cwd ?? ".");
147
- }
148
- }).catch((e) => {
149
- if (active) setError(e.message);
150
- });
151
- return () => {
152
- active = false;
153
- };
154
- }, [url]);
155
- return /* @__PURE__ */ jsxs("details", {
156
- className: "border-t mt-4 pt-4",
157
- children: [
158
- /* @__PURE__ */ jsx("summary", {
159
- className: "cursor-pointer text-sm",
160
- children: "Optional protected runtime defaults"
161
- }),
162
- /* @__PURE__ */ jsx("p", {
163
- className: "text-sm text-muted-foreground my-3",
164
- children: "Agents discover commands during the task. Override the installation image only if this repository needs a different prepared toolchain. Host turns do not use these Docker defaults."
165
- }),
166
- error && /* @__PURE__ */ jsx("p", {
167
- role: "alert",
168
- children: error
169
- }),
170
- status && /* @__PURE__ */ jsxs("form", {
171
- className: "space-y-3",
172
- onSubmit: async (e) => {
173
- e.preventDefault();
174
- setBusy(true);
175
- setError("");
176
- try {
177
- const r = await fetch(url, {
178
- method: "PUT",
179
- headers: { "Content-Type": "application/json" },
180
- body: JSON.stringify({
181
- expectedRevision: status.environment?.revision ?? 0,
182
- config: {
183
- image,
184
- cwd,
185
- env: status.environment?.config.env ?? {}
186
- }
187
- })
188
- });
189
- const value = await r.json();
190
- if (!r.ok) throw new Error(value.error);
191
- setStatus({
192
- ...status,
193
- environment: value,
194
- image
195
- });
196
- } catch (e) {
197
- setError(e instanceof Error ? e.message : "Save failed");
198
- } finally {
199
- setBusy(false);
200
- }
201
- },
202
- children: [
203
- /* @__PURE__ */ jsxs("label", {
204
- className: "block text-sm",
205
- children: ["Local Docker image", /* @__PURE__ */ jsx("input", {
206
- required: true,
207
- value: image,
208
- onChange: (e) => setImage(e.target.value),
209
- className: "block w-full rounded border p-2 mt-1"
210
- })]
211
- }),
212
- /* @__PURE__ */ jsxs("label", {
213
- className: "block text-sm",
214
- children: ["Default directory", /* @__PURE__ */ jsx("input", {
215
- required: true,
216
- value: cwd,
217
- onChange: (e) => setCwd(e.target.value),
218
- className: "block w-full rounded border p-2 mt-1"
219
- })]
220
- }),
221
- /* @__PURE__ */ jsx(Button, {
222
- type: "submit",
223
- variant: "primary",
224
- disabled: busy,
225
- children: busy ? "Saving…" : "Save defaults"
226
- })
227
- ]
228
- })
229
- ]
230
- });
231
- }
232
- //#endregion
233
- //#region src/components/RepositoryContextCard.tsx
234
- function RepositoryContextCard({ teamId }) {
235
- const [target, setTarget] = useState("");
236
- const [capture, setCapture] = useState(null);
237
- const [busy, setBusy] = useState(false);
238
- const [error, setError] = useState(null);
239
- const request = useRef(0);
240
- const report = capture?.report;
241
- const issues = report ? [...new Map([
242
- ...report.instructions.issues,
243
- ...report.commands.issues,
244
- ...report.git.issues
245
- ].map((issue) => [JSON.stringify([issue.path, issue.message]), issue])).values()] : [];
246
- async function inspect() {
247
- const current = ++request.current;
248
- const requestedTarget = target || ".";
249
- setBusy(true);
250
- setError(null);
251
- try {
252
- const response = await fetch(`/api/teams/${encodeURIComponent(teamId)}/repository-context?target=${encodeURIComponent(requestedTarget)}`, { cache: "no-store" });
253
- if (!response.ok) throw new Error("Repository context could not be loaded. Refresh to try again.");
254
- const data = await response.json();
255
- if (request.current === current) setCapture({
256
- report: data,
257
- target: requestedTarget
258
- });
259
- } catch (err) {
260
- if (request.current === current) setError(err instanceof Error ? err.message : "Inspection failed");
261
- } finally {
262
- if (request.current === current) setBusy(false);
263
- }
264
- }
265
- useEffect(() => {
266
- inspect();
267
- return () => {
268
- request.current++;
269
- };
270
- }, [teamId]);
271
- return /* @__PURE__ */ jsxs("section", {
272
- className: "min-w-0",
273
- "aria-labelledby": "repository-context-heading",
274
- children: [
275
- /* @__PURE__ */ jsx("h2", {
276
- id: "repository-context-heading",
277
- className: "font-serif text-xl mb-1",
278
- children: "Explore the repository"
279
- }),
280
- /* @__PURE__ */ jsx("p", {
281
- className: "text-muted-foreground text-sm mb-3",
282
- children: "See the instructions and commands for the part of the project you’re working on."
283
- }),
284
- /* @__PURE__ */ jsxs("form", {
285
- onSubmit: (event) => {
286
- event.preventDefault();
287
- inspect();
288
- },
289
- className: "flex flex-wrap gap-2 items-end mb-3",
290
- children: [/* @__PURE__ */ jsxs("label", {
291
- className: "flex-1 min-w-[12rem] m-0 text-sm",
292
- children: ["Project path", /* @__PURE__ */ jsx("input", {
293
- value: target,
294
- onChange: (event) => setTarget(event.target.value),
295
- placeholder: ". (Team root)",
296
- maxLength: 4096,
297
- className: "mt-1 block w-full rounded-md border bg-background px-3 py-2 font-mono text-sm"
298
- })]
299
- }), /* @__PURE__ */ jsx(Button, {
300
- type: "submit",
301
- variant: "primary",
302
- disabled: busy,
303
- children: busy ? "Inspecting…" : report ? "Refresh context" : "Inspect repository"
304
- })]
305
- }),
306
- error && /* @__PURE__ */ jsxs("p", {
307
- role: "alert",
308
- className: "text-sm text-danger mb-3",
309
- children: [
310
- error,
311
- " ",
312
- report ? "The report below is the previous capture." : ""
313
- ]
314
- }),
315
- report && capture && /* @__PURE__ */ jsxs("div", {
316
- className: "space-y-3 text-sm min-w-0",
317
- "aria-live": "polite",
318
- children: [
319
- /* @__PURE__ */ jsxs("p", {
320
- className: "text-xs text-muted-foreground break-words",
321
- children: [
322
- /* @__PURE__ */ jsx("code", { children: capture.target === "." ? "Team root" : capture.target }),
323
- " · Inspected",
324
- " ",
325
- /* @__PURE__ */ jsx("time", {
326
- dateTime: new Date(report.capturedAt).toISOString(),
327
- children: new Date(report.capturedAt).toLocaleString()
328
- }),
329
- ". Read-only inspection."
330
- ]
331
- }),
332
- issues.length > 0 && /* @__PURE__ */ jsxs("div", {
333
- role: "status",
334
- className: "border-l-2 border-primary bg-muted/40 px-3 py-2",
335
- children: [/* @__PURE__ */ jsx("h3", {
336
- className: "font-sans text-sm font-semibold",
337
- children: "Some context is unavailable"
338
- }), /* @__PURE__ */ jsx("ul", {
339
- className: "mt-1 space-y-1",
340
- children: issues.map((issue, index) => /* @__PURE__ */ jsxs("li", {
341
- className: "break-words",
342
- children: [issue.path ? `${issue.path}: ` : "", issue.message]
343
- }, index))
344
- })]
345
- }),
346
- /* @__PURE__ */ jsxs("div", {
347
- className: "rounded-md bg-muted/40 px-3 py-2",
348
- children: [/* @__PURE__ */ jsxs("div", {
349
- className: "flex flex-wrap items-baseline gap-x-3 gap-y-1",
350
- children: [/* @__PURE__ */ jsx("h3", {
351
- className: "font-sans text-sm font-semibold",
352
- children: report.git.state === "available" ? "Working tree" : report.git.state === "not_repository" ? "No Git repository" : "Git unavailable"
353
- }), report.git.state === "available" && /* @__PURE__ */ jsxs("p", {
354
- className: "min-w-0 break-all",
355
- children: [/* @__PURE__ */ jsx("span", {
356
- className: "font-mono",
357
- children: report.git.branch ?? "Detached HEAD"
358
- }), /* @__PURE__ */ jsxs("span", {
359
- className: "text-muted-foreground",
360
- children: [
361
- " ",
362
- "· ",
363
- report.git.head?.slice(0, 8) ?? "No commits yet"
364
- ]
365
- })]
366
- })]
367
- }), report.git.state === "available" && /* @__PURE__ */ jsxs("p", {
368
- className: "text-xs text-muted-foreground mt-1",
369
- children: [
370
- report.git.staged,
371
- " staged · ",
372
- report.git.unstaged,
373
- " unstaged · ",
374
- report.git.untracked,
375
- " ",
376
- "untracked · ",
377
- report.git.conflicted,
378
- " conflicted"
379
- ]
380
- })]
381
- }),
382
- /* @__PURE__ */ jsxs("div", { children: [
383
- /* @__PURE__ */ jsxs("h3", {
384
- className: "font-sans text-sm font-semibold",
385
- children: [
386
- "Instructions",
387
- " ",
388
- /* @__PURE__ */ jsxs("span", {
389
- className: "font-normal text-muted-foreground",
390
- children: [
391
- "· ",
392
- report.instructions.files.length,
393
- " files",
394
- report.instructions.state !== "complete" ? " · incomplete" : ""
395
- ]
396
- })
397
- ]
398
- }),
399
- /* @__PURE__ */ jsx("p", {
400
- className: "text-xs text-muted-foreground mt-1",
401
- children: "Listed from broadest to most specific. Operator instructions and runtime policy take priority."
402
- }),
403
- report.instructions.files.length === 0 && /* @__PURE__ */ jsx("p", {
404
- className: "mt-2 text-muted-foreground",
405
- children: report.instructions.state === "complete" ? "No applicable AGENTS.md files found." : "Instructions for this scope could not be prepared."
406
- }),
407
- /* @__PURE__ */ jsx("div", {
408
- className: "mt-2 divide-y",
409
- children: report.instructions.files.map((file) => /* @__PURE__ */ jsxs("details", {
410
- className: "py-2 min-w-0",
411
- children: [/* @__PURE__ */ jsx("summary", {
412
- className: "cursor-pointer break-words font-mono text-sm",
413
- children: file.path
414
- }), /* @__PURE__ */ jsx("pre", {
415
- className: "mt-2 rounded-md bg-muted/40 p-3 whitespace-pre-wrap break-words text-xs max-h-80 overflow-auto",
416
- children: file.content
417
- })]
418
- }, file.path))
419
- })
420
- ] }),
421
- /* @__PURE__ */ jsxs("div", {
422
- className: "border-t pt-3",
423
- children: [
424
- /* @__PURE__ */ jsx("h3", {
425
- className: "font-sans text-sm font-semibold",
426
- children: "Suggested commands"
427
- }),
428
- /* @__PURE__ */ jsx("p", {
429
- className: "text-xs text-muted-foreground mt-1",
430
- children: "Source suggestions for Agent investigation; inspection never executes commands."
431
- }),
432
- report.commands.candidates.length === 0 && /* @__PURE__ */ jsx("p", {
433
- className: "mt-2 text-muted-foreground",
434
- children: "No command suggestions available for this scope."
435
- }),
436
- /* @__PURE__ */ jsx("ul", {
437
- className: "mt-1 divide-y",
438
- children: report.commands.candidates.map((candidate, index) => /* @__PURE__ */ jsxs("li", {
439
- className: "py-2 min-w-0",
440
- children: [/* @__PURE__ */ jsx("div", {
441
- className: "flex flex-wrap items-center justify-between gap-2",
442
- children: /* @__PURE__ */ jsx("code", {
443
- className: "block bg-transparent p-0 whitespace-pre-wrap break-words min-w-0",
444
- children: candidate.command
445
- })
446
- }), /* @__PURE__ */ jsxs("p", {
447
- className: "text-xs text-muted-foreground mt-1 break-words",
448
- children: [
449
- candidate.source,
450
- " · ",
451
- candidate.location,
452
- " · cwd ",
453
- candidate.cwd,
454
- candidate.kind === "script" ? ` · ${candidate.packageManager ?? "package manager unknown"}` : " · documentation excerpt"
455
- ]
456
- })]
457
- }, `${candidate.source}:${index}`))
458
- })
459
- ]
460
- }),
461
- /* @__PURE__ */ jsxs("details", {
462
- className: "border-t pt-3 text-xs text-muted-foreground",
463
- children: [/* @__PURE__ */ jsx("summary", {
464
- className: "cursor-pointer",
465
- children: "Source details and fingerprints"
466
- }), /* @__PURE__ */ jsxs("div", {
467
- className: "mt-2 space-y-2",
468
- children: [
469
- /* @__PURE__ */ jsx("p", { children: "Deeper repository instructions apply within their own subtree. Private Agent instructions are managed on each Agent." }),
470
- /* @__PURE__ */ jsxs("p", {
471
- className: "break-all",
472
- children: ["Snapshot SHA-256: ", report.fingerprint]
473
- }),
474
- report.git.head && /* @__PURE__ */ jsxs("p", {
475
- className: "break-all",
476
- children: ["Git commit: ", report.git.head]
477
- }),
478
- report.instructions.files.map((file) => /* @__PURE__ */ jsxs("p", {
479
- className: "break-all",
480
- children: [
481
- /* @__PURE__ */ jsx("span", {
482
- className: "font-mono",
483
- children: file.path
484
- }),
485
- " · Scope: ",
486
- file.scope,
487
- " · Precedence:",
488
- " ",
489
- file.precedence,
490
- /* @__PURE__ */ jsx("br", {}),
491
- "SHA-256: ",
492
- file.sha256
493
- ]
494
- }, file.path)),
495
- report.commands.sources.map((source) => /* @__PURE__ */ jsxs("p", {
496
- className: "break-all",
497
- children: [
498
- /* @__PURE__ */ jsx("span", {
499
- className: "font-mono",
500
- children: source.path
501
- }),
502
- /* @__PURE__ */ jsx("br", {}),
503
- "SHA-256: ",
504
- source.sha256
505
- ]
506
- }, source.path))
507
- ]
508
- })]
509
- })
510
- ]
511
- })
512
- ]
513
- });
514
- }
515
- //#endregion
516
- //#region src/routes/teams/$id/index.tsx?tsr-split=component
517
- function TeamDetailPage() {
518
- const { team, members, profileGroups } = Route.useLoaderData();
519
- const router = useRouter();
520
- const [userMd, setUserMd] = useState(team.userMd);
521
- const [busy, setBusy] = useState(false);
522
- const [err, setErr] = useState(null);
523
- const [savedAt, setSavedAt] = useState(null);
524
- const [topicDirty, setTopicDirty] = useState(false);
525
- const contextDirty = userMd !== team.userMd || topicDirty;
526
- async function save() {
527
- setBusy(true);
528
- setErr(null);
529
- try {
530
- const res = await fetch(`/api/teams/${encodeURIComponent(team.id)}/user-md`, {
531
- method: "PUT",
532
- headers: { "content-type": "application/json" },
533
- body: JSON.stringify({ userMd })
534
- });
535
- if (!res.ok) {
536
- const e = await res.json().catch(() => ({}));
537
- throw new Error(e.error ?? `${res.status} ${res.statusText}`);
538
- }
539
- setSavedAt(Date.now());
540
- await router.invalidate();
541
- } catch (e) {
542
- setErr(e.message);
543
- } finally {
544
- setBusy(false);
545
- }
546
- }
547
- return /* @__PURE__ */ jsxs(PageShell, { children: [
548
- /* @__PURE__ */ jsx(UnsavedChangesGuard, {
549
- when: contextDirty,
550
- subject: "Team context"
551
- }),
552
- /* @__PURE__ */ jsxs("h1", {
553
- className: "font-serif text-3xl text-foreground",
554
- children: [
555
- team.name,
556
- " ",
557
- /* @__PURE__ */ jsxs("span", {
558
- className: "text-muted-foreground text-base",
559
- children: [
560
- "(",
561
- team.id,
562
- ")"
563
- ]
564
- })
565
- ]
566
- }),
567
- /* @__PURE__ */ jsxs("p", {
568
- className: "text-muted-foreground text-sm mb-6 mt-1",
569
- children: [
570
- /* @__PURE__ */ jsx("code", {
571
- className: "font-mono",
572
- children: team.path
573
- }),
574
- " · ",
575
- members.length,
576
- " ",
577
- "member",
578
- members.length === 1 ? "" : "s",
579
- " ·",
580
- " ",
581
- /* @__PURE__ */ jsx("a", {
582
- href: `/teams/${encodeURIComponent(team.id)}/memory`,
583
- className: "text-primary underline",
584
- children: "shared memory →"
585
- })
586
- ]
587
- }),
588
- /* @__PURE__ */ jsx(TeamTabs, { teamId: team.id }),
589
- /* @__PURE__ */ jsxs("section", {
590
- className: "rounded-lg border bg-card p-5 mb-6",
591
- children: [
592
- /* @__PURE__ */ jsx("h3", {
593
- className: "font-serif text-xl mb-1",
594
- children: "USER.md"
595
- }),
596
- /* @__PURE__ */ jsx("p", {
597
- className: "text-muted-foreground text-sm mb-3",
598
- children: "Read-only context about the human, injected into every member agent's system prompt. 12 KB cap. Agents cannot edit this file — only you can."
599
- }),
600
- /* @__PURE__ */ jsx("label", {
601
- htmlFor: "team-user-context",
602
- className: "sr-only",
603
- children: "USER.md Team context"
604
- }),
605
- /* @__PURE__ */ jsx("textarea", {
606
- id: "team-user-context",
607
- value: userMd,
608
- onChange: (e) => setUserMd(e.target.value),
609
- rows: 16,
610
- className: "w-full rounded-md border bg-background px-3 py-2 font-mono text-sm outline-none focus:ring-2 focus:ring-ring/30",
611
- placeholder: "What the agent should know about you in this team context…"
612
- }),
613
- /* @__PURE__ */ jsxs("div", {
614
- className: "flex items-center gap-3 mt-3",
615
- children: [
616
- /* @__PURE__ */ jsx(Button, {
617
- variant: "primary",
618
- onClick: save,
619
- disabled: busy || userMd === team.userMd,
620
- children: busy ? "saving…" : "save"
621
- }),
622
- /* @__PURE__ */ jsxs("span", {
623
- className: "text-xs text-muted-foreground",
624
- children: [userMd.length, " / 12000 chars"]
625
- }),
626
- savedAt && /* @__PURE__ */ jsx("span", {
627
- role: "status",
628
- className: "text-xs text-success",
629
- children: "Saved"
630
- }),
631
- err && /* @__PURE__ */ jsx("span", {
632
- role: "alert",
633
- className: "text-xs text-danger",
634
- children: err
635
- })
636
- ]
637
- })
638
- ]
639
- }),
640
- /* @__PURE__ */ jsx(WorkspaceRecoveryCard, { teamId: team.id }, team.id),
641
- /* @__PURE__ */ jsxs("details", {
642
- className: "mb-6 rounded-lg border bg-card p-4",
643
- children: [
644
- /* @__PURE__ */ jsx("summary", {
645
- className: "cursor-pointer text-sm",
646
- children: "Advanced repository diagnostics"
647
- }),
648
- /* @__PURE__ */ jsx(RepositoryContextCard, { teamId: team.id }, team.id),
649
- /* @__PURE__ */ jsx(CodingDefaultsCard, { teamId: team.id })
650
- ]
651
- }),
652
- /* @__PURE__ */ jsx(TopicNameFormatCard, {
653
- team,
654
- sampleAgent: members[0]?.name ?? "researcher",
655
- onSaved: () => router.invalidate(),
656
- onDirtyChange: setTopicDirty
657
- }),
658
- members.length === 0 && /* @__PURE__ */ jsx(SpawnFromTemplateCard, {
659
- teamId: team.id,
660
- profileGroups,
661
- onSpawned: () => router.invalidate()
662
- }),
663
- /* @__PURE__ */ jsx(SectionCard, {
664
- title: "Roster",
665
- description: "Live Team membership has one canonical management view.",
666
- actions: /* @__PURE__ */ jsxs(StatusBadge, {
667
- variant: members.length > 0 ? "success" : "neutral",
668
- children: [
669
- members.length,
670
- " member",
671
- members.length === 1 ? "" : "s"
672
- ]
673
- }),
674
- children: /* @__PURE__ */ jsx("a", {
675
- href: `/teams/${encodeURIComponent(team.id)}/members`,
676
- className: "ghost-btn",
677
- children: "Manage Team members"
678
- })
679
- })
680
- ] });
681
- }
682
- function TopicNameFormatCard({ team, sampleAgent, onSaved, onDirtyChange }) {
683
- const [format, setFormat] = useState(team.telegramTopicNameFormat ?? "");
684
- const [busy, setBusy] = useState(false);
685
- const [err, setErr] = useState(null);
686
- const [savedAt, setSavedAt] = useState(null);
687
- const trimmed = format.trim();
688
- const preview = trimmed ? trimmed.replaceAll("{agent.name}", sampleAgent).replaceAll("{team.name}", team.name).replaceAll("{team.slug}", team.id) : team.id === "default" ? sampleAgent : `${team.id} › ${sampleAgent}`;
689
- const dirty = (team.telegramTopicNameFormat ?? "") !== format;
690
- useEffect(() => {
691
- onDirtyChange(dirty);
692
- return () => onDirtyChange(false);
693
- }, [dirty, onDirtyChange]);
694
- async function save(clear) {
695
- setBusy(true);
696
- setErr(null);
697
- try {
698
- const res = await fetch(`/api/teams/${encodeURIComponent(team.id)}/topic-format`, {
699
- method: "PUT",
700
- headers: { "content-type": "application/json" },
701
- body: JSON.stringify({ format: clear ? null : format })
702
- });
703
- if (!res.ok) {
704
- const e = await res.json().catch(() => ({}));
705
- throw new Error(e.error ?? `${res.status} ${res.statusText}`);
706
- }
707
- if (clear) setFormat("");
708
- setSavedAt(Date.now());
709
- onSaved();
710
- } catch (e) {
711
- setErr(e.message);
712
- } finally {
713
- setBusy(false);
714
- }
715
- }
716
- return /* @__PURE__ */ jsxs("section", {
717
- className: "rounded-lg border bg-card p-5 mb-6",
718
- children: [
719
- /* @__PURE__ */ jsx("h3", {
720
- className: "font-serif text-xl mb-1",
721
- children: "Telegram topic names"
722
- }),
723
- /* @__PURE__ */ jsxs("p", {
724
- className: "text-muted-foreground text-sm mb-3",
725
- children: [
726
- "Template for this team's Telegram forum-topic titles. Leave empty for built-in naming. Tokens: ",
727
- /* @__PURE__ */ jsx("code", {
728
- className: "font-mono",
729
- children: "{agent.name}"
730
- }),
731
- " ",
732
- /* @__PURE__ */ jsx("code", {
733
- className: "font-mono",
734
- children: "{team.name}"
735
- }),
736
- " ",
737
- /* @__PURE__ */ jsx("code", {
738
- className: "font-mono",
739
- children: "{team.slug}"
740
- }),
741
- " — must include",
742
- " ",
743
- /* @__PURE__ */ jsx("code", {
744
- className: "font-mono",
745
- children: "{agent.name}"
746
- }),
747
- ". Saving renames existing topics that you haven't manually renamed in Telegram."
748
- ]
749
- }),
750
- /* @__PURE__ */ jsx("label", {
751
- htmlFor: "team-telegram-topic-format",
752
- className: "sr-only",
753
- children: "Telegram topic name format"
754
- }),
755
- /* @__PURE__ */ jsx("input", {
756
- id: "team-telegram-topic-format",
757
- value: format,
758
- onChange: (e) => setFormat(e.target.value),
759
- placeholder: "{team.name} / {agent.name}",
760
- className: "w-full rounded-md border bg-background px-3 py-2 font-mono text-sm outline-none focus:ring-2 focus:ring-ring/30"
761
- }),
762
- /* @__PURE__ */ jsxs("p", {
763
- className: "text-xs text-muted-foreground mt-2",
764
- children: ["preview: ", /* @__PURE__ */ jsx("span", {
765
- className: "font-mono text-foreground",
766
- children: preview
767
- })]
768
- }),
769
- /* @__PURE__ */ jsxs("div", {
770
- className: "flex items-center gap-3 mt-3",
771
- children: [
772
- /* @__PURE__ */ jsx(Button, {
773
- variant: "primary",
774
- onClick: () => save(false),
775
- disabled: busy || !dirty || trimmed.length === 0,
776
- children: busy ? "saving…" : "save"
777
- }),
778
- team.telegramTopicNameFormat && /* @__PURE__ */ jsx(Button, {
779
- variant: "ghost",
780
- onClick: () => save(true),
781
- disabled: busy,
782
- children: "clear"
783
- }),
784
- savedAt && /* @__PURE__ */ jsx("span", {
785
- role: "status",
786
- className: "text-xs text-success",
787
- children: "Saved"
788
- }),
789
- err && /* @__PURE__ */ jsx("span", {
790
- role: "alert",
791
- className: "text-xs text-danger",
792
- children: err
793
- })
794
- ]
795
- })
796
- ]
797
- });
798
- }
799
- function SpawnFromTemplateCard({ teamId, profileGroups, onSpawned }) {
800
- const eligible = profileGroups.filter((g) => g.slotCount > 0 && !g.deletedAt);
801
- const [selected, setSelected] = useState(eligible[0]?.id ?? "");
802
- const [busy, setBusy] = useState(false);
803
- const [err, setErr] = useState(null);
804
- async function spawn() {
805
- if (!selected) return;
806
- setBusy(true);
807
- setErr(null);
808
- try {
809
- const template = eligible.find((item) => item.id === selected);
810
- if (!template) throw new Error("Team template is unavailable.");
811
- const policyResponse = await fetch(`/api/teams/${encodeURIComponent(teamId)}/policy`);
812
- if (!policyResponse.ok) throw new Error("The current Team policy is unavailable.");
813
- const current = await policyResponse.json();
814
- const res = await fetch(`/api/team-templates/${encodeURIComponent(selected)}/spawn`, {
815
- method: "POST",
816
- headers: { "content-type": "application/json" },
817
- body: JSON.stringify({
818
- templateExpectedRevision: template.currentRevision,
819
- teamId,
820
- teamExpectedRevision: current.teamPolicy.revision,
821
- mode: "initialize"
822
- })
823
- });
824
- if (!res.ok) {
825
- const e = await res.json().catch(() => ({}));
826
- throw new Error(e.error ?? `${res.status} ${res.statusText}`);
827
- }
828
- onSpawned();
829
- } catch (e) {
830
- setErr(e.message);
831
- } finally {
832
- setBusy(false);
833
- }
834
- }
835
- return /* @__PURE__ */ jsxs("section", {
836
- className: "rounded-lg border bg-card p-5 mb-6",
837
- children: [
838
- /* @__PURE__ */ jsx("h3", {
839
- className: "font-serif text-xl mb-1",
840
- children: "spawn a team into this team"
841
- }),
842
- /* @__PURE__ */ jsx("p", {
843
- className: "text-muted-foreground text-sm mb-3",
844
- children: "This Team is empty. Pick a canonical Team template to initialize its roster and policy at the current reviewed Team and Team revisions."
845
- }),
846
- eligible.length === 0 ? /* @__PURE__ */ jsxs("p", {
847
- className: "text-muted-foreground text-sm",
848
- children: [
849
- "No Team templates with slots yet. Build one on",
850
- " ",
851
- /* @__PURE__ */ jsx("a", {
852
- href: "/templates/teams",
853
- className: "text-primary underline",
854
- children: "Team templates"
855
- }),
856
- " ",
857
- "first."
858
- ]
859
- }) : /* @__PURE__ */ jsxs("div", {
860
- className: "flex flex-wrap items-end gap-3",
861
- children: [
862
- /* @__PURE__ */ jsxs("label", {
863
- className: "m-0 flex min-w-0 flex-1 flex-col gap-1 text-sm text-foreground",
864
- children: ["Team template", /* @__PURE__ */ jsx("select", {
865
- value: selected,
866
- onChange: (e) => setSelected(e.target.value),
867
- className: "min-w-0 rounded-md border bg-background px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-ring/30",
868
- children: eligible.map((g) => /* @__PURE__ */ jsxs("option", {
869
- value: g.id,
870
- children: [
871
- g.name,
872
- " (",
873
- g.slotCount,
874
- " slot",
875
- g.slotCount === 1 ? "" : "s",
876
- ", r",
877
- g.currentRevision,
878
- ")"
879
- ]
880
- }, g.id))
881
- })]
882
- }),
883
- /* @__PURE__ */ jsx(Button, {
884
- variant: "primary",
885
- onClick: spawn,
886
- disabled: busy || !selected,
887
- children: busy ? "spawning…" : "spawn team"
888
- }),
889
- err && /* @__PURE__ */ jsx("span", {
890
- role: "alert",
891
- className: "basis-full text-xs text-danger",
892
- children: err
893
- })
894
- ]
895
- })
896
- ]
897
- });
898
- }
899
- //#endregion
900
- export { TeamDetailPage as component };