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

Function approvalRiskFor

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

Source from the content-addressed store, hash-verified

142}
143
144function approvalRiskFor(action) {
145 const command = String(action?.command || '').trim();
146 if (command === '/autopilot') return 'medium-high';
147 if (command === '/do continue') return 'medium';
148 if (command === '/merge-review') return 'medium';
149 if (isSetupCommand(command)) return 'medium';
150 if (command === '/telemetry') return 'low';
151 if (command.startsWith('git status')) return 'low';
152 return 'medium';
153}
154
155function verificationPlanFor(action) {
156 const command = String(action?.command || '').trim();

Callers 1

buildApprovalCapsuleFunction · 0.85

Calls 1

isSetupCommandFunction · 0.85

Tested by

no test coverage detected