@m8i-51/shoal 0.1.0 → 0.1.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/LICENSE +21 -0
- package/README.md +79 -10
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 m8i-51
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
# shoal
|
|
4
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/@m8i-51/shoal)
|
|
5
6
|
[](https://www.typescriptlang.org/)
|
|
6
7
|
[](https://playwright.dev/)
|
|
7
8
|
[](https://www.anthropic.com/)
|
|
8
9
|
|
|
9
10
|
Point it at any web app. Agents explore it and file GitHub Issues.
|
|
10
11
|
|
|
11
|
-
shoal drops a swarm of agents onto a web app. Each agent has a distinct persona and evaluation lens — accessibility, security, business logic, data integrity, new user experience. They explore independently via API and real browser, then a triage agent deduplicates findings and files GitHub Issues.
|
|
12
|
+
shoal drops a swarm of agents onto a web app. Each agent has a distinct persona and evaluation lens — accessibility, security, business logic, data integrity, new user experience, and goal alignment. They explore independently via API and real browser, then a triage agent deduplicates findings and files GitHub Issues.
|
|
13
|
+
|
|
14
|
+
A **web dashboard** lets you start runs, monitor live progress, review findings by category, and track estimated LLM cost per run.
|
|
12
15
|
|
|
13
16
|
No test scripts. No test data. No prior knowledge of the app required.
|
|
14
17
|
|
|
@@ -19,7 +22,7 @@ No test scripts. No test data. No prior knowledge of the app required.
|
|
|
19
22
|
```
|
|
20
23
|
Target App (any URL)
|
|
21
24
|
│
|
|
22
|
-
▼ autonomously learns what the app does
|
|
25
|
+
▼ autonomously learns what the app does + its goals
|
|
23
26
|
Product Discovery
|
|
24
27
|
│
|
|
25
28
|
▼ generates a user persona team for that app
|
|
@@ -42,6 +45,31 @@ Target App (any URL)
|
|
|
42
45
|
|
|
43
46
|
## Quick Start
|
|
44
47
|
|
|
48
|
+
**Install globally:**
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npm install -g @m8i-51/shoal
|
|
52
|
+
npx playwright install chromium
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Create a `.env` in your working directory:
|
|
56
|
+
|
|
57
|
+
```env
|
|
58
|
+
ANTHROPIC_API_KEY=sk-ant-...
|
|
59
|
+
BASE_URL=http://localhost:3000
|
|
60
|
+
# GITHUB_TOKEN=... # optional: enables Issue creation
|
|
61
|
+
# GITHUB_REPO=owner/repo
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Then run:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
shoal # run agents against BASE_URL
|
|
68
|
+
shoal serve # open web dashboard at http://localhost:4000
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Or clone and develop locally:**
|
|
72
|
+
|
|
45
73
|
```bash
|
|
46
74
|
git clone https://github.com/m8i-51/shoal
|
|
47
75
|
cd shoal
|
|
@@ -52,6 +80,23 @@ npm start
|
|
|
52
80
|
|
|
53
81
|
---
|
|
54
82
|
|
|
83
|
+
## Web dashboard
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
shoal serve # global install
|
|
87
|
+
# or
|
|
88
|
+
npm run serve # from cloned repo
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Opens at `http://localhost:4000`. From there you can:
|
|
92
|
+
|
|
93
|
+
- **Start a run** — configure agent count, target URL, and custom instructions
|
|
94
|
+
- **Monitor live progress** — watch agents explore and file findings in real time
|
|
95
|
+
- **Review past runs** — findings by category, agent count, duration, and estimated cost
|
|
96
|
+
- **Edit app goals** — guide the goal-gap detector by defining what the app should achieve
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
55
100
|
## Configuration
|
|
56
101
|
|
|
57
102
|
| Variable | Default | Description |
|
|
@@ -70,20 +115,22 @@ npm start
|
|
|
70
115
|
|
|
71
116
|
shoal loads `shoal.config.ts` from the **current working directory** at startup. Two common setups:
|
|
72
117
|
|
|
73
|
-
**Option A — config
|
|
118
|
+
**Option A — config in your project directory** (recommended)
|
|
74
119
|
|
|
75
120
|
```bash
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
121
|
+
# Copy the example from the repo (or create from scratch)
|
|
122
|
+
curl -O https://raw.githubusercontent.com/m8i-51/shoal/main/shoal.config.example.ts
|
|
123
|
+
mv shoal.config.example.ts shoal.config.ts
|
|
124
|
+
# Edit shoal.config.ts, then:
|
|
125
|
+
shoal
|
|
79
126
|
```
|
|
80
127
|
|
|
81
|
-
**Option B — config
|
|
128
|
+
**Option B — config inside the cloned repo** (simplest for development)
|
|
82
129
|
|
|
83
130
|
```bash
|
|
84
|
-
cp
|
|
85
|
-
# edit shoal.config.ts, then
|
|
86
|
-
|
|
131
|
+
cp shoal.config.example.ts shoal.config.ts
|
|
132
|
+
# edit shoal.config.ts, then:
|
|
133
|
+
npm start
|
|
87
134
|
```
|
|
88
135
|
|
|
89
136
|
`shoal.config.ts` must export a `target` object with two fields:
|
|
@@ -106,6 +153,21 @@ Alternatively, copy `targets/example.ts`, register it in `targets/index.ts`, and
|
|
|
106
153
|
|
|
107
154
|
---
|
|
108
155
|
|
|
156
|
+
## Account Manager
|
|
157
|
+
|
|
158
|
+
For apps that require login, shoal includes an Account Manager agent that autonomously discovers and tests authentication. It finds login pages, tests credentials from `test-accounts/` (gitignored), and injects session state into explorer agents so they can reach authenticated routes.
|
|
159
|
+
|
|
160
|
+
Create `test-accounts/accounts.json` with your test credentials:
|
|
161
|
+
|
|
162
|
+
```json
|
|
163
|
+
[
|
|
164
|
+
{ "email": "test@example.com", "password": "testpassword", "role": "user" },
|
|
165
|
+
{ "email": "admin@example.com", "password": "adminpassword", "role": "admin" }
|
|
166
|
+
]
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
109
171
|
## LLM providers
|
|
110
172
|
|
|
111
173
|
shoal defaults to Anthropic Claude. To use a different provider, set these variables in `.env`:
|
|
@@ -114,8 +176,15 @@ shoal defaults to Anthropic Claude. To use a different provider, set these varia
|
|
|
114
176
|
|---|---|
|
|
115
177
|
| Anthropic (default) | `ANTHROPIC_API_KEY` |
|
|
116
178
|
| OpenAI | `LLM_PROVIDER=openai`, `LLM_API_KEY`, `LLM_MODEL` |
|
|
179
|
+
| OpenRouter | `LLM_PROVIDER=openrouter`, `LLM_API_KEY`, `LLM_MODEL` |
|
|
117
180
|
| Codex (ChatGPT subscription) | run `npm run auth:codex` once, then `LLM_PROVIDER=codex` |
|
|
118
181
|
| Ollama | `LLM_BASE_URL=http://localhost:11434/v1`, `LLM_MODEL` |
|
|
119
182
|
| LM Studio | `LLM_BASE_URL=http://localhost:1234/v1`, `LLM_MODEL` |
|
|
120
183
|
|
|
121
184
|
See `.env.example` for full examples.
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## License
|
|
189
|
+
|
|
190
|
+
[MIT](LICENSE)
|
package/package.json
CHANGED