MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / liftPlugin

Function liftPlugin

packages/core/sdk/src/policies.ts:194–197  ·  view source on GitHub ↗
(defaultRequiresApproval: boolean | undefined)

Source from the content-addressed store, hash-verified

192// ---------------------------------------------------------------------------
193
194const liftPlugin = (defaultRequiresApproval: boolean | undefined): EffectivePolicy =>
195 defaultRequiresApproval
196 ? { action: "require_approval", source: "plugin-default" }
197 : { action: "approve", source: "plugin-default" };
198
199const liftUser = (match: PolicyMatch): EffectivePolicy => ({
200 action: match.action,

Callers 2

resolveEffectivePolicyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected