vibe64 0.1.67 → 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.
- package/bin/run.js +644 -644
- package/bin/upgrade-state.js +2163 -2170
- package/node_modules/@local/vibe64-execution/package.json +1 -0
- package/node_modules/@local/vibe64-execution/src/host/execHelper.js +638 -634
- package/node_modules/@local/vibe64-genesis/src/server/agentSpecs.js +159 -125
- package/node_modules/@local/vibe64-genesis/src/server/index.js +613 -519
- package/node_modules/@local/vibe64-source-editor/src/server/searchIndexWorker.js +50 -46
- package/package.json +1 -1
- package/server.bundle.mjs +27333 -27361
|
@@ -1,106 +1,113 @@
|
|
|
1
1
|
import { createRequire as __vibe64CreateRequire } from 'node:module';const require=__vibe64CreateRequire(import.meta.url);
|
|
2
|
-
import{ARCHITECTURE_OBSERVATIONS_SCHEMA as
|
|
3
|
-
or",this.code=n,r!==void 0&&(this.details=r)}},
|
|
2
|
+
import{ARCHITECTURE_OBSERVATIONS_SCHEMA as 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"}),
|
|
8
|
-
function
|
|
9
|
-
n.map(t=>t[1])}function
|
|
10
|
-
o||
|
|
11
|
-
contain ${
|
|
12
|
-
test(e)
|
|
13
|
-
n,t,`${r} must begin with a safe executable.`,c),i}function
|
|
14
|
-
e)
|
|
15
|
-
allowRoot:o=!0}=i;return(!
|
|
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
|
|
18
|
-
{SPEC_BY_ERROR_CODE:
|
|
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\
|
|
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\
|
|
20
19
|
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."}),
|
|
22
|
-
toUpperCase()+e.slice(1)),
|
|
23
|
-
\`...`,`${
|
|
24
|
-
200`",`- ${
|
|
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:[
|
|
25
32
|
"versionFrom"],versionSources:["package.json","external"]}),"python-dist":Object.freeze({entries:["workdir","runtimes","\
|
|
26
33
|
prepare","build","environment","output","versionFrom"],required:["build","output","versionFrom"],versionSources:["pyproj\
|
|
27
34
|
ect.toml","external"]}),"web-bundle":Object.freeze({entries:["workdir","runtimes","prepare","build","environment","outpu\
|
|
28
35
|
t"],required:["build","output"],versionSources:[]}),capacitor:Object.freeze({entries:["workdir","content","platforms","a\
|
|
29
36
|
pplicationId","name","icon","versionFrom","deepLinkSchemeFrom","appLinkDomainsFrom","permission"],required:["content","p\
|
|
30
|
-
latforms","applicationId","name","icon","versionFrom"],versionSources:["package.json","external"]})}),
|
|
31
|
-
keys(
|
|
32
|
-
\``).join(" | "),k=Object.freeze([["- Packer: ","packer",`- Packer: ${
|
|
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\
|
|
33
40
|
`"],["- Runtimes: ","runtimes","- Runtimes: `runtime`..."],["- Output: ","output","- Output: `path`"],["- Version from: ",
|
|
34
|
-
"versionFrom",`- Version from: ${
|
|
41
|
+
"versionFrom",`- Version from: ${q(it)}`],["- Platforms: ","platforms",`- Platforms: ${q(st)}...`],["- Id: ","applicatio\
|
|
35
42
|
nId","- Id: `reverse.dns.id`"],["- Name: ","name","- Name: `Display name`"],["- Icon: ","icon","- Icon: `path/to/icon-10\
|
|
36
43
|
24.png`"],["- Deep link scheme from: ","deepLinkSchemeFrom","- Deep link scheme from: `ENV_NAME`"],["- App link domains \
|
|
37
|
-
from: ","appLinkDomainsFrom","- App link domains from: `ENV_NAME`"]]),
|
|
44
|
+
from: ","appLinkDomainsFrom","- App link domains from: `ENV_NAME`"]]),pe="### Package `id`: Label",le=Object.freeze([k[0][2],
|
|
38
45
|
k[1][2],k[2][2],"- Prepare|Build `label`: `command` `argument`...","- Environment `NAME`: `value`",k[3][2],k[4][2],"- Co\
|
|
39
|
-
ntent: package `web-bundle-id`",...k.slice(5).map(([,,e])=>e),"- Permission `id`: User-facing reason."]),
|
|
46
|
+
ntent: package `web-bundle-id`",...k.slice(5).map(([,,e])=>e),"- Permission `id`: User-facing reason."]),un=Object.freeze(
|
|
40
47
|
{packer:"Packer",workdir:"Workdir",runtimes:"Runtimes",prepare:"Prepare",build:"Build",environment:"Environment",output:"\
|
|
41
48
|
Output",versionFrom:"Version from",content:"Content",platforms:"Platforms",applicationId:"Id",name:"Name",icon:"Icon",deepLinkSchemeFrom:"\
|
|
42
|
-
Deep link scheme from",appLinkDomainsFrom:"App link domains from",permission:"Permission"});var
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"`path`"],Command:["argv","`command` `argument`..."],"Timeout seconds":["timeout",`\`1\` through \`${
|
|
46
|
-
bytes":["maxBuffer",`\`1\` through \`${
|
|
47
|
-
equiredFiles","`path`... (optional)"],"Preview locator":["previewLocator","`path` (optional .js file)"]}),
|
|
48
|
-
`^- (${Object.keys(
|
|
49
|
-
ture inspection requires exact Stack section lines."),
|
|
50
|
-
i[u]===void 0&&s(l,t,`${i.id} is missing ${u}.`);r.push(i),i=null}}for(let[u,
|
|
51
|
-
let
|
|
52
|
-
d.",u+1),c.add(
|
|
53
|
-
let
|
|
54
|
-
of: ${
|
|
55
|
-
t,"Inspector runtime",u+1);else if(a==="argv")i[a]=
|
|
56
|
-
quiredFiles")i[a]=
|
|
57
|
-
dir")i[a]=E
|
|
58
|
-
imeout"?
|
|
59
|
-
a==="timeout"?
|
|
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
|
|
61
|
-
"layer","libraries","support"]);function
|
|
62
|
-
e)||s(
|
|
63
|
-
!o.purpose||!o.subsystems.length)&&s(
|
|
64
|
-
|
|
65
|
-
c.has(p[1])&&s(
|
|
66
|
-
(!o||!a)&&s(
|
|
67
|
-
if(a[1]==="Subsystem"){let
|
|
68
|
-
ce.",
|
|
69
|
-
1),
|
|
70
|
-
r.length||s(
|
|
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.
|
|
71
78
|
freeze({value:"composer",label:"Composer (PHP)"}),Object.freeze({value:"pip",label:"pip (Python)"}),Object.freeze({value:"\
|
|
72
79
|
bundler",label:"Bundler (Ruby)"}),Object.freeze({value:"gomod",label:"Go modules"}),Object.freeze({value:"cargo",label:"\
|
|
73
80
|
Cargo (Rust)"}),Object.freeze({value:"maven",label:"Maven"}),Object.freeze({value:"gradle",label:"Gradle"}),Object.freeze(
|
|
74
|
-
{value:"nuget",label:"NuGet (.NET)"}),Object.freeze({value:
|
|
81
|
+
{value:"nuget",label:"NuGet (.NET)"}),Object.freeze({value:lt,label:"custom"})]),ve="Vibe64's preparer appends the absol\
|
|
75
82
|
ute script path and --phase prepare|verify, --source-root <the session's copy of the repository>, --project-root <consum\
|
|
76
83
|
ing project>, --sources-file <absolute Sources file> and --repository <GitHub URL> arguments to the Stack's Custom runne\
|
|
77
|
-
r command, once per phase; execution checks the script remains inside the consuming project.",
|
|
78
|
-
value));var
|
|
79
|
-
- Verify \`label\` ${
|
|
80
|
-
Sources file: `path`",...Object.values(
|
|
81
|
-
|
|
82
|
-
\`${
|
|
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(" ")}`],
|
|
83
90
|
["- Enabled environment: ","enabledEnvironment","Enabled environment","`ENV_NAME`"],["- Secret environment: ","secretEnv\
|
|
84
91
|
ironment","Secret environment","`ENV_NAME`"],["- Runtimes: ","runtimes","Runtimes","`runtime`..."],["- Timeout ms: ","ti\
|
|
85
|
-
meoutMs","Timeout ms",`\`1\` through \`${
|
|
86
|
-
map(n=>`\`${n}\``).join(" or "),
|
|
87
|
-
on","#### Preview identity","#### Download `id`"]),
|
|
88
|
-
|
|
89
|
-
"- Default: `text`","- Description: `text`","- Required."],presentation:[`- Kind: ${
|
|
90
|
-
rough `65535`","- URL path: `/path`","- Ready when: `GET` `/path` returns `200`"],previewIdentity:
|
|
91
|
-
`path`","- Name: `file-name`","- Media type: `type/subtype`"]});var
|
|
92
|
-
.";var
|
|
93
|
-
Running typical MiB","runningTypical"],["Running high MiB","runningHigh"],["Typical MiB","typical"],["High MiB","high"]]);var
|
|
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\
|
|
94
101
|
most 64 values of at most 4096 characters, no line breaks). The executable is a name on PATH or a project-relative path\
|
|
95
102
|
, never absolute and never containing `..`.","Runtimes are lowercase technology ids selected in the project's Stack, suc\
|
|
96
103
|
h as `nodejs` or `php`. Paths are canonical project-relative paths; `.` is the project root.","A section containing only\
|
|
97
104
|
`- Nothing.` explicitly declares nothing. Blank lines are ignored."].join(`
|
|
98
|
-
`),
|
|
99
|
-
`);function
|
|
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,
|
|
100
107
|
text:()=>[`# ${n}`,"",`Section: \`## ${t}\` in \`genesis/stack.md\`${r?`, contract \`${r}\``:""}. Vibe64 owns its gramma\
|
|
101
|
-
r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",
|
|
108
|
+
r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",It,"","## Example","","```markdown",`## ${t}`,
|
|
102
109
|
"",o.trim(),"```",""].join(`
|
|
103
|
-
`)}}var
|
|
110
|
+
`)}}var Ot=`
|
|
104
111
|
### Target \`app\`: Application
|
|
105
112
|
|
|
106
113
|
- Default.
|
|
@@ -117,7 +124,7 @@ r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",d
|
|
|
117
124
|
#### Preview identity
|
|
118
125
|
|
|
119
126
|
- Command: \`tools/preview-identity\`
|
|
120
|
-
- Protocol: \`${
|
|
127
|
+
- Protocol: \`${j}\`
|
|
121
128
|
- Identity types: \`email\`
|
|
122
129
|
- Enabled environment: \`APP_PREVIEW_IDENTITY_ENABLED\`
|
|
123
130
|
- Secret environment: \`APP_PREVIEW_IDENTITY_SECRET\`
|
|
@@ -152,10 +159,10 @@ r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",d
|
|
|
152
159
|
- Path: \`exports/report.csv\`
|
|
153
160
|
- Name: \`report.csv\`
|
|
154
161
|
- Media type: \`text/csv\`
|
|
155
|
-
`,
|
|
162
|
+
`,ps=Object.freeze([_({name:"workspace-setup",title:"Workspace setup",section:Ve,contract:Me,summary:"Ordered commands t\
|
|
156
163
|
hat prepare a session's working copy (dependencies, generated files, migrations) before any Output runs.",body:`
|
|
157
164
|
Each entry:
|
|
158
|
-
${
|
|
165
|
+
${d([xe])}
|
|
159
166
|
|
|
160
167
|
- \`\` in \`workdir\` \`\` runs the command in that project directory (default \`.\`).
|
|
161
168
|
- \`\` when \`path\` exists \`\` waits: setup stays waiting until the path exists (for example a manifest the agent has not cr\
|
|
@@ -171,14 +178,14 @@ act recipe; changing any step runs setup again, and Outputs stay pending until i
|
|
|
171
178
|
step. Keep every step repeatable and non-destructive.
|
|
172
179
|
`,example:"\n- Prepare `Install dependencies` from `package.json` `package-lock.json` with `nodejs`: `npm` `ci`\n- Prepare\
|
|
173
180
|
`Migrate database` with `nodejs` if `migrations` exists: `npm` `run` `db:migrate`\n- Prepare `Install client` with `node\
|
|
174
|
-
js` in `client` when `client/package.json` exists: `npm` `ci`\n"}),
|
|
181
|
+
js` in `client` when `client/package.json` exists: `npm` `ci`\n"}),_({name:"outputs",title:"Outputs",section:Ne,contract:ke,
|
|
175
182
|
summary:"The runnable targets Vibe64 offers: interactive terminal or web apps shown in Preview, and finite runs that pro\
|
|
176
183
|
duce downloads.",body:`
|
|
177
184
|
Headings, each target followed by its entries and then optional blocks:
|
|
178
|
-
${
|
|
185
|
+
${d(Ce)}
|
|
179
186
|
|
|
180
187
|
Target entries:
|
|
181
|
-
${
|
|
188
|
+
${d(N.target)}
|
|
182
189
|
|
|
183
190
|
- Ids use lowercase letters, digits and single hyphens. Target ids are unique; at most one target is \`- Default.\` (the n\
|
|
184
191
|
ormal Preview).
|
|
@@ -190,39 +197,39 @@ ication must listen there. \`{parameter:id}\` may appear in any step argument.
|
|
|
190
197
|
laywright --target <id>\`). \`development\` is the other value; omitting Data asserts nothing.
|
|
191
198
|
- Workdir defaults to \`.\`.
|
|
192
199
|
|
|
193
|
-
\`#### Parameter\` entries (at most ${
|
|
194
|
-
${
|
|
200
|
+
\`#### Parameter\` entries (at most ${Ae} per target, each used in a step):
|
|
201
|
+
${d(N.parameter)}
|
|
195
202
|
|
|
196
203
|
Values are single-line text of at most 4096 characters; an omitted Default is empty; Required rejects blank values. Para\
|
|
197
204
|
meters are visible arguments: keep credentials in Env.
|
|
198
205
|
|
|
199
206
|
\`#### Presentation\` entries:
|
|
200
|
-
${
|
|
207
|
+
${d(N.presentation)}
|
|
201
208
|
|
|
202
209
|
\`terminal\` accepts only Kind. \`web\` needs one Ready when (status 200 through 399); URL path defaults to \`/\`.
|
|
203
210
|
|
|
204
211
|
\`#### Download\` entries (all required):
|
|
205
|
-
${
|
|
212
|
+
${d(N.download)}
|
|
206
213
|
|
|
207
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\
|
|
208
215
|
ercase type/subtype.
|
|
209
216
|
|
|
210
217
|
\`#### Preview identity\` entries (web targets only; Command, Protocol and Identity types are required):
|
|
211
|
-
${
|
|
218
|
+
${d(N.previewIdentity)}
|
|
212
219
|
|
|
213
220
|
- The command is a committed, application-owned project-relative executable whose path contains \`/\`, without \`{host}\` or\
|
|
214
221
|
\`{port}\`.
|
|
215
|
-
- Enabled and Secret environment names are distinct uppercase names, not ${[...
|
|
222
|
+
- Enabled and Secret environment names are distinct uppercase names, not ${[...J].join(", ")} or \`XDG_*\`. For an enabled\
|
|
216
223
|
web run Vibe64 sets the enabled name to \`true\` and the secret name to a fresh per-run secret; the application must keep\
|
|
217
224
|
its identity exchange disabled unless both are present.
|
|
218
225
|
- The command's stdin/stdout protocol: \`vibe64-helper spec preview-identity-command\`. The configured account names: \`vib\
|
|
219
226
|
e64-helper spec preview-identities\`.
|
|
220
|
-
`,example:
|
|
221
|
-
|
|
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:`
|
|
222
229
|
Entries:
|
|
223
|
-
${
|
|
230
|
+
${d(C)}
|
|
224
231
|
|
|
225
|
-
- Steps are ordered ${
|
|
232
|
+
- Steps are ordered ${w.join(", ")}; exactly one Serve step comes last. Serve starts the long-running application, which\
|
|
226
233
|
listens on the address given by the \`HOST\` and \`PORT\` environment variables. Arguments are passed literally (no \`{host}\
|
|
227
234
|
\` or \`{port}\` placeholders), so a server that takes its address only as arguments needs a committed project script that \
|
|
228
235
|
reads them.
|
|
@@ -250,11 +257,18 @@ e its owner permits it, and refuses a deploy that needs one it does not grant ra
|
|
|
250
257
|
nly when the application needs it, never to make a failing deploy pass: an allowance widens what an intruder in the appl\
|
|
251
258
|
ication could reach, so whether to grant it is the project owner's decision, never an assistant's. An assistant never ad\
|
|
252
259
|
ds or changes this line on its own; it explains the failure and asks the person.
|
|
253
|
-
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
260
|
+
- Packages names the system packages the application's steps and service need beyond its runtimes, by their nixpkgs name\
|
|
261
|
+
s: an attribute such as \`git\` or \`python313Packages.pip\`, or one output of it after \`^\`, such as \`gcc-unwrapped^lib\` (at\
|
|
262
|
+
most 200, each once). A host that builds the deployment's machine from a package collection installs exactly these besi\
|
|
263
|
+
de the runtimes and refuses a name it doesn't have; a host that runs the deployment on a machine it does not build ignor\
|
|
264
|
+
es the line, so there the packages must already be installed. Name every program a step or the service runs that is not \
|
|
265
|
+
part of a runtime, such as \`git\` for a Prepare step that clones, or a browser the service starts; never install one from\
|
|
266
|
+
a script instead.
|
|
267
|
+
- Host-level preparation beyond the package manager and Packages, such as devices or host permissions, goes in one scrip\
|
|
268
|
+
t per hosting environment, \`scripts/hosting/<host>.sh\`, which the \`HOSTING_SCRIPT\` environment variable names and the Pr\
|
|
269
|
+
epare step runs; an application that needs none has no such script. It never works around Vibe64's rules: what Vibe64 pr\
|
|
270
|
+
ovides, such as a runtime or a sandbox allowance, is declared in this section, never installed or switched on by the scr\
|
|
271
|
+
ipt, and where the host lacks something the script fails with one plain sentence instead of switching features off.
|
|
258
272
|
- Instances says how many identical copies of the application a host may run at once behind one address, each with a dis\
|
|
259
273
|
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
274
|
thing a later request needs: uploaded files on its own disk, sign-ins or sessions in memory or in files, or a scheduled \
|
|
@@ -263,6 +277,26 @@ job that must run once. Such state belongs in a declared resource (a database, a
|
|
|
263
277
|
side the release before it.
|
|
264
278
|
- One Ready when entry is required (status 200 through 399). Workdir defaults to \`.\`. Each other entry appears at most o\
|
|
265
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.
|
|
266
300
|
- Recreate on restore lists project-relative globs (only \`*\` and \`**\`) that a restored deployment rebuilds with its Prep\
|
|
267
301
|
are step, such as installed dependencies. It requires a Prepare step.
|
|
268
302
|
- Migrate applies pending migrations without destroying data.
|
|
@@ -285,14 +319,14 @@ aging: process.env.STAGING_EMAIL_TO }[process.env.APP_ENV]; if (to) await mailer
|
|
|
285
319
|
info("%s: email to %s not sent", process.env.APP_ENV, message.to);\`
|
|
286
320
|
`,example:"\n- Runtimes: `nodejs`\n- Recreate on restore: `node_modules`\n- Generated secrets: `SESSION_SECRET`\n- Prepare `\
|
|
287
321
|
Install`: `npm` `ci`\n- Build `Build`: `npm` `run` `build`\n- Migrate `Migrate`: `npm` `run` `db:migrate`\n- Serve `Serve`:\
|
|
288
|
-
`env` `NODE_ENV=production` `node` `server.js`\n- Ready when: `GET` `/health` returns `200`\n"}),
|
|
289
|
-
Packaging",section:
|
|
290
|
-
|
|
291
|
-
builders) is Vibe64 project state, never this section.",body:`
|
|
292
|
-
Headings: \`\` ${
|
|
293
|
-
${
|
|
294
|
-
|
|
295
|
-
- Packers (closed set): ${
|
|
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.
|
|
296
330
|
- \`npm\`: Version from \`package.json\` or \`external\`; Vibe64 runs \`npm pack\` in Workdir after the optional Prepare and Bui\
|
|
297
331
|
ld steps.
|
|
298
332
|
- \`python-dist\`: Build (for example \`python\` \`-m\` \`build\`), Output (for example \`dist\`) and Version from \`pyproject.toml\
|
|
@@ -316,44 +350,44 @@ dependencies`: `npm` `ci`\n- Build `Build bundled client`: `npm` `run` `build`\n
|
|
|
316
350
|
Platforms: `android`\n- Id: `com.example.notes`\n- Name: `Notes`\n- Icon: `assets/icon-1024.png`\n- Version from: `package.\
|
|
317
351
|
json`\n- Deep link scheme from: `APP_URL_SCHEME`\n- Permission `camera`: Take photos to attach to notes.\n\n### Package `sdk\
|
|
318
352
|
`: Notes SDK\n\n- Packer: `npm`\n- Workdir: `packages/notes-sdk`\n- Runtimes: `nodejs`\n- Version from: `package.json`\n"}),
|
|
319
|
-
|
|
353
|
+
_({name:"resource-estimates",title:"Resource estimates",section:je,contract:Le,summary:"Optional memory planning hints f\
|
|
320
354
|
or Outputs and Workspace setup. They are not observed usage, reservations, minimum requirements or granted limits; the e\
|
|
321
355
|
xecution host owns those choices.",body:`
|
|
322
356
|
Headings: \`\` ### Output \`id\` \`\` (an id declared in Outputs) or \`### Workspace setup\` (requires declared setup steps), ea\
|
|
323
357
|
ch followed by fields:
|
|
324
|
-
${
|
|
358
|
+
${d([...Be.keys()].map(e=>`- ${e}: \`number\``))}
|
|
325
359
|
|
|
326
360
|
- An interactive output declares the four Startup and Running fields. A finite output and Workspace setup declare only T\
|
|
327
361
|
ypical MiB and High MiB.
|
|
328
|
-
- Values are integer MiB from 1 through ${
|
|
362
|
+
- Values are integer MiB from 1 through ${Ue}; typical never exceeds high. Duplicate operations or fields and unknown fi\
|
|
329
363
|
elds are rejected. The section is at most 64 KiB and 2048 lines.
|
|
330
364
|
- Invalid estimates never change Outputs availability or setup readiness; the host then uses its generic policy. Changin\
|
|
331
365
|
g only estimates does not rerun setup.
|
|
332
366
|
`,example:"\n### Output `app`\n\n- Startup typical MiB: `1024`\n- Startup high MiB: `1536`\n- Running typical MiB: `768`\n- Ru\
|
|
333
|
-
nning high MiB: `1536`\n\n### Workspace setup\n\n- Typical MiB: `1024`\n- High MiB: `1536`\n"}),
|
|
334
|
-
opment",title:"Connected development",section:
|
|
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\
|
|
335
369
|
s connected repositories (its own dependencies under development) in a session.",body:`
|
|
336
370
|
Entries:
|
|
337
|
-
${
|
|
371
|
+
${d(be)}
|
|
338
372
|
|
|
339
373
|
- Declare a Default package type alone, or a Sources file with Verify entries or a Custom runner (keeping any Default pa\
|
|
340
374
|
ckage type). All Prepare entries precede Verify entries. Steps run unconditionally (no \`when\`/\`if\`); at most one Custom \
|
|
341
375
|
runner.
|
|
342
|
-
- Package types: ${
|
|
376
|
+
- Package types: ${X.map(({value:e})=>`\`${e}\``).join(", ")}. A type is a declared label: Vibe64 never runs a package m\
|
|
343
377
|
anager for it. This project's own Prepare/Verify commands give each connected source its ecosystem's treatment, and Veri\
|
|
344
378
|
fy must prove that the source is consumed.
|
|
345
379
|
- The Sources file is a development-only path outside \`.git\`, never tracked; Vibe64 writes it when it prepares the sessi\
|
|
346
|
-
on's connected repositories and excludes it from Git. Its JSON: \`{"schema":"${
|
|
380
|
+
on's connected repositories and excludes it from Git. Its JSON: \`{"schema":"${Se}","sessionId":"\u2026","repositories":[{"na\
|
|
347
381
|
me":"\u2026","repository":"https://github.com/owner/repo","relationship":"dependency|composition","type":"npm","sourceRoot":"\
|
|
348
382
|
/absolute/session/connected/repo"}]}\`; each \`sourceRoot\` is this session's own copy of that repository, and a custom con\
|
|
349
383
|
nection also carries \`"script"\`.
|
|
350
|
-
- Custom connections: ${
|
|
384
|
+
- Custom connections: ${ve}
|
|
351
385
|
`,example:"\n- Default package type: `npm`\n- Sources file: `.connected-sources.json`\n- Prepare `Link connected packages` \
|
|
352
386
|
with `nodejs`: `node` `tools/link-connected.mjs`\n- Verify `Check connected packages` with `nodejs`: `node` `tools/verify\
|
|
353
|
-
-connected.mjs`\n"}),
|
|
387
|
+
-connected.mjs`\n"}),_({name:"project-services",title:"Project services",section:De,contract:Pe,summary:"Foreground help\
|
|
354
388
|
er processes (workers, local reference services) that Vibe64 starts before an Output.",body:`
|
|
355
389
|
Entries:
|
|
356
|
-
${
|
|
390
|
+
${d([$e])}
|
|
357
391
|
|
|
358
392
|
- Service ids are unique, start with a lowercase letter and use up to 64 lowercase letters, digits and hyphens. Workdir \
|
|
359
393
|
defaults to \`.\`.
|
|
@@ -365,39 +399,39 @@ ver spawn untracked background work.
|
|
|
365
399
|
rd the address in the session's ignored runtime folder) and check your own instance's readiness. Never assume a shared f\
|
|
366
400
|
ixed port.
|
|
367
401
|
`,example:"\n- Start `worker` with `nodejs` in `tools`: `npm` `run` `worker`\n- Start `reference` per session with `nodejs\
|
|
368
|
-
`: `npm` `run` `reference:service`\n"}),
|
|
402
|
+
`: `npm` `run` `reference:service`\n"}),_({name:"integration-setup",title:"Integration setup",section:Ie,contract:Te,summary:"\
|
|
369
403
|
The one application-owned command the editor's Integrations controls call to configure, connect and check the applicatio\
|
|
370
404
|
n's external integrations.",body:`
|
|
371
405
|
Exactly one entry:
|
|
372
|
-
${
|
|
406
|
+
${d([Oe])}
|
|
373
407
|
|
|
374
408
|
The command's request/response protocol and the \`integrations.json\` usage: \`vibe64-helper spec integration-setup-command\
|
|
375
409
|
\`.
|
|
376
|
-
`,example:"\n- Command with `nodejs` in `.`: `node` `scripts/integrations.js`\n"}),
|
|
377
|
-
Architecture inspection",section:
|
|
378
|
-
|
|
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:`
|
|
379
413
|
Headings: \`\` ### Inspector \`id\`: Title \`\`, each followed by fields:
|
|
380
|
-
${
|
|
414
|
+
${d(Object.entries(P).map(([e,[,n]])=>`- ${e}: ${n}`))}
|
|
381
415
|
|
|
382
416
|
- Every field except Entry files, Required files and Preview locator is required; ids are unique. The Runtime must be se\
|
|
383
417
|
lected in the Stack.
|
|
384
418
|
- Reading declarations runs nothing. Entry files name application entry points. Required files must exist as regular pro\
|
|
385
419
|
ject files before the inspector runs.
|
|
386
420
|
- Preview locator names the technology's script that maps a clicked Preview element to its source component: a project \`\
|
|
387
|
-
.js\` file (it may be under \`node_modules\`), regular, at most ${
|
|
421
|
+
.js\` file (it may be under \`node_modules\`), regular, at most ${fe} bytes. The only symlink its path may pass is one l\
|
|
388
422
|
inked package folder (\`node_modules/<name>\` or \`node_modules/@scope/<name>\`); the file must stay inside that package's r\
|
|
389
423
|
eal folder.
|
|
390
424
|
- On analysis the command receives one \`jskit.architecture-inspection-input.v1\` JSON request on stdin (files with hashes\
|
|
391
|
-
, packages, package identity, UI discovery, the Stack hash and an optional \`cacheDirectory\`) and must print one \`${
|
|
425
|
+
, packages, package identity, UI discovery, the Stack hash and an optional \`cacheDirectory\`) and must print one \`${Tt}\
|
|
392
426
|
\` JSON document; Genesis owns that observation schema.
|
|
393
427
|
- \`cacheDirectory\` is an absolute directory for this inspector alone, outside the source; the inspector may read and wri\
|
|
394
428
|
te only there. When it is absent or unusable, inspect without a cache. Ignore unknown request fields.
|
|
395
429
|
`,example:"\n### Inspector `ui`: UI routes\n\n- Runtime: `nodejs`\n- Directory: `.`\n- Command: `node` `tools/inspect-ui.mjs`\
|
|
396
|
-
\n- Timeout seconds: `30`\n- Max output bytes: `1048576`\n- Entry files: `src/main.js`\n"}),
|
|
397
|
-
title:"Architecture layout",section:
|
|
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 \
|
|
398
432
|
neither discover subsystems nor change their ownership.",body:`
|
|
399
433
|
Headings: \`\` ### Group \`id\`: Title \`\`, each followed by:
|
|
400
|
-
- Kind: ${
|
|
434
|
+
- Kind: ${$.map(e=>`\`${e}\``).join(" or ")}
|
|
401
435
|
- Purpose: \`text\`
|
|
402
436
|
- Subsystem: \`root\` (one or more)
|
|
403
437
|
|
|
@@ -405,4 +439,4 @@ Headings: \`\` ### Group \`id\`: Title \`\`, each followed by:
|
|
|
405
439
|
- A Subsystem is a directory root from \`genesis/subsystems.md\`; each root is placed once. A missing root is reported, ne\
|
|
406
440
|
ver invented.
|
|
407
441
|
`,example:"\n### Group `shared`: Shared libraries\n\n- Kind: `libraries`\n- Purpose: `Code reused by every surface.`\n- Subsy\
|
|
408
|
-
stem: `packages/shared`\n"})]);export{
|
|
442
|
+
stem: `packages/shared`\n"})]);export{ps as VIBE64_GENESIS_AGENT_SPECS};
|