diffback-review 1.1.0 → 1.2.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.
Files changed (3) hide show
  1. package/README.md +3 -3
  2. package/dist/cli.js +32 -6
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -37,13 +37,13 @@ When working with AI coding agents (Claude Code, Cursor, Copilot, etc.), the rev
37
37
  ## Install
38
38
 
39
39
  ```bash
40
- npm install -g diffback
40
+ npm install -g diffback-review
41
41
  ```
42
42
 
43
43
  Or run directly with npx:
44
44
 
45
45
  ```bash
46
- npx diffback
46
+ npx diffback-review
47
47
  ```
48
48
 
49
49
  ## Usage
@@ -51,7 +51,7 @@ npx diffback
51
51
  From any git repository with uncommitted changes:
52
52
 
53
53
  ```bash
54
- diffback
54
+ npx diffback-review
55
55
  ```
56
56
 
57
57
  This starts a local server and opens your browser. Review the changes, add comments, then click **Generate Feedback** to get a prompt you can paste into your AI agent.
package/dist/cli.js CHANGED
@@ -280,6 +280,7 @@ function startServer(port) {
280
280
  <title>Code Review</title>
281
281
  <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>\u{1F50D}</text></svg>">
282
282
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/diff2html/bundles/css/diff2html.min.css">
283
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@11/styles/base16/solarized-dark.min.css">
283
284
  <script src="https://cdn.jsdelivr.net/npm/diff2html/bundles/js/diff2html-ui.min.js"></script>
284
285
  <style>
285
286
  /* Solarized Dark */
@@ -741,33 +742,58 @@ function startServer(port) {
741
742
  }
742
743
  .d2h-code-line, .d2h-code-side-line {
743
744
  background: var(--bg) !important;
744
- color: var(--text) !important;
745
745
  width: 100% !important;
746
746
  }
747
747
  .d2h-code-line-ctn {
748
- color: var(--text) !important;
749
748
  width: 100% !important;
750
749
  }
750
+ /* Default text color for non-highlighted code */
751
+ .d2h-code-line-ctn, .d2h-code-line-ctn * {
752
+ color: #93a1a1;
753
+ }
754
+ /* Let highlight.js syntax colors take priority */
755
+ .d2h-code-line-ctn .hljs-keyword,
756
+ .d2h-code-line-ctn .hljs-selector-tag,
757
+ .d2h-code-line-ctn .hljs-deletion { color: #859900 !important; }
758
+ .d2h-code-line-ctn .hljs-string,
759
+ .d2h-code-line-ctn .hljs-addition { color: #2aa198 !important; }
760
+ .d2h-code-line-ctn .hljs-built_in,
761
+ .d2h-code-line-ctn .hljs-type { color: #b58900 !important; }
762
+ .d2h-code-line-ctn .hljs-function,
763
+ .d2h-code-line-ctn .hljs-title { color: #268bd2 !important; }
764
+ .d2h-code-line-ctn .hljs-number,
765
+ .d2h-code-line-ctn .hljs-literal { color: #d33682 !important; }
766
+ .d2h-code-line-ctn .hljs-comment,
767
+ .d2h-code-line-ctn .hljs-quote { color: #586e75 !important; font-style: italic; }
768
+ .d2h-code-line-ctn .hljs-attr,
769
+ .d2h-code-line-ctn .hljs-attribute { color: #b58900 !important; }
770
+ .d2h-code-line-ctn .hljs-params { color: #93a1a1 !important; }
771
+ .d2h-code-line-ctn .hljs-meta,
772
+ .d2h-code-line-ctn .hljs-meta .hljs-keyword { color: #cb4b16 !important; }
773
+ .d2h-code-line-ctn .hljs-class .hljs-title,
774
+ .d2h-code-line-ctn .hljs-title.class_ { color: #b58900 !important; }
775
+ .d2h-code-line-ctn .hljs-variable,
776
+ .d2h-code-line-ctn .hljs-template-variable { color: #268bd2 !important; }
777
+ .d2h-code-line-ctn .hljs-regexp { color: #dc322f !important; }
778
+ .d2h-code-line-ctn .hljs-symbol { color: #6c71c4 !important; }
779
+ .d2h-code-line-ctn .hljs-selector-class,
780
+ .d2h-code-line-ctn .hljs-selector-id { color: #268bd2 !important; }
751
781
  /* Added lines */
752
782
  .d2h-ins, .d2h-ins .d2h-code-line-ctn {
753
783
  background: #0a3d0a !important;
754
- color: #eee8d5 !important;
755
784
  }
756
785
  .d2h-ins .d2h-code-line-ctn ins,
757
786
  .d2h-ins.d2h-change .d2h-code-line-ctn ins {
758
787
  background: #1a5c1a !important;
759
- color: #eee8d5 !important;
760
788
  text-decoration: none !important;
761
789
  }
762
790
  /* Deleted lines */
763
791
  .d2h-del, .d2h-del .d2h-code-line-ctn {
764
792
  background: #3d0a0a !important;
765
- color: #eee8d5 !important;
766
793
  }
767
794
  .d2h-del .d2h-code-line-ctn del,
768
795
  .d2h-del.d2h-change .d2h-code-line-ctn del {
769
796
  background: #5c1a1a !important;
770
- color: #eee8d5 !important;
771
797
  text-decoration: none !important;
772
798
  }
773
799
  /* Info/hunk headers - visually hidden but in DOM for fold indicator positioning */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diffback-review",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Review AI-generated code changes and generate structured feedback prompts",
5
5
  "type": "module",
6
6
  "bin": {