@supaku/create-agentfactory-app 0.4.1 → 0.4.3
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 +78 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# @supaku/create-agentfactory-app
|
|
2
|
+
|
|
3
|
+
Scaffold a new [AgentFactory](https://github.com/supaku/agentfactory) project — a Next.js webhook server that processes Linear issues with coding agents.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx @supaku/create-agentfactory-app my-agent
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Then follow the prompts:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
create-agentfactory-app
|
|
15
|
+
|
|
16
|
+
Project name (my-agent):
|
|
17
|
+
Linear team key (e.g., MY): ENG
|
|
18
|
+
Include dashboard UI? [Y/n]: Y
|
|
19
|
+
Include CLI tools (worker, orchestrator)? [Y/n]: Y
|
|
20
|
+
Include Redis for distributed workers? [Y/n]: n
|
|
21
|
+
|
|
22
|
+
Created 28 files
|
|
23
|
+
|
|
24
|
+
Next steps:
|
|
25
|
+
|
|
26
|
+
cd my-agent
|
|
27
|
+
cp .env.example .env.local
|
|
28
|
+
# Fill in LINEAR_ACCESS_TOKEN and other secrets
|
|
29
|
+
pnpm install
|
|
30
|
+
pnpm dev # Start webhook server
|
|
31
|
+
pnpm worker # Start a local worker (in another terminal)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## What's Generated
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
my-agent/
|
|
38
|
+
.env.example # All env vars with comments
|
|
39
|
+
src/lib/config.ts # createAllRoutes() with defaults + customization hints
|
|
40
|
+
src/middleware.ts # Auth, rate limiting, webhook verification
|
|
41
|
+
src/app/webhook/route.ts # Linear webhook endpoint
|
|
42
|
+
src/app/callback/route.ts # OAuth callback
|
|
43
|
+
src/app/api/... # All 21 route re-exports (2-3 lines each)
|
|
44
|
+
src/app/page.tsx # Dashboard UI (optional)
|
|
45
|
+
cli/worker.ts # Local worker wrapper
|
|
46
|
+
cli/orchestrator.ts # Local orchestrator wrapper
|
|
47
|
+
.claude/agents/ # Agent definition templates
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Options
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
npx @supaku/create-agentfactory-app [project-name] [options]
|
|
54
|
+
|
|
55
|
+
Options:
|
|
56
|
+
--team <KEY> Linear team key (default: MY)
|
|
57
|
+
--no-dashboard Skip dashboard UI
|
|
58
|
+
--no-cli Skip CLI tools (worker, orchestrator)
|
|
59
|
+
--no-redis Skip Redis/distributed worker setup
|
|
60
|
+
-h, --help Show help
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## After Setup
|
|
64
|
+
|
|
65
|
+
1. **Configure Linear webhook** — point it to `https://your-app.vercel.app/webhook`
|
|
66
|
+
2. **Set webhook secret** — add `LINEAR_WEBHOOK_SECRET` to `.env.local`
|
|
67
|
+
3. **Customize prompts** — edit `src/lib/config.ts` to change how agents receive instructions
|
|
68
|
+
4. **Add agent definitions** — edit `.claude/agents/developer.md` for your stack
|
|
69
|
+
|
|
70
|
+
## Documentation
|
|
71
|
+
|
|
72
|
+
- [Getting Started](https://github.com/supaku/agentfactory/blob/main/docs/getting-started.md)
|
|
73
|
+
- [Configuration Reference](https://github.com/supaku/agentfactory/blob/main/docs/configuration.md)
|
|
74
|
+
- [Architecture](https://github.com/supaku/agentfactory/blob/main/docs/architecture.md)
|
|
75
|
+
|
|
76
|
+
## License
|
|
77
|
+
|
|
78
|
+
MIT
|
package/package.json
CHANGED