vite-hub 0.4.1 → 0.5.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 (502) hide show
  1. package/README.md +38 -14
  2. package/dist/_internal/runtime/browser-errors.d.ts +12 -4
  3. package/dist/_internal/runtime/browser-errors.js +69 -27
  4. package/dist/_internal/runtime/redirects.d.ts +1 -2
  5. package/dist/_internal/runtime/redirects.js +2 -3
  6. package/dist/_internal/runtime/request-policy.d.ts +11 -2
  7. package/dist/_internal/runtime/request-policy.js +25 -6
  8. package/dist/_internal/runtime/security.d.ts +1 -2
  9. package/dist/_internal/runtime/security.js +16 -3
  10. package/dist/{access-BDST818p.js → access-BBHk9b5P.js} +30 -20
  11. package/dist/{access-policy-DjBKLo3c.js → access-policy-BM48XstY.js} +5 -6
  12. package/dist/{access-policy-CGXhO3Ee.d.ts → access-policy-CUbJLvlR.d.ts} +4 -8
  13. package/dist/{account-BnOAU055.d.ts → account-CoAO1F8G.d.ts} +9 -7
  14. package/dist/agent/invocations/postgres.d.ts +1 -0
  15. package/dist/agent/invocations/postgres.js +2 -0
  16. package/dist/{agent-invocations.post-CcPvfA0n.js → agent-invocations.post-BAC1aHnG.js} +16 -18
  17. package/dist/agents-BClUWOj7.js +1 -0
  18. package/dist/{agents-BDeazoAW.js → agents-Cz_uhhov.js} +4 -5
  19. package/dist/{agents-C94A4N9u.d.ts → agents-Gyw4VKPt.d.ts} +0 -2
  20. package/dist/auth/server.js +1 -2
  21. package/dist/{auth-BZOy7obk.d.ts → auth-CeKxL2xp.d.ts} +4 -8
  22. package/dist/{auth-operations-GcQk0O0X.js → auth-operations-arLIY2_2.js} +1 -2
  23. package/dist/{auth-types-CyqhWvYF.d.ts → auth-types-B4mq4YhK.d.ts} +1 -4
  24. package/dist/bin.js +34 -23
  25. package/dist/blob/nuxt-image.js +1 -2
  26. package/dist/{blob-CFLwMsjH.d.ts → blob-_TtxDb-t.d.ts} +1 -3
  27. package/dist/{blob-CpvlM8jp.js → blob-eH6j0AQj.js} +5 -6
  28. package/dist/browser-error-limits-B0yS95zt.js +24 -0
  29. package/dist/cache/operations.d.ts +2 -4
  30. package/dist/cache/operations.js +3 -4
  31. package/dist/cache.d.ts +1 -3
  32. package/dist/cache.js +2 -3
  33. package/dist/choices/testing.d.ts +1 -0
  34. package/dist/choices/testing.js +2 -0
  35. package/dist/{cli-config-wxKjF2Y0.js → cli-config-BX8H4ZCo.js} +12 -5
  36. package/dist/cli-config-DgpmE_7z.js +1 -0
  37. package/dist/cloudflare-app-types.d.ts +18 -0
  38. package/dist/{cloudflare-env-lookup-DKXdr4P_.js → cloudflare-env-lookup-DcN7pGlv.js} +1 -2
  39. package/dist/cms.js +1 -2
  40. package/dist/console/auth-types.d.ts +1 -1
  41. package/dist/console/auth.d.ts +1 -3
  42. package/dist/console/auth.js +2 -3
  43. package/dist/console/runtime/auth-operations.d.ts +1 -3
  44. package/dist/console/runtime/auth-operations.js +1 -2
  45. package/dist/console/runtime/client/account-views.d.ts +1 -3
  46. package/dist/console/runtime/client/account-views.js +1 -2
  47. package/dist/console/runtime/client/account.d.ts +1 -1
  48. package/dist/console/runtime/client/account.js +36 -48
  49. package/dist/console/runtime/client/add-primitive.ts +2 -2
  50. package/dist/console/runtime/client/appearance.d.ts +1 -2
  51. package/dist/console/runtime/client/appearance.js +1 -2
  52. package/dist/console/runtime/client/blob-media.d.ts +2 -4
  53. package/dist/console/runtime/client/blob-media.js +5 -6
  54. package/dist/console/runtime/client/comment-thread.d.ts +1 -3
  55. package/dist/console/runtime/client/comment-thread.js +11 -5
  56. package/dist/console/runtime/client/content-heads.d.ts +1 -2
  57. package/dist/console/runtime/client/content-heads.js +2 -3
  58. package/dist/console/runtime/client/documents.d.ts +2 -2
  59. package/dist/console/runtime/client/documents.js +1 -2
  60. package/dist/console/runtime/client/editor.d.ts +3 -5
  61. package/dist/console/runtime/client/editor.js +1 -2
  62. package/dist/console/runtime/client/env-groups.d.ts +1 -3
  63. package/dist/console/runtime/client/env-groups.js +1 -2
  64. package/dist/console/runtime/client/env-status.d.ts +1 -3
  65. package/dist/console/runtime/client/env-status.js +1 -2
  66. package/dist/console/runtime/client/format.d.ts +1 -3
  67. package/dist/console/runtime/client/format.js +1 -2
  68. package/dist/console/runtime/client/invocation-deletion.d.ts +1 -2
  69. package/dist/console/runtime/client/invocation-deletion.js +1 -2
  70. package/dist/console/runtime/client/invocation.d.ts +1 -2
  71. package/dist/console/runtime/client/invocation.js +4 -5
  72. package/dist/console/runtime/client/live.d.ts +2 -4
  73. package/dist/console/runtime/client/live.js +1 -2
  74. package/dist/console/runtime/client/mcp-client.d.ts +6 -4
  75. package/dist/console/runtime/client/mcp-client.js +12 -5
  76. package/dist/console/runtime/client/media-library.d.ts +1 -1
  77. package/dist/console/runtime/client/media-library.js +1 -2
  78. package/dist/console/runtime/client/media-uploads.d.ts +2 -4
  79. package/dist/console/runtime/client/media-uploads.js +2 -3
  80. package/dist/console/runtime/client/media.d.ts +1 -1
  81. package/dist/console/runtime/client/media.js +1 -2
  82. package/dist/console/runtime/client/operation-view.d.ts +2 -4
  83. package/dist/console/runtime/client/operation-view.js +4 -5
  84. package/dist/console/runtime/client/presence.d.ts +2 -4
  85. package/dist/console/runtime/client/presence.js +1 -2
  86. package/dist/console/runtime/client/preview.d.ts +1 -3
  87. package/dist/console/runtime/client/preview.js +1 -2
  88. package/dist/console/runtime/client/problem.d.ts +2 -4
  89. package/dist/console/runtime/client/problem.js +3 -4
  90. package/dist/console/runtime/client/project-link.d.ts +2 -2
  91. package/dist/console/runtime/client/project-link.js +1 -2
  92. package/dist/console/runtime/client/project-session.d.ts +19 -10
  93. package/dist/console/runtime/client/project-session.js +1 -723
  94. package/dist/console/runtime/client/project.d.ts +1 -3
  95. package/dist/console/runtime/client/project.js +1 -2
  96. package/dist/console/runtime/client/projects.d.ts +1 -1
  97. package/dist/console/runtime/client/projects.js +1 -2
  98. package/dist/console/runtime/client/publish.d.ts +2 -4
  99. package/dist/console/runtime/client/publish.js +1 -2
  100. package/dist/console/runtime/client/rate-limit.d.ts +1 -3
  101. package/dist/console/runtime/client/rate-limit.js +3 -4
  102. package/dist/console/runtime/client/read-only.d.ts +2 -4
  103. package/dist/console/runtime/client/read-only.js +2 -3
  104. package/dist/console/runtime/client/request.d.ts +2 -70
  105. package/dist/console/runtime/client/request.js +1 -2
  106. package/dist/console/runtime/client/route-query.d.ts +4 -5
  107. package/dist/console/runtime/client/route-query.js +1 -2
  108. package/dist/console/runtime/client/schedule-run.d.ts +1 -3
  109. package/dist/console/runtime/client/schedule-run.js +3 -4
  110. package/dist/console/runtime/client/schema-form.d.ts +1 -1
  111. package/dist/console/runtime/client/schema-form.js +1 -2
  112. package/dist/console/runtime/client/sections.d.ts +1 -1
  113. package/dist/console/runtime/client/sections.js +1 -2
  114. package/dist/console/runtime/client/site-access.d.ts +41 -10
  115. package/dist/console/runtime/client/site-access.js +157 -28
  116. package/dist/console/runtime/client/stored.d.ts +1 -3
  117. package/dist/console/runtime/client/stored.js +1 -2
  118. package/dist/console/runtime/client/ticket.d.ts +1 -1
  119. package/dist/console/runtime/client/ticket.js +1 -2
  120. package/dist/console/runtime/client/toast.d.ts +1 -3
  121. package/dist/console/runtime/client/toast.js +1 -2
  122. package/dist/console/runtime/client/workflow.d.ts +1 -3
  123. package/dist/console/runtime/client/workflow.js +3 -4
  124. package/dist/console/runtime/components/console-account-api-keys.vue +4 -4
  125. package/dist/console/runtime/components/console-account-home.vue +230 -51
  126. package/dist/console/runtime/components/console-account-link.vue +8 -5
  127. package/dist/console/runtime/components/console-account-setup.vue +10 -7
  128. package/dist/console/runtime/components/console-account-shell.vue +13 -19
  129. package/dist/console/runtime/components/console-account-unlink.vue +2 -3
  130. package/dist/console/runtime/components/console-app-settings.vue +8 -2
  131. package/dist/console/runtime/components/console-app.vue +1 -10
  132. package/dist/console/runtime/components/console-auth-activity.vue +2 -2
  133. package/dist/console/runtime/components/console-auth-chart.vue +1 -1
  134. package/dist/console/runtime/components/console-auth-overview.vue +1 -1
  135. package/dist/console/runtime/components/console-auth.vue +4 -4
  136. package/dist/console/runtime/components/console-comment-thread.vue +1 -1
  137. package/dist/console/runtime/components/console-definitions.vue +4 -4
  138. package/dist/console/runtime/components/console-document-dashboard.vue +2 -2
  139. package/dist/console/runtime/components/console-document-list.vue +2 -2
  140. package/dist/console/runtime/components/console-document-settings.vue +1 -1
  141. package/dist/console/runtime/components/console-env.vue +3 -3
  142. package/dist/console/runtime/components/console-home.vue +220 -311
  143. package/dist/console/runtime/components/console-hosted-comments-embed.vue +106 -0
  144. package/dist/console/runtime/components/console-loading.vue +1 -1
  145. package/dist/console/runtime/components/console-mcp-callback.vue +6 -1
  146. package/dist/console/runtime/components/console-mcp-connection.vue +3 -3
  147. package/dist/console/runtime/components/console-mcp-items.vue +4 -17
  148. package/dist/console/runtime/components/console-media-browser.vue +20 -30
  149. package/dist/console/runtime/components/console-media-crops.vue +3 -2
  150. package/dist/console/runtime/components/console-media-uploads.vue +11 -7
  151. package/dist/console/runtime/components/console-page-toolbar.vue +5 -10
  152. package/dist/console/runtime/components/console-schema-list.vue +85 -31
  153. package/dist/console/runtime/components/console-search-palette.vue +14 -5
  154. package/dist/console/runtime/components/console-section.vue +2 -1
  155. package/dist/console/runtime/components/console-session-inspector.vue +5 -0
  156. package/dist/console/runtime/components/console-session.css +8 -2
  157. package/dist/console/runtime/components/console-settings-value.vue +4 -5
  158. package/dist/console/runtime/components/console-sidebar.vue +9 -8
  159. package/dist/console/runtime/components/console-site.vue +36 -15
  160. package/dist/console/runtime/components/console-stat-grid.vue +3 -2
  161. package/dist/console/runtime/components/console-toaster.vue +3 -2
  162. package/dist/console/runtime/components/console-usage-chart.vue +1 -1
  163. package/dist/console/runtime/components/console-usage.vue +36 -18
  164. package/dist/console/runtime/components/invocation/internal/brand-icons.ts +10 -0
  165. package/dist/console/runtime/components/invocation/internal/invocation-brand.ts +6 -2
  166. package/dist/console/runtime/components/invocation/invocation.css +4 -27
  167. package/dist/console/runtime/console-route.d.ts +1 -3
  168. package/dist/console/runtime/console-route.js +1 -2
  169. package/dist/console/runtime/definitions.d.ts +1 -1
  170. package/dist/console/runtime/definitions.js +1 -2
  171. package/dist/console/runtime/diagnostics.ts +8 -1
  172. package/dist/console/runtime/mcp-client.d.ts +1 -1
  173. package/dist/console/runtime/mcp-client.js +1 -2
  174. package/dist/console/runtime/page/loader.js +45 -52
  175. package/dist/console/runtime/page-tool/account.js +26 -0
  176. package/dist/console/runtime/page-tool/page-tool.js +2 -3
  177. package/dist/console/runtime/public/skills/index.json +1 -1
  178. package/dist/console/runtime/public/skills/vitehub/SKILL.md +50 -7
  179. package/dist/console/runtime/public/skills/vitehub/agents/openai.yaml +1 -1
  180. package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +1 -1
  181. package/dist/console/runtime/public/skills/vitehub/references/primitives/email.md +1 -1
  182. package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +1 -1
  183. package/dist/console/runtime/rpc.d.ts +1 -1
  184. package/dist/console/runtime/rpc.js +1 -2
  185. package/dist/console/runtime/sections.d.ts +1 -1
  186. package/dist/console/runtime/sections.js +1 -2
  187. package/dist/console/runtime/server/access-policy.d.ts +1 -1
  188. package/dist/console/runtime/server/access-policy.js +1 -2
  189. package/dist/console/runtime/server/agents.get.d.ts +2 -3
  190. package/dist/console/runtime/server/agents.get.js +3 -4
  191. package/dist/console/runtime/server/auth.d.ts +1 -1
  192. package/dist/console/runtime/server/auth.js +4 -5
  193. package/dist/console/runtime/server/blob.d.ts +1 -1
  194. package/dist/console/runtime/server/blob.js +1 -2
  195. package/dist/console/runtime/server/channel-replay.d.ts +3 -5
  196. package/dist/console/runtime/server/channel-replay.js +7 -7
  197. package/dist/console/runtime/server/database.d.ts +1 -1
  198. package/dist/console/runtime/server/database.get.d.ts +2 -3
  199. package/dist/console/runtime/server/database.get.js +4 -5
  200. package/dist/console/runtime/server/database.js +1 -2
  201. package/dist/console/runtime/server/definitions.d.ts +1 -1
  202. package/dist/console/runtime/server/definitions.get.d.ts +4 -6
  203. package/dist/console/runtime/server/definitions.get.js +5 -6
  204. package/dist/console/runtime/server/definitions.js +1 -2
  205. package/dist/console/runtime/server/development.d.ts +1 -1
  206. package/dist/console/runtime/server/development.js +1 -2
  207. package/dist/console/runtime/server/documents.d.ts +1 -1
  208. package/dist/console/runtime/server/documents.js +2 -2
  209. package/dist/console/runtime/server/env.d.ts +1 -3
  210. package/dist/console/runtime/server/env.get.d.ts +2 -4
  211. package/dist/console/runtime/server/env.get.js +7 -8
  212. package/dist/console/runtime/server/env.js +1 -2
  213. package/dist/console/runtime/server/invocation-capabilities.get.d.ts +1 -3
  214. package/dist/console/runtime/server/invocation-capabilities.get.js +4 -5
  215. package/dist/console/runtime/server/invocation-workspace.get.d.ts +3 -5
  216. package/dist/console/runtime/server/invocation-workspace.get.js +6 -7
  217. package/dist/console/runtime/server/invocation.get.d.ts +3 -5
  218. package/dist/console/runtime/server/invocation.get.js +8 -9
  219. package/dist/console/runtime/server/invocations.get.d.ts +1 -2
  220. package/dist/console/runtime/server/invocations.get.js +5 -6
  221. package/dist/console/runtime/server/logs.get.d.ts +3 -5
  222. package/dist/console/runtime/server/logs.get.js +7 -8
  223. package/dist/console/runtime/server/mcp-client-operations.d.ts +2 -4
  224. package/dist/console/runtime/server/mcp-client-operations.js +5 -7
  225. package/dist/console/runtime/server/operation-contributions.d.ts +1 -1
  226. package/dist/console/runtime/server/operation-contributions.js +1 -2
  227. package/dist/console/runtime/server/page-auth.d.ts +2 -4
  228. package/dist/console/runtime/server/page-auth.js +1 -2
  229. package/dist/console/runtime/server/page-tool.d.ts +1 -1
  230. package/dist/console/runtime/server/page-tool.js +12 -7
  231. package/dist/console/runtime/server/page-tools-route.d.ts +2 -0
  232. package/dist/console/runtime/server/page-tools-route.js +4 -0
  233. package/dist/console/runtime/server/rpc.d.ts +3 -5
  234. package/dist/console/runtime/server/rpc.js +12 -13
  235. package/dist/console/runtime/server/runtime.d.ts +1 -1
  236. package/dist/console/runtime/server/runtime.js +1 -2
  237. package/dist/console/runtime/server/search.get.d.ts +1 -3
  238. package/dist/console/runtime/server/search.get.js +3 -5
  239. package/dist/console/runtime/server/sections.d.ts +5 -5
  240. package/dist/console/runtime/server/sections.get.d.ts +1 -1
  241. package/dist/console/runtime/server/sections.get.js +8 -9
  242. package/dist/console/runtime/server/sections.js +6 -6
  243. package/dist/console/runtime/server/setup.d.ts +5 -5
  244. package/dist/console/runtime/server/setup.js +5 -5
  245. package/dist/console/runtime/server/site-entry.d.ts +1 -3
  246. package/dist/console/runtime/server/site-entry.js +15 -10
  247. package/dist/console/runtime/server/site-session.d.ts +12 -22
  248. package/dist/console/runtime/server/site-session.js +1 -2
  249. package/dist/console/runtime/server/status.get.d.ts +2 -4
  250. package/dist/console/runtime/server/status.get.js +6 -7
  251. package/dist/console/runtime/server/tickets.d.ts +1 -1
  252. package/dist/console/runtime/server/tickets.js +1 -2
  253. package/dist/console/runtime/server/usage.get.d.ts +2 -4
  254. package/dist/console/runtime/server/usage.get.js +8 -9
  255. package/dist/console/runtime/server/workspace-files.get.d.ts +3 -5
  256. package/dist/console/runtime/server/workspace-files.get.js +4 -5
  257. package/dist/console/runtime/site-access.d.ts +1 -1
  258. package/dist/console/runtime/site-access.js +1 -2
  259. package/dist/console/runtime/skills.d.ts +1 -3
  260. package/dist/console/runtime/skills.js +1 -2
  261. package/dist/console/server.d.ts +7 -11
  262. package/dist/console/server.js +8 -8
  263. package/dist/console/ui.d.ts +0 -10
  264. package/dist/console/ui.js +32 -28
  265. package/dist/console-lazy-views-VEjcbL4Q.js +1 -0
  266. package/dist/{console-route-CBuqZ4wO.js → console-route-DbdnLkkF.js} +3 -4
  267. package/dist/console.d.ts +1 -3
  268. package/dist/console.js +1 -2
  269. package/dist/{database-DyPVMjp_.d.ts → database-CPjZ3L0g.d.ts} +1 -3
  270. package/dist/{database-BdOBjPkS.js → database-CrgBUdIx.js} +3 -4
  271. package/dist/definition-catalog-1xPPtzOx.js +137 -0
  272. package/dist/definition-catalog-M5ua7JRS.js +1 -0
  273. package/dist/{definitions-BW6SvmMM.js → definitions-BFYqXchw.js} +1 -2
  274. package/dist/{definitions-DB4LbZ7T.d.ts → definitions-ChvMnA1L.d.ts} +0 -2
  275. package/dist/{definitions-Dbgxfz3I.d.ts → definitions-DRkgHKmk.d.ts} +1 -3
  276. package/dist/{definitions-CNq_Shkh.js → definitions-M7i2p8SR.js} +5 -6
  277. package/dist/deployment-CURATxjG.js +229 -0
  278. package/dist/deployment-l7RuKdEp.js +1 -0
  279. package/dist/{dev-peer-am78OsHH.js → dev-peer-DBq-isgi.js} +7 -6
  280. package/dist/{development-zLxOp-AO.js → development-DD567hhJ.js} +2 -3
  281. package/dist/{development-W5EwONyL.d.ts → development-I40mfD7B.d.ts} +1 -3
  282. package/dist/{diagnostics-9U_fYxMy.js → diagnostics-B2cqlCSz.js} +3 -3
  283. package/dist/{diagnostics-CjGiniKb.d.ts → diagnostics-BXxPggRw.d.ts} +1 -3
  284. package/dist/docs/nuxt.js +1 -2
  285. package/dist/doctor.d.ts +0 -6
  286. package/dist/doctor.js +15078 -2377
  287. package/dist/{documents-CjJTCrY8.js → documents-BOYwZ5g4.js} +7 -8
  288. package/dist/{documents-qrHHqlNU.js → documents-Ck_iub9w.js} +4 -5
  289. package/dist/{documents-BASIRZ91.d.ts → documents-DxK0tdjA.d.ts} +3 -5
  290. package/dist/{documents-CboVhYFz.d.ts → documents-LtkKCxtu.d.ts} +4 -8
  291. package/dist/durability/operations.d.ts +2 -4
  292. package/dist/durability/operations.js +3 -4
  293. package/dist/email/vue.d.ts +1 -0
  294. package/dist/email/vue.js +2 -0
  295. package/dist/{entries-Bj-jPs_J.js → entries-UFs9n1MB.js} +2 -3
  296. package/dist/{env-Dg1I_DWr.js → env-D-wtSupz.js} +2 -3
  297. package/dist/{error-diagnostics-Bm3JKYjz.js → error-diagnostics-CBtvqI30.js} +33 -22
  298. package/dist/{operation-definition-a5keEpCd.js → error-diagnostics-kKXseq8d.js} +11 -169
  299. package/dist/error-diagnostics.ts +33 -23
  300. package/dist/{optional-owners-BNA2OX6z.js → features-BXRKlmtN.js} +57 -345
  301. package/dist/features-CD5i5I8V.js +1 -0
  302. package/dist/{format-BOYlanIZ.js → format-Df-bS4Ly.js} +1 -2
  303. package/dist/gateways/testing.d.ts +1 -0
  304. package/dist/gateways/testing.js +2 -0
  305. package/dist/github-login-W-vaahWP.js +6 -0
  306. package/dist/{host-CkL0jjBq.js → host-DeNPYIeV.js} +1 -2
  307. package/dist/{http-error-Bs6e8_-8.js → http-error-BorAxJYM.js} +1 -2
  308. package/dist/index.d.ts +2 -8
  309. package/dist/index.js +5 -6
  310. package/dist/inspect-CWwAuL-B.js +47 -0
  311. package/dist/internal/agent-invocations-libsql.js +1 -2
  312. package/dist/internal/disabled-redis-driver.d.ts +1 -3
  313. package/dist/internal/disabled-redis-driver.js +2 -3
  314. package/dist/internal/disabled-upstash-driver.d.ts +1 -3
  315. package/dist/internal/disabled-upstash-driver.js +2 -3
  316. package/dist/internal/test-loader.d.ts +1 -3
  317. package/dist/internal/test-loader.js +2 -3
  318. package/dist/internal/test-server.js +2 -3
  319. package/dist/{internal-BreyUsQ6.js → internal-0C_CC601.js} +1 -2
  320. package/dist/{internal-CO4OqqaS.d.ts → internal-CKocv79I.d.ts} +3 -7
  321. package/dist/{invariant-DolT9EEx.js → invariant-Dj2R1eMr.js} +1 -2
  322. package/dist/{invocation-page-undo-DIZ-s3xT.js → invocation-page-undo-BEi-rO0Q.js} +5 -6
  323. package/dist/{invocations-CK_-G540.js → invocations-8NThe8Bx.js} +5 -6
  324. package/dist/{limits-BUlwWYQE.js → limits-BLo31qDR.js} +1 -2
  325. package/dist/logs/client.d.ts +19 -0
  326. package/dist/logs/client.js +11 -0
  327. package/dist/logs/host.d.ts +2 -4
  328. package/dist/logs/host.js +1 -2
  329. package/dist/logs/memory.d.ts +1 -1
  330. package/dist/logs/memory.js +1 -2
  331. package/dist/logs/source.d.ts +1 -1
  332. package/dist/logs/source.js +1 -2
  333. package/dist/logs.d.ts +2 -2
  334. package/dist/logs.js +2 -2
  335. package/dist/{mcp-client-CTbTbn7d.js → mcp-client-Bkh-khvr.js} +1 -2
  336. package/dist/{mcp-client-By4zk0vU.js → mcp-client-DiObFpDS.js} +35 -22
  337. package/dist/{mcp-client-C_sEmyQw.d.ts → mcp-client-Q2XbUXuP.d.ts} +1 -4
  338. package/dist/{media-uKX4Wy-c.d.ts → media-C79RB1oH.d.ts} +0 -2
  339. package/dist/{media-BHpQ-4jw.js → media-CAKz9yrp.js} +8 -9
  340. package/dist/{media-library-NaOMBKWS.js → media-library-BDX89xXA.js} +5 -6
  341. package/dist/{media-library-D9ThbXqs.d.ts → media-library-DxGu6w9z.d.ts} +0 -2
  342. package/dist/{memory-DTmq-Z6x.js → memory-D3EJS_Bp.js} +21 -10
  343. package/dist/{memory-2bbl4hcV.d.ts → memory-GK5ZGWrp.d.ts} +1 -3
  344. package/dist/nuxt-server-auto-imports-4aT5BD4u.js +74 -0
  345. package/dist/{nuxt-server-imports-DH60Z7LA.js → nuxt-server-imports-BdJqiVhT.js} +10 -18
  346. package/dist/nuxt.d.ts +1 -3
  347. package/dist/nuxt.js +339 -189
  348. package/dist/{object-D8pRdprI.js → object-DRSmpe04.js} +1 -2
  349. package/dist/{operation-contributions-DpkO_iSU.d.ts → operation-contributions-BCcQVlGb.d.ts} +1 -3
  350. package/dist/{operation-contributions-BdS0z3tx.js → operation-contributions-D10pjkJF.js} +4 -5
  351. package/dist/operation-definition-DTpNvLd8.js +164 -0
  352. package/dist/{operation-registry-BogGwk_I.js → operation-registry-DfQbL7vE.js} +1 -2
  353. package/dist/{operation-rpc-DI9txNxK.js → operation-rpc-BMdfapja.js} +3 -4
  354. package/dist/{operations-EOdyctDc.js → operations-CD_mu_Ww.js} +86 -9
  355. package/dist/operations-D7ENc68Y.js +1 -0
  356. package/dist/{operations-B0689BG1.d.ts → operations-DgFhA1WE.d.ts} +8 -6
  357. package/dist/{operations-CWP9dF3i.js → operations-vRLiH7dh.js} +35 -46
  358. package/dist/optional-owners-DAfShdgV.js +353 -0
  359. package/dist/out-Cw5Tvr92.js +20989 -0
  360. package/dist/{owned-paths-BnjT0FhU.js → owned-paths-MjjDftBn.js} +1 -2
  361. package/dist/page/pill.iife.js +25 -27
  362. package/dist/{page-tool-CRCK1RHV.d.ts → page-tool-BUnUbuSy.d.ts} +6 -7
  363. package/dist/{page-tools-BkSSBFoi.js → page-tools-BQzwuAHD.js} +28 -12
  364. package/dist/{page-tools-sw4I-Nqx.d.ts → page-tools-UwsfvH-B.d.ts} +2 -4
  365. package/dist/{page-tools-shared-D3fFoEV2.js → page-tools-shared-hJcG_xk8.js} +8 -5
  366. package/dist/{inspect-CDw7e0vK.js → pathe.M-eThtNZ-D4EC7Wue.js} +2 -31
  367. package/dist/{plugins-BqAtIEX2.d.ts → plugins-BpiTVULl.d.ts} +252 -262
  368. package/dist/{plugins-B-DpgDPB.js → plugins-H6-MQrsn.js} +3483 -797
  369. package/dist/presets/workspace.js +1 -2
  370. package/dist/project-BxyyclTE.js +58 -0
  371. package/dist/{project-CufkVP1u.d.ts → project-DKBIHOf4.d.ts} +16 -4
  372. package/dist/{project-DlWTGB7h.js → project-DRC67Uiu.js} +1 -2
  373. package/dist/{project-link-D-6UefhA.js → project-link-CeS0T8Pr.js} +57 -9
  374. package/dist/{project-link-BuOzBH9f.d.ts → project-link-isfdRO3Q.d.ts} +42 -6
  375. package/dist/{project-root-v6ba4tn7.js → project-root-mAVQGZTX.js} +1 -2
  376. package/dist/project-session--GN7MduT.js +764 -0
  377. package/dist/{projects-CAcXztf4.js → projects-BRp0iseV.js} +1 -2
  378. package/dist/{projects-Ddvl9EJp.d.ts → projects-mgPxrKZr.d.ts} +0 -2
  379. package/dist/{registry-zw6aE2N9.js → registry-B8JE5NY-.js} +1 -2
  380. package/dist/{registry-CDKLACCZ.js → registry-CnPC-gNu.js} +1 -2
  381. package/dist/{request-D7h3SQ92.d.ts → request-BC_krbEr.d.ts} +2 -4
  382. package/dist/request-CJCPyu2B.d.ts +70 -0
  383. package/dist/{request-DbFfYmCu.js → request-CQ8TkHLh.js} +4 -5
  384. package/dist/{request-DE8w_cSM.js → request-Cl68STwT.js} +7 -8
  385. package/dist/request-origin-pzWr9UUu.js +37 -0
  386. package/dist/rolldown-runtime-DegdyBIC.js +25 -0
  387. package/dist/{route-query-CRVWXIrc.js → route-query-BWVl6ZO6.js} +4 -5
  388. package/dist/{rpc-DIUA61pv.js → rpc-D3tsx5lZ.js} +1 -2
  389. package/dist/{rpc-7nlHSv3y.d.ts → rpc-oijgKQtD.d.ts} +0 -2
  390. package/dist/{runtime-YLWfdrtO.js → runtime-CAbuQGMP.js} +3 -4
  391. package/dist/{runtime-DQuHg7OO.js → runtime-CRJsqVTa.js} +2 -3
  392. package/dist/{runtime-B_btezs1.d.ts → runtime-Cf8R1Ztr.d.ts} +0 -2
  393. package/dist/{runtime-DxfJOfCd.js → runtime-CyPZMiyK.js} +2 -3
  394. package/dist/{runtime-OsEDfbM9.js → runtime-F0CTqBFx.js} +5 -6
  395. package/dist/{runtime-feature-guard-B64MMW9I.js → runtime-feature-guard-DpUn4Oxc.js} +91 -10
  396. package/dist/scan-module-B1A24jqP.js +1 -0
  397. package/dist/{scan-module-Df58L_6T.js → scan-module-BfZvDBxb.js} +2 -4
  398. package/dist/{schema-form-C-fy3xaU.d.ts → schema-form-Bl79Bdm-.d.ts} +0 -2
  399. package/dist/{secret-Dy5uqvq9.js → secret-D2KL_o2h.js} +2 -3
  400. package/dist/{sections-Do7X4Nwt.d.ts → sections-0qrBvGbf.d.ts} +0 -4
  401. package/dist/{sections-C83x0slv.js → sections-BNTdIEJw.js} +2 -3
  402. package/dist/{sections-BogiCmtz.d.ts → sections-BTfWK14a.d.ts} +4 -6
  403. package/dist/{sections-DumoLKQN.js → sections-BiCOk9qP.js} +1 -2
  404. package/dist/sections-DAtgYMVz.d.ts +8 -0
  405. package/dist/{sections-et20h8w3.js → sections-HLxb9MrG.js} +14 -7
  406. package/dist/{sections.get-COiLcQ0P.d.ts → sections.get-CGmtYmfu.d.ts} +2 -4
  407. package/dist/seo/runtime.d.ts +2 -5
  408. package/dist/seo/runtime.js +3 -5
  409. package/dist/{seo-CtLywyRx.d.ts → seo-CgW5uI9L.d.ts} +0 -2
  410. package/dist/seo.d.ts +1 -1
  411. package/dist/seo.js +1 -2
  412. package/dist/{server-BRJE4t-W.js → server-DsOEa4_A.js} +5 -5
  413. package/dist/{setup-ZbA1by7W.d.ts → setup-Ca7jtBLS.d.ts} +8 -7
  414. package/dist/{setup-C-5nB7aY.js → setup-DQz_i-ee.js} +16 -5
  415. package/dist/{site-access-BmE8HGxs.js → site-access-1JIQjY11.js} +16 -16
  416. package/dist/{site-access-DxfdOel1.d.ts → site-access-CUXIbbbR.d.ts} +0 -2
  417. package/dist/{site-access-BycrwM2v.js → site-access-CmaZ-oaL.js} +1 -2
  418. package/dist/site-access-Cvmjb6aw.js +1 -0
  419. package/dist/{site-session-odJq1dYa.js → site-session-D36fr7Wf.js} +65 -40
  420. package/dist/skills/operations.d.ts +1 -5
  421. package/dist/skills/operations.js +4 -5
  422. package/dist/skills/vitehub/SKILL.md +142 -0
  423. package/dist/skills/vitehub/agents/openai.yaml +4 -0
  424. package/dist/skills/vitehub/references/agent-definitions.md +36 -0
  425. package/dist/skills/vitehub/references/bundle.md +57 -0
  426. package/dist/skills/vitehub/references/capabilities-authority.md +30 -0
  427. package/dist/skills/vitehub/references/channels-triggers.md +27 -0
  428. package/dist/skills/vitehub/references/framework-composition.md +29 -0
  429. package/dist/skills/vitehub/references/preview-contract.md +44 -0
  430. package/dist/skills/vitehub/references/primitives/auth.md +14 -0
  431. package/dist/skills/vitehub/references/primitives/blob.md +13 -0
  432. package/dist/skills/vitehub/references/primitives/browser.md +17 -0
  433. package/dist/skills/vitehub/references/primitives/cache.md +13 -0
  434. package/dist/skills/vitehub/references/primitives/channels.md +11 -0
  435. package/dist/skills/vitehub/references/primitives/connections.md +14 -0
  436. package/dist/skills/vitehub/references/primitives/content.md +13 -0
  437. package/dist/skills/vitehub/references/primitives/database.md +15 -0
  438. package/dist/skills/vitehub/references/primitives/email.md +11 -0
  439. package/dist/skills/vitehub/references/primitives/env.md +13 -0
  440. package/dist/skills/vitehub/references/primitives/kv.md +13 -0
  441. package/dist/skills/vitehub/references/primitives/markdown-template.md +13 -0
  442. package/dist/skills/vitehub/references/primitives/queue.md +14 -0
  443. package/dist/skills/vitehub/references/primitives/rate-limit.md +11 -0
  444. package/dist/skills/vitehub/references/primitives/realtime.md +19 -0
  445. package/dist/skills/vitehub/references/primitives/sandbox-task.md +11 -0
  446. package/dist/skills/vitehub/references/primitives/sandbox.md +13 -0
  447. package/dist/skills/vitehub/references/primitives/schedule.md +11 -0
  448. package/dist/skills/vitehub/references/primitives/shell.md +11 -0
  449. package/dist/skills/vitehub/references/primitives/source.md +11 -0
  450. package/dist/skills/vitehub/references/primitives/workflow.md +11 -0
  451. package/dist/skills/vitehub/references/primitives/workspace.md +11 -0
  452. package/dist/skills/vitehub/references/project-patterns.md +19 -0
  453. package/dist/skills/vitehub/references/project-shapes.md +81 -0
  454. package/dist/skills/vitehub/references/proof-recovery.md +31 -0
  455. package/dist/skills/vitehub/references/sandboxes-hosts.md +26 -0
  456. package/dist/skills/vitehub/references/schedules-workflows-invocations.md +28 -0
  457. package/dist/skills/vitehub/references/server-primitives.md +39 -0
  458. package/dist/skills/vitehub/references/workspaces-sources-access.md +26 -0
  459. package/dist/{skills-DdpSMiCI.js → skills-C1MaGEbO.js} +1 -2
  460. package/dist/skills.d.ts +1 -2
  461. package/dist/{skills.get-Bl8cBe8u.js → skills.get-DAooGWy5.js} +3 -4
  462. package/dist/skills.js +1 -2
  463. package/dist/{source-D4wWtoHh.js → source-DYFndd0W.js} +2 -3
  464. package/dist/{source-S-LChQvw.d.ts → source-DemBtwla.d.ts} +0 -2
  465. package/dist/{stored-Dhv2qsQv.js → stored-J3TetMKf.js} +1 -2
  466. package/dist/task/operations.d.ts +1 -5
  467. package/dist/task/operations.js +3 -4
  468. package/dist/test/register.js +2 -3
  469. package/dist/test.d.ts +0 -4
  470. package/dist/test.js +1 -2
  471. package/dist/{ticket-Pr_8ZtXW.d.ts → ticket-BFWwevWN.d.ts} +0 -2
  472. package/dist/{ticket-Cudn1dq3.js → ticket-BwsnryuU.js} +2 -3
  473. package/dist/{tickets-C_0Fhc00.js → tickets-Cj9_y3gw.js} +14 -16
  474. package/dist/ui/motion/core.d.ts +1 -0
  475. package/dist/ui/motion/core.js +2 -0
  476. package/dist/ui/motion.d.ts +1 -0
  477. package/dist/ui/motion.js +2 -0
  478. package/dist/ui/vite.js +1 -2
  479. package/dist/{usage-CoQXs5nW.d.ts → usage-BduF04ks.d.ts} +0 -2
  480. package/dist/{usage-B4taNt4a.js → usage-ZV3TBMzE.js} +6 -5
  481. package/dist/{usage-index-BsGAFzyq.js → usage-index-CR_xTrXO.js} +3 -4
  482. package/dist/{version-DNmSsk5r.js → version-CAhBr673.js} +59 -21
  483. package/dist/{vite-stage-mmtwQIMA.js → vite-stage-Dmo4RgnK.js} +32 -8
  484. package/dist/{vue-router-C68IU1jM.d.ts → vue-router-plZJLlpm.d.ts} +120 -182
  485. package/dist/workspace/blob-database/postgres.d.ts +1 -0
  486. package/dist/workspace/blob-database/postgres.js +2 -0
  487. package/dist/{workspace-history-CraoERnc.js → workspace-history-B52xib2J.js} +3 -4
  488. package/dist/{workspace-history-CeVwBB6Q.d.ts → workspace-history-WuxgLsi4.d.ts} +0 -2
  489. package/package.json +190 -149
  490. package/dist/agents-BoWau_ei.js +0 -2
  491. package/dist/cli-config-UAGTmuFa.js +0 -2
  492. package/dist/console/runtime/server/page-session.d.ts +0 -2
  493. package/dist/console/runtime/server/page-session.js +0 -5
  494. package/dist/console-lazy-views-DXnIkdyd.js +0 -2
  495. package/dist/operations-CAQmIxGK.js +0 -2
  496. package/dist/project-C4N_Zcjl.js +0 -30
  497. package/dist/request-origin-Bq7mDQG9.js +0 -23
  498. package/dist/scan-module-D_3X08mj.js +0 -2
  499. package/dist/sections-CyrXbbkG.d.ts +0 -10
  500. package/dist/site-access-BbJUe5QI.js +0 -2
  501. /package/dist/{agent/channels.d.ts → channels/adapters.d.ts} +0 -0
  502. /package/dist/{agent/channels.js → channels/adapters.js} +0 -0
@@ -1,5 +1,4 @@
1
1
  import { ShallowRef } from "vue";
2
- //#region src/console/runtime/client/toast.d.ts
3
2
  /**
4
3
  * Console toasts. They live in their own list, not in Nuxt UI `useToast()`: that list is shared with the host app, so a
5
4
  * Console mounted in a Nuxt app would show its toasts in the host toaster, or nowhere when the host turns toasts off.
@@ -35,5 +34,4 @@ export interface ConsoleToasts {
35
34
  toasts: Readonly<ShallowRef<readonly ConsoleToast[]>>;
36
35
  }
37
36
  /** Shows Console toasts: one sentence, `{Noun} {past participle}` for success, `Couldn't … Try again.` for errors. */
38
- export declare function useConsoleToast(): ConsoleToasts;
39
- //#endregion
37
+ export declare function useConsoleToast(): ConsoleToasts;
@@ -1,5 +1,5 @@
1
1
  import { shallowRef } from "vue";
2
- //#region src/console/runtime/client/toast.ts
2
+ // src/console/runtime/client/toast.ts
3
3
  /** Default toast duration, and the longer one for a toast with an Undo action (Geist: 5–10 seconds). */
4
4
  const consoleToastDuration = 4e3;
5
5
  const consoleUndoToastDuration = 8e3;
@@ -31,5 +31,4 @@ function useConsoleToast() {
31
31
  toasts
32
32
  };
33
33
  }
34
- //#endregion
35
34
  export { consoleToastDuration, consoleUndoToastDuration, useConsoleToast };
@@ -1,4 +1,3 @@
1
- //#region src/console/runtime/client/workflow.d.ts
2
1
  /** One Workflow run as the Workflows page shows it. */
3
2
  export interface ConsoleWorkflowRunView {
4
3
  error?: string;
@@ -16,5 +15,4 @@ export declare function isConsoleWorkflowRunActive(status: string): boolean;
16
15
  export declare function startConsoleWorkflow(base: string, workflow: string, payload: unknown): Promise<ConsoleWorkflowRunView>;
17
16
  export declare function readConsoleWorkflow(base: string, run: Pick<ConsoleWorkflowRunView, "id" | "workflow">): Promise<ConsoleWorkflowRunView>;
18
17
  export declare function cancelConsoleWorkflow(base: string, run: Pick<ConsoleWorkflowRunView, "id" | "workflow">): Promise<ConsoleWorkflowRunView>;
19
- export declare function resumeConsoleWorkflow(base: string, token: string, payload: unknown): Promise<void>;
20
- //#endregion
18
+ export declare function resumeConsoleWorkflow(base: string, token: string, payload: unknown): Promise<void>;
@@ -1,6 +1,6 @@
1
- import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-Bm3JKYjz.js";
2
- import { u as requestConsole } from "../../../request-DE8w_cSM.js";
3
- //#region src/console/runtime/client/workflow.ts
1
+ import { u as requestConsole } from "../../../request-Cl68STwT.js";
2
+ import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-CBtvqI30.js";
3
+ // src/console/runtime/client/workflow.ts
4
4
  function record(value) {
5
5
  return value instanceof Object && !Array.isArray(value) ? Object.fromEntries(Object.entries(value)) : void 0;
6
6
  }
@@ -75,5 +75,4 @@ async function resumeConsoleWorkflow(base, token, payload) {
75
75
  method: "POST"
76
76
  });
77
77
  }
78
- //#endregion
79
78
  export { cancelConsoleWorkflow, isConsoleWorkflowRunActive, parseConsoleWorkflowPayload, parseConsoleWorkflowRun, readConsoleWorkflow, resumeConsoleWorkflow, startConsoleWorkflow };
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { CopyButton } from "@vite-hub/ui";
2
3
  import { computed, onMounted, ref, shallowRef, watch } from "vue";
3
4
 
4
5
  import type { ConsoleApiKey } from "../client/account";
@@ -71,9 +72,8 @@ async function create(): Promise<void> {
71
72
  createBusy.value = false;
72
73
  }
73
74
 
74
- async function copyKey(): Promise<void> {
75
- const copied = created.value ? await navigator.clipboard.writeText(created.value).then(() => true, () => false) : false;
76
- toast.show({ title: copied ? "API key copied" : "The browser blocked the clipboard. Select the key and copy it." });
75
+ function copyKeyFailed(): void {
76
+ toast.show({ title: "The browser blocked the clipboard. Select the key and copy it." });
77
77
  }
78
78
 
79
79
  async function revoke(): Promise<void> {
@@ -146,7 +146,7 @@ function detail(key: ConsoleApiKey): string {
146
146
  <template #body>
147
147
  <div v-if="created" class="flex gap-2">
148
148
  <UInput :model-value="created" readonly aria-label="API key" class="min-w-0 flex-1 font-mono" @focus="($event.target as HTMLInputElement).select()" />
149
- <UButton icon="i-lucide-copy" color="neutral" variant="outline" label="Copy" @click="copyKey" />
149
+ <CopyButton :value="created" color="neutral" variant="outline" label="Copy" @error="copyKeyFailed" />
150
150
  </div>
151
151
  <form v-else id="vitehub-api-key-create" class="grid gap-4" @submit.prevent="create">
152
152
  <UFormField label="Name" name="name" required :error="createProblem" :ui="{ error: createProblem ? undefined : 'mt-0' }">
@@ -4,26 +4,27 @@ import { computed, onMounted, ref, shallowRef, watch } from "vue";
4
4
  import type { DropdownMenuItem } from "@nuxt/ui";
5
5
  import { useCopy } from "@vite-hub/ui";
6
6
 
7
- import type { ConsoleAccountAppStatus, ConsoleAccountProject } from "../client/account";
8
- import type { ConsoleProjectBuild } from "../client/project-link";
7
+ import type { ConsoleAccountAppStatus, ConsoleAccountCheck, ConsoleAccountProject } from "../client/account";
9
8
  import { accountAppStatusLabels, loadConsoleTeam } from "../client/account";
9
+ import { consoleAppIdentity } from "../client/app-identity";
10
+ import { consoleAuthorAvatarUrl, consoleCommentsSiteUrl } from "../client/project-link";
10
11
  import { accountProjectPath, canManageConsoleProjects, consoleProjectDisplayName, linkAccountProject, openAccountProject, showConsoleAccountPage, useConsoleProjects } from "../client/project-session";
11
- import { consoleProjectHost } from "../client/projects";
12
+ import { consoleProjectHost, consoleProjectTarget } from "../client/projects";
12
13
  import ConsoleAccountRename from "./console-account-rename.vue";
13
14
  import { useConsoleToast } from "../client/toast";
14
15
  import ConsoleAccountSnippet from "./console-account-snippet.vue";
15
16
  import ConsoleAccountUnlink from "./console-account-unlink.vue";
17
+ import ConsoleAppLogo from "./console-app-logo.vue";
16
18
  import ConsoleRelativeTime from "./console-relative-time.vue";
17
19
  import Icon from "./console-icon.vue";
18
20
 
19
21
  /**
20
22
  * Home of an `account` Console. Until the team has a connected app, it is the setup checklist, and the first app is
21
- * linked here without a dialog. After that, it lists the apps.
23
+ * linked here without a dialog. After that, it is the table of apps.
22
24
  */
23
25
  const props = defineProps<{
24
26
  status: Record<string, ConsoleAccountAppStatus>;
25
- /** The build that each connected app reported, by app id. */
26
- builds?: Record<string, ConsoleProjectBuild>;
27
+ checks?: Record<string, ConsoleAccountCheck>;
27
28
  }>();
28
29
 
29
30
  const projects = useConsoleProjects();
@@ -32,12 +33,29 @@ const team = computed(() => account.value?.teams.find(item => item.id === accoun
32
33
  const teamName = computed(() => team.value?.name ?? "This team");
33
34
  const apps = computed(() => account.value?.projects ?? []);
34
35
  const manage = computed(() => account.value ? canManageConsoleProjects(account.value) : false);
35
- // Each app row with its Last deploy cell, from the build that the app reported in its check.
36
+ const filter = ref("");
37
+ const failedAvatars = ref(new Set<string>());
38
+ function markAvatarFailed(url: string | undefined) {
39
+ if (url) failedAvatars.value.add(url);
40
+ }
36
41
  const rows = computed(() => apps.value.map((app) => {
37
- const build = props.builds?.[app.id];
38
- const deploy = build && { author: build.commit?.author, message: build.commit?.message ?? "Deployed", sha: build.commit?.sha.slice(0, 7), time: build.time };
39
- return { app, deploy };
42
+ const check = props.checks?.[app.id];
43
+ const build = check?.build;
44
+ const login = build?.commit?.login;
45
+ const deploy = build && { author: build.commit?.author ?? login, avatar: login && consoleAuthorAvatarUrl(login), message: build.commit?.message, sha: build.commit?.sha.slice(0, 7), time: build.time };
46
+ const site = `${consoleProjectTarget(app).url}/`;
47
+ return {
48
+ app,
49
+ identity: consoleAppIdentity(app, name(app)),
50
+ deploy,
51
+ site,
52
+ comments: check?.comments && { ...check.comments, url: consoleCommentsSiteUrl(site) },
53
+ };
40
54
  }));
55
+ const shownRows = computed(() => {
56
+ const query = filter.value.trim().toLowerCase();
57
+ return query ? rows.value.filter(row => `${row.identity.name} ${row.identity.host}`.toLowerCase().includes(query)) : rows.value;
58
+ });
41
59
  const firstName = computed(() => account.value?.user.name.split(/\s+/)[0] ?? "");
42
60
  const shared = ref(false);
43
61
 
@@ -69,7 +87,7 @@ function reportedName(app: ConsoleAccountProject): string {
69
87
  * the page tools. Anyone of the team can share it: it holds no secret.
70
88
  */
71
89
  function siteEntry(app: ConsoleAccountProject): string {
72
- return `${app.url.replace(/\/+$/, "")}/_vitehub`;
90
+ return app.publicKey === null ? app.url : `${app.url.replace(/\/+$/, "")}/_vitehub`;
73
91
  }
74
92
 
75
93
  const toast = useConsoleToast();
@@ -82,16 +100,17 @@ async function copySiteEntry(app: ConsoleAccountProject): Promise<void> {
82
100
  }
83
101
 
84
102
  function appActions(app: ConsoleAccountProject): DropdownMenuItem[][] {
85
- const copy: DropdownMenuItem = { icon: "i-lucide-copy", label: "Copy the /_vitehub link", onSelect: () => void copySiteEntry(app) };
103
+ const copy: DropdownMenuItem = { icon: "i-lucide-copy", label: app.publicKey === null ? "Copy site URL" : "Copy the /_vitehub link", onSelect: () => void copySiteEntry(app) };
86
104
  return [[copy], ...(manage.value ? [[{ icon: "i-lucide-pencil", label: "Rename app", onSelect: () => askRename(app) }], [{ icon: "i-lucide-unlink", label: "Unlink app", color: "error" as const, onSelect: () => askUnlink(app) }]] : [])];
87
105
  }
88
106
 
89
107
  const url = ref("");
108
+ const commentsOnly = shallowRef(false);
90
109
  const busy = ref(false);
91
110
  const problem = ref<string>();
92
111
 
93
112
  const linked = computed(() => apps.value.length > 0);
94
- const connected = computed(() => apps.value.some(app => props.status[app.id] === "connected"));
113
+ const connected = computed(() => apps.value.some(app => app.publicKey === null || props.status[app.id] === "connected"));
95
114
  const checking = computed(() => apps.value.some(app => props.status[app.id] === "checking"));
96
115
  // The app that step 3 opens: one that is not connected and not still being checked.
97
116
  const setupApp = computed(() => apps.value.find(app => ["setup", "unconfigured", "unreachable"].includes(props.status[app.id] ?? "checking")));
@@ -153,7 +172,7 @@ async function link(): Promise<void> {
153
172
  busy.value = true;
154
173
  problem.value = undefined;
155
174
  try {
156
- await linkAccountProject(url.value);
175
+ await linkAccountProject(url.value, undefined, commentsOnly.value ? "site" : undefined);
157
176
  }
158
177
  catch (error) {
159
178
  problem.value = error instanceof Error ? error.message : "Try again.";
@@ -163,7 +182,7 @@ async function link(): Promise<void> {
163
182
  </script>
164
183
 
165
184
  <template>
166
- <div class="grid max-w-2xl gap-10">
185
+ <div class="grid gap-10" :class="{ 'max-w-2xl': !setupDone }">
167
186
  <header v-if="!setupDone" class="grid gap-1">
168
187
  <div class="flex items-baseline justify-between gap-4">
169
188
  <h2 class="text-xl font-semibold text-balance text-highlighted">{{ firstName ? `Welcome, ${firstName}` : "Welcome" }}</h2>
@@ -176,39 +195,92 @@ async function link(): Promise<void> {
176
195
  </p>
177
196
  </header>
178
197
 
179
- <section v-if="setupDone" class="grid gap-3" aria-labelledby="vitehub-home-apps">
180
- <div class="flex items-center justify-between gap-2">
181
- <h2 id="vitehub-home-apps" class="text-sm font-semibold text-highlighted">Apps</h2>
182
- <UButton v-if="manage" size="sm" color="neutral" variant="ghost" icon="i-lucide-plus" label="Link an app" @click="projects.linkOpen.value = true" />
198
+ <section v-if="setupDone" class="grid grid-cols-1 gap-4" aria-labelledby="vitehub-account-title">
199
+ <div class="flex items-center gap-2">
200
+ <UInput v-model="filter" type="search" icon="i-lucide-search" placeholder="Filter apps" aria-label="Filter apps" class="min-w-0 flex-1 sm:w-64 sm:flex-none" />
201
+ <UButton v-if="manage" class="ms-auto" icon="i-lucide-plus" label="Link app" @click="projects.linkOpen.value = true" />
183
202
  </div>
184
- <ul class="vitehub-account-list">
185
- <li v-for="{ app, deploy } in rows" :key="app.id" class="vitehub-account-list__item">
186
- <a :href="accountProjectPath(app.id)" class="vitehub-account-list__row" data-focus-inset @click="openApp($event, app.id)">
187
- <span class="vitehub-account-shell__dot" :data-status="status[app.id] ?? 'checking'" aria-hidden="true" />
188
- <span class="grid min-w-0 flex-1 text-start">
189
- <span class="truncate text-sm font-medium text-highlighted">{{ name(app) }}</span>
190
- <span v-if="name(app) !== consoleProjectHost(app)" class="truncate font-mono text-xs text-muted">{{ consoleProjectHost(app) }}</span>
191
- </span>
192
- <!-- The last deploy: when, which commit, and its message. A phone keeps the name and the status. -->
193
- <span v-if="deploy" class="hidden min-w-0 flex-1 text-start sm:grid">
194
- <span class="truncate text-xs text-toned">{{ deploy.message }}</span>
195
- <span class="flex min-w-0 items-center gap-1.5 text-xs text-muted">
196
- <span v-if="deploy.sha" class="shrink-0 font-mono">{{ deploy.sha }}</span>
197
- <span class="shrink-0"><ConsoleRelativeTime :value="deploy.time" /></span>
198
- <span v-if="deploy.author" class="truncate">by {{ deploy.author }}</span>
199
- </span>
200
- </span>
201
- <span class="text-xs text-muted">{{ accountAppStatusLabels[status[app.id] ?? "checking"] }}</span>
202
- <Icon name="i-lucide-chevron-right" class="vitehub-account-icon shrink-0 text-muted" aria-hidden="true" />
203
- </a>
204
- <UTooltip :text="`Open ${consoleProjectHost(app)} with your tools`">
205
- <UButton class="shrink-0" icon="i-lucide-external-link" color="neutral" variant="ghost" size="sm" :href="siteEntry(app)" target="_blank" rel="noopener" :aria-label="`Open ${consoleProjectHost(app)} with your tools`" />
206
- </UTooltip>
207
- <UDropdownMenu :items="appActions(app)" :content="{ align: 'end' }">
208
- <UButton class="me-2 shrink-0" icon="i-lucide-ellipsis" color="neutral" variant="ghost" size="sm" :aria-label="`More actions for ${name(app)}`" />
209
- </UDropdownMenu>
210
- </li>
211
- </ul>
203
+ <div v-if="shownRows.length" class="overflow-x-auto rounded-lg border border-default">
204
+ <table class="vitehub-apps">
205
+ <thead>
206
+ <tr>
207
+ <th scope="col">App</th>
208
+ <th scope="col" class="max-sm:hidden">Last deploy</th>
209
+ <th scope="col">Status</th>
210
+ <th scope="col"><span class="sr-only">Actions</span></th>
211
+ </tr>
212
+ </thead>
213
+ <tbody>
214
+ <tr v-for="row in shownRows" :key="row.app.id">
215
+ <td>
216
+ <!-- The link covers the row, and the actions sit above it. -->
217
+ <a :href="accountProjectPath(row.app.id)" class="vitehub-apps__open" data-focus-inset @click="openApp($event, row.app.id)">
218
+ <ConsoleAppLogo :app="row.identity" class="vitehub-apps__logo" />
219
+ <span class="grid min-w-0">
220
+ <span class="truncate font-medium text-highlighted">{{ row.identity.name }}</span>
221
+ <span v-if="row.identity.host !== row.identity.name" class="truncate font-mono text-xs text-muted">{{ row.identity.host }}</span>
222
+ </span>
223
+ </a>
224
+ </td>
225
+ <td class="vitehub-apps__deploy max-sm:hidden">
226
+ <span v-if="row.deploy" class="flex min-w-0 items-center gap-2" :title="row.deploy.message">
227
+ <img v-if="row.deploy.avatar && !failedAvatars.has(row.deploy.avatar)" :key="row.deploy.avatar" :src="row.deploy.avatar" alt="" width="18" height="18" class="vitehub-apps__avatar" :title="row.deploy.author" loading="lazy" referrerpolicy="no-referrer" @error="markAvatarFailed(row.deploy?.avatar)">
228
+ <span v-else-if="row.deploy.author" class="vitehub-apps__avatar" :title="row.deploy.author" aria-hidden="true">{{ row.deploy.author.charAt(0).toUpperCase() }}</span>
229
+ <ConsoleRelativeTime :value="row.deploy.time" class="shrink-0 text-default" />
230
+ <template v-if="row.deploy.sha">
231
+ <span class="shrink-0 text-dimmed" aria-hidden="true">·</span>
232
+ <span class="shrink-0 font-mono text-xs text-muted">{{ row.deploy.sha }}</span>
233
+ </template>
234
+ <span v-if="row.deploy.message" class="truncate text-muted">{{ row.deploy.message }}</span>
235
+ <span v-if="row.deploy.author" class="sr-only">by {{ row.deploy.author }}</span>
236
+ </span>
237
+ <span v-else class="text-dimmed">{{ status[row.app.id] === "connected" ? "No build recorded" : "" }}</span>
238
+ </td>
239
+ <td class="whitespace-nowrap">
240
+ <span class="inline-flex items-center gap-1.5 text-muted">
241
+ <span class="vitehub-account-shell__dot" :data-status="status[row.app.id] ?? 'checking'" aria-hidden="true" />
242
+ {{ accountAppStatusLabels[status[row.app.id] ?? "checking"] }}
243
+ </span>
244
+ </td>
245
+ <td>
246
+ <span class="vitehub-apps__actions">
247
+ <span class="vitehub-apps__hover">
248
+ <UTooltip :text="`Open ${row.identity.host} with your tools`">
249
+ <UButton size="sm" color="neutral" variant="ghost" icon="i-lucide-external-link" label="Visit" :to="siteEntry(row.app)" target="_blank" rel="noopener" :aria-label="`Open ${row.identity.host} with your tools`" />
250
+ </UTooltip>
251
+ <UDropdownMenu :items="appActions(row.app)" :content="{ align: 'end' }">
252
+ <UButton icon="i-lucide-ellipsis" color="neutral" variant="ghost" size="sm" :aria-label="`More actions for ${row.identity.name}`" />
253
+ </UDropdownMenu>
254
+ </span>
255
+ <UButton
256
+ v-if="row.comments && status[row.app.id] === 'connected'"
257
+ size="sm"
258
+ color="neutral"
259
+ variant="outline"
260
+ icon="i-lucide-message-square-plus"
261
+ :to="row.comments.url"
262
+ target="_blank"
263
+ rel="noreferrer"
264
+ :aria-label="row.comments.open === undefined ? `Comment on ${row.identity.name}` : `Comment on ${row.identity.name}, ${row.comments.open} open`"
265
+ >
266
+ <span class="max-sm:sr-only">Comment</span>
267
+ <span v-if="row.comments.open" class="vitehub-apps__count">{{ row.comments.open }}</span>
268
+ </UButton>
269
+ </span>
270
+ </td>
271
+ </tr>
272
+ </tbody>
273
+ </table>
274
+ </div>
275
+ <UEmpty
276
+ v-else
277
+ variant="naked"
278
+ class="py-16"
279
+ icon="i-lucide-search"
280
+ title="No matching apps"
281
+ :description="`No app name or address contains “${filter.trim()}”.`"
282
+ :actions="[{ label: 'Clear filter', color: 'neutral', variant: 'outline', onClick: () => { filter = ''; } }]"
283
+ />
212
284
  <ConsoleAccountUnlink v-if="unlinking" v-model:open="unlinkOpen" :project-id="unlinking.id" :name="name(unlinking)" />
213
285
  <ConsoleAccountRename v-if="renaming" v-model:open="renameOpen" :project-id="renaming.id" :label="renaming.label" :reported="reportedName(renaming)" />
214
286
  </section>
@@ -233,16 +305,17 @@ async function link(): Promise<void> {
233
305
  <div class="vitehub-account-step__body">
234
306
  <h3 class="vitehub-account-step__title"><span class="sr-only">{{ stepLabel(1, steps[1].done) }} </span>Link an app</h3>
235
307
  <p v-if="!steps[1].done" class="vitehub-account-step__text">
236
- <template v-if="manage">Enable Console access, deploy your app, then enter its URL.</template>
308
+ <template v-if="manage">{{ commentsOnly ? "Enter the URL of the site you want to review." : "Enable Console access, deploy your app, then enter its URL." }}</template>
237
309
  <template v-else>Only owners and admins of {{ teamName }} link apps. Ask one of them to link yours.</template>
238
310
  </p>
239
311
  <template v-if="active === 'link' && manage">
240
- <ConsoleAccountSnippet class="vitehub-account-step__wide" />
312
+ <ConsoleAccountSnippet v-if="!commentsOnly" class="vitehub-account-step__wide" />
241
313
  <form class="vitehub-account-step__wide grid gap-1.5" @submit.prevent="link">
242
314
  <div class="flex flex-wrap gap-2">
243
315
  <UInput v-model="url" type="url" inputmode="url" autocomplete="url" placeholder="https://app.example.com" aria-label="App URL" required :aria-invalid="problem ? true : undefined" :aria-describedby="problem ? 'vitehub-home-link-problem' : undefined" class="min-w-0 flex-1 basis-56" />
244
- <UButton type="submit" icon="i-lucide-link" label="Link app" class="justify-center max-sm:w-full" :loading="busy" />
316
+ <UButton type="submit" icon="i-lucide-link" :label="commentsOnly ? 'Register site' : 'Link app'" class="justify-center max-sm:w-full" :loading="busy" />
245
317
  </div>
318
+ <UCheckbox v-model="commentsOnly" label="Hosted Comments only" />
246
319
  <p v-if="problem" id="vitehub-home-link-problem" role="alert" class="text-[13px] text-error">{{ problem }}</p>
247
320
  </form>
248
321
  </template>
@@ -391,7 +464,7 @@ async function link(): Promise<void> {
391
464
  font-weight: 500;
392
465
  }
393
466
 
394
- /* Rows, not a table: one bordered list, a hairline between rows. */
467
+ /* Rows, not a table: one bordered list, a hairline between rows. Members and Settings use it too. */
395
468
  .vitehub-account-list {
396
469
  border: 1px solid var(--border);
397
470
  border-radius: 0.625rem;
@@ -424,4 +497,110 @@ a.vitehub-account-list__row:hover {
424
497
  .vitehub-account-list__item:hover {
425
498
  background: var(--muted);
426
499
  }
500
+
501
+ /* The Apps table: one row per app. The link of the first cell covers the row, and the actions sit above it. */
502
+ .vitehub-apps {
503
+ font-size: 0.8125rem;
504
+ text-align: start;
505
+ width: 100%;
506
+ }
507
+
508
+ .vitehub-apps th {
509
+ border-bottom: 1px solid var(--border);
510
+ color: var(--muted-foreground);
511
+ font-size: 0.75rem;
512
+ font-weight: 400;
513
+ height: 2rem;
514
+ padding-inline: 0.75rem;
515
+ text-align: start;
516
+ white-space: nowrap;
517
+ }
518
+
519
+ .vitehub-apps td {
520
+ height: 3.25rem;
521
+ padding-inline: 0.75rem;
522
+ vertical-align: middle;
523
+ }
524
+
525
+ .vitehub-apps tbody tr {
526
+ position: relative;
527
+ }
528
+
529
+ .vitehub-apps tbody tr + tr td {
530
+ border-top: 1px solid var(--border);
531
+ }
532
+
533
+ .vitehub-apps tbody tr:hover td {
534
+ background: var(--muted);
535
+ }
536
+
537
+ .vitehub-apps__open {
538
+ align-items: center;
539
+ display: flex;
540
+ gap: 0.625rem;
541
+ min-width: 9rem;
542
+ }
543
+
544
+ .vitehub-apps__open::after {
545
+ content: "";
546
+ inset: 0;
547
+ position: absolute;
548
+ }
549
+
550
+ .vitehub-apps .vitehub-apps__logo {
551
+ height: 1.5rem;
552
+ width: 1.5rem;
553
+ }
554
+
555
+ /* The Last deploy cell takes the free width and cuts the commit message. */
556
+ .vitehub-apps__deploy {
557
+ max-width: 0;
558
+ width: 45%;
559
+ }
560
+
561
+ .vitehub-apps__avatar {
562
+ align-items: center;
563
+ background: var(--ui-bg-accented);
564
+ border-radius: 999px;
565
+ color: var(--foreground);
566
+ display: inline-flex;
567
+ flex: none;
568
+ font-size: 0.625rem;
569
+ font-weight: 600;
570
+ height: 1.125rem;
571
+ justify-content: center;
572
+ width: 1.125rem;
573
+ }
574
+
575
+ .vitehub-apps__actions {
576
+ align-items: center;
577
+ display: flex;
578
+ gap: 0.25rem;
579
+ justify-content: flex-end;
580
+ position: relative;
581
+ z-index: 1;
582
+ }
583
+
584
+ .vitehub-apps__count {
585
+ color: var(--muted-foreground);
586
+ font-variant-numeric: tabular-nums;
587
+ }
588
+
589
+ /* Visit and the menu show on the row that the pointer or the focus is on. A touch screen always shows them. */
590
+ @media (hover: hover) and (pointer: fine) {
591
+ .vitehub-apps__hover {
592
+ opacity: 0;
593
+ }
594
+
595
+ .vitehub-apps tbody tr:hover .vitehub-apps__hover,
596
+ .vitehub-apps__hover:focus-within,
597
+ .vitehub-apps__hover:has([data-state="open"]) {
598
+ opacity: 1;
599
+ }
600
+ }
601
+
602
+ .vitehub-apps__hover {
603
+ display: inline-flex;
604
+ gap: 0.25rem;
605
+ }
427
606
  </style>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { ref, watch } from "vue";
2
+ import { ref, shallowRef, watch } from "vue";
3
3
 
4
4
  import { linkAccountProject } from "../client/project-session";
5
5
  import ConsoleAccountSnippet from "./console-account-snippet.vue";
@@ -13,6 +13,7 @@ const open = defineModel<boolean>("open", { required: true });
13
13
  const props = defineProps<{ url?: string }>();
14
14
  const url = ref("");
15
15
  const label = ref("");
16
+ const commentsOnly = shallowRef(false);
16
17
  const busy = ref(false);
17
18
  const problem = ref<string>();
18
19
 
@@ -23,6 +24,7 @@ watch(open, (value) => {
23
24
  }
24
25
  url.value = "";
25
26
  label.value = "";
27
+ commentsOnly.value = false;
26
28
  problem.value = undefined;
27
29
  busy.value = false;
28
30
  });
@@ -32,7 +34,7 @@ async function link(): Promise<void> {
32
34
  busy.value = true;
33
35
  problem.value = undefined;
34
36
  try {
35
- await linkAccountProject(url.value, label.value);
37
+ await linkAccountProject(url.value, label.value, commentsOnly.value ? "site" : undefined);
36
38
  }
37
39
  catch (error) {
38
40
  problem.value = error instanceof Error ? error.message : "Try again.";
@@ -42,10 +44,11 @@ async function link(): Promise<void> {
42
44
  </script>
43
45
 
44
46
  <template>
45
- <UModal v-model:open="open" title="Link an app" description="Enable Console access, deploy your app, then enter its URL." :ui="{ content: 'sm:max-w-[440px]' }">
47
+ <UModal v-model:open="open" title="Link an app" description="Enter the URL of your deployed app or site." :ui="{ content: 'sm:max-w-[440px]' }">
46
48
  <template #body>
47
49
  <form id="vitehub-account-link" class="grid gap-4" @submit.prevent="link">
48
- <ConsoleAccountSnippet />
50
+ <UCheckbox v-model="commentsOnly" label="Hosted Comments only" description="Use a browser script to add page review." />
51
+ <ConsoleAccountSnippet v-if="!commentsOnly" />
49
52
  <UFormField label="App URL" name="url" required :error="problem" :ui="{ error: problem ? undefined : 'mt-0' }">
50
53
  <!-- Nuxt UI renders the error without a live region, so the message announces itself here. -->
51
54
  <template #error="{ error }">
@@ -61,7 +64,7 @@ async function link(): Promise<void> {
61
64
  <template #footer>
62
65
  <div class="flex w-full justify-end gap-2">
63
66
  <UButton color="neutral" variant="ghost" label="Cancel" @click="open = false" />
64
- <UButton type="submit" form="vitehub-account-link" label="Link app" :loading="busy" />
67
+ <UButton type="submit" form="vitehub-account-link" :label="commentsOnly ? 'Register site' : 'Link app'" :loading="busy" />
65
68
  </div>
66
69
  </template>
67
70
  </UModal>
@@ -8,11 +8,8 @@ import { openAccountProject } from "../client/project-session";
8
8
  import { consoleProjectHost } from "../client/projects";
9
9
  import { useConsoleToast } from "../client/toast";
10
10
  import ConsoleAccountUnlink from "./console-account-unlink.vue";
11
+ import ConsoleHostedCommentsEmbed from "./console-hosted-comments-embed.vue";
11
12
 
12
- /**
13
- * The step after linking an app to an `account` Console: the app must keep the public key of the link. The page shows
14
- * the line to set, and asks the Console server to check the app again.
15
- */
16
13
  const props = defineProps<{ project: ConsoleAccountProject }>();
17
14
  const emit = defineEmits<{ checked: [status: ConsoleAccountAppStatus] }>();
18
15
 
@@ -48,7 +45,14 @@ async function check(): Promise<void> {
48
45
  </script>
49
46
 
50
47
  <template>
51
- <div class="grid max-w-2xl gap-6">
48
+ <div v-if="project.publicKey === null" class="grid max-w-2xl gap-6">
49
+ <ConsoleHostedCommentsEmbed :project-id="project.id" />
50
+ <div class="flex flex-wrap gap-2">
51
+ <UButton icon="i-lucide-external-link" label="Open site" :to="`${project.url}?vitehub`" target="_blank" rel="noopener" />
52
+ <UButton color="neutral" variant="ghost" icon="i-lucide-unlink" :label="`Unlink ${name}`" @click="unlinking = true" />
53
+ </div>
54
+ </div>
55
+ <div v-else class="grid max-w-2xl gap-6">
52
56
  <p class="text-sm text-pretty text-muted">
53
57
  {{ host }} needs <code class="rounded-sm bg-elevated px-1 py-px font-mono text-[0.9em] whitespace-nowrap text-highlighted">console: true</code> in its config.
54
58
  Then add this environment variable to its deployment settings, redeploy, and check the connection.
@@ -76,7 +80,6 @@ async function check(): Promise<void> {
76
80
  </div>
77
81
  <p role="status" class="text-[13px] leading-5 text-muted">{{ result }}</p>
78
82
  </div>
79
-
80
- <ConsoleAccountUnlink v-model:open="unlinking" :project-id="project.id" :name="name" />
81
83
  </div>
84
+ <ConsoleAccountUnlink v-model:open="unlinking" :project-id="project.id" :name="name" />
82
85
  </template>