vibe64 0.1.66 → 0.1.68
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 +1986 -1348
- package/bin/server.js +210 -207
- package/bin/upgrade-state.js +3862 -3786
- package/dist/assets/{GithubBrowserTabs-Bf5z_PiF.js → GithubBrowserTabs-CW3GBeJu.js} +1 -1
- package/dist/assets/{LocalDatabaseServer-CcfGbn7H.js → LocalDatabaseServer-DYh3UF9q.js} +1 -1
- package/dist/assets/{ShellOutlet-DPyl05um.js → ShellOutlet-DkLdtzJW.js} +1 -1
- package/dist/assets/{Vibe64AuthSettingsButton-CxJoeOhz.js → Vibe64AuthSettingsButton-Cksj7FS6.js} +1 -1
- package/dist/assets/{Vibe64AuthSettingsButton-DFfFPrd7.css → Vibe64AuthSettingsButton-DfKYI6ZS.css} +1 -1
- package/dist/assets/{Vibe64ConversationLog-jDb_ZvIF.js → Vibe64ConversationLog-BC0eDtUP.js} +1 -1
- package/dist/assets/{Vibe64DashboardShell-Ce1PNB37.js → Vibe64DashboardShell-DX5dOXAB.js} +1 -1
- package/dist/assets/{Vibe64DatabaseWorkspace-DiZDKEpx.js → Vibe64DatabaseWorkspace-8i-RDc9y.js} +1 -1
- package/dist/assets/{Vibe64FileArea-uRnIJ0Vp.js → Vibe64FileArea-EK5yUio3.js} +1 -1
- package/dist/assets/{Vibe64OutputControls-BF5kh2_h.js → Vibe64OutputControls--LB4G83q.js} +1 -1
- package/dist/assets/{Vibe64SessionFiles-CxgPB8RR.js → Vibe64SessionFiles-DVHGc7hd.js} +1 -1
- package/dist/assets/{Vibe64SessionSourceEditor-yaVu279S.js → Vibe64SessionSourceEditor-Bws5ihr-.js} +1 -1
- package/dist/assets/{Vibe64UiStoryboardView-DhbHkz8K.js → Vibe64UiStoryboardView-BmABkyG4.js} +1 -1
- package/dist/assets/{Vibe64UnavailableSessions-MmPF-Db1.js → Vibe64UnavailableSessions-C6Bkwsqk.js} +1 -1
- package/dist/assets/{_pageId_-Zif-veil.js → _pageId_-FjW-3sqF.js} +1 -1
- package/dist/assets/{_sessionId_-DOge-7SB.js → _sessionId_-4cH83Bfi.js} +1 -1
- package/dist/assets/_slug_-Cazfy5ui.js +14 -0
- package/dist/assets/_slug_-DQDycgFK.css +1 -0
- package/dist/assets/{access-DQcblrWN.js → access-mxcxtn7b.js} +1 -1
- package/dist/assets/{app-CzApKPmq.js → app-8zP_FAuO.js} +1 -1
- package/dist/assets/assistantRouting-Bbxguvre.js +3 -0
- package/dist/assets/{client-13v_yX07.js → client-C1i-bIgL.js} +1 -1
- package/dist/assets/{client-Dl6I6IVb.js → client-C7yZ1hEm.js} +1 -1
- package/dist/assets/{client-Dv4scw6i.js → client-CQ49uWhR.js} +1 -1
- package/dist/assets/{client-C8ZjqGdQ.js → client-D46Uu-YO.js} +2 -2
- package/dist/assets/{client-5JUUGxRd.js → client-DKNTl1to.js} +2 -2
- package/dist/assets/{dashboard-Dm_xwwqU.js → dashboard-CMtWKazq.js} +1 -1
- package/dist/assets/{english-definitions-DwTf_alg.js → english-definitions-DiyU9O9D.js} +1 -1
- package/dist/assets/{env-B7wB5nBn.js → env-LUc22Wgd.js} +1 -1
- package/dist/assets/{error-HfzrYwkQ.js → error-BccdQn04.js} +1 -1
- package/dist/assets/{error-CtOws2EC.js → error-DPDAz9Td.js} +1 -1
- package/dist/assets/{health-DIkOkzPe.js → health-CfMjMJFf.js} +1 -1
- package/dist/assets/{history-Ch597NiY.js → history-hX_kNskf.js} +1 -1
- package/dist/assets/{i18n-DcNQE3tT.js → i18n-Dq-ep9n7.js} +1 -1
- package/dist/assets/index-BJWiPV6i.css +1 -0
- package/dist/assets/{index-DcKFCaBZ.js → index-FVeEbKiO.js} +4 -4
- package/dist/assets/{integrations-CoNhnGvq.js → integrations-Ccb8EOEO.js} +14 -15
- package/dist/assets/{integrations-CwgrZgmM.css → integrations-CtnIjM1Y.css} +1 -1
- package/dist/assets/{issues-Cem4Yt47.js → issues-Bxtt7oqi.js} +1 -1
- package/dist/assets/{learning-CU2QyHrj.js → learning-BUx9jo91.js} +1 -1
- package/dist/assets/{pages-BzA58NoR.js → pages-D43zM2UW.js} +1 -1
- package/dist/assets/{project-files-BBKjl3wZ.js → project-files-BX3zZCcl.js} +1 -1
- package/dist/assets/{publish-UFjblZA3.js → publish-DatierL2.js} +1 -1
- package/dist/assets/{pull-requests-DibGk1GB.js → pull-requests-DNkOjcuy.js} +1 -1
- package/dist/assets/{settings-BjOnPYwD.js → settings-DbR9JIc3.js} +1 -1
- package/dist/assets/{useArchivedVibe64Sessions-CXKRFR2f.js → useArchivedVibe64Sessions-B8VDhA9F.js} +1 -1
- package/dist/assets/{useCommand-yOr3U8KF.js → useCommand-CfqxMb4C.js} +1 -1
- package/dist/assets/{useUiFeedback--0dLsslR.js → useUiFeedback-8Wvg7A_S.js} +1 -1
- package/dist/assets/{useVibe64ConversationLog-BB5tVtkt.js → useVibe64ConversationLog-7wgLlKG5.js} +2 -2
- package/dist/assets/useVibe64Learning-DkneotqS.js +5 -0
- package/dist/assets/{useVibe64SessionData-BSYF_TgH.js → useVibe64SessionData-DuJ-dHR8.js} +1 -1
- package/dist/assets/{useVibe64SessionSelection-CxZ3uEAf.js → useVibe64SessionSelection-BwjtqeIR.js} +1 -1
- package/dist/assets/vibe64SavedEnvValues-CCZew0j7.js +1 -0
- package/dist/assets/{vibe64SessionFocus-DGSVXipO.js → vibe64SessionFocus-B4diopOJ.js} +1 -1
- package/dist/index.html +10 -10
- package/docs/colleague-usage/ai-accounts.md +7 -7
- package/docs/colleague-usage/ai-model-setups.md +1 -1
- package/docs/colleague-usage/auto-workflow.md +60 -40
- package/docs/colleague-usage/chat-settings.md +115 -114
- package/docs/colleague-usage/coding-agent-history.md +9 -0
- package/docs/colleague-usage/coding-agent-recovery.md +3 -0
- package/docs/colleague-usage/coding-agents.md +10 -4
- package/docs/colleague-usage/developing-vibe64.md +11 -5
- package/docs/colleague-usage/development-env.md +74 -32
- package/docs/colleague-usage/github-work.md +3 -2
- package/docs/colleague-usage/integrations.md +2 -2
- package/docs/colleague-usage/main-chat-approvals.md +7 -6
- package/docs/colleague-usage/message-delivery-recovery.md +1 -1
- package/docs/colleague-usage/passes.md +215 -41
- package/docs/colleague-usage/plans.md +27 -16
- package/docs/colleague-usage/session-timeline.md +93 -0
- package/docs/colleague-usage/temporary-chats.md +6 -0
- package/docs/colleague-usage/ui-pass.md +29 -35
- package/node_modules/@jskit-ai/assistant-core/CHANGELOG.md +4 -0
- package/node_modules/@jskit-ai/assistant-core/package.json +1 -1
- package/node_modules/@jskit-ai/assistant-runtime/CHANGELOG.md +3 -0
- package/node_modules/@jskit-ai/assistant-runtime/package.json +1 -1
- package/node_modules/@jskit-ai/assistant-voice/package.json +1 -1
- package/node_modules/@jskit-ai/connector-google-calendar/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/connector-google-calendar/package.json +1 -1
- package/node_modules/@jskit-ai/connector-google-calendar/patterns/calendar-cli/example/.env.example +1 -0
- package/node_modules/@jskit-ai/connectors-catalog/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/connectors-catalog/package.json +1 -1
- package/node_modules/@jskit-ai/connectors-catalog/patterns/api-key-connection/PATTERN.md +4 -1
- package/node_modules/@jskit-ai/connectors-catalog/patterns/oauth-connection/PATTERN.md +3 -1
- package/node_modules/@jskit-ai/connectors-core/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/connectors-core/README.md +3 -1
- package/node_modules/@jskit-ai/connectors-core/package.json +1 -1
- package/node_modules/@jskit-ai/http-runtime/package.json +1 -1
- package/node_modules/@jskit-ai/kernel/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/kernel/package.json +3 -4
- package/node_modules/@jskit-ai/payments-core/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/payments-core/locales/en.json +1 -1
- package/node_modules/@jskit-ai/payments-core/package.json +1 -1
- package/node_modules/@jskit-ai/realtime/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/realtime/package.json +1 -1
- package/node_modules/@jskit-ai/realtime/patterns/realtime-application/example/.env.example +1 -0
- package/node_modules/@jskit-ai/resource-core/package.json +1 -1
- package/node_modules/@jskit-ai/uploads-runtime/package.json +1 -1
- package/node_modules/@local/vibe64-core/package.json +2 -0
- package/node_modules/@local/vibe64-execution/package.json +1 -0
- package/node_modules/@local/vibe64-execution/src/host/execHelper.js +715 -666
- package/node_modules/@local/vibe64-genesis/bin/vibe64-genesis-host-context +873 -872
- package/node_modules/@local/vibe64-genesis/src/server/agentSpecs.js +137 -115
- package/node_modules/@local/vibe64-genesis/src/server/index.js +627 -612
- package/node_modules/@local/vibe64-genesis/src/server/promptContext.js +159 -157
- package/node_modules/@local/vibe64-runtime/package.json +1 -0
- package/node_modules/@local/vibe64-runtime/src/server/codexAppServerProcess.js +901 -900
- package/node_modules/@local/vibe64-terminals/package.json +2 -1
- package/node_modules/@local/vibe64-terminals/src/server/opencodeSessionEnvironmentPlugin.js +22 -22
- package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +382 -380
- package/package.json +15 -15
- package/server.bundle.mjs +40053 -39872
- package/dist/assets/_slug_-C71iAiR0.js +0 -14
- package/dist/assets/_slug_-CF1TPDUv.css +0 -1
- package/dist/assets/assistantRouting-CqIiQy21.js +0 -3
- package/dist/assets/index-C-6c5Af1.css +0 -1
- package/dist/assets/useVibe64Learning-iAAH83uG.js +0 -5
- package/dist/assets/vibe64SavedEnvValues-CgfMvj_h.js +0 -1
|
@@ -1,104 +1,105 @@
|
|
|
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 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:"\
|
|
4
4
|
outputs",VIBE64_DEPLOYMENT_INVALID:"deployment",VIBE64_PACKAGING_INVALID:"packaging",VIBE64_RESOURCE_ESTIMATES_INVALID:"\
|
|
5
5
|
resource-estimates",VIBE64_CONNECTED_DEVELOPMENT_INVALID:"connected-development",VIBE64_PROJECT_SERVICES_INVALID:"projec\
|
|
6
6
|
t-services",VIBE64_INTEGRATION_SETUP_INVALID:"integration-setup",VIBE64_ARCHITECTURE_INSPECTION_INVALID:"architecture-in\
|
|
7
7
|
spection",VIBE64_ARCHITECTURE_LAYOUT_INVALID:"architecture-layout"}),Ne=/ Exact grammar: vibe64-helper spec [a-z-]+\.$/u;
|
|
8
|
-
function Ae(e,n){let t=
|
|
9
|
-
n.map(t=>t[1])}function
|
|
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
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
|
|
12
|
-
test(e)&&!$.isAbsolute(e)&&!e.split(/[\\/]/u).includes("..")}function
|
|
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
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
|
-
allowRoot:o=!0}=i;return(!De(e)||!o&&e===".")&&s(n,t,`${r} must be a canonical project-relative path.`,c),e}function
|
|
15
|
+
allowRoot:o=!0}=i;return(!De(e)||!o&&e===".")&&s(n,t,`${r} must be a canonical project-relative path.`,c),e}function 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 \
|
|
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
|
|
18
|
-
{SPEC_BY_ERROR_CODE:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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\
|
|
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:[
|
|
23
24
|
"versionFrom"],versionSources:["package.json","external"]}),"python-dist":Object.freeze({entries:["workdir","runtimes","\
|
|
24
25
|
prepare","build","environment","output","versionFrom"],required:["build","output","versionFrom"],versionSources:["pyproj\
|
|
25
26
|
ect.toml","external"]}),"web-bundle":Object.freeze({entries:["workdir","runtimes","prepare","build","environment","outpu\
|
|
26
27
|
t"],required:["build","output"],versionSources:[]}),capacitor:Object.freeze({entries:["workdir","content","platforms","a\
|
|
27
28
|
pplicationId","name","icon","versionFrom","deepLinkSchemeFrom","appLinkDomainsFrom","permission"],required:["content","p\
|
|
28
29
|
latforms","applicationId","name","icon","versionFrom"],versionSources:["package.json","external"]})}),B=Object.freeze(Object.
|
|
29
|
-
keys(
|
|
30
|
-
\``).join(" | "),
|
|
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\
|
|
31
32
|
`"],["- Runtimes: ","runtimes","- Runtimes: `runtime`..."],["- Output: ","output","- Output: `path`"],["- Version from: ",
|
|
32
|
-
"versionFrom",`- Version from: ${
|
|
33
|
+
"versionFrom",`- Version from: ${L(Fe)}`],["- Platforms: ","platforms",`- Platforms: ${L(ze)}...`],["- Id: ","applicatio\
|
|
33
34
|
nId","- Id: `reverse.dns.id`"],["- Name: ","name","- Name: `Display name`"],["- Icon: ","icon","- Icon: `path/to/icon-10\
|
|
34
35
|
24.png`"],["- Deep link scheme from: ","deepLinkSchemeFrom","- Deep link scheme from: `ENV_NAME`"],["- App link domains \
|
|
35
|
-
from: ","appLinkDomainsFrom","- App link domains from: `ENV_NAME`"]]),
|
|
36
|
-
|
|
37
|
-
ntent: package `web-bundle-id`",...
|
|
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(
|
|
38
39
|
{packer:"Packer",workdir:"Workdir",runtimes:"Runtimes",prepare:"Prepare",build:"Build",environment:"Environment",output:"\
|
|
39
40
|
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",
|
|
41
|
-
nesis/stack.md#Architecture inspection",te=120,ne=64*1024*1024,se=64*1024,
|
|
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\
|
|
42
43
|
ir","argv","timeout","maxBuffer"]),N=Object.freeze({Runtime:["runtimeRequirements","`runtime`..."],Directory:["workdir",
|
|
43
44
|
"`path`"],Command:["argv","`command` `argument`..."],"Timeout seconds":["timeout",`\`1\` through \`${te}\``],"Max output\
|
|
44
45
|
bytes":["maxBuffer",`\`1\` through \`${ne}\``],"Entry files":["entryFiles","`path`... (optional)"],"Required files":["r\
|
|
45
|
-
equiredFiles","`path`... (optional)"],"Preview locator":["previewLocator","`path` (optional .js file)"]}),
|
|
46
|
-
`^- (${Object.keys(N).join("|")}): (.+)$`,"u");function
|
|
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
|
|
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)
|
|
48
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;
|
|
49
|
-
let
|
|
50
|
-
d.",u+1),c.add(
|
|
51
|
-
let f=Object.entries(N).map(([m,[,
|
|
52
|
-
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]=
|
|
53
|
-
t,"Inspector runtime",u+1);else if(a==="argv")i[a]=
|
|
54
|
-
quiredFiles")i[a]=
|
|
55
|
-
dir")i[a]=E(f,l,t,"Inspector directory",u+1);else if(a==="previewLocator")i[a]=
|
|
56
|
-
imeout"?te:ne;(!/^[1-9][0-9]*$/u.test(f)||!Number.isSafeInteger(m)||m>
|
|
57
|
-
a==="timeout"?m*1e3:m}}}return o(),r.length||s(l,t,"Use an Inspector entry or - Nothing."),r}function
|
|
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
|
|
59
|
-
"layer","libraries","support"]);function
|
|
60
|
-
e)||s(
|
|
61
|
-
!o.purpose||!o.subsystems.length)&&s(
|
|
62
|
-
y]of e.entries()){let
|
|
63
|
-
c.has(p[1])&&s(
|
|
64
|
-
(!o||!a)&&s(
|
|
65
|
-
if(a[1]==="Subsystem"){let m=E(f[0],
|
|
66
|
-
ce.",d+1),i.add(m),o.subsystems.push({root:m})}else{let m=a[1].toLowerCase();o[m]!==void 0&&s(
|
|
67
|
-
1),m==="kind"&&!A.includes(f[0])&&s(
|
|
68
|
-
r.length||s(
|
|
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.
|
|
69
70
|
freeze({value:"composer",label:"Composer (PHP)"}),Object.freeze({value:"pip",label:"pip (Python)"}),Object.freeze({value:"\
|
|
70
71
|
bundler",label:"Bundler (Ruby)"}),Object.freeze({value:"gomod",label:"Go modules"}),Object.freeze({value:"cargo",label:"\
|
|
71
72
|
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:
|
|
73
|
+
{value:"nuget",label:"NuGet (.NET)"}),Object.freeze({value:Qe,label:"custom"})]),ae="Vibe64's preparer appends the absol\
|
|
73
74
|
ute script path and --phase prepare|verify, --source-root <the session's copy of the repository>, --project-root <consum\
|
|
74
75
|
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.",
|
|
76
|
-
value));var ce="Connected development",ue="vibe64.connected-development.v1";var W="with `runtime` [in `workdir`]: `command` `argument`...",
|
|
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:`\
|
|
77
78
|
- Verify \`label\` ${W}`,"Custom runner":`- Custom runner ${W}`}),pe=Object.freeze(["- Default package type: `type`","- \
|
|
78
|
-
Sources file: `path`",...Object.values(
|
|
79
|
-
|
|
80
|
-
\`${D}\``],["- Identity types: ","identityTypes","Identity types",`one or more of ${[...
|
|
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(" ")}`],
|
|
81
82
|
["- Enabled environment: ","enabledEnvironment","Enabled environment","`ENV_NAME`"],["- Secret environment: ","secretEnv\
|
|
82
83
|
ironment","Secret environment","`ENV_NAME`"],["- Runtimes: ","runtimes","Runtimes","`runtime`..."],["- Timeout ms: ","ti\
|
|
83
|
-
meoutMs","Timeout ms",`\`1\` through \`${
|
|
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].
|
|
84
85
|
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: ${
|
|
86
|
-
|
|
87
|
-
"- Default: `text`","- Description: `text`","- Required."],presentation:[`- Kind: ${
|
|
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\
|
|
88
89
|
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
|
|
90
|
-
.";var
|
|
91
|
-
Running typical MiB","runningTypical"],["Running high MiB","runningHigh"],["Typical MiB","typical"],["High MiB","high"]]);var
|
|
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
93
|
most 64 values of at most 4096 characters, no line breaks). The executable is a name on PATH or a project-relative path\
|
|
93
94
|
, never absolute and never containing `..`.","Runtimes are lowercase technology ids selected in the project's Stack, suc\
|
|
94
95
|
h as `nodejs` or `php`. Paths are canonical project-relative paths; `.` is the project root.","A section containing only\
|
|
95
96
|
`- Nothing.` explicitly declares nothing. Blank lines are ignored."].join(`
|
|
96
97
|
`),h=e=>e.map(n=>` ${n}`).join(`
|
|
97
|
-
`);function
|
|
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,
|
|
98
99
|
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(),"",
|
|
100
|
+
r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",mt,"","## Example","","```markdown",`## ${t}`,
|
|
100
101
|
"",o.trim(),"```",""].join(`
|
|
101
|
-
`)}}var
|
|
102
|
+
`)}}var ht=`
|
|
102
103
|
### Target \`app\`: Application
|
|
103
104
|
|
|
104
105
|
- Default.
|
|
@@ -150,10 +151,10 @@ r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",l
|
|
|
150
151
|
- Path: \`exports/report.csv\`
|
|
151
152
|
- Name: \`report.csv\`
|
|
152
153
|
- Media type: \`text/csv\`
|
|
153
|
-
`,
|
|
154
|
+
`,wn=Object.freeze([T({name:"workspace-setup",title:"Workspace setup",section:Ie,contract:Se,summary:"Ordered commands t\
|
|
154
155
|
hat prepare a session's working copy (dependencies, generated files, migrations) before any Output runs.",body:`
|
|
155
156
|
Each entry:
|
|
156
|
-
${h([
|
|
157
|
+
${h([ke])}
|
|
157
158
|
|
|
158
159
|
- \`\` in \`workdir\` \`\` runs the command in that project directory (default \`.\`).
|
|
159
160
|
- \`\` when \`path\` exists \`\` waits: setup stays waiting until the path exists (for example a manifest the agent has not cr\
|
|
@@ -169,7 +170,7 @@ act recipe; changing any step runs setup again, and Outputs stay pending until i
|
|
|
169
170
|
step. Keep every step repeatable and non-destructive.
|
|
170
171
|
`,example:"\n- Prepare `Install dependencies` from `package.json` `package-lock.json` with `nodejs`: `npm` `ci`\n- Prepare\
|
|
171
172
|
`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"}),
|
|
173
|
+
js` in `client` when `client/package.json` exists: `npm` `ci`\n"}),T({name:"outputs",title:"Outputs",section:Ee,contract:fe,
|
|
173
174
|
summary:"The runnable targets Vibe64 offers: interactive terminal or web apps shown in Preview, and finite runs that pro\
|
|
174
175
|
duce downloads.",body:`
|
|
175
176
|
Headings, each target followed by its entries and then optional blocks:
|
|
@@ -210,49 +211,62 @@ ${h(O.previewIdentity)}
|
|
|
210
211
|
|
|
211
212
|
- The command is a committed, application-owned project-relative executable whose path contains \`/\`, without \`{host}\` or\
|
|
212
213
|
\`{port}\`.
|
|
213
|
-
- Enabled and Secret environment names are distinct uppercase names, not ${[...
|
|
214
|
+
- Enabled and Secret environment names are distinct uppercase names, not ${[...G].join(", ")} or \`XDG_*\`. For an enabled\
|
|
214
215
|
web run Vibe64 sets the enabled name to \`true\` and the secret name to a fresh per-run secret; the application must keep\
|
|
215
216
|
its identity exchange disabled unless both are present.
|
|
216
217
|
- The command's stdin/stdout protocol: \`vibe64-helper spec preview-identity-command\`. The configured account names: \`vib\
|
|
217
218
|
e64-helper spec preview-identities\`.
|
|
218
|
-
`,example:
|
|
219
|
-
vision into a running
|
|
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:`
|
|
220
221
|
Entries:
|
|
221
222
|
${h(K)}
|
|
222
223
|
|
|
223
|
-
- Steps are ordered ${
|
|
224
|
+
- Steps are ordered ${x.join(", ")}; exactly one Serve step comes last. Serve starts the long-running application, which\
|
|
224
225
|
listens on the address given by the \`HOST\` and \`PORT\` environment variables. Arguments are passed literally (no \`{host}\
|
|
225
226
|
\` or \`{port}\` placeholders), so a server that takes its address only as arguments needs a committed project script that \
|
|
226
227
|
reads them.
|
|
227
|
-
- Every step runs exactly as declared with the
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
package installation skip the build tools a later step needs.
|
|
232
|
-
- Generated secrets names
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
- Setup code names the one
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
- Sandbox allows names, from a closed set, what the application's own commands and service may do beyond
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
es outside those namespaces, the same writable folders and devices. A host grants an allowance only
|
|
247
|
-
its it, and refuses a deploy that needs one it does not grant rather than run it with less. Declare it
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
228
|
+
- Every step runs exactly as declared with the deployment's Env, the environment the host deploys with. A host may also \
|
|
229
|
+
give Serve, and only Serve, its runtime's conventional production setting, such as \`NODE_ENV=production\` for Node; a val\
|
|
230
|
+
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 \
|
|
231
|
+
Serve step, for example \`env\` \`NODE_ENV=production\` \`node\` \`server.js\`, never in the deployment's Env or Prepare, where \
|
|
232
|
+
it can make package installation skip the build tools a later step needs.
|
|
233
|
+
- Generated secrets names secrets the application needs as a stable random value, such as a session-signing key. When a \
|
|
234
|
+
deploy finds no entry with that name in the deployment's Env, the host stores a strong random value there once, as a sec\
|
|
235
|
+
ret: it is kept across releases, never printed, and never replaces a value someone set. Replacing it is an ordinary chan\
|
|
236
|
+
ge to the deployment's Env.
|
|
237
|
+
- Setup code names the one secret of the deployment the application asks for when its first account registers on the dep\
|
|
238
|
+
loyment's empty database, so that only the project owner can create that account (the first account usually becomes the \
|
|
239
|
+
application's owner). The host generates it as it does a generated secret, so never also list it under Generated secrets\
|
|
240
|
+
, and shows its value only to the project owner; it is never printed, logged or given to an assistant. Declare it only w\
|
|
241
|
+
hen the application reads that variable.
|
|
242
|
+
- Sandbox allows names, from a closed set, what the application's own commands and service may do beyond the ordinary sa\
|
|
243
|
+
ndbox of a deployed application: \`gvisor\` lets them start gVisor's rootless \`runsc\` (it makes its own user, mount, PID, \
|
|
244
|
+
IPC, UTS and network namespaces, mounts inside them and traces its own processes); \`fuse\` lets them mount a FUSE file sy\
|
|
245
|
+
stem through \`/dev/fuse\` inside a user and mount namespace of their own (for example \`unshare\` \`--user\` \`--map-root-user\
|
|
246
|
+
\` \`--mount\`), never through a set-user-ID helper such as \`fusermount3\` outside one. Nothing else widens: no new privileg\
|
|
247
|
+
es or capabilities outside those namespaces, the same writable folders and devices. A host grants an allowance only wher\
|
|
248
|
+
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\
|
|
249
|
+
nly when the application needs it, never to make a failing deploy pass: an allowance widens what an intruder in the appl\
|
|
250
|
+
ication could reach, so whether to grant it is the project owner's decision, never an assistant's. An assistant never ad\
|
|
251
|
+
ds or changes this line on its own; it explains the failure and asks the person.
|
|
252
|
+
- Packages names the system packages the application's steps and service need beyond its runtimes, by their nixpkgs name\
|
|
253
|
+
s: an attribute such as \`git\` or \`python313Packages.pip\`, or one output of it after \`^\`, such as \`gcc-unwrapped^lib\` (at\
|
|
254
|
+
most 200, each once). A host that builds the deployment's machine from a package collection installs exactly these besi\
|
|
255
|
+
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\
|
|
256
|
+
es the line, so there the packages must already be installed. Name every program a step or the service runs that is not \
|
|
257
|
+
part of a runtime, such as \`git\` for a Prepare step that clones, or a browser the service starts; never install one from\
|
|
258
|
+
a script instead.
|
|
259
|
+
- Host-level preparation beyond the package manager and Packages, such as devices or host permissions, goes in one scrip\
|
|
260
|
+
t per hosting environment, \`scripts/hosting/<host>.sh\`, which the \`HOSTING_SCRIPT\` environment variable names and the Pr\
|
|
261
|
+
epare step runs; an application that needs none has no such script. It never works around Vibe64's rules: what Vibe64 pr\
|
|
262
|
+
ovides, such as a runtime or a sandbox allowance, is declared in this section, never installed or switched on by the scr\
|
|
263
|
+
ipt, and where the host lacks something the script fails with one plain sentence instead of switching features off.
|
|
264
|
+
- Instances says how many identical copies of the application a host may run at once behind one address, each with a dis\
|
|
265
|
+
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\
|
|
266
|
+
thing a later request needs: uploaded files on its own disk, sign-ins or sessions in memory or in files, or a scheduled \
|
|
267
|
+
job that must run once. Such state belongs in a declared resource (a database, a bucket, Redis); a host never guesses it\
|
|
268
|
+
from the source. Migrate may then run in several copies as they start, so a migration takes a lock and keeps working be\
|
|
269
|
+
side the release before it.
|
|
256
270
|
- One Ready when entry is required (status 200 through 399). Workdir defaults to \`.\`. Each other entry appears at most o\
|
|
257
271
|
nce.
|
|
258
272
|
- Recreate on restore lists project-relative globs (only \`*\` and \`**\`) that a restored deployment rebuilds with its Prep\
|
|
@@ -260,21 +274,29 @@ are step, such as installed dependencies. It requires a Prepare step.
|
|
|
260
274
|
- Migrate applies pending migrations without destroying data.
|
|
261
275
|
- Prepare and Build never need the database or another managed service: a host may run them alone, without those credent\
|
|
262
276
|
ials, to check that a revision builds before it publishes it.
|
|
263
|
-
- The host gives every step \`
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
277
|
+
- The host gives every step \`APP_ENV\`, the environment it deploys to: \`staging\` or \`production\`. Vibe64 runs a session's\
|
|
278
|
+
commands and Preview with \`development\`, and automated test runs use \`test\`. No step, Generated secret or Setup code se\
|
|
279
|
+
ts it, nor \`SIDE_EFFECTS\`, which \`APP_ENV\` replaced. Every decision about where the application runs reads \`APP_ENV\` thr\
|
|
280
|
+
ough one helper of the application's, never \`NODE_ENV\`, which only picks optimised builds and library modes; a missing o\
|
|
281
|
+
r unknown value refuses to start, naming the fix. Following it is the application's job:
|
|
282
|
+
- \`development\` and \`test\`: no email, SMS, push notification, webhook or connector write leaves the application; each \
|
|
283
|
+
is written to its log, and payments use the provider's sandbox.
|
|
284
|
+
- \`staging\`: email goes only to \`STAGING_EMAIL_TO\` and SMS only to \`STAGING_SMS_TO\`, and each is logged instead when i\
|
|
285
|
+
ts variable is unset; push notifications, webhooks and connector writes are logged; payments use the provider's sandbox.\
|
|
286
|
+
|
|
287
|
+
- \`production\`: everything is real.
|
|
288
|
+
- Every page shows a small, always-visible banner naming the environment, except in \`production\`.
|
|
289
|
+
Read it when the application runs, never at build time. In Node, for example: \`const to = { production: message.to, st\
|
|
290
|
+
aging: process.env.STAGING_EMAIL_TO }[process.env.APP_ENV]; if (to) await mailer.send({ ...message, to }); else console.\
|
|
291
|
+
info("%s: email to %s not sent", process.env.APP_ENV, message.to);\`
|
|
270
292
|
`,example:"\n- Runtimes: `nodejs`\n- Recreate on restore: `node_modules`\n- Generated secrets: `SESSION_SECRET`\n- Prepare `\
|
|
271
293
|
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"}),
|
|
294
|
+
`env` `NODE_ENV=production` `node` `server.js`\n- Ready when: `GET` `/health` returns `200`\n"}),T({name:"packaging",title:"\
|
|
273
295
|
Packaging",section:X,contract:Y,summary:"Source facts Vibe64 needs to turn this project into distributable packages: reg\
|
|
274
296
|
istry packages, static web bundles and generated mobile app shells. Where each package is published (targets, channels, \
|
|
275
297
|
builders) is Vibe64 project state, never this section.",body:`
|
|
276
|
-
Headings: \`\` ${
|
|
277
|
-
${h(
|
|
298
|
+
Headings: \`\` ${Z} \`\`, each followed by entries:
|
|
299
|
+
${h(J)}
|
|
278
300
|
|
|
279
301
|
- Packers (closed set): ${B.map(e=>`\`${e}\``).join(", ")}. Package ids are unique lowercase ids with single hyphens.
|
|
280
302
|
- \`npm\`: Version from \`package.json\` or \`external\`; Vibe64 runs \`npm pack\` in Workdir after the optional Prepare and Bui\
|
|
@@ -300,7 +322,7 @@ dependencies`: `npm` `ci`\n- Build `Build bundled client`: `npm` `run` `build`\n
|
|
|
300
322
|
Platforms: `android`\n- Id: `com.example.notes`\n- Name: `Notes`\n- Icon: `assets/icon-1024.png`\n- Version from: `package.\
|
|
301
323
|
json`\n- Deep link scheme from: `APP_URL_SCHEME`\n- Permission `camera`: Take photos to attach to notes.\n\n### Package `sdk\
|
|
302
324
|
`: Notes SDK\n\n- Packer: `npm`\n- Workdir: `packages/notes-sdk`\n- Runtimes: `nodejs`\n- Version from: `package.json`\n"}),
|
|
303
|
-
|
|
325
|
+
T({name:"resource-estimates",title:"Resource estimates",section:ve,contract:we,summary:"Optional memory planning hints f\
|
|
304
326
|
or Outputs and Workspace setup. They are not observed usage, reservations, minimum requirements or granted limits; the e\
|
|
305
327
|
xecution host owns those choices.",body:`
|
|
306
328
|
Headings: \`\` ### Output \`id\` \`\` (an id declared in Outputs) or \`### Workspace setup\` (requires declared setup steps), ea\
|
|
@@ -314,7 +336,7 @@ elds are rejected. The section is at most 64 KiB and 2048 lines.
|
|
|
314
336
|
- Invalid estimates never change Outputs availability or setup readiness; the host then uses its generic policy. Changin\
|
|
315
337
|
g only estimates does not rerun setup.
|
|
316
338
|
`,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"}),
|
|
339
|
+
nning high MiB: `1536`\n\n### Workspace setup\n\n- Typical MiB: `1024`\n- High MiB: `1536`\n"}),T({name:"connected-devel\
|
|
318
340
|
opment",title:"Connected development",section:ce,contract:ue,summary:"How this project consumes the working source of it\
|
|
319
341
|
s connected repositories (its own dependencies under development) in a session.",body:`
|
|
320
342
|
Entries:
|
|
@@ -334,10 +356,10 @@ nection also carries \`"script"\`.
|
|
|
334
356
|
- Custom connections: ${ae}
|
|
335
357
|
`,example:"\n- Default package type: `npm`\n- Sources file: `.connected-sources.json`\n- Prepare `Link connected packages` \
|
|
336
358
|
with `nodejs`: `node` `tools/link-connected.mjs`\n- Verify `Check connected packages` with `nodejs`: `node` `tools/verify\
|
|
337
|
-
-connected.mjs`\n"}),
|
|
359
|
+
-connected.mjs`\n"}),T({name:"project-services",title:"Project services",section:_e,contract:be,summary:"Foreground help\
|
|
338
360
|
er processes (workers, local reference services) that Vibe64 starts before an Output.",body:`
|
|
339
361
|
Entries:
|
|
340
|
-
${h([
|
|
362
|
+
${h([Te])}
|
|
341
363
|
|
|
342
364
|
- Service ids are unique, start with a lowercase letter and use up to 64 lowercase letters, digits and hyphens. Workdir \
|
|
343
365
|
defaults to \`.\`.
|
|
@@ -349,7 +371,7 @@ ver spawn untracked background work.
|
|
|
349
371
|
rd the address in the session's ignored runtime folder) and check your own instance's readiness. Never assume a shared f\
|
|
350
372
|
ixed port.
|
|
351
373
|
`,example:"\n- Start `worker` with `nodejs` in `tools`: `npm` `run` `worker`\n- Start `reference` per session with `nodejs\
|
|
352
|
-
`: `npm` `run` `reference:service`\n"}),
|
|
374
|
+
`: `npm` `run` `reference:service`\n"}),T({name:"integration-setup",title:"Integration setup",section:de,contract:le,summary:"\
|
|
353
375
|
The one application-owned command the editor's Integrations controls call to configure, connect and check the applicatio\
|
|
354
376
|
n's external integrations.",body:`
|
|
355
377
|
Exactly one entry:
|
|
@@ -357,7 +379,7 @@ ${h([me])}
|
|
|
357
379
|
|
|
358
380
|
The command's request/response protocol and the \`integrations.json\` usage: \`vibe64-helper spec integration-setup-command\
|
|
359
381
|
\`.
|
|
360
|
-
`,example:"\n- Command with `nodejs` in `.`: `node` `scripts/integrations.js`\n"}),
|
|
382
|
+
`,example:"\n- Command with `nodejs` in `.`: `node` `scripts/integrations.js`\n"}),T({name:"architecture-inspection",title:"\
|
|
361
383
|
Architecture inspection",section:ee,contract:Q,summary:"Optional project-owned inspectors that the Architecture view run\
|
|
362
384
|
s to observe the application's structure (pages, routes, entry points).",body:`
|
|
363
385
|
Headings: \`\` ### Inspector \`id\`: Title \`\`, each followed by fields:
|
|
@@ -372,12 +394,12 @@ ject files before the inspector runs.
|
|
|
372
394
|
inked package folder (\`node_modules/<name>\` or \`node_modules/@scope/<name>\`); the file must stay inside that package's r\
|
|
373
395
|
eal folder.
|
|
374
396
|
- 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 \`${
|
|
397
|
+
, packages, package identity, UI discovery, the Stack hash and an optional \`cacheDirectory\`) and must print one \`${dt}\
|
|
376
398
|
\` JSON document; Genesis owns that observation schema.
|
|
377
399
|
- \`cacheDirectory\` is an absolute directory for this inspector alone, outside the source; the inspector may read and wri\
|
|
378
400
|
te only there. When it is absent or unusable, inspect without a cache. Ignore unknown request fields.
|
|
379
401
|
`,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"}),
|
|
402
|
+
\n- Timeout seconds: `30`\n- Max output bytes: `1048576`\n- Entry files: `src/main.js`\n"}),T({name:"architecture-layout",
|
|
381
403
|
title:"Architecture layout",section:re,contract:ie,summary:"Presentation groups for the Architecture view. Declarations \
|
|
382
404
|
neither discover subsystems nor change their ownership.",body:`
|
|
383
405
|
Headings: \`\` ### Group \`id\`: Title \`\`, each followed by:
|
|
@@ -389,4 +411,4 @@ Headings: \`\` ### Group \`id\`: Title \`\`, each followed by:
|
|
|
389
411
|
- A Subsystem is a directory root from \`genesis/subsystems.md\`; each root is placed once. A missing root is reported, ne\
|
|
390
412
|
ver invented.
|
|
391
413
|
`,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{
|
|
414
|
+
stem: `packages/shared`\n"})]);export{wn as VIBE64_GENESIS_AGENT_SPECS};
|