superfactory 0.0.0-stage → 0.4.30

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 (308) hide show
  1. package/README.md +34 -2
  2. package/THIRD-PARTY-NOTICES.md +27604 -0
  3. package/bin/superfactory.js +57 -0
  4. package/cli/agent-rf446fr1.js +2 -0
  5. package/cli/agent-state-wv62c1td.js +2 -0
  6. package/cli/bin-0cvfmkhh.js +33 -0
  7. package/cli/bin-0t68hf99.js +3 -0
  8. package/cli/bin-19vpzq7g.js +4 -0
  9. package/cli/bin-37w316c6.js +3 -0
  10. package/cli/bin-3dsqxzbz.js +3 -0
  11. package/cli/bin-4j0jjd8g.js +3 -0
  12. package/cli/bin-4tdqjbbd.js +229 -0
  13. package/cli/bin-4zvje4sn.js +502 -0
  14. package/cli/bin-674kd343.js +7 -0
  15. package/cli/bin-8jdkg4ke.js +3 -0
  16. package/cli/bin-d99yte0j.js +5 -0
  17. package/cli/bin-fgvkq9cq.js +867 -0
  18. package/cli/bin-fkp3j5f3.js +3 -0
  19. package/cli/bin-fypan1f6.js +951 -0
  20. package/cli/bin-gg19acwr.js +4 -0
  21. package/cli/bin-ghp5x0x5.js +139 -0
  22. package/cli/bin-gk00mnmn.js +5 -0
  23. package/cli/bin-gne2w036.js +29 -0
  24. package/cli/bin-grxzwpe8.js +3 -0
  25. package/cli/bin-h57gajkz.js +8 -0
  26. package/cli/bin-mbpvzx2b.js +8 -0
  27. package/cli/bin-nnq8kd9z.js +4 -0
  28. package/cli/bin-ven2efjq.js +3 -0
  29. package/cli/bin-yqb1d1mw.js +22 -0
  30. package/cli/bin-z5b3tt05.js +20 -0
  31. package/cli/bin-za1by1n5.js +3 -0
  32. package/cli/bin-zpfe0pxz.js +1 -0
  33. package/cli/bin.js +3 -0
  34. package/cli/child-agent-qgeqvs03.js +4 -0
  35. package/cli/connect-chn8pxyf.js +2 -0
  36. package/cli/container-j6zr9gww.js +4 -0
  37. package/cli/dev-gsaehf19.js +7 -0
  38. package/cli/health-nqzge5kh.js +2 -0
  39. package/cli/home-lock-5seng0k3.js +2 -0
  40. package/cli/host-7dfjhf0z.js +1507 -0
  41. package/cli/index-1wseh1tm.js +2 -0
  42. package/cli/index-axfe8zef.js +2 -0
  43. package/cli/index-s9pw90xe.js +2 -0
  44. package/cli/install-17r8t45e.js +2 -0
  45. package/cli/join-551zg7yr.js +31 -0
  46. package/cli/local-server-2smsafvg.js +2 -0
  47. package/cli/machine-zfjmpw7h.js +2 -0
  48. package/cli/main-0mxhd968.js +33 -0
  49. package/cli/main-53qmhxmd.js +303 -0
  50. package/cli/move-to-xrr2b135.js +2 -0
  51. package/cli/npm-package.json +1 -0
  52. package/cli/pair-phone-070c9ztt.js +5 -0
  53. package/cli/prompt-psc4drtd.js +2 -0
  54. package/cli/reached-vwzx2cdg.js +2 -0
  55. package/cli/sessions-bm4mk37y.js +3 -0
  56. package/cli/sf-cli-s42gkp0b.js +2 -0
  57. package/cli/sf-db-r8f1a20b.js +23 -0
  58. package/cli/sf-deploy-wqaa4fdm.js +21 -0
  59. package/cli/sf-pr-rg3q3tn6.js +13 -0
  60. package/cli/sf-test-pff158qc.js +10 -0
  61. package/cli/tart-isolation-wr3xwfmw.js +3 -0
  62. package/cli/tray-4rr0y1dv.png +0 -0
  63. package/cli/tray-mac-offline-89dva0gs.png +0 -0
  64. package/cli/tray-mac-paused-hq3a1cxv.png +0 -0
  65. package/cli/tray-mac-tvtavf0g.png +0 -0
  66. package/cli/tray-offline-xj6b5ta4.png +0 -0
  67. package/cli/tray-paused-6pzdv5ze.png +0 -0
  68. package/cli/vm-keeper-p0ggcw3z.js +3 -0
  69. package/package.json +50 -4
  70. package/plugins/sf-video-review/.claude-plugin/plugin.json +17 -0
  71. package/plugins/sf-video-review/.mcp.json +9 -0
  72. package/plugins/sf-video-review/dist/video-review.mjs +135 -0
  73. package/plugins/sf-video-review/skills/video-review/SKILL.md +65 -0
  74. package/plugins/sf-video-studio/.claude-plugin/plugin.json +17 -0
  75. package/plugins/sf-video-studio/.mcp.json +19 -0
  76. package/plugins/sf-video-studio/dist/demo-video.mjs +139 -0
  77. package/plugins/sf-video-studio/dist/narration-voice.mjs +134 -0
  78. package/plugins/sf-video-studio/dist/video-generation.mjs +131 -0
  79. package/plugins/sf-video-studio/fonts/DejaVuSansMono-Bold.ttf +0 -0
  80. package/plugins/sf-video-studio/fonts/DejaVuSansMono.ttf +0 -0
  81. package/plugins/sf-video-studio/fonts/LICENSE-DejaVu +187 -0
  82. package/plugins/sf-video-studio/hooks/hooks.json +17 -0
  83. package/plugins/sf-video-studio/hooks/no-robot-voice.sh +77 -0
  84. package/plugins/sf-video-studio/kokoro/package-lock.json +1137 -0
  85. package/plugins/sf-video-studio/kokoro/package.json +11 -0
  86. package/plugins/sf-video-studio/skills/demo-video/SKILL.md +101 -0
  87. package/plugins/sf-video-studio/skills/narration-voice/SKILL.md +49 -0
  88. package/plugins/sf-video-studio/skills/video-generation/SKILL.md +30 -0
  89. package/server/dist/account.js +3 -0
  90. package/server/dist/backup-process.js +2 -0
  91. package/server/dist/backup.js +3 -0
  92. package/server/dist/chunk-0tbq288f.js +3055 -0
  93. package/server/dist/chunk-18n7tr66.js +3 -0
  94. package/server/dist/chunk-1kgfrgmv.js +3 -0
  95. package/server/dist/chunk-1rnmxaav.js +209 -0
  96. package/server/dist/chunk-26zhqbyn.js +25 -0
  97. package/server/dist/chunk-34mn2zj2.js +2 -0
  98. package/server/dist/chunk-3psgsw9t.js +2 -0
  99. package/server/dist/chunk-8zbwppny.js +391 -0
  100. package/server/dist/chunk-9pn7q001.js +3 -0
  101. package/server/dist/chunk-9y7a9gkf.js +2 -0
  102. package/server/dist/chunk-bhm6jzch.js +8 -0
  103. package/server/dist/chunk-dbzjsqvb.js +17 -0
  104. package/server/dist/chunk-fxn504n0.js +2 -0
  105. package/server/dist/chunk-g6pwaap3.js +2 -0
  106. package/server/dist/chunk-gefgv8rg.js +7 -0
  107. package/server/dist/chunk-jg8b833v.js +2 -0
  108. package/server/dist/chunk-jy148bhn.js +3 -0
  109. package/server/dist/chunk-ky4nz39j.js +7 -0
  110. package/server/dist/chunk-mbd1y9qk.js +2 -0
  111. package/server/dist/chunk-neyhk32g.js +13 -0
  112. package/server/dist/chunk-nrz953bx.js +2 -0
  113. package/server/dist/chunk-padvv31s.js +2 -0
  114. package/server/dist/chunk-q1s2ez77.js +3 -0
  115. package/server/dist/chunk-q403h2bh.js +10 -0
  116. package/server/dist/chunk-t64r6enn.js +4 -0
  117. package/server/dist/chunk-vccappg7.js +59 -0
  118. package/server/dist/chunk-vj60fbhw.js +2 -0
  119. package/server/dist/chunk-xj26rwda.js +3 -0
  120. package/server/dist/chunk-xyw98jst.js +5 -0
  121. package/server/dist/main.js +43 -0
  122. package/server/dist/move.js +3 -0
  123. package/server/drizzle/pg/0000_baseline.sql +632 -0
  124. package/server/drizzle/pg/0001_transcripts_packed.sql +2 -0
  125. package/server/drizzle/pg/0002_vm_server_origin.sql +1 -0
  126. package/server/drizzle/pg/0003_reached_machines.sql +1 -0
  127. package/server/drizzle/pg/0004_link_records.sql +2 -0
  128. package/server/drizzle/pg/0005_task_columns.sql +7 -0
  129. package/server/drizzle/pg/0006_task_bundle.sql +3 -0
  130. package/server/drizzle/pg/0007_server_log.sql +9 -0
  131. package/server/drizzle/pg/0008_notification_pauses.sql +6 -0
  132. package/server/drizzle/pg/0009_vm_replaces.sql +1 -0
  133. package/server/drizzle/pg/0010_question_told_once.sql +10 -0
  134. package/server/drizzle/pg/0011_node_next_key.sql +3 -0
  135. package/server/drizzle/pg/0012_task_work.sql +8 -0
  136. package/server/drizzle/pg/0013_task_secret_grants.sql +9 -0
  137. package/server/drizzle/pg/0014_node_paused.sql +2 -0
  138. package/server/drizzle/pg/0015_ssh_machines.sql +19 -0
  139. package/server/drizzle/pg/0016_node_wake.sql +1 -0
  140. package/server/drizzle/pg/0017_node_uninstall_key.sql +1 -0
  141. package/server/drizzle/pg/0018_release_starts.sql +6 -0
  142. package/server/drizzle/pg/0019_session_memory.sql +7 -0
  143. package/server/drizzle/pg/meta/_journal.json +146 -0
  144. package/server/drizzle/sqlite/0000_pre_drizzle_schema.sql +351 -0
  145. package/server/drizzle/sqlite/0001_cluster.sql +36 -0
  146. package/server/drizzle/sqlite/0002_task_records.sql +22 -0
  147. package/server/drizzle/sqlite/0003_indexes.sql +12 -0
  148. package/server/drizzle/sqlite/0004_project_machines.sql +19 -0
  149. package/server/drizzle/sqlite/0005_session_events.sql +7 -0
  150. package/server/drizzle/sqlite/0006_task_platforms.sql +8 -0
  151. package/server/drizzle/sqlite/0007_session_event_tags.sql +7 -0
  152. package/server/drizzle/sqlite/0008_sprints.sql +7 -0
  153. package/server/drizzle/sqlite/0009_project_vms.sql +19 -0
  154. package/server/drizzle/sqlite/0010_server_repairs.sql +4 -0
  155. package/server/drizzle/sqlite/0011_drop_todos.sql +2 -0
  156. package/server/drizzle/sqlite/0012_hypervisors.sql +14 -0
  157. package/server/drizzle/sqlite/0013_manager_leads.sql +2 -0
  158. package/server/drizzle/sqlite/0014_session_text.sql +35 -0
  159. package/server/drizzle/sqlite/0015_vm_resize_machine_instructions_access.sql +22 -0
  160. package/server/drizzle/sqlite/0016_tunnel.sql +23 -0
  161. package/server/drizzle/sqlite/0017_session_secret_grants.sql +7 -0
  162. package/server/drizzle/sqlite/0018_https.sql +18 -0
  163. package/server/drizzle/sqlite/0019_secret_grant_runs.sql +1 -0
  164. package/server/drizzle/sqlite/0020_session_transcripts.sql +16 -0
  165. package/server/drizzle/sqlite/0021_claude_signed_out.sql +2 -0
  166. package/server/drizzle/sqlite/0022_machine_disabled.sql +1 -0
  167. package/server/drizzle/sqlite/0023_machine_access_granted_by.sql +1 -0
  168. package/server/drizzle/sqlite/0024_machine_vms.sql +27 -0
  169. package/server/drizzle/sqlite/0025_machine_tunnel_fallback.sql +1 -0
  170. package/server/drizzle/sqlite/0026_tunnel_peer_linked.sql +3 -0
  171. package/server/drizzle/sqlite/0027_tunnel_upgrade_grace.sql +2 -0
  172. package/server/drizzle/sqlite/0028_dialed_machines.sql +2 -0
  173. package/server/drizzle/sqlite/0029_node_link.sql +3 -0
  174. package/server/drizzle/sqlite/0030_sprint_calendar.sql +1 -0
  175. package/server/drizzle/sqlite/0031_transcripts_packed.sql +2 -0
  176. package/server/drizzle/sqlite/0032_vm_server_origin.sql +1 -0
  177. package/server/drizzle/sqlite/meta/_journal.json +237 -0
  178. package/server/src/account.ts +2 -0
  179. package/server/src/backup.ts +2 -0
  180. package/server/src/features/backups/backup-process.ts +2 -0
  181. package/server/src/main.ts +2 -0
  182. package/server/src/move.ts +2 -0
  183. package/ui/dist/_expo/static/css/global-d378e211074d97e633bc15418ccf57d4.css +2 -0
  184. package/ui/dist/_expo/static/css/xterm-8a7c4e0dca731c11dbe6bdff98fb667c.css +1 -0
  185. package/ui/dist/_expo/static/js/web/Network-f300a5960620f5029c91c06cae29dba5.js +3 -0
  186. package/ui/dist/_expo/static/js/web/[...rest]-9e454d985f211f5c983f42bec15b6ad9.js +1 -0
  187. package/ui/dist/_expo/static/js/web/[managerId]-2580b90e8d862ad66197eecb1dc04a12.js +1 -0
  188. package/ui/dist/_expo/static/js/web/[managerId]-39308153b42eed025c0abb9242ae6c71.js +1 -0
  189. package/ui/dist/_expo/static/js/web/[managerId]-8b7a94ec818e50a371b6b2750b73df6a.js +1 -0
  190. package/ui/dist/_expo/static/js/web/[managerId]-ac3a14c7607e4576d7e6c39c1014bcaf.js +1 -0
  191. package/ui/dist/_expo/static/js/web/[managerId]-e8549b2313a119437c373e30207518c0.js +1 -0
  192. package/ui/dist/_expo/static/js/web/[ref]-9b46f1ec4348f980e9838b68d47c34bf.js +2 -0
  193. package/ui/dist/_expo/static/js/web/[sessionId]-09e376674fb8b3edc4ae8aa9b3a189d7.js +1 -0
  194. package/ui/dist/_expo/static/js/web/[sessionId]-0e5fdba25c9f78220cea4cb66227743d.js +1 -0
  195. package/ui/dist/_expo/static/js/web/[sessionId]-104af3c3885009e6a8d204b6fd6e2c3a.js +1 -0
  196. package/ui/dist/_expo/static/js/web/[sessionId]-863a34ca3835b469134ddbc4ebc6fafc.js +1 -0
  197. package/ui/dist/_expo/static/js/web/[taskId]-1218e1dd3ecf175ffb7701fc886d62c9.js +1 -0
  198. package/ui/dist/_expo/static/js/web/[taskId]-31a48c7017dbd096f8ece9dc102a9762.js +1 -0
  199. package/ui/dist/_expo/static/js/web/[taskId]-a56cf85bcfd14f2d6b5d4180ea17e8d7.js +1 -0
  200. package/ui/dist/_expo/static/js/web/[taskId]-f2a157b3cb676b3c5d04c8eadfe90cdd.js +1 -0
  201. package/ui/dist/_expo/static/js/web/__common-1ad58e53e08528a67b99f53a1690b669.js +2078 -0
  202. package/ui/dist/_expo/static/js/web/__expo-metro-runtime-1f8f5d3ca6b7f58204d51e14506d73fb.js +5 -0
  203. package/ui/dist/_expo/static/js/web/_layout-057457e97e0af20433ed41b39cb5e809.js +1 -0
  204. package/ui/dist/_expo/static/js/web/_layout-2a7d73d5356823e1f7d2dab23e440d09.js +7 -0
  205. package/ui/dist/_expo/static/js/web/_layout-42e6a6b7855655d456015ce41aefdd39.js +1 -0
  206. package/ui/dist/_expo/static/js/web/_layout-a5e5a5b2fb3bfbfcc2914131976679e7.js +1 -0
  207. package/ui/dist/_expo/static/js/web/_layout-b2cbba92506f66815a5d744fd7cd5d8c.js +1 -0
  208. package/ui/dist/_expo/static/js/web/_layout-b4d13dc52bbcb65b18b4e52813d53883.js +198 -0
  209. package/ui/dist/_expo/static/js/web/_layout-fb0f75b354800de2e1582dc963f5c148.js +1 -0
  210. package/ui/dist/_expo/static/js/web/index-41299a961569cc8e5410ec53ba2b87c4.js +4 -0
  211. package/ui/dist/_expo/static/js/web/index-6c2bb0d3b6d00c5c007a663e9f4ce108.js +1 -0
  212. package/ui/dist/_expo/static/js/web/index-70484f7d2769d9ae01dac1fdb22aef1d.js +14 -0
  213. package/ui/dist/_expo/static/js/web/index-7d764cb7cefe0a217728c24d44990057.js +14 -0
  214. package/ui/dist/_expo/static/js/web/index-a5eb3d0c6aa4c483674beb5de428634c.js +12 -0
  215. package/ui/dist/_expo/static/js/web/index-b1c2543003cba86eeb3abfa4d21fd8da.js +14 -0
  216. package/ui/dist/_expo/static/js/web/index-d200aded5448966e5e05d9ccb77b56a4.js +5 -0
  217. package/ui/dist/_expo/static/js/web/index-ea43f51ceec4a981c942fc6dce9cedc4.js +2378 -0
  218. package/ui/dist/_expo/static/js/web/index-efa68d817a7febbf8c0163303bf4cd49.js +29 -0
  219. package/ui/dist/_expo/static/js/web/licenses-30f8c0555f7f4d434a68ee4706fa433d.js +1 -0
  220. package/ui/dist/_expo/static/js/web/pair-3f6f72208023894f43f4f07db5116cca.js +1 -0
  221. package/ui/dist/_expo/static/js/web/rich-markdown-editor-dea9c0f7c0306da4146e54ee44cce173.js +228 -0
  222. package/ui/dist/_expo/static/js/web/sign-in-67d2a0c00232e0e6f40efade1a83dc4b.js +4 -0
  223. package/ui/dist/_expo/static/js/web/terminal-view-32db8e6f8a21dd073f6a310862d36db8.js +90 -0
  224. package/ui/dist/apple-touch-icon.png +0 -0
  225. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/100Thin/GeistMono_100Thin.95eed4519d8c395e41b3b837ca97edea.ttf +0 -0
  226. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/100Thin_Italic/GeistMono_100Thin_Italic.2e50fb9a43d70ceb4925a2c54502097c.ttf +0 -0
  227. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/200ExtraLight/GeistMono_200ExtraLight.0714ea94ac265d76bc16698dd1808599.ttf +0 -0
  228. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/200ExtraLight_Italic/GeistMono_200ExtraLight_Italic.107f2670e94507223548f1d38eb14087.ttf +0 -0
  229. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/300Light/GeistMono_300Light.d6a3533adfd5834dd9f68ee37faa1e2d.ttf +0 -0
  230. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/300Light_Italic/GeistMono_300Light_Italic.09420cdceda8d1f1612daceae1e4890e.ttf +0 -0
  231. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/400Regular/GeistMono_400Regular.3656dcb247d3a6cd141f7601c2101125.ttf +0 -0
  232. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/400Regular_Italic/GeistMono_400Regular_Italic.88343c321b266476ad3bc56735cc6ac7.ttf +0 -0
  233. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/500Medium/GeistMono_500Medium.a298cd61aebdb709299e2a7deb73ed93.ttf +0 -0
  234. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/500Medium_Italic/GeistMono_500Medium_Italic.e149441dd9360bd7dbffeb1de9aa1685.ttf +0 -0
  235. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/600SemiBold/GeistMono_600SemiBold.cae945cb3b6156e396a1008b6252af21.ttf +0 -0
  236. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/600SemiBold_Italic/GeistMono_600SemiBold_Italic.e939ba436795ee2f0a379e7271bb957d.ttf +0 -0
  237. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/700Bold/GeistMono_700Bold.7fcc8478bc1dcadc865d97626ba3206b.ttf +0 -0
  238. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/700Bold_Italic/GeistMono_700Bold_Italic.8cc57ff1f3c45e7ed84e74853c141e06.ttf +0 -0
  239. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/800ExtraBold/GeistMono_800ExtraBold.b09b5457204e06ea7bacff03f0880065.ttf +0 -0
  240. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/800ExtraBold_Italic/GeistMono_800ExtraBold_Italic.0b4dd8c1b0e6d8791ea34c8f1417edfd.ttf +0 -0
  241. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/900Black/GeistMono_900Black.9ec025adf049c8a476588eeac81a36e4.ttf +0 -0
  242. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+geist-mono@0.4.3-2a25012349fb7712/node_modules/@expo-google-fonts/geist-mono/900Black_Italic/GeistMono_900Black_Italic.8dfe24b2fef43fb3d535316e2412be7d.ttf +0 -0
  243. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/100Thin/HankenGrotesk_100Thin.2d9c9415d97b66fb3bbca06b538f11d8.ttf +0 -0
  244. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/100Thin_Italic/HankenGrotesk_100Thin_Italic.5ad53da9f1ff702f55cf870763a159ff.ttf +0 -0
  245. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/200ExtraLight/HankenGrotesk_200ExtraLight.2cae1a1078b5af081aff084011b07522.ttf +0 -0
  246. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/200ExtraLight_Italic/HankenGrotesk_200ExtraLight_Italic.5d4eff887cdb33164b4fba2066c687e3.ttf +0 -0
  247. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/300Light/HankenGrotesk_300Light.2be9fd730ff95b91631e3f99bc449709.ttf +0 -0
  248. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/300Light_Italic/HankenGrotesk_300Light_Italic.4ae6910889ffdf69093da607b369b0a8.ttf +0 -0
  249. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/400Regular/HankenGrotesk_400Regular.2e544d6119b4e635f6cc5a47800523bb.ttf +0 -0
  250. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/400Regular_Italic/HankenGrotesk_400Regular_Italic.ed9d322cffe9e614205ce9512f144834.ttf +0 -0
  251. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/500Medium/HankenGrotesk_500Medium.a822d33614b51eb05478e0e29cf757f3.ttf +0 -0
  252. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/500Medium_Italic/HankenGrotesk_500Medium_Italic.bc71c45237e12974e52335b615fab7da.ttf +0 -0
  253. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/600SemiBold/HankenGrotesk_600SemiBold.b016ff502f15ce9b59c453304c74fb48.ttf +0 -0
  254. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/600SemiBold_Italic/HankenGrotesk_600SemiBold_Italic.94428d43b74e372dc47910fd4fc6b552.ttf +0 -0
  255. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/700Bold/HankenGrotesk_700Bold.14d2af6df606492d846389d2108dae50.ttf +0 -0
  256. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/700Bold_Italic/HankenGrotesk_700Bold_Italic.d075966aaf26126d8aaac0802735e310.ttf +0 -0
  257. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/800ExtraBold/HankenGrotesk_800ExtraBold.b419489745bc870b4e4288e969945f31.ttf +0 -0
  258. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/800ExtraBold_Italic/HankenGrotesk_800ExtraBold_Italic.ea7ac4778026e067a5d637f4a494b2d2.ttf +0 -0
  259. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/900Black/HankenGrotesk_900Black.55e860e6549b53fa530d9eda7c7518a2.ttf +0 -0
  260. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+hanken-grotesk@0.4.3-9a0105bf7cbf8f8b/node_modules/@expo-google-fonts/hanken-grotesk/900Black_Italic/HankenGrotesk_900Black_Italic.dcad6f722a66aae93f70a72604112754.ttf +0 -0
  261. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+newsreader@0.4.1-869d74885c3fd9d6/node_modules/@expo-google-fonts/newsreader/200ExtraLight/Newsreader_200ExtraLight.1ee07dc260606863f8bf8101308d85f2.ttf +0 -0
  262. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+newsreader@0.4.1-869d74885c3fd9d6/node_modules/@expo-google-fonts/newsreader/200ExtraLight_Italic/Newsreader_200ExtraLight_Italic.52c51abab458715d1205b8732b55735f.ttf +0 -0
  263. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+newsreader@0.4.1-869d74885c3fd9d6/node_modules/@expo-google-fonts/newsreader/300Light/Newsreader_300Light.bf0dfa126654b01f65e1c53a4507ec12.ttf +0 -0
  264. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+newsreader@0.4.1-869d74885c3fd9d6/node_modules/@expo-google-fonts/newsreader/300Light_Italic/Newsreader_300Light_Italic.03190fe46aa9b7083610981ac13b10f3.ttf +0 -0
  265. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+newsreader@0.4.1-869d74885c3fd9d6/node_modules/@expo-google-fonts/newsreader/400Regular/Newsreader_400Regular.b1d919187d5645f84124ef065868ba9e.ttf +0 -0
  266. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+newsreader@0.4.1-869d74885c3fd9d6/node_modules/@expo-google-fonts/newsreader/400Regular_Italic/Newsreader_400Regular_Italic.f7b81d92eb42d85de96b6dc1c72d2c36.ttf +0 -0
  267. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+newsreader@0.4.1-869d74885c3fd9d6/node_modules/@expo-google-fonts/newsreader/500Medium/Newsreader_500Medium.df89e83cfd4e37176dda53076a01b3b7.ttf +0 -0
  268. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+newsreader@0.4.1-869d74885c3fd9d6/node_modules/@expo-google-fonts/newsreader/500Medium_Italic/Newsreader_500Medium_Italic.fb45099c4fb3c395e8f12e181475230c.ttf +0 -0
  269. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+newsreader@0.4.1-869d74885c3fd9d6/node_modules/@expo-google-fonts/newsreader/600SemiBold/Newsreader_600SemiBold.20bce29dc5180892ce1fbf4a563737a0.ttf +0 -0
  270. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+newsreader@0.4.1-869d74885c3fd9d6/node_modules/@expo-google-fonts/newsreader/600SemiBold_Italic/Newsreader_600SemiBold_Italic.93e2816e201fa363d3289e741f757ff0.ttf +0 -0
  271. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+newsreader@0.4.1-869d74885c3fd9d6/node_modules/@expo-google-fonts/newsreader/700Bold/Newsreader_700Bold.bf7c54edbd2afe9b289d5da777f489e9.ttf +0 -0
  272. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+newsreader@0.4.1-869d74885c3fd9d6/node_modules/@expo-google-fonts/newsreader/700Bold_Italic/Newsreader_700Bold_Italic.e2f5e5260513d7d4f9f3edbdcbc9f43f.ttf +0 -0
  273. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+newsreader@0.4.1-869d74885c3fd9d6/node_modules/@expo-google-fonts/newsreader/800ExtraBold/Newsreader_800ExtraBold.702211ca77927e4c276b28169dc3694c.ttf +0 -0
  274. package/ui/dist/assets/_____.bun/install/cache/links/@expo-google-fonts+newsreader@0.4.1-869d74885c3fd9d6/node_modules/@expo-google-fonts/newsreader/800ExtraBold_Italic/Newsreader_800ExtraBold_Italic.9b9eacc7d72e5152e692cb144ef7a9fd.ttf +0 -0
  275. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/arrow_down.017bc6ba3fc25503e5eb5e53826d48a8.png +0 -0
  276. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/error.d1ea1496f9057eb392d5bbf3732a61b7.png +0 -0
  277. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/file.19eeb73b9593a38f8e9f418337fc7d10.png +0 -0
  278. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/forward.d8b800c443b8972542883e0b9de2bdc6.png +0 -0
  279. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/pkg.ab19f4cbc543357183a20571f68380a3.png +0 -0
  280. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/react-navigation/drawer/toggle-drawer-icon.ae74bb20586a731af545e6b00fe14a09.png +0 -0
  281. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/react-navigation/elements/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png +0 -0
  282. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/react-navigation/elements/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png +0 -0
  283. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png +0 -0
  284. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png +0 -0
  285. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png +0 -0
  286. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png +0 -0
  287. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png +0 -0
  288. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png +0 -0
  289. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png +0 -0
  290. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png +0 -0
  291. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/react-navigation/elements/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png +0 -0
  292. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/sitemap.412dd9275b6b48ad28f5e3d81bb1f626.png +0 -0
  293. package/ui/dist/assets/_____.bun/install/cache/links/expo-router@57.0.24+dc951f634b001cec-a06b318b98b13101/node_modules/expo-router/assets/unmatched.20e71bdf79e3a97bf55fd9e164041578.png +0 -0
  294. package/ui/dist/favicon.ico +0 -0
  295. package/ui/dist/favicon.svg +10 -0
  296. package/ui/dist/icon-192.png +0 -0
  297. package/ui/dist/icon-512.png +0 -0
  298. package/ui/dist/index.html +45 -0
  299. package/ui/dist/legal/privacy-policy.md +174 -0
  300. package/ui/dist/legal/terms-of-use.md +76 -0
  301. package/ui/dist/load-again.js +42 -0
  302. package/ui/dist/manifest.webmanifest +12 -0
  303. package/ui/dist/metadata.json +1 -0
  304. package/ui/dist/sounds/bell.wav +0 -0
  305. package/ui/dist/sounds/chime.wav +0 -0
  306. package/ui/dist/sounds/knock.wav +0 -0
  307. package/ui/dist/sounds/pop.wav +0 -0
  308. package/ui/dist/sw.js +121 -0
@@ -0,0 +1,57 @@
1
+ #!/usr/bin/env node
2
+ // The superfactory npm package's command (build-npm.ts copies it to bin/superfactory.js). The CLI is Bun
3
+ // code: under Bun (bunx, `bun add -g`) it runs in this process; under Node (npx, `npm i -g`, Homebrew) it
4
+ // runs with the Bun build npm installed beside this package (@oven/bun-<platform>, an optional dependency
5
+ // npm picks by os, cpu and libc), else a `bun` on the PATH. Its exit code is this one's.
6
+ // biome-ignore lint/style/noRestrictedImports: runs under Node before any Superfactory code, with no safe-exec: one fixed program (Bun), no shell.
7
+ import { spawn } from "node:child_process";
8
+ import { existsSync } from "node:fs";
9
+ import { createRequire } from "node:module";
10
+ import { delimiter, dirname, join } from "node:path";
11
+ import { fileURLToPath } from "node:url";
12
+
13
+ const cli = join(dirname(fileURLToPath(import.meta.url)), "..", "cli", "bin.js");
14
+
15
+ if (process.versions.bun) {
16
+ await import(cli);
17
+ } else {
18
+ const bun = findBun();
19
+ if (!bun) {
20
+ console.error(
21
+ "superfactory: no Bun for this computer: npm didn't install @oven/bun for it. Install Bun (https://bun.sh) and run superfactory again.",
22
+ );
23
+ process.exit(1);
24
+ }
25
+ // The command as run (npx's or bunx's temporary folder), which the CLI can't see from Bun's side.
26
+ const env = { ...process.env, SUPERFACTORY_NPM_ENTRY: process.argv[1] ?? "" };
27
+ const child = spawn(bun, [cli, ...process.argv.slice(2)], { stdio: "inherit", env });
28
+ // Ctrl-C reaches the CLI too (the terminal signals the whole group): it decides, this one waits.
29
+ for (const signal of ["SIGINT", "SIGTERM", "SIGHUP"]) process.on(signal, () => child.kill(signal));
30
+ child.on("exit", (code, signal) => {
31
+ if (code === null && signal) {
32
+ process.removeAllListeners(signal);
33
+ process.kill(process.pid, signal);
34
+ }
35
+ process.exit(code ?? 1);
36
+ });
37
+ }
38
+
39
+ /** The Bun build npm installed for this platform, else the one on the PATH. */
40
+ function findBun() {
41
+ const require = createRequire(import.meta.url);
42
+ const os = process.platform === "win32" ? "windows" : process.platform;
43
+ const arch = process.arch === "arm64" ? "aarch64" : process.arch;
44
+ const exe = process.platform === "win32" ? "bun.exe" : "bun";
45
+ for (const variant of ["", "-musl", "-baseline", "-musl-baseline"]) {
46
+ try {
47
+ const bin = join(
48
+ dirname(require.resolve(`@oven/bun-${os}-${arch}${variant}/package.json`)),
49
+ "bin",
50
+ exe,
51
+ );
52
+ if (existsSync(bin)) return bin;
53
+ } catch {}
54
+ }
55
+ const onPath = (process.env.PATH ?? "").split(delimiter).map((dir) => join(dir, exe));
56
+ return onPath.find((bin) => existsSync(bin));
57
+ }
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Mu,Dp,Up,Fp,Bp,Hp,zp}from"./bin-fypan1f6.js";import"./bin-4zvje4sn.js";import"./bin-fgvkq9cq.js";import"./bin-4j0jjd8g.js";import"./bin-674kd343.js";import"./bin-8jdkg4ke.js";import{U,m,W}from"./bin-nnq8kd9z.js";import"./bin-gk00mnmn.js";import"./bin-yqb1d1mw.js";import"./bin-0t68hf99.js";import"./bin-mbpvzx2b.js";import"./bin-gne2w036.js";import"./bin-ghp5x0x5.js";import"./bin-za1by1n5.js";import"./bin-z5b3tt05.js";import"./bin-4tdqjbbd.js";import"./bin-h57gajkz.js";export{zp as Agent,Bp as AwayBody,Mu as CONTROL_PREFIX,Dp as EnrollBody,Up as LinkBody,Hp as PauseBody,Fp as RegisterBody,m as agentFiles,U as agentHome,W as readAgentState};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{U,m,Al,fs,W,F}from"./bin-nnq8kd9z.js";import"./bin-4tdqjbbd.js";export{fs as AgentState,m as agentFiles,U as agentHome,Al as keepHomePrivate,W as readAgentState,F as writeAgentState};
@@ -0,0 +1,33 @@
1
+ // @bun
2
+ import{xr,l,r,_}from"./bin-h57gajkz.js";import{wn}from"./bin-ven2efjq.js";import{da}from"./bin-fkp3j5f3.js";import{readFile as S}from"fs/promises";import{join as x}from"path";var f=`sf secret: this session's secrets, without their values passing through you.
3
+
4
+ \u2026 | sf secret set NAME [--project] [--task T-1]
5
+ keeps what the pipe gives as NAME: for your task (dropped when it's done), or
6
+ a lead: for its project (--project) or one of its tasks (--task)
7
+ sf secret unset NAME [--project] [--task T-1]
8
+ sf secret exec -- <command> [args\u2026]
9
+ runs the command with the secrets as they are now in its env; any value it
10
+ prints shows as [redacted]
11
+ sf secret list names, where each is from, when it changed: never values
12
+
13
+ There is no command that prints a value. Values also reach your shell's commands as $NAME.
14
+
15
+ Test runs: sf test -- <command> runs it and records the run on your task (sf test --help).
16
+ Your task's PR out of draft: sf pr ready [<number>] (bun run ready does it; sf pr --help).
17
+ The main lead and the Superfactory project's lead: sf db query "SELECT \u2026" reads Superfactory's database
18
+ (sf db --help); sf deploy record writes a deploy's stage to its audit log (sf deploy --help).`,p=20000,T="[redacted]",k=4,v={out:(e)=>process.stdout.write(e),err:(e)=>process.stderr.write(e)};class G extends Error{}async function Pw(e,{out:s,err:t}=v){let[n,i,...a]=e;if(n!=="secret"||!i||i==="--help"||i==="-h")return(n==="secret"||n===void 0||n==="--help"?s:t)(`${f}
19
+ `),n==="secret"||n==="--help"?0:2;try{let o=await ft();switch(i){case"list":return s(`${await Xe(o,"secret_list",{})}
20
+ `),0;case"set":{let{name:c,scope:d,taskId:u}=w(a);if(process.stdin.isTTY)throw new G(`pipe the value in: <command that prints it> | sf secret set ${c}`);let h=A(await m());if(!h)throw new G("nothing came through the pipe: nothing set");return s(`${await Xe(o,"secret_set",{name:c,value:h,scope:d,taskId:u})}
21
+ `),0}case"unset":{let{name:c,scope:d,taskId:u}=w(a);return s(`${await Xe(o,"secret_unset",{name:c,scope:d,taskId:u})}
22
+ `),0}case"exec":return await Dc(o,a[0]==="--"?a.slice(1):a);case"shell-env":{if(process.stdin.isTTY)throw new G("shell-env is for the session's env file only");let c=await E(o,{for:"shell",nonce:(await m()).trim()}),d=[...c.unset.map((u)=>`unset ${u}`),...Object.entries(c.env).map(([u,h])=>`export ${u}=${P(h)}`),`export SUPERFACTORY_SECRETS_AT=${c.version}`];return s(`${d.join(`
23
+ `)}
24
+ `),0}default:return t(`sf secret: no command ${i}
25
+
26
+ ${f}
27
+ `),2}}catch(o){return t(`sf secret: ${o.message}
28
+ `),1}}async function ft(){let e=process.env.SUPERFACTORY_RUN_DIR;if(!e)throw new G("not in a Superfactory session (SUPERFACTORY_RUN_DIR isn't set)");let s=da(JSON.parse(await S(x(e,"mcp.json"),"utf8")));if(!s?.url||!s.headers?.authorization)throw new G("this session's agent isn't known");return{url:s.url,authorization:s.headers.authorization}}function w(e){let[s,...t]=e;if(!s||s.startsWith("-"))throw new G("name the secret, e.g. sf secret set STRIPE_API_KEY");let n="task",i;for(let a=0;a<t.length;a++)if(t[a]==="--project")n="project";else if(t[a]==="--task")i=t[++a];else throw new G(`unknown option ${t[a]}`);return{name:s,scope:n,taskId:i}}async function m(){let e=[],s=0;for await(let t of process.stdin){if(s+=t.length,s>p*4)throw new G(`a value is at most ${p} characters`);e.push(t)}return Buffer.concat(e).toString("utf8")}var A=(e)=>e.replace(/\r?\n$/,"");async function Xe(e,s,t){let n=await fetch(e.url,{method:"POST",headers:{authorization:e.authorization,"content-type":"application/json",accept:"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"tools/call",params:{name:s,arguments:t}})}).catch(()=>{throw new G("this session's agent doesn't answer")});if(!n.ok)throw new G(`this session's agent refused (${n.status})`);let i=await n.json();if(i.error)throw new G(i.error.message);let a=i.result?.content?.map((o)=>o.text??"").join(`
29
+ `)??"";if(i.result?.isError)throw new G(a);return a}async function E(e,s={for:"exec"}){let t=await fetch(new URL(wn,e.url),{method:"POST",headers:{authorization:e.authorization,"content-type":"application/json"},body:JSON.stringify(s)}).catch(()=>{throw new G("this session's agent doesn't answer")});if(t.status===403)throw new G(await t.text());if(!t.ok)throw new G(`this session's agent refused (${t.status})`);return await t.json()}async function Dc(e,s,t={for:"exec"}){if(!s.length)throw new G("say what to run: sf secret exec -- <command> [args\u2026]");let n=await E(e,t),i=n.unset.length?l`unset ${n.unset}; `:l``,a=r(xr).script("-c",l`${i}exec ${s}`).secretEnv(n.env);if(t.for==="deploy"&&n.env.SF_DEPLOY_GRANT)a.env({SF_DEPLOY_AGENT:e.url});let o=_(a.build(),{stdin:"pipe"});if(process.stdin.isTTY)o.stdin.end();else process.stdin.pipe(o.stdin).on("error",()=>{return});let c=Object.values(n.env),d=new Promise((u)=>o.once("close",(h)=>u(h??1)));return await Promise.all([g(o.stdout,c,(u)=>process.stdout.write(u)),g(o.stderr,c,(u)=>process.stderr.write(u))]),d}async function g(e,s,t){let n=[...new Set(s.filter((c)=>c.length>=k))].sort((c,d)=>d.length-c.length),i=Math.max(0,...n.map((c)=>c.length-1)),a=new TextDecoder,o="";for await(let c of e){let d=o+a.decode(c,{stream:!0}),u=j(d,Math.max(0,d.length-i),n);if(u)t(y(d.slice(0,u),n));o=d.slice(u)}if(o=y(o+a.decode(),n),o)t(o)}function j(e,s,t){let n=s;for(let i=!0;i;){i=!1;for(let a of t)for(let o=e.indexOf(a);o!==-1&&o<n;o=e.indexOf(a,o+1))if(o+a.length>n)n=o,i=!0}return n}var y=(e,s)=>s.reduce((t,n)=>t.replaceAll(n,T),e),P=(e)=>`'${e.replaceAll("'","'\\''")}'`;async function Tw({out:e,err:s}=v){try{let{authorization:t}=await ft();return e(`username=superfactory-session
30
+ password=${t.replace(/^Bearer\s+/i,"")}
31
+ `),0}catch(t){return s(`sf git-credential: ${t.message}
32
+ `),1}}
33
+ export{G,Pw,ft,Xe,Dc,Tw};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{accessSync as u,constants as p,existsSync as l,realpathSync as f}from"fs";import{dirname as r}from"path";var a="SUPERFACTORY_AUTO_UPDATE",i="SUPERFACTORY_SERVICE",t,n;function Gt(){if(t)return t;return n=process.env[i]||void 0,delete process.env[i],t=c(n),t}function Ze(){return Gt(),n}function c(s){if(["0","false","off","no"].includes(process.env[a]?.toLowerCase()??""))return{updates:!1,why:`${a} turns it off`};if(process.env.SUPERFACTORY_SANDBOX)return{updates:!1,why:"a sandbox's agent"};if(!h())return{updates:!1,why:"it runs from source"};let e=f(process.execPath);if(/\.app\/Contents\//.test(e))return{updates:!1,why:"the desktop app's (it updates with the app)"};if(!l(`${e}.sha256`))return{updates:!1,why:`${e} wasn't installed by join.sh, join.ps1 or install.sh`};if(!o(r(e))||!o(e))return{updates:!1,why:`it can't write ${r(e)}: run join.sh (or join.ps1) again to update it`};if(s)return{updates:!0,bin:e,restart:d()?"join":"service"};if(process.platform==="win32")return{updates:!1,why:"no service starts it again"};return{updates:!0,bin:e,restart:"relaunch"}}var d=()=>process.platform==="win32"&&process.env.SUPERFACTORY_ADMINISTRATOR==="1",h=()=>/^(\/\$bunfs\/|[A-Za-z]:[\\/]~BUN[\\/])/.test(import.meta.path);function o(s){try{return u(s,p.W_OK),!0}catch{return!1}}
3
+ export{Gt,Ze};
@@ -0,0 +1,4 @@
1
+ // @bun
2
+ import{In}from"./bin-4tdqjbbd.js";import{fs,W,F}from"./bin-nnq8kd9z.js";import{aa,_t,C,sr,Wt,wo,yh}from"./bin-za1by1n5.js";import{fn}from"./bin-8jdkg4ke.js";import{O}from"./bin-gg19acwr.js";import{randomBytes as T}from"crypto";import{readFile as A,rm as R}from"fs/promises";import{hostname as g,userInfo as I}from"os";async function Um(e,n,t,o=(r,a)=>console.log(`To connect this machine, approve the code ${r} on ${a} (or in Superfactory \u203A Machines)`),i="connect"){let r=t??await N(e),a=await C(e,r),s=(h,w)=>fetch(new URL(h,e),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(w),tls:a}),c=await fn(),f=process.env.SUPERFACTORY_MACHINE_NAME||g(),d=process.platform==="darwin"?"darwin":process.platform==="win32"?"windows":"linux",p={os:d,arch:process.arch==="arm64"?"arm64":"x64",user:(process.env.USER||process.env.USERNAME||I().username).slice(0,64)||void 0,via:i},u=await s("/agent/connect",{name:f,identityKey:c.publicKey,os:d,about:p});if(u.status!==201)throw Error(`${e} doesn't take new machines (${u.status}); is it a Superfactory server with an owner?`);let{code:y,deviceCode:l,verifyUrl:m,expiresInSeconds:E,intervalSeconds:k}=await u.json();o(y,m),await n(m);let v=Date.now()+E*1000,_=Number(process.env.SUPERFACTORY_CONNECT_POLL_MS)||k*1000;while(Date.now()<v){await Bun.sleep(_);let h=await s("/agent/connect/poll",{deviceCode:l,identityProof:c.prove("connect",l)});if(h.status===428)continue;if(h.status!==201)throw Error("the code was denied or expired; run superfactory again");let w=await h.json();return{serverUrl:e,nodeId:w.nodeId,key:w.key,fingerprint:r,name:w.name}}throw Error("the code expired before it was approved; run superfactory again")}async function S(e){let n=new URL(e);if(n.protocol!=="https:")return;let t=await Wt(e);if(t)return t;let o=await fetch(new URL("/healthz",n)).then(()=>{return},(i)=>i);if(!o)return;if(!L.has(o.code??""))throw o;return _t(await sr(n.hostname,Number(n.port||443)))}var L=new Set(["DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE"]);async function N(e){let n=await W();if(n?.serverUrl&&new URL(n.serverUrl).origin===new URL(e).origin)return n.certSpkiSha256??await Wt(e);return Zi(e)}async function Zi(e){let n=await Wt(e);if(n)return n;if(await S(e))throw Error(`${e}'s certificate is its own, not one a CA vouches for: connect with the command the server shows (it carries the fingerprint), or pass it with --fingerprint`);return}async function ww(e,{tokenFile:n,fingerprint:t,serverMachine:o=!1}={}){let i=await W();if(i?.serverUrl===e&&i.nodeKey){let d=!!t&&!!i.certSpkiSha256&&t!==i.certSpkiSha256,p=!d&&!!n&&await P(e,i.nodeKey,t??i.certSpkiSha256);if(!d&&!p){console.log(`Already joined to ${e} as ${i.name}.`);return}console.log(d?`${e} is another server now (its certificate isn't the one joined): joining it afresh.`:`${e} no longer has this machine: joining it afresh.`)}let r=process.env.SUPERFACTORY_MACHINE_NAME||g(),a=process.platform==="win32"?"join.ps1":"join.sh";if(o&&!n)throw Error("--server-machine joins with the server's token: --token-file");let s=n?await j(e,n,r,t,o):await Um(e,async()=>{},t,b,a),c=s.name||r,f=i??fs.parse({name:c,controlToken:T(24).toString("hex")});Object.assign(f,{name:c,serverUrl:s.serverUrl,nodeId:s.nodeId,nodeKey:s.key,certSpkiSha256:s.fingerprint}),await F(f),console.log(`Joined ${s.serverUrl} as ${c}.`)}async function P(e,n,t){let o=await fetch(new URL(aa,e),{headers:{"x-api-key":n},tls:await C(e,t),signal:AbortSignal.timeout(1e4)}).catch(()=>{return});return await o?.body?.cancel().catch(()=>{return}),o?.status===In}async function j(e,n,t,o,i=!1){let r=(await A(n,"utf8")).trim();if(O(r),!o&&await S(e))throw Error(`${e}'s certificate is its own: pass its fingerprint with --fingerprint`);let a=await wo(e,r,o,t,i);if(r.startsWith("sfe_"))await R(n,{force:!0});return{serverUrl:e,nodeId:a.nodeId,key:a.key,fingerprint:o}}function b(e,n){let t=[...e].join(" "),o="=".repeat(t.length+8);console.log(`To connect this machine, approve the code ${e} on ${n}`),console.log(["",o,"",` ${t}`,"",o,"","Approve it in Superfactory \u203A Machines, where this machine shows as wanting to join with this code,",`or on ${n}`,""].join(`
3
+ `))}async function yw(){let e=await W();if(!e?.serverUrl||!e.nodeKey){console.log("Not joined to any server.");return}let n=await yh(e.serverUrl,e.nodeKey,e.certSpkiSha256).catch((t)=>{console.error(`Couldn't leave ${e.serverUrl} (${t.message}): remove this machine in its Machines.`);return});if(await F({...e,nodeKey:void 0,nodeId:void 0}),n==="left")console.log(`Left ${e.serverUrl}: its key no longer works there.`);if(n==="unknown")console.log(`${e.serverUrl} no longer takes this machine's key: if Machines still lists it, remove it there.`)}
4
+ export{Um,Zi,ww,yw};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ function k(e,n){let r=s(process.env[e]);if(r!==void 0)return r;let u=Number(process.env.SUPERFACTORY_TIME_SCALE);return u>0&&n>0?Math.max(1,Math.round(n*u)):n}function s(e){let n=e?Number(e):Number.NaN;return Number.isFinite(n)&&n>=0?n:void 0}
3
+ export{k};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{Aa,Rg,Og,id,Cg}from"./bin-4tdqjbbd.js";import{m,fs,W,F}from"./bin-nnq8kd9z.js";import{Ec}from"./bin-674kd343.js";import{createDecipheriv as w,createPrivateKey as p,createPublicKey as f,diffieHellman as E,hkdfSync as S,randomBytes as v}from"crypto";import{chmod as b,readFile as K,rm as h,writeFile as k}from"fs/promises";import{hostname as A}from"os";async function mw(n,{again:o=!1}={}){if(!Aa.safeParse(n).success)throw Error(`${n} isn't an address and port to wait on, e.g. 0.0.0.0:51821`);let r=m(),e=await W()??N();if(e.nodeKey&&!e.reach&&!o)throw Error(`this machine is linked to ${e.serverUrl} already; \`superfactory-agent reach ${n} --again\` starts afresh`);if(o)Object.assign(e,{serverUrl:void 0,nodeId:void 0,nodeKey:void 0,certSpkiSha256:void 0}),await h(r.tunnel,{force:!0}),await h(r.tunnelKey,{force:!0});e.reach={listen:n},await F(e);let t=await Ec(r.tunnelKey),a={v:1,name:e.name,tunnelKey:t};return Rg+Buffer.from(JSON.stringify(a)).toString("base64url")}async function hw(n){let o=m(),r=await W();if(!r?.reach)throw Error("run `superfactory-agent reach <host:port>` first: it shows the code for the server");let e=(await K(o.tunnelKey,"utf8").catch(()=>"")).trim();if(!e)throw Error("this machine has no WireGuard key: run `superfactory-agent reach <host:port> --again`");let t=I(n,e);return r.serverUrl=t.serverUrl,r.nodeId=t.nodeId,r.nodeKey=t.nodeKey,r.certSpkiSha256=void 0,await k(o.tunnel,JSON.stringify(t.join),{mode:384}),await b(o.tunnel,384),await F(r),{serverUrl:t.serverUrl,nodeId:t.nodeId}}function I(n,o){let r=n.trim();if(!r.startsWith(id))throw Error(`that isn't the server's join code: it starts ${id}`);let e=Buffer.from(r.slice(id.length),"base64url");if(e.length<61)throw Error("that join code is cut short: copy all of it");let t=e.subarray(0,32),a=e.subarray(32,44),d=e.subarray(44,e.length-16),u=e.subarray(e.length-16),i=p({key:{kty:"OKP",crv:"X25519",d:Buffer.from(o,"base64").toString("base64url"),x:""},format:"jwk"}),l=Buffer.from(f(i).export({format:"jwk"}).x??"","base64url"),y=E({privateKey:i,publicKey:f({key:{kty:"OKP",crv:"X25519",x:t.toString("base64url")},format:"jwk"})}),c=Buffer.from(S("sha256",y,Buffer.concat([t,l]),Cg,32));try{let s=w("aes-256-gcm",c,a);s.setAuthTag(u);let g=Buffer.concat([s.update(d),s.final()]).toString("utf8");return Og.parse(JSON.parse(g))}catch{throw Error("that join code isn't for this machine's key (a code from before `--again`?), or was changed")}finally{c.fill(0)}}function N(){return fs.parse({name:process.env.SUPERFACTORY_MACHINE_NAME||A(),controlToken:v(24).toString("hex")})}
3
+ export{mw,hw};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ var lo=[{command:"git",apt:["git"]},{command:"make",apt:["build-essential"]},{command:"curl",apt:["curl","ca-certificates"]},{command:"unzip",apt:["unzip"]},{command:"xz",apt:["xz-utils"]},{command:"rg",apt:["ripgrep"]},{command:"jq",apt:["jq"]},{command:"python3",apt:["python3","python3-venv","python3-pip"]},{command:"Xvfb",apt:["xvfb","fonts-noto-core"]},{command:"fluxbox",apt:["fluxbox"]},{command:"x11vnc",apt:["x11vnc"]},{command:"ffmpeg",apt:["ffmpeg"]}],Il=[{command:"go",apt:["golang-go"],files:["go.mod"],needs:["go","golang"]},{command:"rustup",rustup:!0,files:["Cargo.toml"],needs:["rust","rustup","cargo"]},{command:"bun",npm:"bun",files:["bun.lock","bun.lockb","bunfig.toml"],needs:["bun"]},{command:"pnpm",npm:"pnpm",files:["pnpm-lock.yaml"],needs:["pnpm"]}],Ht="https://downloads.claude.ai/claude-code-releases",us="/usr/local/lib/superfactory/claude-code",un="/usr/local/bin/claude",Dm="2.73.0",zt="https://github.com/cli/cli/releases",pn="latest-v24.x",Ki=Il.filter((o)=>o.npm),Yi="superfactory-machine-tools.timer",ls="SUPERFACTORY_TOOLS_KEPT_BY",Ji="SUPERFACTORY_ROOT_ENTRY";
3
+ export{lo,Il,Ht,us,un,Dm,zt,pn,Ki,Yi,ls,Ji};