import { join } from "path";
import { existsSync, mkdirSync } from "fs";
//#region src/cli/commands/onboard/workspace.ts
/**
* Workspace Setup for Onboarding
*
* Mirrors `src/cli/utils/workspace.ts`: workspace root + memory/ only.
* Profile Markdown is seeded under `agents/<id>/profile/` via seedMainAgentProfileMarkdown.
*/
/**
* Check if workspace directory exists
*/
function isWorkspaceSetup(workspacePath) {
	return existsSync(workspacePath);
}
/**
* Create markdown workspace root and memory/ only
*/
function setupWorkspace(workspacePath) {
	if (!existsSync(workspacePath)) {
		mkdirSync(workspacePath, { recursive: true });
		console.log("✅ Created workspace:", workspacePath);
	} else console.log("ℹ️  Workspace already exists:", workspacePath);
	const memoryDir = join(workspacePath, "memory");
	if (!existsSync(memoryDir)) {
		mkdirSync(memoryDir, { recursive: true });
		console.log("✅ Created memory/ directory");
	}
}
//#endregion
export { isWorkspaceSetup, setupWorkspace };

//# sourceMappingURL=workspace.js.map