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

Function approvalBoundaryFor

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

Source from the content-addressed store, hash-verified

129}
130
131function approvalBoundaryFor(action) {
132 const command = String(action?.command || '').trim();
133 if (!command) return 'manual-review';
134 if (command === '/autopilot') return 'campaign-intake';
135 if (command === '/do continue') return 'agent-continuation';
136 if (command === '/merge-review') return 'merge-review';
137 if (isSetupCommand(command)) return 'project-setup';
138 if (command === '/telemetry') return 'telemetry-review';
139 if (command.startsWith('/')) return 'agent-route';
140 if (command.startsWith('git status')) return 'worktree-review';
141 return 'manual-review';
142}
143
144function approvalRiskFor(action) {
145 const command = String(action?.command || '').trim();

Callers 1

buildApprovalCapsuleFunction · 0.85

Calls 1

isSetupCommandFunction · 0.85

Tested by

no test coverage detected