fablecut 1.14.0 → 1.16.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.
- package/CLAUDE.md +612 -17
- package/README.md +51 -5
- package/analyze.js +161 -9
- package/app.js +2995 -141
- package/comp.js +5 -1
- package/delivery.js +779 -0
- package/encode-profiles.js +9 -3
- package/encoding-profiles.json +26 -0
- package/export-jobs.js +9 -5
- package/frame-cache.js +49 -0
- package/frame-stats.js +267 -0
- package/history.js +341 -0
- package/index.html +179 -4
- package/mcp-server.js +455 -1072
- package/media-lib.js +298 -0
- package/media-probe.js +88 -0
- package/mp4-demux.js +256 -0
- package/package.json +1 -1
- package/paths.js +9 -2
- package/project-ops.js +1358 -0
- package/projects.js +324 -0
- package/proxy.js +180 -0
- package/sequences.js +216 -0
- package/server.js +614 -16
- package/style.css +617 -0
package/paths.js
CHANGED
|
@@ -32,6 +32,13 @@ const MEDIA_DIR = path.join(DATA_DIR, "media");
|
|
|
32
32
|
const EXPORTS_DIR = path.join(DATA_DIR, "exports");
|
|
33
33
|
const ANALYSIS_DIR = path.join(DATA_DIR, "analysis");
|
|
34
34
|
const LIBRARY_DIR = path.join(DATA_DIR, "library");
|
|
35
|
+
/* Grabs of single frames / contact sheets (GET /api/frame). Disposable render
|
|
36
|
+
cache, so it lives inside analysis/ rather than becoming a fifth top-level
|
|
37
|
+
folder users have to think about. */
|
|
38
|
+
const FRAMES_DIR = path.join(ANALYSIS_DIR, "frames");
|
|
39
|
+
/* Proxies (light copies of heavy footage the editor plays while editing).
|
|
40
|
+
A regenerable cache too, so also inside analysis/. */
|
|
41
|
+
const PROXIES_DIR = path.join(ANALYSIS_DIR, "proxies");
|
|
35
42
|
const PROJECT_FILE = path.join(DATA_DIR, "project.json");
|
|
36
43
|
const LIBRARY_SUBDIRS = ["sfx", "elements", "svg", "fonts", "presets", "templates"];
|
|
37
44
|
|
|
@@ -92,7 +99,7 @@ function superseded(rel, file) {
|
|
|
92
99
|
/* Create the writable tree. Safe to call from both servers; whoever runs first
|
|
93
100
|
wins and the other no-ops. */
|
|
94
101
|
function ensureDirs() {
|
|
95
|
-
for (const d of [DATA_DIR, MEDIA_DIR, EXPORTS_DIR, ANALYSIS_DIR])
|
|
102
|
+
for (const d of [DATA_DIR, MEDIA_DIR, EXPORTS_DIR, ANALYSIS_DIR, FRAMES_DIR, PROXIES_DIR])
|
|
96
103
|
fs.mkdirSync(d, { recursive: true });
|
|
97
104
|
for (const d of LIBRARY_SUBDIRS)
|
|
98
105
|
fs.mkdirSync(path.join(LIBRARY_DIR, d), { recursive: true });
|
|
@@ -125,5 +132,5 @@ function writeSaved(kind, id, data) {
|
|
|
125
132
|
module.exports = {
|
|
126
133
|
APP_DIR, DATA_DIR, SPLIT,
|
|
127
134
|
MEDIA_DIR, EXPORTS_DIR, ANALYSIS_DIR, LIBRARY_DIR, PROJECT_FILE,
|
|
128
|
-
LIBRARY_SUBDIRS, ensureDirs, readSaved, writeSaved,
|
|
135
|
+
LIBRARY_SUBDIRS, FRAMES_DIR, PROXIES_DIR, ensureDirs, readSaved, writeSaved,
|
|
129
136
|
};
|