@poe-platform/safe-bash 0.1.675 → 0.1.677

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.
Files changed (32) hide show
  1. package/README.md +3 -2
  2. package/dist/safe-bash/chunks/{chunk-AJMYOERL.js → chunk-MP5J46WX.js} +6 -6
  3. package/dist/safe-bash/chunks/{chunk-AJMYOERL.js.map → chunk-MP5J46WX.js.map} +2 -2
  4. package/dist/safe-bash/commands/text-programs/awk-syntax.d.ts.map +1 -1
  5. package/dist/safe-bash/commands/text-programs/awk-syntax.js +5 -3
  6. package/dist/safe-bash/commands/text-programs/awk-syntax.js.map +1 -1
  7. package/dist/safe-bash/commands/yq/index.browser.js +1 -1
  8. package/dist/safe-bash/commands/yq/parser.js +5 -5
  9. package/dist/safe-bash/commands/yq/parser.js.map +1 -1
  10. package/dist/safe-bash/core.browser.js +68 -19
  11. package/dist/safe-bash/core.browser.js.map +3 -3
  12. package/dist/safe-bash/playwright/adapter.d.ts +19 -10
  13. package/dist/safe-bash/playwright/adapter.d.ts.map +1 -1
  14. package/dist/safe-bash/playwright/adapter.js.map +1 -1
  15. package/dist/safe-bash/playwright/frame-snapshot.d.ts.map +1 -1
  16. package/dist/safe-bash/playwright/frame-snapshot.js +138 -22
  17. package/dist/safe-bash/playwright/frame-snapshot.js.map +1 -1
  18. package/dist/safe-bash/playwright/network-policy.d.ts.map +1 -1
  19. package/dist/safe-bash/playwright/network-policy.js +37 -29
  20. package/dist/safe-bash/playwright/network-policy.js.map +1 -1
  21. package/dist/safe-bash/shell/arithmetic.d.ts +1 -1
  22. package/dist/safe-bash/shell/arithmetic.d.ts.map +1 -1
  23. package/dist/safe-bash/shell/arithmetic.js +37 -2
  24. package/dist/safe-bash/shell/arithmetic.js.map +1 -1
  25. package/dist/safe-bash/shell/parser.d.ts +1 -0
  26. package/dist/safe-bash/shell/parser.d.ts.map +1 -1
  27. package/dist/safe-bash/shell/parser.js +10 -4
  28. package/dist/safe-bash/shell/parser.js.map +1 -1
  29. package/dist/safe-bash/shell/runtime.d.ts.map +1 -1
  30. package/dist/safe-bash/shell/runtime.js +15 -9
  31. package/dist/safe-bash/shell/runtime.js.map +1 -1
  32. package/package.json +2 -2
package/README.md CHANGED
@@ -49,7 +49,8 @@ filesystem changes persist in the supplied `fs`.
49
49
  - Pipelines (`|`, `|&`), lists (`;`, `&&`, `||`, `!`), file redirection (`<`, `>`,
50
50
  `>>`), descriptor redirection such as `2>&1`, here-documents, and here-strings.
51
51
  - `if`/`elif`/`else`, `case`, `for name in …`, `while`, `until`, functions,
52
- groups `{ …; }`, subshells `( … )`, `[[ … ]]`, `(( … ))`, and indexed arrays.
52
+ groups `{ …; }`, subshells `( … )` (including adjacent nested subshells),
53
+ `[[ … ]]`, arithmetic commands `(( … ))`, and indexed arrays.
53
54
  - Virtual script files through `sh`, `bash`, or executable paths; `source`/`.`
54
55
  runs a script in the current shell. `set -e`, `set -u`, and `set -o pipefail`
55
56
  control failures; `shopt -s dotglob` includes dotfiles in globs.
@@ -85,7 +86,7 @@ These plugins are separate from `agentCommands()`; pass them to `shell.use(...)`
85
86
  | `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
87
  | `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
88
  | `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). |
88
- | `playwright-cli` | Standard browser commands through a host-owned adapter. `installPlaywrightNetworkPolicy` from `/playwright` supports browser-native redirects with per-hop bounded host fetch and independent direct-egress denial. [Network policy and lifecycle](src/contracts/playwright-network-policy.md). |
89
+ | `playwright-cli` | Standard browser commands through a host-owned adapter. `installPlaywrightNetworkPolicy` from `/playwright` supports browser-native redirects with per-hop bounded host HTTP fetch and independent direct HTTP/WebSocket denial. Cloudflare guardrails do not establish WebRTC/UDP denial or all-protocol accounting; hosts requiring those guarantees must refuse this integration. [Network policy and lifecycle](src/contracts/playwright-network-policy.md). |
89
90
 
90
91
  Storage can be in memory, a rooted host directory, S3-compatible storage, or WebDAV,
91
92
  with read-only wrappers, mounts, and overlays. Choose and configure it explicitly;
@@ -3088,9 +3088,9 @@ function decodeDouble(raw) {
3088
3088
  continue;
3089
3089
  }
3090
3090
  if (character !== "\\") {
3091
- const codePoint2 = character.codePointAt(0);
3091
+ const codePoint2 = raw.codePointAt(index);
3092
3092
  if (codePoint2 === 0) throw syntax();
3093
- result += character;
3093
+ result += String.fromCodePoint(codePoint2);
3094
3094
  if (codePoint2 > 65535) index++;
3095
3095
  continue;
3096
3096
  }
@@ -3156,7 +3156,7 @@ function projectDoubleBytes(raw, start = 0, end = raw.length) {
3156
3156
  continue;
3157
3157
  }
3158
3158
  if (character !== "\\") {
3159
- const codePoint2 = character.codePointAt(0);
3159
+ const codePoint2 = raw.codePointAt(index);
3160
3160
  if (codePoint2 === 0) throw syntax();
3161
3161
  bytes += utf8Width(codePoint2);
3162
3162
  if (codePoint2 > 65535) index++;
@@ -3228,7 +3228,7 @@ function projectSingleBytes(raw, start = 0, end = raw.length) {
3228
3228
  if (character === "\n" || raw[index] === "\n") while (raw[index + 1] === " " || raw[index + 1] === " ") index++;
3229
3229
  bytes++;
3230
3230
  } else {
3231
- const codePoint = character.codePointAt(0);
3231
+ const codePoint = raw.codePointAt(index);
3232
3232
  bytes += utf8Width(codePoint);
3233
3233
  if (codePoint > 65535) index++;
3234
3234
  }
@@ -3960,7 +3960,7 @@ async function* parseYamlDocuments(text, work, ledger, admittedRawBytes, lineOff
3960
3960
  let codePoints = 0;
3961
3961
  for (let index = 0; index < line.text.length; index++) {
3962
3962
  const character = line.text[index];
3963
- const point = character.codePointAt(0);
3963
+ const point = line.text.codePointAt(index);
3964
3964
  if (doubleQuoted) {
3965
3965
  if (escaped) escaped = false;
3966
3966
  else if (character === "\\") escaped = true;
@@ -5200,4 +5200,4 @@ export {
5200
5200
  createYqCommands,
5201
5201
  yqCommands
5202
5202
  };
5203
- //# sourceMappingURL=chunk-AJMYOERL.js.map
5203
+ //# sourceMappingURL=chunk-MP5J46WX.js.map