vibe64 0.1.69 → 0.1.71

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 (433) hide show
  1. package/bin/run.js +1134 -1131
  2. package/bin/server.js +50 -50
  3. package/bin/upgrade-state.js +2544 -2543
  4. package/dist/assets/GithubBrowserTabs-D8twaXtF.js +1 -0
  5. package/dist/assets/GithubBrowserTabs-D8twaXtF.js.br +0 -0
  6. package/dist/assets/GithubBrowserTabs-D8twaXtF.js.gz +0 -0
  7. package/dist/assets/LocalDatabaseServer-BQM5W9GA.css.br +0 -0
  8. package/dist/assets/LocalDatabaseServer-BQM5W9GA.css.gz +0 -0
  9. package/dist/assets/{LocalDatabaseServer-DYh3UF9q.js → LocalDatabaseServer-BjJgeNye.js} +1 -1
  10. package/dist/assets/LocalDatabaseServer-BjJgeNye.js.br +0 -0
  11. package/dist/assets/LocalDatabaseServer-BjJgeNye.js.gz +0 -0
  12. package/dist/assets/Vibe64DashboardPageHeader-2JX76yfq.css.br +0 -0
  13. package/dist/assets/Vibe64DashboardPageHeader-2JX76yfq.css.gz +0 -0
  14. package/dist/assets/Vibe64DashboardPageHeader-Bd4WMiDV.js +1 -0
  15. package/dist/assets/Vibe64DashboardPageHeader-Bd4WMiDV.js.br +0 -0
  16. package/dist/assets/Vibe64DashboardPageHeader-Bd4WMiDV.js.gz +0 -0
  17. package/dist/assets/{Vibe64DatabaseWorkspace-8i-RDc9y.js → Vibe64DatabaseWorkspace-CprnbQkL.js} +1 -1
  18. package/dist/assets/Vibe64DatabaseWorkspace-CprnbQkL.js.br +0 -0
  19. package/dist/assets/Vibe64DatabaseWorkspace-CprnbQkL.js.gz +0 -0
  20. package/dist/assets/Vibe64DatabaseWorkspace-De4sbXAN.css.br +0 -0
  21. package/dist/assets/Vibe64DatabaseWorkspace-De4sbXAN.css.gz +0 -0
  22. package/dist/assets/Vibe64FileArea-CcKMG84N.js +1 -0
  23. package/dist/assets/Vibe64FileArea-CcKMG84N.js.br +0 -0
  24. package/dist/assets/Vibe64FileArea-CcKMG84N.js.gz +0 -0
  25. package/dist/assets/Vibe64FileArea-ZEzsvLt2.css.br +0 -0
  26. package/dist/assets/Vibe64FileArea-ZEzsvLt2.css.gz +0 -0
  27. package/dist/assets/Vibe64OutputControls-D0l0i_kq.js +8 -0
  28. package/dist/assets/Vibe64OutputControls-D0l0i_kq.js.br +0 -0
  29. package/dist/assets/Vibe64OutputControls-D0l0i_kq.js.gz +0 -0
  30. package/dist/assets/Vibe64OutputControls-aQCEvUL2.css.br +0 -0
  31. package/dist/assets/Vibe64OutputControls-aQCEvUL2.css.gz +0 -0
  32. package/dist/assets/Vibe64RepositoryWorkspace-BWu6OV32.css.br +0 -0
  33. package/dist/assets/Vibe64RepositoryWorkspace-BWu6OV32.css.gz +0 -0
  34. package/dist/assets/{Vibe64RepositoryWorkspace-D6uJCype.js → Vibe64RepositoryWorkspace-EkT8pmMV.js} +1 -1
  35. package/dist/assets/Vibe64RepositoryWorkspace-EkT8pmMV.js.br +0 -0
  36. package/dist/assets/Vibe64RepositoryWorkspace-EkT8pmMV.js.gz +0 -0
  37. package/dist/assets/Vibe64SessionFiles-Qk_kv1Q8.js +1 -0
  38. package/dist/assets/Vibe64SessionFiles-Qk_kv1Q8.js.br +0 -0
  39. package/dist/assets/Vibe64SessionFiles-Qk_kv1Q8.js.gz +0 -0
  40. package/dist/assets/Vibe64SessionSourceEditor-l0R5uY2U.css.br +0 -0
  41. package/dist/assets/Vibe64SessionSourceEditor-l0R5uY2U.css.gz +0 -0
  42. package/dist/assets/{Vibe64SessionSourceEditor-Bws5ihr-.js → Vibe64SessionSourceEditor-oYTMnob5.js} +1 -1
  43. package/dist/assets/Vibe64SessionSourceEditor-oYTMnob5.js.br +0 -0
  44. package/dist/assets/Vibe64SessionSourceEditor-oYTMnob5.js.gz +0 -0
  45. package/dist/assets/Vibe64UiStoryboardView-BZh1b5Xt.js +8 -0
  46. package/dist/assets/Vibe64UiStoryboardView-BZh1b5Xt.js.br +0 -0
  47. package/dist/assets/Vibe64UiStoryboardView-BZh1b5Xt.js.gz +0 -0
  48. package/dist/assets/Vibe64UiStoryboardView-DqLN6ofL.css.br +0 -0
  49. package/dist/assets/Vibe64UiStoryboardView-DqLN6ofL.css.gz +0 -0
  50. package/dist/assets/_pageId_-xB2NWBqF.js +1 -0
  51. package/dist/assets/_sessionId_-7PyIUeUr.css.br +0 -0
  52. package/dist/assets/_sessionId_-7PyIUeUr.css.gz +0 -0
  53. package/dist/assets/_sessionId_-g78evnUW.js +1 -0
  54. package/dist/assets/_sessionId_-g78evnUW.js.br +0 -0
  55. package/dist/assets/_sessionId_-g78evnUW.js.gz +0 -0
  56. package/dist/assets/_sessionTool_-cw3WaYPb.js +1 -0
  57. package/dist/assets/access-BH1OsqPS.css.br +3 -0
  58. package/dist/assets/access-BH1OsqPS.css.gz +0 -0
  59. package/dist/assets/access-oIeDSza-.js +1 -0
  60. package/dist/assets/access-oIeDSza-.js.br +0 -0
  61. package/dist/assets/access-oIeDSza-.js.gz +0 -0
  62. package/dist/assets/addon-fit-Bw0lQv9_.js.br +0 -0
  63. package/dist/assets/addon-fit-Bw0lQv9_.js.gz +0 -0
  64. package/dist/assets/apollo-io-DSa-SGjz.svg.br +0 -0
  65. package/dist/assets/apollo-io-DSa-SGjz.svg.gz +0 -0
  66. package/dist/assets/app-0jq6SFSn.js +1 -0
  67. package/dist/assets/app-0jq6SFSn.js.br +0 -0
  68. package/dist/assets/app-0jq6SFSn.js.gz +0 -0
  69. package/dist/assets/asana--NYpVJKi.ico.br +0 -0
  70. package/dist/assets/asana--NYpVJKi.ico.gz +0 -0
  71. package/dist/assets/atlassian-DlYQurNH.ico.br +0 -0
  72. package/dist/assets/atlassian-DlYQurNH.ico.gz +0 -0
  73. package/dist/assets/aws-athena-iyRsleas.svg.br +0 -0
  74. package/dist/assets/aws-athena-iyRsleas.svg.gz +0 -0
  75. package/dist/assets/changes-Db1dzMsx.js +1 -0
  76. package/dist/assets/client-DW9uggbF.js +2 -0
  77. package/dist/assets/client-DW9uggbF.js.br +0 -0
  78. package/dist/assets/client-DW9uggbF.js.gz +0 -0
  79. package/dist/assets/client-Lmbw-Ygm.js +2 -0
  80. package/dist/assets/client-Lmbw-Ygm.js.br +0 -0
  81. package/dist/assets/client-Lmbw-Ygm.js.gz +0 -0
  82. package/dist/assets/dashboard-CUnY0-1W.js +1 -0
  83. package/dist/assets/dist-CDa9Iec1.js.br +0 -0
  84. package/dist/assets/dist-CDa9Iec1.js.gz +0 -0
  85. package/dist/assets/elk-worker.min-CBpdZsm8.js.br +0 -0
  86. package/dist/assets/elk-worker.min-CBpdZsm8.js.gz +0 -0
  87. package/dist/assets/english-definitions-DovEdEkp.js +1 -0
  88. package/dist/assets/english-definitions-DovEdEkp.js.br +0 -0
  89. package/dist/assets/english-definitions-DovEdEkp.js.gz +0 -0
  90. package/dist/assets/env-CZritO-9.js +1 -0
  91. package/dist/assets/env-CZritO-9.js.br +0 -0
  92. package/dist/assets/env-CZritO-9.js.gz +0 -0
  93. package/dist/assets/env-i_R_LXlE.css.br +0 -0
  94. package/dist/assets/env-i_R_LXlE.css.gz +0 -0
  95. package/dist/assets/erdLayout.worker-B_1U21gv.js.br +0 -0
  96. package/dist/assets/erdLayout.worker-B_1U21gv.js.gz +0 -0
  97. package/dist/assets/error-o4gXqrKI.js +1 -0
  98. package/dist/assets/error-o4gXqrKI.js.br +0 -0
  99. package/dist/assets/error-o4gXqrKI.js.gz +0 -0
  100. package/dist/assets/favicon-DXB1SVqU.svg +20 -0
  101. package/dist/assets/favicon-DXB1SVqU.svg.br +0 -0
  102. package/dist/assets/favicon-DXB1SVqU.svg.gz +0 -0
  103. package/dist/assets/fileTypes-Bqlch7JV.js +1 -0
  104. package/dist/assets/fileTypes-Bqlch7JV.js.br +0 -0
  105. package/dist/assets/fileTypes-Bqlch7JV.js.gz +0 -0
  106. package/dist/assets/fileTypes-c-LysNzr.css.br +0 -0
  107. package/dist/assets/fileTypes-c-LysNzr.css.gz +0 -0
  108. package/dist/assets/firecrawl-C0P1e2_8.ico.br +0 -0
  109. package/dist/assets/firecrawl-C0P1e2_8.ico.gz +0 -0
  110. package/dist/assets/granola-7dR8tPQ_.svg.br +0 -0
  111. package/dist/assets/granola-7dR8tPQ_.svg.gz +0 -0
  112. package/dist/assets/health-LP0Mz2qB.js +1 -0
  113. package/dist/assets/health-LP0Mz2qB.js.br +0 -0
  114. package/dist/assets/health-LP0Mz2qB.js.gz +0 -0
  115. package/dist/assets/health-xnU0lci9.css.br +0 -0
  116. package/dist/assets/health-xnU0lci9.css.gz +0 -0
  117. package/dist/assets/heygen-CeXJ1Sy4.ico.br +0 -0
  118. package/dist/assets/heygen-CeXJ1Sy4.ico.gz +0 -0
  119. package/dist/assets/history-BSIuLgnI.css.br +0 -0
  120. package/dist/assets/history-BSIuLgnI.css.gz +0 -0
  121. package/dist/assets/history-DkjaInmh.js +1 -0
  122. package/dist/assets/history-DkjaInmh.js.br +0 -0
  123. package/dist/assets/history-DkjaInmh.js.gz +0 -0
  124. package/dist/assets/index-C_LlHM8w.js +174 -0
  125. package/dist/assets/index-C_LlHM8w.js.br +0 -0
  126. package/dist/assets/index-C_LlHM8w.js.gz +0 -0
  127. package/dist/assets/index-aW7ceIaR.css +1 -0
  128. package/dist/assets/index-aW7ceIaR.css.br +0 -0
  129. package/dist/assets/index-aW7ceIaR.css.gz +0 -0
  130. package/dist/assets/{integrations-Ccb8EOEO.js → integrations-C6_N7WwF.js} +2 -3
  131. package/dist/assets/integrations-C6_N7WwF.js.br +0 -0
  132. package/dist/assets/integrations-C6_N7WwF.js.gz +0 -0
  133. package/dist/assets/integrations-sQuGZtOl.css +1 -0
  134. package/dist/assets/integrations-sQuGZtOl.css.br +0 -0
  135. package/dist/assets/integrations-sQuGZtOl.css.gz +0 -0
  136. package/dist/assets/issues-D46llNv-.css.br +0 -0
  137. package/dist/assets/issues-D46llNv-.css.gz +0 -0
  138. package/dist/assets/issues-DAJzymvp.js +1 -0
  139. package/dist/assets/issues-DAJzymvp.js.br +0 -0
  140. package/dist/assets/issues-DAJzymvp.js.gz +0 -0
  141. package/dist/assets/klipy-DId2OM2v.ico.br +0 -0
  142. package/dist/assets/klipy-DId2OM2v.ico.gz +0 -0
  143. package/dist/assets/learning-6W-aGxBH.js +1 -0
  144. package/dist/assets/libesm-CR-iGldz.js.br +0 -0
  145. package/dist/assets/libesm-CR-iGldz.js.gz +0 -0
  146. package/dist/assets/mailgun-jMUCQaNg.ico.br +0 -0
  147. package/dist/assets/mailgun-jMUCQaNg.ico.gz +0 -0
  148. package/dist/assets/microsoft-fabric-CkTccQJB.svg.br +0 -0
  149. package/dist/assets/microsoft-fabric-CkTccQJB.svg.gz +0 -0
  150. package/dist/assets/n8n-CViEi-uo.ico.br +0 -0
  151. package/dist/assets/n8n-CViEi-uo.ico.gz +0 -0
  152. package/dist/assets/paddle-PTFXjZtt.ico.br +0 -0
  153. package/dist/assets/paddle-PTFXjZtt.ico.gz +0 -0
  154. package/dist/assets/pages-BePUPkVf.js +1 -0
  155. package/dist/assets/pages-C31UYhFG.js +1 -0
  156. package/dist/assets/pages-C31UYhFG.js.br +0 -0
  157. package/dist/assets/pages-C31UYhFG.js.gz +0 -0
  158. package/dist/assets/perplexity-CwIseVmg.ico.br +0 -0
  159. package/dist/assets/perplexity-CwIseVmg.ico.gz +0 -0
  160. package/dist/assets/placementTopology-CDhUIK6L.js.br +0 -0
  161. package/dist/assets/placementTopology-CDhUIK6L.js.gz +0 -0
  162. package/dist/assets/prestashop-BQtyl3tL.ico.br +0 -0
  163. package/dist/assets/prestashop-BQtyl3tL.ico.gz +0 -0
  164. package/dist/assets/project-Bw_8Bd8D.js +21 -0
  165. package/dist/assets/project-Bw_8Bd8D.js.br +0 -0
  166. package/dist/assets/project-Bw_8Bd8D.js.gz +0 -0
  167. package/dist/assets/project-DTGwAgqm.css +1 -0
  168. package/dist/assets/project-DTGwAgqm.css.br +0 -0
  169. package/dist/assets/project-DTGwAgqm.css.gz +0 -0
  170. package/dist/assets/project-files-CdcCb8jL.js +1 -0
  171. package/dist/assets/project-files-CdcCb8jL.js.br +0 -0
  172. package/dist/assets/project-files-CdcCb8jL.js.gz +0 -0
  173. package/dist/assets/project-shared-ShellOutlet-CVomMDvt.js +5 -0
  174. package/dist/assets/project-shared-ShellOutlet-CVomMDvt.js.br +0 -0
  175. package/dist/assets/project-shared-ShellOutlet-CVomMDvt.js.gz +0 -0
  176. package/dist/assets/project-shared-ShellOutlet-DfKYI6ZS.css.br +0 -0
  177. package/dist/assets/project-shared-ShellOutlet-DfKYI6ZS.css.gz +0 -0
  178. package/dist/assets/project-shared-VBottomSheet-BEV2Ihna.css.br +0 -0
  179. package/dist/assets/project-shared-VBottomSheet-BEV2Ihna.css.gz +0 -0
  180. package/dist/assets/project-shared-VBottomSheet-Bu53ETe9.js +1 -0
  181. package/dist/assets/project-shared-VBottomSheet-Bu53ETe9.js.br +0 -0
  182. package/dist/assets/project-shared-VBottomSheet-Bu53ETe9.js.gz +0 -0
  183. package/dist/assets/project-shared-VToolbar-Bd4xlEK-.js +1 -0
  184. package/dist/assets/project-shared-VToolbar-Bd4xlEK-.js.br +0 -0
  185. package/dist/assets/project-shared-VToolbar-Bd4xlEK-.js.gz +0 -0
  186. package/dist/assets/project-shared-VToolbar-CY3-1Sb0.css.br +0 -0
  187. package/dist/assets/project-shared-VToolbar-CY3-1Sb0.css.gz +0 -0
  188. package/dist/assets/project-shared-pageNames-BVgvVg71.js +1 -0
  189. package/dist/assets/project-shared-pageNames-BVgvVg71.js.br +0 -0
  190. package/dist/assets/project-shared-pageNames-BVgvVg71.js.gz +0 -0
  191. package/dist/assets/publish-BIY5aZgD.css +1 -0
  192. package/dist/assets/publish-BIY5aZgD.css.br +0 -0
  193. package/dist/assets/publish-BIY5aZgD.css.gz +0 -0
  194. package/dist/assets/publish-a6jL_LlB.js +3 -0
  195. package/dist/assets/publish-a6jL_LlB.js.br +0 -0
  196. package/dist/assets/publish-a6jL_LlB.js.gz +0 -0
  197. package/dist/assets/pull-requests-DoyqPC5b.js +1 -0
  198. package/dist/assets/pull-requests-DoyqPC5b.js.br +0 -0
  199. package/dist/assets/pull-requests-DoyqPC5b.js.gz +0 -0
  200. package/dist/assets/repository-MUZOzMUA.js +1 -0
  201. package/dist/assets/salesforce-aAWnuvNz.ico.br +3 -0
  202. package/dist/assets/salesforce-aAWnuvNz.ico.gz +0 -0
  203. package/dist/assets/sentry-Y4ADGpgF.ico.br +0 -0
  204. package/dist/assets/sentry-Y4ADGpgF.ico.gz +0 -0
  205. package/dist/assets/session-BJhq3K2n.css.br +0 -0
  206. package/dist/assets/session-BJhq3K2n.css.gz +0 -0
  207. package/dist/assets/session-CtbSoHK-.js +1 -0
  208. package/dist/assets/session-CtbSoHK-.js.br +0 -0
  209. package/dist/assets/session-CtbSoHK-.js.gz +0 -0
  210. package/dist/assets/settings-BKZcbISO.css.br +0 -0
  211. package/dist/assets/settings-BKZcbISO.css.gz +0 -0
  212. package/dist/assets/settings-BdbR3bEK.js +1 -0
  213. package/dist/assets/settings-BdbR3bEK.js.br +0 -0
  214. package/dist/assets/settings-BdbR3bEK.js.gz +0 -0
  215. package/dist/assets/snowflake-CP8ObIkg.svg.br +0 -0
  216. package/dist/assets/snowflake-CP8ObIkg.svg.gz +0 -0
  217. package/dist/assets/useArchivedVibe64Sessions-DXTj9b9K.js +1 -0
  218. package/dist/assets/useArchivedVibe64Sessions-DXTj9b9K.js.br +0 -0
  219. package/dist/assets/useArchivedVibe64Sessions-DXTj9b9K.js.gz +0 -0
  220. package/dist/assets/vibe64AttachmentDownload-BODXLh6N.js +1 -0
  221. package/dist/assets/vibe64SavedEnvValues-BbuzhsJf.js +1 -0
  222. package/dist/assets/{vue-flow-core-jvy5apgY.js → vue-flow-core-6H3SH19E.js} +1 -1
  223. package/dist/assets/vue-flow-core-6H3SH19E.js.br +0 -0
  224. package/dist/assets/vue-flow-core-6H3SH19E.js.gz +0 -0
  225. package/dist/assets/workday-Ds_SFYKi.ico.br +0 -0
  226. package/dist/assets/workday-Ds_SFYKi.ico.gz +0 -0
  227. package/dist/assets/xterm-BrP-ENHg.css.br +0 -0
  228. package/dist/assets/xterm-BrP-ENHg.css.gz +0 -0
  229. package/dist/assets/xterm-CXJQiF67.js.br +0 -0
  230. package/dist/assets/xterm-CXJQiF67.js.gz +0 -0
  231. package/dist/assets/zoho-crm-BRYEeDgr.ico.br +0 -0
  232. package/dist/assets/zoho-crm-BRYEeDgr.ico.gz +0 -0
  233. package/dist/index.html +59 -130
  234. package/docs/colleague-usage/account-profile-and-appearance.md +5 -3
  235. package/docs/colleague-usage/add-a-service.md +137 -0
  236. package/docs/colleague-usage/ai-tasks.md +3 -1
  237. package/docs/colleague-usage/chat-settings.md +36 -9
  238. package/docs/colleague-usage/colleague-watches.md +1 -1
  239. package/docs/colleague-usage/connected-repositories.md +4 -0
  240. package/docs/colleague-usage/dashboard-navigation.md +4 -4
  241. package/docs/colleague-usage/development-env.md +8 -1
  242. package/docs/colleague-usage/github-work.md +39 -5
  243. package/docs/colleague-usage/health-checks.md +5 -2
  244. package/docs/colleague-usage/publishing.md +7 -6
  245. package/docs/colleague-usage/running-vibe64-on-your-computer.md +9 -0
  246. package/docs/colleague-usage/vibe64-updates.md +10 -0
  247. package/node_modules/@local/vibe64-core/package.json +1 -0
  248. package/node_modules/@local/vibe64-execution/src/host/execHelper.js +587 -584
  249. package/node_modules/@local/vibe64-execution/src/server/gitTurnCheckpointCommand.js +8 -8
  250. package/node_modules/@local/vibe64-execution/src/server/hostProfile.js +10 -10
  251. package/node_modules/@local/vibe64-genesis/package.json +2 -1
  252. package/node_modules/@local/vibe64-genesis/src/server/agentSpecs.js +25 -20
  253. package/node_modules/@local/vibe64-genesis/src/server/index.js +411 -401
  254. package/node_modules/@local/vibe64-genesis/src/server/promptContext.js +74 -67
  255. package/node_modules/@local/vibe64-project/package.json +1 -0
  256. package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +680 -676
  257. package/package.json +3 -3
  258. package/server.bundle.mjs +39168 -38944
  259. package/dist/assets/GithubBrowserTabs-CW3GBeJu.js +0 -1
  260. package/dist/assets/SelectField-Df50ZFLj.js +0 -1
  261. package/dist/assets/ShellOutlet-DkLdtzJW.js +0 -1
  262. package/dist/assets/StudioErrorNotice-CQfeUEOD.css +0 -1
  263. package/dist/assets/StudioErrorNotice-vDR4qneB.js +0 -1
  264. package/dist/assets/VAutocomplete-D48FgPMA.css +0 -1
  265. package/dist/assets/VAutocomplete-NpBcbYkR.js +0 -1
  266. package/dist/assets/VBtn-C1plz3b1.css +0 -1
  267. package/dist/assets/VBtn-Com1gNEe.js +0 -1
  268. package/dist/assets/VCard-DY_DdI8Z.js +0 -1
  269. package/dist/assets/VCard-dv-Dc592.css +0 -1
  270. package/dist/assets/VCheckbox-ChRKi1kj.css +0 -1
  271. package/dist/assets/VCheckbox-CkezAf4Z.js +0 -1
  272. package/dist/assets/VCheckboxBtn-8g4R-c2w.js +0 -1
  273. package/dist/assets/VCheckboxBtn-o1O5Bixh.css +0 -1
  274. package/dist/assets/VChip-4Nj-0ztL.css +0 -1
  275. package/dist/assets/VChip-tORFnf7z.js +0 -11
  276. package/dist/assets/VDialog-CapFiCqp.js +0 -1
  277. package/dist/assets/VDialog-DP-kc9Gx.css +0 -1
  278. package/dist/assets/VExpansionPanels-B6U2XdWH.js +0 -1
  279. package/dist/assets/VExpansionPanels-cvCWEkWz.css +0 -1
  280. package/dist/assets/VMenu-CO6B6LWk.js +0 -1
  281. package/dist/assets/VMenu-DCU7zd0B.css +0 -1
  282. package/dist/assets/VOverlay-CrfaXCOL.js +0 -1
  283. package/dist/assets/VOverlay-DG-PukqI.css +0 -1
  284. package/dist/assets/VRadioGroup-BrPW6foD.js +0 -1
  285. package/dist/assets/VRadioGroup-C9f4tbih.css +0 -1
  286. package/dist/assets/VRow-BdVn5u8X.css +0 -1
  287. package/dist/assets/VRow-DHETsEMn.js +0 -1
  288. package/dist/assets/VSelect-gYJ6qrBP.js +0 -1
  289. package/dist/assets/VSelect-yFA6_y4G.css +0 -1
  290. package/dist/assets/VSheet-BbLSwuzR.css +0 -1
  291. package/dist/assets/VSheet-_Grtwpfz.js +0 -1
  292. package/dist/assets/VSkeletonLoader-CQXCEJsR.js +0 -1
  293. package/dist/assets/VSkeletonLoader-DXZarZ9m.css +0 -1
  294. package/dist/assets/VSpacer-DfbUir7X.css +0 -1
  295. package/dist/assets/VSpacer-VLYDmg7o.js +0 -1
  296. package/dist/assets/VSwitch-DAlld-JI.css +0 -1
  297. package/dist/assets/VSwitch-ffi-Y2TU.js +0 -1
  298. package/dist/assets/VTable-Cver5Vl3.js +0 -1
  299. package/dist/assets/VTable-LbK8_KkU.css +0 -1
  300. package/dist/assets/VTextField-DP6b7Qaf.js +0 -1
  301. package/dist/assets/VTextField-F6unyhrS.css +0 -1
  302. package/dist/assets/VTextarea--uW4w6nq.css +0 -1
  303. package/dist/assets/VTextarea-7mdIF4I0.js +0 -1
  304. package/dist/assets/VToolbar-CYz3lneF.js +0 -1
  305. package/dist/assets/Vibe64AsyncModuleState-B68r3Cm5.css +0 -1
  306. package/dist/assets/Vibe64AsyncModuleState-CO1rMrtD.js +0 -1
  307. package/dist/assets/Vibe64AuthSettingsButton-Cksj7FS6.js +0 -5
  308. package/dist/assets/Vibe64ConversationLog-BC0eDtUP.js +0 -9
  309. package/dist/assets/Vibe64ConversationLog-ksf1U6PP.css +0 -1
  310. package/dist/assets/Vibe64DashboardPageHeader-CobvMlFm.js +0 -1
  311. package/dist/assets/Vibe64DashboardShell-D0GNI4V8.css +0 -1
  312. package/dist/assets/Vibe64DashboardShell-DX5dOXAB.js +0 -1
  313. package/dist/assets/Vibe64DestinationButton-B4Zz4a7J.js +0 -1
  314. package/dist/assets/Vibe64DestinationButton-ZxY1Lwie.css +0 -1
  315. package/dist/assets/Vibe64FileArea-EK5yUio3.js +0 -1
  316. package/dist/assets/Vibe64OutputControls--LB4G83q.js +0 -8
  317. package/dist/assets/Vibe64SessionFiles-DVHGc7hd.js +0 -1
  318. package/dist/assets/Vibe64UiStoryboardView-BmABkyG4.js +0 -8
  319. package/dist/assets/Vibe64UnavailableSessions-C6Bkwsqk.js +0 -1
  320. package/dist/assets/Vibe64UnavailableSessions-DQdNuGSD.css +0 -1
  321. package/dist/assets/_pageId_-FjW-3sqF.js +0 -1
  322. package/dist/assets/_plugin-vue_export-helper-DNW4j-dv.js +0 -1
  323. package/dist/assets/_sessionId_-4cH83Bfi.js +0 -1
  324. package/dist/assets/_sessionTool_-CBf51mfK.js +0 -1
  325. package/dist/assets/_slug_-Cazfy5ui.js +0 -14
  326. package/dist/assets/_slug_-DQDycgFK.css +0 -1
  327. package/dist/assets/access-mxcxtn7b.js +0 -1
  328. package/dist/assets/app-8zP_FAuO.js +0 -1
  329. package/dist/assets/assistantRouting-Bbxguvre.js +0 -3
  330. package/dist/assets/asyncModuleRecovery-BALhPqsY.js +0 -1
  331. package/dist/assets/browser-D8z6v6Ge.js +0 -1
  332. package/dist/assets/browserLocalStorage-B4C7rHrs.js +0 -1
  333. package/dist/assets/changes-cmlEyHug.js +0 -1
  334. package/dist/assets/client-BBJzQIWS.css +0 -1
  335. package/dist/assets/client-BJBzomgt.js +0 -1
  336. package/dist/assets/client-C1i-bIgL.js +0 -1
  337. package/dist/assets/client-C7yZ1hEm.js +0 -2
  338. package/dist/assets/client-CM6TGZc9.css +0 -1
  339. package/dist/assets/client-CQ49uWhR.js +0 -2
  340. package/dist/assets/client-D46Uu-YO.js +0 -2
  341. package/dist/assets/client-DKNTl1to.js +0 -2
  342. package/dist/assets/clipboard-CZs9aH3L.js +0 -1
  343. package/dist/assets/conversation-CFJRkeTj.js +0 -12
  344. package/dist/assets/conversation-COcuIkcD.css +0 -1
  345. package/dist/assets/conversation-CexAK3Qk.js +0 -1
  346. package/dist/assets/dashboard-CMtWKazq.js +0 -1
  347. package/dist/assets/deepFreeze-BgoYkoTa.js +0 -1
  348. package/dist/assets/devtools-CN5uWJaH-_xug6686.js +0 -1
  349. package/dist/assets/english-definitions-DiyU9O9D.js +0 -1
  350. package/dist/assets/env-LUc22Wgd.js +0 -1
  351. package/dist/assets/error-BccdQn04.js +0 -1
  352. package/dist/assets/error-DPDAz9Td.js +0 -1
  353. package/dist/assets/errorMessageHelpers-G32Hjqfm.js +0 -1
  354. package/dist/assets/errors-D17nJYne.js +0 -1
  355. package/dist/assets/favicon-B93tlu1U.svg +0 -7
  356. package/dist/assets/fileTypes-iPZyrJA1.js +0 -1
  357. package/dist/assets/health-CfMjMJFf.js +0 -1
  358. package/dist/assets/history-hX_kNskf.js +0 -1
  359. package/dist/assets/httpClient-C71X5grL.js +0 -1
  360. package/dist/assets/i18n-5EHeMSvt.js +0 -1
  361. package/dist/assets/i18n-BSfPKqM3.js +0 -1
  362. package/dist/assets/i18n-DpzQwXg6.js +0 -1
  363. package/dist/assets/i18n-Dq-ep9n7.js +0 -1
  364. package/dist/assets/index-BJWiPV6i.css +0 -1
  365. package/dist/assets/index-FVeEbKiO.js +0 -134
  366. package/dist/assets/integrations-CtnIjM1Y.css +0 -1
  367. package/dist/assets/issues-Bxtt7oqi.js +0 -1
  368. package/dist/assets/layout-DMZV-nbg.js +0 -1
  369. package/dist/assets/lazy-mtFmsnct.js +0 -1
  370. package/dist/assets/learning-BUx9jo91.js +0 -1
  371. package/dist/assets/linkPath-BsiibCNd.js +0 -1
  372. package/dist/assets/normalize-BD25VwNK.js +0 -1
  373. package/dist/assets/pages-5jaEclQo.js +0 -1
  374. package/dist/assets/pages-D43zM2UW.js +0 -1
  375. package/dist/assets/pathname-JHQIKk21.js +0 -1
  376. package/dist/assets/placement-1lT0lW3-.js +0 -1
  377. package/dist/assets/placement-B2V88UDJ.js +0 -1
  378. package/dist/assets/preload-helper-BvdcsxN9.js +0 -1
  379. package/dist/assets/project-files-BX3zZCcl.js +0 -1
  380. package/dist/assets/publish-C9O0tDPB.css +0 -1
  381. package/dist/assets/publish-DatierL2.js +0 -3
  382. package/dist/assets/pull-requests-DNkOjcuy.js +0 -1
  383. package/dist/assets/queryPath-yKLyWw8V.js +0 -1
  384. package/dist/assets/repository-0EKOcyTL.js +0 -1
  385. package/dist/assets/returnToPath-CILshEkc.js +0 -1
  386. package/dist/assets/runtime-core.esm-bundler-Bi1P1jMa.js +0 -1
  387. package/dist/assets/session-FRkCCzYt.js +0 -1
  388. package/dist/assets/settings-DbR9JIc3.js +0 -1
  389. package/dist/assets/shared-B6plZPQ_.js +0 -2
  390. package/dist/assets/shared-DjZEYqzW.js +0 -1
  391. package/dist/assets/studioGateApi-B9EUTtMx.js +0 -1
  392. package/dist/assets/studioUrls-BR4ZL-TN.js +0 -1
  393. package/dist/assets/surface-CBlx7sF_.js +0 -1
  394. package/dist/assets/thinkingText-mMYz6e03.js +0 -8
  395. package/dist/assets/useApi-BPuI6ZR9-rsYWyW6m.js +0 -1
  396. package/dist/assets/useArchivedVibe64Sessions-B8VDhA9F.js +0 -1
  397. package/dist/assets/useAssistantAttachments-C9kAnWqw.js +0 -2
  398. package/dist/assets/useCommand-CfqxMb4C.js +0 -1
  399. package/dist/assets/useEndpointResource-BwGXpV2u.js +0 -1
  400. package/dist/assets/usePaths-CvUbx5-V.js +0 -1
  401. package/dist/assets/useRealtimeEvent-B4oRg9Dt.js +0 -1
  402. package/dist/assets/useUiFeedback-8Wvg7A_S.js +0 -1
  403. package/dist/assets/useVibe64ConversationLog-7wgLlKG5.js +0 -2
  404. package/dist/assets/useVibe64Learning-B9b7aUr-.css +0 -1
  405. package/dist/assets/useVibe64Learning-DkneotqS.js +0 -5
  406. package/dist/assets/useVibe64SessionData-DuJ-dHR8.js +0 -1
  407. package/dist/assets/useVibe64SessionSelection-BwjtqeIR.js +0 -1
  408. package/dist/assets/validators-HqYRjxEO.js +0 -1
  409. package/dist/assets/vibe64ApiResponses-DuJ9mfus.js +0 -1
  410. package/dist/assets/vibe64AssistantHost-CyWUOG-F.js +0 -1
  411. package/dist/assets/vibe64AttachmentDownload-BWRCIKUr.js +0 -1
  412. package/dist/assets/vibe64BrowserTabOrigin-vIN_87mi.js +0 -1
  413. package/dist/assets/vibe64FileUpload-D_rOa1R8.js +0 -1
  414. package/dist/assets/vibe64GithubProject-CJneIo5O.js +0 -1
  415. package/dist/assets/vibe64ProjectScope.local-B9ZpdYlf.js +0 -1
  416. package/dist/assets/vibe64RepositoryRealtime-CRAyGyRD.css +0 -1
  417. package/dist/assets/vibe64RepositoryRealtime-CVGNqwxz.js +0 -1
  418. package/dist/assets/vibe64SavedEnvValues-CCZew0j7.js +0 -1
  419. package/dist/assets/vibe64SessionDebugLog-BfO7tG1A.js +0 -1
  420. package/dist/assets/vibe64SessionFocus-B4diopOJ.js +0 -1
  421. package/dist/assets/vibe64SessionFocus-BCojr4E-.css +0 -1
  422. package/dist/assets/vibe64SessionInfo-D68p7LdH.js +0 -2
  423. package/dist/assets/vibe64SessionPanelModel-B-WkXnPu.js +0 -1
  424. package/dist/assets/vibe64SessionRequestConfig-DVRCRAex.js +0 -1
  425. package/dist/assets/vibe64SessionToolDefinitions-BijEEwqu.js +0 -1
  426. package/dist/assets/vibe64SessionViewModel-CQCds_jb.js +0 -1
  427. package/dist/assets/visibility-Cq31Xy7I.js +0 -1
  428. package/dist/assets/vueRefOrGetterValue-y-4f_In7.js +0 -1
  429. package/dist/assets/windowSizeClass-DQekxFgV.js +0 -1
  430. /package/dist/assets/{Vibe64AuthSettingsButton-DfKYI6ZS.css → project-shared-ShellOutlet-DfKYI6ZS.css} +0 -0
  431. /package/dist/assets/{client-BEV2Ihna.css → project-shared-VBottomSheet-BEV2Ihna.css} +0 -0
  432. /package/dist/assets/{VToolbar-CY3-1Sb0.css → project-shared-VToolbar-CY3-1Sb0.css} +0 -0
  433. /package/dist/assets/{route-block-DbL-SuOj.js → project-shared-route-block-DbL-SuOj.js} +0 -0
@@ -1,95 +1,95 @@
1
1
  import { createRequire as __vibe64CreateRequire } from 'node:module';const require=__vibe64CreateRequire(import.meta.url);
2
- import{createHash as us}from"node:crypto";import He from"node:path";var Ee=class extends Error{constructor(t,n,s=void 0){
2
+ import{createHash as ps}from"node:crypto";import He from"node:path";var Ee=class extends Error{constructor(t,n,s=void 0){
3
3
  super(n),this.name="Vibe64StackOperationError",this.code=t,s!==void 0&&(this.details=s)}},bt=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
- architecture-inspection",VIBE64_ARCHITECTURE_LAYOUT_INVALID:"architecture-layout"}),ps=/ Exact grammar: vibe64-helper spec [a-z-]+\.$/u;
8
- function ls(e,t){let n=bt[e],s=String(t).replace(ps,"");return n?`${s} Exact grammar: vibe64-helper spec ${n}.`:s}function k(e,t,n){
9
- return`Unknown ${e}: ${t}. Use one of: ${n.join("; ")}.`}function m(e,t,n,s,r={}){throw new Ee(e,ls(e,n),{path:t,...s===
7
+ architecture-inspection",VIBE64_ARCHITECTURE_LAYOUT_INVALID:"architecture-layout"}),ls=/ Exact grammar: vibe64-helper spec [a-z-]+\.$/u;
8
+ function ds(e,t){let n=bt[e],s=String(t).replace(ls,"");return n?`${s} Exact grammar: vibe64-helper spec ${n}.`:s}function R(e,t,n){
9
+ return`Unknown ${e}: ${t}. Use one of: ${n.join("; ")}.`}function m(e,t,n,s,r={}){throw new Ee(e,ds(e,n),{path:t,...s===
10
10
  void 0?{}:{line:s},...r})}function y(e,t,n,s,r){return(typeof e!="string"||!e.trim()||/[\0\r\n]/u.test(e))&&m(t,n,`${s} \
11
- must be one non-empty line.`,r),e.trim()}function ds(e){let t=[...String(e||"").matchAll(/`([^`\r\n]+)`/gu)];return t.length===
12
- 0||t.map(n=>n[0]).join(" ")!==e?null:t.map(n=>n[1])}function b(e,t,n,s,r,i={}){let{count:o,maximum:c=64}=i,a=ds(e);if(!a||
11
+ must be one non-empty line.`,r),e.trim()}function ms(e){let t=[...String(e||"").matchAll(/`([^`\r\n]+)`/gu)];return t.length===
12
+ 0||t.map(n=>n[0]).join(" ")!==e?null:t.map(n=>n[1])}function b(e,t,n,s,r,i={}){let{count:o,maximum:c=64}=i,a=ms(e);if(!a||
13
13
  a.length>c||o!==void 0&&a.length!==o||a.some(u=>u.length>4096||/[\0\r\n]/u.test(u))){let u=o===void 0?"separate non-empt\
14
- y":`exactly ${o}`;m(t,n,`${s} must contain ${u} backticked ${o===1?"value":"values"}.`,r)}return a}function ms(e=""){return typeof e==
14
+ y":`exactly ${o}`;m(t,n,`${s} must contain ${u} backticked ${o===1?"value":"values"}.`,r)}return a}function hs(e=""){return typeof e==
15
15
  "string"&&!!e&&!/[\s\0{}]/u.test(e)&&!He.isAbsolute(e)&&!e.split(/[\\/]/u).includes("..")}function D(e,t,n,s,r){let i=b(
16
- e,t,n,s,r);return ms(i[0])||m(t,n,`${s} must begin with a safe executable.`,r),i}function hs(e=""){return typeof e=="str\
16
+ e,t,n,s,r);return hs(i[0])||m(t,n,`${s} must begin with a safe executable.`,r),i}function fs(e=""){return typeof e=="str\
17
17
  ing"&&!!e&&!/[\0\r\n\\]/u.test(e)&&!He.posix.isAbsolute(e)&&He.posix.normalize(e)===e&&!e.split("/").some(t=>!t||t==="..")}
18
- function w(e,t,n,s,r,i={}){let{allowRoot:o=!0}=i;return(!hs(e)||!o&&e===".")&&m(t,n,`${s} must be a canonical project-re\
18
+ function w(e,t,n,s,r,i={}){let{allowRoot:o=!0}=i;return(!fs(e)||!o&&e===".")&&m(t,n,`${s} must be a canonical project-re\
19
19
  lative path.`,r),e}function ve(e,t,n,s,r){let i=b(e,t,n,s,r);return i.some(o=>o.startsWith("/")||o.includes("\\")||o.includes(
20
20
  "***")||/[?[\]{}!]/u.test(o)||o.split("/").some(c=>!c||[".",".."].includes(c)))&&m(t,n,`${s} must be canonical project-r\
21
21
  elative globs using only * and ** wildcards.`,r),new Set(i).size!==i.length&&m(t,n,`${s} must name each path once.`,r),i}
22
22
  function P(e,t,n,s,r){let i=b(e,t,n,s,r);return i.some(o=>!/^[a-z0-9]+(?:-[a-z0-9]+)*$/u.test(o))&&m(t,n,`${s} must use \
23
23
  lowercase technology ids separated into backticked values.`,r),new Set(i).size!==i.length&&m(t,n,`${s} contains a duplic\
24
24
  ate technology id.`,r),i}function Fe(e,t,n,s,r){let i=y(e,t,n,s,r);return(!i.startsWith("/")||i.startsWith("//")||/[\\?#]/u.
25
- test(i))&&m(t,n,`${s} must begin with one slash and contain no query or fragment.`,r),i}function re(e,t,n,s,r){let i=e.match(
25
+ test(i))&&m(t,n,`${s} must begin with one slash and contain no query or fragment.`,r),i}function oe(e,t,n,s,r){let i=e.match(
26
26
  /^- Ready when: `GET` `([^`\r\n]+)` returns `([0-9]{3})`$/u);i||m(t,n,`${s} must use \`- Ready when: \`GET\` \`/path\` return\
27
27
  s \`200\`\`.`,r);let o=Number(i[2]);return(!Number.isInteger(o)||o<200||o>399)&&m(t,n,`${s} status must be from 200 thro\
28
- ugh 399.`,r),{kind:"http",method:"GET",path:Fe(i[1],t,n,`${s} path`,r),status:o}}var fs=/^with (.+?):[ \t]+(.+)$/u,gs=/^(.*?)[ \t]+when `([^`\r\n]+)` exists$/u,
29
- Es=/^(.*?)[ \t]+if `([^`\r\n]+)` exists$/u,vs=/^(.*?)[ \t]+in `([^`\r\n]+)`$/u;function be(e,t,n,s,r,{form:i,observed:o=e}){
30
- let c=String(e||"").match(fs);c||m(t,n,`Every ${s} entry must use: ${i}`,r,{observed:o});let a=c[1].match(gs),u=a?null:c[1].
31
- match(Es),p=a?a[1]:u?u[1]:c[1],d=a?.[2]||u?.[2]||"",l=p.match(vs);return{argv:D(c[2],t,n,`${s} command`,r),runtimeRequirements:P(
28
+ ugh 399.`,r),{kind:"http",method:"GET",path:Fe(i[1],t,n,`${s} path`,r),status:o}}var gs=/^with (.+?):[ \t]+(.+)$/u,Es=/^(.*?)[ \t]+when `([^`\r\n]+)` exists$/u,
29
+ vs=/^(.*?)[ \t]+if `([^`\r\n]+)` exists$/u,bs=/^(.*?)[ \t]+in `([^`\r\n]+)`$/u;function be(e,t,n,s,r,{form:i,observed:o=e}){
30
+ let c=String(e||"").match(gs);c||m(t,n,`Every ${s} entry must use: ${i}`,r,{observed:o});let a=c[1].match(Es),u=a?null:c[1].
31
+ match(vs),p=a?a[1]:u?u[1]:c[1],d=a?.[2]||u?.[2]||"",l=p.match(bs);return{argv:D(c[2],t,n,`${s} command`,r),runtimeRequirements:P(
32
32
  l?l[1]:p,t,n,`${s} runtimes`,r),workdir:w(l?l[2]:".",t,n,`${s} workdir`,r),...d?{condition:{pathExists:w(d,t,n,`${s} con\
33
33
  dition path`,r,{allowRoot:!1}),onMissing:a?"wait":"skip"}}:{}}}function ze(e){return Array.isArray(e)?e.map(ze):e&&typeof e==
34
34
  "object"?Object.fromEntries(Object.keys(e).sort().map(t=>[t,ze(e[t])])):e}function N(e){let t=`${JSON.stringify(ze(e),null,
35
35
  2)}
36
- `;return`sha256:${us("sha256").update(t).digest("hex")}`}function z(e={},t={},n="operation"){if(e.stackHash!==t.stackHash)
36
+ `;return`sha256:${ps("sha256").update(t).digest("hex")}`}function z(e={},t={},n="operation"){if(e.stackHash!==t.stackHash)
37
37
  throw new Ee("VIBE64_STACK_CHANGED",`The Stack changed while Vibe64 inspected its ${n}. Retry the operation.`)}function F(e=[]){
38
38
  return[...new Set(e)].sort()}function S(e=[]){let t=e.map(n=>n.trim()).filter(Boolean);return t.length===1&&t[0]==="- No\
39
- thing."}var uo=Object.freeze({SPEC_BY_ERROR_CODE:bt});var bs="custom";var ys=Object.freeze([Object.freeze({value:"npm",label:"npm (Node.js)"}),Object.freeze({value:"composer",label:"Composer\
39
+ thing."}var mo=Object.freeze({SPEC_BY_ERROR_CODE:bt});var ys="custom";var ws=Object.freeze([Object.freeze({value:"npm",label:"npm (Node.js)"}),Object.freeze({value:"composer",label:"Composer\
40
40
  (PHP)"}),Object.freeze({value:"pip",label:"pip (Python)"}),Object.freeze({value:"bundler",label:"Bundler (Ruby)"}),Object.
41
41
  freeze({value:"gomod",label:"Go modules"}),Object.freeze({value:"cargo",label:"Cargo (Rust)"}),Object.freeze({value:"mav\
42
42
  en",label:"Maven"}),Object.freeze({value:"gradle",label:"Gradle"}),Object.freeze({value:"nuget",label:"NuGet (.NET)"}),Object.
43
- freeze({value:bs,label:"custom"})]);var yt=Object.freeze(ys.map(e=>e.value));function wt(e){return typeof e=="string"&&yt.includes(e)}function St(e="or"){let t=yt;return`${t.slice(0,-1).join(", ")} ${e} ${t.at(-1)}`}var _t="Connected development",ws="vibe64.connected-development.v1",x="VIBE64_CONNECTED_DEVELOPMENT_INVALID",V="genesis/\
43
+ freeze({value:ys,label:"custom"})]);var yt=Object.freeze(ws.map(e=>e.value));function wt(e){return typeof e=="string"&&yt.includes(e)}function St(e="or"){let t=yt;return`${t.slice(0,-1).join(", ")} ${e} ${t.at(-1)}`}var _t="Connected development",Ss="vibe64.connected-development.v1",x="VIBE64_CONNECTED_DEVELOPMENT_INVALID",V="genesis/\
44
44
  stack.md#Connected development",qe="with `runtime` [in `workdir`]: `command` `argument`...",It=Object.freeze({Prepare:`-\
45
- Prepare \`label\` ${qe}`,Verify:`- Verify \`label\` ${qe}`,"Custom runner":`- Custom runner ${qe}`}),Ss=Object.freeze([
46
- "- Default package type: `type`","- Sources file: `path`",...Object.values(It)]),_s=/^- (Prepare|Verify) `([^`\r\n]+)` (.+)$/u,
47
- Is=/^- Custom runner (.+)$/u,Ts="Custom connected source";function Tt(e={}){let t="",n="",s=null,r=[],i=[...e.diagnostics||
45
+ Prepare \`label\` ${qe}`,Verify:`- Verify \`label\` ${qe}`,"Custom runner":`- Custom runner ${qe}`}),_s=Object.freeze([
46
+ "- Default package type: `type`","- Sources file: `path`",...Object.values(It)]),Is=/^- (Prepare|Verify) `([^`\r\n]+)` (.+)$/u,
47
+ Ts=/^- Custom runner (.+)$/u,Os="Custom connected source";function Tt(e={}){let t="",n="",s=null,r=[],i=[...e.diagnostics||
48
48
  []],o=e.status==="ready";if(o&&!S(e.lines)){let a=!1;for(let[p,d]of e.lines.entries()){let l=d.trim();if(!l)continue;let g=p+
49
49
  1,E=l.match(/^- Default package type: `([^`\r\n]*)`$/u);if(E){n&&m(x,V,"Declare exactly one default package type.",g),wt(
50
50
  E[1])||m(x,V,`Default package type must be ${St()}.`,g),n=E[1];continue}let _=l.match(/^- Sources file: `([^`\r\n]+)`$/u);
51
51
  if(_){t&&m(x,V,"Declare exactly one Sources file.",g),t=w(_[1],x,V,"Connected sources file",g,{allowRoot:!1}),t.split("/").
52
- some(cs=>cs.toLowerCase()===".git")&&m(x,V,"The Sources file must be outside Git metadata.",g);continue}let R=l.match(Is),
53
- $=R?null:l.match(_s);!R&&!$&&m(x,V,k("Connected development entry",l,Ss),g);let X=R?"Custom runner":$[1],ie=X==="Verify"?
54
- "verify":"prepare";!R&&a&&ie==="prepare"&&m(x,V,"All Prepare entries must precede Verify entries.",g),a||=!R&&ie==="veri\
55
- fy";let We={label:R?Ts:y($[2],x,V,`Connected development ${X} label`,g),...be(R?R[1]:$[3],x,V,`Connected development ${X}`,
56
- g,{form:It[X],observed:l})};We.condition&&m(x,V,"Connected development steps must run unconditionally; a skipped step ca\
57
- nnot prove source consumption.",g),R?(s&&m(x,V,"Declare exactly one Custom runner.",g),s=We):r.push({...We,phase:ie})}!(n&&
52
+ some(us=>us.toLowerCase()===".git")&&m(x,V,"The Sources file must be outside Git metadata.",g);continue}let k=l.match(Ts),
53
+ $=k?null:l.match(Is);!k&&!$&&m(x,V,R("Connected development entry",l,_s),g);let X=k?"Custom runner":$[1],re=X==="Verify"?
54
+ "verify":"prepare";!k&&a&&re==="prepare"&&m(x,V,"All Prepare entries must precede Verify entries.",g),a||=!k&&re==="veri\
55
+ fy";let Be={label:k?Os:y($[2],x,V,`Connected development ${X} label`,g),...be(k?k[1]:$[3],x,V,`Connected development ${X}`,
56
+ g,{form:It[X],observed:l})};Be.condition&&m(x,V,"Connected development steps must run unconditionally; a skipped step ca\
57
+ nnot prove source consumption.",g),k?(s&&m(x,V,"Declare exactly one Custom runner.",g),s=Be):r.push({...Be,phase:re})}!(n&&
58
58
  !t&&!r.length&&!s)&&(!t||!r.some(p=>p.phase==="verify")&&!s)&&m(x,V,"Declare a default package type alone, or a Sources \
59
59
  file with Verify entries or a Custom runner; use `- Nothing.` for no declaration.")}let c=e.status==="blocked"||i.length?
60
- "blocked":r.length||s?"ready":"unconfigured";return{contract:ws,declared:o,status:c,stackHash:e.stackHash,recipeHash:c===
60
+ "blocked":r.length||s?"ready":"unconfigured";return{contract:Ss,declared:o,status:c,stackHash:e.stackHash,recipeHash:c===
61
61
  "ready"?N({version:1,sourcesFile:t,defaultPackageType:n,customRunner:s,steps:r}):"",components:[...e.components||[]],source:e.
62
62
  source||null,sourcesFile:t,defaultPackageType:n,customRunner:s,steps:r,runtimeRequirements:F([...r,...s?[s]:[]].flatMap(
63
- a=>a.runtimeRequirements)),diagnostics:i}}import{lstat as Os,open as Rs,realpath as Ke,stat as ks}from"node:fs/promises";import{constants as Ot}from"node:fs";import Rt from"node:path";var As="vibe64.architecture-inspection.v1",At="Architecture inspection",T="VIBE64_ARCHITECTURE_INSPECTION_INVALID",ye="g\
64
- enesis/stack.md#Architecture inspection",Nt=120,Ct=64*1024*1024,kt=64*1024,Ns=Object.freeze(["runtimeRequirements","work\
65
- dir","argv","timeout","maxBuffer"]),Ye=Object.freeze({Runtime:["runtimeRequirements","`runtime`..."],Directory:["workdir",
63
+ a=>a.runtimeRequirements)),diagnostics:i}}import{lstat as ks,open as Rs,realpath as Ye,stat as As}from"node:fs/promises";import{constants as Ot}from"node:fs";import kt from"node:path";var Ns="vibe64.architecture-inspection.v1",At="Architecture inspection",T="VIBE64_ARCHITECTURE_INSPECTION_INVALID",ye="g\
64
+ enesis/stack.md#Architecture inspection",Nt=120,Ct=64*1024*1024,Rt=64*1024,Cs=Object.freeze(["runtimeRequirements","work\
65
+ dir","argv","timeout","maxBuffer"]),Ke=Object.freeze({Runtime:["runtimeRequirements","`runtime`..."],Directory:["workdir",
66
66
  "`path`"],Command:["argv","`command` `argument`..."],"Timeout seconds":["timeout",`\`1\` through \`${Nt}\``],"Max output\
67
67
  bytes":["maxBuffer",`\`1\` through \`${Ct}\``],"Entry files":["entryFiles","`path`... (optional)"],"Required files":["r\
68
- equiredFiles","`path`... (optional)"],"Preview locator":["previewLocator","`path` (optional .js file)"]}),Cs=new RegExp(
69
- `^- (${Object.keys(Ye).join("|")}): (.+)$`,"u");function Dt(e,t={}){let{path:n=ye}=t;if(Array.isArray(e)||m(T,n,"Archite\
70
- cture inspection requires exact Stack section lines."),S(e))return[];let s=[],r=new Set,i;function o(){if(i){for(let c of Ns)
68
+ equiredFiles","`path`... (optional)"],"Preview locator":["previewLocator","`path` (optional .js file)"]}),Ds=new RegExp(
69
+ `^- (${Object.keys(Ke).join("|")}): (.+)$`,"u");function Dt(e,t={}){let{path:n=ye}=t;if(Array.isArray(e)||m(T,n,"Archite\
70
+ cture inspection requires exact Stack section lines."),S(e))return[];let s=[],r=new Set,i;function o(){if(i){for(let c of Cs)
71
71
  i[c]===void 0&&m(T,n,`${i.id} is missing ${c}.`);s.push(i),i=null}}for(let[c,a]of e.entries()){let u=a.trim();if(!u)continue;
72
72
  let p=u.match(/^### Inspector `([a-z0-9]+(?:-[a-z0-9]+)*)`: (.+)$/u);if(p){o(),r.has(p[1])&&m(T,n,"Duplicate inspector i\
73
- d.",c+1),r.add(p[1]),i={id:p[1],title:p[2]};continue}i||m(T,n,"Expected an Inspector heading.",c+1);let d=u.match(Cs);if(!d){
74
- let g=Object.entries(Ye).map(([E,[,_]])=>`- ${E}: ${_}`).join("; ");m(T,n,`Unknown architecture inspector field. Use one\
75
- of: ${g}.`,c+1)}let[l]=Ye[d[1]];if(i[l]!==void 0&&m(T,n,`Duplicate ${d[1]}.`,c+1),l==="runtimeRequirements")i[l]=P(d[2],
73
+ d.",c+1),r.add(p[1]),i={id:p[1],title:p[2]};continue}i||m(T,n,"Expected an Inspector heading.",c+1);let d=u.match(Ds);if(!d){
74
+ let g=Object.entries(Ke).map(([E,[,_]])=>`- ${E}: ${_}`).join("; ");m(T,n,`Unknown architecture inspector field. Use one\
75
+ of: ${g}.`,c+1)}let[l]=Ke[d[1]];if(i[l]!==void 0&&m(T,n,`Duplicate ${d[1]}.`,c+1),l==="runtimeRequirements")i[l]=P(d[2],
76
76
  T,n,"Inspector runtime",c+1);else if(l==="argv")i[l]=D(d[2],T,n,"Inspector command",c+1);else if(l==="entryFiles"||l==="\
77
77
  requiredFiles")i[l]=b(d[2],T,n,d[1],c+1).map(g=>w(g,T,n,d[1],c+1));else{let[g]=b(d[2],T,n,d[1],c+1,{count:1});if(l==="wo\
78
78
  rkdir")i[l]=w(g,T,n,"Inspector directory",c+1);else if(l==="previewLocator")i[l]=Pt(g,n,c+1);else{let E=Number(g),_=l===
79
79
  "timeout"?Nt:Ct;(!/^[1-9][0-9]*$/u.test(g)||!Number.isSafeInteger(E)||E>_)&&m(T,n,`${d[1]} must be from 1 to ${_}.`,c+1),
80
80
  i[l]=l==="timeout"?E*1e3:E}}}return o(),s.length||m(T,n,"Use an Inspector entry or - Nothing."),s}function Pt(e,t,n){return w(
81
- e,T,t,"Preview locator",n,{allowRoot:!1}),e.endsWith(".js")||m(T,t,"Preview locator must name a .js file.",n),e}function Ds(e,t){
82
- return e[t-1]==="node_modules"&&!e[t].startsWith("@")||e[t-2]==="node_modules"&&e[t-1].startsWith("@")}async function Ps(e,t){
83
- Pt(t,ye);let n=i=>m(T,ye,`Preview locator \`${t}\` ${i}.`),s=t.split("/"),r;try{let i=await Ke(e),o=i,c=!1;for(let[u,p]of s.
84
- entries())o=Rt.join(o,p),(await Os(o)).isSymbolicLink()&&((c||u===s.length-1||!Ds(s,u))&&n("must not be or pass through \
85
- a symlink"),o=i=await Ke(o),(await ks(i)).isDirectory()||n("links a package that is not a folder"),c=!0);(await Ke(o)!==
86
- o||!o.startsWith(`${i}${Rt.sep}`))&&n("must not be or pass through a symlink"),r=await Rs(o,Ot.O_RDONLY|Ot.O_NOFOLLOW);let a=await r.
87
- stat();return a.isFile()||n("must be a regular file"),a.size>kt&&n(`must be at most ${kt} bytes`),{path:t,source:await r.
81
+ e,T,t,"Preview locator",n,{allowRoot:!1}),e.endsWith(".js")||m(T,t,"Preview locator must name a .js file.",n),e}function Ps(e,t){
82
+ return e[t-1]==="node_modules"&&!e[t].startsWith("@")||e[t-2]==="node_modules"&&e[t-1].startsWith("@")}async function $s(e,t){
83
+ Pt(t,ye);let n=i=>m(T,ye,`Preview locator \`${t}\` ${i}.`),s=t.split("/"),r;try{let i=await Ye(e),o=i,c=!1;for(let[u,p]of s.
84
+ entries())o=kt.join(o,p),(await ks(o)).isSymbolicLink()&&((c||u===s.length-1||!Ps(s,u))&&n("must not be or pass through \
85
+ a symlink"),o=i=await Ye(o),(await As(i)).isDirectory()||n("links a package that is not a folder"),c=!0);(await Ye(o)!==
86
+ o||!o.startsWith(`${i}${kt.sep}`))&&n("must not be or pass through a symlink"),r=await Rs(o,Ot.O_RDONLY|Ot.O_NOFOLLOW);let a=await r.
87
+ stat();return a.isFile()||n("must be a regular file"),a.size>Rt&&n(`must be at most ${Rt} bytes`),{path:t,source:await r.
88
88
  readFile("utf8")}}catch(i){throw(i?.code==="ENOENT"||i?.code==="ENOTDIR")&&n("is not a file in this project"),i?.code===
89
89
  "ELOOP"&&n("must not be or pass through a symlink"),i}finally{await r?.close()}}function $t(e){let t=e.status==="ready"?
90
90
  Dt(e.lines):[];for(let n of t)n.runtimeRequirements.some(s=>!e.components.includes(s))&&m(T,ye,"Inspector runtimes must \
91
- be selected in Stack.");return{contract:As,status:e.status,stackHash:e.stackHash,inspectors:t,recipeHash:N(t),diagnostics:e.
92
- diagnostics||[]}}var yo=Object.freeze({parseVibe64ArchitectureInspectionLines:Dt});var $s="vibe64.architecture-layout.v1",xt="Architecture layout",U="VIBE64_ARCHITECTURE_LAYOUT_INVALID",Xe=Object.freeze(
91
+ be selected in Stack.");return{contract:Ns,status:e.status,stackHash:e.stackHash,inspectors:t,recipeHash:N(t),diagnostics:e.
92
+ diagnostics||[]}}var _o=Object.freeze({parseVibe64ArchitectureInspectionLines:Dt});var xs="vibe64.architecture-layout.v1",xt="Architecture layout",U="VIBE64_ARCHITECTURE_LAYOUT_INVALID",Xe=Object.freeze(
93
93
  ["layer","libraries","support"]);function Vt(e,t={}){let{path:n="genesis/stack.md#Architecture layout"}=t;if(Array.isArray(
94
94
  e)||m(U,n,"Expected exact Stack section lines."),S(e))return[];let s=[],r=new Set,i=new Set,o;function c(){o&&((!o.kind||
95
95
  !o.purpose||!o.subsystems.length)&&m(U,n,`${o.id} needs Kind, Purpose and at least one Subsystem.`),s.push(o))}for(let[a,
@@ -99,15 +99,15 @@ r.has(d[1])&&m(U,n,"Duplicate group id.",a+1),r.add(d[1]),o={id:d[1],title:d[2],
99
99
  if(l[1]==="Subsystem"){let E=w(g[0],U,n,"Subsystem root",a+1);i.has(E)&&m(U,n,"Each directory root may be placed only on\
100
100
  ce.",a+1),i.add(E),o.subsystems.push({root:E})}else{let E=l[1].toLowerCase();o[E]!==void 0&&m(U,n,`Duplicate ${l[1]}.`,a+
101
101
  1),E==="kind"&&!Xe.includes(g[0])&&m(U,n,`Kind must be ${Xe.slice(0,-1).join(", ")} or ${Xe.at(-1)}.`,a+1),o[E]=g[0]}}return c(),
102
- s.length||m(U,n,"Use a Group entry or - Nothing."),s}function Lt(e){return{contract:$s,status:e.status,stackHash:e.stackHash,
103
- groups:e.status==="ready"?Vt(e.lines):[],diagnostics:e.diagnostics||[]}}var _o=Object.freeze({parseVibe64ArchitectureLayoutLines:Vt});import{existsSync as Qn}from"node:fs";import{readFile as yr}from"node:fs/promises";import{createRequire as wr}from"node:module";
104
- import B from"node:path";var xs="STACK_PROJECT_CONTRACTS_INCOMPLETE",Mt="STACK_SECTION_AMBIGUOUS",Vs=Object.freeze([xs,Mt]);function Ls(e){return Vs.
105
- includes(String(e?.code||"").trim())}var Je="genesis/stack.md",Ms=Object.freeze(["GIT_","PROCESS_","HOST_CONTEXT_"]);function js(e){
106
- return e instanceof SyntaxError?!0:e?.name!=="GenesisError"?!1:!Ms.some(t=>String(e.code).startsWith(t))}function Gs(e){
102
+ s.length||m(U,n,"Use a Group entry or - Nothing."),s}function Lt(e){return{contract:xs,status:e.status,stackHash:e.stackHash,
103
+ groups:e.status==="ready"?Vt(e.lines):[],diagnostics:e.diagnostics||[]}}var Oo=Object.freeze({parseVibe64ArchitectureLayoutLines:Vt});import{existsSync as es}from"node:fs";import{readFile as Sr}from"node:fs/promises";import{createRequire as _r}from"node:module";
104
+ import W from"node:path";var Vs="STACK_PROJECT_CONTRACTS_INCOMPLETE",Mt="STACK_SECTION_AMBIGUOUS",Ls=Object.freeze([Vs,Mt]);function Ms(e){return Ls.
105
+ includes(String(e?.code||"").trim())}var Je="genesis/stack.md",js=Object.freeze(["GIT_","PROCESS_","HOST_CONTEXT_"]);function Gs(e){
106
+ return e instanceof SyntaxError?!0:e?.name!=="GenesisError"?!1:!js.some(t=>String(e.code).startsWith(t))}function Us(e){
107
107
  let{path:t="",line:n,observed:s}=e.details||{},r=Number.isSafeInteger(n)?` (line ${n}${t===Je?" of its section":""})`:"",
108
- i=t&&(r||!e.message.includes(t))?`${t}${r}: `:"",o=typeof s=="string"?` Found: "${s}".`:"";return`${i}${e.message}${o}`}import*as ge from"genesis-compiler";import{randomUUID as Xs}from"node:crypto";import{mkdir as Js,mkdtemp as Zs,readFile as Qs,rename as ei,rm as Wt,writeFile as ti}from"node:fs/promises";
109
- import ni from"node:os";import Qe from"node:path";function L(e){return String(e||"").trim()}var Us=Object.freeze(["main","temporary"]),jt=Object.freeze(["managedDatabaseRefresh","managedEnvironment","managedGit",
110
- "managedPreview"]),Gt=Object.freeze(["managedPages"]),Bs=64*1024,Ws=Object.freeze(["When user input is necessary, ask no\
108
+ i=t&&(r||!e.message.includes(t))?`${t}${r}: `:"",o=typeof s=="string"?` Found: "${s}".`:"";return`${i}${e.message}${o}`}import*as ge from"genesis-compiler";import{randomUUID as Js}from"node:crypto";import{mkdir as Zs,mkdtemp as Qs,readFile as ei,rename as ti,rm as Bt,writeFile as ni}from"node:fs/promises";
109
+ import si from"node:os";import Qe from"node:path";function L(e){return String(e||"").trim()}var Ws=Object.freeze(["main","temporary"]),jt=Object.freeze(["managedDatabaseRefresh","managedEnvironment","managedGit",
110
+ "managedPreview"]),Gt=Object.freeze(["managedPages"]),Bs=64*1024,Hs=Object.freeze(["When user input is necessary, ask no\
111
111
  more than three concise, high-impact questions at once.","Put multiple questions on separate lines as `[1] Question`, `\
112
112
  [2] Question`, and so on.","For a small fixed set of useful choices, put `Possible answers:` and a short bullet list dir\
113
113
  ectly beneath its own question, before the next one; never collect several questions' answers into one trailing list.","\
@@ -120,7 +120,7 @@ Possible answers:
120
120
  [2] Tell the main agent before changes?
121
121
  Possible answers:
122
122
  - Yes, tell main first
123
- - No, proceed independently`]),Hs=Object.freeze(["The Vibe64-managed preview is the canonical application server; never \
123
+ - No, proceed independently`]),zs=Object.freeze(["The Vibe64-managed preview is the canonical application server; never \
124
124
  start a duplicate or replacement server. If it is unavailable, report that blocker. Describe only rendered browser evide\
125
125
  nce.","When adopting an authenticated app, or when its login blocks Preview inspection, inspect identity support/names w\
126
126
  ith `vibe64-helper preview status`; prefer `vibe64-helper preview browser identity <configured-name>` to requesting pass\
@@ -181,7 +181,7 @@ d>`, which waits for cleanup/restoration; retry if cleanup needs attention. Neve
181
181
  nd reports kernel task denials or a resource incident, report the blocker with its diagnostic and incident ID and ask th\
182
182
  e platform operator to inspect that evidence before retrying; never raise test timeouts or weaken assertions to work aro\
183
183
  und a process/thread limit. A generic browser timeout without resource evidence does not establish a platform cause."]),
184
- zs=Object.freeze(['Pages: `vibe64-helper pages publish <file.html|folder> [--title "Title"]` publishes an HTML page (one\
184
+ Fs=Object.freeze(['Pages: `vibe64-helper pages publish <file.html|folder> [--title "Title"]` publishes an HTML page (one\
185
185
  file, or a folder with index.html and its own scripts, styles, data and images) that everyone with access to this proje\
186
186
  ct can open from Vibe64\'s Pages list; `vibe64-helper pages update <page-id> <file.html|folder>` gives a page a new versi\
187
187
  on under the same link (it keeps ten; `vibe64-helper pages revert <page-id> <version>` brings one back); `vibe64-helper \
@@ -202,7 +202,7 @@ ipt can gather the data; use --prompt only when gathering it needs judgement.","
202
202
  er pages list`: when a page about the same subject already exists, update it instead of making a new one.","Do not offer\
203
203
  pages for quick answers, code changes, or documents that belong in the repository. Offer at most once per topic; do not\
204
204
  nag.","Everyone with access to the project can open a page: never put secrets in one, or anything not every project mem\
205
- ber should see."]),Fs=Object.freeze(["Each managed shell command receives current development Env from Vibe64, including\
205
+ ber should see."]),qs=Object.freeze(["Each managed shell command receives current development Env from Vibe64, including\
206
206
  declared resource bindings; use them in ordinary commands. Do not build environment injection or copy managed credentia\
207
207
  ls into source. Resource provisioning and application migrations remain separate preparation steps.","Use `vibe64-helper\
208
208
  env status [development|staging|all]` to inspect configured key names without revealing values.","Pipe an available val\
@@ -219,18 +219,18 @@ eds generated (such as an application key) by generating it with the framework's
219
219
  helper env set <scope> <KEY> --secret`. Never write it into a generated `.env` file: Vibe64 regenerates that file from E\
220
220
  nv."]);function Ut(e,t){if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError(`${t} must be an object.`);return e}
221
221
  function Ze(e,t,n){let s=new Set(t),r=Object.keys(e).filter(i=>!s.has(i));if(r.length>0)throw new TypeError(`${n} contai\
222
- ns unsupported fields: ${r.join(", ")}.`)}function Bt(e){if(Ze(e,["conversationKind","scope","session","hostGuidance"],"\
222
+ ns unsupported fields: ${r.join(", ")}.`)}function Wt(e){if(Ze(e,["conversationKind","scope","session","hostGuidance"],"\
223
223
  Vibe64 session context"),e.hostGuidance!==void 0&&(typeof e.hostGuidance!="string"||Buffer.byteLength(e.hostGuidance,"ut\
224
- f8")>1024))throw new TypeError("Vibe64 host guidance must be bounded text supplied by the host.");if(!Us.includes(e.conversationKind))
224
+ f8")>1024))throw new TypeError("Vibe64 host guidance must be bounded text supplied by the host.");if(!Ws.includes(e.conversationKind))
225
225
  throw new TypeError("Vibe64 session context has an unknown conversationKind.");let t=Ut(e.session,"Vibe64 session capabi\
226
226
  lities");Ze(t,[...jt,...Gt],"Vibe64 session capabilities");let n=Object.fromEntries(jt.map(s=>{if(typeof t[s]!="boolean")
227
227
  throw new TypeError(`Vibe64 session capability ${s} must be boolean.`);return[s,t[s]]}));for(let s of Gt){if(t[s]!==void 0&&
228
228
  typeof t[s]!="boolean")throw new TypeError(`Vibe64 session capability ${s} must be boolean.`);t[s]===!0&&(n[s]=!0)}return{
229
- conversationKind:e.conversationKind,scope:"session",...e.hostGuidance?{hostGuidance:e.hostGuidance}:{},session:n}}function qs(e){
229
+ conversationKind:e.conversationKind,scope:"session",...e.hostGuidance?{hostGuidance:e.hostGuidance}:{},session:n}}function Ys(e){
230
230
  Ze(e,["scope","stableContext"],"Vibe64 ephemeral context");let t=String(e.stableContext||"").trim();if(!t||t.length>Bs)throw new TypeError(
231
231
  "Vibe64 ephemeral context requires bounded stableContext.");return{scope:"ephemeral",stableContext:t}}function Ks(e){if(e.
232
- scope==="session")return Bt(e);if(e.scope==="ephemeral")return qs(e);throw new TypeError("The Vibe64 driver supports ses\
233
- sion and ephemeral scopes only.")}function Ys(e){let{conversationKind:t,session:n,hostGuidance:s=""}=Bt(e);return["VIBE6\
232
+ scope==="session")return Wt(e);if(e.scope==="ephemeral")return Ys(e);throw new TypeError("The Vibe64 driver supports ses\
233
+ sion and ephemeral scopes only.")}function Xs(e){let{conversationKind:t,session:n,hostGuidance:s=""}=Wt(e);return["VIBE6\
234
234
  4 CONVERSATION CONTEXT","",...t==="main"?["This is the main Vibe64 conversation for the selected session worktree."]:["T\
235
235
  his is a user-visible temporary conversation in the selected session worktree, with the same tools and project access as\
236
236
  main chat.","Its messages stay out of main History. Closing this conversation preserves project edits and removes only \
@@ -261,145 +261,153 @@ o 30 minutes); if your tool stops it early, Update carries on: read `vibe64-help
261
261
  ory.updateFirst.reason` is no longer `running`. Update may stop at files that clash with the saved version. If it does, \
262
262
  stop your other work and resolve them first, as it explains, or, if you can't now, leave them (Update leaves a repositor\
263
263
  y with clashing files unchanged) and tell the person. Then re-read the files it lists, and run `vibe64-helper preview re\
264
- start --wait` when it says Preview still runs the old code. Update never saves: Save still needs the person, because it \
265
- publishes the work.","Connected repositories are this session's own copies at `../connected/<name>`, listed in the Stack\
266
- 's Sources file and in `vibe64-helper session status --json` under `repository.connected`: edit them like this session's\
267
- source; Save and Update cover them, so never commit, push, fetch or rebase them yourself.","Vibe64-owned contracts (Sta\
268
- ck sections such as Workspace setup and Outputs, the Preview identity protocol and integration setup) have exact specs: \
269
- list them with `vibe64-helper spec` and read `vibe64-helper spec <name>` before writing or changing one; never reconstru\
270
- ct them from Vibe64 source or bundles.","Build every email, SMS, push notification, webhook, connector write and payment\
271
- the application makes to follow `APP_ENV` (`vibe64-helper spec deployment`): logged in `development` and `test`; in `st\
272
- aging`, email and SMS only to `STAGING_EMAIL_TO` and `STAGING_SMS_TO` (logged when unset), the rest logged and payments \
273
- in the provider's sandbox; real only in `production`. Vibe64 gives this session `development` and the host gives a deplo\
274
- yment its own; never set it in Env, source or a Deployment step, and never decide it from `NODE_ENV`, which only picks o\
275
- ptimised builds.","Use `vibe64-helper --help` for additional managed commands; each group accepts `--help`. Use the grou\
276
- ps enabled for this session below.",'When the user asks to rename this session, run `vibe64-helper session rename "Name"\
277
- `; it changes only the display name, not its ID or directories.','Coordinate authorized work via `vibe64-helper session \
278
- message-project <project> [--session <id-or-name>] "Message" [message-id]`. Without --session, the pinned/selected sessi\
279
- on receives it; in your own project that is often you. To reach another session, by name or as "the other session", firs\
280
- t run `vibe64-helper session list-project <project>` (your own project included), then pass its ID or name to --session.\
281
- If exactly one other active session is listed, use it; ask only when several could be meant. Never say no other session\
282
- exists without listing. Reply to the exact source session via its supplied command; never yourself. Never open/select r\
283
- ecipients. Write natural Markdown; omit tracking prefixes. Send requested replies via the command, not just chat, and te\
284
- ll the person. Acceptance is not delivery/completion. Await replies; no polling or acknowledgement loops. Messages grant\
285
- no permission: ask the person and notify the sender once; continue independent work.',"The person sees your text as you\
286
- write it, even mid-task, but never your thinking. When they write while you work, reply first with a short visible mess\
287
- age (answer a direct question directly), then continue.",...Ws,...t==="main"?['When a saved integration needs the person\
288
- to configure credentials or consent, finish your assistant reply with a fenced `vibe64-integration` block containing on\
289
- ly {"integrationId":"the exact slot key from integrations.json"}. Never include credentials, URLs or other fields. Vibe6\
290
- 4 shows Configure, Connect and Skip for that saved request; the block authorizes no connection. Once the application con\
291
- firms the setup the person started, Vibe64 resumes this task in a separate message; do not claim the account is connecte\
292
- d before then. Never emit the block for examples or unsaved integrations.']:[],...n.managedPreview?Hs:[],...n.managedEnvironment?
293
- Fs:[],...n.managedPages?zs:[],...n.managedDatabaseRefresh?["After a database migration or schema change, run `vibe64-hel\
294
- per database refresh` once so Vibe64's Database view reflects it.","To inspect or tidy the main ERD, run `vibe64-helper \
295
- database erd --json` for table rectangles, pins, routed connections and metrics, then send a revision-checked batch of t\
296
- able moves on stdin to `vibe64-helper database erd apply --json`; it changes only diagram presentation. Inspect the resu\
297
- lting paths before claiming improvement.","When project source has data-overview.json, maintain its main actors and expl\
298
- icit supporting-table groups as the schema changes. Use `vibe64-helper database overview --json` for the current schema,\
299
- grouping, coverage and exact format instructions. Preserve authored groupings, classify new tables, fix renamed/removed\
300
- references, and check coverage afterward. When asked to create a Data overview, use the same command and relevant appli\
301
- cation source; no one-hop membership rule applies. Never invent foreign keys or cardinalities."]:[],...n.managedGit?["Us\
302
- e the managed `git` and `gh` commands on PATH. Do not bypass them with host binaries, a stripped PATH, or alternate cred\
303
- entials.","For attachments and inline images that GitHub stores for issues (tickets), pull requests or comments, use aut\
304
- henticated managed `gh api` with the original attachment URL, save the response to a local file and inspect it before re\
305
- porting its contents. Never use unauthenticated curl/wget, User-Agent experiments or extracted credentials; an unauthent\
306
- icated 404 does not prove a private attachment is missing.","After changing GitHub issues, comments, labels or pull requ\
307
- ests, run `vibe64-helper github refresh` once so Vibe64's Issues/PR view reflects it.","When linking an issue in this pr\
308
- oject's repository, run `vibe64-helper github issue-link <number>` and use its returned Vibe64 path exactly, including t\
309
- he /app prefix, as the primary Markdown link destination; it navigates in-app. You may include the GitHub URL as a secon\
310
- dary link. Never guess the project slug or host; issues in other repositories keep their GitHub links.","Report authenti\
311
- cation or transport failures directly; do not inspect credentials or invent another login path.","When a managed Git/Git\
312
- Hub command fails, tell the user which requested action failed, which earlier work is confirmed complete, what remains u\
313
- ndone or unconfirmed, and the next safe action. Retain the reported failure stage, execution budget and execution refere\
314
- nce when provided; do not expose credentials or dump raw output unnecessarily.","A timeout or transport failure does not\
315
- establish invalid authentication, exhausted AI quota, a GitHub outage or a suspension problem. Separate recorded facts \
316
- from hypotheses; say the cause is unknown when it is unproven. Recommend reconnection only when the reported error expli\
317
- citly calls for it.","If the diagnostic says commandSubmitted=false, the requested Git/GitHub action was not attempted. \
318
- After an execution timeout, lost response or unreadable response, its effects are unconfirmed: use a read-only check of \
319
- the affected Git/GitHub state before repeating any write. Never claim that a comment was posted or not posted, or that a\
320
- push succeeded or failed, from those errors alone. If verification is unavailable, report the outcome as unknown and st\
321
- op; do not repeat the write or claim a safe rollback."]:[]].join(`
322
- `)}function oe(e={}){let t=Ut(e,"Vibe64 driver input"),n=Ks(t);return n.scope==="session"?Ys(n):n.stableContext}async function Ht(e=""){let t=e||await Zs(Qe.join(ni.tmpdir(),"vibe64-genesis-context-"));await Js(t,{recursive:!0,mode:448});
323
- let n=Qe.join(t,"sessions.json"),s=new Map;try{let p=JSON.parse(await Qs(n,"utf8"));for(let d of p.sessions)oe(d.promptContext),
264
+ start --wait` when it says Preview still runs the old code. Update never saves.",t==="main"?"Save publishes this session\
265
+ 's work, and its connected repositories', to the project's main, where the project's other sessions update onto it. Whil\
266
+ e your turn's instructions say Vibe64 saves the work automatically, save each finished and checked stage of a plan, or a\
267
+ finished piece of work, with `vibe64-helper session save` (never mid-edit; a long time limit, as for Update), after `vi\
268
+ be64-helper session update` when `repository.updateFirst` says this session is behind. It is the Save button's own Save \
269
+ and runs no pass; it answers with the commit and files saved, or why not and what to do next. Once it saves, tell the se\
270
+ ssions you are working with (`vibe64-helper session message-project`) to run `vibe64-helper session update`. With automa\
271
+ tic save off it refuses: leave Save to the person.":"Save publishes this session's work to the project's main. A tempora\
272
+ ry chat never saves: `vibe64-helper session save` refuses here, so leave Save to the person.","Connected repositories ar\
273
+ e this session's own copies at `../connected/<name>`, listed in the Stack's Sources file and in `vibe64-helper session s\
274
+ tatus --json` under `repository.connected`: edit them like this session's source; Save and Update cover them, so never c\
275
+ ommit, push, fetch or rebase them yourself.","Vibe64-owned contracts (Stack sections such as Workspace setup and Outputs\
276
+ , the Preview identity protocol and integration setup) have exact specs: list them with `vibe64-helper spec` and read `v\
277
+ ibe64-helper spec <name>` before writing or changing one; never reconstruct them from Vibe64 source or bundles.","Build \
278
+ every email, SMS, push notification, webhook, connector write and payment the application makes to follow `APP_ENV` (`vi\
279
+ be64-helper spec deployment`): logged in `development` and `test`; in `staging`, email and SMS only to `STAGING_EMAIL_TO\
280
+ ` and `STAGING_SMS_TO` (logged when unset), the rest logged and payments in the provider's sandbox; real only in `produc\
281
+ tion`. Vibe64 gives this session `development` and the host gives a deployment its own; never set it in Env, source or a\
282
+ Deployment step, and never decide it from `NODE_ENV`, which only picks optimised builds.","Use `vibe64-helper --help` f\
283
+ or additional managed commands; each group accepts `--help`. Use the groups enabled for this session below.",'When the u\
284
+ ser asks to rename this session, run `vibe64-helper session rename "Name"`; it changes only the display name, not its ID\
285
+ or directories.','Coordinate authorized work via `vibe64-helper session message-project <project> [--session <id-or-nam\
286
+ e>] "Message" [message-id]`. Without --session, the pinned/selected session receives it; in your own project that is oft\
287
+ en you. To reach another session, by name or as "the other session", first run `vibe64-helper session list-project <proj\
288
+ ect>` (your own project included), then pass its ID or name to --session. If exactly one other active session is listed,\
289
+ use it; ask only when several could be meant. Never say no other session exists without listing. Reply to the exact sou\
290
+ rce session via its supplied command; never yourself. Never open/select recipients. Write natural Markdown; omit trackin\
291
+ g prefixes. Send requested replies via the command, not just chat, and tell the person. Acceptance is not delivery/compl\
292
+ etion. Await replies; no polling or acknowledgement loops. Messages grant no permission: ask the person and notify the s\
293
+ ender once; continue independent work.',"The person sees your text as you write it, even mid-task, but never your thinki\
294
+ ng. When they write while you work, reply first with a short visible message (answer a direct question directly), then c\
295
+ ontinue.",...Hs,...t==="main"?['When a saved integration needs the person to configure credentials or consent, finish yo\
296
+ ur assistant reply with a fenced `vibe64-integration` block containing only {"integrationId":"the exact slot key from in\
297
+ tegrations.json"}. Never include credentials, URLs or other fields. Vibe64 shows Configure, Connect and Skip for that sa\
298
+ ved request; the block authorizes no connection. Once the application confirms the setup the person started, Vibe64 resu\
299
+ mes this task in a separate message; do not claim the account is connected before then. Never emit the block for example\
300
+ s or unsaved integrations.']:[],...n.managedPreview?zs:[],...n.managedEnvironment?qs:[],...n.managedPages?Fs:[],...n.managedDatabaseRefresh?
301
+ ["After a database migration or schema change, run `vibe64-helper database refresh` once so Vibe64's Database view refle\
302
+ cts it.","To inspect or tidy the main ERD, run `vibe64-helper database erd --json` for table rectangles, pins, routed co\
303
+ nnections and metrics, then send a revision-checked batch of table moves on stdin to `vibe64-helper database erd apply -\
304
+ -json`; it changes only diagram presentation. Inspect the resulting paths before claiming improvement.","When project so\
305
+ urce has data-overview.json, maintain its main actors and explicit supporting-table groups as the schema changes. Use `v\
306
+ ibe64-helper database overview --json` for the current schema, grouping, coverage and exact format instructions. Preserv\
307
+ e authored groupings, classify new tables, fix renamed/removed references, and check coverage afterward. When asked to c\
308
+ reate a Data overview, use the same command and relevant application source; no one-hop membership rule applies. Never i\
309
+ nvent foreign keys or cardinalities."]:[],...n.managedGit?["Use the managed `git` and `gh` commands on PATH. Do not bypa\
310
+ ss them with host binaries, a stripped PATH, or alternate credentials.","For attachments and inline images that GitHub s\
311
+ tores for issues (tickets), pull requests or comments, use authenticated managed `gh api` with the original attachment U\
312
+ RL, save the response to a local file and inspect it before reporting its contents. Never use unauthenticated curl/wget,\
313
+ User-Agent experiments or extracted credentials; an unauthenticated 404 does not prove a private attachment is missing.",
314
+ "After changing GitHub issues, comments, labels or pull requests, run `vibe64-helper github refresh` once so Vibe64's Is\
315
+ sues/PR view reflects it.","When linking an issue in this project's repository, run `vibe64-helper github issue-link <nu\
316
+ mber>` and use its returned Vibe64 path exactly, including the /app prefix, as the primary Markdown link destination; it\
317
+ navigates in-app. You may include the GitHub URL as a secondary link. Never guess the project slug or host; issues in o\
318
+ ther repositories keep their GitHub links.","Report authentication or transport failures directly; do not inspect creden\
319
+ tials or invent another login path.","When a managed Git/GitHub command fails, tell the user which requested action fail\
320
+ ed, which earlier work is confirmed complete, what remains undone or unconfirmed, and the next safe action. Retain the r\
321
+ eported failure stage, execution budget and execution reference when provided; do not expose credentials or dump raw out\
322
+ put unnecessarily.","A timeout or transport failure does not establish invalid authentication, exhausted AI quota, a Git\
323
+ Hub outage or a suspension problem. Separate recorded facts from hypotheses; say the cause is unknown when it is unprove\
324
+ n. Recommend reconnection only when the reported error explicitly calls for it.","If the diagnostic says commandSubmitte\
325
+ d=false, the requested Git/GitHub action was not attempted. After an execution timeout, lost response or unreadable resp\
326
+ onse, its effects are unconfirmed: use a read-only check of the affected Git/GitHub state before repeating any write. Ne\
327
+ ver claim that a comment was posted or not posted, or that a push succeeded or failed, from those errors alone. If verif\
328
+ ication is unavailable, report the outcome as unknown and stop; do not repeat the write or claim a safe rollback."]:[]].
329
+ join(`
330
+ `)}function ae(e={}){let t=Ut(e,"Vibe64 driver input"),n=Ks(t);return n.scope==="session"?Xs(n):n.stableContext}async function Ht(e=""){let t=e||await Qs(Qe.join(si.tmpdir(),"vibe64-genesis-context-"));await Zs(t,{recursive:!0,mode:448});
331
+ let n=Qe.join(t,"sessions.json"),s=new Map;try{let p=JSON.parse(await ei(n,"utf8"));for(let d of p.sessions)ae(d.promptContext),
324
332
  s.set(d.upstreamSessionId,d)}catch(p){if(p.code!=="ENOENT")throw p}let r=Promise.resolve(),i=!1;async function o(p){let d=Qe.
325
- join(t,`.sessions.${process.pid}.${Xs()}.tmp`);try{await ti(d,JSON.stringify({sessions:[...p.values()]}),{flag:"wx",mode:384}),
326
- await ei(d,n)}finally{await Wt(d,{force:!0})}}await o(s);function c(p){return structuredClone(s.get(p))}async function a(p,d,l=""){
333
+ join(t,`.sessions.${process.pid}.${Js()}.tmp`);try{await ni(d,JSON.stringify({sessions:[...p.values()]}),{flag:"wx",mode:384}),
334
+ await ti(d,n)}finally{await Bt(d,{force:!0})}}await o(s);function c(p){return structuredClone(s.get(p))}async function a(p,d,l=""){
327
335
  if(i)throw new Error("The Genesis host context registry is closed.");if(typeof p!="string"||!p.trim())throw new TypeError(
328
- "Genesis host context requires a native conversation ID.");let g=structuredClone(d);oe(g);let E={upstreamSessionId:p,workdir:l,
329
- promptContext:g},_=r.catch(()=>{}).then(async()=>{if(JSON.stringify(s.get(p))===JSON.stringify(E))return;let R=new Map(s);
330
- R.set(p,E),await o(R),s=R});r=_,await _}async function u(){i=!0,await r.catch(()=>{}),s.clear(),e||await Wt(t,{recursive:!0,
336
+ "Genesis host context requires a native conversation ID.");let g=structuredClone(d);ae(g);let E={upstreamSessionId:p,workdir:l,
337
+ promptContext:g},_=r.catch(()=>{}).then(async()=>{if(JSON.stringify(s.get(p))===JSON.stringify(E))return;let k=new Map(s);
338
+ k.set(p,E),await o(k),s=k});r=_,await _}async function u(){i=!0,await r.catch(()=>{}),s.clear(),e||await Bt(t,{recursive:!0,
331
339
  force:!0})}return Object.freeze({registryPath:n,get:c,register:a,close:u})}var O="VIBE64_DEPLOYMENT_INVALID",we=/^- (Prepare|Build|Migrate|Serve) `([^`\r\n]+)`:[ \t]+(.+)$/u,Se="- Recreate on res\
332
- tore: ",_e="- Generated secrets: ",Ie="- Setup code: ",q="- Sandbox allows: ",Z="- Packages: ",zt=200,si=/^[A-Za-z0-9_][A-Za-z0-9_.+-]{0,127}(?:\^[A-Za-z_][A-Za-z0-9_-]{0,31})?$/u,
333
- Q="- Instances: up to ",J=100,ae=Object.freeze(["fuse","gvisor"]),Te=/^[A-Z_][A-Z0-9_]*$/u,pe=Object.freeze({APP_ENV:"De\
340
+ tore: ",_e="- Generated secrets: ",Ie="- Setup code: ",q="- Sandbox allows: ",Z="- Packages: ",zt=200,ii=/^[A-Za-z0-9_][A-Za-z0-9_.+-]{0,127}(?:\^[A-Za-z_][A-Za-z0-9_-]{0,31})?$/u,
341
+ Q="- Instances: up to ",J=100,ce=Object.freeze(["fuse","gvisor"]),Te=/^[A-Z_][A-Z0-9_]*$/u,pe=Object.freeze({APP_ENV:"De\
334
342
  ployment never sets APP_ENV: the host gives every step the environment it deploys to. Remove APP_ENV from Deployment.",SIDE_EFFECTS:"\
335
- SIDE_EFFECTS was replaced by APP_ENV, which the host gives every step. Remove SIDE_EFFECTS from Deployment."}),ce=Object.
336
- freeze({prepare:0,build:1,migrate:2,serve:3}),ee=Object.keys(ce).map(e=>e[0].toUpperCase()+e.slice(1)),Oe=Object.freeze(
337
- ["- Workdir: `path`","- Runtimes: `runtime`...",`${Se}\`glob\`...`,`${_e}\`NAME\`...`,`${Ie}\`NAME\``,`${q}${ae.map(e=>`\
343
+ SIDE_EFFECTS was replaced by APP_ENV, which the host gives every step. Remove SIDE_EFFECTS from Deployment."}),ue=Object.
344
+ freeze({prepare:0,build:1,migrate:2,serve:3}),ee=Object.keys(ue).map(e=>e[0].toUpperCase()+e.slice(1)),Oe=Object.freeze(
345
+ ["- Workdir: `path`","- Runtimes: `runtime`...",`${Se}\`glob\`...`,`${_e}\`NAME\`...`,`${Ie}\`NAME\``,`${q}${ce.map(e=>`\
338
346
  \`${e}\``).join(" ")}`,`${Z}\`package\`...`,`${Q}\`count\``,"- Ready when: `GET` `/path` returns `200`",`- ${ee.join("|")}\
339
347
  \`label\`: \`command\` \`argument\`...`]);function f(e,t,n,s={}){m(O,e,t,n,s)}function Ft(e,t,n){return ve(e.slice(Se.length),
340
348
  O,t,"Deployment Recreate on restore paths",n)}function qt(e,t,n){let s=b(e.slice(_e.length),O,t,"Deployment Generated se\
341
349
  crets",n);return s.some(r=>!Te.test(r))&&f(t,"Deployment Generated secrets must be uppercase environment variable names.",
342
- n),new Set(s).size!==s.length&&f(t,"Deployment contains a duplicate Generated secrets name.",n),s}function Kt(e,t,n){let[
350
+ n),new Set(s).size!==s.length&&f(t,"Deployment contains a duplicate Generated secrets name.",n),s}function Yt(e,t,n){let[
343
351
  s]=b(e.slice(Ie.length),O,t,"Deployment Setup code",n,{count:1});return Te.test(s)||f(t,"Deployment Setup code must be a\
344
- n uppercase environment variable name.",n),s}function Re(e,t,n){let s=b(e.slice(q.length),O,t,"Deployment Sandbox allows",
345
- n);return s.some(r=>!ae.includes(r))&&f(t,`Deployment Sandbox allows takes only ${ae.map(r=>`\`${r}\``).join(" and ")}.`,
346
- n),new Set(s).size!==s.length&&f(t,"Deployment Sandbox allows names an allowance twice.",n),[...s].sort()}function ke(e,t,n){
352
+ n uppercase environment variable name.",n),s}function ke(e,t,n){let s=b(e.slice(q.length),O,t,"Deployment Sandbox allows",
353
+ n);return s.some(r=>!ce.includes(r))&&f(t,`Deployment Sandbox allows takes only ${ce.map(r=>`\`${r}\``).join(" and ")}.`,
354
+ n),new Set(s).size!==s.length&&f(t,"Deployment Sandbox allows names an allowance twice.",n),[...s].sort()}function Re(e,t,n){
347
355
  let s=b(e.slice(Z.length),O,t,"Deployment Packages",n,{maximum:1/0});s.length>zt&&f(t,`Deployment Packages names at most\
348
- ${zt} packages.`,n);let r=s.find(i=>!si.test(i));return r!==void 0&&f(t,`Deployment Packages names packages as nixpkgs \
356
+ ${zt} packages.`,n);let r=s.find(i=>!ii.test(i));return r!==void 0&&f(t,`Deployment Packages names packages as nixpkgs \
349
357
  does, such as \`git\` or \`python313Packages.pip\`, or one output after ^, such as \`gcc-unwrapped^lib\`; ${JSON.stringify(
350
- r)} isn't one.`,n),new Set(s).size!==s.length&&f(t,"Deployment Packages names a package twice.",n),s}function Yt(e,t,n){
358
+ r)} isn't one.`,n),new Set(s).size!==s.length&&f(t,"Deployment Packages names a package twice.",n),s}function Kt(e,t,n){
351
359
  let[s]=b(e.slice(Q.length),O,t,"Deployment Instances",n,{count:1});return(!/^[1-9][0-9]{0,2}$/u.test(s)||Number(s)>J)&&f(
352
360
  t,`Deployment Instances is a whole number from 1 to ${J}, such as \`4\`.`,n),Number(s)}function Ae(e,t,n){let s=D(e[3],O,
353
361
  t,"Deployment command",n);s.some(i=>/\{(?:host|port)\}/u.test(i))&&f(t,"Deployment commands take no {host} or {port} pla\
354
362
  ceholders; Serve reads HOST and PORT from its environment.",n);let r=Object.keys(pe).find(i=>s.some(o=>o.startsWith(`${i}\
355
- =`)));return r&&f(t,pe[r],n),{label:y(e[2],O,t,"Deployment step label",n),argv:s,role:e[1].toLowerCase()}}var Zt=/^### Service `([^`\r\n]*)`:[ \t]+(.+)$/u,Qt=/^### Resource `([^`\r\n]*)`$/u,ii=/^[a-z][a-z0-9-]{0,15}$/u,ri=/^[A-Za-z][A-Za-z0-9_-]{0,39}$/u,
356
- Xt=8,oi=Object.freeze(["public","internal"]),ai=Object.freeze({"any instance":"any","each instance":"each"}),ci=/^- Production: `([^`\r\n]*)` instances?$/u,
357
- ui=/^- Instances: `([^`\r\n]*)` to `([^`\r\n]*)`$/u,pi=/^- Needs at least: `([^`\r\n]*)` vCPU, `([^`\r\n]*)` GiB memory$/u,
358
- li=/^- Reaches: `([^`\r\n]*)` as `([^`\r\n]*)`$/u,di=/^- Setting `([^`\r\n]*)`:[ \t]+(.+)$/u,et=e=>new RegExp(`^- ${e}: \
359
- \`([^\`\\r\\n]*)\`$`,"u"),mi=et("Exposure"),hi=et("Reached"),fi=et("Development"),en=Object.freeze(["local folder","own \
360
- bucket"]),gi=Object.freeze(["APP_ENV","SIDE_EFFECTS","HOST","PORT","APP_PUBLIC_URL","TRUSTED_PROXIES"]),Jt="V64_",tn=Object.
363
+ =`)));return r&&f(t,pe[r],n),{label:y(e[2],O,t,"Deployment step label",n),argv:s,role:e[1].toLowerCase()}}var Xt=/^[a-z][a-z0-9-]{0,15}$/u;var Qt=/^### Service `([^`\r\n]*)`:[ \t]+(.+)$/u,en=/^### Resource `([^`\r\n]*)`$/u,oi=Xt,ai=/^[A-Za-z][A-Za-z0-9_-]{0,39}$/u,
364
+ Jt=8,ci=Object.freeze(["public","internal"]),ui=Object.freeze({"any instance":"any","each instance":"each"}),pi=/^- Production: `([^`\r\n]*)` instances?$/u,
365
+ li=/^- Instances: `([^`\r\n]*)` to `([^`\r\n]*)`$/u,di=/^- Needs at least: `([^`\r\n]*)` vCPU, `([^`\r\n]*)` GiB memory$/u,
366
+ mi=/^- Reaches: `([^`\r\n]*)` as `([^`\r\n]*)`$/u,hi=/^- Setting `([^`\r\n]*)`:[ \t]+(.+)$/u,et=e=>new RegExp(`^- ${e}: \
367
+ \`([^\`\\r\\n]*)\`$`,"u"),fi=et("Exposure"),gi=et("Reached"),Ei=et("Development"),tn=Object.freeze(["local folder","own \
368
+ bucket"]),vi=Object.freeze(["APP_ENV","SIDE_EFFECTS","HOST","PORT","APP_PUBLIC_URL","TRUSTED_PROXIES"]),Zt="V64_",nn=Object.
361
369
  freeze(["### Service `id`: summary","### Resource `id`"]),tt=Object.freeze(["- Exposure: `public` or `internal`","- Serv\
362
370
  e `label`: `command` `argument`...","- Ready when: `GET` `/path` returns `200`","- Instances: `min` to `max`","- Needs a\
363
371
  t least: `N` vCPU, `N` GiB memory","- Production: `N` instances","- Reached: `any instance` or `each instance`","- Reach\
364
- es: `service` as `SETTING`","- Setting `NAME`: `value`",`${Z}\`package\`...`,`${q}${ae.map(e=>`\`${e}\``).join(" ")}`]),
365
- nn=Object.freeze([`- Development: ${en.map(e=>`\`${e}\``).join(" or ")}`]),Ei=Object.freeze(Oe.filter(e=>![q,Q,"- Ready \
366
- when: "].some(t=>e.startsWith(t))).map(e=>e.replace(`|${ee.at(-1)} `," ")));function vi(e){return gi.includes(e)?`${e} i\
367
- s a setting the host gives every service itself`:e.startsWith(Jt)?`${e} starts with ${Jt}, which names the facts the hos\
368
- t gives each instance`:""}function sn(e,t,n,s){let r=e[1];return ii.test(r)||f(t,`A service's id is a lowercase letter, \
372
+ es: `service` as `SETTING`","- Setting `NAME`: `value`",`${Z}\`package\`...`,`${q}${ce.map(e=>`\`${e}\``).join(" ")}`]),
373
+ sn=Object.freeze([`- Development: ${tn.map(e=>`\`${e}\``).join(" or ")}`]),bi=Object.freeze(Oe.filter(e=>![q,Q,"- Ready \
374
+ when: "].some(t=>e.startsWith(t))).map(e=>e.replace(`|${ee.at(-1)} `," ")));function yi(e){return vi.includes(e)?`${e} i\
375
+ s a setting the host gives every service itself`:e.startsWith(Zt)?`${e} starts with ${Zt}, which names the facts the hos\
376
+ t gives each instance`:""}function rn(e,t,n,s){let r=e[1];return oi.test(r)||f(t,`A service's id is a lowercase letter, \
369
377
  then up to 15 lowercase letters, digits and hyphens, such as \`web\`; ${JSON.stringify(r)} isn't one.`,n),s.some(i=>i.id===
370
- r)&&f(t,`Deployment declares service \`${r}\` twice.`,n),s.length===Xt&&f(t,`A Deployment declares at most ${Xt} service\
378
+ r)&&f(t,`Deployment declares service \`${r}\` twice.`,n),s.length===Jt&&f(t,`A Deployment declares at most ${Jt} service\
371
379
  s.`,n),{id:r,summary:y(e[2],O,t,"Service summary",n),line:n,lines:{},settingLines:{},exposure:"",reached:"",serve:null,readyWhen:null,
372
380
  instances:null,production:null,atLeast:null,reaches:[],settings:{},packages:[],sandboxAllowances:[]}}function le(e,{min:t=1,
373
- max:n=100}={}){return/^[1-9][0-9]{0,3}$/u.test(e)&&Number(e)>=t&&Number(e)<=n?Number(e):null}function rn(e,t,n,s){let r=c=>f(
381
+ max:n=100}={}){return/^[1-9][0-9]{0,3}$/u.test(e)&&Number(e)>=t&&Number(e)<=n?Number(e):null}function on(e,t,n,s){let r=c=>f(
374
382
  n,`Service \`${e.id}\`: ${c}`,s),i=c=>{Object.hasOwn(e.lines,c)&&r(`it has a second ${c} line.`),e.lines[c]=s},o=t.match(
375
383
  we);if(o){o[1]!=="Serve"&&r(`${o[1]} is the whole Deployment's, since one build serves every service: put it above the f\
376
384
  irst ### heading.`),i("Serve");let c=Ae(o,n,s);e.serve={label:c.label,argv:c.argv};return}if(t.startsWith("- Exposure: ")){
377
- i("Exposure"),e.exposure=t.match(mi)?.[1]??"",oi.includes(e.exposure)||r("Exposure is `public` or `internal`.");return}if(t.
378
- startsWith("- Reached: ")){i("Reached"),e.reached=ai[t.match(hi)?.[1]]??"",e.reached||r("Reached is `any instance` or `e\
379
- ach instance`.");return}if(t.startsWith("- Ready when: ")){i("Ready when");let c=re(t,O,n,`Service \`${e.id}\` readiness`,
385
+ i("Exposure"),e.exposure=t.match(fi)?.[1]??"",ci.includes(e.exposure)||r("Exposure is `public` or `internal`.");return}if(t.
386
+ startsWith("- Reached: ")){i("Reached"),e.reached=ui[t.match(gi)?.[1]]??"",e.reached||r("Reached is `any instance` or `e\
387
+ ach instance`.");return}if(t.startsWith("- Ready when: ")){i("Ready when");let c=oe(t,O,n,`Service \`${e.id}\` readiness`,
380
388
  s);e.readyWhen={method:c.method,path:c.path,status:c.status};return}if(t.startsWith("- Instances: ")){i("Instances");let c=t.
381
- match(ui),a=le(c?.[1]??"",{max:J}),u=le(c?.[2]??"",{max:J});(a===null||u===null||a>u)&&r(`Instances is a range of whole \
389
+ match(li),a=le(c?.[1]??"",{max:J}),u=le(c?.[2]??"",{max:J});(a===null||u===null||a>u)&&r(`Instances is a range of whole \
382
390
  numbers from 1 to ${J}, the least first, such as \`- Instances: \`1\` to \`6\`\`.`),e.instances={min:a,max:u};return}if(t.
383
- startsWith("- Needs at least: ")){i("Needs at least");let c=t.match(pi),a=le(c?.[1]??"",{max:1024}),u=le(c?.[2]??"",{max:4096});
391
+ startsWith("- Needs at least: ")){i("Needs at least");let c=t.match(di),a=le(c?.[1]??"",{max:1024}),u=le(c?.[2]??"",{max:4096});
384
392
  (a===null||u===null)&&r("Needs at least takes whole numbers of vCPUs and GiB, such as `- Needs at least: `2` vCPU, `4` G\
385
393
  iB memory`."),e.atLeast={vcpus:a,memoryGib:u};return}if(t.startsWith("- Production: ")){i("Production");let c=le(t.match(
386
- ci)?.[1]??"",{max:J});c===null&&r("Production says how many instances Production starts with, such as `- Production: `2`\
387
- instances`."),e.production=c;return}if(t.startsWith("- Reaches: ")){let c=t.match(li);c||r("Reaches names a service and\
394
+ pi)?.[1]??"",{max:J});c===null&&r("Production says how many instances Production starts with, such as `- Production: `2`\
395
+ instances`."),e.production=c;return}if(t.startsWith("- Reaches: ")){let c=t.match(mi);c||r("Reaches names a service and\
388
396
  the setting that gets its address: `- Reaches: `service` as `SETTING``."),e.reaches.push({service:c[1],setting:c[2],line:s});
389
- return}if(t.startsWith("- Setting ")){let c=t.match(di);c||r("A setting is `- Setting `NAME`: `value``.");let[a]=b(c[2],
390
- O,n,`Service \`${e.id}\` Setting ${c[1]}`,s,{count:1});on(e,c[1],n,s),e.settings[c[1]]=a,e.settingLines[c[1]]=s;return}if(t.
391
- startsWith(Z)){i("Packages"),e.packages=ke(t,n,s);return}if(t.startsWith(q)){i("Sandbox allows"),e.sandboxAllowances=Re(
392
- t,n,s);return}Ei.some(c=>t.startsWith(c.slice(0,c.indexOf(":")+1)))&&r(`${t.slice(2,t.indexOf(":"))} is the whole Deploy\
393
- ment's: put it above the first ### heading.`),f(n,k(`Service \`${e.id}\` entry`,t,tt),s)}function on(e,t,n,s){let r=o=>f(
397
+ return}if(t.startsWith("- Setting ")){let c=t.match(hi);c||r("A setting is `- Setting `NAME`: `value``.");let[a]=b(c[2],
398
+ O,n,`Service \`${e.id}\` Setting ${c[1]}`,s,{count:1});an(e,c[1],n,s),e.settings[c[1]]=a,e.settingLines[c[1]]=s;return}if(t.
399
+ startsWith(Z)){i("Packages"),e.packages=Re(t,n,s);return}if(t.startsWith(q)){i("Sandbox allows"),e.sandboxAllowances=ke(
400
+ t,n,s);return}bi.some(c=>t.startsWith(c.slice(0,c.indexOf(":")+1)))&&r(`${t.slice(2,t.indexOf(":"))} is the whole Deploy\
401
+ ment's: put it above the first ### heading.`),f(n,R(`Service \`${e.id}\` entry`,t,tt),s)}function an(e,t,n,s){let r=o=>f(
394
402
  n,`Service \`${e.id}\`: ${o}`,s);Te.test(t)||r(`${JSON.stringify(t)} isn't a setting's name: use capitals, digits and _,\
395
- such as \`API_URL\`.`);let i=vi(t);i&&r(`${i}; give the setting another name.`),(Object.hasOwn(e.settings,t)||e.reaches.
396
- some(o=>o.setting===t&&o.line!==s))&&r(`it names the setting ${t} twice.`)}function an(e,t,n,s){let r=e[1];return ri.test(
403
+ such as \`API_URL\`.`);let i=yi(t);i&&r(`${i}; give the setting another name.`),(Object.hasOwn(e.settings,t)||e.reaches.
404
+ some(o=>o.setting===t&&o.line!==s))&&r(`it names the setting ${t} twice.`)}function cn(e,t,n,s){let r=e[1];return ai.test(
397
405
  r)||f(t,`### Resource names a resource of ## Resources by its id, such as \`files\`; ${JSON.stringify(r)} isn't one.`,n),
398
- s.has(r)&&f(t,`Deployment has a second ### Resource \`${r}\`.`,n),{id:r,line:n,development:"",developmentLine:0}}function cn(e,t,n,s){
406
+ s.has(r)&&f(t,`Deployment has a second ### Resource \`${r}\`.`,n),{id:r,line:n,development:"",developmentLine:0}}function un(e,t,n,s){
399
407
  if(t.startsWith("- Development: ")){e.developmentLine&&f(n,`Resource \`${e.id}\` has a second Development line.`,s),e.development=
400
- t.match(fi)?.[1]??"",e.developmentLine=s,en.includes(e.development)||f(n,`Resource \`${e.id}\`: Development is \`local fol\
401
- der\` or \`own bucket\`.`,s);return}f(n,`${k(`Resource \`${e.id}\` entry`,t,nn)} The Deployment's own entries come befor\
402
- e the first ### heading.`,s)}function un(e,t,n){let s=e.map(i=>i.id);for(let i of e){let o=(a,u=i.line)=>f(n,`Service \`${i.
408
+ t.match(Ei)?.[1]??"",e.developmentLine=s,tn.includes(e.development)||f(n,`Resource \`${e.id}\`: Development is \`local fol\
409
+ der\` or \`own bucket\`.`,s);return}f(n,`${R(`Resource \`${e.id}\` entry`,t,sn)} The Deployment's own entries come befor\
410
+ e the first ### heading.`,s)}function pn(e,t,n){let s=e.map(i=>i.id);for(let i of e){let o=(a,u=i.line)=>f(n,`Service \`${i.
403
411
  id}\`: ${a}`,u);for(let[a,u]of[["Exposure",i.exposure],["Serve",i.serve],["Ready when",i.readyWhen],["Instances",i.instances]])
404
412
  u||o(`it needs a${a==="Exposure"||a==="Instances"?"n":""} ${a} line: ${tt.find(p=>p.startsWith(a==="Serve"?"- Serve":`- ${a}\
405
413
  :`))}.`);i.reached&&i.exposure==="public"&&o("Reached is for an internal service; a public one is reached at its address\
@@ -407,7 +415,7 @@ u||o(`it needs a${a==="Exposure"||a==="Instances"?"n":""} ${a} line: ${tt.find(p
407
415
  h ${c} instances, outside its Instances, ${i.instances.min} to ${i.instances.max}.`,i.lines.Production);for(let a of i.reaches)
408
416
  a.service===i.id&&o("a service doesn't reach itself.",a.line),s.includes(a.service)||o(`there is no service \`${a.service}\
409
417
  \`; this Deployment's services are ${s.map(u=>`\`${u}\``).join(", ")}. Fix the name in its Reaches line.`,a.line),i.reaches.
410
- filter(u=>u.service===a.service).length>1&&o(`it reaches \`${a.service}\` twice.`,a.line),on(i,a.setting,n,a.line);for(let a of[
418
+ filter(u=>u.service===a.service).length>1&&o(`it reaches \`${a.service}\` twice.`,a.line),an(i,a.setting,n,a.line);for(let a of[
411
419
  ...i.reaches.map(u=>u.setting),...Object.keys(i.settings)])if(t.generatedSecrets.includes(a)||t.setupCode===a){let u=i.reaches.
412
420
  find(p=>p.setting===a)?.line??i.settingLines[a];o(`${a} is the Deployment's ${t.setupCode===a?"Setup code":"generated se\
413
421
  cret"}, which every service gets already; give the setting another name.`,u)}}let r=e.filter(i=>i.exposure==="public");return r.
@@ -416,7 +424,7 @@ public``.":`A Deployment with services has exactly one public service; ${r.map((
416
424
  both public.`,r[1]?.line??e[0].line),e.map(i=>({id:i.id,summary:i.summary,exposure:i.exposure,reached:i.reached||"any",serve:i.
417
425
  serve,readyWhen:i.readyWhen,instances:{min:i.instances.min,max:i.instances.max,production:i.production??i.instances.min},
418
426
  atLeast:i.atLeast,reaches:i.reaches.map(({service:o,setting:c})=>({service:o,setting:c})),settings:i.settings,packages:i.
419
- packages,sandboxAllowances:i.sandboxAllowances}))}function pn(e,t,n){let s=new Map((Array.isArray(t)?t:[]).map(i=>i?.resource).
427
+ packages,sandboxAllowances:i.sandboxAllowances}))}function ln(e,t,n){let s=new Map((Array.isArray(t)?t:[]).map(i=>i?.resource).
420
428
  filter(i=>i&&typeof i.id=="string").map(i=>[i.id,i]));for(let i of e.resources.values()){let o=s.get(i.id);o||f(n,`### R\
421
429
  esource \`${i.id}\`: genesis/stack.md's ## Resources declares no resource \`${i.id}\`${s.size?`; its resources are ${[...s.
422
430
  keys()].map(c=>`\`${c}\``).join(", ")}`:""}.`,i.line),i.development&&o.kind!=="bucket"&&f(n,`Resource \`${i.id}\`: Develo\
@@ -424,14 +432,14 @@ pment says how development provides a bucket, and \`${i.id}\` is a ${o.kind} res
424
432
  for(let i of s.values())for(let o of Array.isArray(i.environmentAlternatives)?i.environmentAlternatives:[])for(let c of Object.
425
433
  values(o?.bindings??{}))typeof c=="string"&&r.set(c,i.id);for(let i of e.services){let o=[...i.reaches.map(c=>[c.setting,
426
434
  c.line]),...Object.entries(i.settingLines)];for(let[c,a]of o)r.has(c)&&f(n,`Service \`${i.id}\`: ${c} is the setting res\
427
- ource \`${r.get(c)}\` binds; give the setting another name.`,a)}}var dn="vibe64.application-deployment.v2",bi="vibe64.application-deployment.v1",mn="Deployment";function nt(){return{version:1,
435
+ ource \`${r.get(c)}\` binds; give the setting another name.`,a)}}var mn="vibe64.application-deployment.v2",wi="vibe64.application-deployment.v1",hn="Deployment";function nt(){return{version:1,
428
436
  artifact:{disposablePaths:[]},workdir:".",runtimeRequirements:[],generatedSecrets:[],setupCode:"",sandboxAllowances:[],packages:[],
429
- instances:{max:1},readiness:null,steps:[],services:[],deploymentResources:{}}}function hn(e,t){Array.isArray(e)||f(t,"De\
437
+ instances:{max:1},readiness:null,steps:[],services:[],deploymentResources:{}}}function fn(e,t){Array.isArray(e)||f(t,"De\
430
438
  ployment must be supplied as exact Stack section lines.");let n={services:[],resources:new Map};if(S(e))return{result:nt(),
431
439
  located:n};let s=nt(),r=new Set,i=e.some(c=>c.trim().startsWith("### Service ")),o=null;for(let c=0;c<e.length;c+=1){let a=e[c].
432
- trim();if(!a)continue;let u=c+1;if(a.startsWith("#")){let d=a.match(Zt),l=d?null:a.match(Qt);d?(o={service:sn(d,t,u,n.services)},
433
- n.services.push(o.service)):l?(o={resource:an(l,t,u,n.resources)},n.resources.set(o.resource.id,o.resource)):f(t,k("Depl\
434
- oyment heading",a,tn),u);continue}if(o?.service){rn(o.service,a,t,u);continue}if(o?.resource){cn(o.resource,a,t,u);continue}
440
+ trim();if(!a)continue;let u=c+1;if(a.startsWith("#")){let d=a.match(Qt),l=d?null:a.match(en);d?(o={service:rn(d,t,u,n.services)},
441
+ n.services.push(o.service)):l?(o={resource:cn(l,t,u,n.resources)},n.resources.set(o.resource.id,o.resource)):f(t,R("Depl\
442
+ oyment heading",a,nn),u);continue}if(o?.service){on(o.service,a,t,u);continue}if(o?.resource){un(o.resource,a,t,u);continue}
435
443
  let p=a.match(we);if(i&&(p?.[1]==="Serve"||[q,Q,"- Ready when: ","- Instances: "].some(d=>a.startsWith(d)))&&f(t,`In a D\
436
444
  eployment with services, each service says its own Serve, Ready when, Instances and Sandbox allows: move \`${a}\` under i\
437
445
  ts \`### Service\` heading.`,u),a.startsWith("- Workdir: ")){r.has("workdir")&&f(t,"Duplicate Deployment Workdir.",u),r.
@@ -441,265 +449,265 @@ P(a.slice(12),O,t,"Deployment runtimes",u);continue}if(a.startsWith(Se)){r.has("
441
449
  nt Recreate on restore entry.",u),r.add("restore-paths"),s.artifact.disposablePaths=Ft(a,t,u);continue}if(a.startsWith(_e)){
442
450
  r.has("generated-secrets")&&f(t,"Duplicate Deployment Generated secrets entry.",u),r.add("generated-secrets"),s.generatedSecrets=
443
451
  qt(a,t,u);continue}if(a.startsWith(Ie)){r.has("setup-code")&&f(t,"Duplicate Deployment Setup code.",u),r.add("setup-code"),
444
- s.setupCode=Kt(a,t,u);continue}if(a.startsWith(q)){r.has("sandbox-allows")&&f(t,"Duplicate Deployment Sandbox allows.",u),
445
- r.add("sandbox-allows"),s.sandboxAllowances=Re(a,t,u);continue}if(a.startsWith(Z)){r.has("packages")&&f(t,"Duplicate Dep\
446
- loyment Packages.",u),r.add("packages"),s.packages=ke(a,t,u);continue}if(a.startsWith(Q)){r.has("instances")&&f(t,"Dupli\
447
- cate Deployment Instances.",u),r.add("instances"),s.instances={max:Yt(a,t,u)};continue}if(a.startsWith("- Ready when: ")){
448
- r.has("readiness")&&f(t,"Duplicate Deployment Ready when.",u),r.add("readiness"),s.readiness=re(a,O,t,"Deployment readin\
449
- ess",u);continue}if(p){s.steps.push(Ae(p,t,u));continue}f(t,k("Deployment entry",a,Oe),u)}if(i){for(let a=1;a<s.steps.length;a+=
450
- 1)ce[s.steps[a].role]<ce[s.steps[a-1].role]&&f(t,`Deployment steps must be ordered ${ee.slice(0,-1).join(", ")}.`);ln(s,
451
- t),s.services=un(n.services,s,t);let c=s.services.find(a=>a.exposure==="public");s.steps.push({label:c.serve.label,argv:[
452
+ s.setupCode=Yt(a,t,u);continue}if(a.startsWith(q)){r.has("sandbox-allows")&&f(t,"Duplicate Deployment Sandbox allows.",u),
453
+ r.add("sandbox-allows"),s.sandboxAllowances=ke(a,t,u);continue}if(a.startsWith(Z)){r.has("packages")&&f(t,"Duplicate Dep\
454
+ loyment Packages.",u),r.add("packages"),s.packages=Re(a,t,u);continue}if(a.startsWith(Q)){r.has("instances")&&f(t,"Dupli\
455
+ cate Deployment Instances.",u),r.add("instances"),s.instances={max:Kt(a,t,u)};continue}if(a.startsWith("- Ready when: ")){
456
+ r.has("readiness")&&f(t,"Duplicate Deployment Ready when.",u),r.add("readiness"),s.readiness=oe(a,O,t,"Deployment readin\
457
+ ess",u);continue}if(p){s.steps.push(Ae(p,t,u));continue}f(t,R("Deployment entry",a,Oe),u)}if(i){for(let a=1;a<s.steps.length;a+=
458
+ 1)ue[s.steps[a].role]<ue[s.steps[a-1].role]&&f(t,`Deployment steps must be ordered ${ee.slice(0,-1).join(", ")}.`);dn(s,
459
+ t),s.services=pn(n.services,s,t);let c=s.services.find(a=>a.exposure==="public");s.steps.push({label:c.serve.label,argv:[
452
460
  ...c.serve.argv],role:"serve"}),s.readiness={kind:"http",...c.readyWhen},s.instances={max:c.instances.max},s.sandboxAllowances=
453
461
  [...new Set(s.services.flatMap(a=>a.sandboxAllowances))].sort()}else{s.steps.length===0&&f(t,"## Deployment needs at lea\
454
462
  st one command or exactly `- Nothing.`."),(s.steps.filter(({role:u})=>u==="serve").length!==1||s.steps.at(-1).role!=="se\
455
- rve")&&f(t,"Deployment needs exactly one final Serve step.");for(let u=1;u<s.steps.length;u+=1)ce[s.steps[u].role]<ce[s.
463
+ rve")&&f(t,"Deployment needs exactly one final Serve step.");for(let u=1;u<s.steps.length;u+=1)ue[s.steps[u].role]<ue[s.
456
464
  steps[u-1].role]&&f(t,`Deployment steps must be ordered ${ee.slice(0,-1).join(", ")}, then ${ee.at(-1)}.`);s.readiness||
457
- f(t,"Deployment needs one Ready when entry."),ln(s,t);let a=s.steps.at(-1);s.services=[{id:"web",summary:"",exposure:"pu\
465
+ f(t,"Deployment needs one Ready when entry."),dn(s,t);let a=s.steps.at(-1);s.services=[{id:"web",summary:"",exposure:"pu\
458
466
  blic",reached:"any",serve:{label:a.label,argv:[...a.argv]},readyWhen:{method:s.readiness.method,path:s.readiness.path,status:s.
459
467
  readiness.status},instances:{min:1,max:s.instances.max,production:1},atLeast:null,reaches:[],settings:{},packages:[],sandboxAllowances:[
460
468
  ...s.sandboxAllowances]}]}return s.deploymentResources=Object.fromEntries([...n.resources.values()].map(c=>[c.id,c.development?
461
- {development:c.development}:{}])),{result:s,located:n}}function ln(e,t){let n=Object.keys(pe).find(s=>[...e.generatedSecrets,
469
+ {development:c.development}:{}])),{result:s,located:n}}function dn(e,t){let n=Object.keys(pe).find(s=>[...e.generatedSecrets,
462
470
  e.setupCode].includes(s));n&&f(t,pe[n]),e.generatedSecrets.includes(e.setupCode)&&f(t,"Deployment Setup code is generate\
463
471
  d already; leave it out of Generated secrets."),e.artifact.disposablePaths.length>0&&!e.steps.some(({role:s})=>s==="prep\
464
- are")&&f(t,"Deployment may recreate paths on restore only when it declares a Prepare step.")}function yi(e,t={}){let{path:n="\
465
- genesis/stack.md#Deployment"}=t;return hn(e,n).result}function fn({environment:e={},section:t={}}={}){z(t,e,"Deployment \
466
- section");let n=[...t.diagnostics||[]],s=nt(),r=!1;if(t.status==="ready"){let a="genesis/stack.md#Deployment",u=hn(t.lines,
467
- a);pn(u.located,e.resources,a),s=u.result,r=u.located.services.length>0}let i=n.length>0?"blocked":s.steps.length>0?"rea\
472
+ are")&&f(t,"Deployment may recreate paths on restore only when it declares a Prepare step.")}function Si(e,t={}){let{path:n="\
473
+ genesis/stack.md#Deployment"}=t;return fn(e,n).result}function gn({environment:e={},section:t={}}={}){z(t,e,"Deployment \
474
+ section");let n=[...t.diagnostics||[]],s=nt(),r=!1;if(t.status==="ready"){let a="genesis/stack.md#Deployment",u=fn(t.lines,
475
+ a);ln(u.located,e.resources,a),s=u.result,r=u.located.services.length>0}let i=n.length>0?"blocked":s.steps.length>0?"rea\
468
476
  dy":"unconfigured",o={version:s.version,artifact:s.artifact,workdir:s.workdir,runtimeRequirements:s.runtimeRequirements,
469
477
  generatedSecrets:s.generatedSecrets,setupCode:s.setupCode,sandboxAllowances:s.sandboxAllowances,packages:s.packages,instances:s.
470
478
  instances,readiness:s.readiness,steps:s.steps},c={...o,...r?{services:s.services}:{},...Object.keys(s.deploymentResources).
471
- length>0?{deploymentResources:s.deploymentResources}:{}};return{contract:dn,status:i,stackHash:t.stackHash,recipeHash:i===
479
+ length>0?{deploymentResources:s.deploymentResources}:{}};return{contract:mn,status:i,stackHash:t.stackHash,recipeHash:i===
472
480
  "ready"?N(c):"",components:[...t.components||[]],source:t.source||null,runtimeRequirements:F(s.runtimeRequirements),resources:structuredClone(
473
- e.resources||[]),...o,services:s.services,deploymentResources:s.deploymentResources,diagnostics:n}}var Ce="vibe64.packaging.v1",wn="Packaging",zo=Object.freeze(["genesis",".genesis",".agents",".claude",".codex",".openco\
474
- de"]),M="VIBE64_PACKAGING_INVALID",wi=/^[a-z0-9]+(?:-[a-z0-9]+)*$/u,Si=/^[A-Z_][A-Z0-9_]*$/u,_i=/^[a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)+$/u,
475
- Ii=/^[a-z][a-z0-9+.-]*$/u,Ti=/^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/u,Oi=/\{[^{}\s]*\}/u,
476
- Ri=/^### Package `([^`\r\n]+)`:[ \t]+(.+)$/u,ki=/^- (Prepare|Build) `([^`\r\n]+)`:[ \t]+(.+)$/u,Ai=/^- Environment `([^`\r\n]+)`:[ \t]+(.+)$/u,
477
- Ni=/^- Permission `([^`\r\n]+)`:[ \t]+(.+)$/u,Ci=/^- Content: package `([^`\r\n]+)`$/u,gn=50,En=500,Di=/(?:^|_)(?:TOKEN|SECRET|PASSWORD|PASSPHRASE|PRIVATE_KEY|API_KEY|CREDENTIALS?)(?:_|$)/u,
478
- Sn=Object.freeze({npm:Object.freeze({entries:["workdir","runtimes","prepare","build","environment","versionFrom"],required:[
481
+ e.resources||[]),...o,services:s.services,deploymentResources:s.deploymentResources,diagnostics:n}}var Ce="vibe64.packaging.v1",Sn="Packaging",Xo=Object.freeze(["genesis",".genesis",".agents",".claude",".codex",".openco\
482
+ de"]),M="VIBE64_PACKAGING_INVALID",_i=/^[a-z0-9]+(?:-[a-z0-9]+)*$/u,Ii=/^[A-Z_][A-Z0-9_]*$/u,Ti=/^[a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)+$/u,
483
+ Oi=/^[a-z][a-z0-9+.-]*$/u,ki=/^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/u,Ri=/\{[^{}\s]*\}/u,
484
+ Ai=/^### Package `([^`\r\n]+)`:[ \t]+(.+)$/u,Ni=/^- (Prepare|Build) `([^`\r\n]+)`:[ \t]+(.+)$/u,Ci=/^- Environment `([^`\r\n]+)`:[ \t]+(.+)$/u,
485
+ Di=/^- Permission `([^`\r\n]+)`:[ \t]+(.+)$/u,Pi=/^- Content: package `([^`\r\n]+)`$/u,En=50,vn=500,$i=/(?:^|_)(?:TOKEN|SECRET|PASSWORD|PASSPHRASE|PRIVATE_KEY|API_KEY|CREDENTIALS?)(?:_|$)/u,
486
+ _n=Object.freeze({npm:Object.freeze({entries:["workdir","runtimes","prepare","build","environment","versionFrom"],required:[
479
487
  "versionFrom"],versionSources:["package.json","external"]}),"python-dist":Object.freeze({entries:["workdir","runtimes","\
480
488
  prepare","build","environment","output","versionFrom"],required:["build","output","versionFrom"],versionSources:["pyproj\
481
489
  ect.toml","external"]}),"web-bundle":Object.freeze({entries:["workdir","runtimes","prepare","build","environment","outpu\
482
490
  t"],required:["build","output"],versionSources:[]}),capacitor:Object.freeze({entries:["workdir","content","platforms","a\
483
491
  pplicationId","name","icon","versionFrom","deepLinkSchemeFrom","appLinkDomainsFrom","permission"],required:["content","p\
484
492
  latforms","applicationId","name","icon","versionFrom"],versionSources:["package.json","external"]})}),Ne=Object.freeze(Object.
485
- keys(Sn)),st=Object.freeze(["android"]),it=Object.freeze(["package.json","pyproject.toml","external"]),K=e=>e.map(t=>`\`${t}\
486
- \``).join(" | "),te=Object.freeze([["- Packer: ","packer",`- Packer: ${K(Ne)}`],["- Workdir: ","workdir","- Workdir: `pa\
493
+ keys(_n)),st=Object.freeze(["android"]),it=Object.freeze(["package.json","pyproject.toml","external"]),Y=e=>e.map(t=>`\`${t}\
494
+ \``).join(" | "),te=Object.freeze([["- Packer: ","packer",`- Packer: ${Y(Ne)}`],["- Workdir: ","workdir","- Workdir: `pa\
487
495
  th`"],["- Runtimes: ","runtimes","- Runtimes: `runtime`..."],["- Output: ","output","- Output: `path`"],["- Version from\
488
- : ","versionFrom",`- Version from: ${K(it)}`],["- Platforms: ","platforms",`- Platforms: ${K(st)}...`],["- Id: ","applic\
496
+ : ","versionFrom",`- Version from: ${Y(it)}`],["- Platforms: ","platforms",`- Platforms: ${Y(st)}...`],["- Id: ","applic\
489
497
  ationId","- Id: `reverse.dns.id`"],["- Name: ","name","- Name: `Display name`"],["- Icon: ","icon","- Icon: `path/to/ico\
490
498
  n-1024.png`"],["- Deep link scheme from: ","deepLinkSchemeFrom","- Deep link scheme from: `ENV_NAME`"],["- App link doma\
491
- ins from: ","appLinkDomainsFrom","- App link domains from: `ENV_NAME`"]]),vn="### Package `id`: Label",Pi=Object.freeze(
499
+ ins from: ","appLinkDomainsFrom","- App link domains from: `ENV_NAME`"]]),bn="### Package `id`: Label",xi=Object.freeze(
492
500
  [te[0][2],te[1][2],te[2][2],"- Prepare|Build `label`: `command` `argument`...","- Environment `NAME`: `value`",te[3][2],
493
501
  te[4][2],"- Content: package `web-bundle-id`",...te.slice(5).map(([,,e])=>e),"- Permission `id`: User-facing reason."]),
494
502
  de=Object.freeze({packer:"Packer",workdir:"Workdir",runtimes:"Runtimes",prepare:"Prepare",build:"Build",environment:"Env\
495
503
  ironment",output:"Output",versionFrom:"Version from",content:"Content",platforms:"Platforms",applicationId:"Id",name:"Na\
496
504
  me",icon:"Icon",deepLinkSchemeFrom:"Deep link scheme from",appLinkDomainsFrom:"App link domains from",permission:"Permis\
497
- sion"});function v(e,t,n){m(M,e,t,n)}function rt(e,t,n,s){let r=y(e,M,t,n,s);return wi.test(r)||v(t,`${n} must use lower\
498
- case letters, digits, and single hyphens.`,s),r}function $i(e,t,n,s,r){return b(e.slice(t.length),M,n,s,r,{count:1})[0]}
499
- function ot(e,t,n,s){return e.some(r=>Oi.test(r))&&v(t,`${n} takes no placeholders in ${Ce}.`,s),e}function _n(e,t,n,s){
500
- return Si.test(e)||v(t,`${n} must be an uppercase environment variable name.`,s),e}function bn(e,t,n,s,r){e.seen.has(t)&&
501
- v(s,`Package ${e.id} has a duplicate ${de[t]} entry.`,r),e.seen.add(t),e.fields[t]=n,e.lines[t]=r}function xi(e,t,n,s,r){
505
+ sion"});function v(e,t,n){m(M,e,t,n)}function rt(e,t,n,s){let r=y(e,M,t,n,s);return _i.test(r)||v(t,`${n} must use lower\
506
+ case letters, digits, and single hyphens.`,s),r}function Vi(e,t,n,s,r){return b(e.slice(t.length),M,n,s,r,{count:1})[0]}
507
+ function ot(e,t,n,s){return e.some(r=>Ri.test(r))&&v(t,`${n} takes no placeholders in ${Ce}.`,s),e}function In(e,t,n,s){
508
+ return Ii.test(e)||v(t,`${n} must be an uppercase environment variable name.`,s),e}function yn(e,t,n,s,r){e.seen.has(t)&&
509
+ v(s,`Package ${e.id} has a duplicate ${de[t]} entry.`,r),e.seen.add(t),e.fields[t]=n,e.lines[t]=r}function Li(e,t,n,s,r){
502
510
  let i=`Packaging ${de[e]}`;if(e==="runtimes")return P(t.slice(n.length),M,s,i,r);if(e==="platforms"){let c=b(t.slice(n.length),
503
- M,s,i,r);return c.some(a=>!st.includes(a))&&v(s,`${i} must be ${K(st)}.`,r),new Set(c).size!==c.length&&v(s,`${i} contai\
504
- ns a duplicate platform.`,r),c}let o=ot([$i(t,n,s,i,r)],s,i,r)[0];if(e==="packer")return Ne.includes(o)||v(s,`Unknown pa\
505
- cker \`${o}\`. ${Ce} packers are ${K(Ne)}.`,r),o;if(["workdir","output"].includes(e))return w(o,M,s,i,r,{allowRoot:e==="\
511
+ M,s,i,r);return c.some(a=>!st.includes(a))&&v(s,`${i} must be ${Y(st)}.`,r),new Set(c).size!==c.length&&v(s,`${i} contai\
512
+ ns a duplicate platform.`,r),c}let o=ot([Vi(t,n,s,i,r)],s,i,r)[0];if(e==="packer")return Ne.includes(o)||v(s,`Unknown pa\
513
+ cker \`${o}\`. ${Ce} packers are ${Y(Ne)}.`,r),o;if(["workdir","output"].includes(e))return w(o,M,s,i,r,{allowRoot:e==="\
506
514
  workdir"});if(e==="icon"){let c=w(o,M,s,i,r,{allowRoot:!1});return c.toLowerCase().endsWith(".png")||v(s,`${i} must be a\
507
- 1024x1024 PNG file.`,r),c}return e==="versionFrom"?(it.includes(o)||v(s,`${i} must be ${K(it)}.`,r),o):e==="application\
508
- Id"?((!_i.test(o)||o.length>150)&&v(s,`${i} must be a reverse-DNS id such as \`com.example.notes\` (letters, digits and un\
509
- derscores; each part starts with a letter).`,r),o):e==="name"?((o.trim()!==o||o.length>gn)&&v(s,`${i} must be at most ${gn}\
510
- characters without surrounding spaces.`,r),o):_n(o,s,i,r)}function Vi(e,t,n){return{id:rt(e[1],t,"Package id",n),label:y(
511
- e[2],M,t,"Package label",n),fields:{},lines:{},prepare:[],build:[],environment:[],permissions:[],seen:new Set,line:n}}function Li(e,t,n,s){
515
+ 1024x1024 PNG file.`,r),c}return e==="versionFrom"?(it.includes(o)||v(s,`${i} must be ${Y(it)}.`,r),o):e==="application\
516
+ Id"?((!Ti.test(o)||o.length>150)&&v(s,`${i} must be a reverse-DNS id such as \`com.example.notes\` (letters, digits and un\
517
+ derscores; each part starts with a letter).`,r),o):e==="name"?((o.trim()!==o||o.length>En)&&v(s,`${i} must be at most ${En}\
518
+ characters without surrounding spaces.`,r),o):In(o,s,i,r)}function Mi(e,t,n){return{id:rt(e[1],t,"Package id",n),label:y(
519
+ e[2],M,t,"Package label",n),fields:{},lines:{},prepare:[],build:[],environment:[],permissions:[],seen:new Set,line:n}}function ji(e,t,n,s){
512
520
  /^- Plugins?\b/u.test(t)&&v(n,"Packaging takes no Plugin list: the generated shell installs the native plugins of the Co\
513
- ntent package at its lockfile versions.",s);for(let[a,u]of te)if(t.startsWith(a)){bn(e,u,xi(u,t,a,n,s),n,s);return}let r=t.
514
- match(Ci);if(r){bn(e,"content",rt(r[1],n,"Packaging Content package",s),n,s);return}let i=t.match(ki);if(i){let a=i[1].toLowerCase(),
521
+ ntent package at its lockfile versions.",s);for(let[a,u]of te)if(t.startsWith(a)){yn(e,u,Li(u,t,a,n,s),n,s);return}let r=t.
522
+ match(Pi);if(r){yn(e,"content",rt(r[1],n,"Packaging Content package",s),n,s);return}let i=t.match(Ni);if(i){let a=i[1].toLowerCase(),
515
523
  u=`Packaging ${i[1]} command`;e[a].push({label:y(i[2],M,n,`Packaging ${i[1]} label`,s),argv:ot(D(i[3],M,n,u,s),n,u,s)}),
516
- e.lines[a]??=s;return}let o=t.match(Ai);if(o){let a=_n(o[1],n,"Packaging Environment name",s);Di.test(a)&&v(n,`Packaging\
524
+ e.lines[a]??=s;return}let o=t.match(Ci);if(o){let a=In(o[1],n,"Packaging Environment name",s);$i.test(a)&&v(n,`Packaging\
517
525
  Environment ${a} looks like a credential. Packaging holds only non-secret build facts.`,s),e.environment.some(p=>p.name===
518
526
  a)&&v(n,`Package ${e.id} has a duplicate Environment ${a}.`,s);let u=ot(b(o[2],M,n,"Packaging Environment value",s,{count:1}),
519
527
  n,"Packaging Environment value",s)[0];e.environment.push({name:a,value:u}),e.lines.environment??=s;return}let c=t.match(
520
- Ni);if(c){let a=rt(c[1],n,"Packaging Permission id",s),u=y(c[2],M,n,"Packaging Permission reason",s);(u.includes("`")||u.
521
- length>En)&&v(n,`Packaging Permission reason is plain user-facing text of at most ${En} characters.`,s),e.permissions.some(
528
+ Di);if(c){let a=rt(c[1],n,"Packaging Permission id",s),u=y(c[2],M,n,"Packaging Permission reason",s);(u.includes("`")||u.
529
+ length>vn)&&v(n,`Packaging Permission reason is plain user-facing text of at most ${vn} characters.`,s),e.permissions.some(
522
530
  p=>p.id===a)&&v(n,`Package ${e.id} has a duplicate Permission ${a}.`,s),e.permissions.push({id:a,reason:u}),e.lines.permission??=
523
- s;return}v(n,k("Packaging entry",t,Pi),s)}function Mi(e,t){let n=e.fields.packer;n||v(t,`Package ${e.id} needs a Packer \
524
- entry: ${K(Ne)}.`,e.line);let s=Sn[n],r=new Set([...Object.keys(e.fields).filter(o=>o!=="packer"),...["prepare","build",
531
+ s;return}v(n,R("Packaging entry",t,xi),s)}function Gi(e,t){let n=e.fields.packer;n||v(t,`Package ${e.id} needs a Packer \
532
+ entry: ${Y(Ne)}.`,e.line);let s=_n[n],r=new Set([...Object.keys(e.fields).filter(o=>o!=="packer"),...["prepare","build",
525
533
  "environment"].filter(o=>e[o].length),...e.permissions.length?["permission"]:[]]);for(let o of r)s.entries.includes(o)||
526
534
  v(t,`The ${n} packer takes no ${de[o]} entry.`,e.lines[o]);for(let o of s.required)r.has(o)||v(t,`Package ${e.id} (${n})\
527
535
  needs ${/^[AEIOU]/u.test(de[o])?"an":"a"} ${de[o]} entry.`,e.line);e.fields.versionFrom&&!s.versionSources.includes(e.fields.
528
- versionFrom)&&v(t,`The ${n} packer reads its version from ${K(s.versionSources)}.`,e.lines.versionFrom);let i={id:e.id,label:e.
536
+ versionFrom)&&v(t,`The ${n} packer reads its version from ${Y(s.versionSources)}.`,e.lines.versionFrom);let i={id:e.id,label:e.
529
537
  label,packer:n,workdir:e.fields.workdir||".",runtimeRequirements:e.fields.runtimes||[],prepare:e.prepare,build:e.build,environment:e.
530
538
  environment,output:e.fields.output||null,versionFrom:e.fields.versionFrom||null};return n!=="capacitor"?i:{...i,content:e.
531
539
  fields.content,platforms:e.fields.platforms,application:{id:e.fields.applicationId,name:e.fields.name,icon:e.fields.icon},
532
540
  deepLinkSchemeFrom:e.fields.deepLinkSchemeFrom||null,appLinkDomainsFrom:e.fields.appLinkDomainsFrom||null,permissions:e.
533
- permissions}}function In(e,t={}){let{path:n="genesis/stack.md#Packaging"}=t;if(Array.isArray(e)||v(n,"Packaging must be \
541
+ permissions}}function Tn(e,t={}){let{path:n="genesis/stack.md#Packaging"}=t;if(Array.isArray(e)||v(n,"Packaging must be \
534
542
  supplied as exact Stack section lines."),S(e))return{version:1,packages:[]};let s=[],r=null;for(let a=0;a<e.length;a+=1){
535
- let u=e[a].trim();if(!u)continue;let p=a+1,d=u.match(Ri);if(d){r=Vi(d,n,p),s.push(r);continue}u.startsWith("#")&&v(n,`Un\
536
- known Packaging heading: ${u}. Use ${vn}.`,p),r||v(n,`Packaging entries belong under ${vn}.`,p),Li(r,u,n,p)}s.length===0&&
537
- v(n,"## Packaging needs at least one Package or exactly `- Nothing.`.");let i=s.map(a=>Mi(a,n)),o=new Map;for(let a of i)
543
+ let u=e[a].trim();if(!u)continue;let p=a+1,d=u.match(Ai);if(d){r=Mi(d,n,p),s.push(r);continue}u.startsWith("#")&&v(n,`Un\
544
+ known Packaging heading: ${u}. Use ${bn}.`,p),r||v(n,`Packaging entries belong under ${bn}.`,p),ji(r,u,n,p)}s.length===0&&
545
+ v(n,"## Packaging needs at least one Package or exactly `- Nothing.`.");let i=s.map(a=>Gi(a,n)),o=new Map;for(let a of i)
538
546
  o.has(a.id)&&v(n,`Packaging contains a duplicate package id ${a.id}.`),o.set(a.id,a);let c=new Set;for(let a of i.filter(
539
547
  ({packer:u})=>u==="capacitor")){let u=o.get(a.content);(!u||u.packer!=="web-bundle")&&v(n,`Package ${a.id} Content must \
540
548
  name a web-bundle package declared in Packaging.`),c.has(a.application.id)&&v(n,`Packaging declares application id ${a.application.
541
- id} twice.`),c.add(a.application.id)}return{version:1,packages:i}}function yn(e,t,n,s){let r=(Array.isArray(e)?e:[]).find(
549
+ id} twice.`),c.add(a.application.id)}return{version:1,packages:i}}function wn(e,t,n,s){let r=(Array.isArray(e)?e:[]).find(
542
550
  i=>i?.name===t);return(!r||typeof r.value!="string"||!r.value.trim())&&v(n,`${s} names ${t}, which ## Environment defaul\
543
- ts does not declare with a value.`),r.value.trim()}function Tn(e,t=[],n={}){let{path:s="genesis/stack.md#Packaging"}=n;return{
551
+ ts does not declare with a value.`),r.value.trim()}function On(e,t=[],n={}){let{path:s="genesis/stack.md#Packaging"}=n;return{
544
552
  ...e,packages:e.packages.map(r=>{if(r.packer!=="capacitor")return r;let i={...r,deepLinkScheme:null,appLinkDomains:[]};if(r.
545
- deepLinkSchemeFrom){let o=yn(t,r.deepLinkSchemeFrom,s,`Package ${r.id} Deep link scheme from`);(!Ii.test(o)||["http","ht\
553
+ deepLinkSchemeFrom){let o=wn(t,r.deepLinkSchemeFrom,s,`Package ${r.id} Deep link scheme from`);(!Oi.test(o)||["http","ht\
546
554
  tps","file","content","javascript"].includes(o))&&v(s,`${r.deepLinkSchemeFrom} must be a custom lowercase URL scheme suc\
547
- h as \`notes\`.`),i.deepLinkScheme=o}if(r.appLinkDomainsFrom){let o=yn(t,r.appLinkDomainsFrom,s,`Package ${r.id} App lin\
548
- k domains from`).split(/[\s,]+/u).filter(Boolean);o.some(c=>!Ti.test(c))&&v(s,`${r.appLinkDomainsFrom} must list lowerca\
549
- se domain names separated by commas or spaces.`),i.appLinkDomains=[...new Set(o)]}return i})}}function On({environment:e={},
555
+ h as \`notes\`.`),i.deepLinkScheme=o}if(r.appLinkDomainsFrom){let o=wn(t,r.appLinkDomainsFrom,s,`Package ${r.id} App lin\
556
+ k domains from`).split(/[\s,]+/u).filter(Boolean);o.some(c=>!ki.test(c))&&v(s,`${r.appLinkDomainsFrom} must list lowerca\
557
+ se domain names separated by commas or spaces.`),i.appLinkDomains=[...new Set(o)]}return i})}}function kn({environment:e={},
550
558
  section:t={}}={}){z(t,e,"Packaging section");let n=[...t.diagnostics||[]],s={version:1,packages:[]};t.status==="ready"&&
551
- (s=Tn(In(t.lines),e.environmentDefaults));let r=n.length>0?"blocked":s.packages.length>0?"ready":"unconfigured";return{contract:Ce,
559
+ (s=On(Tn(t.lines),e.environmentDefaults));let r=n.length>0?"blocked":s.packages.length>0?"ready":"unconfigured";return{contract:Ce,
552
560
  status:r,stackHash:t.stackHash,packagingHash:r==="ready"?N(s):"",source:t.source||null,version:s.version,packages:s.packages,
553
561
  diagnostics:n}}var I="VIBE64_OUTPUTS_INVALID";function h(e,t,n,s={}){m(I,e,t,n,s)}function at(e,t,n,s,r,i){return b(e.slice(t.length),I,
554
562
  n,s,r,i)}function j(e,t,n,s,r){return at(e,t,n,s,r,{count:1})[0]}function A(e,t,n,s,r,i){e.seen.has(t)&&h(s,`Duplicate ${i}\
555
- .`,r),e.seen.add(t),e[t]=n}var me="vibe64.preview-identity.command.v1",ji=/^[A-Z_][A-Z0-9_]*$/u,kn=new Set(["HOME","LOGNAME","NODE_OPTIONS","PATH",
556
- "TMPDIR","USER"]),An=new Set(["email","login","user-id"]),Nn=1e4,De=3e4,Cn=[["- Command: ","command","Command","`tools/p\
563
+ .`,r),e.seen.add(t),e[t]=n}var me="vibe64.preview-identity.command.v1",Ui=/^[A-Z_][A-Z0-9_]*$/u,An=new Set(["HOME","LOGNAME","NODE_OPTIONS","PATH",
564
+ "TMPDIR","USER"]),Nn=new Set(["email","login","user-id"]),Cn=1e4,De=3e4,Dn=[["- Command: ","command","Command","`tools/p\
557
565
  review-identity` `argument`..."],["- Protocol: ","protocol","Protocol",`\`${me}\``],["- Identity types: ","identityTypes",
558
- "Identity types",`one or more of ${[...An].map(e=>`\`${e}\``).join(" ")}`],["- Enabled environment: ","enabledEnvironmen\
566
+ "Identity types",`one or more of ${[...Nn].map(e=>`\`${e}\``).join(" ")}`],["- Enabled environment: ","enabledEnvironmen\
559
567
  t","Enabled environment","`ENV_NAME`"],["- Secret environment: ","secretEnvironment","Secret environment","`ENV_NAME`"],
560
568
  ["- Runtimes: ","runtimes","Runtimes","`runtime`..."],["- Timeout ms: ","timeoutMs","Timeout ms",`\`1\` through \`${De}\`\
561
- (default ${Nn})`]],ct=Cn.map(([e,,,t])=>`${e}${t}`);function Rn(e,t,n,s){if(e===void 0)return"";let r=y(e,I,t,`Preview \
562
- identity ${n} environment name`,s);return(!ji.test(r)||kn.has(r)||r.startsWith("XDG_"))&&h(t,`Preview identity ${n} envi\
563
- ronment name is invalid.`,s),r}function Dn(e){return{seen:new Set,line:e}}function Pn(e,t,n,s){let r=Cn.find(([u])=>t.startsWith(
564
- u));r||h(n,k("Preview identity entry",t,ct),s);let[i,o,c]=r,a=at(t,i,n,`Preview identity ${c}`,s);!["command","identityT\
569
+ (default ${Cn})`]],ct=Dn.map(([e,,,t])=>`${e}${t}`);function Rn(e,t,n,s){if(e===void 0)return"";let r=y(e,I,t,`Preview \
570
+ identity ${n} environment name`,s);return(!Ui.test(r)||An.has(r)||r.startsWith("XDG_"))&&h(t,`Preview identity ${n} envi\
571
+ ronment name is invalid.`,s),r}function Pn(e){return{seen:new Set,line:e}}function $n(e,t,n,s){let r=Dn.find(([u])=>t.startsWith(
572
+ u));r||h(n,R("Preview identity entry",t,ct),s);let[i,o,c]=r,a=at(t,i,n,`Preview identity ${c}`,s);!["command","identityT\
565
573
  ypes","runtimes"].includes(o)&&a.length!==1&&h(n,`Preview identity ${c} accepts exactly one value.`,s),A(e,o,a,n,s,`Prev\
566
- iew identity ${c} entry`)}function $n(e,t,n){for(let[u,p]of[["command","Command"],["protocol","Protocol"],["identityType\
574
+ iew identity ${c} entry`)}function xn(e,t,n){for(let[u,p]of[["command","Command"],["protocol","Protocol"],["identityType\
567
575
  s","Identity types"]])e[u]||h(t,`Output target ${n} Preview identity needs ${p}.`,e.line);let s=e.command.map(u=>`\`${u}\
568
576
  \``).join(" "),r=D(s,I,t,"Preview identity command",e.line);(!r[0].includes("/")||r[0].includes("\\")||r[0].split("/").some(
569
577
  u=>!u||[".",".."].includes(u))||r.some(u=>/\{(?:host|port)\}/u.test(u)))&&h(t,"Preview identity command must use a liter\
570
578
  al app-owned project-relative executable.",e.line);let i=e.protocol[0];i!==me&&h(t,`Preview identity protocol must be ${me}\
571
- .`,e.line);let o=[...new Set(e.identityTypes.map(u=>(An.has(u)||h(t,`Unsupported preview identity type: ${u}.`,e.line),u)))];
579
+ .`,e.line);let o=[...new Set(e.identityTypes.map(u=>(Nn.has(u)||h(t,`Unsupported preview identity type: ${u}.`,e.line),u)))];
572
580
  o.length!==e.identityTypes.length&&h(t,"Preview identity types must not contain duplicates.",e.line);let c={enabled:Rn(e.
573
581
  enabledEnvironment?.[0],t,"enabled",e.line),secret:Rn(e.secretEnvironment?.[0],t,"secret",e.line)};c.enabled&&c.enabled===
574
- c.secret&&h(t,"Preview identity enabled and secret environment names must differ.",e.line);let a=Nn;if(e.timeoutMs){let u=e.
582
+ c.secret&&h(t,"Preview identity enabled and secret environment names must differ.",e.line);let a=Cn;if(e.timeoutMs){let u=e.
575
583
  timeoutMs[0];/^[0-9]+$/u.test(u)||h(t,`Preview identity Timeout ms must be from 1 through ${De}.`,e.line),a=Number(u),(!Number.
576
584
  isSafeInteger(a)||a<1||a>De)&&h(t,`Preview identity Timeout ms must be from 1 through ${De}.`,e.line)}return{command:r,environment:c,
577
585
  identityTypes:o,protocol:i,runtimes:e.runtimes?P(e.runtimes.map(u=>`\`${u}\``).join(" "),I,t,"Preview identity runtimes",
578
- e.line):[],timeoutMs:a}}var Gi="vibe64.outputs.v1",$e="Outputs",Ui=/^[a-z0-9]+(?:-[a-z0-9]+)*$/u,ut=/\{([a-z][a-z0-9:-]*)\}/gu,Bi=/^### Target `([^`\r\n]+)`:[ \t]+(.+)$/u,
579
- Wi=/^#### Parameter `([^`\r\n]+)`:[ \t]+(.+)$/u,Hi=/^#### Download `([^`\r\n]+)`$/u,zi=/^[a-z0-9!#$&^_.+-]+\/[a-z0-9!#$&^_.+-]+$/u,
580
- Ln=new Set(["finite","interactive"]),pt=new Set(["development","test"]),Mn=new Set(["terminal","web"]),xn=16,Pe=e=>[...e].
581
- map(t=>`\`${t}\``).join(" or "),Fi=Object.freeze(["### Target `id`: Label","#### Parameter `id`: Label","#### Presentati\
582
- on","#### Preview identity","#### Download `id`"]),xe=Object.freeze({target:["- Default.",`- Mode: ${Pe(Ln)}`,`- Data: ${Pe(
586
+ e.line):[],timeoutMs:a}}var Wi="vibe64.outputs.v1",$e="Outputs",Bi=/^[a-z0-9]+(?:-[a-z0-9]+)*$/u,ut=/\{([a-z][a-z0-9:-]*)\}/gu,Hi=/^### Target `([^`\r\n]+)`:[ \t]+(.+)$/u,
587
+ zi=/^#### Parameter `([^`\r\n]+)`:[ \t]+(.+)$/u,Fi=/^#### Download `([^`\r\n]+)`$/u,qi=/^[a-z0-9!#$&^_.+-]+\/[a-z0-9!#$&^_.+-]+$/u,
588
+ Mn=new Set(["finite","interactive"]),pt=new Set(["development","test"]),jn=new Set(["terminal","web"]),Vn=16,Pe=e=>[...e].
589
+ map(t=>`\`${t}\``).join(" or "),Yi=Object.freeze(["### Target `id`: Label","#### Parameter `id`: Label","#### Presentati\
590
+ on","#### Preview identity","#### Download `id`"]),xe=Object.freeze({target:["- Default.",`- Mode: ${Pe(Mn)}`,`- Data: ${Pe(
583
591
  pt)}`,"- Workdir: `path`","- Runtimes: `runtime`...","- Prepare|Build|Run `label`: `command` `argument`..."],parameter:[
584
- "- Default: `text`","- Description: `text`","- Required."],presentation:[`- Kind: ${Pe(Mn)}`,"- Preferred port: `1024` t\
592
+ "- Default: `text`","- Description: `text`","- Required."],presentation:[`- Kind: ${Pe(jn)}`,"- Preferred port: `1024` t\
585
593
  hrough `65535`","- URL path: `/path`","- Ready when: `GET` `/path` returns `200`"],previewIdentity:ct,download:["- Path:\
586
- `path`","- Name: `file-name`","- Media type: `type/subtype`"]});function lt(e,t,n,s){let r=y(e,I,t,n,s);return Ui.test(
587
- r)||h(t,`${n} must use lowercase letters, digits, and single hyphens.`,s),r}function qi(e,t,n,s){let r=D(e,I,t,n,s);for(let i of r)
594
+ `path`","- Name: `file-name`","- Media type: `type/subtype`"]});function lt(e,t,n,s){let r=y(e,I,t,n,s);return Bi.test(
595
+ r)||h(t,`${n} must use lowercase letters, digits, and single hyphens.`,s),r}function Ki(e,t,n,s){let r=D(e,I,t,n,s);for(let i of r)
588
596
  i.replace(ut,"").includes("{parameter:")&&h(t,`${n} has an invalid {parameter:id} placeholder.`,s),[...i.matchAll(ut)].some(
589
597
  o=>!["host","port"].includes(o[1])&&!/^parameter:[a-z0-9]+(?:-[a-z0-9]+)*$/u.test(o[1]))&&h(t,`${n} supports only {host}\
590
- , {port}, and {parameter:id} placeholders.`,s);return r}function Ki(e,t,n){return{id:lt(e[1],t,"Output target id",n),label:y(
598
+ , {port}, and {parameter:id} placeholders.`,s);return r}function Xi(e,t,n){return{id:lt(e[1],t,"Output target id",n),label:y(
591
599
  e[2],I,t,"Output target label",n),default:!1,mode:"",workdir:".",runtimeRequirements:[],steps:[],presentation:null,previewIdentity:null,
592
- downloads:[],parameters:[],seen:new Set,line:n}}function Yi(e,t,n,s){if(t==="- Required."){A(e,"required",!0,n,s,"Parame\
600
+ downloads:[],parameters:[],seen:new Set,line:n}}function Ji(e,t,n,s){if(t==="- Required."){A(e,"required",!0,n,s,"Parame\
593
601
  ter Required entry");return}for(let[r,i]of[["Default","default"],["Description","description"]]){let o=`- ${r}: `;if(t.startsWith(
594
- o)){let c=j(t,o,n,`Parameter ${r}`,s);A(e,i,c,n,s,`Parameter ${r} entry`);return}}h(n,k("Outputs parameter entry",t,xe.parameter),
595
- s)}function Xi(e,t={}){let n=e.parameters||[],s=i=>m("VIBE64_OUTPUT_PARAMETERS_INVALID","Outputs",i);(!t||typeof t!="obj\
602
+ o)){let c=j(t,o,n,`Parameter ${r}`,s);A(e,i,c,n,s,`Parameter ${r} entry`);return}}h(n,R("Outputs parameter entry",t,xe.parameter),
603
+ s)}function Zi(e,t={}){let n=e.parameters||[],s=i=>m("VIBE64_OUTPUT_PARAMETERS_INVALID","Outputs",i);(!t||typeof t!="obj\
596
604
  ect"||Array.isArray(t))&&s("Output parameters must be an object of text values.");let r=new Set(n.map(({id:i})=>i));for(let i of Object.
597
605
  keys(t))r.has(i)||s(`Unknown output parameter: ${i}.`);return Object.fromEntries(n.map(i=>{let o=Object.hasOwn(t,i.id)?t[i.
598
606
  id]:i.default;return(typeof o!="string"||o.length>4096||/[\0\r\n]/u.test(o))&&s(`${i.label} must be a single line of tex\
599
- t, at most 4096 characters.`),i.required&&!o.trim()&&s(`${i.label} is required.`),[i.id,o]}))}function Ji(e){return{kind:"",
600
- preferredPort:null,urlPath:"/",readiness:null,seen:new Set,line:e}}function Zi(e,t,n){return{id:lt(e[1],t,"Download id",
601
- n),path:"",name:"",mediaType:"",seen:new Set,line:n}}function Qi(e,t,n){/^[0-9]+$/u.test(e)||h(t,"Web presentation prefe\
607
+ t, at most 4096 characters.`),i.required&&!o.trim()&&s(`${i.label} is required.`),[i.id,o]}))}function Qi(e){return{kind:"",
608
+ preferredPort:null,urlPath:"/",readiness:null,seen:new Set,line:e}}function er(e,t,n){return{id:lt(e[1],t,"Download id",
609
+ n),path:"",name:"",mediaType:"",seen:new Set,line:n}}function tr(e,t,n){/^[0-9]+$/u.test(e)||h(t,"Web presentation prefe\
602
610
  rred port must be an integer from 1024 through 65535.",n);let s=Number(e);return(!Number.isSafeInteger(s)||s<1024||s>65535)&&
603
- h(t,"Web presentation preferred port must be an integer from 1024 through 65535.",n),s}function er(e,t,n,s){if(t.startsWith(
611
+ h(t,"Web presentation preferred port must be an integer from 1024 through 65535.",n),s}function nr(e,t,n,s){if(t.startsWith(
604
612
  "- Data: ")){let i=j(t,"- Data: ",n,"Output target Data",s);pt.has(i)||h(n,`Output target Data must be ${Pe(pt)}.`,s),A(
605
613
  e,"dataMode",i,n,s,"output target Data entry");return}if(t==="- Default."){A(e,"default",!0,n,s,"output target Default e\
606
- ntry");return}if(t.startsWith("- Mode: ")){let i=j(t,"- Mode: ",n,"Output target Mode",s);Ln.has(i)||h(n,"Output target \
614
+ ntry");return}if(t.startsWith("- Mode: ")){let i=j(t,"- Mode: ",n,"Output target Mode",s);Mn.has(i)||h(n,"Output target \
607
615
  Mode must be `interactive` or `finite`.",s),A(e,"mode",i,n,s,"output target Mode entry");return}if(t.startsWith("- Workd\
608
616
  ir: ")){A(e,"workdir",w(j(t,"- Workdir: ",n,"Output target Workdir",s),I,n,"Output target workdir",s),n,s,"output target\
609
617
  Workdir entry");return}if(t.startsWith("- Runtimes: ")){A(e,"runtimeRequirements",P(t.slice(12),I,n,"Output target runt\
610
618
  imes",s),n,s,"output target Runtimes entry");return}let r=t.match(/^- (Prepare|Build|Run) `([^`\r\n]+)`:[ \t]+(.+)$/u);if(r){
611
- let i=r[1].toLowerCase(),o=qi(r[3],n,"Output step command",s);i!=="run"&&o.some(c=>/\{(?:host|port)\}/u.test(c))&&h(n,"O\
619
+ let i=r[1].toLowerCase(),o=Ki(r[3],n,"Output step command",s);i!=="run"&&o.some(c=>/\{(?:host|port)\}/u.test(c))&&h(n,"O\
612
620
  nly a web presentation's Run step may use {host} or {port} placeholders.",s),e.steps.push({label:y(r[2],I,n,"Output step\
613
- label",s),argv:o,role:i});return}h(n,k("Outputs target entry",t,[...xe.target,...Fi.slice(1)]),s)}function tr(e,t,n,s){
614
- if(t.startsWith("- Kind: ")){let r=j(t,"- Kind: ",n,"Presentation Kind",s);Mn.has(r)||h(n,"Presentation Kind must be `te\
621
+ label",s),argv:o,role:i});return}h(n,R("Outputs target entry",t,[...xe.target,...Yi.slice(1)]),s)}function sr(e,t,n,s){
622
+ if(t.startsWith("- Kind: ")){let r=j(t,"- Kind: ",n,"Presentation Kind",s);jn.has(r)||h(n,"Presentation Kind must be `te\
615
623
  rminal` or `web`.",s),A(e,"kind",r,n,s,"Presentation Kind entry");return}if(t.startsWith("- Preferred port: ")){A(e,"pre\
616
- ferredPort",Qi(j(t,"- Preferred port: ",n,"Web presentation Preferred port",s),n,s),n,s,"Presentation Preferred port ent\
624
+ ferredPort",tr(j(t,"- Preferred port: ",n,"Web presentation Preferred port",s),n,s),n,s,"Presentation Preferred port ent\
617
625
  ry");return}if(t.startsWith("- URL path: ")){A(e,"urlPath",Fe(j(t,"- URL path: ",n,"Web presentation URL path",s),I,n,"W\
618
626
  eb presentation URL path",s),n,s,"Presentation URL path entry");return}if(t.startsWith("- Ready when: ")){A(e,"readiness",
619
- re(t,I,n,"Web presentation readiness",s),n,s,"Presentation Ready when entry");return}h(n,k("Presentation entry",t,xe.presentation),
620
- s)}function nr(e,t,n){let s=y(e,I,t,"Download Name",n);return(s.length>255||[".",".."].includes(s)||/[\\/\0]/u.test(s)||
621
- s.trim()!==s)&&h(t,"Download Name must be a safe filename without path separators.",n),s}function sr(e,t,n){let s=y(e,I,
622
- t,"Download Media type",n);return(s.length>127||!zi.test(s))&&h(t,"Download Media type must be a lowercase type/subtype \
623
- value.",n),s}function ir(e,t,n,s){if(t.startsWith("- Path: ")){A(e,"path",w(j(t,"- Path: ",n,"Download Path",s),I,n,"Dow\
624
- nload path",s,{allowRoot:!1}),n,s,"Download Path entry");return}if(t.startsWith("- Name: ")){A(e,"name",nr(j(t,"- Name: ",
625
- n,"Download Name",s),n,s),n,s,"Download Name entry");return}if(t.startsWith("- Media type: ")){A(e,"mediaType",sr(j(t,"-\
626
- Media type: ",n,"Download Media type",s),n,s),n,s,"Download Media type entry");return}h(n,k("Download entry",t,xe.download),
627
- s)}function rr(e,t,n){for(let[s,r]of[["path","Path"],["name","Name"],["mediaType","Media type"]])e[s]||h(t,`Output targe\
628
- t ${n} Download ${e.id} needs ${r}.`,e.line);return{id:e.id,path:e.path,name:e.name,mediaType:e.mediaType}}function or(e,t,n){
627
+ oe(t,I,n,"Web presentation readiness",s),n,s,"Presentation Ready when entry");return}h(n,R("Presentation entry",t,xe.presentation),
628
+ s)}function ir(e,t,n){let s=y(e,I,t,"Download Name",n);return(s.length>255||[".",".."].includes(s)||/[\\/\0]/u.test(s)||
629
+ s.trim()!==s)&&h(t,"Download Name must be a safe filename without path separators.",n),s}function rr(e,t,n){let s=y(e,I,
630
+ t,"Download Media type",n);return(s.length>127||!qi.test(s))&&h(t,"Download Media type must be a lowercase type/subtype \
631
+ value.",n),s}function or(e,t,n,s){if(t.startsWith("- Path: ")){A(e,"path",w(j(t,"- Path: ",n,"Download Path",s),I,n,"Dow\
632
+ nload path",s,{allowRoot:!1}),n,s,"Download Path entry");return}if(t.startsWith("- Name: ")){A(e,"name",ir(j(t,"- Name: ",
633
+ n,"Download Name",s),n,s),n,s,"Download Name entry");return}if(t.startsWith("- Media type: ")){A(e,"mediaType",rr(j(t,"-\
634
+ Media type: ",n,"Download Media type",s),n,s),n,s,"Download Media type entry");return}h(n,R("Download entry",t,xe.download),
635
+ s)}function ar(e,t,n){for(let[s,r]of[["path","Path"],["name","Name"],["mediaType","Media type"]])e[s]||h(t,`Output targe\
636
+ t ${n} Download ${e.id} needs ${r}.`,e.line);return{id:e.id,path:e.path,name:e.name,mediaType:e.mediaType}}function cr(e,t,n){
629
637
  return e.kind||h(t,`Output target ${n} Presentation needs Kind.`,e.line),e.kind==="terminal"?((e.preferredPort!==null||e.
630
638
  readiness||e.seen.has("urlPath"))&&h(t,`Output target ${n} terminal Presentation accepts only Kind.`,e.line),{kind:"term\
631
639
  inal"}):(e.readiness||h(t,`Output target ${n} web Presentation needs one Ready when entry.`,e.line),{kind:"web",preferredPort:e.
632
- preferredPort,urlPath:e.urlPath,readiness:e.readiness})}function Vn(e,t){e.mode||h(t,`Output target ${e.id} needs one Mo\
640
+ preferredPort,urlPath:e.urlPath,readiness:e.readiness})}function Ln(e,t){e.mode||h(t,`Output target ${e.id} needs one Mo\
633
641
  de entry.`,e.line),e.steps.length===0&&h(t,`Output target ${e.id} needs at least one step.`,e.line);let n={prepare:0,build:1,
634
642
  run:2};for(let u=1;u<e.steps.length;u+=1)n[e.steps[u].role]<n[e.steps[u-1].role]&&h(t,`Output target ${e.id} steps must \
635
- be ordered Prepare, Build, then Run.`,e.line);let s=e.steps.filter(({role:u})=>u==="run"),r=e.downloads.map(u=>rr(u,t,e.
643
+ be ordered Prepare, Build, then Run.`,e.line);let s=e.steps.filter(({role:u})=>u==="run"),r=e.downloads.map(u=>ar(u,t,e.
636
644
  id));new Set(r.map(({id:u})=>u)).size!==r.length&&h(t,`Output target ${e.id} contains a duplicate Download id.`,e.line),
637
645
  e.mode==="finite"?((s.length>0||e.presentation||e.previewIdentity)&&h(t,`Finite output target ${e.id} cannot have Run, P\
638
646
  resentation, or Preview identity entries.`,e.line),r.length===0&&h(t,`Finite output target ${e.id} needs at least one Do\
639
647
  wnload.`,e.line)):s.length!==1||e.steps.at(-1).role!=="run"?h(t,`Interactive output target ${e.id} needs exactly one fin\
640
648
  al Run step.`,e.line):e.presentation||h(t,`Interactive output target ${e.id} needs one Presentation.`,e.line);let i=e.presentation?
641
- or(e.presentation,t,e.id):null,o=e.steps.flatMap(({argv:u})=>u.flatMap(p=>[...p.matchAll(ut)].map(d=>d[1])));o.some(u=>[
649
+ cr(e.presentation,t,e.id):null,o=e.steps.flatMap(({argv:u})=>u.flatMap(p=>[...p.matchAll(ut)].map(d=>d[1])));o.some(u=>[
642
650
  "host","port"].includes(u))&&i?.kind!=="web"&&h(t,"Only a web output target may use {host} or {port} placeholders.",e.line);
643
- let c=e.parameters.map(({seen:u,...p})=>p),a=new Set(c.map(({id:u})=>u));(c.length>xn||a.size!==c.length)&&h(t,`Output t\
644
- arget ${e.id} may declare at most ${xn} parameters with unique ids.`,e.line);for(let u of o.filter(p=>p.startsWith("para\
651
+ let c=e.parameters.map(({seen:u,...p})=>p),a=new Set(c.map(({id:u})=>u));(c.length>Vn||a.size!==c.length)&&h(t,`Output t\
652
+ arget ${e.id} may declare at most ${Vn} parameters with unique ids.`,e.line);for(let u of o.filter(p=>p.startsWith("para\
645
653
  meter:"))){let p=u.slice(10);a.has(p)||h(t,`Undeclared output parameter: ${p}.`,e.line)}for(let u of c)o.includes(`param\
646
654
  eter:${u.id}`)||h(t,`Output parameter ${u.id} must be used in a step command.`,e.line);return e.previewIdentity&&i?.kind!==
647
655
  "web"&&h(t,"Only a web output target may declare Preview identity.",e.line),{id:e.id,label:e.label,default:e.default,mode:e.
648
656
  mode,workdir:e.workdir,runtimeRequirements:e.runtimeRequirements,...e.dataMode?{dataMode:e.dataMode}:{},steps:e.steps,presentation:i,
649
- downloads:r,...c.length?{parameters:c}:{},...e.previewIdentity?{previewIdentity:$n(e.previewIdentity,t,e.id)}:{}}}function Ve(e,t={}){
657
+ downloads:r,...c.length?{parameters:c}:{},...e.previewIdentity?{previewIdentity:xn(e.previewIdentity,t,e.id)}:{}}}function Ve(e,t={}){
650
658
  let{path:n="genesis/stack.md#Outputs"}=t;if(Array.isArray(e)||h(n,"Outputs must be supplied as exact Stack section lines\
651
659
  ."),S(e))return{version:1,targets:[]};let s=[],r=null,i="target",o=null;for(let a=0;a<e.length;a+=1){let u=e[a].trim();if(!u)
652
- continue;let p=a+1,d=u.match(Bi);if(d){r&&s.push(Vn(r,n)),r=Ki(d,n,p),i="target",o=null;continue}r||h(n,"## Outputs must\
653
- begin with a Target heading.",p);let l=u.match(Wi);if(l){let E={id:lt(l[1],n,"Parameter id",p),label:y(l[2],I,n,"Parame\
660
+ continue;let p=a+1,d=u.match(Hi);if(d){r&&s.push(Ln(r,n)),r=Xi(d,n,p),i="target",o=null;continue}r||h(n,"## Outputs must\
661
+ begin with a Target heading.",p);let l=u.match(zi);if(l){let E={id:lt(l[1],n,"Parameter id",p),label:y(l[2],I,n,"Parame\
654
662
  ter label",p),default:"",description:"",required:!1,seen:new Set};r.parameters.push(E),i="parameter",o=E;continue}if(u===
655
663
  "#### Presentation"){r.presentation&&h(n,"Presentation must appear at most once below an output target.",p),r.presentation=
656
- Ji(p),i="presentation",o=r.presentation;continue}if(u==="#### Preview identity"){r.previewIdentity&&h(n,"Preview identit\
657
- y must appear at most once below an output target.",p),r.previewIdentity=Dn(p),i="previewIdentity",o=r.previewIdentity;continue}
658
- let g=u.match(Hi);if(g){let E=Zi(g,n,p);r.downloads.push(E),i="download",o=E;continue}i==="parameter"?Yi(o,u,n,p):i==="p\
659
- resentation"?tr(o,u,n,p):i==="previewIdentity"?Pn(o,u,n,p):i==="download"?ir(o,u,n,p):er(r,u,n,p)}r&&s.push(Vn(r,n)),s.length===
664
+ Qi(p),i="presentation",o=r.presentation;continue}if(u==="#### Preview identity"){r.previewIdentity&&h(n,"Preview identit\
665
+ y must appear at most once below an output target.",p),r.previewIdentity=Pn(p),i="previewIdentity",o=r.previewIdentity;continue}
666
+ let g=u.match(Fi);if(g){let E=er(g,n,p);r.downloads.push(E),i="download",o=E;continue}i==="parameter"?Ji(o,u,n,p):i==="p\
667
+ resentation"?sr(o,u,n,p):i==="previewIdentity"?$n(o,u,n,p):i==="download"?or(o,u,n,p):nr(r,u,n,p)}r&&s.push(Ln(r,n)),s.length===
660
668
  0&&h(n,"## Outputs needs at least one Target or exactly `- Nothing.`.");let c=s.map(({id:a})=>a);return new Set(c).size!==
661
669
  c.length&&h(n,"Outputs contains a duplicate target id."),s.filter(({default:a})=>a).length>1&&h(n,"Outputs may declare a\
662
- t most one default target."),{version:1,targets:s}}function ar(e,t={}){let{resourcesPreparing:n=!1}=t,s=e.details||{},r=Array.
670
+ t most one default target."),{version:1,targets:s}}function ur(e,t={}){let{resourcesPreparing:n=!1}=t,s=e.details||{},r=Array.
663
671
  isArray(s.missing)?s.missing:[],i=(Array.isArray(s.alternatives)?s.alternatives:[]).map((c,a)=>Array.isArray(r[a])&&r[a].
664
672
  length?r[a].join(" and "):String(c)).filter(Boolean);if(e.code!=="STACK_RESOURCE_MISSING"||!i.length)return e.message;let o=String(
665
673
  s.resource||"").trim()||"resources";return n?`Vibe64 is still setting up this app's ${o}. Preview can start when workspa\
666
674
  ce setup finishes; then press Check again.`:`This app needs its ${o} before Preview can start: set ${i.join(", or ")} in\
667
- Env (in Dash, under Development), then press Check again.`}function jn({environment:e={},section:t={},resourcesPreparing:n=!1}={}){
675
+ Env (in Dash, under Development), then press Check again.`}function Gn({environment:e={},section:t={},resourcesPreparing:n=!1}={}){
668
676
  z(t,e,"Outputs section");let s=[...t.diagnostics||[]],r=[...e.diagnostics||[]],i={version:1,targets:[]};t.status==="read\
669
- y"&&(i=Ve(t.lines));let o=r.length===0?null:[...new Set(r.map(p=>ar(p,{resourcesPreparing:n})))].join(" "),c=i.targets.map(
677
+ y"&&(i=Ve(t.lines));let o=r.length===0?null:[...new Set(r.map(p=>ur(p,{resourcesPreparing:n})))].join(" "),c=i.targets.map(
670
678
  p=>({...p,source:t.source||null,available:s.length===0&&r.length===0,disabledReason:o})),a=[...s,...r],u="ready";return a.
671
- length>0?u="blocked":c.length===0&&(u="unconfigured"),{contract:Gi,status:u,stackHash:t.stackHash,components:[...t.components||
679
+ length>0?u="blocked":c.length===0&&(u="unconfigured"),{contract:Wi,status:u,stackHash:t.stackHash,components:[...t.components||
672
680
  []],environmentDefaults:structuredClone(e.environmentDefaults||[]),runtimeRequirements:F(c.flatMap(p=>p.runtimeRequirements)),
673
- resources:structuredClone(e.resources||[]),targets:c,diagnostics:a}}var Gn="Project services",cr="vibe64.project-services.v1",ne="VIBE64_PROJECT_SERVICES_INVALID",se="genesis/stack.md#Proj\
674
- ect services",ur="- Start `service-id` [per session] with `runtime` [in `workdir`]: `command` `argument`...";function Un(e){
681
+ resources:structuredClone(e.resources||[]),targets:c,diagnostics:a}}var Un="Project services",pr="vibe64.project-services.v1",ne="VIBE64_PROJECT_SERVICES_INVALID",se="genesis/stack.md#Proj\
682
+ ect services",lr="- Start `service-id` [per session] with `runtime` [in `workdir`]: `command` `argument`...";function Wn(e){
675
683
  if(Array.isArray(e)||m(ne,se,"Expected exact Project services section lines."),S(e))return[];let t=[];for(let[n,s]of e.entries()){
676
684
  let r=s.trim();if(!r)continue;let i=n+1,o=r.match(/^- Start `([a-z][a-z0-9-]{0,63})`( per session)? with (.+?): (.+)$/u);
677
- o||m(ne,se,`Use: ${ur}`,i),t.some(({id:a})=>a===o[1])&&m(ne,se,"Duplicate project service id.",i);let c=o[3].match(/^(.*?) in `([^`\r\n]+)`$/u);
685
+ o||m(ne,se,`Use: ${lr}`,i),t.some(({id:a})=>a===o[1])&&m(ne,se,"Duplicate project service id.",i);let c=o[3].match(/^(.*?) in `([^`\r\n]+)`$/u);
678
686
  t.push({id:o[1],...o[2]?{scope:"session"}:{},runtimeRequirements:P(c?c[1]:o[3],ne,se,"Service runtimes",i),workdir:w(c?.[2]||
679
687
  ".",ne,se,"Service workdir",i),argv:D(o[4],ne,se,"Service command",i)})}return t.length||m(ne,se,"Declare a service or e\
680
- xactly `- Nothing.`."),t}function Bn(e={}){let t=e.status==="ready"?Un(e.lines):[];return{contract:cr,status:e.status===
681
- "blocked"?"blocked":t.length?"ready":"unconfigured",services:t,recipeHash:t.length?N(t):"",diagnostics:e.diagnostics||[]}}import{access as pr}from"node:fs/promises";import Hn from"node:path";var lr="vibe64.workspace-setup.v1",he="Workspace setup",Le="VIBE64_WORKSPACE_SETUP_INVALID",Wn="- Prepare `label` [from \
682
- `path`...] with `runtime` [in `workdir`] [when|if `path` exists]: `command` `argument`...",dr=/^- Prepare `([^`\r\n]+)` (.+)$/u,
683
- mr=/^from ((?:`[^`\r\n]+`[ \t]+)+)(with .+)$/u;function dt(e,t,n,s={}){m(Le,e,t,n,s)}function Me(e,t={}){let{path:n="gen\
688
+ xactly `- Nothing.`."),t}function Bn(e={}){let t=e.status==="ready"?Wn(e.lines):[];return{contract:pr,status:e.status===
689
+ "blocked"?"blocked":t.length?"ready":"unconfigured",services:t,recipeHash:t.length?N(t):"",diagnostics:e.diagnostics||[]}}import{access as dr}from"node:fs/promises";import zn from"node:path";var mr="vibe64.workspace-setup.v1",he="Workspace setup",Le="VIBE64_WORKSPACE_SETUP_INVALID",Hn="- Prepare `label` [from \
690
+ `path`...] with `runtime` [in `workdir`] [when|if `path` exists]: `command` `argument`...",hr=/^- Prepare `([^`\r\n]+)` (.+)$/u,
691
+ fr=/^from ((?:`[^`\r\n]+`[ \t]+)+)(with .+)$/u;function dt(e,t,n,s={}){m(Le,e,t,n,s)}function Me(e,t={}){let{path:n="gen\
684
692
  esis/stack.md#Workspace setup"}=t;if(Array.isArray(e)||dt(n,"Workspace setup must be supplied as exact Stack section lin\
685
- es."),S(e))return[];let s=[];for(let r=0;r<e.length;r+=1){let i=e[r].trim();if(!i)continue;let o=r+1,c=i.match(dr),a=c?.[2].
686
- match(mr);(!c||c[2].startsWith("from ")&&!a)&&dt(n,`Every Workspace setup entry must use: ${Wn}`,o,{observed:i}),s.push(
693
+ es."),S(e))return[];let s=[];for(let r=0;r<e.length;r+=1){let i=e[r].trim();if(!i)continue;let o=r+1,c=i.match(hr),a=c?.[2].
694
+ match(fr);(!c||c[2].startsWith("from ")&&!a)&&dt(n,`Every Workspace setup entry must use: ${Hn}`,o,{observed:i}),s.push(
687
695
  {label:y(c[1],Le,n,"Workspace setup step label",o),...a?{inputs:ve(a[1].trimEnd(),Le,n,"Workspace setup inputs",o)}:{},...be(
688
- a?a[2]:c[2],Le,n,"Workspace setup",o,{form:Wn,observed:i})})}return s.length===0&&dt(n,"## Workspace setup needs at leas\
689
- t one Prepare entry or exactly `- Nothing.`."),s}async function hr(e,t){try{return await pr(Hn.join(e,t)),!0}catch(n){if([
690
- "ENOENT","ENOTDIR"].includes(n?.code))return!1;throw n}}async function zn({projectRoot:e,section:t={}}={}){let n=[...t.diagnostics||
691
- []],s=[];t.status==="ready"&&(s=Me(t.lines));let r=[],i=[],o=Hn.resolve(e);if(n.length===0)for(let l of s){if(!l.condition||
692
- await hr(o,l.condition.pathExists)){r.push(l);continue}l.condition.onMissing==="wait"&&i.push(l.condition.pathExists)}if(i.
696
+ a?a[2]:c[2],Le,n,"Workspace setup",o,{form:Hn,observed:i})})}return s.length===0&&dt(n,"## Workspace setup needs at leas\
697
+ t one Prepare entry or exactly `- Nothing.`."),s}async function gr(e,t){try{return await dr(zn.join(e,t)),!0}catch(n){if([
698
+ "ENOENT","ENOTDIR"].includes(n?.code))return!1;throw n}}async function Fn({projectRoot:e,section:t={}}={}){let n=[...t.diagnostics||
699
+ []],s=[];t.status==="ready"&&(s=Me(t.lines));let r=[],i=[],o=zn.resolve(e);if(n.length===0)for(let l of s){if(!l.condition||
700
+ await gr(o,l.condition.pathExists)){r.push(l);continue}l.condition.onMissing==="wait"&&i.push(l.condition.pathExists)}if(i.
693
701
  length>0){let l=F(i);n.push({code:"VIBE64_WORKSPACE_SETUP_WAITING",message:`Workspace setup is waiting for project ${l.length===
694
702
  1?"path":"paths"}: ${l.join(", ")}.`,details:{paths:l}})}let c=n.some(({code:l})=>l==="VIBE64_WORKSPACE_SETUP_WAITING"),
695
703
  a=n.some(({code:l})=>l!=="VIBE64_WORKSPACE_SETUP_WAITING"),u="unconfigured";a?u="blocked":!c&&r.length>0&&(u="ready");let p=r.
696
- map(({condition:l,...g})=>g),d={version:1,steps:p};return{contract:lr,status:u,stackHash:t.stackHash,recipeHash:u==="rea\
704
+ map(({condition:l,...g})=>g),d={version:1,steps:p};return{contract:mr,status:u,stackHash:t.stackHash,recipeHash:u==="rea\
697
705
  dy"?N(d):"",components:[...t.components||[]],source:t.source||null,runtimeRequirements:F(p.flatMap(l=>l.runtimeRequirements)),
698
- steps:p,diagnostics:n}}var fr="vibe64.resource-estimates.v1",je="Resource estimates",Kn="VIBE64_RESOURCE_ESTIMATES_INVALID",gr=1024*1024,Fn=1024*
699
- 1024,qn=new Map([["Startup typical MiB","startupTypical"],["Startup high MiB","startupHigh"],["Running typical MiB","run\
706
+ steps:p,diagnostics:n}}var Er="vibe64.resource-estimates.v1",je="Resource estimates",Kn="VIBE64_RESOURCE_ESTIMATES_INVALID",vr=1024*1024,qn=1024*
707
+ 1024,Yn=new Map([["Startup typical MiB","startupTypical"],["Startup high MiB","startupHigh"],["Running typical MiB","run\
700
708
  ningTypical"],["Running high MiB","runningHigh"],["Typical MiB","typical"],["High MiB","high"]]);function G(e,t,n){m(Kn,
701
709
  e,t,n)}function mt(e,t,n,s,r){let i=e.get(t),o=e.get(n);return(i===void 0||o===void 0||i>o)&&G(s,"Each resource phase re\
702
- quires typical and high estimates, with typical no greater than high.",r),{typicalBytes:i,highBytes:o}}function Yn(e,t={}){
710
+ quires typical and high estimates, with typical no greater than high.",r),{typicalBytes:i,highBytes:o}}function Xn(e,t={}){
703
711
  let{path:n="genesis/stack.md#Resource estimates",targets:s=[],hasWorkspaceSetup:r=!1}=t;(!Array.isArray(e)||e.length>2048||
704
712
  e.some(p=>typeof p!="string")||Buffer.byteLength(e.join(`
705
713
  `),"utf8")>64*1024)&&G(n,"Resource estimates must be exact Stack section lines within 64 KiB and 2048 lines.");let i={version:1,
@@ -710,114 +718,116 @@ startupHigh",n,g),running:mt(l,"runningTypical","runningHigh",n,g)});return}(l.s
710
718
  G(n,"Finite outputs and Workspace setup require only Typical MiB and High MiB.",g);let E=mt(l,"typical","high",n,g);p?i.
711
719
  outputs.push({targetId:p,mode:d,execution:E}):i.workspaceSetup=E}for(let p=0;p<e.length;p+=1){let d=e[p].trim(),l=p+1;if(!d)
712
720
  continue;let g=d.match(/^### Output `([a-z0-9]+(?:-[a-z0-9]+)*)`$/u);if(g||d==="### Workspace setup"){u();let $=g?.[1]||
713
- "",X=$?`output:${$}`:"workspace-setup";c.has(X)&&G(n,"Resource estimates contains a duplicate operation.",l),c.add(X);let ie=o.
714
- get($);$&&!["interactive","finite"].includes(ie?.mode)&&G(n,`Resource estimate references an undeclared output: ${$}.`,l),
715
- !$&&!r&&G(n,"Resource estimate references undeclared Workspace setup steps.",l),a={targetId:$,mode:ie?.mode||"setup",fields:new Map,
716
- line:l};continue}let E=d.match(/^- ([A-Za-z ]+): `([1-9][0-9]*)`$/u),_=E&&qn.get(E[1]);(!a||!_)&&G(n,`Expected an Output\
717
- or Workspace setup heading followed by positive integer MiB estimates: ${[...qn.keys()].map($=>`- ${$}: \`number\``).join(
718
- "; ")}.`,l),a.fields.has(_)&&G(n,`Duplicate resource field: ${E[1]}.`,l);let R=Number(E[2]);(!Number.isSafeInteger(R)||R>
719
- Fn)&&G(n,`Resource estimates must be between 1 and ${Fn} MiB.`,l),a.fields.set(_,R*gr)}return u(),c.size===0&&G(n,"Resou\
721
+ "",X=$?`output:${$}`:"workspace-setup";c.has(X)&&G(n,"Resource estimates contains a duplicate operation.",l),c.add(X);let re=o.
722
+ get($);$&&!["interactive","finite"].includes(re?.mode)&&G(n,`Resource estimate references an undeclared output: ${$}.`,l),
723
+ !$&&!r&&G(n,"Resource estimate references undeclared Workspace setup steps.",l),a={targetId:$,mode:re?.mode||"setup",fields:new Map,
724
+ line:l};continue}let E=d.match(/^- ([A-Za-z ]+): `([1-9][0-9]*)`$/u),_=E&&Yn.get(E[1]);(!a||!_)&&G(n,`Expected an Output\
725
+ or Workspace setup heading followed by positive integer MiB estimates: ${[...Yn.keys()].map($=>`- ${$}: \`number\``).join(
726
+ "; ")}.`,l),a.fields.has(_)&&G(n,`Duplicate resource field: ${E[1]}.`,l);let k=Number(E[2]);(!Number.isSafeInteger(k)||k>
727
+ qn)&&G(n,`Resource estimates must be between 1 and ${qn} MiB.`,l),a.fields.set(_,k*vr)}return u(),c.size===0&&G(n,"Resou\
720
728
  rce estimates needs an operation or exactly `- Nothing.`."),i}function Ge({section:e={},outputsSection:t={},workspaceSetupSection:n={}}={}){
721
729
  z(e,t,"Resource estimates and Outputs"),z(e,n,"Resource estimates and Workspace setup");let s=[...e.diagnostics||[]],r={
722
- version:1,outputs:[],workspaceSetup:null};if(e.status==="ready"&&s.length===0)try{r=Yn(e.lines,{targets:t.status==="read\
730
+ version:1,outputs:[],workspaceSetup:null};if(e.status==="ready"&&s.length===0)try{r=Xn(e.lines,{targets:t.status==="read\
723
731
  y"?Ve(t.lines).targets:[],hasWorkspaceSetup:n.status==="ready"&&Me(n.lines).length>0})}catch(o){if(o?.name!=="Vibe64Stac\
724
732
  kOperationError")throw o;s.push({code:Kn,message:o.message,details:{...o.details,causeCode:o.code}})}let i=s.length>0?"i\
725
- nvalid":r.outputs.length>0||r.workspaceSetup?"ready":"unconfigured";return{contract:fr,status:i,stackHash:e.stackHash,sectionHash:e.
733
+ nvalid":r.outputs.length>0||r.workspaceSetup?"ready":"unconfigured";return{contract:Er,status:i,stackHash:e.stackHash,sectionHash:e.
726
734
  sectionHash||"",estimatesHash:i==="ready"?N(r):"",source:e.source||null,outputs:r.outputs,workspaceSetup:r.workspaceSetup,
727
- fallbackReason:i==="invalid"?"invalid-estimates":i==="unconfigured"?"not-declared":null,diagnostics:s}}var Er="vibe64.integration-setup.v1",Xn="Integration setup",fe="VIBE64_INTEGRATION_SETUP_INVALID",vr="- Command with `ru\
728
- ntime` in `workdir`: `command` `argument`...";function Jn(e,t={}){let{path:n="genesis/stack.md#Integration setup"}=t;if(Array.
735
+ fallbackReason:i==="invalid"?"invalid-estimates":i==="unconfigured"?"not-declared":null,diagnostics:s}}var br="vibe64.integration-setup.v1",Jn="Integration setup",fe="VIBE64_INTEGRATION_SETUP_INVALID",yr="- Command with `ru\
736
+ ntime` in `workdir`: `command` `argument`...";function Zn(e,t={}){let{path:n="genesis/stack.md#Integration setup"}=t;if(Array.
729
737
  isArray(e)||m(fe,n,"Integration setup requires exact Stack section lines."),S(e))return null;let s=e.map(i=>i.trim()).filter(
730
738
  Boolean),r=s.length===1&&s[0].match(/^- Command with (.+?) in `([^`\r\n]+)`: (.+)$/u);return r||m(fe,n,`Integration setu\
731
- p requires exactly one entry: ${vr}; or - Nothing.`),{argv:D(r[3],fe,n,"Integration setup command"),workdir:w(r[2],fe,n,
732
- "Integration setup workdir"),runtimeRequirements:P(r[1],fe,n,"Integration setup runtimes")}}function Zn({section:e={}}={}){
733
- let t=[...e.diagnostics||[]],n=e.status==="ready"&&t.length===0?Jn(e.lines):null;return{contract:Er,status:t.length?"blo\
739
+ p requires exactly one entry: ${yr}; or - Nothing.`),{argv:D(r[3],fe,n,"Integration setup command"),workdir:w(r[2],fe,n,
740
+ "Integration setup workdir"),runtimeRequirements:P(r[1],fe,n,"Integration setup runtimes")}}function Qn({section:e={}}={}){
741
+ let t=[...e.diagnostics||[]],n=e.status==="ready"&&t.length===0?Zn(e.lines):null;return{contract:br,status:t.length?"blo\
734
742
  cked":n?"ready":"unconfigured",stackHash:e.stackHash,recipeHash:n?N({version:1,command:n}):"",source:e.source||null,components:[
735
- ...e.components||[]],command:n,diagnostics:t}}var br=new URL("./index.js",import.meta.url).href,ts=wr(br),Ue=new Map;async function Sr(e){if(!B.isAbsolute(e||""))throw new TypeError(
736
- "Genesis host context requires an absolute runtime root.");let t=B.join(e,"genesis-context");if(!Ue.has(t)){let n=Ht(t).
737
- catch(s=>{throw Ue.delete(t),s});Ue.set(t,n)}return Ue.get(t)}var{GENESIS_CONTRACTS:C,HOST_CONTEXT_RESOLVER_DATA_ENV:_r,
738
- HOST_CONTEXT_RESOLVER_ENV:Ir,PROMPT_TASKS:ns,addStack:Tr,applyTemplate:Or,generatePrompt:Rr,indexCodebase:kr,initialize:Ar,
739
- inspectCollaboration:Nr,inspectDerivedArtifacts:Cr,inspectEngineering:Dr,inspectEnvironment:Be,inspectPasses:Pr,inspectProject:$r,
740
- inspectProjectFormat:xr,inspectAgentIntegrations:Vr,inspectSkills:Lr,inspectStackSection:Mr,inspectStackSections:jr,inspectSubsystems:Gr,
741
- listTemplates:Ur,parserEnvironment:Da,setCollaboration:Br,setEngineeringProfile:Wr,syncAgentIntegrations:Hr,syncSkills:zr,
742
- withTrustedGitRepository:Fr,SOURCE_EXPLANATION_PROMPT_VERSION:Pa,sourceExplanationGuidance:$a,validateArchitectureFacts:xa,
743
- mergeArchitectureObservations:Va,validateCityDocument:La,validateCallWeb:Ma,CALL_WEB_SCHEMA:ja,MACHINE_CITY_SCHEMA:Ga,PROGRAM_CITY_SCHEMA:Ua,
744
- CITY_SCHEMA_VERSION:Ba}=ge;async function Wa(e){let t=await Sr(e);return{[Ir]:Qr(),[_r]:JSON.stringify({registryPath:t.registryPath}),
745
- GENESIS_TURN_CONTEXT_ENABLED:"0"}}var Ha="genesis/blueprint.md",za="genesis/subsystems.md",qr=Object.freeze(["vue","djan\
746
- go-postgresql","jskit-postgresql","postgresql","rails-postgresql","spring-boot-postgresql"]),Kr=Object.freeze(["genesis-\
747
- stack"]),es=Object.freeze({BLUEPRINT_INVALID:"blueprint",BLUEPRINT_REQUIRED:"start"});if(!Array.isArray(ns))throw new Error(
748
- "This genesis-compiler lists no prompt tasks. Update it to the release Vibe64 declares.");var ss=new Set(ns),ht=15e3;function ft(e,t=ht){
743
+ ...e.components||[]],command:n,diagnostics:t}}var wr=new URL("./index.js",import.meta.url).href,ns=_r(wr),Ue=new Map;async function Ir(e){if(!W.isAbsolute(e||""))throw new TypeError(
744
+ "Genesis host context requires an absolute runtime root.");let t=W.join(e,"genesis-context");if(!Ue.has(t)){let n=Ht(t).
745
+ catch(s=>{throw Ue.delete(t),s});Ue.set(t,n)}return Ue.get(t)}var{GENESIS_CONTRACTS:C,HOST_CONTEXT_RESOLVER_DATA_ENV:Tr,
746
+ HOST_CONTEXT_RESOLVER_ENV:Or,PROMPT_TASKS:ss,addStack:kr,applyTemplate:Rr,generatePrompt:Ar,indexCodebase:Nr,initialize:Cr,
747
+ inspectCollaboration:Dr,inspectDerivedArtifacts:Pr,inspectEngineering:$r,inspectEnvironment:We,inspectPasses:xr,inspectProject:Vr,
748
+ inspectProjectFormat:Lr,inspectAgentIntegrations:Mr,inspectSkills:jr,inspectStackSection:Gr,inspectStackSections:Ur,inspectSubsystems:Wr,
749
+ listStackPieces:Br,listTemplates:Hr,parserEnvironment:La,setCollaboration:zr,setEngineeringProfile:Fr,syncAgentIntegrations:qr,
750
+ syncSkills:Yr,withTrustedGitRepository:Kr,SOURCE_EXPLANATION_PROMPT_VERSION:Ma,sourceExplanationGuidance:ja,validateArchitectureFacts:Ga,
751
+ mergeArchitectureObservations:Ua,validateCityDocument:Wa,validateCallWeb:Ba,CALL_WEB_SCHEMA:Ha,MACHINE_CITY_SCHEMA:za,PROGRAM_CITY_SCHEMA:Fa,
752
+ CITY_SCHEMA_VERSION:qa}=ge;async function Ya(e){let t=await Ir(e);return{[Or]:no(),[Tr]:JSON.stringify({registryPath:t.registryPath}),
753
+ GENESIS_TURN_CONTEXT_ENABLED:"0"}}var Ka="genesis/blueprint.md",Xa="genesis/subsystems.md",Xr=Object.freeze(["vue","djan\
754
+ go-postgresql","jskit-postgresql","postgresql","rails-postgresql","spring-boot-postgresql"]),Jr=Object.freeze(["genesis-\
755
+ stack"]),ts=Object.freeze({BLUEPRINT_INVALID:"blueprint",BLUEPRINT_REQUIRED:"start"});if(!Array.isArray(ss))throw new Error(
756
+ "This genesis-compiler lists no prompt tasks. Update it to the release Vibe64 declares.");var is=new Set(ss),ht=15e3;function ft(e,t=ht){
749
757
  let n,s=new Promise((r,i)=>{n=setTimeout(()=>i(Object.assign(new Error(`Genesis did not answer within ${t} ms.`),{code:"\
750
- vibe64_genesis_timeout"})),t)});return Promise.race([Promise.resolve().then(e),s]).finally(()=>clearTimeout(n))}function Yr(e,t={}){
751
- let{required:n=!1}=t,s=L(e);if(!s&&!n)return"";if(!ss.has(s))throw new TypeError(s?`Unknown Genesis prompt task: ${s}.`:
752
- "Genesis prompt actions require an explicit task.");return s}function Xr(e={}){return Yr(e.genesisTask)||"work"}function Jr(e={},t={}){
758
+ vibe64_genesis_timeout"})),t)});return Promise.race([Promise.resolve().then(e),s]).finally(()=>clearTimeout(n))}function Zr(e,t={}){
759
+ let{required:n=!1}=t,s=L(e);if(!s&&!n)return"";if(!is.has(s))throw new TypeError(s?`Unknown Genesis prompt task: ${s}.`:
760
+ "Genesis prompt actions require an explicit task.");return s}function Qr(e={}){return Zr(e.genesisTask)||"work"}function eo(e={},t={}){
753
761
  return[e.conversationRequest,e.feedback,e.request,e.plan,e.description,t.label].map(L).find(Boolean)||"Continue the requ\
754
- ested project work."}function Zr(){let e=(ts.resolve.paths("genesis-compiler")||[]).find(t=>Qn(B.join(t,"genesis-compile\
755
- r"))&&Qn(B.join(t,".bin","genesis")));if(!e)throw new Error("The installed Genesis compiler executable could not be loca\
756
- ted.");return B.join(e,".bin")}function is(){let e=ts.resolve("@local/vibe64-genesis/server");return B.resolve(B.dirname(
757
- e),"../../bin")}function Qr(){return B.resolve(is(),"vibe64-genesis-host-context")}function Fa(e=[]){let t=is(),n=Zr();return[
758
- ...(Array.isArray(e)?e:[]).filter(r=>![t,n].includes(L(r))),t]}function eo(e={},t={}){let{prompt:n=!1}=t;return{...e,...n?
759
- {hiddenStackPieces:qr}:{},stackPackages:Kr}}function qa(e={}){return W(Tr,e)}function Ka(e={}){return W(Ar,e)}function Ya(e={}){
760
- return ue(Lr,e)}function Xa(e={}){return W(zr,e)}function Ja(e={}){return W(Hr,e)}function Za(e={}){return ue(Vr,e)}function Qa(e={}){
761
- return ue(Gr,e)}async function ec(e={}){return $t(await Y(At,e))}async function tc(e={}){return Lt(await Y(xt,e))}function nc(e={}){
762
- return W(kr,e)}function to(){let e=Cr();if(e?.contract!==C.derivedArtifacts)throw new Error(`Genesis returned ${e?.contract||
762
+ ested project work."}function to(){let e=(ns.resolve.paths("genesis-compiler")||[]).find(t=>es(W.join(t,"genesis-compile\
763
+ r"))&&es(W.join(t,".bin","genesis")));if(!e)throw new Error("The installed Genesis compiler executable could not be loca\
764
+ ted.");return W.join(e,".bin")}function rs(){let e=ns.resolve("@local/vibe64-genesis/server");return W.resolve(W.dirname(
765
+ e),"../../bin")}function no(){return W.resolve(rs(),"vibe64-genesis-host-context")}function Ja(e=[]){let t=rs(),n=to();return[
766
+ ...(Array.isArray(e)?e:[]).filter(r=>![t,n].includes(L(r))),t]}function so(e={},t={}){let{prompt:n=!1}=t;return{...e,...n?
767
+ {hiddenStackPieces:Xr}:{},stackPackages:Jr}}function Za(e={}){return B(kr,e)}async function Qa(e={}){let t=await ie(Br,e);
768
+ if(t.every(n=>Array.isArray(n?.resourceDeclarations)))return t;throw new Error("This genesis-compiler lists no Stack res\
769
+ ource declarations. Update it to the release Vibe64 declares.")}function ec(e={}){return B(Cr,e)}function tc(e={}){return ie(
770
+ jr,e)}function nc(e={}){return B(Yr,e)}function sc(e={}){return B(qr,e)}function ic(e={}){return ie(Mr,e)}function rc(e={}){
771
+ return ie(Wr,e)}async function oc(e={}){return $t(await K(At,e))}async function ac(e={}){return Lt(await K(xt,e))}function cc(e={}){
772
+ return B(Nr,e)}function io(){let e=Pr();if(e?.contract!==C.derivedArtifacts)throw new Error(`Genesis returned ${e?.contract||
763
773
  "no contract identity"}; expected ${C.derivedArtifacts}.`);let t=Array.isArray(e.artifacts)?e.artifacts:[];if(!t.length||
764
774
  t.some(n=>!L(n?.path)))throw new Error("Genesis returned an invalid derived-artifact contract.");return{...e,artifacts:t.
765
- map(n=>({...n}))}}var rs=to(),sc=Object.freeze(rs.artifacts.map(e=>e.path)),gt=new Map(rs.artifacts.map(e=>[e.id,e])),no=gt.
766
- get("machine-city")?.path,so=gt.get("program-city")?.path;if(!no||!so)throw new Error("Genesis did not declare both City\
767
- projection artifacts.");var io=gt.get("call-web")?.path;if(!io)throw new Error("Genesis did not declare its call-web ar\
768
- tifact.");async function W(e,t={},n={}){let s=L(t.projectRoot);if(!s||!B.isAbsolute(s))throw new TypeError("Genesis oper\
769
- ations require an explicit absolute projectRoot.");return Fr(s,()=>e(eo(t,n)))}function os(){}function ro(e){return`Gene\
775
+ map(n=>({...n}))}}var os=io(),uc=Object.freeze(os.artifacts.map(e=>e.path)),gt=new Map(os.artifacts.map(e=>[e.id,e])),ro=gt.
776
+ get("machine-city")?.path,oo=gt.get("program-city")?.path;if(!ro||!oo)throw new Error("Genesis did not declare both City\
777
+ projection artifacts.");var ao=gt.get("call-web")?.path;if(!ao)throw new Error("Genesis did not declare its call-web ar\
778
+ tifact.");async function B(e,t={},n={}){let s=L(t.projectRoot);if(!s||!W.isAbsolute(s))throw new TypeError("Genesis oper\
779
+ ations require an explicit absolute projectRoot.");return Kr(s,()=>e(so(t,n)))}function as(){}function co(e){return`Gene\
770
780
  sis project guidance is unavailable for this conversation (${L(e?.message||e).replace(/\s+/gu," ").slice(0,300)||"no rea\
771
781
  son given"}). Work from the repository itself, where the genesis/ files still describe the project when present, and tel\
772
- l the user that Genesis guidance did not load if it matters to the request.`}async function ic({workdir:e,promptContext:t},{
773
- onGenesisUnavailable:n=os,timeoutMs:s=ht}={}){let r=oe(t);if(t.scope==="ephemeral")return r;let i;try{let o=await ft(()=>W(
774
- ge.projectSessionContext,{projectRoot:e,hostDriver:oe,hostDriverInput:t}),s);if(typeof o?.output=="string"&&o.output.trim())
775
- return o.output;i=new Error("Genesis returned no session guidance.")}catch(o){i=o}return n(i),`${ro(i)}
782
+ l the user that Genesis guidance did not load if it matters to the request.`}async function pc({workdir:e,promptContext:t},{
783
+ onGenesisUnavailable:n=as,timeoutMs:s=ht}={}){let r=ae(t);if(t.scope==="ephemeral")return r;let i;try{let o=await ft(()=>B(
784
+ ge.projectSessionContext,{projectRoot:e,hostDriver:ae,hostDriverInput:t}),s);if(typeof o?.output=="string"&&o.output.trim())
785
+ return o.output;i=new Error("Genesis returned no session guidance.")}catch(o){i=o}return n(i),`${co(i)}
776
786
 
777
- ${r}`}function ue(e,t={}){return ft(()=>W(e,t))}function as(e,t){if(e?.contract!==t)throw new Error(`Genesis returned ${e?.
778
- contract||"no contract identity"}; expected ${t}.`);return e}async function H(e,t,n={}){return as(await ue(e,n),t)}async function Et(e,t,n={}){
779
- return as(await W(e,n),t)}function Y(e,t={}){return H(n=>Mr({...n,name:e}),C.stackSection,t)}async function vt(e,t={}){let n=await ue(
780
- s=>jr({...s,names:e}),t);if(!Array.isArray(n)||n.length!==e.length||n.some((s,r)=>s?.contract!==C.stackSection||s.name!==
781
- e[r]))throw new Error("Genesis returned an invalid Stack section inspection batch.");return n}async function rc(e={}){if((await oo(
787
+ ${r}`}function ie(e,t={}){return ft(()=>B(e,t))}function cs(e,t){if(e?.contract!==t)throw new Error(`Genesis returned ${e?.
788
+ contract||"no contract identity"}; expected ${t}.`);return e}async function H(e,t,n={}){return cs(await ie(e,n),t)}async function Et(e,t,n={}){
789
+ return cs(await B(e,n),t)}function K(e,t={}){return H(n=>Gr({...n,name:e}),C.stackSection,t)}async function vt(e,t={}){let n=await ie(
790
+ s=>Ur({...s,names:e}),t);if(!Array.isArray(n)||n.length!==e.length||n.some((s,r)=>s?.contract!==C.stackSection||s.name!==
791
+ e[r]))throw new Error("Genesis returned an invalid Stack section inspection batch.");return n}async function lc(e={}){if((await uo(
782
792
  e)).status!=="current")throw Object.assign(new Error("The project needs a current Genesis format before its Stack can be\
783
- inspected."),{code:"vibe64_stack_format_required"});await yr(B.join(e.projectRoot,Je),"utf8");let n=await Y(he,e);return{
784
- components:n.components,stackHash:n.stackHash}}async function oc(e={}){let[t,n]=await Promise.all([Y(mn,e),H(Be,C.environment,
785
- e)]);return fn({environment:n,section:t})}async function ac(e={}){let[t,n]=await Promise.all([Y(wn,e),H(Be,C.environment,
786
- e)]);return On({environment:n,section:t})}function cc(e={}){return W(ge.verify,e)}function uc(e={}){return H(Be,C.environment,
787
- e)}function pc(e={}){return H($r,C.projectInspection,e)}function lc(e={}){return H(Ur,C.templates,e)}function dc(e={}){return Et(
788
- Or,C.templateApplication,e)}function mc(e={}){return H(Dr,C.engineering,e)}function hc(e={}){return H(Nr,C.collaboration,
789
- e)}async function fc(e){let{unavailable:t,passes:n,master:s}=await H(Pr,C.passes,e);return{unavailable:t,passes:n,master:s}}
790
- async function oo(e={}){let t=await ue(xr,e);if(!L(t?.status))throw new Error("Genesis did not return a project-format s\
791
- tatus.");return{...t}}function gc(e={}){return Et(Wr,C.engineering,e)}function Ec(e={}){return Et(Br,C.collaboration,e)}
792
- async function vc({resourcesPreparing:e=!1,...t}={}){let[[n,s,r],i]=await Promise.all([vt([$e,je,he],t),H(Be,C.environment,
793
- t)]);return{...jn({environment:i,section:n,resourcesPreparing:e===!0}),resourceEstimates:Ge({section:s,outputsSection:n,
794
- workspaceSetupSection:r})}}async function bc(e={}){let t=await Y(Xn,e);return Zn({section:t})}async function yc(e={}){return Tt(
795
- await Y(_t,e))}async function wc(e={}){return Bn(await Y(Gn,e))}async function Sc(e={}){let[t,n,s]=await vt([he,je,$e],e);
796
- return{...await zn({projectRoot:e.projectRoot,section:t}),resourceEstimates:Ge({section:n,outputsSection:s,workspaceSetupSection:t})}}
797
- async function _c(e={}){let[t,n,s]=await vt([je,$e,he],e);return Ge({section:t,outputsSection:n,workspaceSetupSection:s})}
798
- async function Ic({action:e={},environment:t,input:n={},onGenesisUnavailable:s=os,projectRoot:r,timeoutMs:i=ht}){let o=Xr(
799
- e),c=Jr(n,e),a=E=>W(Rr,{environment:t,projectRoot:r,request:c,sessionContextInstalled:!0,task:E},{prompt:!0}),u=async()=>{
800
- try{return{result:await a(o),task:o}}catch(E){let _=Object.hasOwn(es,String(E?.code))?es[E.code]:"";if(!_||_===o||n.automaticGenesisTask===
793
+ inspected."),{code:"vibe64_stack_format_required"});await Sr(W.join(e.projectRoot,Je),"utf8");let n=await K(he,e);return{
794
+ components:n.components,stackHash:n.stackHash}}async function dc(e={}){let[t,n]=await Promise.all([K(hn,e),H(We,C.environment,
795
+ e)]);return gn({environment:n,section:t})}async function mc(e={}){let[t,n]=await Promise.all([K(Sn,e),H(We,C.environment,
796
+ e)]);return kn({environment:n,section:t})}function hc(e={}){return B(ge.verify,e)}function fc(e={}){return H(We,C.environment,
797
+ e)}function gc(e={}){return H(Vr,C.projectInspection,e)}function Ec(e={}){return H(Hr,C.templates,e)}function vc(e={}){return Et(
798
+ Rr,C.templateApplication,e)}function bc(e={}){return H($r,C.engineering,e)}function yc(e={}){return H(Dr,C.collaboration,
799
+ e)}async function wc(e){let{unavailable:t,passes:n,master:s}=await H(xr,C.passes,e);return{unavailable:t,passes:n,master:s}}
800
+ async function uo(e={}){let t=await ie(Lr,e);if(!L(t?.status))throw new Error("Genesis did not return a project-format s\
801
+ tatus.");return{...t}}function Sc(e={}){return Et(Fr,C.engineering,e)}function _c(e={}){return Et(zr,C.collaboration,e)}
802
+ async function Ic({resourcesPreparing:e=!1,...t}={}){let[[n,s,r],i]=await Promise.all([vt([$e,je,he],t),H(We,C.environment,
803
+ t)]);return{...Gn({environment:i,section:n,resourcesPreparing:e===!0}),resourceEstimates:Ge({section:s,outputsSection:n,
804
+ workspaceSetupSection:r})}}async function Tc(e={}){let t=await K(Jn,e);return Qn({section:t})}async function Oc(e={}){return Tt(
805
+ await K(_t,e))}async function kc(e={}){return Bn(await K(Un,e))}async function Rc(e={}){let[t,n,s]=await vt([he,je,$e],e);
806
+ return{...await Fn({projectRoot:e.projectRoot,section:t}),resourceEstimates:Ge({section:n,outputsSection:s,workspaceSetupSection:t})}}
807
+ async function Ac(e={}){let[t,n,s]=await vt([je,$e,he],e);return Ge({section:t,outputsSection:n,workspaceSetupSection:s})}
808
+ async function Nc({action:e={},environment:t,input:n={},onGenesisUnavailable:s=as,projectRoot:r,timeoutMs:i=ht}){let o=Qr(
809
+ e),c=eo(n,e),a=E=>B(Ar,{environment:t,projectRoot:r,request:c,sessionContextInstalled:!0,task:E},{prompt:!0}),u=async()=>{
810
+ try{return{result:await a(o),task:o}}catch(E){let _=Object.hasOwn(ts,String(E?.code))?ts[E.code]:"";if(!_||_===o||n.automaticGenesisTask===
801
811
  !0)throw E;return{result:await a(_),task:_}}},p;try{if(p=await ft(u,i),typeof p.result?.prompt!="string"||!p.result.prompt.
802
- trim())throw new Error("Genesis returned no prompt.")}catch(E){return s(E),{prompt:c}}let{result:d,task:l}=p,g=ss.has(L(
812
+ trim())throw new Error("Genesis returned no prompt.")}catch(E){return s(E),{prompt:c}}let{result:d,task:l}=p,g=is.has(L(
803
813
  d.task))?L(d.task):l;return{context:{genesis:!0,requestedTask:o,task:g,verificationCommands:d.verificationCommands,warnings:d.
804
- warnings},originalPrompt:c,prompt:d.prompt,promptId:L(e.promptId||e.id)||g}}export{ja as CALL_WEB_SCHEMA,Ba as CITY_SCHEMA_VERSION,Ha as GENESIS_BLUEPRINT_PATH,io as GENESIS_CALL_WEB_PATH,sc as GENESIS_DERIVED_ARTIFACT_PATHS,
805
- no as GENESIS_MACHINE_CITY_PATH,so as GENESIS_PROGRAM_CITY_PATH,Je as GENESIS_STACK_PATH,Mt as GENESIS_STACK_SECTION_AMBIGUOUS,
806
- za as GENESIS_SUBSYSTEMS_PATH,ht as GENESIS_USER_PATH_TIMEOUT_MS,Ga as MACHINE_CITY_SCHEMA,Ua as PROGRAM_CITY_SCHEMA,Pa as SOURCE_EXPLANATION_PROMPT_VERSION,
807
- dn as VIBE64_APPLICATION_DEPLOYMENT_CONTRACT,bi as VIBE64_APPLICATION_DEPLOYMENT_V1_CONTRACT,Ce as VIBE64_PACKAGING_CONTRACT,
808
- me as VIBE64_PREVIEW_IDENTITY_COMMAND_PROTOCOL,qa as addGenesisStack,dc as applyGenesisTemplate,Yr as assertGenesisPromptTask,
809
- is as genesisCommandShimDirectory,Zr as genesisPackageBinDirectory,Da as genesisParserEnvironment,Ls as genesisProjectContractNeedsAttention,
810
- Gs as genesisProjectFileDiagnostic,js as genesisProjectFileUnreadable,Jr as genesisPromptRequest,Xr as genesisPromptTask,
811
- Ka as initializeGenesisProject,Za as inspectGenesisAgentIntegrations,hc as inspectGenesisCollaboration,to as inspectGenesisDerivedArtifacts,
812
- mc as inspectGenesisEngineering,uc as inspectGenesisEnvironment,pc as inspectGenesisProject,oo as inspectGenesisProjectFormat,
813
- Ya as inspectGenesisSkills,rc as inspectGenesisStackComponents,Qa as inspectGenesisSubsystems,ec as inspectVibe64ArchitectureInspection,
814
- tc as inspectVibe64ArchitectureLayout,yc as inspectVibe64ConnectedDevelopment,oc as inspectVibe64Deployment,bc as inspectVibe64IntegrationSetup,
815
- vc as inspectVibe64Outputs,ac as inspectVibe64Packaging,wc as inspectVibe64ProjectServices,_c as inspectVibe64ResourceEstimates,
816
- Sc as inspectVibe64WorkspaceSetup,fc as listGenesisPasses,lc as listGenesisTemplates,Va as mergeArchitectureObservations,
817
- yi as parseVibe64DeploymentLines,Jn as parseVibe64IntegrationSetupLines,Ve as parseVibe64OutputsLines,In as parseVibe64PackagingLines,
818
- Un as parseVibe64ProjectServicesLines,Yn as parseVibe64ResourceEstimatesLines,Me as parseVibe64WorkspaceSetupLines,Ps as readArchitecturePreviewLocator,
819
- nc as refreshGenesisCities,Ic as renderGenesisPrompt,Xi as resolveVibe64OutputParameters,Tn as resolveVibe64PackagingEnvironment,
820
- Ec as setGenesisCollaboration,gc as setGenesisEngineeringProfile,$a as sourceExplanationGuidance,Ja as syncGenesisAgentIntegrations,
821
- Xa as syncGenesisSkills,xa as validateArchitectureFacts,Ma as validateCallWeb,La as validateCityDocument,cc as verifyGenesisProject,
822
- ic as vibe64ConversationInstructions,oe as vibe64Driver,Wa as vibe64HostContextEnvironment,Sr as vibe64HostContextRegistry,
823
- Qr as vibe64HostContextResolverPath,Fa as withGenesisCommandShim,ft as withinGenesisDeadline};
814
+ warnings},originalPrompt:c,prompt:d.prompt,promptId:L(e.promptId||e.id)||g}}export{Ha as CALL_WEB_SCHEMA,qa as CITY_SCHEMA_VERSION,Ka as GENESIS_BLUEPRINT_PATH,ao as GENESIS_CALL_WEB_PATH,uc as GENESIS_DERIVED_ARTIFACT_PATHS,
815
+ ro as GENESIS_MACHINE_CITY_PATH,oo as GENESIS_PROGRAM_CITY_PATH,Je as GENESIS_STACK_PATH,Mt as GENESIS_STACK_SECTION_AMBIGUOUS,
816
+ Xa as GENESIS_SUBSYSTEMS_PATH,ht as GENESIS_USER_PATH_TIMEOUT_MS,za as MACHINE_CITY_SCHEMA,Fa as PROGRAM_CITY_SCHEMA,Ma as SOURCE_EXPLANATION_PROMPT_VERSION,
817
+ mn as VIBE64_APPLICATION_DEPLOYMENT_CONTRACT,wi as VIBE64_APPLICATION_DEPLOYMENT_V1_CONTRACT,Ce as VIBE64_PACKAGING_CONTRACT,
818
+ me as VIBE64_PREVIEW_IDENTITY_COMMAND_PROTOCOL,Za as addGenesisStack,vc as applyGenesisTemplate,Zr as assertGenesisPromptTask,
819
+ rs as genesisCommandShimDirectory,to as genesisPackageBinDirectory,La as genesisParserEnvironment,Ms as genesisProjectContractNeedsAttention,
820
+ Us as genesisProjectFileDiagnostic,Gs as genesisProjectFileUnreadable,eo as genesisPromptRequest,Qr as genesisPromptTask,
821
+ ec as initializeGenesisProject,ic as inspectGenesisAgentIntegrations,yc as inspectGenesisCollaboration,io as inspectGenesisDerivedArtifacts,
822
+ bc as inspectGenesisEngineering,fc as inspectGenesisEnvironment,gc as inspectGenesisProject,uo as inspectGenesisProjectFormat,
823
+ tc as inspectGenesisSkills,lc as inspectGenesisStackComponents,rc as inspectGenesisSubsystems,oc as inspectVibe64ArchitectureInspection,
824
+ ac as inspectVibe64ArchitectureLayout,Oc as inspectVibe64ConnectedDevelopment,dc as inspectVibe64Deployment,Tc as inspectVibe64IntegrationSetup,
825
+ Ic as inspectVibe64Outputs,mc as inspectVibe64Packaging,kc as inspectVibe64ProjectServices,Ac as inspectVibe64ResourceEstimates,
826
+ Rc as inspectVibe64WorkspaceSetup,wc as listGenesisPasses,Qa as listGenesisStackPieces,Ec as listGenesisTemplates,Ua as mergeArchitectureObservations,
827
+ Si as parseVibe64DeploymentLines,Zn as parseVibe64IntegrationSetupLines,Ve as parseVibe64OutputsLines,Tn as parseVibe64PackagingLines,
828
+ Wn as parseVibe64ProjectServicesLines,Xn as parseVibe64ResourceEstimatesLines,Me as parseVibe64WorkspaceSetupLines,$s as readArchitecturePreviewLocator,
829
+ cc as refreshGenesisCities,Nc as renderGenesisPrompt,Zi as resolveVibe64OutputParameters,On as resolveVibe64PackagingEnvironment,
830
+ _c as setGenesisCollaboration,Sc as setGenesisEngineeringProfile,ja as sourceExplanationGuidance,sc as syncGenesisAgentIntegrations,
831
+ nc as syncGenesisSkills,Ga as validateArchitectureFacts,Ba as validateCallWeb,Wa as validateCityDocument,hc as verifyGenesisProject,
832
+ pc as vibe64ConversationInstructions,ae as vibe64Driver,Ya as vibe64HostContextEnvironment,Ir as vibe64HostContextRegistry,
833
+ no as vibe64HostContextResolverPath,Ja as withGenesisCommandShim,ft as withinGenesisDeadline};