@socketsecurity/cli-with-sentry 1.1.25 → 2.0.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/CHANGELOG.md +51 -218
- package/README.md +41 -74
- package/dist/cli.js.bz +0 -0
- package/dist/cli.js.bz.sha256 +1 -0
- package/dist/index.js +2 -0
- package/package.json +31 -274
- package/bin/cli.js +0 -52
- package/bin/npm-cli.js +0 -29
- package/bin/npx-cli.js +0 -29
- package/bin/pnpm-cli.js +0 -29
- package/bin/yarn-cli.js +0 -29
- package/dist/cli.js +0 -14999
- package/dist/cli.js.map +0 -1
- package/dist/constants.js +0 -845
- package/dist/constants.js.map +0 -1
- package/dist/flags.js +0 -212
- package/dist/flags.js.map +0 -1
- package/dist/init.gradle +0 -250
- package/dist/instrument-with-sentry.js +0 -44
- package/dist/instrument-with-sentry.js.map +0 -1
- package/dist/npm-cli.js +0 -30
- package/dist/npm-cli.js.map +0 -1
- package/dist/npx-cli.js +0 -26
- package/dist/npx-cli.js.map +0 -1
- package/dist/pnpm-cli.js +0 -30
- package/dist/pnpm-cli.js.map +0 -1
- package/dist/shadow-npm-bin.js +0 -8
- package/dist/shadow-npm-bin.js.map +0 -1
- package/dist/shadow-npm-bin2.js +0 -102
- package/dist/shadow-npm-bin2.js.map +0 -1
- package/dist/shadow-npm-inject.js +0 -307
- package/dist/shadow-npm-inject.js.map +0 -1
- package/dist/shadow-npx-bin.js +0 -12
- package/dist/shadow-npx-bin.js.map +0 -1
- package/dist/shadow-pnpm-bin.js +0 -8
- package/dist/shadow-pnpm-bin.js.map +0 -1
- package/dist/shadow-pnpm-bin2.js +0 -300
- package/dist/shadow-pnpm-bin2.js.map +0 -1
- package/dist/shadow-yarn-bin.js +0 -96
- package/dist/shadow-yarn-bin.js.map +0 -1
- package/dist/tsconfig.dts.tsbuildinfo +0 -1
- package/dist/types/cli.d.mts +0 -3
- package/dist/types/cli.d.mts.map +0 -1
- package/dist/types/commands/analytics/cmd-analytics.d.mts +0 -10
- package/dist/types/commands/analytics/cmd-analytics.d.mts.map +0 -1
- package/dist/types/commands/analytics/fetch-org-analytics.d.mts +0 -8
- package/dist/types/commands/analytics/fetch-org-analytics.d.mts.map +0 -1
- package/dist/types/commands/analytics/fetch-repo-analytics.d.mts +0 -8
- package/dist/types/commands/analytics/fetch-repo-analytics.d.mts.map +0 -1
- package/dist/types/commands/analytics/handle-analytics.d.mts +0 -10
- package/dist/types/commands/analytics/handle-analytics.d.mts.map +0 -1
- package/dist/types/commands/analytics/output-analytics.d.mts +0 -29
- package/dist/types/commands/analytics/output-analytics.d.mts.map +0 -1
- package/dist/types/commands/audit-log/cmd-audit-log.d.mts +0 -10
- package/dist/types/commands/audit-log/cmd-audit-log.d.mts.map +0 -1
- package/dist/types/commands/audit-log/fetch-audit-log.d.mts +0 -15
- package/dist/types/commands/audit-log/fetch-audit-log.d.mts.map +0 -1
- package/dist/types/commands/audit-log/handle-audit-log.d.mts +0 -9
- package/dist/types/commands/audit-log/handle-audit-log.d.mts.map +0 -1
- package/dist/types/commands/audit-log/output-audit-log.d.mts +0 -22
- package/dist/types/commands/audit-log/output-audit-log.d.mts.map +0 -1
- package/dist/types/commands/ci/cmd-ci.d.mts +0 -9
- package/dist/types/commands/ci/cmd-ci.d.mts.map +0 -1
- package/dist/types/commands/ci/fetch-default-org-slug.d.mts +0 -4
- package/dist/types/commands/ci/fetch-default-org-slug.d.mts.map +0 -1
- package/dist/types/commands/ci/handle-ci.d.mts +0 -2
- package/dist/types/commands/ci/handle-ci.d.mts.map +0 -1
- package/dist/types/commands/config/cmd-config-auto.d.mts +0 -10
- package/dist/types/commands/config/cmd-config-auto.d.mts.map +0 -1
- package/dist/types/commands/config/cmd-config-get.d.mts +0 -9
- package/dist/types/commands/config/cmd-config-get.d.mts.map +0 -1
- package/dist/types/commands/config/cmd-config-list.d.mts +0 -9
- package/dist/types/commands/config/cmd-config-list.d.mts.map +0 -1
- package/dist/types/commands/config/cmd-config-set.d.mts +0 -10
- package/dist/types/commands/config/cmd-config-set.d.mts.map +0 -1
- package/dist/types/commands/config/cmd-config-unset.d.mts +0 -10
- package/dist/types/commands/config/cmd-config-unset.d.mts.map +0 -1
- package/dist/types/commands/config/cmd-config.d.mts +0 -3
- package/dist/types/commands/config/cmd-config.d.mts.map +0 -1
- package/dist/types/commands/config/discover-config-value.d.mts +0 -3
- package/dist/types/commands/config/discover-config-value.d.mts.map +0 -1
- package/dist/types/commands/config/handle-config-auto.d.mts +0 -7
- package/dist/types/commands/config/handle-config-auto.d.mts.map +0 -1
- package/dist/types/commands/config/handle-config-get.d.mts +0 -7
- package/dist/types/commands/config/handle-config-get.d.mts.map +0 -1
- package/dist/types/commands/config/handle-config-set.d.mts +0 -8
- package/dist/types/commands/config/handle-config-set.d.mts.map +0 -1
- package/dist/types/commands/config/handle-config-unset.d.mts +0 -7
- package/dist/types/commands/config/handle-config-unset.d.mts.map +0 -1
- package/dist/types/commands/config/output-config-auto.d.mts +0 -4
- package/dist/types/commands/config/output-config-auto.d.mts.map +0 -1
- package/dist/types/commands/config/output-config-get.d.mts +0 -4
- package/dist/types/commands/config/output-config-get.d.mts.map +0 -1
- package/dist/types/commands/config/output-config-list.d.mts +0 -6
- package/dist/types/commands/config/output-config-list.d.mts.map +0 -1
- package/dist/types/commands/config/output-config-set.d.mts +0 -3
- package/dist/types/commands/config/output-config-set.d.mts.map +0 -1
- package/dist/types/commands/config/output-config-unset.d.mts +0 -3
- package/dist/types/commands/config/output-config-unset.d.mts.map +0 -1
- package/dist/types/commands/fix/cmd-fix.d.mts +0 -10
- package/dist/types/commands/fix/cmd-fix.d.mts.map +0 -1
- package/dist/types/commands/fix/coana-fix.d.mts +0 -6
- package/dist/types/commands/fix/coana-fix.d.mts.map +0 -1
- package/dist/types/commands/fix/env-helpers.d.mts +0 -26
- package/dist/types/commands/fix/env-helpers.d.mts.map +0 -1
- package/dist/types/commands/fix/git.d.mts +0 -13
- package/dist/types/commands/fix/git.d.mts.map +0 -1
- package/dist/types/commands/fix/handle-fix.d.mts +0 -20
- package/dist/types/commands/fix/handle-fix.d.mts.map +0 -1
- package/dist/types/commands/fix/output-fix-result.d.mts +0 -3
- package/dist/types/commands/fix/output-fix-result.d.mts.map +0 -1
- package/dist/types/commands/fix/pull-request.d.mts +0 -31
- package/dist/types/commands/fix/pull-request.d.mts.map +0 -1
- package/dist/types/commands/fix/types.d.mts +0 -21
- package/dist/types/commands/fix/types.d.mts.map +0 -1
- package/dist/types/commands/install/cmd-install-completion.d.mts +0 -9
- package/dist/types/commands/install/cmd-install-completion.d.mts.map +0 -1
- package/dist/types/commands/install/cmd-install.d.mts +0 -3
- package/dist/types/commands/install/cmd-install.d.mts.map +0 -1
- package/dist/types/commands/install/handle-install-completion.d.mts +0 -2
- package/dist/types/commands/install/handle-install-completion.d.mts.map +0 -1
- package/dist/types/commands/install/output-install-completion.d.mts +0 -12
- package/dist/types/commands/install/output-install-completion.d.mts.map +0 -1
- package/dist/types/commands/install/setup-tab-completion.d.mts +0 -13
- package/dist/types/commands/install/setup-tab-completion.d.mts.map +0 -1
- package/dist/types/commands/json/cmd-json.d.mts +0 -9
- package/dist/types/commands/json/cmd-json.d.mts.map +0 -1
- package/dist/types/commands/json/handle-cmd-json.d.mts +0 -2
- package/dist/types/commands/json/handle-cmd-json.d.mts.map +0 -1
- package/dist/types/commands/json/output-cmd-json.d.mts +0 -2
- package/dist/types/commands/json/output-cmd-json.d.mts.map +0 -1
- package/dist/types/commands/login/apply-login.d.mts +0 -2
- package/dist/types/commands/login/apply-login.d.mts.map +0 -1
- package/dist/types/commands/login/attempt-login.d.mts +0 -6
- package/dist/types/commands/login/attempt-login.d.mts.map +0 -1
- package/dist/types/commands/login/cmd-login.d.mts +0 -10
- package/dist/types/commands/login/cmd-login.d.mts.map +0 -1
- package/dist/types/commands/logout/apply-logout.d.mts +0 -2
- package/dist/types/commands/logout/apply-logout.d.mts.map +0 -1
- package/dist/types/commands/logout/attempt-logout.d.mts +0 -2
- package/dist/types/commands/logout/attempt-logout.d.mts.map +0 -1
- package/dist/types/commands/logout/cmd-logout.d.mts +0 -9
- package/dist/types/commands/logout/cmd-logout.d.mts.map +0 -1
- package/dist/types/commands/manifest/cmd-manifest-auto.d.mts +0 -9
- package/dist/types/commands/manifest/cmd-manifest-auto.d.mts.map +0 -1
- package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts +0 -9
- package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +0 -1
- package/dist/types/commands/manifest/cmd-manifest-conda.d.mts +0 -9
- package/dist/types/commands/manifest/cmd-manifest-conda.d.mts.map +0 -1
- package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts +0 -9
- package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts.map +0 -1
- package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts +0 -9
- package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts.map +0 -1
- package/dist/types/commands/manifest/cmd-manifest-scala.d.mts +0 -9
- package/dist/types/commands/manifest/cmd-manifest-scala.d.mts.map +0 -1
- package/dist/types/commands/manifest/cmd-manifest-setup.d.mts +0 -9
- package/dist/types/commands/manifest/cmd-manifest-setup.d.mts.map +0 -1
- package/dist/types/commands/manifest/cmd-manifest.d.mts +0 -9
- package/dist/types/commands/manifest/cmd-manifest.d.mts.map +0 -1
- package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts +0 -8
- package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts.map +0 -1
- package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts +0 -7
- package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts.map +0 -1
- package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts +0 -8
- package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts.map +0 -1
- package/dist/types/commands/manifest/detect-manifest-actions.d.mts +0 -13
- package/dist/types/commands/manifest/detect-manifest-actions.d.mts.map +0 -1
- package/dist/types/commands/manifest/generate_auto_manifest.d.mts +0 -9
- package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +0 -1
- package/dist/types/commands/manifest/handle-manifest-conda.d.mts +0 -9
- package/dist/types/commands/manifest/handle-manifest-conda.d.mts.map +0 -1
- package/dist/types/commands/manifest/handle-manifest-setup.d.mts +0 -2
- package/dist/types/commands/manifest/handle-manifest-setup.d.mts.map +0 -1
- package/dist/types/commands/manifest/output-manifest-setup.d.mts +0 -3
- package/dist/types/commands/manifest/output-manifest-setup.d.mts.map +0 -1
- package/dist/types/commands/manifest/output-requirements.d.mts +0 -6
- package/dist/types/commands/manifest/output-requirements.d.mts.map +0 -1
- package/dist/types/commands/manifest/run-cdxgen.d.mts +0 -6
- package/dist/types/commands/manifest/run-cdxgen.d.mts.map +0 -1
- package/dist/types/commands/manifest/setup-manifest-config.d.mts +0 -3
- package/dist/types/commands/manifest/setup-manifest-config.d.mts.map +0 -1
- package/dist/types/commands/npm/cmd-npm.d.mts +0 -10
- package/dist/types/commands/npm/cmd-npm.d.mts.map +0 -1
- package/dist/types/commands/npx/cmd-npx.d.mts +0 -9
- package/dist/types/commands/npx/cmd-npx.d.mts.map +0 -1
- package/dist/types/commands/oops/cmd-oops.d.mts +0 -9
- package/dist/types/commands/oops/cmd-oops.d.mts.map +0 -1
- package/dist/types/commands/optimize/add-overrides.d.mts +0 -20
- package/dist/types/commands/optimize/add-overrides.d.mts.map +0 -1
- package/dist/types/commands/optimize/apply-optimization.d.mts +0 -14
- package/dist/types/commands/optimize/apply-optimization.d.mts.map +0 -1
- package/dist/types/commands/optimize/cmd-optimize.d.mts +0 -10
- package/dist/types/commands/optimize/cmd-optimize.d.mts.map +0 -1
- package/dist/types/commands/optimize/deps-includes-by-agent.d.mts +0 -5
- package/dist/types/commands/optimize/deps-includes-by-agent.d.mts.map +0 -1
- package/dist/types/commands/optimize/get-dependency-entries.d.mts +0 -3
- package/dist/types/commands/optimize/get-dependency-entries.d.mts.map +0 -1
- package/dist/types/commands/optimize/get-overrides-by-agent.d.mts +0 -42
- package/dist/types/commands/optimize/get-overrides-by-agent.d.mts.map +0 -1
- package/dist/types/commands/optimize/handle-optimize.d.mts +0 -8
- package/dist/types/commands/optimize/handle-optimize.d.mts.map +0 -1
- package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts +0 -8
- package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts.map +0 -1
- package/dist/types/commands/optimize/ls-by-agent.d.mts +0 -13
- package/dist/types/commands/optimize/ls-by-agent.d.mts.map +0 -1
- package/dist/types/commands/optimize/output-optimize-result.d.mts +0 -9
- package/dist/types/commands/optimize/output-optimize-result.d.mts.map +0 -1
- package/dist/types/commands/optimize/shared.d.mts +0 -2
- package/dist/types/commands/optimize/shared.d.mts.map +0 -1
- package/dist/types/commands/optimize/types.d.mts +0 -9
- package/dist/types/commands/optimize/types.d.mts.map +0 -1
- package/dist/types/commands/optimize/update-lockfile.d.mts +0 -11
- package/dist/types/commands/optimize/update-lockfile.d.mts.map +0 -1
- package/dist/types/commands/optimize/update-manifest-by-agent.d.mts +0 -8
- package/dist/types/commands/optimize/update-manifest-by-agent.d.mts.map +0 -1
- package/dist/types/commands/organization/cmd-organization-dependencies.d.mts +0 -10
- package/dist/types/commands/organization/cmd-organization-dependencies.d.mts.map +0 -1
- package/dist/types/commands/organization/cmd-organization-list.d.mts +0 -10
- package/dist/types/commands/organization/cmd-organization-list.d.mts.map +0 -1
- package/dist/types/commands/organization/cmd-organization-policy-license.d.mts +0 -10
- package/dist/types/commands/organization/cmd-organization-policy-license.d.mts.map +0 -1
- package/dist/types/commands/organization/cmd-organization-policy-security.d.mts +0 -10
- package/dist/types/commands/organization/cmd-organization-policy-security.d.mts.map +0 -1
- package/dist/types/commands/organization/cmd-organization-policy.d.mts +0 -3
- package/dist/types/commands/organization/cmd-organization-policy.d.mts.map +0 -1
- package/dist/types/commands/organization/cmd-organization-quota.d.mts +0 -9
- package/dist/types/commands/organization/cmd-organization-quota.d.mts.map +0 -1
- package/dist/types/commands/organization/cmd-organization.d.mts +0 -3
- package/dist/types/commands/organization/cmd-organization.d.mts.map +0 -1
- package/dist/types/commands/organization/fetch-dependencies.d.mts +0 -12
- package/dist/types/commands/organization/fetch-dependencies.d.mts.map +0 -1
- package/dist/types/commands/organization/fetch-license-policy.d.mts +0 -8
- package/dist/types/commands/organization/fetch-license-policy.d.mts.map +0 -1
- package/dist/types/commands/organization/fetch-organization-list.d.mts +0 -20
- package/dist/types/commands/organization/fetch-organization-list.d.mts.map +0 -1
- package/dist/types/commands/organization/fetch-quota.d.mts +0 -8
- package/dist/types/commands/organization/fetch-quota.d.mts.map +0 -1
- package/dist/types/commands/organization/fetch-security-policy.d.mts +0 -8
- package/dist/types/commands/organization/fetch-security-policy.d.mts.map +0 -1
- package/dist/types/commands/organization/handle-dependencies.d.mts +0 -7
- package/dist/types/commands/organization/handle-dependencies.d.mts.map +0 -1
- package/dist/types/commands/organization/handle-license-policy.d.mts +0 -3
- package/dist/types/commands/organization/handle-license-policy.d.mts.map +0 -1
- package/dist/types/commands/organization/handle-organization-list.d.mts +0 -3
- package/dist/types/commands/organization/handle-organization-list.d.mts.map +0 -1
- package/dist/types/commands/organization/handle-quota.d.mts +0 -3
- package/dist/types/commands/organization/handle-quota.d.mts.map +0 -1
- package/dist/types/commands/organization/handle-security-policy.d.mts +0 -3
- package/dist/types/commands/organization/handle-security-policy.d.mts.map +0 -1
- package/dist/types/commands/organization/output-dependencies.d.mts +0 -8
- package/dist/types/commands/organization/output-dependencies.d.mts.map +0 -1
- package/dist/types/commands/organization/output-license-policy.d.mts +0 -4
- package/dist/types/commands/organization/output-license-policy.d.mts.map +0 -1
- package/dist/types/commands/organization/output-organization-list.d.mts +0 -4
- package/dist/types/commands/organization/output-organization-list.d.mts.map +0 -1
- package/dist/types/commands/organization/output-quota.d.mts +0 -4
- package/dist/types/commands/organization/output-quota.d.mts.map +0 -1
- package/dist/types/commands/organization/output-security-policy.d.mts +0 -4
- package/dist/types/commands/organization/output-security-policy.d.mts.map +0 -1
- package/dist/types/commands/package/cmd-package-score.d.mts +0 -10
- package/dist/types/commands/package/cmd-package-score.d.mts.map +0 -1
- package/dist/types/commands/package/cmd-package-shallow.d.mts +0 -17
- package/dist/types/commands/package/cmd-package-shallow.d.mts.map +0 -1
- package/dist/types/commands/package/cmd-package.d.mts +0 -3
- package/dist/types/commands/package/cmd-package.d.mts.map +0 -1
- package/dist/types/commands/package/fetch-purl-deep-score.d.mts +0 -51
- package/dist/types/commands/package/fetch-purl-deep-score.d.mts.map +0 -1
- package/dist/types/commands/package/fetch-purls-shallow-score.d.mts +0 -8
- package/dist/types/commands/package/fetch-purls-shallow-score.d.mts.map +0 -1
- package/dist/types/commands/package/handle-purl-deep-score.d.mts +0 -3
- package/dist/types/commands/package/handle-purl-deep-score.d.mts.map +0 -1
- package/dist/types/commands/package/handle-purls-shallow-score.d.mts +0 -6
- package/dist/types/commands/package/handle-purls-shallow-score.d.mts.map +0 -1
- package/dist/types/commands/package/output-purls-deep-score.d.mts +0 -5
- package/dist/types/commands/package/output-purls-deep-score.d.mts.map +0 -1
- package/dist/types/commands/package/output-purls-shallow-score.d.mts +0 -29
- package/dist/types/commands/package/output-purls-shallow-score.d.mts.map +0 -1
- package/dist/types/commands/package/parse-package-specifiers.d.mts +0 -9
- package/dist/types/commands/package/parse-package-specifiers.d.mts.map +0 -1
- package/dist/types/commands/patch/cmd-patch.d.mts +0 -10
- package/dist/types/commands/patch/cmd-patch.d.mts.map +0 -1
- package/dist/types/commands/patch/handle-patch.d.mts +0 -12
- package/dist/types/commands/patch/handle-patch.d.mts.map +0 -1
- package/dist/types/commands/patch/manifest-schema.d.mts +0 -34
- package/dist/types/commands/patch/manifest-schema.d.mts.map +0 -1
- package/dist/types/commands/patch/output-patch-result.d.mts +0 -5
- package/dist/types/commands/patch/output-patch-result.d.mts.map +0 -1
- package/dist/types/commands/pnpm/cmd-pnpm.d.mts +0 -10
- package/dist/types/commands/pnpm/cmd-pnpm.d.mts.map +0 -1
- package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts +0 -9
- package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts.map +0 -1
- package/dist/types/commands/raw-npm/run-raw-npm.d.mts +0 -2
- package/dist/types/commands/raw-npm/run-raw-npm.d.mts.map +0 -1
- package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts +0 -9
- package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts.map +0 -1
- package/dist/types/commands/raw-npx/run-raw-npx.d.mts +0 -2
- package/dist/types/commands/raw-npx/run-raw-npx.d.mts.map +0 -1
- package/dist/types/commands/repository/cmd-repository-create.d.mts +0 -10
- package/dist/types/commands/repository/cmd-repository-create.d.mts.map +0 -1
- package/dist/types/commands/repository/cmd-repository-del.d.mts +0 -10
- package/dist/types/commands/repository/cmd-repository-del.d.mts.map +0 -1
- package/dist/types/commands/repository/cmd-repository-list.d.mts +0 -10
- package/dist/types/commands/repository/cmd-repository-list.d.mts.map +0 -1
- package/dist/types/commands/repository/cmd-repository-update.d.mts +0 -10
- package/dist/types/commands/repository/cmd-repository-update.d.mts.map +0 -1
- package/dist/types/commands/repository/cmd-repository-view.d.mts +0 -10
- package/dist/types/commands/repository/cmd-repository-view.d.mts.map +0 -1
- package/dist/types/commands/repository/cmd-repository.d.mts +0 -3
- package/dist/types/commands/repository/cmd-repository.d.mts.map +0 -1
- package/dist/types/commands/repository/fetch-create-repo.d.mts +0 -16
- package/dist/types/commands/repository/fetch-create-repo.d.mts.map +0 -1
- package/dist/types/commands/repository/fetch-delete-repo.d.mts +0 -8
- package/dist/types/commands/repository/fetch-delete-repo.d.mts.map +0 -1
- package/dist/types/commands/repository/fetch-list-all-repos.d.mts +0 -10
- package/dist/types/commands/repository/fetch-list-all-repos.d.mts.map +0 -1
- package/dist/types/commands/repository/fetch-list-repos.d.mts +0 -15
- package/dist/types/commands/repository/fetch-list-repos.d.mts.map +0 -1
- package/dist/types/commands/repository/fetch-update-repo.d.mts +0 -16
- package/dist/types/commands/repository/fetch-update-repo.d.mts.map +0 -1
- package/dist/types/commands/repository/fetch-view-repo.d.mts +0 -8
- package/dist/types/commands/repository/fetch-view-repo.d.mts.map +0 -1
- package/dist/types/commands/repository/handle-create-repo.d.mts +0 -10
- package/dist/types/commands/repository/handle-create-repo.d.mts.map +0 -1
- package/dist/types/commands/repository/handle-delete-repo.d.mts +0 -3
- package/dist/types/commands/repository/handle-delete-repo.d.mts.map +0 -1
- package/dist/types/commands/repository/handle-list-repos.d.mts +0 -12
- package/dist/types/commands/repository/handle-list-repos.d.mts.map +0 -1
- package/dist/types/commands/repository/handle-update-repo.d.mts +0 -10
- package/dist/types/commands/repository/handle-update-repo.d.mts.map +0 -1
- package/dist/types/commands/repository/handle-view-repo.d.mts +0 -3
- package/dist/types/commands/repository/handle-view-repo.d.mts.map +0 -1
- package/dist/types/commands/repository/output-create-repo.d.mts +0 -4
- package/dist/types/commands/repository/output-create-repo.d.mts.map +0 -1
- package/dist/types/commands/repository/output-delete-repo.d.mts +0 -4
- package/dist/types/commands/repository/output-delete-repo.d.mts.map +0 -1
- package/dist/types/commands/repository/output-list-repos.d.mts +0 -5
- package/dist/types/commands/repository/output-list-repos.d.mts.map +0 -1
- package/dist/types/commands/repository/output-update-repo.d.mts +0 -4
- package/dist/types/commands/repository/output-update-repo.d.mts.map +0 -1
- package/dist/types/commands/repository/output-view-repo.d.mts +0 -4
- package/dist/types/commands/repository/output-view-repo.d.mts.map +0 -1
- package/dist/types/commands/repository/types.d.mts +0 -2
- package/dist/types/commands/repository/types.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan-create.d.mts +0 -10
- package/dist/types/commands/scan/cmd-scan-create.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan-del.d.mts +0 -10
- package/dist/types/commands/scan/cmd-scan-del.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan-diff.d.mts +0 -10
- package/dist/types/commands/scan/cmd-scan-diff.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan-github.d.mts +0 -10
- package/dist/types/commands/scan/cmd-scan-github.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan-list.d.mts +0 -4
- package/dist/types/commands/scan/cmd-scan-list.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan-metadata.d.mts +0 -4
- package/dist/types/commands/scan/cmd-scan-metadata.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan-reach.d.mts +0 -10
- package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan-report.d.mts +0 -4
- package/dist/types/commands/scan/cmd-scan-report.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan-setup.d.mts +0 -9
- package/dist/types/commands/scan/cmd-scan-setup.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan-view.d.mts +0 -4
- package/dist/types/commands/scan/cmd-scan-view.d.mts.map +0 -1
- package/dist/types/commands/scan/cmd-scan.d.mts +0 -3
- package/dist/types/commands/scan/cmd-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/create-scan-from-github.d.mts +0 -12
- package/dist/types/commands/scan/create-scan-from-github.d.mts.map +0 -1
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +0 -20
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts +0 -8
- package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/fetch-diff-scan.d.mts +0 -8
- package/dist/types/commands/scan/fetch-diff-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/fetch-list-scans.d.mts +0 -18
- package/dist/types/commands/scan/fetch-list-scans.d.mts.map +0 -1
- package/dist/types/commands/scan/fetch-report-data.d.mts +0 -17
- package/dist/types/commands/scan/fetch-report-data.d.mts.map +0 -1
- package/dist/types/commands/scan/fetch-scan-metadata.d.mts +0 -8
- package/dist/types/commands/scan/fetch-scan-metadata.d.mts.map +0 -1
- package/dist/types/commands/scan/fetch-scan.d.mts +0 -4
- package/dist/types/commands/scan/fetch-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +0 -10
- package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts.map +0 -1
- package/dist/types/commands/scan/finalize-tier1-scan.d.mts +0 -12
- package/dist/types/commands/scan/finalize-tier1-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/generate-report.d.mts +0 -44
- package/dist/types/commands/scan/generate-report.d.mts.map +0 -1
- package/dist/types/commands/scan/handle-create-github-scan.d.mts +0 -12
- package/dist/types/commands/scan/handle-create-github-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/handle-create-new-scan.d.mts +0 -29
- package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/handle-delete-scan.d.mts +0 -3
- package/dist/types/commands/scan/handle-delete-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/handle-diff-scan.d.mts +0 -10
- package/dist/types/commands/scan/handle-diff-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/handle-list-scans.d.mts +0 -13
- package/dist/types/commands/scan/handle-list-scans.d.mts.map +0 -1
- package/dist/types/commands/scan/handle-scan-config.d.mts +0 -2
- package/dist/types/commands/scan/handle-scan-config.d.mts.map +0 -1
- package/dist/types/commands/scan/handle-scan-metadata.d.mts +0 -3
- package/dist/types/commands/scan/handle-scan-metadata.d.mts.map +0 -1
- package/dist/types/commands/scan/handle-scan-reach.d.mts +0 -12
- package/dist/types/commands/scan/handle-scan-reach.d.mts.map +0 -1
- package/dist/types/commands/scan/handle-scan-report.d.mts +0 -14
- package/dist/types/commands/scan/handle-scan-report.d.mts.map +0 -1
- package/dist/types/commands/scan/handle-scan-view.d.mts +0 -3
- package/dist/types/commands/scan/handle-scan-view.d.mts.map +0 -1
- package/dist/types/commands/scan/output-create-new-scan.d.mts +0 -10
- package/dist/types/commands/scan/output-create-new-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/output-delete-scan.d.mts +0 -4
- package/dist/types/commands/scan/output-delete-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/output-diff-scan.d.mts +0 -8
- package/dist/types/commands/scan/output-diff-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/output-list-scans.d.mts +0 -4
- package/dist/types/commands/scan/output-list-scans.d.mts.map +0 -1
- package/dist/types/commands/scan/output-scan-config-result.d.mts +0 -3
- package/dist/types/commands/scan/output-scan-config-result.d.mts.map +0 -1
- package/dist/types/commands/scan/output-scan-github.d.mts +0 -3
- package/dist/types/commands/scan/output-scan-github.d.mts.map +0 -1
- package/dist/types/commands/scan/output-scan-metadata.d.mts +0 -4
- package/dist/types/commands/scan/output-scan-metadata.d.mts.map +0 -1
- package/dist/types/commands/scan/output-scan-reach.d.mts +0 -7
- package/dist/types/commands/scan/output-scan-reach.d.mts.map +0 -1
- package/dist/types/commands/scan/output-scan-report.d.mts +0 -22
- package/dist/types/commands/scan/output-scan-report.d.mts.map +0 -1
- package/dist/types/commands/scan/output-scan-view.d.mts +0 -4
- package/dist/types/commands/scan/output-scan-view.d.mts.map +0 -1
- package/dist/types/commands/scan/perform-reachability-analysis.d.mts +0 -27
- package/dist/types/commands/scan/perform-reachability-analysis.d.mts.map +0 -1
- package/dist/types/commands/scan/reachability-flags.d.mts +0 -3
- package/dist/types/commands/scan/reachability-flags.d.mts.map +0 -1
- package/dist/types/commands/scan/setup-scan-config.d.mts +0 -3
- package/dist/types/commands/scan/setup-scan-config.d.mts.map +0 -1
- package/dist/types/commands/scan/stream-scan.d.mts +0 -7
- package/dist/types/commands/scan/stream-scan.d.mts.map +0 -1
- package/dist/types/commands/scan/suggest-org-slug.d.mts +0 -2
- package/dist/types/commands/scan/suggest-org-slug.d.mts.map +0 -1
- package/dist/types/commands/scan/suggest-to-persist-orgslug.d.mts +0 -2
- package/dist/types/commands/scan/suggest-to-persist-orgslug.d.mts.map +0 -1
- package/dist/types/commands/scan/suggest_branch_slug.d.mts +0 -2
- package/dist/types/commands/scan/suggest_branch_slug.d.mts.map +0 -1
- package/dist/types/commands/scan/suggest_target.d.mts +0 -2
- package/dist/types/commands/scan/suggest_target.d.mts.map +0 -1
- package/dist/types/commands/scan/types.d.mts +0 -3
- package/dist/types/commands/scan/types.d.mts.map +0 -1
- package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts +0 -10
- package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts.map +0 -1
- package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts +0 -13
- package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts.map +0 -1
- package/dist/types/commands/threat-feed/handle-threat-feed.d.mts +0 -13
- package/dist/types/commands/threat-feed/handle-threat-feed.d.mts.map +0 -1
- package/dist/types/commands/threat-feed/output-threat-feed.d.mts +0 -4
- package/dist/types/commands/threat-feed/output-threat-feed.d.mts.map +0 -1
- package/dist/types/commands/threat-feed/types.d.mts +0 -15
- package/dist/types/commands/threat-feed/types.d.mts.map +0 -1
- package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts +0 -8
- package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts.map +0 -1
- package/dist/types/commands/uninstall/cmd-uninstall.d.mts +0 -3
- package/dist/types/commands/uninstall/cmd-uninstall.d.mts.map +0 -1
- package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts +0 -2
- package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts.map +0 -1
- package/dist/types/commands/uninstall/output-uninstall-completion.d.mts +0 -6
- package/dist/types/commands/uninstall/output-uninstall-completion.d.mts.map +0 -1
- package/dist/types/commands/uninstall/teardown-tab-completion.d.mts +0 -6
- package/dist/types/commands/uninstall/teardown-tab-completion.d.mts.map +0 -1
- package/dist/types/commands/wrapper/add-socket-wrapper.d.mts +0 -2
- package/dist/types/commands/wrapper/add-socket-wrapper.d.mts.map +0 -1
- package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts +0 -2
- package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts.map +0 -1
- package/dist/types/commands/wrapper/cmd-wrapper.d.mts +0 -9
- package/dist/types/commands/wrapper/cmd-wrapper.d.mts.map +0 -1
- package/dist/types/commands/wrapper/postinstall-wrapper.d.mts +0 -2
- package/dist/types/commands/wrapper/postinstall-wrapper.d.mts.map +0 -1
- package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts +0 -2
- package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts.map +0 -1
- package/dist/types/commands/yarn/cmd-yarn.d.mts +0 -10
- package/dist/types/commands/yarn/cmd-yarn.d.mts.map +0 -1
- package/dist/types/commands.d.mts +0 -203
- package/dist/types/commands.d.mts.map +0 -1
- package/dist/types/constants.d.mts +0 -299
- package/dist/types/constants.d.mts.map +0 -1
- package/dist/types/flags.d.mts +0 -18
- package/dist/types/flags.d.mts.map +0 -1
- package/dist/types/instrument-with-sentry.d.mts +0 -2
- package/dist/types/instrument-with-sentry.d.mts.map +0 -1
- package/dist/types/npm-cli.d.mts +0 -3
- package/dist/types/npm-cli.d.mts.map +0 -1
- package/dist/types/npx-cli.d.mts +0 -3
- package/dist/types/npx-cli.d.mts.map +0 -1
- package/dist/types/pnpm-cli.d.mts +0 -3
- package/dist/types/pnpm-cli.d.mts.map +0 -1
- package/dist/types/sea/bootstrap.d.mts +0 -2
- package/dist/types/sea/bootstrap.d.mts.map +0 -1
- package/dist/types/sea/build-sea.d.mts +0 -27
- package/dist/types/sea/build-sea.d.mts.map +0 -1
- package/dist/types/shadow/common.d.mts +0 -23
- package/dist/types/shadow/common.d.mts.map +0 -1
- package/dist/types/shadow/npm/arborist/index.d.mts +0 -8
- package/dist/types/shadow/npm/arborist/index.d.mts.map +0 -1
- package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts +0 -35
- package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts.map +0 -1
- package/dist/types/shadow/npm/arborist/types.d.mts +0 -123
- package/dist/types/shadow/npm/arborist/types.d.mts.map +0 -1
- package/dist/types/shadow/npm/arborist-helpers.d.mts +0 -24
- package/dist/types/shadow/npm/arborist-helpers.d.mts.map +0 -1
- package/dist/types/shadow/npm/bin.d.mts +0 -5
- package/dist/types/shadow/npm/bin.d.mts.map +0 -1
- package/dist/types/shadow/npm/inject.d.mts +0 -2
- package/dist/types/shadow/npm/inject.d.mts.map +0 -1
- package/dist/types/shadow/npm/install.d.mts +0 -13
- package/dist/types/shadow/npm/install.d.mts.map +0 -1
- package/dist/types/shadow/npm/paths.d.mts +0 -6
- package/dist/types/shadow/npm/paths.d.mts.map +0 -1
- package/dist/types/shadow/npm-base.d.mts +0 -11
- package/dist/types/shadow/npm-base.d.mts.map +0 -1
- package/dist/types/shadow/npx/bin.d.mts +0 -5
- package/dist/types/shadow/npx/bin.d.mts.map +0 -1
- package/dist/types/shadow/pnpm/bin.d.mts +0 -10
- package/dist/types/shadow/pnpm/bin.d.mts.map +0 -1
- package/dist/types/shadow/stdio-ipc.d.mts +0 -7
- package/dist/types/shadow/stdio-ipc.d.mts.map +0 -1
- package/dist/types/shadow/yarn/bin.d.mts +0 -10
- package/dist/types/shadow/yarn/bin.d.mts.map +0 -1
- package/dist/types/test/json-output-validation.d.mts +0 -37
- package/dist/types/test/json-output-validation.d.mts.map +0 -1
- package/dist/types/test/mocks/socket-auth.d.mts +0 -88
- package/dist/types/test/mocks/socket-auth.d.mts.map +0 -1
- package/dist/types/types.d.mts +0 -29
- package/dist/types/types.d.mts.map +0 -1
- package/dist/types/utils/agent.d.mts +0 -12
- package/dist/types/utils/agent.d.mts.map +0 -1
- package/dist/types/utils/alert/artifact.d.mts +0 -21
- package/dist/types/utils/alert/artifact.d.mts.map +0 -1
- package/dist/types/utils/alert/fix.d.mts +0 -6
- package/dist/types/utils/alert/fix.d.mts.map +0 -1
- package/dist/types/utils/alert/severity.d.mts +0 -14
- package/dist/types/utils/alert/severity.d.mts.map +0 -1
- package/dist/types/utils/alerts-map.d.mts +0 -27
- package/dist/types/utils/alerts-map.d.mts.map +0 -1
- package/dist/types/utils/api.d.mts +0 -44
- package/dist/types/utils/api.d.mts.map +0 -1
- package/dist/types/utils/check-input.d.mts +0 -9
- package/dist/types/utils/check-input.d.mts.map +0 -1
- package/dist/types/utils/cmd.d.mts +0 -50
- package/dist/types/utils/cmd.d.mts.map +0 -1
- package/dist/types/utils/coana.d.mts +0 -2
- package/dist/types/utils/coana.d.mts.map +0 -1
- package/dist/types/utils/color-or-markdown.d.mts +0 -16
- package/dist/types/utils/color-or-markdown.d.mts.map +0 -1
- package/dist/types/utils/completion.d.mts +0 -11
- package/dist/types/utils/completion.d.mts.map +0 -1
- package/dist/types/utils/config.d.mts +0 -34
- package/dist/types/utils/config.d.mts.map +0 -1
- package/dist/types/utils/cve-to-ghsa.d.mts +0 -6
- package/dist/types/utils/cve-to-ghsa.d.mts.map +0 -1
- package/dist/types/utils/debug.d.mts +0 -45
- package/dist/types/utils/debug.d.mts.map +0 -1
- package/dist/types/utils/determine-org-slug.d.mts +0 -2
- package/dist/types/utils/determine-org-slug.d.mts.map +0 -1
- package/dist/types/utils/dlx-binary.d.mts +0 -58
- package/dist/types/utils/dlx-binary.d.mts.map +0 -1
- package/dist/types/utils/dlx-detection.d.mts +0 -29
- package/dist/types/utils/dlx-detection.d.mts.map +0 -1
- package/dist/types/utils/dlx.d.mts +0 -36
- package/dist/types/utils/dlx.d.mts.map +0 -1
- package/dist/types/utils/ecosystem.d.mts +0 -20
- package/dist/types/utils/ecosystem.d.mts.map +0 -1
- package/dist/types/utils/errors.d.mts +0 -62
- package/dist/types/utils/errors.d.mts.map +0 -1
- package/dist/types/utils/extract-names.d.mts +0 -15
- package/dist/types/utils/extract-names.d.mts.map +0 -1
- package/dist/types/utils/fail-msg-with-badge.d.mts +0 -2
- package/dist/types/utils/fail-msg-with-badge.d.mts.map +0 -1
- package/dist/types/utils/filter-config.d.mts +0 -5
- package/dist/types/utils/filter-config.d.mts.map +0 -1
- package/dist/types/utils/fs.d.mts +0 -8
- package/dist/types/utils/fs.d.mts.map +0 -1
- package/dist/types/utils/get-output-kind.d.mts +0 -3
- package/dist/types/utils/get-output-kind.d.mts.map +0 -1
- package/dist/types/utils/git.d.mts +0 -35
- package/dist/types/utils/git.d.mts.map +0 -1
- package/dist/types/utils/github.d.mts +0 -38
- package/dist/types/utils/github.d.mts.map +0 -1
- package/dist/types/utils/glob.d.mts +0 -15
- package/dist/types/utils/glob.d.mts.map +0 -1
- package/dist/types/utils/lockfile.d.mts +0 -2
- package/dist/types/utils/lockfile.d.mts.map +0 -1
- package/dist/types/utils/map-to-object.d.mts +0 -10
- package/dist/types/utils/map-to-object.d.mts.map +0 -1
- package/dist/types/utils/markdown.d.mts +0 -27
- package/dist/types/utils/markdown.d.mts.map +0 -1
- package/dist/types/utils/meow-with-subcommands.d.mts +0 -83
- package/dist/types/utils/meow-with-subcommands.d.mts.map +0 -1
- package/dist/types/utils/ms-at-home.d.mts +0 -2
- package/dist/types/utils/ms-at-home.d.mts.map +0 -1
- package/dist/types/utils/npm-config.d.mts +0 -14
- package/dist/types/utils/npm-config.d.mts.map +0 -1
- package/dist/types/utils/npm-package-arg.d.mts +0 -8
- package/dist/types/utils/npm-package-arg.d.mts.map +0 -1
- package/dist/types/utils/npm-paths.d.mts +0 -7
- package/dist/types/utils/npm-paths.d.mts.map +0 -1
- package/dist/types/utils/npm-spec.d.mts +0 -57
- package/dist/types/utils/npm-spec.d.mts.map +0 -1
- package/dist/types/utils/objects.d.mts +0 -3
- package/dist/types/utils/objects.d.mts.map +0 -1
- package/dist/types/utils/organization.d.mts +0 -5
- package/dist/types/utils/organization.d.mts.map +0 -1
- package/dist/types/utils/output-formatting.d.mts +0 -20
- package/dist/types/utils/output-formatting.d.mts.map +0 -1
- package/dist/types/utils/package-environment.d.mts +0 -57
- package/dist/types/utils/package-environment.d.mts.map +0 -1
- package/dist/types/utils/path-resolve.d.mts +0 -14
- package/dist/types/utils/path-resolve.d.mts.map +0 -1
- package/dist/types/utils/pnpm-paths.d.mts +0 -5
- package/dist/types/utils/pnpm-paths.d.mts.map +0 -1
- package/dist/types/utils/pnpm.d.mts +0 -11
- package/dist/types/utils/pnpm.d.mts.map +0 -1
- package/dist/types/utils/purl-to-ghsa.d.mts +0 -6
- package/dist/types/utils/purl-to-ghsa.d.mts.map +0 -1
- package/dist/types/utils/purl.d.mts +0 -71
- package/dist/types/utils/purl.d.mts.map +0 -1
- package/dist/types/utils/requirements.d.mts +0 -125
- package/dist/types/utils/requirements.d.mts.map +0 -1
- package/dist/types/utils/sdk.d.mts +0 -17
- package/dist/types/utils/sdk.d.mts.map +0 -1
- package/dist/types/utils/semver.d.mts +0 -7
- package/dist/types/utils/semver.d.mts.map +0 -1
- package/dist/types/utils/serialize-result-json.d.mts +0 -5
- package/dist/types/utils/serialize-result-json.d.mts.map +0 -1
- package/dist/types/utils/shadow-links.d.mts +0 -5
- package/dist/types/utils/shadow-links.d.mts.map +0 -1
- package/dist/types/utils/socket-json.d.mts +0 -59
- package/dist/types/utils/socket-json.d.mts.map +0 -1
- package/dist/types/utils/socket-package-alert.d.mts +0 -80
- package/dist/types/utils/socket-package-alert.d.mts.map +0 -1
- package/dist/types/utils/socket-url.d.mts +0 -8
- package/dist/types/utils/socket-url.d.mts.map +0 -1
- package/dist/types/utils/spec.d.mts +0 -5
- package/dist/types/utils/spec.d.mts.map +0 -1
- package/dist/types/utils/strings.d.mts +0 -14
- package/dist/types/utils/strings.d.mts.map +0 -1
- package/dist/types/utils/terminal-link.d.mts +0 -52
- package/dist/types/utils/terminal-link.d.mts.map +0 -1
- package/dist/types/utils/tildify.d.mts +0 -2
- package/dist/types/utils/tildify.d.mts.map +0 -1
- package/dist/types/utils/translations.d.mts +0 -617
- package/dist/types/utils/translations.d.mts.map +0 -1
- package/dist/types/utils/walk-nested-map.d.mts +0 -7
- package/dist/types/utils/walk-nested-map.d.mts.map +0 -1
- package/dist/types/utils/yarn-paths.d.mts +0 -5
- package/dist/types/utils/yarn-paths.d.mts.map +0 -1
- package/dist/types/utils/yarn-version.d.mts +0 -2
- package/dist/types/utils/yarn-version.d.mts.map +0 -1
- package/dist/types/yarn-cli.d.mts +0 -3
- package/dist/types/yarn-cli.d.mts.map +0 -1
- package/dist/utils.js +0 -6146
- package/dist/utils.js.map +0 -1
- package/dist/vendor.js +0 -162074
- package/dist/yarn-cli.js +0 -30
- package/dist/yarn-cli.js.map +0 -1
- package/external/@socketsecurity/registry/LICENSE +0 -21
- package/external/@socketsecurity/registry/README.md +0 -9
- package/external/@socketsecurity/registry/extensions.json +0 -28
- package/external/@socketsecurity/registry/external/@inquirer/confirm.js +0 -3165
- package/external/@socketsecurity/registry/external/@inquirer/input.js +0 -3202
- package/external/@socketsecurity/registry/external/@inquirer/password.js +0 -3307
- package/external/@socketsecurity/registry/external/@inquirer/search.js +0 -3519
- package/external/@socketsecurity/registry/external/@inquirer/select.js +0 -3655
- package/external/@socketsecurity/registry/external/@npmcli/package-json/index.js +0 -21406
- package/external/@socketsecurity/registry/external/@npmcli/package-json/lib/read-package.js +0 -183
- package/external/@socketsecurity/registry/external/@npmcli/package-json/lib/sort.js +0 -274
- package/external/@socketsecurity/registry/external/@npmcli/promise-spawn.js +0 -704
- package/external/@socketsecurity/registry/external/@socketregistry/is-unicode-supported.js +0 -54
- package/external/@socketsecurity/registry/external/@socketregistry/packageurl-js.js +0 -4516
- package/external/@socketsecurity/registry/external/@socketregistry/yocto-spinner.js +0 -453
- package/external/@socketsecurity/registry/external/@yarnpkg/extensions.js +0 -1406
- package/external/@socketsecurity/registry/external/browserslist.js +0 -20496
- package/external/@socketsecurity/registry/external/cacache.js +0 -16208
- package/external/@socketsecurity/registry/external/debug.js +0 -1163
- package/external/@socketsecurity/registry/external/fast-glob.js +0 -7994
- package/external/@socketsecurity/registry/external/fast-sort.js +0 -181
- package/external/@socketsecurity/registry/external/libnpmpack.js +0 -106271
- package/external/@socketsecurity/registry/external/make-fetch-happen.js +0 -38997
- package/external/@socketsecurity/registry/external/normalize-package-data.js +0 -5343
- package/external/@socketsecurity/registry/external/npm-package-arg.js +0 -5773
- package/external/@socketsecurity/registry/external/pacote.js +0 -74109
- package/external/@socketsecurity/registry/external/picomatch.js +0 -2307
- package/external/@socketsecurity/registry/external/semver.js +0 -2618
- package/external/@socketsecurity/registry/external/signal-exit.js +0 -336
- package/external/@socketsecurity/registry/external/spdx-correct.js +0 -1457
- package/external/@socketsecurity/registry/external/spdx-expression-parse.js +0 -1043
- package/external/@socketsecurity/registry/external/streaming-iterables.js +0 -326
- package/external/@socketsecurity/registry/external/validate-npm-package-name.js +0 -108
- package/external/@socketsecurity/registry/external/which.js +0 -405
- package/external/@socketsecurity/registry/external/yoctocolors-cjs.js +0 -101
- package/external/@socketsecurity/registry/index.js +0 -31
- package/external/@socketsecurity/registry/lib/agent.js +0 -390
- package/external/@socketsecurity/registry/lib/arrays.js +0 -89
- package/external/@socketsecurity/registry/lib/bin.js +0 -650
- package/external/@socketsecurity/registry/lib/constants/abort-controller.js +0 -15
- package/external/@socketsecurity/registry/lib/constants/abort-signal.js +0 -27
- package/external/@socketsecurity/registry/lib/constants/at-latest.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/biome-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/bun-lock.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/bun-lockb.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/bun.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ci.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/column-limit.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/copy-left-licenses.js +0 -27
- package/external/@socketsecurity/registry/lib/constants/darwin.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/dot-git-dir.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/dot-package-lock-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/dot-socket-dir.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/empty-file.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/empty-value.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/env.js +0 -59
- package/external/@socketsecurity/registry/lib/constants/eslint-config-js.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/esnext.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/exec-path.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-cjs.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-cmd.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-cts.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-dts.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-js.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-lock.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-lockb.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-md.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-mjs.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-mts.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-ps1.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-yaml.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-yml.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/extensions-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/extensions.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/get-ipc.js +0 -10
- package/external/@socketsecurity/registry/lib/constants/gitignore.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/index.js +0 -139
- package/external/@socketsecurity/registry/lib/constants/ipc-handler.js +0 -19
- package/external/@socketsecurity/registry/lib/constants/ipc-object.js +0 -6
- package/external/@socketsecurity/registry/lib/constants/ipc-promise.js +0 -47
- package/external/@socketsecurity/registry/lib/constants/ipc-target.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/k-internals-symbol.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/latest.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license-glob-recursive.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license-glob.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license-original-glob-recursive.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license-original-glob.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license-original.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/lifecycle-script-names.js +0 -18
- package/external/@socketsecurity/registry/lib/constants/loop-sentinel.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/maintained-node-versions.js +0 -47
- package/external/@socketsecurity/registry/lib/constants/manifest-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/mit.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/node-auth-token.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/node-debug-flags.js +0 -9
- package/external/@socketsecurity/registry/lib/constants/node-env.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/node-harden-flags.js +0 -29
- package/external/@socketsecurity/registry/lib/constants/node-modules-glob-recursive.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/node-modules.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/node-no-warnings-flags.js +0 -16
- package/external/@socketsecurity/registry/lib/constants/node-version.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/npm-exec-path.js +0 -5
- package/external/@socketsecurity/registry/lib/constants/npm-real-exec-path.js +0 -6
- package/external/@socketsecurity/registry/lib/constants/npm-shrinkwrap-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/npm.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/npx.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/overrides.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/package-default-node-range.js +0 -6
- package/external/@socketsecurity/registry/lib/constants/package-default-socket-categories.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/package-default-version.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/package-extensions.js +0 -47
- package/external/@socketsecurity/registry/lib/constants/package-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/package-lock-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/packument-cache.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/pacote-cache-path.js +0 -9
- package/external/@socketsecurity/registry/lib/constants/pnpm-exec-path.js +0 -5
- package/external/@socketsecurity/registry/lib/constants/pnpm-lock-yaml.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/pnpm.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/pre-commit.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/readme-glob-recursive.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/readme-glob.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/readme-md.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/registry-scope-delimiter.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/registry.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/resolutions.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-github-org.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-ipc-handshake.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-override-scope.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-public-api-token.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-registry-npm-org.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-registry-package-name.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-registry-repo-name.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-registry-scope.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-security-scope.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/spinner.js +0 -4
- package/external/@socketsecurity/registry/lib/constants/supports-node-compile-cache-api.js +0 -8
- package/external/@socketsecurity/registry/lib/constants/supports-node-compile-cache-env-var.js +0 -8
- package/external/@socketsecurity/registry/lib/constants/supports-node-disable-warning-flag.js +0 -8
- package/external/@socketsecurity/registry/lib/constants/supports-node-permission-flag.js +0 -8
- package/external/@socketsecurity/registry/lib/constants/supports-node-require-module.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/supports-node-run.js +0 -8
- package/external/@socketsecurity/registry/lib/constants/supports-process-send.js +0 -5
- package/external/@socketsecurity/registry/lib/constants/ts-libs-available.js +0 -22
- package/external/@socketsecurity/registry/lib/constants/ts-types-available.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/tsconfig-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/undefined-token.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/unknown-error.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/unknown-value.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/unlicenced.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/unlicensed.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/utf8.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/vitest.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/vlt-lock-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/vlt.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/win32.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/yarn-berry.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/yarn-classic.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/yarn-exec-path.js +0 -5
- package/external/@socketsecurity/registry/lib/constants/yarn-lock.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/yarn.js +0 -3
- package/external/@socketsecurity/registry/lib/debug.js +0 -264
- package/external/@socketsecurity/registry/lib/env.js +0 -62
- package/external/@socketsecurity/registry/lib/fs.js +0 -556
- package/external/@socketsecurity/registry/lib/functions.js +0 -20
- package/external/@socketsecurity/registry/lib/globs.js +0 -145
- package/external/@socketsecurity/registry/lib/json.js +0 -69
- package/external/@socketsecurity/registry/lib/logger.js +0 -534
- package/external/@socketsecurity/registry/lib/objects.js +0 -422
- package/external/@socketsecurity/registry/lib/packages.js +0 -1376
- package/external/@socketsecurity/registry/lib/path.js +0 -231
- package/external/@socketsecurity/registry/lib/promises.js +0 -286
- package/external/@socketsecurity/registry/lib/prompts.js +0 -63
- package/external/@socketsecurity/registry/lib/regexps.js +0 -23
- package/external/@socketsecurity/registry/lib/sorts.js +0 -70
- package/external/@socketsecurity/registry/lib/spawn.js +0 -252
- package/external/@socketsecurity/registry/lib/spinner.js +0 -205
- package/external/@socketsecurity/registry/lib/streams.js +0 -84
- package/external/@socketsecurity/registry/lib/strings.js +0 -235
- package/external/@socketsecurity/registry/lib/url.js +0 -68
- package/external/@socketsecurity/registry/lib/words.js +0 -45
- package/external/@socketsecurity/registry/manifest.json +0 -1875
- package/external/blessed/LICENSE +0 -20
- package/external/blessed/README.md +0 -2421
- package/external/blessed/lib/alias.js +0 -528
- package/external/blessed/lib/blessed.js +0 -34
- package/external/blessed/lib/colors.js +0 -532
- package/external/blessed/lib/events.js +0 -191
- package/external/blessed/lib/gpmclient.js +0 -223
- package/external/blessed/lib/helpers.js +0 -167
- package/external/blessed/lib/keys.js +0 -341
- package/external/blessed/lib/program.js +0 -4297
- package/external/blessed/lib/tput.js +0 -3020
- package/external/blessed/lib/unicode.js +0 -792
- package/external/blessed/lib/widget.js +0 -62
- package/external/blessed/lib/widgets/ansiimage.js +0 -169
- package/external/blessed/lib/widgets/bigtext.js +0 -161
- package/external/blessed/lib/widgets/box.js +0 -36
- package/external/blessed/lib/widgets/button.js +0 -64
- package/external/blessed/lib/widgets/checkbox.js +0 -93
- package/external/blessed/lib/widgets/element.js +0 -2572
- package/external/blessed/lib/widgets/filemanager.js +0 -214
- package/external/blessed/lib/widgets/form.js +0 -269
- package/external/blessed/lib/widgets/image.js +0 -63
- package/external/blessed/lib/widgets/input.js +0 -36
- package/external/blessed/lib/widgets/layout.js +0 -235
- package/external/blessed/lib/widgets/line.js +0 -58
- package/external/blessed/lib/widgets/list.js +0 -601
- package/external/blessed/lib/widgets/listbar.js +0 -413
- package/external/blessed/lib/widgets/listtable.js +0 -254
- package/external/blessed/lib/widgets/loading.js +0 -90
- package/external/blessed/lib/widgets/log.js +0 -85
- package/external/blessed/lib/widgets/message.js +0 -125
- package/external/blessed/lib/widgets/node.js +0 -284
- package/external/blessed/lib/widgets/overlayimage.js +0 -719
- package/external/blessed/lib/widgets/progressbar.js +0 -159
- package/external/blessed/lib/widgets/prompt.js +0 -122
- package/external/blessed/lib/widgets/question.js +0 -118
- package/external/blessed/lib/widgets/radiobutton.js +0 -63
- package/external/blessed/lib/widgets/radioset.js +0 -38
- package/external/blessed/lib/widgets/screen.js +0 -2300
- package/external/blessed/lib/widgets/scrollablebox.js +0 -391
- package/external/blessed/lib/widgets/scrollabletext.js +0 -37
- package/external/blessed/lib/widgets/table.js +0 -356
- package/external/blessed/lib/widgets/terminal.js +0 -414
- package/external/blessed/lib/widgets/text.js +0 -37
- package/external/blessed/lib/widgets/textarea.js +0 -344
- package/external/blessed/lib/widgets/textbox.js +0 -79
- package/external/blessed/lib/widgets/video.js +0 -128
- package/external/blessed/usr/fonts/AUTHORS +0 -1
- package/external/blessed/usr/fonts/LICENSE +0 -94
- package/external/blessed/usr/fonts/README +0 -340
- package/external/blessed/usr/fonts/ter-u14b.json +0 -17826
- package/external/blessed/usr/fonts/ter-u14n.json +0 -17826
- package/external/blessed/usr/linux +0 -0
- package/external/blessed/usr/windows-ansi +0 -0
- package/external/blessed/usr/xterm +0 -0
- package/external/blessed/usr/xterm-256color +0 -0
- package/external/blessed/usr/xterm.termcap +0 -243
- package/external/blessed/usr/xterm.terminfo +0 -1977
- package/external/blessed/vendor/tng.js +0 -1757
- package/external/blessed-contrib/LICENSE.md +0 -21
- package/external/blessed-contrib/lib/layout/grid.js +0 -409
- package/external/blessed-contrib/lib/widget/charts/bar.js +0 -8370
- package/external/blessed-contrib/lib/widget/charts/line.js +0 -17924
- package/external/blessed-contrib/lib/widget/table.js +0 -187
- package/shadow-bin/npm +0 -27
- package/shadow-bin/npx +0 -27
- package/shadow-bin/pnpm +0 -27
- package/shadow-bin/yarn +0 -27
- /package/{translations.json → data/alert-translations.json} +0 -0
- /package/{requirements.json → data/command-api-requirements.json} +0 -0
- /package/{dist → data}/socket-completion.bash +0 -0
|
@@ -1,650 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const { readJsonSync } = /*@__PURE__*/ require('./fs')
|
|
4
|
-
const { getOwn } = /*@__PURE__*/ require('./objects')
|
|
5
|
-
const { isPath, normalizePath } = /*@__PURE__*/ require('./path')
|
|
6
|
-
const { spawn } = /*@__PURE__*/ require('./spawn')
|
|
7
|
-
|
|
8
|
-
let _fs
|
|
9
|
-
/**
|
|
10
|
-
* Lazily load the fs module to avoid Webpack errors.
|
|
11
|
-
* @returns {import('fs')} The Node.js fs module.
|
|
12
|
-
*/
|
|
13
|
-
/*@__NO_SIDE_EFFECTS__*/
|
|
14
|
-
function getFs() {
|
|
15
|
-
if (_fs === undefined) {
|
|
16
|
-
// Use non-'node:' prefixed require to avoid Webpack errors.
|
|
17
|
-
// eslint-disable-next-line n/prefer-node-protocol
|
|
18
|
-
_fs = /*@__PURE__*/ require('fs')
|
|
19
|
-
}
|
|
20
|
-
return _fs
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
let _path
|
|
24
|
-
/**
|
|
25
|
-
* Lazily load the path module to avoid Webpack errors.
|
|
26
|
-
* @returns {import('path')} The Node.js path module.
|
|
27
|
-
*/
|
|
28
|
-
/*@__NO_SIDE_EFFECTS__*/
|
|
29
|
-
function getPath() {
|
|
30
|
-
if (_path === undefined) {
|
|
31
|
-
// Use non-'node:' prefixed require to avoid Webpack errors.
|
|
32
|
-
// eslint-disable-next-line n/prefer-node-protocol
|
|
33
|
-
_path = /*@__PURE__*/ require('path')
|
|
34
|
-
}
|
|
35
|
-
return _path
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
let _which
|
|
39
|
-
/**
|
|
40
|
-
* Lazily load the which module for finding executables.
|
|
41
|
-
* @returns {import('which')} The which module.
|
|
42
|
-
*/
|
|
43
|
-
/*@__NO_SIDE_EFFECTS__*/
|
|
44
|
-
function getWhich() {
|
|
45
|
-
if (_which === undefined) {
|
|
46
|
-
_which = /*@__PURE__*/ require('../external/which')
|
|
47
|
-
}
|
|
48
|
-
return _which
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/*@__NO_SIDE_EFFECTS__*/
|
|
52
|
-
/**
|
|
53
|
-
* Create an error for when a binary path cannot be resolved.
|
|
54
|
-
* @param {string} binPath - The binary path that couldn't be resolved.
|
|
55
|
-
* @param {string} [source=''] - Optional source context for debugging.
|
|
56
|
-
* @returns {Error} The error object.
|
|
57
|
-
*/
|
|
58
|
-
function getNotResolvedError(binPath, source = '') {
|
|
59
|
-
// Based on node-which:
|
|
60
|
-
// ISC License
|
|
61
|
-
// Copyright (c) Isaac Z. Schlueter and Contributors
|
|
62
|
-
// https://github.com/npm/node-which/blob/v5.0.0/lib/index.js#L15
|
|
63
|
-
const error = new Error(
|
|
64
|
-
`not resolved: ${binPath}${source ? `:\n\n${source}` : ''}`
|
|
65
|
-
)
|
|
66
|
-
error.code = 'ENOENT'
|
|
67
|
-
return error
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/*@__NO_SIDE_EFFECTS__*/
|
|
71
|
-
/**
|
|
72
|
-
* Execute a binary with the given arguments.
|
|
73
|
-
* @param {string} binPath - Path or name of the binary to execute.
|
|
74
|
-
* @param {string[] | readonly string[]} args - Arguments to pass to the binary.
|
|
75
|
-
* @param {import('./spawn').SpawnOptions} [options] - Spawn options.
|
|
76
|
-
* @returns {Promise<{ stdout: string; stderr: string }>} Command output.
|
|
77
|
-
*/
|
|
78
|
-
function execBin(binPath, args, options) {
|
|
79
|
-
return spawn(
|
|
80
|
-
/*@__PURE__*/ require('./constants/exec-path'),
|
|
81
|
-
[
|
|
82
|
-
.../*@__PURE__*/ require('./constants/node-no-warnings-flags'),
|
|
83
|
-
isPath(binPath) ? resolveBinPathSync(binPath) : whichBinSync(binPath),
|
|
84
|
-
...args
|
|
85
|
-
],
|
|
86
|
-
options
|
|
87
|
-
)
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Find and resolve a binary in the system PATH asynchronously.
|
|
92
|
-
* @template {import('which').Options} T
|
|
93
|
-
* @param {string} binName - Name of the binary to find.
|
|
94
|
-
* @param {T} options - Options for the which module.
|
|
95
|
-
* @returns {T extends {all: true, nothrow: true} ? Promise<string[] | null> : T extends {all: true} ? Promise<string[]> : T extends {nothrow: true} ? Promise<string | null> : Promise<string>} The resolved binary path(s).
|
|
96
|
-
* @throws {Error} If the binary is not found and nothrow is false.
|
|
97
|
-
*/
|
|
98
|
-
async function whichBin(binName, options) {
|
|
99
|
-
const which = getWhich()
|
|
100
|
-
// Depending on options `which` may throw if `binName` is not found.
|
|
101
|
-
// The default behavior is to throw when `binName` is not found.
|
|
102
|
-
const result = await which(binName, options)
|
|
103
|
-
|
|
104
|
-
// When 'all: true' is specified, ensure we always return an array.
|
|
105
|
-
if (options?.all) {
|
|
106
|
-
const paths = Array.isArray(result)
|
|
107
|
-
? result
|
|
108
|
-
: typeof result === 'string'
|
|
109
|
-
? [result]
|
|
110
|
-
: result
|
|
111
|
-
// If all is true and we have paths, resolve each one.
|
|
112
|
-
return paths?.length ? paths.map(p => resolveBinPathSync(p)) : paths
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
return resolveBinPathSync(result)
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Find and resolve a binary in the system PATH synchronously.
|
|
120
|
-
* @template {import('which').Options} T
|
|
121
|
-
* @param {string} binName - Name of the binary to find.
|
|
122
|
-
* @param {T} options - Options for the which module.
|
|
123
|
-
* @returns {T extends {all: true, nothrow: true} ? string[] | null : T extends {all: true} ? string[] : T extends {nothrow: true} ? string | null : string} The resolved binary path(s).
|
|
124
|
-
* @throws {Error} If the binary is not found and nothrow is false.
|
|
125
|
-
*/
|
|
126
|
-
function whichBinSync(binName, options) {
|
|
127
|
-
// Depending on options `which` may throw if `binName` is not found.
|
|
128
|
-
// The default behavior is to throw when `binName` is not found.
|
|
129
|
-
const result = getWhich().sync(binName, options)
|
|
130
|
-
|
|
131
|
-
// When 'all: true' is specified, ensure we always return an array.
|
|
132
|
-
if (getOwn(options, 'all')) {
|
|
133
|
-
const paths = Array.isArray(result)
|
|
134
|
-
? result
|
|
135
|
-
: typeof result === 'string'
|
|
136
|
-
? [result]
|
|
137
|
-
: result
|
|
138
|
-
// If all is true and we have paths, resolve each one.
|
|
139
|
-
return paths?.length ? paths.map(p => resolveBinPathSync(p)) : paths
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
return resolveBinPathSync(result)
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Check if a directory path contains any shadow bin patterns.
|
|
147
|
-
* @param {string} dirPath - Directory path to check.
|
|
148
|
-
* @returns {boolean} True if the path contains shadow bin patterns.
|
|
149
|
-
*/
|
|
150
|
-
function isShadowBinPath(dirPath) {
|
|
151
|
-
return (
|
|
152
|
-
dirPath.includes('shadow-bin') ||
|
|
153
|
-
dirPath.includes('shadow-npm-bin') ||
|
|
154
|
-
dirPath.includes('shadow-pnpm-bin') ||
|
|
155
|
-
dirPath.includes('shadow-yarn-bin')
|
|
156
|
-
)
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Find the real executable for a binary, bypassing shadow bins.
|
|
161
|
-
* @param {string} binName - Name of the binary to find.
|
|
162
|
-
* @param {string[]} commonPaths - Common paths to check first.
|
|
163
|
-
* @returns {string} The path to the real binary.
|
|
164
|
-
*/
|
|
165
|
-
function findRealBin(binName, commonPaths = []) {
|
|
166
|
-
const fs = getFs()
|
|
167
|
-
const path = getPath()
|
|
168
|
-
const which = getWhich()
|
|
169
|
-
|
|
170
|
-
// Try common locations first.
|
|
171
|
-
for (const binPath of commonPaths) {
|
|
172
|
-
if (fs.existsSync(binPath)) {
|
|
173
|
-
return binPath
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
// Fall back to which.sync if no direct path found.
|
|
178
|
-
const binPath = which.sync(binName, { nothrow: true })
|
|
179
|
-
if (binPath) {
|
|
180
|
-
const binDir = path.dirname(binPath)
|
|
181
|
-
|
|
182
|
-
if (isShadowBinPath(binDir)) {
|
|
183
|
-
// This is likely a shadowed binary, try to find the real one.
|
|
184
|
-
const allPaths = which.sync(binName, { all: true, nothrow: true }) || []
|
|
185
|
-
// Ensure allPaths is an array.
|
|
186
|
-
const pathsArray = Array.isArray(allPaths)
|
|
187
|
-
? allPaths
|
|
188
|
-
: typeof allPaths === 'string'
|
|
189
|
-
? [allPaths]
|
|
190
|
-
: []
|
|
191
|
-
|
|
192
|
-
for (const altPath of pathsArray) {
|
|
193
|
-
const altDir = path.dirname(altPath)
|
|
194
|
-
if (!isShadowBinPath(altDir)) {
|
|
195
|
-
return altPath
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
return binPath
|
|
200
|
-
}
|
|
201
|
-
// If all else fails, return the binary name and let the system resolve it.
|
|
202
|
-
return binName
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Find the real npm executable, bypassing any aliases and shadow bins.
|
|
207
|
-
* @returns {string} The path to the real npm binary.
|
|
208
|
-
*/
|
|
209
|
-
function findRealNpm() {
|
|
210
|
-
const fs = getFs()
|
|
211
|
-
const path = getPath()
|
|
212
|
-
|
|
213
|
-
// Try to find npm in the same directory as the node executable.
|
|
214
|
-
const nodeDir = path.dirname(process.execPath)
|
|
215
|
-
const npmInNodeDir = path.join(nodeDir, 'npm')
|
|
216
|
-
|
|
217
|
-
if (fs.existsSync(npmInNodeDir)) {
|
|
218
|
-
return npmInNodeDir
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
// Try common npm locations.
|
|
222
|
-
const commonPaths = ['/usr/local/bin/npm', '/usr/bin/npm']
|
|
223
|
-
const result = findRealBin('npm', commonPaths)
|
|
224
|
-
|
|
225
|
-
// If we found a valid path, return it.
|
|
226
|
-
if (fs.existsSync(result)) {
|
|
227
|
-
return result
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
// As a last resort, try to use whichBinSync to find npm.
|
|
231
|
-
// This handles cases where npm is installed in non-standard locations.
|
|
232
|
-
const npmPath = whichBinSync('npm', { nothrow: true })
|
|
233
|
-
if (npmPath && fs.existsSync(npmPath)) {
|
|
234
|
-
return npmPath
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
// Return the basic 'npm' and let the system resolve it.
|
|
238
|
-
return 'npm'
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* Find the real pnpm executable, bypassing any aliases and shadow bins.
|
|
243
|
-
* @returns {string} The path to the real pnpm binary.
|
|
244
|
-
*/
|
|
245
|
-
function findRealPnpm() {
|
|
246
|
-
const ENV = /*@__PURE__*/ require('./constants/env')
|
|
247
|
-
const WIN32 = /*@__PURE__*/ require('./constants/win32')
|
|
248
|
-
const path = getPath()
|
|
249
|
-
|
|
250
|
-
// Try common pnpm locations.
|
|
251
|
-
const commonPaths = WIN32
|
|
252
|
-
? [
|
|
253
|
-
// Windows common paths.
|
|
254
|
-
path.join(ENV.APPDATA, 'npm', 'pnpm.cmd'),
|
|
255
|
-
path.join(ENV.APPDATA, 'npm', 'pnpm'),
|
|
256
|
-
path.join(ENV.LOCALAPPDATA, 'pnpm', 'pnpm.cmd'),
|
|
257
|
-
path.join(ENV.LOCALAPPDATA, 'pnpm', 'pnpm'),
|
|
258
|
-
'C:\\Program Files\\nodejs\\pnpm.cmd',
|
|
259
|
-
'C:\\Program Files\\nodejs\\pnpm'
|
|
260
|
-
].filter(Boolean)
|
|
261
|
-
: [
|
|
262
|
-
// Unix common paths.
|
|
263
|
-
'/usr/local/bin/pnpm',
|
|
264
|
-
'/usr/bin/pnpm',
|
|
265
|
-
path.join(ENV.XDG_DATA_HOME, 'pnpm/pnpm'),
|
|
266
|
-
path.join(ENV.HOME, '.pnpm/pnpm')
|
|
267
|
-
].filter(Boolean)
|
|
268
|
-
|
|
269
|
-
return findRealBin('pnpm', commonPaths)
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Find the real yarn executable, bypassing any aliases and shadow bins.
|
|
274
|
-
* @returns {string} The path to the real yarn binary.
|
|
275
|
-
*/
|
|
276
|
-
function findRealYarn() {
|
|
277
|
-
const ENV = /*@__PURE__*/ require('./constants/env')
|
|
278
|
-
const path = getPath()
|
|
279
|
-
|
|
280
|
-
// Try common yarn locations.
|
|
281
|
-
const commonPaths = [
|
|
282
|
-
'/usr/local/bin/yarn',
|
|
283
|
-
'/usr/bin/yarn',
|
|
284
|
-
path.join(ENV.HOME, '.yarn/bin/yarn'),
|
|
285
|
-
path.join(ENV.HOME, '.config/yarn/global/node_modules/.bin/yarn')
|
|
286
|
-
].filter(Boolean)
|
|
287
|
-
|
|
288
|
-
return findRealBin('yarn', commonPaths)
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
/*@__NO_SIDE_EFFECTS__*/
|
|
292
|
-
/**
|
|
293
|
-
* Resolve a binary path to its actual executable file.
|
|
294
|
-
* Handles Windows .cmd wrappers and Unix shell scripts.
|
|
295
|
-
* @param {string} binPath - The binary path to resolve.
|
|
296
|
-
* @returns {string} The resolved executable path.
|
|
297
|
-
* @throws {Error} If the binary cannot be resolved.
|
|
298
|
-
*/
|
|
299
|
-
function resolveBinPathSync(binPath) {
|
|
300
|
-
// Normalize the path once for consistent pattern matching.
|
|
301
|
-
binPath = normalizePath(binPath)
|
|
302
|
-
|
|
303
|
-
const fs = getFs()
|
|
304
|
-
const path = getPath()
|
|
305
|
-
|
|
306
|
-
const ext = path.extname(binPath)
|
|
307
|
-
const extLowered = ext.toLowerCase()
|
|
308
|
-
const basename = path.basename(binPath, ext)
|
|
309
|
-
const voltaIndex =
|
|
310
|
-
basename === 'node' ? -1 : (/(?<=\/)\.volta\//i.exec(binPath)?.index ?? -1)
|
|
311
|
-
if (voltaIndex !== -1) {
|
|
312
|
-
const voltaPath = binPath.slice(0, voltaIndex)
|
|
313
|
-
const voltaToolsPath = path.join(voltaPath, 'tools')
|
|
314
|
-
const voltaImagePath = path.join(voltaToolsPath, 'image')
|
|
315
|
-
const voltaUserPath = path.join(voltaToolsPath, 'user')
|
|
316
|
-
const voltaPlatform = readJsonSync(
|
|
317
|
-
path.join(voltaUserPath, 'platform.json'),
|
|
318
|
-
{ throws: false }
|
|
319
|
-
)
|
|
320
|
-
const voltaNodeVersion = voltaPlatform?.node?.runtime
|
|
321
|
-
const voltaNpmVersion = voltaPlatform?.node?.npm
|
|
322
|
-
let voltaBinPath = ''
|
|
323
|
-
if (basename === 'npm' || basename === 'npx') {
|
|
324
|
-
if (voltaNpmVersion) {
|
|
325
|
-
const relCliPath = `bin/${basename}-cli.js`
|
|
326
|
-
voltaBinPath = path.join(
|
|
327
|
-
voltaImagePath,
|
|
328
|
-
`npm/${voltaNpmVersion}/${relCliPath}`
|
|
329
|
-
)
|
|
330
|
-
if (voltaNodeVersion && !fs.existsSync(voltaBinPath)) {
|
|
331
|
-
voltaBinPath = path.join(
|
|
332
|
-
voltaImagePath,
|
|
333
|
-
`node/${voltaNodeVersion}/lib/node_modules/npm/${relCliPath}`
|
|
334
|
-
)
|
|
335
|
-
if (!fs.existsSync(voltaBinPath)) {
|
|
336
|
-
voltaBinPath = ''
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
} else {
|
|
341
|
-
const voltaUserBinPath = path.join(voltaUserPath, 'bin')
|
|
342
|
-
const binInfo = readJsonSync(
|
|
343
|
-
path.join(voltaUserBinPath, `${basename}.json`),
|
|
344
|
-
{ throws: false }
|
|
345
|
-
)
|
|
346
|
-
const binPackage = binInfo?.package
|
|
347
|
-
if (binPackage) {
|
|
348
|
-
voltaBinPath = path.join(
|
|
349
|
-
voltaImagePath,
|
|
350
|
-
`packages/${binPackage}/bin/${basename}`
|
|
351
|
-
)
|
|
352
|
-
if (!fs.existsSync(voltaBinPath)) {
|
|
353
|
-
voltaBinPath = `${voltaBinPath}.cmd`
|
|
354
|
-
if (!fs.existsSync(voltaBinPath)) {
|
|
355
|
-
voltaBinPath = ''
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
if (voltaBinPath) {
|
|
361
|
-
return fs.realpathSync.native(voltaBinPath)
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
const WIN32 = /*@__PURE__*/ require('./constants/win32')
|
|
365
|
-
if (WIN32) {
|
|
366
|
-
const hasKnownExt =
|
|
367
|
-
extLowered === '' || extLowered === '.cmd' || extLowered === '.ps1'
|
|
368
|
-
const isNpmOrNpx = basename === 'npm' || basename === 'npx'
|
|
369
|
-
const isPnpmOrYarn = basename === 'pnpm' || basename === 'yarn'
|
|
370
|
-
if (hasKnownExt && isNpmOrNpx) {
|
|
371
|
-
// The quick route assumes a bin path like: C:\Program Files\nodejs\npm.cmd
|
|
372
|
-
const quickPath = path.join(
|
|
373
|
-
path.dirname(binPath),
|
|
374
|
-
`node_modules/npm/bin/${basename}-cli.js`
|
|
375
|
-
)
|
|
376
|
-
if (fs.existsSync(quickPath)) {
|
|
377
|
-
return fs.realpathSync.native(quickPath)
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
let relPath = ''
|
|
381
|
-
if (hasKnownExt) {
|
|
382
|
-
const source = fs.readFileSync(binPath, 'utf8')
|
|
383
|
-
if (isNpmOrNpx) {
|
|
384
|
-
if (extLowered === '.cmd') {
|
|
385
|
-
// "npm.cmd" and "npx.cmd" defined by
|
|
386
|
-
// https://github.com/npm/cli/blob/v11.4.2/bin/npm.cmd
|
|
387
|
-
// https://github.com/npm/cli/blob/v11.4.2/bin/npx.cmd
|
|
388
|
-
relPath =
|
|
389
|
-
basename === 'npm'
|
|
390
|
-
? /(?<="NPM_CLI_JS=%~dp0\\).*(?=")/.exec(source)?.[0]
|
|
391
|
-
: /(?<="NPX_CLI_JS=%~dp0\\).*(?=")/.exec(source)?.[0]
|
|
392
|
-
} else if (extLowered === '') {
|
|
393
|
-
// Extensionless "npm" and "npx" defined by
|
|
394
|
-
// https://github.com/npm/cli/blob/v11.4.2/bin/npm
|
|
395
|
-
// https://github.com/npm/cli/blob/v11.4.2/bin/npx
|
|
396
|
-
relPath =
|
|
397
|
-
basename === 'npm'
|
|
398
|
-
? /(?<=NPM_CLI_JS="\$CLI_BASEDIR\/).*(?=")/.exec(source)?.[0]
|
|
399
|
-
: /(?<=NPX_CLI_JS="\$CLI_BASEDIR\/).*(?=")/.exec(source)?.[0]
|
|
400
|
-
} else if (extLowered === '.ps1') {
|
|
401
|
-
// "npm.ps1" and "npx.ps1" defined by
|
|
402
|
-
// https://github.com/npm/cli/blob/v11.4.2/bin/npm.ps1
|
|
403
|
-
// https://github.com/npm/cli/blob/v11.4.2/bin/npx.ps1
|
|
404
|
-
relPath =
|
|
405
|
-
basename === 'npm'
|
|
406
|
-
? /(?<=\$NPM_CLI_JS="\$PSScriptRoot\/).*(?=")/.exec(source)?.[0]
|
|
407
|
-
: /(?<=\$NPX_CLI_JS="\$PSScriptRoot\/).*(?=")/.exec(source)?.[0]
|
|
408
|
-
}
|
|
409
|
-
} else if (isPnpmOrYarn) {
|
|
410
|
-
if (extLowered === '.cmd') {
|
|
411
|
-
// pnpm.cmd and yarn.cmd can have different formats depending on installation method
|
|
412
|
-
// Common formats include:
|
|
413
|
-
// 1. Setup-pnpm action format: node "%~dp0\..\pnpm\bin\pnpm.cjs" %*
|
|
414
|
-
// 2. npm install -g pnpm format: similar to cmd-shim
|
|
415
|
-
// 3. Standalone installer format: various patterns
|
|
416
|
-
|
|
417
|
-
// Try setup-pnpm/setup-yarn action format first
|
|
418
|
-
relPath = /(?<=node\s+")%~dp0\\([^"]+)(?="\s+%\*)/.exec(source)?.[1]
|
|
419
|
-
|
|
420
|
-
// Try alternative format: "%~dp0\node.exe" "%~dp0\..\package\bin\binary.js" %*
|
|
421
|
-
if (!relPath) {
|
|
422
|
-
relPath =
|
|
423
|
-
/(?<="%~dp0\\[^"]*node[^"]*"\s+")%~dp0\\([^"]+)(?="\s+%\*)/.exec(
|
|
424
|
-
source
|
|
425
|
-
)?.[1]
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
// Try cmd-shim format as fallback
|
|
429
|
-
if (!relPath) {
|
|
430
|
-
relPath = /(?<="%dp0%\\).*(?=" %\*\r\n)/.exec(source)?.[0]
|
|
431
|
-
}
|
|
432
|
-
} else if (extLowered === '') {
|
|
433
|
-
// Extensionless pnpm/yarn - try common shebang formats
|
|
434
|
-
// Handle pnpm installed via standalone installer or global install
|
|
435
|
-
// Format: exec "$basedir/node" "$basedir/.tools/pnpm/VERSION/..." "$@"
|
|
436
|
-
// Note: may have multiple spaces between arguments
|
|
437
|
-
relPath = /(?<="\$basedir\/)\.tools\/pnpm\/[^"]+(?="\s+"\$@")/.exec(
|
|
438
|
-
source
|
|
439
|
-
)?.[0]
|
|
440
|
-
if (!relPath) {
|
|
441
|
-
// Also try: exec node "$basedir/.tools/pnpm/VERSION/..." "$@"
|
|
442
|
-
relPath =
|
|
443
|
-
/(?<=exec\s+node\s+"\$basedir\/)\.tools\/pnpm\/[^"]+(?="\s+"\$@")/.exec(
|
|
444
|
-
source
|
|
445
|
-
)?.[0]
|
|
446
|
-
}
|
|
447
|
-
if (!relPath) {
|
|
448
|
-
// Try standard cmd-shim format: exec node "$basedir/../package/bin/binary.js" "$@"
|
|
449
|
-
relPath = /(?<="\$basedir\/).*(?=" "\$@"\n)/.exec(source)?.[0]
|
|
450
|
-
}
|
|
451
|
-
} else if (extLowered === '.ps1') {
|
|
452
|
-
// PowerShell format
|
|
453
|
-
relPath = /(?<="\$basedir\/).*(?=" $args\n)/.exec(source)?.[0]
|
|
454
|
-
}
|
|
455
|
-
} else if (extLowered === '.cmd') {
|
|
456
|
-
// "bin.CMD" generated by
|
|
457
|
-
// https://github.com/npm/cmd-shim/blob/v7.0.0/lib/index.js#L98:
|
|
458
|
-
//
|
|
459
|
-
// @ECHO off
|
|
460
|
-
// GOTO start
|
|
461
|
-
// :find_dp0
|
|
462
|
-
// SET dp0=%~dp0
|
|
463
|
-
// EXIT /b
|
|
464
|
-
// :start
|
|
465
|
-
// SETLOCAL
|
|
466
|
-
// CALL :find_dp0
|
|
467
|
-
//
|
|
468
|
-
// IF EXIST "%dp0%\node.exe" (
|
|
469
|
-
// SET "_prog=%dp0%\node.exe"
|
|
470
|
-
// ) ELSE (
|
|
471
|
-
// SET "_prog=node"
|
|
472
|
-
// SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
473
|
-
// )
|
|
474
|
-
//
|
|
475
|
-
// endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\<PACKAGE_NAME>\path\to\bin.js" %*
|
|
476
|
-
relPath = /(?<="%dp0%\\).*(?=" %\*\r\n)/.exec(source)?.[0]
|
|
477
|
-
} else if (extLowered === '') {
|
|
478
|
-
// Extensionless "bin" generated by
|
|
479
|
-
// https://github.com/npm/cmd-shim/blob/v7.0.0/lib/index.js#L138:
|
|
480
|
-
//
|
|
481
|
-
// #!/bin/sh
|
|
482
|
-
// basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
483
|
-
//
|
|
484
|
-
// case `uname` in
|
|
485
|
-
// *CYGWIN*|*MINGW*|*MSYS*)
|
|
486
|
-
// if command -v cygpath > /dev/null 2>&1; then
|
|
487
|
-
// basedir=`cygpath -w "$basedir"`
|
|
488
|
-
// fi
|
|
489
|
-
// ;;
|
|
490
|
-
// esac
|
|
491
|
-
//
|
|
492
|
-
// if [ -x "$basedir/node" ]; then
|
|
493
|
-
// exec "$basedir/node" "$basedir/../<PACKAGE_NAME>/path/to/bin.js" "$@"
|
|
494
|
-
// else
|
|
495
|
-
// exec node "$basedir/../<PACKAGE_NAME>/path/to/bin.js" "$@"
|
|
496
|
-
// fi
|
|
497
|
-
relPath = /(?<="$basedir\/).*(?=" "\$@"\n)/.exec(source)?.[0]
|
|
498
|
-
} else if (extLowered === '.ps1') {
|
|
499
|
-
// "bin.PS1" generated by
|
|
500
|
-
// https://github.com/npm/cmd-shim/blob/v7.0.0/lib/index.js#L192:
|
|
501
|
-
//
|
|
502
|
-
// #!/usr/bin/env pwsh
|
|
503
|
-
// $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
504
|
-
//
|
|
505
|
-
// $exe=""
|
|
506
|
-
// if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
507
|
-
// # Fix case when both the Windows and Linux builds of Node
|
|
508
|
-
// # are installed in the same directory
|
|
509
|
-
// $exe=".exe"
|
|
510
|
-
// }
|
|
511
|
-
// $ret=0
|
|
512
|
-
// if (Test-Path "$basedir/node$exe") {
|
|
513
|
-
// # Support pipeline input
|
|
514
|
-
// if ($MyInvocation.ExpectingInput) {
|
|
515
|
-
// $input | & "$basedir/node$exe" "$basedir/../<PACKAGE_NAME>/path/to/bin.js" $args
|
|
516
|
-
// } else {
|
|
517
|
-
// & "$basedir/node$exe" "$basedir/../<PACKAGE_NAME>/path/to/bin.js" $args
|
|
518
|
-
// }
|
|
519
|
-
// $ret=$LASTEXITCODE
|
|
520
|
-
// } else {
|
|
521
|
-
// # Support pipeline input
|
|
522
|
-
// if ($MyInvocation.ExpectingInput) {
|
|
523
|
-
// $input | & "node$exe" "$basedir/../<PACKAGE_NAME>/path/to/bin.js" $args
|
|
524
|
-
// } else {
|
|
525
|
-
// & "node$exe" "$basedir/../<PACKAGE_NAME>/path/to/bin.js" $args
|
|
526
|
-
// }
|
|
527
|
-
// $ret=$LASTEXITCODE
|
|
528
|
-
// }
|
|
529
|
-
// exit $ret
|
|
530
|
-
relPath = /(?<="\$basedir\/).*(?=" $args\n)/.exec(source)?.[0]
|
|
531
|
-
}
|
|
532
|
-
if (!relPath) {
|
|
533
|
-
throw getNotResolvedError(binPath, source)
|
|
534
|
-
}
|
|
535
|
-
binPath = normalizePath(path.join(path.dirname(binPath), relPath))
|
|
536
|
-
} else if (
|
|
537
|
-
extLowered !== '.js' &&
|
|
538
|
-
extLowered !== '.cjs' &&
|
|
539
|
-
extLowered !== '.mjs' &&
|
|
540
|
-
extLowered !== '.ts' &&
|
|
541
|
-
extLowered !== '.cts' &&
|
|
542
|
-
extLowered !== '.mts'
|
|
543
|
-
) {
|
|
544
|
-
throw getNotResolvedError(binPath)
|
|
545
|
-
}
|
|
546
|
-
} else {
|
|
547
|
-
// Handle Unix shell scripts (non-Windows platforms)
|
|
548
|
-
let hasNoExt = extLowered === ''
|
|
549
|
-
const isPnpmOrYarn = basename === 'pnpm' || basename === 'yarn'
|
|
550
|
-
const isNpmOrNpx = basename === 'npm' || basename === 'npx'
|
|
551
|
-
|
|
552
|
-
// Handle special case where pnpm path in CI has extra segments.
|
|
553
|
-
// In setup-pnpm GitHub Action, the path might be malformed like:
|
|
554
|
-
// /home/runner/setup-pnpm/node_modules/.bin/pnpm/bin/pnpm.cjs
|
|
555
|
-
// This happens when the shell script contains a relative path that
|
|
556
|
-
// when resolved, creates an invalid nested structure.
|
|
557
|
-
if (isPnpmOrYarn && binPath.includes('/.bin/pnpm/bin/')) {
|
|
558
|
-
// Extract the correct pnpm bin path.
|
|
559
|
-
const binIndex = binPath.indexOf('/.bin/pnpm')
|
|
560
|
-
if (binIndex !== -1) {
|
|
561
|
-
// Get the base path up to /.bin/pnpm.
|
|
562
|
-
const baseBinPath = binPath.slice(0, binIndex + '/.bin/pnpm'.length)
|
|
563
|
-
// Check if the original shell script exists.
|
|
564
|
-
try {
|
|
565
|
-
const stats = fs.statSync(baseBinPath)
|
|
566
|
-
// Only use this path if it's a file (the shell script).
|
|
567
|
-
if (stats.isFile()) {
|
|
568
|
-
binPath = baseBinPath
|
|
569
|
-
// Recompute hasNoExt since we changed the path.
|
|
570
|
-
hasNoExt = !path.extname(binPath)
|
|
571
|
-
}
|
|
572
|
-
} catch {
|
|
573
|
-
// If stat fails, continue with the original path.
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
if (hasNoExt && (isPnpmOrYarn || isNpmOrNpx)) {
|
|
579
|
-
const source = fs.readFileSync(binPath, 'utf8')
|
|
580
|
-
let relPath = ''
|
|
581
|
-
|
|
582
|
-
if (isPnpmOrYarn) {
|
|
583
|
-
// Handle pnpm/yarn Unix shell scripts.
|
|
584
|
-
// Format: exec "$basedir/node" "$basedir/.tools/pnpm/VERSION/..." "$@"
|
|
585
|
-
// or: exec node "$basedir/.tools/pnpm/VERSION/..." "$@"
|
|
586
|
-
relPath = /(?<="\$basedir\/)\.tools\/[^"]+(?="\s+"\$@")/.exec(
|
|
587
|
-
source
|
|
588
|
-
)?.[0]
|
|
589
|
-
if (!relPath) {
|
|
590
|
-
// Try standard cmd-shim format: exec node "$basedir/../package/bin/binary.js" "$@"
|
|
591
|
-
// Example: exec node "$basedir/../pnpm/bin/pnpm.cjs" "$@"
|
|
592
|
-
// ^^^^^^^^^^^^^^^^^^^^^ captures this part
|
|
593
|
-
// This regex needs to be more careful to not match "$@" at the end.
|
|
594
|
-
relPath = /(?<="\$basedir\/)[^"]+(?="\s+"\$@")/.exec(source)?.[0]
|
|
595
|
-
}
|
|
596
|
-
// Special case for setup-pnpm GitHub Action which may use a different format.
|
|
597
|
-
// The setup-pnpm action creates a shell script that references ../pnpm/bin/pnpm.cjs
|
|
598
|
-
if (!relPath) {
|
|
599
|
-
// Try to match: exec node "$basedir/../pnpm/bin/pnpm.cjs" "$@"
|
|
600
|
-
const match = /exec\s+node\s+"?\$basedir\/([^"]+)"?\s+"\$@"/.exec(
|
|
601
|
-
source
|
|
602
|
-
)
|
|
603
|
-
if (match) {
|
|
604
|
-
relPath = match[1]
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
// Check if the extracted path looks wrong (e.g., pnpm/bin/pnpm.cjs without ../).
|
|
608
|
-
// This happens with setup-pnpm action when it creates a malformed shell script.
|
|
609
|
-
if (relPath && basename === 'pnpm' && relPath.startsWith('pnpm/')) {
|
|
610
|
-
// The path should be ../pnpm/... not pnpm/...
|
|
611
|
-
// Prepend ../ to fix the relative path.
|
|
612
|
-
relPath = '../' + relPath
|
|
613
|
-
}
|
|
614
|
-
} else if (isNpmOrNpx) {
|
|
615
|
-
// Handle npm/npx Unix shell scripts
|
|
616
|
-
relPath =
|
|
617
|
-
basename === 'npm'
|
|
618
|
-
? /(?<=NPM_CLI_JS="\$CLI_BASEDIR\/).*(?=")/.exec(source)?.[0]
|
|
619
|
-
: /(?<=NPX_CLI_JS="\$CLI_BASEDIR\/).*(?=")/.exec(source)?.[0]
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
if (relPath) {
|
|
623
|
-
// Normalize the relative path to handle .. segments properly.
|
|
624
|
-
const resolvedPath = path.resolve(path.dirname(binPath), relPath)
|
|
625
|
-
binPath = normalizePath(resolvedPath)
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
try {
|
|
630
|
-
return fs.realpathSync.native(binPath)
|
|
631
|
-
} catch (error) {
|
|
632
|
-
// Provide more context when realpath fails.
|
|
633
|
-
if (error.code === 'ENOTDIR') {
|
|
634
|
-
throw new Error(`Path resolution failed - not a directory: ${binPath}`)
|
|
635
|
-
}
|
|
636
|
-
throw error
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
module.exports = {
|
|
641
|
-
execBin,
|
|
642
|
-
findRealBin,
|
|
643
|
-
findRealNpm,
|
|
644
|
-
findRealPnpm,
|
|
645
|
-
findRealYarn,
|
|
646
|
-
isShadowBinPath,
|
|
647
|
-
resolveBinPathSync,
|
|
648
|
-
whichBin,
|
|
649
|
-
whichBinSync
|
|
650
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
// The 'signal-exit' package is browser safe.
|
|
4
|
-
// Do NOT defer loading, otherwise mystery errors may occur at the end of the
|
|
5
|
-
// event loop.
|
|
6
|
-
const signalExit = /*@__PURE__*/ require('../../external/signal-exit')
|
|
7
|
-
|
|
8
|
-
const abortController = new AbortController()
|
|
9
|
-
|
|
10
|
-
// Detect ^C, i.e. Ctrl + C.
|
|
11
|
-
signalExit.onExit(() => {
|
|
12
|
-
abortController.abort()
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
module.exports = abortController
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const abortController = /*@__PURE__*/ require('./abort-controller')
|
|
4
|
-
const abortSignal = abortController.signal
|
|
5
|
-
|
|
6
|
-
// By manually setting `kMaxEventTargetListeners` on `abortSignal` we avoid:
|
|
7
|
-
// TypeError [ERR_INVALID_ARG_TYPE]: The "emitter" argument must be an
|
|
8
|
-
// instance of EventEmitter or EventTarget. Received an instance of
|
|
9
|
-
// AbortSignal
|
|
10
|
-
//
|
|
11
|
-
// in some patch releases of Node 18-23 when calling events.getMaxListeners(abortSignal).
|
|
12
|
-
// See https://github.com/nodejs/node/pull/56807.
|
|
13
|
-
//
|
|
14
|
-
// Instead of calling events.setMaxListeners(10, abortSignal) we set the symbol
|
|
15
|
-
// property directly to keep the constants initialization platform agnostic and
|
|
16
|
-
// not rely on the Node specific 'node:events' module up front.
|
|
17
|
-
const symbols = Object.getOwnPropertySymbols(abortSignal)
|
|
18
|
-
const kMaxEventTargetListeners = symbols.find(
|
|
19
|
-
s => s.description === 'events.maxEventTargetListeners'
|
|
20
|
-
)
|
|
21
|
-
if (kMaxEventTargetListeners) {
|
|
22
|
-
// The default events.defaultMaxListeners value is 10.
|
|
23
|
-
// https://nodejs.org/api/events.html#eventsdefaultmaxlisteners
|
|
24
|
-
abortSignal[kMaxEventTargetListeners] = 10
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
module.exports = abortSignal
|