mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-19 17:19:42 +03:00
feat(verify-snapshots): платформенная верификация skd-edit
skd-edit добавлен в SKD_PLATFORM_VERIFY — результат заворачивается в ERF и собирается через epf-build, как уже сделано для skd-compile. Резолвер пути шаблона теперь учитывает params.templatePath (фолбэк: outputPath, Template.xml). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -323,7 +323,7 @@ const STANDALONE_SKILLS = new Set([
|
|||||||
// Standalone skills that CAN be platform-verified by wrapping their output in
|
// Standalone skills that CAN be platform-verified by wrapping their output in
|
||||||
// an external report (ERF) and running erf-build — the platform parses the
|
// an external report (ERF) and running erf-build — the platform parses the
|
||||||
// schema and we know if it's accepted.
|
// schema and we know if it's accepted.
|
||||||
const SKD_PLATFORM_VERIFY = new Set(['skd-compile']);
|
const SKD_PLATFORM_VERIFY = new Set(['skd-compile', 'skd-edit']);
|
||||||
|
|
||||||
// EPF/ERF skills — need epf-build to verify, not LoadConfigFromFiles
|
// EPF/ERF skills — need epf-build to verify, not LoadConfigFromFiles
|
||||||
const EPF_SKILLS = new Set([
|
const EPF_SKILLS = new Set([
|
||||||
@@ -524,7 +524,7 @@ async function verifyCase(skillName, caseName, skillConfig, caseData, opts) {
|
|||||||
log('platform-load', true, 'skipped (no v8 context)');
|
log('platform-load', true, 'skipped (no v8 context)');
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
const tplName = caseData.params?.outputPath || 'Template.xml';
|
const tplName = caseData.params?.templatePath || caseData.params?.outputPath || 'Template.xml';
|
||||||
const tplPath = join(workDir, tplName);
|
const tplPath = join(workDir, tplName);
|
||||||
if (!existsSync(tplPath)) {
|
if (!existsSync(tplPath)) {
|
||||||
result.errors.push(`Output not produced at ${tplPath}`);
|
result.errors.push(`Output not produced at ${tplPath}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user