@visulima/vis 1.0.0-alpha.8 → 1.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 +1915 -41
- package/LICENSE.md +13554 -6
- package/README.md +264 -32
- package/bin/resolve-binary.mjs +85 -0
- package/bin/vis.mjs +76 -0
- package/dashboard/dist/index.html +152 -0
- package/dist/bin.d.ts +1 -1
- package/dist/bin.js +1 -1004
- package/dist/binx.js +3 -0
- package/dist/config/index.d.ts +3276 -0
- package/dist/config/index.js +1 -0
- package/dist/generate/index.d.ts +155 -30
- package/dist/generate/index.js +1 -1
- package/dist/packem_chunks/CONFIG_FILES.js +8 -0
- package/dist/packem_chunks/DEFAULT_CLEAN_KEEP.js +1 -0
- package/dist/packem_chunks/agent-instructions.js +11 -0
- package/dist/packem_chunks/bloom-status.js +2 -0
- package/dist/packem_chunks/bloom-sync.js +2 -0
- package/dist/packem_chunks/cache-attestation.js +1 -0
- package/dist/packem_chunks/catalog-detector.js +1 -0
- package/dist/packem_chunks/catalog.js +114 -0
- package/dist/packem_chunks/cli-exec.js +1 -0
- package/dist/packem_chunks/cli-main.js +268 -0
- package/dist/packem_chunks/defineReleasePlugin.js +3 -0
- package/dist/packem_chunks/detect.js +3 -0
- package/dist/packem_chunks/detect2.js +8 -0
- package/dist/packem_chunks/devtools.js +4 -0
- package/dist/packem_chunks/discord.js +4 -0
- package/dist/packem_chunks/dispatch.js +4 -0
- package/dist/packem_chunks/doctor-probe.js +2 -0
- package/dist/packem_chunks/dynamic-import.js +1 -0
- package/dist/packem_chunks/extra-files.js +3 -0
- package/dist/packem_chunks/fix.js +11 -0
- package/dist/packem_chunks/git.js +3 -0
- package/dist/packem_chunks/group-tags.js +1 -0
- package/dist/packem_chunks/handler.js +1 -0
- package/dist/packem_chunks/handler10.js +5 -0
- package/dist/packem_chunks/handler11.js +1 -0
- package/dist/packem_chunks/handler12.js +27 -0
- package/dist/packem_chunks/handler13.js +5 -0
- package/dist/packem_chunks/handler14.js +1 -0
- package/dist/packem_chunks/handler15.js +1 -0
- package/dist/packem_chunks/handler16.js +1 -0
- package/dist/packem_chunks/handler17.js +1 -0
- package/dist/packem_chunks/handler18.js +1 -0
- package/dist/packem_chunks/handler19.js +5 -0
- package/dist/packem_chunks/handler2.js +1 -0
- package/dist/packem_chunks/handler20.js +2 -0
- package/dist/packem_chunks/handler21.js +2 -0
- package/dist/packem_chunks/handler22.js +14 -0
- package/dist/packem_chunks/handler23.js +1 -0
- package/dist/packem_chunks/handler24.js +1 -0
- package/dist/packem_chunks/handler25.js +1 -0
- package/dist/packem_chunks/handler26.js +5 -0
- package/dist/packem_chunks/handler27.js +1 -0
- package/dist/packem_chunks/handler28.js +3 -0
- package/dist/packem_chunks/handler29.js +1 -0
- package/dist/packem_chunks/handler3.js +4 -0
- package/dist/packem_chunks/handler30.js +1 -0
- package/dist/packem_chunks/handler31.js +2 -0
- package/dist/packem_chunks/handler32.js +2 -0
- package/dist/packem_chunks/handler33.js +2 -0
- package/dist/packem_chunks/handler34.js +3 -0
- package/dist/packem_chunks/handler35.js +6 -0
- package/dist/packem_chunks/handler36.js +1 -0
- package/dist/packem_chunks/handler37.js +42 -0
- package/dist/packem_chunks/handler38.js +8 -0
- package/dist/packem_chunks/handler39.js +9 -0
- package/dist/packem_chunks/handler4.js +4 -0
- package/dist/packem_chunks/handler40.js +75 -0
- package/dist/packem_chunks/handler41.js +5 -0
- package/dist/packem_chunks/handler42.js +4 -0
- package/dist/packem_chunks/handler43.js +3 -0
- package/dist/packem_chunks/handler44.js +2 -0
- package/dist/packem_chunks/handler45.js +1 -0
- package/dist/packem_chunks/handler46.js +1 -0
- package/dist/packem_chunks/handler47.js +1 -0
- package/dist/packem_chunks/handler48.js +3 -0
- package/dist/packem_chunks/handler49.js +1 -0
- package/dist/packem_chunks/handler5.js +6 -0
- package/dist/packem_chunks/handler50.js +7 -0
- package/dist/packem_chunks/handler51.js +33 -0
- package/dist/packem_chunks/handler52.js +3 -0
- package/dist/packem_chunks/handler53.js +8 -0
- package/dist/packem_chunks/handler54.js +4 -0
- package/dist/packem_chunks/handler55.js +1 -0
- package/dist/packem_chunks/handler56.js +12 -0
- package/dist/packem_chunks/handler57.js +11 -0
- package/dist/packem_chunks/handler58.js +5 -0
- package/dist/packem_chunks/handler59.js +11 -0
- package/dist/packem_chunks/handler6.js +8 -0
- package/dist/packem_chunks/handler60.js +3 -0
- package/dist/packem_chunks/handler61.js +22 -0
- package/dist/packem_chunks/handler62.js +61 -0
- package/dist/packem_chunks/handler63.js +3 -0
- package/dist/packem_chunks/handler64.js +6 -0
- package/dist/packem_chunks/handler65.js +9 -0
- package/dist/packem_chunks/handler66.js +2 -0
- package/dist/packem_chunks/handler67.js +24 -0
- package/dist/packem_chunks/handler68.js +25 -0
- package/dist/packem_chunks/handler69.js +153 -0
- package/dist/packem_chunks/handler7.js +1 -0
- package/dist/packem_chunks/handler70.js +10 -0
- package/dist/packem_chunks/handler71.js +23 -0
- package/dist/packem_chunks/handler72.js +322 -0
- package/dist/packem_chunks/handler73.js +708 -0
- package/dist/packem_chunks/handler74.js +48 -0
- package/dist/packem_chunks/handler75.js +27 -0
- package/dist/packem_chunks/handler76.js +3 -0
- package/dist/packem_chunks/handler77.js +190 -0
- package/dist/packem_chunks/handler78.js +38 -0
- package/dist/packem_chunks/handler8.js +1 -0
- package/dist/packem_chunks/handler9.js +1 -0
- package/dist/packem_chunks/heal-accept.js +10 -0
- package/dist/packem_chunks/heal.js +14 -0
- package/dist/packem_chunks/help-command.js +31 -0
- package/dist/packem_chunks/index.js +1 -7
- package/dist/packem_chunks/index2.js +802 -0
- package/dist/packem_chunks/index3.js +7 -0
- package/dist/packem_chunks/index4.js +135 -0
- package/dist/packem_chunks/index5.js +74 -0
- package/dist/packem_chunks/interface.js +2 -0
- package/dist/packem_chunks/keys-refresh.js +4 -0
- package/dist/packem_chunks/lean.js +4 -0
- package/dist/packem_chunks/list.js +3 -0
- package/dist/packem_chunks/loader.js +4 -1
- package/dist/packem_chunks/loader2.js +1 -0
- package/dist/packem_chunks/orchestrator.js +42 -0
- package/dist/packem_chunks/pre-mode.js +2 -0
- package/dist/packem_chunks/print-config.js +2 -0
- package/dist/packem_chunks/prompts.js +7 -0
- package/dist/packem_chunks/prune.js +3 -0
- package/dist/packem_chunks/publish-guards.js +1 -0
- package/dist/packem_chunks/registry.js +48 -0
- package/dist/packem_chunks/resolveFormatter.js +9 -0
- package/dist/packem_chunks/run.js +1 -0
- package/dist/packem_chunks/security.js +1 -0
- package/dist/packem_chunks/shell-runner.js +1 -0
- package/dist/packem_chunks/slack.js +2 -0
- package/dist/packem_chunks/snapshot.js +2 -0
- package/dist/packem_chunks/stage-publisher.js +1 -0
- package/dist/packem_chunks/staged-registry.js +2 -0
- package/dist/packem_chunks/state.js +3 -0
- package/dist/packem_chunks/status.js +2 -0
- package/dist/packem_chunks/success-walk.js +8 -0
- package/dist/packem_chunks/sync.js +2 -0
- package/dist/packem_chunks/sync2.js +2 -0
- package/dist/packem_chunks/tar.js +3 -0
- package/dist/packem_chunks/tripwire.js +2 -0
- package/dist/packem_chunks/ts-loader.js +22 -0
- package/dist/packem_chunks/verify-lockfile.js +2 -0
- package/dist/packem_chunks/version-resolver.js +2 -0
- package/dist/packem_chunks/webhook.js +1 -0
- package/dist/packem_chunks/workflow-templates.js +167 -0
- package/dist/packem_chunks/workspace.js +2 -0
- package/dist/packem_shared/AfterAllProjectsVersioned-CAKI2nWf.js +1 -0
- package/dist/packem_shared/MultiSpinner-B9U0-aE3-B-gIXhFk.js +3 -0
- package/dist/packem_shared/ReleaseClient-BY4OZNCK.js +1 -0
- package/dist/packem_shared/Table-CcVkyULl-DLWu6XHL.js +34 -0
- package/dist/packem_shared/VisReleaseError-DMGRBTNO.js +1 -0
- package/dist/packem_shared/_commonjsHelpers-B5Y90VFO.js +1 -0
- package/dist/packem_shared/advisories-B76fBVL-.js +1 -0
- package/dist/packem_shared/affected-shas-CCxG4tvm.js +1 -0
- package/dist/packem_shared/ai-analysis-BpVdn20h.js +68 -0
- package/dist/packem_shared/ai-fix-CeGzAT9m.js +43 -0
- package/dist/packem_shared/anolilab-text-CAM_E6uK.js +13 -0
- package/dist/packem_shared/api.d-BPftyU9r.d.ts +27 -0
- package/dist/packem_shared/augment-DaSS2Lgs.js +4 -0
- package/dist/packem_shared/bin-BlGVEhl8.js +1 -0
- package/dist/packem_shared/build-scripts-q__dKE2y.js +1 -0
- package/dist/packem_shared/command-runtime-3FTGuUsK.js +1 -0
- package/dist/packem_shared/compile-cache-B_Vf_WxT.js +3 -0
- package/dist/packem_shared/createAdapter-bU4DIP3F.js +1 -0
- package/dist/packem_shared/createVersionActions-BK43SNDH.js +1 -0
- package/dist/packem_shared/cyclonedx-CmrYQ0vx.js +4 -0
- package/dist/packem_shared/defineFormatter-D5dCp6Kv.js +1 -0
- package/dist/packem_shared/definePlugin-DoUcoYSy.js +1 -0
- package/dist/packem_shared/dependency-scan-DpOFiZuI.js +1 -0
- package/dist/packem_shared/docker-BYqiD711.js +59 -0
- package/dist/packem_shared/env-DdQRnEIy.js +27 -0
- package/dist/packem_shared/failure-log-CKMhqLWr.js +2 -0
- package/dist/packem_shared/giget-DVTFJlbR.js +2 -0
- package/dist/packem_shared/glob-fqg4KepW-1S3z30c8.js +1 -0
- package/dist/packem_shared/index-B0EsgdzO.js +1 -0
- package/dist/packem_shared/index-CE6MsgcV.js +22 -0
- package/dist/packem_shared/index-Cg0IHaFI.js +1 -0
- package/dist/packem_shared/index-Cg71MisW.js +1 -0
- package/dist/packem_shared/index-DjTWo3sH.js +1 -0
- package/dist/packem_shared/index-jJNulo5i.js +28 -0
- package/dist/packem_shared/index.server-J83sowC4.js +2 -0
- package/dist/packem_shared/interface.d-B7VK2rcH.d.ts +148 -0
- package/dist/packem_shared/interface.d-Cezzifoh.d.ts +106 -0
- package/dist/packem_shared/license-t5KnNX6v.js +1 -0
- package/dist/packem_shared/lifecycle-aDTZ8dW1.js +2 -0
- package/dist/packem_shared/lockfile-C1qCKGH6.js +1 -0
- package/dist/packem_shared/main-B3juSU5z.js +1 -0
- package/dist/packem_shared/manifests-DSBr3-dw.js +1 -0
- package/dist/packem_shared/min-release-age-C71MO72F.js +34 -0
- package/dist/packem_shared/missing-package-json-CTF71tE5.js +1 -0
- package/dist/packem_shared/native-config-sync-D-z2Uwqu.js +21 -0
- package/dist/packem_shared/osv-bloom-DMhXP184.js +2 -0
- package/dist/packem_shared/otelPlugin-DmKDBaPo.js +1 -0
- package/dist/packem_shared/packument-aGzYwXKn.js +1 -0
- package/dist/packem_shared/peer-warnings-BXAzXqY3.js +1 -0
- package/dist/packem_shared/plugins.d-ND23R9I3.d.ts +4 -0
- package/dist/packem_shared/pm-runner-CQcraCcu.js +1 -0
- package/dist/packem_shared/prompt-DjXHVgYU.js +1 -0
- package/dist/packem_shared/provenance-S7y0BRAt.js +1 -0
- package/dist/packem_shared/public-api-WqUCiyIe.js +131 -0
- package/dist/packem_shared/readJsonSync-DuMMeB3s-ihoybKvs.js +1 -0
- package/dist/packem_shared/registry-keys-CRnXATt2.js +1 -0
- package/dist/packem_shared/resolve-explicit-CJGazevw.js +5 -0
- package/dist/packem_shared/resolve-runtime-QRaQucfL.js +1 -0
- package/dist/packem_shared/run-file-DD7Ne23Z.js +1 -0
- package/dist/packem_shared/runtime-check-qnrPTlma.js +1 -0
- package/dist/packem_shared/runtime-process-Dmz0vCJy-DUwTvH1J.js +1 -0
- package/dist/packem_shared/s1ngularity-BLj4Jy8z.js +1 -0
- package/dist/packem_shared/scan-progress-BDcl7Kty.js +2 -0
- package/dist/packem_shared/selectors-D4iCvITE.js +3 -0
- package/dist/packem_shared/signatures-DoNG2hEr.js +2 -0
- package/dist/packem_shared/slug-DoueYuLo.js +1 -0
- package/dist/packem_shared/spinner-DuJJvFTl.js +1 -0
- package/dist/packem_shared/sticky-comment-D6_7-w8T.js +1 -0
- package/dist/packem_shared/subtree-C7bZuiSQ.js +2 -0
- package/dist/packem_shared/symbols-DPTlrJ3B.js +1 -0
- package/dist/packem_shared/tabs-CgxCvjCY.js +1 -0
- package/dist/packem_shared/target-merge-Dg25Izl5.js +11 -0
- package/dist/packem_shared/target-options-CR0OuYJr.js +1 -0
- package/dist/packem_shared/toolchain-Zb3VzZb4.js +5 -0
- package/dist/packem_shared/typosquats-C12CP_2G.js +1 -0
- package/dist/packem_shared/use-measured-height-CjS7Tks7.js +1 -0
- package/dist/packem_shared/utils-CRueU43T.js +1 -0
- package/dist/packem_shared/verify-DStfg3nb.js +1 -0
- package/dist/packem_shared/vis-update-app-BlocL713.js +1 -0
- package/dist/packem_shared/watch-BXNI7dC6.js +1 -0
- package/dist/packem_shared/watch-loop-BZudYfcl.js +11 -0
- package/dist/release/core/changelog/index.d.ts +5 -0
- package/dist/release/core/changelog/index.js +1 -0
- package/dist/release/core/package-managers/index.d.ts +6 -0
- package/dist/release/core/package-managers/index.js +1 -0
- package/dist/release/core/version-actions/index.d.ts +14 -0
- package/dist/release/core/version-actions/index.js +1 -0
- package/dist/release/index.d.ts +233 -0
- package/dist/release/index.js +1 -0
- package/dist/release/plugin-sdk.d.ts +128 -0
- package/dist/release/plugin-sdk.js +1 -0
- package/dist/release/presets.d.ts +225 -0
- package/dist/release/presets.js +1 -0
- package/dist/release/types.d.ts +1493 -0
- package/dist/release/types.js +1 -0
- package/dist/runtime/preload.d.ts +1 -0
- package/dist/runtime/preload.js +1 -0
- package/index.d.ts +450 -0
- package/index.js +579 -728
- package/package.json +103 -52
- package/schemas/project.schema.json +873 -226
- package/schemas/vis-config.schema.json +6332 -241
- package/schemas/vis-release-config.schema.json +1423 -0
- package/skills/vis/SKILL.md +96 -0
- package/templates/buildkite-ci/.buildkite/pipeline.yml.tera +85 -0
- package/templates/buildkite-ci/template.yml +20 -0
- package/dist/ai-analysis.d.ts +0 -26
- package/dist/ai-cache.d.ts +0 -21
- package/dist/ai-types.d.ts +0 -16
- package/dist/audit-config.d.ts +0 -24
- package/dist/cache-directory.d.ts +0 -73
- package/dist/catalog.d.ts +0 -136
- package/dist/codeowners.d.ts +0 -30
- package/dist/commands/action-graph.d.ts +0 -8
- package/dist/commands/add.d.ts +0 -3
- package/dist/commands/affected.d.ts +0 -3
- package/dist/commands/ai.d.ts +0 -3
- package/dist/commands/analyze.d.ts +0 -3
- package/dist/commands/approve-builds.d.ts +0 -3
- package/dist/commands/audit.d.ts +0 -23
- package/dist/commands/cache.d.ts +0 -86
- package/dist/commands/check.d.ts +0 -3
- package/dist/commands/ci.d.ts +0 -19
- package/dist/commands/clean.d.ts +0 -3
- package/dist/commands/create/discovery.d.ts +0 -42
- package/dist/commands/create/index.d.ts +0 -13
- package/dist/commands/create/prompts.d.ts +0 -31
- package/dist/commands/create/random-name.d.ts +0 -15
- package/dist/commands/create/templates/builtin.d.ts +0 -15
- package/dist/commands/create/templates/generator.d.ts +0 -14
- package/dist/commands/create/templates/index.d.ts +0 -13
- package/dist/commands/create/templates/monorepo.d.ts +0 -16
- package/dist/commands/create/templates/remote.d.ts +0 -41
- package/dist/commands/create/templates/types.d.ts +0 -46
- package/dist/commands/create/utils.d.ts +0 -42
- package/dist/commands/dedupe.d.ts +0 -3
- package/dist/commands/devcontainer.d.ts +0 -3
- package/dist/commands/dlx.d.ts +0 -3
- package/dist/commands/docker.d.ts +0 -22
- package/dist/commands/doctor.d.ts +0 -15
- package/dist/commands/exec.d.ts +0 -3
- package/dist/commands/generate.d.ts +0 -10
- package/dist/commands/graph.d.ts +0 -3
- package/dist/commands/hook/constants.d.ts +0 -13
- package/dist/commands/hook/index.d.ts +0 -3
- package/dist/commands/hook/install.d.ts +0 -7
- package/dist/commands/hook/list.d.ts +0 -28
- package/dist/commands/hook/migrate.d.ts +0 -30
- package/dist/commands/hook/prek-builtins.d.ts +0 -8
- package/dist/commands/hook/prek.d.ts +0 -129
- package/dist/commands/hook/run.d.ts +0 -21
- package/dist/commands/hook/uninstall.d.ts +0 -3
- package/dist/commands/hook/validate.d.ts +0 -17
- package/dist/commands/ignore-helpers.d.ts +0 -157
- package/dist/commands/ignore.d.ts +0 -17
- package/dist/commands/implode.d.ts +0 -3
- package/dist/commands/info.d.ts +0 -3
- package/dist/commands/init.d.ts +0 -14
- package/dist/commands/install.d.ts +0 -3
- package/dist/commands/link.d.ts +0 -3
- package/dist/commands/list.d.ts +0 -3
- package/dist/commands/migrate/backup.d.ts +0 -8
- package/dist/commands/migrate/constants.d.ts +0 -16
- package/dist/commands/migrate/deps.d.ts +0 -32
- package/dist/commands/migrate/gitleaks.d.ts +0 -29
- package/dist/commands/migrate/index.d.ts +0 -3
- package/dist/commands/migrate/json.d.ts +0 -22
- package/dist/commands/migrate/kingfisher.d.ts +0 -14
- package/dist/commands/migrate/lint-staged.d.ts +0 -62
- package/dist/commands/migrate/moon.d.ts +0 -5
- package/dist/commands/migrate/nano-staged.d.ts +0 -30
- package/dist/commands/migrate/nx.d.ts +0 -12
- package/dist/commands/migrate/prompt.d.ts +0 -2
- package/dist/commands/migrate/secretlint.d.ts +0 -14
- package/dist/commands/migrate/shared.d.ts +0 -29
- package/dist/commands/migrate/turborepo.d.ts +0 -11
- package/dist/commands/migrate/types.d.ts +0 -27
- package/dist/commands/migrate/verify.d.ts +0 -12
- package/dist/commands/optimize.d.ts +0 -38
- package/dist/commands/pm.d.ts +0 -3
- package/dist/commands/remove.d.ts +0 -3
- package/dist/commands/run.d.ts +0 -16
- package/dist/commands/sbom.d.ts +0 -10
- package/dist/commands/secrets.d.ts +0 -3
- package/dist/commands/sort-package-json.d.ts +0 -3
- package/dist/commands/staged.d.ts +0 -10
- package/dist/commands/status.d.ts +0 -3
- package/dist/commands/sync.d.ts +0 -16
- package/dist/commands/task-why.d.ts +0 -3
- package/dist/commands/unlink.d.ts +0 -3
- package/dist/commands/update.d.ts +0 -3
- package/dist/commands/upgrade.d.ts +0 -3
- package/dist/commands/why.d.ts +0 -3
- package/dist/config.d.ts +0 -82
- package/dist/config.js +0 -1
- package/dist/docker.d.ts +0 -73
- package/dist/flakiness.d.ts +0 -40
- package/dist/generate/discover.d.ts +0 -29
- package/dist/generate/loader.d.ts +0 -15
- package/dist/generate/moon-adapter/filename-interp.d.ts +0 -42
- package/dist/generate/moon-adapter/filters.d.ts +0 -22
- package/dist/generate/moon-adapter/frontmatter.d.ts +0 -39
- package/dist/generate/moon-adapter/index.d.ts +0 -19
- package/dist/generate/moon-adapter/tera-subset.d.ts +0 -85
- package/dist/generate/moon-adapter/util.d.ts +0 -14
- package/dist/generate/prompts.d.ts +0 -25
- package/dist/generate/remote.d.ts +0 -43
- package/dist/generate/runner.d.ts +0 -37
- package/dist/generate/types.d.ts +0 -152
- package/dist/hooks.d.ts +0 -118
- package/dist/native-binding.d.ts +0 -158
- package/dist/output.d.ts +0 -40
- package/dist/overrides.d.ts +0 -82
- package/dist/package-manager.d.ts +0 -23
- package/dist/packem_shared/otelPlugin-CJLkguJ8.js +0 -1
- package/dist/plugins/config-loader.d.ts +0 -3
- package/dist/plugins/otel.d.ts +0 -63
- package/dist/plugins/post-command.d.ts +0 -3
- package/dist/plugins/security-enforcement.d.ts +0 -3
- package/dist/pm-runner.d.ts +0 -44
- package/dist/run-report.d.ts +0 -40
- package/dist/runtime-check.d.ts +0 -27
- package/dist/sbom/cyclonedx.d.ts +0 -39
- package/dist/sbom/installed-package.d.ts +0 -49
- package/dist/sbom/license.d.ts +0 -31
- package/dist/sbom/lockfile.d.ts +0 -34
- package/dist/sbom/purl.d.ts +0 -25
- package/dist/sbom/resolve-specifier.d.ts +0 -24
- package/dist/sbom/types.d.ts +0 -196
- package/dist/secrets/baseline.d.ts +0 -20
- package/dist/secrets/format.d.ts +0 -14
- package/dist/secrets/git.d.ts +0 -6
- package/dist/secrets/spinner.d.ts +0 -9
- package/dist/security.d.ts +0 -64
- package/dist/selectors.d.ts +0 -81
- package/dist/shell-history.d.ts +0 -16
- package/dist/socket-security.d.ts +0 -129
- package/dist/staged/cli-parse.d.ts +0 -18
- package/dist/staged/config.d.ts +0 -14
- package/dist/staged/errors/apply-empty-commit-error.d.ts +0 -4
- package/dist/staged/errors/config-error.d.ts +0 -4
- package/dist/staged/errors/get-backup-stash-error.d.ts +0 -4
- package/dist/staged/errors/git-error.d.ts +0 -6
- package/dist/staged/errors/index.d.ts +0 -12
- package/dist/staged/errors/restore-original-state-error.d.ts +0 -4
- package/dist/staged/errors/staged-error.d.ts +0 -8
- package/dist/staged/errors/task-error.d.ts +0 -6
- package/dist/staged/git/diff.d.ts +0 -76
- package/dist/staged/git/exec.d.ts +0 -43
- package/dist/staged/git/index.d.ts +0 -77
- package/dist/staged/git/stash.d.ts +0 -37
- package/dist/staged/index.d.ts +0 -13
- package/dist/staged/match.d.ts +0 -12
- package/dist/staged/renderer/index.d.ts +0 -9
- package/dist/staged/renderer/ink/index.d.ts +0 -4
- package/dist/staged/renderer/plain.d.ts +0 -12
- package/dist/staged/tasks/build.d.ts +0 -13
- package/dist/staged/tasks/exec.d.ts +0 -56
- package/dist/staged/tasks/run.d.ts +0 -26
- package/dist/staged/types.d.ts +0 -173
- package/dist/target-discovery.d.ts +0 -59
- package/dist/target-options.d.ts +0 -261
- package/dist/tips.d.ts +0 -41
- package/dist/tui/components/CheckProgressApp.d.ts +0 -6
- package/dist/tui/components/CommandSummary.d.ts +0 -17
- package/dist/tui/components/Header.d.ts +0 -13
- package/dist/tui/components/OutputPanel.d.ts +0 -17
- package/dist/tui/components/QuitDialog.d.ts +0 -15
- package/dist/tui/components/TaskListPanel.d.ts +0 -19
- package/dist/tui/components/TaskRow.d.ts +0 -12
- package/dist/tui/components/TaskStore.d.ts +0 -80
- package/dist/tui/components/VisTaskRunnerApp.d.ts +0 -17
- package/dist/tui/components/devcontainer/DevcontainerStore.d.ts +0 -66
- package/dist/tui/components/devcontainer/VisDevcontainerApp.d.ts +0 -9
- package/dist/tui/components/devcontainer/catalogs/extensions.d.ts +0 -8
- package/dist/tui/components/devcontainer/catalogs/features.d.ts +0 -8
- package/dist/tui/components/devcontainer/catalogs/filters.d.ts +0 -4
- package/dist/tui/components/devcontainer/catalogs/mount-suggestions.d.ts +0 -19
- package/dist/tui/components/devcontainer/catalogs/templates.d.ts +0 -8
- package/dist/tui/components/devcontainer/devcontainer-io.d.ts +0 -14
- package/dist/tui/components/devcontainer/sections/DockerComposeSection.d.ts +0 -11
- package/dist/tui/components/devcontainer/sections/EnvironmentSection.d.ts +0 -16
- package/dist/tui/components/devcontainer/sections/ExtensionsSection.d.ts +0 -11
- package/dist/tui/components/devcontainer/sections/FeaturesSection.d.ts +0 -11
- package/dist/tui/components/devcontainer/sections/GeneralSection.d.ts +0 -12
- package/dist/tui/components/devcontainer/sections/LifecycleSection.d.ts +0 -13
- package/dist/tui/components/devcontainer/sections/MountsSection.d.ts +0 -16
- package/dist/tui/components/devcontainer/sections/PortsSection.d.ts +0 -10
- package/dist/tui/components/devcontainer/sections/PreviewPanel.d.ts +0 -11
- package/dist/tui/components/devcontainer/types.d.ts +0 -53
- package/dist/tui/components/devcontainer/validate.d.ts +0 -16
- package/dist/tui/components/graph/GraphStore.d.ts +0 -42
- package/dist/tui/components/graph/ProjectDetailPanel.d.ts +0 -10
- package/dist/tui/components/graph/ProjectListPanel.d.ts +0 -20
- package/dist/tui/components/graph/VisGraphApp.d.ts +0 -8
- package/dist/tui/components/optimize/OptimizeDetailPanel.d.ts +0 -9
- package/dist/tui/components/optimize/OptimizeListPanel.d.ts +0 -16
- package/dist/tui/components/optimize/OptimizeStore.d.ts +0 -50
- package/dist/tui/components/optimize/VisOptimizeApp.d.ts +0 -8
- package/dist/tui/components/optimize/constants.d.ts +0 -7
- package/dist/tui/components/update/PackageDetailPanel.d.ts +0 -12
- package/dist/tui/components/update/PackageListPanel.d.ts +0 -21
- package/dist/tui/components/update/UpdateStore.d.ts +0 -62
- package/dist/tui/components/update/VisUpdateApp.d.ts +0 -18
- package/dist/tui/dynamic-life-cycle.d.ts +0 -22
- package/dist/tui/formatting-utils.d.ts +0 -17
- package/dist/tui/pretty-time.d.ts +0 -8
- package/dist/tui/static-life-cycle.d.ts +0 -28
- package/dist/tui/status-utils.d.ts +0 -20
- package/dist/tui/symbols.d.ts +0 -7
- package/dist/tui/types.d.ts +0 -11
- package/dist/typosquats.d.ts +0 -70
- package/dist/upgrade-check.d.ts +0 -30
- package/dist/utils.d.ts +0 -22
- package/dist/watch.d.ts +0 -65
- package/dist/workspace.d.ts +0 -675
package/dist/sbom/types.d.ts
DELETED
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TypeScript types for the subset of CycloneDX 1.6 that `vis sbom` emits.
|
|
3
|
-
*
|
|
4
|
-
* These types are hand-maintained against the vendored schema at
|
|
5
|
-
* `__tests__/sbom/schemas/bom-1.6.schema.json` (upstream tag 1.6.1). They
|
|
6
|
-
* intentionally cover only the shapes the SBOM generator produces —
|
|
7
|
-
* `services`, `vulnerabilities`, `compositions`, `annotations`,
|
|
8
|
-
* `formulation`, `declarations`, `signature`, `pedigree`, `evidence`,
|
|
9
|
-
* `modelCard`, and crypto-asset fields are omitted.
|
|
10
|
-
*
|
|
11
|
-
* The schema is still the source of truth: see
|
|
12
|
-
* `__tests__/sbom/schema-conformance.test.ts` for the ajv-backed validator
|
|
13
|
-
* that runs on every emitted BOM.
|
|
14
|
-
*/
|
|
15
|
-
/** Hash algorithms permitted by CycloneDX 1.6. */
|
|
16
|
-
export type HashAlgorithm = "BLAKE2b-256" | "BLAKE2b-384" | "BLAKE2b-512" | "BLAKE3" | "MD5" | "SHA-1" | "SHA-256" | "SHA-384" | "SHA-512" | "SHA3-256" | "SHA3-384" | "SHA3-512";
|
|
17
|
-
/** A single hash entry on a component. */
|
|
18
|
-
export interface Hash {
|
|
19
|
-
alg: HashAlgorithm;
|
|
20
|
-
/** Hex-encoded digest (no `sha512-` prefix; integrity strings from npm lockfiles must be stripped + base64-decoded first). */
|
|
21
|
-
content: string;
|
|
22
|
-
}
|
|
23
|
-
/** Component type enumeration. */
|
|
24
|
-
export type ComponentType = "application" | "container" | "cryptographic-asset" | "data" | "device" | "device-driver" | "file" | "firmware" | "framework" | "library" | "machine-learning-model" | "operating-system" | "platform";
|
|
25
|
-
/** Dependency scope on a component. */
|
|
26
|
-
export type ComponentScope = "excluded" | "optional" | "required";
|
|
27
|
-
/** License acknowledgement status. */
|
|
28
|
-
export type LicenseAcknowledgement = "concluded" | "declared";
|
|
29
|
-
/** Fields shared by every licence variant. */
|
|
30
|
-
export interface LicenseBase {
|
|
31
|
-
acknowledgement?: LicenseAcknowledgement;
|
|
32
|
-
"bom-ref"?: string;
|
|
33
|
-
text?: Attachment;
|
|
34
|
-
url?: string;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* A named or SPDX-identified licence.
|
|
38
|
-
*
|
|
39
|
-
* The schema requires exactly one of `id` or `name` to be present; this is
|
|
40
|
-
* modelled as a discriminated union so the constraint is enforced at the
|
|
41
|
-
* type level rather than just at ajv-validation time.
|
|
42
|
-
*/
|
|
43
|
-
export type License = NamedLicense | SpdxLicense;
|
|
44
|
-
/** SPDX-identified licence (`id` is a valid SPDX licence identifier). */
|
|
45
|
-
export interface SpdxLicense extends LicenseBase {
|
|
46
|
-
/** SPDX licence identifier (e.g. `"MIT"`). */
|
|
47
|
-
id: string;
|
|
48
|
-
name?: never;
|
|
49
|
-
}
|
|
50
|
-
/** Free-form licence where no SPDX identifier matches. */
|
|
51
|
-
export interface NamedLicense extends LicenseBase {
|
|
52
|
-
id?: never;
|
|
53
|
-
/** Free-form licence name. */
|
|
54
|
-
name: string;
|
|
55
|
-
}
|
|
56
|
-
/** A single licence entry in the `licenses` array. */
|
|
57
|
-
export interface LicenseEntry {
|
|
58
|
-
license: License;
|
|
59
|
-
}
|
|
60
|
-
/** A single-element tuple carrying an SPDX expression. */
|
|
61
|
-
export interface LicenseExpressionEntry {
|
|
62
|
-
acknowledgement?: LicenseAcknowledgement;
|
|
63
|
-
"bom-ref"?: string;
|
|
64
|
-
expression: string;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Per the spec, `licenses` is EITHER a list of `{ license }` entries OR a
|
|
68
|
-
* one-element tuple carrying an SPDX expression — never mixed.
|
|
69
|
-
*/
|
|
70
|
-
export type LicenseChoice = LicenseEntry[] | [LicenseExpressionEntry];
|
|
71
|
-
/** Attachment (inline blob) used for licence texts, etc. */
|
|
72
|
-
export interface Attachment {
|
|
73
|
-
content: string;
|
|
74
|
-
contentType?: string;
|
|
75
|
-
encoding?: "base64";
|
|
76
|
-
}
|
|
77
|
-
/** Individual contact within an organisation. */
|
|
78
|
-
export interface OrganizationalContact {
|
|
79
|
-
"bom-ref"?: string;
|
|
80
|
-
email?: string;
|
|
81
|
-
name?: string;
|
|
82
|
-
phone?: string;
|
|
83
|
-
}
|
|
84
|
-
/** Postal address attached to an organisation. */
|
|
85
|
-
export interface PostalAddress {
|
|
86
|
-
"bom-ref"?: string;
|
|
87
|
-
country?: string;
|
|
88
|
-
locality?: string;
|
|
89
|
-
postalCode?: string;
|
|
90
|
-
region?: string;
|
|
91
|
-
streetAddress?: string;
|
|
92
|
-
}
|
|
93
|
-
/** Company / organisation metadata. */
|
|
94
|
-
export interface OrganizationalEntity {
|
|
95
|
-
address?: PostalAddress;
|
|
96
|
-
"bom-ref"?: string;
|
|
97
|
-
contact?: OrganizationalContact[];
|
|
98
|
-
name?: string;
|
|
99
|
-
url?: string[];
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* All 43 values from the CycloneDX 1.6 `externalReferenceType` enum. Kept
|
|
103
|
-
* exhaustive so any spec-legal reference type type-checks.
|
|
104
|
-
*/
|
|
105
|
-
export type ExternalReferenceType = "adversary-model" | "advisories" | "attestation" | "bom" | "build-meta" | "build-system" | "certification-report" | "chat" | "codified-infrastructure" | "component-analysis-report" | "configuration" | "digital-signature" | "distribution" | "distribution-intake" | "documentation" | "dynamic-analysis-report" | "electronic-signature" | "evidence" | "exploitability-statement" | "formulation" | "issue-tracker" | "license" | "log" | "mailing-list" | "maturity-report" | "model-card" | "other" | "pentest-report" | "poam" | "quality-metrics" | "release-notes" | "rfc-9116" | "risk-assessment" | "runtime-analysis-report" | "security-contact" | "social" | "source-distribution" | "static-analysis-report" | "support" | "threat-model" | "vcs" | "vulnerability-assertion" | "website";
|
|
106
|
-
/** External reference (website, VCS, distribution, etc.). */
|
|
107
|
-
export interface ExternalReference {
|
|
108
|
-
comment?: string;
|
|
109
|
-
hashes?: Hash[];
|
|
110
|
-
type: ExternalReferenceType;
|
|
111
|
-
url: string;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* A software component in the BOM. This is the shape `vis sbom` emits —
|
|
115
|
-
* it's a strict subset of the CycloneDX definition.
|
|
116
|
-
*/
|
|
117
|
-
export interface Component {
|
|
118
|
-
author?: string;
|
|
119
|
-
"bom-ref"?: string;
|
|
120
|
-
components?: Component[];
|
|
121
|
-
copyright?: string;
|
|
122
|
-
cpe?: string;
|
|
123
|
-
description?: string;
|
|
124
|
-
externalReferences?: ExternalReference[];
|
|
125
|
-
group?: string;
|
|
126
|
-
hashes?: Hash[];
|
|
127
|
-
licenses?: LicenseChoice;
|
|
128
|
-
manufacturer?: OrganizationalEntity;
|
|
129
|
-
"mime-type"?: string;
|
|
130
|
-
name: string;
|
|
131
|
-
properties?: Property[];
|
|
132
|
-
publisher?: string;
|
|
133
|
-
/** Package URL, e.g. `pkg:npm/@scope/name@1.2.3`. */
|
|
134
|
-
purl?: string;
|
|
135
|
-
scope?: ComponentScope;
|
|
136
|
-
supplier?: OrganizationalEntity;
|
|
137
|
-
tags?: string[];
|
|
138
|
-
type: ComponentType;
|
|
139
|
-
version?: string;
|
|
140
|
-
}
|
|
141
|
-
/** Arbitrary key-value metadata attachable to components and BOMs. */
|
|
142
|
-
export interface Property {
|
|
143
|
-
name: string;
|
|
144
|
-
value?: string;
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* CycloneDX 1.5+ form of `metadata.tools`: a bag of tool components and
|
|
148
|
-
* (optionally) services. The legacy array form is intentionally not
|
|
149
|
-
* supported — new BOMs should use this shape.
|
|
150
|
-
*/
|
|
151
|
-
export interface ToolsAggregate {
|
|
152
|
-
components?: Component[];
|
|
153
|
-
}
|
|
154
|
-
/** BOM lifecycle phase (pre-defined names in the spec). */
|
|
155
|
-
export type LifecyclePhase = "build" | "decommission" | "design" | "discovery" | "operations" | "post-build" | "pre-build";
|
|
156
|
-
export interface Lifecycle {
|
|
157
|
-
description?: string;
|
|
158
|
-
name?: string;
|
|
159
|
-
phase?: LifecyclePhase;
|
|
160
|
-
}
|
|
161
|
-
export interface Metadata {
|
|
162
|
-
authors?: OrganizationalContact[];
|
|
163
|
-
component?: Component;
|
|
164
|
-
licenses?: LicenseChoice;
|
|
165
|
-
lifecycles?: Lifecycle[];
|
|
166
|
-
manufacturer?: OrganizationalEntity;
|
|
167
|
-
properties?: Property[];
|
|
168
|
-
supplier?: OrganizationalEntity;
|
|
169
|
-
/** ISO 8601 timestamp describing when the BOM was created. */
|
|
170
|
-
timestamp?: string;
|
|
171
|
-
tools?: ToolsAggregate;
|
|
172
|
-
}
|
|
173
|
-
/** A single edge in the dependency graph. */
|
|
174
|
-
export interface Dependency {
|
|
175
|
-
/** `bom-ref`s of components this component directly depends on. */
|
|
176
|
-
dependsOn?: string[];
|
|
177
|
-
/** `bom-ref`s of components this component provides (conformance claims). */
|
|
178
|
-
provides?: string[];
|
|
179
|
-
/** `bom-ref` of the subject component. */
|
|
180
|
-
ref: string;
|
|
181
|
-
}
|
|
182
|
-
/** The root CycloneDX 1.6 BOM document. */
|
|
183
|
-
export interface CycloneDxBom {
|
|
184
|
-
$schema?: string;
|
|
185
|
-
bomFormat: "CycloneDX";
|
|
186
|
-
components?: Component[];
|
|
187
|
-
dependencies?: Dependency[];
|
|
188
|
-
externalReferences?: ExternalReference[];
|
|
189
|
-
metadata?: Metadata;
|
|
190
|
-
properties?: Property[];
|
|
191
|
-
/** `urn:uuid:<rfc-4122>` — unique identifier for this specific BOM revision. */
|
|
192
|
-
serialNumber?: string;
|
|
193
|
-
specVersion: "1.6";
|
|
194
|
-
/** Monotonically increasing integer for BOM revisions (starts at 1). */
|
|
195
|
-
version?: number;
|
|
196
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Finding } from "@visulima/secret-scanner";
|
|
2
|
-
/** Convert a finding to the shape we persist in baselines (with paths relative to root). */
|
|
3
|
-
export declare const toRelativeFinding: (f: Finding, root: string) => Finding;
|
|
4
|
-
export interface BaselineDiff {
|
|
5
|
-
fresh: Finding[];
|
|
6
|
-
resolved: Finding[];
|
|
7
|
-
surviving: Finding[];
|
|
8
|
-
}
|
|
9
|
-
/** Compare current findings against an existing baseline. */
|
|
10
|
-
export declare const diffBaseline: (findings: Finding[], baselinePath: string, root: string) => BaselineDiff;
|
|
11
|
-
export interface WriteBaselineOptions {
|
|
12
|
-
/** If true, replace the file instead of merging with existing entries. */
|
|
13
|
-
replace?: boolean;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Write `findings` to `baselinePath` with paths relative to `root`. By default
|
|
17
|
-
* merges with any existing baseline (so prior triage decisions for files not
|
|
18
|
-
* rescanned this run are preserved). Pass `replace: true` to overwrite.
|
|
19
|
-
*/
|
|
20
|
-
export declare const writeBaseline: (findings: Finding[], baselinePath: string, root: string, options?: WriteBaselineOptions) => number;
|
package/dist/secrets/format.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Finding, RuleInfo } from "@visulima/secret-scanner";
|
|
2
|
-
/** Pretty grouped text output with file headers, context lines, and carets. */
|
|
3
|
-
export declare const formatText: (findings: Finding[], root: string, useColor: boolean) => string;
|
|
4
|
-
/**
|
|
5
|
-
* Structured SARIF v2.1.0 output for GitHub / GitLab code-scanning.
|
|
6
|
-
*
|
|
7
|
-
* Polished for spec compliance:
|
|
8
|
-
* - `artifactLocation.uri` emits `file://` URIs for absolute paths (SARIF §3.4.2).
|
|
9
|
-
* - `tool.driver.rules` lists every rule that triggered, with `shortDescription` +
|
|
10
|
-
* `fullDescription` + `helpUri` so consumer UIs can render rule detail pages.
|
|
11
|
-
* - `result.level` stays `"error"` (everything we surface is an actionable leak).
|
|
12
|
-
* - `result.ruleIndex` cross-references into `tool.driver.rules` per SARIF §3.27.6.
|
|
13
|
-
*/
|
|
14
|
-
export declare const formatSarif: (findings: Finding[], toolVersion: string, root?: string, ruleMetadata?: RuleInfo[]) => string;
|
package/dist/secrets/git.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/** Absolute paths of files currently staged for commit (A/C/M/R only). */
|
|
2
|
-
export declare const stagedFiles: (root: string) => string[];
|
|
3
|
-
/** Absolute paths of files changed since `ref` (defaults to upstream/HEAD~1). */
|
|
4
|
-
export declare const filesSince: (root: string, ref: string) => string[];
|
|
5
|
-
/** True if `git` is on PATH and `root` is a working tree. */
|
|
6
|
-
export declare const hasGit: (root: string) => boolean;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface Spinner {
|
|
2
|
-
stop: (finalMessage?: string) => void;
|
|
3
|
-
update: (message: string) => void;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Minimal stderr spinner for TTY sessions. No-op when stderr isn't a TTY
|
|
7
|
-
* (CI, piped output). No dependencies beyond node stdlib.
|
|
8
|
-
*/
|
|
9
|
-
export declare const startSpinner: (message: string) => Spinner;
|
package/dist/security.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Supply chain security for package management commands.
|
|
3
|
-
*
|
|
4
|
-
* Ports pnpm's security features (minimumReleaseAge, trustPolicy,
|
|
5
|
-
* allowBuilds, blockExoticSubdeps, strictDepBuilds) to work universally
|
|
6
|
-
* across all package managers.
|
|
7
|
-
*
|
|
8
|
-
* Support matrix for build script enforcement:
|
|
9
|
-
* - pnpm v10+: Native `allowBuilds` in pnpm-workspace.yaml (vis validates config)
|
|
10
|
-
* - bun: Native `trustedDependencies` in package.json (vis validates config)
|
|
11
|
-
* - npm: NO native allowlist. vis adds --ignore-scripts and runs approved scripts manually
|
|
12
|
-
* - yarn: NO native allowlist. vis checks enableScripts in .yarnrc.yml
|
|
13
|
-
*/
|
|
14
|
-
import type { VisConfig } from "./workspace.d.ts";
|
|
15
|
-
type PackageManagerName = "bun" | "npm" | "pnpm" | "yarn";
|
|
16
|
-
interface SecurityCheckResult {
|
|
17
|
-
errors: string[];
|
|
18
|
-
warnings: string[];
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Checks the vis config for recommended security settings.
|
|
22
|
-
*
|
|
23
|
-
* When `defineConfig()` or `loadVisConfig()` is used, secure defaults are already
|
|
24
|
-
* merged. This function validates the *final* config (defaults + user overrides)
|
|
25
|
-
* and flags remaining gaps — primarily `allowBuilds`, which must be user-supplied.
|
|
26
|
-
*/
|
|
27
|
-
declare const checkSecurityConfig: (config: VisConfig, packageManager: string) => SecurityCheckResult;
|
|
28
|
-
/**
|
|
29
|
-
* Emits a single-line security summary warning before PM commands.
|
|
30
|
-
* Skipped in CI unless VIS_SECURITY_WARNINGS=1.
|
|
31
|
-
*/
|
|
32
|
-
declare const emitSecurityWarnings: (config: VisConfig, packageManager: string) => void;
|
|
33
|
-
/**
|
|
34
|
-
* Prints the full security audit report, including active settings and warnings.
|
|
35
|
-
*/
|
|
36
|
-
declare const printSecurityReport: (config: VisConfig, packageManager: string) => void;
|
|
37
|
-
/**
|
|
38
|
-
* Reports which vis security settings would map to pnpm-workspace.yaml.
|
|
39
|
-
*/
|
|
40
|
-
declare const previewPnpmSync: (config: VisConfig) => string[];
|
|
41
|
-
/**
|
|
42
|
-
* Scans node_modules for packages with install scripts that aren't approved.
|
|
43
|
-
*/
|
|
44
|
-
declare const scanUnapprovedBuildScripts: (cwd: string, allowBuilds: Record<string, boolean>) => string[];
|
|
45
|
-
interface EnforcementResult {
|
|
46
|
-
extraArgs: string[];
|
|
47
|
-
postInstallPackages: string[];
|
|
48
|
-
scriptsBlockedByDefault: boolean;
|
|
49
|
-
warnings: string[];
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Determines enforcement actions needed before install/add/update.
|
|
53
|
-
*/
|
|
54
|
-
declare const enforceScriptSecurity: (pm: PackageManagerName, workspaceRoot: string, config: VisConfig) => EnforcementResult;
|
|
55
|
-
/**
|
|
56
|
-
* Syncs vis security.allowBuilds to native PM config format.
|
|
57
|
-
*/
|
|
58
|
-
declare const syncAllowBuildsToNativeConfig: (pm: PackageManagerName, workspaceRoot: string, allowBuilds: Record<string, boolean>) => string[];
|
|
59
|
-
/**
|
|
60
|
-
* Runs postinstall scripts for approved packages after --ignore-scripts install.
|
|
61
|
-
*/
|
|
62
|
-
declare const runApprovedScripts: (workspaceRoot: string, patterns: string[]) => void;
|
|
63
|
-
export type { EnforcementResult, PackageManagerName, SecurityCheckResult };
|
|
64
|
-
export { checkSecurityConfig, emitSecurityWarnings, enforceScriptSecurity, previewPnpmSync, printSecurityReport, runApprovedScripts, scanUnapprovedBuildScripts, syncAllowBuildsToNativeConfig, };
|
package/dist/selectors.d.ts
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import type { WorkspaceConfiguration } from "@visulima/task-runner";
|
|
2
|
-
/**
|
|
3
|
-
* Parsed form of a target selector.
|
|
4
|
-
*
|
|
5
|
-
* vis accepts moon-style target syntax alongside the simple `<target>`
|
|
6
|
-
* and `--projects` form:
|
|
7
|
-
*
|
|
8
|
-
* :build → run `build` on every project
|
|
9
|
-
* ~:build → run `build` on the project closest to cwd
|
|
10
|
-
* #frontend:build → run `build` on every project tagged `frontend`
|
|
11
|
-
* my-pkg:build → run `build` on the single project `my-pkg`
|
|
12
|
-
* build → run `build` on every project (legacy form)
|
|
13
|
-
*/
|
|
14
|
-
export interface ParsedSelector {
|
|
15
|
-
/** Selector kind — used by commands for richer diagnostics. */
|
|
16
|
-
kind: "all" | "closest" | "project" | "tag";
|
|
17
|
-
/** Projects the selector resolves to (before further filtering). */
|
|
18
|
-
projects?: string[];
|
|
19
|
-
/** The tag, when `kind === "tag"`. */
|
|
20
|
-
tag?: string;
|
|
21
|
-
/** The target name. */
|
|
22
|
-
target: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Parses a target selector string into its component parts.
|
|
26
|
-
* @param input Raw selector string (e.g. `:build`, `~:test`, `#tag:lint`, `pkg:build`, or bare `build`).
|
|
27
|
-
* @returns The parsed selector, or `undefined` if `input` is empty.
|
|
28
|
-
*/
|
|
29
|
-
export declare const parseTargetSelector: (input: string) => Omit<ParsedSelector, "projects"> | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Resolves a selector string against a workspace to produce a concrete
|
|
32
|
-
* list of project names and the target to run.
|
|
33
|
-
* @param input Raw selector string.
|
|
34
|
-
* @param workspace The discovered workspace configuration.
|
|
35
|
-
* @param cwd Current working directory (used for `~:` closest resolution).
|
|
36
|
-
* @param workspaceRoot Absolute path to the workspace root.
|
|
37
|
-
* @returns An object with `projects` (candidate names) and `target`.
|
|
38
|
-
* @throws If the selector is invalid or `~:` finds no matching project.
|
|
39
|
-
*/
|
|
40
|
-
export declare const resolveSelector: (input: string, workspace: WorkspaceConfiguration, cwd: string, workspaceRoot: string) => Promise<{
|
|
41
|
-
projects: string[];
|
|
42
|
-
target: string;
|
|
43
|
-
}>;
|
|
44
|
-
/**
|
|
45
|
-
* A single parsed query clause. e.g. `language=typescript` or
|
|
46
|
-
* `tag!=deprecated`.
|
|
47
|
-
*/
|
|
48
|
-
interface QueryClause {
|
|
49
|
-
field: string;
|
|
50
|
-
op: "!=" | "=";
|
|
51
|
-
value: string;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Parsed query — a list of clauses combined with either AND or OR.
|
|
55
|
-
* Groups are not supported; all clauses are combined with the same
|
|
56
|
-
* top-level operator.
|
|
57
|
-
*/
|
|
58
|
-
interface ParsedQuery {
|
|
59
|
-
clauses: QueryClause[];
|
|
60
|
-
op: "&&" | "||";
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Parses a query string into a structured predicate.
|
|
64
|
-
*
|
|
65
|
-
* Grammar: `<field>=<value>` or `<field>!=<value>` clauses joined by
|
|
66
|
-
* `&&` (all must match) or `||` (any must match). Mixing operators is
|
|
67
|
-
* not supported and throws.
|
|
68
|
-
* @param input Raw query string, e.g. `"language=typescript && tag=lib"`.
|
|
69
|
-
* @returns The parsed query, or `undefined` if the input is empty.
|
|
70
|
-
* @throws On mixed `&&` / `||` or malformed clauses.
|
|
71
|
-
*/
|
|
72
|
-
export declare const parseQuery: (input: string) => ParsedQuery | undefined;
|
|
73
|
-
/**
|
|
74
|
-
* Filters project names by a query string.
|
|
75
|
-
* @param projectNames Candidate project names to filter.
|
|
76
|
-
* @param workspace The workspace configuration (projects must carry vis metadata).
|
|
77
|
-
* @param query A query string, or `undefined` / empty to skip filtering.
|
|
78
|
-
* @returns The subset of `projectNames` that match the query.
|
|
79
|
-
*/
|
|
80
|
-
export declare const filterProjectsByQuery: (projectNames: string[], workspace: WorkspaceConfiguration, query: string | undefined) => string[];
|
|
81
|
-
export {};
|
package/dist/shell-history.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Best-effort append of a command string to the user's shell history
|
|
3
|
-
* file so bare `vis run` followed by an interactive pick shows up in
|
|
4
|
-
* the terminal history — up-arrow then re-runs the resolved target.
|
|
5
|
-
*
|
|
6
|
-
* Detects the shell from `$SHELL`/`$ZDOTDIR` and writes in the
|
|
7
|
-
* shell-specific format. Never throws; silently returns when:
|
|
8
|
-
* - the platform is Windows (history formats vary by terminal host),
|
|
9
|
-
* - no recognizable shell is detected,
|
|
10
|
-
* - the history file can't be opened,
|
|
11
|
-
* - `VIS_NO_SHELL_HISTORY` is set (escape hatch).
|
|
12
|
-
*
|
|
13
|
-
* Scoped intentionally to the interactive-picker path. Explicit
|
|
14
|
-
* `vis run <target>` invocations already appear in history verbatim.
|
|
15
|
-
*/
|
|
16
|
-
export declare const appendToShellHistory: (commandLine: string) => Promise<void>;
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Socket.dev security helpers for package security intelligence.
|
|
3
|
-
*
|
|
4
|
-
* Ported from @vltpkg/security-archive and adapted to use the Socket.dev
|
|
5
|
-
* public API for fetching package security scores, alerts, and report data.
|
|
6
|
-
* Uses a file-based cache (following the ai-cache.ts pattern) with a 1-hour TTL.
|
|
7
|
-
* @see https://socket.dev
|
|
8
|
-
* @see https://github.com/vltpkg/vltpkg/tree/main/src/security-archive
|
|
9
|
-
*/
|
|
10
|
-
declare const DEFAULT_LOW_SCORE_THRESHOLD = 0.4;
|
|
11
|
-
/** Extra properties attached to a package alert. */
|
|
12
|
-
interface PackageAlertProps {
|
|
13
|
-
cveId?: `CVE-${string}`;
|
|
14
|
-
cwes?: {
|
|
15
|
-
id: `CWE-${string}`;
|
|
16
|
-
}[];
|
|
17
|
-
lastPublish: string;
|
|
18
|
-
}
|
|
19
|
-
/** A known security alert for a given package. */
|
|
20
|
-
interface PackageAlert {
|
|
21
|
-
category: string;
|
|
22
|
-
key: string;
|
|
23
|
-
props?: PackageAlertProps;
|
|
24
|
-
severity: "critical" | "high" | "low" | "medium";
|
|
25
|
-
type: string;
|
|
26
|
-
}
|
|
27
|
-
/** Security scores for a given package (each 0–1). */
|
|
28
|
-
interface PackageScore {
|
|
29
|
-
/** Score factors relating to package licensing. */
|
|
30
|
-
license: number;
|
|
31
|
-
/** Score factors relating to package maintenance. */
|
|
32
|
-
maintenance: number;
|
|
33
|
-
/** Average of all score factors. */
|
|
34
|
-
overall: number;
|
|
35
|
-
/** Score factors relating to code quality. */
|
|
36
|
-
quality: number;
|
|
37
|
-
/** Score factors relating to supply chain security. */
|
|
38
|
-
supplyChain: number;
|
|
39
|
-
/** Score factors relating to package vulnerabilities. */
|
|
40
|
-
vulnerability: number;
|
|
41
|
-
}
|
|
42
|
-
/** Full report data for a single package from Socket.dev. */
|
|
43
|
-
interface PackageReportData {
|
|
44
|
-
alerts: PackageAlert[];
|
|
45
|
-
author: string[];
|
|
46
|
-
id: string;
|
|
47
|
-
license: string;
|
|
48
|
-
name: string;
|
|
49
|
-
namespace?: `@${string}`;
|
|
50
|
-
score: PackageScore;
|
|
51
|
-
size: number;
|
|
52
|
-
type: "npm";
|
|
53
|
-
version: string;
|
|
54
|
-
}
|
|
55
|
-
/** Configuration options for the Socket.dev security client. */
|
|
56
|
-
interface SocketSecurityOptions {
|
|
57
|
-
/** Custom API token. Required — set via VIS_SOCKET_TOKEN env var or config. */
|
|
58
|
-
apiToken?: string;
|
|
59
|
-
/** Cache TTL in milliseconds. Defaults to 1 hour. */
|
|
60
|
-
cacheTtlMs?: number;
|
|
61
|
-
/** Minimum overall score (0–1) below which packages are flagged. Defaults to 0.4. */
|
|
62
|
-
minimumScore?: number;
|
|
63
|
-
/** Request timeout in milliseconds. Defaults to 15 seconds. */
|
|
64
|
-
timeoutMs?: number;
|
|
65
|
-
}
|
|
66
|
-
declare const isPackageReportData: (o: unknown) => o is PackageReportData;
|
|
67
|
-
declare const calculateOverallScore: (score: Omit<PackageScore, "overall">) => number;
|
|
68
|
-
/**
|
|
69
|
-
* Fetches security report data from the Socket.dev API for the given packages.
|
|
70
|
-
* Batches requests to stay within API limits.
|
|
71
|
-
* @param packages Array of { name, version } to look up.
|
|
72
|
-
* @param options Optional configuration.
|
|
73
|
-
* @returns Map of "name@version" to PackageReportData.
|
|
74
|
-
*/
|
|
75
|
-
declare const fetchSocketReports: (packages: {
|
|
76
|
-
name: string;
|
|
77
|
-
version: string;
|
|
78
|
-
}[], options?: SocketSecurityOptions) => Promise<Map<string, PackageReportData>>;
|
|
79
|
-
/** Returns the full package name including namespace scope if present. */
|
|
80
|
-
declare const getFullPackageName: (report: Pick<PackageReportData, "name" | "namespace">) => string;
|
|
81
|
-
/** Maps a 0–1 score to a human-readable label. */
|
|
82
|
-
declare const scoreLabel: (score: number) => string;
|
|
83
|
-
/** Maps a 0–1 score to a color name for terminal output. */
|
|
84
|
-
declare const scoreColor: (score: number) => "green" | "red" | "yellow";
|
|
85
|
-
/** Formats a PackageReportData into a compact one-line summary string. */
|
|
86
|
-
declare const formatReportSummary: (report: PackageReportData) => string;
|
|
87
|
-
/** Formats a detailed multi-line report for a single package. */
|
|
88
|
-
declare const formatReportDetailed: (report: PackageReportData) => string;
|
|
89
|
-
/**
|
|
90
|
-
* Formats a security summary for a list of packages.
|
|
91
|
-
* Suitable for displaying after install/update commands.
|
|
92
|
-
*/
|
|
93
|
-
declare const formatSecurityOverview: (reports: Map<string, PackageReportData>) => string;
|
|
94
|
-
declare const clearSocketCache: () => number;
|
|
95
|
-
/** Socket.dev config shape as it appears in VisConfig.security.socket. */
|
|
96
|
-
interface SocketConfigLike {
|
|
97
|
-
apiToken?: string;
|
|
98
|
-
cacheTtlMs?: number;
|
|
99
|
-
enabled?: boolean;
|
|
100
|
-
minimumScore?: number;
|
|
101
|
-
timeoutMs?: number;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Builds SocketSecurityOptions from the VisConfig socket config section.
|
|
105
|
-
* Returns undefined if Socket.dev is not enabled or no API token is available.
|
|
106
|
-
*/
|
|
107
|
-
declare const buildSocketOptions: (socketConfig: SocketConfigLike | undefined) => SocketSecurityOptions | undefined;
|
|
108
|
-
/** A persisted "accepted risk" entry from the vis config. */
|
|
109
|
-
interface AcceptedRisk {
|
|
110
|
-
/** ISO 8601 timestamp when the risk was accepted. */
|
|
111
|
-
acceptedAt: string;
|
|
112
|
-
/** The overall Socket.dev score at the time of acceptance. */
|
|
113
|
-
acceptedScore: number;
|
|
114
|
-
/** User-provided reason for accepting the risk. */
|
|
115
|
-
reason: string;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Checks if a package has an accepted risk entry.
|
|
119
|
-
* Matches by exact name@version, unversioned name, or trailing glob patterns.
|
|
120
|
-
* Returns the matching AcceptedRisk if found, undefined otherwise.
|
|
121
|
-
*/
|
|
122
|
-
declare const findAcceptedRisk: (packageName: string, version: string, acceptedRisks: Record<string, AcceptedRisk> | undefined) => AcceptedRisk | undefined;
|
|
123
|
-
/**
|
|
124
|
-
* Formats a config snippet for the user to paste into vis.config.ts
|
|
125
|
-
* to persist an accepted risk decision.
|
|
126
|
-
*/
|
|
127
|
-
declare const formatAcceptedRiskSnippet: (packageName: string, _version: string, score: number, reason: string) => string;
|
|
128
|
-
export type { AcceptedRisk, PackageAlert, PackageAlertProps, PackageReportData, PackageScore, SocketSecurityOptions };
|
|
129
|
-
export { buildSocketOptions, calculateOverallScore, clearSocketCache, DEFAULT_LOW_SCORE_THRESHOLD, fetchSocketReports, findAcceptedRisk, formatAcceptedRiskSnippet, formatReportDetailed, formatReportSummary, formatSecurityOverview, getFullPackageName, isPackageReportData, scoreColor, scoreLabel, };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Small helpers shared between the CLI command and the programmatic
|
|
3
|
-
* surface when a value has to be coerced from a string (CLI flag, env
|
|
4
|
-
* variable, config file). Kept free of runtime deps so it can be unit
|
|
5
|
-
* tested in isolation.
|
|
6
|
-
*/
|
|
7
|
-
/** Env var read as the concurrency fallback when `--concurrent` isn't passed. */
|
|
8
|
-
export declare const CONCURRENT_ENV_VAR = "VIS_STAGED_CONCURRENT";
|
|
9
|
-
/**
|
|
10
|
-
* Parses a stringified concurrency value. Accepts the same shapes as the
|
|
11
|
-
* `--concurrent` CLI flag:
|
|
12
|
-
*
|
|
13
|
-
* - `"true"` or an empty string → `true` (unbounded, capped internally at CPU count)
|
|
14
|
-
* - `"false"` → `false` (serial)
|
|
15
|
-
* - an integer string → the parsed number
|
|
16
|
-
* - anything else (including NaN) → `true`, matching the CLI-flag fallback
|
|
17
|
-
*/
|
|
18
|
-
export declare const parseConcurrent: (value: string) => boolean | number;
|
package/dist/staged/config.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { RunOptions, StagedConfig, StagedTask } from "./types.d.ts";
|
|
2
|
-
/**
|
|
3
|
-
* Resolves the user's staged config. We deliberately do NOT auto-discover
|
|
4
|
-
* external `.lintstagedrc*` / `.vis-staged.*` files at runtime — that
|
|
5
|
-
* keeps the config surface to a single place (`vis.config.ts`) and means
|
|
6
|
-
* there's no ambiguity about which file drives a run.
|
|
7
|
-
*
|
|
8
|
-
* Users migrating from lint-staged or nano-staged go through
|
|
9
|
-
* `vis migrate lint-staged` / `vis migrate nano-staged`, which inline
|
|
10
|
-
* the old config into `vis.config.ts` and remove the external files.
|
|
11
|
-
*/
|
|
12
|
-
export declare const resolveConfig: (options: RunOptions) => Promise<StagedConfig>;
|
|
13
|
-
/** Validates that a resolved config has the right shape. */
|
|
14
|
-
export declare const validateConfig: (config: unknown) => Record<string, StagedTask>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { StagedError } from "./staged-error.d.ts";
|
|
2
|
-
/** A git subprocess failed. Holds the stderr tail for surface-level reporting. */
|
|
3
|
-
export declare class GitError extends StagedError {
|
|
4
|
-
readonly stderr?: string;
|
|
5
|
-
constructor(message: string, stderr?: string, options?: ErrorOptions);
|
|
6
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Typed error classes surfaced by the staged workflow. Consumers can
|
|
3
|
-
* switch on `instanceof` to distinguish setup failures from task/git
|
|
4
|
-
* failures. Error names mirror lint-staged's where behavior overlaps.
|
|
5
|
-
*/
|
|
6
|
-
export { ApplyEmptyCommitError } from "./apply-empty-commit-error.d.ts";
|
|
7
|
-
export { ConfigError } from "./config-error.d.ts";
|
|
8
|
-
export { GetBackupStashError } from "./get-backup-stash-error.d.ts";
|
|
9
|
-
export { GitError } from "./git-error.d.ts";
|
|
10
|
-
export { RestoreOriginalStateError } from "./restore-original-state-error.d.ts";
|
|
11
|
-
export { StagedError } from "./staged-error.d.ts";
|
|
12
|
-
export { TaskError } from "./task-error.d.ts";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base class for all staged-workflow errors. Consumers switch on
|
|
3
|
-
* `instanceof StagedError` to distinguish our failures from arbitrary
|
|
4
|
-
* task exceptions.
|
|
5
|
-
*/
|
|
6
|
-
export declare class StagedError extends Error {
|
|
7
|
-
constructor(message: string, options?: ErrorOptions);
|
|
8
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { StagedError } from "./staged-error.d.ts";
|
|
2
|
-
/** A user-provided task exited non-zero or threw. */
|
|
3
|
-
export declare class TaskError extends StagedError {
|
|
4
|
-
readonly commandTitle: string;
|
|
5
|
-
constructor(commandTitle: string, message: string, options?: ErrorOptions);
|
|
6
|
-
}
|