bmad-plus 0.9.2 → 0.12.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.
Files changed (34) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/README.md +582 -577
  3. package/osint-agent-package/skills/bmad-osint-investigate/osint/SKILL.md +30 -0
  4. package/osint-agent-package/skills/bmad-osint-investigate/osint/assets/dossier-template.md +10 -0
  5. package/osint-agent-package/skills/bmad-osint-investigate/osint/assets/lawful-basis-record.md +48 -0
  6. package/osint-agent-package/skills/bmad-osint-investigate/osint/references/gdpr-osint.md +48 -0
  7. package/package.json +7 -5
  8. package/readme-international/README.de.md +9 -4
  9. package/readme-international/README.es.md +9 -4
  10. package/readme-international/README.fr.md +9 -4
  11. package/src/bmad-plus/packs/pack-memory/shared/memory-protocol.md +14 -0
  12. package/tools/build/README.md +78 -0
  13. package/tools/build/adapters.config.js +117 -0
  14. package/tools/build/generate-adapters.js +485 -0
  15. package/tools/build/generate.js +284 -0
  16. package/tools/build/generated-adapters/.codex/AGENTS.md +121 -0
  17. package/tools/build/generated-adapters/.cursor/rules/bmad-plus.mdc +126 -0
  18. package/tools/build/generated-adapters/.opencode/AGENTS.md +121 -0
  19. package/tools/build/generated-adapters/AGENTS.md +119 -0
  20. package/tools/build/generated-adapters/CLAUDE.md +122 -0
  21. package/tools/build/generated-adapters/CONVENTIONS.md +121 -0
  22. package/tools/build/generated-adapters/GEMINI.md +126 -0
  23. package/tools/build/generated-adapters/README.md +79 -0
  24. package/tools/cli/bmad-plus-cli.js +11 -0
  25. package/tools/cli/commands/autoconfig.js +1 -3
  26. package/tools/cli/commands/install.js +54 -2
  27. package/tools/cli/commands/memory-journal-cmd.js +311 -0
  28. package/tools/cli/commands/scan.js +2 -18
  29. package/tools/cli/lib/README-memory-journal.md +125 -0
  30. package/tools/cli/lib/memory-init.js +204 -113
  31. package/tools/cli/lib/memory-journal.js +0 -0
  32. package/tools/cli/lib/packs.js +209 -122
  33. package/tools/cli/lib/path-hash.js +39 -0
  34. package/tools/cli/lib/python-provision.js +508 -0
@@ -1,113 +1,204 @@
1
- /**
2
- * BMAD+ Memory Initialization Module
3
- * Extracted from install.js — initializes brain with existing brain detection.
4
- *
5
- * Author: Laurent Rochetta
6
- */
7
-
8
- const path = require('node:path');
9
- const fs = require('node:fs');
10
- const os = require('node:os');
11
- const fsExtra = require('fs-extra');
12
- const clack = require('@clack/prompts');
13
-
14
- /**
15
- * Initialize the memory pack: create project memory files, detect or create global brain.
16
- *
17
- * @param {object} opts
18
- * @param {string} opts.projectDir - Target project directory
19
- * @param {string} opts.bmadSrc - Path to src/bmad-plus/
20
- * @param {string} opts.userName - User display name
21
- * @param {string} opts.commLang - Communication language
22
- * @param {string[]} opts.selectedPacks - Array of pack IDs being installed
23
- * @param {object} opts.i - i18n translations object
24
- * @returns {void}
25
- */
26
- function initMemory({ projectDir, bmadSrc, userName, commLang, selectedPacks }) {
27
- const memoryDir = path.join(projectDir, '.agents', 'memory');
28
- const sessionsDir = path.join(memoryDir, 'sessions');
29
- const globalBrainDir = path.join(os.homedir(), '.bmad-plus', 'brain', 'projects');
30
- const templateDir = path.join(bmadSrc, 'packs', 'pack-memory', 'templates');
31
-
32
- // Create project memory (never overwrite existing)
33
- fsExtra.ensureDirSync(sessionsDir);
34
- const memoryFiles = ['decisions.md', 'lessons.md', 'patterns.md', 'context.md'];
35
- for (const mf of memoryFiles) {
36
- const dest = path.join(memoryDir, mf);
37
- if (!fs.existsSync(dest)) {
38
- const src = path.join(templateDir, mf);
39
- if (fs.existsSync(src)) {
40
- let content = fs.readFileSync(src, 'utf8');
41
- content = content.replace(/\{\{date\}\}/g, new Date().toISOString().slice(0, 10));
42
- content = content.replace(/\{\{project_name\}\}/g, path.basename(projectDir));
43
- content = content.replace(/\{\{project_path\}\}/g, projectDir);
44
- fs.writeFileSync(dest, content, 'utf8');
45
- }
46
- }
47
- }
48
-
49
- // Detect existing brain directories
50
- const brainCandidates = [
51
- path.join(os.homedir(), '.bmad-plus', 'brain'),
52
- path.join(projectDir, '_brain'),
53
- path.join(os.homedir(), '.claude', 'memory'),
54
- ];
55
- const existingBrain = brainCandidates.find(p => fs.existsSync(p));
56
-
57
- if (existingBrain) {
58
- clack.log.info(`🧠 Existing brain detected: ${existingBrain}`);
59
- // Write brain link pointer
60
- fs.writeFileSync(
61
- path.join(memoryDir, '.brain-link'),
62
- JSON.stringify({ linked_brain: existingBrain, linked_at: new Date().toISOString() }, null, 2),
63
- 'utf8'
64
- );
65
- } else {
66
- // Create fresh global brain
67
- fsExtra.ensureDirSync(globalBrainDir);
68
- const identitySrc = path.join(templateDir, 'identity.yaml');
69
- const identityDest = path.join(os.homedir(), '.bmad-plus', 'brain', 'identity.yaml');
70
- if (fs.existsSync(identitySrc) && !fs.existsSync(identityDest)) {
71
- let content = fs.readFileSync(identitySrc, 'utf8');
72
- content = content.replace(/\{\{user_name\}\}/g, userName);
73
- content = content.replace(/\{\{language\}\}/g, commLang);
74
- content = content.replace(/\{\{date\}\}/g, new Date().toISOString().slice(0, 10));
75
- fs.writeFileSync(identityDest, content, 'utf8');
76
- }
77
- // Copy global memory templates
78
- for (const gf of ['decisions.md', 'lessons.md', 'patterns.md']) {
79
- const dest = path.join(os.homedir(), '.bmad-plus', 'brain', gf);
80
- if (!fs.existsSync(dest)) {
81
- const src = path.join(templateDir, gf);
82
- if (fs.existsSync(src)) {
83
- let content = fs.readFileSync(src, 'utf8');
84
- content = content.replace(/\{\{date\}\}/g, new Date().toISOString().slice(0, 10));
85
- content = content.replace(/\{\{project_name\}\}/g, 'Global Brain');
86
- fs.writeFileSync(dest, content, 'utf8');
87
- }
88
- }
89
- }
90
- clack.log.info(`🧠 Global brain created: ${path.join(os.homedir(), '.bmad-plus', 'brain')}`);
91
- }
92
-
93
- // Index this project in global brain
94
- const crypto = require('node:crypto');
95
- const projHash = crypto.createHash('sha256').update(projectDir).digest('hex').slice(0, 8);
96
- const projMeta = {
97
- path: projectDir,
98
- name: path.basename(projectDir),
99
- hash: projHash,
100
- status: 'active',
101
- bmad_installed: true,
102
- packs_installed: selectedPacks,
103
- last_scanned: new Date().toISOString().slice(0, 10),
104
- };
105
- fsExtra.ensureDirSync(globalBrainDir);
106
- fs.writeFileSync(
107
- path.join(globalBrainDir, `${projHash}.yaml`),
108
- Object.entries(projMeta).map(([k, v]) => `${k}: ${JSON.stringify(v)}`).join('\n'),
109
- 'utf8'
110
- );
111
- }
112
-
113
- module.exports = { initMemory };
1
+ /**
2
+ * BMAD+ Memory Initialization Module
3
+ * Extracted from install.js — initializes brain with existing brain detection.
4
+ *
5
+ * Author: Laurent Rochetta
6
+ */
7
+
8
+ const path = require('node:path');
9
+ const fs = require('node:fs');
10
+ const os = require('node:os');
11
+ const fsExtra = require('fs-extra');
12
+ const clack = require('@clack/prompts');
13
+ const { projectHash } = require('./path-hash');
14
+
15
+ /**
16
+ * True when `p` exists AND is a directory. A stray *file* named `_brain` (or a
17
+ * file-valued BMAD_PLUS_BRAIN) must never be linked as a brain.
18
+ * @param {string} p
19
+ * @returns {boolean}
20
+ */
21
+ function isBrainCandidateDir(p) {
22
+ try {
23
+ return fs.statSync(p).isDirectory();
24
+ } catch {
25
+ return false;
26
+ }
27
+ }
28
+
29
+ /**
30
+ * Resolve the brain directory a project should link to.
31
+ *
32
+ * Priority order:
33
+ * 1. `BMAD_PLUS_BRAIN` env var — explicit override, wins everywhere
34
+ * 2. A `_brain/` directory in the project dir or any ancestor (portfolio brain
35
+ * shared by sibling projects under a common workspace root)
36
+ * 3. `<home>/.bmad-plus/brain` BMAD+ global brain
37
+ * 4. `<home>/.claude/memory` — Claude Code persistent memory, only when it is
38
+ * a non-empty directory (an empty shell is not evidence of a real memory)
39
+ *
40
+ * @param {string} projectDir - Absolute path of the target project
41
+ * @param {string} [homeDir] - Home directory (injectable for tests; defaults to os.homedir())
42
+ * @returns {{dir: string, type: 'portfolio'|'bmad-global'|'claude-memory'}|null}
43
+ */
44
+ function resolveBrain(projectDir, homeDir = os.homedir()) {
45
+ const envBrain = process.env.BMAD_PLUS_BRAIN;
46
+ if (envBrain) {
47
+ if (isBrainCandidateDir(envBrain)) return { dir: envBrain, type: 'portfolio' };
48
+ clack.log.warn(`BMAD_PLUS_BRAIN is set but is not a directory: ${envBrain} — falling back to auto-detection`);
49
+ }
50
+
51
+ let dir = path.resolve(projectDir);
52
+ for (;;) {
53
+ const candidate = path.join(dir, '_brain');
54
+ if (isBrainCandidateDir(candidate)) return { dir: candidate, type: 'portfolio' };
55
+ const parent = path.dirname(dir);
56
+ if (parent === dir) break;
57
+ dir = parent;
58
+ }
59
+
60
+ const globalBrain = path.join(homeDir, '.bmad-plus', 'brain');
61
+ if (isBrainCandidateDir(globalBrain)) return { dir: globalBrain, type: 'bmad-global' };
62
+
63
+ const claudeMemory = path.join(homeDir, '.claude', 'memory');
64
+ if (isBrainCandidateDir(claudeMemory)) {
65
+ let entries;
66
+ try {
67
+ entries = fs.readdirSync(claudeMemory);
68
+ } catch {
69
+ entries = [];
70
+ }
71
+ if (entries.length > 0) return { dir: claudeMemory, type: 'claude-memory' };
72
+ }
73
+
74
+ return null;
75
+ }
76
+
77
+ /**
78
+ * Idempotently ensure the global brain is COMPLETE: identity.yaml, the global
79
+ * memory files, and projects/. Creates only what is missing, never overwrites.
80
+ *
81
+ * This must run before ANY write into the global brain: older versions wrote
82
+ * the projects/ index unconditionally while identity creation lived in a
83
+ * branch that was skipped whenever any brain was detected — leaving a
84
+ * permanent "half brain" (projects/ but no identity.yaml) that resolveBrain
85
+ * then detected as a valid global brain forever.
86
+ *
87
+ * @param {string} brainRoot - Path to <home>/.bmad-plus/brain
88
+ * @param {string} templateDir - Path to pack-memory templates
89
+ * @param {string} userName - User display name (identity.yaml)
90
+ * @param {string} commLang - Communication language (identity.yaml)
91
+ * @returns {void}
92
+ */
93
+ function ensureGlobalBrain(brainRoot, templateDir, userName, commLang) {
94
+ fsExtra.ensureDirSync(path.join(brainRoot, 'projects'));
95
+
96
+ const identitySrc = path.join(templateDir, 'identity.yaml');
97
+ const identityDest = path.join(brainRoot, 'identity.yaml');
98
+ if (fs.existsSync(identitySrc) && !fs.existsSync(identityDest)) {
99
+ let content = fs.readFileSync(identitySrc, 'utf8');
100
+ content = content.replace(/\{\{user_name\}\}/g, userName);
101
+ content = content.replace(/\{\{language\}\}/g, commLang);
102
+ content = content.replace(/\{\{date\}\}/g, new Date().toISOString().slice(0, 10));
103
+ fs.writeFileSync(identityDest, content, 'utf8');
104
+ }
105
+
106
+ for (const gf of ['decisions.md', 'lessons.md', 'patterns.md']) {
107
+ const dest = path.join(brainRoot, gf);
108
+ if (!fs.existsSync(dest)) {
109
+ const src = path.join(templateDir, gf);
110
+ if (fs.existsSync(src)) {
111
+ let content = fs.readFileSync(src, 'utf8');
112
+ content = content.replace(/\{\{date\}\}/g, new Date().toISOString().slice(0, 10));
113
+ content = content.replace(/\{\{project_name\}\}/g, 'Global Brain');
114
+ fs.writeFileSync(dest, content, 'utf8');
115
+ }
116
+ }
117
+ }
118
+ }
119
+
120
+ /**
121
+ * Initialize the memory pack: create project memory files, detect or create global brain.
122
+ *
123
+ * @param {object} opts
124
+ * @param {string} opts.projectDir - Target project directory
125
+ * @param {string} opts.bmadSrc - Path to src/bmad-plus/
126
+ * @param {string} opts.userName - User display name
127
+ * @param {string} opts.commLang - Communication language
128
+ * @param {string[]} opts.selectedPacks - Array of pack IDs being installed
129
+ * @param {string} [opts.homeDir] - Home directory (injectable for tests; defaults to os.homedir())
130
+ * @returns {void}
131
+ */
132
+ function initMemory({ projectDir, bmadSrc, userName, commLang, selectedPacks, homeDir = os.homedir() }) {
133
+ const memoryDir = path.join(projectDir, '.agents', 'memory');
134
+ const sessionsDir = path.join(memoryDir, 'sessions');
135
+ const globalBrainRoot = path.join(homeDir, '.bmad-plus', 'brain');
136
+ const templateDir = path.join(bmadSrc, 'packs', 'pack-memory', 'templates');
137
+
138
+ // Create project memory (never overwrite existing)
139
+ fsExtra.ensureDirSync(sessionsDir);
140
+ const memoryFiles = ['decisions.md', 'lessons.md', 'patterns.md', 'context.md'];
141
+ for (const mf of memoryFiles) {
142
+ const dest = path.join(memoryDir, mf);
143
+ if (!fs.existsSync(dest)) {
144
+ const src = path.join(templateDir, mf);
145
+ if (fs.existsSync(src)) {
146
+ let content = fs.readFileSync(src, 'utf8');
147
+ content = content.replace(/\{\{date\}\}/g, new Date().toISOString().slice(0, 10));
148
+ content = content.replace(/\{\{project_name\}\}/g, path.basename(projectDir));
149
+ content = content.replace(/\{\{project_path\}\}/g, projectDir);
150
+ fs.writeFileSync(dest, content, 'utf8');
151
+ }
152
+ }
153
+ }
154
+
155
+ // Detect existing brain (env var > portfolio _brain walk-up > global > claude)
156
+ const detected = resolveBrain(projectDir, homeDir);
157
+
158
+ let linkedBrain;
159
+ if (detected) {
160
+ clack.log.info(`🧠 Existing brain detected (${detected.type}): ${detected.dir}`);
161
+ linkedBrain = detected;
162
+ } else {
163
+ ensureGlobalBrain(globalBrainRoot, templateDir, userName, commLang);
164
+ clack.log.info(`🧠 Global brain created: ${globalBrainRoot}`);
165
+ linkedBrain = { dir: globalBrainRoot, type: 'bmad-global' };
166
+ }
167
+
168
+ // Write the brain link pointer in EVERY case — including first-ever creation,
169
+ // so a fresh machine's first install is linked exactly like the second one.
170
+ fs.writeFileSync(
171
+ path.join(memoryDir, '.brain-link'),
172
+ JSON.stringify(
173
+ { linked_brain: linkedBrain.dir, brain_type: linkedBrain.type, linked_at: new Date().toISOString() },
174
+ null,
175
+ 2
176
+ ),
177
+ 'utf8'
178
+ );
179
+
180
+ // Index this project in the global brain — only when the global brain IS the
181
+ // linked brain. Portfolio and claude-memory brains keep their own registries
182
+ // (see pack-memory/shared/memory-protocol.md); writing into ~/.bmad-plus from
183
+ // those installs is what used to create orphaned "half brains".
184
+ if (linkedBrain.type === 'bmad-global') {
185
+ ensureGlobalBrain(globalBrainRoot, templateDir, userName, commLang);
186
+ const projHash = projectHash(projectDir);
187
+ const projMeta = {
188
+ path: projectDir,
189
+ name: path.basename(projectDir),
190
+ hash: projHash,
191
+ status: 'active',
192
+ bmad_installed: true,
193
+ packs_installed: selectedPacks,
194
+ last_scanned: new Date().toISOString().slice(0, 10),
195
+ };
196
+ fs.writeFileSync(
197
+ path.join(globalBrainRoot, 'projects', `${projHash}.yaml`),
198
+ Object.entries(projMeta).map(([k, v]) => `${k}: ${JSON.stringify(v)}`).join('\n'),
199
+ 'utf8'
200
+ );
201
+ }
202
+ }
203
+
204
+ module.exports = { initMemory, resolveBrain, ensureGlobalBrain };
Binary file
@@ -1,122 +1,209 @@
1
- /**
2
- * BMAD+ Shared PACKS Module
3
- * Single source of truth for pack definitions, expected agents, and pack ordering.
4
- *
5
- * Author: Laurent Rochetta
6
- */
7
-
8
- const PACKS = {
9
- core: {
10
- name: 'Core',
11
- icon: 'b',
12
- agents: ['agent-strategist', 'agent-architect-dev', 'agent-quality', 'agent-orchestrator'],
13
- skills: ['bmad-plus-autopilot', 'bmad-plus-parallel', 'bmad-plus-sync'],
14
- data: ['role-triggers.yaml'],
15
- packDir: 'pack-core',
16
- packSrcDir: 'packs',
17
- required: true,
18
- desc: 'Core agents & skills',
19
- },
20
- osint: {
21
- name: 'OSINT',
22
- icon: 'j',
23
- agents: ['agent-shadow'],
24
- skills: [],
25
- externalPackage: 'osint-agent-package',
26
- packDir: 'pack-osint',
27
- packSrcDir: 'packs',
28
- desc: 'OSINT & investigation',
29
- },
30
- maker: {
31
- name: 'Maker',
32
- icon: 'f',
33
- agents: ['agent-maker'],
34
- skills: [],
35
- data: [],
36
- packDir: 'pack-maker',
37
- packSrcDir: 'packs',
38
- desc: 'Agent creation toolkit',
39
- },
40
- shield: {
41
- name: 'Shield',
42
- icon: 'm',
43
- agents: ['shield-orchestrator'],
44
- skills: [],
45
- packDir: 'pack-shield',
46
- packSrcDir: 'packs',
47
- desc: 'GRC compliance (25+ frameworks)',
48
- },
49
- seo: {
50
- name: 'SEO',
51
- icon: 'k',
52
- agents: ['seo-scout', 'seo-chief', 'seo-judge'],
53
- skills: [],
54
- packDir: 'pack-seo',
55
- packSrcDir: 'packs',
56
- desc: 'SEO audit & optimization',
57
- },
58
- memory: {
59
- name: 'Memory',
60
- icon: 'x',
61
- agents: ['zecher'],
62
- skills: [],
63
- packDir: 'pack-memory',
64
- packSrcDir: 'packs',
65
- desc: 'Persistent cross-session memory',
66
- },
67
- 'dev-studio': {
68
- name: 'Dev Studio',
69
- icon: 'v',
70
- agents: ['dev-studio-orchestrator'],
71
- skills: ['dev-studio'],
72
- packDir: 'pack-dev-studio',
73
- packSrcDir: 'packs',
74
- desc: 'SDLC automation (6 agents, 56+ skills)',
75
- },
76
- backup: {
77
- name: 'Backup',
78
- icon: 'y',
79
- agents: ['backup-agent'],
80
- skills: [],
81
- packDir: 'pack-backup',
82
- packSrcDir: 'packs',
83
- desc: 'Backup & restore',
84
- },
85
- animated: {
86
- name: 'Animated',
87
- icon: 'z',
88
- agents: ['animated-website-agent'],
89
- skills: [],
90
- packDir: 'pack-animated',
91
- packSrcDir: 'packs',
92
- desc: 'Animated website agents',
93
- },
94
- };
95
-
96
- const PACK_ORDER = ['core', 'osint', 'maker', 'shield', 'seo', 'memory', 'dev-studio', 'backup', 'animated'];
97
-
98
- /**
99
- * Maps each pack to what `bmad-plus doctor` should expect under .agents/skills/
100
- * after installation.
101
- *
102
- * - `agents` loose agent DIRECTORIES copied straight into .agents/skills/
103
- * (only core/osint/maker ship their agents this way).
104
- * - `packDir` — the pack DIRECTORY copied into .agents/skills/ (null when none).
105
- * - `packAgents`— agent FILES that live INSIDE `packDir` (shield/seo/memory/
106
- * dev-studio/backup/animated bundle their agents this way, so they
107
- * must not be checked as loose directories — doing so produced
108
- * false "Missing agent" warnings on every healthy install).
109
- */
110
- const EXPECTED_AGENTS = {
111
- core: { agents: ['agent-strategist', 'agent-architect-dev', 'agent-quality', 'agent-orchestrator'], packDir: null },
112
- osint: { agents: ['agent-shadow'], packDir: null },
113
- maker: { agents: ['agent-maker'], packDir: null },
114
- shield: { agents: [], packDir: 'pack-shield', packAgents: ['shield-orchestrator.md'] },
115
- seo: { agents: [], packDir: 'pack-seo', packAgents: ['seo-scout.md', 'seo-chief.md', 'seo-judge.md'] },
116
- memory: { agents: [], packDir: 'pack-memory', packAgents: ['zecher-agent.md', 'memory-orchestrator.md'] },
117
- 'dev-studio': { agents: [], packDir: 'pack-dev-studio', packAgents: ['dev-studio-orchestrator.md'] },
118
- backup: { agents: [], packDir: 'pack-backup', packAgents: ['backup-agent.md'] },
119
- animated: { agents: [], packDir: 'pack-animated', packAgents: ['animated-website-agent.md'] },
120
- };
121
-
122
- module.exports = { PACKS, PACK_ORDER, EXPECTED_AGENTS };
1
+ /**
2
+ * BMAD+ Shared PACKS Module — AUTO-GENERATED, DO NOT EDIT.
3
+ * Source of truth: registry.yaml (repo root).
4
+ * Regenerate: node tools/build/generate.js --out tools/cli/lib/packs.js
5
+ *
6
+ * Author: Laurent Rochetta
7
+ */
8
+
9
+ const PACKS = {
10
+ "core": {
11
+ "name": "Core",
12
+ "icon": "b",
13
+ "agents": [
14
+ "agent-strategist",
15
+ "agent-architect-dev",
16
+ "agent-quality",
17
+ "agent-orchestrator"
18
+ ],
19
+ "skills": [
20
+ "bmad-plus-autopilot",
21
+ "bmad-plus-parallel",
22
+ "bmad-plus-sync"
23
+ ],
24
+ "data": [
25
+ "role-triggers.yaml"
26
+ ],
27
+ "packDir": "pack-core",
28
+ "packSrcDir": "packs",
29
+ "required": true,
30
+ "desc": "Core agents & skills"
31
+ },
32
+ "osint": {
33
+ "name": "OSINT",
34
+ "icon": "j",
35
+ "agents": [
36
+ "agent-shadow"
37
+ ],
38
+ "skills": [],
39
+ "externalPackage": "osint-agent-package",
40
+ "packDir": "pack-osint",
41
+ "packSrcDir": "packs",
42
+ "desc": "OSINT & investigation"
43
+ },
44
+ "maker": {
45
+ "name": "Maker",
46
+ "icon": "f",
47
+ "agents": [
48
+ "agent-maker"
49
+ ],
50
+ "skills": [],
51
+ "data": [],
52
+ "packDir": "pack-maker",
53
+ "packSrcDir": "packs",
54
+ "desc": "Agent creation toolkit"
55
+ },
56
+ "shield": {
57
+ "name": "Shield",
58
+ "icon": "m",
59
+ "agents": [
60
+ "shield-orchestrator"
61
+ ],
62
+ "skills": [],
63
+ "packDir": "pack-shield",
64
+ "packSrcDir": "packs",
65
+ "desc": "GRC compliance (25+ frameworks)"
66
+ },
67
+ "seo": {
68
+ "name": "SEO",
69
+ "icon": "k",
70
+ "agents": [
71
+ "seo-scout",
72
+ "seo-chief",
73
+ "seo-judge"
74
+ ],
75
+ "skills": [],
76
+ "packDir": "pack-seo",
77
+ "packSrcDir": "packs",
78
+ "desc": "SEO audit & optimization"
79
+ },
80
+ "memory": {
81
+ "name": "Memory",
82
+ "icon": "x",
83
+ "agents": [
84
+ "zecher"
85
+ ],
86
+ "skills": [],
87
+ "packDir": "pack-memory",
88
+ "packSrcDir": "packs",
89
+ "desc": "Persistent cross-session memory"
90
+ },
91
+ "dev-studio": {
92
+ "name": "Dev Studio",
93
+ "icon": "v",
94
+ "agents": [
95
+ "dev-studio-orchestrator"
96
+ ],
97
+ "skills": [
98
+ "dev-studio"
99
+ ],
100
+ "packDir": "pack-dev-studio",
101
+ "packSrcDir": "packs",
102
+ "desc": "SDLC automation (6 agents, 56+ skills)"
103
+ },
104
+ "backup": {
105
+ "name": "Backup",
106
+ "icon": "y",
107
+ "agents": [
108
+ "backup-agent"
109
+ ],
110
+ "skills": [],
111
+ "packDir": "pack-backup",
112
+ "packSrcDir": "packs",
113
+ "desc": "Backup & restore"
114
+ },
115
+ "animated": {
116
+ "name": "Animated",
117
+ "icon": "z",
118
+ "agents": [
119
+ "animated-website-agent"
120
+ ],
121
+ "skills": [],
122
+ "packDir": "pack-animated",
123
+ "packSrcDir": "packs",
124
+ "desc": "Animated website agents"
125
+ }
126
+ };
127
+
128
+ const PACK_ORDER = [
129
+ "core",
130
+ "osint",
131
+ "maker",
132
+ "shield",
133
+ "seo",
134
+ "memory",
135
+ "dev-studio",
136
+ "backup",
137
+ "animated"
138
+ ];
139
+
140
+ const EXPECTED_AGENTS = {
141
+ "core": {
142
+ "agents": [
143
+ "agent-strategist",
144
+ "agent-architect-dev",
145
+ "agent-quality",
146
+ "agent-orchestrator"
147
+ ],
148
+ "packDir": null
149
+ },
150
+ "osint": {
151
+ "agents": [
152
+ "agent-shadow"
153
+ ],
154
+ "packDir": null
155
+ },
156
+ "maker": {
157
+ "agents": [
158
+ "agent-maker"
159
+ ],
160
+ "packDir": null
161
+ },
162
+ "shield": {
163
+ "agents": [],
164
+ "packDir": "pack-shield",
165
+ "packAgents": [
166
+ "shield-orchestrator.md"
167
+ ]
168
+ },
169
+ "seo": {
170
+ "agents": [],
171
+ "packDir": "pack-seo",
172
+ "packAgents": [
173
+ "seo-scout.md",
174
+ "seo-chief.md",
175
+ "seo-judge.md"
176
+ ]
177
+ },
178
+ "memory": {
179
+ "agents": [],
180
+ "packDir": "pack-memory",
181
+ "packAgents": [
182
+ "zecher-agent.md",
183
+ "memory-orchestrator.md"
184
+ ]
185
+ },
186
+ "dev-studio": {
187
+ "agents": [],
188
+ "packDir": "pack-dev-studio",
189
+ "packAgents": [
190
+ "dev-studio-orchestrator.md"
191
+ ]
192
+ },
193
+ "backup": {
194
+ "agents": [],
195
+ "packDir": "pack-backup",
196
+ "packAgents": [
197
+ "backup-agent.md"
198
+ ]
199
+ },
200
+ "animated": {
201
+ "agents": [],
202
+ "packDir": "pack-animated",
203
+ "packAgents": [
204
+ "animated-website-agent.md"
205
+ ]
206
+ }
207
+ };
208
+
209
+ module.exports = { PACKS, PACK_ORDER, EXPECTED_AGENTS };