agent-regression-lab 0.3.0 → 0.5.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 +25 -4
- package/bin/agentlab.js +2 -0
- package/dist/config.js +13 -9
- package/dist/index.js +14 -0
- package/dist/init.js +88 -0
- package/dist/tools.js +18 -2
- package/dist/ui/App.js +49 -7
- package/dist/ui-assets/client.css +1108 -116
- package/dist/ui-assets/client.js +863 -426
- package/docs/coding-agents.md +74 -0
- package/docs/superpowers/plans/2026-04-13-phase-2-lite-phase-3-plan.md +160 -0
- package/docs/superpowers/plans/2026-04-13-phase-one-npm-tools-plan.md +502 -0
- package/docs/superpowers/plans/2026-04-16-regression-atlas-ui-redesign.md +1010 -0
- package/docs/superpowers/specs/2026-04-13-phase-2-lite-phase-3-design.md +164 -0
- package/docs/superpowers/specs/2026-04-16-regression-atlas-ui-redesign-design.md +417 -0
- package/docs/tools.md +34 -3
- package/docs/troubleshooting.md +55 -0
- package/examples/coding-tools/README.md +21 -0
- package/examples/coding-tools/index.js +11 -0
- package/examples/coding-tools/package.json +8 -0
- package/examples/support-tools/README.md +21 -0
- package/examples/support-tools/index.js +8 -0
- package/examples/support-tools/package.json +8 -0
- package/package.json +6 -4
package/docs/troubleshooting.md
CHANGED
|
@@ -138,14 +138,69 @@ Typical reasons:
|
|
|
138
138
|
- `agentlab.config.yaml` is missing
|
|
139
139
|
- the configured `name` does not match the CLI `--agent` value
|
|
140
140
|
- `modulePath` points outside the repo
|
|
141
|
+
- both `modulePath` and `package` were provided for the same tool
|
|
142
|
+
- the configured npm package is not installed
|
|
141
143
|
- the configured export or command does not exist
|
|
142
144
|
|
|
143
145
|
Working references in this repo:
|
|
144
146
|
|
|
145
147
|
- tool config: `agentlab.config.yaml`
|
|
146
148
|
- custom tool: `user_tools/findDuplicateCharge.ts`
|
|
149
|
+
- package-style tools: `examples/support-tools`, `examples/coding-tools`
|
|
147
150
|
- external agents: `custom_agents/node_agent.mjs`, `custom_agents/python_agent.py`
|
|
148
151
|
|
|
152
|
+
### `Tool '<name>' must define exactly one of 'modulePath' or 'package'`
|
|
153
|
+
|
|
154
|
+
Your tool registration is ambiguous or incomplete.
|
|
155
|
+
|
|
156
|
+
Valid:
|
|
157
|
+
|
|
158
|
+
```yaml
|
|
159
|
+
tools:
|
|
160
|
+
- name: support.find_duplicate_charge
|
|
161
|
+
modulePath: ./user_tools/findDuplicateCharge.ts
|
|
162
|
+
exportName: findDuplicateCharge
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Also valid:
|
|
166
|
+
|
|
167
|
+
```yaml
|
|
168
|
+
tools:
|
|
169
|
+
- name: support.find_duplicate_charge
|
|
170
|
+
package: "@agentlab/example-support-tools"
|
|
171
|
+
exportName: findDuplicateCharge
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Invalid:
|
|
175
|
+
|
|
176
|
+
- setting both `modulePath` and `package`
|
|
177
|
+
- setting neither of them
|
|
178
|
+
|
|
179
|
+
### `Tool '<name>' failed to load package '<pkg>'`
|
|
180
|
+
|
|
181
|
+
The package-backed tool could not be resolved from the current project.
|
|
182
|
+
|
|
183
|
+
Check:
|
|
184
|
+
|
|
185
|
+
- the package is installed in the current project
|
|
186
|
+
- the package name is correct
|
|
187
|
+
- the package exports the named function you configured
|
|
188
|
+
|
|
189
|
+
Typical fix:
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
npm install @agentlab/example-support-tools
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
### `Tool '<name>' export '<export>' is not a function`
|
|
196
|
+
|
|
197
|
+
The module loaded successfully, but the named export does not exist or is not callable.
|
|
198
|
+
|
|
199
|
+
Check:
|
|
200
|
+
|
|
201
|
+
- `exportName` matches the actual exported function name
|
|
202
|
+
- the package or local module uses ESM exports as expected
|
|
203
|
+
|
|
149
204
|
---
|
|
150
205
|
|
|
151
206
|
## HTTP agent errors
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Example Coding Tools
|
|
2
|
+
|
|
3
|
+
Minimal package-style coding-tool example for Agent Regression Lab.
|
|
4
|
+
|
|
5
|
+
Register it in `agentlab.config.yaml` like this:
|
|
6
|
+
|
|
7
|
+
```yaml
|
|
8
|
+
tools:
|
|
9
|
+
- name: coding.read_repo_hint
|
|
10
|
+
package: "@agentlab/example-coding-tools"
|
|
11
|
+
exportName: readRepoHint
|
|
12
|
+
description: Return a small repo hint for the target path.
|
|
13
|
+
inputSchema:
|
|
14
|
+
type: object
|
|
15
|
+
additionalProperties: false
|
|
16
|
+
properties:
|
|
17
|
+
path:
|
|
18
|
+
type: string
|
|
19
|
+
required:
|
|
20
|
+
- path
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Example Support Tools
|
|
2
|
+
|
|
3
|
+
Minimal package-style tool example for Agent Regression Lab.
|
|
4
|
+
|
|
5
|
+
Register it in `agentlab.config.yaml` like this:
|
|
6
|
+
|
|
7
|
+
```yaml
|
|
8
|
+
tools:
|
|
9
|
+
- name: support.find_duplicate_charge
|
|
10
|
+
package: "@agentlab/example-support-tools"
|
|
11
|
+
exportName: findDuplicateCharge
|
|
12
|
+
description: Find the duplicated charge order id for a given customer.
|
|
13
|
+
inputSchema:
|
|
14
|
+
type: object
|
|
15
|
+
additionalProperties: false
|
|
16
|
+
properties:
|
|
17
|
+
customer_id:
|
|
18
|
+
type: string
|
|
19
|
+
required:
|
|
20
|
+
- customer_id
|
|
21
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-regression-lab",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Local-first scenario-based evaluation harness for AI agents.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,16 +21,18 @@
|
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
23
|
"bin": {
|
|
24
|
-
"agentlab": "
|
|
24
|
+
"agentlab": "bin/agentlab.js"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
|
+
"bin",
|
|
27
28
|
"dist",
|
|
28
29
|
"dist/ui-assets",
|
|
29
30
|
"README.md",
|
|
30
|
-
"docs"
|
|
31
|
+
"docs",
|
|
32
|
+
"examples"
|
|
31
33
|
],
|
|
32
34
|
"engines": {
|
|
33
|
-
"node": ">=
|
|
35
|
+
"node": ">=18"
|
|
34
36
|
},
|
|
35
37
|
"scripts": {
|
|
36
38
|
"build": "tsc -p tsconfig.json && npm run build:ui",
|