@deepseek-ai/dsh-tool-fs 0.1.0-rc.7 → 0.1.0-rc.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/README.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/fs/tool-fs/README.md
5
- README.md: 71dc4134feee6bf1b5d17eef5f62e587653adf6d
6
- README.zh.md: dff4b838aea4c6fa50a92ce2102bfdd2a96150a5
5
+ README.md: ce7c0ea9070e30c1e6b538933ff5c4605b8d59cc
6
+ README.zh.md: 28360fbe6d0ab0f1a2b5ff11e44155ad6468274c
package/README.md CHANGED
@@ -131,7 +131,7 @@ A successful `read_image` returns `<path><displayPath></path>`, `<type>image</ty
131
131
 
132
132
  #### Token effect
133
133
 
134
- The image is billed on every later request until compaction. Each call is independently bounded by the attachment store's `maxImageBytes`/`maxImagePixels`; repeated successful calls accumulate history, and content addressing deduplicates only the stored bytes, not the per-request token cost.
134
+ The image is billed on every later request until compaction. Each call is independently bounded by the attachment store's `maxImageBytes`/`maxImagePixels`/`maxImageDimension`; repeated successful calls accumulate history, and content addressing deduplicates only the stored bytes, not the per-request token cost.
135
135
 
136
136
  #### KV Cache effect
137
137
 
package/README.zh.md CHANGED
@@ -131,7 +131,7 @@ Use the edit tool for targeted changes to existing UTF-8 text files. It replaces
131
131
 
132
132
  #### Token 影响
133
133
 
134
- 图像在之后每次请求中都会计费,直到压缩。每次调用都独立受附件存储的 `maxImageBytes`/`maxImagePixels` 约束;重复成功调用会在历史中累积,内容寻址只去重存储的字节,不去重每次请求的 token 成本。
134
+ 图像在之后每次请求中都会计费,直到压缩。每次调用都独立受附件存储的 `maxImageBytes`/`maxImagePixels`/`maxImageDimension` 约束;重复成功调用会在历史中累积,内容寻址只去重存储的字节,不去重每次请求的 token 成本。
135
135
 
136
136
  #### KV Cache 影响
137
137
 
package/lib/index.js CHANGED
@@ -1023,7 +1023,10 @@ function applyReadImageTool(ctx) {
1023
1023
  name: basename(target.displayPath)
1024
1024
  });
1025
1025
  } catch (error) {
1026
- if (!(error instanceof AttachmentError) || error.code !== "IMAGE_TYPE_MISMATCH") throw error;
1026
+ if (!(error instanceof AttachmentError)) throw error;
1027
+ if (error.code === "IMAGE_DIMENSION_TOO_LARGE") throw new Error(`cannot read "${target.displayPath}": at least one image side exceeds the ${attachments.imageLimits.maxImageDimension}px limit; downscale the image and read the smaller copy`, { cause: error });
1028
+ if (error.code === "IMAGE_TOO_MANY_PIXELS") throw new Error(`cannot read "${target.displayPath}": the image exceeds the ${attachments.imageLimits.maxImagePixels}-pixel decoded-size limit; downscale the image and read the smaller copy`, { cause: error });
1029
+ if (error.code !== "IMAGE_TYPE_MISMATCH") throw error;
1027
1030
  const extension = extname(target.displayPath).toLowerCase();
1028
1031
  throw new Error(`cannot read "${target.displayPath}": the ${extension} extension declares ${mediaType}, but the bytes use a different image format; rename the file to match its actual format if it is PNG/JPEG/WebP/GIF, or convert it to one of those formats`, { cause: error });
1029
1032
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-tool-fs",
3
3
  "description": "Model-facing filesystem tools (read, write, edit) over the DeepSeek Harness filesystem seam (ctx.fs)",
4
- "version": "0.1.0-rc.7",
4
+ "version": "0.1.0-rc.8",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -36,35 +36,35 @@
36
36
  "@deepseek-ai/schemastery": "^3.18.1"
37
37
  },
38
38
  "peerDependencies": {
39
- "@deepseek-ai/dsh-attachment": "^0.1.0-rc.7",
40
- "@deepseek-ai/dsh-invariants": "^0.1.0-rc.7",
41
- "@deepseek-ai/dsh-llm": "^0.1.0-rc.7",
42
- "@deepseek-ai/dsh-sandbox": "^0.1.0-rc.7",
43
- "@deepseek-ai/dsh-fs": "^0.1.0-rc.7",
44
- "@deepseek-ai/dsh-sandbox-policy": "^0.1.0-rc.7",
45
- "@deepseek-ai/dsh-system-prompt": "^0.1.0-rc.7",
46
- "@deepseek-ai/dsh-tools": "^0.1.0-rc.7",
47
- "@deepseek-ai/dsh-user-approval": "^0.1.0-rc.7",
39
+ "@deepseek-ai/dsh-attachment": "^0.1.0-rc.8",
40
+ "@deepseek-ai/dsh-fs": "^0.1.0-rc.8",
41
+ "@deepseek-ai/dsh-invariants": "^0.1.0-rc.8",
42
+ "@deepseek-ai/dsh-llm": "^0.1.0-rc.8",
43
+ "@deepseek-ai/dsh-sandbox-policy": "^0.1.0-rc.8",
44
+ "@deepseek-ai/dsh-session": "^0.1.0-rc.8",
45
+ "@deepseek-ai/dsh-system-prompt": "^0.1.0-rc.8",
46
+ "@deepseek-ai/dsh-tools": "^0.1.0-rc.8",
47
+ "@deepseek-ai/dsh-user-approval": "^0.1.0-rc.8",
48
48
  "@deepseek-ai/cordis": "^4.0.1",
49
- "@deepseek-ai/dsh-session": "^0.1.0-rc.7"
49
+ "@deepseek-ai/dsh-sandbox": "^0.1.0-rc.8"
50
50
  },
51
51
  "devDependencies": {
52
- "@deepseek-ai/dsh-agent-loop": "^0.1.0-rc.7",
53
- "@deepseek-ai/dsh-agent-loop-testkit": "^0.1.0-rc.7",
54
- "@deepseek-ai/dsh-attachment": "^0.1.0-rc.7",
55
- "@deepseek-ai/dsh-fs-observation-policy": "^0.1.0-rc.7",
56
- "@deepseek-ai/dsh-agent": "^0.1.0-rc.7",
57
- "@deepseek-ai/dsh-fs": "^0.1.0-rc.7",
58
- "@deepseek-ai/dsh-invariants": "^0.1.0-rc.7",
59
- "@deepseek-ai/dsh-fs-local": "^0.1.0-rc.7",
60
- "@deepseek-ai/dsh-llm": "^0.1.0-rc.7",
61
- "@deepseek-ai/dsh-llm-deepseek": "^0.1.0-rc.7",
62
- "@deepseek-ai/dsh-sandbox": "^0.1.0-rc.7",
63
- "@deepseek-ai/dsh-session": "^0.1.0-rc.7",
64
- "@deepseek-ai/dsh-system-prompt": "^0.1.0-rc.7",
65
- "@deepseek-ai/dsh-sandbox-policy": "^0.1.0-rc.7",
66
- "@deepseek-ai/dsh-tools": "^0.1.0-rc.7",
67
- "@deepseek-ai/dsh-user-approval": "^0.1.0-rc.7",
52
+ "@deepseek-ai/dsh-agent": "^0.1.0-rc.8",
53
+ "@deepseek-ai/dsh-agent-loop": "^0.1.0-rc.8",
54
+ "@deepseek-ai/dsh-attachment": "^0.1.0-rc.8",
55
+ "@deepseek-ai/dsh-fs": "^0.1.0-rc.8",
56
+ "@deepseek-ai/dsh-agent-loop-testkit": "^0.1.0-rc.8",
57
+ "@deepseek-ai/dsh-fs-observation-policy": "^0.1.0-rc.8",
58
+ "@deepseek-ai/dsh-fs-local": "^0.1.0-rc.8",
59
+ "@deepseek-ai/dsh-invariants": "^0.1.0-rc.8",
60
+ "@deepseek-ai/dsh-llm": "^0.1.0-rc.8",
61
+ "@deepseek-ai/dsh-llm-deepseek": "^0.1.0-rc.8",
62
+ "@deepseek-ai/dsh-sandbox": "^0.1.0-rc.8",
63
+ "@deepseek-ai/dsh-sandbox-policy": "^0.1.0-rc.8",
64
+ "@deepseek-ai/dsh-session": "^0.1.0-rc.8",
65
+ "@deepseek-ai/dsh-system-prompt": "^0.1.0-rc.8",
66
+ "@deepseek-ai/dsh-tools": "^0.1.0-rc.8",
67
+ "@deepseek-ai/dsh-user-approval": "^0.1.0-rc.8",
68
68
  "@deepseek-ai/cordis": "^4.0.1"
69
69
  }
70
70
  }