convoke-agents 3.0.2 → 3.0.3
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/package.json
CHANGED
|
@@ -147,28 +147,27 @@ function checkModuleConfig(mod) {
|
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
name: label,
|
|
153
|
-
passed: false,
|
|
154
|
-
error: 'config.yaml missing or empty agents section',
|
|
155
|
-
fix: `Check ${mod.configPath}`
|
|
156
|
-
};
|
|
157
|
-
}
|
|
150
|
+
const hasAgents = Array.isArray(mod.config.agents) && mod.config.agents.length > 0;
|
|
151
|
+
const hasWorkflows = Array.isArray(mod.config.workflows) && mod.config.workflows.length > 0;
|
|
158
152
|
|
|
159
|
-
|
|
153
|
+
// A module must have at least agents or workflows
|
|
154
|
+
if (!hasAgents && !hasWorkflows) {
|
|
160
155
|
return {
|
|
161
156
|
name: label,
|
|
162
157
|
passed: false,
|
|
163
|
-
error: 'config.yaml missing
|
|
158
|
+
error: 'config.yaml missing both agents and workflows sections',
|
|
164
159
|
fix: `Check ${mod.configPath}`
|
|
165
160
|
};
|
|
166
161
|
}
|
|
167
162
|
|
|
163
|
+
const parts = [];
|
|
164
|
+
if (hasAgents) parts.push(`${mod.config.agents.length} agents`);
|
|
165
|
+
if (hasWorkflows) parts.push(`${mod.config.workflows.length} workflows`);
|
|
166
|
+
|
|
168
167
|
return {
|
|
169
168
|
name: label,
|
|
170
169
|
passed: true,
|
|
171
|
-
info:
|
|
170
|
+
info: parts.join(', ')
|
|
172
171
|
};
|
|
173
172
|
}
|
|
174
173
|
|
|
@@ -115,6 +115,13 @@ async function refreshInstallation(projectRoot, options = {}) {
|
|
|
115
115
|
|
|
116
116
|
if (!isSameRoot) {
|
|
117
117
|
await fs.copy(packageEnhance, targetEnhance, { overwrite: true });
|
|
118
|
+
// Stamp enhance config version to match package version
|
|
119
|
+
const targetEnhanceConfig = path.join(targetEnhance, 'config.yaml');
|
|
120
|
+
if (fs.existsSync(targetEnhanceConfig)) {
|
|
121
|
+
const ecContent = yaml.load(fs.readFileSync(targetEnhanceConfig, 'utf8'));
|
|
122
|
+
ecContent.version = version;
|
|
123
|
+
fs.writeFileSync(targetEnhanceConfig, yaml.dump(ecContent, { lineWidth: -1 }), 'utf8');
|
|
124
|
+
}
|
|
118
125
|
changes.push('Refreshed Enhance module: _bmad/bme/_enhance/');
|
|
119
126
|
if (verbose) console.log(' Refreshed Enhance module: _bmad/bme/_enhance/');
|
|
120
127
|
} else {
|