(input: Plugin<R>)
| 79 | const skill = yield* SkillV2.Service |
| 80 | const reference = yield* Reference.Service |
| 81 | const add = <R>(input: Plugin<R>) => { |
| 82 | const loaded = { |
| 83 | id: input.id, |
| 84 | effect: (context: PluginContext) => |
| 85 | input |
| 86 | .effect(context) |
| 87 | .pipe( |
| 88 | Effect.provideService(Catalog.Service, catalog), |
| 89 | Effect.provideService(CommandV2.Service, commands), |
| 90 | Effect.provideService(Integration.Service, integration), |
| 91 | Effect.provideService(AgentV2.Service, agents), |
| 92 | Effect.provideService(Config.Service, config), |
| 93 | Effect.provideService(Location.Service, location), |
| 94 | Effect.provideService(ModelsDev.Service, modelsDev), |
| 95 | Effect.provideService(Npm.Service, npm), |
| 96 | Effect.provideService(EventV2.Service, events), |
| 97 | Effect.provideService(FSUtil.Service, fs), |
| 98 | Effect.provideService(FileSystem.Service, filesystem), |
| 99 | Effect.provideService(Global.Service, global), |
| 100 | Effect.provideService(HttpClient.HttpClient, http), |
| 101 | Effect.provideService(SkillV2.Service, skill), |
| 102 | Effect.provideService(Reference.Service, reference), |
| 103 | ), |
| 104 | } |
| 105 | return plugin.add(PluginV2.ID.make(loaded.id), loaded.effect) |
| 106 | } |
| 107 | |
| 108 | yield* State.batch( |
| 109 | Effect.gen(function* () { |
no test coverage detected