vibe64 0.1.65 → 0.1.67
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/bin/run.js +2004 -1363
- package/bin/server.js +282 -276
- package/bin/upgrade-state.js +4673 -4470
- package/dist/assets/{GithubBrowserTabs-D21Nl3QI.js → GithubBrowserTabs-CW3GBeJu.js} +1 -1
- package/dist/assets/{LocalDatabaseServer-POxY1K1U.js → LocalDatabaseServer-DYh3UF9q.js} +1 -1
- package/dist/assets/{SelectField-Dezd0B3y.js → SelectField-Df50ZFLj.js} +1 -1
- package/dist/assets/{ShellOutlet-DfF9vsWA.js → ShellOutlet-DkLdtzJW.js} +1 -1
- package/dist/assets/{Vibe64AuthSettingsButton-I3ufyScN.js → Vibe64AuthSettingsButton-Cksj7FS6.js} +1 -1
- package/dist/assets/{Vibe64AuthSettingsButton-DFfFPrd7.css → Vibe64AuthSettingsButton-DfKYI6ZS.css} +1 -1
- package/dist/assets/{Vibe64ConversationLog-C04oOQ2g.js → Vibe64ConversationLog-BC0eDtUP.js} +1 -1
- package/dist/assets/{Vibe64DashboardShell-BbrOUmRD.js → Vibe64DashboardShell-DX5dOXAB.js} +1 -1
- package/dist/assets/{Vibe64DatabaseWorkspace-VPEM2o1v.js → Vibe64DatabaseWorkspace-8i-RDc9y.js} +1 -1
- package/dist/assets/{Vibe64FileArea-C_nC2bPk.js → Vibe64FileArea-EK5yUio3.js} +1 -1
- package/dist/assets/{Vibe64OutputControls-DTO3Fw3x.js → Vibe64OutputControls--LB4G83q.js} +1 -1
- package/dist/assets/{Vibe64RepositoryWorkspace-B8xcCOvL.js → Vibe64RepositoryWorkspace-D6uJCype.js} +1 -1
- package/dist/assets/{Vibe64SessionFiles-Cb9Mxsyq.js → Vibe64SessionFiles-DVHGc7hd.js} +1 -1
- package/dist/assets/{Vibe64SessionSourceEditor-CVQ3NRjh.js → Vibe64SessionSourceEditor-Bws5ihr-.js} +1 -1
- package/dist/assets/{Vibe64UiStoryboardView-BV4JFgcZ.js → Vibe64UiStoryboardView-BmABkyG4.js} +1 -1
- package/dist/assets/{Vibe64UnavailableSessions-DGQAxYE-.js → Vibe64UnavailableSessions-C6Bkwsqk.js} +1 -1
- package/dist/assets/{_pageId_-CkG15vv4.js → _pageId_-FjW-3sqF.js} +1 -1
- package/dist/assets/{_sessionId_-Bka3RUmK.js → _sessionId_-4cH83Bfi.js} +1 -1
- package/dist/assets/_slug_-Cazfy5ui.js +14 -0
- package/dist/assets/_slug_-DQDycgFK.css +1 -0
- package/dist/assets/{access-Xo3unxGO.js → access-mxcxtn7b.js} +1 -1
- package/dist/assets/{app-B0spNegd.js → app-8zP_FAuO.js} +1 -1
- package/dist/assets/assistantRouting-Bbxguvre.js +3 -0
- package/dist/assets/{changes-DFv4tuoO.js → changes-cmlEyHug.js} +1 -1
- package/dist/assets/{client-4uCr4dYG.js → client-BJBzomgt.js} +1 -1
- package/dist/assets/{client-CVuXqm4b.js → client-C1i-bIgL.js} +1 -1
- package/dist/assets/{client-Dlg1kjjO.js → client-C7yZ1hEm.js} +1 -1
- package/dist/assets/{client-CevjVK2b.js → client-CQ49uWhR.js} +1 -1
- package/dist/assets/{client-DR0w56e8.js → client-D46Uu-YO.js} +2 -2
- package/dist/assets/{client-BjMjS6lX.js → client-DKNTl1to.js} +2 -2
- package/dist/assets/{conversation-OkWbkHjm.js → conversation-CFJRkeTj.js} +3 -3
- package/dist/assets/{conversation-DReMq0MF.css → conversation-COcuIkcD.css} +1 -1
- package/dist/assets/conversation-CexAK3Qk.js +1 -0
- package/dist/assets/{dashboard-CAca9MQn.js → dashboard-CMtWKazq.js} +1 -1
- package/dist/assets/{english-definitions-BtX8KA5g.js → english-definitions-DiyU9O9D.js} +1 -1
- package/dist/assets/{env-DrNyBVkB.js → env-LUc22Wgd.js} +1 -1
- package/dist/assets/{error-BqMxhgpB.js → error-BccdQn04.js} +1 -1
- package/dist/assets/{error-BQ7r64JO.js → error-DPDAz9Td.js} +1 -1
- package/dist/assets/{errorMessageHelpers-B49LyMJi.js → errorMessageHelpers-G32Hjqfm.js} +1 -1
- package/dist/assets/{health-B5yTW5Tt.js → health-CfMjMJFf.js} +1 -1
- package/dist/assets/{history-S3anp6xg.js → history-hX_kNskf.js} +1 -1
- package/dist/assets/{httpClient-Bwitq9Xf.js → httpClient-C71X5grL.js} +1 -1
- package/dist/assets/{i18n-BuXRXGaO.js → i18n-5EHeMSvt.js} +1 -1
- package/dist/assets/{i18n-DQPYjuW7.js → i18n-BSfPKqM3.js} +1 -1
- package/dist/assets/{i18n-Dm74yE_M.js → i18n-Dq-ep9n7.js} +1 -1
- package/dist/assets/index-BJWiPV6i.css +1 -0
- package/dist/assets/index-FVeEbKiO.js +134 -0
- package/dist/assets/{integrations-C7dj7el_.js → integrations-Ccb8EOEO.js} +14 -15
- package/dist/assets/{integrations-CwgrZgmM.css → integrations-CtnIjM1Y.css} +1 -1
- package/dist/assets/{issues-OkV4v4GX.js → issues-Bxtt7oqi.js} +1 -1
- package/dist/assets/{learning-lW9nBGjT.js → learning-BUx9jo91.js} +1 -1
- package/dist/assets/{pages-shOT9IVe.js → pages-D43zM2UW.js} +1 -1
- package/dist/assets/{project-files-D_K1N0JF.js → project-files-BX3zZCcl.js} +1 -1
- package/dist/assets/{publish-Bxe4ZCqe.js → publish-DatierL2.js} +1 -1
- package/dist/assets/{pull-requests-CQvk0TeH.js → pull-requests-DNkOjcuy.js} +1 -1
- package/dist/assets/{repository-CI2CqDwF.js → repository-0EKOcyTL.js} +1 -1
- package/dist/assets/{settings-DIVrFrs4.js → settings-DbR9JIc3.js} +1 -1
- package/dist/assets/{studioGateApi-UqmdV50W.js → studioGateApi-B9EUTtMx.js} +1 -1
- package/dist/assets/{studioUrls-k_pQIuPs.js → studioUrls-BR4ZL-TN.js} +1 -1
- package/dist/assets/{useArchivedVibe64Sessions-BkWrTOzg.js → useArchivedVibe64Sessions-B8VDhA9F.js} +1 -1
- package/dist/assets/useAssistantAttachments-C9kAnWqw.js +2 -0
- package/dist/assets/useCommand-CfqxMb4C.js +1 -0
- package/dist/assets/{useEndpointResource-DZTjr9gg.js → useEndpointResource-BwGXpV2u.js} +1 -1
- package/dist/assets/{useUiFeedback-BU4NyMq8.js → useUiFeedback-8Wvg7A_S.js} +1 -1
- package/dist/assets/{useVibe64ConversationLog-BADhWyNY.js → useVibe64ConversationLog-7wgLlKG5.js} +2 -2
- package/dist/assets/useVibe64Learning-DkneotqS.js +5 -0
- package/dist/assets/{useVibe64SessionData-DvFvAJC-.js → useVibe64SessionData-DuJ-dHR8.js} +1 -1
- package/dist/assets/{useVibe64SessionSelection-BukDTAxb.js → useVibe64SessionSelection-BwjtqeIR.js} +1 -1
- package/dist/assets/{vibe64FileUpload-BDkcaUyk.js → vibe64FileUpload-D_rOa1R8.js} +1 -1
- package/dist/assets/{vibe64RepositoryRealtime-DX2DEqIz.js → vibe64RepositoryRealtime-CVGNqwxz.js} +1 -1
- package/dist/assets/vibe64SavedEnvValues-CCZew0j7.js +1 -0
- package/dist/assets/{vibe64SessionFocus-CzuP3qPT.js → vibe64SessionFocus-B4diopOJ.js} +1 -1
- package/dist/index.html +23 -23
- package/docs/colleague-usage/ai-accounts.md +7 -7
- package/docs/colleague-usage/ai-model-setups.md +1 -1
- package/docs/colleague-usage/ai-tasks.md +2 -1
- package/docs/colleague-usage/auto-workflow.md +67 -44
- package/docs/colleague-usage/chat-settings.md +115 -114
- package/docs/colleague-usage/coding-agent-goal-pause.md +34 -12
- package/docs/colleague-usage/coding-agent-goals.md +33 -16
- package/docs/colleague-usage/coding-agent-history.md +9 -0
- package/docs/colleague-usage/coding-agent-questions.md +7 -0
- package/docs/colleague-usage/coding-agent-recovery.md +3 -0
- package/docs/colleague-usage/coding-agents.md +10 -4
- package/docs/colleague-usage/connected-repositories.md +4 -1
- package/docs/colleague-usage/developing-vibe64.md +11 -5
- package/docs/colleague-usage/development-env.md +74 -32
- package/docs/colleague-usage/github-work.md +39 -5
- package/docs/colleague-usage/integrations.md +2 -2
- package/docs/colleague-usage/main-chat-approvals.md +7 -6
- package/docs/colleague-usage/message-delivery-recovery.md +1 -1
- package/docs/colleague-usage/passes.md +260 -0
- package/docs/colleague-usage/plans.md +27 -16
- package/docs/colleague-usage/session-timeline.md +93 -0
- package/docs/colleague-usage/temporary-chats.md +6 -0
- package/docs/colleague-usage/ui-pass.md +30 -32
- package/docs/colleague-usage/workspace-preparation.md +51 -0
- package/node_modules/@jskit-ai/assistant-core/CHANGELOG.md +12 -0
- package/node_modules/@jskit-ai/assistant-core/locales/en.json +2 -0
- package/node_modules/@jskit-ai/assistant-core/package.json +1 -1
- package/node_modules/@jskit-ai/assistant-runtime/CHANGELOG.md +5 -0
- package/node_modules/@jskit-ai/assistant-runtime/package.json +1 -1
- package/node_modules/@jskit-ai/assistant-voice/package.json +1 -1
- package/node_modules/@jskit-ai/connector-google-calendar/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/connector-google-calendar/package.json +1 -1
- package/node_modules/@jskit-ai/connector-google-calendar/patterns/calendar-cli/example/.env.example +1 -0
- package/node_modules/@jskit-ai/connectors-catalog/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/connectors-catalog/package.json +1 -1
- package/node_modules/@jskit-ai/connectors-catalog/patterns/api-key-connection/PATTERN.md +4 -1
- package/node_modules/@jskit-ai/connectors-catalog/patterns/oauth-connection/PATTERN.md +3 -1
- package/node_modules/@jskit-ai/connectors-core/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/connectors-core/README.md +3 -1
- package/node_modules/@jskit-ai/connectors-core/package.json +1 -1
- package/node_modules/@jskit-ai/http-runtime/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/http-runtime/package.json +1 -1
- package/node_modules/@jskit-ai/kernel/CHANGELOG.md +6 -0
- package/node_modules/@jskit-ai/kernel/package.json +3 -4
- package/node_modules/@jskit-ai/payments-core/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/payments-core/locales/en.json +1 -1
- package/node_modules/@jskit-ai/payments-core/package.json +1 -1
- package/node_modules/@jskit-ai/realtime/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/realtime/package.json +1 -1
- package/node_modules/@jskit-ai/realtime/patterns/realtime-application/example/.env.example +1 -0
- package/node_modules/@jskit-ai/resource-core/package.json +1 -1
- package/node_modules/@jskit-ai/uploads-runtime/package.json +1 -1
- package/node_modules/@local/vibe64-core/package.json +2 -0
- package/node_modules/@local/vibe64-execution/package.json +1 -0
- package/node_modules/@local/vibe64-execution/src/host/execHelper.js +715 -666
- package/node_modules/@local/vibe64-genesis/bin/vibe64-genesis-host-context +989 -847
- package/node_modules/@local/vibe64-genesis/src/server/agentSpecs.js +129 -107
- package/node_modules/@local/vibe64-genesis/src/server/index.js +632 -614
- package/node_modules/@local/vibe64-genesis/src/server/packaging.js +27 -28
- package/node_modules/@local/vibe64-genesis/src/server/promptContext.js +172 -162
- package/node_modules/@local/vibe64-runtime/package.json +1 -0
- package/node_modules/@local/vibe64-runtime/src/server/codexAppServerProcess.js +1042 -898
- package/node_modules/@local/vibe64-terminals/package.json +2 -1
- package/node_modules/@local/vibe64-terminals/src/server/opencodeSessionEnvironmentPlugin.js +560 -420
- package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +586 -581
- package/package.json +15 -15
- package/server.bundle.mjs +44592 -44103
- package/dist/assets/_slug_-7Oo7pGKn.js +0 -14
- package/dist/assets/_slug_-BaxjtsgP.css +0 -1
- package/dist/assets/assistantRouting-B9cub38g.js +0 -3
- package/dist/assets/conversation-D7T_us2O.js +0 -1
- package/dist/assets/index-DSyb-mRJ.css +0 -1
- package/dist/assets/index-JBqyg0mr.js +0 -134
- package/dist/assets/useAssistantAttachments-DqlNFiha.js +0 -2
- package/dist/assets/useCommand-D-MIMmhp.js +0 -1
- package/dist/assets/useVibe64Learning-CbsI-XHB.js +0 -5
- package/dist/assets/vibe64SavedEnvValues-CgfMvj_h.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.shell-page-title[data-v-6a88f2bb]{color:rgb(var(--v-theme-on-surface));letter-spacing:0;text-overflow:ellipsis;white-space:nowrap;outline:none;margin:0;font-size:1.375rem;font-weight:400;line-height:1.75rem;overflow:clip visible}.vibe64-team-ai-gate[data-v-ee8c10e2]{justify-items:start;gap:.75rem;width:100%;max-width:min(36rem,100%);margin-inline:auto;padding:1.5rem;display:grid}.vibe64-team-ai-gate__icon[data-v-ee8c10e2]{background:rgba(var(--v-theme-primary), .12);color:rgb(var(--v-theme-primary));border-radius:50%;justify-content:center;align-items:center;width:3rem;height:3rem;display:inline-flex}.vibe64-team-ai-gate__title[data-v-ee8c10e2]{letter-spacing:0;margin:0;font-size:1.25rem;font-weight:760;line-height:1.2}.vibe64-team-ai-gate__text[data-v-ee8c10e2]{color:rgba(var(--v-theme-on-surface), .72);margin:0}.vibe64-team-ai-gate__ask[data-v-ee8c10e2]{background:rgba(var(--v-theme-on-surface), .05);border:1px solid rgba(var(--v-theme-on-surface), .12);border-radius:.5rem;width:100%;margin:.25rem 0;padding:.85rem 1rem;font-weight:600}.vibe64-team-ai-gate__actions[data-v-ee8c10e2]{flex-wrap:wrap;gap:.5rem;display:flex}@media (width<=599px){.vibe64-team-ai-gate[data-v-ee8c10e2]{padding:1.25rem 1rem}.vibe64-team-ai-gate__actions[data-v-ee8c10e2]{width:100%;display:grid}}.project-selection-gate[data-v-bc33f920]{align-content:start;gap:.85rem;min-width:0;display:grid}.project-selection-gate__deleted[data-v-bc33f920]{justify-items:start;gap:.75rem;width:100%;max-width:min(36rem,100%);margin-inline:auto;padding:1.25rem;display:grid}.project-selection-gate__learning-note[data-v-bc33f920]{background:var(--v64-learning-container);color:var(--v64-on-learning-container,inherit);border-radius:.5rem;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem .75rem;padding:.5rem .75rem;display:flex}.project-selection-gate__team-ai[data-v-bc33f920]{background:rgb(var(--v-theme-warning-container));border:1px solid rgba(var(--v-theme-warning), .35);color:rgb(var(--v-theme-on-warning-container));border-radius:.5rem;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;padding:.75rem 1rem;display:flex}.project-selection-gate__team-ai-text[data-v-bc33f920]{gap:.15rem;min-width:min(100%,16rem);display:grid}.project-selection-gate__team-ai-text span[data-v-bc33f920]{opacity:.8}.project-selection-gate__project-name[data-v-bc33f920]{align-items:center;gap:.5rem;display:inline-flex}.project-selection-gate__deleted-text[data-v-bc33f920]{color:rgba(var(--v-theme-on-surface), .72);margin:0}.project-selection-gate__loading[data-v-bc33f920]{flex:auto;min-height:18rem}.project-selection-gate__picker[data-v-bc33f920]{gap:1rem;width:100%;max-width:min(48rem,100%);margin-inline:auto;padding:1rem;display:grid}.project-selection-gate__header[data-v-bc33f920]{justify-content:space-between;align-items:start;min-width:0;display:flex}.project-selection-gate__eyebrow[data-v-bc33f920]{color:rgba(var(--v-theme-on-surface), .62);letter-spacing:0;text-transform:uppercase;margin:0 0 .15rem;font-size:.76rem;font-weight:680}.project-selection-gate__title[data-v-bc33f920]{letter-spacing:0;margin:0;font-size:1.25rem;font-weight:760;line-height:1.15}.project-selection-gate__path[data-v-bc33f920]{color:rgba(var(--v-theme-on-surface), .62);overflow-wrap:anywhere;margin:.35rem 0 0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.82rem}.project-selection-gate__list[data-v-bc33f920]{gap:.45rem;display:grid}.project-selection-gate__project[data-v-bc33f920]{text-transform:none;justify-content:flex-start;min-height:3.1rem}.project-selection-gate__project[data-v-bc33f920] .v-btn__content{place-items:flex-start start;gap:.1rem;min-width:0;display:grid}.project-selection-gate__project-path[data-v-bc33f920]{color:rgba(var(--v-theme-on-surface), .62);text-overflow:ellipsis;white-space:nowrap;max-width:min(38rem,70vw);font-size:.75rem;overflow:hidden}.project-selection-gate__create[data-v-bc33f920]{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.65rem;display:grid}@media (width<=640px){.project-selection-gate__create[data-v-bc33f920]{grid-template-columns:1fr}.project-selection-gate__team-ai .v-btn[data-v-bc33f920]{width:100%}}.local-remotes[data-v-b6fd537f]{flex:none;min-width:0}.local-remotes__branch[data-v-b6fd537f]{min-width:0;max-width:100%}.local-remotes__branch-name[data-v-b6fd537f]{text-overflow:ellipsis;max-width:8rem;display:block;overflow:hidden}.local-remotes__status[data-v-b6fd537f]{color:rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity));align-items:center;gap:.375rem;display:flex}.local-remotes__count[data-v-b6fd537f]{font-variant-numeric:tabular-nums}.local-remotes__details[data-v-b6fd537f]{grid-template-columns:auto minmax(0,1fr);gap:.75rem 1rem;display:grid}.local-remotes__details dt[data-v-b6fd537f]{color:rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity))}.local-remotes__details dd[data-v-b6fd537f],.local-remotes__message[data-v-b6fd537f]{overflow-wrap:anywhere;margin:0}.local-remotes__url[data-v-b6fd537f]{overflow-wrap:anywhere}.studio-ai-session-archive-dialog[data-v-1b95a4dd]{border:1px solid rgba(var(--v-theme-primary), .32)}.studio-ai-session-archive-dialog__title[data-v-1b95a4dd],.studio-ai-session-archive-dialog__actions[data-v-1b95a4dd]{align-items:center;gap:.55rem;display:flex}.studio-ai-session-archive-dialog__actions[data-v-1b95a4dd]{justify-content:flex-end;padding:0 1rem 1rem}.chat-modes__trigger[data-v-04e692c1]{flex-shrink:0}.chat-modes__details[data-v-04e692c1]{flex-direction:column;max-height:min(560px,75dvh);display:flex}.chat-modes__details-body[data-v-04e692c1]{min-height:0;overflow-y:auto}.chat-modes__model[data-v-04e692c1]{white-space:normal;overflow-wrap:anywhere}.studio-autopilot__composer-delivery[data-v-8610e218]{flex-shrink:0;align-items:center;gap:.25rem;min-width:0;margin-inline-start:auto;display:flex}.studio-autopilot__composer-action[data-v-8610e218]{flex-shrink:0}@container studio-chat-pane (width<=32rem){.studio-autopilot__composer-delivery[data-v-8610e218]{gap:0}.studio-autopilot__composer-action[data-v-8610e218]{width:clamp(2rem,10cqi,2.5rem)}}.ai-task-chat[data-v-b7eed092]{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);min-width:0;height:100%;min-height:0;display:grid;container:studio-chat-pane/inline-size}.ai-task-chat__ended[data-v-b7eed092]{color:rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity));text-align:center;margin:0;padding:.5rem 1rem;font-size:.875rem}.ai-task-chat__loading[data-v-b7eed092]{color:rgba(var(--v-theme-on-surface), .72);place-self:center;margin:0}.ai-task-chat__composer[data-v-b7eed092]{flex:none;width:calc(100% - 1rem);margin:0 auto .5rem}.ai-task-chat__composer-actions[data-v-b7eed092]{align-items:center;gap:.25rem;width:100%;min-width:0;display:flex}.ai-task-chat__feedback[data-v-b7eed092]{flex:none;min-width:0;max-height:min(12dvh,6rem);overflow-y:auto}.ai-task-chat__error[data-v-b7eed092]{color:rgb(var(--v-theme-error));margin:0;padding:.3rem .55rem;font-size:.82rem}.ai-task-host__output[data-v-2609b9db]{background:rgba(var(--v-theme-on-surface), .04);white-space:pre-wrap;border-radius:.5rem;max-height:12rem;margin:0;padding:.625rem .75rem;font-size:.8125rem;overflow:auto}.setup-tools[data-v-d82209b5]{gap:var(--v64-space-2,8px);margin-top:var(--v64-space-2,8px);display:grid}.setup-tools__header[data-v-d82209b5]{gap:2px;padding-inline:2px;display:grid}.setup-tools__header strong[data-v-d82209b5]{font:var(--v64-type-title-md);font-size:.9375rem}.setup-tools__header span[data-v-d82209b5]{color:rgb(var(--v-theme-on-surface-variant));font:var(--v64-type-body-md)}.setup-tools__found[data-v-d82209b5]{color:rgb(var(--v-theme-on-surface-variant));align-items:baseline;gap:6px;margin:0;padding-inline:2px;font-size:.8125rem;display:flex}.setup-tools__found .v-icon[data-v-d82209b5]{color:rgb(var(--v-theme-success));flex:none;transform:translateY(2px)}.setup-tools__found-item[data-v-d82209b5]{margin-left:4px}.setup-tools__found-item code[data-v-d82209b5]{overflow-wrap:anywhere;background:0 0;margin-left:4px;padding:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.75rem}.vibe64-terminal-surface.vibe64-temporary-action-terminal.vibe64-temporary-action-terminal--error{border-inline-start:.25rem solid rgb(var(--v-theme-error))}.vibe64-temporary-action-terminal .vibe64-terminal-surface__header{flex-direction:column;align-items:stretch;gap:.5rem;margin-bottom:0}.vibe64-temporary-action-terminal .vibe64-terminal-surface__body{margin-top:.5rem}.vibe64-temporary-action-terminal__summary[data-v-ef863d9d]{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title status";align-items:center;gap:.5rem;min-width:0;display:grid}.vibe64-temporary-action-terminal__title[data-v-ef863d9d]{grid-area:title;font-size:.88rem}.vibe64-temporary-action-terminal__status[data-v-ef863d9d]{grid-area:status}.vibe64-temporary-action-terminal--error .vibe64-temporary-action-terminal__line[data-v-ef863d9d]{-webkit-line-clamp:3;line-clamp:3;overflow-wrap:anywhere;white-space:normal;-webkit-box-orient:vertical;flex-basis:100%;display:-webkit-box}.vibe64-temporary-action-terminal__title[data-v-ef863d9d],.vibe64-temporary-action-terminal__line[data-v-ef863d9d]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.vibe64-temporary-action-terminal__line[data-v-ef863d9d]{color:rgba(var(--v-theme-on-surface), .72);flex:1 1 0;order:-1;min-width:0;font-size:.82rem}.studio-autopilot__checkpoint-notice summary[data-v-24c593c2]{cursor:pointer}.studio-autopilot__checkpoint-details[data-v-24c593c2]{overflow-wrap:anywhere;white-space:pre-wrap;max-height:8rem;overflow:auto}.studio-autopilot__activity[data-v-24c593c2]{grid-row:2;grid-auto-rows:max-content;gap:.3rem;min-width:0;max-height:min(24dvh,12rem);padding:.35rem .5rem;display:grid;overflow:auto}.studio-autopilot__activity[data-v-24c593c2]:has(.db-server--attention){max-height:min(80dvh,52rem)}.studio-autopilot__activity[data-v-24c593c2]:has(.setup-tools:not(.setup-tools--quiet)){max-height:min(60dvh,34rem)}.studio-autopilot__activity[data-v-24c593c2]:has(.git-stand-in){max-height:min(60dvh,26rem)}.studio-autopilot__activity[data-v-24c593c2]:empty{padding:0;display:none}.studio-autopilot__connection-recovery[data-v-24c593c2]{background:rgba(var(--v-theme-primary), .08);border:1px solid rgba(var(--v-theme-primary), .24);color:rgb(var(--v-theme-on-surface));grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:.5rem;padding:.25rem .5rem;display:grid}.studio-autopilot__connection-recovery>span[data-v-24c593c2]{overflow-wrap:anywhere;min-width:0}.studio-autopilot__connection-actions[data-v-24c593c2]{flex-direction:column;align-items:flex-start;gap:.25rem;display:flex}.agent-plan-usage[data-v-c9d31ed1]{text-transform:none;max-width:100%;font-size:.7rem}.agent-plan-usage__details[data-v-c9d31ed1]{white-space:pre-line;margin-block:.5rem}.agent-plan-usage__goal-text[data-v-c9d31ed1]{white-space:pre-wrap;overflow-wrap:anywhere}.action-label-pending[data-v-150b7318]{visibility:hidden}.vibe64-routing-notice[data-v-150b7318] .v-alert__content{flex-wrap:wrap;align-items:center;gap:4px 8px;display:flex}details[data-v-150b7318]{flex:13rem;min-width:0}details[open][data-v-150b7318]{flex-basis:100%}.vibe64-routing-notice__actions[data-v-150b7318]{flex:none;max-width:100%}.vibe64-routing-notice__actions[data-v-150b7318] .v-btn{padding-inline:8px}summary[data-v-150b7318]{cursor:pointer;overflow-wrap:anywhere;align-content:center;min-height:32px}@media (pointer:coarse){summary[data-v-150b7318]{min-height:44px}}.work-plan-control[data-v-eecf64a4]{flex:none;align-items:center;display:inline-flex}.work-plan-content[data-v-eecf64a4]{overflow-wrap:anywhere;min-height:0}.work-plan-archive-context[data-v-eecf64a4]{flex:none;align-items:center;gap:.5rem;display:flex}.work-plan-archive-copy[data-v-eecf64a4]{min-width:0}.work-plan-history-title[data-v-eecf64a4]{white-space:normal;overflow-wrap:anywhere;flex:1;min-width:0}.work-plan-empty[data-v-eecf64a4]{flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:12rem;display:flex}.work-plan-item[data-v-eecf64a4]{align-items:flex-start;gap:.75rem;margin-block:.5rem;display:flex}.work-plan-item input[data-v-eecf64a4]{opacity:1;width:1.1rem;height:1.1rem;accent-color:rgb(var(--v-theme-primary));flex:none;margin-top:.25rem}.work-plan-item[data-v-eecf64a4]>:last-child{flex:1;min-width:0}.starred-menu[data-v-7ad67948]{flex-direction:column;gap:.5rem;width:min(25rem,100vw - 1rem);max-height:min(32rem,75dvh);padding:.75rem;display:flex}.starred-menu__header[data-v-7ad67948]{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.5rem;display:grid}.starred-menu__list[data-v-7ad67948]{overscroll-behavior:contain;gap:.5rem;min-height:0;display:grid;overflow-y:auto}.starred-menu__heading[data-v-7ad67948]{letter-spacing:.06em;text-transform:uppercase;color:rgba(var(--v-theme-on-surface), .7);margin:0;padding:0 .5rem;font-size:.75rem;font-weight:600}@media (width<=599px){.starred-menu[data-v-7ad67948]{width:100%;padding-bottom:max(.75rem, env(safe-area-inset-bottom))}}.vibe64-passes__trigger[data-v-43e9ea12]{flex-shrink:0}.vibe64-passes__header[data-v-43e9ea12]{padding-bottom:0}.vibe64-passes__subtitle[data-v-43e9ea12]{white-space:normal}.vibe64-passes__body[data-v-43e9ea12]{max-height:min(60vh,32rem);padding-top:.5rem;overflow-y:auto}.vibe64-passes__note[data-v-43e9ea12]{margin-bottom:.5rem}.vibe64-passes__list[data-v-43e9ea12]{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.vibe64-passes__row[data-v-43e9ea12]{border-top:1px solid rgb(var(--v-theme-outline-variant));flex-direction:column;gap:.5rem;padding:.625rem 0;display:flex}.vibe64-passes__row[data-v-43e9ea12]:first-child{border-top:0}.vibe64-passes__text[data-v-43e9ea12]{flex-direction:column;gap:.125rem;min-width:0;display:flex}.vibe64-passes__ticks[data-v-43e9ea12]{border:0;flex-wrap:wrap;gap:0 .75rem;min-width:0;margin:0;padding:0;display:flex}.vibe64-passes__ticks legend[data-v-43e9ea12]{width:100%;margin-bottom:.125rem;padding:0}.vibe64-passes__after-plan[data-v-43e9ea12]{flex-wrap:wrap;align-items:center;gap:0 .75rem;display:flex}.vibe64-passes__tick[data-v-43e9ea12]{flex:0 auto}.vibe64-passes__runs[data-v-43e9ea12]{flex-wrap:wrap;gap:.5rem;display:flex}.vibe64-passes__run[data-v-43e9ea12]{max-width:100%;height:auto;min-height:var(--v-btn-height)}.vibe64-passes__run[data-v-43e9ea12] .v-btn__content{white-space:normal}.vibe64-passes__muted[data-v-43e9ea12]{color:rgb(var(--v-theme-on-surface-variant))}.vibe64-pass-suggestion[data-v-e8032c7b] .v-alert__content{flex-wrap:wrap;align-items:center;gap:4px 8px;display:flex}.vibe64-pass-suggestion__text[data-v-e8032c7b]{flex:14rem;min-width:0;margin:0}.vibe64-pass-suggestion__actions[data-v-e8032c7b]{flex-wrap:wrap;gap:4px;display:flex}.vibe64-pass-suggestion__run[data-v-e8032c7b]{max-width:100%;height:auto;min-height:calc(var(--v-btn-height) - 8px)}.vibe64-pass-suggestion__run[data-v-e8032c7b] .v-btn__content{white-space:normal}.vibe64-approvals[data-v-69fa8c70]{min-width:0}.vibe64-approvals__stack[data-v-69fa8c70]{max-height:min(40vh,26rem);padding:0 0 .5rem;display:block;overflow-y:auto}.vibe64-approvals--phone .vibe64-approvals__stack[data-v-69fa8c70]{max-height:none;padding:0}.vibe64-approvals__panel[data-v-69fa8c70]{background:0 0}.vibe64-approvals__panel--sheet[data-v-69fa8c70]{background:rgb(var(--v-theme-surface));max-height:85vh;padding:0 1rem calc(1rem + env(safe-area-inset-bottom));overflow-y:auto}.vibe64-approvals__sheet-header[data-v-69fa8c70]{justify-content:space-between;align-items:center;min-height:3.5rem;display:flex}.vibe64-approvals__list[data-v-69fa8c70]{flex-direction:column;gap:.5rem;display:flex}.vibe64-approvals__card[data-v-69fa8c70]{padding:.75rem}.vibe64-approvals__head[data-v-69fa8c70]{align-items:center;gap:.625rem;min-width:0;display:flex}.vibe64-approvals__avatar[data-v-69fa8c70]{font-weight:600}.vibe64-approvals__who[data-v-69fa8c70]{flex:auto;min-width:0}.vibe64-approvals__text[data-v-69fa8c70]{overflow-wrap:anywhere;white-space:pre-wrap;margin:.5rem 0 0}.vibe64-approvals__note[data-v-69fa8c70]{margin:.375rem 0 0}.vibe64-approvals__draft[data-v-69fa8c70]{margin-top:.5rem}.vibe64-approvals__actions[data-v-69fa8c70]{flex-wrap:wrap;justify-content:flex-end;gap:.5rem;margin-top:.5rem;display:flex}.vibe64-approvals__actions--owner[data-v-69fa8c70]{justify-content:flex-start}.vibe64-approvals--phone .vibe64-approvals__actions[data-v-69fa8c70]{flex-direction:column-reverse}.vibe64-approvals--phone .vibe64-approvals__actions--owner[data-v-69fa8c70]{flex-direction:column}.vibe64-approvals__decided[data-v-69fa8c70]{flex-direction:column;gap:.25rem;margin:0;padding:0 .25rem;list-style:none;display:flex}.vibe64-approvals__row-line[data-v-69fa8c70]{align-items:center;gap:.5rem;min-width:0;min-height:2rem;display:flex}.vibe64-approvals__row-text[data-v-69fa8c70]{overflow-wrap:anywhere;flex:auto;min-width:0}.vibe64-approvals__show[data-v-69fa8c70]{flex-shrink:0}.vibe64-approvals__excerpt[data-v-69fa8c70]{color:rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity));min-width:0;margin:0 0 .25rem 1.625rem}p.vibe64-approvals__excerpt[data-v-69fa8c70],.vibe64-approvals__excerpt summary[data-v-69fa8c70]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.vibe64-approvals__excerpt summary[data-v-69fa8c70]{cursor:pointer;display:block}.vibe64-approvals__excerpt[open] summary[data-v-69fa8c70]{overflow-wrap:anywhere;white-space:pre-wrap}.vibe64-approvals__quote[data-v-69fa8c70]{border-inline-start:3px solid rgba(var(--v-theme-error), .5);color:rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity));overflow-wrap:anywhere;margin:0 0 .25rem 1.625rem;padding-inline-start:.5rem}.vibe64-approvals__bar[data-v-69fa8c70]{background:rgba(var(--v-theme-secondary), .08);border:1px solid rgba(var(--v-theme-secondary), .35);color:rgb(var(--v-theme-on-surface));text-align:start;border-radius:12px;align-items:center;gap:.5rem;width:100%;min-height:48px;margin-bottom:.5rem;padding:0 .75rem;display:flex}.vibe64-approvals__bar-label[data-v-69fa8c70]{flex:auto;min-width:0;font-weight:500}.vibe64-temporary-ai__recovery-row[data-v-a85ab0b5]:not(:empty){max-height:min(20dvh,8rem);padding:.35rem .55rem 0;overflow-y:auto}.vibe64-temporary-ai__unread[data-v-e679a29f]{background:rgb(var(--v-theme-primary));border-radius:50%;flex:0 0 8px;height:8px}.vibe64-temporary-ai__tabs[data-v-e679a29f]{--vibe64-temporary-ai-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");align-items:flex-start;gap:.25rem;padding:.25rem .35rem;display:flex}.vibe64-temporary-ai__task-tabs[data-v-e679a29f]{scrollbar-width:thin;flex:auto;gap:.25rem;min-width:0;margin:-.25rem -.25rem -.25rem 0;padding:.25rem;display:flex;overflow-x:auto}.vibe64-temporary-ai__tab[data-v-e679a29f]{border:1px solid rgb(var(--v-theme-outline-variant));border-radius:var(--v64-shape-full);color:rgb(var(--v-theme-on-surface-variant));isolation:isolate;flex:none;align-items:center;max-width:100%;min-height:2rem;padding-left:.15rem;display:inline-flex;position:relative}.vibe64-temporary-ai__tab-select[data-v-e679a29f]{color:inherit;cursor:pointer;background:0 0;border:0;align-self:stretch;align-items:center;gap:.35rem;min-width:0;padding:.2rem .35rem .2rem .55rem;font-weight:500;display:inline-flex}.vibe64-temporary-ai__tab-select[data-v-e679a29f]:after{border-radius:var(--v64-shape-full);content:"";opacity:0;pointer-events:none;transition:opacity var(--v64-duration-short) var(--v64-ease-standard);z-index:-1;background:currentColor;position:absolute;inset:0}.vibe64-temporary-ai__tab-select[data-v-e679a29f]:hover:after{opacity:var(--v64-state-hover)}.vibe64-temporary-ai__tab-select[data-v-e679a29f]:focus-visible:after{opacity:var(--v64-state-focus)}.vibe64-temporary-ai__tab-select[data-v-e679a29f]:active:after{opacity:var(--v64-state-pressed)}.vibe64-temporary-ai__tab-select>span[data-v-e679a29f]:first-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.vibe64-temporary-ai__tab-rename[data-v-e679a29f],.vibe64-temporary-ai__tab-close[data-v-e679a29f]{flex:none}.vibe64-temporary-ai__tab-select[data-v-e679a29f]:focus-visible{outline:none}.vibe64-temporary-ai__tab[data-v-e679a29f]:has(>.vibe64-temporary-ai__tab-select:focus-visible){outline:var(--v64-focus-ring-width) solid rgb(var(--v-theme-primary));outline-offset:var(--v64-focus-ring-offset)}.vibe64-temporary-ai__tab--active[data-v-e679a29f]{background:rgb(var(--v-theme-secondary-container));color:rgb(var(--v-theme-on-secondary-container));border-color:#0000}.vibe64-temporary-ai__tab--active>.vibe64-temporary-ai__tab-select[data-v-e679a29f]:before{content:"";height:1.125rem;-webkit-mask:var(--vibe64-temporary-ai-check) center / contain no-repeat;-webkit-mask:var(--vibe64-temporary-ai-check) center / contain no-repeat;mask:var(--vibe64-temporary-ai-check) center / contain no-repeat;background:currentColor;flex:none;width:1.125rem}.vibe64-temporary-ai__new-task[data-v-e679a29f]{flex:none}.vibe64-temporary-ai__tabs-spacer[data-v-e679a29f]{flex:auto}.vibe64-temporary-ai__busy[data-v-e679a29f]{background:rgb(var(--v-theme-primary));border-radius:50%;width:.45rem;height:.45rem}@media (pointer:coarse){.vibe64-temporary-ai__tab-select[data-v-e679a29f]{min-width:3rem!important;min-height:3rem!important}}.vibe64-temporary-ai__composer-actions[data-v-82bf2fa3]{align-items:center;gap:.25rem;width:100%;min-width:0;display:flex}.vibe64-temporary-ai[data-v-82bf2fa3]{background:rgb(var(--v-theme-surface));border:1px solid rgb(var(--v-theme-outline-variant));box-shadow:0 14px 38px rgba(var(--v-theme-shadow), .22);z-index:12;border-radius:12px;grid-row:3/-1;grid-template-rows:auto auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);min-height:0;display:grid;position:absolute;inset:0 .3rem .3rem;overflow:hidden}.vibe64-temporary-ai[data-v-82bf2fa3]:focus-visible{outline:2px solid rgb(var(--v-theme-primary));outline-offset:2px}.vibe64-temporary-ai__composer[data-v-82bf2fa3]{flex:none}.vibe64-temporary-ai__error[data-v-82bf2fa3]{color:rgba(var(--v-theme-on-surface), .66);font-size:.82rem}.vibe64-temporary-ai__feedback[data-v-82bf2fa3]{flex:none;min-width:0;max-height:min(12dvh,6rem);overflow-y:auto}.vibe64-temporary-ai__error[data-v-82bf2fa3]{color:rgb(var(--v-theme-error));padding:.3rem .55rem}@media (width<=720px){.vibe64-temporary-ai[data-v-82bf2fa3]{z-index:30;border:0;border-radius:0;inset:0}}.studio-autopilot__reasoning-dots[data-v-92094c65]{clip-path:inset(0 66.666% 0 0);animation:1.5s step-end infinite reasoning-dots-92094c65;display:inline-block}@keyframes reasoning-dots-92094c65{33%{clip-path:inset(0 33.333% 0 0)}66%{clip-path:inset(0)}}@media (prefers-reduced-motion:reduce){.studio-autopilot__reasoning-dots[data-v-92094c65]{clip-path:none;animation:none}}.studio-autopilot__conversation[data-v-92094c65]{grid-row:3;min-width:0;min-height:0}.studio-autopilot__composer[data-v-92094c65]{border-top:1px solid rgb(var(--v-theme-outline-variant));box-sizing:border-box;flex:none;width:100%;min-width:0;max-width:100%;padding:4px;overflow:hidden}.studio-autopilot__composer-actions[data-v-92094c65]{align-items:center;gap:.25rem clamp(0rem,4% - 1.25rem,.5rem);width:100%;min-width:0;display:flex}.studio-autopilot__approval-send[data-v-92094c65]{flex-shrink:0;margin-inline-start:auto}.studio-autopilot__settings-access[data-v-92094c65]{grid-column:1/-1}.studio-autopilot__composer-action[data-v-92094c65]{flex-shrink:0}.studio-autopilot__assistant-button[data-v-92094c65]{align-items:center;display:flex;position:relative}.studio-autopilot__assistant-button-label[data-v-92094c65]{z-index:1;border:1px solid rgba(var(--v-theme-on-surface), .25);background:rgb(var(--v-theme-surface-light));color:rgb(var(--v-theme-on-surface));white-space:nowrap;letter-spacing:0;text-transform:none;border-radius:3px;padding:0 4px;font-size:9px;font-weight:600;line-height:11px;position:absolute;top:100%;left:50%;transform:translate(max(-50%,-2.5rem))}@container studio-chat-pane (width<=32rem){.studio-autopilot__composer-actions[data-v-92094c65]{gap:0}.studio-autopilot__composer-actions .studio-autopilot__composer-action[data-v-92094c65]{width:clamp(2rem,10cqi,2.5rem)}.studio-autopilot__composer-actions[data-v-92094c65] button{flex-shrink:1;min-width:min-content;padding-inline:.25rem}}.studio-autopilot__composer-menu[data-v-92094c65]{flex-direction:column;gap:.4rem;max-width:calc(100vw - 24px);display:flex}.studio-autopilot__voice-feedback[data-v-92094c65]{flex:100%;min-width:0}.vibe64-save-target[data-v-db9660a0]{overflow-wrap:anywhere;flex-wrap:wrap;align-items:center;gap:.2rem .35rem;max-width:100%;display:inline-flex}.vibe64-save-target__repository[data-v-db9660a0]{flex:1 0 100%}.vibe64-save-target__separator[data-v-db9660a0]{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.vibe64-save-target__branch[data-v-db9660a0]{border:1px solid color-mix(in srgb, currentColor 45%, transparent);border-radius:999px;max-width:100%;padding:0 .5rem;font-weight:600;line-height:1.35}.vibe64-save-target--off-main .vibe64-save-target__branch[data-v-db9660a0]{background:rgb(var(--v-theme-warning));color:rgb(var(--v-theme-on-warning));border-color:#0000}.vibe64-save-target__note[data-v-db9660a0]{font-weight:600}.project-preview[data-v-513e8b8e]{flex-direction:column;min-width:0;height:100%;min-height:0;display:flex}.project-preview__output[data-v-513e8b8e]{flex:1;min-height:0}.project-preview__warning[data-v-513e8b8e]{overflow-wrap:anywhere;flex:none;max-height:35%;overflow-y:auto}.project-preview__warning p[data-v-513e8b8e]{margin:.25rem 0}.project-preview__warning-actions[data-v-513e8b8e]{flex-wrap:wrap;align-items:center;gap:.25rem .5rem;margin-top:.25rem;display:flex}.project-preview__warning-actions button[data-v-513e8b8e]:disabled{opacity:.6}.project-onboarding[data-v-513e8b8e]{width:min(100%,52rem);margin:auto;padding:clamp(1rem,3vw,2.5rem);overflow-y:auto}.project-onboarding h2[data-v-513e8b8e]{margin-bottom:1rem;font-size:1.6rem;line-height:1.25}.project-onboarding p[data-v-513e8b8e]{margin-bottom:1.25rem;line-height:1.6}.project-onboarding__eyebrow[data-v-513e8b8e]{letter-spacing:.06em;text-transform:uppercase;opacity:.65;font-size:.8rem;font-weight:700}.project-onboarding__group[data-v-513e8b8e]{margin-block:1.5rem}.project-onboarding__group h3[data-v-513e8b8e]{margin-bottom:.75rem}.project-onboarding__choices[data-v-513e8b8e]{grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem;display:grid}.project-onboarding__choice[data-v-513e8b8e]{text-align:left;border:1px solid rgba(var(--v-theme-on-surface), .16);background:rgb(var(--v-theme-surface));color:inherit;border-radius:1rem;flex-direction:column;gap:.7rem;padding:1.25rem;display:flex}.project-onboarding__choice[data-v-513e8b8e]:not(:disabled):hover{border-color:rgb(var(--v-theme-primary));background:rgba(var(--v-theme-primary), .05)}.project-onboarding__choice[data-v-513e8b8e]:focus-visible{outline:2px solid rgb(var(--v-theme-primary));outline-offset:3px}.project-onboarding__choice[data-v-513e8b8e]:disabled{opacity:.55}.project-onboarding__choice span[data-v-513e8b8e]{font-size:.9rem;line-height:1.5}.project-onboarding__choose[data-v-513e8b8e]{color:rgb(var(--v-theme-primary));margin-top:auto;padding-top:.5rem;font-weight:600}.project-onboarding__actions[data-v-513e8b8e]{flex-wrap:wrap;gap:.75rem;display:flex}.vibe64-learning-finished[data-v-570dccf9]{gap:var(--v64-space-3,12px);max-width:40rem;padding:var(--v64-space-6,32px) var(--v64-space-5,24px);justify-items:start;max-height:100%;margin:0 auto;display:grid;overflow-y:auto}.vibe64-learning-finished[data-v-570dccf9]>*{max-width:100%;margin:0}.vibe64-learning-finished__mark[data-v-570dccf9]{color:rgb(var(--v-theme-success))}.vibe64-learning-finished__eyebrow[data-v-570dccf9]{font:var(--v64-type-label-md,500 .75rem/1rem system-ui, sans-serif);letter-spacing:.06em;text-transform:uppercase;color:rgb(var(--v-theme-on-surface-variant))}.vibe64-learning-finished h2[data-v-570dccf9]{font:var(--v64-type-headline-sm,600 1.5rem/2rem system-ui, sans-serif);overflow-wrap:anywhere}.vibe64-learning-finished__hint[data-v-570dccf9]{color:rgb(var(--v-theme-on-surface-variant));align-items:center;display:flex}.vibe64-learning-finished__actions[data-v-570dccf9]{gap:var(--v64-space-2,8px);flex-wrap:wrap;display:flex}.vibe64-learning-finished__error[data-v-570dccf9]{color:rgb(var(--v-theme-error))}.vibe64-learning-finished .v-btn[data-v-570dccf9]{letter-spacing:0;text-transform:none}.vibe64-training-visual[data-v-ec1308da]{gap:var(--v64-space-2,8px);flex-direction:column;min-width:0;display:flex}.vibe64-training-visual__frame[data-v-ec1308da]{border:1px solid rgb(var(--v-theme-outline-variant));border-radius:var(--v64-shape-lg,16px);background:rgb(var(--v-theme-surface-container-lowest));box-shadow:var(--v64-elevation-1);animation:vibe64-training-visual-rise-ec1308da var(--v64-duration-long,.5s) var(--v64-ease-emphasized-decelerate,ease-out);overflow:hidden}.vibe64-training-visual__bar[data-v-ec1308da]{align-items:center;gap:var(--v64-space-2,8px);min-height:40px;padding:0 var(--v64-space-4,16px);background:rgb(var(--v-theme-surface-container));border-bottom:1px solid rgb(var(--v-theme-outline-variant));display:flex}.vibe64-training-visual__bar-icon[data-v-ec1308da]{color:rgb(var(--v-theme-primary));flex:none}.vibe64-training-visual__bar-title[data-v-ec1308da]{text-overflow:ellipsis;white-space:nowrap;min-width:0;font:var(--v64-type-label-lg,500 .875rem/1.25rem system-ui, sans-serif);overflow:hidden}.vibe64-training-visual__canvas[data-v-ec1308da]{position:relative}.vibe64-training-visual iframe[data-v-ec1308da]{border:0;width:100%;height:min(60vh,32rem);min-height:16rem;display:block}.vibe64-training-visual__loading[data-v-ec1308da]{position:absolute;inset:0}.vibe64-training-visual p[data-v-ec1308da]{overflow-wrap:anywhere;margin:0}.vibe64-training-visual__caption[data-v-ec1308da]{padding:var(--v64-space-3,12px) var(--v64-space-4,16px);border-radius:var(--v64-shape-md,12px);border-inline-start:4px solid var(--v64-learning);background:rgb(var(--v-theme-surface-container-low))}.vibe64-training-visual__error[data-v-ec1308da]{align-items:center;gap:var(--v64-space-3,12px);padding:var(--v64-space-3,12px) var(--v64-space-4,16px);border-radius:var(--v64-shape-lg,16px);background:rgb(var(--v-theme-error-container));color:rgb(var(--v-theme-on-surface));flex-wrap:wrap;display:flex}.vibe64-training-visual__error p[data-v-ec1308da]{flex:12rem;min-width:0}.vibe64-training-visual__error-icon[data-v-ec1308da]{color:rgb(var(--v-theme-error));flex:none}.vibe64-training-visual__error .v-btn[data-v-ec1308da]{letter-spacing:0;text-transform:none}@keyframes vibe64-training-visual-rise-ec1308da{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.vibe64-training-visual__frame[data-v-ec1308da]{animation:none}}.vibe64-learning-step h2[data-v-ae22a592]{font:var(--v64-type-headline-sm,600 1.5rem/2rem system-ui, sans-serif);margin:0 0 var(--v64-space-3,12px);overflow-wrap:anywhere}.vibe64-learning-step__eyebrow[data-v-ae22a592]{font:var(--v64-type-label-md,500 .75rem/1rem system-ui, sans-serif);letter-spacing:.06em;text-transform:uppercase;color:rgb(var(--v-theme-on-surface-variant));margin:0 0 4px}.vibe64-learning-step__visual[data-v-ae22a592],.vibe64-learning-step__check[data-v-ae22a592]{gap:var(--v64-space-3,12px);margin-block:var(--v64-space-5,24px);justify-items:start;display:grid}.vibe64-learning-step__visual[data-v-ae22a592]>:first-child{justify-self:stretch}.vibe64-learning-step__check[data-v-ae22a592]{padding:var(--v64-space-4,16px);border-radius:var(--v64-shape-lg,16px);background:rgb(var(--v-theme-surface-container-low))}.vibe64-learning-step__check h3[data-v-ae22a592]{font:var(--v64-type-title-md,600 1.125rem/1.5rem system-ui, sans-serif);margin:0}.vibe64-learning-step__hint[data-v-ae22a592],.vibe64-learning-step__note[data-v-ae22a592]{color:rgb(var(--v-theme-on-surface-variant));margin:0}.vibe64-learning-step__status[data-v-ae22a592]{font-weight:600}.vibe64-learning-step__status.is-passed[data-v-ae22a592]{color:rgb(var(--v-theme-success))}.vibe64-learning-step__error[data-v-ae22a592]{color:rgb(var(--v-theme-error))}.vibe64-learning-step__actions[data-v-ae22a592],.vibe64-learning-step__pager[data-v-ae22a592]{gap:var(--v64-space-2,8px);margin-top:var(--v64-space-4,16px);flex-wrap:wrap;display:flex}.vibe64-learning-step__pager[data-v-ae22a592]{justify-content:space-between;align-items:center}.vibe64-learning-step__pager-end[data-v-ae22a592]{justify-content:flex-end;align-items:center;gap:var(--v64-space-2,8px);flex-wrap:wrap;margin-inline-start:auto;display:flex}.vibe64-learning-step .v-btn[data-v-ae22a592]{letter-spacing:0;text-transform:none}.vibe64-learning-reader-frame[data-v-b9bfdb4e]{height:100%;min-height:0;container-type:inline-size}.vibe64-learning-reader[data-v-b9bfdb4e]{gap:var(--v64-space-4,16px);grid-template-columns:minmax(14rem,18rem) minmax(0,1fr);height:100%;min-height:0;display:grid}.vibe64-learning-reader__alert[data-v-b9bfdb4e]{grid-column:1/-1}.vibe64-learning-reader__steps[data-v-b9bfdb4e]{min-height:0;padding:var(--v64-space-4,16px);border-inline-end:1px solid rgb(var(--v-theme-outline-variant));overflow-y:auto}.vibe64-learning-reader__steps ol[data-v-b9bfdb4e]{margin:var(--v64-space-3,12px) 0;gap:4px;padding:0;list-style:none;display:grid}.vibe64-learning-reader__lesson[data-v-b9bfdb4e]{gap:2px;margin:0;display:grid}.vibe64-learning-reader__code[data-v-b9bfdb4e]{font:var(--v64-type-label-md,500 .75rem/1rem system-ui, sans-serif);color:rgb(var(--v-theme-on-surface-variant))}.vibe64-learning-reader__step[data-v-b9bfdb4e]{border-radius:var(--v64-shape-md,12px);color:inherit;cursor:pointer;align-items:center;gap:2px var(--v64-space-3,12px);min-height:48px;padding:6px var(--v64-space-2,8px);text-align:start;background:0 0;border:0;grid-template-columns:28px minmax(0,1fr);width:100%;display:grid}.vibe64-learning-reader__step[data-v-b9bfdb4e]:hover{background:rgb(var(--v-theme-surface-container))}.vibe64-learning-reader__step.is-current[data-v-b9bfdb4e]{background:rgb(var(--v-theme-surface));box-shadow:inset 0 0 0 2px var(--v64-learning-strong);color:rgb(var(--v-theme-on-surface))}.vibe64-learning-reader__step[data-v-b9bfdb4e]:focus-visible{outline:2px solid rgb(var(--v-theme-primary));outline-offset:2px}.vibe64-learning-reader__step-mark[data-v-b9bfdb4e]{border:1.5px solid;border-radius:50%;grid-row:span 2;justify-content:center;align-items:center;width:26px;height:26px;font-size:.8rem;font-weight:700;display:inline-flex}.vibe64-learning-reader__step.is-passed .vibe64-learning-reader__step-mark[data-v-b9bfdb4e]{background:rgb(var(--v-theme-success));border-color:rgb(var(--v-theme-success));color:rgb(var(--v-theme-on-success))}.vibe64-learning-reader__step-title[data-v-b9bfdb4e]{overflow-wrap:anywhere;font-weight:600}.vibe64-learning-reader__step-status[data-v-b9bfdb4e]{color:rgb(var(--v-theme-on-surface-variant));font-size:.75rem}.vibe64-learning-reader__summary[data-v-b9bfdb4e]{gap:var(--v64-space-2,8px);justify-items:start;display:grid}.vibe64-learning-reader__complete[data-v-b9bfdb4e]{color:rgb(var(--v-theme-success));margin:0;font-weight:600}.vibe64-learning-reader__complete-short[data-v-b9bfdb4e]{display:none}.vibe64-learning-reader__body[data-v-b9bfdb4e]{min-height:0;padding:var(--v64-space-4,16px) var(--v64-space-5,24px) var(--v64-space-6,32px);width:100%;max-width:52rem;overflow-y:auto}.vibe64-learning-reader__notes[data-v-b9bfdb4e]{margin-top:var(--v64-space-5,24px)}.vibe64-learning-reader .v-btn[data-v-b9bfdb4e]{letter-spacing:0;text-transform:none}@container (width<=760px){.vibe64-learning-reader[data-v-b9bfdb4e]{grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);gap:0}.vibe64-learning-reader__steps[data-v-b9bfdb4e]{border-inline-end:0;border-bottom:1px solid rgb(var(--v-theme-outline-variant));padding:var(--v64-space-2,8px) var(--v64-space-3,12px)}.vibe64-learning-reader__steps ol[data-v-b9bfdb4e]{margin:var(--v64-space-2,8px) 0 0;display:flex;overflow-x:auto}.vibe64-learning-reader__step[data-v-b9bfdb4e]{grid-template-columns:28px;justify-items:center;min-width:48px}.vibe64-learning-reader__step-title[data-v-b9bfdb4e],.vibe64-learning-reader__step-status[data-v-b9bfdb4e]{display:none}.vibe64-learning-reader__summary[data-v-b9bfdb4e]{align-items:center;gap:4px var(--v64-space-2,8px);margin-top:var(--v64-space-2,8px);flex-wrap:wrap;display:flex}.vibe64-learning-reader__complete[data-v-b9bfdb4e]{font-size:.875rem}.vibe64-learning-reader__complete-long[data-v-b9bfdb4e]{display:none}.vibe64-learning-reader__complete-short[data-v-b9bfdb4e]{display:inline}.vibe64-learning-reader__body[data-v-b9bfdb4e]{padding:var(--v64-space-3,12px) var(--v64-space-4,16px) var(--v64-space-6,32px)}}.vibe64-learning-lesson-pane[data-v-e622ed16]{background:var(--v64-learning-container,rgb(var(--v-theme-surface)));color:rgb(var(--v-theme-on-surface));min-width:0;height:100%;min-height:0;overflow:hidden}.vibe64-learning-lesson-pane__scroll[data-v-e622ed16]{height:100%;overflow-y:auto}.vibe64-lesson-sheet[data-v-b82e0028]{background:var(--v64-learning-container,rgb(var(--v-theme-surface)));border:1px solid var(--v64-learning-strong);border-radius:var(--v64-shape-md,12px);box-shadow:0 6px 24px rgba(var(--v-theme-shadow), .22);z-index:3;flex-direction:column;min-height:0;display:flex;position:absolute;inset:0;overflow:hidden}.vibe64-lesson-sheet__header[data-v-b82e0028]{border-bottom:1px solid var(--v64-learning-strong);color:var(--v64-on-learning-container,inherit);align-items:center;gap:var(--v64-space-2,8px);flex:none;min-height:44px;padding:4px 8px 4px 12px;display:flex}.vibe64-lesson-sheet__title[data-v-b82e0028]{flex:auto;font-weight:700}.vibe64-lesson-sheet__hide[data-v-b82e0028]{letter-spacing:0;text-transform:none}.vibe64-lesson-sheet__pane[data-v-b82e0028]{flex:auto;height:auto}.studio-autopilot__project-panel[data-v-61652457],.studio-autopilot__dashboard-shell[data-v-61652457],.studio-autopilot__right-pane-page[data-v-61652457],.studio-autopilot__session-tool-pane[data-v-61652457],.studio-autopilot__session-tool-content[data-v-61652457]{min-width:0;height:100%;min-height:0}.studio-autopilot__project-panel[data-v-61652457]{contain:strict;position:relative;overflow:hidden}.studio-autopilot__right-pane-page[data-v-61652457]{overflow:auto}.studio-autopilot__session-tool-pane[data-v-61652457]{grid-template-rows:auto minmax(0,1fr);display:grid}.studio-autopilot__architecture-pane[data-v-61652457]{grid-template-rows:minmax(0,1fr);overflow:hidden}.studio-autopilot__session-tool-header[data-v-61652457]{background:rgb(var(--v-theme-surface-container-low));border-bottom:1px solid rgb(var(--v-theme-outline-variant));min-height:3rem;padding:var(--v64-space-1) var(--v64-space-2);align-items:center;gap:.4rem;display:flex}.studio-autopilot__session-tool-pane>.studio-autopilot__right-pane-page[data-v-61652457]{padding:var(--v64-space-3) var(--v64-space-4) var(--v64-space-4)}.studio-autopilot__session-tool-content[data-v-61652457]{overflow:hidden}.studio-autopilot__preview-launch[data-v-61652457]{height:100%}.studio-autopilot__architecture-file[data-v-61652457]{background:rgb(var(--v-theme-surface));border-radius:12px;flex-direction:column;height:min(84dvh,850px);min-height:0;display:flex;overflow:hidden}.studio-autopilot__architecture-file>header[data-v-61652457]{border-bottom:1px solid rgba(var(--v-theme-on-surface), .12);justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;display:flex}.studio-autopilot__architecture-file>header strong[data-v-61652457]{overflow-wrap:anywhere;font-size:14px}.studio-autopilot__architecture-file>.vibe64-source-editor[data-v-61652457]{flex:1;min-height:0}.studio-ai-sessions__create-button[data-v-911e78a2]{border:1px solid #0000;border-radius:999px;width:3rem;min-width:3rem;height:3rem;min-height:3rem;position:relative;overflow:visible;background:var(--studio-control-rest-bg,rgb(var(--v-theme-surface-container-high)))!important;box-shadow:none!important;color:rgb(var(--v-theme-primary))!important}.studio-ai-sessions__create-button[data-v-911e78a2]:hover{background:var(--studio-control-active-bg,rgb(var(--v-theme-secondary-container)))!important}.studio-ai-sessions__create-button[data-v-911e78a2] .v-icon{color:currentColor;font-size:1.15rem}.studio-ai-sessions__create-button--attention[data-v-911e78a2]:not(.v-btn--disabled){border-color:color-mix(in srgb, rgb(var(--v-theme-primary)) 36%, transparent)}.studio-ai-sessions__create-button--attention[data-v-911e78a2]:not(.v-btn--disabled):after{border-radius:inherit;content:"";opacity:0;pointer-events:none;transform-origin:50%;will-change:opacity, transform;border:2px solid;animation:6s ease-out infinite studio-ai-session-create-pulse-911e78a2;position:absolute;inset:-.18rem;transform:scale(1)translateZ(0)}.studio-ai-sessions__preview-create-button[data-v-911e78a2]{border-radius:var(--studio-control-radius,7px);letter-spacing:0;border:1px solid #0000;min-width:12rem;min-height:3rem;font-weight:500;background:var(--studio-control-active-bg,rgb(var(--v-theme-secondary-container)))!important;box-shadow:none!important;color:var(--studio-control-text,rgb(var(--v-theme-on-surface)))!important}.studio-ai-sessions__preview-create-button[data-v-911e78a2]:hover{background:var(--studio-control-rest-bg,rgb(var(--v-theme-surface-container-high)))!important}.studio-ai-sessions__create-button--unavailable[data-v-911e78a2]{cursor:not-allowed;opacity:var(--v-disabled-opacity,.38)}.studio-ai-sessions__create-button--unavailable[data-v-911e78a2]:hover{background:var(--studio-control-rest-bg,rgb(var(--v-theme-surface-container-high)))!important}@keyframes studio-ai-session-create-pulse-911e78a2{0%{opacity:.48;transform:scale(1)translateZ(0)}14%{opacity:0;transform:scale(1.34)translateZ(0)}to{opacity:0;transform:scale(1.34)translateZ(0)}}@media (prefers-reduced-motion:reduce){.studio-ai-sessions__create-button--attention[data-v-911e78a2]:not(.v-btn--disabled):after{animation:none}}.studio-ai-sessions__archive-progress[data-v-23f42387]{background:rgba(var(--v-theme-primary), .08);overflow-wrap:anywhere;border-radius:.5rem;align-items:flex-start;gap:.5rem;width:100%;padding:.5rem;font-size:.8rem;display:flex}.studio-ai-sessions__archive-detail[data-v-23f42387]{opacity:.8;margin-top:.2rem}.studio-ai-sessions__toolbar[data-v-23f42387]{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:.75rem;width:100%;min-width:0;display:flex}.studio-ai-sessions__tabs[data-v-23f42387]{flex-wrap:wrap;align-items:center;gap:.45rem;width:100%;min-width:0;display:flex}.studio-ai-sessions__tab[data-v-23f42387]{border:0;border-radius:999px;align-items:stretch;max-width:18rem;font-weight:500;position:relative;overflow:visible;box-shadow:none!important;color:var(--studio-control-text,rgb(var(--v-theme-on-surface)))!important;background:0 0!important;padding:0!important}.studio-ai-sessions__tab[data-v-23f42387] .v-chip__content{align-items:stretch;min-width:0;display:inline-flex}.studio-ai-sessions__tab-main[data-v-23f42387]{--studio-ai-sessions-chip-rest:color-mix(in srgb, rgb(var(--v-theme-on-surface)) 5%, rgb(var(--v-theme-surface)));background:var(--studio-ai-sessions-chip-rest);border:1px solid rgb(var(--v-theme-outline-variant));box-sizing:border-box;color:var(--studio-control-text,rgb(var(--v-theme-on-surface)));border-radius:999px;flex:auto;align-items:center;min-width:0;padding-inline:.85rem;display:inline-flex}.studio-ai-sessions__tab--active[data-v-23f42387]{font-weight:560;color:var(--studio-control-text,rgb(var(--v-theme-on-surface)))!important}.studio-ai-sessions__tab--archiving .studio-ai-sessions__tab-main[data-v-23f42387]{background:rgba(var(--v-theme-on-surface), .06);color:rgba(var(--v-theme-on-surface), .55)}.studio-ai-sessions__tab--archiving .studio-ai-sessions__status-dot[data-v-23f42387]{background:currentColor}.studio-ai-sessions__tab-main[data-v-23f42387],.studio-ai-sessions__tab-close-slot[data-v-23f42387]{transition:background-color var(--v64-duration-short) var(--v64-ease-standard), color var(--v64-duration-short) var(--v64-ease-standard)}.studio-ai-sessions__tab--active .studio-ai-sessions__tab-main[data-v-23f42387]{background:var(--studio-control-active-bg,rgb(var(--v-theme-secondary-container)));color:rgb(var(--v-theme-on-secondary-container));border-color:#0000;border-radius:999px 0 0 999px;padding-inline-end:.34rem}.studio-ai-sessions__tab:not(.studio-ai-sessions__tab--active) .studio-ai-sessions__tab-main[data-v-23f42387]:hover{background:color-mix(in srgb, rgb(var(--v-theme-on-surface)) 8%, var(--studio-ai-sessions-chip-rest))}.studio-ai-sessions__tab--active .studio-ai-sessions__tab-main[data-v-23f42387]:hover,.studio-ai-sessions__tab--active .studio-ai-sessions__tab-main:hover+.studio-ai-sessions__tab-close-slot[data-v-23f42387]{background:color-mix(in srgb, rgb(var(--v-theme-on-secondary-container)) 8%, var(--studio-control-active-bg,rgb(var(--v-theme-secondary-container))))}.studio-ai-sessions__tab[data-v-23f42387]:focus-visible{outline:var(--v64-focus-ring-width) solid rgb(var(--v-theme-primary));outline-offset:var(--v64-focus-ring-offset)}.studio-ai-sessions__tab[data-v-23f42387] .v-chip__overlay,.studio-ai-sessions__tab[data-v-23f42387] .v-chip__underlay{display:none}.studio-ai-sessions__tab-label[data-v-23f42387]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.studio-ai-sessions__repository-state[data-v-23f42387]{color:rgba(var(--v-theme-on-surface), .4);flex:none;margin-inline-start:.42rem}.studio-ai-sessions__tab-info[data-v-23f42387]{color:inherit;flex-shrink:0;display:none}.studio-ai-sessions__info[data-v-23f42387]{overflow-wrap:anywhere;max-width:100%;padding:.25rem}.studio-ai-sessions__info-facts[data-v-23f42387]{grid-template-columns:auto minmax(0,1fr);gap:.3rem .75rem;margin:.5rem 0 0;display:grid}.studio-ai-sessions__info-facts dt[data-v-23f42387]{opacity:.75}.studio-ai-sessions__info-facts dd[data-v-23f42387]{margin:0}.studio-ai-sessions__repository-state--saved[data-v-23f42387]{color:rgb(var(--v-theme-success))}.studio-ai-sessions__repository-state--saved.studio-ai-sessions__repository-state--provisional[data-v-23f42387]{color:rgba(var(--v-theme-on-surface), var(--v-disabled-opacity))}.studio-ai-sessions__repository-state--unsaved[data-v-23f42387],.studio-ai-sessions__repository-state--unavailable[data-v-23f42387]{color:rgb(var(--v-theme-error))}.studio-ai-sessions__tab-close-slot[data-v-23f42387]{background:var(--studio-control-active-bg,rgb(var(--v-theme-secondary-container)));box-sizing:border-box;color:rgba(var(--v-theme-on-surface), .68);border:1px solid #0000;border-left:0;border-radius:0 999px 999px 0;flex:none;justify-content:center;align-items:center;padding-inline:.14rem .28rem;display:inline-flex}.studio-ai-sessions__tab-archive[data-v-23f42387]{flex:0 0 1.38rem;min-width:1.38rem;min-height:1.38rem;color:currentColor!important;background:0 0!important;width:1.38rem!important;height:1.38rem!important;padding:0!important}.studio-ai-sessions__tab-archive[data-v-23f42387]:hover,.studio-ai-sessions__tab-archive[data-v-23f42387]:focus-visible{opacity:1;pointer-events:auto;background:color-mix(in srgb, currentColor 14%, transparent)!important}.studio-ai-sessions__tab-archive[data-v-23f42387] .v-icon{font-size:.98rem}.studio-ai-sessions__status-dot[data-v-23f42387]{background:rgb(var(--v-theme-primary));contain:paint;border-radius:999px;flex:none;width:.52rem;height:.52rem;margin-right:.42rem;display:inline-block;position:relative}.studio-ai-sessions__tab--thinking .studio-ai-sessions__status-dot[data-v-23f42387]{animation:1.3s steps(2,end) infinite studio-ai-sessions-thinking-pulse-23f42387}.studio-ai-sessions__status-dot--blocked[data-v-23f42387],.studio-ai-sessions__status-dot--failed[data-v-23f42387]{background:rgb(var(--v-theme-error))}@keyframes studio-ai-sessions-thinking-pulse-23f42387{0%,to{opacity:.45}50%{opacity:1}}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tabs[data-v-23f42387]{flex-wrap:nowrap;gap:.34rem}.studio-ai-sessions__toolbar--compact[data-v-23f42387]{min-height:2rem}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab[data-v-23f42387]{letter-spacing:0;flex:0 auto;min-width:3.5rem;max-width:15rem;height:1.75rem;min-height:1.75rem;font-size:.86rem}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab[data-v-23f42387] .v-chip__content{flex:auto;width:100%}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab-main[data-v-23f42387]{padding-inline:.45rem .4rem}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab--active .studio-ai-sessions__tab-main[data-v-23f42387]{padding-inline-end:.18rem}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab-close-slot[data-v-23f42387]{padding-inline:0 .14rem}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__status-dot[data-v-23f42387]{width:.38rem;height:.38rem;margin-right:.3rem}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__repository-state[data-v-23f42387]{width:12px;height:12px;margin-inline-start:.22rem;font-size:12px}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab-info[data-v-23f42387]{width:1.25rem;height:1.25rem}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab-info[data-v-23f42387] .v-icon,.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab-archive[data-v-23f42387] .v-icon{font-size:.82rem}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab-archive[data-v-23f42387]{opacity:.7;flex-basis:1.2rem;min-width:1.2rem;min-height:1.2rem;width:1.2rem!important;height:1.2rem!important}@media (width<=640px){.studio-ai-sessions__toolbar[data-v-23f42387]{flex-direction:column;align-items:stretch}}@media (hover:none),(pointer:coarse){.studio-ai-sessions__tab-info[data-v-23f42387]{display:inline-flex}.studio-ai-sessions__tab--active .studio-ai-sessions__tab-info[data-v-23f42387]{margin-inline-end:.3rem}.studio-ai-sessions__repository-state--desktop[data-v-23f42387]{display:none}.studio-ai-sessions__tab .studio-ai-sessions__tab-archive[data-v-23f42387]{box-shadow:none;opacity:1;pointer-events:auto}}@media (prefers-reduced-motion:reduce){.studio-ai-sessions__tab--thinking .studio-ai-sessions__status-dot[data-v-23f42387]{opacity:1;animation:none}}.studio-autopilot__session-header[data-v-eafb6c6f]{border-bottom:1px solid rgb(var(--v-theme-outline-variant));box-sizing:border-box;grid-row:1;justify-content:space-between;align-items:center;gap:0;width:100%;min-width:0;min-height:3rem;padding:.4rem .25rem;display:flex;overflow:hidden}.studio-autopilot__session-header[data-v-eafb6c6f] .studio-ai-sessions__toolbar{flex:auto;min-width:0;margin-inline-end:.35rem;overflow:hidden}.studio-autopilot__session-header[data-v-eafb6c6f] .studio-ai-sessions__tabs{min-width:0;overflow:hidden}.studio-autopilot__header-actions[data-v-eafb6c6f]{flex:none;align-items:center;gap:.125rem;margin-inline-start:auto;display:flex}.studio-autopilot__header-action[data-v-eafb6c6f],.studio-autopilot__save-work[data-v-eafb6c6f]{border-radius:8px}.studio-autopilot__header-action[data-v-eafb6c6f],.studio-autopilot__save-work[data-v-eafb6c6f]:not(.text-error):not(.text-warning){color:rgba(var(--v-theme-on-surface), .66)}.studio-autopilot__header-action[data-v-eafb6c6f] .v-icon,.studio-autopilot__save-work[data-v-eafb6c6f] .v-btn__content>.v-icon{width:18px;height:18px;font-size:18px}.studio-autopilot__header-action[data-v-eafb6c6f]:hover,.studio-autopilot__save-work[data-v-eafb6c6f]:not(.text-error):not(.text-warning):hover{color:rgba(var(--v-theme-on-surface), .9)}.studio-autopilot__save-work.text-error[data-v-eafb6c6f],.studio-autopilot__save-work.text-warning[data-v-eafb6c6f]{background:color-mix(in srgb, currentColor 9%, transparent)}.studio-autopilot__header-action[data-v-eafb6c6f] .v-btn__overlay,.studio-autopilot__save-work[data-v-eafb6c6f] .v-btn__overlay{border-radius:inherit}.studio-autopilot__session-action-item[data-v-eafb6c6f]{min-height:3rem}.studio-autopilot__approvals-chip[data-v-eafb6c6f]{flex-shrink:0;align-self:center}.studio-autopilot__save-work[data-v-eafb6c6f]{flex:none}.studio-autopilot__save-work--check[data-v-eafb6c6f]{opacity:var(--v-disabled-opacity)}.studio-autopilot__save-symbol[data-v-eafb6c6f]{width:24px;height:22px;position:relative}.studio-autopilot__save-symbol-disk[data-v-eafb6c6f],.studio-autopilot__save-symbol-commit[data-v-eafb6c6f]{opacity:.72;position:absolute}.studio-autopilot__save-symbol-disk[data-v-eafb6c6f]{bottom:0;left:0}.studio-autopilot__save-symbol-commit[data-v-eafb6c6f]{top:0;right:0}.studio-autopilot[data-v-044119d7]{background:rgb(var(--v-theme-background));grid-template-columns:minmax(20rem,38%) minmax(0,1fr);min-width:0;height:100%;min-height:0;display:grid;overflow:hidden}.studio-home-shell-session-github-actor[data-v-044119d7]{color:rgba(var(--v-theme-on-surface), .72);white-space:nowrap;align-items:center;gap:.24rem;min-width:0;max-width:100%;padding:0 .36rem;font-size:.72rem;font-weight:650;line-height:1;display:inline-flex}.studio-home-shell-session-github-actor span[data-v-044119d7]{text-overflow:ellipsis;min-width:0;overflow:hidden}.studio-home-shell-session-github-actor--inactive[data-v-044119d7]{color:rgba(var(--v-theme-on-surface), .46)}.studio-autopilot--chat-collapsed[data-v-044119d7]{grid-template-columns:0 minmax(0,1fr)}.studio-autopilot__chat-panel[data-v-044119d7]{background:rgb(var(--v-theme-surface));border-right:1px solid rgb(var(--v-theme-outline-variant));grid-template-rows:auto auto minmax(0,1fr);min-width:0;min-height:0;display:grid;position:relative;overflow:hidden;container:studio-chat-pane/inline-size}.studio-autopilot--chat-collapsed .studio-autopilot__chat-panel[data-v-044119d7]{visibility:hidden}@media (width>=981px){.studio-autopilot[data-v-044119d7]{gap:var(--studio-home-project-gap,.75rem);grid-template-columns:var(--studio-home-chat-column-width,32rem) minmax(0, 1fr)}.studio-autopilot--chat-collapsed[data-v-044119d7]{grid-template-columns:0 minmax(0,1fr);gap:0}}@media (width<=980px){.studio-autopilot[data-v-044119d7]:not(.studio-autopilot--chat-collapsed){grid-template-columns:minmax(0,1fr) 0}.studio-autopilot:not(.studio-autopilot--chat-collapsed) .studio-autopilot__project-panel[data-v-044119d7]{visibility:hidden}}.vibe64-agent-terminal-drop-overlay[data-v-10105087]{background:rgba(var(--v-theme-scrim), .68);pointer-events:none;z-index:5;justify-content:center;align-items:center;padding:1rem;display:flex;position:absolute;inset:0}.vibe64-agent-terminal-drop-overlay__card[data-v-10105087]{align-items:center;gap:.7rem;padding:1rem 1.15rem;display:flex}.vibe64-agent-terminal-start-panel[data-v-e1543fc7]{background:rgba(var(--v-theme-scrim), .8);z-index:3;justify-content:center;align-items:center;padding:1rem;display:flex;position:absolute;inset:0}.vibe64-agent-terminal-start-panel__card[data-v-e1543fc7]{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.85rem;width:100%;max-width:min(42rem,100%);padding:1rem;display:grid}.vibe64-agent-terminal-start-panel__icon[data-v-e1543fc7]{background:rgba(var(--v-theme-primary), .14);color:rgb(var(--v-theme-primary));border-radius:50%;justify-content:center;align-items:center;width:3rem;height:3rem;display:flex}.vibe64-agent-terminal-start-panel__copy[data-v-e1543fc7]{gap:.15rem;min-width:0;display:grid}.vibe64-agent-terminal-start-panel__copy strong[data-v-e1543fc7]{font-size:.95rem}.vibe64-agent-terminal-start-panel__copy span[data-v-e1543fc7]{color:rgba(var(--v-theme-on-surface), .72);font-size:.8rem;line-height:1.35}.vibe64-agent-terminal-start-panel__action[data-v-e1543fc7]{min-inline-size:10rem}@media (width<=700px){.vibe64-agent-terminal-start-panel__card[data-v-e1543fc7]{grid-template-columns:auto minmax(0,1fr)}.vibe64-agent-terminal-start-panel__action[data-v-e1543fc7]{grid-column:1/-1;width:100%}}.vibe64-codex-session[data-v-4c2f6591]{min-width:0;height:100%;min-height:0;position:relative}.vibe64-codex-session--headless[data-v-4c2f6591]{pointer-events:none;width:0;height:0;position:absolute;overflow:hidden}.vibe64-codex-session--focused[data-v-4c2f6591] .vibe64-terminal-surface{border-color:rgba(var(--v-theme-primary), .72)}.vibe64-codex-session__command[data-v-4c2f6591]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.vibe64-codex-session__attachment-action[data-v-4c2f6591]{min-width:2.5rem;min-height:2.5rem}.vibe64-codex-session__start-action[data-v-4c2f6591]{min-inline-size:10rem}@media (width<=700px){.vibe64-codex-session__start-action[data-v-4c2f6591]{width:100%}}.vibe64-native-agent-session[data-v-1b9ba19d]{block-size:100%;min-block-size:0;min-inline-size:0;position:relative}.vibe64-native-agent-session--headless[data-v-1b9ba19d]{block-size:0;inline-size:0;position:absolute;overflow:hidden}.vibe64-native-agent-session__command[data-v-1b9ba19d]{color:rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity));font-size:.82rem}.studio-renewal-assistant[data-v-c674ce61]{border:1px solid rgb(var(--v-theme-outline-variant));border-radius:.75rem;gap:.75rem;padding:.85rem;display:grid}.studio-renewal-assistant__heading[data-v-c674ce61],.studio-renewal-assistant__error[data-v-c674ce61]{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.studio-renewal-assistant__heading>span[data-v-c674ce61]{gap:.15rem;display:grid}.studio-renewal-assistant__heading small[data-v-c674ce61],.studio-renewal-assistant__summary[data-v-c674ce61]{color:rgba(var(--v-theme-on-surface), .68)}.studio-renewal-assistant__fields[data-v-c674ce61]{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;display:grid}.studio-renewal-assistant__summary[data-v-c674ce61]{margin:0}@media (width<=600px){.studio-renewal-assistant__heading[data-v-c674ce61]{align-items:flex-start}.studio-renewal-assistant__fields[data-v-c674ce61]{grid-template-columns:minmax(0,1fr)}}.studio-session-renewal__progress-copy[data-v-8b509bcf]{align-items:flex-start;gap:.25rem;display:grid}.studio-session-renewal__progress-copy span[data-v-8b509bcf]{color:rgba(var(--v-theme-on-surface), .68)}.studio-session-renewal__progress-line[data-v-8b509bcf]{margin-block:.1rem .25rem}.studio-session-renewal__steps[data-v-8b509bcf]{gap:.35rem;margin:0;padding:0;list-style:none;display:grid}.studio-session-renewal__steps li[data-v-8b509bcf]{color:rgba(var(--v-theme-on-surface), .58);border-radius:.75rem;align-items:center;gap:.7rem;min-height:2.75rem;padding:.55rem .7rem;display:flex}.studio-session-renewal__step--active[data-v-8b509bcf]{background:rgba(var(--v-theme-primary), .1);color:rgb(var(--v-theme-on-surface))}.studio-session-renewal__step--complete[data-v-8b509bcf]{color:rgb(var(--v-theme-primary))}.studio-session-renewal__step-icon[data-v-8b509bcf]{flex:none;justify-content:center;align-items:center;width:1.25rem;display:inline-flex}@media (prefers-reduced-motion:reduce){.studio-session-renewal__progress-line[data-v-8b509bcf]{display:none}}.studio-session-renewal[data-v-eb92400c]{max-height:min(46rem,100dvh - 2rem)}.studio-session-renewal__header[data-v-eb92400c],.studio-session-renewal__heading[data-v-eb92400c],.studio-session-renewal__assurance[data-v-eb92400c],.studio-session-renewal__success[data-v-eb92400c]{align-items:center;display:flex}.studio-session-renewal__header[data-v-eb92400c]{justify-content:space-between;gap:1rem;min-height:4.5rem;padding:.75rem 1rem}.studio-session-renewal__heading[data-v-eb92400c]{gap:.75rem;min-width:0}.studio-session-renewal__heading>span[data-v-eb92400c]:last-child,.studio-session-renewal__assurance>span[data-v-eb92400c],.studio-session-renewal__success>span[data-v-eb92400c]{gap:.12rem;min-width:0;display:grid}.studio-session-renewal__heading h2[data-v-eb92400c]{margin:0}.studio-session-renewal__subtitle[data-v-eb92400c]{color:rgba(var(--v-theme-on-surface), .68)}.studio-session-renewal__icon[data-v-eb92400c]{background:rgba(var(--v-theme-primary), .12);color:rgb(var(--v-theme-primary));border-radius:50%;flex:none;justify-content:center;align-items:center;width:2.6rem;height:2.6rem;display:inline-flex}.studio-session-renewal__body[data-v-eb92400c]{gap:1rem;min-height:22rem;padding:1.25rem;display:grid}.studio-session-renewal__lead[data-v-eb92400c],.studio-session-renewal__supporting[data-v-eb92400c]{overflow-wrap:anywhere;margin:0}.studio-session-renewal__lead[data-v-eb92400c]{color:rgb(var(--v-theme-on-surface))}.studio-session-renewal__supporting[data-v-eb92400c]{color:rgba(var(--v-theme-on-surface), .7)}.studio-session-renewal__assurance[data-v-eb92400c],.studio-session-renewal__success[data-v-eb92400c]{gap:.75rem;padding:1rem;line-height:1.45}.studio-session-renewal__skeleton[data-v-eb92400c]{gap:1rem;display:grid}.studio-session-renewal__draft[data-v-eb92400c]{min-width:0}.studio-session-renewal__notice[data-v-eb92400c]{margin:0}.studio-session-renewal__notice-copy[data-v-eb92400c]{gap:.25rem;display:grid}.studio-session-renewal__source-details[data-v-eb92400c]{grid-template-columns:max-content minmax(0,1fr);gap:.25rem .75rem;margin:.75rem 0 0;display:grid}.studio-session-renewal__source-details dt[data-v-eb92400c]{color:rgba(var(--v-theme-on-surface), .68)}.studio-session-renewal__source-details dd[data-v-eb92400c]{overflow-wrap:anywhere;min-width:0;margin:0}.studio-session-renewal__notice-with-action[data-v-eb92400c]{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem 1rem;display:flex}.studio-session-renewal__notice-with-action .studio-session-renewal__notice-copy[data-v-eb92400c]{flex:18rem}.studio-session-renewal__inline-actions[data-v-eb92400c]{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.5rem;margin-top:.75rem;display:flex}.studio-session-renewal__actions[data-v-eb92400c]{flex-wrap:wrap;gap:.5rem;min-height:4.5rem;padding:.75rem 1rem}.studio-session-renewal__actions-spacer[data-v-eb92400c]{flex:auto}.studio-session-renewal--fullscreen[data-v-eb92400c]{height:100dvh;max-height:100dvh}.studio-session-renewal--fullscreen .studio-session-renewal__body[data-v-eb92400c]{min-height:0;padding:1rem}.studio-session-renewal--fullscreen .studio-session-renewal__inline-actions[data-v-eb92400c],.studio-session-renewal--fullscreen .studio-session-renewal__notice-with-action[data-v-eb92400c]{align-items:stretch}.studio-session-renewal--fullscreen .studio-session-renewal__inline-actions[data-v-eb92400c]>*,.studio-session-renewal--fullscreen .studio-session-renewal__notice-with-action[data-v-eb92400c]>:last-child{flex:100%}.studio-session-renewal__actions--compact[data-v-eb92400c]{align-items:stretch}.studio-session-renewal__actions--compact .studio-session-renewal__actions-spacer[data-v-eb92400c]{display:none}.studio-session-renewal__actions--compact .studio-session-renewal__action[data-v-eb92400c]{flex:calc(50% - .25rem)}.studio-session-renewal__actions--compact .studio-session-renewal__action--primary[data-v-eb92400c]{flex-basis:100%}.studio-ai-session-runtime[data-v-7eb1a297]{min-width:0;max-width:100%;height:100%;min-height:0;display:grid;overflow:hidden}.studio-ai-sessions__tab-terminal[data-v-7eb1a297]{min-width:0;height:100%;min-height:0}.studio-ai-sessions__tab-terminal[data-v-7eb1a297] .studio-ai-sessions__codex-terminal-shell,.studio-ai-sessions__tab-terminal[data-v-7eb1a297] .studio-ai-sessions__codex-terminal{height:100%}.studio-ai-sessions__empty-main[data-v-532b3d07],.studio-ai-sessions__empty-project-panel[data-v-532b3d07]{position:relative}.studio-ai-sessions__empty-layout[data-v-532b3d07]{gap:var(--studio-home-project-gap,.75rem);min-width:0;height:100%;min-height:0;display:grid;overflow:hidden}.studio-ai-sessions__empty-main[data-v-532b3d07],.studio-ai-sessions__empty-project-panel[data-v-532b3d07]{background:rgb(var(--v-theme-surface));border:1px solid rgb(var(--v-theme-outline-variant));box-shadow:0 .75rem 2rem rgba(var(--v-theme-shadow), .06);border-radius:14px;min-width:0;min-height:0;overflow:hidden}.studio-ai-sessions__empty-main[data-v-532b3d07],.studio-ai-sessions__empty-project-panel[data-v-532b3d07],.studio-ai-sessions__preview-empty-pane[data-v-532b3d07]{display:grid}.studio-ai-sessions__empty-main[data-v-532b3d07]{grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:.16rem;padding:.05rem .65rem .18rem;overflow:visible}.studio-ai-sessions__empty-session-header[data-v-532b3d07]{gap:.28rem;min-width:0;display:grid}.studio-ai-sessions__empty-chat-body[data-v-532b3d07]{scrollbar-gutter:stable;align-items:start;min-height:0;padding:.25rem .1rem 0 0;display:grid;overflow:hidden}.studio-ai-sessions__empty-hint[data-v-532b3d07]{background:rgba(var(--v-theme-primary), .08);border:1px solid rgba(var(--v-theme-primary), .16);color:rgba(var(--v-theme-on-surface), .76);border-radius:10px;max-width:100%;padding:.55rem .65rem;font-size:.86rem;line-height:1.35}.studio-ai-sessions__empty-thinking[data-v-532b3d07]{color:rgba(var(--v-theme-on-surface), .72);align-items:center;gap:.38rem;min-height:1.35rem;font-size:.86rem;display:flex}.studio-ai-sessions__empty-thinking--empty[data-v-532b3d07]{visibility:hidden}.studio-ai-sessions__empty-thinking-mark[data-v-532b3d07]{background:rgb(var(--v-theme-primary));box-shadow:0 0 0 .24rem rgba(var(--v-theme-primary), .12);border-radius:999px;width:.48rem;height:.48rem}.studio-ai-sessions__empty-runtime-status[data-v-532b3d07]{display:none}.studio-ai-sessions__empty-composer[data-v-532b3d07]{min-width:0;min-height:.35rem}.studio-ai-sessions__dashboard-empty-pane[data-v-532b3d07]{scrollbar-gutter:stable;align-content:start;gap:.75rem;min-width:0;min-height:0;padding:.85rem;display:grid;overflow-y:auto}.studio-ai-sessions__preview-empty-pane[data-v-532b3d07]{place-items:center;min-width:0;min-height:0;padding:1rem}.studio-ai-sessions__preview-empty-content[data-v-532b3d07]{text-align:center;place-items:center;gap:.65rem;max-width:min(100%,26rem);display:grid}.studio-ai-sessions__preview-empty-title[data-v-532b3d07]{color:rgba(var(--v-theme-on-surface), .78);margin:0;font-size:.98rem;line-height:1.35}.studio-ai-sessions__preview-empty-detail[data-v-532b3d07]{color:rgba(var(--v-theme-on-surface), .62);max-width:24rem;margin:-.25rem 0 0;font-size:.86rem;line-height:1.35}@media (width>=981px){.studio-ai-sessions__empty-layout[data-v-532b3d07]{grid-template-columns:var(--studio-home-chat-column-width,32rem) minmax(0, 1fr)}.studio-ai-sessions__empty-layout--chat-collapsed[data-v-532b3d07]{grid-template-columns:minmax(0,1fr)}.studio-ai-sessions__empty-layout--chat-collapsed .studio-ai-sessions__empty-main[data-v-532b3d07]{display:none}.studio-ai-sessions__empty-layout--dashboard[data-v-532b3d07]{align-items:stretch;height:100%;overflow:hidden}}@media (width<=980px){.studio-ai-sessions__empty-layout[data-v-532b3d07]{grid-template-rows:minmax(0,1fr)}.studio-ai-sessions__empty-project-panel[data-v-532b3d07],.studio-ai-sessions__empty-layout--chat-collapsed .studio-ai-sessions__empty-main[data-v-532b3d07]{display:none}.studio-ai-sessions__empty-layout--chat-collapsed .studio-ai-sessions__empty-project-panel[data-v-532b3d07]{display:grid}}.studio-ai-sessions[data-v-07990013]{gap:.85rem;height:100%;min-height:0;display:grid;position:relative;overflow:hidden}.studio-ai-sessions--autopilot[data-v-07990013]{box-shadow:none;background:0 0;grid-template-rows:minmax(0,1fr);gap:0;padding:0;border-radius:0!important}.studio-ai-sessions__chat-column-separator[data-v-07990013]{cursor:col-resize;bottom:0;left:var(--studio-home-chat-column-width,32rem);touch-action:none;-webkit-user-select:none;user-select:none;width:var(--studio-home-project-gap,.75rem);z-index:10;background:0 0;outline:none;position:absolute;top:0}.studio-ai-sessions__chat-column-separator[data-v-07990013]:before{background:rgba(var(--v-theme-on-surface), .14);content:"";width:1px;transition:background-color .12s,width .12s;position:absolute;top:0;bottom:0;left:50%;transform:translate(-50%)}.studio-ai-sessions__chat-column-separator[data-v-07990013]:hover:before,.studio-ai-sessions__chat-column-separator[data-v-07990013]:focus-visible:before,.studio-ai-sessions__chat-column-separator--resizing[data-v-07990013]:before{background:rgb(var(--v-theme-primary));width:2px}.studio-ai-sessions--resizing[data-v-07990013]{cursor:col-resize!important;-webkit-user-select:none!important;user-select:none!important}@media (width>=981px){.studio-ai-sessions[data-v-07990013]{grid-template-rows:auto minmax(0,1fr)}.studio-ai-sessions--autopilot[data-v-07990013]{grid-template-rows:minmax(0,1fr)}}@media (width<=980px){.studio-ai-sessions__chat-column-separator[data-v-07990013]{display:none!important}}.studio-ai-sessions--autopilot.studio-ai-sessions--unavailable[data-v-07990013]{grid-template-rows:auto minmax(0,1fr)}.studio-ai-sessions__preview-empty-loading[data-v-0652de7c]{width:10rem}.studio-ai-sessions__preview-empty-skeleton[data-v-0652de7c]{width:100%}.studio-ai-sessions__error-overlay[data-v-0652de7c]{z-index:12;max-width:min(42rem,100% - 1.7rem);position:absolute;top:.85rem;left:.85rem}.studio-ai-sessions-error-enter-active[data-v-0652de7c],.studio-ai-sessions-error-leave-active[data-v-0652de7c]{transition:opacity .12s,transform .12s}.studio-ai-sessions-error-enter-from[data-v-0652de7c],.studio-ai-sessions-error-leave-to[data-v-0652de7c]{opacity:0;transform:translateY(-.35rem)}.studio-ai-sessions__runtime-stack[data-v-0652de7c]{min-width:0;height:100%;min-height:0;display:grid;overflow:hidden}.vibe64-lesson-toggle[data-v-7d501641]{border:1px solid rgb(var(--v-theme-outline));border-radius:var(--v64-shape-full,999px);color:rgb(var(--v-theme-on-surface));cursor:pointer;font:inherit;white-space:nowrap;background:0 0;flex:none;align-items:center;gap:6px;height:32px;padding:0 10px 0 8px;font-size:.875rem;font-weight:500;transition:background-color .12s,border-color .12s;display:inline-flex;position:relative}.vibe64-lesson-toggle[data-v-7d501641]:before{border-radius:inherit;content:"";opacity:0;pointer-events:none;background:currentColor;transition:opacity .12s;position:absolute;inset:0}.vibe64-lesson-toggle[data-v-7d501641]:hover:before{opacity:.08}.vibe64-lesson-toggle[data-v-7d501641]:focus-visible{outline:2px solid rgb(var(--v-theme-primary));outline-offset:2px}.vibe64-lesson-toggle.is-on[data-v-7d501641]{background:var(--v64-learning);border-color:var(--v64-learning-strong);color:var(--v64-on-learning);font-weight:700}.vibe64-lesson-toggle__switch[data-v-7d501641]{background:color-mix(in srgb, currentColor 14%, transparent);box-sizing:border-box;opacity:.75;border:1.5px solid;border-radius:999px;flex:none;width:28px;height:16px;display:inline-block;position:relative}.vibe64-lesson-toggle__thumb[data-v-7d501641]{background:currentColor;border-radius:50%;justify-content:center;align-items:center;width:8px;height:8px;transition:left .12s,width .12s,height .12s,top .12s;display:flex;position:absolute;top:2.5px;left:2.5px}.vibe64-lesson-toggle.is-on .vibe64-lesson-toggle__switch[data-v-7d501641]{background:var(--v64-on-learning);border-color:var(--v64-on-learning);opacity:1}.vibe64-lesson-toggle.is-on .vibe64-lesson-toggle__thumb[data-v-7d501641]{background:var(--v64-learning);color:var(--v64-on-learning);width:11px;height:11px;top:1px;left:13px}@media (prefers-reduced-motion:reduce){.vibe64-lesson-toggle[data-v-7d501641],.vibe64-lesson-toggle[data-v-7d501641]:before,.vibe64-lesson-toggle__thumb[data-v-7d501641]{transition:none}}.vibe64-learning-step-bar-host[data-v-312ecfd5]{flex:none;min-width:0;position:relative}.vibe64-learning-step-bar[data-v-312ecfd5]{background:var(--v64-learning-container);border:1px solid var(--v64-learning-strong);border-radius:var(--v64-shape-md,12px);color:var(--v64-on-learning-container,inherit);align-items:center;gap:var(--v64-space-2,8px);min-width:0;padding:2px var(--v64-space-2,8px);flex:none;display:flex;position:relative;overflow:hidden}.vibe64-learning-step-bar__position[data-v-312ecfd5]{align-items:baseline;gap:0 var(--v64-space-2,8px);flex-wrap:wrap;flex:0 auto;min-width:0;display:flex}.vibe64-learning-step-bar__lesson[data-v-312ecfd5]{text-overflow:ellipsis;white-space:nowrap;max-width:16rem;font-weight:700;overflow:hidden}.vibe64-learning-step-bar__step[data-v-312ecfd5]{overflow-wrap:anywhere;min-width:0}.vibe64-learning-step-bar__dots[data-v-312ecfd5]{align-self:center;gap:4px;display:inline-flex}.vibe64-learning-step-bar__dot[data-v-312ecfd5]{opacity:.55;border:1.5px solid;border-radius:50%;width:8px;height:8px}.vibe64-learning-step-bar__dot.is-done[data-v-312ecfd5]{background:currentColor}.vibe64-learning-step-bar__dot.is-current[data-v-312ecfd5]{opacity:1;background:currentColor}.vibe64-learning-step-bar__line[data-v-312ecfd5]{align-items:center;gap:2px var(--v64-space-2,8px);flex-wrap:wrap;flex:auto;min-width:0;display:flex}.vibe64-learning-step-bar__beat[data-v-312ecfd5]{overflow-wrap:anywhere;flex:12rem;min-width:0;font-weight:500}.vibe64-learning-step-bar__status[data-v-312ecfd5]{opacity:.8;font-size:.8125rem}.vibe64-learning-step-bar__status.is-passed[data-v-312ecfd5]{color:rgb(var(--v-theme-success));opacity:1}.vibe64-learning-step-bar__note[data-v-312ecfd5]{flex-basis:100%;font-size:.8125rem}.vibe64-learning-step-bar__controls[data-v-312ecfd5]{flex:none;align-items:center;gap:2px;display:flex}.vibe64-learning-step-bar__progress[data-v-312ecfd5]{background:var(--v64-learning-strong);transform-origin:0;height:3px;transition:transform .1s linear;position:absolute;bottom:0;left:0;right:0}.vibe64-learning-step-bar .v-btn[data-v-312ecfd5]{letter-spacing:0;text-transform:none}.vibe64-learning-step-bar__step[data-v-312ecfd5]{font-variant-numeric:tabular-nums}.vibe64-learning-step-bar__lesson-toggle[data-v-312ecfd5]{flex:none;display:inline-flex}@media (prefers-reduced-motion:reduce){.vibe64-learning-step-bar__progress[data-v-312ecfd5]{transition:none}}@media (width<=600px){.vibe64-learning-step-bar[data-v-312ecfd5]{flex-wrap:wrap;gap:0 4px}.vibe64-learning-step-bar__stuck--beside[data-v-312ecfd5],.vibe64-learning-step-bar__lesson[data-v-312ecfd5]{display:none}.vibe64-learning-step-bar__position[data-v-312ecfd5]{flex:auto;order:1}.vibe64-learning-step-bar__lesson-toggle[data-v-312ecfd5],.vibe64-learning-step-bar__practice[data-v-312ecfd5],.vibe64-learning-step-bar__courses[data-v-312ecfd5]{order:2}.vibe64-learning-step-bar__line[data-v-312ecfd5]{flex-basis:100%;order:3;padding:0 0 2px 8px}.vibe64-learning-step-bar__controls[data-v-312ecfd5]{flex-basis:100%;order:4;justify-content:space-between}.vibe64-learning-step-bar__controls .v-btn[data-v-312ecfd5]:last-child{margin-inline-start:auto}.vibe64-learning-step-bar__courses[data-v-312ecfd5],.vibe64-learning-step-bar__practice[data-v-312ecfd5]{padding-inline:0}.vibe64-learning-step-bar__courses[data-v-312ecfd5] .v-btn__prepend,.vibe64-learning-step-bar__practice[data-v-312ecfd5] .v-btn__prepend{margin-inline:0}.vibe64-learning-step-bar__courses-label[data-v-312ecfd5],.vibe64-learning-step-bar__practice-label[data-v-312ecfd5]{display:none}}.vibe64-learning-stage[data-v-3fef98a4]{gap:var(--v64-space-2,8px);flex-direction:column;min-width:0;min-height:0;display:flex}.vibe64-learning-stage__bar[data-v-3fef98a4]{margin:var(--v64-space-2,8px) var(--v64-space-3,12px) 0}.vibe64-learning-stage__body[data-v-3fef98a4]{flex:auto;min-width:0;min-height:0;display:flex}.vibe64-learning-stage__page[data-v-3fef98a4]{flex:auto;min-width:0}.vibe64-learning-stage__anchor[data-v-3fef98a4]{height:0;top:var(--v64-space-2,8px);z-index:5;flex:0 0 0;align-self:flex-start;width:0;position:sticky}.vibe64-learning-stage__lesson[data-v-3fef98a4]{height:calc(100dvh - 140px);right:var(--v64-space-3,12px);width:min(440px,100vw - 24px);position:absolute;top:0}.is-phone .vibe64-learning-stage__bar[data-v-3fef98a4]{margin-inline:var(--v64-space-2,8px)}.is-phone .vibe64-learning-stage__lesson[data-v-3fef98a4]{height:calc(100dvh - 150px);right:var(--v64-space-2,8px);width:calc(100vw - 16px)}.vibe64-learner-art[data-v-365414ae]{--learner-skin:var(--v01e9bf29);--learner-ink:var(--v18d5d8ba);width:17rem;max-width:100%;height:auto;display:block;overflow:visible}.vibe64-learner-art__halo[data-v-365414ae]{fill:var(--v64-learning-tint)}.vibe64-learner-art__disc[data-v-365414ae]{fill:var(--v64-learning-container)}.vibe64-learner-art__shadow[data-v-365414ae]{fill:var(--learner-ink);opacity:.1}.vibe64-learner-art__skin[data-v-365414ae]{fill:var(--learner-skin)}.vibe64-learner-art__body[data-v-365414ae]{fill:rgb(var(--v-theme-primary));stroke:rgb(var(--v-theme-primary));stroke-linejoin:round;stroke-width:6px}.vibe64-learner-art__collar[data-v-365414ae]{fill:rgb(var(--v-theme-primary-container));stroke:rgb(var(--v-theme-primary-container));stroke-linejoin:round;stroke-width:3px}.vibe64-learner-art__ink[data-v-365414ae]{fill:var(--learner-ink)}.vibe64-learner-art__cheek[data-v-365414ae]{fill:var(--v3a6b411a);opacity:.55}.vibe64-learner-art__smile[data-v-365414ae]{fill:var(--v3b4f0edc)}.vibe64-learner-art__cap[data-v-365414ae]{fill:var(--learner-ink);stroke:var(--learner-ink);stroke-linejoin:round;stroke-width:3px}.vibe64-learner-art__tassel[data-v-365414ae]{fill:none;stroke:var(--v64-learning);stroke-linecap:round;stroke-linejoin:round;stroke-width:2.5px}.vibe64-learner-art__tassel-end[data-v-365414ae],.vibe64-learner-art__bulb[data-v-365414ae]{fill:var(--v64-learning)}.vibe64-learner-art__bulb[data-v-365414ae]{filter:drop-shadow(0 0 8px var(--v64-learning-glow))}.vibe64-learner-art__base[data-v-365414ae]{fill:color-mix(in srgb, var(--learner-ink) 55%, var(--ca5979b4))}.vibe64-learner-art__ray[data-v-365414ae],.vibe64-learner-art__bit--learning[data-v-365414ae]{fill:var(--v64-learning-strong)}.vibe64-learner-art__bit--primary[data-v-365414ae]{fill:rgb(var(--v-theme-primary));opacity:.65}.vibe64-learner-art__bit--outline[data-v-365414ae],.vibe64-learner-art__bit--ring[data-v-365414ae]{fill:none;stroke:rgb(var(--v-theme-primary));stroke-linejoin:round;stroke-opacity:.55;stroke-width:3px}.vibe64-learner-art__idea[data-v-365414ae]{animation:3.2s ease-in-out infinite vibe64-learner-float-365414ae}.vibe64-learner-art__wave[data-v-365414ae]{transform-box:view-box;transform-origin:182px 165px;animation:2.4s ease-in-out infinite vibe64-learner-wave-365414ae}.vibe64-learner-art__bit[data-v-365414ae]{transform-box:fill-box;transform-origin:50%;animation:2.8s ease-in-out infinite vibe64-learner-twinkle-365414ae}.vibe64-learner-art__bit[data-v-365414ae]:nth-of-type(2n){animation-delay:.9s}.vibe64-learner-art__bit[data-v-365414ae]:nth-of-type(3n){animation-delay:1.7s}@keyframes vibe64-learner-float-365414ae{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}@keyframes vibe64-learner-wave-365414ae{0%,to{transform:rotate(0)}50%{transform:rotate(-7deg)}}@keyframes vibe64-learner-twinkle-365414ae{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.75)}}@media (prefers-reduced-motion:reduce){.vibe64-learner-art__idea[data-v-365414ae],.vibe64-learner-art__wave[data-v-365414ae],.vibe64-learner-art__bit[data-v-365414ae]{animation:none}}.vibe64-learn-welcome[data-v-6f9711fd]{animation:vibe64-learn-welcome-in-6f9711fd var(--v64-duration-long,.4s) var(--v64-ease-emphasized-decelerate,ease-out);align-items:center;gap:var(--v64-space-3);text-align:center;justify-items:center;min-width:0;max-width:min(24rem,100%);display:grid}.vibe64-learn-welcome__title[data-v-6f9711fd]{color:rgb(var(--v-theme-on-surface));font:var(--v64-type-headline-sm,600 1.5rem/2rem system-ui, sans-serif);letter-spacing:-.01em;margin:var(--v64-space-2) 0 0}.vibe64-learn-welcome__text[data-v-6f9711fd]{color:rgb(var(--v-theme-on-surface-variant));font:var(--v64-type-body-lg,400 1rem/1.5rem system-ui, sans-serif);margin:0}.vibe64-learn-welcome__choose[data-v-6f9711fd]{box-shadow:0 4px 14px var(--v64-learning-glow);letter-spacing:.01em;margin-top:var(--v64-space-2);text-transform:none;transition:transform var(--v64-duration-short,.15s) var(--v64-ease-standard,ease), box-shadow var(--v64-duration-short,.15s) var(--v64-ease-standard,ease);font-weight:700;background:var(--v64-learning)!important;color:var(--v64-on-learning)!important;padding-inline:var(--v64-space-6,1.5rem)!important}.vibe64-learn-welcome__choose[data-v-6f9711fd]:hover{box-shadow:0 6px 20px var(--v64-learning-glow);transform:translateY(-1px)}@keyframes vibe64-learn-welcome-in-6f9711fd{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.vibe64-learn-welcome[data-v-6f9711fd],.vibe64-learn-welcome__choose[data-v-6f9711fd]{transition:none;animation:none}}.studio-screen__no-project[data-v-6ab5b8c5]{flex:auto;min-height:0}.studio-screen__lesson-layout[data-v-6ab5b8c5]{border:1px solid rgb(var(--v-theme-outline-variant));border-radius:14px;min-width:0;height:100%;min-height:0;overflow:hidden}.studio-screen__no-project-text[data-v-6ab5b8c5]{color:rgb(var(--v-theme-on-surface-variant));gap:var(--v64-space-3);padding:var(--v64-space-4);justify-items:start;display:grid}.studio-screen__no-project-text p[data-v-6ab5b8c5]{margin:0}.studio-screen__choose-lesson[data-v-6ab5b8c5]{text-transform:none}.studio-screen__no-lesson-chat[data-v-6ab5b8c5]{min-width:0;min-height:0;padding:var(--v64-space-4) var(--v64-space-2);place-items:center;display:grid;overflow-y:auto}.studio-screen__no-lesson-note[data-v-6ab5b8c5]{color:rgb(var(--v-theme-on-surface-variant));font:var(--v64-type-body-md,400 .875rem/1.25rem system-ui, sans-serif);text-align:center;max-width:18rem;margin:0}.studio-screen__no-lesson-welcome[data-v-6ab5b8c5]{display:none}@media (width<=980px){.studio-screen__no-lesson-note[data-v-6ab5b8c5]{display:none}.studio-screen__no-lesson-welcome[data-v-6ab5b8c5]{display:grid}}.studio-home-shell-project-controls[data-v-865566b6]{flex:0 auto;align-items:center;gap:.45rem;min-width:0;display:flex}.studio-home-shell-chat-toggle[data-v-865566b6]{border-radius:var(--v64-shape-full);box-shadow:none;min-width:2.25rem;height:2.25rem;min-height:2.25rem;transition:background-color var(--v64-duration-short) var(--v64-ease-standard);border:0;flex:none;width:2.25rem;background:rgb(var(--v-theme-surface-container-high))!important;color:rgb(var(--v-theme-on-surface-variant))!important}.studio-home-shell-chat-toggle[data-v-865566b6]:hover{background:color-mix(in srgb, rgb(var(--v-theme-on-surface)) 8%, rgb(var(--v-theme-surface-container-high)))!important}.studio-home-shell-lesson-toggle[data-v-865566b6]{border-inline-start:1px solid rgb(var(--v-theme-outline-variant));flex:none;align-items:center;padding-inline-start:var(--studio-home-project-gap);display:inline-flex}.studio-home-shell-project-tabs[data-v-865566b6]{border:1px solid rgb(var(--v-theme-outline));border-radius:var(--v64-shape-full);flex:none;grid-auto-columns:minmax(5.25rem,1fr);grid-auto-flow:column;min-width:0;display:inline-grid;overflow:hidden}.studio-home-shell-project-tab[data-v-865566b6]{border:0;border-inline-start:1px solid rgb(var(--v-theme-outline));color:rgb(var(--v-theme-on-surface));cursor:pointer;font:var(--v64-type-label-lg);align-items:center;gap:var(--v64-space-1);letter-spacing:.01em;min-width:0;height:2.25rem;padding:0 var(--v64-space-3);transition:background-color var(--v64-duration-short) var(--v64-ease-standard), color var(--v64-duration-short) var(--v64-ease-standard);white-space:nowrap;background:0 0;justify-content:center;display:inline-flex;position:relative}.studio-home-shell-project-tab[data-v-865566b6]:first-child{border-inline-start:0}.studio-home-shell-project-tab[data-v-865566b6]:after{content:"";opacity:0;pointer-events:none;transition:opacity var(--v64-duration-short) var(--v64-ease-standard);background:currentColor;position:absolute;inset:0}.studio-home-shell-project-tab[data-v-865566b6]:hover:not(:disabled):after{opacity:var(--v64-state-hover)}.studio-home-shell-project-tab[data-v-865566b6]:active:not(:disabled):after{opacity:var(--v64-state-pressed)}.studio-home-shell-project-tab[data-v-865566b6]:focus-visible{outline:var(--v64-focus-ring-width) solid rgb(var(--v-theme-primary));outline-offset:-4px}.studio-home-shell-project-tab--active[data-v-865566b6]{background:rgb(var(--v-theme-secondary-container));color:rgb(var(--v-theme-on-secondary-container));font-weight:600}.studio-home-shell-project-tab--active[data-v-865566b6]:before{animation:studio-home-shell-check-in-865566b6 var(--v64-duration-medium) var(--v64-ease-emphasized-decelerate);content:"";height:1.125rem;-webkit-mask:var(--studio-home-shell-check) center / contain no-repeat;-webkit-mask:var(--studio-home-shell-check) center / contain no-repeat;mask:var(--studio-home-shell-check) center / contain no-repeat;background:currentColor;flex:none;width:1.125rem}.studio-home-shell-project-tabs[data-v-865566b6]{--studio-home-shell-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E")}.studio-home-shell-project-tab[data-v-865566b6]:disabled{color:color-mix(in srgb, rgb(var(--v-theme-on-surface)) 38%, transparent);cursor:not-allowed}@keyframes studio-home-shell-check-in-865566b6{0%{opacity:0;width:0}to{opacity:1;width:1.125rem}}.studio-home-shell-preview-toolbar-host[data-v-865566b6]{flex:auto;justify-content:flex-start;align-items:center;min-width:0;max-width:min(43rem,54vw);display:flex}.studio-home-shell-preview-toolbar-host[data-v-865566b6]:empty{display:none}.studio-home-shell-usage-recording-host[data-v-865566b6]{flex:0 auto;justify-content:flex-end;align-items:center;width:0;min-width:0;display:flex;position:absolute}.studio-home-shell-usage-recording-host[data-v-865566b6]:has(.usage-recording-indicator__pill){width:22rem;position:static}.studio-home-shell-project-mobile-action[data-v-865566b6]{background:rgb(var(--v-theme-secondary-container));border-radius:var(--v64-shape-full);color:rgb(var(--v-theme-on-secondary-container));cursor:pointer;font:var(--v64-type-label-lg);align-items:center;gap:var(--v64-space-1);letter-spacing:.01em;min-width:4.5rem;min-height:2.5rem;padding:0 var(--v64-space-2) 0 var(--v64-space-4);transition:background-color var(--v64-duration-short) var(--v64-ease-standard);white-space:nowrap;border:0;flex:none;justify-content:center;display:none;position:relative}.studio-home-shell-project-mobile-action__icon[data-v-865566b6]{display:none!important}.studio-home-shell-project-mobile-action[data-v-865566b6]:hover{background:color-mix(in srgb, rgb(var(--v-theme-on-secondary-container)) 8%, rgb(var(--v-theme-secondary-container)))}.studio-home-shell-project-mobile-action[data-v-865566b6]:focus-visible{outline:var(--v64-focus-ring-width) solid rgb(var(--v-theme-primary));outline-offset:var(--v64-focus-ring-offset)}@media (prefers-reduced-motion:reduce){.studio-home-shell-project-tab--active[data-v-865566b6]:before{animation:none}}@media (width<=980px){.studio-home-shell-project-controls[data-v-865566b6]{justify-content:flex-end;min-width:0;margin-left:auto;display:flex}.studio-home-shell-project-tabs--desktop[data-v-865566b6]{display:none}.studio-home-shell-project-mobile-action[data-v-865566b6]{display:inline-flex}.studio-home-shell-preview-toolbar-host[data-v-865566b6]{flex:0 auto;max-width:min(26rem,42vw)}.studio-home-shell-project-mobile-action[data-v-865566b6]{order:1}.studio-home-shell-preview-toolbar-host[data-v-865566b6]{order:2}}@media (width<=600px){.studio-home-shell-project-controls[data-v-865566b6]{flex:none;gap:.3rem}.studio-home-shell-preview-toolbar-host[data-v-865566b6]{max-width:min(12rem,32vw)}.studio-home-shell-project-mobile-action[data-v-865566b6]{min-width:4rem;padding-inline:var(--v64-space-3) var(--v64-space-1)}.studio-home-shell-chat-toggle[data-v-865566b6]{width:2.5rem;min-width:2.5rem;height:2.5rem;min-height:2.5rem}}@media (width<=480px){.studio-home-shell-project-mobile-action[data-v-865566b6]{width:2.5rem;min-width:2.5rem;padding:0}.studio-home-shell-project-mobile-action__icon[data-v-865566b6]{display:inline-flex!important}.studio-home-shell-project-mobile-action__label[data-v-865566b6],.studio-home-shell-project-mobile-action__chevron[data-v-865566b6]{display:none!important}}body.studio-home-shell-active{--studio-home-chat-column-width:32rem;--studio-home-project-gap:.75rem;--studio-control-bg:rgb(var(--v-theme-surface));--studio-control-rest-bg:rgb(var(--v-theme-surface-container-high));--studio-control-active-bg:rgb(var(--v-theme-secondary-container));--studio-control-border:rgb(var(--v-theme-outline-variant));--studio-control-border-strong:rgb(var(--v-theme-outline));--studio-control-text:rgb(var(--v-theme-on-surface));--studio-control-muted-text:rgb(var(--v-theme-on-surface-variant));--studio-control-radius:var(--v64-shape-md)}.generated-ui-screen[data-v-0446a70f]{--generated-ui-screen-title-size:clamp(1.2rem, 1.7vw, 1.55rem);--generated-ui-screen-panel-padding:0}.studio-screen[data-v-0446a70f]{flex:auto;width:100%;max-width:none;height:100%;min-height:0;margin-inline:0;overflow:hidden}.studio-screen__panel[data-v-0446a70f]{padding:var(--generated-ui-screen-panel-padding)}.studio-screen__gate-scroll[data-v-0446a70f]{flex-direction:column;flex:auto;min-height:0;display:flex;overflow:hidden}.studio-screen__gate-scroll[data-v-0446a70f] .project-selection-gate{flex-direction:column;flex:auto;min-height:0;display:flex}.studio-screen__gate-scroll[data-v-0446a70f] .project-selection-gate .studio-ai-sessions{flex:auto;min-height:0}.studio-home-shell-heading[data-v-0446a70f]{align-items:center;gap:var(--studio-home-project-gap);overflow-clip-margin:4px;flex:auto;min-width:0;display:flex;overflow-x:clip}.studio-home-shell-title-area[data-v-0446a70f]{flex:0 1000 var(--studio-home-chat-column-width);align-items:center;gap:.42rem;min-width:0;padding-left:1rem;display:flex}.studio-home-shell-heading--chat-collapsed .studio-home-shell-title-area[data-v-0446a70f]{flex-basis:auto}@media (width>=981px){.studio-home-shell-heading:not(.studio-home-shell-heading--chat-collapsed) .studio-home-shell-title-area[data-v-0446a70f]{width:calc(var(--studio-home-chat-column-edge,var(--studio-home-chat-column-width)) - var(--studio-home-project-gap) - 2.7rem);flex:0 1000 auto}}.studio-home-shell-project-name[data-v-0446a70f]{flex:0 auto;align-items:center;min-width:0;display:flex}.studio-home-shell-project-title[data-v-0446a70f]{flex:0 auto;min-width:0}.studio-home-shell-project-selector[data-v-0446a70f]{font:inherit;letter-spacing:inherit;text-transform:none;max-width:100%}.studio-home-shell-project-selector[data-v-0446a70f] .v-btn__append{color:rgb(var(--v-theme-on-surface-variant))}.studio-home-shell-github-actor-host[data-v-0446a70f]{flex:auto;align-items:center;min-width:0;min-height:1.65rem;display:flex;overflow:hidden}.studio-home-shell-github-actor-host[data-v-0446a70f]:empty{display:none}.studio-home-shell-local-remotes-host[data-v-0446a70f],.studio-home-shell-create-session-host[data-v-0446a70f]{flex:none;display:flex}.studio-home-shell-local-remotes-host[data-v-0446a70f]:empty,.studio-home-shell-create-session-host[data-v-0446a70f]:empty{display:none}.studio-home-shell-usage-recording-strip[data-v-0446a70f]{flex:none;width:0;position:absolute}.studio-home-shell-usage-recording-strip[data-v-0446a70f]:has(.usage-recording-indicator__pill){width:100%;position:static}@media (width>=981px){.studio-screen__gate-scroll[data-v-0446a70f] .project-selection-gate .studio-ai-sessions--autopilot{padding:0}}@media (width<=980px){.studio-home-shell-heading[data-v-0446a70f]{grid-template-columns:minmax(0,1fr) auto;gap:.5rem;width:100%;display:grid}}@media (width<=600px){.studio-home-shell-heading[data-v-0446a70f]{gap:var(--v64-space-1);flex:auto;width:100%;min-width:0;padding-left:0;display:flex}.studio-home-shell-title-area[data-v-0446a70f]{flex:auto;padding-left:0}.studio-home-shell-project-name[data-v-0446a70f]{flex:auto;overflow:hidden;container-type:inline-size}.studio-home-shell-github-actor-host[data-v-0446a70f]{flex:none}.studio-home-shell-github-actor-host[data-v-0446a70f] .studio-home-shell-session-github-actor{padding:0}.studio-home-shell-github-actor-host[data-v-0446a70f] .studio-home-shell-session-github-actor span{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.studio-home-shell-heading--chat-collapsed .studio-home-shell-create-session-host[data-v-0446a70f],.studio-home-shell-heading--chat-collapsed .studio-home-shell-local-remotes-host[data-v-0446a70f],.studio-home-shell-heading--chat-collapsed .studio-home-shell-github-actor-host[data-v-0446a70f]{display:none}.studio-home-shell-project-title[data-v-0446a70f]{padding-inline-start:.375rem}.studio-home-shell-local-remotes-host[data-v-0446a70f]{margin-inline-end:.375rem}.studio-home-shell-local-remotes-host[data-v-0446a70f] .local-remotes__branch{width:2.5rem!important}.studio-home-shell-title-area[data-v-0446a70f]{gap:var(--v64-space-1)}.studio-home-shell-create-session-host[data-v-0446a70f] .studio-ai-sessions__create-button{width:2.5rem;min-width:2.5rem;height:2.5rem;min-height:2.5rem}.studio-screen[data-v-0446a70f]{max-width:100%}}@container (width<=4rem){.studio-home-shell-project-title[data-v-0446a70f]{visibility:hidden}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Et as unref,G as renderList,H as openBlock,Xt as toDisplayString,b as createVNode,d as createBaseVNode,f as createBlock,i as Fragment,it as watch,m as createElementBlock,ot as withCtx,p as createCommentVNode,u as computed,vt as ref,y as createTextVNode}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{t as VChip}from"./VChip-tORFnf7z.js";import{t as useEndpointResource}from"./useEndpointResource-DZTjr9gg.js";import{t as VSelect}from"./VSelect-gYJ6qrBP.js";import{n as VAlert}from"./VSkeletonLoader-CQXCEJsR.js";import{t as VTextField}from"./VTextField-DP6b7Qaf.js";import{o as ROUTE_VISIBILITY_PUBLIC}from"./visibility-Cq31Xy7I.js";import{t as VBtn}from"./VBtn-Com1gNEe.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{t as useCommand}from"./useCommand-D-MIMmhp.js";import{o as reloadPage}from"./browser-D8z6v6Ge.js";import{O as previewIdentitiesQueryKey,S as VIBE64_PROJECT_CHANGED_EVENT,c as PREVIEW_IDENTITIES_ENDPOINT,x as VIBE64_PREVIEW_IDENTITIES_API_SUFFIX}from"./studioGateApi-UqmdV50W.js";import{N as useVibe64ProjectSlug}from"./index-JBqyg0mr.js";import{t as Vibe64AsyncModuleState_default}from"./Vibe64AsyncModuleState-CO1rMrtD.js";import{n as useVibe64SessionSelection}from"./useVibe64SessionSelection-BukDTAxb.js";var PREVIEW_IDENTITY_SELECTOR_EMAIL=`email`;var PREVIEW_IDENTITY_SELECTOR_LOGIN=`login`;var PREVIEW_IDENTITY_SELECTOR_USER_ID=`user-id`;var PREVIEW_IDENTITY_SELECTOR_TYPES=Object.freeze([PREVIEW_IDENTITY_SELECTOR_EMAIL,PREVIEW_IDENTITY_SELECTOR_LOGIN,PREVIEW_IDENTITY_SELECTOR_USER_ID]);var _hoisted_1$1={class:`preview-identity-settings`};var _hoisted_2={class:`preview-identity-settings__header`};var _hoisted_3={class:`preview-identity-settings__header-actions`};var _hoisted_4={key:1,class:`preview-identity-settings__section`};var _hoisted_5={class:`preview-identity-settings__list`};var _hoisted_6={class:`preview-identity-settings__fields`};var _hoisted_7={class:`preview-identity-settings__identity-actions`};var _hoisted_8={key:1,class:`preview-identity-settings__empty`};var _sfc_main$1={__name:`PreviewIdentitySettings`,setup(__props){const identityTypes=Object.freeze([{label:`Email`,value:PREVIEW_IDENTITY_SELECTOR_EMAIL},{label:`Login name`,value:PREVIEW_IDENTITY_SELECTOR_LOGIN},{label:`User ID`,value:PREVIEW_IDENTITY_SELECTOR_USER_ID}]);const projectSlug=useVibe64ProjectSlug();const selectedSessionId=useVibe64SessionSelection({projectSlug}).selectedId;const identities=ref([]);const savedIdentities=ref([]);const resource=useEndpointResource({fallbackLoadError:`Managed app identities could not load.`,path:PREVIEW_IDENTITIES_ENDPOINT,queryKey:computed(()=>[...previewIdentitiesQueryKey(`app`,ROUTE_VISIBILITY_PUBLIC,projectSlug.value),selectedSessionId.value||`baseline`]),readQuery:computed(()=>selectedSessionId.value?{sessionId:selectedSessionId.value}:{}),realtime:{event:VIBE64_PROJECT_CHANGED_EVENT},refreshOnPull:true,requestRecoveryLabel:`Managed app access`});const saveCommand=useCommand({access:`never`,apiSuffix:VIBE64_PREVIEW_IDENTITIES_API_SUFFIX,buildCommandOptions:()=>({method:`PUT`,path:PREVIEW_IDENTITIES_ENDPOINT}),buildRawPayload:(_model,{context})=>({identities:context.identities,...selectedSessionId.value?{sessionId:selectedSessionId.value}:{}}),fallbackRunError:`Managed app identities could not be saved.`,messages:{error:`Managed app identities could not be saved.`,success:`Managed app identities saved.`},ownershipFilter:ROUTE_VISIBILITY_PUBLIC,placementSource:`vibe64.preview-identities.save`,surfaceId:`app`,writeMethod:`PUT`});const loading=computed(()=>resource.isLoading.value===true);const loadError=computed(()=>String(resource.loadError.value||``));const saving=computed(()=>saveCommand.isRunning===true);const changed=computed(()=>JSON.stringify(identities.value)!==JSON.stringify(savedIdentities.value));const stale=ref(false);let draftSource=``;watch(()=>[resource.data.value?.identities,projectSlug.value,selectedSessionId.value||``],([value,slug,sessionId])=>{const source=JSON.stringify([slug,sessionId]);const dirty=changed.value;const previous=JSON.stringify(savedIdentities.value);savedIdentities.value=cloneIdentities(value);const saved=JSON.stringify(savedIdentities.value);if(source!==draftSource||!dirty)resetDraft();else if(saved!==previous)stale.value=saved!==JSON.stringify(identities.value);draftSource=source},{immediate:true});function resetDraft(){identities.value=cloneIdentities(savedIdentities.value);stale.value=false}function cloneIdentities(value=[]){return(Array.isArray(value)?value:[]).map(identity=>({name:String(identity?.name||``),type:String(identity?.type||``),value:String(identity?.value||``)}))}function identityPlaceholder(type=``){return{email:`admin@example.com`,login:`admin`,"user-id":`42`}[String(type||``)]||`Application identifier`}function addIdentity(){identities.value.push({name:``,type:`email`,value:``})}function removeIdentity(index=-1){identities.value.splice(index,1)}function makeDefault(index=-1){if(index<=0||index>=identities.value.length)return;identities.value.unshift(identities.value.splice(index,1)[0])}async function refresh(){await resource.reload()}async function save(){const saved=await saveCommand.run({identities:cloneIdentities(identities.value)});await resource.reload();if(saved!==null)resetDraft()}return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1$1,[createBaseVNode(`header`,_hoisted_2,[_cache[0]||(_cache[0]=createBaseVNode(`div`,null,[createBaseVNode(`h2`,{class:`text-headline-small font-weight-bold ma-0`},`Managed app access`),createBaseVNode(`p`,null,` Named existing application accounts for authenticated Preview and Playwright. The first identity is the default. `)],-1)),createBaseVNode(`div`,_hoisted_3,[createVNode(VBtn,{disabled:loading.value||saving.value,size:`small`,type:`button`,variant:`tonal`,onClick:refresh},{default:withCtx(()=>[createTextVNode(toDisplayString(loading.value?`Refreshing…`:`Refresh`),1)]),_:1},8,[`disabled`]),createVNode(VBtn,{color:`primary`,disabled:!changed.value||stale.value||loading.value||saving.value,size:`small`,type:`button`,variant:`flat`,onClick:save},{default:withCtx(()=>[createTextVNode(toDisplayString(saving.value?`Saving…`:`Save`),1)]),_:1},8,[`disabled`])])]),loading.value||loadError.value?(openBlock(),createBlock(Vibe64AsyncModuleState_default,{key:0,label:`Managed app access`,loading:loading.value,message:loadError.value||`Loading managed app identities.`,"min-height":`12rem`,onReload:unref(reloadPage),onRetry:refresh},null,8,[`loading`,`message`,`onReload`])):(openBlock(),createElementBlock(`section`,_hoisted_4,[_cache[7]||(_cache[7]=createBaseVNode(`div`,{class:`preview-identity-settings__section-copy`},[createBaseVNode(`h2`,null,`Managed app identities`),createBaseVNode(`p`,null,[createTextVNode(` Saved in `),createBaseVNode(`code`,null,`.vibe64/preview-identities.json`),createTextVNode(` in the active project source, so they follow the repository. These are application identifiers, not passwords or authentication secrets. `)])],-1)),createBaseVNode(`div`,_hoisted_5,[stale.value?(openBlock(),createBlock(VAlert,{key:0,type:`warning`,variant:`tonal`},{default:withCtx(()=>[_cache[2]||(_cache[2]=createTextVNode(` The saved identities changed while you were editing. Reload the saved identities and review your changes before saving. `,-1)),createVNode(VBtn,{variant:`text`,onClick:resetDraft},{default:withCtx(()=>[..._cache[1]||(_cache[1]=[createTextVNode(`Reload saved identities`,-1)])]),_:1})]),_:1})):createCommentVNode(``,true),(openBlock(true),createElementBlock(Fragment,null,renderList(identities.value,(identity,index)=>{return openBlock(),createElementBlock(`div`,{key:index,class:`preview-identity-settings__identity`},[createBaseVNode(`div`,_hoisted_6,[createVNode(VTextField,{modelValue:identity.name,"onUpdate:modelValue":$event=>identity.name=$event,autocomplete:`off`,density:`compact`,label:`Name`,placeholder:`admin`,variant:`outlined`},null,8,[`modelValue`,`onUpdate:modelValue`]),createVNode(VSelect,{modelValue:identity.type,"onUpdate:modelValue":$event=>identity.type=$event,density:`compact`,"item-title":`label`,"item-value":`value`,items:unref(identityTypes),label:`App identifier`,variant:`outlined`},null,8,[`modelValue`,`onUpdate:modelValue`,`items`]),createVNode(VTextField,{modelValue:identity.value,"onUpdate:modelValue":$event=>identity.value=$event,autocomplete:`off`,density:`compact`,label:`Application value`,placeholder:identityPlaceholder(identity.type),type:identity.type===`email`?`email`:`text`,variant:`outlined`},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`,`type`])]),createBaseVNode(`div`,_hoisted_7,[index===0?(openBlock(),createBlock(VChip,{key:0,color:`primary`,size:`small`,variant:`tonal`},{default:withCtx(()=>[..._cache[3]||(_cache[3]=[createTextVNode(` Default `,-1)])]),_:1})):(openBlock(),createBlock(VBtn,{key:1,size:`small`,type:`button`,variant:`text`,onClick:$event=>makeDefault(index)},{default:withCtx(()=>[..._cache[4]||(_cache[4]=[createTextVNode(` Make default `,-1)])]),_:1},8,[`onClick`])),createVNode(VBtn,{color:`error`,size:`small`,type:`button`,variant:`text`,onClick:$event=>removeIdentity(index)},{default:withCtx(()=>[..._cache[5]||(_cache[5]=[createTextVNode(` Remove `,-1)])]),_:1},8,[`onClick`])])])}),128)),identities.value.length===0?(openBlock(),createElementBlock(`p`,_hoisted_8,` No managed app identities are configured. Preview remains available as a guest when the application supports it. `)):createCommentVNode(``,true),createVNode(VBtn,{class:`preview-identity-settings__add`,size:`small`,type:`button`,variant:`outlined`,onClick:addIdentity},{default:withCtx(()=>[..._cache[6]||(_cache[6]=[createTextVNode(` Add identity `,-1)])]),_:1})])]))])}}};var PreviewIdentitySettings_default=_plugin_vue_export_helper_default(_sfc_main$1,[[`__scopeId`,`data-v-352c162a`]]);var _hoisted_1={class:`vibe64-dashboard-page`};var _sfc_main={__name:`index`,setup(__props){return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1,[createVNode(PreviewIdentitySettings_default)])}}};var access_default=_plugin_vue_export_helper_default(_sfc_main,[[`__scopeId`,`data-v-207f989d`]]);export{access_default as default};
|
|
1
|
+
import{Et as unref,G as renderList,H as openBlock,Xt as toDisplayString,b as createVNode,d as createBaseVNode,f as createBlock,i as Fragment,it as watch,m as createElementBlock,ot as withCtx,p as createCommentVNode,u as computed,vt as ref,y as createTextVNode}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{t as VChip}from"./VChip-tORFnf7z.js";import{t as useEndpointResource}from"./useEndpointResource-BwGXpV2u.js";import{t as VSelect}from"./VSelect-gYJ6qrBP.js";import{n as VAlert}from"./VSkeletonLoader-CQXCEJsR.js";import{t as VTextField}from"./VTextField-DP6b7Qaf.js";import{o as ROUTE_VISIBILITY_PUBLIC}from"./visibility-Cq31Xy7I.js";import{t as VBtn}from"./VBtn-Com1gNEe.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{t as useCommand}from"./useCommand-CfqxMb4C.js";import{o as reloadPage}from"./browser-D8z6v6Ge.js";import{O as previewIdentitiesQueryKey,S as VIBE64_PROJECT_CHANGED_EVENT,c as PREVIEW_IDENTITIES_ENDPOINT,x as VIBE64_PREVIEW_IDENTITIES_API_SUFFIX}from"./studioGateApi-B9EUTtMx.js";import{M as useVibe64ProjectSlug}from"./index-FVeEbKiO.js";import{t as Vibe64AsyncModuleState_default}from"./Vibe64AsyncModuleState-CO1rMrtD.js";import{n as useVibe64SessionSelection}from"./useVibe64SessionSelection-BwjtqeIR.js";var PREVIEW_IDENTITY_SELECTOR_EMAIL=`email`;var PREVIEW_IDENTITY_SELECTOR_LOGIN=`login`;var PREVIEW_IDENTITY_SELECTOR_USER_ID=`user-id`;var PREVIEW_IDENTITY_SELECTOR_TYPES=Object.freeze([PREVIEW_IDENTITY_SELECTOR_EMAIL,PREVIEW_IDENTITY_SELECTOR_LOGIN,PREVIEW_IDENTITY_SELECTOR_USER_ID]);var _hoisted_1$1={class:`preview-identity-settings`};var _hoisted_2={class:`preview-identity-settings__header`};var _hoisted_3={class:`preview-identity-settings__header-actions`};var _hoisted_4={key:1,class:`preview-identity-settings__section`};var _hoisted_5={class:`preview-identity-settings__list`};var _hoisted_6={class:`preview-identity-settings__fields`};var _hoisted_7={class:`preview-identity-settings__identity-actions`};var _hoisted_8={key:1,class:`preview-identity-settings__empty`};var _sfc_main$1={__name:`PreviewIdentitySettings`,setup(__props){const identityTypes=Object.freeze([{label:`Email`,value:PREVIEW_IDENTITY_SELECTOR_EMAIL},{label:`Login name`,value:PREVIEW_IDENTITY_SELECTOR_LOGIN},{label:`User ID`,value:PREVIEW_IDENTITY_SELECTOR_USER_ID}]);const projectSlug=useVibe64ProjectSlug();const selectedSessionId=useVibe64SessionSelection({projectSlug}).selectedId;const identities=ref([]);const savedIdentities=ref([]);const resource=useEndpointResource({fallbackLoadError:`Managed app identities could not load.`,path:PREVIEW_IDENTITIES_ENDPOINT,queryKey:computed(()=>[...previewIdentitiesQueryKey(`app`,ROUTE_VISIBILITY_PUBLIC,projectSlug.value),selectedSessionId.value||`baseline`]),readQuery:computed(()=>selectedSessionId.value?{sessionId:selectedSessionId.value}:{}),realtime:{event:VIBE64_PROJECT_CHANGED_EVENT},refreshOnPull:true,requestRecoveryLabel:`Managed app access`});const saveCommand=useCommand({access:`never`,apiSuffix:VIBE64_PREVIEW_IDENTITIES_API_SUFFIX,buildCommandOptions:()=>({method:`PUT`,path:PREVIEW_IDENTITIES_ENDPOINT}),buildRawPayload:(_model,{context})=>({identities:context.identities,...selectedSessionId.value?{sessionId:selectedSessionId.value}:{}}),fallbackRunError:`Managed app identities could not be saved.`,messages:{error:`Managed app identities could not be saved.`,success:`Managed app identities saved.`},ownershipFilter:ROUTE_VISIBILITY_PUBLIC,placementSource:`vibe64.preview-identities.save`,surfaceId:`app`,writeMethod:`PUT`});const loading=computed(()=>resource.isLoading.value===true);const loadError=computed(()=>String(resource.loadError.value||``));const saving=computed(()=>saveCommand.isRunning===true);const changed=computed(()=>JSON.stringify(identities.value)!==JSON.stringify(savedIdentities.value));const stale=ref(false);let draftSource=``;watch(()=>[resource.data.value?.identities,projectSlug.value,selectedSessionId.value||``],([value,slug,sessionId])=>{const source=JSON.stringify([slug,sessionId]);const dirty=changed.value;const previous=JSON.stringify(savedIdentities.value);savedIdentities.value=cloneIdentities(value);const saved=JSON.stringify(savedIdentities.value);if(source!==draftSource||!dirty)resetDraft();else if(saved!==previous)stale.value=saved!==JSON.stringify(identities.value);draftSource=source},{immediate:true});function resetDraft(){identities.value=cloneIdentities(savedIdentities.value);stale.value=false}function cloneIdentities(value=[]){return(Array.isArray(value)?value:[]).map(identity=>({name:String(identity?.name||``),type:String(identity?.type||``),value:String(identity?.value||``)}))}function identityPlaceholder(type=``){return{email:`admin@example.com`,login:`admin`,"user-id":`42`}[String(type||``)]||`Application identifier`}function addIdentity(){identities.value.push({name:``,type:`email`,value:``})}function removeIdentity(index=-1){identities.value.splice(index,1)}function makeDefault(index=-1){if(index<=0||index>=identities.value.length)return;identities.value.unshift(identities.value.splice(index,1)[0])}async function refresh(){await resource.reload()}async function save(){const saved=await saveCommand.run({identities:cloneIdentities(identities.value)});await resource.reload();if(saved!==null)resetDraft()}return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1$1,[createBaseVNode(`header`,_hoisted_2,[_cache[0]||(_cache[0]=createBaseVNode(`div`,null,[createBaseVNode(`h2`,{class:`text-headline-small font-weight-bold ma-0`},`Managed app access`),createBaseVNode(`p`,null,` Named existing application accounts for authenticated Preview and Playwright. The first identity is the default. `)],-1)),createBaseVNode(`div`,_hoisted_3,[createVNode(VBtn,{disabled:loading.value||saving.value,size:`small`,type:`button`,variant:`tonal`,onClick:refresh},{default:withCtx(()=>[createTextVNode(toDisplayString(loading.value?`Refreshing…`:`Refresh`),1)]),_:1},8,[`disabled`]),createVNode(VBtn,{color:`primary`,disabled:!changed.value||stale.value||loading.value||saving.value,size:`small`,type:`button`,variant:`flat`,onClick:save},{default:withCtx(()=>[createTextVNode(toDisplayString(saving.value?`Saving…`:`Save`),1)]),_:1},8,[`disabled`])])]),loading.value||loadError.value?(openBlock(),createBlock(Vibe64AsyncModuleState_default,{key:0,label:`Managed app access`,loading:loading.value,message:loadError.value||`Loading managed app identities.`,"min-height":`12rem`,onReload:unref(reloadPage),onRetry:refresh},null,8,[`loading`,`message`,`onReload`])):(openBlock(),createElementBlock(`section`,_hoisted_4,[_cache[7]||(_cache[7]=createBaseVNode(`div`,{class:`preview-identity-settings__section-copy`},[createBaseVNode(`h2`,null,`Managed app identities`),createBaseVNode(`p`,null,[createTextVNode(` Saved in `),createBaseVNode(`code`,null,`.vibe64/preview-identities.json`),createTextVNode(` in the active project source, so they follow the repository. These are application identifiers, not passwords or authentication secrets. `)])],-1)),createBaseVNode(`div`,_hoisted_5,[stale.value?(openBlock(),createBlock(VAlert,{key:0,type:`warning`,variant:`tonal`},{default:withCtx(()=>[_cache[2]||(_cache[2]=createTextVNode(` The saved identities changed while you were editing. Reload the saved identities and review your changes before saving. `,-1)),createVNode(VBtn,{variant:`text`,onClick:resetDraft},{default:withCtx(()=>[..._cache[1]||(_cache[1]=[createTextVNode(`Reload saved identities`,-1)])]),_:1})]),_:1})):createCommentVNode(``,true),(openBlock(true),createElementBlock(Fragment,null,renderList(identities.value,(identity,index)=>{return openBlock(),createElementBlock(`div`,{key:index,class:`preview-identity-settings__identity`},[createBaseVNode(`div`,_hoisted_6,[createVNode(VTextField,{modelValue:identity.name,"onUpdate:modelValue":$event=>identity.name=$event,autocomplete:`off`,density:`compact`,label:`Name`,placeholder:`admin`,variant:`outlined`},null,8,[`modelValue`,`onUpdate:modelValue`]),createVNode(VSelect,{modelValue:identity.type,"onUpdate:modelValue":$event=>identity.type=$event,density:`compact`,"item-title":`label`,"item-value":`value`,items:unref(identityTypes),label:`App identifier`,variant:`outlined`},null,8,[`modelValue`,`onUpdate:modelValue`,`items`]),createVNode(VTextField,{modelValue:identity.value,"onUpdate:modelValue":$event=>identity.value=$event,autocomplete:`off`,density:`compact`,label:`Application value`,placeholder:identityPlaceholder(identity.type),type:identity.type===`email`?`email`:`text`,variant:`outlined`},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`,`type`])]),createBaseVNode(`div`,_hoisted_7,[index===0?(openBlock(),createBlock(VChip,{key:0,color:`primary`,size:`small`,variant:`tonal`},{default:withCtx(()=>[..._cache[3]||(_cache[3]=[createTextVNode(` Default `,-1)])]),_:1})):(openBlock(),createBlock(VBtn,{key:1,size:`small`,type:`button`,variant:`text`,onClick:$event=>makeDefault(index)},{default:withCtx(()=>[..._cache[4]||(_cache[4]=[createTextVNode(` Make default `,-1)])]),_:1},8,[`onClick`])),createVNode(VBtn,{color:`error`,size:`small`,type:`button`,variant:`text`,onClick:$event=>removeIdentity(index)},{default:withCtx(()=>[..._cache[5]||(_cache[5]=[createTextVNode(` Remove `,-1)])]),_:1},8,[`onClick`])])])}),128)),identities.value.length===0?(openBlock(),createElementBlock(`p`,_hoisted_8,` No managed app identities are configured. Preview remains available as a guest when the application supports it. `)):createCommentVNode(``,true),createVNode(VBtn,{class:`preview-identity-settings__add`,size:`small`,type:`button`,variant:`outlined`,onClick:addIdentity},{default:withCtx(()=>[..._cache[6]||(_cache[6]=[createTextVNode(` Add identity `,-1)])]),_:1})])]))])}}};var PreviewIdentitySettings_default=_plugin_vue_export_helper_default(_sfc_main$1,[[`__scopeId`,`data-v-352c162a`]]);var _hoisted_1={class:`vibe64-dashboard-page`};var _sfc_main={__name:`index`,setup(__props){return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1,[createVNode(PreviewIdentitySettings_default)])}}};var access_default=_plugin_vue_export_helper_default(_sfc_main,[[`__scopeId`,`data-v-207f989d`]]);export{access_default as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{H as openBlock,b as createVNode,d as createBaseVNode,f as createBlock,it as watch,ot as withCtx,vt as ref,y as createTextVNode}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{_ as useRouter}from"./useApi-BPuI6ZR9-rsYWyW6m.js";import{t as VSkeletonLoader}from"./VSkeletonLoader-CQXCEJsR.js";import{t as useVibe64Learning}from"./useVibe64Learning-
|
|
1
|
+
import{H as openBlock,b as createVNode,d as createBaseVNode,f as createBlock,it as watch,ot as withCtx,vt as ref,y as createTextVNode}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{_ as useRouter}from"./useApi-BPuI6ZR9-rsYWyW6m.js";import{t as VSkeletonLoader}from"./VSkeletonLoader-CQXCEJsR.js";import{t as useVibe64Learning}from"./useVibe64Learning-DkneotqS.js";import{n as StudioAppShellLayout_default,t as Vibe64AuthSettingsButton_default}from"./Vibe64AuthSettingsButton-Cksj7FS6.js";import{t as VBtn}from"./VBtn-Com1gNEe.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{t as StudioErrorNotice_default}from"./StudioErrorNotice-vDR4qneB.js";import{t as route_block_default}from"./route-block-DbL-SuOj.js";var _hoisted_1={class:`vibe64-app-resolver`};var _sfc_main={__name:`index`,setup(__props){const router=useRouter();const learning=useVibe64Learning();const error=ref(``);let resolving=false;async function startedProjectPath(){const response=await globalThis.fetch(`/app`,{method:`HEAD`,credentials:`same-origin`});const path=new URL(response.url).pathname.replace(/\/+$/u,``);return path.startsWith(`/app/project/`)?path:``}async function resolve(){if(resolving)return;resolving=true;error.value=``;try{if(learning.learnMode){await router.replace(learning.modePlace());return}const path=await startedProjectPath();if(!path)throw new Error(`This Vibe64 has no started project. Start Vibe64 in a project folder.`);await router.replace(path)}catch(cause){error.value=String(cause?.message||`Your project could not be opened. Try again.`)}finally{resolving=false}}watch(()=>learning.state.modeRead,ready=>{if(ready)resolve()},{immediate:true});return(_ctx,_cache)=>{return openBlock(),createBlock(StudioAppShellLayout_default,null,{"top-right":withCtx(()=>[createVNode(Vibe64AuthSettingsButton_default)]),default:withCtx(()=>[createBaseVNode(`section`,_hoisted_1,[error.value?(openBlock(),createBlock(StudioErrorNotice_default,{key:0,title:`Project could not open`,error:error.value,compact:``},{actions:withCtx(()=>[createVNode(VBtn,{color:`primary`,variant:`flat`,onClick:resolve},{default:withCtx(()=>[..._cache[0]||(_cache[0]=[createTextVNode(`Try again`,-1)])]),_:1})]),_:1},8,[`error`])):(openBlock(),createBlock(VSkeletonLoader,{key:1,type:`article`,"aria-label":`Opening your project`}))])]),_:1})}}};if(typeof route_block_default===`function`)route_block_default(_sfc_main);var app_default=_plugin_vue_export_helper_default(_sfc_main,[[`__scopeId`,`data-v-6e6d71eb`]]);export{app_default as default};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{t as AppError}from"./errors-D17nJYne.js";import{b as sameVibe64AssistantSelection,c as vibe64AssistantSelectionLabel,y as defineVibe64AssistantSelection}from"./shared-B6plZPQ_.js";var AFTER_PLAN_PASS_ORDER=Object.freeze([`review`,`security-pass`,`data-pass`,`quality-pass`,`speed-pass`,`ux-pass`,`identity-pass`,`ui-pass`,`deslop`]);var AFTER_PLAN_MANDATORY_PASSES=Object.freeze([`review`,`security-pass`]);var AFTER_PLAN_DEFAULT_PASSES=Object.freeze([`review`,`security-pass`,`data-pass`,`quality-pass`,`ui-pass`,`deslop`]);var AFTER_PLAN_PASS_TITLES=Object.freeze({review:`Review`,"security-pass":`Security pass`,"data-pass":`Data pass`,"quality-pass":`Quality pass`,"speed-pass":`Speed pass`,"ux-pass":`User experience pass`,"identity-pass":`Visual identity`,"ui-pass":`UI pass`,deslop:`Deslop`});var ASSISTANT_FINISHING_DEFAULTS=Object.freeze({afterPlan:AFTER_PLAN_DEFAULT_PASSES,afterPlanDeep:Object.freeze([]),autoSave:true});var ASSISTANT_NO_FINISHING=Object.freeze({afterPlan:AFTER_PLAN_MANDATORY_PASSES,afterPlanDeep:Object.freeze([]),autoSave:false});var AUTO_SAVE_SETTING=`Automatically save changes`;function afterPlanChoiceProblem(afterPlan,afterPlanDeep){const known=list=>Array.isArray(list)&&list.every(id=>AFTER_PLAN_PASS_ORDER.includes(id));if(!known(afterPlan)||!known(afterPlanDeep))return`After a plan takes the passes ${AFTER_PLAN_PASS_ORDER.join(`, `)}.`;if(!AFTER_PLAN_MANDATORY_PASSES.every(id=>afterPlan.includes(id)))return`Review and Security pass always run after a plan; they can't be unticked.`;if(afterPlanDeep.some(id=>!afterPlan.includes(id)))return`Tick After a plan for a pass before ticking Deeply.`;return``}var inAfterPlanOrder=ids=>AFTER_PLAN_PASS_ORDER.filter(id=>ids.includes(id));var ASSISTANT_PLAN_COMPLETION_MESSAGE=[`Plan completion:`,`Read every page of BOTH Plan and Progress, including the complete technical implementation plan; checklist marks do not establish completion.`,`Verify each agreed requirement against the preceding implementation, my request, accepted steering and the recorded evidence. Inspect the implementation, fix in-scope gaps and run relevant checks. Leave unrelated plans unchanged.`,`Then explicitly complete the plan with the plan helper when every requirement is verified, and report complete with the returned revisions; otherwise leave Plan active, record the specific gaps and verification evidence in its paired Progress document, and report wait, or report handoff for substantial necessary rework.`,`This turn checks the plan only: run no Deslop, UI pass or other pass. Once the plan is completed, Vibe64 runs the passes this chat ticks in Passes (After a plan) as their own turns.`,`Do not ask for permission merely to verify or complete verified work. Report findings, fixes, actual checks and anything unverified.`].join(` `);var ASSISTANT_MODES=Object.freeze([{id:`custom`,label:`Custom`,description:`Choose a model and thinking level for this chat.`},{id:`senior`,label:`Senior`,description:`Talk directly to your most capable model. Ask questions or request changes.`},{id:`junior`,label:`Junior`,description:`Talk directly to your everyday model. Ask questions or request changes.`},{id:`auto`,label:`Auto`,description:`Name either role, or let Senior handle plans and reviews and Junior handle other requests.`}]);var ASSISTANT_FIX_MODE=Object.freeze({id:`fix`,label:`Fix it with AI`,description:`Repair what went wrong with the Fix it with AI model.`});var ASSISTANT_ROUTING_METADATA=`assistant_routing`;var ASSISTANT_SETUP_ROLES=Object.freeze({owner:Object.freeze([`senior`,`junior`,`router`,`colleague`,`fix`,`explain`,`quickHelper`]),nonOwner:Object.freeze([`colleague`,`fix`,`explain`,`quickHelper`])});var ASSISTANT_FOLLOWING_ROLES=Object.freeze([`colleague`,`fix`,`explain`]);var ASSISTANT_ROUTING_ROLE_DEFINITIONS=Object.freeze([{id:`senior`,label:`Senior`,description:`Plans, reviews and passes in main chat. Your most capable model.`,group:`main`},{id:`junior`,label:`Junior`,description:`Everyday changes in main chat.`,group:`main`},{id:`router`,label:`Router`,description:`Chooses Senior or Junior when main chat is on Auto.`,group:`main`},{id:`colleague`,label:`Colleague`,description:`The default for Colleague. Each person can change their own.`,group:`helpers`},{id:`fix`,label:`Fix it with AI`,description:`Repair chats opened from errors and conflicts. Can run in a different tool from the chat it fixes.`,group:`helpers`},{id:`explain`,label:`Explain & check`,description:`Explain this code, the database assistant and Check my work.`,group:`helpers`},{id:`quickHelper`,label:`Quick helper`,description:`Titles, commit messages, prompt hints and summaries.`,group:`helpers`}].map(Object.freeze));var ASSISTANT_ROLE_DEFAULT_FOLLOWS=Object.freeze({owner:Object.freeze({colleague:`senior`,fix:`junior`,explain:`quickHelper`}),nonOwner:Object.freeze({fix:`colleague`,explain:`quickHelper`})});var ROUTING_REASONS=Object.freeze([`conversation`,`planning`,`implementation`,`review`]);var MAIN_CHAT_PURPOSES=Object.freeze([`custom`,`senior`,`junior`,`auto`,`review`,`deslop`,`ui_pass`,`pass`,`request_routing`]);var ASSISTANT_PURPOSE_ROLES=Object.freeze({custom:`custom`,senior:`senior`,junior:`junior`,review:`senior`,deslop:`senior`,ui_pass:`senior`,pass:`senior`,request_routing:`router`,colleague:`colleague`,fix:`fix`,source_explanation:`explain`,database_assistant:`explain`,lesson_review:`explain`,commit_title:`quickHelper`,session_title:`quickHelper`,prompt_hint:`quickHelper`,conversation_summary:`quickHelper`,voice_turn:`quickHelper`,quick_helper:`quickHelper`});var ASSISTANT_ROLE_PURPOSES=Object.freeze({senior:`senior`,junior:`junior`,router:`request_routing`,colleague:`colleague`,fix:`fix`,explain:`source_explanation`,quickHelper:`prompt_hint`});function assistantModeLabel(mode){return ASSISTANT_MODES.find(({id})=>id===mode)?.label||(mode===`fix`?ASSISTANT_FIX_MODE.label:``)||{review:`Senior review`,deslop:`Senior Deslop`,ui_pass:`Senior UI pass`,pass:`Senior pass`}[mode]||ASSISTANT_ROUTING_ROLE_DEFINITIONS.find(({id})=>id===mode)?.label||``}function routingError(message,code,options={}){return new AppError(409,message,{...options,code})}var upgradeRequired=()=>routingError(`This saved request predates the current AI setup. The administrator must run the state upgrade.`,`vibe64_assistant_routing_upgrade_required`);var choosesAutomation=mode=>mode!==`fix`;function assistantRoutingPreferences(value={}){if(!value||typeof value!==`object`||Array.isArray(value)||![...ASSISTANT_MODES,ASSISTANT_FIX_MODE].some(({id})=>id===value.mode))throw routingError(`Choose Custom, Senior, Junior, or Auto.`,`vibe64_assistant_mode_invalid`);if(Object.hasOwn(value,`workflowEngineId`))throw upgradeRequired();if(value.mode===`custom`&&!value.override)throw routingError(`Choose a custom model first.`,`vibe64_assistant_custom_model_required`);const automation=choosesAutomation(value.mode)?assistantRoutingAutomation(value):ASSISTANT_NO_FINISHING;const problem=afterPlanChoiceProblem(automation.afterPlan,automation.afterPlanDeep);if(problem)throw routingError(problem,`vibe64_assistant_after_plan_invalid`);if(typeof automation.autoSave!==`boolean`)throw routingError(`Automatically save changes is either on or off.`,`vibe64_assistant_auto_save_invalid`);return{mode:value.mode,afterPlan:inAfterPlanOrder(automation.afterPlan),afterPlanDeep:inAfterPlanOrder(automation.afterPlanDeep),autoSave:automation.autoSave,...value.override&&![`auto`,`fix`].includes(value.mode)?{override:defineVibe64AssistantSelection(value.override)}:{}}}function assistantRoutingAutomation(value){const chosen=value&&choosesAutomation(value.mode)?value:{};return Object.fromEntries(Object.keys(ASSISTANT_FINISHING_DEFAULTS).map(id=>[id,chosen[id]===void 0?ASSISTANT_FINISHING_DEFAULTS[id]:chosen[id]]))}function savedAssistantRouting(saved){if(saved&&typeof saved===`object`&&!Array.isArray(saved.afterPlan))throw upgradeRequired();return assistantRoutingPreferences(saved)}function assistantRoutingFromMetadata(metadata={}){if(!metadata[`assistant_routing`])return null;return savedAssistantRouting(JSON.parse(metadata[ASSISTANT_ROUTING_METADATA]))}var assistantRoutingRequestFromMetadata=metadata=>JSON.parse(metadata?.assistant_routing_request||`null`);function assistantRoutingRequestForDisplay(metadata={}){try{return assistantRoutingRequestFromMetadata(metadata)}catch{return null}}var goalStatusIsComplete=status=>status===`complete`||status===`completed`;var assistantGoalIsActive=goal=>Boolean(goal)&&!goalStatusIsComplete(goal.status);var ASSISTANT_WORKFLOW_STATUSES=Object.freeze([`working`,`waiting`,`complete`]);var ASSISTANT_WORKFLOW_DELIVERIES=Object.freeze([`routing`,`pending`,`sending`,`uncertain`,`accepted`,`failed`]);var assistantWorkflowRole=request=>request.stage===`pass`||request.stage===`review`&&request.followup&&request.mode===`auto`?`senior`:request.resolvedMode;var assistantAfterPlanPass=request=>request?.stage===`pass`&&request.passChain?.passes?.[request.passChain.index]||null;function assistantSetupRoleValue(setupValues,role){const value=setupValues[role];return value?.follows?{value:setupValues[value.follows]??null,followedRole:value.follows}:{value:value??null,followedRole:``}}function assistantRoutingStatusIsPending(request){return request?.status!==`complete`&&[`routing`,`pending`,`sending`,`uncertain`].includes(request?.delivery)}function assistantRoutingRequestCanBeReplaced(request,selection){if(request?.helper)return false;if(request?.cancelled)return true;const previous=request?.deliverySelection||request?.observedSelection;if(request?.stopped&&previous&&selection&&!sameVibe64AssistantSelection(previous,selection))return true;return request?.delivery===`pending`&&(request.status===`waiting`||Boolean(request.error))&&!request.attemptedMessageId}function assistantRoutingRequestIsUnresolved(request,selection){return assistantRoutingStatusIsPending(request)&&!assistantRoutingRequestCanBeReplaced(request,selection)}function assistantModePrompt(mode,message,options={}){let{planInstructions=``,intent=``,browserReview=false}=options;const{rework=`junior`}=options;const direct=`Work directly from the user's request and conversation, answering questions or implementing changes as requested. You may edit application files when requested. Make ordinary local choices using established project patterns, ask about unresolved scope or design decisions, preserve unrelated work, and verify changes with relevant checks.`;const instructions={custom:direct,senior:direct,junior:direct,fix:direct,deslop:[`Perform Deslop directly using the project's Deslop guidance.`,`You may edit code for behavior-preserving cleanup; earlier Auto planning restrictions do not apply.`,`Preserve existing behavior, unrelated work and staging.`,`Use the user's selected commits or scope; otherwise clean up only the current task's changes.`,`Do not implement features, fix behavior-changing defects, create an implementation plan, or delegate cleanup to another model.`,`Report discovered defects separately without fixing them.`,`Run focused checks, then report what became simpler and what was verified.`,`Do not commit, push or deploy.`].join(` `),ui_pass:[`Perform the UI pass directly using the project's UI pass guidance, on the scope this request names.`,`You may edit code to bring those screens in line with the project's UI guidance; earlier Auto planning restrictions do not apply.`,`Preserve each screen's behavior, unrelated work and staging.`,`Do not implement features, fix behavior-changing defects, create an implementation plan, or delegate the pass to another model.`,`Report discovered defects separately without fixing them.`,`Check the screens you changed in the managed browser, run focused checks, then report what changed and what was verified.`,`Do not commit, push or deploy.`].join(` `),pass:`Perform the pass this request names directly, following the project's guidance for it. You may edit code for it; earlier Auto planning restrictions do not apply. Preserve unrelated work and staging. Do not implement features the pass does not call for, create an implementation plan, or delegate the pass to another model. Report discovered defects outside the pass separately without fixing them. Run focused checks, and check the screens you changed in the managed browser, then report what changed and what was verified. Do not commit, push or deploy.`,review:[`Review the preceding coding work against the original request and accepted steering.`,`Inspect actual files and relevant surrounding code. You may directly fix in-scope defects.`,`Earlier Auto planning restrictions do not apply.`,`Preserve unrelated work and staging, and report out-of-scope defects without fixing them.`,`For a cleanup-only request, apply the project's Deslop guidance and preserve behavior; report behavior-changing defects separately without fixing them.`,`Perform the review yourself in this turn. Cleanup is optional and only runs when requested in this review's instructions.`,`If implementation is missing or coding stopped for a decision, report that and preserve the decision for the user; do not start the original implementation from scratch.`,`Run relevant checks, then report findings, fixes, actual checks and anything unverified.`,`You own browser verification for this review. Exercise the requested user flow and inspect meaningful visual checkpoints yourself using the supplied managed browser tools; the implementer's code tests do not replace these checks. Reuse reliable passing evidence and avoid repeating unaffected checks. Report browser or visual checks that could not be performed, and do not claim verified completion while required checks remain unfinished.`,`Do not Save, push or invent new product requirements. For substantial necessary rework within the agreed outcome, `+{junior:`update the technical plan and hand back to Junior through the workflow outcome command. Junior's rework then returns to Senior to check and complete the plan.`,self:`return to your own implementation through the workflow outcome command.`,report:`report what it needs instead of starting it in this review.`}[rework]].join(` `)};if(!instructions[mode])throw routingError(`Unknown assistant mode.`,`vibe64_assistant_mode_unknown`);let instruction=instructions[intent]||instructions[mode];switch(intent){case`conversation`:instruction=`Answer or investigate the user's question. You may use vibe64-helper plan read or history to inspect a referenced plan. Do not create or update a plan, change its status, edit application files, run state-changing operations, or delegate implementation. Explain missing or completed plans without reopening them.`;break;case`planning`:instruction=`Discuss and manage the plan as requested through vibe64-helper plan. Do not change application files in a planning-only request. Clarify ambiguous references before changing a plan. Junior may update paired Progress and existing checklist ticks as work is verified; agreed Plan scope and lifecycle changes require Senior.`;break;case`implementation`:instruction=direct+` Implement the requested work, including any explicitly requested planning changes within your role's authority. `+`For a plan's explicitly authorised removal or deferral, record the exact deferred requirement and its agreed timing in a Deferred work section of paired Progress before removing it from Plan's current acceptance scope. Preserve completed implementation evidence and do not perform deferred work. Reassess the remaining requirements against that evidence; if none remain to implement, hand off for review rather than treating the scope edit as planning-only. Junior still cannot edit Plan scope. `+`Continue until the authorised scope is implemented and checked. Task size, context compaction, or finishing one useful slice is not a reason to end the task. `+`Stop for an unresolved architectural or product decision outside the agreed scope only where it blocks the remaining work; continue independent authorised work. `+`The latest execution request supersedes earlier planning-only wording, while explicit remaining approval boundaries still apply. `+`If work remains, lead with Implementation incomplete and name the exact blocker and unfinished scope; never open with Done for partial implementation. `+(mode===`senior`?`When this request implements a plan, verify every agreed requirement, then complete the plan yourself with the plan helper; leave it active with the gaps in Progress while any remain. `:`When this request implements a plan, leave the plan active: Senior checks and completes it in its own turn after yours; do not request permission for that turn. `)+`A completed plan starts the passes this chat ticks in Passes (After a plan), each in its own turn; never start a pass on your own in this turn.`}if(!planInstructions&&intent!==`conversation`)planInstructions=`This direct request is independent of the current Auto plan unless the user explicitly refers to it. Senior may use vibe64-helper plan to manage it; Junior may update Progress and existing checklist ticks after reading both documents, never change scope or mark the plan completed.`;const seniorTurns=[`review`,`deslop`,`ui_pass`,`pass`];if(![...seniorTurns,`conversation`,`planning`].includes(intent)&&!seniorTurns.includes(mode)){instruction+=` When the requested feature is implemented, its required runtime resources are prepared and Preview is responding, promptly tell the user: Ready to try—give it a spin. Verification is still running. Do not claim full completion before verification, and do not wait for the user to test before continuing your checks. If Preview is unavailable, report that instead of inviting the user to try it.`;instruction+=browserReview?` A separate Senior review owns in-depth browser testing and visual inspection. Do not run those checks in this implementation turn. Run relevant focused code tests and basic smoke checks: confirm server startup, relevant routes and API responses, and if needed make a brief managed-browser check that the changed page renders and its main control is present. Leave full end-to-end browser suites, multi-step user journeys and visual inspection to Senior; do not expand the smoke check into those checks. Prepare the app and report exact checks, remaining gaps and browser acceptance cases to Senior; browser verification pending is an expected handoff, not an implementation blocker. Tell the user that Senior will perform the remaining browser checks.`:` You own the remaining verification, including relevant browser checks and visual inspection using the supplied tools. Tell the user those checks are next, keep the app usable during checking and report anything unverified if checking is interrupted or unavailable.`}return`[Vibe64 role: ${assistantModeLabel(mode)}. Applies only to this request; earlier per-turn mode instructions no longer apply.]\n${instruction}${planInstructions?`\n${planInstructions}`:``}\n\n${message}`}function assistantGoalObjective(objective,pinned){if(pinned?.objective&&[`custom`,`senior`,`junior`].some(mode=>objective===assistantModePrompt(mode,pinned.objective)))return pinned.objective;return objective}function assistantGoalManagementMessage(message,turn={}){if(!message||message.receipt===false||turn.user?.receipt===false||turn.optimistic&&turn.optimistic.status!==`accepted`||turn.system?.delivery)return false;const native=message.data?.native;if(!(turn.metadata?.engineId===`claude`||turn.metadata?.assistantSelection?.engineId===`claude`||native?.engineId===`claude`))return false;const text=String(message.text||``);if(message.role===`user`)return Boolean(turn.metadata?.upstreamMessageId||message.receipt===true)&&/^\/goal(?:\s|$)/u.test(text);if(![`assistant`,`commentary`].includes(message.role))return false;if(native?.command)return native.engineId===`claude`&&([`assistant`,`result`].includes(native.type)||native.type===`system`&&[`local_command`,`local_command_output`].includes(native.subtype))&&native.command===`goal`&&native.output===`stdout`;const prefix=[`Goal set: `,`Goal cleared: `,`Goal active: `].find(value=>text.startsWith(value));if(prefix){const objective=text.slice(prefix.length);const separator=objective.indexOf(`
|
|
2
|
+
|
|
3
|
+
`);if(separator!==-1&&assistantGoalObjective(objective,{objective:objective.slice(separator+2)})!==objective)return true}return native?.type===`system`&&native.subtype===`local_command_output`&&Boolean(prefix||text===`No goal set`||text==="No goal set. Usage: `/goal <condition>`")}function assistantRoutingOutcomeNotice(request){if(!request?.messageId||!request.outcome||request.stopped)return null;const auto=request.mode===`auto`;let handoff=auto?`Returning to Junior for rework.`:`Returning to implementation for rework.`;if(request.status===`complete`)handoff=`Work finished.`;else if(request.stage===`review`)handoff=!auto?`Ready for review.`:request.planInvolved?`Ready for Senior to check the plan.`:`Ready for Senior review.`;const headings={continue:`Continuing work.`,handoff,wait:`Waiting to continue.`,complete:request.stage===`review`?`Review complete.`:`Finished.`};return{messageId:`assistant-routing-outcome:${request.messageId}:${request.outcome.turnId}:${request.outcome.decision}`,text:`${headings[request.outcome.decision]}\n\n${request.outcome.explanation}`}}function assistantRoutingStatusLabel(request){if(!request)return``;const selection=request.assignments?.[assistantWorkflowRole(request)];const recipient=selection?vibe64AssistantSelectionLabel(selection):``;const pass=assistantAfterPlanPass(request);const stage=pass?`${pass.title} after the plan`:(request.mode===`auto`||request.stage===`review`)&&{planning:`Planning`,implementation:`Implementing`,review:`Reviewing`}[request.stage]||assistantModeLabel(request.resolvedMode);if(request.delivery===`uncertain`)return`Delivery unconfirmed · ${recipient}`;if(request.status===`waiting`)return request.stopped?`Paused at your request.`:`${stage} waiting · ${recipient}`;if(request.status===`complete`){if(!request.workflow)return`Reply finished.`;if(request.stage===`pass`)return request.passChain?.stopped?`After-plan passes stopped.`:`Work finished.`;if(request.stage===`review`)return`Review complete — read the findings above.`;return request.outcome?.decision===`handoff`?`Work finished.`:`Reply finished.`}if(request.delivery===`routing`)return`Choosing the recipient with Router…`;if(request.delivery===`failed`)return`Request not sent`;if(request.delivery===`pending`)return`${stage} ready to continue · ${recipient}`;if(request.delivery===`sending`)return`${stage} · ${recipient} · awaiting receipt…`;return`${stage} · ${recipient}`}var __testables=Object.freeze({MAIN_CHAT_PURPOSES});export{ASSISTANT_FINISHING_DEFAULTS as C,AFTER_PLAN_PASS_ORDER as S,inAfterPlanOrder as T,assistantRoutingRequestIsUnresolved as _,ASSISTANT_ROLE_PURPOSES as a,assistantSetupRoleValue as b,assistantGoalIsActive as c,assistantModeLabel as d,assistantRoutingAutomation as f,assistantRoutingRequestForDisplay as g,assistantRoutingRequestCanBeReplaced as h,ASSISTANT_ROLE_DEFAULT_FOLLOWS as i,assistantGoalManagementMessage as l,assistantRoutingOutcomeNotice as m,ASSISTANT_FOLLOWING_ROLES as n,ASSISTANT_ROUTING_ROLE_DEFINITIONS as o,assistantRoutingFromMetadata as p,ASSISTANT_MODES as r,ASSISTANT_SETUP_ROLES as s,ASSISTANT_FIX_MODE as t,assistantGoalObjective as u,assistantRoutingStatusIsPending as v,AUTO_SAVE_SETTING as w,AFTER_PLAN_MANDATORY_PASSES as x,assistantRoutingStatusLabel as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{H as openBlock,f as createBlock,p as createCommentVNode}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{t as Vibe64RepositoryWorkspace_default}from"./Vibe64RepositoryWorkspace-
|
|
1
|
+
import{H as openBlock,f as createBlock,p as createCommentVNode}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{t as Vibe64RepositoryWorkspace_default}from"./Vibe64RepositoryWorkspace-D6uJCype.js";var _sfc_main={__name:`index`,props:{dashboardContext:{default:()=>({}),type:Object}},setup(__props){return(_ctx,_cache)=>{return __props.dashboardContext.active!==false?(openBlock(),createBlock(Vibe64RepositoryWorkspace_default,{key:0,"dashboard-context":__props.dashboardContext,view:`changes`},null,8,[`dashboard-context`])):createCommentVNode(``,true)}}};export{_sfc_main as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as createSurfaceRegistry,r as createSurfacePathHelpers}from"./returnToPath-CILshEkc.js";import{a as normalizeBoolean,c as normalizePositiveInteger,f as normalizeUniqueTextList,n as hasValue,o as normalizeLowerText,r as isRecord,s as normalizeObject,u as normalizeText}from"./normalize-BD25VwNK.js";import{t as isExternalLinkTarget}from"./linkPath-BsiibCNd.js";import{n as setJskitI18n}from"./i18n-BuXRXGaO.js";import{c as pageWindow,s as pagePathname}from"./asyncModuleRecovery-BALhPqsY.js";import{a as AUTH_POLICY_PUBLIC,i as AUTH_POLICY_AUTHENTICATED}from"./visibility-Cq31Xy7I.js";var MOBILE_ASSET_MODES=Object.freeze([`bundled`,`dev_server`]);var MOBILE_STRATEGIES=Object.freeze([`capacitor`]);var DEFAULT_MOBILE_AUTH_CONFIG=Object.freeze({callbackPath:`/auth/login`,customScheme:``,appLinkDomains:Object.freeze([])});var DEFAULT_MOBILE_ANDROID_CONFIG=Object.freeze({packageName:``,minSdk:26,targetSdk:35,versionCode:1,versionName:`1.0.0`});function normalizeMobileStrategy(value=``,{fallback=``}={}){const normalized=normalizeLowerText(value);return MOBILE_STRATEGIES.includes(normalized)?normalized:normalizeLowerText(fallback)}function normalizeMobileAssetMode(value=``,{fallback=`bundled`}={}){const normalized=normalizeLowerText(value);if(!normalized)return normalizeLowerText(fallback,{fallback:`bundled`});if(!MOBILE_ASSET_MODES.includes(normalized))throw new TypeError(`config.mobile.assetMode must be "bundled" or "dev_server".`);return normalized}function normalizeMobileCallbackPath(value=``,{fallback=`/auth/login`}={}){const normalized=normalizeText(value,{fallback});if(!normalized)return``;return normalized.startsWith(`/`)?normalized:`/${normalized}`}function normalizeMobileConfig(source={}){const mobile=normalizeObject(source);const auth=normalizeObject(mobile.auth);const android=normalizeObject(mobile.android);return Object.freeze({enabled:hasValue(mobile.enabled)?normalizeBoolean(mobile.enabled):false,strategy:normalizeMobileStrategy(mobile.strategy),appId:normalizeText(mobile.appId),appName:normalizeText(mobile.appName),assetMode:normalizeMobileAssetMode(mobile.assetMode),devServerUrl:normalizeText(mobile.devServerUrl),apiBaseUrl:normalizeText(mobile.apiBaseUrl),auth:Object.freeze({callbackPath:normalizeMobileCallbackPath(auth.callbackPath,{fallback:DEFAULT_MOBILE_AUTH_CONFIG.callbackPath}),customScheme:normalizeLowerText(auth.customScheme),appLinkDomains:Object.freeze([...new Set(normalizeUniqueTextList(auth.appLinkDomains,{acceptSingle:true}).map(entry=>normalizeLowerText(entry)))])}),android:Object.freeze({packageName:normalizeText(android.packageName),minSdk:normalizePositiveInteger(android.minSdk,{fallback:DEFAULT_MOBILE_ANDROID_CONFIG.minSdk}),targetSdk:normalizePositiveInteger(android.targetSdk,{fallback:DEFAULT_MOBILE_ANDROID_CONFIG.targetSdk}),versionCode:normalizePositiveInteger(android.versionCode,{fallback:DEFAULT_MOBILE_ANDROID_CONFIG.versionCode}),versionName:normalizeText(android.versionName,{fallback:DEFAULT_MOBILE_ANDROID_CONFIG.versionName})})})}var CLIENT_APP_CONFIG_GLOBAL_KEY=`__JSKIT_CLIENT_APP_CONFIG__`;var EMPTY_CLIENT_APP_CONFIG=Object.freeze({});function normalizeClientAppConfig(source={}){if(!isRecord(source))return EMPTY_CLIENT_APP_CONFIG;return Object.freeze({...source})}function setClientAppConfig(source={}){const appConfig=normalizeClientAppConfig(source);globalThis[CLIENT_APP_CONFIG_GLOBAL_KEY]=appConfig;return appConfig}function getClientAppConfig(){const appConfig=globalThis[CLIENT_APP_CONFIG_GLOBAL_KEY];return isRecord(appConfig)?appConfig:EMPTY_CLIENT_APP_CONFIG}function resolveMobileConfig(appConfig=getClientAppConfig()){return normalizeMobileConfig(isRecord(appConfig)?appConfig.mobile:{})}function normalizeRoutePath(pathLike=``){const rawPath=String(pathLike||``).trim();if(!rawPath||rawPath===`/`)return`/`;return(rawPath.startsWith(`/`)?rawPath:`/${rawPath}`).replace(/\/{2,}/g,`/`).replace(/\/+$/,``)||`/`}function resolveAbsoluteRoutePath(parentAbsolutePath=`/`,routePath=``){const normalizedParentPath=normalizeRoutePath(parentAbsolutePath);const rawRoutePath=String(routePath||``).trim();if(!rawRoutePath)return normalizedParentPath;if(rawRoutePath.startsWith(`/`))return normalizeRoutePath(rawRoutePath);if(normalizedParentPath===`/`)return normalizeRoutePath(`/${rawRoutePath}`);return normalizeRoutePath(`${normalizedParentPath}/${rawRoutePath}`)}function readRouteJskitMeta(route){if(!isRecord(route)||!isRecord(route.meta)||!isRecord(route.meta.jskit))return{};return route.meta.jskit}function resolveRouteExplicitSurface(route){const metaSurface=readRouteJskitMeta(route).surface;return normalizeLowerText(route?.surface||metaSurface)}function resolveOwnRouteScope(route){const metaScope=readRouteJskitMeta(route).scope;const normalizedScope=String(route?.scope||metaScope||``).trim().toLowerCase();if(!normalizedScope)return``;return normalizedScope===`global`?`global`:`surface`}function resolveRouteSurface(route,inheritedSurfaceId=``,{surfaceRuntime,absolutePath=`/`}={}){const explicitSurface=resolveRouteExplicitSurface(route);if(explicitSurface)return explicitSurface;const normalizedInheritedSurface=normalizeLowerText(inheritedSurfaceId);if(normalizedInheritedSurface)return normalizedInheritedSurface;return surfaceRuntime.resolveSurfaceFromPathname(absolutePath)}function normalizeRoutesBySurfaceBoundaries(routeList=[],{surfaceRuntime}={}){const normalizedRoutes=Array.isArray(routeList)?routeList:[];const hoistedRoutes=[];function cloneRouteWithChildren(route,children){const nextRoute={...route};if(children.length>0)nextRoute.children=children;else if(Object.prototype.hasOwnProperty.call(nextRoute,`children`))delete nextRoute.children;return nextRoute}function cloneRouteAsHoisted(route,absolutePath,children){const nextRoute=cloneRouteWithChildren(route,children);nextRoute.path=absolutePath;return nextRoute}function visitRoute(route,parentSurfaceId=``,parentAbsolutePath=`/`){if(!isRecord(route))return null;const absolutePath=resolveAbsoluteRoutePath(parentAbsolutePath,route.path);const explicitSurface=resolveRouteExplicitSurface(route);const normalizedParentSurfaceId=normalizeLowerText(parentSurfaceId);const resolvedSurface=resolveRouteSurface(route,normalizedParentSurfaceId,{surfaceRuntime,absolutePath});const surfaceBoundary=Boolean(explicitSurface)&&Boolean(normalizedParentSurfaceId)&&explicitSurface!==normalizedParentSurfaceId;const children=Array.isArray(route.children)?route.children:[];const filteredChildren=[];for(const child of children){const normalizedChild=visitRoute(child,resolvedSurface,absolutePath);if(normalizedChild)filteredChildren.push(normalizedChild)}const routeWithChildren=children.length!==filteredChildren.length||filteredChildren.some((child,index)=>child!==children[index])?cloneRouteWithChildren(route,filteredChildren):route;if(!surfaceBoundary)return routeWithChildren;hoistedRoutes.push(cloneRouteAsHoisted(routeWithChildren,absolutePath,filteredChildren));return null}const keptRoutes=[];for(const route of normalizedRoutes){const normalizedRoute=visitRoute(route,``,`/`);if(normalizedRoute)keptRoutes.push(normalizedRoute)}return[...keptRoutes,...hoistedRoutes]}function createSurfaceRuntime(options={}){const allMode=normalizeLowerText(options.allMode||`all`)||`all`;const registry=createSurfaceRegistry({surfaces:isRecord(options.surfaces)?options.surfaces:{},defaultSurfaceId:options.defaultSurfaceId});const{SURFACE_REGISTRY,DEFAULT_SURFACE_ID}=registry;const surfaceDefinitions=registry.listSurfaceDefinitions();const surfaceIds=surfaceDefinitions.map(definition=>definition.id);const enabledSurfaceIds=surfaceDefinitions.filter(definition=>definition.enabled).map(definition=>definition.id);const pathHelpers=createSurfacePathHelpers({apiBasePath:options.apiBasePath,defaultSurfaceId:DEFAULT_SURFACE_ID,surfaceDefinitions});function normalizeSurfaceMode(value){const normalized=normalizeLowerText(value);if(!normalized||normalized===allMode)return allMode;return SURFACE_REGISTRY[normalized]?normalized:allMode}function listEnabledSurfaceIds(){return[...enabledSurfaceIds]}function getSurfaceDefinition(surfaceId){return SURFACE_REGISTRY[normalizeLowerText(surfaceId)]||null}function listSurfaceDefinitions({enabledOnly=false}={}){return enabledOnly?surfaceDefinitions.filter(definition=>definition.enabled):[...surfaceDefinitions]}function isSurfaceEnabled(surfaceId){const normalizedSurface=normalizeSurfaceMode(surfaceId);if(normalizedSurface===allMode)return false;return enabledSurfaceIds.includes(normalizedSurface)}return Object.freeze({SURFACE_MODE_ALL:allMode,SURFACE_IDS:[...surfaceIds],DEFAULT_SURFACE_ID,DEFAULT_SURFACE:SURFACE_REGISTRY[DEFAULT_SURFACE_ID],normalizeSurfaceMode,resolveSurfaceFromPathname:pathHelpers.resolveSurfaceFromPathname,getSurfaceDefinition,listSurfaceDefinitions,listEnabledSurfaceIds,isSurfaceEnabled})}function filterRoutesBySurface(routeList,{surfaceRuntime,surfaceMode}={}){if(!surfaceRuntime||typeof surfaceRuntime!==`object`)throw new Error(`filterRoutesBySurface requires surfaceRuntime.`);if(typeof surfaceRuntime.normalizeSurfaceMode!==`function`)throw new Error(`filterRoutesBySurface requires surfaceRuntime.normalizeSurfaceMode().`);if(typeof surfaceRuntime.resolveSurfaceFromPathname!==`function`)throw new Error(`filterRoutesBySurface requires surfaceRuntime.resolveSurfaceFromPathname().`);if(typeof surfaceRuntime.listEnabledSurfaceIds!==`function`)throw new Error(`filterRoutesBySurface requires surfaceRuntime.listEnabledSurfaceIds().`);const normalizedRoutes=normalizeRoutesBySurfaceBoundaries(routeList,{surfaceRuntime});const allMode=surfaceRuntime.SURFACE_MODE_ALL;const normalizedMode=surfaceRuntime.normalizeSurfaceMode(surfaceMode);const enabledSurfaces=new Set(surfaceRuntime.listEnabledSurfaceIds());function filterRouteNode(route,inheritedSurfaceId=``){if(!isRecord(route))return null;const resolvedSurface=resolveRouteSurface(route,inheritedSurfaceId,{surfaceRuntime,absolutePath:String(route.path||`/`)});const isGlobalScope=resolveOwnRouteScope(route)===`global`;const isEnabledSurfaceRoute=enabledSurfaces.has(resolvedSurface);const ownIncluded=isGlobalScope||isEnabledSurfaceRoute&&(normalizedMode===allMode||resolvedSurface===normalizedMode);const children=Array.isArray(route.children)?route.children:[];const filteredChildren=children.map(child=>filterRouteNode(child,resolvedSurface)).filter(Boolean);if(!ownIncluded&&filteredChildren.length<1)return null;if(children.length<1)return route;return{...route,children:filteredChildren}}return normalizedRoutes.map(route=>filterRouteNode(route)).filter(Boolean)}var DEFAULT_GUARD_EVALUATOR_KEY=`__JSKIT_WEB_SHELL_GUARD_EVALUATOR__`;var WEB_ROOT_ALLOW_YES=`yes`;var WEB_ROOT_ALLOW_NO=`no`;function createFallbackNotFoundRoute(component){if(!component)throw new Error(`createFallbackNotFoundRoute requires a component.`);return Object.freeze({path:`/:pathMatch(.*)*`,name:`not-found`,component,meta:{jskit:{scope:`global`}}})}function buildSurfaceAwareRoutes({routes,surfaceRuntime,surfaceMode,fallbackRoute}){return filterRoutesBySurface([...routes,fallbackRoute],{surfaceRuntime,surfaceMode})}function normalizeGuardPolicy(value){return String(value||``).trim().toLowerCase()}function resolveRouteGuardFromMeta(meta){if(!isRecord(meta))return null;if(isRecord(meta.guard))return meta.guard;if(isRecord(meta.jskit)){const jskitGuard=meta.jskit.guard;if(isRecord(jskitGuard))return jskitGuard}return null}function resolveRouteGuard(to){const matched=Array.isArray(to?.matched)?to.matched:[];for(let index=matched.length-1;index>=0;index-=1){const routeRecord=matched[index]&&typeof matched[index]===`object`?matched[index]:null;if(!routeRecord)continue;if(isRecord(routeRecord.guard))return routeRecord.guard;const metaGuard=resolveRouteGuardFromMeta(routeRecord.meta);if(metaGuard)return metaGuard}return null}function resolveSearchFromFullPath(fullPath){const rawFullPath=String(fullPath||``).trim();const queryStart=rawFullPath.indexOf(`?`);if(queryStart<0)return``;const hashStart=rawFullPath.indexOf(`#`,queryStart);return hashStart<0?rawFullPath.slice(queryStart):rawFullPath.slice(queryStart,hashStart)}function normalizeWebRootAllowed(value){const normalizedValue=String(value||``).trim().toLowerCase();if(normalizedValue===`yes`||normalizedValue===`no`)return normalizedValue;return`yes`}function resolveEffectiveRouteGuard({to,surfaceRuntime,authenticatedPolicy,publicPolicy}){const routePolicy=normalizeGuardPolicy(resolveRouteGuard(to)?.policy);if(routePolicy)return{policy:routePolicy};const surfaceId=surfaceRuntime.resolveSurfaceFromPathname(String(to?.path||`/`).trim()||`/`);if(surfaceRuntime.getSurfaceDefinition(surfaceId)?.requiresAuth)return{policy:authenticatedPolicy};return{policy:publicPolicy}}function normalizeGuardOutcome(outcome){if(outcome===false)return{allow:false,redirectTo:``,reason:``};if(!isRecord(outcome))return{allow:true,redirectTo:``,reason:``};return{allow:outcome.allow!==false,redirectTo:String(outcome.redirectTo||``).trim(),reason:String(outcome.reason||``).trim()}}function evaluateShellGuard({guard,to,guardEvaluatorKey}){const evaluator=globalThis[guardEvaluatorKey];if(!evaluator)return{allow:true,redirectTo:``,reason:``};const pathname=String(to?.path||`/`).trim()||`/`;const search=resolveSearchFromFullPath(to?.fullPath||``);try{return normalizeGuardOutcome(evaluator({guard,phase:`route`,context:{to,location:{pathname,search}}}))}catch{return{allow:false,redirectTo:``,reason:`guard-evaluator-error`}}}function createShellBeforeEachGuard({surfaceRuntime,webRootAllowed=`yes`,guardEvaluatorKey=DEFAULT_GUARD_EVALUATOR_KEY,authenticatedPolicy=AUTH_POLICY_AUTHENTICATED,publicPolicy=AUTH_POLICY_PUBLIC}){const defaultSurfaceRootPath=surfaceRuntime.getSurfaceDefinition(surfaceRuntime.DEFAULT_SURFACE_ID)?.routeBase||`/`;const redirectWebRoot=normalizeWebRootAllowed(webRootAllowed)===`no`&&defaultSurfaceRootPath!==`/`;return to=>{if(redirectWebRoot&&String(to?.path||`/`).trim()===`/`){const search=resolveSearchFromFullPath(to?.fullPath||``);const hash=String(to?.hash||``).trim();return`${defaultSurfaceRootPath}${search}${hash}`}const guard=resolveEffectiveRouteGuard({to,surfaceRuntime,authenticatedPolicy,publicPolicy});if(guard.policy!==authenticatedPolicy)return true;const outcome=evaluateShellGuard({guard,to,guardEvaluatorKey});if(outcome.allow)return true;if(outcome.redirectTo){if(isExternalLinkTarget(outcome.redirectTo)){pageWindow()?.location.assign(outcome.redirectTo);return false}return outcome.redirectTo}return false}}function createStructuredLogger(logger){return Object.freeze({info:logger.info.bind(logger),warn:logger.warn.bind(logger),error:logger.error.bind(logger),debug:logger.debug.bind(logger),isDebugEnabled:logger.isDebugEnabled??true})}function summarizeRouterRoutes(router){return Object.freeze(router.getRoutes().map(route=>Object.freeze({name:String(route?.name||``).trim(),path:String(route?.path||``).trim(),metaScope:String(route?.meta?.jskit?.scope||``).trim(),metaSurface:String(route?.meta?.jskit?.surface||``).trim()})))}function resolveClientBootstrapDebugEnabled({env={},debugEnabled=void 0,debugEnvKey=`VITE_JSKIT_CLIENT_DEBUG`}={}){if(typeof debugEnabled===`boolean`)return debugEnabled;if(!isRecord(env))return false;return String(env[debugEnvKey]||``).trim()===`1`}function ignoreDebug(){}function ignoreBootstrapStep(){}function createClientBootstrapLogger({env={},logger,debugEnabled=void 0,debugEnvKey=`VITE_JSKIT_CLIENT_DEBUG`}){const baseLogger=createStructuredLogger(logger);const isDebugEnabled=resolveClientBootstrapDebugEnabled({env,debugEnabled,debugEnvKey});return Object.freeze({info:baseLogger.info,warn:baseLogger.warn,error:baseLogger.error,debug:isDebugEnabled?baseLogger.info:ignoreDebug,isDebugEnabled})}function installAppPlugins(app,appPlugins=[]){const plugins=Array.isArray(appPlugins)?appPlugins:[];for(const pluginEntry of plugins){if(!pluginEntry)continue;if(Array.isArray(pluginEntry)){const[plugin,...pluginArgs]=pluginEntry;if(!plugin)continue;app.use(plugin,...pluginArgs);continue}app.use(pluginEntry)}}function isSurfaceRootRecord(record){return Boolean(record?.meta?.jskit?.surface)}function hostsChildViews(record){return Object.values(record?.components||{}).some(Boolean)}function staysOnSamePage(to,from){if(to.path===from.path)return true;const fromParents=new Set((from.matched||[]).slice(0,-1));return(to.matched||[]).slice(0,-1).some(record=>fromParents.has(record)&&!isSurfaceRootRecord(record)&&hostsChildViews(record))}function hashScrollMargin(hash){const browserWindow=pageWindow();const target=browserWindow?browserWindow.document.getElementById(hash.slice(1)):null;return target?Number.parseFloat(browserWindow.getComputedStyle(target).scrollMarginTop)||0:0}var SCROLL_TARGET_WAIT_MS=1500;var SCROLL_TAKEOVER_EVENTS=Object.freeze([`wheel`,`touchstart`,`keydown`,`pointerdown`]);function canReach(browserWindow,{left=0,top=0}){const root=browserWindow.document.documentElement;return root.scrollHeight-browserWindow.innerHeight>=top&&root.scrollWidth-browserWindow.innerWidth>=left}function whenDrawn(isDrawn,position){const browserWindow=pageWindow();if(!browserWindow||isDrawn(browserWindow))return position();return new Promise(resolve=>{const deadline=Date.now()+SCROLL_TARGET_WAIT_MS;let frame=0;const finish=result=>{browserWindow.cancelAnimationFrame(frame);for(const type of SCROLL_TAKEOVER_EVENTS)browserWindow.removeEventListener(type,takeOver,true);resolve(result)};const takeOver=()=>finish(false);const check=()=>{if(isDrawn(browserWindow)||Date.now()>=deadline){finish(position());return}frame=browserWindow.requestAnimationFrame(check)};for(const type of SCROLL_TAKEOVER_EVENTS)browserWindow.addEventListener(type,takeOver,{capture:true,passive:true});frame=browserWindow.requestAnimationFrame(check)})}function shellScrollBehavior(to,from,savedPosition){if(savedPosition)return whenDrawn(browserWindow=>canReach(browserWindow,savedPosition),()=>savedPosition);if(staysOnSamePage(to,from))return false;const restoreScroll=pageWindow()?.history?.state?.restoreScroll;if(isRecord(restoreScroll)){const position={left:Number(restoreScroll.left)||0,top:Number(restoreScroll.top)||0};return whenDrawn(browserWindow=>canReach(browserWindow,position),()=>position)}if(to.hash)return whenDrawn(browserWindow=>Boolean(browserWindow.document.getElementById(to.hash.slice(1))),()=>({el:to.hash,top:hashScrollMargin(to.hash)}));return{top:0}}function createSurfaceShellRouter({createRouter,history,routes,surfaceRuntime,surfaceMode,fallbackRoute,notFoundComponent,guard=false,scrollBehavior=shellScrollBehavior}){const effectiveFallbackRoute=fallbackRoute||createFallbackNotFoundRoute(notFoundComponent);const activeRoutes=buildSurfaceAwareRoutes({routes,surfaceRuntime,surfaceMode,fallbackRoute:effectiveFallbackRoute});const router=createRouter({history,routes:activeRoutes,...scrollBehavior===false?{}:{scrollBehavior}});if(scrollBehavior!==false&&isRecord(router?.options)&&router.options.scrollBehavior!==scrollBehavior)throw new Error(`createShellRouter's createRouter replaced the scroll behaviour it was given, which would lose the position the shell's Up returns to. Let createRouter keep options.scrollBehavior, and pass an app's own as createShellRouter's scrollBehavior option (calling shellScrollBehavior for the cases it leaves to the shell), or false to leave scrolling to the browser.`);if(guard!==false)router.beforeEach(isRecord(guard)?createShellBeforeEachGuard({surfaceRuntime,...guard}):guard);return Object.freeze({router,activeRoutes:Object.freeze([...activeRoutes]),fallbackRoute:effectiveFallbackRoute})}function isLazyRouteComponent(component){return typeof component===`function`&&!(`displayName`in component)&&!(`props`in component)&&!(`__vccOpts`in component)}function preloadOpeningRouteComponents(router,fallbackRoute){const location=router.options?.history?.location;if(!location)return;let matched=[];try{({matched}=router.resolve(location))}catch{return}if(fallbackRoute?.name&&matched.some(record=>record.name===fallbackRoute.name))return;for(const record of matched)for(const component of Object.values(record.components||{}))if(isLazyRouteComponent(component))Promise.resolve().then(component).catch(ignoreBootstrapStep)}async function bootstrapClientShellApp({createApp,rootComponent,appConfig={},appPlugins=[],i18n=null,pinia,queryClient,router,bootClientModules,surfaceRuntime,surfaceMode,env={},fallbackRoute=null,logger=console,createBootstrapLogger=createClientBootstrapLogger,debugEnabled=void 0,debugEnvKey=`VITE_JSKIT_CLIENT_DEBUG`,debugMessage=`Client modules bootstrapped before router install.`,onAfterModulesBootstrapped=ignoreBootstrapStep,onAfterRouterReady=ignoreBootstrapStep,mountSelector=`#app`}){const app=createApp(rootComponent);installAppPlugins(app,appPlugins);if(i18n){if(!appPlugins.includes(i18n))app.use(i18n);setJskitI18n(i18n)}setClientAppConfig(appConfig);const bootstrapLogger=createStructuredLogger(createBootstrapLogger({env,logger,debugEnabled,debugEnvKey}));preloadOpeningRouteComponents(router,fallbackRoute);const clientBootstrap=await bootClientModules({app,pinia,queryClient,router,surfaceRuntime,surfaceMode,env,logger:bootstrapLogger});const{isDebugEnabled}=bootstrapLogger;if(isDebugEnabled)bootstrapLogger.info({bootstrap:{modules:clientBootstrap.modules||[],providerCount:Number(clientBootstrap.providerCount||0),routeCount:Number(clientBootstrap.routeCount||0)},routerRoutesBeforeInstall:summarizeRouterRoutes(router),currentPath:pagePathname()},String(debugMessage||``).trim()||`Client modules bootstrapped before router install.`);if(fallbackRoute?.name){if(router.hasRoute(fallbackRoute.name))router.removeRoute(fallbackRoute.name);router.addRoute(fallbackRoute)}await onAfterModulesBootstrapped(Object.freeze({app,router,clientBootstrap,surfaceRuntime,surfaceMode,env:isRecord(env)?{...env}:{},logger:bootstrapLogger,debugEnabled:isDebugEnabled}));app.use(router);await router.isReady();await onAfterRouterReady(Object.freeze({app,router,clientBootstrap,surfaceRuntime,surfaceMode,env:isRecord(env)?{...env}:{},logger:bootstrapLogger,debugEnabled:isDebugEnabled}));app.mount(mountSelector);return Object.freeze({app,router,clientBootstrap,logger:bootstrapLogger,debugEnabled:isDebugEnabled})}export{createStructuredLogger as a,filterRoutesBySurface as c,staysOnSamePage as i,getClientAppConfig as l,createSurfaceShellRouter as n,summarizeRouterRoutes as o,resolveClientBootstrapDebugEnabled as r,createSurfaceRuntime as s,bootstrapClientShellApp as t,resolveMobileConfig as u};
|
|
1
|
+
import{a as createSurfaceRegistry,r as createSurfacePathHelpers}from"./returnToPath-CILshEkc.js";import{a as normalizeBoolean,c as normalizePositiveInteger,f as normalizeUniqueTextList,n as hasValue,o as normalizeLowerText,r as isRecord,s as normalizeObject,u as normalizeText}from"./normalize-BD25VwNK.js";import{t as isExternalLinkTarget}from"./linkPath-BsiibCNd.js";import{r as setJskitI18n}from"./i18n-5EHeMSvt.js";import{c as pageWindow,s as pagePathname}from"./asyncModuleRecovery-BALhPqsY.js";import{a as AUTH_POLICY_PUBLIC,i as AUTH_POLICY_AUTHENTICATED}from"./visibility-Cq31Xy7I.js";var MOBILE_ASSET_MODES=Object.freeze([`bundled`,`dev_server`]);var MOBILE_STRATEGIES=Object.freeze([`capacitor`]);var DEFAULT_MOBILE_AUTH_CONFIG=Object.freeze({callbackPath:`/auth/login`,customScheme:``,appLinkDomains:Object.freeze([])});var DEFAULT_MOBILE_ANDROID_CONFIG=Object.freeze({packageName:``,minSdk:26,targetSdk:35,versionCode:1,versionName:`1.0.0`});function normalizeMobileStrategy(value=``,{fallback=``}={}){const normalized=normalizeLowerText(value);return MOBILE_STRATEGIES.includes(normalized)?normalized:normalizeLowerText(fallback)}function normalizeMobileAssetMode(value=``,{fallback=`bundled`}={}){const normalized=normalizeLowerText(value);if(!normalized)return normalizeLowerText(fallback,{fallback:`bundled`});if(!MOBILE_ASSET_MODES.includes(normalized))throw new TypeError(`config.mobile.assetMode must be "bundled" or "dev_server".`);return normalized}function normalizeMobileCallbackPath(value=``,{fallback=`/auth/login`}={}){const normalized=normalizeText(value,{fallback});if(!normalized)return``;return normalized.startsWith(`/`)?normalized:`/${normalized}`}function normalizeMobileConfig(source={}){const mobile=normalizeObject(source);const auth=normalizeObject(mobile.auth);const android=normalizeObject(mobile.android);return Object.freeze({enabled:hasValue(mobile.enabled)?normalizeBoolean(mobile.enabled):false,strategy:normalizeMobileStrategy(mobile.strategy),appId:normalizeText(mobile.appId),appName:normalizeText(mobile.appName),assetMode:normalizeMobileAssetMode(mobile.assetMode),devServerUrl:normalizeText(mobile.devServerUrl),apiBaseUrl:normalizeText(mobile.apiBaseUrl),auth:Object.freeze({callbackPath:normalizeMobileCallbackPath(auth.callbackPath,{fallback:DEFAULT_MOBILE_AUTH_CONFIG.callbackPath}),customScheme:normalizeLowerText(auth.customScheme),appLinkDomains:Object.freeze([...new Set(normalizeUniqueTextList(auth.appLinkDomains,{acceptSingle:true}).map(entry=>normalizeLowerText(entry)))])}),android:Object.freeze({packageName:normalizeText(android.packageName),minSdk:normalizePositiveInteger(android.minSdk,{fallback:DEFAULT_MOBILE_ANDROID_CONFIG.minSdk}),targetSdk:normalizePositiveInteger(android.targetSdk,{fallback:DEFAULT_MOBILE_ANDROID_CONFIG.targetSdk}),versionCode:normalizePositiveInteger(android.versionCode,{fallback:DEFAULT_MOBILE_ANDROID_CONFIG.versionCode}),versionName:normalizeText(android.versionName,{fallback:DEFAULT_MOBILE_ANDROID_CONFIG.versionName})})})}var CLIENT_APP_CONFIG_GLOBAL_KEY=`__JSKIT_CLIENT_APP_CONFIG__`;var EMPTY_CLIENT_APP_CONFIG=Object.freeze({});function normalizeClientAppConfig(source={}){if(!isRecord(source))return EMPTY_CLIENT_APP_CONFIG;return Object.freeze({...source})}function setClientAppConfig(source={}){const appConfig=normalizeClientAppConfig(source);globalThis[CLIENT_APP_CONFIG_GLOBAL_KEY]=appConfig;return appConfig}function getClientAppConfig(){const appConfig=globalThis[CLIENT_APP_CONFIG_GLOBAL_KEY];return isRecord(appConfig)?appConfig:EMPTY_CLIENT_APP_CONFIG}function resolveMobileConfig(appConfig=getClientAppConfig()){return normalizeMobileConfig(isRecord(appConfig)?appConfig.mobile:{})}function normalizeRoutePath(pathLike=``){const rawPath=String(pathLike||``).trim();if(!rawPath||rawPath===`/`)return`/`;return(rawPath.startsWith(`/`)?rawPath:`/${rawPath}`).replace(/\/{2,}/g,`/`).replace(/\/+$/,``)||`/`}function resolveAbsoluteRoutePath(parentAbsolutePath=`/`,routePath=``){const normalizedParentPath=normalizeRoutePath(parentAbsolutePath);const rawRoutePath=String(routePath||``).trim();if(!rawRoutePath)return normalizedParentPath;if(rawRoutePath.startsWith(`/`))return normalizeRoutePath(rawRoutePath);if(normalizedParentPath===`/`)return normalizeRoutePath(`/${rawRoutePath}`);return normalizeRoutePath(`${normalizedParentPath}/${rawRoutePath}`)}function readRouteJskitMeta(route){if(!isRecord(route)||!isRecord(route.meta)||!isRecord(route.meta.jskit))return{};return route.meta.jskit}function resolveRouteExplicitSurface(route){const metaSurface=readRouteJskitMeta(route).surface;return normalizeLowerText(route?.surface||metaSurface)}function resolveOwnRouteScope(route){const metaScope=readRouteJskitMeta(route).scope;const normalizedScope=String(route?.scope||metaScope||``).trim().toLowerCase();if(!normalizedScope)return``;return normalizedScope===`global`?`global`:`surface`}function resolveRouteSurface(route,inheritedSurfaceId=``,{surfaceRuntime,absolutePath=`/`}={}){const explicitSurface=resolveRouteExplicitSurface(route);if(explicitSurface)return explicitSurface;const normalizedInheritedSurface=normalizeLowerText(inheritedSurfaceId);if(normalizedInheritedSurface)return normalizedInheritedSurface;return surfaceRuntime.resolveSurfaceFromPathname(absolutePath)}function normalizeRoutesBySurfaceBoundaries(routeList=[],{surfaceRuntime}={}){const normalizedRoutes=Array.isArray(routeList)?routeList:[];const hoistedRoutes=[];function cloneRouteWithChildren(route,children){const nextRoute={...route};if(children.length>0)nextRoute.children=children;else if(Object.prototype.hasOwnProperty.call(nextRoute,`children`))delete nextRoute.children;return nextRoute}function cloneRouteAsHoisted(route,absolutePath,children){const nextRoute=cloneRouteWithChildren(route,children);nextRoute.path=absolutePath;return nextRoute}function visitRoute(route,parentSurfaceId=``,parentAbsolutePath=`/`){if(!isRecord(route))return null;const absolutePath=resolveAbsoluteRoutePath(parentAbsolutePath,route.path);const explicitSurface=resolveRouteExplicitSurface(route);const normalizedParentSurfaceId=normalizeLowerText(parentSurfaceId);const resolvedSurface=resolveRouteSurface(route,normalizedParentSurfaceId,{surfaceRuntime,absolutePath});const surfaceBoundary=Boolean(explicitSurface)&&Boolean(normalizedParentSurfaceId)&&explicitSurface!==normalizedParentSurfaceId;const children=Array.isArray(route.children)?route.children:[];const filteredChildren=[];for(const child of children){const normalizedChild=visitRoute(child,resolvedSurface,absolutePath);if(normalizedChild)filteredChildren.push(normalizedChild)}const routeWithChildren=children.length!==filteredChildren.length||filteredChildren.some((child,index)=>child!==children[index])?cloneRouteWithChildren(route,filteredChildren):route;if(!surfaceBoundary)return routeWithChildren;hoistedRoutes.push(cloneRouteAsHoisted(routeWithChildren,absolutePath,filteredChildren));return null}const keptRoutes=[];for(const route of normalizedRoutes){const normalizedRoute=visitRoute(route,``,`/`);if(normalizedRoute)keptRoutes.push(normalizedRoute)}return[...keptRoutes,...hoistedRoutes]}function createSurfaceRuntime(options={}){const allMode=normalizeLowerText(options.allMode||`all`)||`all`;const registry=createSurfaceRegistry({surfaces:isRecord(options.surfaces)?options.surfaces:{},defaultSurfaceId:options.defaultSurfaceId});const{SURFACE_REGISTRY,DEFAULT_SURFACE_ID}=registry;const surfaceDefinitions=registry.listSurfaceDefinitions();const surfaceIds=surfaceDefinitions.map(definition=>definition.id);const enabledSurfaceIds=surfaceDefinitions.filter(definition=>definition.enabled).map(definition=>definition.id);const pathHelpers=createSurfacePathHelpers({apiBasePath:options.apiBasePath,defaultSurfaceId:DEFAULT_SURFACE_ID,surfaceDefinitions});function normalizeSurfaceMode(value){const normalized=normalizeLowerText(value);if(!normalized||normalized===allMode)return allMode;return SURFACE_REGISTRY[normalized]?normalized:allMode}function listEnabledSurfaceIds(){return[...enabledSurfaceIds]}function getSurfaceDefinition(surfaceId){return SURFACE_REGISTRY[normalizeLowerText(surfaceId)]||null}function listSurfaceDefinitions({enabledOnly=false}={}){return enabledOnly?surfaceDefinitions.filter(definition=>definition.enabled):[...surfaceDefinitions]}function isSurfaceEnabled(surfaceId){const normalizedSurface=normalizeSurfaceMode(surfaceId);if(normalizedSurface===allMode)return false;return enabledSurfaceIds.includes(normalizedSurface)}return Object.freeze({SURFACE_MODE_ALL:allMode,SURFACE_IDS:[...surfaceIds],DEFAULT_SURFACE_ID,DEFAULT_SURFACE:SURFACE_REGISTRY[DEFAULT_SURFACE_ID],normalizeSurfaceMode,resolveSurfaceFromPathname:pathHelpers.resolveSurfaceFromPathname,getSurfaceDefinition,listSurfaceDefinitions,listEnabledSurfaceIds,isSurfaceEnabled})}function filterRoutesBySurface(routeList,{surfaceRuntime,surfaceMode}={}){if(!surfaceRuntime||typeof surfaceRuntime!==`object`)throw new Error(`filterRoutesBySurface requires surfaceRuntime.`);if(typeof surfaceRuntime.normalizeSurfaceMode!==`function`)throw new Error(`filterRoutesBySurface requires surfaceRuntime.normalizeSurfaceMode().`);if(typeof surfaceRuntime.resolveSurfaceFromPathname!==`function`)throw new Error(`filterRoutesBySurface requires surfaceRuntime.resolveSurfaceFromPathname().`);if(typeof surfaceRuntime.listEnabledSurfaceIds!==`function`)throw new Error(`filterRoutesBySurface requires surfaceRuntime.listEnabledSurfaceIds().`);const normalizedRoutes=normalizeRoutesBySurfaceBoundaries(routeList,{surfaceRuntime});const allMode=surfaceRuntime.SURFACE_MODE_ALL;const normalizedMode=surfaceRuntime.normalizeSurfaceMode(surfaceMode);const enabledSurfaces=new Set(surfaceRuntime.listEnabledSurfaceIds());function filterRouteNode(route,inheritedSurfaceId=``){if(!isRecord(route))return null;const resolvedSurface=resolveRouteSurface(route,inheritedSurfaceId,{surfaceRuntime,absolutePath:String(route.path||`/`)});const isGlobalScope=resolveOwnRouteScope(route)===`global`;const isEnabledSurfaceRoute=enabledSurfaces.has(resolvedSurface);const ownIncluded=isGlobalScope||isEnabledSurfaceRoute&&(normalizedMode===allMode||resolvedSurface===normalizedMode);const children=Array.isArray(route.children)?route.children:[];const filteredChildren=children.map(child=>filterRouteNode(child,resolvedSurface)).filter(Boolean);if(!ownIncluded&&filteredChildren.length<1)return null;if(children.length<1)return route;return{...route,children:filteredChildren}}return normalizedRoutes.map(route=>filterRouteNode(route)).filter(Boolean)}var DEFAULT_GUARD_EVALUATOR_KEY=`__JSKIT_WEB_SHELL_GUARD_EVALUATOR__`;var WEB_ROOT_ALLOW_YES=`yes`;var WEB_ROOT_ALLOW_NO=`no`;function createFallbackNotFoundRoute(component){if(!component)throw new Error(`createFallbackNotFoundRoute requires a component.`);return Object.freeze({path:`/:pathMatch(.*)*`,name:`not-found`,component,meta:{jskit:{scope:`global`}}})}function buildSurfaceAwareRoutes({routes,surfaceRuntime,surfaceMode,fallbackRoute}){return filterRoutesBySurface([...routes,fallbackRoute],{surfaceRuntime,surfaceMode})}function normalizeGuardPolicy(value){return String(value||``).trim().toLowerCase()}function resolveRouteGuardFromMeta(meta){if(!isRecord(meta))return null;if(isRecord(meta.guard))return meta.guard;if(isRecord(meta.jskit)){const jskitGuard=meta.jskit.guard;if(isRecord(jskitGuard))return jskitGuard}return null}function resolveRouteGuard(to){const matched=Array.isArray(to?.matched)?to.matched:[];for(let index=matched.length-1;index>=0;index-=1){const routeRecord=matched[index]&&typeof matched[index]===`object`?matched[index]:null;if(!routeRecord)continue;if(isRecord(routeRecord.guard))return routeRecord.guard;const metaGuard=resolveRouteGuardFromMeta(routeRecord.meta);if(metaGuard)return metaGuard}return null}function resolveSearchFromFullPath(fullPath){const rawFullPath=String(fullPath||``).trim();const queryStart=rawFullPath.indexOf(`?`);if(queryStart<0)return``;const hashStart=rawFullPath.indexOf(`#`,queryStart);return hashStart<0?rawFullPath.slice(queryStart):rawFullPath.slice(queryStart,hashStart)}function normalizeWebRootAllowed(value){const normalizedValue=String(value||``).trim().toLowerCase();if(normalizedValue===`yes`||normalizedValue===`no`)return normalizedValue;return`yes`}function resolveEffectiveRouteGuard({to,surfaceRuntime,authenticatedPolicy,publicPolicy}){const routePolicy=normalizeGuardPolicy(resolveRouteGuard(to)?.policy);if(routePolicy)return{policy:routePolicy};const surfaceId=surfaceRuntime.resolveSurfaceFromPathname(String(to?.path||`/`).trim()||`/`);if(surfaceRuntime.getSurfaceDefinition(surfaceId)?.requiresAuth)return{policy:authenticatedPolicy};return{policy:publicPolicy}}function normalizeGuardOutcome(outcome){if(outcome===false)return{allow:false,redirectTo:``,reason:``};if(!isRecord(outcome))return{allow:true,redirectTo:``,reason:``};return{allow:outcome.allow!==false,redirectTo:String(outcome.redirectTo||``).trim(),reason:String(outcome.reason||``).trim()}}function evaluateShellGuard({guard,to,guardEvaluatorKey}){const evaluator=globalThis[guardEvaluatorKey];if(!evaluator)return{allow:true,redirectTo:``,reason:``};const pathname=String(to?.path||`/`).trim()||`/`;const search=resolveSearchFromFullPath(to?.fullPath||``);try{return normalizeGuardOutcome(evaluator({guard,phase:`route`,context:{to,location:{pathname,search}}}))}catch{return{allow:false,redirectTo:``,reason:`guard-evaluator-error`}}}function createShellBeforeEachGuard({surfaceRuntime,webRootAllowed=`yes`,guardEvaluatorKey=DEFAULT_GUARD_EVALUATOR_KEY,authenticatedPolicy=AUTH_POLICY_AUTHENTICATED,publicPolicy=AUTH_POLICY_PUBLIC}){const defaultSurfaceRootPath=surfaceRuntime.getSurfaceDefinition(surfaceRuntime.DEFAULT_SURFACE_ID)?.routeBase||`/`;const redirectWebRoot=normalizeWebRootAllowed(webRootAllowed)===`no`&&defaultSurfaceRootPath!==`/`;return to=>{if(redirectWebRoot&&String(to?.path||`/`).trim()===`/`){const search=resolveSearchFromFullPath(to?.fullPath||``);const hash=String(to?.hash||``).trim();return`${defaultSurfaceRootPath}${search}${hash}`}const guard=resolveEffectiveRouteGuard({to,surfaceRuntime,authenticatedPolicy,publicPolicy});if(guard.policy!==authenticatedPolicy)return true;const outcome=evaluateShellGuard({guard,to,guardEvaluatorKey});if(outcome.allow)return true;if(outcome.redirectTo){if(isExternalLinkTarget(outcome.redirectTo)){pageWindow()?.location.assign(outcome.redirectTo);return false}return outcome.redirectTo}return false}}function createStructuredLogger(logger){return Object.freeze({info:logger.info.bind(logger),warn:logger.warn.bind(logger),error:logger.error.bind(logger),debug:logger.debug.bind(logger),isDebugEnabled:logger.isDebugEnabled??true})}function summarizeRouterRoutes(router){return Object.freeze(router.getRoutes().map(route=>Object.freeze({name:String(route?.name||``).trim(),path:String(route?.path||``).trim(),metaScope:String(route?.meta?.jskit?.scope||``).trim(),metaSurface:String(route?.meta?.jskit?.surface||``).trim()})))}function resolveClientBootstrapDebugEnabled({env={},debugEnabled=void 0,debugEnvKey=`VITE_JSKIT_CLIENT_DEBUG`}={}){if(typeof debugEnabled===`boolean`)return debugEnabled;if(!isRecord(env))return false;return String(env[debugEnvKey]||``).trim()===`1`}function ignoreDebug(){}function ignoreBootstrapStep(){}function createClientBootstrapLogger({env={},logger,debugEnabled=void 0,debugEnvKey=`VITE_JSKIT_CLIENT_DEBUG`}){const baseLogger=createStructuredLogger(logger);const isDebugEnabled=resolveClientBootstrapDebugEnabled({env,debugEnabled,debugEnvKey});return Object.freeze({info:baseLogger.info,warn:baseLogger.warn,error:baseLogger.error,debug:isDebugEnabled?baseLogger.info:ignoreDebug,isDebugEnabled})}function installAppPlugins(app,appPlugins=[]){const plugins=Array.isArray(appPlugins)?appPlugins:[];for(const pluginEntry of plugins){if(!pluginEntry)continue;if(Array.isArray(pluginEntry)){const[plugin,...pluginArgs]=pluginEntry;if(!plugin)continue;app.use(plugin,...pluginArgs);continue}app.use(pluginEntry)}}function isSurfaceRootRecord(record){return Boolean(record?.meta?.jskit?.surface)}function hostsChildViews(record){return Object.values(record?.components||{}).some(Boolean)}function staysOnSamePage(to,from){if(to.path===from.path)return true;const fromParents=new Set((from.matched||[]).slice(0,-1));return(to.matched||[]).slice(0,-1).some(record=>fromParents.has(record)&&!isSurfaceRootRecord(record)&&hostsChildViews(record))}function hashScrollMargin(hash){const browserWindow=pageWindow();const target=browserWindow?browserWindow.document.getElementById(hash.slice(1)):null;return target?Number.parseFloat(browserWindow.getComputedStyle(target).scrollMarginTop)||0:0}var SCROLL_TARGET_WAIT_MS=1500;var SCROLL_TAKEOVER_EVENTS=Object.freeze([`wheel`,`touchstart`,`keydown`,`pointerdown`]);function canReach(browserWindow,{left=0,top=0}){const root=browserWindow.document.documentElement;return root.scrollHeight-browserWindow.innerHeight>=top&&root.scrollWidth-browserWindow.innerWidth>=left}function whenDrawn(isDrawn,position){const browserWindow=pageWindow();if(!browserWindow||isDrawn(browserWindow))return position();return new Promise(resolve=>{const deadline=Date.now()+SCROLL_TARGET_WAIT_MS;let frame=0;const finish=result=>{browserWindow.cancelAnimationFrame(frame);for(const type of SCROLL_TAKEOVER_EVENTS)browserWindow.removeEventListener(type,takeOver,true);resolve(result)};const takeOver=()=>finish(false);const check=()=>{if(isDrawn(browserWindow)||Date.now()>=deadline){finish(position());return}frame=browserWindow.requestAnimationFrame(check)};for(const type of SCROLL_TAKEOVER_EVENTS)browserWindow.addEventListener(type,takeOver,{capture:true,passive:true});frame=browserWindow.requestAnimationFrame(check)})}function shellScrollBehavior(to,from,savedPosition){if(savedPosition)return whenDrawn(browserWindow=>canReach(browserWindow,savedPosition),()=>savedPosition);if(staysOnSamePage(to,from))return false;const restoreScroll=pageWindow()?.history?.state?.restoreScroll;if(isRecord(restoreScroll)){const position={left:Number(restoreScroll.left)||0,top:Number(restoreScroll.top)||0};return whenDrawn(browserWindow=>canReach(browserWindow,position),()=>position)}if(to.hash)return whenDrawn(browserWindow=>Boolean(browserWindow.document.getElementById(to.hash.slice(1))),()=>({el:to.hash,top:hashScrollMargin(to.hash)}));return{top:0}}function createSurfaceShellRouter({createRouter,history,routes,surfaceRuntime,surfaceMode,fallbackRoute,notFoundComponent,guard=false,scrollBehavior=shellScrollBehavior}){const effectiveFallbackRoute=fallbackRoute||createFallbackNotFoundRoute(notFoundComponent);const activeRoutes=buildSurfaceAwareRoutes({routes,surfaceRuntime,surfaceMode,fallbackRoute:effectiveFallbackRoute});const router=createRouter({history,routes:activeRoutes,...scrollBehavior===false?{}:{scrollBehavior}});if(scrollBehavior!==false&&isRecord(router?.options)&&router.options.scrollBehavior!==scrollBehavior)throw new Error(`createShellRouter's createRouter replaced the scroll behaviour it was given, which would lose the position the shell's Up returns to. Let createRouter keep options.scrollBehavior, and pass an app's own as createShellRouter's scrollBehavior option (calling shellScrollBehavior for the cases it leaves to the shell), or false to leave scrolling to the browser.`);if(guard!==false)router.beforeEach(isRecord(guard)?createShellBeforeEachGuard({surfaceRuntime,...guard}):guard);return Object.freeze({router,activeRoutes:Object.freeze([...activeRoutes]),fallbackRoute:effectiveFallbackRoute})}function isLazyRouteComponent(component){return typeof component===`function`&&!(`displayName`in component)&&!(`props`in component)&&!(`__vccOpts`in component)}function preloadOpeningRouteComponents(router,fallbackRoute){const location=router.options?.history?.location;if(!location)return;let matched=[];try{({matched}=router.resolve(location))}catch{return}if(fallbackRoute?.name&&matched.some(record=>record.name===fallbackRoute.name))return;for(const record of matched)for(const component of Object.values(record.components||{}))if(isLazyRouteComponent(component))Promise.resolve().then(component).catch(ignoreBootstrapStep)}async function bootstrapClientShellApp({createApp,rootComponent,appConfig={},appPlugins=[],i18n=null,pinia,queryClient,router,bootClientModules,surfaceRuntime,surfaceMode,env={},fallbackRoute=null,logger=console,createBootstrapLogger=createClientBootstrapLogger,debugEnabled=void 0,debugEnvKey=`VITE_JSKIT_CLIENT_DEBUG`,debugMessage=`Client modules bootstrapped before router install.`,onAfterModulesBootstrapped=ignoreBootstrapStep,onAfterRouterReady=ignoreBootstrapStep,mountSelector=`#app`}){const app=createApp(rootComponent);installAppPlugins(app,appPlugins);if(i18n){if(!appPlugins.includes(i18n))app.use(i18n);setJskitI18n(i18n)}setClientAppConfig(appConfig);const bootstrapLogger=createStructuredLogger(createBootstrapLogger({env,logger,debugEnabled,debugEnvKey}));preloadOpeningRouteComponents(router,fallbackRoute);const clientBootstrap=await bootClientModules({app,pinia,queryClient,router,surfaceRuntime,surfaceMode,env,logger:bootstrapLogger});const{isDebugEnabled}=bootstrapLogger;if(isDebugEnabled)bootstrapLogger.info({bootstrap:{modules:clientBootstrap.modules||[],providerCount:Number(clientBootstrap.providerCount||0),routeCount:Number(clientBootstrap.routeCount||0)},routerRoutesBeforeInstall:summarizeRouterRoutes(router),currentPath:pagePathname()},String(debugMessage||``).trim()||`Client modules bootstrapped before router install.`);if(fallbackRoute?.name){if(router.hasRoute(fallbackRoute.name))router.removeRoute(fallbackRoute.name);router.addRoute(fallbackRoute)}await onAfterModulesBootstrapped(Object.freeze({app,router,clientBootstrap,surfaceRuntime,surfaceMode,env:isRecord(env)?{...env}:{},logger:bootstrapLogger,debugEnabled:isDebugEnabled}));app.use(router);await router.isReady();await onAfterRouterReady(Object.freeze({app,router,clientBootstrap,surfaceRuntime,surfaceMode,env:isRecord(env)?{...env}:{},logger:bootstrapLogger,debugEnabled:isDebugEnabled}));app.mount(mountSelector);return Object.freeze({app,router,clientBootstrap,logger:bootstrapLogger,debugEnabled:isDebugEnabled})}export{createStructuredLogger as a,filterRoutesBySurface as c,staysOnSamePage as i,getClientAppConfig as l,createSurfaceShellRouter as n,summarizeRouterRoutes as o,resolveClientBootstrapDebugEnabled as r,createSurfaceRuntime as s,bootstrapClientShellApp as t,resolveMobileConfig as u};
|