@aurelienbbn/agentlint 0.1.1 → 0.1.2
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/dist/bin.mjs
CHANGED
|
@@ -1216,14 +1216,14 @@ const check = Command.make("check", {
|
|
|
1216
1216
|
return;
|
|
1217
1217
|
}
|
|
1218
1218
|
if (result.totalFlags === 0) {
|
|
1219
|
-
yield* Console.log(`agentlint v0.1.
|
|
1219
|
+
yield* Console.log(`agentlint v0.1.2 - no rules triggered.`);
|
|
1220
1220
|
return;
|
|
1221
1221
|
}
|
|
1222
1222
|
const cfg = yield* (yield* ConfigLoader).load();
|
|
1223
1223
|
const rulesMeta = HashMap.fromIterable(Object.entries(cfg.rules).map(([name, rule]) => [name, rule.meta]));
|
|
1224
1224
|
const output = yield* formatReport(result.flags, rulesMeta, {
|
|
1225
1225
|
dryRun: config.dryRun,
|
|
1226
|
-
version: "0.1.
|
|
1226
|
+
version: "0.1.2"
|
|
1227
1227
|
});
|
|
1228
1228
|
yield* Console.log(output);
|
|
1229
1229
|
if (result.filteredCount > 0) yield* Console.log(` (${result.filteredCount} reviewed flag(s) hidden — run agentlint review --reset to clear)`);
|
|
@@ -1273,7 +1273,7 @@ const agentlint = Command.make("agentlint").pipe(Command.withDescription("Determ
|
|
|
1273
1273
|
review
|
|
1274
1274
|
]));
|
|
1275
1275
|
const AppLayer = Layer.mergeAll(ConfigLoader.layer, Parser$1.layer, Git.layer, StateStore.layer).pipe(Layer.provideMerge(NodeServices.layer), Layer.provideMerge(Env.layer));
|
|
1276
|
-
const program = Command.run(agentlint, { version: "0.1.
|
|
1276
|
+
const program = Command.run(agentlint, { version: "0.1.2" }).pipe(Effect.provide(AppLayer));
|
|
1277
1277
|
NodeRuntime.runMain(program);
|
|
1278
1278
|
//#endregion
|
|
1279
1279
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurelienbbn/agentlint",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Stateless, deterministic CLI that bridges traditional linters and AI-assisted code review",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -64,6 +64,6 @@
|
|
|
64
64
|
"fmt": "oxfmt --write",
|
|
65
65
|
"fmt:check": "oxfmt --check",
|
|
66
66
|
"changeset": "changeset",
|
|
67
|
-
"check": "pnpm typecheck && pnpm lint && pnpm fmt:check && pnpm test"
|
|
67
|
+
"check": "pnpm typecheck && pnpm lint && pnpm fmt:check && intent validate && pnpm test"
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -7,7 +7,7 @@ description: >
|
|
|
7
7
|
linting, improve their feedback loop, or asks "how do I make sure X."
|
|
8
8
|
type: core
|
|
9
9
|
library: agentlint
|
|
10
|
-
library_version: "0.1.
|
|
10
|
+
library_version: "0.1.1"
|
|
11
11
|
sources:
|
|
12
12
|
- "aurelienbobenrieth/agentlint:README.md"
|
|
13
13
|
- "aurelienbobenrieth/agentlint:CONTRIBUTING.md"
|
|
@@ -125,7 +125,7 @@ handling or propagation."
|
|
|
125
125
|
### Testing
|
|
126
126
|
|
|
127
127
|
```bash
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
pnpm agentlint check --all --rule rule-name
|
|
129
|
+
pnpm agentlint check src/handlers/checkout.ts --rule rule-name
|
|
130
|
+
pnpm agentlint check --all --rule rule-name --dry-run
|
|
131
131
|
```
|
|
@@ -8,7 +8,7 @@ description: >
|
|
|
8
8
|
inline suppression, and output interpretation.
|
|
9
9
|
type: core
|
|
10
10
|
library: agentlint
|
|
11
|
-
library_version: "0.1.
|
|
11
|
+
library_version: "0.1.1"
|
|
12
12
|
sources:
|
|
13
13
|
- "aurelienbobenrieth/agentlint:README.md"
|
|
14
14
|
- "aurelienbobenrieth/agentlint:src/bin.ts"
|
|
@@ -21,8 +21,8 @@ Stateless, deterministic linter whose output is designed for you (an AI coding a
|
|
|
21
21
|
## Setup
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
pnpm add @aurelienbbn/agentlint
|
|
25
|
+
pnpm agentlint init
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
This creates `agentlint.config.ts` with a starter template. Add rules to the `rules` object.
|
|
@@ -33,22 +33,22 @@ This creates `agentlint.config.ts` with a starter template. Add rules to the `ru
|
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
35
|
# Default: scan files changed in current branch
|
|
36
|
-
|
|
36
|
+
pnpm agentlint check
|
|
37
37
|
|
|
38
38
|
# Scan specific files or globs
|
|
39
|
-
|
|
39
|
+
pnpm agentlint check src/utils.ts "src/**/*.tsx"
|
|
40
40
|
|
|
41
41
|
# Scan all files
|
|
42
|
-
|
|
42
|
+
pnpm agentlint check --all
|
|
43
43
|
|
|
44
44
|
# Only run a specific rule
|
|
45
|
-
|
|
45
|
+
pnpm agentlint check --rule no-noise-comments
|
|
46
46
|
|
|
47
47
|
# Dry-run (counts only, no instruction blocks)
|
|
48
|
-
|
|
48
|
+
pnpm agentlint check --dry-run
|
|
49
49
|
|
|
50
50
|
# Diff against a specific branch
|
|
51
|
-
|
|
51
|
+
pnpm agentlint check --base main
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
### Read and act on output
|
|
@@ -70,13 +70,13 @@ Process one rule section at a time:
|
|
|
70
70
|
|
|
71
71
|
```bash
|
|
72
72
|
# Mark specific hashes as reviewed (they disappear from future output)
|
|
73
|
-
|
|
73
|
+
pnpm agentlint review abc1234 def5678
|
|
74
74
|
|
|
75
75
|
# Mark all current flags as reviewed
|
|
76
|
-
|
|
76
|
+
pnpm agentlint review --all
|
|
77
77
|
|
|
78
78
|
# Reset reviewed state (see all flags again)
|
|
79
|
-
|
|
79
|
+
pnpm agentlint review --reset
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
### Suppress inline
|
|
@@ -123,14 +123,14 @@ Wrong:
|
|
|
123
123
|
|
|
124
124
|
```bash
|
|
125
125
|
# Treating non-zero exit as a failure and stopping
|
|
126
|
-
|
|
126
|
+
pnpm agentlint check || echo "agentlint failed"
|
|
127
127
|
```
|
|
128
128
|
|
|
129
129
|
Correct:
|
|
130
130
|
|
|
131
131
|
```bash
|
|
132
132
|
# Exit code 1 means findings exist — read and evaluate the output
|
|
133
|
-
|
|
133
|
+
pnpm agentlint check
|
|
134
134
|
# Then process the stdout, don't treat it as a crash
|
|
135
135
|
```
|
|
136
136
|
|