allyhub 0.0.0-stage → 0.1.0-alpha.6

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 (378) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/LICENSE +241 -0
  3. package/NOTICE +132 -0
  4. package/README.md +51 -2
  5. package/bin/allyhub.js +40 -0
  6. package/chatgpt-app/index.html +24 -0
  7. package/components/LICENSE +21 -0
  8. package/components/callout.ts +1564 -0
  9. package/components/caption-line.ts +192 -0
  10. package/components/caption-subtitle.ts +78 -0
  11. package/components/caption-word.ts +151 -0
  12. package/components/chart.ts +3187 -0
  13. package/components/code-panel.ts +2291 -0
  14. package/components/registry.json +37 -0
  15. package/components/screen-demo.ts +1606 -0
  16. package/dist/areas.d.ts +10 -0
  17. package/dist/areas.d.ts.map +1 -0
  18. package/dist/areas.js +72 -0
  19. package/dist/areas.js.map +1 -0
  20. package/dist/auto-index.d.ts +34 -0
  21. package/dist/auto-index.d.ts.map +1 -0
  22. package/dist/auto-index.js +123 -0
  23. package/dist/auto-index.js.map +1 -0
  24. package/dist/cloud/client.d.ts +57 -0
  25. package/dist/cloud/client.d.ts.map +1 -0
  26. package/dist/cloud/client.js +218 -0
  27. package/dist/cloud/client.js.map +1 -0
  28. package/dist/cloud/config.d.ts +20 -0
  29. package/dist/cloud/config.d.ts.map +1 -0
  30. package/dist/cloud/config.js +25 -0
  31. package/dist/cloud/config.js.map +1 -0
  32. package/dist/cloud/credentials.d.ts +13 -0
  33. package/dist/cloud/credentials.d.ts.map +1 -0
  34. package/dist/cloud/credentials.js +54 -0
  35. package/dist/cloud/credentials.js.map +1 -0
  36. package/dist/cloud/loopback.d.ts +20 -0
  37. package/dist/cloud/loopback.d.ts.map +1 -0
  38. package/dist/cloud/loopback.js +120 -0
  39. package/dist/cloud/loopback.js.map +1 -0
  40. package/dist/cloud/pkce.d.ts +12 -0
  41. package/dist/cloud/pkce.d.ts.map +1 -0
  42. package/dist/cloud/pkce.js +18 -0
  43. package/dist/cloud/pkce.js.map +1 -0
  44. package/dist/cloud/uploads.d.ts +70 -0
  45. package/dist/cloud/uploads.d.ts.map +1 -0
  46. package/dist/cloud/uploads.js +303 -0
  47. package/dist/cloud/uploads.js.map +1 -0
  48. package/dist/cmd.d.ts +34 -0
  49. package/dist/cmd.d.ts.map +1 -0
  50. package/dist/cmd.js +27 -0
  51. package/dist/cmd.js.map +1 -0
  52. package/dist/commands/account.d.ts +5 -0
  53. package/dist/commands/account.d.ts.map +1 -0
  54. package/dist/commands/account.js +248 -0
  55. package/dist/commands/account.js.map +1 -0
  56. package/dist/commands/assets.d.ts +3 -0
  57. package/dist/commands/assets.d.ts.map +1 -0
  58. package/dist/commands/assets.js +85 -0
  59. package/dist/commands/assets.js.map +1 -0
  60. package/dist/commands/audio.d.ts +174 -0
  61. package/dist/commands/audio.d.ts.map +1 -0
  62. package/dist/commands/audio.js +342 -0
  63. package/dist/commands/audio.js.map +1 -0
  64. package/dist/commands/batch.d.ts +79 -0
  65. package/dist/commands/batch.d.ts.map +1 -0
  66. package/dist/commands/batch.js +289 -0
  67. package/dist/commands/batch.js.map +1 -0
  68. package/dist/commands/compare.d.ts +37 -0
  69. package/dist/commands/compare.d.ts.map +1 -0
  70. package/dist/commands/compare.js +412 -0
  71. package/dist/commands/compare.js.map +1 -0
  72. package/dist/commands/components.d.ts +3 -0
  73. package/dist/commands/components.d.ts.map +1 -0
  74. package/dist/commands/components.js +138 -0
  75. package/dist/commands/components.js.map +1 -0
  76. package/dist/commands/cuts.d.ts +91 -0
  77. package/dist/commands/cuts.d.ts.map +1 -0
  78. package/dist/commands/cuts.js +452 -0
  79. package/dist/commands/cuts.js.map +1 -0
  80. package/dist/commands/desktop.d.ts +3 -0
  81. package/dist/commands/desktop.d.ts.map +1 -0
  82. package/dist/commands/desktop.js +33 -0
  83. package/dist/commands/desktop.js.map +1 -0
  84. package/dist/commands/dev.d.ts +3 -0
  85. package/dist/commands/dev.d.ts.map +1 -0
  86. package/dist/commands/dev.js +128 -0
  87. package/dist/commands/dev.js.map +1 -0
  88. package/dist/commands/doctor.d.ts +3 -0
  89. package/dist/commands/doctor.d.ts.map +1 -0
  90. package/dist/commands/doctor.js +269 -0
  91. package/dist/commands/doctor.js.map +1 -0
  92. package/dist/commands/find.d.ts +53 -0
  93. package/dist/commands/find.d.ts.map +1 -0
  94. package/dist/commands/find.js +341 -0
  95. package/dist/commands/find.js.map +1 -0
  96. package/dist/commands/font.d.ts +4 -0
  97. package/dist/commands/font.d.ts.map +1 -0
  98. package/dist/commands/font.js +163 -0
  99. package/dist/commands/font.js.map +1 -0
  100. package/dist/commands/frames.d.ts +282 -0
  101. package/dist/commands/frames.d.ts.map +1 -0
  102. package/dist/commands/frames.js +635 -0
  103. package/dist/commands/frames.js.map +1 -0
  104. package/dist/commands/handoff.d.ts +3 -0
  105. package/dist/commands/handoff.d.ts.map +1 -0
  106. package/dist/commands/handoff.js +43 -0
  107. package/dist/commands/handoff.js.map +1 -0
  108. package/dist/commands/index-media.d.ts +3 -0
  109. package/dist/commands/index-media.d.ts.map +1 -0
  110. package/dist/commands/index-media.js +146 -0
  111. package/dist/commands/index-media.js.map +1 -0
  112. package/dist/commands/inspect.d.ts +110 -0
  113. package/dist/commands/inspect.d.ts.map +1 -0
  114. package/dist/commands/inspect.js +783 -0
  115. package/dist/commands/inspect.js.map +1 -0
  116. package/dist/commands/local.d.ts +125 -0
  117. package/dist/commands/local.d.ts.map +1 -0
  118. package/dist/commands/local.js +1240 -0
  119. package/dist/commands/local.js.map +1 -0
  120. package/dist/commands/mcp.d.ts +3 -0
  121. package/dist/commands/mcp.d.ts.map +1 -0
  122. package/dist/commands/mcp.js +145 -0
  123. package/dist/commands/mcp.js.map +1 -0
  124. package/dist/commands/preview.d.ts +154 -0
  125. package/dist/commands/preview.d.ts.map +1 -0
  126. package/dist/commands/preview.js +447 -0
  127. package/dist/commands/preview.js.map +1 -0
  128. package/dist/commands/reference.d.ts +301 -0
  129. package/dist/commands/reference.d.ts.map +1 -0
  130. package/dist/commands/reference.js +917 -0
  131. package/dist/commands/reference.js.map +1 -0
  132. package/dist/commands/run.d.ts +3 -0
  133. package/dist/commands/run.d.ts.map +1 -0
  134. package/dist/commands/run.js +75 -0
  135. package/dist/commands/run.js.map +1 -0
  136. package/dist/commands/sheets.d.ts +24 -0
  137. package/dist/commands/sheets.d.ts.map +1 -0
  138. package/dist/commands/sheets.js +228 -0
  139. package/dist/commands/sheets.js.map +1 -0
  140. package/dist/commands/skill.d.ts +35 -0
  141. package/dist/commands/skill.d.ts.map +1 -0
  142. package/dist/commands/skill.js +154 -0
  143. package/dist/commands/skill.js.map +1 -0
  144. package/dist/commands/sync.d.ts +3 -0
  145. package/dist/commands/sync.d.ts.map +1 -0
  146. package/dist/commands/sync.js +180 -0
  147. package/dist/commands/sync.js.map +1 -0
  148. package/dist/commands/tools.d.ts +127 -0
  149. package/dist/commands/tools.d.ts.map +1 -0
  150. package/dist/commands/tools.js +922 -0
  151. package/dist/commands/tools.js.map +1 -0
  152. package/dist/commands/transcribe.d.ts +45 -0
  153. package/dist/commands/transcribe.d.ts.map +1 -0
  154. package/dist/commands/transcribe.js +325 -0
  155. package/dist/commands/transcribe.js.map +1 -0
  156. package/dist/commands/transcript.d.ts +3 -0
  157. package/dist/commands/transcript.d.ts.map +1 -0
  158. package/dist/commands/transcript.js +667 -0
  159. package/dist/commands/transcript.js.map +1 -0
  160. package/dist/commands/upload.d.ts +3 -0
  161. package/dist/commands/upload.d.ts.map +1 -0
  162. package/dist/commands/upload.js +68 -0
  163. package/dist/commands/upload.js.map +1 -0
  164. package/dist/commands/voice.d.ts +17 -0
  165. package/dist/commands/voice.d.ts.map +1 -0
  166. package/dist/commands/voice.js +188 -0
  167. package/dist/commands/voice.js.map +1 -0
  168. package/dist/cuts.d.ts +102 -0
  169. package/dist/cuts.d.ts.map +1 -0
  170. package/dist/cuts.js +219 -0
  171. package/dist/cuts.js.map +1 -0
  172. package/dist/desktop/connect.d.ts +19 -0
  173. package/dist/desktop/connect.d.ts.map +1 -0
  174. package/dist/desktop/connect.js +169 -0
  175. package/dist/desktop/connect.js.map +1 -0
  176. package/dist/desktop/leases.d.ts +28 -0
  177. package/dist/desktop/leases.d.ts.map +1 -0
  178. package/dist/desktop/leases.js +60 -0
  179. package/dist/desktop/leases.js.map +1 -0
  180. package/dist/desktop/previews.d.ts +118 -0
  181. package/dist/desktop/previews.d.ts.map +1 -0
  182. package/dist/desktop/previews.js +351 -0
  183. package/dist/desktop/previews.js.map +1 -0
  184. package/dist/desktop/projects.d.ts +12 -0
  185. package/dist/desktop/projects.d.ts.map +1 -0
  186. package/dist/desktop/projects.js +70 -0
  187. package/dist/desktop/projects.js.map +1 -0
  188. package/dist/desktop/service.d.ts +39 -0
  189. package/dist/desktop/service.d.ts.map +1 -0
  190. package/dist/desktop/service.js +232 -0
  191. package/dist/desktop/service.js.map +1 -0
  192. package/dist/desktop/settings.d.ts +45 -0
  193. package/dist/desktop/settings.d.ts.map +1 -0
  194. package/dist/desktop/settings.js +80 -0
  195. package/dist/desktop/settings.js.map +1 -0
  196. package/dist/desktop/ui.d.ts +10 -0
  197. package/dist/desktop/ui.d.ts.map +1 -0
  198. package/dist/desktop/ui.js +84 -0
  199. package/dist/desktop/ui.js.map +1 -0
  200. package/dist/dev/agent.d.ts +87 -0
  201. package/dist/dev/agent.d.ts.map +1 -0
  202. package/dist/dev/agent.js +194 -0
  203. package/dist/dev/agent.js.map +1 -0
  204. package/dist/dev/checker.d.ts +32 -0
  205. package/dist/dev/checker.d.ts.map +1 -0
  206. package/dist/dev/checker.js +102 -0
  207. package/dist/dev/checker.js.map +1 -0
  208. package/dist/dev/denoise.d.ts +20 -0
  209. package/dist/dev/denoise.d.ts.map +1 -0
  210. package/dist/dev/denoise.js +69 -0
  211. package/dist/dev/denoise.js.map +1 -0
  212. package/dist/dev/edits.d.ts +13 -0
  213. package/dist/dev/edits.d.ts.map +1 -0
  214. package/dist/dev/edits.js +61 -0
  215. package/dist/dev/edits.js.map +1 -0
  216. package/dist/dev/exports.d.ts +42 -0
  217. package/dist/dev/exports.d.ts.map +1 -0
  218. package/dist/dev/exports.js +174 -0
  219. package/dist/dev/exports.js.map +1 -0
  220. package/dist/dev/feedback.d.ts +93 -0
  221. package/dist/dev/feedback.d.ts.map +1 -0
  222. package/dist/dev/feedback.js +167 -0
  223. package/dist/dev/feedback.js.map +1 -0
  224. package/dist/dev/files.d.ts +55 -0
  225. package/dist/dev/files.d.ts.map +1 -0
  226. package/dist/dev/files.js +220 -0
  227. package/dist/dev/files.js.map +1 -0
  228. package/dist/dev/index.d.ts +27 -0
  229. package/dist/dev/index.d.ts.map +1 -0
  230. package/dist/dev/index.js +77 -0
  231. package/dist/dev/index.js.map +1 -0
  232. package/dist/dev/indexer.d.ts +24 -0
  233. package/dist/dev/indexer.d.ts.map +1 -0
  234. package/dist/dev/indexer.js +75 -0
  235. package/dist/dev/indexer.js.map +1 -0
  236. package/dist/dev/policy.d.ts +11 -0
  237. package/dist/dev/policy.d.ts.map +1 -0
  238. package/dist/dev/policy.js +32 -0
  239. package/dist/dev/policy.js.map +1 -0
  240. package/dist/dev/project.d.ts +141 -0
  241. package/dist/dev/project.d.ts.map +1 -0
  242. package/dist/dev/project.js +838 -0
  243. package/dist/dev/project.js.map +1 -0
  244. package/dist/dev/server.d.ts +28 -0
  245. package/dist/dev/server.d.ts.map +1 -0
  246. package/dist/dev/server.js +1668 -0
  247. package/dist/dev/server.js.map +1 -0
  248. package/dist/dev/sheet-routes.d.ts +16 -0
  249. package/dist/dev/sheet-routes.d.ts.map +1 -0
  250. package/dist/dev/sheet-routes.js +388 -0
  251. package/dist/dev/sheet-routes.js.map +1 -0
  252. package/dist/dev/stage.d.ts +37 -0
  253. package/dist/dev/stage.d.ts.map +1 -0
  254. package/dist/dev/stage.js +123 -0
  255. package/dist/dev/stage.js.map +1 -0
  256. package/dist/dev/transcript.d.ts +50 -0
  257. package/dist/dev/transcript.d.ts.map +1 -0
  258. package/dist/dev/transcript.js +214 -0
  259. package/dist/dev/transcript.js.map +1 -0
  260. package/dist/dev/writer.d.ts +203 -0
  261. package/dist/dev/writer.d.ts.map +1 -0
  262. package/dist/dev/writer.js +735 -0
  263. package/dist/dev/writer.js.map +1 -0
  264. package/dist/fonts.d.ts +102 -0
  265. package/dist/fonts.d.ts.map +1 -0
  266. package/dist/fonts.js +235 -0
  267. package/dist/fonts.js.map +1 -0
  268. package/dist/gen.d.ts +47 -0
  269. package/dist/gen.d.ts.map +1 -0
  270. package/dist/gen.js +217 -0
  271. package/dist/gen.js.map +1 -0
  272. package/dist/help.d.ts +47 -0
  273. package/dist/help.d.ts.map +1 -0
  274. package/dist/help.js +201 -0
  275. package/dist/help.js.map +1 -0
  276. package/dist/json-edit.d.ts +13 -0
  277. package/dist/json-edit.d.ts.map +1 -0
  278. package/dist/json-edit.js +32 -0
  279. package/dist/json-edit.js.map +1 -0
  280. package/dist/launch.d.ts +47 -0
  281. package/dist/launch.d.ts.map +1 -0
  282. package/dist/launch.js +155 -0
  283. package/dist/launch.js.map +1 -0
  284. package/dist/main.d.ts +5 -0
  285. package/dist/main.d.ts.map +1 -0
  286. package/dist/main.js +201 -0
  287. package/dist/main.js.map +1 -0
  288. package/dist/mcp/app.d.ts +12 -0
  289. package/dist/mcp/app.d.ts.map +1 -0
  290. package/dist/mcp/app.js +403 -0
  291. package/dist/mcp/app.js.map +1 -0
  292. package/dist/mcp/cloud-tools.d.ts +4 -0
  293. package/dist/mcp/cloud-tools.d.ts.map +1 -0
  294. package/dist/mcp/cloud-tools.js +140 -0
  295. package/dist/mcp/cloud-tools.js.map +1 -0
  296. package/dist/mcp/desktop-cloud.d.ts +17 -0
  297. package/dist/mcp/desktop-cloud.d.ts.map +1 -0
  298. package/dist/mcp/desktop-cloud.js +84 -0
  299. package/dist/mcp/desktop-cloud.js.map +1 -0
  300. package/dist/mcp/desktop-studio.d.ts +9 -0
  301. package/dist/mcp/desktop-studio.d.ts.map +1 -0
  302. package/dist/mcp/desktop-studio.js +56 -0
  303. package/dist/mcp/desktop-studio.js.map +1 -0
  304. package/dist/mcp/server.d.ts +30 -0
  305. package/dist/mcp/server.d.ts.map +1 -0
  306. package/dist/mcp/server.js +225 -0
  307. package/dist/mcp/server.js.map +1 -0
  308. package/dist/record/browser.d.ts +146 -0
  309. package/dist/record/browser.d.ts.map +1 -0
  310. package/dist/record/browser.js +482 -0
  311. package/dist/record/browser.js.map +1 -0
  312. package/dist/record/clock.d.ts +47 -0
  313. package/dist/record/clock.d.ts.map +1 -0
  314. package/dist/record/clock.js +49 -0
  315. package/dist/record/clock.js.map +1 -0
  316. package/dist/record/playwright.d.ts +1683 -0
  317. package/dist/record/playwright.d.ts.map +1 -0
  318. package/dist/record/playwright.js +34 -0
  319. package/dist/record/playwright.js.map +1 -0
  320. package/dist/run-register.d.ts +2 -0
  321. package/dist/run-register.d.ts.map +1 -0
  322. package/dist/run-register.js +20 -0
  323. package/dist/run-register.js.map +1 -0
  324. package/dist/sheet-import.d.ts +18 -0
  325. package/dist/sheet-import.d.ts.map +1 -0
  326. package/dist/sheet-import.js +53 -0
  327. package/dist/sheet-import.js.map +1 -0
  328. package/dist/speech-words.d.ts +11 -0
  329. package/dist/speech-words.d.ts.map +1 -0
  330. package/dist/speech-words.js +31 -0
  331. package/dist/speech-words.js.map +1 -0
  332. package/dist/version.d.ts +3 -0
  333. package/dist/version.d.ts.map +1 -0
  334. package/dist/version.js +7 -0
  335. package/dist/version.js.map +1 -0
  336. package/dist/workspace.d.ts +45 -0
  337. package/dist/workspace.d.ts.map +1 -0
  338. package/dist/workspace.js +126 -0
  339. package/dist/workspace.js.map +1 -0
  340. package/dist/yaml-edit.d.ts +10 -0
  341. package/dist/yaml-edit.d.ts.map +1 -0
  342. package/dist/yaml-edit.js +88 -0
  343. package/dist/yaml-edit.js.map +1 -0
  344. package/editor-web/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  345. package/editor-web/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  346. package/editor-web/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  347. package/editor-web/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  348. package/editor-web/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2 +0 -0
  349. package/editor-web/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2 +0 -0
  350. package/editor-web/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2 +0 -0
  351. package/editor-web/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
  352. package/editor-web/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2 +0 -0
  353. package/editor-web/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2 +0 -0
  354. package/editor-web/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  355. package/editor-web/assets/index-CaR18p31.js +424 -0
  356. package/editor-web/assets/index-DpS6DRdp.css +2 -0
  357. package/editor-web/assets/module-BOVRYQa5.js +716 -0
  358. package/editor-web/assets/native-Cqs-2kTC.js +1 -0
  359. package/editor-web/assets/source-serif-4-cyrillic-ext-opsz-normal-DIwfbPUE.woff2 +0 -0
  360. package/editor-web/assets/source-serif-4-cyrillic-opsz-normal-C0olyEE-.woff2 +0 -0
  361. package/editor-web/assets/source-serif-4-greek-opsz-normal-DrHU7SY7.woff2 +0 -0
  362. package/editor-web/assets/source-serif-4-latin-ext-opsz-normal-HoL-AExg.woff2 +0 -0
  363. package/editor-web/assets/source-serif-4-latin-opsz-normal-BpEBLj1O.woff2 +0 -0
  364. package/editor-web/assets/source-serif-4-vietnamese-opsz-normal-BOyYyU_V.woff2 +0 -0
  365. package/editor-web/favicon.svg +1 -0
  366. package/editor-web/index.html +35 -0
  367. package/package.json +82 -3
  368. package/skill/allyhub/SKILL.md +57 -0
  369. package/skill/allyhub/agents/openai.yaml +4 -0
  370. package/skill/allyhub/references/batches.md +39 -0
  371. package/skill/allyhub/references/core.md +660 -0
  372. package/skill/allyhub/references/defaults.md +98 -0
  373. package/skill/allyhub/references/docs.md +49 -0
  374. package/skill/allyhub/references/footage.md +83 -0
  375. package/skill/allyhub/references/sheets.md +54 -0
  376. package/skill/allyhub/references/sound.md +51 -0
  377. package/skill/allyhub/references/speech.md +103 -0
  378. package/skill/allyhub/references/web-products.md +55 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,40 @@
1
+ # Changelog
2
+
3
+ Feature highlights from each AllyHub release.
4
+
5
+ ## 0.1.0-alpha.6
6
+
7
+ - **Simple installation.** Run the CLI with `npx allyhub` and install its skill with `npx skills add allyhub-ai/skills -g`.
8
+ - **Short release notes.** Each release lists a few feature highlights.
9
+
10
+ ## 0.1.0-alpha.5
11
+
12
+ - **15 languages.** Studio and the video, doc and sheet editors are available in 15 languages.
13
+ - **Faster startup.** Studio opens without waiting for the macOS keychain.
14
+ - **Clearer exports.** Export messages identify what was saved, and newly created files are marked accurately.
15
+
16
+ ## 0.1.0-alpha.4
17
+
18
+ - **Parallel projects.** Work on several projects at once, each with its own agent.
19
+ - **Built-in browser.** Browse, sign in and watch the agent research inside Studio.
20
+ - **New Home and composer.** Start from templates, steer work in progress and queue messages.
21
+ - **Better docs and sheets.** Easier editing, attachment cells and review of agent changes.
22
+
23
+ ## 0.1.0-alpha.3
24
+
25
+ - **Sign in when needed.** Studio handles agent sign-in within the conversation and keeps unsent messages.
26
+ - **Simpler cloud tools.** Calls return their results and download generated files directly into the project.
27
+ - **File uploads.** Use your own media with cloud generation and research tools.
28
+
29
+ ## 0.1.0-alpha.2
30
+
31
+ - **Docs and sheets.** Create and edit MDX documents and CSV spreadsheets alongside videos and decks.
32
+ - **Speech-led editing.** Cut recordings by their words and time captions and graphics to speech.
33
+ - **Ad variants.** Combine hooks, demos and calls to action across languages and platform formats.
34
+ - **Rendering and inspection.** More export formats, richer measurements and tools to examine frames and sound.
35
+
36
+ ## 0.1.0-alpha.1
37
+
38
+ - **Videos and decks as code.** Create and render locally with your coding agent.
39
+ - **Live preview and feedback.** Circle changes in the preview and send them to the agent.
40
+ - **Cloud media tools.** Generate voiceover, images and video through AllyHub's tool catalog.
package/LICENSE ADDED
@@ -0,0 +1,241 @@
1
+ AllyHub Software License
2
+
3
+ Copyright (c) 2026 AllyHub, Inc. ("AllyHub"). All rights reserved.
4
+
5
+ This software (the AllyHub command-line tool, its SDK, runtime and the
6
+ packages they depend on) is proprietary. It is not open source.
7
+
8
+ 1. Permitted use. You may install and run the software, unmodified, to make,
9
+ check, preview and render videos and decks, including for commercial
10
+ purposes. What you make with it is yours.
11
+
12
+ 2. Restrictions. Except as this license permits or applicable law requires,
13
+ you may not copy, modify, adapt, translate, sublicense, sell, rent, lease,
14
+ publish or otherwise distribute the software, create derivative works of
15
+ it, or reverse engineer, decompile or disassemble it.
16
+
17
+ 3. Cloud services. AllyHub's cloud tools (sign-in, research, images, voice,
18
+ video) are separate services governed by AllyHub's terms of service.
19
+
20
+ 4. Trademarks. This license grants no right to use the name "AllyHub" or its
21
+ logos.
22
+
23
+ 5. No warranty. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
24
+ KIND, EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
26
+ ALLYHUB BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
28
+
29
+ 6. Third-party code. Parts of the software are adapted from HyperFrames,
30
+ licensed under the Apache License, Version 2.0 (see NOTICE). Those parts
31
+ remain under that license, reproduced below, and nothing in this license
32
+ limits your rights under it.
33
+
34
+ 7. Starter components. The starter components in the "components" folder,
35
+ which "allyhub add" copies into your workspace, are licensed under the MIT
36
+ License (see components/LICENSE): once copied, you may change, use and
37
+ share them freely.
38
+
39
+ --------------------------------------------------------------------------------
40
+
41
+ Apache License
42
+ Version 2.0, January 2004
43
+ http://www.apache.org/licenses/
44
+
45
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
46
+
47
+ 1. Definitions.
48
+
49
+ "License" shall mean the terms and conditions for use, reproduction,
50
+ and distribution as defined by Sections 1 through 9 of this document.
51
+
52
+ "Licensor" shall mean the copyright owner or entity authorized by
53
+ the copyright owner that is granting the License.
54
+
55
+ "Legal Entity" shall mean the union of the acting entity and all
56
+ other entities that control, are controlled by, or are under common
57
+ control with that entity. For the purposes of this definition,
58
+ "control" means (i) the power, direct or indirect, to cause the
59
+ direction or management of such entity, whether by contract or
60
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
61
+ outstanding shares, or (iii) beneficial ownership of such entity.
62
+
63
+ "You" (or "Your") shall mean an individual or Legal Entity
64
+ exercising permissions granted by this License.
65
+
66
+ "Source" form shall mean the preferred form for making modifications,
67
+ including but not limited to software source code, documentation
68
+ source, and configuration files.
69
+
70
+ "Object" form shall mean any form resulting from mechanical
71
+ transformation or translation of a Source form, including but
72
+ not limited to compiled object code, generated documentation,
73
+ and conversions to other media types.
74
+
75
+ "Work" shall mean the work of authorship, whether in Source or
76
+ Object form, made available under the License, as indicated by a
77
+ copyright notice that is included in or attached to the work
78
+ (an example is provided in the Appendix below).
79
+
80
+ "Derivative Works" shall mean any work, whether in Source or Object
81
+ form, that is based on (or derived from) the Work and for which the
82
+ editorial revisions, annotations, elaborations, or other modifications
83
+ represent, as a whole, an original work of authorship. For the purposes
84
+ of this License, Derivative Works shall not include works that remain
85
+ separable from, or merely link (or bind by name) to the interfaces of,
86
+ the Work and Derivative Works thereof.
87
+
88
+ "Contribution" shall mean any work of authorship, including
89
+ the original version of the Work and any modifications or additions
90
+ to that Work or Derivative Works thereof, that is intentionally
91
+ submitted to Licensor for inclusion in the Work by the copyright owner
92
+ or by an individual or Legal Entity authorized to submit on behalf of
93
+ the copyright owner. For the purposes of this definition, "submitted"
94
+ means any form of electronic, verbal, or written communication sent
95
+ to the Licensor or its representatives, including but not limited to
96
+ communication on electronic mailing lists, source code control systems,
97
+ and issue tracking systems that are managed by, or on behalf of, the
98
+ Licensor for the purpose of discussing and improving the Work, but
99
+ excluding communication that is conspicuously marked or otherwise
100
+ designated in writing by the copyright owner as "Not a Contribution."
101
+
102
+ "Contributor" shall mean Licensor and any individual or Legal Entity
103
+ on behalf of whom a Contribution has been received by Licensor and
104
+ subsequently incorporated within the Work.
105
+
106
+ 2. Grant of Copyright License. Subject to the terms and conditions of
107
+ this License, each Contributor hereby grants to You a perpetual,
108
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
109
+ copyright license to reproduce, prepare Derivative Works of,
110
+ publicly display, publicly perform, sublicense, and distribute the
111
+ Work and such Derivative Works in Source or Object form.
112
+
113
+ 3. Grant of Patent License. Subject to the terms and conditions of
114
+ this License, each Contributor hereby grants to You a perpetual,
115
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
116
+ (except as stated in this section) patent license to make, have made,
117
+ use, offer to sell, sell, import, and otherwise transfer the Work,
118
+ where such license applies only to those patent claims licensable
119
+ by such Contributor that are necessarily infringed by their
120
+ Contribution(s) alone or by combination of their Contribution(s)
121
+ with the Work to which such Contribution(s) was submitted. If You
122
+ institute patent litigation against any entity (including a
123
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
124
+ or a Contribution incorporated within the Work constitutes direct
125
+ or contributory patent infringement, then any patent licenses
126
+ granted to You under this License for that Work shall terminate
127
+ as of the date such litigation is filed.
128
+
129
+ 4. Redistribution. You may reproduce and distribute copies of the
130
+ Work or Derivative Works thereof in any medium, with or without
131
+ modifications, and in Source or Object form, provided that You
132
+ meet the following conditions:
133
+
134
+ (a) You must give any other recipients of the Work or
135
+ Derivative Works a copy of this License; and
136
+
137
+ (b) You must cause any modified files to carry prominent notices
138
+ stating that You changed the files; and
139
+
140
+ (c) You must retain, in the Source form of any Derivative Works
141
+ that You distribute, all copyright, patent, trademark, and
142
+ attribution notices from the Source form of the Work,
143
+ excluding those notices that do not pertain to any part of
144
+ the Derivative Works; and
145
+
146
+ (d) If the Work includes a "NOTICE" text file as part of its
147
+ distribution, then any Derivative Works that You distribute must
148
+ include a readable copy of the attribution notices contained
149
+ within such NOTICE file, excluding those notices that do not
150
+ pertain to any part of the Derivative Works, in at least one
151
+ of the following places: within a NOTICE text file distributed
152
+ as part of the Derivative Works; within the Source form or
153
+ documentation, if provided along with the Derivative Works; or,
154
+ within a display generated by the Derivative Works, if and
155
+ wherever such third-party notices normally appear. The contents
156
+ of the NOTICE file are for informational purposes only and
157
+ do not modify the License. You may add Your own attribution
158
+ notices within Derivative Works that You distribute, alongside
159
+ or as an addendum to the NOTICE text from the Work, provided
160
+ that such additional attribution notices cannot be construed
161
+ as modifying the License.
162
+
163
+ You may add Your own copyright statement to Your modifications and
164
+ may provide additional or different license terms and conditions
165
+ for use, reproduction, or distribution of Your modifications, or
166
+ for any such Derivative Works as a whole, provided Your use,
167
+ reproduction, and distribution of the Work otherwise complies with
168
+ the conditions stated in this License.
169
+
170
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
171
+ any Contribution intentionally submitted for inclusion in the Work
172
+ by You to the Licensor shall be under the terms and conditions of
173
+ this License, without any additional terms or conditions.
174
+ Notwithstanding the above, nothing herein shall supersede or modify
175
+ the terms of any separate license agreement you may have executed
176
+ with Licensor regarding such Contributions.
177
+
178
+ 6. Trademarks. This License does not grant permission to use the trade
179
+ names, trademarks, service marks, or product names of the Licensor,
180
+ except as required for reasonable and customary use in describing the
181
+ origin of the Work and reproducing the content of the NOTICE file.
182
+
183
+ 7. Disclaimer of Warranty. Unless required by applicable law or
184
+ agreed to in writing, Licensor provides the Work (and each
185
+ Contributor provides its Contributions) on an "AS IS" BASIS,
186
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
187
+ implied, including, without limitation, any warranties or conditions
188
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
189
+ PARTICULAR PURPOSE. You are solely responsible for determining the
190
+ appropriateness of using or redistributing the Work and assume any
191
+ risks associated with Your exercise of permissions under this License.
192
+
193
+ 8. Limitation of Liability. In no event and under no legal theory,
194
+ whether in tort (including negligence), contract, or otherwise,
195
+ unless required by applicable law (such as deliberate and grossly
196
+ negligent acts) or agreed to in writing, shall any Contributor be
197
+ liable to You for damages, including any direct, indirect, special,
198
+ incidental, or consequential damages of any character arising as a
199
+ result of this License or out of the use or inability to use the
200
+ Work (including but not limited to damages for loss of goodwill,
201
+ work stoppage, computer failure or malfunction, or any and all
202
+ other commercial damages or losses), even if such Contributor
203
+ has been advised of the possibility of such damages.
204
+
205
+ 9. Accepting Warranty or Additional Liability. While redistributing
206
+ the Work or Derivative Works thereof, You may choose to offer,
207
+ and charge a fee for, acceptance of support, warranty, indemnity,
208
+ or other liability obligations and/or rights consistent with this
209
+ License. However, in accepting such obligations, You may act only
210
+ on Your own behalf and on Your sole responsibility, not on behalf
211
+ of any other Contributor, and only if You agree to indemnify,
212
+ defend, and hold each Contributor harmless for any liability
213
+ incurred by, or claims asserted against, such Contributor by reason
214
+ of your accepting any such warranty or additional liability.
215
+
216
+ END OF TERMS AND CONDITIONS
217
+
218
+ APPENDIX: How to apply the Apache License to your work.
219
+
220
+ To apply the Apache License to your work, attach the following
221
+ boilerplate notice, with the fields enclosed by brackets "[]"
222
+ replaced with your own identifying information. (Don't include
223
+ the brackets!) The text should be enclosed in the appropriate
224
+ comment syntax for the file format. We also recommend that a
225
+ file or class name and description of purpose be included on the
226
+ same "printed page" as the copyright notice for easier
227
+ identification within third-party archives.
228
+
229
+ Copyright [yyyy] [name of copyright owner]
230
+
231
+ Licensed under the Apache License, Version 2.0 (the "License");
232
+ you may not use this file except in compliance with the License.
233
+ You may obtain a copy of the License at
234
+
235
+ http://www.apache.org/licenses/LICENSE-2.0
236
+
237
+ Unless required by applicable law or agreed to in writing, software
238
+ distributed under the License is distributed on an "AS IS" BASIS,
239
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
240
+ See the License for the specific language governing permissions and
241
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,132 @@
1
+ AllyHub
2
+ Copyright (c) 2026 AllyHub, Inc. All rights reserved.
3
+
4
+ This product is proprietary; see LICENSE.
5
+
6
+ Parts of the rendering code (frame capture with BeginFrame, worker sizing,
7
+ frame extraction and the ffmpeg arguments) and of the speech recognition
8
+ (the pinned Parakeet model and sherpa-onnx runtime installed on first use,
9
+ decoding in windows cut at silences and merging tokens into words) and of
10
+ the vision analyses (the onnxruntime-node runtime installed on first use,
11
+ the models run in a child process) are adapted from HyperFrames (https://github.com/heygen-com/hyperframes),
12
+ Copyright 2026 HeyGen, Inc., licensed under the Apache License, Version 2.0.
13
+ Each adapted file says so in its header.
14
+
15
+ Two of the facts allyhub inspect reports follow methods of HyperFrames'
16
+ skills, under the same licence: text-contrast measures text against the
17
+ picture captured with the text hidden, as its contrast report does
18
+ (skills/hyperframes-creative/scripts/contrast-report.mjs), and cut-seam
19
+ measures element velocities either side of a cut, as its seam gate does
20
+ (.claude/skills/motion-doctrine/scripts/seam-gate.mjs). The files that do
21
+ (packages/engine/src/contrast.ts and seams.ts, packages/host-node/src/
22
+ contrast.ts and seams.ts) say so in their headers.
23
+
24
+ The doc editor (in the browser editor and AllyHub Studio) is built on
25
+ BlockNote (https://github.com/TypeCellOS/BlockNote): the packages
26
+ @blocknote/core, @blocknote/react and @blocknote/shadcn, used unmodified
27
+ under the Mozilla Public License, Version 2.0. Their source is at that
28
+ address. None of BlockNote's "XL" packages is used.
29
+
30
+ The vision analyses (face tracking and person mattes) adapt the decoding of
31
+ the YuNet face detector's outputs and the non-maximum suppression from
32
+ OpenCV (https://github.com/opencv/opencv, modules/objdetect/src/
33
+ face_detect.cpp), Copyright (C) 2015-2023, OpenCV Foundation, and the other
34
+ holders named in OpenCV's COPYRIGHT file, licensed under the Apache License,
35
+ Version 2.0; and U²-Net's input normalisation and the reading of its output
36
+ from rembg (https://github.com/danielgatis/rembg), under the MIT License:
37
+
38
+ Copyright (c) 2020 Daniel Gatis
39
+
40
+ Permission is hereby granted, free of charge, to any person obtaining a
41
+ copy of this software and associated documentation files (the
42
+ "Software"), to deal in the Software without restriction, including
43
+ without limitation the rights to use, copy, modify, merge, publish,
44
+ distribute, sublicense, and/or sell copies of the Software, and to permit
45
+ persons to whom the Software is furnished to do so, subject to the
46
+ following conditions:
47
+
48
+ The above copyright notice and this permission notice shall be included
49
+ in all copies or substantial portions of the Software.
50
+
51
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
52
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
53
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
54
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
55
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
56
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
57
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
58
+
59
+ The models themselves are not shipped: they are downloaded on first use
60
+ under their own licences (YuNet, Copyright (c) 2020 Shiqi Yu, MIT License;
61
+ U²-Net, Copyright (c) 2020 Xuebin Qin, Apache License, Version 2.0), as is
62
+ the onnxruntime-node runtime (Copyright (c) Microsoft Corporation, MIT
63
+ License).
64
+
65
+ The talking-head tools adapt logic from FilmCraft
66
+ (https://github.com/storytold/filmcraft), dual-licensed under the MIT
67
+ License or the Apache License, Version 2.0, and used here under the MIT
68
+ License: reading a take by word index and tightening word bounds to the
69
+ sound's level (crates/engine/src/transcript.rs, crates/speech/src/vad.rs),
70
+ placing cuts in the silence beside the words, and measuring the offset
71
+ between two recordings from their sound by generalised cross-correlation
72
+ (GCC-PHAT, coarse then refined; crates/audio-dsp/src/sync.rs). Each adapted
73
+ file says so in its header.
74
+
75
+ Copyright (c) 2026 ArtCraft Team and the FilmCraft contributors
76
+
77
+ Permission is hereby granted, free of charge, to any person obtaining a
78
+ copy of this software and associated documentation files (the
79
+ "Software"), to deal in the Software without restriction, including
80
+ without limitation the rights to use, copy, modify, merge, publish,
81
+ distribute, sublicense, and/or sell copies of the Software, and to permit
82
+ persons to whom the Software is furnished to do so, subject to the
83
+ following conditions:
84
+
85
+ The above copyright notice and this permission notice shall be included
86
+ in all copies or substantial portions of the Software.
87
+
88
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
89
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
90
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
91
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
92
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
93
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
94
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
95
+
96
+ The SDK's motion and layout helpers are after three of Remotion's packages
97
+ (https://github.com/remotion-dev/remotion), each published under the MIT
98
+ License, written again in AllyHub's own code: fitting a text to n lines by
99
+ a binary search on its font size (@remotion/layout-utils,
100
+ fit-text-on-n-lines.ts and fill-text-box.ts; packages/sdk/src/fit.ts and
101
+ fitLines in dom.ts), seeded simplex noise with a seed and coordinates
102
+ (@remotion/noise; packages/sdk/src/noise.ts) and measuring, drawing on and
103
+ interpolating SVG paths (@remotion/paths: getLength, getPointAtLength,
104
+ getTangentAtLength, evolvePath, interpolatePath; packages/sdk/src/paths.ts).
105
+ Each file says so in its header. @remotion/noise wraps simplex-noise
106
+ (https://github.com/jwagner/simplex-noise.js, Copyright (c) 2022 Jonas
107
+ Wagner, MIT License); the noise here, like it, follows Stefan Gustavson's
108
+ public-domain simplex noise reference ("Simplex noise demystified", 2005).
109
+
110
+ Copyright (c) 2023 JonnyBurger
111
+
112
+ Permission is hereby granted, free of charge, to any person obtaining a
113
+ copy of this software and associated documentation files (the
114
+ "Software"), to deal in the Software without restriction, including
115
+ without limitation the rights to use, copy, modify, merge, publish,
116
+ distribute, sublicense, and/or sell copies of the Software, and to permit
117
+ persons to whom the Software is furnished to do so, subject to the
118
+ following conditions:
119
+
120
+ The above copyright notice and this permission notice shall be included
121
+ in all copies or substantial portions of the Software.
122
+
123
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
124
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
125
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
126
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
127
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
128
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
129
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
130
+
131
+ The Apache License, Version 2.0 is reproduced at the end of LICENSE; those
132
+ parts remain under it.
package/README.md CHANGED
@@ -1,3 +1,52 @@
1
- # Temporary Holding Version
1
+ # AllyHub
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Product demo videos from a few sentences, made by your coding agent.
4
+
5
+ Runs on your machine. No account needed.
6
+
7
+ ```bash
8
+ npx skills add allyhub-ai/skills -g
9
+ ```
10
+
11
+ Then ask your agent. In Claude Code:
12
+
13
+ ```text
14
+ /allyhub make a 45-second demo of https://your-product.com
15
+ ```
16
+
17
+ In Codex:
18
+
19
+ ```text
20
+ $allyhub make a 45-second demo of https://your-product.com
21
+ ```
22
+
23
+ This package is the `allyhub` command the skill uses. Your agent runs it as `npx allyhub`, so there is nothing to install by hand.
24
+
25
+ ## How it works
26
+
27
+ Your agent writes the video as TypeScript files in a plain folder on your computer (`allyhub/` in the current folder). AllyHub previews it, checks it and renders it, the same frame every time. Change one word, one shot, one language or one format, and everything made from it follows.
28
+
29
+ - **Preview**: `allyhub dev` opens the video in your browser as the files change. Circle anything you want changed and say how; `allyhub feedback` hands what you circled to your agent.
30
+ - **Check**: `allyhub check` reports what is wrong whatever the taste: a missing file, an invalid format, a frame that differs from run to run.
31
+ - **Render**: `allyhub render` makes MP4 (H.264 or H.265), ProRes and WebM with alpha, GIF, PNG frames, captions, covers, PDF and PPTX.
32
+ - **Recordings**: `allyhub transcribe` gives a recording's words with their times, on this computer, so a talking-head take can be cut by its text.
33
+
34
+ `allyhub help` lists every command, and `allyhub help <command>` describes one.
35
+
36
+ ## Cloud tools, when you want them
37
+
38
+ Making, previewing and rendering are free and need no account. Voiceover, generated images and footage, and research run in the cloud and use credits on your [allyhub.com](https://allyhub.com) account:
39
+
40
+ ```bash
41
+ npx allyhub login
42
+ ```
43
+
44
+ `allyhub find "<task>"` finds a command or a cloud tool, and `allyhub models price` or `allyhub research price` estimates a call. Your agent tells you the price before each paid call.
45
+
46
+ ## What you need
47
+
48
+ Node.js 22.19 or newer. The command downloads headless Chrome the first time it needs it. Rendering MP4s also needs ffmpeg; your agent tells you how to get it if it is missing. Working with recordings uses local models, downloaded the first time they are needed: speech recognition (about 700 MB) and face tracking and person mattes (about 270 MB).
49
+
50
+ ## License
51
+
52
+ Proprietary: you may install and use the command as set out in `LICENSE`. What you make with it is yours. Code adapted from other projects is listed in `NOTICE`. "AllyHub" is a trademark of AllyHub, Inc.
package/bin/allyhub.js ADDED
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env node
2
+
3
+ // A published allyhub always has its built files. One run from a source
4
+ // checkout does not while `pnpm build` rebuilds it (the build clears each
5
+ // package's dist first): Node then fails on the first import with a stack
6
+ // trace that reads like a broken install. Say what it is, and that the
7
+ // command can be run again.
8
+
9
+ /** The error is a built file of AllyHub's own that is not there. */
10
+ function missingBuild(e) {
11
+ if (typeof e !== "object" || e === null) return undefined;
12
+ if (e.code !== "ERR_MODULE_NOT_FOUND") return undefined;
13
+ const url = typeof e.url === "string" ? e.url : "";
14
+ const own =
15
+ url.startsWith(new URL("../dist/", import.meta.url).href) ||
16
+ /\/(node_modules\/@allyhub|packages)\/[^/]+\/dist\//.test(url);
17
+ return own ? url : undefined;
18
+ }
19
+
20
+ let main;
21
+ try {
22
+ ({ main } = await import("../dist/main.js"));
23
+ } catch (e) {
24
+ const file = missingBuild(e);
25
+ if (file === undefined) throw e;
26
+ const error = {
27
+ code: "not_built",
28
+ message: `allyhub's built files are not there (${file}).`,
29
+ hint: "This allyhub runs from a source checkout that is being rebuilt, or was never built. Run the command again in a few seconds; if it still fails, run pnpm build in the checkout.",
30
+ };
31
+ if (process.argv.includes("--json")) {
32
+ process.stdout.write(`${JSON.stringify({ error }, null, 2)}\n`);
33
+ } else {
34
+ process.stderr.write(`Error: ${error.message}\n${error.hint}\n`);
35
+ }
36
+ // EXIT.platform: nothing is wrong with the command or the workspace.
37
+ process.exit(5);
38
+ }
39
+
40
+ process.exitCode = await main(process.argv.slice(2));