@poe-platform/safe-bash 0.1.628 → 0.1.630
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 -2
- package/dist/safe-bash/chunks/chunk-3BZ5NQ73.js +3952 -0
- package/dist/safe-bash/chunks/chunk-3BZ5NQ73.js.map +7 -0
- package/dist/safe-bash/chunks/{chunk-KYNRHYHP.js → chunk-6YSBXTTJ.js} +5 -5
- package/dist/safe-bash/chunks/{chunk-HHJSJWUD.js → chunk-K7W6Q6FN.js} +4 -4
- package/dist/safe-bash/chunks/{chunk-WPEMUXV4.js → chunk-KQ6J7JHQ.js} +4 -4
- package/dist/safe-bash/commands/archive/zip.d.ts.map +1 -1
- package/dist/safe-bash/commands/archive/zip.js +18 -17
- package/dist/safe-bash/commands/archive/zip.js.map +1 -1
- package/dist/safe-bash/commands/llm/index.browser.js +2 -2
- package/dist/safe-bash/commands/network/index.browser.js +2 -2
- package/dist/safe-bash/commands/node/browser.d.ts +2 -0
- package/dist/safe-bash/commands/node/browser.d.ts.map +1 -0
- package/dist/safe-bash/commands/node/browser.js +2 -0
- package/dist/safe-bash/commands/node/browser.js.map +1 -0
- package/dist/safe-bash/commands/node/index.browser.js +16 -0
- package/dist/safe-bash/commands/node/index.browser.js.map +7 -0
- package/dist/safe-bash/commands/node/safejs.d.ts +6 -0
- package/dist/safe-bash/commands/node/safejs.d.ts.map +1 -1
- package/dist/safe-bash/commands/node/safejs.js +25 -1
- package/dist/safe-bash/commands/node/safejs.js.map +1 -1
- package/dist/safe-bash/commands/safejs/index.d.ts +5 -17
- package/dist/safe-bash/commands/safejs/index.d.ts.map +1 -1
- package/dist/safe-bash/commands/safejs/index.js +3 -202
- package/dist/safe-bash/commands/safejs/index.js.map +1 -1
- package/dist/safe-bash/commands/safejs/runtime.d.ts +15 -0
- package/dist/safe-bash/commands/safejs/runtime.d.ts.map +1 -0
- package/dist/safe-bash/commands/safejs/runtime.js +190 -0
- package/dist/safe-bash/commands/safejs/runtime.js.map +1 -0
- package/dist/safe-bash/commands/yq/index.browser.js +2 -2
- package/dist/safe-bash/core.browser.js +515 -4364
- package/dist/safe-bash/core.browser.js.map +4 -4
- package/dist/safe-bash/core.d.ts +1 -0
- package/dist/safe-bash/core.d.ts.map +1 -1
- package/dist/safe-bash/core.js +1 -0
- package/dist/safe-bash/core.js.map +1 -1
- package/dist/safe-bash/index.d.ts +1 -0
- package/dist/safe-bash/index.d.ts.map +1 -1
- package/dist/safe-bash/index.js +1 -0
- package/dist/safe-bash/index.js.map +1 -1
- package/package.json +9 -3
- /package/dist/safe-bash/chunks/{chunk-KYNRHYHP.js.map → chunk-6YSBXTTJ.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-HHJSJWUD.js.map → chunk-K7W6Q6FN.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-WPEMUXV4.js.map → chunk-KQ6J7JHQ.js.map} +0 -0
package/README.md
CHANGED
|
@@ -84,7 +84,6 @@ These plugins are separate from `agentCommands()`; pass them to `shell.use(...)`
|
|
|
84
84
|
| --- | --- |
|
|
85
85
|
| `curl` | `networkCommands({ authorize, transport?, limits?, replace? })`: required authorization on every request, redirect, and retry. Node uses the native HTTP transport; Workers can inject `createFetchTransport()`. `createOriginAuthorizer([...])` provides exact origin/hostname policy; its omitted allowlist is deliberately `*` (allow all). [Options and limits](src/commands/network/types.ts). |
|
|
86
86
|
| `node` | `nodeCommands({ runtime, limits?, replace? })`: runs JavaScript with an injected SafeJS runtime, virtual files, and shell streams. [Usage and supported subset](src/commands/node/README.md). |
|
|
87
|
-
| `safejs` | `safeJsCommands({ runtime, limits?, replace? })`: inject `run`, `createBudget`, `makeFsModule`, and `declareHostOperation` to execute programs. [Runtime contract](src/commands/safejs/types.ts). |
|
|
88
87
|
| `llm` | `llmCommands({ providers, defaultModel?, replace? })`: opt-in model routing, sandbox attachments and streamed text/binary output. Includes injected-transport OpenAI and ElevenLabs reference providers. [Configuration and provider contract](src/commands/llm/README.md). |
|
|
89
88
|
|
|
90
89
|
Storage can be in memory, a rooted host directory, S3-compatible storage, or WebDAV,
|
|
@@ -94,7 +93,7 @@ see the [filesystem guide](../safe-fs/README.md).
|
|
|
94
93
|
### Run JavaScript with SafeJS
|
|
95
94
|
|
|
96
95
|
Plug SafeJS into `node`; nothing starts a native Node.js subprocess or loads a
|
|
97
|
-
runtime automatically.
|
|
96
|
+
runtime automatically. SafeJS is the execution engine, not a separate shell command.
|
|
98
97
|
|
|
99
98
|
```ts
|
|
100
99
|
import { Shell, agentCommands, createMemoryFileSystem, nodeCommands } from "@poe-platform/safe-bash";
|