vibe64 0.1.68 → 0.1.69

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.
@@ -1,105 +1,113 @@
1
1
  import { createRequire as __vibe64CreateRequire } from 'node:module';const require=__vibe64CreateRequire(import.meta.url);
2
- import{ARCHITECTURE_OBSERVATIONS_SCHEMA as dt}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)}},z=Object.freeze({VIBE64_WORKSPACE_SETUP_INVALID:"workspace-setup",VIBE64_OUTPUTS_INVALID:"\
2
+ import{ARCHITECTURE_OBSERVATIONS_SCHEMA as Tt}from"genesis-compiler";import U from"node:path";var B=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)}},ee=Object.freeze({VIBE64_WORKSPACE_SETUP_INVALID:"workspace-setup",VIBE64_OUTPUTS_INVALID:"\
4
4
  outputs",VIBE64_DEPLOYMENT_INVALID:"deployment",VIBE64_PACKAGING_INVALID:"packaging",VIBE64_RESOURCE_ESTIMATES_INVALID:"\
5
5
  resource-estimates",VIBE64_CONNECTED_DEVELOPMENT_INVALID:"connected-development",VIBE64_PROJECT_SERVICES_INVALID:"projec\
6
6
  t-services",VIBE64_INTEGRATION_SETUP_INVALID:"integration-setup",VIBE64_ARCHITECTURE_INSPECTION_INVALID:"architecture-in\
7
- spection",VIBE64_ARCHITECTURE_LAYOUT_INVALID:"architecture-layout"}),Ne=/ Exact grammar: vibe64-helper spec [a-z-]+\.$/u;
8
- function Ae(e,n){let t=z[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 Pe(e){let n=[...String(e||"").matchAll(/`([^`\r\n]+)`/gu)];return n.length===0||n.map(t=>t[0]).join(" ")!==e?null:
9
- n.map(t=>t[1])}function _(e,n,t,r,c,i={}){let{count:o,maximum:u=64}=i,d=Pe(e);if(!d||d.length>u||o!==void 0&&d.length!==
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
- contain ${y} backticked ${o===1?"value":"values"}.`,c)}return d}function Ce(e=""){return typeof e=="string"&&!!e&&!/[\s\0{}]/u.
12
- test(e)&&!$.isAbsolute(e)&&!e.split(/[\\/]/u).includes("..")}function I(e,n,t,r,c){let i=_(e,n,t,r,c);return Ce(i[0])||s(
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 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 k(e,n,t,r,c){let i=_(e,n,t,r,c);return i.some(o=>!/^[a-z0-9]+(?:-[a-z0-9]+)*$/u.test(o))&&s(n,t,`${r} must use \
7
+ spection",VIBE64_ARCHITECTURE_LAYOUT_INVALID:"architecture-layout"}),We=/ Exact grammar: vibe64-helper spec [a-z-]+\.$/u;
8
+ function Ge(e,n){let t=ee[e],r=String(n).replace(We,"");return t?`${r} Exact grammar: vibe64-helper spec ${t}.`:r}function s(e,n,t,r,c={}){throw new B(e,Ge(e,t),{path:n,...r===void 0?{}:{line:r},...c})}function Fe(e){let n=[...String(e||"").matchAll(/`([^`\r\n]+)`/gu)];return n.length===0||n.map(t=>t[0]).join(" ")!==e?null:
9
+ n.map(t=>t[1])}function f(e,n,t,r,c,i={}){let{count:o,maximum:u=64}=i,m=Fe(e);if(!m||m.length>u||o!==void 0&&m.length!==
10
+ o||m.some(S=>S.length>4096||/[\0\r\n]/u.test(S))){let S=o===void 0?"separate non-empty":`exactly ${o}`;s(n,t,`${r} must \
11
+ contain ${S} backticked ${o===1?"value":"values"}.`,c)}return m}function He(e=""){return typeof e=="string"&&!!e&&!/[\s\0{}]/u.
12
+ test(e)&&!U.isAbsolute(e)&&!e.split(/[\\/]/u).includes("..")}function b(e,n,t,r,c){let i=f(e,n,t,r,c);return He(i[0])||s(
13
+ n,t,`${r} must begin with a safe executable.`,c),i}function ze(e=""){return typeof e=="string"&&!!e&&!/[\0\r\n\\]/u.test(
14
+ e)&&!U.posix.isAbsolute(e)&&U.posix.normalize(e)===e&&!e.split("/").some(n=>!n||n==="..")}function g(e,n,t,r,c,i={}){let{
15
+ allowRoot:o=!0}=i;return(!ze(e)||!o&&e===".")&&s(n,t,`${r} must be a canonical project-relative path.`,c),e}function T(e,n,t,r,c){let i=f(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 Et=Object.freeze(
18
- {SPEC_BY_ERROR_CODE:z});var F="vibe64.application-deployment.v1",q="Deployment";var Ve="- Recreate on restore: ",je="- Generated secrets: ",xe="- Setup code: ",Le="- Sandbox allows: ",Be="- Packages: ";var Ue="- Instances: up to ";var We=Object.freeze(["fuse","gvisor"]);var _t=Object.freeze({APP_ENV:"Deployment never sets APP_ENV: the host gives every step the environment it deploys to. R\
17
+ ate technology id.`,c),i}function y(e=[]){let n=e.map(t=>t.trim()).filter(Boolean);return n.length===1&&n[0]==="- Nothing."}var kt=Object.freeze(
18
+ {SPEC_BY_ERROR_CODE:ee});var te="- Recreate on restore: ",ne="- Generated secrets: ",se="- Setup code: ",A="- Sandbox allows: ",V="- Packages: ";var x="- Instances: up to ";var L=Object.freeze(["fuse","gvisor"]);var qe=Object.freeze({APP_ENV:"Deployment never sets APP_ENV: the host gives every step the environment it deploys to. R\
19
19
  emove APP_ENV from Deployment.",SIDE_EFFECTS:"SIDE_EFFECTS was replaced by APP_ENV, which the host gives every step. Rem\
20
- ove SIDE_EFFECTS from Deployment."}),Ge=Object.freeze({prepare:0,build:1,migrate:2,serve:3}),x=Object.keys(Ge).map(e=>e[0].
21
- toUpperCase()+e.slice(1)),K=Object.freeze(["- Workdir: `path`","- Runtimes: `runtime`...",`${Ve}\`glob\`...`,`${je}\`NAME\
22
- \`...`,`${xe}\`NAME\``,`${Le}${We.map(e=>`\`${e}\``).join(" ")}`,`${Be}\`package\`...`,`${Ue}\`count\``,"- Ready when: `\
23
- GET` `/path` returns `200`",`- ${x.join("|")} \`label\`: \`command\` \`argument\`...`]);var Y="vibe64.packaging.v1",X="Packaging",St=Object.freeze(["genesis",".genesis",".agents",".claude",".codex",".opencode"]);var He=Object.freeze({npm:Object.freeze({entries:["workdir","runtimes","prepare","build","environment","versionFrom"],required:[
20
+ ove SIDE_EFFECTS from Deployment."}),ie=Object.freeze({prepare:0,build:1,migrate:2,serve:3}),w=Object.keys(ie).map(e=>e[0].
21
+ toUpperCase()+e.slice(1)),C=Object.freeze(["- Workdir: `path`","- Runtimes: `runtime`...",`${te}\`glob\`...`,`${ne}\`NAME\
22
+ \`...`,`${se}\`NAME\``,`${A}${L.map(e=>`\`${e}\``).join(" ")}`,`${V}\`package\`...`,`${x}\`count\``,"- Ready when: `GET`\
23
+ `/path` returns `200`",`- ${w.join("|")} \`label\`: \`command\` \`argument\`...`]);var Vt=Object.freeze(["public","internal"]),xt=Object.freeze({"any instance":"any","each instance":"each"});var W=e=>new RegExp(`^- ${e}: \`([^\`\\r\\n]*)\`$`,"u"),Lt=W("Exposure"),jt=W("Reached"),Ut=W("Development"),tt=Object.freeze(
24
+ ["local folder","own bucket"]),Bt=Object.freeze(["APP_ENV","SIDE_EFFECTS","HOST","PORT","APP_PUBLIC_URL","TRUSTED_PROXIE\
25
+ S"]);var G=Object.freeze(["### Service `id`: summary","### Resource `id`"]),F=Object.freeze(["- Exposure: `public` or `intern\
26
+ al`","- Serve `label`: `command` `argument`...","- Ready when: `GET` `/path` returns `200`","- Instances: `min` to `max`",
27
+ "- Needs at least: `N` vCPU, `N` GiB memory","- Production: `N` instances","- Reached: `any instance` or `each instance`",
28
+ "- Reaches: `service` as `SETTING`","- Setting `NAME`: `value`",`${V}\`package\`...`,`${A}${L.map(e=>`\`${e}\``).join(" ")}`]),
29
+ H=Object.freeze([`- Development: ${tt.map(e=>`\`${e}\``).join(" or ")}`]),Wt=Object.freeze(C.filter(e=>![A,x,"- Ready wh\
30
+ en: "].some(n=>e.startsWith(n))).map(e=>e.replace(`|${w.at(-1)} `," ")));var oe="vibe64.application-deployment.v2";var ae="Deployment";var ce="vibe64.packaging.v1",ue="Packaging",cn=Object.freeze(["genesis",".genesis",".agents",".claude",".codex",".openco\
31
+ de"]);var nt=Object.freeze({npm:Object.freeze({entries:["workdir","runtimes","prepare","build","environment","versionFrom"],required:[
24
32
  "versionFrom"],versionSources:["package.json","external"]}),"python-dist":Object.freeze({entries:["workdir","runtimes","\
25
33
  prepare","build","environment","output","versionFrom"],required:["build","output","versionFrom"],versionSources:["pyproj\
26
34
  ect.toml","external"]}),"web-bundle":Object.freeze({entries:["workdir","runtimes","prepare","build","environment","outpu\
27
35
  t"],required:["build","output"],versionSources:[]}),capacitor:Object.freeze({entries:["workdir","content","platforms","a\
28
36
  pplicationId","name","icon","versionFrom","deepLinkSchemeFrom","appLinkDomainsFrom","permission"],required:["content","p\
29
- latforms","applicationId","name","icon","versionFrom"],versionSources:["package.json","external"]})}),B=Object.freeze(Object.
30
- keys(He)),ze=Object.freeze(["android"]),Fe=Object.freeze(["package.json","pyproject.toml","external"]),L=e=>e.map(n=>`\`${n}\
31
- \``).join(" | "),v=Object.freeze([["- Packer: ","packer",`- Packer: ${L(B)}`],["- Workdir: ","workdir","- Workdir: `path\
37
+ latforms","applicationId","name","icon","versionFrom"],versionSources:["package.json","external"]})}),K=Object.freeze(Object.
38
+ keys(nt)),st=Object.freeze(["android"]),it=Object.freeze(["package.json","pyproject.toml","external"]),q=e=>e.map(n=>`\`${n}\
39
+ \``).join(" | "),k=Object.freeze([["- Packer: ","packer",`- Packer: ${q(K)}`],["- Workdir: ","workdir","- Workdir: `path\
32
40
  `"],["- Runtimes: ","runtimes","- Runtimes: `runtime`..."],["- Output: ","output","- Output: `path`"],["- Version from: ",
33
- "versionFrom",`- Version from: ${L(Fe)}`],["- Platforms: ","platforms",`- Platforms: ${L(ze)}...`],["- Id: ","applicatio\
41
+ "versionFrom",`- Version from: ${q(it)}`],["- Platforms: ","platforms",`- Platforms: ${q(st)}...`],["- Id: ","applicatio\
34
42
  nId","- Id: `reverse.dns.id`"],["- Name: ","name","- Name: `Display name`"],["- Icon: ","icon","- Icon: `path/to/icon-10\
35
43
  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`"]]),Z="### Package `id`: Label",J=Object.freeze([v[0][2],
37
- v[1][2],v[2][2],"- Prepare|Build `label`: `command` `argument`...","- Environment `NAME`: `value`",v[3][2],v[4][2],"- Co\
38
- ntent: package `web-bundle-id`",...v.slice(5).map(([,,e])=>e),"- Permission `id`: User-facing reason."]),It=Object.freeze(
44
+ from: ","appLinkDomainsFrom","- App link domains from: `ENV_NAME`"]]),pe="### Package `id`: Label",le=Object.freeze([k[0][2],
45
+ k[1][2],k[2][2],"- Prepare|Build `label`: `command` `argument`...","- Environment `NAME`: `value`",k[3][2],k[4][2],"- Co\
46
+ ntent: package `web-bundle-id`",...k.slice(5).map(([,,e])=>e),"- Permission `id`: User-facing reason."]),un=Object.freeze(
39
47
  {packer:"Packer",workdir:"Workdir",runtimes:"Runtimes",prepare:"Prepare",build:"Build",environment:"Environment",output:"\
40
48
  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",qe="ge\
42
- nesis/stack.md#Architecture inspection",te=120,ne=64*1024*1024,se=64*1024,Ke=Object.freeze(["runtimeRequirements","workd\
43
- ir","argv","timeout","maxBuffer"]),N=Object.freeze({Runtime:["runtimeRequirements","`runtime`..."],Directory:["workdir",
44
- "`path`"],Command:["argv","`command` `argument`..."],"Timeout seconds":["timeout",`\`1\` through \`${te}\``],"Max output\
45
- bytes":["maxBuffer",`\`1\` through \`${ne}\``],"Entry files":["entryFiles","`path`... (optional)"],"Required files":["r\
46
- equiredFiles","`path`... (optional)"],"Preview locator":["previewLocator","`path` (optional .js file)"]}),Ye=new RegExp(
47
- `^- (${Object.keys(N).join("|")}): (.+)$`,"u");function Xe(e,n={}){let{path:t=qe}=n;if(Array.isArray(e)||s(l,t,"Architec\
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 Ke)
49
- 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
- let S=y.match(/^### Inspector `([a-z0-9]+(?:-[a-z0-9]+)*)`: (.+)$/u);if(S){o(),c.has(S[1])&&s(l,t,"Duplicate inspector i\
51
- d.",u+1),c.add(S[1]),i={id:S[1],title:S[2]};continue}i||s(l,t,"Expected an Inspector heading.",u+1);let p=y.match(Ye);if(!p){
52
- let f=Object.entries(N).map(([m,[,P]])=>`- ${m}: ${P}`).join("; ");s(l,t,`Unknown architecture inspector field. Use one \
53
- 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]=k(p[2],l,
54
- t,"Inspector runtime",u+1);else if(a==="argv")i[a]=I(p[2],l,t,"Inspector command",u+1);else if(a==="entryFiles"||a==="re\
55
- quiredFiles")i[a]=_(p[2],l,t,p[1],u+1).map(f=>E(f,l,t,p[1],u+1));else{let[f]=_(p[2],l,t,p[1],u+1,{count:1});if(a==="work\
56
- dir")i[a]=E(f,l,t,"Inspector directory",u+1);else if(a==="previewLocator")i[a]=Ze(f,t,u+1);else{let m=Number(f),P=a==="t\
57
- imeout"?te:ne;(!/^[1-9][0-9]*$/u.test(f)||!Number.isSafeInteger(m)||m>P)&&s(l,t,`${p[1]} must be from 1 to ${P}.`,u+1),i[a]=
58
- a==="timeout"?m*1e3:m}}}return o(),r.length||s(l,t,"Use an Inspector entry or - Nothing."),r}function Ze(e,n,t){return E(
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 vt=Object.freeze({parseVibe64ArchitectureInspectionLines:Xe});var ie="vibe64.architecture-layout.v1",re="Architecture layout",b="VIBE64_ARCHITECTURE_LAYOUT_INVALID",A=Object.freeze([
60
- "layer","libraries","support"]);function Je(e,n={}){let{path:t="genesis/stack.md#Architecture layout"}=n;if(Array.isArray(
61
- e)||s(b,t,"Expected exact Stack section lines."),g(e))return[];let r=[],c=new Set,i=new Set,o;function u(){o&&((!o.kind||
62
- !o.purpose||!o.subsystems.length)&&s(b,t,`${o.id} needs Kind, Purpose and at least one Subsystem.`),r.push(o))}for(let[d,
63
- y]of e.entries()){let S=y.trim();if(!S)continue;let p=S.match(/^### Group `([a-z0-9]+(?:-[a-z0-9]+)*)`: (.+)$/u);if(p){u(),
64
- c.has(p[1])&&s(b,t,"Duplicate group id.",d+1),c.add(p[1]),o={id:p[1],title:p[2],subsystems:[]};continue}let a=S.match(/^- (Kind|Purpose|Subsystem): (.+)$/u);
65
- (!o||!a)&&s(b,t,"Expected a Group heading or Kind, Purpose, Subsystem field.",d+1);let f=_(a[2],b,t,a[1],d+1,{count:1});
66
- if(a[1]==="Subsystem"){let m=E(f[0],b,t,"Subsystem root",d+1);i.has(m)&&s(b,t,"Each directory root may be placed only on\
67
- ce.",d+1),i.add(m),o.subsystems.push({root:m})}else{let m=a[1].toLowerCase();o[m]!==void 0&&s(b,t,`Duplicate ${a[1]}.`,d+
68
- 1),m==="kind"&&!A.includes(f[0])&&s(b,t,`Kind must be ${A.slice(0,-1).join(", ")} or ${A.at(-1)}.`,d+1),o[m]=f[0]}}return u(),
69
- r.length||s(b,t,"Use a Group entry or - Nothing."),r}var Nt=Object.freeze({parseVibe64ArchitectureLayoutLines:Je});var Qe="custom",oe="vibe64.connected-sources.v2",U=Object.freeze([Object.freeze({value:"npm",label:"npm (Node.js)"}),Object.
49
+ Deep link scheme from",appLinkDomainsFrom:"App link domains from",permission:"Permission"});var de="vibe64.architecture-inspection.v1",me="Architecture inspection",l="VIBE64_ARCHITECTURE_INSPECTION_INVALID",rt="g\
50
+ enesis/stack.md#Architecture inspection",he=120,Ee=64*1024*1024,fe=64*1024,ot=Object.freeze(["runtimeRequirements","work\
51
+ dir","argv","timeout","maxBuffer"]),P=Object.freeze({Runtime:["runtimeRequirements","`runtime`..."],Directory:["workdir",
52
+ "`path`"],Command:["argv","`command` `argument`..."],"Timeout seconds":["timeout",`\`1\` through \`${he}\``],"Max output\
53
+ bytes":["maxBuffer",`\`1\` through \`${Ee}\``],"Entry files":["entryFiles","`path`... (optional)"],"Required files":["r\
54
+ equiredFiles","`path`... (optional)"],"Preview locator":["previewLocator","`path` (optional .js file)"]}),at=new RegExp(
55
+ `^- (${Object.keys(P).join("|")}): (.+)$`,"u");function ct(e,n={}){let{path:t=rt}=n;if(Array.isArray(e)||s(l,t,"Architec\
56
+ ture inspection requires exact Stack section lines."),y(e))return[];let r=[],c=new Set,i;function o(){if(i){for(let u of ot)
57
+ i[u]===void 0&&s(l,t,`${i.id} is missing ${u}.`);r.push(i),i=null}}for(let[u,m]of e.entries()){let S=m.trim();if(!S)continue;
58
+ let R=S.match(/^### Inspector `([a-z0-9]+(?:-[a-z0-9]+)*)`: (.+)$/u);if(R){o(),c.has(R[1])&&s(l,t,"Duplicate inspector i\
59
+ d.",u+1),c.add(R[1]),i={id:R[1],title:R[2]};continue}i||s(l,t,"Expected an Inspector heading.",u+1);let p=S.match(at);if(!p){
60
+ let E=Object.entries(P).map(([h,[,M]])=>`- ${h}: ${M}`).join("; ");s(l,t,`Unknown architecture inspector field. Use one \
61
+ of: ${E}.`,u+1)}let[a]=P[p[1]];if(i[a]!==void 0&&s(l,t,`Duplicate ${p[1]}.`,u+1),a==="runtimeRequirements")i[a]=T(p[2],l,
62
+ 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\
63
+ quiredFiles")i[a]=f(p[2],l,t,p[1],u+1).map(E=>g(E,l,t,p[1],u+1));else{let[E]=f(p[2],l,t,p[1],u+1,{count:1});if(a==="work\
64
+ dir")i[a]=g(E,l,t,"Inspector directory",u+1);else if(a==="previewLocator")i[a]=ut(E,t,u+1);else{let h=Number(E),M=a==="t\
65
+ imeout"?he:Ee;(!/^[1-9][0-9]*$/u.test(E)||!Number.isSafeInteger(h)||h>M)&&s(l,t,`${p[1]} must be from 1 to ${M}.`,u+1),i[a]=
66
+ a==="timeout"?h*1e3:h}}}return o(),r.length||s(l,t,"Use an Inspector entry or - Nothing."),r}function ut(e,n,t){return g(
67
+ e,l,n,"Preview locator",t,{allowRoot:!1}),e.endsWith(".js")||s(l,n,"Preview locator must name a .js file.",t),e}var dn=Object.freeze({parseVibe64ArchitectureInspectionLines:ct});var ge="vibe64.architecture-layout.v1",ye="Architecture layout",v="VIBE64_ARCHITECTURE_LAYOUT_INVALID",$=Object.freeze([
68
+ "layer","libraries","support"]);function pt(e,n={}){let{path:t="genesis/stack.md#Architecture layout"}=n;if(Array.isArray(
69
+ e)||s(v,t,"Expected exact Stack section lines."),y(e))return[];let r=[],c=new Set,i=new Set,o;function u(){o&&((!o.kind||
70
+ !o.purpose||!o.subsystems.length)&&s(v,t,`${o.id} needs Kind, Purpose and at least one Subsystem.`),r.push(o))}for(let[m,
71
+ S]of e.entries()){let R=S.trim();if(!R)continue;let p=R.match(/^### Group `([a-z0-9]+(?:-[a-z0-9]+)*)`: (.+)$/u);if(p){u(),
72
+ c.has(p[1])&&s(v,t,"Duplicate group id.",m+1),c.add(p[1]),o={id:p[1],title:p[2],subsystems:[]};continue}let a=R.match(/^- (Kind|Purpose|Subsystem): (.+)$/u);
73
+ (!o||!a)&&s(v,t,"Expected a Group heading or Kind, Purpose, Subsystem field.",m+1);let E=f(a[2],v,t,a[1],m+1,{count:1});
74
+ if(a[1]==="Subsystem"){let h=g(E[0],v,t,"Subsystem root",m+1);i.has(h)&&s(v,t,"Each directory root may be placed only on\
75
+ ce.",m+1),i.add(h),o.subsystems.push({root:h})}else{let h=a[1].toLowerCase();o[h]!==void 0&&s(v,t,`Duplicate ${a[1]}.`,m+
76
+ 1),h==="kind"&&!$.includes(E[0])&&s(v,t,`Kind must be ${$.slice(0,-1).join(", ")} or ${$.at(-1)}.`,m+1),o[h]=E[0]}}return u(),
77
+ r.length||s(v,t,"Use a Group entry or - Nothing."),r}var En=Object.freeze({parseVibe64ArchitectureLayoutLines:pt});var lt="custom",Se="vibe64.connected-sources.v2",X=Object.freeze([Object.freeze({value:"npm",label:"npm (Node.js)"}),Object.
70
78
  freeze({value:"composer",label:"Composer (PHP)"}),Object.freeze({value:"pip",label:"pip (Python)"}),Object.freeze({value:"\
71
79
  bundler",label:"Bundler (Ruby)"}),Object.freeze({value:"gomod",label:"Go modules"}),Object.freeze({value:"cargo",label:"\
72
80
  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:Qe,label:"custom"})]),ae="Vibe64's preparer appends the absol\
81
+ {value:"nuget",label:"NuGet (.NET)"}),Object.freeze({value:lt,label:"custom"})]),ve="Vibe64's preparer appends the absol\
74
82
  ute script path and --phase prepare|verify, --source-root <the session's copy of the repository>, --project-root <consum\
75
83
  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.",Pt=Object.freeze(U.map(e=>e.
77
- value));var ce="Connected development",ue="vibe64.connected-development.v1";var W="with `runtime` [in `workdir`]: `command` `argument`...",tt=Object.freeze({Prepare:`- Prepare \`label\` ${W}`,Verify:`\
78
- - Verify \`label\` ${W}`,"Custom runner":`- Custom runner ${W}`}),pe=Object.freeze(["- Default package type: `type`","- \
79
- Sources file: `path`",...Object.values(tt)]);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"]),rt=new Set(["email","login","user-id"]),ot=1e4,at=3e4,
80
- ct=[["- Command: ","command","Command","`tools/preview-identity` `argument`..."],["- Protocol: ","protocol","Protocol",`\
81
- \`${D}\``],["- Identity types: ","identityTypes","Identity types",`one or more of ${[...rt].map(e=>`\`${e}\``).join(" ")}`],
84
+ r command, once per phase; execution checks the script remains inside the consuming project.",gn=Object.freeze(X.map(e=>e.
85
+ value));var _e="Connected development",Re="vibe64.connected-development.v1";var Z="with `runtime` [in `workdir`]: `command` `argument`...",mt=Object.freeze({Prepare:`- Prepare \`label\` ${Z}`,Verify:`\
86
+ - Verify \`label\` ${Z}`,"Custom runner":`- Custom runner ${Z}`}),be=Object.freeze(["- Default package type: `type`","- \
87
+ Sources file: `path`",...Object.values(mt)]);var Te="vibe64.integration-setup.v1",Ie="Integration setup";var Oe="- Command with `runtime` in `workdir`: `command` `argument`...";var j="vibe64.preview-identity.command.v1";var J=new Set(["HOME","LOGNAME","NODE_OPTIONS","PATH","TMPDIR","USER"]),gt=new Set(["email","login","user-id"]),yt=1e4,St=3e4,
88
+ vt=[["- Command: ","command","Command","`tools/preview-identity` `argument`..."],["- Protocol: ","protocol","Protocol",`\
89
+ \`${j}\``],["- Identity types: ","identityTypes","Identity types",`one or more of ${[...gt].map(e=>`\`${e}\``).join(" ")}`],
82
90
  ["- Enabled environment: ","enabledEnvironment","Enabled environment","`ENV_NAME`"],["- Secret environment: ","secretEnv\
83
91
  ironment","Secret environment","`ENV_NAME`"],["- Runtimes: ","runtimes","Runtimes","`runtime`..."],["- Timeout ms: ","ti\
84
- meoutMs","Timeout ms",`\`1\` through \`${at}\` (default ${ot})`]],he=ct.map(([e,,,n])=>`${e}${n}`);var fe="vibe64.outputs.v1",Ee="Outputs";var ut=new Set(["finite","interactive"]),pt=new Set(["development","test"]),lt=new Set(["terminal","web"]),ge=16,H=e=>[...e].
85
- 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: ${H(ut)}`,`- Data: ${H(
87
- pt)}`,"- Workdir: `path`","- Runtimes: `runtime`...","- Prepare|Build|Run `label`: `command` `argument`..."],parameter:[
88
- "- Default: `text`","- Description: `text`","- Required."],presentation:[`- Kind: ${H(lt)}`,"- Preferred port: `1024` th\
89
- 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 _e="Project services",be="vibe64.project-services.v1";var Te="- Start `service-id` [per session] with `runtime` [in `workdir`]: `command` `argument`...";var Se="vibe64.workspace-setup.v1",Ie="Workspace setup";var ke="- Prepare `label` [from `path`...] with `runtime` [in `workdir`] [when|if `path` exists]: `command` `argument`..\
91
- .";var we="vibe64.resource-estimates.v1",ve="Resource estimates";var ln=1024*1024,Oe=1024*1024,Re=new Map([["Startup typical MiB","startupTypical"],["Startup high MiB","startupHigh"],["\
92
- Running typical MiB","runningTypical"],["Running high MiB","runningHigh"],["Typical MiB","typical"],["High MiB","high"]]);var mt=["Command values: the executable and every argument are separate backticked values separated by single spaces (at\
92
+ meoutMs","Timeout ms",`\`1\` through \`${St}\` (default ${yt})`]],we=vt.map(([e,,,n])=>`${e}${n}`);var ke="vibe64.outputs.v1",Ne="Outputs";var _t=new Set(["finite","interactive"]),Rt=new Set(["development","test"]),bt=new Set(["terminal","web"]),Ae=16,Q=e=>[...e].
93
+ map(n=>`\`${n}\``).join(" or "),Ce=Object.freeze(["### Target `id`: Label","#### Parameter `id`: Label","#### Presentati\
94
+ on","#### Preview identity","#### Download `id`"]),N=Object.freeze({target:["- Default.",`- Mode: ${Q(_t)}`,`- Data: ${Q(
95
+ Rt)}`,"- Workdir: `path`","- Runtimes: `runtime`...","- Prepare|Build|Run `label`: `command` `argument`..."],parameter:[
96
+ "- Default: `text`","- Description: `text`","- Required."],presentation:[`- Kind: ${Q(bt)}`,"- Preferred port: `1024` th\
97
+ rough `65535`","- URL path: `/path`","- Ready when: `GET` `/path` returns `200`"],previewIdentity:we,download:["- Path: \
98
+ `path`","- Name: `file-name`","- Media type: `type/subtype`"]});var De="Project services",Pe="vibe64.project-services.v1";var $e="- Start `service-id` [per session] with `runtime` [in `workdir`]: `command` `argument`...";var Me="vibe64.workspace-setup.v1",Ve="Workspace setup";var xe="- Prepare `label` [from `path`...] with `runtime` [in `workdir`] [when|if `path` exists]: `command` `argument`..\
99
+ .";var Le="vibe64.resource-estimates.v1",je="Resource estimates";var Xn=1024*1024,Ue=1024*1024,Be=new Map([["Startup typical MiB","startupTypical"],["Startup high MiB","startupHigh"],["\
100
+ Running typical MiB","runningTypical"],["Running high MiB","runningHigh"],["Typical MiB","typical"],["High MiB","high"]]);var It=["Command values: the executable and every argument are separate backticked values separated by single spaces (at\
93
101
  most 64 values of at most 4096 characters, no line breaks). The executable is a name on PATH or a project-relative path\
94
102
  , never absolute and never containing `..`.","Runtimes are lowercase technology ids selected in the project's Stack, suc\
95
103
  h as `nodejs` or `php`. Paths are canonical project-relative paths; `.` is the project root.","A section containing only\
96
104
  `- Nothing.` explicitly declares nothing. Blank lines are ignored."].join(`
97
- `),h=e=>e.map(n=>` ${n}`).join(`
98
- `);function T({name:e,title:n,section:t,contract:r="",summary:c,body:i,example:o}){return{name:e,title:n,section:t,example:o,
105
+ `),d=e=>e.map(n=>` ${n}`).join(`
106
+ `);function _({name:e,title:n,section:t,contract:r="",summary:c,body:i,example:o}){return{name:e,title:n,section:t,example:o,
99
107
  text:()=>[`# ${n}`,"",`Section: \`## ${t}\` in \`genesis/stack.md\`${r?`, contract \`${r}\``:""}. Vibe64 owns its gramma\
100
- r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",mt,"","## Example","","```markdown",`## ${t}`,
108
+ r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",It,"","## Example","","```markdown",`## ${t}`,
101
109
  "",o.trim(),"```",""].join(`
102
- `)}}var ht=`
110
+ `)}}var Ot=`
103
111
  ### Target \`app\`: Application
104
112
 
105
113
  - Default.
@@ -116,7 +124,7 @@ r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",m
116
124
  #### Preview identity
117
125
 
118
126
  - Command: \`tools/preview-identity\`
119
- - Protocol: \`${D}\`
127
+ - Protocol: \`${j}\`
120
128
  - Identity types: \`email\`
121
129
  - Enabled environment: \`APP_PREVIEW_IDENTITY_ENABLED\`
122
130
  - Secret environment: \`APP_PREVIEW_IDENTITY_SECRET\`
@@ -151,10 +159,10 @@ r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",m
151
159
  - Path: \`exports/report.csv\`
152
160
  - Name: \`report.csv\`
153
161
  - Media type: \`text/csv\`
154
- `,wn=Object.freeze([T({name:"workspace-setup",title:"Workspace setup",section:Ie,contract:Se,summary:"Ordered commands t\
162
+ `,ps=Object.freeze([_({name:"workspace-setup",title:"Workspace setup",section:Ve,contract:Me,summary:"Ordered commands t\
155
163
  hat prepare a session's working copy (dependencies, generated files, migrations) before any Output runs.",body:`
156
164
  Each entry:
157
- ${h([ke])}
165
+ ${d([xe])}
158
166
 
159
167
  - \`\` in \`workdir\` \`\` runs the command in that project directory (default \`.\`).
160
168
  - \`\` when \`path\` exists \`\` waits: setup stays waiting until the path exists (for example a manifest the agent has not cr\
@@ -170,14 +178,14 @@ act recipe; changing any step runs setup again, and Outputs stay pending until i
170
178
  step. Keep every step repeatable and non-destructive.
171
179
  `,example:"\n- Prepare `Install dependencies` from `package.json` `package-lock.json` with `nodejs`: `npm` `ci`\n- Prepare\
172
180
  `Migrate database` with `nodejs` if `migrations` exists: `npm` `run` `db:migrate`\n- Prepare `Install client` with `node\
173
- js` in `client` when `client/package.json` exists: `npm` `ci`\n"}),T({name:"outputs",title:"Outputs",section:Ee,contract:fe,
181
+ js` in `client` when `client/package.json` exists: `npm` `ci`\n"}),_({name:"outputs",title:"Outputs",section:Ne,contract:ke,
174
182
  summary:"The runnable targets Vibe64 offers: interactive terminal or web apps shown in Preview, and finite runs that pro\
175
183
  duce downloads.",body:`
176
184
  Headings, each target followed by its entries and then optional blocks:
177
- ${h(ye)}
185
+ ${d(Ce)}
178
186
 
179
187
  Target entries:
180
- ${h(O.target)}
188
+ ${d(N.target)}
181
189
 
182
190
  - Ids use lowercase letters, digits and single hyphens. Target ids are unique; at most one target is \`- Default.\` (the n\
183
191
  ormal Preview).
@@ -189,39 +197,39 @@ ication must listen there. \`{parameter:id}\` may appear in any step argument.
189
197
  laywright --target <id>\`). \`development\` is the other value; omitting Data asserts nothing.
190
198
  - Workdir defaults to \`.\`.
191
199
 
192
- \`#### Parameter\` entries (at most ${ge} per target, each used in a step):
193
- ${h(O.parameter)}
200
+ \`#### Parameter\` entries (at most ${Ae} per target, each used in a step):
201
+ ${d(N.parameter)}
194
202
 
195
203
  Values are single-line text of at most 4096 characters; an omitted Default is empty; Required rejects blank values. Para\
196
204
  meters are visible arguments: keep credentials in Env.
197
205
 
198
206
  \`#### Presentation\` entries:
199
- ${h(O.presentation)}
207
+ ${d(N.presentation)}
200
208
 
201
209
  \`terminal\` accepts only Kind. \`web\` needs one Ready when (status 200 through 399); URL path defaults to \`/\`.
202
210
 
203
211
  \`#### Download\` entries (all required):
204
- ${h(O.download)}
212
+ ${d(N.download)}
205
213
 
206
214
  Path is a project-relative file the steps produce; Name is a safe file name of at most 255 characters; Media type is low\
207
215
  ercase type/subtype.
208
216
 
209
217
  \`#### Preview identity\` entries (web targets only; Command, Protocol and Identity types are required):
210
- ${h(O.previewIdentity)}
218
+ ${d(N.previewIdentity)}
211
219
 
212
220
  - The command is a committed, application-owned project-relative executable whose path contains \`/\`, without \`{host}\` or\
213
221
  \`{port}\`.
214
- - Enabled and Secret environment names are distinct uppercase names, not ${[...G].join(", ")} or \`XDG_*\`. For an enabled\
222
+ - Enabled and Secret environment names are distinct uppercase names, not ${[...J].join(", ")} or \`XDG_*\`. For an enabled\
215
223
  web run Vibe64 sets the enabled name to \`true\` and the secret name to a fresh per-run secret; the application must keep\
216
224
  its identity exchange disabled unless both are present.
217
225
  - The command's stdin/stdout protocol: \`vibe64-helper spec preview-identity-command\`. The configured account names: \`vib\
218
226
  e64-helper spec preview-identities\`.
219
- `,example:ht}),T({name:"deployment",title:"Deployment",section:q,contract:F,summary:"The commands that turn a project re\
220
- vision into a running deployed application.",body:`
227
+ `,example:Ot}),_({name:"deployment",title:"Deployment",section:ae,contract:oe,summary:"The commands that turn a project \
228
+ revision into a running deployed application.",body:`
221
229
  Entries:
222
- ${h(K)}
230
+ ${d(C)}
223
231
 
224
- - Steps are ordered ${x.join(", ")}; exactly one Serve step comes last. Serve starts the long-running application, which\
232
+ - Steps are ordered ${w.join(", ")}; exactly one Serve step comes last. Serve starts the long-running application, which\
225
233
  listens on the address given by the \`HOST\` and \`PORT\` environment variables. Arguments are passed literally (no \`{host}\
226
234
  \` or \`{port}\` placeholders), so a server that takes its address only as arguments needs a committed project script that \
227
235
  reads them.
@@ -269,6 +277,26 @@ job that must run once. Such state belongs in a declared resource (a database, a
269
277
  side the release before it.
270
278
  - One Ready when entry is required (status 200 through 399). Workdir defaults to \`.\`. Each other entry appears at most o\
271
279
  nce.
280
+ - Services: an application that runs as more than one kind of process (a different machine size, untrusted work kept apa\
281
+ rt from secrets, scaling apart) lists them under headings ${G.map(e=>`\`\` ${e} \`\``).join(" and ")}, after the entries\
282
+ shared by every service (Workdir, Runtimes, Recreate on restore, Generated secrets, Setup code, Packages, and the Prepa\
283
+ re, Build and Migrate steps: one build serves every service). Without such headings the Deployment is one public service\
284
+ , \`web\`. With them, each service says its own Serve, Ready when, Instances and Sandbox allows, and none of these stays a\
285
+ bove the headings. A service's id is a lowercase letter then up to 15 lowercase letters, digits and hyphens; there are 1\
286
+ to 8, exactly one public. \`### Service\` entries:
287
+ ${d(F)}
288
+ Exposure, Serve, Ready when and Instances (1 to 100, the least first) are required. Needs at least is the smallest mac\
289
+ hine it runs on, in whole vCPUs and GiB, never a provider's size name. Production is the count Production starts with (d\
290
+ efault the least). Reached \`each instance\` (internal services only) gives each instance the address the others reach it \
291
+ at. Reaches opens the reached service's port to this one and sets SETTING to its address. A Setting is a fact of the sou\
292
+ rce, the same in every environment; secrets and values that differ per environment belong in the environment's Env. No R\
293
+ eaches or Setting names a setting the host gives (\`APP_ENV\`, \`HOST\`, \`PORT\`, \`APP_PUBLIC_URL\`, \`TRUSTED_PROXIES\`, any \`V\
294
+ 64_\` name), a generated secret, the setup code or a name a resource binds. A service's Packages come beside the shared o\
295
+ nes.
296
+ - \`### Resource\` entries, for a resource of \`## Resources\` by its id:
297
+ ${d(H)}
298
+ For a bucket only: \`local folder\` means development gives the application no bucket settings and it keeps its files in\
299
+ its own folder; \`own bucket\` (the default) lets the person enter a bucket's settings.
272
300
  - Recreate on restore lists project-relative globs (only \`*\` and \`**\`) that a restored deployment rebuilds with its Prep\
273
301
  are step, such as installed dependencies. It requires a Prepare step.
274
302
  - Migrate applies pending migrations without destroying data.
@@ -291,14 +319,14 @@ aging: process.env.STAGING_EMAIL_TO }[process.env.APP_ENV]; if (to) await mailer
291
319
  info("%s: email to %s not sent", process.env.APP_ENV, message.to);\`
292
320
  `,example:"\n- Runtimes: `nodejs`\n- Recreate on restore: `node_modules`\n- Generated secrets: `SESSION_SECRET`\n- Prepare `\
293
321
  Install`: `npm` `ci`\n- Build `Build`: `npm` `run` `build`\n- Migrate `Migrate`: `npm` `run` `db:migrate`\n- Serve `Serve`:\
294
- `env` `NODE_ENV=production` `node` `server.js`\n- Ready when: `GET` `/health` returns `200`\n"}),T({name:"packaging",title:"\
295
- Packaging",section:X,contract:Y,summary:"Source facts Vibe64 needs to turn this project into distributable packages: reg\
296
- istry packages, static web bundles and generated mobile app shells. Where each package is published (targets, channels, \
297
- builders) is Vibe64 project state, never this section.",body:`
298
- Headings: \`\` ${Z} \`\`, each followed by entries:
299
- ${h(J)}
300
-
301
- - Packers (closed set): ${B.map(e=>`\`${e}\``).join(", ")}. Package ids are unique lowercase ids with single hyphens.
322
+ `env` `NODE_ENV=production` `node` `server.js`\n- Ready when: `GET` `/health` returns `200`\n"}),_({name:"packaging",title:"\
323
+ Packaging",section:ue,contract:ce,summary:"Source facts Vibe64 needs to turn this project into distributable packages: r\
324
+ egistry packages, static web bundles and generated mobile app shells. Where each package is published (targets, channels\
325
+ , builders) is Vibe64 project state, never this section.",body:`
326
+ Headings: \`\` ${pe} \`\`, each followed by entries:
327
+ ${d(le)}
328
+
329
+ - Packers (closed set): ${K.map(e=>`\`${e}\``).join(", ")}. Package ids are unique lowercase ids with single hyphens.
302
330
  - \`npm\`: Version from \`package.json\` or \`external\`; Vibe64 runs \`npm pack\` in Workdir after the optional Prepare and Bui\
303
331
  ld steps.
304
332
  - \`python-dist\`: Build (for example \`python\` \`-m\` \`build\`), Output (for example \`dist\`) and Version from \`pyproject.toml\
@@ -322,44 +350,44 @@ dependencies`: `npm` `ci`\n- Build `Build bundled client`: `npm` `run` `build`\n
322
350
  Platforms: `android`\n- Id: `com.example.notes`\n- Name: `Notes`\n- Icon: `assets/icon-1024.png`\n- Version from: `package.\
323
351
  json`\n- Deep link scheme from: `APP_URL_SCHEME`\n- Permission `camera`: Take photos to attach to notes.\n\n### Package `sdk\
