@visulima/vis 1.0.0-alpha.4 → 1.0.0-alpha.41
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 +1243 -78
- package/LICENSE.md +13068 -6
- package/README.md +388 -26
- package/dashboard/dist/index.html +152 -0
- package/dist/bin.js +1 -853
- 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 +157 -0
- package/dist/generate/index.js +1 -0
- package/dist/packem_chunks/DEFAULT_CLEAN_KEEP.js +1 -0
- package/dist/packem_chunks/bin.js +1198 -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/config.js +21 -0
- package/dist/packem_chunks/detect.js +3 -0
- package/dist/packem_chunks/detect2.js +8 -0
- package/dist/packem_chunks/devtools.js +81 -0
- package/dist/packem_chunks/discord.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/handler.js +1 -0
- package/dist/packem_chunks/handler10.js +1 -0
- package/dist/packem_chunks/handler11.js +5 -0
- package/dist/packem_chunks/handler12.js +1 -0
- package/dist/packem_chunks/handler13.js +27 -0
- package/dist/packem_chunks/handler14.js +5 -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 +1 -0
- package/dist/packem_chunks/handler2.js +4 -0
- package/dist/packem_chunks/handler20.js +5 -0
- package/dist/packem_chunks/handler21.js +2 -0
- package/dist/packem_chunks/handler22.js +2 -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 +6 -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 +8 -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 +7 -0
- package/dist/packem_chunks/handler58.js +5 -0
- package/dist/packem_chunks/handler59.js +11 -0
- package/dist/packem_chunks/handler6.js +1 -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 +708 -0
- package/dist/packem_chunks/handler66.js +24 -0
- package/dist/packem_chunks/handler67.js +25 -0
- package/dist/packem_chunks/handler68.js +153 -0
- package/dist/packem_chunks/handler69.js +10 -0
- package/dist/packem_chunks/handler7.js +1 -0
- package/dist/packem_chunks/handler70.js +24 -0
- package/dist/packem_chunks/handler71.js +322 -0
- package/dist/packem_chunks/handler72.js +48 -0
- package/dist/packem_chunks/handler73.js +27 -0
- package/dist/packem_chunks/handler74.js +3 -0
- package/dist/packem_chunks/handler75.js +190 -0
- package/dist/packem_chunks/handler76.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 -0
- package/dist/packem_chunks/index2.js +7 -0
- package/dist/packem_chunks/interface.js +2 -0
- package/dist/packem_chunks/keys-refresh.js +4 -0
- package/dist/packem_chunks/list.js +3 -0
- package/dist/packem_chunks/loader.js +4 -0
- package/dist/packem_chunks/loader2.js +1 -0
- package/dist/packem_chunks/orchestrator.js +39 -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/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/CONFIG_FILES-BfaR0jKT.js +1 -0
- package/dist/packem_shared/MultiSpinner-B9U0-aE3-B-gIXhFk.js +3 -0
- package/dist/packem_shared/ReleaseClient-YHzBIxYS.js +1 -0
- package/dist/packem_shared/Table-CcVkyULl-B_ef6zfS.js +35 -0
- package/dist/packem_shared/VisReleaseError-DMGRBTNO.js +1 -0
- package/dist/packem_shared/_commonjsHelpers-B5Y90VFO.js +1 -0
- package/dist/packem_shared/advisories-DLeO5KMN.js +1 -0
- package/dist/packem_shared/affected-shas-cVnX8-zs.js +1 -0
- package/dist/packem_shared/ai-analysis-BUeX2J2H.js +68 -0
- package/dist/packem_shared/ai-fix-9Vzlp6XU.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/build-scripts-CCCi8U66.js +1 -0
- package/dist/packem_shared/command-runtime-CR70qSUM.js +1 -0
- package/dist/packem_shared/createAdapter-bU4DIP3F.js +1 -0
- package/dist/packem_shared/createVersionActions-BK43SNDH.js +1 -0
- package/dist/packem_shared/cyclonedx-Cadls41z.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-DnTgYleU.js +1 -0
- package/dist/packem_shared/docker-BMLrNtWm.js +59 -0
- package/dist/packem_shared/failure-log-CEWP3bP0.js +2 -0
- package/dist/packem_shared/giget-DHY1sQZC.js +2 -0
- package/dist/packem_shared/glob-fqg4KepW-B7EjLRvw.js +1 -0
- package/dist/packem_shared/index-3jMNqQom.js +1 -0
- package/dist/packem_shared/index-BDmTbWX1.js +19 -0
- package/dist/packem_shared/index-Bt521H5J.js +30 -0
- package/dist/packem_shared/index-DGSsjmpV.js +1 -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-4z9hHE5b.js +2 -0
- package/dist/packem_shared/lockfile-C8Q1_4KK.js +1 -0
- package/dist/packem_shared/manifests-Dj3pRKBT.js +1 -0
- package/dist/packem_shared/min-release-age-D1alDE3K.js +34 -0
- package/dist/packem_shared/missing-package-json-8vNHwbqw.js +1 -0
- package/dist/packem_shared/native-config-sync-BEkJW7g3.js +21 -0
- package/dist/packem_shared/osv-bloom-B03tUWf3.js +2 -0
- package/dist/packem_shared/otelPlugin-DmKDBaPo.js +1 -0
- package/dist/packem_shared/peer-warnings-BXAzXqY3.js +1 -0
- package/dist/packem_shared/pm-runner-BKZQo7Ts.js +1 -0
- package/dist/packem_shared/provenance-BFEwKgI3.js +1 -0
- package/dist/packem_shared/public-api-WqUCiyIe.js +131 -0
- package/dist/packem_shared/registry-keys-BfFto6vI.js +1 -0
- package/dist/packem_shared/resolve-explicit-C6WM-I2u.js +5 -0
- package/dist/packem_shared/runtime-check-Stc9AI78.js +1 -0
- package/dist/packem_shared/s1ngularity-DCPmPE5M.js +1 -0
- package/dist/packem_shared/scan-progress-CFhc0CMj.js +2 -0
- package/dist/packem_shared/selectors-GCJIe342.js +3 -0
- package/dist/packem_shared/signatures-Xpd6HjG_.js +2 -0
- package/dist/packem_shared/slug-DoueYuLo.js +1 -0
- package/dist/packem_shared/spinner-CV3WVJLv.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-BuTy5gPV.js +1 -0
- package/dist/packem_shared/toolchain-pR7AJ-tB.js +5 -0
- package/dist/packem_shared/typosquats-DN78xx1x.js +1 -0
- package/dist/packem_shared/use-measured-height-_eVGWtWt.js +1 -0
- package/dist/packem_shared/utils-Cxree603.js +1 -0
- package/dist/packem_shared/verify-6WCmFmy8.js +1 -0
- package/dist/packem_shared/vis-update-app-k3fDxech.js +1 -0
- package/dist/packem_shared/watch-BvIwLG4N.js +1 -0
- package/dist/packem_shared/watch-loop-DWkvv2tK.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 +196 -0
- package/dist/release/index.js +1 -0
- package/dist/release/plugin-sdk.d.ts +127 -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 +1377 -0
- package/dist/release/types.js +1 -0
- package/index.d.ts +436 -0
- package/index.js +80 -57
- package/package.json +109 -45
- package/schemas/project.schema.json +991 -0
- package/schemas/vis-config.schema.json +6389 -0
- package/schemas/vis-release-config.schema.json +1390 -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 -40
- package/dist/ai-cache.d.ts +0 -21
- package/dist/audit-config.d.ts +0 -24
- package/dist/bin.d.ts +0 -1
- package/dist/catalog.d.ts +0 -118
- 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/check.d.ts +0 -3
- 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/doctor.d.ts +0 -15
- package/dist/commands/exec.d.ts +0 -3
- package/dist/commands/graph.d.ts +0 -3
- package/dist/commands/hook/constants.d.ts +0 -8
- package/dist/commands/hook/index.d.ts +0 -3
- package/dist/commands/hook/install.d.ts +0 -7
- package/dist/commands/hook/migrate.d.ts +0 -27
- package/dist/commands/hook/uninstall.d.ts +0 -3
- package/dist/commands/implode.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/migrate/constants.d.ts +0 -12
- package/dist/commands/migrate/deps.d.ts +0 -32
- package/dist/commands/migrate/index.d.ts +0 -3
- package/dist/commands/migrate/json.d.ts +0 -20
- package/dist/commands/migrate/lint-staged.d.ts +0 -62
- package/dist/commands/migrate/types.d.ts +0 -20
- 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 -3
- package/dist/commands/sort-package-json.d.ts +0 -3
- package/dist/commands/staged.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 -67
- package/dist/config.js +0 -1
- package/dist/native-binding.d.ts +0 -151
- package/dist/output.d.ts +0 -40
- package/dist/overrides.d.ts +0 -82
- package/dist/package-manager.d.ts +0 -23
- package/dist/plugins/config-loader.d.ts +0 -3
- 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 -23
- package/dist/security.d.ts +0 -64
- package/dist/socket-security.d.ts +0 -129
- 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 -16
- 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 -18
- package/dist/tui/components/update/UpdateStore.d.ts +0 -62
- package/dist/tui/components/update/VisUpdateApp.d.ts +0 -11
- package/dist/tui/dynamic-life-cycle.d.ts +0 -21
- 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 -22
- 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/workspace.d.ts +0 -315
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { ExtraFileRule, PerPackageReleaseConfig } from "./types.js";
|
|
2
|
+
interface CargoPresetOptions {
|
|
3
|
+
/** Crate directory (containing Cargo.toml). Default: package root. */
|
|
4
|
+
crateDir?: string;
|
|
5
|
+
/** Additional extra-files rules merged with the Cargo.toml bump. */
|
|
6
|
+
extraFiles?: ExtraFileRule[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Bump `version = "..."` in the `[package]` section of Cargo.toml AND
|
|
10
|
+
* default `versionActions: "cargo"` so vis drives `cargo publish`
|
|
11
|
+
* natively (TOML parse + crates.io API + OIDC trusted publishing).
|
|
12
|
+
*
|
|
13
|
+
* The `[dependencies]`, `[workspace.dependencies]` sections, etc.,
|
|
14
|
+
* are deliberately not touched by the extra-files rule — those
|
|
15
|
+
* reference SemVer ranges of other crates and need explicit operator
|
|
16
|
+
* opt-in to mutate.
|
|
17
|
+
*
|
|
18
|
+
* Operators who want to override the publish behaviour (e.g. push to a
|
|
19
|
+
* private registry via a wrapper script) can set
|
|
20
|
+
* `versionActions: "shell"` and supply their own `publishCommand`
|
|
21
|
+
* downstream — the preset is a default, not a hard wire.
|
|
22
|
+
*/
|
|
23
|
+
declare const cargo: (options?: CargoPresetOptions) => PerPackageReleaseConfig;
|
|
24
|
+
interface PyprojectPresetOptions {
|
|
25
|
+
/** Optional dynamic-version source line we should NOT touch (e.g. `__init__.py`). */
|
|
26
|
+
extraFiles?: ExtraFileRule[];
|
|
27
|
+
/** Project root (containing pyproject.toml). Default: package root. */
|
|
28
|
+
projectDir?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Relative path (from the package directory) to `uv.lock`. Recorded
|
|
31
|
+
* on the per-package config so doctor can warn when the lockfile
|
|
32
|
+
* is missing despite the operator configuring uv-aware tooling.
|
|
33
|
+
*
|
|
34
|
+
* vis does NOT mutate `uv.lock` itself — uv regenerates it on
|
|
35
|
+
* `uv sync` / `uv build`. Operators who want the lockfile in the
|
|
36
|
+
* release commit should run `uv lock` between `vis release version`
|
|
37
|
+
* and the commit step (typically via `postVersionCommand`).
|
|
38
|
+
*
|
|
39
|
+
* release-please parity: #2561.
|
|
40
|
+
*/
|
|
41
|
+
uvLockPath?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Mark this package as a uv workspace member. `root` is the
|
|
44
|
+
* relative path (from the package directory) to the workspace root
|
|
45
|
+
* containing the `[tool.uv.workspace]` pyproject.toml — typically
|
|
46
|
+
* `".."` or higher. When set, doctor verifies the root's
|
|
47
|
+
* `[tool.uv.workspace] members` lists this package.
|
|
48
|
+
*
|
|
49
|
+
* release-please parity: #2560.
|
|
50
|
+
*/
|
|
51
|
+
uvWorkspace?: {
|
|
52
|
+
root: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Bump `version = "..."` under `[project]` (PEP 621) AND default
|
|
57
|
+
* `versionActions: "python"` so vis drives the publish step natively
|
|
58
|
+
* (PyPI version detection via JSON API + `python -m build` / `uv build`
|
|
59
|
+
* + `twine upload` / `uv publish` + OIDC trusted-publishing support).
|
|
60
|
+
*
|
|
61
|
+
* Modern packaging (poetry / hatch / pdm / setuptools-with-pyproject)
|
|
62
|
+
* all read this field. Legacy `setup.py` projects can pair this with
|
|
63
|
+
* an explicit `extra-files` rule against `setup.py`.
|
|
64
|
+
*
|
|
65
|
+
* Operators on a dynamic-version path (setuptools-scm / hatch-vcs /
|
|
66
|
+
* poetry-dynamic-versioning) should override `versionActions: "shell"`
|
|
67
|
+
* — `PythonVersionActions` refuses dynamic versioning to avoid running
|
|
68
|
+
* arbitrary build-backend code just to read a literal version.
|
|
69
|
+
*/
|
|
70
|
+
declare const pyproject: (options?: PyprojectPresetOptions) => PerPackageReleaseConfig;
|
|
71
|
+
interface GradlePropertiesPresetOptions {
|
|
72
|
+
extraFiles?: ExtraFileRule[];
|
|
73
|
+
/** Path to gradle.properties. Default: package root. */
|
|
74
|
+
projectDir?: string;
|
|
75
|
+
/** Property name to bump. Default `"version"`. */
|
|
76
|
+
property?: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Bump a `version=...` line in `gradle.properties`. The default
|
|
80
|
+
* property name matches the Gradle convention for the root project
|
|
81
|
+
* version. Submodule versions typically live in `build.gradle` /
|
|
82
|
+
* `build.gradle.kts` — use a custom extra-files rule for those.
|
|
83
|
+
*/
|
|
84
|
+
declare const gradleProperties: (options?: GradlePropertiesPresetOptions) => PerPackageReleaseConfig;
|
|
85
|
+
interface PomXmlPresetOptions {
|
|
86
|
+
extraFiles?: ExtraFileRule[];
|
|
87
|
+
/** Path to the pom.xml. Default: package root. */
|
|
88
|
+
pomDir?: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Bump `<version>...</version>` directly under `<project>` in a Maven
|
|
92
|
+
* `pom.xml`. ⚠ XML doesn't lend itself to surgical regex — this
|
|
93
|
+
* preset matches the FIRST `<version>...</version>` tag in the file,
|
|
94
|
+
* which is the convention for the project version. If your pom has
|
|
95
|
+
* `<parent><version>` ahead of the project version, write an explicit
|
|
96
|
+
* rule instead.
|
|
97
|
+
*
|
|
98
|
+
* Defaults `versionActions: "maven"` so vis can read the currently-
|
|
99
|
+
* published version from Maven Central. Native publishing is not yet
|
|
100
|
+
* implemented — Stage 3 ships the skeleton (read + already-published
|
|
101
|
+
* detection); see `docs/guides/release-maven.mdx` for the shell-path
|
|
102
|
+
* workaround (`mvn deploy`) until the Sonatype Central Portal client
|
|
103
|
+
* lands.
|
|
104
|
+
*/
|
|
105
|
+
declare const pomXml: (options?: PomXmlPresetOptions) => PerPackageReleaseConfig;
|
|
106
|
+
interface ContainerPresetOptions {
|
|
107
|
+
/**
|
|
108
|
+
* Extra `--build-arg KEY=VALUE` pairs forwarded to buildx. Useful
|
|
109
|
+
* for stamping the version literal into the image at build time.
|
|
110
|
+
*/
|
|
111
|
+
buildArgs?: Record<string, string>;
|
|
112
|
+
/**
|
|
113
|
+
* Build context passed to `docker buildx build` (the final positional
|
|
114
|
+
* argument). Defaults to the package directory.
|
|
115
|
+
*/
|
|
116
|
+
buildContext?: string;
|
|
117
|
+
extraFiles?: ExtraFileRule[];
|
|
118
|
+
/** Fully-qualified image reference, e.g. `"ghcr.io/scope/foo"`. */
|
|
119
|
+
image: string;
|
|
120
|
+
/**
|
|
121
|
+
* Target platforms for the multi-arch build. Defaults to
|
|
122
|
+
* `["linux/amd64", "linux/arm64"]`.
|
|
123
|
+
*/
|
|
124
|
+
platforms?: ReadonlyArray<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Signing scheme to apply after a successful push. `"cosign"` runs
|
|
127
|
+
* `cosign sign --yes <image>:<version>` post-push. Default: no signing.
|
|
128
|
+
*/
|
|
129
|
+
signing?: "cosign";
|
|
130
|
+
/**
|
|
131
|
+
* Skip the conventional `:latest` tag. Useful for pre-release /
|
|
132
|
+
* channel-specific images that shouldn't float `latest`.
|
|
133
|
+
*/
|
|
134
|
+
skipLatest?: boolean;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* OCI container preset — wires the `container` versionActions plus a
|
|
138
|
+
* package-specific `containerImage` declaration.
|
|
139
|
+
*
|
|
140
|
+
* Example:
|
|
141
|
+
*
|
|
142
|
+
* release.packages["@scope/app-image"] = container({
|
|
143
|
+
* image: "ghcr.io/scope/app",
|
|
144
|
+
* platforms: ["linux/amd64", "linux/arm64"],
|
|
145
|
+
* signing: "cosign",
|
|
146
|
+
* });
|
|
147
|
+
*
|
|
148
|
+
* Pair with `releaseTagPattern: "{name}@{version}"` (the default) for
|
|
149
|
+
* a parallel git tag, plus `docker login <registry>` before running
|
|
150
|
+
* `vis release publish`. The published image gets both `:<version>`
|
|
151
|
+
* (immutable pointer) and `:latest` (mutable, disable via
|
|
152
|
+
* `skipLatest: true`).
|
|
153
|
+
*/
|
|
154
|
+
declare const container: (options: ContainerPresetOptions) => PerPackageReleaseConfig;
|
|
155
|
+
interface JsrPresetOptions {
|
|
156
|
+
/**
|
|
157
|
+
* Convenience for adding `--allow-slow-types` to `jsr publish`. JSR
|
|
158
|
+
* rejects packages whose exported API has types it can't statically infer
|
|
159
|
+
* unless this flag is set. Default `false`.
|
|
160
|
+
*/
|
|
161
|
+
allowSlowTypes?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* When `true`, also write the version literal into `deno.json` (in
|
|
164
|
+
* addition to `jsr.json`). Useful for Deno-flavoured packages that
|
|
165
|
+
* keep their full Deno config in `deno.json` and use `jsr.json` only
|
|
166
|
+
* for the JSR manifest itself. Default `false`.
|
|
167
|
+
*
|
|
168
|
+
* When the package uses `deno.json` as its sole JSR manifest, pass
|
|
169
|
+
* `manifestPath: "deno.json"` instead — that points the
|
|
170
|
+
* versionActions reader and the extra-files rule at the same file.
|
|
171
|
+
*/
|
|
172
|
+
deno?: boolean;
|
|
173
|
+
extraFiles?: ExtraFileRule[];
|
|
174
|
+
/**
|
|
175
|
+
* Relative path to the JSR manifest. Default `"jsr.json"`. Pass
|
|
176
|
+
* `"deno.json"` for Deno-flavoured packages that use it as the
|
|
177
|
+
* primary JSR manifest.
|
|
178
|
+
*/
|
|
179
|
+
manifestPath?: string;
|
|
180
|
+
/**
|
|
181
|
+
* Extra arguments forwarded verbatim to `jsr publish` (e.g.
|
|
182
|
+
* `["--allow-slow-types"]`). `--allow-dirty` is always passed by vis and
|
|
183
|
+
* need not be listed. Merged after the `allowSlowTypes` shorthand.
|
|
184
|
+
*/
|
|
185
|
+
publishArgs?: string[];
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Bump `"version": "..."` in a JSR manifest (`jsr.json` or `deno.json`)
|
|
189
|
+
* AND default `versionActions: "jsr"` so vis drives `npx jsr publish`
|
|
190
|
+
* natively (jsr.io metadata lookup + OIDC trusted publishing + JSR's
|
|
191
|
+
* scoped-name validation).
|
|
192
|
+
*
|
|
193
|
+
* JSR is Deno's package registry (jsr.io). Operators publish via
|
|
194
|
+
* `npx jsr publish` after authoring `jsr.json` (or `deno.json` for
|
|
195
|
+
* Deno-flavoured packages); the manifest uses PEP 621-style fields
|
|
196
|
+
* (`name`, `version`, `exports`).
|
|
197
|
+
*
|
|
198
|
+
* The default rule matches the FIRST `"version": "..."` line in the
|
|
199
|
+
* JSON file, which is the convention for the project version under
|
|
200
|
+
* `name`. If your manifest has nested objects with their own
|
|
201
|
+
* `"version"` keys, write a more specific rule.
|
|
202
|
+
*
|
|
203
|
+
* Operators who need to bump BOTH `jsr.json` AND `deno.json` (because
|
|
204
|
+
* the package keeps a separate Deno config) can pass `deno: true` —
|
|
205
|
+
* the preset emits an extra rule against `deno.json` alongside the
|
|
206
|
+
* primary `jsr.json` bump.
|
|
207
|
+
*/
|
|
208
|
+
declare const jsr: (options?: JsrPresetOptions) => PerPackageReleaseConfig;
|
|
209
|
+
interface GoModPresetOptions {
|
|
210
|
+
extraFiles?: ExtraFileRule[];
|
|
211
|
+
/** Path to go.mod. Default: package root. */
|
|
212
|
+
modDir?: string;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Go doesn't carry a version in `go.mod` — versions are SemVer git
|
|
216
|
+
* tags exclusively (`v1.2.3`). This preset is a no-op for the
|
|
217
|
+
* manifest; pair it with `releaseTagPattern: "v{version}"` for proper
|
|
218
|
+
* Go module compatibility. The helper still exists so the config
|
|
219
|
+
* shape is symmetric with the other ecosystems.
|
|
220
|
+
*
|
|
221
|
+
* If you need to update a `pkg.Version` constant in `version.go`,
|
|
222
|
+
* pass it via `extraFiles`.
|
|
223
|
+
*/
|
|
224
|
+
declare const goMod: (options?: GoModPresetOptions) => PerPackageReleaseConfig;
|
|
225
|
+
export { CargoPresetOptions, ContainerPresetOptions, GoModPresetOptions, GradlePropertiesPresetOptions, JsrPresetOptions, PomXmlPresetOptions, PyprojectPresetOptions, cargo, container, goMod, gradleProperties, jsr, pomXml, pyproject };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a=(r={})=>{const s=r.crateDir?`${r.crateDir}/Cargo.toml`:"Cargo.toml";return{cargoTomlPath:s,extraFiles:[{flags:"m",path:s,replace:"$1{version}$3",search:String.raw`^(version\s*=\s*")([^"]+)(")`},...r.extraFiles??[]],versionActions:"cargo"}},i=(r={})=>({extraFiles:[{flags:"m",path:r.projectDir?`${r.projectDir}/pyproject.toml`:"pyproject.toml",replace:"$1{version}$3",search:String.raw`^(version\s*=\s*")([^"]+)(")`},...r.extraFiles??[]],...r.projectDir?{pythonProjectDir:r.projectDir}:{},...r.uvLockPath?{uvLockPath:r.uvLockPath}:{},...r.uvWorkspace?{uvWorkspace:r.uvWorkspace}:{},versionActions:"python"}),n=(r={})=>{const s=r.projectDir?`${r.projectDir}/gradle.properties`:"gradle.properties",o=r.property??"version";return{extraFiles:[{flags:"m",path:s,replace:`${o}={version}`,search:String.raw`^${o}\s*=.*$`},...r.extraFiles??[]]}},l=(r={})=>({extraFiles:[{flags:"",path:r.pomDir?`${r.pomDir}/pom.xml`:"pom.xml",replace:"$1{version}$3",search:"(<version>)([^<]+)(</version>)"},...r.extraFiles??[]],versionActions:"maven"}),c=r=>({buildContext:r.buildContext,containerBuildArgs:r.buildArgs,containerImage:r.image,containerPlatforms:r.platforms,containerSigning:r.signing,containerSkipLatest:r.skipLatest,extraFiles:r.extraFiles??[],versionActions:"container"}),p=(r={})=>{const s=r.manifestPath??"jsr.json",o={flags:"m",path:s,replace:"$1{version}$3",search:String.raw`^(\s*"version"\s*:\s*")([^"]+)(")`},e=r.deno&&s!=="deno.json"?{flags:"m",path:"deno.json",replace:"$1{version}$3",search:String.raw`^(\s*"version"\s*:\s*")([^"]+)(")`}:void 0,t=[...r.allowSlowTypes?["--allow-slow-types"]:[],...r.publishArgs??[]];return{extraFiles:[o,...e?[e]:[],...r.extraFiles??[]],jsrConfigPath:s,...t.length>0?{jsrPublishArgs:t}:{},versionActions:"jsr"}},g=(r={})=>({extraFiles:r.extraFiles??[]});export{a as cargo,c as container,g as goMod,n as gradleProperties,p as jsr,l as pomXml,i as pyproject};
|