vibe64 0.1.32 → 0.1.34
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 +1717 -1648
- package/bin/server.js +81 -68
- package/bin/upgrade-state.js +5438 -5189
- package/dist/assets/{GithubBrowserTabs-2bEGbRAs.js → GithubBrowserTabs-DO5PHon-.js} +1 -1
- package/dist/assets/GithubMarkdown-BQ6MfCDJ.js +3 -0
- package/dist/assets/GithubMarkdown-U7-j-qNI.css +1 -0
- package/dist/assets/StudioErrorNotice-sQfmeR-z.js +1 -0
- package/dist/assets/VAlert-P256xaE0.js +1 -0
- package/dist/assets/VAutocomplete-BDb95qJX.js +1 -0
- package/dist/assets/VAvatar-9ilDR2r2.css +1 -0
- package/dist/assets/VAvatar-DPzqDH4r.js +1 -0
- package/dist/assets/VBtn-B2MBK2DL.js +1 -0
- package/dist/assets/VCard-mXy0k4aS.js +1 -0
- package/dist/assets/VCheckbox-C7A1ZW4D.js +1 -0
- package/dist/assets/VChip-CcI-Oo2J.js +1 -0
- package/dist/assets/VDialog-Bu3EfKb1.js +1 -0
- package/dist/assets/VDivider-BMEqUoAB.js +1 -0
- package/dist/assets/VExpansionPanels-Dgjrop0V.js +1 -0
- package/dist/assets/VMenu-C_x18lwb.js +1 -0
- package/dist/assets/VOverlay-CeMZurIN.js +1 -0
- package/dist/assets/VRadioGroup-CUu2-KIP.js +1 -0
- package/dist/assets/VRow-Cpw7OHQV.js +1 -0
- package/dist/assets/{VSelect-DY-ZuBJJ.js → VSelect-DL3HaA5m.js} +1 -1
- package/dist/assets/VSheet-DZWsu0kL.js +1 -0
- package/dist/assets/VSkeletonLoader-CttxM1tw.js +1 -0
- package/dist/assets/VSpacer-Dhmsvk4t.js +1 -0
- package/dist/assets/{VSwitch-Bm1bwl2V.js → VSwitch-BRHeDJkH.js} +1 -1
- package/dist/assets/VTextField-BR2eZeFT.js +1 -0
- package/dist/assets/VTextarea-DbqamXJd.js +1 -0
- package/dist/assets/Vibe64AsyncModuleState-Dx7YKRPp.js +1 -0
- package/dist/assets/Vibe64DashboardBackButton-DD9UR77P.css +1 -0
- package/dist/assets/Vibe64DashboardBackButton-yE6cyYg2.js +1 -0
- package/dist/assets/Vibe64DashboardPageHeader-BXQR00HK.js +1 -0
- package/dist/assets/Vibe64DashboardPageHeader-Gm1IvlHx.css +1 -0
- package/dist/assets/Vibe64DashboardShell-CuCVMhOc.js +1 -0
- package/dist/assets/Vibe64DashboardShell-MBkUHjs-.css +1 -0
- package/dist/assets/Vibe64DatabaseWorkspace-BONJdxBS.js +18 -0
- package/dist/assets/{Vibe64DatabaseWorkspace-C39Jvver.css → Vibe64DatabaseWorkspace-CR4pzzcf.css} +1 -1
- package/dist/assets/Vibe64OutputControls-DAAmA09l.js +8 -0
- package/dist/assets/{Vibe64OutputControls-CsZFv12r.css → Vibe64OutputControls-DPBsyDZM.css} +1 -1
- package/dist/assets/{Vibe64RepositoryWorkspace-ebUaYOU4.js → Vibe64RepositoryWorkspace-ByQlZbyO.js} +2 -2
- package/dist/assets/{Vibe64RepositoryWorkspace-Cqm6TOFk.css → Vibe64RepositoryWorkspace-CVHcT93M.css} +1 -1
- package/dist/assets/Vibe64SessionFiles-B0u9HKdF.js +107 -0
- package/dist/assets/Vibe64SessionFiles-NjOMVwPR.css +1 -0
- package/dist/assets/Vibe64TemporaryAiFixAction-BGlcrq4d.js +1 -0
- package/dist/assets/Vibe64UiStoryboardView-3WXph5bz.css +1 -0
- package/dist/assets/Vibe64UiStoryboardView-Brlwdvqi.js +7 -0
- package/dist/assets/Vibe64UnavailableSessions-zwlWlcZD.js +1 -0
- package/dist/assets/_sessionId_-CvOkQbVy.js +1 -0
- package/dist/assets/{_sessionTool_-B39BIzzZ.js → _sessionTool_-Dwod5ns9.js} +1 -1
- package/dist/assets/_slug_-B31c15cc.css +1 -0
- package/dist/assets/_slug_-Dy35qLo1.js +1 -0
- package/dist/assets/access-BVu5XYm2.js +1 -0
- package/dist/assets/app-DRXCcv05.css +1 -0
- package/dist/assets/app-zt7HwQKT.js +1 -0
- package/dist/assets/assistantRouting-CwbwfkwB.js +3 -0
- package/dist/assets/{changes-ByjS7QGx.js → changes-olY8cnFK.js} +1 -1
- package/dist/assets/{client-C-tpoG6F.js → client-BrV4QPwG.js} +1 -1
- package/dist/assets/createSimpleFunctional-CZTGuNuR.js +1 -0
- package/dist/assets/dashboard-BnXD-H4R.js +1 -0
- package/dist/assets/definitions-DaOPIkyB.js +1 -0
- package/dist/assets/env-DJhnLOH7.css +1 -0
- package/dist/assets/env-DN0vW4EI.js +1 -0
- package/dist/assets/{error-DFKtZBJ8.js → error-DgrgRbJJ.js} +1 -1
- package/dist/assets/{error-DE4zo8Lk.js → error-Dug56can.js} +1 -1
- package/dist/assets/health-7oIQODer.css +1 -0
- package/dist/assets/health-Z6m96GDr.js +1 -0
- package/dist/assets/history-BOwbCRQP.css +1 -0
- package/dist/assets/history-BxlpB-YH.js +1 -0
- package/dist/assets/incoming-BOxRVlOM.js +2 -0
- package/dist/assets/incoming-DWDrmxyH.css +1 -0
- package/dist/assets/index-BUq-MczL.js +86 -0
- package/dist/assets/{index-D4MsP3dq.css → index-DtmBqE3h.css} +1 -1
- package/dist/assets/{integrations-B4txOZfY.js → integrations-BFltGDVI.js} +1 -1
- package/dist/assets/issues-1iS5zoed.js +1 -0
- package/dist/assets/issues-XnpGgdmn.css +1 -0
- package/dist/assets/layout-BkWVNT37.js +1 -0
- package/dist/assets/lazy-NHSwD9FS.js +1 -0
- package/dist/assets/mdi-C54lQ0i_.js +1 -0
- package/dist/assets/{pages-BW2l8fNe.js → pages-DuMgH61T.js} +1 -1
- package/dist/assets/{placement-JxzrmUR3.js → placement-CwTqWLQH.js} +1 -1
- package/dist/assets/placement-DLsU3pCW.js +1 -0
- package/dist/assets/pull-requests-BJOwNL4k.js +1 -0
- package/dist/assets/pull-requests-CdbhyFOv.css +1 -0
- package/dist/assets/{repository-BTC3lkrh.js → repository-JWLVST3D.js} +1 -1
- package/dist/assets/{VAvatar-CAFvgSUo.js → ripple-BVltMmyV.js} +2 -2
- package/dist/assets/ripple-DqhAt1Ze.css +1 -0
- package/dist/assets/runtime-core.esm-bundler-DGXg_mpN.js +3 -0
- package/dist/assets/{session-CG-TUCJt.css → session-5qADMzDP.css} +1 -1
- package/dist/assets/session-C5Nj8Dlq.js +1 -0
- package/dist/assets/settings-BopLnpB0.css +1 -0
- package/dist/assets/settings-c273Ikrm.js +1 -0
- package/dist/assets/ssrBoot-Rlh6kLbD.js +1 -0
- package/dist/assets/{studioGateApi-C0GvzVlt.js → studioGateApi-DhA9IJGZ.js} +1 -1
- package/dist/assets/{studioUrls-CIab-Axb.js → studioUrls-Dj8rXeXO.js} +1 -1
- package/dist/assets/{useApi-BPuI6ZR9-Dr8wK_Co.js → useApi-BPuI6ZR9-CFWU1m37.js} +1 -1
- package/dist/assets/useArchivedVibe64Sessions-CVZx2Rtm.js +1 -0
- package/dist/assets/useCommand-DWuxfAV0.js +1 -0
- package/dist/assets/useEndpointResource-MWVNfmMa.js +1 -0
- package/dist/assets/{usePaths-DVTieF_G.js → usePaths-Db88-HOm.js} +1 -1
- package/dist/assets/{useUiFeedback-Tzi-PRlX.js → useUiFeedback-0FqKuZRP.js} +1 -1
- package/dist/assets/useVibe64ConversationLog-8cKh1eDm.js +1 -0
- package/dist/assets/useVibe64DatabaseTools-BcRG1s3i.js +1 -0
- package/dist/assets/useVibe64LearningMode-Bl0dGdCh.js +28 -0
- package/dist/assets/useVibe64LearningMode-C3PcXdVg.css +1 -0
- package/dist/assets/useVibe64ProjectScope-DOEVkBqX.js +1 -0
- package/dist/assets/useVibe64SessionData-DFTyLzci.js +1 -0
- package/dist/assets/useVibe64SessionSelection-j9lsllx4.js +1 -0
- package/dist/assets/useVibe64SystemGraph-tNkIwSBQ.js +1 -0
- package/dist/assets/{useVibe64Terminal-C2XJ9Y1K.js → useVibe64Terminal-BPnN25WH.js} +1 -1
- package/dist/assets/vibe64AssistantHost-DdE_-lZF.js +1 -0
- package/dist/assets/vibe64LessonDashboard-DlKYjisq.js +1 -0
- package/dist/assets/vibe64ProjectScope.local-DqT6e5un.js +1 -0
- package/dist/assets/vibe64RepositoryRealtime-DXk0Jai3.js +1 -0
- package/dist/assets/vibe64SessionFocus-OJ2toBd9.css +1 -0
- package/dist/assets/vibe64SessionFocus-kqPOPaOH.js +1 -0
- package/dist/assets/{vibe64SessionInfo-D8l22MFm.js → vibe64SessionInfo-BHxtTrLX.js} +1 -1
- package/dist/assets/vibe64SessionToolDefinitions-NfLd1HZI.js +1 -0
- package/dist/assets/vue-flow-core-BlVEnES8.js +26 -0
- package/dist/index.html +51 -48
- package/docs/colleague-usage/account-profile-and-appearance.md +29 -0
- package/docs/colleague-usage/ai-accounts-and-routing.md +23 -4
- package/docs/colleague-usage/ai-balance-and-allowance.md +4 -0
- package/docs/colleague-usage/architecture-explanations.md +99 -0
- package/docs/colleague-usage/auto-workflow.md +49 -11
- package/docs/colleague-usage/coding-agent-failures.md +94 -0
- package/docs/colleague-usage/coding-agent-goal-pause.md +110 -0
- package/docs/colleague-usage/coding-agent-goals.md +140 -38
- package/docs/colleague-usage/coding-agent-history.md +20 -2
- package/docs/colleague-usage/coding-agent-recovery.md +136 -0
- package/docs/colleague-usage/coding-agents.md +138 -150
- package/docs/colleague-usage/colleague-recovery.md +28 -5
- package/docs/colleague-usage/colleague-upgrade-recovery.md +4 -0
- package/docs/colleague-usage/colleague-watches.md +84 -0
- package/docs/colleague-usage/colleague.md +18 -34
- package/docs/colleague-usage/connected-contributions.md +196 -0
- package/docs/colleague-usage/connected-projects.md +196 -0
- package/docs/colleague-usage/conversation-context.md +67 -1
- package/docs/colleague-usage/dashboard-navigation.md +79 -5
- package/docs/colleague-usage/database.md +11 -0
- package/docs/colleague-usage/developing-vibe64.md +137 -0
- package/docs/colleague-usage/development-copies.md +20 -0
- package/docs/colleague-usage/development-env.md +34 -0
- package/docs/colleague-usage/file-interfaces.md +156 -0
- package/docs/colleague-usage/github-work.md +88 -1
- package/docs/colleague-usage/health-checks.md +32 -0
- package/docs/colleague-usage/incoming-changes.md +94 -0
- package/docs/colleague-usage/learning-chat-retention.md +11 -2
- package/docs/colleague-usage/learning-code-questions.md +55 -0
- package/docs/colleague-usage/learning-course-catalogue.md +118 -0
- package/docs/colleague-usage/learning-diagrams-and-voice.md +97 -0
- package/docs/colleague-usage/learning-history.md +17 -9
- package/docs/colleague-usage/learning-lesson-watch.md +95 -0
- package/docs/colleague-usage/learning-mode-ui.md +187 -85
- package/docs/colleague-usage/learning-native-session.md +12 -10
- package/docs/colleague-usage/learning-practical-exercises.md +71 -0
- package/docs/colleague-usage/learning-practical-gestures.md +18 -1
- package/docs/colleague-usage/learning-practice-projects.md +55 -4
- package/docs/colleague-usage/learning-session-creation.md +7 -7
- package/docs/colleague-usage/learning-teacher-guide.md +52 -0
- package/docs/colleague-usage/learning-with-colleague.md +59 -80
- package/docs/colleague-usage/lesson-authoring.md +12 -4
- package/docs/colleague-usage/lesson-practical-assessment.md +3 -1
- package/docs/colleague-usage/managed-app-access.md +6 -0
- package/docs/colleague-usage/message-delivery-recovery.md +56 -0
- package/docs/colleague-usage/plans.md +14 -7
- package/docs/colleague-usage/preview-browser-checks.md +61 -0
- package/docs/colleague-usage/preview-lesson-presentation.md +56 -0
- package/docs/colleague-usage/preview-starting-application.md +92 -0
- package/docs/colleague-usage/preview.md +70 -96
- package/docs/colleague-usage/project-architecture.md +229 -0
- package/docs/colleague-usage/project-language-tools.md +31 -0
- package/docs/colleague-usage/project-messages.md +106 -0
- package/docs/colleague-usage/project-settings.md +22 -0
- package/docs/colleague-usage/project-setup.md +29 -2
- package/docs/colleague-usage/session-terminal.md +42 -0
- package/docs/colleague-usage/sessions.md +122 -52
- package/docs/colleague-usage/teaching-content.md +12 -6
- package/docs/colleague-usage/temporary-chat-context.md +29 -0
- package/docs/colleague-usage/temporary-chats.md +95 -2
- package/docs/colleague-usage/voice-chat.md +10 -43
- package/docs/colleague-usage/voice-face-and-speaking-voice.md +73 -0
- package/docs/colleague-usage/workspace-preparation.md +89 -0
- package/docs/training-content.md +208 -7
- package/node_modules/@jskit-ai/assistant-core/package.json +1 -1
- package/node_modules/@jskit-ai/assistant-runtime/README.md +29 -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/package.json +1 -1
- package/node_modules/@jskit-ai/connectors-catalog/package.json +1 -1
- package/node_modules/@jskit-ai/connectors-core/package.json +1 -1
- package/node_modules/@jskit-ai/http-runtime/package.json +1 -1
- package/node_modules/@jskit-ai/kernel/package.json +1 -1
- package/node_modules/@jskit-ai/payments-core/package.json +1 -1
- package/node_modules/@jskit-ai/realtime/package.json +1 -1
- package/node_modules/@jskit-ai/resource-core/package.json +1 -1
- package/node_modules/@jskit-ai/resource-crud-core/package.json +1 -1
- package/node_modules/@jskit-ai/uploads-runtime/package.json +1 -1
- package/node_modules/@local/vibe64-core/package.json +1 -0
- package/node_modules/@local/vibe64-execution/src/host/execHelper.js +280 -272
- package/node_modules/@local/vibe64-genesis/README.md +15 -0
- package/node_modules/@local/vibe64-genesis/bin/vibe64-genesis-host-context +879 -1225
- package/node_modules/@local/vibe64-genesis/package.json +2 -1
- package/node_modules/@local/vibe64-genesis/src/server/index.js +496 -418
- package/node_modules/@local/vibe64-genesis/src/server/promptContext.js +165 -146
- package/node_modules/@local/vibe64-runtime/src/server/agentSessionCommandHook.js +8 -8
- package/node_modules/@local/vibe64-runtime/src/server/codexAppServerProcess.js +128 -129
- package/node_modules/@local/vibe64-system-graph/README.md +136 -6
- package/node_modules/@local/vibe64-terminals/package.json +3 -0
- package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +1527 -1326
- package/node_modules/@local/vibe64-training/package.json +6 -1
- package/node_modules/@local/vibe64-voice/package.json +1 -0
- package/package.json +16 -16
- package/server.bundle.mjs +42853 -40268
- package/dist/assets/StudioErrorNotice-Ccjvcn9C.js +0 -1
- package/dist/assets/VAlert-B7ciJKQL.js +0 -1
- package/dist/assets/VAutocomplete-QjMk5d_j.js +0 -1
- package/dist/assets/VAvatar-nHaK192T.css +0 -1
- package/dist/assets/VBtn-Kl_qcBsy.js +0 -1
- package/dist/assets/VCard-nrJPeo91.js +0 -1
- package/dist/assets/VCheckbox-DTRAWOIf.js +0 -1
- package/dist/assets/VChip-Dfs5jX0f.js +0 -1
- package/dist/assets/VDialog-Dt1VjJg1.js +0 -1
- package/dist/assets/VDivider-DFsS0OTx.js +0 -1
- package/dist/assets/VExpansionPanels-CYKU0cAr.js +0 -1
- package/dist/assets/VMenu-BLxobsuU.js +0 -1
- package/dist/assets/VOverlay-BvFVZKNS.js +0 -1
- package/dist/assets/VRadioGroup-DzQzpCfg.js +0 -1
- package/dist/assets/VRow-BR2RMCM1.js +0 -1
- package/dist/assets/VSheet-BA95RNmA.js +0 -1
- package/dist/assets/VSkeletonLoader-hpJqr0HL.js +0 -1
- package/dist/assets/VSpacer-B1l1hVvU.js +0 -1
- package/dist/assets/VTextField-CA_p3N4d.js +0 -1
- package/dist/assets/VTextarea-NyCqY4h5.js +0 -1
- package/dist/assets/Vibe64AsyncModuleState-DEFlqJ97.js +0 -1
- package/dist/assets/Vibe64DashboardShell-BNv2I-P8.js +0 -1
- package/dist/assets/Vibe64DashboardShell-w20wNTGW.css +0 -1
- package/dist/assets/Vibe64DatabaseWorkspace-CuY5lN1o.js +0 -43
- package/dist/assets/Vibe64OutputControls-D2JuYlYU.js +0 -8
- package/dist/assets/Vibe64SessionFiles-C-rWehq_.js +0 -34
- package/dist/assets/Vibe64SessionFiles-Dsr6KQNP.css +0 -1
- package/dist/assets/Vibe64SubsystemsView-BvdU_o6H.css +0 -1
- package/dist/assets/Vibe64SubsystemsView-DJCjSzQM.js +0 -1
- package/dist/assets/Vibe64SystemWorldView-B91ioQaO.js +0 -4312
- package/dist/assets/Vibe64SystemWorldView-BXiQ7_Qb.css +0 -1
- package/dist/assets/Vibe64UnavailableSessions-OvnoD3ZB.js +0 -1
- package/dist/assets/_sessionId_-JTvMh54L.js +0 -1
- package/dist/assets/_slug_-DP_heCDa.js +0 -1
- package/dist/assets/_slug_-DmBZGb0q.css +0 -1
- package/dist/assets/access-C8GQIS19.js +0 -1
- package/dist/assets/app-B83lF61Y.js +0 -1
- package/dist/assets/app-ByLIQ3SB.css +0 -1
- package/dist/assets/assistantRouting-TDtryU6o.js +0 -1
- package/dist/assets/createSimpleFunctional-DPIT6zsT.js +0 -1
- package/dist/assets/dashboard-CWGFPojJ.js +0 -1
- package/dist/assets/definitions-BeLcvOW3.js +0 -1
- package/dist/assets/display-BLmcO-5p.js +0 -1
- package/dist/assets/env-7bqFyF_E.css +0 -1
- package/dist/assets/env-BVwxNL8M.js +0 -1
- package/dist/assets/health-BzNhp7r8.js +0 -1
- package/dist/assets/health-DoHTXTGx.css +0 -1
- package/dist/assets/history-BPeZGofK.js +0 -1
- package/dist/assets/history-iMQxp5AR.css +0 -1
- package/dist/assets/httpClient-BaaZuFvF.js +0 -1
- package/dist/assets/index-5sKwLHOH.js +0 -86
- package/dist/assets/issues-DCEhGlfn.css +0 -1
- package/dist/assets/issues-wby50y9b.js +0 -3
- package/dist/assets/layout-YCn17mK1.js +0 -1
- package/dist/assets/lazy-CvQfXeLg.js +0 -1
- package/dist/assets/mdi-C31_SZp-.js +0 -1
- package/dist/assets/placement-C4R2t6rl.js +0 -1
- package/dist/assets/pull-requests-BNK6mq2u.css +0 -1
- package/dist/assets/pull-requests-lNQAigaC.js +0 -1
- package/dist/assets/runtime-core.esm-bundler-DMrccYS5.js +0 -3
- package/dist/assets/session-D38nzG41.js +0 -1
- package/dist/assets/settings-CFyUJ_kR.js +0 -1
- package/dist/assets/settings-vWsAEoE9.css +0 -1
- package/dist/assets/useArchivedVibe64Sessions-C2DSq2Z4.js +0 -1
- package/dist/assets/useCommand-BzThFLYP.js +0 -1
- package/dist/assets/useEndpointResource-C2KD4Ub_.js +0 -1
- package/dist/assets/useVibe64ConversationLog-CMUlXJtU.js +0 -1
- package/dist/assets/useVibe64DatabaseTools-DBcKhm6B.js +0 -1
- package/dist/assets/useVibe64LearningMode-BPRWM5Rp.js +0 -28
- package/dist/assets/useVibe64LearningMode-PJUv0O25.css +0 -1
- package/dist/assets/useVibe64SessionData-CdtJbAIx.js +0 -1
- package/dist/assets/useVibe64SessionSelection-aR0f6xVT.js +0 -1
- package/dist/assets/useVibe64SystemGraph-DeTPBn0e.js +0 -1
- package/dist/assets/vibe64AssistantHost-Dgyz4TrT.js +0 -1
- package/dist/assets/vibe64ProjectScope.local-GOSMVDRi.js +0 -1
- package/dist/assets/vibe64RepositoryRealtime-t5Al8BlU.js +0 -1
- package/dist/assets/vibe64SessionFocus-CcN6Grgw.js +0 -1
- package/dist/assets/vibe64SessionFocus-ChabllPA.css +0 -1
- package/dist/assets/vibe64SessionToolDefinitions-BaO1DEup.js +0 -1
- /package/dist/assets/{vibe64RepositoryRealtime-D_mq1dFE.css → Vibe64TemporaryAiFixAction-D_mq1dFE.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Wn as vShow,h as VIcon}from"./ripple-BVltMmyV.js";import{D as createVNode,E as createTextVNode,Ht as watch,J as inject,On as unref,Ut as watchEffect,Yt as withDirectives,Zn as normalizeClass,_ as createBaseVNode,b as createElementBlock,bt as renderList,ct as onMounted,er as normalizeStyle,et as mergeProps,g as computed,gn as reactive,it as onBeforeUnmount,mt as openBlock,o as Fragment,pn as onScopeDispose,qt as withCtx,tr as toDisplayString,tt as nextTick,u as Teleport,v as createBlock,vn as ref,y as createCommentVNode}from"./runtime-core.esm-bundler-DGXg_mpN.js";import{n as useShellWebErrorRuntime}from"./error-Dug56can.js";import{J as useQueryClient,T as ROUTE_VISIBILITY_PUBLIC,t as useEndpointResource}from"./useEndpointResource-MWVNfmMa.js";import{_ as useRouter,c as isNavigationFailure,g as useRoute,t as NavigationFailureType}from"./useApi-BPuI6ZR9-CFWU1m37.js";import{a as projectSlugFromRoute,j as useRealtimeEvent,r as projectAppPath,u as getHttpWebClient}from"./vibe64ProjectScope.local-DqT6e5un.js";import{t as VSelect}from"./VSelect-DL3HaA5m.js";import{g as useDisplay,n as VBadge}from"./VAvatar-DPzqDH4r.js";import{n as VList,s as VListItem,t as VMenu}from"./VMenu-C_x18lwb.js";import{t as VTextField}from"./VTextField-BR2eZeFT.js";import{c as VIBE64_COLLEAGUE_LAYOUT_KEY,d as VIBE64_COLLEAGUE_VIEW_KEY,m as VIBE64_TRAINING_LEARNER_GESTURE_KEY,p as VIBE64_LEARNING_NAVIGATION_KEY}from"./vibe64AssistantHost-DdE_-lZF.js";import{A as mdiCheckCircleOutline,Bn as mdiSchoolOutline,Fn as mdiRefresh,J as mdiCogOutline,M as mdiChevronLeft,N as mdiChevronRight,Wn as mdiSourceBranch,b as mdiArrowUp,dn as mdiLinkVariantOff,er as mdiSwapVertical,h as mdiArrowDown,j as mdiChevronDown,l as mdiAlertCircleOutline,zt as mdiHelpCircleOutline}from"./mdi-C54lQ0i_.js";import{t as VBtn}from"./VBtn-B2MBK2DL.js";import{t as VAlert}from"./VAlert-P256xaE0.js";import{t as VDivider}from"./VDivider-BMEqUoAB.js";import{t as VSheet}from"./VSheet-DZWsu0kL.js";import{t as VDialog}from"./VDialog-Bu3EfKb1.js";import{i as VCardTitle,n as VCardText,o as VCardActions,t as VCard}from"./VCard-mXy0k4aS.js";import{t as VSpacer}from"./VSpacer-Dhmsvk4t.js";import{t as VSkeletonLoader}from"./VSkeletonLoader-CttxM1tw.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{a as guideElementVisible,c as Vibe64LearningPracticeProjectSelector_default,d as projectSelectionGateQueryKey,f as StudioAppShellLayout_default,i as clearTrainingGuide,l as Vibe64AuthSettingsButton_default,n as Vibe64LearningLessonLauncher_default,o as registerTrainingGuideOverlay,r as Vibe64SessionPanel_default,s as trainingGuide,t as useVibe64LearningMode,u as ProjectSelectionGate_default}from"./useVibe64LearningMode-Bl0dGdCh.js";import{t as useCommand}from"./useCommand-DWuxfAV0.js";import{t as useUiFeedback}from"./useUiFeedback-0FqKuZRP.js";import{i as studioApiPath,r as scopedDevelopmentApiUrl}from"./studioUrls-Dj8rXeXO.js";import{n as vibe64ApiResponseError,r as vibe64ResourceResponseError}from"./vibe64ApiResponses-DNLY1Kel.js";import{r as vibe64RealtimePayloadFromCurrentTab}from"./vibe64BrowserTabOrigin-SF9E31vi.js";import{_ as readRefOrGetterValue,_n as RouterView,s as useShellLayoutState}from"./index-BUq-MczL.js";import{a as vibe64SessionDebugDurationMs,o as vibe64SessionDebugError,s as vibe64SessionDebugLog}from"./vibe64SessionPanelModel-BMf64fv7.js";import{c as PROJECT_SELECTION_ENDPOINT,y as VIBE64_PROJECT_CHANGED_EVENT}from"./studioGateApi-DhA9IJGZ.js";import{r as invalidateGithubIssueQueries}from"./vibe64GithubProject-CdFrbVHp.js";import{t as route_block_default}from"./route-block-DbL-SuOj.js";var _hoisted_1$2={key:1,class:`local-remotes__branch-name`};var _hoisted_2$2={class:`local-remotes__status text-body-small mb-3`,role:`status`,"aria-live":`polite`};var _hoisted_3$1={class:`d-flex flex-column ga-1`};var _hoisted_4$1={class:`local-remotes__count ms-2`};var _hoisted_5$1={class:`local-remotes__count ms-2`};var _hoisted_6$1={class:`local-remotes__details text-body-medium`};var _hoisted_7$1={key:0,class:`text-body-medium text-error mt-3 local-remotes__message`};var _hoisted_8$1={key:1,class:`text-body-small text-medium-emphasis mt-3`};var _hoisted_9={key:0};var _hoisted_10={class:`local-remotes__message`};var _hoisted_11={key:0};var _hoisted_12={class:`local-remotes__url`};var _hoisted_13={key:0};var _hoisted_14={key:1};var _hoisted_15={key:2};var _sfc_main$2={__name:`Vibe64LocalRemoteControls`,props:{project:{type:Object,required:true}},setup(__props){const props=__props;const{xs}=useDisplay();const state=ref(null);const busy=ref(``);const error=ref(``);const isBusy=computed(()=>Boolean(busy.value));const detailsOpen=ref(false);const settingsOpen=ref(false);const settings=reactive({remote:``,branch:``,pushRemote:``,pushBranch:``});const settingsReview=ref(null);const pendingReview=ref(null);const branchAction=ref(``);const branchName=ref(``);const branchReview=ref(null);const feedback=useUiFeedback({source:`vibe64.repository.remote`});const endpoint=computed(()=>scopedDevelopmentApiUrl(studioApiPath(`vibe64/repository/remote`),props.project.slug));let generation=0;let timer;const remoteError=computed(()=>error.value||state.value?.error||``);const syncStatus=computed(()=>{const current=state.value;if(remoteError.value)return{label:`Check failed`,icon:mdiAlertCircleOutline,color:`error`};if(!current)return{label:`Not checked`,icon:mdiHelpCircleOutline};if(!current.upstream&&!current.push)return{label:current.remotes.length?`Setup needed`:`Local only`,icon:mdiLinkVariantOff};const changes=[];if(current.incoming>0)changes.push(`${current.incoming} incoming`);if(current.outgoing>0)changes.push(`${current.outgoing} outgoing`);if(changes.length)return{label:changes.join(` · `),icon:mdiSwapVertical,color:`primary`};if(!current.upstream||!current.push)return{label:`Setup needed`,icon:mdiLinkVariantOff};if(current.incoming===null||current.outgoing===null)return{label:`Not checked`,icon:mdiHelpCircleOutline};return{label:`Up to date`,icon:mdiCheckCircleOutline,color:`success`}});function destination(target){return`${target.remote}/${target.branch}`}function snapshot(value){return JSON.parse(JSON.stringify(value))}async function request(body){const result=await getHttpWebClient().request(endpoint.value,{method:`POST`,body});if(result?.ok===false)throw new Error(vibe64ApiResponseError(result,`The Git operation failed.`));return result}async function refresh(background=true){if(busy.value||settingsOpen.value||pendingReview.value||branchAction.value||document.hidden||props.project.repositoryMode!==`local_source`)return;const current=generation;busy.value=`fetch`;try{const result=await request({action:`fetch`,background});if(current!==generation)return;state.value=result;error.value=``}catch(cause){if(current===generation){error.value=cause.message;if(!background)feedback.error(cause,`Could not fetch remote changes.`)}}finally{if(current===generation)busy.value=``}}function review(action){detailsOpen.value=false;const current=state.value;pendingReview.value={action,review:snapshot(current.review),target:snapshot(action===`push`?current.push:current.upstream),count:current.outgoing,merge:action===`pull`&¤t.incoming>0&¤t.localAhead>0}}function openSettings(){detailsOpen.value=false;settingsReview.value=snapshot(state.value.review);const onlyRemote=state.value.remotes.length===1?state.value.remotes[0].name:``;Object.assign(settings,{remote:state.value.upstream?.remote||onlyRemote,branch:state.value.upstream?.branch||state.value.branch,pushRemote:state.value.push?.remote||onlyRemote,pushBranch:state.value.push?.branch||state.value.branch});settingsOpen.value=true}function openBranch(action){detailsOpen.value=false;branchReview.value=snapshot(state.value.review);branchName.value=``;branchAction.value=action}async function execute(body){if(busy.value)return;const current=generation;busy.value=body.action;try{const result=await request(body);if(current!==generation)return;state.value=result;settingsOpen.value=false;pendingReview.value=null;branchAction.value=``;error.value=``}catch(cause){if(current===generation)feedback.error(cause,`The Git operation could not finish.`)}finally{if(current===generation)busy.value=``}}async function saveSettings(){await execute({action:`configure`,review:settingsReview.value,settings:{...settings}});if(!settingsOpen.value)await refresh(false)}function confirmOperation(){const pending=pendingReview.value;return execute({action:pending.action,review:pending.review,merge:pending.merge})}watch(endpoint,()=>{generation+=1;state.value=null;busy.value=``;error.value=``;pendingReview.value=null;settingsOpen.value=false;branchAction.value=``;detailsOpen.value=false;refresh()},{immediate:true});const onVisible=()=>{if(!document.hidden)refresh()};onMounted(()=>{timer=setInterval(onVisible,6e4);document.addEventListener(`visibilitychange`,onVisible);window.addEventListener(`focus`,onVisible)});onScopeDispose(()=>{generation+=1;clearInterval(timer);document.removeEventListener(`visibilitychange`,onVisible);window.removeEventListener(`focus`,onVisible)});return(_ctx,_cache)=>{return __props.project.repositoryMode===`local_source`?(openBlock(),createBlock(VSheet,{key:0,color:`transparent`,class:`local-remotes`,tag:`section`,"aria-label":`Local Git repository`},{default:withCtx(()=>[!state.value&&busy.value?(openBlock(),createBlock(VSkeletonLoader,{key:0,"aria-label":`Loading Git remote status`,"aria-busy":`true`,type:`button`,width:unref(xs)?48:112,height:`32`},null,8,[`width`])):(openBlock(),createBlock(VMenu,{key:1,modelValue:detailsOpen.value,"onUpdate:modelValue":_cache[5]||(_cache[5]=$event=>detailsOpen.value=$event),location:`bottom start`,"close-on-content-click":false,width:`360`,"max-width":`calc(100vw - 32px)`},{activator:withCtx(({props:menuProps})=>[createVNode(VBadge,{"model-value":Boolean(remoteError.value)||state.value?.incoming>0||state.value?.outgoing>0,content:remoteError.value?`!`:(state.value?.incoming||0)+(state.value?.outgoing||0),color:remoteError.value?`error`:`primary`,max:`99`,"offset-x":`5`,"offset-y":`5`},{default:withCtx(()=>[createVNode(VBtn,mergeProps(menuProps,{class:`local-remotes__branch`,variant:`tonal`,rounded:`lg`,height:`32`,icon:unref(xs),width:unref(xs)?48:void 0,"prepend-icon":unref(xs)?void 0:unref(mdiSourceBranch),"append-icon":unref(xs)?void 0:unref(mdiChevronDown),"aria-label":`Git details for ${state.value?.branch||`this repository`}. ${syncStatus.value.label}`,title:`${state.value?.branch||`Git details`} · ${syncStatus.value.label}`}),{default:withCtx(()=>[unref(xs)?(openBlock(),createBlock(VIcon,{key:0,icon:unref(mdiSourceBranch)},null,8,[`icon`])):(openBlock(),createElementBlock(`span`,_hoisted_1$2,toDisplayString(state.value?.branch||(state.value?`No branch`:`Repository`)),1))]),_:1},16,[`icon`,`width`,`prepend-icon`,`append-icon`,`aria-label`,`title`])]),_:2},1032,[`model-value`,`content`,`color`])]),default:withCtx(()=>[createVNode(VSheet,{class:`pa-4`,rounded:`lg`,elevation:`3`},{default:withCtx(()=>[_cache[28]||(_cache[28]=createBaseVNode(`div`,{class:`text-label-large mb-2`},`Local repository`,-1)),createBaseVNode(`div`,_hoisted_2$2,[createVNode(VIcon,{icon:syncStatus.value.icon,color:syncStatus.value.color,size:`18`},null,8,[`icon`,`color`]),createBaseVNode(`span`,null,toDisplayString(syncStatus.value.label),1)]),createBaseVNode(`div`,_hoisted_3$1,[createVNode(VBtn,{height:`48`,variant:`text`,"prepend-icon":unref(mdiSourceBranch),disabled:isBusy.value||!state.value?.head,onClick:_cache[0]||(_cache[0]=$event=>openBranch(`switch`))},{default:withCtx(()=>[..._cache[19]||(_cache[19]=[createTextVNode(`Switch branch…`,-1)])]),_:1},8,[`prepend-icon`,`disabled`]),createVNode(VBtn,{height:`48`,variant:`text`,"prepend-icon":unref(mdiSourceBranch),disabled:isBusy.value||!state.value?.head,onClick:_cache[1]||(_cache[1]=$event=>openBranch(`create`))},{default:withCtx(()=>[..._cache[20]||(_cache[20]=[createTextVNode(`New branch…`,-1)])]),_:1},8,[`prepend-icon`,`disabled`]),createVNode(VBtn,{height:`48`,variant:`text`,"prepend-icon":unref(mdiRefresh),"aria-label":busy.value===`fetch`?`Fetching remote changes`:`Fetch remote changes`,disabled:isBusy.value,onClick:_cache[2]||(_cache[2]=$event=>refresh(false))},{default:withCtx(()=>[createTextVNode(toDisplayString(busy.value===`fetch`?`Fetching…`:`Fetch`),1)]),_:1},8,[`prepend-icon`,`aria-label`,`disabled`]),state.value?.upstream&&state.value.incoming>0?(openBlock(),createBlock(VBtn,{key:0,height:`48`,color:`primary`,variant:`flat`,"prepend-icon":unref(mdiArrowDown),disabled:isBusy.value||Boolean(remoteError.value),onClick:_cache[3]||(_cache[3]=$event=>review(`pull`))},{default:withCtx(()=>[_cache[21]||(_cache[21]=createTextVNode(` Pull `,-1)),createBaseVNode(`span`,_hoisted_4$1,toDisplayString(state.value.incoming),1)]),_:1},8,[`prepend-icon`,`disabled`])):createCommentVNode(``,true),state.value?.push&&state.value.outgoing>0?(openBlock(),createBlock(VBtn,{key:1,height:`48`,color:`primary`,variant:state.value.incoming>0?`tonal`:`flat`,"prepend-icon":unref(mdiArrowUp),disabled:isBusy.value||Boolean(remoteError.value),onClick:_cache[4]||(_cache[4]=$event=>review(`push`))},{default:withCtx(()=>[_cache[22]||(_cache[22]=createTextVNode(` Push `,-1)),createBaseVNode(`span`,_hoisted_5$1,toDisplayString(state.value.outgoing),1)]),_:1},8,[`variant`,`prepend-icon`,`disabled`])):createCommentVNode(``,true)]),createVNode(VDivider,{class:`my-3`}),createBaseVNode(`dl`,_hoisted_6$1,[_cache[23]||(_cache[23]=createBaseVNode(`dt`,null,`Branch`,-1)),createBaseVNode(`dd`,null,toDisplayString(state.value?.branch||`No branch checked out`),1),_cache[24]||(_cache[24]=createBaseVNode(`dt`,null,`Pull from`,-1)),createBaseVNode(`dd`,null,toDisplayString(state.value?.upstream?destination(state.value.upstream):`Not configured`),1),_cache[25]||(_cache[25]=createBaseVNode(`dt`,null,`Push to`,-1)),createBaseVNode(`dd`,null,toDisplayString(state.value?.push?destination(state.value.push):`Not configured`),1),_cache[26]||(_cache[26]=createBaseVNode(`dt`,null,`Last checked`,-1)),createBaseVNode(`dd`,null,toDisplayString(state.value?.checkedAt?new Date(state.value.checkedAt).toLocaleString():`Not checked yet`),1)]),remoteError.value?(openBlock(),createElementBlock(`p`,_hoisted_7$1,toDisplayString(remoteError.value),1)):!state.value?.upstream||!state.value?.push?(openBlock(),createElementBlock(`p`,_hoisted_8$1,` Set pull and push destinations to track remote changes. `)):createCommentVNode(``,true),createVNode(VDivider,{class:`my-3`}),createVNode(VBtn,{variant:`text`,block:``,height:`48`,"prepend-icon":unref(mdiCogOutline),disabled:isBusy.value||!state.value?.branch,onClick:openSettings},{default:withCtx(()=>[..._cache[27]||(_cache[27]=[createTextVNode(` Remote settings `,-1)])]),_:1},8,[`prepend-icon`,`disabled`])]),_:1})]),_:1},8,[`modelValue`])),createVNode(VDialog,{"model-value":Boolean(branchAction.value),"max-width":`560`,scrollable:``,persistent:isBusy.value,"onUpdate:modelValue":_cache[10]||(_cache[10]=$event=>!$event&&(branchAction.value=``))},{default:withCtx(()=>[createVNode(VCard,{title:branchAction.value===`create`?`Create and switch branch`:`Switch local branch`},{default:withCtx(()=>[createVNode(VCardText,{class:`d-flex flex-column ga-3`},{default:withCtx(()=>[createBaseVNode(`p`,null,[_cache[29]||(_cache[29]=createTextVNode(`Changes the opened project folder from `,-1)),createBaseVNode(`strong`,null,toDisplayString(branchReview.value?.branch),1),_cache[30]||(_cache[30]=createTextVNode(`. The folder must be clean.`,-1))]),_cache[31]||(_cache[31]=createBaseVNode(`p`,null,`Existing sessions keep their original destination. To commit or Update those sessions, switch this folder back to their branch. New sessions start on the selected branch.`,-1)),branchAction.value===`create`?(openBlock(),createElementBlock(`p`,_hoisted_9,`The new branch starts at the current local commit. Nothing is pushed.`)):createCommentVNode(``,true),branchAction.value===`create`?(openBlock(),createBlock(VTextField,{key:1,modelValue:branchName.value,"onUpdate:modelValue":_cache[6]||(_cache[6]=$event=>branchName.value=$event),label:`New branch name`,disabled:isBusy.value,maxlength:`255`},null,8,[`modelValue`,`disabled`])):(openBlock(),createBlock(VSelect,{key:2,modelValue:branchName.value,"onUpdate:modelValue":_cache[7]||(_cache[7]=$event=>branchName.value=$event),items:state.value?.localBranches||[],label:`Local branch`,disabled:isBusy.value},null,8,[`modelValue`,`items`,`disabled`])),_cache[32]||(_cache[32]=createBaseVNode(`p`,null,`Database contents stay as they are. Branch selection does not undo migrations.`,-1))]),_:1}),createVNode(VCardActions,{class:`flex-wrap`},{default:withCtx(()=>[createVNode(VSpacer),createVNode(VBtn,{height:`48`,disabled:isBusy.value,onClick:_cache[8]||(_cache[8]=$event=>branchAction.value=``)},{default:withCtx(()=>[..._cache[33]||(_cache[33]=[createTextVNode(`Cancel`,-1)])]),_:1},8,[`disabled`]),createVNode(VBtn,{height:`48`,color:`primary`,variant:`flat`,disabled:isBusy.value||!branchName.value||branchName.value===branchReview.value?.branch,onClick:_cache[9]||(_cache[9]=$event=>execute({action:branchAction.value,branch:branchName.value,review:branchReview.value}))},{default:withCtx(()=>[createTextVNode(toDisplayString(isBusy.value?`Switching…`:branchAction.value===`create`?`Create & switch`:`Switch branch`),1)]),_:1},8,[`disabled`])]),_:1})]),_:1},8,[`title`])]),_:1},8,[`model-value`,`persistent`]),createVNode(VDialog,{modelValue:settingsOpen.value,"onUpdate:modelValue":_cache[16]||(_cache[16]=$event=>settingsOpen.value=$event),"max-width":`560`,scrollable:``,persistent:isBusy.value},{default:withCtx(()=>[createVNode(VCard,null,{default:withCtx(()=>[createVNode(VCardTitle,null,{default:withCtx(()=>[..._cache[34]||(_cache[34]=[createTextVNode(`Remote settings`,-1)])]),_:1}),createVNode(VCardText,{class:`d-flex flex-column ga-3`},{default:withCtx(()=>[createBaseVNode(`p`,_hoisted_10,[_cache[35]||(_cache[35]=createTextVNode(`Destinations for `,-1)),createBaseVNode(`strong`,null,toDisplayString(state.value?.branch),1),_cache[36]||(_cache[36]=createTextVNode(`. Saved in this repository’s Git configuration, including for terminal commands.`,-1))]),!state.value?.remotes?.length?(openBlock(),createElementBlock(`p`,_hoisted_11,[..._cache[37]||(_cache[37]=[createTextVNode(`No remotes configured. Add one with `,-1),createBaseVNode(`code`,null,`git remote add`,-1),createTextVNode(` in the project folder, then Fetch.`,-1)])])):createCommentVNode(``,true),createVNode(VSelect,{modelValue:settings.remote,"onUpdate:modelValue":_cache[11]||(_cache[11]=$event=>settings.remote=$event),items:state.value?.remotes||[],"item-title":`name`,"item-value":`name`,label:`Pull remote`,disabled:isBusy.value},null,8,[`modelValue`,`items`,`disabled`]),createVNode(VTextField,{modelValue:settings.branch,"onUpdate:modelValue":_cache[12]||(_cache[12]=$event=>settings.branch=$event),label:`Pull branch`,disabled:isBusy.value},null,8,[`modelValue`,`disabled`]),createVNode(VSelect,{modelValue:settings.pushRemote,"onUpdate:modelValue":_cache[13]||(_cache[13]=$event=>settings.pushRemote=$event),items:state.value?.remotes||[],"item-title":`name`,"item-value":`name`,label:`Push remote`,disabled:isBusy.value},null,8,[`modelValue`,`items`,`disabled`]),createVNode(VTextField,{modelValue:settings.pushBranch,"onUpdate:modelValue":_cache[14]||(_cache[14]=$event=>settings.pushBranch=$event),label:`Push branch`,disabled:isBusy.value},null,8,[`modelValue`,`disabled`])]),_:1}),createVNode(VCardActions,null,{default:withCtx(()=>[createVNode(VSpacer),createVNode(VBtn,{height:`48`,disabled:isBusy.value,onClick:_cache[15]||(_cache[15]=$event=>settingsOpen.value=false)},{default:withCtx(()=>[..._cache[38]||(_cache[38]=[createTextVNode(`Cancel`,-1)])]),_:1},8,[`disabled`]),createVNode(VBtn,{disabled:isBusy.value||!settings.remote||!settings.branch||!settings.pushRemote||!settings.pushBranch,onClick:saveSettings},{default:withCtx(()=>[createTextVNode(toDisplayString(busy.value?`Saving…`:`Save settings`),1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`modelValue`,`persistent`]),createVNode(VDialog,{"model-value":Boolean(pendingReview.value),"max-width":`560`,scrollable:``,persistent:isBusy.value,"onUpdate:modelValue":_cache[18]||(_cache[18]=$event=>!$event&&(pendingReview.value=null))},{default:withCtx(()=>[pendingReview.value?(openBlock(),createBlock(VCard,{key:0},{default:withCtx(()=>[createVNode(VCardTitle,null,{default:withCtx(()=>[createTextVNode(toDisplayString(pendingReview.value.action===`push`?`Push saved work`:`Pull remote changes`),1)]),_:1}),createVNode(VCardText,null,{default:withCtx(()=>[createBaseVNode(`p`,null,[createTextVNode(toDisplayString(pendingReview.value.action===`push`?`Push to`:`Pull from`)+` `,1),createBaseVNode(`strong`,null,toDisplayString(destination(pendingReview.value.target)),1)]),createBaseVNode(`p`,_hoisted_12,toDisplayString(pendingReview.value.target.url),1),pendingReview.value.action===`push`?(openBlock(),createElementBlock(`p`,_hoisted_13,`Publishes `+toDisplayString(pendingReview.value.count)+` outgoing `+toDisplayString(pendingReview.value.count===1?`commit`:`commits`)+` from the local project. Unsaved session work is not included.`,1)):pendingReview.value.merge?(openBlock(),createElementBlock(`p`,_hoisted_14,`Local and remote history have both advanced. Merge the remote changes into the local project, preserving both histories. Conflicts stop the operation for review.`)):(openBlock(),createElementBlock(`p`,_hoisted_15,`Update the local project folder. Your sessions keep their work and can then use Update this session.`))]),_:1}),createVNode(VCardActions,null,{default:withCtx(()=>[createVNode(VSpacer),createVNode(VBtn,{height:`48`,disabled:isBusy.value,onClick:_cache[17]||(_cache[17]=$event=>pendingReview.value=null)},{default:withCtx(()=>[..._cache[39]||(_cache[39]=[createTextVNode(`Cancel`,-1)])]),_:1},8,[`disabled`]),createVNode(VBtn,{height:`48`,disabled:isBusy.value,onClick:confirmOperation},{default:withCtx(()=>[createTextVNode(toDisplayString(busy.value?`Working…`:pendingReview.value.action===`push`?`Push saved work`:pendingReview.value.merge?`Merge remote changes`:`Pull changes`),1)]),_:1},8,[`disabled`])]),_:1})]),_:1})):createCommentVNode(``,true)]),_:1},8,[`model-value`,`persistent`])]),_:1})):createCommentVNode(``,true)}}};var Vibe64LocalRemoteControls_default=_plugin_vue_export_helper_default(_sfc_main$2,[[`__scopeId`,`data-v-a0155a06`]]);var DRAWER_HIDDEN_CLASS=`studio-shell-drawer-hidden`;function setDrawerToggleHidden(hidden){if(typeof document===`undefined`)return;document.body.classList.toggle(DRAWER_HIDDEN_CLASS,Boolean(hidden))}function useStudioShellDrawer({hidden}){const{drawerDefaultOpen,setDrawerDefaultOpen,setDrawerOpen}=useShellLayoutState();const originalDrawerDefaultOpen=drawerDefaultOpen.value;watchEffect(()=>{const drawerHidden=Boolean(typeof hidden===`function`?hidden():hidden);setDrawerToggleHidden(drawerHidden);if(drawerHidden){setDrawerDefaultOpen(false);setDrawerOpen(false)}});onBeforeUnmount(()=>{setDrawerToggleHidden(false);setDrawerDefaultOpen(originalDrawerDefaultOpen);setDrawerOpen(originalDrawerDefaultOpen)})}function useVibe64ProjectsResource({projectSlug=``,fallbackLoadError=`Projects could not load.`,requestRecoveryLabel=`Projects`}={}){const slug=computed(()=>normalizeText(readRefOrGetterValue(projectSlug)));const selectionPath=computed(()=>slug.value?scopedDevelopmentApiUrl(PROJECT_SELECTION_ENDPOINT,slug.value,{scopeGlobalPaths:true}):PROJECT_SELECTION_ENDPOINT);const resource=useEndpointResource({fallbackLoadError,path:selectionPath,queryKey:computed(()=>projectSelectionGateQueryKey({ownershipFilter:ROUTE_VISIBILITY_PUBLIC,projectSlug:slug.value,scopeSelectionToCurrentProject:Boolean(slug.value),surfaceId:`app`})),refreshOnPull:true,requestRecoveryLabel});const loadError=computed(()=>vibe64ResourceResponseError(resource.data.value,fallbackLoadError)||resource.loadError.value);const currentProject=computed(()=>resource.data.value?.currentProject||null);const projectsRoot=computed(()=>String(resource.data.value?.projectsRoot||``));const targetRoot=computed(()=>String(resource.data.value?.targetRoot||``));const projects=computed(()=>Array.isArray(resource.data.value?.projects)?resource.data.value.projects:[]);const selfTargetAutoSelectProjectRepro=computed(()=>{const config=resource.data.value?.repro?.selfTargetAutoSelectProject||{};return config&&typeof config===`object`&&!Array.isArray(config)?config:{}});return{currentProject,data:resource.data,isFetching:resource.isFetching,isInitialLoading:resource.isInitialLoading,isLoading:resource.isLoading,isRefetching:resource.isRefetching,loadError,projects,projectsRoot,reload:resource.reload,resource,selfTargetAutoSelectProjectRepro,targetRoot}}function normalizeText(value=``){return String(value||``).trim()}var HOME_SHELL_CLASS=`studio-home-shell-active`;var SELF_TARGET_AUTO_SELECT_DELAY_MS=3e3;var PREVIEW_TOOLBAR_HOST_ID=`studio-home-shell-preview-toolbar`;var PROJECT_RUNTIME_CLOSE_API_PATH=`/api/vibe64/project-runtime/close`;var PROJECT_RUNTIME_OPEN_API_PATH=`/api/vibe64/project-runtime/open`;var projectTabs=Object.freeze([{id:`preview`,label:`Preview`},{id:`dashboard`,label:`Dashboard`}]);function useVibe64AppPage(){const route=useRoute();const router=useRouter();const pageTitle=ref(``);const pageError=ref(``);const chatCollapsed=ref(false);const mobilePaneLayout=ref(false);const projectSelectionReady=ref(false);const projectPaneNavigationReadySlug=ref(``);const lastDashboardRoutePath=ref(``);let mobilePaneMediaQuery=null;const projectSlug=computed(()=>projectSlugFromRoute(route));const queryClient=useQueryClient();const feedback=useShellWebErrorRuntime();const projectOpenRevision=ref(0);const projectOpenKey=computed(()=>`${projectSlug.value}:${projectOpenRevision.value}`);const openedProjectKey=ref(``);const projectOpenFailure=ref(null);const projectRuntimeReady=computed(()=>!projectSlug.value||openedProjectKey.value===projectOpenKey.value);const projectRuntimeError=computed(()=>projectOpenFailure.value?.key===projectOpenKey.value?projectOpenFailure.value.message:``);let attemptedProjectOpenKey=``;let dormantWorkingProjectSlug=``;const projectSelection=useVibe64ProjectsResource({fallbackLoadError:`Project selection could not load.`,projectSlug,requestRecoveryLabel:`Project selection`});const closeProjectRuntimeCommand=useCommand({access:`never`,apiSuffix:`/vibe64/project-runtime/close`,buildCommandOptions:(_payload,{context})=>({method:`POST`,path:scopedDevelopmentApiUrl(PROJECT_RUNTIME_CLOSE_API_PATH,context?.projectSlug)}),buildRawPayload:(_model,{context})=>({reason:String(context?.reason||`project-close`)}),clearOnRouteChange:false,fallbackRunError:`Project runtime could not close.`,messages:{error:`Project runtime could not close.`},ownershipFilter:ROUTE_VISIBILITY_PUBLIC,placementSource:`vibe64.project-runtime.close`,suppressSuccessMessage:true,surfaceId:`app`,writeMethod:`POST`});const openProjectRuntimeCommand=useCommand({access:`never`,apiSuffix:`/vibe64/project-runtime/open`,buildCommandOptions:(_payload,{context})=>({method:`POST`,path:scopedDevelopmentApiUrl(PROJECT_RUNTIME_OPEN_API_PATH,context?.projectSlug)}),buildRawPayload:(_model,{context})=>({reason:String(context?.reason||`project-open`)}),clearOnRouteChange:false,fallbackRunError:`Project runtime could not be marked open.`,messages:{error:`Project runtime could not be marked open.`},ownershipFilter:ROUTE_VISIBILITY_PUBLIC,placementSource:`vibe64.project-runtime.open`,suppressSuccessMessage:true,surfaceId:`app`,writeMethod:`POST`});const projectLoadError=projectSelection.loadError;const projects=projectSelection.projects;const selfTargetAutoSelectProjectRepro=projectSelection.selfTargetAutoSelectProjectRepro;const targetRoot=computed(()=>String(projectSelection.targetRoot.value||``).trim());const targetFolderName=computed(()=>projectSlug.value||finalPathSegment(targetRoot.value));const developmentBasePath=computed(()=>projectAppPath(projectSlug.value));const dashboardBasePath=computed(()=>`${developmentBasePath.value}/dashboard`);const dashboardRouteActive=computed(()=>normalizedPath(route.path).startsWith(`${dashboardBasePath.value}/`));const projectPane=computed(()=>dashboardRouteActive.value?`dashboard`:`preview`);const sortedProjects=computed(()=>[...projects.value].sort((left,right)=>left.slug.localeCompare(right.slug)));const switcherProjects=computed(()=>openProjectSwitcherProjects(projects.value));const chatToggleIcon=computed(()=>{if(mobilePaneLayout.value)return chatCollapsed.value?mdiChevronLeft:mdiChevronRight;return chatCollapsed.value?mdiChevronRight:mdiChevronLeft});const chatToggleTitle=computed(()=>{if(mobilePaneLayout.value)return chatCollapsed.value?`Show chat`:`Show project`;return chatCollapsed.value?`Show chat`:`Collapse chat`});const mobileProjectAction=computed(()=>projectPane.value===`dashboard`?{ariaLabel:`Go to preview`,label:`Preview`,pane:`preview`}:{ariaLabel:`Go to dashboard`,label:`Dashboard`,pane:`dashboard`});const projectPaneNavigationVisible=computed(()=>projectPaneNavigationReady({selectionReady:projectSelectionReady.value,projectSlug:projectSlug.value,readyProjectSlug:projectPaneNavigationReadySlug.value}));const mobileProjectActionVisible=computed(()=>projectPaneNavigationVisible.value&&mobilePaneLayout.value&&chatCollapsed.value);const mobilePaneSwipeEnabled=computed(()=>projectPaneNavigationVisible.value&&mobilePaneLayout.value);const colleagueLayout=inject(VIBE64_COLLEAGUE_LAYOUT_KEY,null);const selectedCompanionView=inject(VIBE64_COLLEAGUE_VIEW_KEY,null);let pageMounted=false;let learningLayoutWasSelected=false;const learnerGestures=inject(VIBE64_TRAINING_LEARNER_GESTURE_KEY,null);const layoutOwner={get projectSlug(){return projectSlug.value},get ready(){return projectPaneNavigationVisible.value},get projectVisible(){return!mobilePaneLayout.value||chatCollapsed.value},get chatVisible(){return!chatCollapsed.value},showProject:showProjectPane,showChat(){setChatCollapsed(false)}};const previewToolbarHostVisible=computed(()=>previewToolbarTargetVisible({chatCollapsed:chatCollapsed.value,mobilePaneLayout:mobilePaneLayout.value,projectPane:projectPane.value,projectPaneNavigationVisible:projectPaneNavigationVisible.value}));const previewToolbarTeleportTarget=computed(()=>previewToolbarHostVisible.value?`#${PREVIEW_TOOLBAR_HOST_ID}`:``);let selfTargetAutoSelectTimer=0;let selfTargetAutoSelectAttemptKey=``;useStudioShellDrawer({hidden:true});useRealtimeEvent({enabled:computed(()=>Boolean(projectSlug.value)),event:VIBE64_PROJECT_CHANGED_EVENT,matches:({payload={}}={})=>projectRuntimeClosedPayloadMatches(payload,projectSlug.value),onEvent:({payload={}}={})=>{handleProjectRuntimeClosed(payload)}});useRealtimeEvent({event:VIBE64_PROJECT_CHANGED_EVENT,matches:({payload={}}={})=>payload.projectSlug===projectSlug.value&&payload.githubRefresh===true,onEvent:async()=>{const issuesPath=scopedDevelopmentApiUrl(`/api/vibe64/issues`,projectSlug.value);const labelsPath=scopedDevelopmentApiUrl(`/api/vibe64/issue-labels`,projectSlug.value);const mentionsPath=scopedDevelopmentApiUrl(`/api/vibe64/issue-mentions`,projectSlug.value);const prsPath=scopedDevelopmentApiUrl(`/api/vibe64/pull-requests`,projectSlug.value);const incomingPath=scopedDevelopmentApiUrl(`/api/vibe64/incoming`,projectSlug.value);await queryClient.invalidateQueries({predicate:({queryKey})=>{if(!Array.isArray(queryKey))return false;const[resource,path]=queryKey;return resource===`vibe64.issues`&&path===issuesPath||resource===`vibe64.issue`&&path?.startsWith(`${issuesPath}/`)||resource===`vibe64.issueLabels`&&path===labelsPath||resource===`vibe64.issueMentions`&&path===mentionsPath||[`vibe64.pullRequests`,`vibe64.pullRequest`].includes(resource)&&path===prsPath||resource===`vibe64.incoming`&&path===incomingPath}})}});useRealtimeEvent({event:VIBE64_PROJECT_CHANGED_EVENT,matches:({payload={}}={})=>payload.projectSlug===projectSlug.value&&Number.isSafeInteger(payload.issueComment?.number)&&payload.issueComment.number>0&&!vibe64RealtimePayloadFromCurrentTab(payload),onEvent:async({payload})=>{const comment=payload.issueComment;const basePath=scopedDevelopmentApiUrl(`/api/vibe64/issues`,projectSlug.value);feedback.report({source:`vibe64.issues.activity`,message:`${comment.author||`Someone`} commented on issue #${comment.number}.`,intent:`action-feedback`,severity:`info`,channel:`snackbar`,dedupeKey:`vibe64.issueComment:${payload.projectSlug}:${comment.id}`});await invalidateGithubIssueQueries(queryClient,basePath,`${basePath}/${comment.number}`)}});watch(()=>route.path,path=>{if(normalizedPath(path)!==normalizedPath(developmentBasePath.value))setPageTitle()},{immediate:true});watch(projectSlug,()=>{dormantWorkingProjectSlug=``;retryProjectRuntime()},{flush:`sync`});watch(()=>route.query.mode,mode=>{if(mode===`learning`||!dormantWorkingProjectSlug||dormantWorkingProjectSlug!==projectSlug.value)return;dormantWorkingProjectSlug=``;retryProjectRuntime()},{flush:`sync`});watch([projectOpenKey,()=>openProjectRuntimeCommand.canRun,()=>openProjectRuntimeCommand.isRunning],([key,canRun,running])=>{if(!projectSlug.value||!canRun||running||attemptedProjectOpenKey===key)return;attemptedProjectOpenKey=key;openProjectRuntimeForSlug(projectSlug.value,{key})},{immediate:true});const removeProjectNavigation=router.afterEach((to,_from,failure)=>{if(projectRuntimeError.value&&isNavigationFailure(failure,NavigationFailureType.duplicated)&&projectSlugFromRoute(to)===projectSlug.value)retryProjectRuntime()});onMounted(()=>{pageMounted=true;setHomeShellActive(true);if(typeof window!==`undefined`&&typeof window.matchMedia===`function`){mobilePaneMediaQuery=window.matchMedia(`(max-width: 980px)`);syncMobilePaneLayout();if(typeof mobilePaneMediaQuery.addEventListener===`function`)mobilePaneMediaQuery.addEventListener(`change`,syncMobilePaneLayout);else mobilePaneMediaQuery.addListener?.(syncMobilePaneLayout)}if(colleagueLayout&&!selectedCompanionView?.value?.learningBinding)colleagueLayout.value=layoutOwner});onBeforeUnmount(()=>{pageMounted=false;if(colleagueLayout?.value===layoutOwner)colleagueLayout.value=null;removeProjectNavigation();clearSelfTargetAutoSelectTimer();setHomeShellActive(false);if(typeof mobilePaneMediaQuery?.removeEventListener===`function`)mobilePaneMediaQuery.removeEventListener(`change`,syncMobilePaneLayout);else mobilePaneMediaQuery?.removeListener?.(syncMobilePaneLayout);mobilePaneMediaQuery=null});watch(()=>selectedCompanionView?.value?.learningBinding,binding=>{if(binding)learningLayoutWasSelected=true;else if(pageMounted&&learningLayoutWasSelected&&colleagueLayout){learningLayoutWasSelected=false;colleagueLayout.value=layoutOwner}},{flush:`sync`});watch(()=>[projectSlug.value,projectSelection.isLoading.value?`loading`:`ready`,selfTargetAutoSelectProjectRepro.value?.enabled===true?`enabled`:`disabled`,selfTargetAutoSelectProjectRepro.value?.selfTarget===true?`self-target`:`normal`,selfTargetAutoSelectProjectRepro.value?.projectSlug||``,sortedProjects.value.map(project=>project.slug).join(`\0`)].join(`|`),()=>{scheduleSelfTargetProjectAutoSelect()},{immediate:true});watch(()=>[dashboardBasePath.value,route.path].join(`|`),()=>{if(dashboardRouteActive.value)lastDashboardRoutePath.value=normalizedPath(route.path)},{immediate:true});return{chatCollapsed,chatToggleIcon,chatToggleTitle,closeProjectRuntimeForSlug,dashboardRouteActive,emitPageTitle,handleProjectSelectionError,handleProjectSelectionMissing,handleProjectSelectionReady,mdiChevronDown,mdiChevronRight,mobilePaneSwipeEnabled,mobileProjectAction,mobileProjectActionVisible,openProject,pageError,pageTitle,previewToolbarHostId:PREVIEW_TOOLBAR_HOST_ID,previewToolbarHostVisible,previewToolbarTeleportTarget,projectLoadError,projectPane,projectPaneNavigationVisible,projectRuntimeError,projectRuntimeReady,projectSlug,projectTabs,retryProjectRuntime,selectProjectPane,setChatCollapsed,showProjectPane,switcherProjects,targetFolderName};function setHomeShellActive(active){if(typeof document===`undefined`)return;document.body.classList.toggle(HOME_SHELL_CLASS,Boolean(active))}function setPageTitle(title=``){pageTitle.value=String(title||``).trim()}function emitPageTitle(title=``){setPageTitle(title)}function selectProjectPane(pane=``,event){const owner=learnerGestures?.value;const ticket=pane===`preview`?owner?.begin(event,`preview-select`):null;if(mobilePaneLayout.value)setChatCollapsed(true);const path=pane===`dashboard`?dashboardReturnPath({dashboardBasePath:dashboardBasePath.value,lastDashboardRoutePath:lastDashboardRoutePath.value}):developmentBasePath.value;router.push(route.query.mode===`learning`?{path,query:{...route.query}}:path);if(ticket)owner.finish(ticket)}function openProject(project={},event){const slug=String(project.slug||``).trim();if(!slug)return;const owner=learnerGestures?.value;const ticket=owner?.begin(event,`project-select`,{projectSlug:slug});if(slug===projectSlug.value&&route.path!==projectAppPath(slug))retryProjectRuntime();router.push(projectAppPath(slug));if(ticket)owner.finish(ticket)}async function closeProjectRuntimeForSlug(slug=``,{reason=`project-close`}={}){const project=String(slug||``).trim();if(!project)return null;const startedAtMs=Date.now();vibe64SessionDebugLog(`client.projectRuntime.close.start`,{projectSlug:project,reason});try{const result=await closeProjectRuntimeCommand.run({projectSlug:project,reason});vibe64SessionDebugLog(`client.projectRuntime.close.done`,{durationMs:vibe64SessionDebugDurationMs(startedAtMs),ok:result?.ok!==false,projectSlug:project,reason});return result}catch(error){vibe64SessionDebugLog(`client.projectRuntime.close.error`,{durationMs:vibe64SessionDebugDurationMs(startedAtMs),error:vibe64SessionDebugError(error),projectSlug:project,reason});return null}}async function openProjectRuntimeForSlug(slug=``,{reason=`project-open`,key=projectOpenKey.value}={}){const project=String(slug||``).trim();if(!project)return null;try{const result=await openProjectRuntimeCommand.run({projectSlug:project,reason});if(result?.ok!==true||result?.runtime?.open!==true)throw new Error(result?.error||`Project could not open. Try again.`);if(key===projectOpenKey.value&&dormantWorkingProjectSlug!==project)openedProjectKey.value=key;return result}catch(error){if(key===projectOpenKey.value&&dormantWorkingProjectSlug!==project)projectOpenFailure.value={key,message:String(error?.message||`Project could not open. Try again.`)};vibe64SessionDebugLog(`client.projectRuntime.open.error`,{error:vibe64SessionDebugError(error),projectSlug:project,reason});return null}}function retryProjectRuntime(){projectOpenRevision.value+=1}function handleProjectRuntimeClosed(payload={}){const closedSlug=String(payload.projectSlug||projectSlug.value||``).trim();if(payload.runtimeDormantClose===true&&payload.runtimeCloseReason===`idle-timeout`&&route.query.mode===`learning`&&selectedCompanionView?.value?.learningBinding&&closedSlug===projectSlug.value){dormantWorkingProjectSlug=closedSlug;openedProjectKey.value=``;return}dormantWorkingProjectSlug=``;pageError.value=String(payload.message||`Project is closed.`);router.push({path:`/app/manage/projects`,query:{projectClosed:closedSlug}})}function scheduleSelfTargetProjectAutoSelect(){clearSelfTargetAutoSelectTimer();const targetProject=selfTargetAutoSelectProjectTarget({currentSlug:projectSlug.value,loading:projectSelection.isLoading.value,projects:sortedProjects.value,repro:selfTargetAutoSelectProjectRepro.value});if(!targetProject)return;const targetSlug=String(targetProject.slug||``).trim();const attemptKey=`${projectSlug.value}->${targetSlug}`;if(selfTargetAutoSelectAttemptKey===attemptKey||typeof globalThis.setTimeout!==`function`)return;selfTargetAutoSelectTimer=globalThis.setTimeout(()=>{selfTargetAutoSelectTimer=0;selfTargetAutoSelectAttemptKey=attemptKey;openProject(targetProject)},SELF_TARGET_AUTO_SELECT_DELAY_MS)}function clearSelfTargetAutoSelectTimer(){if(!selfTargetAutoSelectTimer||typeof globalThis.clearTimeout!==`function`){selfTargetAutoSelectTimer=0;return}globalThis.clearTimeout(selfTargetAutoSelectTimer);selfTargetAutoSelectTimer=0}function showProjectPane(event){if(mobilePaneLayout.value)setChatCollapsed(true,event)}function setChatCollapsed(collapsed=false,event){const owner=learnerGestures?.value;const control=!collapsed?`chat-show`:mobilePaneLayout.value&&!chatCollapsed.value&&projectPane.value===`preview`?`preview-select`:``;const ticket=control?owner?.begin(event,control):null;chatCollapsed.value=Boolean(collapsed);if(ticket)owner.finish(ticket)}function syncMobilePaneLayout(){mobilePaneLayout.value=Boolean(mobilePaneMediaQuery?.matches)}function handleProjectSelectionReady(selection={}){pageError.value=``;const selectedSlug=selectedProjectSlug(selection);setProjectPaneNavigationReady(Boolean(selectedSlug&&selectedSlug===projectSlug.value));emitPageTitle()}function handleProjectSelectionMissing(){pageError.value=``;setProjectPaneNavigationReady(false);emitPageTitle(`Choose project`)}function handleProjectSelectionError(error){pageError.value=String(error||``);setProjectPaneNavigationReady(false);emitPageTitle()}function setProjectPaneNavigationReady(ready=false){projectSelectionReady.value=Boolean(ready);projectPaneNavigationReadySlug.value=ready?projectSlug.value:``}}function projectRuntimeClosedPayloadMatches(payload={},currentSlug=``){const projectSlug=String(currentSlug||``).trim();if(!projectSlug||String(payload?.projectSlug||``).trim()!==projectSlug)return false;return String(payload?.action||``).trim()===`runtime-closed`&&payload?.runtime?.open===false}function openProjectSwitcherProjects(projects=[]){if(!Array.isArray(projects))return[];return projects.filter(project=>project?.runtime?.open===true).sort((left,right)=>String(left?.slug||``).localeCompare(String(right?.slug||``)))}function selfTargetAutoSelectProjectTarget({currentSlug=``,loading=false,projects=[],repro={}}={}){const targetSlug=String(repro?.projectSlug||``).trim();if(repro?.enabled!==true||repro?.selfTarget!==true||!targetSlug||loading||String(currentSlug||``).trim()===targetSlug||!Array.isArray(projects))return null;return projects.find(project=>project?.slug===targetSlug)||null}function previewToolbarTargetVisible({chatCollapsed=false,mobilePaneLayout=false,projectPane=``,projectPaneNavigationVisible=false}={}){return Boolean(projectPaneNavigationVisible&&projectPane===`preview`&&(!mobilePaneLayout||chatCollapsed))}function dashboardReturnPath({dashboardBasePath=``,lastDashboardRoutePath=``}={}){const normalizedDashboardBasePath=normalizedPath(dashboardBasePath);const normalizedLastDashboardRoutePath=normalizedPath(lastDashboardRoutePath);const defaultDashboardPath=`${normalizedDashboardBasePath}/env`;if(normalizedLastDashboardRoutePath&&(normalizedLastDashboardRoutePath===normalizedDashboardBasePath||normalizedLastDashboardRoutePath.startsWith(`${normalizedDashboardBasePath}/`)))return normalizedLastDashboardRoutePath===normalizedDashboardBasePath?defaultDashboardPath:normalizedLastDashboardRoutePath;return defaultDashboardPath}function projectPaneNavigationReady({selectionReady=false,projectSlug=``,readyProjectSlug=``}={}){const currentSlug=String(projectSlug||``).trim();return Boolean(selectionReady&¤tSlug&&String(readyProjectSlug||``).trim()===currentSlug)}function selectedProjectSlug(selection={}){const currentProject=selection?.currentProject&&typeof selection.currentProject===`object`&&!Array.isArray(selection.currentProject)?selection.currentProject:{};return String(currentProject.slug||selection?.projectSlug||selection?.slug||``).trim()}function finalPathSegment(pathValue=``){const normalizedPath=String(pathValue||``).trim().replace(/[\\/]+$/u,``);if(!normalizedPath)return``;return normalizedPath.split(/[\\/]+/u).filter(Boolean).at(-1)||``}function normalizedPath(pathValue=``){const path=String(pathValue||``).trim();if(!path||path===`/`)return path||`/`;return path.replace(/\/+$/u,``)}var _hoisted_1$1=[`data-guide-step`];var _hoisted_2$1={class:`training-guide-overlay__caption-text`};var pad=6;var gap=14;var captionMaxWidth=352;var _sfc_main$1={__name:`TrainingGuideOverlay`,setup(__props){const unregister=registerTrainingGuideOverlay();const rect=ref(null);const lifetime=ref(0);const reducedMotion=ref(Boolean(globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`)?.matches));let frame=0;let timer=null;function stop(){if(frame)globalThis.cancelAnimationFrame?.(frame);frame=0;clearTimeout(timer);timer=null;globalThis.document?.removeEventListener(`pointerdown`,dismiss,true);globalThis.document?.removeEventListener(`keydown`,dismiss,true)}function dismiss(){clearTrainingGuide(trainingGuide.value?.id)}function measure(){const guide=trainingGuide.value;if(!guide)return;if(!guideElementVisible(guide.element)){clearTrainingGuide(guide.id);return}const box=guide.element.getBoundingClientRect();rect.value={top:box.top,left:box.left,width:box.width,height:box.height};if(globalThis.requestAnimationFrame)frame=globalThis.requestAnimationFrame(measure)}watch(trainingGuide,guide=>{stop();rect.value=null;if(!guide)return;lifetime.value=Math.max(0,guide.expiresAt-Date.now());timer=setTimeout(()=>clearTrainingGuide(guide.id),lifetime.value);globalThis.document?.addEventListener(`pointerdown`,dismiss,true);globalThis.document?.addEventListener(`keydown`,dismiss,true);measure()},{immediate:true});onBeforeUnmount(()=>{stop();unregister()});const ringStyle=computed(()=>rect.value&&{top:`${rect.value.top-pad}px`,left:`${rect.value.left-pad}px`,width:`${rect.value.width+12}px`,height:`${rect.value.height+12}px`});const captionPlacement=computed(()=>{if(!rect.value)return`below`;const viewport=globalThis.innerHeight||0;const below=rect.value.top+rect.value.height+pad+gap;return viewport&&below+60>viewport?`above`:`below`});const captionStyle=computed(()=>{if(!rect.value)return null;const viewportWidth=globalThis.innerWidth||0;const width=viewportWidth?Math.min(captionMaxWidth,viewportWidth-16):captionMaxWidth;const preferred=Math.max(8,rect.value.left-pad);const left=viewportWidth?Math.max(8,Math.min(preferred,viewportWidth-8-width)):preferred;const arrow=Math.max(20,Math.min(rect.value.left+rect.value.width/2-left,width-20));return{...captionPlacement.value===`above`?{bottom:`${Math.max(8,(globalThis.innerHeight||0)-(rect.value.top-pad-gap))}px`}:{top:`${rect.value.top+rect.value.height+pad+gap}px`},left:`${left}px`,maxWidth:`${width}px`,"--training-guide-arrow":`${arrow}px`,"--training-guide-lifetime":`${lifetime.value}ms`}});return(_ctx,_cache)=>{return openBlock(),createBlock(Teleport,{to:`body`},[unref(trainingGuide)&&rect.value?(openBlock(),createElementBlock(`div`,{key:0,class:normalizeClass([`training-guide-overlay`,{"training-guide-overlay--still":reducedMotion.value}]),"data-guide-step":unref(trainingGuide).step,"aria-live":`polite`},[createBaseVNode(`div`,{class:`training-guide-overlay__spotlight`,style:normalizeStyle(ringStyle.value),"aria-hidden":`true`},null,4),createBaseVNode(`div`,{class:`training-guide-overlay__ring`,style:normalizeStyle(ringStyle.value)},null,4),unref(trainingGuide).caption?(openBlock(),createElementBlock(`div`,{key:0,class:normalizeClass([`training-guide-overlay__caption`,`training-guide-overlay__caption--${captionPlacement.value}`]),style:normalizeStyle(captionStyle.value)},[_cache[0]||(_cache[0]=createBaseVNode(`svg`,{class:`training-guide-overlay__caption-icon`,viewBox:`0 0 24 24`,"aria-hidden":`true`,focusable:`false`},[createBaseVNode(`path`,{d:`M10,9A1,1 0 0,1 11,8A1,1 0 0,1 12,9V13.47L13.21,13.6L18.15,15.79C18.68,16.03 19,16.56 19,17.14V21.5C18.97,22.32 18.32,22.97 17.5,23H11C10.62,23 10.26,22.85 10,22.57L5.1,18.37L5.84,17.6C6.03,17.39 6.3,17.28 6.58,17.28H6.8L10,19V9M11,5A4,4 0 0,1 15,9C15,10.5 14.2,11.77 13,12.46V11.24C13.61,10.69 14,9.89 14,9A3,3 0 0,0 11,6A3,3 0 0,0 8,9C8,9.89 8.39,10.69 9,11.24V12.46C7.8,11.77 7,10.5 7,9A4,4 0 0,1 11,5Z`})],-1)),createBaseVNode(`span`,_hoisted_2$1,toDisplayString(unref(trainingGuide).caption),1),_cache[1]||(_cache[1]=createBaseVNode(`span`,{class:`training-guide-overlay__timer`,"aria-hidden":`true`},null,-1))],6)):createCommentVNode(``,true)],10,_hoisted_1$1)):createCommentVNode(``,true)])}}};var TrainingGuideOverlay_default=_plugin_vue_export_helper_default(_sfc_main$1,[[`__scopeId`,`data-v-2c0c7a01`]]);var _hoisted_1={class:`studio-home-shell-title-area`};var _hoisted_2={class:`studio-home-shell-project-controls`};var _hoisted_3={key:0,class:`studio-home-shell-project-tabs studio-home-shell-project-tabs--desktop`,role:`tablist`,"aria-label":`Project`};var _hoisted_4=[`data-vibe64-guide`,`aria-label`,`aria-selected`,`aria-disabled`,`disabled`,`title`,`onClick`];var _hoisted_5=[`id`];var _hoisted_6=[`aria-label`];var _hoisted_7={class:`generated-ui-screen generated-ui-screen--studio studio-screen d-flex flex-column ga-3`};var _hoisted_8={class:`studio-screen__gate-scroll`};var githubActorHostId=`studio-home-shell-github-actor`;var _sfc_main={__name:`[slug]`,setup(__props){const githubActorTeleportTarget=`#${githubActorHostId}`;const LEARNING_TAB=Object.freeze({id:`learning`,label:`Learning`,icon:mdiSchoolOutline,title:`Learning: courses and lesson`});const{chatCollapsed,chatToggleIcon,chatToggleTitle,dashboardRouteActive,emitPageTitle,handleProjectSelectionError,handleProjectSelectionMissing,handleProjectSelectionReady,mdiChevronDown,mdiChevronRight,mobilePaneSwipeEnabled,mobileProjectAction,mobileProjectActionVisible,openProject,pageError,previewToolbarHostId,previewToolbarHostVisible,previewToolbarTeleportTarget,projectLoadError,projectPane,projectPaneNavigationVisible,projectRuntimeError,projectRuntimeReady,projectSlug,projectTabs,retryProjectRuntime,selectProjectPane,setChatCollapsed,showProjectPane:showWorkingProjectPane,switcherProjects,targetFolderName}=useVibe64AppPage();const panel=ref(null);const learning=useVibe64LearningMode({onConversationOpened(identity){panel.value?.selectLearningConversation(identity)}});const{learningMode,learningView,purposeFilter,learningResource}=learning;const learningWorkspaceAvailable=computed(()=>panel.value?.learningWorkspaceAvailable===true);const learningPaneActive=computed(()=>learningMode.value&&(learningView.value===`learning`||!learningWorkspaceAvailable.value));function showProjectPane(){if(learningMode.value){if(!learningWorkspaceAvailable.value)return;learning.setLearningView(`workspace`)}showWorkingProjectPane()}const headerTabs=computed(()=>learningMode.value?[...projectTabs,LEARNING_TAB]:projectTabs);const activeHeaderTab=computed(()=>learningPaneActive.value?`learning`:projectPane.value);const headerTabDisabled=id=>learningMode.value&&id!==`learning`&&!learningWorkspaceAvailable.value;async function selectHeaderTab(id,event){if(headerTabDisabled(id))return;if(id===`learning`)return learning.setLearningView(`learning`);if(learningMode.value&&learningView.value!==`workspace`)await learning.setLearningView(`workspace`);selectProjectPane(id,event)}const mobileHeaderAction=computed(()=>{if(!learningMode.value)return mobileProjectAction.value;const ids=headerTabs.value.map(tab=>tab.id).filter(id=>!headerTabDisabled(id));const next=headerTabs.value.find(tab=>tab.id===ids[(ids.indexOf(activeHeaderTab.value)+1)%ids.length]);return next.id===activeHeaderTab.value?null:{ariaLabel:`Go to ${next.label.toLowerCase()}`,label:next.label,pane:next.id}});const learningNavigation=inject(VIBE64_LEARNING_NAVIGATION_KEY,null);function waitForLearningPanel(action,isCurrent,failure){return new Promise((resolve,reject)=>{let stop;const timer=setTimeout(()=>finish(new Error(failure)),12e3);function finish(error){clearTimeout(timer);if(stop)stop();else queueMicrotask(()=>stop?.());if(error)reject(error);else resolve()}stop=watchEffect(()=>{if(!isCurrent())finish(new Error(`The Learning navigation target changed before it opened.`));else if(action())finish()},{flush:`post`})})}async function navigateLearning(command,isCurrent=()=>true){if(command.learningMode===false){if(learningMode.value)await learning.setLearningMode(false);return}if(command.learningMode!==true)return;if(!learningMode.value)await learning.setLearningMode(true);if(!isCurrent())throw new Error(`The Learning navigation target changed before it opened.`);await nextTick();if(command.learningContent===`picker`)await waitForLearningPanel(()=>panel.value?.showLearningPicker()===true,isCurrent,`The lesson picker did not become available.`);else if(command.learningAttemptId||command.sessionId){const identity={attemptId:command.learningAttemptId,sessionId:command.sessionId,learnerId:learning.learnerId.value};await waitForLearningPanel(()=>panel.value?.selectLearningConversation(identity)===true,isCurrent,`The requested Learning session did not become available.`)}if(command.learningView&&learningView.value!==command.learningView){if(command.learningView===`workspace`&&panel.value?.learningWorkspaceAvailable!==true)throw new Error(`This lesson has no project workspace.`);await learning.setLearningView(command.learningView)}}if(learningNavigation)learningNavigation.value=navigateLearning;onBeforeUnmount(()=>{if(learningNavigation?.value===navigateLearning)learningNavigation.value=null});return(_ctx,_cache)=>{return openBlock(),createBlock(StudioAppShellLayout_default,{"show-learning-mode-control":``,"learning-mode":unref(learningMode),"onUpdate:learningMode":unref(learning).setLearningMode,"chat-collapsed":unref(chatCollapsed),"mobile-pane-swipe-enabled":unref(mobilePaneSwipeEnabled),"onUpdate:chatCollapsed":unref(setChatCollapsed)},{"top-left":withCtx(()=>[createBaseVNode(`div`,{class:normalizeClass([`studio-home-shell-heading`,{"studio-home-shell-heading--chat-collapsed":unref(chatCollapsed)}])},[createBaseVNode(`div`,_hoisted_1,[unref(learningMode)?(openBlock(),createBlock(Vibe64LearningPracticeProjectSelector_default,{key:0,panel:panel.value},null,8,[`panel`])):(openBlock(),createBlock(VMenu,{key:1,location:`bottom start`},{activator:withCtx(({props:menuProps})=>[createVNode(VBtn,mergeProps({class:`studio-home-shell-project-selector`,variant:`text`},menuProps),{default:withCtx(()=>[createBaseVNode(`span`,null,toDisplayString(unref(targetFolderName)||`Project`),1),createVNode(VIcon,{icon:unref(mdiChevronDown),size:`18`},null,8,[`icon`])]),_:1},16)]),default:withCtx(()=>[createVNode(VList,{density:`compact`,"min-width":`240`},{default:withCtx(()=>[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(switcherProjects),project=>{return openBlock(),createBlock(VListItem,{key:project.slug,active:project.slug===unref(projectSlug),title:project.slug,subtitle:project.projectRoot,onClick:$event=>unref(openProject)(project,$event)},null,8,[`active`,`title`,`subtitle`,`onClick`])}),128)),unref(switcherProjects).length===0?(openBlock(),createBlock(VListItem,{key:0,subtitle:unref(projectLoadError)||`No open projects found.`,title:`Projects`},null,8,[`subtitle`])):createCommentVNode(``,true)]),_:1})]),_:1})),_cache[3]||(_cache[3]=createBaseVNode(`div`,{id:`studio-home-shell-create-session`,class:`studio-home-shell-create-session-host`},null,-1)),_cache[4]||(_cache[4]=createBaseVNode(`div`,{id:`studio-home-shell-local-remotes`,class:`studio-home-shell-local-remotes-host`},null,-1)),createBaseVNode(`div`,{id:githubActorHostId,class:`studio-home-shell-github-actor-host`})]),createBaseVNode(`div`,_hoisted_2,[createVNode(VBtn,{class:`studio-home-shell-chat-toggle`,"data-vibe64-guide":`pane-switch`,density:`comfortable`,icon:unref(chatToggleIcon),size:`small`,title:unref(chatToggleTitle),type:`button`,variant:`tonal`,"aria-label":unref(chatToggleTitle),onClick:_cache[0]||(_cache[0]=$event=>unref(setChatCollapsed)(!unref(chatCollapsed),$event))},null,8,[`icon`,`title`,`aria-label`]),unref(projectPaneNavigationVisible)||unref(learningMode)?(openBlock(),createElementBlock(`div`,_hoisted_3,[(openBlock(true),createElementBlock(Fragment,null,renderList(headerTabs.value,tab=>{return openBlock(),createElementBlock(`button`,{key:tab.id,class:normalizeClass([`studio-home-shell-project-tab`,{"studio-home-shell-project-tab--active":activeHeaderTab.value===tab.id}]),role:`tab`,type:`button`,"data-vibe64-guide":tab.id,"aria-label":tab.icon?tab.label:void 0,"aria-selected":activeHeaderTab.value===tab.id?`true`:`false`,"aria-disabled":headerTabDisabled(tab.id)?`true`:void 0,disabled:headerTabDisabled(tab.id),title:headerTabDisabled(tab.id)?`This lesson has no project workspace`:tab.title,onClick:$event=>selectHeaderTab(tab.id,$event)},[tab.icon?(openBlock(),createBlock(VIcon,{key:0,icon:tab.icon,size:`18`},null,8,[`icon`])):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(tab.label),1)],64))],10,_hoisted_4)}),128))])):createCommentVNode(``,true),unref(previewToolbarHostVisible)?withDirectives((openBlock(),createElementBlock(`div`,{key:1,id:unref(previewToolbarHostId),class:`studio-home-shell-preview-toolbar-host`},null,8,_hoisted_5)),[[vShow,!learningPaneActive.value]]):createCommentVNode(``,true),unref(mobileProjectActionVisible)&&mobileHeaderAction.value?(openBlock(),createElementBlock(`button`,{key:2,class:`studio-home-shell-project-mobile-action`,"data-vibe64-guide":`pane-switch`,type:`button`,"aria-label":mobileHeaderAction.value.ariaLabel,onClick:_cache[1]||(_cache[1]=$event=>selectHeaderTab(mobileHeaderAction.value.pane,$event))},[createTextVNode(toDisplayString(mobileHeaderAction.value.label)+` `,1),createVNode(VIcon,{icon:unref(mdiChevronRight),size:`15`},null,8,[`icon`])],8,_hoisted_6)):createCommentVNode(``,true)])],2)]),"top-right":withCtx(()=>[createVNode(Vibe64AuthSettingsButton_default)]),default:withCtx(()=>[createBaseVNode(`section`,_hoisted_7,[unref(learningMode)?(openBlock(),createBlock(unref(TrainingGuideOverlay_default),{key:0})):createCommentVNode(``,true),unref(pageError)&&(!unref(learningMode)||!learningPaneActive.value)?(openBlock(),createBlock(VAlert,{key:1,type:`error`,variant:`tonal`,border:`start`,class:`studio-screen__alert`},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(pageError)),1)]),_:1})):createCommentVNode(``,true),createBaseVNode(`div`,_hoisted_8,[(openBlock(),createBlock(ProjectSelectionGate_default,{"retain-independent-content":``,"independent-content":unref(learningMode),"runtime-ready":unref(projectRuntimeReady),"runtime-error":unref(projectRuntimeError),onRetryRuntime:unref(retryProjectRuntime),key:unref(projectSlug),"scope-selection-to-current-project":``,onError:unref(handleProjectSelectionError),onMissing:unref(handleProjectSelectionMissing),onReady:unref(handleProjectSelectionReady)},{default:withCtx(projectSelectionSlotProps=>[!unref(learningMode)&&projectSelectionSlotProps?.projectSelection?.currentProject?.repositoryMode===`local_source`?(openBlock(),createBlock(Teleport,{key:0,to:`#studio-home-shell-local-remotes`,defer:``},[createVNode(Vibe64LocalRemoteControls_default,{project:projectSelectionSlotProps.projectSelection.currentProject},null,8,[`project`])])):createCommentVNode(``,true),createVNode(Vibe64SessionPanel_default,{ref_key:`panel`,ref:panel,active:projectSelectionSlotProps.contentActive,"learning-resource":unref(learningResource),"learning-view":learningPaneActive.value?`learning`:`workspace`,"purpose-filter":unref(purposeFilter),"chat-collapsed":unref(chatCollapsed),"create-session-teleport-target":`#studio-home-shell-create-session`,"github-actor-teleport-target":githubActorTeleportTarget,"project-context":projectSelectionSlotProps?.projectSelection?.currentProject||{},"preview-toolbar-teleport-target":learningPaneActive.value?``:unref(previewToolbarTeleportTarget),"project-pane":learningPaneActive.value?`dashboard`:unref(projectPane),onTitleChange:unref(emitPageTitle),onChatAttention:_cache[2]||(_cache[2]=$event=>unref(setChatCollapsed)(false)),onProjectAttention:showProjectPane},{learning:withCtx(()=>[unref(learningMode)?(openBlock(),createBlock(Vibe64LearningLessonLauncher_default,{key:0,learning:unref(learning)},null,8,[`learning`])):createCommentVNode(``,true)]),dashboard:withCtx(dashboardSlotProps=>[unref(dashboardRouteActive)?(openBlock(),createBlock(unref(RouterView),{key:0,"dashboard-context":dashboardSlotProps?.dashboardContext||{}},null,8,[`dashboard-context`])):createCommentVNode(``,true)]),_:1},8,[`active`,`learning-resource`,`learning-view`,`purpose-filter`,`chat-collapsed`,`project-context`,`preview-toolbar-teleport-target`,`project-pane`,`onTitleChange`])]),_:1},8,[`independent-content`,`runtime-ready`,`runtime-error`,`onRetryRuntime`,`onError`,`onMissing`,`onReady`]))])])]),_:1},8,[`learning-mode`,`onUpdate:learningMode`,`chat-collapsed`,`mobile-pane-swipe-enabled`,`onUpdate:chatCollapsed`])}}};if(typeof route_block_default===`function`)route_block_default(_sfc_main);var _slug__default=_plugin_vue_export_helper_default(_sfc_main,[[`__scopeId`,`data-v-24218cac`]]);export{_slug__default as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as createVNode,E as createTextVNode,Ht as watch,On as unref,_ as createBaseVNode,b as createElementBlock,bt as renderList,g as computed,mt as openBlock,o as Fragment,qt as withCtx,tr as toDisplayString,v as createBlock,vn as ref,y as createCommentVNode}from"./runtime-core.esm-bundler-DGXg_mpN.js";import{T as ROUTE_VISIBILITY_PUBLIC,t as useEndpointResource}from"./useEndpointResource-MWVNfmMa.js";import{t as VSelect}from"./VSelect-DL3HaA5m.js";import{t as VChip}from"./VChip-CcI-Oo2J.js";import{t as VTextField}from"./VTextField-BR2eZeFT.js";import{t as VBtn}from"./VBtn-B2MBK2DL.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{t as useCommand}from"./useCommand-DWuxfAV0.js";import{t as useVibe64ProjectSlug}from"./useVibe64ProjectScope-DOEVkBqX.js";import{T as previewIdentitiesQueryKey,s as PREVIEW_IDENTITIES_ENDPOINT,v as VIBE64_PREVIEW_IDENTITIES_API_SUFFIX,y as VIBE64_PROJECT_CHANGED_EVENT}from"./studioGateApi-DhA9IJGZ.js";import{t as Vibe64AsyncModuleState_default}from"./Vibe64AsyncModuleState-Dx7YKRPp.js";import{n as useVibe64SessionSelection}from"./useVibe64SessionSelection-j9lsllx4.js";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:0,class:`preview-identity-settings__empty`};var _sfc_main$1={__name:`PreviewIdentitySettings`,setup(__props){const identityTypes=Object.freeze([{label:`Email`,value:`email`},{label:`Login name`,value:`login`},{label:`User ID`,value:`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));watch(()=>resource.data.value?.identities,value=>{const next=cloneIdentities(value);identities.value=next;savedIdentities.value=cloneIdentities(next)},{immediate:true});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(){await saveCommand.run({identities:cloneIdentities(identities.value)});await resource.reload()}function reloadPage(){if(typeof window!==`undefined`)window.location.reload()}return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1$1,[createBaseVNode(`header`,_hoisted_2,[_cache[0]||(_cache[0]=createBaseVNode(`div`,null,[createBaseVNode(`h1`,{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||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:reloadPage,onRetry:refresh},null,8,[`loading`,`message`])):(openBlock(),createElementBlock(`section`,_hoisted_4,[_cache[5]||(_cache[5]=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,[(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[1]||(_cache[1]=[createTextVNode(` Default `,-1)])]),_:1})):(openBlock(),createBlock(VBtn,{key:1,size:`small`,type:`button`,variant:`text`,onClick:$event=>makeDefault(index)},{default:withCtx(()=>[..._cache[2]||(_cache[2]=[createTextVNode(` Make default `,-1)])]),_:1},8,[`onClick`])),createVNode(VBtn,{color:`error`,size:`small`,type:`button`,variant:`text`,onClick:$event=>removeIdentity(index)},{default:withCtx(()=>[..._cache[3]||(_cache[3]=[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[4]||(_cache[4]=[createTextVNode(` Add identity `,-1)])]),_:1})])]))])}}};var PreviewIdentitySettings_default=_plugin_vue_export_helper_default(_sfc_main$1,[[`__scopeId`,`data-v-bf347725`]]);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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vibe64-local-app-index__top[data-v-6f5adad1]{color:var(--v64-on-surface);font:var(--v64-type-title-lg);letter-spacing:-.01em;min-width:0;padding-inline:var(--v64-space-4) var(--v64-space-3);font-size:1.25rem}.vibe64-local-app-index[data-v-6f5adad1]{flex:auto;min-height:0;padding:clamp(1rem,3vw,2rem);overflow-y:auto}.vibe64-local-app-index--learning[data-v-6f5adad1]{padding:0;display:flex;overflow:hidden}.vibe64-local-app-index--learning[data-v-6f5adad1] .studio-ai-sessions{flex:auto;min-height:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Wn as vShow}from"./ripple-BVltMmyV.js";import{D as createVNode,On as unref,Yt as withDirectives,Zn as normalizeClass,_ as createBaseVNode,mt as openBlock,qt as withCtx,tr as toDisplayString,v as createBlock,vn as ref,y as createCommentVNode}from"./runtime-core.esm-bundler-DGXg_mpN.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{c as Vibe64LearningPracticeProjectSelector_default,f as StudioAppShellLayout_default,l as Vibe64AuthSettingsButton_default,n as Vibe64LearningLessonLauncher_default,r as Vibe64SessionPanel_default,t as useVibe64LearningMode,u as ProjectSelectionGate_default}from"./useVibe64LearningMode-Bl0dGdCh.js";import{t as route_block_default}from"./route-block-DbL-SuOj.js";var _hoisted_1={class:`vibe64-local-app-index__top`};var _sfc_main$1={__name:`Vibe64LocalAppIndex`,setup(__props){const panel=ref(null);const learning=useVibe64LearningMode({onConversationOpened(identity){panel.value?.selectLearningConversation(identity)}});const{learningMode,purposeFilter,learningResource,setLearningMode}=learning;return(_ctx,_cache)=>{return openBlock(),createBlock(StudioAppShellLayout_default,{"show-learning-mode-control":``,"learning-mode":unref(learningMode),"fill-viewport":unref(learningMode),"onUpdate:learningMode":unref(setLearningMode)},{"top-left":withCtx(()=>[createBaseVNode(`div`,_hoisted_1,toDisplayString(unref(learningMode)?`Courses`:`Projects`),1),unref(learningMode)?(openBlock(),createBlock(Vibe64LearningPracticeProjectSelector_default,{key:0,panel:panel.value},null,8,[`panel`])):createCommentVNode(``,true)]),"top-right":withCtx(()=>[createVNode(Vibe64AuthSettingsButton_default)]),default:withCtx(()=>[createBaseVNode(`section`,{class:normalizeClass([`vibe64-local-app-index`,{"vibe64-local-app-index--learning":unref(learningMode)}])},[withDirectives(createVNode(ProjectSelectionGate_default,{"force-picker":``,"navigate-on-select":``},null,512),[[vShow,!unref(learningMode)]]),withDirectives(createVNode(Vibe64SessionPanel_default,{ref_key:`panel`,ref:panel,active:unref(learningMode),"chat-collapsed":false,"learning-resource":unref(learningResource),"learning-view":`learning`,"purpose-filter":unref(purposeFilter),"project-pane":`dashboard`},{learning:withCtx(()=>[createVNode(Vibe64LearningLessonLauncher_default,{learning:unref(learning)},null,8,[`learning`])]),_:1},8,[`active`,`learning-resource`,`purpose-filter`]),[[vShow,unref(learningMode)]])],2)]),_:1},8,[`learning-mode`,`fill-viewport`,`onUpdate:learningMode`])}}};var Vibe64LocalAppIndex_default=_plugin_vue_export_helper_default(_sfc_main$1,[[`__scopeId`,`data-v-6f5adad1`]]);var _sfc_main={__name:`index`,setup(__props){return(_ctx,_cache)=>{return openBlock(),createBlock(Vibe64LocalAppIndex_default)}}};if(typeof route_block_default===`function`)route_block_default(_sfc_main);export{_sfc_main as default};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{c as vibe64AssistantSelectionLabel,m as VIBE64_AGENT_EXECUTION_WORKLOAD_IDS,v as VIBE64_ASSISTANT_ENGINE_IDS,y as defineVibe64AssistantSelection}from"./shared-YZb7ocaK.js";var ASSISTANT_MODES=Object.freeze([{id:`custom`,label:`Custom`,description:`Choose an orchestrator, 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. Implementation always gets Senior review.`}]);var ASSISTANT_ROUTING_METADATA=`assistant_routing`;var ASSISTANT_ROUTING_ROLES=Object.freeze([`senior`,`junior`,`helper`,`router`]);var ASSISTANT_ROUTING_ASSIGNMENTS=Object.freeze([...ASSISTANT_ROUTING_ROLES,`sharedBackup`]);var ASSISTANT_ROUTING_ROLE_DEFINITIONS=Object.freeze([...ASSISTANT_MODES.filter(({id})=>[`senior`,`junior`].includes(id)),{id:`helper`,label:`Helper`,description:`Used for suggestions, naming, summaries and explanations.`},{id:`router`,label:`Router`,description:`Honors requested roles; otherwise chooses Senior for plans, reviews and Deslop, and Junior for other requests.`}]);var ROUTING_REASONS=Object.freeze([`conversation`,`planning`,`implementation`,`review`]);var ASSISTANT_PURPOSE_ROLES=Object.freeze({custom:`custom`,senior:`senior`,junior:`junior`,helper:`helper`,review:`senior`,deslop:`senior`,...Object.fromEntries(Object.values(VIBE64_AGENT_EXECUTION_WORKLOAD_IDS).map(purpose=>[purpose,purpose===`request_routing`?`router`:`helper`]))});function assistantModeLabel(mode){return ASSISTANT_MODES.find(({id})=>id===mode)?.label||{review:`Senior review`,deslop:`Senior Deslop`,router:`Router`,helper:`Helper`}[mode]||``}function routingError(message,code=`vibe64_assistant_routing_invalid`){return Object.assign(new Error(message),{code,statusCode:409})}function assistantRoutingPreferences(value={}){if(!value||typeof value!==`object`||Array.isArray(value)||!ASSISTANT_MODES.some(({id})=>id===value.mode))throw routingError(`Choose Custom, Senior, Junior, or Auto.`);if(value.workflowEngineId!==void 0&&!Object.values(VIBE64_ASSISTANT_ENGINE_IDS).includes(value.workflowEngineId))throw routingError(`Choose a supported workflow orchestrator.`);if(value.mode===`custom`&&!value.override)throw routingError(`Choose a custom model first.`);return{mode:value.mode,review:value.mode!==`custom`&&value.review===true,...value.workflowEngineId?{workflowEngineId:value.workflowEngineId}:{},...value.override&&value.mode!==`auto`?{override:defineVibe64AssistantSelection(value.override)}:{}}}function assistantRoutingFromMetadata(metadata={}){return metadata[`assistant_routing`]?assistantRoutingPreferences(JSON.parse(metadata[ASSISTANT_ROUTING_METADATA])):null}function assistantRoutingStatusIsPending(request){return request?.status!==`complete`&&[`routing`,`pending`,`sending`,`uncertain`].includes(request?.delivery)}function assistantRoutingRequestCanBeReplaced(request,selection){if(request?.helper)return false;const previous=request?.deliverySelection||request?.observedSelection;if(request?.stopped&&previous&&selection&&[`engineId`,`modelProviderId`,`modelId`,`agentId`,`variantId`].some(key=>String(previous[key]||``).trim()!==String(selection[key]||``).trim()))return true;return request?.delivery===`pending`&&(request.status===`waiting`||Boolean(request.error))&&!request.attemptedMessageId}function assistantModePrompt(mode,message,{planInstructions=``,intent=``,browserReview=false}={}){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,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(` `),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 publish or invent new product requirements. For substantial necessary rework within the agreed outcome, update the technical plan and hand back to Junior through the workflow outcome command. Junior implementation will receive another Senior review and any enabled Deslop.`].join(` `)};if(!instructions[mode])throw routingError(`Unknown assistant mode.`);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. `+`A separate Senior turn will review the result, even when you are Senior. `+`Leave the plan active for that review; do not mark it completed in this implementation turn or request permission for the automatic review.`}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.`;if(intent!==`conversation`&&intent!==`planning`&&intent!==`deslop`&&intent!==`review`&&mode!==`review`&&mode!==`deslop`){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 headings={continue:`Continuing work.`,handoff:request.stage===`review`?`Ready for Senior review.`:`Returning to Junior for rework.`,wait:`Waiting to continue.`,complete:`Review complete.`};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?.[request.stage===`review`&&request.followup?`senior`:request.resolvedMode];const recipient=selection?vibe64AssistantSelectionLabel(selection):``;const stage={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`)return request.workflow?`Review complete — read the findings above.`:`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}`}export{assistantGoalObjective as a,assistantRoutingOutcomeNotice as c,assistantRoutingStatusLabel as d,assistantGoalManagementMessage as i,assistantRoutingRequestCanBeReplaced as l,ASSISTANT_ROUTING_ASSIGNMENTS as n,assistantModeLabel as o,ASSISTANT_ROUTING_ROLE_DEFINITIONS as r,assistantRoutingFromMetadata as s,ASSISTANT_MODES as t,assistantRoutingStatusIsPending as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{mt as openBlock,v as createBlock,y as createCommentVNode}from"./runtime-core.esm-bundler-
|
|
1
|
+
import{mt as openBlock,v as createBlock,y as createCommentVNode}from"./runtime-core.esm-bundler-DGXg_mpN.js";import{t as Vibe64RepositoryWorkspace_default}from"./Vibe64RepositoryWorkspace-ByQlZbyO.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};
|