324
352
  `: Notes SDK\n\n- Packer: `npm`\n- Workdir: `packages/notes-sdk`\n- Runtimes: `nodejs`\n- Version from: `package.json`\n"}),
325
- T({name:"resource-estimates",title:"Resource estimates",section:ve,contract:we,summary:"Optional memory planning hints f\
353
+ _({name:"resource-estimates",title:"Resource estimates",section:je,contract:Le,summary:"Optional memory planning hints f\
326
354
  or Outputs and Workspace setup. They are not observed usage, reservations, minimum requirements or granted limits; the e\
327
355
  xecution host owns those choices.",body:`
328
356
  Headings: \`\` ### Output \`id\` \`\` (an id declared in Outputs) or \`### Workspace setup\` (requires declared setup steps), ea\
329
357
  ch followed by fields:
330
- ${h([...Re.keys()].map(e=>`- ${e}: \`number\``))}
358
+ ${d([...Be.keys()].map(e=>`- ${e}: \`number\``))}
331
359
 
332
360
  - An interactive output declares the four Startup and Running fields. A finite output and Workspace setup declare only T\
333
361
  ypical MiB and High MiB.
334
- - Values are integer MiB from 1 through ${Oe}; typical never exceeds high. Duplicate operations or fields and unknown fi\
362
+ - Values are integer MiB from 1 through ${Ue}; typical never exceeds high. Duplicate operations or fields and unknown fi\
335
363
  elds are rejected. The section is at most 64 KiB and 2048 lines.
