import { init_agent_scope, resolveAgentProfileDir, resolveDefaultAgentId } from "../agent/agent-scope.js";
import { WORKSPACE_FILES, init_paths } from "../config/paths.js";
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
import { join } from "node:path";
//#region src/gateway/workspace-heartbeat-path.ts
init_agent_scope();
init_paths();
/** Resolved absolute path to `HEARTBEAT.md` under the default agent's `profile/` directory. */
function resolveHeartbeatMdPath(config) {
	if (!getWorkspacePath(config)) return null;
	return join(resolveAgentProfileDir(config, resolveDefaultAgentId(config)), WORKSPACE_FILES.HEARTBEAT);
}
//#endregion
export { resolveHeartbeatMdPath };

//# sourceMappingURL=workspace-heartbeat-path.js.map