diff --git a/tests/agents/validate-gdscript.mjs b/tests/agents/validate-gdscript.mjs index 4190abc..8865003 100644 --- a/tests/agents/validate-gdscript.mjs +++ b/tests/agents/validate-gdscript.mjs @@ -68,7 +68,7 @@ function validateSnippet(code, file, blockIndex) { } function validateAgentFiles() { - const agentsDir = join(ROOT, '.opencode', 'agents'); + const agentsDir = join(ROOT, '.agents', 'agents'); if (!existsSync(agentsDir)) { console.log('No agents directory found'); process.exit(0); diff --git a/tests/modules/validate-modules.mjs b/tests/modules/validate-modules.mjs index 9733625..54c67a2 100644 --- a/tests/modules/validate-modules.mjs +++ b/tests/modules/validate-modules.mjs @@ -10,10 +10,10 @@ let passed = 0; let failed = 0; const PATH_MAP = { - agents: (name) => join(ROOT, ".opencode", "agents", `${name}.md`), - skills: (name) => join(ROOT, ".opencode", "skills", name, "SKILL.md"), - commands: (name) => join(ROOT, ".opencode", "commands", `${name}.md`), - rules: (name) => join(ROOT, ".opencode", "rules", `${name}.md`), + agents: (name) => join(ROOT, ".agents", "agents", `${name}.md`), + skills: (name) => join(ROOT, ".agents", "skills", name, "SKILL.md"), + commands: (name) => join(ROOT, ".agents", "commands", `${name}.md`), + rules: (name) => join(ROOT, ".agents", "rules", `${name}.md`), }; function parseModulefile(filePath) { diff --git a/tests/workflow/gates.mjs b/tests/workflow/gates.mjs index 24218a9..ce97d6c 100644 --- a/tests/workflow/gates.mjs +++ b/tests/workflow/gates.mjs @@ -7,7 +7,7 @@ import { fileURLToPath } from 'url'; const __dirname = dirname(fileURLToPath(import.meta.url)); const ROOT = resolve(__dirname, '..', '..'); -const SKILLS_DIR = join(ROOT, '.opencode', 'skills'); +const SKILLS_DIR = join(ROOT, '.agents', 'skills'); function getSkillContent(name) { const p = join(SKILLS_DIR, name, 'SKILL.md'); @@ -69,8 +69,8 @@ if (gate) { 'production/session-logs/', 'prototypes/explore/', 'design/difficulty-curve.md', - '.opencode/docs/technical-preferences.md', - '.opencode/docs/director-gates.md', + 'docs/framework/technical-preferences.md', + 'docs/framework/director-gates.md', '.github/workflows/tests.yml', 'docs/consistency-failures.md', ]); @@ -179,7 +179,7 @@ if (gate) { const hybrid = readFileSync(hybridDoc, 'utf-8'); const refs = [...hybrid.matchAll(/`\/([a-z][\w-]+)`/g)].map(m => m[1]); const unique = [...new Set(refs)]; - const commandsDir = join(ROOT, '.opencode', 'commands'); + const commandsDir = join(ROOT, '.agents', 'commands'); const commandNames = existsSync(commandsDir) ? new Set(readdirSync(commandsDir).filter(f => f.endsWith('.md') && f !== 'README.md').map(f => f.replace('.md', ''))) : new Set(); @@ -210,7 +210,7 @@ if (gate) { const content = readFileSync(doc, 'utf-8'); const refs = [...content.matchAll(/`\/([a-z][\w-]+)`/g)].map(m => m[1]); const unique = [...new Set(refs)]; - const commandsDir = join(ROOT, '.opencode', 'commands'); + const commandsDir = join(ROOT, '.agents', 'commands'); const commandNames = existsSync(commandsDir) ? new Set(readdirSync(commandsDir).filter(f => f.endsWith('.md') && f !== 'README.md').map(f => f.replace('.md', ''))) : new Set(); diff --git a/tests/workflow/invariants.mjs b/tests/workflow/invariants.mjs index 93766eb..cbc6dc1 100644 --- a/tests/workflow/invariants.mjs +++ b/tests/workflow/invariants.mjs @@ -7,9 +7,9 @@ import { fileURLToPath } from 'url'; const __dirname = dirname(fileURLToPath(import.meta.url)); const ROOT = resolve(__dirname, '..', '..'); -const COMMANDS_DIR = join(ROOT, '.opencode', 'commands'); -const SKILLS_DIR = join(ROOT, '.opencode', 'skills'); -const AGENTS_DIR = join(ROOT, '.opencode', 'agents'); +const COMMANDS_DIR = join(ROOT, '.agents', 'commands'); +const SKILLS_DIR = join(ROOT, '.agents', 'skills'); +const AGENTS_DIR = join(ROOT, '.agents', 'agents'); const DOCS_DIR = join(ROOT, 'docs'); const DESIGN_DIR = join(ROOT, 'design'); const PRODUCTION_DIR = join(ROOT, 'production'); @@ -144,10 +144,10 @@ console.log('\n=== Cross-Cutting Invariants ===\n'); { // I4: No stale template placeholders in key config files const configFiles = [ - join(ROOT, '.opencode', 'docs', 'technical-preferences.md'), + join(ROOT, 'docs', 'framework', 'technical-preferences.md'), ]; const knownPlaceholderFiles = new Set([ - join(ROOT, '.opencode', 'docs', 'technical-preferences.md'), + join(ROOT, 'docs', 'framework', 'technical-preferences.md'), ]); const bad = []; for (const file of configFiles) { diff --git a/tests/workflow/paths.mjs b/tests/workflow/paths.mjs index 2f47758..81e2f7e 100644 --- a/tests/workflow/paths.mjs +++ b/tests/workflow/paths.mjs @@ -7,8 +7,8 @@ import { fileURLToPath } from 'url'; const __dirname = dirname(fileURLToPath(import.meta.url)); const ROOT = resolve(__dirname, '..', '..'); -const SKILLS_DIR = join(ROOT, '.opencode', 'skills'); -const COMMANDS_DIR = join(ROOT, '.opencode', 'commands'); +const SKILLS_DIR = join(ROOT, '.agents', 'skills'); +const COMMANDS_DIR = join(ROOT, '.agents', 'commands'); const DOCS_DIR = join(ROOT, 'docs'); function getSkillContent(name) { diff --git a/tests/workflow/references.mjs b/tests/workflow/references.mjs index 4a7f12f..d75be40 100644 --- a/tests/workflow/references.mjs +++ b/tests/workflow/references.mjs @@ -7,9 +7,9 @@ import { fileURLToPath } from 'url'; const __dirname = dirname(fileURLToPath(import.meta.url)); const ROOT = resolve(__dirname, '..', '..'); -const COMMANDS_DIR = join(ROOT, '.opencode', 'commands'); -const SKILLS_DIR = join(ROOT, '.opencode', 'skills'); -const AGENTS_DIR = join(ROOT, '.opencode', 'agents'); +const COMMANDS_DIR = join(ROOT, '.agents', 'commands'); +const SKILLS_DIR = join(ROOT, '.agents', 'skills'); +const AGENTS_DIR = join(ROOT, '.agents', 'agents'); function parseFrontmatter(content) { const match = content.match(/^---\n([\s\S]*?)\n---/);