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.
- package/README.md +34 -2
- package/THIRD-PARTY-NOTICES.md +27604 -0
- package/bin/superfactory.js +57 -0
- package/cli/agent-rf446fr1.js +2 -0
- package/cli/agent-state-wv62c1td.js +2 -0
- package/cli/bin-0cvfmkhh.js +33 -0
- package/cli/bin-0t68hf99.js +3 -0
- package/cli/bin-19vpzq7g.js +4 -0
- package/cli/bin-37w316c6.js +3 -0
- package/cli/bin-3dsqxzbz.js +3 -0
- package/cli/bin-4j0jjd8g.js +3 -0
- package/cli/bin-4tdqjbbd.js +229 -0
- package/cli/bin-4zvje4sn.js +502 -0
- package/cli/bin-674kd343.js +7 -0
- package/cli/bin-8jdkg4ke.js +3 -0
- package/cli/bin-d99yte0j.js +5 -0
- package/cli/bin-fgvkq9cq.js +867 -0
- package/cli/bin-fkp3j5f3.js +3 -0
- package/cli/bin-fypan1f6.js +951 -0
- package/cli/bin-gg19acwr.js +4 -0
- package/cli/bin-ghp5x0x5.js +139 -0
- package/cli/bin-gk00mnmn.js +5 -0
- package/cli/bin-gne2w036.js +29 -0
- package/cli/bin-grxzwpe8.js +3 -0
- package/cli/bin-h57gajkz.js +8 -0
- package/cli/bin-mbpvzx2b.js +8 -0
- package/cli/bin-nnq8kd9z.js +4 -0
- package/cli/bin-ven2efjq.js +3 -0
- package/cli/bin-yqb1d1mw.js +22 -0
- package/cli/bin-z5b3tt05.js +20 -0
- package/cli/bin-za1by1n5.js +3 -0
- package/cli/bin-zpfe0pxz.js +1 -0
- package/cli/bin.js +3 -0
- package/cli/child-agent-qgeqvs03.js +4 -0
- package/cli/connect-chn8pxyf.js +2 -0
- package/cli/container-j6zr9gww.js +4 -0
- package/cli/dev-gsaehf19.js +7 -0
- package/cli/health-nqzge5kh.js +2 -0
- package/cli/home-lock-5seng0k3.js +2 -0
- package/cli/host-7dfjhf0z.js +1507 -0
- package/cli/index-1wseh1tm.js +2 -0
- package/cli/index-axfe8zef.js +2 -0
- package/cli/index-s9pw90xe.js +2 -0
- package/cli/install-17r8t45e.js +2 -0
- package/cli/join-551zg7yr.js +31 -0
- package/cli/local-server-2smsafvg.js +2 -0
- package/cli/machine-zfjmpw7h.js +2 -0
- package/cli/main-0mxhd968.js +33 -0
- package/cli/main-53qmhxmd.js +303 -0
- package/cli/move-to-xrr2b135.js +2 -0
- package/cli/npm-package.json +1 -0
- package/cli/pair-phone-070c9ztt.js +5 -0
- package/cli/prompt-psc4drtd.js +2 -0
- package/cli/reached-vwzx2cdg.js +2 -0
- package/cli/sessions-bm4mk37y.js +3 -0
- package/cli/sf-cli-s42gkp0b.js +2 -0
- package/cli/sf-db-r8f1a20b.js +23 -0
- package/cli/sf-deploy-wqaa4fdm.js +21 -0
- package/cli/sf-pr-rg3q3tn6.js +13 -0
- package/cli/sf-test-pff158qc.js +10 -0
- package/cli/tart-isolation-wr3xwfmw.js +3 -0
- package/cli/tray-4rr0y1dv.png +0 -0
- package/cli/tray-mac-offline-89dva0gs.png +0 -0
- package/cli/tray-mac-paused-hq3a1cxv.png +0 -0
- package/cli/tray-mac-tvtavf0g.png +0 -0
- package/cli/tray-offline-xj6b5ta4.png +0 -0
- package/cli/tray-paused-6pzdv5ze.png +0 -0
- package/cli/vm-keeper-p0ggcw3z.js +3 -0
- package/package.json +50 -4
- package/plugins/sf-video-review/.claude-plugin/plugin.json +17 -0
- package/plugins/sf-video-review/.mcp.json +9 -0
- package/plugins/sf-video-review/dist/video-review.mjs +135 -0
- package/plugins/sf-video-review/skills/video-review/SKILL.md +65 -0
- package/plugins/sf-video-studio/.claude-plugin/plugin.json +17 -0
- package/plugins/sf-video-studio/.mcp.json +19 -0
- package/plugins/sf-video-studio/dist/demo-video.mjs +139 -0
- package/plugins/sf-video-studio/dist/narration-voice.mjs +134 -0
- package/plugins/sf-video-studio/dist/video-generation.mjs +131 -0
- package/plugins/sf-video-studio/fonts/DejaVuSansMono-Bold.ttf +0 -0
- package/plugins/sf-video-studio/fonts/DejaVuSansMono.ttf +0 -0
- package/plugins/sf-video-studio/fonts/LICENSE-DejaVu +187 -0
- package/plugins/sf-video-studio/hooks/hooks.json +17 -0
- package/plugins/sf-video-studio/hooks/no-robot-voice.sh +77 -0
- package/plugins/sf-video-studio/kokoro/package-lock.json +1137 -0
- package/plugins/sf-video-studio/kokoro/package.json +11 -0
- package/plugins/sf-video-studio/skills/demo-video/SKILL.md +101 -0
- package/plugins/sf-video-studio/skills/narration-voice/SKILL.md +49 -0
- package/plugins/sf-video-studio/skills/video-generation/SKILL.md +30 -0
- package/server/dist/account.js +3 -0
- package/server/dist/backup-process.js +2 -0
- package/server/dist/backup.js +3 -0
- package/server/dist/chunk-0tbq288f.js +3055 -0
- package/server/dist/chunk-18n7tr66.js +3 -0
- package/server/dist/chunk-1kgfrgmv.js +3 -0
- package/server/dist/chunk-1rnmxaav.js +209 -0
- package/server/dist/chunk-26zhqbyn.js +25 -0
- package/server/dist/chunk-34mn2zj2.js +2 -0
- package/server/dist/chunk-3psgsw9t.js +2 -0
- package/server/dist/chunk-8zbwppny.js +391 -0
- package/server/dist/chunk-9pn7q001.js +3 -0
- package/server/dist/chunk-9y7a9gkf.js +2 -0
- package/server/dist/chunk-bhm6jzch.js +8 -0
- package/server/dist/chunk-dbzjsqvb.js +17 -0
- package/server/dist/chunk-fxn504n0.js +2 -0
- package/server/dist/chunk-g6pwaap3.js +2 -0
- package/server/dist/chunk-gefgv8rg.js +7 -0
- package/server/dist/chunk-jg8b833v.js +2 -0
- package/server/dist/chunk-jy148bhn.js +3 -0
- package/server/dist/chunk-ky4nz39j.js +7 -0
- package/server/dist/chunk-mbd1y9qk.js +2 -0
- package/server/dist/chunk-neyhk32g.js +13 -0
- package/server/dist/chunk-nrz953bx.js +2 -0
- package/server/dist/chunk-padvv31s.js +2 -0
- package/server/dist/chunk-q1s2ez77.js +3 -0
- package/server/dist/chunk-q403h2bh.js +10 -0
- package/server/dist/chunk-t64r6enn.js +4 -0
- package/server/dist/chunk-vccappg7.js +59 -0
- package/server/dist/chunk-vj60fbhw.js +2 -0
- package/server/dist/chunk-xj26rwda.js +3 -0
- package/server/dist/chunk-xyw98jst.js +5 -0
- package/server/dist/main.js +43 -0
- package/server/dist/move.js +3 -0
- package/server/drizzle/pg/0000_baseline.sql +632 -0
- package/server/drizzle/pg/0001_transcripts_packed.sql +2 -0
- package/server/drizzle/pg/0002_vm_server_origin.sql +1 -0
- package/server/drizzle/pg/0003_reached_machines.sql +1 -0
- package/server/drizzle/pg/0004_link_records.sql +2 -0
- package/server/drizzle/pg/0005_task_columns.sql +7 -0
- package/server/drizzle/pg/0006_task_bundle.sql +3 -0
- package/server/drizzle/pg/0007_server_log.sql +9 -0
- package/server/drizzle/pg/0008_notification_pauses.sql +6 -0
- package/server/drizzle/pg/0009_vm_replaces.sql +1 -0
- package/server/drizzle/pg/0010_question_told_once.sql +10 -0
- package/server/drizzle/pg/0011_node_next_key.sql +3 -0
- package/server/drizzle/pg/0012_task_work.sql +8 -0
- package/server/drizzle/pg/0013_task_secret_grants.sql +9 -0
- package/server/drizzle/pg/0014_node_paused.sql +2 -0
- package/server/drizzle/pg/0015_ssh_machines.sql +19 -0
- package/server/drizzle/pg/0016_node_wake.sql +1 -0
- package/server/drizzle/pg/0017_node_uninstall_key.sql +1 -0
- package/server/drizzle/pg/0018_release_starts.sql +6 -0
- package/server/drizzle/pg/0019_session_memory.sql +7 -0
- package/server/drizzle/pg/meta/_journal.json +146 -0
- package/server/drizzle/sqlite/0000_pre_drizzle_schema.sql +351 -0
- package/server/drizzle/sqlite/0001_cluster.sql +36 -0
- package/server/drizzle/sqlite/0002_task_records.sql +22 -0
- package/server/drizzle/sqlite/0003_indexes.sql +12 -0
- package/server/drizzle/sqlite/0004_project_machines.sql +19 -0
- package/server/drizzle/sqlite/0005_session_events.sql +7 -0
- package/server/drizzle/sqlite/0006_task_platforms.sql +8 -0
- package/server/drizzle/sqlite/0007_session_event_tags.sql +7 -0
- package/server/drizzle/sqlite/0008_sprints.sql +7 -0
- package/server/drizzle/sqlite/0009_project_vms.sql +19 -0
- package/server/drizzle/sqlite/0010_server_repairs.sql +4 -0
- package/server/drizzle/sqlite/0011_drop_todos.sql +2 -0
- package/server/drizzle/sqlite/0012_hypervisors.sql +14 -0
- package/server/drizzle/sqlite/0013_manager_leads.sql +2 -0
- package/server/drizzle/sqlite/0014_session_text.sql +35 -0
- package/server/drizzle/sqlite/0015_vm_resize_machine_instructions_access.sql +22 -0
- package/server/drizzle/sqlite/0016_tunnel.sql +23 -0
- package/server/drizzle/sqlite/0017_session_secret_grants.sql +7 -0
- package/server/drizzle/sqlite/0018_https.sql +18 -0
- package/server/drizzle/sqlite/0019_secret_grant_runs.sql +1 -0
- package/server/drizzle/sqlite/0020_session_transcripts.sql +16 -0
- package/server/drizzle/sqlite/0021_claude_signed_out.sql +2 -0
- package/server/drizzle/sqlite/0022_machine_disabled.sql +1 -0
- package/server/drizzle/sqlite/0023_machine_access_granted_by.sql +1 -0
- package/server/drizzle/sqlite/0024_machine_vms.sql +27 -0
- package/server/drizzle/sqlite/0025_machine_tunnel_fallback.sql +1 -0
- package/server/drizzle/sqlite/0026_tunnel_peer_linked.sql +3 -0
- package/server/drizzle/sqlite/0027_tunnel_upgrade_grace.sql +2 -0
- package/server/drizzle/sqlite/0028_dialed_machines.sql +2 -0
- package/server/drizzle/sqlite/0029_node_link.sql +3 -0
- package/server/drizzle/sqlite/0030_sprint_calendar.sql +1 -0
- package/server/drizzle/sqlite/0031_transcripts_packed.sql +2 -0
- package/server/drizzle/sqlite/0032_vm_server_origin.sql +1 -0
- package/server/drizzle/sqlite/meta/_journal.json +237 -0
- package/server/src/account.ts +2 -0
- package/server/src/backup.ts +2 -0
- package/server/src/features/backups/backup-process.ts +2 -0
- package/server/src/main.ts +2 -0
- package/server/src/move.ts +2 -0
- package/ui/dist/_expo/static/css/global-d378e211074d97e633bc15418ccf57d4.css +2 -0
- package/ui/dist/_expo/static/css/xterm-8a7c4e0dca731c11dbe6bdff98fb667c.css +1 -0
- package/ui/dist/_expo/static/js/web/Network-f300a5960620f5029c91c06cae29dba5.js +3 -0
- package/ui/dist/_expo/static/js/web/[...rest]-9e454d985f211f5c983f42bec15b6ad9.js +1 -0
- package/ui/dist/_expo/static/js/web/[managerId]-2580b90e8d862ad66197eecb1dc04a12.js +1 -0
- package/ui/dist/_expo/static/js/web/[managerId]-39308153b42eed025c0abb9242ae6c71.js +1 -0
- package/ui/dist/_expo/static/js/web/[managerId]-8b7a94ec818e50a371b6b2750b73df6a.js +1 -0
- package/ui/dist/_expo/static/js/web/[managerId]-ac3a14c7607e4576d7e6c39c1014bcaf.js +1 -0
- package/ui/dist/_expo/static/js/web/[managerId]-e8549b2313a119437c373e30207518c0.js +1 -0
- package/ui/dist/_expo/static/js/web/[ref]-9b46f1ec4348f980e9838b68d47c34bf.js +2 -0
- package/ui/dist/_expo/static/js/web/[sessionId]-09e376674fb8b3edc4ae8aa9b3a189d7.js +1 -0
- package/ui/dist/_expo/static/js/web/[sessionId]-0e5fdba25c9f78220cea4cb66227743d.js +1 -0
- package/ui/dist/_expo/static/js/web/[sessionId]-104af3c3885009e6a8d204b6fd6e2c3a.js +1 -0
- package/ui/dist/_expo/static/js/web/[sessionId]-863a34ca3835b469134ddbc4ebc6fafc.js +1 -0
- package/ui/dist/_expo/static/js/web/[taskId]-1218e1dd3ecf175ffb7701fc886d62c9.js +1 -0
- package/ui/dist/_expo/static/js/web/[taskId]-31a48c7017dbd096f8ece9dc102a9762.js +1 -0
- package/ui/dist/_expo/static/js/web/[taskId]-a56cf85bcfd14f2d6b5d4180ea17e8d7.js +1 -0
- package/ui/dist/_expo/static/js/web/[taskId]-f2a157b3cb676b3c5d04c8eadfe90cdd.js +1 -0
- package/ui/dist/_expo/static/js/web/__common-1ad58e53e08528a67b99f53a1690b669.js +2078 -0
- package/ui/dist/_expo/static/js/web/__expo-metro-runtime-1f8f5d3ca6b7f58204d51e14506d73fb.js +5 -0
- package/ui/dist/_expo/static/js/web/_layout-057457e97e0af20433ed41b39cb5e809.js +1 -0
- package/ui/dist/_expo/static/js/web/_layout-2a7d73d5356823e1f7d2dab23e440d09.js +7 -0
- package/ui/dist/_expo/static/js/web/_layout-42e6a6b7855655d456015ce41aefdd39.js +1 -0
- package/ui/dist/_expo/static/js/web/_layout-a5e5a5b2fb3bfbfcc2914131976679e7.js +1 -0
- package/ui/dist/_expo/static/js/web/_layout-b2cbba92506f66815a5d744fd7cd5d8c.js +1 -0
- package/ui/dist/_expo/static/js/web/_layout-b4d13dc52bbcb65b18b4e52813d53883.js +198 -0
- package/ui/dist/_expo/static/js/web/_layout-fb0f75b354800de2e1582dc963f5c148.js +1 -0
- package/ui/dist/_expo/static/js/web/index-41299a961569cc8e5410ec53ba2b87c4.js +4 -0
- package/ui/dist/_expo/static/js/web/index-6c2bb0d3b6d00c5c007a663e9f4ce108.js +1 -0
- package/ui/dist/_expo/static/js/web/index-70484f7d2769d9ae01dac1fdb22aef1d.js +14 -0
- package/ui/dist/_expo/static/js/web/index-7d764cb7cefe0a217728c24d44990057.js +14 -0
- package/ui/dist/_expo/static/js/web/index-a5eb3d0c6aa4c483674beb5de428634c.js +12 -0
- package/ui/dist/_expo/static/js/web/index-b1c2543003cba86eeb3abfa4d21fd8da.js +14 -0
- package/ui/dist/_expo/static/js/web/index-d200aded5448966e5e05d9ccb77b56a4.js +5 -0
- package/ui/dist/_expo/static/js/web/index-ea43f51ceec4a981c942fc6dce9cedc4.js +2378 -0
- package/ui/dist/_expo/static/js/web/index-efa68d817a7febbf8c0163303bf4cd49.js +29 -0
- package/ui/dist/_expo/static/js/web/licenses-30f8c0555f7f4d434a68ee4706fa433d.js +1 -0
- package/ui/dist/_expo/static/js/web/pair-3f6f72208023894f43f4f07db5116cca.js +1 -0
- package/ui/dist/_expo/static/js/web/rich-markdown-editor-dea9c0f7c0306da4146e54ee44cce173.js +228 -0
- package/ui/dist/_expo/static/js/web/sign-in-67d2a0c00232e0e6f40efade1a83dc4b.js +4 -0
- package/ui/dist/_expo/static/js/web/terminal-view-32db8e6f8a21dd073f6a310862d36db8.js +90 -0
- package/ui/dist/apple-touch-icon.png +0 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/ui/dist/favicon.ico +0 -0
- package/ui/dist/favicon.svg +10 -0
- package/ui/dist/icon-192.png +0 -0
- package/ui/dist/icon-512.png +0 -0
- package/ui/dist/index.html +45 -0
- package/ui/dist/legal/privacy-policy.md +174 -0
- package/ui/dist/legal/terms-of-use.md +76 -0
- package/ui/dist/load-again.js +42 -0
- package/ui/dist/manifest.webmanifest +12 -0
- package/ui/dist/metadata.json +1 -0
- package/ui/dist/sounds/bell.wav +0 -0
- package/ui/dist/sounds/chime.wav +0 -0
- package/ui/dist/sounds/knock.wav +0 -0
- package/ui/dist/sounds/pop.wav +0 -0
- package/ui/dist/sw.js +121 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: demo-video
|
|
3
|
+
description: Build a narrated demo video in sections (one chapter each) from screen recordings, or for work with nothing on screen an explainer from title cards, a diff, a test run or a diagram, plus narration (narration-voice) and optional generated clips (video-generation). Load it when a task wants a video (load it at the start: the "before" is filmed while you reproduce), when you make or update a demo video, put a voice-over on a recording, or export the final mp4. When the work changes, it re-records and re-narrates only the sections that changed.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Demo video: sections, chapters, and only what changed
|
|
7
|
+
|
|
8
|
+
A demo is a list of **sections**, each one chapter of the video: a short **recording** of the real app (the proof), or a still for an explainer, the **line** to say over it, and a **title**. `build_demo_video` (the `demo-video` server) narrates, renders and joins them, and writes the titles into the mp4 as chapters, which Superfactory's player shows like YouTube's (marks on the scrubber, a list under the video).
|
|
9
|
+
|
|
10
|
+
Every task that wants a video gets one, made by you, never a question to the user: a change with nothing on screen gets an explainer (below). When a tool is missing, work around it and tell your project's lead (SendMessage `LEAD <project>`), never the user:
|
|
11
|
+
- **No ffmpeg** (`ffmpeg -version` fails): on Windows install it yourself (`winget install -e --id Gyan.FFmpeg`), on macOS too (`brew install ffmpeg`). On Linux, add `ffmpeg` to superfactory.yaml's setup (the system packages the agent installs) and ask your lead to run it: a task's agent there may have no sudo. `build_demo_video` finds a fresh install without a restart.
|
|
12
|
+
- **No voice** (no Gemini key and Kokoro can't install): `build_demo_video` still builds the video and shows each line as a caption; attach it as it is.
|
|
13
|
+
- **No demo-video tools** in this session (`build_demo_video` missing): run the same build from the shell, with the same voices. This skill's folder is `<plugin>/skills/demo-video`, so with `<plugin>` its plugin folder: `BUN_BE_BUN=1 "${SF_PLUGIN_RUNTIME:-node}" <plugin>/dist/demo-video.mjs build .demo/T-012/video.json` (its result as JSON, its progress on stderr; one line alone: `<plugin>/dist/narration-voice.mjs say --out voice.wav "The line."`). Tell your lead the tools were missing.
|
|
14
|
+
- **Never a robotic voice**: no espeak, espeak-ng, festival, flite, pico2wave, Windows' SAPI or macOS's `say`. They sound like a robot (SF-341) and a hook refuses them. When neither Gemini nor Kokoro can speak, the lines are captions.
|
|
15
|
+
|
|
16
|
+
## 0. Film as you work, not at the end
|
|
17
|
+
Never check out or build the old code again to film it. One build of the app, one render of the video:
|
|
18
|
+
- **Before**: while you reproduce the problem, on the preview or simulator you already run, record the few seconds that show it (`rec/before.mp4`). A new feature: a short clip of the screen as it is, or no "before" at all.
|
|
19
|
+
- **After**: once it works, record the same flow on the same running app (hot reload or an incremental build; no fresh build).
|
|
20
|
+
- Only the changed flow, a few seconds each. Clips a teammate (a tester) already recorded in the worktree count: use them.
|
|
21
|
+
- Then plan, build once, attach.
|
|
22
|
+
|
|
23
|
+
## 1. Plan the sections
|
|
24
|
+
One section per thing the viewer should see, 3 to 15 seconds each, with a title that says it in a few words. Keep the plan in `video.json` in a folder of its own outside git, e.g. `.demo/T-012/` (add `.demo/` to `.git/info/exclude`):
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"out": "T-012.mp4",
|
|
28
|
+
"voice": "Kore",
|
|
29
|
+
"style": "in a calm, friendly product-demo tone",
|
|
30
|
+
"sections": [
|
|
31
|
+
{ "id": "empty", "title": "The empty inbox", "recording": "rec/empty.mp4", "say": "Before, the inbox had nothing to show." },
|
|
32
|
+
{ "id": "arrives", "title": "A task arrives", "recording": "rec/arrives.mp4", "say": "Now a new task appears at the top." },
|
|
33
|
+
{ "id": "archive", "title": "Swipe to archive", "recording": "rec/archive.mp4", "from": 1.5, "to": 9, "say": "Swipe it away to archive." }
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
- `id` is stable: it names the section's cached files. Never rename one to change its title; change `title`.
|
|
38
|
+
- `recording`: a clip of just that section (`from`/`to` trim it). `say` is spoken with Gemini Live when a Gemini key is set, else by Kokoro on this machine (the result's `voice` line says which); or give `narration`, a ready audio file. `keepSound: true` keeps the recording's own sound under the voice.
|
|
39
|
+
- Instead of `recording`, a section can show a still, held for `seconds` (default 4) or its line when longer: `image` (a .png or .jpg: a screenshot, a diagram), `card` (text drawn as a title card: the first line large, the rest under it) or `terminal` (a text file of a command's output or a `git diff`, drawn as text with failures and removed lines red, passes and added lines green; its last lines when long). One of the four per section.
|
|
40
|
+
- Optional: `size` (default `1920x1080`). Each clip is scaled to fit and padded, at 30 fps.
|
|
41
|
+
|
|
42
|
+
## 2. Record each section on its own
|
|
43
|
+
Record one clip per section (a Playwright test per section, or one test that saves a video per step), named after the section's `id`. Separate clips are what make a later update cheap: only the changed ones are recorded again.
|
|
44
|
+
|
|
45
|
+
## Nothing on screen: an explainer
|
|
46
|
+
Backend, docs, refactors, config, CI: no app to build or film. Make a short explainer instead, 15 to 40 seconds, from stills the tool draws itself:
|
|
47
|
+
1. **The problem**: a `card` ("Dunning emails kept going after payment" and a line on why).
|
|
48
|
+
2. **Before**: a `terminal` of the failing test or the bad output, captured while you reproduced it: `bun test e2e/dunning.e2e.test.ts 2>&1 | tail -30 > .demo/T-012/before.txt`.
|
|
49
|
+
3. **What changed**: a `card` in a few words, or a `terminal` of the key part of `git diff` (`git diff main -- src/billing/ > .demo/T-012/diff.txt`, trimmed to what matters). A diagram as an `image` when the shape of things changed.
|
|
50
|
+
4. **After**: a `terminal` of the same test passing.
|
|
51
|
+
```json
|
|
52
|
+
{ "out": "T-012.mp4", "sections": [
|
|
53
|
+
{ "id": "problem", "title": "The problem", "card": "Dunning emails kept going after payment\nThe job read the invoice before the payment landed.", "say": "Paid invoices still got reminder emails." },
|
|
54
|
+
{ "id": "before", "title": "Before: the test fails", "terminal": "before.txt", "say": "The new test shows it: a reminder after payment." },
|
|
55
|
+
{ "id": "after", "title": "After: it passes", "terminal": "after.txt", "say": "Now the job checks the payment first, and the test passes." }
|
|
56
|
+
] }
|
|
57
|
+
```
|
|
58
|
+
No ffmpeg text filters, browser or app are needed; it builds in seconds. Without a Gemini key the lines are spoken by Kokoro on this machine; with no voice at all they show as captions.
|
|
59
|
+
|
|
60
|
+
## 3. Build
|
|
61
|
+
Call `build_demo_video` with the plan's path. It returns the chapters, the length, and which sections it `rendered`, `reused` and `narrated`. When a line is longer than its clip, the clip's last frame holds until the line ends. A long build doesn't hold the call: after `waitSeconds` (default 300) it returns `status: "running"` with a `runId` and its progress, and goes on building; call `demo_video_status` with the `runId` until it returns the result (never start the build again: one runs at a time, and a call for the same plan joins it). Check it (step 6), then attach the mp4 to the task (name it after the task, e.g. `T-012.mp4`, so it becomes the task's video; a same-named `.png` is its poster).
|
|
62
|
+
|
|
63
|
+
## 4. When the work changes: update only what changed
|
|
64
|
+
1. From the diff since the last build, list the sections whose screens changed, and the lines or titles that no longer describe them.
|
|
65
|
+
2. Record those sections again, over their old clips. Change only the lines (`say`) and titles that are now wrong; add or remove sections as the feature did.
|
|
66
|
+
3. Build again. Sections whose recording, line or settings are unchanged are reused as they are (cached in `.build/` next to the plan, by content); changed lines are spoken again, nothing else is. A new title alone renders nothing: the chapters are rewritten on every build.
|
|
67
|
+
4. Attach the new mp4 under the same name: it replaces the old video, chapters and all.
|
|
68
|
+
|
|
69
|
+
Never re-record or re-narrate everything to fix one section, and never delete `.build/`: it is what lets the next update reuse the rest.
|
|
70
|
+
|
|
71
|
+
Do this after every change to the work once the video is attached (a Request changes, a comment, a reviewer's finding, a fix of your own), before you write the summary and go back to review. Superfactory's review gate refuses `in_review` while the task's video is older than its newest commit or uncommitted edit. When the change shows nothing on screen (tests, docs, a refactor), the video still holds: attach the same file again with `task_attach_media`, which marks it current, and say so in your summary.
|
|
72
|
+
|
|
73
|
+
## 5. Add an intro or outro clip
|
|
74
|
+
A generated clip (`generate_video`) is just another section: put it first or last with its own title, e.g. `{ "id": "intro", "title": "Intro", "recording": "intro.mp4", "keepSound": true }`. Sizes and frame rates are normalised for you.
|
|
75
|
+
|
|
76
|
+
## An epic: one video of its tasks
|
|
77
|
+
An epic's video is made of its tasks' own videos, not recorded again: one section per task, the mp4 attached to it as the `recording` (an absolute path: call Superfactory's `task_media` from the epic first, which lists each of its tasks' media at its path in the project's Superfactory folder, `<folder>/media/T-013/T-013.mp4`, fetching the ones another machine made, even one offline now) with `keepSound: true` and no `say` (its narration plays as it is), titled with the task's id first (`"T-013 Sign-up form"`: the epic's page takes you from that chapter to the task). A short intro `card` before them (what the epic delivers) and an outro after (what's left), each with its line, same `voice` as the tasks. Name it after the epic (`T-012.mp4`).
|
|
78
|
+
```json
|
|
79
|
+
{ "out": "T-012.mp4", "voice": "Kore", "sections": [
|
|
80
|
+
{ "id": "intro", "title": "Onboarding", "card": "Onboarding\nThree screens a new user goes through.", "say": "This epic builds the onboarding, in three parts." },
|
|
81
|
+
{ "id": "T-013", "title": "T-013 Sign-up form", "recording": "/home/me/app/.superfactory/media/T-013/T-013.mp4", "keepSound": true },
|
|
82
|
+
{ "id": "T-014", "title": "T-014 First task tip", "recording": "/home/me/app/.superfactory/media/T-014/T-014.mp4", "keepSound": true },
|
|
83
|
+
{ "id": "outro", "title": "What's left", "card": "Next\nInvites come in a later epic.", "say": "Invites come next." }
|
|
84
|
+
] }
|
|
85
|
+
```
|
|
86
|
+
A task's video attached again later: build the epic's again; only that section renders.
|
|
87
|
+
|
|
88
|
+
## 6. Check it before you attach
|
|
89
|
+
- `ffprobe -v error -show_chapters final.mp4` lists the chapters.
|
|
90
|
+
- With a Gemini key, Gemini watches it once: `analyse_video` (sf-video-review) on the mp4, `context` = the lines in order, and `observe`:
|
|
91
|
+
- "Does each spoken line match what is on screen while it is said?"
|
|
92
|
+
- "Is there dead air: no voice and nothing changing on screen?"
|
|
93
|
+
- "Is any frame unreadable: text too small, blurred, cut off or covered?"
|
|
94
|
+
- "Does the narration claim anything the video does not show?"
|
|
95
|
+
|
|
96
|
+
Fix what it flags (a line, a trim, a section recorded again), build once more and attach. Don't analyse a second time.
|
|
97
|
+
- No key (the build's `voice` line says "no Gemini key", or `analyse_video` says "No Gemini API key"): skip it.
|
|
98
|
+
- The `voice` line says Kokoro (no Gemini key, or Gemini failed): the video has the local voice, not Gemini's. Say so in one line of your summary, with the reason the line gives.
|
|
99
|
+
|
|
100
|
+
## By hand, without the tool
|
|
101
|
+
The voice still comes from the plugin (the commands above), never from another text-to-speech program. For a one-off voice-over on a single recording: `ffmpeg -y -i rec.mp4 -i voice.m4a -map 0:v -map 1:a -af apad -c:v copy -c:a aac -shortest demo.mp4`. To add chapters to any mp4, write an FFMETADATA file (`;FFMETADATA1`, then per chapter `[CHAPTER]`, `TIMEBASE=1/1000`, `START=`, `END=`, `title=`) and run `ffmpeg -i in.mp4 -i chapters.txt -map 0 -map_chapters 1 -c copy out.mp4`.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: narration-voice
|
|
3
|
+
description: Generate the spoken narration for a video from a script (generate_narration, generate_narration_segments, list_voices), with Gemini Live when a Gemini key is set and Kokoro on this machine otherwise. Load it when a demo, tutorial, explainer or before/after video needs a voice-over, when you need one audio clip per scene to line up with a screen recording, or when choosing a voice or delivery style.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Narration voice
|
|
7
|
+
|
|
8
|
+
Turns your script into speech. It makes audio only; put it on a video with ffmpeg (see the `demo-video` skill).
|
|
9
|
+
|
|
10
|
+
## Which voice speaks
|
|
11
|
+
|
|
12
|
+
- **Gemini key set** (`claude plugin configure sf-video-studio`, or `GEMINI_API_KEY`, which Superfactory passes from its Gemini secret): a Gemini Live native-audio model speaks.
|
|
13
|
+
- **No key, or Gemini fails:** Kokoro speaks, on this machine. Its first use installs it and downloads its model (about 750 MB, once, into `~/.cache/superfactory/kokoro`, shared by every project); after that it works offline.
|
|
14
|
+
- Every result has its `engine` and a one-line `note` saying which engine spoke and why. When it is Kokoro, say so in one line of your summary; never stall on a missing key.
|
|
15
|
+
- **No narration tools** in this session: the same voices run from the shell, `BUN_BE_BUN=1 "${SF_PLUGIN_RUNTIME:-node}" <plugin>/dist/narration-voice.mjs say --out voice.wav --voice Kore [--style "…"] "The line."` (`<plugin>`: this skill's folder without `/skills/narration-voice`), which prints the same result as JSON.
|
|
16
|
+
- **Never a robotic voice**: no espeak, espeak-ng, festival, flite, pico2wave, Windows' SAPI or macOS's `say` (SF-341); a hook refuses them. No voice at all: show the lines as captions.
|
|
17
|
+
|
|
18
|
+
## Write the script first
|
|
19
|
+
|
|
20
|
+
- Short, plain sentences, the way a colleague would explain it out loud. One idea per sentence.
|
|
21
|
+
- Say what the viewer sees, in the order they see it: "Before, the inbox was empty. Now the new task shows at the top."
|
|
22
|
+
- About 2.5 words per second: a 6-second scene fits about 15 words. Check `durationSeconds` in the result and trim the text if a line runs long.
|
|
23
|
+
- Spell out what should be read differently than written: "T-12" → "T twelve", "v2.3" → "version two point three".
|
|
24
|
+
|
|
25
|
+
## One file: `generate_narration`
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{"text": "Here is the new inbox. Swipe a task to archive it.", "out": "media/T-012/voice.m4a",
|
|
29
|
+
"voice": "Achird", "style": "in a calm, friendly product-demo tone"}
|
|
30
|
+
```
|
|
31
|
+
- `out` ends in `.wav`, `.m4a` (good for mixing into mp4) or `.mp3`; the folder is created.
|
|
32
|
+
- `style` is a plain-words direction for Gemini: pace, mood, emphasis ("upbeat, a little faster"). Kokoro ignores it.
|
|
33
|
+
- `speakers` (two at most) makes a dialogue: name each speaker and prefix the lines with the names (`Ana: …`).
|
|
34
|
+
|
|
35
|
+
## One file per scene: `generate_narration_segments`
|
|
36
|
+
|
|
37
|
+
Use this for a screen recording: one line per step, so each can start at its own moment.
|
|
38
|
+
```json
|
|
39
|
+
{"segments": [{"id": "01-before", "text": "Before, saving showed no feedback."},
|
|
40
|
+
{"id": "02-after", "text": "Now a toast confirms the save."}],
|
|
41
|
+
"outDir": "media/T-012/voice", "format": "wav", "voice": "Kore"}
|
|
42
|
+
```
|
|
43
|
+
It returns each file with its `durationSeconds` and the `totalSeconds`; use those to time the scenes. All lines of one call get the same engine, so a video never mixes two voices.
|
|
44
|
+
|
|
45
|
+
## Voices
|
|
46
|
+
|
|
47
|
+
`list_voices` gives the 30 Gemini voices with their character, each with the Kokoro voice that stands in for it (`local`), and says which engine would speak now. Good defaults: **Kore** (firm, clear; Kokoro `af_heart`), **Achird** (friendly), **Puck** (upbeat), **Charon** (informative), **Sulafat** (warm). A Kokoro id (`af_heart`, `am_michael`, `bf_emma`…) works too. Keep one voice per video.
|
|
48
|
+
|
|
49
|
+
ffmpeg is needed for .m4a/.mp3. Settings: `SF_VOICE_MODEL` (the Live model, default `gemini-3.1-flash-live-preview`), `SF_VOICE_ENGINE=kokoro` (always local), `SF_KOKORO_DTYPE` (`fp32` default; `q8` 230 MB smaller, about three times slower on an x64 CPU).
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: video-generation
|
|
3
|
+
description: Generate short video clips from a text prompt or a starting image with Veo or Gemini Omni (generate_video, video_status, list_video_models). Load it when a video needs a generated intro, outro, transition or illustrative shot, when animating a screenshot, or when choosing a video model. Not for showing real app behaviour: record the app for that.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Video generation
|
|
7
|
+
|
|
8
|
+
Makes a clip of about 4-8 seconds from a prompt (and optionally a first frame). Generated footage is illustration: never use it to show that a feature works; a demo of real behaviour must be a real recording.
|
|
9
|
+
|
|
10
|
+
## `generate_video`
|
|
11
|
+
|
|
12
|
+
```json
|
|
13
|
+
{"prompt": "Slow push-in on a phone on a wooden desk; the screen shows a clean kanban board; soft morning light; no text overlays",
|
|
14
|
+
"out": "media/T-012/intro.mp4", "aspectRatio": "16:9", "durationSeconds": 8, "negativePrompt": "people, logos, watermark"}
|
|
15
|
+
```
|
|
16
|
+
- It waits up to `waitSeconds` (default 360) and saves the mp4 to `out`. Generation usually takes 1-6 minutes.
|
|
17
|
+
- If it is not done in time you get `{"status": "running", "operation": …}`: carry on with other work and call `video_status` with that `operation` and the same `out` (add `waitSeconds` to wait there).
|
|
18
|
+
- `status: "failed"` with "Blocked by safety filters" means the prompt or image was rejected: rephrase (avoid real people, brands, violence).
|
|
19
|
+
|
|
20
|
+
### Prompts that work
|
|
21
|
+
Describe one shot: subject, action, camera move, framing, style, lighting, mood, and sound if you want audio ("quiet keyboard clicks"). Say what must not appear in `negativePrompt`. Keep on-screen text out: models render it poorly.
|
|
22
|
+
|
|
23
|
+
### Start from an image
|
|
24
|
+
`"image": "media/T-012/screenshot.png"` makes that image the first frame, e.g. to animate an app screenshot into a gentle zoom for an intro.
|
|
25
|
+
|
|
26
|
+
## Models
|
|
27
|
+
|
|
28
|
+
Default: `SF_VIDEO_MODEL`, else `veo-3.1-generate-preview`. Resolution defaults to 1080p when Superfactory's video quality is high (`SF_VIDEO_QUALITY`), else 720p. Pass `model` per call, e.g. `veo-3.1-fast-generate-preview` (faster, cheaper) or `gemini-omni-1.1-flash`. `list_video_models` shows what this API key can use: check it when a model name is rejected.
|
|
29
|
+
|
|
30
|
+
Needs the Gemini API key (`claude plugin configure sf-video-studio`, or `GEMINI_API_KEY`). Video generation is billed per second of video: generate only what the video needs.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
// @bun
|
|
3
|
+
import{Lr}from"./chunk-1kgfrgmv.js";import{s,y,Dr,v}from"./chunk-1rnmxaav.js";import{Hi,Xo,Tn}from"./chunk-26zhqbyn.js";var[r,t]=process.argv.slice(2);if(r!=="unlock"||!t)console.error("usage: bun src/account.ts unlock <email>"),process.exit(2);var{db:a,close:n}=await Dr(Lr().SF_DATA_DIR);try{let{user:o}=y,e=v(await a.select({id:o.id}).from(o).where(s(o.email,t.trim().toLowerCase())));if(!e)throw Error(`no account ${t}`);if(!(await Hi(a)).some((i)=>i.id===e.id))console.log(`account: ${t} signs in as before: nothing to unlock`);else await Xo(a,e.id),await new Tn(a).write("system","account.password-unlock",e.id,{via:"account.ts"}),console.log(`account: ${t} signs in with its password again; add a passkey in Settings \u203A Security`)}catch(o){console.error(`account: ${o instanceof Error?o.message:o}`),process.exitCode=1}finally{await n()}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"./chunk-1rnmxaav.js";import"./chunk-1kgfrgmv.js";import"./chunk-18n7tr66.js";import{zi}from"./chunk-q403h2bh.js";import{du}from"./chunk-t64r6enn.js";var i=1000,a=process.ppid;setInterval(()=>{if(process.ppid!==a)process.exit(1)},i).unref();var c=JSON.parse(await Bun.stdin.text());try{let{masterKey:e,url:r,dataDir:t,createdAt:s,file:o}=c;await zi(o,du(e,r,t,new Date(s))),process.exit(0)}catch(e){console.log(JSON.stringify({error:e instanceof Error?e.message:String(e)})),process.exit(1)}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
// @bun
|
|
3
|
+
import{Lr}from"./chunk-1kgfrgmv.js";import{Bg,$r,jr,Dr}from"./chunk-1rnmxaav.js";import"./chunk-18n7tr66.js";import{sa}from"./chunk-q403h2bh.js";import{Tr,Ls,lu,Yf,Qf}from"./chunk-t64r6enn.js";import{Zn}from"./chunk-0tbq288f.js";import"./chunk-gefgv8rg.js";import"./chunk-8zbwppny.js";import"./chunk-26zhqbyn.js";import"./chunk-9pn7q001.js";import{tc}from"./chunk-jy148bhn.js";import{Od,rc,Dp}from"./chunk-xyw98jst.js";import"./chunk-dbzjsqvb.js";import"./chunk-neyhk32g.js";import"./chunk-bhm6jzch.js";import{readFile as E}from"fs/promises";import{join as y}from"path";import{parseArgs as A}from"util";var{values:f,positionals:m}=A({allowPositionals:!0,options:{data:{type:"string"},replace:{type:"boolean",default:!1},"no-files":{type:"boolean",default:!1},"moved-from":{type:"string"}}}),n=Lr(),r=f.data??n.SF_DATA_DIR,[l,u]=m;try{if(l==="list")await _();else if(l==="create"&&!u)await g();else if(l==="restore"&&u)await S(u);else if(l==="projects")await F(u);else if(l==="restore-code"&&m.length===4)await R(...m.slice(1,4));else if(l==="snapshot"||m.length<=1&&l!=="restore")await g();else console.error("usage: bun src/backup.ts list | create [--data <dir>] | restore <name|latest> [--data <dir>] [--replace] [--no-files] [--moved-from <url>] | projects [projectId] | restore-code <projectId> <name|latest> <dir> | snapshot"),process.exit(2)}catch(e){console.error(`backup: ${e instanceof Error?e.message:e}`),process.exit(1)}async function _(){let{store:e,destination:t}=Tr(n),o=await Ls(e);console.log(`${o.length} ${o.length===1?"backup":"backups"} in ${t}`);for(let s of o)console.log(`${s.name} ${s.size} bytes`)}async function g(){let e=await k(r),{store:t,destination:o}=Tr({...n,SF_DATA_DIR:r}),s=await jr(r);try{let a=new Date,c=await Yf(t,e,s.url,r,a),i=await sa(lu(n,r),t,e,a);console.log(`backup: ${c.name} (${c.size} bytes) in ${o}`),console.log(`backup: files: ${i.count}, copied: ${i.copied}`)}finally{await s.stop()}}async function S(e){let t=f["moved-from"];if(t!==void 0&&!URL.canParse(t))throw Error(`--moved-from takes the old server's address (https://\u2026), not ${t}`);let{store:o,destination:s}=Tr(n),a=e==="latest"?(await Ls(o))[0]?.name:e;if(!a||!await o.stat(a))throw Error(`no backup ${e} in ${s}`);let c=y(r,`before-restore-${Date.now()}`);if(f.replace&&!$r()&&await Bg(r,c))console.log(`backup: the database it had is kept in ${c}`);let i,b=await Qf(o,await k(),a,{database:async()=>(i??=await jr(r),i.url),dataDir:r,replace:f.replace,files:f["no-files"]?void 0:lu(n,r),replicas:Zn(n)}).finally(()=>i?.stop()),{facts:d,database:h,keys:p,files:w}=b;if(console.log(`backup: restored ${a} (made ${d.createdAt} on ${d.dialect}): ${h}`),p.written.length)console.log(`backup: key files written: ${p.written.join(", ")}`);if(p.sealed.length)console.log(`backup: keys sealed in the database: ${p.sealed.join(", ")}`);if(p.kept.length)console.log(`backup: key files kept (already there, or not needed): ${p.kept.join(", ")}`);if(w)console.log(`backup: files restored: ${w.restored}, already there: ${w.present}`);if(t)await v(t)}async function v(e){let{db:t,close:o}=await Dr(r);try{let s=await tc(t,{from:e});console.log(`backup: moved from ${e}: passkeys removed: ${s.passkeysRemoved}, sign-ins ended: ${s.sessionsEnded}, push subscriptions removed: ${s.pushSubscriptionsRemoved}`)}finally{await o()}}async function F(e){let{store:t,destination:o}=Tr(n),s=await rc(t,e);console.log(`${s.length} project ${s.length===1?"backup":"backups"} in ${o}`);for(let a of s)console.log(`${a.projectId} ${a.name} ${a.size} bytes`)}async function R(e="",t="",o=""){let{store:s,destination:a}=Tr(n),c=await rc(s,e),i=t==="latest"?c[0]?.name:c.find((d)=>d.name===t)?.name;if(!i)throw Error(`no backup ${t} of ${e} in ${a}`);let b=await Dp(s,await k(),e,i,o);console.log(`backup: restored ${e}'s code from ${i} into ${o}`),console.log(`backup: ${b.branch??"HEAD"} checked out; the working tree is on ${Od}`)}async function k(e=n.SF_DATA_DIR){if(n.SF_MASTER_KEY)return n.SF_MASTER_KEY;let t=n.SF_MASTER_KEY_FILE??y(e,"master-key"),o=await E(t,"utf8").catch(()=>{return});if(!o)throw Error(`no master key: set SF_MASTER_KEY or SF_MASTER_KEY_FILE, or put it in ${t}`);return o.trim()}
|