@rljson/fs-agent 0.0.2 → 0.0.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.architecture.md +47 -0
- package/README.contributors.md +4 -0
- package/README.public.md +59 -2
- package/dist/README.architecture.md +47 -0
- package/dist/README.contributors.md +4 -0
- package/dist/README.public.md +59 -2
- package/dist/client-server/example-from-client.d.ts +1 -0
- package/dist/client-server/live-client-server-socketio.d.ts +1 -0
- package/dist/fs-agent.d.ts +137 -1
- package/dist/fs-agent.js +289 -3150
- package/dist/fs-db-adapter.d.ts +10 -3
- package/dist/index.d.ts +1 -1
- package/package.json +19 -17
package/dist/fs-db-adapter.d.ts
CHANGED
|
@@ -5,12 +5,19 @@ import { FsTree } from './fs-scanner.js';
|
|
|
5
5
|
*/
|
|
6
6
|
export interface StoreFsTreeOptions {
|
|
7
7
|
/**
|
|
8
|
-
* Whether to
|
|
8
|
+
* Whether to skip notifications after storing (defaults to false).
|
|
9
|
+
* When false, observers (e.g. Connector) are notified automatically
|
|
10
|
+
* via the standard db.insertTrees() pipeline.
|
|
9
11
|
*/
|
|
10
|
-
|
|
12
|
+
skipNotification?: boolean;
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
|
-
* Adapter for storing filesystem trees in a database
|
|
15
|
+
* Adapter for storing filesystem trees in a database.
|
|
16
|
+
*
|
|
17
|
+
* Uses `db.insertTrees()` to go through the standard insert pipeline:
|
|
18
|
+
* - TreeController writes each node
|
|
19
|
+
* - InsertHistoryRow is created automatically
|
|
20
|
+
* - `notify.notify()` fires so Connector observers broadcast the ref
|
|
14
21
|
*/
|
|
15
22
|
export declare class FsDbAdapter {
|
|
16
23
|
private db;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { FsAgent, type FsAgentOptions } from './fs-agent.ts';
|
|
1
|
+
export { FsAgent, type FsAgentOptions, type RestoreOptions, type TimeoutConfig, } from './fs-agent.ts';
|
|
2
2
|
export { FsBlobAdapter, type BlobToFileOptions, type FileBlobMeta, type FileToBlobOptions, } from './fs-blob-adapter.ts';
|
|
3
3
|
export { FsDbAdapter, type StoreFsTreeOptions } from './fs-db-adapter.ts';
|
|
4
4
|
export { FsScanner, type FsChange, type FsChangeCallback, type FsChangeType, type FsNodeMeta, type FsScanOptions, type FsTree, } from './fs-scanner.ts';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rljson/fs-agent",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Rljson fs-agent description",
|
|
5
5
|
"homepage": "https://github.com/rljson/fs-agent",
|
|
6
6
|
"bugs": "https://github.com/rljson/fs-agent/issues",
|
|
@@ -20,40 +20,42 @@
|
|
|
20
20
|
],
|
|
21
21
|
"type": "module",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@rljson/server": "^0.0.
|
|
24
|
-
"@types/node": "^25.
|
|
25
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
26
|
-
"@typescript-eslint/parser": "^8.
|
|
23
|
+
"@rljson/server": "^0.0.6",
|
|
24
|
+
"@types/node": "^25.2.3",
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
26
|
+
"@typescript-eslint/parser": "^8.56.0",
|
|
27
27
|
"@vitest/coverage-v8": "^4.0.18",
|
|
28
28
|
"cross-env": "^10.1.0",
|
|
29
|
-
"eslint": "
|
|
30
|
-
"eslint-plugin-jsdoc": "^62.5.
|
|
29
|
+
"eslint": "~9.39.2",
|
|
30
|
+
"eslint-plugin-jsdoc": "^62.5.5",
|
|
31
31
|
"eslint-plugin-tsdoc": "^0.5.0",
|
|
32
32
|
"globals": "^17.3.0",
|
|
33
33
|
"jsdoc": "^4.0.5",
|
|
34
|
-
"read-pkg": "^10.
|
|
34
|
+
"read-pkg": "^10.1.0",
|
|
35
35
|
"typescript": "~5.9.3",
|
|
36
|
-
"typescript-eslint": "^8.
|
|
36
|
+
"typescript-eslint": "^8.56.0",
|
|
37
37
|
"vite": "^7.3.1",
|
|
38
38
|
"vite-node": "^5.3.0",
|
|
39
39
|
"vite-plugin-dts": "^4.5.4",
|
|
40
|
-
"vite-tsconfig-paths": "^6.
|
|
40
|
+
"vite-tsconfig-paths": "^6.1.1",
|
|
41
41
|
"vitest": "^4.0.18",
|
|
42
42
|
"vitest-dom": "^0.1.1"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@rljson/bs": "^0.0.
|
|
46
|
-
"@rljson/db": "^0.0.
|
|
45
|
+
"@rljson/bs": "^0.0.21",
|
|
46
|
+
"@rljson/db": "^0.0.14",
|
|
47
47
|
"@rljson/hash": "^0.0.18",
|
|
48
|
-
"@rljson/io": "^0.0.
|
|
48
|
+
"@rljson/io": "^0.0.66",
|
|
49
49
|
"@rljson/json": "^0.0.23",
|
|
50
|
-
"@rljson/rljson": "^0.0.
|
|
50
|
+
"@rljson/rljson": "^0.0.76",
|
|
51
|
+
"socket.io": "^4.8.3",
|
|
52
|
+
"socket.io-client": "^4.8.3"
|
|
51
53
|
},
|
|
52
54
|
"scripts": {
|
|
53
|
-
"build": "
|
|
54
|
-
"test": "cross-env NODE_OPTIONS=--max-old-space-size=8192
|
|
55
|
+
"build": "pnpm exec vite build && tsc && node scripts/copy-readme-to-dist.js",
|
|
56
|
+
"test": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm exec vitest run --coverage && pnpm run lint",
|
|
55
57
|
"prebuild": "npm run test",
|
|
56
|
-
"lint": "
|
|
58
|
+
"lint": "pnpm exec eslint .",
|
|
57
59
|
"updateGoldens": "cross-env UPDATE_GOLDENS=true pnpm test"
|
|
58
60
|
}
|
|
59
61
|
}
|