@mdless/cli 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @mdless/cli
2
2
 
3
- ![mdless cli screenshot](https://raw.githubusercontent.com/anteloio/mdless-cli/main/assets/screenshot.png)
3
+ ![mdless cli screenshot](https://raw.githubusercontent.com/mdless/mdless/main/apps/cli/assets/screenshot.png)
4
4
 
5
5
  **Mind less, ship more.**
6
6
 
@@ -126,6 +126,19 @@ mdless agent <name> --every 1h --loop 3 # three runs, one hour apart
126
126
 
127
127
  The startup sound plays once when the command starts, not before each run.
128
128
 
129
+ ## 🖼️ Evidence for pull requests
130
+
131
+ Agents that open a PR show proof that the work is done: screenshots for UI changes, a diagram for the rest, and the output of the checks.
132
+
133
+ ```bash
134
+ mdless evidence render .mdless-evidence/flow.html .mdless-evidence/flow.png # HTML → PNG, headless Chrome
135
+ mdless evidence publish .mdless-evidence/*.png # prints ![flow](https://github.com/...)
136
+ ```
137
+
138
+ - `render` needs Chrome or Chromium. Set `MDLESS_CHROME` to use another Chromium-based browser. `--width` and `--height` set the size (default 1200×800).
139
+ - `publish` commits the images to `<branch>/` on an orphan `mdless-evidence` branch and pushes it. The PR diff stays clean. `--branch` overrides the current branch.
140
+ - `.mdless-evidence/` is kept out of git: `mdless init` adds it to `.gitignore`, and `render` adds it to `.git/info/exclude`.
141
+
129
142
  ## 📋 Command reference
130
143
 
131
144
  | Command | What it does |
@@ -136,6 +149,8 @@ The startup sound plays once when the command starts, not before each run.
136
149
  | `mdless agent <name> --loop` | Run the agent on repeat, forever |
137
150
  | `mdless agent <name> --loop <n>` | Run the agent `<n>` times, then exit |
138
151
  | `mdless agent <name> --every <interval>` | Run the agent on repeat, waiting `<interval>` between runs (eg `10m`) |
152
+ | `mdless evidence render <html> <png>` | Render an HTML file to a PNG with headless Chrome |
153
+ | `mdless evidence publish <png...>` | Push images to the `mdless-evidence` branch and print Markdown links |
139
154
 
140
155
  ## 📄 License
141
156