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

Function policyToResponse

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

Source from the content-addressed store, hash-verified

249});
250
251const policyToResponse = (policy: ToolkitPolicyRecord) => ({
252 id: policy.id,
253 toolkitId: policy.toolkitId,
254 pattern: policy.pattern,
255 action: policy.action,
256 position: policy.position,
257 createdAt: policy.createdAt,
258 updatedAt: policy.updatedAt,
259});
260
261const connectionToResponse = (connection: ToolkitConnectionRecord) => ({
262 id: connection.id,

Callers 2

createPolicyFunction · 0.70
updatePolicyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected