diff --git a/.claude/skills/meta-compile/reference/types-basic.md b/.claude/skills/meta-compile/reference/types-basic.md index ad093af0..29a74b3b 100644 --- a/.claude/skills/meta-compile/reference/types-basic.md +++ b/.claude/skills/meta-compile/reference/types-basic.md @@ -18,7 +18,7 @@ | `checkUnique` | `false` | CheckUnique | | `defaultPresentation` | `AsDescription` | DefaultPresentation | | `subordinationUse` | `ToItems` | SubordinationUse | -| `quickChoice` | `true` | QuickChoice | +| `quickChoice` | `false` | QuickChoice | | `choiceMode` | `BothWays` | ChoiceMode | | `owners` | `[]` | Owners | | `attributes` | `[]` | → Attribute в ChildObjects | diff --git a/.claude/skills/meta-compile/scripts/meta-compile.ps1 b/.claude/skills/meta-compile/scripts/meta-compile.ps1 index 2e863e2e..b2918df4 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.10 — Compile 1C metadata object from JSON +# meta-compile v1.11 — Compile 1C metadata object from JSON # Source: https://github.com/Nikolay-Shirokov/cc-1c-skills param( [Parameter(Mandatory)] @@ -1129,7 +1129,7 @@ function Emit-CatalogProperties { X "$i" X "$iAuto" X "$iInDialog" - $quickChoice = if ($def.quickChoice -eq $false) { "false" } else { "true" } + $quickChoice = if ($def.quickChoice -eq $true) { "true" } else { "false" } $choiceMode = Get-EnumProp "ChoiceMode" "choiceMode" "BothWays" X "$i$quickChoice" X "$i$choiceMode" @@ -1292,7 +1292,8 @@ function Emit-EnumProperties { Emit-StandardAttributes $i "Enum" X "$i" - X "$itrue" + $quickChoice = if ($def.quickChoice -eq $false) { "false" } else { "true" } + X "$i$quickChoice" X "$iBothWays" X "$i" X "$i" @@ -1663,7 +1664,8 @@ function Emit-ExchangePlanProperties { X "$i$includeExt" X "$i" - X "$itrue" + $quickChoice = if ($def.quickChoice -eq $true) { "true" } else { "false" } + X "$i$quickChoice" X "$iBothWays" X "$i" X "$i`tExchangePlan.$objName.StandardAttribute.Description" @@ -1764,7 +1766,8 @@ function Emit-ChartOfCharacteristicTypesProperties { X "$i" X "$iAuto" X "$iInDialog" - X "$itrue" + $quickChoice = if ($def.quickChoice -eq $true) { "true" } else { "false" } + X "$i$quickChoice" X "$iBothWays" X "$i" X "$i`tChartOfCharacteristicTypes.$objName.StandardAttribute.Description" @@ -1905,7 +1908,8 @@ function Emit-ChartOfAccountsProperties { X "$i" X "$iAuto" - X "$itrue" + $quickChoice = if ($def.quickChoice -eq $true) { "true" } else { "false" } + X "$i$quickChoice" X "$iBothWays" X "$i" X "$i`tChartOfAccounts.$objName.StandardAttribute.Description" @@ -2021,7 +2025,8 @@ function Emit-ChartOfCalculationTypesProperties { X "$i" X "$iAuto" X "$iInDialog" - X "$itrue" + $quickChoice = if ($def.quickChoice -eq $true) { "true" } else { "false" } + X "$i$quickChoice" X "$iBothWays" X "$i" X "$i`tChartOfCalculationTypes.$objName.StandardAttribute.Description" diff --git a/.claude/skills/meta-compile/scripts/meta-compile.py b/.claude/skills/meta-compile/scripts/meta-compile.py index ecf1e27c..196397e8 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.10 — Compile 1C metadata object from JSON +# meta-compile v1.11 — Compile 1C metadata object from JSON # Source: https://github.com/Nikolay-Shirokov/cc-1c-skills import argparse @@ -1024,7 +1024,7 @@ def emit_catalog_properties(indent): X(f'{i}') X(f'{i}Auto') X(f'{i}InDialog') - quick_choice = 'false' if defn.get('quickChoice') is False else 'true' + quick_choice = 'true' if defn.get('quickChoice') is True else 'false' choice_mode = get_enum_prop('ChoiceMode', 'choiceMode', 'BothWays') X(f'{i}{quick_choice}') X(f'{i}{choice_mode}') @@ -1157,7 +1157,8 @@ def emit_enum_properties(indent): X(f'{i}false') emit_standard_attributes(i, 'Enum') X(f'{i}') - X(f'{i}true') + quick_choice = 'false' if defn.get('quickChoice') is False else 'true' + X(f'{i}{quick_choice}') X(f'{i}BothWays') X(f'{i}') X(f'{i}') @@ -1471,7 +1472,8 @@ def emit_exchange_plan_properties(indent): X(f'{i}{distributed}') X(f'{i}{include_ext}') X(f'{i}') - X(f'{i}true') + quick_choice = 'true' if defn.get('quickChoice') is True else 'false' + X(f'{i}{quick_choice}') X(f'{i}BothWays') X(f'{i}') X(f'{i}\tExchangePlan.{obj_name}.StandardAttribute.Description') @@ -1557,7 +1559,8 @@ def emit_chart_of_characteristic_types_properties(indent): X(f'{i}') X(f'{i}Auto') X(f'{i}InDialog') - X(f'{i}true') + quick_choice = 'true' if defn.get('quickChoice') is True else 'false' + X(f'{i}{quick_choice}') X(f'{i}BothWays') X(f'{i}') X(f'{i}\tChartOfCharacteristicTypes.{obj_name}.StandardAttribute.Description') @@ -1673,7 +1676,8 @@ def emit_chart_of_accounts_properties(indent): X(f'{i}') X(f'{i}') X(f'{i}Auto') - X(f'{i}true') + quick_choice = 'true' if defn.get('quickChoice') is True else 'false' + X(f'{i}{quick_choice}') X(f'{i}BothWays') X(f'{i}') X(f'{i}\tChartOfAccounts.{obj_name}.StandardAttribute.Description') @@ -1764,7 +1768,8 @@ def emit_chart_of_calculation_types_properties(indent): X(f'{i}') X(f'{i}Auto') X(f'{i}InDialog') - X(f'{i}true') + quick_choice = 'true' if defn.get('quickChoice') is True else 'false' + X(f'{i}{quick_choice}') X(f'{i}BothWays') X(f'{i}') X(f'{i}\tChartOfCalculationTypes.{obj_name}.StandardAttribute.Description') diff --git a/tests/skills/cases/meta-compile/snapshots/batch/Catalogs/Валюты.xml b/tests/skills/cases/meta-compile/snapshots/batch/Catalogs/Валюты.xml index e6edf1af..6c669c51 100644 --- a/tests/skills/cases/meta-compile/snapshots/batch/Catalogs/Валюты.xml +++ b/tests/skills/cases/meta-compile/snapshots/batch/Catalogs/Валюты.xml @@ -287,7 +287,7 @@ Auto InDialog - true + false BothWays Catalog.Валюты.StandardAttribute.Description diff --git a/tests/skills/cases/meta-compile/snapshots/catalog-basic/Catalogs/Валюты.xml b/tests/skills/cases/meta-compile/snapshots/catalog-basic/Catalogs/Валюты.xml index e6edf1af..6c669c51 100644 --- a/tests/skills/cases/meta-compile/snapshots/catalog-basic/Catalogs/Валюты.xml +++ b/tests/skills/cases/meta-compile/snapshots/catalog-basic/Catalogs/Валюты.xml @@ -287,7 +287,7 @@ Auto InDialog - true + false BothWays Catalog.Валюты.StandardAttribute.Description diff --git a/tests/skills/cases/meta-compile/snapshots/catalog-hierarchical/Catalogs/Подразделения.xml b/tests/skills/cases/meta-compile/snapshots/catalog-hierarchical/Catalogs/Подразделения.xml index f1cfe8a5..a37c6a46 100644 --- a/tests/skills/cases/meta-compile/snapshots/catalog-hierarchical/Catalogs/Подразделения.xml +++ b/tests/skills/cases/meta-compile/snapshots/catalog-hierarchical/Catalogs/Подразделения.xml @@ -287,7 +287,7 @@ Auto InDialog - true + false BothWays Catalog.Подразделения.StandardAttribute.Description diff --git a/tests/skills/cases/meta-compile/snapshots/catalog-minimal/Catalogs/А.xml b/tests/skills/cases/meta-compile/snapshots/catalog-minimal/Catalogs/А.xml index 087d6edd..8a49fdf4 100644 --- a/tests/skills/cases/meta-compile/snapshots/catalog-minimal/Catalogs/А.xml +++ b/tests/skills/cases/meta-compile/snapshots/catalog-minimal/Catalogs/А.xml @@ -287,7 +287,7 @@ Auto InDialog - true + false BothWays Catalog.А.StandardAttribute.Description diff --git a/tests/skills/cases/meta-compile/snapshots/catalog-mixed-types/Catalogs/Контрагенты.xml b/tests/skills/cases/meta-compile/snapshots/catalog-mixed-types/Catalogs/Контрагенты.xml index 369b3a6f..8a0ff68d 100644 --- a/tests/skills/cases/meta-compile/snapshots/catalog-mixed-types/Catalogs/Контрагенты.xml +++ b/tests/skills/cases/meta-compile/snapshots/catalog-mixed-types/Catalogs/Контрагенты.xml @@ -287,7 +287,7 @@ Auto InDialog - true + false BothWays Catalog.Контрагенты.StandardAttribute.Description diff --git a/tests/skills/cases/meta-compile/snapshots/catalog-tabparts/Catalogs/Товары.xml b/tests/skills/cases/meta-compile/snapshots/catalog-tabparts/Catalogs/Товары.xml index 09ff98e9..2d0410d5 100644 --- a/tests/skills/cases/meta-compile/snapshots/catalog-tabparts/Catalogs/Товары.xml +++ b/tests/skills/cases/meta-compile/snapshots/catalog-tabparts/Catalogs/Товары.xml @@ -287,7 +287,7 @@ Auto InDialog - true + false BothWays Catalog.Товары.StandardAttribute.Description diff --git a/tests/skills/cases/meta-compile/snapshots/chart-of-accounts/ChartsOfAccounts/Хозрасчетный.xml b/tests/skills/cases/meta-compile/snapshots/chart-of-accounts/ChartsOfAccounts/Хозрасчетный.xml index 6b826fc2..264225e9 100644 --- a/tests/skills/cases/meta-compile/snapshots/chart-of-accounts/ChartsOfAccounts/Хозрасчетный.xml +++ b/tests/skills/cases/meta-compile/snapshots/chart-of-accounts/ChartsOfAccounts/Хозрасчетный.xml @@ -426,7 +426,7 @@ Auto - true + false BothWays ChartOfAccounts.Хозрасчетный.StandardAttribute.Description 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 ebc76ee0..580202c5 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 @@ -252,7 +252,7 @@ Auto InDialog - true + false BothWays ChartOfCalculationTypes.ВидыНачислений.StandardAttribute.Description 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 da7389fe..96f9fb02 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 @@ -277,7 +277,7 @@ Auto InDialog - true + false BothWays ChartOfCharacteristicTypes.ДополнительныеРеквизитыИСведения.StandardAttribute.Description diff --git a/tests/skills/cases/meta-compile/snapshots/exchange-plan/ExchangePlans/ОбменСФилиалами.xml b/tests/skills/cases/meta-compile/snapshots/exchange-plan/ExchangePlans/ОбменСФилиалами.xml index 4ef5524e..142f6198 100644 --- a/tests/skills/cases/meta-compile/snapshots/exchange-plan/ExchangePlans/ОбменСФилиалами.xml +++ b/tests/skills/cases/meta-compile/snapshots/exchange-plan/ExchangePlans/ОбменСФилиалами.xml @@ -226,7 +226,7 @@ true false - true + false BothWays ExchangePlan.ОбменСФилиалами.StandardAttribute.Description