flucto 1.25.2 → 1.27.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 (93) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +8 -5
  3. package/dist-electron/cli/args.js +78 -1
  4. package/dist-electron/cli/args.js.map +1 -1
  5. package/dist-electron/cli/index.js +249 -43
  6. package/dist-electron/cli/index.js.map +1 -1
  7. package/dist-electron/cli/output.js +18 -2
  8. package/dist-electron/cli/output.js.map +1 -1
  9. package/dist-electron/main/analysis/agentLabelValidation.js +15 -0
  10. package/dist-electron/main/analysis/agentLabelValidation.js.map +1 -0
  11. package/dist-electron/main/analysis/avCommands.js +19 -0
  12. package/dist-electron/main/analysis/avCommands.js.map +1 -1
  13. package/dist-electron/main/analysis/cameraMotion.js +212 -0
  14. package/dist-electron/main/analysis/cameraMotion.js.map +1 -0
  15. package/dist-electron/main/analysis/contactSheet.js +106 -0
  16. package/dist-electron/main/analysis/contactSheet.js.map +1 -0
  17. package/dist-electron/main/analysis/csvWriter.js +12 -8
  18. package/dist-electron/main/analysis/csvWriter.js.map +1 -1
  19. package/dist-electron/main/analysis/dialogueAlign.js +27 -0
  20. package/dist-electron/main/analysis/dialogueAlign.js.map +1 -0
  21. package/dist-electron/main/analysis/ffmpegSignals.js +15 -4
  22. package/dist-electron/main/analysis/ffmpegSignals.js.map +1 -1
  23. package/dist-electron/main/analysis/framePlan.js +84 -0
  24. package/dist-electron/main/analysis/framePlan.js.map +1 -0
  25. package/dist-electron/main/index.js +22 -3
  26. package/dist-electron/main/index.js.map +1 -1
  27. package/dist-electron/main/media/ytDlp.js +7 -4
  28. package/dist-electron/main/media/ytDlp.js.map +1 -1
  29. package/dist-electron/main/platforms/bilibili.js +7 -2
  30. package/dist-electron/main/platforms/bilibili.js.map +1 -1
  31. package/dist-electron/main/platforms/downloadFailures.js +35 -0
  32. package/dist-electron/main/platforms/downloadFailures.js.map +1 -0
  33. package/dist-electron/main/platforms/threads.js +12 -0
  34. package/dist-electron/main/platforms/threads.js.map +1 -1
  35. package/dist-electron/main/platforms/twitter.js +4 -30
  36. package/dist-electron/main/platforms/twitter.js.map +1 -1
  37. package/dist-electron/main/platforms/xStrategy.js +96 -0
  38. package/dist-electron/main/platforms/xStrategy.js.map +1 -0
  39. package/dist-electron/main/search/reddit.js +21 -16
  40. package/dist-electron/main/search/reddit.js.map +1 -1
  41. package/dist-electron/main/search/socialSearch.js +61 -16
  42. package/dist-electron/main/search/socialSearch.js.map +1 -1
  43. package/dist-electron/main/search/vimeo.js +8 -2
  44. package/dist-electron/main/search/vimeo.js.map +1 -1
  45. package/dist-electron/main/search/webIndexSearch.js +6 -1
  46. package/dist-electron/main/search/webIndexSearch.js.map +1 -1
  47. package/dist-electron/main/search/xApi.js +128 -0
  48. package/dist-electron/main/search/xApi.js.map +1 -0
  49. package/dist-electron/main/search/xLoginWindow.js +83 -0
  50. package/dist-electron/main/search/xLoginWindow.js.map +1 -0
  51. package/dist-electron/main/search/xNative.js +215 -0
  52. package/dist-electron/main/search/xNative.js.map +1 -0
  53. package/dist-electron/main/search/xSearch.js +220 -0
  54. package/dist-electron/main/search/xSearch.js.map +1 -0
  55. package/dist-electron/main/search/xSession.js +102 -0
  56. package/dist-electron/main/search/xSession.js.map +1 -0
  57. package/dist-electron/main/search/xSessionHandlers.js +147 -0
  58. package/dist-electron/main/search/xSessionHandlers.js.map +1 -0
  59. package/dist-electron/main/search/xTimeline.js +182 -0
  60. package/dist-electron/main/search/xTimeline.js.map +1 -0
  61. package/dist-electron/main/services/agentLabeling.js +846 -0
  62. package/dist-electron/main/services/agentLabeling.js.map +1 -0
  63. package/dist-electron/main/services/agentLabelingInstructions.js +43 -0
  64. package/dist-electron/main/services/agentLabelingInstructions.js.map +1 -0
  65. package/dist-electron/main/services/aiVideoDiscovery.js +4 -4
  66. package/dist-electron/main/services/aiVideoDiscovery.js.map +1 -1
  67. package/dist-electron/main/services/analysisReport.js +165 -19
  68. package/dist-electron/main/services/analysisReport.js.map +1 -1
  69. package/dist-electron/main/services/cinematicAnalysis.js +2 -1
  70. package/dist-electron/main/services/cinematicAnalysis.js.map +1 -1
  71. package/dist-electron/main/services/mediaDownload.js +31 -12
  72. package/dist-electron/main/services/mediaDownload.js.map +1 -1
  73. package/dist-electron/main/services/mediaInfo.js +17 -13
  74. package/dist-electron/main/services/mediaInfo.js.map +1 -1
  75. package/dist-electron/main/services/settingsDefaults.js +14 -0
  76. package/dist-electron/main/services/settingsDefaults.js.map +1 -1
  77. package/dist-electron/main/services/timelineExports.js +254 -0
  78. package/dist-electron/main/services/timelineExports.js.map +1 -0
  79. package/dist-electron/main/services/videoSearch.js +18 -8
  80. package/dist-electron/main/services/videoSearch.js.map +1 -1
  81. package/dist-electron/main/store.js +16 -2
  82. package/dist-electron/main/store.js.map +1 -1
  83. package/dist-electron/main/transcript/captionExtractor.js +6 -2
  84. package/dist-electron/main/transcript/captionExtractor.js.map +1 -1
  85. package/dist-electron/preload/index.cjs +8 -0
  86. package/dist-electron/preload/index.cjs.map +1 -1
  87. package/dist-electron/shared/agentLabelTypes.js +8 -0
  88. package/dist-electron/shared/agentLabelTypes.js.map +1 -0
  89. package/dist-electron/shared/analysisTypes.js.map +1 -1
  90. package/package.json +10 -1
  91. package/schemas/agent-labels.v1.schema.json +375 -0
  92. package/skills/flucto-media-research/SKILL.md +3 -2
  93. package/skills/flucto-media-research/references/shot-analysis.md +96 -0
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Closed label vocabularies. They must stay identical to the enums in
3
+ * schemas/agent-labels.v1.schema.json, which is what actually rejects a batch file.
4
+ */
5
+ export const SHOT_SIZES = ['macro', 'ecu', 'cu', 'mcu', 'ms', 'fs', 'ws', 'ews', 'topdown', 'other'];
6
+ export const SHOT_ANGLES = ['low', 'eye', 'high', 'top', 'pov', 'ots', 'dutch', 'other'];
7
+ export const CAMERA_MOTIONS = ['static', 'track', 'handheld', 'whip', 'push', 'pull', 'orbit', 'crane', 'tilt', 'pan', 'zoom', 'other'];
8
+ //# sourceMappingURL=agentLabelTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agentLabelTypes.js","sourceRoot":"","sources":["../../src/shared/agentLabelTypes.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,CAAU,CAAC;AAC9G,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAU,CAAC;AAClG,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"analysisTypes.js","sourceRoot":"","sources":["../../src/shared/analysisTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAgPH,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC;AACvC,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAC3C,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC;AACzC,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AACzC,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAEvC,8EAA8E;AAC9E,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAe,EAAU,EAAE;IACxD,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IACxC,MAAM,EAAE,GAAG,OAAO,GAAG,IAAI,CAAC;IAC1B,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAC5C,MAAM,CAAC,GAAG,QAAQ,GAAG,EAAE,CAAC;IACxB,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,EAAE,CAAC,CAAC;IAC3C,MAAM,CAAC,GAAG,QAAQ,GAAG,EAAE,CAAC;IACxB,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,EAAE,CAAC,CAAC;IACpC,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,KAAK,GAAG,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACrE,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC;AACvD,CAAC,CAAC;AAEF,oDAAoD;AACpD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAe,EAAU,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"analysisTypes.js","sourceRoot":"","sources":["../../src/shared/analysisTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAkPH,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC;AACvC,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAC3C,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC;AACzC,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AACzC,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAEvC,8EAA8E;AAC9E,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAe,EAAU,EAAE;IACxD,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IACxC,MAAM,EAAE,GAAG,OAAO,GAAG,IAAI,CAAC;IAC1B,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAC5C,MAAM,CAAC,GAAG,QAAQ,GAAG,EAAE,CAAC;IACxB,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,EAAE,CAAC,CAAC;IAC3C,MAAM,CAAC,GAAG,QAAQ,GAAG,EAAE,CAAC;IACxB,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,EAAE,CAAC,CAAC;IACpC,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,KAAK,GAAG,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACrE,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC;AACvD,CAAC,CAAC;AAEF,oDAAoD;AACpD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAe,EAAU,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "flucto",
3
3
  "productName": "Flucto",
