vite-hub 0.5.1 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -8
- package/dist/{access-BBHk9b5P.js → access-DiI9bMuK.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-FMmoXMpi.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-0V-aZPZi.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 +14 -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-BOYwZ5g4.js → documents-C6x95F1A.js} +12 -15
- package/dist/{documents-DxK0tdjA.d.ts → documents-CApMRd4o.d.ts} +2 -3
- 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-Dc6atYyw.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-D-5OYBME.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-C6zDmJz6.js +1 -0
- package/dist/operation-modules-Cb69yoMi.js +139 -0
- package/dist/{operations-CD_mu_Ww.js → operations-BsEUHt-z.js} +5 -2
- package/dist/operations-CWnZTxfB.js +113 -0
- package/dist/operations-DWaXf63n.js +1 -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-H6-MQrsn.js → plugins-BTYvMKCm.js} +250 -312
- package/dist/{plugins-BpiTVULl.d.ts → plugins-BmkOoyIh.d.ts} +22 -9
- package/dist/{project-DKBIHOf4.d.ts → project-B2qWt8on.d.ts} +2 -7
- package/dist/{project-BxyyclTE.js → project-CJq2DOF0.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
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { t as defineOperation } from "./operation-definition-D04Rdjbe.js";
|
|
2
|
+
import { f as operationSection, l as operationCall, s as operationAccessAllows } from "./operations-BsEUHt-z.js";
|
|
3
|
+
import { n as bindConsoleAccess, s as consoleOperationAccess } from "./access-DiI9bMuK.js";
|
|
4
|
+
import { a as maximumConsoleMediaRequestBytes, i as maximumConsoleDocumentRequestBytes, r as consoleMediaUploadRequestBytes, s as maximumConsoleRpcRequestBytes, t as consoleAttachmentRequestBytes } from "./limits-BLo31qDR.js";
|
|
5
|
+
import { r as consoleRequestError } from "./request-D769eiBL.js";
|
|
6
|
+
import { n as loadConsoleRuntime } from "./runtime-DA7HJe10.js";
|
|
7
|
+
import * as v from "valibot";
|
|
8
|
+
// src/console/runtime/server/operations.ts
|
|
9
|
+
/** Builds the request event that a Console route handler reads, for a call of an operation. */
|
|
10
|
+
function legacyEvent(route, method, request, context) {
|
|
11
|
+
const id = request.id ? `/${encodeURIComponent(request.id)}` : "";
|
|
12
|
+
const url = new URL(`/_vitehub/api/${route}${id}`, "http://vitehub.local");
|
|
13
|
+
for (const [key, value] of Object.entries(request.query ?? {})) {
|
|
14
|
+
if (value === void 0) continue;
|
|
15
|
+
if (Array.isArray(value)) value.forEach((entry) => url.searchParams.append(key, entry));
|
|
16
|
+
else url.searchParams.set(key, String(value));
|
|
17
|
+
}
|
|
18
|
+
const params = {};
|
|
19
|
+
if (request.agent) params.agent = request.agent;
|
|
20
|
+
if (request.id) params.id = request.id;
|
|
21
|
+
const body = method === "POST" && request.body !== void 0 ? JSON.stringify(request.body) : void 0;
|
|
22
|
+
const event = {
|
|
23
|
+
context: Object.keys(params).length ? { params } : void 0,
|
|
24
|
+
"~standard": {
|
|
25
|
+
vendor: "vitehub-console",
|
|
26
|
+
req: new Request(url, {
|
|
27
|
+
body,
|
|
28
|
+
headers: context.request?.headers,
|
|
29
|
+
method,
|
|
30
|
+
signal: context.request?.signal
|
|
31
|
+
}),
|
|
32
|
+
res: context.response ?? {},
|
|
33
|
+
runtime: context.env ? { cloudflare: { env: context.env } } : {},
|
|
34
|
+
...context.waitUntil ? { waitUntil: context.waitUntil } : {}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
return bindConsoleAccess(context.access, event);
|
|
38
|
+
}
|
|
39
|
+
/** A string input field. */
|
|
40
|
+
const text = v.string();
|
|
41
|
+
/** An optional string input field. */
|
|
42
|
+
const optionalText = v.optional(v.string());
|
|
43
|
+
/** An optional integer input field. */
|
|
44
|
+
const optionalCount = v.optional(v.pipe(v.number(), v.integer()));
|
|
45
|
+
/** A record input field. */
|
|
46
|
+
const record = v.record(v.string(), v.unknown());
|
|
47
|
+
function selectionError() {
|
|
48
|
+
return consoleRequestError(400, "A valid definition section is required.");
|
|
49
|
+
}
|
|
50
|
+
/** Returns the result of a Console action, or throws when the handler denied the section. */
|
|
51
|
+
function actionResult(result) {
|
|
52
|
+
if (result instanceof Response) throw consoleRequestError(result.status, "This Console access does not include this section.");
|
|
53
|
+
return result;
|
|
54
|
+
}
|
|
55
|
+
/** Large calls put the operation name first in the envelope, so the RPC can classify them within 64 KiB. */
|
|
56
|
+
const consoleOperationRequestBytes = {
|
|
57
|
+
"agents.invoke": consoleAttachmentRequestBytes + maximumConsoleRpcRequestBytes,
|
|
58
|
+
"documents.action": maximumConsoleDocumentRequestBytes + maximumConsoleRpcRequestBytes,
|
|
59
|
+
"media.action": maximumConsoleMediaRequestBytes + maximumConsoleRpcRequestBytes,
|
|
60
|
+
"media.upload": consoleMediaUploadRequestBytes
|
|
61
|
+
};
|
|
62
|
+
/** Defines an operation that checks the Console access of the caller and loads the Console runtime before it runs. */
|
|
63
|
+
function defineConsoleOperation(definition) {
|
|
64
|
+
return defineOperation({
|
|
65
|
+
...definition,
|
|
66
|
+
user: false,
|
|
67
|
+
async run(input, context) {
|
|
68
|
+
const access = await consoleOperationAccess(context);
|
|
69
|
+
if (!operationAccessAllows(access, operationSection(definition, input), operationCall(definition, input))) throw consoleRequestError(403, "This Console access does not include this operation.");
|
|
70
|
+
await loadConsoleRuntime();
|
|
71
|
+
return definition.run(input, {
|
|
72
|
+
...context,
|
|
73
|
+
access
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
/** The operations that `vite-hub` owns for every Console. Each configured primitive adds its own operations through one lazy import. */
|
|
79
|
+
const consoleOperations = [
|
|
80
|
+
defineConsoleOperation({
|
|
81
|
+
cli: false,
|
|
82
|
+
description: "Read the definitions of one Console section.",
|
|
83
|
+
input: v.strictObject({ section: text }),
|
|
84
|
+
kind: "read",
|
|
85
|
+
name: "definitions.list",
|
|
86
|
+
run: async ({ section }, context) => {
|
|
87
|
+
if (!section) throw selectionError();
|
|
88
|
+
return (await import("./console/runtime/server/definitions.get.js")).listConsoleDefinitions({ section }, context.access);
|
|
89
|
+
},
|
|
90
|
+
section: (input) => input.section
|
|
91
|
+
}),
|
|
92
|
+
defineConsoleOperation({
|
|
93
|
+
cli: {
|
|
94
|
+
command: "get",
|
|
95
|
+
namespace: "project"
|
|
96
|
+
},
|
|
97
|
+
description: "Read the project: its name, the vite-hub version, the time and Git commit of its production build, its open Comments threads, and the sections and operations that this access may use.",
|
|
98
|
+
input: v.strictObject({}),
|
|
99
|
+
kind: "read",
|
|
100
|
+
name: "project.get",
|
|
101
|
+
run: async (_input, context) => (await import("./project-CJq2DOF0.js")).readConsoleProject(context, { navigation: context.surface === "console" }),
|
|
102
|
+
section: false
|
|
103
|
+
}),
|
|
104
|
+
defineConsoleOperation({
|
|
105
|
+
description: "List the Console sections that this access may open.",
|
|
106
|
+
input: v.strictObject({}),
|
|
107
|
+
kind: "read",
|
|
108
|
+
name: "sections.list",
|
|
109
|
+
run: async (_input, context) => (await import("./console/runtime/server/sections.get.js")).listConsoleSections(context.access),
|
|
110
|
+
section: false
|
|
111
|
+
})
|
|
112
|
+
];
|
|
113
|
+
export { legacyEvent as a, record as c, defineConsoleOperation as i, text as l, consoleOperationRequestBytes as n, optionalCount as o, consoleOperations as r, optionalText as s, actionResult as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { r as consoleOperations } from "./operations-CWnZTxfB.js";
|
|
@@ -22,7 +22,6 @@ const optionalFeaturePackages = {
|
|
|
22
22
|
"comments": features.comments.packages,
|
|
23
23
|
"connections": features.connections.packages,
|
|
24
24
|
"console agents": consoleFeaturePackages.agents,
|
|
25
|
-
"console mcp-client": ["@modelcontextprotocol/sdk"],
|
|
26
25
|
"console ui": [
|
|
27
26
|
"@vite-hub/ui",
|
|
28
27
|
"@json-render/core",
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// ../internal/src/runtime/page-tools.ts
|
|
2
|
+
const stateKey = Symbol.for("vitehub.page-tools");
|
|
3
|
+
const scope = globalThis;
|
|
4
|
+
function state() {
|
|
5
|
+
return scope[stateKey] ??= {
|
|
6
|
+
installed: /* @__PURE__ */ new WeakSet(),
|
|
7
|
+
tools: /* @__PURE__ */ new WeakMap(),
|
|
8
|
+
apps: /* @__PURE__ */ new WeakMap(),
|
|
9
|
+
bases: /* @__PURE__ */ new WeakMap()
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/** Registers a page tool for one Nitro app, before or after installation. The same id replaces only that app's tool. */
|
|
13
|
+
function registerViteHubPageTool(nitroApp, tool) {
|
|
14
|
+
if (nitroApp === null || typeof nitroApp !== "object") return;
|
|
15
|
+
const { tools } = state();
|
|
16
|
+
let registry = tools.get(nitroApp);
|
|
17
|
+
if (!registry) {
|
|
18
|
+
registry = /* @__PURE__ */ new Map();
|
|
19
|
+
tools.set(nitroApp, registry);
|
|
20
|
+
}
|
|
21
|
+
registry.set(tool.id, tool);
|
|
22
|
+
const grants = state().grants ??= /* @__PURE__ */ new Map();
|
|
23
|
+
for (const grant of tool.grants ?? []) grants.set(grant.id, grant);
|
|
24
|
+
}
|
|
25
|
+
/** Registers the account reader of one Nitro app. A second call replaces it. */
|
|
26
|
+
function registerViteHubPageAccount(nitroApp, read) {
|
|
27
|
+
if (nitroApp === null || typeof nitroApp !== "object") return;
|
|
28
|
+
(state().accounts ??= /* @__PURE__ */ new WeakMap()).set(nitroApp, read);
|
|
29
|
+
}
|
|
30
|
+
/** The grants of the request's current tools, or the process grant catalog when called without a request. */
|
|
31
|
+
function viteHubPageGrants(request) {
|
|
32
|
+
if (request) {
|
|
33
|
+
const app = state().apps.get(request);
|
|
34
|
+
if (!app) return [];
|
|
35
|
+
return [...state().tools.get(app)?.values() ?? []].flatMap((tool) => tool.grants ?? []);
|
|
36
|
+
}
|
|
37
|
+
return [...state().grants?.values() ?? []];
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Installs the reader of the Site access cookie. The Console installs it when the server starts, so page tools, such as
|
|
41
|
+
* Comments, know the person without depending on the Console.
|
|
42
|
+
*/
|
|
43
|
+
function installViteHubSiteVisitor(reader) {
|
|
44
|
+
state().siteVisitor = reader;
|
|
45
|
+
}
|
|
46
|
+
export { viteHubPageGrants as i, registerViteHubPageAccount as n, registerViteHubPageTool as r, installViteHubSiteVisitor as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A person that Site access in the ViteHub Console signed in to the app: a Console member, or a guest, with their roles,
|
|
3
|
+
* such as `console` and `comments-write`. The Console signs them in a Site access token, which the app keeps in its
|
|
4
|
+
* site cookie.
|
|
5
|
+
*/
|
|
6
|
+
interface ViteHubSiteVisitor {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
email?: string;
|
|
10
|
+
image?: string;
|
|
11
|
+
roles: string[];
|
|
12
|
+
/** `member` for a member of the Console team, who has the `console` role. `guest` for an invited guest. */
|
|
13
|
+
kind: "member" | "guest";
|
|
14
|
+
commentsAgent?: {
|
|
15
|
+
project: {
|
|
16
|
+
id: string;
|
|
17
|
+
teamId: string;
|
|
18
|
+
url: string;
|
|
19
|
+
};
|
|
20
|
+
resolve: boolean;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export { ViteHubSiteVisitor as t };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// ../internal/src/runtime/page-tools-shared.ts
|
|
2
|
+
/**
|
|
3
|
+
* The names and the session answer that the page tools server and the browser loader share. It has no DOM and no Node
|
|
4
|
+
* code, so both sides import it.
|
|
5
|
+
*/
|
|
6
|
+
/** The query that turns the page tools on for a page. `?vitehub=<tool id>` also opens that tool. */
|
|
7
|
+
const viteHubPageToolsQuery = "vitehub";
|
|
8
|
+
/**
|
|
9
|
+
* The cookie that remembers the session route's answer for this browser: `1` when a tool allows the person, `0` when
|
|
10
|
+
* none does or the person turned the tools off. It is a hint, never a credential, and it is not HttpOnly, because the
|
|
11
|
+
* page's bootstrap script reads it.
|
|
12
|
+
*/
|
|
13
|
+
const viteHubPageToolsCookie = "vitehub-tools";
|
|
14
|
+
/**
|
|
15
|
+
* The cookie that tells page scripts that an app Auth session exists. `@vite-hub/auth` sets it to `1` next to the
|
|
16
|
+
* session cookie and clears it on sign-out. It is not HttpOnly and holds no secret.
|
|
17
|
+
*/
|
|
18
|
+
const viteHubSessionMarkerCookie = "vitehub_session";
|
|
19
|
+
/**
|
|
20
|
+
* The `Set-Cookie` value that forgets the session route's answer. Auth sends it when a session starts or ends, so the
|
|
21
|
+
* next page asks the session route again for the new person.
|
|
22
|
+
*/
|
|
23
|
+
const viteHubPageToolsResetCookie = `${viteHubPageToolsCookie}=; Path=/; Max-Age=0; SameSite=Lax`;
|
|
24
|
+
/**
|
|
25
|
+
* The path of an app base, without the trailing slash: `/portal/` and `https://cdn.example/portal/` give `/portal`.
|
|
26
|
+
* The root and relative bases (`""`, `"./"`) give `""`. The Console mounts its routes with the same rule.
|
|
27
|
+
*/
|
|
28
|
+
function viteHubBasePath(base) {
|
|
29
|
+
if (!base || base === "./") return "";
|
|
30
|
+
let pathname = base;
|
|
31
|
+
if (/^https?:\/\//.test(pathname)) try {
|
|
32
|
+
pathname = new URL(pathname).pathname;
|
|
33
|
+
} catch {
|
|
34
|
+
return "";
|
|
35
|
+
}
|
|
36
|
+
if (!pathname.startsWith("/") || pathname.startsWith("//")) return "";
|
|
37
|
+
return pathname.replace(/\/+$/, "");
|
|
38
|
+
}
|
|
39
|
+
export { viteHubSessionMarkerCookie as i, viteHubPageToolsQuery as n, viteHubPageToolsResetCookie as r, viteHubBasePath as t };
|