diff --git a/.claude/skills/meta-compile/scripts/meta-compile.ps1 b/.claude/skills/meta-compile/scripts/meta-compile.ps1 index 706e6d84..435c0759 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.2 — Compile 1C metadata object from JSON +# meta-compile v1.3 — Compile 1C metadata object from JSON # Source: https://github.com/Nikolay-Shirokov/cc-1c-skills param( [Parameter(Mandatory)] @@ -2760,6 +2760,8 @@ $typesWithObjectModule = @("Catalog","Document","Report","DataProcessor","Exchan "BusinessProcess","Task") # Types with RecordSetModule.bsl $typesWithRecordSetModule = @("InformationRegister","AccumulationRegister","AccountingRegister","CalculationRegister") +# Types with ManagerModule.bsl +$typesWithManagerModule = @("Report","DataProcessor") # Types with Module.bsl (general) $typesWithModule = @("CommonModule","HTTPService","WebService") @@ -2770,6 +2772,13 @@ if ($objType -in $typesWithObjectModule) { $modulesCreated += $modulePath } } +if ($objType -in $typesWithManagerModule) { + $modulePath = Join-Path $extDir "ManagerModule.bsl" + if (-not (Test-Path $modulePath)) { + [System.IO.File]::WriteAllText($modulePath, "", $enc) + $modulesCreated += $modulePath + } +} if ($objType -in $typesWithRecordSetModule) { $modulePath = Join-Path $extDir "RecordSetModule.bsl" if (-not (Test-Path $modulePath)) { diff --git a/.claude/skills/meta-compile/scripts/meta-compile.py b/.claude/skills/meta-compile/scripts/meta-compile.py index da19ce9d..4abbf5ca 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.2 — Compile 1C metadata object from JSON +# meta-compile v1.3 — Compile 1C metadata object from JSON # Source: https://github.com/Nikolay-Shirokov/cc-1c-skills import argparse @@ -2401,6 +2401,7 @@ types_with_object_module = [ types_with_record_set_module = [ 'InformationRegister', 'AccumulationRegister', 'AccountingRegister', 'CalculationRegister', ] +types_with_manager_module = ['Report', 'DataProcessor'] types_with_module = ['CommonModule', 'HTTPService', 'WebService'] if obj_type in types_with_object_module: @@ -2409,6 +2410,12 @@ if obj_type in types_with_object_module: write_utf8_bom(module_path, '') modules_created.append(module_path) +if obj_type in types_with_manager_module: + module_path = os.path.join(ext_dir, 'ManagerModule.bsl') + if not os.path.isfile(module_path): + write_utf8_bom(module_path, '') + modules_created.append(module_path) + if obj_type in types_with_record_set_module: module_path = os.path.join(ext_dir, 'RecordSetModule.bsl') if not os.path.isfile(module_path):