flucto 1.18.0 → 1.21.0

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 (385) hide show
  1. package/CHANGELOG.md +36 -3
  2. package/README.md +172 -26
  3. package/dist-electron/cli/args.js +127 -2
  4. package/dist-electron/cli/args.js.map +1 -1
  5. package/dist-electron/cli/index.js +334 -9
  6. package/dist-electron/cli/index.js.map +1 -1
  7. package/dist-electron/cli/jobOutput.js.map +1 -1
  8. package/dist-electron/cli/output.js +24 -1
  9. package/dist-electron/cli/output.js.map +1 -1
  10. package/dist-electron/main/analysis/avCommands.js +144 -0
  11. package/dist-electron/main/analysis/avCommands.js.map +1 -0
  12. package/dist-electron/main/analysis/csvWriter.js +121 -0
  13. package/dist-electron/main/analysis/csvWriter.js.map +1 -0
  14. package/dist-electron/main/analysis/ffmpegSignals.js +337 -0
  15. package/dist-electron/main/analysis/ffmpegSignals.js.map +1 -0
  16. package/dist-electron/main/handlers.js +189 -2
  17. package/dist-electron/main/handlers.js.map +1 -1
  18. package/dist-electron/main/index.js +36 -1
  19. package/dist-electron/main/index.js.map +1 -1
  20. package/dist-electron/main/platforms/threads.js +128 -6
  21. package/dist-electron/main/platforms/threads.js.map +1 -1
  22. package/dist-electron/main/search/dailymotion.js +5 -1
  23. package/dist-electron/main/search/dailymotion.js.map +1 -1
  24. package/dist-electron/main/services/aiVideoDiscovery.js +193 -0
  25. package/dist-electron/main/services/aiVideoDiscovery.js.map +1 -0
  26. package/dist-electron/main/services/aiVideoEvidence.js +75 -0
  27. package/dist-electron/main/services/aiVideoEvidence.js.map +1 -0
  28. package/dist-electron/main/services/analysisReport.js +413 -0
  29. package/dist-electron/main/services/analysisReport.js.map +1 -0
  30. package/dist-electron/main/services/binaryInstaller.js +427 -108
  31. package/dist-electron/main/services/binaryInstaller.js.map +1 -1
  32. package/dist-electron/main/services/binaryResolver.js +2 -0
  33. package/dist-electron/main/services/binaryResolver.js.map +1 -1
  34. package/dist-electron/main/services/cinematicAnalysis.js +574 -0
  35. package/dist-electron/main/services/cinematicAnalysis.js.map +1 -0
  36. package/dist-electron/main/services/codexVisionRuntime.js +353 -0
  37. package/dist-electron/main/services/codexVisionRuntime.js.map +1 -0
  38. package/dist-electron/main/services/craftTaxonomy.js +373 -0
  39. package/dist-electron/main/services/craftTaxonomy.js.map +1 -0
  40. package/dist-electron/main/services/mediaDownload.js +50 -0
  41. package/dist-electron/main/services/mediaDownload.js.map +1 -1
  42. package/dist-electron/main/services/mediaInfo.js +44 -0
  43. package/dist-electron/main/services/mediaInfo.js.map +1 -1
  44. package/dist-electron/main/services/visionProvider.js +220 -0
  45. package/dist-electron/main/services/visionProvider.js.map +1 -0
  46. package/dist-electron/main/services/ytDlpRuntimeSources.js +24 -0
  47. package/dist-electron/main/services/ytDlpRuntimeSources.js.map +1 -0
  48. package/dist-electron/main/spawn.js +50 -4
  49. package/dist-electron/main/spawn.js.map +1 -1
  50. package/dist-electron/main/store.js +5 -0
  51. package/dist-electron/main/store.js.map +1 -1
  52. package/dist-electron/preload/index.js +24 -0
  53. package/dist-electron/preload/index.js.map +1 -1
  54. package/dist-electron/shared/analysisOutputPath.js +24 -0
  55. package/dist-electron/shared/analysisOutputPath.js.map +1 -0
  56. package/dist-electron/shared/analysisTypes.js +29 -0
  57. package/dist-electron/shared/analysisTypes.js.map +1 -0
  58. package/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
  59. package/node_modules/@isaacs/fs-minipass/README.md +71 -0
  60. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +118 -0
  61. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +1 -0
  62. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
  63. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +1 -0
  64. package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
  65. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +118 -0
  66. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +1 -0
  67. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
  68. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +1 -0
  69. package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
  70. package/node_modules/@isaacs/fs-minipass/package.json +72 -0
  71. package/node_modules/chownr/LICENSE.md +63 -0
  72. package/node_modules/chownr/README.md +3 -0
  73. package/node_modules/chownr/dist/commonjs/index.d.ts +3 -0
  74. package/node_modules/chownr/dist/commonjs/index.d.ts.map +1 -0
  75. package/node_modules/chownr/dist/commonjs/index.js +93 -0
  76. package/node_modules/chownr/dist/commonjs/index.js.map +1 -0
  77. package/node_modules/chownr/dist/commonjs/package.json +3 -0
  78. package/node_modules/chownr/dist/esm/index.d.ts +3 -0
  79. package/node_modules/chownr/dist/esm/index.d.ts.map +1 -0
  80. package/node_modules/chownr/dist/esm/index.js +85 -0
  81. package/node_modules/chownr/dist/esm/index.js.map +1 -0
  82. package/node_modules/chownr/dist/esm/package.json +3 -0
  83. package/node_modules/chownr/package.json +69 -0
  84. package/node_modules/minipass/LICENSE.md +55 -0
  85. package/node_modules/minipass/README.md +825 -0
  86. package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
  87. package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
  88. package/node_modules/minipass/dist/commonjs/index.js +1038 -0
  89. package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
  90. package/node_modules/minipass/dist/commonjs/package.json +3 -0
  91. package/node_modules/minipass/dist/esm/index.d.ts +545 -0
  92. package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
  93. package/node_modules/minipass/dist/esm/index.js +1020 -0
  94. package/node_modules/minipass/dist/esm/index.js.map +1 -0
  95. package/node_modules/minipass/dist/esm/package.json +3 -0
  96. package/node_modules/minipass/package.json +77 -0
  97. package/node_modules/minizlib/LICENSE +26 -0
  98. package/node_modules/minizlib/README.md +64 -0
  99. package/node_modules/minizlib/dist/commonjs/constants.d.ts +2 -0
  100. package/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
  101. package/node_modules/minizlib/dist/commonjs/constants.js +123 -0
  102. package/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
  103. package/node_modules/minizlib/dist/commonjs/index.d.ts +99 -0
  104. package/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
  105. package/node_modules/minizlib/dist/commonjs/index.js +416 -0
  106. package/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
  107. package/node_modules/minizlib/dist/commonjs/package.json +3 -0
  108. package/node_modules/minizlib/dist/esm/constants.d.ts +2 -0
  109. package/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
  110. package/node_modules/minizlib/dist/esm/constants.js +117 -0
  111. package/node_modules/minizlib/dist/esm/constants.js.map +1 -0
  112. package/node_modules/minizlib/dist/esm/index.d.ts +99 -0
  113. package/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
  114. package/node_modules/minizlib/dist/esm/index.js +363 -0
  115. package/node_modules/minizlib/dist/esm/index.js.map +1 -0
  116. package/node_modules/minizlib/dist/esm/package.json +3 -0
  117. package/node_modules/minizlib/package.json +80 -0
  118. package/node_modules/tar/LICENSE.md +55 -0
  119. package/node_modules/tar/README.md +1233 -0
  120. package/node_modules/tar/dist/commonjs/create.d.ts +3 -0
  121. package/node_modules/tar/dist/commonjs/create.d.ts.map +1 -0
  122. package/node_modules/tar/dist/commonjs/create.js +82 -0
  123. package/node_modules/tar/dist/commonjs/create.js.map +1 -0
  124. package/node_modules/tar/dist/commonjs/cwd-error.d.ts +8 -0
  125. package/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +1 -0
  126. package/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
  127. package/node_modules/tar/dist/commonjs/cwd-error.js.map +1 -0
  128. package/node_modules/tar/dist/commonjs/extract.d.ts +3 -0
  129. package/node_modules/tar/dist/commonjs/extract.d.ts.map +1 -0
  130. package/node_modules/tar/dist/commonjs/extract.js +88 -0
  131. package/node_modules/tar/dist/commonjs/extract.js.map +1 -0
  132. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +2 -0
  133. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +1 -0
  134. package/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
  135. package/node_modules/tar/dist/commonjs/get-write-flag.js.map +1 -0
  136. package/node_modules/tar/dist/commonjs/header.d.ts +53 -0
  137. package/node_modules/tar/dist/commonjs/header.d.ts.map +1 -0
  138. package/node_modules/tar/dist/commonjs/header.js +348 -0
  139. package/node_modules/tar/dist/commonjs/header.js.map +1 -0
  140. package/node_modules/tar/dist/commonjs/index.d.ts +20 -0
  141. package/node_modules/tar/dist/commonjs/index.d.ts.map +1 -0
  142. package/node_modules/tar/dist/commonjs/index.js +64 -0
  143. package/node_modules/tar/dist/commonjs/index.js.map +1 -0
  144. package/node_modules/tar/dist/commonjs/index.min.js +4 -0
  145. package/node_modules/tar/dist/commonjs/index.min.js.map +7 -0
  146. package/node_modules/tar/dist/commonjs/large-numbers.d.ts +3 -0
  147. package/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +1 -0
  148. package/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
  149. package/node_modules/tar/dist/commonjs/large-numbers.js.map +1 -0
  150. package/node_modules/tar/dist/commonjs/list.d.ts +7 -0
  151. package/node_modules/tar/dist/commonjs/list.d.ts.map +1 -0
  152. package/node_modules/tar/dist/commonjs/list.js +153 -0
  153. package/node_modules/tar/dist/commonjs/list.js.map +1 -0
  154. package/node_modules/tar/dist/commonjs/make-command.d.ts +49 -0
  155. package/node_modules/tar/dist/commonjs/make-command.d.ts.map +1 -0
  156. package/node_modules/tar/dist/commonjs/make-command.js +52 -0
  157. package/node_modules/tar/dist/commonjs/make-command.js.map +1 -0
  158. package/node_modules/tar/dist/commonjs/mkdir.d.ts +25 -0
  159. package/node_modules/tar/dist/commonjs/mkdir.d.ts.map +1 -0
  160. package/node_modules/tar/dist/commonjs/mkdir.js +187 -0
  161. package/node_modules/tar/dist/commonjs/mkdir.js.map +1 -0
  162. package/node_modules/tar/dist/commonjs/mode-fix.d.ts +2 -0
  163. package/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +1 -0
  164. package/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
  165. package/node_modules/tar/dist/commonjs/mode-fix.js.map +1 -0
  166. package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +2 -0
  167. package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +1 -0
  168. package/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
  169. package/node_modules/tar/dist/commonjs/normalize-unicode.js.map +1 -0
  170. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +2 -0
  171. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +1 -0
  172. package/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
  173. package/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +1 -0
  174. package/node_modules/tar/dist/commonjs/options.d.ts +604 -0
  175. package/node_modules/tar/dist/commonjs/options.d.ts.map +1 -0
  176. package/node_modules/tar/dist/commonjs/options.js +66 -0
  177. package/node_modules/tar/dist/commonjs/options.js.map +1 -0
  178. package/node_modules/tar/dist/commonjs/pack.d.ts +105 -0
  179. package/node_modules/tar/dist/commonjs/pack.d.ts.map +1 -0
  180. package/node_modules/tar/dist/commonjs/pack.js +544 -0
  181. package/node_modules/tar/dist/commonjs/pack.js.map +1 -0
  182. package/node_modules/tar/dist/commonjs/package.json +3 -0
  183. package/node_modules/tar/dist/commonjs/parse.d.ts +92 -0
  184. package/node_modules/tar/dist/commonjs/parse.d.ts.map +1 -0
  185. package/node_modules/tar/dist/commonjs/parse.js +655 -0
  186. package/node_modules/tar/dist/commonjs/parse.js.map +1 -0
  187. package/node_modules/tar/dist/commonjs/path-reservations.d.ts +11 -0
  188. package/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +1 -0
  189. package/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
  190. package/node_modules/tar/dist/commonjs/path-reservations.js.map +1 -0
  191. package/node_modules/tar/dist/commonjs/pax.d.ts +26 -0
  192. package/node_modules/tar/dist/commonjs/pax.d.ts.map +1 -0
  193. package/node_modules/tar/dist/commonjs/pax.js +182 -0
  194. package/node_modules/tar/dist/commonjs/pax.js.map +1 -0
  195. package/node_modules/tar/dist/commonjs/process-umask.d.ts +2 -0
  196. package/node_modules/tar/dist/commonjs/process-umask.d.ts.map +1 -0
  197. package/node_modules/tar/dist/commonjs/process-umask.js +7 -0
  198. package/node_modules/tar/dist/commonjs/process-umask.js.map +1 -0
  199. package/node_modules/tar/dist/commonjs/read-entry.d.ts +36 -0
  200. package/node_modules/tar/dist/commonjs/read-entry.d.ts.map +1 -0
  201. package/node_modules/tar/dist/commonjs/read-entry.js +136 -0
  202. package/node_modules/tar/dist/commonjs/read-entry.js.map +1 -0
  203. package/node_modules/tar/dist/commonjs/replace.d.ts +2 -0
  204. package/node_modules/tar/dist/commonjs/replace.d.ts.map +1 -0
  205. package/node_modules/tar/dist/commonjs/replace.js +227 -0
  206. package/node_modules/tar/dist/commonjs/replace.js.map +1 -0
  207. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +2 -0
  208. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -0
  209. package/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
  210. package/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +1 -0
  211. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +2 -0
  212. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +1 -0
  213. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
  214. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +1 -0
  215. package/node_modules/tar/dist/commonjs/symlink-error.d.ts +9 -0
  216. package/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +1 -0
  217. package/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
  218. package/node_modules/tar/dist/commonjs/symlink-error.js.map +1 -0
  219. package/node_modules/tar/dist/commonjs/types.d.ts +16 -0
  220. package/node_modules/tar/dist/commonjs/types.d.ts.map +1 -0
  221. package/node_modules/tar/dist/commonjs/types.js +70 -0
  222. package/node_modules/tar/dist/commonjs/types.js.map +1 -0
  223. package/node_modules/tar/dist/commonjs/unpack.d.ts +101 -0
  224. package/node_modules/tar/dist/commonjs/unpack.d.ts.map +1 -0
  225. package/node_modules/tar/dist/commonjs/unpack.js +932 -0
  226. package/node_modules/tar/dist/commonjs/unpack.js.map +1 -0
  227. package/node_modules/tar/dist/commonjs/update.d.ts +2 -0
  228. package/node_modules/tar/dist/commonjs/update.d.ts.map +1 -0
  229. package/node_modules/tar/dist/commonjs/update.js +33 -0
  230. package/node_modules/tar/dist/commonjs/update.js.map +1 -0
  231. package/node_modules/tar/dist/commonjs/warn-method.d.ts +24 -0
  232. package/node_modules/tar/dist/commonjs/warn-method.d.ts.map +1 -0
  233. package/node_modules/tar/dist/commonjs/warn-method.js +31 -0
  234. package/node_modules/tar/dist/commonjs/warn-method.js.map +1 -0
  235. package/node_modules/tar/dist/commonjs/winchars.d.ts +3 -0
  236. package/node_modules/tar/dist/commonjs/winchars.d.ts.map +1 -0
  237. package/node_modules/tar/dist/commonjs/winchars.js +14 -0
  238. package/node_modules/tar/dist/commonjs/winchars.js.map +1 -0
  239. package/node_modules/tar/dist/commonjs/write-entry.d.ts +129 -0
  240. package/node_modules/tar/dist/commonjs/write-entry.d.ts.map +1 -0
  241. package/node_modules/tar/dist/commonjs/write-entry.js +698 -0
  242. package/node_modules/tar/dist/commonjs/write-entry.js.map +1 -0
  243. package/node_modules/tar/dist/esm/create.d.ts +3 -0
  244. package/node_modules/tar/dist/esm/create.d.ts.map +1 -0
  245. package/node_modules/tar/dist/esm/create.js +76 -0
  246. package/node_modules/tar/dist/esm/create.js.map +1 -0
  247. package/node_modules/tar/dist/esm/cwd-error.d.ts +8 -0
  248. package/node_modules/tar/dist/esm/cwd-error.d.ts.map +1 -0
  249. package/node_modules/tar/dist/esm/cwd-error.js +14 -0
  250. package/node_modules/tar/dist/esm/cwd-error.js.map +1 -0
  251. package/node_modules/tar/dist/esm/extract.d.ts +3 -0
  252. package/node_modules/tar/dist/esm/extract.d.ts.map +1 -0
  253. package/node_modules/tar/dist/esm/extract.js +49 -0
  254. package/node_modules/tar/dist/esm/extract.js.map +1 -0
  255. package/node_modules/tar/dist/esm/get-write-flag.d.ts +2 -0
  256. package/node_modules/tar/dist/esm/get-write-flag.d.ts.map +1 -0
  257. package/node_modules/tar/dist/esm/get-write-flag.js +26 -0
  258. package/node_modules/tar/dist/esm/get-write-flag.js.map +1 -0
  259. package/node_modules/tar/dist/esm/header.d.ts +53 -0
  260. package/node_modules/tar/dist/esm/header.d.ts.map +1 -0
  261. package/node_modules/tar/dist/esm/header.js +311 -0
  262. package/node_modules/tar/dist/esm/header.js.map +1 -0
  263. package/node_modules/tar/dist/esm/index.d.ts +20 -0
  264. package/node_modules/tar/dist/esm/index.d.ts.map +1 -0
  265. package/node_modules/tar/dist/esm/index.js +20 -0
  266. package/node_modules/tar/dist/esm/index.js.map +1 -0
  267. package/node_modules/tar/dist/esm/index.min.js +4 -0
  268. package/node_modules/tar/dist/esm/index.min.js.map +7 -0
  269. package/node_modules/tar/dist/esm/large-numbers.d.ts +3 -0
  270. package/node_modules/tar/dist/esm/large-numbers.d.ts.map +1 -0
  271. package/node_modules/tar/dist/esm/large-numbers.js +94 -0
  272. package/node_modules/tar/dist/esm/large-numbers.js.map +1 -0
  273. package/node_modules/tar/dist/esm/list.d.ts +7 -0
  274. package/node_modules/tar/dist/esm/list.d.ts.map +1 -0
  275. package/node_modules/tar/dist/esm/list.js +113 -0
  276. package/node_modules/tar/dist/esm/list.js.map +1 -0
  277. package/node_modules/tar/dist/esm/make-command.d.ts +49 -0
  278. package/node_modules/tar/dist/esm/make-command.d.ts.map +1 -0
  279. package/node_modules/tar/dist/esm/make-command.js +48 -0
  280. package/node_modules/tar/dist/esm/make-command.js.map +1 -0
  281. package/node_modules/tar/dist/esm/mkdir.d.ts +25 -0
  282. package/node_modules/tar/dist/esm/mkdir.d.ts.map +1 -0
  283. package/node_modules/tar/dist/esm/mkdir.js +179 -0
  284. package/node_modules/tar/dist/esm/mkdir.js.map +1 -0
  285. package/node_modules/tar/dist/esm/mode-fix.d.ts +2 -0
  286. package/node_modules/tar/dist/esm/mode-fix.d.ts.map +1 -0
  287. package/node_modules/tar/dist/esm/mode-fix.js +25 -0
  288. package/node_modules/tar/dist/esm/mode-fix.js.map +1 -0
  289. package/node_modules/tar/dist/esm/normalize-unicode.d.ts +2 -0
  290. package/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +1 -0
  291. package/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
  292. package/node_modules/tar/dist/esm/normalize-unicode.js.map +1 -0
  293. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +2 -0
  294. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +1 -0
  295. package/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
  296. package/node_modules/tar/dist/esm/normalize-windows-path.js.map +1 -0
  297. package/node_modules/tar/dist/esm/options.d.ts +604 -0
  298. package/node_modules/tar/dist/esm/options.d.ts.map +1 -0
  299. package/node_modules/tar/dist/esm/options.js +54 -0
  300. package/node_modules/tar/dist/esm/options.js.map +1 -0
  301. package/node_modules/tar/dist/esm/pack.d.ts +105 -0
  302. package/node_modules/tar/dist/esm/pack.d.ts.map +1 -0
  303. package/node_modules/tar/dist/esm/pack.js +502 -0
  304. package/node_modules/tar/dist/esm/pack.js.map +1 -0
  305. package/node_modules/tar/dist/esm/package.json +3 -0
  306. package/node_modules/tar/dist/esm/parse.d.ts +92 -0
  307. package/node_modules/tar/dist/esm/parse.d.ts.map +1 -0
  308. package/node_modules/tar/dist/esm/parse.js +651 -0
  309. package/node_modules/tar/dist/esm/parse.js.map +1 -0
  310. package/node_modules/tar/dist/esm/path-reservations.d.ts +11 -0
  311. package/node_modules/tar/dist/esm/path-reservations.d.ts.map +1 -0
  312. package/node_modules/tar/dist/esm/path-reservations.js +166 -0
  313. package/node_modules/tar/dist/esm/path-reservations.js.map +1 -0
  314. package/node_modules/tar/dist/esm/pax.d.ts +26 -0
  315. package/node_modules/tar/dist/esm/pax.d.ts.map +1 -0
  316. package/node_modules/tar/dist/esm/pax.js +178 -0
  317. package/node_modules/tar/dist/esm/pax.js.map +1 -0
  318. package/node_modules/tar/dist/esm/process-umask.d.ts +2 -0
  319. package/node_modules/tar/dist/esm/process-umask.d.ts.map +1 -0
  320. package/node_modules/tar/dist/esm/process-umask.js +3 -0
  321. package/node_modules/tar/dist/esm/process-umask.js.map +1 -0
  322. package/node_modules/tar/dist/esm/read-entry.d.ts +36 -0
  323. package/node_modules/tar/dist/esm/read-entry.d.ts.map +1 -0
  324. package/node_modules/tar/dist/esm/read-entry.js +132 -0
  325. package/node_modules/tar/dist/esm/read-entry.js.map +1 -0
  326. package/node_modules/tar/dist/esm/replace.d.ts +2 -0
  327. package/node_modules/tar/dist/esm/replace.d.ts.map +1 -0
  328. package/node_modules/tar/dist/esm/replace.js +221 -0
  329. package/node_modules/tar/dist/esm/replace.js.map +1 -0
  330. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +2 -0
  331. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -0
  332. package/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
  333. package/node_modules/tar/dist/esm/strip-absolute-path.js.map +1 -0
  334. package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +2 -0
  335. package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +1 -0
  336. package/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
  337. package/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +1 -0
  338. package/node_modules/tar/dist/esm/symlink-error.d.ts +9 -0
  339. package/node_modules/tar/dist/esm/symlink-error.d.ts.map +1 -0
  340. package/node_modules/tar/dist/esm/symlink-error.js +15 -0
  341. package/node_modules/tar/dist/esm/symlink-error.js.map +1 -0
  342. package/node_modules/tar/dist/esm/types.d.ts +16 -0
  343. package/node_modules/tar/dist/esm/types.d.ts.map +1 -0
  344. package/node_modules/tar/dist/esm/types.js +65 -0
  345. package/node_modules/tar/dist/esm/types.js.map +1 -0
  346. package/node_modules/tar/dist/esm/unpack.d.ts +101 -0
  347. package/node_modules/tar/dist/esm/unpack.d.ts.map +1 -0
  348. package/node_modules/tar/dist/esm/unpack.js +891 -0
  349. package/node_modules/tar/dist/esm/unpack.js.map +1 -0
  350. package/node_modules/tar/dist/esm/update.d.ts +2 -0
  351. package/node_modules/tar/dist/esm/update.d.ts.map +1 -0
  352. package/node_modules/tar/dist/esm/update.js +30 -0
  353. package/node_modules/tar/dist/esm/update.js.map +1 -0
  354. package/node_modules/tar/dist/esm/warn-method.d.ts +24 -0
  355. package/node_modules/tar/dist/esm/warn-method.d.ts.map +1 -0
  356. package/node_modules/tar/dist/esm/warn-method.js +27 -0
  357. package/node_modules/tar/dist/esm/warn-method.js.map +1 -0
  358. package/node_modules/tar/dist/esm/winchars.d.ts +3 -0
  359. package/node_modules/tar/dist/esm/winchars.d.ts.map +1 -0
  360. package/node_modules/tar/dist/esm/winchars.js +9 -0
  361. package/node_modules/tar/dist/esm/winchars.js.map +1 -0
  362. package/node_modules/tar/dist/esm/write-entry.d.ts +129 -0
  363. package/node_modules/tar/dist/esm/write-entry.d.ts.map +1 -0
  364. package/node_modules/tar/dist/esm/write-entry.js +656 -0
  365. package/node_modules/tar/dist/esm/write-entry.js.map +1 -0
  366. package/node_modules/tar/node_modules/yallist/LICENSE.md +63 -0
  367. package/node_modules/tar/node_modules/yallist/README.md +205 -0
  368. package/node_modules/tar/node_modules/yallist/dist/commonjs/index.d.ts +39 -0
  369. package/node_modules/tar/node_modules/yallist/dist/commonjs/index.d.ts.map +1 -0
  370. package/node_modules/tar/node_modules/yallist/dist/commonjs/index.js +384 -0
  371. package/node_modules/tar/node_modules/yallist/dist/commonjs/index.js.map +1 -0
  372. package/node_modules/tar/node_modules/yallist/dist/commonjs/package.json +3 -0
  373. package/node_modules/tar/node_modules/yallist/dist/esm/index.d.ts +39 -0
  374. package/node_modules/tar/node_modules/yallist/dist/esm/index.d.ts.map +1 -0
  375. package/node_modules/tar/node_modules/yallist/dist/esm/index.js +379 -0
  376. package/node_modules/tar/node_modules/yallist/dist/esm/index.js.map +1 -0
  377. package/node_modules/tar/node_modules/yallist/dist/esm/package.json +3 -0
  378. package/node_modules/tar/node_modules/yallist/package.json +68 -0
  379. package/node_modules/tar/package.json +298 -0
  380. package/package.json +7 -2
  381. package/schemas/analysis-run.v1.schema.json +66 -0
  382. package/skills/searching-social-media/SKILL.md +50 -0
  383. package/skills/searching-social-media/references/flucto-contract.md +37 -0
  384. package/skills/searching-social-media/references/search-workflow.md +39 -0
  385. package/skills/searching-social-media/scripts/social_search.py +431 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.21.0](https://github.com/DeclanJeon/flucto/compare/v1.19.0...v1.21.0) (2026-11-17)
4
+
5
+ ### Features
6
+
7
+ * add cinematic reference analysis pipeline ([211aac2](https://github.com/DeclanJeon/flucto/commit/211aac234d7f765adc0186b1f699dc6167f5803b))
8
+ * add Codex-powered cinematic reference analysis ([3e305ef](https://github.com/DeclanJeon/flucto/commit/3e305efb987ef5949066cf6eb8ba3e670e33f0fa))
9
+ * add social search skill and runtime safeguards ([87d79c7](https://github.com/DeclanJeon/flucto/commit/87d79c7ba86666fb76bc9840e31f63392c429e15))
10
+ * add Threads profile batch downloads ([8a1e403](https://github.com/DeclanJeon/flucto/commit/8a1e403c9b6ab31282eaae797b7847b4917a2659))
11
+ * default analysis exports to Documents/Flucto ([f0cfd5f](https://github.com/DeclanJeon/flucto/commit/f0cfd5fca16334f9d9fe3a15bd5c40a3489d7aac))
12
+ * **images:** add post image download support ([666c8a0](https://github.com/DeclanJeon/flucto/commit/666c8a0e929cae20b8b74633e47feb12a3ed8380))
13
+
14
+ ### Bug Fixes
15
+
16
+ * **binaries:** repin Linux FFmpeg to a published autobuild ([262a12d](https://github.com/DeclanJeon/flucto/commit/262a12d60a6df1c440d03e99eb712b734da83bcc))
17
+ * make new tests pass on Windows ([b27db90](https://github.com/DeclanJeon/flucto/commit/b27db902ed8aef835784a6b7782958cc4d6cb217))
18
+ * preserve cinematic analysis confidence and match precision ([bf03cde](https://github.com/DeclanJeon/flucto/commit/bf03cde749ba9a123fd9d36f5bf37cba5bdd04e1))
19
+ * report analysis dependencies and deduplicate tools ([c40a5b9](https://github.com/DeclanJeon/flucto/commit/c40a5b9ebea61e94dc980e5ef2f5a49130b0282c))
20
+ * **threads:** normalize shared post URLs before extraction ([cefd10d](https://github.com/DeclanJeon/flucto/commit/cefd10d4355254ef6a80e43da0e929d78a1fcc80))
21
+
22
+ ## [1.19.0](https://github.com/DeclanJeon/flucto/compare/v1.18.0...v1.19.0) (2026-10-10)
23
+
24
+ ### Features
25
+
26
+ * add general AI video discovery ([e48fc43](https://github.com/DeclanJeon/flucto/commit/e48fc43ab08c3ccc524877a2bf2f4d9644a9d98c))
27
+
28
+ ## Unreleased
29
+
30
+ ### Features
31
+
32
+ - Add an Images output mode for supported post URLs, using yt-dlp image metadata and the Threads adapter to queue and save available post images, with partial-failure reporting.
33
+
34
+ - Add Threads profile video-post enumeration to the CLI batch command; the download directory remains caller-selected.
35
+
36
+ - Add general AI-video discovery with optional free-text retrieval, public-disclosure evidence classification, evidence-aware relevance ranking, source diagnostics, platform-relative popularity, CLI JSON output, and explicit renderer queue selection.
37
+
3
38
  ## [1.18.0](https://github.com/DeclanJeon/flucto/compare/v1.17.0...v1.18.0) (2026-10-07)
4
39
 
5
40
  ### Features
@@ -12,8 +47,6 @@
12
47
  * **packaging:** load interpreter-owned modules and validate native Mac Intel ([f144419](https://github.com/DeclanJeon/flucto/commit/f144419f70105836020f79ccc29014d1dea83519))
13
48
  * **setup:** support PowerShell ANSI decoding and canonical native prefixes ([68d4cc1](https://github.com/DeclanJeon/flucto/commit/68d4cc1aa6e73f730da4e22bf78bda372a2e03ec))
14
49
 
15
- ## Unreleased
16
-
17
50
  ### Security
18
51
 
19
52
  - Update `adm-zip`, `js-yaml`, and compatible transitive dependencies; select patched `shell-quote` for `concurrently`.
@@ -32,7 +65,7 @@
32
65
  - Make executable and updater test fixtures portable to Windows; remove obsolete workflow source-text tests.
33
66
  - Move checkout/setup-node/upload-artifact/download-artifact to Node 24-based action releases.
34
67
  - Publish only after the release branch/tag are atomically pushed and remotely verified against the unchanged native build source; retain original Actions provenance and use OIDC without token fallback.
35
- - Validate actual private CLI installation, restricted-PowerShell launchers, native desktop startup, persisted settings and playable MP3 output on native OS runners.
68
+ - Validate actual private CLI installation, restricted-PowerShell launchers, native desktop startup, persisted settings and playable MP3 output on native OS runners; install the same common CLI archive everywhere and execute the same universal DMG on both native Apple Silicon and Intel runners.
36
69
 
37
70
  ### Installation and downloads
38
71
 
package/README.md CHANGED
@@ -1,14 +1,14 @@
1
1
  # 🌊 Flucto
2
2
 
3
3
  <p align="center">
4
- Flucto - creator-first desktop media downloader and caption-to-Markdown exporter for short-form and long-form captures.
4
+ Flucto - prepare reference video, audio tracks and caption notes for your AI video workflow. Desktop app + CLI.
5
5
  </p>
6
6
 
7
7
  <p align="center">
8
8
  <a href="https://github.com/DeclanJeon/flucto/releases"><img src="https://img.shields.io/github/v/release/DeclanJeon/flucto?style=flat&color=5865F2&label=Download&logo=github" alt="Download"></a>
9
9
  <a href="#"><img src="https://img.shields.io/badge/Platform-Windows%20%7C%20macOS%20%7C%20Linux-007ACC?style=flat&logo=linux&logoColor=white" alt="Platform"></a>
10
- <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-10B981?style=flat" alt="License"></a>
11
- <a href="https://www.typescriptlang.org/"><img src="https://img.shields.io/badge/TypeScript-100%25-3178C6?style=flat&logo=typescript&logoColor=white" alt="TypeScript"></a>
10
+ <a href="https://github.com/DeclanJeon/flucto"><img src="https://img.shields.io/badge/Code-Public-10B981?style=flat" alt="Public source code"></a>
11
+ <a href="https://www.typescriptlang.org/"><img src="https://img.shields.io/badge/TypeScript-Typed%20core-3178C6?style=flat&logo=typescript&logoColor=white" alt="TypeScript core"></a>
12
12
  </p>
13
13
 
14
14
  <p align="center">
@@ -16,22 +16,23 @@
16
16
  </p>
17
17
 
18
18
 
19
- > Flucto is an open-source desktop application for creators and curators who want one flowing way to capture media and turn available captions into Markdown notes from YouTube, X, Reddit, Bilibili, Dailymotion, Niconico, OK.ru, VK Video, Instagram, Threads, TikTok, and Vimeo.
19
+ > Flucto is a source-available source-preparation tool for creators: search references, save permitted media as MP4/MP3, and turn available captions into Markdown notes. It does not generate or edit video. Continue with your editor or generation tool after collection.
20
20
 
21
- - ✨ **Stunning UI**: Apple-inspired dark mode with glassmorphism & smooth animations
22
- - 🌍 **Platform Support**: URL downloads from YouTube, X, Reddit, Bilibili, Dailymotion, Niconico, OK.ru, VK Video, Instagram, Threads, TikTok, and Vimeo
21
+ - **Desktop + CLI:** Use the visual queue or automate the same media service with `flucto` / `fl`.
22
+ - **12 registered search sites:** Search together or choose one source; access, sessions, format availability and caption support vary by site and video.
23
23
  - 📝 **Caption to Markdown**: Convert available subtitles/captions into clean `.md` files with metadata and timestamps
24
24
  - 📦 **Batch Processing**: Import `.txt` lists to download media or convert caption queues automatically
25
25
  - ⚡ **Auto-Setup**: Automatically fetches and configures `yt-dlp` and `ffmpeg` binaries
26
26
  - 🔒 **Anonymous Search Sessions**: Media processing stays local; keyword searches contact site APIs/public indexes without reusing your logged-in browser profile
27
27
  - 🎵 **Format Choice**: Save video (MP4), audio extraction (MP3), or Markdown transcript output
28
- - 🛡️ **Type Safe**: Built with 100% TypeScript for stability and reliability
28
+ - **Typed core:** Desktop and CLI share TypeScript media services.
29
+ - **Reference-video craft analysis (experimental):** Break a reference video into shot/scene observations, optionally use your authenticated Codex CLI account for consented frame labeling, and export evidence-linked JSON/CSV reports. This creates a reviewable production-planning aid; it does not generate video or establish the original creator's intent.
29
30
 
30
31
  <p align="center">
31
- <img src="assets/demo/flucto-channel-to-md.gif" width="100%" alt="Flucto CLI demo: channel to Markdown" />
32
+ <img src="assets/demo/features/03-search-and-queue.gif" width="100%" alt="Actual Flucto 1.18 search, source attribution and reference queue demo" />
32
33
  </p>
33
34
 
34
- <p align="center"><em>CLI demo — one channel → many Markdown notes in a dedicated job folder</em></p>
35
+ <p align="center"><a href="https://flucto.ponslink.com">Interactive demos & installation</a> · <a href="#real-feature-demos">All 12 feature demos</a> · <a href="https://github.com/DeclanJeon/flucto/releases/latest">Latest release</a></p>
35
36
 
36
37
  - [Report Bug](https://github.com/DeclanJeon/flucto/issues)
37
38
 
@@ -39,14 +40,134 @@
39
40
 
40
41
  - **Smart Media Engine:** Flucto parses single video, playlist, and social-media URLs while sharing platform-specific `yt-dlp` headers, referers, and retry behavior across preview, download, and transcript flows.
41
42
  - **Integrated Video Search:** Search all 12 registered sites together or select one site, see native/index source attribution and partial failures, then add results to the existing MP4/MP3 download queue. Desktop and CLI share the same service.
43
+ - **Social-search agent skill:** The Flucto CLI package bundles an opt-in `searching-social-media` skill for Pi, Codex, and Claude. Install it explicitly with `flucto skill install`; it performs bounded candidate search only, not downloads or media analysis.
44
+ - **Post image downloads:** In the desktop app, choose **Images** to preview and save image URLs exposed by supported post extractors, including Threads. Partial failures remain in the queue; image coverage depends on the platform extractor.
42
45
  - **Extensible Platform Architecture:** Plugin-based `PlatformAdapter` system — adding a new platform is one file. Supports yt-dlp-based platforms, custom API extraction, and browser-based fallback strategies.
43
46
  - **Caption-to-Markdown Conversion:** Uses `yt-dlp` subtitle/caption output when available, parses JSON3, XML/SRV3, and VTT captions, cleans caption markup, groups nearby captions into readable paragraphs, and writes filesystem-safe `.md` files.
44
47
  - **Transcript Options:** Default new Markdown conversions to English captions (`en`) while still allowing `Auto` or a concrete caption language, include/exclude timestamps and metadata, choose paragraph gap rules, save Markdown files, and optionally copy generated Markdown to the clipboard.
45
- - **Batch Queue System:** Supports loading hundreds of URLs via text files. Batch media downloads and batch transcript conversions both use bounded concurrency so large queues remain responsive.
46
- - **Download History:** Records output type (`mp4`, `mp3`, or `md`) so media downloads and Markdown conversions stay visible in history.
48
+ - **Batch Queue System:** Import text URL lists and expand YouTube playlists. CLI batch/channel jobs use bounded concurrency and dedicated job folders; desktop media batches save files in the selected output directory.
49
+ - **Download History:** Records output type (`mp4`, `mp3`, `images`, or `md`) so media downloads, image downloads, and Markdown conversions stay visible in history.
47
50
  - **Zero Configuration:** Unlike other GUI wrappers, Flucto includes a `setup-binaries` script that automatically downloads the correct version of `yt-dlp` and `ffmpeg` for your OS upon installation.
48
51
  - **Network Resilience:** Implements retry logic, updater metadata checks, and transcript circuit-breaker behavior for unstable connections, rate limits, and unavailable caption sources.
49
52
 
53
+ ## Real feature demos
54
+
55
+ These **12 feature groups** were exercised with Flucto **1.18.0**. Each GIF is paired with an MP4, a still poster and capture evidence in [`assets/demo/features`](assets/demo/features). The [homepage](https://flucto.ponslink.com/#demos) plays the same recordings on demand instead of autoplaying every GIF.
56
+
57
+ Downloaded/extracted media is an original 12-second procedural clip with authored English WebVTT captions. Public Blender search, playlist and channel metadata is shown separately; it is not evidence of a third-party media download or a guarantee that every URL works. The integrated search recording retains actual blocked-source errors. Some waits are trimmed; playback duration is **not** a speed benchmark. Desktop capture records the app webview; native file/folder chooser selections were exercised but their OS surfaces are outside that view. Profiles, output folders and CLI installs used for filming were isolated.
58
+
59
+ | Feature group | Actual action and observable result |
60
+ | --- | --- |
61
+ | [Video download](#video-download) | URL analysis → MP4 download → saved file path in history |
62
+ | [Audio extraction](#audio-extraction) | MP3 output → extracted audio file → history |
63
+ | [Search and queue](#search-and-queue) | Single-site/all-12 search, native/index attribution, partial failures, Add, grid/list views |
64
+ | [TXT batches and playlists](#txt-batches-and-playlists) | Native `.txt` selection, two downloads, real playlist expansion, queue removal |
65
+ | [Captions to Markdown](#captions-to-markdown) | Caption language, timestamps/metadata, paragraph gap, save/copy options, actual `.md` completion |
66
+ | [Settings and history](#settings-and-history) | Output directory, video/audio quality, exact format selectors, notifications, individual download, isolated history clear |
67
+ | [Update center](#update-center) | Published Windows app checks the live release, saves preferences and checks binary status |
68
+ | [CLI inspection and search](#cli-inspection-and-search) | `info`, `formats`, `languages`, keyword search and source metadata |
69
+ | [CLI download and batch JSON](#cli-download-and-batch-json) | Direct download, URL-list batch, concurrency, stdout JSON / stderr NDJSON |
70
+ | [CLI transcript and media Markdown](#cli-transcript-and-media-markdown) | Caption `.md` and combined media/Markdown output, actual generated file text |
71
+ | [CLI channel archive](#cli-channel-archive) | Capped channel collection → ordered Markdown files in a dedicated job folder |
72
+ | [CLI setup and updates](#cli-setup-and-updates) | Private installation, version/help, binary setup, doctor, update check/download/apply |
73
+
74
+ ### Video download
75
+
76
+ Paste an original video URL, select MP4, run the queue, and inspect the real saved file path. The recording uses the published Windows 1.18.0 app, not a recreated interface.
77
+
78
+ ![Actual video URL to saved MP4](assets/demo/features/01-video-download.gif)
79
+
80
+ [MP4](assets/demo/features/01-video-download.mp4) · [Capture evidence](assets/demo/features/01-video-download.json)
81
+
82
+ ### Audio extraction
83
+
84
+ Select MP3 for the same media workflow. The original clip's audio is extracted into a real `.mp3` file and recorded in history.
85
+
86
+ ![Actual MP3 extraction and history](assets/demo/features/02-audio-extraction.gif)
87
+
88
+ [MP4](assets/demo/features/02-audio-extraction.mp4) · [Capture evidence](assets/demo/features/02-audio-extraction.json)
89
+
90
+ ### Search and queue
91
+
92
+ Search YouTube, add a result and switch grid/list views. Then inspect all 12 registered search sources: the recording shows successful native/index results **and** the actual source failures, without hiding blocked indexes or inventing access.
93
+
94
+ ![Actual search, attribution, partial errors and queue controls](assets/demo/features/03-search-and-queue.gif)
95
+
96
+ [MP4](assets/demo/features/03-search-and-queue.mp4) · [Capture evidence](assets/demo/features/03-search-and-queue.json)
97
+
98
+ ### TXT batches and playlists
99
+
100
+ Import a real two-URL `.txt` file through the native picker and download both original clips. The second segment expands the official Blender Studio Logs playlist and removes a queue item; that segment is **metadata-only**.
101
+
102
+ ![Actual TXT batch download and playlist queue](assets/demo/features/04-batch-and-playlist.gif)
103
+
104
+ [MP4](assets/demo/features/04-batch-and-playlist.mp4) · [Capture evidence](assets/demo/features/04-batch-and-playlist.json)
105
+
106
+ ### Captions to Markdown
107
+
108
+ Use available English captions, timestamps, metadata and paragraph grouping. The Save `.md` and Copy-to-clipboard checkboxes control the output; the status panel shows the actual saved file. Advanced cookies/proxy controls are shown without using private credentials. There is no in-app Markdown editor or silent speech-to-text fallback.
109
+
110
+ ![Actual caption settings and completed Markdown file](assets/demo/features/05-captions-to-markdown.gif)
111
+
112
+ [MP4](assets/demo/features/05-captions-to-markdown.mp4) · [Capture evidence](assets/demo/features/05-captions-to-markdown.json)
113
+
114
+ ### Settings and history
115
+
116
+ Choose a native output directory, change quality and per-item notification preferences, then perform an individual download. Inspect and clear **only the filming profile's history**. A second segment exercises real video/audio format-ID selectors against an original HLS fixture and saves the resulting MP4.
117
+
118
+ ![Actual output settings, format selection and isolated history](assets/demo/features/06-settings-and-history.gif)
119
+
120
+ [MP4](assets/demo/features/06-settings-and-history.mp4) · [Capture evidence](assets/demo/features/06-settings-and-history.json)
121
+
122
+ ### Update center
123
+
124
+ The actual published Windows 1.18.0 payload queries the live release and reports that it is current. The recording also saves a check interval and checks yt-dlp/FFmpeg status. It does **not** fabricate a newer app update; unsigned macOS uses the verified-DMG/manual-install flow described below.
125
+
126
+ ![Actual published app update and binary status checks](assets/demo/features/07-update-center.gif)
127
+
128
+ [MP4](assets/demo/features/07-update-center.mp4) · [Capture evidence](assets/demo/features/07-update-center.json)
129
+
130
+ ### CLI inspection and search
131
+
132
+ Read metadata, format IDs and available caption languages before downloading. Keyword search exposes source attribution rather than treating every result as guaranteed downloadable media.
133
+
134
+ ![Actual CLI metadata, formats, languages and search](assets/demo/features/08-cli-inspect.gif)
135
+
136
+ [MP4](assets/demo/features/08-cli-inspect.mp4) · [Capture evidence](assets/demo/features/08-cli-inspect.json)
137
+
138
+ ### CLI download and batch JSON
139
+
140
+ Run a direct download and a bounded-concurrency URL-list batch. Actual output files, final stdout JSON and progress NDJSON on stderr are suitable for scripts and agents; they are not simulated terminal responses.
141
+
142
+ ![Actual CLI download and concurrent batch JSON output](assets/demo/features/09-cli-batch-json.gif)
143
+
144
+ [MP4](assets/demo/features/09-cli-batch-json.mp4) · [Capture evidence](assets/demo/features/09-cli-batch-json.json)
145
+
146
+ ### CLI transcript and media Markdown
147
+
148
+ Generate frontmatter Markdown from the hand-authored Korean and English caption tracks — first to stdout, then into `notes/`. The recording shows the real generated filename so the output contract is visible.
149
+
150
+ ![Actual CLI transcript and media Markdown files](assets/demo/features/10-cli-media-markdown.gif)
151
+
152
+ [MP4](assets/demo/features/10-cli-media-markdown.mp4) · [Capture evidence](assets/demo/features/10-cli-media-markdown.json)
153
+
154
+ ### CLI channel archive
155
+
156
+ Use `channel to-md` with a limit to resolve the real Blender YouTube channel into a dedicated `Blender-channel-md-*` folder of numbered caption notes. Channel metadata remains distinguishable from a media download; no video files are downloaded.
157
+
158
+ ![Actual CLI channel metadata to ordered Markdown archive](assets/demo/features/11-cli-channel-archive.gif)
159
+
160
+ [MP4](assets/demo/features/11-cli-channel-archive.mp4) · [Capture evidence](assets/demo/features/11-cli-channel-archive.json)
161
+
162
+ ### CLI setup and updates
163
+
164
+ Install the real release ZIP under a private prefix without changing the filming machine's shell profile, inspect version/doctor output and run update operations. The release bootstrap provisions its own Node.js 24; consumers do not need a preinstalled Node runtime. The Node download/install wait is visibly labeled as time-compressed.
165
+
166
+ ![Actual private CLI install, setup, diagnostics and updates](assets/demo/features/12-cli-setup-update.gif)
167
+
168
+ [MP4](assets/demo/features/12-cli-setup-update.mp4) · [Capture evidence](assets/demo/features/12-cli-setup-update.json)
169
+
170
+
50
171
  ## Brand
51
172
 
52
173
  Flucto's logo is a wave-download mark: the `🌊` idea reshaped into a cyan-to-violet flow that curls like a wave and lands as a download arrow. The mark is used consistently across the packaged app icon, favicon, Apple touch icon, web manifest, and social preview card.
@@ -70,9 +191,23 @@ Brand assets live in:
70
191
  | `MP4` | Video files from supported URLs | Archiving videos, clips, playlists, and social media posts |
71
192
  | `MP3` | Extracted audio files | Podcasts, lectures, music, and offline listening |
72
193
  | `MD` | Markdown transcript files from available captions/subtitles | Research notes, summaries, quote extraction, and searchable archives |
194
+ | `Images` | Available image files from supported posts | Saving image posts and carousels |
195
+
196
+ To download post images, paste a supported post URL, select **Images**, review the extracted image list, then run the queue. Files are saved in the configured downloads directory with sanitized post-title names and an index. Extraction uses image URLs exposed by the installed `yt-dlp` extractor or the Threads adapter; platforms or posts that expose no image URLs are unsupported. Flucto does not scrape logged-in pages or bypass access controls. Failed images remain queued for retry, and successful images are removed from the queue.
73
197
 
74
198
  Markdown conversion is caption-based. If a platform or video does not expose captions/subtitles through `yt-dlp`, Flucto reports the transcript as unavailable instead of silently falling back to speech-to-text. No Python/FastAPI server, Whisper runtime, or external transcription service is embedded.
75
199
 
200
+ ## Reference-video craft analysis (experimental)
201
+
202
+ This feature analyzes a local or permitted reference video to help plan a similar production. Flucto uses FFmpeg/FFprobe signals for shot candidates and coarse visual/audio measurements; if you opt in, an image-capable model accessed through your own Codex CLI login can label sampled frames. Results are **inferences for human review**, not verified facts, calibrated confidence, or a promise of shot-for-shot reproduction.
203
+
204
+ - **Privacy and consent:** Frames are sent to Codex only after you explicitly approve the run. Flucto passes frame data in memory and does not save frame images or Codex credentials. Codex-side handling/retention is governed by Codex policies.
205
+ - **Setup:** Install and authenticate Codex CLI with `codex login`, then select an image-capable model in the desktop settings. CLI users set `FLUCTO_VISION_PROVIDER=codex-cli` and `FLUCTO_VISION_MODEL`; the CLI also requires `--allow-vision-api` for consent. Account access and quota are not guaranteed.
206
+ - **Reviewable output:** `analysis.json` is canonical; CSV files provide review/export views. Evidence references, request outcomes and partial-analysis reasons are included.
207
+ - **Early implementation limits:** Live Codex use has passed only a one-call integration smoke; this is not an accuracy benchmark. Real-video FFmpeg/FFprobe analysis was exercised on Linux x64 only. Cross-platform package validation passed on Windows, Linux, and macOS (macOS package smoke on Intel); GPL redistribution/source obligations still need legal review. Do not treat analysis accuracy as validated.
208
+
209
+ See the [analysis guide](docs/cinematic-craft-analysis-user-guide.md) for setup, CLI examples, output details, and limitations.
210
+
76
211
  ## Video Search
77
212
 
78
213
  In the desktop app, **Search videos** defaults to **All sites (integrated)** and searches all 12 registered sites. Choose an individual site to narrow the search, enter a keyword, and click **Add** beside a result to use the existing download queue. Results show their site and **native** or **index** search method. Expand **Search sources** for per-site counts, actual errors, native-search restrictions, and site/index search links. A failed site does not hide the other sites' results.
@@ -94,6 +229,22 @@ flucto download "<originalUrl from a search result>" --format mp4 --output-dir .
94
229
 
95
230
  `--limit` is a **total** result cap of 1–50 (default 20), not a per-site output quota. Integrated search interleaves source ranks and removes duplicate original URLs. Search does not provision media binaries. JSON contains `platform`, `query`, annotated `videos` (`platform`, `searchMethod`), and `sources` (`platform`, `method`, `count`, `searchUrl`, optional `error` and `nativeError`). Source counts describe fetched results before the integrated cap, so their sum can exceed the displayed total. Single-site responses also include `searchUrl`. Partial failures and successful empty searches exit 0; an entirely failed search includes top-level `error` and exits 4.
96
231
 
232
+ For coding-agent workflows, Flucto also ships a separate opt-in skill adapter. It defaults to one YouTube search, preserves per-platform errors and metric/date uncertainty, and does not download candidates. See the [social-search skill setup and usage guide](docs/social-search-skill-guide.md).
233
+
234
+ ### AI video discovery
235
+
236
+ `flucto discover` searches existing providers for public AI-video disclosures, then classifies only public disclosure metadata returned by a supported search provider. An optional free-text query narrows retrieval but never counts as evidence; titles and search phrases are not classification evidence. With no query, discovery uses general AI-video phrases. Examples:
237
+
238
+ ```bash
239
+ flucto discover --platform dailymotion --limit 10 --sort popularity --json
240
+ flucto discover "AI animation" --platform all --status confirmed
241
+ ```
242
+
243
+ JSON includes the optional normalized query, candidate classification/evidence, original and canonical URLs, matched queries, available view counts, platform-relative popularity basis, and per-query/source reports. `--limit` caps the entire result set at 1–50 (default 20); `--status` accepts `confirmed`, `likely`, `uncertain`, `not_ai`, or `unavailable`; `--sort` accepts `relevance` or `popularity`. Missing metadata stays unavailable and missing views stay absent. The current Dailymotion search mapping exposes public descriptions for direct creator disclosures; most registered providers do not expose such disclosure metadata in their search results, so search alone may yield no confirmed candidates. This feature does not fetch individual video pages, analyze video/audio, or prove provenance. It does not download candidates.
244
+ [ docs/architecture-extensible-platforms.md#B484]
245
+
246
+ Only an explicit creator statement identifying the media as AI-generated, or an authoritative platform AI label, can yield `confirmed`. Generic AI hashtags or fragments remain `uncertain` at most; a title or search phrase never counts as evidence. Sources that do not return disclosure metadata are marked `unavailable`, not `not_ai`.
247
+
97
248
  | Site | Search method | Download method / restrictions |
98
249
  | --- | --- | --- |
99
250
  | YouTube | Public results page and Innertube continuation; public video index fallback | Existing `yt-dlp` adapter; captions/transcripts and authorized download settings remain supported. |
@@ -147,18 +298,10 @@ No existing Node.js installation or administrator access is required. The bootst
147
298
  Use `-InstallDir DIR -NoProfile` with `install.ps1`, or `--install-dir DIR --no-profile` with `install.sh`, for an isolated installation without persistent PATH changes. Windows bootstrap execution policy is process-scoped; it does not change the user's policy. CLI launchers use `.cmd`, so subsequent commands work in restricted PowerShell. PowerShell reserves `fl` for `Format-List`: use `flucto` or `fl.cmd` there; `fl` works in cmd.exe and POSIX shells.
148
299
 
149
300
 
150
- ### Demo: channel → Markdown
151
-
152
- ![flucto channel to-md demo](assets/demo/flucto-channel-to-md.gif)
301
+ ### CLI demos
153
302
 
154
- ```bash
155
- # Real command (creates a dedicated job folder under --out)
156
- flucto channel to-md "@LIFECODEofficial" --limit 100 --out ./notes
157
- # → ./notes/<channel>-channel-md-<timestamp>/001_….md …
158
- ```
303
+ See the actual recordings above for [inspection/search](#cli-inspection-and-search), [download/batch JSON](#cli-download-and-batch-json), [transcript/media Markdown](#cli-transcript-and-media-markdown), [channel archives](#cli-channel-archive), and [private setup/updates](#cli-setup-and-updates).
159
304
 
160
- Demo assets: `assets/demo/flucto-channel-to-md.gif`, `assets/demo/flucto-channel-to-md.mp4`
161
- (MP4 is used for Threads / social video posts; GIF for README embeds.)
162
305
 
163
306
  ### Build and run locally
164
307
 
@@ -179,14 +322,17 @@ Packaged releases expose both commands through `package.json`'s `bin` entry. Sho
179
322
  | Command | Short form | Purpose | Typical output |
180
323
  | --- | --- | --- | --- |
181
324
  | `flucto doctor` | `fl doc` | Verify `yt-dlp` and `ffmpeg` discovery | Binary paths and versions |
325
+ | `flucto skill install --agent <pi|codex|claude|all>` | — | Explicitly install bundled social-search agent skill (no media binary setup or network call) | Agent skill directory; refuses existing targets unless `--force` backs them up |
182
326
  | `flucto setup` | `fl s` | Provision missing managed `yt-dlp` and `ffmpeg` binaries | Setup status, paths, versions, and fix guidance |
183
327
  | `flucto info <url>` | `fl i <url>` | Read media metadata | id, title, thumbnail, duration, uploader, view count |
184
- | `flucto search "<keyword>" --platform <site>` | — | Search the five supported video sites | Video metadata and original download URLs |
328
+ | `flucto search "<keyword>" --platform <site>` | — | Search all 12 registered video sites or one selected site | Annotated video metadata, original URLs and per-source status |
185
329
  | `flucto formats <url>` | `fl f <url>` | List downloadable formats | format id, extension, resolution, note |
186
330
  | `flucto download <url>` | `fl d <url>` | Download MP4 video or MP3 audio | Generated media file |
187
331
  | `flucto languages <url>` | `fl l <url>` | List available caption languages | language code/name and auto/manual flag |
188
332
  | `flucto transcript <url>` | `fl t <url>` | Convert available captions/subtitles to Markdown | `.md` file or stdout Markdown |
189
333
  | `flucto md <url>` | `fl md <url>` | Download media and convert to Markdown in one step | `.md` file with metadata + transcript |
334
+ | `flucto batch urls.txt` or `flucto batch <Threads-profile-url>` | `fl b <source>` | Process URL lists or enumerate public video posts from a Threads profile, with bounded concurrency | Caller-selected output directory, per-item results and progress |
335
+ | `flucto channel to-md <channel>` | — | Export a capped channel to numbered Markdown notes | Dedicated channel job folder and ordered `.md` files |
190
336
  | `flucto update check` | `fl u check` | Check GitHub releases for a newer Flucto version | Current/latest version and recommended asset |
191
337
  | `flucto update download` | `fl u download` | Download the recommended GitHub release asset | Downloaded asset path and checksum status |
192
338
  | `flucto update apply` | `fl u apply` | Update the CLI in its existing private/npm prefix | Update result or source-install instructions |
@@ -355,7 +501,7 @@ Flucto uses GitHub Actions, maintained release-it version/changelog tooling and
355
501
 
356
502
  The reusable `ci.yml` workflow also validates pull requests and pushes to development branches. All jobs use Node.js 24 and lockfile-based `npm ci` installs. Run the same checks locally with `npm run lint`, `npm run typecheck`, `npm test`, and `npm run build`.
357
503
 
358
- Release prediction is read-only Conventional Commit analysis, without publishing plugins or npm authentication. Native runners build and actually install/start their packages, exercise CLI and desktop MP3 conversion, verify persisted settings and capture screenshots. Publication bumps version/changelog metadata, atomically pushes the release branch and tag, then verifies their remote identity and that application code/dependencies still match the native build source before npm publication. GitHub releases remain drafts until all normalized assets have been uploaded. A `feat` commit triggers a minor release; do not create a competing release tag.
504
+ Release prediction is read-only Conventional Commit analysis, without publishing plugins or npm authentication. Native runners build and actually install/start their packages, exercise CLI and desktop MP3 conversion, verify persisted settings and capture screenshots. The common CLI archive is built once and installed unchanged on every native OS; the same universal DMG must also pass on a separate native Intel Mac runner. Publication bumps version/changelog metadata, atomically pushes the release branch and tag, then verifies their remote identity and that application code/dependencies still match the native build source before npm publication. GitHub releases remain drafts until all normalized assets have been uploaded. A `feat` commit triggers a minor release; do not create a competing release tag.
359
505
 
360
506
  npm publishing uses GitHub Actions OIDC trusted publishing, not `NPM_TOKEN`. Register the publisher in the npm package's **Settings → Trusted Publisher** section:
361
507
 
@@ -460,7 +606,7 @@ For user-facing changes, include concrete behavior in the commit subject or body
460
606
  - Use Node.js 24 and `npm ci` when reproducing CI results. `npm audit --omit=dev` checks the CLI/runtime dependency tree; also run the full `npm audit` because desktop packaging and publication depend on development tools.
461
607
  - Electron stays on the patched 41.x line (minimum 41.10.6). Electron 42+ requires code signing for native macOS notifications; establish signing before that upgrade rather than silently dropping notifications in unsigned builds.
462
608
  - The `concurrently`-scoped `shell-quote` override selects patched 1.11.x because the upstream release still pins 1.9.0. Remove the override when upstream accepts the patched version.
463
- - The 2026-10-07 lockfile audit reports zero production vulnerabilities and 22 development-tool findings (12 high, 10 moderate). Remaining roots include unpatched `braces`/`sprintf-js` and dependencies bundled inside npm 11.21.0. Do not treat the full audit as passing or run `npm audit fix --force`: its suggested release-plugin downgrades would change the trusted-publishing toolchain.
609
+ - The normalized-installation lockfile's full `npm audit` on 2026-10-07 reports **0 vulnerabilities**, including development tools. Maintained release-it tooling replaces the obsolete publication dependencies; the release runner installs npm 12.2.0 for trusted OIDC publishing. Do not hide future findings or use `npm audit fix --force` to downgrade release plugins.
464
610
 
465
611
  ## Architecture & Tech Stack
466
612
 
@@ -495,9 +641,9 @@ Contributions are welcome! Whether it's fixing bugs, improving the documentation
495
641
  4. Push to the Branch (`git push origin feature/AmazingFeature`)
496
642
  5. Open a Pull Request
497
643
 
498
- ## License
644
+ ## Source code
499
645
 
500
- Distributed under the MIT License. See `LICENSE` for more information.
646
+ The source is publicly available on GitHub. This repository currently has no `LICENSE` file; do not infer redistribution terms from its public visibility.
501
647
 
502
648
  <p align="center">
503
649
  <strong>Made with ❤️ by Flucto Team</strong>
@@ -1,5 +1,6 @@
1
1
  import { parseArgs } from 'util';
2
2
  import { VIDEO_SEARCH_PLATFORM_IDS } from '../shared/videoSearchPlatforms.js';
3
+ import { DEFAULT_FRAMES_PER_SHOT, DEFAULT_MAX_API_CALLS, DEFAULT_SCENE_THRESHOLD, } from '../shared/analysisTypes.js';
3
4
  const videoQualities = new Set(['4k', '1440p', '1080p', '720p', '480p', '360p', 'worst']);
4
5
  const audioQualities = new Set(['320kbps', '256kbps', '192kbps', '128kbps', '64kbps', 'worst']);
5
6
  const mediaFormats = new Set(['mp4', 'mp3', 'md']);
@@ -17,12 +18,16 @@ const commandAliases = {
17
18
  info: 'info',
18
19
  i: 'info',
19
20
  search: 'search',
21
+ discover: 'discover',
20
22
  formats: 'formats',
21
- f: 'formats',
22
23
  languages: 'languages',
23
24
  l: 'languages',
25
+ craft: 'craft',
26
+ analyze: 'analyze',
27
+ an: 'analyze',
24
28
  doctor: 'doctor',
25
29
  doc: 'doctor',
30
+ skill: 'skill',
26
31
  setup: 'setup',
27
32
  s: 'setup',
28
33
  update: 'update',
@@ -93,6 +98,45 @@ const parseSearchScope = (value) => {
93
98
  }
94
99
  return raw;
95
100
  };
101
+ const aiMediaStatuses = {
102
+ confirmed: true, likely: true, uncertain: true, not_ai: true, unavailable: true,
103
+ };
104
+ const parseDiscoveryStatus = (value) => {
105
+ const raw = stringOption(value);
106
+ if (!raw)
107
+ return undefined;
108
+ if (!aiMediaStatuses[raw])
109
+ throw new CliUsageError('--status must be one of confirmed, likely, uncertain, not_ai, unavailable.');
110
+ return raw;
111
+ };
112
+ const parseDiscoverySort = (value) => {
113
+ const raw = stringOption(value);
114
+ if (!raw)
115
+ return undefined;
116
+ if (raw !== 'relevance' && raw !== 'popularity')
117
+ throw new CliUsageError('--sort must be relevance or popularity.');
118
+ return raw;
119
+ };
120
+ const parseFloatOption = (value, fallback, min, max, label) => {
121
+ const raw = stringOption(value);
122
+ if (!raw)
123
+ return fallback;
124
+ const parsed = Number.parseFloat(raw);
125
+ if (!Number.isFinite(parsed) || parsed < min || parsed > max) {
126
+ throw new CliUsageError(`${label} must be a number from ${min} to ${max}.`);
127
+ }
128
+ return parsed;
129
+ };
130
+ const parseIntOption = (value, fallback, min, max, label) => {
131
+ const raw = stringOption(value);
132
+ if (!raw)
133
+ return fallback;
134
+ const parsed = Number.parseInt(raw, 10);
135
+ if (!Number.isInteger(parsed) || parsed < min || parsed > max) {
136
+ throw new CliUsageError(`${label} must be an integer from ${min} to ${max}.`);
137
+ }
138
+ return parsed;
139
+ };
96
140
  export const parseCliArgs = (argv) => {
97
141
  const parsed = parseArgs({
98
142
  args: argv,
@@ -126,6 +170,19 @@ export const parseCliArgs = (argv) => {
126
170
  'check-only': { type: 'boolean' },
127
171
  'yt-dlp-only': { type: 'boolean' },
128
172
  platform: { type: 'string' },
173
+ status: { type: 'string' },
174
+ sort: { type: 'string' },
175
+ craft: { type: 'string' },
176
+ skills: { type: 'string' },
177
+ 'book-extracts': { type: 'string' },
178
+ 'allow-vision-api': { type: 'boolean' },
179
+ 'allow-download': { type: 'boolean' },
180
+ 'dry-run': { type: 'boolean' },
181
+ agent: { type: 'string' },
182
+ history: { type: 'string' },
183
+ 'scene-threshold': { type: 'string' },
184
+ 'max-frames-per-shot': { type: 'string' },
185
+ 'max-api-calls': { type: 'string' },
129
186
  },
130
187
  });
131
188
  if (booleanOption(parsed.values.version)) {
@@ -146,6 +203,9 @@ export const parseCliArgs = (argv) => {
146
203
  throw new CliUsageError('channel subcommand must be: to-md');
147
204
  }
148
205
  }
206
+ if (rawCommand === 'craft' && positional[0] === 'build') {
207
+ positional = positional.slice(1);
208
+ }
149
209
  const command = commandAliases[rawCommand];
150
210
  if (!command || command === 'channel' || !commands.has(rawCommand)) {
151
211
  throw new CliUsageError(`Unknown command: ${rawCommand}`);
@@ -175,7 +235,9 @@ const baseOptions = (command, positional, values) => {
175
235
  metadata: booleanOption(values.metadata) ? true : booleanOption(values['no-metadata']) ? false : undefined,
176
236
  stdout: booleanOption(values.stdout),
177
237
  concurrency: parseConcurrency(values.concurrency, concurrencyFallback),
178
- limit: parseLimit(values.limit, command === 'search' ? 20 : 100),
238
+ limit: parseLimit(values.limit, command === 'search' || command === 'discover' ? 20 : 100),
239
+ status: parseDiscoveryStatus(values.status),
240
+ sort: parseDiscoverySort(values.sort),
179
241
  force: booleanOption(values.force),
180
242
  checkOnly: booleanOption(values['check-only']),
181
243
  ytDlpOnly: booleanOption(values['yt-dlp-only']),
@@ -185,6 +247,17 @@ const baseOptions = (command, positional, values) => {
185
247
  cookiesFromBrowser: stringOption(values['cookies-from-browser']),
186
248
  proxy: stringOption(values.proxy),
187
249
  impersonate: stringOption(values.impersonate),
250
+ craftDir: stringOption(values.craft),
251
+ skillsRoot: stringOption(values.skills),
252
+ bookExtracts: stringOption(values['book-extracts']),
253
+ allowVisionApi: booleanOption(values['allow-vision-api']),
254
+ allowDownload: booleanOption(values['allow-download']),
255
+ dryRun: booleanOption(values['dry-run']),
256
+ agent: stringOption(values.agent),
257
+ history: stringOption(values.history),
258
+ sceneThreshold: parseFloatOption(values['scene-threshold'], DEFAULT_SCENE_THRESHOLD, 0, 1, '--scene-threshold'),
259
+ maxFramesPerShot: parseIntOption(values['max-frames-per-shot'], DEFAULT_FRAMES_PER_SHOT, 1, 10, '--max-frames-per-shot'),
260
+ maxApiCalls: parseIntOption(values['max-api-calls'], DEFAULT_MAX_API_CALLS, 0, 5000, '--max-api-calls'),
188
261
  };
189
262
  };
190
263
  const parseUpdateAction = (command, positional) => {
@@ -203,6 +276,13 @@ const validateCommand = (options) => {
203
276
  if (options.limit > 50)
204
277
  throw new CliUsageError('Search --limit must be from 1 to 50.');
205
278
  }
279
+ if (options.command === 'discover') {
280
+ if (options.positional.length > 1) {
281
+ throw new CliUsageError('discover accepts at most one quoted search query.');
282
+ }
283
+ if (options.limit > 50)
284
+ throw new CliUsageError('Discover --limit must be from 1 to 50.');
285
+ }
206
286
  if (['download', 'transcript', 'md', 'info', 'formats', 'languages'].includes(options.command) && options.positional.length !== 1) {
207
287
  throw new CliUsageError(`${options.command} requires exactly one URL.`);
208
288
  }
@@ -212,6 +292,51 @@ const validateCommand = (options) => {
212
292
  if (options.command === 'batch' && options.positional.length !== 1) {
213
293
  throw new CliUsageError('batch requires exactly one file path.');
214
294
  }
295
+ if (options.command === 'craft') {
296
+ if (options.positional.length > 0) {
297
+ throw new CliUsageError('craft accepts only the build subcommand; extra arguments are not allowed.');
298
+ }
299
+ if (!options.skillsRoot && !options.bookExtracts) {
300
+ throw new CliUsageError('craft build requires --skills <references-root> and/or --book-extracts <json>.');
301
+ }
302
+ }
303
+ if (options.command === 'analyze') {
304
+ const video = options.positional.length === 1 ? options.positional[0].trim() : '';
305
+ if (options.positional.length > 1 || (!video && !options.history)) {
306
+ throw new CliUsageError('analyze requires exactly one <videoPath> or --history <n>.');
307
+ }
308
+ if (!options.craftDir) {
309
+ throw new CliUsageError('analyze requires --craft <dir> pointing at a built craft taxonomy.');
310
+ }
311
+ const analyzeTarget = options.positional[0]?.trim() ?? '';
312
+ const isUrl = /^https:\/\//i.test(analyzeTarget);
313
+ if (isUrl && !options.allowDownload)
314
+ throw new CliUsageError('analyze URL input downloads media; pass --allow-download after confirming you have permission.');
315
+ if (options.allowVisionApi) {
316
+ const provider = process.env.FLUCTO_VISION_PROVIDER?.trim().toLowerCase() ?? 'openai';
317
+ if (provider !== 'openai' && provider !== 'codex-cli') {
318
+ throw new CliUsageError('FLUCTO_VISION_PROVIDER must be openai or codex-cli.');
319
+ }
320
+ const codexCli = provider === 'codex-cli';
321
+ const missingConfiguration = codexCli
322
+ ? !process.env.FLUCTO_VISION_MODEL
323
+ : (!process.env.FLUCTO_VISION_BASE_URL || !process.env.FLUCTO_VISION_API_KEY || !process.env.FLUCTO_VISION_MODEL);
324
+ if (missingConfiguration) {
325
+ throw new CliUsageError(codexCli
326
+ ? '--allow-vision-api with codex-cli needs FLUCTO_VISION_MODEL and an authenticated Codex CLI installation (or FLUCTO_CODEX_PATH).'
327
+ : '--allow-vision-api needs FLUCTO_VISION_BASE_URL, FLUCTO_VISION_API_KEY and FLUCTO_VISION_MODEL.');
328
+ }
329
+ }
330
+ }
331
+ if (options.command === 'skill') {
332
+ if (options.positional.length !== 1 || options.positional[0] !== 'install') {
333
+ throw new CliUsageError('skill supports: skill install --agent pi|codex|claude|all [--dry-run] [--force].');
334
+ }
335
+ const agent = options.agent;
336
+ if (!agent || !['pi', 'codex', 'claude', 'all'].includes(agent)) {
337
+ throw new CliUsageError('skill install requires --agent pi, codex, claude, or all.');
338
+ }
339
+ }
215
340
  if (options.command === 'update') {
216
341
  const expected = options.updateAction === 'check' ? [0, 1] : [1];
217
342
  if (!expected.includes(options.positional.length)) {