336
364
  - Invalid estimates never change Outputs availability or setup readiness; the host then uses its generic policy. Changin\
337
365
  g only estimates does not rerun setup.
338
366
  `,example:"\n### Output `app`\n\n- Startup typical MiB: `1024`\n- Startup high MiB: `1536`\n- Running typical MiB: `768`\n- Ru\
339
- nning high MiB: `1536`\n\n### Workspace setup\n\n- Typical MiB: `1024`\n- High MiB: `1536`\n"}),T({name:"connected-devel\
340
- opment",title:"Connected development",section:ce,contract:ue,summary:"How this project consumes the working source of it\
367
+ nning high MiB: `1536`\n\n### Workspace setup\n\n- Typical MiB: `1024`\n- High MiB: `1536`\n"}),_({name:"connected-devel\
368
+ opment",title:"Connected development",section:_e,contract:Re,summary:"How this project consumes the working source of it\
341
369
  s connected repositories (its own dependencies under development) in a session.",body:`
342
370
  Entries:
343
- ${h(pe)}
371
+ ${d(be)}
344
372
 
345
373
  - Declare a Default package type alone, or a Sources file with Verify entries or a Custom runner (keeping any Default pa\
346
374
  ckage type). All Prepare entries precede Verify entries. Steps run unconditionally (no \`when\`/\`if\`); at most one Custom \
347
375
  runner.
348
- - Package types: ${U.map(({value:e})=>`\`${e}\``).join(", ")}. A type is a declared label: Vibe64 never runs a package m\
376
+ - Package types: ${X.map(({value:e})=>`\`${e}\``).join(", ")}. A type is a declared label: Vibe64 never runs a package m\
349
377
  anager for it. This project's own Prepare/Verify commands give each connected source its ecosystem's treatment, and Veri\
