()
| 285 | const Proto: Omit<ExecutionPlan<any>, "steps"> = { |
| 286 | [TypeId]: TypeId, |
| 287 | get captureRequirements() { |
| 288 | const self = this as any as ExecutionPlan<any> |
| 289 | return effect.contextWith((context: Context.Context<any>) => |
| 290 | effect.succeed(makeProto(self.steps.map((step) => ({ |
| 291 | ...step, |
| 292 | provide: Layer.isLayer(step.provide) |
| 293 | ? Layer.provide(step.provide, Layer.succeedContext(context)) |
| 294 | : step.provide |
| 295 | })) as any)) |
| 296 | ) |
| 297 | }, |
| 298 | pipe() { |
| 299 | return pipeArguments(this, arguments) |
| 300 | } |