import {
  make,
  make2
} from "./chunk-EIFGKQSA.mjs";
import "./chunk-4DQMLMGU.mjs";
import {
  capabilities_exports
} from "./chunk-IGRQWMWW.mjs";
import "./chunk-NPUEVX42.mjs";
import "./chunk-YAFEA4GV.mjs";
import "./chunk-WGWEEBUV.mjs";
import "./chunk-PKQT6C53.mjs";
import "./chunk-KWP6PKIU.mjs";
import {
  capability_exports
} from "./chunk-ZQO3UZ4R.mjs";
import "./chunk-J5LGTIGS.mjs";

// src/plugin-operation/history/capability.ts
import * as Effect from "effect/Effect";
var capability_default = capability_exports.makeModule(Effect.fnUntraced(function* () {
  const capabilities = yield* capability_exports.Service;
  const undoRegistry = make(() => capabilities.getAll(capabilities_exports.UndoMapping).flat());
  const invoker = yield* capability_exports.get(capabilities_exports.OperationInvoker);
  const historyTracker = make2(invoker, undoRegistry);
  return [
    capability_exports.contributes(capabilities_exports.UndoRegistry, undoRegistry),
    capability_exports.contributes(capabilities_exports.HistoryTracker, historyTracker)
  ];
}));
export {
  capability_default as default
};
//# sourceMappingURL=capability-DU35RXMD.mjs.map
