poe-code 15.0.5 → 15.0.6
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/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/safe-bash/dist/commands/archive/index.d.ts +2 -0
- package/packages/safe-bash/dist/commands/archive/index.d.ts.map +1 -1
- package/packages/safe-bash/dist/commands/archive/index.js +11 -3
- package/packages/safe-bash/dist/commands/archive/index.js.map +1 -1
- package/packages/safe-bash/dist/commands/archive/unzip/arguments.d.ts +32 -0
- package/packages/safe-bash/dist/commands/archive/unzip/arguments.d.ts.map +1 -0
- package/packages/safe-bash/dist/commands/archive/unzip/arguments.js +214 -0
- package/packages/safe-bash/dist/commands/archive/unzip/arguments.js.map +1 -0
- package/packages/safe-bash/dist/commands/archive/unzip/safety.d.ts +28 -0
- package/packages/safe-bash/dist/commands/archive/unzip/safety.d.ts.map +1 -0
- package/packages/safe-bash/dist/commands/archive/unzip/safety.js +288 -0
- package/packages/safe-bash/dist/commands/archive/unzip/safety.js.map +1 -0
- package/packages/safe-bash/dist/commands/archive/unzip.d.ts +4 -0
- package/packages/safe-bash/dist/commands/archive/unzip.d.ts.map +1 -0
- package/packages/safe-bash/dist/commands/archive/unzip.js +264 -0
- package/packages/safe-bash/dist/commands/archive/unzip.js.map +1 -0
- package/packages/safe-bash/dist/commands/archive/zip/safety.d.ts +28 -0
- package/packages/safe-bash/dist/commands/archive/zip/safety.d.ts.map +1 -0
- package/packages/safe-bash/dist/commands/archive/zip/safety.js +228 -0
- package/packages/safe-bash/dist/commands/archive/zip/safety.js.map +1 -0
- package/packages/safe-bash/dist/commands/archive/zip-format.d.ts +39 -0
- package/packages/safe-bash/dist/commands/archive/zip-format.d.ts.map +1 -0
- package/packages/safe-bash/dist/commands/archive/zip-format.js +509 -0
- package/packages/safe-bash/dist/commands/archive/zip-format.js.map +1 -0
- package/packages/safe-bash/dist/commands/archive/zip.d.ts +4 -0
- package/packages/safe-bash/dist/commands/archive/zip.d.ts.map +1 -0
- package/packages/safe-bash/dist/commands/archive/zip.js +290 -0
- package/packages/safe-bash/dist/commands/archive/zip.js.map +1 -0
- package/packages/safe-bash/dist/commands/bytes/compression/codec.d.ts +1 -1
- package/packages/safe-bash/dist/commands/bytes/compression/codec.d.ts.map +1 -1
- package/packages/safe-bash/dist/commands/bytes/compression/codec.js +2 -2
- package/packages/safe-bash/dist/commands/bytes/compression/codec.js.map +1 -1
- package/packages/safe-bash/dist/core.browser.js +1937 -389
- package/packages/safe-bash/dist/core.browser.js.map +4 -4
- package/packages/safe-bash/dist/shell/runtime.d.ts +1 -0
- package/packages/safe-bash/dist/shell/runtime.d.ts.map +1 -1
- package/packages/safe-bash/dist/shell/runtime.js +4 -1
- package/packages/safe-bash/dist/shell/runtime.js.map +1 -1
- package/packages/safe-fs/dist/core.d.ts +2 -1
- package/packages/safe-fs/dist/fs/scoped.d.ts +12 -2
- package/packages/safe-fs/dist/index.d.ts +2 -1
- package/packages/safe-js/dist/browser/chunks/{chunk-GQOAEEHU.js → chunk-3EJ7BQOJ.js} +89 -5
- package/packages/safe-js/dist/browser/chunks/{chunk-GQOAEEHU.js.map → chunk-3EJ7BQOJ.js.map} +3 -3
- package/packages/safe-js/dist/browser/safe-fs-core.js +3 -1
- package/packages/safe-js/dist/browser/safe-fs.js +3 -1
- package/packages/safe-js/dist/chunks/{chunk-DIISVPWF.js → chunk-742TUUOL.js} +89 -5
- package/packages/safe-js/dist/chunks/{chunk-DIISVPWF.js.map → chunk-742TUUOL.js.map} +3 -3
- package/packages/safe-js/dist/chunks/{chunk-L6LDJNBY.js → chunk-NMX3FJ3X.js} +3 -3
- package/packages/safe-js/dist/chunks/{chunk-CAWKMCKD.js → chunk-UVHJFEFO.js} +2 -2
- package/packages/safe-js/dist/cli.js +3 -3
- package/packages/safe-js/dist/index.js +3 -3
- package/packages/safe-js/dist/safe-fs-core.js +3 -1
- package/packages/safe-js/dist/safe-fs-core.js.map +1 -1
- package/packages/safe-js/dist/safe-fs-node.js +4 -2
- package/packages/safe-js/dist/safe-fs.js +4 -2
- /package/packages/safe-js/dist/chunks/{chunk-L6LDJNBY.js.map → chunk-NMX3FJ3X.js.map} +0 -0
- /package/packages/safe-js/dist/chunks/{chunk-CAWKMCKD.js.map → chunk-UVHJFEFO.js.map} +0 -0
|
@@ -32,14 +32,14 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
createNodeFileSystemAdapterRegistry,
|
|
34
34
|
createNodeFsBridge
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-UVHJFEFO.js";
|
|
36
36
|
import {
|
|
37
37
|
FsError,
|
|
38
38
|
createFileSystem,
|
|
39
39
|
isPathWithin,
|
|
40
40
|
readConfigRecord,
|
|
41
41
|
validateFileSystemConfig
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-742TUUOL.js";
|
|
43
43
|
|
|
44
44
|
// packages/safe-js/src/migrate.ts
|
|
45
45
|
import { createHash } from "node:crypto";
|
|
@@ -8237,4 +8237,4 @@ export {
|
|
|
8237
8237
|
parseMcpConfig,
|
|
8238
8238
|
makeMcpModule
|
|
8239
8239
|
};
|
|
8240
|
-
//# sourceMappingURL=chunk-
|
|
8240
|
+
//# sourceMappingURL=chunk-NMX3FJ3X.js.map
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
toByteSource,
|
|
21
21
|
toFsError,
|
|
22
22
|
validatePath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-742TUUOL.js";
|
|
24
24
|
|
|
25
25
|
// packages/safe-fs/src/contracts/path.ts
|
|
26
26
|
import { posix } from "node:path";
|
|
@@ -2976,4 +2976,4 @@ export {
|
|
|
2976
2976
|
createNodeFsBridge,
|
|
2977
2977
|
createNodeFileSystemAdapterRegistry
|
|
2978
2978
|
};
|
|
2979
|
-
//# sourceMappingURL=chunk-
|
|
2979
|
+
//# sourceMappingURL=chunk-UVHJFEFO.js.map
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveFsConfig,
|
|
23
23
|
splitFrontmatter,
|
|
24
24
|
withBrokenPipeGuard
|
|
25
|
-
} from "./chunks/chunk-
|
|
25
|
+
} from "./chunks/chunk-NMX3FJ3X.js";
|
|
26
26
|
import {
|
|
27
27
|
Budget,
|
|
28
28
|
SandboxError,
|
|
@@ -35,8 +35,8 @@ import {
|
|
|
35
35
|
restore,
|
|
36
36
|
run
|
|
37
37
|
} from "./chunks/chunk-EUU7EA57.js";
|
|
38
|
-
import "./chunks/chunk-
|
|
39
|
-
import "./chunks/chunk-
|
|
38
|
+
import "./chunks/chunk-UVHJFEFO.js";
|
|
39
|
+
import "./chunks/chunk-742TUUOL.js";
|
|
40
40
|
import "./chunks/chunk-4YIDX44G.js";
|
|
41
41
|
|
|
42
42
|
// packages/safe-js/src/cli.ts
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
runWithSpawnUsageAccumulator,
|
|
27
27
|
splitFrontmatter,
|
|
28
28
|
supportsSpawnMode
|
|
29
|
-
} from "./chunks/chunk-
|
|
29
|
+
} from "./chunks/chunk-NMX3FJ3X.js";
|
|
30
30
|
import {
|
|
31
31
|
Budget,
|
|
32
32
|
FileSnapshotBackend,
|
|
@@ -51,8 +51,8 @@ import {
|
|
|
51
51
|
restore,
|
|
52
52
|
run
|
|
53
53
|
} from "./chunks/chunk-EUU7EA57.js";
|
|
54
|
-
import "./chunks/chunk-
|
|
55
|
-
import "./chunks/chunk-
|
|
54
|
+
import "./chunks/chunk-UVHJFEFO.js";
|
|
55
|
+
import "./chunks/chunk-742TUUOL.js";
|
|
56
56
|
import "./chunks/chunk-4YIDX44G.js";
|
|
57
57
|
|
|
58
58
|
// packages/safe-js/src/parse.ts
|
|
@@ -30,12 +30,13 @@ import {
|
|
|
30
30
|
readBytes,
|
|
31
31
|
relativePath,
|
|
32
32
|
resolvePath,
|
|
33
|
+
retainFileSystemCleanup,
|
|
33
34
|
scopeFileSystem,
|
|
34
35
|
toByteSource,
|
|
35
36
|
toFsError,
|
|
36
37
|
validatePath,
|
|
37
38
|
withFileSystemQuota
|
|
38
|
-
} from "./chunks/chunk-
|
|
39
|
+
} from "./chunks/chunk-742TUUOL.js";
|
|
39
40
|
import "./chunks/chunk-4YIDX44G.js";
|
|
40
41
|
|
|
41
42
|
// packages/safe-fs/src/contracts/portable-path.ts
|
|
@@ -139,6 +140,7 @@ export {
|
|
|
139
140
|
readBytes,
|
|
140
141
|
relativePath,
|
|
141
142
|
resolvePath,
|
|
143
|
+
retainFileSystemCleanup,
|
|
142
144
|
scopeFileSystem,
|
|
143
145
|
toByteSource,
|
|
144
146
|
toFsError,
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../safe-fs/src/contracts/portable-path.ts", "../../safe-fs/src/bridge/index.ts"],
|
|
4
4
|
"sourcesContent": ["import { dirname as virtualDirname } from \"./virtual-path.js\";\n\nfunction assertString(value: unknown): asserts value is string {\n if (typeof value !== \"string\") throw new TypeError(\"path must be a string\");\n}\n\nexport function basename(path: string, suffix = \"\"): string {\n assertString(path);\n assertString(suffix);\n if (suffix && path === suffix) return \"\";\n let end = path.length;\n while (end > 0 && path[end - 1] === \"/\") end--;\n if (end === 0 && suffix && suffix.length <= path.length) return path;\n const start = path.lastIndexOf(\"/\", end - 1) + 1;\n const base = path.slice(start, end);\n if (suffix.length > base.length && suffix.length <= path.length && suffix.endsWith(base)) return path.slice(start);\n return suffix && suffix.length < base.length && base.endsWith(suffix)\n ? base.slice(0, -suffix.length)\n : base;\n}\n\nexport const dirname = virtualDirname;\n\nexport function extname(path: string): string {\n const base = basename(path);\n const position = base.lastIndexOf(\".\");\n return position <= 0 || base === \"..\" ? \"\" : base.slice(position);\n}\n\nexport function isAbsolutePath(path: string): boolean {\n assertString(path);\n return path.startsWith(\"/\");\n}\n\nexport function joinPath(...paths: string[]): string {\n for (const path of paths) assertString(path);\n const joined = paths.filter(Boolean).join(\"/\");\n if (!joined) return \".\";\n const absolute = joined.startsWith(\"/\");\n const components: string[] = [];\n for (const component of joined.split(\"/\")) {\n if (!component || component === \".\") continue;\n if (component === \"..\") {\n if (components.length && components.at(-1) !== \"..\") components.pop();\n else if (!absolute) components.push(component);\n } else components.push(component);\n }\n const result = `${absolute ? \"/\" : \"\"}${components.join(\"/\")}` || \".\";\n return joined.endsWith(\"/\") && result !== \"/\" ? `${result}/` : result;\n}\n\nexport const posixPath = Object.freeze({ basename, dirname, extname, join: joinPath, isAbsolute: isAbsolutePath });\n", "import { platform } from \"#safe-fs-platform\";\nimport type { FileSystem } from \"../contracts/filesystem.js\";\nimport { dirname, relativePath, resolvePath } from \"../contracts/virtual-path.js\";\nimport { FileSystemBridge } from \"./filesystem.js\";\nimport type { FsBridgeOptions } from \"./types.js\";\n\nexport type {\n FsBridgeCodec, FsBridgeDirent, FsBridgeEncoding, FsBridgeFileSystem, FsBridgeOptions, FsBridgeStats\n} from \"./types.js\";\nexport type FsBridge = FileSystemBridge<Uint8Array<ArrayBuffer>>;\n\nexport function createFsBridge(fs: FileSystem, options: FsBridgeOptions): FsBridge {\n if (options === undefined || options === null) throw new TypeError(\"An explicit filesystem codec is required\");\n return new FileSystemBridge(fs, options, {\n codec: options.codec,\n copyBytes(bytes) { return new Uint8Array(bytes); },\n randomSuffix() { return platform.randomUUID().slice(0, 6); },\n paths: {\n isAbsolute(path) { return typeof path === \"string\" && path.startsWith(\"/\"); },\n dirname,\n relative: relativePath,\n resolve: resolvePath\n }\n });\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAS,aAAa,OAAyC;AAC7D,MAAI,OAAO,UAAU,SAAU,OAAM,IAAI,UAAU,uBAAuB;AAC5E;AAEO,SAAS,SAAS,MAAc,SAAS,IAAY;AAC1D,eAAa,IAAI;AACjB,eAAa,MAAM;AACnB,MAAI,UAAU,SAAS,OAAQ,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,MAAM,EAAE,GAAG,WAAW,KAAK,GAAG,CAAC,MAAM;AAClE,SAAO,OAAO,SAAS,GAAG,KAAK,WAAW,MAAM,GAAG,MAAM,MAAM;AACjE;AAEO,IAAM,YAAY,OAAO,OAAO,EAAE,UAAU,SAAAA,UAAS,SAAS,MAAM,UAAU,YAAY,eAAe,CAAC;;;ACxC1G,SAAS,eAAe,IAAgB,SAAoC;AACjF,MAAI,YAAY,UAAa,YAAY,KAAM,OAAM,IAAI,UAAU,0CAA0C;AAC7G,SAAO,IAAI,iBAAiB,IAAI,SAAS;AAAA,IACvC,OAAO,QAAQ;AAAA,IACf,UAAU,OAAO;AAAE,aAAO,IAAI,WAAW,KAAK;AAAA,IAAG;AAAA,IACjD,eAAe;AAAE,aAAO,SAAS,WAAW,EAAE,MAAM,GAAG,CAAC;AAAA,IAAG;AAAA,IAC3D,OAAO;AAAA,MACL,WAAW,MAAM;AAAE,eAAO,OAAO,SAAS,YAAY,KAAK,WAAW,GAAG;AAAA,MAAG;AAAA,MAC5E;AAAA,MACA,UAAU;AAAA,MACV,SAAS;AAAA,IACX;AAAA,EACF,CAAC;AACH;",
|
|
6
6
|
"names": ["dirname"]
|
|
7
7
|
}
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
isAbsolutePath,
|
|
17
17
|
joinPath,
|
|
18
18
|
posixPath
|
|
19
|
-
} from "./chunks/chunk-
|
|
19
|
+
} from "./chunks/chunk-UVHJFEFO.js";
|
|
20
20
|
import {
|
|
21
21
|
ACCESS_MODES,
|
|
22
22
|
DeviceFileSystem,
|
|
@@ -44,13 +44,14 @@ import {
|
|
|
44
44
|
readConfigRecord,
|
|
45
45
|
relativePath,
|
|
46
46
|
resolvePath,
|
|
47
|
+
retainFileSystemCleanup,
|
|
47
48
|
scopeFileSystem,
|
|
48
49
|
toByteSource,
|
|
49
50
|
toFsError,
|
|
50
51
|
validateFileSystemConfig,
|
|
51
52
|
validatePath,
|
|
52
53
|
withFileSystemQuota
|
|
53
|
-
} from "./chunks/chunk-
|
|
54
|
+
} from "./chunks/chunk-742TUUOL.js";
|
|
54
55
|
import "./chunks/chunk-4YIDX44G.js";
|
|
55
56
|
export {
|
|
56
57
|
ACCESS_MODES,
|
|
@@ -96,6 +97,7 @@ export {
|
|
|
96
97
|
readConfigRecord,
|
|
97
98
|
relativePath,
|
|
98
99
|
resolvePath,
|
|
100
|
+
retainFileSystemCleanup,
|
|
99
101
|
scopeFileSystem,
|
|
100
102
|
toByteSource,
|
|
101
103
|
toFsError,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
isAbsolutePath,
|
|
17
17
|
joinPath,
|
|
18
18
|
posixPath
|
|
19
|
-
} from "./chunks/chunk-
|
|
19
|
+
} from "./chunks/chunk-UVHJFEFO.js";
|
|
20
20
|
import {
|
|
21
21
|
ACCESS_MODES,
|
|
22
22
|
DeviceFileSystem,
|
|
@@ -44,13 +44,14 @@ import {
|
|
|
44
44
|
readConfigRecord,
|
|
45
45
|
relativePath,
|
|
46
46
|
resolvePath,
|
|
47
|
+
retainFileSystemCleanup,
|
|
47
48
|
scopeFileSystem,
|
|
48
49
|
toByteSource,
|
|
49
50
|
toFsError,
|
|
50
51
|
validateFileSystemConfig,
|
|
51
52
|
validatePath,
|
|
52
53
|
withFileSystemQuota
|
|
53
|
-
} from "./chunks/chunk-
|
|
54
|
+
} from "./chunks/chunk-742TUUOL.js";
|
|
54
55
|
import "./chunks/chunk-4YIDX44G.js";
|
|
55
56
|
export {
|
|
56
57
|
ACCESS_MODES,
|
|
@@ -96,6 +97,7 @@ export {
|
|
|
96
97
|
readConfigRecord,
|
|
97
98
|
relativePath,
|
|
98
99
|
resolvePath,
|
|
100
|
+
retainFileSystemCleanup,
|
|
99
101
|
scopeFileSystem,
|
|
100
102
|
toByteSource,
|
|
101
103
|
toFsError,
|
|
File without changes
|
|
File without changes
|