@yaklabs-ai/plugin-sdk 0.12.5 → 0.13.1

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/dist/fs.d.ts ADDED
@@ -0,0 +1,156 @@
1
+ import { constants } from 'node:fs';
2
+ import { FileHandle } from 'node:fs/promises';
3
+ import * as nodeFsp from 'node:fs/promises';
4
+
5
+ export declare const access: typeof nodeFsp.access;
6
+
7
+ export declare const appendFile: typeof nodeFsp.appendFile;
8
+
9
+ export declare const chmod: typeof nodeFsp.chmod;
10
+
11
+ export declare const chown: typeof nodeFsp.chown;
12
+
13
+ export { constants }
14
+
15
+ export declare const copyFile: typeof nodeFsp.copyFile;
16
+
17
+ export declare const cp: typeof nodeFsp.cp;
18
+
19
+ declare const _default: {
20
+ access: typeof nodeFsp.access;
21
+ appendFile: typeof nodeFsp.appendFile;
22
+ chmod: typeof nodeFsp.chmod;
23
+ chown: typeof nodeFsp.chown;
24
+ constants: typeof constants;
25
+ copyFile: typeof nodeFsp.copyFile;
26
+ cp: typeof nodeFsp.cp;
27
+ glob: typeof nodeFsp.glob;
28
+ lchmod: typeof nodeFsp.lchmod;
29
+ lchown: typeof nodeFsp.lchown;
30
+ link: typeof nodeFsp.link;
31
+ lstat: typeof nodeFsp.lstat;
32
+ lutimes: typeof nodeFsp.lutimes;
33
+ mkdir: typeof nodeFsp.mkdir;
34
+ mkdtemp: typeof nodeFsp.mkdtemp;
35
+ mkdtempDisposable: (prefix: string, options?: unknown) => Promise<{
36
+ path: string;
37
+ remove(): Promise<void>;
38
+ [Symbol.asyncDispose](): Promise<void>;
39
+ }>;
40
+ open: typeof nodeFsp.open;
41
+ opendir: typeof nodeFsp.opendir;
42
+ readdir: typeof nodeFsp.readdir;
43
+ readFile: typeof nodeFsp.readFile;
44
+ readlink: typeof nodeFsp.readlink;
45
+ realpath: typeof nodeFsp.realpath;
46
+ rename: typeof nodeFsp.rename;
47
+ rm: typeof nodeFsp.rm;
48
+ rmdir: typeof nodeFsp.rmdir;
49
+ stat: typeof nodeFsp.stat;
50
+ statfs: typeof nodeFsp.statfs;
51
+ symlink: typeof nodeFsp.symlink;
52
+ truncate: typeof nodeFsp.truncate;
53
+ unlink: typeof nodeFsp.unlink;
54
+ utimes: typeof nodeFsp.utimes;
55
+ watch: typeof nodeFsp.watch;
56
+ writeFile: typeof nodeFsp.writeFile;
57
+ writeFileAtomic: typeof writeFileAtomic;
58
+ withTimeout: typeof withTimeout;
59
+ };
60
+ export default _default;
61
+
62
+ export { FileHandle }
63
+
64
+ export declare const glob: typeof nodeFsp.glob;
65
+
66
+ /** Not tried: a call at or above this path missed its deadline recently. */
67
+ export declare const KAY_FS_COOLING_DOWN = "ERR_KAY_FS_COOLING_DOWN";
68
+
69
+ /** The call did not finish by its deadline; the host abandoned the worker running it. */
70
+ export declare const KAY_FS_DEADLINE = "ERR_KAY_FS_DEADLINE";
71
+
72
+ /** A call's deadline when its options name none. */
73
+ export declare const KAY_FS_DEFAULT_TIMEOUT_MS = 30000;
74
+
75
+ /** Not tried: the host's file workers are all stuck on other paths. */
76
+ export declare const KAY_FS_SATURATED = "ERR_KAY_FS_SATURATED";
77
+
78
+ /** The host's file service is closed, or its worker could not start or died mid-call. */
79
+ export declare const KAY_FS_UNAVAILABLE = "ERR_KAY_FS_UNAVAILABLE";
80
+
81
+ /** An option or function this module does not implement (see the module docs). */
82
+ export declare const KAY_FS_UNSUPPORTED = "ERR_KAY_FS_UNSUPPORTED";
83
+
84
+ export declare const lchmod: typeof nodeFsp.lchmod;
85
+
86
+ export declare const lchown: typeof nodeFsp.lchown;
87
+
88
+ export declare const link: typeof nodeFsp.link;
89
+
90
+ export declare const lstat: typeof nodeFsp.lstat;
91
+
92
+ export declare const lutimes: typeof nodeFsp.lutimes;
93
+
94
+ export declare const mkdir: typeof nodeFsp.mkdir;
95
+
96
+ export declare const mkdtemp: typeof nodeFsp.mkdtemp;
97
+
98
+ /** Node 24's disposable temporary directory, built on {@link mkdtemp} and {@link rm}. */
99
+ export declare const mkdtempDisposable: (prefix: string, options?: unknown) => Promise<{
100
+ path: string;
101
+ remove(): Promise<void>;
102
+ [Symbol.asyncDispose](): Promise<void>;
103
+ }>;
104
+
105
+ export declare const open: typeof nodeFsp.open;
106
+
107
+ export declare const opendir: typeof nodeFsp.opendir;
108
+
109
+ export declare const readdir: typeof nodeFsp.readdir;
110
+
111
+ export declare const readFile: typeof nodeFsp.readFile;
112
+
113
+ export declare const readlink: typeof nodeFsp.readlink;
114
+
115
+ export declare const realpath: typeof nodeFsp.realpath;
116
+
117
+ export declare const rename: typeof nodeFsp.rename;
118
+
119
+ export declare const rm: typeof nodeFsp.rm;
120
+
121
+ export declare const rmdir: typeof nodeFsp.rmdir;
122
+
123
+ export declare const stat: typeof nodeFsp.stat;
124
+
125
+ export declare const statfs: typeof nodeFsp.statfs;
126
+
127
+ export declare const symlink: typeof nodeFsp.symlink;
128
+
129
+ export declare const truncate: typeof nodeFsp.truncate;
130
+
131
+ export declare const unlink: typeof nodeFsp.unlink;
132
+
133
+ export declare const utimes: typeof nodeFsp.utimes;
134
+
135
+ export declare const watch: typeof nodeFsp.watch;
136
+
137
+ /**
138
+ * Run `run` with `timeoutMs` as the deadline of every call it makes that names none itself,
139
+ * including calls without an options object (`open`, `stat`, a file handle's methods). Not in
140
+ * Node; with no host installed it only runs `run`.
141
+ */
142
+ export declare function withTimeout<T>(timeoutMs: number, run: () => T): T;
143
+
144
+ export declare const writeFile: typeof nodeFsp.writeFile;
145
+
146
+ /**
147
+ * Replace `path` so a reader never sees a partial file: write a temporary file beside it, flush
148
+ * it to disk, then rename it over `path`. Not in Node; works with or without a host.
149
+ */
150
+ export declare function writeFileAtomic(path: string | URL, data: string | NodeJS.ArrayBufferView, options?: {
151
+ readonly encoding?: BufferEncoding;
152
+ readonly mode?: number;
153
+ readonly timeoutMs?: number;
154
+ }): Promise<void>;
155
+
156
+ export { }