import {
  PluginManagerContext
} from "./chunk-FHQTHCX7.mjs";
import {
  EmptyHistoryError,
  history_tracker_exports,
  undo_mapping_exports,
  undo_registry_exports
} from "./chunk-EIFGKQSA.mjs";
import {
  Label,
  UndoOperation
} from "./chunk-4DQMLMGU.mjs";
import {
  capabilities_exports
} from "./chunk-IGRQWMWW.mjs";
import {
  activation_events_exports
} from "./chunk-NPUEVX42.mjs";
import "./chunk-YAFEA4GV.mjs";
import {
  capability_manager_exports,
  plugin_manager_exports
} from "./chunk-WGWEEBUV.mjs";
import {
  activation_event_exports
} from "./chunk-PKQT6C53.mjs";
import {
  plugin_exports
} from "./chunk-KWP6PKIU.mjs";
import {
  capability_exports
} from "./chunk-ZQO3UZ4R.mjs";
import "./chunk-J5LGTIGS.mjs";

// src/plugin-operation/meta.ts
var meta = {
  id: "dxos.org/plugin/operation",
  name: "Operation Plugin",
  description: "Provides operation invocation, undo registry, and history tracking."
};

// src/plugin-operation/OperationPlugin.ts
var OperationInvoker = capability_exports.lazy("OperationInvoker", () => import("./invoker-capability-7QW56NOM.mjs"));
var HistoryCapabilities = capability_exports.lazy("HistoryCapabilities", () => import("./capability-DU35RXMD.mjs"));
var OperationPlugin = plugin_exports.define(meta).pipe(plugin_exports.addModule({
  activatesOn: activation_events_exports.ManagedRuntimeReady,
  activatesBefore: [
    activation_events_exports.SetupOperationResolver
  ],
  activatesAfter: [
    activation_events_exports.OperationInvokerReady
  ],
  activate: OperationInvoker
}), plugin_exports.addModule({
  activatesOn: activation_events_exports.OperationInvokerReady,
  activate: HistoryCapabilities
}), plugin_exports.make);

// src/plugin-runtime/meta.ts
var meta2 = {
  id: "dxos.org/plugin/runtime",
  name: "Runtime Plugin",
  description: "Provides a managed Effect runtime by composing contributed layers."
};

// src/plugin-runtime/RuntimePlugin.ts
var ManagedRuntimeCapability = capability_exports.lazy("ManagedRuntime", () => import("./capability-7LE5X2NH.mjs"));
var RuntimePlugin = plugin_exports.define(meta2).pipe(plugin_exports.addModule({
  activatesOn: activation_events_exports.Startup,
  activatesBefore: [
    activation_events_exports.SetupLayer
  ],
  activatesAfter: [
    activation_events_exports.ManagedRuntimeReady
  ],
  activate: ManagedRuntimeCapability
}), plugin_exports.make);
export {
  activation_event_exports as ActivationEvent,
  activation_events_exports as ActivationEvents,
  capabilities_exports as Capabilities,
  capability_exports as Capability,
  capability_manager_exports as CapabilityManager,
  EmptyHistoryError,
  history_tracker_exports as HistoryTracker,
  Label,
  OperationPlugin,
  plugin_exports as Plugin,
  plugin_manager_exports as PluginManager,
  PluginManagerContext,
  RuntimePlugin,
  undo_mapping_exports as UndoMapping,
  UndoOperation,
  undo_registry_exports as UndoRegistry
};
//# sourceMappingURL=index.mjs.map
