MCPcopy Index your code
hub / github.com/anomalyco/opencode / exportOptions

Function exportOptions

packages/opencode/src/plugin/install.ts:121–126  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

119}
120
121function exportOptions(value: unknown): Record<string, unknown> | undefined {
122 if (!isRecord(value)) return
123 const config = value.config
124 if (!isRecord(config)) return
125 return config
126}
127
128function exportTarget(pkg: Record<string, unknown>, kind: Kind) {
129 const exports = pkg.exports

Callers 1

exportTargetFunction · 0.85

Calls 1

isRecordFunction · 0.90

Tested by

no test coverage detected