import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
import {
  make,
  make2
} from "./chunk-DHSHRYIB.mjs";
import "./chunk-J2PHTRHC.mjs";
import {
  capabilities_exports
} from "./chunk-OQYHRZYF.mjs";
import "./chunk-JAZVHID3.mjs";
import "./chunk-Z4TJPSMP.mjs";
import "./chunk-XHAKT6UD.mjs";
import "./chunk-7OWSHPYK.mjs";
import "./chunk-DZ2XLAGI.mjs";
import {
  capability_exports
} from "./chunk-64IMLAS2.mjs";
import "./chunk-HSLMI22Q.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-SR2EIZFP.mjs.map
