multi-agents-cli 1.0.51 → 1.0.53

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.
Files changed (44) hide show
  1. package/core/templates/.agents/backend/API.md +259 -0
  2. package/core/templates/.agents/backend/AUTH.md +246 -0
  3. package/core/templates/.agents/backend/DB.md +257 -0
  4. package/core/templates/.agents/backend/EVENTS.md +253 -0
  5. package/core/templates/.agents/backend/INIT.md +239 -0
  6. package/core/templates/.agents/backend/JOBS.md +256 -0
  7. package/core/templates/.agents/backend/LOGIC.md +291 -0
  8. package/core/templates/.agents/backend/TESTING.md +266 -0
  9. package/core/templates/.agents/client/ACCESSIBILITY.md +266 -0
  10. package/core/templates/.agents/client/FORMS.md +234 -0
  11. package/core/templates/.agents/client/LOGIC.md +277 -0
  12. package/core/templates/.agents/client/ROUTING.md +235 -0
  13. package/core/templates/.agents/client/TESTING.md +241 -0
  14. package/core/templates/.agents/client/UI.md +226 -0
  15. package/core/templates/.agents/shared/CLOUD.md +229 -0
  16. package/core/templates/.agents/shared/CLOUD_TEARDOWN.md +158 -0
  17. package/core/templates/.agents/shared/SECURITY.md +286 -0
  18. package/core/templates/.frameworks/backend/django.md +55 -0
  19. package/core/templates/.frameworks/backend/express.md +74 -0
  20. package/core/templates/.frameworks/backend/fastapi.md +107 -0
  21. package/core/templates/.frameworks/backend/fastify.md +74 -0
  22. package/core/templates/.frameworks/backend/nestjs.md +75 -0
  23. package/core/templates/.frameworks/client/angular.md +80 -0
  24. package/core/templates/.frameworks/client/nextjs.md +47 -0
  25. package/core/templates/.frameworks/client/nuxt.md +45 -0
  26. package/core/templates/.frameworks/client/remix.md +44 -0
  27. package/core/templates/.frameworks/client/sveltekit.md +44 -0
  28. package/core/templates/.frameworks/client/vite-react.md +45 -0
  29. package/core/templates/CLAUDE.md +531 -0
  30. package/core/templates/CLOUD_STATE.md +55 -0
  31. package/core/templates/CONTRACTS.md +16 -0
  32. package/core/templates/TASKS_HISTORY.md +6 -0
  33. package/core/templates/backend/CLAUDE.md +207 -0
  34. package/core/templates/client/CLAUDE.md +213 -0
  35. package/core/templates/shared/.gitkeep +0 -0
  36. package/core/templates/shared/wiring.config.json +14 -0
  37. package/core/workflow/agent.js +1404 -0
  38. package/core/workflow/complete.js +354 -0
  39. package/core/workflow/guards.js +643 -0
  40. package/core/workflow/reset.js +246 -0
  41. package/core/workflow/restart.js +243 -0
  42. package/core/workflow/tasks_history.js +120 -0
  43. package/init.js +35 -32
  44. package/package.json +2 -1
@@ -0,0 +1,74 @@
1
+ # Fastify — Scaffold Instructions
2
+
3
+ ## Scaffold Location
4
+
5
+ Fastify has no official scaffold CLI. Create the structure manually inside `backend/`:
6
+
7
+ ```bash
8
+ mkdir -p backend/src/routes
9
+ mkdir -p backend/src/plugins
10
+ mkdir -p backend/src/schemas
11
+ mkdir -p backend/src/services
12
+ mkdir -p backend/src/types
13
+ touch backend/src/app.ts
14
+ touch backend/src/index.ts
15
+ ```
16
+
17
+ ## package.json
18
+
19
+ ```json
20
+ {
21
+ "name": "backend",
22
+ "version": "1.0.0",
23
+ "scripts": {
24
+ "dev": "tsx watch src/index.ts",
25
+ "build": "tsc",
26
+ "start": "node dist/index.js"
27
+ },
28
+ "dependencies": {
29
+ "fastify": "^4.0.0",
30
+ "@fastify/cors": "^8.0.0",
31
+ "dotenv": "^16.0.0"
32
+ },
33
+ "devDependencies": {
34
+ "@types/node": "^20.0.0",
35
+ "typescript": "^5.0.0",
36
+ "tsx": "^4.0.0"
37
+ }
38
+ }
39
+ ```
40
+
41
+ ## app.ts Template
42
+
43
+ ```typescript
44
+ import Fastify from 'fastify';
45
+ import cors from '@fastify/cors';
46
+
47
+ export const app = Fastify({ logger: true });
48
+
49
+ await app.register(cors, {
50
+ origin: process.env.CLIENT_URL || 'http://localhost:3000',
51
+ });
52
+
53
+ app.get('/health', async () => ({ status: 'ok' }));
54
+ ```
55
+
56
+ ## Post-Scaffold
57
+
58
+ ```bash
59
+ cd backend && npm install
60
+ ```
61
+
62
+ ## Update .scaffold/.paths.json
63
+
64
+ ```json
65
+ {
66
+ "backend": {
67
+ "typesDir": {
68
+ "expected": "backend/src/types",
69
+ "current": "backend/src/types",
70
+ "status": "verified"
71
+ }
72
+ }
73
+ }
74
+ ```
@@ -0,0 +1,75 @@
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.
@@ -0,0 +1,80 @@
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.
@@ -0,0 +1,47 @@
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.
@@ -0,0 +1,45 @@
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.
@@ -0,0 +1,44 @@
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.
@@ -0,0 +1,44 @@
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.
@@ -0,0 +1,45 @@
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.