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

Function liftPlugin

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

Source from the content-addressed store, hash-verified

276// ---------------------------------------------------------------------------
277
278const liftPlugin = (defaultRequiresApproval: boolean | undefined): EffectivePolicy =>
279 defaultRequiresApproval
280 ? { action: "require_approval", source: "plugin-default" }
281 : { action: "approve", source: "plugin-default" };
282
283const liftUser = (match: PolicyMatch): EffectivePolicy => ({
284 action: match.action,

Callers 2

resolveEffectivePolicyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected