SuperAPI AI Directory

epf-dump

General & other

View repository

Updated 10-15 21:33

About this skill

/epf-dump — Unpacking a processing

Usage

/epf-dump <EpfFile> [OutDir]
Parameter Required Default Description
EpfFile yes — Path to the EPF file
OutDir no src Directory for exporting sources

Connection parameters (required)

Unpacking EPF/ERF requires an infobase with a configuration. Without a base, reference types are irretrievably lost.

  1. Read .v8-project.json from the project root and resolve the base:
  2. If the user specified connection parameters (path, server) — use them directly
  3. If they specified a base by name — search by id / alias / name in .v8-project.json
  4. If they did not specify — match the current Git branch with databases[].branches
  5. If the branch did not match — use default
  6. If .v8-project.json is absent or the base is not found — report the error to the user. For dump, a base is required: in an empty base, reference types (CatalogRef, DocumentRef, etc.) are irretrievably reset to strings. Suggest specifying a base or registering via /db-list add.

Platform — v8path of the found base entry, otherwise the root v8path. Not set in either place — -V8Path do not pass. If the used base is not registered — after execution, suggest adding via /db-list add.

Command

powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/epf-dump.ps1" <параметры>

Script parameters

Parameter Required Description
-V8Path <путь> no Platform bin directory, or full path to 1cv8.exe / ibcmd.exe
-InfoBasePath <путь> * File base
-InfoBaseServer <сервер> * 1C server (for a server base)
-InfoBaseRef <имя> * Base name on the server
-UserName <имя> no User name
-Password <пароль> no Password
-InputFile <путь> yes Path to the EPF/ERF file
-OutputDir <путь> yes Directory for exporting sources
-Format <формат> no Hierarchical (default) / Plain
-AdditionalV8Arguments <список> no Additional launch arguments 1cv8.exe comma-separated, e.g. /UseHwLicenses+
-AdditionalIbcmdArguments <список> no Additional arguments ibcmd comma-separated, in the form --ключ=значение

* — at least one connection is required. Without a database the script will fail (a dump into an empty database irreversibly loses reference types)

Examples

# Разборка обработки (файловая база)
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/epf-dump.ps1" -InfoBasePath "C:\Bases\MyDB" -InputFile "build/МояОбработка.epf" -OutputDir "src"

# Серверная база
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/epf-dump.ps1" -InfoBaseServer "srv01" -InfoBaseRef "MyDB" -UserName "Admin" -Password "secret" -InputFile "build/МояОбработка.epf" -OutputDir "src"