Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: thrashr888/hcptf-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.5.1
Choose a base ref
...
head repository: thrashr888/hcptf-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.6.0
Choose a head ref
  • 4 commits
  • 86 files changed
  • 2 contributors

Commits on Mar 6, 2026

  1. Add agent-friendly CLI features: dry-run, schema, fields, json-input,…

    … validation
    
    Add features to make hcptf work well when driven by AI agents, inspired
    by https://justin.poehnelt.com/posts/rewrite-your-cli-for-ai-agents/
    
    - `--dry-run` on all mutation commands: validates inputs and outputs
      planned action as JSON without making API calls
    - `--fields` on all commands: filters output to named fields only,
      reducing token usage in agent context windows
    - `--json-input` on mutation commands: accepts full API payloads as
      inline JSON, @filepath, or stdin instead of individual flags
    - `hcptf schema <command>`: returns machine-readable JSON describing
      flags, types, required status, aliases, and defaults
    - Input validation (internal/validate): rejects path traversal, query
      injection, URL-encoded sequences, control chars, and excessive length
    - Enhanced `hcptf login` to emulate `terraform login` browser flow
    - Fix deprecated ioutil.ReadFile usage in meta.go
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    thrashr888 and claude committed Mar 6, 2026
    Configuration menu
    Copy the full SHA
    e4b74aa View commit details
    Browse the repository at this point in the history
  2. Document agent-friendly CLI features in SKILL.md and README.md

    Update skill file and README with usage docs for --dry-run, --fields,
    --json-input, schema introspection, and input validation. Add agent
    best practices section to SKILL.md with recommended workflow.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    thrashr888 and claude committed Mar 6, 2026
    Configuration menu
    Copy the full SHA
    de4e273 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    45cdeb8 View commit details
    Browse the repository at this point in the history
  4. Release v0.6.0

    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    thrashr888 and claude committed Mar 6, 2026
    Configuration menu
    Copy the full SHA
    d0b9520 View commit details
    Browse the repository at this point in the history
Loading