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.
- package/README.md +38 -14
- package/dist/_internal/runtime/browser-errors.d.ts +12 -4
- package/dist/_internal/runtime/browser-errors.js +69 -27
- package/dist/_internal/runtime/redirects.d.ts +1 -2
- package/dist/_internal/runtime/redirects.js +2 -3
- package/dist/_internal/runtime/request-policy.d.ts +11 -2
- package/dist/_internal/runtime/request-policy.js +25 -6
- package/dist/_internal/runtime/security.d.ts +1 -2
- package/dist/_internal/runtime/security.js +16 -3
- package/dist/{access-BDST818p.js → access-BBHk9b5P.js} +30 -20
- package/dist/{access-policy-DjBKLo3c.js → access-policy-BM48XstY.js} +5 -6
- package/dist/{access-policy-CGXhO3Ee.d.ts → access-policy-CUbJLvlR.d.ts} +4 -8
- package/dist/{account-BnOAU055.d.ts → account-CoAO1F8G.d.ts} +9 -7
- package/dist/agent/invocations/postgres.d.ts +1 -0
- package/dist/agent/invocations/postgres.js +2 -0
- package/dist/{agent-invocations.post-CcPvfA0n.js → agent-invocations.post-BAC1aHnG.js} +16 -18
- package/dist/agents-BClUWOj7.js +1 -0
- package/dist/{agents-BDeazoAW.js → agents-Cz_uhhov.js} +4 -5
- package/dist/{agents-C94A4N9u.d.ts → agents-Gyw4VKPt.d.ts} +0 -2
- package/dist/auth/server.js +1 -2
- package/dist/{auth-BZOy7obk.d.ts → auth-CeKxL2xp.d.ts} +4 -8
- package/dist/{auth-operations-GcQk0O0X.js → auth-operations-arLIY2_2.js} +1 -2
- package/dist/{auth-types-CyqhWvYF.d.ts → auth-types-B4mq4YhK.d.ts} +1 -4
- package/dist/bin.js +34 -23
- package/dist/blob/nuxt-image.js +1 -2
- package/dist/{blob-CFLwMsjH.d.ts → blob-_TtxDb-t.d.ts} +1 -3
- package/dist/{blob-CpvlM8jp.js → blob-eH6j0AQj.js} +5 -6
- package/dist/browser-error-limits-B0yS95zt.js +24 -0
- package/dist/cache/operations.d.ts +2 -4
- package/dist/cache/operations.js +3 -4
- package/dist/cache.d.ts +1 -3
- package/dist/cache.js +2 -3
- package/dist/choices/testing.d.ts +1 -0
- package/dist/choices/testing.js +2 -0
- package/dist/{cli-config-wxKjF2Y0.js → cli-config-BX8H4ZCo.js} +12 -5
- package/dist/cli-config-DgpmE_7z.js +1 -0
- package/dist/cloudflare-app-types.d.ts +18 -0
- package/dist/{cloudflare-env-lookup-DKXdr4P_.js → cloudflare-env-lookup-DcN7pGlv.js} +1 -2
- package/dist/cms.js +1 -2
- package/dist/console/auth-types.d.ts +1 -1
- package/dist/console/auth.d.ts +1 -3
- package/dist/console/auth.js +2 -3
- package/dist/console/runtime/auth-operations.d.ts +1 -3
- package/dist/console/runtime/auth-operations.js +1 -2
- package/dist/console/runtime/client/account-views.d.ts +1 -3
- package/dist/console/runtime/client/account-views.js +1 -2
- package/dist/console/runtime/client/account.d.ts +1 -1
- package/dist/console/runtime/client/account.js +36 -48
- package/dist/console/runtime/client/add-primitive.ts +2 -2
- package/dist/console/runtime/client/appearance.d.ts +1 -2
- package/dist/console/runtime/client/appearance.js +1 -2
- package/dist/console/runtime/client/blob-media.d.ts +2 -4
- package/dist/console/runtime/client/blob-media.js +5 -6
- package/dist/console/runtime/client/comment-thread.d.ts +1 -3
- package/dist/console/runtime/client/comment-thread.js +11 -5
- package/dist/console/runtime/client/content-heads.d.ts +1 -2
- package/dist/console/runtime/client/content-heads.js +2 -3
- package/dist/console/runtime/client/documents.d.ts +2 -2
- package/dist/console/runtime/client/documents.js +1 -2
- package/dist/console/runtime/client/editor.d.ts +3 -5
- package/dist/console/runtime/client/editor.js +1 -2
- package/dist/console/runtime/client/env-groups.d.ts +1 -3
- package/dist/console/runtime/client/env-groups.js +1 -2
- package/dist/console/runtime/client/env-status.d.ts +1 -3
- package/dist/console/runtime/client/env-status.js +1 -2
- package/dist/console/runtime/client/format.d.ts +1 -3
- package/dist/console/runtime/client/format.js +1 -2
- package/dist/console/runtime/client/invocation-deletion.d.ts +1 -2
- package/dist/console/runtime/client/invocation-deletion.js +1 -2
- package/dist/console/runtime/client/invocation.d.ts +1 -2
- package/dist/console/runtime/client/invocation.js +4 -5
- package/dist/console/runtime/client/live.d.ts +2 -4
- package/dist/console/runtime/client/live.js +1 -2
- package/dist/console/runtime/client/mcp-client.d.ts +6 -4
- package/dist/console/runtime/client/mcp-client.js +12 -5
- package/dist/console/runtime/client/media-library.d.ts +1 -1
- package/dist/console/runtime/client/media-library.js +1 -2
- package/dist/console/runtime/client/media-uploads.d.ts +2 -4
- package/dist/console/runtime/client/media-uploads.js +2 -3
- package/dist/console/runtime/client/media.d.ts +1 -1
- package/dist/console/runtime/client/media.js +1 -2
- package/dist/console/runtime/client/operation-view.d.ts +2 -4
- package/dist/console/runtime/client/operation-view.js +4 -5
- package/dist/console/runtime/client/presence.d.ts +2 -4
- package/dist/console/runtime/client/presence.js +1 -2
- package/dist/console/runtime/client/preview.d.ts +1 -3
- package/dist/console/runtime/client/preview.js +1 -2
- package/dist/console/runtime/client/problem.d.ts +2 -4
- package/dist/console/runtime/client/problem.js +3 -4
- package/dist/console/runtime/client/project-link.d.ts +2 -2
- package/dist/console/runtime/client/project-link.js +1 -2
- package/dist/console/runtime/client/project-session.d.ts +19 -10
- package/dist/console/runtime/client/project-session.js +1 -723
- package/dist/console/runtime/client/project.d.ts +1 -3
- package/dist/console/runtime/client/project.js +1 -2
- package/dist/console/runtime/client/projects.d.ts +1 -1
- package/dist/console/runtime/client/projects.js +1 -2
- package/dist/console/runtime/client/publish.d.ts +2 -4
- package/dist/console/runtime/client/publish.js +1 -2
- package/dist/console/runtime/client/rate-limit.d.ts +1 -3
- package/dist/console/runtime/client/rate-limit.js +3 -4
- package/dist/console/runtime/client/read-only.d.ts +2 -4
- package/dist/console/runtime/client/read-only.js +2 -3
- package/dist/console/runtime/client/request.d.ts +2 -70
- package/dist/console/runtime/client/request.js +1 -2
- package/dist/console/runtime/client/route-query.d.ts +4 -5
- package/dist/console/runtime/client/route-query.js +1 -2
- package/dist/console/runtime/client/schedule-run.d.ts +1 -3
- package/dist/console/runtime/client/schedule-run.js +3 -4
- package/dist/console/runtime/client/schema-form.d.ts +1 -1
- package/dist/console/runtime/client/schema-form.js +1 -2
- package/dist/console/runtime/client/sections.d.ts +1 -1
- package/dist/console/runtime/client/sections.js +1 -2
- package/dist/console/runtime/client/site-access.d.ts +41 -10
- package/dist/console/runtime/client/site-access.js +157 -28
- package/dist/console/runtime/client/stored.d.ts +1 -3
- package/dist/console/runtime/client/stored.js +1 -2
- package/dist/console/runtime/client/ticket.d.ts +1 -1
- package/dist/console/runtime/client/ticket.js +1 -2
- package/dist/console/runtime/client/toast.d.ts +1 -3
- package/dist/console/runtime/client/toast.js +1 -2
- package/dist/console/runtime/client/workflow.d.ts +1 -3
- package/dist/console/runtime/client/workflow.js +3 -4
- package/dist/console/runtime/components/console-account-api-keys.vue +4 -4
- package/dist/console/runtime/components/console-account-home.vue +230 -51
- package/dist/console/runtime/components/console-account-link.vue +8 -5
- package/dist/console/runtime/components/console-account-setup.vue +10 -7
- package/dist/console/runtime/components/console-account-shell.vue +13 -19
- package/dist/console/runtime/components/console-account-unlink.vue +2 -3
- package/dist/console/runtime/components/console-app-settings.vue +8 -2
- package/dist/console/runtime/components/console-app.vue +1 -10
- package/dist/console/runtime/components/console-auth-activity.vue +2 -2
- package/dist/console/runtime/components/console-auth-chart.vue +1 -1
- package/dist/console/runtime/components/console-auth-overview.vue +1 -1
- package/dist/console/runtime/components/console-auth.vue +4 -4
- package/dist/console/runtime/components/console-comment-thread.vue +1 -1
- package/dist/console/runtime/components/console-definitions.vue +4 -4
- package/dist/console/runtime/components/console-document-dashboard.vue +2 -2
- package/dist/console/runtime/components/console-document-list.vue +2 -2
- package/dist/console/runtime/components/console-document-settings.vue +1 -1
- package/dist/console/runtime/components/console-env.vue +3 -3
- package/dist/console/runtime/components/console-home.vue +220 -311
- package/dist/console/runtime/components/console-hosted-comments-embed.vue +106 -0
- package/dist/console/runtime/components/console-loading.vue +1 -1
- package/dist/console/runtime/components/console-mcp-callback.vue +6 -1
- package/dist/console/runtime/components/console-mcp-connection.vue +3 -3
- package/dist/console/runtime/components/console-mcp-items.vue +4 -17
- package/dist/console/runtime/components/console-media-browser.vue +20 -30
- package/dist/console/runtime/components/console-media-crops.vue +3 -2
- package/dist/console/runtime/components/console-media-uploads.vue +11 -7
- package/dist/console/runtime/components/console-page-toolbar.vue +5 -10
- package/dist/console/runtime/components/console-schema-list.vue +85 -31
- package/dist/console/runtime/components/console-search-palette.vue +14 -5
- package/dist/console/runtime/components/console-section.vue +2 -1
- package/dist/console/runtime/components/console-session-inspector.vue +5 -0
- package/dist/console/runtime/components/console-session.css +8 -2
- package/dist/console/runtime/components/console-settings-value.vue +4 -5
- package/dist/console/runtime/components/console-sidebar.vue +9 -8
- package/dist/console/runtime/components/console-site.vue +36 -15
- package/dist/console/runtime/components/console-stat-grid.vue +3 -2
- package/dist/console/runtime/components/console-toaster.vue +3 -2
- package/dist/console/runtime/components/console-usage-chart.vue +1 -1
- package/dist/console/runtime/components/console-usage.vue +36 -18
- package/dist/console/runtime/components/invocation/internal/brand-icons.ts +10 -0
- package/dist/console/runtime/components/invocation/internal/invocation-brand.ts +6 -2
- package/dist/console/runtime/components/invocation/invocation.css +4 -27
- package/dist/console/runtime/console-route.d.ts +1 -3
- package/dist/console/runtime/console-route.js +1 -2
- package/dist/console/runtime/definitions.d.ts +1 -1
- package/dist/console/runtime/definitions.js +1 -2
- package/dist/console/runtime/diagnostics.ts +8 -1
- package/dist/console/runtime/mcp-client.d.ts +1 -1
- package/dist/console/runtime/mcp-client.js +1 -2
- package/dist/console/runtime/page/loader.js +45 -52
- package/dist/console/runtime/page-tool/account.js +26 -0
- package/dist/console/runtime/page-tool/page-tool.js +2 -3
- package/dist/console/runtime/public/skills/index.json +1 -1
- package/dist/console/runtime/public/skills/vitehub/SKILL.md +50 -7
- package/dist/console/runtime/public/skills/vitehub/agents/openai.yaml +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/primitives/email.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +1 -1
- package/dist/console/runtime/rpc.d.ts +1 -1
- package/dist/console/runtime/rpc.js +1 -2
- package/dist/console/runtime/sections.d.ts +1 -1
- package/dist/console/runtime/sections.js +1 -2
- package/dist/console/runtime/server/access-policy.d.ts +1 -1
- package/dist/console/runtime/server/access-policy.js +1 -2
- package/dist/console/runtime/server/agents.get.d.ts +2 -3
- package/dist/console/runtime/server/agents.get.js +3 -4
- package/dist/console/runtime/server/auth.d.ts +1 -1
- package/dist/console/runtime/server/auth.js +4 -5
- package/dist/console/runtime/server/blob.d.ts +1 -1
- package/dist/console/runtime/server/blob.js +1 -2
- package/dist/console/runtime/server/channel-replay.d.ts +3 -5
- package/dist/console/runtime/server/channel-replay.js +7 -7
- package/dist/console/runtime/server/database.d.ts +1 -1
- package/dist/console/runtime/server/database.get.d.ts +2 -3
- package/dist/console/runtime/server/database.get.js +4 -5
- package/dist/console/runtime/server/database.js +1 -2
- package/dist/console/runtime/server/definitions.d.ts +1 -1
- package/dist/console/runtime/server/definitions.get.d.ts +4 -6
- package/dist/console/runtime/server/definitions.get.js +5 -6
- package/dist/console/runtime/server/definitions.js +1 -2
- package/dist/console/runtime/server/development.d.ts +1 -1
- package/dist/console/runtime/server/development.js +1 -2
- package/dist/console/runtime/server/documents.d.ts +1 -1
- package/dist/console/runtime/server/documents.js +2 -2
- package/dist/console/runtime/server/env.d.ts +1 -3
- package/dist/console/runtime/server/env.get.d.ts +2 -4
- package/dist/console/runtime/server/env.get.js +7 -8
- package/dist/console/runtime/server/env.js +1 -2
- package/dist/console/runtime/server/invocation-capabilities.get.d.ts +1 -3
- package/dist/console/runtime/server/invocation-capabilities.get.js +4 -5
- package/dist/console/runtime/server/invocation-workspace.get.d.ts +3 -5
- package/dist/console/runtime/server/invocation-workspace.get.js +6 -7
- package/dist/console/runtime/server/invocation.get.d.ts +3 -5
- package/dist/console/runtime/server/invocation.get.js +8 -9
- package/dist/console/runtime/server/invocations.get.d.ts +1 -2
- package/dist/console/runtime/server/invocations.get.js +5 -6
- package/dist/console/runtime/server/logs.get.d.ts +3 -5
- package/dist/console/runtime/server/logs.get.js +7 -8
- package/dist/console/runtime/server/mcp-client-operations.d.ts +2 -4
- package/dist/console/runtime/server/mcp-client-operations.js +5 -7
- package/dist/console/runtime/server/operation-contributions.d.ts +1 -1
- package/dist/console/runtime/server/operation-contributions.js +1 -2
- package/dist/console/runtime/server/page-auth.d.ts +2 -4
- package/dist/console/runtime/server/page-auth.js +1 -2
- package/dist/console/runtime/server/page-tool.d.ts +1 -1
- package/dist/console/runtime/server/page-tool.js +12 -7
- package/dist/console/runtime/server/page-tools-route.d.ts +2 -0
- package/dist/console/runtime/server/page-tools-route.js +4 -0
- package/dist/console/runtime/server/rpc.d.ts +3 -5
- package/dist/console/runtime/server/rpc.js +12 -13
- package/dist/console/runtime/server/runtime.d.ts +1 -1
- package/dist/console/runtime/server/runtime.js +1 -2
- package/dist/console/runtime/server/search.get.d.ts +1 -3
- package/dist/console/runtime/server/search.get.js +3 -5
- package/dist/console/runtime/server/sections.d.ts +5 -5
- package/dist/console/runtime/server/sections.get.d.ts +1 -1
- package/dist/console/runtime/server/sections.get.js +8 -9
- package/dist/console/runtime/server/sections.js +6 -6
- package/dist/console/runtime/server/setup.d.ts +5 -5
- package/dist/console/runtime/server/setup.js +5 -5
- package/dist/console/runtime/server/site-entry.d.ts +1 -3
- package/dist/console/runtime/server/site-entry.js +15 -10
- package/dist/console/runtime/server/site-session.d.ts +12 -22
- package/dist/console/runtime/server/site-session.js +1 -2
- package/dist/console/runtime/server/status.get.d.ts +2 -4
- package/dist/console/runtime/server/status.get.js +6 -7
- package/dist/console/runtime/server/tickets.d.ts +1 -1
- package/dist/console/runtime/server/tickets.js +1 -2
- package/dist/console/runtime/server/usage.get.d.ts +2 -4
- package/dist/console/runtime/server/usage.get.js +8 -9
- package/dist/console/runtime/server/workspace-files.get.d.ts +3 -5
- package/dist/console/runtime/server/workspace-files.get.js +4 -5
- package/dist/console/runtime/site-access.d.ts +1 -1
- package/dist/console/runtime/site-access.js +1 -2
- package/dist/console/runtime/skills.d.ts +1 -3
- package/dist/console/runtime/skills.js +1 -2
- package/dist/console/server.d.ts +7 -11
- package/dist/console/server.js +8 -8
- package/dist/console/ui.d.ts +0 -10
- package/dist/console/ui.js +32 -28
- package/dist/console-lazy-views-VEjcbL4Q.js +1 -0
- package/dist/{console-route-CBuqZ4wO.js → console-route-DbdnLkkF.js} +3 -4
- package/dist/console.d.ts +1 -3
- package/dist/console.js +1 -2
- package/dist/{database-DyPVMjp_.d.ts → database-CPjZ3L0g.d.ts} +1 -3
- package/dist/{database-BdOBjPkS.js → database-CrgBUdIx.js} +3 -4
- package/dist/definition-catalog-1xPPtzOx.js +137 -0
- package/dist/definition-catalog-M5ua7JRS.js +1 -0
- package/dist/{definitions-BW6SvmMM.js → definitions-BFYqXchw.js} +1 -2
- package/dist/{definitions-DB4LbZ7T.d.ts → definitions-ChvMnA1L.d.ts} +0 -2
- package/dist/{definitions-Dbgxfz3I.d.ts → definitions-DRkgHKmk.d.ts} +1 -3
- package/dist/{definitions-CNq_Shkh.js → definitions-M7i2p8SR.js} +5 -6
- package/dist/deployment-CURATxjG.js +229 -0
- package/dist/deployment-l7RuKdEp.js +1 -0
- package/dist/{dev-peer-am78OsHH.js → dev-peer-DBq-isgi.js} +7 -6
- package/dist/{development-zLxOp-AO.js → development-DD567hhJ.js} +2 -3
- package/dist/{development-W5EwONyL.d.ts → development-I40mfD7B.d.ts} +1 -3
- package/dist/{diagnostics-9U_fYxMy.js → diagnostics-B2cqlCSz.js} +3 -3
- package/dist/{diagnostics-CjGiniKb.d.ts → diagnostics-BXxPggRw.d.ts} +1 -3
- package/dist/docs/nuxt.js +1 -2
- package/dist/doctor.d.ts +0 -6
- package/dist/doctor.js +15078 -2377
- package/dist/{documents-CjJTCrY8.js → documents-BOYwZ5g4.js} +7 -8
- package/dist/{documents-qrHHqlNU.js → documents-Ck_iub9w.js} +4 -5
- package/dist/{documents-BASIRZ91.d.ts → documents-DxK0tdjA.d.ts} +3 -5
- package/dist/{documents-CboVhYFz.d.ts → documents-LtkKCxtu.d.ts} +4 -8
- package/dist/durability/operations.d.ts +2 -4
- package/dist/durability/operations.js +3 -4
- package/dist/email/vue.d.ts +1 -0
- package/dist/email/vue.js +2 -0
- package/dist/{entries-Bj-jPs_J.js → entries-UFs9n1MB.js} +2 -3
- package/dist/{env-Dg1I_DWr.js → env-D-wtSupz.js} +2 -3
- package/dist/{error-diagnostics-Bm3JKYjz.js → error-diagnostics-CBtvqI30.js} +33 -22
- package/dist/{operation-definition-a5keEpCd.js → error-diagnostics-kKXseq8d.js} +11 -169
- package/dist/error-diagnostics.ts +33 -23
- package/dist/{optional-owners-BNA2OX6z.js → features-BXRKlmtN.js} +57 -345
- package/dist/features-CD5i5I8V.js +1 -0
- package/dist/{format-BOYlanIZ.js → format-Df-bS4Ly.js} +1 -2
- package/dist/gateways/testing.d.ts +1 -0
- package/dist/gateways/testing.js +2 -0
- package/dist/github-login-W-vaahWP.js +6 -0
- package/dist/{host-CkL0jjBq.js → host-DeNPYIeV.js} +1 -2
- package/dist/{http-error-Bs6e8_-8.js → http-error-BorAxJYM.js} +1 -2
- package/dist/index.d.ts +2 -8
- package/dist/index.js +5 -6
- package/dist/inspect-CWwAuL-B.js +47 -0
- package/dist/internal/agent-invocations-libsql.js +1 -2
- package/dist/internal/disabled-redis-driver.d.ts +1 -3
- package/dist/internal/disabled-redis-driver.js +2 -3
- package/dist/internal/disabled-upstash-driver.d.ts +1 -3
- package/dist/internal/disabled-upstash-driver.js +2 -3
- package/dist/internal/test-loader.d.ts +1 -3
- package/dist/internal/test-loader.js +2 -3
- package/dist/internal/test-server.js +2 -3
- package/dist/{internal-BreyUsQ6.js → internal-0C_CC601.js} +1 -2
- package/dist/{internal-CO4OqqaS.d.ts → internal-CKocv79I.d.ts} +3 -7
- package/dist/{invariant-DolT9EEx.js → invariant-Dj2R1eMr.js} +1 -2
- package/dist/{invocation-page-undo-DIZ-s3xT.js → invocation-page-undo-BEi-rO0Q.js} +5 -6
- package/dist/{invocations-CK_-G540.js → invocations-8NThe8Bx.js} +5 -6
- package/dist/{limits-BUlwWYQE.js → limits-BLo31qDR.js} +1 -2
- package/dist/logs/client.d.ts +19 -0
- package/dist/logs/client.js +11 -0
- package/dist/logs/host.d.ts +2 -4
- package/dist/logs/host.js +1 -2
- package/dist/logs/memory.d.ts +1 -1
- package/dist/logs/memory.js +1 -2
- package/dist/logs/source.d.ts +1 -1
- package/dist/logs/source.js +1 -2
- package/dist/logs.d.ts +2 -2
- package/dist/logs.js +2 -2
- package/dist/{mcp-client-CTbTbn7d.js → mcp-client-Bkh-khvr.js} +1 -2
- package/dist/{mcp-client-By4zk0vU.js → mcp-client-DiObFpDS.js} +35 -22
- package/dist/{mcp-client-C_sEmyQw.d.ts → mcp-client-Q2XbUXuP.d.ts} +1 -4
- package/dist/{media-uKX4Wy-c.d.ts → media-C79RB1oH.d.ts} +0 -2
- package/dist/{media-BHpQ-4jw.js → media-CAKz9yrp.js} +8 -9
- package/dist/{media-library-NaOMBKWS.js → media-library-BDX89xXA.js} +5 -6
- package/dist/{media-library-D9ThbXqs.d.ts → media-library-DxGu6w9z.d.ts} +0 -2
- package/dist/{memory-DTmq-Z6x.js → memory-D3EJS_Bp.js} +21 -10
- package/dist/{memory-2bbl4hcV.d.ts → memory-GK5ZGWrp.d.ts} +1 -3
- package/dist/nuxt-server-auto-imports-4aT5BD4u.js +74 -0
- package/dist/{nuxt-server-imports-DH60Z7LA.js → nuxt-server-imports-BdJqiVhT.js} +10 -18
- package/dist/nuxt.d.ts +1 -3
- package/dist/nuxt.js +339 -189
- package/dist/{object-D8pRdprI.js → object-DRSmpe04.js} +1 -2
- package/dist/{operation-contributions-DpkO_iSU.d.ts → operation-contributions-BCcQVlGb.d.ts} +1 -3
- package/dist/{operation-contributions-BdS0z3tx.js → operation-contributions-D10pjkJF.js} +4 -5
- package/dist/operation-definition-DTpNvLd8.js +164 -0
- package/dist/{operation-registry-BogGwk_I.js → operation-registry-DfQbL7vE.js} +1 -2
- package/dist/{operation-rpc-DI9txNxK.js → operation-rpc-BMdfapja.js} +3 -4
- package/dist/{operations-EOdyctDc.js → operations-CD_mu_Ww.js} +86 -9
- package/dist/operations-D7ENc68Y.js +1 -0
- package/dist/{operations-B0689BG1.d.ts → operations-DgFhA1WE.d.ts} +8 -6
- package/dist/{operations-CWP9dF3i.js → operations-vRLiH7dh.js} +35 -46
- package/dist/optional-owners-DAfShdgV.js +353 -0
- package/dist/out-Cw5Tvr92.js +20989 -0
- package/dist/{owned-paths-BnjT0FhU.js → owned-paths-MjjDftBn.js} +1 -2
- package/dist/page/pill.iife.js +25 -27
- package/dist/{page-tool-CRCK1RHV.d.ts → page-tool-BUnUbuSy.d.ts} +6 -7
- package/dist/{page-tools-BkSSBFoi.js → page-tools-BQzwuAHD.js} +28 -12
- package/dist/{page-tools-sw4I-Nqx.d.ts → page-tools-UwsfvH-B.d.ts} +2 -4
- package/dist/{page-tools-shared-D3fFoEV2.js → page-tools-shared-hJcG_xk8.js} +8 -5
- package/dist/{inspect-CDw7e0vK.js → pathe.M-eThtNZ-D4EC7Wue.js} +2 -31
- package/dist/{plugins-BqAtIEX2.d.ts → plugins-BpiTVULl.d.ts} +252 -262
- package/dist/{plugins-B-DpgDPB.js → plugins-H6-MQrsn.js} +3483 -797
- package/dist/presets/workspace.js +1 -2
- package/dist/project-BxyyclTE.js +58 -0
- package/dist/{project-CufkVP1u.d.ts → project-DKBIHOf4.d.ts} +16 -4
- package/dist/{project-DlWTGB7h.js → project-DRC67Uiu.js} +1 -2
- package/dist/{project-link-D-6UefhA.js → project-link-CeS0T8Pr.js} +57 -9
- package/dist/{project-link-BuOzBH9f.d.ts → project-link-isfdRO3Q.d.ts} +42 -6
- package/dist/{project-root-v6ba4tn7.js → project-root-mAVQGZTX.js} +1 -2
- package/dist/project-session--GN7MduT.js +764 -0
- package/dist/{projects-CAcXztf4.js → projects-BRp0iseV.js} +1 -2
- package/dist/{projects-Ddvl9EJp.d.ts → projects-mgPxrKZr.d.ts} +0 -2
- package/dist/{registry-zw6aE2N9.js → registry-B8JE5NY-.js} +1 -2
- package/dist/{registry-CDKLACCZ.js → registry-CnPC-gNu.js} +1 -2
- package/dist/{request-D7h3SQ92.d.ts → request-BC_krbEr.d.ts} +2 -4
- package/dist/request-CJCPyu2B.d.ts +70 -0
- package/dist/{request-DbFfYmCu.js → request-CQ8TkHLh.js} +4 -5
- package/dist/{request-DE8w_cSM.js → request-Cl68STwT.js} +7 -8
- package/dist/request-origin-pzWr9UUu.js +37 -0
- package/dist/rolldown-runtime-DegdyBIC.js +25 -0
- package/dist/{route-query-CRVWXIrc.js → route-query-BWVl6ZO6.js} +4 -5
- package/dist/{rpc-DIUA61pv.js → rpc-D3tsx5lZ.js} +1 -2
- package/dist/{rpc-7nlHSv3y.d.ts → rpc-oijgKQtD.d.ts} +0 -2
- package/dist/{runtime-YLWfdrtO.js → runtime-CAbuQGMP.js} +3 -4
- package/dist/{runtime-DQuHg7OO.js → runtime-CRJsqVTa.js} +2 -3
- package/dist/{runtime-B_btezs1.d.ts → runtime-Cf8R1Ztr.d.ts} +0 -2
- package/dist/{runtime-DxfJOfCd.js → runtime-CyPZMiyK.js} +2 -3
- package/dist/{runtime-OsEDfbM9.js → runtime-F0CTqBFx.js} +5 -6
- package/dist/{runtime-feature-guard-B64MMW9I.js → runtime-feature-guard-DpUn4Oxc.js} +91 -10
- package/dist/scan-module-B1A24jqP.js +1 -0
- package/dist/{scan-module-Df58L_6T.js → scan-module-BfZvDBxb.js} +2 -4
- package/dist/{schema-form-C-fy3xaU.d.ts → schema-form-Bl79Bdm-.d.ts} +0 -2
- package/dist/{secret-Dy5uqvq9.js → secret-D2KL_o2h.js} +2 -3
- package/dist/{sections-Do7X4Nwt.d.ts → sections-0qrBvGbf.d.ts} +0 -4
- package/dist/{sections-C83x0slv.js → sections-BNTdIEJw.js} +2 -3
- package/dist/{sections-BogiCmtz.d.ts → sections-BTfWK14a.d.ts} +4 -6
- package/dist/{sections-DumoLKQN.js → sections-BiCOk9qP.js} +1 -2
- package/dist/sections-DAtgYMVz.d.ts +8 -0
- package/dist/{sections-et20h8w3.js → sections-HLxb9MrG.js} +14 -7
- package/dist/{sections.get-COiLcQ0P.d.ts → sections.get-CGmtYmfu.d.ts} +2 -4
- package/dist/seo/runtime.d.ts +2 -5
- package/dist/seo/runtime.js +3 -5
- package/dist/{seo-CtLywyRx.d.ts → seo-CgW5uI9L.d.ts} +0 -2
- package/dist/seo.d.ts +1 -1
- package/dist/seo.js +1 -2
- package/dist/{server-BRJE4t-W.js → server-DsOEa4_A.js} +5 -5
- package/dist/{setup-ZbA1by7W.d.ts → setup-Ca7jtBLS.d.ts} +8 -7
- package/dist/{setup-C-5nB7aY.js → setup-DQz_i-ee.js} +16 -5
- package/dist/{site-access-BmE8HGxs.js → site-access-1JIQjY11.js} +16 -16
- package/dist/{site-access-DxfdOel1.d.ts → site-access-CUXIbbbR.d.ts} +0 -2
- package/dist/{site-access-BycrwM2v.js → site-access-CmaZ-oaL.js} +1 -2
- package/dist/site-access-Cvmjb6aw.js +1 -0
- package/dist/{site-session-odJq1dYa.js → site-session-D36fr7Wf.js} +65 -40
- package/dist/skills/operations.d.ts +1 -5
- package/dist/skills/operations.js +4 -5
- package/dist/skills/vitehub/SKILL.md +142 -0
- package/dist/skills/vitehub/agents/openai.yaml +4 -0
- package/dist/skills/vitehub/references/agent-definitions.md +36 -0
- package/dist/skills/vitehub/references/bundle.md +57 -0
- package/dist/skills/vitehub/references/capabilities-authority.md +30 -0
- package/dist/skills/vitehub/references/channels-triggers.md +27 -0
- package/dist/skills/vitehub/references/framework-composition.md +29 -0
- package/dist/skills/vitehub/references/preview-contract.md +44 -0
- package/dist/skills/vitehub/references/primitives/auth.md +14 -0
- package/dist/skills/vitehub/references/primitives/blob.md +13 -0
- package/dist/skills/vitehub/references/primitives/browser.md +17 -0
- package/dist/skills/vitehub/references/primitives/cache.md +13 -0
- package/dist/skills/vitehub/references/primitives/channels.md +11 -0
- package/dist/skills/vitehub/references/primitives/connections.md +14 -0
- package/dist/skills/vitehub/references/primitives/content.md +13 -0
- package/dist/skills/vitehub/references/primitives/database.md +15 -0
- package/dist/skills/vitehub/references/primitives/email.md +11 -0
- package/dist/skills/vitehub/references/primitives/env.md +13 -0
- package/dist/skills/vitehub/references/primitives/kv.md +13 -0
- package/dist/skills/vitehub/references/primitives/markdown-template.md +13 -0
- package/dist/skills/vitehub/references/primitives/queue.md +14 -0
- package/dist/skills/vitehub/references/primitives/rate-limit.md +11 -0
- package/dist/skills/vitehub/references/primitives/realtime.md +19 -0
- package/dist/skills/vitehub/references/primitives/sandbox-task.md +11 -0
- package/dist/skills/vitehub/references/primitives/sandbox.md +13 -0
- package/dist/skills/vitehub/references/primitives/schedule.md +11 -0
- package/dist/skills/vitehub/references/primitives/shell.md +11 -0
- package/dist/skills/vitehub/references/primitives/source.md +11 -0
- package/dist/skills/vitehub/references/primitives/workflow.md +11 -0
- package/dist/skills/vitehub/references/primitives/workspace.md +11 -0
- package/dist/skills/vitehub/references/project-patterns.md +19 -0
- package/dist/skills/vitehub/references/project-shapes.md +81 -0
- package/dist/skills/vitehub/references/proof-recovery.md +31 -0
- package/dist/skills/vitehub/references/sandboxes-hosts.md +26 -0
- package/dist/skills/vitehub/references/schedules-workflows-invocations.md +28 -0
- package/dist/skills/vitehub/references/server-primitives.md +39 -0
- package/dist/skills/vitehub/references/workspaces-sources-access.md +26 -0
- package/dist/{skills-DdpSMiCI.js → skills-C1MaGEbO.js} +1 -2
- package/dist/skills.d.ts +1 -2
- package/dist/{skills.get-Bl8cBe8u.js → skills.get-DAooGWy5.js} +3 -4
- package/dist/skills.js +1 -2
- package/dist/{source-D4wWtoHh.js → source-DYFndd0W.js} +2 -3
- package/dist/{source-S-LChQvw.d.ts → source-DemBtwla.d.ts} +0 -2
- package/dist/{stored-Dhv2qsQv.js → stored-J3TetMKf.js} +1 -2
- package/dist/task/operations.d.ts +1 -5
- package/dist/task/operations.js +3 -4
- package/dist/test/register.js +2 -3
- package/dist/test.d.ts +0 -4
- package/dist/test.js +1 -2
- package/dist/{ticket-Pr_8ZtXW.d.ts → ticket-BFWwevWN.d.ts} +0 -2
- package/dist/{ticket-Cudn1dq3.js → ticket-BwsnryuU.js} +2 -3
- package/dist/{tickets-C_0Fhc00.js → tickets-Cj9_y3gw.js} +14 -16
- package/dist/ui/motion/core.d.ts +1 -0
- package/dist/ui/motion/core.js +2 -0
- package/dist/ui/motion.d.ts +1 -0
- package/dist/ui/motion.js +2 -0
- package/dist/ui/vite.js +1 -2
- package/dist/{usage-CoQXs5nW.d.ts → usage-BduF04ks.d.ts} +0 -2
- package/dist/{usage-B4taNt4a.js → usage-ZV3TBMzE.js} +6 -5
- package/dist/{usage-index-BsGAFzyq.js → usage-index-CR_xTrXO.js} +3 -4
- package/dist/{version-DNmSsk5r.js → version-CAhBr673.js} +59 -21
- package/dist/{vite-stage-mmtwQIMA.js → vite-stage-Dmo4RgnK.js} +32 -8
- package/dist/{vue-router-C68IU1jM.d.ts → vue-router-plZJLlpm.d.ts} +120 -182
- package/dist/workspace/blob-database/postgres.d.ts +1 -0
- package/dist/workspace/blob-database/postgres.js +2 -0
- package/dist/{workspace-history-CraoERnc.js → workspace-history-B52xib2J.js} +3 -4
- package/dist/{workspace-history-CeVwBB6Q.d.ts → workspace-history-WuxgLsi4.d.ts} +0 -2
- package/package.json +190 -149
- package/dist/agents-BoWau_ei.js +0 -2
- package/dist/cli-config-UAGTmuFa.js +0 -2
- package/dist/console/runtime/server/page-session.d.ts +0 -2
- package/dist/console/runtime/server/page-session.js +0 -5
- package/dist/console-lazy-views-DXnIkdyd.js +0 -2
- package/dist/operations-CAQmIxGK.js +0 -2
- package/dist/project-C4N_Zcjl.js +0 -30
- package/dist/request-origin-Bq7mDQG9.js +0 -23
- package/dist/scan-module-D_3X08mj.js +0 -2
- package/dist/sections-CyrXbbkG.d.ts +0 -10
- package/dist/site-access-BbJUe5QI.js +0 -2
- /package/dist/{agent/channels.d.ts → channels/adapters.d.ts} +0 -0
- /package/dist/{agent/channels.js → channels/adapters.js} +0 -0
|
@@ -8,25 +8,18 @@ import type { AgentInvocationStatus } from "./invocation";
|
|
|
8
8
|
import type { ConsoleSectionId } from "../sections";
|
|
9
9
|
import { encodeAgentRouteParam, resolveConsoleRouteName } from "../console-route";
|
|
10
10
|
import type { ConsoleNavigation } from "../client/sections";
|
|
11
|
-
import {
|
|
12
|
-
consoleGuide,
|
|
13
|
-
consolePrimitives,
|
|
14
|
-
consoleSectionDetails,
|
|
15
|
-
consoleSectionGroupLabels,
|
|
16
|
-
groupConsoleSections,
|
|
17
|
-
readLastConsoleSection,
|
|
18
|
-
resolveConsoleSectionDocs,
|
|
19
|
-
resolveConsoleSectionGroup,
|
|
20
|
-
} from "../sections";
|
|
11
|
+
import { consoleSectionDetails, groupConsoleSections } from "../sections";
|
|
21
12
|
import { consoleAddablePrimitives, openConsoleAddPrimitive } from "../client/add-primitive";
|
|
22
13
|
import { isConsoleSignInRequired, requestConsole } from "../client/request";
|
|
23
14
|
import { consoleNavigationError, loadConsoleNavigation, resolveConsoleSectionDetails } from "../client/sections";
|
|
24
15
|
import { recentTimestamp } from "../client/format";
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
16
|
+
import { accountAppStatusLabels } from "../client/account";
|
|
17
|
+
import { useConsoleApp } from "../client/app-identity";
|
|
18
|
+
import { consoleAuthorAvatarUrl, consoleCompareUrl, consoleFrameworkLabels, consoleHostLabels } from "../client/project-link";
|
|
19
|
+
import { useConsoleProjects } from "../client/project-session";
|
|
27
20
|
import ConsoleMark from "./console-mark.vue";
|
|
28
|
-
import ConsoleRelativeTime from "./console-relative-time.vue";
|
|
29
21
|
import ConsolePageHeader from "./console-page-header.vue";
|
|
22
|
+
import ConsoleRelativeTime from "./console-relative-time.vue";
|
|
30
23
|
import ConsoleSearch from "./console-search.vue";
|
|
31
24
|
import ConsoleSectionIcon from "./console-section-icon.vue";
|
|
32
25
|
import ConsoleState from "./console-state.vue";
|
|
@@ -44,7 +37,6 @@ const route = useRoute();
|
|
|
44
37
|
const router = useRouter();
|
|
45
38
|
const sections = ref<ConsoleSectionId[]>([]);
|
|
46
39
|
const installedNavigation = shallowRef<ConsoleNavigation>();
|
|
47
|
-
const lastSection = ref<ConsoleSectionId>();
|
|
48
40
|
const loading = ref(true);
|
|
49
41
|
const error = ref<unknown>();
|
|
50
42
|
const sessionsLoadedAt = ref(Date.now());
|
|
@@ -73,28 +65,29 @@ const recentSessions = useCollection("vitehub-console-search", {
|
|
|
73
65
|
request: async (_endpoint, options) => await requestConsole(props.searchBase, options),
|
|
74
66
|
});
|
|
75
67
|
|
|
68
|
+
const projects = useConsoleProjects();
|
|
69
|
+
const app = useConsoleApp();
|
|
76
70
|
const availableSections = computed(() =>
|
|
77
71
|
sections.value.flatMap((section) => {
|
|
78
72
|
const details = resolveConsoleSectionDetails(installedNavigation.value, section);
|
|
79
73
|
return details ? [{ id: section, ...details }] : [];
|
|
80
74
|
}),
|
|
81
75
|
);
|
|
82
|
-
const
|
|
83
|
-
groupConsoleSections(availableSections.value).map((
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
sections: group.map((section) => ({ ...section, docs: resolveConsoleSectionDocs(section.id) })),
|
|
89
|
-
};
|
|
76
|
+
const sectionCards = computed(() =>
|
|
77
|
+
groupConsoleSections(availableSections.value).flat().map((section) => {
|
|
78
|
+
const metric = section.id === "comments" && projects.info.value?.comments
|
|
79
|
+
? { value: projects.info.value.comments.open, unit: "open" }
|
|
80
|
+
: undefined;
|
|
81
|
+
return { ...section, metric };
|
|
90
82
|
}),
|
|
91
83
|
);
|
|
92
|
-
const addablePrimitives = computed(() => consoleAddablePrimitives(sections.value));
|
|
93
84
|
const agentsEnabled = computed(() => sections.value.includes("agents"));
|
|
94
85
|
// The build that serves the app, from `project.get`. A development server has none.
|
|
95
|
-
const projects = useConsoleProjects();
|
|
96
86
|
const build = computed(() => projects.info.value?.build);
|
|
97
87
|
const compareUrl = computed(() => consoleCompareUrl(build.value));
|
|
88
|
+
const authorAvatar = computed(() => build.value?.commit?.login && consoleAuthorAvatarUrl(build.value.commit.login));
|
|
89
|
+
const failedAvatar = ref<string>();
|
|
90
|
+
const siteUrl = computed(() => projects.current.value?.url ? `${projects.current.value.url.replace(/\/+$/, "")}/` : undefined);
|
|
98
91
|
const sessionItems = computed(() =>
|
|
99
92
|
recentSessions.items.value.slice(0, 5).map((item) => ({
|
|
100
93
|
agentName: item.agentName,
|
|
@@ -105,23 +98,7 @@ const sessionItems = computed(() =>
|
|
|
105
98
|
time: recentTimestamp(item.updatedAt, sessionsLoadedAt.value),
|
|
106
99
|
})),
|
|
107
100
|
);
|
|
108
|
-
|
|
109
|
-
const summary = computed(() => {
|
|
110
|
-
const labels = availableSections.value.map(section => section.label);
|
|
111
|
-
if (!labels.length) return "Nothing in this app has a Console page yet.";
|
|
112
|
-
const shown = labels.length > 4 ? [...labels.slice(0, 3), `${labels.length - 3} more`] : labels;
|
|
113
|
-
return `This app uses ${new Intl.ListFormat("en", { type: "conjunction" }).format(shown)}.`;
|
|
114
|
-
});
|
|
115
|
-
// Learn links the Console guide and the docs of the sections that the app uses. Sections that share a page link it once.
|
|
116
|
-
const sectionGuides = computed(() => {
|
|
117
|
-
const seen = new Set<string>([consoleGuide.href]);
|
|
118
|
-
return availableSections.value.flatMap((section) => {
|
|
119
|
-
const primitive = consolePrimitives.find(entry => entry.id === section.id);
|
|
120
|
-
if (!primitive || seen.has(primitive.docs)) return [];
|
|
121
|
-
seen.add(primitive.docs);
|
|
122
|
-
return [{ description: primitive.pitch, href: primitive.docs, icon: section.icon, label: `${section.label} docs` }];
|
|
123
|
-
});
|
|
124
|
-
});
|
|
101
|
+
const addablePrimitives = computed(() => consoleAddablePrimitives(sections.value));
|
|
125
102
|
|
|
126
103
|
async function loadRecentSessions(): Promise<void> {
|
|
127
104
|
sessionsLoadedAt.value = Date.now();
|
|
@@ -193,7 +170,6 @@ async function openSession(agentName: string, invocation: string): Promise<void>
|
|
|
193
170
|
}
|
|
194
171
|
|
|
195
172
|
onMounted(() => {
|
|
196
|
-
lastSection.value = readLastConsoleSection();
|
|
197
173
|
void loadSections().then(checkIfReturned);
|
|
198
174
|
document.addEventListener("visibilitychange", checkOnReturn);
|
|
199
175
|
window.addEventListener("focus", checkOnReturn);
|
|
@@ -217,7 +193,11 @@ onBeforeUnmount(() => {
|
|
|
217
193
|
|
|
218
194
|
<UDashboardPanel id="console-home">
|
|
219
195
|
<template #header>
|
|
220
|
-
<ConsolePageHeader title="Overview" :toggle="false"
|
|
196
|
+
<ConsolePageHeader title="Overview" :toggle="false">
|
|
197
|
+
<template v-if="siteUrl" #right>
|
|
198
|
+
<UButton color="neutral" variant="outline" icon="i-lucide-external-link" label="Visit site" :to="siteUrl" target="_blank" rel="noreferrer" />
|
|
199
|
+
</template>
|
|
200
|
+
</ConsolePageHeader>
|
|
221
201
|
</template>
|
|
222
202
|
|
|
223
203
|
<template #body>
|
|
@@ -244,111 +224,66 @@ onBeforeUnmount(() => {
|
|
|
244
224
|
/>
|
|
245
225
|
<p class="mt-3 min-h-5 text-xs text-muted" role="status">{{ stillSignedOut ? "The app still refuses this Console." : "" }}</p>
|
|
246
226
|
</main>
|
|
247
|
-
<main v-else class="
|
|
248
|
-
<
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
<p class="text-sm text-muted">
|
|
261
|
-
{{ loading ? "Loading the enabled primitives…" : summary }}
|
|
262
|
-
</p>
|
|
263
|
-
</div>
|
|
264
|
-
</header>
|
|
265
|
-
|
|
266
|
-
<div v-if="loading" class="flex flex-col gap-10" aria-hidden="true">
|
|
267
|
-
<div v-for="index in 3" :key="index" class="vitehub-console__overview-block">
|
|
268
|
-
<USkeleton class="h-4 w-16 sm:mt-3" />
|
|
269
|
-
<div class="grid gap-2 py-1.5">
|
|
270
|
-
<USkeleton v-for="row in 3" :key="row" class="h-7" />
|
|
271
|
-
</div>
|
|
227
|
+
<main v-else class="vitehub-console-page">
|
|
228
|
+
<ConsoleState
|
|
229
|
+
v-if="!loading && error && !availableSections.length"
|
|
230
|
+
icon="i-lucide-cloud-off"
|
|
231
|
+
title="Could not load sections"
|
|
232
|
+
:error="error"
|
|
233
|
+
:retry="loadSections"
|
|
234
|
+
/>
|
|
235
|
+
<div v-else class="vitehub-overview">
|
|
236
|
+
<div class="grid min-w-0 content-start gap-8">
|
|
237
|
+
<!-- The skeleton has the shape of the cards, so the page does not jump when they load. -->
|
|
238
|
+
<div v-if="loading" class="vitehub-overview__cards" aria-hidden="true">
|
|
239
|
+
<USkeleton v-for="index in 4" :key="index" class="h-[5.5rem] rounded-lg" />
|
|
272
240
|
</div>
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
icon="i-lucide-cloud-off"
|
|
278
|
-
title="Could not load sections"
|
|
279
|
-
:error="error"
|
|
280
|
-
:retry="loadSections"
|
|
281
|
-
/>
|
|
282
|
-
|
|
283
|
-
<template v-else>
|
|
284
|
-
<section v-if="!availableSections.length" class="vitehub-console__overview-block" aria-labelledby="console-home-start">
|
|
285
|
-
<p class="vitehub-console__overview-label" aria-hidden="true">Get started</p>
|
|
286
|
-
<div class="sm:pt-2.5">
|
|
287
|
-
<h2 id="console-home-start" class="text-sm font-medium text-highlighted">Add your first primitive</h2>
|
|
288
|
-
<p class="mt-1 max-w-md text-sm text-pretty text-muted">
|
|
289
|
-
No primitive in this project has a Console page yet. Enable one in the ViteHub configuration, then reload the Console.
|
|
290
|
-
</p>
|
|
291
|
-
<div class="mt-4 flex flex-wrap gap-2">
|
|
292
|
-
<UButton
|
|
293
|
-
icon="i-lucide-rocket"
|
|
294
|
-
label="Start with KV"
|
|
295
|
-
target="_blank"
|
|
296
|
-
to="https://vitehub.dev/docs/getting-started/first-server-primitive"
|
|
297
|
-
/>
|
|
298
|
-
<UButton
|
|
299
|
-
:icon="consoleSectionDetails.agents.icon"
|
|
300
|
-
label="Build an Agent"
|
|
301
|
-
target="_blank"
|
|
302
|
-
to="https://vitehub.dev/docs/getting-started/first-agent"
|
|
303
|
-
variant="outline"
|
|
304
|
-
/>
|
|
305
|
-
</div>
|
|
306
|
-
</div>
|
|
241
|
+
<section v-else-if="!availableSections.length" class="grid justify-items-start gap-1 rounded-lg border border-default p-4" aria-labelledby="console-home-start">
|
|
242
|
+
<h2 id="console-home-start" class="text-sm font-medium text-highlighted">Add your first primitive</h2>
|
|
243
|
+
<p class="max-w-md text-sm text-pretty text-muted">No primitive in this app has a Console page yet.</p>
|
|
244
|
+
<UButton class="mt-3" icon="i-lucide-plus" label="Add a primitive" @click="openConsoleAddPrimitive()" />
|
|
307
245
|
</section>
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
<
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
</
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
label="Compare"
|
|
325
|
-
:to="compareUrl"
|
|
326
|
-
target="_blank"
|
|
327
|
-
rel="noopener noreferrer"
|
|
328
|
-
variant="ghost"
|
|
329
|
-
size="xs"
|
|
330
|
-
title="Compare the live commit with the default branch on GitHub"
|
|
331
|
-
/>
|
|
332
|
-
</li>
|
|
333
|
-
</ul>
|
|
246
|
+
<section v-else aria-label="Primitives" class="vitehub-overview__cards">
|
|
247
|
+
<RouterLink
|
|
248
|
+
v-for="section in sectionCards"
|
|
249
|
+
:key="section.id"
|
|
250
|
+
:to="{ name: resolveConsoleRouteName(route.name, section.routeName) }"
|
|
251
|
+
class="vitehub-overview__card"
|
|
252
|
+
>
|
|
253
|
+
<span class="flex items-center gap-2 text-[13px] font-medium text-highlighted">
|
|
254
|
+
<ConsoleSectionIcon :icon="section.icon" class="size-4 text-muted" />
|
|
255
|
+
{{ section.label }}
|
|
256
|
+
</span>
|
|
257
|
+
<span v-if="section.metric" class="mt-2 text-xl font-semibold tabular-nums text-highlighted">
|
|
258
|
+
{{ section.metric.value }}<small class="ms-1 text-[13px] font-normal text-muted">{{ section.metric.unit }}</small>
|
|
259
|
+
</span>
|
|
260
|
+
<span class="mt-1 line-clamp-2 text-xs text-pretty text-muted">{{ section.description }}</span>
|
|
261
|
+
</RouterLink>
|
|
334
262
|
</section>
|
|
335
263
|
|
|
336
|
-
<section
|
|
337
|
-
<h2 id="console-home-
|
|
264
|
+
<section class="grid gap-2" aria-labelledby="console-home-activity">
|
|
265
|
+
<h2 id="console-home-activity" class="text-sm font-semibold text-highlighted">Recent activity</h2>
|
|
338
266
|
<ul class="vitehub-console__overview-list">
|
|
339
|
-
<li v-if="recentSessions.pending.value && !sessionItems.length" class="grid gap-2 px-2 py-1.5" aria-hidden="true">
|
|
267
|
+
<li v-if="loading || (agentsEnabled && recentSessions.pending.value && !sessionItems.length)" class="grid gap-2 px-2 py-1.5" aria-hidden="true">
|
|
340
268
|
<USkeleton v-for="index in 3" :key="index" class="h-7" />
|
|
341
269
|
</li>
|
|
342
|
-
<li v-else-if="recentSessions.error.value" class="vitehub-console__overview-row">
|
|
343
|
-
<Icon name="i-lucide-cloud-off" class="vitehub-console__overview-icon" />
|
|
344
|
-
<span class="vitehub-console__overview-description">Could not load recent sessions.</span>
|
|
345
|
-
<UButton class="ms-auto" variant="ghost" size="xs" label="Try again" @click="loadRecentSessions" />
|
|
346
|
-
</li>
|
|
347
|
-
<li v-else-if="!sessionItems.length" class="vitehub-console__overview-row">
|
|
348
|
-
<ConsoleSectionIcon :icon="consoleSectionDetails.agents.icon" class="vitehub-console__overview-icon" />
|
|
349
|
-
<span class="vitehub-console__overview-description">No Agent sessions yet. Invoke an Agent to see its sessions here.</span>
|
|
350
|
-
</li>
|
|
351
270
|
<template v-else>
|
|
271
|
+
<li v-if="build" class="vitehub-console__overview-row">
|
|
272
|
+
<img v-if="authorAvatar && authorAvatar !== failedAvatar" :key="authorAvatar" :src="authorAvatar" alt="" width="16" height="16" class="vitehub-console__overview-icon rounded-full" loading="lazy" referrerpolicy="no-referrer" @error="failedAvatar = authorAvatar">
|
|
273
|
+
<Icon v-else name="i-lucide-rocket" class="vitehub-console__overview-icon" />
|
|
274
|
+
<span class="flex min-w-0 flex-1 items-center gap-1.5">
|
|
275
|
+
<span class="shrink-0 font-medium text-highlighted">{{ build.commit?.author ?? build.commit?.login ?? "Someone" }}</span>
|
|
276
|
+
<span class="shrink-0 text-muted">deployed</span>
|
|
277
|
+
<span v-if="build.commit" class="shrink-0 font-mono text-xs text-muted">{{ build.commit.sha.slice(0, 7) }}</span>
|
|
278
|
+
<span v-if="build.commit?.message" class="truncate text-default">{{ build.commit.message }}</span>
|
|
279
|
+
</span>
|
|
280
|
+
<span class="vitehub-console__overview-meta"><ConsoleRelativeTime :value="build.time" /></span>
|
|
281
|
+
</li>
|
|
282
|
+
<li v-if="agentsEnabled && recentSessions.error.value" class="vitehub-console__overview-row">
|
|
283
|
+
<Icon name="i-lucide-cloud-off" class="vitehub-console__overview-icon" />
|
|
284
|
+
<span class="vitehub-console__overview-description">Could not load recent sessions.</span>
|
|
285
|
+
<UButton class="ms-auto" variant="ghost" size="xs" label="Try again" @click="loadRecentSessions" />
|
|
286
|
+
</li>
|
|
352
287
|
<li v-for="session in sessionItems" :key="session.id">
|
|
353
288
|
<button
|
|
354
289
|
type="button"
|
|
@@ -368,99 +303,83 @@ onBeforeUnmount(() => {
|
|
|
368
303
|
</span>
|
|
369
304
|
</button>
|
|
370
305
|
</li>
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
<Icon name="i-lucide-arrow-right" class="vitehub-console__overview-icon" />
|
|
375
|
-
<span>View all sessions</span>
|
|
376
|
-
</button>
|
|
377
|
-
</li>
|
|
378
|
-
</ul>
|
|
379
|
-
</section>
|
|
380
|
-
|
|
381
|
-
<!-- Groups follow the rail. They sit closer to each other than to the other sections, because together they list what is enabled. -->
|
|
382
|
-
<div v-if="sectionGroups.length" class="flex flex-col gap-4 sm:gap-2">
|
|
383
|
-
<section
|
|
384
|
-
v-for="group in sectionGroups"
|
|
385
|
-
:key="group.id"
|
|
386
|
-
class="vitehub-console__overview-block"
|
|
387
|
-
:aria-labelledby="`console-home-group-${group.id}`"
|
|
388
|
-
>
|
|
389
|
-
<h2 :id="`console-home-group-${group.id}`" class="vitehub-console__overview-label">{{ group.label }}</h2>
|
|
390
|
-
<ul class="vitehub-console__overview-list">
|
|
391
|
-
<li v-for="section in group.sections" :key="section.id" class="vitehub-console__overview-row" data-cell>
|
|
392
|
-
<!-- The button covers the row. The Docs link sits above it, so a link never nests in the button. -->
|
|
393
|
-
<button
|
|
394
|
-
type="button"
|
|
395
|
-
class="vitehub-console__overview-cell-target absolute inset-0"
|
|
396
|
-
:aria-label="`Open ${section.label}`"
|
|
397
|
-
@click="openSection(section.routeName)"
|
|
398
|
-
/>
|
|
399
|
-
<ConsoleSectionIcon :icon="section.icon" class="vitehub-console__overview-icon" />
|
|
400
|
-
<span class="vitehub-console__overview-name">{{ section.label }}</span>
|
|
401
|
-
<span class="vitehub-console__overview-description" :title="section.description">{{ section.description }}</span>
|
|
402
|
-
<span class="vitehub-console__overview-meta">
|
|
403
|
-
<span v-if="section.id === lastSection" class="hidden font-sans sm:inline">Last visited</span>
|
|
404
|
-
<a
|
|
405
|
-
v-if="section.docs"
|
|
406
|
-
class="vitehub-console__overview-docs"
|
|
407
|
-
:href="section.docs"
|
|
408
|
-
rel="noreferrer"
|
|
409
|
-
target="_blank"
|
|
410
|
-
:aria-label="`${section.label} documentation`"
|
|
411
|
-
:title="`${section.label} documentation`"
|
|
412
|
-
>
|
|
413
|
-
<Icon name="i-lucide-book-open" class="size-3.5" aria-hidden="true" />
|
|
414
|
-
</a>
|
|
415
|
-
</span>
|
|
306
|
+
<li v-if="!build && !sessionItems.length && !recentSessions.error.value" class="vitehub-console__overview-row text-muted">
|
|
307
|
+
<Icon name="i-lucide-activity" class="vitehub-console__overview-icon" />
|
|
308
|
+
<span class="vitehub-console__overview-description">No activity yet. Deploys and Agent sessions show here.</span>
|
|
416
309
|
</li>
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
<li>
|
|
425
|
-
<button type="button" class="vitehub-console__overview-row" data-focus-inset @click="openConsoleAddPrimitive()">
|
|
426
|
-
<Icon name="i-lucide-plus" class="vitehub-console__overview-icon" />
|
|
427
|
-
<span class="vitehub-console__overview-name">Add a primitive</span>
|
|
428
|
-
<span class="vitehub-console__overview-description">Get the vitehub add command or a prompt for your coding agent.</span>
|
|
429
|
-
<span class="vitehub-console__overview-meta">
|
|
430
|
-
<Icon name="i-lucide-chevron-right" class="size-3.5" />
|
|
431
|
-
</span>
|
|
432
|
-
</button>
|
|
433
|
-
</li>
|
|
310
|
+
<li v-if="sessionItems.length">
|
|
311
|
+
<button type="button" class="vitehub-console__overview-row text-muted" data-focus-inset @click="openSection(consoleSectionDetails.agents.routeName)">
|
|
312
|
+
<Icon name="i-lucide-arrow-right" class="vitehub-console__overview-icon" />
|
|
313
|
+
<span>View all sessions</span>
|
|
314
|
+
</button>
|
|
315
|
+
</li>
|
|
316
|
+
</template>
|
|
434
317
|
</ul>
|
|
435
318
|
</section>
|
|
319
|
+
</div>
|
|
436
320
|
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
<
|
|
441
|
-
<
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
<
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
321
|
+
<!-- The details of the app. Each row shows only what the app reported. -->
|
|
322
|
+
<aside class="vitehub-overview__details" aria-label="App details">
|
|
323
|
+
<ul>
|
|
324
|
+
<li v-if="app.host" class="vitehub-overview__detail">
|
|
325
|
+
<Icon name="i-lucide-globe" class="vitehub-overview__detail-icon" />
|
|
326
|
+
<span class="min-w-0 flex-1 truncate"><a :href="siteUrl" target="_blank" rel="noreferrer" class="hover:underline">{{ app.host }}</a></span>
|
|
327
|
+
<span class="vitehub-overview__detail-key">Domain</span>
|
|
328
|
+
</li>
|
|
329
|
+
<li v-if="!loading" class="vitehub-overview__detail">
|
|
330
|
+
<span class="vitehub-overview__detail-icon"><Status :tone="error ? 'warning' : 'success'" /></span>
|
|
331
|
+
<span class="min-w-0 flex-1 truncate">{{ accountAppStatusLabels[error ? "unreachable" : "connected"] }}</span>
|
|
332
|
+
<span class="vitehub-overview__detail-key">Status</span>
|
|
333
|
+
</li>
|
|
334
|
+
<li v-if="build?.host" class="vitehub-overview__detail">
|
|
335
|
+
<Icon name="i-lucide-cloud" class="vitehub-overview__detail-icon" />
|
|
336
|
+
<span class="flex min-w-0 flex-1 items-center gap-1.5"><span>{{ consoleHostLabels[build.host.name] }}</span><span class="truncate font-mono text-xs text-muted">{{ build.host.preset }}</span></span>
|
|
337
|
+
<span class="vitehub-overview__detail-key">Host</span>
|
|
338
|
+
</li>
|
|
339
|
+
<li v-if="build?.framework" class="vitehub-overview__detail">
|
|
340
|
+
<Icon name="i-lucide-layers" class="vitehub-overview__detail-icon" />
|
|
341
|
+
<span class="flex min-w-0 flex-1 items-center gap-1.5"><span>{{ consoleFrameworkLabels[build.framework.name] }}</span><span v-if="build.framework.version" class="truncate font-mono text-xs">{{ build.framework.version }}</span></span>
|
|
342
|
+
<span class="vitehub-overview__detail-key">Framework</span>
|
|
343
|
+
</li>
|
|
344
|
+
<li v-if="projects.info.value?.vitehub" class="vitehub-overview__detail">
|
|
345
|
+
<span class="vitehub-overview__detail-icon"><ConsoleMark class="size-3.5 text-highlighted" /></span>
|
|
346
|
+
<span class="flex min-w-0 flex-1 items-center gap-1.5"><span>vite-hub</span><span class="truncate font-mono text-xs">{{ projects.info.value.vitehub }}</span></span>
|
|
347
|
+
<span class="vitehub-overview__detail-key">ViteHub</span>
|
|
348
|
+
</li>
|
|
349
|
+
<li v-if="build?.commit" class="vitehub-overview__detail">
|
|
350
|
+
<Icon name="i-lucide-git-branch" class="vitehub-overview__detail-icon" />
|
|
351
|
+
<span class="flex min-w-0 flex-1 items-center gap-1.5 font-mono text-xs">
|
|
352
|
+
<span v-if="build.commit.branch" class="truncate">{{ build.commit.branch }}</span>
|
|
353
|
+
<span class="shrink-0 text-muted">{{ build.commit.sha.slice(0, 7) }}</span>
|
|
354
|
+
</span>
|
|
355
|
+
<UButton
|
|
356
|
+
v-if="compareUrl"
|
|
357
|
+
icon="i-lucide-git-compare-arrows"
|
|
358
|
+
label="Compare"
|
|
359
|
+
:to="compareUrl"
|
|
360
|
+
target="_blank"
|
|
361
|
+
rel="noopener noreferrer"
|
|
362
|
+
variant="ghost"
|
|
363
|
+
size="xs"
|
|
364
|
+
title="Compare the live commit with the default branch on GitHub"
|
|
365
|
+
/>
|
|
366
|
+
<span class="vitehub-overview__detail-key">Source</span>
|
|
367
|
+
</li>
|
|
368
|
+
<li v-if="build" class="vitehub-overview__detail">
|
|
369
|
+
<Icon name="i-lucide-rocket" class="vitehub-overview__detail-icon" />
|
|
370
|
+
<span class="flex min-w-0 flex-1 items-center gap-1">
|
|
371
|
+
<ConsoleRelativeTime :value="build.time" class="shrink-0" />
|
|
372
|
+
<span v-if="build.commit?.author ?? build.commit?.login" class="truncate text-muted">by {{ build.commit?.author ?? build.commit?.login }}</span>
|
|
373
|
+
</span>
|
|
374
|
+
<span class="vitehub-overview__detail-key">Deployed</span>
|
|
375
|
+
</li>
|
|
376
|
+
</ul>
|
|
377
|
+
<button v-if="addablePrimitives.length" type="button" class="vitehub-overview__detail vitehub-overview__add" @click="openConsoleAddPrimitive()">
|
|
378
|
+
<Icon name="i-lucide-plus" class="vitehub-overview__detail-icon" />
|
|
379
|
+
<span class="flex-1 text-start">Add a primitive</span>
|
|
380
|
+
<Icon name="i-lucide-chevron-right" class="size-3.5" />
|
|
381
|
+
</button>
|
|
382
|
+
</aside>
|
|
464
383
|
</div>
|
|
465
384
|
</main>
|
|
466
385
|
</template>
|
|
@@ -468,51 +387,91 @@ onBeforeUnmount(() => {
|
|
|
468
387
|
</template>
|
|
469
388
|
|
|
470
389
|
<style>
|
|
471
|
-
/*
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
* with the first row. Blocks stack on narrow screens.
|
|
475
|
-
*/
|
|
476
|
-
.vitehub-console__overview-block {
|
|
390
|
+
/* The Overview: primitive cards and recent activity on the left, the details of the app on the right. */
|
|
391
|
+
.vitehub-overview {
|
|
392
|
+
align-items: start;
|
|
477
393
|
display: grid;
|
|
478
|
-
gap:
|
|
394
|
+
gap: 1.5rem;
|
|
479
395
|
}
|
|
480
396
|
|
|
481
|
-
|
|
482
|
-
.vitehub-
|
|
483
|
-
|
|
484
|
-
|
|
397
|
+
@media (min-width: 64rem) {
|
|
398
|
+
.vitehub-overview {
|
|
399
|
+
grid-template-columns: minmax(0, 1fr) 20rem;
|
|
400
|
+
}
|
|
485
401
|
}
|
|
486
402
|
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
.
|
|
490
|
-
|
|
491
|
-
grid-template-columns: 7rem minmax(0, 1fr);
|
|
492
|
-
}
|
|
403
|
+
.vitehub-overview__cards {
|
|
404
|
+
display: grid;
|
|
405
|
+
gap: 0.625rem;
|
|
406
|
+
grid-template-columns: repeat(auto-fill, minmax(13.75rem, 1fr));
|
|
493
407
|
}
|
|
494
408
|
|
|
495
|
-
.vitehub-
|
|
496
|
-
|
|
409
|
+
.vitehub-overview__card {
|
|
410
|
+
border: 1px solid var(--border);
|
|
411
|
+
border-radius: 0.5rem;
|
|
412
|
+
display: flex;
|
|
413
|
+
flex-direction: column;
|
|
414
|
+
min-width: 0;
|
|
415
|
+
padding: 0.75rem 0.875rem;
|
|
416
|
+
transition: background-color 150ms ease, border-color 150ms ease;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.vitehub-overview__card:hover {
|
|
420
|
+
background: var(--muted);
|
|
421
|
+
border-color: var(--ui-border-accented);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.vitehub-overview__details {
|
|
425
|
+
border: 1px solid var(--border);
|
|
426
|
+
border-radius: 0.5rem;
|
|
497
427
|
font-size: 0.8125rem;
|
|
498
|
-
font-weight: 400;
|
|
499
|
-
line-height: 1.25rem;
|
|
500
428
|
overflow: hidden;
|
|
501
|
-
|
|
502
|
-
white-space: nowrap;
|
|
429
|
+
padding-top: 0.25rem;
|
|
503
430
|
}
|
|
504
431
|
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
432
|
+
.vitehub-overview__detail {
|
|
433
|
+
align-items: center;
|
|
434
|
+
display: flex;
|
|
435
|
+
gap: 0.625rem;
|
|
436
|
+
min-height: 2.25rem;
|
|
437
|
+
padding-inline: 0.875rem;
|
|
438
|
+
width: 100%;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.vitehub-overview__detail-icon {
|
|
442
|
+
align-items: center;
|
|
443
|
+
color: var(--muted-foreground);
|
|
444
|
+
display: inline-flex;
|
|
445
|
+
flex: none;
|
|
446
|
+
height: 1rem;
|
|
447
|
+
justify-content: center;
|
|
448
|
+
width: 1rem;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.vitehub-overview__detail-key {
|
|
452
|
+
color: var(--ui-text-dimmed);
|
|
453
|
+
flex: none;
|
|
454
|
+
font-size: 0.75rem;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.vitehub-overview__add {
|
|
458
|
+
border-top: 1px solid var(--border);
|
|
459
|
+
color: var(--muted-foreground);
|
|
460
|
+
cursor: pointer;
|
|
461
|
+
margin-top: 0.25rem;
|
|
462
|
+
transition: background-color 150ms ease, color 150ms ease;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.vitehub-overview__add:hover {
|
|
466
|
+
background: var(--muted);
|
|
467
|
+
color: var(--foreground);
|
|
509
468
|
}
|
|
510
469
|
|
|
511
470
|
.vitehub-console__overview-mark {
|
|
512
471
|
color: var(--foreground);
|
|
513
472
|
}
|
|
514
473
|
|
|
515
|
-
/* Rows reach past the text edge, so the hover tint has room and the icons still line up with the
|
|
474
|
+
/* Rows reach past the text edge, so the hover tint has room and the icons still line up with the heading. */
|
|
516
475
|
.vitehub-console__overview-list {
|
|
517
476
|
display: flex;
|
|
518
477
|
flex-direction: column;
|
|
@@ -524,10 +483,10 @@ onBeforeUnmount(() => {
|
|
|
524
483
|
align-items: center;
|
|
525
484
|
border-radius: 0.375rem;
|
|
526
485
|
display: flex;
|
|
527
|
-
font-size: 0.
|
|
486
|
+
font-size: 0.8125rem;
|
|
528
487
|
gap: 0.75rem;
|
|
529
488
|
line-height: 1.25rem;
|
|
530
|
-
min-height: 2.
|
|
489
|
+
min-height: 2.25rem;
|
|
531
490
|
min-width: 0;
|
|
532
491
|
padding-inline: 0.5rem;
|
|
533
492
|
position: relative;
|
|
@@ -545,19 +504,9 @@ onBeforeUnmount(() => {
|
|
|
545
504
|
}
|
|
546
505
|
|
|
547
506
|
@media (hover: hover) {
|
|
548
|
-
.vitehub-console__overview-row:is(button, a
|
|
507
|
+
.vitehub-console__overview-row:is(button, a):not(:disabled):hover {
|
|
549
508
|
background: var(--muted);
|
|
550
509
|
}
|
|
551
|
-
|
|
552
|
-
.vitehub-console__overview-row:is(button, a, [data-cell]):not(:disabled):hover .vitehub-console__overview-icon {
|
|
553
|
-
color: var(--foreground);
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
/* The row's button covers the row, so the focus ring of the theme frames the whole row. */
|
|
558
|
-
.vitehub-console__overview-cell-target {
|
|
559
|
-
border-radius: inherit;
|
|
560
|
-
cursor: pointer;
|
|
561
510
|
}
|
|
562
511
|
|
|
563
512
|
.vitehub-console__overview-icon {
|
|
@@ -568,7 +517,6 @@ onBeforeUnmount(() => {
|
|
|
568
517
|
height: 1rem;
|
|
569
518
|
justify-content: center;
|
|
570
519
|
pointer-events: none;
|
|
571
|
-
transition: color 150ms ease;
|
|
572
520
|
width: 1rem;
|
|
573
521
|
}
|
|
574
522
|
|
|
@@ -578,7 +526,6 @@ onBeforeUnmount(() => {
|
|
|
578
526
|
font-weight: 500;
|
|
579
527
|
max-width: 45%;
|
|
580
528
|
overflow: hidden;
|
|
581
|
-
pointer-events: none;
|
|
582
529
|
text-overflow: ellipsis;
|
|
583
530
|
white-space: nowrap;
|
|
584
531
|
}
|
|
@@ -588,7 +535,6 @@ onBeforeUnmount(() => {
|
|
|
588
535
|
flex: 1;
|
|
589
536
|
min-width: 0;
|
|
590
537
|
overflow: hidden;
|
|
591
|
-
pointer-events: none;
|
|
592
538
|
text-overflow: ellipsis;
|
|
593
539
|
white-space: nowrap;
|
|
594
540
|
}
|
|
@@ -598,54 +544,17 @@ onBeforeUnmount(() => {
|
|
|
598
544
|
color: var(--muted-foreground);
|
|
599
545
|
display: inline-flex;
|
|
600
546
|
flex: none;
|
|
601
|
-
font-family: var(--font-mono);
|
|
602
547
|
font-size: 0.75rem;
|
|
548
|
+
font-variant-numeric: tabular-nums;
|
|
603
549
|
gap: 0.75rem;
|
|
604
550
|
margin-inline-start: auto;
|
|
605
551
|
white-space: nowrap;
|
|
606
552
|
}
|
|
607
553
|
|
|
608
|
-
/* The Docs link sits above the row button, so a pointer on it opens the docs and not the section. */
|
|
609
|
-
.vitehub-console__overview-docs {
|
|
610
|
-
align-items: center;
|
|
611
|
-
border-radius: 0.375rem;
|
|
612
|
-
display: inline-flex;
|
|
613
|
-
justify-content: center;
|
|
614
|
-
min-height: 1.5rem;
|
|
615
|
-
min-width: 1.5rem;
|
|
616
|
-
margin: -0.25rem -0.375rem;
|
|
617
|
-
padding: 0.25rem 0.375rem;
|
|
618
|
-
position: relative;
|
|
619
|
-
text-underline-offset: 3px;
|
|
620
|
-
transition: color 150ms ease, opacity 150ms ease;
|
|
621
|
-
z-index: 1;
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
.vitehub-console__overview-docs:hover {
|
|
625
|
-
color: var(--foreground);
|
|
626
|
-
text-decoration: underline;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
554
|
/* On a phone the name and meta fit; a description after a name would truncate to a few letters. */
|
|
630
555
|
@media (max-width: 40rem) {
|
|
631
556
|
.vitehub-console__overview-name + .vitehub-console__overview-description {
|
|
632
557
|
display: none;
|
|
633
558
|
}
|
|
634
559
|
}
|
|
635
|
-
@media (hover: hover) and (pointer: fine) {
|
|
636
|
-
.vitehub-console__overview-docs {
|
|
637
|
-
opacity: 0;
|
|
638
|
-
}
|
|
639
|
-
.vitehub-console__overview-row:hover .vitehub-console__overview-docs,
|
|
640
|
-
.vitehub-console__overview-row:focus-within .vitehub-console__overview-docs {
|
|
641
|
-
opacity: 1;
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
@media (any-pointer: coarse) {
|
|
645
|
-
.vitehub-console__overview-docs {
|
|
646
|
-
min-height: 2.75rem;
|
|
647
|
-
min-width: 2.75rem;
|
|
648
|
-
opacity: 1;
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
560
|
</style>
|