Commit 759268b
feat: rewrite as thin wrapper around supermodel CLI
Replaces the direct API client (TypeScript SDK) with the Supermodel CLI
binary. The action now installs the CLI on the runner and delegates all
analysis to `supermodel dead-code -o json`, then handles GitHub-specific
concerns (PR diff scoping, PR comment, action outputs, fail-on-dead-code).
Feature parity maintained:
- comment-on-pr, fail-on-dead-code, ignore-patterns, timeout-seconds unchanged
- PR diff scoping (scope findings to changed files) unchanged
New inputs:
- min-confidence: pass --min-confidence to CLI (high/medium/low)
- cli-version: pin the CLI version to install (default: latest)
Removed:
- @supermodeltools/sdk dependency (analysis now done by CLI)
- minimatch dependency (glob filtering now done by CLI --ignore flag)
- filterByIgnorePatterns (logic moved to CLI)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 7d37e62 commit 759268b
12 files changed
Lines changed: 12437 additions & 18410 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
9 | 27 | | |
10 | 28 | | |
11 | 29 | | |
| |||
14 | 32 | | |
15 | 33 | | |
16 | 34 | | |
17 | | - | |
| 35 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments