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.
Files changed (117) hide show
  1. package/bin/run.js +823 -820
  2. package/bin/server.js +200 -197
  3. package/bin/upgrade-state.js +4181 -4054
  4. package/dist/assets/{GithubBrowserTabs-D21Nl3QI.js → GithubBrowserTabs-Bf5z_PiF.js} +1 -1
  5. package/dist/assets/{LocalDatabaseServer-POxY1K1U.js → LocalDatabaseServer-CcfGbn7H.js} +1 -1
  6. package/dist/assets/{SelectField-Dezd0B3y.js → SelectField-Df50ZFLj.js} +1 -1
  7. package/dist/assets/{ShellOutlet-DfF9vsWA.js → ShellOutlet-DPyl05um.js} +1 -1
  8. package/dist/assets/{Vibe64AuthSettingsButton-I3ufyScN.js → Vibe64AuthSettingsButton-CxJoeOhz.js} +1 -1
  9. package/dist/assets/{Vibe64ConversationLog-C04oOQ2g.js → Vibe64ConversationLog-jDb_ZvIF.js} +1 -1
  10. package/dist/assets/{Vibe64DashboardShell-BbrOUmRD.js → Vibe64DashboardShell-Ce1PNB37.js} +1 -1
  11. package/dist/assets/{Vibe64DatabaseWorkspace-VPEM2o1v.js → Vibe64DatabaseWorkspace-DiZDKEpx.js} +1 -1
  12. package/dist/assets/{Vibe64FileArea-C_nC2bPk.js → Vibe64FileArea-uRnIJ0Vp.js} +1 -1
  13. package/dist/assets/{Vibe64OutputControls-DTO3Fw3x.js → Vibe64OutputControls-BF5kh2_h.js} +1 -1
  14. package/dist/assets/{Vibe64RepositoryWorkspace-B8xcCOvL.js → Vibe64RepositoryWorkspace-D6uJCype.js} +1 -1
  15. package/dist/assets/{Vibe64SessionFiles-Cb9Mxsyq.js → Vibe64SessionFiles-CxgPB8RR.js} +1 -1
  16. package/dist/assets/{Vibe64SessionSourceEditor-CVQ3NRjh.js → Vibe64SessionSourceEditor-yaVu279S.js} +1 -1
  17. package/dist/assets/{Vibe64UiStoryboardView-BV4JFgcZ.js → Vibe64UiStoryboardView-DhbHkz8K.js} +1 -1
  18. package/dist/assets/{Vibe64UnavailableSessions-DGQAxYE-.js → Vibe64UnavailableSessions-MmPF-Db1.js} +1 -1
  19. package/dist/assets/{_pageId_-CkG15vv4.js → _pageId_-Zif-veil.js} +1 -1
  20. package/dist/assets/{_sessionId_-Bka3RUmK.js → _sessionId_-DOge-7SB.js} +1 -1
  21. package/dist/assets/_slug_-C71iAiR0.js +14 -0
  22. package/dist/assets/_slug_-CF1TPDUv.css +1 -0
  23. package/dist/assets/{access-Xo3unxGO.js → access-DQcblrWN.js} +1 -1
  24. package/dist/assets/{app-B0spNegd.js → app-CzApKPmq.js} +1 -1
  25. package/dist/assets/assistantRouting-CqIiQy21.js +3 -0
  26. package/dist/assets/{changes-DFv4tuoO.js → changes-cmlEyHug.js} +1 -1
  27. package/dist/assets/{client-CVuXqm4b.js → client-13v_yX07.js} +1 -1
  28. package/dist/assets/{client-BjMjS6lX.js → client-5JUUGxRd.js} +2 -2
  29. package/dist/assets/{client-4uCr4dYG.js → client-BJBzomgt.js} +1 -1
  30. package/dist/assets/{client-DR0w56e8.js → client-C8ZjqGdQ.js} +2 -2
  31. package/dist/assets/{client-Dlg1kjjO.js → client-Dl6I6IVb.js} +1 -1
  32. package/dist/assets/{client-CevjVK2b.js → client-Dv4scw6i.js} +1 -1
  33. package/dist/assets/{conversation-OkWbkHjm.js → conversation-CFJRkeTj.js} +3 -3
  34. package/dist/assets/{conversation-DReMq0MF.css → conversation-COcuIkcD.css} +1 -1
  35. package/dist/assets/conversation-CexAK3Qk.js +1 -0
  36. package/dist/assets/{dashboard-CAca9MQn.js → dashboard-Dm_xwwqU.js} +1 -1
  37. package/dist/assets/{english-definitions-BtX8KA5g.js → english-definitions-DwTf_alg.js} +1 -1
  38. package/dist/assets/{env-DrNyBVkB.js → env-B7wB5nBn.js} +1 -1
  39. package/dist/assets/{error-BQ7r64JO.js → error-CtOws2EC.js} +1 -1
  40. package/dist/assets/{error-BqMxhgpB.js → error-HfzrYwkQ.js} +1 -1
  41. package/dist/assets/{errorMessageHelpers-B49LyMJi.js → errorMessageHelpers-G32Hjqfm.js} +1 -1
  42. package/dist/assets/{health-B5yTW5Tt.js → health-DIkOkzPe.js} +1 -1
  43. package/dist/assets/{history-S3anp6xg.js → history-Ch597NiY.js} +1 -1
  44. package/dist/assets/{httpClient-Bwitq9Xf.js → httpClient-C71X5grL.js} +1 -1
  45. package/dist/assets/{i18n-BuXRXGaO.js → i18n-5EHeMSvt.js} +1 -1
  46. package/dist/assets/{i18n-DQPYjuW7.js → i18n-BSfPKqM3.js} +1 -1
  47. package/dist/assets/{i18n-Dm74yE_M.js → i18n-DcNQE3tT.js} +1 -1
  48. package/dist/assets/index-C-6c5Af1.css +1 -0
  49. package/dist/assets/{index-JBqyg0mr.js → index-DcKFCaBZ.js} +4 -4
  50. package/dist/assets/{integrations-C7dj7el_.js → integrations-CoNhnGvq.js} +1 -1
  51. package/dist/assets/{issues-OkV4v4GX.js → issues-Cem4Yt47.js} +1 -1
  52. package/dist/assets/{learning-lW9nBGjT.js → learning-CU2QyHrj.js} +1 -1
  53. package/dist/assets/{pages-shOT9IVe.js → pages-BzA58NoR.js} +1 -1
  54. package/dist/assets/{project-files-D_K1N0JF.js → project-files-BBKjl3wZ.js} +1 -1
  55. package/dist/assets/{publish-Bxe4ZCqe.js → publish-UFjblZA3.js} +1 -1
  56. package/dist/assets/{pull-requests-CQvk0TeH.js → pull-requests-DibGk1GB.js} +1 -1
  57. package/dist/assets/{repository-CI2CqDwF.js → repository-0EKOcyTL.js} +1 -1
  58. package/dist/assets/{settings-DIVrFrs4.js → settings-BjOnPYwD.js} +1 -1
  59. package/dist/assets/{studioGateApi-UqmdV50W.js → studioGateApi-B9EUTtMx.js} +1 -1
  60. package/dist/assets/{studioUrls-k_pQIuPs.js → studioUrls-BR4ZL-TN.js} +1 -1
  61. package/dist/assets/{useArchivedVibe64Sessions-BkWrTOzg.js → useArchivedVibe64Sessions-CXKRFR2f.js} +1 -1
  62. package/dist/assets/useAssistantAttachments-C9kAnWqw.js +2 -0
  63. package/dist/assets/useCommand-yOr3U8KF.js +1 -0
  64. package/dist/assets/{useEndpointResource-DZTjr9gg.js → useEndpointResource-BwGXpV2u.js} +1 -1
  65. package/dist/assets/{useUiFeedback-BU4NyMq8.js → useUiFeedback--0dLsslR.js} +1 -1
  66. package/dist/assets/{useVibe64ConversationLog-BADhWyNY.js → useVibe64ConversationLog-BB5tVtkt.js} +2 -2
  67. package/dist/assets/{useVibe64Learning-CbsI-XHB.js → useVibe64Learning-iAAH83uG.js} +1 -1
  68. package/dist/assets/{useVibe64SessionData-DvFvAJC-.js → useVibe64SessionData-BSYF_TgH.js} +1 -1
  69. package/dist/assets/{useVibe64SessionSelection-BukDTAxb.js → useVibe64SessionSelection-CxZ3uEAf.js} +1 -1
  70. package/dist/assets/{vibe64FileUpload-BDkcaUyk.js → vibe64FileUpload-D_rOa1R8.js} +1 -1
  71. package/dist/assets/{vibe64RepositoryRealtime-DX2DEqIz.js → vibe64RepositoryRealtime-CVGNqwxz.js} +1 -1
  72. package/dist/assets/{vibe64SessionFocus-CzuP3qPT.js → vibe64SessionFocus-DGSVXipO.js} +1 -1
  73. package/dist/index.html +23 -23
  74. package/docs/colleague-usage/ai-tasks.md +2 -1
  75. package/docs/colleague-usage/auto-workflow.md +6 -3
  76. package/docs/colleague-usage/coding-agent-goal-pause.md +34 -12
  77. package/docs/colleague-usage/coding-agent-goals.md +33 -16
  78. package/docs/colleague-usage/coding-agent-questions.md +7 -0
  79. package/docs/colleague-usage/connected-repositories.md +4 -1
  80. package/docs/colleague-usage/github-work.md +36 -3
  81. package/docs/colleague-usage/passes.md +86 -0
  82. package/docs/colleague-usage/ui-pass.md +4 -0
  83. package/docs/colleague-usage/workspace-preparation.md +51 -0
  84. package/node_modules/@jskit-ai/assistant-core/CHANGELOG.md +8 -0
  85. package/node_modules/@jskit-ai/assistant-core/locales/en.json +2 -0
  86. package/node_modules/@jskit-ai/assistant-core/package.json +1 -1
  87. package/node_modules/@jskit-ai/assistant-runtime/CHANGELOG.md +2 -0
  88. package/node_modules/@jskit-ai/assistant-runtime/package.json +1 -1
  89. package/node_modules/@jskit-ai/assistant-voice/package.json +1 -1
  90. package/node_modules/@jskit-ai/connector-google-calendar/package.json +1 -1
  91. package/node_modules/@jskit-ai/connectors-catalog/package.json +1 -1
  92. package/node_modules/@jskit-ai/connectors-core/package.json +1 -1
  93. package/node_modules/@jskit-ai/http-runtime/CHANGELOG.md +1 -0
  94. package/node_modules/@jskit-ai/http-runtime/package.json +1 -1
  95. package/node_modules/@jskit-ai/kernel/CHANGELOG.md +5 -0
  96. package/node_modules/@jskit-ai/kernel/package.json +1 -1
  97. package/node_modules/@jskit-ai/payments-core/package.json +1 -1
  98. package/node_modules/@jskit-ai/realtime/package.json +1 -1
  99. package/node_modules/@jskit-ai/resource-core/package.json +1 -1
  100. package/node_modules/@jskit-ai/uploads-runtime/package.json +1 -1
  101. package/node_modules/@local/vibe64-genesis/bin/vibe64-genesis-host-context +914 -773
  102. package/node_modules/@local/vibe64-genesis/src/server/agentSpecs.js +69 -63
  103. package/node_modules/@local/vibe64-genesis/src/server/index.js +450 -440
  104. package/node_modules/@local/vibe64-genesis/src/server/packaging.js +27 -28
  105. package/node_modules/@local/vibe64-genesis/src/server/promptContext.js +63 -55
  106. package/node_modules/@local/vibe64-runtime/src/server/codexAppServerProcess.js +1044 -901
  107. package/node_modules/@local/vibe64-terminals/src/server/opencodeSessionEnvironmentPlugin.js +560 -420
  108. package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +453 -450
  109. package/package.json +15 -15
  110. package/server.bundle.mjs +42018 -41710
  111. package/dist/assets/_slug_-7Oo7pGKn.js +0 -14
  112. package/dist/assets/_slug_-BaxjtsgP.css +0 -1
  113. package/dist/assets/assistantRouting-B9cub38g.js +0 -3
  114. package/dist/assets/conversation-D7T_us2O.js +0 -1
  115. package/dist/assets/index-DSyb-mRJ.css +0 -1
  116. package/dist/assets/useAssistantAttachments-DqlNFiha.js +0 -2
  117. package/dist/assets/useCommand-D-MIMmhp.js +0 -1
@@ -1,28 +1,27 @@
1
1
  import { createRequire as __vibe64CreateRequire } from 'node:module';const require=__vibe64CreateRequire(import.meta.url);
2
- import{createHash as U}from"node:crypto";import $ from"node:path";var h=class extends Error{constructor(t,n,s=void 0){super(
3
- n),this.name="Vibe64StackOperationError",this.code=t,s!==void 0&&(this.details=s)}},L=Object.freeze({VIBE64_WORKSPACE_SETUP_INVALID:"\
2
+ import{createHash as U}from"node:crypto";import A from"node:path";var h=class extends Error{constructor(t,n,s=void 0){super(
3
+ n),this.name="Vibe64StackOperationError",this.code=t,s!==void 0&&(this.details=s)}},w=Object.freeze({VIBE64_WORKSPACE_SETUP_INVALID:"\
4
4
  workspace-setup",VIBE64_OUTPUTS_INVALID:"outputs",VIBE64_DEPLOYMENT_INVALID:"deployment",VIBE64_PACKAGING_INVALID:"packa\
5
5
  ging",VIBE64_RESOURCE_ESTIMATES_INVALID:"resource-estimates",VIBE64_CONNECTED_DEVELOPMENT_INVALID:"connected-development",
6
6
  VIBE64_PROJECT_SERVICES_INVALID:"project-services",VIBE64_INTEGRATION_SETUP_INVALID:"integration-setup",VIBE64_ARCHITECTURE_INSPECTION_INVALID:"\
7
7
  architecture-inspection",VIBE64_ARCHITECTURE_LAYOUT_INVALID:"architecture-layout"}),K=/ Exact grammar: vibe64-helper spec [a-z-]+\.$/u;
8
- function H(e,t){let n=L[e],s=String(t).replace(K,"");return n?`${s} Exact grammar: vibe64-helper spec ${n}.`:s}function w(e,t,n){
8
+ function H(e,t){let n=w[e],s=String(t).replace(K,"");return n?`${s} Exact grammar: vibe64-helper spec ${n}.`:s}function L(e,t,n){
9
9
  return`Unknown ${e}: ${t}. Use one of: ${n.join("; ")}.`}function d(e,t,n,s,i={}){throw new h(e,H(e,n),{path:t,...s===void 0?
10
- {}:{line:s},...i})}function I(e,t,n,s,i){return(typeof e!="string"||!e.trim()||/[\0\r\n]/u.test(e))&&d(t,n,`${s} must be\
10
+ {}:{line:s},...i})}function g(e,t,n,s,i){return(typeof e!="string"||!e.trim()||/[\0\r\n]/u.test(e))&&d(t,n,`${s} must be\
11
11
  one non-empty line.`,i),e.trim()}function W(e){let t=[...String(e||"").matchAll(/`([^`\r\n]+)`/gu)];return t.length===0||
12
12
  t.map(n=>n[0]).join(" ")!==e?null:t.map(n=>n[1])}function E(e,t,n,s,i,r={}){let{count:o,maximum:m=64}=r,c=W(e);if(!c||c.
13
13
  length>m||o!==void 0&&c.length!==o||c.some(u=>u.length>4096||/[\0\r\n]/u.test(u))){let u=o===void 0?"separate non-empty":
14
14
  `exactly ${o}`;d(t,n,`${s} must contain ${u} backticked ${o===1?"value":"values"}.`,i)}return c}function q(e=""){return typeof e==
15
- "string"&&!!e&&!/[\s\0{}]/u.test(e)&&!$.isAbsolute(e)&&!e.split(/[\\/]/u).includes("..")}function C(e,t,n,s,i){let r=E(e,
15
+ "string"&&!!e&&!/[\s\0{}]/u.test(e)&&!A.isAbsolute(e)&&!e.split(/[\\/]/u).includes("..")}function C(e,t,n,s,i){let r=E(e,
16
16
  t,n,s,i);return q(r[0])||d(t,n,`${s} must begin with a safe executable.`,i),r}function Y(e=""){return typeof e=="string"&&
17
- !!e&&!/[\0\r\n\\]/u.test(e)&&!$.posix.isAbsolute(e)&&$.posix.normalize(e)===e&&!e.split("/").some(t=>!t||t==="..")}function _(e,t,n,s,i,r={}){
18
- let{allowRoot:o=!0}=r;return(!Y(e)||!o&&e===".")&&d(t,n,`${s} must be a canonical project-relative path.`,i),e}function T(e,t,n,s,i){
19
- let r=E(e,t,n,s,i);return r.some(o=>!/^[a-z0-9]+(?:-[a-z0-9]+)*$/u.test(o))&&d(t,n,`${s} must use lowercase technology i\
20
- ds separated into backticked values.`,i),new Set(r).size!==r.length&&d(t,n,`${s} contains a duplicate technology id.`,i),
21
- r}function S(e){return Array.isArray(e)?e.map(S):e&&typeof e=="object"?Object.fromEntries(Object.keys(e).sort().map(t=>[t,
17
+ !!e&&!/[\0\r\n\\]/u.test(e)&&!A.posix.isAbsolute(e)&&A.posix.normalize(e)===e&&!e.split("/").some(t=>!t||t==="..")}function _(e,t,n,s,i,r={}){
18
+ let{allowRoot:o=!0}=r;return(!Y(e)||!o&&e===".")&&d(t,n,`${s} must be a canonical project-relative path.`,i),e}function T(e,t,n,s,i){let r=E(e,t,n,s,i);return r.some(o=>!/^[a-z0-9]+(?:-[a-z0-9]+)*$/u.test(o))&&d(t,n,`${s} must use \
19
+ lowercase technology ids separated into backticked values.`,i),new Set(r).size!==r.length&&d(t,n,`${s} contains a duplic\
20
+ ate technology id.`,i),r}function S(e){return Array.isArray(e)?e.map(S):e&&typeof e=="object"?Object.fromEntries(Object.keys(e).sort().map(t=>[t,
22
21
  S(e[t])])):e}function y(e){let t=`${JSON.stringify(S(e),null,2)}
23
22
  `;return`sha256:${U("sha256").update(t).digest("hex")}`}function D(e={},t={},n="operation"){if(e.stackHash!==t.stackHash)
24
- throw new h("VIBE64_STACK_CHANGED",`The Stack changed while Vibe64 inspected its ${n}. Retry the operation.`)}function V(e=[]){let t=e.map(n=>n.trim()).filter(Boolean);return t.length===1&&t[0]==="- Nothing."}var ge=Object.freeze(
25
- {SPEC_BY_ERROR_CODE:L});var P="vibe64.packaging.v1",$e="Packaging",Se=Object.freeze(["genesis",".genesis",".agents",".claude",".codex",".opencod\
23
+ throw new h("VIBE64_STACK_CHANGED",`The Stack changed while Vibe64 inspected its ${n}. Retry the operation.`)}function V(e=[]){let t=e.map(n=>n.trim()).filter(Boolean);return t.length===1&&t[0]==="- Nothing."}var Ie=Object.freeze(
24
+ {SPEC_BY_ERROR_CODE:w});var P="vibe64.packaging.v1",Ae="Packaging",Se=Object.freeze(["genesis",".genesis",".agents",".claude",".codex",".opencod\
26
25
  e"]),p="VIBE64_PACKAGING_INVALID",X=/^[a-z0-9]+(?:-[a-z0-9]+)*$/u,Z=/^[A-Z_][A-Z0-9_]*$/u,J=/^[a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)+$/u,
27
26
  Q=/^[a-z][a-z0-9+.-]*$/u,ee=/^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/u,ne=/\{[^{}\s]*\}/u,
28
27
  te=/^### Package `([^`\r\n]+)`:[ \t]+(.+)$/u,se=/^- (Prepare|Build) `([^`\r\n]+)`:[ \t]+(.+)$/u,ie=/^- Environment `([^`\r\n]+)`:[ \t]+(.+)$/u,
@@ -33,50 +32,50 @@ prepare","build","environment","output","versionFrom"],required:["build","output
33
32
  ect.toml","external"]}),"web-bundle":Object.freeze({entries:["workdir","runtimes","prepare","build","environment","outpu\
34
33
  t"],required:["build","output"],versionSources:[]}),capacitor:Object.freeze({entries:["workdir","content","platforms","a\
35
34
  pplicationId","name","icon","versionFrom","deepLinkSchemeFrom","appLinkDomainsFrom","permission"],required:["content","p\
36
- latforms","applicationId","name","icon","versionFrom"],versionSources:["package.json","external"]})}),A=Object.freeze(Object.
35
+ latforms","applicationId","name","icon","versionFrom"],versionSources:["package.json","external"]})}),$=Object.freeze(Object.
37
36
  keys(G)),N=Object.freeze(["android"]),b=Object.freeze(["package.json","pyproject.toml","external"]),f=e=>e.map(t=>`\`${t}\
38
- \``).join(" | "),k=Object.freeze([["- Packer: ","packer",`- Packer: ${f(A)}`],["- Workdir: ","workdir","- Workdir: `path\
37
+ \``).join(" | "),k=Object.freeze([["- Packer: ","packer",`- Packer: ${f($)}`],["- Workdir: ","workdir","- Workdir: `path\
39
38
  `"],["- Runtimes: ","runtimes","- Runtimes: `runtime`..."],["- Output: ","output","- Output: `path`"],["- Version from: ",
40
39
  "versionFrom",`- Version from: ${f(b)}`],["- Platforms: ","platforms",`- Platforms: ${f(N)}...`],["- Id: ","applicationI\
41
40
  d","- Id: `reverse.dns.id`"],["- Name: ","name","- Name: `Display name`"],["- Icon: ","icon","- Icon: `path/to/icon-1024\
42
41
  .png`"],["- Deep link scheme from: ","deepLinkSchemeFrom","- Deep link scheme from: `ENV_NAME`"],["- App link domains fr\
43
42
  om: ","appLinkDomainsFrom","- App link domains from: `ENV_NAME`"]]),j="### Package `id`: Label",ae=Object.freeze([k[0][2],
44
43
  k[1][2],k[2][2],"- Prepare|Build `label`: `command` `argument`...","- Environment `NAME`: `value`",k[3][2],k[4][2],"- Co\
45
- ntent: package `web-bundle-id`",...k.slice(5).map(([,,e])=>e),"- Permission `id`: User-facing reason."]),g=Object.freeze(
44
+ ntent: package `web-bundle-id`",...k.slice(5).map(([,,e])=>e),"- Permission `id`: User-facing reason."]),I=Object.freeze(
46
45
  {packer:"Packer",workdir:"Workdir",runtimes:"Runtimes",prepare:"Prepare",build:"Build",environment:"Environment",output:"\
47
46
  Output",versionFrom:"Version from",content:"Content",platforms:"Platforms",applicationId:"Id",name:"Name",icon:"Icon",deepLinkSchemeFrom:"\
48
47
  Deep link scheme from",appLinkDomainsFrom:"App link domains from",permission:"Permission"});function a(e,t,n){d(p,e,t,n)}
49
- function O(e,t,n,s){let i=I(e,p,t,n,s);return X.test(i)||a(t,`${n} must use lowercase letters, digits, and single hyphen\
48
+ function O(e,t,n,s){let i=g(e,p,t,n,s);return X.test(i)||a(t,`${n} must use lowercase letters, digits, and single hyphen\
50
49
  s.`,s),i}function ue(e,t,n,s,i){return E(e.slice(t.length),p,n,s,i,{count:1})[0]}function v(e,t,n,s){return e.some(i=>ne.
51
50
  test(i))&&a(t,`${n} takes no placeholders in ${P}.`,s),e}function B(e,t,n,s){return Z.test(e)||a(t,`${n} must be an uppe\
52
- rcase environment variable name.`,s),e}function M(e,t,n,s,i){e.seen.has(t)&&a(s,`Package ${e.id} has a duplicate ${g[t]}\
53
- entry.`,i),e.seen.add(t),e.fields[t]=n,e.lines[t]=i}function me(e,t,n,s,i){let r=`Packaging ${g[e]}`;if(e==="runtimes")
51
+ rcase environment variable name.`,s),e}function M(e,t,n,s,i){e.seen.has(t)&&a(s,`Package ${e.id} has a duplicate ${I[t]}\
52
+ entry.`,i),e.seen.add(t),e.fields[t]=n,e.lines[t]=i}function me(e,t,n,s,i){let r=`Packaging ${I[e]}`;if(e==="runtimes")
54
53
  return T(t.slice(n.length),p,s,r,i);if(e==="platforms"){let m=E(t.slice(n.length),p,s,r,i);return m.some(c=>!N.includes(
55
54
  c))&&a(s,`${r} must be ${f(N)}.`,i),new Set(m).size!==m.length&&a(s,`${r} contains a duplicate platform.`,i),m}let o=v([
56
- ue(t,n,s,r,i)],s,r,i)[0];if(e==="packer")return A.includes(o)||a(s,`Unknown packer \`${o}\`. ${P} packers are ${f(A)}.`,
55
+ ue(t,n,s,r,i)],s,r,i)[0];if(e==="packer")return $.includes(o)||a(s,`Unknown packer \`${o}\`. ${P} packers are ${f($)}.`,
57
56
  i),o;if(["workdir","output"].includes(e))return _(o,p,s,r,i,{allowRoot:e==="workdir"});if(e==="icon"){let m=_(o,p,s,r,i,
58
57
  {allowRoot:!1});return m.toLowerCase().endsWith(".png")||a(s,`${r} must be a 1024x1024 PNG file.`,i),m}return e==="versi\
59
58
  onFrom"?(b.includes(o)||a(s,`${r} must be ${f(b)}.`,i),o):e==="applicationId"?((!J.test(o)||o.length>150)&&a(s,`${r} mus\
60
59
  t be a reverse-DNS id such as \`com.example.notes\` (letters, digits and underscores; each part starts with a letter).`,
61
60
  i),o):e==="name"?((o.trim()!==o||o.length>F)&&a(s,`${r} must be at most ${F} characters without surrounding spaces.`,i),
62
- o):B(o,s,r,i)}function pe(e,t,n){return{id:O(e[1],t,"Package id",n),label:I(e[2],p,t,"Package label",n),fields:{},lines:{},
61
+ o):B(o,s,r,i)}function pe(e,t,n){return{id:O(e[1],t,"Package id",n),label:g(e[2],p,t,"Package label",n),fields:{},lines:{},
63
62
  prepare:[],build:[],environment:[],permissions:[],seen:new Set,line:n}}function le(e,t,n,s){/^- Plugins?\b/u.test(t)&&a(
64
63
  n,"Packaging takes no Plugin list: the generated shell installs the native plugins of the Content package at its lockfil\
65
64
  e versions.",s);for(let[c,u]of k)if(t.startsWith(c)){M(e,u,me(u,t,c,n,s),n,s);return}let i=t.match(re);if(i){M(e,"conten\
66
65
  t",O(i[1],n,"Packaging Content package",s),n,s);return}let r=t.match(se);if(r){let c=r[1].toLowerCase(),u=`Packaging ${r[1]}\
67
- command`;e[c].push({label:I(r[2],p,n,`Packaging ${r[1]} label`,s),argv:v(C(r[3],p,n,u,s),n,u,s)}),e.lines[c]??=s;return}
66
+ command`;e[c].push({label:g(r[2],p,n,`Packaging ${r[1]} label`,s),argv:v(C(r[3],p,n,u,s),n,u,s)}),e.lines[c]??=s;return}
68
67
  let o=t.match(ie);if(o){let c=B(o[1],n,"Packaging Environment name",s);ce.test(c)&&a(n,`Packaging Environment ${c} looks\
69
68
  like a credential. Packaging holds only non-secret build facts.`,s),e.environment.some(l=>l.name===c)&&a(n,`Package ${e.
70
69
  id} has a duplicate Environment ${c}.`,s);let u=v(E(o[2],p,n,"Packaging Environment value",s,{count:1}),n,"Packaging Env\
71
70
  ironment value",s)[0];e.environment.push({name:c,value:u}),e.lines.environment??=s;return}let m=t.match(oe);if(m){let c=O(
72
- m[1],n,"Packaging Permission id",s),u=I(m[2],p,n,"Packaging Permission reason",s);(u.includes("`")||u.length>z)&&a(n,`Pa\
71
+ m[1],n,"Packaging Permission id",s),u=g(m[2],p,n,"Packaging Permission reason",s);(u.includes("`")||u.length>z)&&a(n,`Pa\
73
72
  ckaging Permission reason is plain user-facing text of at most ${z} characters.`,s),e.permissions.some(l=>l.id===c)&&a(n,
74
73
  `Package ${e.id} has a duplicate Permission ${c}.`,s),e.permissions.push({id:c,reason:u}),e.lines.permission??=s;return}
75
- a(n,w("Packaging entry",t,ae),s)}function de(e,t){let n=e.fields.packer;n||a(t,`Package ${e.id} needs a Packer entry: ${f(
76
- A)}.`,e.line);let s=G[n],i=new Set([...Object.keys(e.fields).filter(o=>o!=="packer"),...["prepare","build","environment"].
74
+ a(n,L("Packaging entry",t,ae),s)}function de(e,t){let n=e.fields.packer;n||a(t,`Package ${e.id} needs a Packer entry: ${f(
75
+ $)}.`,e.line);let s=G[n],i=new Set([...Object.keys(e.fields).filter(o=>o!=="packer"),...["prepare","build","environment"].
77
76
  filter(o=>e[o].length),...e.permissions.length?["permission"]:[]]);for(let o of i)s.entries.includes(o)||a(t,`The ${n} p\
78
- acker takes no ${g[o]} entry.`,e.lines[o]);for(let o of s.required)i.has(o)||a(t,`Package ${e.id} (${n}) needs ${/^[AEIOU]/u.
79
- test(g[o])?"an":"a"} ${g[o]} entry.`,e.line);e.fields.versionFrom&&!s.versionSources.includes(e.fields.versionFrom)&&a(t,
77
+ acker takes no ${I[o]} entry.`,e.lines[o]);for(let o of s.required)i.has(o)||a(t,`Package ${e.id} (${n}) needs ${/^[AEIOU]/u.
78
+ test(I[o])?"an":"a"} ${I[o]} entry.`,e.line);e.fields.versionFrom&&!s.versionSources.includes(e.fields.versionFrom)&&a(t,
80
79
  `The ${n} packer reads its version from ${f(s.versionSources)}.`,e.lines.versionFrom);let r={id:e.id,label:e.label,packer:n,
81
80
  workdir:e.fields.workdir||".",runtimeRequirements:e.fields.runtimes||[],prepare:e.prepare,build:e.build,environment:e.environment,
82
81
  output:e.fields.output||null,versionFrom:e.fields.versionFrom||null};return n!=="capacitor"?r:{...r,content:e.fields.content,
@@ -101,6 +100,6 @@ Boolean);o.some(m=>!ee.test(m))&&a(s,`${i.appLinkDomainsFrom} must list lowercas
101
100
  aces.`),r.appLinkDomains=[...new Set(o)]}return r})}}function _e({environment:e={},section:t={}}={}){D(t,e,"Packaging se\
102
101
  ction");let n=[...t.diagnostics||[]],s={version:1,packages:[]};t.status==="ready"&&(s=ke(fe(t.lines),e.environmentDefaults));
103
102
  let i=n.length>0?"blocked":s.packages.length>0?"ready":"unconfigured";return{contract:P,status:i,stackHash:t.stackHash,packagingHash:i===
104
- "ready"?y(s):"",source:t.source||null,version:s.version,packages:s.packages,diagnostics:n}}export{ae as PACKAGING_ENTRY_FORMS,j as PACKAGING_HEADING_FORM,P as VIBE64_PACKAGING_CONTRACT,A as VIBE64_PACKAGING_PACKERS,
105
- $e as VIBE64_PACKAGING_SECTION,Se as VIBE64_PACKAGING_SOURCE_EXCLUSIONS,fe as parseVibe64PackagingLines,ke as resolveVibe64PackagingEnvironment,
103
+ "ready"?y(s):"",source:t.source||null,version:s.version,packages:s.packages,diagnostics:n}}export{ae as PACKAGING_ENTRY_FORMS,j as PACKAGING_HEADING_FORM,P as VIBE64_PACKAGING_CONTRACT,$ as VIBE64_PACKAGING_PACKERS,
104
+ Ae as VIBE64_PACKAGING_SECTION,Se as VIBE64_PACKAGING_SOURCE_EXCLUSIONS,fe as parseVibe64PackagingLines,ke as resolveVibe64PackagingEnvironment,
106
105
  _e as vibe64PackagingInspection};
@@ -147,61 +147,69 @@ tus `repository.updateFirst`, then read-only `git log`/`git show` of the saved c
147
147
  te: never redo it here. While Update failed or is pending, Update owns the session: do not repair setup or workspace pre\
148
148
  paration first. Local work the saved version supersedes, such as a stale or partial dependency bump it completes, is res\
149
149
  olved by taking the saved version: say so plainly in one sentence and never ask the person to choose, because Vibe64's c\
150
- heckpoint keeps the original. Ask only about genuine product decisions.","Connected repositories are this session's own \
151
- copies at `../connected/<name>`, listed in the Stack's Sources file and in `vibe64-helper session status --json` under `\
152
- repository.connected`: edit them like this session's source; Save and Update cover them, so never commit, push, fetch or\
153
- rebase them yourself.","Vibe64-owned contracts (Stack sections such as Workspace setup and Outputs, the Preview identit\
154
- y protocol and integration setup) have exact specs: list them with `vibe64-helper spec` and read `vibe64-helper spec <na\
155
- me>` before writing or changing one; never reconstruct them from Vibe64 source or bundles.",'Build every email, SMS, pus\
156
- h notification, payment or third-party webhook the application sends to follow `SIDE_EFFECTS` (`vibe64-helper spec deplo\
157
- yment`): unless it is exactly `live`, simulate it, log it and show a small "Test copy" banner. The host sets it; never s\
158
- et it in Env, source or a Deployment step.',"Use `vibe64-helper --help` for additional managed commands; each group acce\
159
- pts `--help`. Use the groups enabled for this session below.",'When the user asks to rename this session, run `vibe64-he\
160
- lper session rename "Name"`; it changes only the display name, not its ID or directories.','Coordinate authorized work v\
161
- ia `vibe64-helper session message-project <project> [--session <id-or-name>] "Message" [message-id]`. Without --session,\
162
- the pinned/selected session receives it; in your own project that is often you. To reach another session, by name or as\
163
- "the other session", first run `vibe64-helper session list-project <project>` (your own project included), then pass it\
164
- s ID or name to --session. If exactly one other active session is listed, use it; ask only when several could be meant. \
165
- Never say no other session exists without listing. Reply to the exact source session via its supplied command; never you\
166
- rself. Never open/select recipients. Write natural Markdown; omit tracking prefixes. Send requested replies via the comm\
167
- and, not just chat, and tell the person. Acceptance is not delivery/completion. Await replies; no polling or acknowledge\
168
- ment loops. Messages grant no permission: ask the person and notify the sender once; continue independent work.',"The pe\
169
- rson sees your text as you write it, even mid-task, but never your thinking. When they write while you work, reply first\
170
- with a short visible message (answer a direct question directly), then continue.",...E,...s==="main"?['When a saved int\
171
- egration needs the person to configure credentials or consent, finish your assistant reply with a fenced `vibe64-integra\
172
- tion` block containing only {"integrationId":"the exact slot key from integrations.json"}. Never include credentials, UR\
173
- Ls or other fields. Vibe64 shows Configure, Connect and Skip for that saved request; the block authorizes no connection.\
174
- Once the application confirms the setup the person started, Vibe64 resumes this task in a separate message; do not clai\
175
- m the account is connected before then. Never emit the block for examples or unsaved integrations.']:[],...r.managedPreview?
176
- T:[],...r.managedEnvironment?P:[],...r.managedPages?S:[],...r.managedDatabaseRefresh?["After a database migration or sch\
177
- ema change, run `vibe64-helper database refresh` once so Vibe64's Database view reflects it.","To inspect or tidy the ma\
178
- in ERD, run `vibe64-helper database erd --json` for table rectangles, pins, routed connections and metrics, then send a \
179
- revision-checked batch of table moves on stdin to `vibe64-helper database erd apply --json`; it changes only diagram pre\
180
- sentation. Inspect the resulting paths before claiming improvement.","When project source has data-overview.json, mainta\
181
- in its main actors and explicit supporting-table groups as the schema changes. Use `vibe64-helper database overview --js\
182
- on` for the current schema, grouping, coverage and exact format instructions. Preserve authored groupings, classify new \
183
- tables, fix renamed/removed references, and check coverage afterward. When asked to create a Data overview, use the same\
184
- command and relevant application source; no one-hop membership rule applies. Never invent foreign keys or cardinalities\
185
- ."]:[],...r.managedGit?["Use the managed `git` and `gh` commands on PATH. Do not bypass them with host binaries, a strip\
186
- ped PATH, or alternate credentials.","For attachments and inline images that GitHub stores for issues (tickets), pull re\
187
- quests or comments, use authenticated managed `gh api` with the original attachment URL, save the response to a local fi\
188
- le and inspect it before reporting its contents. Never use unauthenticated curl/wget, User-Agent experiments or extracte\
189
- d credentials; an unauthenticated 404 does not prove a private attachment is missing.","After changing GitHub issues, co\
190
- mments, labels or pull requests, run `vibe64-helper github refresh` once so Vibe64's Issues/PR view reflects it.","When \
191
- linking an issue in this project's repository, run `vibe64-helper github issue-link <number>` and use its returned Vibe6\
192
- 4 path exactly, including the /app prefix, as the primary Markdown link destination; it navigates in-app. You may includ\
193
- e the GitHub URL as a secondary link. Never guess the project slug or host; issues in other repositories keep their GitH\
194
- ub links.","Report authentication or transport failures directly; do not inspect credentials or invent another login pat\
195
- h.","When a managed Git/GitHub command fails, tell the user which requested action failed, which earlier work is confirm\
196
- ed complete, what remains undone or unconfirmed, and the next safe action. Retain the reported failure stage, execution \
197
- budget and execution reference when provided; do not expose credentials or dump raw output unnecessarily.","A timeout or\
198
- transport failure does not establish invalid authentication, exhausted AI quota, a GitHub outage or a suspension proble\
199
- m. Separate recorded facts from hypotheses; say the cause is unknown when it is unproven. Recommend reconnection only wh\
200
- en the reported error explicitly calls for it.","If the diagnostic says commandSubmitted=false, the requested Git/GitHub\
201
- action was not attempted. After an execution timeout, lost response or unreadable response, its effects are unconfirmed\
202
- : use a read-only check of the affected Git/GitHub state before repeating any write. Never claim that a comment was post\
203
- ed or not posted, or that a push succeeded or failed, from those errors alone. If verification is unavailable, report th\
204
- e outcome as unknown and stop; do not repeat the write or claim a safe rollback."]:[]].join(`
150
+ heckpoint keeps the original. Ask only about genuine product decisions.","When `repository.updateFirst` says this sessio\
151
+ n is behind, update it with `vibe64-helper session update` before building on the old code, at a point where you can dea\
152
+ l with a conflict. Update can take several minutes, so give the command a long time limit (up to 30 minutes); if your to\
153
+ ol stops it early, Update carries on: read `vibe64-helper session status --json` until `repository.updateFirst.reason` i\
154
+ s no longer `running`. Update may stop at files that clash with the saved version. If it does, stop your other work and \
155
+ resolve them first, as it explains, or, if you can't now, leave them (Update leaves a repository with clashing files unc\
156
+ hanged) and tell the person. Then re-read the files it lists, and run `vibe64-helper preview restart --wait` when it say\
157
+ s Preview still runs the old code. Update never saves: Save still needs the person, because it publishes the work.","Con\
158
+ nected repositories are this session's own copies at `../connected/<name>`, listed in the Stack's Sources file and in `v\
159
+ ibe64-helper session status --json` under `repository.connected`: edit them like this session's source; Save and Update \
160
+ cover them, so never commit, push, fetch or rebase them yourself.","Vibe64-owned contracts (Stack sections such as Works\
161
+ pace setup and Outputs, the Preview identity protocol and integration setup) have exact specs: list them with `vibe64-he\
162
+ lper spec` and read `vibe64-helper spec <name>` before writing or changing one; never reconstruct them from Vibe64 sourc\
163
+ e or bundles.",'Build every email, SMS, push notification, payment or third-party webhook the application sends to follo\
164
+ w `SIDE_EFFECTS` (`vibe64-helper spec deployment`): unless it is exactly `live`, simulate it, log it and show a small "T\
165
+ est copy" banner. The host sets it; never set it in Env, source or a Deployment step.',"Use `vibe64-helper --help` for a\
166
+ dditional managed commands; each group accepts `--help`. Use the groups enabled for this session below.",'When the user \
167
+ asks to rename this session, run `vibe64-helper session rename "Name"`; it changes only the display name, not its ID or \
168
+ directories.','Coordinate authorized work via `vibe64-helper session message-project <project> [--session <id-or-name>] \
169
+ "Message" [message-id]`. Without --session, the pinned/selected session receives it; in your own project that is often y\
170
+ ou. To reach another session, by name or as "the other session", first run `vibe64-helper session list-project <project>\
171
+ ` (your own project included), then pass its ID or name to --session. If exactly one other active session is listed, use\
172
+ it; ask only when several could be meant. Never say no other session exists without listing. Reply to the exact source \
173
+ session via its supplied command; never yourself. Never open/select recipients. Write natural Markdown; omit tracking pr\
174
+ efixes. Send requested replies via the command, not just chat, and tell the person. Acceptance is not delivery/completio\
175
+ n. Await replies; no polling or acknowledgement loops. Messages grant no permission: ask the person and notify the sende\
176
+ r once; continue independent work.',"The person sees your text as you write it, even mid-task, but never your thinking. \
177
+ When they write while you work, reply first with a short visible message (answer a direct question directly), then conti\
178
+ nue.",...E,...s==="main"?['When a saved integration needs the person to configure credentials or consent, finish your as\
179
+ sistant reply with a fenced `vibe64-integration` block containing only {"integrationId":"the exact slot key from integra\
180
+ tions.json"}. Never include credentials, URLs or other fields. Vibe64 shows Configure, Connect and Skip for that saved r\
181
+ equest; the block authorizes no connection. Once the application confirms the setup the person started, Vibe64 resumes t\
182
+ his task in a separate message; do not claim the account is connected before then. Never emit the block for examples or \
183
+ unsaved integrations.']:[],...r.managedPreview?T:[],...r.managedEnvironment?P:[],...r.managedPages?S:[],...r.managedDatabaseRefresh?
184
+ ["After a database migration or schema change, run `vibe64-helper database refresh` once so Vibe64's Database view refle\
185
+ cts it.","To inspect or tidy the main ERD, run `vibe64-helper database erd --json` for table rectangles, pins, routed co\
186
+ nnections and metrics, then send a revision-checked batch of table moves on stdin to `vibe64-helper database erd apply -\
187
+ -json`; it changes only diagram presentation. Inspect the resulting paths before claiming improvement.","When project so\
188
+ urce has data-overview.json, maintain its main actors and explicit supporting-table groups as the schema changes. Use `v\
189
+ ibe64-helper database overview --json` for the current schema, grouping, coverage and exact format instructions. Preserv\
190
+ e authored groupings, classify new tables, fix renamed/removed references, and check coverage afterward. When asked to c\
191
+ reate a Data overview, use the same command and relevant application source; no one-hop membership rule applies. Never i\
192
+ nvent foreign keys or cardinalities."]:[],...r.managedGit?["Use the managed `git` and `gh` commands on PATH. Do not bypa\
193
+ ss them with host binaries, a stripped PATH, or alternate credentials.","For attachments and inline images that GitHub s\
194
+ tores for issues (tickets), pull requests or comments, use authenticated managed `gh api` with the original attachment U\
195
+ RL, save the response to a local file and inspect it before reporting its contents. Never use unauthenticated curl/wget,\
196
+ User-Agent experiments or extracted credentials; an unauthenticated 404 does not prove a private attachment is missing.",
197
+ "After changing GitHub issues, comments, labels or pull requests, run `vibe64-helper github refresh` once so Vibe64's Is\
198
+ sues/PR view reflects it.","When linking an issue in this project's repository, run `vibe64-helper github issue-link <nu\
199
+ mber>` and use its returned Vibe64 path exactly, including the /app prefix, as the primary Markdown link destination; it\
200
+ navigates in-app. You may include the GitHub URL as a secondary link. Never guess the project slug or host; issues in o\
201
+ ther repositories keep their GitHub links.","Report authentication or transport failures directly; do not inspect creden\
202
+ tials or invent another login path.","When a managed Git/GitHub command fails, tell the user which requested action fail\
203
+ ed, which earlier work is confirmed complete, what remains undone or unconfirmed, and the next safe action. Retain the r\
204
+ eported failure stage, execution budget and execution reference when provided; do not expose credentials or dump raw out\
205
+ put unnecessarily.","A timeout or transport failure does not establish invalid authentication, exhausted AI quota, a Git\
206
+ Hub outage or a suspension problem. Separate recorded facts from hypotheses; say the cause is unknown when it is unprove\
207
+ n. Recommend reconnection only when the reported error explicitly calls for it.","If the diagnostic says commandSubmitte\
208
+ d=false, the requested Git/GitHub action was not attempted. After an execution timeout, lost response or unreadable resp\
209
+ onse, its effects are unconfirmed: use a read-only check of the affected Git/GitHub state before repeating any write. Ne\
210
+ ver claim that a comment was posted or not posted, or that a push succeeded or failed, from those errors alone. If verif\
211
+ ication is unavailable, report the outcome as unknown and stop; do not repeat the write or claim a safe rollback."]:[]].
212
+ join(`
205
213
  `)}function D(e={}){let s=p(e,"Vibe64 driver input"),r=f(s);return r.scope==="session"?V(r):r.stableContext}async function C(e={},{
206
214
  readRegistry:s=k,workdir:r=""}={}){let t=p(e,"Vibe64 host resolver request");if(i(t,["data","providerSessionId","parentS\
207
215
  essionIds","scope"],"Vibe64 host resolver request"),!["session","turn"].includes(t.scope))throw new TypeError("The Vibe6\