@diffpal/diffpal-win32-x64 0.1.1 → 0.1.2

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,75 +1,114 @@
1
1
  # DiffPal
2
2
 
3
- DiffPal is a diff-first, policy-aware review assistant.
3
+ DiffPal reviews pull requests from the diff first, then publishes clear,
4
+ policy-aware feedback back to your CI system.
4
5
 
5
- - Diff collection and review are treated as a first-class artifact (`findings.json`).
6
- - Review runs are mode-scoped: local review stays local, and host review emits only that host's artifacts.
7
- - GitHub is the primary host surface; GitLab and Azure adapters follow the same findings contract.
6
+ It is built for teams that want AI review output that is easy to scan:
8
7
 
9
- ## Package and runtime contract
8
+ - a PR summary with reviewed files and pass/fail status
9
+ - inline comments only for actionable findings
10
+ - merge gating through checks/statuses, not bot approvals
11
+ - one config file that works across GitHub, GitLab, and Azure DevOps
10
12
 
11
- - Go module: `github.com/diffpal/diffpal`
12
- - CLI binary: `diffpal`
13
- - Default package license: `MIT`
14
- - Build stack: Go 1.26.4
15
- - CLI package: `@diffpal/diffpal`
16
- - GitHub Action: `diffpal/action`
17
- - NPM scope: `@diffpal/*`
18
- - Self-review: `.github/workflows/diffpal-review.yml` installs `@diffpal/diffpal@latest` and runs this repository's action on same-repository pull requests.
13
+ ## Quick Start
19
14
 
20
- See [docs/product-contract.md](docs/product-contract.md) for full contract details.
15
+ Install the CLI and Copilot provider:
21
16
 
22
- ## Commands
17
+ ```bash
18
+ npm install --global @diffpal/diffpal@latest @github/copilot@latest
19
+ diffpal init
20
+ diffpal doctor
21
+ ```
23
22
 
24
- This repository includes the canonical CLI command tree:
23
+ Then add DiffPal to your CI:
25
24
 
26
- - `diffpal review`
27
- - `diffpal review local`
28
- - `diffpal review github`
29
- - `diffpal review gitlab`
30
- - `diffpal review ado`
31
- - `diffpal sarif`
32
- - `diffpal init`
33
- - `diffpal doctor`
34
- - `diffpal version`
25
+ - [GitHub Actions setup](docs/ci-examples.md#github-actions)
26
+ - [GitLab CI setup](docs/ci-examples.md#gitlab-ci)
27
+ - [Azure Pipelines setup](docs/ci-examples.md#azure-pipelines)
35
28
 
36
- ## Repository layout
29
+ For production, pin `@diffpal/diffpal` and `@github/copilot` to tested SemVer
30
+ versions instead of using `@latest`.
37
31
 
38
- - `cmd/diffpal` contains the build entrypoint for the CLI binary.
39
- - `internal/cmd` contains the Cobra command tree and command wiring.
40
- - `internal/...` contains non-exported runtime, diff, policy, findings, platform, and reliability packages.
41
- - `docs/` records the product contract, config, platform adapters, and release behavior.
32
+ ## What DiffPal Publishes
42
33
 
43
- ## Documentation
34
+ On pull requests, DiffPal can publish:
44
35
 
45
- - [Quickstart](docs/quickstart.md)
46
- - [Config and policy reference](docs/config-reference.md)
47
- - [Configuration schema](docs/config-schema.md)
48
- - [Findings schema](docs/findings-schema.md)
49
- - [GitHub/GitLab/Azure CI examples](docs/ci-examples.md)
50
- - [GitLab adapter contract](docs/platform-gitlab.md)
51
- - [Azure adapter contract](docs/platform-azure.md)
52
- - [Release process](docs/release.md)
36
+ - a review summary comment
37
+ - a required check/status for merge gating
38
+ - inline comments or threads for actionable findings
39
+ - JSON, SARIF, and CI artifacts for later inspection
40
+
41
+ The default review checks are:
42
+
43
+ - `bugs`
44
+ - `performance`
45
+ - `best-practices`
46
+
47
+ The default review language is English. Both are configurable in
48
+ `.config/diffpal/config.yaml` or by CLI flags.
49
+
50
+ ## Minimal Config
51
+
52
+ `diffpal init` writes `.config/diffpal/config.yaml`. The default public
53
+ onboarding provider is Copilot ACP:
54
+
55
+ ```yaml
56
+ version: v1
57
+
58
+ defaults:
59
+ provider: copilot-acp
60
+ policy: default
53
61
 
54
- ## First Commands
62
+ providers:
63
+ copilot-acp:
64
+ type: copilot_acp
65
+ copilot_acp:
66
+ extra_args:
67
+ - --stdio
68
+
69
+ policies:
70
+ default:
71
+ block_on: high
72
+
73
+ review:
74
+ context_lines: 20
75
+ max_files: 200
76
+ language: en
77
+ checks:
78
+ - bugs
79
+ - performance
80
+ - best-practices
81
+ ```
82
+
83
+ ## Common Commands
55
84
 
56
85
  ```bash
57
- diffpal init
58
- diffpal doctor
86
+ diffpal doctor --mode github
59
87
  diffpal review local --base origin/main --head HEAD
60
- diffpal review github --base origin/main --head HEAD --gate
88
+ diffpal review github --base "$BASE_SHA" --head "$HEAD_SHA" --feedback balanced --gate
89
+ diffpal review gitlab --base "$BASE_SHA" --head "$HEAD_SHA" --feedback balanced --gate
90
+ diffpal review ado --base "$BASE_SHA" --head "$HEAD_SHA" --feedback balanced --gate
61
91
  ```
62
92
 
93
+ ## Documentation
94
+
95
+ - [Quickstart](docs/quickstart.md)
96
+ - [CI setup guide](docs/ci-examples.md)
97
+ - [Config reference](docs/config-reference.md)
98
+ - [Findings schema](docs/findings-schema.md)
99
+ - [GitLab adapter reference](docs/platform-gitlab.md)
100
+ - [Azure adapter reference](docs/platform-azure.md)
101
+ - [Release process](docs/release.md)
102
+
63
103
  ## Development
64
104
 
105
+ Source development in this repository uses the Go toolchain directly:
106
+
65
107
  ```bash
66
108
  go mod download
67
- go mod verify
68
109
  go test ./...
69
- go tool golangci-lint run ./...
70
110
  go run ./cmd/diffpal --help
71
111
  ```
72
112
 
73
- The npm package is the user-facing CLI distribution. Source development in this repository uses the Go toolchain directly.
74
-
75
- Maintainers track project work in Beads (`bd`). External contributors do not need Beads to open issues or pull requests.
113
+ Maintainers track project work in Beads (`bd`). External contributors do not
114
+ need Beads to open issues or pull requests.
package/bin/diffpal.exe CHANGED
Binary file
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "os": [
17
17
  "win32"
18
18
  ],
19
- "version": "0.1.1"
19
+ "version": "0.1.2"
20
20
  }