@chimix/agentscan 0.1.0 → 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 +28 -17
- package/dist/cli.js +13125 -0
- package/package.json +7 -5
- package/src/analyze.ts +0 -82
- package/src/checks/budgets.ts +0 -189
- package/src/checks/index.ts +0 -738
- package/src/checks/make.ts +0 -37
- package/src/cli.ts +0 -230
- package/src/commands/check.ts +0 -64
- package/src/commands/explain.ts +0 -64
- package/src/commands/init.ts +0 -42
- package/src/commands/rules.ts +0 -36
- package/src/config/load.ts +0 -26
- package/src/config/schema.ts +0 -63
- package/src/discover/index.ts +0 -888
- package/src/facts/extract.ts +0 -273
- package/src/facts/semver.ts +0 -41
- package/src/facts/types.ts +0 -113
- package/src/report/clipboard.ts +0 -90
- package/src/report/exit-code.ts +0 -36
- package/src/report/json.ts +0 -36
- package/src/report/prompt.ts +0 -102
- package/src/report/safe.ts +0 -0
- package/src/report/score.ts +0 -47
- package/src/report/sort.ts +0 -26
- package/src/report/text.ts +0 -142
- package/src/version.ts +0 -1
package/README.md
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
<img src="https://img.shields.io/badge/tests-183%20passing-111111?style=flat-square" alt="183 tests">
|
|
10
10
|
<img src="https://img.shields.io/badge/network-none-111111?style=flat-square" alt="No network">
|
|
11
11
|
<img src="https://img.shields.io/badge/writes-none-111111?style=flat-square" alt="Writes nothing">
|
|
12
|
-
<img src="https://img.shields.io/badge/
|
|
12
|
+
<img src="https://img.shields.io/badge/runs%20on-node%20%C2%B7%20bun-111111?style=flat-square" alt="Node or Bun">
|
|
13
|
+
<img src="https://img.shields.io/npm/v/@chimix/agentscan?style=flat-square&color=111111&label=npm" alt="npm version">
|
|
13
14
|
<img src="https://img.shields.io/badge/license-MIT-111111?style=flat-square" alt="MIT license">
|
|
14
15
|
</p>
|
|
15
16
|
|
|
@@ -83,15 +84,23 @@ A check here has to point at a spec line. If it cannot, it does not ship.
|
|
|
83
84
|
|
|
84
85
|
## Try it in 30 seconds
|
|
85
86
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
your machine:
|
|
87
|
+
Run it against any project. It reads that project, writes nothing, and never
|
|
88
|
+
leaves your machine:
|
|
89
89
|
|
|
90
90
|
```bash
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
cd ~/your-project
|
|
92
|
+
npx @chimix/agentscan@latest
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Works on Node 20.11+ or Bun — the published bin is a single bundled file with
|
|
96
|
+
no dependencies to install. `bunx --bun @chimix/agentscan` is the same thing on
|
|
97
|
+
Bun.
|
|
93
98
|
|
|
94
|
-
|
|
99
|
+
The package is scoped `@chimix/agentscan` because npm rejects the bare name as
|
|
100
|
+
too close to an unrelated `agent-scan`. The command you type stays `agentscan`.
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
bun add -d @chimix/agentscan # then: bunx agentscan check
|
|
95
104
|
```
|
|
96
105
|
|
|
97
106
|
Point it at a project that actually has agent config — a `.claude/` directory,
|
|
@@ -100,22 +109,23 @@ correctly find nothing and say so.
|
|
|
100
109
|
|
|
101
110
|
```bash
|
|
102
111
|
# what it could possibly report, before you run it
|
|
103
|
-
|
|
112
|
+
bunx @chimix/agentscan rules
|
|
104
113
|
|
|
105
114
|
# the interesting bits it hides by default
|
|
106
|
-
|
|
115
|
+
bunx @chimix/agentscan check ~/your-project --verbose
|
|
107
116
|
|
|
108
117
|
# why one specific finding fired
|
|
109
|
-
|
|
118
|
+
bunx @chimix/agentscan explain hook.missing-script:hook:PreToolUse:./x.js ~/your-project
|
|
110
119
|
```
|
|
111
120
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
121
|
+
`check` never opens a socket and never writes to the tree it scans. Contributing
|
|
122
|
+
needs **Bun** 1.1+ — the repo runs TypeScript directly and `bun run build`
|
|
123
|
+
bundles it for Node.
|
|
115
124
|
|
|
116
125
|
### In CI
|
|
117
126
|
|
|
118
|
-
The Action runs from its own checkout, so it
|
|
127
|
+
The Action runs from its own checkout, so it uses the ref you pin rather than
|
|
128
|
+
whatever is on npm:
|
|
119
129
|
|
|
120
130
|
```yaml
|
|
121
131
|
- uses: SimaAlexandru99/agentscan@v0
|
|
@@ -123,11 +133,12 @@ The Action runs from its own checkout, so it works before the npm release:
|
|
|
123
133
|
fail-on: error
|
|
124
134
|
```
|
|
125
135
|
|
|
126
|
-
###
|
|
136
|
+
### From a checkout
|
|
127
137
|
|
|
128
138
|
```bash
|
|
129
|
-
|
|
130
|
-
|
|
139
|
+
git clone --depth=1 https://github.com/SimaAlexandru99/agentscan
|
|
140
|
+
cd agentscan && bun install
|
|
141
|
+
bun run src/cli.ts check ~/your-project
|
|
131
142
|
```
|
|
132
143
|
|
|
133
144
|
## Usage
|