import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
import "./chunk-J2PHTRHC.mjs";
import {
  capabilities_exports
} from "./chunk-OQYHRZYF.mjs";
import {
  activation_events_exports
} from "./chunk-JAZVHID3.mjs";
import "./chunk-Z4TJPSMP.mjs";
import "./chunk-XHAKT6UD.mjs";
import "./chunk-7OWSHPYK.mjs";
import {
  plugin_exports
} from "./chunk-DZ2XLAGI.mjs";
import {
  capability_exports
} from "./chunk-64IMLAS2.mjs";
import "./chunk-HSLMI22Q.mjs";

// src/plugin-runtime/capability.ts
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as ManagedRuntime from "effect/ManagedRuntime";
var capability_default = capability_exports.makeModule(Effect.fnUntraced(function* () {
  const capabilityManager = yield* capability_exports.Service;
  const pluginManager = yield* plugin_exports.Service;
  yield* plugin_exports.activate(activation_events_exports.SetupLayer);
  const layers = yield* capability_exports.getAll(capabilities_exports.Layer);
  const capabilityServiceLayer = Layer.succeed(capability_exports.Service, capabilityManager);
  const pluginServiceLayer = Layer.succeed(plugin_exports.Service, pluginManager);
  const composedLayer = layers.length > 0 ? Layer.mergeAll(capabilityServiceLayer, pluginServiceLayer, ...layers) : Layer.mergeAll(capabilityServiceLayer, pluginServiceLayer);
  const runtime = ManagedRuntime.make(composedLayer);
  return capability_exports.contributes(capabilities_exports.ManagedRuntime, runtime);
}));
export {
  capability_default as default
};
//# sourceMappingURL=capability-OSVYGK4X.mjs.map
