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

Function npmEntrypoint

packages/core/test/plugin/provider-dynamic.test.ts:23–29  ·  view source on GitHub ↗
(entrypoint?: string)

Source from the content-addressed store, hash-verified

21const itWithAISDK = testEffect(Layer.mergeAll(PluginTestLayer, AppNodeBuilder.build(AISDK.node)))
22
23function npmEntrypoint(entrypoint?: string) {
24 return Npm.Service.of({
25 add: () => Effect.succeed({ directory: "", entrypoint }),
26 install: () => Effect.void,
27 which: () => Effect.succeed(undefined),
28 })
29}
30
31const addPlugin = Effect.fn(function* (npm?: Npm.Interface) {
32 const plugin = yield* PluginV2.Service

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected