@deepseek-ai/dsh-file-reference 0.1.2-alpha.2 → 0.1.2-alpha.4

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/context/file-reference/README.md
5
- README.md: 7571aecbc42cdcda39a2c7ad5416205e7f4c108c
6
- README.zh.md: ad13336f47b3069fd35e75eb2aed994221bb9e3c
5
+ README.md: ce84a91e96988fb662ee665707d1ce2ad1651327
6
+ README.zh.md: f4840179cebce060cc95cb4308b42d0715d1d5e5
package/README.md CHANGED
@@ -60,7 +60,7 @@ The package separates an abstract discovery service from a shared, browser-safe
60
60
  | [`src/index.ts`](src/index.ts) | Abstract `FileReferenceService` and `FILE_REFERENCE_PROMPT` |
61
61
  | [`src/grammar.ts`](src/grammar.ts) | `activeAtToken` recognition and `formatFileMention` rendering |
62
62
  | [`src/types.ts`](src/types.ts) | `FileReferenceCandidate` path-only result type |
63
- | [`src/invariant.ts`](src/invariant.ts) | Invariant companion for the discovery contract |
63
+ | | No runtime invariant companion is published; the interface retains no candidate or lifecycle state; concrete providers own their cache and invalidation relationships. |
64
64
 
65
65
  ### Main flow
66
66
 
package/README.zh.md CHANGED
@@ -60,7 +60,7 @@ kind: "package-reference"
60
60
  | [`src/index.ts`](src/index.ts) | 抽象 `FileReferenceService` 与 `FILE_REFERENCE_PROMPT` |
61
61
  | [`src/grammar.ts`](src/grammar.ts) | `activeAtToken` 识别与 `formatFileMention` 渲染 |
62
62
  | [`src/types.ts`](src/types.ts) | 仅含路径的结果类型 `FileReferenceCandidate` |
63
- | [`src/invariant.ts`](src/invariant.ts) | 发现约定的不变式伴生插件 |
63
+ | | 不发布运行时不变式伴生入口;接口不保留 candidate 或 lifecycle 状态;具体 provider 负责自己的 cache 与 invalidation 关系。 |
64
64
 
65
65
  ### 主要流程
66
66
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-file-reference",
3
3
  "description": "File-reference discovery contract and shared @file grammar",
4
- "version": "0.1.2-alpha.2",
4
+ "version": "0.1.2-alpha.4",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -22,10 +22,6 @@
22
22
  "types": "./lib/types/grammar.d.ts",
23
23
  "default": "./lib/types/grammar.js"
24
24
  },
25
- "./invariant": {
26
- "types": "./lib/types/invariant.d.ts",
27
- "default": "./lib/invariant.js"
28
- },
29
25
  "./types": {
30
26
  "types": "./lib/types/types.d.ts",
31
27
  "default": "./lib/types/types.js"
@@ -35,19 +31,16 @@
35
31
  },
36
32
  "files": [
37
33
  "lib/index.js",
38
- "lib/invariant.js",
39
34
  "lib/types/**/*.js",
40
35
  "lib/types/**/*.d.ts"
41
36
  ],
42
37
  "license": "MIT",
43
38
  "peerDependencies": {
44
- "@deepseek-ai/dsh-agent": "^0.1.2-alpha.2",
45
- "@deepseek-ai/cordis": "^4.0.2",
46
- "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2"
39
+ "@deepseek-ai/dsh-agent": "^0.1.2-alpha.4",
40
+ "@deepseek-ai/cordis": "^4.0.2"
47
41
  },
48
42
  "devDependencies": {
49
- "@deepseek-ai/dsh-agent": "^0.1.2-alpha.2",
50
- "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2",
51
- "@deepseek-ai/cordis": "^4.0.2"
43
+ "@deepseek-ai/cordis": "^4.0.2",
44
+ "@deepseek-ai/dsh-agent": "^0.1.2-alpha.4"
52
45
  }
53
46
  }
package/lib/invariant.js DELETED
@@ -1,23 +0,0 @@
1
- //#region lib/types/invariant.js
2
- /**
3
- * Package-owned invariant companion for `@deepseek-ai/dsh-file-reference`.
4
- * @module @deepseek-ai/dsh-file-reference/invariant
5
- */
6
- const PACKAGE_NAME = "@deepseek-ai/dsh-file-reference";
7
- /** Cordis companion plugin name. */
8
- const name = "file-reference-invariant";
9
- /** Service required before the companion can reserve package ownership. */
10
- const inject = ["invariants"];
11
- /**
12
- * No runtime invariant: the interface retains no candidate or lifecycle
13
- * state; concrete providers own their cache and invalidation relationships.
14
- */
15
- const install = () => {};
16
- /**
17
- * Register this package's invariant companion.
18
- * @param ctx - Cordis context carrying the invariant service.
19
- * @returns the installed registration's disposer after setup succeeds.
20
- */
21
- const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
22
- //#endregion
23
- export { apply, inject, name };
@@ -1,16 +0,0 @@
1
- /**
2
- * Package-owned invariant companion for `@deepseek-ai/dsh-file-reference`.
3
- * @module @deepseek-ai/dsh-file-reference/invariant
4
- */
5
- import type { Context } from '@deepseek-ai/cordis';
6
- /** Cordis companion plugin name. */
7
- export declare const name = "file-reference-invariant";
8
- /** Service required before the companion can reserve package ownership. */
9
- export declare const inject: string[];
10
- /**
11
- * Register this package's invariant companion.
12
- * @param ctx - Cordis context carrying the invariant service.
13
- * @returns the installed registration's disposer after setup succeeds.
14
- */
15
- export declare const apply: (ctx: Context) => Promise<() => void>;
16
- //# sourceMappingURL=invariant.d.ts.map
@@ -1,22 +0,0 @@
1
- /**
2
- * Package-owned invariant companion for `@deepseek-ai/dsh-file-reference`.
3
- * @module @deepseek-ai/dsh-file-reference/invariant
4
- */
5
- const PACKAGE_NAME = '@deepseek-ai/dsh-file-reference';
6
- /** Cordis companion plugin name. */
7
- export const name = 'file-reference-invariant';
8
- /** Service required before the companion can reserve package ownership. */
9
- export const inject = ['invariants'];
10
- /**
11
- * No runtime invariant: the interface retains no candidate or lifecycle
12
- * state; concrete providers own their cache and invalidation relationships.
13
- */
14
- const install = () => { };
15
- /**
16
- * Register this package's invariant companion.
17
- * @param ctx - Cordis context carrying the invariant service.
18
- * @returns the installed registration's disposer after setup succeeds.
19
- */
20
- export const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
21
- /* jscpd:ignore-end */
22
- //# sourceMappingURL=invariant.js.map