@lmzhen/dsh-evolution-io 0.3.17 → 0.3.19

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.
@@ -5,8 +5,8 @@
5
5
  import { Context, Service } from '@deepseek-ai/cordis';
6
6
  export interface EvolutionIo {
7
7
  readonly name: string;
8
- readText(path: string, signal?: AbortSignal): Promise<string | null>;
9
- writeText(path: string, content: string, signal?: AbortSignal): Promise<void>;
8
+ readText(path: string): Promise<string | null>;
9
+ writeText(path: string, content: string): Promise<void>;
10
10
  remove(path: string): Promise<void>;
11
11
  list(path: string): Promise<string[]>;
12
12
  exists(path: string): Promise<boolean>;
@@ -17,7 +17,7 @@ export interface EvolutionIo {
17
17
  * bytes, or `null` when unknown (unsupported backend, missing file, stat
18
18
  * failure). An implementation without this probe gets no read guard.
19
19
  */
20
- size?(path: string, signal?: AbortSignal): Promise<number | null>;
20
+ size?(path: string): Promise<number | null>;
21
21
  /**
22
22
  * Optional atomic read-modify-write (rc.50 P2-2): the read and the write run
23
23
  * inside a single cross-process lock so two processes sharing DSH_HOME
@@ -34,6 +34,13 @@ export interface EvolutionIo {
34
34
  * "let it through". Mirrors `EvolutionIoLike.isSymlink`.
35
35
  */
36
36
  isSymlink?(this: void, path: string): Promise<boolean | null>;
37
+ /**
38
+ * Optional mtime-generation probe (0.3.18, E-71): milliseconds since epoch
39
+ * of the path's mtime, or `null` when unknown (unsupported backend, missing
40
+ * path, stat failure). Consumers use it as a cheap invalidation stamp for a
41
+ * cached listing. Mirrors `EvolutionIoLike.mtime`.
42
+ */
43
+ mtime?(this: void, path: string): Promise<number | null>;
37
44
  }
38
45
  declare module '@deepseek-ai/cordis' {
39
46
  interface Context {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-io",
3
3
  "description": "IO seam for evolution providers (community build)",
4
- "version": "0.3.17",
4
+ "version": "0.3.19",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },