MCPcopy Create free account
hub / github.com/anomalyco/opencode / available

Function available

packages/core/src/skill.ts:30–31  ·  view source on GitHub ↗
(skills: ReadonlyArray<Info>, agent: AgentV2.Info)

Source from the content-addressed store, hash-verified

28export type Info = Skill.Info
29
30export const available = (skills: ReadonlyArray<Info>, agent: AgentV2.Info) =>
31 skills.filter((skill) => PermissionV2.evaluate("skill", skill.name, agent.permissions).effect !== "deny")
32
33const Frontmatter = Schema.Struct({
34 name: Schema.String.pipe(Schema.optional),

Callers 1

models.tsxFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected