MCPcopy Create free account
hub / github.com/backnotprop/plannotator / allowPlanningAgent

Function allowPlanningAgent

apps/opencode-plugin/workflow.ts:189–197  ·  view source on GitHub ↗
(opencodeConfig: OpenCodeConfig, agentName: string)

Source from the content-addressed store, hash-verified

187}
188
189function allowPlanningAgent(opencodeConfig: OpenCodeConfig, agentName: string): void {
190 const agent = ensureAgentConfig(opencodeConfig, agentName);
191 const permission = ensurePermission(agent);
192 permission.submit_plan = "allow";
193 permission.edit = {
194 ...normalizeEditPermission(permission.edit),
195 "*.md": "allow",
196 };
197}
198
199function denySubmitPlan(opencodeConfig: OpenCodeConfig, agentName: string): void {
200 const agent = ensureAgentConfig(opencodeConfig, agentName);

Callers 1

applyWorkflowConfigFunction · 0.85

Calls 3

normalizeEditPermissionFunction · 0.90
ensureAgentConfigFunction · 0.85
ensurePermissionFunction · 0.85

Tested by

no test coverage detected