MCPcopy
hub / github.com/EveryInc/compound-engineering-plugin / renderCodexAgentToml

Function renderCodexAgentToml

src/targets/codex.ts:647–654  ·  view source on GitHub ↗
(agent: NonNullable<CodexBundle["agents"]>[number])

Source from the content-addressed store, hash-verified

645}
646
647function renderCodexAgentToml(agent: NonNullable<CodexBundle["agents"]>[number]): string {
648 const lines = [
649 `name = ${formatTomlString(agent.name)}`,
650 `description = ${formatTomlString(agent.description)}`,
651 `developer_instructions = ${formatTomlString(agent.instructions)}`,
652 ]
653 return lines.join("\n")
654}
655
656function formatTomlKey(value: string): string {
657 if (/^[A-Za-z0-9_-]+$/.test(value)) return value

Callers 1

writeCodexBundleFunction · 0.85

Calls 1

formatTomlStringFunction · 0.70

Tested by

no test coverage detected