feat: role-compile OutputDir accepts config root (like meta-compile)

- OutputDir now accepts config root dir — creates Roles/ subdirectory
- Back-compat: if OutputDir ends with "Roles", uses it as-is
- Configuration.xml lookup adjusted accordingly
- Updated SKILL.md, PS1, PY scripts (v1.3)
- Updated test cases and snapshots for new Roles/ path

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Nick Shirokov
2026-03-29 13:51:24 +03:00
co-authored by Claude Opus 4.6
parent bc6bc01047
commit 0d116863ec
60 changed files with 377 additions and 123 deletions
+26 -6
View File
@@ -3,22 +3,42 @@
"preRun": [
{
"script": "meta-compile/scripts/meta-compile",
"input": { "type": "Document", "name": "Продажа" },
"args": { "-JsonPath": "{inputFile}", "-OutputDir": "{workDir}" }
"input": {
"type": "Document",
"name": "Продажа"
},
"args": {
"-JsonPath": "{inputFile}",
"-OutputDir": "{workDir}"
}
},
{
"script": "role-compile/scripts/role-compile",
"input": {
"name": "СОграничениями",
"objects": [
{ "name": "Document.Продажа", "preset": "view", "rls": { "Read": "#Шаблон(\"\")" } }
{
"name": "Document.Продажа",
"preset": "view",
"rls": {
"Read": "#Шаблон(\"\")"
}
}
],
"templates": [
{ "name": "Шаблон(Мод)", "condition": "ГДЕ Поле = &Параметр" }
{
"name": "Шаблон(Мод)",
"condition": "ГДЕ Поле = &Параметр"
}
]
},
"args": { "-JsonPath": "{inputFile}", "-OutputDir": "{workDir}" }
"args": {
"-JsonPath": "{inputFile}",
"-OutputDir": "{workDir}"
}
}
],
"params": { "rightsPath": "СОграничениями/Ext/Rights.xml" }
"params": {
"rightsPath": "Roles/СОграничениями/Ext/Rights.xml"
}
}