Skip to content

feat: content list command — show all nodes with content #281

@flyingrobots

Description

@flyingrobots

Motivation

There's no way to discover which nodes have content attached without checking each one individually. A git mind content list command would complete the content CRUD surface.

Proposed Behavior

$ git mind content list
doc:readme    text/markdown    1.2 KB    abc123...
doc:design    text/plain       456 B     def456...

$ git mind content list --json
[{ "nodeId": "doc:readme", "mime": "text/markdown", "size": 1234, "sha": "abc..." }, ...]

Implementation

  • Walk all nodes, check for _content.sha property
  • Add JSON schema contract content-list.schema.json
  • Reuse getContentMeta for each node with content

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions