@poe-platform/safe-bash 0.1.0
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/LICENSE +21 -0
- package/README.md +300 -0
- package/dist/safe-bash/browser.d.ts +13 -0
- package/dist/safe-bash/browser.d.ts.map +1 -0
- package/dist/safe-bash/browser.js +14478 -0
- package/dist/safe-bash/browser.js.map +7 -0
- package/dist/safe-bash/commands/apply-patch/apply.d.ts +6 -0
- package/dist/safe-bash/commands/apply-patch/apply.d.ts.map +1 -0
- package/dist/safe-bash/commands/apply-patch/apply.js +273 -0
- package/dist/safe-bash/commands/apply-patch/apply.js.map +1 -0
- package/dist/safe-bash/commands/apply-patch/index.d.ts +7 -0
- package/dist/safe-bash/commands/apply-patch/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/apply-patch/index.js +23 -0
- package/dist/safe-bash/commands/apply-patch/index.js.map +1 -0
- package/dist/safe-bash/commands/apply-patch/matcher.d.ts +4 -0
- package/dist/safe-bash/commands/apply-patch/matcher.d.ts.map +1 -0
- package/dist/safe-bash/commands/apply-patch/matcher.js +164 -0
- package/dist/safe-bash/commands/apply-patch/matcher.js.map +1 -0
- package/dist/safe-bash/commands/apply-patch/options.d.ts +22 -0
- package/dist/safe-bash/commands/apply-patch/options.d.ts.map +1 -0
- package/dist/safe-bash/commands/apply-patch/options.js +34 -0
- package/dist/safe-bash/commands/apply-patch/options.js.map +1 -0
- package/dist/safe-bash/commands/apply-patch/parser.d.ts +22 -0
- package/dist/safe-bash/commands/apply-patch/parser.d.ts.map +1 -0
- package/dist/safe-bash/commands/apply-patch/parser.js +164 -0
- package/dist/safe-bash/commands/apply-patch/parser.js.map +1 -0
- package/dist/safe-bash/commands/apply-patch/shared.d.ts +40 -0
- package/dist/safe-bash/commands/apply-patch/shared.d.ts.map +1 -0
- package/dist/safe-bash/commands/apply-patch/shared.js +248 -0
- package/dist/safe-bash/commands/apply-patch/shared.js.map +1 -0
- package/dist/safe-bash/commands/archive/create.d.ts +17 -0
- package/dist/safe-bash/commands/archive/create.d.ts.map +1 -0
- package/dist/safe-bash/commands/archive/create.js +168 -0
- package/dist/safe-bash/commands/archive/create.js.map +1 -0
- package/dist/safe-bash/commands/archive/extract.d.ts +5 -0
- package/dist/safe-bash/commands/archive/extract.d.ts.map +1 -0
- package/dist/safe-bash/commands/archive/extract.js +343 -0
- package/dist/safe-bash/commands/archive/extract.js.map +1 -0
- package/dist/safe-bash/commands/archive/format.d.ts +33 -0
- package/dist/safe-bash/commands/archive/format.d.ts.map +1 -0
- package/dist/safe-bash/commands/archive/format.js +225 -0
- package/dist/safe-bash/commands/archive/format.js.map +1 -0
- package/dist/safe-bash/commands/archive/index.d.ts +8 -0
- package/dist/safe-bash/commands/archive/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/archive/index.js +70 -0
- package/dist/safe-bash/commands/archive/index.js.map +1 -0
- package/dist/safe-bash/commands/archive/internal.d.ts +48 -0
- package/dist/safe-bash/commands/archive/internal.d.ts.map +1 -0
- package/dist/safe-bash/commands/archive/internal.js +183 -0
- package/dist/safe-bash/commands/archive/internal.js.map +1 -0
- package/dist/safe-bash/commands/archive/options.d.ts +26 -0
- package/dist/safe-bash/commands/archive/options.d.ts.map +1 -0
- package/dist/safe-bash/commands/archive/options.js +265 -0
- package/dist/safe-bash/commands/archive/options.js.map +1 -0
- package/dist/safe-bash/commands/archive/stream.d.ts +18 -0
- package/dist/safe-bash/commands/archive/stream.d.ts.map +1 -0
- package/dist/safe-bash/commands/archive/stream.js +108 -0
- package/dist/safe-bash/commands/archive/stream.js.map +1 -0
- package/dist/safe-bash/commands/basic.d.ts +3 -0
- package/dist/safe-bash/commands/basic.d.ts.map +1 -0
- package/dist/safe-bash/commands/basic.js +208 -0
- package/dist/safe-bash/commands/basic.js.map +1 -0
- package/dist/safe-bash/commands/bytes/checksums/index.d.ts +3 -0
- package/dist/safe-bash/commands/bytes/checksums/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/bytes/checksums/index.js +334 -0
- package/dist/safe-bash/commands/bytes/checksums/index.js.map +1 -0
- package/dist/safe-bash/commands/bytes/compression/files.d.ts +13 -0
- package/dist/safe-bash/commands/bytes/compression/files.d.ts.map +1 -0
- package/dist/safe-bash/commands/bytes/compression/files.js +213 -0
- package/dist/safe-bash/commands/bytes/compression/files.js.map +1 -0
- package/dist/safe-bash/commands/bytes/compression/gunzip.d.ts +3 -0
- package/dist/safe-bash/commands/bytes/compression/gunzip.d.ts.map +1 -0
- package/dist/safe-bash/commands/bytes/compression/gunzip.js +191 -0
- package/dist/safe-bash/commands/bytes/compression/gunzip.js.map +1 -0
- package/dist/safe-bash/commands/bytes/compression/index.d.ts +3 -0
- package/dist/safe-bash/commands/bytes/compression/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/bytes/compression/index.js +46 -0
- package/dist/safe-bash/commands/bytes/compression/index.js.map +1 -0
- package/dist/safe-bash/commands/bytes/compression/options.d.ts +12 -0
- package/dist/safe-bash/commands/bytes/compression/options.d.ts.map +1 -0
- package/dist/safe-bash/commands/bytes/compression/options.js +58 -0
- package/dist/safe-bash/commands/bytes/compression/options.js.map +1 -0
- package/dist/safe-bash/commands/bytes/compression/stream.d.ts +6 -0
- package/dist/safe-bash/commands/bytes/compression/stream.d.ts.map +1 -0
- package/dist/safe-bash/commands/bytes/compression/stream.js +94 -0
- package/dist/safe-bash/commands/bytes/compression/stream.js.map +1 -0
- package/dist/safe-bash/commands/bytes/encoding/base.d.ts +3 -0
- package/dist/safe-bash/commands/bytes/encoding/base.d.ts.map +1 -0
- package/dist/safe-bash/commands/bytes/encoding/base.js +120 -0
- package/dist/safe-bash/commands/bytes/encoding/base.js.map +1 -0
- package/dist/safe-bash/commands/bytes/encoding/index.d.ts +3 -0
- package/dist/safe-bash/commands/bytes/encoding/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/bytes/encoding/index.js +7 -0
- package/dist/safe-bash/commands/bytes/encoding/index.js.map +1 -0
- package/dist/safe-bash/commands/bytes/encoding/od.d.ts +3 -0
- package/dist/safe-bash/commands/bytes/encoding/od.d.ts.map +1 -0
- package/dist/safe-bash/commands/bytes/encoding/od.js +135 -0
- package/dist/safe-bash/commands/bytes/encoding/od.js.map +1 -0
- package/dist/safe-bash/commands/bytes/encoding/shared.d.ts +10 -0
- package/dist/safe-bash/commands/bytes/encoding/shared.d.ts.map +1 -0
- package/dist/safe-bash/commands/bytes/encoding/shared.js +107 -0
- package/dist/safe-bash/commands/bytes/encoding/shared.js.map +1 -0
- package/dist/safe-bash/commands/bytes/encoding/xxd.d.ts +3 -0
- package/dist/safe-bash/commands/bytes/encoding/xxd.d.ts.map +1 -0
- package/dist/safe-bash/commands/bytes/encoding/xxd.js +153 -0
- package/dist/safe-bash/commands/bytes/encoding/xxd.js.map +1 -0
- package/dist/safe-bash/commands/bytes/index.d.ts +7 -0
- package/dist/safe-bash/commands/bytes/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/bytes/index.js +22 -0
- package/dist/safe-bash/commands/bytes/index.js.map +1 -0
- package/dist/safe-bash/commands/column/column.d.ts +4 -0
- package/dist/safe-bash/commands/column/column.d.ts.map +1 -0
- package/dist/safe-bash/commands/column/column.js +141 -0
- package/dist/safe-bash/commands/column/column.js.map +1 -0
- package/dist/safe-bash/commands/column/display.d.ts +11 -0
- package/dist/safe-bash/commands/column/display.d.ts.map +1 -0
- package/dist/safe-bash/commands/column/display.js +74 -0
- package/dist/safe-bash/commands/column/display.js.map +1 -0
- package/dist/safe-bash/commands/column/index.d.ts +7 -0
- package/dist/safe-bash/commands/column/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/column/index.js +18 -0
- package/dist/safe-bash/commands/column/index.js.map +1 -0
- package/dist/safe-bash/commands/column/internal.d.ts +35 -0
- package/dist/safe-bash/commands/column/internal.d.ts.map +1 -0
- package/dist/safe-bash/commands/column/internal.js +193 -0
- package/dist/safe-bash/commands/column/internal.js.map +1 -0
- package/dist/safe-bash/commands/column/options.d.ts +34 -0
- package/dist/safe-bash/commands/column/options.d.ts.map +1 -0
- package/dist/safe-bash/commands/column/options.js +141 -0
- package/dist/safe-bash/commands/column/options.js.map +1 -0
- package/dist/safe-bash/commands/column/table.d.ts +4 -0
- package/dist/safe-bash/commands/column/table.d.ts.map +1 -0
- package/dist/safe-bash/commands/column/table.js +87 -0
- package/dist/safe-bash/commands/column/table.js.map +1 -0
- package/dist/safe-bash/commands/copy-identity.d.ts +4 -0
- package/dist/safe-bash/commands/copy-identity.d.ts.map +1 -0
- package/dist/safe-bash/commands/copy-identity.js +46 -0
- package/dist/safe-bash/commands/copy-identity.js.map +1 -0
- package/dist/safe-bash/commands/diff-patch/diff-format.d.ts +9 -0
- package/dist/safe-bash/commands/diff-patch/diff-format.d.ts.map +1 -0
- package/dist/safe-bash/commands/diff-patch/diff-format.js +155 -0
- package/dist/safe-bash/commands/diff-patch/diff-format.js.map +1 -0
- package/dist/safe-bash/commands/diff-patch/diff.d.ts +3 -0
- package/dist/safe-bash/commands/diff-patch/diff.d.ts.map +1 -0
- package/dist/safe-bash/commands/diff-patch/diff.js +291 -0
- package/dist/safe-bash/commands/diff-patch/diff.js.map +1 -0
- package/dist/safe-bash/commands/diff-patch/index.d.ts +6 -0
- package/dist/safe-bash/commands/diff-patch/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/diff-patch/index.js +21 -0
- package/dist/safe-bash/commands/diff-patch/index.js.map +1 -0
- package/dist/safe-bash/commands/diff-patch/patch-envelope.d.ts +3 -0
- package/dist/safe-bash/commands/diff-patch/patch-envelope.d.ts.map +1 -0
- package/dist/safe-bash/commands/diff-patch/patch-envelope.js +56 -0
- package/dist/safe-bash/commands/diff-patch/patch-envelope.js.map +1 -0
- package/dist/safe-bash/commands/diff-patch/patch-formats.d.ts +8 -0
- package/dist/safe-bash/commands/diff-patch/patch-formats.d.ts.map +1 -0
- package/dist/safe-bash/commands/diff-patch/patch-formats.js +247 -0
- package/dist/safe-bash/commands/diff-patch/patch-formats.js.map +1 -0
- package/dist/safe-bash/commands/diff-patch/patch-gnu-paths.d.ts +34 -0
- package/dist/safe-bash/commands/diff-patch/patch-gnu-paths.d.ts.map +1 -0
- package/dist/safe-bash/commands/diff-patch/patch-gnu-paths.js +215 -0
- package/dist/safe-bash/commands/diff-patch/patch-gnu-paths.js.map +1 -0
- package/dist/safe-bash/commands/diff-patch/patch-gnu-reject.d.ts +4 -0
- package/dist/safe-bash/commands/diff-patch/patch-gnu-reject.d.ts.map +1 -0
- package/dist/safe-bash/commands/diff-patch/patch-gnu-reject.js +89 -0
- package/dist/safe-bash/commands/diff-patch/patch-gnu-reject.js.map +1 -0
- package/dist/safe-bash/commands/diff-patch/patch-path.d.ts +4 -0
- package/dist/safe-bash/commands/diff-patch/patch-path.d.ts.map +1 -0
- package/dist/safe-bash/commands/diff-patch/patch-path.js +95 -0
- package/dist/safe-bash/commands/diff-patch/patch-path.js.map +1 -0
- package/dist/safe-bash/commands/diff-patch/patch.d.ts +3 -0
- package/dist/safe-bash/commands/diff-patch/patch.d.ts.map +1 -0
- package/dist/safe-bash/commands/diff-patch/patch.js +389 -0
- package/dist/safe-bash/commands/diff-patch/patch.js.map +1 -0
- package/dist/safe-bash/commands/diff-patch/shared.d.ts +42 -0
- package/dist/safe-bash/commands/diff-patch/shared.d.ts.map +1 -0
- package/dist/safe-bash/commands/diff-patch/shared.js +177 -0
- package/dist/safe-bash/commands/diff-patch/shared.js.map +1 -0
- package/dist/safe-bash/commands/diff-patch/unified.d.ts +50 -0
- package/dist/safe-bash/commands/diff-patch/unified.d.ts.map +1 -0
- package/dist/safe-bash/commands/diff-patch/unified.js +263 -0
- package/dist/safe-bash/commands/diff-patch/unified.js.map +1 -0
- package/dist/safe-bash/commands/du/arguments.d.ts +17 -0
- package/dist/safe-bash/commands/du/arguments.d.ts.map +1 -0
- package/dist/safe-bash/commands/du/arguments.js +164 -0
- package/dist/safe-bash/commands/du/arguments.js.map +1 -0
- package/dist/safe-bash/commands/du/budget.d.ts +37 -0
- package/dist/safe-bash/commands/du/budget.d.ts.map +1 -0
- package/dist/safe-bash/commands/du/budget.js +127 -0
- package/dist/safe-bash/commands/du/budget.js.map +1 -0
- package/dist/safe-bash/commands/du/du.d.ts +4 -0
- package/dist/safe-bash/commands/du/du.d.ts.map +1 -0
- package/dist/safe-bash/commands/du/du.js +205 -0
- package/dist/safe-bash/commands/du/du.js.map +1 -0
- package/dist/safe-bash/commands/du/format.d.ts +10 -0
- package/dist/safe-bash/commands/du/format.d.ts.map +1 -0
- package/dist/safe-bash/commands/du/format.js +54 -0
- package/dist/safe-bash/commands/du/format.js.map +1 -0
- package/dist/safe-bash/commands/du/index.d.ts +7 -0
- package/dist/safe-bash/commands/du/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/du/index.js +19 -0
- package/dist/safe-bash/commands/du/index.js.map +1 -0
- package/dist/safe-bash/commands/du/options.d.ts +17 -0
- package/dist/safe-bash/commands/du/options.d.ts.map +1 -0
- package/dist/safe-bash/commands/du/options.js +14 -0
- package/dist/safe-bash/commands/du/options.js.map +1 -0
- package/dist/safe-bash/commands/env-split.d.ts +8 -0
- package/dist/safe-bash/commands/env-split.d.ts.map +1 -0
- package/dist/safe-bash/commands/env-split.js +343 -0
- package/dist/safe-bash/commands/env-split.js.map +1 -0
- package/dist/safe-bash/commands/execution.d.ts +4 -0
- package/dist/safe-bash/commands/execution.d.ts.map +1 -0
- package/dist/safe-bash/commands/execution.js +230 -0
- package/dist/safe-bash/commands/execution.js.map +1 -0
- package/dist/safe-bash/commands/expr/bre-worker.d.ts +3 -0
- package/dist/safe-bash/commands/expr/bre-worker.d.ts.map +1 -0
- package/dist/safe-bash/commands/expr/bre-worker.js +445 -0
- package/dist/safe-bash/commands/expr/bre-worker.js.map +1 -0
- package/dist/safe-bash/commands/expr/evaluate.d.ts +15 -0
- package/dist/safe-bash/commands/expr/evaluate.d.ts.map +1 -0
- package/dist/safe-bash/commands/expr/evaluate.js +150 -0
- package/dist/safe-bash/commands/expr/evaluate.js.map +1 -0
- package/dist/safe-bash/commands/expr/index.d.ts +7 -0
- package/dist/safe-bash/commands/expr/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/expr/index.js +86 -0
- package/dist/safe-bash/commands/expr/index.js.map +1 -0
- package/dist/safe-bash/commands/expr/internal.d.ts +45 -0
- package/dist/safe-bash/commands/expr/internal.d.ts.map +1 -0
- package/dist/safe-bash/commands/expr/internal.js +145 -0
- package/dist/safe-bash/commands/expr/internal.js.map +1 -0
- package/dist/safe-bash/commands/expr/syntax.d.ts +4 -0
- package/dist/safe-bash/commands/expr/syntax.d.ts.map +1 -0
- package/dist/safe-bash/commands/expr/syntax.js +120 -0
- package/dist/safe-bash/commands/expr/syntax.js.map +1 -0
- package/dist/safe-bash/commands/file/classify.d.ts +8 -0
- package/dist/safe-bash/commands/file/classify.d.ts.map +1 -0
- package/dist/safe-bash/commands/file/classify.js +125 -0
- package/dist/safe-bash/commands/file/classify.js.map +1 -0
- package/dist/safe-bash/commands/file/index.d.ts +7 -0
- package/dist/safe-bash/commands/file/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/file/index.js +257 -0
- package/dist/safe-bash/commands/file/index.js.map +1 -0
- package/dist/safe-bash/commands/file/shared.d.ts +48 -0
- package/dist/safe-bash/commands/file/shared.d.ts.map +1 -0
- package/dist/safe-bash/commands/file/shared.js +166 -0
- package/dist/safe-bash/commands/file/shared.js.map +1 -0
- package/dist/safe-bash/commands/filesystem.d.ts +3 -0
- package/dist/safe-bash/commands/filesystem.d.ts.map +1 -0
- package/dist/safe-bash/commands/filesystem.js +427 -0
- package/dist/safe-bash/commands/filesystem.js.map +1 -0
- package/dist/safe-bash/commands/find.d.ts +3 -0
- package/dist/safe-bash/commands/find.d.ts.map +1 -0
- package/dist/safe-bash/commands/find.js +238 -0
- package/dist/safe-bash/commands/find.js.map +1 -0
- package/dist/safe-bash/commands/git/arguments.d.ts +17 -0
- package/dist/safe-bash/commands/git/arguments.d.ts.map +1 -0
- package/dist/safe-bash/commands/git/arguments.js +150 -0
- package/dist/safe-bash/commands/git/arguments.js.map +1 -0
- package/dist/safe-bash/commands/git/codec.d.ts +8 -0
- package/dist/safe-bash/commands/git/codec.d.ts.map +1 -0
- package/dist/safe-bash/commands/git/codec.js +225 -0
- package/dist/safe-bash/commands/git/codec.js.map +1 -0
- package/dist/safe-bash/commands/git/config.d.ts +8 -0
- package/dist/safe-bash/commands/git/config.d.ts.map +1 -0
- package/dist/safe-bash/commands/git/config.js +100 -0
- package/dist/safe-bash/commands/git/config.js.map +1 -0
- package/dist/safe-bash/commands/git/crc.d.ts +3 -0
- package/dist/safe-bash/commands/git/crc.d.ts.map +1 -0
- package/dist/safe-bash/commands/git/crc.js +14 -0
- package/dist/safe-bash/commands/git/crc.js.map +1 -0
- package/dist/safe-bash/commands/git/delta.d.ts +4 -0
- package/dist/safe-bash/commands/git/delta.d.ts.map +1 -0
- package/dist/safe-bash/commands/git/delta.js +62 -0
- package/dist/safe-bash/commands/git/delta.js.map +1 -0
- package/dist/safe-bash/commands/git/diff.d.ts +9 -0
- package/dist/safe-bash/commands/git/diff.d.ts.map +1 -0
- package/dist/safe-bash/commands/git/diff.js +131 -0
- package/dist/safe-bash/commands/git/diff.js.map +1 -0
- package/dist/safe-bash/commands/git/ignore.d.ts +22 -0
- package/dist/safe-bash/commands/git/ignore.d.ts.map +1 -0
- package/dist/safe-bash/commands/git/ignore.js +153 -0
- package/dist/safe-bash/commands/git/ignore.js.map +1 -0
- package/dist/safe-bash/commands/git/index.d.ts +7 -0
- package/dist/safe-bash/commands/git/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/git/index.js +66 -0
- package/dist/safe-bash/commands/git/index.js.map +1 -0
- package/dist/safe-bash/commands/git/io.d.ts +46 -0
- package/dist/safe-bash/commands/git/io.d.ts.map +1 -0
- package/dist/safe-bash/commands/git/io.js +388 -0
- package/dist/safe-bash/commands/git/io.js.map +1 -0
- package/dist/safe-bash/commands/git/limits.d.ts +39 -0
- package/dist/safe-bash/commands/git/limits.d.ts.map +1 -0
- package/dist/safe-bash/commands/git/limits.js +43 -0
- package/dist/safe-bash/commands/git/limits.js.map +1 -0
- package/dist/safe-bash/commands/git/pack.d.ts +14 -0
- package/dist/safe-bash/commands/git/pack.d.ts.map +1 -0
- package/dist/safe-bash/commands/git/pack.js +273 -0
- package/dist/safe-bash/commands/git/pack.js.map +1 -0
- package/dist/safe-bash/commands/git/queries.d.ts +6 -0
- package/dist/safe-bash/commands/git/queries.d.ts.map +1 -0
- package/dist/safe-bash/commands/git/queries.js +292 -0
- package/dist/safe-bash/commands/git/queries.js.map +1 -0
- package/dist/safe-bash/commands/git/repository.d.ts +49 -0
- package/dist/safe-bash/commands/git/repository.d.ts.map +1 -0
- package/dist/safe-bash/commands/git/repository.js +473 -0
- package/dist/safe-bash/commands/git/repository.js.map +1 -0
- package/dist/safe-bash/commands/grep-aliases/index.d.ts +11 -0
- package/dist/safe-bash/commands/grep-aliases/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/grep-aliases/index.js +52 -0
- package/dist/safe-bash/commands/grep-aliases/index.js.map +1 -0
- package/dist/safe-bash/commands/grep.d.ts +4 -0
- package/dist/safe-bash/commands/grep.d.ts.map +1 -0
- package/dist/safe-bash/commands/grep.js +112 -0
- package/dist/safe-bash/commands/grep.js.map +1 -0
- package/dist/safe-bash/commands/html-to-markdown/budget.d.ts +34 -0
- package/dist/safe-bash/commands/html-to-markdown/budget.d.ts.map +1 -0
- package/dist/safe-bash/commands/html-to-markdown/budget.js +94 -0
- package/dist/safe-bash/commands/html-to-markdown/budget.js.map +1 -0
- package/dist/safe-bash/commands/html-to-markdown/entities.d.ts +5 -0
- package/dist/safe-bash/commands/html-to-markdown/entities.d.ts.map +1 -0
- package/dist/safe-bash/commands/html-to-markdown/entities.js +126 -0
- package/dist/safe-bash/commands/html-to-markdown/entities.js.map +1 -0
- package/dist/safe-bash/commands/html-to-markdown/index.d.ts +7 -0
- package/dist/safe-bash/commands/html-to-markdown/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/html-to-markdown/index.js +91 -0
- package/dist/safe-bash/commands/html-to-markdown/index.js.map +1 -0
- package/dist/safe-bash/commands/html-to-markdown/input.d.ts +18 -0
- package/dist/safe-bash/commands/html-to-markdown/input.d.ts.map +1 -0
- package/dist/safe-bash/commands/html-to-markdown/input.js +118 -0
- package/dist/safe-bash/commands/html-to-markdown/input.js.map +1 -0
- package/dist/safe-bash/commands/html-to-markdown/options.d.ts +28 -0
- package/dist/safe-bash/commands/html-to-markdown/options.d.ts.map +1 -0
- package/dist/safe-bash/commands/html-to-markdown/options.js +56 -0
- package/dist/safe-bash/commands/html-to-markdown/options.js.map +1 -0
- package/dist/safe-bash/commands/html-to-markdown/parser.d.ts +31 -0
- package/dist/safe-bash/commands/html-to-markdown/parser.d.ts.map +1 -0
- package/dist/safe-bash/commands/html-to-markdown/parser.js +293 -0
- package/dist/safe-bash/commands/html-to-markdown/parser.js.map +1 -0
- package/dist/safe-bash/commands/html-to-markdown/render.d.ts +25 -0
- package/dist/safe-bash/commands/html-to-markdown/render.d.ts.map +1 -0
- package/dist/safe-bash/commands/html-to-markdown/render.js +445 -0
- package/dist/safe-bash/commands/html-to-markdown/render.js.map +1 -0
- package/dist/safe-bash/commands/html-to-markdown/text.d.ts +5 -0
- package/dist/safe-bash/commands/html-to-markdown/text.d.ts.map +1 -0
- package/dist/safe-bash/commands/html-to-markdown/text.js +51 -0
- package/dist/safe-bash/commands/html-to-markdown/text.js.map +1 -0
- package/dist/safe-bash/commands/index.d.ts +10 -0
- package/dist/safe-bash/commands/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/index.js +45 -0
- package/dist/safe-bash/commands/index.js.map +1 -0
- package/dist/safe-bash/commands/internal.d.ts +38 -0
- package/dist/safe-bash/commands/internal.d.ts.map +1 -0
- package/dist/safe-bash/commands/internal.js +328 -0
- package/dist/safe-bash/commands/internal.js.map +1 -0
- package/dist/safe-bash/commands/metadata/chmod.d.ts +3 -0
- package/dist/safe-bash/commands/metadata/chmod.d.ts.map +1 -0
- package/dist/safe-bash/commands/metadata/chmod.js +144 -0
- package/dist/safe-bash/commands/metadata/chmod.js.map +1 -0
- package/dist/safe-bash/commands/metadata/index.d.ts +6 -0
- package/dist/safe-bash/commands/metadata/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/metadata/index.js +20 -0
- package/dist/safe-bash/commands/metadata/index.js.map +1 -0
- package/dist/safe-bash/commands/metadata/internal.d.ts +29 -0
- package/dist/safe-bash/commands/metadata/internal.d.ts.map +1 -0
- package/dist/safe-bash/commands/metadata/internal.js +67 -0
- package/dist/safe-bash/commands/metadata/internal.js.map +1 -0
- package/dist/safe-bash/commands/metadata/mktemp.d.ts +3 -0
- package/dist/safe-bash/commands/metadata/mktemp.d.ts.map +1 -0
- package/dist/safe-bash/commands/metadata/mktemp.js +142 -0
- package/dist/safe-bash/commands/metadata/mktemp.js.map +1 -0
- package/dist/safe-bash/commands/metadata/stat.d.ts +3 -0
- package/dist/safe-bash/commands/metadata/stat.d.ts.map +1 -0
- package/dist/safe-bash/commands/metadata/stat.js +245 -0
- package/dist/safe-bash/commands/metadata/stat.js.map +1 -0
- package/dist/safe-bash/commands/move.d.ts +10 -0
- package/dist/safe-bash/commands/move.d.ts.map +1 -0
- package/dist/safe-bash/commands/move.js +161 -0
- package/dist/safe-bash/commands/move.js.map +1 -0
- package/dist/safe-bash/commands/network/args.d.ts +37 -0
- package/dist/safe-bash/commands/network/args.d.ts.map +1 -0
- package/dist/safe-bash/commands/network/args.js +228 -0
- package/dist/safe-bash/commands/network/args.js.map +1 -0
- package/dist/safe-bash/commands/network/body.d.ts +10 -0
- package/dist/safe-bash/commands/network/body.d.ts.map +1 -0
- package/dist/safe-bash/commands/network/body.js +188 -0
- package/dist/safe-bash/commands/network/body.js.map +1 -0
- package/dist/safe-bash/commands/network/curl.d.ts +4 -0
- package/dist/safe-bash/commands/network/curl.d.ts.map +1 -0
- package/dist/safe-bash/commands/network/curl.js +404 -0
- package/dist/safe-bash/commands/network/curl.js.map +1 -0
- package/dist/safe-bash/commands/network/index.d.ts +10 -0
- package/dist/safe-bash/commands/network/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/network/index.js +22 -0
- package/dist/safe-bash/commands/network/index.js.map +1 -0
- package/dist/safe-bash/commands/network/output.d.ts +7 -0
- package/dist/safe-bash/commands/network/output.d.ts.map +1 -0
- package/dist/safe-bash/commands/network/output.js +93 -0
- package/dist/safe-bash/commands/network/output.js.map +1 -0
- package/dist/safe-bash/commands/network/shared.d.ts +10 -0
- package/dist/safe-bash/commands/network/shared.d.ts.map +1 -0
- package/dist/safe-bash/commands/network/shared.js +52 -0
- package/dist/safe-bash/commands/network/shared.js.map +1 -0
- package/dist/safe-bash/commands/network/transport.d.ts +7 -0
- package/dist/safe-bash/commands/network/transport.d.ts.map +1 -0
- package/dist/safe-bash/commands/network/transport.js +81 -0
- package/dist/safe-bash/commands/network/transport.js.map +1 -0
- package/dist/safe-bash/commands/network/types.d.ts +49 -0
- package/dist/safe-bash/commands/network/types.d.ts.map +1 -0
- package/dist/safe-bash/commands/network/types.js +19 -0
- package/dist/safe-bash/commands/network/types.js.map +1 -0
- package/dist/safe-bash/commands/node/admission.d.ts +8 -0
- package/dist/safe-bash/commands/node/admission.d.ts.map +1 -0
- package/dist/safe-bash/commands/node/admission.js +557 -0
- package/dist/safe-bash/commands/node/admission.js.map +1 -0
- package/dist/safe-bash/commands/node/channel.d.ts +31 -0
- package/dist/safe-bash/commands/node/channel.d.ts.map +1 -0
- package/dist/safe-bash/commands/node/channel.js +58 -0
- package/dist/safe-bash/commands/node/channel.js.map +1 -0
- package/dist/safe-bash/commands/node/cli.d.ts +9 -0
- package/dist/safe-bash/commands/node/cli.d.ts.map +1 -0
- package/dist/safe-bash/commands/node/cli.js +55 -0
- package/dist/safe-bash/commands/node/cli.js.map +1 -0
- package/dist/safe-bash/commands/node/diagnostics.d.ts +8 -0
- package/dist/safe-bash/commands/node/diagnostics.d.ts.map +1 -0
- package/dist/safe-bash/commands/node/diagnostics.js +48 -0
- package/dist/safe-bash/commands/node/diagnostics.js.map +1 -0
- package/dist/safe-bash/commands/node/host.d.ts +30 -0
- package/dist/safe-bash/commands/node/host.d.ts.map +1 -0
- package/dist/safe-bash/commands/node/host.js +411 -0
- package/dist/safe-bash/commands/node/host.js.map +1 -0
- package/dist/safe-bash/commands/node/index.d.ts +15 -0
- package/dist/safe-bash/commands/node/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/node/index.js +212 -0
- package/dist/safe-bash/commands/node/index.js.map +1 -0
- package/dist/safe-bash/commands/node/lifecycle.d.ts +29 -0
- package/dist/safe-bash/commands/node/lifecycle.d.ts.map +1 -0
- package/dist/safe-bash/commands/node/lifecycle.js +205 -0
- package/dist/safe-bash/commands/node/lifecycle.js.map +1 -0
- package/dist/safe-bash/commands/node/lower.d.ts +3 -0
- package/dist/safe-bash/commands/node/lower.d.ts.map +1 -0
- package/dist/safe-bash/commands/node/lower.js +407 -0
- package/dist/safe-bash/commands/node/lower.js.map +1 -0
- package/dist/safe-bash/commands/node/program.d.ts +3 -0
- package/dist/safe-bash/commands/node/program.d.ts.map +1 -0
- package/dist/safe-bash/commands/node/program.js +216 -0
- package/dist/safe-bash/commands/node/program.js.map +1 -0
- package/dist/safe-bash/commands/node/rules.d.ts +2 -0
- package/dist/safe-bash/commands/node/rules.d.ts.map +1 -0
- package/dist/safe-bash/commands/node/rules.js +134 -0
- package/dist/safe-bash/commands/node/rules.js.map +1 -0
- package/dist/safe-bash/commands/node/safejs.d.ts +4 -0
- package/dist/safe-bash/commands/node/safejs.d.ts.map +1 -0
- package/dist/safe-bash/commands/node/safejs.js +79 -0
- package/dist/safe-bash/commands/node/safejs.js.map +1 -0
- package/dist/safe-bash/commands/node/types.d.ts +143 -0
- package/dist/safe-bash/commands/node/types.d.ts.map +1 -0
- package/dist/safe-bash/commands/node/types.js +16 -0
- package/dist/safe-bash/commands/node/types.js.map +1 -0
- package/dist/safe-bash/commands/node/values.d.ts +13 -0
- package/dist/safe-bash/commands/node/values.d.ts.map +1 -0
- package/dist/safe-bash/commands/node/values.js +128 -0
- package/dist/safe-bash/commands/node/values.js.map +1 -0
- package/dist/safe-bash/commands/node/worker-main.d.ts +2 -0
- package/dist/safe-bash/commands/node/worker-main.d.ts.map +1 -0
- package/dist/safe-bash/commands/node/worker-main.js +179 -0
- package/dist/safe-bash/commands/node/worker-main.js.map +1 -0
- package/dist/safe-bash/commands/node/worker-provider.d.ts +4 -0
- package/dist/safe-bash/commands/node/worker-provider.d.ts.map +1 -0
- package/dist/safe-bash/commands/node/worker-provider.js +355 -0
- package/dist/safe-bash/commands/node/worker-provider.js.map +1 -0
- package/dist/safe-bash/commands/node/worker-types.d.ts +30 -0
- package/dist/safe-bash/commands/node/worker-types.d.ts.map +1 -0
- package/dist/safe-bash/commands/node/worker-types.js +2 -0
- package/dist/safe-bash/commands/node/worker-types.js.map +1 -0
- package/dist/safe-bash/commands/predicates.d.ts +3 -0
- package/dist/safe-bash/commands/predicates.d.ts.map +1 -0
- package/dist/safe-bash/commands/predicates.js +151 -0
- package/dist/safe-bash/commands/predicates.js.map +1 -0
- package/dist/safe-bash/commands/regex-execution/client.d.ts +70 -0
- package/dist/safe-bash/commands/regex-execution/client.d.ts.map +1 -0
- package/dist/safe-bash/commands/regex-execution/client.js +385 -0
- package/dist/safe-bash/commands/regex-execution/client.js.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/errors.d.ts +22 -0
- package/dist/safe-bash/commands/regex-execution/ere/errors.d.ts.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/errors.js +37 -0
- package/dist/safe-bash/commands/regex-execution/ere/errors.js.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/limits.d.ts +14 -0
- package/dist/safe-bash/commands/regex-execution/ere/limits.d.ts.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/limits.js +87 -0
- package/dist/safe-bash/commands/regex-execution/ere/limits.js.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/matcher.d.ts +4 -0
- package/dist/safe-bash/commands/regex-execution/ere/matcher.d.ts.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/matcher.js +202 -0
- package/dist/safe-bash/commands/regex-execution/ere/matcher.js.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/syntax.d.ts +6 -0
- package/dist/safe-bash/commands/regex-execution/ere/syntax.d.ts.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/syntax.js +291 -0
- package/dist/safe-bash/commands/regex-execution/ere/syntax.js.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/accounting.d.ts +54 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/accounting.d.ts.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/accounting.js +175 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/accounting.js.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/owner.d.ts +15 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/owner.d.ts.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/owner.js +253 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/owner.js.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/protocol.d.ts +68 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/protocol.d.ts.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/protocol.js +35 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/protocol.js.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/root.d.ts +15 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/root.d.ts.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/root.js +372 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/root.js.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/validation.d.ts +22 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/validation.d.ts.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/validation.js +286 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/validation.js.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/wire-engine.d.ts +3 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/wire-engine.d.ts.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/wire-engine.js +47 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/wire-engine.js.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/worker-entry.d.ts +2 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/worker-entry.d.ts.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/worker-entry.js +32 -0
- package/dist/safe-bash/commands/regex-execution/ere/transport/worker-entry.js.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/types.d.ts +56 -0
- package/dist/safe-bash/commands/regex-execution/ere/types.d.ts.map +1 -0
- package/dist/safe-bash/commands/regex-execution/ere/types.js +2 -0
- package/dist/safe-bash/commands/regex-execution/ere/types.js.map +1 -0
- package/dist/safe-bash/commands/regex-execution/matching.d.ts +3 -0
- package/dist/safe-bash/commands/regex-execution/matching.d.ts.map +1 -0
- package/dist/safe-bash/commands/regex-execution/matching.js +321 -0
- package/dist/safe-bash/commands/regex-execution/matching.js.map +1 -0
- package/dist/safe-bash/commands/regex-execution/protocol.d.ts +116 -0
- package/dist/safe-bash/commands/regex-execution/protocol.d.ts.map +1 -0
- package/dist/safe-bash/commands/regex-execution/protocol.js +159 -0
- package/dist/safe-bash/commands/regex-execution/protocol.js.map +1 -0
- package/dist/safe-bash/commands/regex-execution/worker.d.ts +2 -0
- package/dist/safe-bash/commands/regex-execution/worker.d.ts.map +1 -0
- package/dist/safe-bash/commands/regex-execution/worker.js +52 -0
- package/dist/safe-bash/commands/regex-execution/worker.js.map +1 -0
- package/dist/safe-bash/commands/safejs/index.d.ts +18 -0
- package/dist/safe-bash/commands/safejs/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/safejs/index.js +184 -0
- package/dist/safe-bash/commands/safejs/index.js.map +1 -0
- package/dist/safe-bash/commands/safejs/io.d.ts +36 -0
- package/dist/safe-bash/commands/safejs/io.d.ts.map +1 -0
- package/dist/safe-bash/commands/safejs/io.js +127 -0
- package/dist/safe-bash/commands/safejs/io.js.map +1 -0
- package/dist/safe-bash/commands/safejs/options.d.ts +12 -0
- package/dist/safe-bash/commands/safejs/options.d.ts.map +1 -0
- package/dist/safe-bash/commands/safejs/options.js +46 -0
- package/dist/safe-bash/commands/safejs/options.js.map +1 -0
- package/dist/safe-bash/commands/safejs/render.d.ts +2 -0
- package/dist/safe-bash/commands/safejs/render.d.ts.map +1 -0
- package/dist/safe-bash/commands/safejs/render.js +100 -0
- package/dist/safe-bash/commands/safejs/render.js.map +1 -0
- package/dist/safe-bash/commands/safejs/types.d.ts +64 -0
- package/dist/safe-bash/commands/safejs/types.d.ts.map +1 -0
- package/dist/safe-bash/commands/safejs/types.js +10 -0
- package/dist/safe-bash/commands/safejs/types.js.map +1 -0
- package/dist/safe-bash/commands/search/glob.d.ts +21 -0
- package/dist/safe-bash/commands/search/glob.d.ts.map +1 -0
- package/dist/safe-bash/commands/search/glob.js +79 -0
- package/dist/safe-bash/commands/search/glob.js.map +1 -0
- package/dist/safe-bash/commands/search/index.d.ts +6 -0
- package/dist/safe-bash/commands/search/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/search/index.js +20 -0
- package/dist/safe-bash/commands/search/index.js.map +1 -0
- package/dist/safe-bash/commands/search/matcher.d.ts +12 -0
- package/dist/safe-bash/commands/search/matcher.d.ts.map +1 -0
- package/dist/safe-bash/commands/search/matcher.js +24 -0
- package/dist/safe-bash/commands/search/matcher.js.map +1 -0
- package/dist/safe-bash/commands/search/options.d.ts +56 -0
- package/dist/safe-bash/commands/search/options.d.ts.map +1 -0
- package/dist/safe-bash/commands/search/options.js +307 -0
- package/dist/safe-bash/commands/search/options.js.map +1 -0
- package/dist/safe-bash/commands/search/output.d.ts +37 -0
- package/dist/safe-bash/commands/search/output.d.ts.map +1 -0
- package/dist/safe-bash/commands/search/output.js +63 -0
- package/dist/safe-bash/commands/search/output.js.map +1 -0
- package/dist/safe-bash/commands/search/rg.d.ts +4 -0
- package/dist/safe-bash/commands/search/rg.d.ts.map +1 -0
- package/dist/safe-bash/commands/search/rg.js +219 -0
- package/dist/safe-bash/commands/search/rg.js.map +1 -0
- package/dist/safe-bash/commands/search/shared.d.ts +37 -0
- package/dist/safe-bash/commands/search/shared.d.ts.map +1 -0
- package/dist/safe-bash/commands/search/shared.js +111 -0
- package/dist/safe-bash/commands/search/shared.js.map +1 -0
- package/dist/safe-bash/commands/search/walk.d.ts +28 -0
- package/dist/safe-bash/commands/search/walk.d.ts.map +1 -0
- package/dist/safe-bash/commands/search/walk.js +201 -0
- package/dist/safe-bash/commands/search/walk.js.map +1 -0
- package/dist/safe-bash/commands/split/index.d.ts +6 -0
- package/dist/safe-bash/commands/split/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/split/index.js +18 -0
- package/dist/safe-bash/commands/split/index.js.map +1 -0
- package/dist/safe-bash/commands/split/io.d.ts +28 -0
- package/dist/safe-bash/commands/split/io.d.ts.map +1 -0
- package/dist/safe-bash/commands/split/io.js +101 -0
- package/dist/safe-bash/commands/split/io.js.map +1 -0
- package/dist/safe-bash/commands/split/names.d.ts +11 -0
- package/dist/safe-bash/commands/split/names.d.ts.map +1 -0
- package/dist/safe-bash/commands/split/names.js +42 -0
- package/dist/safe-bash/commands/split/names.js.map +1 -0
- package/dist/safe-bash/commands/split/options.d.ts +28 -0
- package/dist/safe-bash/commands/split/options.d.ts.map +1 -0
- package/dist/safe-bash/commands/split/options.js +130 -0
- package/dist/safe-bash/commands/split/options.js.map +1 -0
- package/dist/safe-bash/commands/split/outputs.d.ts +19 -0
- package/dist/safe-bash/commands/split/outputs.d.ts.map +1 -0
- package/dist/safe-bash/commands/split/outputs.js +105 -0
- package/dist/safe-bash/commands/split/outputs.js.map +1 -0
- package/dist/safe-bash/commands/split/split.d.ts +4 -0
- package/dist/safe-bash/commands/split/split.d.ts.map +1 -0
- package/dist/safe-bash/commands/split/split.js +146 -0
- package/dist/safe-bash/commands/split/split.js.map +1 -0
- package/dist/safe-bash/commands/stream-format/index.d.ts +6 -0
- package/dist/safe-bash/commands/stream-format/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/stream-format/index.js +22 -0
- package/dist/safe-bash/commands/stream-format/index.js.map +1 -0
- package/dist/safe-bash/commands/stream-format/nl.d.ts +4 -0
- package/dist/safe-bash/commands/stream-format/nl.d.ts.map +1 -0
- package/dist/safe-bash/commands/stream-format/nl.js +96 -0
- package/dist/safe-bash/commands/stream-format/nl.js.map +1 -0
- package/dist/safe-bash/commands/stream-format/rev.d.ts +4 -0
- package/dist/safe-bash/commands/stream-format/rev.d.ts.map +1 -0
- package/dist/safe-bash/commands/stream-format/rev.js +65 -0
- package/dist/safe-bash/commands/stream-format/rev.js.map +1 -0
- package/dist/safe-bash/commands/stream-format/seq.d.ts +4 -0
- package/dist/safe-bash/commands/stream-format/seq.d.ts.map +1 -0
- package/dist/safe-bash/commands/stream-format/seq.js +249 -0
- package/dist/safe-bash/commands/stream-format/seq.js.map +1 -0
- package/dist/safe-bash/commands/stream-format/shared.d.ts +49 -0
- package/dist/safe-bash/commands/stream-format/shared.d.ts.map +1 -0
- package/dist/safe-bash/commands/stream-format/shared.js +209 -0
- package/dist/safe-bash/commands/stream-format/shared.js.map +1 -0
- package/dist/safe-bash/commands/stream-format/unexpand.d.ts +4 -0
- package/dist/safe-bash/commands/stream-format/unexpand.d.ts.map +1 -0
- package/dist/safe-bash/commands/stream-format/unexpand.js +130 -0
- package/dist/safe-bash/commands/stream-format/unexpand.js.map +1 -0
- package/dist/safe-bash/commands/stream-inspection/expand.d.ts +4 -0
- package/dist/safe-bash/commands/stream-inspection/expand.d.ts.map +1 -0
- package/dist/safe-bash/commands/stream-inspection/expand.js +100 -0
- package/dist/safe-bash/commands/stream-inspection/expand.js.map +1 -0
- package/dist/safe-bash/commands/stream-inspection/fold.d.ts +4 -0
- package/dist/safe-bash/commands/stream-inspection/fold.d.ts.map +1 -0
- package/dist/safe-bash/commands/stream-inspection/fold.js +55 -0
- package/dist/safe-bash/commands/stream-inspection/fold.js.map +1 -0
- package/dist/safe-bash/commands/stream-inspection/index.d.ts +6 -0
- package/dist/safe-bash/commands/stream-inspection/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/stream-inspection/index.js +22 -0
- package/dist/safe-bash/commands/stream-inspection/index.js.map +1 -0
- package/dist/safe-bash/commands/stream-inspection/numeric-options.d.ts +5 -0
- package/dist/safe-bash/commands/stream-inspection/numeric-options.d.ts.map +1 -0
- package/dist/safe-bash/commands/stream-inspection/numeric-options.js +53 -0
- package/dist/safe-bash/commands/stream-inspection/numeric-options.js.map +1 -0
- package/dist/safe-bash/commands/stream-inspection/shared.d.ts +55 -0
- package/dist/safe-bash/commands/stream-inspection/shared.d.ts.map +1 -0
- package/dist/safe-bash/commands/stream-inspection/shared.js +202 -0
- package/dist/safe-bash/commands/stream-inspection/shared.js.map +1 -0
- package/dist/safe-bash/commands/stream-inspection/strings.d.ts +4 -0
- package/dist/safe-bash/commands/stream-inspection/strings.d.ts.map +1 -0
- package/dist/safe-bash/commands/stream-inspection/strings.js +54 -0
- package/dist/safe-bash/commands/stream-inspection/strings.js.map +1 -0
- package/dist/safe-bash/commands/stream-inspection/tac.d.ts +4 -0
- package/dist/safe-bash/commands/stream-inspection/tac.d.ts.map +1 -0
- package/dist/safe-bash/commands/stream-inspection/tac.js +54 -0
- package/dist/safe-bash/commands/stream-inspection/tac.js.map +1 -0
- package/dist/safe-bash/commands/streams.d.ts +3 -0
- package/dist/safe-bash/commands/streams.d.ts.map +1 -0
- package/dist/safe-bash/commands/streams.js +477 -0
- package/dist/safe-bash/commands/streams.js.map +1 -0
- package/dist/safe-bash/commands/structured/index.d.ts +7 -0
- package/dist/safe-bash/commands/structured/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/structured/index.js +21 -0
- package/dist/safe-bash/commands/structured/index.js.map +1 -0
- package/dist/safe-bash/commands/structured/input.d.ts +18 -0
- package/dist/safe-bash/commands/structured/input.d.ts.map +1 -0
- package/dist/safe-bash/commands/structured/input.js +438 -0
- package/dist/safe-bash/commands/structured/input.js.map +1 -0
- package/dist/safe-bash/commands/structured/interpreter.d.ts +21 -0
- package/dist/safe-bash/commands/structured/interpreter.d.ts.map +1 -0
- package/dist/safe-bash/commands/structured/interpreter.js +644 -0
- package/dist/safe-bash/commands/structured/interpreter.js.map +1 -0
- package/dist/safe-bash/commands/structured/jq.d.ts +4 -0
- package/dist/safe-bash/commands/structured/jq.d.ts.map +1 -0
- package/dist/safe-bash/commands/structured/jq.js +278 -0
- package/dist/safe-bash/commands/structured/jq.js.map +1 -0
- package/dist/safe-bash/commands/structured/limits.d.ts +61 -0
- package/dist/safe-bash/commands/structured/limits.d.ts.map +1 -0
- package/dist/safe-bash/commands/structured/limits.js +162 -0
- package/dist/safe-bash/commands/structured/limits.js.map +1 -0
- package/dist/safe-bash/commands/structured/numbers.d.ts +17 -0
- package/dist/safe-bash/commands/structured/numbers.d.ts.map +1 -0
- package/dist/safe-bash/commands/structured/numbers.js +143 -0
- package/dist/safe-bash/commands/structured/numbers.js.map +1 -0
- package/dist/safe-bash/commands/structured/parser.d.ts +54 -0
- package/dist/safe-bash/commands/structured/parser.d.ts.map +1 -0
- package/dist/safe-bash/commands/structured/parser.js +320 -0
- package/dist/safe-bash/commands/structured/parser.js.map +1 -0
- package/dist/safe-bash/commands/structured/split.d.ts +3 -0
- package/dist/safe-bash/commands/structured/split.d.ts.map +1 -0
- package/dist/safe-bash/commands/structured/split.js +65 -0
- package/dist/safe-bash/commands/structured/split.js.map +1 -0
- package/dist/safe-bash/commands/structured/values.d.ts +12 -0
- package/dist/safe-bash/commands/structured/values.d.ts.map +1 -0
- package/dist/safe-bash/commands/structured/values.js +213 -0
- package/dist/safe-bash/commands/structured/values.js.map +1 -0
- package/dist/safe-bash/commands/table-text/comm.d.ts +4 -0
- package/dist/safe-bash/commands/table-text/comm.d.ts.map +1 -0
- package/dist/safe-bash/commands/table-text/comm.js +101 -0
- package/dist/safe-bash/commands/table-text/comm.js.map +1 -0
- package/dist/safe-bash/commands/table-text/index.d.ts +6 -0
- package/dist/safe-bash/commands/table-text/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/table-text/index.js +21 -0
- package/dist/safe-bash/commands/table-text/index.js.map +1 -0
- package/dist/safe-bash/commands/table-text/internal.d.ts +73 -0
- package/dist/safe-bash/commands/table-text/internal.d.ts.map +1 -0
- package/dist/safe-bash/commands/table-text/internal.js +223 -0
- package/dist/safe-bash/commands/table-text/internal.js.map +1 -0
- package/dist/safe-bash/commands/table-text/join.d.ts +4 -0
- package/dist/safe-bash/commands/table-text/join.d.ts.map +1 -0
- package/dist/safe-bash/commands/table-text/join.js +252 -0
- package/dist/safe-bash/commands/table-text/join.js.map +1 -0
- package/dist/safe-bash/commands/table-text/paste.d.ts +4 -0
- package/dist/safe-bash/commands/table-text/paste.d.ts.map +1 -0
- package/dist/safe-bash/commands/table-text/paste.js +125 -0
- package/dist/safe-bash/commands/table-text/paste.js.map +1 -0
- package/dist/safe-bash/commands/text-programs/awk-runtime.d.ts +45 -0
- package/dist/safe-bash/commands/text-programs/awk-runtime.d.ts.map +1 -0
- package/dist/safe-bash/commands/text-programs/awk-runtime.js +679 -0
- package/dist/safe-bash/commands/text-programs/awk-runtime.js.map +1 -0
- package/dist/safe-bash/commands/text-programs/awk-syntax.d.ts +141 -0
- package/dist/safe-bash/commands/text-programs/awk-syntax.d.ts.map +1 -0
- package/dist/safe-bash/commands/text-programs/awk-syntax.js +495 -0
- package/dist/safe-bash/commands/text-programs/awk-syntax.js.map +1 -0
- package/dist/safe-bash/commands/text-programs/awk-values.d.ts +29 -0
- package/dist/safe-bash/commands/text-programs/awk-values.d.ts.map +1 -0
- package/dist/safe-bash/commands/text-programs/awk-values.js +155 -0
- package/dist/safe-bash/commands/text-programs/awk-values.js.map +1 -0
- package/dist/safe-bash/commands/text-programs/awk.d.ts +4 -0
- package/dist/safe-bash/commands/text-programs/awk.d.ts.map +1 -0
- package/dist/safe-bash/commands/text-programs/awk.js +45 -0
- package/dist/safe-bash/commands/text-programs/awk.js.map +1 -0
- package/dist/safe-bash/commands/text-programs/index.d.ts +6 -0
- package/dist/safe-bash/commands/text-programs/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/text-programs/index.js +21 -0
- package/dist/safe-bash/commands/text-programs/index.js.map +1 -0
- package/dist/safe-bash/commands/text-programs/regex.d.ts +19 -0
- package/dist/safe-bash/commands/text-programs/regex.d.ts.map +1 -0
- package/dist/safe-bash/commands/text-programs/regex.js +387 -0
- package/dist/safe-bash/commands/text-programs/regex.js.map +1 -0
- package/dist/safe-bash/commands/text-programs/sed.d.ts +4 -0
- package/dist/safe-bash/commands/text-programs/sed.d.ts.map +1 -0
- package/dist/safe-bash/commands/text-programs/sed.js +602 -0
- package/dist/safe-bash/commands/text-programs/sed.js.map +1 -0
- package/dist/safe-bash/commands/text-programs/shared.d.ts +33 -0
- package/dist/safe-bash/commands/text-programs/shared.d.ts.map +1 -0
- package/dist/safe-bash/commands/text-programs/shared.js +102 -0
- package/dist/safe-bash/commands/text-programs/shared.js.map +1 -0
- package/dist/safe-bash/commands/text.d.ts +3 -0
- package/dist/safe-bash/commands/text.d.ts.map +1 -0
- package/dist/safe-bash/commands/text.js +428 -0
- package/dist/safe-bash/commands/text.js.map +1 -0
- package/dist/safe-bash/commands/time-env/calendar.d.ts +30 -0
- package/dist/safe-bash/commands/time-env/calendar.d.ts.map +1 -0
- package/dist/safe-bash/commands/time-env/calendar.js +184 -0
- package/dist/safe-bash/commands/time-env/calendar.js.map +1 -0
- package/dist/safe-bash/commands/time-env/date.d.ts +3 -0
- package/dist/safe-bash/commands/time-env/date.d.ts.map +1 -0
- package/dist/safe-bash/commands/time-env/date.js +149 -0
- package/dist/safe-bash/commands/time-env/date.js.map +1 -0
- package/dist/safe-bash/commands/time-env/format.d.ts +4 -0
- package/dist/safe-bash/commands/time-env/format.d.ts.map +1 -0
- package/dist/safe-bash/commands/time-env/format.js +247 -0
- package/dist/safe-bash/commands/time-env/format.js.map +1 -0
- package/dist/safe-bash/commands/time-env/index.d.ts +6 -0
- package/dist/safe-bash/commands/time-env/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/time-env/index.js +21 -0
- package/dist/safe-bash/commands/time-env/index.js.map +1 -0
- package/dist/safe-bash/commands/time-env/printenv.d.ts +3 -0
- package/dist/safe-bash/commands/time-env/printenv.d.ts.map +1 -0
- package/dist/safe-bash/commands/time-env/printenv.js +59 -0
- package/dist/safe-bash/commands/time-env/printenv.js.map +1 -0
- package/dist/safe-bash/commands/time-env/shared.d.ts +38 -0
- package/dist/safe-bash/commands/time-env/shared.d.ts.map +1 -0
- package/dist/safe-bash/commands/time-env/shared.js +68 -0
- package/dist/safe-bash/commands/time-env/shared.js.map +1 -0
- package/dist/safe-bash/commands/time-env/sleep.d.ts +3 -0
- package/dist/safe-bash/commands/time-env/sleep.d.ts.map +1 -0
- package/dist/safe-bash/commands/time-env/sleep.js +150 -0
- package/dist/safe-bash/commands/time-env/sleep.js.map +1 -0
- package/dist/safe-bash/commands/timeout/duration.d.ts +10 -0
- package/dist/safe-bash/commands/timeout/duration.d.ts.map +1 -0
- package/dist/safe-bash/commands/timeout/duration.js +82 -0
- package/dist/safe-bash/commands/timeout/duration.js.map +1 -0
- package/dist/safe-bash/commands/timeout/index.d.ts +18 -0
- package/dist/safe-bash/commands/timeout/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/timeout/index.js +218 -0
- package/dist/safe-bash/commands/timeout/index.js.map +1 -0
- package/dist/safe-bash/commands/timeout/scheduler.d.ts +17 -0
- package/dist/safe-bash/commands/timeout/scheduler.d.ts.map +1 -0
- package/dist/safe-bash/commands/timeout/scheduler.js +110 -0
- package/dist/safe-bash/commands/timeout/scheduler.js.map +1 -0
- package/dist/safe-bash/commands/tree/arguments.d.ts +24 -0
- package/dist/safe-bash/commands/tree/arguments.d.ts.map +1 -0
- package/dist/safe-bash/commands/tree/arguments.js +125 -0
- package/dist/safe-bash/commands/tree/arguments.js.map +1 -0
- package/dist/safe-bash/commands/tree/charset.d.ts +5 -0
- package/dist/safe-bash/commands/tree/charset.d.ts.map +1 -0
- package/dist/safe-bash/commands/tree/charset.js +36 -0
- package/dist/safe-bash/commands/tree/charset.js.map +1 -0
- package/dist/safe-bash/commands/tree/index.d.ts +7 -0
- package/dist/safe-bash/commands/tree/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/tree/index.js +19 -0
- package/dist/safe-bash/commands/tree/index.js.map +1 -0
- package/dist/safe-bash/commands/tree/io.d.ts +28 -0
- package/dist/safe-bash/commands/tree/io.d.ts.map +1 -0
- package/dist/safe-bash/commands/tree/io.js +95 -0
- package/dist/safe-bash/commands/tree/io.js.map +1 -0
- package/dist/safe-bash/commands/tree/options.d.ts +17 -0
- package/dist/safe-bash/commands/tree/options.d.ts.map +1 -0
- package/dist/safe-bash/commands/tree/options.js +14 -0
- package/dist/safe-bash/commands/tree/options.js.map +1 -0
- package/dist/safe-bash/commands/tree/pattern.d.ts +10 -0
- package/dist/safe-bash/commands/tree/pattern.d.ts.map +1 -0
- package/dist/safe-bash/commands/tree/pattern.js +90 -0
- package/dist/safe-bash/commands/tree/pattern.js.map +1 -0
- package/dist/safe-bash/commands/tree/tree.d.ts +4 -0
- package/dist/safe-bash/commands/tree/tree.d.ts.map +1 -0
- package/dist/safe-bash/commands/tree/tree.js +242 -0
- package/dist/safe-bash/commands/tree/tree.js.map +1 -0
- package/dist/safe-bash/commands/which/index.d.ts +7 -0
- package/dist/safe-bash/commands/which/index.d.ts.map +1 -0
- package/dist/safe-bash/commands/which/index.js +22 -0
- package/dist/safe-bash/commands/which/index.js.map +1 -0
- package/dist/safe-bash/commands/which/options.d.ts +15 -0
- package/dist/safe-bash/commands/which/options.d.ts.map +1 -0
- package/dist/safe-bash/commands/which/options.js +24 -0
- package/dist/safe-bash/commands/which/options.js.map +1 -0
- package/dist/safe-bash/commands/which/which.d.ts +4 -0
- package/dist/safe-bash/commands/which/which.d.ts.map +1 -0
- package/dist/safe-bash/commands/which/which.js +284 -0
- package/dist/safe-bash/commands/which/which.js.map +1 -0
- package/dist/safe-bash/contracts/command.d.ts +67 -0
- package/dist/safe-bash/contracts/command.d.ts.map +1 -0
- package/dist/safe-bash/contracts/command.js +209 -0
- package/dist/safe-bash/contracts/command.js.map +1 -0
- package/dist/safe-bash/contracts/errors.d.ts +3 -0
- package/dist/safe-bash/contracts/errors.d.ts.map +1 -0
- package/dist/safe-bash/contracts/errors.js +2 -0
- package/dist/safe-bash/contracts/errors.js.map +1 -0
- package/dist/safe-bash/contracts/filesystem.d.ts +3 -0
- package/dist/safe-bash/contracts/filesystem.d.ts.map +1 -0
- package/dist/safe-bash/contracts/filesystem.js +2 -0
- package/dist/safe-bash/contracts/filesystem.js.map +1 -0
- package/dist/safe-bash/contracts/index.d.ts +8 -0
- package/dist/safe-bash/contracts/index.d.ts.map +1 -0
- package/dist/safe-bash/contracts/index.js +8 -0
- package/dist/safe-bash/contracts/index.js.map +1 -0
- package/dist/safe-bash/contracts/io.d.ts +26 -0
- package/dist/safe-bash/contracts/io.d.ts.map +1 -0
- package/dist/safe-bash/contracts/io.js +154 -0
- package/dist/safe-bash/contracts/io.js.map +1 -0
- package/dist/safe-bash/contracts/output.d.ts +12 -0
- package/dist/safe-bash/contracts/output.d.ts.map +1 -0
- package/dist/safe-bash/contracts/output.js +126 -0
- package/dist/safe-bash/contracts/output.js.map +1 -0
- package/dist/safe-bash/contracts/path.d.ts +2 -0
- package/dist/safe-bash/contracts/path.d.ts.map +1 -0
- package/dist/safe-bash/contracts/path.js +2 -0
- package/dist/safe-bash/contracts/path.js.map +1 -0
- package/dist/safe-bash/contracts/plugin.d.ts +16 -0
- package/dist/safe-bash/contracts/plugin.d.ts.map +1 -0
- package/dist/safe-bash/contracts/plugin.js +47 -0
- package/dist/safe-bash/contracts/plugin.js.map +1 -0
- package/dist/safe-bash/contracts/value.d.ts +21 -0
- package/dist/safe-bash/contracts/value.d.ts.map +1 -0
- package/dist/safe-bash/contracts/value.js +203 -0
- package/dist/safe-bash/contracts/value.js.map +1 -0
- package/dist/safe-bash/fs/memory/index.d.ts +2 -0
- package/dist/safe-bash/fs/memory/index.d.ts.map +1 -0
- package/dist/safe-bash/fs/memory/index.js +2 -0
- package/dist/safe-bash/fs/memory/index.js.map +1 -0
- package/dist/safe-bash/fs/mount/index.d.ts +3 -0
- package/dist/safe-bash/fs/mount/index.d.ts.map +1 -0
- package/dist/safe-bash/fs/mount/index.js +2 -0
- package/dist/safe-bash/fs/mount/index.js.map +1 -0
- package/dist/safe-bash/fs/overlay/index.d.ts +3 -0
- package/dist/safe-bash/fs/overlay/index.d.ts.map +1 -0
- package/dist/safe-bash/fs/overlay/index.js +2 -0
- package/dist/safe-bash/fs/overlay/index.js.map +1 -0
- package/dist/safe-bash/fs/readonly/index.d.ts +2 -0
- package/dist/safe-bash/fs/readonly/index.d.ts.map +1 -0
- package/dist/safe-bash/fs/readonly/index.js +2 -0
- package/dist/safe-bash/fs/readonly/index.js.map +1 -0
- package/dist/safe-bash/fs/real/index.d.ts +3 -0
- package/dist/safe-bash/fs/real/index.d.ts.map +1 -0
- package/dist/safe-bash/fs/real/index.js +2 -0
- package/dist/safe-bash/fs/real/index.js.map +1 -0
- package/dist/safe-bash/fs/s3/http/index.d.ts +3 -0
- package/dist/safe-bash/fs/s3/http/index.d.ts.map +1 -0
- package/dist/safe-bash/fs/s3/http/index.js +2 -0
- package/dist/safe-bash/fs/s3/http/index.js.map +1 -0
- package/dist/safe-bash/fs/s3/index.d.ts +3 -0
- package/dist/safe-bash/fs/s3/index.d.ts.map +1 -0
- package/dist/safe-bash/fs/s3/index.js +2 -0
- package/dist/safe-bash/fs/s3/index.js.map +1 -0
- package/dist/safe-bash/fs/webdav/index.d.ts +3 -0
- package/dist/safe-bash/fs/webdav/index.d.ts.map +1 -0
- package/dist/safe-bash/fs/webdav/index.js +2 -0
- package/dist/safe-bash/fs/webdav/index.js.map +1 -0
- package/dist/safe-bash/index.d.ts +40 -0
- package/dist/safe-bash/index.d.ts.map +1 -0
- package/dist/safe-bash/index.js +39 -0
- package/dist/safe-bash/index.js.map +1 -0
- package/dist/safe-bash/integrations/safejs/filesystem.d.ts +7 -0
- package/dist/safe-bash/integrations/safejs/filesystem.d.ts.map +1 -0
- package/dist/safe-bash/integrations/safejs/filesystem.js +5 -0
- package/dist/safe-bash/integrations/safejs/filesystem.js.map +1 -0
- package/dist/safe-bash/integrations/safejs/index.d.ts +5 -0
- package/dist/safe-bash/integrations/safejs/index.d.ts.map +1 -0
- package/dist/safe-bash/integrations/safejs/index.js +3 -0
- package/dist/safe-bash/integrations/safejs/index.js.map +1 -0
- package/dist/safe-bash/integrations/safejs/shell.d.ts +31 -0
- package/dist/safe-bash/integrations/safejs/shell.d.ts.map +1 -0
- package/dist/safe-bash/integrations/safejs/shell.js +53 -0
- package/dist/safe-bash/integrations/safejs/shell.js.map +1 -0
- package/dist/safe-bash/integrations/safejs/values.d.ts +8 -0
- package/dist/safe-bash/integrations/safejs/values.d.ts.map +1 -0
- package/dist/safe-bash/integrations/safejs/values.js +71 -0
- package/dist/safe-bash/integrations/safejs/values.js.map +1 -0
- package/dist/safe-bash/plugins/index.d.ts +50 -0
- package/dist/safe-bash/plugins/index.d.ts.map +1 -0
- package/dist/safe-bash/plugins/index.js +63 -0
- package/dist/safe-bash/plugins/index.js.map +1 -0
- package/dist/safe-bash/shell/arithmetic-parameters.d.ts +14 -0
- package/dist/safe-bash/shell/arithmetic-parameters.d.ts.map +1 -0
- package/dist/safe-bash/shell/arithmetic-parameters.js +156 -0
- package/dist/safe-bash/shell/arithmetic-parameters.js.map +1 -0
- package/dist/safe-bash/shell/arithmetic.d.ts +35 -0
- package/dist/safe-bash/shell/arithmetic.d.ts.map +1 -0
- package/dist/safe-bash/shell/arithmetic.js +265 -0
- package/dist/safe-bash/shell/arithmetic.js.map +1 -0
- package/dist/safe-bash/shell/arrays/bindings.d.ts +83 -0
- package/dist/safe-bash/shell/arrays/bindings.d.ts.map +1 -0
- package/dist/safe-bash/shell/arrays/bindings.js +284 -0
- package/dist/safe-bash/shell/arrays/bindings.js.map +1 -0
- package/dist/safe-bash/shell/arrays/ledger.d.ts +73 -0
- package/dist/safe-bash/shell/arrays/ledger.d.ts.map +1 -0
- package/dist/safe-bash/shell/arrays/ledger.js +270 -0
- package/dist/safe-bash/shell/arrays/ledger.js.map +1 -0
- package/dist/safe-bash/shell/arrays/state.d.ts +75 -0
- package/dist/safe-bash/shell/arrays/state.d.ts.map +1 -0
- package/dist/safe-bash/shell/arrays/state.js +444 -0
- package/dist/safe-bash/shell/arrays/state.js.map +1 -0
- package/dist/safe-bash/shell/arrays/syntax.d.ts +47 -0
- package/dist/safe-bash/shell/arrays/syntax.d.ts.map +1 -0
- package/dist/safe-bash/shell/arrays/syntax.js +122 -0
- package/dist/safe-bash/shell/arrays/syntax.js.map +1 -0
- package/dist/safe-bash/shell/cancellation.d.ts +129 -0
- package/dist/safe-bash/shell/cancellation.d.ts.map +1 -0
- package/dist/safe-bash/shell/cancellation.js +703 -0
- package/dist/safe-bash/shell/cancellation.js.map +1 -0
- package/dist/safe-bash/shell/cleanup.d.ts +19 -0
- package/dist/safe-bash/shell/cleanup.d.ts.map +1 -0
- package/dist/safe-bash/shell/cleanup.js +83 -0
- package/dist/safe-bash/shell/cleanup.js.map +1 -0
- package/dist/safe-bash/shell/conditional.d.ts +48 -0
- package/dist/safe-bash/shell/conditional.d.ts.map +1 -0
- package/dist/safe-bash/shell/conditional.js +218 -0
- package/dist/safe-bash/shell/conditional.js.map +1 -0
- package/dist/safe-bash/shell/display.d.ts +3 -0
- package/dist/safe-bash/shell/display.d.ts.map +1 -0
- package/dist/safe-bash/shell/display.js +57 -0
- package/dist/safe-bash/shell/display.js.map +1 -0
- package/dist/safe-bash/shell/getopts.d.ts +46 -0
- package/dist/safe-bash/shell/getopts.d.ts.map +1 -0
- package/dist/safe-bash/shell/getopts.js +215 -0
- package/dist/safe-bash/shell/getopts.js.map +1 -0
- package/dist/safe-bash/shell/index.d.ts +5 -0
- package/dist/safe-bash/shell/index.d.ts.map +1 -0
- package/dist/safe-bash/shell/index.js +4 -0
- package/dist/safe-bash/shell/index.js.map +1 -0
- package/dist/safe-bash/shell/input.d.ts +26 -0
- package/dist/safe-bash/shell/input.d.ts.map +1 -0
- package/dist/safe-bash/shell/input.js +323 -0
- package/dist/safe-bash/shell/input.js.map +1 -0
- package/dist/safe-bash/shell/locale.d.ts +2 -0
- package/dist/safe-bash/shell/locale.d.ts.map +1 -0
- package/dist/safe-bash/shell/locale.js +5 -0
- package/dist/safe-bash/shell/locale.js.map +1 -0
- package/dist/safe-bash/shell/parser.d.ts +149 -0
- package/dist/safe-bash/shell/parser.d.ts.map +1 -0
- package/dist/safe-bash/shell/parser.js +1023 -0
- package/dist/safe-bash/shell/parser.js.map +1 -0
- package/dist/safe-bash/shell/pattern.d.ts +9 -0
- package/dist/safe-bash/shell/pattern.d.ts.map +1 -0
- package/dist/safe-bash/shell/pattern.js +134 -0
- package/dist/safe-bash/shell/pattern.js.map +1 -0
- package/dist/safe-bash/shell/pipestatus.d.ts +6 -0
- package/dist/safe-bash/shell/pipestatus.d.ts.map +1 -0
- package/dist/safe-bash/shell/pipestatus.js +82 -0
- package/dist/safe-bash/shell/pipestatus.js.map +1 -0
- package/dist/safe-bash/shell/runtime.d.ts +282 -0
- package/dist/safe-bash/shell/runtime.d.ts.map +1 -0
- package/dist/safe-bash/shell/runtime.js +5400 -0
- package/dist/safe-bash/shell/runtime.js.map +1 -0
- package/dist/safe-bash/shell/shell.d.ts +15 -0
- package/dist/safe-bash/shell/shell.d.ts.map +1 -0
- package/dist/safe-bash/shell/shell.js +355 -0
- package/dist/safe-bash/shell/shell.js.map +1 -0
- package/dist/safe-bash/shell/types.d.ts +76 -0
- package/dist/safe-bash/shell/types.d.ts.map +1 -0
- package/dist/safe-bash/shell/types.js +25 -0
- package/dist/safe-bash/shell/types.js.map +1 -0
- package/dist/safe-bash/shell/value-state.d.ts +57 -0
- package/dist/safe-bash/shell/value-state.d.ts.map +1 -0
- package/dist/safe-bash/shell/value-state.js +275 -0
- package/dist/safe-bash/shell/value-state.js.map +1 -0
- package/package.json +143 -0
|
@@ -0,0 +1,703 @@
|
|
|
1
|
+
const boundaryState = Symbol("private cancellation boundary state");
|
|
2
|
+
const reportState = Symbol("private cancellation report state");
|
|
3
|
+
const preparedState = Symbol("private prepared cancellation state");
|
|
4
|
+
export class CancellationCapacityError extends Error {
|
|
5
|
+
constructor() {
|
|
6
|
+
super("Cancellation resource capacity exceeded");
|
|
7
|
+
this.name = "CancellationCapacityError";
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const emptyCloseResult = Object.freeze({ failures: Object.freeze([]) });
|
|
11
|
+
const nativeAbortedGetter = Object.getOwnPropertyDescriptor(AbortSignal.prototype, "aborted")?.get;
|
|
12
|
+
class Boundary {
|
|
13
|
+
[boundaryState];
|
|
14
|
+
constructor(state) { this[boundaryState] = state; }
|
|
15
|
+
get owned() { return this[boundaryState].kind === "link"; }
|
|
16
|
+
get deliverySignal() {
|
|
17
|
+
const state = this[boundaryState];
|
|
18
|
+
return (state.kind === "link" ? state : state.lineage).controller.signal;
|
|
19
|
+
}
|
|
20
|
+
close() {
|
|
21
|
+
const state = this[boundaryState];
|
|
22
|
+
if (state.kind === "borrow")
|
|
23
|
+
return emptyCloseResult;
|
|
24
|
+
return closeLink(state);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
class Prepared {
|
|
28
|
+
[preparedState];
|
|
29
|
+
constructor(state) { this[preparedState] = state; }
|
|
30
|
+
get owned() { return this[preparedState].owned; }
|
|
31
|
+
}
|
|
32
|
+
function nativeSignal(value) {
|
|
33
|
+
if (!nativeAbortedGetter)
|
|
34
|
+
return false;
|
|
35
|
+
try {
|
|
36
|
+
Reflect.apply(nativeAbortedGetter, value, []);
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
catch {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function signalAborted(signal) {
|
|
44
|
+
return Boolean(Reflect.apply(nativeAbortedGetter, signal, []));
|
|
45
|
+
}
|
|
46
|
+
function validateSnapshot(snapshot) {
|
|
47
|
+
if (!snapshot || typeof snapshot !== "object")
|
|
48
|
+
throw new TypeError("Cancellation admission snapshot is required");
|
|
49
|
+
const { depth, maxDepth, resourceLimit } = snapshot;
|
|
50
|
+
if (!Number.isSafeInteger(depth) || !Number.isSafeInteger(maxDepth) || !Number.isSafeInteger(resourceLimit)
|
|
51
|
+
|| depth < 0 || maxDepth < 0 || resourceLimit < 0 || depth > maxDepth) {
|
|
52
|
+
throw new RangeError("Cancellation admission snapshot must contain bounded safe integers");
|
|
53
|
+
}
|
|
54
|
+
return { depth, maxDepth, resourceLimit };
|
|
55
|
+
}
|
|
56
|
+
function requireLink(boundary) {
|
|
57
|
+
if (!boundary || typeof boundary !== "object" || !(boundaryState in boundary)) {
|
|
58
|
+
throw new TypeError("Expected a private cancellation boundary");
|
|
59
|
+
}
|
|
60
|
+
const state = boundary[boundaryState];
|
|
61
|
+
return state.kind === "link" ? state : state.lineage;
|
|
62
|
+
}
|
|
63
|
+
function ensureCapacity(state, count = 1) {
|
|
64
|
+
if (count > state.resourceLimit - state.resourcesUsed)
|
|
65
|
+
throw new CancellationCapacityError();
|
|
66
|
+
}
|
|
67
|
+
function originRank(origin) {
|
|
68
|
+
if (origin.role === "root-caller")
|
|
69
|
+
return -1;
|
|
70
|
+
if (origin.role === "invoke-option")
|
|
71
|
+
return requireLink(origin.frame).depth;
|
|
72
|
+
return Number.POSITIVE_INFINITY;
|
|
73
|
+
}
|
|
74
|
+
function betterOrigin(current, candidate) {
|
|
75
|
+
if (!current)
|
|
76
|
+
return true;
|
|
77
|
+
return originRank(candidate) < originRank(current);
|
|
78
|
+
}
|
|
79
|
+
function deactivateSubscriber(state, subscriber, release) {
|
|
80
|
+
if (!subscriber.active)
|
|
81
|
+
return;
|
|
82
|
+
subscriber.active = false;
|
|
83
|
+
state.subscribers.delete(subscriber);
|
|
84
|
+
if (release)
|
|
85
|
+
state.resourcesUsed--;
|
|
86
|
+
}
|
|
87
|
+
function notify(state, origin) {
|
|
88
|
+
state.notifying++;
|
|
89
|
+
try {
|
|
90
|
+
for (const subscriber of [...state.subscribers]) {
|
|
91
|
+
if (state.closed)
|
|
92
|
+
break;
|
|
93
|
+
if (!subscriber.active)
|
|
94
|
+
continue;
|
|
95
|
+
try {
|
|
96
|
+
subscriber.callback(origin);
|
|
97
|
+
}
|
|
98
|
+
catch (error) {
|
|
99
|
+
state.failures.push(error);
|
|
100
|
+
deactivateSubscriber(state, subscriber, false);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
finally {
|
|
105
|
+
state.notifying--;
|
|
106
|
+
if (state.closed && state.notifying === 0)
|
|
107
|
+
finalizeClose(state);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function publish(state, origin) {
|
|
111
|
+
if (state.closed)
|
|
112
|
+
return;
|
|
113
|
+
let changed = false;
|
|
114
|
+
if (!state.delivered) {
|
|
115
|
+
state.delivered = origin;
|
|
116
|
+
state.controller.abort(origin.signal.reason);
|
|
117
|
+
changed = true;
|
|
118
|
+
}
|
|
119
|
+
if (betterOrigin(state.selected, origin)) {
|
|
120
|
+
state.selected = origin;
|
|
121
|
+
changed = true;
|
|
122
|
+
}
|
|
123
|
+
if (changed)
|
|
124
|
+
notify(state, origin);
|
|
125
|
+
}
|
|
126
|
+
function addSubscriber(state, callback) {
|
|
127
|
+
if (state.closed)
|
|
128
|
+
throw state.closedReason;
|
|
129
|
+
ensureCapacity(state);
|
|
130
|
+
const subscriber = { active: true, callback };
|
|
131
|
+
state.resourcesUsed++;
|
|
132
|
+
state.subscribers.add(subscriber);
|
|
133
|
+
let detached = false;
|
|
134
|
+
return () => {
|
|
135
|
+
if (detached)
|
|
136
|
+
return;
|
|
137
|
+
detached = true;
|
|
138
|
+
deactivateSubscriber(state, subscriber, true);
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
function removeSignalListener(detacher) {
|
|
142
|
+
if (!detacher.active)
|
|
143
|
+
return [];
|
|
144
|
+
detacher.active = false;
|
|
145
|
+
try {
|
|
146
|
+
detacher.signal.removeEventListener("abort", detacher.listener);
|
|
147
|
+
return [];
|
|
148
|
+
}
|
|
149
|
+
catch (error) {
|
|
150
|
+
return [error];
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
function attachOrigin(state, origin) {
|
|
154
|
+
if (signalAborted(origin.signal))
|
|
155
|
+
return;
|
|
156
|
+
ensureCapacity(state);
|
|
157
|
+
const listener = () => publish(state, origin);
|
|
158
|
+
const detacher = { active: true, signal: origin.signal, listener };
|
|
159
|
+
try {
|
|
160
|
+
origin.signal.addEventListener("abort", listener, { once: true });
|
|
161
|
+
}
|
|
162
|
+
catch (error) {
|
|
163
|
+
const rollback = removeSignalListener(detacher);
|
|
164
|
+
if (rollback.length)
|
|
165
|
+
throw new AggregateError([error, ...rollback], "Cancellation listener initialization failed");
|
|
166
|
+
throw error;
|
|
167
|
+
}
|
|
168
|
+
state.resourcesUsed++;
|
|
169
|
+
state.signalDetachers.push(detacher);
|
|
170
|
+
if (signalAborted(origin.signal))
|
|
171
|
+
publish(state, origin);
|
|
172
|
+
}
|
|
173
|
+
function visibleOrigins(state) {
|
|
174
|
+
if (state.closed) {
|
|
175
|
+
const fixed = state.selected ?? state.delivered;
|
|
176
|
+
return fixed ? [fixed] : [];
|
|
177
|
+
}
|
|
178
|
+
const lineage = [];
|
|
179
|
+
for (let current = state; current; current = current.parent)
|
|
180
|
+
lineage.push(current);
|
|
181
|
+
lineage.reverse();
|
|
182
|
+
const origins = [];
|
|
183
|
+
for (const frame of lineage) {
|
|
184
|
+
if (frame.closed) {
|
|
185
|
+
const fixed = frame.selected ?? frame.delivered;
|
|
186
|
+
if (fixed)
|
|
187
|
+
origins.push(fixed);
|
|
188
|
+
continue;
|
|
189
|
+
}
|
|
190
|
+
if (frame.rootCaller && signalAborted(frame.rootCaller.signal))
|
|
191
|
+
origins.push(frame.rootCaller);
|
|
192
|
+
if (frame.localInvoke && signalAborted(frame.localInvoke.signal))
|
|
193
|
+
origins.push(frame.localInvoke);
|
|
194
|
+
for (const control of frame.controls)
|
|
195
|
+
if (signalAborted(control.signal))
|
|
196
|
+
origins.push(control);
|
|
197
|
+
if (frame.selected && !origins.includes(frame.selected))
|
|
198
|
+
origins.push(frame.selected);
|
|
199
|
+
if (frame.delivered && !origins.includes(frame.delivered))
|
|
200
|
+
origins.push(frame.delivered);
|
|
201
|
+
}
|
|
202
|
+
return origins;
|
|
203
|
+
}
|
|
204
|
+
function admissionOrigins(state) {
|
|
205
|
+
const lineage = [];
|
|
206
|
+
for (let current = state; current; current = current.parent)
|
|
207
|
+
lineage.push(current);
|
|
208
|
+
lineage.reverse();
|
|
209
|
+
const origins = [];
|
|
210
|
+
for (const frame of lineage) {
|
|
211
|
+
if (frame.rootCaller && signalAborted(frame.rootCaller.signal))
|
|
212
|
+
origins.push(frame.rootCaller);
|
|
213
|
+
if (frame.localInvoke && signalAborted(frame.localInvoke.signal))
|
|
214
|
+
origins.push(frame.localInvoke);
|
|
215
|
+
const deliveredControl = frame.delivered?.role === "budget-control" || frame.delivered?.role === "pipeline-control"
|
|
216
|
+
? frame.delivered
|
|
217
|
+
: undefined;
|
|
218
|
+
if (deliveredControl && signalAborted(deliveredControl.signal))
|
|
219
|
+
origins.push(deliveredControl);
|
|
220
|
+
for (const control of frame.controls) {
|
|
221
|
+
if (signalAborted(control.signal) && control !== deliveredControl)
|
|
222
|
+
origins.push(control);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
return origins;
|
|
226
|
+
}
|
|
227
|
+
function bestVisibleOrigin(state) {
|
|
228
|
+
const origins = visibleOrigins(state);
|
|
229
|
+
const root = origins.find(origin => origin.role === "root-caller");
|
|
230
|
+
if (root)
|
|
231
|
+
return root;
|
|
232
|
+
const invokes = origins.filter(origin => origin.role === "invoke-option");
|
|
233
|
+
invokes.sort((left, right) => originRank(left) - originRank(right));
|
|
234
|
+
return invokes[0] ?? origins.find(origin => origin.role === "budget-control" || origin.role === "pipeline-control");
|
|
235
|
+
}
|
|
236
|
+
function admissionFailure(state) {
|
|
237
|
+
const origins = admissionOrigins(state);
|
|
238
|
+
const root = origins.find(origin => origin.role === "root-caller");
|
|
239
|
+
const invokes = origins.filter(origin => origin.role === "invoke-option")
|
|
240
|
+
.sort((left, right) => originRank(left) - originRank(right));
|
|
241
|
+
const origin = root ?? invokes[0]
|
|
242
|
+
?? origins.find(candidate => candidate.role === "budget-control" || candidate.role === "pipeline-control");
|
|
243
|
+
if (origin)
|
|
244
|
+
return { failed: true, reason: origin.signal.reason };
|
|
245
|
+
if (state.closed)
|
|
246
|
+
return { failed: true, reason: state.closedReason };
|
|
247
|
+
return { failed: false, reason: undefined };
|
|
248
|
+
}
|
|
249
|
+
function throwAdmissionFailure(state) {
|
|
250
|
+
const failure = admissionFailure(state);
|
|
251
|
+
if (failure.failed)
|
|
252
|
+
throw failure.reason;
|
|
253
|
+
}
|
|
254
|
+
function initializeState(parent, admission) {
|
|
255
|
+
const controller = new AbortController();
|
|
256
|
+
const state = {
|
|
257
|
+
kind: "link",
|
|
258
|
+
boundary: undefined,
|
|
259
|
+
parent,
|
|
260
|
+
depth: admission.depth,
|
|
261
|
+
maxDepth: admission.maxDepth,
|
|
262
|
+
resourceLimit: admission.resourceLimit,
|
|
263
|
+
resourcesUsed: 1,
|
|
264
|
+
controller,
|
|
265
|
+
closedReason: new Error("Cancellation admission is closed"),
|
|
266
|
+
rootCaller: undefined,
|
|
267
|
+
localInvoke: undefined,
|
|
268
|
+
controls: [],
|
|
269
|
+
delivered: undefined,
|
|
270
|
+
selected: undefined,
|
|
271
|
+
signalDetachers: [],
|
|
272
|
+
subscribers: new Set(),
|
|
273
|
+
failures: [],
|
|
274
|
+
parentDetach: undefined,
|
|
275
|
+
closed: false,
|
|
276
|
+
finalized: false,
|
|
277
|
+
notifying: 0,
|
|
278
|
+
closeResult: undefined,
|
|
279
|
+
};
|
|
280
|
+
state.boundary = new Boundary(state);
|
|
281
|
+
return state;
|
|
282
|
+
}
|
|
283
|
+
function finalizeClose(state) {
|
|
284
|
+
if (state.finalized)
|
|
285
|
+
return;
|
|
286
|
+
state.finalized = true;
|
|
287
|
+
for (const detacher of state.signalDetachers)
|
|
288
|
+
state.failures.push(...removeSignalListener(detacher));
|
|
289
|
+
state.signalDetachers.length = 0;
|
|
290
|
+
state.parentDetach?.();
|
|
291
|
+
state.parentDetach = undefined;
|
|
292
|
+
for (const subscriber of [...state.subscribers])
|
|
293
|
+
deactivateSubscriber(state, subscriber, true);
|
|
294
|
+
state.subscribers.clear();
|
|
295
|
+
state.resourcesUsed = 0;
|
|
296
|
+
Object.freeze(state.failures);
|
|
297
|
+
Object.freeze(state.closeResult);
|
|
298
|
+
}
|
|
299
|
+
function closeLink(state) {
|
|
300
|
+
if (state.closeResult)
|
|
301
|
+
return state.closeResult;
|
|
302
|
+
state.closed = true;
|
|
303
|
+
state.closeResult = { failures: state.failures };
|
|
304
|
+
if (state.notifying === 0)
|
|
305
|
+
finalizeClose(state);
|
|
306
|
+
return state.closeResult;
|
|
307
|
+
}
|
|
308
|
+
function rollbackState(state) {
|
|
309
|
+
state.closed = true;
|
|
310
|
+
const failures = [];
|
|
311
|
+
for (const detacher of state.signalDetachers)
|
|
312
|
+
failures.push(...removeSignalListener(detacher));
|
|
313
|
+
state.signalDetachers.length = 0;
|
|
314
|
+
try {
|
|
315
|
+
state.parentDetach?.();
|
|
316
|
+
}
|
|
317
|
+
catch (error) {
|
|
318
|
+
failures.push(error);
|
|
319
|
+
}
|
|
320
|
+
state.parentDetach = undefined;
|
|
321
|
+
for (const subscriber of [...state.subscribers])
|
|
322
|
+
deactivateSubscriber(state, subscriber, true);
|
|
323
|
+
state.subscribers.clear();
|
|
324
|
+
state.resourcesUsed = 0;
|
|
325
|
+
state.finalized = true;
|
|
326
|
+
return failures;
|
|
327
|
+
}
|
|
328
|
+
function stagedFailure(state, reason) {
|
|
329
|
+
throwAdmissionFailure(state);
|
|
330
|
+
throw reason;
|
|
331
|
+
}
|
|
332
|
+
function prepareControls(parent, controls) {
|
|
333
|
+
if (controls === undefined)
|
|
334
|
+
return Object.freeze([]);
|
|
335
|
+
if (!Array.isArray(controls))
|
|
336
|
+
return stagedFailure(parent, new TypeError("Cancellation controls must be an array"));
|
|
337
|
+
const prepared = [];
|
|
338
|
+
for (const input of controls) {
|
|
339
|
+
let role;
|
|
340
|
+
let signal;
|
|
341
|
+
try {
|
|
342
|
+
if (!input || typeof input !== "object")
|
|
343
|
+
throw new TypeError("Invalid cancellation control origin");
|
|
344
|
+
role = input.role;
|
|
345
|
+
signal = input.signal;
|
|
346
|
+
}
|
|
347
|
+
catch (error) {
|
|
348
|
+
return stagedFailure(parent, error);
|
|
349
|
+
}
|
|
350
|
+
if (role !== "budget-control" && role !== "pipeline-control" || !nativeSignal(signal)) {
|
|
351
|
+
return stagedFailure(parent, new TypeError("Invalid cancellation control origin"));
|
|
352
|
+
}
|
|
353
|
+
prepared.push(Object.freeze({ role, signal }));
|
|
354
|
+
}
|
|
355
|
+
throwAdmissionFailure(parent);
|
|
356
|
+
return Object.freeze(prepared);
|
|
357
|
+
}
|
|
358
|
+
function makePrepared(parent, localSignal, controls, admission) {
|
|
359
|
+
const state = {
|
|
360
|
+
parent,
|
|
361
|
+
localSignal,
|
|
362
|
+
controls,
|
|
363
|
+
admission,
|
|
364
|
+
owned: localSignal !== undefined || controls.length > 0,
|
|
365
|
+
replayError: new Error("Prepared cancellation admission was already activated"),
|
|
366
|
+
activated: false,
|
|
367
|
+
};
|
|
368
|
+
return new Prepared(state);
|
|
369
|
+
}
|
|
370
|
+
function localActivationFailure(state) {
|
|
371
|
+
const ancestor = admissionFailure(state.parent);
|
|
372
|
+
if (ancestor.failed)
|
|
373
|
+
return ancestor;
|
|
374
|
+
if (state.localSignal && signalAborted(state.localSignal)) {
|
|
375
|
+
return { failed: true, reason: state.localSignal.reason };
|
|
376
|
+
}
|
|
377
|
+
const control = state.controls.find(candidate => signalAborted(candidate.signal));
|
|
378
|
+
if (control)
|
|
379
|
+
return { failed: true, reason: control.signal.reason };
|
|
380
|
+
return { failed: false, reason: undefined };
|
|
381
|
+
}
|
|
382
|
+
function throwLocalActivationFailure(state) {
|
|
383
|
+
const failure = localActivationFailure(state);
|
|
384
|
+
if (failure.failed)
|
|
385
|
+
throw failure.reason;
|
|
386
|
+
}
|
|
387
|
+
export function prepareChildCancellation(parent, options, snapshot, controls) {
|
|
388
|
+
const parentState = requireLink(parent);
|
|
389
|
+
throwAdmissionFailure(parentState);
|
|
390
|
+
let localSignal;
|
|
391
|
+
if (options !== undefined) {
|
|
392
|
+
if (options === null || typeof options !== "object" && typeof options !== "function") {
|
|
393
|
+
return stagedFailure(parentState, new TypeError("Cancellation options must be an object or function"));
|
|
394
|
+
}
|
|
395
|
+
let candidate;
|
|
396
|
+
try {
|
|
397
|
+
candidate = options.signal;
|
|
398
|
+
}
|
|
399
|
+
catch (error) {
|
|
400
|
+
return stagedFailure(parentState, error);
|
|
401
|
+
}
|
|
402
|
+
throwAdmissionFailure(parentState);
|
|
403
|
+
if (candidate !== undefined && !nativeSignal(candidate)) {
|
|
404
|
+
return stagedFailure(parentState, new TypeError("Cancellation signal must be an AbortSignal"));
|
|
405
|
+
}
|
|
406
|
+
localSignal = candidate;
|
|
407
|
+
throwAdmissionFailure(parentState);
|
|
408
|
+
if (localSignal !== undefined && signalAborted(localSignal))
|
|
409
|
+
throw localSignal.reason;
|
|
410
|
+
}
|
|
411
|
+
const preparedControls = prepareControls(parentState, controls);
|
|
412
|
+
if (localSignal === undefined && preparedControls.length === 0) {
|
|
413
|
+
return makePrepared(parentState, undefined, preparedControls, undefined);
|
|
414
|
+
}
|
|
415
|
+
let admission;
|
|
416
|
+
try {
|
|
417
|
+
admission = validateSnapshot(snapshot);
|
|
418
|
+
}
|
|
419
|
+
catch (error) {
|
|
420
|
+
return stagedFailure(parentState, error);
|
|
421
|
+
}
|
|
422
|
+
throwAdmissionFailure(parentState);
|
|
423
|
+
if (admission.depth <= parentState.depth || admission.maxDepth !== parentState.maxDepth) {
|
|
424
|
+
throw new RangeError("Cancellation child depth must advance within its supplied maximum");
|
|
425
|
+
}
|
|
426
|
+
const required = 1
|
|
427
|
+
+ Number(localSignal !== undefined)
|
|
428
|
+
+ preparedControls.filter(control => !signalAborted(control.signal)).length;
|
|
429
|
+
if (admission.resourceLimit < required)
|
|
430
|
+
throw new CancellationCapacityError();
|
|
431
|
+
ensureCapacity(parentState);
|
|
432
|
+
return makePrepared(parentState, localSignal, preparedControls, admission);
|
|
433
|
+
}
|
|
434
|
+
export function activateChildCancellation(prepared) {
|
|
435
|
+
if (!prepared || typeof prepared !== "object" || !(preparedState in prepared)) {
|
|
436
|
+
throw new TypeError("Expected a private prepared cancellation admission");
|
|
437
|
+
}
|
|
438
|
+
const preparation = prepared[preparedState];
|
|
439
|
+
if (preparation.activated)
|
|
440
|
+
throw preparation.replayError;
|
|
441
|
+
preparation.activated = true;
|
|
442
|
+
throwLocalActivationFailure(preparation);
|
|
443
|
+
if (!preparation.owned)
|
|
444
|
+
return new Boundary({ kind: "borrow", lineage: preparation.parent });
|
|
445
|
+
const admission = preparation.admission;
|
|
446
|
+
const required = 1
|
|
447
|
+
+ Number(preparation.localSignal !== undefined)
|
|
448
|
+
+ preparation.controls.filter(control => !signalAborted(control.signal)).length;
|
|
449
|
+
if (admission.resourceLimit < required)
|
|
450
|
+
throw new CancellationCapacityError();
|
|
451
|
+
ensureCapacity(preparation.parent);
|
|
452
|
+
throwLocalActivationFailure(preparation);
|
|
453
|
+
const state = initializeState(preparation.parent, admission);
|
|
454
|
+
if (preparation.localSignal) {
|
|
455
|
+
state.localInvoke = Object.freeze({
|
|
456
|
+
role: "invoke-option",
|
|
457
|
+
signal: preparation.localSignal,
|
|
458
|
+
frame: state.boundary,
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
state.controls = Object.freeze(preparation.controls.map(control => Object.freeze({
|
|
462
|
+
role: control.role,
|
|
463
|
+
signal: control.signal,
|
|
464
|
+
frame: state.boundary,
|
|
465
|
+
})));
|
|
466
|
+
try {
|
|
467
|
+
state.parentDetach = addSubscriber(preparation.parent, inherited => publish(state, inherited));
|
|
468
|
+
if (state.localInvoke)
|
|
469
|
+
attachOrigin(state, state.localInvoke);
|
|
470
|
+
for (const control of state.controls)
|
|
471
|
+
attachOrigin(state, control);
|
|
472
|
+
throwAdmissionFailure(preparation.parent);
|
|
473
|
+
const inherited = preparation.parent.selected ?? preparation.parent.delivered;
|
|
474
|
+
if (inherited)
|
|
475
|
+
publish(state, inherited);
|
|
476
|
+
const cancellation = admissionFailure(state);
|
|
477
|
+
if (cancellation.failed)
|
|
478
|
+
throw cancellation.reason;
|
|
479
|
+
return state.boundary;
|
|
480
|
+
}
|
|
481
|
+
catch (error) {
|
|
482
|
+
const cancellation = admissionFailure(state);
|
|
483
|
+
const rollback = rollbackState(state);
|
|
484
|
+
const ancestor = admissionFailure(preparation.parent);
|
|
485
|
+
if (ancestor.failed)
|
|
486
|
+
throw ancestor.reason;
|
|
487
|
+
if (cancellation.failed)
|
|
488
|
+
throw cancellation.reason;
|
|
489
|
+
if (rollback.length) {
|
|
490
|
+
throw new AggregateError([error, ...rollback], "Cancellation child activation failed");
|
|
491
|
+
}
|
|
492
|
+
throw error;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
export function createRootCancellationLink(input) {
|
|
496
|
+
if (!input || typeof input !== "object")
|
|
497
|
+
throw new TypeError("Root cancellation input is required");
|
|
498
|
+
const admission = validateSnapshot(input.admission);
|
|
499
|
+
if (admission.depth !== 0)
|
|
500
|
+
throw new RangeError("Root cancellation depth must be zero");
|
|
501
|
+
if (input.callerSignal !== undefined && !nativeSignal(input.callerSignal))
|
|
502
|
+
throw new TypeError("Root caller signal must be an AbortSignal");
|
|
503
|
+
const controls = input.controls ?? [];
|
|
504
|
+
if (!Array.isArray(controls))
|
|
505
|
+
throw new TypeError("Cancellation controls must be an array");
|
|
506
|
+
for (const control of controls) {
|
|
507
|
+
if (!control || typeof control !== "object"
|
|
508
|
+
|| control.role !== "budget-control" && control.role !== "pipeline-control"
|
|
509
|
+
|| !nativeSignal(control.signal))
|
|
510
|
+
throw new TypeError("Invalid cancellation control origin");
|
|
511
|
+
}
|
|
512
|
+
const required = 1
|
|
513
|
+
+ Number(input.callerSignal !== undefined && !signalAborted(input.callerSignal))
|
|
514
|
+
+ controls.filter(control => !signalAborted(control.signal)).length;
|
|
515
|
+
if (admission.resourceLimit < required)
|
|
516
|
+
throw new CancellationCapacityError();
|
|
517
|
+
const state = initializeState(undefined, admission);
|
|
518
|
+
state.rootCaller = input.callerSignal === undefined
|
|
519
|
+
? undefined
|
|
520
|
+
: Object.freeze({ role: "root-caller", signal: input.callerSignal, frame: state.boundary });
|
|
521
|
+
state.controls = Object.freeze(controls.map(control => Object.freeze({
|
|
522
|
+
role: control.role,
|
|
523
|
+
signal: control.signal,
|
|
524
|
+
frame: state.boundary,
|
|
525
|
+
})));
|
|
526
|
+
try {
|
|
527
|
+
if (state.rootCaller)
|
|
528
|
+
attachOrigin(state, state.rootCaller);
|
|
529
|
+
for (const control of state.controls)
|
|
530
|
+
attachOrigin(state, control);
|
|
531
|
+
const preaborted = bestVisibleOrigin(state);
|
|
532
|
+
if (preaborted)
|
|
533
|
+
publish(state, preaborted);
|
|
534
|
+
return state.boundary;
|
|
535
|
+
}
|
|
536
|
+
catch (error) {
|
|
537
|
+
const rollback = rollbackState(state);
|
|
538
|
+
if (rollback.length)
|
|
539
|
+
throw new AggregateError([error, ...rollback], "Cancellation root initialization failed");
|
|
540
|
+
throw error;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
export function admitChildCancellation(parent, options, snapshot) {
|
|
544
|
+
const parentState = requireLink(parent);
|
|
545
|
+
throwAdmissionFailure(parentState);
|
|
546
|
+
if (options === undefined)
|
|
547
|
+
return new Boundary({ kind: "borrow", lineage: parentState });
|
|
548
|
+
if (options === null || typeof options !== "object" && typeof options !== "function") {
|
|
549
|
+
return stagedFailure(parentState, new TypeError("Cancellation options must be an object or function"));
|
|
550
|
+
}
|
|
551
|
+
let localSignal;
|
|
552
|
+
try {
|
|
553
|
+
localSignal = options.signal;
|
|
554
|
+
}
|
|
555
|
+
catch (error) {
|
|
556
|
+
return stagedFailure(parentState, error);
|
|
557
|
+
}
|
|
558
|
+
throwAdmissionFailure(parentState);
|
|
559
|
+
if (localSignal === undefined)
|
|
560
|
+
return new Boundary({ kind: "borrow", lineage: parentState });
|
|
561
|
+
if (!nativeSignal(localSignal))
|
|
562
|
+
return stagedFailure(parentState, new TypeError("Cancellation signal must be an AbortSignal"));
|
|
563
|
+
throwAdmissionFailure(parentState);
|
|
564
|
+
if (signalAborted(localSignal))
|
|
565
|
+
throw localSignal.reason;
|
|
566
|
+
let admission;
|
|
567
|
+
try {
|
|
568
|
+
admission = validateSnapshot(snapshot);
|
|
569
|
+
}
|
|
570
|
+
catch (error) {
|
|
571
|
+
return stagedFailure(parentState, error);
|
|
572
|
+
}
|
|
573
|
+
throwAdmissionFailure(parentState);
|
|
574
|
+
if (admission.depth <= parentState.depth || admission.maxDepth !== parentState.maxDepth) {
|
|
575
|
+
throw new RangeError("Cancellation child depth must advance within its supplied maximum");
|
|
576
|
+
}
|
|
577
|
+
if (admission.resourceLimit < 2)
|
|
578
|
+
throw new RangeError("Owned cancellation admission requires two local resource slots");
|
|
579
|
+
ensureCapacity(parentState);
|
|
580
|
+
const state = initializeState(parentState, admission);
|
|
581
|
+
const origin = Object.freeze({ role: "invoke-option", signal: localSignal, frame: state.boundary });
|
|
582
|
+
state.localInvoke = origin;
|
|
583
|
+
try {
|
|
584
|
+
state.parentDetach = addSubscriber(parentState, inherited => publish(state, inherited));
|
|
585
|
+
attachOrigin(state, origin);
|
|
586
|
+
throwAdmissionFailure(parentState);
|
|
587
|
+
if (signalAborted(localSignal))
|
|
588
|
+
throw localSignal.reason;
|
|
589
|
+
const inherited = parentState.selected ?? parentState.delivered;
|
|
590
|
+
if (inherited)
|
|
591
|
+
publish(state, inherited);
|
|
592
|
+
return state.boundary;
|
|
593
|
+
}
|
|
594
|
+
catch (error) {
|
|
595
|
+
const rollback = rollbackState(state);
|
|
596
|
+
const ancestor = admissionFailure(parentState);
|
|
597
|
+
if (ancestor.failed)
|
|
598
|
+
throw ancestor.reason;
|
|
599
|
+
if (rollback.length)
|
|
600
|
+
throw new AggregateError([error, ...rollback], "Cancellation child initialization failed");
|
|
601
|
+
throw error;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
export function subscribeCancellation(boundary, callback) {
|
|
605
|
+
if (typeof callback !== "function")
|
|
606
|
+
throw new TypeError("Cancellation subscriber must be callable");
|
|
607
|
+
const state = boundary[boundaryState];
|
|
608
|
+
if (state.kind === "borrow")
|
|
609
|
+
throw new TypeError("Borrowed cancellation boundaries cannot own subscriptions");
|
|
610
|
+
return addSubscriber(state, callback);
|
|
611
|
+
}
|
|
612
|
+
function validReport(boundary, captured) {
|
|
613
|
+
if (captured.kind !== "throw" || !captured.report || !(reportState in captured.report))
|
|
614
|
+
return undefined;
|
|
615
|
+
const report = captured.report[reportState];
|
|
616
|
+
const target = boundary.kind === "link" ? boundary : boundary.lineage;
|
|
617
|
+
if (report.target !== target || !Object.is(captured.reason, report.origin.signal.reason))
|
|
618
|
+
return undefined;
|
|
619
|
+
return report.origin;
|
|
620
|
+
}
|
|
621
|
+
function matchingVisibleOrigin(state, reason) {
|
|
622
|
+
return visibleOrigins(state).find(origin => Object.is(reason, origin.signal.reason));
|
|
623
|
+
}
|
|
624
|
+
function selectionReport(boundary, origin) {
|
|
625
|
+
const lineage = boundary.kind === "link" ? boundary : boundary.lineage;
|
|
626
|
+
const target = boundary.kind === "borrow" ? lineage : lineage.parent;
|
|
627
|
+
if (!target)
|
|
628
|
+
return undefined;
|
|
629
|
+
const state = Object.freeze({ target, origin });
|
|
630
|
+
return Object.freeze({ origin, [reportState]: state });
|
|
631
|
+
}
|
|
632
|
+
function throwingSelection(boundary, reason, origin) {
|
|
633
|
+
const outcome = { kind: "throw", reason };
|
|
634
|
+
const report = origin ? selectionReport(boundary, origin) : undefined;
|
|
635
|
+
return report ? { outcome, report } : { outcome };
|
|
636
|
+
}
|
|
637
|
+
export function selectCancellationOutcome(boundary, captured) {
|
|
638
|
+
if (!captured || typeof captured !== "object" || captured.kind !== "return" && captured.kind !== "throw") {
|
|
639
|
+
throw new TypeError("A captured return or throw outcome is required");
|
|
640
|
+
}
|
|
641
|
+
const state = boundary[boundaryState];
|
|
642
|
+
const lineage = state.kind === "link" ? state : state.lineage;
|
|
643
|
+
const origins = visibleOrigins(lineage);
|
|
644
|
+
const root = origins.find(origin => origin.role === "root-caller");
|
|
645
|
+
if (root)
|
|
646
|
+
return throwingSelection(state, root.signal.reason, root);
|
|
647
|
+
const reported = validReport(state, captured);
|
|
648
|
+
const matching = captured.kind === "throw" ? matchingVisibleOrigin(lineage, captured.reason) : undefined;
|
|
649
|
+
const classified = reported ?? matching;
|
|
650
|
+
const invokeMatch = classified?.role === "invoke-option";
|
|
651
|
+
if (captured.kind === "throw" && !invokeMatch) {
|
|
652
|
+
return throwingSelection(state, captured.reason, classified);
|
|
653
|
+
}
|
|
654
|
+
const invokes = origins.filter(origin => origin.role === "invoke-option");
|
|
655
|
+
if (reported?.role === "invoke-option" && !invokes.includes(reported))
|
|
656
|
+
invokes.push(reported);
|
|
657
|
+
invokes.sort((left, right) => originRank(left) - originRank(right));
|
|
658
|
+
const selectedInvoke = invokes[0];
|
|
659
|
+
if (selectedInvoke)
|
|
660
|
+
return throwingSelection(state, selectedInvoke.signal.reason, selectedInvoke);
|
|
661
|
+
if (captured.kind === "throw")
|
|
662
|
+
return throwingSelection(state, captured.reason, classified);
|
|
663
|
+
return { outcome: { kind: "return", value: captured.value } };
|
|
664
|
+
}
|
|
665
|
+
export function selectRuntimeCancellationOutcome(boundary, captured, observedOrigin) {
|
|
666
|
+
if (!captured || typeof captured !== "object" || captured.kind !== "return" && captured.kind !== "throw") {
|
|
667
|
+
throw new TypeError("A captured return or throw outcome is required");
|
|
668
|
+
}
|
|
669
|
+
if (!boundary || typeof boundary !== "object" || !(boundaryState in boundary)) {
|
|
670
|
+
throw new TypeError("Expected a private cancellation boundary");
|
|
671
|
+
}
|
|
672
|
+
const state = boundary[boundaryState];
|
|
673
|
+
const lineage = state.kind === "link" ? state : state.lineage;
|
|
674
|
+
const origins = visibleOrigins(lineage);
|
|
675
|
+
const root = origins.find(origin => origin.role === "root-caller");
|
|
676
|
+
if (root)
|
|
677
|
+
return throwingSelection(state, root.signal.reason, root);
|
|
678
|
+
const reported = validReport(state, captured);
|
|
679
|
+
const observed = captured.kind === "throw"
|
|
680
|
+
&& observedOrigin !== undefined
|
|
681
|
+
&& origins.includes(observedOrigin)
|
|
682
|
+
&& Object.is(captured.reason, observedOrigin.signal.reason)
|
|
683
|
+
? observedOrigin
|
|
684
|
+
: undefined;
|
|
685
|
+
const classified = reported ?? observed;
|
|
686
|
+
if (captured.kind === "throw" && classified?.role !== "invoke-option") {
|
|
687
|
+
return throwingSelection(state, captured.reason, classified);
|
|
688
|
+
}
|
|
689
|
+
const invokes = origins.filter(origin => origin.role === "invoke-option");
|
|
690
|
+
if (classified?.role === "invoke-option" && !invokes.includes(classified))
|
|
691
|
+
invokes.push(classified);
|
|
692
|
+
invokes.sort((left, right) => originRank(left) - originRank(right));
|
|
693
|
+
const selectedInvoke = invokes[0];
|
|
694
|
+
if (captured.kind === "return") {
|
|
695
|
+
return selectedInvoke
|
|
696
|
+
? throwingSelection(state, selectedInvoke.signal.reason, selectedInvoke)
|
|
697
|
+
: { outcome: { kind: "return", value: captured.value } };
|
|
698
|
+
}
|
|
699
|
+
if (selectedInvoke)
|
|
700
|
+
return throwingSelection(state, selectedInvoke.signal.reason, selectedInvoke);
|
|
701
|
+
return throwingSelection(state, captured.reason, classified);
|
|
702
|
+
}
|
|
703
|
+
//# sourceMappingURL=cancellation.js.map
|