vite-hub 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -8
- package/dist/_internal/runtime/browser-errors.d.ts +0 -2
- package/dist/_internal/runtime/browser-errors.js +3 -4
- 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 +1 -2
- package/dist/_internal/runtime/request-policy.js +2 -3
- package/dist/_internal/runtime/security.d.ts +1 -2
- package/dist/_internal/runtime/security.js +1 -2
- package/dist/{access-BC9HtX_M.js → access-CUFHPi8T.js} +13 -140
- package/dist/{access-policy-DhsEACna.d.ts → access-DkBck8Vu.d.ts} +17 -21
- package/dist/{access-policy-CVZg9LPR.js → access-policy-BM48XstY.js} +5 -6
- package/dist/{account-Cjj-tYzo.d.ts → account-DNr8fHcQ.d.ts} +5 -7
- package/dist/{console/runtime/server → agent/console}/agents.get.d.ts +2 -3
- package/dist/{console/runtime/server → agent/console}/agents.get.js +3 -4
- package/dist/{console/runtime/server → agent/console}/channel-replay.d.ts +3 -5
- package/dist/{console/runtime/server → agent/console}/channel-replay.js +6 -7
- package/dist/{console/runtime/server → agent/console}/invocation-capabilities.get.d.ts +1 -3
- package/dist/{console/runtime/server → agent/console}/invocation-capabilities.get.js +4 -5
- package/dist/agent/console/invocation-workspace.get.d.ts +6 -0
- package/dist/{console/runtime/server → agent/console}/invocation-workspace.get.js +6 -7
- package/dist/{console/runtime/server → agent/console}/invocation.get.d.ts +4 -6
- package/dist/{console/runtime/server → agent/console}/invocation.get.js +8 -9
- package/dist/{console/runtime/server → agent/console}/invocations.get.d.ts +1 -2
- package/dist/{console/runtime/server → agent/console}/invocations.get.js +5 -6
- package/dist/agent/console/invocations.usage.d.ts +6 -0
- package/dist/agent/console/invocations.usage.js +51 -0
- package/dist/agent/console/operations.d.ts +6 -0
- package/dist/agent/console/operations.js +247 -0
- package/dist/{console/runtime/server → agent/console}/status.get.d.ts +2 -4
- package/dist/{console/runtime/server → agent/console}/status.get.js +6 -7
- package/dist/{server-W0c79AYZ.js → agent-console-CHsLxKk_.js} +4 -4
- package/dist/agent-console-FmaYpVv-.d.ts +14 -0
- package/dist/{agent-invocations.post-C3Onl2yH.js → agent-invocations.post-CF5anHY6.js} +14 -17
- package/dist/agents-DBm_PJie.js +1 -0
- package/dist/{agents-B76RICcy.js → agents-DXLHsE7x.js} +5 -6
- package/dist/{agents-C94A4N9u.d.ts → agents-Gyw4VKPt.d.ts} +0 -2
- package/dist/auth/console/auth.d.ts +25 -0
- package/dist/{console/runtime/server → auth/console}/auth.js +11 -13
- package/dist/auth/console/operations.d.ts +3 -0
- package/dist/auth/console/operations.js +135 -0
- package/dist/auth/server.js +1 -2
- package/dist/{auth-operations-GcQk0O0X.js → auth-operations-BKqoX8Ua.js} +4 -5
- package/dist/{auth-types-D3ugQ8xM.d.ts → auth-types-Cotn7406.d.ts} +4 -21
- package/dist/bin.js +8 -11
- package/dist/blob/console/operations.d.ts +3 -0
- package/dist/blob/console/operations.js +44 -0
- package/dist/blob/nuxt-image.js +1 -2
- package/dist/{blob-BcgsZtqM.js → blob-iw8pWQ6o.js} +5 -6
- package/dist/{blob-iVewd7KQ.d.ts → blob-uNin0_TV.d.ts} +1 -3
- package/dist/{browser-error-limits-CToqAD-O.js → browser-error-limits-B0yS95zt.js} +2 -4
- 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/{cli-config-FPHk1nbC.js → cli-config-BX8H4ZCo.js} +2 -3
- package/dist/cli-config-DgpmE_7z.js +1 -0
- package/dist/cms.js +1 -2
- package/dist/console/auth-types.d.ts +2 -2
- package/dist/console/auth.d.ts +2 -4
- package/dist/console/auth.js +2 -3
- package/dist/console/runtime/auth-operations.d.ts +4 -6
- 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 +29 -45
- package/dist/console/runtime/client/appearance.d.ts +1 -2
- package/dist/console/runtime/client/appearance.js +1 -2
- package/dist/console/runtime/client/auth-management.ts +6 -6
- 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 +3 -4
- 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 +7 -5
- package/dist/console/runtime/client/mcp-client.js +10 -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 +1 -1
- 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 -2
- 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 +83 -16
- package/dist/console/runtime/client/site-access.js +159 -32
- package/dist/console/runtime/client/site-link.d.ts +2 -0
- package/dist/console/runtime/client/site-link.js +1 -0
- package/dist/console/runtime/client/stored.d.ts +1 -3
- package/dist/console/runtime/client/stored.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-home.vue +9 -7
- 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 +7 -2
- 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-auth-detail.vue +1 -1
- package/dist/console/runtime/components/console-auth-event-list.vue +1 -0
- package/dist/console/runtime/components/console-document-editor.vue +3 -4
- package/dist/console/runtime/components/console-hosted-comments-embed.vue +106 -0
- package/dist/console/runtime/components/console-mcp-callback.vue +6 -1
- package/dist/console/runtime/components/console-mcp-items.vue +3 -16
- package/dist/console/runtime/components/console-site.vue +10 -8
- package/dist/console/runtime/components/console-usage.vue +2 -2
- 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 +14 -49
- package/dist/console/runtime/mcp-client.d.ts +2 -2
- package/dist/console/runtime/mcp-client.js +1 -2
- package/dist/console/runtime/operation-loader.d.ts +1 -0
- package/dist/console/runtime/operation-loader.js +10 -0
- package/dist/console/runtime/page-tool/account.js +26 -0
- package/dist/console/runtime/page-tool/page-tool.js +2 -2
- package/dist/console/runtime/rpc.d.ts +1 -1
- package/dist/console/runtime/rpc.js +1 -2
- package/dist/console/runtime/sections.d.ts +2 -2
- 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/agent-console.d.ts +2 -0
- package/dist/console/runtime/server/agent-console.js +1 -0
- package/dist/console/runtime/server/blob.d.ts +1 -1
- package/dist/console/runtime/server/blob.js +1 -2
- package/dist/console/runtime/server/database.d.ts +1 -1
- 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 +2 -2
- package/dist/console/runtime/server/documents.js +3 -3
- package/dist/console/runtime/server/entry-site-access.d.ts +3 -0
- package/dist/console/runtime/server/entry-site-access.js +4 -0
- package/dist/console/runtime/server/entry.d.ts +3 -0
- package/dist/console/runtime/server/entry.js +4 -0
- package/dist/console/runtime/server/env.d.ts +1 -3
- package/dist/console/runtime/server/env.js +1 -2
- 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/pill.d.ts +45 -0
- package/dist/console/runtime/server/pill.js +62 -0
- package/dist/console/runtime/server/rpc.d.ts +5 -10
- package/dist/console/runtime/server/rpc.js +19 -27
- package/dist/console/runtime/server/runtime.d.ts +1 -1
- package/dist/console/runtime/server/runtime.js +1 -2
- 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-access-operation.d.ts +7 -0
- package/dist/console/runtime/server/site-access-operation.js +36 -0
- package/dist/console/runtime/server/site-actions.d.ts +73 -0
- package/dist/console/runtime/server/site-actions.js +105 -0
- package/dist/console/runtime/server/site-entry.d.ts +16 -9
- package/dist/console/runtime/server/site-entry.js +62 -46
- package/dist/console/runtime/server/site-visitor.d.ts +17 -0
- package/dist/console/runtime/server/site-visitor.js +1 -0
- package/dist/console/runtime/server/site.d.ts +27 -0
- package/dist/console/runtime/server/site.js +1 -0
- package/dist/console/runtime/skills.d.ts +1 -3
- package/dist/console/runtime/skills.js +1 -2
- package/dist/console/server.d.ts +9 -25
- package/dist/console/server.js +8 -8
- package/dist/console/ui.d.ts +0 -10
- package/dist/console/ui.js +14 -27
- package/dist/console-lazy-views-VEjcbL4Q.js +1 -0
- package/dist/{console-route-CM2G5hiC.js → console-route-DbdnLkkF.js} +2 -3
- package/dist/console-signature--55DIKf2.js +237 -0
- package/dist/console.d.ts +1 -3
- package/dist/console.js +1 -2
- package/dist/content/console/operations.d.ts +3 -0
- package/dist/content/console/operations.js +62 -0
- package/dist/{console/runtime/server → database/console}/database.get.d.ts +2 -3
- package/dist/{console/runtime/server → database/console}/database.get.js +4 -5
- package/dist/database/console/operations.d.ts +3 -0
- package/dist/database/console/operations.js +49 -0
- package/dist/{database-UMJgnU2z.js → database-CrgBUdIx.js} +3 -4
- package/dist/{database-DC67Ipm-.d.ts → database-yFezh5U1.d.ts} +1 -3
- package/dist/{definition-catalog-BUcclwSH.js → definition-catalog-1xPPtzOx.js} +3 -4
- 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-DTytrw42.js → definitions-DGo2rNQ9.js} +5 -6
- package/dist/{definitions-Dbgxfz3I.d.ts → definitions-DRkgHKmk.d.ts} +1 -3
- package/dist/{deployment-BUshgN5Q.js → deployment-CURATxjG.js} +2 -3
- package/dist/deployment-l7RuKdEp.js +1 -0
- package/dist/{dev-peer-CHjyHYG6.js → dev-peer-CRYp01PE.js} +2 -222
- package/dist/dev-peer-CX5C9243.js +1 -0
- package/dist/{development-zLxOp-AO.js → development-DD567hhJ.js} +2 -3
- package/dist/{development-RnopiRwK.d.ts → development-I40mfD7B.d.ts} +1 -3
- package/dist/{diagnostics-DtR0TAmq.js → diagnostics-DLHqjKGe.js} +3 -9
- package/dist/diagnostics-DgGKvWzF.d.ts +7 -0
- package/dist/docs/nuxt.js +1 -2
- package/dist/doctor.d.ts +0 -6
- package/dist/doctor.js +11492 -12152
- package/dist/{documents-BDR0AkYR.d.ts → documents-A-7Ho0g0.d.ts} +12 -16
- package/dist/{documents-B4R4JSfH.js → documents-BduuZjm3.js} +6 -6
- package/dist/{documents-BASIRZ91.d.ts → documents-CApMRd4o.d.ts} +4 -7
- package/dist/{documents-BewAPY61.js → documents-D6ueeoUR.js} +17 -21
- package/dist/durability/operations.d.ts +2 -4
- package/dist/durability/operations.js +3 -4
- package/dist/{entries-DbyNPLC9.js → entries-UFs9n1MB.js} +2 -3
- package/dist/{console/runtime/server → env/console}/env.get.d.ts +2 -4
- package/dist/env/console/env.get.js +15 -0
- package/dist/env/console/operations.d.ts +3 -0
- package/dist/env/console/operations.js +12 -0
- package/dist/env/vite.d.ts +1 -0
- package/dist/env/vite.js +2 -0
- package/dist/{env-Dg1I_DWr.js → env-D-wtSupz.js} +2 -3
- package/dist/{error-diagnostics-B1yAIaSn.js → error-diagnostics-CBtvqI30.js} +2 -7
- package/dist/{error-diagnostics-C0KyI408.js → error-diagnostics-kKXseq8d.js} +5 -2
- package/dist/error-diagnostics.ts +1 -7
- package/dist/{features-CC5OcZqJ.js → features-BXRKlmtN.js} +5 -6
- package/dist/features-CD5i5I8V.js +1 -0
- package/dist/{format-BOYlanIZ.js → format-Df-bS4Ly.js} +1 -2
- package/dist/{github-login-Bi3bfjRX.js → github-login-W-vaahWP.js} +1 -2
- 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 +1 -7
- package/dist/index.js +5 -7
- package/dist/{inspect-DbZuP_7b.js → inspect-CWwAuL-B.js} +2 -3
- 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-Cc9N0shU.d.ts → internal-BRNf11h3.d.ts} +14 -8
- package/dist/{invariant-DolT9EEx.js → invariant-Dj2R1eMr.js} +1 -2
- package/dist/{invocation-page-undo-DqYcPlkQ.js → invocation-page-undo-DHbXczWY.js} +8 -7
- package/dist/invocations-B60XWNES.js +45 -0
- package/dist/{limits-BUlwWYQE.js → limits-BLo31qDR.js} +1 -2
- package/dist/logs/client.d.ts +1 -3
- package/dist/logs/client.js +1 -2
- package/dist/{console/runtime/server → logs/console}/logs.get.d.ts +3 -5
- package/dist/{console/runtime/server → logs/console}/logs.get.js +7 -8
- package/dist/logs/console/operations.d.ts +3 -0
- package/dist/logs/console/operations.js +23 -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/loopback-Bl9Cvj1k.js +139 -0
- package/dist/mcp/eval.d.ts +1 -0
- package/dist/mcp/eval.js +2 -0
- package/dist/{mcp-client-C_sEmyQw.d.ts → mcp-client-uXVvS7RL.d.ts} +5 -10
- package/dist/{media-uKX4Wy-c.d.ts → media-C79RB1oH.d.ts} +0 -2
- package/dist/{media-D3OfyKni.js → media-CNwnh6CG.js} +8 -9
- package/dist/{media-library-o8RRsnn_.js → media-library-DTC8TLsZ.js} +5 -6
- package/dist/{media-library-D9ThbXqs.d.ts → media-library-DxGu6w9z.d.ts} +0 -2
- package/dist/{memory-C54SDH_l.js → memory-D3EJS_Bp.js} +3 -4
- package/dist/{memory-2bbl4hcV.d.ts → memory-GK5ZGWrp.d.ts} +1 -3
- package/dist/{nuxt-server-auto-imports-cfTZYvgy.js → nuxt-server-auto-imports-4aT5BD4u.js} +1 -2
- package/dist/{nuxt-server-imports-75bWMeXc.js → nuxt-server-imports-BdJqiVhT.js} +1 -2
- package/dist/nuxt.d.ts +1 -3
- package/dist/nuxt.js +276 -182
- package/dist/{object-D8pRdprI.js → object-DRSmpe04.js} +1 -2
- package/dist/{operation-contributions-C3lwePQu.js → operation-contributions-BU10k2QS.js} +9 -9
- package/dist/{operation-contributions-CrdmqtJW.d.ts → operation-contributions-xwjDzj28.d.ts} +6 -7
- package/dist/{operation-definition-DxjKcCGm.js → operation-definition-D04Rdjbe.js} +7 -9
- package/dist/operation-modules-BUXlwjvd.js +1 -0
- package/dist/operation-modules-DHWkPcfS.js +139 -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-D-7ljPqw.js +1 -0
- package/dist/{operations-TTjL_7Zc.d.ts → operations-DgFhA1WE.d.ts} +0 -4
- package/dist/{operations-CFYGXqLm.js → operations-DksTrRMb.js} +4 -5
- package/dist/operations-byxiZ2R2.js +113 -0
- package/dist/{optional-owners-O6sj4uoj.js → optional-owners-Cypch7V3.js} +4 -6
- package/dist/{out-fRNaVslw.js → out-Cw5Tvr92.js} +2933 -2301
- package/dist/{owned-paths-BnjT0FhU.js → owned-paths-MjjDftBn.js} +1 -2
- package/dist/page/pill.iife.js +2 -2
- package/dist/page-tools-BeZrtn4S.js +46 -0
- package/dist/page-tools-Chk8Gm9x.d.ts +23 -0
- package/dist/page-tools-shared-BLPidmCi.js +39 -0
- package/dist/{pathe.M-eThtNZ-J4gfe1m9.js → pathe.M-eThtNZ-D4EC7Wue.js} +1 -2
- package/dist/{plugins-DoXnU6-s.d.ts → plugins-BmkOoyIh.d.ts} +25 -110
- package/dist/{plugins-BTZQaFtZ.js → plugins-DfXcUnzN.js} +1779 -1384
- package/dist/presets/workspace.js +1 -2
- package/dist/{project-Dgyq1F1V.d.ts → project-B2qWt8on.d.ts} +3 -12
- package/dist/{project-DlWTGB7h.js → project-DRC67Uiu.js} +1 -2
- package/dist/{project-DXZRZEPX.js → project-_juMSuAS.js} +8 -11
- package/dist/{project-link-DT99MoyU.js → project-link-CJbCkOlC.js} +7 -8
- package/dist/{project-link-bNS-KROO.d.ts → project-link-Ck3vuq9w.d.ts} +2 -4
- package/dist/{project-root-v6ba4tn7.js → project-root-mAVQGZTX.js} +1 -2
- package/dist/project-session-8pN7pRo8.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-CMA2UKKq.js → request-D769eiBL.js} +5 -6
- package/dist/{request-D7h3SQ92.d.ts → request-DYmjLTqP.d.ts} +2 -4
- package/dist/{request-SBLxvpyr.d.ts → request-DkoE0b2h.d.ts} +11 -4
- package/dist/{request-Cs0FqxEL.js → request-XFVx7CGC.js} +30 -9
- package/dist/{request-origin-COUkgHd6.js → request-origin-pzWr9UUu.js} +1 -2
- package/dist/{rolldown-runtime-CMFfr-1z.js → rolldown-runtime-DegdyBIC.js} +2 -3
- package/dist/{route-query-CRVWXIrc.js → route-query-BWVl6ZO6.js} +4 -5
- package/dist/routes-D02vxUSg.js +26 -0
- 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-B-46Bawt.js → runtime-CRJsqVTa.js} +2 -3
- package/dist/{runtime-DxfJOfCd.js → runtime-DA7HJe10.js} +3 -4
- package/dist/runtime-DGvimtvc.d.ts +5 -0
- package/dist/{runtime-CX_l_78I.js → runtime-F0CTqBFx.js} +5 -6
- package/dist/{runtime-feature-guard-CuyPVGj9.js → runtime-feature-guard-BKAMRZzM.js} +6 -7
- 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/search-jgMrZJXR.js +84 -0
- package/dist/{sections-DumoLKQN.js → sections-AUGy9EkY.js} +2 -8
- package/dist/{sections-BogiCmtz.d.ts → sections-BMkFB3S-.d.ts} +4 -6
- package/dist/{sections-C83x0slv.js → sections-BNTdIEJw.js} +2 -3
- package/dist/{sections-Do7X4Nwt.d.ts → sections-DCoCa4nF.d.ts} +1 -8
- package/dist/sections-DjeAUX7o.d.ts +8 -0
- package/dist/{sections-BKUReack.js → sections-ZFAlI4JW.js} +14 -7
- package/dist/{sections.get-H46e2urg.d.ts → sections.get-BY5dClJY.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/{setup-BC0P3eZy.d.ts → setup-BBnZPziq.d.ts} +5 -10
- package/dist/{setup-DNGzawFn.js → setup-yc3_WKNG.js} +4 -17
- package/dist/site-CZCIWsUQ.js +169 -0
- package/dist/site-link-Bvo2SxPo.js +58 -0
- package/dist/site-link-Dtw8MNVB.d.ts +18 -0
- package/dist/site-pages-B6J8U2Nq.js +66 -0
- package/dist/site-token-Wa7fhjwg.js +215 -0
- package/dist/site-visitor-BkhE2TA0.js +89 -0
- package/dist/skills/operations.d.ts +1 -5
- package/dist/skills/operations.js +4 -5
- package/dist/{skills-DdpSMiCI.js → skills-C1MaGEbO.js} +1 -2
- package/dist/skills.d.ts +1 -2
- package/dist/{skills.get-CRd06TTb.js → skills.get-CW8vc_Hf.js} +3 -4
- package/dist/skills.js +1 -2
- package/dist/{source-Cw3iYvJF.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/ui/vite.js +1 -2
- package/dist/usage-DBi7aOhx.js +33 -0
- package/dist/{version-dkga9imp.js → version-DUCd7Orc.js} +24 -21
- package/dist/{vite-stage-D7fe614I.js → vite-stage-Dmo4RgnK.js} +3 -5
- package/dist/{vue-router-C68IU1jM.d.ts → vue-router-plZJLlpm.d.ts} +120 -182
- package/dist/workspace/console/operations.d.ts +3 -0
- package/dist/workspace/console/operations.js +22 -0
- package/dist/{console/runtime/server → workspace/console}/workspace-files.get.d.ts +3 -5
- package/dist/{console/runtime/server → workspace/console}/workspace-files.get.js +4 -5
- package/dist/{workspace-history-B95Q-kGI.js → workspace-history-B52xib2J.js} +3 -4
- package/dist/{workspace-history-CeVwBB6Q.d.ts → workspace-history-WuxgLsi4.d.ts} +0 -2
- package/package.json +158 -149
- package/dist/agents-BhFggA26.js +0 -2
- package/dist/auth-GFIN6xSJ.d.ts +0 -120
- package/dist/cli-config-g_mbWdjT.js +0 -2
- package/dist/cloudflare-env-lookup-DKXdr4P_.js +0 -16
- package/dist/console/runtime/client/ticket.d.ts +0 -2
- package/dist/console/runtime/client/ticket.js +0 -2
- package/dist/console/runtime/page/loader.js +0 -134
- package/dist/console/runtime/server/auth.d.ts +0 -2
- package/dist/console/runtime/server/env.get.js +0 -16
- package/dist/console/runtime/server/invocation-workspace.get.d.ts +0 -8
- package/dist/console/runtime/server/mcp-client-operations.d.ts +0 -5
- package/dist/console/runtime/server/mcp-client-operations.js +0 -139
- package/dist/console/runtime/server/page-auth.d.ts +0 -18
- package/dist/console/runtime/server/page-auth.js +0 -44
- package/dist/console/runtime/server/page-tool.d.ts +0 -2
- package/dist/console/runtime/server/page-tool.js +0 -110
- package/dist/console/runtime/server/page-tools-route.d.ts +0 -2
- package/dist/console/runtime/server/page-tools-route.js +0 -5
- package/dist/console/runtime/server/search.get.d.ts +0 -4
- package/dist/console/runtime/server/search.get.js +0 -97
- package/dist/console/runtime/server/site-session.d.ts +0 -80
- package/dist/console/runtime/server/site-session.js +0 -2
- package/dist/console/runtime/server/tickets.d.ts +0 -2
- package/dist/console/runtime/server/tickets.js +0 -2
- package/dist/console/runtime/server/usage.get.d.ts +0 -10
- package/dist/console/runtime/server/usage.get.js +0 -92
- package/dist/console/runtime/site-access.d.ts +0 -2
- package/dist/console/runtime/site-access.js +0 -2
- package/dist/console-lazy-views-DXnIkdyd.js +0 -2
- package/dist/definition-catalog-og_1razf.js +0 -2
- package/dist/deployment-C2B0hBBj.js +0 -2
- package/dist/diagnostics-CjGiniKb.d.ts +0 -11
- package/dist/features-ujWsvlEH.js +0 -2
- package/dist/invocations-6jxqLkGY.js +0 -86
- package/dist/mcp-client-C91h8Taa.js +0 -1024
- package/dist/mcp-client-CTbTbn7d.js +0 -10
- package/dist/operations-5Lwd1xEI.js +0 -2
- package/dist/operations-ChEXk2ij.js +0 -853
- package/dist/page-tool-PmxH65gt.d.ts +0 -69
- package/dist/page-tools-ClgqElu-.js +0 -462
- package/dist/page-tools-DcCCtDKi.d.ts +0 -23
- package/dist/page-tools-shared-aNC9YtoI.js +0 -125
- package/dist/runtime-B_btezs1.d.ts +0 -7
- package/dist/scan-module-D_3X08mj.js +0 -2
- package/dist/secret-DELGKpCJ.js +0 -44
- package/dist/sections-CFiMNsqu.d.ts +0 -10
- package/dist/site-access-BycrwM2v.js +0 -18
- package/dist/site-access-CAiWyKOD.js +0 -2
- package/dist/site-access-DxfdOel1.d.ts +0 -55
- package/dist/site-access-L1qbvKt6.js +0 -293
- package/dist/site-session-CRwgKtTF.js +0 -300
- package/dist/skills/vitehub/SKILL.md +0 -142
- package/dist/skills/vitehub/agents/openai.yaml +0 -4
- package/dist/skills/vitehub/references/agent-definitions.md +0 -36
- package/dist/skills/vitehub/references/bundle.md +0 -57
- package/dist/skills/vitehub/references/capabilities-authority.md +0 -30
- package/dist/skills/vitehub/references/channels-triggers.md +0 -27
- package/dist/skills/vitehub/references/framework-composition.md +0 -29
- package/dist/skills/vitehub/references/preview-contract.md +0 -44
- package/dist/skills/vitehub/references/primitives/auth.md +0 -14
- package/dist/skills/vitehub/references/primitives/blob.md +0 -13
- package/dist/skills/vitehub/references/primitives/browser.md +0 -17
- package/dist/skills/vitehub/references/primitives/cache.md +0 -13
- package/dist/skills/vitehub/references/primitives/channels.md +0 -11
- package/dist/skills/vitehub/references/primitives/connections.md +0 -14
- package/dist/skills/vitehub/references/primitives/content.md +0 -13
- package/dist/skills/vitehub/references/primitives/database.md +0 -15
- package/dist/skills/vitehub/references/primitives/email.md +0 -11
- package/dist/skills/vitehub/references/primitives/env.md +0 -13
- package/dist/skills/vitehub/references/primitives/kv.md +0 -13
- package/dist/skills/vitehub/references/primitives/markdown-template.md +0 -13
- package/dist/skills/vitehub/references/primitives/queue.md +0 -14
- package/dist/skills/vitehub/references/primitives/rate-limit.md +0 -11
- package/dist/skills/vitehub/references/primitives/realtime.md +0 -19
- package/dist/skills/vitehub/references/primitives/sandbox-task.md +0 -11
- package/dist/skills/vitehub/references/primitives/sandbox.md +0 -13
- package/dist/skills/vitehub/references/primitives/schedule.md +0 -11
- package/dist/skills/vitehub/references/primitives/shell.md +0 -11
- package/dist/skills/vitehub/references/primitives/source.md +0 -11
- package/dist/skills/vitehub/references/primitives/workflow.md +0 -11
- package/dist/skills/vitehub/references/primitives/workspace.md +0 -11
- package/dist/skills/vitehub/references/project-patterns.md +0 -19
- package/dist/skills/vitehub/references/project-shapes.md +0 -81
- package/dist/skills/vitehub/references/proof-recovery.md +0 -31
- package/dist/skills/vitehub/references/sandboxes-hosts.md +0 -26
- package/dist/skills/vitehub/references/schedules-workflows-invocations.md +0 -28
- package/dist/skills/vitehub/references/server-primitives.md +0 -39
- package/dist/skills/vitehub/references/workspaces-sources-access.md +0 -26
- package/dist/ticket-DtBAstEU.js +0 -31
- package/dist/ticket-Pr_8ZtXW.d.ts +0 -14
- package/dist/tickets-DahBmKDT.js +0 -357
- package/dist/usage-CoQXs5nW.d.ts +0 -22
- package/dist/usage-index-VJAZ7a0p.js +0 -335
- package/dist/usage-jKtAgJZ0.js +0 -571
- /package/dist/{console/runtime/public/skills → console-skills}/index.json +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/SKILL.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/agents/openai.yaml +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/agent-definitions.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/bundle.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/capabilities-authority.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/channels-triggers.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/framework-composition.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/preview-contract.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/auth.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/blob.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/browser.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/cache.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/channels.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/connections.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/content.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/database.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/email.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/env.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/kv.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/markdown-template.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/queue.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/rate-limit.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/realtime.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/sandbox-task.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/sandbox.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/schedule.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/shell.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/source.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/workflow.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/workspace.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/project-patterns.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/project-shapes.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/proof-recovery.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/sandboxes-hosts.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/schedules-workflows-invocations.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/server-primitives.md +0 -0
- /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/workspaces-sources-access.md +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as consolePerson, o as consoleImpersonation } from "
|
|
2
|
-
import {
|
|
3
|
-
import { r as getConsoleSections } from "
|
|
1
|
+
import { l as consolePerson, o as consoleImpersonation } from "../../access-CUFHPi8T.js";
|
|
2
|
+
import { r as consoleRequestError } from "../../request-D769eiBL.js";
|
|
3
|
+
import { r as getConsoleSections } from "../../sections-BNTdIEJw.js";
|
|
4
4
|
import { getAuthConsoleForRequest } from "@vite-hub/auth/server";
|
|
5
|
-
|
|
5
|
+
// src/auth/console/auth.ts
|
|
6
6
|
const statuses = {
|
|
7
7
|
AUTH_CONSOLE_INVALID_REQUEST: 400,
|
|
8
8
|
AUTH_CONSOLE_FORBIDDEN: 403,
|
|
@@ -59,14 +59,13 @@ async function runAuthConsoleAction(context, mutation) {
|
|
|
59
59
|
return await response.json();
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
* `auth.impersonate` and `auth.stop-impersonating`: check the call
|
|
63
|
-
*
|
|
64
|
-
* to the
|
|
62
|
+
* `auth.impersonate` and `auth.stop-impersonating`: check the call and answer the app path to open, `/`. The Console
|
|
63
|
+
* calls them as the member before it signs an `impersonate` Site access token, and the app's `/_vitehub/site` starts or
|
|
64
|
+
* stops the impersonation with the browser's app session, which must belong to the email of the token.
|
|
65
65
|
*/
|
|
66
|
-
async function
|
|
66
|
+
async function checkImpersonation(context, userId) {
|
|
67
67
|
if (!consoleImpersonation()) throw consoleRequestError(404, "Impersonation is off. Set console.impersonation to true to enable it.");
|
|
68
|
-
|
|
69
|
-
if (userId === void 0) return await issueConsoleTicket(context, "auth.stop-impersonating", {});
|
|
68
|
+
if (userId === void 0) return { path: "/" };
|
|
70
69
|
const { api, request } = await operationAuthConsole(context);
|
|
71
70
|
const [describeError, description] = await api.describe(request);
|
|
72
71
|
if (describeError) throw authConsoleFailure(describeError);
|
|
@@ -75,7 +74,6 @@ async function issueImpersonationTicket(context, userId) {
|
|
|
75
74
|
const [userError, detail] = await api.user(userId, request);
|
|
76
75
|
if (userError) throw authConsoleFailure(userError);
|
|
77
76
|
if (detail.impersonation && !detail.impersonation.enabled) throw consoleRequestError(403, detail.impersonation.reason ?? "Better Auth does not impersonate this user.", "CONSOLE_ACCESS_DENIED");
|
|
78
|
-
return
|
|
77
|
+
return { path: "/" };
|
|
79
78
|
}
|
|
80
|
-
|
|
81
|
-
export { authConsoleFailure, issueImpersonationTicket, runAuthConsoleAction, runAuthConsoleRead };
|
|
79
|
+
export { authConsoleFailure, checkImpersonation, runAuthConsoleAction, runAuthConsoleRead };
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { n as authConsoleImpersonationOperations, r as authConsoleReadOperations, t as authConsoleActionOperations } from "../../auth-operations-BKqoX8Ua.js";
|
|
2
|
+
import { i as defineConsoleOperation, l as text } from "../../operations-byxiZ2R2.js";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
// src/auth/console/operations.ts
|
|
5
|
+
const authId = v.pipe(text, v.minLength(1), v.maxLength(512));
|
|
6
|
+
const authQuery = {
|
|
7
|
+
filter: v.optional(v.picklist([
|
|
8
|
+
"all",
|
|
9
|
+
"admins",
|
|
10
|
+
"banned",
|
|
11
|
+
"agents"
|
|
12
|
+
])),
|
|
13
|
+
limit: v.optional(v.number()),
|
|
14
|
+
offset: v.optional(v.number()),
|
|
15
|
+
search: v.optional(v.pipe(text, v.maxLength(200))),
|
|
16
|
+
userId: v.optional(authId)
|
|
17
|
+
};
|
|
18
|
+
const authValue = v.union([
|
|
19
|
+
text,
|
|
20
|
+
v.number(),
|
|
21
|
+
v.boolean(),
|
|
22
|
+
v.null(),
|
|
23
|
+
v.array(text),
|
|
24
|
+
v.array(v.number())
|
|
25
|
+
]);
|
|
26
|
+
function authRead(name, description, input, read) {
|
|
27
|
+
return defineConsoleOperation({
|
|
28
|
+
description,
|
|
29
|
+
input,
|
|
30
|
+
kind: "read",
|
|
31
|
+
mcp: false,
|
|
32
|
+
name: authConsoleReadOperations[name],
|
|
33
|
+
run: async (value, context) => (await import("./auth.js")).runAuthConsoleRead(context, (api, request) => read(api, request, value)),
|
|
34
|
+
section: "auth"
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function authAction(action, description, kind, input, mutation, positional) {
|
|
38
|
+
return defineConsoleOperation({
|
|
39
|
+
cli: { positional: [positional] },
|
|
40
|
+
description,
|
|
41
|
+
input,
|
|
42
|
+
kind,
|
|
43
|
+
mcp: false,
|
|
44
|
+
name: authConsoleActionOperations[action],
|
|
45
|
+
run: async (value, context) => (await import("./auth.js")).runAuthConsoleAction(context, mutation(value)),
|
|
46
|
+
section: "auth"
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/** The Console operations of the Auth section. The Console registers them only when the app has Auth. */
|
|
50
|
+
const authConsoleOperations = [
|
|
51
|
+
authRead("describe", "Describe the Auth of the app: its pages, user fields, and the actions that this access may run.", v.strictObject({}), (api, request) => api.describe(request)),
|
|
52
|
+
authRead("overview", "Count the users, new users, active sessions, and approved Agents of the app, with its recent Auth events.", v.strictObject({}), (api) => api.overview()),
|
|
53
|
+
authRead("activity", "List recent Auth events, newest first, one page at a time.", v.strictObject({
|
|
54
|
+
cursor: v.optional(v.pipe(text, v.maxLength(2048))),
|
|
55
|
+
group: v.optional(v.picklist([
|
|
56
|
+
"sign-in",
|
|
57
|
+
"admin",
|
|
58
|
+
"agents",
|
|
59
|
+
"organizations"
|
|
60
|
+
])),
|
|
61
|
+
limit: v.optional(v.pipe(v.number(), v.integer(), v.minValue(1), v.maxValue(200))),
|
|
62
|
+
userId: v.optional(authId)
|
|
63
|
+
}), (api, _request, input) => api.activity(input)),
|
|
64
|
+
authRead("users", "List the users of the app, one page at a time.", v.strictObject(authQuery), (api, _request, input) => api.users(input)),
|
|
65
|
+
authRead("user", "Read one user with its sessions, accounts, Agent clients, and organizations.", v.strictObject({ id: authId }), (api, request, input) => api.user(input.id, request)),
|
|
66
|
+
authRead("sessions", "List the active sessions of the app, one page at a time.", v.strictObject(authQuery), (api, _request, input) => api.sessions(input)),
|
|
67
|
+
authRead("organizations", "List the organizations of the app, one page at a time.", v.strictObject(authQuery), (api, _request, input) => api.organizations(input)),
|
|
68
|
+
authRead("organization", "Read one organization with its members and invitations, one page at a time.", v.strictObject({
|
|
69
|
+
...authQuery,
|
|
70
|
+
id: authId
|
|
71
|
+
}), (api, _request, { id, ...query }) => api.organization(id, query)),
|
|
72
|
+
authRead("agents", "List the Agent clients that users granted access, one page at a time.", v.strictObject(authQuery), (api, _request, input) => api.agents(input)),
|
|
73
|
+
authAction("ban", "Ban a user, with an optional reason and expiry in seconds.", "write", v.strictObject({
|
|
74
|
+
expiresIn: v.optional(v.number()),
|
|
75
|
+
reason: v.optional(v.pipe(text, v.maxLength(1e3))),
|
|
76
|
+
userId: authId
|
|
77
|
+
}), (input) => ({
|
|
78
|
+
action: "ban",
|
|
79
|
+
...input
|
|
80
|
+
}), "userId"),
|
|
81
|
+
authAction("unban", "Lift the ban of a user.", "write", v.strictObject({ userId: authId }), (input) => ({
|
|
82
|
+
action: "unban",
|
|
83
|
+
...input
|
|
84
|
+
}), "userId"),
|
|
85
|
+
authAction("remove", "Delete a user and its sessions and accounts.", "destructive", v.strictObject({ userId: authId }), (input) => ({
|
|
86
|
+
action: "remove",
|
|
87
|
+
...input
|
|
88
|
+
}), "userId"),
|
|
89
|
+
authAction("revokeSessions", "Sign a user out of every session.", "destructive", v.strictObject({ userId: authId }), (input) => ({
|
|
90
|
+
action: "revokeSessions",
|
|
91
|
+
...input
|
|
92
|
+
}), "userId"),
|
|
93
|
+
authAction("setRole", "Set the role of a user.", "write", v.strictObject({
|
|
94
|
+
role: authId,
|
|
95
|
+
userId: authId
|
|
96
|
+
}), (input) => ({
|
|
97
|
+
action: "setRole",
|
|
98
|
+
...input
|
|
99
|
+
}), "userId"),
|
|
100
|
+
authAction("editField", "Change one field of a user.", "write", v.strictObject({
|
|
101
|
+
field: authId,
|
|
102
|
+
userId: authId,
|
|
103
|
+
value: authValue
|
|
104
|
+
}), (input) => ({
|
|
105
|
+
action: "editField",
|
|
106
|
+
...input
|
|
107
|
+
}), "userId"),
|
|
108
|
+
authAction("revokeSession", "End one session.", "destructive", v.strictObject({ id: authId }), (input) => ({
|
|
109
|
+
action: "revokeSession",
|
|
110
|
+
...input
|
|
111
|
+
}), "id"),
|
|
112
|
+
authAction("revokeConsent", "Revoke the access that a user granted an Agent client.", "destructive", v.strictObject({ id: authId }), (input) => ({
|
|
113
|
+
action: "revokeConsent",
|
|
114
|
+
...input
|
|
115
|
+
}), "id"),
|
|
116
|
+
defineConsoleOperation({
|
|
117
|
+
description: "Check that the caller may open the app in the browser as a user, and return the app path to open. The Console then signs an impersonate Site access token. The browser must be signed in to the app with the email of the person who asks.",
|
|
118
|
+
input: v.strictObject({ userId: authId }),
|
|
119
|
+
kind: "write",
|
|
120
|
+
mcp: false,
|
|
121
|
+
name: authConsoleImpersonationOperations.start,
|
|
122
|
+
run: async ({ userId }, context) => (await import("./auth.js")).checkImpersonation(context, userId),
|
|
123
|
+
section: "auth"
|
|
124
|
+
}),
|
|
125
|
+
defineConsoleOperation({
|
|
126
|
+
description: "Check that impersonation is on, and return the app path to open. The Console then signs a Site access token that ends the impersonation of the browser that opens it and restores the administrator's session.",
|
|
127
|
+
input: v.strictObject({}),
|
|
128
|
+
kind: "write",
|
|
129
|
+
mcp: false,
|
|
130
|
+
name: authConsoleImpersonationOperations.stop,
|
|
131
|
+
run: async (_input, context) => (await import("./auth.js")).checkImpersonation(context),
|
|
132
|
+
section: "auth"
|
|
133
|
+
})
|
|
134
|
+
];
|
|
135
|
+
export { authConsoleOperations };
|
package/dist/auth/server.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
// src/console/runtime/auth-operations.ts
|
|
2
2
|
/**
|
|
3
3
|
* The Auth management operations of the Console. Each read and each action of the Auth section is one operation on the
|
|
4
|
-
* Console RPC. Impersonation sets the app session cookie, so its operations
|
|
5
|
-
* opens on the app origin.
|
|
4
|
+
* Console RPC. Impersonation sets the app session cookie, so its operations only check the call. The Console then signs
|
|
5
|
+
* an `impersonate` Site access token that the browser opens on the app origin.
|
|
6
6
|
*/
|
|
7
7
|
const authConsoleReadOperations = {
|
|
8
8
|
activity: "auth.activity",
|
|
@@ -25,10 +25,9 @@ const authConsoleActionOperations = {
|
|
|
25
25
|
setRole: "auth.set-role",
|
|
26
26
|
unban: "auth.unban"
|
|
27
27
|
};
|
|
28
|
-
/** The operations that
|
|
28
|
+
/** The operations that check a start or a stop of impersonation before the Console signs its token. */
|
|
29
29
|
const authConsoleImpersonationOperations = {
|
|
30
30
|
start: "auth.impersonate",
|
|
31
31
|
stop: "auth.stop-impersonating"
|
|
32
32
|
};
|
|
33
|
-
//#endregion
|
|
34
33
|
export { authConsoleImpersonationOperations as n, authConsoleReadOperations as r, authConsoleActionOperations as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AccessAuthorizationContext } from "@vite-hub/runtime";
|
|
2
|
-
//#region ../internal/src/console-signature.d.ts
|
|
3
2
|
/** The person that the Console signs for. The app gives it to `console.authorize` and to operations as the user. */
|
|
4
3
|
interface ConsoleCallerUser {
|
|
5
4
|
id: string;
|
|
@@ -7,8 +6,6 @@ interface ConsoleCallerUser {
|
|
|
7
6
|
email?: string;
|
|
8
7
|
emailVerified?: true;
|
|
9
8
|
}
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region src/console/auth-types.d.ts
|
|
12
9
|
/** The signed-in user that the Console gives `console.authorize`. */
|
|
13
10
|
type ConsoleUser = AccessAuthorizationContext<unknown, false>["user"];
|
|
14
11
|
/** The request that `console.authorize` checks with `console: { auth: false }` in development. It has no signature and no user. */
|
|
@@ -34,7 +31,7 @@ interface ConsoleSignedConsoleAuthorizeContext {
|
|
|
34
31
|
/** The `<NAME>` of the `VITEHUB_CONSOLE_KEY_<NAME>` variable whose key verified the signature. */
|
|
35
32
|
key: string;
|
|
36
33
|
/** `"mcp"` when the ViteHub MCP of the Console calls for `user`, such as from Claude Code. Not set for the Console page. */
|
|
37
|
-
surface?: "mcp";
|
|
34
|
+
surface?: "mcp" | "cli";
|
|
38
35
|
via: "console";
|
|
39
36
|
}
|
|
40
37
|
/** The request that `console.authorize` checks when the CLI signed it. The CLI has no user. */
|
|
@@ -54,24 +51,11 @@ interface ConsoleAgentAuthorizeContext {
|
|
|
54
51
|
user?: ConsoleUser;
|
|
55
52
|
via: "agent";
|
|
56
53
|
}
|
|
57
|
-
/**
|
|
58
|
-
* The check of the **Console** link in the page tools pill. It is not a Console call: the request is the page tools
|
|
59
|
-
* session request of a page of the app, and `user` is the ViteHub Auth user signed in to the app, when there is one.
|
|
60
|
-
* `true` or `{ sections }` with at least one section shows the link. The link gives no access: the Console checks the
|
|
61
|
-
* person and the team when it opens.
|
|
62
|
-
*/
|
|
63
|
-
interface ConsolePageAuthorizeContext {
|
|
64
|
-
request: Request;
|
|
65
|
-
/** The ViteHub Auth user of the page. Not set when the app has no Auth or nobody signed in. */
|
|
66
|
-
user?: ConsoleUser;
|
|
67
|
-
via: "page";
|
|
68
|
-
}
|
|
69
54
|
/**
|
|
70
55
|
* The request that `console.authorize` checks. `via` is `"console"` or `"cli"`: who signed the request. `via` is
|
|
71
|
-
* `"agent"` when an Agent calls Console operations as tools,
|
|
72
|
-
* Console link, and not set for an open Console in development.
|
|
56
|
+
* `"agent"` when an Agent calls Console operations as tools, and not set for an open Console in development.
|
|
73
57
|
*/
|
|
74
|
-
type ConsoleAuthorizeContext = ConsoleOpenAuthorizeContext | ConsoleSignedConsoleAuthorizeContext | ConsoleSignedCliAuthorizeContext | ConsoleAgentAuthorizeContext
|
|
58
|
+
type ConsoleAuthorizeContext = ConsoleOpenAuthorizeContext | ConsoleSignedConsoleAuthorizeContext | ConsoleSignedCliAuthorizeContext | ConsoleAgentAuthorizeContext;
|
|
75
59
|
/**
|
|
76
60
|
* What `console.authorize` returns for one request.
|
|
77
61
|
* - `true` allows every Console section.
|
|
@@ -87,5 +71,4 @@ type ConsoleAuthorizeResult = boolean | Response | {
|
|
|
87
71
|
};
|
|
88
72
|
/** Decides whether one Console request may continue, and which Console sections it may use. */
|
|
89
73
|
type ConsoleAuthorize = (context: ConsoleAuthorizeContext) => ConsoleAuthorizeResult | Promise<ConsoleAuthorizeResult>;
|
|
90
|
-
|
|
91
|
-
export { ConsoleOpenAuthorizeContext as a, ConsoleSignedConsoleAuthorizeContext as c, ConsoleAuthorizeResult as i, ConsoleUser as l, ConsoleAuthorize as n, ConsolePageAuthorizeContext as o, ConsoleAuthorizeContext as r, ConsoleSignedCliAuthorizeContext as s, ConsoleAgentAuthorizeContext as t };
|
|
74
|
+
export { ConsoleOpenAuthorizeContext as a, ConsoleUser as c, ConsoleAuthorizeResult as i, ConsoleAuthorize as n, ConsoleSignedCliAuthorizeContext as o, ConsoleAuthorizeContext as r, ConsoleSignedConsoleAuthorizeContext as s, ConsoleAgentAuthorizeContext as t };
|
package/dist/bin.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import { t as loadViteHubCliConfig } from "./cli-config-
|
|
2
|
+
import { i as importOptionalOwner, l as requireOptionalOwner, t as assertFeaturePackages } from "./optional-owners-Cypch7V3.js";
|
|
3
|
+
import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
|
|
4
|
+
import { t as loadViteHubCliConfig } from "./cli-config-BX8H4ZCo.js";
|
|
5
5
|
import { runViteHubCliEntrypoint } from "@vite-hub/cli";
|
|
6
6
|
import { resolve } from "node:path";
|
|
7
7
|
import { parseArgs } from "node:util";
|
|
8
8
|
import { secretCliFeatures } from "@vite-hub/env/cli";
|
|
9
|
-
|
|
9
|
+
// src/migrate-cli.ts
|
|
10
10
|
const usage = "vitehub migrate [dir] [--dry-run]";
|
|
11
11
|
/** Silent Result failures are not syntax, so no codemod finds them. The Doctor rule does. */
|
|
12
12
|
const resultCheck = "Run Vite Doctor. Rule VHUB0003 lists Result calls whose error the code drops, such as `await email.send(...)` as a statement.";
|
|
@@ -61,8 +61,7 @@ function createMigrateCliNamespace() {
|
|
|
61
61
|
name: "migrate"
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
//#region src/sandbox-cli.ts
|
|
64
|
+
// src/sandbox-cli.ts
|
|
66
65
|
const serveUsage = "vitehub sandbox serve --user <name> --host-key <file> --authorized-key <file> [--host <address>] [--port <port>] [--cwd <dir>] [--drain-timeout <ms>]";
|
|
67
66
|
const checkUsage = "vitehub sandbox check --user <name> --identity-file <file> [--host-key-file <file> | --known-hosts-file <file>] [--host <address>] [--port <port>] [--driver <codex|claude-code>] [--timeout <ms>]";
|
|
68
67
|
const maxTimeoutMs = 2147483647;
|
|
@@ -280,8 +279,7 @@ function createSandboxCliNamespace() {
|
|
|
280
279
|
name: "sandbox"
|
|
281
280
|
};
|
|
282
281
|
}
|
|
283
|
-
|
|
284
|
-
//#region src/bin.ts
|
|
282
|
+
// src/bin.ts
|
|
285
283
|
const agentRuntimeFeatures = {
|
|
286
284
|
features: [
|
|
287
285
|
{
|
|
@@ -292,7 +290,7 @@ const agentRuntimeFeatures = {
|
|
|
292
290
|
name: "invocations",
|
|
293
291
|
run: async (args, context) => {
|
|
294
292
|
const cli = requireOptionalOwner(await importOptionalOwner("@vite-hub/agent", () => import("@vite-hub/agent/internal/agent-invocations-cli")), "agent");
|
|
295
|
-
const { readAgentJournalPostgres, readAgentJournalStateUrl } = await import("./runtime-feature-guard-
|
|
293
|
+
const { readAgentJournalPostgres, readAgentJournalStateUrl } = await import("./runtime-feature-guard-BKAMRZzM.js");
|
|
296
294
|
const stateUrl = await readAgentJournalStateUrl(context.rootDir, context.env);
|
|
297
295
|
return cli.runAgentInvocationsCli(args, {
|
|
298
296
|
...context,
|
|
@@ -329,7 +327,7 @@ runViteHubCliEntrypoint({
|
|
|
329
327
|
loadConfig: (root, command, mode) => loadViteHubCliConfig(root, command, mode, { prepareNuxtTypes: process.argv[2] === "email" && process.argv[3] === "preview" }),
|
|
330
328
|
runtimeFeatureGuard: async (namespace, feature, cwd) => {
|
|
331
329
|
if (namespace !== "agent" || feature !== "emulator" && feature !== "invocations" && feature !== "state") return true;
|
|
332
|
-
const { isAgentCliEnabled, isAgentEmulatorStandalone } = await import("./runtime-feature-guard-
|
|
330
|
+
const { isAgentCliEnabled, isAgentEmulatorStandalone } = await import("./runtime-feature-guard-BKAMRZzM.js");
|
|
333
331
|
if (feature === "emulator") return isAgentEmulatorStandalone(process.argv.slice(4), process.env, cwd);
|
|
334
332
|
return isAgentCliEnabled(cwd);
|
|
335
333
|
},
|
|
@@ -347,5 +345,4 @@ runViteHubCliEntrypoint({
|
|
|
347
345
|
secretRuntimeNamespace
|
|
348
346
|
]
|
|
349
347
|
});
|
|
350
|
-
//#endregion
|
|
351
348
|
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { n as AnyOperation } from "../../operations-DgFhA1WE.js";
|
|
2
|
+
/** The Console operations of the media library of a document editor section. The Console registers them only with Blob and a document editor. */
|
|
3
|
+
export declare const mediaConsoleOperations: readonly AnyOperation[];
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { r as loadConsoleMedia } from "../../blob-iw8pWQ6o.js";
|
|
2
|
+
import { i as defineConsoleOperation, l as text, n as consoleOperationRequestBytes, s as optionalText } from "../../operations-byxiZ2R2.js";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
// src/blob/console/operations.ts
|
|
5
|
+
const consoleMediaReadActions = /* @__PURE__ */ new Set([
|
|
6
|
+
"get",
|
|
7
|
+
"info",
|
|
8
|
+
"list",
|
|
9
|
+
"usage"
|
|
10
|
+
]);
|
|
11
|
+
/** The Console operations of the media library of a document editor section. The Console registers them only with Blob and a document editor. */
|
|
12
|
+
const mediaConsoleOperations = [defineConsoleOperation({
|
|
13
|
+
mcp: false,
|
|
14
|
+
description: "Run one media library action of a Console section.",
|
|
15
|
+
input: v.strictObject({
|
|
16
|
+
action: text,
|
|
17
|
+
body: v.optional(v.unknown()),
|
|
18
|
+
section: text
|
|
19
|
+
}),
|
|
20
|
+
kind: "write",
|
|
21
|
+
maxRequestBytes: consoleOperationRequestBytes["media.action"],
|
|
22
|
+
readOnlyWhen: ({ action }) => consoleMediaReadActions.has(action),
|
|
23
|
+
name: "media.action",
|
|
24
|
+
run: async ({ action, body, section }, context) => (await loadConsoleMedia()).runConsoleMediaAction(section, action, body, context.access),
|
|
25
|
+
section: (input) => input.section
|
|
26
|
+
}), defineConsoleOperation({
|
|
27
|
+
mcp: false,
|
|
28
|
+
description: "Upload one file, given as base64, to the media library of a Console section.",
|
|
29
|
+
input: v.strictObject({
|
|
30
|
+
contentType: optionalText,
|
|
31
|
+
crop: optionalText,
|
|
32
|
+
data: text,
|
|
33
|
+
filename: v.pipe(text, v.minLength(1), v.maxLength(255)),
|
|
34
|
+
folder: optionalText,
|
|
35
|
+
pathname: optionalText,
|
|
36
|
+
section: text
|
|
37
|
+
}),
|
|
38
|
+
kind: "write",
|
|
39
|
+
maxRequestBytes: consoleOperationRequestBytes["media.upload"],
|
|
40
|
+
name: "media.upload",
|
|
41
|
+
run: async (input, context) => (await loadConsoleMedia()).uploadConsoleMedia(input, context.access),
|
|
42
|
+
section: (input) => input.section
|
|
43
|
+
})];
|
|
44
|
+
export { mediaConsoleOperations };
|
package/dist/blob/nuxt-image.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { n as consoleState } from "./internal-0C_CC601.js";
|
|
2
|
+
import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
|
|
3
|
+
import { r as consoleRequestError } from "./request-D769eiBL.js";
|
|
4
|
+
// src/console/runtime/server/blob.ts
|
|
5
5
|
function installConsoleBlob(projectRoot, storage, stores = ["default"]) {
|
|
6
6
|
const installedStores = [...new Set(stores.filter((store) => store.length > 0))].filter((store) => store !== "default").sort();
|
|
7
7
|
installedStores.unshift("default");
|
|
8
8
|
return consoleState().blob = {
|
|
9
|
-
...import.meta.viteHubConsoleDocuments === false ? {} : { media: () => import("./media-
|
|
9
|
+
...import.meta.viteHubConsoleDocuments === false ? {} : { media: () => import("./media-CNwnh6CG.js") },
|
|
10
10
|
storage,
|
|
11
11
|
stores: installedStores
|
|
12
12
|
};
|
|
@@ -22,5 +22,4 @@ function getConsoleBlob() {
|
|
|
22
22
|
if (!inspection) throw viteHubErrorDiagnostics.VITE_HUB_R0049({ message: "[vitehub] Blob inspection has not been installed for this runtime." });
|
|
23
23
|
return inspection;
|
|
24
24
|
}
|
|
25
|
-
//#endregion
|
|
26
25
|
export { installConsoleBlob as n, loadConsoleMedia as r, getConsoleBlob as t };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as ConsoleMediaLibrary, n as ConsoleBlobInspection } from "./internal-BRNf11h3.js";
|
|
2
2
|
import { BlobStorage } from "@vite-hub/blob";
|
|
3
|
-
//#region src/console/runtime/server/blob.d.ts
|
|
4
3
|
declare function installConsoleBlob(projectRoot: string, storage: BlobStorage, stores?: readonly string[]): ConsoleBlobInspection;
|
|
5
4
|
/** The media library of a build with Blob. Throws a 404 Console error in a build without it. */
|
|
6
5
|
declare function loadConsoleMedia(): Promise<ConsoleMediaLibrary>;
|
|
7
6
|
declare function getConsoleBlob(): ConsoleBlobInspection;
|
|
8
|
-
//#endregion
|
|
9
7
|
export { installConsoleBlob as n, loadConsoleMedia as r, getConsoleBlob as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../internal/src/runtime/request-log.ts
|
|
2
2
|
function isRequestLog(value) {
|
|
3
3
|
return value !== null && typeof value === "object" && typeof Reflect.get(value, "set") === "function" && typeof Reflect.get(value, "warn") === "function" && typeof Reflect.get(value, "error") === "function";
|
|
4
4
|
}
|
|
@@ -19,8 +19,6 @@ function requestLog(input) {
|
|
|
19
19
|
* `vitehub()` generates use the same key.
|
|
20
20
|
*/
|
|
21
21
|
const evlogBridgeKey = "vitehub.evlog";
|
|
22
|
-
|
|
23
|
-
//#region src/_internal/browser-error-limits.ts
|
|
22
|
+
// src/_internal/browser-error-limits.ts
|
|
24
23
|
const browserErrorMaxBytes = 16384;
|
|
25
|
-
//#endregion
|
|
26
24
|
export { evlogBridgeKey as n, requestLog as r, browserErrorMaxBytes as t };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { n as AnyOperation } from "../operations-
|
|
2
|
-
//#region src/cache/operations.d.ts
|
|
1
|
+
import { n as AnyOperation } from "../operations-DgFhA1WE.js";
|
|
3
2
|
/** The `cache.*` operations: list, get, and delete. The Console, `vitehub cache`, and agents run them. */
|
|
4
|
-
export declare const cacheOperations: readonly AnyOperation[];
|
|
5
|
-
//#endregion
|
|
3
|
+
export declare const cacheOperations: readonly AnyOperation[];
|
package/dist/cache/operations.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as defineOperation } from "../operation-definition-
|
|
1
|
+
import { t as defineOperation } from "../operation-definition-D04Rdjbe.js";
|
|
2
2
|
import * as v from "valibot";
|
|
3
|
-
|
|
4
|
-
const runtime = () => import("../runtime-
|
|
3
|
+
// src/cache/operations.ts
|
|
4
|
+
const runtime = () => import("../runtime-CRJsqVTa.js");
|
|
5
5
|
function defineCacheOperation(definition) {
|
|
6
6
|
return defineOperation({
|
|
7
7
|
...definition,
|
|
@@ -47,5 +47,4 @@ const cacheOperations = [
|
|
|
47
47
|
run: async (input) => (await runtime()).deleteCache(input)
|
|
48
48
|
})
|
|
49
49
|
];
|
|
50
|
-
//#endregion
|
|
51
50
|
export { cacheOperations };
|
package/dist/cache.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventHandler, H3Event } from "nitro/h3";
|
|
2
2
|
import { CachedFunctionOptions as CachedFunctionOptions$1, CachedHandlerOptions as CachedHandlerOptions$1 } from "nitro/types";
|
|
3
3
|
import { CachedFunction } from "ocache";
|
|
4
|
-
//#region src/cache.d.ts
|
|
5
4
|
/** Tags for one cache entry: a list, or a function of the cached function's arguments. */
|
|
6
5
|
export type CacheTags<ArgsT extends unknown[]> = readonly string[] | ((...args: ArgsT) => readonly string[] | Promise<readonly string[]>);
|
|
7
6
|
/** Nitro's cached function options, plus `tags` and `staleIfError`. */
|
|
@@ -24,5 +23,4 @@ export declare function defineCachedFunction<T, ArgsT extends unknown[] = unknow
|
|
|
24
23
|
/** Like Nitro's `defineCachedHandler()`, with `tags`. */
|
|
25
24
|
export declare function defineCachedHandler(handler: EventHandler, opts?: CachedHandlerOptions): EventHandler;
|
|
26
25
|
/** Makes the next call of every cached function or handler with one of these tags run again. */
|
|
27
|
-
export declare function invalidateTag(tags: string | readonly string[]): Promise<void>;
|
|
28
|
-
//#endregion
|
|
26
|
+
export declare function invalidateTag(tags: string | readonly string[]): Promise<void>;
|
package/dist/cache.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as viteHubErrorDiagnostics } from "./error-diagnostics-
|
|
1
|
+
import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
|
|
2
2
|
import { defineCachedFunction as defineCachedFunction$1, defineCachedHandler as defineCachedHandler$1 } from "nitro/cache";
|
|
3
3
|
import { defineHandler, toResponse } from "nitro/h3";
|
|
4
|
-
|
|
4
|
+
// src/cache.ts
|
|
5
5
|
const tagHeader = "x-vitehub-cache-tags";
|
|
6
6
|
/** Like Nitro's `defineCachedFunction()`, with `tags` and `staleIfError`. */
|
|
7
7
|
function defineCachedFunction(fn, opts = {}) {
|
|
@@ -215,5 +215,4 @@ function tagGeneration(create) {
|
|
|
215
215
|
return current;
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
//#endregion
|
|
219
218
|
export { defineCachedFunction, defineCachedHandler, invalidateTag };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as viteCliProjectConfig, n as createCliDiscoveryNitroCloser, t as loadAllEnv } from "./vite-stage-
|
|
1
|
+
import { a as viteCliProjectConfig, n as createCliDiscoveryNitroCloser, t as loadAllEnv } from "./vite-stage-Dmo4RgnK.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { join, resolve } from "node:path";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
|
-
|
|
6
|
+
// src/internal/cli-config.ts
|
|
7
7
|
const configExtensions = [
|
|
8
8
|
"js",
|
|
9
9
|
"mjs",
|
|
@@ -94,5 +94,4 @@ async function loadViteHubCliConfig(rootDir, command = "serve", mode, dependenci
|
|
|
94
94
|
await nuxt.close?.();
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
//#endregion
|
|
98
97
|
export { loadViteHubCliConfig as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as loadViteHubCliConfig } from "./cli-config-BX8H4ZCo.js";
|
package/dist/cms.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ConsoleOpenAuthorizeContext, c as
|
|
2
|
-
export { ConsoleAgentAuthorizeContext, ConsoleAuthorize, ConsoleAuthorizeContext, ConsoleAuthorizeResult, ConsoleOpenAuthorizeContext,
|
|
1
|
+
import { a as ConsoleOpenAuthorizeContext, c as ConsoleUser, i as ConsoleAuthorizeResult, n as ConsoleAuthorize, o as ConsoleSignedCliAuthorizeContext, r as ConsoleAuthorizeContext, s as ConsoleSignedConsoleAuthorizeContext, t as ConsoleAgentAuthorizeContext } from "../auth-types-Cotn7406.js";
|
|
2
|
+
export { ConsoleAgentAuthorizeContext, ConsoleAuthorize, ConsoleAuthorizeContext, ConsoleAuthorizeResult, ConsoleOpenAuthorizeContext, ConsoleSignedCliAuthorizeContext, ConsoleSignedConsoleAuthorizeContext, ConsoleUser };
|
package/dist/console/auth.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { a as ConsoleOpenAuthorizeContext, c as
|
|
2
|
-
//#region src/console/auth.d.ts
|
|
1
|
+
import { a as ConsoleOpenAuthorizeContext, c as ConsoleUser, i as ConsoleAuthorizeResult, n as ConsoleAuthorize, o as ConsoleSignedCliAuthorizeContext, r as ConsoleAuthorizeContext, s as ConsoleSignedConsoleAuthorizeContext, t as ConsoleAgentAuthorizeContext } from "../auth-types-Cotn7406.js";
|
|
3
2
|
/** Define the function that every Console call runs after the signature check. Set its file path as `console.authorize`. */
|
|
4
3
|
export declare function defineConsoleAuthorize(authorize: ConsoleAuthorize): ConsoleAuthorize;
|
|
5
|
-
|
|
6
|
-
export type { ConsoleAgentAuthorizeContext, ConsoleAuthorize, ConsoleAuthorizeContext, ConsoleAuthorizeResult, ConsoleOpenAuthorizeContext, ConsolePageAuthorizeContext, ConsoleSignedCliAuthorizeContext, ConsoleSignedConsoleAuthorizeContext, ConsoleUser };
|
|
4
|
+
export type { ConsoleAgentAuthorizeContext, ConsoleAuthorize, ConsoleAuthorizeContext, ConsoleAuthorizeResult, ConsoleOpenAuthorizeContext, ConsoleSignedCliAuthorizeContext, ConsoleSignedConsoleAuthorizeContext, ConsoleUser };
|
package/dist/console/auth.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as viteHubErrorDiagnostics } from "../error-diagnostics-
|
|
2
|
-
|
|
1
|
+
import { t as viteHubErrorDiagnostics } from "../error-diagnostics-CBtvqI30.js";
|
|
2
|
+
// src/console/auth.ts
|
|
3
3
|
/** Define the function that every Console call runs after the signature check. Set its file path as `console.authorize`. */
|
|
4
4
|
function defineConsoleAuthorize(authorize) {
|
|
5
5
|
if (typeof authorize !== "function") throw viteHubErrorDiagnostics.VITE_HUB_CONSOLE_AUTHORIZE_NOT_FUNCTION({ site: "define" });
|
|
6
6
|
return authorize;
|
|
7
7
|
}
|
|
8
|
-
//#endregion
|
|
9
8
|
export { defineConsoleAuthorize };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
//#region src/console/runtime/auth-operations.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The Auth management operations of the Console. Each read and each action of the Auth section is one operation on the
|
|
4
|
-
* Console RPC. Impersonation sets the app session cookie, so its operations
|
|
5
|
-
* opens on the app origin.
|
|
3
|
+
* Console RPC. Impersonation sets the app session cookie, so its operations only check the call. The Console then signs
|
|
4
|
+
* an `impersonate` Site access token that the browser opens on the app origin.
|
|
6
5
|
*/
|
|
7
6
|
export declare const authConsoleReadOperations: {
|
|
8
7
|
readonly activity: "auth.activity";
|
|
@@ -25,11 +24,10 @@ export declare const authConsoleActionOperations: {
|
|
|
25
24
|
readonly setRole: "auth.set-role";
|
|
26
25
|
readonly unban: "auth.unban";
|
|
27
26
|
};
|
|
28
|
-
/** The operations that
|
|
27
|
+
/** The operations that check a start or a stop of impersonation before the Console signs its token. */
|
|
29
28
|
export declare const authConsoleImpersonationOperations: {
|
|
30
29
|
readonly start: "auth.impersonate";
|
|
31
30
|
readonly stop: "auth.stop-impersonating";
|
|
32
31
|
};
|
|
33
32
|
export type AuthConsoleReadName = keyof typeof authConsoleReadOperations;
|
|
34
|
-
export type AuthConsoleOperationAction = keyof typeof authConsoleActionOperations;
|
|
35
|
-
//#endregion
|
|
33
|
+
export type AuthConsoleOperationAction = keyof typeof authConsoleActionOperations;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { authConsoleActionOperations, authConsoleImpersonationOperations, authConsoleReadOperations };
|
|
1
|
+
export { t as authConsoleActionOperations, n as authConsoleImpersonationOperations, r as authConsoleReadOperations } from "../../auth-operations-BKqoX8Ua.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Component, InjectionKey } from "vue";
|
|
2
|
-
//#region src/console/runtime/client/account-views.d.ts
|
|
3
2
|
/** The views of an `account` Console that load on demand: the sign-in page, the team sidebar, and its pages. */
|
|
4
3
|
export interface ConsoleAccountViews {
|
|
5
4
|
signIn?: Component;
|
|
@@ -13,5 +12,4 @@ export interface ConsoleAccountViews {
|
|
|
13
12
|
* The views that the page loaded before it mounted. A view from `defineAsyncComponent` renders one task after its code
|
|
14
13
|
* resolves, even when the code is already loaded, so the page would paint an empty frame. These render at once.
|
|
15
14
|
*/
|
|
16
|
-
export declare const consoleAccountViewsKey: InjectionKey<ConsoleAccountViews>;
|
|
17
|
-
//#endregion
|
|
15
|
+
export declare const consoleAccountViewsKey: InjectionKey<ConsoleAccountViews>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
// src/console/runtime/client/account-views.ts
|
|
2
2
|
/**
|
|
3
3
|
* The views that the page loaded before it mounted. A view from `defineAsyncComponent` renders one task after its code
|
|
4
4
|
* resolves, even when the code is already loaded, so the page would paint an empty frame. These render at once.
|
|
5
5
|
*/
|
|
6
6
|
const consoleAccountViewsKey = Symbol("vitehub-console-account-views");
|
|
7
|
-
//#endregion
|
|
8
7
|
export { consoleAccountViewsKey };
|