MCPcopy Create free account
hub / github.com/SethGammon/Citadel / generateOpenAIYaml

Function generateOpenAIYaml

scripts/codex-compat.js:632–642  ·  view source on GitHub ↗
(skillDir, fm)

Source from the content-addressed store, hash-verified

630
631 writeFile(path.join(PROJECT_ROOT, '.citadel', 'plugin-root.txt'), CITADEL_ROOT);
632 writeFile(
633 path.join(PROJECT_ROOT, '.citadel', 'scripts', 'package.json'),
634 `${JSON.stringify({ type: 'commonjs' }, null, 2)}\n`
635 );
636
637 let synced = 0;
638 for (const file of fs.readdirSync(sourceDir)) {
639 if (!file.endsWith('.js') && !file.endsWith('.cjs')) continue;
640 writeFile(path.join(PROJECT_ROOT, '.citadel', 'scripts', file), generateDelegate(file));
641 synced++;
642 }
643
644 console.log(` ${synced} script delegates synced.`);
645}

Callers 1

syncSkillsFunction · 0.85

Calls 1

writeFileFunction · 0.70

Tested by

no test coverage detected