@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,49 @@
|
|
|
1
|
+
import { type Configuration } from "./config.js";
|
|
2
|
+
import { type GitObject } from "./codec.js";
|
|
3
|
+
import { type Session } from "./io.js";
|
|
4
|
+
export interface Entry {
|
|
5
|
+
readonly path: string;
|
|
6
|
+
readonly mode: number;
|
|
7
|
+
readonly oid: string;
|
|
8
|
+
readonly stage: number;
|
|
9
|
+
}
|
|
10
|
+
export interface Commit {
|
|
11
|
+
readonly tree: string;
|
|
12
|
+
readonly parents: readonly string[];
|
|
13
|
+
readonly message: Buffer;
|
|
14
|
+
}
|
|
15
|
+
export interface Working {
|
|
16
|
+
readonly mode: number;
|
|
17
|
+
readonly oid: string;
|
|
18
|
+
readonly bytes: Buffer;
|
|
19
|
+
}
|
|
20
|
+
export declare function refName(name: string): void;
|
|
21
|
+
export declare class Repository {
|
|
22
|
+
readonly session: Session;
|
|
23
|
+
readonly gitdir: string;
|
|
24
|
+
readonly root: string | undefined;
|
|
25
|
+
readonly cwd: string;
|
|
26
|
+
private readonly refs;
|
|
27
|
+
private readonly peeled;
|
|
28
|
+
private readonly objects;
|
|
29
|
+
private readonly commits;
|
|
30
|
+
private indexData;
|
|
31
|
+
private readonly names;
|
|
32
|
+
private packs;
|
|
33
|
+
config: Configuration;
|
|
34
|
+
private constructor();
|
|
35
|
+
static discover(session: Session, cwd: string): Promise<Repository>;
|
|
36
|
+
private admit;
|
|
37
|
+
private refFile;
|
|
38
|
+
private resolveRef;
|
|
39
|
+
object(oid: string): Promise<GitObject>;
|
|
40
|
+
private headers;
|
|
41
|
+
peel(oid: string, expected?: "commit" | "tree" | "blob"): Promise<string>;
|
|
42
|
+
commit(oid: string): Promise<Commit>;
|
|
43
|
+
revision(expression: string, unborn?: boolean): Promise<string | undefined>;
|
|
44
|
+
tree(oid: string | undefined): Promise<Map<string, Entry>>;
|
|
45
|
+
index(): Promise<Entry[]>;
|
|
46
|
+
working(entry: Entry): Promise<Working | undefined>;
|
|
47
|
+
abbreviation(oid: string): Promise<string>;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../src/commands/git/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAA0C,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAI/E,MAAM,WAAW,KAAK;IAAG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE;AACrH,MAAM,WAAW,MAAM;IAAG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE;AAChH,MAAM,WAAW,OAAO;IAAG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE;AAKhG,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAG1C;AAED,qBAAa,UAAU;IAUD,QAAQ,CAAC,OAAO,E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G,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAQjD"}
|
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
import { configuration, environment } from "./config.js";
|
|
2
|
+
import { inflateObject } from "./codec.js";
|
|
3
|
+
import { compare, component, objectPath, parent } from "./io.js";
|
|
4
|
+
import { GIT_LIMITS, GitFailure, demand } from "./limits.js";
|
|
5
|
+
import { PackCatalogue } from "./pack.js";
|
|
6
|
+
const oidPattern = /^[0-9a-f]{40}$/;
|
|
7
|
+
const modes = new Set([0o100644, 0o100755, 0o120000]);
|
|
8
|
+
export function refName(name) {
|
|
9
|
+
demand(name.startsWith("refs/") && !name.endsWith(".") && !name.includes("..") && !name.includes("@{") && !/[\x00-\x20\x7f~^:?*\[\\]/.test(name), "invalid Git ref name");
|
|
10
|
+
for (const part of name.split("/")) {
|
|
11
|
+
component(part);
|
|
12
|
+
demand(!part.startsWith(".") && !part.endsWith(".lock"), "invalid Git ref component");
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export class Repository {
|
|
16
|
+
session;
|
|
17
|
+
gitdir;
|
|
18
|
+
root;
|
|
19
|
+
cwd;
|
|
20
|
+
refs = new Map();
|
|
21
|
+
peeled = new Map();
|
|
22
|
+
objects = new Map();
|
|
23
|
+
commits = new Map();
|
|
24
|
+
indexData;
|
|
25
|
+
names = [];
|
|
26
|
+
packs;
|
|
27
|
+
config;
|
|
28
|
+
constructor(session, gitdir, root, cwd) {
|
|
29
|
+
this.session = session;
|
|
30
|
+
this.gitdir = gitdir;
|
|
31
|
+
this.root = root;
|
|
32
|
+
this.cwd = cwd;
|
|
33
|
+
}
|
|
34
|
+
static async discover(session, cwd) {
|
|
35
|
+
environment(session.context.env);
|
|
36
|
+
let cursor = session.path("/", cwd);
|
|
37
|
+
for (let depth = 0; depth <= GIT_LIMITS.maxDepth; depth++) {
|
|
38
|
+
await session.safe(cursor);
|
|
39
|
+
demand((await session.stat(cursor))?.type === "directory", "Git cwd is not a directory");
|
|
40
|
+
const marker = session.path(cursor, ".git");
|
|
41
|
+
const git = await session.stat(marker);
|
|
42
|
+
if (git) {
|
|
43
|
+
demand(git.type === "directory", "M1A gitfile/symlink routing unsupported");
|
|
44
|
+
const repository = new Repository(session, marker, cursor, cwd);
|
|
45
|
+
await repository.admit();
|
|
46
|
+
return repository;
|
|
47
|
+
}
|
|
48
|
+
if (await session.stat(session.path(cursor, "HEAD")) && await session.stat(session.path(cursor, "objects"))) {
|
|
49
|
+
const repository = new Repository(session, cursor, undefined, cwd);
|
|
50
|
+
await repository.admit();
|
|
51
|
+
return repository;
|
|
52
|
+
}
|
|
53
|
+
if (cursor === session.boundary || cursor === "/")
|
|
54
|
+
break;
|
|
55
|
+
cursor = parent(cursor);
|
|
56
|
+
}
|
|
57
|
+
throw new GitFailure("not a supported Git repository");
|
|
58
|
+
}
|
|
59
|
+
async admit() {
|
|
60
|
+
const session = this.session;
|
|
61
|
+
await session.safe(this.gitdir);
|
|
62
|
+
demand((await session.stat(session.path(this.gitdir, "HEAD")))?.type === "file", "missing/invalid Git HEAD");
|
|
63
|
+
for (const name of ["commondir", "gitdir", "config.worktree", "worktrees", "shallow", "info/grafts", "objects/info/alternates", "objects/info/http-alternates", "refs/replace", "reftable"]) {
|
|
64
|
+
demand(!(await session.stat(session.path(this.gitdir, name))), `M1A unsupported storage: ${name}`);
|
|
65
|
+
}
|
|
66
|
+
this.config = await configuration(session, this.gitdir, this.root === undefined);
|
|
67
|
+
const objects = session.path(this.gitdir, "objects");
|
|
68
|
+
for (const entry of await session.list(objects)) {
|
|
69
|
+
const directory = session.path(objects, entry.name);
|
|
70
|
+
demand(entry.type === "directory", "M1A unsupported object storage");
|
|
71
|
+
if (entry.name === "pack" || entry.name === "info") {
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
const children = await session.list(directory);
|
|
75
|
+
demand(/^[0-9a-f]{2}$/.test(entry.name), "M1A unsupported object directory");
|
|
76
|
+
for (const child of children) {
|
|
77
|
+
demand(child.type === "file" && /^[0-9a-f]{38}$/.test(child.name), "M1A pack/idx/promisor or invalid loose object member");
|
|
78
|
+
session.charge("maxObjects", 1);
|
|
79
|
+
session.reserve(80);
|
|
80
|
+
this.names.push(entry.name + child.name);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
this.packs = new PackCatalogue(session);
|
|
84
|
+
await this.packs.admit(this.gitdir);
|
|
85
|
+
session.reserve(this.names.length * 16);
|
|
86
|
+
const names = new Set(this.names);
|
|
87
|
+
for (const oid of this.packs.objects.keys()) {
|
|
88
|
+
await session.step();
|
|
89
|
+
if (names.has(oid))
|
|
90
|
+
continue;
|
|
91
|
+
session.charge("maxObjects", 1);
|
|
92
|
+
session.reserve(80);
|
|
93
|
+
names.add(oid);
|
|
94
|
+
this.names.push(oid);
|
|
95
|
+
}
|
|
96
|
+
const packed = await session.read(session.path(this.gitdir, "packed-refs"), GIT_LIMITS.maxMetadataBytes, true, true);
|
|
97
|
+
if (packed) {
|
|
98
|
+
try {
|
|
99
|
+
let preceding;
|
|
100
|
+
for (const line of session.text(packed).split("\n")) {
|
|
101
|
+
await session.step(line.length + 1);
|
|
102
|
+
if (!line || line.startsWith("#"))
|
|
103
|
+
continue;
|
|
104
|
+
if (line.startsWith("^")) {
|
|
105
|
+
demand(preceding && !this.peeled.has(preceding) && oidPattern.test(line.slice(1)), "invalid peeled packed ref");
|
|
106
|
+
this.peeled.set(preceding, line.slice(1));
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
demand(line.length > 41 && line[40] === " " && oidPattern.test(line.slice(0, 40)), "invalid packed ref");
|
|
110
|
+
const name = line.slice(41);
|
|
111
|
+
refName(name);
|
|
112
|
+
demand(!name.startsWith("refs/replace/") && !this.refs.has(name), "unsupported/duplicate packed ref");
|
|
113
|
+
session.charge("maxEntries", 1);
|
|
114
|
+
this.refs.set(name, line.slice(0, 40));
|
|
115
|
+
preceding = name;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
finally {
|
|
119
|
+
session.release(packed);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
const walkRefs = async (prefix, depth) => {
|
|
123
|
+
demand(depth <= GIT_LIMITS.maxDepth, "Git ref depth exceeded");
|
|
124
|
+
const path = session.path(this.gitdir, prefix);
|
|
125
|
+
const stat = await session.stat(path);
|
|
126
|
+
if (!stat)
|
|
127
|
+
return;
|
|
128
|
+
if (stat.type === "directory") {
|
|
129
|
+
for (const entry of await session.list(path))
|
|
130
|
+
await walkRefs(`${prefix}/${entry.name}`, depth + 1);
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
demand(stat.type === "file", "Git ref symlink refused");
|
|
134
|
+
refName(prefix);
|
|
135
|
+
demand(!prefix.startsWith("refs/replace/"), "replace refs unsupported");
|
|
136
|
+
this.refs.set(prefix, await this.refFile(path));
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
await walkRefs("refs", 0);
|
|
140
|
+
this.refs.set("HEAD", await this.refFile(session.path(this.gitdir, "HEAD")));
|
|
141
|
+
for (const name of this.refs.keys())
|
|
142
|
+
await this.resolveRef(name, name === "HEAD");
|
|
143
|
+
}
|
|
144
|
+
async refFile(path) {
|
|
145
|
+
const bytes = (await this.session.read(path, GIT_LIMITS.maxMetadataBytes, false, true));
|
|
146
|
+
try {
|
|
147
|
+
const value = this.session.text(bytes).trim();
|
|
148
|
+
if (value.startsWith("ref: "))
|
|
149
|
+
refName(value.slice(5));
|
|
150
|
+
else
|
|
151
|
+
demand(oidPattern.test(value), "invalid loose Git ref");
|
|
152
|
+
return value;
|
|
153
|
+
}
|
|
154
|
+
finally {
|
|
155
|
+
this.session.release(bytes);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
async resolveRef(name, unborn = false) {
|
|
159
|
+
const visited = new Set();
|
|
160
|
+
for (let depth = 0; depth < GIT_LIMITS.maxRefDepth; depth++) {
|
|
161
|
+
await this.session.step();
|
|
162
|
+
demand(!visited.has(name), "cyclic Git symbolic ref");
|
|
163
|
+
visited.add(name);
|
|
164
|
+
const value = this.refs.get(name);
|
|
165
|
+
if (!value) {
|
|
166
|
+
demand(unborn && name.startsWith("refs/heads/"), "missing Git ref");
|
|
167
|
+
return undefined;
|
|
168
|
+
}
|
|
169
|
+
if (value.startsWith("ref: ")) {
|
|
170
|
+
name = value.slice(5);
|
|
171
|
+
continue;
|
|
172
|
+
}
|
|
173
|
+
return value;
|
|
174
|
+
}
|
|
175
|
+
throw new GitFailure("Git ref chain limit exceeded");
|
|
176
|
+
}
|
|
177
|
+
async object(oid) {
|
|
178
|
+
demand(oidPattern.test(oid), "invalid Git object ID");
|
|
179
|
+
const cached = this.objects.get(oid) ?? this.packs?.objects.get(oid);
|
|
180
|
+
if (cached) {
|
|
181
|
+
await this.session.step();
|
|
182
|
+
return cached;
|
|
183
|
+
}
|
|
184
|
+
const path = this.session.path(this.gitdir, `objects/${oid.slice(0, 2)}/${oid.slice(2)}`);
|
|
185
|
+
const compressed = (await this.session.read(path, GIT_LIMITS.maxReadBytes));
|
|
186
|
+
try {
|
|
187
|
+
const object = await inflateObject(this.session, compressed, oid);
|
|
188
|
+
this.objects.set(oid, object);
|
|
189
|
+
return object;
|
|
190
|
+
}
|
|
191
|
+
finally {
|
|
192
|
+
this.session.release(compressed);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
async headers(oid, type) {
|
|
196
|
+
const object = await this.object(oid);
|
|
197
|
+
demand(object.type === type, `Git object is not ${type}`);
|
|
198
|
+
const separator = object.bytes.indexOf("\n\n");
|
|
199
|
+
demand(separator >= 0 && separator <= GIT_LIMITS.maxMetadataBytes, "invalid Git object headers");
|
|
200
|
+
const text = this.session.text(object.bytes.subarray(0, separator));
|
|
201
|
+
demand(!text.includes("\0"), "invalid Git object headers");
|
|
202
|
+
const values = new Map();
|
|
203
|
+
for (const line of text.split("\n")) {
|
|
204
|
+
await this.session.step(line.length + 1);
|
|
205
|
+
const split = line.indexOf(" ");
|
|
206
|
+
demand(split > 0, "invalid/continued Git header");
|
|
207
|
+
const key = line.slice(0, split), value = line.slice(split + 1);
|
|
208
|
+
const allowed = type === "commit" ? ["tree", "parent", "author", "committer"] : ["object", "type", "tag", "tagger"];
|
|
209
|
+
demand(allowed.includes(key), `unsupported Git header: ${key}`);
|
|
210
|
+
const previous = values.get(key) ?? [];
|
|
211
|
+
demand(key === "parent" || previous.length === 0, "duplicate Git object header");
|
|
212
|
+
previous.push(value);
|
|
213
|
+
values.set(key, previous);
|
|
214
|
+
}
|
|
215
|
+
return { values, message: object.bytes.subarray(separator + 2) };
|
|
216
|
+
}
|
|
217
|
+
async peel(oid, expected) {
|
|
218
|
+
const seen = new Set();
|
|
219
|
+
for (let depth = 0; depth < GIT_LIMITS.maxRefDepth; depth++) {
|
|
220
|
+
await this.session.step();
|
|
221
|
+
demand(!seen.has(oid), "cyclic Git tag");
|
|
222
|
+
seen.add(oid);
|
|
223
|
+
const object = await this.object(oid);
|
|
224
|
+
if (object.type !== "tag") {
|
|
225
|
+
demand(!expected || object.type === expected, `Git object type must be ${expected}`);
|
|
226
|
+
return oid;
|
|
227
|
+
}
|
|
228
|
+
const { values } = await this.headers(oid, "tag");
|
|
229
|
+
const target = values.get("object")?.[0], type = values.get("type")?.[0], tag = values.get("tag")?.[0];
|
|
230
|
+
demand(target && oidPattern.test(target) && type && ["blob", "tree", "commit", "tag"].includes(type) && tag && !/[\x00-\x20\x7f]/.test(tag), "invalid annotated Git tag");
|
|
231
|
+
if (values.has("tagger"))
|
|
232
|
+
identity(values.get("tagger")[0]);
|
|
233
|
+
demand((await this.object(target)).type === type, "Git tag target type mismatch");
|
|
234
|
+
oid = target;
|
|
235
|
+
}
|
|
236
|
+
throw new GitFailure("Git tag depth exceeded");
|
|
237
|
+
}
|
|
238
|
+
async commit(oid) {
|
|
239
|
+
oid = await this.peel(oid, "commit");
|
|
240
|
+
const cached = this.commits.get(oid);
|
|
241
|
+
if (cached)
|
|
242
|
+
return cached;
|
|
243
|
+
this.session.charge("maxCommits", 1);
|
|
244
|
+
const { values, message } = await this.headers(oid, "commit");
|
|
245
|
+
const tree = values.get("tree")?.[0], author = values.get("author")?.[0], committer = values.get("committer")?.[0];
|
|
246
|
+
demand(tree && oidPattern.test(tree) && author && committer, "missing Git commit headers");
|
|
247
|
+
identity(author);
|
|
248
|
+
identity(committer);
|
|
249
|
+
const parents = values.get("parent") ?? [];
|
|
250
|
+
demand(parents.every(parent => oidPattern.test(parent)), "invalid Git parent ID");
|
|
251
|
+
demand((await this.object(tree)).type === "tree", "commit tree type mismatch");
|
|
252
|
+
const result = { tree, parents, message };
|
|
253
|
+
this.commits.set(oid, result);
|
|
254
|
+
return result;
|
|
255
|
+
}
|
|
256
|
+
async revision(expression, unborn = false) {
|
|
257
|
+
const split = expression.search(/[~^]/);
|
|
258
|
+
const name = split < 0 ? expression : expression.slice(0, split);
|
|
259
|
+
demand(name.length > 0 && !name.includes("@{") && !name.includes(":"), "unsupported Git revision");
|
|
260
|
+
let oid;
|
|
261
|
+
if (oidPattern.test(name))
|
|
262
|
+
oid = name;
|
|
263
|
+
else if (name === "HEAD" || name.startsWith("refs/")) {
|
|
264
|
+
if (name !== "HEAD")
|
|
265
|
+
refName(name);
|
|
266
|
+
oid = await this.resolveRef(name, unborn && name === "HEAD");
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
const choices = [`refs/heads/${name}`, `refs/tags/${name}`].filter(ref => this.refs.has(ref));
|
|
270
|
+
demand(choices.length === 1, "unknown/ambiguous Git revision");
|
|
271
|
+
oid = await this.resolveRef(choices[0]);
|
|
272
|
+
}
|
|
273
|
+
if (!oid) {
|
|
274
|
+
demand(split < 0, "unborn HEAD has no ancestry");
|
|
275
|
+
return undefined;
|
|
276
|
+
}
|
|
277
|
+
await this.object(oid);
|
|
278
|
+
let offset = split < 0 ? expression.length : split;
|
|
279
|
+
while (offset < expression.length) {
|
|
280
|
+
const operator = expression[offset++];
|
|
281
|
+
demand(operator === "^" || operator === "~", "unsupported Git revision suffix");
|
|
282
|
+
const start = offset;
|
|
283
|
+
while (offset < expression.length && expression.charCodeAt(offset) >= 48 && expression.charCodeAt(offset) <= 57)
|
|
284
|
+
offset++;
|
|
285
|
+
const text = expression.slice(start, offset);
|
|
286
|
+
demand(text.length <= 4, "Git ancestry count exceeded");
|
|
287
|
+
const count = text ? Number(text) : 1;
|
|
288
|
+
demand(count <= GIT_LIMITS.maxCommits, "Git ancestry count exceeded");
|
|
289
|
+
oid = await this.peel(oid, "commit");
|
|
290
|
+
if (operator === "^") {
|
|
291
|
+
const commit = await this.commit(oid);
|
|
292
|
+
if (count) {
|
|
293
|
+
demand(commit.parents[count - 1], "missing Git parent");
|
|
294
|
+
oid = commit.parents[count - 1];
|
|
295
|
+
await this.peel(oid, "commit");
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
else
|
|
299
|
+
for (let turn = 0; turn < count; turn++) {
|
|
300
|
+
const commit = await this.commit(oid);
|
|
301
|
+
demand(commit.parents[0], "missing Git first parent");
|
|
302
|
+
oid = commit.parents[0];
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
await this.object(oid);
|
|
306
|
+
return oid;
|
|
307
|
+
}
|
|
308
|
+
async tree(oid) {
|
|
309
|
+
const result = new Map();
|
|
310
|
+
if (!oid)
|
|
311
|
+
return result;
|
|
312
|
+
oid = await this.peel(oid);
|
|
313
|
+
if ((await this.object(oid)).type === "commit")
|
|
314
|
+
oid = (await this.commit(oid)).tree;
|
|
315
|
+
const visit = async (treeId, prefix, depth, ancestors) => {
|
|
316
|
+
demand(depth <= GIT_LIMITS.maxDepth && !ancestors.has(treeId), "Git tree cycle/depth exceeded");
|
|
317
|
+
const object = await this.object(treeId);
|
|
318
|
+
demand(object.type === "tree", "Git tree type mismatch");
|
|
319
|
+
const next = new Set(ancestors);
|
|
320
|
+
next.add(treeId);
|
|
321
|
+
let offset = 0, previous;
|
|
322
|
+
const siblings = new Set();
|
|
323
|
+
while (offset < object.bytes.length) {
|
|
324
|
+
const space = object.bytes.indexOf(32, offset), zero = object.bytes.indexOf(0, space + 1);
|
|
325
|
+
demand(space > offset && space - offset <= 6 && zero > space && zero + 21 <= object.bytes.length, "truncated Git tree record");
|
|
326
|
+
const rawMode = object.bytes.subarray(offset, space).toString("ascii");
|
|
327
|
+
demand(["40000", "100644", "100755", "120000"].includes(rawMode), "unsupported Git tree mode/submodule");
|
|
328
|
+
const mode = Number.parseInt(rawMode, 8), name = this.session.text(object.bytes.subarray(space + 1, zero));
|
|
329
|
+
component(name);
|
|
330
|
+
objectPath(name);
|
|
331
|
+
demand(!siblings.has(name), "duplicate Git tree name");
|
|
332
|
+
siblings.add(name);
|
|
333
|
+
const ordering = Buffer.from(name + (mode === 0o40000 ? "/" : "\0"));
|
|
334
|
+
demand(!previous || Buffer.compare(previous, ordering) < 0, "unsorted Git tree");
|
|
335
|
+
previous = ordering;
|
|
336
|
+
const childId = object.bytes.subarray(zero + 1, zero + 21).toString("hex");
|
|
337
|
+
const path = prefix + name;
|
|
338
|
+
this.session.charge("maxEntries", 1);
|
|
339
|
+
this.session.reserve(80 + Buffer.byteLength(path) * 2);
|
|
340
|
+
await this.session.step(zero + 21 - offset);
|
|
341
|
+
offset = zero + 21;
|
|
342
|
+
demand((await this.object(childId)).type === (mode === 0o40000 ? "tree" : "blob"), "Git tree entry target type mismatch");
|
|
343
|
+
if (mode === 0o40000)
|
|
344
|
+
await visit(childId, path + "/", depth + 1, next);
|
|
345
|
+
else
|
|
346
|
+
result.set(path, { path, mode, oid: childId, stage: 0 });
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
await visit(oid, "", 0, new Set());
|
|
350
|
+
return result;
|
|
351
|
+
}
|
|
352
|
+
async index() {
|
|
353
|
+
demand(this.root, "Git index/worktree unavailable in bare repository");
|
|
354
|
+
if (this.indexData)
|
|
355
|
+
return this.indexData;
|
|
356
|
+
const bytes = await this.session.read(this.session.path(this.gitdir, "index"), GIT_LIMITS.maxIndexBytes, true, true);
|
|
357
|
+
if (!bytes)
|
|
358
|
+
return this.indexData = [];
|
|
359
|
+
try {
|
|
360
|
+
demand(bytes.length >= 32 && bytes.subarray(0, 4).toString() === "DIRC", "invalid Git index header");
|
|
361
|
+
const version = bytes.readUInt32BE(4), count = bytes.readUInt32BE(8), end = bytes.length - 20;
|
|
362
|
+
demand(version === 2 || version === 3, "unsupported Git index version");
|
|
363
|
+
demand(await this.session.hash(bytes.subarray(0, end)) === bytes.subarray(end).toString("hex"), "Git index checksum mismatch");
|
|
364
|
+
demand(count <= Math.floor((end - 12) / 64), "invalid Git index count");
|
|
365
|
+
this.session.charge("maxEntries", count);
|
|
366
|
+
this.session.reserve(count * 80);
|
|
367
|
+
const entries = [];
|
|
368
|
+
let offset = 12;
|
|
369
|
+
let previous;
|
|
370
|
+
for (let index = 0; index < count; index++) {
|
|
371
|
+
const start = offset;
|
|
372
|
+
demand(offset + 62 <= end, "truncated Git index entry");
|
|
373
|
+
const mode = bytes.readUInt32BE(offset + 24), oid = bytes.subarray(offset + 40, offset + 60).toString("hex"), flags = bytes.readUInt16BE(offset + 60);
|
|
374
|
+
demand(modes.has(mode), "unsupported Git index mode/submodule");
|
|
375
|
+
demand(!(flags & 0x8000), "assume-valid index entries unsupported");
|
|
376
|
+
offset += 62;
|
|
377
|
+
if (flags & 0x4000) {
|
|
378
|
+
demand(version === 3 && offset + 2 <= end && bytes.readUInt16BE(offset) === 0, "unsupported Git extended index flags");
|
|
379
|
+
offset += 2;
|
|
380
|
+
}
|
|
381
|
+
const zero = bytes.indexOf(0, offset);
|
|
382
|
+
demand(zero >= offset && zero < end && zero - offset <= GIT_LIMITS.maxPathBytes, "invalid Git index path");
|
|
383
|
+
const encodedLength = flags & 0xfff;
|
|
384
|
+
demand(encodedLength === Math.min(zero - offset, 0xfff), "Git index path length mismatch");
|
|
385
|
+
const path = this.session.text(bytes.subarray(offset, zero));
|
|
386
|
+
objectPath(path);
|
|
387
|
+
const stage = (flags >>> 12) & 3;
|
|
388
|
+
const entry = { path, mode, oid, stage };
|
|
389
|
+
if (previous)
|
|
390
|
+
demand(compare(previous.path, path) < 0 || previous.path === path && previous.stage > 0 && stage > previous.stage, "unsorted/duplicate/mixed-stage Git index");
|
|
391
|
+
entries.push(entry);
|
|
392
|
+
previous = entry;
|
|
393
|
+
offset = start + Math.ceil((zero - start + 1) / 8) * 8;
|
|
394
|
+
demand(offset <= end && bytes.subarray(zero, offset).every(byte => byte === 0), "invalid Git index padding");
|
|
395
|
+
await this.session.step(offset - start);
|
|
396
|
+
}
|
|
397
|
+
while (offset < end) {
|
|
398
|
+
demand(offset + 8 <= end, "truncated Git index extension");
|
|
399
|
+
const signature = bytes.subarray(offset, offset + 4).toString("ascii"), size = bytes.readUInt32BE(offset + 4);
|
|
400
|
+
demand(/^[A-Z][A-Za-z0-9]{3}$/.test(signature), "unsupported mandatory Git index extension");
|
|
401
|
+
demand(size <= end - offset - 8, "truncated Git index extension body");
|
|
402
|
+
offset += 8 + size;
|
|
403
|
+
await this.session.step(size + 8);
|
|
404
|
+
}
|
|
405
|
+
const paths = new Set(entries.map(entry => entry.path));
|
|
406
|
+
for (const path of paths) {
|
|
407
|
+
let directory = parent(path);
|
|
408
|
+
while (directory !== "." && directory !== "/") {
|
|
409
|
+
demand(!paths.has(directory), "Git index file/directory collision");
|
|
410
|
+
directory = parent(directory);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
return this.indexData = entries;
|
|
414
|
+
}
|
|
415
|
+
finally {
|
|
416
|
+
this.session.release(bytes);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
async working(entry) {
|
|
420
|
+
demand(this.root, "bare Git repository has no working files");
|
|
421
|
+
const path = this.session.path(this.root, entry.path);
|
|
422
|
+
let ancestor = this.root;
|
|
423
|
+
for (const name of entry.path.split("/").slice(0, -1)) {
|
|
424
|
+
ancestor = this.session.path(ancestor, name);
|
|
425
|
+
const stat = await this.session.stat(ancestor);
|
|
426
|
+
if (!stat || stat.type === "file")
|
|
427
|
+
return undefined;
|
|
428
|
+
demand(stat.type === "directory", "Git working path ancestor symlink refused");
|
|
429
|
+
}
|
|
430
|
+
await this.session.safe(path, true);
|
|
431
|
+
const stat = await this.session.stat(path);
|
|
432
|
+
if (!stat || stat.type === "directory")
|
|
433
|
+
return undefined;
|
|
434
|
+
this.session.charge("maxEntries", 1);
|
|
435
|
+
let bytes, mode;
|
|
436
|
+
if (stat.type === "symlink") {
|
|
437
|
+
demand(this.session.context.fs.readlink, "Git symlink text unavailable");
|
|
438
|
+
const text = await this.session.call(() => this.session.context.fs.readlink(path, { signal: this.session.operation.signal }));
|
|
439
|
+
demand(Buffer.from(text).toString("utf8") === text && Buffer.byteLength(text) <= GIT_LIMITS.maxWorkingFileBytes, "invalid Git symlink text");
|
|
440
|
+
this.session.charge("maxReadBytes", Buffer.byteLength(text));
|
|
441
|
+
bytes = this.session.copy(Buffer.from(text));
|
|
442
|
+
mode = 0o120000;
|
|
443
|
+
}
|
|
444
|
+
else {
|
|
445
|
+
demand(!this.config.fileMode || this.session.context.fs.capabilities.permissions === true, "Git executable-mode metadata unavailable; core.fileMode=false required");
|
|
446
|
+
bytes = (await this.session.read(path, GIT_LIMITS.maxWorkingFileBytes));
|
|
447
|
+
mode = this.config.fileMode ? stat.mode & 0o111 ? 0o100755 : 0o100644 : entry.mode === 0o120000 ? 0o100644 : entry.mode;
|
|
448
|
+
}
|
|
449
|
+
return { bytes, mode, oid: await this.session.hash(bytes, "blob") };
|
|
450
|
+
}
|
|
451
|
+
async abbreviation(oid) {
|
|
452
|
+
for (let length = 7; length <= 40; length++) {
|
|
453
|
+
const prefix = oid.slice(0, length);
|
|
454
|
+
let matches = 0;
|
|
455
|
+
for (const name of this.names) {
|
|
456
|
+
await this.session.step();
|
|
457
|
+
if (name !== oid && name.startsWith(prefix))
|
|
458
|
+
matches++;
|
|
459
|
+
}
|
|
460
|
+
if (matches === 0)
|
|
461
|
+
return prefix;
|
|
462
|
+
}
|
|
463
|
+
throw new GitFailure("Git abbreviation census conflict");
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
function identity(value) {
|
|
467
|
+
const split = value.lastIndexOf("> "), bracket = value.lastIndexOf(" <", split);
|
|
468
|
+
demand(bracket > 0 && split > bracket && !/[\x00-\x1f\x7f]/.test(value), "invalid Git identity");
|
|
469
|
+
const parts = value.slice(split + 2).split(" ");
|
|
470
|
+
demand(parts.length === 2 && /^-?(0|[1-9][0-9]{0,15})$/.test(parts[0]) && Number.isSafeInteger(Number(parts[0])), "invalid Git timestamp");
|
|
471
|
+
demand(/^[+-][0-9]{4}$/.test(parts[1]) && Number(parts[1].slice(1, 3)) <= 23 && Number(parts[1].slice(3)) <= 59, "invalid Git timezone");
|
|
472
|
+
}
|
|
473
|
+
//# sourceMappingURL=repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository.js","sourceRoot":"","sources":["../../../src/commands/git/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAsB,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAkB,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAgB,MAAM,SAAS,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAM1C,MAAM,UAAU,GAAG,gBAAgB,CAAC;AACpC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;AAEtD,MAAM,UAAU,OAAO,CAAC,IAAY;IAClC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CA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AC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,IAAI,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,uBAAuB,CAAC,CAAC;IAC5I,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,sBAAsB,CAAC,CAAC;AAC9I,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CommandDefinition, VirtualShellPlugin } from "../../contracts/index.js";
|
|
2
|
+
import type { RegexExecutionOptions } from "../regex-execution/protocol.js";
|
|
3
|
+
export interface GrepAliasOptions {
|
|
4
|
+
readonly regex?: RegexExecutionOptions;
|
|
5
|
+
readonly replace?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function createGrepAliasCommands(options?: GrepAliasOptions): readonly CommandDefinition[];
|
|
8
|
+
export declare function egrepCommand(options?: GrepAliasOptions): CommandDefinition;
|
|
9
|
+
export declare function fgrepCommand(options?: GrepAliasOptions): CommandDefinition;
|
|
10
|
+
export declare function grepAliasCommands(options?: GrepAliasOptions): VirtualShellPlugin;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/grep-aliases/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEtF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE5E,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,CAAC,EAAE,qBAAqB,CAAC;IACvC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAC5B;AA4BD,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,gBAAqB,GAAG,SAAS,iBAAiB,EAAE,CAGpG;AAED,wBAAgB,YAAY,CAAC,OAAO,GAAE,gBAAqB,GAAG,iBAAiB,CAE9E;AAED,wBAAgB,YAAY,CAAC,OAAO,GAAE,gBAAqB,GAAG,iBAAiB,CAE9E;AAED,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,gBAAqB,GAAG,kBAAkB,CAWpF"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { grepCommands } from "../grep.js";
|
|
2
|
+
function alias(name, grep) {
|
|
3
|
+
return {
|
|
4
|
+
name,
|
|
5
|
+
execute: context => {
|
|
6
|
+
const stdinIsDefault = context.stdinIsDefault;
|
|
7
|
+
const invoke = context.invoke;
|
|
8
|
+
const registerCleanup = context.registerCleanup;
|
|
9
|
+
return grep.execute({
|
|
10
|
+
...context,
|
|
11
|
+
command: name,
|
|
12
|
+
args: [name === "egrep" ? "-E" : "-F", ...context.args],
|
|
13
|
+
stdin: context.stdin,
|
|
14
|
+
stdout: context.stdout,
|
|
15
|
+
stderr: context.stderr,
|
|
16
|
+
cwd: context.cwd,
|
|
17
|
+
env: context.env,
|
|
18
|
+
fs: context.fs,
|
|
19
|
+
signal: context.signal,
|
|
20
|
+
...(stdinIsDefault === undefined ? {} : { stdinIsDefault }),
|
|
21
|
+
...(invoke === undefined ? {} : { invoke: invoke.bind(context) }),
|
|
22
|
+
...(registerCleanup === undefined ? {} : { registerCleanup: registerCleanup.bind(context) }),
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export function createGrepAliasCommands(options = {}) {
|
|
28
|
+
const grep = grepCommands(options.regex)[0];
|
|
29
|
+
return [alias("egrep", grep), alias("fgrep", grep)];
|
|
30
|
+
}
|
|
31
|
+
export function egrepCommand(options = {}) {
|
|
32
|
+
return alias("egrep", grepCommands(options.regex)[0]);
|
|
33
|
+
}
|
|
34
|
+
export function fgrepCommand(options = {}) {
|
|
35
|
+
return alias("fgrep", grepCommands(options.regex)[0]);
|
|
36
|
+
}
|
|
37
|
+
export function grepAliasCommands(options = {}) {
|
|
38
|
+
return {
|
|
39
|
+
name: "grep-alias-commands",
|
|
40
|
+
setup(host) {
|
|
41
|
+
const definitions = createGrepAliasCommands(options);
|
|
42
|
+
if (!options.replace)
|
|
43
|
+
for (const definition of definitions) {
|
|
44
|
+
if (host.commands.has(definition.name))
|
|
45
|
+
throw new Error(`Command already registered: ${definition.name}`);
|
|
46
|
+
}
|
|
47
|
+
for (const definition of definitions)
|
|
48
|
+
host.commands.register(definition, { replace: options.replace ?? false });
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=index.js.map
|