惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
D
DataBreaches.Net
C
Check Point Blog
雷峰网
雷峰网
小众软件
小众软件
GbyAI
GbyAI
美团技术团队
P
Proofpoint News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
WordPress大学
WordPress大学
MyScale Blog
MyScale Blog
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
Apple Machine Learning Research
Apple Machine Learning Research
Y
Y Combinator Blog
Jina AI
Jina AI
爱范儿
爱范儿
Last Week in AI
Last Week in AI
MongoDB | Blog
MongoDB | Blog
I
InfoQ
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix: validate pixverse video seed metadata · openclaw/ope...
steipete · 2026-05-29 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -13,7 +13,11 @@ import {

1313

sanitizeConfiguredModelProviderRequest,

1414

type ProviderOperationDeadline,

1515

} from "openclaw/plugin-sdk/provider-http";

16-

import { asFiniteNumber, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";

16+

import {

17+

asFiniteNumber,

18+

asSafeIntegerInRange,

19+

normalizeOptionalString,

20+

} from "openclaw/plugin-sdk/string-coerce-runtime";

1721

import type {

1822

GeneratedVideoAsset,

1923

VideoGenerationProvider,

@@ -34,6 +38,7 @@ const DEFAULT_TIMEOUT_MS = 300_000;

3438

const POLL_INTERVAL_MS = 5_000;

3539

const MAX_POLL_ATTEMPTS = 180;

3640

const MAX_DURATION_SECONDS = 15;

41+

const PIXVERSE_SEED_MAX = 2_147_483_647;

3742

const PIXVERSE_VIDEO_MODELS = ["v6", "c1"] as const;

3843

const PIXVERSE_TEXT_ASPECT_RATIOS = [

3944

"16:9",

@@ -134,12 +139,16 @@ function appendOptionalNumber(body: Record<string, unknown>, key: string, value:

134139

}

135140
136141

function appendOptionalInt32Seed(body: Record<string, unknown>, value: unknown): void {

137-

const seed = asFiniteNumber(value);

138-

if (seed != null && Number.isSafeInteger(seed) && seed >= 0 && seed <= 2_147_483_647) {

142+

const seed = asSafeIntegerInRange(value, { min: 0, max: PIXVERSE_SEED_MAX });

143+

if (seed !== undefined) {

139144

body.seed = seed;

140145

}

141146

}

142147
148+

function readPixVerseSeed(value: unknown): number | undefined {

149+

return asSafeIntegerInRange(value, { min: 0, max: PIXVERSE_SEED_MAX });

150+

}

151+
143152

function appendOptionalString(body: Record<string, unknown>, key: string, value: unknown): void {

144153

const stringValue = normalizeOptionalString(value);

145154

if (stringValue) {

@@ -498,7 +507,7 @@ export function buildPixVerseVideoGenerationProvider(): VideoGenerationProvider

498507

endpoint,

499508

videoId,

500509

status: readPixVerseStatus(completed),

501-

seed: asFiniteNumber(completed.seed),

510+

seed: readPixVerseSeed(completed.seed),

502511

size: asFiniteNumber(completed.size),

503512

},

504513

};