projen 0.99.74 → 0.99.75
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/.jsii +854 -429
- package/lib/ai-instructions.js +2 -2
- package/lib/awscdk/auto-discover.js +6 -6
- package/lib/awscdk/awscdk-app-java.js +1 -1
- package/lib/awscdk/awscdk-app-py.js +1 -1
- package/lib/awscdk/awscdk-app-ts.js +1 -1
- package/lib/awscdk/awscdk-construct.js +2 -2
- package/lib/awscdk/awscdk-deps-java.js +1 -1
- package/lib/awscdk/awscdk-deps-js.js +1 -1
- package/lib/awscdk/awscdk-deps-py.js +1 -1
- package/lib/awscdk/awscdk-deps.js +1 -1
- package/lib/awscdk/cdk-config.js +4 -4
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.js +1 -1
- package/lib/awscdk/internal.d.ts +2 -0
- package/lib/awscdk/lambda-extension.js +1 -1
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/awscdk/private/feature-flags-v2.const.d.ts +3 -1
- package/lib/awscdk/private/feature-flags-v2.const.js +5 -3
- package/lib/build/build-workflow.js +1 -1
- package/lib/cdk/auto-discover-base.js +2 -2
- package/lib/cdk/construct-lib.js +1 -1
- package/lib/cdk/integration-test-base.js +1 -1
- package/lib/cdk/jsii-build.js +1 -1
- package/lib/cdk/jsii-docgen.js +1 -1
- package/lib/cdk/jsii-project.js +1 -1
- package/lib/cdk8s/auto-discover.js +2 -2
- package/lib/cdk8s/cdk8s-app-py.js +1 -1
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.js +1 -1
- package/lib/cdk8s/cdk8s-deps-py.js +1 -1
- package/lib/cdk8s/cdk8s-deps.js +1 -1
- package/lib/cdk8s/integration-test.js +1 -1
- package/lib/cdktf/cdktf-construct.js +1 -1
- package/lib/circleci/circleci.js +1 -1
- package/lib/component.js +1 -1
- package/lib/dependencies.js +1 -1
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose/docker-compose-service.js +1 -1
- package/lib/docker-compose/docker-compose.js +1 -1
- package/lib/file.js +1 -1
- package/lib/gitattributes.js +1 -1
- package/lib/github/actions-provider.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/auto-queue.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/dependency-review.js +1 -1
- package/lib/github/github-credentials.js +1 -1
- package/lib/github/github-project.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/merge-queue.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/pull-request-backport.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow-job.js +1 -1
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflow-actions.js +1 -1
- package/lib/github/workflow-jobs.js +1 -1
- package/lib/github/workflow-steps.js +1 -1
- package/lib/github/workflows.js +1 -1
- package/lib/gitlab/configuration.js +1 -1
- package/lib/gitlab/gitlab-configuration.js +1 -1
- package/lib/gitlab/nested-configuration.js +1 -1
- package/lib/gitpod.js +1 -1
- package/lib/ignore-file.js +1 -1
- package/lib/ini.js +1 -1
- package/lib/java/java-project.js +1 -1
- package/lib/java/junit.js +1 -1
- package/lib/java/maven-compile.js +1 -1
- package/lib/java/maven-packaging.js +1 -1
- package/lib/java/maven-sample.js +1 -1
- package/lib/java/pom.js +2 -2
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/biome/biome-config.d.ts +178 -6
- package/lib/javascript/biome/biome-config.js +46 -2
- package/lib/javascript/biome/biome.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.js +4 -4
- package/lib/javascript/license-checker.js +1 -1
- package/lib/javascript/node-package.js +3 -5
- package/lib/javascript/node-project.js +1 -1
- package/lib/javascript/npm-config.js +1 -1
- package/lib/javascript/prettier.js +1 -1
- package/lib/javascript/projenrc.js +1 -1
- package/lib/javascript/typescript-config.js +2 -2
- package/lib/javascript/upgrade-dependencies.js +2 -2
- package/lib/javascript/yarnrc.js +1 -1
- package/lib/json-patch.js +1 -1
- package/lib/json.js +1 -1
- package/lib/license.js +1 -1
- package/lib/logger.js +1 -1
- package/lib/makefile.js +1 -1
- package/lib/object-file.js +1 -1
- package/lib/project-build.js +1 -1
- package/lib/project-tree.js +1 -1
- package/lib/project.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.js +2 -2
- package/lib/projenrc.js +1 -1
- package/lib/python/pip.js +3 -5
- package/lib/python/poetry.js +5 -7
- package/lib/python/projenrc.js +1 -1
- package/lib/python/pyproject-toml-file.js +1 -1
- package/lib/python/pytest-sample.js +1 -1
- package/lib/python/pytest.js +1 -1
- package/lib/python/python-project.js +1 -1
- package/lib/python/python-sample.js +1 -1
- package/lib/python/requirements-file.js +1 -1
- package/lib/python/setuppy.js +1 -1
- package/lib/python/setuptools.js +1 -1
- package/lib/python/uv.js +4 -6
- package/lib/python/venv.js +1 -1
- package/lib/readme.js +1 -1
- package/lib/release/publisher.js +1 -1
- package/lib/release/release-trigger.js +1 -1
- package/lib/release/release.js +1 -1
- package/lib/renovatebot.js +1 -1
- package/lib/run-task.cjs +26 -21
- package/lib/sample-file.js +2 -2
- package/lib/semver.js +1 -1
- package/lib/source-code.js +1 -1
- package/lib/task-runtime.js +28 -9
- package/lib/task.js +1 -1
- package/lib/tasks.d.ts +15 -0
- package/lib/tasks.js +17 -2
- package/lib/testing.js +1 -1
- package/lib/textfile.js +1 -1
- package/lib/toml.js +1 -1
- package/lib/typescript/projenrc-ts.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +6 -6
- package/lib/version.js +2 -2
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/extensions.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/settings.js +1 -1
- package/lib/vscode/vscode.js +1 -1
- package/lib/web/next.js +3 -3
- package/lib/web/postcss.js +1 -1
- package/lib/web/react.js +4 -4
- package/lib/web/tailwind.js +1 -1
- package/lib/xmlfile.js +1 -1
- package/lib/yaml.js +1 -1
- package/node_modules/{shx → dax}/LICENSE +2 -2
- package/node_modules/dax/README.md +39 -0
- package/node_modules/dax/esm/_dnt.polyfills.d.ts +81 -0
- package/node_modules/dax/esm/_dnt.polyfills.d.ts.map +1 -0
- package/node_modules/dax/esm/_dnt.shims.d.ts +27 -0
- package/node_modules/dax/esm/_dnt.shims.d.ts.map +1 -0
- package/node_modules/dax/esm/_dnt.test_shims.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.d.ts +2 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.internal.d.ts +68 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.internal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/mod.d.ts +112 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/_fs.d.ts +170 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/_fs.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/mod.d.ts +404 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/path.d.ts +12 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/path.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/internal.d.ts +8 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/internal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/mod.d.ts +16 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/byteRingBuffer.d.ts +20 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/byteRingBuffer.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/command.d.ts +677 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/command.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commandHandler.d.ts +45 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commandHandler.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/args.d.ts +7 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/args.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cat.d.ts +9 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cat.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cd.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cd.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cpMv.d.ts +25 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cpMv.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/echo.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/echo.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/executable.d.ts +14 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/executable.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/exit.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/exit.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/export.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/export.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/mkdir.d.ts +10 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/mkdir.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/printenv.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/printenv.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/pwd.d.ts +9 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/pwd.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/rm.d.ts +12 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/rm.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/set.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/set.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/shopt.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/shopt.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/sleep.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/sleep.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/test.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/test.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/touch.d.ts +8 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/touch.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/unset.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/unset.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/which.d.ts +7 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/which.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/common.d.ts +85 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/common.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/dollar.d.ts +30 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/dollar.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/fsFile.d.ts +62 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/fsFile.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/glob.d.ts +23 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/glob.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.d.ts +2 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.internal.d.ts +19 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.internal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lineRingBuffer.d.ts +17 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lineRingBuffer.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/pipes.d.ts +396 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/pipes.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/result.d.ts +92 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/result.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/shell.d.ts +210 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/shell.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/signal.d.ts +3 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/signal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/spawn.d.ts +21 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/spawn.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/streams.d.ts +35 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/streams.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/which/0.7.0/mod.d.ts +81 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/which/0.7.0/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/which-runtime/0.2.1/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/almost_equals.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/array_includes.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/assert.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/assertion_error.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/equal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/equals.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/exists.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/fail.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/false.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/greater.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/greater_or_equal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/instance_of.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/is_error.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/less.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/less_or_equal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/match.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/not_equals.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/not_instance_of.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/not_match.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/not_strict_equals.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/object_match.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/rejects.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/strict_equals.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/string_includes.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/throws.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/unimplemented.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/unreachable.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts +41 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts +700 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/_os.d.ts +2 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/build_message.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/diff.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/diff_str.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/format.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/os.d.ts +3 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/os.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/styles.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/types.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/_common.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/buffer.d.ts +321 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/buffer.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/reader_from_stream_reader.d.ts +21 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/reader_from_stream_reader.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/to_writable_stream.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/types.d.ts +146 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/types.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/write_all.d.ts +52 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/write_all.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/_common/glob_to_reg_exp.d.ts +35 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/glob_to_regexp.d.ts +77 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/posix/glob_to_regexp.d.ts +72 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/posix/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/windows/glob_to_regexp.d.ts +71 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/windows/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/esm/mod.d.ts +600 -0
- package/node_modules/dax/esm/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/mod.js +12187 -0
- package/node_modules/dax/esm/mod.test.d.ts.map +1 -0
- package/node_modules/dax/esm/package.json +3 -0
- package/node_modules/dax/esm/src/common.d.ts +15 -0
- package/node_modules/dax/esm/src/common.d.ts.map +1 -0
- package/node_modules/dax/esm/src/common.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/alert.d.ts +25 -0
- package/node_modules/dax/esm/src/console/alert.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/alert.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/confirm.d.ts +27 -0
- package/node_modules/dax/esm/src/console/confirm.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/confirm.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/logger.d.ts +13 -0
- package/node_modules/dax/esm/src/console/logger.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/mod.d.ts +14 -0
- package/node_modules/dax/esm/src/console/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/multiSelect.d.ts +31 -0
- package/node_modules/dax/esm/src/console/multiSelect.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/multiSelect.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/progress.d.ts +57 -0
- package/node_modules/dax/esm/src/console/progress.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/progress.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/prompt.d.ts +46 -0
- package/node_modules/dax/esm/src/console/prompt.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/prompt.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/select.d.ts +26 -0
- package/node_modules/dax/esm/src/console/select.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/select.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/testUtils.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/ttyFallback.d.ts +19 -0
- package/node_modules/dax/esm/src/console/ttyFallback.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/utils.d.ts +47 -0
- package/node_modules/dax/esm/src/console/utils.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/utils.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/request.d.ts +306 -0
- package/node_modules/dax/esm/src/request.d.ts.map +1 -0
- package/node_modules/dax/esm/src/request.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/test/server.common.d.ts.map +1 -0
- package/node_modules/dax/esm/src/test/server.node.d.ts.map +1 -0
- package/node_modules/dax/esm/src/vendor/outdent.d.ts +34 -0
- package/node_modules/dax/esm/src/vendor/outdent.d.ts.map +1 -0
- package/node_modules/dax/package.json +39 -0
- package/node_modules/dax/script/_dnt.polyfills.d.ts +81 -0
- package/node_modules/dax/script/_dnt.polyfills.d.ts.map +1 -0
- package/node_modules/dax/script/_dnt.shims.d.ts +27 -0
- package/node_modules/dax/script/_dnt.shims.d.ts.map +1 -0
- package/node_modules/dax/script/_dnt.test_shims.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.d.ts +2 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.internal.d.ts +68 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.internal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/mod.d.ts +112 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/_fs.d.ts +170 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/_fs.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/mod.d.ts +404 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/path.d.ts +12 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/path.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/internal.d.ts +8 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/internal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/mod.d.ts +16 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/byteRingBuffer.d.ts +20 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/byteRingBuffer.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/command.d.ts +677 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/command.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commandHandler.d.ts +45 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commandHandler.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/args.d.ts +7 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/args.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cat.d.ts +9 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cat.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cd.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cd.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cpMv.d.ts +25 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cpMv.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/echo.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/echo.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/executable.d.ts +14 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/executable.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/exit.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/exit.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/export.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/export.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/mkdir.d.ts +10 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/mkdir.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/printenv.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/printenv.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/pwd.d.ts +9 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/pwd.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/rm.d.ts +12 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/rm.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/set.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/set.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/shopt.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/shopt.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/sleep.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/sleep.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/test.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/test.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/touch.d.ts +8 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/touch.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/unset.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/unset.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/which.d.ts +7 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/which.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/common.d.ts +85 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/common.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/dollar.d.ts +30 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/dollar.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/fsFile.d.ts +62 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/fsFile.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/glob.d.ts +23 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/glob.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.d.ts +2 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.internal.d.ts +19 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.internal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lineRingBuffer.d.ts +17 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lineRingBuffer.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/pipes.d.ts +396 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/pipes.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/result.d.ts +92 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/result.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/shell.d.ts +210 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/shell.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/signal.d.ts +3 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/signal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/spawn.d.ts +21 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/spawn.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/streams.d.ts +35 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/streams.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/which/0.7.0/mod.d.ts +81 -0
- package/node_modules/dax/script/deps/jsr.io/@david/which/0.7.0/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/which-runtime/0.2.1/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/almost_equals.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/array_includes.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/assert.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/assertion_error.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/equal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/equals.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/exists.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/fail.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/false.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/greater.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/greater_or_equal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/instance_of.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/is_error.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/less.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/less_or_equal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/match.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/not_equals.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/not_instance_of.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/not_match.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/not_strict_equals.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/object_match.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/rejects.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/strict_equals.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/string_includes.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/throws.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/unimplemented.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/unreachable.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts +41 -0
- package/node_modules/dax/script/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts +700 -0
- package/node_modules/dax/script/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/_os.d.ts +2 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/build_message.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/diff.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/diff_str.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/format.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/os.d.ts +3 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/os.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/styles.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/types.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/_common.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/buffer.d.ts +321 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/buffer.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/reader_from_stream_reader.d.ts +21 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/reader_from_stream_reader.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/to_writable_stream.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/types.d.ts +146 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/types.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/write_all.d.ts +52 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/write_all.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/_common/glob_to_reg_exp.d.ts +35 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/glob_to_regexp.d.ts +77 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/posix/glob_to_regexp.d.ts +72 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/posix/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/windows/glob_to_regexp.d.ts +71 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/windows/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/script/mod.d.ts +600 -0
- package/node_modules/dax/script/mod.d.ts.map +1 -0
- package/node_modules/dax/script/mod.js +14815 -0
- package/node_modules/dax/script/mod.test.d.ts.map +1 -0
- package/node_modules/dax/script/package.json +3 -0
- package/node_modules/dax/script/src/common.d.ts +15 -0
- package/node_modules/dax/script/src/common.d.ts.map +1 -0
- package/node_modules/dax/script/src/common.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/alert.d.ts +25 -0
- package/node_modules/dax/script/src/console/alert.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/alert.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/confirm.d.ts +27 -0
- package/node_modules/dax/script/src/console/confirm.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/confirm.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/logger.d.ts +13 -0
- package/node_modules/dax/script/src/console/logger.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/mod.d.ts +14 -0
- package/node_modules/dax/script/src/console/mod.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/multiSelect.d.ts +31 -0
- package/node_modules/dax/script/src/console/multiSelect.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/multiSelect.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/progress.d.ts +57 -0
- package/node_modules/dax/script/src/console/progress.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/progress.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/prompt.d.ts +46 -0
- package/node_modules/dax/script/src/console/prompt.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/prompt.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/select.d.ts +26 -0
- package/node_modules/dax/script/src/console/select.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/select.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/testUtils.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/ttyFallback.d.ts +19 -0
- package/node_modules/dax/script/src/console/ttyFallback.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/utils.d.ts +47 -0
- package/node_modules/dax/script/src/console/utils.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/utils.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/request.d.ts +306 -0
- package/node_modules/dax/script/src/request.d.ts.map +1 -0
- package/node_modules/dax/script/src/request.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/test/server.common.d.ts.map +1 -0
- package/node_modules/dax/script/src/test/server.node.d.ts.map +1 -0
- package/node_modules/dax/script/src/vendor/outdent.d.ts +34 -0
- package/node_modules/dax/script/src/vendor/outdent.d.ts.map +1 -0
- package/node_modules/{cross-spawn → undici-types}/LICENSE +6 -6
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client.d.ts +97 -0
- package/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/node_modules/undici-types/errors.d.ts +128 -0
- package/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/handlers.d.ts +9 -0
- package/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/undici-types/index.d.ts +65 -0
- package/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +28 -0
- package/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/node_modules/undici-types/readable.d.ts +61 -0
- package/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/undici-types/webidl.d.ts +220 -0
- package/node_modules/undici-types/websocket.d.ts +131 -0
- package/package.json +11 -11
- package/lib/util/tasks.d.ts +0 -7
- package/lib/util/tasks.js +0 -25
- package/node_modules/cross-spawn/README.md +0 -89
- package/node_modules/cross-spawn/index.js +0 -39
- package/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/node_modules/cross-spawn/lib/parse.js +0 -91
- package/node_modules/cross-spawn/lib/util/escape.js +0 -47
- package/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/node_modules/cross-spawn/package.json +0 -73
- package/node_modules/execa/index.d.ts +0 -564
- package/node_modules/execa/index.js +0 -268
- package/node_modules/execa/lib/command.js +0 -52
- package/node_modules/execa/lib/error.js +0 -88
- package/node_modules/execa/lib/kill.js +0 -115
- package/node_modules/execa/lib/promise.js +0 -46
- package/node_modules/execa/lib/stdio.js +0 -52
- package/node_modules/execa/lib/stream.js +0 -97
- package/node_modules/execa/license +0 -9
- package/node_modules/execa/package.json +0 -74
- package/node_modules/execa/readme.md +0 -663
- package/node_modules/get-stream/buffer-stream.js +0 -52
- package/node_modules/get-stream/index.d.ts +0 -105
- package/node_modules/get-stream/index.js +0 -61
- package/node_modules/get-stream/license +0 -9
- package/node_modules/get-stream/package.json +0 -47
- package/node_modules/get-stream/readme.md +0 -124
- package/node_modules/human-signals/LICENSE +0 -201
- package/node_modules/human-signals/README.md +0 -165
- package/node_modules/human-signals/build/src/core.js +0 -273
- package/node_modules/human-signals/build/src/core.js.map +0 -1
- package/node_modules/human-signals/build/src/main.d.ts +0 -52
- package/node_modules/human-signals/build/src/main.js +0 -71
- package/node_modules/human-signals/build/src/main.js.map +0 -1
- package/node_modules/human-signals/build/src/realtime.js +0 -19
- package/node_modules/human-signals/build/src/realtime.js.map +0 -1
- package/node_modules/human-signals/build/src/signals.js +0 -35
- package/node_modules/human-signals/build/src/signals.js.map +0 -1
- package/node_modules/human-signals/package.json +0 -64
- package/node_modules/is-stream/index.d.ts +0 -79
- package/node_modules/is-stream/index.js +0 -28
- package/node_modules/is-stream/license +0 -9
- package/node_modules/is-stream/package.json +0 -42
- package/node_modules/is-stream/readme.md +0 -60
- package/node_modules/isexe/.npmignore +0 -2
- package/node_modules/isexe/LICENSE +0 -15
- package/node_modules/isexe/README.md +0 -51
- package/node_modules/isexe/index.js +0 -57
- package/node_modules/isexe/mode.js +0 -41
- package/node_modules/isexe/package.json +0 -31
- package/node_modules/isexe/test/basic.js +0 -221
- package/node_modules/isexe/windows.js +0 -42
- package/node_modules/merge-stream/LICENSE +0 -21
- package/node_modules/merge-stream/README.md +0 -78
- package/node_modules/merge-stream/index.js +0 -41
- package/node_modules/merge-stream/package.json +0 -19
- package/node_modules/mimic-fn/index.d.ts +0 -54
- package/node_modules/mimic-fn/index.js +0 -13
- package/node_modules/mimic-fn/license +0 -9
- package/node_modules/mimic-fn/package.json +0 -42
- package/node_modules/mimic-fn/readme.md +0 -69
- package/node_modules/minimist/.eslintrc +0 -29
- package/node_modules/minimist/.github/FUNDING.yml +0 -12
- package/node_modules/minimist/.nycrc +0 -14
- package/node_modules/minimist/CHANGELOG.md +0 -298
- package/node_modules/minimist/LICENSE +0 -18
- package/node_modules/minimist/README.md +0 -121
- package/node_modules/minimist/example/parse.js +0 -4
- package/node_modules/minimist/index.js +0 -263
- package/node_modules/minimist/package.json +0 -75
- package/node_modules/minimist/test/all_bool.js +0 -34
- package/node_modules/minimist/test/bool.js +0 -177
- package/node_modules/minimist/test/dash.js +0 -43
- package/node_modules/minimist/test/default_bool.js +0 -37
- package/node_modules/minimist/test/dotted.js +0 -24
- package/node_modules/minimist/test/kv_short.js +0 -32
- package/node_modules/minimist/test/long.js +0 -33
- package/node_modules/minimist/test/num.js +0 -38
- package/node_modules/minimist/test/parse.js +0 -209
- package/node_modules/minimist/test/parse_modified.js +0 -11
- package/node_modules/minimist/test/proto.js +0 -64
- package/node_modules/minimist/test/short.js +0 -69
- package/node_modules/minimist/test/stop_early.js +0 -17
- package/node_modules/minimist/test/unknown.js +0 -104
- package/node_modules/minimist/test/whitespace.js +0 -10
- package/node_modules/npm-run-path/index.d.ts +0 -89
- package/node_modules/npm-run-path/index.js +0 -47
- package/node_modules/npm-run-path/license +0 -9
- package/node_modules/npm-run-path/package.json +0 -44
- package/node_modules/npm-run-path/readme.md +0 -115
- package/node_modules/onetime/index.d.ts +0 -64
- package/node_modules/onetime/index.js +0 -44
- package/node_modules/onetime/license +0 -9
- package/node_modules/onetime/package.json +0 -43
- package/node_modules/onetime/readme.md +0 -94
- package/node_modules/path-key/index.d.ts +0 -40
- package/node_modules/path-key/index.js +0 -16
- package/node_modules/path-key/license +0 -9
- package/node_modules/path-key/package.json +0 -39
- package/node_modules/path-key/readme.md +0 -61
- package/node_modules/shebang-command/index.js +0 -19
- package/node_modules/shebang-command/license +0 -9
- package/node_modules/shebang-command/package.json +0 -34
- package/node_modules/shebang-command/readme.md +0 -34
- package/node_modules/shebang-regex/index.d.ts +0 -22
- package/node_modules/shebang-regex/index.js +0 -2
- package/node_modules/shebang-regex/license +0 -9
- package/node_modules/shebang-regex/package.json +0 -35
- package/node_modules/shebang-regex/readme.md +0 -33
- package/node_modules/shelljs/LICENSE +0 -29
- package/node_modules/shelljs/README.md +0 -949
- package/node_modules/shelljs/global.js +0 -15
- package/node_modules/shelljs/make.js +0 -57
- package/node_modules/shelljs/package.json +0 -90
- package/node_modules/shelljs/plugin.js +0 -16
- package/node_modules/shelljs/shell.js +0 -216
- package/node_modules/shelljs/src/cat.js +0 -76
- package/node_modules/shelljs/src/cd.js +0 -40
- package/node_modules/shelljs/src/chmod.js +0 -222
- package/node_modules/shelljs/src/cmd.js +0 -138
- package/node_modules/shelljs/src/common.js +0 -545
- package/node_modules/shelljs/src/cp.js +0 -314
- package/node_modules/shelljs/src/dirs.js +0 -210
- package/node_modules/shelljs/src/echo.js +0 -62
- package/node_modules/shelljs/src/error.js +0 -15
- package/node_modules/shelljs/src/errorCode.js +0 -10
- package/node_modules/shelljs/src/exec-child.js +0 -71
- package/node_modules/shelljs/src/exec.js +0 -255
- package/node_modules/shelljs/src/find.js +0 -66
- package/node_modules/shelljs/src/grep.js +0 -198
- package/node_modules/shelljs/src/head.js +0 -107
- package/node_modules/shelljs/src/ln.js +0 -75
- package/node_modules/shelljs/src/ls.js +0 -155
- package/node_modules/shelljs/src/mkdir.js +0 -102
- package/node_modules/shelljs/src/mv.js +0 -119
- package/node_modules/shelljs/src/popd.js +0 -1
- package/node_modules/shelljs/src/pushd.js +0 -1
- package/node_modules/shelljs/src/pwd.js +0 -16
- package/node_modules/shelljs/src/rm.js +0 -201
- package/node_modules/shelljs/src/sed.js +0 -95
- package/node_modules/shelljs/src/set.js +0 -55
- package/node_modules/shelljs/src/sort.js +0 -98
- package/node_modules/shelljs/src/tail.js +0 -90
- package/node_modules/shelljs/src/tempdir.js +0 -75
- package/node_modules/shelljs/src/test.js +0 -86
- package/node_modules/shelljs/src/to.js +0 -38
- package/node_modules/shelljs/src/toEnd.js +0 -37
- package/node_modules/shelljs/src/touch.js +0 -117
- package/node_modules/shelljs/src/uniq.js +0 -93
- package/node_modules/shelljs/src/which.js +0 -119
- package/node_modules/shx/README.md +0 -160
- package/node_modules/shx/lib/cli.js +0 -40
- package/node_modules/shx/lib/config.js +0 -58
- package/node_modules/shx/lib/help.js +0 -37
- package/node_modules/shx/lib/plugin-true-false.js +0 -25
- package/node_modules/shx/lib/printCmdRet.js +0 -17
- package/node_modules/shx/lib/shx.js +0 -162
- package/node_modules/shx/package.json +0 -72
- package/node_modules/signal-exit/LICENSE.txt +0 -16
- package/node_modules/signal-exit/README.md +0 -39
- package/node_modules/signal-exit/index.js +0 -202
- package/node_modules/signal-exit/package.json +0 -38
- package/node_modules/signal-exit/signals.js +0 -53
- package/node_modules/strip-final-newline/index.js +0 -16
- package/node_modules/strip-final-newline/license +0 -9
- package/node_modules/strip-final-newline/package.json +0 -40
- package/node_modules/strip-final-newline/readme.md +0 -30
- package/node_modules/which/LICENSE +0 -15
- package/node_modules/which/README.md +0 -54
- package/node_modules/which/bin/node-which +0 -52
- package/node_modules/which/package.json +0 -43
- package/node_modules/which/which.js +0 -125
|
@@ -0,0 +1,677 @@
|
|
|
1
|
+
import * as dntShim from "../../../../../../_dnt.shims.js";
|
|
2
|
+
import { Path } from "../../../path/0.3.2/mod.js";
|
|
3
|
+
import { Buffer } from "../../../../@std/io/0.225.3/buffer.js";
|
|
4
|
+
import type { CommandHandler } from "./commandHandler.js";
|
|
5
|
+
import { Box, type Delay, LoggerTreeBox } from "./common.js";
|
|
6
|
+
import type { Signal } from "./signal.js";
|
|
7
|
+
import { ByteRingBuffer } from "./byteRingBuffer.js";
|
|
8
|
+
import { type ErrorTailOptions, PipedBuffer, type Reader, type ShellPipeReaderKind, type ShellPipeWriterKind, type TailDisplayOptions } from "./pipes.js";
|
|
9
|
+
import { type ShellOptionsState } from "./shell.js";
|
|
10
|
+
import { StreamFds } from "./shell.js";
|
|
11
|
+
type BufferStdio = "inherit" | "null" | "streamed" | Buffer;
|
|
12
|
+
/** Identifies one of the standard output streams of a command, or both
|
|
13
|
+
* of them when combined. */
|
|
14
|
+
export type StreamKind = "stdout" | "stderr" | "combined";
|
|
15
|
+
declare class Deferred<T> {
|
|
16
|
+
#private;
|
|
17
|
+
constructor(create: () => T | Promise<T>);
|
|
18
|
+
create(): T | Promise<T>;
|
|
19
|
+
}
|
|
20
|
+
interface ShellPipeWriterKindWithOptions {
|
|
21
|
+
kind: ShellPipeWriterKind;
|
|
22
|
+
options?: dntShim.StreamPipeOptions;
|
|
23
|
+
}
|
|
24
|
+
export interface CommandBuilderStateCommand {
|
|
25
|
+
text: string;
|
|
26
|
+
fds: StreamFds | undefined;
|
|
27
|
+
}
|
|
28
|
+
interface CommandBuilderState {
|
|
29
|
+
command: Readonly<CommandBuilderStateCommand> | undefined;
|
|
30
|
+
stdin: "inherit" | "null" | Box<Reader | dntShim.ReadableStream<Uint8Array> | "consumed"> | Deferred<dntShim.ReadableStream<Uint8Array> | Reader>;
|
|
31
|
+
combinedStdoutStderr: boolean;
|
|
32
|
+
stdout: ShellPipeWriterKindWithOptions;
|
|
33
|
+
stderr: ShellPipeWriterKindWithOptions;
|
|
34
|
+
tailDisplay: false | TailDisplayOptions;
|
|
35
|
+
errorTail: false | ErrorTailOptions;
|
|
36
|
+
noThrow: boolean | number[];
|
|
37
|
+
env: Record<string, string | undefined>;
|
|
38
|
+
commands: Record<string, CommandHandler>;
|
|
39
|
+
cwd: string | undefined;
|
|
40
|
+
clearEnv: boolean;
|
|
41
|
+
exportEnv: boolean;
|
|
42
|
+
printCommand: boolean;
|
|
43
|
+
printCommandLogger: LoggerTreeBox;
|
|
44
|
+
timeout: number | undefined;
|
|
45
|
+
signal: KillSignal | undefined;
|
|
46
|
+
encoding: string | undefined;
|
|
47
|
+
shellOptions: Partial<ShellOptionsState>;
|
|
48
|
+
beforeCommand: BeforeCommandCallback[] | undefined;
|
|
49
|
+
beforeCommandSync: BeforeCommandSyncCallback[] | undefined;
|
|
50
|
+
}
|
|
51
|
+
/** Synchronous variant of {@link BeforeCommandCallback}. Receives the current
|
|
52
|
+
* builder and returns a (possibly modified) builder synchronously, or returns
|
|
53
|
+
* nothing for a no-op.
|
|
54
|
+
*
|
|
55
|
+
* Unlike {@link BeforeCommandCallback}, this runs even on the `.spawn()` path
|
|
56
|
+
* since no async work is involved.
|
|
57
|
+
*/
|
|
58
|
+
export type BeforeCommandSyncCallback = (builder: CommandBuilder) => CommandBuilder | void;
|
|
59
|
+
/** Callback invoked before a command is spawned.
|
|
60
|
+
*
|
|
61
|
+
* Receives the current builder and may return a (possibly modified) builder
|
|
62
|
+
* to use for the spawn. Returning the builder unchanged — or returning
|
|
63
|
+
* nothing — is a no-op.
|
|
64
|
+
*
|
|
65
|
+
* The builder passed to the callback is wrapped in a Proxy that hides its
|
|
66
|
+
* `.then`, so it isn't detected as a thenable by the JavaScript Promise
|
|
67
|
+
* machinery. That makes it safe to `return builder.env(...)` from an `async`
|
|
68
|
+
* function without the runtime recursively unwrapping the thenable and
|
|
69
|
+
* triggering a spawn. Methods like `.env(...)` that return a new builder
|
|
70
|
+
* return another such wrapped Proxy.
|
|
71
|
+
*
|
|
72
|
+
* The return type is loose because TypeScript infers the async return type
|
|
73
|
+
* by following `PromiseLike` (the same logic the runtime uses), so e.g.
|
|
74
|
+
* `async b => b.env(...)` is inferred as `Promise<CommandResult>`.
|
|
75
|
+
*/
|
|
76
|
+
export type BeforeCommandCallback = (builder: CommandBuilder) => CommandBuilder | Promise<CommandBuilder> | Promise<CommandResult> | void | Promise<void>;
|
|
77
|
+
/** @internal */
|
|
78
|
+
export declare const getRegisteredCommandNamesSymbol: unique symbol;
|
|
79
|
+
/** @internal */
|
|
80
|
+
export declare const setCommandTextStateSymbol: unique symbol;
|
|
81
|
+
/**
|
|
82
|
+
* Underlying builder API for executing commands.
|
|
83
|
+
*
|
|
84
|
+
* This is what `$` uses to execute commands. Using this provides
|
|
85
|
+
* a way to provide a raw text command or an array of arguments.
|
|
86
|
+
*
|
|
87
|
+
* Command builders are immutable where each method call creates
|
|
88
|
+
* a new command builder.
|
|
89
|
+
*
|
|
90
|
+
* ```ts
|
|
91
|
+
* const builder = new CommandBuilder()
|
|
92
|
+
* .cwd("./src")
|
|
93
|
+
* .command("echo $MY_VAR");
|
|
94
|
+
*
|
|
95
|
+
* // outputs 5
|
|
96
|
+
* console.log(await builder.env("MY_VAR", "5").text());
|
|
97
|
+
* // outputs 6
|
|
98
|
+
* console.log(await builder.env("MY_VAR", "6").text());
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
export declare class CommandBuilder implements PromiseLike<CommandResult> {
|
|
102
|
+
#private;
|
|
103
|
+
/** Spawns the command and returns a promise resolving to the command result.
|
|
104
|
+
*
|
|
105
|
+
* Allows awaiting a `CommandBuilder` directly without calling `.spawn()`.
|
|
106
|
+
*/
|
|
107
|
+
then<TResult1 = CommandResult, TResult2 = never>(onfulfilled?: ((value: CommandResult) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): PromiseLike<TResult1 | TResult2>;
|
|
108
|
+
/**
|
|
109
|
+
* Explicit way to spawn a command.
|
|
110
|
+
*
|
|
111
|
+
* This is an alias for awaiting the command builder or calling `.then(...)`
|
|
112
|
+
*/
|
|
113
|
+
spawn(): CommandChild;
|
|
114
|
+
/**
|
|
115
|
+
* Register a command.
|
|
116
|
+
*/
|
|
117
|
+
registerCommand(command: string, handleFn: CommandHandler): CommandBuilder;
|
|
118
|
+
/**
|
|
119
|
+
* Register multilple commands.
|
|
120
|
+
*/
|
|
121
|
+
registerCommands(commands: Record<string, CommandHandler>): CommandBuilder;
|
|
122
|
+
/**
|
|
123
|
+
* Unregister a command.
|
|
124
|
+
*/
|
|
125
|
+
unregisterCommand(command: string): CommandBuilder;
|
|
126
|
+
/** Sets the raw command to execute. */
|
|
127
|
+
command(command: string | string[]): CommandBuilder;
|
|
128
|
+
/** The command should not throw for the provided non-zero exit codes. */
|
|
129
|
+
noThrow(exclusionExitCode: number, ...additional: number[]): CommandBuilder;
|
|
130
|
+
/** The command should not throw when it fails or times out. */
|
|
131
|
+
noThrow(value?: boolean): CommandBuilder;
|
|
132
|
+
/** Registers a callback that runs just before each command is spawned.
|
|
133
|
+
*
|
|
134
|
+
* The callback receives the current builder and may return a (possibly
|
|
135
|
+
* modified) builder to use for the spawn. Useful for asynchronously
|
|
136
|
+
* resolving values such as auth tokens or env vars.
|
|
137
|
+
*
|
|
138
|
+
* ```ts
|
|
139
|
+
* $`./build.sh`.beforeCommand(async (builder) => {
|
|
140
|
+
* return builder.env("AUTH_TOKEN", await getAccessToken());
|
|
141
|
+
* });
|
|
142
|
+
* ```
|
|
143
|
+
*
|
|
144
|
+
* Multiple `.beforeCommand(...)` calls compose: each registered callback runs
|
|
145
|
+
* in the order it was added, with the builder produced by the previous one.
|
|
146
|
+
*
|
|
147
|
+
* The builder passed to the callback is in a special "passthrough" mode so
|
|
148
|
+
* its `.then(...)` resolves with the builder itself (instead of spawning) —
|
|
149
|
+
* this is what makes `return builder.env(...)` from an `async` function
|
|
150
|
+
* safe. If you construct a fresh `new CommandBuilder()` inside the callback,
|
|
151
|
+
* return it as `{ commandBuilder: ... }` to avoid an accidental spawn.
|
|
152
|
+
*
|
|
153
|
+
* Hooks are only resolved when the builder is awaited (or `.then()` is
|
|
154
|
+
* called). Calling `.spawn()` on a builder with registered hooks throws.
|
|
155
|
+
*/
|
|
156
|
+
beforeCommand(callback: BeforeCommandCallback): CommandBuilder;
|
|
157
|
+
/** Synchronous variant of {@link beforeCommand}. Unlike `.beforeCommand`,
|
|
158
|
+
* sync hooks also run on the `.spawn()` path, so they're suitable when you
|
|
159
|
+
* need streaming via `.spawn().stdout()` etc.
|
|
160
|
+
*
|
|
161
|
+
* The callback must return synchronously (`CommandBuilder` or nothing). The
|
|
162
|
+
* thenable-unwrapping concern doesn't apply here because the return value
|
|
163
|
+
* never passes through Promise machinery — `return builder.env(...)` is just
|
|
164
|
+
* a function return.
|
|
165
|
+
*
|
|
166
|
+
* ```ts
|
|
167
|
+
* const child = $`./build.sh`
|
|
168
|
+
* .beforeCommandSync((builder) => builder.env("BUILD_ID", crypto.randomUUID()))
|
|
169
|
+
* .spawn();
|
|
170
|
+
* ```
|
|
171
|
+
*
|
|
172
|
+
* Sync hooks always run before async hooks during a single resolution pass.
|
|
173
|
+
*/
|
|
174
|
+
beforeCommandSync(callback: BeforeCommandSyncCallback): CommandBuilder;
|
|
175
|
+
/** Sets the signal that will be passed to all commands
|
|
176
|
+
* created with this command builder.
|
|
177
|
+
*
|
|
178
|
+
* Accepts a `KillSignal` or a standard `AbortSignal`. When an
|
|
179
|
+
* `AbortSignal` is provided it is internally bridged to a
|
|
180
|
+
* `KillSignal` that sends `SIGTERM` on abort.
|
|
181
|
+
*/
|
|
182
|
+
signal(signal: KillSignal | AbortSignal): CommandBuilder;
|
|
183
|
+
/**
|
|
184
|
+
* Whether to capture a combined buffer of both stdout and stderr.
|
|
185
|
+
*
|
|
186
|
+
* This will set both stdout and stderr to "piped" if not already "piped"
|
|
187
|
+
* or "inheritPiped".
|
|
188
|
+
*/
|
|
189
|
+
captureCombined(value?: boolean): CommandBuilder;
|
|
190
|
+
/**
|
|
191
|
+
* Sets the stdin to use for the command.
|
|
192
|
+
*
|
|
193
|
+
* @remarks If multiple launches of a command occurs, then stdin will only be
|
|
194
|
+
* read from the first consumed reader or readable stream and error otherwise.
|
|
195
|
+
* For this reason, if you are setting stdin to something other than "inherit" or
|
|
196
|
+
* "null", then it's recommended to set this each time you spawn a command.
|
|
197
|
+
*/
|
|
198
|
+
stdin(reader: ShellPipeReaderKind): CommandBuilder;
|
|
199
|
+
/**
|
|
200
|
+
* Sets the stdin string to use for a command.
|
|
201
|
+
*
|
|
202
|
+
* @remarks See the remarks on stdin. The same applies here.
|
|
203
|
+
*/
|
|
204
|
+
stdinText(text: string): CommandBuilder;
|
|
205
|
+
/** Set the stdout kind. */
|
|
206
|
+
stdout(kind: ShellPipeWriterKind): CommandBuilder;
|
|
207
|
+
/** Set the stdout to pipe to the provided WritableStream with optional pipe options. */
|
|
208
|
+
stdout(kind: dntShim.WritableStream<Uint8Array>, options?: dntShim.StreamPipeOptions): CommandBuilder;
|
|
209
|
+
/** Set the stderr kind. */
|
|
210
|
+
stderr(kind: ShellPipeWriterKind): CommandBuilder;
|
|
211
|
+
/** Set the stderr to pipe to the provided WritableStream with optional pipe options. */
|
|
212
|
+
stderr(kind: dntShim.WritableStream<Uint8Array>, options?: dntShim.StreamPipeOptions): CommandBuilder;
|
|
213
|
+
/**
|
|
214
|
+
* Enables Docker-style partial scrolling for any `"inherit"` or
|
|
215
|
+
* `"inheritPiped"` output: only the last few lines are shown in a
|
|
216
|
+
* static region at the bottom of the terminal while the command
|
|
217
|
+
* runs. When both stdout and stderr are being displayed, they
|
|
218
|
+
* interleave into a single shared scrolling region with one header.
|
|
219
|
+
*
|
|
220
|
+
* On success the region is cleared (header promotes to scrollback);
|
|
221
|
+
* on error the retained tail is flushed above so the user can see
|
|
222
|
+
* what happened. Has no effect on non-TTY output or on streams
|
|
223
|
+
* routed elsewhere (piped, null, WritableStream, Path, etc.).
|
|
224
|
+
*
|
|
225
|
+
* Pass an options object to customize the visible line count or header.
|
|
226
|
+
*
|
|
227
|
+
* @example
|
|
228
|
+
* ```ts
|
|
229
|
+
* await $`./build.sh`.tailDisplay();
|
|
230
|
+
* await $`./build.sh`.tailDisplay({ maxLines: 2, header: false });
|
|
231
|
+
* await $`./build.sh`.tailDisplay({
|
|
232
|
+
* maxLines: "50%",
|
|
233
|
+
* header: ({ command }) => `building ${command}...`,
|
|
234
|
+
* });
|
|
235
|
+
* ```
|
|
236
|
+
*/
|
|
237
|
+
tailDisplay(value?: boolean): CommandBuilder;
|
|
238
|
+
/** Enables Docker-style partial scrolling with the provided options. */
|
|
239
|
+
tailDisplay(options: TailDisplayOptions): CommandBuilder;
|
|
240
|
+
/**
|
|
241
|
+
* Silently retains the trailing N bytes of stdout and/or stderr and
|
|
242
|
+
* appends them to the thrown `Error.message` if the command exits with
|
|
243
|
+
* a non-zero code. Targets the case where the stream is going somewhere
|
|
244
|
+
* the user can't see — piped to another command, redirected to a file,
|
|
245
|
+
* sent to a `WritableStream`, or discarded with `"null"` — so they
|
|
246
|
+
* still get a glimpse of what was written when the command fails.
|
|
247
|
+
*
|
|
248
|
+
* Streams routed to the terminal (`"inherit"` / `"inheritPiped"`) are
|
|
249
|
+
* skipped: the user already watched those bytes scroll by, so adding
|
|
250
|
+
* them to the error message would just be noise.
|
|
251
|
+
*
|
|
252
|
+
* Has no effect when the command succeeds (the buffer is discarded) or
|
|
253
|
+
* when `.noThrow()` swallows the failure.
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* ```ts
|
|
257
|
+
* // when stdout is being captured for the return value (.text(),
|
|
258
|
+
* // .json(), .bytes(), etc.), errorTail surfaces it in the thrown
|
|
259
|
+
* // error if the command fails — without it the captured bytes vanish
|
|
260
|
+
* // along with the result you never got.
|
|
261
|
+
* const output = await $`./build.sh`.errorTail().text();
|
|
262
|
+
* const output = await $`./build.sh`.errorTail({ maxBytes: 16 * 1024 }).text();
|
|
263
|
+
* ```
|
|
264
|
+
*/
|
|
265
|
+
errorTail(value?: boolean): CommandBuilder;
|
|
266
|
+
/** Enables errorTail capture with the provided options. */
|
|
267
|
+
errorTail(options: ErrorTailOptions): CommandBuilder;
|
|
268
|
+
/** Pipes the current command to the provided command returning the
|
|
269
|
+
* provided command builder. When chaining, it's important to call this
|
|
270
|
+
* after you are done configuring the current command or else you will
|
|
271
|
+
* start modifying the provided command instead.
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
* ```ts
|
|
275
|
+
* const lineCount = await $`echo 1 && echo 2`
|
|
276
|
+
* .pipe($`wc -l`)
|
|
277
|
+
* .text();
|
|
278
|
+
* ```
|
|
279
|
+
*/
|
|
280
|
+
pipe(builder: CommandBuilder): CommandBuilder;
|
|
281
|
+
/** Sets multiple environment variables to use at the same time via an object literal. */
|
|
282
|
+
env(items: Record<string, string | undefined>): CommandBuilder;
|
|
283
|
+
/** Sets a single environment variable to use. */
|
|
284
|
+
env(name: string, value: string | undefined): CommandBuilder;
|
|
285
|
+
/** Sets the current working directory to use when executing this command. */
|
|
286
|
+
cwd(dirPath: string | URL | Path): CommandBuilder;
|
|
287
|
+
/**
|
|
288
|
+
* Exports the environment of the command to the executing process.
|
|
289
|
+
*
|
|
290
|
+
* So for example, changing the directory in a command or exporting
|
|
291
|
+
* an environment variable will actually change the environment
|
|
292
|
+
* of the executing process.
|
|
293
|
+
*
|
|
294
|
+
* ```ts
|
|
295
|
+
* await $`cd src && export SOME_VALUE=5`;
|
|
296
|
+
* console.log(process.env["SOME_VALUE"]); // 5
|
|
297
|
+
* console.log(process.cwd()); // will be in the src directory
|
|
298
|
+
* ```
|
|
299
|
+
*/
|
|
300
|
+
exportEnv(value?: boolean): CommandBuilder;
|
|
301
|
+
/**
|
|
302
|
+
* Clear environmental variables from parent process.
|
|
303
|
+
*
|
|
304
|
+
* Doesn't guarantee that only `env` variables are present, as the OS may
|
|
305
|
+
* set environmental variables for processes.
|
|
306
|
+
*/
|
|
307
|
+
clearEnv(value?: boolean): CommandBuilder;
|
|
308
|
+
/**
|
|
309
|
+
* Prints the command text before executing the command.
|
|
310
|
+
*
|
|
311
|
+
* For example:
|
|
312
|
+
*
|
|
313
|
+
* ```ts
|
|
314
|
+
* const text = "example";
|
|
315
|
+
* await $`echo ${text}`.printCommand();
|
|
316
|
+
* ```
|
|
317
|
+
*
|
|
318
|
+
* Outputs:
|
|
319
|
+
*
|
|
320
|
+
* ```
|
|
321
|
+
* > echo example
|
|
322
|
+
* example
|
|
323
|
+
* ```
|
|
324
|
+
*/
|
|
325
|
+
printCommand(value?: boolean): CommandBuilder;
|
|
326
|
+
/**
|
|
327
|
+
* Mutates the command builder to change the logger used
|
|
328
|
+
* for `printCommand()`.
|
|
329
|
+
*/
|
|
330
|
+
setPrintCommandLogger(logger: (...args: any[]) => void): void;
|
|
331
|
+
/**
|
|
332
|
+
* Ensures stdout and stderr are piped if they have the default behaviour or are inherited.
|
|
333
|
+
*
|
|
334
|
+
* ```ts
|
|
335
|
+
* // ensure both stdout and stderr is not logged to the console
|
|
336
|
+
* await $`echo 1`.quiet();
|
|
337
|
+
* // ensure stdout is not logged to the console
|
|
338
|
+
* await $`echo 1`.quiet("stdout");
|
|
339
|
+
* // ensure stderr is not logged to the console
|
|
340
|
+
* await $`echo 1`.quiet("stderr");
|
|
341
|
+
* ```
|
|
342
|
+
*/
|
|
343
|
+
quiet(kind?: StreamKind | "both"): CommandBuilder;
|
|
344
|
+
/**
|
|
345
|
+
* Specifies a timeout for the command. The command will exit with
|
|
346
|
+
* exit code `124` (timeout) if it times out.
|
|
347
|
+
*
|
|
348
|
+
* Note that when using `.noThrow()` this won't cause an error to
|
|
349
|
+
* be thrown when timing out.
|
|
350
|
+
*/
|
|
351
|
+
timeout(delay: Delay | undefined): CommandBuilder;
|
|
352
|
+
/**
|
|
353
|
+
* Sets stdout as quiet, spawns the command, and gets stdout as a Uint8Array.
|
|
354
|
+
*
|
|
355
|
+
* Shorthand for:
|
|
356
|
+
*
|
|
357
|
+
* ```ts
|
|
358
|
+
* const data = (await $`command`.quiet("stdout")).stdoutBytes;
|
|
359
|
+
* ```
|
|
360
|
+
*/
|
|
361
|
+
bytes(kind?: StreamKind): Promise<Uint8Array>;
|
|
362
|
+
/**
|
|
363
|
+
* Sets the text decoder encoding to use for decoding stdout and stderr.
|
|
364
|
+
*
|
|
365
|
+
* This can be useful when the command output uses a specific character encoding
|
|
366
|
+
* that differs from the default UTF-8 encoding.
|
|
367
|
+
*/
|
|
368
|
+
encoding(encoding?: string): CommandBuilder;
|
|
369
|
+
/**
|
|
370
|
+
* Sets whether pipefail is enabled. When enabled, a pipeline's exit code
|
|
371
|
+
* is the rightmost non-zero exit code, or 0 if all commands succeed.
|
|
372
|
+
*
|
|
373
|
+
* ```ts
|
|
374
|
+
* // without pipefail (default): exit code is from the last command (grep)
|
|
375
|
+
* const code1 = await $`false | grep foo`.noThrow().code(); // 1 (grep's exit code)
|
|
376
|
+
*
|
|
377
|
+
* // with pipefail: exit code is from the first failing command
|
|
378
|
+
* const code2 = await $`false | grep foo`.pipefail().noThrow().code(); // 1 (false's exit code)
|
|
379
|
+
* ```
|
|
380
|
+
*/
|
|
381
|
+
pipefail(value?: boolean): CommandBuilder;
|
|
382
|
+
/**
|
|
383
|
+
* Sets whether nullglob is enabled. When enabled, a glob pattern that
|
|
384
|
+
* matches no files expands to nothing (empty) rather than being passed
|
|
385
|
+
* through literally.
|
|
386
|
+
*
|
|
387
|
+
* Note: This also disables failglob since nullglob and failglob are
|
|
388
|
+
* mutually exclusive behaviors.
|
|
389
|
+
*
|
|
390
|
+
* ```ts
|
|
391
|
+
* // without nullglob (default): passes pattern literally
|
|
392
|
+
* await $`echo *.nonexistent`; // outputs "*.nonexistent"
|
|
393
|
+
*
|
|
394
|
+
* // with nullglob: expands to nothing
|
|
395
|
+
* await $`echo *.nonexistent`.nullglob(); // outputs empty line
|
|
396
|
+
* ```
|
|
397
|
+
*/
|
|
398
|
+
nullglob(value?: boolean): CommandBuilder;
|
|
399
|
+
/**
|
|
400
|
+
* Sets whether failglob is enabled. When enabled, a glob pattern
|
|
401
|
+
* that matches no files causes an error. When disabled (the default),
|
|
402
|
+
* unmatched patterns are passed through literally.
|
|
403
|
+
*
|
|
404
|
+
* ```ts
|
|
405
|
+
* // without failglob (default): passes pattern literally
|
|
406
|
+
* await $`echo *.nonexistent`; // outputs "*.nonexistent"
|
|
407
|
+
*
|
|
408
|
+
* // with failglob: throws error if no matches
|
|
409
|
+
* await $`echo *.nonexistent`.failglob(); // Error: glob: no matches found
|
|
410
|
+
* ```
|
|
411
|
+
*/
|
|
412
|
+
failglob(value?: boolean): CommandBuilder;
|
|
413
|
+
/**
|
|
414
|
+
* Sets whether globstar is enabled. When enabled (the default), the pattern `**`
|
|
415
|
+
* used in a pathname expansion context will match all files and zero or more
|
|
416
|
+
* directories and subdirectories. When disabled, `**` is treated as `*`.
|
|
417
|
+
*
|
|
418
|
+
* ```ts
|
|
419
|
+
* // with globstar (default): ** matches recursively
|
|
420
|
+
* await $`echo **\/*.ts`; // matches all .ts files in all subdirectories
|
|
421
|
+
*
|
|
422
|
+
* // without globstar: ** is treated as *
|
|
423
|
+
* await $`echo **\/*.ts`.globstar(false); // matches only .ts files one level deep
|
|
424
|
+
* ```
|
|
425
|
+
*/
|
|
426
|
+
globstar(value?: boolean): CommandBuilder;
|
|
427
|
+
/**
|
|
428
|
+
* Sets whether questionGlob is enabled. When enabled, `?` matches any
|
|
429
|
+
* single character in glob patterns. When disabled (the default), `?` is
|
|
430
|
+
* treated literally.
|
|
431
|
+
*
|
|
432
|
+
* This option is only available via the builder API, not via `shopt` or `set`.
|
|
433
|
+
*
|
|
434
|
+
* ```ts
|
|
435
|
+
* // without questionGlob (default): ? is literal
|
|
436
|
+
* await $`echo a?c`; // outputs "a?c"
|
|
437
|
+
*
|
|
438
|
+
* // with questionGlob: ? matches any single character
|
|
439
|
+
* await $`echo a?c`.questionGlob(); // matches files like "abc", "axc", etc.
|
|
440
|
+
* ```
|
|
441
|
+
*/
|
|
442
|
+
questionGlob(value?: boolean): CommandBuilder;
|
|
443
|
+
/**
|
|
444
|
+
* Sets the provided stream (stdout by default) as quiet, spawns the command, and gets the stream as a string without the last newline.
|
|
445
|
+
* Can be used to get stdout, stderr, or both.
|
|
446
|
+
*
|
|
447
|
+
* Shorthand for:
|
|
448
|
+
*
|
|
449
|
+
* ```ts
|
|
450
|
+
* const data = (await $`command`.quiet("stdout")).stdout.replace(/\r?\n$/, "");
|
|
451
|
+
* ```
|
|
452
|
+
*/
|
|
453
|
+
text(kind?: StreamKind): Promise<string>;
|
|
454
|
+
/**
|
|
455
|
+
* Gets the text as an array of lines.
|
|
456
|
+
*
|
|
457
|
+
* Lines are split the same way as {@link CommandBuilder.linesIter} (matches
|
|
458
|
+
* [Rust's `str::lines`](https://doc.rust-lang.org/std/primitive.str.html#method.lines)):
|
|
459
|
+
* line terminators are not included, a trailing blank line caused by a final
|
|
460
|
+
* line ending is excluded, and empty output yields no lines.
|
|
461
|
+
*/
|
|
462
|
+
lines(kind?: StreamKind): Promise<string[]>;
|
|
463
|
+
/**
|
|
464
|
+
* Streams the command's output and iterates over its lines without
|
|
465
|
+
* buffering everything into memory.
|
|
466
|
+
*
|
|
467
|
+
* Lines are split at `\n` or `\r\n`. Line terminators are not included.
|
|
468
|
+
* A trailing blank line caused by a final line ending is excluded (matches
|
|
469
|
+
* [Rust's `str::lines`](https://doc.rust-lang.org/std/primitive.str.html#method.lines)).
|
|
470
|
+
*
|
|
471
|
+
* If iteration is abandoned before the end of the output is reached, the
|
|
472
|
+
* child process is killed.
|
|
473
|
+
*
|
|
474
|
+
* ```ts
|
|
475
|
+
* for await (const line of $`cat big.txt`.linesIter()) {
|
|
476
|
+
* console.log(line);
|
|
477
|
+
* }
|
|
478
|
+
* ```
|
|
479
|
+
*/
|
|
480
|
+
linesIter(kind?: Exclude<StreamKind, "combined">): AsyncIterableIterator<string>;
|
|
481
|
+
/**
|
|
482
|
+
* Sets stream (stdout by default) as quiet, spawns the command, and gets stream as JSON.
|
|
483
|
+
*
|
|
484
|
+
* Shorthand for:
|
|
485
|
+
*
|
|
486
|
+
* ```ts
|
|
487
|
+
* const data = (await $`command`.quiet("stdout")).stdoutJson;
|
|
488
|
+
* ```
|
|
489
|
+
*/
|
|
490
|
+
json<TResult = any>(kind?: Exclude<StreamKind, "combined">): Promise<TResult>;
|
|
491
|
+
/**
|
|
492
|
+
* Helper to get the exit code without throwing on non-zero exit codes.
|
|
493
|
+
*
|
|
494
|
+
* Shorthand for:
|
|
495
|
+
*
|
|
496
|
+
* ```ts
|
|
497
|
+
* const code = (await $`command`.noThrow()).code;
|
|
498
|
+
* ```
|
|
499
|
+
*/
|
|
500
|
+
code(): Promise<number>;
|
|
501
|
+
/** @internal */
|
|
502
|
+
[getRegisteredCommandNamesSymbol](): string[];
|
|
503
|
+
/** @internal */
|
|
504
|
+
[setCommandTextStateSymbol](textState: CommandBuilderStateCommand): CommandBuilder;
|
|
505
|
+
}
|
|
506
|
+
/** A spawned command. Awaiting it resolves to a `CommandResult` and it
|
|
507
|
+
* exposes hooks to read piped output streams or send signals to the
|
|
508
|
+
* underlying child process. */
|
|
509
|
+
export declare class CommandChild extends Promise<CommandResult> {
|
|
510
|
+
#private;
|
|
511
|
+
/** @internal */
|
|
512
|
+
constructor(executor: (resolve: (value: CommandResult) => void, reject: (reason?: any) => void) => void, options?: {
|
|
513
|
+
pipedStdoutBuffer: PipedBuffer | undefined;
|
|
514
|
+
pipedStderrBuffer: PipedBuffer | undefined;
|
|
515
|
+
killSignalController: KillController | undefined;
|
|
516
|
+
});
|
|
517
|
+
/** Send a signal to the executing command's child process. Note that SIGTERM,
|
|
518
|
+
* SIGKILL, SIGABRT, SIGQUIT, SIGINT, or SIGSTOP will cause the entire command
|
|
519
|
+
* to be considered "aborted" and if part of a command runs after this has occurred
|
|
520
|
+
* it will return a 124 exit code. Other signals will just be forwarded to the command.
|
|
521
|
+
*
|
|
522
|
+
* Defaults to "SIGTERM".
|
|
523
|
+
*/
|
|
524
|
+
kill(signal?: Signal): void;
|
|
525
|
+
/** Returns a `ReadableStream` of the running child's stdout. Requires the
|
|
526
|
+
* stdout to have been set to `"piped"`. May only be consumed once. */
|
|
527
|
+
stdout(): dntShim.ReadableStream<Uint8Array>;
|
|
528
|
+
/** Returns a `ReadableStream` of the running child's stderr. Requires the
|
|
529
|
+
* stderr to have been set to `"piped"`. May only be consumed once. */
|
|
530
|
+
stderr(): dntShim.ReadableStream<Uint8Array>;
|
|
531
|
+
}
|
|
532
|
+
export declare function parseAndSpawnCommand(state: CommandBuilderState, callerStack?: string): CommandChild;
|
|
533
|
+
/** Error thrown when a command exits with a non-zero code (and `.noThrow()`
|
|
534
|
+
* is not set). Exposes structured properties (`exitCode`, `stdout`, `stderr`)
|
|
535
|
+
* so callers can inspect the failure programmatically. The human-readable
|
|
536
|
+
* `message` — including any captured error-tail output — is built lazily on
|
|
537
|
+
* first access so the formatting cost is skipped when the error is caught
|
|
538
|
+
* and only its properties are used. */
|
|
539
|
+
export declare class ShellError extends Error {
|
|
540
|
+
#private;
|
|
541
|
+
readonly name = "ShellError";
|
|
542
|
+
/** The process exit code. */
|
|
543
|
+
readonly exitCode: number;
|
|
544
|
+
/** Whether the command was killed because its timeout elapsed. */
|
|
545
|
+
readonly timedOut: boolean;
|
|
546
|
+
/** Whether the command was aborted via its kill signal. */
|
|
547
|
+
readonly aborted: boolean;
|
|
548
|
+
/** Captured trailing stdout text from the error-tail ring buffer.
|
|
549
|
+
* Empty string when stdout was not captured (e.g. routed to the
|
|
550
|
+
* terminal, or errorTail disabled for stdout). */
|
|
551
|
+
readonly stdout: string;
|
|
552
|
+
/** Captured trailing stderr text from the error-tail ring buffer.
|
|
553
|
+
* Empty string when stderr was not captured. */
|
|
554
|
+
readonly stderr: string;
|
|
555
|
+
/** @internal */
|
|
556
|
+
constructor(options: {
|
|
557
|
+
exitCode: number;
|
|
558
|
+
timedOut: boolean;
|
|
559
|
+
aborted: boolean;
|
|
560
|
+
stdoutRing: ByteRingBuffer | undefined;
|
|
561
|
+
stderrRing: ByteRingBuffer | undefined;
|
|
562
|
+
combinedRing: ByteRingBuffer | undefined;
|
|
563
|
+
});
|
|
564
|
+
get message(): string;
|
|
565
|
+
set message(value: string);
|
|
566
|
+
}
|
|
567
|
+
/** Result of running a command. */
|
|
568
|
+
export declare class CommandResult {
|
|
569
|
+
#private;
|
|
570
|
+
/** The exit code. */
|
|
571
|
+
readonly code: number;
|
|
572
|
+
/** @internal */
|
|
573
|
+
constructor(code: number, stdout: BufferStdio, stderr: BufferStdio, combined: Buffer | undefined, encoding: string | undefined);
|
|
574
|
+
/** Raw decoded stdout text. */
|
|
575
|
+
get stdout(): string;
|
|
576
|
+
/**
|
|
577
|
+
* Stdout text as JSON.
|
|
578
|
+
*
|
|
579
|
+
* @remarks Will throw if it can't be parsed as JSON.
|
|
580
|
+
*/
|
|
581
|
+
get stdoutJson(): any;
|
|
582
|
+
/** Raw stdout bytes. */
|
|
583
|
+
get stdoutBytes(): Uint8Array;
|
|
584
|
+
/** Raw decoded stdout text. */
|
|
585
|
+
get stderr(): string;
|
|
586
|
+
/**
|
|
587
|
+
* Stderr text as JSON.
|
|
588
|
+
*
|
|
589
|
+
* @remarks Will throw if it can't be parsed as JSON.
|
|
590
|
+
*/
|
|
591
|
+
get stderrJson(): any;
|
|
592
|
+
/** Raw stderr bytes. */
|
|
593
|
+
get stderrBytes(): Uint8Array;
|
|
594
|
+
/** Raw combined stdout and stderr text. */
|
|
595
|
+
get combined(): string;
|
|
596
|
+
/** Raw combined stdout and stderr bytes. */
|
|
597
|
+
get combinedBytes(): Uint8Array;
|
|
598
|
+
}
|
|
599
|
+
/** Escapes a single argument for safe interpolation into a shell command. */
|
|
600
|
+
export declare function escapeArg(arg: string): string;
|
|
601
|
+
/** Wraps a value so that it is interpolated into a template literal command
|
|
602
|
+
* without being shell-escaped. Use {@link rawArg} to construct one. */
|
|
603
|
+
export declare class RawArg<T> {
|
|
604
|
+
#private;
|
|
605
|
+
/** Creates a new `RawArg` wrapping the provided value. */
|
|
606
|
+
constructor(value: T);
|
|
607
|
+
/** The wrapped value that will be used as-is during template substitution. */
|
|
608
|
+
get value(): T;
|
|
609
|
+
}
|
|
610
|
+
/** Creates a `RawArg` wrapping the provided value so it bypasses shell
|
|
611
|
+
* argument escaping when interpolated into a template literal command. */
|
|
612
|
+
export declare function rawArg<T>(arg: T): RawArg<T>;
|
|
613
|
+
interface KillSignalState {
|
|
614
|
+
abortedCode: number | undefined;
|
|
615
|
+
listeners: ((signal: Signal) => void)[];
|
|
616
|
+
}
|
|
617
|
+
/** Similar to an AbortController, but for sending signals to commands. */
|
|
618
|
+
export declare class KillController {
|
|
619
|
+
#private;
|
|
620
|
+
constructor();
|
|
621
|
+
/** The associated `KillSignal` to attach to commands. */
|
|
622
|
+
get signal(): KillSignal;
|
|
623
|
+
/** Send a signal to the downstream child process. Note that SIGTERM,
|
|
624
|
+
* SIGKILL, SIGABRT, SIGQUIT, SIGINT, or SIGSTOP will cause all the commands
|
|
625
|
+
* to be considered "aborted" and will return a 124 exit code, while other
|
|
626
|
+
* signals will just be forwarded to the commands.
|
|
627
|
+
*/
|
|
628
|
+
kill(signal?: Signal): void;
|
|
629
|
+
}
|
|
630
|
+
/** Listener for when a KillSignal is killed. */
|
|
631
|
+
export type KillSignalListener = (signal: Signal) => void;
|
|
632
|
+
/** Similar to `AbortSignal`, but for OS signals.
|
|
633
|
+
*
|
|
634
|
+
* A `KillSignal` is considered aborted if its controller
|
|
635
|
+
* receives SIGTERM, SIGKILL, SIGABRT, SIGQUIT, SIGINT, or SIGSTOP.
|
|
636
|
+
*
|
|
637
|
+
* These can be created via a `KillController`.
|
|
638
|
+
*/
|
|
639
|
+
export declare class KillSignal {
|
|
640
|
+
#private;
|
|
641
|
+
/** @internal */
|
|
642
|
+
constructor(symbol: Symbol, state: KillSignalState);
|
|
643
|
+
/** Returns if the command signal has ever received a SIGTERM,
|
|
644
|
+
* SIGKILL, SIGABRT, SIGQUIT, SIGINT, or SIGSTOP
|
|
645
|
+
*/
|
|
646
|
+
get aborted(): boolean;
|
|
647
|
+
/** Gets the exit code to use if aborted. */
|
|
648
|
+
get abortedExitCode(): number | undefined;
|
|
649
|
+
/**
|
|
650
|
+
* Causes the provided kill signal to be triggered when this
|
|
651
|
+
* signal receives a signal.
|
|
652
|
+
*/
|
|
653
|
+
linkChild(killSignal: KillSignal): {
|
|
654
|
+
unsubscribe(): void;
|
|
655
|
+
};
|
|
656
|
+
/** Registers a listener that will be invoked whenever a signal is sent. */
|
|
657
|
+
addListener(listener: KillSignalListener): void;
|
|
658
|
+
/** Removes a previously registered listener. */
|
|
659
|
+
removeListener(listener: KillSignalListener): void;
|
|
660
|
+
}
|
|
661
|
+
export declare function getSignalAbortCode(signal: Signal): number | undefined;
|
|
662
|
+
export declare function template(strings: TemplateStringsArray, exprs: TemplateExpr[]): CommandBuilderStateCommand;
|
|
663
|
+
export declare function templateRaw(strings: TemplateStringsArray, exprs: TemplateExpr[]): CommandBuilderStateCommand;
|
|
664
|
+
/** A template expression that can be substituted into a command outside of
|
|
665
|
+
* an input/output redirect context. */
|
|
666
|
+
export type NonRedirectTemplateExpr = string | number | boolean | Path | Uint8Array | CommandResult | RawArg<NonRedirectTemplateExpr> | {
|
|
667
|
+
toString(): string;
|
|
668
|
+
catch?: never;
|
|
669
|
+
};
|
|
670
|
+
/** Any value that may be interpolated into a `$` template literal command. */
|
|
671
|
+
export type TemplateExpr = NonRedirectTemplateExpr | NonRedirectTemplateExpr[] | dntShim.ReadableStream<Uint8Array> | {
|
|
672
|
+
[readable: symbol]: () => dntShim.ReadableStream<Uint8Array>;
|
|
673
|
+
} | (() => dntShim.ReadableStream<Uint8Array>) | {
|
|
674
|
+
[writable: symbol]: () => dntShim.WritableStream<Uint8Array>;
|
|
675
|
+
} | dntShim.WritableStream<Uint8Array> | (() => dntShim.WritableStream<Uint8Array>);
|
|
676
|
+
export {};
|
|
677
|
+
//# sourceMappingURL=command.d.ts.map
|