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

Function files

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

Source from the content-addressed store, hash-verified

6export const SHELL_REGEX = /!`([^`]+)`/g
7
8export function files(template: string) {
9 return Array.from(template.matchAll(FILE_REGEX))
10}
11
12export function shell(template: string) {
13 return Array.from(template.matchAll(SHELL_REGEX))

Callers 7

vcs.tsFile · 0.50
createPromptStateFunction · 0.50
hasDiffsFunction · 0.50
SessionReviewFunction · 0.50
UserMessageDisplayFunction · 0.50
renderFunction · 0.50

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected