SuperAPI AI Directory

epf-build

Coding & development

View repository

Updated 10-15 17:18

About this skill

/epf-build — Build processing

Builds an EPF file from XML sources using the 1C platform. The same CLI command also works for external reports (ERF) — see /erf-build.

Usage

/epf-build <ProcessorName> [SrcDir] [OutDir]
Parameter Required Default Description
ProcessorName yes — Processing name (name of the root XML)
SrcDir no src Source directory
OutDir no build Output directory

Connection parameters

Read .v8-project.json from the project root. Take v8path (path to the platform) and resolve the base for building:

  1. If the user specified connection parameters (path, server) — use them directly
  2. If a base was specified by name — look it up by id / alias / name in .v8-project.json
  3. If not specified — match the current Git branch with databases[].branches
  4. If the branch did not match — use default
  5. If .v8-project.json is absent or there are no bases — create an empty IB in ./base If v8path is not set — auto-detect: Get-ChildItem "C:\Program Files\1cv8\*\bin\1cv8.exe" | Sort -Desc | Select -First 1 If the base used is not registered — after execution, suggest adding it via /db-list add.

Command

powershell.exe -NoProfile -File .claude/skills/epf-build/scripts/epf-build.ps1 <параметры>

Script parameters

Parameter Required Description
-V8Path <путь> no Platform bin directory (or full path to 1cv8.exe)
-InfoBasePath <путь> * File base
-InfoBaseServer <сервер> * 1C server (for a server base)
-InfoBaseRef <имя> * Base name on the server
-UserName <имя> no User name
-Password <пароль> no Password
-SourceFile <путь> yes Path to the root XML file of the sources
-OutputFile <путь> yes Path to the output EPF/ERF file

* — either -InfoBasePathis required, or the pair -InfoBaseServer + -InfoBaseRef

Return codes

Code Description
0 Successful build
1 Error (see log)

Reference types

If the processing uses configuration reference types (CatalogRef.XXX, DocumentRef.XXX) — assembly in an empty database will fail with an XDTO error. Register the database with the target configuration via /db-list add.

Examples

# Сборка обработки (файловая база)
powershell.exe -NoProfile -File .claude/skills/epf-build/scripts/epf-build.ps1 -InfoBasePath "C:\Bases\MyDB" -SourceFile "src\МояОбработка.xml" -OutputFile "build\МояОбработка.epf"

# Серверная база
powershell.exe -NoProfile -File .claude/skills/epf-build/scripts/epf-build.ps1 -InfoBaseServer "srv01" -InfoBaseRef "MyDB" -UserName "Admin" -Password "secret" -SourceFile "src\МояОбработка.xml" -OutputFile "build\МояОбработка.epf"