diff --git a/.claude/skills/meta-compile/scripts/meta-compile.ps1 b/.claude/skills/meta-compile/scripts/meta-compile.ps1 index 5ab0b515..0efa10fe 100644 --- a/.claude/skills/meta-compile/scripts/meta-compile.ps1 +++ b/.claude/skills/meta-compile/scripts/meta-compile.ps1 @@ -2392,13 +2392,11 @@ function Emit-AddressingAttribute { $addressingDimension = "" $indexing = "Index" - if ($addrDef -is [string]) { - $name = "$addrDef" - $attrSynonym = Split-CamelCase $name - } else { - $name = "$($addrDef.name)" - $attrSynonym = if ($addrDef.synonym) { "$($addrDef.synonym)" } else { Split-CamelCase $name } - if ($addrDef.type) { $typeStr = "$($addrDef.type)" } + $parsed = Parse-AttributeShorthand $addrDef + $name = $parsed.name + $attrSynonym = $parsed.synonym + $typeStr = $parsed.type + if ($addrDef -isnot [string]) { if ($addrDef.addressingDimension) { $addressingDimension = "$($addrDef.addressingDimension)" } if ($addrDef.indexing) { $indexing = "$($addrDef.indexing)" } } diff --git a/.claude/skills/meta-compile/scripts/meta-compile.py b/.claude/skills/meta-compile/scripts/meta-compile.py index ad87f460..f2528cc1 100644 --- a/.claude/skills/meta-compile/scripts/meta-compile.py +++ b/.claude/skills/meta-compile/scripts/meta-compile.py @@ -2068,14 +2068,11 @@ def emit_addressing_attribute(indent, addr_def): type_str = '' addressing_dimension = '' indexing = 'Index' - if isinstance(addr_def, str): - name = addr_def - attr_synonym = split_camel_case(name) - else: - name = str(addr_def.get('name', '')) - attr_synonym = str(addr_def['synonym']) if addr_def.get('synonym') else split_camel_case(name) - if addr_def.get('type'): - type_str = str(addr_def['type']) + parsed = parse_attribute_shorthand(addr_def) + name = parsed['name'] + attr_synonym = parsed['synonym'] + type_str = parsed['type'] + if not isinstance(addr_def, str): if addr_def.get('addressingDimension'): addressing_dimension = str(addr_def['addressingDimension']) if addr_def.get('indexing'):