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

Function loadInternalPlugin

packages/opencode/src/plugin/tui/runtime.ts:341–361  ·  view source on GitHub ↗
(item: InternalTuiPlugin)

Source from the content-addressed store, hash-verified

339}
340
341function loadInternalPlugin(item: InternalTuiPlugin): PluginLoad {
342 const spec = item.id
343 const target = spec
344
345 return {
346 options: undefined,
347 spec,
348 target,
349 retry: false,
350 source: "internal",
351 id: item.id,
352 module: item,
353 origin: {
354 spec,
355 scope: "global",
356 source: target,
357 },
358 plugin_root: process.cwd(),
359 theme_files: [],
360 }
361}
362
363async function readThemeFiles(spec: string, pkg?: PluginPackage) {
364 if (!pkg) return [] as string[]

Callers 1

loadFunction · 0.85

Calls 1

cwdMethod · 0.65

Tested by

no test coverage detected