@lmzhen/dsh-evolution-io 0.3.18 → 0.3.20
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/lib/types/index.d.ts +3 -3
- package/package.json +1 -1
package/lib/types/index.d.ts
CHANGED
|
@@ -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
|
|
9
|
-
writeText(path: string, content: string
|
|
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
|
|
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
|