feat(skd): support @file references for query text in skd-compile and skd-edit

Allows using "@path/to/file.sql" instead of inline query text.
Path resolved relative to definition file, then CWD; absolute paths supported.

Closes #9

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Nick Shirokov
2026-03-17 20:06:02 +03:00
co-authored by Claude Opus 4.6
parent ffa3189442
commit 05fc7eba27
8 changed files with 133 additions and 11 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ Claude вызовет `/skd-info` (overview → trace → query → variant) и
> поля Номенклатура, Количество, Сумма. Период — параметр.
```
Claude сформирует JSON:
Claude сформирует JSON (запрос можно вынести в файл: `"query": "@queries/sales.sql"`):
```json
{
"dataSets": [{