@poe-platform/safe-js 0.1.2 → 0.1.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.md +1 -1
- package/dist/compat/fs-core.d.ts +1 -0
- package/dist/compat/fs-core.js +1 -0
- package/dist/compat/fs-node.d.ts +1 -0
- package/dist/compat/fs-node.js +1 -0
- package/dist/compat/fs.d.ts +1 -0
- package/dist/compat/fs.js +1 -0
- package/dist/safe-js/chunks/{chunk-DC5B3GYM.js → chunk-4HHBSGDR.js} +12 -12
- package/dist/safe-js/chunks/{chunk-DC5B3GYM.js.map → chunk-4HHBSGDR.js.map} +1 -1
- package/dist/safe-js/cli.js +1 -3
- package/dist/safe-js/cli.js.map +1 -1
- package/dist/safe-js/index.js +1 -3
- package/dist/safe-js/index.js.map +1 -1
- package/dist/safe-js/modules/fs-config.d.ts +1 -1
- package/dist/safe-js/modules/fs.d.ts +1 -1
- package/package.json +15 -34
- package/dist/safe-fs/bridge/filesystem.d.ts +0 -88
- package/dist/safe-fs/bridge/index.d.ts +0 -6
- package/dist/safe-fs/bridge/types.d.ts +0 -75
- package/dist/safe-fs/config.d.ts +0 -15
- package/dist/safe-fs/config.node.d.ts +0 -2
- package/dist/safe-fs/contracts/errors.d.ts +0 -50
- package/dist/safe-fs/contracts/filesystem.d.ts +0 -96
- package/dist/safe-fs/contracts/index.d.ts +0 -4
- package/dist/safe-fs/contracts/io.d.ts +0 -8
- package/dist/safe-fs/contracts/path.d.ts +0 -8
- package/dist/safe-fs/contracts/portable-path.d.ts +0 -13
- package/dist/safe-fs/contracts/virtual-path.d.ts +0 -7
- package/dist/safe-fs/core.d.ts +0 -12
- package/dist/safe-fs/fs/memory/index.d.ts +0 -58
- package/dist/safe-fs/fs/mount/comparison.d.ts +0 -19
- package/dist/safe-fs/fs/mount/index.d.ts +0 -44
- package/dist/safe-fs/fs/overlay/index.d.ts +0 -73
- package/dist/safe-fs/fs/readonly/index.d.ts +0 -31
- package/dist/safe-fs/fs/real/index.d.ts +0 -76
- package/dist/safe-fs/fs/s3/filesystem.d.ts +0 -93
- package/dist/safe-fs/fs/s3/http/index.d.ts +0 -2
- package/dist/safe-fs/fs/s3/http/transport.d.ts +0 -3
- package/dist/safe-fs/fs/s3/http/types.d.ts +0 -30
- package/dist/safe-fs/fs/s3/index.d.ts +0 -6
- package/dist/safe-fs/fs/s3/mock.d.ts +0 -48
- package/dist/safe-fs/fs/s3/transport.d.ts +0 -103
- package/dist/safe-fs/fs/webdav/index.d.ts +0 -2
- package/dist/safe-fs/fs/webdav/webdav.d.ts +0 -101
- package/dist/safe-fs/index.d.ts +0 -14
- package/dist/safe-fs/node/filesystem.d.ts +0 -11
- package/dist/safe-fs/node/index.d.ts +0 -2
- package/dist/safe-fs/node-host.d.ts +0 -1
- package/dist/safe-fs/platform/browser.d.ts +0 -12
- package/dist/safe-fs/platform/node.d.ts +0 -13
- package/dist/safe-js/browser/chunks/chunk-QGN6DKT5.js +0 -4335
- package/dist/safe-js/browser/chunks/chunk-QGN6DKT5.js.map +0 -7
- package/dist/safe-js/browser/safe-fs-core.js +0 -67
- package/dist/safe-js/browser/safe-fs-core.js.map +0 -7
- package/dist/safe-js/browser/safe-fs.js +0 -67
- package/dist/safe-js/browser/safe-fs.js.map +0 -7
- package/dist/safe-js/chunks/chunk-2QRYPKQQ.js +0 -4315
- package/dist/safe-js/chunks/chunk-2QRYPKQQ.js.map +0 -7
- package/dist/safe-js/chunks/chunk-7M2SJPSZ.js +0 -2613
- package/dist/safe-js/chunks/chunk-7M2SJPSZ.js.map +0 -7
- package/dist/safe-js/safe-fs-core.js +0 -130
- package/dist/safe-js/safe-fs-core.js.map +0 -7
- package/dist/safe-js/safe-fs-node.js +0 -94
- package/dist/safe-js/safe-fs-node.js.map +0 -7
- package/dist/safe-js/safe-fs.js +0 -94
- package/dist/safe-js/safe-fs.js.map +0 -7
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ console.log(result.returnValue);
|
|
|
27
27
|
|
|
28
28
|
`run()` takes source text, not a file path. Success returns `ok`, `returnValue`, `snapshot`, and `stats`. Handle both an `ok: false` result and a rejected promise: parsing, budget exhaustion, cancellation, and some execution failures can reject. Top-level `await` in this example lets rejections reach Node.
|
|
29
29
|
|
|
30
|
-
`@poe-platform/safe-js/core` exposes `run`, `lint`, `Budget`, and replayable-random helpers. The shared filesystem
|
|
30
|
+
`@poe-platform/safe-js/core` exposes `run`, `lint`, `Budget`, and replayable-random helpers. The shared filesystem lives in `@poe-platform/safe-fs`, with a portable `/core` entry. Existing `@poe-platform/safe-js/fs`, `/fs/core`, and `/fs/node` imports re-export it. Legacy `poe-code/safe-js` imports remain available through the CLI package but use a separate runtime; keep factories and errors within one import family.
|
|
31
31
|
|
|
32
32
|
## Supported features
|
|
33
33
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@poe-platform/safe-fs/core";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@poe-platform/safe-fs/core";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@poe-platform/safe-fs/node";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@poe-platform/safe-fs/node";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@poe-platform/safe-fs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@poe-platform/safe-fs";
|
|
@@ -28,17 +28,6 @@ import {
|
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
30
|
} from "./chunk-Z3D76J4U.js";
|
|
31
|
-
import {
|
|
32
|
-
createFileSystem,
|
|
33
|
-
createNodeFileSystemAdapterRegistry,
|
|
34
|
-
createNodeFsBridge,
|
|
35
|
-
readConfigRecord,
|
|
36
|
-
validateFileSystemConfig
|
|
37
|
-
} from "./chunk-7M2SJPSZ.js";
|
|
38
|
-
import {
|
|
39
|
-
FsError,
|
|
40
|
-
isPathWithin
|
|
41
|
-
} from "./chunk-2QRYPKQQ.js";
|
|
42
31
|
|
|
43
32
|
// packages/safe-js/src/migrate.ts
|
|
44
33
|
import { createHash } from "node:crypto";
|
|
@@ -2899,6 +2888,11 @@ import * as nodeFsPromises from "node:fs/promises";
|
|
|
2899
2888
|
import { dirname as dirname2, isAbsolute as isAbsolute2, resolve as resolve2, sep as sep2 } from "node:path";
|
|
2900
2889
|
import { inspect } from "node:util";
|
|
2901
2890
|
import * as nodeUtil from "node:util";
|
|
2891
|
+
import {
|
|
2892
|
+
createNodeFsBridge,
|
|
2893
|
+
FsError,
|
|
2894
|
+
isPathWithin
|
|
2895
|
+
} from "@poe-platform/safe-fs";
|
|
2902
2896
|
|
|
2903
2897
|
// packages/safe-js/src/modules/canonical-path.ts
|
|
2904
2898
|
import { basename, dirname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -3563,6 +3557,12 @@ function isObjectLike(value) {
|
|
|
3563
3557
|
}
|
|
3564
3558
|
|
|
3565
3559
|
// packages/safe-js/src/modules/fs-config.ts
|
|
3560
|
+
import {
|
|
3561
|
+
createFileSystem,
|
|
3562
|
+
createNodeFileSystemAdapterRegistry,
|
|
3563
|
+
readConfigRecord,
|
|
3564
|
+
validateFileSystemConfig
|
|
3565
|
+
} from "@poe-platform/safe-fs";
|
|
3566
3566
|
function validateFsConfig(value) {
|
|
3567
3567
|
const config = readConfigRecord(value, "fs config", ["adapter", "root", "cwd"]);
|
|
3568
3568
|
const paths = {};
|
|
@@ -8245,4 +8245,4 @@ export {
|
|
|
8245
8245
|
parseMcpConfig,
|
|
8246
8246
|
makeMcpModule
|
|
8247
8247
|
};
|
|
8248
|
-
//# sourceMappingURL=chunk-
|
|
8248
|
+
//# sourceMappingURL=chunk-4HHBSGDR.js.map
|