vibe64 0.1.53 → 0.1.54
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 +406 -406
- package/bin/server.js +89 -88
- package/bin/upgrade-state.js +5559 -5416
- package/dist/assets/GithubBrowserTabs-B3o7MQQR.js +1 -0
- package/dist/assets/{LocalDatabaseServer-D2MfUtX8.js → LocalDatabaseServer-OnPGrWzT.js} +1 -1
- package/dist/assets/{StudioErrorNotice-Bo6gBu5l.js → StudioErrorNotice-D5eE9Np6.js} +1 -1
- package/dist/assets/StudioErrorNotice-fA_JlJ8q.css +1 -0
- package/dist/assets/Vibe64AuthSettingsButton-BR721Qls.css +1 -0
- package/dist/assets/Vibe64AuthSettingsButton-j3_ikAuW.js +5 -0
- package/dist/assets/Vibe64DashboardShell-B0NPbnB3.js +1 -0
- package/dist/assets/{Vibe64DashboardShell-De2mbdpI.css → Vibe64DashboardShell-ssWM1_V1.css} +1 -1
- package/dist/assets/Vibe64DatabaseWorkspace-B_lZnRTj.js +18 -0
- package/dist/assets/Vibe64DatabaseWorkspace-Pi6sGYwA.css +1 -0
- package/dist/assets/{Vibe64FileArea-_K7HHx8W.css → Vibe64FileArea-CciOeEO1.css} +1 -1
- package/dist/assets/Vibe64FileArea-nnRwNnqT.js +1 -0
- package/dist/assets/Vibe64OutputControls-BPIRF4dV.css +1 -0
- package/dist/assets/Vibe64OutputControls-Bri4USOZ.js +8 -0
- package/dist/assets/{Vibe64RepositoryWorkspace-CDrFWGgL.css → Vibe64RepositoryWorkspace-CldCVRsw.css} +1 -1
- package/dist/assets/{Vibe64RepositoryWorkspace-CDnsAlIz.js → Vibe64RepositoryWorkspace-D1A8LVag.js} +2 -2
- package/dist/assets/{Vibe64SessionFiles-DjeEvtpc.js → Vibe64SessionFiles-B36EvXEi.js} +8 -8
- package/dist/assets/{Vibe64SessionFiles-Z4UgqKSG.css → Vibe64SessionFiles-BRjB1Xrf.css} +1 -1
- package/dist/assets/{Vibe64UiStoryboardView-BSkQ8dvE.css → Vibe64UiStoryboardView-BHNN4C5U.css} +1 -1
- package/dist/assets/Vibe64UiStoryboardView-D0uyPOEQ.js +8 -0
- package/dist/assets/{Vibe64UnavailableSessions-CK0feE7T.js → Vibe64UnavailableSessions-hx-_cGSq.js} +1 -1
- package/dist/assets/{_sessionId_-DLLJsju9.js → _sessionId_-Dp6jNvbl.js} +1 -1
- package/dist/assets/{_sessionTool_-CLGUBdV6.js → _sessionTool_-3F0cXGZ_.js} +1 -1
- package/dist/assets/_slug_-BzW52gC4.css +1 -0
- package/dist/assets/_slug_-TS4avXZJ.js +14 -0
- package/dist/assets/access-C6HR24fd.css +1 -0
- package/dist/assets/access-D8qig7ec.js +1 -0
- package/dist/assets/app-Cj_EAhpX.js +1 -0
- package/dist/assets/{assistantRouting-CX0aG7dC.js → assistantRouting-IsG-rA4w.js} +1 -1
- package/dist/assets/asyncModuleRecovery-D-ifWpaj.js +1 -0
- package/dist/assets/browser-D8z6v6Ge.js +1 -0
- package/dist/assets/{changes-CoR0-8EL.js → changes-wPjq7Hm0.js} +1 -1
- package/dist/assets/client-Bq5oy2E4.css +1 -0
- package/dist/assets/client-CFYZ-lyr.js +1 -0
- package/dist/assets/client-DFOt8wBN.js +2 -0
- package/dist/assets/conversation-BnBeRELw.css +1 -0
- package/dist/assets/{conversation-B1UoWMaA.js → conversation-DI1nCDwa.js} +2 -2
- package/dist/assets/{dashboard-DnuIxR1s.js → dashboard-CxIdG5jv.js} +1 -1
- package/dist/assets/deepFreeze-TjVZ4UaS.js +1 -0
- package/dist/assets/{english-definitions-By4b_Yl2.js → english-definitions-ByX3eXsy.js} +1 -1
- package/dist/assets/env-Y80f5G0Q.css +1 -0
- package/dist/assets/env-z9srOupe.js +1 -0
- package/dist/assets/{erdLayout.worker-DjhcwOSh.js → erdLayout.worker-B_1U21gv.js} +2 -2
- package/dist/assets/error-B2soE6dN.js +1 -0
- package/dist/assets/error-B_-Sn1EY.js +1 -0
- package/dist/assets/errorMessageHelpers-DcxY5WmY.js +1 -0
- package/dist/assets/{errors-4Oktlo2s.js → errors-DmA2eVmq.js} +1 -1
- package/dist/assets/{health-DLFzUV9i.js → health-Cnxgo_A1.js} +1 -1
- package/dist/assets/{history-S_cJLehJ.js → history-B6Eu1y05.js} +1 -1
- package/dist/assets/httpClient-IaBOVUFR.js +1 -0
- package/dist/assets/i18n-B6JCTJQG.js +1 -0
- package/dist/assets/i18n-DzLUiDNj.js +1 -0
- package/dist/assets/incoming-Bz85hveu.css +1 -0
- package/dist/assets/incoming-C9FqNt2v.js +1 -0
- package/dist/assets/index-CSxRprxi.js +136 -0
- package/dist/assets/{index-FHlApQ90.css → index-CaALYaBx.css} +1 -1
- package/dist/assets/{integrations-Dmbbbs_A.js → integrations-CtQ0y43P.js} +6 -6
- package/dist/assets/integrations-Dy4L8T-4.css +1 -0
- package/dist/assets/issues-CcEiyt-B.js +1 -0
- package/dist/assets/issues-DX1SP37h.css +1 -0
- package/dist/assets/{learning-DDRM-FoP.js → learning-675vJSpE.js} +1 -1
- package/dist/assets/pathname-DX1St7pX.js +1 -0
- package/dist/assets/placement-CoQMKsJ9.js +1 -0
- package/dist/assets/placement-DDAY-u8t.js +1 -0
- package/dist/assets/project-files-B_oJKklm.js +1 -0
- package/dist/assets/{project-files-BhC487KD.css → project-files-Cvjr1DbY.css} +1 -1
- package/dist/assets/{publish-DW_tjNIU.css → publish-0atac4cR.css} +1 -1
- package/dist/assets/publish-zKiUnNh6.js +3 -0
- package/dist/assets/pull-requests-6HIqsPJc.css +1 -0
- package/dist/assets/pull-requests-CGCXU3Vk.js +1 -0
- package/dist/assets/{repository-CK3osHmp.js → repository-Cl1JsvV6.js} +1 -1
- package/dist/assets/{session-eKM-Rmub.js → session-7SYWgT3B.js} +1 -1
- package/dist/assets/{session-5qADMzDP.css → session-FB2fKiSj.css} +1 -1
- package/dist/assets/settings-CiSyW_3E.js +1 -0
- package/dist/assets/settings-Cwp0aoW6.css +1 -0
- package/dist/assets/{shared-MIKdzAzL.js → shared-DcpcQMvI.js} +2 -2
- package/dist/assets/studioGateApi-Cm9uuarA.js +1 -0
- package/dist/assets/studioUrls-DMWl1ac-.js +1 -0
- package/dist/assets/{useArchivedVibe64Sessions-BAQjW01a.js → useArchivedVibe64Sessions-CG7LwvNK.js} +1 -1
- package/dist/assets/useAssistantAttachments-LW1SwpSD.js +2 -0
- package/dist/assets/useCommand-BCpvrh_p.js +1 -0
- package/dist/assets/useEndpointResource-CDrYFeId.js +1 -0
- package/dist/assets/usePaths-SJ8N8JlI.js +1 -0
- package/dist/assets/useRealtimeEvent-YqOw66BB.js +1 -0
- package/dist/assets/useRouteQueryNavigation-D3Bs1qtK.js +1 -0
- package/dist/assets/{useUiFeedback-CZj76aLa.js → useUiFeedback-4s9XMiFM.js} +1 -1
- package/dist/assets/useVibe64ConversationLog-DwfY7cIR.js +1 -0
- package/dist/assets/useVibe64DatabaseTools-DxUt1UUx.js +1 -0
- package/dist/assets/useVibe64Learning-BL1-8dGq.css +1 -0
- package/dist/assets/useVibe64Learning-CxZHaFwU.js +5 -0
- package/dist/assets/useVibe64ProjectScope-CLOMClmg.js +1 -0
- package/dist/assets/useVibe64SessionData-C-gkuY3U.js +1 -0
- package/dist/assets/useVibe64SessionSelection-Cdszetjf.js +1 -0
- package/dist/assets/useVibe64SystemGraph-Dyy2FXVf.js +1 -0
- package/dist/assets/vibe64ApiResponses-D76fYJmO.js +1 -0
- package/dist/assets/vibe64AssistantHost-BAcbDf1j.js +1 -0
- package/dist/assets/{vibe64AttachmentDownload-Cngh16Hf.js → vibe64AttachmentDownload-DvJHSTlD.js} +1 -1
- package/dist/assets/vibe64BrowserTabOrigin-Dz32QF_D.js +1 -0
- package/dist/assets/vibe64RepositoryRealtime-Cs4wSLI1.js +1 -0
- package/dist/assets/vibe64SavedEnvValues-Berk_NCD.js +1 -0
- package/dist/assets/vibe64SessionFocus-C-33WDz4.css +1 -0
- package/dist/assets/vibe64SessionFocus-CZ8mBals.js +1 -0
- package/dist/assets/vibe64SessionInfo-Cao8entn.js +2 -0
- package/dist/assets/vibe64SessionPanelModel-F_mXCEG3.js +1 -0
- package/dist/assets/vibe64SessionRequestConfig-ByLwTfGV.js +1 -0
- package/dist/assets/vibe64SessionToolDefinitions-BJPgTkKn.js +1 -0
- package/dist/assets/vibe64SessionViewModel-B-NWnT0l.js +1 -0
- package/dist/assets/vueRefOrGetterValue-a0nrSTFl.js +1 -0
- package/dist/index.html +41 -37
- package/docs/colleague-usage/ai-accounts.md +1 -1
- package/docs/colleague-usage/ai-model-setups.md +7 -2
- package/docs/colleague-usage/ai-tasks.md +311 -0
- package/docs/colleague-usage/coding-agent-goal-pause.md +1 -1
- package/docs/colleague-usage/coding-agent-goals.md +2 -2
- package/docs/colleague-usage/coding-agent-recovery.md +3 -3
- package/docs/colleague-usage/coding-agents.md +22 -14
- package/docs/colleague-usage/colleague-watches.md +1 -1
- package/docs/colleague-usage/connected-contributions.md +128 -33
- package/docs/colleague-usage/connected-projects.md +14 -6
- package/docs/colleague-usage/conversation-context.md +4 -2
- package/docs/colleague-usage/dashboard-navigation.md +3 -2
- package/docs/colleague-usage/database.md +12 -5
- package/docs/colleague-usage/github-work.md +28 -23
- package/docs/colleague-usage/incoming-changes.md +12 -11
- package/docs/colleague-usage/lesson-authoring.md +1 -1
- package/docs/colleague-usage/main-chat-approvals.md +1 -1
- package/docs/colleague-usage/managed-app-access.md +6 -0
- package/docs/colleague-usage/message-delivery-recovery.md +5 -4
- package/docs/colleague-usage/plans.md +1 -1
- package/docs/colleague-usage/preview-browser-checks.md +3 -2
- package/docs/colleague-usage/preview.md +35 -3
- package/docs/colleague-usage/project-messages.md +4 -3
- package/docs/colleague-usage/project-setup.md +14 -9
- package/docs/colleague-usage/session-renewal.md +3 -1
- package/docs/colleague-usage/sessions.md +11 -8
- package/docs/colleague-usage/temporary-chat-context.md +4 -2
- package/docs/colleague-usage/temporary-chats.md +138 -137
- package/docs/colleague-usage/voice-chat.md +1 -1
- package/docs/colleague-usage/workspace-preparation.md +25 -6
- package/node_modules/@jskit-ai/assistant-core/package.json +1 -1
- 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/realtime/package.json +2 -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-ai-tasks/package.json +14 -0
- package/node_modules/@local/vibe64-database-tools/package.json +2 -1
- package/node_modules/@local/vibe64-terminals/package.json +2 -0
- package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +119 -119
- package/package.json +15 -13
- package/server.bundle.mjs +41993 -41276
- package/dist/assets/GithubBrowserTabs-DG2nCSNW.js +0 -1
- package/dist/assets/StudioErrorNotice-1K8E_MXD.css +0 -1
- package/dist/assets/Vibe64AuthSettingsButton-9OLqOZao.js +0 -5
- package/dist/assets/Vibe64AuthSettingsButton-OXh0BCMU.css +0 -1
- package/dist/assets/Vibe64DashboardShell-hWNziCur.js +0 -1
- package/dist/assets/Vibe64DatabaseWorkspace-KH6jwbsT.css +0 -1
- package/dist/assets/Vibe64DatabaseWorkspace-TqXOZJpI.js +0 -18
- package/dist/assets/Vibe64FileArea-BljhpApn.js +0 -1
- package/dist/assets/Vibe64OutputControls-CK2T32OB.css +0 -1
- package/dist/assets/Vibe64OutputControls-Dk_DWuFb.js +0 -8
- package/dist/assets/Vibe64TemporaryAiFixAction-DT62W459.js +0 -1
- package/dist/assets/Vibe64TemporaryAiFixAction-D_mq1dFE.css +0 -1
- package/dist/assets/Vibe64UiStoryboardView-idZz86bx.js +0 -8
- package/dist/assets/_slug_-BRPxP_Yn.css +0 -1
- package/dist/assets/_slug_-JgF_FQ6F.js +0 -25
- package/dist/assets/access-BBYAFCPS.css +0 -1
- package/dist/assets/access-Y-cII9qM.js +0 -1
- package/dist/assets/app-Cuw9E-ru.js +0 -1
- package/dist/assets/asyncModuleRecovery-BzjXulBW.js +0 -1
- package/dist/assets/client-CBSWtYl4.js +0 -2
- package/dist/assets/client-DCzQQhFB.js +0 -1
- package/dist/assets/client-DZaytu6o.css +0 -1
- package/dist/assets/conversation-fz3qfk_X.css +0 -1
- package/dist/assets/env-B6k9J2-c.css +0 -1
- package/dist/assets/env-KUPen-sS.js +0 -1
- package/dist/assets/error-B6X474x1.js +0 -1
- package/dist/assets/error-CqUuwdsr.js +0 -1
- package/dist/assets/errorMessageHelpers-KoewcxJa.js +0 -1
- package/dist/assets/httpClient-Dj5wBWSr.js +0 -1
- package/dist/assets/incoming-2kw086_4.css +0 -1
- package/dist/assets/incoming-CcASaMgW.js +0 -2
- package/dist/assets/index-CNkd6O5t.js +0 -136
- package/dist/assets/integrations-DenzAjSA.css +0 -1
- package/dist/assets/issues-EeBajY3I.js +0 -1
- package/dist/assets/issues-a3Z3thdZ.css +0 -1
- package/dist/assets/pathname-Bb895US8.js +0 -1
- package/dist/assets/placement-BCLIXgCD.js +0 -1
- package/dist/assets/placement-CWSo4Kid.js +0 -1
- package/dist/assets/project-files-CQ1BLaaP.js +0 -1
- package/dist/assets/publish-bvwc-KoQ.js +0 -3
- package/dist/assets/pull-requests-BjwokcU0.css +0 -1
- package/dist/assets/pull-requests-Ce1ECyuL.js +0 -1
- package/dist/assets/settings-BVRAB53A.css +0 -1
- package/dist/assets/settings-PQGw4vfn.js +0 -1
- package/dist/assets/studioGateApi-1C9rkDqt.js +0 -1
- package/dist/assets/studioUrls-BcpEogWH.js +0 -1
- package/dist/assets/useAssistantAttachments-DJWb1KdF.js +0 -2
- package/dist/assets/useCommand-DGM7l3ja.js +0 -1
- package/dist/assets/useEndpointResource-BaT7yEQ5.js +0 -1
- package/dist/assets/usePaths-DaWJ_Tvi.js +0 -1
- package/dist/assets/useRealtimeEvent-DbrYLgvU.js +0 -1
- package/dist/assets/useVibe64ConversationLog-CjUZuvV7.js +0 -1
- package/dist/assets/useVibe64DatabaseTools-BWZjnV6r.js +0 -1
- package/dist/assets/useVibe64ProjectScope-C4-hpbwc.js +0 -1
- package/dist/assets/useVibe64SessionData-CbY_B5mC.js +0 -1
- package/dist/assets/useVibe64SessionSelection-BJxwH8Z7.js +0 -1
- package/dist/assets/useVibe64SystemGraph-BdvumnPL.js +0 -1
- package/dist/assets/useVibe64Terminal-B8qevIXQ.js +0 -5
- package/dist/assets/useVibe64Terminal-Cw13QF0R.css +0 -1
- package/dist/assets/vibe64ApiResponses-B4VY77Q_.js +0 -1
- package/dist/assets/vibe64AssistantHost-CP6oxv5b.js +0 -1
- package/dist/assets/vibe64BrowserTabOrigin-D6Mxx-QS.js +0 -1
- package/dist/assets/vibe64ProjectScope.local-BbrorE15.js +0 -1
- package/dist/assets/vibe64RepositoryRealtime-CHT4-6VN.js +0 -1
- package/dist/assets/vibe64SavedEnvValues-9FX5u8Ht.js +0 -1
- package/dist/assets/vibe64SessionFocus-Bd3JuuZe.js +0 -1
- package/dist/assets/vibe64SessionFocus-CSm4YJQD.css +0 -1
- package/dist/assets/vibe64SessionInfo-Cdoyt2T_.js +0 -2
- package/dist/assets/vibe64SessionPanelModel-DoorGDCG.js +0 -1
- package/dist/assets/vibe64SessionRequestConfig-DvrfyP8A.js +0 -1
- package/dist/assets/vibe64SessionToolDefinitions-DL5fOyzl.js +0 -1
- package/dist/assets/vibe64SessionViewModel-B0cCumM8.js +0 -1
package/bin/server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __vibe64CreateRequire } from 'node:module';const require=__vibe64CreateRequire(import.meta.url);
|
|
3
|
-
import{existsSync as
|
|
3
|
+
import{existsSync as Ta}from"node:fs";import{mkdir as Pa}from"node:fs/promises";import Po from"node:os";import ae from"node:path";import rr from"node:process";import Qe from"node:path";import{fileURLToPath as gn}from"node:url";import yn from"node:child_process";
|
|
4
4
|
import _n,{constants as wn}from"node:fs/promises";import Bo from"node:path";import{promisify as Uo}from"node:util";import Fo from"node:child_process";import Ve,{constants as Ut}from"node:fs/promises";import Mt from"node:process";import ko from"node:os";import Fe from"node:fs";import xo from"node:fs";import kt from"node:fs";var De;function Co(){try{return kt.statSync("/.dockerenv"),!0}catch{return!1}}function No(){try{
|
|
5
5
|
return kt.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function Be(){return De===void 0&&
|
|
6
6
|
(De=Co()||No()),De}var Ue,jo=()=>{try{return xo.statSync("/run/.containerenv"),!0}catch{return!1}};function C(){return Ue===void 0&&(Ue=jo()||
|
|
@@ -22,12 +22,12 @@ stdout:s}=await zo("wslpath",["-aw",...n],{encoding:"utf8"}),a=s.split(/\r?\n/).
|
|
|
22
22
|
i[u]=a[c]??o[u]}catch{}return t?i:i[0]};import Gt from"node:process";import{Buffer as Wo}from"node:buffer";import{promisify as qo}from"node:util";import Yo from"node:child_process";var Jo=qo(Yo.execFile),Ko=()=>`${Gt.env.SYSTEMROOT||Gt.env.windir||String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1\
|
|
23
23
|
.0\\powershell.exe`;var Ht=["-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand"],Wt=e=>Wo.from(e,"utf16le").toString(
|
|
24
24
|
"base64"),Xo=e=>`'${String(e).replaceAll(/['‘’‚‛]/g,t=>t+t)}'`,qt=e=>[...Ht,Wt(e)],Zo=e=>({encoding:"utf8",...e,
|
|
25
|
-
shell:!1}),
|
|
26
|
-
Wt;
|
|
25
|
+
shell:!1}),S=async(e,t={})=>{let{powerShellPath:o,...r}=t;return Jo(o??Ko(),qt(e),Zo(r))};S.argumentsPrefix=Ht;S.encodeCommand=
|
|
26
|
+
Wt;S.escapeArgument=Xo;S.createArguments=qt;function x(e,t,o){let r=n=>Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0});return Object.defineProperty(e,
|
|
27
27
|
t,{configurable:!0,enumerable:!0,get(){let n=o();return r(n),n},set(n){r(n)}}),e}import{promisify as dn}from"node:util";import Je from"node:process";import{execFile as pn}from"node:child_process";import{promisify as Qo}from"node:util";import en from"node:process";import{execFile as tn}from"node:child_process";var rn=Qo(
|
|
28
28
|
tn);async function Ge(){if(en.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await rn("defaults",["read",
|
|
29
29
|
"com.apple.LaunchServices/com.apple.launchservices.secure","LSHandlers"]),o=/LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.
|
|
30
|
-
exec(e)?.groups.id??"com.apple.Safari";return o==="com.apple.safari"?"com.apple.Safari":o}import on from"node:process";import{promisify as nn}from"node:util";import{execFile as sn,execFileSync as
|
|
30
|
+
exec(e)?.groups.id??"com.apple.Safari";return o==="com.apple.safari"?"com.apple.Safari":o}import on from"node:process";import{promisify as nn}from"node:util";import{execFile as sn,execFileSync as Rc}from"node:child_process";
|
|
31
31
|
var an=nn(sn);async function Yt(e,{humanReadableOutput:t=!0,signal:o}={}){if(on.platform!=="darwin")throw new Error("mac\
|
|
32
32
|
OS only");let r=t?[]:["-ss"],n={};o&&(n.signal=o);let{stdout:i}=await an("osascript",["-e",e,r],n);return i.trim()}async function He(e){return Yt(`tell application "Finder" to set app_path to application file id "${e}" as string
|
|
33
33
|
tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":C\
|
|
@@ -61,10 +61,10 @@ if(o==="browserPrivate"){if(f==="safari")throw new Error("Safari doesn't support
|
|
|
61
61
|
e");r.push(l[f])}return pe({...e,app:{name:P[f],arguments:r}})}throw new Error(`${d.name} is not supported as a default \
|
|
62
62
|
browser`)}let n,i=[],s={},a=!1;if(E&&!C()&&!Kt&&!o&&(a=await Ft()),j==="darwin")n="open",e.wait&&i.push("--wait-apps"),e.
|
|
63
63
|
background&&i.push("--background"),e.newInstance&&i.push("--new"),o&&i.push("-a",o);else if(j==="win32"||a){n=await ue(),
|
|
64
|
-
i.push(...
|
|
65
|
-
ressPreference = 'SilentlyContinue';","Start"];e.wait&&u.push("-Wait"),o?(u.push(
|
|
66
|
-
target)):e.target&&u.push(
|
|
67
|
-
r.join(","))),e.target=
|
|
64
|
+
i.push(...S.argumentsPrefix),E||(s.windowsVerbatimArguments=!0),E&&e.target&&(e.target=await Vt(e.target));let u=["$Prog\
|
|
65
|
+
ressPreference = 'SilentlyContinue';","Start"];e.wait&&u.push("-Wait"),o?(u.push(S.escapeArgument(o)),e.target&&r.push(e.
|
|
66
|
+
target)):e.target&&u.push(S.escapeArgument(e.target)),r.length>0&&(r=r.map(l=>S.escapeArgument(l)),u.push("-ArgumentList",
|
|
67
|
+
r.join(","))),e.target=S.encodeCommand(u.join(" ")),e.wait||(s.stdio="ignore"),E&&(s.cwd=Qe.dirname(n))}else{if(o)n=o;else{
|
|
68
68
|
let u=!Ze||Ze==="/",l=!1;try{await _n.access(Zt,wn.X_OK),l=!0}catch{}n=rr.versions.electron??(j==="android"||u||!l)?"xdg\
|
|
69
69
|
-open":Zt}r.length>0&&i.push(...r),e.wait||(s.stdio="ignore",s.detached=!0)}j==="darwin"&&r.length>0&&i.push("--args",...r),
|
|
70
70
|
e.target&&i.push(e.target);let c=yn.spawn(n,i,s);return e.wait?new Promise((u,l)=>{c.once("error",l),c.once("close",d=>{
|
|
@@ -82,8 +82,8 @@ ram Files/BraveSoftware/Brave-Browser/Application/brave.exe","/mnt/c/Program Fil
|
|
|
82
82
|
lication/brave.exe"]}}));x(P,"firefox",()=>W({darwin:"firefox",win32:String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`,
|
|
83
83
|
linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));x(P,"edge",()=>W({darwin:"microsoft edge",win32:"\
|
|
84
84
|
msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedg\
|
|
85
|
-
e.exe"}));x(P,"safari",()=>W({darwin:"Safari"}));var et=bn;import _ from"node:process";import{fileURLToPath as
|
|
86
|
-
|
|
85
|
+
e.exe"}));x(P,"safari",()=>W({darwin:"Safari"}));var et=bn;import _ from"node:process";import{fileURLToPath as Ra}from"node:url";var ou=Object.freeze(["none","pending","committed","rolledBack","unknown"]);function v(e,{fallback:t=""}={}){return String(e||"").trim()||t}function L(e){return String(e??"").trim()}function O(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}function y(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||
|
|
86
|
+
Sn(t)}function Sn(e){return e!==null&&typeof e=="object"&&Object.getPrototypeOf(e)===null&&Reflect.ownKeys(e).length===0}function tt(e){return e!==null&&typeof e=="object"&&y(e.structure)&&y(e.operations)&&typeof e.validateWith=="function"&&
|
|
87
87
|
typeof e.toJsonSchema=="function"&&typeof e.cleanup=="function"}function me(e,t){if(!Object.hasOwn(t,"items"))return null;
|
|
88
88
|
let{items:o}=t;if(tt(o))return{kind:"schema",schema:o};if(!y(o)||typeof o.type!="string")throw new Error(`Array field "${e}\
|
|
89
89
|
" must define items as either a Schema instance or a field definition object.`);return{kind:"definition",definition:o}}function q(e,t){
|
|
@@ -96,13 +96,13 @@ if(r&&t.additionalProperties===!0)throw new Error(`Object field "${e}" cannot de
|
|
|
96
96
|
s: true.`);if(o){if(!tt(t.schema))throw new Error(`Object field "${e}" must define schema as a Schema instance.`);return{
|
|
97
97
|
kind:"nested",schema:t.schema,allowAdditionalProperties:t.additionalProperties===!0}}return r?{kind:"map",valuesConfig:q(
|
|
98
98
|
e,t)}:t.additionalProperties===!0?{kind:"opaque"}:{kind:"plain"}}function D(e){return e?.type==="number"||e?.type==="integer"||e?.type==="epochMilliseconds"||e?.type==="epochSeconds"}var rt="^(?:0|-?[1-9]\\d*)$",or="\\d{4}",nr="0[1-9]|1[0-2]",ir="0[1-9]|[12]\\d|3[01]",sr="[01]\\d|2[0-3]",B="[0-5]\\d",he=`\
|
|
99
|
-
(?:${sr}):${B}`,ar=`(?:Z|[+-](?:${sr}):${B})`,cr=`(${or})-(${nr})-(${ir})`,ur=`${or}-(?:${nr})-(?:${ir})`,lr=`^${ur}$`,
|
|
99
|
+
(?:${sr}):${B}`,ar=`(?:Z|[+-](?:${sr}):${B})`,cr=`(${or})-(${nr})-(${ir})`,ur=`${or}-(?:${nr})-(?:${ir})`,lr=`^${ur}$`,vn=new RegExp(
|
|
100
100
|
`^${cr}$`),On=new RegExp(`^${he}(?::${B}(?:\\.(\\d+))?)?$`),Tn=new RegExp(`^${cr}T${he}:${B}(?:\\.(\\d+))?${ar}$`),Pn=new RegExp(
|
|
101
101
|
rt),Rn=[31,28,31,30,31,30,31,31,30,31,30,31];function An(e){return e%4===0&&(e%100!==0||e%400===0)}function In(e,t){return t===
|
|
102
102
|
2?An(e)?29:28:Rn[t-1]}function dr(e,t,o){let r=Number(e),n=Number(t),i=Number(o);return n>=1&&n<=12&&i>=1&&i<=In(r,n)}function Y(e,t){
|
|
103
103
|
let o=e.temporalPrecision;if(o!==void 0){if(!Number.isInteger(o)||o<0)throw new Error(`temporalPrecision for "${t}" must\
|
|
104
104
|
be a non-negative integer.`);return o}}function pr(e,t){return e===void 0?!0:t===void 0||e.length<=t}function mr(e){if(typeof e!=
|
|
105
|
-
"string")return!1;let t=
|
|
105
|
+
"string")return!1;let t=vn.exec(e);return t!==null&&dr(t[1],t[2],t[3])}function fr(e,t){if(typeof e!="string")return!1;let o=On.
|
|
106
106
|
exec(e);return o!==null&&pr(o[1],t)}function hr(e,t){if(typeof e!="string")return!1;let o=Tn.exec(e);return o===null?!1:
|
|
107
107
|
dr(o[1],o[2],o[3])&&pr(o[4],t)}function gr(e){return e===void 0?"(?:\\.\\d+)?":e===0?"":`(?:\\.\\d{1,${e}})?`}function yr(e,t){
|
|
108
108
|
let o=Y(e,t);return`^${he}(?::${B}${gr(o)})?$`}function _r(e,t){let o=Y(e,t);return`^${ur}T${he}:${B}${gr(o)}${ar}$`}function ot(e,t){
|
|
@@ -155,11 +155,11 @@ e)?{allOf:[e]}:e}function Wn(e,t,o,r,n){return e.nodes.find(i=>i.schema===t&&i.o
|
|
|
155
155
|
n)||null}function qn(e,t){let o=Hn(t),r=`SchemaNode_${e.nextDefinitionId}_${o}`;return e.nextDefinitionId+=1,r}function Er(e,t,o,r,n,{
|
|
156
156
|
root:i=!1}={}){let s=ye(t),a=Wn(s,e,o,r,n);if(a)return i&&(a.pointer="#",s.rootNode=a),a;let c={schema:e,operationName:o,
|
|
157
157
|
operation:r,additionalProperties:n,status:"new",definitionName:i?null:qn(s,o),pointer:i?"#":null};return i?s.rootNode=c:
|
|
158
|
-
c.pointer=`#/definitions/${c.definitionName}`,s.nodes.push(c),c}function
|
|
158
|
+
c.pointer=`#/definitions/${c.definitionName}`,s.nodes.push(c),c}function Sr(e,t){if(e.status==="built")return{$ref:e.pointer};
|
|
159
159
|
if(e.status==="building")return{$ref:e.pointer};let o=ye(t);e.status="building",e.pointer!=="#"&&(o.definitions[e.definitionName]=
|
|
160
160
|
{});let r=Yn(e.schema,t,e.operationName,e.operation,e.additionalProperties);return e.status="built",e.pointer==="#"?r:(o.
|
|
161
161
|
definitions[e.definitionName]=r,{$ref:e.pointer})}function dt(e,t,o,r,n=!1){let i=ye(t),s=Er(e,t,o,r,n);return i.rootNode===
|
|
162
|
-
s?{$ref:"#"}:
|
|
162
|
+
s?{$ref:"#"}:Sr(s,t)}function J(e,{referenceBacked:t=!1}={}){return{schema:e,referenceBacked:t}}function Yn(e,t,o,r,n=!1){
|
|
163
163
|
let i={},s=[];for(let[c,u]of Object.entries(e.structure))p(i,c,pt(e,c,u,t,o,r)),r.enforceRequired&&u.required===!0&&s.push(
|
|
164
164
|
c);let a={type:"object",properties:i,additionalProperties:n};return s.length>0&&(a.required=s),a}function Jn(e,t,o,r,n,i){
|
|
165
165
|
let s=me(t,o);if(!s)return null;if(s.kind==="schema")return{...ge(dt(s.schema,r,"replace",s.schema.operations.replace,!1)),
|
|
@@ -180,8 +180,8 @@ null"}),o.nullOnEmpty===!0&&l.push({const:""});let d=ge(Bn(c,l));if(o.defaultTo!
|
|
|
180
180
|
"function"){let m=e._normalizeDefault(o,o.defaultTo,{fieldPath:t,currentObject:{},containerKey:t,objectBeforeCast:{},options:{},
|
|
181
181
|
settings:e._buildOperationSettings(n,i,{})});if(Object.keys(m.errors).length>0){let f=Object.values(m.errors)[0];throw new Error(
|
|
182
182
|
`defaultTo for "${t}" is invalid (${f.code}).`)}d.default=m.value}else u.defaults={providedByFunction:!0};return d[R]=u,
|
|
183
|
-
d}function
|
|
184
|
-
s=ye(o),a=Er(e,o,r,n,i,{root:!0}),c={$schema:jn,...
|
|
183
|
+
d}function vr(e,t={}){let o=Gn(t),{operationName:r,operation:n}=Vn(e,o),i=o.additionalProperties===void 0?!1:o.additionalProperties,
|
|
184
|
+
s=ye(o),a=Er(e,o,r,n,i,{root:!0}),c={$schema:jn,...Sr(a,o)};return Object.keys(s.definitions).length>0&&(c.definitions=s.
|
|
185
185
|
definitions),c}function Or(e){return e!==null&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function yt(e){return e instanceof
|
|
186
186
|
z}function Zn(){return{self:!1,children:{}}}function Tr(e){return Object.keys(e.children).length>0}function $(e,t){return`${e}\
|
|
187
187
|
.${String(t)}`}function Nr(e,t){return e===""?String(t):$(e,t)}function Pr(e,t){if(e===t)return"";let o=`${t}.`;return e.
|
|
@@ -322,11 +322,11 @@ errors}}validatePaths(t,o,r={}){if(this._assertPlainObjectInput("validatePaths",
|
|
|
322
322
|
"validatePaths() expects a non-empty array of schema paths.");let{operationName:n,operation:i,validationOptions:s}=this.
|
|
323
323
|
_resolvePathValidationRequest(r);return this._validateSelectedTree(Rr(t),o,s,this._buildOperationSettings(n,i,o))}_installOperationMethods(){
|
|
324
324
|
for(let t of Object.keys(this.operations)){if(t in this)throw new Error(`Operation name "${t}" is reserved and cannot be\
|
|
325
|
-
used as a schema method.`);this[t]=(o,r={})=>this.validateWith(t,o,r)}}toJsonSchema(t={}){return
|
|
325
|
+
used as a schema method.`);this[t]=(o,r={})=>this.validateWith(t,o,r)}}toJsonSchema(t={}){return vr(this,t)}getFieldDefinitions(){
|
|
326
326
|
return mt(this.structure)}getFieldDefinition(t){if(typeof t!="string"||t.trim()==="")throw new Error("Field path must be\
|
|
327
327
|
a non-empty string.");let o=gt(this,ht(t.trim()));return o===null?null:mt(o)}getFieldMessages(t){let o=this.getFieldDefinition(
|
|
328
328
|
t);return!o||typeof o.messages!="object"||o.messages===null?Object.freeze({}):mt(o.messages)}cleanup(t,o){let r={};for(let n of Object.
|
|
329
|
-
keys(t))Object.hasOwn(this.structure,n)&&this.structure[n][o]&&p(r,n,t[n]);return r}};var{parse:
|
|
329
|
+
keys(t))Object.hasOwn(this.structure,n)&&this.structure[n][o]&&p(r,n,t[n]);return r}};var{parse:Nu,stringify:si}=JSON,{keys:xu}=Object,ai=String,ci="string";var jr="object",ui=(e,t)=>t;var kr=(e,t,o)=>{let r=ai(t.push(o)-1);return e.set(o,r),r};var $r=(e,t,o)=>{let r=t&&typeof t===jr?(l,d)=>l===""||-1<t.indexOf(l)?d:void 0:t||ui,n=new Map,i=[],s=[],a=+kr(n,i,r.call(
|
|
330
330
|
{"":e},"",e)),c=!a;for(;a<i.length;)c=!0,s[a]=si(i[a++],u,o);return"["+s.join(",")+"]";function u(l,d){if(c)return c=!c,
|
|
331
331
|
d;let m=r.call(this,l,d);switch(typeof m){case jr:if(m===null)return m;case ci:return n.get(m)||kr(n,i,m)}return m}};var di=new Set(["true","1","yes","y","on"]),pi=new Set(["false","0","no","n","off"]);function mi(e){return e!==null&&(typeof e==
|
|
332
332
|
"object"||typeof e=="function")&&typeof e.then=="function"}function Mr(e){if(typeof e=="number")return Number.isFinite(e)?
|
|
@@ -399,46 +399,47 @@ ust be schema instances or schema factories created by json-rest-schema.");Br(n,
|
|
|
399
399
|
ator")}return{types:n,validators:i}}function Vr({types:e={},validators:t={},installCore:o=!0}={}){let r=Ee(e),n=Ee(t),i=(s,a={})=>{
|
|
400
400
|
let c=new z(s,r,n,a.operations);return Dr(c,r,n),c};return Dr(i,r,n),i.addType=(s,a)=>{hi(r,s,a)},i.addValidator=(s,a)=>{
|
|
401
401
|
gi(n,s,a)},i.use=s=>{yi(s,{addType:i.addType,addValidator:i.addValidator})},i.createFactory=(...s)=>{let a=Ei(r,n,s);return Vr(
|
|
402
|
-
{types:a.types,validators:a.validators,installCore:!1})},o&&i.use(Lr),i}var Gr=Vr({installCore:!0});var
|
|
402
|
+
{types:a.types,validators:a.validators,installCore:!1})},o&&i.use(Lr),i}var Gr=Vr({installCore:!0});var Qu=Object.freeze({schema:Gr({}),mode:"replace"});var Hr=/^[a-z][a-z0-9_.-]*$/u,vi=/^[A-Za-z_$][A-Za-z0-9_$]*$/u;function Wr(e,t){let o=String(e||"").trim().toLowerCase();
|
|
403
403
|
if(!Hr.test(o))throw new TypeError(`${t} must match ${Hr.toString()}.`);return o}function wt(e,t){if(e==null)return Object.
|
|
404
404
|
freeze({});if(!O(e))throw new TypeError(`${t} must be an object mapping local names to capability ids.`);let o={},r=new Set;
|
|
405
|
-
for(let[n,i]of Object.entries(e)){let s=String(n||"").trim();if(!
|
|
405
|
+
for(let[n,i]of Object.entries(e)){let s=String(n||"").trim();if(!vi.test(s))throw new TypeError(`${t} local name "${s}" \
|
|
406
406
|
must be a JavaScript identifier.`);let a=Wr(i,`${t}.${s}`);if(r.has(a))throw new TypeError(`${t} declares capability "${a}\
|
|
407
407
|
" more than once.`);r.add(a),o[s]=a}return Object.freeze(o)}function Oi(e){let t=new Map;for(let[o,r]of Object.entries(e))
|
|
408
408
|
for(let n of Object.keys(r)){if(t.has(n))throw new TypeError(`Provider local name "${n}" is declared by both ${t.get(n)}\
|
|
409
409
|
and ${o}.`);t.set(n,o)}}function bt(e,t){if(e==null)return null;if(typeof e!="function")throw new TypeError(`${t} must \
|
|
410
|
-
be a function when provided.`);return e}function
|
|
410
|
+
be a function when provided.`);return e}function ve({id:e,requires:t={},optional:o={},provides:r={},setup:n,boot:i=null,
|
|
411
411
|
shutdown:s=null}={}){let a=Wr(e,"Provider id"),c=wt(t,`${a}.requires`),u=wt(o,`${a}.optional`),l=wt(r,`${a}.provides`);Oi(
|
|
412
412
|
{requires:c,optional:u,provides:l});let d=bt(n,`${a}.setup`);if(!d)throw new TypeError(`${a}.setup is required.`);return Object.
|
|
413
413
|
freeze({id:a,requires:c,optional:u,provides:l,setup:d,boot:bt(i,`${a}.boot`),shutdown:bt(s,`${a}.shutdown`)})}var qr="public";var Ti="/api",Jr=`${Ti}/bootstrap`;function Et(){let e=[],t=new Set,o=!1;function r({id:a,order:c=0,contribute:u}={}){if(o)throw new Error("Bootstrap regis\
|
|
414
|
-
tration is closed after the first payload is resolved.");let l=
|
|
414
|
+
tration is closed after the first payload is resolved.");let l=v(a);if(!l)throw new TypeError("Bootstrap contributor id \
|
|
415
415
|
is required.");if(typeof u!="function")throw new TypeError(`Bootstrap contributor "${l}" requires contribute().`);if(t.has(
|
|
416
416
|
l))throw new Error(`Bootstrap contributor "${l}" is duplicated.`);return t.add(l),e.push(Object.freeze({id:l,order:Number.
|
|
417
417
|
isFinite(c)?Number(c):0,contribute:u})),s}async function n(a={}){o=!0;let c={},u=e.map((l,d)=>({entry:l,index:d})).sort(
|
|
418
418
|
(l,d)=>l.entry.order-d.entry.order||l.index-d.index).map(({entry:l})=>l);for(let l of u){let d=await l.contribute(Object.
|
|
419
419
|
freeze({...O(a)?a:{},payload:Object.freeze({...c})}));c={...c,...O(d)?d:{}}}return Object.freeze(c)}function i(){return Object.
|
|
420
420
|
freeze({sealed:o,contributorIds:Object.freeze(e.map(a=>a.id).sort())})}let s=Object.freeze({register:r,resolve:n,diagnostics:i});
|
|
421
|
-
return s}var Pi=
|
|
421
|
+
return s}var Pi=ve({id:"runtime.bootstrap",requires:{http:"runtime.http"},provides:{bootstrap:"runtime.bootstrap"},setup({http:e}){
|
|
422
422
|
let t=Et();return e.router.register("GET",Jr,{auth:qr,meta:{tags:["bootstrap"],summary:"Resolve app bootstrap payload"}},
|
|
423
423
|
async(o,r)=>{r.code(200).send(await t.resolve({request:o,reply:r,query:o.query||{}}))}),{bootstrap:t}}});function Ri(e){if(!O(e))throw new TypeError("Event listener must be an object.");let t=String(e.id||"").trim();if(!t)throw new TypeError(
|
|
424
424
|
"Event listener id is required.");if(typeof e.handle!="function")throw new TypeError(`Event listener "${t}" requires han\
|
|
425
425
|
dle().`);if(e.matches!=null&&typeof e.matches!="function")throw new TypeError(`Event listener "${t}" matches must be a f\
|
|
426
426
|
unction when provided.`);return Object.freeze({id:t,handle:e.handle,matches:e.matches??null})}function Ai(e){if(!O(e))throw new TypeError(
|
|
427
427
|
"Published event must be an object.");let t=String(e.type||"").trim();if(!t)throw new TypeError("Published event type is\
|
|
428
|
-
required.");return Object.freeze({...e,type:t})}function
|
|
428
|
+
required.");return Object.freeze({...e,type:t})}function St(){let e=[],t=new Set;function o(s){let a=Ri(s);if(t.has(a.id))
|
|
429
429
|
throw new Error(`Event listener "${a.id}" is duplicated.`);return t.add(a.id),e.push(a),i}async function r(s){let a=Ai(s);
|
|
430
430
|
for(let c of e)c.matches&&c.matches(a)!==!0||await c.handle(a);return a}function n(){return Object.freeze({listenerIds:Object.
|
|
431
|
-
freeze(e.map(s=>s.id))})}let i=Object.freeze({register:o,publish:r,diagnostics:n});return i}var Ii=
|
|
431
|
+
freeze(e.map(s=>s.id))})}let i=Object.freeze({register:o,publish:r,diagnostics:n});return i}var Ii=ve({id:"runtime.events",provides:{events:"runtime.events"},setup(){return{events:St()}}});import{AsyncLocalStorage as Ci}from"node:async_hooks";var Zl=new Ci;import Oe from"node:path";import vt from"node:process";import Ni from"node:os";var Ot="VIBE64_SYSTEM_ROOT";function Kr(e,t){let o=String(e||"").trim();return Oe.resolve(o||t||vt.cwd())}function Te({env:e,home:t=Ni.homedir(),platform:o=vt.platform}){let r=t||vt.cwd();if(o==="darwin")return Kr(Oe.join(r,"L\
|
|
432
432
|
ibrary","Application Support","Vibe64"));let n=String(e.XDG_STATE_HOME||"").trim();return Kr(Oe.join(n||Oe.join(r,".loca\
|
|
433
|
-
l","state"),"vibe64"))}var Ed=Object.freeze({runtimePackRoot:"",sharedCacheRoot:"",execHelperPath:"",sharedGroupAccess:!1});
|
|
433
|
+
l","state"),"vibe64"))}var Ed=Object.freeze({runtimePackRoot:"",sharedCacheRoot:"",execHelperPath:"",sharedGroupAccess:!1});var jd=Object.freeze(["schemaVersion","id","sessionId","repository","integrationBranch","baseCommit","replaces","replace\
|
|
434
|
+
sSessionId"]);import{execFile as ki}from"node:child_process";import{promisify as $i}from"node:util";var Dd=$i(ki);function Mi([e,t,o,r,n,i]=[]){if(!/^\d+$/u.test(t)||!/^\d+$/u.test(o))return null;let s=Number(t),a=Number(o);return!Number.
|
|
434
435
|
isSafeInteger(s)||!Number.isSafeInteger(a)?null:{displayName:String(r||"").split(",")[0],gid:a,home:String(n||""),shell:String(
|
|
435
|
-
i||""),uid:s,username:String(e||"")}}function
|
|
436
|
-
t[0],t[2],t[3],t[4],t[5],t[6]])}var
|
|
437
|
-
in",customScheme:"",appLinkDomains:Object.freeze([])}),
|
|
438
|
-
versionName:"1.0.0"});var
|
|
439
|
-
"metadata","migrations","runtime","vite"]);import
|
|
436
|
+
i||""),uid:s,username:String(e||"")}}function Li(e=""){let t=String(e||"").trim().split(":");return t.length<7?null:Mi([
|
|
437
|
+
t[0],t[2],t[3],t[4],t[5],t[6]])}var Bd=Object.freeze({parsePasswdLine:Li});function g(e=""){return String(e??"").trim()}function Z(e={}){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}import{fileURLToPath as Ui}from"node:url";var Bi=new URL("./../node_modules/@local/vibe64-execution/src/server/engines/detached.js",import.meta.url).href;var Qd=Ui(new URL("./detachedReaper.js",Bi));import{createRequire as Vi}from"node:module";var zi=new URL("./../node_modules/@jskit-ai/kernel/server/support/symlinkSafeRequire.js",import.meta.url).href;var up=Vi(zi);var hp=Object.freeze(["bundled","dev_server"]),gp=Object.freeze(["capacitor"]),yp=Object.freeze({callbackPath:"/auth/log\
|
|
438
|
+
in",customScheme:"",appLinkDomains:Object.freeze([])}),_p=Object.freeze({packageName:"",minSdk:26,targetSdk:35,versionCode:1,
|
|
439
|
+
versionName:"1.0.0"});var Mp=Object.freeze(["dependencies","optionalDependencies","peerDependencies"]),Lp=Object.freeze(["capabilities","kind",
|
|
440
|
+
"metadata","migrations","runtime","vite"]);import Yi from"node:path";var Wi="jskit-client-build",zp=new RegExp(`<meta name="${Wi}" content="([0-9a-f]+)"`,"u");var Yp=Yi.join("dist","index.html");var Re=Object.freeze(["DATABASE_URL","DB_CLIENT","DB_DATABASE","DB_HOST","DB_NAME","DB_PASSWORD","DB_PORT","DB_USER","DB\
|
|
440
441
|
_USERNAME","MYSQL_DATABASE","MYSQL_HOST","MYSQL_PWD","MYSQL_TCP_PORT","PGDATABASE","PGHOST","PGPASSWORD","PGPORT","PGUSE\
|
|
441
|
-
R","VIBE64_MYSQL_USER"]);var te="GIT_AUTHOR_NAME",re="GIT_AUTHOR_EMAIL",oe="GIT_COMMITTER_NAME",ne="GIT_COMMITTER_EMAIL";var
|
|
442
|
+
R","VIBE64_MYSQL_USER"]);var te="GIT_AUTHOR_NAME",re="GIT_AUTHOR_EMAIL",oe="GIT_COMMITTER_NAME",ne="GIT_COMMITTER_EMAIL";var Zi=['git config --global user.name "Your Name"','git config --global user.email "you@example.com"'].join(`
|
|
442
443
|
`);var Ae=Object.freeze({awsebcli:{binDirs:["awsebcli/bin"],managedCommands:["eb"]},bubblewrap:{binDirs:["bubblewrap/bin"],
|
|
443
444
|
managedCommands:[]},bun:{binDirs:["bun/bin"],dependencyFiles:["package.json","bun.lock","bun.lockb","package-lock.json"],
|
|
444
445
|
managedCommands:["bun"]},composer:{binDirs:["composer/bin"],dependencyFiles:["composer.json","composer.lock"],managedCommands:[
|
|
@@ -469,27 +470,27 @@ playwright:{binDirs:["playwright/bin"],identityPaths:["playwright/runtime.env","
|
|
|
469
470
|
playwright"]},postgresql:{binDirs:["postgresql/bin"],managedCommands:["initdb","pg_ctl","pg_isready","postgres","psql"]},
|
|
470
471
|
ripgrep:{binDirs:["ripgrep/bin"],managedCommands:[]},sqlite:{binDirs:["sqlite/bin"],managedCommands:["sqlite3"]}}),eo=Object.
|
|
471
472
|
freeze(["operator-clis","node26","git","gh","mysql","mariadb","postgresql","sqlite","ripgrep","bubblewrap","bun","php","\
|
|
472
|
-
composer","awsebcli","cpp","python","ruby","go","java","kotlin","csharp","rust","playwright"]);function
|
|
473
|
-
GHT_VERSION";var
|
|
474
|
-
steadOf",value:"ssh://git@github.com/"}]),
|
|
475
|
-
/env gh auth git-credential"}]),
|
|
476
|
-
get) printf '%s\\n' username=x-access-token "password=\${VIBE64_GIT_AUTH_TOKEN}" ;; esac; }; f`}]);function
|
|
473
|
+
composer","awsebcli","cpp","python","ruby","go","java","kotlin","csharp","rust","playwright"]);function Qi(e=""){let t=g(e);return[...Ae[t]?.managedCommands||[]]}var jm=Object.freeze({runtimePackManagedCommands:Qi});var Pt="VIBE64_SHARED_CACHE_ROOT",Ie="PLAYWRIGHT_BROWSERS_PATH",to="PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD",ro="VIBE64_PLAYWRI\
|
|
474
|
+
GHT_VERSION";var Vm=new Set([...Re,re,te,ne,oe,Ie,to,ro,Pt]);import no from"node:path";var ts=Object.freeze([{key:"url.https://github.com/.insteadOf",value:"git@github.com:"},{key:"url.https://github.com/.in\
|
|
475
|
+
steadOf",value:"ssh://git@github.com/"}]),Km=Object.freeze([{key:"credential.https://github.com.helper",value:"!/usr/bin\
|
|
476
|
+
/env gh auth git-credential"}]),Xm=Object.freeze([{key:"credential.https://github.com.helper",value:`!f() { case "$1" in\
|
|
477
|
+
get) printf '%s\\n' username=x-access-token "password=\${VIBE64_GIT_AUTH_TOKEN}" ;; esac; }; f`}]);function rs(e=[]){let t=new Set,
|
|
477
478
|
o=[];for(let r of Array.isArray(e)?e:[e]){let n=g(r);if(!n||!no.isAbsolute(n))continue;let i=no.resolve(n);t.has(i)||(t.
|
|
478
479
|
add(i),o.push(i))}return o}function io(e={},t=[]){let o={...e&&typeof e=="object"&&!Array.isArray(e)?e:{}},r=Number.parseInt(
|
|
479
480
|
String(o.GIT_CONFIG_COUNT||"0"),10),n=Number.isSafeInteger(r)&&r>=0?r:0;for(let i of Array.isArray(t)?t:[]){let s=g(i?.key);
|
|
480
481
|
s&&(o[`GIT_CONFIG_KEY_${n}`]=s,o[`GIT_CONFIG_VALUE_${n}`]=String(i?.value??""),n+=1)}return o.GIT_CONFIG_COUNT=String(n),
|
|
481
|
-
o}function
|
|
482
|
-
_RUNTIME_DIR"]);import{createRequire as
|
|
483
|
-
"deployment","health","workspace-cache","source"]),
|
|
484
|
-
8","base64"]),
|
|
485
|
-
ps","github-token"]),
|
|
486
|
-
freeze(["finite","interactive","service"]),
|
|
482
|
+
o}function os(e=[]){return rs(e).map(t=>({key:"safe.directory",value:t}))}function ns(e=[]){return os(e).flatMap(t=>["-c",`${t.key}=${t.value}`])}function is(e={}){return io(e,ts)}var Zm=Object.freeze({applyGitConfigEntriesToEnv:io,githubSshToHttpsGitEnv:is,gitSafeDirectoryArgs:ns});var At="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin";var Mf=new Set([...Re,re,te,ne,oe,"HOME","LOGNAME","PATH","USER","XDG_CACHE_HOME","XDG_CONFIG_HOME","XDG_DATA_HOME","XDG\
|
|
483
|
+
_RUNTIME_DIR"]);import{createRequire as Ss}from"node:module";var Bf=256*1024;var Uf=600*1e3,Ff=1440*60*1e3,zf=Object.freeze({"ctrl-c":"",enter:"\r",escape:"\x1B",tab:" "});var Es=new URL("./../node_modules/@local/vibe64-execution/src/server/engines/terminalSessions.js",import.meta.url).href;var Gh=Ss(Es);import{randomUUID as Ts}from"node:crypto";var ag=Object.freeze(["daemon","owner-user","named-user","app"]);var cg=Object.freeze(["account","assistant","terminal","codex","github","github-api","source-editor","preview","output",
|
|
484
|
+
"deployment","health","workspace-cache","source"]),ug=Object.freeze(["capture","pty","detached"]),lg=Object.freeze(["utf\
|
|
485
|
+
8","base64"]),dg=Object.freeze(["session","project","preview","auth","deployment"]),pg=Object.freeze(["none","github-htt\
|
|
486
|
+
ps","github-token"]),Ps=Object.freeze(["assistant","browser","control","job","preview","service","terminal"]),Rs=Object.
|
|
487
|
+
freeze(["finite","interactive","service"]),mg=1e3*1e3*100;function G(e="",t="vibe64_command_request_invalid"){let o=new Error(e||"Invalid Vibe64 command request.");return o.code=
|
|
487
488
|
t,o}function uo(e="",t=[],o="",r="value"){let n=g(e)||o;if(!t.includes(n))throw G(`Unsupported Vibe64 command ${r}: ${n||
|
|
488
|
-
"(empty)"}.`,`vibe64_command_${r}_unsupported`);return n}function
|
|
489
|
+
"(empty)"}.`,`vibe64_command_${r}_unsupported`);return n}function As(e="capture"){return e==="detached"?"service":e==="pty"?"interactive":"finite"}function Is({mode:e="capture",
|
|
489
490
|
purpose:t="terminal"}={}){return t==="preview"?"preview":e==="pty"?"terminal":"job"}function V(e=""){let t=g(e);if(!t)return"";
|
|
490
491
|
if(!/^[A-Za-z0-9](?:[A-Za-z0-9._:-]{0,254}[A-Za-z0-9])?$/u.test(t))throw G(`Invalid Vibe64 execution identifier: ${t}.`,
|
|
491
|
-
"vibe64_execution_identifier_invalid");return t}function
|
|
492
|
-
inal",session:i={}}=t,s=Z(e),a=uo(s.kind,
|
|
492
|
+
"vibe64_execution_identifier_invalid");return t}function Cs(e={},t={}){let{mode:o="capture",project:r={},purpose:n="term\
|
|
493
|
+
inal",session:i={}}=t,s=Z(e),a=uo(s.kind,Ps,Is({mode:o,purpose:n}),"execution_kind"),c=uo(s.lifecycle,Rs,As(o),"executio\
|
|
493
494
|
n_lifecycle");if(o==="detached"&&c!=="service"||o==="pty"&&c!=="interactive"||o==="capture"&&c!=="finite")throw G(`Execu\
|
|
494
495
|
tion lifecycle ${c} is incompatible with command mode ${o}.`,"vibe64_execution_lifecycle_incompatible");let u=V(s.ownerId||
|
|
495
496
|
i.sessionId);if(c==="service"&&!u)throw G("Service execution requires a durable owner id.","vibe64_execution_owner_requi\
|
|
@@ -497,12 +498,12 @@ red");let l=s.resourceProfile;if(l!=null&&(!l||typeof l!="object"||Object.keys(l
|
|
|
497
498
|
vironment"].includes(d))||!/^[a-z0-9][a-z0-9_-]{0,127}$/u.test(l.key||"")||!/^[a-f0-9]{64}$/u.test(l.compatibilityKey||"")||
|
|
498
499
|
!["development","test","production"].includes(l.environment)))throw G("Invalid activity resource profile identity.","vib\
|
|
499
500
|
e64_resource_profile_invalid");return Object.freeze({...l?{resourceProfile:Object.freeze({...l})}:{},controlGenerationId:V(
|
|
500
|
-
s.controlGenerationId),...s.workflowId===void 0||s.workflowId===null||s.workflowId===""?{}:{workflowId:
|
|
501
|
-
id:
|
|
502
|
-
projectSlug:V(s.projectSlug||r.slug||r.projectSlug),sessionId:V(s.sessionId||i.sessionId)})}function
|
|
501
|
+
s.controlGenerationId),...s.workflowId===void 0||s.workflowId===null||s.workflowId===""?{}:{workflowId:Ns(s.workflowId)},
|
|
502
|
+
id:Ts(),kind:a,label:g(s.label),lifecycle:c,operationId:V(s.operationId),ownerId:u,parentExecutionId:V(s.parentExecutionId),
|
|
503
|
+
projectSlug:V(s.projectSlug||r.slug||r.projectSlug),sessionId:V(s.sessionId||i.sessionId)})}function Ns(e){if(typeof e!=
|
|
503
504
|
"string"||!/^[a-f0-9]{8}-[a-f0-9]{4}-[1-8][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/iu.test(e))throw G("Execution requ\
|
|
504
|
-
ires a valid managed workflow id.","vibe64_workflow_id_invalid");return e.toLowerCase()}var
|
|
505
|
-
|
|
505
|
+
ires a valid managed workflow id.","vibe64_workflow_id_invalid");return e.toLowerCase()}var fg=Object.freeze({normalizeExecutionDescriptor:Cs});var Tg=new URL("./../node_modules/@local/vibe64-execution/src/server/usageRecordingPreload.js",import.meta.url).href;import{fileURLToPath as Ls}from"node:url";var Ms=new URL("./../node_modules/@local/vibe64-execution/src/server/gitTurnCheckpoint.js",import.meta.url).href;var ey=Ls(new URL("./gitTurnCheckpointCommand.js",Ms)),ty=15*6e4,ry=512*1024*1024,oy=1024*1024*1024;var sy=Object.freeze(["LANG","LC_ALL","NO_PROXY","PATH","SSL_CERT_DIR","SSL_CERT_FILE","TZ"]);import{existsSync as Ds}from"node:fs";import Ne from"node:path";import lo from"node:process";var po="You'll be asked for your computer password. Nothing shows while you type.",Bs="curl -fsSL https://mise.run | sh",
|
|
506
|
+
my=Object.freeze({linux:"https://github.com/mobily-enterprises/vibe64/blob/main/docs/colleague-usage/set-up-linux.md",darwin:"\
|
|
506
507
|
https://github.com/mobily-enterprises/vibe64/blob/main/docs/colleague-usage/set-up-macos.md"}),xe=Object.freeze({claude:{
|
|
507
508
|
name:"Claude Code",run:[["claude"]],guideUrl:"https://code.claude.com/docs/en/setup",any:"curl -fsSL https://claude.ai/i\
|
|
508
509
|
nstall.sh | bash"},codex:{name:"Codex",run:[["codex"]],guideUrl:"https://github.com/openai/codex",any:"curl -fsSL https:\
|
|
@@ -527,23 +528,23 @@ rl -fsSL https://php.new/install/linux)"',brew:'/bin/bash -c "$(curl -fsSL https
|
|
|
527
528
|
ild tools",setup:"build-tools",run:[["cc","gcc","clang"],["make"]],guideUrl:"https://guides.rubyonrails.org/install_ruby\
|
|
528
529
|
_on_rails.html",detail:"Some packages compile native code, so they need a compiler and a few libraries.",apt:"sudo apt i\
|
|
529
530
|
nstall build-essential pkg-config libyaml-dev libssl-dev zlib1g-dev libpq-dev default-libmysqlclient-dev libgmp-dev",brew:"\
|
|
530
|
-
brew install pkg-config libyaml openssl@3 gmp"}}),
|
|
531
|
-
trim();return
|
|
532
|
-
return[...String(e.PATH||"").split(Ne.delimiter),...String(t||"").split(Ne.delimiter)].some(o=>Ne.isAbsolute(o)&&
|
|
533
|
-
o,"apt-get")))}function je({env:e,platform:t=lo.platform,systemPath:o}){return mo({platform:t,aptGet:t!=="darwin"&&
|
|
531
|
+
brew install pkg-config libyaml openssl@3 gmp"}}),Us=Object.freeze({composer:"php"});function It(e=""){let t=String(e||"").
|
|
532
|
+
trim();return Us[t]||t}function mo({platform:e=lo.platform,aptGet:t=!1}={}){return e==="darwin"?"brew":t?"apt":""}function Fs(e,t=At){
|
|
533
|
+
return[...String(e.PATH||"").split(Ne.delimiter),...String(t||"").split(Ne.delimiter)].some(o=>Ne.isAbsolute(o)&&Ds(Ne.join(
|
|
534
|
+
o,"apt-get")))}function je({env:e,platform:t=lo.platform,systemPath:o}){return mo({platform:t,aptGet:t!=="darwin"&&Fs(e,
|
|
534
535
|
o)})}function ke(e="",t={}){let{family:o="",mise:r=!1,xcode:n=!0}=t,i=xe[It(e)];if(!i)return null;if(o==="brew"&&!n&&["g\
|
|
535
536
|
it","cpp"].includes(It(e)))return{command:"xcode-select --install",sudo:!1,note:""};let s=i.any||i[o]||"";if(!s&&i.mise&&
|
|
536
|
-
(s=r?`mise use -g ${i.mise}`:`${
|
|
537
|
-
o==="apt"&&s.includes("--with-deps");return{command:s,sudo:a,note:a?po:""}}var
|
|
538
|
-
function
|
|
539
|
-
`)}function
|
|
537
|
+
(s=r?`mise use -g ${i.mise}`:`${Bs} && ~/.local/bin/mise use -g ${i.mise}`),!s)return null;let a=s.startsWith("sudo ")||
|
|
538
|
+
o==="apt"&&s.includes("--with-deps");return{command:s,sudo:a,note:a?po:""}}var fy=Object.freeze({SUDO_NOTE:po,localToolFamily:mo});function fo({env:e,platform:t,systemPath:o}){return ke("git",{family:je({env:e,platform:t,systemPath:o})})?.command||""}
|
|
539
|
+
function zs(e={}){return[e.error,e.stderr,e.output].filter(Boolean).join(`
|
|
540
|
+
`)}function Vs(e,t){let o=zs(e);if(/spawn(?:Sync)? git ENOENT|(?:^|\s)git: (?:command )?not found/mu.test(o)){let r=fo(t);
|
|
540
541
|
return{code:"vibe64_git_missing",installCommand:r,message:r?`Git isn't installed on this computer. Install it with: ${r}`:
|
|
541
542
|
"Git isn't installed on this computer. Install Git, then try again."}}return/unknown option [`']initial-branch/u.test(o)?
|
|
542
543
|
{code:"vibe64_git_too_old",installCommand:fo(t),message:"This Git is too old for Vibe64. Update Git to version 2.28 or n\
|
|
543
544
|
ewer, then try again."}:/gpg failed to sign|failed to sign the data|signing failed|couldn't (?:load|find) (?:public )?key|incorrect passphrase/iu.
|
|
544
545
|
test(o)?{code:"vibe64_git_signing_failed",installCommand:"",message:"Your Git is set to sign every commit, and signing d\
|
|
545
546
|
idn't work here. Vibe64 can't type a key passphrase for you. Make one signed commit in a terminal to check your key work\
|
|
546
|
-
s and is unlocked, then try again."}:null}var
|
|
547
|
+
s and is unlocked, then try again."}:null}var yy=Object.freeze({describeGitFailure:Vs});function ie(e){let t=String(e);return/^[A-Za-z0-9_./:=@,+-]+$/u.test(t)?t:`'${t.replaceAll("'","'\\''")}'`}import ho from"node:path";var go="backups.git",yo="vibe64-atomic",Gs=`backup_canonical_ref() {
|
|
547
548
|
vibe64_backup_repository="$1"
|
|
548
549
|
vibe64_source_repository="$2"
|
|
549
550
|
vibe64_source_ref="$3"
|
|
@@ -561,7 +562,7 @@ r "$vibe64_backup_repository" rev-parse --verify "$vibe64_backup_ref"
|
|
|
561
562
|
' "$vibe64_source_ref" >&2
|
|
562
563
|
return 1
|
|
563
564
|
fi
|
|
564
|
-
}`,
|
|
565
|
+
}`,Sy=`#!/bin/sh
|
|
565
566
|
set -eu
|
|
566
567
|
|
|
567
568
|
zero_object=0000000000000000000000000000000000000000
|
|
@@ -587,7 +588,7 @@ if [ "$(git --git-dir "$backup_repository" rev-parse --is-bare-repository 2>/dev
|
|
|
587
588
|
exit 1
|
|
588
589
|
fi
|
|
589
590
|
|
|
590
|
-
${
|
|
591
|
+
${Gs}
|
|
591
592
|
|
|
592
593
|
updates_file="$(mktemp "$repository_root/.pre-receive.XXXXXX")"
|
|
593
594
|
cleanup_updates_file() {
|
|
@@ -635,8 +636,8 @@ while read -r old_object _new_object ref_name; do
|
|
|
635
636
|
backup_canonical_ref "$backup_repository" "$git_dir" "$ref_name" "$old_object" "$backup_ref"
|
|
636
637
|
fi
|
|
637
638
|
done <"$updates_file"
|
|
638
|
-
`;function
|
|
639
|
-
url).href;var
|
|
639
|
+
`;function Hs(e=""){return e?ho.join(ho.dirname(e),go):""}var vy=Object.freeze({CANONICAL_REPOSITORY_PUSH_OPTION:yo,canonicalRepositoryBackupPath:Hs});var ky=new URL("./../node_modules/@local/vibe64-execution/src/server/runtime/agentPreviewBrowserWorkerSource.js",import.meta.
|
|
640
|
+
url).href;var qs=["Usage:"," vibe64-helper preview ensure [--target <target-id>] [--wait] [--json] [--timeout-ms <ms>]"," vibe64\
|
|
640
641
|
-helper preview targets [--json]"," vibe64-helper preview status [--json]"," vibe64-helper preview stop [--json]"," v\
|
|
641
642
|
ibe64-helper preview inspect-url"," vibe64-helper preview screenshot [--output <path>]"," vibe64-helper preview browse\
|
|
642
643
|
r ensure"," vibe64-helper preview browser eval < playwright-code.js"," vibe64-helper preview browser identity <default\
|
|
@@ -673,37 +674,37 @@ empty or unchanged logs between brief waits.","This is the canonical preview ser
|
|
|
673
674
|
on.","Do not start a duplicate copy of that application on another port.","A distinct secondary application explicitly r\
|
|
674
675
|
equested by the user, such as a reference app, may run separately without replacing this preview."].join(`
|
|
675
676
|
`)+`
|
|
676
|
-
`;import{fileURLToPath as
|
|
677
|
-
new URL("./engines/stdioBridge.js",
|
|
677
|
+
`;import{fileURLToPath as Zs}from"node:url";var Xs=new URL("./../node_modules/@local/vibe64-execution/src/server/conversationExecution.js",import.meta.url).href,Hy=Zs(
|
|
678
|
+
new URL("./engines/stdioBridge.js",Xs));var Xy=["skip=$1; version=$2; shift 2",'for name in "$@"; do',' found=$(command -v -- "$name" 2>/dev/null) || continue',
|
|
678
679
|
" case $found in /*) ;; *) continue ;; esac",' if [ -n "$skip" ]; then case $found in /usr/bin/*) continue ;; esac; fi',
|
|
679
680
|
` printf '%s\\n' "$found"`,' exec "$found" $version 2>&1',"done","exit 127"].join(`
|
|
680
|
-
`);var
|
|
681
|
-
e,Object.freeze({name:t,guideUrl:o,install:r})]})));import{execFile as
|
|
682
|
-
resolve(String(e||""));try{return t(o)}catch{return o}}function Oo({entrypointPath:e,argv:t=va.argv,realpath:o=
|
|
683
|
-
return r?
|
|
681
|
+
`);var Qs=Object.freeze(Object.fromEntries(["claude","codex","opencode"].map(e=>{let{name:t,guideUrl:o,any:r}=xe[e];return[
|
|
682
|
+
e,Object.freeze({name:t,guideUrl:o,install:r})]})));import{execFile as ea}from"node:child_process";import{promisify as ta}from"node:util";var n_=ta(ea);import _o from"node:path";var oa="runtime",na="open.json";function ia(e=""){let t=L(e);return t?_o.join(_o.resolve(t),oa,na):""}var eb=Object.freeze({projectRuntimeOpenStatePath:ia});function Nt(e=""){return String(e||"").trim().toLowerCase().replace(/[^a-z0-9_-]+/gu,"-").replace(/^-+|-+$/gu,"")}import{startServer as Aa}from"../server.bundle.mjs";import{realpathSync as Ea}from"node:fs";import Sa from"node:path";import va from"node:process";function vo(e,t){let o=Sa.
|
|
683
|
+
resolve(String(e||""));try{return t(o)}catch{return o}}function Oo({entrypointPath:e,argv:t=va.argv,realpath:o=Ea}){let r=t[1];
|
|
684
|
+
return r?vo(r,o)===vo(e,o):!1}var xt="__local__",jt="VIBE64_RUNTIME_NAMESPACE";var To="local";var Oa=new URL("./server.js",import.meta.url).href,Ia=Ra(Oa),Ca=3001,Ro=new Map([["--open",!0],["--open=true",!0],["--op\
|
|
684
685
|
en=1",!0],["--no-open",!1],["--open=false",!1],["--open=0",!1]]);function Ao(e,t){return e.some(o=>Ro.get(String(o||"").
|
|
685
|
-
trim().toLowerCase())===t)}function
|
|
686
|
-
function
|
|
687
|
-
rted Vibe64 startup argument: ${String(e||"").trim()}`);return t.code="vibe64_invalid_startup_argument",t}function
|
|
688
|
-
let r=String(e[t+1]||"").trim();if(!r)throw se(o);return r}function
|
|
689
|
-
length;r+=1){let n=String(e[r]||"").trim();if(!n)continue;let i=n.toLowerCase();if(!Ro.has(i)){if(i==="--project"){let s=
|
|
686
|
+
trim().toLowerCase())===t)}function Na(e=_.argv.slice(2)){return Ao(e,!0)}function xa(e=_.argv.slice(2)){return Ao(e,!1)}
|
|
687
|
+
function ja({entrypointPath:e=Ia,...t}={}){return Oo({entrypointPath:e,...t})}function se(e=""){let t=new Error(`Unsuppo\
|
|
688
|
+
rted Vibe64 startup argument: ${String(e||"").trim()}`);return t.code="vibe64_invalid_startup_argument",t}function ka(e,t,o){
|
|
689
|
+
let r=String(e[t+1]||"").trim();if(!r)throw se(o);return r}function $a(e=_.argv.slice(2)){let t="",o="";for(let r=0;r<e.
|
|
690
|
+
length;r+=1){let n=String(e[r]||"").trim();if(!n)continue;let i=n.toLowerCase();if(!Ro.has(i)){if(i==="--project"){let s=ka(
|
|
690
691
|
e,r,n);if(t||o)throw se(s);o=ae.resolve(s),t=$e(o),r+=1;continue}if(i.startsWith("--project=")){let s=n.slice(10).trim();
|
|
691
692
|
if(!s||t||o)throw se(n);o=ae.resolve(s),t=$e(o);continue}if(n.startsWith("-")||t||o)throw se(n);o=ae.resolve(n),t=$e(o)}}
|
|
692
|
-
return!t&&!o&&(o=_.cwd(),t=$e(o)),{openOnStart
|
|
693
|
-
2),{targetRoot:t=""}={}){return
|
|
694
|
-
e)))||"local-project"}async function
|
|
695
|
-
e)}catch(t){console.warn(`Could not open browser automatically: ${t.message}`)}}}function
|
|
693
|
+
return!t&&!o&&(o=_.cwd(),t=$e(o)),{openOnStart:Ma(e,{targetRoot:o}),startupSlug:t,targetRoot:o}}function Ma(e=_.argv.slice(
|
|
694
|
+
2),{targetRoot:t=""}={}){return xa(e)?!1:Na(e)?!0:!!String(t||"").trim()}function $e(e=""){return Nt(ae.basename(ae.resolve(
|
|
695
|
+
e)))||"local-project"}async function La(e){try{await et(e,{app:{name:P.browser,arguments:["--new-window"]}})}catch{try{await et(
|
|
696
|
+
e)}catch(t){console.warn(`Could not open browser automatically: ${t.message}`)}}}function Da({env:e=_.env,openOnStart:t=!1,
|
|
696
697
|
startupSlug:o="",targetRoot:r=""}={}){let n=!!String(e.PORT||"").trim();return{browserLifecycleShutdown:!0,port:t===!0&&
|
|
697
|
-
!n?
|
|
698
|
-
trim();return t||(e[jt]=xt,xt)}function
|
|
698
|
+
!n?Ca:void 0,runtimeMode:To,strictPort:n,startupSlug:o,targetRoot:r}}function Ba({env:e=_.env}={}){let t=String(e[jt]||"").
|
|
699
|
+
trim();return t||(e[jt]=xt,xt)}function Ua({env:e=_.env,exists:t=Ta,home:o=Po.homedir(),platform:r=_.platform}={}){if(r!==
|
|
699
700
|
"darwin"||String(e[Ot]||"").trim())return"";let n=Te({env:e,home:o,platform:"darwin"}),i=Te({env:e,home:o,platform:"linu\
|
|
700
701
|
x"});return t(n)||!t(i)?"":[`Vibe64 now keeps its data in ${n}.`,"Move your existing data there, then start Vibe64 again\
|
|
701
702
|
:",` mv ${ie(i)} ${ie(n)}`].join(`
|
|
702
|
-
`)}async function
|
|
703
|
-
trim())return"";let n=Te({env:e,home:t,platform:r});return await o(n,{recursive:!0,mode:448}),n}async function
|
|
704
|
-
if(e){console.error(e),_.exitCode=1;return}let{openOnStart:t,startupSlug:o,targetRoot:r}
|
|
705
|
-
|
|
703
|
+
`)}async function Fa({env:e=_.env,home:t=Po.homedir(),makeDirectory:o=Pa,platform:r=_.platform}={}){if(String(e[Ot]||"").
|
|
704
|
+
trim())return"";let n=Te({env:e,home:t,platform:r});return await o(n,{recursive:!0,mode:448}),n}async function za(){let e=Ua();
|
|
705
|
+
if(e){console.error(e),_.exitCode=1;return}let{openOnStart:t,startupSlug:o,targetRoot:r}=$a();Ba(),await Fa();let n=await Aa(
|
|
706
|
+
Da({openOnStart:t,startupSlug:o,targetRoot:r})),i=n.vibe64Url;if(i){console.log(`Vibe64 is running at ${i}`),t&&await La(
|
|
706
707
|
i);return}n.vibe64Listen?.transport==="socket"&&(console.log(`Vibe64 is listening on Unix socket ${n.vibe64Listen.socketPath}`),
|
|
707
|
-
t&&console.warn("Cannot open a browser for a Unix socket listener. Set VIBE64_PUBLIC_ORIGIN or PORT."))}
|
|
708
|
-
e=>{console.error("Failed to start Vibe64 server:",e),_.exitCode=1});export{
|
|
709
|
-
|
|
708
|
+
t&&console.warn("Cannot open a browser for a Unix socket listener. Set VIBE64_PUBLIC_ORIGIN or PORT."))}ja()&&za().catch(
|
|
709
|
+
e=>{console.error("Failed to start Vibe64 server:",e),_.exitCode=1});export{Ba as applyLocalCliRuntimeNamespace,ja as isDirectServerExecution,Ua as macosDataMoveMessage,$a as parseStartupArgs,
|
|
710
|
+
Fa as prepareLocalSystemRoot,Da as serverStartOptions,Na as shouldOpenBrowser};
|