@heyhuynhgiabuu/pi-diff 0.1.6 → 0.2.1
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 +6 -6
- package/package.json +4 -4
- package/src/index.ts +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# pi-diff
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@heyhuynhgiabuu/pi-diff)
|
|
4
|
-
[](https://github.com/buddingnewinsights/pi-diff/releases/latest)
|
|
5
5
|
|
|
6
6
|
A [pi](https://pi.dev) extension that replaces the default `write` and `edit` tool output with **Shiki-powered, syntax-highlighted diffs** — side-by-side split view, unified stacked view, and word-level change emphasis, all rendered directly in your terminal.
|
|
7
7
|
|
|
@@ -9,11 +9,11 @@ A [pi](https://pi.dev) extension that replaces the default `write` and `edit` to
|
|
|
9
9
|
|
|
10
10
|
### Unified view — stacked single-column diff
|
|
11
11
|
|
|
12
|
-
<img width="700" alt="pi-diff unified view" src="https://github.com/
|
|
12
|
+
<img width="700" alt="pi-diff unified view" src="https://github.com/buddingnewinsights/pi-diff/raw/main/media/unified.png" />
|
|
13
13
|
|
|
14
14
|
### Split view — side-by-side comparison
|
|
15
15
|
|
|
16
|
-
<img width="700" alt="pi-diff split view" src="https://github.com/
|
|
16
|
+
<img width="700" alt="pi-diff split view" src="https://github.com/buddingnewinsights/pi-diff/raw/main/media/split.png" />
|
|
17
17
|
|
|
18
18
|
## Features
|
|
19
19
|
|
|
@@ -33,7 +33,7 @@ A [pi](https://pi.dev) extension that replaces the default `write` and `edit` to
|
|
|
33
33
|
pi install npm:@heyhuynhgiabuu/pi-diff
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
Latest release: https://github.com/
|
|
36
|
+
Latest release: https://github.com/buddingnewinsights/pi-diff/releases/latest
|
|
37
37
|
|
|
38
38
|
Or load directly for development:
|
|
39
39
|
|
|
@@ -232,7 +232,7 @@ const { parseDiff, renderSplit, renderUnified, normalizeShikiContrast } = __test
|
|
|
232
232
|
## Development
|
|
233
233
|
|
|
234
234
|
```bash
|
|
235
|
-
git clone https://github.com/
|
|
235
|
+
git clone https://github.com/buddingnewinsights/pi-diff.git
|
|
236
236
|
cd pi-diff
|
|
237
237
|
npm install
|
|
238
238
|
npm run typecheck # TypeScript validation
|
|
@@ -281,4 +281,4 @@ See the [pi docs](https://pi.dev) for the full extension API.
|
|
|
281
281
|
|
|
282
282
|
## License
|
|
283
283
|
|
|
284
|
-
MIT — [huynhgiabuu](https://github.com/
|
|
284
|
+
MIT — [huynhgiabuu](https://github.com/buddingnewinsights)
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heyhuynhgiabuu/pi-diff",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Shiki-powered terminal diff renderer for pi — syntax-highlighted, word-level diffs in split and unified views.",
|
|
5
5
|
"author": "huynhgiabuu",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/
|
|
9
|
+
"url": "https://github.com/buddingnewinsights/pi-diff.git"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://github.com/
|
|
11
|
+
"homepage": "https://github.com/buddingnewinsights/pi-diff#readme",
|
|
12
12
|
"bugs": {
|
|
13
|
-
"url": "https://github.com/
|
|
13
|
+
"url": "https://github.com/buddingnewinsights/pi-diff/issues"
|
|
14
14
|
},
|
|
15
15
|
"keywords": [
|
|
16
16
|
"pi-package",
|
package/src/index.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* pi-diff — Shiki-powered terminal diff renderer for pi.
|
|
3
3
|
*
|
|
4
4
|
* @module pi-diff
|
|
5
|
-
* @see https://github.com/
|
|
5
|
+
* @see https://github.com/buddingnewinsights/pi-diff
|
|
6
6
|
*
|
|
7
7
|
* Architecture (like OpenTUI / delta):
|
|
8
8
|
* 1. Syntax-highlight full code blocks via Shiki → ANSI (fg-only codes)
|