vibe64 0.1.65 → 0.1.66
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 +823 -820
- package/bin/server.js +200 -197
- package/bin/upgrade-state.js +4181 -4054
- package/dist/assets/{GithubBrowserTabs-D21Nl3QI.js → GithubBrowserTabs-Bf5z_PiF.js} +1 -1
- package/dist/assets/{LocalDatabaseServer-POxY1K1U.js → LocalDatabaseServer-CcfGbn7H.js} +1 -1
- package/dist/assets/{SelectField-Dezd0B3y.js → SelectField-Df50ZFLj.js} +1 -1
- package/dist/assets/{ShellOutlet-DfF9vsWA.js → ShellOutlet-DPyl05um.js} +1 -1
- package/dist/assets/{Vibe64AuthSettingsButton-I3ufyScN.js → Vibe64AuthSettingsButton-CxJoeOhz.js} +1 -1
- package/dist/assets/{Vibe64ConversationLog-C04oOQ2g.js → Vibe64ConversationLog-jDb_ZvIF.js} +1 -1
- package/dist/assets/{Vibe64DashboardShell-BbrOUmRD.js → Vibe64DashboardShell-Ce1PNB37.js} +1 -1
- package/dist/assets/{Vibe64DatabaseWorkspace-VPEM2o1v.js → Vibe64DatabaseWorkspace-DiZDKEpx.js} +1 -1
- package/dist/assets/{Vibe64FileArea-C_nC2bPk.js → Vibe64FileArea-uRnIJ0Vp.js} +1 -1
- package/dist/assets/{Vibe64OutputControls-DTO3Fw3x.js → Vibe64OutputControls-BF5kh2_h.js} +1 -1
- package/dist/assets/{Vibe64RepositoryWorkspace-B8xcCOvL.js → Vibe64RepositoryWorkspace-D6uJCype.js} +1 -1
- package/dist/assets/{Vibe64SessionFiles-Cb9Mxsyq.js → Vibe64SessionFiles-CxgPB8RR.js} +1 -1
- package/dist/assets/{Vibe64SessionSourceEditor-CVQ3NRjh.js → Vibe64SessionSourceEditor-yaVu279S.js} +1 -1
- package/dist/assets/{Vibe64UiStoryboardView-BV4JFgcZ.js → Vibe64UiStoryboardView-DhbHkz8K.js} +1 -1
- package/dist/assets/{Vibe64UnavailableSessions-DGQAxYE-.js → Vibe64UnavailableSessions-MmPF-Db1.js} +1 -1
- package/dist/assets/{_pageId_-CkG15vv4.js → _pageId_-Zif-veil.js} +1 -1
- package/dist/assets/{_sessionId_-Bka3RUmK.js → _sessionId_-DOge-7SB.js} +1 -1
- package/dist/assets/_slug_-C71iAiR0.js +14 -0
- package/dist/assets/_slug_-CF1TPDUv.css +1 -0
- package/dist/assets/{access-Xo3unxGO.js → access-DQcblrWN.js} +1 -1
- package/dist/assets/{app-B0spNegd.js → app-CzApKPmq.js} +1 -1
- package/dist/assets/assistantRouting-CqIiQy21.js +3 -0
- package/dist/assets/{changes-DFv4tuoO.js → changes-cmlEyHug.js} +1 -1
- package/dist/assets/{client-CVuXqm4b.js → client-13v_yX07.js} +1 -1
- package/dist/assets/{client-BjMjS6lX.js → client-5JUUGxRd.js} +2 -2
- package/dist/assets/{client-4uCr4dYG.js → client-BJBzomgt.js} +1 -1
- package/dist/assets/{client-DR0w56e8.js → client-C8ZjqGdQ.js} +2 -2
- package/dist/assets/{client-Dlg1kjjO.js → client-Dl6I6IVb.js} +1 -1
- package/dist/assets/{client-CevjVK2b.js → client-Dv4scw6i.js} +1 -1
- package/dist/assets/{conversation-OkWbkHjm.js → conversation-CFJRkeTj.js} +3 -3
- package/dist/assets/{conversation-DReMq0MF.css → conversation-COcuIkcD.css} +1 -1
- package/dist/assets/conversation-CexAK3Qk.js +1 -0
- package/dist/assets/{dashboard-CAca9MQn.js → dashboard-Dm_xwwqU.js} +1 -1
- package/dist/assets/{english-definitions-BtX8KA5g.js → english-definitions-DwTf_alg.js} +1 -1
- package/dist/assets/{env-DrNyBVkB.js → env-B7wB5nBn.js} +1 -1
- package/dist/assets/{error-BQ7r64JO.js → error-CtOws2EC.js} +1 -1
- package/dist/assets/{error-BqMxhgpB.js → error-HfzrYwkQ.js} +1 -1
- package/dist/assets/{errorMessageHelpers-B49LyMJi.js → errorMessageHelpers-G32Hjqfm.js} +1 -1
- package/dist/assets/{health-B5yTW5Tt.js → health-DIkOkzPe.js} +1 -1
- package/dist/assets/{history-S3anp6xg.js → history-Ch597NiY.js} +1 -1
- package/dist/assets/{httpClient-Bwitq9Xf.js → httpClient-C71X5grL.js} +1 -1
- package/dist/assets/{i18n-BuXRXGaO.js → i18n-5EHeMSvt.js} +1 -1
- package/dist/assets/{i18n-DQPYjuW7.js → i18n-BSfPKqM3.js} +1 -1
- package/dist/assets/{i18n-Dm74yE_M.js → i18n-DcNQE3tT.js} +1 -1
- package/dist/assets/index-C-6c5Af1.css +1 -0
- package/dist/assets/{index-JBqyg0mr.js → index-DcKFCaBZ.js} +4 -4
- package/dist/assets/{integrations-C7dj7el_.js → integrations-CoNhnGvq.js} +1 -1
- package/dist/assets/{issues-OkV4v4GX.js → issues-Cem4Yt47.js} +1 -1
- package/dist/assets/{learning-lW9nBGjT.js → learning-CU2QyHrj.js} +1 -1
- package/dist/assets/{pages-shOT9IVe.js → pages-BzA58NoR.js} +1 -1
- package/dist/assets/{project-files-D_K1N0JF.js → project-files-BBKjl3wZ.js} +1 -1
- package/dist/assets/{publish-Bxe4ZCqe.js → publish-UFjblZA3.js} +1 -1
- package/dist/assets/{pull-requests-CQvk0TeH.js → pull-requests-DibGk1GB.js} +1 -1
- package/dist/assets/{repository-CI2CqDwF.js → repository-0EKOcyTL.js} +1 -1
- package/dist/assets/{settings-DIVrFrs4.js → settings-BjOnPYwD.js} +1 -1
- package/dist/assets/{studioGateApi-UqmdV50W.js → studioGateApi-B9EUTtMx.js} +1 -1
- package/dist/assets/{studioUrls-k_pQIuPs.js → studioUrls-BR4ZL-TN.js} +1 -1
- package/dist/assets/{useArchivedVibe64Sessions-BkWrTOzg.js → useArchivedVibe64Sessions-CXKRFR2f.js} +1 -1
- package/dist/assets/useAssistantAttachments-C9kAnWqw.js +2 -0
- package/dist/assets/useCommand-yOr3U8KF.js +1 -0
- package/dist/assets/{useEndpointResource-DZTjr9gg.js → useEndpointResource-BwGXpV2u.js} +1 -1
- package/dist/assets/{useUiFeedback-BU4NyMq8.js → useUiFeedback--0dLsslR.js} +1 -1
- package/dist/assets/{useVibe64ConversationLog-BADhWyNY.js → useVibe64ConversationLog-BB5tVtkt.js} +2 -2
- package/dist/assets/{useVibe64Learning-CbsI-XHB.js → useVibe64Learning-iAAH83uG.js} +1 -1
- package/dist/assets/{useVibe64SessionData-DvFvAJC-.js → useVibe64SessionData-BSYF_TgH.js} +1 -1
- package/dist/assets/{useVibe64SessionSelection-BukDTAxb.js → useVibe64SessionSelection-CxZ3uEAf.js} +1 -1
- package/dist/assets/{vibe64FileUpload-BDkcaUyk.js → vibe64FileUpload-D_rOa1R8.js} +1 -1
- package/dist/assets/{vibe64RepositoryRealtime-DX2DEqIz.js → vibe64RepositoryRealtime-CVGNqwxz.js} +1 -1
- package/dist/assets/{vibe64SessionFocus-CzuP3qPT.js → vibe64SessionFocus-DGSVXipO.js} +1 -1
- package/dist/index.html +23 -23
- package/docs/colleague-usage/ai-tasks.md +2 -1
- package/docs/colleague-usage/auto-workflow.md +6 -3
- package/docs/colleague-usage/coding-agent-goal-pause.md +34 -12
- package/docs/colleague-usage/coding-agent-goals.md +33 -16
- package/docs/colleague-usage/coding-agent-questions.md +7 -0
- package/docs/colleague-usage/connected-repositories.md +4 -1
- package/docs/colleague-usage/github-work.md +36 -3
- package/docs/colleague-usage/passes.md +86 -0
- package/docs/colleague-usage/ui-pass.md +4 -0
- package/docs/colleague-usage/workspace-preparation.md +51 -0
- package/node_modules/@jskit-ai/assistant-core/CHANGELOG.md +8 -0
- package/node_modules/@jskit-ai/assistant-core/locales/en.json +2 -0
- package/node_modules/@jskit-ai/assistant-core/package.json +1 -1
- package/node_modules/@jskit-ai/assistant-runtime/CHANGELOG.md +2 -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/package.json +1 -1
- package/node_modules/@jskit-ai/connectors-catalog/package.json +1 -1
- package/node_modules/@jskit-ai/connectors-core/package.json +1 -1
- package/node_modules/@jskit-ai/http-runtime/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/http-runtime/package.json +1 -1
- package/node_modules/@jskit-ai/kernel/CHANGELOG.md +5 -0
- package/node_modules/@jskit-ai/kernel/package.json +1 -1
- package/node_modules/@jskit-ai/payments-core/package.json +1 -1
- package/node_modules/@jskit-ai/realtime/package.json +1 -1
- 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-genesis/bin/vibe64-genesis-host-context +914 -773
- package/node_modules/@local/vibe64-genesis/src/server/agentSpecs.js +69 -63
- package/node_modules/@local/vibe64-genesis/src/server/index.js +450 -440
- package/node_modules/@local/vibe64-genesis/src/server/packaging.js +27 -28
- package/node_modules/@local/vibe64-genesis/src/server/promptContext.js +63 -55
- package/node_modules/@local/vibe64-runtime/src/server/codexAppServerProcess.js +1044 -901
- package/node_modules/@local/vibe64-terminals/src/server/opencodeSessionEnvironmentPlugin.js +560 -420
- package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +453 -450
- package/package.json +15 -15
- package/server.bundle.mjs +42018 -41710
- package/dist/assets/_slug_-7Oo7pGKn.js +0 -14
- package/dist/assets/_slug_-BaxjtsgP.css +0 -1
- package/dist/assets/assistantRouting-B9cub38g.js +0 -3
- package/dist/assets/conversation-D7T_us2O.js +0 -1
- package/dist/assets/index-DSyb-mRJ.css +0 -1
- package/dist/assets/useAssistantAttachments-DqlNFiha.js +0 -2
- package/dist/assets/useCommand-D-MIMmhp.js +0 -1
|
@@ -1,94 +1,94 @@
|
|
|
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 pt}from"genesis-compiler";import $ from"node:path";var M=class extends Error{constructor(n,t,r=void 0){super(t),this.name="Vibe64StackOperationErr\
|
|
3
|
+
or",this.code=n,r!==void 0&&(this.details=r)}},F=Object.freeze({VIBE64_WORKSPACE_SETUP_INVALID:"workspace-setup",VIBE64_OUTPUTS_INVALID:"\
|
|
4
4
|
outputs",VIBE64_DEPLOYMENT_INVALID:"deployment",VIBE64_PACKAGING_INVALID:"packaging",VIBE64_RESOURCE_ESTIMATES_INVALID:"\
|
|
5
5
|
resource-estimates",VIBE64_CONNECTED_DEVELOPMENT_INVALID:"connected-development",VIBE64_PROJECT_SERVICES_INVALID:"projec\
|
|
6
6
|
t-services",VIBE64_INTEGRATION_SETUP_INVALID:"integration-setup",VIBE64_ARCHITECTURE_INSPECTION_INVALID:"architecture-in\
|
|
7
7
|
spection",VIBE64_ARCHITECTURE_LAYOUT_INVALID:"architecture-layout"}),Ne=/ Exact grammar: vibe64-helper spec [a-z-]+\.$/u;
|
|
8
|
-
function Ae(e,n){let t=
|
|
8
|
+
function Ae(e,n){let t=F[e],r=String(n).replace(Ne,"");return t?`${r} Exact grammar: vibe64-helper spec ${t}.`:r}function s(e,n,t,r,c={}){throw new M(e,Ae(e,t),{path:n,...r===void 0?{}:{line:r},...c})}function Ce(e){let n=[...String(e||"").matchAll(/`([^`\r\n]+)`/gu)];return n.length===0||n.map(t=>t[0]).join(" ")!==e?null:
|
|
9
9
|
n.map(t=>t[1])}function T(e,n,t,r,c,i={}){let{count:o,maximum:u=64}=i,d=Ce(e);if(!d||d.length>u||o!==void 0&&d.length!==
|
|
10
10
|
o||d.some(y=>y.length>4096||/[\0\r\n]/u.test(y))){let y=o===void 0?"separate non-empty":`exactly ${o}`;s(n,t,`${r} must \
|
|
11
11
|
contain ${y} backticked ${o===1?"value":"values"}.`,c)}return d}function Pe(e=""){return typeof e=="string"&&!!e&&!/[\s\0{}]/u.
|
|
12
12
|
test(e)&&!$.isAbsolute(e)&&!e.split(/[\\/]/u).includes("..")}function b(e,n,t,r,c){let i=T(e,n,t,r,c);return Pe(i[0])||s(
|
|
13
13
|
n,t,`${r} must begin with a safe executable.`,c),i}function De(e=""){return typeof e=="string"&&!!e&&!/[\0\r\n\\]/u.test(
|
|
14
|
-
e)&&!$.posix.isAbsolute(e)&&$.posix.normalize(e)===e&&!e.split("/").some(n=>!n||n==="..")}function
|
|
15
|
-
allowRoot:o=!0}=i;return(!De(e)||!o&&e===".")&&s(n,t,`${r} must be a canonical project-relative path.`,c),e}function w(e,n,t,r,c){
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
["
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
t\`...`]);var Y="vibe64.packaging.v1",X="Packaging",yt=Object.freeze(["genesis",".genesis",".agents",".claude",".codex",".opencode"]);var Ue=Object.freeze({npm:Object.freeze({entries:["workdir","runtimes","prepare","build","environment","versionFrom"],required:[
|
|
14
|
+
e)&&!$.posix.isAbsolute(e)&&$.posix.normalize(e)===e&&!e.split("/").some(n=>!n||n==="..")}function E(e,n,t,r,c,i={}){let{
|
|
15
|
+
allowRoot:o=!0}=i;return(!De(e)||!o&&e===".")&&s(n,t,`${r} must be a canonical project-relative path.`,c),e}function w(e,n,t,r,c){let i=T(e,n,t,r,c);return i.some(o=>!/^[a-z0-9]+(?:-[a-z0-9]+)*$/u.test(o))&&s(n,t,`${r} must use \
|
|
16
|
+
lowercase technology ids separated into backticked values.`,c),new Set(i).size!==i.length&&s(n,t,`${r} contains a duplic\
|
|
17
|
+
ate technology id.`,c),i}function g(e=[]){let n=e.map(t=>t.trim()).filter(Boolean);return n.length===1&&n[0]==="- Nothing."}var ht=Object.freeze(
|
|
18
|
+
{SPEC_BY_ERROR_CODE:F});var z="vibe64.application-deployment.v1",q="Deployment";var Ve="- Recreate on restore: ",je="- Generated secrets: ",Le="- Setup code: ",xe="- Sandbox allows: ",Be=Object.freeze(
|
|
19
|
+
["fuse","gvisor"]);var Ue=Object.freeze({prepare:0,build:1,migrate:2,serve:3}),L=Object.keys(Ue).map(e=>e[0].toUpperCase()+e.slice(1)),K=Object.
|
|
20
|
+
freeze(["- Workdir: `path`","- Runtimes: `runtime`...",`${Ve}\`glob\`...`,`${je}\`NAME\`...`,`${Le}\`NAME\``,`${xe}${Be.
|
|
21
|
+
map(e=>`\`${e}\``).join(" ")}`,"- Ready when: `GET` `/path` returns `200`",`- ${L.join("|")} \`label\`: \`command\` \`argumen\
|
|
22
|
+
t\`...`]);var Y="vibe64.packaging.v1",X="Packaging",Tt=Object.freeze(["genesis",".genesis",".agents",".claude",".codex",".opencode"]);var We=Object.freeze({npm:Object.freeze({entries:["workdir","runtimes","prepare","build","environment","versionFrom"],required:[
|
|
24
23
|
"versionFrom"],versionSources:["package.json","external"]}),"python-dist":Object.freeze({entries:["workdir","runtimes","\
|
|
25
24
|
prepare","build","environment","output","versionFrom"],required:["build","output","versionFrom"],versionSources:["pyproj\
|
|
26
25
|
ect.toml","external"]}),"web-bundle":Object.freeze({entries:["workdir","runtimes","prepare","build","environment","outpu\
|
|
27
26
|
t"],required:["build","output"],versionSources:[]}),capacitor:Object.freeze({entries:["workdir","content","platforms","a\
|
|
28
27
|
pplicationId","name","icon","versionFrom","deepLinkSchemeFrom","appLinkDomainsFrom","permission"],required:["content","p\
|
|
29
28
|
latforms","applicationId","name","icon","versionFrom"],versionSources:["package.json","external"]})}),B=Object.freeze(Object.
|
|
30
|
-
keys(
|
|
31
|
-
\``).join(" | "),
|
|
29
|
+
keys(We)),He=Object.freeze(["android"]),Ge=Object.freeze(["package.json","pyproject.toml","external"]),x=e=>e.map(n=>`\`${n}\
|
|
30
|
+
\``).join(" | "),k=Object.freeze([["- Packer: ","packer",`- Packer: ${x(B)}`],["- Workdir: ","workdir","- Workdir: `path\
|
|
32
31
|
`"],["- Runtimes: ","runtimes","- Runtimes: `runtime`..."],["- Output: ","output","- Output: `path`"],["- Version from: ",
|
|
33
|
-
"versionFrom",`- Version from: ${x(
|
|
32
|
+
"versionFrom",`- Version from: ${x(Ge)}`],["- Platforms: ","platforms",`- Platforms: ${x(He)}...`],["- Id: ","applicatio\
|
|
34
33
|
nId","- Id: `reverse.dns.id`"],["- Name: ","name","- Name: `Display name`"],["- Icon: ","icon","- Icon: `path/to/icon-10\
|
|
35
34
|
24.png`"],["- Deep link scheme from: ","deepLinkSchemeFrom","- Deep link scheme from: `ENV_NAME`"],["- App link domains \
|
|
36
|
-
from: ","appLinkDomainsFrom","- App link domains from: `ENV_NAME`"]]),J="### Package `id`: Label",Z=Object.freeze([
|
|
37
|
-
|
|
38
|
-
ntent: package `web-bundle-id`",...
|
|
35
|
+
from: ","appLinkDomainsFrom","- App link domains from: `ENV_NAME`"]]),J="### Package `id`: Label",Z=Object.freeze([k[0][2],
|
|
36
|
+
k[1][2],k[2][2],"- Prepare|Build `label`: `command` `argument`...","- Environment `NAME`: `value`",k[3][2],k[4][2],"- Co\
|
|
37
|
+
ntent: package `web-bundle-id`",...k.slice(5).map(([,,e])=>e),"- Permission `id`: User-facing reason."]),_t=Object.freeze(
|
|
39
38
|
{packer:"Packer",workdir:"Workdir",runtimes:"Runtimes",prepare:"Prepare",build:"Build",environment:"Environment",output:"\
|
|
40
39
|
Output",versionFrom:"Version from",content:"Content",platforms:"Platforms",applicationId:"Id",name:"Name",icon:"Icon",deepLinkSchemeFrom:"\
|
|
41
40
|
Deep link scheme from",appLinkDomainsFrom:"App link domains from",permission:"Permission"});var Q="vibe64.architecture-inspection.v1",ee="Architecture inspection",l="VIBE64_ARCHITECTURE_INSPECTION_INVALID",Fe="ge\
|
|
42
|
-
nesis/stack.md#Architecture inspection",te=120,ne=64*1024*1024,se=64*1024,
|
|
41
|
+
nesis/stack.md#Architecture inspection",te=120,ne=64*1024*1024,se=64*1024,ze=Object.freeze(["runtimeRequirements","workd\
|
|
43
42
|
ir","argv","timeout","maxBuffer"]),N=Object.freeze({Runtime:["runtimeRequirements","`runtime`..."],Directory:["workdir",
|
|
44
43
|
"`path`"],Command:["argv","`command` `argument`..."],"Timeout seconds":["timeout",`\`1\` through \`${te}\``],"Max output\
|
|
45
44
|
bytes":["maxBuffer",`\`1\` through \`${ne}\``],"Entry files":["entryFiles","`path`... (optional)"],"Required files":["r\
|
|
46
|
-
equiredFiles","`path`... (optional)"],"Preview locator":["previewLocator","`path` (optional .js file)"]}),
|
|
47
|
-
`^- (${Object.keys(N).join("|")}): (.+)$`,"u");function
|
|
48
|
-
ture inspection requires exact Stack section lines."),g(e))return[];let r=[],c=new Set,i;function o(){if(i){for(let u of
|
|
45
|
+
equiredFiles","`path`... (optional)"],"Preview locator":["previewLocator","`path` (optional .js file)"]}),qe=new RegExp(
|
|
46
|
+
`^- (${Object.keys(N).join("|")}): (.+)$`,"u");function Ke(e,n={}){let{path:t=Fe}=n;if(Array.isArray(e)||s(l,t,"Architec\
|
|
47
|
+
ture inspection requires exact Stack section lines."),g(e))return[];let r=[],c=new Set,i;function o(){if(i){for(let u of ze)
|
|
49
48
|
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
49
|
let I=y.match(/^### Inspector `([a-z0-9]+(?:-[a-z0-9]+)*)`: (.+)$/u);if(I){o(),c.has(I[1])&&s(l,t,"Duplicate inspector i\
|
|
51
|
-
d.",u+1),c.add(I[1]),i={id:I[1],title:I[2]};continue}i||s(l,t,"Expected an Inspector heading.",u+1);let p=y.match(
|
|
52
|
-
let
|
|
53
|
-
of: ${
|
|
50
|
+
d.",u+1),c.add(I[1]),i={id:I[1],title:I[2]};continue}i||s(l,t,"Expected an Inspector heading.",u+1);let p=y.match(qe);if(!p){
|
|
51
|
+
let f=Object.entries(N).map(([m,[,C]])=>`- ${m}: ${C}`).join("; ");s(l,t,`Unknown architecture inspector field. Use one \
|
|
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]=w(p[2],l,
|
|
54
53
|
t,"Inspector runtime",u+1);else if(a==="argv")i[a]=b(p[2],l,t,"Inspector command",u+1);else if(a==="entryFiles"||a==="re\
|
|
55
|
-
quiredFiles")i[a]=T(p[2],l,t,p[1],u+1).map(E
|
|
56
|
-
dir")i[a]=f
|
|
57
|
-
imeout"?te:ne;(!/^[1-9][0-9]*$/u.test(
|
|
58
|
-
a==="timeout"?m*1e3:m}}}return o(),r.length||s(l,t,"Use an Inspector entry or - Nothing."),r}function
|
|
59
|
-
e,l,n,"Preview locator",t,{allowRoot:!1}),e.endsWith(".js")||s(l,n,"Preview locator must name a .js file.",t),e}var
|
|
60
|
-
"layer","libraries","support"]);function
|
|
54
|
+
quiredFiles")i[a]=T(p[2],l,t,p[1],u+1).map(f=>E(f,l,t,p[1],u+1));else{let[f]=T(p[2],l,t,p[1],u+1,{count:1});if(a==="work\
|
|
55
|
+
dir")i[a]=E(f,l,t,"Inspector directory",u+1);else if(a==="previewLocator")i[a]=Ye(f,t,u+1);else{let m=Number(f),C=a==="t\
|
|
56
|
+
imeout"?te:ne;(!/^[1-9][0-9]*$/u.test(f)||!Number.isSafeInteger(m)||m>C)&&s(l,t,`${p[1]} must be from 1 to ${C}.`,u+1),i[a]=
|
|
57
|
+
a==="timeout"?m*1e3:m}}}return o(),r.length||s(l,t,"Use an Inspector entry or - Nothing."),r}function Ye(e,n,t){return E(
|
|
58
|
+
e,l,n,"Preview locator",t,{allowRoot:!1}),e.endsWith(".js")||s(l,n,"Preview locator must name a .js file.",t),e}var bt=Object.freeze({parseVibe64ArchitectureInspectionLines:Ke});var ie="vibe64.architecture-layout.v1",re="Architecture layout",_="VIBE64_ARCHITECTURE_LAYOUT_INVALID",A=Object.freeze([
|
|
59
|
+
"layer","libraries","support"]);function Xe(e,n={}){let{path:t="genesis/stack.md#Architecture layout"}=n;if(Array.isArray(
|
|
61
60
|
e)||s(_,t,"Expected exact Stack section lines."),g(e))return[];let r=[],c=new Set,i=new Set,o;function u(){o&&((!o.kind||
|
|
62
61
|
!o.purpose||!o.subsystems.length)&&s(_,t,`${o.id} needs Kind, Purpose and at least one Subsystem.`),r.push(o))}for(let[d,
|
|
63
62
|
y]of e.entries()){let I=y.trim();if(!I)continue;let p=I.match(/^### Group `([a-z0-9]+(?:-[a-z0-9]+)*)`: (.+)$/u);if(p){u(),
|
|
64
63
|
c.has(p[1])&&s(_,t,"Duplicate group id.",d+1),c.add(p[1]),o={id:p[1],title:p[2],subsystems:[]};continue}let a=I.match(/^- (Kind|Purpose|Subsystem): (.+)$/u);
|
|
65
|
-
(!o||!a)&&s(_,t,"Expected a Group heading or Kind, Purpose, Subsystem field.",d+1);let
|
|
66
|
-
if(a[1]==="Subsystem"){let m=f
|
|
64
|
+
(!o||!a)&&s(_,t,"Expected a Group heading or Kind, Purpose, Subsystem field.",d+1);let f=T(a[2],_,t,a[1],d+1,{count:1});
|
|
65
|
+
if(a[1]==="Subsystem"){let m=E(f[0],_,t,"Subsystem root",d+1);i.has(m)&&s(_,t,"Each directory root may be placed only on\
|
|
67
66
|
ce.",d+1),i.add(m),o.subsystems.push({root:m})}else{let m=a[1].toLowerCase();o[m]!==void 0&&s(_,t,`Duplicate ${a[1]}.`,d+
|
|
68
|
-
1),m==="kind"&&!A.includes(
|
|
69
|
-
r.length||s(_,t,"Use a Group entry or - Nothing."),r}var
|
|
67
|
+
1),m==="kind"&&!A.includes(f[0])&&s(_,t,`Kind must be ${A.slice(0,-1).join(", ")} or ${A.at(-1)}.`,d+1),o[m]=f[0]}}return u(),
|
|
68
|
+
r.length||s(_,t,"Use a Group entry or - Nothing."),r}var kt=Object.freeze({parseVibe64ArchitectureLayoutLines:Xe});var Je="custom",oe="vibe64.connected-sources.v2",U=Object.freeze([Object.freeze({value:"npm",label:"npm (Node.js)"}),Object.
|
|
70
69
|
freeze({value:"composer",label:"Composer (PHP)"}),Object.freeze({value:"pip",label:"pip (Python)"}),Object.freeze({value:"\
|
|
71
70
|
bundler",label:"Bundler (Ruby)"}),Object.freeze({value:"gomod",label:"Go modules"}),Object.freeze({value:"cargo",label:"\
|
|
72
71
|
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:
|
|
72
|
+
{value:"nuget",label:"NuGet (.NET)"}),Object.freeze({value:Je,label:"custom"})]),ae="Vibe64's preparer appends the absol\
|
|
74
73
|
ute script path and --phase prepare|verify, --source-root <the session's copy of the repository>, --project-root <consum\
|
|
75
74
|
ing project>, --sources-file <absolute Sources file> and --repository <GitHub URL> arguments to the Stack's Custom runne\
|
|
76
|
-
r command, once per phase; execution checks the script remains inside the consuming project.",
|
|
77
|
-
value));var ce="Connected development",ue="vibe64.connected-development.v1";var W="with `runtime` [in `workdir`]: `command` `argument`...",
|
|
75
|
+
r command, once per phase; execution checks the script remains inside the consuming project.",Rt=Object.freeze(U.map(e=>e.
|
|
76
|
+
value));var ce="Connected development",ue="vibe64.connected-development.v1";var W="with `runtime` [in `workdir`]: `command` `argument`...",Qe=Object.freeze({Prepare:`- Prepare \`label\` ${W}`,Verify:`\
|
|
78
77
|
- Verify \`label\` ${W}`,"Custom runner":`- Custom runner ${W}`}),pe=Object.freeze(["- Default package type: `type`","- \
|
|
79
|
-
Sources file: `path`",...Object.values(
|
|
80
|
-
|
|
81
|
-
\`${D}\``],["- Identity types: ","identityTypes","Identity types",`one or more of ${[...
|
|
78
|
+
Sources file: `path`",...Object.values(Qe)]);var le="vibe64.integration-setup.v1",de="Integration setup";var me="- Command with `runtime` in `workdir`: `command` `argument`...";var D="vibe64.preview-identity.command.v1";var H=new Set(["HOME","LOGNAME","NODE_OPTIONS","PATH","TMPDIR","USER"]),st=new Set(["email","login","user-id"]),it=1e4,rt=3e4,
|
|
79
|
+
ot=[["- Command: ","command","Command","`tools/preview-identity` `argument`..."],["- Protocol: ","protocol","Protocol",`\
|
|
80
|
+
\`${D}\``],["- Identity types: ","identityTypes","Identity types",`one or more of ${[...st].map(e=>`\`${e}\``).join(" ")}`],
|
|
82
81
|
["- Enabled environment: ","enabledEnvironment","Enabled environment","`ENV_NAME`"],["- Secret environment: ","secretEnv\
|
|
83
82
|
ironment","Secret environment","`ENV_NAME`"],["- Runtimes: ","runtimes","Runtimes","`runtime`..."],["- Timeout ms: ","ti\
|
|
84
|
-
meoutMs","Timeout ms",`\`1\` through \`${
|
|
83
|
+
meoutMs","Timeout ms",`\`1\` through \`${rt}\` (default ${it})`]],he=ot.map(([e,,,n])=>`${e}${n}`);var fe="vibe64.outputs.v1",Ee="Outputs";var at=new Set(["finite","interactive"]),ct=new Set(["development","test"]),ut=new Set(["terminal","web"]),ge=16,G=e=>[...e].
|
|
85
84
|
map(n=>`\`${n}\``).join(" or "),ye=Object.freeze(["### Target `id`: Label","#### Parameter `id`: Label","#### Presentati\
|
|
86
|
-
on","#### Preview identity","#### Download `id`"]),O=Object.freeze({target:["- Default.",`- Mode: ${
|
|
87
|
-
|
|
88
|
-
"- Default: `text`","- Description: `text`","- Required."],presentation:[`- Kind: ${
|
|
85
|
+
on","#### Preview identity","#### Download `id`"]),O=Object.freeze({target:["- Default.",`- Mode: ${G(at)}`,`- Data: ${G(
|
|
86
|
+
ct)}`,"- Workdir: `path`","- Runtimes: `runtime`...","- Prepare|Build|Run `label`: `command` `argument`..."],parameter:[
|
|
87
|
+
"- Default: `text`","- Description: `text`","- Required."],presentation:[`- Kind: ${G(ut)}`,"- Preferred port: `1024` th\
|
|
89
88
|
rough `65535`","- URL path: `/path`","- Ready when: `GET` `/path` returns `200`"],previewIdentity:he,download:["- Path: \
|
|
90
|
-
`path`","- Name: `file-name`","- Media type: `type/subtype`"]});var Te="Project services",_e="vibe64.project-services.v1";var Se="- Start `service-id` [per session] with `runtime` [in `workdir`]: `command` `argument`...";var Ie="vibe64.workspace-setup.v1",be="Workspace setup";var we="- Prepare `label` with `runtime` [in `workdir`] [when|if `path` exists]: `command` `argument
|
|
91
|
-
|
|
89
|
+
`path`","- Name: `file-name`","- Media type: `type/subtype`"]});var Te="Project services",_e="vibe64.project-services.v1";var Se="- Start `service-id` [per session] with `runtime` [in `workdir`]: `command` `argument`...";var Ie="vibe64.workspace-setup.v1",be="Workspace setup";var we="- Prepare `label` [from `path`...] with `runtime` [in `workdir`] [when|if `path` exists]: `command` `argument`..\
|
|
90
|
+
.";var ve="vibe64.resource-estimates.v1",ke="Resource estimates";var cn=1024*1024,Oe=1024*1024,Re=new Map([["Startup typical MiB","startupTypical"],["Startup high MiB","startupHigh"],["\
|
|
91
|
+
Running typical MiB","runningTypical"],["Running high MiB","runningHigh"],["Typical MiB","typical"],["High MiB","high"]]);var lt=["Command values: the executable and every argument are separate backticked values separated by single spaces (at\
|
|
92
92
|
most 64 values of at most 4096 characters, no line breaks). The executable is a name on PATH or a project-relative path\
|
|
93
93
|
, never absolute and never containing `..`.","Runtimes are lowercase technology ids selected in the project's Stack, suc\
|
|
94
94
|
h as `nodejs` or `php`. Paths are canonical project-relative paths; `.` is the project root.","A section containing only\
|
|
@@ -96,9 +96,9 @@ h as `nodejs` or `php`. Paths are canonical project-relative paths; `.` is the p
|
|
|
96
96
|
`),h=e=>e.map(n=>` ${n}`).join(`
|
|
97
97
|
`);function S({name:e,title:n,section:t,contract:r="",summary:c,body:i,example:o}){return{name:e,title:n,section:t,example:o,
|
|
98
98
|
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(),"",
|
|
99
|
+
r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",lt,"","## Example","","```markdown",`## ${t}`,
|
|
100
100
|
"",o.trim(),"```",""].join(`
|
|
101
|
-
`)}}var
|
|
101
|
+
`)}}var dt=`
|
|
102
102
|
### Target \`app\`: Application
|
|
103
103
|
|
|
104
104
|
- Default.
|
|
@@ -150,7 +150,7 @@ r and meaning; Genesis transports the exact section text.`,"",c,"",i.trim(),"",p
|
|
|
150
150
|
- Path: \`exports/report.csv\`
|
|
151
151
|
- Name: \`report.csv\`
|
|
152
152
|
- Media type: \`text/csv\`
|
|
153
|
-
`,
|
|
153
|
+
`,In=Object.freeze([S({name:"workspace-setup",title:"Workspace setup",section:be,contract:Ie,summary:"Ordered commands t\
|
|
154
154
|
hat prepare a session's working copy (dependencies, generated files, migrations) before any Output runs.",body:`
|
|
155
155
|
Each entry:
|
|
156
156
|
${h([we])}
|
|
@@ -159,13 +159,19 @@ ${h([we])}
|
|
|
159
159
|
- \`\` when \`path\` exists \`\` waits: setup stays waiting until the path exists (for example a manifest the agent has not cr\
|
|
160
160
|
eated yet).
|
|
161
161
|
- \`\` if \`path\` exists \`\` skips the step while the path is missing.
|
|
162
|
+
- \`\` from \`path\`... \`\` names every file the command reads: project files or folders (a folder covers every file below it\
|
|
163
|
+
), where \`*\` matches within one path segment and \`**\` across segments. Ignored files are never seen. After the step succ\
|
|
164
|
+
eeds Vibe64 records what those files held and the command; a later preparation skips the step while both are unchanged a\
|
|
165
|
+
nd the session's resources are the ones it ran on. Name the lockfile too, and leave \`from\` out when unsure: a step witho\
|
|
166
|
+
ut it runs whenever preparation runs.
|
|
162
167
|
- Steps run in order through managed execution with the session's development Env. Vibe64 records success against the ex\
|
|
163
|
-
act recipe; changing any step runs setup again, and Outputs stay pending until it succeeds.
|
|
164
|
-
|
|
165
|
-
`,example:"\n- Prepare `Install dependencies` with `nodejs`: `npm` `ci`\n- Prepare
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
offers: interactive terminal or web apps shown in Preview, and finite runs that
|
|
168
|
+
act recipe; changing any step runs setup again, and Outputs stay pending until it succeeds. Prepare workspace runs every\
|
|
169
|
+
step. Keep every step repeatable and non-destructive.
|
|
170
|
+
`,example:"\n- Prepare `Install dependencies` from `package.json` `package-lock.json` with `nodejs`: `npm` `ci`\n- Prepare\
|
|
171
|
+
`Migrate database` with `nodejs` if `migrations` exists: `npm` `run` `db:migrate`\n- Prepare `Install client` with `node\
|
|
172
|
+
js` in `client` when `client/package.json` exists: `npm` `ci`\n"}),S({name:"outputs",title:"Outputs",section:Ee,contract:fe,
|
|
173
|
+
summary:"The runnable targets Vibe64 offers: interactive terminal or web apps shown in Preview, and finite runs that pro\
|
|
174
|
+
duce downloads.",body:`
|
|
169
175
|
Headings, each target followed by its entries and then optional blocks:
|
|
170
176
|
${h(ye)}
|
|
171
177
|
|
|
@@ -209,12 +215,12 @@ ${h(O.previewIdentity)}
|
|
|
209
215
|
its identity exchange disabled unless both are present.
|
|
210
216
|
- The command's stdin/stdout protocol: \`vibe64-helper spec preview-identity-command\`. The configured account names: \`vib\
|
|
211
217
|
e64-helper spec preview-identities\`.
|
|
212
|
-
`,example:
|
|
218
|
+
`,example:dt}),S({name:"deployment",title:"Deployment",section:q,contract:z,summary:"The commands that turn a project re\
|
|
213
219
|
vision into a running production application.",body:`
|
|
214
220
|
Entries:
|
|
215
221
|
${h(K)}
|
|
216
222
|
|
|
217
|
-
- Steps are ordered ${
|
|
223
|
+
- Steps are ordered ${L.join(", ")}; exactly one Serve step comes last. Serve starts the long-running application, which\
|
|
218
224
|
listens on the address given by the \`HOST\` and \`PORT\` environment variables. Arguments are passed literally (no \`{host}\
|
|
219
225
|
\` or \`{port}\` placeholders), so a server that takes its address only as arguments needs a committed project script that \
|
|
220
226
|
reads them.
|
|
@@ -294,12 +300,12 @@ dependencies`: `npm` `ci`\n- Build `Build bundled client`: `npm` `run` `build`\n
|
|
|
294
300
|
Platforms: `android`\n- Id: `com.example.notes`\n- Name: `Notes`\n- Icon: `assets/icon-1024.png`\n- Version from: `package.\
|
|
295
301
|
json`\n- Deep link scheme from: `APP_URL_SCHEME`\n- Permission `camera`: Take photos to attach to notes.\n\n### Package `sdk\
|
|
296
302
|
`: Notes SDK\n\n- Packer: `npm`\n- Workdir: `packages/notes-sdk`\n- Runtimes: `nodejs`\n- Version from: `package.json`\n"}),
|
|
297
|
-
S({name:"resource-estimates",title:"Resource estimates",section:
|
|
303
|
+
S({name:"resource-estimates",title:"Resource estimates",section:ke,contract:ve,summary:"Optional memory planning hints f\
|
|
298
304
|
or Outputs and Workspace setup. They are not observed usage, reservations, minimum requirements or granted limits; the e\
|
|
299
305
|
xecution host owns those choices.",body:`
|
|
300
306
|
Headings: \`\` ### Output \`id\` \`\` (an id declared in Outputs) or \`### Workspace setup\` (requires declared setup steps), ea\
|
|
301
307
|
ch followed by fields:
|
|
302
|
-
${h([...
|
|
308
|
+
${h([...Re.keys()].map(e=>`- ${e}: \`number\``))}
|
|
303
309
|
|
|
304
310
|
- An interactive output declares the four Startup and Running fields. A finite output and Workspace setup declare only T\
|
|
305
311
|
ypical MiB and High MiB.
|
|
@@ -366,7 +372,7 @@ ject files before the inspector runs.
|
|
|
366
372
|
inked package folder (\`node_modules/<name>\` or \`node_modules/@scope/<name>\`); the file must stay inside that package's r\
|
|
367
373
|
eal folder.
|
|
368
374
|
- On analysis the command receives one \`jskit.architecture-inspection-input.v1\` JSON request on stdin (files with hashes\
|
|
369
|
-
, packages, package identity, UI discovery, the Stack hash and an optional \`cacheDirectory\`) and must print one \`${
|
|
375
|
+
, packages, package identity, UI discovery, the Stack hash and an optional \`cacheDirectory\`) and must print one \`${pt}\
|
|
370
376
|
\` JSON document; Genesis owns that observation schema.
|
|
371
377
|
- \`cacheDirectory\` is an absolute directory for this inspector alone, outside the source; the inspector may read and wri\
|
|
372
378
|
te only there. When it is absent or unusable, inspect without a cache. Ignore unknown request fields.
|
|
@@ -383,4 +389,4 @@ Headings: \`\` ### Group \`id\`: Title \`\`, each followed by:
|
|
|
383
389
|
- A Subsystem is a directory root from \`genesis/subsystems.md\`; each root is placed once. A missing root is reported, ne\
|
|
384
390
|
ver invented.
|
|
385
391
|
`,example:"\n### Group `shared`: Shared libraries\n\n- Kind: `libraries`\n- Purpose: `Code reused by every surface.`\n- Subsy\
|
|
386
|
-
stem: `packages/shared`\n"})]);export{
|
|
392
|
+
stem: `packages/shared`\n"})]);export{In as VIBE64_GENESIS_AGENT_SPECS};
|