MCPcopy Index your code
hub / github.com/anomalyco/opencode / assertion

Function assertion

packages/core/test/permission.test.ts:78–86  ·  view source on GitHub ↗
(input: Partial<PermissionV2.AssertInput> = {})

Source from the content-addressed store, hash-verified

76}
77
78function assertion(input: Partial<PermissionV2.AssertInput> = {}) {
79 return {
80 id: PermissionV2.ID.create("per_test"),
81 sessionID: SessionV2.ID.make("ses_test"),
82 action: "read",
83 resources: ["src/index.ts"],
84 ...input,
85 } satisfies PermissionV2.AssertInput
86}
87
88function waitForRequest() {
89 return Effect.gen(function* () {

Callers 2

waitForRequestFunction · 0.85
permission.test.tsFile · 0.85

Calls 2

createMethod · 0.65
makeMethod · 0.45

Tested by

no test coverage detected