@socketsecurity/cli-with-sentry 0.15.10 → 0.15.12
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/bin/cli.js +6 -6
- package/dist/.config/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/cli.js +5731 -6607
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +274 -305
- package/dist/constants.js.map +1 -1
- package/dist/instrument-with-sentry.js +28 -34
- package/dist/instrument-with-sentry.js.map +1 -1
- package/dist/shadow-bin.js +96 -123
- package/dist/shadow-bin.js.map +1 -1
- package/dist/shadow-inject.js +470 -580
- package/dist/shadow-inject.js.map +1 -1
- package/dist/socket-completion.bash +221 -0
- package/dist/types/cli.d.mts +2 -2
- package/dist/types/commands/analytics/cmd-analytics.d.mts +9 -15
- package/dist/types/commands/analytics/fetch-org-analytics.d.mts +4 -6
- package/dist/types/commands/analytics/fetch-repo-analytics.d.mts +4 -7
- package/dist/types/commands/analytics/handle-analytics.d.mts +9 -15
- package/dist/types/commands/analytics/handle-analytics.d.mts.map +1 -1
- package/dist/types/commands/analytics/output-analytics.d.mts +26 -46
- package/dist/types/commands/analytics/output-analytics.d.mts.map +1 -1
- package/dist/types/commands/audit-log/cmd-audit-log.d.mts +9 -15
- package/dist/types/commands/audit-log/fetch-audit-log.d.mts +10 -16
- package/dist/types/commands/audit-log/fetch-audit-log.d.mts.map +1 -1
- package/dist/types/commands/audit-log/handle-audit-log.d.mts +9 -15
- package/dist/types/commands/audit-log/handle-audit-log.d.mts.map +1 -1
- package/dist/types/commands/audit-log/output-audit-log.d.mts +22 -47
- package/dist/types/commands/audit-log/output-audit-log.d.mts.map +1 -1
- package/dist/types/commands/cdxgen/cmd-cdxgen.d.mts +9 -15
- package/dist/types/commands/cdxgen/cmd-cdxgen.d.mts.map +1 -1
- package/dist/types/commands/cdxgen/handle-cdxgen.d.mts +4 -0
- package/dist/types/commands/cdxgen/handle-cdxgen.d.mts.map +1 -0
- package/dist/types/commands/ci/cmd-ci.d.mts +9 -15
- package/dist/types/commands/ci/fetch-default-org-slug.d.mts +3 -3
- package/dist/types/commands/ci/handle-ci.d.mts +2 -2
- package/dist/types/commands/config/cmd-config-auto.d.mts +9 -15
- package/dist/types/commands/config/cmd-config-get.d.mts +9 -15
- package/dist/types/commands/config/cmd-config-list.d.mts +9 -15
- package/dist/types/commands/config/cmd-config-set.d.mts +9 -15
- package/dist/types/commands/config/cmd-config-unset.d.mts +9 -15
- package/dist/types/commands/config/cmd-config.d.mts +3 -3
- package/dist/types/commands/config/discover-config-value.d.mts +3 -5
- package/dist/types/commands/config/discover-config-value.d.mts.map +1 -1
- package/dist/types/commands/config/handle-config-auto.d.mts +7 -10
- package/dist/types/commands/config/handle-config-auto.d.mts.map +1 -1
- package/dist/types/commands/config/handle-config-get.d.mts +7 -10
- package/dist/types/commands/config/handle-config-get.d.mts.map +1 -1
- package/dist/types/commands/config/handle-config-set.d.mts +8 -12
- package/dist/types/commands/config/handle-config-set.d.mts.map +1 -1
- package/dist/types/commands/config/handle-config-unset.d.mts +7 -10
- package/dist/types/commands/config/handle-config-unset.d.mts.map +1 -1
- package/dist/types/commands/config/output-config-auto.d.mts +4 -8
- package/dist/types/commands/config/output-config-get.d.mts +4 -8
- package/dist/types/commands/config/output-config-list.d.mts +6 -9
- package/dist/types/commands/config/output-config-list.d.mts.map +1 -1
- package/dist/types/commands/config/output-config-set.d.mts +3 -6
- package/dist/types/commands/config/output-config-unset.d.mts +3 -6
- package/dist/types/commands/dependencies/cmd-dependencies.d.mts +9 -15
- package/dist/types/commands/dependencies/fetch-dependencies.d.mts +7 -10
- package/dist/types/commands/dependencies/fetch-dependencies.d.mts.map +1 -1
- package/dist/types/commands/dependencies/handle-dependencies.d.mts +7 -11
- package/dist/types/commands/dependencies/handle-dependencies.d.mts.map +1 -1
- package/dist/types/commands/dependencies/output-dependencies.d.mts +8 -15
- package/dist/types/commands/dependencies/output-dependencies.d.mts.map +1 -1
- package/dist/types/commands/diff-scan/cmd-diff-scan-get.d.mts +9 -15
- package/dist/types/commands/diff-scan/cmd-diff-scan.d.mts +3 -3
- package/dist/types/commands/diff-scan/fetch-diff-scan.d.mts +8 -12
- package/dist/types/commands/diff-scan/fetch-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/diff-scan/handle-diff-scan.d.mts +10 -17
- package/dist/types/commands/diff-scan/handle-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/diff-scan/output-diff-scan.d.mts +8 -15
- package/dist/types/commands/diff-scan/output-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/fix/cmd-fix.d.mts +9 -15
- package/dist/types/commands/fix/git.d.mts +14 -49
- package/dist/types/commands/fix/npm-fix.d.mts +4 -16
- package/dist/types/commands/fix/npm-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/open-pr.d.mts +20 -46
- package/dist/types/commands/fix/open-pr.d.mts.map +1 -1
- package/dist/types/commands/fix/pnpm-fix.d.mts +4 -16
- package/dist/types/commands/fix/pnpm-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/run-fix.d.mts +3 -3
- package/dist/types/commands/fix/shared.d.mts +9 -15
- package/dist/types/commands/fix/types.d.mts +16 -16
- package/dist/types/commands/info/cmd-info.d.mts +9 -15
- package/dist/types/commands/info/fetch-package-info.d.mts +3 -7
- package/dist/types/commands/info/handle-package-info.d.mts +15 -22
- package/dist/types/commands/info/handle-package-info.d.mts.map +1 -1
- package/dist/types/commands/info/output-package-info.d.mts +10 -18
- package/dist/types/commands/info/output-package-info.d.mts.map +1 -1
- package/dist/types/commands/install/cmd-install-completion.d.mts +10 -0
- package/dist/types/commands/install/cmd-install-completion.d.mts.map +1 -0
- package/dist/types/commands/install/cmd-install.d.mts +3 -0
- package/dist/types/commands/install/cmd-install.d.mts.map +1 -0
- package/dist/types/commands/install/handle-install-completion.d.mts +2 -0
- package/dist/types/commands/install/handle-install-completion.d.mts.map +1 -0
- package/dist/types/commands/install/output-install-completion.d.mts +12 -0
- package/dist/types/commands/install/output-install-completion.d.mts.map +1 -0
- package/dist/types/commands/install/setup-tab-completion.d.mts +13 -0
- package/dist/types/commands/install/setup-tab-completion.d.mts.map +1 -0
- package/dist/types/commands/login/apply-login.d.mts +2 -7
- package/dist/types/commands/login/attempt-login.d.mts +2 -5
- package/dist/types/commands/login/attempt-login.d.mts.map +1 -1
- package/dist/types/commands/login/cmd-login.d.mts +9 -15
- package/dist/types/commands/logout/apply-logout.d.mts +2 -2
- package/dist/types/commands/logout/attempt-logout.d.mts +2 -2
- package/dist/types/commands/logout/cmd-logout.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest-auto.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts +10 -0
- package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +1 -0
- package/dist/types/commands/manifest/cmd-manifest-conda.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest-scala.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest.d.mts +9 -15
- package/dist/types/commands/manifest/cmd-manifest.d.mts.map +1 -1
- package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts +7 -15
- package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts +2 -8
- package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts +2 -8
- package/dist/types/commands/manifest/handle-manifest-conda.d.mts +3 -9
- package/dist/types/commands/manifest/output-requirements.d.mts +6 -10
- package/dist/types/commands/{cdxgen → manifest}/run-cdxgen.d.mts +2 -2
- package/dist/types/commands/manifest/run-cdxgen.d.mts.map +1 -0
- package/dist/types/commands/npm/cmd-npm.d.mts +9 -15
- package/dist/types/commands/npx/cmd-npx.d.mts +9 -15
- package/dist/types/commands/oops/cmd-oops.d.mts +9 -15
- package/dist/types/commands/optimize/add-overrides.d.mts +18 -22
- package/dist/types/commands/optimize/apply-optimization.d.mts +2 -6
- package/dist/types/commands/optimize/cmd-optimize.d.mts +9 -15
- package/dist/types/commands/optimize/deps-includes-by-agent.d.mts +4 -7
- package/dist/types/commands/optimize/get-dependency-entries.d.mts +3 -5
- package/dist/types/commands/optimize/get-overrides-by-agent.d.mts +8 -11
- package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts +3 -10
- package/dist/types/commands/optimize/ls-by-agent.d.mts +6 -13
- package/dist/types/commands/optimize/shared.d.mts +2 -2
- package/dist/types/commands/optimize/types.d.mts +7 -7
- package/dist/types/commands/optimize/update-lockfile.d.mts +9 -12
- package/dist/types/commands/optimize/update-manifest-by-agent.d.mts +5 -11
- package/dist/types/commands/organization/cmd-organization-list.d.mts +9 -15
- package/dist/types/commands/organization/cmd-organization-policy-license.d.mts +9 -15
- package/dist/types/commands/organization/cmd-organization-policy-security.d.mts +9 -15
- package/dist/types/commands/organization/cmd-organization-policy.d.mts +3 -3
- package/dist/types/commands/organization/cmd-organization-quota.d.mts +9 -15
- package/dist/types/commands/organization/cmd-organization.d.mts +3 -3
- package/dist/types/commands/organization/fetch-license-policy.d.mts +4 -6
- package/dist/types/commands/organization/fetch-organization-list.d.mts +4 -6
- package/dist/types/commands/organization/fetch-quota.d.mts +4 -6
- package/dist/types/commands/organization/fetch-security-policy.d.mts +4 -6
- package/dist/types/commands/organization/handle-license-policy.d.mts +3 -6
- package/dist/types/commands/organization/handle-organization-list.d.mts +3 -5
- package/dist/types/commands/organization/handle-quota.d.mts +3 -3
- package/dist/types/commands/organization/handle-security-policy.d.mts +3 -6
- package/dist/types/commands/organization/output-license-policy.d.mts +4 -7
- package/dist/types/commands/organization/output-organization-list.d.mts +4 -7
- package/dist/types/commands/organization/output-quota.d.mts +4 -7
- package/dist/types/commands/organization/output-security-policy.d.mts +4 -7
- package/dist/types/commands/package/cmd-package-score.d.mts +9 -15
- package/dist/types/commands/package/cmd-package-shallow.d.mts +16 -22
- package/dist/types/commands/package/cmd-package.d.mts +3 -3
- package/dist/types/commands/package/fetch-purl-deep-score.d.mts +49 -51
- package/dist/types/commands/package/fetch-purls-shallow-score.d.mts +4 -6
- package/dist/types/commands/package/handle-purl-deep-score.d.mts +3 -6
- package/dist/types/commands/package/handle-purls-shallow-score.d.mts +6 -9
- package/dist/types/commands/package/handle-purls-shallow-score.d.mts.map +1 -1
- package/dist/types/commands/package/output-purl-score.d.mts +4 -8
- package/dist/types/commands/package/output-purls-shallow-score.d.mts +4 -8
- package/dist/types/commands/package/parse-package-specifiers.d.mts +5 -8
- package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts +9 -15
- package/dist/types/commands/raw-npm/run-raw-npm.d.mts +2 -4
- package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts +9 -15
- package/dist/types/commands/raw-npx/run-raw-npx.d.mts +2 -4
- package/dist/types/commands/report/cmd-report-create.d.mts +9 -15
- package/dist/types/commands/report/cmd-report-view.d.mts +9 -15
- package/dist/types/commands/report/cmd-report.d.mts +3 -3
- package/dist/types/commands/repos/cmd-repos-create.d.mts +9 -15
- package/dist/types/commands/repos/cmd-repos-del.d.mts +9 -15
- package/dist/types/commands/repos/cmd-repos-list.d.mts +9 -15
- package/dist/types/commands/repos/cmd-repos-update.d.mts +9 -15
- package/dist/types/commands/repos/cmd-repos-view.d.mts +9 -15
- package/dist/types/commands/repos/cmd-repos.d.mts +3 -3
- package/dist/types/commands/repos/fetch-create-repo.d.mts +11 -18
- package/dist/types/commands/repos/fetch-create-repo.d.mts.map +1 -1
- package/dist/types/commands/repos/fetch-delete-repo.d.mts +4 -7
- package/dist/types/commands/repos/fetch-list-repos.d.mts +10 -16
- package/dist/types/commands/repos/fetch-list-repos.d.mts.map +1 -1
- package/dist/types/commands/repos/fetch-update-repo.d.mts +11 -18
- package/dist/types/commands/repos/fetch-update-repo.d.mts.map +1 -1
- package/dist/types/commands/repos/fetch-view-repo.d.mts +4 -7
- package/dist/types/commands/repos/handle-create-repo.d.mts +10 -20
- package/dist/types/commands/repos/handle-create-repo.d.mts.map +1 -1
- package/dist/types/commands/repos/handle-delete-repo.d.mts +3 -7
- package/dist/types/commands/repos/handle-list-repos.d.mts +10 -17
- package/dist/types/commands/repos/handle-list-repos.d.mts.map +1 -1
- package/dist/types/commands/repos/handle-update-repo.d.mts +10 -20
- package/dist/types/commands/repos/handle-update-repo.d.mts.map +1 -1
- package/dist/types/commands/repos/handle-view-repo.d.mts +3 -7
- package/dist/types/commands/repos/output-create-repo.d.mts +4 -8
- package/dist/types/commands/repos/output-delete-repo.d.mts +4 -8
- package/dist/types/commands/repos/output-list-repos.d.mts +4 -7
- package/dist/types/commands/repos/output-update-repo.d.mts +4 -8
- package/dist/types/commands/repos/output-view-repo.d.mts +4 -7
- package/dist/types/commands/scan/cmd-scan-create.d.mts +9 -15
- package/dist/types/commands/scan/cmd-scan-del.d.mts +9 -15
- package/dist/types/commands/scan/cmd-scan-diff.d.mts +9 -15
- package/dist/types/commands/scan/cmd-scan-list.d.mts +3 -3
- package/dist/types/commands/scan/cmd-scan-metadata.d.mts +3 -3
- package/dist/types/commands/scan/cmd-scan-report.d.mts +3 -3
- package/dist/types/commands/scan/cmd-scan-view.d.mts +3 -3
- package/dist/types/commands/scan/cmd-scan.d.mts +3 -3
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +11 -26
- package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts +4 -7
- package/dist/types/commands/scan/fetch-diff-scan.d.mts +8 -12
- package/dist/types/commands/scan/fetch-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-list-scans.d.mts +13 -22
- package/dist/types/commands/scan/fetch-list-scans.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-report-data.d.mts +8 -14
- package/dist/types/commands/scan/fetch-scan-metadata.d.mts +4 -7
- package/dist/types/commands/scan/fetch-scan.d.mts +4 -7
- package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +4 -6
- package/dist/types/commands/scan/generate-report.d.mts +36 -50
- package/dist/types/commands/scan/generate-report.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-create-new-scan.d.mts +20 -37
- package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-delete-scan.d.mts +3 -7
- package/dist/types/commands/scan/handle-diff-scan.d.mts +10 -17
- package/dist/types/commands/scan/handle-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-list-scans.d.mts +13 -23
- package/dist/types/commands/scan/handle-list-scans.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-scan-metadata.d.mts +3 -7
- package/dist/types/commands/scan/handle-scan-report.d.mts +12 -21
- package/dist/types/commands/scan/handle-scan-report.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-scan-view.d.mts +3 -8
- package/dist/types/commands/scan/output-create-new-scan.d.mts +4 -8
- package/dist/types/commands/scan/output-delete-scan.d.mts +4 -7
- package/dist/types/commands/scan/output-diff-scan.d.mts +8 -15
- package/dist/types/commands/scan/output-diff-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/output-list-scans.d.mts +4 -7
- package/dist/types/commands/scan/output-scan-metadata.d.mts +4 -8
- package/dist/types/commands/scan/output-scan-report.d.mts +20 -38
- package/dist/types/commands/scan/output-scan-report.d.mts.map +1 -1
- package/dist/types/commands/scan/output-scan-view.d.mts +4 -10
- package/dist/types/commands/scan/stream-scan.d.mts +2 -6
- package/dist/types/commands/scan/suggest-org-slug.d.mts +2 -2
- package/dist/types/commands/scan/suggest-repo-slug.d.mts +4 -4
- package/dist/types/commands/scan/suggest_branch_slug.d.mts +2 -4
- package/dist/types/commands/scan/suggest_target.d.mts +2 -2
- package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts +9 -15
- package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts +10 -16
- package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts.map +1 -1
- package/dist/types/commands/threat-feed/handle-threat-feed.d.mts +10 -17
- package/dist/types/commands/threat-feed/handle-threat-feed.d.mts.map +1 -1
- package/dist/types/commands/threat-feed/output-threat-feed.d.mts +4 -7
- package/dist/types/commands/threat-feed/types.d.mts +12 -12
- package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts +9 -0
- package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts.map +1 -0
- package/dist/types/commands/uninstall/cmd-uninstall.d.mts +3 -0
- package/dist/types/commands/uninstall/cmd-uninstall.d.mts.map +1 -0
- package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts +2 -0
- package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts.map +1 -0
- package/dist/types/commands/uninstall/output-uninstall-completion.d.mts +6 -0
- package/dist/types/commands/uninstall/output-uninstall-completion.d.mts.map +1 -0
- package/dist/types/commands/uninstall/teardown-tab-completion.d.mts +6 -0
- package/dist/types/commands/uninstall/teardown-tab-completion.d.mts.map +1 -0
- package/dist/types/commands/wrapper/add-socket-wrapper.d.mts +2 -2
- package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts +2 -2
- package/dist/types/commands/wrapper/cmd-wrapper.d.mts +9 -15
- package/dist/types/commands/wrapper/postinstall-wrapper.d.mts +2 -2
- package/dist/types/commands/wrapper/postinstall-wrapper.d.mts.map +1 -1
- package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts +2 -2
- package/dist/types/constants.d.mts +125 -135
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/flags.d.mts +14 -17
- package/dist/types/flags.d.mts.map +1 -1
- package/dist/types/instrument-with-sentry.d.mts +2 -2
- package/dist/types/shadow/npm/arborist/index.d.mts +2 -2
- package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts +19 -24
- package/dist/types/shadow/npm/arborist/lib/arborist/types.d.mts +43 -71
- package/dist/types/shadow/npm/arborist/lib/dep-valid.d.mts +3 -8
- package/dist/types/shadow/npm/arborist/lib/edge.d.mts +58 -71
- package/dist/types/shadow/npm/arborist/lib/node.d.mts +55 -91
- package/dist/types/shadow/npm/arborist/lib/override-set.d.mts +26 -32
- package/dist/types/shadow/npm/arborist-helpers.d.mts +33 -66
- package/dist/types/shadow/npm/arborist-helpers.d.mts.map +1 -1
- package/dist/types/shadow/npm/bin.d.mts +2 -5
- package/dist/types/shadow/npm/inject.d.mts +2 -2
- package/dist/types/shadow/npm/install.d.mts +11 -16
- package/dist/types/shadow/npm/link.d.mts +2 -5
- package/dist/types/shadow/npm/paths.d.mts +7 -7
- package/dist/types/shadow/npm/proc-log/index.d.mts +3 -6
- package/dist/types/types.d.mts +15 -17
- package/dist/types/utils/agent.d.mts +11 -14
- package/dist/types/utils/alert/artifact.d.mts +32 -50
- package/dist/types/utils/alert/fix.d.mts +5 -5
- package/dist/types/utils/alert/severity.d.mts +12 -24
- package/dist/types/utils/alerts-map.d.mts +23 -36
- package/dist/types/utils/api.d.mts +11 -34
- package/dist/types/utils/check-input.d.mts +9 -12
- package/dist/types/utils/cmd.d.mts +4 -4
- package/dist/types/utils/color-or-markdown.d.mts +14 -23
- package/dist/types/utils/color-or-markdown.d.mts.map +1 -1
- package/dist/types/utils/completion.d.mts +11 -0
- package/dist/types/utils/completion.d.mts.map +1 -0
- package/dist/types/utils/config.d.mts +22 -31
- package/dist/types/utils/config.d.mts.map +1 -1
- package/dist/types/utils/determine-org-slug.d.mts +2 -7
- package/dist/types/utils/errors.d.mts +12 -21
- package/dist/types/utils/fail-msg-with-badge.d.mts +2 -5
- package/dist/types/utils/fs.d.mts +21 -52
- package/dist/types/utils/get-output-kind.d.mts +3 -6
- package/dist/types/utils/glob.d.mts +13 -24
- package/dist/types/utils/map-to-object.d.mts +4 -6
- package/dist/types/utils/markdown.d.mts +4 -15
- package/dist/types/utils/meow-with-subcommands.d.mts +34 -46
- package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
- package/dist/types/utils/npm-paths.d.mts +7 -7
- package/dist/types/utils/npm-paths.d.mts.map +1 -1
- package/dist/types/utils/objects.d.mts +3 -8
- package/dist/types/utils/output-formatting.d.mts +14 -24
- package/dist/types/utils/package-environment.d.mts +51 -72
- package/dist/types/utils/package-environment.d.mts.map +1 -1
- package/dist/types/utils/path-resolve.d.mts +9 -14
- package/dist/types/utils/pnpm.d.mts +9 -7
- package/dist/types/utils/pnpm.d.mts.map +1 -1
- package/dist/types/utils/sdk.d.mts +8 -12
- package/dist/types/utils/semver.d.mts +5 -17
- package/dist/types/utils/serialize-result-json.d.mts +3 -3
- package/dist/types/utils/socket-package-alert.d.mts +62 -81
- package/dist/types/utils/socket-url.d.mts +9 -15
- package/dist/types/utils/spec.d.mts +4 -7
- package/dist/types/utils/spec.d.mts.map +1 -1
- package/dist/types/utils/strings.d.mts +2 -5
- package/dist/types/utils/translations.d.mts +592 -592
- package/dist/types/utils/walk-nested-map.d.mts +7 -10
- package/dist/utils.js +1531 -1833
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +38333 -51605
- package/dist/vendor.js.map +1 -1
- package/external/@socketsecurity/registry/external/@npmcli/package-json/index.js +5 -8
- package/external/@socketsecurity/registry/external/@npmcli/promise-spawn.js +2 -4
- package/external/@socketsecurity/registry/external/cacache.js +1 -2
- package/external/@socketsecurity/registry/external/libnpmpack.js +36 -76
- package/external/@socketsecurity/registry/external/make-fetch-happen.js +31 -67
- package/external/@socketsecurity/registry/external/pacote.js +36 -76
- package/external/@socketsecurity/registry/external/tinyglobby.js +3 -6
- package/external/@socketsecurity/registry/external/which.js +2 -4
- package/external/@socketsecurity/registry/lib/logger.d.ts +4 -1
- package/external/@socketsecurity/registry/lib/logger.js +160 -73
- package/external/@socketsecurity/registry/lib/spinner.js +5 -1
- package/external/@socketsecurity/registry/package.json +2 -2
- package/external/blessed/lib/alias.js +475 -468
- package/external/blessed/lib/blessed.js +12 -12
- package/external/blessed/lib/colors.js +234 -194
- package/external/blessed/lib/events.js +64 -70
- package/external/blessed/lib/gpmclient.js +117 -141
- package/external/blessed/lib/helpers.js +89 -94
- package/external/blessed/lib/keys.js +169 -342
- package/external/blessed/lib/program.js +2130 -2365
- package/external/blessed/lib/tput.js +1183 -1276
- package/external/blessed/lib/unicode.js +400 -522
- package/external/blessed/lib/widget.js +14 -14
- package/external/blessed/lib/widgets/ansiimage.js +90 -96
- package/external/blessed/lib/widgets/bigtext.js +91 -102
- package/external/blessed/lib/widgets/box.js +8 -8
- package/external/blessed/lib/widgets/button.js +23 -23
- package/external/blessed/lib/widgets/checkbox.js +50 -54
- package/external/blessed/lib/widgets/element.js +1415 -1716
- package/external/blessed/lib/widgets/filemanager.js +107 -118
- package/external/blessed/lib/widgets/form.js +144 -178
- package/external/blessed/lib/widgets/image.js +26 -36
- package/external/blessed/lib/widgets/input.js +8 -8
- package/external/blessed/lib/widgets/layout.js +103 -119
- package/external/blessed/lib/widgets/line.js +17 -20
- package/external/blessed/lib/widgets/list.js +349 -402
- package/external/blessed/lib/widgets/listbar.js +265 -306
- package/external/blessed/lib/widgets/listtable.js +133 -146
- package/external/blessed/lib/widgets/loading.js +31 -31
- package/external/blessed/lib/widgets/log.js +41 -40
- package/external/blessed/lib/widgets/message.js +64 -86
- package/external/blessed/lib/widgets/node.js +175 -207
- package/external/blessed/lib/widgets/overlayimage.js +360 -437
- package/external/blessed/lib/widgets/progressbar.js +79 -88
- package/external/blessed/lib/widgets/prompt.js +54 -61
- package/external/blessed/lib/widgets/question.js +48 -61
- package/external/blessed/lib/widgets/radiobutton.js +26 -27
- package/external/blessed/lib/widgets/radioset.js +8 -8
- package/external/blessed/lib/widgets/screen.js +1186 -1375
- package/external/blessed/lib/widgets/scrollablebox.js +202 -228
- package/external/blessed/lib/widgets/scrollabletext.js +9 -9
- package/external/blessed/lib/widgets/table.js +187 -216
- package/external/blessed/lib/widgets/terminal.js +258 -298
- package/external/blessed/lib/widgets/text.js +9 -9
- package/external/blessed/lib/widgets/textarea.js +188 -222
- package/external/blessed/lib/widgets/textbox.js +34 -36
- package/external/blessed/lib/widgets/video.js +55 -59
- package/external/blessed/usr/fonts/ter-u14b.json +1 -1
- package/external/blessed/usr/fonts/ter-u14n.json +1 -1
- package/external/blessed/vendor/tng.js +1016 -1144
- package/external/blessed-contrib/lib/layout/grid.js +345 -377
- package/external/blessed-contrib/lib/widget/charts/bar.js +6612 -7139
- package/external/blessed-contrib/lib/widget/charts/line.js +16224 -23941
- package/external/blessed-contrib/lib/widget/table.js +78 -96
- package/package.json +9 -9
- package/dist/types/commands/cdxgen/run-cdxgen.d.mts.map +0 -1
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* Modules
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
var Node = require('./node');
|
|
14
|
+
var Element = require('./element');
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Layout
|
|
@@ -19,157 +19,145 @@ const Element = require('./element')
|
|
|
19
19
|
|
|
20
20
|
function Layout(options) {
|
|
21
21
|
if (!(this instanceof Node)) {
|
|
22
|
-
return new Layout(options)
|
|
22
|
+
return new Layout(options);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
options = options || {}
|
|
25
|
+
options = options || {};
|
|
26
26
|
|
|
27
|
-
if (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
throw new Error('`Layout` must have a width and height!')
|
|
27
|
+
if ((options.width == null
|
|
28
|
+
&& (options.left == null && options.right == null))
|
|
29
|
+
|| (options.height == null
|
|
30
|
+
&& (options.top == null && options.bottom == null))) {
|
|
31
|
+
throw new Error('`Layout` must have a width and height!');
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
options.layout = options.layout || 'inline'
|
|
34
|
+
options.layout = options.layout || 'inline';
|
|
35
35
|
|
|
36
|
-
Element.call(this, options)
|
|
36
|
+
Element.call(this, options);
|
|
37
37
|
|
|
38
38
|
if (options.renderer) {
|
|
39
|
-
this.renderer = options.renderer
|
|
39
|
+
this.renderer = options.renderer;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
Object.setPrototypeOf(Layout.prototype, Element.prototype)
|
|
43
|
+
Object.setPrototypeOf(Layout.prototype, Element.prototype);
|
|
44
44
|
|
|
45
|
-
Layout.prototype.type = 'layout'
|
|
45
|
+
Layout.prototype.type = 'layout';
|
|
46
46
|
|
|
47
|
-
Layout.prototype.isRendered = function
|
|
48
|
-
if (!el.lpos)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
47
|
+
Layout.prototype.isRendered = function(el) {
|
|
48
|
+
if (!el.lpos) return false;
|
|
49
|
+
return (el.lpos.xl - el.lpos.xi) > 0
|
|
50
|
+
&& (el.lpos.yl - el.lpos.yi) > 0;
|
|
51
|
+
};
|
|
53
52
|
|
|
54
|
-
Layout.prototype.getLast = function
|
|
53
|
+
Layout.prototype.getLast = function(i) {
|
|
55
54
|
while (this.children[--i]) {
|
|
56
|
-
|
|
57
|
-
if (this.isRendered(el))
|
|
58
|
-
return el
|
|
59
|
-
}
|
|
55
|
+
var el = this.children[i];
|
|
56
|
+
if (this.isRendered(el)) return el;
|
|
60
57
|
}
|
|
61
|
-
}
|
|
58
|
+
};
|
|
62
59
|
|
|
63
|
-
Layout.prototype.getLastCoords = function
|
|
64
|
-
|
|
65
|
-
if (last)
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
}
|
|
60
|
+
Layout.prototype.getLastCoords = function(i) {
|
|
61
|
+
var last = this.getLast(i);
|
|
62
|
+
if (last) return last.lpos;
|
|
63
|
+
};
|
|
69
64
|
|
|
70
|
-
Layout.prototype._renderCoords = function
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
this.children = []
|
|
74
|
-
this._render()
|
|
75
|
-
this.children = children
|
|
76
|
-
return coords
|
|
77
|
-
}
|
|
65
|
+
Layout.prototype._renderCoords = function() {
|
|
66
|
+
var coords = this._getCoords(true);
|
|
67
|
+
var children = this.children;
|
|
68
|
+
this.children = [];
|
|
69
|
+
this._render();
|
|
70
|
+
this.children = children;
|
|
71
|
+
return coords;
|
|
72
|
+
};
|
|
78
73
|
|
|
79
|
-
Layout.prototype.renderer = function
|
|
80
|
-
|
|
74
|
+
Layout.prototype.renderer = function(coords) {
|
|
75
|
+
var self = this;
|
|
81
76
|
|
|
82
77
|
// The coordinates of the layout element
|
|
83
|
-
|
|
84
|
-
height = coords.yl - coords.yi
|
|
85
|
-
xi = coords.xi
|
|
86
|
-
yi = coords.yi
|
|
78
|
+
var width = coords.xl - coords.xi
|
|
79
|
+
, height = coords.yl - coords.yi
|
|
80
|
+
, xi = coords.xi
|
|
81
|
+
, yi = coords.yi;
|
|
87
82
|
|
|
88
83
|
// The current row offset in cells (which row are we on?)
|
|
89
|
-
|
|
84
|
+
var rowOffset = 0;
|
|
90
85
|
|
|
91
86
|
// The index of the first child in the row
|
|
92
|
-
|
|
93
|
-
|
|
87
|
+
var rowIndex = 0;
|
|
88
|
+
var lastRowIndex = 0;
|
|
94
89
|
|
|
95
90
|
// Figure out the highest width child
|
|
96
91
|
if (this.options.layout === 'grid') {
|
|
97
|
-
|
|
98
|
-
out = Math.max(out, el.width)
|
|
99
|
-
return out
|
|
100
|
-
}, 0)
|
|
92
|
+
var highWidth = this.children.reduce(function(out, el) {
|
|
93
|
+
out = Math.max(out, el.width);
|
|
94
|
+
return out;
|
|
95
|
+
}, 0);
|
|
101
96
|
}
|
|
102
97
|
|
|
103
98
|
return function iterator(el, i) {
|
|
104
99
|
// Make our children shrinkable. If they don't have a height, for
|
|
105
100
|
// example, calculate it for them.
|
|
106
|
-
el.shrink = true
|
|
101
|
+
el.shrink = true;
|
|
107
102
|
|
|
108
103
|
// Find the previous rendered child's coordinates
|
|
109
|
-
|
|
104
|
+
var last = self.getLast(i);
|
|
110
105
|
|
|
111
106
|
// If there is no previously rendered element, we are on the first child.
|
|
112
107
|
if (!last) {
|
|
113
|
-
el.position.left = 0
|
|
114
|
-
el.position.top = 0
|
|
108
|
+
el.position.left = 0;
|
|
109
|
+
el.position.top = 0;
|
|
115
110
|
} else {
|
|
116
111
|
// Otherwise, figure out where to place this child. We'll start by
|
|
117
112
|
// setting it's `left`/`x` coordinate to right after the previous
|
|
118
113
|
// rendered element. This child will end up directly to the right of it.
|
|
119
|
-
el.position.left = last.lpos.xl - xi
|
|
114
|
+
el.position.left = last.lpos.xl - xi;
|
|
120
115
|
|
|
121
116
|
// Make sure the position matches the highest width element
|
|
122
117
|
if (self.options.layout === 'grid') {
|
|
123
118
|
// Compensate with width:
|
|
124
119
|
// el.position.width = el.width + (highWidth - el.width);
|
|
125
120
|
// Compensate with position:
|
|
126
|
-
el.position.left += highWidth - (last.lpos.xl - last.lpos.xi)
|
|
121
|
+
el.position.left += highWidth - (last.lpos.xl - last.lpos.xi);
|
|
127
122
|
}
|
|
128
123
|
|
|
129
124
|
// If our child does not overlap the right side of the Layout, set it's
|
|
130
125
|
// `top`/`y` to the current `rowOffset` (the coordinate for the current
|
|
131
126
|
// row).
|
|
132
127
|
if (el.position.left + el.width <= width) {
|
|
133
|
-
el.position.top = rowOffset
|
|
128
|
+
el.position.top = rowOffset;
|
|
134
129
|
} else {
|
|
135
130
|
// Otherwise we need to start a new row and calculate a new
|
|
136
131
|
// `rowOffset` and `rowIndex` (the index of the child on the current
|
|
137
132
|
// row).
|
|
138
|
-
rowOffset += self.children.slice(rowIndex, i).reduce(function
|
|
139
|
-
out
|
|
140
|
-
el
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}, 0)
|
|
148
|
-
lastRowIndex = rowIndex
|
|
149
|
-
rowIndex = i
|
|
150
|
-
el.position.left = 0
|
|
151
|
-
el.position.top = rowOffset
|
|
133
|
+
rowOffset += self.children.slice(rowIndex, i).reduce(function(out, el) {
|
|
134
|
+
if (!self.isRendered(el)) return out;
|
|
135
|
+
out = Math.max(out, el.lpos.yl - el.lpos.yi);
|
|
136
|
+
return out;
|
|
137
|
+
}, 0);
|
|
138
|
+
lastRowIndex = rowIndex;
|
|
139
|
+
rowIndex = i;
|
|
140
|
+
el.position.left = 0;
|
|
141
|
+
el.position.top = rowOffset;
|
|
152
142
|
}
|
|
153
143
|
}
|
|
154
144
|
|
|
155
145
|
// Make sure the elements on lower rows graviatate up as much as possible
|
|
156
146
|
if (self.options.layout === 'inline') {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
for (
|
|
160
|
-
|
|
161
|
-
if (!self.isRendered(l))
|
|
162
|
-
|
|
163
|
-
}
|
|
164
|
-
const abs = Math.abs(el.position.left - (l.lpos.xi - xi))
|
|
147
|
+
var above = null;
|
|
148
|
+
var abovea = Infinity;
|
|
149
|
+
for (var j = lastRowIndex; j < rowIndex; j++) {
|
|
150
|
+
var l = self.children[j];
|
|
151
|
+
if (!self.isRendered(l)) continue;
|
|
152
|
+
var abs = Math.abs(el.position.left - (l.lpos.xi - xi));
|
|
165
153
|
// if (abs < abovea && (l.lpos.xl - l.lpos.xi) <= el.width) {
|
|
166
154
|
if (abs < abovea) {
|
|
167
|
-
above = l
|
|
168
|
-
abovea = abs
|
|
155
|
+
above = l;
|
|
156
|
+
abovea = abs;
|
|
169
157
|
}
|
|
170
158
|
}
|
|
171
159
|
if (above) {
|
|
172
|
-
el.position.top = above.lpos.yl - yi
|
|
160
|
+
el.position.top = above.lpos.yl - yi;
|
|
173
161
|
}
|
|
174
162
|
}
|
|
175
163
|
|
|
@@ -179,73 +167,69 @@ Layout.prototype.renderer = function (coords) {
|
|
|
179
167
|
// Returning false tells blessed to ignore this child.
|
|
180
168
|
// return false;
|
|
181
169
|
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
170
|
+
};
|
|
171
|
+
};
|
|
184
172
|
|
|
185
|
-
Layout.prototype.render = function
|
|
186
|
-
this._emit('prerender')
|
|
173
|
+
Layout.prototype.render = function() {
|
|
174
|
+
this._emit('prerender');
|
|
187
175
|
|
|
188
|
-
|
|
176
|
+
var coords = this._renderCoords();
|
|
189
177
|
if (!coords) {
|
|
190
|
-
delete this.lpos
|
|
191
|
-
return
|
|
178
|
+
delete this.lpos;
|
|
179
|
+
return;
|
|
192
180
|
}
|
|
193
181
|
|
|
194
182
|
if (coords.xl - coords.xi <= 0) {
|
|
195
|
-
coords.xl = Math.max(coords.xl, coords.xi)
|
|
196
|
-
return
|
|
183
|
+
coords.xl = Math.max(coords.xl, coords.xi);
|
|
184
|
+
return;
|
|
197
185
|
}
|
|
198
186
|
|
|
199
187
|
if (coords.yl - coords.yi <= 0) {
|
|
200
|
-
coords.yl = Math.max(coords.yl, coords.yi)
|
|
201
|
-
return
|
|
188
|
+
coords.yl = Math.max(coords.yl, coords.yi);
|
|
189
|
+
return;
|
|
202
190
|
}
|
|
203
191
|
|
|
204
|
-
this.lpos = coords
|
|
192
|
+
this.lpos = coords;
|
|
205
193
|
|
|
206
|
-
if (this.border)
|
|
207
|
-
coords.xi++, coords.xl--, coords.yi++, coords.yl--
|
|
208
|
-
}
|
|
194
|
+
if (this.border) coords.xi++, coords.xl--, coords.yi++, coords.yl--;
|
|
209
195
|
if (this.tpadding) {
|
|
210
|
-
|
|
211
|
-
|
|
196
|
+
coords.xi += this.padding.left, coords.xl -= this.padding.right;
|
|
197
|
+
coords.yi += this.padding.top, coords.yl -= this.padding.bottom;
|
|
212
198
|
}
|
|
213
199
|
|
|
214
|
-
|
|
200
|
+
var iterator = this.renderer(coords);
|
|
215
201
|
|
|
216
|
-
if (this.border)
|
|
217
|
-
coords.xi--, coords.xl++, coords.yi--, coords.yl++
|
|
218
|
-
}
|
|
202
|
+
if (this.border) coords.xi--, coords.xl++, coords.yi--, coords.yl++;
|
|
219
203
|
if (this.tpadding) {
|
|
220
|
-
|
|
221
|
-
|
|
204
|
+
coords.xi -= this.padding.left, coords.xl += this.padding.right;
|
|
205
|
+
coords.yi -= this.padding.top, coords.yl += this.padding.bottom;
|
|
222
206
|
}
|
|
223
207
|
|
|
224
|
-
this.children.forEach(function
|
|
208
|
+
this.children.forEach(function(el, i) {
|
|
225
209
|
if (el.screen._ci !== -1) {
|
|
226
|
-
el.index = el.screen._ci
|
|
210
|
+
el.index = el.screen._ci++;
|
|
227
211
|
}
|
|
228
|
-
|
|
212
|
+
var rendered = iterator(el, i);
|
|
229
213
|
if (rendered === false) {
|
|
230
|
-
delete el.lpos
|
|
231
|
-
return
|
|
214
|
+
delete el.lpos;
|
|
215
|
+
return;
|
|
232
216
|
}
|
|
233
217
|
// if (el.screen._rendering) {
|
|
234
218
|
// el._rendering = true;
|
|
235
219
|
// }
|
|
236
|
-
el.render()
|
|
220
|
+
el.render();
|
|
237
221
|
// if (el.screen._rendering) {
|
|
238
222
|
// el._rendering = false;
|
|
239
223
|
// }
|
|
240
|
-
})
|
|
224
|
+
});
|
|
241
225
|
|
|
242
|
-
this._emit('render', [coords])
|
|
226
|
+
this._emit('render', [coords]);
|
|
243
227
|
|
|
244
|
-
return coords
|
|
245
|
-
}
|
|
228
|
+
return coords;
|
|
229
|
+
};
|
|
246
230
|
|
|
247
231
|
/**
|
|
248
232
|
* Expose
|
|
249
233
|
*/
|
|
250
234
|
|
|
251
|
-
module.exports = Layout
|
|
235
|
+
module.exports = Layout;
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* Modules
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
var Node = require('./node');
|
|
14
|
+
var Box = require('./box');
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Line
|
|
@@ -19,43 +19,40 @@ const Box = require('./box')
|
|
|
19
19
|
|
|
20
20
|
function Line(options) {
|
|
21
21
|
if (!(this instanceof Node)) {
|
|
22
|
-
return new Line(options)
|
|
22
|
+
return new Line(options);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
options = options || {}
|
|
25
|
+
options = options || {};
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
delete options.orientation
|
|
27
|
+
var orientation = options.orientation || 'vertical';
|
|
28
|
+
delete options.orientation;
|
|
29
29
|
|
|
30
30
|
if (orientation === 'vertical') {
|
|
31
|
-
options.width = 1
|
|
31
|
+
options.width = 1;
|
|
32
32
|
} else {
|
|
33
|
-
options.height = 1
|
|
33
|
+
options.height = 1;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
Box.call(this, options)
|
|
36
|
+
Box.call(this, options);
|
|
37
37
|
|
|
38
|
-
this.ch =
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
? '─'
|
|
42
|
-
: '│'
|
|
43
|
-
: options.ch || ' '
|
|
38
|
+
this.ch = !options.type || options.type === 'line'
|
|
39
|
+
? orientation === 'horizontal' ? '─' : '│'
|
|
40
|
+
: options.ch || ' ';
|
|
44
41
|
|
|
45
42
|
this.border = {
|
|
46
43
|
type: 'bg',
|
|
47
44
|
__proto__: this
|
|
48
|
-
}
|
|
45
|
+
};
|
|
49
46
|
|
|
50
|
-
this.style.border = this.style
|
|
47
|
+
this.style.border = this.style;
|
|
51
48
|
}
|
|
52
49
|
|
|
53
|
-
Object.setPrototypeOf(Line.prototype, Box.prototype)
|
|
50
|
+
Object.setPrototypeOf(Line.prototype, Box.prototype);
|
|
54
51
|
|
|
55
|
-
Line.prototype.type = 'line'
|
|
52
|
+
Line.prototype.type = 'line';
|
|
56
53
|
|
|
57
54
|
/**
|
|
58
55
|
* Expose
|
|
59
56
|
*/
|
|
60
57
|
|
|
61
|
-
module.exports = Line
|
|
58
|
+
module.exports = Line;
|