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

Function policyToResponse

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

Source from the content-addressed store, hash-verified

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

Callers 2

createPolicyFunction · 0.70
updatePolicyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected