vibe64 0.1.65 → 0.1.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/run.js +2004 -1363
- package/bin/server.js +282 -276
- package/bin/upgrade-state.js +4673 -4470
- package/dist/assets/{GithubBrowserTabs-D21Nl3QI.js → GithubBrowserTabs-CW3GBeJu.js} +1 -1
- package/dist/assets/{LocalDatabaseServer-POxY1K1U.js → LocalDatabaseServer-DYh3UF9q.js} +1 -1
- package/dist/assets/{SelectField-Dezd0B3y.js → SelectField-Df50ZFLj.js} +1 -1
- package/dist/assets/{ShellOutlet-DfF9vsWA.js → ShellOutlet-DkLdtzJW.js} +1 -1
- package/dist/assets/{Vibe64AuthSettingsButton-I3ufyScN.js → Vibe64AuthSettingsButton-Cksj7FS6.js} +1 -1
- package/dist/assets/{Vibe64AuthSettingsButton-DFfFPrd7.css → Vibe64AuthSettingsButton-DfKYI6ZS.css} +1 -1
- package/dist/assets/{Vibe64ConversationLog-C04oOQ2g.js → Vibe64ConversationLog-BC0eDtUP.js} +1 -1
- package/dist/assets/{Vibe64DashboardShell-BbrOUmRD.js → Vibe64DashboardShell-DX5dOXAB.js} +1 -1
- package/dist/assets/{Vibe64DatabaseWorkspace-VPEM2o1v.js → Vibe64DatabaseWorkspace-8i-RDc9y.js} +1 -1
- package/dist/assets/{Vibe64FileArea-C_nC2bPk.js → Vibe64FileArea-EK5yUio3.js} +1 -1
- package/dist/assets/{Vibe64OutputControls-DTO3Fw3x.js → Vibe64OutputControls--LB4G83q.js} +1 -1
- package/dist/assets/{Vibe64RepositoryWorkspace-B8xcCOvL.js → Vibe64RepositoryWorkspace-D6uJCype.js} +1 -1
- package/dist/assets/{Vibe64SessionFiles-Cb9Mxsyq.js → Vibe64SessionFiles-DVHGc7hd.js} +1 -1
- package/dist/assets/{Vibe64SessionSourceEditor-CVQ3NRjh.js → Vibe64SessionSourceEditor-Bws5ihr-.js} +1 -1
- package/dist/assets/{Vibe64UiStoryboardView-BV4JFgcZ.js → Vibe64UiStoryboardView-BmABkyG4.js} +1 -1
- package/dist/assets/{Vibe64UnavailableSessions-DGQAxYE-.js → Vibe64UnavailableSessions-C6Bkwsqk.js} +1 -1
- package/dist/assets/{_pageId_-CkG15vv4.js → _pageId_-FjW-3sqF.js} +1 -1
- package/dist/assets/{_sessionId_-Bka3RUmK.js → _sessionId_-4cH83Bfi.js} +1 -1
- package/dist/assets/_slug_-Cazfy5ui.js +14 -0
- package/dist/assets/_slug_-DQDycgFK.css +1 -0
- package/dist/assets/{access-Xo3unxGO.js → access-mxcxtn7b.js} +1 -1
- package/dist/assets/{app-B0spNegd.js → app-8zP_FAuO.js} +1 -1
- package/dist/assets/assistantRouting-Bbxguvre.js +3 -0
- package/dist/assets/{changes-DFv4tuoO.js → changes-cmlEyHug.js} +1 -1
- package/dist/assets/{client-4uCr4dYG.js → client-BJBzomgt.js} +1 -1
- package/dist/assets/{client-CVuXqm4b.js → client-C1i-bIgL.js} +1 -1
- package/dist/assets/{client-Dlg1kjjO.js → client-C7yZ1hEm.js} +1 -1
- package/dist/assets/{client-CevjVK2b.js → client-CQ49uWhR.js} +1 -1
- package/dist/assets/{client-DR0w56e8.js → client-D46Uu-YO.js} +2 -2
- package/dist/assets/{client-BjMjS6lX.js → client-DKNTl1to.js} +2 -2
- package/dist/assets/{conversation-OkWbkHjm.js → conversation-CFJRkeTj.js} +3 -3
- package/dist/assets/{conversation-DReMq0MF.css → conversation-COcuIkcD.css} +1 -1
- package/dist/assets/conversation-CexAK3Qk.js +1 -0
- package/dist/assets/{dashboard-CAca9MQn.js → dashboard-CMtWKazq.js} +1 -1
- package/dist/assets/{english-definitions-BtX8KA5g.js → english-definitions-DiyU9O9D.js} +1 -1
- package/dist/assets/{env-DrNyBVkB.js → env-LUc22Wgd.js} +1 -1
- package/dist/assets/{error-BqMxhgpB.js → error-BccdQn04.js} +1 -1
- package/dist/assets/{error-BQ7r64JO.js → error-DPDAz9Td.js} +1 -1
- package/dist/assets/{errorMessageHelpers-B49LyMJi.js → errorMessageHelpers-G32Hjqfm.js} +1 -1
- package/dist/assets/{health-B5yTW5Tt.js → health-CfMjMJFf.js} +1 -1
- package/dist/assets/{history-S3anp6xg.js → history-hX_kNskf.js} +1 -1
- package/dist/assets/{httpClient-Bwitq9Xf.js → httpClient-C71X5grL.js} +1 -1
- package/dist/assets/{i18n-BuXRXGaO.js → i18n-5EHeMSvt.js} +1 -1
- package/dist/assets/{i18n-DQPYjuW7.js → i18n-BSfPKqM3.js} +1 -1
- package/dist/assets/{i18n-Dm74yE_M.js → i18n-Dq-ep9n7.js} +1 -1
- package/dist/assets/index-BJWiPV6i.css +1 -0
- package/dist/assets/index-FVeEbKiO.js +134 -0
- package/dist/assets/{integrations-C7dj7el_.js → integrations-Ccb8EOEO.js} +14 -15
- package/dist/assets/{integrations-CwgrZgmM.css → integrations-CtnIjM1Y.css} +1 -1
- package/dist/assets/{issues-OkV4v4GX.js → issues-Bxtt7oqi.js} +1 -1
- package/dist/assets/{learning-lW9nBGjT.js → learning-BUx9jo91.js} +1 -1
- package/dist/assets/{pages-shOT9IVe.js → pages-D43zM2UW.js} +1 -1
- package/dist/assets/{project-files-D_K1N0JF.js → project-files-BX3zZCcl.js} +1 -1
- package/dist/assets/{publish-Bxe4ZCqe.js → publish-DatierL2.js} +1 -1
- package/dist/assets/{pull-requests-CQvk0TeH.js → pull-requests-DNkOjcuy.js} +1 -1
- package/dist/assets/{repository-CI2CqDwF.js → repository-0EKOcyTL.js} +1 -1
- package/dist/assets/{settings-DIVrFrs4.js → settings-DbR9JIc3.js} +1 -1
- package/dist/assets/{studioGateApi-UqmdV50W.js → studioGateApi-B9EUTtMx.js} +1 -1
- package/dist/assets/{studioUrls-k_pQIuPs.js → studioUrls-BR4ZL-TN.js} +1 -1
- package/dist/assets/{useArchivedVibe64Sessions-BkWrTOzg.js → useArchivedVibe64Sessions-B8VDhA9F.js} +1 -1
- package/dist/assets/useAssistantAttachments-C9kAnWqw.js +2 -0
- package/dist/assets/useCommand-CfqxMb4C.js +1 -0
- package/dist/assets/{useEndpointResource-DZTjr9gg.js → useEndpointResource-BwGXpV2u.js} +1 -1
- package/dist/assets/{useUiFeedback-BU4NyMq8.js → useUiFeedback-8Wvg7A_S.js} +1 -1
- package/dist/assets/{useVibe64ConversationLog-BADhWyNY.js → useVibe64ConversationLog-7wgLlKG5.js} +2 -2
- package/dist/assets/useVibe64Learning-DkneotqS.js +5 -0
- package/dist/assets/{useVibe64SessionData-DvFvAJC-.js → useVibe64SessionData-DuJ-dHR8.js} +1 -1
- package/dist/assets/{useVibe64SessionSelection-BukDTAxb.js → useVibe64SessionSelection-BwjtqeIR.js} +1 -1
- package/dist/assets/{vibe64FileUpload-BDkcaUyk.js → vibe64FileUpload-D_rOa1R8.js} +1 -1
- package/dist/assets/{vibe64RepositoryRealtime-DX2DEqIz.js → vibe64RepositoryRealtime-CVGNqwxz.js} +1 -1
- package/dist/assets/vibe64SavedEnvValues-CCZew0j7.js +1 -0
- package/dist/assets/{vibe64SessionFocus-CzuP3qPT.js → vibe64SessionFocus-B4diopOJ.js} +1 -1
- package/dist/index.html +23 -23
- package/docs/colleague-usage/ai-accounts.md +7 -7
- package/docs/colleague-usage/ai-model-setups.md +1 -1
- package/docs/colleague-usage/ai-tasks.md +2 -1
- package/docs/colleague-usage/auto-workflow.md +67 -44
- package/docs/colleague-usage/chat-settings.md +115 -114
- package/docs/colleague-usage/coding-agent-goal-pause.md +34 -12
- package/docs/colleague-usage/coding-agent-goals.md +33 -16
- package/docs/colleague-usage/coding-agent-history.md +9 -0
- package/docs/colleague-usage/coding-agent-questions.md +7 -0
- package/docs/colleague-usage/coding-agent-recovery.md +3 -0
- package/docs/colleague-usage/coding-agents.md +10 -4
- package/docs/colleague-usage/connected-repositories.md +4 -1
- package/docs/colleague-usage/developing-vibe64.md +11 -5
- package/docs/colleague-usage/development-env.md +74 -32
- package/docs/colleague-usage/github-work.md +39 -5
- package/docs/colleague-usage/integrations.md +2 -2
- package/docs/colleague-usage/main-chat-approvals.md +7 -6
- package/docs/colleague-usage/message-delivery-recovery.md +1 -1
- package/docs/colleague-usage/passes.md +260 -0
- package/docs/colleague-usage/plans.md +27 -16
- package/docs/colleague-usage/session-timeline.md +93 -0
- package/docs/colleague-usage/temporary-chats.md +6 -0
- package/docs/colleague-usage/ui-pass.md +30 -32
- package/docs/colleague-usage/workspace-preparation.md +51 -0
- package/node_modules/@jskit-ai/assistant-core/CHANGELOG.md +12 -0
- package/node_modules/@jskit-ai/assistant-core/locales/en.json +2 -0
- package/node_modules/@jskit-ai/assistant-core/package.json +1 -1
- package/node_modules/@jskit-ai/assistant-runtime/CHANGELOG.md +5 -0
- package/node_modules/@jskit-ai/assistant-runtime/package.json +1 -1
- package/node_modules/@jskit-ai/assistant-voice/package.json +1 -1
- package/node_modules/@jskit-ai/connector-google-calendar/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/connector-google-calendar/package.json +1 -1
- package/node_modules/@jskit-ai/connector-google-calendar/patterns/calendar-cli/example/.env.example +1 -0
- package/node_modules/@jskit-ai/connectors-catalog/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/connectors-catalog/package.json +1 -1
- package/node_modules/@jskit-ai/connectors-catalog/patterns/api-key-connection/PATTERN.md +4 -1
- package/node_modules/@jskit-ai/connectors-catalog/patterns/oauth-connection/PATTERN.md +3 -1
- package/node_modules/@jskit-ai/connectors-core/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/connectors-core/README.md +3 -1
- package/node_modules/@jskit-ai/connectors-core/package.json +1 -1
- package/node_modules/@jskit-ai/http-runtime/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/http-runtime/package.json +1 -1
- package/node_modules/@jskit-ai/kernel/CHANGELOG.md +6 -0
- package/node_modules/@jskit-ai/kernel/package.json +3 -4
- package/node_modules/@jskit-ai/payments-core/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/payments-core/locales/en.json +1 -1
- package/node_modules/@jskit-ai/payments-core/package.json +1 -1
- package/node_modules/@jskit-ai/realtime/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/realtime/package.json +1 -1
- package/node_modules/@jskit-ai/realtime/patterns/realtime-application/example/.env.example +1 -0
- package/node_modules/@jskit-ai/resource-core/package.json +1 -1
- package/node_modules/@jskit-ai/uploads-runtime/package.json +1 -1
- package/node_modules/@local/vibe64-core/package.json +2 -0
- package/node_modules/@local/vibe64-execution/package.json +1 -0
- package/node_modules/@local/vibe64-execution/src/host/execHelper.js +715 -666
- package/node_modules/@local/vibe64-genesis/bin/vibe64-genesis-host-context +989 -847
- package/node_modules/@local/vibe64-genesis/src/server/agentSpecs.js +129 -107
- package/node_modules/@local/vibe64-genesis/src/server/index.js +632 -614
- package/node_modules/@local/vibe64-genesis/src/server/packaging.js +27 -28
- package/node_modules/@local/vibe64-genesis/src/server/promptContext.js +172 -162
- package/node_modules/@local/vibe64-runtime/package.json +1 -0
- package/node_modules/@local/vibe64-runtime/src/server/codexAppServerProcess.js +1042 -898
- package/node_modules/@local/vibe64-terminals/package.json +2 -1
- package/node_modules/@local/vibe64-terminals/src/server/opencodeSessionEnvironmentPlugin.js +560 -420
- package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +586 -581
- package/package.json +15 -15
- package/server.bundle.mjs +44592 -44103
- package/dist/assets/_slug_-7Oo7pGKn.js +0 -14
- package/dist/assets/_slug_-BaxjtsgP.css +0 -1
- package/dist/assets/assistantRouting-B9cub38g.js +0 -3
- package/dist/assets/conversation-D7T_us2O.js +0 -1
- package/dist/assets/index-DSyb-mRJ.css +0 -1
- package/dist/assets/index-JBqyg0mr.js +0 -134
- package/dist/assets/useAssistantAttachments-DqlNFiha.js +0 -2
- package/dist/assets/useCommand-D-MIMmhp.js +0 -1
- package/dist/assets/useVibe64Learning-CbsI-XHB.js +0 -5
- package/dist/assets/vibe64SavedEnvValues-CgfMvj_h.js +0 -1
|
@@ -1,104 +1,106 @@
|
|
|
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,r!==void 0&&(this.details=r)}},
|
|
2
|
+
import{ARCHITECTURE_OBSERVATIONS_SCHEMA as lt}from"genesis-compiler";import $ from"node:path";var M=class extends Error{constructor(n,t,r=void 0){super(t),this.name="Vibe64StackOperationErr\
|
|
3
|
+
or",this.code=n,r!==void 0&&(this.details=r)}},F=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
7
|
spection",VIBE64_ARCHITECTURE_LAYOUT_INVALID:"architecture-layout"}),Ne=/ Exact grammar: vibe64-helper spec [a-z-]+\.$/u;
|
|
8
|
-
function Ae(e,n){let t=
|
|
8
|
+
function Ae(e,n){let t=F[e],r=String(n).replace(Ne,"");return t?`${r} Exact grammar: vibe64-helper spec ${t}.`:r}function s(e,n,t,r,c={}){throw new M(e,Ae(e,t),{path:n,...r===void 0?{}:{line:r},...c})}function Ce(e){let n=[...String(e||"").matchAll(/`([^`\r\n]+)`/gu)];return n.length===0||n.map(t=>t[0]).join(" ")!==e?null:
|
|
9
9
|
n.map(t=>t[1])}function T(e,n,t,r,c,i={}){let{count:o,maximum:u=64}=i,d=Ce(e);if(!d||d.length>u||o!==void 0&&d.length!==
|
|
10
10
|
o||d.some(y=>y.length>4096||/[\0\r\n]/u.test(y))){let y=o===void 0?"separate non-empty":`exactly ${o}`;s(n,t,`${r} must \
|
|
11
11
|
contain ${y} backticked ${o===1?"value":"values"}.`,c)}return d}function Pe(e=""){return typeof e=="string"&&!!e&&!/[\s\0{}]/u.
|
|
12
|
-
test(e)&&!$.isAbsolute(e)&&!e.split(/[\\/]/u).includes("..")}function
|
|
12
|
+
test(e)&&!$.isAbsolute(e)&&!e.split(/[\\/]/u).includes("..")}function S(e,n,t,r,c){let i=T(e,n,t,r,c);return Pe(i[0])||s(
|
|
13
13
|
n,t,`${r} must begin with a safe executable.`,c),i}function De(e=""){return typeof e=="string"&&!!e&&!/[\0\r\n\\]/u.test(
|
|
14
|
-
e)&&!$.posix.isAbsolute(e)&&$.posix.normalize(e)===e&&!e.split("/").some(n=>!n||n==="..")}function
|
|
15
|
-
allowRoot:o=!0}=i;return(!De(e)||!o&&e===".")&&s(n,t,`${r} must be a canonical project-relative path.`,c),e}function w(e,n,t,r,c){
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
e)&&!$.posix.isAbsolute(e)&&$.posix.normalize(e)===e&&!e.split("/").some(n=>!n||n==="..")}function E(e,n,t,r,c,i={}){let{
|
|
15
|
+
allowRoot:o=!0}=i;return(!De(e)||!o&&e===".")&&s(n,t,`${r} must be a canonical project-relative path.`,c),e}function w(e,n,t,r,c){let i=T(e,n,t,r,c);return i.some(o=>!/^[a-z0-9]+(?:-[a-z0-9]+)*$/u.test(o))&&s(n,t,`${r} must use \
|
|
16
|
+
lowercase technology ids separated into backticked values.`,c),new Set(i).size!==i.length&&s(n,t,`${r} contains a duplic\
|
|
17
|
+
ate technology id.`,c),i}function g(e=[]){let n=e.map(t=>t.trim()).filter(Boolean);return n.length===1&&n[0]==="- Nothing."}var ft=Object.freeze(
|
|
18
|
+
{SPEC_BY_ERROR_CODE:F});var z="vibe64.application-deployment.v1",q="Deployment";var Ve="- Recreate on restore: ",je="- Generated secrets: ",Le="- Setup code: ",xe="- Sandbox allows: ",Be="- Instances:\
|
|
19
|
+
up to ";var Ue=Object.freeze(["fuse","gvisor"]);var yt=Object.freeze({APP_ENV:"Deployment never sets APP_ENV: the host gives every step the environment it deploys to. R\
|
|
20
|
+
emove APP_ENV from Deployment.",SIDE_EFFECTS:"SIDE_EFFECTS was replaced by APP_ENV, which the host gives every step. Rem\
|
|
21
|
+
ove SIDE_EFFECTS from Deployment."}),We=Object.freeze({prepare:0,build:1,migrate:2,serve:3}),L=Object.keys(We).map(e=>e[0].
|
|
22
|
+
toUpperCase()+e.slice(1)),K=Object.freeze(["- Workdir: `path`","- Runtimes: `runtime`...",`${Ve}\`glob\`...`,`${je}\`NAME\
|
|
23
|
+
\`...`,`${Le}\`NAME\``,`${xe}${Ue.map(e=>`\`${e}\``).join(" ")}`,`${Be}\`count\``,"- Ready when: `GET` `/path` returns `\
|
|
24
|
+
200`",`- ${L.join("|")} \`label\`: \`command\` \`argument\`...`]);var Y="vibe64.packaging.v1",X="Packaging",bt=Object.freeze(["genesis",".genesis",".agents",".claude",".codex",".opencode"]);var Ge=Object.freeze({npm:Object.freeze({entries:["workdir","runtimes","prepare","build","environment","versionFrom"],required:[
|
|
24
25
|
"versionFrom"],versionSources:["package.json","external"]}),"python-dist":Object.freeze({entries:["workdir","runtimes","\
|
|
25
26
|
prepare","build","environment","output","versionFrom"],required:["build","output","versionFrom"],versionSources:["pyproj\
|
|
26
27
|
ect.toml","external"]}),"web-bundle":Object.freeze({entries:["workdir","runtimes","prepare","build","environment","outpu\
|
|
27
28
|
t"],required:["build","output"],versionSources:[]}),capacitor:Object.freeze({entries:["workdir","content","platforms","a\
|
|
28
29
|
pplicationId","name","icon","versionFrom","deepLinkSchemeFrom","appLinkDomainsFrom","permission"],required:["content","p\
|
|
29
30
|
latforms","applicationId","name","icon","versionFrom"],versionSources:["package.json","external"]})}),B=Object.freeze(Object.
|
|
30
|
-
keys(
|
|
31
|
-
\``).join(" | "),
|
|
31
|
+
keys(Ge)),He=Object.freeze(["android"]),Fe=Object.freeze(["package.json","pyproject.toml","external"]),x=e=>e.map(n=>`\`${n}\
|
|
32
|
+
\``).join(" | "),k=Object.freeze([["- Packer: ","packer",`- Packer: ${x(B)}`],["- Workdir: ","workdir","- Workdir: `path\
|
|
32
33
|
`"],["- Runtimes: ","runtimes","- Runtimes: `runtime`..."],["- Output: ","output","- Output: `path`"],["- Version from: ",
|
|
33
|
-
"versionFrom",`- Version from: ${x(
|
|
34
|
+
"versionFrom",`- Version from: ${x(Fe)}`],["- Platforms: ","platforms",`- Platforms: ${x(He)}...`],["- Id: ","applicatio\
|
|
34
35
|
nId","- Id: `reverse.dns.id`"],["- Name: ","name","- Name: `Display name`"],["- Icon: ","icon","- Icon: `path/to/icon-10\
|
|
35
36
|
24.png`"],["- Deep link scheme from: ","deepLinkSchemeFrom","- Deep link scheme from: `ENV_NAME`"],["- App link domains \
|
|
36
|
-
from: ","appLinkDomainsFrom","- App link domains from: `ENV_NAME`"]]),J="### Package `id`: Label",Z=Object.freeze([
|
|
37
|
-
|
|
38
|
-
ntent: package `web-bundle-id`",...
|
|
37
|
+
from: ","appLinkDomainsFrom","- App link domains from: `ENV_NAME`"]]),J="### Package `id`: Label",Z=Object.freeze([k[0][2],
|
|
38
|
+
k[1][2],k[2][2],"- Prepare|Build `label`: `command` `argument`...","- Environment `NAME`: `value`",k[3][2],k[4][2],"- Co\
|
|
39
|
+
ntent: package `web-bundle-id`",...k.slice(5).map(([,,e])=>e),"- Permission `id`: User-facing reason."]),It=Object.freeze(
|
|
39
40
|
{packer:"Packer",workdir:"Workdir",runtimes:"Runtimes",prepare:"Prepare",build:"Build",environment:"Environment",output:"\
|
|
40
41
|
Output",versionFrom:"Version from",content:"Content",platforms:"Platforms",applicationId:"Id",name:"Name",icon:"Icon",deepLinkSchemeFrom:"\
|
|
41
|
-
Deep link scheme from",appLinkDomainsFrom:"App link domains from",permission:"Permission"});var Q="vibe64.architecture-inspection.v1",ee="Architecture inspection",l="VIBE64_ARCHITECTURE_INSPECTION_INVALID",
|
|
42
|
-
nesis/stack.md#Architecture inspection",te=120,ne=64*1024*1024,se=64*1024,
|
|
42
|
+
Deep link scheme from",appLinkDomainsFrom:"App link domains from",permission:"Permission"});var Q="vibe64.architecture-inspection.v1",ee="Architecture inspection",l="VIBE64_ARCHITECTURE_INSPECTION_INVALID",ze="ge\
|
|
43
|
+
nesis/stack.md#Architecture inspection",te=120,ne=64*1024*1024,se=64*1024,qe=Object.freeze(["runtimeRequirements","workd\
|
|
43
44
|
ir","argv","timeout","maxBuffer"]),N=Object.freeze({Runtime:["runtimeRequirements","`runtime`..."],Directory:["workdir",
|
|
44
45
|
"`path`"],Command:["argv","`command` `argument`..."],"Timeout seconds":["timeout",`\`1\` through \`${te}\``],"Max output\
|
|
45
46
|
bytes":["maxBuffer",`\`1\` through \`${ne}\``],"Entry files":["entryFiles","`path`... (optional)"],"Required files":["r\
|
|
46
|
-
equiredFiles","`path`... (optional)"],"Preview locator":["previewLocator","`path` (optional .js file)"]}),
|
|
47
|
-
`^- (${Object.keys(N).join("|")}): (.+)$`,"u");function
|
|
48
|
-
ture inspection requires exact Stack section lines."),g(e))return[];let r=[],c=new Set,i;function o(){if(i){for(let u of
|
|
47
|
+
equiredFiles","`path`... (optional)"],"Preview locator":["previewLocator","`path` (optional .js file)"]}),Ke=new RegExp(
|
|
48
|
+
`^- (${Object.keys(N).join("|")}): (.+)$`,"u");function Ye(e,n={}){let{path:t=ze}=n;if(Array.isArray(e)||s(l,t,"Architec\
|
|
49
|
+
ture inspection requires exact Stack section lines."),g(e))return[];let r=[],c=new Set,i;function o(){if(i){for(let u of qe)
|
|
49
50
|
i[u]===void 0&&s(l,t,`${i.id} is missing ${u}.`);r.push(i),i=null}}for(let[u,d]of e.entries()){let y=d.trim();if(!y)continue;
|
|
50
51
|
let I=y.match(/^### Inspector `([a-z0-9]+(?:-[a-z0-9]+)*)`: (.+)$/u);if(I){o(),c.has(I[1])&&s(l,t,"Duplicate inspector i\
|
|
51
|
-
d.",u+1),c.add(I[1]),i={id:I[1],title:I[2]};continue}i||s(l,t,"Expected an Inspector heading.",u+1);let p=y.match(
|
|
52
|
-
let
|
|
53
|
-
of: ${
|
|
54
|
-
t,"Inspector runtime",u+1);else if(a==="argv")i[a]=
|
|
55
|
-
quiredFiles")i[a]=T(p[2],l,t,p[1],u+1).map(E
|
|
56
|
-
dir")i[a]=f
|
|
57
|
-
imeout"?te:ne;(!/^[1-9][0-9]*$/u.test(
|
|
58
|
-
a==="timeout"?m*1e3:m}}}return o(),r.length||s(l,t,"Use an Inspector entry or - Nothing."),r}function
|
|
59
|
-
e,l,n,"Preview locator",t,{allowRoot:!1}),e.endsWith(".js")||s(l,n,"Preview locator must name a .js file.",t),e}var
|
|
60
|
-
"layer","libraries","support"]);function
|
|
52
|
+
d.",u+1),c.add(I[1]),i={id:I[1],title:I[2]};continue}i||s(l,t,"Expected an Inspector heading.",u+1);let p=y.match(Ke);if(!p){
|
|
53
|
+
let f=Object.entries(N).map(([m,[,C]])=>`- ${m}: ${C}`).join("; ");s(l,t,`Unknown architecture inspector field. Use one \
|
|
54
|
+
of: ${f}.`,u+1)}let[a]=N[p[1]];if(i[a]!==void 0&&s(l,t,`Duplicate ${p[1]}.`,u+1),a==="runtimeRequirements")i[a]=w(p[2],l,
|
|
55
|
+
t,"Inspector runtime",u+1);else if(a==="argv")i[a]=S(p[2],l,t,"Inspector command",u+1);else if(a==="entryFiles"||a==="re\
|
|
56
|
+
quiredFiles")i[a]=T(p[2],l,t,p[1],u+1).map(f=>E(f,l,t,p[1],u+1));else{let[f]=T(p[2],l,t,p[1],u+1,{count:1});if(a==="work\
|
|
57
|
+
dir")i[a]=E(f,l,t,"Inspector directory",u+1);else if(a==="previewLocator")i[a]=Xe(f,t,u+1);else{let m=Number(f),C=a==="t\
|
|
58
|
+
imeout"?te:ne;(!/^[1-9][0-9]*$/u.test(f)||!Number.isSafeInteger(m)||m>C)&&s(l,t,`${p[1]} must be from 1 to ${C}.`,u+1),i[a]=
|
|
59
|
+
a==="timeout"?m*1e3:m}}}return o(),r.length||s(l,t,"Use an Inspector entry or - Nothing."),r}function Xe(e,n,t){return E(
|
|
60
|
+
e,l,n,"Preview locator",t,{allowRoot:!1}),e.endsWith(".js")||s(l,n,"Preview locator must name a .js file.",t),e}var vt=Object.freeze({parseVibe64ArchitectureInspectionLines:Ye});var ie="vibe64.architecture-layout.v1",re="Architecture layout",_="VIBE64_ARCHITECTURE_LAYOUT_INVALID",A=Object.freeze([
|
|
61
|
+
"layer","libraries","support"]);function Je(e,n={}){let{path:t="genesis/stack.md#Architecture layout"}=n;if(Array.isArray(
|
|
61
62
|
e)||s(_,t,"Expected exact Stack section lines."),g(e))return[];let r=[],c=new Set,i=new Set,o;function u(){o&&((!o.kind||
|
|
62
63
|
!o.purpose||!o.subsystems.length)&&s(_,t,`${o.id} needs Kind, Purpose and at least one Subsystem.`),r.push(o))}for(let[d,
|
|
63
64
|
y]of e.entries()){let I=y.trim();if(!I)continue;let p=I.match(/^### Group `([a-z0-9]+(?:-[a-z0-9]+)*)`: (.+)$/u);if(p){u(),
|
|
64
65
|
c.has(p[1])&&s(_,t,"Duplicate group id.",d+1),c.add(p[1]),o={id:p[1],title:p[2],subsystems:[]};continue}let a=I.match(/^- (Kind|Purpose|Subsystem): (.+)$/u);
|
|
65
|
-
(!o||!a)&&s(_,t,"Expected a Group heading or Kind, Purpose, Subsystem field.",d+1);let
|
|
66
|
-
if(a[1]==="Subsystem"){let m=f
|
|
66
|
+
(!o||!a)&&s(_,t,"Expected a Group heading or Kind, Purpose, Subsystem field.",d+1);let f=T(a[2],_,t,a[1],d+1,{count:1});
|
|
67
|
+
if(a[1]==="Subsystem"){let m=E(f[0],_,t,"Subsystem root",d+1);i.has(m)&&s(_,t,"Each directory root may be placed only on\
|
|
67
68
|
ce.",d+1),i.add(m),o.subsystems.push({root:m})}else{let m=a[1].toLowerCase();o[m]!==void 0&&s(_,t,`Duplicate ${a[1]}.`,d+
|
|
68
|
-
1),m==="kind"&&!A.includes(
|
|
69
|
-
r.length||s(_,t,"Use a Group entry or - Nothing."),r}var
|
|
69
|
+
1),m==="kind"&&!A.includes(f[0])&&s(_,t,`Kind must be ${A.slice(0,-1).join(", ")} or ${A.at(-1)}.`,d+1),o[m]=f[0]}}return u(),
|
|
70
|
+
r.length||s(_,t,"Use a Group entry or - Nothing."),r}var Rt=Object.freeze({parseVibe64ArchitectureLayoutLines:Je});var Ze="custom",oe="vibe64.connected-sources.v2",U=Object.freeze([Object.freeze({value:"npm",label:"npm (Node.js)"}),Object.
|
|
70
71
|
freeze({value:"composer",label:"Composer (PHP)"}),Object.freeze({value:"pip",label:"pip (Python)"}),Object.freeze({value:"\
|
|
71
72
|
bundler",label:"Bundler (Ruby)"}),Object.freeze({value:"gomod",label:"Go modules"}),Object.freeze({value:"cargo",label:"\
|
|
72
73
|
Cargo (Rust)"}),Object.freeze({value:"maven",label:"Maven"}),Object.freeze({value:"gradle",label:"Gradle"}),Object.freeze(
|
|
73
|
-
{value:"nuget",label:"NuGet (.NET)"}),Object.freeze({value:
|
|
74
|
+
{value:"nuget",label:"NuGet (.NET)"}),Object.freeze({value:Ze,label:"custom"})]),ae="Vibe64's preparer appends the absol\
|
|
74
75
|
ute script path and --phase prepare|verify, --source-root <the session's copy of the repository>, --project-root <consum\
|
|
75
76
|
ing project>, --sources-file <absolute Sources file> and --repository <GitHub URL> arguments to the Stack's Custom runne\
|
|
76
|
-
r command, once per phase; execution checks the script remains inside the consuming project.",
|
|
77
|
-
value));var ce="Connected development",ue="vibe64.connected-development.v1";var W="with `runtime` [in `workdir`]: `command` `argument`...",
|
|
77
|
+
r command, once per phase; execution checks the script remains inside the consuming project.",At=Object.freeze(U.map(e=>e.
|
|
78
|
+
value));var ce="Connected development",ue="vibe64.connected-development.v1";var W="with `runtime` [in `workdir`]: `command` `argument`...",et=Object.freeze({Prepare:`- Prepare \`label\` ${W}`,Verify:`\
|
|
78
79
|
- Verify \`label\` ${W}`,"Custom runner":`- Custom runner ${W}`}),pe=Object.freeze(["- Default package type: `type`","- \
|
|
79
|
-
Sources file: `path`",...Object.values(
|
|
80
|
-
|
|
81
|
-
\`${D}\``],["- Identity types: ","identityTypes","Identity types",`one or more of ${[...
|
|
80
|
+
Sources file: `path`",...Object.values(et)]);var le="vibe64.integration-setup.v1",de="Integration setup";var me="- Command with `runtime` in `workdir`: `command` `argument`...";var D="vibe64.preview-identity.command.v1";var G=new Set(["HOME","LOGNAME","NODE_OPTIONS","PATH","TMPDIR","USER"]),it=new Set(["email","login","user-id"]),rt=1e4,ot=3e4,
|
|
81
|
+
at=[["- Command: ","command","Command","`tools/preview-identity` `argument`..."],["- Protocol: ","protocol","Protocol",`\
|
|
82
|
+
\`${D}\``],["- Identity types: ","identityTypes","Identity types",`one or more of ${[...it].map(e=>`\`${e}\``).join(" ")}`],
|
|
82
83
|
["- Enabled environment: ","enabledEnvironment","Enabled environment","`ENV_NAME`"],["- Secret environment: ","secretEnv\
|
|
83
84
|
ironment","Secret environment","`ENV_NAME`"],["- Runtimes: ","runtimes","Runtimes","`runtime`..."],["- Timeout ms: ","ti\
|
|
84
|
-
meoutMs","Timeout ms",`\`1\` through \`${
|
|
85
|
+
meoutMs","Timeout ms",`\`1\` through \`${ot}\` (default ${rt})`]],he=at.map(([e,,,n])=>`${e}${n}`);var fe="vibe64.outputs.v1",Ee="Outputs";var ct=new Set(["finite","interactive"]),ut=new Set(["development","test"]),pt=new Set(["terminal","web"]),ge=16,H=e=>[...e].
|
|
85
86
|
map(n=>`\`${n}\``).join(" or "),ye=Object.freeze(["### Target `id`: Label","#### Parameter `id`: Label","#### Presentati\
|
|
86
|
-
on","#### Preview identity","#### Download `id`"]),O=Object.freeze({target:["- Default.",`- Mode: ${
|
|
87
|
-
|
|
88
|
-
"- Default: `text`","- Description: `text`","- Required."],presentation:[`- Kind: ${
|
|
87
|
+
on","#### Preview identity","#### Download `id`"]),O=Object.freeze({target:["- Default.",`- Mode: ${H(ct)}`,`- Data: ${H(
|
|
88
|
+
ut)}`,"- Workdir: `path`","- Runtimes: `runtime`...","- Prepare|Build|Run `label`: `command` `argument`..."],parameter:[
|
|
89
|
+
"- Default: `text`","- Description: `text`","- Required."],presentation:[`- Kind: ${H(pt)}`,"- Preferred port: `1024` th\
|
|
89
90
|
rough `65535`","- URL path: `/path`","- Ready when: `GET` `/path` returns `200`"],previewIdentity:he,download:["- Path: \
|
|
90
|
-
`path`","- Name: `file-name`","- Media type: `type/subtype`"]});var Te="Project services",_e="vibe64.project-services.v1";var
|
|
91
|
-
|
|
91
|
+
`path`","- Name: `file-name`","- Media type: `type/subtype`"]});var Te="Project services",_e="vibe64.project-services.v1";var be="- Start `service-id` [per session] with `runtime` [in `workdir`]: `command` `argument`...";var Ie="vibe64.workspace-setup.v1",Se="Workspace setup";var we="- Prepare `label` [from `path`...] with `runtime` [in `workdir`] [when|if `path` exists]: `command` `argument`..\
|
|
92
|
+
.";var ve="vibe64.resource-estimates.v1",ke="Resource estimates";var pn=1024*1024,Oe=1024*1024,Re=new Map([["Startup typical MiB","startupTypical"],["Startup high MiB","startupHigh"],["\
|
|
93
|
+
Running typical MiB","runningTypical"],["Running high MiB","runningHigh"],["Typical MiB","typical"],["High MiB","high"]]);var dt=["Command values: the executable and every argument are separate backticked values separated by single spaces (at\
|
|
92
94
|
most 64 values of at most 4096 characters, no line breaks). The executable is a name on PATH or a project-relative path\
|
|
93
95
|
, never absolute and never containing `..`.","Runtimes are lowercase technology ids selected in the project's Stack, suc\
|
|
94
96
|
h as `nodejs` or `php`. Paths are canonical project-relative paths; `.` is the project root.","A section containing only\
|
|
95
97
|
`- Nothing.` explicitly declares nothing. Blank lines are ignored."].join(`
|
|
96
98
|
`),h=e=>e.map(n=>` ${n}`).join(`
|
|
97
|
-
`);function
|
|
99
|
+
`);function b({name:e,title:n,section:t,contract:r="",summary:c,body:i,example:o}){return{name:e,title:n,section:t,example:o,
|
|
98
100
|
text:()=>[`# ${n}`,"",`Section: \`## ${t}\` in \`genesis/stack.md\`${r?`, contract \`${r}\``:""}. Vibe64 owns its gramma\
|
|
99
|
-
r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",
|
|
101
|
+
r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",dt,"","## Example","","```markdown",`## ${t}`,
|
|
100
102
|
"",o.trim(),"```",""].join(`
|
|
101
|
-
`)}}var
|
|
103
|
+
`)}}var mt=`
|
|
102
104
|
### Target \`app\`: Application
|
|
103
105
|
|
|
104
106
|
- Default.
|
|
@@ -150,7 +152,7 @@ r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",p
|
|
|
150
152
|
- Path: \`exports/report.csv\`
|
|
151
153
|
- Name: \`report.csv\`
|
|
152
154
|
- Media type: \`text/csv\`
|
|
153
|
-
`,
|
|
155
|
+
`,wn=Object.freeze([b({name:"workspace-setup",title:"Workspace setup",section:Se,contract:Ie,summary:"Ordered commands t\
|
|
154
156
|
hat prepare a session's working copy (dependencies, generated files, migrations) before any Output runs.",body:`
|
|
155
157
|
Each entry:
|
|
156
158
|
${h([we])}
|
|
@@ -159,13 +161,19 @@ ${h([we])}
|
|
|
159
161
|
- \`\` when \`path\` exists \`\` waits: setup stays waiting until the path exists (for example a manifest the agent has not cr\
|
|
160
162
|
eated yet).
|
|
161
163
|
- \`\` if \`path\` exists \`\` skips the step while the path is missing.
|
|
164
|
+
- \`\` from \`path\`... \`\` names every file the command reads: project files or folders (a folder covers every file below it\
|
|
165
|
+
), where \`*\` matches within one path segment and \`**\` across segments. Ignored files are never seen. After the step succ\
|
|
166
|
+
eeds Vibe64 records what those files held and the command; a later preparation skips the step while both are unchanged a\
|
|
167
|
+
nd the session's resources are the ones it ran on. Name the lockfile too, and leave \`from\` out when unsure: a step witho\
|
|
168
|
+
ut it runs whenever preparation runs.
|
|
162
169
|
- Steps run in order through managed execution with the session's development Env. Vibe64 records success against the ex\
|
|
163
|
-
act recipe; changing any step runs setup again, and Outputs stay pending until it succeeds.
|
|
164
|
-
|
|
165
|
-
`,example:"\n- Prepare `Install dependencies` with `nodejs`: `npm` `ci`\n- Prepare
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
offers: interactive terminal or web apps shown in Preview, and finite runs that
|
|
170
|
+
act recipe; changing any step runs setup again, and Outputs stay pending until it succeeds. Prepare workspace runs every\
|
|
171
|
+
step. Keep every step repeatable and non-destructive.
|
|
172
|
+
`,example:"\n- Prepare `Install dependencies` from `package.json` `package-lock.json` with `nodejs`: `npm` `ci`\n- Prepare\
|
|
173
|
+
`Migrate database` with `nodejs` if `migrations` exists: `npm` `run` `db:migrate`\n- Prepare `Install client` with `node\
|
|
174
|
+
js` in `client` when `client/package.json` exists: `npm` `ci`\n"}),b({name:"outputs",title:"Outputs",section:Ee,contract:fe,
|
|
175
|
+
summary:"The runnable targets Vibe64 offers: interactive terminal or web apps shown in Preview, and finite runs that pro\
|
|
176
|
+
duce downloads.",body:`
|
|
169
177
|
Headings, each target followed by its entries and then optional blocks:
|
|
170
178
|
${h(ye)}
|
|
171
179
|
|
|
@@ -204,49 +212,55 @@ ${h(O.previewIdentity)}
|
|
|
204
212
|
|
|
205
213
|
- The command is a committed, application-owned project-relative executable whose path contains \`/\`, without \`{host}\` or\
|
|
206
214
|
\`{port}\`.
|
|
207
|
-
- Enabled and Secret environment names are distinct uppercase names, not ${[...
|
|
215
|
+
- Enabled and Secret environment names are distinct uppercase names, not ${[...G].join(", ")} or \`XDG_*\`. For an enabled\
|
|
208
216
|
web run Vibe64 sets the enabled name to \`true\` and the secret name to a fresh per-run secret; the application must keep\
|
|
209
217
|
its identity exchange disabled unless both are present.
|
|
210
218
|
- The command's stdin/stdout protocol: \`vibe64-helper spec preview-identity-command\`. The configured account names: \`vib\
|
|
211
219
|
e64-helper spec preview-identities\`.
|
|
212
|
-
`,example:
|
|
213
|
-
vision into a running
|
|
220
|
+
`,example:mt}),b({name:"deployment",title:"Deployment",section:q,contract:z,summary:"The commands that turn a project re\
|
|
221
|
+
vision into a running deployed application.",body:`
|
|
214
222
|
Entries:
|
|
215
223
|
${h(K)}
|
|
216
224
|
|
|
217
|
-
- Steps are ordered ${
|
|
225
|
+
- Steps are ordered ${L.join(", ")}; exactly one Serve step comes last. Serve starts the long-running application, which\
|
|
218
226
|
listens on the address given by the \`HOST\` and \`PORT\` environment variables. Arguments are passed literally (no \`{host}\
|
|
219
227
|
\` or \`{port}\` placeholders), so a server that takes its address only as arguments needs a committed project script that \
|
|
220
228
|
reads them.
|
|
221
|
-
- Every step runs exactly as declared with the
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
package installation skip the build tools a later step needs.
|
|
226
|
-
- Generated secrets names
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
- Setup code names the one
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
- Sandbox allows names, from a closed set, what the application's own commands and service may do beyond
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
es outside those namespaces, the same writable folders and devices. A host grants an allowance only
|
|
241
|
-
its it, and refuses a deploy that needs one it does not grant rather than run it with less. Declare it
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
229
|
+
- Every step runs exactly as declared with the deployment's Env, the environment the host deploys with. A host may also \
|
|
230
|
+
give Serve, and only Serve, its runtime's conventional production setting, such as \`NODE_ENV=production\` for Node; a val\
|
|
231
|
+
ue the project sets itself, on the Serve step or in the deployment's Env, wins. To be sure of a mode, declare it on the \
|
|
232
|
+
Serve step, for example \`env\` \`NODE_ENV=production\` \`node\` \`server.js\`, never in the deployment's Env or Prepare, where \
|
|
233
|
+
it can make package installation skip the build tools a later step needs.
|
|
234
|
+
- Generated secrets names secrets the application needs as a stable random value, such as a session-signing key. When a \
|
|
235
|
+
deploy finds no entry with that name in the deployment's Env, the host stores a strong random value there once, as a sec\
|
|
236
|
+
ret: it is kept across releases, never printed, and never replaces a value someone set. Replacing it is an ordinary chan\
|
|
237
|
+
ge to the deployment's Env.
|
|
238
|
+
- Setup code names the one secret of the deployment the application asks for when its first account registers on the dep\
|
|
239
|
+
loyment's empty database, so that only the project owner can create that account (the first account usually becomes the \
|
|
240
|
+
application's owner). The host generates it as it does a generated secret, so never also list it under Generated secrets\
|
|
241
|
+
, and shows its value only to the project owner; it is never printed, logged or given to an assistant. Declare it only w\
|
|
242
|
+
hen the application reads that variable.
|
|
243
|
+
- Sandbox allows names, from a closed set, what the application's own commands and service may do beyond the ordinary sa\
|
|
244
|
+
ndbox of a deployed application: \`gvisor\` lets them start gVisor's rootless \`runsc\` (it makes its own user, mount, PID, \
|
|
245
|
+
IPC, UTS and network namespaces, mounts inside them and traces its own processes); \`fuse\` lets them mount a FUSE file sy\
|
|
246
|
+
stem through \`/dev/fuse\` inside a user and mount namespace of their own (for example \`unshare\` \`--user\` \`--map-root-user\
|
|
247
|
+
\` \`--mount\`), never through a set-user-ID helper such as \`fusermount3\` outside one. Nothing else widens: no new privileg\
|
|
248
|
+
es or capabilities outside those namespaces, the same writable folders and devices. A host grants an allowance only wher\
|
|
249
|
+
e its owner permits it, and refuses a deploy that needs one it does not grant rather than run it with less. Declare it o\
|
|
250
|
+
nly when the application needs it, never to make a failing deploy pass: an allowance widens what an intruder in the appl\
|
|
251
|
+
ication could reach, so whether to grant it is the project owner's decision, never an assistant's. An assistant never ad\
|
|
252
|
+
ds or changes this line on its own; it explains the failure and asks the person.
|
|
245
253
|
- Host-level preparation beyond the package manager, such as system packages, devices or host permissions, goes in one s\
|
|
246
254
|
cript per hosting environment, \`scripts/hosting/<host>.sh\`, which the \`HOSTING_SCRIPT\` environment variable names and th\
|
|
247
255
|
e Prepare step runs; an application that needs none has no such script. It never works around Vibe64's rules: what Vibe6\
|
|
248
256
|
4 provides, such as a runtime or a sandbox allowance, is declared in this section, never installed or switched on by the\
|
|
249
257
|
script, and where the host lacks something the script fails with one plain sentence instead of switching features off.
|
|
258
|
+
- Instances says how many identical copies of the application a host may run at once behind one address, each with a dis\
|
|
259
|
+
k and memory of its own (a count from 1 to 100). Without it a host runs one copy. Declare it only when no copy keeps any\
|
|
260
|
+
thing a later request needs: uploaded files on its own disk, sign-ins or sessions in memory or in files, or a scheduled \
|
|
261
|
+
job that must run once. Such state belongs in a declared resource (a database, a bucket, Redis); a host never guesses it\
|
|
262
|
+
from the source. Migrate may then run in several copies as they start, so a migration takes a lock and keeps working be\
|
|
263
|
+
side the release before it.
|
|
250
264
|
- One Ready when entry is required (status 200 through 399). Workdir defaults to \`.\`. Each other entry appears at most o\
|
|
251
265
|
nce.
|
|
252
266
|
- Recreate on restore lists project-relative globs (only \`*\` and \`**\`) that a restored deployment rebuilds with its Prep\
|
|
@@ -254,16 +268,24 @@ are step, such as installed dependencies. It requires a Prepare step.
|
|
|
254
268
|
- Migrate applies pending migrations without destroying data.
|
|
255
269
|
- Prepare and Build never need the database or another managed service: a host may run them alone, without those credent\
|
|
256
270
|
ials, to check that a revision builds before it publishes it.
|
|
257
|
-
- The host gives every step \`
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
271
|
+
- The host gives every step \`APP_ENV\`, the environment it deploys to: \`staging\` or \`production\`. Vibe64 runs a session's\
|
|
272
|
+
commands and Preview with \`development\`, and automated test runs use \`test\`. No step, Generated secret or Setup code se\
|
|
273
|
+
ts it, nor \`SIDE_EFFECTS\`, which \`APP_ENV\` replaced. Every decision about where the application runs reads \`APP_ENV\` thr\
|
|
274
|
+
ough one helper of the application's, never \`NODE_ENV\`, which only picks optimised builds and library modes; a missing o\
|
|
275
|
+
r unknown value refuses to start, naming the fix. Following it is the application's job:
|
|
276
|
+
- \`development\` and \`test\`: no email, SMS, push notification, webhook or connector write leaves the application; each \
|
|
277
|
+
is written to its log, and payments use the provider's sandbox.
|
|
278
|
+
- \`staging\`: email goes only to \`STAGING_EMAIL_TO\` and SMS only to \`STAGING_SMS_TO\`, and each is logged instead when i\
|
|
279
|
+
ts variable is unset; push notifications, webhooks and connector writes are logged; payments use the provider's sandbox.\
|
|
280
|
+
|
|
281
|
+
- \`production\`: everything is real.
|
|
282
|
+
- Every page shows a small, always-visible banner naming the environment, except in \`production\`.
|
|
283
|
+
Read it when the application runs, never at build time. In Node, for example: \`const to = { production: message.to, st\
|
|
284
|
+
aging: process.env.STAGING_EMAIL_TO }[process.env.APP_ENV]; if (to) await mailer.send({ ...message, to }); else console.\
|
|
285
|
+
info("%s: email to %s not sent", process.env.APP_ENV, message.to);\`
|
|
264
286
|
`,example:"\n- Runtimes: `nodejs`\n- Recreate on restore: `node_modules`\n- Generated secrets: `SESSION_SECRET`\n- Prepare `\
|
|
265
287
|
Install`: `npm` `ci`\n- Build `Build`: `npm` `run` `build`\n- Migrate `Migrate`: `npm` `run` `db:migrate`\n- Serve `Serve`:\
|
|
266
|
-
`env` `NODE_ENV=production` `node` `server.js`\n- Ready when: `GET` `/health` returns `200`\n"}),
|
|
288
|
+
`env` `NODE_ENV=production` `node` `server.js`\n- Ready when: `GET` `/health` returns `200`\n"}),b({name:"packaging",title:"\
|
|
267
289
|
Packaging",section:X,contract:Y,summary:"Source facts Vibe64 needs to turn this project into distributable packages: reg\
|
|
268
290
|
istry packages, static web bundles and generated mobile app shells. Where each package is published (targets, channels, \
|
|
269
291
|
builders) is Vibe64 project state, never this section.",body:`
|
|
@@ -294,12 +316,12 @@ dependencies`: `npm` `ci`\n- Build `Build bundled client`: `npm` `run` `build`\n
|
|
|
294
316
|
Platforms: `android`\n- Id: `com.example.notes`\n- Name: `Notes`\n- Icon: `assets/icon-1024.png`\n- Version from: `package.\
|
|
295
317
|
json`\n- Deep link scheme from: `APP_URL_SCHEME`\n- Permission `camera`: Take photos to attach to notes.\n\n### Package `sdk\
|
|
296
318
|
`: Notes SDK\n\n- Packer: `npm`\n- Workdir: `packages/notes-sdk`\n- Runtimes: `nodejs`\n- Version from: `package.json`\n"}),
|
|
297
|
-
|
|
319
|
+
b({name:"resource-estimates",title:"Resource estimates",section:ke,contract:ve,summary:"Optional memory planning hints f\
|
|
298
320
|
or Outputs and Workspace setup. They are not observed usage, reservations, minimum requirements or granted limits; the e\
|
|
299
321
|
xecution host owns those choices.",body:`
|
|
300
322
|
Headings: \`\` ### Output \`id\` \`\` (an id declared in Outputs) or \`### Workspace setup\` (requires declared setup steps), ea\
|
|
301
323
|
ch followed by fields:
|
|
302
|
-
${h([...
|
|
324
|
+
${h([...Re.keys()].map(e=>`- ${e}: \`number\``))}
|
|
303
325
|
|
|
304
326
|
- An interactive output declares the four Startup and Running fields. A finite output and Workspace setup declare only T\
|
|
305
327
|
ypical MiB and High MiB.
|
|
@@ -308,7 +330,7 @@ elds are rejected. The section is at most 64 KiB and 2048 lines.
|
|
|
308
330
|
- Invalid estimates never change Outputs availability or setup readiness; the host then uses its generic policy. Changin\
|
|
309
331
|
g only estimates does not rerun setup.
|
|
310
332
|
`,example:"\n### Output `app`\n\n- Startup typical MiB: `1024`\n- Startup high MiB: `1536`\n- Running typical MiB: `768`\n- Ru\
|
|
311
|
-
nning high MiB: `1536`\n\n### Workspace setup\n\n- Typical MiB: `1024`\n- High MiB: `1536`\n"}),
|
|
333
|
+
nning high MiB: `1536`\n\n### Workspace setup\n\n- Typical MiB: `1024`\n- High MiB: `1536`\n"}),b({name:"connected-devel\
|
|
312
334
|
opment",title:"Connected development",section:ce,contract:ue,summary:"How this project consumes the working source of it\
|
|
313
335
|
s connected repositories (its own dependencies under development) in a session.",body:`
|
|
314
336
|
Entries:
|
|
@@ -328,10 +350,10 @@ nection also carries \`"script"\`.
|
|
|
328
350
|
- Custom connections: ${ae}
|
|
329
351
|
`,example:"\n- Default package type: `npm`\n- Sources file: `.connected-sources.json`\n- Prepare `Link connected packages` \
|
|
330
352
|
with `nodejs`: `node` `tools/link-connected.mjs`\n- Verify `Check connected packages` with `nodejs`: `node` `tools/verify\
|
|
331
|
-
-connected.mjs`\n"}),
|
|
353
|
+
-connected.mjs`\n"}),b({name:"project-services",title:"Project services",section:Te,contract:_e,summary:"Foreground help\
|
|
332
354
|
er processes (workers, local reference services) that Vibe64 starts before an Output.",body:`
|
|
333
355
|
Entries:
|
|
334
|
-
${h([
|
|
356
|
+
${h([be])}
|
|
335
357
|
|
|
336
358
|
- Service ids are unique, start with a lowercase letter and use up to 64 lowercase letters, digits and hyphens. Workdir \
|
|
337
359
|
defaults to \`.\`.
|
|
@@ -343,7 +365,7 @@ ver spawn untracked background work.
|
|
|
343
365
|
rd the address in the session's ignored runtime folder) and check your own instance's readiness. Never assume a shared f\
|
|
344
366
|
ixed port.
|
|
345
367
|
`,example:"\n- Start `worker` with `nodejs` in `tools`: `npm` `run` `worker`\n- Start `reference` per session with `nodejs\
|
|
346
|
-
`: `npm` `run` `reference:service`\n"}),
|
|
368
|
+
`: `npm` `run` `reference:service`\n"}),b({name:"integration-setup",title:"Integration setup",section:de,contract:le,summary:"\
|
|
347
369
|
The one application-owned command the editor's Integrations controls call to configure, connect and check the applicatio\
|
|
348
370
|
n's external integrations.",body:`
|
|
349
371
|
Exactly one entry:
|
|
@@ -351,7 +373,7 @@ ${h([me])}
|
|
|
351
373
|
|
|
352
374
|
The command's request/response protocol and the \`integrations.json\` usage: \`vibe64-helper spec integration-setup-command\
|
|
353
375
|
\`.
|
|
354
|
-
`,example:"\n- Command with `nodejs` in `.`: `node` `scripts/integrations.js`\n"}),
|
|
376
|
+
`,example:"\n- Command with `nodejs` in `.`: `node` `scripts/integrations.js`\n"}),b({name:"architecture-inspection",title:"\
|
|
355
377
|
Architecture inspection",section:ee,contract:Q,summary:"Optional project-owned inspectors that the Architecture view run\
|
|
356
378
|
s to observe the application's structure (pages, routes, entry points).",body:`
|
|
357
379
|
Headings: \`\` ### Inspector \`id\`: Title \`\`, each followed by fields:
|
|
@@ -366,12 +388,12 @@ ject files before the inspector runs.
|
|
|
366
388
|
inked package folder (\`node_modules/<name>\` or \`node_modules/@scope/<name>\`); the file must stay inside that package's r\
|
|
367
389
|
eal folder.
|
|
368
390
|
- On analysis the command receives one \`jskit.architecture-inspection-input.v1\` JSON request on stdin (files with hashes\
|
|
369
|
-
, packages, package identity, UI discovery, the Stack hash and an optional \`cacheDirectory\`) and must print one \`${
|
|
391
|
+
, packages, package identity, UI discovery, the Stack hash and an optional \`cacheDirectory\`) and must print one \`${lt}\
|
|
370
392
|
\` JSON document; Genesis owns that observation schema.
|
|
371
393
|
- \`cacheDirectory\` is an absolute directory for this inspector alone, outside the source; the inspector may read and wri\
|
|
372
394
|
te only there. When it is absent or unusable, inspect without a cache. Ignore unknown request fields.
|
|
373
395
|
`,example:"\n### Inspector `ui`: UI routes\n\n- Runtime: `nodejs`\n- Directory: `.`\n- Command: `node` `tools/inspect-ui.mjs`\
|
|
374
|
-
\n- Timeout seconds: `30`\n- Max output bytes: `1048576`\n- Entry files: `src/main.js`\n"}),
|
|
396
|
+
\n- Timeout seconds: `30`\n- Max output bytes: `1048576`\n- Entry files: `src/main.js`\n"}),b({name:"architecture-layout",
|
|
375
397
|
title:"Architecture layout",section:re,contract:ie,summary:"Presentation groups for the Architecture view. Declarations \
|
|
376
398
|
neither discover subsystems nor change their ownership.",body:`
|
|
377
399
|
Headings: \`\` ### Group \`id\`: Title \`\`, each followed by:
|
|
@@ -383,4 +405,4 @@ Headings: \`\` ### Group \`id\`: Title \`\`, each followed by:
|
|
|
383
405
|
- A Subsystem is a directory root from \`genesis/subsystems.md\`; each root is placed once. A missing root is reported, ne\
|
|
384
406
|
ver invented.
|
|
385
407
|
`,example:"\n### Group `shared`: Shared libraries\n\n- Kind: `libraries`\n- Purpose: `Code reused by every surface.`\n- Subsy\
|
|
386
|
-
stem: `packages/shared`\n"})]);export{
|
|
408
|
+
stem: `packages/shared`\n"})]);export{wn as VIBE64_GENESIS_AGENT_SPECS};
|