@poe-platform/safe-js 0.1.722 → 0.1.724
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/safe-js/chunks/{chunk-K3ZRBAG5.js → chunk-2DISWAVU.js} +3 -3
- package/dist/safe-js/chunks/{chunk-EH5A2EQI.js → chunk-5M2P3GUC.js} +6 -6
- package/dist/safe-js/chunks/{chunk-WF7HYDJ4.js → chunk-6OE64YMG.js} +2 -2
- package/dist/safe-js/chunks/{chunk-D3GC5QPZ.js → chunk-BRBOVGNC.js} +1 -1
- package/dist/safe-js/chunks/{chunk-D3GC5QPZ.js.map → chunk-BRBOVGNC.js.map} +2 -2
- package/dist/safe-js/chunks/{chunk-FA5CQO6V.js → chunk-BYX6GUCC.js} +2 -2
- package/dist/safe-js/chunks/{chunk-GCOLKRMY.js → chunk-CSRNI5HI.js} +4 -4
- package/dist/safe-js/chunks/{chunk-55RIIUGG.js → chunk-E5VQVLWF.js} +37 -3
- package/dist/safe-js/chunks/chunk-E5VQVLWF.js.map +7 -0
- package/dist/safe-js/chunks/{chunk-QL2ALAE6.js → chunk-GM32LIKF.js} +4 -4
- package/dist/safe-js/chunks/{chunk-XHSOM5CG.js → chunk-GYT2ECWI.js} +2 -2
- package/dist/safe-js/chunks/{chunk-3QQYJ4RQ.js → chunk-HG5QP5UC.js} +2 -2
- package/dist/safe-js/chunks/{chunk-RYVHEOHM.js → chunk-KOO6YGQG.js} +21 -5
- package/dist/safe-js/chunks/chunk-KOO6YGQG.js.map +7 -0
- package/dist/safe-js/chunks/{chunk-7SBQ7WTV.js → chunk-TMRO2MK6.js} +4 -4
- package/dist/safe-js/chunks/{chunk-S2GFVXSI.js → chunk-WYY65M7Z.js} +3 -3
- package/dist/safe-js/chunks/{chunk-BNIEPGDU.js → chunk-ZHJPXLUJ.js} +849 -489
- package/dist/safe-js/chunks/{chunk-BNIEPGDU.js.map → chunk-ZHJPXLUJ.js.map} +4 -4
- package/dist/safe-js/chunks/{cli-runtime-6QPGM3TX.js → cli-runtime-PHNOLXPN.js} +14 -14
- package/dist/safe-js/chunks/{dump-TU6SYRFD.js → dump-HAU2HFBZ.js} +4 -4
- package/dist/safe-js/chunks/{fs-HTZT32MQ.js → fs-6PHK3Q3V.js} +4 -4
- package/dist/safe-js/chunks/harness-E3FVGKIR.js +10 -0
- package/dist/safe-js/chunks/mcp-HGLB4YOP.js +11 -0
- package/dist/safe-js/chunks/migration-file-4GNB4HDL.js +12 -0
- package/dist/safe-js/chunks/restore-ZFU4NJOM.js +13 -0
- package/dist/safe-js/chunks/run-AAOCYT5M.js +17 -0
- package/dist/safe-js/chunks/runtime-modules-OPLHKWMC.js +10 -0
- package/dist/safe-js/cli.js +2 -2
- package/dist/safe-js/core.js +7 -7
- package/dist/safe-js/index.js +14 -14
- package/dist/safe-js/interp/arguments.d.ts +1 -2
- package/dist/safe-js/interp/host-bridge.d.ts +1 -0
- package/dist/safe-js/interp/scope.d.ts +1 -0
- package/dist/safe-js/interp/values.d.ts +1 -0
- package/dist/safe-js/parse/compact-spans.d.ts +4 -0
- package/package.json +2 -2
- package/dist/safe-js/chunks/chunk-55RIIUGG.js.map +0 -7
- package/dist/safe-js/chunks/chunk-RYVHEOHM.js.map +0 -7
- package/dist/safe-js/chunks/harness-RYAMI444.js +0 -10
- package/dist/safe-js/chunks/mcp-DO2IRFGQ.js +0 -11
- package/dist/safe-js/chunks/migration-file-K7UH5ZG6.js +0 -12
- package/dist/safe-js/chunks/restore-7LRP4BM3.js +0 -13
- package/dist/safe-js/chunks/run-6SETM7SV.js +0 -17
- package/dist/safe-js/chunks/runtime-modules-MCQS2SHQ.js +0 -10
- /package/dist/safe-js/chunks/{chunk-K3ZRBAG5.js.map → chunk-2DISWAVU.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-EH5A2EQI.js.map → chunk-5M2P3GUC.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-WF7HYDJ4.js.map → chunk-6OE64YMG.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-FA5CQO6V.js.map → chunk-BYX6GUCC.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-GCOLKRMY.js.map → chunk-CSRNI5HI.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-QL2ALAE6.js.map → chunk-GM32LIKF.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-XHSOM5CG.js.map → chunk-GYT2ECWI.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-3QQYJ4RQ.js.map → chunk-HG5QP5UC.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-7SBQ7WTV.js.map → chunk-TMRO2MK6.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-S2GFVXSI.js.map → chunk-WYY65M7Z.js.map} +0 -0
- /package/dist/safe-js/chunks/{cli-runtime-6QPGM3TX.js.map → cli-runtime-PHNOLXPN.js.map} +0 -0
- /package/dist/safe-js/chunks/{dump-TU6SYRFD.js.map → dump-HAU2HFBZ.js.map} +0 -0
- /package/dist/safe-js/chunks/{fs-HTZT32MQ.js.map → fs-6PHK3Q3V.js.map} +0 -0
- /package/dist/safe-js/chunks/{harness-RYAMI444.js.map → harness-E3FVGKIR.js.map} +0 -0
- /package/dist/safe-js/chunks/{mcp-DO2IRFGQ.js.map → mcp-HGLB4YOP.js.map} +0 -0
- /package/dist/safe-js/chunks/{migration-file-K7UH5ZG6.js.map → migration-file-4GNB4HDL.js.map} +0 -0
- /package/dist/safe-js/chunks/{restore-7LRP4BM3.js.map → restore-ZFU4NJOM.js.map} +0 -0
- /package/dist/safe-js/chunks/{run-6SETM7SV.js.map → run-AAOCYT5M.js.map} +0 -0
- /package/dist/safe-js/chunks/{runtime-modules-MCQS2SHQ.js.map → runtime-modules-OPLHKWMC.js.map} +0 -0
package/README.md
CHANGED
|
@@ -521,7 +521,7 @@ Factories return exports to register in `modules`; calling a factory alone does
|
|
|
521
521
|
| --- | --- |
|
|
522
522
|
| `makeAgentModule(spawnAgent, options?)` | Inject the agent runner. Options: `defaultRetry`, `onEvent`, `otelSink`. Exposes `spawn`, `spawn.retry`, and `spawn.parallel`; call options follow this table. |
|
|
523
523
|
| `makeMcpModule(options)` | Required `servers` map: stdio `{ command, args?, cwd?, env? }` or HTTP `{ url, headers? }`. Options: `requestTimeoutMs` (30,000), `closeTimeoutMs` (1,000), `maxToolPages` (100), `signal`, and injected `fetch`/`spawn`. Named clients expose `tools`, `tool`, `toolBatch`, and `close`; close managed clients when finished. A custom connector function is also accepted. |
|
|
524
|
-
| `makeFsModule(options?)` | Node-backed `{ root?, fs? }`, or shared-filesystem `{ adapter, root?, cwd?, signal? }`; do not combine `fs` and `adapter`. Node access without `root` is unconfined. Rooted calls sharing the same adapter or Node implementation are serialized through path checks and backend completion to prevent guest namespace races. External host mutations or distinct adapters over the same storage require independent backend confinement. With an adapter, `root` confines access and `cwd` selects the virtual relative-path base; without `root`, explicit `cwd` also confines access. Omitting both uses virtual `/`. Read text with `readFile(path, "utf8")`; see the [module methods](src/modules/fs.ts) and [filesystem package](../safe-fs/README.md). |
|
|
524
|
+
| `makeFsModule(options?)` | Node-backed `{ root?, fs? }`, or shared-filesystem `{ adapter, root?, cwd?, signal? }`; do not combine `fs` and `adapter`. Node access without `root` is unconfined. Rooted calls sharing the same adapter or Node implementation are serialized through path checks and backend completion to prevent guest namespace races. External host mutations or distinct adapters over the same storage require independent backend confinement. With an adapter, `root` confines access and `cwd` selects the virtual relative-path base; without `root`, explicit `cwd` also confines access. Omitting both uses virtual `/`. Adapter text reads pass a byte cap derived conservatively from the guest string and remaining data limits to the backend before decoding. Each read is also capped at 419,430 input bytes. A shared 16 MiB host read allowance reserves ten bytes per input byte for collection, copies, encoding expansion and admission; concurrent reads that exceed it reject, and reservations release after the underlying read settles and decoding finishes, including when cancellation rejects the caller earlier. Native Node/injected `fs` implementations retain their own read behavior. Read text with `readFile(path, "utf8")`; see the [module methods](src/modules/fs.ts) and [filesystem package](../safe-fs/README.md). |
|
|
525
525
|
| `makeEnvModule(namesOrOptions)` | Allowed-name array or `{ allow, values? }`; exposes `get(name)`. `parseEnvConfig(json)` accepts the object form. |
|
|
526
526
|
| `makeTimeModule(options?)` | `now`, `random`, `seed`, `signal`; exposes `now`, `random`, `sleep`, `uuid`. Defaults to host time/randomness; `seed` makes the random generator deterministic, and explicit `random` takes precedence. |
|
|
527
527
|
| `makeLogModule(sink)` | Sends timestamped `info`, `error`, and `event` entries to your callback. |
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
HostCallJournal,
|
|
3
3
|
decodeReplayData,
|
|
4
4
|
validateSnapshotData
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZHJPXLUJ.js";
|
|
6
6
|
import {
|
|
7
7
|
CompileScope,
|
|
8
8
|
SandboxError,
|
|
9
9
|
functionSources,
|
|
10
10
|
parse,
|
|
11
11
|
parseModule
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KOO6YGQG.js";
|
|
13
13
|
|
|
14
14
|
// packages/safe-js/src/parse/hash.ts
|
|
15
15
|
var FNV_OFFSET_BASIS = 2166136261;
|
|
@@ -219,4 +219,4 @@ export {
|
|
|
219
219
|
validateMigrationReconciliation,
|
|
220
220
|
validateSnapshotMigration
|
|
221
221
|
};
|
|
222
|
-
//# sourceMappingURL=chunk-
|
|
222
|
+
//# sourceMappingURL=chunk-2DISWAVU.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
restore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TMRO2MK6.js";
|
|
4
4
|
import {
|
|
5
5
|
attachDumpController,
|
|
6
6
|
createDumpController
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WYY65M7Z.js";
|
|
8
8
|
import {
|
|
9
9
|
getOwnErrorCode,
|
|
10
10
|
hasOwnErrorCode
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
hashParsedAst,
|
|
14
14
|
hashSource
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2DISWAVU.js";
|
|
16
16
|
import {
|
|
17
17
|
DUMP_FORMAT_VERSION,
|
|
18
18
|
EXECUTION_SEMANTICS,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
withSandboxPromiseRejectionTracker,
|
|
101
101
|
wrapCallerInjectedBindings,
|
|
102
102
|
wrapCancelableBindings
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-ZHJPXLUJ.js";
|
|
104
104
|
import {
|
|
105
105
|
Budget,
|
|
106
106
|
CompileScope,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
parseSourceModule,
|
|
116
116
|
replaceErrorStack,
|
|
117
117
|
safeAddEvent
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-KOO6YGQG.js";
|
|
119
119
|
|
|
120
120
|
// packages/safe-js/src/realm.ts
|
|
121
121
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
@@ -2798,4 +2798,4 @@ export {
|
|
|
2798
2798
|
UnhandledRejectionError,
|
|
2799
2799
|
run
|
|
2800
2800
|
};
|
|
2801
|
-
//# sourceMappingURL=chunk-
|
|
2801
|
+
//# sourceMappingURL=chunk-5M2P3GUC.js.map
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
safeRecordException,
|
|
15
15
|
safeStartSpan,
|
|
16
16
|
splitSourceLines
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KOO6YGQG.js";
|
|
18
18
|
|
|
19
19
|
// packages/safe-js/src/error/format.ts
|
|
20
20
|
var DEFAULT_MAX_MESSAGE_LENGTH = 1e4;
|
|
@@ -2841,4 +2841,4 @@ export {
|
|
|
2841
2841
|
makeLogModule,
|
|
2842
2842
|
makeMetricModule
|
|
2843
2843
|
};
|
|
2844
|
-
//# sourceMappingURL=chunk-
|
|
2844
|
+
//# sourceMappingURL=chunk-6OE64YMG.js.map
|