multi-agents-cli 1.1.7 → 1.1.8
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 +2 -18
- package/core/workflow/agent.js +6 -285
- package/core/workflow/complete.js +5 -141
- package/core/workflow/reset.js +21 -28
- package/core/workflow/run.js +0 -3
- package/init.js +2 -2
- package/lib/questions-flow.js +6 -14
- package/lib/steps.js +1 -13
- package/lib/ui.js +1 -9
- package/package.json +1 -1
- package/core/templates/.agents/backend/API.md +0 -270
- package/core/templates/.agents/backend/AUTH.md +0 -257
- package/core/templates/.agents/backend/DB.md +0 -268
- package/core/templates/.agents/backend/EVENTS.md +0 -264
- package/core/templates/.agents/backend/INIT.md +0 -250
- package/core/templates/.agents/backend/JOBS.md +0 -267
- package/core/templates/.agents/backend/LOGIC.md +0 -302
- package/core/templates/.agents/backend/TESTING.md +0 -277
- package/core/templates/.agents/client/ACCESSIBILITY.md +0 -277
- package/core/templates/.agents/client/FORMS.md +0 -245
- package/core/templates/.agents/client/LOGIC.md +0 -288
- package/core/templates/.agents/client/ROUTING.md +0 -246
- package/core/templates/.agents/client/TESTING.md +0 -252
- package/core/templates/.agents/client/UI.md +0 -237
- package/core/templates/.agents/shared/CLOUD.md +0 -229
- package/core/templates/.agents/shared/CLOUD_TEARDOWN.md +0 -158
- package/core/templates/.agents/shared/SECURITY.md +0 -297
- package/core/templates/.frameworks/backend/django.md +0 -55
- package/core/templates/.frameworks/backend/express.md +0 -74
- package/core/templates/.frameworks/backend/fastapi.md +0 -107
- package/core/templates/.frameworks/backend/fastify.md +0 -74
- package/core/templates/.frameworks/backend/laravel.md +0 -79
- package/core/templates/.frameworks/backend/nestjs.md +0 -75
- package/core/templates/.frameworks/backend/rails.md +0 -84
- package/core/templates/.frameworks/client/angular.md +0 -80
- package/core/templates/.frameworks/client/nextjs.md +0 -47
- package/core/templates/.frameworks/client/nuxt.md +0 -45
- package/core/templates/.frameworks/client/remix.md +0 -44
- package/core/templates/.frameworks/client/sveltekit.md +0 -44
- package/core/templates/.frameworks/client/vite-react.md +0 -45
- package/core/templates/CLAUDE.md +0 -562
- package/core/templates/CONTRACTS.md +0 -16
- package/core/templates/backend/CLAUDE.md +0 -207
- package/core/templates/client/CLAUDE.md +0 -213
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
# NestJS — Scaffold Instructions
|
|
2
|
-
|
|
3
|
-
## Critical: Scaffold Location
|
|
4
|
-
|
|
5
|
-
You are working inside a git worktree. Your root is the **repo root**, not `backend/`.
|
|
6
|
-
All NestJS files MUST live under `backend/`. Do NOT scaffold at the repo root.
|
|
7
|
-
|
|
8
|
-
NestJS's `nest new` creates a subfolder by default. To scaffold in place:
|
|
9
|
-
|
|
10
|
-
```bash
|
|
11
|
-
# From the REPO ROOT — scaffold directly into backend/
|
|
12
|
-
nest new . --directory backend --skip-git --package-manager npm
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
OR scaffold with period to use current directory:
|
|
16
|
-
```bash
|
|
17
|
-
cd backend
|
|
18
|
-
nest new . --skip-git --package-manager npm
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Expected Structure After Scaffold
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
backend/
|
|
25
|
-
src/
|
|
26
|
-
app.controller.ts
|
|
27
|
-
app.controller.spec.ts
|
|
28
|
-
app.module.ts
|
|
29
|
-
app.service.ts
|
|
30
|
-
main.ts
|
|
31
|
-
test/
|
|
32
|
-
nest-cli.json
|
|
33
|
-
package.json
|
|
34
|
-
tsconfig.json
|
|
35
|
-
tsconfig.build.json
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Verify Location
|
|
39
|
-
|
|
40
|
-
After scaffolding, confirm:
|
|
41
|
-
```bash
|
|
42
|
-
ls backend/src/main.ts # should exist
|
|
43
|
-
ls backend/nest-cli.json # should exist
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
If files landed at `backend/my-app/` instead of `backend/` — move them up:
|
|
47
|
-
```bash
|
|
48
|
-
mv backend/my-app/* backend/
|
|
49
|
-
mv backend/my-app/.* backend/ 2>/dev/null || true
|
|
50
|
-
rmdir backend/my-app
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## Post-Scaffold
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
cd backend
|
|
57
|
-
npm install
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
## Update .scaffold/.paths.json
|
|
61
|
-
|
|
62
|
-
After scaffolding, update `current` paths and set `status: verified`:
|
|
63
|
-
```json
|
|
64
|
-
{
|
|
65
|
-
"backend": {
|
|
66
|
-
"dtoDir": {
|
|
67
|
-
"expected": "backend/src/dto",
|
|
68
|
-
"current": "backend/src/dto",
|
|
69
|
-
"status": "verified"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
Create `backend/src/dto/` if it doesn't exist.
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# Ruby on Rails — Scaffold Instructions
|
|
2
|
-
|
|
3
|
-
## Scaffold Location
|
|
4
|
-
|
|
5
|
-
Use the Rails CLI from the project root:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
rails new backend --api --database=postgresql
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
Flags:
|
|
12
|
-
- `--api` strips views, uses API-only middleware stack
|
|
13
|
-
- `--database` set to your chosen DB: postgresql, mysql, sqlite3
|
|
14
|
-
|
|
15
|
-
## Key Directory Structure
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
backend/
|
|
19
|
-
app/
|
|
20
|
-
controllers/
|
|
21
|
-
api/
|
|
22
|
-
v1/
|
|
23
|
-
models/
|
|
24
|
-
serializers/
|
|
25
|
-
services/
|
|
26
|
-
config/
|
|
27
|
-
routes.rb
|
|
28
|
-
db/
|
|
29
|
-
migrate/
|
|
30
|
-
schema.rb
|
|
31
|
-
spec/
|
|
32
|
-
requests/
|
|
33
|
-
models/
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## Gemfile (key dependencies)
|
|
37
|
-
|
|
38
|
-
```ruby
|
|
39
|
-
gem 'rails', '~> 7.2'
|
|
40
|
-
gem 'pg', '~> 1.5'
|
|
41
|
-
gem 'puma', '>= 5.0'
|
|
42
|
-
gem 'rack-cors'
|
|
43
|
-
gem 'devise'
|
|
44
|
-
gem 'jwt'
|
|
45
|
-
|
|
46
|
-
group :development, :test do
|
|
47
|
-
gem 'rspec-rails'
|
|
48
|
-
gem 'factory_bot_rails'
|
|
49
|
-
end
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## config/routes.rb Template
|
|
53
|
-
|
|
54
|
-
```ruby
|
|
55
|
-
Rails.application.routes.draw do
|
|
56
|
-
get '/health', to: proc { [200, {}, [{ status: 'ok' }.to_json]] }
|
|
57
|
-
|
|
58
|
-
namespace :api do
|
|
59
|
-
namespace :v1 do
|
|
60
|
-
# define resources here
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## Post-Scaffold
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
cd backend
|
|
70
|
-
bundle install
|
|
71
|
-
rails db:create
|
|
72
|
-
rails db:migrate
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## Update .scaffold/.paths.json
|
|
76
|
-
|
|
77
|
-
```json
|
|
78
|
-
{
|
|
79
|
-
"backend": {
|
|
80
|
-
"modelsDir": { "expected": "backend/app/models", "current": "backend/app/models", "status": "verified" },
|
|
81
|
-
"schemasDir": { "expected": "backend/app/serializers", "current": "backend/app/serializers", "status": "verified" }
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
```
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
# Angular — Scaffold Instructions
|
|
2
|
-
|
|
3
|
-
## Critical: Scaffold Location
|
|
4
|
-
|
|
5
|
-
You are working inside a git worktree. Your root is the **repo root**, not `client/`.
|
|
6
|
-
All Angular files MUST live under `client/`. Do NOT scaffold at the repo root.
|
|
7
|
-
|
|
8
|
-
Angular's `ng new` creates a subfolder by default. To scaffold correctly:
|
|
9
|
-
|
|
10
|
-
```bash
|
|
11
|
-
# From the REPO ROOT — create a temp app, then move files into client/
|
|
12
|
-
ng new temp-app --directory client --skip-git --routing --style=scss
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
OR using the `--directory` flag directly:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
ng new my-app --directory client --skip-git --routing --style=scss
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
This places all Angular files inside `client/` at the correct level.
|
|
22
|
-
|
|
23
|
-
## Expected Structure After Scaffold
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
client/
|
|
27
|
-
src/
|
|
28
|
-
app/
|
|
29
|
-
app.component.ts
|
|
30
|
-
app.component.html
|
|
31
|
-
app.config.ts
|
|
32
|
-
app.routes.ts
|
|
33
|
-
assets/
|
|
34
|
-
index.html
|
|
35
|
-
main.ts
|
|
36
|
-
styles.scss
|
|
37
|
-
angular.json
|
|
38
|
-
package.json
|
|
39
|
-
tsconfig.json
|
|
40
|
-
tsconfig.app.json
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
## Verify Location
|
|
44
|
-
|
|
45
|
-
After scaffolding, confirm:
|
|
46
|
-
```bash
|
|
47
|
-
ls client/src/app/ # should show app.component.ts
|
|
48
|
-
ls client/angular.json # should exist
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
If files landed at `client/my-app/` instead of `client/` — move them up:
|
|
52
|
-
```bash
|
|
53
|
-
mv client/my-app/* client/
|
|
54
|
-
mv client/my-app/.* client/ 2>/dev/null || true
|
|
55
|
-
rmdir client/my-app
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## Post-Scaffold
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
cd client
|
|
62
|
-
npm install
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
## Update .scaffold/.paths.json
|
|
66
|
-
|
|
67
|
-
After scaffolding, update `current` paths and set `status: verified`:
|
|
68
|
-
```json
|
|
69
|
-
{
|
|
70
|
-
"client": {
|
|
71
|
-
"typesDir": {
|
|
72
|
-
"expected": "client/src/app/core/types",
|
|
73
|
-
"current": "client/src/app/core/types",
|
|
74
|
-
"status": "verified"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
Create `client/src/app/core/types/` if it doesn't exist — this is where shared types live.
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# Next.js — Scaffold Instructions
|
|
2
|
-
|
|
3
|
-
## Scaffold Location
|
|
4
|
-
|
|
5
|
-
Scaffold directly into `client/` from the repo root:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npx create-next-app@latest client --typescript --tailwind --eslint --app --src-dir --import-alias "@/*" --no-git
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Expected Structure After Scaffold
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
client/
|
|
15
|
-
src/
|
|
16
|
-
app/
|
|
17
|
-
layout.tsx
|
|
18
|
-
page.tsx
|
|
19
|
-
globals.css
|
|
20
|
-
lib/
|
|
21
|
-
public/
|
|
22
|
-
next.config.ts
|
|
23
|
-
package.json
|
|
24
|
-
tsconfig.json
|
|
25
|
-
tailwind.config.ts
|
|
26
|
-
postcss.config.mjs
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Post-Scaffold
|
|
30
|
-
|
|
31
|
-
Dependencies are installed automatically by create-next-app.
|
|
32
|
-
|
|
33
|
-
## Update .scaffold/.paths.json
|
|
34
|
-
|
|
35
|
-
```json
|
|
36
|
-
{
|
|
37
|
-
"client": {
|
|
38
|
-
"typesDir": {
|
|
39
|
-
"expected": "client/src/types",
|
|
40
|
-
"current": "client/src/types",
|
|
41
|
-
"status": "verified"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
Create `client/src/types/` — this is where shared types live.
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# Nuxt — Scaffold Instructions
|
|
2
|
-
|
|
3
|
-
## Scaffold Location
|
|
4
|
-
|
|
5
|
-
Scaffold directly into `client/` from the repo root:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npx nuxi@latest init client --no-install --no-gitInit
|
|
9
|
-
cd client && npm install
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
## Expected Structure After Scaffold
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
client/
|
|
16
|
-
assets/
|
|
17
|
-
components/
|
|
18
|
-
composables/
|
|
19
|
-
layouts/
|
|
20
|
-
pages/
|
|
21
|
-
index.vue
|
|
22
|
-
plugins/
|
|
23
|
-
public/
|
|
24
|
-
server/
|
|
25
|
-
app.vue
|
|
26
|
-
nuxt.config.ts
|
|
27
|
-
package.json
|
|
28
|
-
tsconfig.json
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Update .scaffold/.paths.json
|
|
32
|
-
|
|
33
|
-
```json
|
|
34
|
-
{
|
|
35
|
-
"client": {
|
|
36
|
-
"typesDir": {
|
|
37
|
-
"expected": "client/types",
|
|
38
|
-
"current": "client/types",
|
|
39
|
-
"status": "verified"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Create `client/types/` — this is where shared types live.
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# Remix — Scaffold Instructions
|
|
2
|
-
|
|
3
|
-
## Scaffold Location
|
|
4
|
-
|
|
5
|
-
Scaffold directly into `client/` from the repo root:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npx create-remix@latest client --no-install --no-git-init --template remix
|
|
9
|
-
cd client && npm install
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
## Expected Structure After Scaffold
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
client/
|
|
16
|
-
app/
|
|
17
|
-
routes/
|
|
18
|
-
_index.tsx
|
|
19
|
-
root.tsx
|
|
20
|
-
entry.client.tsx
|
|
21
|
-
entry.server.tsx
|
|
22
|
-
tailwind.css
|
|
23
|
-
public/
|
|
24
|
-
package.json
|
|
25
|
-
tsconfig.json
|
|
26
|
-
vite.config.ts
|
|
27
|
-
remix.config.js
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Update .scaffold/.paths.json
|
|
31
|
-
|
|
32
|
-
```json
|
|
33
|
-
{
|
|
34
|
-
"client": {
|
|
35
|
-
"typesDir": {
|
|
36
|
-
"expected": "client/app/types",
|
|
37
|
-
"current": "client/app/types",
|
|
38
|
-
"status": "verified"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Create `client/app/types/` — this is where shared types live.
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# SvelteKit — Scaffold Instructions
|
|
2
|
-
|
|
3
|
-
## Scaffold Location
|
|
4
|
-
|
|
5
|
-
Scaffold directly into `client/` from the repo root:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npx sv create client --template minimal --types ts --no-add-ons --no-install
|
|
9
|
-
cd client && npm install
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
## Expected Structure After Scaffold
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
client/
|
|
16
|
-
src/
|
|
17
|
-
lib/
|
|
18
|
-
index.ts
|
|
19
|
-
routes/
|
|
20
|
-
+page.svelte
|
|
21
|
-
app.html
|
|
22
|
-
app.d.ts
|
|
23
|
-
static/
|
|
24
|
-
svelte.config.js
|
|
25
|
-
vite.config.ts
|
|
26
|
-
package.json
|
|
27
|
-
tsconfig.json
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Update .scaffold/.paths.json
|
|
31
|
-
|
|
32
|
-
```json
|
|
33
|
-
{
|
|
34
|
-
"client": {
|
|
35
|
-
"typesDir": {
|
|
36
|
-
"expected": "client/src/lib/types",
|
|
37
|
-
"current": "client/src/lib/types",
|
|
38
|
-
"status": "verified"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Create `client/src/lib/types/` — this is where shared types live.
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# Vite + React — Scaffold Instructions
|
|
2
|
-
|
|
3
|
-
## Scaffold Location
|
|
4
|
-
|
|
5
|
-
Scaffold directly into `client/` from the repo root:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm create vite@latest client -- --template react-ts
|
|
9
|
-
cd client && npm install
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
## Expected Structure After Scaffold
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
client/
|
|
16
|
-
src/
|
|
17
|
-
assets/
|
|
18
|
-
App.tsx
|
|
19
|
-
App.css
|
|
20
|
-
main.tsx
|
|
21
|
-
index.css
|
|
22
|
-
vite-env.d.ts
|
|
23
|
-
public/
|
|
24
|
-
index.html
|
|
25
|
-
package.json
|
|
26
|
-
tsconfig.json
|
|
27
|
-
tsconfig.node.json
|
|
28
|
-
vite.config.ts
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Update .scaffold/.paths.json
|
|
32
|
-
|
|
33
|
-
```json
|
|
34
|
-
{
|
|
35
|
-
"client": {
|
|
36
|
-
"typesDir": {
|
|
37
|
-
"expected": "client/src/types",
|
|
38
|
-
"current": "client/src/types",
|
|
39
|
-
"status": "verified"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Create `client/src/types/` — this is where shared types live.
|