just-bash-nx 3.0.3 → 3.0.4
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/bin/default-init.sh +59 -17
- package/dist/commands/sqlite3/worker.js +1700 -227
- package/package.json +1 -1
- package/dist/Bash.commands.test.d.ts +0 -1
- package/dist/Bash.exec-args-forwarding.test.d.ts +0 -1
- package/dist/Bash.exec-options.test.d.ts +0 -1
- package/dist/Bash.general.test.d.ts +0 -1
- package/dist/browser.bundle.test.d.ts +0 -9
- package/dist/command-position-array-expansion.test.d.ts +0 -1
- package/dist/commands/alias/alias.test.d.ts +0 -1
- package/dist/commands/awk/awk.arrays.test.d.ts +0 -1
- package/dist/commands/awk/awk.binary.test.d.ts +0 -1
- package/dist/commands/awk/awk.edge-cases.test.d.ts +0 -1
- package/dist/commands/awk/awk.errors.test.d.ts +0 -1
- package/dist/commands/awk/awk.expressions.test.d.ts +0 -1
- package/dist/commands/awk/awk.fields.test.d.ts +0 -1
- package/dist/commands/awk/awk.functions.test.d.ts +0 -1
- package/dist/commands/awk/awk.getline.test.d.ts +0 -1
- package/dist/commands/awk/awk.limits.test.d.ts +0 -1
- package/dist/commands/awk/awk.math.test.d.ts +0 -1
- package/dist/commands/awk/awk.modulo.test.d.ts +0 -1
- package/dist/commands/awk/awk.nextfile.test.d.ts +0 -1
- package/dist/commands/awk/awk.operators.test.d.ts +0 -1
- package/dist/commands/awk/awk.output.test.d.ts +0 -1
- package/dist/commands/awk/awk.parsing.test.d.ts +0 -1
- package/dist/commands/awk/awk.patterns.test.d.ts +0 -1
- package/dist/commands/awk/awk.prototype-pollution.test.d.ts +0 -1
- package/dist/commands/awk/awk.range.test.d.ts +0 -1
- package/dist/commands/awk/awk.strings.test.d.ts +0 -1
- package/dist/commands/awk/awk.ternary.test.d.ts +0 -1
- package/dist/commands/awk/awk.test.d.ts +0 -1
- package/dist/commands/awk/awk.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/base64/base64.binary.test.d.ts +0 -1
- package/dist/commands/base64/base64.test.d.ts +0 -1
- package/dist/commands/base64/base64.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/basename/basename.test.d.ts +0 -1
- package/dist/commands/bash/bash.test.d.ts +0 -1
- package/dist/commands/bash/bash.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/cat/cat.binary.test.d.ts +0 -1
- package/dist/commands/cat/cat.test.d.ts +0 -1
- package/dist/commands/cat/cat.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/chmod/chmod.test.d.ts +0 -1
- package/dist/commands/clear/clear.test.d.ts +0 -1
- package/dist/commands/column/column.test.d.ts +0 -1
- package/dist/commands/column/column.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/comm/comm.test.d.ts +0 -1
- package/dist/commands/comm/comm.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/cp/cp.binary.test.d.ts +0 -1
- package/dist/commands/cp/cp.test.d.ts +0 -1
- package/dist/commands/curl/curl.prototype-pollution.test.d.ts +0 -1
- package/dist/commands/curl/tests/allowlist.test.d.ts +0 -4
- package/dist/commands/curl/tests/auth.test.d.ts +0 -4
- package/dist/commands/curl/tests/availability.test.d.ts +0 -6
- package/dist/commands/curl/tests/binary.test.d.ts +0 -4
- package/dist/commands/curl/tests/cookies.test.d.ts +0 -4
- package/dist/commands/curl/tests/errors.test.d.ts +0 -4
- package/dist/commands/curl/tests/form.test.d.ts +0 -4
- package/dist/commands/curl/tests/methods.test.d.ts +0 -7
- package/dist/commands/curl/tests/options.test.d.ts +0 -4
- package/dist/commands/curl/tests/parse.test.d.ts +0 -4
- package/dist/commands/curl/tests/timeout.test.d.ts +0 -4
- package/dist/commands/curl/tests/upload.test.d.ts +0 -4
- package/dist/commands/curl/tests/verbose.test.d.ts +0 -4
- package/dist/commands/curl/tests/writeout.test.d.ts +0 -4
- package/dist/commands/cut/cut.binary.test.d.ts +0 -1
- package/dist/commands/cut/cut.test.d.ts +0 -1
- package/dist/commands/cut/cut.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/date/date.test.d.ts +0 -1
- package/dist/commands/diff/diff.binary.test.d.ts +0 -1
- package/dist/commands/diff/diff.test.d.ts +0 -1
- package/dist/commands/diff/diff.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/dirname/dirname.test.d.ts +0 -1
- package/dist/commands/du/du.test.d.ts +0 -1
- package/dist/commands/echo/echo.binary.test.d.ts +0 -1
- package/dist/commands/echo/echo.test.d.ts +0 -1
- package/dist/commands/env/env.test.d.ts +0 -1
- package/dist/commands/env/env.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/expand/expand.test.d.ts +0 -1
- package/dist/commands/expand/expand.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/expand/unexpand.test.d.ts +0 -1
- package/dist/commands/expand/unexpand.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/file/file.test.d.ts +0 -1
- package/dist/commands/find/find.actions.test.d.ts +0 -1
- package/dist/commands/find/find.basic.test.d.ts +0 -1
- package/dist/commands/find/find.depth.test.d.ts +0 -1
- package/dist/commands/find/find.exec-command-name-quoting.test.d.ts +0 -1
- package/dist/commands/find/find.exec.test.d.ts +0 -1
- package/dist/commands/find/find.operators.test.d.ts +0 -1
- package/dist/commands/find/find.patterns.test.d.ts +0 -1
- package/dist/commands/find/find.perf.test.d.ts +0 -1
- package/dist/commands/find/find.perm.test.d.ts +0 -1
- package/dist/commands/find/find.predicates.test.d.ts +0 -1
- package/dist/commands/find/find.printf.test.d.ts +0 -1
- package/dist/commands/fold/fold.test.d.ts +0 -1
- package/dist/commands/fold/fold.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/grep/grep.advanced.test.d.ts +0 -1
- package/dist/commands/grep/grep.basic.test.d.ts +0 -1
- package/dist/commands/grep/grep.binary.test.d.ts +0 -1
- package/dist/commands/grep/grep.exclude.test.d.ts +0 -1
- package/dist/commands/grep/grep.perl.test.d.ts +0 -1
- package/dist/commands/grep/grep.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/gzip/gzip.binary.test.d.ts +0 -1
- package/dist/commands/gzip/gzip.security.test.d.ts +0 -1
- package/dist/commands/gzip/gzip.test.d.ts +0 -1
- package/dist/commands/gzip/gzip.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/head/head.binary.test.d.ts +0 -1
- package/dist/commands/head/head.test.d.ts +0 -1
- package/dist/commands/head/head.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/help/help.test.d.ts +0 -1
- package/dist/commands/history/history.test.d.ts +0 -1
- package/dist/commands/hostname/hostname.test.d.ts +0 -1
- package/dist/commands/html-to-markdown/html-to-markdown.test.d.ts +0 -1
- package/dist/commands/html-to-markdown/html-to-markdown.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/join/join.test.d.ts +0 -1
- package/dist/commands/join/join.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/jq/jq.arg.test.d.ts +0 -1
- package/dist/commands/jq/jq.basic.test.d.ts +0 -1
- package/dist/commands/jq/jq.construction.test.d.ts +0 -1
- package/dist/commands/jq/jq.dot-adjacency.test.d.ts +0 -1
- package/dist/commands/jq/jq.filters.test.d.ts +0 -1
- package/dist/commands/jq/jq.functions.test.d.ts +0 -1
- package/dist/commands/jq/jq.keyword-field-access.test.d.ts +0 -1
- package/dist/commands/jq/jq.limits.test.d.ts +0 -1
- package/dist/commands/jq/jq.operators.test.d.ts +0 -1
- package/dist/commands/jq/jq.permissive-control-chars.test.d.ts +0 -1
- package/dist/commands/jq/jq.prototype-pollution.test.d.ts +0 -1
- package/dist/commands/jq/jq.raw-input.test.d.ts +0 -1
- package/dist/commands/jq/jq.strings.test.d.ts +0 -1
- package/dist/commands/jq/jq.test.d.ts +0 -1
- package/dist/commands/jq/jq.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/js-exec/js-exec.esm.test.d.ts +0 -1
- package/dist/commands/js-exec/js-exec.exec.test.d.ts +0 -1
- package/dist/commands/js-exec/js-exec.fs.test.d.ts +0 -1
- package/dist/commands/js-exec/js-exec.http.test.d.ts +0 -1
- package/dist/commands/js-exec/js-exec.invoke-tool.test.d.ts +0 -9
- package/dist/commands/js-exec/js-exec.module-resolution-security.test.d.ts +0 -1
- package/dist/commands/js-exec/js-exec.node-compat.test.d.ts +0 -1
- package/dist/commands/js-exec/js-exec.security.test.d.ts +0 -1
- package/dist/commands/js-exec/js-exec.test.d.ts +0 -1
- package/dist/commands/js-exec/js-exec.ts-strip.test.d.ts +0 -1
- package/dist/commands/js-exec/js-exec.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/ln/ln.error-forwarding.test.d.ts +0 -1
- package/dist/commands/ln/ln.test.d.ts +0 -1
- package/dist/commands/ls/ls.human.test.d.ts +0 -1
- package/dist/commands/ls/ls.test.d.ts +0 -1
- package/dist/commands/md5sum/checksum.binary.test.d.ts +0 -1
- package/dist/commands/md5sum/md5sum.test.d.ts +0 -1
- package/dist/commands/md5sum/md5sum.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/mkdir/mkdir.test.d.ts +0 -1
- package/dist/commands/mv/mv.test.d.ts +0 -1
- package/dist/commands/nl/nl.test.d.ts +0 -1
- package/dist/commands/nl/nl.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/od/od.binary.test.d.ts +0 -1
- package/dist/commands/od/od.test.d.ts +0 -1
- package/dist/commands/od/od.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/paste/paste.test.d.ts +0 -1
- package/dist/commands/paste/paste.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/printf/escapes.test.d.ts +0 -1
- package/dist/commands/printf/printf.binary.test.d.ts +0 -1
- package/dist/commands/printf/printf.test.d.ts +0 -1
- package/dist/commands/pwd/pwd.test.d.ts +0 -1
- package/dist/commands/python3/fs-bridge-handler.output-limit.test.d.ts +0 -1
- package/dist/commands/python3/python3.advanced.test.d.ts +0 -1
- package/dist/commands/python3/python3.env.test.d.ts +0 -1
- package/dist/commands/python3/python3.files.test.d.ts +0 -1
- package/dist/commands/python3/python3.http.test.d.ts +0 -1
- package/dist/commands/python3/python3.oop.test.d.ts +0 -1
- package/dist/commands/python3/python3.optin.test.d.ts +0 -1
- package/dist/commands/python3/python3.queue-desync.runtime.test.d.ts +0 -1
- package/dist/commands/python3/python3.queue-timeout-exploit.test.d.ts +0 -1
- package/dist/commands/python3/python3.security.test.d.ts +0 -1
- package/dist/commands/python3/python3.stdlib.test.d.ts +0 -1
- package/dist/commands/python3/python3.test.d.ts +0 -1
- package/dist/commands/python3/python3.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/python3/python3.worker-protocol-abuse.test.d.ts +0 -1
- package/dist/commands/query-engine/safe-object.sanitize-parsed-data.test.d.ts +0 -1
- package/dist/commands/query-engine/safe-object.test.d.ts +0 -1
- package/dist/commands/readlink/readlink.test.d.ts +0 -1
- package/dist/commands/registry.test.d.ts +0 -1
- package/dist/commands/rev/rev.test.d.ts +0 -1
- package/dist/commands/rev/rev.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/rg/gitignore.test.d.ts +0 -1
- package/dist/commands/rg/imported-tests/binary.test.d.ts +0 -1
- package/dist/commands/rg/imported-tests/feature.test.d.ts +0 -1
- package/dist/commands/rg/imported-tests/json.test.d.ts +0 -11
- package/dist/commands/rg/imported-tests/misc.test.d.ts +0 -1
- package/dist/commands/rg/imported-tests/multiline.test.d.ts +0 -10
- package/dist/commands/rg/imported-tests/regression.test.d.ts +0 -1
- package/dist/commands/rg/rg-parser-threads.test.d.ts +0 -1
- package/dist/commands/rg/rg.basic.test.d.ts +0 -1
- package/dist/commands/rg/rg.edge-cases.test.d.ts +0 -1
- package/dist/commands/rg/rg.filtering.test.d.ts +0 -1
- package/dist/commands/rg/rg.flags.test.d.ts +0 -6
- package/dist/commands/rg/rg.max-count.test.d.ts +0 -1
- package/dist/commands/rg/rg.no-filename.test.d.ts +0 -1
- package/dist/commands/rg/rg.output.test.d.ts +0 -1
- package/dist/commands/rg/rg.patterns.test.d.ts +0 -1
- package/dist/commands/rg/rg.ripgrep-compat.test.d.ts +0 -1
- package/dist/commands/rg/rg.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/rm/rm.test.d.ts +0 -1
- package/dist/commands/search-engine/regex.test.d.ts +0 -1
- package/dist/commands/sed/sed.advanced.test.d.ts +0 -1
- package/dist/commands/sed/sed.binary.test.d.ts +0 -1
- package/dist/commands/sed/sed.commands.test.d.ts +0 -1
- package/dist/commands/sed/sed.errors.test.d.ts +0 -1
- package/dist/commands/sed/sed.limits.test.d.ts +0 -1
- package/dist/commands/sed/sed.regex.test.d.ts +0 -1
- package/dist/commands/sed/sed.security.test.d.ts +0 -6
- package/dist/commands/sed/sed.test.d.ts +0 -1
- package/dist/commands/sed/sed.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/seq/seq.test.d.ts +0 -1
- package/dist/commands/sleep/sleep.test.d.ts +0 -1
- package/dist/commands/sort/sort.advanced.test.d.ts +0 -1
- package/dist/commands/sort/sort.binary.test.d.ts +0 -1
- package/dist/commands/sort/sort.test.d.ts +0 -1
- package/dist/commands/sort/sort.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/split/split.test.d.ts +0 -1
- package/dist/commands/split/split.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/sqlite3/sqlite3.errors.test.d.ts +0 -1
- package/dist/commands/sqlite3/sqlite3.fixtures.test.d.ts +0 -1
- package/dist/commands/sqlite3/sqlite3.formatters.test.d.ts +0 -1
- package/dist/commands/sqlite3/sqlite3.options.test.d.ts +0 -1
- package/dist/commands/sqlite3/sqlite3.output-modes.test.d.ts +0 -1
- package/dist/commands/sqlite3/sqlite3.parsing.test.d.ts +0 -1
- package/dist/commands/sqlite3/sqlite3.test.d.ts +0 -1
- package/dist/commands/sqlite3/sqlite3.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/sqlite3/sqlite3.worker-protocol-abuse.test.d.ts +0 -1
- package/dist/commands/sqlite3/sqlite3.worker-resolution.test.d.ts +0 -11
- package/dist/commands/sqlite3/sqlite3.write-ops.test.d.ts +0 -1
- package/dist/commands/sqlite3/sqlite3.writeback-edge-cases.test.d.ts +0 -1
- package/dist/commands/stat/stat.test.d.ts +0 -1
- package/dist/commands/strings/strings.binary.test.d.ts +0 -1
- package/dist/commands/strings/strings.test.d.ts +0 -1
- package/dist/commands/strings/strings.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/tac/tac.test.d.ts +0 -1
- package/dist/commands/tail/tail.binary.test.d.ts +0 -1
- package/dist/commands/tail/tail.test.d.ts +0 -1
- package/dist/commands/tar/bzip2-compress.test.d.ts +0 -1
- package/dist/commands/tar/tar.binary.test.d.ts +0 -1
- package/dist/commands/tar/tar.bundle.test.d.ts +0 -1
- package/dist/commands/tar/tar.security.test.d.ts +0 -1
- package/dist/commands/tar/tar.test.d.ts +0 -1
- package/dist/commands/tar/tar.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/tee/tee.binary.test.d.ts +0 -1
- package/dist/commands/tee/tee.test.d.ts +0 -1
- package/dist/commands/tee/tee.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/test/test.test.d.ts +0 -1
- package/dist/commands/time/time.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/timeout/timeout.command-name-quoting.test.d.ts +0 -1
- package/dist/commands/timeout/timeout.nested-cancellation.test.d.ts +0 -1
- package/dist/commands/timeout/timeout.test.d.ts +0 -1
- package/dist/commands/timeout/timeout.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/touch/touch.test.d.ts +0 -1
- package/dist/commands/tr/tr.binary.test.d.ts +0 -1
- package/dist/commands/tr/tr.complement.test.d.ts +0 -1
- package/dist/commands/tr/tr.test.d.ts +0 -1
- package/dist/commands/tr/tr.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/tree/tree.test.d.ts +0 -1
- package/dist/commands/true/true.test.d.ts +0 -1
- package/dist/commands/uniq/uniq.binary.test.d.ts +0 -1
- package/dist/commands/uniq/uniq.test.d.ts +0 -1
- package/dist/commands/uniq/uniq.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/utf8-across-commands.test.d.ts +0 -1
- package/dist/commands/utf8-bytestring.test.d.ts +0 -1
- package/dist/commands/wc/wc.binary.test.d.ts +0 -1
- package/dist/commands/wc/wc.test.d.ts +0 -1
- package/dist/commands/wc/wc.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/which/which.test.d.ts +0 -1
- package/dist/commands/worker-bridge/bridge-handler.test.d.ts +0 -1
- package/dist/commands/xan/moonblade-parser.test.d.ts +0 -1
- package/dist/commands/xan/xan.agg.test.d.ts +0 -5
- package/dist/commands/xan/xan.basic.test.d.ts +0 -5
- package/dist/commands/xan/xan.columns.test.d.ts +0 -5
- package/dist/commands/xan/xan.data.test.d.ts +0 -5
- package/dist/commands/xan/xan.filter-sort.test.d.ts +0 -5
- package/dist/commands/xan/xan.frequency.test.d.ts +0 -5
- package/dist/commands/xan/xan.groupby.test.d.ts +0 -5
- package/dist/commands/xan/xan.map.test.d.ts +0 -5
- package/dist/commands/xan/xan.multifile.test.d.ts +0 -5
- package/dist/commands/xan/xan.prototype-pollution.test.d.ts +0 -1
- package/dist/commands/xan/xan.reshape.test.d.ts +0 -5
- package/dist/commands/xan/xan.select-advanced.test.d.ts +0 -5
- package/dist/commands/xan/xan.transform.test.d.ts +0 -5
- package/dist/commands/xan/xan.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/xargs/xargs.command-name-quoting.test.d.ts +0 -1
- package/dist/commands/xargs/xargs.test.d.ts +0 -1
- package/dist/commands/xargs/xargs.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/yq/yq.env.test.d.ts +0 -1
- package/dist/commands/yq/yq.fixtures.test.d.ts +0 -10
- package/dist/commands/yq/yq.format-strings.test.d.ts +0 -1
- package/dist/commands/yq/yq.navigation.test.d.ts +0 -1
- package/dist/commands/yq/yq.prototype-pollution.test.d.ts +0 -1
- package/dist/commands/yq/yq.test.d.ts +0 -1
- package/dist/commands/yq/yq.utf8-stdin.test.d.ts +0 -1
- package/dist/commands/yq/yq.yaml-security.test.d.ts +0 -11
- package/dist/custom-commands.test.d.ts +0 -1
- package/dist/encoding-pipeline.test.d.ts +0 -1
- package/dist/encoding.fs-fallback.test.d.ts +0 -1
- package/dist/fs/cross-fs-no-symlinks.test.d.ts +0 -8
- package/dist/fs/cross-fs-security.test.d.ts +0 -12
- package/dist/fs/in-memory-fs/in-memory-fs.security.test.d.ts +0 -8
- package/dist/fs/in-memory-fs/in-memory-fs.test.d.ts +0 -1
- package/dist/fs/mountable-fs/mountable-fs.security.test.d.ts +0 -8
- package/dist/fs/mountable-fs/mountable-fs.test.d.ts +0 -1
- package/dist/fs/overlay-fs/overlay-fs.e2e.test.d.ts +0 -7
- package/dist/fs/overlay-fs/overlay-fs.security.test.d.ts +0 -7
- package/dist/fs/overlay-fs/overlay-fs.test.d.ts +0 -1
- package/dist/fs/read-write-fs/read-write-fs.piping.test.d.ts +0 -1
- package/dist/fs/read-write-fs/read-write-fs.security.test.d.ts +0 -11
- package/dist/fs/read-write-fs/read-write-fs.test.d.ts +0 -1
- package/dist/fs/real-fs-utils.sanitize.test.d.ts +0 -1
- package/dist/fs/real-fs-utils.test.d.ts +0 -7
- package/dist/fs/sanitize-error.test.d.ts +0 -1
- package/dist/interpreter/arithmetic.test.d.ts +0 -1
- package/dist/interpreter/assoc-array.test.d.ts +0 -1
- package/dist/interpreter/builtins/break.test.d.ts +0 -1
- package/dist/interpreter/builtins/cd.test.d.ts +0 -1
- package/dist/interpreter/builtins/complete.test.d.ts +0 -1
- package/dist/interpreter/builtins/compopt.test.d.ts +0 -1
- package/dist/interpreter/builtins/continue.test.d.ts +0 -1
- package/dist/interpreter/builtins/eval.test.d.ts +0 -1
- package/dist/interpreter/builtins/exit.test.d.ts +0 -1
- package/dist/interpreter/builtins/export.test.d.ts +0 -1
- package/dist/interpreter/builtins/local.test.d.ts +0 -1
- package/dist/interpreter/builtins/posix-fatal.test.d.ts +0 -1
- package/dist/interpreter/builtins/read.test.d.ts +0 -1
- package/dist/interpreter/builtins/return.test.d.ts +0 -1
- package/dist/interpreter/builtins/set.test.d.ts +0 -1
- package/dist/interpreter/builtins/shift.test.d.ts +0 -1
- package/dist/interpreter/builtins/source.test.d.ts +0 -1
- package/dist/interpreter/builtins/unset.test.d.ts +0 -1
- package/dist/interpreter/control-flow.test.d.ts +0 -1
- package/dist/interpreter/expansion/prompt.test.d.ts +0 -1
- package/dist/interpreter/helpers/xtrace.test.d.ts +0 -1
- package/dist/interpreter/pipeline-execution.test.d.ts +0 -1
- package/dist/interpreter/prototype-pollution.test.d.ts +0 -1
- package/dist/interpreter/redirections.binary.test.d.ts +0 -1
- package/dist/network/allow-list/bypass.test.d.ts +0 -7
- package/dist/network/allow-list/dns-rebinding-integration.test.d.ts +0 -8
- package/dist/network/allow-list/dns-rebinding.test.d.ts +0 -7
- package/dist/network/allow-list/e2e.test.d.ts +0 -7
- package/dist/network/allow-list/firewall.test.d.ts +0 -7
- package/dist/network/allow-list/mock.test.d.ts +0 -5
- package/dist/network/allow-list/pen-test-pocs.test.d.ts +0 -1
- package/dist/network/allow-list/unit.test.d.ts +0 -1
- package/dist/network/dns-pin-fetch.test.d.ts +0 -1
- package/dist/network/dns-pin.test.d.ts +0 -1
- package/dist/readme.test.d.ts +0 -9
- package/dist/sandbox/Sandbox.security.test.d.ts +0 -1
- package/dist/sandbox/Sandbox.test.d.ts +0 -1
- package/dist/security-limits.test.d.ts +0 -4
package/dist/bin/default-init.sh
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
export JUST_BASH=1
|
|
5
5
|
|
|
6
|
+
|
|
6
7
|
# Reusable host-command mocks for npx just-bash-nx verification.
|
|
7
8
|
# Source this file inside the same shell process as the script under test.
|
|
8
9
|
|
|
@@ -13,7 +14,7 @@ _mock_now_ms() {
|
|
|
13
14
|
|
|
14
15
|
_mock_escape_json() {
|
|
15
16
|
# Minimal JSON string escaper for test data.
|
|
16
|
-
printf '%s' "$1" |
|
|
17
|
+
printf '%s' "$1" | awk 'BEGIN { RS=""; ORS="" } { gsub(/\\/, "\\\\"); gsub(/"/, "\\\""); gsub(/\t/, "\\t"); gsub(/\r/, "\\r"); gsub(/\n/, "\\n"); printf "%s", $0 }'
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
# Parse repeatable flags as lines into stdout.
|
|
@@ -29,6 +30,7 @@ _mock_collect_flag_values() {
|
|
|
29
30
|
fi
|
|
30
31
|
shift
|
|
31
32
|
done
|
|
33
|
+
return 0
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
_mock_find_next() {
|
|
@@ -44,12 +46,26 @@ _mock_find_next() {
|
|
|
44
46
|
return 1
|
|
45
47
|
}
|
|
46
48
|
|
|
49
|
+
_mock_has_flag() {
|
|
50
|
+
flag="$1"
|
|
51
|
+
shift
|
|
52
|
+
while [ "$#" -gt 0 ]; do
|
|
53
|
+
if [ "$1" = "$flag" ]; then
|
|
54
|
+
return 0
|
|
55
|
+
fi
|
|
56
|
+
shift
|
|
57
|
+
done
|
|
58
|
+
return 1
|
|
59
|
+
}
|
|
60
|
+
|
|
47
61
|
# ---------- command mocks ----------
|
|
48
62
|
|
|
49
63
|
fetch-messages() {
|
|
50
64
|
thread_ts="$(_mock_find_next --thread-timestamp "$@" || true)"
|
|
51
65
|
days="$(_mock_find_next --days "$@" || true)"
|
|
52
|
-
[ -z "$days" ]
|
|
66
|
+
if [ -z "$days" ]; then
|
|
67
|
+
days=2
|
|
68
|
+
fi
|
|
53
69
|
|
|
54
70
|
ts="$(_mock_now_ms)"
|
|
55
71
|
msg_text="mock message"
|
|
@@ -96,7 +112,9 @@ send-chat() {
|
|
|
96
112
|
sid="$(_mock_find_next --session-id "$@" || true)"
|
|
97
113
|
content="$(_mock_find_next --content "$@" || true)"
|
|
98
114
|
thread_ts="$(_mock_find_next --thread-timestamp "$@" || true)"
|
|
99
|
-
[ -z "$sid" ]
|
|
115
|
+
if [ -z "$sid" ]; then
|
|
116
|
+
sid="mock-session"
|
|
117
|
+
fi
|
|
100
118
|
|
|
101
119
|
cat <<JSON
|
|
102
120
|
{"messageId":"msg-$(_mock_now_ms)","sessionId":"$(_mock_escape_json "$sid")","echo":{"content":"$(_mock_escape_json "${content:-}")","threadTimestamp":"$(_mock_escape_json "${thread_ts:-}")"}}
|
|
@@ -107,8 +125,12 @@ edit-chat() {
|
|
|
107
125
|
sid="$(_mock_find_next --session-id "$@" || true)"
|
|
108
126
|
mid="$(_mock_find_next --message-id "$@" || true)"
|
|
109
127
|
content="$(_mock_find_next --content "$@" || true)"
|
|
110
|
-
[ -z "$sid" ]
|
|
111
|
-
|
|
128
|
+
if [ -z "$sid" ]; then
|
|
129
|
+
sid="mock-session"
|
|
130
|
+
fi
|
|
131
|
+
if [ -z "$mid" ]; then
|
|
132
|
+
mid="mock-message-id"
|
|
133
|
+
fi
|
|
112
134
|
|
|
113
135
|
cat <<JSON
|
|
114
136
|
{"ok":true,"sessionId":"$(_mock_escape_json "$sid")","messageId":"$(_mock_escape_json "$mid")","updatedContent":"$(_mock_escape_json "${content:-}")"}
|
|
@@ -117,14 +139,20 @@ JSON
|
|
|
117
139
|
|
|
118
140
|
add-members() {
|
|
119
141
|
sid="$(_mock_find_next --session-id "$@" || true)"
|
|
120
|
-
[ -z "$sid" ]
|
|
142
|
+
if [ -z "$sid" ]; then
|
|
143
|
+
sid="mock-session"
|
|
144
|
+
fi
|
|
121
145
|
|
|
122
146
|
jids="$(_mock_collect_flag_values --jid "$@")"
|
|
123
147
|
emails="$(_mock_collect_flag_values --email "$@")"
|
|
124
148
|
|
|
125
149
|
invited=0
|
|
126
|
-
[ -n "$jids" ]
|
|
127
|
-
|
|
150
|
+
if [ -n "$jids" ]; then
|
|
151
|
+
invited=$((invited + $(printf '%s\n' "$jids" | sed '/^$/d' | wc -l | tr -d ' ')))
|
|
152
|
+
fi
|
|
153
|
+
if [ -n "$emails" ]; then
|
|
154
|
+
invited=$((invited + $(printf '%s\n' "$emails" | sed '/^$/d' | wc -l | tr -d ' ')))
|
|
155
|
+
fi
|
|
128
156
|
|
|
129
157
|
first_jid=""
|
|
130
158
|
if [ -n "$jids" ]; then
|
|
@@ -148,10 +176,16 @@ add-mention-group() {
|
|
|
148
176
|
name="$(_mock_find_next --name "$@" || true)"
|
|
149
177
|
desc="$(_mock_find_next --description "$@" || true)"
|
|
150
178
|
members="$(_mock_collect_flag_values --member "$@")"
|
|
151
|
-
[ -z "$sid" ]
|
|
152
|
-
|
|
179
|
+
if [ -z "$sid" ]; then
|
|
180
|
+
sid="mock-session"
|
|
181
|
+
fi
|
|
182
|
+
if [ -z "$name" ]; then
|
|
183
|
+
name="@mock"
|
|
184
|
+
fi
|
|
153
185
|
member_count=0
|
|
154
|
-
[ -n "$members" ]
|
|
186
|
+
if [ -n "$members" ]; then
|
|
187
|
+
member_count="$(printf '%s\n' "$members" | sed '/^$/d' | wc -l | tr -d ' ')"
|
|
188
|
+
fi
|
|
155
189
|
|
|
156
190
|
cat <<JSON
|
|
157
191
|
{"ok":true,"channelId":"$(_mock_escape_json "$sid")","name":"$(_mock_escape_json "$name")","description":"$(_mock_escape_json "${desc:-}")","memberCount":$member_count}
|
|
@@ -160,9 +194,11 @@ JSON
|
|
|
160
194
|
|
|
161
195
|
get-members() {
|
|
162
196
|
sid="$(_mock_find_next --session-id "$@" || true)"
|
|
163
|
-
[ -z "$sid" ]
|
|
197
|
+
if [ -z "$sid" ]; then
|
|
198
|
+
sid="mock-session"
|
|
199
|
+
fi
|
|
164
200
|
force="false"
|
|
165
|
-
if
|
|
201
|
+
if _mock_has_flag --force-update "$@"; then
|
|
166
202
|
force="true"
|
|
167
203
|
fi
|
|
168
204
|
|
|
@@ -173,9 +209,11 @@ JSON
|
|
|
173
209
|
|
|
174
210
|
create-channel() {
|
|
175
211
|
name="$(_mock_find_next --name "$@" || true)"
|
|
176
|
-
[ -z "$name" ]
|
|
212
|
+
if [ -z "$name" ]; then
|
|
213
|
+
name="~mock"
|
|
214
|
+
fi
|
|
177
215
|
public=false
|
|
178
|
-
if
|
|
216
|
+
if _mock_has_flag --public "$@"; then
|
|
179
217
|
public=true
|
|
180
218
|
fi
|
|
181
219
|
jids="$(_mock_collect_flag_values --jid "$@")"
|
|
@@ -187,7 +225,9 @@ JSON
|
|
|
187
225
|
|
|
188
226
|
get-channel() {
|
|
189
227
|
name="$(_mock_find_next --name "$@" || true)"
|
|
190
|
-
[ -z "$name" ]
|
|
228
|
+
if [ -z "$name" ]; then
|
|
229
|
+
name="~mock"
|
|
230
|
+
fi
|
|
191
231
|
if [ "$name" = "~missing" ]; then
|
|
192
232
|
echo '{"found":false,"subject":"~missing","reason":"not_found","message":"Channel \"~missing\" was not found."}'
|
|
193
233
|
return 0
|
|
@@ -200,7 +240,9 @@ JSON
|
|
|
200
240
|
|
|
201
241
|
open-session() {
|
|
202
242
|
sid="$(_mock_find_next --session-id "$@" || true)"
|
|
203
|
-
[ -z "$sid" ]
|
|
243
|
+
if [ -z "$sid" ]; then
|
|
244
|
+
sid="mock-session"
|
|
245
|
+
fi
|
|
204
246
|
|
|
205
247
|
cat <<JSON
|
|
206
248
|
{"ok":true,"sessionId":"$(_mock_escape_json "$sid")","deeplink":"zoommtg://chat?sid=$(_mock_escape_json "$sid")"}
|