diff --git a/.claude/skills/meta-compile/scripts/meta-compile.ps1 b/.claude/skills/meta-compile/scripts/meta-compile.ps1 index 4f3a6ed4..19615a16 100644 --- a/.claude/skills/meta-compile/scripts/meta-compile.ps1 +++ b/.claude/skills/meta-compile/scripts/meta-compile.ps1 @@ -1,4 +1,4 @@ -# meta-compile v1.5 — Compile 1C metadata object from JSON +# meta-compile v1.6 — Compile 1C metadata object from JSON # Source: https://github.com/Nikolay-Shirokov/cc-1c-skills param( [Parameter(Mandatory)] @@ -789,13 +789,13 @@ function Emit-Attribute { X "$indent`t`t" X "$indent`t`t" - # FillFromFillingValue — not for tabular/processor (non-stored objects don't have these) - if ($context -notin @("tabular", "processor")) { + # FillFromFillingValue — not for tabular/processor/chart (Chart* types don't support these) + if ($context -notin @("tabular", "processor", "chart")) { X "$indent`t`tfalse" } - # FillValue — not for tabular/processor - if ($context -notin @("tabular", "processor")) { + # FillValue — not for tabular/processor/chart + if ($context -notin @("tabular", "processor", "chart")) { Emit-FillValue "$indent`t`t" $typeStr } @@ -828,7 +828,10 @@ function Emit-Attribute { X "$indent`t`t$indexing" X "$indent`t`tUse" - X "$indent`t`tUse" + # DataHistory — not for Chart* types (ChartOfAccounts, ChartOfCharacteristicTypes, ChartOfCalculationTypes) + if ($context -ne "chart") { + X "$indent`t`tUse" + } } X "$indent`t" @@ -2633,6 +2636,7 @@ if ($objType -in $typesWithAttrTS) { "Catalog" { "catalog" } "Document" { "document" } { $_ -in @("DataProcessor","Report") } { "processor" } + { $_ -in @("ChartOfAccounts","ChartOfCharacteristicTypes","ChartOfCalculationTypes") } { "chart" } default { "object" } } foreach ($a in $attrs) { diff --git a/.claude/skills/meta-compile/scripts/meta-compile.py b/.claude/skills/meta-compile/scripts/meta-compile.py index 3adbb1b9..30068532 100644 --- a/.claude/skills/meta-compile/scripts/meta-compile.py +++ b/.claude/skills/meta-compile/scripts/meta-compile.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# meta-compile v1.5 — Compile 1C metadata object from JSON +# meta-compile v1.6 — Compile 1C metadata object from JSON # Source: https://github.com/Nikolay-Shirokov/cc-1c-skills import argparse @@ -747,9 +747,9 @@ def emit_attribute(indent, parsed, context): X(f'{indent}\t\tfalse') X(f'{indent}\t\t') X(f'{indent}\t\t') - if context not in ('tabular', 'processor'): + if context not in ('tabular', 'processor', 'chart'): X(f'{indent}\t\tfalse') - if context not in ('tabular', 'processor'): + if context not in ('tabular', 'processor', 'chart'): emit_fill_value(f'{indent}\t\t', type_str) fill_checking = 'DontCheck' if 'req' in parsed.get('flags', []): @@ -777,7 +777,9 @@ def emit_attribute(indent, parsed, context): indexing = parsed['indexing'] X(f'{indent}\t\t{indexing}') X(f'{indent}\t\tUse') - X(f'{indent}\t\tUse') + # DataHistory — not for Chart* types (ChartOfAccounts, ChartOfCharacteristicTypes, ChartOfCalculationTypes) + if context != 'chart': + X(f'{indent}\t\tUse') X(f'{indent}\t') X(f'{indent}') @@ -2305,6 +2307,8 @@ if obj_type in types_with_attr_ts: context = 'document' elif obj_type in ('DataProcessor', 'Report'): context = 'processor' + elif obj_type in ('ChartOfAccounts', 'ChartOfCharacteristicTypes', 'ChartOfCalculationTypes'): + context = 'chart' else: context = 'object' for a in attrs: diff --git a/tests/skills/cases/meta-compile/snapshots/chart-of-calculation-types/ChartsOfCalculationTypes/ВидыНачислений.xml b/tests/skills/cases/meta-compile/snapshots/chart-of-calculation-types/ChartsOfCalculationTypes/ВидыНачислений.xml index 1e8b05e6..ebc76ee0 100644 --- a/tests/skills/cases/meta-compile/snapshots/chart-of-calculation-types/ChartsOfCalculationTypes/ВидыНачислений.xml +++ b/tests/skills/cases/meta-compile/snapshots/chart-of-calculation-types/ChartsOfCalculationTypes/ВидыНачислений.xml @@ -308,8 +308,6 @@ false - false - DontCheck Items @@ -321,7 +319,6 @@ Auto DontIndex Use - Use diff --git a/tests/skills/cases/meta-compile/snapshots/chart-of-characteristic-types/ChartsOfCharacteristicTypes/ДополнительныеРеквизитыИСведения.xml b/tests/skills/cases/meta-compile/snapshots/chart-of-characteristic-types/ChartsOfCharacteristicTypes/ДополнительныеРеквизитыИСведения.xml index ad6aa150..da7389fe 100644 --- a/tests/skills/cases/meta-compile/snapshots/chart-of-characteristic-types/ChartsOfCharacteristicTypes/ДополнительныеРеквизитыИСведения.xml +++ b/tests/skills/cases/meta-compile/snapshots/chart-of-characteristic-types/ChartsOfCharacteristicTypes/ДополнительныеРеквизитыИСведения.xml @@ -340,8 +340,6 @@ false - false - DontCheck Items @@ -353,7 +351,6 @@ Auto DontIndex Use - Use