From 8ad54024d53619129c679423ef31dbd473ffafb7 Mon Sep 17 00:00:00 2001 From: Brian Madison Date: Sun, 8 Jun 2025 20:46:44 -0500 Subject: [PATCH] build cleanup --- agent-teams/team-all.yml | 9 -------- agent-teams/team-fullstack.yml | 5 ----- agent-teams/team-no-ui.yml | 10 +++++++++ agent-teams/team-planning-no-ui.yml | 16 --------------- agent-teams/team-scrum.yml | 1 - agent-teams/team-technical.yml | 1 - bmad-core/data/bmad-kb.md | 1 - bmad-core/utils/create-team.md | 4 ---- docs/instruction.md | 1 - tools/builders/web-builder.js | 32 ++++++++++++----------------- tools/lib/bundle-optimizer.js | 8 +++----- 11 files changed, 26 insertions(+), 62 deletions(-) create mode 100644 agent-teams/team-no-ui.yml delete mode 100644 agent-teams/team-planning-no-ui.yml diff --git a/agent-teams/team-all.yml b/agent-teams/team-all.yml index 73a6b59f..165acd6d 100644 --- a/agent-teams/team-all.yml +++ b/agent-teams/team-all.yml @@ -1,16 +1,7 @@ bundle: name: Every Agent Team Bundle description: This is a full organization of agents and includes every possible agent. This will produce the larges bundle but give the most options for discussion in a single session - target_environment: web agents: - bmad - "*" - -workflows: - - greenfield-mvp - - fullstack-app - - api-only - - brownfield-enhancement - - frontend-only - - backend-service diff --git a/agent-teams/team-fullstack.yml b/agent-teams/team-fullstack.yml index aa221f2c..ad5241a2 100644 --- a/agent-teams/team-fullstack.yml +++ b/agent-teams/team-fullstack.yml @@ -7,14 +7,9 @@ bundle: to deliver complete solutions from concept to deployment. Specializes in full-stack applications, SaaS platforms, enterprise apps, feature additions, refactoring, and system modernization. - target_environment: web agents: - bmad - pm - ux-expert - fullstack-architect - -workflows: - - greenfield-fullstack - - brownfield-fullstack diff --git a/agent-teams/team-no-ui.yml b/agent-teams/team-no-ui.yml new file mode 100644 index 00000000..25f2c296 --- /dev/null +++ b/agent-teams/team-no-ui.yml @@ -0,0 +1,10 @@ +bundle: + name: Team No UI + description: This is a team that is responsible for planning the project without any UI/UX design. This is for projects that do not require UI/UX design. + +agents: + - bmad + - analyst + - pm + - architect + - po diff --git a/agent-teams/team-planning-no-ui.yml b/agent-teams/team-planning-no-ui.yml deleted file mode 100644 index f95d0858..00000000 --- a/agent-teams/team-planning-no-ui.yml +++ /dev/null @@ -1,16 +0,0 @@ -bundle: - name: Team Planning No UI - description: This is a team that is responsible for planning the project without any UI/UX design. This is for backend only projects. - target_environment: web - -agents: - - bmad - - analyst - - pm - - architect - - po - -workflows: - - api-only - - brownfield-enhancement - - backend-service diff --git a/agent-teams/team-scrum.yml b/agent-teams/team-scrum.yml index 27adda50..98369b78 100644 --- a/agent-teams/team-scrum.yml +++ b/agent-teams/team-scrum.yml @@ -1,7 +1,6 @@ bundle: name: Development Team Bundle description: This is a core development Agile implementation scrum team. - target_environment: web agents: - bmad diff --git a/agent-teams/team-technical.yml b/agent-teams/team-technical.yml index 3d0acf88..b619b50e 100644 --- a/agent-teams/team-technical.yml +++ b/agent-teams/team-technical.yml @@ -1,7 +1,6 @@ bundle: name: Technical Planning and Assessment Team Bundle description: This is good for deep technical discussions and assessments. - target_environment: web agents: - bmad diff --git a/bmad-core/data/bmad-kb.md b/bmad-core/data/bmad-kb.md index 35d89460..18c608f7 100644 --- a/bmad-core/data/bmad-kb.md +++ b/bmad-core/data/bmad-kb.md @@ -139,7 +139,6 @@ Bundles group related agents for specific use cases: bundle: name: Full Team Bundle description: Complete development team - target_environment: web agents: - bmad # Orchestrator diff --git a/bmad-core/utils/create-team.md b/bmad-core/utils/create-team.md index ebb0edcb..16011e88 100644 --- a/bmad-core/utils/create-team.md +++ b/bmad-core/utils/create-team.md @@ -59,7 +59,6 @@ bundle: name: {Team Name} description: >- {Detailed description of the team's purpose and capabilities} - target_environment: web agents: - {agent-id-1} @@ -101,7 +100,6 @@ bundle: name: Development Team Bundle description: >- Core development team for building features from story to deployment - target_environment: web agents: - sm # Sprint coordination @@ -116,7 +114,6 @@ bundle: name: Planning Team Bundle description: >- Strategic planning team for project inception and architecture - target_environment: web agents: - analyst # Requirements gathering @@ -131,7 +128,6 @@ bundle: name: Full-Stack Team Bundle description: >- Complete team for full-stack application development - target_environment: web agents: - fullstack-architect # Holistic design diff --git a/docs/instruction.md b/docs/instruction.md index 8e9a5f5f..5d4b7d68 100644 --- a/docs/instruction.md +++ b/docs/instruction.md @@ -79,7 +79,6 @@ Team bundles are defined in the `/agent-teams/` directory as `team-*.yml` files: ```yaml bundle: name: Full Team Bundle - target_environment: web agents: - bmad diff --git a/tools/builders/web-builder.js b/tools/builders/web-builder.js index a1cca42a..06d37012 100644 --- a/tools/builders/web-builder.js +++ b/tools/builders/web-builder.js @@ -176,7 +176,7 @@ class WebBuilder { // Resolve dependencies const agentDependencies = this.resolver.resolveBundleDependencies( agentIds, - bundleConfig.target_environment, + 'web', bundleConfig.optimize !== false ); @@ -274,7 +274,7 @@ class WebBuilder { // Add bundle metadata as a comment content += `\n`; content += `\n`; - content += `\n\n`; + content += `\n\n`; // Add agent configurations section content += `==================== START: agent-config ====================\n`; @@ -305,7 +305,7 @@ class WebBuilder { const agentConfigContent = yaml.dump({ name: bundle.metadata.name, version: bundle.metadata.version || '1.0.0', - environment: bundle.metadata.environment, + environment: 'web', agents: bundle.agents, commands: config.output?.orchestrator_commands || [], metadata: { @@ -417,15 +417,12 @@ class WebBuilder { // Check if this has bundle config if (config.bundle) { - // Only include web bundles (exclude IDE-specific bundles) - if (config.bundle.target_environment === 'web') { - // Merge agents list from root level into bundle config - const bundleConfig = { ...config.bundle }; - if (config.agents && !bundleConfig.agents) { - bundleConfig.agents = config.agents; - } - configs.push(bundleConfig); + // Merge agents list from root level into bundle config + const bundleConfig = { ...config.bundle }; + if (config.agents && !bundleConfig.agents) { + bundleConfig.agents = config.agents; } + configs.push(bundleConfig); } } catch (error) { console.warn(`Warning: Failed to load config ${file}:`, error.message); @@ -442,15 +439,12 @@ class WebBuilder { // Check if this is a team bundle (team-*.yml) with bundle config if (filename.startsWith('team-') && config.bundle) { - // Only include web bundles (exclude IDE-specific bundles) - if (config.bundle.target_environment === 'web') { - // Merge agents list from root level into bundle config - const bundleConfig = { ...config.bundle }; - if (config.agents && !bundleConfig.agents) { - bundleConfig.agents = config.agents; - } - configs.push(bundleConfig); + // Merge agents list from root level into bundle config + const bundleConfig = { ...config.bundle }; + if (config.agents && !bundleConfig.agents) { + bundleConfig.agents = config.agents; } + configs.push(bundleConfig); } } catch (error) { console.warn(`Warning: Failed to load config ${file}:`, error.message); diff --git a/tools/lib/bundle-optimizer.js b/tools/lib/bundle-optimizer.js index 18b80f4e..2633011b 100644 --- a/tools/lib/bundle-optimizer.js +++ b/tools/lib/bundle-optimizer.js @@ -20,7 +20,7 @@ class BundleOptimizer { metadata: { name: bundleConfig.name, version: bundleConfig.version, - environment: bundleConfig.target_environment, + environment: 'web', generatedAt: new Date().toISOString(), optimization: bundleConfig.optimize || false }, @@ -55,9 +55,7 @@ class BundleOptimizer { this.loadResources(optimizedBundle, agentDependencies.bundleResources, agentDependencies.agents); // Create optimized sections for web output - if (bundleConfig.target_environment === 'web') { - this.createWebSections(optimizedBundle, bundleConfig); - } + this.createWebSections(optimizedBundle, bundleConfig); // Calculate statistics optimizedBundle.statistics = this.calculateBundleStats(optimizedBundle, agentDependencies); @@ -176,7 +174,7 @@ class BundleOptimizer { const bundleConfig = { name: `${agentDep.config.name} Standalone`, version: agentDep.config.version || '1.0.0', - target_environment: environment, + // Environment is always 'web' for standalone agents optimize: true };