@chimix/agentscan 0.1.0 → 0.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.
- package/README.md +27 -17
- package/dist/cli.js +13128 -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,22 @@ 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
|
+
npx @chimix/agentscan@latest check ~/path/to/your-project
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Works on Node 20.11+ or Bun — the published bin is a single bundled file with
|
|
95
|
+
no dependencies to install. `bunx --bun @chimix/agentscan` is the same thing on
|
|
96
|
+
Bun.
|
|
93
97
|
|
|
94
|
-
|
|
98
|
+
The package is scoped `@chimix/agentscan` because npm rejects the bare name as
|
|
99
|
+
too close to an unrelated `agent-scan`. The command you type stays `agentscan`.
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
bun add -d @chimix/agentscan # then: bunx agentscan check
|
|
95
103
|
```
|
|
96
104
|
|
|
97
105
|
Point it at a project that actually has agent config — a `.claude/` directory,
|
|
@@ -100,22 +108,23 @@ correctly find nothing and say so.
|
|
|
100
108
|
|
|
101
109
|
```bash
|
|
102
110
|
# what it could possibly report, before you run it
|
|
103
|
-
|
|
111
|
+
bunx @chimix/agentscan rules
|
|
104
112
|
|
|
105
113
|
# the interesting bits it hides by default
|
|
106
|
-
|
|
114
|
+
bunx @chimix/agentscan check ~/your-project --verbose
|
|
107
115
|
|
|
108
116
|
# why one specific finding fired
|
|
109
|
-
|
|
117
|
+
bunx @chimix/agentscan explain hook.missing-script:hook:PreToolUse:./x.js ~/your-project
|
|
110
118
|
```
|
|
111
119
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
120
|
+
`check` never opens a socket and never writes to the tree it scans. Contributing
|
|
121
|
+
needs **Bun** 1.1+ — the repo runs TypeScript directly and `bun run build`
|
|
122
|
+
bundles it for Node.
|
|
115
123
|
|
|
116
124
|
### In CI
|
|
117
125
|
|
|
118
|
-
The Action runs from its own checkout, so it
|
|
126
|
+
The Action runs from its own checkout, so it uses the ref you pin rather than
|
|
127
|
+
whatever is on npm:
|
|
119
128
|
|
|
120
129
|
```yaml
|
|
121
130
|
- uses: SimaAlexandru99/agentscan@v0
|
|
@@ -123,11 +132,12 @@ The Action runs from its own checkout, so it works before the npm release:
|
|
|
123
132
|
fail-on: error
|
|
124
133
|
```
|
|
125
134
|
|
|
126
|
-
###
|
|
135
|
+
### From a checkout
|
|
127
136
|
|
|
128
137
|
```bash
|
|
129
|
-
|
|
130
|
-
|
|
138
|
+
git clone --depth=1 https://github.com/SimaAlexandru99/agentscan
|
|
139
|
+
cd agentscan && bun install
|
|
140
|
+
bun run src/cli.ts check ~/your-project
|
|
131
141
|
```
|
|
132
142
|
|
|
133
143
|
## Usage
|