"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WorkspaceMetadataSchema = void 0;
const zod_1 = require("zod");
/**
 * Zod schema for workspace metadata validation
 */
exports.WorkspaceMetadataSchema = zod_1.z.object({
    id: zod_1.z.string().min(1, "Workspace ID is required"),
    name: zod_1.z.string().min(1, "Workspace name is required"),
    projectName: zod_1.z.string().min(1, "Project name is required"),
    projectPath: zod_1.z.string().min(1, "Project path is required"),
    createdAt: zod_1.z.string().optional(), // ISO 8601 timestamp (optional for backward compatibility)
    // Legacy field - ignored on load, removed on save
    workspacePath: zod_1.z.string().optional(),
});
//# sourceMappingURL=workspace.js.map