@xiaohhhh1/canvas-agent 0.4.56 → 0.4.57
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.
|
@@ -37,7 +37,7 @@ export class WorkerPool {
|
|
|
37
37
|
this.available.push(workerIndex);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
export function boundedWorkerConcurrency(value, fallback =
|
|
40
|
+
export function boundedWorkerConcurrency(value, fallback = 4, maximum = 4) {
|
|
41
41
|
const parsed = Number(value);
|
|
42
42
|
if (!Number.isInteger(parsed) || parsed < 1)
|
|
43
43
|
return fallback;
|
|
@@ -5,6 +5,6 @@ export declare const FLOW_C_SCRIPT_CHUNK_SIZES: readonly [10, 5, 1];
|
|
|
5
5
|
* 长视频每条都包含总脚本和 2/3 套完整分镜,不能沿用短脚本的 30 条输出量。
|
|
6
6
|
* 小段回传既能更早显示进度,也避免单个 Codex turn 因输出过大而被中断。
|
|
7
7
|
*/
|
|
8
|
-
export declare function flowCScriptChunkSizes(durationSeconds: 10 | 20 | 30): readonly [10, 5, 1] | readonly [
|
|
8
|
+
export declare function flowCScriptChunkSizes(durationSeconds: 10 | 20 | 30): readonly [10, 5, 1] | readonly [1];
|
|
9
9
|
/** 将当前缺失 ordinal 切成可独立持久化的子批;长视频绝不恢复 30 条大回合。 */
|
|
10
10
|
export declare function flowCScriptChunks(durationSeconds: 10 | 20 | 30, ordinals: number[], size?: number): number[][];
|