import { createDefaultContext } from "./registry.js";
//#region src/cli/context.ts
/**
* CLI parsed-options + context builder.
*
* Extracted from `cli/index.ts` so command modules can import
* `getContextWithOpts` without pulling the full CLI wiring graph (which
* imports `command-loaders.ts`, which lazy-imports every command file). Before
* this split, every command file circularly depended on `cli/index.ts` →
* `command-loaders.ts` → that same command file.
*/
/**
* Global parsed options — updated before each command via the Commander
* `preAction` hook in `cli/index.ts`.
*/
const parsedOpts = {};
function getContextWithOpts(argv = process.argv) {
	return createDefaultContext(argv, parsedOpts);
}
//#endregion
export { getContextWithOpts, parsedOpts };

//# sourceMappingURL=context.js.map