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

Function approvalRequestFor

scripts/next-action.js:205–209  ·  view source on GitHub ↗
(action)

Source from the content-addressed store, hash-verified

203}
204
205function approvalRequestFor(action) {
206 const command = String(action?.command || '').trim();
207 if (command.startsWith('git status')) return 'Review the uncommitted worktree state before starting unrelated work.';
208 return `Approve running \`${command || '(manual review)'}\` for this project.`;
209}
210
211function buildApprovalCapsule(projectRoot, snapshot, generatedAt) {
212 const action = snapshot.nextAction || {};

Callers 1

buildApprovalCapsuleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected