fluncle 0.291.0 → 0.293.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/bin/fluncle.mjs +216 -81
- package/package.json +1 -1
package/bin/fluncle.mjs
CHANGED
|
@@ -24050,17 +24050,15 @@ async function publicApiPost(path, body) {
|
|
|
24050
24050
|
});
|
|
24051
24051
|
}
|
|
24052
24052
|
async function adminApiGet(path) {
|
|
24053
|
-
return
|
|
24054
|
-
headers: adminHeaders()
|
|
24055
|
-
});
|
|
24053
|
+
return adminRequest(path);
|
|
24056
24054
|
}
|
|
24057
24055
|
async function adminApiPost(path, body) {
|
|
24056
|
+
if (body === undefined) {
|
|
24057
|
+
return adminRequest(path, "POST");
|
|
24058
|
+
}
|
|
24058
24059
|
return apiRequest(path, {
|
|
24059
|
-
body:
|
|
24060
|
-
headers: {
|
|
24061
|
-
...adminHeaders(),
|
|
24062
|
-
...body === undefined ? {} : { "Content-Type": "application/json" }
|
|
24063
|
-
},
|
|
24060
|
+
body: JSON.stringify(body),
|
|
24061
|
+
headers: { ...adminHeaders(), "Content-Type": "application/json" },
|
|
24064
24062
|
method: "POST"
|
|
24065
24063
|
});
|
|
24066
24064
|
}
|
|
@@ -24097,6 +24095,10 @@ async function adminApiDelete(path) {
|
|
|
24097
24095
|
method: "DELETE"
|
|
24098
24096
|
});
|
|
24099
24097
|
}
|
|
24098
|
+
async function adminRequest(path, method) {
|
|
24099
|
+
const headers = adminHeaders();
|
|
24100
|
+
return apiRequest(path, method ? { body: undefined, headers, method } : { headers });
|
|
24101
|
+
}
|
|
24100
24102
|
function adminHeaders() {
|
|
24101
24103
|
const env = loadEnv(["FLUNCLE_API_TOKEN"]);
|
|
24102
24104
|
return {
|
|
@@ -24422,7 +24424,7 @@ function parseVersion(version) {
|
|
|
24422
24424
|
var currentVersion;
|
|
24423
24425
|
var init_version = __esm(() => {
|
|
24424
24426
|
init_output();
|
|
24425
|
-
currentVersion = "0.
|
|
24427
|
+
currentVersion = "0.293.0".trim() ? "0.293.0".trim() : "0.1.0";
|
|
24426
24428
|
});
|
|
24427
24429
|
|
|
24428
24430
|
// src/update-notifier.ts
|
|
@@ -25987,7 +25989,7 @@ function parseVersion2(version) {
|
|
|
25987
25989
|
var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
|
|
25988
25990
|
var init_version2 = __esm(() => {
|
|
25989
25991
|
init_output();
|
|
25990
|
-
currentVersion2 = "0.
|
|
25992
|
+
currentVersion2 = "0.293.0".trim() ? "0.293.0".trim() : "0.1.0";
|
|
25991
25993
|
});
|
|
25992
25994
|
|
|
25993
25995
|
// ../../packages/registry/src/index.ts
|
|
@@ -27856,6 +27858,77 @@ var init_status = __esm(() => {
|
|
|
27856
27858
|
};
|
|
27857
27859
|
});
|
|
27858
27860
|
|
|
27861
|
+
// ../../packages/contracts/src/video-bundle.ts
|
|
27862
|
+
function missingBundleFiles(required, hasArtifact) {
|
|
27863
|
+
return required.filter((id) => !hasArtifact(id)).map((id) => VIDEO_ARTIFACTS2[id].name);
|
|
27864
|
+
}
|
|
27865
|
+
var VIDEO_ARTIFACTS2, VIDEO_ARTIFACT_IDS2, RERENDER_REQUIRED_ARTIFACTS2, RERENDER_ADVISORY_ARTIFACTS, PUBLISH_REQUIRED_ARTIFACTS2;
|
|
27866
|
+
var init_video_bundle = __esm(() => {
|
|
27867
|
+
VIDEO_ARTIFACTS2 = {
|
|
27868
|
+
composition: {
|
|
27869
|
+
contentType: "text/plain; charset=utf-8",
|
|
27870
|
+
field: "composition",
|
|
27871
|
+
name: "composition.tsx"
|
|
27872
|
+
},
|
|
27873
|
+
cover: { contentType: "image/jpeg", field: "cover", name: "cover.jpg" },
|
|
27874
|
+
footage: { contentType: "video/mp4", field: "footage", name: "footage.mp4" },
|
|
27875
|
+
footageLandscape: {
|
|
27876
|
+
contentType: "video/mp4",
|
|
27877
|
+
field: "footage-landscape",
|
|
27878
|
+
name: "footage.landscape.mp4"
|
|
27879
|
+
},
|
|
27880
|
+
footageLandscapeSocial: {
|
|
27881
|
+
contentType: "video/mp4",
|
|
27882
|
+
field: "footage-landscape-social",
|
|
27883
|
+
name: "footage.landscape.social.mp4"
|
|
27884
|
+
},
|
|
27885
|
+
footageNotext: { contentType: "video/mp4", field: "footage-notext", name: "footage.notext.mp4" },
|
|
27886
|
+
footageSocial: { contentType: "video/mp4", field: "footage-social", name: "footage.social.mp4" },
|
|
27887
|
+
intent: { contentType: "application/json; charset=utf-8", field: "intent", name: "intent.json" },
|
|
27888
|
+
metrics: {
|
|
27889
|
+
contentType: "application/json; charset=utf-8",
|
|
27890
|
+
field: "metrics",
|
|
27891
|
+
name: "metrics.json"
|
|
27892
|
+
},
|
|
27893
|
+
note: { contentType: "text/plain; charset=utf-8", field: "note", name: "note.txt" },
|
|
27894
|
+
plate: { contentType: "image/png", field: "plate", name: "plate.png" },
|
|
27895
|
+
plateBackground: {
|
|
27896
|
+
contentType: "image/png",
|
|
27897
|
+
field: "plate-background",
|
|
27898
|
+
name: "plate.background.png"
|
|
27899
|
+
},
|
|
27900
|
+
poster: { contentType: "image/jpeg", field: "poster", name: "poster.jpg" },
|
|
27901
|
+
props: { contentType: "application/json; charset=utf-8", field: "props", name: "props.json" },
|
|
27902
|
+
render: { contentType: "application/json; charset=utf-8", field: "render", name: "render.json" },
|
|
27903
|
+
scene: { contentType: "application/json; charset=utf-8", field: "scene", name: "scene.json" }
|
|
27904
|
+
};
|
|
27905
|
+
VIDEO_ARTIFACT_IDS2 = [
|
|
27906
|
+
"footage",
|
|
27907
|
+
"footageSocial",
|
|
27908
|
+
"footageNotext",
|
|
27909
|
+
"footageLandscape",
|
|
27910
|
+
"footageLandscapeSocial",
|
|
27911
|
+
"poster",
|
|
27912
|
+
"cover",
|
|
27913
|
+
"plate",
|
|
27914
|
+
"plateBackground",
|
|
27915
|
+
"note",
|
|
27916
|
+
"composition",
|
|
27917
|
+
"props",
|
|
27918
|
+
"render",
|
|
27919
|
+
"intent",
|
|
27920
|
+
"metrics",
|
|
27921
|
+
"scene"
|
|
27922
|
+
];
|
|
27923
|
+
RERENDER_REQUIRED_ARTIFACTS2 = ["composition", "props", "render"];
|
|
27924
|
+
RERENDER_ADVISORY_ARTIFACTS = ["intent", "metrics", "scene"];
|
|
27925
|
+
PUBLISH_REQUIRED_ARTIFACTS2 = [
|
|
27926
|
+
"footage",
|
|
27927
|
+
"footageSocial",
|
|
27928
|
+
...RERENDER_REQUIRED_ARTIFACTS2
|
|
27929
|
+
];
|
|
27930
|
+
});
|
|
27931
|
+
|
|
27859
27932
|
// src/commands/track.ts
|
|
27860
27933
|
async function trackGetCommand(idOrLogId) {
|
|
27861
27934
|
return publicApiGet(`/api/v1/tracks/${encodeURIComponent(idOrLogId)}`);
|
|
@@ -27876,14 +27949,13 @@ function isPlatesOnlyUpload(files) {
|
|
|
27876
27949
|
}
|
|
27877
27950
|
function checkBundleCompleteness(files) {
|
|
27878
27951
|
const uploadingFootage = FOOTAGE_FIELDS.some((option) => Boolean(files[option]));
|
|
27879
|
-
const missingFrom = (specs) => uploadingFootage ? specs.filter((spec) => !files[spec.option]).map((spec) => spec.file) : [];
|
|
27880
27952
|
const plateWarnings = [];
|
|
27881
27953
|
if (files.plateBackground && !files.plate) {
|
|
27882
27954
|
plateWarnings.push("plate.background.png without plate.png. The background is the parallax layer OF a plate; pass --plate (or drop it in the --dir) too");
|
|
27883
27955
|
}
|
|
27884
27956
|
return {
|
|
27885
|
-
missingAdvisory:
|
|
27886
|
-
missingContract:
|
|
27957
|
+
missingAdvisory: uploadingFootage ? missingBundleFiles(RERENDER_ADVISORY_ARTIFACTS, (id) => Boolean(files[id])) : [],
|
|
27958
|
+
missingContract: uploadingFootage ? missingBundleFiles(RERENDER_REQUIRED_ARTIFACTS2, (id) => Boolean(files[id])) : [],
|
|
27887
27959
|
plateWarnings,
|
|
27888
27960
|
uploadingFootage
|
|
27889
27961
|
};
|
|
@@ -27907,10 +27979,10 @@ function validateBundleCompleteness(files, onProgress, options) {
|
|
|
27907
27979
|
}
|
|
27908
27980
|
async function trackVideoCommand(idOrLogId, files, onProgress, options = {}) {
|
|
27909
27981
|
validateBundleCompleteness(files, onProgress, options);
|
|
27910
|
-
const present =
|
|
27911
|
-
|
|
27912
|
-
path:
|
|
27913
|
-
})
|
|
27982
|
+
const present = VIDEO_ARTIFACT_IDS2.flatMap((id) => {
|
|
27983
|
+
const path = files[id];
|
|
27984
|
+
return path ? [{ field: VIDEO_ARTIFACTS2[id].field, path }] : [];
|
|
27985
|
+
});
|
|
27914
27986
|
if (present.length === 0) {
|
|
27915
27987
|
throw new CliError("nothing_to_upload", "No bundle files resolved to upload (pass --dir <bundle> or explicit file flags).");
|
|
27916
27988
|
}
|
|
@@ -27945,7 +28017,7 @@ async function trackVideoCommand(idOrLogId, files, onProgress, options = {}) {
|
|
|
27945
28017
|
const manifest = files.render ? await readManifestFields(files.render) : {};
|
|
27946
28018
|
const videoModel = files.model?.trim().slice(0, 120) || manifest.model || DEFAULT_VIDEO_MODEL;
|
|
27947
28019
|
const videoModelReasoning = files.reasoning?.trim().slice(0, 120) || manifest.reasoning || DEFAULT_VIDEO_REASONING;
|
|
27948
|
-
const squared = Boolean(urls[
|
|
28020
|
+
const squared = Boolean(urls[VIDEO_ARTIFACTS2.footage.field] && urls[VIDEO_ARTIFACTS2.footageSocial.field]);
|
|
27949
28021
|
const finalize = await adminApiPost(`/api/v1/admin/tracks/${encodeURIComponent(idOrLogId)}/video/finalize`, {
|
|
27950
28022
|
videoModel,
|
|
27951
28023
|
videoModelReasoning,
|
|
@@ -28102,38 +28174,11 @@ async function trackNoteCommand(idOrLogId, options) {
|
|
|
28102
28174
|
}
|
|
28103
28175
|
return adminApiPost(`/api/v1/admin/tracks/${encodeURIComponent(idOrLogId)}/note`, body);
|
|
28104
28176
|
}
|
|
28105
|
-
var DEFAULT_VIDEO_MODEL = "anthropic/claude-opus-5", DEFAULT_VIDEO_REASONING = "high", FOUND_BASE = "https://found.fluncle.com",
|
|
28177
|
+
var DEFAULT_VIDEO_MODEL = "anthropic/claude-opus-5", DEFAULT_VIDEO_REASONING = "high", FOUND_BASE = "https://found.fluncle.com", FOOTAGE_FIELDS, PLATE_FIELDS, NON_FILE_OPTIONS, DIVERSITY_LEDGER_FIELDS;
|
|
28106
28178
|
var init_track = __esm(() => {
|
|
28179
|
+
init_video_bundle();
|
|
28107
28180
|
init_api2();
|
|
28108
28181
|
init_output();
|
|
28109
|
-
VIDEO_FIELDS = [
|
|
28110
|
-
{ field: "footage", option: "footage" },
|
|
28111
|
-
{ field: "footage-social", option: "footageSocial" },
|
|
28112
|
-
{ field: "footage-notext", option: "footageNotext" },
|
|
28113
|
-
{ field: "footage-landscape", option: "footageLandscape" },
|
|
28114
|
-
{ field: "footage-landscape-social", option: "footageLandscapeSocial" },
|
|
28115
|
-
{ field: "poster", option: "poster" },
|
|
28116
|
-
{ field: "cover", option: "cover" },
|
|
28117
|
-
{ field: "plate", option: "plate" },
|
|
28118
|
-
{ field: "plate-background", option: "plateBackground" },
|
|
28119
|
-
{ field: "note", option: "note" },
|
|
28120
|
-
{ field: "composition", option: "composition" },
|
|
28121
|
-
{ field: "props", option: "props" },
|
|
28122
|
-
{ field: "render", option: "render" },
|
|
28123
|
-
{ field: "intent", option: "intent" },
|
|
28124
|
-
{ field: "metrics", option: "metrics" },
|
|
28125
|
-
{ field: "scene", option: "scene" }
|
|
28126
|
-
];
|
|
28127
|
-
RERENDER_CONTRACT_FIELDS = [
|
|
28128
|
-
{ file: "composition.tsx", option: "composition" },
|
|
28129
|
-
{ file: "props.json", option: "props" },
|
|
28130
|
-
{ file: "render.json", option: "render" }
|
|
28131
|
-
];
|
|
28132
|
-
RERENDER_ADVISORY_FIELDS = [
|
|
28133
|
-
{ file: "intent.json", option: "intent" },
|
|
28134
|
-
{ file: "metrics.json", option: "metrics" },
|
|
28135
|
-
{ file: "scene.json", option: "scene" }
|
|
28136
|
-
];
|
|
28137
28182
|
FOOTAGE_FIELDS = [
|
|
28138
28183
|
"footage",
|
|
28139
28184
|
"footageSocial",
|
|
@@ -28146,9 +28191,44 @@ var init_track = __esm(() => {
|
|
|
28146
28191
|
DIVERSITY_LEDGER_FIELDS = ["vehicle", "grain", "register"];
|
|
28147
28192
|
});
|
|
28148
28193
|
|
|
28194
|
+
// src/admin-contract-api.ts
|
|
28195
|
+
async function adminContractRequest(operation, input) {
|
|
28196
|
+
const { method, path } = adminContract[operation]["~orpc"].route;
|
|
28197
|
+
if (!path || method !== "GET" && method !== "POST") {
|
|
28198
|
+
throw new TypeError(operation);
|
|
28199
|
+
}
|
|
28200
|
+
const params = new Map(Object.entries(input));
|
|
28201
|
+
const route = path.replace(/\{([^}]+)\}/g, (_placeholder, key) => {
|
|
28202
|
+
const value = params.get(key);
|
|
28203
|
+
if (value === undefined) {
|
|
28204
|
+
throw new TypeError(key);
|
|
28205
|
+
}
|
|
28206
|
+
params.delete(key);
|
|
28207
|
+
return encodeURIComponent(value);
|
|
28208
|
+
});
|
|
28209
|
+
const query = new URLSearchParams;
|
|
28210
|
+
for (const [key, value] of params) {
|
|
28211
|
+
if (value !== undefined) {
|
|
28212
|
+
query.append(key, value);
|
|
28213
|
+
}
|
|
28214
|
+
}
|
|
28215
|
+
const search = query.size ? `?${query}` : "";
|
|
28216
|
+
return adminRequest(`/api/v1${route}${search}`, method === "POST" ? method : undefined);
|
|
28217
|
+
}
|
|
28218
|
+
var adminContract;
|
|
28219
|
+
var init_admin_contract_api = __esm(() => {
|
|
28220
|
+
init_orpc();
|
|
28221
|
+
init_api2();
|
|
28222
|
+
adminContract = {
|
|
28223
|
+
get_attention: getAttention,
|
|
28224
|
+
list_unresolved_artists: listUnresolvedArtists,
|
|
28225
|
+
resolve_artist: resolveArtist
|
|
28226
|
+
};
|
|
28227
|
+
});
|
|
28228
|
+
|
|
28149
28229
|
// src/commands/admin-attention.ts
|
|
28150
28230
|
async function attentionQueueCommand() {
|
|
28151
|
-
const response = await
|
|
28231
|
+
const response = await adminContractRequest("get_attention", {});
|
|
28152
28232
|
return response.attention;
|
|
28153
28233
|
}
|
|
28154
28234
|
function attentionQueueLines(queue) {
|
|
@@ -28168,7 +28248,7 @@ function attentionQueueLines(queue) {
|
|
|
28168
28248
|
}
|
|
28169
28249
|
var SOURCE_LABELS;
|
|
28170
28250
|
var init_admin_attention2 = __esm(() => {
|
|
28171
|
-
|
|
28251
|
+
init_admin_contract_api();
|
|
28172
28252
|
SOURCE_LABELS = {
|
|
28173
28253
|
"anchor-failure": "anchor failure",
|
|
28174
28254
|
"anchor-review": "version check",
|
|
@@ -28750,6 +28830,7 @@ async function trackUpdateCommand2(trackId, options) {
|
|
|
28750
28830
|
return adminApiPatch(`/api/v1/admin/tracks/${encodeURIComponent(trackId)}`, body);
|
|
28751
28831
|
}
|
|
28752
28832
|
var init_track2 = __esm(() => {
|
|
28833
|
+
init_video_bundle();
|
|
28753
28834
|
init_api2();
|
|
28754
28835
|
init_output();
|
|
28755
28836
|
});
|
|
@@ -30452,16 +30533,6 @@ async function artistsBioQueueCommand(limit) {
|
|
|
30452
30533
|
const response = await adminApiGet(`/api/v1/admin/artists/bio-queue?limit=${limit}`);
|
|
30453
30534
|
return response.artists;
|
|
30454
30535
|
}
|
|
30455
|
-
async function listArtistsCommand(limit, cursor) {
|
|
30456
|
-
const params = new URLSearchParams({ limit: String(limit) });
|
|
30457
|
-
if (cursor) {
|
|
30458
|
-
params.set("cursor", cursor);
|
|
30459
|
-
}
|
|
30460
|
-
return adminApiGet(`/api/v1/admin/artists?${params.toString()}`);
|
|
30461
|
-
}
|
|
30462
|
-
async function resolveArtistCommand(artistId) {
|
|
30463
|
-
return adminApiPost(`/api/v1/admin/artists/${encodeURIComponent(artistId)}/resolve`);
|
|
30464
|
-
}
|
|
30465
30536
|
async function rankArtistsCommand(options) {
|
|
30466
30537
|
const limit = options.limit ? Number.parseInt(options.limit, 10) : undefined;
|
|
30467
30538
|
const response = await adminApiPost("/api/v1/admin/artists/rank", {
|
|
@@ -30654,6 +30725,20 @@ var init_admin_covers = __esm(() => {
|
|
|
30654
30725
|
init_api2();
|
|
30655
30726
|
});
|
|
30656
30727
|
|
|
30728
|
+
// src/commands/admin-artist-resolution-command.ts
|
|
30729
|
+
async function listArtistsCommand(limit, cursor) {
|
|
30730
|
+
return adminContractRequest("list_unresolved_artists", {
|
|
30731
|
+
limit: String(limit),
|
|
30732
|
+
...cursor ? { cursor } : {}
|
|
30733
|
+
});
|
|
30734
|
+
}
|
|
30735
|
+
async function resolveArtistCommand(artistId) {
|
|
30736
|
+
return adminContractRequest("resolve_artist", { artistId });
|
|
30737
|
+
}
|
|
30738
|
+
var init_admin_artist_resolution_command = __esm(() => {
|
|
30739
|
+
init_admin_contract_api();
|
|
30740
|
+
});
|
|
30741
|
+
|
|
30657
30742
|
// src/evidence-http.ts
|
|
30658
30743
|
import { createHash } from "node:crypto";
|
|
30659
30744
|
import { mkdir as mkdir2, readFile as readFile2, rename, rm, stat, writeFile as writeFile2 } from "node:fs/promises";
|
|
@@ -32734,6 +32819,72 @@ var init_format2 = __esm(() => {
|
|
|
32734
32819
|
|
|
32735
32820
|
// src/cli.ts
|
|
32736
32821
|
import { existsSync as existsSync6, readFileSync as readFileSync7 } from "fs";
|
|
32822
|
+
|
|
32823
|
+
// ../../packages/contracts/src/video-bundle.ts
|
|
32824
|
+
var VIDEO_ARTIFACTS = {
|
|
32825
|
+
composition: {
|
|
32826
|
+
contentType: "text/plain; charset=utf-8",
|
|
32827
|
+
field: "composition",
|
|
32828
|
+
name: "composition.tsx"
|
|
32829
|
+
},
|
|
32830
|
+
cover: { contentType: "image/jpeg", field: "cover", name: "cover.jpg" },
|
|
32831
|
+
footage: { contentType: "video/mp4", field: "footage", name: "footage.mp4" },
|
|
32832
|
+
footageLandscape: {
|
|
32833
|
+
contentType: "video/mp4",
|
|
32834
|
+
field: "footage-landscape",
|
|
32835
|
+
name: "footage.landscape.mp4"
|
|
32836
|
+
},
|
|
32837
|
+
footageLandscapeSocial: {
|
|
32838
|
+
contentType: "video/mp4",
|
|
32839
|
+
field: "footage-landscape-social",
|
|
32840
|
+
name: "footage.landscape.social.mp4"
|
|
32841
|
+
},
|
|
32842
|
+
footageNotext: { contentType: "video/mp4", field: "footage-notext", name: "footage.notext.mp4" },
|
|
32843
|
+
footageSocial: { contentType: "video/mp4", field: "footage-social", name: "footage.social.mp4" },
|
|
32844
|
+
intent: { contentType: "application/json; charset=utf-8", field: "intent", name: "intent.json" },
|
|
32845
|
+
metrics: {
|
|
32846
|
+
contentType: "application/json; charset=utf-8",
|
|
32847
|
+
field: "metrics",
|
|
32848
|
+
name: "metrics.json"
|
|
32849
|
+
},
|
|
32850
|
+
note: { contentType: "text/plain; charset=utf-8", field: "note", name: "note.txt" },
|
|
32851
|
+
plate: { contentType: "image/png", field: "plate", name: "plate.png" },
|
|
32852
|
+
plateBackground: {
|
|
32853
|
+
contentType: "image/png",
|
|
32854
|
+
field: "plate-background",
|
|
32855
|
+
name: "plate.background.png"
|
|
32856
|
+
},
|
|
32857
|
+
poster: { contentType: "image/jpeg", field: "poster", name: "poster.jpg" },
|
|
32858
|
+
props: { contentType: "application/json; charset=utf-8", field: "props", name: "props.json" },
|
|
32859
|
+
render: { contentType: "application/json; charset=utf-8", field: "render", name: "render.json" },
|
|
32860
|
+
scene: { contentType: "application/json; charset=utf-8", field: "scene", name: "scene.json" }
|
|
32861
|
+
};
|
|
32862
|
+
var VIDEO_ARTIFACT_IDS = [
|
|
32863
|
+
"footage",
|
|
32864
|
+
"footageSocial",
|
|
32865
|
+
"footageNotext",
|
|
32866
|
+
"footageLandscape",
|
|
32867
|
+
"footageLandscapeSocial",
|
|
32868
|
+
"poster",
|
|
32869
|
+
"cover",
|
|
32870
|
+
"plate",
|
|
32871
|
+
"plateBackground",
|
|
32872
|
+
"note",
|
|
32873
|
+
"composition",
|
|
32874
|
+
"props",
|
|
32875
|
+
"render",
|
|
32876
|
+
"intent",
|
|
32877
|
+
"metrics",
|
|
32878
|
+
"scene"
|
|
32879
|
+
];
|
|
32880
|
+
var RERENDER_REQUIRED_ARTIFACTS = ["composition", "props", "render"];
|
|
32881
|
+
var PUBLISH_REQUIRED_ARTIFACTS = [
|
|
32882
|
+
"footage",
|
|
32883
|
+
"footageSocial",
|
|
32884
|
+
...RERENDER_REQUIRED_ARTIFACTS
|
|
32885
|
+
];
|
|
32886
|
+
|
|
32887
|
+
// src/cli.ts
|
|
32737
32888
|
import path2 from "path";
|
|
32738
32889
|
|
|
32739
32890
|
// ../../node_modules/commander/lib/error.js
|
|
@@ -36565,11 +36716,11 @@ JSON field reference:
|
|
|
36565
36716
|
});
|
|
36566
36717
|
artists.command("resolve").description("Resolve an artist's social identity (MB url-rels + Firecrawl gap-fill)").argument("[artistId]").option("--queue", "Show the resolve worklist (artists awaiting resolution), oldest first", false).option("--limit <limit>", "Number of artists to show with --queue", "50").option("--json", "Print JSON", false).allowExcessArguments().action(async (artistId, options) => {
|
|
36567
36718
|
if (options.queue) {
|
|
36568
|
-
await Promise.resolve().then(() =>
|
|
36719
|
+
await Promise.resolve().then(() => init_admin_artist_resolution_command());
|
|
36569
36720
|
await runArtistResolveQueue(options, listArtistsCommand);
|
|
36570
36721
|
return;
|
|
36571
36722
|
}
|
|
36572
|
-
await Promise.resolve().then(() =>
|
|
36723
|
+
await Promise.resolve().then(() => init_admin_artist_resolution_command());
|
|
36573
36724
|
await runArtistResolve(artistId, options, resolveArtistCommand);
|
|
36574
36725
|
});
|
|
36575
36726
|
artists.command("describe").description("Author the voiced bio for an artist (fills an empty bio only)").argument("[slug]").option("--queue", "Show the bio worklist (artists with findings but no bio), oldest first", false).option("--limit <limit>", "Number of artists to show with --queue", "50").option("--bio <text>", "The voice-gated bio paragraph").option("--bio-file <file>", "Read the bio from a file").option("--prompt-version <n>", "The prompt-registry version that authored the bio (the sweep sends this; it is the bio's provenance)").option("--dry-run", "Run the voice gate and report the verdict without storing anything", false).option("--final-attempt", "The sweep's third and last authoring pass: store the draft even if the voice scan refuses it (the length bounds still apply, and the write is flagged for review)", false).option("--json", "Print JSON", false).allowExcessArguments().action(async (slug, options) => {
|
|
@@ -38063,26 +38214,10 @@ async function runTrackVideo(idOrLogId, options, trackVideoCommand) {
|
|
|
38063
38214
|
}
|
|
38064
38215
|
return fromDir(name);
|
|
38065
38216
|
};
|
|
38066
|
-
const files = {
|
|
38067
|
-
|
|
38068
|
-
|
|
38069
|
-
|
|
38070
|
-
footageLandscape: resolveFile(options.footageLandscape, "footage.landscape.mp4"),
|
|
38071
|
-
footageLandscapeSocial: resolveFile(options.footageLandscapeSocial, "footage.landscape.social.mp4"),
|
|
38072
|
-
footageNotext: resolveFile(options.footageNotext, "footage.notext.mp4"),
|
|
38073
|
-
footageSocial: resolveFile(options.footageSocial, "footage.social.mp4"),
|
|
38074
|
-
intent: resolveFile(options.intent, "intent.json"),
|
|
38075
|
-
metrics: resolveFile(options.metrics, "metrics.json"),
|
|
38076
|
-
model: options.model,
|
|
38077
|
-
note: resolveFile(options.note, "note.txt"),
|
|
38078
|
-
plate: resolveFile(options.plate, "plate.png"),
|
|
38079
|
-
plateBackground: resolveFile(options.plateBackground, "plate.background.png"),
|
|
38080
|
-
poster: resolveFile(options.poster, "poster.jpg"),
|
|
38081
|
-
props: resolveFile(options.props, "props.json"),
|
|
38082
|
-
reasoning: options.reasoning,
|
|
38083
|
-
render: resolveFile(options.render, "render.json"),
|
|
38084
|
-
scene: resolveFile(options.scene, "scene.json")
|
|
38085
|
-
};
|
|
38217
|
+
const files = { model: options.model, reasoning: options.reasoning };
|
|
38218
|
+
for (const id of VIDEO_ARTIFACT_IDS) {
|
|
38219
|
+
files[id] = resolveFile(options[id], VIDEO_ARTIFACTS[id].name);
|
|
38220
|
+
}
|
|
38086
38221
|
await Promise.resolve().then(() => init_track());
|
|
38087
38222
|
if (!files.footage && !options.allowPartial && !isPlatesOnlyUpload(files)) {
|
|
38088
38223
|
throw new Error("A footage cut is required (--footage <file>, or --dir containing footage.mp4). Pass --allow-partial for a deliberate partial refresh (e.g. poster-only), or upload plates alone (--plate/--plate-background) for the plate-lane pre-upload.");
|
package/package.json
CHANGED