@deepseek-ai/dsh-file-reference-local 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-local/README.md
5
- README.md: da5db0882e9f4538bdd901a970eca98aac10bbde
6
- README.zh.md: cea38d335c8b29ddc3c875782cb62df1d0ae6e0d
5
+ README.md: 26137f04d0c5dde22a36f6361acd1d6386dc1633
6
+ README.zh.md: bdb8bf1840597c7ad08aca258d4bd94b345623e0
package/README.md CHANGED
@@ -71,7 +71,7 @@ The provider maintains one reusable `WorkspaceFileSearch` per agent, rooted at t
71
71
  |---|---|
72
72
  | [`src/index.ts`](src/index.ts) | `LocalFileReferenceService`: config validation, per-agent searches, prompt install |
73
73
  | [`src/search.ts`](src/search.ts) | `WorkspaceFileSearch`: traversal, ranking, exclusion, staleness and background rebuild |
74
- | [`src/invariant.ts`](src/invariant.ts) | Invariant companion for the discovery contract |
74
+ | | No runtime invariant companion is published; per-agent indexes are private advisory caches whose invalidation and disposal are observed directly through service tests. |
75
75
 
76
76
  ### Main flow
77
77
 
package/README.zh.md CHANGED
@@ -71,7 +71,7 @@ agent(智能体)及其宿主 UI 获得 `@file` mention 的排序路径候选
71
71
  |---|---|
72
72
  | [`src/index.ts`](src/index.ts) | `LocalFileReferenceService`:配置校验、按 agent 搜索、提示词安装 |
73
73
  | [`src/search.ts`](src/search.ts) | `WorkspaceFileSearch`:遍历、排序、排除、陈旧标记与后台重建 |
74
- | [`src/invariant.ts`](src/invariant.ts) | 发现约定的不变式伴生插件 |
74
+ | | 不发布运行时不变式伴生入口;按 Agent 的 index 是私有 advisory cache,其失效与释放通过 service 测试直接观察。 |
75
75
 
76
76
  ### 主要流程
77
77
 
package/lib/index.js CHANGED
@@ -236,6 +236,7 @@ async function readDirectory(absolute, signal) {
236
236
  signal.throwIfAborted();
237
237
  return entries.sort((left, right) => compareText(left.name, right.name));
238
238
  } catch (_error) {
239
+ /* v8 ignore start -- Windows chmod cannot make the unreadable-directory fixture fail readdir; POSIX behavior covers this fallback. */
239
240
  signal.throwIfAborted();
240
241
  return [];
241
242
  }
@@ -256,10 +256,12 @@ async function readDirectory(absolute, signal) {
256
256
  return entries.sort((left, right) => compareText(left.name, right.name));
257
257
  }
258
258
  catch (_error) {
259
+ /* v8 ignore start -- Windows chmod cannot make the unreadable-directory fixture fail readdir; POSIX behavior covers this fallback. */
259
260
  signal.throwIfAborted();
260
261
  // An unreadable/missing subtree contributes no candidates; other readable
261
262
  // branches remain useful and autocomplete is advisory.
262
263
  return [];
264
+ /* v8 ignore stop */
263
265
  }
264
266
  }
265
267
  function visibleForGlobalQuery(path, query) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-file-reference-local",
3
3
  "description": "Local-filesystem ctx.fileReferences provider with bounded fuzzy indexes",
4
- "version": "0.1.2-alpha.2",
4
+ "version": "0.1.2-alpha.4",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -22,16 +22,11 @@
22
22
  "types": "./lib/types/search.d.ts",
23
23
  "default": "./lib/types/search.js"
24
24
  },
25
- "./invariant": {
26
- "types": "./lib/types/invariant.d.ts",
27
- "default": "./lib/invariant.js"
28
- },
29
25
  "./src/*": "./src/*",
30
26
  "./package.json": "./package.json"
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
  ],
@@ -40,19 +35,17 @@
40
35
  "@deepseek-ai/schemastery": "^3.18.2"
41
36
  },
42
37
  "peerDependencies": {
43
- "@deepseek-ai/dsh-agent": "^0.1.2-alpha.2",
44
- "@deepseek-ai/dsh-file-reference": "^0.1.2-alpha.2",
45
- "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2",
46
- "@deepseek-ai/dsh-system-prompt": "^0.1.2-alpha.2",
47
- "@deepseek-ai/dsh-tools": "^0.1.2-alpha.2",
38
+ "@deepseek-ai/dsh-agent": "^0.1.2-alpha.4",
39
+ "@deepseek-ai/dsh-file-reference": "^0.1.2-alpha.4",
40
+ "@deepseek-ai/dsh-system-prompt": "^0.1.2-alpha.4",
41
+ "@deepseek-ai/dsh-tools": "^0.1.2-alpha.4",
48
42
  "@deepseek-ai/cordis": "^4.0.2"
49
43
  },
50
44
  "devDependencies": {
51
- "@deepseek-ai/dsh-agent": "^0.1.2-alpha.2",
52
- "@deepseek-ai/dsh-file-reference": "^0.1.2-alpha.2",
53
- "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2",
54
- "@deepseek-ai/dsh-tools": "^0.1.2-alpha.2",
55
- "@deepseek-ai/dsh-system-prompt": "^0.1.2-alpha.2",
45
+ "@deepseek-ai/dsh-agent": "^0.1.2-alpha.4",
46
+ "@deepseek-ai/dsh-file-reference": "^0.1.2-alpha.4",
47
+ "@deepseek-ai/dsh-system-prompt": "^0.1.2-alpha.4",
48
+ "@deepseek-ai/dsh-tools": "^0.1.2-alpha.4",
56
49
  "@deepseek-ai/cordis": "^4.0.2"
57
50
  }
58
51
  }
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-local`.
4
- * @module @deepseek-ai/dsh-file-reference-local/invariant
5
- */
6
- const PACKAGE_NAME = "@deepseek-ai/dsh-file-reference-local";
7
- /** Cordis companion plugin name. */
8
- const name = "file-reference-local-invariant";
9
- /** Service required before the companion can reserve package ownership. */
10
- const inject = ["invariants"];
11
- /**
12
- * No runtime invariant: per-agent indexes are private advisory caches whose
13
- * invalidation and disposal are observed directly through service tests.
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-local`.
3
- * @module @deepseek-ai/dsh-file-reference-local/invariant
4
- */
5
- import type { Context } from '@deepseek-ai/cordis';
6
- /** Cordis companion plugin name. */
7
- export declare const name = "file-reference-local-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-local`.
3
- * @module @deepseek-ai/dsh-file-reference-local/invariant
4
- */
5
- const PACKAGE_NAME = '@deepseek-ai/dsh-file-reference-local';
6
- /** Cordis companion plugin name. */
7
- export const name = 'file-reference-local-invariant';
8
- /** Service required before the companion can reserve package ownership. */
9
- export const inject = ['invariants'];
10
- /**
11
- * No runtime invariant: per-agent indexes are private advisory caches whose
12
- * invalidation and disposal are observed directly through service tests.
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