Resolve kernel-owned capture probes

This commit is contained in:
Meta Vens 2026-07-10 10:31:36 +01:00
commit 4ee0f0a8b9

View file

@ -2977,7 +2977,7 @@ function readRuntimeLayoutProbe(runtime, fixtureId) {
if (!config) return { config: null, document: null, errors: [] };
const errors = [];
const probePath = config.path || "";
const absoluteProbePath = path.join(repoRoot, probePath);
const absoluteProbePath = resolveWorkspacePath(probePath);
if (!probePath || !existsSync(absoluteProbePath)) {
return { config, document: null, errors: [`${probePath || "layoutProbe.path"}:missing`] };
}
@ -2994,7 +2994,7 @@ function readRuntimeLayoutProbe(runtime, fixtureId) {
const schemaPath = config.schema ? manifest.schemas?.[config.schema] : "";
if (schemaPath) {
try {
const schema = JSON.parse(readFileSync(path.join(repoRoot, schemaPath), "utf8"));
const schema = JSON.parse(readFileSync(resolveWorkspacePath(schemaPath), "utf8"));
errors.push(...validateSchemaSubset(schema, document, `layoutProbe:${fixtureId}`));
} catch (error) {
errors.push(`${schemaPath}:unreadable:${error instanceof Error ? error.message : String(error)}`);