Skip to content

[plan] Type SafeInputsMCPVersion constant with the Version semantic type #17889

@github-actions

Description

@github-actions

Objective

Add the Version type to the SafeInputsMCPVersion constant, which is inconsistently declared as an untyped string while all 20+ neighboring version constants are properly typed.

Context

Discussion #17885 (Typist - Go Type Consistency Analysis) identified this as an obvious oversight — every neighboring Version constant in pkg/constants/constants.go uses the Version semantic type except this one.

Location

File: pkg/constants/constants.go (around line 654)

// Current — untyped (inconsistent)
const SafeInputsMCPVersion = "1.0.0"

// Fixed — consistent with all other Version constants
const SafeInputsMCPVersion Version = "1.0.0"

Files to Modify

  • pkg/constants/constants.go — add Version type to SafeInputsMCPVersion

Acceptance Criteria

  • SafeInputsMCPVersion uses the Version type
  • All usage sites compile correctly (the Version type has a String() method and is compatible with string operations)
  • make build and make test-unit pass
  • make fmt and make lint pass

Generated by Plan Command for issue #discussion #17885

  • expires on Feb 25, 2026, 11:40 AM UTC

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions