Skip to content

Add vex metadata with a stable JSON schema #26

Closed

Description

@LunaStev

Motivation

Editors, language servers, build integrations, and automation currently have no stable machine-readable way to inspect a Vex project. Parsing human output from vex info or vex tree is not a supported interface.

Proposed command

vex metadata --format=json [--locked] [--offline]

The command should expose the root package, resolved direct and transitive packages, exact source identities, locked commits, graph edges, canonical source roots, and relevant target directories.

Acceptance criteria

  • Publish and document an explicit schema version.
  • Use deterministic ordering.
  • Keep stdout valid JSON and send progress or diagnostics to stderr.
  • Represent path and Git sources without losing the exact locked commit.
  • Support strict --locked --offline inspection.
  • Avoid exposing credentials embedded in source URLs.
  • Add schema fixtures and integration tests.
  • Document compatibility rules for adding and changing fields.

Activity

  1. added
    feature request
    dependencies
    tooling
    on Sep 18, 2026
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

    dependenciesfeature requesttooling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions