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

Function renderTemplates

scripts/loops.js:80–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78}
79
80function renderTemplates() {
81 const lines = ['Loop templates', ''];
82 for (const template of listLoopTemplates()) {
83 lines.push(`- ${template.id}: ${template.title}`);
84 lines.push(` Type: ${template.type} | Trigger: ${template.triggerKind || 'manual'} | Attempts: ${template.maxAttempts || 1}`);
85 lines.push(` Goal: ${template.goal}`);
86 }
87 return `${lines.join('\n')}\n`;
88}
89
90function renderInspect(loop) {
91 if (!loop) return 'Loop not found.\n';

Callers 1

mainFunction · 0.85

Calls 1

listLoopTemplatesFunction · 0.85

Tested by

no test coverage detected