@linkdesk/contracts 0.1.33 → 0.1.34

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.
Files changed (2) hide show
  1. package/linkdesk.d.ts +2 -0
  2. package/package.json +24 -24
package/linkdesk.d.ts CHANGED
@@ -1902,6 +1902,8 @@ export interface WorkspaceAPI {
1902
1902
  detect(buffer: Uint8Array): Promise<string>;
1903
1903
  decode(buffer: Uint8Array, encoding: string): Promise<string>;
1904
1904
  encode(text: string, encoding: string): Promise<Uint8Array>;
1905
+ /** T1 二进制守卫:纯启发式判定(判定归壳,一处真相源;旧壳无此方法 ⇒ 插件须特性探测降级) */
1906
+ isBinary(buffer: Uint8Array): Promise<boolean>;
1905
1907
  };
1906
1908
  }
1907
1909
  /** 文件装饰——池内本地注册表。形状对标插件 API 契约 §3.24 */
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
- {
2
- "name": "@linkdesk/contracts",
3
- "version": "0.1.33",
4
- "description": "LinkDesk 插件契约类型——window.linkdesk.* 全量类型定义(E5.8 契约生成产物)。第三方插件作者唯一合法类型消费路径。",
5
- "type": "module",
6
- "types": "./linkdesk.d.ts",
7
- "files": [
8
- "linkdesk.d.ts"
9
- ],
10
- "sideEffects": false,
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
- "scripts": {
15
- "prepack": "node ../scripts/generate-contract.mjs"
16
- },
17
- "keywords": [
18
- "linkdesk",
19
- "plugin",
20
- "types",
21
- "contract"
22
- ],
23
- "license": "MIT"
24
- }
1
+ {
2
+ "name": "@linkdesk/contracts",
3
+ "version": "0.1.34",
4
+ "description": "LinkDesk 插件契约类型——window.linkdesk.* 全量类型定义(E5.8 契约生成产物)。第三方插件作者唯一合法类型消费路径。",
5
+ "type": "module",
6
+ "types": "./linkdesk.d.ts",
7
+ "files": [
8
+ "linkdesk.d.ts"
9
+ ],
10
+ "sideEffects": false,
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "scripts": {
15
+ "prepack": "node ../scripts/generate-contract.mjs"
16
+ },
17
+ "keywords": [
18
+ "linkdesk",
19
+ "plugin",
20
+ "types",
21
+ "contract"
22
+ ],
23
+ "license": "MIT"
24
+ }