vite-hub 0.5.1 → 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/{access-BBHk9b5P.js → access-CUFHPi8T.js} +9 -133
- package/dist/{access-policy-CUbJLvlR.d.ts → access-DkBck8Vu.d.ts} +16 -16
- package/dist/{account-CoAO1F8G.d.ts → account-DNr8fHcQ.d.ts} +1 -1
- package/dist/{console/runtime/server → agent/console}/agents.get.d.ts +1 -1
- package/dist/{console/runtime/server → agent/console}/agents.get.js +3 -3
- package/dist/{console/runtime/server → agent/console}/channel-replay.d.ts +2 -2
- package/dist/{console/runtime/server → agent/console}/channel-replay.js +6 -6
- package/dist/{console/runtime/server → agent/console}/invocation-capabilities.get.js +4 -4
- package/dist/{console/runtime/server → agent/console}/invocation-workspace.get.d.ts +3 -3
- package/dist/{console/runtime/server → agent/console}/invocation-workspace.get.js +6 -6
- package/dist/{console/runtime/server → agent/console}/invocation.get.d.ts +4 -4
- package/dist/{console/runtime/server → agent/console}/invocation.get.js +8 -8
- package/dist/{console/runtime/server → agent/console}/invocations.get.js +5 -5
- package/dist/{console/runtime/server/usage.get.d.ts → agent/console/invocations.usage.d.ts} +2 -4
- 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 -2
- package/dist/{console/runtime/server → agent/console}/status.get.js +6 -6
- package/dist/{server-DsOEa4_A.js → agent-console-CHsLxKk_.js} +3 -2
- package/dist/agent-console-FmaYpVv-.d.ts +14 -0
- package/dist/{agent-invocations.post-BAC1aHnG.js → agent-invocations.post-CF5anHY6.js} +8 -8
- package/dist/{agents-BClUWOj7.js → agents-DBm_PJie.js} +1 -1
- package/dist/{agents-Cz_uhhov.js → agents-DXLHsE7x.js} +2 -2
- package/dist/auth/console/auth.d.ts +25 -0
- package/dist/{console/runtime/server → auth/console}/auth.js +11 -12
- package/dist/auth/console/operations.d.ts +3 -0
- package/dist/auth/console/operations.js +135 -0
- package/dist/{auth-operations-arLIY2_2.js → auth-operations-BKqoX8Ua.js} +3 -3
- package/dist/{auth-types-B4mq4YhK.d.ts → auth-types-Cotn7406.d.ts} +4 -17
- package/dist/bin.js +3 -3
- package/dist/blob/console/operations.d.ts +3 -0
- package/dist/blob/console/operations.js +44 -0
- package/dist/{blob-eH6j0AQj.js → blob-iw8pWQ6o.js} +2 -2
- package/dist/{blob-_TtxDb-t.d.ts → blob-uNin0_TV.d.ts} +1 -1
- package/dist/cache/operations.js +1 -1
- package/dist/console/auth-types.d.ts +2 -2
- package/dist/console/auth.d.ts +2 -2
- package/dist/console/runtime/auth-operations.d.ts +3 -3
- package/dist/console/runtime/auth-operations.js +1 -1
- package/dist/console/runtime/client/account.d.ts +1 -1
- package/dist/console/runtime/client/account.js +2 -2
- package/dist/console/runtime/client/auth-management.ts +6 -6
- package/dist/console/runtime/client/blob-media.js +2 -2
- package/dist/console/runtime/client/comment-thread.js +1 -1
- package/dist/console/runtime/client/content-heads.js +1 -1
- package/dist/console/runtime/client/documents.d.ts +1 -1
- package/dist/console/runtime/client/documents.js +1 -1
- package/dist/console/runtime/client/invocation.js +1 -1
- package/dist/console/runtime/client/live.d.ts +1 -1
- package/dist/console/runtime/client/mcp-client.d.ts +4 -4
- package/dist/console/runtime/client/mcp-client.js +4 -6
- package/dist/console/runtime/client/media-library.js +1 -1
- package/dist/console/runtime/client/media-uploads.js +1 -1
- package/dist/console/runtime/client/operation-view.js +1 -1
- package/dist/console/runtime/client/presence.d.ts +1 -1
- package/dist/console/runtime/client/problem.d.ts +1 -1
- package/dist/console/runtime/client/problem.js +2 -2
- package/dist/console/runtime/client/project-link.d.ts +1 -1
- package/dist/console/runtime/client/project-link.js +1 -1
- package/dist/console/runtime/client/project-session.d.ts +2 -2
- package/dist/console/runtime/client/project-session.js +1 -1
- package/dist/console/runtime/client/publish.d.ts +1 -1
- package/dist/console/runtime/client/rate-limit.js +1 -1
- package/dist/console/runtime/client/read-only.d.ts +1 -1
- package/dist/console/runtime/client/read-only.js +1 -1
- package/dist/console/runtime/client/request.d.ts +2 -2
- package/dist/console/runtime/client/request.js +1 -1
- package/dist/console/runtime/client/schedule-run.js +1 -1
- package/dist/console/runtime/client/sections.d.ts +1 -1
- package/dist/console/runtime/client/sections.js +1 -1
- package/dist/console/runtime/client/site-access.d.ts +48 -9
- package/dist/console/runtime/client/site-access.js +18 -11
- 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/workflow.js +1 -1
- 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-usage.vue +2 -2
- package/dist/console/runtime/diagnostics.ts +14 -56
- package/dist/console/runtime/mcp-client.d.ts +2 -2
- package/dist/console/runtime/mcp-client.js +1 -1
- 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/page-tool.js +2 -2
- package/dist/console/runtime/sections.d.ts +2 -2
- package/dist/console/runtime/sections.js +1 -1
- package/dist/console/runtime/server/access-policy.d.ts +1 -1
- 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 -1
- package/dist/console/runtime/server/database.d.ts +1 -1
- package/dist/console/runtime/server/definitions.get.d.ts +2 -2
- package/dist/console/runtime/server/definitions.get.js +2 -2
- package/dist/console/runtime/server/definitions.js +1 -1
- package/dist/console/runtime/server/documents.d.ts +2 -2
- package/dist/console/runtime/server/documents.js +2 -2
- 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/operation-contributions.d.ts +1 -1
- package/dist/console/runtime/server/operation-contributions.js +1 -1
- 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 -8
- package/dist/console/runtime/server/rpc.js +13 -20
- package/dist/console/runtime/server/runtime.d.ts +1 -1
- package/dist/console/runtime/server/runtime.js +1 -1
- package/dist/console/runtime/server/sections.d.ts +4 -4
- package/dist/console/runtime/server/sections.get.d.ts +1 -1
- package/dist/console/runtime/server/sections.get.js +4 -4
- package/dist/console/runtime/server/sections.js +3 -3
- package/dist/console/runtime/server/setup.d.ts +4 -4
- package/dist/console/runtime/server/setup.js +3 -3
- 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 -7
- package/dist/console/runtime/server/site-entry.js +59 -42
- 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/server.d.ts +7 -19
- package/dist/console/server.js +6 -6
- package/dist/console-signature--55DIKf2.js +237 -0
- 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 +1 -1
- package/dist/{console/runtime/server → database/console}/database.get.js +4 -4
- package/dist/database/console/operations.d.ts +3 -0
- package/dist/database/console/operations.js +49 -0
- package/dist/{database-CPjZ3L0g.d.ts → database-yFezh5U1.d.ts} +1 -1
- package/dist/{definitions-M7i2p8SR.js → definitions-DGo2rNQ9.js} +1 -1
- package/dist/{dev-peer-DBq-isgi.js → dev-peer-CRYp01PE.js} +1 -219
- package/dist/dev-peer-CX5C9243.js +1 -0
- package/dist/{diagnostics-B2cqlCSz.js → diagnostics-DLHqjKGe.js} +2 -8
- package/dist/diagnostics-DgGKvWzF.d.ts +7 -0
- package/dist/doctor.js +2 -2
- package/dist/{documents-LtkKCxtu.d.ts → documents-A-7Ho0g0.d.ts} +11 -11
- package/dist/{documents-Ck_iub9w.js → documents-BduuZjm3.js} +3 -2
- package/dist/{documents-DxK0tdjA.d.ts → documents-CApMRd4o.d.ts} +2 -3
- package/dist/{documents-BOYwZ5g4.js → documents-D6ueeoUR.js} +12 -15
- package/dist/durability/operations.js +1 -1
- package/dist/{console/runtime/server → env/console}/env.get.d.ts +2 -2
- package/dist/{console/runtime/server → env/console}/env.get.js +7 -7
- 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/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/{internal-CKocv79I.d.ts → internal-BRNf11h3.d.ts} +14 -4
- package/dist/{invocation-page-undo-BEi-rO0Q.js → invocation-page-undo-DHbXczWY.js} +6 -4
- package/dist/invocations-B60XWNES.js +45 -0
- package/dist/{console/runtime/server → logs/console}/logs.get.d.ts +3 -3
- package/dist/{console/runtime/server → logs/console}/logs.get.js +7 -7
- package/dist/logs/console/operations.d.ts +3 -0
- package/dist/logs/console/operations.js +23 -0
- 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-Q2XbUXuP.d.ts → mcp-client-uXVvS7RL.d.ts} +4 -6
- package/dist/{media-CAKz9yrp.js → media-CNwnh6CG.js} +5 -5
- package/dist/{media-library-BDX89xXA.js → media-library-DTC8TLsZ.js} +1 -1
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.js +108 -68
- package/dist/{operation-contributions-D10pjkJF.js → operation-contributions-BU10k2QS.js} +7 -6
- package/dist/{operation-contributions-BCcQVlGb.d.ts → operation-contributions-xwjDzj28.d.ts} +5 -4
- package/dist/{operation-definition-DTpNvLd8.js → operation-definition-D04Rdjbe.js} +2 -1
- package/dist/operation-modules-BUXlwjvd.js +1 -0
- package/dist/operation-modules-DHWkPcfS.js +139 -0
- package/dist/operations-D-7ljPqw.js +1 -0
- package/dist/{operations-CD_mu_Ww.js → operations-DksTrRMb.js} +1 -1
- package/dist/operations-byxiZ2R2.js +113 -0
- package/dist/{optional-owners-DAfShdgV.js → optional-owners-Cypch7V3.js} +0 -1
- 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/{plugins-BpiTVULl.d.ts → plugins-BmkOoyIh.d.ts} +22 -9
- package/dist/{plugins-H6-MQrsn.js → plugins-DfXcUnzN.js} +248 -310
- package/dist/{project-DKBIHOf4.d.ts → project-B2qWt8on.d.ts} +2 -7
- package/dist/{project-BxyyclTE.js → project-_juMSuAS.js} +5 -7
- package/dist/{project-link-CeS0T8Pr.js → project-link-CJbCkOlC.js} +3 -3
- package/dist/{project-link-isfdRO3Q.d.ts → project-link-Ck3vuq9w.d.ts} +1 -1
- package/dist/{project-session--GN7MduT.js → project-session-8pN7pRo8.js} +4 -4
- package/dist/{request-CQ8TkHLh.js → request-D769eiBL.js} +2 -2
- package/dist/{request-BC_krbEr.d.ts → request-DYmjLTqP.d.ts} +1 -1
- package/dist/{request-CJCPyu2B.d.ts → request-DkoE0b2h.d.ts} +10 -2
- package/dist/{request-Cl68STwT.js → request-XFVx7CGC.js} +24 -2
- package/dist/routes-D02vxUSg.js +26 -0
- package/dist/{runtime-CyPZMiyK.js → runtime-DA7HJe10.js} +1 -1
- package/dist/{runtime-Cf8R1Ztr.d.ts → runtime-DGvimtvc.d.ts} +1 -1
- package/dist/{runtime-feature-guard-DpUn4Oxc.js → runtime-feature-guard-BKAMRZzM.js} +1 -1
- package/dist/search-jgMrZJXR.js +84 -0
- package/dist/{sections-BiCOk9qP.js → sections-AUGy9EkY.js} +1 -6
- package/dist/{sections-BTfWK14a.d.ts → sections-BMkFB3S-.d.ts} +1 -1
- package/dist/{sections-0qrBvGbf.d.ts → sections-DCoCa4nF.d.ts} +1 -4
- package/dist/{sections-DAtgYMVz.d.ts → sections-DjeAUX7o.d.ts} +4 -4
- package/dist/{sections-HLxb9MrG.js → sections-ZFAlI4JW.js} +2 -2
- package/dist/{sections.get-CGmtYmfu.d.ts → sections.get-BY5dClJY.d.ts} +1 -1
- package/dist/{setup-Ca7jtBLS.d.ts → setup-BBnZPziq.d.ts} +4 -7
- package/dist/{setup-DQz_i-ee.js → setup-yc3_WKNG.js} +1 -13
- 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.js +2 -2
- package/dist/{skills.get-DAooGWy5.js → skills.get-CW8vc_Hf.js} +3 -3
- package/dist/task/operations.js +1 -1
- package/dist/usage-DBi7aOhx.js +33 -0
- package/dist/{version-CAhBr673.js → version-DUCd7Orc.js} +11 -5
- 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 -3
- package/dist/{console/runtime/server → workspace/console}/workspace-files.get.js +4 -4
- package/package.json +91 -82
- package/dist/auth-CeKxL2xp.d.ts +0 -116
- package/dist/cloudflare-env-lookup-DcN7pGlv.js +0 -15
- package/dist/console/runtime/client/ticket.d.ts +0 -2
- package/dist/console/runtime/client/ticket.js +0 -1
- package/dist/console/runtime/page/loader.js +0 -135
- package/dist/console/runtime/server/auth.d.ts +0 -2
- package/dist/console/runtime/server/mcp-client-operations.d.ts +0 -3
- package/dist/console/runtime/server/mcp-client-operations.js +0 -137
- package/dist/console/runtime/server/page-auth.d.ts +0 -16
- package/dist/console/runtime/server/page-auth.js +0 -43
- 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 -4
- package/dist/console/runtime/server/search.get.d.ts +0 -2
- package/dist/console/runtime/server/search.get.js +0 -95
- package/dist/console/runtime/server/site-session.d.ts +0 -79
- package/dist/console/runtime/server/site-session.js +0 -1
- package/dist/console/runtime/server/tickets.d.ts +0 -2
- package/dist/console/runtime/server/tickets.js +0 -1
- package/dist/console/runtime/server/usage.get.js +0 -91
- package/dist/console/runtime/site-access.d.ts +0 -2
- package/dist/console/runtime/site-access.js +0 -1
- package/dist/diagnostics-BXxPggRw.d.ts +0 -9
- package/dist/invocations-8NThe8Bx.js +0 -85
- package/dist/mcp-client-Bkh-khvr.js +0 -9
- package/dist/mcp-client-DiObFpDS.js +0 -1037
- package/dist/operations-D7ENc68Y.js +0 -1
- package/dist/operations-vRLiH7dh.js +0 -852
- package/dist/page-tool-BUnUbuSy.d.ts +0 -67
- package/dist/page-tools-BQzwuAHD.js +0 -460
- package/dist/page-tools-UwsfvH-B.d.ts +0 -21
- package/dist/page-tools-shared-hJcG_xk8.js +0 -125
- package/dist/secret-D2KL_o2h.js +0 -43
- package/dist/site-access-1JIQjY11.js +0 -292
- package/dist/site-access-CUXIbbbR.d.ts +0 -53
- package/dist/site-access-CmaZ-oaL.js +0 -17
- package/dist/site-access-Cvmjb6aw.js +0 -1
- package/dist/site-session-D36fr7Wf.js +0 -297
- 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-BFWwevWN.d.ts +0 -12
- package/dist/ticket-BwsnryuU.js +0 -30
- package/dist/tickets-Cj9_y3gw.js +0 -356
- package/dist/usage-BduF04ks.d.ts +0 -20
- package/dist/usage-ZV3TBMzE.js +0 -570
- package/dist/usage-index-CR_xTrXO.js +0 -334
- /package/dist/{console/runtime/server → agent/console}/invocation-capabilities.get.d.ts +0 -0
- /package/dist/{console/runtime/server → agent/console}/invocations.get.d.ts +0 -0
- /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
package/dist/bin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as importOptionalOwner, l as requireOptionalOwner, t as assertFeaturePackages } from "./optional-owners-
|
|
2
|
+
import { i as importOptionalOwner, l as requireOptionalOwner, t as assertFeaturePackages } from "./optional-owners-Cypch7V3.js";
|
|
3
3
|
import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
|
|
4
4
|
import { t as loadViteHubCliConfig } from "./cli-config-BX8H4ZCo.js";
|
|
5
5
|
import { runViteHubCliEntrypoint } from "@vite-hub/cli";
|
|
@@ -290,7 +290,7 @@ const agentRuntimeFeatures = {
|
|
|
290
290
|
name: "invocations",
|
|
291
291
|
run: async (args, context) => {
|
|
292
292
|
const cli = requireOptionalOwner(await importOptionalOwner("@vite-hub/agent", () => import("@vite-hub/agent/internal/agent-invocations-cli")), "agent");
|
|
293
|
-
const { readAgentJournalPostgres, readAgentJournalStateUrl } = await import("./runtime-feature-guard-
|
|
293
|
+
const { readAgentJournalPostgres, readAgentJournalStateUrl } = await import("./runtime-feature-guard-BKAMRZzM.js");
|
|
294
294
|
const stateUrl = await readAgentJournalStateUrl(context.rootDir, context.env);
|
|
295
295
|
return cli.runAgentInvocationsCli(args, {
|
|
296
296
|
...context,
|
|
@@ -327,7 +327,7 @@ runViteHubCliEntrypoint({
|
|
|
327
327
|
loadConfig: (root, command, mode) => loadViteHubCliConfig(root, command, mode, { prepareNuxtTypes: process.argv[2] === "email" && process.argv[3] === "preview" }),
|
|
328
328
|
runtimeFeatureGuard: async (namespace, feature, cwd) => {
|
|
329
329
|
if (namespace !== "agent" || feature !== "emulator" && feature !== "invocations" && feature !== "state") return true;
|
|
330
|
-
const { isAgentCliEnabled, isAgentEmulatorStandalone } = await import("./runtime-feature-guard-
|
|
330
|
+
const { isAgentCliEnabled, isAgentEmulatorStandalone } = await import("./runtime-feature-guard-BKAMRZzM.js");
|
|
331
331
|
if (feature === "emulator") return isAgentEmulatorStandalone(process.argv.slice(4), process.env, cwd);
|
|
332
332
|
return isAgentCliEnabled(cwd);
|
|
333
333
|
},
|
|
@@ -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 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { n as consoleState } from "./internal-0C_CC601.js";
|
|
2
2
|
import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
|
|
3
|
-
import {
|
|
3
|
+
import { r as consoleRequestError } from "./request-D769eiBL.js";
|
|
4
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
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as ConsoleMediaLibrary, n as ConsoleBlobInspection } from "./internal-BRNf11h3.js";
|
|
2
2
|
import { BlobStorage } from "@vite-hub/blob";
|
|
3
3
|
declare function installConsoleBlob(projectRoot: string, storage: BlobStorage, stores?: readonly string[]): ConsoleBlobInspection;
|
|
4
4
|
/** The media library of a build with Blob. Throws a 404 Console error in a build without it. */
|
package/dist/cache/operations.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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
3
|
// src/cache/operations.ts
|
|
4
4
|
const runtime = () => import("../runtime-CRJsqVTa.js");
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import { a as ConsoleOpenAuthorizeContext, c as
|
|
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
2
|
/** Define the function that every Console call runs after the signature check. Set its file path as `console.authorize`. */
|
|
3
3
|
export declare function defineConsoleAuthorize(authorize: ConsoleAuthorize): ConsoleAuthorize;
|
|
4
|
-
export type { ConsoleAgentAuthorizeContext, ConsoleAuthorize, ConsoleAuthorizeContext, ConsoleAuthorizeResult, ConsoleOpenAuthorizeContext,
|
|
4
|
+
export type { ConsoleAgentAuthorizeContext, ConsoleAuthorize, ConsoleAuthorizeContext, ConsoleAuthorizeResult, ConsoleOpenAuthorizeContext, ConsoleSignedCliAuthorizeContext, ConsoleSignedConsoleAuthorizeContext, ConsoleUser };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The Auth management operations of the Console. Each read and each action of the Auth section is one operation on the
|
|
3
|
-
* Console RPC. Impersonation sets the app session cookie, so its operations
|
|
4
|
-
* 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.
|
|
5
5
|
*/
|
|
6
6
|
export declare const authConsoleReadOperations: {
|
|
7
7
|
readonly activity: "auth.activity";
|
|
@@ -24,7 +24,7 @@ export declare const authConsoleActionOperations: {
|
|
|
24
24
|
readonly setRole: "auth.set-role";
|
|
25
25
|
readonly unban: "auth.unban";
|
|
26
26
|
};
|
|
27
|
-
/** The operations that
|
|
27
|
+
/** The operations that check a start or a stop of impersonation before the Console signs its token. */
|
|
28
28
|
export declare const authConsoleImpersonationOperations: {
|
|
29
29
|
readonly start: "auth.impersonate";
|
|
30
30
|
readonly stop: "auth.stop-impersonating";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as authConsoleActionOperations, n as authConsoleImpersonationOperations, r as authConsoleReadOperations } from "../../auth-operations-
|
|
1
|
+
export { t as authConsoleActionOperations, n as authConsoleImpersonationOperations, r as authConsoleReadOperations } from "../../auth-operations-BKqoX8Ua.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as linkConsoleGitHub, B as renameConsoleAccountProject, C as deleteConsolePasskey, D as inviteConsoleMember, E as endConsoleSession, F as loadConsoleSignInMethods, G as signInWithGitHub, H as revealConsoleEnvValue, I as loadConsoleSignInState, J as switchConsoleTeam, K as signInWithPasskey, L as loadConsoleTeam, M as listConsolePasskeys, N as listConsoleSignInProviders, O as leaveConsoleTeam, P as loadConsoleEnvStage, R as removeConsoleMember, S as deleteConsoleEnvValue, T as earlyConsoleTeam, U as revokeConsoleApiKey, V as renameConsoleTeam, W as setConsoleEnvValue, Y as unlinkConsoleAccountProject, _ as addConsolePasskey, a as ConsoleAccountTeam, b as createConsoleApiKey, c as ConsoleEnvVariable, d as ConsoleSignInState, f as ConsoleTeamDetails, g as accountAppStatusLabels, h as acceptConsoleInvitation, i as ConsoleAccountProject, j as listConsoleApiKeys, k as linkConsoleAccountProject, l as ConsolePasskey, m as ConsoleTeamMember, n as ConsoleAccountAppStatus, o as ConsoleApiKey, p as ConsoleTeamInvitation, q as signUpWithPasskey, r as ConsoleAccountCheck, s as ConsoleEnvStage, t as ConsoleAccount, u as ConsoleSignInMethods, v as cancelConsoleInvitation, w as earlyConsoleSignInState, x as createConsoleTeam, y as checkConsoleAccountProject, z as renameConsoleAccount } from "../../../account-
|
|
1
|
+
import { A as linkConsoleGitHub, B as renameConsoleAccountProject, C as deleteConsolePasskey, D as inviteConsoleMember, E as endConsoleSession, F as loadConsoleSignInMethods, G as signInWithGitHub, H as revealConsoleEnvValue, I as loadConsoleSignInState, J as switchConsoleTeam, K as signInWithPasskey, L as loadConsoleTeam, M as listConsolePasskeys, N as listConsoleSignInProviders, O as leaveConsoleTeam, P as loadConsoleEnvStage, R as removeConsoleMember, S as deleteConsoleEnvValue, T as earlyConsoleTeam, U as revokeConsoleApiKey, V as renameConsoleTeam, W as setConsoleEnvValue, Y as unlinkConsoleAccountProject, _ as addConsolePasskey, a as ConsoleAccountTeam, b as createConsoleApiKey, c as ConsoleEnvVariable, d as ConsoleSignInState, f as ConsoleTeamDetails, g as accountAppStatusLabels, h as acceptConsoleInvitation, i as ConsoleAccountProject, j as listConsoleApiKeys, k as linkConsoleAccountProject, l as ConsolePasskey, m as ConsoleTeamMember, n as ConsoleAccountAppStatus, o as ConsoleApiKey, p as ConsoleTeamInvitation, q as signUpWithPasskey, r as ConsoleAccountCheck, s as ConsoleEnvStage, t as ConsoleAccount, u as ConsoleSignInMethods, v as cancelConsoleInvitation, w as earlyConsoleSignInState, x as createConsoleTeam, y as checkConsoleAccountProject, z as renameConsoleAccount } from "../../../account-DNr8fHcQ.js";
|
|
2
2
|
export { ConsoleAccount, ConsoleAccountAppStatus, ConsoleAccountCheck, ConsoleAccountProject, ConsoleAccountTeam, ConsoleApiKey, ConsoleEnvStage, ConsoleEnvVariable, ConsolePasskey, ConsoleSignInMethods, ConsoleSignInState, ConsoleTeamDetails, ConsoleTeamInvitation, ConsoleTeamMember, acceptConsoleInvitation, accountAppStatusLabels, addConsolePasskey, cancelConsoleInvitation, checkConsoleAccountProject, createConsoleApiKey, createConsoleTeam, deleteConsoleEnvValue, deleteConsolePasskey, earlyConsoleSignInState, earlyConsoleTeam, endConsoleSession, inviteConsoleMember, leaveConsoleTeam, linkConsoleAccountProject, linkConsoleGitHub, listConsoleApiKeys, listConsolePasskeys, listConsoleSignInProviders, loadConsoleEnvStage, loadConsoleSignInMethods, loadConsoleSignInState, loadConsoleTeam, removeConsoleMember, renameConsoleAccount, renameConsoleAccountProject, renameConsoleTeam, revealConsoleEnvValue, revokeConsoleApiKey, setConsoleEnvValue, signInWithGitHub, signInWithPasskey, signUpWithPasskey, switchConsoleTeam, unlinkConsoleAccountProject };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as consoleStatusDiagnosticCode, t as consoleDiagnostic } from "../../../diagnostics-
|
|
2
|
-
import { o as consoleProjectBuildOf, s as consoleProjectCommentsOf } from "../../../project-link-
|
|
1
|
+
import { i as consoleStatusDiagnosticCode, t as consoleDiagnostic } from "../../../diagnostics-DLHqjKGe.js";
|
|
2
|
+
import { o as consoleProjectBuildOf, s as consoleProjectCommentsOf } from "../../../project-link-CJbCkOlC.js";
|
|
3
3
|
import { createAuthClient, useAuthQuery } from "better-auth/client";
|
|
4
4
|
import { organizationClient } from "better-auth/client/plugins";
|
|
5
5
|
// ../../node_modules/.pnpm/@better-auth+core@1.7.27_@better-auth+utils@0.5.1_@better-fetch+fetch@1.3.3_@openteleme_1565fe680b243565dc0099f9d8cd7811/node_modules/@better-auth/core/dist/utils/error-codes.mjs
|
|
@@ -14,10 +14,10 @@ import type {
|
|
|
14
14
|
AuthConsoleQuery,
|
|
15
15
|
} from "@vite-hub/auth/console";
|
|
16
16
|
|
|
17
|
-
import { authConsoleActionOperations,
|
|
17
|
+
import { authConsoleActionOperations, authConsoleReadOperations } from "../auth-operations";
|
|
18
18
|
import { consoleDateTime } from "./format";
|
|
19
19
|
import { requestConsoleOperation } from "./request";
|
|
20
|
-
import {
|
|
20
|
+
import { openSiteAction } from "./site-link";
|
|
21
21
|
|
|
22
22
|
type AuthResults = {
|
|
23
23
|
describe: AuthConsoleDescription;
|
|
@@ -46,12 +46,12 @@ export async function readAuthConsole<K extends keyof AuthResults>(
|
|
|
46
46
|
return value as AuthResults[K];
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
* Runs one Auth action with its `auth.<action>` operation. Impersonation sets the app session cookie, so
|
|
50
|
-
*
|
|
49
|
+
* Runs one Auth action with its `auth.<action>` operation. Impersonation sets the app session cookie, so a new tab opens
|
|
50
|
+
* the app's `/_vitehub/site` with an `impersonate` Site access token of the Console.
|
|
51
51
|
*/
|
|
52
52
|
export async function changeAuthConsole(input: AuthConsoleMutation | { action: "stopImpersonating" }): Promise<void> {
|
|
53
|
-
if (input.action === "impersonate") return await
|
|
54
|
-
if (input.action === "stopImpersonating") return await
|
|
53
|
+
if (input.action === "impersonate") return await openSiteAction("impersonate", { action: "start", userId: input.userId });
|
|
54
|
+
if (input.action === "stopImpersonating") return await openSiteAction("impersonate", { action: "stop" });
|
|
55
55
|
const { action, ...fields } = input;
|
|
56
56
|
await requestConsoleOperation(authConsoleActionOperations[action], fields);
|
|
57
57
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as isVitehubOwnedPath } from "../../../owned-paths-MjjDftBn.js";
|
|
2
|
-
import { t as ConsoleRequestError, u as requestConsole } from "../../../request-
|
|
3
|
-
import { m as consoleMediaType } from "../../../media-library-
|
|
2
|
+
import { t as ConsoleRequestError, u as requestConsole } from "../../../request-XFVx7CGC.js";
|
|
3
|
+
import { m as consoleMediaType } from "../../../media-library-DTC8TLsZ.js";
|
|
4
4
|
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-CBtvqI30.js";
|
|
5
5
|
// src/console/runtime/client/blob-media.ts
|
|
6
6
|
function record(value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as requestConsoleOperation, t as ConsoleRequestError } from "../../../request-
|
|
1
|
+
import { d as requestConsoleOperation, t as ConsoleRequestError } from "../../../request-XFVx7CGC.js";
|
|
2
2
|
import { n as isRecord } from "../../../object-DRSmpe04.js";
|
|
3
3
|
// src/console/runtime/client/comment-thread.ts
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as requestConsoleOperation } from "../../../request-
|
|
1
|
+
import { d as requestConsoleOperation } from "../../../request-XFVx7CGC.js";
|
|
2
2
|
// src/console/runtime/client/content-heads.ts
|
|
3
3
|
/** The heads of the app's `github()` Sources. An app without one answers an empty list. */
|
|
4
4
|
async function readContentHeads(signal) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as ConsoleDocumentCollection } from "../../../definitions-ChvMnA1L.js";
|
|
2
|
-
import { $ as consoleInvalidDocument, A as ConsoleListState, B as consoleDocumentScheduleLabel, C as ConsoleDocumentSessionAction, D as ConsoleDocumentSummary, E as ConsoleDocumentState, F as ConsoleSeoFallbacks, G as consoleDocumentStates, H as consoleDocumentSlug, I as ConsoleSeoHint, J as consoleFieldIssues, K as consoleDocumentText, L as consoleDocumentFolders, M as ConsolePublishMismatch, N as ConsoleRawDocument, O as ConsoleDocumentTranslationState, P as ConsoleRevisionRun, Q as consoleImageUrl, R as consoleDocumentHasBody, S as ConsoleDocumentSession, St as stableConsoleJSON, T as ConsoleDocumentSessions, U as consoleDocumentStateColor, V as consoleDocumentScheduleTone, W as consoleDocumentStateLabel, X as consoleHintParts, Y as consoleFixFieldsLabel, Z as consoleHintText, _ as ConsoleDocumentSchedule, _t as groupConsoleRevisions, a as ConsoleDocumentFolder, at as consolePublishMismatches, b as ConsoleDocumentScheduledChange, bt as parseConsoleListQuery, c as ConsoleDocumentOverview, ct as consoleRevisionTone, d as ConsoleDocumentPendingChange, dt as consoleSingularLabel, et as consoleLeaseHolder, f as ConsoleDocumentPresence, ft as consoleTranslationLabel, g as ConsoleDocumentRevision, gt as groupConsoleRevisionRuns, h as ConsoleDocumentPublished, ht as createConsoleDocumentsClient, i as ConsoleDocumentConflict, it as consoleLocaleName, j as ConsoleListView, k as ConsoleDocumentsClient, l as ConsoleDocumentOverviewCollection, lt as consoleSeoFallbacks, m as ConsoleDocumentPublishExpectation, mt as consoleTruncate, n as ConsoleDocumentActivity, nt as consoleListQueryFor, o as ConsoleDocumentFormat, ot as consolePublishedConflicts, p as ConsoleDocumentPreview, pt as consoleTranslationsToDo, q as consoleErrorMessage, r as ConsoleDocumentChange, rt as consoleLocalScheduleTime, s as ConsoleDocumentListQuery, st as consoleRevisionLabel, t as ConsoleDocument, tt as consoleListQuery, u as ConsoleDocumentPage, ut as consoleSeoField, v as ConsoleDocumentScheduleStatus, vt as isConsoleConflict, w as ConsoleDocumentSessionUser, x as ConsoleDocumentSearchResult, xt as rememberConsoleListQuery, y as ConsoleDocumentScheduled, yt as isConsoleDocumentId, z as consoleDocumentScheduleHint } from "../../../documents-
|
|
2
|
+
import { $ as consoleInvalidDocument, A as ConsoleListState, B as consoleDocumentScheduleLabel, C as ConsoleDocumentSessionAction, D as ConsoleDocumentSummary, E as ConsoleDocumentState, F as ConsoleSeoFallbacks, G as consoleDocumentStates, H as consoleDocumentSlug, I as ConsoleSeoHint, J as consoleFieldIssues, K as consoleDocumentText, L as consoleDocumentFolders, M as ConsolePublishMismatch, N as ConsoleRawDocument, O as ConsoleDocumentTranslationState, P as ConsoleRevisionRun, Q as consoleImageUrl, R as consoleDocumentHasBody, S as ConsoleDocumentSession, St as stableConsoleJSON, T as ConsoleDocumentSessions, U as consoleDocumentStateColor, V as consoleDocumentScheduleTone, W as consoleDocumentStateLabel, X as consoleHintParts, Y as consoleFixFieldsLabel, Z as consoleHintText, _ as ConsoleDocumentSchedule, _t as groupConsoleRevisions, a as ConsoleDocumentFolder, at as consolePublishMismatches, b as ConsoleDocumentScheduledChange, bt as parseConsoleListQuery, c as ConsoleDocumentOverview, ct as consoleRevisionTone, d as ConsoleDocumentPendingChange, dt as consoleSingularLabel, et as consoleLeaseHolder, f as ConsoleDocumentPresence, ft as consoleTranslationLabel, g as ConsoleDocumentRevision, gt as groupConsoleRevisionRuns, h as ConsoleDocumentPublished, ht as createConsoleDocumentsClient, i as ConsoleDocumentConflict, it as consoleLocaleName, j as ConsoleListView, k as ConsoleDocumentsClient, l as ConsoleDocumentOverviewCollection, lt as consoleSeoFallbacks, m as ConsoleDocumentPublishExpectation, mt as consoleTruncate, n as ConsoleDocumentActivity, nt as consoleListQueryFor, o as ConsoleDocumentFormat, ot as consolePublishedConflicts, p as ConsoleDocumentPreview, pt as consoleTranslationsToDo, q as consoleErrorMessage, r as ConsoleDocumentChange, rt as consoleLocalScheduleTime, s as ConsoleDocumentListQuery, st as consoleRevisionLabel, t as ConsoleDocument, tt as consoleListQuery, u as ConsoleDocumentPage, ut as consoleSeoField, v as ConsoleDocumentScheduleStatus, vt as isConsoleConflict, w as ConsoleDocumentSessionUser, x as ConsoleDocumentSearchResult, xt as rememberConsoleListQuery, y as ConsoleDocumentScheduled, yt as isConsoleDocumentId, z as consoleDocumentScheduleHint } from "../../../documents-CApMRd4o.js";
|
|
3
3
|
export { ConsoleDocument, ConsoleDocumentActivity, ConsoleDocumentChange, type ConsoleDocumentCollection, ConsoleDocumentConflict, ConsoleDocumentFolder, ConsoleDocumentFormat, ConsoleDocumentListQuery, ConsoleDocumentOverview, ConsoleDocumentOverviewCollection, ConsoleDocumentPage, ConsoleDocumentPendingChange, ConsoleDocumentPresence, ConsoleDocumentPreview, ConsoleDocumentPublishExpectation, ConsoleDocumentPublished, ConsoleDocumentRevision, ConsoleDocumentSchedule, ConsoleDocumentScheduleStatus, ConsoleDocumentScheduled, ConsoleDocumentScheduledChange, ConsoleDocumentSearchResult, ConsoleDocumentSession, ConsoleDocumentSessionAction, ConsoleDocumentSessionUser, ConsoleDocumentSessions, ConsoleDocumentState, ConsoleDocumentSummary, ConsoleDocumentTranslationState, ConsoleDocumentsClient, ConsoleListState, ConsoleListView, ConsolePublishMismatch, ConsoleRawDocument, ConsoleRevisionRun, ConsoleSeoFallbacks, ConsoleSeoHint, consoleDocumentFolders, consoleDocumentHasBody, consoleDocumentScheduleHint, consoleDocumentScheduleLabel, consoleDocumentScheduleTone, consoleDocumentSlug, consoleDocumentStateColor, consoleDocumentStateLabel, consoleDocumentStates, consoleDocumentText, consoleErrorMessage, consoleFieldIssues, consoleFixFieldsLabel, consoleHintParts, consoleHintText, consoleImageUrl, consoleInvalidDocument, consoleLeaseHolder, consoleListQuery, consoleListQueryFor, consoleLocalScheduleTime, consoleLocaleName, consolePublishMismatches, consolePublishedConflicts, consoleRevisionLabel, consoleRevisionTone, consoleSeoFallbacks, consoleSeoField, consoleSingularLabel, consoleTranslationLabel, consoleTranslationsToDo, consoleTruncate, createConsoleDocumentsClient, groupConsoleRevisionRuns, groupConsoleRevisions, isConsoleConflict, isConsoleDocumentId, parseConsoleListQuery, rememberConsoleListQuery, stableConsoleJSON };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as consoleDocumentFolders, n as consoleDocumentHasBody, r as consoleDocumentScheduleHint, i as consoleDocumentScheduleLabel, a as consoleDocumentScheduleTone, o as consoleDocumentSlug, s as consoleDocumentStateColor, c as consoleDocumentStateLabel, l as consoleDocumentStates, u as consoleDocumentText, d as consoleErrorMessage, f as consoleFieldIssues, p as consoleFixFieldsLabel, m as consoleHintParts, h as consoleHintText, g as consoleImageUrl, _ as consoleInvalidDocument, v as consoleLeaseHolder, y as consoleListQuery, b as consoleListQueryFor, x as consoleLocalScheduleTime, S as consoleLocaleName, C as consolePublishMismatches, w as consolePublishedConflicts, T as consoleRevisionLabel, E as consoleRevisionTone, D as consoleSeoFallbacks, O as consoleSeoField, k as consoleSingularLabel, A as consoleTranslationLabel, j as consoleTranslationsToDo, M as consoleTruncate, N as createConsoleDocumentsClient, P as groupConsoleRevisionRuns, F as groupConsoleRevisions, I as isConsoleConflict, L as isConsoleDocumentId, R as parseConsoleListQuery, z as rememberConsoleListQuery, B as stableConsoleJSON } from "../../../documents-
|
|
1
|
+
export { t as consoleDocumentFolders, n as consoleDocumentHasBody, r as consoleDocumentScheduleHint, i as consoleDocumentScheduleLabel, a as consoleDocumentScheduleTone, o as consoleDocumentSlug, s as consoleDocumentStateColor, c as consoleDocumentStateLabel, l as consoleDocumentStates, u as consoleDocumentText, d as consoleErrorMessage, f as consoleFieldIssues, p as consoleFixFieldsLabel, m as consoleHintParts, h as consoleHintText, g as consoleImageUrl, _ as consoleInvalidDocument, v as consoleLeaseHolder, y as consoleListQuery, b as consoleListQueryFor, x as consoleLocalScheduleTime, S as consoleLocaleName, C as consolePublishMismatches, w as consolePublishedConflicts, T as consoleRevisionLabel, E as consoleRevisionTone, D as consoleSeoFallbacks, O as consoleSeoField, k as consoleSingularLabel, A as consoleTranslationLabel, j as consoleTranslationsToDo, M as consoleTruncate, N as createConsoleDocumentsClient, P as groupConsoleRevisionRuns, F as groupConsoleRevisions, I as isConsoleConflict, L as isConsoleDocumentId, R as parseConsoleListQuery, z as rememberConsoleListQuery, B as stableConsoleJSON } from "../../../documents-BduuZjm3.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as requestConsole } from "../../../request-
|
|
1
|
+
import { u as requestConsole } from "../../../request-XFVx7CGC.js";
|
|
2
2
|
import { o as encodeAgentRouteParam } from "../../../console-route-DbdnLkkF.js";
|
|
3
3
|
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-CBtvqI30.js";
|
|
4
4
|
import * as v from "valibot";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as ConsoleDocumentSessionUser } from "../../../documents-
|
|
1
|
+
import { w as ConsoleDocumentSessionUser } from "../../../documents-CApMRd4o.js";
|
|
2
2
|
import { ComputedRef, Ref, ShallowRef } from "vue";
|
|
3
3
|
import { RealtimeIssue, RealtimeReadOnlyReason } from "@vite-hub/realtime";
|
|
4
4
|
import { RealtimeResetEvent, useRealtimeTiptap } from "@vite-hub/realtime/vue";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as ConsoleMcpOutcome, f as ConsoleMcpStatus, i as ConsoleMcpConnection, l as ConsoleMcpOverview, n as ConsoleMcpCandidate, r as ConsoleMcpConnectResult, t as ConsoleMcpAuth, u as ConsoleMcpPage } from "../../../mcp-client-
|
|
1
|
+
import { c as ConsoleMcpOutcome, f as ConsoleMcpStatus, i as ConsoleMcpConnection, l as ConsoleMcpOverview, n as ConsoleMcpCandidate, r as ConsoleMcpConnectResult, t as ConsoleMcpAuth, u as ConsoleMcpPage } from "../../../mcp-client-uXVvS7RL.js";
|
|
2
2
|
type ConsoleMcpAnswer = ConsoleMcpOutcome & {
|
|
3
3
|
connection: ConsoleMcpConnection;
|
|
4
4
|
};
|
|
5
|
-
/** What each operation of the MCP section returns
|
|
5
|
+
/** What each operation of the MCP section returns. `@vite-hub/console` answers them. */
|
|
6
6
|
export interface ConsoleMcpResults {
|
|
7
7
|
"mcp-client.call": ConsoleMcpAnswer;
|
|
8
8
|
"mcp-client.complete": ConsoleMcpConnection;
|
|
@@ -20,8 +20,8 @@ export interface ConsoleMcpResults {
|
|
|
20
20
|
"mcp-client.reconnect": ConsoleMcpConnectResult;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Call one operation of the MCP client section.
|
|
24
|
-
*
|
|
23
|
+
* Call one operation of the MCP client section. The Console server, such as console.vitehub.dev, runs the MCP client,
|
|
24
|
+
* so the calls go to `/p/<project>/mcp-client` on that server and not to the app.
|
|
25
25
|
*/
|
|
26
26
|
export declare function requestConsoleMcp<Operation extends keyof ConsoleMcpResults>(operation: Operation, input?: Record<string, unknown>, signal?: AbortSignal): Promise<ConsoleMcpResults[Operation]>;
|
|
27
27
|
/** Status words and colors. The word always comes with the color, so the status never depends on color alone. */
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as requestConsoleOperation } from "../../../request-Cl68STwT.js";
|
|
1
|
+
import { d as requestConsoleOperation } from "../../../request-XFVx7CGC.js";
|
|
3
2
|
// src/console/runtime/client/mcp-client.ts
|
|
4
3
|
/**
|
|
5
|
-
* Call one operation of the MCP client section.
|
|
6
|
-
*
|
|
4
|
+
* Call one operation of the MCP client section. The Console server, such as console.vitehub.dev, runs the MCP client,
|
|
5
|
+
* so the calls go to `/p/<project>/mcp-client` on that server and not to the app.
|
|
7
6
|
*/
|
|
8
7
|
async function requestConsoleMcp(operation, input = {}, signal) {
|
|
9
|
-
const path = consoleProject().remote ? { path: "/mcp-client" } : {};
|
|
10
8
|
return await requestConsoleOperation(operation, input, {
|
|
11
|
-
|
|
9
|
+
path: "/mcp-client",
|
|
12
10
|
...signal ? { signal } : {}
|
|
13
11
|
});
|
|
14
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as consoleAspectRatio, n as consoleCropName, r as consoleFocalCropPosition, i as consoleFocalPosition, a as consoleFolderName, o as consoleFolderTrail, s as consoleMediaAccepts, c as consoleMediaAspects, l as consoleMediaBase, u as consoleMediaDate, d as consoleMediaFileUrl, f as consoleMediaFormat, p as consoleMediaTransformable, m as consoleMediaType, h as consoleMediaTypeIcons, g as consoleMediaTypes, _ as consoleMediaUrl, v as consoleMediaVariantUrl, y as createConsoleMediaClient, b as isConsoleMediaPathname, x as rememberConsoleMediaFolder, S as rememberedConsoleMediaFolder } from "../../../media-library-
|
|
1
|
+
export { t as consoleAspectRatio, n as consoleCropName, r as consoleFocalCropPosition, i as consoleFocalPosition, a as consoleFolderName, o as consoleFolderTrail, s as consoleMediaAccepts, c as consoleMediaAspects, l as consoleMediaBase, u as consoleMediaDate, d as consoleMediaFileUrl, f as consoleMediaFormat, p as consoleMediaTransformable, m as consoleMediaType, h as consoleMediaTypeIcons, g as consoleMediaTypes, _ as consoleMediaUrl, v as consoleMediaVariantUrl, y as createConsoleMediaClient, b as isConsoleMediaPathname, x as rememberConsoleMediaFolder, S as rememberedConsoleMediaFolder } from "../../../media-library-DTC8TLsZ.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as consoleErrorMessage } from "../../../documents-
|
|
1
|
+
import { d as consoleErrorMessage } from "../../../documents-BduuZjm3.js";
|
|
2
2
|
import { computed, ref } from "vue";
|
|
3
3
|
// src/console/runtime/client/media-uploads.ts
|
|
4
4
|
/** Uploads at most this many files at once, so a large drop does not stall the server or the browser. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as invariant } from "../../../invariant-Dj2R1eMr.js";
|
|
2
2
|
import { s as resolveProjectUrl } from "../../../project-DRC67Uiu.js";
|
|
3
|
-
import { d as requestConsoleOperation } from "../../../request-
|
|
3
|
+
import { d as requestConsoleOperation } from "../../../request-XFVx7CGC.js";
|
|
4
4
|
// src/console/runtime/client/operation-view.ts
|
|
5
5
|
/** The value at a dot path, such as `messages.0.body`. Paths joined by `|` fall back in order: `author.name|author.id`. */
|
|
6
6
|
function operationValue(item, path) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as ConsoleDocumentSession, f as ConsoleDocumentPresence, k as ConsoleDocumentsClient, w as ConsoleDocumentSessionUser } from "../../../documents-
|
|
1
|
+
import { S as ConsoleDocumentSession, f as ConsoleDocumentPresence, k as ConsoleDocumentsClient, w as ConsoleDocumentSessionUser } from "../../../documents-CApMRd4o.js";
|
|
2
2
|
import { ComputedRef, Ref, ShallowRef } from "vue";
|
|
3
3
|
/** This tab's session token. List rows and the editor share it, so both mark this tab as `self`. */
|
|
4
4
|
export declare const consoleTabSession: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ConsoleDiagnosticAction } from "../../../diagnostics-
|
|
1
|
+
import { t as ConsoleDiagnosticAction } from "../../../diagnostics-DgGKvWzF.js";
|
|
2
2
|
/** A failure as the Console shows it: what happened, how to repair it, and the next step. */
|
|
3
3
|
export interface ConsoleProblem {
|
|
4
4
|
/** The next step. `retry` appears only when a retry can succeed. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as isConsoleDiagnosticCode, n as consoleDiagnosticAction, t as consoleDiagnostic } from "../../../diagnostics-
|
|
2
|
-
import { t as ConsoleRequestError } from "../../../request-
|
|
1
|
+
import { a as isConsoleDiagnosticCode, n as consoleDiagnosticAction, t as consoleDiagnostic } from "../../../diagnostics-DLHqjKGe.js";
|
|
2
|
+
import { t as ConsoleRequestError } from "../../../request-XFVx7CGC.js";
|
|
3
3
|
// src/console/runtime/client/problem.ts
|
|
4
4
|
const configurationCodes = /* @__PURE__ */ new Set(["CONNECTIONS_AUTH_REQUIRED", "ENV_BRIDGE_UNTRUSTED"]);
|
|
5
5
|
const text = (value) => typeof value === "string" && value.trim() ? value : void 0;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as probeConsoleProject, a as ConsoleProjectInfo, c as consoleAuthorAvatarUrl, d as consoleFrameworkLabels, f as consoleHostLabels, g as consoleProjectProtocol, h as consoleProjectProblem, i as ConsoleProjectHostName, l as consoleCommentsSiteUrl, m as consoleProjectCommentsOf, n as ConsoleProjectComments, o as ConsoleProjectProbe, p as consoleProjectBuildOf, r as ConsoleProjectFrameworkName, s as ConsoleProjectProblem, t as ConsoleProjectBuild, u as consoleCompareUrl } from "../../../project-link-
|
|
1
|
+
import { _ as probeConsoleProject, a as ConsoleProjectInfo, c as consoleAuthorAvatarUrl, d as consoleFrameworkLabels, f as consoleHostLabels, g as consoleProjectProtocol, h as consoleProjectProblem, i as ConsoleProjectHostName, l as consoleCommentsSiteUrl, m as consoleProjectCommentsOf, n as ConsoleProjectComments, o as ConsoleProjectProbe, p as consoleProjectBuildOf, r as ConsoleProjectFrameworkName, s as ConsoleProjectProblem, t as ConsoleProjectBuild, u as consoleCompareUrl } from "../../../project-link-Ck3vuq9w.js";
|
|
2
2
|
export { ConsoleProjectBuild, ConsoleProjectComments, ConsoleProjectFrameworkName, ConsoleProjectHostName, ConsoleProjectInfo, ConsoleProjectProbe, ConsoleProjectProblem, consoleAuthorAvatarUrl, consoleCommentsSiteUrl, consoleCompareUrl, consoleFrameworkLabels, consoleHostLabels, consoleProjectBuildOf, consoleProjectCommentsOf, consoleProjectProblem, consoleProjectProtocol, probeConsoleProject };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as consoleAuthorAvatarUrl, n as consoleCommentsSiteUrl, r as consoleCompareUrl, i as consoleFrameworkLabels, a as consoleHostLabels, o as consoleProjectBuildOf, s as consoleProjectCommentsOf, c as consoleProjectProblem, l as consoleProjectProtocol, u as probeConsoleProject } from "../../../project-link-
|
|
1
|
+
export { t as consoleAuthorAvatarUrl, n as consoleCommentsSiteUrl, r as consoleCompareUrl, i as consoleFrameworkLabels, a as consoleHostLabels, o as consoleProjectBuildOf, s as consoleProjectCommentsOf, c as consoleProjectProblem, l as consoleProjectProtocol, u as probeConsoleProject } from "../../../project-link-CJbCkOlC.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as ConsoleAccountProject, t as ConsoleAccount } from "../../../account-
|
|
2
|
-
import { a as ConsoleProjectInfo, s as ConsoleProjectProblem } from "../../../project-link-
|
|
1
|
+
import { i as ConsoleAccountProject, t as ConsoleAccount } from "../../../account-DNr8fHcQ.js";
|
|
2
|
+
import { a as ConsoleProjectInfo, s as ConsoleProjectProblem } from "../../../project-link-Ck3vuq9w.js";
|
|
3
3
|
import { n as ConsoleProjectStorage, r as ConsoleProjectStore, t as ConsoleLinkedProject } from "../../../projects-mgPxrKZr.js";
|
|
4
4
|
import { Ref, ShallowRef } from "vue";
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as accountProjectPath, n as canManageConsoleProjects, r as checkConsoleProjects, i as consoleAccountPages, a as consoleAccountPath, o as consoleInvitationOf, s as consoleOpenLink, c as consoleOpenProjectName, l as consoleOpenReturnPath, u as consoleProjectDisplayName, d as consoleProjectReady, f as consoleSignInReturnPath, p as consoleSiteLink, m as finishConsoleSignIn, h as forgetConsoleProject, g as linkAccountProject, _ as loadConsoleAccount, v as openAccountProject, y as openConsoleProject, b as openConsoleSite, x as reloadConsoleAccount, S as rememberAccountProject, C as rememberConsoleProjectName, w as renameAccountProject, T as showConsoleAccountPage, E as signOutConsole, D as siteTicketUrl, O as siteTokenRedirect, k as startConsoleAccount, A as startConsoleProjects, j as switchConsoleProject, M as useConsoleProjects } from "../../../project-session
|
|
1
|
+
export { t as accountProjectPath, n as canManageConsoleProjects, r as checkConsoleProjects, i as consoleAccountPages, a as consoleAccountPath, o as consoleInvitationOf, s as consoleOpenLink, c as consoleOpenProjectName, l as consoleOpenReturnPath, u as consoleProjectDisplayName, d as consoleProjectReady, f as consoleSignInReturnPath, p as consoleSiteLink, m as finishConsoleSignIn, h as forgetConsoleProject, g as linkAccountProject, _ as loadConsoleAccount, v as openAccountProject, y as openConsoleProject, b as openConsoleSite, x as reloadConsoleAccount, S as rememberAccountProject, C as rememberConsoleProjectName, w as renameAccountProject, T as showConsoleAccountPage, E as signOutConsole, D as siteTicketUrl, O as siteTokenRedirect, k as startConsoleAccount, A as startConsoleProjects, j as switchConsoleProject, M as useConsoleProjects } from "../../../project-session-8pN7pRo8.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as ConsoleDocumentsClient, m as ConsoleDocumentPublishExpectation } from "../../../documents-
|
|
1
|
+
import { k as ConsoleDocumentsClient, m as ConsoleDocumentPublishExpectation } from "../../../documents-CApMRd4o.js";
|
|
2
2
|
/**
|
|
3
3
|
* Publishes reviewed changes of several collections, one publish per collection, and returns how many documents
|
|
4
4
|
* changed. Each publish sends exactly the draft digests that the caller showed, so a draft saved since then fails with
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as requestConsole } from "../../../request-
|
|
1
|
+
import { u as requestConsole } from "../../../request-XFVx7CGC.js";
|
|
2
2
|
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-CBtvqI30.js";
|
|
3
3
|
// src/console/runtime/client/rate-limit.ts
|
|
4
4
|
function record(value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ConsoleSectionId } from "../../../sections-
|
|
1
|
+
import { a as ConsoleSectionId } from "../../../sections-DCoCa4nF.js";
|
|
2
2
|
/**
|
|
3
3
|
* Whether the access may only read the section (`"<section>:read"` in `console.authorize`). The write actions of the
|
|
4
4
|
* page are hidden then. The server refuses them either way. Unknown navigation counts as writable, so a failed load
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as loadConsoleNavigation } from "../../../sections-
|
|
1
|
+
import { o as loadConsoleNavigation } from "../../../sections-ZFAlI4JW.js";
|
|
2
2
|
// src/console/runtime/client/read-only.ts
|
|
3
3
|
/**
|
|
4
4
|
* Whether the access may only read the section (`"<section>:read"` in `console.authorize`). The write actions of the
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as consoleNetworkError, c as isConsoleSignInRequired, d as requestConsole, f as requestConsoleOperation, i as consoleErrorFields, l as isRetryableConsoleRequestError, n as ConsoleRequestError, o as consoleOperationCall, r as appendUniqueConsoleKeys, s as consoleResponseError, t as ConsoleErrorFields, u as loadConsoleKVPages } from "../../../request-
|
|
2
|
-
export { ConsoleErrorFields, ConsoleRequestError, appendUniqueConsoleKeys, consoleErrorFields, consoleNetworkError, consoleOperationCall, consoleResponseError, isConsoleSignInRequired, isRetryableConsoleRequestError, loadConsoleKVPages, requestConsole, requestConsoleOperation };
|
|
1
|
+
import { a as consoleNetworkError, c as isConsoleSignInRequired, d as requestConsole, f as requestConsoleOperation, i as consoleErrorFields, l as isRetryableConsoleRequestError, n as ConsoleRequestError, o as consoleOperationCall, p as requestConsoleUsage, r as appendUniqueConsoleKeys, s as consoleResponseError, t as ConsoleErrorFields, u as loadConsoleKVPages } from "../../../request-DkoE0b2h.js";
|
|
2
|
+
export { ConsoleErrorFields, ConsoleRequestError, appendUniqueConsoleKeys, consoleErrorFields, consoleNetworkError, consoleOperationCall, consoleResponseError, isConsoleSignInRequired, isRetryableConsoleRequestError, loadConsoleKVPages, requestConsole, requestConsoleOperation, requestConsoleUsage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ConsoleRequestError, n as appendUniqueConsoleKeys, r as consoleErrorFields, i as consoleNetworkError, a as consoleOperationCall, o as consoleResponseError, s as isConsoleSignInRequired, c as isRetryableConsoleRequestError, l as loadConsoleKVPages, u as requestConsole, d as requestConsoleOperation } from "../../../request-
|
|
1
|
+
export { t as ConsoleRequestError, n as appendUniqueConsoleKeys, r as consoleErrorFields, i as consoleNetworkError, a as consoleOperationCall, o as consoleResponseError, s as isConsoleSignInRequired, c as isRetryableConsoleRequestError, l as loadConsoleKVPages, u as requestConsole, d as requestConsoleOperation, f as requestConsoleUsage } from "../../../request-XFVx7CGC.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as requestConsole } from "../../../request-
|
|
1
|
+
import { u as requestConsole } from "../../../request-XFVx7CGC.js";
|
|
2
2
|
import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-CBtvqI30.js";
|
|
3
3
|
// src/console/runtime/client/schedule-run.ts
|
|
4
4
|
function record(value) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as createConsoleSectionLoader, c as parseConsoleNavigation, d as resolveConsoleSectionDetails, f as seedConsoleNavigation, i as consoleSectionsPath, l as reloadConsoleNavigation, n as consoleNavigationError, o as isConsoleSectionRevoked, p as subscribeConsoleNavigation, r as consolePendingSectionRoute, s as loadConsoleNavigation, t as ConsoleNavigation, u as resolveConsoleSectionDeepLink } from "../../../sections-
|
|
1
|
+
import { a as createConsoleSectionLoader, c as parseConsoleNavigation, d as resolveConsoleSectionDetails, f as seedConsoleNavigation, i as consoleSectionsPath, l as reloadConsoleNavigation, n as consoleNavigationError, o as isConsoleSectionRevoked, p as subscribeConsoleNavigation, r as consolePendingSectionRoute, s as loadConsoleNavigation, t as ConsoleNavigation, u as resolveConsoleSectionDeepLink } from "../../../sections-BMkFB3S-.js";
|
|
2
2
|
export { ConsoleNavigation, consoleNavigationError, consolePendingSectionRoute, consoleSectionsPath, createConsoleSectionLoader, isConsoleSectionRevoked, loadConsoleNavigation, parseConsoleNavigation, reloadConsoleNavigation, resolveConsoleSectionDeepLink, resolveConsoleSectionDetails, seedConsoleNavigation, subscribeConsoleNavigation };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as consoleNavigationError, n as consolePendingSectionRoute, r as consoleSectionsPath, i as createConsoleSectionLoader, a as isConsoleSectionRevoked, o as loadConsoleNavigation, s as parseConsoleNavigation, c as reloadConsoleNavigation, l as resolveConsoleSectionDeepLink, u as resolveConsoleSectionDetails, d as seedConsoleNavigation, f as subscribeConsoleNavigation } from "../../../sections-
|
|
1
|
+
export { t as consoleNavigationError, n as consolePendingSectionRoute, r as consoleSectionsPath, i as createConsoleSectionLoader, a as isConsoleSectionRevoked, o as loadConsoleNavigation, s as parseConsoleNavigation, c as reloadConsoleNavigation, l as resolveConsoleSectionDeepLink, u as resolveConsoleSectionDetails, d as seedConsoleNavigation, f as subscribeConsoleNavigation } from "../../../sections-ZFAlI4JW.js";
|
|
@@ -1,8 +1,48 @@
|
|
|
1
|
-
import { n as ConsoleRequestError } from "../../../request-
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { n as ConsoleRequestError } from "../../../request-DkoE0b2h.js";
|
|
2
|
+
import { t as ConsoleLink } from "../../../site-link-Dtw8MNVB.js";
|
|
3
|
+
export declare const siteAccessOperations: {
|
|
4
|
+
readonly link: "site.link";
|
|
5
|
+
readonly sessions: "site.sessions";
|
|
6
|
+
readonly revokeSession: "site.revoke-session";
|
|
7
|
+
readonly invite: "site.invite";
|
|
8
|
+
readonly invites: "site.invites";
|
|
9
|
+
readonly revokeInvite: "site.revoke-invite";
|
|
10
|
+
readonly grants: "site.grants";
|
|
11
|
+
};
|
|
12
|
+
export interface SiteSession {
|
|
13
|
+
id: string;
|
|
14
|
+
kind: "member" | "guest";
|
|
15
|
+
person: {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
email?: string;
|
|
19
|
+
image?: string;
|
|
20
|
+
};
|
|
21
|
+
grants: string[];
|
|
22
|
+
device: string;
|
|
23
|
+
createdAt: string;
|
|
24
|
+
lastSeenAt: string;
|
|
25
|
+
expiresAt: string;
|
|
26
|
+
}
|
|
27
|
+
export interface SiteInvite {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
grants: string[];
|
|
31
|
+
path: string;
|
|
32
|
+
expiresAt: string;
|
|
33
|
+
createdBy: {
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export interface SiteGrant {
|
|
39
|
+
id: string;
|
|
40
|
+
label: string;
|
|
41
|
+
description?: string;
|
|
42
|
+
membersOnly?: true;
|
|
43
|
+
}
|
|
4
44
|
/**
|
|
5
|
-
* Whether the Console keeps the Site access of the open project:
|
|
45
|
+
* Whether the Console keeps the Site access of the open project: an app that answers
|
|
6
46
|
* `site.access`. Else the app keeps it, and the Console calls its `site.*` operations.
|
|
7
47
|
*/
|
|
8
48
|
export declare function usesConsoleSiteAccess(): boolean;
|
|
@@ -28,13 +68,13 @@ export declare function readSiteAccess(signal?: AbortSignal): Promise<{
|
|
|
28
68
|
*/
|
|
29
69
|
export declare function openSite(path?: string): Promise<void>;
|
|
30
70
|
/** A one-time link for a phone, such as `/go/<code>` of the Console: it lasts 10 minutes, so there is time to scan it. */
|
|
31
|
-
export declare function phoneLink(): Promise<
|
|
71
|
+
export declare function phoneLink(): Promise<ConsoleLink>;
|
|
32
72
|
/** Invites a guest. The answer has the link, which the Console shows once: the Console or the app keeps only its hash. */
|
|
33
73
|
export declare function inviteGuest(input: {
|
|
34
74
|
name: string;
|
|
35
75
|
grants: string[];
|
|
36
76
|
expiresInDays: 1 | 7 | 30;
|
|
37
|
-
}): Promise<
|
|
77
|
+
}): Promise<ConsoleLink & {
|
|
38
78
|
invite: SiteInvite;
|
|
39
79
|
}>;
|
|
40
80
|
/** Revokes the pass of a browser, or its app session when the app keeps Site access. */
|
|
@@ -49,7 +89,7 @@ export declare function inviteHostedCommentsGuest(commentsProject: string, input
|
|
|
49
89
|
name: string;
|
|
50
90
|
grants: string[];
|
|
51
91
|
expiresInDays: number;
|
|
52
|
-
}): Promise<
|
|
92
|
+
}): Promise<ConsoleLink & {
|
|
53
93
|
invite: SiteInvite;
|
|
54
94
|
}>;
|
|
55
95
|
export declare function revokeHostedCommentsAccess(commentsProject: string, type: "invites" | "sessions", id: string): Promise<void>;
|
|
@@ -59,5 +99,4 @@ export declare function qrCode(url: string): string;
|
|
|
59
99
|
* What a browser may do, in words: the labels of its grants, such as `Read comments, Write comments`, or for a member of
|
|
60
100
|
* an app that keeps Site access itself, `Console and every page tool`. Grants the catalogue does not know keep their id.
|
|
61
101
|
*/
|
|
62
|
-
export declare function grantSummary(kind: "member" | "guest", grants: readonly string[], catalogue: readonly SiteGrant[]): string;
|
|
63
|
-
export type { SiteGrant, SiteInvite, SiteSession };
|
|
102
|
+
export declare function grantSummary(kind: "member" | "guest", grants: readonly string[], catalogue: readonly SiteGrant[]): string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as isRecord } from "../../../object-DRSmpe04.js";
|
|
2
|
-
import
|
|
3
|
-
import { M as useConsoleProjects } from "../../../project-session
|
|
4
|
-
import { d as requestConsoleOperation, o as consoleResponseError, t as ConsoleRequestError } from "../../../request-
|
|
5
|
-
import { t as
|
|
2
|
+
import "../../../site-token-Wa7fhjwg.js";
|
|
3
|
+
import { M as useConsoleProjects } from "../../../project-session-8pN7pRo8.js";
|
|
4
|
+
import { d as requestConsoleOperation, o as consoleResponseError, t as ConsoleRequestError } from "../../../request-XFVx7CGC.js";
|
|
5
|
+
import { t as openConsoleLink } from "../../../site-link-Bvo2SxPo.js";
|
|
6
6
|
// ../../node_modules/.pnpm/uqr@0.1.3/node_modules/uqr/dist/index.mjs
|
|
7
7
|
var QrCodeDataType = /* @__PURE__ */ ((QrCodeDataType2) => {
|
|
8
8
|
QrCodeDataType2[QrCodeDataType2["Border"] = -1] = "Border";
|
|
@@ -879,16 +879,23 @@ function renderSVG(data, options = {}) {
|
|
|
879
879
|
svg += "</svg>";
|
|
880
880
|
return svg;
|
|
881
881
|
}
|
|
882
|
-
new TextEncoder();
|
|
883
|
-
new TextDecoder();
|
|
884
882
|
// src/console/runtime/client/site-access.ts
|
|
883
|
+
const siteAccessOperations = {
|
|
884
|
+
link: "site.link",
|
|
885
|
+
sessions: "site.sessions",
|
|
886
|
+
revokeSession: "site.revoke-session",
|
|
887
|
+
invite: "site.invite",
|
|
888
|
+
invites: "site.invites",
|
|
889
|
+
revokeInvite: "site.revoke-invite",
|
|
890
|
+
grants: "site.grants"
|
|
891
|
+
};
|
|
885
892
|
/**
|
|
886
|
-
* Whether the Console keeps the Site access of the open project:
|
|
893
|
+
* Whether the Console keeps the Site access of the open project: an app that answers
|
|
887
894
|
* `site.access`. Else the app keeps it, and the Console calls its `site.*` operations.
|
|
888
895
|
*/
|
|
889
896
|
function usesConsoleSiteAccess() {
|
|
890
897
|
const projects = useConsoleProjects();
|
|
891
|
-
return
|
|
898
|
+
return Boolean(projects.current.value && projects.info.value?.operations.includes("site.access"));
|
|
892
899
|
}
|
|
893
900
|
/**
|
|
894
901
|
* Whether a Site access request was refused with a reason to show: any refusal of the Console, such as a missing role or
|
|
@@ -988,11 +995,11 @@ async function readSiteAccess(signal) {
|
|
|
988
995
|
*/
|
|
989
996
|
async function openSite(path) {
|
|
990
997
|
if (!usesConsoleSiteAccess()) {
|
|
991
|
-
await
|
|
998
|
+
await openConsoleLink(() => appOperation(siteAccessOperations.link, path ? { path } : {}));
|
|
992
999
|
return;
|
|
993
1000
|
}
|
|
994
1001
|
const { id, url } = currentProject();
|
|
995
|
-
await
|
|
1002
|
+
await openConsoleLink(async () => ({ url: `${url.replace(/\/+$/, "")}/_vitehub/site?${new URLSearchParams({
|
|
996
1003
|
return: path ?? "/",
|
|
997
1004
|
project: id
|
|
998
1005
|
})}` }));
|
|
@@ -1058,4 +1065,4 @@ function grantSummary(kind, grants, catalogue) {
|
|
|
1058
1065
|
const labels = grants.map((id) => catalogue.find((grant) => grant.id === id)?.label ?? id);
|
|
1059
1066
|
return labels.length ? labels.join(", ") : "Nothing";
|
|
1060
1067
|
}
|
|
1061
|
-
export { grantSummary, inviteGuest, inviteHostedCommentsGuest, isSiteAccessProblem, openSite, phoneLink, qrCode, readHostedCommentsAccess, readSiteAccess, revokeHostedCommentsAccess, revokeInvite, revokeSession, usesConsoleSiteAccess };
|
|
1068
|
+
export { grantSummary, inviteGuest, inviteHostedCommentsGuest, isSiteAccessProblem, openSite, phoneLink, qrCode, readHostedCommentsAccess, readSiteAccess, revokeHostedCommentsAccess, revokeInvite, revokeSession, siteAccessOperations, usesConsoleSiteAccess };
|