@anionex/dsh-vision-toolkit 0.1.29 → 0.1.30

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/lib/client.js CHANGED
@@ -773,7 +773,7 @@ function draftOf(value) {
773
773
  anthropicThinking: value.provider?.anthropicThinking ?? 'omit',
774
774
  userAgent: value.provider?.userAgent ?? DEFAULT_USER_AGENT,
775
775
  language: value.language ?? 'zh',
776
- timeoutMs: String(value.timeoutMs ?? 15000),
776
+ timeoutMs: String(value.timeoutMs ?? 30000),
777
777
  maxImageBytes: String(value.maxImageBytes ?? 4194304),
778
778
  maxImagePixels: String(value.maxImagePixels ?? 20000000),
779
779
  concurrency: String(value.concurrency ?? 4),
package/lib/config.js CHANGED
@@ -39,7 +39,7 @@ export const Config = z.object({
39
39
  userAgent: z.string().default(DEFAULT_VISION_USER_AGENT),
40
40
  }),
41
41
  language: z.union(['zh', 'en']).default('zh'),
42
- timeoutMs: z.number().default(15000),
42
+ timeoutMs: z.number().default(30000),
43
43
  maxImageBytes: z.number().default(4194304),
44
44
  maxImagePixels: z.number().default(20000000),
45
45
  concurrency: z.number().default(4),
@@ -101,7 +101,7 @@ export function resolveConfig(config = {}) {
101
101
  if (language !== 'zh' && language !== 'en') {
102
102
  throw new VisionToolkitError('config', 'language must be "zh" or "en"');
103
103
  }
104
- const timeoutMs = config.timeoutMs ?? 15000;
104
+ const timeoutMs = config.timeoutMs ?? 30000;
105
105
  if (!Number.isInteger(timeoutMs) || timeoutMs < 1000 || timeoutMs > MAX_TIMEOUT_MS) {
106
106
  throw new VisionToolkitError('config', `timeoutMs must be an integer between 1000 and ${MAX_TIMEOUT_MS}`);
107
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anionex/dsh-vision-toolkit",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "description": "DeepSeek Harness-native integration for agent-vision-toolkit: image Q&A, OCR, grounding, UI restoration, pixel diff, Artifacts, and Web UI.",
5
5
  "keywords": [
6
6
  "deepseek",
@@ -1077,7 +1077,7 @@ function draftOf(value: SettingsValue): Draft {
1077
1077
  anthropicThinking: value.provider?.anthropicThinking ?? 'omit',
1078
1078
  userAgent: value.provider?.userAgent ?? DEFAULT_USER_AGENT,
1079
1079
  language: value.language ?? 'zh',
1080
- timeoutMs: String(value.timeoutMs ?? 15000),
1080
+ timeoutMs: String(value.timeoutMs ?? 30000),
1081
1081
  maxImageBytes: String(value.maxImageBytes ?? 4194304),
1082
1082
  maxImagePixels: String(value.maxImagePixels ?? 20000000),
1083
1083
  concurrency: String(value.concurrency ?? 4),
package/src/config.ts CHANGED
@@ -114,7 +114,7 @@ export const Config: Schema<VisionToolkitConfig> = z.object({
114
114
  userAgent: z.string().default(DEFAULT_VISION_USER_AGENT),
115
115
  }),
116
116
  language: z.union(['zh', 'en'] as const).default('zh'),
117
- timeoutMs: z.number().default(15000),
117
+ timeoutMs: z.number().default(30000),
118
118
  maxImageBytes: z.number().default(4194304),
119
119
  maxImagePixels: z.number().default(20000000),
120
120
  concurrency: z.number().default(4),
@@ -209,7 +209,7 @@ export function resolveConfig(config: VisionToolkitConfig = {}): ResolvedVisionT
209
209
  if (language !== 'zh' && language !== 'en') {
210
210
  throw new VisionToolkitError('config', 'language must be "zh" or "en"')
211
211
  }
212
- const timeoutMs = config.timeoutMs ?? 15000
212
+ const timeoutMs = config.timeoutMs ?? 30000
213
213
  if (!Number.isInteger(timeoutMs) || timeoutMs < 1000 || timeoutMs > MAX_TIMEOUT_MS) {
214
214
  throw new VisionToolkitError('config', `timeoutMs must be an integer between 1000 and ${MAX_TIMEOUT_MS}`)
215
215
  }