"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.discoverWorkspacePaths = discoverWorkspacePaths;
const workspace_ignore_1 = require("../workspace-ignore");
const workspace_traversal_1 = require("../workspace-traversal");
function discoverWorkspacePaths(options) {
    const policy = (0, workspace_ignore_1.createIgnorePolicy)({ workspaceRoot: options.workspaceRoot });
    const result = (0, workspace_traversal_1.traverseWorkspace)({ workspaceRoot: options.workspaceRoot, policy, budgets: options.budgets, readContent: false });
    return {
        paths: result.entries.filter((entry) => options.include?.(entry) ?? true).map((entry) => entry.path),
        evidence: {
            generatedAt: options.generatedAt ?? new Date().toISOString(),
            policy: { id: policy.id, version: policy.version },
            complete: result.complete,
            healthClaim: "not-assessed",
            usage: result.usage,
            limits: result.limits,
            exhaustedBudget: result.exhaustedBudget,
            omission: result.omission,
            recovery: result.recovery
        }
    };
}
