@lingjingai/scriptctl 0.63.7 → 0.63.8
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/changes/0.63.8.md +5 -0
- package/dist/bin.js +1 -23
- package/dist/bin.js.map +2 -2
- package/dist/cli/register-batch.d.ts +3 -0
- package/dist/cli/register-batch.js +28 -0
- package/dist/cli/register-batch.js.map +1 -0
- package/dist/cli/register-edits.d.ts +4 -0
- package/dist/cli/register-edits.js +234 -0
- package/dist/cli/register-edits.js.map +1 -0
- package/dist/cli/register-query.d.ts +4 -0
- package/dist/cli/register-query.js +95 -0
- package/dist/cli/register-query.js.map +1 -0
- package/dist/domain/ingest/video-context.js +1 -1
- package/dist/domain/ingest/video-context.js.map +1 -1
- package/dist/infra/llm/doubao-video-model.d.ts +56 -0
- package/dist/infra/llm/doubao-video-model.js +231 -0
- package/dist/infra/llm/doubao-video-model.js.map +1 -0
- package/dist/usecases/ingest/video-pipeline.js +6 -29
- package/dist/usecases/ingest/video-pipeline.js.map +1 -1
- package/package.json +18 -17
- package/skills/scriptctl/SKILL.md +2 -2
- package/skills/scriptctl/references/ingest-workflow.md +1 -1
package/dist/bin.js
CHANGED
|
@@ -16487,29 +16487,8 @@ function checkLifecycle2(store, previous, episodes, force) {
|
|
|
16487
16487
|
}
|
|
16488
16488
|
}
|
|
16489
16489
|
function renameDocs(docs, alias) {
|
|
16490
|
-
const terms = /* @__PURE__ */ new Map();
|
|
16491
|
-
for (const [surface, canonical] of alias) {
|
|
16492
|
-
terms.set(canonical, canonical);
|
|
16493
|
-
terms.set(surface, canonical);
|
|
16494
|
-
}
|
|
16495
|
-
const orderedTerms = [...terms].sort(([left], [right]) => right.length - left.length);
|
|
16496
|
-
const renameActionContent = (content) => {
|
|
16497
|
-
let result = "";
|
|
16498
|
-
let offset = 0;
|
|
16499
|
-
while (offset < content.length) {
|
|
16500
|
-
const match = orderedTerms.find(([surface]) => content.startsWith(surface, offset));
|
|
16501
|
-
if (match) {
|
|
16502
|
-
result += match[1];
|
|
16503
|
-
offset += match[0].length;
|
|
16504
|
-
} else {
|
|
16505
|
-
result += content[offset];
|
|
16506
|
-
offset += 1;
|
|
16507
|
-
}
|
|
16508
|
-
}
|
|
16509
|
-
return result;
|
|
16510
|
-
};
|
|
16511
16490
|
return docs.map((d) => {
|
|
16512
|
-
const c =
|
|
16491
|
+
const c = structuredClone(d);
|
|
16513
16492
|
for (const a of c.actors) a.name = applyRename(a.name, alias) ?? a.name;
|
|
16514
16493
|
for (const sc of c.scenes) {
|
|
16515
16494
|
for (const ch of sc.characters) ch.name = applyRename(ch.name, alias) ?? ch.name;
|
|
@@ -16527,7 +16506,6 @@ function renameDocs(docs, alias) {
|
|
|
16527
16506
|
sc.props = renamedProps;
|
|
16528
16507
|
for (const an of sc.anchors) {
|
|
16529
16508
|
an.speaker = applyRename(an.speaker, alias);
|
|
16530
|
-
if (an.kind === "act") an.content = renameActionContent(an.content);
|
|
16531
16509
|
}
|
|
16532
16510
|
}
|
|
16533
16511
|
return c;
|