Nick Shirokov
48b08d77e5
test(skd-decompile): 6 snapshot-based test cases по слоям
...
Кейсы создают исходник через preRun (skd-compile), декомпилируют его и
сравнивают workDir со снапшотом (Template.xml + decompiled.json):
- minimal-query — базовый DataSetQuery
- fields-types-and-restrictions — типы, роли, restrictions, multilang
title, appearance, composite type, presentationExpression
- calc-total-params — calculatedFields, totalFields, parameters с
autoDates/valueList/hidden/availableValues
- templates-with-style-merge-drilldown — built-in стили header/data,
merge >/|, drilldown свёртка
- variant-full — selection с folder, filter Or, conditionalAppearance,
outputParameters, dataParameters="auto", structure shorthand,
groupTemplates
- dataset-types — DataSetQuery + DataSetObject + DataSetUnion
Все 6 passes на runtime=powershell. Готовая база для регрессии при
питон-порте (можно прогнать тот же набор через --runtime python).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-21 16:20:59 +03:00
Nick Shirokov
5ec21f24b4
feat(skd-decompile): scaffold — Ring 3 fail-fast, sentinel/warnings, query extraction
...
Layer 1 of the skd-decompile plan: SKILL.md with disable-model-invocation,
ps1 skeleton with XML→JSON pipeline, namespace probe for non-DCS root,
sentinel/warnings accumulator, and DataSetQuery extraction (query only).
Test case minimal-query demonstrates round-trip via skd-compile preRun.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-21 13:40:46 +03:00