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

Function artifactActionCode

e2e/scenarios/artifact-approval.test.ts:54–59  ·  view source on GitHub ↗
(pattern: string)

Source from the content-addressed store, hash-verified

52 * artifact-scoped approval path without first connecting an integration.
53 */
54const artifactActionCode = (pattern: string) =>
55 `return await tools.executor.coreTools.policies.create(${JSON.stringify({
56 owner: "user",
57 pattern,
58 action: "block",
59 })})`;
60
61/** A minimal artifact. Its source is irrelevant to the approval path — what
62 * matters is that a real artifact id scopes the call, exactly as the rendered

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected