Skip to content

feat(cli): close the GitHub backend's command-surface gaps #82

Closed

Description

@FreshlyBrewedCode

Parent

#78

What to build

The operations an agent reaches for and does not find.

  • Archiving a map. Closing a map's issue is the only archive gesture that exists, and afterwards every command reports that the map does not exist — which is both wrong and unrecoverable from the CLI. Give archiving a name: archive a map, list archived maps, bring one back.
  • Map type restrictions. A map's allowed step types are enforced by validation but cannot be set. Under the filesystem backend the escape hatch is editing the map's configuration file; under GitHub it is hand-editing structured data inside an issue body, which nothing documents and no agent will find.
  • Artifact scope without an environment variable. context has no map flag, so addressing an artifact by its ref is reachable only by setting WAYFUL_MAP. An agent should not have to mutate its environment to read one artifact.
  • Read parity. Goals are the only primitive without a show. Dereferencing a ref is implemented in both backends but reachable only over HTTP from the UI, so wayful artifact show reports a ref and a kind and never its content.

Acceptance criteria

  • wayful map archive --map <name> archives a map; wayful map list no longer lists it and wayful map list --all does.
  • After archiving, a map-scoped command against that map reports it as archived and names how to restore it, rather than reporting that it does not exist.
  • wayful map unarchive --map <name> restores the map with its steps and goals intact.
  • wayful map create accepts an allowed-step-types restriction, and wayful step create with an excluded type is refused.
  • A command sets and clears that restriction on an existing map, and wayful map show reports the current value.
  • wayful context 'file:docs/spec.md' --map <name> renders artifact scope with no WAYFUL_MAP set.
  • wayful goal show reports a goal's description, body, required output slots, and current attachments.
  • A command prints the content behind an attached markdown file: ref, and refuses a ref that is not attached on the map.
  • Every new command works identically under both backends, except where the behaviour is inherently backend-specific.

Blocked by

None (can start immediately).

Metadata

Metadata

Assignees

No one assigned

    Labels

    pkg:clitype:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions