vibe64 0.1.77 → 0.1.79
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 +1327 -1322
- package/bin/server.js +106 -104
- package/bin/upgrade-state.js +2736 -2754
- package/dist/assets/{GithubBrowserTabs-B2r19V0U.js → GithubBrowserTabs-CXjft59b.js} +1 -1
- package/dist/assets/GithubBrowserTabs-CXjft59b.js.br +0 -0
- package/dist/assets/GithubBrowserTabs-CXjft59b.js.gz +0 -0
- package/dist/assets/{LocalDatabaseServer-Ck9nZrGW.js → LocalDatabaseServer-BFzbm_N5.js} +1 -1
- package/dist/assets/LocalDatabaseServer-BFzbm_N5.js.br +0 -0
- package/dist/assets/LocalDatabaseServer-BFzbm_N5.js.gz +0 -0
- package/dist/assets/{Vibe64DashboardPageHeader-C4iTKeE0.js → Vibe64DashboardPageHeader-PKaMTKQo.js} +1 -1
- package/dist/assets/Vibe64DashboardPageHeader-PKaMTKQo.js.br +0 -0
- package/dist/assets/Vibe64DashboardPageHeader-PKaMTKQo.js.gz +0 -0
- package/dist/assets/{Vibe64DatabaseWorkspace-ChA-2QPU.js → Vibe64DatabaseWorkspace-6d4O_5R5.js} +1 -1
- package/dist/assets/Vibe64DatabaseWorkspace-6d4O_5R5.js.br +0 -0
- package/dist/assets/Vibe64DatabaseWorkspace-6d4O_5R5.js.gz +0 -0
- package/dist/assets/{Vibe64FileArea-DBEJsJSq.js → Vibe64FileArea-C18bdRqO.js} +1 -1
- package/dist/assets/Vibe64FileArea-C18bdRqO.js.br +0 -0
- package/dist/assets/Vibe64FileArea-C18bdRqO.js.gz +0 -0
- package/dist/assets/Vibe64OutputControls-OgqYYbq7.js +8 -0
- package/dist/assets/Vibe64OutputControls-OgqYYbq7.js.br +0 -0
- package/dist/assets/Vibe64OutputControls-OgqYYbq7.js.gz +0 -0
- package/dist/assets/{Vibe64OutputControls-aQCEvUL2.css → Vibe64OutputControls-gSUdkqME.css} +1 -1
- package/dist/assets/Vibe64OutputControls-gSUdkqME.css.br +0 -0
- package/dist/assets/Vibe64OutputControls-gSUdkqME.css.gz +0 -0
- package/dist/assets/{Vibe64RepositoryWorkspace-sT07hHPs.js → Vibe64RepositoryWorkspace-Cpb9aDYs.js} +1 -1
- package/dist/assets/Vibe64RepositoryWorkspace-Cpb9aDYs.js.br +0 -0
- package/dist/assets/Vibe64RepositoryWorkspace-Cpb9aDYs.js.gz +0 -0
- package/dist/assets/{Vibe64SessionFiles-Djef01EV.js → Vibe64SessionFiles-DJadIknz.js} +1 -1
- package/dist/assets/Vibe64SessionFiles-DJadIknz.js.br +0 -0
- package/dist/assets/Vibe64SessionFiles-DJadIknz.js.gz +0 -0
- package/dist/assets/{Vibe64SessionSourceEditor-CIGBLYYN.js → Vibe64SessionSourceEditor-C8XuUkUH.js} +1 -1
- package/dist/assets/Vibe64SessionSourceEditor-C8XuUkUH.js.br +0 -0
- package/dist/assets/Vibe64SessionSourceEditor-C8XuUkUH.js.gz +0 -0
- package/dist/assets/{Vibe64UiStoryboardView-CjkWoB8b.js → Vibe64UiStoryboardView-KzCGAvty.js} +1 -1
- package/dist/assets/Vibe64UiStoryboardView-KzCGAvty.js.br +0 -0
- package/dist/assets/Vibe64UiStoryboardView-KzCGAvty.js.gz +0 -0
- package/dist/assets/{_pageId_-BTjeqgTN.js → _pageId_-Dz7wuvcV.js} +1 -1
- package/dist/assets/{_sessionId_-C7Jh2bL4.js → _sessionId_-UOSJikRr.js} +1 -1
- package/dist/assets/_sessionId_-UOSJikRr.js.br +0 -0
- package/dist/assets/_sessionId_-UOSJikRr.js.gz +0 -0
- package/dist/assets/{_sessionTool_-DITdXCS4.js → _sessionTool_-SN6SNAQM.js} +1 -1
- package/dist/assets/{access-DIaPNdxr.js → access-Ba7aprTh.js} +1 -1
- package/dist/assets/access-Ba7aprTh.js.br +0 -0
- package/dist/assets/access-Ba7aprTh.js.gz +0 -0
- package/dist/assets/{app-mELSmS67.js → app-nvpa3ah6.js} +1 -1
- package/dist/assets/app-nvpa3ah6.js.br +0 -0
- package/dist/assets/app-nvpa3ah6.js.gz +0 -0
- package/dist/assets/{changes-DlxKdjdP.js → changes-WQZLBU3x.js} +1 -1
- package/dist/assets/{client-CLpGzGwX.js → client-B5r45NvF.js} +2 -2
- package/dist/assets/client-B5r45NvF.js.br +0 -0
- package/dist/assets/client-B5r45NvF.js.gz +0 -0
- package/dist/assets/{client-CL02nP02.js → client-EaJLXb4V.js} +2 -2
- package/dist/assets/client-EaJLXb4V.js.br +0 -0
- package/dist/assets/client-EaJLXb4V.js.gz +0 -0
- package/dist/assets/{dashboard-km-kuDid.js → dashboard-S0qg7Ai6.js} +1 -1
- package/dist/assets/{english-definitions-CMICWgdF.js → english-definitions-B9nc8s8Y.js} +1 -1
- package/dist/assets/english-definitions-B9nc8s8Y.js.br +0 -0
- package/dist/assets/english-definitions-B9nc8s8Y.js.gz +0 -0
- package/dist/assets/{env-DjkxkxdX.js → env-Dqyw_NCv.js} +1 -1
- package/dist/assets/env-Dqyw_NCv.js.br +0 -0
- package/dist/assets/env-Dqyw_NCv.js.gz +0 -0
- package/dist/assets/{error-C7q1-2bC.js → error-DkUVRs7I.js} +1 -1
- package/dist/assets/error-DkUVRs7I.js.br +0 -0
- package/dist/assets/error-DkUVRs7I.js.gz +0 -0
- package/dist/assets/{fileTypes-Dbn0qwKS.js → fileTypes-Dp5WZ-_A.js} +1 -1
- package/dist/assets/fileTypes-Dp5WZ-_A.js.br +0 -0
- package/dist/assets/fileTypes-Dp5WZ-_A.js.gz +0 -0
- package/dist/assets/{health-BwJ6Z251.js → health-BkO5CcRR.js} +1 -1
- package/dist/assets/health-BkO5CcRR.js.br +0 -0
- package/dist/assets/health-BkO5CcRR.js.gz +0 -0
- package/dist/assets/{history-D2TywQVv.js → history-DanS1uI3.js} +1 -1
- package/dist/assets/history-DanS1uI3.js.br +0 -0
- package/dist/assets/history-DanS1uI3.js.gz +0 -0
- package/dist/assets/{index-D14nUmm7.js → index-CeCIadYg.js} +4 -4
- package/dist/assets/index-CeCIadYg.js.br +0 -0
- package/dist/assets/index-CeCIadYg.js.gz +0 -0
- package/dist/assets/{integrations-BZFXW2Cp.js → integrations-Dh4ViP8t.js} +96 -10
- package/dist/assets/integrations-Dh4ViP8t.js.br +0 -0
- package/dist/assets/integrations-Dh4ViP8t.js.gz +0 -0
- package/dist/assets/{issues-CLvbBTek.js → issues-D3ZjHBeZ.js} +1 -1
- package/dist/assets/issues-D3ZjHBeZ.js.br +0 -0
- package/dist/assets/issues-D3ZjHBeZ.js.gz +0 -0
- package/dist/assets/{learning-DwytxEXC.js → learning-C_3lMmYJ.js} +1 -1
- package/dist/assets/{packages-BeiF8W7l.js → packages-CPSq4jBh.js} +1 -1
- package/dist/assets/packages-CPSq4jBh.js.br +0 -0
- package/dist/assets/packages-CPSq4jBh.js.gz +0 -0
- package/dist/assets/{pages-BIRQk4b8.js → pages-C-c5itHs.js} +1 -1
- package/dist/assets/{pages-BnAyUdL4.js → pages-D91yb6IJ.js} +1 -1
- package/dist/assets/pages-D91yb6IJ.js.br +0 -0
- package/dist/assets/pages-D91yb6IJ.js.gz +0 -0
- package/dist/assets/{project-GnljGud1.js → project-DTIrUrUg.js} +11 -11
- package/dist/assets/project-DTIrUrUg.js.br +0 -0
- package/dist/assets/project-DTIrUrUg.js.gz +0 -0
- package/dist/assets/{project-files-e4-Q65vT.js → project-files-Djr-58SN.js} +1 -1
- package/dist/assets/project-files-Djr-58SN.js.br +0 -0
- package/dist/assets/project-files-Djr-58SN.js.gz +0 -0
- package/dist/assets/{project-W_VltXAt.css → project-fwVeri07.css} +1 -1
- package/dist/assets/project-fwVeri07.css.br +0 -0
- package/dist/assets/project-fwVeri07.css.gz +0 -0
- package/dist/assets/{project-shared-ShellOutlet-DKYDipmC.js → project-shared-ShellOutlet-Pj_fRyAX.js} +1 -1
- package/dist/assets/project-shared-ShellOutlet-Pj_fRyAX.js.br +0 -0
- package/dist/assets/project-shared-ShellOutlet-Pj_fRyAX.js.gz +0 -0
- package/dist/assets/{project-shared-VBottomSheet-BSE28ENQ.js → project-shared-VBottomSheet-BSLhkh3o.js} +1 -1
- package/dist/assets/project-shared-VBottomSheet-BSLhkh3o.js.br +0 -0
- package/dist/assets/project-shared-VBottomSheet-BSLhkh3o.js.gz +0 -0
- package/dist/assets/{project-shared-VToolbar-CrezJP9z.js → project-shared-VToolbar-BYx2aRBU.js} +1 -1
- package/dist/assets/project-shared-VToolbar-BYx2aRBU.js.br +0 -0
- package/dist/assets/project-shared-VToolbar-BYx2aRBU.js.gz +0 -0
- package/dist/assets/{project-shared-pageNames-6Jz0BfbS.js → project-shared-pageNames-D7IBGzQh.js} +1 -1
- package/dist/assets/project-shared-pageNames-D7IBGzQh.js.br +0 -0
- package/dist/assets/project-shared-pageNames-D7IBGzQh.js.gz +0 -0
- package/dist/assets/{pull-requests-DH9gWw10.js → pull-requests-DWmXOwB8.js} +1 -1
- package/dist/assets/pull-requests-DWmXOwB8.js.br +0 -0
- package/dist/assets/pull-requests-DWmXOwB8.js.gz +0 -0
- package/dist/assets/{repository-BNltUuvb.js → repository-CNSRmrFd.js} +1 -1
- package/dist/assets/{session-Ck9aH4Yl.js → session-BITnnyzW.js} +1 -1
- package/dist/assets/session-BITnnyzW.js.br +0 -0
- package/dist/assets/session-BITnnyzW.js.gz +0 -0
- package/dist/assets/{settings-D8Ofbk56.js → settings-CkoP7vBl.js} +1 -1
- package/dist/assets/settings-CkoP7vBl.js.br +0 -0
- package/dist/assets/settings-CkoP7vBl.js.gz +0 -0
- package/dist/assets/{useArchivedVibe64Sessions-LIZjeLbd.js → useArchivedVibe64Sessions-CDKBzS4q.js} +1 -1
- package/dist/assets/useArchivedVibe64Sessions-CDKBzS4q.js.br +0 -0
- package/dist/assets/useArchivedVibe64Sessions-CDKBzS4q.js.gz +0 -0
- package/dist/assets/{vibe64AttachmentDownload-1_XfvfYp.js → vibe64AttachmentDownload-BPNgZodV.js} +1 -1
- package/dist/assets/{vibe64SavedEnvValues-Bs7r4xWE.js → vibe64SavedEnvValues-BDBfgAh7.js} +1 -1
- package/dist/assets/{vue-flow-core-iwGljzru.js → vue-flow-core-S4cIQeQZ.js} +1 -1
- package/dist/assets/vue-flow-core-S4cIQeQZ.js.br +0 -0
- package/dist/assets/vue-flow-core-S4cIQeQZ.js.gz +0 -0
- package/dist/index.html +2 -2
- package/docs/colleague-usage/auto-workflow.md +3 -2
- package/docs/colleague-usage/development-env.md +2 -2
- package/docs/colleague-usage/plans.md +35 -13
- package/docs/colleague-usage/preview-starting-application.md +6 -0
- package/docs/colleague-usage/preview-stop-and-restart.md +51 -0
- package/docs/colleague-usage/preview.md +10 -37
- package/docs/colleague-usage/project-language-tools.md +8 -2
- package/docs/colleague-usage/staging-data-section.md +242 -0
- package/node_modules/@jskit-ai/assistant-core/CHANGELOG.md +2 -0
- 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/connectors-catalog/package.json +1 -1
- package/node_modules/@jskit-ai/payments-core/CHANGELOG.md +5 -0
- package/node_modules/@jskit-ai/payments-core/README.md +72 -8
- package/node_modules/@jskit-ai/payments-core/contracts/configuration.schema.json +56 -1
- package/node_modules/@jskit-ai/payments-core/contracts/conformance.json +484 -0
- package/node_modules/@jskit-ai/payments-core/locales/en.json +17 -5
- package/node_modules/@jskit-ai/payments-core/package.json +2 -1
- package/node_modules/@local/vibe64-execution/src/host/execHelper.js +545 -542
- package/node_modules/@local/vibe64-execution/src/server/gitTurnCheckpointCommand.js +135 -127
- package/node_modules/@local/vibe64-execution/src/server/hostProfile.js +18 -11
- package/node_modules/@local/vibe64-genesis/README.md +25 -0
- package/node_modules/@local/vibe64-genesis/bin/vibe64-genesis-host-context +39 -39
- package/node_modules/@local/vibe64-genesis/package.json +2 -1
- package/node_modules/@local/vibe64-genesis/src/server/agentSpecs.js +261 -140
- package/node_modules/@local/vibe64-genesis/src/server/index.js +619 -520
- package/node_modules/@local/vibe64-genesis/src/server/packaging.js +49 -48
- package/node_modules/@local/vibe64-runtime/src/server/codexAppServerProcess.js +82 -82
- package/node_modules/@local/vibe64-source-editor/src/server/searchIndexWorker.js +36 -36
- package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +580 -570
- package/package.json +7 -7
- package/server.bundle.mjs +32680 -32667
- package/dist/assets/GithubBrowserTabs-B2r19V0U.js.br +0 -0
- package/dist/assets/GithubBrowserTabs-B2r19V0U.js.gz +0 -0
- package/dist/assets/LocalDatabaseServer-Ck9nZrGW.js.br +0 -0
- package/dist/assets/LocalDatabaseServer-Ck9nZrGW.js.gz +0 -0
- package/dist/assets/Vibe64DashboardPageHeader-C4iTKeE0.js.br +0 -0
- package/dist/assets/Vibe64DashboardPageHeader-C4iTKeE0.js.gz +0 -0
- package/dist/assets/Vibe64DatabaseWorkspace-ChA-2QPU.js.br +0 -0
- package/dist/assets/Vibe64DatabaseWorkspace-ChA-2QPU.js.gz +0 -0
- package/dist/assets/Vibe64FileArea-DBEJsJSq.js.br +0 -0
- package/dist/assets/Vibe64FileArea-DBEJsJSq.js.gz +0 -0
- package/dist/assets/Vibe64OutputControls-DpFdKIO2.js +0 -8
- package/dist/assets/Vibe64OutputControls-DpFdKIO2.js.br +0 -0
- package/dist/assets/Vibe64OutputControls-DpFdKIO2.js.gz +0 -0
- package/dist/assets/Vibe64OutputControls-aQCEvUL2.css.br +0 -0
- package/dist/assets/Vibe64OutputControls-aQCEvUL2.css.gz +0 -0
- package/dist/assets/Vibe64RepositoryWorkspace-sT07hHPs.js.br +0 -0
- package/dist/assets/Vibe64RepositoryWorkspace-sT07hHPs.js.gz +0 -0
- package/dist/assets/Vibe64SessionFiles-Djef01EV.js.br +0 -0
- package/dist/assets/Vibe64SessionFiles-Djef01EV.js.gz +0 -0
- package/dist/assets/Vibe64SessionSourceEditor-CIGBLYYN.js.br +0 -0
- package/dist/assets/Vibe64SessionSourceEditor-CIGBLYYN.js.gz +0 -0
- package/dist/assets/Vibe64UiStoryboardView-CjkWoB8b.js.br +0 -0
- package/dist/assets/Vibe64UiStoryboardView-CjkWoB8b.js.gz +0 -0
- package/dist/assets/_sessionId_-C7Jh2bL4.js.br +0 -0
- package/dist/assets/_sessionId_-C7Jh2bL4.js.gz +0 -0
- package/dist/assets/access-DIaPNdxr.js.br +0 -0
- package/dist/assets/access-DIaPNdxr.js.gz +0 -0
- package/dist/assets/app-mELSmS67.js.br +0 -0
- package/dist/assets/app-mELSmS67.js.gz +0 -0
- package/dist/assets/client-CL02nP02.js.br +0 -0
- package/dist/assets/client-CL02nP02.js.gz +0 -0
- package/dist/assets/client-CLpGzGwX.js.br +0 -0
- package/dist/assets/client-CLpGzGwX.js.gz +0 -0
- package/dist/assets/english-definitions-CMICWgdF.js.br +0 -0
- package/dist/assets/english-definitions-CMICWgdF.js.gz +0 -0
- package/dist/assets/env-DjkxkxdX.js.br +0 -0
- package/dist/assets/env-DjkxkxdX.js.gz +0 -0
- package/dist/assets/error-C7q1-2bC.js.br +0 -0
- package/dist/assets/error-C7q1-2bC.js.gz +0 -0
- package/dist/assets/fileTypes-Dbn0qwKS.js.br +0 -0
- package/dist/assets/fileTypes-Dbn0qwKS.js.gz +0 -0
- package/dist/assets/health-BwJ6Z251.js.br +0 -0
- package/dist/assets/health-BwJ6Z251.js.gz +0 -0
- package/dist/assets/history-D2TywQVv.js.br +0 -0
- package/dist/assets/history-D2TywQVv.js.gz +0 -0
- package/dist/assets/index-D14nUmm7.js.br +0 -0
- package/dist/assets/index-D14nUmm7.js.gz +0 -0
- package/dist/assets/integrations-BZFXW2Cp.js.br +0 -0
- package/dist/assets/integrations-BZFXW2Cp.js.gz +0 -0
- package/dist/assets/issues-CLvbBTek.js.br +0 -0
- package/dist/assets/issues-CLvbBTek.js.gz +0 -0
- package/dist/assets/packages-BeiF8W7l.js.br +0 -0
- package/dist/assets/packages-BeiF8W7l.js.gz +0 -0
- package/dist/assets/pages-BnAyUdL4.js.br +0 -3
- package/dist/assets/pages-BnAyUdL4.js.gz +0 -0
- package/dist/assets/project-GnljGud1.js.br +0 -0
- package/dist/assets/project-GnljGud1.js.gz +0 -0
- package/dist/assets/project-W_VltXAt.css.br +0 -0
- package/dist/assets/project-W_VltXAt.css.gz +0 -0
- package/dist/assets/project-files-e4-Q65vT.js.br +0 -0
- package/dist/assets/project-files-e4-Q65vT.js.gz +0 -0
- package/dist/assets/project-shared-ShellOutlet-DKYDipmC.js.br +0 -0
- package/dist/assets/project-shared-ShellOutlet-DKYDipmC.js.gz +0 -0
- package/dist/assets/project-shared-VBottomSheet-BSE28ENQ.js.br +0 -0
- package/dist/assets/project-shared-VBottomSheet-BSE28ENQ.js.gz +0 -0
- package/dist/assets/project-shared-VToolbar-CrezJP9z.js.br +0 -0
- package/dist/assets/project-shared-VToolbar-CrezJP9z.js.gz +0 -0
- package/dist/assets/project-shared-pageNames-6Jz0BfbS.js.br +0 -0
- package/dist/assets/project-shared-pageNames-6Jz0BfbS.js.gz +0 -0
- package/dist/assets/pull-requests-DH9gWw10.js.br +0 -0
- package/dist/assets/pull-requests-DH9gWw10.js.gz +0 -0
- package/dist/assets/session-Ck9aH4Yl.js.br +0 -0
- package/dist/assets/session-Ck9aH4Yl.js.gz +0 -0
- package/dist/assets/settings-D8Ofbk56.js.br +0 -0
- package/dist/assets/settings-D8Ofbk56.js.gz +0 -0
- package/dist/assets/useArchivedVibe64Sessions-LIZjeLbd.js.br +0 -0
- package/dist/assets/useArchivedVibe64Sessions-LIZjeLbd.js.gz +0 -0
- package/dist/assets/vue-flow-core-iwGljzru.js.br +0 -0
- package/dist/assets/vue-flow-core-iwGljzru.js.gz +0 -0
|
@@ -1,114 +1,173 @@
|
|
|
1
1
|
import { createRequire as __vibe64CreateRequire } from 'node:module';const require=__vibe64CreateRequire(import.meta.url);
|
|
2
|
-
import{ARCHITECTURE_OBSERVATIONS_SCHEMA as
|
|
3
|
-
or",this.code=n,
|
|
2
|
+
import{ARCHITECTURE_OBSERVATIONS_SCHEMA as un}from"genesis-compiler";import K from"node:path";var Y=class extends Error{constructor(n,t,s=void 0){super(t),this.name="Vibe64StackOperationErr\
|
|
3
|
+
or",this.code=n,s!==void 0&&(this.details=s)}},pe=Object.freeze({VIBE64_WORKSPACE_SETUP_INVALID:"workspace-setup",VIBE64_OUTPUTS_INVALID:"\
|
|
4
4
|
outputs",VIBE64_DEPLOYMENT_INVALID:"deployment",VIBE64_PACKAGING_INVALID:"packaging",VIBE64_RESOURCE_ESTIMATES_INVALID:"\
|
|
5
5
|
resource-estimates",VIBE64_CONNECTED_DEVELOPMENT_INVALID:"connected-development",VIBE64_PROJECT_SERVICES_INVALID:"projec\
|
|
6
6
|
t-services",VIBE64_INTEGRATION_SETUP_INVALID:"integration-setup",VIBE64_ARCHITECTURE_INSPECTION_INVALID:"architecture-in\
|
|
7
|
-
spection",VIBE64_ARCHITECTURE_LAYOUT_INVALID:"architecture-layout"}),
|
|
8
|
-
function
|
|
9
|
-
n.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
e)&&!
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
spection",VIBE64_ARCHITECTURE_LAYOUT_INVALID:"architecture-layout",VIBE64_STAGING_DATA_INVALID:"staging-data"}),ut=/ Exact grammar: vibe64-helper spec [a-z-]+\.$/u;
|
|
8
|
+
function lt(e,n){let t=pe[e],s=String(n).replace(ut,"");return t?`${s} Exact grammar: vibe64-helper spec ${t}.`:s}function y(e,n,t){
|
|
9
|
+
return`Unknown ${e}: ${n}. Use one of: ${t.join("; ")}.`}function r(e,n,t,s,a={}){throw new Y(e,lt(e,t),{path:n,...s===void 0?
|
|
10
|
+
{}:{line:s},...a})}function pt(e){let n=[...String(e||"").matchAll(/`([^`\r\n]+)`/gu)];return n.length===0||n.map(t=>t[0]).join(" ")!==e?null:
|
|
11
|
+
n.map(t=>t[1])}function f(e,n,t,s,a,i={}){let{count:o,maximum:l=64}=i,m=pt(e);if(!m||m.length>l||o!==void 0&&m.length!==
|
|
12
|
+
o||m.some(w=>w.length>4096||/[\0\r\n]/u.test(w))){let w=o===void 0?"separate non-empty":`exactly ${o}`;r(n,t,`${s} must \
|
|
13
|
+
contain ${w} backticked ${o===1?"value":"values"}.`,a)}return m}function dt(e=""){return typeof e=="string"&&!!e&&!/[\s\0{}]/u.
|
|
14
|
+
test(e)&&!K.isAbsolute(e)&&!e.split(/[\\/]/u).includes("..")}function T(e,n,t,s,a){let i=f(e,n,t,s,a);return dt(i[0])||r(
|
|
15
|
+
n,t,`${s} must begin with a safe executable.`,a),i}function mt(e=""){return typeof e=="string"&&!!e&&!/[\0\r\n\\]/u.test(
|
|
16
|
+
e)&&!K.posix.isAbsolute(e)&&K.posix.normalize(e)===e&&!e.split("/").some(n=>!n||n==="..")}function E(e,n,t,s,a,i={}){let{
|
|
17
|
+
allowRoot:o=!0}=i;return(!mt(e)||!o&&e===".")&&r(n,t,`${s} must be a canonical project-relative path.`,a),e}function v(e,n,t,s,a){let i=f(e,n,t,s,a);return i.some(o=>!/^[a-z0-9]+(?:-[a-z0-9]+)*$/u.test(o))&&r(n,t,`${s} must use \
|
|
18
|
+
lowercase technology ids separated into backticked values.`,a),new Set(i).size!==i.length&&r(n,t,`${s} contains a duplic\
|
|
19
|
+
ate technology id.`,a),i}var X=/^[A-Za-z][A-Za-z0-9_-]{0,39}$/u;function g(e=[]){let n=e.map(t=>t.trim()).filter(Boolean);return n.length===1&&n[0]==="- Nothing."}var hn=Object.freeze(
|
|
20
|
+
{SPEC_BY_ERROR_CODE:pe});var de="- Recreate on restore: ",me="- Generated secrets: ",he="- Setup code: ",P="- Sandbox allows: ",U="- Packages: ";var G="- Instances: up to ";var B=Object.freeze(["fuse","gvisor"]);var fe=Object.freeze({APP_ENV:"Deployment never sets APP_ENV: the host gives every step the environment it deploys to. R\
|
|
19
21
|
emove APP_ENV from Deployment.",SIDE_EFFECTS:"SIDE_EFFECTS was replaced by APP_ENV, which the host gives every step. Rem\
|
|
20
22
|
ove SIDE_EFFECTS from Deployment.",STAGING_REACHES_REAL_PEOPLE:"Deployment never sets STAGING_REACHES_REAL_PEOPLE: the h\
|
|
21
23
|
ost gives it to a Staging only while the project's owner marks that real people use that Staging. Remove STAGING_REACHES\
|
|
22
|
-
_REAL_PEOPLE from Deployment."}),
|
|
23
|
-
e.slice(1)),
|
|
24
|
-
\`NAME\``,`${
|
|
25
|
-
rns `200`",`- ${
|
|
26
|
-
["local folder","own bucket"]),
|
|
24
|
+
_REAL_PEOPLE from Deployment."}),Ee=Object.freeze({prepare:0,build:1,migrate:2,serve:3}),D=Object.keys(Ee).map(e=>e[0].toUpperCase()+
|
|
25
|
+
e.slice(1)),M=Object.freeze(["- Workdir: `path`","- Runtimes: `runtime`...",`${de}\`glob\`...`,`${me}\`NAME\`...`,`${he}\
|
|
26
|
+
\`NAME\``,`${P}${B.map(e=>`\`${e}\``).join(" ")}`,`${U}\`package\`...`,`${G}\`count\``,"- Ready when: `GET` `/path` retu\
|
|
27
|
+
rns `200`",`- ${D.join("|")} \`label\`: \`command\` \`argument\`...`]);var In=Object.freeze(["public","internal"]),On=Object.freeze({"any instance":"any","each instance":"each"});var Z=e=>new RegExp(`^- ${e}: \`([^\`\\r\\n]*)\`$`,"u"),kn=Z("Exposure"),Nn=Z("Reached"),An=Z("Development"),wt=Object.freeze(
|
|
28
|
+
["local folder","own bucket"]),Dn=Object.freeze(["APP_ENV","HOST","PORT","APP_PUBLIC_URL","TRUSTED_PROXIES"]);var J=Object.freeze(["### Service `id`: summary","### Resource `id`"]),Q=Object.freeze(["- Exposure: `public` or `intern\
|
|
27
29
|
al`","- Serve `label`: `command` `argument`...","- Ready when: `GET` `/path` returns `200`","- Instances: `min` to `max`",
|
|
28
30
|
"- Needs at least: `N` vCPU, `N` GiB memory","- Production: `N` instances","- Reached: `any instance` or `each instance`",
|
|
29
|
-
"- Reaches: `service` as `SETTING`","- Setting `NAME`: `value`",`${
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
de"]);var
|
|
31
|
+
"- Reaches: `service` as `SETTING`","- Setting `NAME`: `value`",`${U}\`package\`...`,`${P}${B.map(e=>`\`${e}\``).join(" ")}`]),
|
|
32
|
+
ee=Object.freeze([`- Development: ${wt.map(e=>`\`${e}\``).join(" or ")}`]),Cn=Object.freeze(M.filter(e=>![P,G,"- Ready w\
|
|
33
|
+
hen: "].some(n=>e.startsWith(n))).map(e=>e.replace(`|${D.at(-1)} `," ")));var be="vibe64.application-deployment.v2";var ye="Deployment";var Se="vibe64.packaging.v1",_e="Packaging",Zn=Object.freeze(["genesis",".genesis",".agents",".claude",".codex",".openco\
|
|
34
|
+
de"]);var Tt=Object.freeze({npm:Object.freeze({entries:["workdir","runtimes","prepare","build","environment","versionFrom"],required:[
|
|
33
35
|
"versionFrom"],versionSources:["package.json","external"]}),"python-dist":Object.freeze({entries:["workdir","runtimes","\
|
|
34
36
|
prepare","build","environment","output","versionFrom"],required:["build","output","versionFrom"],versionSources:["pyproj\
|
|
35
37
|
ect.toml","external"]}),"web-bundle":Object.freeze({entries:["workdir","runtimes","prepare","build","environment","outpu\
|
|
36
38
|
t"],required:["build","output"],versionSources:[]}),capacitor:Object.freeze({entries:["workdir","content","platforms","a\
|
|
37
39
|
pplicationId","name","icon","versionFrom","deepLinkSchemeFrom","appLinkDomainsFrom","permission"],required:["content","p\
|
|
38
|
-
latforms","applicationId","name","icon","versionFrom"],versionSources:["package.json","external"]})}),
|
|
39
|
-
keys(
|
|
40
|
-
\``).join(" | "),
|
|
41
|
-
`"],["- Runtimes: ","runtimes","- Runtimes: `runtime`..."],["- Output: ","output","- Output: `path`"],["- Version from
|
|
42
|
-
"versionFrom",`- Version from: ${
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
from: ","appLinkDomainsFrom","- App link domains from: `ENV_NAME`"]]),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
{packer:"Packer",workdir:"Workdir",runtimes:"Runtimes",prepare:"Prepare",build:"Build",environment:"Environment",
|
|
49
|
-
Output",versionFrom:"Version from",content:"Content",platforms:"Platforms",applicationId:"Id",name:"Name",icon:"
|
|
50
|
-
Deep link scheme from",appLinkDomainsFrom:"App link domains from",permission:"Permission"});var
|
|
51
|
-
enesis/stack.md#Architecture inspection",
|
|
52
|
-
dir","argv","timeout","maxBuffer"]),
|
|
53
|
-
"`path`"],Command:["argv","`command` `argument`..."],"Timeout seconds":["timeout",`\`1\` through \`${
|
|
54
|
-
bytes":["maxBuffer",`\`1\` through \`${
|
|
55
|
-
equiredFiles","`path`... (optional)"],"Preview locator":["previewLocator","`path` (optional .js file)"]}),
|
|
56
|
-
`^- (${Object.keys(
|
|
57
|
-
ture inspection requires exact Stack section lines."),
|
|
58
|
-
i[
|
|
59
|
-
let
|
|
60
|
-
d.",
|
|
61
|
-
let
|
|
62
|
-
of: ${
|
|
63
|
-
t,"Inspector runtime",
|
|
64
|
-
quiredFiles")i[
|
|
65
|
-
dir")i[
|
|
66
|
-
imeout"?
|
|
67
|
-
|
|
68
|
-
e,
|
|
69
|
-
"layer","libraries","support"]);function
|
|
70
|
-
e)||
|
|
71
|
-
!o.purpose||!o.subsystems.length)&&
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
(!o||!
|
|
75
|
-
if(
|
|
76
|
-
ce.",m+1),i.add(h),o.subsystems.push({root:h})}else{let h=
|
|
77
|
-
1),h==="kind"
|
|
78
|
-
|
|
40
|
+
latforms","applicationId","name","icon","versionFrom"],versionSources:["package.json","external"]})}),se=Object.freeze(Object.
|
|
41
|
+
keys(Tt)),vt=Object.freeze(["android"]),Rt=Object.freeze(["package.json","pyproject.toml","external"]),ne=e=>e.map(n=>`\`${n}\
|
|
42
|
+
\``).join(" | "),C=Object.freeze([["- Packer: ","packer",`- Packer: ${ne(se)}`],["- Workdir: ","workdir","- Workdir: `pa\
|
|
43
|
+
th`"],["- Runtimes: ","runtimes","- Runtimes: `runtime`..."],["- Output: ","output","- Output: `path`"],["- Version from\
|
|
44
|
+
: ","versionFrom",`- Version from: ${ne(Rt)}`],["- Platforms: ","platforms",`- Platforms: ${ne(vt)}...`],["- Id: ","appl\
|
|
45
|
+
icationId","- Id: `reverse.dns.id`"],["- Name: ","name","- Name: `Display name`"],["- Icon: ","icon","- Icon: `path/to/i\
|
|
46
|
+
con-1024.png`"],["- Deep link scheme from: ","deepLinkSchemeFrom","- Deep link scheme from: `ENV_NAME`"],["- App link do\
|
|
47
|
+
mains from: ","appLinkDomainsFrom","- App link domains from: `ENV_NAME`"]]),we="### Package `id`: Label",Te=Object.freeze(
|
|
48
|
+
[C[0][2],C[1][2],C[2][2],"- Prepare|Build `label`: `command` `argument`...","- Environment `NAME`: `value`",C[3][2],C[4][2],
|
|
49
|
+
"- Content: package `web-bundle-id`",...C.slice(5).map(([,,e])=>e),"- Permission `id`: User-facing reason."]),Jn=Object.
|
|
50
|
+
freeze({packer:"Packer",workdir:"Workdir",runtimes:"Runtimes",prepare:"Prepare",build:"Build",environment:"Environment",
|
|
51
|
+
output:"Output",versionFrom:"Version from",content:"Content",platforms:"Platforms",applicationId:"Id",name:"Name",icon:"\
|
|
52
|
+
Icon",deepLinkSchemeFrom:"Deep link scheme from",appLinkDomainsFrom:"App link domains from",permission:"Permission"});var ve="vibe64.architecture-inspection.v1",Re="Architecture inspection",d="VIBE64_ARCHITECTURE_INSPECTION_INVALID",It="g\
|
|
53
|
+
enesis/stack.md#Architecture inspection",Ie=120,Oe=64*1024*1024,ke=64*1024,Ot=Object.freeze(["runtimeRequirements","work\
|
|
54
|
+
dir","argv","timeout","maxBuffer"]),L=Object.freeze({Runtime:["runtimeRequirements","`runtime`..."],Directory:["workdir",
|
|
55
|
+
"`path`"],Command:["argv","`command` `argument`..."],"Timeout seconds":["timeout",`\`1\` through \`${Ie}\``],"Max output\
|
|
56
|
+
bytes":["maxBuffer",`\`1\` through \`${Oe}\``],"Entry files":["entryFiles","`path`... (optional)"],"Required files":["r\
|
|
57
|
+
equiredFiles","`path`... (optional)"],"Preview locator":["previewLocator","`path` (optional .js file)"]}),kt=new RegExp(
|
|
58
|
+
`^- (${Object.keys(L).join("|")}): (.+)$`,"u");function Nt(e,n={}){let{path:t=It}=n;if(Array.isArray(e)||r(d,t,"Architec\
|
|
59
|
+
ture inspection requires exact Stack section lines."),g(e))return[];let s=[],a=new Set,i;function o(){if(i){for(let l of Ot)
|
|
60
|
+
i[l]===void 0&&r(d,t,`${i.id} is missing ${l}.`);s.push(i),i=null}}for(let[l,m]of e.entries()){let w=m.trim();if(!w)continue;
|
|
61
|
+
let I=w.match(/^### Inspector `([a-z0-9]+(?:-[a-z0-9]+)*)`: (.+)$/u);if(I){o(),a.has(I[1])&&r(d,t,"Duplicate inspector i\
|
|
62
|
+
d.",l+1),a.add(I[1]),i={id:I[1],title:I[2]};continue}i||r(d,t,"Expected an Inspector heading.",l+1);let p=w.match(kt);if(!p){
|
|
63
|
+
let b=Object.entries(L).map(([h,[,j]])=>`- ${h}: ${j}`).join("; ");r(d,t,`Unknown architecture inspector field. Use one \
|
|
64
|
+
of: ${b}.`,l+1)}let[c]=L[p[1]];if(i[c]!==void 0&&r(d,t,`Duplicate ${p[1]}.`,l+1),c==="runtimeRequirements")i[c]=v(p[2],d,
|
|
65
|
+
t,"Inspector runtime",l+1);else if(c==="argv")i[c]=T(p[2],d,t,"Inspector command",l+1);else if(c==="entryFiles"||c==="re\
|
|
66
|
+
quiredFiles")i[c]=f(p[2],d,t,p[1],l+1).map(b=>E(b,d,t,p[1],l+1));else{let[b]=f(p[2],d,t,p[1],l+1,{count:1});if(c==="work\
|
|
67
|
+
dir")i[c]=E(b,d,t,"Inspector directory",l+1);else if(c==="previewLocator")i[c]=At(b,t,l+1);else{let h=Number(b),j=c==="t\
|
|
68
|
+
imeout"?Ie:Oe;(!/^[1-9][0-9]*$/u.test(b)||!Number.isSafeInteger(h)||h>j)&&r(d,t,`${p[1]} must be from 1 to ${j}.`,l+1),i[c]=
|
|
69
|
+
c==="timeout"?h*1e3:h}}}return o(),s.length||r(d,t,"Use an Inspector entry or - Nothing."),s}function At(e,n,t){return E(
|
|
70
|
+
e,d,n,"Preview locator",t,{allowRoot:!1}),e.endsWith(".js")||r(d,n,"Preview locator must name a .js file.",t),e}var ts=Object.freeze({parseVibe64ArchitectureInspectionLines:Nt});var Ne="vibe64.architecture-layout.v1",Ae="Architecture layout",R="VIBE64_ARCHITECTURE_LAYOUT_INVALID",x=Object.freeze([
|
|
71
|
+
"layer","libraries","support"]);function Dt(e,n={}){let{path:t="genesis/stack.md#Architecture layout"}=n;if(Array.isArray(
|
|
72
|
+
e)||r(R,t,"Expected exact Stack section lines."),g(e))return[];let s=[],a=new Set,i=new Set,o;function l(){o&&((!o.kind||
|
|
73
|
+
!o.purpose||!o.subsystems.length)&&r(R,t,`${o.id} needs Kind, Purpose and at least one Subsystem.`),s.push(o))}for(let[m,
|
|
74
|
+
w]of e.entries()){let I=w.trim();if(!I)continue;let p=I.match(/^### Group `([a-z0-9]+(?:-[a-z0-9]+)*)`: (.+)$/u);if(p){l(),
|
|
75
|
+
a.has(p[1])&&r(R,t,"Duplicate group id.",m+1),a.add(p[1]),o={id:p[1],title:p[2],subsystems:[]};continue}let c=I.match(/^- (Kind|Purpose|Subsystem): (.+)$/u);
|
|
76
|
+
(!o||!c)&&r(R,t,"Expected a Group heading or Kind, Purpose, Subsystem field.",m+1);let b=f(c[2],R,t,c[1],m+1,{count:1});
|
|
77
|
+
if(c[1]==="Subsystem"){let h=E(b[0],R,t,"Subsystem root",m+1);i.has(h)&&r(R,t,"Each directory root may be placed only on\
|
|
78
|
+
ce.",m+1),i.add(h),o.subsystems.push({root:h})}else{let h=c[1].toLowerCase();o[h]!==void 0&&r(R,t,`Duplicate ${c[1]}.`,m+
|
|
79
|
+
1),h==="kind"&&!x.includes(b[0])&&r(R,t,`Kind must be ${x.slice(0,-1).join(", ")} or ${x.at(-1)}.`,m+1),o[h]=b[0]}}return l(),
|
|
80
|
+
s.length||r(R,t,"Use a Group entry or - Nothing."),s}var is=Object.freeze({parseVibe64ArchitectureLayoutLines:Dt});var Ct="custom",De="vibe64.connected-sources.v2",ie=Object.freeze([Object.freeze({value:"npm",label:"npm (Node.js)"}),Object.
|
|
79
81
|
freeze({value:"composer",label:"Composer (PHP)"}),Object.freeze({value:"pip",label:"pip (Python)"}),Object.freeze({value:"\
|
|
80
82
|
bundler",label:"Bundler (Ruby)"}),Object.freeze({value:"gomod",label:"Go modules"}),Object.freeze({value:"cargo",label:"\
|
|
81
83
|
Cargo (Rust)"}),Object.freeze({value:"maven",label:"Maven"}),Object.freeze({value:"gradle",label:"Gradle"}),Object.freeze(
|
|
82
|
-
{value:"nuget",label:"NuGet (.NET)"}),Object.freeze({value:
|
|
84
|
+
{value:"nuget",label:"NuGet (.NET)"}),Object.freeze({value:Ct,label:"custom"})]),Ce="Vibe64's preparer appends the absol\
|
|
83
85
|
ute script path and --phase prepare|verify, --source-root <the session's copy of the repository>, --project-root <consum\
|
|
84
86
|
ing project>, --sources-file <absolute Sources file> and --repository <GitHub URL> arguments to the Stack's Custom runne\
|
|
85
|
-
r command, once per phase; execution checks the script remains inside the consuming project.",
|
|
86
|
-
value));var
|
|
87
|
-
- Verify \`label\` ${
|
|
88
|
-
Sources file: `path`",...Object.values(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
["- Enabled environment: ","enabledEnvironment","Enabled environment","`ENV_NAME`"],["- Secret environment: ","
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
map(n=>`\`${n}\``).join(" or "),
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"- Default: `text`","- Description: `text`","- Required."],presentation:[`- Kind: ${
|
|
98
|
-
|
|
99
|
-
`path`","- Name: `file-name`","- Media type: `type/subtype`"]});var
|
|
100
|
-
.";var
|
|
101
|
-
Running typical MiB","runningTypical"],["Running high MiB","runningHigh"],["Typical MiB","typical"],["High MiB","high"]]);var
|
|
87
|
+
r command, once per phase; execution checks the script remains inside the consuming project.",os=Object.freeze(ie.map(e=>e.
|
|
88
|
+
value));var $e="Connected development",Pe="vibe64.connected-development.v1";var ae="with `runtime` [in `workdir`]: `command` `argument`...",Pt=Object.freeze({Prepare:`- Prepare \`label\` ${ae}`,Verify:`\
|
|
89
|
+
- Verify \`label\` ${ae}`,"Custom runner":`- Custom runner ${ae}`}),Me=Object.freeze(["- Default package type: `type`","\
|
|
90
|
+
- Sources file: `path`",...Object.values(Pt)]);var Le="vibe64.integration-setup.v1",xe="Integration setup";var Ve="- Command with `runtime` in `workdir`: `command` `argument`...";var z="vibe64.preview-identity.command.v1";var oe=new Set(["HOME","LOGNAME","NODE_OPTIONS","PATH","TMPDIR","USER"]),Vt=new Set(["email","login","user-id"]),jt=1e4,
|
|
91
|
+
Ut=3e4,Gt=[["- Command: ","command","Command","`tools/preview-identity` `argument`..."],["- Protocol: ","protocol","Prot\
|
|
92
|
+
ocol",`\`${z}\``],["- Identity types: ","identityTypes","Identity types",`one or more of ${[...Vt].map(e=>`\`${e}\``).join(
|
|
93
|
+
" ")}`],["- Enabled environment: ","enabledEnvironment","Enabled environment","`ENV_NAME`"],["- Secret environment: ","s\
|
|
94
|
+
ecretEnvironment","Secret environment","`ENV_NAME`"],["- Runtimes: ","runtimes","Runtimes","`runtime`..."],["- Timeout m\
|
|
95
|
+
s: ","timeoutMs","Timeout ms",`\`1\` through \`${Ut}\` (default ${jt})`]],je=Gt.map(([e,,,n])=>`${e}${n}`);var Ue="vibe64.outputs.v1",Ge="Outputs";var Bt=new Set(["finite","interactive"]),Wt=new Set(["development","test"]),zt=new Set(["terminal","web"]),Be=16,re=e=>[
|
|
96
|
+
...e].map(n=>`\`${n}\``).join(" or "),We=Object.freeze(["### Target `id`: Label","#### Parameter `id`: Label","#### Pres\
|
|
97
|
+
entation","#### Preview identity","#### Download `id`"]),$=Object.freeze({target:["- Default.",`- Mode: ${re(Bt)}`,`- Da\
|
|
98
|
+
ta: ${re(Wt)}`,"- Workdir: `path`","- Runtimes: `runtime`...","- Prepare|Build|Run `label`: `command` `argument`..."],parameter:[
|
|
99
|
+
"- Default: `text`","- Description: `text`","- Required."],presentation:[`- Kind: ${re(zt)}`,"- Preferred port: `1024` t\
|
|
100
|
+
hrough `65535`","- URL path: `/path`","- Ready when: `GET` `/path` returns `200`"],previewIdentity:je,download:["- Path:\
|
|
101
|
+
`path`","- Name: `file-name`","- Media type: `type/subtype`"]});var ze="Project services",He="vibe64.project-services.v1";var Fe="- Start `service-id` [per session] with `runtime` [in `workdir`]: `command` `argument`...";var qe="vibe64.workspace-setup.v1",Ke="Workspace setup";var Ye="- Prepare `label` [from `path`...] with `runtime` [in `workdir`] [when|if `path` exists]: `command` `argument`..\
|
|
102
|
+
.";var Xe="vibe64.resource-estimates.v1",Ze="Resource estimates";var Bs=1024*1024,Je=1024*1024,Qe=new Map([["Startup typical MiB","startupTypical"],["Startup high MiB","startupHigh"],["\
|
|
103
|
+
Running typical MiB","runningTypical"],["Running high MiB","runningHigh"],["Typical MiB","typical"],["High MiB","high"]]);var tt="vibe64.staging-data.v1",nt="Staging data",F="VIBE64_STAGING_DATA_INVALID";var k=Object.freeze({"own copy, empty":"empty","own copy, full":"full","own copy, sampled":"sampled","shared with produc\
|
|
104
|
+
tion":"shared","shared with production, structure frozen":"frozen"}),Hs=Object.freeze(Object.fromEntries(Object.entries(
|
|
105
|
+
k).map(([e,n])=>[n,e]))),Fs=Object.freeze({empty:Object.freeze({source:!1,unlisted:!1,sampling:!1,contacts:!1}),full:Object.
|
|
106
|
+
freeze({source:!0,unlisted:!1,sampling:!1,contacts:!0}),sampled:Object.freeze({source:!0,unlisted:!0,sampling:!0,contacts:!0}),
|
|
107
|
+
shared:Object.freeze({source:!1,unlisted:!1,sampling:!1,contacts:!1}),frozen:Object.freeze({source:!1,unlisted:!1,sampling:!1,
|
|
108
|
+
contacts:!1})}),qs=Object.freeze({empty:"Staging's own database starts empty",full:"a whole copy keeps every row",shared:"\
|
|
109
|
+
Staging uses production's database itself",frozen:"Staging uses production's database itself"}),Ks=Object.freeze(["mysql",
|
|
110
|
+
"postgresql"]),H="{dump}",et=/\{[A-Za-z][A-Za-z0-9_:-]*\}/u,st=/^[A-Za-z_][A-Za-z0-9_]{0,63}$/u,N=Object.freeze({unlistedRows:Object.
|
|
111
|
+
freeze([1,1e7]),days:Object.freeze([1,36500]),rows:Object.freeze([1,1e8])}),Ht=/^dump written by command with (.+?) in `([^`\r\n]+)`: (.+)$/u,
|
|
112
|
+
Ft=/^all up to `([^`\r\n]*)` rows$/u,it=/^- `([^`\r\n]*)`: (.+)$/u,qt=/^recent by `([^`\r\n]*)`(?:, last `([^`\r\n]*)` days)?(?:, newest `([^`\r\n]*)` rows)?$/u,
|
|
113
|
+
Kt=/^- `([^`\r\n]*)` to `([^`\r\n]*)`$/u,Yt=/^- `([^`\r\n]*)` keeps every `([^`\r\n]*)` row by `([^`\r\n]*)`$/u,Xt=Object.
|
|
114
|
+
freeze(["email","phone"]),at="- Nothing.",Zt=Object.freeze(Object.keys(k).map(e=>`- Mode: ${e}`)),le="- Source: dump wri\
|
|
115
|
+
tten by command with `runtime` in `workdir`: `command` `argument`... `{dump}`",ot="- Unlisted tables: all up to `n` rows",
|
|
116
|
+
S=Object.freeze({section:Object.freeze(["- Database: `resource`",...Zt,le,ot]),tables:Object.freeze(["- `table`: all","-\
|
|
117
|
+
`table`: none","- `table`: recent by `column`, last `n` days","- `table`: recent by `column`, newest `n` rows","- `tabl\
|
|
118
|
+
e`: recent by `column`, last `n` days, newest `n` rows"]),links:Object.freeze(["- `table.column` to `table.column`"]),keepTogether:Object.
|
|
119
|
+
freeze(["- `parent` keeps every `child` row by `column`"]),contacts:Object.freeze(["- `table.column`: email","- `table.c\
|
|
120
|
+
olumn`: phone",at])}),rt=new Map([["### Tables","tables"],["### Links","links"],["### Keep together","keepTogether"],["#\
|
|
121
|
+
## Contacts","contacts"]]),ct=Object.freeze([...rt.keys()]),Ys=Object.freeze(Object.fromEntries([...rt].map(([e,n])=>[n,
|
|
122
|
+
e]))),Xs=Object.freeze({tables:"table rule",links:"link",keepTogether:"Keep together entry",contacts:"contact"});function Jt(e,n,t){
|
|
123
|
+
let[s]=f(n,F,e.location,"Staging data Database",t,{count:1});X.test(s)||e.fail(`Database names a database resource of ge\
|
|
124
|
+
nesis/stack.md's ## Resources by its id, such as \`database\`; ${JSON.stringify(s)} isn't one.`,t),e.model.database=s}function Qt(e,n,t){
|
|
125
|
+
Object.hasOwn(k,n)||e.fail(y("Staging data Mode",n,Object.keys(k)),t),e.model.mode=k[n]}function en(e,n,t){let s=n.find(
|
|
126
|
+
o=>o!==H&&o.includes(H));s&&e.fail(`Source passes \`{dump}\` inside \`${s}\`: give it as an argument of its own, such as \
|
|
127
|
+
\`--output\` \`{dump}\`.`,t);let a=n.find(o=>o!==H&&et.test(o));a&&e.fail(`Source has the placeholder \`${a.match(et)[0]}\
|
|
128
|
+
\`; \`{dump}\` is its only one.`,t);let i=n.filter(o=>o===H).length;i!==1&&e.fail(i?`Source passes \`{dump}\` ${i} times\
|
|
129
|
+
; its command writes one dump, so pass it once.`:`Source's command must pass \`{dump}\`, the file it writes production's d\
|
|
130
|
+
ump to, as an argument of its own. Use: ${le}`,t)}function tn(e,n,t){let s=n.match(Ht);s||e.fail(`Staging data Source mu\
|
|
131
|
+
st use: ${le}`,t);let a=T(s[3],F,e.location,"Staging data Source command",t);en(e,a,t),e.model.dumpSource={argv:a,workdir:E(
|
|
132
|
+
s[2],F,e.location,"Staging data Source workdir",t),runtimeRequirements:v(s[1],F,e.location,"Staging data Source runtimes",
|
|
133
|
+
t)}}function ce(e,n,[t,s],a,i){let o=/^[1-9][0-9]*$/u.test(n)?Number(n):Number.NaN;return o>=t&&o<=s||e.fail(`${a} must \
|
|
134
|
+
be a whole number from ${t} to ${s}; \`${n}\` isn't one.`,i),o}function nn(e,n,t){let s=n.match(Ft);s||e.fail(`Staging d\
|
|
135
|
+
ata Unlisted tables must use: ${ot}`,t),e.model.unlistedTables={maxRows:ce(e,s[1],N.unlistedRows,"Unlisted tables' rows",
|
|
136
|
+
t)}}var Zs=Object.freeze([{prefix:"- Database: ",key:"database",label:"Database",read:Jt},{prefix:"- Mode: ",key:"mode",
|
|
137
|
+
label:"Mode",read:Qt},{prefix:"- Source: ",key:"source",label:"Source",read:tn},{prefix:"- Unlisted tables: ",key:"unlis\
|
|
138
|
+
ted",label:"Unlisted tables",read:nn}]);function V(e,n,t,s){return st.test(n)||e.fail(`\`${n}\` isn't a ${t} name: use up to 64 letters, digits and _, starting \
|
|
139
|
+
with a letter or _.`,s),n}function ue(e,n,t){let s=n.split(".");return(s.length!==2||!s.every(a=>st.test(a)))&&e.fail(`\`${n}\
|
|
140
|
+
\` isn't a column: name it \`table.column\`, each up to 64 letters, digits and _, starting with a letter or _.`,t),{table:s[0],
|
|
141
|
+
column:s[1]}}function q(e,n,t,s,a){e.named[n].has(t)&&e.fail(s,a),e.named[n].add(t)}function sn(e,n,t){if(n==="all"||n===
|
|
142
|
+
"none")return{rule:n};let s=n.match(qt);return s||e.fail(`Unknown table rule: ${n}. Use one of: ${S.tables.join("; ")}.`,
|
|
143
|
+
t),s[2]===void 0&&s[3]===void 0&&e.fail("A recent rule keeps its table's rows of the last `n` days, its newest `n` rows,\
|
|
144
|
+
or both: add `, last `n` days`, `, newest `n` rows` or both, in that order.",t),{rule:"recent",by:V(e,s[1],"column",t),
|
|
145
|
+
days:s[2]===void 0?null:ce(e,s[2],N.days,"A recent rule's days",t),rows:s[3]===void 0?null:ce(e,s[3],N.rows,"A recent ru\
|
|
146
|
+
le's rows",t)}}function an(e,n,t){let s=n.match(it);s||e.fail(y("Staging data table rule",n,S.tables),t);let a=V(e,s[1],
|
|
147
|
+
"table",t);q(e,"tables",a,`### Tables names \`${a}\` twice; give each table one rule.`,t),e.model.tables.push({table:a,...sn(
|
|
148
|
+
e,s[2],t)})}function on(e,n,t){let s=n.match(Kt);s||e.fail(y("Staging data link",n,S.links),t);let a=ue(e,s[1],t),i=ue(e,
|
|
149
|
+
s[2],t);s[1]===s[2]&&e.fail(`\`${s[1]}\` links to itself; a link names the column another column refers to.`,t),q(e,"lin\
|
|
150
|
+
ks",s[1],`### Links links \`${s[1]}\` twice; a column refers to one column.`,t),e.model.links.push({from:a,to:i})}function rn(e,n,t){
|
|
151
|
+
let s=n.match(Yt);s||e.fail(y("Staging data Keep together entry",n,S.keepTogether),t);let a=V(e,s[1],"table",t),i=V(e,s[2],
|
|
152
|
+
"table",t),o=V(e,s[3],"column",t);a===i&&e.fail(`\`${a}\` keeps its own rows; Keep together names a parent table and anot\
|
|
153
|
+
her table whose rows refer to it.`,t),q(e,"keepTogether",`${i}.${o}`,`### Keep together keeps \`${i}\` rows by \`${o}\` t\
|
|
154
|
+
wice; name each once.`,t),e.model.keepTogether.push({parent:a,child:i,column:o})}function cn(e,n,t){if(n===at){e.entries.
|
|
155
|
+
contacts>0&&e.fail("`- Nothing.` under ### Contacts says no column holds one, so it is the heading's only entry.",t),e.contactsNothing=
|
|
156
|
+
t;return}e.contactsNothing&&e.fail(`### Contacts says \`- Nothing.\` on line ${e.contactsNothing}: remove it, or this co\
|
|
157
|
+
ntact.`,t);let s=n.match(it);s||e.fail(y("Staging data contact",n,S.contacts),t);let{table:a,column:i}=ue(e,s[1],t);Xt.includes(
|
|
158
|
+
s[2])||e.fail(`Contact \`${s[1]}\` is an \`email\` or a \`phone\` column, written without backticks: ${S.contacts.slice(
|
|
159
|
+
0,2).join(" or ")}.`,t),q(e,"contacts",s[1],`### Contacts names \`${s[1]}\` twice; name each column once.`,t),e.model.contacts.
|
|
160
|
+
push({table:a,column:i,kind:s[2]})}var Js=Object.freeze({tables:an,links:on,keepTogether:rn,contacts:cn});var ln=["Command values: the executable and every argument are separate backticked values separated by single spaces (at\
|
|
102
161
|
most 64 values of at most 4096 characters, no line breaks). The executable is a name on PATH or a project-relative path\
|
|
103
162
|
, never absolute and never containing `..`.","Runtimes are lowercase technology ids selected in the project's Stack, suc\
|
|
104
163
|
h as `nodejs` or `php`. Paths are canonical project-relative paths; `.` is the project root.","A section containing only\
|
|
105
164
|
`- Nothing.` explicitly declares nothing. Blank lines are ignored."].join(`
|
|
106
|
-
`),
|
|
107
|
-
`);function
|
|
108
|
-
text:()=>[`# ${n}`,"",`Section: \`## ${t}\` in \`genesis/stack.md\`${
|
|
109
|
-
r and meaning; Genesis transports the exact section text.`,"",
|
|
165
|
+
`),u=e=>e.map(n=>` ${n}`).join(`
|
|
166
|
+
`);function _({name:e,title:n,section:t,contract:s="",summary:a,body:i,example:o}){return{name:e,title:n,section:t,example:o,
|
|
167
|
+
text:()=>[`# ${n}`,"",`Section: \`## ${t}\` in \`genesis/stack.md\`${s?`, contract \`${s}\``:""}. Vibe64 owns its gramma\
|
|
168
|
+
r and meaning; Genesis transports the exact section text.`,"",a,"",i.trim(),"",ln,"","## Example","","```markdown",`## ${t}`,
|
|
110
169
|
"",o.trim(),"```",""].join(`
|
|
111
|
-
`)}}var
|
|
170
|
+
`)}}var pn=`
|
|
112
171
|
### Target \`app\`: Application
|
|
113
172
|
|
|
114
173
|
- Default.
|
|
@@ -125,7 +184,7 @@ r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",I
|
|
|
125
184
|
#### Preview identity
|
|
126
185
|
|
|
127
186
|
- Command: \`tools/preview-identity\`
|
|
128
|
-
- Protocol: \`${
|
|
187
|
+
- Protocol: \`${z}\`
|
|
129
188
|
- Identity types: \`email\`
|
|
130
189
|
- Enabled environment: \`APP_PREVIEW_IDENTITY_ENABLED\`
|
|
131
190
|
- Secret environment: \`APP_PREVIEW_IDENTITY_SECRET\`
|
|
@@ -160,10 +219,17 @@ r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",I
|
|
|
160
219
|
- Path: \`exports/report.csv\`
|
|
161
220
|
- Name: \`report.csv\`
|
|
162
221
|
- Media type: \`text/csv\`
|
|
163
|
-
`,
|
|
164
|
-
|
|
222
|
+
`,dn=Object.freeze({empty:"Staging has its own database and it starts empty; the Deployment's Migrate makes its structur\
|
|
223
|
+
e. An application without this section has this.",full:"Staging's own database is built from a whole dump of production'\
|
|
224
|
+
s. Needs Source and `### Contacts`.",sampled:"Staging's own database is built from a sample of that dump, by the recipe \
|
|
225
|
+
below. Needs Source, Unlisted tables, `### Tables` and `### Contacts`; `### Links` and `### Keep together` are optional.",
|
|
226
|
+
shared:"Staging uses production's database itself and nothing is copied. A host treats a Migrate on Staging as a migrati\
|
|
227
|
+
on of production's database.",frozen:"as shared, and Staging never runs Migrate: its code must work with production's st\
|
|
228
|
+
ructure as it is."}),mi=Object.freeze([_({name:"workspace-setup",title:"Workspace setup",section:Ke,contract:qe,summary:"\
|
|
229
|
+
Ordered commands that prepare a session's working copy (dependencies, generated files, migrations) before any Output run\
|
|
230
|
+
s.",body:`
|
|
165
231
|
Each entry:
|
|
166
|
-
${
|
|
232
|
+
${u([Ye])}
|
|
167
233
|
|
|
168
234
|
- \`\` in \`workdir\` \`\` runs the command in that project directory (default \`.\`).
|
|
169
235
|
- \`\` when \`path\` exists \`\` waits: setup stays waiting until the path exists (for example a manifest the agent has not cr\
|
|
@@ -179,14 +245,14 @@ act recipe; changing any step runs setup again, and Outputs stay pending until i
|
|
|
179
245
|
step. Keep every step repeatable and non-destructive.
|
|
180
246
|
`,example:"\n- Prepare `Install dependencies` from `package.json` `package-lock.json` with `nodejs`: `npm` `ci`\n- Prepare\
|
|
181
247
|
`Migrate database` with `nodejs` if `migrations` exists: `npm` `run` `db:migrate`\n- Prepare `Install client` with `node\
|
|
182
|
-
js` in `client` when `client/package.json` exists: `npm` `ci`\n"}),
|
|
248
|
+
js` in `client` when `client/package.json` exists: `npm` `ci`\n"}),_({name:"outputs",title:"Outputs",section:Ge,contract:Ue,
|
|
183
249
|
summary:"The runnable targets Vibe64 offers: interactive terminal or web apps shown in Preview, and finite runs that pro\
|
|
184
250
|
duce downloads.",body:`
|
|
185
251
|
Headings, each target followed by its entries and then optional blocks:
|
|
186
|
-
${
|
|
252
|
+
${u(We)}
|
|
187
253
|
|
|
188
254
|
Target entries:
|
|
189
|
-
${
|
|
255
|
+
${u($.target)}
|
|
190
256
|
|
|
191
257
|
- Ids use lowercase letters, digits and single hyphens. Target ids are unique; at most one target is \`- Default.\` (the n\
|
|
192
258
|
ormal Preview).
|
|
@@ -198,39 +264,39 @@ ication must listen there. \`{parameter:id}\` may appear in any step argument.
|
|
|
198
264
|
laywright --target <id>\`). \`development\` is the other value; omitting Data asserts nothing.
|
|
199
265
|
- Workdir defaults to \`.\`.
|
|
200
266
|
|
|
201
|
-
\`#### Parameter\` entries (at most ${
|
|
202
|
-
${
|
|
267
|
+
\`#### Parameter\` entries (at most ${Be} per target, each used in a step):
|
|
268
|
+
${u($.parameter)}
|
|
203
269
|
|
|
204
270
|
Values are single-line text of at most 4096 characters; an omitted Default is empty; Required rejects blank values. Para\
|
|
205
271
|
meters are visible arguments: keep credentials in Env.
|
|
206
272
|
|
|
207
273
|
\`#### Presentation\` entries:
|
|
208
|
-
${
|
|
274
|
+
${u($.presentation)}
|
|
209
275
|
|
|
210
276
|
\`terminal\` accepts only Kind. \`web\` needs one Ready when (status 200 through 399); URL path defaults to \`/\`.
|
|
211
277
|
|
|
212
278
|
\`#### Download\` entries (all required):
|
|
213
|
-
${
|
|
279
|
+
${u($.download)}
|
|
214
280
|
|
|
215
281
|
Path is a project-relative file the steps produce; Name is a safe file name of at most 255 characters; Media type is low\
|
|
216
282
|
ercase type/subtype.
|
|
217
283
|
|
|
218
284
|
\`#### Preview identity\` entries (web targets only; Command, Protocol and Identity types are required):
|
|
219
|
-
${
|
|
285
|
+
${u($.previewIdentity)}
|
|
220
286
|
|
|
221
287
|
- The command is a committed, application-owned project-relative executable whose path contains \`/\`, without \`{host}\` or\
|
|
222
288
|
\`{port}\`.
|
|
223
|
-
- Enabled and Secret environment names are distinct uppercase names, not ${[...
|
|
224
|
-
web run Vibe64 sets the enabled name to \`true\` and the secret name to a fresh per-run secret; the application must
|
|
225
|
-
its identity exchange disabled unless both are present.
|
|
289
|
+
- Enabled and Secret environment names are distinct uppercase names, not ${[...oe].join(", ")} or \`XDG_*\`. For an enable\
|
|
290
|
+
d web run Vibe64 sets the enabled name to \`true\` and the secret name to a fresh per-run secret; the application must kee\
|
|
291
|
+
p its identity exchange disabled unless both are present.
|
|
226
292
|
- The command's stdin/stdout protocol: \`vibe64-helper spec preview-identity-command\`. The configured account names: \`vib\
|
|
227
293
|
e64-helper spec preview-identities\`.
|
|
228
|
-
`,example:
|
|
294
|
+
`,example:pn}),_({name:"deployment",title:"Deployment",section:ye,contract:be,summary:"The commands that turn a project \
|
|
229
295
|
revision into a running app, on Staging or in Production.",body:`
|
|
230
296
|
Entries:
|
|
231
|
-
${
|
|
297
|
+
${u(M)}
|
|
232
298
|
|
|
233
|
-
- Steps are ordered ${
|
|
299
|
+
- Steps are ordered ${D.join(", ")}; exactly one Serve step comes last. Serve starts the long-running application, which\
|
|
234
300
|
listens on the address given by the \`HOST\` and \`PORT\` environment variables. Arguments are passed literally (no \`{host}\
|
|
235
301
|
\` or \`{port}\` placeholders), so a server that takes its address only as arguments needs a committed project script that \
|
|
236
302
|
reads them.
|
|
@@ -279,13 +345,13 @@ job that must run once. Such state belongs in a declared resource (a database, a
|
|
|
279
345
|
- One Ready when entry is required (status 200 through 399). Workdir defaults to \`.\`. Each other entry appears at most o\
|
|
280
346
|
nce.
|
|
281
347
|
- Services: an application that runs as more than one kind of process (a different machine size, untrusted work kept apa\
|
|
282
|
-
rt from secrets, scaling apart) lists them under headings ${
|
|
348
|
+
rt from secrets, scaling apart) lists them under headings ${J.map(e=>`\`\` ${e} \`\``).join(" and ")}, after the entries\
|
|
283
349
|
shared by every service (Workdir, Runtimes, Recreate on restore, Generated secrets, Setup code, Packages, and the Prepa\
|
|
284
350
|
re, Build and Migrate steps: one build serves every service). Without such headings the Deployment is one public service\
|
|
285
351
|
, \`web\`. With them, each service says its own Serve, Ready when, Instances and Sandbox allows, and none of these stays a\
|
|
286
352
|
bove the headings. A service's id is a lowercase letter then up to 15 lowercase letters, digits and hyphens; there are 1\
|
|
287
353
|
to 8, exactly one public. \`### Service\` entries:
|
|
288
|
-
${
|
|
354
|
+
${u(Q)}
|
|
289
355
|
Exposure, Serve, Ready when and Instances (1 to 100, the least first) are required. Needs at least is the smallest mac\
|
|
290
356
|
hine it runs on, in whole vCPUs and GiB, never a provider's size name. Production is the count Production starts with (d\
|
|
291
357
|
efault the least); after that its count is a running setting, set within Instances, never by a Deploy. Reached \`each ins\
|
|
@@ -295,7 +361,7 @@ secrets and values that differ per environment belong in the environment's Env.
|
|
|
295
361
|
e host gives (\`APP_ENV\`, \`HOST\`, \`PORT\`, \`APP_PUBLIC_URL\`, \`TRUSTED_PROXIES\`, \`STAGING_REACHES_REAL_PEOPLE\`, any \`V64_\` \
|
|
296
362
|
name), a generated secret, the setup code or a name a resource binds. A service's Packages come beside the shared ones.
|
|
297
363
|
- \`### Resource\` entries, for a resource of \`## Resources\` by its id:
|
|
298
|
-
${
|
|
364
|
+
${u(ee)}
|
|
299
365
|
For a bucket only: \`local folder\` means development gives the application no bucket settings and it keeps its files in\
|
|
300
366
|
its own folder; \`own bucket\` (the default) lets the person enter a bucket's settings.
|
|
301
367
|
- Recreate on restore lists project-relative globs (only \`*\` and \`**\`) that a restored app rebuilds with its Prepare ste\
|
|
@@ -330,14 +396,69 @@ ENV]; if (to) await mailer.send({ ...message, to }); else console.info("%s: emai
|
|
|
330
396
|
message.to);\`
|
|
331
397
|
`,example:"\n- Runtimes: `nodejs`\n- Recreate on restore: `node_modules`\n- Generated secrets: `SESSION_SECRET`\n- Prepare `\
|
|
332
398
|
Install`: `npm` `ci`\n- Build `Build`: `npm` `run` `build`\n- Migrate `Migrate`: `npm` `run` `db:migrate`\n- Serve `Serve`:\
|
|
333
|
-
`env` `NODE_ENV=production` `node` `server.js`\n- Ready when: `GET` `/health` returns `200`\n"}),
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
${
|
|
339
|
-
|
|
340
|
-
|
|
399
|
+
`env` `NODE_ENV=production` `node` `server.js`\n- Ready when: `GET` `/health` returns `200`\n"}),_({name:"staging-data",
|
|
400
|
+
title:"Staging data",section:nt,contract:tt,summary:"What Staging's database holds: a database of its own (empty, or bui\
|
|
401
|
+
lt from a whole or sampled dump of production's) or production's database itself. Without the section Staging has its ow\
|
|
402
|
+
n empty database.",body:`
|
|
403
|
+
Entries before any heading, each at most once:
|
|
404
|
+
${u(S.section)}
|
|
405
|
+
|
|
406
|
+
Headings, each at most once, in any order, each followed by its entries:
|
|
407
|
+
${u(ct)}
|
|
408
|
+
|
|
409
|
+
\`### Tables\` entries, each table once:
|
|
410
|
+
${u(S.tables)}
|
|
411
|
+
|
|
412
|
+
\`### Links\` entries, each from-column once:
|
|
413
|
+
${u(S.links)}
|
|
414
|
+
|
|
415
|
+
\`### Keep together\` entries, each child table and column once:
|
|
416
|
+
${u(S.keepTogether)}
|
|
417
|
+
|
|
418
|
+
\`### Contacts\` entries, each column once, or exactly \`- Nothing.\`:
|
|
419
|
+
${u(S.contacts)}
|
|
420
|
+
|
|
421
|
+
- Database (always) names the database resource of the Stack's \`## Resources\`, of kind \`mysql\` or \`postgresql\`, whose St\
|
|
422
|
+
aging data this is. Mode (always) is one of the phrases above, written without backticks:
|
|
423
|
+
${Object.entries(k).map(([e,n])=>` - \`${e}\`: ${dn[n]}`).join(`
|
|
424
|
+
`)}
|
|
425
|
+
Only an own copy, full or sampled, has Source and \`### Contacts\`; only a sampled one has Unlisted tables, \`### Tables\`\
|
|
426
|
+
, \`### Links\` and \`### Keep together\`. Whether Staging holds production's data, or uses its database, is the person's de\
|
|
427
|
+
cision: an assistant never chooses a copy or a shared mode on its own; it may draft a sampled recipe from the applicatio\
|
|
428
|
+
n's schema for the person to review.
|
|
429
|
+
- Source is the application's own command that writes a dump of production's database to the file \`{dump}\` names. A host\
|
|
430
|
+
runs it with the settings it gives the app's Staging, where the database's own settings (such as \`DB_HOST\`) name Stagin\
|
|
431
|
+
g's own database, so the command reaches production's dump, or production's database, through settings of its own (such \
|
|
432
|
+
as \`PRODUCTION_DUMP_URL\`); the host builds Staging's own database from the file, and Staging itself never connects to pr\
|
|
433
|
+
oduction's database. \`{dump}\` is an argument of its own, exactly once, and the command's only placeholder. The dump is, \
|
|
434
|
+
for \`mysql\`, SQL text as \`mariadb-dump\` or \`mysqldump\` writes it, plain or gzip-compressed, of one database's tables (ne\
|
|
435
|
+
ver \`--databases\` or \`--all-databases\`); for \`postgresql\`, \`pg_dump\` custom format (\`-Fc\`).
|
|
436
|
+
- Tables: \`all\` keeps every row, \`none\` keeps the table empty, and \`\` recent by \`column\` \`\` keeps the rows whose column \
|
|
437
|
+
is in the last \`n\` days (${N.days.join(" to ")}), the newest \`n\` rows by that column (${N.rows.join(" to ")}), or bo\
|
|
438
|
+
th: the newest \`n\` of the last \`n\` days. Unlisted tables: a table \`### Tables\` doesn't list is copied whole when it has \
|
|
439
|
+
at most \`n\` rows (${N.unlistedRows.join(" to ")}); a larger one needs a rule of its own.
|
|
440
|
+
- A host also keeps every row a kept row refers to, through the database's own foreign keys and \`### Links\`, which names\
|
|
441
|
+
a column that refers to another column without a foreign key saying so. \`### Keep together\` goes the other way: for eve\
|
|
442
|
+
ry kept \`parent\` row, every \`child\` row whose \`column\` refers to it is kept too. A host loads the copy with the database\
|
|
443
|
+
's constraint checks on and checks for orphans after.
|
|
444
|
+
- \`### Contacts\` names every column that holds a person's email address or phone number; a host replaces their values in\
|
|
445
|
+
Staging's copy with made-up ones, the same at every build, so that Staging reaches no real person. \`- Nothing.\` says no\
|
|
446
|
+
column holds one.
|
|
447
|
+
- Table and column names are 1 to 64 letters, digits and \`_\`, starting with a letter or \`_\`, each in backticks; \`table.c\
|
|
448
|
+
olumn\` joins two with one dot. Keep together's column belongs to its child table.
|
|
449
|
+
- A section of only \`- Nothing.\` is refused: declare a mode, or leave the section out.
|
|
450
|
+
`,example:"\n- Database: `database`\n- Mode: own copy, sampled\n- Source: dump written by command with `nodejs` in `.`: `no\
|
|
451
|
+
de` `scripts/production-dump.js` `{dump}`\n- Unlisted tables: all up to `10000` rows\n\n### Tables\n\n- `countries`: all\n- `j\
|
|
452
|
+
obs`: recent by `created_at`, last `180` days\n- `job_events`: recent by `id`, newest `200000` rows\n- `messages`: recent \
|
|
453
|
+
by `sent_at`, last `90` days, newest `50000` rows\n- `sessions`: none\n\n### Links\n\n- `jobs.vessel_id` to `vessels.id`\n\n###\
|
|
454
|
+
Keep together\n\n- `invoices` keeps every `invoice_lines` row by `invoice_id`\n\n### Contacts\n\n- `users.email`: email\n- `us\
|
|
455
|
+
ers.mobile`: phone\n"}),_({name:"packaging",title:"Packaging",section:_e,contract:Se,summary:"Source facts Vibe64 needs \
|
|
456
|
+
to turn this project into distributable packages: registry packages, static web bundles and generated mobile app shells.\
|
|
457
|
+
Where each package is published (targets, channels, builders) is Vibe64 project state, never this section.",body:`
|
|
458
|
+
Headings: \`\` ${we} \`\`, each followed by entries:
|
|
459
|
+
${u(Te)}
|
|
460
|
+
|
|
461
|
+
- Packers (closed set): ${se.map(e=>`\`${e}\``).join(", ")}. Package ids are unique lowercase ids with single hyphens.
|
|
341
462
|
- \`npm\`: Version from \`package.json\` or \`external\`; Vibe64 runs \`npm pack\` in Workdir after the optional Prepare and Bui\
|
|
342
463
|
ld steps.
|
|
343
464
|
- \`python-dist\`: Build (for example \`python\` \`-m\` \`build\`), Output (for example \`dist\`) and Version from \`pyproject.toml\
|
|
@@ -361,44 +482,44 @@ dependencies`: `npm` `ci`\n- Build `Build bundled client`: `npm` `run` `build`\n
|
|
|
361
482
|
Platforms: `android`\n- Id: `com.example.notes`\n- Name: `Notes`\n- Icon: `assets/icon-1024.png`\n- Version from: `package.\
|
|
362
483
|
json`\n- Deep link scheme from: `APP_URL_SCHEME`\n- Permission `camera`: Take photos to attach to notes.\n\n### Package `sdk\
|
|
363
484
|
`: Notes SDK\n\n- Packer: `npm`\n- Workdir: `packages/notes-sdk`\n- Runtimes: `nodejs`\n- Version from: `package.json`\n"}),
|
|
364
|
-
|
|
485
|
+
_({name:"resource-estimates",title:"Resource estimates",section:Ze,contract:Xe,summary:"Optional memory planning hints f\
|
|
365
486
|
or Outputs and Workspace setup. They are not observed usage, reservations, minimum requirements or granted limits; the e\
|
|
366
487
|
xecution host owns those choices.",body:`
|
|
367
488
|
Headings: \`\` ### Output \`id\` \`\` (an id declared in Outputs) or \`### Workspace setup\` (requires declared setup steps), ea\
|
|
368
489
|
ch followed by fields:
|
|
369
|
-
${
|
|
490
|
+
${u([...Qe.keys()].map(e=>`- ${e}: \`number\``))}
|
|
370
491
|
|
|
371
492
|
- An interactive output declares the four Startup and Running fields. A finite output and Workspace setup declare only T\
|
|
372
493
|
ypical MiB and High MiB.
|
|
373
|
-
- Values are integer MiB from 1 through ${
|
|
494
|
+
- Values are integer MiB from 1 through ${Je}; typical never exceeds high. Duplicate operations or fields and unknown fi\
|
|
374
495
|
elds are rejected. The section is at most 64 KiB and 2048 lines.
|
|
375
496
|
- Invalid estimates never change Outputs availability or setup readiness; the host then uses its generic policy. Changin\
|
|
376
497
|
g only estimates does not rerun setup.
|
|
377
498
|
`,example:"\n### Output `app`\n\n- Startup typical MiB: `1024`\n- Startup high MiB: `1536`\n- Running typical MiB: `768`\n- Ru\
|
|
378
|
-
nning high MiB: `1536`\n\n### Workspace setup\n\n- Typical MiB: `1024`\n- High MiB: `1536`\n"}),
|
|
379
|
-
opment",title:"Connected development",section
|
|
499
|
+
nning high MiB: `1536`\n\n### Workspace setup\n\n- Typical MiB: `1024`\n- High MiB: `1536`\n"}),_({name:"connected-devel\
|
|
500
|
+
opment",title:"Connected development",section:$e,contract:Pe,summary:"How this project consumes the working source of it\
|
|
380
501
|
s connected repositories (its own dependencies under development) in a session.",body:`
|
|
381
502
|
Entries:
|
|
382
|
-
${
|
|
503
|
+
${u(Me)}
|
|
383
504
|
|
|
384
505
|
- Declare a Default package type alone, or a Sources file with Verify entries or a Custom runner (keeping any Default pa\
|
|
385
506
|
ckage type). All Prepare entries precede Verify entries. Steps run unconditionally (no \`when\`/\`if\`); at most one Custom \
|
|
386
507
|
runner.
|
|
387
|
-
- Package types: ${
|
|
388
|
-
|
|
389
|
-
|
|
508
|
+
- Package types: ${ie.map(({value:e})=>`\`${e}\``).join(", ")}. A type is a declared label: Vibe64 never runs a package \
|
|
509
|
+
manager for it. This project's own Prepare/Verify commands give each connected source its ecosystem's treatment, and Ver\
|
|
510
|
+
ify must prove that the source is consumed.
|
|
390
511
|
- The Sources file is a development-only path outside \`.git\`, never tracked; Vibe64 writes it when it prepares the sessi\
|
|
391
|
-
on's connected repositories and excludes it from Git. Its JSON: \`{"schema":"${
|
|
512
|
+
on's connected repositories and excludes it from Git. Its JSON: \`{"schema":"${De}","sessionId":"\u2026","repositories":[{"na\
|
|
392
513
|
me":"\u2026","repository":"https://github.com/owner/repo","relationship":"dependency|composition","type":"npm","sourceRoot":"\
|
|
393
514
|
/absolute/session/connected/repo"}]}\`; each \`sourceRoot\` is this session's own copy of that repository, and a custom con\
|
|
394
515
|
nection also carries \`"script"\`.
|
|
395
|
-
- Custom connections: ${
|
|
516
|
+
- Custom connections: ${Ce}
|
|
396
517
|
`,example:"\n- Default package type: `npm`\n- Sources file: `.connected-sources.json`\n- Prepare `Link connected packages` \
|
|
397
518
|
with `nodejs`: `node` `tools/link-connected.mjs`\n- Verify `Check connected packages` with `nodejs`: `node` `tools/verify\
|
|
398
|
-
-connected.mjs`\n"}),
|
|
519
|
+
-connected.mjs`\n"}),_({name:"project-services",title:"Project services",section:ze,contract:He,summary:"Foreground help\
|
|
399
520
|
er processes (workers, local reference services) that Vibe64 starts before an Output.",body:`
|
|
400
521
|
Entries:
|
|
401
|
-
${
|
|
522
|
+
${u([Fe])}
|
|
402
523
|
|
|
403
524
|
- Service ids are unique, start with a lowercase letter and use up to 64 lowercase letters, digits and hyphens. Workdir \
|
|
404
525
|
defaults to \`.\`.
|
|
@@ -410,39 +531,39 @@ ver spawn untracked background work.
|
|
|
410
531
|
rd the address in the session's ignored runtime folder) and check your own instance's readiness. Never assume a shared f\
|
|
411
532
|
ixed port.
|
|
412
533
|
`,example:"\n- Start `worker` with `nodejs` in `tools`: `npm` `run` `worker`\n- Start `reference` per session with `nodejs\
|
|
413
|
-
`: `npm` `run` `reference:service`\n"}),
|
|
534
|
+
`: `npm` `run` `reference:service`\n"}),_({name:"integration-setup",title:"Integration setup",section:xe,contract:Le,summary:"\
|
|
414
535
|
The one application-owned command the editor's Integrations controls call to configure, connect and check the applicatio\
|
|
415
536
|
n's external integrations.",body:`
|
|
416
537
|
Exactly one entry:
|
|
417
|
-
${
|
|
538
|
+
${u([Ve])}
|
|
418
539
|
|
|
419
540
|
The command's request/response protocol and the \`integrations.json\` usage: \`vibe64-helper spec integration-setup-command\
|
|
420
541
|
\`.
|
|
421
|
-
`,example:"\n- Command with `nodejs` in `.`: `node` `scripts/integrations.js`\n"}),
|
|
422
|
-
Architecture inspection",section:
|
|
542
|
+
`,example:"\n- Command with `nodejs` in `.`: `node` `scripts/integrations.js`\n"}),_({name:"architecture-inspection",title:"\
|
|
543
|
+
Architecture inspection",section:Re,contract:ve,summary:"Optional project-owned inspectors that the Architecture view ru\
|
|
423
544
|
ns to observe the application's structure (pages, routes, entry points).",body:`
|
|
424
545
|
Headings: \`\` ### Inspector \`id\`: Title \`\`, each followed by fields:
|
|
425
|
-
${
|
|
546
|
+
${u(Object.entries(L).map(([e,[,n]])=>`- ${e}: ${n}`))}
|
|
426
547
|
|
|
427
548
|
- Every field except Entry files, Required files and Preview locator is required; ids are unique. The Runtime must be se\
|
|
428
549
|
lected in the Stack.
|
|
429
550
|
- Reading declarations runs nothing. Entry files name application entry points. Required files must exist as regular pro\
|
|
430
551
|
ject files before the inspector runs.
|
|
431
552
|
- Preview locator names the technology's script that maps a clicked Preview element to its source component: a project \`\
|
|
432
|
-
.js\` file (it may be under \`node_modules\`), regular, at most ${
|
|
553
|
+
.js\` file (it may be under \`node_modules\`), regular, at most ${ke} bytes. The only symlink its path may pass is one l\
|
|
433
554
|
inked package folder (\`node_modules/<name>\` or \`node_modules/@scope/<name>\`); the file must stay inside that package's r\
|
|
434
555
|
eal folder.
|
|
435
556
|
- On analysis the command receives one \`jskit.architecture-inspection-input.v1\` JSON request on stdin (files with hashes\
|
|
436
|
-
, packages, package identity, UI discovery, the Stack hash and an optional \`cacheDirectory\`) and must print one \`${
|
|
557
|
+
, packages, package identity, UI discovery, the Stack hash and an optional \`cacheDirectory\`) and must print one \`${un}\
|
|
437
558
|
\` JSON document; Genesis owns that observation schema.
|
|
438
559
|
- \`cacheDirectory\` is an absolute directory for this inspector alone, outside the source; the inspector may read and wri\
|
|
439
560
|
te only there. When it is absent or unusable, inspect without a cache. Ignore unknown request fields.
|
|
440
561
|
`,example:"\n### Inspector `ui`: UI routes\n\n- Runtime: `nodejs`\n- Directory: `.`\n- Command: `node` `tools/inspect-ui.mjs`\
|
|
441
|
-
\n- Timeout seconds: `30`\n- Max output bytes: `1048576`\n- Entry files: `src/main.js`\n"}),
|
|
442
|
-
title:"Architecture layout",section:
|
|
562
|
+
\n- Timeout seconds: `30`\n- Max output bytes: `1048576`\n- Entry files: `src/main.js`\n"}),_({name:"architecture-layout",
|
|
563
|
+
title:"Architecture layout",section:Ae,contract:Ne,summary:"Presentation groups for the Architecture view. Declarations \
|
|
443
564
|
neither discover subsystems nor change their ownership.",body:`
|
|
444
565
|
Headings: \`\` ### Group \`id\`: Title \`\`, each followed by:
|
|
445
|
-
- Kind: ${
|
|
566
|
+
- Kind: ${x.map(e=>`\`${e}\``).join(" or ")}
|
|
446
567
|
- Purpose: \`text\`
|
|
447
568
|
- Subsystem: \`root\` (one or more)
|
|
448
569
|
|
|
@@ -450,4 +571,4 @@ Headings: \`\` ### Group \`id\`: Title \`\`, each followed by:
|
|
|
450
571
|
- A Subsystem is a directory root from \`genesis/subsystems.md\`; each root is placed once. A missing root is reported, ne\
|
|
451
572
|
ver invented.
|
|
452
573
|
`,example:"\n### Group `shared`: Shared libraries\n\n- Kind: `libraries`\n- Purpose: `Code reused by every surface.`\n- Subsy\
|
|
453
|
-
stem: `packages/shared`\n"})]);export{
|
|
574
|
+
stem: `packages/shared`\n"})]);export{mi as VIBE64_GENESIS_AGENT_SPECS};
|