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

Function shell

packages/opencode/src/config/markdown.ts:12–14  ·  view source on GitHub ↗
(template: string)

Source from the content-addressed store, hash-verified

10}
11
12export function shell(template: string) {
13 return Array.from(template.matchAll(SHELL_REGEX))
14}
15
16// other coding agents like claude code allow invalid yaml in their
17// frontmatter, we need to fallback to a more permissive parser for those cases

Callers 9

PromptFunction · 0.85
RunFooterViewFunction · 0.85
createPromptStateFunction · 0.85
resetDraftFunction · 0.85
replaceDraftFunction · 0.85
syncDraftFunction · 0.85
selectFunction · 0.85
cmdFunction · 0.85
PromptInputFunction · 0.85

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected