Project Cleanup of Agents Menus, BMB module removal to other repo

This commit is contained in:
Brian Madison
2026-01-19 02:04:14 -06:00
parent 14bfa5b224
commit 6f8f0871cf
345 changed files with 303 additions and 3353 deletions

View File

@@ -224,7 +224,7 @@ See **[MANUAL-TESTING.md](./MANUAL-TESTING.md)** for detailed manual testing pro
Edge cases covered include:
- Malformed module paths (e.g., `src/modules/bmm` without `/agents/`)
- Malformed module paths (e.g., `src/bmm` without `/agents/`)
- Empty module names in paths (e.g., `src/modules//agents/`)
- Whitespace-only module field values
- All validation error paths
@@ -240,7 +240,7 @@ To add new test cases:
```yaml
# Test: Description of what this tests
# Expected: PASS (or FAIL - error description)
# Path context: src/modules/bmm/agents/test.agent.yaml (if needed)
# Path context: src/bmm/agents/test.agent.yaml (if needed)
```
3. Run the test suite to verify: `npm test`

View File

@@ -3,7 +3,7 @@
# Error code: custom
# Error path: agent.metadata.module
# Error message: agent.metadata.module must be a non-empty string
# Path context: src/modules/bmm/agents/empty-module-string.agent.yaml
# Path context: src/bmm/agents/empty-module-string.agent.yaml
agent:
metadata:

View File

@@ -1,6 +1,6 @@
# Test: Malformed module path (no slash after module name) treated as core
# Expected: PASS - malformed path returns null, treated as core agent
# Path context: src/modules/bmm
# Path context: src/bmm
agent:
metadata:

View File

@@ -1,6 +1,6 @@
# Test: Valid module agent with correct module field
# Expected: PASS
# Path context: src/modules/bmm/agents/module-agent-correct.agent.yaml
# Path context: src/bmm/agents/module-agent-correct.agent.yaml
agent:
metadata:

View File

@@ -209,7 +209,7 @@ function runTest(filePath) {
// Valid metadata tests: check if filename suggests module or core
const filename = path.basename(filePath);
if (filename.includes('module')) {
validationPath = 'src/modules/bmm/agents/test.agent.yaml';
validationPath = 'src/bmm/agents/test.agent.yaml';
} else {
validationPath = 'src/core/agents/test.agent.yaml';
}
@@ -217,7 +217,7 @@ function runTest(filePath) {
// Invalid metadata tests: derive from filename
const filename = path.basename(filePath);
if (filename.includes('module') || filename.includes('wrong-module')) {
validationPath = 'src/modules/bmm/agents/test.agent.yaml';
validationPath = 'src/bmm/agents/test.agent.yaml';
} else if (filename.includes('core')) {
validationPath = 'src/core/agents/test.agent.yaml';
} else {

View File

@@ -62,7 +62,7 @@ async function runTests() {
try {
const builder = new YamlXmlBuilder();
const pmAgentPath = path.join(projectRoot, 'src/modules/bmm/agents/pm.agent.yaml');
const pmAgentPath = path.join(projectRoot, 'src/bmm/agents/pm.agent.yaml');
// Create temp output path
const tempOutput = path.join(__dirname, 'temp-pm-agent.md');
@@ -164,7 +164,7 @@ async function runTests() {
try {
const builder = new YamlXmlBuilder();
const teaAgentPath = path.join(projectRoot, 'src/modules/bmm/agents/tea.agent.yaml');
const teaAgentPath = path.join(projectRoot, 'src/bmm/agents/tea.agent.yaml');
const tempOutput = path.join(__dirname, 'temp-tea-agent.md');
try {

View File

@@ -15,7 +15,7 @@ let failed = 0;
// This tests line 213: slashIndex === -1
console.log('Test 1: Malformed module path (no slash after module name)');
try {
const result = validateAgentFile('src/modules/bmm', {
const result = validateAgentFile('src/bmm', {
agent: {
metadata: {
id: 'test',
@@ -50,7 +50,7 @@ console.log('');
// This tests line 222: trimmed.length > 0
console.log('Test 2: Module agent with empty string in module field');
try {
const result = validateAgentFile('src/modules/bmm/agents/test.agent.yaml', {
const result = validateAgentFile('src/bmm/agents/test.agent.yaml', {
agent: {
metadata: {
id: 'test',