Skip to content

CLI: chtypes resolve <line> prints the build and manifest digest a line resolves to, without installing #493

Description

@EricAndrechek

Ask (from a downstream consumer).

  • The command: chtypes resolve <line>, in every binding's CLI. It asks the registry what a line (or a floating tag) currently resolves to and prints the build id and manifest digest, verified and machine-readable, without downloading a layer.
  • Why: CI cache keys need "which build is current for 26.8". Today that means calling the registry's index directly (curl against the OCI API), re-implementing a piece of the fetch contract outside the SDK.
  • Shape:
    • one line of output per platform, or a --json form, in the same flat style chtypes list uses, so one parser reads all four CLIs;
    • honours --offline by answering from the cache;
    • honours the same bases and mirror settings as fetch.
  • Sequencing: a new CLI command in all four bindings, so it goes after a v1 public-surface parity gate #436 (whose gate should cover the CLI surface too), or sooner if it counts as CLI-only.

🤖 Generated with Claude Code

Activity

  1. EricAndrechek commented on Oct 9, 2026

    @EricAndrechek
    MemberAuthor

    Planned after 2.0.0, as a 2.1.0 candidate. This is additive: binding-level API or CLI, no ABI change. The v2 lock freezes the ABI fingerprint, not the binding surface, so additions like this ship as 2.x minor releases, as 1.1.0 did for 1.x. It stays off the 2.0.0 critical path.

  2. added
    v2-pre-lockMust land before the v2 ABI lock (it may reveal an ABI need)
    and removed on Oct 9, 2026
  3. EricAndrechek commented on Oct 9, 2026

    @EricAndrechek
    MemberAuthor

    Correction: this moves BEFORE the v2 lock. It is no longer a 2.1.0 candidate. The rule now: every applicable item lands before the ABI locks, even one that looks ABI-neutral, because doing it can reveal an ABI need (a fetch-only call may want a C-ABI entry or argument). It is scheduled after the registry-lock fix (#491) and the production fetch channel, which touch the same code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestv2-pre-lockMust land before the v2 ABI lock (it may reveal an ABI need)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions