Skip to content

Commit 8f7e32c

Browse files
committed
release: critique@0.1.123
1 parent 3698642 commit 8f7e32c

File tree

4 files changed

+38
-1
lines changed

4 files changed

+38
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ curl https://critique.work/v/b8faf4362c247bfc46f5098a028e00f0.patch
280280
281281
# Apply the patch directly to your repo
282282
curl -s https://critique.work/v/b8faf4362c247bfc46f5098a028e00f0.patch | git apply
283+
284+
# Reverse the patch (undo the changes)
285+
curl -s https://critique.work/v/b8faf4362c247bfc46f5098a028e00f0.patch | git apply --reverse
283286
```
284287

285288
This makes critique URLs useful for programmatic tools — share the HTML link for humans, use the `.patch` URL for machines.

SKILL.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,23 @@ critique review --web --agent opencode --session <session_id> --filter "src/**/*
122122

123123
The command prints a preview URL when done — share that URL with the user.
124124

125+
## Raw patch access
126+
127+
Every `--web` upload also stores the raw unified diff. Append `.patch` to any critique URL to get it:
128+
129+
```bash
130+
# View the raw patch
131+
curl https://critique.work/v/<id>.patch
132+
133+
# Apply the patch to current repo
134+
curl -s https://critique.work/v/<id>.patch | git apply
135+
136+
# Reverse the patch (undo the changes)
137+
curl -s https://critique.work/v/<id>.patch | git apply --reverse
138+
```
139+
140+
Useful when an agent shares a critique URL and you want to programmatically apply or revert those changes.
141+
125142
## Notes
126143

127144
- Requires **Bun** — use `bunx critique` or global `critique`

cli/CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# 0.1.123
2+
3+
1. **Raw patch access via `.patch` URL** — every diff uploaded with `critique --web` is now also available as a raw unified diff by appending `.patch` to the URL:
4+
5+
```bash
6+
# View the raw patch
7+
curl https://critique.work/v/<id>.patch
8+
9+
# Apply the changes directly
10+
curl -s https://critique.work/v/<id>.patch | git apply
11+
12+
# Undo the changes
13+
curl -s https://critique.work/v/<id>.patch | git apply --reverse
14+
```
15+
16+
Useful for agents and scripts that need to programmatically consume or apply diffs shared as critique URLs — share the HTML link for humans, use the `.patch` URL for machines.
17+
118
# 0.1.122
219

320
1. **Deterministic syntax highlighting detection**`--web` no longer polls for tree-sitter completion with arbitrary timeouts. Uses `DiffRenderable.isHighlighting` to detect exactly when highlighting finishes, then waits for one render stabilization pass. Exits the instant tree-sitter is done instead of always waiting a fixed 500ms.

cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "critique",
33
"module": "src/diff.tsx",
44
"type": "module",
5-
"version": "0.1.122",
5+
"version": "0.1.123",
66
"license": "MIT",
77
"private": false,
88
"bin": "./dist/cli.js",

0 commit comments

Comments
 (0)