epf-build

$npx mdskill add SteelMorgan/1c-agent-based-dev-framework/epf-build

Build EPF/ERF files from XML sources after making temporary diagnostic edits to a disassembled configuration.

  • Helps compile external processing or report forms from XML for debugging purposes in 1C:Enterprise environments.
  • Integrates with 1C:Enterprise via command-line tools, using Python scripts and optional connection parameters.
  • Decides based on provided source file and connection settings, defaulting to a temporary infobase if none specified.
  • Delivers results by generating output EPF/ERF files to a specified build directory for further use.
SKILL.md
.github/skills/epf-buildView on GitHub ↗
---
name: epf-build
description: Собрать EPF/ERF из XML-исходников. Используй после внесения временных диагностических правок в разобранную обработку.
argument-hint: <SourceFile>
allowed-tools:
  - Bash
  - Read
  - Glob
  - Grep
---

# /epf-build

Используй Python-скрипт из этой директории. В Codex/Linux не используй PowerShell-вариант из upstream.

## Команда

```bash
python3 scripts/epf-build.py -SourceFile "<root-xml>" -OutputFile "<epf>" <параметры подключения>
```

## Параметры подключения

- если есть готовая ИБ, предпочитай явное подключение:
  - файловая: `-InfoBasePath "<path>"`
  - серверная: `-InfoBaseServer "<server>" -InfoBaseRef "<base>"`
- если подключение не задано, скрипт создает временную файловую ИБ со stub-метаданными
- `-V8Path` опционален; если не задан, скрипт ищет `1cv8` в `V8_PATH`, `PATH`, `/opt/1cv8/current/1cv8`

## Примеры

```bash
python3 scripts/epf-build.py \
  -SourceFile "epf-source/bddrunner/bddRunner.xml" \
  -OutputFile "build/debug/bddRunner-debug.epf"
```

```bash
python3 scripts/epf-build.py \
  -InfoBaseServer "onec-infra" \
  -InfoBaseRef "dssl_drive_ai" \
  -UserName "AgentAI" \
  -Password "AgentAI" \
  -SourceFile "epf-source/bddrunner/bddRunner.xml" \
  -OutputFile "build/debug/bddRunner-debug.epf"
```
More from SteelMorgan/1c-agent-based-dev-framework