vibe64 0.1.78 → 0.1.80
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 +1523 -1512
- package/bin/server.js +100 -98
- package/bin/upgrade-state.js +3288 -3277
- package/dist/assets/{GithubBrowserTabs-B2r19V0U.js → GithubBrowserTabs-d5SRhPw-.js} +1 -1
- package/dist/assets/GithubBrowserTabs-d5SRhPw-.js.br +0 -0
- package/dist/assets/GithubBrowserTabs-d5SRhPw-.js.gz +0 -0
- package/dist/assets/{LocalDatabaseServer-Ck9nZrGW.js → LocalDatabaseServer-CIAX_Xx8.js} +1 -1
- package/dist/assets/LocalDatabaseServer-CIAX_Xx8.js.br +0 -0
- package/dist/assets/LocalDatabaseServer-CIAX_Xx8.js.gz +0 -0
- package/dist/assets/{Vibe64DashboardPageHeader-C4iTKeE0.js → Vibe64DashboardPageHeader-CyYFBVSw.js} +1 -1
- package/dist/assets/Vibe64DashboardPageHeader-CyYFBVSw.js.br +0 -0
- package/dist/assets/Vibe64DashboardPageHeader-CyYFBVSw.js.gz +0 -0
- package/dist/assets/{Vibe64DatabaseWorkspace-ChA-2QPU.js → Vibe64DatabaseWorkspace-Dep64whC.js} +1 -1
- package/dist/assets/Vibe64DatabaseWorkspace-Dep64whC.js.br +0 -0
- package/dist/assets/{Vibe64DatabaseWorkspace-ChA-2QPU.js.gz → Vibe64DatabaseWorkspace-Dep64whC.js.gz} +0 -0
- package/dist/assets/{Vibe64FileArea-DBEJsJSq.js → Vibe64FileArea-r9PP5pT7.js} +1 -1
- package/dist/assets/Vibe64FileArea-r9PP5pT7.js.br +0 -0
- package/dist/assets/Vibe64FileArea-r9PP5pT7.js.gz +0 -0
- package/dist/assets/Vibe64OutputControls-B6wjUtLL.js +8 -0
- package/dist/assets/Vibe64OutputControls-B6wjUtLL.js.br +0 -0
- package/dist/assets/Vibe64OutputControls-B6wjUtLL.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-C_ez14Jz.js} +1 -1
- package/dist/assets/Vibe64RepositoryWorkspace-C_ez14Jz.js.br +0 -0
- package/dist/assets/Vibe64RepositoryWorkspace-C_ez14Jz.js.gz +0 -0
- package/dist/assets/{Vibe64SessionFiles-Djef01EV.js → Vibe64SessionFiles-CJPrBsND.js} +1 -1
- package/dist/assets/Vibe64SessionFiles-CJPrBsND.js.br +0 -0
- package/dist/assets/Vibe64SessionFiles-CJPrBsND.js.gz +0 -0
- package/dist/assets/{Vibe64SessionSourceEditor-CIGBLYYN.js → Vibe64SessionSourceEditor-CwE0Y-ka.js} +1 -1
- package/dist/assets/Vibe64SessionSourceEditor-CwE0Y-ka.js.br +0 -0
- package/dist/assets/Vibe64SessionSourceEditor-CwE0Y-ka.js.gz +0 -0
- package/dist/assets/{Vibe64UiStoryboardView-CjkWoB8b.js → Vibe64UiStoryboardView-COViVA_8.js} +1 -1
- package/dist/assets/Vibe64UiStoryboardView-COViVA_8.js.br +0 -0
- package/dist/assets/Vibe64UiStoryboardView-COViVA_8.js.gz +0 -0
- package/dist/assets/{_pageId_-BTjeqgTN.js → _pageId_-DuE37c72.js} +1 -1
- package/dist/assets/{_sessionId_-C7Jh2bL4.js → _sessionId_-T6qoKZhb.js} +1 -1
- package/dist/assets/_sessionId_-T6qoKZhb.js.br +0 -0
- package/dist/assets/_sessionId_-T6qoKZhb.js.gz +0 -0
- package/dist/assets/{_sessionTool_-DITdXCS4.js → _sessionTool_-B-b_DFay.js} +1 -1
- package/dist/assets/{access-DIaPNdxr.js → access-Dx-76I4I.js} +1 -1
- package/dist/assets/access-Dx-76I4I.js.br +0 -0
- package/dist/assets/access-Dx-76I4I.js.gz +0 -0
- package/dist/assets/{app-mELSmS67.js → app-BM5ppUKY.js} +1 -1
- package/dist/assets/app-BM5ppUKY.js.br +0 -0
- package/dist/assets/app-BM5ppUKY.js.gz +0 -0
- package/dist/assets/{changes-DlxKdjdP.js → changes-CI15aJ2s.js} +1 -1
- package/dist/assets/{client-CL02nP02.js → client-CtgiCplj.js} +2 -2
- package/dist/assets/client-CtgiCplj.js.br +0 -0
- package/dist/assets/client-CtgiCplj.js.gz +0 -0
- package/dist/assets/{client-CLpGzGwX.js → client-wU-vn9Gt.js} +2 -2
- package/dist/assets/client-wU-vn9Gt.js.br +0 -0
- package/dist/assets/client-wU-vn9Gt.js.gz +0 -0
- package/dist/assets/{dashboard-km-kuDid.js → dashboard-DD-Kz8sQ.js} +1 -1
- package/dist/assets/{english-definitions-CMICWgdF.js → english-definitions-B-puV4oO.js} +1 -1
- package/dist/assets/english-definitions-B-puV4oO.js.br +0 -0
- package/dist/assets/english-definitions-B-puV4oO.js.gz +0 -0
- package/dist/assets/{env-DjkxkxdX.js → env-CsRMp84w.js} +1 -1
- package/dist/assets/env-CsRMp84w.js.br +0 -0
- package/dist/assets/env-CsRMp84w.js.gz +0 -0
- package/dist/assets/{error-C7q1-2bC.js → error-CL5AgVRX.js} +1 -1
- package/dist/assets/error-CL5AgVRX.js.br +0 -0
- package/dist/assets/error-CL5AgVRX.js.gz +0 -0
- package/dist/assets/{fileTypes-Dbn0qwKS.js → fileTypes-CFECKFVN.js} +1 -1
- package/dist/assets/fileTypes-CFECKFVN.js.br +0 -0
- package/dist/assets/fileTypes-CFECKFVN.js.gz +0 -0
- package/dist/assets/{health-BwJ6Z251.js → health-4aQl5EcU.js} +1 -1
- package/dist/assets/health-4aQl5EcU.js.br +0 -0
- package/dist/assets/health-4aQl5EcU.js.gz +0 -0
- package/dist/assets/{history-D2TywQVv.js → history-B5Sor4EE.js} +1 -1
- package/dist/assets/history-B5Sor4EE.js.br +0 -0
- package/dist/assets/history-B5Sor4EE.js.gz +0 -0
- package/dist/assets/{index-D14nUmm7.js → index-BAvE8_Ib.js} +5 -5
- package/dist/assets/index-BAvE8_Ib.js.br +0 -0
- package/dist/assets/index-BAvE8_Ib.js.gz +0 -0
- package/dist/assets/{integrations-BZFXW2Cp.js → integrations-DksSxQbj.js} +96 -10
- package/dist/assets/integrations-DksSxQbj.js.br +0 -0
- package/dist/assets/integrations-DksSxQbj.js.gz +0 -0
- package/dist/assets/{issues-CLvbBTek.js → issues-DK2L8AHT.js} +1 -1
- package/dist/assets/issues-DK2L8AHT.js.br +0 -0
- package/dist/assets/issues-DK2L8AHT.js.gz +0 -0
- package/dist/assets/{learning-DwytxEXC.js → learning-DeuGeINY.js} +1 -1
- package/dist/assets/{packages-BeiF8W7l.js → packages-Du3QFyu-.js} +1 -1
- package/dist/assets/packages-Du3QFyu-.js.br +0 -0
- package/dist/assets/packages-Du3QFyu-.js.gz +0 -0
- package/dist/assets/{pages-BIRQk4b8.js → pages-CBvnECLI.js} +1 -1
- package/dist/assets/{pages-BnAyUdL4.js → pages-D3MpRYy4.js} +1 -1
- package/dist/assets/pages-D3MpRYy4.js.br +0 -0
- package/dist/assets/pages-D3MpRYy4.js.gz +0 -0
- package/dist/assets/{project-GnljGud1.js → project-BFylqlOt.js} +13 -13
- package/dist/assets/project-BFylqlOt.js.br +0 -0
- package/dist/assets/project-BFylqlOt.js.gz +0 -0
- package/dist/assets/project-BZ-FhyDR.css +1 -0
- package/dist/assets/project-BZ-FhyDR.css.br +0 -0
- package/dist/assets/project-BZ-FhyDR.css.gz +0 -0
- package/dist/assets/{project-files-e4-Q65vT.js → project-files-CHgBwX2E.js} +1 -1
- package/dist/assets/project-files-CHgBwX2E.js.br +0 -0
- package/dist/assets/project-files-CHgBwX2E.js.gz +0 -0
- package/dist/assets/{project-shared-ShellOutlet-DKYDipmC.js → project-shared-ShellOutlet-CIoqgO35.js} +1 -1
- package/dist/assets/project-shared-ShellOutlet-CIoqgO35.js.br +0 -0
- package/dist/assets/project-shared-ShellOutlet-CIoqgO35.js.gz +0 -0
- package/dist/assets/{project-shared-VBottomSheet-BSE28ENQ.js → project-shared-VBottomSheet-Bezz1r7A.js} +1 -1
- package/dist/assets/project-shared-VBottomSheet-Bezz1r7A.js.br +0 -0
- package/dist/assets/project-shared-VBottomSheet-Bezz1r7A.js.gz +0 -0
- package/dist/assets/{project-shared-VToolbar-CrezJP9z.js → project-shared-VToolbar-DmXu_VIt.js} +1 -1
- package/dist/assets/project-shared-VToolbar-DmXu_VIt.js.br +0 -0
- package/dist/assets/project-shared-VToolbar-DmXu_VIt.js.gz +0 -0
- package/dist/assets/{project-shared-pageNames-6Jz0BfbS.js → project-shared-pageNames-BiomB55Q.js} +1 -1
- package/dist/assets/project-shared-pageNames-BiomB55Q.js.br +0 -0
- package/dist/assets/project-shared-pageNames-BiomB55Q.js.gz +0 -0
- package/dist/assets/{pull-requests-DH9gWw10.js → pull-requests-CPBGulVu.js} +1 -1
- package/dist/assets/pull-requests-CPBGulVu.js.br +0 -0
- package/dist/assets/pull-requests-CPBGulVu.js.gz +0 -0
- package/dist/assets/{repository-BNltUuvb.js → repository-CWDpx49H.js} +1 -1
- package/dist/assets/{session-Ck9aH4Yl.js → session-D2z1O4Y4.js} +1 -1
- package/dist/assets/session-D2z1O4Y4.js.br +0 -0
- package/dist/assets/session-D2z1O4Y4.js.gz +0 -0
- package/dist/assets/{settings-D8Ofbk56.js → settings-BZRdBSb9.js} +1 -1
- package/dist/assets/settings-BZRdBSb9.js.br +0 -0
- package/dist/assets/settings-BZRdBSb9.js.gz +0 -0
- package/dist/assets/{useArchivedVibe64Sessions-LIZjeLbd.js → useArchivedVibe64Sessions-C3jJk531.js} +1 -1
- package/dist/assets/useArchivedVibe64Sessions-C3jJk531.js.br +0 -0
- package/dist/assets/useArchivedVibe64Sessions-C3jJk531.js.gz +0 -0
- package/dist/assets/{vibe64AttachmentDownload-1_XfvfYp.js → vibe64AttachmentDownload-DcLsJc9X.js} +1 -1
- package/dist/assets/{vibe64SavedEnvValues-Bs7r4xWE.js → vibe64SavedEnvValues-hAfcxHhJ.js} +1 -1
- package/dist/assets/{vue-flow-core-iwGljzru.js → vue-flow-core-BwhpINSc.js} +1 -1
- package/dist/assets/vue-flow-core-BwhpINSc.js.br +0 -0
- package/dist/assets/vue-flow-core-BwhpINSc.js.gz +0 -0
- package/dist/index.html +2 -2
- package/docs/colleague-usage/ai-accounts.md +4 -4
- package/docs/colleague-usage/ai-tasks.md +3 -2
- package/docs/colleague-usage/auto-workflow.md +99 -43
- package/docs/colleague-usage/chat-settings.md +46 -44
- package/docs/colleague-usage/coding-agents.md +8 -5
- package/docs/colleague-usage/connected-projects.md +196 -48
- package/docs/colleague-usage/connected-repositories.md +50 -6
- package/docs/colleague-usage/development-env.md +2 -2
- package/docs/colleague-usage/github-work.md +3 -3
- package/docs/colleague-usage/main-chat-approvals.md +2 -2
- package/docs/colleague-usage/passes.md +177 -156
- package/docs/colleague-usage/plans.md +121 -38
- 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/ui-pass.md +32 -22
- 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/package.json +1 -0
- package/node_modules/@local/vibe64-genesis/README.md +12 -0
- package/node_modules/@local/vibe64-genesis/bin/vibe64-genesis-host-context +96 -96
- package/node_modules/@local/vibe64-genesis/package.json +2 -1
- package/node_modules/@local/vibe64-genesis/src/server/agentSpecs.js +182 -174
- package/node_modules/@local/vibe64-genesis/src/server/index.js +573 -569
- package/node_modules/@local/vibe64-project/package.json +1 -0
- package/node_modules/@local/vibe64-terminals/package.json +1 -0
- package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +900 -890
- package/node_modules/chokidar/LICENSE +21 -0
- package/node_modules/chokidar/README.md +305 -0
- package/node_modules/chokidar/package.json +14 -0
- package/node_modules/readdirp/LICENSE +21 -0
- package/node_modules/readdirp/README.md +122 -0
- package/node_modules/readdirp/package.json +9 -0
- package/package.json +11 -7
- package/server.bundle.mjs +46995 -45449
- 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/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 +0 -1
- 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,173 +1,173 @@
|
|
|
1
1
|
import { createRequire as __vibe64CreateRequire } from 'node:module';const require=__vibe64CreateRequire(import.meta.url);
|
|
2
|
-
import{ARCHITECTURE_OBSERVATIONS_SCHEMA as
|
|
2
|
+
import{ARCHITECTURE_OBSERVATIONS_SCHEMA as pn}from"genesis-compiler";import Y from"node:path";var X=class extends Error{constructor(n,t,s=void 0){super(t),this.name="Vibe64StackOperationErr\
|
|
3
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",VIBE64_STAGING_DATA_INVALID:"staging-data"}),
|
|
8
|
-
function
|
|
9
|
-
return`Unknown ${e}: ${n}. Use one of: ${t.join("; ")}.`}function r(e,n,t,s,
|
|
10
|
-
{}:{line:s},...
|
|
11
|
-
n.map(t=>t[1])}function f(e,n,t,s,
|
|
12
|
-
|
|
13
|
-
contain ${w} backticked ${
|
|
14
|
-
test(e)&&!Y.isAbsolute(e)&&!e.split(/[\\/]/u).includes("..")}function
|
|
15
|
-
n,t,`${s} must begin with a safe executable.`,
|
|
16
|
-
e)&&!Y.posix.isAbsolute(e)&&Y.posix.normalize(e)===e&&!e.split("/").some(n=>!n||n==="..")}function E(e,n,t,s,
|
|
17
|
-
allowRoot:
|
|
18
|
-
lowercase technology ids separated into backticked values.`,
|
|
19
|
-
ate technology id.`,
|
|
7
|
+
spection",VIBE64_ARCHITECTURE_LAYOUT_INVALID:"architecture-layout",VIBE64_STAGING_DATA_INVALID:"staging-data"}),pt=/ Exact grammar: vibe64-helper spec [a-z-]+\.$/u;
|
|
8
|
+
function dt(e,n){let t=pe[e],s=String(n).replace(pt,"");return t?`${s} Exact grammar: vibe64-helper spec ${t}.`:s}function b(e,n,t){
|
|
9
|
+
return`Unknown ${e}: ${n}. Use one of: ${t.join("; ")}.`}function r(e,n,t,s,o={}){throw new X(e,dt(e,t),{path:n,...s===void 0?
|
|
10
|
+
{}:{line:s},...o})}function mt(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,o,i={}){let{count:a,maximum:l=64}=i,m=mt(e);if(!m||m.length>l||a!==void 0&&m.length!==
|
|
12
|
+
a||m.some(w=>w.length>4096||/[\0\r\n]/u.test(w))){let w=a===void 0?"separate non-empty":`exactly ${a}`;r(n,t,`${s} must \
|
|
13
|
+
contain ${w} backticked ${a===1?"value":"values"}.`,o)}return m}function ht(e=""){return typeof e=="string"&&!!e&&!/[\s\0{}]/u.
|
|
14
|
+
test(e)&&!Y.isAbsolute(e)&&!e.split(/[\\/]/u).includes("..")}function v(e,n,t,s,o){let i=f(e,n,t,s,o);return ht(i[0])||r(
|
|
15
|
+
n,t,`${s} must begin with a safe executable.`,o),i}function ft(e=""){return typeof e=="string"&&!!e&&!/[\0\r\n\\]/u.test(
|
|
16
|
+
e)&&!Y.posix.isAbsolute(e)&&Y.posix.normalize(e)===e&&!e.split("/").some(n=>!n||n==="..")}function E(e,n,t,s,o,i={}){let{
|
|
17
|
+
allowRoot:a=!0}=i;return(!ft(e)||!a&&e===".")&&r(n,t,`${s} must be a canonical project-relative path.`,o),e}function T(e,n,t,s,o){let i=f(e,n,t,s,o);return i.some(a=>!/^[a-z0-9]+(?:-[a-z0-9]+)*$/u.test(a))&&r(n,t,`${s} must use \
|
|
18
|
+
lowercase technology ids separated into backticked values.`,o),new Set(i).size!==i.length&&r(n,t,`${s} contains a duplic\
|
|
19
|
+
ate technology id.`,o),i}var Z=/^[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 En=Object.freeze(
|
|
20
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\
|
|
21
21
|
emove APP_ENV from Deployment.",SIDE_EFFECTS:"SIDE_EFFECTS was replaced by APP_ENV, which the host gives every step. Rem\
|
|
22
22
|
ove SIDE_EFFECTS from Deployment.",STAGING_REACHES_REAL_PEOPLE:"Deployment never sets STAGING_REACHES_REAL_PEOPLE: the h\
|
|
23
23
|
ost gives it to a Staging only while the project's owner marks that real people use that Staging. Remove STAGING_REACHES\
|
|
24
|
-
_REAL_PEOPLE from Deployment."}),Ee=Object.freeze({prepare:0,build:1,migrate:2,serve:3}),
|
|
24
|
+
_REAL_PEOPLE from Deployment."}),Ee=Object.freeze({prepare:0,build:1,migrate:2,serve:3}),C=Object.keys(Ee).map(e=>e[0].toUpperCase()+
|
|
25
25
|
e.slice(1)),M=Object.freeze(["- Workdir: `path`","- Runtimes: `runtime`...",`${de}\`glob\`...`,`${me}\`NAME\`...`,`${he}\
|
|
26
26
|
\`NAME\``,`${P}${B.map(e=>`\`${e}\``).join(" ")}`,`${U}\`package\`...`,`${G}\`count\``,"- Ready when: `GET` `/path` retu\
|
|
27
|
-
rns `200`",`- ${
|
|
28
|
-
["local folder","own bucket"])
|
|
29
|
-
|
|
30
|
-
"- Needs at least: `N` vCPU, `N` GiB memory","- Production: `N` instances","- Reached: `any instance` or `each
|
|
31
|
-
"- Reaches: `service` as `SETTING`","- Setting `NAME`: `value`",`${U}\`package\`...`,`${P}${B.map(e=>`\`${e}\``).join(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
de"]);var
|
|
27
|
+
rns `200`",`- ${C.join("|")} \`label\`: \`command\` \`argument\`...`]);var kn=Object.freeze(["public","internal"]),Nn=Object.freeze({"any instance":"any","each instance":"each"});var J=e=>new RegExp(`^- ${e}: \`([^\`\\r\\n]*)\`$`,"u"),An=J("Exposure"),Cn=J("Reached"),Dn=J("Development"),Tt=Object.freeze(
|
|
28
|
+
["local folder","own bucket"]),$n=Object.freeze(["APP_ENV","HOST","PORT","APP_PUBLIC_URL","TRUSTED_PROXIES"]);var Q=Object.freeze(["### Service `id`: summary","### Resource `id`"]),ee=Object.freeze(["- Exposure: `public` or `inter\
|
|
29
|
+
nal`","- Serve `label`: `command` `argument`...","- Ready when: `GET` `/path` returns `200`","- Instances: `min` to `max\
|
|
30
|
+
`","- Needs at least: `N` vCPU, `N` GiB memory","- Production: `N` instances","- Reached: `any instance` or `each instan\
|
|
31
|
+
ce`","- Reaches: `service` as `SETTING`","- Setting `NAME`: `value`",`${U}\`package\`...`,`${P}${B.map(e=>`\`${e}\``).join(
|
|
32
|
+
" ")}`]),te=Object.freeze([`- Development: ${Tt.map(e=>`\`${e}\``).join(" or ")}`]),Pn=Object.freeze(M.filter(e=>![P,G,"\
|
|
33
|
+
- Ready when: "].some(n=>e.startsWith(n))).map(e=>e.replace(`|${C.at(-1)} `," ")));var Se="vibe64.application-deployment.v2";var be="Deployment";var ye="vibe64.packaging.v1",_e="Packaging",Qn=Object.freeze(["genesis",".genesis",".agents",".claude",".codex",".openco\
|
|
34
|
+
de"]);var Rt=Object.freeze({npm:Object.freeze({entries:["workdir","runtimes","prepare","build","environment","versionFrom"],required:[
|
|
35
35
|
"versionFrom"],versionSources:["package.json","external"]}),"python-dist":Object.freeze({entries:["workdir","runtimes","\
|
|
36
36
|
prepare","build","environment","output","versionFrom"],required:["build","output","versionFrom"],versionSources:["pyproj\
|
|
37
37
|
ect.toml","external"]}),"web-bundle":Object.freeze({entries:["workdir","runtimes","prepare","build","environment","outpu\
|
|
38
38
|
t"],required:["build","output"],versionSources:[]}),capacitor:Object.freeze({entries:["workdir","content","platforms","a\
|
|
39
39
|
pplicationId","name","icon","versionFrom","deepLinkSchemeFrom","appLinkDomainsFrom","permission"],required:["content","p\
|
|
40
|
-
latforms","applicationId","name","icon","versionFrom"],versionSources:["package.json","external"]})}),
|
|
41
|
-
keys(
|
|
42
|
-
\``).join(" | "),
|
|
40
|
+
latforms","applicationId","name","icon","versionFrom"],versionSources:["package.json","external"]})}),ie=Object.freeze(Object.
|
|
41
|
+
keys(Rt)),Ot=Object.freeze(["android"]),It=Object.freeze(["package.json","pyproject.toml","external"]),se=e=>e.map(n=>`\`${n}\
|
|
42
|
+
\``).join(" | "),D=Object.freeze([["- Packer: ","packer",`- Packer: ${se(ie)}`],["- Workdir: ","workdir","- Workdir: `pa\
|
|
43
43
|
th`"],["- Runtimes: ","runtimes","- Runtimes: `runtime`..."],["- Output: ","output","- Output: `path`"],["- Version from\
|
|
44
|
-
: ","versionFrom",`- Version from: ${
|
|
44
|
+
: ","versionFrom",`- Version from: ${se(It)}`],["- Platforms: ","platforms",`- Platforms: ${se(Ot)}...`],["- Id: ","appl\
|
|
45
45
|
icationId","- Id: `reverse.dns.id`"],["- Name: ","name","- Name: `Display name`"],["- Icon: ","icon","- Icon: `path/to/i\
|
|
46
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",
|
|
48
|
-
[
|
|
49
|
-
"- Content: package `web-bundle-id`",...
|
|
47
|
+
mains from: ","appLinkDomainsFrom","- App link domains from: `ENV_NAME`"]]),we="### Package `id`: Label",ve=Object.freeze(
|
|
48
|
+
[D[0][2],D[1][2],D[2][2],"- Prepare|Build `label`: `command` `argument`...","- Environment `NAME`: `value`",D[3][2],D[4][2],
|
|
49
|
+
"- Content: package `web-bundle-id`",...D.slice(5).map(([,,e])=>e),"- Permission `id`: User-facing reason."]),es=Object.
|
|
50
50
|
freeze({packer:"Packer",workdir:"Workdir",runtimes:"Runtimes",prepare:"Prepare",build:"Build",environment:"Environment",
|
|
51
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
|
|
53
|
-
enesis/stack.md#Architecture inspection",Oe=120,Ie=64*1024*1024,ke=64*1024,
|
|
52
|
+
Icon",deepLinkSchemeFrom:"Deep link scheme from",appLinkDomainsFrom:"App link domains from",permission:"Permission"});var Te="vibe64.architecture-inspection.v1",Re="Architecture inspection",d="VIBE64_ARCHITECTURE_INSPECTION_INVALID",kt="g\
|
|
53
|
+
enesis/stack.md#Architecture inspection",Oe=120,Ie=64*1024*1024,ke=64*1024,Nt=Object.freeze(["runtimeRequirements","work\
|
|
54
54
|
dir","argv","timeout","maxBuffer"]),L=Object.freeze({Runtime:["runtimeRequirements","`runtime`..."],Directory:["workdir",
|
|
55
55
|
"`path`"],Command:["argv","`command` `argument`..."],"Timeout seconds":["timeout",`\`1\` through \`${Oe}\``],"Max output\
|
|
56
56
|
bytes":["maxBuffer",`\`1\` through \`${Ie}\``],"Entry files":["entryFiles","`path`... (optional)"],"Required files":["r\
|
|
57
|
-
equiredFiles","`path`... (optional)"],"Preview locator":["previewLocator","`path` (optional .js file)"]}),
|
|
58
|
-
`^- (${Object.keys(L).join("|")}): (.+)$`,"u");function
|
|
59
|
-
ture inspection requires exact Stack section lines."),g(e))return[];let s=[],
|
|
57
|
+
equiredFiles","`path`... (optional)"],"Preview locator":["previewLocator","`path` (optional .js file)"]}),At=new RegExp(
|
|
58
|
+
`^- (${Object.keys(L).join("|")}): (.+)$`,"u");function Ct(e,n={}){let{path:t=kt}=n;if(Array.isArray(e)||r(d,t,"Architec\
|
|
59
|
+
ture inspection requires exact Stack section lines."),g(e))return[];let s=[],o=new Set,i;function a(){if(i){for(let l of Nt)
|
|
60
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 O=w.match(/^### Inspector `([a-z0-9]+(?:-[a-z0-9]+)*)`: (.+)$/u);if(O){
|
|
62
|
-
d.",l+1),
|
|
63
|
-
let
|
|
64
|
-
of: ${
|
|
65
|
-
t,"Inspector runtime",l+1);else if(c==="argv")i[c]=
|
|
66
|
-
quiredFiles")i[c]=f(p[2],d,t,p[1],l+1).map(
|
|
67
|
-
dir")i[c]=E(
|
|
68
|
-
imeout"?Oe:Ie;(!/^[1-9][0-9]*$/u.test(
|
|
69
|
-
c==="timeout"?h*1e3:h}}}return
|
|
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
|
|
71
|
-
"layer","libraries","support"]);function
|
|
72
|
-
e)||r(R,t,"Expected exact Stack section lines."),g(e))return[];let s=[],
|
|
73
|
-
!
|
|
61
|
+
let O=w.match(/^### Inspector `([a-z0-9]+(?:-[a-z0-9]+)*)`: (.+)$/u);if(O){a(),o.has(O[1])&&r(d,t,"Duplicate inspector i\
|
|
62
|
+
d.",l+1),o.add(O[1]),i={id:O[1],title:O[2]};continue}i||r(d,t,"Expected an Inspector heading.",l+1);let p=w.match(At);if(!p){
|
|
63
|
+
let S=Object.entries(L).map(([h,[,x]])=>`- ${h}: ${x}`).join("; ");r(d,t,`Unknown architecture inspector field. Use one \
|
|
64
|
+
of: ${S}.`,l+1)}let[c]=L[p[1]];if(i[c]!==void 0&&r(d,t,`Duplicate ${p[1]}.`,l+1),c==="runtimeRequirements")i[c]=T(p[2],d,
|
|
65
|
+
t,"Inspector runtime",l+1);else if(c==="argv")i[c]=v(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(S=>E(S,d,t,p[1],l+1));else{let[S]=f(p[2],d,t,p[1],l+1,{count:1});if(c==="work\
|
|
67
|
+
dir")i[c]=E(S,d,t,"Inspector directory",l+1);else if(c==="previewLocator")i[c]=Dt(S,t,l+1);else{let h=Number(S),x=c==="t\
|
|
68
|
+
imeout"?Oe:Ie;(!/^[1-9][0-9]*$/u.test(S)||!Number.isSafeInteger(h)||h>x)&&r(d,t,`${p[1]} must be from 1 to ${x}.`,l+1),i[c]=
|
|
69
|
+
c==="timeout"?h*1e3:h}}}return a(),s.length||r(d,t,"Use an Inspector entry or - Nothing."),s}function Dt(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 ss=Object.freeze({parseVibe64ArchitectureInspectionLines:Ct});var Ne="vibe64.architecture-layout.v1",Ae="Architecture layout",R="VIBE64_ARCHITECTURE_LAYOUT_INVALID",V=Object.freeze([
|
|
71
|
+
"layer","libraries","support"]);function $t(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=[],o=new Set,i=new Set,a;function l(){a&&((!a.kind||
|
|
73
|
+
!a.purpose||!a.subsystems.length)&&r(R,t,`${a.id} needs Kind, Purpose and at least one Subsystem.`),s.push(a))}for(let[m,
|
|
74
74
|
w]of e.entries()){let O=w.trim();if(!O)continue;let p=O.match(/^### Group `([a-z0-9]+(?:-[a-z0-9]+)*)`: (.+)$/u);if(p){l(),
|
|
75
|
-
|
|
76
|
-
(!
|
|
77
|
-
if(c[1]==="Subsystem"){let h=E(
|
|
78
|
-
ce.",m+1),i.add(h),
|
|
79
|
-
1),h==="kind"&&!V.includes(
|
|
80
|
-
s.length||r(R,t,"Use a Group entry or - Nothing."),s}var
|
|
81
|
-
freeze({value:"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
{value:"nuget",label:"NuGet (.NET)"}),Object.freeze({value:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
value));var
|
|
89
|
-
- Verify \`label\` ${
|
|
90
|
-
- Sources file: `path`",...Object.values(
|
|
91
|
-
|
|
92
|
-
ocol",`\`${
|
|
75
|
+
o.has(p[1])&&r(R,t,"Duplicate group id.",m+1),o.add(p[1]),a={id:p[1],title:p[2],subsystems:[]};continue}let c=O.match(/^- (Kind|Purpose|Subsystem): (.+)$/u);
|
|
76
|
+
(!a||!c)&&r(R,t,"Expected a Group heading or Kind, Purpose, Subsystem field.",m+1);let S=f(c[2],R,t,c[1],m+1,{count:1});
|
|
77
|
+
if(c[1]==="Subsystem"){let h=E(S[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),a.subsystems.push({root:h})}else{let h=c[1].toLowerCase();a[h]!==void 0&&r(R,t,`Duplicate ${c[1]}.`,m+
|
|
79
|
+
1),h==="kind"&&!V.includes(S[0])&&r(R,t,`Kind must be ${V.slice(0,-1).join(", ")} or ${V.at(-1)}.`,m+1),a[h]=S[0]}}return l(),
|
|
80
|
+
s.length||r(R,t,"Use a Group entry or - Nothing."),s}var as=Object.freeze({parseVibe64ArchitectureLayoutLines:$t});var Pt="custom",Ce="vibe64.connected-sources.v2",De="vibe64.connections.lock.json",$e="vibe64.connections-lock.v1",oe=Object.
|
|
81
|
+
freeze([Object.freeze({value:"npm",label:"npm (Node.js)"}),Object.freeze({value:"composer",label:"Composer (PHP)"}),Object.
|
|
82
|
+
freeze({value:"pip",label:"pip (Python)"}),Object.freeze({value:"bundler",label:"Bundler (Ruby)"}),Object.freeze({value:"\
|
|
83
|
+
gomod",label:"Go modules"}),Object.freeze({value:"cargo",label:"Cargo (Rust)"}),Object.freeze({value:"maven",label:"Mave\
|
|
84
|
+
n"}),Object.freeze({value:"gradle",label:"Gradle"}),Object.freeze({value:"nuget",label:"NuGet (.NET)"}),Object.freeze({value:Pt,
|
|
85
|
+
label:"custom"})]),Pe="Vibe64's preparer appends the absolute script path and --phase prepare|verify, --source-root <the\
|
|
86
|
+
session's copy of the repository>, --project-root <consuming project>, --sources-file <absolute Sources file> and --rep\
|
|
87
|
+
ository <GitHub URL> arguments to the Stack's Custom runner command, once per phase; execution checks the script remains\
|
|
88
|
+
inside the consuming project.",cs=Object.freeze(oe.map(e=>e.value));var Me="Connected development",Le="vibe64.connected-development.v1";var z="with `runtime` [in `workdir`]: `command` `argument`...",Lt=Object.freeze({Prepare:`- Prepare \`label\` ${z}`,Verify:`\
|
|
89
|
+
- Verify \`label\` ${z}`,Save:`- Save \`label\` ${z}`,"Custom runner":`- Custom runner ${z}`}),Ve=Object.freeze(["- Defa\
|
|
90
|
+
ult package type: `type`","- Sources file: `path`",...Object.values(Lt)]);var hs=Object.freeze({Prepare:"prepare",Verify:"verify",Save:"save"});var je="vibe64.integration-setup.v1",xe="Integration setup";var Ue="- Command with `runtime` in `workdir`: `command` `argument`...";var H="vibe64.preview-identity.command.v1";var ae=new Set(["HOME","LOGNAME","NODE_OPTIONS","PATH","TMPDIR","USER"]),Ut=new Set(["email","login","user-id"]),Gt=1e4,
|
|
91
|
+
Bt=3e4,Wt=[["- Command: ","command","Command","`tools/preview-identity` `argument`..."],["- Protocol: ","protocol","Prot\
|
|
92
|
+
ocol",`\`${H}\``],["- Identity types: ","identityTypes","Identity types",`one or more of ${[...Ut].map(e=>`\`${e}\``).join(
|
|
93
93
|
" ")}`],["- Enabled environment: ","enabledEnvironment","Enabled environment","`ENV_NAME`"],["- Secret environment: ","s\
|
|
94
94
|
ecretEnvironment","Secret environment","`ENV_NAME`"],["- Runtimes: ","runtimes","Runtimes","`runtime`..."],["- Timeout m\
|
|
95
|
-
s: ","timeoutMs","Timeout ms",`\`1\` through \`${
|
|
96
|
-
...e].map(n=>`\`${n}\``).join(" or "),
|
|
97
|
-
entation","#### Preview identity","#### Download `id`"]),$=Object.freeze({target:["- Default.",`- Mode: ${re(
|
|
98
|
-
ta: ${re(
|
|
99
|
-
"- Default: `text`","- Description: `text`","- Required."],presentation:[`- Kind: ${re(
|
|
100
|
-
hrough `65535`","- URL path: `/path`","- Ready when: `GET` `/path` returns `200`"],previewIdentity:
|
|
101
|
-
`path`","- Name: `file-name`","- Media type: `type/subtype`"]});var
|
|
102
|
-
.";var
|
|
103
|
-
Running typical MiB","runningTypical"],["Running high MiB","runningHigh"],["Typical MiB","typical"],["High MiB","high"]]);var
|
|
104
|
-
tion":"shared","shared with production, structure frozen":"frozen"}),
|
|
105
|
-
k).map(([e,n])=>[n,e]))),
|
|
95
|
+
s: ","timeoutMs","Timeout ms",`\`1\` through \`${Bt}\` (default ${Gt})`]],Ge=Wt.map(([e,,,n])=>`${e}${n}`);var Be="vibe64.outputs.v1",We="Outputs";var zt=new Set(["finite","interactive"]),Ht=new Set(["development","test"]),Ft=new Set(["terminal","web"]),ze=16,re=e=>[
|
|
96
|
+
...e].map(n=>`\`${n}\``).join(" or "),He=Object.freeze(["### Target `id`: Label","#### Parameter `id`: Label","#### Pres\
|
|
97
|
+
entation","#### Preview identity","#### Download `id`"]),$=Object.freeze({target:["- Default.",`- Mode: ${re(zt)}`,`- Da\
|
|
98
|
+
ta: ${re(Ht)}`,"- Workdir: `path`","- Runtimes: `runtime`...","- Prepare|Build|Run `label`: `command` `argument`..."],parameter:[
|
|
99
|
+
"- Default: `text`","- Description: `text`","- Required."],presentation:[`- Kind: ${re(Ft)}`,"- Preferred port: `1024` t\
|
|
100
|
+
hrough `65535`","- URL path: `/path`","- Ready when: `GET` `/path` returns `200`"],previewIdentity:Ge,download:["- Path:\
|
|
101
|
+
`path`","- Name: `file-name`","- Media type: `type/subtype`"]});var Fe="Project services",Ke="vibe64.project-services.v1";var qe="- Start `service-id` [per session] with `runtime` [in `workdir`]: `command` `argument`...";var Ye="vibe64.workspace-setup.v1",Xe="Workspace setup";var Ze="- Prepare `label` [from `path`...] with `runtime` [in `workdir`] [when|if `path` exists]: `command` `argument`..\
|
|
102
|
+
.";var Je="vibe64.resource-estimates.v1",Qe="Resource estimates";var Hs=1024*1024,et=1024*1024,tt=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 st="vibe64.staging-data.v1",it="Staging data",K="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"}),qs=Object.freeze(Object.fromEntries(Object.entries(
|
|
105
|
+
k).map(([e,n])=>[n,e]))),Ys=Object.freeze({empty:Object.freeze({source:!1,unlisted:!1,sampling:!1,contacts:!1}),full:Object.
|
|
106
106
|
freeze({source:!0,unlisted:!1,sampling:!1,contacts:!0}),sampled:Object.freeze({source:!0,unlisted:!0,sampling:!0,contacts:!0}),
|
|
107
107
|
shared:Object.freeze({source:!1,unlisted:!1,sampling:!1,contacts:!1}),frozen:Object.freeze({source:!1,unlisted:!1,sampling:!1,
|
|
108
|
-
contacts:!1})}),
|
|
109
|
-
Staging uses production's database itself",frozen:"Staging uses production's database itself"}),
|
|
110
|
-
"postgresql"]),
|
|
111
|
-
freeze([1,1e7]),days:Object.freeze([1,36500]),rows:Object.freeze([1,1e8])}),
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
freeze(["email","phone"]),
|
|
115
|
-
tten by command with `runtime` in `workdir`: `command` `argument`... `{dump}`",
|
|
116
|
-
|
|
108
|
+
contacts:!1})}),Xs=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"}),Zs=Object.freeze(["mysql",
|
|
110
|
+
"postgresql"]),F="{dump}",nt=/\{[A-Za-z][A-Za-z0-9_:-]*\}/u,ot=/^[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])}),Kt=/^dump written by command with (.+?) in `([^`\r\n]+)`: (.+)$/u,
|
|
112
|
+
qt=/^all up to `([^`\r\n]*)` rows$/u,at=/^- `([^`\r\n]*)`: (.+)$/u,Yt=/^recent by `([^`\r\n]*)`(?:, last `([^`\r\n]*)` days)?(?:, newest `([^`\r\n]*)` rows)?$/u,
|
|
113
|
+
Xt=/^- `([^`\r\n]*)` to `([^`\r\n]*)`$/u,Zt=/^- `([^`\r\n]*)` keeps every `([^`\r\n]*)` row by `([^`\r\n]*)`$/u,Jt=Object.
|
|
114
|
+
freeze(["email","phone"]),rt="- Nothing.",Qt=Object.freeze(Object.keys(k).map(e=>`- Mode: ${e}`)),le="- Source: dump wri\
|
|
115
|
+
tten by command with `runtime` in `workdir`: `command` `argument`... `{dump}`",ct="- Unlisted tables: all up to `n` rows",
|
|
116
|
+
y=Object.freeze({section:Object.freeze(["- Database: `resource`",...Qt,le,ct]),tables:Object.freeze(["- `table`: all","-\
|
|
117
117
|
`table`: none","- `table`: recent by `column`, last `n` days","- `table`: recent by `column`, newest `n` rows","- `tabl\
|
|
118
118
|
e`: recent by `column`, last `n` days, newest `n` rows"]),links:Object.freeze(["- `table.column` to `table.column`"]),keepTogether:Object.
|
|
119
119
|
freeze(["- `parent` keeps every `child` row by `column`"]),contacts:Object.freeze(["- `table.column`: email","- `table.c\
|
|
120
|
-
olumn`: phone",
|
|
121
|
-
## Contacts","contacts"]]),
|
|
122
|
-
e]))),
|
|
123
|
-
let[s]=f(n,
|
|
124
|
-
nesis/stack.md's ## Resources by its id, such as \`database\`; ${JSON.stringify(s)} isn't one.`,t),e.model.database=s}function
|
|
125
|
-
Object.hasOwn(k,n)||e.fail(
|
|
126
|
-
|
|
127
|
-
\`--output\` \`{dump}\`.`,t);let
|
|
128
|
-
\`; \`{dump}\` is its only one.`,t);let i=n.filter(
|
|
120
|
+
olumn`: phone",rt])}),ut=new Map([["### Tables","tables"],["### Links","links"],["### Keep together","keepTogether"],["#\
|
|
121
|
+
## Contacts","contacts"]]),lt=Object.freeze([...ut.keys()]),Js=Object.freeze(Object.fromEntries([...ut].map(([e,n])=>[n,
|
|
122
|
+
e]))),Qs=Object.freeze({tables:"table rule",links:"link",keepTogether:"Keep together entry",contacts:"contact"});function en(e,n,t){
|
|
123
|
+
let[s]=f(n,K,e.location,"Staging data Database",t,{count:1});Z.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 tn(e,n,t){
|
|
125
|
+
Object.hasOwn(k,n)||e.fail(b("Staging data Mode",n,Object.keys(k)),t),e.model.mode=k[n]}function nn(e,n,t){let s=n.find(
|
|
126
|
+
a=>a!==F&&a.includes(F));s&&e.fail(`Source passes \`{dump}\` inside \`${s}\`: give it as an argument of its own, such as \
|
|
127
|
+
\`--output\` \`{dump}\`.`,t);let o=n.find(a=>a!==F&&nt.test(a));o&&e.fail(`Source has the placeholder \`${o.match(nt)[0]}\
|
|
128
|
+
\`; \`{dump}\` is its only one.`,t);let i=n.filter(a=>a===F).length;i!==1&&e.fail(i?`Source passes \`{dump}\` ${i} times\
|
|
129
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
|
|
131
|
-
st use: ${le}`,t);let
|
|
132
|
-
s[2],
|
|
133
|
-
t)}}function ce(e,n,[t,s],
|
|
134
|
-
be a whole number from ${t} to ${s}; \`${n}\` isn't one.`,i),
|
|
135
|
-
ata Unlisted tables must use: ${
|
|
136
|
-
t)}}var
|
|
137
|
-
label:"Mode",read:
|
|
138
|
-
ted",label:"Unlisted tables",read:
|
|
139
|
-
with a letter or _.`,s),n}function ue(e,n,t){let s=n.split(".");return(s.length!==2||!s.every(
|
|
130
|
+
ump to, as an argument of its own. Use: ${le}`,t)}function sn(e,n,t){let s=n.match(Kt);s||e.fail(`Staging data Source mu\
|
|
131
|
+
st use: ${le}`,t);let o=v(s[3],K,e.location,"Staging data Source command",t);nn(e,o,t),e.model.dumpSource={argv:o,workdir:E(
|
|
132
|
+
s[2],K,e.location,"Staging data Source workdir",t),runtimeRequirements:T(s[1],K,e.location,"Staging data Source runtimes",
|
|
133
|
+
t)}}function ce(e,n,[t,s],o,i){let a=/^[1-9][0-9]*$/u.test(n)?Number(n):Number.NaN;return a>=t&&a<=s||e.fail(`${o} must \
|
|
134
|
+
be a whole number from ${t} to ${s}; \`${n}\` isn't one.`,i),a}function on(e,n,t){let s=n.match(qt);s||e.fail(`Staging d\
|
|
135
|
+
ata Unlisted tables must use: ${ct}`,t),e.model.unlistedTables={maxRows:ce(e,s[1],N.unlistedRows,"Unlisted tables' rows",
|
|
136
|
+
t)}}var ei=Object.freeze([{prefix:"- Database: ",key:"database",label:"Database",read:en},{prefix:"- Mode: ",key:"mode",
|
|
137
|
+
label:"Mode",read:tn},{prefix:"- Source: ",key:"source",label:"Source",read:sn},{prefix:"- Unlisted tables: ",key:"unlis\
|
|
138
|
+
ted",label:"Unlisted tables",read:on}]);function j(e,n,t,s){return ot.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(o=>ot.test(o)))&&e.fail(`\`${n}\
|
|
140
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,
|
|
142
|
-
"none")return{rule:n};let s=n.match(
|
|
141
|
+
column:s[1]}}function q(e,n,t,s,o){e.named[n].has(t)&&e.fail(s,o),e.named[n].add(t)}function an(e,n,t){if(n==="all"||n===
|
|
142
|
+
"none")return{rule:n};let s=n.match(Yt);return s||e.fail(`Unknown table rule: ${n}. Use one of: ${y.tables.join("; ")}.`,
|
|
143
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
144
|
or both: add `, last `n` days`, `, newest `n` rows` or both, in that order.",t),{rule:"recent",by:j(e,s[1],"column",t),
|
|
145
|
-
days:s[2]===void 0?null:ce(e,s[2],
|
|
146
|
-
le's rows",t)}}function
|
|
147
|
-
"table",t);q(e,"tables",
|
|
148
|
-
e,s[2],t)})}function
|
|
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 rn(e,n,t){let s=n.match(at);s||e.fail(b("Staging data table rule",n,y.tables),t);let o=j(e,s[1],
|
|
147
|
+
"table",t);q(e,"tables",o,`### Tables names \`${o}\` twice; give each table one rule.`,t),e.model.tables.push({table:o,...an(
|
|
148
|
+
e,s[2],t)})}function cn(e,n,t){let s=n.match(Xt);s||e.fail(b("Staging data link",n,y.links),t);let o=ue(e,s[1],t),i=ue(e,
|
|
149
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:
|
|
151
|
-
let s=n.match(
|
|
152
|
-
"table",t),
|
|
153
|
-
her table whose rows refer to it.`,t),q(e,"keepTogether",`${i}.${
|
|
154
|
-
wice; name each once.`,t),e.model.keepTogether.push({parent:
|
|
150
|
+
ks",s[1],`### Links links \`${s[1]}\` twice; a column refers to one column.`,t),e.model.links.push({from:o,to:i})}function un(e,n,t){
|
|
151
|
+
let s=n.match(Zt);s||e.fail(b("Staging data Keep together entry",n,y.keepTogether),t);let o=j(e,s[1],"table",t),i=j(e,s[2],
|
|
152
|
+
"table",t),a=j(e,s[3],"column",t);o===i&&e.fail(`\`${o}\` 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}.${a}`,`### Keep together keeps \`${i}\` rows by \`${a}\` t\
|
|
154
|
+
wice; name each once.`,t),e.model.keepTogether.push({parent:o,child:i,column:a})}function ln(e,n,t){if(n===rt){e.entries.
|
|
155
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
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(
|
|
158
|
-
s[2])||e.fail(`Contact \`${s[1]}\` is an \`email\` or a \`phone\` column, written without backticks: ${
|
|
157
|
+
ntact.`,t);let s=n.match(at);s||e.fail(b("Staging data contact",n,y.contacts),t);let{table:o,column:i}=ue(e,s[1],t);Jt.includes(
|
|
158
|
+
s[2])||e.fail(`Contact \`${s[1]}\` is an \`email\` or a \`phone\` column, written without backticks: ${y.contacts.slice(
|
|
159
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:
|
|
160
|
+
push({table:o,column:i,kind:s[2]})}var ti=Object.freeze({tables:rn,links:cn,keepTogether:un,contacts:ln});var dn=["Command values: the executable and every argument are separate backticked values separated by single spaces (at\
|
|
161
161
|
most 64 values of at most 4096 characters, no line breaks). The executable is a name on PATH or a project-relative path\
|
|
162
162
|
, never absolute and never containing `..`.","Runtimes are lowercase technology ids selected in the project's Stack, suc\
|
|
163
163
|
h as `nodejs` or `php`. Paths are canonical project-relative paths; `.` is the project root.","A section containing only\
|
|
164
164
|
`- Nothing.` explicitly declares nothing. Blank lines are ignored."].join(`
|
|
165
165
|
`),u=e=>e.map(n=>` ${n}`).join(`
|
|
166
|
-
`);function _({name:e,title:n,section:t,contract:s="",summary:
|
|
166
|
+
`);function _({name:e,title:n,section:t,contract:s="",summary:o,body:i,example:a}){return{name:e,title:n,section:t,example:a,
|
|
167
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.`,"",
|
|
169
|
-
"",
|
|
170
|
-
`)}}var
|
|
168
|
+
r and meaning; Genesis transports the exact section text.`,"",o,"",i.trim(),"",dn,"","## Example","","```markdown",`## ${t}`,
|
|
169
|
+
"",a.trim(),"```",""].join(`
|
|
170
|
+
`)}}var mn=`
|
|
171
171
|
### Target \`app\`: Application
|
|
172
172
|
|
|
173
173
|
- Default.
|
|
@@ -184,7 +184,7 @@ r and meaning; Genesis transports the exact section text.`,"",a,"",i.trim(),"",l
|
|
|
184
184
|
#### Preview identity
|
|
185
185
|
|
|
186
186
|
- Command: \`tools/preview-identity\`
|
|
187
|
-
- Protocol: \`${
|
|
187
|
+
- Protocol: \`${H}\`
|
|
188
188
|
- Identity types: \`email\`
|
|
189
189
|
- Enabled environment: \`APP_PREVIEW_IDENTITY_ENABLED\`
|
|
190
190
|
- Secret environment: \`APP_PREVIEW_IDENTITY_SECRET\`
|
|
@@ -219,17 +219,17 @@ r and meaning; Genesis transports the exact section text.`,"",a,"",i.trim(),"",l
|
|
|
219
219
|
- Path: \`exports/report.csv\`
|
|
220
220
|
- Name: \`report.csv\`
|
|
221
221
|
- Media type: \`text/csv\`
|
|
222
|
-
`,
|
|
222
|
+
`,hn=Object.freeze({empty:"Staging has its own database and it starts empty; the Deployment's Migrate makes its structur\
|
|
223
223
|
e. An application without this section has this.",full:"Staging's own database is built from a whole dump of production'\
|
|
224
224
|
s. Needs Source and `### Contacts`.",sampled:"Staging's own database is built from a sample of that dump, by the recipe \
|
|
225
225
|
below. Needs Source, Unlisted tables, `### Tables` and `### Contacts`; `### Links` and `### Keep together` are optional.",
|
|
226
226
|
shared:"Staging uses production's database itself and nothing is copied. A host treats a Migrate on Staging as a migrati\
|
|
227
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."}),
|
|
228
|
+
ructure as it is."}),Ei=Object.freeze([_({name:"workspace-setup",title:"Workspace setup",section:Xe,contract:Ye,summary:"\
|
|
229
229
|
Ordered commands that prepare a session's working copy (dependencies, generated files, migrations) before any Output run\
|
|
230
230
|
s.",body:`
|
|
231
231
|
Each entry:
|
|
232
|
-
${u([
|
|
232
|
+
${u([Ze])}
|
|
233
233
|
|
|
234
234
|
- \`\` in \`workdir\` \`\` runs the command in that project directory (default \`.\`).
|
|
235
235
|
- \`\` when \`path\` exists \`\` waits: setup stays waiting until the path exists (for example a manifest the agent has not cr\
|
|
@@ -245,11 +245,11 @@ act recipe; changing any step runs setup again, and Outputs stay pending until i
|
|
|
245
245
|
step. Keep every step repeatable and non-destructive.
|
|
246
246
|
`,example:"\n- Prepare `Install dependencies` from `package.json` `package-lock.json` with `nodejs`: `npm` `ci`\n- Prepare\
|
|
247
247
|
`Migrate database` with `nodejs` if `migrations` exists: `npm` `run` `db:migrate`\n- Prepare `Install client` with `node\
|
|
248
|
-
js` in `client` when `client/package.json` exists: `npm` `ci`\n"}),_({name:"outputs",title:"Outputs",section:
|
|
248
|
+
js` in `client` when `client/package.json` exists: `npm` `ci`\n"}),_({name:"outputs",title:"Outputs",section:We,contract:Be,
|
|
249
249
|
summary:"The runnable targets Vibe64 offers: interactive terminal or web apps shown in Preview, and finite runs that pro\
|
|
250
250
|
duce downloads.",body:`
|
|
251
251
|
Headings, each target followed by its entries and then optional blocks:
|
|
252
|
-
${u(
|
|
252
|
+
${u(He)}
|
|
253
253
|
|
|
254
254
|
Target entries:
|
|
255
255
|
${u($.target)}
|
|
@@ -264,7 +264,7 @@ ication must listen there. \`{parameter:id}\` may appear in any step argument.
|
|
|
264
264
|
laywright --target <id>\`). \`development\` is the other value; omitting Data asserts nothing.
|
|
265
265
|
- Workdir defaults to \`.\`.
|
|
266
266
|
|
|
267
|
-
\`#### Parameter\` entries (at most ${
|
|
267
|
+
\`#### Parameter\` entries (at most ${ze} per target, each used in a step):
|
|
268
268
|
${u($.parameter)}
|
|
269
269
|
|
|
270
270
|
Values are single-line text of at most 4096 characters; an omitted Default is empty; Required rejects blank values. Para\
|
|
@@ -286,17 +286,17 @@ ${u($.previewIdentity)}
|
|
|
286
286
|
|
|
287
287
|
- The command is a committed, application-owned project-relative executable whose path contains \`/\`, without \`{host}\` or\
|
|
288
288
|
\`{port}\`.
|
|
289
|
-
- Enabled and Secret environment names are distinct uppercase names, not ${[...
|
|
289
|
+
- Enabled and Secret environment names are distinct uppercase names, not ${[...ae].join(", ")} or \`XDG_*\`. For an enable\
|
|
290
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
291
|
p its identity exchange disabled unless both are present.
|
|
292
292
|
- The command's stdin/stdout protocol: \`vibe64-helper spec preview-identity-command\`. The configured account names: \`vib\
|
|
293
293
|
e64-helper spec preview-identities\`.
|
|
294
|
-
`,example:
|
|
294
|
+
`,example:mn}),_({name:"deployment",title:"Deployment",section:be,contract:Se,summary:"The commands that turn a project \
|
|
295
295
|
revision into a running app, on Staging or in Production.",body:`
|
|
296
296
|
Entries:
|
|
297
297
|
${u(M)}
|
|
298
298
|
|
|
299
|
-
- Steps are ordered ${
|
|
299
|
+
- Steps are ordered ${C.join(", ")}; exactly one Serve step comes last. Serve starts the long-running application, which\
|
|
300
300
|
listens on the address given by the \`HOST\` and \`PORT\` environment variables. Arguments are passed literally (no \`{host}\
|
|
301
301
|
\` or \`{port}\` placeholders), so a server that takes its address only as arguments needs a committed project script that \
|
|
302
302
|
reads them.
|
|
@@ -345,13 +345,13 @@ job that must run once. Such state belongs in a declared resource (a database, a
|
|
|
345
345
|
- One Ready when entry is required (status 200 through 399). Workdir defaults to \`.\`. Each other entry appears at most o\
|
|
346
346
|
nce.
|
|
347
347
|
- Services: an application that runs as more than one kind of process (a different machine size, untrusted work kept apa\
|
|
348
|
-
rt from secrets, scaling apart) lists them under headings ${
|
|
348
|
+
rt from secrets, scaling apart) lists them under headings ${Q.map(e=>`\`\` ${e} \`\``).join(" and ")}, after the entries\
|
|
349
349
|
shared by every service (Workdir, Runtimes, Recreate on restore, Generated secrets, Setup code, Packages, and the Prepa\
|
|
350
350
|
re, Build and Migrate steps: one build serves every service). Without such headings the Deployment is one public service\
|
|
351
351
|
, \`web\`. With them, each service says its own Serve, Ready when, Instances and Sandbox allows, and none of these stays a\
|
|
352
352
|
bove the headings. A service's id is a lowercase letter then up to 15 lowercase letters, digits and hyphens; there are 1\
|
|
353
353
|
to 8, exactly one public. \`### Service\` entries:
|
|
354
|
-
${u(
|
|
354
|
+
${u(ee)}
|
|
355
355
|
Exposure, Serve, Ready when and Instances (1 to 100, the least first) are required. Needs at least is the smallest mac\
|
|
356
356
|
hine it runs on, in whole vCPUs and GiB, never a provider's size name. Production is the count Production starts with (d\
|
|
357
357
|
efault the least); after that its count is a running setting, set within Instances, never by a Deploy. Reached \`each ins\
|
|
@@ -361,7 +361,7 @@ secrets and values that differ per environment belong in the environment's Env.
|
|
|
361
361
|
e host gives (\`APP_ENV\`, \`HOST\`, \`PORT\`, \`APP_PUBLIC_URL\`, \`TRUSTED_PROXIES\`, \`STAGING_REACHES_REAL_PEOPLE\`, any \`V64_\` \
|
|
362
362
|
name), a generated secret, the setup code or a name a resource binds. A service's Packages come beside the shared ones.
|
|
363
363
|
- \`### Resource\` entries, for a resource of \`## Resources\` by its id:
|
|
364
|
-
${u(
|
|
364
|
+
${u(te)}
|
|
365
365
|
For a bucket only: \`local folder\` means development gives the application no bucket settings and it keeps its files in\
|
|
366
366
|
its own folder; \`own bucket\` (the default) lets the person enter a bucket's settings.
|
|
367
367
|
- Recreate on restore lists project-relative globs (only \`*\` and \`**\`) that a restored app rebuilds with its Prepare ste\
|
|
@@ -397,30 +397,30 @@ message.to);\`
|
|
|
397
397
|
`,example:"\n- Runtimes: `nodejs`\n- Recreate on restore: `node_modules`\n- Generated secrets: `SESSION_SECRET`\n- Prepare `\
|
|
398
398
|
Install`: `npm` `ci`\n- Build `Build`: `npm` `run` `build`\n- Migrate `Migrate`: `npm` `run` `db:migrate`\n- Serve `Serve`:\
|
|
399
399
|
`env` `NODE_ENV=production` `node` `server.js`\n- Ready when: `GET` `/health` returns `200`\n"}),_({name:"staging-data",
|
|
400
|
-
title:"Staging data",section:
|
|
400
|
+
title:"Staging data",section:it,contract:st,summary:"What Staging's database holds: a database of its own (empty, or bui\
|
|
401
401
|
lt from a whole or sampled dump of production's) or production's database itself. Without the section Staging has its ow\
|
|
402
402
|
n empty database.",body:`
|
|
403
403
|
Entries before any heading, each at most once:
|
|
404
|
-
${u(
|
|
404
|
+
${u(y.section)}
|
|
405
405
|
|
|
406
406
|
Headings, each at most once, in any order, each followed by its entries:
|
|
407
|
-
${u(
|
|
407
|
+
${u(lt)}
|
|
408
408
|
|
|
409
409
|
\`### Tables\` entries, each table once:
|
|
410
|
-
${u(
|
|
410
|
+
${u(y.tables)}
|
|
411
411
|
|
|
412
412
|
\`### Links\` entries, each from-column once:
|
|
413
|
-
${u(
|
|
413
|
+
${u(y.links)}
|
|
414
414
|
|
|
415
415
|
\`### Keep together\` entries, each child table and column once:
|
|
416
|
-
${u(
|
|
416
|
+
${u(y.keepTogether)}
|
|
417
417
|
|
|
418
418
|
\`### Contacts\` entries, each column once, or exactly \`- Nothing.\`:
|
|
419
|
-
${u(
|
|
419
|
+
${u(y.contacts)}
|
|
420
420
|
|
|
421
421
|
- Database (always) names the database resource of the Stack's \`## Resources\`, of kind \`mysql\` or \`postgresql\`, whose St\
|
|
422
422
|
aging data this is. Mode (always) is one of the phrases above, written without backticks:
|
|
423
|
-
${Object.entries(k).map(([e,n])=>` - \`${e}\`: ${
|
|
423
|
+
${Object.entries(k).map(([e,n])=>` - \`${e}\`: ${hn[n]}`).join(`
|
|
424
424
|
`)}
|
|
425
425
|
Only an own copy, full or sampled, has Source and \`### Contacts\`; only a sampled one has Unlisted tables, \`### Tables\`\
|
|
426
426
|
, \`### Links\` and \`### Keep together\`. Whether Staging holds production's data, or uses its database, is the person's de\
|
|
@@ -434,9 +434,9 @@ oduction's database. \`{dump}\` is an argument of its own, exactly once, and the
|
|
|
434
434
|
for \`mysql\`, SQL text as \`mariadb-dump\` or \`mysqldump\` writes it, plain or gzip-compressed, of one database's tables (ne\
|
|
435
435
|
ver \`--databases\` or \`--all-databases\`); for \`postgresql\`, \`pg_dump\` custom format (\`-Fc\`).
|
|
436
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 (${
|
|
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
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 (${
|
|
439
|
+
at most \`n\` rows (${N.unlistedRows.join(" to ")}); a larger one needs a rule of its own.
|
|
440
440
|
- A host also keeps every row a kept row refers to, through the database's own foreign keys and \`### Links\`, which names\
|
|
441
441
|
a column that refers to another column without a foreign key saying so. \`### Keep together\` goes the other way: for eve\
|
|
442
442
|
ry kept \`parent\` row, every \`child\` row whose \`column\` refers to it is kept too. A host loads the copy with the database\
|
|
@@ -452,13 +452,13 @@ de` `scripts/production-dump.js` `{dump}`\n- Unlisted tables: all up to `10000`
|
|
|
452
452
|
obs`: recent by `created_at`, last `180` days\n- `job_events`: recent by `id`, newest `200000` rows\n- `messages`: recent \
|
|
453
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
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:
|
|
455
|
+
ers.mobile`: phone\n"}),_({name:"packaging",title:"Packaging",section:_e,contract:ye,summary:"Source facts Vibe64 needs \
|
|
456
456
|
to turn this project into distributable packages: registry packages, static web bundles and generated mobile app shells.\
|
|
457
457
|
Where each package is published (targets, channels, builders) is Vibe64 project state, never this section.",body:`
|
|
458
458
|
Headings: \`\` ${we} \`\`, each followed by entries:
|
|
459
|
-
${u(
|
|
459
|
+
${u(ve)}
|
|
460
460
|
|
|
461
|
-
- Packers (closed set): ${
|
|
461
|
+
- Packers (closed set): ${ie.map(e=>`\`${e}\``).join(", ")}. Package ids are unique lowercase ids with single hyphens.
|
|
462
462
|
- \`npm\`: Version from \`package.json\` or \`external\`; Vibe64 runs \`npm pack\` in Workdir after the optional Prepare and Bui\
|
|
463
463
|
ld steps.
|
|
464
464
|
- \`python-dist\`: Build (for example \`python\` \`-m\` \`build\`), Output (for example \`dist\`) and Version from \`pyproject.toml\
|
|
@@ -482,44 +482,52 @@ dependencies`: `npm` `ci`\n- Build `Build bundled client`: `npm` `run` `build`\n
|
|
|
482
482
|
Platforms: `android`\n- Id: `com.example.notes`\n- Name: `Notes`\n- Icon: `assets/icon-1024.png`\n- Version from: `package.\
|
|
483
483
|
json`\n- Deep link scheme from: `APP_URL_SCHEME`\n- Permission `camera`: Take photos to attach to notes.\n\n### Package `sdk\
|
|
484
484
|
`: Notes SDK\n\n- Packer: `npm`\n- Workdir: `packages/notes-sdk`\n- Runtimes: `nodejs`\n- Version from: `package.json`\n"}),
|
|
485
|
-
_({name:"resource-estimates",title:"Resource estimates",section:
|
|
485
|
+
_({name:"resource-estimates",title:"Resource estimates",section:Qe,contract:Je,summary:"Optional memory planning hints f\
|
|
486
486
|
or Outputs and Workspace setup. They are not observed usage, reservations, minimum requirements or granted limits; the e\
|
|
487
487
|
xecution host owns those choices.",body:`
|
|
488
488
|
Headings: \`\` ### Output \`id\` \`\` (an id declared in Outputs) or \`### Workspace setup\` (requires declared setup steps), ea\
|
|
489
489
|
ch followed by fields:
|
|
490
|
-
${u([...
|
|
490
|
+
${u([...tt.keys()].map(e=>`- ${e}: \`number\``))}
|
|
491
491
|
|
|
492
492
|
- An interactive output declares the four Startup and Running fields. A finite output and Workspace setup declare only T\
|
|
493
493
|
ypical MiB and High MiB.
|
|
494
|
-
- Values are integer MiB from 1 through ${
|
|
494
|
+
- Values are integer MiB from 1 through ${et}; typical never exceeds high. Duplicate operations or fields and unknown fi\
|
|
495
495
|
elds are rejected. The section is at most 64 KiB and 2048 lines.
|
|
496
496
|
- Invalid estimates never change Outputs availability or setup readiness; the host then uses its generic policy. Changin\
|
|
497
497
|
g only estimates does not rerun setup.
|
|
498
498
|
`,example:"\n### Output `app`\n\n- Startup typical MiB: `1024`\n- Startup high MiB: `1536`\n- Running typical MiB: `768`\n- Ru\
|
|
499
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
|
|
500
|
+
opment",title:"Connected development",section:Me,contract:Le,summary:"How this project consumes the working source of it\
|
|
501
501
|
s connected repositories (its own dependencies under development) in a session.",body:`
|
|
502
502
|
Entries:
|
|
503
|
-
${u(
|
|
504
|
-
|
|
505
|
-
- Declare a Default package type
|
|
506
|
-
|
|
507
|
-
runner.
|
|
508
|
-
-
|
|
509
|
-
|
|
510
|
-
|
|
503
|
+
${u(Ve)}
|
|
504
|
+
|
|
505
|
+
- Declare a Default package type, a Sources file, or both. Prepare, Verify and Save entries and a Custom runner need the\
|
|
506
|
+
Sources file. All Prepare entries precede Verify entries, and Save entries come last. Steps run unconditionally (no \`wh\
|
|
507
|
+
en\`/\`if\`); at most one Custom runner.
|
|
508
|
+
- Save entries run when the session is saved, after its connected copies are saved and their pins recorded, before the p\
|
|
509
|
+
roject's own commit, which takes what they change; one that fails stops that commit. Use them for what Vibe64 does not r\
|
|
510
|
+
ecord itself, such as a custom connection's release state. A \`composition\` connection needs none for its pin: Save write\
|
|
511
|
+
s \`${De}\` (schema \`${$e}\`: \`{"repositories":[{"name","repository","commit","tree"}]}\`) with each composition's saved \
|
|
512
|
+
commit, in the same commit, so the project's composer reads the pin from there. A typed \`dependency\` has no pin: Save mo\
|
|
513
|
+
ves the project's own manifest and lock to a newly published version, and Staging and Production install what they name.\
|
|
514
|
+
|
|
515
|
+
- Package types: ${oe.map(({value:e})=>`\`${e}\``).join(", ")}. For every type but \`custom\`, Vibe64 itself puts each \`de\
|
|
516
|
+
pendency\` connection in effect in the session (its own step after every Prepare entry) and proves it (its own check afte\
|
|
517
|
+
r every Verify entry), with no project command; \`- Default package type: <type>\` alone is enough. Project Prepare/Verify\
|
|
518
|
+
entries are for what Vibe64 does not do: a \`composition\` connection needs a Verify entry proving the project assembles \
|
|
519
|
+
it. A \`gradle\` connection needs no flag: every command of the session gets its own Gradle user home, whose init.d includ\
|
|
520
|
+
es the connected checkouts.
|
|
511
521
|
- The Sources file is a development-only path outside \`.git\`, never tracked; Vibe64 writes it when it prepares the sessi\
|
|
512
|
-
on's connected repositories and excludes it from Git. Its JSON: \`{"schema":"${
|
|
522
|
+
on's connected repositories and excludes it from Git. Its JSON: \`{"schema":"${Ce}","sessionId":"\u2026","repositories":[{"na\
|
|
513
523
|
me":"\u2026","repository":"https://github.com/owner/repo","relationship":"dependency|composition","type":"npm","sourceRoot":"\
|
|
514
524
|
/absolute/session/connected/repo"}]}\`; each \`sourceRoot\` is this session's own copy of that repository, and a custom con\
|
|
515
525
|
nection also carries \`"script"\`.
|
|
516
|
-
- Custom connections: ${
|
|
517
|
-
`,example:"\n- Default package type: `npm`\n-
|
|
518
|
-
|
|
519
|
-
-connected.mjs`\n"}),_({name:"project-services",title:"Project services",section:ze,contract:He,summary:"Foreground help\
|
|
520
|
-
er processes (workers, local reference services) that Vibe64 starts before an Output.",body:`
|
|
526
|
+
- Custom connections: ${Pe}
|
|
527
|
+
`,example:"\n- Default package type: `npm`\n"}),_({name:"project-services",title:"Project services",section:Fe,contract:Ke,
|
|
528
|
+
summary:"Foreground helper processes (workers, local reference services) that Vibe64 starts before an Output.",body:`
|
|
521
529
|
Entries:
|
|
522
|
-
${u([
|
|
530
|
+
${u([qe])}
|
|
523
531
|
|
|
524
532
|
- Service ids are unique, start with a lowercase letter and use up to 64 lowercase letters, digits and hyphens. Workdir \
|
|
525
533
|
defaults to \`.\`.
|
|
@@ -531,16 +539,16 @@ ver spawn untracked background work.
|
|
|
531
539
|
rd the address in the session's ignored runtime folder) and check your own instance's readiness. Never assume a shared f\
|
|
532
540
|
ixed port.
|
|
533
541
|
`,example:"\n- Start `worker` with `nodejs` in `tools`: `npm` `run` `worker`\n- Start `reference` per session with `nodejs\
|
|
534
|
-
`: `npm` `run` `reference:service`\n"}),_({name:"integration-setup",title:"Integration setup",section:
|
|
542
|
+
`: `npm` `run` `reference:service`\n"}),_({name:"integration-setup",title:"Integration setup",section:xe,contract:je,summary:"\
|
|
535
543
|
The one application-owned command the editor's Integrations controls call to configure, connect and check the applicatio\
|
|
536
544
|
n's external integrations.",body:`
|
|
537
545
|
Exactly one entry:
|
|
538
|
-
${u([
|
|
546
|
+
${u([Ue])}
|
|
539
547
|
|
|
540
548
|
The command's request/response protocol and the \`integrations.json\` usage: \`vibe64-helper spec integration-setup-command\
|
|
541
549
|
\`.
|
|
542
550
|
`,example:"\n- Command with `nodejs` in `.`: `node` `scripts/integrations.js`\n"}),_({name:"architecture-inspection",title:"\
|
|
543
|
-
Architecture inspection",section:Re,contract:
|
|
551
|
+
Architecture inspection",section:Re,contract:Te,summary:"Optional project-owned inspectors that the Architecture view ru\
|
|
544
552
|
ns to observe the application's structure (pages, routes, entry points).",body:`
|
|
545
553
|
Headings: \`\` ### Inspector \`id\`: Title \`\`, each followed by fields:
|
|
546
554
|
${u(Object.entries(L).map(([e,[,n]])=>`- ${e}: ${n}`))}
|
|
@@ -554,13 +562,13 @@ ject files before the inspector runs.
|
|
|
554
562
|
inked package folder (\`node_modules/<name>\` or \`node_modules/@scope/<name>\`); the file must stay inside that package's r\
|
|
555
563
|
eal folder.
|
|
556
564
|
- On analysis the command receives one \`jskit.architecture-inspection-input.v1\` JSON request on stdin (files with hashes\
|
|
557
|
-
, packages, package identity, UI discovery, the Stack hash and an optional \`cacheDirectory\`) and must print one \`${
|
|
565
|
+
, packages, package identity, UI discovery, the Stack hash and an optional \`cacheDirectory\`) and must print one \`${pn}\
|
|
558
566
|
\` JSON document; Genesis owns that observation schema.
|
|
559
567
|
- \`cacheDirectory\` is an absolute directory for this inspector alone, outside the source; the inspector may read and wri\
|
|
560
568
|
te only there. When it is absent or unusable, inspect without a cache. Ignore unknown request fields.
|
|
561
569
|
`,example:"\n### Inspector `ui`: UI routes\n\n- Runtime: `nodejs`\n- Directory: `.`\n- Command: `node` `tools/inspect-ui.mjs`\
|
|
562
570
|
\n- Timeout seconds: `30`\n- Max output bytes: `1048576`\n- Entry files: `src/main.js`\n"}),_({name:"architecture-layout",
|
|
563
|
-
title:"Architecture layout",section:
|
|
571
|
+
title:"Architecture layout",section:Ae,contract:Ne,summary:"Presentation groups for the Architecture view. Declarations \
|
|
564
572
|
neither discover subsystems nor change their ownership.",body:`
|
|
565
573
|
Headings: \`\` ### Group \`id\`: Title \`\`, each followed by:
|
|
566
574
|
- Kind: ${V.map(e=>`\`${e}\``).join(" or ")}
|
|
@@ -571,4 +579,4 @@ Headings: \`\` ### Group \`id\`: Title \`\`, each followed by:
|
|
|
571
579
|
- A Subsystem is a directory root from \`genesis/subsystems.md\`; each root is placed once. A missing root is reported, ne\
|
|
572
580
|
ver invented.
|
|
573
581
|
`,example:"\n### Group `shared`: Shared libraries\n\n- Kind: `libraries`\n- Purpose: `Code reused by every surface.`\n- Subsy\
|
|
574
|
-
stem: `packages/shared`\n"})]);export{
|
|
582
|
+
stem: `packages/shared`\n"})]);export{Ei as VIBE64_GENESIS_AGENT_SPECS};
|