bmad-odoo 1.0.7 → 1.0.9
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 +16 -11
- package/package.json +1 -1
- package/scripts/postinstall.js +31 -23
package/README.md
CHANGED
|
@@ -55,7 +55,12 @@
|
|
|
55
55
|
npm install bmad-odoo
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
**Post-install
|
|
58
|
+
**Post-install behavior:**
|
|
59
|
+
|
|
60
|
+
- **Interactive terminal**: Automatically prompts for IDE selection
|
|
61
|
+
- **Non-interactive (CI/CD)**: Auto-setup with Antigravity (default)
|
|
62
|
+
- **Manual setup**: Run `npx bmad-odoo-setup` anytime
|
|
63
|
+
|
|
59
64
|
```
|
|
60
65
|
Choose your IDE:
|
|
61
66
|
1. VS Code - Visual Studio Code with AI extensions
|
|
@@ -210,16 +215,16 @@ MyOdooProject/
|
|
|
210
215
|
│ └── documentation/
|
|
211
216
|
├── .agent/ # ✨ Workflows for Antigravity
|
|
212
217
|
│ └── workflows/
|
|
213
|
-
│ ├── analyst.md
|
|
214
|
-
│ ├── architect.md
|
|
215
|
-
│ ├── dev.md
|
|
216
|
-
│ ├── pm.md
|
|
217
|
-
│ ├── sm.md
|
|
218
|
-
│ ├── tea.md
|
|
219
|
-
│ ├── ux-designer.md
|
|
220
|
-
│ ├── quick-flow-solo-dev.md
|
|
221
|
-
│ ├── tech-writer.md
|
|
222
|
-
│ └── bmad-
|
|
218
|
+
│ ├── bmad-odoo-agents-analyst.md
|
|
219
|
+
│ ├── bmad-odoo-agents-architect.md
|
|
220
|
+
│ ├── bmad-odoo-agents-dev.md
|
|
221
|
+
│ ├── bmad-odoo-agents-pm.md
|
|
222
|
+
│ ├── bmad-odoo-agents-sm.md
|
|
223
|
+
│ ├── bmad-odoo-agents-tea.md
|
|
224
|
+
│ ├── bmad-odoo-agents-ux-designer.md
|
|
225
|
+
│ ├── bmad-odoo-agents-quick-flow-solo-dev.md
|
|
226
|
+
│ ├── bmad-odoo-agents-tech-writer.md
|
|
227
|
+
│ └── bmad-odoo-workflows-party-mode.md
|
|
223
228
|
└── package.json
|
|
224
229
|
```
|
|
225
230
|
|
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -254,24 +254,25 @@ function createWorkflowsForIDE(projectRoot, packageRoot, ideConfig, ideName) {
|
|
|
254
254
|
let created = 0;
|
|
255
255
|
|
|
256
256
|
for (const agent of agents) {
|
|
257
|
-
const workflowPath = path.join(workflowDir,
|
|
257
|
+
const workflowPath = path.join(workflowDir, `bmad-odoo-agents-${agent.name}.md`);
|
|
258
258
|
|
|
259
259
|
// Check if target workflow already exists
|
|
260
260
|
if (fs.existsSync(workflowPath)) continue;
|
|
261
261
|
|
|
262
262
|
const content = `---
|
|
263
|
-
|
|
263
|
+
name: '${agent.name}'
|
|
264
|
+
description: '${agent.desc}'
|
|
264
265
|
---
|
|
265
266
|
|
|
266
|
-
|
|
267
|
+
You must fully embody this agent's persona and follow all activation instructions exactly as specified. NEVER break character until given an exit command.
|
|
267
268
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
269
|
+
<agent-activation CRITICAL="TRUE">
|
|
270
|
+
1. LOAD the FULL agent file from @_bmad-odoo/bmm/agents/${agent.name}.md
|
|
271
|
+
2. READ its entire contents - this contains the complete agent persona, menu, and instructions
|
|
272
|
+
3. Execute ALL activation steps exactly as written in the agent file
|
|
273
|
+
4. Follow the agent's persona and menu system precisely
|
|
274
|
+
5. Stay in character throughout the session
|
|
275
|
+
</agent-activation>
|
|
275
276
|
`;
|
|
276
277
|
|
|
277
278
|
fs.writeFileSync(workflowPath, content);
|
|
@@ -279,21 +280,21 @@ Follow all activation instructions in that file precisely.
|
|
|
279
280
|
}
|
|
280
281
|
|
|
281
282
|
// Create party-mode workflow
|
|
282
|
-
const partyModePath = path.join(workflowDir, 'bmad-
|
|
283
|
+
const partyModePath = path.join(workflowDir, 'bmad-odoo-workflows-party-mode.md');
|
|
283
284
|
if (!fs.existsSync(partyModePath)) {
|
|
284
285
|
fs.writeFileSync(partyModePath, `---
|
|
285
|
-
|
|
286
|
+
name: 'party-mode'
|
|
287
|
+
description: 'Orchestrates group discussions between all BMAD-Odoo agents'
|
|
286
288
|
---
|
|
287
289
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
Load the party mode workflow from:
|
|
291
|
-
\`node_modules/bmad-odoo/core/workflows/party-mode/party-mode.md\`
|
|
290
|
+
You must fully embody this workflow and follow all instructions exactly as specified.
|
|
292
291
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
292
|
+
<workflow-activation CRITICAL="TRUE">
|
|
293
|
+
1. LOAD the FULL workflow file from @_bmad-odoo/core/workflows/party-mode/party-mode.md
|
|
294
|
+
2. READ its entire contents - this contains the complete workflow steps and instructions
|
|
295
|
+
3. Execute ALL workflow steps exactly as written
|
|
296
|
+
4. Facilitate multi-agent collaboration as specified
|
|
297
|
+
</workflow-activation>
|
|
297
298
|
`);
|
|
298
299
|
created++;
|
|
299
300
|
}
|
|
@@ -435,10 +436,17 @@ async function main() {
|
|
|
435
436
|
process.exit(0);
|
|
436
437
|
}
|
|
437
438
|
|
|
438
|
-
// Check if running interactively
|
|
439
|
-
|
|
439
|
+
// Check if running interactively
|
|
440
|
+
// Force interactive if called via bmad-odoo-setup CLI (BMAD_PROJECT_ROOT is set)
|
|
441
|
+
// or if stdin is a TTY
|
|
442
|
+
const isCalledViaSetupCli = !!process.env.BMAD_PROJECT_ROOT;
|
|
443
|
+
const isInteractive = isCalledViaSetupCli || process.stdin.isTTY;
|
|
440
444
|
|
|
441
|
-
console.log(`🔧 Interactive mode: ${isInteractive ? 'YES' : 'NO (using auto-setup)'}
|
|
445
|
+
console.log(`🔧 Interactive mode: ${isInteractive ? 'YES' : 'NO (using auto-setup)'}`);
|
|
446
|
+
if (isCalledViaSetupCli) {
|
|
447
|
+
console.log(` (Called via bmad-odoo-setup CLI)`);
|
|
448
|
+
}
|
|
449
|
+
console.log('');
|
|
442
450
|
|
|
443
451
|
try {
|
|
444
452
|
if (isInteractive) {
|