import { init_paths, resolveAgentHomeDir } from "../../config/paths.js";
import { join } from "node:path";
//#region src/workflows/store/paths.ts
init_paths();
function resolveWorkflowRootDir(config, agentId) {
	return join(resolveAgentHomeDir(config, agentId), "workflows");
}
function resolveWorkflowRunsDir(config, agentId) {
	return join(resolveWorkflowRootDir(config, agentId), "runs");
}
function resolveWorkflowRunDir(config, agentId, runId) {
	return join(resolveWorkflowRunsDir(config, agentId), runId);
}
function resolveWorkflowRunEventsPath(config, agentId, runId) {
	return join(resolveWorkflowRunDir(config, agentId, runId), "events.jsonl");
}
function resolveWorkflowRunViewPath(config, agentId, runId) {
	return join(resolveWorkflowRunDir(config, agentId, runId), "view.json");
}
function resolveWorkflowRunArtifactsDir(config, agentId, runId) {
	return join(resolveWorkflowRunDir(config, agentId, runId), "artifacts");
}
//#endregion
export { resolveWorkflowRootDir, resolveWorkflowRunArtifactsDir, resolveWorkflowRunDir, resolveWorkflowRunEventsPath, resolveWorkflowRunViewPath, resolveWorkflowRunsDir };

//# sourceMappingURL=paths.js.map