vibe64 0.1.66 → 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.
Files changed (122) hide show
  1. package/bin/run.js +1986 -1348
  2. package/bin/server.js +210 -207
  3. package/bin/upgrade-state.js +3862 -3786
  4. package/dist/assets/{GithubBrowserTabs-Bf5z_PiF.js → GithubBrowserTabs-CW3GBeJu.js} +1 -1
  5. package/dist/assets/{LocalDatabaseServer-CcfGbn7H.js → LocalDatabaseServer-DYh3UF9q.js} +1 -1
  6. package/dist/assets/{ShellOutlet-DPyl05um.js → ShellOutlet-DkLdtzJW.js} +1 -1
  7. package/dist/assets/{Vibe64AuthSettingsButton-CxJoeOhz.js → Vibe64AuthSettingsButton-Cksj7FS6.js} +1 -1
  8. package/dist/assets/{Vibe64AuthSettingsButton-DFfFPrd7.css → Vibe64AuthSettingsButton-DfKYI6ZS.css} +1 -1
  9. package/dist/assets/{Vibe64ConversationLog-jDb_ZvIF.js → Vibe64ConversationLog-BC0eDtUP.js} +1 -1
  10. package/dist/assets/{Vibe64DashboardShell-Ce1PNB37.js → Vibe64DashboardShell-DX5dOXAB.js} +1 -1
  11. package/dist/assets/{Vibe64DatabaseWorkspace-DiZDKEpx.js → Vibe64DatabaseWorkspace-8i-RDc9y.js} +1 -1
  12. package/dist/assets/{Vibe64FileArea-uRnIJ0Vp.js → Vibe64FileArea-EK5yUio3.js} +1 -1
  13. package/dist/assets/{Vibe64OutputControls-BF5kh2_h.js → Vibe64OutputControls--LB4G83q.js} +1 -1
  14. package/dist/assets/{Vibe64SessionFiles-CxgPB8RR.js → Vibe64SessionFiles-DVHGc7hd.js} +1 -1
  15. package/dist/assets/{Vibe64SessionSourceEditor-yaVu279S.js → Vibe64SessionSourceEditor-Bws5ihr-.js} +1 -1
  16. package/dist/assets/{Vibe64UiStoryboardView-DhbHkz8K.js → Vibe64UiStoryboardView-BmABkyG4.js} +1 -1
  17. package/dist/assets/{Vibe64UnavailableSessions-MmPF-Db1.js → Vibe64UnavailableSessions-C6Bkwsqk.js} +1 -1
  18. package/dist/assets/{_pageId_-Zif-veil.js → _pageId_-FjW-3sqF.js} +1 -1
  19. package/dist/assets/{_sessionId_-DOge-7SB.js → _sessionId_-4cH83Bfi.js} +1 -1
  20. package/dist/assets/_slug_-Cazfy5ui.js +14 -0
  21. package/dist/assets/_slug_-DQDycgFK.css +1 -0
  22. package/dist/assets/{access-DQcblrWN.js → access-mxcxtn7b.js} +1 -1
  23. package/dist/assets/{app-CzApKPmq.js → app-8zP_FAuO.js} +1 -1
  24. package/dist/assets/assistantRouting-Bbxguvre.js +3 -0
  25. package/dist/assets/{client-13v_yX07.js → client-C1i-bIgL.js} +1 -1
  26. package/dist/assets/{client-Dl6I6IVb.js → client-C7yZ1hEm.js} +1 -1
  27. package/dist/assets/{client-Dv4scw6i.js → client-CQ49uWhR.js} +1 -1
  28. package/dist/assets/{client-C8ZjqGdQ.js → client-D46Uu-YO.js} +2 -2
  29. package/dist/assets/{client-5JUUGxRd.js → client-DKNTl1to.js} +2 -2
  30. package/dist/assets/{dashboard-Dm_xwwqU.js → dashboard-CMtWKazq.js} +1 -1
  31. package/dist/assets/{english-definitions-DwTf_alg.js → english-definitions-DiyU9O9D.js} +1 -1
  32. package/dist/assets/{env-B7wB5nBn.js → env-LUc22Wgd.js} +1 -1
  33. package/dist/assets/{error-HfzrYwkQ.js → error-BccdQn04.js} +1 -1
  34. package/dist/assets/{error-CtOws2EC.js → error-DPDAz9Td.js} +1 -1
  35. package/dist/assets/{health-DIkOkzPe.js → health-CfMjMJFf.js} +1 -1
  36. package/dist/assets/{history-Ch597NiY.js → history-hX_kNskf.js} +1 -1
  37. package/dist/assets/{i18n-DcNQE3tT.js → i18n-Dq-ep9n7.js} +1 -1
  38. package/dist/assets/index-BJWiPV6i.css +1 -0
  39. package/dist/assets/{index-DcKFCaBZ.js → index-FVeEbKiO.js} +4 -4
  40. package/dist/assets/{integrations-CoNhnGvq.js → integrations-Ccb8EOEO.js} +14 -15
  41. package/dist/assets/{integrations-CwgrZgmM.css → integrations-CtnIjM1Y.css} +1 -1
  42. package/dist/assets/{issues-Cem4Yt47.js → issues-Bxtt7oqi.js} +1 -1
  43. package/dist/assets/{learning-CU2QyHrj.js → learning-BUx9jo91.js} +1 -1
  44. package/dist/assets/{pages-BzA58NoR.js → pages-D43zM2UW.js} +1 -1
  45. package/dist/assets/{project-files-BBKjl3wZ.js → project-files-BX3zZCcl.js} +1 -1
  46. package/dist/assets/{publish-UFjblZA3.js → publish-DatierL2.js} +1 -1
  47. package/dist/assets/{pull-requests-DibGk1GB.js → pull-requests-DNkOjcuy.js} +1 -1
  48. package/dist/assets/{settings-BjOnPYwD.js → settings-DbR9JIc3.js} +1 -1
  49. package/dist/assets/{useArchivedVibe64Sessions-CXKRFR2f.js → useArchivedVibe64Sessions-B8VDhA9F.js} +1 -1
  50. package/dist/assets/{useCommand-yOr3U8KF.js → useCommand-CfqxMb4C.js} +1 -1
  51. package/dist/assets/{useUiFeedback--0dLsslR.js → useUiFeedback-8Wvg7A_S.js} +1 -1
  52. package/dist/assets/{useVibe64ConversationLog-BB5tVtkt.js → useVibe64ConversationLog-7wgLlKG5.js} +2 -2
  53. package/dist/assets/useVibe64Learning-DkneotqS.js +5 -0
  54. package/dist/assets/{useVibe64SessionData-BSYF_TgH.js → useVibe64SessionData-DuJ-dHR8.js} +1 -1
  55. package/dist/assets/{useVibe64SessionSelection-CxZ3uEAf.js → useVibe64SessionSelection-BwjtqeIR.js} +1 -1
  56. package/dist/assets/vibe64SavedEnvValues-CCZew0j7.js +1 -0
  57. package/dist/assets/{vibe64SessionFocus-DGSVXipO.js → vibe64SessionFocus-B4diopOJ.js} +1 -1
  58. package/dist/index.html +10 -10
  59. package/docs/colleague-usage/ai-accounts.md +7 -7
  60. package/docs/colleague-usage/ai-model-setups.md +1 -1
  61. package/docs/colleague-usage/auto-workflow.md +60 -40
  62. package/docs/colleague-usage/chat-settings.md +115 -114
  63. package/docs/colleague-usage/coding-agent-history.md +9 -0
  64. package/docs/colleague-usage/coding-agent-recovery.md +3 -0
  65. package/docs/colleague-usage/coding-agents.md +10 -4
  66. package/docs/colleague-usage/developing-vibe64.md +11 -5
  67. package/docs/colleague-usage/development-env.md +74 -32
  68. package/docs/colleague-usage/github-work.md +3 -2
  69. package/docs/colleague-usage/integrations.md +2 -2
  70. package/docs/colleague-usage/main-chat-approvals.md +7 -6
  71. package/docs/colleague-usage/message-delivery-recovery.md +1 -1
  72. package/docs/colleague-usage/passes.md +215 -41
  73. package/docs/colleague-usage/plans.md +27 -16
  74. package/docs/colleague-usage/session-timeline.md +93 -0
  75. package/docs/colleague-usage/temporary-chats.md +6 -0
  76. package/docs/colleague-usage/ui-pass.md +29 -35
  77. package/node_modules/@jskit-ai/assistant-core/CHANGELOG.md +4 -0
  78. package/node_modules/@jskit-ai/assistant-core/package.json +1 -1
  79. package/node_modules/@jskit-ai/assistant-runtime/CHANGELOG.md +3 -0
  80. package/node_modules/@jskit-ai/assistant-runtime/package.json +1 -1
  81. package/node_modules/@jskit-ai/assistant-voice/package.json +1 -1
  82. package/node_modules/@jskit-ai/connector-google-calendar/CHANGELOG.md +1 -0
  83. package/node_modules/@jskit-ai/connector-google-calendar/package.json +1 -1
  84. package/node_modules/@jskit-ai/connector-google-calendar/patterns/calendar-cli/example/.env.example +1 -0
  85. package/node_modules/@jskit-ai/connectors-catalog/CHANGELOG.md +1 -0
  86. package/node_modules/@jskit-ai/connectors-catalog/package.json +1 -1
  87. package/node_modules/@jskit-ai/connectors-catalog/patterns/api-key-connection/PATTERN.md +4 -1
  88. package/node_modules/@jskit-ai/connectors-catalog/patterns/oauth-connection/PATTERN.md +3 -1
  89. package/node_modules/@jskit-ai/connectors-core/CHANGELOG.md +1 -0
  90. package/node_modules/@jskit-ai/connectors-core/README.md +3 -1
  91. package/node_modules/@jskit-ai/connectors-core/package.json +1 -1
  92. package/node_modules/@jskit-ai/http-runtime/package.json +1 -1
  93. package/node_modules/@jskit-ai/kernel/CHANGELOG.md +1 -0
  94. package/node_modules/@jskit-ai/kernel/package.json +3 -4
  95. package/node_modules/@jskit-ai/payments-core/CHANGELOG.md +1 -0
  96. package/node_modules/@jskit-ai/payments-core/locales/en.json +1 -1
  97. package/node_modules/@jskit-ai/payments-core/package.json +1 -1
  98. package/node_modules/@jskit-ai/realtime/CHANGELOG.md +1 -0
  99. package/node_modules/@jskit-ai/realtime/package.json +1 -1
  100. package/node_modules/@jskit-ai/realtime/patterns/realtime-application/example/.env.example +1 -0
  101. package/node_modules/@jskit-ai/resource-core/package.json +1 -1
  102. package/node_modules/@jskit-ai/uploads-runtime/package.json +1 -1
  103. package/node_modules/@local/vibe64-core/package.json +2 -0
  104. package/node_modules/@local/vibe64-execution/package.json +1 -0
  105. package/node_modules/@local/vibe64-execution/src/host/execHelper.js +715 -666
  106. package/node_modules/@local/vibe64-genesis/bin/vibe64-genesis-host-context +873 -872
  107. package/node_modules/@local/vibe64-genesis/src/server/agentSpecs.js +101 -85
  108. package/node_modules/@local/vibe64-genesis/src/server/index.js +615 -607
  109. package/node_modules/@local/vibe64-genesis/src/server/promptContext.js +159 -157
  110. package/node_modules/@local/vibe64-runtime/package.json +1 -0
  111. package/node_modules/@local/vibe64-runtime/src/server/codexAppServerProcess.js +901 -900
  112. package/node_modules/@local/vibe64-terminals/package.json +2 -1
  113. package/node_modules/@local/vibe64-terminals/src/server/opencodeSessionEnvironmentPlugin.js +22 -22
  114. package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +382 -380
  115. package/package.json +15 -15
  116. package/server.bundle.mjs +40053 -39872
  117. package/dist/assets/_slug_-C71iAiR0.js +0 -14
  118. package/dist/assets/_slug_-CF1TPDUv.css +0 -1
  119. package/dist/assets/assistantRouting-CqIiQy21.js +0 -3
  120. package/dist/assets/index-C-6c5Af1.css +0 -1
  121. package/dist/assets/useVibe64Learning-iAAH83uG.js +0 -5
  122. package/dist/assets/vibe64SavedEnvValues-CgfMvj_h.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { createRequire as __vibe64CreateRequire } from 'node:module';const require=__vibe64CreateRequire(import.meta.url);
2
- import{ARCHITECTURE_OBSERVATIONS_SCHEMA as pt}from"genesis-compiler";import $ from"node:path";var M=class extends Error{constructor(n,t,r=void 0){super(t),this.name="Vibe64StackOperationErr\
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
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\
@@ -9,54 +9,56 @@ function Ae(e,n){let t=F[e],r=String(n).replace(Ne,"");return t?`${r} Exact gram
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 b(e,n,t,r,c){let i=T(e,n,t,r,c);return Pe(i[0])||s(
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
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
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
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 ht=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=Object.freeze(
19
- ["fuse","gvisor"]);var Ue=Object.freeze({prepare:0,build:1,migrate:2,serve:3}),L=Object.keys(Ue).map(e=>e[0].toUpperCase()+e.slice(1)),K=Object.
20
- freeze(["- Workdir: `path`","- Runtimes: `runtime`...",`${Ve}\`glob\`...`,`${je}\`NAME\`...`,`${Le}\`NAME\``,`${xe}${Be.
21
- map(e=>`\`${e}\``).join(" ")}`,"- Ready when: `GET` `/path` returns `200`",`- ${L.join("|")} \`label\`: \`command\` \`argumen\
22
- t\`...`]);var Y="vibe64.packaging.v1",X="Packaging",Tt=Object.freeze(["genesis",".genesis",".agents",".claude",".codex",".opencode"]);var We=Object.freeze({npm:Object.freeze({entries:["workdir","runtimes","prepare","build","environment","versionFrom"],required:[
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:[
23
25
  "versionFrom"],versionSources:["package.json","external"]}),"python-dist":Object.freeze({entries:["workdir","runtimes","\
24
26
  prepare","build","environment","output","versionFrom"],required:["build","output","versionFrom"],versionSources:["pyproj\
25
27
  ect.toml","external"]}),"web-bundle":Object.freeze({entries:["workdir","runtimes","prepare","build","environment","outpu\
26
28
  t"],required:["build","output"],versionSources:[]}),capacitor:Object.freeze({entries:["workdir","content","platforms","a\
27
29
  pplicationId","name","icon","versionFrom","deepLinkSchemeFrom","appLinkDomainsFrom","permission"],required:["content","p\
28
30
  latforms","applicationId","name","icon","versionFrom"],versionSources:["package.json","external"]})}),B=Object.freeze(Object.
29
- keys(We)),He=Object.freeze(["android"]),Ge=Object.freeze(["package.json","pyproject.toml","external"]),x=e=>e.map(n=>`\`${n}\
31
+ keys(Ge)),He=Object.freeze(["android"]),Fe=Object.freeze(["package.json","pyproject.toml","external"]),x=e=>e.map(n=>`\`${n}\
30
32
  \``).join(" | "),k=Object.freeze([["- Packer: ","packer",`- Packer: ${x(B)}`],["- Workdir: ","workdir","- Workdir: `path\
31
33
  `"],["- Runtimes: ","runtimes","- Runtimes: `runtime`..."],["- Output: ","output","- Output: `path`"],["- Version from: ",
32
- "versionFrom",`- Version from: ${x(Ge)}`],["- Platforms: ","platforms",`- Platforms: ${x(He)}...`],["- Id: ","applicatio\
34
+ "versionFrom",`- Version from: ${x(Fe)}`],["- Platforms: ","platforms",`- Platforms: ${x(He)}...`],["- Id: ","applicatio\
33
35
  nId","- Id: `reverse.dns.id`"],["- Name: ","name","- Name: `Display name`"],["- Icon: ","icon","- Icon: `path/to/icon-10\
34
36
  24.png`"],["- Deep link scheme from: ","deepLinkSchemeFrom","- Deep link scheme from: `ENV_NAME`"],["- App link domains \
35
37
  from: ","appLinkDomainsFrom","- App link domains from: `ENV_NAME`"]]),J="### Package `id`: Label",Z=Object.freeze([k[0][2],
36
38
  k[1][2],k[2][2],"- Prepare|Build `label`: `command` `argument`...","- Environment `NAME`: `value`",k[3][2],k[4][2],"- Co\
37
- ntent: package `web-bundle-id`",...k.slice(5).map(([,,e])=>e),"- Permission `id`: User-facing reason."]),_t=Object.freeze(
39
+ ntent: package `web-bundle-id`",...k.slice(5).map(([,,e])=>e),"- Permission `id`: User-facing reason."]),It=Object.freeze(
38
40
  {packer:"Packer",workdir:"Workdir",runtimes:"Runtimes",prepare:"Prepare",build:"Build",environment:"Environment",output:"\
39
41
  Output",versionFrom:"Version from",content:"Content",platforms:"Platforms",applicationId:"Id",name:"Name",icon:"Icon",deepLinkSchemeFrom:"\
40
- 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",Fe="ge\
41
- nesis/stack.md#Architecture inspection",te=120,ne=64*1024*1024,se=64*1024,ze=Object.freeze(["runtimeRequirements","workd\
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\
42
44
  ir","argv","timeout","maxBuffer"]),N=Object.freeze({Runtime:["runtimeRequirements","`runtime`..."],Directory:["workdir",
43
45
  "`path`"],Command:["argv","`command` `argument`..."],"Timeout seconds":["timeout",`\`1\` through \`${te}\``],"Max output\
44
46
  bytes":["maxBuffer",`\`1\` through \`${ne}\``],"Entry files":["entryFiles","`path`... (optional)"],"Required files":["r\
45
- equiredFiles","`path`... (optional)"],"Preview locator":["previewLocator","`path` (optional .js file)"]}),qe=new RegExp(
46
- `^- (${Object.keys(N).join("|")}): (.+)$`,"u");function Ke(e,n={}){let{path:t=Fe}=n;if(Array.isArray(e)||s(l,t,"Architec\
47
- ture inspection requires exact Stack section lines."),g(e))return[];let r=[],c=new Set,i;function o(){if(i){for(let u of ze)
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)
48
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;
49
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\
50
- 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(qe);if(!p){
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){
51
53
  let f=Object.entries(N).map(([m,[,C]])=>`- ${m}: ${C}`).join("; ");s(l,t,`Unknown architecture inspector field. Use one \
52
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,
53
- t,"Inspector runtime",u+1);else if(a==="argv")i[a]=b(p[2],l,t,"Inspector command",u+1);else if(a==="entryFiles"||a==="re\
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\
54
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\
55
- dir")i[a]=E(f,l,t,"Inspector directory",u+1);else if(a==="previewLocator")i[a]=Ye(f,t,u+1);else{let m=Number(f),C=a==="t\
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\
56
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]=
57
- a==="timeout"?m*1e3:m}}}return o(),r.length||s(l,t,"Use an Inspector entry or - Nothing."),r}function Ye(e,n,t){return E(
58
- e,l,n,"Preview locator",t,{allowRoot:!1}),e.endsWith(".js")||s(l,n,"Preview locator must name a .js file.",t),e}var bt=Object.freeze({parseVibe64ArchitectureInspectionLines:Ke});var ie="vibe64.architecture-layout.v1",re="Architecture layout",_="VIBE64_ARCHITECTURE_LAYOUT_INVALID",A=Object.freeze([
59
- "layer","libraries","support"]);function Xe(e,n={}){let{path:t="genesis/stack.md#Architecture layout"}=n;if(Array.isArray(
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(
60
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||
61
63
  !o.purpose||!o.subsystems.length)&&s(_,t,`${o.id} needs Kind, Purpose and at least one Subsystem.`),r.push(o))}for(let[d,
62
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(),
@@ -65,40 +67,40 @@ c.has(p[1])&&s(_,t,"Duplicate group id.",d+1),c.add(p[1]),o={id:p[1],title:p[2],
65
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\
66
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+
67
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(),
68
- r.length||s(_,t,"Use a Group entry or - Nothing."),r}var kt=Object.freeze({parseVibe64ArchitectureLayoutLines:Xe});var Je="custom",oe="vibe64.connected-sources.v2",U=Object.freeze([Object.freeze({value:"npm",label:"npm (Node.js)"}),Object.
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.
69
71
  freeze({value:"composer",label:"Composer (PHP)"}),Object.freeze({value:"pip",label:"pip (Python)"}),Object.freeze({value:"\
70
72
  bundler",label:"Bundler (Ruby)"}),Object.freeze({value:"gomod",label:"Go modules"}),Object.freeze({value:"cargo",label:"\
71
73
  Cargo (Rust)"}),Object.freeze({value:"maven",label:"Maven"}),Object.freeze({value:"gradle",label:"Gradle"}),Object.freeze(
72
- {value:"nuget",label:"NuGet (.NET)"}),Object.freeze({value:Je,label:"custom"})]),ae="Vibe64's preparer appends the absol\
74
+ {value:"nuget",label:"NuGet (.NET)"}),Object.freeze({value:Ze,label:"custom"})]),ae="Vibe64's preparer appends the absol\
73
75
  ute script path and --phase prepare|verify, --source-root <the session's copy of the repository>, --project-root <consum\
74
76
  ing project>, --sources-file <absolute Sources file> and --repository <GitHub URL> arguments to the Stack's Custom runne\
75
- r command, once per phase; execution checks the script remains inside the consuming project.",Rt=Object.freeze(U.map(e=>e.
76
- value));var ce="Connected development",ue="vibe64.connected-development.v1";var W="with `runtime` [in `workdir`]: `command` `argument`...",Qe=Object.freeze({Prepare:`- Prepare \`label\` ${W}`,Verify:`\
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:`\
77
79
  - Verify \`label\` ${W}`,"Custom runner":`- Custom runner ${W}`}),pe=Object.freeze(["- Default package type: `type`","- \
78
- Sources file: `path`",...Object.values(Qe)]);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 H=new Set(["HOME","LOGNAME","NODE_OPTIONS","PATH","TMPDIR","USER"]),st=new Set(["email","login","user-id"]),it=1e4,rt=3e4,
79
- ot=[["- Command: ","command","Command","`tools/preview-identity` `argument`..."],["- Protocol: ","protocol","Protocol",`\
80
- \`${D}\``],["- Identity types: ","identityTypes","Identity types",`one or more of ${[...st].map(e=>`\`${e}\``).join(" ")}`],
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(" ")}`],
81
83
  ["- Enabled environment: ","enabledEnvironment","Enabled environment","`ENV_NAME`"],["- Secret environment: ","secretEnv\
82
84
  ironment","Secret environment","`ENV_NAME`"],["- Runtimes: ","runtimes","Runtimes","`runtime`..."],["- Timeout ms: ","ti\
83
- meoutMs","Timeout ms",`\`1\` through \`${rt}\` (default ${it})`]],he=ot.map(([e,,,n])=>`${e}${n}`);var fe="vibe64.outputs.v1",Ee="Outputs";var at=new Set(["finite","interactive"]),ct=new Set(["development","test"]),ut=new Set(["terminal","web"]),ge=16,G=e=>[...e].
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].
84
86
  map(n=>`\`${n}\``).join(" or "),ye=Object.freeze(["### Target `id`: Label","#### Parameter `id`: Label","#### Presentati\
85
- on","#### Preview identity","#### Download `id`"]),O=Object.freeze({target:["- Default.",`- Mode: ${G(at)}`,`- Data: ${G(
86
- ct)}`,"- Workdir: `path`","- Runtimes: `runtime`...","- Prepare|Build|Run `label`: `command` `argument`..."],parameter:[
87
- "- Default: `text`","- Description: `text`","- Required."],presentation:[`- Kind: ${G(ut)}`,"- Preferred port: `1024` th\
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\
88
90
  rough `65535`","- URL path: `/path`","- Ready when: `GET` `/path` returns `200`"],previewIdentity:he,download:["- Path: \
89
- `path`","- Name: `file-name`","- Media type: `type/subtype`"]});var Te="Project services",_e="vibe64.project-services.v1";var Se="- Start `service-id` [per session] with `runtime` [in `workdir`]: `command` `argument`...";var Ie="vibe64.workspace-setup.v1",be="Workspace setup";var we="- Prepare `label` [from `path`...] with `runtime` [in `workdir`] [when|if `path` exists]: `command` `argument`..\
90
- .";var ve="vibe64.resource-estimates.v1",ke="Resource estimates";var cn=1024*1024,Oe=1024*1024,Re=new Map([["Startup typical MiB","startupTypical"],["Startup high MiB","startupHigh"],["\
91
- Running typical MiB","runningTypical"],["Running high MiB","runningHigh"],["Typical MiB","typical"],["High MiB","high"]]);var lt=["Command values: the executable and every argument are separate backticked values separated by single spaces (at\
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 S({name:e,title:n,section:t,contract:r="",summary:c,body:i,example:o}){return{name:e,title:n,section:t,example:o,
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(),"",lt,"","## Example","","```markdown",`## ${t}`,
101
+ r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",dt,"","## Example","","```markdown",`## ${t}`,
100
102
  "",o.trim(),"```",""].join(`
101
- `)}}var dt=`
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(),"",l
150
152
  - Path: \`exports/report.csv\`
151
153
  - Name: \`report.csv\`
152
154
  - Media type: \`text/csv\`
153
- `,In=Object.freeze([S({name:"workspace-setup",title:"Workspace setup",section:be,contract:Ie,summary:"Ordered commands t\
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])}
@@ -169,7 +171,7 @@ act recipe; changing any step runs setup again, and Outputs stay pending until i
169
171
  step. Keep every step repeatable and non-destructive.
170
172
  `,example:"\n- Prepare `Install dependencies` from `package.json` `package-lock.json` with `nodejs`: `npm` `ci`\n- Prepare\
171
173
  `Migrate database` with `nodejs` if `migrations` exists: `npm` `run` `db:migrate`\n- Prepare `Install client` with `node\
172
- js` in `client` when `client/package.json` exists: `npm` `ci`\n"}),S({name:"outputs",title:"Outputs",section:Ee,contract:fe,
174
+ js` in `client` when `client/package.json` exists: `npm` `ci`\n"}),b({name:"outputs",title:"Outputs",section:Ee,contract:fe,
173
175
  summary:"The runnable targets Vibe64 offers: interactive terminal or web apps shown in Preview, and finite runs that pro\
174
176
  duce downloads.",body:`
175
177
  Headings, each target followed by its entries and then optional blocks:
@@ -210,13 +212,13 @@ ${h(O.previewIdentity)}
210
212
 
211
213
  - The command is a committed, application-owned project-relative executable whose path contains \`/\`, without \`{host}\` or\
212
214
  \`{port}\`.
213
- - Enabled and Secret environment names are distinct uppercase names, not ${[...H].join(", ")} or \`XDG_*\`. For an enabled\
215
+ - Enabled and Secret environment names are distinct uppercase names, not ${[...G].join(", ")} or \`XDG_*\`. For an enabled\
214
216
  web run Vibe64 sets the enabled name to \`true\` and the secret name to a fresh per-run secret; the application must keep\
215
217
  its identity exchange disabled unless both are present.
216
218
  - The command's stdin/stdout protocol: \`vibe64-helper spec preview-identity-command\`. The configured account names: \`vib\
217
219
  e64-helper spec preview-identities\`.
218
- `,example:dt}),S({name:"deployment",title:"Deployment",section:q,contract:z,summary:"The commands that turn a project re\
219
- vision into a running production application.",body:`
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:`
220
222
  Entries:
221
223
  ${h(K)}
222
224
 
@@ -224,35 +226,41 @@ ${h(K)}
224
226
  listens on the address given by the \`HOST\` and \`PORT\` environment variables. Arguments are passed literally (no \`{host}\
225
227
  \` or \`{port}\` placeholders), so a server that takes its address only as arguments needs a committed project script that \
226
228
  reads them.
227
- - Every step runs exactly as declared with the project's production environment. A host may also give Serve, and only Se\
228
- rve, its runtime's conventional production setting, such as \`NODE_ENV=production\` for Node; a value the project sets its\
229
- elf, on the Serve step or in the production environment, wins. To be sure of a mode, declare it on the Serve step, for e\
230
- xample \`env\` \`NODE_ENV=production\` \`node\` \`server.js\`, never in the production environment or Prepare, where it can make\
231
- package installation skip the build tools a later step needs.
232
- - Generated secrets names production secrets the application needs as a stable random value, such as a session-signing k\
233
- ey. When a deploy finds no production environment entry with that name, the host stores a strong random value there once\
234
- , as a secret: it is kept across releases, never printed, and never replaces a value someone set. Replacing it is an ord\
235
- inary production value change.
236
- - Setup code names the one production secret the application asks for when its first account registers on an empty produ\
237
- ction database, so that only the project owner can create that account (the first account usually becomes the applicatio\
238
- n's owner). The host generates it as it does a generated secret, so never also list it under Generated secrets, and show\
239
- s its value only to the project owner; it is never printed, logged or given to an assistant. Declare it only when the ap\
240
- plication reads that variable.
241
- - Sandbox allows names, from a closed set, what the application's own commands and service may do beyond an ordinary pro\
242
- duction sandbox: \`gvisor\` lets them start gVisor's rootless \`runsc\` (it makes its own user, mount, PID, IPC, UTS and net\
243
- work namespaces, mounts inside them and traces its own processes); \`fuse\` lets them mount a FUSE file system through \`/d\
244
- ev/fuse\` inside a user and mount namespace of their own (for example \`unshare\` \`--user\` \`--map-root-user\` \`--mount\`), ne\
245
- ver through a set-user-ID helper such as \`fusermount3\` outside one. Nothing else widens: no new privileges or capabiliti\
246
- es outside those namespaces, the same writable folders and devices. A host grants an allowance only where its owner perm\
247
- its it, and refuses a deploy that needs one it does not grant rather than run it with less. Declare it only when the app\
248
- lication needs it, never to make a failing deploy pass: an allowance widens what an intruder in the application could re\
249
- ach, so whether to grant it is the project owner's decision, never an assistant's. An assistant never adds or changes th\
250
- is line on its own; it explains the failure and asks the person.
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.
251
253
  - Host-level preparation beyond the package manager, such as system packages, devices or host permissions, goes in one s\
252
254
  cript per hosting environment, \`scripts/hosting/<host>.sh\`, which the \`HOSTING_SCRIPT\` environment variable names and th\
253
255
  e Prepare step runs; an application that needs none has no such script. It never works around Vibe64's rules: what Vibe6\
254
256
  4 provides, such as a runtime or a sandbox allowance, is declared in this section, never installed or switched on by the\
255
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.
256
264
  - One Ready when entry is required (status 200 through 399). Workdir defaults to \`.\`. Each other entry appears at most o\
257
265
  nce.
258
266
  - Recreate on restore lists project-relative globs (only \`*\` and \`**\`) that a restored deployment rebuilds with its Prep\
@@ -260,16 +268,24 @@ are step, such as installed dependencies. It requires a Prepare step.
260
268
  - Migrate applies pending migrations without destroying data.
261
269
  - Prepare and Build never need the database or another managed service: a host may run them alone, without those credent\
262
270
  ials, to check that a revision builds before it publishes it.
263
- - The host gives every step \`SIDE_EFFECTS\`: \`live\` only when the deployment's owner chose to act for real, otherwise \`si\
264
- mulate\`; unset means \`simulate\` too. No step, Generated secret or Setup code sets it. Following it is the application's \
265
- job: unless it is exactly \`live\`, the deployment is a test copy that sends no real email, SMS, push notification, paymen\
266
- t or third-party webhook, simulates each one and writes it to its log, and shows a small, always-visible "Test copy" ban\
267
- ner on its pages. Read it when the application runs, never at build time: changing it restarts the running application w\
268
- ithout a new build. In Node, for example: \`if (process.env.SIDE_EFFECTS === "live") await mailer.send(message); else con\
269
- sole.info("Test copy: email to %s not sent", message.to);\`
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);\`
270
286
  `,example:"\n- Runtimes: `nodejs`\n- Recreate on restore: `node_modules`\n- Generated secrets: `SESSION_SECRET`\n- Prepare `\
271
287
  Install`: `npm` `ci`\n- Build `Build`: `npm` `run` `build`\n- Migrate `Migrate`: `npm` `run` `db:migrate`\n- Serve `Serve`:\
272
- `env` `NODE_ENV=production` `node` `server.js`\n- Ready when: `GET` `/health` returns `200`\n"}),S({name:"packaging",title:"\
288
+ `env` `NODE_ENV=production` `node` `server.js`\n- Ready when: `GET` `/health` returns `200`\n"}),b({name:"packaging",title:"\
273
289
  Packaging",section:X,contract:Y,summary:"Source facts Vibe64 needs to turn this project into distributable packages: reg\
274
290
  istry packages, static web bundles and generated mobile app shells. Where each package is published (targets, channels, \
275
291
  builders) is Vibe64 project state, never this section.",body:`
@@ -300,7 +316,7 @@ dependencies`: `npm` `ci`\n- Build `Build bundled client`: `npm` `run` `build`\n
300
316
  Platforms: `android`\n- Id: `com.example.notes`\n- Name: `Notes`\n- Icon: `assets/icon-1024.png`\n- Version from: `package.\
301
317
  json`\n- Deep link scheme from: `APP_URL_SCHEME`\n- Permission `camera`: Take photos to attach to notes.\n\n### Package `sdk\
302
318
  `: Notes SDK\n\n- Packer: `npm`\n- Workdir: `packages/notes-sdk`\n- Runtimes: `nodejs`\n- Version from: `package.json`\n"}),
303
- S({name:"resource-estimates",title:"Resource estimates",section:ke,contract:ve,summary:"Optional memory planning hints f\
319
+ b({name:"resource-estimates",title:"Resource estimates",section:ke,contract:ve,summary:"Optional memory planning hints f\
304
320
  or Outputs and Workspace setup. They are not observed usage, reservations, minimum requirements or granted limits; the e\
305
321
  xecution host owns those choices.",body:`
306
322
  Headings: \`\` ### Output \`id\` \`\` (an id declared in Outputs) or \`### Workspace setup\` (requires declared setup steps), ea\
@@ -314,7 +330,7 @@ elds are rejected. The section is at most 64 KiB and 2048 lines.
314
330
  - Invalid estimates never change Outputs availability or setup readiness; the host then uses its generic policy. Changin\
315
331
  g only estimates does not rerun setup.
316
332
  `,example:"\n### Output `app`\n\n- Startup typical MiB: `1024`\n- Startup high MiB: `1536`\n- Running typical MiB: `768`\n- Ru\
317
- nning high MiB: `1536`\n\n### Workspace setup\n\n- Typical MiB: `1024`\n- High MiB: `1536`\n"}),S({name:"connected-devel\
333
+ nning high MiB: `1536`\n\n### Workspace setup\n\n- Typical MiB: `1024`\n- High MiB: `1536`\n"}),b({name:"connected-devel\
318
334
  opment",title:"Connected development",section:ce,contract:ue,summary:"How this project consumes the working source of it\
319
335
  s connected repositories (its own dependencies under development) in a session.",body:`
320
336
  Entries:
@@ -334,10 +350,10 @@ nection also carries \`"script"\`.
334
350
  - Custom connections: ${ae}
335
351
  `,example:"\n- Default package type: `npm`\n- Sources file: `.connected-sources.json`\n- Prepare `Link connected packages` \
336
352
  with `nodejs`: `node` `tools/link-connected.mjs`\n- Verify `Check connected packages` with `nodejs`: `node` `tools/verify\
337
- -connected.mjs`\n"}),S({name:"project-services",title:"Project services",section:Te,contract:_e,summary:"Foreground help\
353
+ -connected.mjs`\n"}),b({name:"project-services",title:"Project services",section:Te,contract:_e,summary:"Foreground help\
338
354
  er processes (workers, local reference services) that Vibe64 starts before an Output.",body:`
339
355
  Entries:
340
- ${h([Se])}
356
+ ${h([be])}
341
357
 
342
358
  - Service ids are unique, start with a lowercase letter and use up to 64 lowercase letters, digits and hyphens. Workdir \
343
359
  defaults to \`.\`.
@@ -349,7 +365,7 @@ ver spawn untracked background work.
349
365
  rd the address in the session's ignored runtime folder) and check your own instance's readiness. Never assume a shared f\
350
366
  ixed port.
351
367
  `,example:"\n- Start `worker` with `nodejs` in `tools`: `npm` `run` `worker`\n- Start `reference` per session with `nodejs\
352
- `: `npm` `run` `reference:service`\n"}),S({name:"integration-setup",title:"Integration setup",section:de,contract:le,summary:"\
368
+ `: `npm` `run` `reference:service`\n"}),b({name:"integration-setup",title:"Integration setup",section:de,contract:le,summary:"\
353
369
  The one application-owned command the editor's Integrations controls call to configure, connect and check the applicatio\
354
370
  n's external integrations.",body:`
355
371
  Exactly one entry:
@@ -357,7 +373,7 @@ ${h([me])}
357
373
 
358
374
  The command's request/response protocol and the \`integrations.json\` usage: \`vibe64-helper spec integration-setup-command\
359
375
  \`.
360
- `,example:"\n- Command with `nodejs` in `.`: `node` `scripts/integrations.js`\n"}),S({name:"architecture-inspection",title:"\
376
+ `,example:"\n- Command with `nodejs` in `.`: `node` `scripts/integrations.js`\n"}),b({name:"architecture-inspection",title:"\
361
377
  Architecture inspection",section:ee,contract:Q,summary:"Optional project-owned inspectors that the Architecture view run\
362
378
  s to observe the application's structure (pages, routes, entry points).",body:`
363
379
  Headings: \`\` ### Inspector \`id\`: Title \`\`, each followed by fields:
@@ -372,12 +388,12 @@ ject files before the inspector runs.
372
388
  inked package folder (\`node_modules/<name>\` or \`node_modules/@scope/<name>\`); the file must stay inside that package's r\
373
389
  eal folder.
374
390
  - On analysis the command receives one \`jskit.architecture-inspection-input.v1\` JSON request on stdin (files with hashes\
375
- , packages, package identity, UI discovery, the Stack hash and an optional \`cacheDirectory\`) and must print one \`${pt}\
391
+ , packages, package identity, UI discovery, the Stack hash and an optional \`cacheDirectory\`) and must print one \`${lt}\
376
392
  \` JSON document; Genesis owns that observation schema.
377
393
  - \`cacheDirectory\` is an absolute directory for this inspector alone, outside the source; the inspector may read and wri\
378
394
  te only there. When it is absent or unusable, inspect without a cache. Ignore unknown request fields.
379
395
  `,example:"\n### Inspector `ui`: UI routes\n\n- Runtime: `nodejs`\n- Directory: `.`\n- Command: `node` `tools/inspect-ui.mjs`\
380
- \n- Timeout seconds: `30`\n- Max output bytes: `1048576`\n- Entry files: `src/main.js`\n"}),S({name:"architecture-layout",
396
+ \n- Timeout seconds: `30`\n- Max output bytes: `1048576`\n- Entry files: `src/main.js`\n"}),b({name:"architecture-layout",
381
397
  title:"Architecture layout",section:re,contract:ie,summary:"Presentation groups for the Architecture view. Declarations \
382
398
  neither discover subsystems nor change their ownership.",body:`
383
399
  Headings: \`\` ### Group \`id\`: Title \`\`, each followed by:
@@ -389,4 +405,4 @@ Headings: \`\` ### Group \`id\`: Title \`\`, each followed by:
389
405
  - A Subsystem is a directory root from \`genesis/subsystems.md\`; each root is placed once. A missing root is reported, ne\
390
406
  ver invented.
391
407
  `,example:"\n### Group `shared`: Shared libraries\n\n- Kind: `libraries`\n- Purpose: `Code reused by every surface.`\n- Subsy\
392
- stem: `packages/shared`\n"})]);export{In as VIBE64_GENESIS_AGENT_SPECS};
408
+ stem: `packages/shared`\n"})]);export{wn as VIBE64_GENESIS_AGENT_SPECS};