import { isCronSessionKey, isSubagentSessionKey } from "../../routing/session-key-utils.js";
import { init_session_key } from "../../routing/session-key.js";
import { DEFAULT_AGENTS_FILENAME, DEFAULT_IDENTITY_FILENAME, DEFAULT_SOUL_FILENAME, DEFAULT_TOOLS_FILENAME, DEFAULT_USER_FILENAME } from "../context/workspace.js";
//#region src/agent/bootstrap/filter-bootstrap-files.ts
init_session_key();
const MINIMAL_BOOTSTRAP_ALLOWLIST = new Set([
	DEFAULT_AGENTS_FILENAME,
	DEFAULT_TOOLS_FILENAME,
	DEFAULT_SOUL_FILENAME,
	DEFAULT_IDENTITY_FILENAME,
	DEFAULT_USER_FILENAME
]);
/** Subagent and cron sessions omit MEMORY.md and other heavy profile files. */
function filterBootstrapFilesForSession(files, sessionKey) {
	if (!sessionKey || !isSubagentSessionKey(sessionKey) && !isCronSessionKey(sessionKey)) return files;
	return files.filter((file) => MINIMAL_BOOTSTRAP_ALLOWLIST.has(file.name));
}
//#endregion
export { filterBootstrapFilesForSession };

//# sourceMappingURL=filter-bootstrap-files.js.map