fix: resolve remaining 19 Python test failures — 285/285 on both runtimes

Script logic fixes (PY mirroring PS1):
- skd-compile: fix (?i) regex flag placement for Python 3.11+
- mxl-compile: handle list-of-lists row format (PS1 silently ignores)
- subsystem-compile: add "objects" → "content" synonym alias
- role-compile: add "rights" → "objects" synonym alias
- meta-compile: sort HTTP/Web service method/operation iteration
- form-edit: insert ChildItems after Events/AutoCommandBar (not at end)
- mxl-compile: sort colWidthMap iteration in both PS1 and PY for
  deterministic format indices

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Nick Shirokov
2026-03-28 20:30:45 +03:00
co-authored by Claude Opus 4.6
parent 4565808b77
commit 972cd5061d
10 changed files with 42 additions and 20 deletions
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# role-compile v1.1 — Compile 1C role from JSON
# role-compile v1.2 — Compile 1C role from JSON
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
import argparse
import json
@@ -455,6 +455,10 @@ def main():
synonym = str(defn['synonym']) if defn.get('synonym') else role_name
comment = str(defn['comment']) if defn.get('comment') else ''
# Synonym: accept "rights" as alias for "objects"
if not defn.get('objects') and defn.get('rights'):
defn['objects'] = defn['rights']
# --- 2. Parse all object entries ---
parsed_objects = []
if defn.get('objects'):