350
378
  fy must prove that the source is consumed.
351
379
  - The Sources file is a development-only path outside \`.git\`, never tracked; Vibe64 writes it when it prepares the sessi\
352
- on's connected repositories and excludes it from Git. Its JSON: \`{"schema":"${oe}","sessionId":"\u2026","repositories":[{"na\
380
+ on's connected repositories and excludes it from Git. Its JSON: \`{"schema":"${Se}","sessionId":"\u2026","repositories":[{"na\
353
381
  me":"\u2026","repository":"https://github.com/owner/repo","relationship":"dependency|composition","type":"npm","sourceRoot":"\
354
382
  /absolute/session/connected/repo"}]}\`; each \`sourceRoot\` is this session's own copy of that repository, and a custom con\
355
383
  nection also carries \`"script"\`.
356
- - Custom connections: ${ae}
384
+ - Custom connections: ${ve}
357
385
  `,example:"\n- Default package type: `npm`\n- Sources file: `.connected-sources.json`\n- Prepare `Link connected packages` \
358
386
  with `nodejs`: `node` `tools/link-connected.mjs`\n- Verify `Check connected packages` with `nodejs`: `node` `tools/verify\
359
- -connected.mjs`\n"}),T({name:"project-services",title:"Project services",section:_e,contract:be,summary:"Foreground help\
387
+ -connected.mjs`\n"}),_({name:"project-services",title:"Project services",section:De,contract:Pe,summary:"Foreground help\
360
388
  er processes (workers, local reference services) that Vibe64 starts before an Output.",body:`
361
389
  Entries:
362
- ${h([Te])}
390
+ ${d([$e])}
363
391
 
364
392
  - Service ids are unique, start with a lowercase letter and use up to 64 lowercase letters, digits and hyphens. Workdir \
365
393
  defaults to \`.\`.
@@ -371,39 +399,39 @@ ver spawn untracked background work.
371
399
  rd the address in the session's ignored runtime folder) and check your own instance's readiness. Never assume a shared f\
372
400
  ixed port.
373
401
  `,example:"\n- Start `worker` with `nodejs` in `tools`: `npm` `run` `worker`\n- Start `reference` per session with `nodejs\
374
- `: `npm` `run` `reference:service`\n"}),T({name:"integration-setup",title:"Integration setup",section:de,contract:le,summary:"\
402
+ `: `npm` `run` `reference:service`\n"}),_({name:"integration-setup",title:"Integration setup",section:Ie,contract:Te,summary:"\
375
403
  The one application-owned command the editor's Integrations controls call to configure, connect and check the applicatio\
376
404
  n's external integrations.",body:`
377
405
  Exactly one entry:
378
- ${h([me])}
406
+ ${d([Oe])}
379
407
 
380
408
  The command's request/response protocol and the \`integrations.json\` usage: \`vibe64-helper spec integration-setup-command\
381
409
  \`.
382
- `,example:"\n- Command with `nodejs` in `.`: `node` `scripts/integrations.js`\n"}),T({name:"architecture-inspection",title:"\
383
- Architecture inspection",section:ee,contract:Q,summary:"Optional project-owned inspectors that the Architecture view run\
384
- s to observe the application's structure (pages, routes, entry points).",body:`
410
+ `,example:"\n- Command with `nodejs` in `.`: `node` `scripts/integrations.js`\n"}),_({name:"architecture-inspection",title:"\
411
+ Architecture inspection",section:me,contract:de,summary:"Optional project-owned inspectors that the Architecture view ru\
412
+ ns to observe the application's structure (pages, routes, entry points).",body:`
385
413
  Headings: \`\` ### Inspector \`id\`: Title \`\`, each followed by fields:
386
- ${h(Object.entries(N).map(([e,[,n]])=>`- ${e}: ${n}`))}
414
+ ${d(Object.entries(P).map(([e,[,n]])=>`- ${e}: ${n}`))}
387
415
 
388
416
  - Every field except Entry files, Required files and Preview locator is required; ids are unique. The Runtime must be se\
389
417
  lected in the Stack.
390
418
  - Reading declarations runs nothing. Entry files name application entry points. Required files must exist as regular pro\
391
419
  ject files before the inspector runs.
392
420
  - Preview locator names the technology's script that maps a clicked Preview element to its source component: a project \`\
393
- .js\` file (it may be under \`node_modules\`), regular, at most ${se} bytes. The only symlink its path may pass is one l\
421
+ .js\` file (it may be under \`node_modules\`), regular, at most ${fe} bytes. The only symlink its path may pass is one l\
394
422
  inked package folder (\`node_modules/<name>\` or \`node_modules/@scope/<name>\`); the file must stay inside that package's r\
395
423
  eal folder.
396
424
  - On analysis the command receives one \`jskit.architecture-inspection-input.v1\` JSON request on stdin (files with hashes\
397
- , packages, package identity, UI discovery, the Stack hash and an optional \`cacheDirectory\`) and must print one \`${dt}\
425
+ , packages, package identity, UI discovery, the Stack hash and an optional \`cacheDirectory\`) and must print one \`${Tt}\
398
426
  \` JSON document; Genesis owns that observation schema.
399
427
  - \`cacheDirectory\` is an absolute directory for this inspector alone, outside the source; the inspector may read and wri\
400
428
  te only there. When it is absent or unusable, inspect without a cache. Ignore unknown request fields.
401
429
  `,example:"\n### Inspector `ui`: UI routes\n\n- Runtime: `nodejs`\n- Directory: `.`\n- Command: `node` `tools/inspect-ui.mjs`\
402
- \n- Timeout seconds: `30`\n- Max output bytes: `1048576`\n- Entry files: `src/main.js`\n"}),T({name:"architecture-layout",
403
- title:"Architecture layout",section:re,contract:ie,summary:"Presentation groups for the Architecture view. Declarations \
430
+ \n- Timeout seconds: `30`\n- Max output bytes: `1048576`\n- Entry files: `src/main.js`\n"}),_({name:"architecture-layout",
431
+ title:"Architecture layout",section:ye,contract:ge,summary:"Presentation groups for the Architecture view. Declarations \
404
432
  neither discover subsystems nor change their ownership.",body:`
405
433
  Headings: \`\` ### Group \`id\`: Title \`\`, each followed by:
406
- - Kind: ${A.map(e=>`\`${e}\``).join(" or ")}
434
+ - Kind: ${$.map(e=>`\`${e}\``).join(" or ")}
407
435
  - Purpose: \`text\`
408
436
  - Subsystem: \`root\` (one or more)
409
437
 
@@ -411,4 +439,4 @@ Headings: \`\` ### Group \`id\`: Title \`\`, each followed by:
411
439
  - A Subsystem is a directory root from \`genesis/subsystems.md\`; each root is placed once. A missing root is reported, ne\
412
440
  ver invented.
413
441
  `,example:"\n### Group `shared`: Shared libraries\n\n- Kind: `libraries`\n- Purpose: `Code reused by every surface.`\n- Subsy\
414
- stem: `packages/shared`\n"})]);export{wn as VIBE64_GENESIS_AGENT_SPECS};
442
+ stem: `packages/shared`\n"})]);export{ps as VIBE64_GENESIS_AGENT_SPECS};