@lingjingai/scriptctl 0.63.6 → 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.7.md +4 -0
- package/changes/0.63.8.md +5 -0
- package/dist/bin.js +2 -26
- 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-model.js +2 -3
- package/dist/infra/llm/doubao-model.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 +1 -1
- package/skills/scriptctl/SKILL.md +2 -2
- package/skills/scriptctl/references/ingest-workflow.md +1 -1
package/dist/bin.js
CHANGED
|
@@ -7032,7 +7032,6 @@ var DoubaoModel = class {
|
|
|
7032
7032
|
async generateOnce(fileId, request2) {
|
|
7033
7033
|
const params = {
|
|
7034
7034
|
model: this.model,
|
|
7035
|
-
max_output_tokens: request2.maxOutputTokens,
|
|
7036
7035
|
input: [{ role: "user", content: [
|
|
7037
7036
|
{ type: "input_video", file_id: fileId },
|
|
7038
7037
|
{ type: "input_text", text: request2.user }
|
|
@@ -7069,7 +7068,6 @@ var DoubaoModel = class {
|
|
|
7069
7068
|
textParams(request2) {
|
|
7070
7069
|
return {
|
|
7071
7070
|
model: this.model,
|
|
7072
|
-
max_output_tokens: request2.maxOutputTokens,
|
|
7073
7071
|
instructions: request2.system,
|
|
7074
7072
|
input: [{ role: "user", content: [{ type: "input_text", text: request2.user }] }]
|
|
7075
7073
|
};
|
|
@@ -7086,7 +7084,7 @@ var DoubaoModel = class {
|
|
|
7086
7084
|
const usage3 = arkUsage(res.usage);
|
|
7087
7085
|
if (status === "incomplete") {
|
|
7088
7086
|
const reason = res.incomplete_details?.reason ?? "unknown";
|
|
7089
|
-
if (reason === "max_output_tokens") throw new LlmTransportError("truncated", "Doubao output was truncated.", { usage: usage3 });
|
|
7087
|
+
if (reason === "max_output_tokens" || reason === "length") throw new LlmTransportError("truncated", "Doubao output was truncated.", { usage: usage3 });
|
|
7090
7088
|
throw new LlmTransportError("content_filtered", `Doubao response incomplete (reason=${reason}).`, { usage: usage3 });
|
|
7091
7089
|
}
|
|
7092
7090
|
const text2 = extractText(res);
|
|
@@ -16489,29 +16487,8 @@ function checkLifecycle2(store, previous, episodes, force) {
|
|
|
16489
16487
|
}
|
|
16490
16488
|
}
|
|
16491
16489
|
function renameDocs(docs, alias) {
|
|
16492
|
-
const terms = /* @__PURE__ */ new Map();
|
|
16493
|
-
for (const [surface, canonical] of alias) {
|
|
16494
|
-
terms.set(canonical, canonical);
|
|
16495
|
-
terms.set(surface, canonical);
|
|
16496
|
-
}
|
|
16497
|
-
const orderedTerms = [...terms].sort(([left], [right]) => right.length - left.length);
|
|
16498
|
-
const renameActionContent = (content) => {
|
|
16499
|
-
let result = "";
|
|
16500
|
-
let offset = 0;
|
|
16501
|
-
while (offset < content.length) {
|
|
16502
|
-
const match = orderedTerms.find(([surface]) => content.startsWith(surface, offset));
|
|
16503
|
-
if (match) {
|
|
16504
|
-
result += match[1];
|
|
16505
|
-
offset += match[0].length;
|
|
16506
|
-
} else {
|
|
16507
|
-
result += content[offset];
|
|
16508
|
-
offset += 1;
|
|
16509
|
-
}
|
|
16510
|
-
}
|
|
16511
|
-
return result;
|
|
16512
|
-
};
|
|
16513
16490
|
return docs.map((d) => {
|
|
16514
|
-
const c =
|
|
16491
|
+
const c = structuredClone(d);
|
|
16515
16492
|
for (const a of c.actors) a.name = applyRename(a.name, alias) ?? a.name;
|
|
16516
16493
|
for (const sc of c.scenes) {
|
|
16517
16494
|
for (const ch of sc.characters) ch.name = applyRename(ch.name, alias) ?? ch.name;
|
|
@@ -16529,7 +16506,6 @@ function renameDocs(docs, alias) {
|
|
|
16529
16506
|
sc.props = renamedProps;
|
|
16530
16507
|
for (const an of sc.anchors) {
|
|
16531
16508
|
an.speaker = applyRename(an.speaker, alias);
|
|
16532
|
-
if (an.kind === "act") an.content = renameActionContent(an.content);
|
|
16533
16509
|
}
|
|
16534
16510
|
}
|
|
16535
16511
|
return c;
|