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

Function comparePolicy

packages/plugins/toolkits/src/page.tsx:122–126  ·  view source on GitHub ↗
(a: ToolkitPolicyResponse, b: ToolkitPolicyResponse)

Source from the content-addressed store, hash-verified

120};
121
122const comparePolicy = (a: ToolkitPolicyResponse, b: ToolkitPolicyResponse): number => {
123 if (a.position < b.position) return -1;
124 if (a.position > b.position) return 1;
125 return a.id < b.id ? -1 : a.id > b.id ? 1 : 0;
126};
127
128const pluginDefaultPolicy = (requiresApproval: boolean | undefined): EffectivePolicy =>
129 requiresApproval

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected