← Back to Pull requests

feat: output active tool versions #655

Closed
unknown closed this pull request without merging on Oct 03, 2026 23:26 UTC
View on GitHub
unknown unknown commented on Oct 03, 2026 23:07 UTC
Author

<!-- entire-trail-link-start -->
https://entire.io/gh/jdx/mise-action/trails/28
<!-- entire-trail-link-end -->

Summary


After install, the action runs mise ls --json --current and sets:
  • versions: JSON of the active, installed tools ({version, requested_version, install_path, source} per entry, a list per tool so multi-version tools aren't lost).

  • one output per tool with its resolved version, when the tool name is a valid output name and isn't one of the reserved outputs (cache-hit, versions). Names like npm:@scope/pkg are only in versions.
  • Inactive and uninstalled entries are skipped. A failure to read them only warns. Parsing lives in src/tool-versions.ts with tests in scripts/tool-versions.test.mjs (the test script now runs scripts/*.test.mjs).

    This re-does #450, which was closed for inactivity with merge conflicts, with the same outputs plus the reserved-name handling and a test.

    Typecheck, lint, tests and build pass; dist/ rebuilt. Not run in a real workflow.

    Fixes #448

    🤖 Generated with Claude Code

    <!-- CURSOR_SUMMARY -->
    ---

    [!NOTE]

    Low Risk

    Additive, post-install outputs with warn-only failure handling; no changes to install, cache restore, or env export behavior.

    > Overview

    After install, the action now runs mise ls --json --current and exposes what mise resolved without an extra shell/jq step.

    > New outputs: a versions JSON blob (active installed tools only, with {version, requested_version, install_path, source} per entry; multiple active versions stay as lists) and one output per tool (e.g. steps.mise.outputs.bun) when the tool name is a valid GitHub output identifier and not reserved (cache-hit, versions). Scoped npm-style tool names appear only in versions.

    > If version discovery fails, the step warns and continues so workflows still succeed. action.yml and README.md document the outputs, including a actions/cache key example keyed on a resolved tool version.

    > <sup>Reviewed by Cursor Bugbot for commit 314add82de31b69c0b81ca9a6206263433729ac4. Bugbot is set up for automated code reviews on this repo. Configure here.</sup>

    <!-- /CURSOR_SUMMARY -->

    Diff: 289 lines (+216 / -73) across 3 files Reviewer: jdx Review duration: 18m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 289 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.339
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #655"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.8% (MEDIUM) · Higher = larger blast radius
    39.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.2% · Safe to merge
    17.2%