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

Function policyToResponse

packages/plugins/toolkits/src/server.ts:206–214  ·  view source on GitHub ↗
(policy: ToolkitPolicyRecord)

Source from the content-addressed store, hash-verified

204});
205
206const policyToResponse = (policy: ToolkitPolicyRecord) => ({
207 id: policy.id,
208 toolkitId: policy.toolkitId,
209 pattern: policy.pattern,
210 action: policy.action,
211 position: policy.position,
212 createdAt: policy.createdAt,
213 updatedAt: policy.updatedAt,
214});
215
216const connectionToResponse = (connection: ToolkitConnectionRecord) => ({
217 id: connection.id,

Callers 2

createPolicyFunction · 0.70
updatePolicyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected