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
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import type { Component } from "vue";
|
|
3
3
|
import { computed, defineAsyncComponent, inject, nextTick, onMounted, reactive, ref, shallowReactive, watch, watchEffect } from "vue";
|
|
4
4
|
|
|
5
|
-
import type { ConsoleAccountAppStatus, ConsoleAccountProject } from "../client/account";
|
|
5
|
+
import type { ConsoleAccountAppStatus, ConsoleAccountCheck, ConsoleAccountProject } from "../client/account";
|
|
6
6
|
import type { ConsoleAccountPage } from "../client/project-session";
|
|
7
|
-
import type { ConsoleProjectBuild } from "../client/project-link";
|
|
8
7
|
import { consoleAccountViewsKey } from "../client/account-views";
|
|
9
8
|
import { checkConsoleAccountProject, earlyConsoleSignInState, earlyConsoleTeam } from "../client/account";
|
|
10
9
|
import { useConsoleApp } from "../client/app-identity";
|
|
@@ -54,8 +53,7 @@ const apps = computed<ConsoleAccountProject[]>(() => account.value?.projects ??
|
|
|
54
53
|
// Only owners and admins link apps, so only they see the controls for it.
|
|
55
54
|
const manage = computed(() => account.value ? canManageConsoleProjects(account.value) : false);
|
|
56
55
|
const status = reactive<Record<string, ConsoleAccountAppStatus>>({});
|
|
57
|
-
|
|
58
|
-
const builds = reactive<Record<string, ConsoleProjectBuild>>({});
|
|
56
|
+
const checks = reactive<Record<string, ConsoleAccountCheck>>({});
|
|
59
57
|
const busy = ref(false);
|
|
60
58
|
const unlinking = ref(false);
|
|
61
59
|
const app = useConsoleApp();
|
|
@@ -72,7 +70,7 @@ const title = computed(() => {
|
|
|
72
70
|
if (page.value === "env") return "Env values";
|
|
73
71
|
if (page.value === "settings") return "Account settings";
|
|
74
72
|
if (page.value === "home") return "Apps";
|
|
75
|
-
if (gate.value.kind === "setup") return `Connect ${appName(gate.value.project)}`;
|
|
73
|
+
if (gate.value.kind === "setup") return gate.value.project.publicKey === null ? appName(gate.value.project) : `Connect ${appName(gate.value.project)}`;
|
|
76
74
|
return projects.current.value ? appName(projects.current.value) : "App";
|
|
77
75
|
});
|
|
78
76
|
|
|
@@ -124,11 +122,15 @@ function intent(target: LazyPage): void {
|
|
|
124
122
|
// The server calls each app with its token. A linked app answers, and an app without the variable refuses it. The
|
|
125
123
|
// device keeps each answer, so the names of the apps show in the first frame of the next visit.
|
|
126
124
|
for (const app of apps.value) {
|
|
125
|
+
if (app.publicKey === null) {
|
|
126
|
+
status[app.id] = "site";
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
127
129
|
status[app.id] = "checking";
|
|
128
130
|
const check = useStoredData(consoleAppCheckKey(app.id), () => checkConsoleAccountProject(app.id));
|
|
129
131
|
if (check.storedAt.value && check.data.value) {
|
|
130
132
|
rememberConsoleProjectName(app.id, check.data.value.name);
|
|
131
|
-
|
|
133
|
+
checks[app.id] = check.data.value;
|
|
132
134
|
}
|
|
133
135
|
// The read starts over when the page names its account, and only its last call answers here.
|
|
134
136
|
watch(check.status, (state) => {
|
|
@@ -136,7 +138,7 @@ for (const app of apps.value) {
|
|
|
136
138
|
if (state !== "success" || !check.data.value) return;
|
|
137
139
|
status[app.id] = check.data.value.status;
|
|
138
140
|
rememberConsoleProjectName(app.id, check.data.value.name);
|
|
139
|
-
|
|
141
|
+
checks[app.id] = check.data.value;
|
|
140
142
|
}, { immediate: true });
|
|
141
143
|
}
|
|
142
144
|
|
|
@@ -228,8 +230,8 @@ async function retry(): Promise<void> {
|
|
|
228
230
|
</UDashboardNavbar>
|
|
229
231
|
</template>
|
|
230
232
|
<template #body>
|
|
231
|
-
<main id="vitehub-account-main" tabindex="-1" class="vitehub-
|
|
232
|
-
<ConsoleAccountHome v-if="page === 'home'" :status="status" :
|
|
233
|
+
<main id="vitehub-account-main" tabindex="-1" class="vitehub-console-page outline-none">
|
|
234
|
+
<ConsoleAccountHome v-if="page === 'home'" :status="status" :checks="checks" />
|
|
233
235
|
<component :is="ConsoleAccountTeam" v-else-if="page === 'team'" />
|
|
234
236
|
<component :is="ConsoleAccountTeamSettings" v-else-if="page === 'team-settings'" />
|
|
235
237
|
<component :is="ConsoleAccountEnv" v-else-if="page === 'env'" />
|
|
@@ -274,15 +276,6 @@ async function retry(): Promise<void> {
|
|
|
274
276
|
width: 1.125rem;
|
|
275
277
|
}
|
|
276
278
|
|
|
277
|
-
.vitehub-account-shell__page {
|
|
278
|
-
padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2.5rem) 4rem;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/* One reading column, centered in the panel, so a wide screen keeps the page in front of the person. */
|
|
282
|
-
.vitehub-account-shell__page > * {
|
|
283
|
-
margin-inline: auto;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
279
|
.vitehub-account-shell__dot {
|
|
287
280
|
border-radius: 999px;
|
|
288
281
|
flex-shrink: 0;
|
|
@@ -294,7 +287,8 @@ async function retry(): Promise<void> {
|
|
|
294
287
|
box-shadow: inset 0 0 0 1px var(--muted-foreground);
|
|
295
288
|
}
|
|
296
289
|
|
|
297
|
-
.vitehub-account-shell__dot[data-status="connected"]
|
|
290
|
+
.vitehub-account-shell__dot[data-status="connected"],
|
|
291
|
+
.vitehub-account-shell__dot[data-status="site"] {
|
|
298
292
|
background: var(--ui-success);
|
|
299
293
|
}
|
|
300
294
|
|
|
@@ -3,7 +3,6 @@ import { ref, watch } from "vue";
|
|
|
3
3
|
|
|
4
4
|
import { forgetConsoleProject } from "../client/project-session";
|
|
5
5
|
|
|
6
|
-
/** Asks before an app leaves the team. The app keeps its variable, but the token behind it stops working. */
|
|
7
6
|
const props = defineProps<{ projectId: string, name: string }>();
|
|
8
7
|
const open = defineModel<boolean>("open", { required: true });
|
|
9
8
|
|
|
@@ -34,7 +33,7 @@ async function unlink(): Promise<void> {
|
|
|
34
33
|
<UModal
|
|
35
34
|
v-model:open="open"
|
|
36
35
|
:title="`Unlink ${name}?`"
|
|
37
|
-
description="The
|
|
36
|
+
description="The link key stops working. Hosted comment threads and replies for this app are permanently deleted."
|
|
38
37
|
:dismissible="!busy"
|
|
39
38
|
:close="{ disabled: busy }"
|
|
40
39
|
:ui="{ content: 'sm:max-w-[440px]' }"
|
|
@@ -45,7 +44,7 @@ async function unlink(): Promise<void> {
|
|
|
45
44
|
<template #footer>
|
|
46
45
|
<div class="flex w-full justify-end gap-2">
|
|
47
46
|
<UButton color="neutral" variant="ghost" label="Cancel" :disabled="busy" @click="open = false" />
|
|
48
|
-
<UButton color="error"
|
|
47
|
+
<UButton color="error" label="Unlink and delete comments" :loading="busy" @click="unlink" />
|
|
49
48
|
</div>
|
|
50
49
|
</template>
|
|
51
50
|
</UModal>
|
|
@@ -12,6 +12,7 @@ import { loadConsoleNavigation, resolveConsoleSectionDetails, subscribeConsoleNa
|
|
|
12
12
|
import { consoleAddPrimitiveOpen } from "../client/sidebar";
|
|
13
13
|
import { resolveConsoleRouteName } from "../console-route";
|
|
14
14
|
import ConsoleAccountUnlink from "./console-account-unlink.vue";
|
|
15
|
+
import ConsoleHostedCommentsEmbed from "./console-hosted-comments-embed.vue";
|
|
15
16
|
import ConsoleAppLogo from "./console-app-logo.vue";
|
|
16
17
|
import ConsolePageHeader from "./console-page-header.vue";
|
|
17
18
|
import ConsoleSectionIcon from "./console-section-icon.vue";
|
|
@@ -85,6 +86,7 @@ const statusTones: Record<ConsoleAccountAppStatus, StatusTone> = {
|
|
|
85
86
|
setup: "warning",
|
|
86
87
|
unconfigured: "warning",
|
|
87
88
|
unreachable: "error",
|
|
89
|
+
site: "success",
|
|
88
90
|
};
|
|
89
91
|
const check = shallowRef<ConsoleAccountCheck & { at: Date }>();
|
|
90
92
|
const checking = ref(false);
|
|
@@ -202,12 +204,16 @@ onBeforeUnmount(() => unsubscribe?.());
|
|
|
202
204
|
<template v-else-if="section === 'connection' && link">
|
|
203
205
|
<ConsoleSettingsCard title="Console key" description="The app checks each Console call with this public key. The Console server keeps the private key.">
|
|
204
206
|
<div class="grid gap-2">
|
|
205
|
-
<ConsoleSettingsValue label="Variable name" :value="link.keyVariable" mono copy />
|
|
206
|
-
<ConsoleSettingsValue label="Public key" :value="link.publicKey" mono copy />
|
|
207
|
+
<ConsoleSettingsValue label="Variable name" :value="link.keyVariable ?? undefined" mono copy />
|
|
208
|
+
<ConsoleSettingsValue label="Public key" :value="link.publicKey ?? undefined" mono copy />
|
|
207
209
|
</div>
|
|
208
210
|
<template #footer>Set as an environment variable of the app. Linking the app again makes a new key.</template>
|
|
209
211
|
</ConsoleSettingsCard>
|
|
210
212
|
|
|
213
|
+
<ConsoleSettingsCard title="Hosted Comments">
|
|
214
|
+
<ConsoleHostedCommentsEmbed :project-id="link.id" />
|
|
215
|
+
</ConsoleSettingsCard>
|
|
216
|
+
|
|
211
217
|
<ConsoleSettingsCard title="Connection check" description="The Console server calls the app with a signed request. Home checks every app the same way.">
|
|
212
218
|
<p class="flex min-h-8 items-center gap-2 text-sm text-highlighted" role="status">
|
|
213
219
|
<USkeleton v-if="!check && !checkFailed" class="h-3 w-48" />
|
|
@@ -1540,20 +1540,11 @@ onBeforeUnmount(() => {
|
|
|
1540
1540
|
justify-content: flex-start;
|
|
1541
1541
|
}
|
|
1542
1542
|
|
|
1543
|
-
.
|
|
1544
|
-
transition: transform 150ms ease-out;
|
|
1545
|
-
}
|
|
1546
|
-
|
|
1543
|
+
/* The chevron turns with the disclosure effect of the motion layer. */
|
|
1547
1544
|
.vitehub-console__section-toggle[aria-expanded="true"] [data-slot="trailingIcon"] {
|
|
1548
1545
|
transform: rotate(90deg);
|
|
1549
1546
|
}
|
|
1550
1547
|
|
|
1551
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1552
|
-
.vitehub-console__section-toggle [data-slot="trailingIcon"] {
|
|
1553
|
-
transition: none;
|
|
1554
|
-
}
|
|
1555
|
-
}
|
|
1556
|
-
|
|
1557
1548
|
.vitehub-console__section-count {
|
|
1558
1549
|
color: var(--ui-text-dimmed);
|
|
1559
1550
|
font-family: var(--font-mono);
|
|
@@ -98,7 +98,7 @@ onBeforeUnmount(() => controller?.abort());
|
|
|
98
98
|
<template>
|
|
99
99
|
<ConsoleAuthEventSetup v-if="!enabled" class="overflow-y-auto" />
|
|
100
100
|
<div v-else class="flex min-h-0 flex-1 flex-col">
|
|
101
|
-
<ConsolePageToolbar width="
|
|
101
|
+
<ConsolePageToolbar width="page">
|
|
102
102
|
<form class="contents" @submit.prevent="filter(group, userInput)">
|
|
103
103
|
<USelect
|
|
104
104
|
:model-value="group"
|
|
@@ -123,7 +123,7 @@ onBeforeUnmount(() => controller?.abort());
|
|
|
123
123
|
</form>
|
|
124
124
|
</ConsolePageToolbar>
|
|
125
125
|
<div class="min-h-0 flex-1 overflow-y-auto" :aria-busy="loading">
|
|
126
|
-
<div class="
|
|
126
|
+
<div class="vitehub-console-page flex flex-col gap-3">
|
|
127
127
|
<ConsoleState v-if="error" :error="error" title="Could not load activity" :retry="load" />
|
|
128
128
|
<p v-else-if="loading" role="status" class="text-sm text-muted">Loading activity…</p>
|
|
129
129
|
<div v-else-if="data" class="overflow-hidden rounded-lg border border-default">
|
|
@@ -76,7 +76,7 @@ const dayLabel = (day: string) =>
|
|
|
76
76
|
/>
|
|
77
77
|
<details class="group text-xs">
|
|
78
78
|
<summary class="inline-flex cursor-pointer items-center gap-1 rounded-md text-muted select-none hover:text-highlighted">
|
|
79
|
-
<Icon name="i-lucide-chevron-right" class="size-3.5
|
|
79
|
+
<Icon name="i-lucide-chevron-right" class="size-3.5 group-open:rotate-90" aria-hidden="true" />
|
|
80
80
|
Show data table
|
|
81
81
|
</summary>
|
|
82
82
|
<div class="mt-2 max-h-64 overflow-y-auto rounded-lg border border-default">
|
|
@@ -32,7 +32,7 @@ const methodLabel = (method: string) =>
|
|
|
32
32
|
|
|
33
33
|
<template>
|
|
34
34
|
<div class="min-h-0 flex-1 overflow-y-auto">
|
|
35
|
-
<div class="
|
|
35
|
+
<div class="w-full max-w-[78rem] sm:p-2">
|
|
36
36
|
<ConsoleStatGrid :items="metrics" size="lg" :columns="5" label="Auth totals" class="border-b border-default p-4" />
|
|
37
37
|
<p v-if="!description.storage.enabled" class="px-4 pt-3 text-xs text-muted">
|
|
38
38
|
{{ description.storage.reason }}
|
|
@@ -268,7 +268,7 @@ onBeforeUnmount(() => {
|
|
|
268
268
|
</ConsolePageHeader>
|
|
269
269
|
<div v-if="impersonating" class="border-b border-warning/25 bg-warning/10">
|
|
270
270
|
<div
|
|
271
|
-
class="
|
|
271
|
+
class="flex w-full max-w-[78rem] flex-wrap items-center gap-x-3 gap-y-2 px-4 py-2 sm:px-6"
|
|
272
272
|
>
|
|
273
273
|
<div class="flex min-w-0 flex-[1_1_16rem] items-start gap-2">
|
|
274
274
|
<Icon
|
|
@@ -299,7 +299,7 @@ onBeforeUnmount(() => {
|
|
|
299
299
|
</div>
|
|
300
300
|
</div>
|
|
301
301
|
</div>
|
|
302
|
-
<ConsolePageToolbar v-if="page === 'users'" width="
|
|
302
|
+
<ConsolePageToolbar v-if="page === 'users'" width="page">
|
|
303
303
|
<UInput
|
|
304
304
|
v-model="search"
|
|
305
305
|
@update:model-value="offset = 0"
|
|
@@ -346,10 +346,10 @@ onBeforeUnmount(() => {
|
|
|
346
346
|
Loading {{ labels[page].toLowerCase() }}…
|
|
347
347
|
</p>
|
|
348
348
|
<div v-else class="min-h-0 flex-1 overflow-auto">
|
|
349
|
-
<div class="
|
|
349
|
+
<div class="vitehub-console-page flex flex-col gap-3">
|
|
350
350
|
<details v-if="description?.access.length && page === 'users'" class="group text-xs text-muted">
|
|
351
351
|
<summary class="inline-flex cursor-pointer items-center gap-1 rounded-md select-none hover:text-highlighted">
|
|
352
|
-
<Icon name="i-lucide-chevron-right" class="size-3.5
|
|
352
|
+
<Icon name="i-lucide-chevron-right" class="size-3.5 group-open:rotate-90" aria-hidden="true" />
|
|
353
353
|
Access rules
|
|
354
354
|
</summary>
|
|
355
355
|
<ul class="mt-2 list-inside list-disc space-y-1">
|
|
@@ -133,7 +133,7 @@ async function load(): Promise<void> {
|
|
|
133
133
|
loading.value = true;
|
|
134
134
|
try {
|
|
135
135
|
const listed = isConsoleCommentThread(props.initial) && props.initial.id === id ? props.initial : undefined;
|
|
136
|
-
const found = listed ?? (await client.get({ id }));
|
|
136
|
+
const found = listed ?? (await client.get({ threadId: id }));
|
|
137
137
|
if (current.signal.aborted) return;
|
|
138
138
|
if (!found) throw consoleDiagnostic("CONSOLE_NOT_FOUND", "This thread was deleted, or you may not read it.");
|
|
139
139
|
thread.value = found;
|
|
@@ -421,7 +421,7 @@ onBeforeUnmount(() => request?.abort());
|
|
|
421
421
|
</ConsolePageHeader>
|
|
422
422
|
|
|
423
423
|
<!-- The toolbar shows while the records load, so the list does not move down when it arrives. -->
|
|
424
|
-
<ConsolePageToolbar v-if="!catalogView && (records.length || (loading && !content))" width="
|
|
424
|
+
<ConsolePageToolbar v-if="!catalogView && (records.length || (loading && !content))" width="page">
|
|
425
425
|
<UInput
|
|
426
426
|
v-model="search"
|
|
427
427
|
:disabled="!records.length"
|
|
@@ -447,14 +447,14 @@ onBeforeUnmount(() => request?.abort());
|
|
|
447
447
|
<!-- Mount empty so assistive technology registers the status before its text changes. -->
|
|
448
448
|
<p class="sr-only" role="status">{{ hasMounted && loading && !content ? "Loading…" : "" }}</p>
|
|
449
449
|
<div class="flex min-h-0 flex-1 flex-col overflow-y-auto">
|
|
450
|
-
<div v-if="loading && !content" class="
|
|
450
|
+
<div v-if="loading && !content" class="vitehub-console-page grid gap-3" aria-busy="true">
|
|
451
451
|
<USkeleton class="h-4 w-40" />
|
|
452
452
|
<USkeleton v-for="index in 5" :key="index" class="h-9 w-full" />
|
|
453
453
|
</div>
|
|
454
454
|
<template v-else-if="!catalogView">
|
|
455
455
|
<ConsoleState v-if="error" :error="error" :title="`Couldn't load ${sectionDetails.label}`" :retry="loadDefinitions" />
|
|
456
456
|
<!-- Without rows, the empty state takes the free height above the notice, so it sits in the middle of the pane. -->
|
|
457
|
-
<main v-else class="
|
|
457
|
+
<main v-else class="vitehub-console-page grid flex-1 gap-4" :class="visibleRecords.length ? 'content-start' : 'grid-rows-[1fr_auto]'">
|
|
458
458
|
<UEmpty
|
|
459
459
|
v-if="!records.length"
|
|
460
460
|
variant="naked"
|
|
@@ -543,7 +543,7 @@ onBeforeUnmount(() => request?.abort());
|
|
|
543
543
|
:base="workspaceFilesBase"
|
|
544
544
|
:name="selectedDefinition.name"
|
|
545
545
|
/>
|
|
546
|
-
<main v-else class="
|
|
546
|
+
<main v-else class="vitehub-console-page grid gap-8">
|
|
547
547
|
<header class="grid gap-3">
|
|
548
548
|
<dl class="flex flex-wrap gap-x-10 gap-y-3">
|
|
549
549
|
<div class="grid min-w-0 gap-1">
|
|
@@ -232,10 +232,10 @@ async function publishAll(): Promise<void> {
|
|
|
232
232
|
</ConsolePageHeader>
|
|
233
233
|
|
|
234
234
|
<div class="min-h-0 flex-1 overflow-y-auto" :aria-busy="loading">
|
|
235
|
-
<div v-if="setup?.sourceHeadsOnly" class="
|
|
235
|
+
<div v-if="setup?.sourceHeadsOnly" class="vitehub-console-page grid">
|
|
236
236
|
<ConsoleContentHeads />
|
|
237
237
|
</div>
|
|
238
|
-
<div v-else class="
|
|
238
|
+
<div v-else class="vitehub-console-page grid grid-cols-1 gap-8">
|
|
239
239
|
<ConsoleState v-if="failed" class="py-6" :error="error" title="Couldn't load the dashboard" :retry="() => emit('reload')" />
|
|
240
240
|
|
|
241
241
|
<!-- Counts: the numbers lead and the labels follow quietly. -->
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { Status } from "@vite-hub/ui";
|
|
2
|
+
import { RollNumber, Status } from "@vite-hub/ui";
|
|
3
3
|
import { computed, onBeforeUnmount, ref, watch } from "vue";
|
|
4
4
|
import { useRoute, useRouter } from "vue-router";
|
|
5
5
|
|
|
@@ -339,7 +339,7 @@ onBeforeUnmount(() => {
|
|
|
339
339
|
<UPopover v-if="collection.access.publish && pendingChanges" v-model:open="publishOpen">
|
|
340
340
|
<UButton variant="outline" label="Publish" :loading="publishing" :disabled="loading" :aria-label="`Publish ${pendingChanges} ${pendingChanges === 1 ? 'change' : 'changes'}`">
|
|
341
341
|
<template #trailing>
|
|
342
|
-
<UBadge size="sm" class="tabular-nums" :
|
|
342
|
+
<UBadge size="sm" class="tabular-nums"><RollNumber :value="pendingChanges" /></UBadge>
|
|
343
343
|
</template>
|
|
344
344
|
</UButton>
|
|
345
345
|
<template #content>
|
|
@@ -61,7 +61,7 @@ function editorRoute(name: string) {
|
|
|
61
61
|
title="No singletons"
|
|
62
62
|
description="Define a singleton() in server/content.ts, such as settings.json, to edit it here."
|
|
63
63
|
/>
|
|
64
|
-
<div v-else class="
|
|
64
|
+
<div v-else class="vitehub-console-page grid gap-2">
|
|
65
65
|
<UAlert
|
|
66
66
|
v-if="error"
|
|
67
67
|
color="error"
|
|
@@ -195,7 +195,7 @@ onBeforeUnmount(() => request?.abort());
|
|
|
195
195
|
/>
|
|
196
196
|
</template>
|
|
197
197
|
</ConsolePageHeader>
|
|
198
|
-
<ConsolePageToolbar v-if="entries.length" width="
|
|
198
|
+
<ConsolePageToolbar v-if="entries.length" width="page">
|
|
199
199
|
<UInput
|
|
200
200
|
v-model="search"
|
|
201
201
|
class="w-full sm:w-64"
|
|
@@ -232,7 +232,7 @@ onBeforeUnmount(() => request?.abort());
|
|
|
232
232
|
|
|
233
233
|
<div class="flex min-h-0 flex-1 flex-col overflow-y-auto">
|
|
234
234
|
<ConsoleState v-if="failed" :error="failed" title="Could not load Env declarations" :retry="() => refresh()" />
|
|
235
|
-
<div v-else-if="loading && !entries.length" class="
|
|
235
|
+
<div v-else-if="loading && !entries.length" class="vitehub-console-page grid gap-2" aria-busy="true">
|
|
236
236
|
<USkeleton class="mb-1 h-4 w-32" />
|
|
237
237
|
<USkeleton v-for="index in 8" :key="index" class="h-10 w-full" />
|
|
238
238
|
</div>
|
|
@@ -251,7 +251,7 @@ onBeforeUnmount(() => request?.abort());
|
|
|
251
251
|
title="No matching variables"
|
|
252
252
|
:description="attentionOnly && !search.trim() ? 'No values match the filters.' : `No variables match “${search.trim() || source}”.`"
|
|
253
253
|
/>
|
|
254
|
-
<main v-else class="
|
|
254
|
+
<main v-else class="vitehub-console-page grid gap-6">
|
|
255
255
|
<UAlert v-if="fix" role="alert" color="error" variant="subtle" icon="i-lucide-circle-alert" :title="fix.title">
|
|
256
256
|
<template #description><p class="text-pretty"><ConsoleCodeText :text="fix.description" /></p></template>
|
|
257
257
|
</UAlert>
|