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
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Rate Limit
|
|
2
|
+
|
|
3
|
+
<!-- Generated from docs/content/docs/rate-limit/index.md. Edit the agent-only block there. -->
|
|
4
|
+
|
|
5
|
+
Source page: https://vitehub.dev/raw/docs/rate-limit.md
|
|
6
|
+
|
|
7
|
+
Use Rate Limit to guard an action with an atomic counter and a defined window. Put identity derivation in the caller or Agent Capability.
|
|
8
|
+
|
|
9
|
+
Choose a driver whose guarantees match the action. Memory is local to one process. On Node, the `kv` driver shares counts when KV uses Redis or Postgres; read the boot line that names the driver. Inspect `.vitehub/rate-limit/manifest.json` before a production deploy. Do not replace a Rate Limit with a KV read followed by a write.
|
|
10
|
+
|
|
11
|
+
Prove allowed, rejected, reset, and provider failure behavior. Check the resolved window and enforcement mode in generated inspection state.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Realtime collaboration
|
|
2
|
+
|
|
3
|
+
<!-- Generated from docs/content/docs/realtime/index.md. Edit the agent-only block there. -->
|
|
4
|
+
|
|
5
|
+
Source page: https://vitehub.dev/raw/docs/realtime.md
|
|
6
|
+
|
|
7
|
+
Use Realtime for collaborative state that changes while clients are connected. Realtime keeps the driver, document format, and durable checkpoints explicit.
|
|
8
|
+
|
|
9
|
+
The Configure page describes the driver of each host and persistence.
|
|
10
|
+
|
|
11
|
+
On Cloudflare, rooms use Durable Objects. On Node, the `auto` driver shares rooms across instances through Redis (`REDIS_URL`) or Postgres (the client of a Postgres Default Database, or `REALTIME_POSTGRES_URL`) when the server starts, else keeps them in one process. The `memory` driver is single-process. Vercel, Netlify, and Deno have no Realtime driver.
|
|
12
|
+
|
|
13
|
+
Rooms save through a document adapter: `document: { workspace }` writes Markdown files, or pass `{ load, save }` for your own storage and throw `RealtimeDocumentConflict` on a stale `ifDigest`. A presence-only definition sets `document: false` and clients join with `connectRealtimeRoom()`. The Yjs state is the source of truth while a room is open; an external write re-seeds the room and resets clients. Use `editor` for a custom schema and async Markdown codec, `fields` for structured values, `identify()` and `authorize()` for identity and access. Inspect definitions with `vitehub inspect definitions`.
|
|
14
|
+
|
|
15
|
+
Realtime is the collaboration layer for the supported document and editor
|
|
16
|
+
models. It does not replace Auth, Workspace persistence, or a general WebSocket
|
|
17
|
+
server.
|
|
18
|
+
|
|
19
|
+
Prove two clients joining, a concurrent edit, an idle save, reconnect, and a reset after an external write. Inspect the generated registry and handler for hosted output.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Sandbox Tasks
|
|
2
|
+
|
|
3
|
+
<!-- Generated from docs/content/docs/sandbox/index.md. Edit the agent-only block there. -->
|
|
4
|
+
|
|
5
|
+
Source page: https://vitehub.dev/raw/docs/sandbox.md
|
|
6
|
+
|
|
7
|
+
Use a Sandbox Task to run a named project inside an isolated Cloudflare or Vercel Sandbox. A Sandbox Task run is an execution boundary, not a general-purpose local shell.
|
|
8
|
+
|
|
9
|
+
Keep images, mounts, network access, timeouts, and resource bounds explicit. Pass only the files and secrets the run needs.
|
|
10
|
+
|
|
11
|
+
Prove successful execution, cancellation, timeout, and cleanup on the selected provider. Verify result-size limits only when the provider documents them. Inspect generated bindings and provider output.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Sandboxes
|
|
2
|
+
|
|
3
|
+
<!-- Generated from docs/content/docs/agents/sandboxes.md. Edit the agent-only block there. -->
|
|
4
|
+
|
|
5
|
+
Source page: https://vitehub.dev/raw/docs/agents/sandboxes.md
|
|
6
|
+
|
|
7
|
+
Use Sandboxes for trusted-host or provider-backed execution sessions. Sandboxes provide the execution boundary used by provider Agents and application code that needs an isolated project environment.
|
|
8
|
+
|
|
9
|
+
Read [Run your first Sandbox](https://vitehub.dev/raw/docs/agents/sandbox-tutorial.md) and [Choose a runtime](https://vitehub.dev/raw/docs/agents/sandboxes.md#choose-a-runtime).
|
|
10
|
+
|
|
11
|
+
Choose the provider and image, mounts, environment, commands, network, and resource bounds explicitly. A Sandbox is not a permission bypass. Keep credentials and Workspace access scoped to the run.
|
|
12
|
+
|
|
13
|
+
Prove command execution, cancellation, timeout, cleanup, and provider output for the target host.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Schedule
|
|
2
|
+
|
|
3
|
+
<!-- Generated from docs/content/docs/schedule/index.md. Edit the agent-only block there. -->
|
|
4
|
+
|
|
5
|
+
Source page: https://vitehub.dev/raw/docs/schedule.md
|
|
6
|
+
|
|
7
|
+
Use Schedule for recurring wakeups or static cron declarations. When users pick the time, such as reminders, define the Schedule without `cron` and call `startSchedule(name, { at | cron, timeZone, payload })` from `vite-hub/schedule`. A scheduled run should hand off to idempotent application or Agent work.
|
|
8
|
+
|
|
9
|
+
Keep the schedule definition separate from the work it starts. Use a stable key and record the last completed run when the action must not repeat.
|
|
10
|
+
|
|
11
|
+
Prove one manual run, one scheduled wake, retry or overlap behavior, and the terminal state. Inspect generated cron or provider output.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Shell
|
|
2
|
+
|
|
3
|
+
<!-- Generated from docs/content/docs/shell/index.md. Edit the agent-only block there. -->
|
|
4
|
+
|
|
5
|
+
Source page: https://vitehub.dev/raw/docs/shell.md
|
|
6
|
+
|
|
7
|
+
Use Shell to run bounded Unix-like commands with explicit filesystem, process, network, timeout, and policy access.
|
|
8
|
+
|
|
9
|
+
Treat command text, working directory, environment, and network access as authority. Prefer an allowlist and a small working directory. Resource bounds and cancellation are part of the run contract.
|
|
10
|
+
|
|
11
|
+
Prove a permitted command, a rejected command, timeout, cancellation, output limit, and cleanup.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Source
|
|
2
|
+
|
|
3
|
+
<!-- Generated from docs/content/docs/source/index.md. Edit the agent-only block there. -->
|
|
4
|
+
|
|
5
|
+
Source page: https://vitehub.dev/raw/docs/source.md
|
|
6
|
+
|
|
7
|
+
Use Source to read files, records, or external resources through a typed, read-only loader. Sources provide context; they do not grant write authority.
|
|
8
|
+
|
|
9
|
+
Choose the narrowest loader and scope its root, branch, or query. Validate source provenance and access before passing content to an Agent or route.
|
|
10
|
+
|
|
11
|
+
Prove a successful read, an out-of-scope path, missing content, and the returned metadata or revision.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Workflows
|
|
2
|
+
|
|
3
|
+
<!-- Generated from docs/content/docs/workflows/index.md. Edit the agent-only block there. -->
|
|
4
|
+
|
|
5
|
+
Source page: https://vitehub.dev/raw/docs/workflows.md
|
|
6
|
+
|
|
7
|
+
Use Workflows for provider-tracked work that can outlive a request and needs durable state, retries, or steps. A run id is the handle for inspection.
|
|
8
|
+
|
|
9
|
+
Make each step idempotent and define terminal failure behavior. Keep request handlers small: start the run, return its id, and inspect the run separately.
|
|
10
|
+
|
|
11
|
+
Prove start, retry or resume, cancellation, and a terminal result. Inspect provider state instead of assuming the request process owns the run.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Workspace
|
|
2
|
+
|
|
3
|
+
<!-- Generated from docs/content/docs/workspace/index.md. Edit the agent-only block there. -->
|
|
4
|
+
|
|
5
|
+
Source page: https://vitehub.dev/raw/docs/workspace.md
|
|
6
|
+
|
|
7
|
+
Use Workspace for persistent file-tree state, Sources, access rules, snapshots, diffs, and sessions. A Workspace is the boundary for file authority and write-back.
|
|
8
|
+
|
|
9
|
+
Set the root, store driver, mode, and write rules explicitly. Mount only the Sources an invocation needs. A mounted Source is context and does not imply write access.
|
|
10
|
+
|
|
11
|
+
Prove read, scoped write, diff, and restart or provider recovery. Inspect snapshots and generated Workspace state before relying on persistence.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Project patterns
|
|
2
|
+
|
|
3
|
+
Use these as composition evidence after the installed-contract gate. Copy decisions and file relationships, then rederive imports and options from the installed packages and current docs.
|
|
4
|
+
|
|
5
|
+
| Pattern | Public source | Reusable lesson | Contract warning |
|
|
6
|
+
| --- | --- | --- | --- |
|
|
7
|
+
| Current minimal Server Primitive | [ViteHub tutorial fixture](https://github.com/vite-hub/vitehub/tree/main/fixtures/tutorials/server-primitives) | facade integration, stable Runtime Helper, live persistence proof | Follow the fixture's commit or installed facade exports |
|
|
8
|
+
| Current deterministic Agent | [ViteHub tutorial fixture](https://github.com/vite-hub/vitehub/tree/main/fixtures/tutorials/agents) | smallest offline Driver, Definition, explicit invocation context | Upgrade Driver syntax from installed types |
|
|
9
|
+
| Compact deployed channel Agent | [vite-hub/nuxt-agent](https://github.com/vite-hub/nuxt-agent) | channel, Sources, rate limit, transcription, telemetry, Vercel boundary | Repository may use owner-package plugins rather than the facade |
|
|
10
|
+
|
|
11
|
+
## Card procedure
|
|
12
|
+
|
|
13
|
+
1. Inspect the source manifest and lockfile commit.
|
|
14
|
+
2. Name the ViteHub package generation: current facade, owner packages, former aggregate preset, or historical scope.
|
|
15
|
+
3. Select one reusable boundary and list the bespoke product policy to exclude.
|
|
16
|
+
4. Rebuild the selected boundary from installed exports/types and current raw docs.
|
|
17
|
+
5. Prove it through the target application's real runtime path.
|
|
18
|
+
|
|
19
|
+
Do not use historical `@vitehub/*` projects for current syntax.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Project shapes
|
|
2
|
+
|
|
3
|
+
Use this when a task creates a project, spans more than one ViteHub feature, or leaves the file layout unclear.
|
|
4
|
+
|
|
5
|
+
## Inspect first
|
|
6
|
+
|
|
7
|
+
Read the installed manifest and exports, then open only the guide matching the primary lane. Use File conventions only when discovery layout is unclear:
|
|
8
|
+
|
|
9
|
+
- [Installation](https://vitehub.dev/raw/docs/getting-started/installation.md)
|
|
10
|
+
- [First Server Primitive](https://vitehub.dev/raw/docs/getting-started/first-server-primitive.md)
|
|
11
|
+
- [First Agent](https://vitehub.dev/raw/docs/getting-started/first-agent.md)
|
|
12
|
+
- [File conventions](https://vitehub.dev/raw/docs/reference/file-conventions.md)
|
|
13
|
+
|
|
14
|
+
## Create a new project with `vitehub init`
|
|
15
|
+
|
|
16
|
+
Create a new app in one command, with no install first:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
pnpm dlx vite-hub init <dir> --host <preset> --features <id,id,...> [--option feature.key=value]... --yes --json
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
- `--host` is the host preset: `cloudflare`, `vercel`, `netlify`, `deno`, or `node`. `--features` takes the ids that `catalog` lists. Pass `--framework nuxt` for a Nuxt app.
|
|
23
|
+
- Pass every input as a flag. Without a terminal, a missing flag exits with `2`, and the error names the flag and its choices. Add the flag and run the `rerun` command.
|
|
24
|
+
- A feature that the host does not support exits with `3` before any file is written. Choose another host or another feature.
|
|
25
|
+
- The current host, features, and options form a _stack_. Read `stack.command` from `vitehub status --json` to recreate it. Check `stack.omits` for settings to restore separately, including credentials and config expressions. If the command is `null`, the CLI could not plan a fresh setup; inspect the omissions before recreating it.
|
|
26
|
+
- When the developer gives a `--console <pendingId>:sha256:<hex>` value from console.vitehub.dev, pass it to `init` unchanged. See [Link and deploy](sandboxes-hosts.md#link-and-deploy).
|
|
27
|
+
|
|
28
|
+
See [Create a project](https://vitehub.dev/raw/docs/cli/project.md#create-a-project).
|
|
29
|
+
|
|
30
|
+
## Create the files with `vitehub add`
|
|
31
|
+
|
|
32
|
+
Run `vitehub status --json`, then `vitehub add <feature> --dry-run` for each feature the shape needs, and apply with `--yes`. Pass `--name <name>` where the shape lists a Definition, so the starter file lands in the discovery path that the build reads. Write a file or config key by hand only when `add` prints a manual `snippet`, or for files that `add` does not create, such as application routes. See [Add a feature](https://vitehub.dev/raw/docs/cli/project.md#add-a-feature).
|
|
33
|
+
|
|
34
|
+
## Coherent shapes
|
|
35
|
+
|
|
36
|
+
### Server Primitive
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
package.json package, scripts, Node version
|
|
40
|
+
pnpm-lock.yaml exact resolved contract
|
|
41
|
+
vite.config.ts ViteHub integration and provider choice
|
|
42
|
+
src/server.ts application HTTP boundary and Runtime Helper
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Add a discovered Definition under a documented discovery path only when the
|
|
46
|
+
primitive's docs require discovery. Check [File conventions](https://vitehub.dev/raw/docs/reference/file-conventions.md)
|
|
47
|
+
for suffix-based paths such as `*.workflow.ts` or `*.sandbox-task.ts`. The proof
|
|
48
|
+
must call the Runtime Helper and observe provider-backed behavior.
|
|
49
|
+
|
|
50
|
+
### Agent application
|
|
51
|
+
|
|
52
|
+
```text
|
|
53
|
+
package.json
|
|
54
|
+
pnpm-lock.yaml
|
|
55
|
+
vite.config.ts
|
|
56
|
+
server/agents/<name>/agent.ts
|
|
57
|
+
src/server.ts or framework route
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Use the folder form when the Agent owns instructions, a Workspace, or Skills. Add Sources, Capabilities, Channels, Sandboxes, Schedules, and Workflows only when the outcome needs them.
|
|
61
|
+
|
|
62
|
+
### Scheduled Agent
|
|
63
|
+
|
|
64
|
+
```text
|
|
65
|
+
server/agents/<name>/agent.ts
|
|
66
|
+
server/schedules/<name>.ts
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
The Schedule owns wake timing; orchestration invokes the Agent with explicit input, identity, retry/idempotency, and terminal-state behavior.
|
|
70
|
+
|
|
71
|
+
### Full-stack application
|
|
72
|
+
|
|
73
|
+
Keep client framework plugins first, ViteHub composition next, and the host integration last. Client code calls an application route; server code owns Runtime Helpers, Agent Invocations, secrets, and provider bindings.
|
|
74
|
+
|
|
75
|
+
## Boundary pass
|
|
76
|
+
|
|
77
|
+
For every shape, state whether persistence is ephemeral or durable, which external authority exists, which host runs the code, how failures retry, and what the user can observe. A local demo may answer “ephemeral, local, no external authority,” but it must answer.
|
|
78
|
+
|
|
79
|
+
## Proof
|
|
80
|
+
|
|
81
|
+
The shape is complete when every requested behavior has a source file and runtime path, the build succeeds, and one live request or invocation observes the intended state change.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Proof and recovery
|
|
2
|
+
|
|
3
|
+
Use this when code compiles but behavior is unproven, or when imports, discovery, runtime bindings, host output, or deployment fail.
|
|
4
|
+
|
|
5
|
+
## Select the failing boundary
|
|
6
|
+
|
|
7
|
+
Use [Verification](https://vitehub.dev/raw/docs/development/verification.md) to choose the proof, [Generated files](https://vitehub.dev/raw/docs/development/generated-files.md) for discovery/binding state, [Errors and diagnostics](https://vitehub.dev/raw/docs/reference/errors-diagnostics.md) for a surfaced ViteHub error, or [Troubleshooting](https://vitehub.dev/raw/docs/development/troubleshooting.md) when the failure does not yet have a boundary. Open one first.
|
|
8
|
+
|
|
9
|
+
## Recovery loop
|
|
10
|
+
|
|
11
|
+
1. Reproduce the narrow failing command or request.
|
|
12
|
+
2. Inspect installed exports/types for import or option failures.
|
|
13
|
+
3. Inspect `.vitehub` registries, generated declarations, and diagnostics for discovery or binding failures.
|
|
14
|
+
4. Inspect Provider Output for host failures.
|
|
15
|
+
5. Correct the source boundary and rerun the same proof.
|
|
16
|
+
|
|
17
|
+
For app tests, use `setupViteHubTest()` from `vite-hub/test` ([Testing](https://vitehub.dev/raw/docs/development/testing.md)) instead of `vi.mock()` or `mock.module()` on `vite-hub/*` modules or `_internal` imports. It gives KV, Blob, Database, Queue, Email, Rate Limit, and Auth local backends, `setEnv()` for Server Env, `signIn()` for a signed-in request, and `deliverChannel()` for Agent Channel webhooks. With Node's test runner, run `node --import vite-hub/test/register --test`.
|
|
18
|
+
|
|
19
|
+
Do not add compatibility glue until the installed contract and current docs prove the missing seam is application-owned. Report upstream gaps with the exact package version, docs URL, generated state, and failing observation.
|
|
20
|
+
|
|
21
|
+
## Proof matrix
|
|
22
|
+
|
|
23
|
+
| Lane | Required observation |
|
|
24
|
+
| --- | --- |
|
|
25
|
+
| Server Primitive | Vite Integration registered, Runtime Helper executed, provider effect observed |
|
|
26
|
+
| Agent | Driver prerequisites met, Agent Invocation executed, output and authority inspected |
|
|
27
|
+
| Channel or Trigger | verified event admitted, invocation observed, delivery or persisted message observed |
|
|
28
|
+
| Schedule or Workflow | due/run identity observed, steps executed, retry/terminal state verified |
|
|
29
|
+
| Host | build emitted documented Provider Output and live limitation or behavior was checked |
|
|
30
|
+
|
|
31
|
+
Completion requires every requested behavior to have an observation or a source-backed unsupported boundary.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Sandboxes and hosts
|
|
2
|
+
|
|
3
|
+
Use this for trusted-host commands, isolated execution, credentials projected into Home, required binaries, host links, deployment targets, or Provider Output.
|
|
4
|
+
|
|
5
|
+
## Select current pages
|
|
6
|
+
|
|
7
|
+
Open [Sandboxes](https://vitehub.dev/raw/docs/agents/sandboxes.md) for execution environments, the selected page under [Frameworks and hosts](https://vitehub.dev/raw/docs/frameworks-hosts.md) for a deployment target, or [Provider Output](https://vitehub.dev/raw/docs/reference/provider-output.md) for artifact ownership. Open only the pages matching the task.
|
|
8
|
+
|
|
9
|
+
## State the runtime boundary
|
|
10
|
+
|
|
11
|
+
Name the Sandbox provider or trusted host, isolation guarantee, persistence lifetime, network policy, required commands, projected credentials, cost, and production-readiness. A local tempdir or host process is convenience, not isolation.
|
|
12
|
+
|
|
13
|
+
Keep host-specific setup behind the Sandbox or provider boundary. Agent Instructions may explain available commands, but configuration must make the commands and credentials actually available.
|
|
14
|
+
|
|
15
|
+
## Link and deploy
|
|
16
|
+
|
|
17
|
+
- Run `vitehub link` to connect the project to its host project. It writes `.vitehub/link.json` and adds `.vitehub` to an existing `.gitignore`. If no `.gitignore` exists, it warns without creating one: create it with a `.vitehub` rule. Confirm the rule before committing, because the link belongs to one machine and must not follow forks or templates. `vitehub unlink` removes the link file and leaves the host project as it is. See [Link a project to its host](https://vitehub.dev/raw/docs/cli/project.md#link-a-project-to-its-host).
|
|
18
|
+
- Host credentials come from environment variables, then from the host CLI login, such as `wrangler login`. Never write a token into a project `.env` or the link file. When `link` exits with `2`, run the login command or set the variable that its `fix` names.
|
|
19
|
+
- Deploy with `vitehub deploy --yes`. It builds the app, then runs the deploy command that the build wrote for the host. It runs on the developer's machine with the host credentials above. It never adds a CI workflow; add a GitHub CI deploy only when the developer asks for one. See [Deploy from your machine](https://vitehub.dev/raw/docs/cli/project.md#deploy-from-your-machine).
|
|
20
|
+
- When no credentials resolve, `deploy` exits with `2` (`SETUP_DEPLOY_CREDENTIALS_MISSING`). Ask the developer to log in, or, on Cloudflare and Vercel, offer `--temporary`: a deploy with no account that prints a claim link. A temporary Cloudflare Worker must be claimed within 60 minutes. Treat the claim link as private.
|
|
21
|
+
- The Console link: with `console: true`, the developer links the deployed app in console.vitehub.dev, which shows a `VITEHUB_CONSOLE_KEY_<NAME>=<public key>` line. Set it as a host secret, deploy again, and ask the developer to select **Check connection**. For the CLI, `vitehub secret console-key <name>` prints the public key line for the app and a `VITEHUB_CONSOLE_PRIVATE_KEY_<NAME>` line. Never write the private key into the project. See [Sign Console requests](https://vitehub.dev/raw/docs/console/signed-requests.md).
|
|
22
|
+
- Inspect what is deployed with `vitehub deployments --json`: each deployment with its state, target, commit, and `live` flag. `vitehub status --json` has a `live` field with the live commit and how many commits it is behind HEAD. When `live` is `null`, `liveReason` tells why, such as `not-linked` or `no-credentials`. Pass `--offline` to skip the host request. See [List deployments](https://vitehub.dev/raw/docs/cli/project.md#list-deployments).
|
|
23
|
+
|
|
24
|
+
## Proof
|
|
25
|
+
|
|
26
|
+
Inspect the resolved Sandbox requirements, execute one required command, prove credential access without exposing the credential, and confirm cleanup or persistence. For deployment, build and inspect the documented Provider Output before a live target check.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Schedules, Workflows, and Agent Invocations
|
|
2
|
+
|
|
3
|
+
Use this for wake timing, durable orchestration, Agent Invocation context, retries, idempotency, timeouts, or terminal-state persistence.
|
|
4
|
+
|
|
5
|
+
## Select one current page
|
|
6
|
+
|
|
7
|
+
Open [Schedule](https://vitehub.dev/raw/docs/schedule.md) for wake timing or [Workflows](https://vitehub.dev/raw/docs/workflows.md) for durable multi-step orchestration. Agent Invocation syntax belongs to [Agent Definitions and Drivers](agent-definitions.md); do not load this reference for a direct invocation alone.
|
|
8
|
+
|
|
9
|
+
## Ownership
|
|
10
|
+
|
|
11
|
+
Schedules own when work becomes due. Workflows own durable multi-step orchestration. Agent Definitions own agent behavior. Application routes or orchestration code own the explicit call between them.
|
|
12
|
+
|
|
13
|
+
Keep discovered files separate:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
server/agents/<name>/agent.ts
|
|
17
|
+
server/schedules/<name>.ts
|
|
18
|
+
server/workflows/<name>/index.ts
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Pass stable run identity, invoker/context, input, wait-until behavior, timeouts, and persistence explicitly where the installed helper requires them. Design retries around idempotent steps or a durable completion fingerprint; never treat “started” as terminal success.
|
|
22
|
+
|
|
23
|
+
## Proof
|
|
24
|
+
|
|
25
|
+
For an Agent-backed path, invoke the Agent directly first. For a Schedule,
|
|
26
|
+
exercise one manual run and one scheduled wake. For a Workflow, observe step or
|
|
27
|
+
invocation identity, retry behavior, and terminal state. For provider-backed
|
|
28
|
+
wakeups or workflows, inspect the target Provider Output and one live execution.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Server Primitives
|
|
2
|
+
|
|
3
|
+
Use this for application-owned storage, scheduling, environment, messaging, execution, or infrastructure behavior that does not need model judgment.
|
|
4
|
+
|
|
5
|
+
## Choose the primitive
|
|
6
|
+
|
|
7
|
+
When the primitive is known, open only its raw docs page, such as `https://vitehub.dev/raw/docs/kv.md`. Use the [Server Primitives index](https://vitehub.dev/raw/docs/getting-started/server-primitives.md) only when choosing between primitives. Confirm the selected primitive's Vite Integration, optional Definition, Runtime Helper, local driver, and host support.
|
|
8
|
+
|
|
9
|
+
Common composition:
|
|
10
|
+
|
|
11
|
+
```text
|
|
12
|
+
vite.config.ts provider and integration
|
|
13
|
+
server/<definitions>/ named discovered configuration when required
|
|
14
|
+
application server code stable Runtime Helper calls
|
|
15
|
+
.vitehub/ generated registry and diagnostics
|
|
16
|
+
provider output deployment artifact when applicable
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
With the current facade, register `vitehub()` from `vite-hub` and import application APIs from feature subpaths such as `vite-hub/kv`, `vite-hub/blob`, or `vite-hub/rate-limit`. Validate those paths against installed exports before coding.
|
|
20
|
+
|
|
21
|
+
For Database runtime access, import `useDatabase` from `vite-hub/database` and call it with the discovered database name. Use `useDatabase("default")` for a Default Database. Query through the returned `db` and `schema`. Do not import a Database Definition into application code. In explicit imports, prefer `useDatabase()` over the direct `db` and `schema` exports. In Nuxt server code with `database` enabled and Nitro auto-imports on, the module auto-imports `db` and `schema` for the Default Database; that code can use them without an import. Use `useDatabase(name)` for a Named Database. `useDatabase()` without a name returns the Default Database or the only Named Database, and throws `DATABASE_NAME_REQUIRED` when there are several. An unknown name throws `DATABASE_NOT_FOUND` with the discovered names.
|
|
22
|
+
|
|
23
|
+
## Authority
|
|
24
|
+
|
|
25
|
+
Runtime Helpers called by application code keep authority in the application. If an Agent needs the same behavior, grant the narrow Capability documented for that feature; do not make every application primitive an Agent tool.
|
|
26
|
+
|
|
27
|
+
## Provider boundary
|
|
28
|
+
|
|
29
|
+
Keep provider selection in Vite config or the source-local handle's static policy. Application code should keep consuming the same handle when moving from a local driver to a hosted provider.
|
|
30
|
+
|
|
31
|
+
Rate Limit is an atomic consume primitive, not generic KV sugar. Use a Rate Limit Driver with matching guarantees, keep identity derivation in the caller or Agent Capability, and treat the memory driver as local or single-process only. Cloudflare native enforcement is best-effort and supports only the periods documented by the installed package. There is no generic KV adapter; do not model `get()` followed by `set()` as atomic enforcement.
|
|
32
|
+
|
|
33
|
+
Automatic Rate Limit memory selection belongs to Vite development and serve commands. For a production build, require inferred Cloudflare hosting or select the production provider explicitly; never let an unknown host silently become per-instance memory.
|
|
34
|
+
|
|
35
|
+
Before deploying Rate Limits, inspect `.vitehub/rate-limit/manifest.json` for the sorted stable IDs, resolved provider, enforcement level, counter scope, rejected-attempt behavior, and supported windows. Treat the manifest as generated inspection state, not an application import.
|
|
36
|
+
|
|
37
|
+
## Proof
|
|
38
|
+
|
|
39
|
+
Register the integration, execute the Runtime Helper, and observe the expected provider effect. For persistence, restart the process and read the value again. For a hosted target, also inspect the documented Provider Output.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Workspaces, Sources, and access
|
|
2
|
+
|
|
3
|
+
Use this when an Agent or application needs files, repository content, external resources, lazy materialization, scoped selection, or write-back.
|
|
4
|
+
|
|
5
|
+
## Select current pages
|
|
6
|
+
|
|
7
|
+
Start with [Workspaces and Sources](https://vitehub.dev/raw/docs/workspace/concepts.md). Open [Workspace context](https://vitehub.dev/raw/docs/agents/workspace-context.md) for Agent materialization, or [Access Capability](https://vitehub.dev/raw/docs/agents/capabilities/access.md) when an Agent selects or narrows Sources.
|
|
8
|
+
|
|
9
|
+
## Compose the boundary
|
|
10
|
+
|
|
11
|
+
Definitions describe the Workspace; Sources resolve content; access rules select what an invocation may receive; Workspace rules and mode decide whether changes can write back. Mounted data is context, not automatically Agent authority.
|
|
12
|
+
|
|
13
|
+
Prefer colocated Workspace files for static Agent-owned context. Use the
|
|
14
|
+
`@vite-hub/source` owner package for `file`, `glob`, `markdown`, `github`, MCP,
|
|
15
|
+
or custom Sources when content has a different lifecycle. Fetch-backed and
|
|
16
|
+
Workspace-specific sources come from the Workspace APIs; check the installed
|
|
17
|
+
exports before choosing one. Keep dynamic shaping in Source resolution and
|
|
18
|
+
authorization in access/Workspace rules.
|
|
19
|
+
|
|
20
|
+
## Inspectability
|
|
21
|
+
|
|
22
|
+
Before invoking, name the expected Workspace paths, Source identities, selection scope, read/write mode, and ignored write-back paths. Inspect the resolved Workspace or generated source descriptors rather than assuming a Source mounted correctly.
|
|
23
|
+
|
|
24
|
+
## Proof
|
|
25
|
+
|
|
26
|
+
Read a selected file through the actual Workspace path. For write mode, modify one allowed path and verify the configured write-back while proving disallowed paths stay unchanged.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineErrors } from "@vite-hub/runtime";
|
|
2
2
|
import { parseYAML } from "confbox/yaml";
|
|
3
|
-
|
|
3
|
+
// src/skills.ts
|
|
4
4
|
/**
|
|
5
5
|
* Agent Skills that an app gives to coding agents. One list feeds every surface:
|
|
6
6
|
*
|
|
@@ -496,5 +496,4 @@ function skillSettings(skills, options) {
|
|
|
496
496
|
skills
|
|
497
497
|
};
|
|
498
498
|
}
|
|
499
|
-
//#endregion
|
|
500
499
|
export { skillArchive as a, skillsMcp as c, serveSkills as i, defineSkills as n, skillDigest as o, isSkillSettings as r, skillSettings as s, defineSkill as t };
|
package/dist/skills.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Result } from "@vite-hub/runtime";
|
|
2
|
-
//#region src/skills.d.ts
|
|
3
2
|
/** The codes of `vite-hub/skills`. Each has a row in the Errors table of https://vitehub.dev/docs/console/skills. */
|
|
4
3
|
export type SkillErrorCode = "SKILL_DUPLICATE_NAME" | "SKILL_FILE_MISSING" | "SKILL_INVALID_FRONTMATTER" | "SKILL_INVALID_PATH" | "SKILL_NOT_FOUND" | "SKILL_SETTINGS_UNAVAILABLE";
|
|
5
4
|
/** One file of a skill. */
|
|
@@ -194,4 +193,4 @@ export declare function isSkillSettings(value: unknown): value is SkillSettings;
|
|
|
194
193
|
* Console section **Served skills** and `vitehub served-skills` show and change the switches.
|
|
195
194
|
*/
|
|
196
195
|
export declare function skillSettings<TSkill extends Skill>(skills: SkillList<TSkill>, options: SkillSettingsOptions): SkillSettings<TSkill>;
|
|
197
|
-
|
|
196
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { c as getConsoleAgents, s as getConsoleAgentDefinition } from "./agents-Cz_uhhov.js";
|
|
2
|
+
import { i as consoleRequestError } from "./request-CQ8TkHLh.js";
|
|
3
3
|
import { inspectAgentSkillFiles } from "@vite-hub/agent/server/internal";
|
|
4
|
-
|
|
4
|
+
// src/console/runtime/server/skills.get.ts
|
|
5
5
|
const maxFileBytes = 524288;
|
|
6
6
|
function skillFiles(agent) {
|
|
7
7
|
const definition = getConsoleAgentDefinition(agent, "inspect");
|
|
@@ -44,5 +44,4 @@ async function inspectConsoleSkills(input) {
|
|
|
44
44
|
}))
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
//#endregion
|
|
48
47
|
export { inspectConsoleSkills };
|
package/dist/skills.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { defineSkill, defineSkills, isSkillSettings, serveSkills, skillArchive, skillDigest, skillSettings, skillsMcp };
|
|
1
|
+
export { t as defineSkill, n as defineSkills, r as isSkillSettings, i as serveSkills, a as skillArchive, o as skillDigest, s as skillSettings, c as skillsMcp } from "./skills-C1MaGEbO.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as viteHubErrorDiagnostics } from "./error-diagnostics-
|
|
1
|
+
import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
|
|
2
2
|
import * as v from "valibot";
|
|
3
|
-
|
|
3
|
+
// src/logs/source.ts
|
|
4
4
|
const logLevelSchema = v.picklist([
|
|
5
5
|
"debug",
|
|
6
6
|
"info",
|
|
@@ -56,5 +56,4 @@ function isLogCursorExpiredError(error) {
|
|
|
56
56
|
function parseLogQuery(input) {
|
|
57
57
|
return v.parse(logQuerySchema, input);
|
|
58
58
|
}
|
|
59
|
-
//#endregion
|
|
60
59
|
export { logPageSchema as a, parseLogQuery as c, logLevelSchema as i, logCursorExpiredError as n, logQuerySchema as o, logEntrySchema as r, logSourceInfoSchema as s, isLogCursorExpiredError as t };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Diagnostic } from "nostics";
|
|
2
2
|
import * as v from "valibot";
|
|
3
|
-
//#region src/logs/source.d.ts
|
|
4
3
|
type LogLevel = "debug" | "info" | "warn" | "error";
|
|
5
4
|
interface LogEntry {
|
|
6
5
|
id: string;
|
|
@@ -55,5 +54,4 @@ declare function logCursorExpiredError(): Diagnostic;
|
|
|
55
54
|
declare function isLogCursorExpiredError(error: unknown): boolean;
|
|
56
55
|
/** Validate once at the transport boundary. Adapters must reject filters they cannot apply. */
|
|
57
56
|
declare function parseLogQuery(input: unknown): v.InferOutput<typeof logQuerySchema>;
|
|
58
|
-
//#endregion
|
|
59
57
|
export { LogSource as a, logCursorExpiredError as c, logPageSchema as d, logQuerySchema as f, LogQuery as i, logEntrySchema as l, parseLogQuery as m, LogLevel as n, LogSourceInfo as o, logSourceInfoSchema as p, LogPage as r, isLogCursorExpiredError as s, LogEntry as t, logLevelSchema as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { effectScope, watch } from "vue";
|
|
2
2
|
import { useStoredData } from "@vite-hub/device/vue";
|
|
3
|
-
|
|
3
|
+
// src/console/runtime/client/stored.ts
|
|
4
4
|
/**
|
|
5
5
|
* The version of the answers that the Console keeps on the device. Change it when the shape of a stored answer changes,
|
|
6
6
|
* so the next visit does not show an answer of the old shape.
|
|
@@ -36,5 +36,4 @@ function readStored(key, loader, options = {}) {
|
|
|
36
36
|
stop: () => scope.stop()
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
//#endregion
|
|
40
39
|
export { readStored as a, consoleProjectKey as i, consoleAppCheckKey as n, consoleDeviceVersion as r, consoleAccountKey as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as AnyOperation } from "../operations-
|
|
2
|
-
//#region src/task/runtime.d.ts
|
|
1
|
+
import { n as AnyOperation } from "../operations-DgFhA1WE.js";
|
|
3
2
|
/** One task that the Nitro runtime registers. */
|
|
4
3
|
interface TaskSummary {
|
|
5
4
|
description?: string;
|
|
@@ -14,9 +13,6 @@ interface TaskRunResult {
|
|
|
14
13
|
/** The `result` field that the task returns. */
|
|
15
14
|
result?: unknown;
|
|
16
15
|
}
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/task/operations.d.ts
|
|
19
16
|
/** The `task.*` operations: list and run. The Console, `vitehub task`, and agents run them. */
|
|
20
17
|
export declare const taskOperations: readonly AnyOperation[];
|
|
21
|
-
//#endregion
|
|
22
18
|
export type { TaskListResult, TaskRunResult };
|
package/dist/task/operations.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as defineOperation } from "../operation-definition-
|
|
1
|
+
import { t as defineOperation } from "../operation-definition-DTpNvLd8.js";
|
|
2
2
|
import * as v from "valibot";
|
|
3
|
-
|
|
4
|
-
const runtime = () => import("../runtime-
|
|
3
|
+
// src/task/operations.ts
|
|
4
|
+
const runtime = () => import("../runtime-F0CTqBFx.js");
|
|
5
5
|
function defineTaskOperation(definition) {
|
|
6
6
|
return defineOperation({
|
|
7
7
|
...definition,
|
|
@@ -32,5 +32,4 @@ const taskOperations = [defineTaskOperation({
|
|
|
32
32
|
name: "task.run",
|
|
33
33
|
run: async ({ name, payload }) => (await runtime()).runNamedTask(name, payload)
|
|
34
34
|
})];
|
|
35
|
-
//#endregion
|
|
36
35
|
export { taskOperations };
|
package/dist/test/register.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as viteHubErrorDiagnostics } from "../error-diagnostics-
|
|
1
|
+
import { t as viteHubErrorDiagnostics } from "../error-diagnostics-CBtvqI30.js";
|
|
2
2
|
import { register } from "node:module";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
@@ -6,7 +6,7 @@ import { fileURLToPath } from "node:url";
|
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
7
|
import { setTimeout } from "node:timers/promises";
|
|
8
8
|
import { Worker, isMainThread } from "node:worker_threads";
|
|
9
|
-
|
|
9
|
+
// src/test/register.ts
|
|
10
10
|
/**
|
|
11
11
|
* `node --import vite-hub/test/register --test` gives app tests the modules that `vitehub()` generates, as Vitest does.
|
|
12
12
|
* One Vite server of the app answers the module hooks. `node --test` runs each test file in its own process, and only
|
|
@@ -64,5 +64,4 @@ if (isMainThread) {
|
|
|
64
64
|
await import("vitehub-test:setup");
|
|
65
65
|
started?.worker.unref();
|
|
66
66
|
}
|
|
67
|
-
//#endregion
|
|
68
67
|
export {};
|
package/dist/test.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SerializedResponse } from "@vite-hub/runtime";
|
|
2
|
-
//#region src/internal/test-types.d.ts
|
|
3
2
|
interface DeliverChannelOptions {
|
|
4
3
|
/** The Agent name in the webhook URL and in each run. Defaults to `agent`. */
|
|
5
4
|
agentName?: string;
|
|
@@ -109,8 +108,6 @@ interface TestSignIn {
|
|
|
109
108
|
[field: string]: unknown;
|
|
110
109
|
};
|
|
111
110
|
}
|
|
112
|
-
//#endregion
|
|
113
|
-
//#region src/test.d.ts
|
|
114
111
|
export interface ViteHubTestOptions {
|
|
115
112
|
/** The app folder that has `server/`. Database reads its migrations from there. Defaults to the current folder. */
|
|
116
113
|
root?: string;
|
|
@@ -171,5 +168,4 @@ export interface ViteHubTest {
|
|
|
171
168
|
* `reset()` empties, so a test runs the app's own server code with no mocks and no provider account.
|
|
172
169
|
*/
|
|
173
170
|
export declare function setupViteHubTest(options?: ViteHubTestOptions): ViteHubTest;
|
|
174
|
-
//#endregion
|
|
175
171
|
export type { DeliverChannelOptions, SignInTestUser, TestSignIn };
|
package/dist/test.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { enableViteHubTestMode } from "@vite-hub/runtime/internal/test-mode-setup";
|
|
2
|
-
|
|
2
|
+
// src/test.ts
|
|
3
3
|
/**
|
|
4
4
|
* Turns on test mode for this test file. KV, Blob, Database, Queue, Workflow, Email, Rate Limit, and Auth then use local backends that
|
|
5
5
|
* `reset()` empties, so a test runs the app's own server code with no mocks and no provider account.
|
|
@@ -45,5 +45,4 @@ function setupViteHubTest(options = {}) {
|
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
//#endregion
|
|
49
48
|
export { setupViteHubTest };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/console/runtime/client/ticket.d.ts
|
|
2
1
|
/** The answer of an operation that returns a one-time link. Mirrors `ConsoleTicket` of the server. */
|
|
3
2
|
interface ConsoleTicketLink {
|
|
4
3
|
url: string;
|
|
@@ -10,5 +9,4 @@ interface ConsoleTicketLink {
|
|
|
10
9
|
* Console through `opener`. When the browser blocks the tab, this tab goes to the link.
|
|
11
10
|
*/
|
|
12
11
|
declare function openConsoleTicket(request: () => Promise<unknown>): Promise<void>;
|
|
13
|
-
//#endregion
|
|
14
12
|
export { openConsoleTicket as n, ConsoleTicketLink as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ConsoleRequestError } from "./request-
|
|
2
|
-
|
|
1
|
+
import { t as ConsoleRequestError } from "./request-Cl68STwT.js";
|
|
2
|
+
// src/console/runtime/client/ticket.ts
|
|
3
3
|
function isTab(value) {
|
|
4
4
|
return typeof value === "object" && value !== null && "close" in value && "location" in value;
|
|
5
5
|
}
|
|
@@ -27,5 +27,4 @@ async function openConsoleTicket(request) {
|
|
|
27
27
|
throw error;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
//#endregion
|
|
31
30
|
export { openConsoleTicket as t };
|