@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 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,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
- `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
+ 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
- bun run src/cli.ts check ~/path/to/your-project
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
- bun run src/cli.ts rules
111
+ bunx @chimix/agentscan rules
104
112
 
105
113
  # the interesting bits it hides by default
106
- bun run src/cli.ts check ~/your-project --verbose
114
+ bunx @chimix/agentscan check ~/your-project --verbose
107
115
 
108
116
  # why one specific finding fired
109
- bun run src/cli.ts explain hook.missing-script:hook:PreToolUse:./x.js ~/your-project
117
+ bunx @chimix/agentscan explain hook.missing-script:hook:PreToolUse:./x.js ~/your-project
110
118
  ```
111
119
 
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.
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 works before the npm release:
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
- ### After the npm release
135
+ ### From a checkout
127
136
 
128
137
  ```bash
129
- bun add -d agentscan
130
- bunx agentscan check
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