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

Function approval

packages/core/sdk/src/pending-approval.test.ts:11–18  ·  view source on GitHub ↗
(overrides?: Partial<PendingApproval>)

Source from the content-addressed store, hash-verified

9} from "./pending-approval";
10
11const approval = (overrides?: Partial<PendingApproval>): PendingApproval => ({
12 executionId: "exec_1",
13 artifactId: "art_1",
14 code: 'return await tools.github.user.main.issues.create({"title":"x"})',
15 address: "github.user.main.issues.create",
16 expiresAt: Date.now() + PENDING_APPROVAL_TTL_MS,
17 ...overrides,
18});
19
20describe("makePendingApprovalStore", () => {
21 it.effect("round-trips a recorded approval", () =>

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected