@lingjingai/scriptctl 0.63.18 → 0.63.20
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/README.md +26 -1
- package/changes/0.63.19.md +6 -0
- package/changes/0.63.20.md +20 -0
- package/dist/bin.js +1 -1
- package/dist/chunk-OYTWFCNO.js +983 -0
- package/dist/cli.d.ts +18 -3
- package/dist/cli.js +1 -1
- package/dist/review-agent.js +37 -36
- package/package.json +25 -21
- package/skills/scriptctl/SKILL.md +4 -2
- package/skills/scriptctl/references/ingest-workflow.md +19 -3
- package/dist/chunk-YOCQDDQC.js +0 -823
package/dist/cli.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ type OperationalFailure = FailureClassification & FailureContext & {
|
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
type LlmProtocol = "anthropic" | "openai-compatible" | "google-gemini" | "google-vertex";
|
|
60
|
-
type LlmTaskId = "direct.episode-titles" | "direct.batch-extract" | "direct.episode-synopsis" | "direct.synopsis-reduction" | "direct.script-synopsis" | "direct.asset-grouping" | "direct.asset-curation" | "direct.asset-curation-audit" | "direct.location-canonicalization" | "direct.state-curation" | "direct.state-binding" | "metadata.global" | "metadata.descriptions" | "synopsis.chunk" | "synopsis.episode" | "synopsis.arc" | "synopsis.script-overview" | "ingest.body-start" | "ingest.arc-summary" | "ingest.text-normalize" | "ingest.episode-assets" | "ingest.name-fix" | "ingest.mention-resolve" | "ingest.asset-extract" | "ingest.asset-curate" | "ingest.asset-recall" | "ingest.asset-refine" | "ingest.state-reconcile" | "ingest.asset-audit" | "ingest.speaker-audit" | "ingest.video-serial";
|
|
60
|
+
type LlmTaskId = "direct.episode-titles" | "direct.batch-extract" | "direct.episode-synopsis" | "direct.synopsis-reduction" | "direct.script-synopsis" | "direct.asset-grouping" | "direct.asset-curation" | "direct.asset-curation-audit" | "direct.location-canonicalization" | "direct.state-curation" | "direct.state-binding" | "metadata.global" | "metadata.descriptions" | "synopsis.chunk" | "synopsis.episode" | "synopsis.arc" | "synopsis.script-overview" | "ingest.body-start" | "ingest.arc-summary" | "ingest.text-normalize" | "ingest.episode-assets" | "ingest.name-fix" | "ingest.mention-resolve" | "ingest.asset-extract" | "ingest.asset-curate" | "ingest.asset-recall" | "ingest.asset-refine" | "ingest.state-reconcile" | "ingest.asset-audit" | "ingest.speaker-audit" | "ingest.video-serial" | "ingest.comic-serial";
|
|
61
61
|
type JsonSchema = Record<string, unknown>;
|
|
62
62
|
interface TextGenerationRequest {
|
|
63
63
|
system: string;
|
|
@@ -100,14 +100,15 @@ interface VideoFileHandle {
|
|
|
100
100
|
mimeType: string;
|
|
101
101
|
}
|
|
102
102
|
type VideoUploadMode = "file-api" | "base64";
|
|
103
|
-
type
|
|
103
|
+
type UploadedMediaInput = {
|
|
104
104
|
kind: "file-api";
|
|
105
105
|
file: VideoFileHandle;
|
|
106
106
|
} | {
|
|
107
107
|
kind: "base64";
|
|
108
108
|
data: string;
|
|
109
109
|
mimeType: string;
|
|
110
|
-
}
|
|
110
|
+
};
|
|
111
|
+
type VideoMediaInput = UploadedMediaInput | {
|
|
111
112
|
kind: "local";
|
|
112
113
|
path: string;
|
|
113
114
|
mimeType: string;
|
|
@@ -133,6 +134,18 @@ interface VideoProviderOverrides {
|
|
|
133
134
|
interface LlmExecutorOptions {
|
|
134
135
|
videoProvider?: VideoProviderOverrides;
|
|
135
136
|
}
|
|
137
|
+
interface DocumentGenerationRequest {
|
|
138
|
+
media: UploadedMediaInput;
|
|
139
|
+
system?: string;
|
|
140
|
+
user: string;
|
|
141
|
+
responseJsonSchema?: JsonSchema;
|
|
142
|
+
signal?: AbortSignal;
|
|
143
|
+
}
|
|
144
|
+
interface DocumentUnderstandingPort {
|
|
145
|
+
prepare(localPath: string, signal?: AbortSignal): Promise<UploadedMediaInput>;
|
|
146
|
+
generate(request: DocumentGenerationRequest): Promise<TextGenerationResponse>;
|
|
147
|
+
release(media: UploadedMediaInput, signal?: AbortSignal): Promise<void>;
|
|
148
|
+
}
|
|
136
149
|
interface VideoGenerationRequest {
|
|
137
150
|
media: VideoMediaInput;
|
|
138
151
|
system?: string;
|
|
@@ -164,6 +177,7 @@ interface LlmRouteInfo {
|
|
|
164
177
|
baseUrl: string | null;
|
|
165
178
|
model: string;
|
|
166
179
|
fingerprint: string;
|
|
180
|
+
videoUploadMode?: VideoUploadMode;
|
|
167
181
|
}
|
|
168
182
|
interface LlmRouteUsage extends LlmRouteInfo {
|
|
169
183
|
calls: number;
|
|
@@ -195,6 +209,7 @@ interface LlmTaskExecutor {
|
|
|
195
209
|
generateText(task: LlmTaskId, request: Omit<TextGenerationRequest, "maxOutputTokens">): Promise<TextGenerationResponse>;
|
|
196
210
|
generateTool(task: LlmTaskId, request: Omit<ToolGenerationRequest, "maxOutputTokens">): Promise<ToolGenerationResponse>;
|
|
197
211
|
videoPort(task: LlmTaskId): TaskVideoPort;
|
|
212
|
+
documentPort(task: LlmTaskId): DocumentUnderstandingPort;
|
|
198
213
|
route(task: LlmTaskId): LlmRouteInfo;
|
|
199
214
|
routes(): LlmRouteInfo[];
|
|
200
215
|
recordReuse(task: LlmTaskId): void;
|
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunk-
|
|
1
|
+
import{a,b}from"./chunk-OYTWFCNO.js";export{a as buildProgram,b as main};
|