@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 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/runtime-bun-111111?style=flat-square" alt="Bun">
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
- `agentscan` is **not on npm yet**, so `bunx agentscan` will 404. Clone and run it
87
- against any project — it reads that project, writes nothing, and never leaves
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
- git clone --depth=1 https://github.com/SimaAlexandru99/agentscan
92
- cd agentscan && bun install
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
- bun run src/cli.ts check ~/path/to/your-project
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
- bun run src/cli.ts rules
112
+ bunx @chimix/agentscan rules
104
113
 
105
114
  # the interesting bits it hides by default
106
- bun run src/cli.ts check ~/your-project --verbose
115
+ bunx @chimix/agentscan check ~/your-project --verbose
107
116
 
108
117
  # why one specific finding fired
109
- bun run src/cli.ts explain hook.missing-script:hook:PreToolUse:./x.js ~/your-project
118
+ bunx @chimix/agentscan explain hook.missing-script:hook:PreToolUse:./x.js ~/your-project
110
119
  ```
111
120
 
112
- Requires **Bun** 1.1+. There is no Node build: the CLI uses `import.meta.dir`
113
- and `Bun.which` directly. `check` never opens a socket and never writes to the
114
- tree it scans.
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 works before the npm release:
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
- ### After the npm release
136
+ ### From a checkout
127
137
 
128
138
  ```bash
129
- bun add -d agentscan
130
- bunx agentscan check
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