@deepseek-ai/dsh-attachment 0.1.2-alpha.3 → 0.1.2-alpha.5
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/package.json +5 -12
- package/lib/invariant.js +0 -17
- package/lib/types/invariant.d.ts +0 -13
- package/lib/types/invariant.js +0 -16
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: 9561ab4265eb0404f6f60c93c34dab73eed5ffe1
|
|
6
|
+
README.zh.md: 31fcb15c04fadb44c44342e3d1d721d22645732f
|
package/README.md
CHANGED
|
@@ -78,7 +78,7 @@ The service family runs one admission-and-storage flow: every entry point enforc
|
|
|
78
78
|
| [`src/admission.ts`](src/admission.ts) | Browser prompt admission: canonical-base64 enforcement, `saveImages` delegation, and durable prompt-part projection |
|
|
79
79
|
| [`src/error.ts`](src/error.ts) | `AttachmentError` class and the `isImageAdmissionError` runtime subset |
|
|
80
80
|
| [`src/brand.ts`](src/brand.ts) | `AttachmentId` branded opaque identifier |
|
|
81
|
-
|
|
|
81
|
+
| — | No runtime invariant companion is published; this stateless seam owns types while implementations enforce immutable-store checks. |
|
|
82
82
|
|
|
83
83
|
</details>
|
|
84
84
|
|
package/README.zh.md
CHANGED
|
@@ -78,7 +78,7 @@ kind: "package-reference"
|
|
|
78
78
|
| [`src/admission.ts`](src/admission.ts) | 浏览器 prompt 准入:强制规范 base64、委托 `saveImages` 并投影持久 prompt part |
|
|
79
79
|
| [`src/error.ts`](src/error.ts) | `AttachmentError` 类与 `isImageAdmissionError` 运行时子集 |
|
|
80
80
|
| [`src/brand.ts`](src/brand.ts) | `AttachmentId` 带类型标记的不透明标识符 |
|
|
81
|
-
|
|
|
81
|
+
| — | 不发布运行时不变式伴生入口;实现负责强制不可变存储检查。 |
|
|
82
82
|
|
|
83
83
|
</details>
|
|
84
84
|
|
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.1.2-alpha.
|
|
4
|
+
"version": "0.1.2-alpha.5",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -18,10 +18,6 @@
|
|
|
18
18
|
"types": "./lib/types/index.d.ts",
|
|
19
19
|
"default": "./lib/index.js"
|
|
20
20
|
},
|
|
21
|
-
"./invariant": {
|
|
22
|
-
"types": "./lib/types/invariant.d.ts",
|
|
23
|
-
"default": "./lib/invariant.js"
|
|
24
|
-
},
|
|
25
21
|
"./types": {
|
|
26
22
|
"types": "./lib/types/types.d.ts",
|
|
27
23
|
"default": "./lib/types/types.js"
|
|
@@ -31,19 +27,16 @@
|
|
|
31
27
|
},
|
|
32
28
|
"files": [
|
|
33
29
|
"lib/index.js",
|
|
34
|
-
"lib/invariant.js",
|
|
35
30
|
"lib/types/**/*.js",
|
|
36
31
|
"lib/types/**/*.d.ts"
|
|
37
32
|
],
|
|
38
33
|
"license": "MIT",
|
|
39
34
|
"peerDependencies": {
|
|
40
|
-
"@deepseek-ai/
|
|
41
|
-
"@deepseek-ai/dsh-
|
|
42
|
-
"@deepseek-ai/cordis": "^4.0.2"
|
|
35
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
36
|
+
"@deepseek-ai/dsh-brand": "^0.1.2-alpha.5"
|
|
43
37
|
},
|
|
44
38
|
"devDependencies": {
|
|
45
|
-
"@deepseek-ai/
|
|
46
|
-
"@deepseek-ai/dsh-
|
|
47
|
-
"@deepseek-ai/cordis": "^4.0.2"
|
|
39
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
40
|
+
"@deepseek-ai/dsh-brand": "^0.1.2-alpha.5"
|
|
48
41
|
}
|
|
49
42
|
}
|
package/lib/invariant.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//#region lib/types/invariant.js
|
|
2
|
-
/** Package-owned invariant companion for `@deepseek-ai/dsh-attachment`. @module @deepseek-ai/dsh-attachment/invariant */
|
|
3
|
-
const PACKAGE_NAME = "@deepseek-ai/dsh-attachment";
|
|
4
|
-
/** Cordis companion plugin name. */
|
|
5
|
-
const name = "attachment-invariant";
|
|
6
|
-
/** Service required before package ownership can be reserved. */
|
|
7
|
-
const inject = ["invariants"];
|
|
8
|
-
/** No runtime invariant: this stateless seam owns types while implementations enforce immutable-store checks. */
|
|
9
|
-
const install = () => {};
|
|
10
|
-
/**
|
|
11
|
-
* Register the package invariant companion.
|
|
12
|
-
* @param ctx - Cordis context carrying the invariant service.
|
|
13
|
-
* @returns the registration disposer.
|
|
14
|
-
*/
|
|
15
|
-
const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
|
|
16
|
-
//#endregion
|
|
17
|
-
export { apply, inject, name };
|
package/lib/types/invariant.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** Package-owned invariant companion for `@deepseek-ai/dsh-attachment`. @module @deepseek-ai/dsh-attachment/invariant */
|
|
2
|
-
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
-
/** Cordis companion plugin name. */
|
|
4
|
-
export declare const name = "attachment-invariant";
|
|
5
|
-
/** Service required before package ownership can be reserved. */
|
|
6
|
-
export declare const inject: string[];
|
|
7
|
-
/**
|
|
8
|
-
* Register the package invariant companion.
|
|
9
|
-
* @param ctx - Cordis context carrying the invariant service.
|
|
10
|
-
* @returns the registration disposer.
|
|
11
|
-
*/
|
|
12
|
-
export declare const apply: (ctx: Context) => Promise<() => void>;
|
|
13
|
-
//# sourceMappingURL=invariant.d.ts.map
|
package/lib/types/invariant.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** Package-owned invariant companion for `@deepseek-ai/dsh-attachment`. @module @deepseek-ai/dsh-attachment/invariant */
|
|
2
|
-
const PACKAGE_NAME = '@deepseek-ai/dsh-attachment';
|
|
3
|
-
/** Cordis companion plugin name. */
|
|
4
|
-
export const name = 'attachment-invariant';
|
|
5
|
-
/** Service required before package ownership can be reserved. */
|
|
6
|
-
export const inject = ['invariants'];
|
|
7
|
-
/** No runtime invariant: this stateless seam owns types while implementations enforce immutable-store checks. */
|
|
8
|
-
const install = () => { };
|
|
9
|
-
/**
|
|
10
|
-
* Register the package invariant companion.
|
|
11
|
-
* @param ctx - Cordis context carrying the invariant service.
|
|
12
|
-
* @returns the registration disposer.
|
|
13
|
-
*/
|
|
14
|
-
export const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
|
|
15
|
-
/* jscpd:ignore-end */
|
|
16
|
-
//# sourceMappingURL=invariant.js.map
|