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