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

Function provider

packages/opencode/src/tool/shell.ts:162–172  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

160}
161
162function provider(text: string) {
163 const match = text.match(/^([A-Za-z]+)::(.*)$/)
164 if (match) {
165 if (match[1].toLowerCase() !== "filesystem") return
166 return match[2]
167 }
168 const prefix = text.match(/^([A-Za-z]+):(.*)$/)
169 if (!prefix) return text
170 if (prefix[1].length === 1) return text
171 return
172}
173
174function dynamic(text: string, ps: boolean) {
175 if (text.startsWith("(") || text.startsWith("@(")) return true

Callers 3

shell.tsFile · 0.70
RunFooterViewFunction · 0.50
titleFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected