import { getContextWithOpts } from "../../context.js";
import { getSessionIndex } from "../../utils/session.js";
//#region src/cli/commands/session/utils.ts
/**
* Session command utilities
*/
/**
* Get initialized session manager
*/
async function getManager() {
	getContextWithOpts();
	return getSessionIndex();
}
/**
* Collect multiple option values into array
*/
function collect(value, previous) {
	return previous.concat([value]);
}
//#endregion
export { collect, getManager };

//# sourceMappingURL=utils.js.map