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

Function liftPlugin

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

Source from the content-addressed store, hash-verified

233// ---------------------------------------------------------------------------
234
235const liftPlugin = (defaultRequiresApproval: boolean | undefined): EffectivePolicy =>
236 defaultRequiresApproval
237 ? { action: "require_approval", source: "plugin-default" }
238 : { action: "approve", source: "plugin-default" };
239
240const liftUser = (match: PolicyMatch): EffectivePolicy => ({
241 action: match.action,

Callers 2

resolveEffectivePolicyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected