MCPcopy
hub / github.com/anomalyco/opencode / create

Function create

packages/core/src/filesystem/fff.bun.ts:118–138  ·  view source on GitHub ↗
(opts: Init)

Source from the content-addressed store, hash-verified

116}
117
118export function create(opts: Init): Result<Picker> {
119 const made = FileFinder.create(opts)
120 if (!made.ok) return made
121 const pick = made.value
122 return {
123 ok: true,
124 value: {
125 destroy: () => pick.destroy(),
126 isScanning: () => pick.isScanning(),
127 waitForScan: (timeoutMs) => pick.waitForScan(timeoutMs),
128 refreshGitStatus: () => pick.refreshGitStatus(),
129 fileSearch: (query, next) => pick.fileSearch(query, next),
130 glob: (pattern, next) => pick.glob(pattern, next),
131 directorySearch: (query, next) => pick.directorySearch(query, next),
132 mixedSearch: (query, next) => pick.mixedSearch(query, next),
133 grep: (query, next) => pick.grep(query, next),
134 trackQuery: (query, file) => pick.trackQuery(query, file),
135 getHistoricalQuery: (offset) => pick.getHistoricalQuery(offset),
136 },
137 }
138}
139
140export * as Fff from "./fff.bun"

Callers

nothing calls this directly

Calls 12

createMethod · 0.65
destroyMethod · 0.65
isScanningMethod · 0.65
waitForScanMethod · 0.65
refreshGitStatusMethod · 0.65
fileSearchMethod · 0.65
globMethod · 0.65
directorySearchMethod · 0.65
mixedSearchMethod · 0.65
grepMethod · 0.65
trackQueryMethod · 0.65
getHistoricalQueryMethod · 0.65

Tested by

no test coverage detected