4
- "version": "1.25.2",
4
+ "version": "1.27.0",
5
5
  "description": "Flucto - Creator-first media downloader for YouTube, Instagram, X, Reddit, and Bilibili.",
6
6
  "keywords": [
7
7
  "electron",
@@ -55,14 +55,23 @@
55
55
  "prepack": "npm run build:electron",
56
56
  "postinstall": "node scripts/install-agent-skills.mjs",
57
57
  "build:cli-release": "node scripts/build-cli-release.mjs",
58
+ "predist": "node scripts/setup-binaries.mjs",
58
59
  "dist": "npm run build && electron-builder",
60
+ "predist:linux": "node scripts/setup-binaries.mjs",
59
61
  "dist:linux": "npm run build && electron-builder --linux --publish never",
62
+ "predist:linux:appimage": "node scripts/setup-binaries.mjs",
60
63
  "dist:linux:appimage": "npm run build && electron-builder --linux AppImage --publish never",
64
+ "predist:mac": "node scripts/setup-binaries.mjs",
61
65
  "dist:mac": "npm run build && electron-builder --mac --universal",
66
+ "predist:mac:dmg": "node scripts/setup-binaries.mjs",
62
67
  "dist:mac:dmg": "npm run build && electron-builder --mac dmg --universal",
68
+ "predist:mac:zip": "node scripts/setup-binaries.mjs",
63
69
  "dist:mac:zip": "npm run build && electron-builder --mac zip --universal",
70
+ "predist:win": "node scripts/setup-binaries.mjs",
64
71
  "dist:win": "npm run build && electron-builder --win",
72
+ "predist:win:nsis": "node scripts/setup-binaries.mjs",
65
73
  "dist:win:nsis": "npm run build && electron-builder --win nsis",
74
+ "predist:all": "node scripts/setup-binaries.mjs",
66
75
  "dist:all": "npm run build && electron-builder -mwl",
67
76
  "pack": "npm run dist",
68
77
  "pack:linux": "npm run dist:linux",
@@ -0,0 +1,375 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://flucto.local/schemas/agent-labels.v1.schema.json",
4
+ "title": "Flucto agent shot label batch v1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "batchId",
9
+ "labeledBy",
10
+ "shots"
11
+ ],
12
+ "properties": {
13
+ "batchId": {
14
+ "type": "string",
15
+ "minLength": 1
16
+ },
17
+ "labeledBy": {
18
+ "type": "object",
19
+ "additionalProperties": false,
20
+ "required": [
21
+ "agent",
22
+ "model"
23
+ ],
24
+ "properties": {
25
+ "agent": {
26
+ "type": "string"
27
+ },
28
+ "model": {
29
+ "type": "string"
30
+ }
31
+ }
32
+ },
33
+ "shots": {
34
+ "type": "array",
35
+ "items": {
36
+ "$ref": "#/$defs/shot"
37
+ }
38
+ },
39
+ "scenes": {
40
+ "type": "array",
41
+ "items": {
42
+ "$ref": "#/$defs/scene"
43
+ }
44
+ }
45
+ },
46
+ "$defs": {
47
+ "beat": {
48
+ "type": "object",
49
+ "additionalProperties": false,
50
+ "required": [
51
+ "t",
52
+ "event",
53
+ "role"
54
+ ],
55
+ "properties": {
56
+ "t": {
57
+ "type": "number"
58
+ },
59
+ "event": {
60
+ "type": "string"
61
+ },
62
+ "role": {
63
+ "enum": [
64
+ "anticipation",
65
+ "launch",
66
+ "contact",
67
+ "reaction",
68
+ "trace",
69
+ "release",
70
+ "other"
71
+ ]
72
+ }
73
+ }
74
+ },
75
+ "character": {
76
+ "type": "object",
77
+ "additionalProperties": false,
78
+ "required": [
79
+ "ref"
80
+ ],
81
+ "properties": {
82
+ "ref": {
83
+ "type": "string"
84
+ },
85
+ "role": {
86
+ "type": [
87
+ "string",
88
+ "null"
89
+ ]
90
+ },
91
+ "expression": {
92
+ "type": [
93
+ "string",
94
+ "null"
95
+ ]
96
+ },
97
+ "pose": {
98
+ "type": [
99
+ "string",
100
+ "null"
101
+ ]
102
+ },
103
+ "gazeDirection": {
104
+ "type": [
105
+ "string",
106
+ "null"
107
+ ]
108
+ },
109
+ "action": {
110
+ "type": [
111
+ "string",
112
+ "null"
113
+ ]
114
+ },
115
+ "speakerGuess": {
116
+ "type": [
117
+ "boolean",
118
+ "null"
119
+ ]
120
+ }
121
+ }
122
+ },
123
+ "scene": {
124
+ "type": "object",
125
+ "additionalProperties": false,
126
+ "required": [
127
+ "sceneId",
128
+ "shotIds",
129
+ "rationale"
130
+ ],
131
+ "properties": {
132
+ "sceneId": {
133
+ "type": "string",
134
+ "minLength": 1
135
+ },
136
+ "shotIds": {
137
+ "type": "array",
138
+ "items": {
139
+ "type": "string"
140
+ }
141
+ },
142
+ "location": {
143
+ "type": [
144
+ "string",
145
+ "null"
146
+ ]
147
+ },
148
+ "summary": {
149
+ "type": [
150
+ "string",
151
+ "null"
152
+ ]
153
+ },
154
+ "rationale": {
155
+ "type": "string"
156
+ }
157
+ }
158
+ },
159
+ "shot": {
160
+ "type": "object",
161
+ "additionalProperties": false,
162
+ "required": [
163
+ "shotId"
164
+ ],
165
+ "properties": {
166
+ "shotId": {
167
+ "type": "string",
168
+ "minLength": 1
169
+ },
170
+ "shotSize": {
171
+ "enum": [
172
+ "macro",
173
+ "ecu",
174
+ "cu",
175
+ "mcu",
176
+ "ms",
177
+ "fs",
178
+ "ws",
179
+ "ews",
180
+ "topdown",
181
+ "other",
182
+ null
183
+ ]
184
+ },
185
+ "angle": {
186
+ "enum": [
187
+ "low",
188
+ "eye",
189
+ "high",
190
+ "top",
191
+ "pov",
192
+ "ots",
193
+ "dutch",
194
+ "other",
195
+ null
196
+ ]
197
+ },
198
+ "composition": {
199
+ "type": [
200
+ "string",
201
+ "null"
202
+ ]
203
+ },
204
+ "cameraMotion": {
205
+ "enum": [
206
+ "static",
207
+ "track",
208
+ "handheld",
209
+ "whip",
210
+ "push",
211
+ "pull",
212
+ "orbit",
213
+ "crane",
214
+ "tilt",
215
+ "pan",
216
+ "zoom",
217
+ "other",
218
+ null
219
+ ]
220
+ },
221
+ "cameraAxis": {
222
+ "type": [
223
+ "string",
224
+ "null"
225
+ ]
226
+ },
227
+ "lensFeel": {
228
+ "type": [
229
+ "string",
230
+ "null"
231
+ ]
232
+ },
233
+ "transitionIn": {
234
+ "type": [
235
+ "string",
236
+ "null"
237
+ ]
238
+ },
239
+ "technique": {
240
+ "type": "array",
241
+ "items": {
242
+ "type": "string"
243
+ }
244
+ },
245
+ "lightingType": {
246
+ "type": [
247
+ "string",
248
+ "null"
249
+ ]
250
+ },
251
+ "lightDirection": {
252
+ "type": [
253
+ "string",
254
+ "null"
255
+ ]
256
+ },
257
+ "palette": {
258
+ "type": [
259
+ "string",
260
+ "null"
261
+ ]
262
+ },
263
+ "contrast": {
264
+ "type": [
265
+ "string",
266
+ "null"
267
+ ]
268
+ },
269
+ "characters": {
270
+ "type": "array",
271
+ "items": {
272
+ "$ref": "#/$defs/character"
273
+ }
274
+ },
275
+ "location": {
276
+ "type": [
277
+ "string",
278
+ "null"
279
+ ]
280
+ },
281
+ "environment": {
282
+ "type": [
283
+ "string",
284
+ "null"
285
+ ]
286
+ },
287
+ "timeOfDay": {
288
+ "type": [
289
+ "string",
290
+ "null"
291
+ ]
292
+ },
293
+ "background": {
294
+ "type": [
295
+ "string",
296
+ "null"
297
+ ]
298
+ },
299
+ "props": {
300
+ "type": "array",
301
+ "items": {
302
+ "type": "string"
303
+ }
304
+ },
305
+ "directionNotes": {
306
+ "type": [
307
+ "string",
308
+ "null"
309
+ ]
310
+ },
311
+ "narrativeFunction": {
312
+ "type": [
313
+ "string",
314
+ "null"
315
+ ]
316
+ },
317
+ "screenDirection": {
318
+ "type": [
319
+ "string",
320
+ "null"
321
+ ]
322
+ },
323
+ "zone": {
324
+ "type": [
325
+ "string",
326
+ "null"
327
+ ]
328
+ },
329
+ "segment": {
330
+ "enum": [
331
+ "action",
332
+ "release",
333
+ "setpiece",
334
+ "dialogue",
335
+ "establishing",
336
+ "other",
337
+ null
338
+ ]
339
+ },
340
+ "threatInFrame": {
341
+ "type": [
342
+ "boolean",
343
+ "null"
344
+ ]
345
+ },
346
+ "lineup": {
347
+ "type": [
348
+ "boolean",
349
+ "null"
350
+ ]
351
+ },
352
+ "beats": {
353
+ "type": "array",
354
+ "items": {
355
+ "$ref": "#/$defs/beat"
356
+ }
357
+ },
358
+ "confidence": {
359
+ "type": [
360
+ "number",
361
+ "null"
362
+ ],
363
+ "minimum": 0,
364
+ "maximum": 1
365
+ },
366
+ "unseen": {
367
+ "type": "array",
368
+ "items": {
369
+ "type": "string"
370
+ }
371
+ }
372
+ }
373
+ }
374
+ }
375
+ }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: flucto-media-research
3
- description: Find public YouTube and SNS video references with Flucto CLI, then download selected media or save caption-based Markdown when requested. Use for 유튜브/SNS 자료 찾아줘, 영상 다운로드, 자막·내용을 md로 저장, or a supplied media URL. Handles missing-CLI installation via the official Flucto repository. Not a private-post/comment crawler, publisher, or silent speech-to-text service.
3
+ description: Find public YouTube and SNS video references with Flucto CLI, then download selected media or save caption-based Markdown when requested. Use for 유튜브/SNS 자료 찾아줘, 영상 다운로드, 자막·내용을 md로 저장, 컷·씬 분석/타임라인/레퍼런스 영상 연출 분석, or a supplied media URL. Handles missing-CLI installation via the official Flucto repository. Not a private-post/comment crawler, publisher, or silent speech-to-text service.
4
4
  ---
5
5
 
6
6
  # Flucto 자료 검색·다운로드·Markdown
@@ -16,6 +16,7 @@ description: Find public YouTube and SNS video references with Flucto CLI, then
16
16
  | “위 결과 중 이 두 영상을 내려받아줘” | 지정한 실제 URL만 MP4/MP3 다운로드 |
17
17
  | “이 영상 내용을 md로 저장해줘” | 제공되는 자막을 `flucto md`로 저장. 자막 없으면 불가 사유와 대안 보고 |
18
18
  | “이 채널의 최근 영상 10개를 md로” | 명시적 수량 상한으로 `channel to-md`. 전체 채널 무제한 수집 없음 |
19
+ | “이 레퍼런스 영상 컷·씬 분석/타임라인 뽑아줘” | [컷·씬 타임라인 분석](references/shot-analysis.md): `analyze prepare` → 시트를 직접 보고 라벨 → `merge`. 이미지를 못 읽는 모델이면 중단 |
19
20
 
20
21
  검색만 요청했으면 다운로드·자막 추출로 확대하지 않는다. 다운로드/변환 요청이 명확하면 같은 요청을 재승인받느라 멈추지 않되, 선택할 URL이 모호하거나 권한·로그인·비용이 달라지는 경우만 확인한다.
21
22
 
@@ -23,7 +24,7 @@ description: Find public YouTube and SNS video references with Flucto CLI, then
23
24
 
24
25
  1. PATH의 `flucto --version`, `flucto --help`를 확인한다. 현재 도움말에 필요한 `search`, `download`, `md` 명령/옵션이 있는지 확인한다. 기존 설치를 임의 업데이트하지 않는다.
25
26
  2. CLI가 없고 이 작업에 설치 권한이 주어졌으면 [공식 설치 절차](references/install.md)를 수행한다. 설치 권한이 없거나 호스트가 설치를 제한하면 구체적 이유를 보고하고 설치 승인을 요청한다. 이 스킬 등록 자체는 무관한 패키지·브라우저·계정 설치 승인이 아니다.
26
- 3. 실제 명령·출력 계약은 [CLI 작업 안내](references/commands.md)를 읽는다. 버전별 도움말이 다른 경우 확인한 기능만 사용한다. 없는 옵션·도구·API를 만들지 않는다.
27
+ 3. 실제 명령·출력 계약은 [CLI 작업 안내](references/commands.md)를 읽는다. 컷·씬 분석 요청이면 [컷·씬 타임라인 분석](references/shot-analysis.md)을 읽는다. 버전별 도움말이 다른 경우 확인한 기능만 사용한다. 없는 옵션·도구·API를 만들지 않는다.
27
28
 
28
29
  ## 검색 → 선택 → 요청한 저장
29
30
 
@@ -0,0 +1,96 @@
1
+ # 컷·씬 타임라인 분석 (agent-vision)
2
+
3
+ Flucto는 컷 경계·타임코드·카메라 움직임 측정값·타임코드가 박힌 컨택트 시트를 만들고, **라벨은 지금 이 대화의 에이전트(당신)가 시트를 직접 보고** 쓴다. Flucto는 라벨을 병합해 `analysis.json`과 타임라인 파일을 만든다. 외부 비전 API나 Codex는 쓰지 않는다.
4
+
5
+ ## 사용 시점
6
+
7
+ - “이 레퍼런스 영상의 컷·씬 분석해줘”, “타임라인 뽑아줘”, “연출을 컷 단위로 분석해줘”처럼 영상의 컷별 연출·카메라·비트·대사 타임라인을 요청할 때.
8
+ - 입력은 로컬 영상 파일 또는 지원 URL. URL은 사용자가 다운로드를 요청했거나 허용한 경우에만 `--allow-download`를 붙인다.
9
+ - 영상 내용 요약만 필요하면 `flucto md`(자막 Markdown)를 쓴다. 이 절차는 이미지 열람이 필요하다.
10
+
11
+ ## 시작 전 확인
12
+
13
+ 1. `flucto --help`에 `analyze prepare|status|merge`가 있는지 확인한다. 없으면 만들어 쓰지 말고 CLI 버전이 낮다고 보고한다.
14
+ 2. **당신의 모델이 이미지를 읽을 수 없으면 즉시 중단**하고 “비전 불가”와 사유를 보고한다. 신호값만 보고 라벨을 추측해 채우지 않는다.
15
+ 3. 시트 이미지는 다른 서비스·API·원격 도구로 보내지 않는다. 이미지 읽기 도구(예: Pi `read`)로 로컬에서만 연다.
16
+ 4. 카메라 움직임 측정(`cameraMotionMeasured`)은 `vidstabdetect`가 있는 ffmpeg가 필요하다. 번들 ffmpeg에는 없을 수 있으며 `FLUCTO_VIDSTAB_FFMPEG` 또는 PATH의 ffmpeg를 쓴다. 없으면 측정값이 비고 컷·시트·라벨은 계속 동작한다. 측정값이 없는 이유를 보고서에 적는다.
17
+
18
+ ## 절차
19
+
20
+ ### 1. prepare
21
+
22
+ ```bash
23
+ flucto analyze prepare ./reference.mp4 -o ./job --json
24
+ flucto analyze prepare ./reference.mp4 -o ./job --subs ./reference.ko.vtt --json # 자막 파일이 있을 때
25
+ flucto analyze prepare 'https://…' --allow-download --sub-lang ko -o ./job --json # URL (다운로드 허용 시)
26
+ ```
27
+
28
+ - `-o`는 작업 폴더 자체다. **비어 있거나 새로 만들 폴더만** 쓴다(다른 파일이 있고 `prepare-state.json`이 없으면 prepare가 거부한다). 같은 영상으로 같은 폴더에 다시 실행하면 기존 준비 상태를 재사용하며, 다른 영상이거나 상태 파일이 손상돼 다시 만들어야 할 때만 `--force`.
29
+ - `--force`로 다시 만들어도 `labels/`는 지우지 않는다. 다른 영상·다른 분할로 다시 만들었다면 **이전 라벨 파일을 먼저 지운다**. prepare가 남아 있는 파일 이름을 경고하고, merge도 준비 시각보다 오래된 라벨 파일을 `labelWarnings`로 알린다.
30
+ - 특정 구간을 촘촘히 보려면 `--detail 12.0-20.0`(초, 4fps 균등 시트). 해당 컷의 기본 시트는 그대로 두고 상세 시트가 **추가**된다. 배치 크기는 기본 10컷(`--batch-size 1-50`).
31
+ - 하위 명령에는 `--dry-run`을 쓸 수 없다.
32
+ - JSON의 `shotCount`, `batchCount`, `sheetCount`, `warnings`를 확인한다. 컷이 300개를 넘으면 경고가 나오며, 사용자에게 구간을 좁힐지 확인한다.
33
+
34
+ ### 2. 요청서 읽기
35
+
36
+ `<job>/labeling-request.json`을 읽는다.
37
+
38
+ - `instructions`: 라벨링 규칙(이 문서와 같은 내용). 요청서의 지시를 따른다.
39
+ - `schemaPath`: 라벨 JSON 스키마. `labelsDir`: 라벨 파일을 쓸 폴더.
40
+ - `batches[]`: `batchId`와 `shotIds`. `shots[]`: `startS/endS`, `sheets[].path`(시트 이미지), `dialogue`(자막 큐, 참고용), `cameraMotionMeasured`(측정 힌트).
41
+ - 값 어휘(스키마가 강제하는 열거형, 소문자 고정):
42
+ - `shotSize`: `macro|ecu|cu|mcu|ms|fs|ws|ews|topdown|other`
43
+ - `angle`: `low|eye|high|top|pov|ots|dutch|other`
44
+ - `cameraMotion`: `static|track|handheld|whip|push|pull|orbit|crane|tilt|pan|zoom|other`
45
+ - `segment`: `action|release|setpiece|dialogue|establishing|other`, `beats[].role`: `anticipation|launch|contact|reaction|trace|release|other`
46
+ - 목록에 없는 값은 `other`로 적고 설명은 `directionNotes`에 한국어로 쓴다. 자유 서술(`event`, `directionNotes`, `summary` 등)은 한국어를 쓴다.
47
+ - `action_shots.csv`는 DES-12 어휘만 받으므로 `other`와 `zoom`은 그 파일에서 `UNKNOWN`으로 나간다(`timeline.csv`에는 원래 값 그대로).
48
+
49
+ ### 3. 배치별 라벨링 (한 번에 한 배치)
50
+
51
+ 각 배치에 대해:
52
+
53
+ 1. 그 배치 `shotIds`의 `sheets[].path` 이미지를 **하나씩 실제로 연다**. 타일마다 박힌 절대 타임코드와 `(+상대초)`를 읽는다.
54
+ 2. `labels/<batchId>.json`을 스키마대로 쓴다(`batchId`, `labeledBy{agent,model}`, `shots[]`). 가능한 한 다음 규칙을 지킨다.
55
+ - `beats[].t`는 시트 타일의 **절대 초**(영상 시작 기준). 컷 구간 밖의 `t`는 merge에서 버려진다.
56
+ - 시트에서 확인할 수 없는 단일 값은 추측하지 말고 `null`, 목록 항목(`technique`, `props`, `characters`, `beats`, `unseen`)은 빈 배열 `[]`로 두고 `unseen[]`에 무엇을 못 봤는지 적는다. `confidence`는 0~1 숫자이거나 `null`이다.
57
+ - 시트의 `hasTimecodes`가 `false`면 타일에 타임코드가 없다. 이때는 `sheets[].tiles[].t`를 그 타일의 절대 초로 쓴다.
58
+ - 인물은 `ref`를 “남성1”, “빨간 옷”처럼 화면 지시어로만 적는다. **실존 인물의 이름을 특정하지 않는다.**
59
+ - `cameraMotionMeasured`는 화면 전체 이미지 이동 추정이다. 큰 피사체의 움직임과 구분되지 않으므로 시트를 본 판단의 힌트로만 쓴다. 부호: pan>0 카메라 우측 팬, tilt>0 아래로 틸트, zoom>0 줌인.
60
+ - `dialogue`는 표정·연출·비트 판단용 참고 자료다. 라벨·보고·창작 결과물에 대사 원문을 그대로 복제하지 않는다.
61
+ 3. 파일을 쓴 뒤 바로 상태를 확인한다.
62
+
63
+ ```bash
64
+ flucto analyze status ./job --json
65
+ ```
66
+
67
+ `labeledShots`, `pendingBatches`, `incompleteBatches`, `invalidBatches`, `unexpectedFiles`를 본다. `invalidBatches`가 있으면 그 배치 파일을 고쳐 다시 쓰고, `incompleteBatches`가 있으면 `missingShotIds`의 컷을 채워 그 배치 파일을 다시 쓴 뒤 `status`를 다시 실행한다. 다음 배치로 넘어가기 전에 이 확인을 거친다. 모든 배치를 한꺼번에 쓰고 마지막에 한 번만 확인하지 않는다.
68
+
69
+ 라벨 파일 이름은 반드시 `labels/<batchId>.json`이다. 다른 이름으로 쓴 파일은 `unexpectedFiles`로 보고되고 merge가 무시한다.
70
+
71
+ **이어하기:** 대화가 끊기거나 새 세션이면 `status`를 실행하고 `pendingBatches`와 `incompleteBatches`에 남은 배치만 처리한다. 이미 완성된 유효한 배치는 다시 쓰지 않는다.
72
+
73
+ ### 4. 씬 묶음 (마지막 배치)
74
+
75
+ 모든 컷을 본 뒤 **마지막 배치 파일에만** `scenes[]`(`sceneId`, `shotIds[]`, `location`, `summary`, `rationale`)를 쓴다. `sceneId`는 `SC001`처럼 영숫자·`._:-`로 이루어진 id를 쓴다. 한 컷은 한 씬에만 넣는다. 근거가 약하면 씬 묶음을 생략한다.
76
+
77
+ ### 5. merge
78
+
79
+ ```bash
80
+ flucto analyze merge ./job --export action-shots,prompt-blocks --json
81
+ ```
82
+
83
+ - `--craft <taxonomy dir>`가 있으면 기법 매칭을 하고, 없으면 건너뛴다.
84
+ - 성공하면 작업 폴더의 `frames/`는 삭제된다. 시트를 남기려면 `--keep-frames`.
85
+ - 산출물: `analysis.json`(정본), `timeline.csv`, `beats.csv`, `dialogue.csv`, `timeline.md`, `--export`에 따라 `action_shots.csv`, `prompt_blocks.md`(초안).
86
+
87
+ ## 근거 수준과 한계
88
+
89
+ - 에이전트 라벨 = **추정(INFERRED)**, 자막 큐 = 출처 확인(SOURCE_CONFIRMED), ffmpeg 측정(컷 경계·카메라 움직임 등) = 관측(OBSERVED). 라벨을 측정값처럼 표현하지 않는다.
90
+ - 카메라 움직임 측정은 추정치다. 팬과 큰 피사체 이동을 구분하지 못한다.
91
+ - `action_shots.csv`/`prompt_blocks.md`는 초안이다. 자동으로 판정하지 못한 열은 `UNKNOWN`이며 검수가 필요하다.
92
+ - 자동 생성 자막은 오인식이 있을 수 있다. 대사는 참고용이며 복제하지 않는다.
93
+
94
+ ## 보고
95
+
96
+ merge JSON의 `labelErrors`와 `labelWarnings`를 **그대로 정직하게** 보고한다(거부된 배치·컷·비트, 덮어쓴 라벨). 비어 있지 않은데 “문제 없음”이라고 하지 않는다. 최종 보고에는 `timeline.md`의 경로(그리고 만든 다른 파일 경로), 컷 수와 라벨링된 컷 수, `rowsIncomplete`/`signalOnlyShots`, 자막 사용 여부, 카메라 움직임 측정 가능 여부, 못 본 항목(`unseen`)의 요약을 포함한다. 파일을 채팅으로 전달할 때는 호스트의 첨부 기능을 쓰고, 로컬 경로만 적고 전달했다고 하지 않는다.