diff --git a/.claude/skills/meta-edit/scripts/meta-edit.ps1 b/.claude/skills/meta-edit/scripts/meta-edit.ps1
index 5ede0194..cad03079 100644
--- a/.claude/skills/meta-edit/scripts/meta-edit.ps1
+++ b/.claude/skills/meta-edit/scripts/meta-edit.ps1
@@ -1,4 +1,4 @@
-# meta-edit v1.13 — Edit existing 1C metadata object XML (inline + complex props + TS ops + modify-ts + create-if-missing + structural attr props Format/EditFormat/ToolTip/ChoiceForm)
+# meta-edit v1.14 — Edit existing 1C metadata object XML (+structural attr props Format/EditFormat/ToolTip/ChoiceForm/MinValue/MaxValue)
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
param(
[string]$DefinitionFile,
@@ -2260,6 +2260,16 @@ function Modify-ChildElements($modifyDef, [string]$childType) {
Info "Set $xmlTag '$elemName'.ChoiceForm"; $script:modifyCount++
}
}
+ "MinValue" {
+ if (Set-AttrPropertyElement $propsEl "MinValue" (Build-MinMaxValueXml "MinValue" $changeValue)) {
+ Info "Set $xmlTag '$elemName'.MinValue"; $script:modifyCount++
+ }
+ }
+ "MaxValue" {
+ if (Set-AttrPropertyElement $propsEl "MaxValue" (Build-MinMaxValueXml "MaxValue" $changeValue)) {
+ Info "Set $xmlTag '$elemName'.MaxValue"; $script:modifyCount++
+ }
+ }
default {
# Scalar property change (Indexing, FillChecking, Use, etc.)
$scalarEl = $null
@@ -2420,6 +2430,13 @@ function Set-AttrPropertyElement($propsEl, $propName, $fragmentXml) {
return $true
}
+# MinValue/MaxValue — типизированное значение (порт Emit-MinMaxValue): nil / xs:string / xs:decimal.
+function Build-MinMaxValueXml([string]$tag, $val) {
+ if ($null -eq $val -or "$val" -eq '') { return "<$tag xsi:nil=`"true`"/>" }
+ $t = if ($val -is [string]) { 'xs:string' } else { 'xs:decimal' }
+ return "<$tag xsi:type=`"$t`">$(Esc-Xml "$val")$tag>"
+}
+
function Find-PropertyElement([string]$propName) {
foreach ($child in $script:propertiesEl.ChildNodes) {
if ($child.NodeType -eq 'Element' -and $child.LocalName -eq $propName) {
diff --git a/.claude/skills/meta-edit/scripts/meta-edit.py b/.claude/skills/meta-edit/scripts/meta-edit.py
index 5c290b4a..713a08c7 100644
--- a/.claude/skills/meta-edit/scripts/meta-edit.py
+++ b/.claude/skills/meta-edit/scripts/meta-edit.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-# meta-edit v1.13 — Edit existing 1C metadata object XML (inline + complex props + TS ops + modify-ts + create-if-missing + structural attr props Format/EditFormat/ToolTip/ChoiceForm)
+# meta-edit v1.14 — Edit existing 1C metadata object XML (+structural attr props Format/EditFormat/ToolTip/ChoiceForm/MinValue/MaxValue)
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
import argparse
@@ -2105,6 +2105,14 @@ def modify_child_elements(modify_def, child_type):
if set_attr_property_element(props_el, "ChoiceForm", f"