critique 0.1.30 → 0.1.32

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/AGENTS.md CHANGED
@@ -6,6 +6,21 @@ IMPORTANT! before starting every task ALWAYS read opentui docs with `curl -s htt
6
6
 
7
7
  ALWAYS!
8
8
 
9
+ ### using unreleased opentui versions
10
+
11
+ to use a pkg.pr.new preview URL for opentui, get the last commit hash (first 7 chars) from PR https://github.com/anomalyco/opentui/pull/536:
12
+
13
+ ```bash
14
+ gh pr view 536 -R anomalyco/opentui --json commits --jq '.commits[-1].oid[:7]'
15
+ ```
16
+
17
+ then use it in package.json:
18
+
19
+ ```
20
+ https://pkg.pr.new/anomalyco/opentui/@opentui/core@<hash>
21
+ https://pkg.pr.new/anomalyco/opentui/@opentui/react@<hash>
22
+ ```
23
+
9
24
  ## bun
10
25
 
11
26
  NEVER run the interactive TUI (e.g. `bun run src/cli.tsx` without arguments). It will hang. Instead ask the user to run it.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # 0.1.32
2
+
3
+ - Dependencies:
4
+ - Update opentui to `070b0cd` (improved word highlights algorithm, GitHub Desktop-style)
5
+ - Docs:
6
+ - Add instructions for using pkg.pr.new preview URLs with commit hashes
7
+
8
+ # 0.1.31
9
+
10
+ - Diff view:
11
+ - Add word-level highlighting for changed lines (shows exactly which words were added/removed)
12
+ - Dependencies:
13
+ - Update opentui to `77f314bf` with word-highlights support
14
+
1
15
  # 0.1.30
2
16
 
3
17
  - Dependencies:
package/bun.lock CHANGED
@@ -7,8 +7,8 @@
7
7
  "dependencies": {
8
8
  "@agentclientprotocol/sdk": "^0.12.0",
9
9
  "@clack/prompts": "1.0.0-alpha.9",
10
- "@opentui/core": "https://pkg.pr.new/anomalyco/opentui/@opentui/core@203f75b8d6bef05ec8da40301efda9ab19fe98d8",
11
- "@opentui/react": "https://pkg.pr.new/anomalyco/opentui/@opentui/react@203f75b8d6bef05ec8da40301efda9ab19fe98d8",
10
+ "@opentui/core": "https://pkg.pr.new/anomalyco/opentui/@opentui/core@070b0cd",
11
+ "@opentui/react": "https://pkg.pr.new/anomalyco/opentui/@opentui/react@070b0cd",
12
12
  "@parcel/watcher": "^2.5.1",
13
13
  "bun-pty": "^0.4.7",
14
14
  "cac": "^6.7.14",
@@ -222,21 +222,21 @@
222
222
 
223
223
  "@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.9", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", "@jridgewell/sourcemap-codec": "^1.4.10" } }, "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ=="],
224
224
 
225
- "@opentui/core": ["@opentui/core@https://pkg.pr.new/anomalyco/opentui/@opentui/core@203f75b8d6bef05ec8da40301efda9ab19fe98d8", { "dependencies": { "bun-ffi-structs": "0.1.2", "diff": "8.0.2", "jimp": "1.6.0", "marked": "17.0.1", "yoga-layout": "3.2.1" }, "optionalDependencies": { "@dimforge/rapier2d-simd-compat": "^0.17.3", "@opentui/core-darwin-arm64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-arm64@203f75b8d6bef05ec8da40301efda9ab19fe98d8", "@opentui/core-darwin-x64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-x64@203f75b8d6bef05ec8da40301efda9ab19fe98d8", "@opentui/core-linux-arm64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-arm64@203f75b8d6bef05ec8da40301efda9ab19fe98d8", "@opentui/core-linux-x64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-x64@203f75b8d6bef05ec8da40301efda9ab19fe98d8", "@opentui/core-win32-arm64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-arm64@203f75b8d6bef05ec8da40301efda9ab19fe98d8", "@opentui/core-win32-x64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-x64@203f75b8d6bef05ec8da40301efda9ab19fe98d8", "bun-webgpu": "0.1.4", "planck": "^1.4.2", "three": "0.177.0" }, "peerDependencies": { "web-tree-sitter": "0.25.10" } }],
225
+ "@opentui/core": ["@opentui/core@https://pkg.pr.new/anomalyco/opentui/@opentui/core@070b0cd", { "dependencies": { "bun-ffi-structs": "0.1.2", "diff": "8.0.2", "jimp": "1.6.0", "marked": "17.0.1", "yoga-layout": "3.2.1" }, "optionalDependencies": { "@dimforge/rapier2d-simd-compat": "^0.17.3", "@opentui/core-darwin-arm64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-arm64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", "@opentui/core-darwin-x64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-x64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", "@opentui/core-linux-arm64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-arm64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", "@opentui/core-linux-x64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-x64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", "@opentui/core-win32-arm64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-arm64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", "@opentui/core-win32-x64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-x64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", "bun-webgpu": "0.1.4", "planck": "^1.4.2", "three": "0.177.0" }, "peerDependencies": { "web-tree-sitter": "0.25.10" } }],
226
226
 
227
- "@opentui/core-darwin-arm64": ["@opentui/core-darwin-arm64@https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-arm64@203f75b8d6bef05ec8da40301efda9ab19fe98d8", {}],
227
+ "@opentui/core-darwin-arm64": ["@opentui/core-darwin-arm64@https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-arm64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", {}],
228
228
 
229
- "@opentui/core-darwin-x64": ["@opentui/core-darwin-x64@https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-x64@203f75b8d6bef05ec8da40301efda9ab19fe98d8", {}],
229
+ "@opentui/core-darwin-x64": ["@opentui/core-darwin-x64@https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-x64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", {}],
230
230
 
231
- "@opentui/core-linux-arm64": ["@opentui/core-linux-arm64@https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-arm64@203f75b8d6bef05ec8da40301efda9ab19fe98d8", {}],
231
+ "@opentui/core-linux-arm64": ["@opentui/core-linux-arm64@https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-arm64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", {}],
232
232
 
233
- "@opentui/core-linux-x64": ["@opentui/core-linux-x64@https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-x64@203f75b8d6bef05ec8da40301efda9ab19fe98d8", {}],
233
+ "@opentui/core-linux-x64": ["@opentui/core-linux-x64@https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-x64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", {}],
234
234
 
235
- "@opentui/core-win32-arm64": ["@opentui/core-win32-arm64@https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-arm64@203f75b8d6bef05ec8da40301efda9ab19fe98d8", {}],
235
+ "@opentui/core-win32-arm64": ["@opentui/core-win32-arm64@https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-arm64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", {}],
236
236
 
237
- "@opentui/core-win32-x64": ["@opentui/core-win32-x64@https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-x64@203f75b8d6bef05ec8da40301efda9ab19fe98d8", {}],
237
+ "@opentui/core-win32-x64": ["@opentui/core-win32-x64@https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-x64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", {}],
238
238
 
239
- "@opentui/react": ["@opentui/react@https://pkg.pr.new/anomalyco/opentui/@opentui/react@203f75b8d6bef05ec8da40301efda9ab19fe98d8", { "dependencies": { "@opentui/core": "https://pkg.pr.new/anomalyco/opentui/@opentui/core@203f75b8d6bef05ec8da40301efda9ab19fe98d8", "react-reconciler": "^0.32.0" }, "peerDependencies": { "react": ">=19.0.0", "react-devtools-core": "^7.0.1", "ws": "^8.18.0" } }],
239
+ "@opentui/react": ["@opentui/react@https://pkg.pr.new/anomalyco/opentui/@opentui/react@070b0cd", { "dependencies": { "@opentui/core": "https://pkg.pr.new/anomalyco/opentui/@opentui/core@070b0cde4a12fbd28086f70487c8655a07ca3ac4", "react-reconciler": "^0.32.0" }, "peerDependencies": { "react": ">=19.0.0", "react-devtools-core": "^7.0.1", "ws": "^8.18.0" } }],
240
240
 
241
241
  "@parcel/watcher": ["@parcel/watcher@2.5.4", "", { "dependencies": { "detect-libc": "^2.0.3", "is-glob": "^4.0.3", "node-addon-api": "^7.0.0", "picomatch": "^4.0.3" }, "optionalDependencies": { "@parcel/watcher-android-arm64": "2.5.4", "@parcel/watcher-darwin-arm64": "2.5.4", "@parcel/watcher-darwin-x64": "2.5.4", "@parcel/watcher-freebsd-x64": "2.5.4", "@parcel/watcher-linux-arm-glibc": "2.5.4", "@parcel/watcher-linux-arm-musl": "2.5.4", "@parcel/watcher-linux-arm64-glibc": "2.5.4", "@parcel/watcher-linux-arm64-musl": "2.5.4", "@parcel/watcher-linux-x64-glibc": "2.5.4", "@parcel/watcher-linux-x64-musl": "2.5.4", "@parcel/watcher-win32-arm64": "2.5.4", "@parcel/watcher-win32-ia32": "2.5.4", "@parcel/watcher-win32-x64": "2.5.4" } }, "sha512-WYa2tUVV5HiArWPB3ydlOc4R2ivq0IDrlqhMi3l7mVsFEXNcTfxYFPIHXHXIh/ca/y/V5N4E1zecyxdIBjYnkQ=="],
242
242
 
@@ -480,10 +480,14 @@
480
480
 
481
481
  "@opentui/core/diff": ["diff@8.0.2", "", {}, "sha512-sSuxWU5j5SR9QQji/o2qMvqRNYRDOcBTgsJ/DeCf4iSN4gW+gNMXM7wFIP+fdXZxoNiAnHUTGjCr+TSWXdRDKg=="],
482
482
 
483
+ "@opentui/react/@opentui/core": ["@opentui/core@https://pkg.pr.new/anomalyco/opentui/@opentui/core@070b0cde4a12fbd28086f70487c8655a07ca3ac4", { "dependencies": { "bun-ffi-structs": "0.1.2", "diff": "8.0.2", "jimp": "1.6.0", "marked": "17.0.1", "yoga-layout": "3.2.1" }, "optionalDependencies": { "@dimforge/rapier2d-simd-compat": "^0.17.3", "@opentui/core-darwin-arm64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-arm64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", "@opentui/core-darwin-x64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-x64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", "@opentui/core-linux-arm64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-arm64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", "@opentui/core-linux-x64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-x64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", "@opentui/core-win32-arm64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-arm64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", "@opentui/core-win32-x64": "https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-x64@070b0cde4a12fbd28086f70487c8655a07ca3ac4", "bun-webgpu": "0.1.4", "planck": "^1.4.2", "three": "0.177.0" }, "peerDependencies": { "web-tree-sitter": "0.25.10" } }],
484
+
483
485
  "image-q/@types/node": ["@types/node@16.9.1", "", {}, "sha512-QpLcX9ZSsq3YYUUnD3nFDY8H7wctAhQj/TFKL8Ya8v5fMm3CFXxo8zStsLAl780ltoYoo1WvKUVGBQK+1ifr7g=="],
484
486
 
485
487
  "pixelmatch/pngjs": ["pngjs@6.0.0", "", {}, "sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg=="],
486
488
 
487
489
  "react-devtools-core/ws": ["ws@7.5.10", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": "^5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ=="],
490
+
491
+ "@opentui/react/@opentui/core/diff": ["diff@8.0.2", "", {}, "sha512-sSuxWU5j5SR9QQji/o2qMvqRNYRDOcBTgsJ/DeCf4iSN4gW+gNMXM7wFIP+fdXZxoNiAnHUTGjCr+TSWXdRDKg=="],
488
492
  }
489
493
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "critique",
3
3
  "module": "src/diff.tsx",
4
4
  "type": "module",
5
- "version": "0.1.30",
5
+ "version": "0.1.32",
6
6
  "private": false,
7
7
  "bin": "./src/cli.tsx",
8
8
  "scripts": {
@@ -24,8 +24,8 @@
24
24
  "dependencies": {
25
25
  "@agentclientprotocol/sdk": "^0.12.0",
26
26
  "@clack/prompts": "1.0.0-alpha.9",
27
- "@opentui/core": "https://pkg.pr.new/anomalyco/opentui/@opentui/core@203f75b8d6bef05ec8da40301efda9ab19fe98d8",
28
- "@opentui/react": "https://pkg.pr.new/anomalyco/opentui/@opentui/react@203f75b8d6bef05ec8da40301efda9ab19fe98d8",
27
+ "@opentui/core": "https://pkg.pr.new/anomalyco/opentui/@opentui/core@070b0cd",
28
+ "@opentui/react": "https://pkg.pr.new/anomalyco/opentui/@opentui/react@070b0cd",
29
29
  "@parcel/watcher": "^2.5.1",
30
30
  "bun-pty": "^0.4.7",
31
31
  "cac": "^6.7.14",