@deepseek-ai/dsh-attachment 0.0.1-rc.1 → 0.0.1-rc.2
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 +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/lib/types/index.d.ts +3 -1
- package/package.json +6 -6
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/attachment/attachment/README.md
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: baeeca0cf939f1a3d4608769b362d532507b90f5
|
|
6
|
+
README.zh.md: 238b90794c510e71fffe34d62b044a5c2ece8a6e
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ English | [中文](README.zh.md)
|
|
|
4
4
|
|
|
5
5
|
The durable attachment seam. `ctx.attachments` validates and atomically commits immutable image bytes, then returns a serializable `ImageAttachmentRef`; consumers never persist browser paths, object URLs, provider URLs, or base64 in session events.
|
|
6
6
|
|
|
7
|
-
Unsent composer images remain browser-owned temporary drafts. `validateImage` runs the same admission policy without persisting; batch writers validate every member first so a malformed member cannot strand earlier members as unreferenced objects. `saveImage` commits each accepted image before any model-visible session event is published, and `readImage` verifies the content-addressed object against its logged metadata.
|
|
7
|
+
Unsent composer images remain browser-owned temporary drafts. `validateImage` runs the same admission policy without persisting; batch writers validate every member first so a malformed member cannot strand earlier members as unreferenced objects. `saveImage` commits each accepted image before any model-visible session event is published, and `readImage` verifies the content-addressed object against its logged metadata. Callers may cancel `readImage`; implementations observe cancellation around backend and verification work and preserve it instead of translating it into a storage failure.
|
|
8
8
|
|
|
9
9
|
## Model Experience
|
|
10
10
|
|
package/README.zh.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
持久附件服务边界。`ctx.attachments` 校验并以原子方式提交不可变图片字节,随后返回可序列化的 `ImageAttachmentRef`;消费方绝不会在会话事件中持久保存浏览器路径、对象 URL、提供方 URL 或 base64。
|
|
6
6
|
|
|
7
|
-
未发送的输入区图片仍是由浏览器持有的临时草稿。`validateImage` 运行相同的准入策略,但不执行持久化;批量写入方会先校验每个成员,避免某个格式错误的成员使较早的成员成为无引用对象。`saveImage` 会在发布任何模型可见的会话事件前提交每张已接受的图片,`readImage`
|
|
7
|
+
未发送的输入区图片仍是由浏览器持有的临时草稿。`validateImage` 运行相同的准入策略,但不执行持久化;批量写入方会先校验每个成员,避免某个格式错误的成员使较早的成员成为无引用对象。`saveImage` 会在发布任何模型可见的会话事件前提交每张已接受的图片,`readImage` 则根据已记录的元数据校验内容寻址对象。调用方可以取消 `readImage`;实现会在后端读取与校验工作的边界观察取消,并保留取消语义,而不会将其转换为存储失败。
|
|
8
8
|
|
|
9
9
|
## 模型体验
|
|
10
10
|
|
package/lib/types/index.d.ts
CHANGED
|
@@ -30,9 +30,11 @@ export declare abstract class AttachmentStore extends Service {
|
|
|
30
30
|
/**
|
|
31
31
|
* Read one image and verify that bytes still match the recorded reference.
|
|
32
32
|
* @param ref - durable reference from the session log.
|
|
33
|
+
* @param signal - optional cancellation for backend read and verification work.
|
|
33
34
|
* @returns the verified bytes and canonical reference.
|
|
35
|
+
* @throws the signal reason when aborted, or a storage error when verification fails.
|
|
34
36
|
*/
|
|
35
|
-
abstract readImage(ref: ImageAttachmentRef): Promise<StoredImageAttachment>;
|
|
37
|
+
abstract readImage(ref: ImageAttachmentRef, signal?: AbortSignal): Promise<StoredImageAttachment>;
|
|
36
38
|
}
|
|
37
39
|
export default AttachmentStore;
|
|
38
40
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-attachment",
|
|
3
3
|
"description": "Durable immutable attachment storage seam for the DeepSeek Harness",
|
|
4
|
-
"version": "0.0.1-rc.
|
|
4
|
+
"version": "0.0.1-rc.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "restricted"
|
|
7
7
|
},
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
],
|
|
33
33
|
"license": "BSD-3-Clause",
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@deepseek-ai/dsh-brand": "^0.0.1-rc.
|
|
36
|
-
"@deepseek-ai/
|
|
37
|
-
"@deepseek-ai/
|
|
35
|
+
"@deepseek-ai/dsh-brand": "^0.0.1-rc.2",
|
|
36
|
+
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.2",
|
|
37
|
+
"@deepseek-ai/cordis": "^4.0.1-rc.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@deepseek-ai/dsh-brand": "^0.0.1-rc.
|
|
41
|
-
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.
|
|
40
|
+
"@deepseek-ai/dsh-brand": "^0.0.1-rc.2",
|
|
41
|
+
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.2",
|
|
42
42
|
"@deepseek-ai/cordis": "^4.0.1-rc.1"
|
|
43
43
|
}
|
|
44
44
|
}
|