@poe-platform/safe-bash 0.1.711 → 0.1.713

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 (56) hide show
  1. package/README.md +15 -1
  2. package/dist/safe-bash/commands/fmt/index.d.ts +2 -0
  3. package/dist/safe-bash/commands/fmt/index.d.ts.map +1 -0
  4. package/dist/safe-bash/commands/fmt/index.js +2 -0
  5. package/dist/safe-bash/commands/fmt/index.js.map +1 -0
  6. package/dist/safe-bash/commands/fmt.d.ts +1 -2
  7. package/dist/safe-bash/commands/fmt.d.ts.map +1 -1
  8. package/dist/safe-bash/commands/fmt.js +1 -838
  9. package/dist/safe-bash/commands/fmt.js.map +1 -1
  10. package/dist/safe-bash/commands/time-env/printenv.d.ts +1 -1
  11. package/dist/safe-bash/commands/time-env/printenv.d.ts.map +1 -1
  12. package/dist/safe-bash/commands/time-env/sleep.d.ts +1 -1
  13. package/dist/safe-bash/commands/time-env/sleep.d.ts.map +1 -1
  14. package/dist/safe-bash/core.browser.js +155 -2099
  15. package/dist/safe-bash/core.browser.js.map +3 -3
  16. package/dist/safe-bash/playwright/private-target-transport.d.ts.map +1 -1
  17. package/dist/safe-bash/playwright/private-target-transport.js +20 -3
  18. package/dist/safe-bash/playwright/private-target-transport.js.map +1 -1
  19. package/dist/safe-bash-command-exiftool/index.js +1401 -6
  20. package/dist/safe-bash-command-exiftool/index.js.map +7 -0
  21. package/dist/safe-bash-command-fmt/arguments.d.ts +8 -0
  22. package/dist/safe-bash-command-fmt/command.d.ts +20 -0
  23. package/dist/safe-bash-command-fmt/contracts.d.ts +42 -0
  24. package/dist/safe-bash-command-fmt/engine.d.ts +20 -0
  25. package/dist/safe-bash-command-fmt/index.d.ts +5 -0
  26. package/dist/safe-bash-command-fmt/index.js +2419 -0
  27. package/dist/safe-bash-command-fmt/index.js.map +7 -0
  28. package/dist/safe-bash-command-fmt/sdk.d.ts +15 -0
  29. package/dist/safe-bash-command-wkhtmltopdf/index.js +1458 -7
  30. package/dist/safe-bash-command-wkhtmltopdf/index.js.map +7 -0
  31. package/dist/safe-bash-contracts/index.d.ts +8 -0
  32. package/dist/safe-bash-contracts/index.js +8 -0
  33. package/dist/safe-playwright-cloudflare/browser-run-code.js +15 -1
  34. package/package.json +6 -2
  35. package/dist/safe-bash-command-exiftool/argfiles.js +0 -163
  36. package/dist/safe-bash-command-exiftool/arguments.js +0 -128
  37. package/dist/safe-bash-command-exiftool/command.js +0 -324
  38. package/dist/safe-bash-command-exiftool/csv.js +0 -78
  39. package/dist/safe-bash-command-exiftool/paths.js +0 -18
  40. package/dist/safe-bash-command-exiftool/png.js +0 -308
  41. package/dist/safe-bash-command-exiftool/publication.js +0 -80
  42. package/dist/safe-bash-command-exiftool/registry.js +0 -14
  43. package/dist/safe-bash-command-exiftool/resources.js +0 -29
  44. package/dist/safe-bash-command-exiftool/scalar.js +0 -103
  45. package/dist/safe-bash-command-exiftool/sdk.js +0 -113
  46. package/dist/safe-bash-command-exiftool/shifts.js +0 -29
  47. package/dist/safe-bash-command-wkhtmltopdf/command.js +0 -373
  48. package/dist/safe-bash-command-wkhtmltopdf/engine.js +0 -99
  49. package/dist/safe-bash-command-wkhtmltopdf/errors.js +0 -11
  50. package/dist/safe-bash-command-wkhtmltopdf/limits.js +0 -69
  51. package/dist/safe-bash-command-wkhtmltopdf/outcome.js +0 -38
  52. package/dist/safe-bash-command-wkhtmltopdf/parser.js +0 -146
  53. package/dist/safe-bash-command-wkhtmltopdf/resources.js +0 -284
  54. package/dist/safe-bash-command-wkhtmltopdf/settings.js +0 -35
  55. package/dist/safe-bash-command-wkhtmltopdf/switches.js +0 -127
  56. package/dist/safe-bash-command-wkhtmltopdf/values.js +0 -66
package/README.md CHANGED
@@ -70,13 +70,27 @@ filesystem and byte streams, not host executables.
70
70
  | Browse | `pwd`, `ls`, `tree`, `find`, `du`, `file`, `basename`, `dirname`, `realpath`, `readlink`, `which` |
71
71
  | Files | `mkdir`, `touch`, `cp`, `mv`, `rm`, `rmdir`, `ln`, `chmod`, `stat`, `mktemp` |
72
72
  | Filter/search | `cat`, `head`, `tail`, `wc`, `tee`, `cut`, `tr`, `sort`, `uniq`, `sed`, `awk`, `grep`, `rg`, `egrep`, `fgrep` |
73
- | Format/combine | `nl`, `seq`, `rev`, `tac`, `expand`, `unexpand`, `fold`, `strings`, `paste`, `comm`, `join`, `column`, `split` |
73
+ | Format/combine | `nl`, `seq`, `rev`, `tac`, `expand`, `unexpand`, `fold`, `fmt`, `strings`, `paste`, `comm`, `join`, `column`, `split` |
74
74
  | Structured text | `jq`, `html-to-markdown` |
75
75
  | Bytes/checksums | `base64`, `base32`, `xxd`, `od`, `md5sum`, `sha1sum`, `sha256sum`, `cksum` |
76
76
  | Archives | `gzip`, `gunzip`, `zcat`, `tar` |
77
77
  | Script helpers | `echo`, `printf`, `true`, `false`, `test`, `[`, `env`, `printenv`, `xargs`, `expr`, `date`, `sleep`, `timeout` |
78
78
  | Changes/review | `diff`, `patch`, `apply_patch` |
79
79
 
80
+ `/commands/fmt` exports `parseFmtArguments`, the pure byte coroutine
81
+ `createFmtEngine`, and equivalent `fmtCommand({ limits?, profile? })` /
82
+ `fmt(context, { width?, goal?, crown?, tagged?, split?, uniform?, prefix?, files?, limits?, profile? })`
83
+ execution APIs, with literal byte `arguments` available as an alternative to typed
84
+ formatting options. `fmtCommands({ limits?, profile?, replace? })` registers an
85
+ explicit plugin. Formatting defaults to GNU coreutils 9.10 byte lengths and
86
+ bounded paragraph optimization;
87
+ an explicit historical 8.30 profile retains its older width boundary. Supports
88
+ `-w`, `-g`, `-c`, `-t`, `-s`, `-u` and `-p`; for example,
89
+ `printf 'aa bb cc dd ee' | fmt -w8` produces `aa bb cc\ndd ee\n`. Private
90
+ implementation and declarations ship inside safe-bash. See the
91
+ [fmt contract](https://github.com/poe-platform/poe-code/blob/main/packages/safe-bash-command-fmt/README.md)
92
+ for spacing, prefix, cancellation and resource limits.
93
+
80
94
  ### Opt-in commands and storage
81
95
 
82
96
  These plugins are separate from `agentCommands()`; pass them to `shell.use(...)`.
@@ -0,0 +1,2 @@
1
+ export * from "../../../safe-bash-command-fmt/index.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/fmt/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "../../../safe-bash-command-fmt/index.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/fmt/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -1,3 +1,2 @@
1
- import { type CommandDefinition } from "../contracts/index.js";
2
- export declare function fmtCommand(): CommandDefinition;
1
+ export { fmtCommand } from "../../safe-bash-command-fmt/index.js";
3
2
  //# sourceMappingURL=fmt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fmt.d.ts","sourceRoot":"","sources":["../../src/commands/fmt.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6F,KAAK,iBAAiB,EAA+B,MAAM,uBAAuB,CAAC;AA8mBvL,wBAAgB,UAAU,IAAI,iBAAiB,CA2F9C"}
1
+ {"version":3,"file":"fmt.d.ts","sourceRoot":"","sources":["../../src/commands/fmt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC"}