@m8i-51/shoal 0.1.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.
@@ -0,0 +1,80 @@
1
+ export interface ToolAction {
2
+ timestamp: string;
3
+ tool: string;
4
+ input: Record<string, unknown>;
5
+ result: unknown;
6
+ durationMs: number;
7
+ }
8
+
9
+ export interface IssuePosted {
10
+ title: string;
11
+ category: string;
12
+ url: string | null;
13
+ }
14
+
15
+ export interface Finding {
16
+ id: string;
17
+ runId: string;
18
+ agentId: string;
19
+ agentName: string;
20
+ role: string;
21
+ title: string;
22
+ body: string;
23
+ category: string;
24
+ timestamp: string;
25
+ screenshotPath?: string;
26
+ }
27
+
28
+ export interface RegressionCheck {
29
+ issueNumber: number;
30
+ issueTitle: string;
31
+ status: "fixed" | "regressed";
32
+ note: string;
33
+ regressionUrl: string | null;
34
+ }
35
+
36
+ export interface AgentLog {
37
+ agentType: "explorer" | "regression";
38
+ agentId: string;
39
+ agentName: string;
40
+ role: string;
41
+ startedAt: string;
42
+ completedAt: string | null;
43
+ status: "completed" | "error" | "iteration_limit";
44
+ iterations: number;
45
+ actions: ToolAction[];
46
+ issuesPosted: IssuePosted[];
47
+ regressionChecks: RegressionCheck[];
48
+ error: string | null;
49
+ }
50
+
51
+ export interface RunLog {
52
+ runId: string;
53
+ startedAt: string;
54
+ completedAt: string | null;
55
+ repo: string;
56
+ agents: AgentLog[];
57
+ summary: {
58
+ totalAgents: number;
59
+ completed: number;
60
+ errors: number;
61
+ iterationLimitReached: number;
62
+ totalActions: number;
63
+ totalIssuesPosted: number;
64
+ regressionChecked: number;
65
+ regressionFailed: number;
66
+ rateLimitRetries: number;
67
+ cost: {
68
+ inputTokens: number;
69
+ outputTokens: number;
70
+ estimatedUSD: number | null;
71
+ };
72
+ };
73
+ }
74
+
75
+ export interface ClosedIssue {
76
+ number: number;
77
+ title: string;
78
+ body: string;
79
+ labels: string[];
80
+ }
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@m8i-51/shoal",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "description": "Multi-agent web exploration framework — finds bugs, UX issues, and missing features by running AI agents against your app",
6
+ "bin": {
7
+ "shoal": "./bin/shoal.js"
8
+ },
9
+ "files": [
10
+ "bin/",
11
+ "framework/",
12
+ "targets/",
13
+ "server/",
14
+ "web/dist/",
15
+ "run.ts",
16
+ "triage-only.ts"
17
+ ],
18
+ "scripts": {
19
+ "prepublishOnly": "npm run build:web",
20
+ "start": "tsx run.ts",
21
+ "triage": "tsx triage-only.ts",
22
+ "serve": "tsx server/index.ts",
23
+ "dev": "concurrently \"npm run dev:server\" \"npm run dev:web\"",
24
+ "dev:server": "tsx watch --no-cache server/index.ts",
25
+ "dev:web": "vite web",
26
+ "build:web": "vite build web",
27
+ "auth:codex": "tsx scripts/auth-codex.ts",
28
+ "test": "vitest run",
29
+ "test:watch": "vitest"
30
+ },
31
+ "dependencies": {
32
+ "@anthropic-ai/sdk": "^0.81.0",
33
+ "dotenv": "^17.3.1",
34
+ "express": "^5.2.1",
35
+ "openai": "^6.33.0",
36
+ "playwright": "^1.59.1",
37
+ "tsx": "^4.21.0"
38
+ },
39
+ "devDependencies": {
40
+ "@types/express": "^5.0.6",
41
+ "@types/node": "^20",
42
+ "@types/react": "^19.2.14",
43
+ "@types/react-dom": "^19.2.3",
44
+ "@vitejs/plugin-react": "^4.7.0",
45
+ "concurrently": "^9.2.1",
46
+ "i18next": "^26.0.6",
47
+ "react": "^19.2.5",
48
+ "react-dom": "^19.2.5",
49
+ "react-i18next": "^17.0.4",
50
+ "react-router-dom": "^7.14.1",
51
+ "typescript": "^5",
52
+ "vite": "^6.4.2",
53
+ "vitest": "^4.1.5"
54
+ }
55
+ }