diff --git a/content/docs/architecture/meta.ru.json b/content/docs/architecture/meta.ru.json
new file mode 100644
index 0000000..ed1f5da
--- /dev/null
+++ b/content/docs/architecture/meta.ru.json
@@ -0,0 +1,6 @@
+{
+ "title": "Архитектура",
+ "pages": [
+ "mvs-dependency-resolution"
+ ]
+}
diff --git a/content/docs/architecture/mvs-dependency-resolution.mdx b/content/docs/architecture/mvs-dependency-resolution.mdx
index ff8d73e..3fcd9c7 100644
--- a/content/docs/architecture/mvs-dependency-resolution.mdx
+++ b/content/docs/architecture/mvs-dependency-resolution.mdx
@@ -23,17 +23,17 @@ A commit is not considered “newer” than a minimum version based on its date
~~~text
user
├── common v1.2.0
-└── weather v2.1.0
+└── weather/v2 v2.1.0
└── common v1.3.0
~~~
-The user graph selects common v1.3.0 and weather v2.1.0. Numerically, v1.3.0 satisfies both common minimums; dependency resolution does not prove schema compatibility. Run easyp breaking separately for that check.
+The user graph selects common v1.3.0 and weather/v2 v2.1.0. Numerically, v1.3.0 satisfies both common minimums; dependency resolution does not prove schema compatibility. Run easyp breaking separately for that check.
If user pins a SHA, the selected common v1.3.0 tag must point to that exact commit. A v1.2.0 tag at that SHA is insufficient when the maximum requirement is v1.3.0. If user's common requirement has no version, weather's semantic minimum determines the selection.
## Module and descriptor boundaries
-Each module has its own protobuf.mod and protobuf.lock. For example, proto/user can select common v1.3.0 while proto/order selects common v2.0.0 in an independent graph.
+Each module has its own protobuf.mod and protobuf.lock. For example, proto/user can select common v1.3.0 while proto/order selects common/v2 v2.0.0 in an independent graph.
Independent graphs do not guarantee that their combined generation output is compatible:
@@ -52,14 +52,14 @@ module github.com/acme/user
roots proto
require (
github.com/acme/common v1.2.0
- github.com/acme/weather v2.1.0
+ github.com/acme/weather/v2 v2.1.0
)
-replace github.com/acme/weather => ../weather-fork
+replace github.com/acme/weather/v2 => ../weather-fork
~~~
roots is relative to the manifest directory and defaults to .. The get and mod commands find the nearest ancestor manifest within the workspace. Transitive requirements are recorded with // indirect.
-A relative replace target is resolved from its owning protobuf.mod; an absolute target is used directly. Generation and linting support local replacements. get, mod tidy, mod update, and mod vendor reject them: remove replacements before these commands create or use a reproducible Git lock. This is command validation, not a CI rule rejecting commits.
+A relative replace target is resolved from its owning protobuf.mod; an absolute target is used directly. Outside --frozen, generation, linting, get, mod tidy, mod update, mod download, and mod vendor all operate on the local effective graph while keeping protobuf.lock byte-for-byte untouched (never creating a lock or writing local/fork-only transitives into it). Remove replacements and run mod tidy to produce a publishable lock. Only explicit --frozen rejects replace directives (including unused ones) before accessing paths or fetching dependencies.
For nested Git modules, require each identity declared by its manifest. Versionless requirements need no tags. Version v1.2.3 of a module in proto/user uses tag proto/user/v1.2.3.
@@ -78,7 +78,7 @@ modules:
During tidy, get, and update, a fetched previously locked SemVer must match its recorded commit and hash. A mismatch raises ErrLockedVersionChanged before installing the new graph or writing the manifest or lock, including for transitive requirements and warm caches. A new version may be selected; unconstrained versionless requirements still refresh to HEAD, while explicit SHAs stay pinned.
-mod download can retrieve the old commit after a tag moves if that commit remains available. The Go dirhash.Hash1 digest covers Git-tracked regular files with repository-relative paths. Both newly downloaded and installed cached files are verified.
+mod download can retrieve the old commit after a tag moves if that commit remains available. The Go dirhash.Hash1 digest is selective: it covers the materialized logical snapshot of selected .proto files and canonical EasyP/Buf configuration metadata (with repository-relative paths), omitting unrelated application code, documentation, and build outputs. Both newly downloaded and installed cached files are verified.
## Git object reuse
diff --git a/content/docs/architecture/mvs-dependency-resolution.ru.mdx b/content/docs/architecture/mvs-dependency-resolution.ru.mdx
index 9572e4d..99bd60d 100644
--- a/content/docs/architecture/mvs-dependency-resolution.ru.mdx
+++ b/content/docs/architecture/mvs-dependency-resolution.ru.mdx
@@ -23,17 +23,17 @@ EasyP разрешает зависимости отдельно для кажд
~~~text
user
├── common v1.2.0
-└── weather v2.1.0
+└── weather/v2 v2.1.0
└── common v1.3.0
~~~
-Граф user выбирает common v1.3.0 и weather v2.1.0. Численно v1.3.0 удовлетворяет обоим минимумам common; разрешение версий само по себе не доказывает совместимость схем. Для этого отдельно запускают easyp breaking.
+Граф user выбирает common v1.3.0 и weather/v2 v2.1.0. Численно v1.3.0 удовлетворяет обоим минимумам common; разрешение версий само по себе не доказывает совместимость схем. Для этого отдельно запускают easyp breaking.
Если user закрепляет SHA, выбранный тег common v1.3.0 должен указывать именно на него. Самого наличия тега v1.2.0 на этом SHA недостаточно, если максимум требований — v1.3.0. Если требование user к common не содержит версии, минимум weather определяет выбор.
## Границы модулей и дескрипторов
-Каждый модуль имеет свой protobuf.mod и protobuf.lock. Например, proto/user может выбрать common v1.3.0, а proto/order — common v2.0.0 в независимых графах.
+Каждый модуль имеет свой protobuf.mod и protobuf.lock. Например, proto/user может выбрать common v1.3.0, а proto/order — common/v2 v2.0.0 в независимых графах.
При генерации независимость графов не гарантирует совместимость объединённого результата:
@@ -52,14 +52,14 @@ module github.com/acme/user
roots proto
require (
github.com/acme/common v1.2.0
- github.com/acme/weather v2.1.0
+ github.com/acme/weather/v2 v2.1.0
)
-replace github.com/acme/weather => ../weather-fork
+replace github.com/acme/weather/v2 => ../weather-fork
~~~
roots считается от каталога манифеста и по умолчанию равен .. Команды get и mod находят ближайший манифест в предках в пределах workspace. Транзитивные требования записываются с // indirect.
-Относительная цель replace считается от содержащего её protobuf.mod, абсолютная используется напрямую. Генерация и линтинг поддерживают локальные замены. get, mod tidy, mod update и mod vendor отклоняют их: уберите замены перед созданием или использованием воспроизводимого Git lock этими командами. Это проверка команд, а не запрет коммитов со стороны CI.
+Относительная цель replace считается от содержащего её protobuf.mod, абсолютная используется напрямую. Без --frozen генерация, линтинг, get, mod tidy, mod update, mod download и mod vendor работают с локальным эффективным графом, оставляя protobuf.lock побайтно неизменным (отсутствующий lock не создаётся, а локальные и форковые транзитивные зависимости в него не попадают). Чтобы получить публикуемый lock, удалите замены и выполните mod tidy. Отклоняет директивы replace (включая неиспользуемые) только явный режим --frozen.
Для вложенных Git-модулей каждое требование использует имя из соответствующего манифеста. Требование без версии не нуждается в теге. Версия v1.2.3 модуля в proto/user использует тег proto/user/v1.2.3.
@@ -78,7 +78,7 @@ modules:
При tidy, get и update повторно полученный ранее зафиксированный SemVer должен совпасть с записанными коммитом и хешем. Несовпадение вызывает ErrLockedVersionChanged до установки нового графа и записи манифеста или lock, в том числе для транзитивных требований и прогретого кеша. Новая версия может быть выбрана; неограниченные требования без версии по-прежнему обновляются до HEAD, явные SHA сохраняются.
-mod download может получить старый коммит после переноса тега, если коммит остаётся доступным. Хеш Go dirhash.Hash1 охватывает обычные файлы, отслеживаемые Git, с путями относительно репозитория. Проверка выполняется и для новых загрузок, и для установленных файлов кеша.
+mod download может получить старый коммит после переноса тега, если коммит остаётся доступным. Хеш Go dirhash.Hash1 является селективным: он охватывает материализованный логический снимок только выбранных .proto-файлов и канонических конфигов EasyP/Buf (с путями относительно репозитория), пропуская посторонний код приложения, документацию и артефакты сборки. Проверка выполняется и для новых загрузок, и для установленных файлов кеша.
## Повторное использование Git-объектов
diff --git a/content/docs/blog/meta.ru.json b/content/docs/blog/meta.ru.json
new file mode 100644
index 0000000..c6e9c5a
--- /dev/null
+++ b/content/docs/blog/meta.ru.json
@@ -0,0 +1,7 @@
+{
+ "title": "Блог",
+ "pages": [
+ "finally-give-up-gin-echo",
+ "working-with-proto-errors-correctly"
+ ]
+}
diff --git a/content/docs/blog/working-with-proto-errors-correctly.mdx b/content/docs/blog/working-with-proto-errors-correctly.mdx
index d09c12d..208e85f 100644
--- a/content/docs/blog/working-with-proto-errors-correctly.mdx
+++ b/content/docs/blog/working-with-proto-errors-correctly.mdx
@@ -59,9 +59,11 @@ The gRPC system itself has the ability to attach additional data to an error —
```go
import (
- "google.golang.org/grpc/status"
- "google.golang.org/grpc/codes"
- "google.golang.org/genproto/googleapis/rpc/errdetails"
+ "fmt"
+
+ "google.golang.org/genproto/googleapis/rpc/errdetails"
+ "google.golang.org/grpc/codes"
+ "google.golang.org/grpc/status"
)
// ...
@@ -78,7 +80,7 @@ errInfo := &errdetails.ErrorInfo{
st, err := st.WithDetails(errInfo)
if err != nil {
- return fmt.Sprintf("st.WithDetails: %w", err)
+ return fmt.Errorf("st.WithDetails: %w", err)
}
return st.Err()
@@ -108,24 +110,25 @@ Now that we have the custom error definition, we can use it to pass more specifi
```go
import (
- "google.golang.org/grpc/status"
- "google.golang.org/grpc/codes"
- "google.golang.org/protobuf/types/known/anypb"
- "myerrors"
+ "fmt"
+
+ "google.golang.org/grpc/codes"
+ "google.golang.org/grpc/status"
+ "myerrors"
)
// ...
customErrorDetail := &myerrors.CustomErrorDetail{
- Reason: "Value out of range",
- Field: "age",
- Help: "The age must be between 0 and 120",
+ Reason: "Value out of range",
+ Field: "age",
+ Help: "The age must be between 0 and 120",
}
st := status.New(codes.InvalidArgument, "invalid parameter")
-st, err = st.WithDetails(customErrorDetail)
+st, err := st.WithDetails(customErrorDetail)
if err != nil {
- return fmt.Sprintf("Unexpected error attaching custom error detail: %w", err)
+ return fmt.Errorf("unexpected error attaching custom error detail: %w", err)
}
return st.Err()
@@ -141,19 +144,24 @@ When a client receives a response from a gRPC server, it can check for errors us
```go
import (
- "context"
- "google.golang.org/grpc"
- "google.golang.org/grpc/codes"
- "google.golang.org/grpc/status"
- "log"
+ "context"
+ "log"
+
+ "google.golang.org/grpc"
+ "google.golang.org/grpc/codes"
+ "google.golang.org/grpc/credentials/insecure"
+ "google.golang.org/grpc/status"
)
func main() {
- conn, err := grpc.Dial("localhost:50051", grpc.WithInsecure())
- if err != nil {
- log.Fatalf("did not connect: %v", err)
- }
- defer conn.Close()
+ conn, err := grpc.NewClient(
+ "localhost:50051",
+ grpc.WithTransportCredentials(insecure.NewCredentials()),
+ )
+ if err != nil {
+ log.Fatalf("did not connect: %v", err)
+ }
+ defer conn.Close()
client := NewYourServiceClient(conn)
response, err := client.YourMethod(context.Background(), &YourRequest{})
@@ -205,14 +213,14 @@ func handleError(err error) {
case *errdetails.BadRequest:
// Handle bad request details
for _, violation := range t.GetFieldViolations() {
- log.Printf("The field %s was wrong: %s\\n", violation.GetField(), violation.GetDescription())
+ log.Printf("The field %s was wrong: %s\n", violation.GetField(), violation.GetDescription())
}
case *myerrors.CustomErrorDetail:
// Handle custom error details
- log.Printf("Custom error detail: Reason: %s, Field: %s, Help: %s\\n", t.Reason, t.Field, t.Help)
+ log.Printf("Custom error detail: Reason: %s, Field: %s, Help: %s\n", t.Reason, t.Field, t.Help)
// Add handling for other error types as necessary
default:
- log.Printf("Received an unknown error detail type: %v\\n", t)
+ log.Printf("Received an unknown error detail type: %v\n", t)
}
}
}
diff --git a/content/docs/blog/working-with-proto-errors-correctly.ru.mdx b/content/docs/blog/working-with-proto-errors-correctly.ru.mdx
index 50693e4..053ecd1 100644
--- a/content/docs/blog/working-with-proto-errors-correctly.ru.mdx
+++ b/content/docs/blog/working-with-proto-errors-correctly.ru.mdx
@@ -60,9 +60,11 @@ err := status.Error(codes.NotFound, "не нашел котика")
```go
import (
- "google.golang.org/grpc/status"
- "google.golang.org/grpc/codes"
- "google.golang.org/genproto/googleapis/rpc/errdetails"
+ "fmt"
+
+ "google.golang.org/genproto/googleapis/rpc/errdetails"
+ "google.golang.org/grpc/codes"
+ "google.golang.org/grpc/status"
)
// ...
@@ -79,7 +81,7 @@ errInfo := &errdetails.ErrorInfo{
st, err := st.WithDetails(errInfo)
if err != nil {
- return fmt.Sprintf("st.WithDetails: %w", err)
+ return fmt.Errorf("st.WithDetails: %w", err)
}
return st.Err()
@@ -105,28 +107,29 @@ message CustomErrorDetail {
}
```
-Теперь, когда у нас есть определение кастомной ошибки, мы можем использовать её, чтобы передавать более специфичную и детализированную информацию об ошибках. Это особенно полезно, когда требуется указать на конкретные поля или параметры, вызвавшие ошибку. Создание и использование такогоCustomErrorDetailв коде сервера позволяет не только сообщать о проблемах, но и предоставлять клиенту рекомендации по их исправлению, что делает взаимодействие более прозрачным и эффективным.
+Теперь, когда у нас есть определение кастомной ошибки, мы можем использовать её, чтобы передавать более специфичную и детализированную информацию об ошибках. Это особенно полезно, когда требуется указать на конкретные поля или параметры, вызвавшие ошибку. Создание и использование такого `CustomErrorDetail` в коде сервера позволяет не только сообщать о проблемах, но и предоставлять клиенту рекомендации по их исправлению, что делает взаимодействие более прозрачным и эффективным.
```go
import (
- "google.golang.org/grpc/status"
- "google.golang.org/grpc/codes"
- "google.golang.org/protobuf/types/known/anypb"
- "myerrors"
+ "fmt"
+
+ "google.golang.org/grpc/codes"
+ "google.golang.org/grpc/status"
+ "myerrors"
)
// ...
customErrorDetail := &myerrors.CustomErrorDetail{
- Reason: "Value out of range",
- Field: "age",
- Help: "The age must be between 0 and 120",
+ Reason: "Value out of range",
+ Field: "age",
+ Help: "The age must be between 0 and 120",
}
st := status.New(codes.InvalidArgument, "invalid parameter")
-st, err = st.WithDetails(customErrorDetail)
+st, err := st.WithDetails(customErrorDetail)
if err != nil {
- return fmt.Sprintf("Unexpected error attaching custom error detail: %w", err)
+ return fmt.Errorf("unexpected error attaching custom error detail: %w", err)
}
return st.Err()
@@ -140,19 +143,24 @@ return st.Err()
```go
import (
- "context"
- "google.golang.org/grpc"
- "google.golang.org/grpc/codes"
- "google.golang.org/grpc/status"
- "log"
-)н
+ "context"
+ "log"
+
+ "google.golang.org/grpc"
+ "google.golang.org/grpc/codes"
+ "google.golang.org/grpc/credentials/insecure"
+ "google.golang.org/grpc/status"
+)
func main() {
- conn, err := grpc.Dial("localhost:50051", grpc.WithInsecure())
- if err != nil {
- log.Fatalf("did not connect: %v", err)
- }
- defer conn.Close()
+ conn, err := grpc.NewClient(
+ "localhost:50051",
+ grpc.WithTransportCredentials(insecure.NewCredentials()),
+ )
+ if err != nil {
+ log.Fatalf("did not connect: %v", err)
+ }
+ defer conn.Close()
client := NewYourServiceClient(conn)
response, err := client.YourMethod(context.Background(), &YourRequest{})
@@ -203,14 +211,14 @@ func handleError(err error) {
case *errdetails.BadRequest:
// Обработка деталей неверного запроса
for _, violation := range t.GetFieldViolations() {
- log.Printf("The field %s was wrong: %s\\\\n", violation.GetField(), violation.GetDescription())
+ log.Printf("The field %s was wrong: %s\n", violation.GetField(), violation.GetDescription())
}
case *myerrors.CustomErrorDetail:
// Обработка кастомных деталей ошибок
- log.Printf("Custom error detail: Reason: %s, Field: %s, Help: %s\\\\n", t.Reason, t.Field, t.Help)
+ log.Printf("Custom error detail: Reason: %s, Field: %s, Help: %s\n", t.Reason, t.Field, t.Help)
// Добавьте обработку других типов ошибок по необходимости
default:
- log.Printf("Received an unknown error detail type: %v\\\\n", t)
+ log.Printf("Received an unknown error detail type: %v\n", t)
}
}
}
diff --git a/content/docs/ci-cd/github-actions.mdx b/content/docs/ci-cd/github-actions.mdx
index 2b348b8..237ebda 100644
--- a/content/docs/ci-cd/github-actions.mdx
+++ b/content/docs/ci-cd/github-actions.mdx
@@ -9,7 +9,7 @@ Run dependency verification, linting, breaking checks, and generation as separat
This example assumes a root protobuf.mod and committed protobuf.lock, a root easyp.yaml, schemas in proto, and a root easyp.gen.yaml writing to tracked files under gen.
-The workflow uses a prepared self-hosted Linux runner with the custom label easyp-v1. Assign that label only after provisioning your chosen v1-capable EasyP binary and required local plugins on PATH. For a hosted runner, supply your project's pinned toolchain setup before the EasyP steps. The example does not assume a particular published v1 release artifact.
+The workflow below installs a pinned EasyP v1 release archive on a standard GitHub-hosted `ubuntu-latest` runner (you can also use the container image `ghcr.io/easyp-tech/easyp:v1.0.0`, Homebrew on Linux/macOS, or a pre-provisioned self-hosted runner). Pass --frozen on CI steps so EasyP validates the committed manifest and lock, rejects local replace directives, and never modifies dependency files.
Local and bundled plugins cannot use a YAML version pin; their versions are controlled by the installed executables and EasyP binary. Remote plugins require a separate pinned semantic version in easyp.gen.yaml.
@@ -26,28 +26,40 @@ permissions:
jobs:
verify:
- runs-on: [self-hosted, linux, x64, easyp-v1]
+ runs-on: ubuntu-latest
+ env:
+ EASYP_VERSION: "1.0.0"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- - name: Verify toolchain
- run: easyp --version
+ - name: Install EasyP v1
+ run: |
+ ASSET="easyp-${EASYP_VERSION}-linux-amd64.tar.gz"
+ curl -fLO "https://github.com/easyp-tech/easyp/releases/download/v${EASYP_VERSION}/${ASSET}"
+ curl -fLO "https://github.com/easyp-tech/easyp/releases/download/v${EASYP_VERSION}/easyp-${EASYP_VERSION}-checksums.txt"
+ sha256sum --check --ignore-missing "easyp-${EASYP_VERSION}-checksums.txt"
+ tar -xzf "$ASSET"
+ sudo install "easyp-${EASYP_VERSION}-linux-amd64/easyp" /usr/local/bin/easyp
+ easyp --version
+
+ - name: Validate configuration
+ run: easyp validate-config
- name: Verify locked dependencies
- run: easyp mod download
+ run: easyp mod download --frozen
- name: Lint schemas
- run: easyp lint --path proto
+ run: easyp lint --frozen --path proto
- name: Check compatibility
env:
BASE_REF: ${{ github.event.pull_request.base.sha }}
- run: easyp breaking --path proto --against "$BASE_REF"
+ run: easyp breaking --frozen --path proto --against "$BASE_REF"
- name: Generate code
- run: easyp generate --project .
+ run: easyp generate --frozen --project .
- name: Check committed generated files
run: |
@@ -82,7 +94,7 @@ easyp breaking --path proto --against refs/tags/v1.2.0
Choose the intended previous release rather than assuming tag creation order defines compatibility history. Each revision uses its own module manifests, locks, and dependencies, so a breaking check can fetch dependencies beyond those needed by the current checkout.
-FILE is the only supported additional category. ignore_unstable works for the supported package suffixes. Ignore paths are relative to the policy file defining the breaking section: here proto/experimental is relative to the root policy. Nested sections replace whole sections; extends explicitly loads a section base from a local file or an existing locked module.
+All four descriptor-backed profiles are supported: FILE, PACKAGE, WIRE_JSON, and WIRE (omitted or empty categories defaults to ["FILE"]). ignore_unstable works for the supported package suffixes. Ignore paths are relative to the policy file defining the breaking section: here proto/experimental is relative to the root policy. Nested sections replace whole sections; extends explicitly loads a section base from a local file or an existing locked module.
## Selecting Generation Projects
@@ -102,7 +114,7 @@ Dependencies belong in protobuf.mod, with resolved commits and hash
EasyP storage defaults to ~/.easyp and can be relocated with EASYPPATH. If you cache it, include the OS, EasyP toolchain version, and relevant lockfile hashes in the cache key. A restored cache is an optimization; dependency verification still runs.
-For private dependencies, provision the Git authentication required by your sources before the dependency step. Keep credentials in the runner's approved secret mechanism and out of logs. A local replacement does not eliminate downloads unless the entire dependency graph is local or already verified in cache; remote plugins still need the network. tidy and update reject active local replacements and are not read-only verification commands.
+For private dependencies, provision the Git authentication required by your sources before the dependency step. Keep credentials in the runner's approved secret mechanism and out of logs. A local replacement does not eliminate downloads unless the entire dependency graph is local or already verified in cache; remote plugins still need the network. Outside --frozen, mod tidy and mod update work with local replacements without rewriting protobuf.lock, and they are mutating commands rather than read-only CI checks; in CI, pass --frozen to reject every replace directive and refuse graph mutations.
## Troubleshooting
diff --git a/content/docs/ci-cd/github-actions.ru.mdx b/content/docs/ci-cd/github-actions.ru.mdx
index 9e78664..736d6f8 100644
--- a/content/docs/ci-cd/github-actions.ru.mdx
+++ b/content/docs/ci-cd/github-actions.ru.mdx
@@ -9,7 +9,7 @@ description: "Проверка lock-файлов v1, линтинг схем, с
Пример предполагает корневые protobuf.mod и закоммиченный protobuf.lock, корневой easyp.yaml, схемы в proto и корневой easyp.gen.yaml, записывающий отслеживаемые файлы в gen.
-Workflow использует подготовленный self-hosted Linux runner с пользовательской меткой easyp-v1. Назначайте её после подготовки выбранного бинарника EasyP с поддержкой v1 и необходимых локальных плагинов в PATH. Для hosted runner добавьте принятую в проекте установку фиксированных версий инструментов до шагов EasyP. Пример не предполагает существования конкретного опубликованного артефакта релиза v1.
+Workflow ниже устанавливает закреплённый архив релиза EasyP v1 на стандартном GitHub-hosted runner `ubuntu-latest` (также можно использовать контейнер `ghcr.io/easyp-tech/easyp:v1.0.0`, Homebrew на Linux/macOS или подготовленный self-hosted runner). Передавайте --frozen на шагах CI, чтобы EasyP проверял закоммиченный манифест и lock, отклонял локальные директивы replace и никогда не изменял файлы зависимостей.
Локальные и встроенные плагины не принимают фиксацию через YAML-поле version: их версии определяются установленными исполняемыми файлами и бинарником EasyP. Удалённым плагинам нужна отдельная фиксированная семантическая version в easyp.gen.yaml.
@@ -26,28 +26,40 @@ permissions:
jobs:
verify:
- runs-on: [self-hosted, linux, x64, easyp-v1]
+ runs-on: ubuntu-latest
+ env:
+ EASYP_VERSION: "1.0.0"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- - name: Verify toolchain
- run: easyp --version
+ - name: Install EasyP v1
+ run: |
+ ASSET="easyp-${EASYP_VERSION}-linux-amd64.tar.gz"
+ curl -fLO "https://github.com/easyp-tech/easyp/releases/download/v${EASYP_VERSION}/${ASSET}"
+ curl -fLO "https://github.com/easyp-tech/easyp/releases/download/v${EASYP_VERSION}/easyp-${EASYP_VERSION}-checksums.txt"
+ sha256sum --check --ignore-missing "easyp-${EASYP_VERSION}-checksums.txt"
+ tar -xzf "$ASSET"
+ sudo install "easyp-${EASYP_VERSION}-linux-amd64/easyp" /usr/local/bin/easyp
+ easyp --version
+
+ - name: Validate configuration
+ run: easyp validate-config
- name: Verify locked dependencies
- run: easyp mod download
+ run: easyp mod download --frozen
- name: Lint schemas
- run: easyp lint --path proto
+ run: easyp lint --frozen --path proto
- name: Check compatibility
env:
BASE_REF: ${{ github.event.pull_request.base.sha }}
- run: easyp breaking --path proto --against "$BASE_REF"
+ run: easyp breaking --frozen --path proto --against "$BASE_REF"
- name: Generate code
- run: easyp generate --project .
+ run: easyp generate --frozen --project .
- name: Check committed generated files
run: |
@@ -82,7 +94,7 @@ easyp breaking --path proto --against refs/tags/v1.2.0
Выбирайте нужный предыдущий релиз явно: порядок создания тегов не обязательно задаёт историю совместимости. Каждая ревизия использует свои манифесты модулей, lock-файлы и зависимости, поэтому breaking-проверка может загрузить зависимости, которые не нужны текущему checkout.
-FILE — единственная поддерживаемая дополнительная категория. ignore_unstable работает для поддерживаемых суффиксов пакетов. Пути исключений отсчитываются от файла политики с секцией breaking: здесь proto/experimental задан относительно корневой политики. Вложенные секции заменяют секции целиком; extends явно подключает базу секции из локального файла или существующего закреплённого модуля.
+Поддерживаются все четыре профиля на базе дескрипторов: FILE, PACKAGE, WIRE_JSON и WIRE (отсутствующий или пустой categories по умолчанию использует ["FILE"]). ignore_unstable работает для поддерживаемых суффиксов пакетов. Пути исключений отсчитываются от файла политики с секцией breaking: здесь proto/experimental задан относительно корневой политики. Вложенные секции заменяют секции целиком; extends явно подключает базу секции из локального файла или существующего закреплённого модуля.
## Выбор проектов генерации
@@ -102,7 +114,7 @@ easyp generate --project ./backend --project ./frontend
По умолчанию хранилище EasyP находится в ~/.easyp; его можно перенести через EASYPPATH. Если кешируете его, включайте в ключ кеша ОС, версию инструментов EasyP и хеши нужных lock-файлов. Восстановленный кеш — оптимизация, проверка зависимостей всё равно выполняется.
-До шага зависимостей настройте Git-аутентификацию, необходимую приватным источникам. Храните учётные данные в принятом для runner механизме секретов и не выводите их в логи. Локальная замена не устраняет загрузки, если весь граф зависимостей не локальный и не находится в проверенном кеше; удалённым плагинам всё ещё нужна сеть. tidy и update отклоняют активные локальные замены и не являются проверками только для чтения.
+До шага зависимостей настройте Git-аутентификацию, необходимую приватным источникам. Храните учётные данные в принятом для runner механизме секретов и не выводите их в логи. Локальная замена не устраняет загрузки, если весь граф зависимостей не локальный и не находится в проверенном кеше; удалённым плагинам всё ещё нужна сеть. Без --frozen команды mod tidy и mod update работают с локальными заменами, не переписывая protobuf.lock, и относятся к изменяющим командам, а не к read-only проверкам; в CI передавайте --frozen, чтобы отклонять любые директивы replace и изменения графа.
## Отладка
diff --git a/content/docs/ci-cd/gitlab.mdx b/content/docs/ci-cd/gitlab.mdx
index 077b2f8..5286b0c 100644
--- a/content/docs/ci-cd/gitlab.mdx
+++ b/content/docs/ci-cd/gitlab.mdx
@@ -1,11 +1,14 @@
---
title: "GitLab CI"
+description: "Run frozen EasyP v1 config validation, dependency verification, linting, breaking checks, and code generation in GitLab CI."
---
-Set EASYP_CI_IMAGE to a pinned image containing a reviewed EasyP v1 build, Git and the required plugins. Commit configs and the lock. This example has one module and a root generation config; in a monorepo run module commands per module and explicitly select generation projects.
+Use a pinned EasyP v1 image such as `ghcr.io/easyp-tech/easyp:v1.0.0` (or a derived project image that also includes any required local `protoc-gen-*` executables; remote and 15 built-in WASM plugins require no extra local binaries). Commit your configs and `protobuf.lock`. This example has one module and a root generation config; in a monorepo run module commands per module and explicitly select generation projects with `--project` or `--all`.
~~~yaml
-image: $EASYP_CI_IMAGE
+image:
+ name: ghcr.io/easyp-tech/easyp:v1.0.0
+ entrypoint: [""]
variables:
GIT_DEPTH: "0"
@@ -16,13 +19,13 @@ contracts:
stage: validate
script:
- easyp validate-config
- - easyp mod download
- - easyp lint
+ - easyp mod download --frozen
+ - easyp lint --frozen
- git fetch origin +refs/heads/main:refs/remotes/origin/main
- - easyp breaking --against refs/remotes/origin/main
- - easyp generate
+ - easyp breaking --frozen --against refs/remotes/origin/main
+ - easyp generate --frozen
- git diff --exit-code
- test -z "$(git status --porcelain --untracked-files=normal -- gen)"
~~~
-Adjust main and gen to the project baseline and output directory. The last assertion catches newly generated untracked files. Do not mask breaking failures with || echo. Configure private Git access through the runner; do not put credentials into EasyP YAML.
+Adjust `main` and `gen` to the project baseline and output directory. Passing `--frozen` enforces the committed `protobuf.lock` and rejects any local `replace` directives in CI. The last assertion catches newly generated untracked files. Do not mask breaking failures with `|| echo`. Configure private Git access through the runner; do not put credentials into EasyP YAML.
diff --git a/content/docs/ci-cd/gitlab.ru.mdx b/content/docs/ci-cd/gitlab.ru.mdx
index 3880e7e..48e7373 100644
--- a/content/docs/ci-cd/gitlab.ru.mdx
+++ b/content/docs/ci-cd/gitlab.ru.mdx
@@ -1,11 +1,14 @@
---
title: "GitLab CI"
+description: "Запуск проверок конфигурации, зависимостей в режиме frozen, линтинга, breaking changes и генерации кода EasyP v1 в GitLab CI."
---
-Для примера ниже задайте EASYP_CI_IMAGE: закреплённый образ с проверенной сборкой EasyP v1, Git и нужными плагинами. Конфиги и lock должны быть закоммичены. Здесь показан один модуль с generation-конфигом в корне; в монорепозитории команды модулей запускаются для каждого модуля, а генерация выбирается явно.
+Используйте закреплённый образ EasyP v1, например `ghcr.io/easyp-tech/easyp:v1.0.0` (или собственный образ на его базе с нужными локальными бинарниками `protoc-gen-*`; для удалённых и 15 встроенных WASM-плагинов дополнительные бинарники не требуются). Конфиги и `protobuf.lock` должны быть закоммичены. Здесь показан один модуль с generation-конфигом в корне; в монорепозитории команды модулей запускаются для каждого модуля, а проекты генерации выбираются явно через `--project` или `--all`.
~~~yaml
-image: $EASYP_CI_IMAGE
+image:
+ name: ghcr.io/easyp-tech/easyp:v1.0.0
+ entrypoint: [""]
variables:
GIT_DEPTH: "0"
@@ -16,13 +19,13 @@ contracts:
stage: validate
script:
- easyp validate-config
- - easyp mod download
- - easyp lint
+ - easyp mod download --frozen
+ - easyp lint --frozen
- git fetch origin +refs/heads/main:refs/remotes/origin/main
- - easyp breaking --against refs/remotes/origin/main
- - easyp generate
+ - easyp breaking --frozen --against refs/remotes/origin/main
+ - easyp generate --frozen
- git diff --exit-code
- test -z "$(git status --porcelain --untracked-files=normal -- gen)"
~~~
-Замените main и gen на baseline и каталог результатов проекта. Последняя проверка учитывает новые неотслеживаемые generated-файлы. Не маскируйте ошибку breaking через || echo. Доступ к приватным Git-источникам настраивается средствами runner; секреты не записываются в YAML-конфиги EasyP.
+Замените `main` и `gen` на baseline и каталог результатов проекта. Флаг `--frozen` проверяет закоммиченный `protobuf.lock` и отклоняет любые локальные директивы `replace` в CI. Последняя проверка обнаруживает новые неотслеживаемые сгенерированные файлы. Не маскируйте ошибку breaking через `|| echo`. Доступ к приватным Git-источникам настраивается средствами runner; секреты не записываются в YAML-конфиги EasyP.
diff --git a/content/docs/ci-cd/meta.ru.json b/content/docs/ci-cd/meta.ru.json
new file mode 100644
index 0000000..8f83301
--- /dev/null
+++ b/content/docs/ci-cd/meta.ru.json
@@ -0,0 +1,7 @@
+{
+ "title": "CI/CD",
+ "pages": [
+ "github-actions",
+ "gitlab"
+ ]
+}
diff --git a/content/docs/cli/auto-completion.ru.mdx b/content/docs/cli/auto-completion.ru.mdx
index ea893e8..7c2512f 100644
--- a/content/docs/cli/auto-completion.ru.mdx
+++ b/content/docs/cli/auto-completion.ru.mdx
@@ -33,9 +33,6 @@ source ~/.bashrc
## Примечания
-- Команда `easyp completion ` выводит скрипт автодополнения для соответствующей оболочки.
-- Если используете другую оболочку (например, `fish`), можно сгенерировать вывод и сохранить вручную:
- ```bash
- easyp completion fish > ~/.config/fish/completions/easyp.fish
- ```
-- При обновлении версии EasyP рекомендуется заново перезагрузить оболочку, чтобы подтянуть возможные изменения в автодополнении.
+- Команда `easyp completion` поддерживает оболочки `zsh` и `bash`.
+- При установке через Homebrew на macOS и Linux скрипты автодополнения для bash и zsh устанавливаются автоматически.
+- При обновлении версии EasyP рекомендуется перезапустить оболочку, чтобы подтянуть возможные изменения в автодополнении.
diff --git a/content/docs/cli/configuration.mdx b/content/docs/cli/configuration.mdx
index cff1b8b..62d5942 100644
--- a/content/docs/cli/configuration.mdx
+++ b/content/docs/cli/configuration.mdx
@@ -1,9 +1,9 @@
---
-title: "EasyP v1 Pilot Configuration"
-description: "The files and CLI commands used by the EasyP v1 pilot."
+title: "EasyP v1 Configuration"
+description: "The configuration files, CLI commands, flags, environment variables, and MCP reference used by EasyP v1."
---
-The v1 pilot separates module dependencies, generation, and lint and breaking policies:
+EasyP v1 separates module dependencies, generation, and lint and breaking policies into focused files:
| File | Purpose |
|------|---------|
@@ -49,20 +49,36 @@ Frozen rejects every root replace, even unused entries, before acce
## Command flags
-| Command | Relevant flags |
-|---------|----------------|
-| generate | --gen-config, --project (repeatable), --all, --workspace, --descriptor_set_out, --descriptor_set_out_dir, --include_imports |
-| lint | --path (-p), --root (-r) |
-| breaking | --path (-p), --root (-r), --against |
-| init | --dir (-d), --module |
-| validate-config | --config (alias of --cfg), --format |
-| mod download/tidy/vendor/update | --frozen |
-| ls-files | --include-imports (default true), --format (json or text) |
+| Command (alias) | Relevant flags |
+|-----------------|----------------|
+| lint (l) | --config, --path (-p), --root (-r), --frozen |
+| breaking | --config, --path (-p), --root (-r), --against (default master), --frozen |
+| generate (g) | --config, --project (repeatable), --all, --workspace, --descriptor_set_out, --descriptor_set_out_dir, --include_imports, --frozen |
+| mod (m) download/tidy/vendor/update | --frozen (refused by tidy and update) |
+| get | --import-root (repeatable), --frozen (refused) |
+| init (i) | --dir (-d, env EASYP_INIT_DIR), --module, --frozen (refused) |
+| migrate | --dir, --module, --interactive, --write, --resolve-lock, --frozen (refused) |
+| validate-config (validate) | --config (file or directory), --format (-f, default json) |
+| ls-files (ls) | --include-imports (-I, default true), --format (-f, json or text), --frozen |
| schema-gen | --out-dir (default schemas) |
+| completion | Subcommands bash and zsh |
-The global flags are --cfg (alias --config, default easyp.yaml), --debug (-d), --format (-f, text or json), and --frozen. EASYP_CFG, EASYP_DEBUG, and EASYP_FORMAT set their respective defaults. The module cache uses EASYPPATH or $HOME/.easyp.
+The global flags (placed before the command) are --frozen, --debug (-d), and --format (-f, text or json).
-By default, generate selects the closest easyp.gen.yaml in the current directory or a workspace ancestor. Use --gen-config private.easyp.gen.yaml for one explicitly named generation file; --cfg/--config selects policy only. Repeat --project for multiple explicit consumers. --all separately opts into recursive selection below the invocation directory. --gen-config, --project and --all are mutually exclusive selection modes. --workspace sets the boundary for module paths and inheritance; by default this is the nearest Git repository or enclosing EasyP files. Modules and roots come from protobuf.mod; generate.packages selects exact protobuf package names across the selected modules. The generate --path and generate --root flags are unavailable.
+`--config` is a **command-local flag** placed after the command name (there is no global config flag or config-path env var). `lint` and `breaking` select a policy file (`*.easyp.yaml`), `generate` selects a generation file (`*.easyp.gen.yaml`), and `validate-config` selects a single file or directory. Passing a recognized file of the wrong kind fails instead of parsing it in the wrong format.
+
+### Environment variables
+
+| Variable | Purpose |
+|----------|---------|
+| EASYP_DEBUG | Default value for --debug (-d) |
+| EASYP_FORMAT | Default value for --format (-f: text or json) |
+| EASYP_PROXY | Hostname (or host:port) for proxying Git dependency fetches (not a project-file setting) |
+| EASYP_GIT_TIMEOUT | Per-operation Go duration limit for Git commands and cache-lock acquisition (default 5m) |
+| EASYP_INIT_DIR | Default directory for easyp init --dir |
+| EASYPPATH | Parent directory for the local module cache (default $HOME/.easyp) |
+
+By default, generate selects the closest easyp.gen.yaml in the current directory or a workspace ancestor. Use easyp generate --config private.easyp.gen.yaml for one explicitly named generation file. Repeat --project for multiple explicit consumers. --all separately opts into recursive selection below the invocation directory. --config, --project, and --all are mutually exclusive selection modes. --workspace sets the boundary for module paths and inheritance; by default this is the nearest Git repository or enclosing EasyP files. Modules and roots come from protobuf.mod; generate.paths and generate.packages filter sources across the selected modules. The generate --path and generate --root flags are unavailable.
--descriptor_set_out merges compatible graphs into one file; --descriptor_set_out_dir produces an independent file per project/module pair. The flags are mutually exclusive and destinations are invocation-relative. --include_imports defaults to false and affects exports only. plugins[].with_imports also defaults to false but separately enables imported code generation for an individual plugin. options.go.package_prefix changes Go only; full managed mode requires explicit generate.managed.enabled: true.
@@ -72,25 +88,27 @@ By default, generate selects the closest easyp.gen.yamleasyp.yaml and easyp.gen.yaml before parsing or validation. ${NAME} uses the variable value, ${NAME:-default} supplies a fallback, and $${NAME} leaves a literal ${NAME}. An unset variable without a fallback becomes an empty string. YAML comments are ignored during expansion. protobuf.mod and protobuf.lock do not use this substitution.
-For breaking, explicit --against overrides breaking.baseline, followed by the default master. Each revision uses its own roots, manifests, and locks; the baseline comes from an isolated Git snapshot. Policies come from current configuration and sections are inherited as a whole. The additional category FILE is supported; package-related and other categories are reserved and rejected. breaking.ignore_unstable defaults to false; its exact unstable suffix forms are in the [reference](/docs/reference/easyp-yaml#unstable-packages).
+For breaking, explicit --against overrides breaking.baseline, followed by the default master. Each revision uses its own roots, manifests, and locks; the baseline comes from an isolated Git snapshot. Policies come from current configuration and sections are inherited as a whole. All four descriptor-backed compatibility profiles are supported — FILE, PACKAGE, WIRE_JSON, and WIRE — and omitted or empty categories defaults to ["FILE"]. breaking.ignore_unstable defaults to false; its exact unstable suffix forms are in the [reference](/docs/reference/easyp-yaml#unstable-packages).
issues.exclude-rules.path is relative to the file supplying the issues section and supports *, ?, [], and complete ** segments. Literal directories cover their subtree. An empty rule {} explicitly ignores all files. linters.allow_comment_ignores defaults to true per policy. linters.extends and breaking.extends load section-scoped bases from bounded local paths or existing locked modules; see [shared policies](/docs/guides/organization-lint-style).
-validate-config recursively checks every easyp.yaml, easyp.gen.yaml, protobuf.mod, and protobuf.lock below the current directory. Pass --cfg <file> to check one file or --cfg <directory> to scan another directory. JSON errors identify the file; YAML structure errors also include line and column. Invalid lock versions, incomplete entries, and malformed hashes are reported as validation errors.
+`validate-config` recursively checks every `easyp.yaml`, `easyp.gen.yaml`, `protobuf.mod`, and `protobuf.lock` below the current directory, as well as named profiles matching `*.easyp.yaml` and `*.easyp.gen.yaml`. Pass `--config ` to check one file or `--config ` to scan another directory. JSON errors identify the file; YAML structure errors also include line and column. Invalid lock versions, incomplete entries, and malformed hashes are reported as validation errors.
~~~bash
easyp validate-config
-easyp validate-config --cfg ./services --format json
-easyp validate-config --cfg ./services/api/easyp.gen.yaml
+easyp validate-config --config ./services --format json
+easyp --format text validate-config --config ./services/api/easyp.gen.yaml
~~~
mod vendor verifies the locked Git dependencies and copies their .proto files into easyp_vendor using their import paths. It replaces a previous vendor tree only after all files have been copied successfully. Duplicate import paths are errors. With local replace directives it copies the effective local and verified remote graph without changing the published lock.
-ls-files lists local .proto files from protobuf.mod roots. By default it also includes reachable imports from dependencies and bundled well-known protos, resolving dependencies through the v1 lock or local replacements. Use --include-imports=false to list only local files; outside frozen mode this skips dependency resolution. JSON output contains files, roots, and any import errors.
+ls-files lists local .proto files from protobuf.mod roots. By default it also includes reachable imports from dependencies and bundled well-known protos, resolving dependencies through the v1 lock or local replacements. Use --include-imports=false (or -I=false) to list only local files; outside frozen mode this skips dependency resolution. JSON output contains files, roots, and any import errors.
schema-gen --out-dir schemas writes separate JSON Schemas for easyp.yaml, easyp.gen.yaml, and protobuf.lock, each with a -v1.schema.json filename and an unversioned alias. protobuf.mod is a text manifest, so validate it with validate-config instead. CLI validation also checks semantic rules beyond the JSON Schemas.
-The exported github.com/easyp-tech/easyp/mcp/easypconfig package registers easyp_config_describe through easypconfig.RegisterTool(server). The tool describes easyp.yaml, easyp.gen.yaml, protobuf.lock and protobuf.mod. YAML references use the same JSON Schemas as schema-gen; the text manifest returns grammar instead of a fabricated YAML/JSON Schema.
+## MCP server (`easyp-mcp`)
+
+EasyP ships the standalone **`easyp-mcp`** stdio MCP server binary (`cmd/easyp-mcp`, installed alongside `easyp` via Homebrew, Go install, and release archives) as well as the exported github.com/easyp-tech/easyp/mcp/easypconfig package (`easypconfig.RegisterTool(server)`). It exposes easyp_config_describe, which describes easyp.yaml, easyp.gen.yaml, protobuf.lock, and protobuf.mod. YAML references use the same JSON Schemas as schema-gen; the text manifest returns grammar instead of a fabricated YAML/JSON Schema.
~~~json
{"file":"protobuf.mod","path":"require[].version"}
diff --git a/content/docs/cli/configuration.ru.mdx b/content/docs/cli/configuration.ru.mdx
index 7276734..4af6a94 100644
--- a/content/docs/cli/configuration.ru.mdx
+++ b/content/docs/cli/configuration.ru.mdx
@@ -1,9 +1,9 @@
---
-title: "Конфигурация EasyP v1 Pilot"
-description: "Файлы и команды CLI пилотной версии EasyP v1."
+title: "Конфигурация EasyP v1"
+description: "Файлы конфигурации, команды CLI, флаги, переменные окружения и справка MCP в EasyP v1."
---
-В пилотной версии v1 зависимости, генерация и правила проверки находятся в разных файлах:
+EasyP v1 разделяет зависимости модулей, генерацию и правила проверок по отдельным файлам:
| Файл | Назначение |
|------|------------|
@@ -45,24 +45,40 @@ easyp mod vendor --frozen
Frozen отклоняет все корневые replace, даже неиспользуемые, до обращения к путям замен или скачивания зависимостей. Проверяются прямые и транзитивные требования относительно lock и содержимое кеша. Режим не разрешает версии заново, не ищет HEAD/теги зависимостей и не записывает манифест или lock. Отсутствующий или устаревший lock вызывает ошибку. Точные коммиты из lock могут загружаться в кеш: frozen не означает автономную работу без сети.
-mod tidy, get, mod update, init и migrate отклоняют запуск в frozen; предварительный просмотр и интерактивная миграция тоже запрещены. Подготовьте файлы вне frozen. Генерация проверяет все выбранные графы до запуска любого плагина. Lint сохраняет действующую область политик; breaking использует собственные манифест и lock базовой ревизии. Даже ls-files --include-imports=false проверяет frozen-граф. Подробнее — в [менеджере пакетов](/ru/docs/cli/package-manager).
+mod tidy, get, mod update, init и migrate отклоняют запуск в frozen; предварительный просмотр и интерактивная миграция тоже запрещены. Подготовьте файлы вне frozen. Генерация проверяет все выбранные графы до запуска любого плагина. Lint сохраняет действующую область политик; breaking использует собственные манифест и lock базовой ревизии. Даже ls-files --include-imports=false проверяет frozen-граф. Подробнее — в [менеджере пакетов](/ru/docs/cli/package-manager#сборки-в-режиме-frozen).
## Флаги команд
-| Команда | Основные флаги |
-|---------|----------------|
-| generate | --gen-config, --project (повторяемый), --all, --workspace, --descriptor_set_out, --descriptor_set_out_dir, --include_imports |
-| lint | --path (-p), --root (-r) |
-| breaking | --path (-p), --root (-r), --against |
-| init | --dir (-d), --module |
-| validate-config | --config (псевдоним --cfg), --format |
-| mod download/tidy/vendor/update | --frozen |
-| ls-files | --include-imports (по умолчанию true), --format (json или text) |
+| Команда (алиас) | Основные флаги |
+|-----------------|----------------|
+| lint (l) | --config, --path (-p), --root (-r), --frozen |
+| breaking | --config, --path (-p), --root (-r), --against (по умолчанию master), --frozen |
+| generate (g) | --config, --project (повторяемый), --all, --workspace, --descriptor_set_out, --descriptor_set_out_dir, --include_imports, --frozen |
+| mod (m) download/tidy/vendor/update | --frozen (отклоняется в tidy и update) |
+| get | --import-root (повторяемый), --frozen (отклоняется) |
+| init (i) | --dir (-d, env EASYP_INIT_DIR), --module, --frozen (отклоняется) |
+| migrate | --dir, --module, --interactive, --write, --resolve-lock, --frozen (отклоняется) |
+| validate-config (validate) | --config (файл или каталог), --format (-f, по умолчанию json) |
+| ls-files (ls) | --include-imports (-I, по умолчанию true), --format (-f, json или text), --frozen |
| schema-gen | --out-dir (по умолчанию schemas) |
+| completion | Подкоманды bash и zsh |
-Общие флаги: --cfg (псевдоним --config, по умолчанию easyp.yaml), --debug (-d), --format (-f, text или json) и --frozen. Переменные EASYP_CFG, EASYP_DEBUG и EASYP_FORMAT задают значения по умолчанию. Кеш модулей находится в EASYPPATH или $HOME/.easyp.
+Глобальные флаги (указываются перед командой): --frozen, --debug (-d) и --format (-f, text или json).
-По умолчанию generate выбирает ближайший easyp.gen.yaml в текущем или родительском каталоге workspace. Для одного файла с другим именем используйте --gen-config private.easyp.gen.yaml; --cfg/--config выбирает только политики. --project можно повторять для нескольких явных потребителей. --all отдельно включает рекурсивный выбор внутри каталога запуска. --gen-config, --project и --all — взаимоисключающие режимы выбора. --workspace задаёт границу для путей модулей и наследования; по умолчанию используется ближайший Git-репозиторий или охватывающие файлы EasyP. Модули и корни исходников берутся из protobuf.mod; generate.packages выбирает точные имена protobuf-пакетов среди выбранных модулей. Флагов generate --path и generate --root нет.
+`--config` — это **локальный флаг конкретной команды**, указываемый после её имени (глобального флага конфигурации и переменной среды для пути к конфигу нет). В `lint` и `breaking` он выбирает файл политик (`*.easyp.yaml`), в `generate` — файл генерации (`*.easyp.gen.yaml`), в `validate-config` — отдельный файл или каталог. Передача файла другого распознанного типа вызывает ошибку вместо разбора в неверном формате.
+
+### Переменные окружения
+
+| Переменная | Назначение |
+|------------|------------|
+| EASYP_DEBUG | Значение по умолчанию для --debug (-d) |
+| EASYP_FORMAT | Значение по умолчанию для --format (-f: text или json) |
+| EASYP_PROXY | Хост (или host:port) прокси для загрузки Git-зависимостей (не задаётся в файлах проекта) |
+| EASYP_GIT_TIMEOUT | Лимит Go-длительности на одну Git-операцию и ожидание блокировки кеша (по умолчанию 5m) |
+| EASYP_INIT_DIR | Каталог по умолчанию для easyp init --dir |
+| EASYPPATH | Родительский каталог локального кеша модулей (по умолчанию $HOME/.easyp) |
+
+По умолчанию generate выбирает ближайший easyp.gen.yaml в текущем или родительском каталоге workspace. Для одного файла с другим именем используйте easyp generate --config private.easyp.gen.yaml. --project можно повторять для нескольких явных потребителей. --all отдельно включает рекурсивный выбор внутри каталога запуска. --config, --project и --all — взаимоисключающие режимы выбора. --workspace задаёт границу для путей модулей и наследования; по умолчанию используется ближайший Git-репозиторий или охватывающие файлы EasyP. Модули и корни исходников берутся из protobuf.mod; generate.paths и generate.packages фильтруют исходники выбранных модулей. Флагов generate --path и generate --root нет.
--descriptor_set_out объединяет совместимые графы в один файл; --descriptor_set_out_dir создаёт независимый файл для каждой пары проект/модуль. Флаги взаимоисключающие, пути считаются от каталога запуска. --include_imports по умолчанию равен false и влияет только на экспорт. plugins[].with_imports также по умолчанию равен false, но отдельно включает генерацию импортов для конкретного плагина. options.go.package_prefix меняет только Go; полный managed mode требует явного generate.managed.enabled: true.
@@ -72,25 +88,27 @@ Frozen отклоняет все корневые replace, даже
Перед разбором и проверкой easyp.yaml и easyp.gen.yaml EasyP подставляет переменные окружения. ${NAME} берёт значение переменной, ${NAME:-default} задаёт запасное значение, а $${NAME} оставляет буквальную строку ${NAME}. Отсутствующая переменная без запасного значения превращается в пустую строку. Подстановки в комментариях YAML игнорируются. В protobuf.mod и protobuf.lock такой подстановки нет.
-В breaking явный --against перекрывает breaking.baseline, затем применяется значение по умолчанию master. Каждая ревизия использует собственные корни, манифесты и lock; база читается из изолированного Git-снимка. Политики берутся из текущей конфигурации, секции наследуются целиком. Поддерживается дополнительная категория FILE; пакетные и другие категории зарезервированы и не принимаются. breaking.ignore_unstable по умолчанию равен false; точные формы нестабильных суффиксов описаны в [справочнике](/ru/docs/reference/easyp-yaml#нестабильные-пакеты).
+В breaking явный --against перекрывает breaking.baseline, затем применяется значение по умолчанию master. Каждая ревизия использует собственные корни, манифесты и lock; база читается из изолированного Git-снимка. Политики берутся из текущей конфигурации, секции наследуются целиком. Поддерживаются все четыре профиля совместимости на базе дескрипторов — FILE, PACKAGE, WIRE_JSON и WIRE; если categories не задан или пуст, по умолчанию применяется ["FILE"]. breaking.ignore_unstable по умолчанию равен false; точные формы нестабильных суффиксов описаны в [справочнике](/ru/docs/reference/easyp-yaml#нестабильные-пакеты).
Пути issues.exclude-rules.path считаются от файла, предоставляющего секцию issues, и поддерживают *, ?, [] и полные сегменты **. Буквальный каталог охватывает поддерево. Пустое правило {} явно исключает все файлы. linters.allow_comment_ignores по умолчанию равен true для каждой политики. linters.extends и breaking.extends подключают базы отдельных секций из локальных путей или существующих закреплённых модулей; см. [общие политики](/ru/docs/guides/organization-lint-style).
-validate-config рекурсивно проверяет все easyp.yaml, easyp.gen.yaml, protobuf.mod и protobuf.lock внутри текущего каталога. Передайте --cfg <файл>, чтобы проверить один файл, или --cfg <каталог>, чтобы проверить другой каталог. В JSON-ошибках указан файл, а для ошибок структуры YAML — строка и столбец. Некорректная версия lock-файла, неполные записи и неверные хеши выдаются как ошибки проверки.
+`validate-config` рекурсивно проверяет все `easyp.yaml`, `easyp.gen.yaml`, `protobuf.mod` и `protobuf.lock` внутри текущего каталога, а также именованные профили `*.easyp.yaml` и `*.easyp.gen.yaml`. Передайте `--config <файл>`, чтобы проверить один файл, или `--config <каталог>`, чтобы проверить другой каталог. В JSON-ошибках указан файл, а для ошибок структуры YAML — строка и столбец. Некорректная версия lock-файла, неполные записи и неверные хеши выдаются как ошибки проверки.
~~~bash
easyp validate-config
-easyp validate-config --cfg ./services --format json
-easyp validate-config --cfg ./services/api/easyp.gen.yaml
+easyp validate-config --config ./services --format json
+easyp --format text validate-config --config ./services/api/easyp.gen.yaml
~~~
mod vendor проверяет зафиксированные Git-зависимости и копирует их .proto в easyp_vendor по import path. Старый каталог заменяется только после успешного копирования всех файлов. Совпадающие import path вызывают ошибку. При наличии локальных replace копируется эффективный граф локальных и проверенных удалённых исходников без изменения опубликованного lock.
-ls-files показывает локальные .proto из корней protobuf.mod. По умолчанию команда также включает достижимые импорты из зависимостей и встроенных well-known proto, разрешая зависимости через v1 lock или локальные замены. --include-imports=false показывает только локальные файлы; вне frozen это пропускает разрешение зависимостей. В JSON есть поля files, roots и, при проблемах с импортами, errors.
+ls-files показывает локальные .proto из корней protobuf.mod. По умолчанию команда также включает достижимые импорты из зависимостей и встроенных well-known proto, разрешая зависимости через v1 lock или локальные замены. --include-imports=false (или -I=false) показывает только локальные файлы; вне frozen это пропускает разрешение зависимостей. В JSON есть поля files, roots и, при проблемах с импортами, errors.
schema-gen --out-dir schemas создаёт отдельные JSON Schema для easyp.yaml, easyp.gen.yaml и protobuf.lock: файлы с суффиксом -v1.schema.json и псевдонимы без версии. protobuf.mod — текстовый манифест; проверяйте его командой validate-config. CLI также проверяет семантические правила, не выраженные в JSON Schema.
-Экспортируемый пакет github.com/easyp-tech/easyp/mcp/easypconfig регистрирует easyp_config_describe через easypconfig.RegisterTool(server). Инструмент описывает easyp.yaml, easyp.gen.yaml, protobuf.lock и protobuf.mod. YAML-справка использует те же JSON Schema, что и schema-gen; для текстового manifest возвращается грамматика, а не вымышленная YAML/JSON Schema.
+## MCP-сервер (`easyp-mcp`)
+
+Вместе с EasyP поставляется отдельный stdio MCP-сервер **`easyp-mcp`** (`cmd/easyp-mcp`, устанавливается рядом с `easyp` через Homebrew, Go install и архивы релизов), а также экспортируемый пакет github.com/easyp-tech/easyp/mcp/easypconfig (`easypconfig.RegisterTool(server)`). Он регистрирует инструмент easyp_config_describe, описывающий easyp.yaml, easyp.gen.yaml, protobuf.lock и protobuf.mod. YAML-справка использует те же JSON Schema, что и schema-gen; для текстового manifest возвращается грамматика, а не вымышленная YAML/JSON Schema.
~~~json
{"file":"protobuf.mod","path":"require[].version"}
diff --git a/content/docs/cli/generator/examples/go.mdx b/content/docs/cli/generator/examples/go.mdx
index bdd9336..cf4c809 100644
--- a/content/docs/cli/generator/examples/go.mdx
+++ b/content/docs/cli/generator/examples/go.mdx
@@ -27,7 +27,7 @@ plugins:
paths: source_relative
```
-Run `easyp generate`. If `protoc-gen-go` or `protoc-gen-go-grpc` is on `PATH`, EasyP uses that executable; otherwise it uses the corresponding bundled WASM plugin. A `go_package` option in each source file, or a managed `options.go.package_prefix`, supplies the Go import path. See the [managed options reference](/docs/reference/easyp-gen-yaml).
+Install `protoc-gen-go` and `protoc-gen-go-grpc` on `PATH` (note: `go` and `go-grpc` are **not** among the 15 built-in WASM plugins; to run without installing local Go plugins, use `remote: plugins.easyp.tech/protocolbuffers/go` and `remote: plugins.easyp.tech/grpc/go` with pinned `version:` fields), then run `easyp generate`. A `go_package` option in each source file, or a managed `options.go.package_prefix`, supplies the Go import path. See the [managed options reference](/docs/reference/easyp-gen-yaml).
For example, adding `options.go.package_prefix: github.com/acme/contracts/gen/go` maps the protobuf package `common.v1` to `github.com/acme/contracts/gen/go/common/v1`. With `paths: source_relative`, the generated files go to `gen/go/common/v1`, keeping directories aligned with the Go imports.
diff --git a/content/docs/cli/generator/examples/go.ru.mdx b/content/docs/cli/generator/examples/go.ru.mdx
index d2d51e5..eabfdf1 100644
--- a/content/docs/cli/generator/examples/go.ru.mdx
+++ b/content/docs/cli/generator/examples/go.ru.mdx
@@ -27,7 +27,7 @@ plugins:
paths: source_relative
```
-Выполните `easyp generate`. Если `protoc-gen-go` или `protoc-gen-go-grpc` доступен в `PATH`, EasyP использует этот бинарник; иначе запускает соответствующий встроенный WASM-плагин. Go import path задаётся опцией `go_package` в `.proto` или managed-опцией `options.go.package_prefix`. Подробности — в [справочнике managed mode](/ru/docs/reference/easyp-gen-yaml).
+Установите `protoc-gen-go` и `protoc-gen-go-grpc` в `PATH` (`go` и `go-grpc` **не** входят в 15 встроенных WASM-плагинов; для запуска без локальной установки используйте `remote: plugins.easyp.tech/protocolbuffers/go` и `remote: plugins.easyp.tech/grpc/go` с зафиксированными полями `version:`), затем выполните `easyp generate`. Go import path задаётся опцией `go_package` в `.proto` или managed-опцией `options.go.package_prefix`. Подробности — в [справочнике managed mode](/ru/docs/reference/easyp-gen-yaml).
Например, `options.go.package_prefix: github.com/acme/contracts/gen/go` отображает protobuf-пакет `common.v1` в `github.com/acme/contracts/gen/go/common/v1`. С `paths: source_relative` файлы попадают в `gen/go/common/v1`, согласуя каталоги с Go-импортами.
diff --git a/content/docs/cli/generator/examples/meta.ru.json b/content/docs/cli/generator/examples/meta.ru.json
new file mode 100644
index 0000000..29e8e27
--- /dev/null
+++ b/content/docs/cli/generator/examples/meta.ru.json
@@ -0,0 +1,8 @@
+{
+ "title": "Примеры",
+ "pages": [
+ "go",
+ "grpc-gateway",
+ "validate"
+ ]
+}
diff --git a/content/docs/cli/generator/examples/validate.mdx b/content/docs/cli/generator/examples/validate.mdx
index a6a8204..9b183d5 100644
--- a/content/docs/cli/generator/examples/validate.mdx
+++ b/content/docs/cli/generator/examples/validate.mdx
@@ -18,9 +18,10 @@ plugins:
out: ./gen/go
opts:
lang: go
+ paths: source_relative
```
-Install `protoc-gen-go` and `protoc-gen-validate` on `PATH`, then run:
+Setting `paths: source_relative` on `validate` ensures `*.pb.validate.go` files are written alongside `*.pb.go` in the same Go package directory. Install `protoc-gen-go` and `protoc-gen-validate` on `PATH`, then run:
```bash
easyp mod tidy
diff --git a/content/docs/cli/generator/examples/validate.ru.mdx b/content/docs/cli/generator/examples/validate.ru.mdx
index 1bbb837..94425f7 100644
--- a/content/docs/cli/generator/examples/validate.ru.mdx
+++ b/content/docs/cli/generator/examples/validate.ru.mdx
@@ -18,9 +18,10 @@ plugins:
out: ./gen/go
opts:
lang: go
+ paths: source_relative
```
-Добавьте `protoc-gen-go` и `protoc-gen-validate` в `PATH`, затем выполните:
+Параметр `paths: source_relative` у `validate` гарантирует, что файлы `*.pb.validate.go` запишутся рядом с `*.pb.go` в тот же каталог Go-пакета. Добавьте `protoc-gen-go` и `protoc-gen-validate` в `PATH`, затем выполните:
```bash
easyp mod tidy
diff --git a/content/docs/cli/generator/index.mdx b/content/docs/cli/generator/index.mdx
index 960e82f..e7b52a2 100644
--- a/content/docs/cli/generator/index.mdx
+++ b/content/docs/cli/generator/index.mdx
@@ -3,7 +3,7 @@ title: "Generator"
description: "Select consumer projects, generate protobuf code, and export descriptor sets in EasyP v1."
---
-easyp generate selects the closest easyp.gen.yaml in the current directory or an ancestor within the workspace. It compiles the selected modules and runs that project's plugins. Module identities, roots, and dependency versions come from protobuf.mod and protobuf.lock.
+easyp generate (alias easyp g) selects the closest easyp.gen.yaml in the current directory or an ancestor within the workspace. It compiles the selected modules with EasyP's built-in pure-Go **`easyprotoc`** compiler (zero `protoc` required, built-in `google/protobuf/*.proto` well-known types, and Protobuf Editions 2023 support) and runs that project's plugins. Module identities, roots, and dependency versions come from protobuf.mod and protobuf.lock.
## Configure a module
@@ -36,7 +36,20 @@ easyp mod tidy
easyp generate
~~~
-If generate.modules is omitted, EasyP selects the nearest protobuf.mod beside or above the generator file within the workspace; without a manifest, the project directory is the source root. Explicit entries select local module identities, workspace-relative module paths, or dependencies resolved through the consumer manifest and lock. generate.packages optionally selects exact protobuf package names; empty selects all module sources.
+If generate.modules is omitted, EasyP selects the nearest protobuf.mod beside or above the generator file within the workspace; without a manifest, the project directory is the source root. Explicit entries can be plain module strings (local module identities, workspace-relative module paths, or dependencies resolved through the consumer manifest and lock) or module objects with per-module filters:
+
+~~~yaml
+generate:
+ modules:
+ - module: proto/users
+ paths: [schemas/api]
+ packages: [users.v1]
+ - proto/orders
+ paths: [api]
+ packages: [users.v1, orders.v1]
+~~~
+
+generate.paths selects literal files or directory subtrees relative to each selected module directory (and can also be used without listing generate.modules). generate.packages selects exact protobuf package names; omitted or empty selects all sources. Global and per-module filters intersect.
## Select projects
@@ -51,24 +64,24 @@ easyp generate --all
easyp generate --workspace ../.. --project ..
~~~
---project is repeatable and cannot be combined with --all. Recursive discovery skips hidden directories, easyp_vendor, node_modules, and nested Git repositories. Select a project in a skipped directory explicitly. Automatic selection rejects a symlink configuration file; an explicit project selection is required to use it. Choosing --all authorizes plugins in the discovered projects, including command plugins.
+--project is repeatable and cannot be combined with --all. Recursive discovery skips hidden directories, easyp_vendor, node_modules, and nested Git repositories. Select a project in a skipped directory explicitly. Internal configuration and source symlinks that stay within their workspace or module boundary are supported; escaping symlinks and cycles are rejected. Choosing --all authorizes plugins in the discovered projects, including command plugins.
The nearest Git repository, including a worktree with a .git file, supplies the workspace boundary. Without Git, enclosing EasyP configuration and manifest files establish the boundary; --workspace sets it explicitly. Project paths and descriptor destinations are relative to the invocation directory. Plugin output paths are relative to the selected generation file. The command has no --path or --root flag.
## Named generation configs
-Keep profiles such as private.easyp.gen.yaml and public.easyp.gen.yaml beside the same protobuf.mod, then select one file with --gen-config:
+Keep profiles such as private.easyp.gen.yaml and public.easyp.gen.yaml beside the same protobuf.mod, then select one file with command-local --config:
~~~bash
-easyp generate --gen-config private.easyp.gen.yaml
-easyp generate --gen-config public.easyp.gen.yaml
+easyp generate --config private.easyp.gen.yaml
+easyp generate --config public.easyp.gen.yaml
# The selected profile can also export descriptors.
-easyp generate --gen-config public.easyp.gen.yaml --descriptor_set_out build/public.pb
+easyp generate --config public.easyp.gen.yaml --descriptor_set_out build/public.pb
~~~
-The flag accepts one relative or absolute file path inside the workspace. Relative paths start at the invocation directory; --workspace can set the boundary explicitly. The file uses the native version: v1 generation format. Missing, empty or invalid selections fail without falling back to easyp.gen.yaml.
+The flag accepts one relative or absolute file path inside the workspace. Relative paths start at the invocation directory; --workspace can set the boundary explicitly. The file uses the native version: v1 generation format; passing a policy filename ending in .easyp.yaml fails explicitly. Missing, empty, or invalid selections fail without falling back to easyp.gen.yaml.
-Do not combine --gen-config with --project or --all. Automatic selection and --all still discover only standard easyp.gen.yaml files. The global --config/--cfg flag selects a policy file and does not select a generation profile.
+Do not combine --config with --project or --all. Automatic selection and --all still discover only standard easyp.gen.yaml files.
Colocated profiles keep the same source, module and output path rules; no directory relocation or extra ../ is needed. Plugin outputs remain relative to the selected file's directory. Options inherit from standard easyp.gen.yaml files in ancestor directories; a standard file in the same directory is an independent profile and is not inherited. See [profiles for one module](/docs/guides/multi-target-generation#profiles-for-one-module) for complete examples.
@@ -81,7 +94,7 @@ easyp --frozen generate --all --descriptor_set_out_dir build/descriptors
Each selected local native module must have protobuf.mod and protobuf.lock, including an empty lock without dependencies. An explicit workspace-relative path uses the selected module's files: backend/easyp.gen.yaml with generate.modules: [proto/user] validates proto/user/protobuf.mod and proto/user/protobuf.lock. The generator-only backend directory needs neither file. Frozen rejects all root replacements, even unused ones, and validates the locked direct and transitive graph before any plugin executes. A failure in a later selected project therefore prevents plugins in earlier projects from running. The same preflight applies to both descriptor export modes and pluginless exports.
-A dependency selected by identity through generate.modules requires its consumer's manifest and lock; the downloaded dependency does not need its own lock. Unselected projects are ignored. --frozen does not change the existing --gen-config/--project/--all selection and plugin authorization rules.
+A dependency selected by identity through generate.modules requires its consumer's manifest and lock; the downloaded dependency does not need its own lock. Unselected projects are ignored. --frozen does not change the existing --config/--project/--all selection and plugin authorization rules.
Exact locked commits may be downloaded into the cache and are hash-verified, including on cache reuse. Manifest and lock files are never rewritten, and dependency HEAD/tags are never resolved. Frozen is explicit, not inferred from CI, and does not make remote plugins offline or pin local plugin executables. See [frozen builds](/docs/cli/package-manager#frozen-builds).
@@ -102,13 +115,13 @@ All requested graphs and export destinations pass preflight before any plugin ru
## Plugins and managed options
-Each plugin sets exactly one source: name, path, command, or remote. Local binaries and commands run from the invocation directory. Remote plugins require a pinned semantic version; local and bundled plugins reject a separate version field.
+Each plugin sets exactly one source: name, path, command, or remote. Local binaries and commands run from the invocation directory. Remote plugins require a pinned semantic version; local and bundled plugins reject a separate version field. opts accepts either a YAML key-value map (`opts: { paths: source_relative }`) or a list of flag strings (`opts: [paths=source_relative, require_unimplemented_servers=false]`).
-Bundled names such as go and go-grpc use a matching protoc-gen-* on PATH when available, otherwise their bundled WASM plugin.
+EasyP bundles **15 built-in WASM plugins**: `cpp`, `csharp`, `java`, `kotlin`, `objc`, `php`, `python`, `ruby`, `grpc_cpp`, `grpc_csharp`, `grpc_java`, `grpc_objc`, `grpc_php`, `grpc_python`, and `grpc_ruby`. For these 15 names, a matching `protoc-gen-*` executable on `PATH` takes precedence when installed; otherwise EasyP runs the built-in WASM binary. Other names — including **`go` and `go-grpc`** — are **not** bundled WASM plugins and require a matching `protoc-gen-*` executable on `PATH` (or use `path`, `command`, or a hosted `remote` plugin from `plugins.easyp.tech`).
plugins[].with_imports defaults to false. Set it to true for a particular plugin to generate code for transitive imports as well as the selected files. Other plugins still receive dependency descriptors for linking. This setting is independent of descriptor export's --include_imports. Keep Go import paths and output directories aligned: different Go packages must not share one generated directory. Identical shared outputs are deduplicated; conflicting file contents or Go package declarations fail before generated files are written.
-options.go.package_prefix changes Go options only. Defaults for other languages and field-option transformations require explicit generate.managed.enabled: true. An inherited Go prefix precedes explicit managed Go overrides; a prefix in the current file has the highest priority. Go disable selectors still apply. See the full [configuration reference](/docs/reference/easyp-gen-yaml).
+options.go.package_prefix changes Go options only. Defaults for other languages and field-option transformations require explicit generate.managed.enabled: true. EasyP supports **19 managed `file_option` settings** (`go_package`, `go_package_prefix`, `java_package`, `java_package_prefix`, `java_package_suffix`, `java_multiple_files`, `java_outer_classname`, `java_string_check_utf8`, `csharp_namespace`, `csharp_namespace_prefix`, `ruby_package`, `ruby_package_suffix`, `php_namespace`, `php_metadata_namespace`, `php_metadata_namespace_suffix`, `objc_class_prefix`, `swift_prefix`, `optimize_for`, `cc_enable_arenas`) and **1 managed `field_option`** (`jstype`). An inherited Go prefix precedes explicit managed Go overrides; a prefix in the current file has the highest priority. Go disable selectors still apply. See the full [configuration reference](/docs/reference/easyp-gen-yaml).
A plain prefix maps a multi-component protobuf package such as common.v1 to <prefix>/common/v1. With explicit paths: source_relative, Go output directories follow the plugin's effective import path under that prefix, including its Mfile.proto mappings. Insertion-point outputs follow the producer's output file. See [Go output paths and plugin mappings](/docs/reference/easyp-gen-yaml#go-output-paths-and-plugin-mappings) for marker templates and precedence.
diff --git a/content/docs/cli/generator/index.ru.mdx b/content/docs/cli/generator/index.ru.mdx
index eeec76d..0378ea1 100644
--- a/content/docs/cli/generator/index.ru.mdx
+++ b/content/docs/cli/generator/index.ru.mdx
@@ -3,7 +3,7 @@ title: "Генератор"
description: "Выбор проектов-потребителей, генерация protobuf-кода и экспорт дескрипторов в EasyP v1."
---
-easyp generate выбирает ближайший easyp.gen.yaml в текущем или родительском каталоге в пределах workspace. Команда компилирует выбранные модули и запускает плагины этого проекта. Имена модулей, корни исходников и версии зависимостей берутся из protobuf.mod и protobuf.lock.
+easyp generate (алиас easyp g) выбирает ближайший easyp.gen.yaml в текущем или родительском каталоге в пределах workspace. Команда компилирует выбранные модули встроенным pure-Go компилятором **`easyprotoc`** (без установки `protoc`, со встроенными типами `google/protobuf/*.proto` и поддержкой Protobuf Editions 2023) и запускает плагины этого проекта. Имена модулей, корни исходников и версии зависимостей берутся из protobuf.mod и protobuf.lock.
## Настройка модуля
@@ -36,7 +36,20 @@ easyp mod tidy
easyp generate
~~~
-Если generate.modules не указан, EasyP выбирает ближайший protobuf.mod рядом с файлом генератора или выше в пределах workspace; без манифеста корнем исходников становится каталог проекта. Явные элементы выбирают локальный модуль по имени, путь относительно workspace или зависимость из манифеста и lock потребителя. generate.packages выбирает точные имена protobuf-пакетов; пустой список означает все исходники модуля.
+Если generate.modules не указан, EasyP выбирает ближайший protobuf.mod рядом с файлом генератора или выше в пределах workspace; без манифеста корнем исходников становится каталог проекта. Явные элементы можно задавать строкой (имя локального модуля, путь относительно workspace или зависимость из манифеста и lock потребителя) либо объектом с собственными фильтрами:
+
+~~~yaml
+generate:
+ modules:
+ - module: proto/users
+ paths: [schemas/api]
+ packages: [users.v1]
+ - proto/orders
+ paths: [api]
+ packages: [users.v1, orders.v1]
+~~~
+
+generate.paths выбирает буквальные файлы или подкаталоги относительно каталога каждого выбранного модуля (поле работает и без указания generate.modules). generate.packages выбирает точные имена protobuf-пакетов; отсутствие или пустой список означает все исходники. Глобальные и помодульные фильтры пересекаются.
## Выбор проектов
@@ -51,24 +64,24 @@ easyp generate --all
easyp generate --workspace ../.. --project ..
~~~
---project можно повторять, но нельзя сочетать с --all. Рекурсивный поиск пропускает скрытые каталоги, easyp_vendor, node_modules и вложенные Git-репозитории. Проект в пропускаемом каталоге можно выбрать явно. Автоматический выбор отклоняет конфигурацию-симлинк; для неё нужен явный выбор проекта. Флаг --all разрешает запуск плагинов найденных проектов, включая command-плагины.
+--project можно повторять, но нельзя сочетать с --all. Рекурсивный поиск пропускает скрытые каталоги, easyp_vendor, node_modules и вложенные Git-репозитории. Проект в пропускаемом каталоге можно выбрать явно. Внутренние симлинки конфигов и исходников, остающиеся в пределах workspace или модуля, поддерживаются; выход за границу и циклы отклоняются. Флаг --all разрешает запуск плагинов найденных проектов, включая command-плагины.
Границу workspace задаёт ближайший Git-репозиторий, включая worktree с файлом .git. Без Git граница определяется по охватывающим конфигам и манифестам EasyP; --workspace задаёт её явно. Пути проектов и дескрипторов считаются от каталога запуска. Пути результатов плагинов считаются от выбранного файла генерации. Флагов --path и --root у команды нет.
## Конфиги генерации с разными именами
-Разместите private.easyp.gen.yaml и public.easyp.gen.yaml рядом с одним protobuf.mod и выбирайте файл через --gen-config:
+Разместите private.easyp.gen.yaml и public.easyp.gen.yaml рядом с одним protobuf.mod и выбирайте файл локальным флагом команды --config:
~~~bash
-easyp generate --gen-config private.easyp.gen.yaml
-easyp generate --gen-config public.easyp.gen.yaml
+easyp generate --config private.easyp.gen.yaml
+easyp generate --config public.easyp.gen.yaml
# Выбранный профиль также может экспортировать дескрипторы.
-easyp generate --gen-config public.easyp.gen.yaml --descriptor_set_out build/public.pb
+easyp generate --config public.easyp.gen.yaml --descriptor_set_out build/public.pb
~~~
-Флаг принимает один относительный или абсолютный путь к файлу внутри workspace. Относительный путь считается от каталога запуска; границу можно явно задать через --workspace. Файл использует нативный формат генерации version: v1. Отсутствующий, пустой или некорректный выбор вызывает ошибку без переключения на easyp.gen.yaml.
+Флаг принимает один относительный или абсолютный путь к файлу внутри workspace. Относительный путь считается от каталога запуска; границу можно явно задать через --workspace. Файл использует нативный формат генерации version: v1; передача файла политик с суффиксом .easyp.yaml явно отклоняется. Отсутствующий, пустой или некорректный выбор вызывает ошибку без переключения на easyp.gen.yaml.
-Не сочетайте --gen-config с --project или --all. Автоматический выбор и --all по-прежнему находят только стандартные файлы easyp.gen.yaml. Общий флаг --config/--cfg выбирает файл политик и не выбирает профиль генерации.
+Не сочетайте --config с --project или --all. Автоматический выбор и --all по-прежнему находят только стандартные файлы easyp.gen.yaml.
Профили в одном каталоге сохраняют прежние правила путей исходников, модулей и результатов: переносить конфиги и добавлять ../ не нужно. Результаты плагинов остаются относительными к каталогу выбранного файла. Опции наследуются из стандартных easyp.gen.yaml в родительских каталогах; стандартный файл в том же каталоге считается отдельным профилем и не наследуется. Полные примеры — в [руководстве по генерации для одного модуля](/ru/docs/guides/multi-target-generation#профили-для-одного-модуля).
@@ -81,9 +94,9 @@ easyp --frozen generate --all --descriptor_set_out_dir build/descriptors
Каждому выбранному локальному native-модулю нужны protobuf.mod и protobuf.lock, в том числе пустой lock без зависимостей. Явный путь от workspace использует файлы выбранного модуля: backend/easyp.gen.yaml с generate.modules: [proto/user] проверяет proto/user/protobuf.mod и proto/user/protobuf.lock. Самому каталогу backend, содержащему только настройки генератора, эти файлы не нужны. Frozen отклоняет все корневые замены, даже неиспользуемые, и проверяет зафиксированный граф прямых и транзитивных зависимостей до запуска любого плагина. Ошибка в проекте, выбранном позже, поэтому не даст запустить плагины более ранних проектов. Проверка действует для обоих режимов экспорта дескрипторов, включая экспорт без плагинов.
-Зависимость, выбранная по идентификатору через generate.modules, требует манифест и lock потребителя; собственный lock в скачанной зависимости не требуется. Невыбранные проекты игнорируются. --frozen не меняет существующие правила выбора и разрешения запуска плагинов через --gen-config/--project/--all.
+Зависимость, выбранная по идентификатору через generate.modules, требует манифест и lock потребителя; собственный lock в скачанной зависимости не требуется. Невыбранные проекты игнорируются. --frozen не меняет существующие правила выбора и разрешения запуска плагинов через --config/--project/--all.
-Точные коммиты из lock могут скачиваться в кеш; хеши проверяются и при повторном использовании кеша. Манифест и lock никогда не переписываются, HEAD/теги зависимостей не разрешаются. Frozen включается явно, а не по окружению CI; он не отключает сеть удалённым плагинам и не фиксирует локальные исполняемые файлы плагинов. Подробнее — в [менеджере пакетов](/ru/docs/cli/package-manager).
+Точные коммиты из lock могут скачиваться в кеш; хеши проверяются и при повторном использовании кеша. Манифест и lock никогда не переписываются, HEAD/теги зависимостей не разрешаются. Frozen включается явно, а не по окружению CI; он не отключает сеть удалённым плагинам и не фиксирует локальные исполняемые файлы плагинов. Подробнее — в [сборках в режиме frozen](/ru/docs/cli/package-manager#сборки-в-режиме-frozen).
## Экспорт дескрипторов
@@ -102,13 +115,13 @@ easyp generate --all --descriptor_set_out_dir build/descriptors --include_import
## Плагины и managed mode
-Каждый плагин задаёт ровно один источник: name, path, command или remote. Локальные бинарные файлы и команды запускаются из каталога вызова EasyP. Удалённому плагину нужен зафиксированный SemVer в version; локальные и встроенные плагины отдельную версию не принимают.
+Каждый плагин задаёт ровно один источник: name, path, command или remote. Локальные бинарные файлы и команды запускаются из каталога вызова EasyP. Удалённому плагину нужен зафиксированный SemVer в version; локальные и встроенные плагины отдельную версию не принимают. Поле opts принимает словарь ключ-значение (`opts: { paths: source_relative }`) либо список строк-флагов (`opts: [paths=source_relative, require_unimplemented_servers=false]`).
-Встроенные имена вроде go и go-grpc используют соответствующий protoc-gen-* из PATH, если он доступен; иначе запускается встроенный WASM-плагин.
+В EasyP встроены **15 WASM-плагинов**: `cpp`, `csharp`, `java`, `kotlin`, `objc`, `php`, `python`, `ruby`, `grpc_cpp`, `grpc_csharp`, `grpc_java`, `grpc_objc`, `grpc_php`, `grpc_python` и `grpc_ruby`. Для этих 15 имён приоритет имеет установленный `protoc-gen-*` в `PATH`, а при его отсутствии запускается встроенный WASM-плагин. Остальные имена — включая **`go` и `go-grpc`** — **не** встроены в WASM и требуют локального бинарника `protoc-gen-*` в `PATH` (либо `path`, `command` или удалённый `remote`-плагин на `plugins.easyp.tech`).
plugins[].with_imports по умолчанию равен false. Значение true включает генерацию транзитивных импортов только для этого плагина. Остальные плагины по-прежнему получают дескрипторы зависимостей для связывания. Настройка независима от --include_imports при экспорте дескрипторов. Согласуйте Go import path и выходные каталоги: разные Go-пакеты не должны попадать в один каталог. Одинаковые общие результаты объединяются; конфликт содержимого файлов или объявлений Go-пакетов обнаруживается до записи сгенерированных файлов.
-options.go.package_prefix меняет только Go-опции. Значения по умолчанию для других языков и преобразования опций полей требуют явного generate.managed.enabled: true. Унаследованный Go-префикс применяется до явных managed-переопределений Go; префикс текущего файла имеет наивысший приоритет. Go-селекторы disable продолжают действовать. Подробнее — в [справочнике конфигурации](/ru/docs/reference/easyp-gen-yaml).
+options.go.package_prefix меняет только Go-опции. Значения по умолчанию для других языков и преобразования опций полей требуют явного generate.managed.enabled: true. EasyP поддерживает **19 управляемых `file_option`** (`go_package`, `go_package_prefix`, `java_package`, `java_package_prefix`, `java_package_suffix`, `java_multiple_files`, `java_outer_classname`, `java_string_check_utf8`, `csharp_namespace`, `csharp_namespace_prefix`, `ruby_package`, `ruby_package_suffix`, `php_namespace`, `php_metadata_namespace`, `php_metadata_namespace_suffix`, `objc_class_prefix`, `swift_prefix`, `optimize_for`, `cc_enable_arenas`) и **1 управляемую `field_option`** (`jstype`). Унаследованный Go-префикс применяется до явных managed-переопределений Go; префикс текущего файла имеет наивысший приоритет. Go-селекторы disable продолжают действовать. Подробнее — в [справочнике конфигурации](/ru/docs/reference/easyp-gen-yaml).
Обычный префикс отображает protobuf-пакет из нескольких компонентов, например common.v1, в <prefix>/common/v1. С явным paths: source_relative выходные каталоги Go следуют эффективному import path плагина под этим префиксом, включая его параметры Mfile.proto. Результаты с insertion point следуют выходному файлу создавшего его плагина. Шаблоны и приоритеты описаны в [справочнике выходных путей Go](/ru/docs/reference/easyp-gen-yaml#выходные-пути-go-и-параметры-m).
diff --git a/content/docs/cli/generator/meta.ru.json b/content/docs/cli/generator/meta.ru.json
new file mode 100644
index 0000000..7761141
--- /dev/null
+++ b/content/docs/cli/generator/meta.ru.json
@@ -0,0 +1,7 @@
+{
+ "title": "Генератор",
+ "pages": [
+ "index",
+ "examples"
+ ]
+}
diff --git a/content/docs/cli/index.mdx b/content/docs/cli/index.mdx
index c1f248c..76860b3 100644
--- a/content/docs/cli/index.mdx
+++ b/content/docs/cli/index.mdx
@@ -1,21 +1,23 @@
---
title: "CLI"
-description: "EasyP command-line toolkit: lint, generate, mod, breaking."
+description: "EasyP v1 command-line toolkit: lint, breaking, generate, mod, get, migrate, validate-config, and more."
---
-The EasyP CLI is the local toolkit for Protocol Buffers workflows.
+The EasyP CLI is the local toolkit for Protocol Buffers workflows, powered by the built-in pure-Go `easyprotoc` compiler (no `protoc` required). Release archives, Homebrew, and Go installs also ship the `easyp-mcp` stdio server for AI clients.
-| Command | Purpose |
-|---------|---------|
-| `easyp lint` | Enforce API design rules |
-| `easyp breaking` | Detect breaking changes |
-| `easyp generate` | Run local/remote plugins |
-| `easyp mod` | Git-based dependencies |
-| `easyp init` | Project bootstrap |
-| `easyp validate-config` | Recursively validate v1 configuration and module files |
-| `easyp ls-files` | List local protos and reachable imports |
-| `easyp schema-gen` | Generate v1 JSON Schemas |
-| `easyp completion bash\|zsh` | Print a shell completion script |
+| Command | Alias | Purpose |
+|---------|-------|---------|
+| `easyp lint` | `l` | Enforce API design rules (44 built-in rules) |
+| `easyp breaking` | — | Detect breaking changes against Git baselines (69 rules across 4 profiles) |
+| `easyp generate` | `g` | Run built-in WASM, local (`name`/`path`/`command`), or remote plugins and export descriptors |
+| `easyp mod` | `m` | Manage Git-based dependencies (`download`, `tidy`, `update`, `vendor`) |
+| `easyp get` | — | Add a direct Git module (`[@version\|@tag\|@commit]`) and resolve transitive dependencies |
+| `easyp init` | `i` | Initialize native v1 `protobuf.mod`, `easyp.yaml`, and `easyp.gen.yaml` |
+| `easyp migrate` | — | Guided wizard or preview-first migration from EasyP v0 to v1 |
+| `easyp validate-config` | `validate` | Recursively validate v1 configuration, named profiles, and module/lock files |
+| `easyp ls-files` | `ls` | List local protos and reachable imports (`-I` / `--include-imports`, `--format json`) |
+| `easyp schema-gen` | — | Generate v1 JSON Schemas for `easyp.yaml`, `easyp.gen.yaml`, and `protobuf.lock` |
+| `easyp completion bash\|zsh` | — | Print a shell completion script for bash or zsh |
## Sections
diff --git a/content/docs/cli/index.ru.mdx b/content/docs/cli/index.ru.mdx
index 696300a..a604792 100644
--- a/content/docs/cli/index.ru.mdx
+++ b/content/docs/cli/index.ru.mdx
@@ -1,21 +1,23 @@
---
title: "CLI"
-description: "CLI EasyP: lint, generate, mod, breaking."
+description: "CLI EasyP v1: lint, breaking, generate, mod, get, migrate, validate-config и другие команды."
---
-CLI EasyP — локальный инструментарий для Protocol Buffers.
+CLI EasyP — локальный инструментарий для работы с Protocol Buffers на базе встроенного pure-Go компилятора `easyprotoc` (без установки `protoc`). Архивы релизов, Homebrew и сборка через Go также включают stdio MCP-сервер `easyp-mcp` для ИИ-клиентов.
-| Команда | Назначение |
-|---------|------------|
-| `easyp lint` | Правила API-дизайна |
-| `easyp breaking` | Обнаружение breaking changes |
-| `easyp generate` | Локальные/удалённые плагины |
-| `easyp mod` | Git-зависимости |
-| `easyp init` | Инициализация проекта |
-| `easyp validate-config` | Рекурсивная проверка конфигурации и модульных файлов v1 |
-| `easyp ls-files` | Список локальных proto и достижимых импортов |
-| `easyp schema-gen` | Генерация JSON Schema для v1 |
-| `easyp completion bash\|zsh` | Вывод скрипта автодополнения |
+| Команда | Алиас | Назначение |
+|---------|-------|------------|
+| `easyp lint` | `l` | Проверка правил API-дизайна (44 встроенных правила) |
+| `easyp breaking` | — | Обнаружение breaking changes относительно Git-базы (69 правил в 4 профилях) |
+| `easyp generate` | `g` | Запуск встроенных WASM-, локальных (`name`/`path`/`command`) и удалённых плагинов, экспорт дескрипторов |
+| `easyp mod` | `m` | Управление Git-зависимостями (`download`, `tidy`, `update`, `vendor`) |
+| `easyp get` | — | Добавление прямой Git-зависимости (`<модуль>[@версия\|@тег\|@коммит]`) и разрешение транзитивного графа |
+| `easyp init` | `i` | Инициализация нативных файлов v1: `protobuf.mod`, `easyp.yaml` и `easyp.gen.yaml` |
+| `easyp migrate` | — | Интерактивный мастер или предпросмотр миграции с EasyP v0 на v1 |
+| `easyp validate-config` | `validate` | Рекурсивная проверка конфигов, именованных профилей и модульных/lock-файлов v1 |
+| `easyp ls-files` | `ls` | Список локальных `.proto` и достижимых импортов (`-I` / `--include-imports`, `--format json`) |
+| `easyp schema-gen` | — | Генерация JSON Schema v1 для `easyp.yaml`, `easyp.gen.yaml` и `protobuf.lock` |
+| `easyp completion bash\|zsh` | — | Вывод скрипта автодополнения для bash или zsh |
## Разделы
diff --git a/content/docs/cli/meta.ru.json b/content/docs/cli/meta.ru.json
new file mode 100644
index 0000000..d38cdf5
--- /dev/null
+++ b/content/docs/cli/meta.ru.json
@@ -0,0 +1,12 @@
+{
+ "title": "CLI",
+ "pages": [
+ "index",
+ "configuration",
+ "linter",
+ "breaking-changes",
+ "generator",
+ "package-manager",
+ "auto-completion"
+ ]
+}
diff --git a/content/docs/cli/package-manager/easyp-vs-buf.mdx b/content/docs/cli/package-manager/easyp-vs-buf.mdx
index 2308751..7fb75f3 100644
--- a/content/docs/cli/package-manager/easyp-vs-buf.mdx
+++ b/content/docs/cli/package-manager/easyp-vs-buf.mdx
@@ -1,18 +1,18 @@
---
title: "Using Buf-configured Git dependencies"
-description: "How the EasyP v1 pilot reads proto roots from Git dependencies that use Buf configuration."
+description: "How EasyP v1 reads proto roots, include/exclude filters, and BSR compatibility mappings from Git dependencies that use Buf configuration."
---
-An EasyP v1 project lists Git modules in protobuf.mod. A dependency repository can use Buf configuration; EasyP reads that configuration to find its .proto source roots. The consumer does not need to copy those roots into easyp.gen.yaml.
+An EasyP v1 project lists Git modules in protobuf.mod. A dependency repository can use Buf configuration; EasyP reads that configuration to find its .proto source roots, apply include/exclude filters, and resolve known BSR dependencies. The consumer does not need to copy those roots into easyp.gen.yaml.
-| Dependency file | Roots used by EasyP |
-|-----------------|---------------------|
-| buf.work.yaml v1 | directories |
-| buf.yaml v2 | modules[].path |
-| buf.yaml v1 | Repository root |
-| buf.yaml v1beta1 | build.roots, or repository root if omitted |
+| Dependency file | Roots & filters used by EasyP |
+|-----------------|-------------------------------|
+| buf.work.yaml v1 | directories (plus each module's nested buf.yaml excludes and deps) |
+| buf.yaml v2 | modules[].path with modules[].includes and modules[].excludes |
+| buf.yaml v1 | Repository root with build.excludes |
+| buf.yaml v1beta1 | build.roots (or repository root if omitted) with build.excludes |
-When a dependency has no EasyP or Buf configuration, EasyP uses its repository root. If it has an older EasyP protobuf.mod or easyp.yaml, EasyP also reads its transitive requirements and declared roots.
+When a dependency has no EasyP or Buf configuration, EasyP checks dependency-internal imports for unambiguous roots, honors explicit easyp get --import-root hints, or defaults to its repository root (recording verified fallback roots in protobuf.lock). If it has an older EasyP protobuf.mod or easyp.yaml, EasyP also reads its transitive requirements and declared roots.
When adapting an older easyp.yaml, both deps and generation Git inputs contribute requirements. Exact source/version duplicates are removed; different minimums remain visible to MVS, and malformed deps fail explicitly. A matching native protobuf.mod takes precedence. Only metadata is read; dependency plugins are never executed.
@@ -29,6 +29,15 @@ easyp mod download
easyp generate
~~~
-mod tidy resolves the Git dependency and records the selected commit and content hash in protobuf.lock. Buf Registry dependency names are not converted into Git URLs automatically; declare a suitable Git source in the consumer manifest. Buf include/exclude filters are not yet supported for Git dependency import roots and produce an error.
+## Buf `includes`/`excludes` and BSR compatibility snapshots
-After mod tidy, mod vendor can copy the locked Git dependency's .proto files into easyp_vendor using the roots extracted from its Buf configuration. See the [package manager guide](/docs/cli/package-manager).
+- **Source filtering**: Buf v1/v1beta1 build.excludes and v2 modules[].includes / modules[].excludes filter files without changing their protobuf import paths. Excluded files remain unavailable across imports, generation, linting, breaking checks, collision checks, and vendoring.
+- **Known BSR dependencies (`bsr.StaticResolver`)**: EasyP reads Buf v1, v1beta1, and v2 deps and resolves **5 widely used BSR modules** to pinned Git compatibility snapshots without contacting BSR:
+ - `buf.build/googleapis/googleapis`
+ - `buf.build/grpc-ecosystem/grpc-gateway`
+ - `buf.build/mercari/grpc-federation`
+ - `buf.build/envoyproxy/protoc-gen-validate`
+ - `buf.build/bufbuild/protovalidate`
+- **Lockfile & limits**: Each resolved BSR binding is recorded under modules[].bsr in protobuf.lock with resolution: compatibility_snapshot (replayed verbatim in --frozen mode; BSR revision equivalence and BSR digest are not verified). Unknown BSR modules fail explicitly — EasyP never guesses a Git URL, and direct BSR entries in the consumer's own protobuf.mod are not supported.
+
+After mod tidy, mod vendor copies the locked Git dependency's allowed .proto files into easyp_vendor using the roots and filters extracted from its Buf configuration. See the [package manager guide](/docs/cli/package-manager#dependencies-using-buf-or-older-easyp).
diff --git a/content/docs/cli/package-manager/easyp-vs-buf.ru.mdx b/content/docs/cli/package-manager/easyp-vs-buf.ru.mdx
index 01ef92e..6e59744 100644
--- a/content/docs/cli/package-manager/easyp-vs-buf.ru.mdx
+++ b/content/docs/cli/package-manager/easyp-vs-buf.ru.mdx
@@ -1,18 +1,18 @@
---
title: "Git-зависимости с конфигом Buf"
-description: "Как пилотная версия EasyP v1 извлекает корни proto из Git-зависимостей на Buf."
+description: "Как EasyP v1 читает корни proto, фильтры includes/excludes и сопоставления BSR из Git-зависимостей на Buf."
---
-Проект EasyP v1 перечисляет Git-модули в protobuf.mod. Репозиторий зависимости может использовать конфигурацию Buf: EasyP читает её и находит корни исходных .proto. Дублировать эти корни в easyp.gen.yaml потребителя не нужно.
+Проект EasyP v1 перечисляет Git-модули в protobuf.mod. Репозиторий зависимости может использовать конфигурацию Buf: EasyP читает её, извлекает корни исходных .proto, применяет фильтры includes/excludes и разрешает известные BSR-зависимости. Дублировать эти корни в easyp.gen.yaml потребителя не нужно.
-| Файл зависимости | Корни, которые использует EasyP |
-|------------------|---------------------------------|
-| buf.work.yaml v1 | directories |
-| buf.yaml v2 | modules[].path |
-| buf.yaml v1 | Корень репозитория |
-| buf.yaml v1beta1 | build.roots или корень репозитория |
+| Файл зависимости | Корни и фильтры, которые использует EasyP |
+|------------------|-------------------------------------------|
+| buf.work.yaml v1 | directories (включая вложенные buf.yaml с excludes и deps) |
+| buf.yaml v2 | modules[].path с фильтрами modules[].includes и modules[].excludes |
+| buf.yaml v1 | Корень репозитория с build.excludes |
+| buf.yaml v1beta1 | build.roots (или корень репозитория) с build.excludes |
-Если у зависимости нет конфигурации EasyP или Buf, её корнем считается каталог репозитория. Если есть старые EasyP protobuf.mod или easyp.yaml, EasyP также читает транзитивные требования и объявленные корни.
+Если у зависимости нет конфигурации EasyP или Buf, EasyP ищет однозначные корни по внутренним импортам самой зависимости, учитывает явные подсказки easyp get --import-root либо использует корень репозитория (записывая проверенные fallback-корни в protobuf.lock). При наличии старых EasyP protobuf.mod или easyp.yaml EasyP также читает транзитивные требования и объявленные корни.
При адаптации старого easyp.yaml требования берутся и из deps, и из Git-входов генерации. Точные дубликаты источник/версия удаляются, разные минимумы сохраняются для MVS; некорректные deps вызывают ошибку. Совпадающий нативный protobuf.mod имеет приоритет. Читаются только метаданные, плагины зависимости не запускаются.
@@ -29,6 +29,15 @@ easyp mod download
easyp generate
~~~
-mod tidy разрешает Git-зависимость и записывает выбранный коммит и хеш содержимого в protobuf.lock. Имена зависимостей Buf Registry не превращаются в Git URL автоматически: подходящий Git-источник надо объявить в манифесте потребителя. Фильтры Buf include/exclude для корней Git-зависимостей пока не поддерживаются и вызывают ошибку.
+## Фильтры Buf `includes`/`excludes` и BSR compatibility snapshots
-После mod tidy команда mod vendor может скопировать .proto зафиксированной Git-зависимости в easyp_vendor, используя корни из её конфигурации Buf. Подробнее — в [руководстве менеджера пакетов](/ru/docs/cli/package-manager).
+- **Фильтрация исходников**: Buf v1/v1beta1 build.excludes и v2 modules[].includes / modules[].excludes отбирают файлы без изменения их protobuf import paths. Исключённые файлы недоступны при импорте, генерации, линтинге, проверке breaking changes, проверке коллизий и vendoring.
+- **Известные BSR-зависимости (`bsr.StaticResolver`)**: EasyP читает deps из Buf v1, v1beta1 и v2 и сопоставляет **5 популярных BSR-модулей** с зафиксированными Git-снимками без обращений к BSR:
+ - `buf.build/googleapis/googleapis`
+ - `buf.build/grpc-ecosystem/grpc-gateway`
+ - `buf.build/mercari/grpc-federation`
+ - `buf.build/envoyproxy/protoc-gen-validate`
+ - `buf.build/bufbuild/protovalidate`
+- **Lock-файл и ограничения**: каждая привязка BSR сохраняется в modules[].bsr файла protobuf.lock со значением resolution: compatibility_snapshot (воспроизводится без изменений в режиме --frozen; эквивалентность ревизии BSR и её BSR digest не проверяются). Неизвестные BSR-модули вызывают явную ошибку — EasyP не угадывает Git URL, а прямые BSR-зависимости в собственном protobuf.mod потребителя не поддерживаются.
+
+После mod tidy команда mod vendor копирует разрешённые .proto зафиксированной Git-зависимости в easyp_vendor с учётом корней и фильтров из её конфигурации Buf. Подробнее — в [руководстве менеджера пакетов](/ru/docs/cli/package-manager#зависимости-на-buf-или-старом-easyp).
diff --git a/content/docs/cli/package-manager/index.mdx b/content/docs/cli/package-manager/index.mdx
index 9a54c5f..85e304d 100644
--- a/content/docs/cli/package-manager/index.mdx
+++ b/content/docs/cli/package-manager/index.mdx
@@ -29,7 +29,7 @@ For a Git repository with several manifests, require each nested module separate
For a selected tag or commit, module identity, roots, and requirements come from that revision. A nested module remains usable even if its directory was deleted or replaced by a regular file at current HEAD. Native manifests must match the requested identity at the selected revision; invalid native metadata does not fall back to Buf or legacy EasyP, and a pinned revision is never replaced with HEAD.
-Module commands and get find the nearest ancestor protobuf.mod within the workspace. easyp get <module> adds a direct requirement; @v1.2.3 or @<full-commit> selects a version. Without a suffix, the unconstrained-requirement rules above apply. Transitive requirements are added with // indirect, and repeated calls do not duplicate entries. Resolution errors leave the manifest and lock unchanged.
+Module commands and get find the nearest ancestor protobuf.mod within the workspace. easyp get <module> adds a direct requirement; @v1.2.3 (SemVer), @<tag> (non-SemVer Git tag, resolved to its full commit SHA before writing the requirement), or @<full-commit> selects a version. Without a suffix, the unconstrained-requirement rules above apply. Transitive requirements are added with // indirect, and repeated calls do not duplicate entries. Resolution errors leave the manifest and lock unchanged.
Major versions use Go-style identities: v0/v1 are unsuffixed; v2+ requires matching /vN. The +incompatible exception requires verified pre-native metadata; it never bypasses a native manifest. See [exact grammar and Git mapping](/docs/reference/protobuf-mod).
@@ -69,7 +69,7 @@ An ambiguous mapping or deleted imported source stops before project writes and
| Command | Behavior |
|---------|----------|
-| easyp get <module>[@version|@commit] | Adds or promotes a direct requirement, resolves transitive requirements, and writes protobuf.lock |
+| easyp get <module>[@version|@tag|@commit] | Adds or promotes a direct requirement (resolving non-SemVer Git tags to full commits), resolves transitive requirements, and writes protobuf.lock |
| easyp mod tidy | Resolves direct and transitive requirements and writes protobuf.lock |
| easyp mod download | Downloads the exact commits in protobuf.lock and verifies their hashes |
| easyp mod update | Refreshes requirements within their current major versions, then updates the lock |
diff --git a/content/docs/cli/package-manager/index.ru.mdx b/content/docs/cli/package-manager/index.ru.mdx
index f348f2a..bafd75f 100644
--- a/content/docs/cli/package-manager/index.ru.mdx
+++ b/content/docs/cli/package-manager/index.ru.mdx
@@ -29,7 +29,7 @@ require (
Для выбранного тега или коммита идентичность модуля, корни и требования читаются из этой ревизии. Вложенный модуль остаётся доступным, даже если на текущем HEAD его каталог удалён или заменён обычным файлом. Нативный манифест в выбранной ревизии должен соответствовать запрошенному модулю; некорректные native-метаданные не заменяются Buf или старым EasyP, а вместо закреплённой ревизии никогда не используется HEAD.
-Команды mod и get находят ближайший protobuf.mod в предках в пределах workspace. easyp get <модуль> добавляет прямое требование; @v1.2.3 или @<полный-коммит> задаёт версию. Без суффикса применяется описанное выше неограниченное требование. Транзитивные требования дописываются с // indirect, повторный вызов не создаёт дубликаты. При ошибке разрешения манифест и lock не меняются.
+Команды mod и get находят ближайший protobuf.mod в предках в пределах workspace. easyp get <модуль> добавляет прямое требование; @v1.2.3 (SemVer), @<тег> (не-SemVer Git-тег, который предварительно разрешается в полный SHA коммита) или @<полный-коммит> задаёт версию. Без суффикса применяется описанное выше неограниченное требование. Транзитивные требования дописываются с // indirect, повторный вызов не создаёт дубликаты. При ошибке разрешения манифест и lock не меняются.
Мажорные версии используют идентичность как в Go: v0/v1 — без суффикса, v2+ — с соответствующим /vN. Исключение +incompatible требует проверки домодульных метаданных и не обходит нативный manifest. См. [точную грамматику и Git mapping](/ru/docs/reference/protobuf-mod).
@@ -69,7 +69,7 @@ plugins: []
| Команда | Поведение |
|---------|-----------|
-| easyp get <модуль>[@версия|@коммит] | Добавляет или делает прямой зависимостью модуль, разрешает транзитивные зависимости и записывает protobuf.lock |
+| easyp get <модуль>[@версия|@тег|@коммит] | Добавляет или делает прямой зависимостью модуль (разрешая не-SemVer Git-теги в полные коммиты), разрешает транзитивные зависимости и записывает protobuf.lock |
| easyp mod tidy | Разрешает прямые и транзитивные требования и записывает protobuf.lock |
| easyp mod download | Скачивает точные коммиты из lock и проверяет хеши |
| easyp mod update | Обновляет требования в пределах текущих мажорных версий и пересоздаёт lock |
@@ -124,7 +124,7 @@ easyp --frozen generate
easyp mod --frozen vendor
~~~
-Флаг можно поставить глобально, на уровне mod или конечной подкоманды. Значение true на любом уровне остаётся включённым, даже если дочерняя команда получила --frozen=false. Все варианты размещения описаны в [конфигурации](/ru/docs/cli/configuration).
+Флаг можно поставить глобально, на уровне mod или конечной подкоманды. Значение true на любом уровне остаётся включённым, даже если дочерняя команда получила --frozen=false. Все варианты размещения описаны в [конфигурации](/ru/docs/cli/configuration#явный-режим-frozen).
Frozen отклоняет все корневые replace до обращения к их путям или скачивания зависимостей, в том числе неиспользуемые замены. Проверяются прямые требования манифеста и транзитивные требования зафиксированных модулей; отсутствующий, некорректный, неполный или устаревший lock вызывает ошибку вместо исправления. Зависимости, выбранные по идентификатору, используют манифест и lock потребителя и не обязаны иметь собственные lock-файлы. Явный путь от workspace при выборе модуля для генерации использует манифест и lock выбранного native-модуля; каталогу только с настройками генератора отдельная пара не нужна. Замены из манифестов зависимостей по-прежнему игнорируются.
diff --git a/content/docs/cli/package-manager/meta.ru.json b/content/docs/cli/package-manager/meta.ru.json
new file mode 100644
index 0000000..f1e8d24
--- /dev/null
+++ b/content/docs/cli/package-manager/meta.ru.json
@@ -0,0 +1,7 @@
+{
+ "title": "Менеджер пакетов",
+ "pages": [
+ "index",
+ "easyp-vs-buf"
+ ]
+}
diff --git a/content/docs/guides/adding-dependency.mdx b/content/docs/guides/adding-dependency.mdx
index f622d9f..7f41460 100644
--- a/content/docs/guides/adding-dependency.mdx
+++ b/content/docs/guides/adding-dependency.mdx
@@ -13,11 +13,14 @@ From the directory containing your `protobuf.mod`, run:
```bash
easyp get github.com/acme/weather
-# Or select a tag or full Git commit:
+# Select a SemVer tag, non-SemVer Git tag, or full Git commit:
easyp get github.com/acme/weather@v1.2.3
+easyp get github.com/acme/weather@release-2026-10
+# Supply a checked import root for a dependency without root metadata:
+easyp get --import-root api/proto github.com/acme/legacy-schemas@v1.0.0
```
-`get` adds the selected module as a direct `require`, writes its transitive dependencies as `// indirect`, and updates `protobuf.lock` with exact commits and content hashes. A module inside a Git repository can be named by its full module path, such as `github.com/acme/contracts/proto/user`. A tag is optional; without one, EasyP locks the repository's current HEAD. Run the command separately in each local module directory that has its own `protobuf.mod`.
+`get` adds the selected module as a direct `require`, writes its transitive dependencies as `// indirect`, and updates `protobuf.lock` with exact commits and content hashes. Named non-SemVer Git tags (`@`) are resolved to their full commit SHA before writing `protobuf.mod`. A module inside a Git repository can be named by its full module path, such as `github.com/acme/contracts/proto/user`. A tag is optional; without one, EasyP locks the repository's current HEAD. Run the command separately in each local module directory that has its own `protobuf.mod`.
Add the required protobuf `import` to your `.proto` file, then review and commit both `protobuf.mod` and `protobuf.lock`.
@@ -39,9 +42,12 @@ Open your module's `protobuf.mod` file and add the required module under the `re
```protobuf
// proto/user/protobuf.mod
+module github.com/acme/contracts/proto/user
+
+roots proto
require (
- github.com/googleapis/googleapis v1.5.0
+ github.com/googleapis/googleapis 03a91044136a014466d4293eb1fe91f2b02075d2
github.com/acme/weather v1.2.3
)
```
@@ -79,20 +85,27 @@ easyp mod tidy
The consuming project still declares a Git source with `require`. The dependency repository may use another configuration format:
- EasyP v1 `protobuf.mod`: reads `roots` and `require`.
-- Buf v2 `buf.yaml`: reads `modules[].path` as import roots.
-- Buf v1 `buf.work.yaml`: reads `directories`; a single-module v1 `buf.yaml` uses `.`.
-- Buf v1beta1 `buf.yaml`: reads `build.roots`, defaulting to `.`.
+- Buf v2 `buf.yaml`: reads `modules[].path` together with `modules[].includes` and `modules[].excludes`.
+- Buf v1 `buf.work.yaml`: reads `directories` and nested `buf.yaml` `build.excludes`; a single-module v1 `buf.yaml` uses `.` and `build.excludes`.
+- Buf v1beta1 `buf.yaml`: reads `build.roots` (defaulting to `.`) and `build.excludes`.
- Older EasyP: reads `direct` dependencies from the old `protobuf.mod` and local `generate.inputs[].directory.root` plus Git inputs from `easyp.yaml`.
-For an old EasyP dependency without a version on one of its Git requirements, `mod tidy` resolves the Git repository's HEAD and pins its commit in the v1 lock. No tag is required. The old EasyP `source@` form is also read transitively. Buf Registry `deps` are not Git sources, so declare an appropriate Git module in the consuming `protobuf.mod` when those imports are needed. Buf `includes`/`excludes` filters are not yet supported for Git dependency import roots and produce an explicit error.
+For an old EasyP dependency without a version on one of its Git requirements, `mod tidy` resolves the Git repository's HEAD and pins its commit in the v1 lock. No tag is required. The old EasyP `source@` form is also read transitively.
+
+When a Buf-configured Git dependency declares `deps` on BSR, EasyP's built-in `bsr.StaticResolver` maps **5 widely used BSR modules** (`buf.build/googleapis/googleapis`, `buf.build/grpc-ecosystem/grpc-gateway`, `buf.build/mercari/grpc-federation`, `buf.build/envoyproxy/protoc-gen-validate`, and `buf.build/bufbuild/protovalidate`) to pinned Git compatibility snapshots recorded under `modules[].bsr` in `protobuf.lock`. Unknown BSR modules fail explicitly (no Git URL is guessed), and direct BSR entries in the consumer's own `protobuf.mod` are not supported.
-Updated `protobuf.mod`:
+Updated `protobuf.mod` (note that native v2+ modules require a `/v2` major-version suffix on their module path):
```protobuf
+// proto/user/protobuf.mod
+module github.com/acme/contracts/proto/user
+
+roots proto
+
require (
- github.com/googleapis/googleapis v1.5.0
+ github.com/googleapis/googleapis 03a91044136a014466d4293eb1fe91f2b02075d2
github.com/acme/weather v1.2.3
- github.com/grpc-ecosystem/grpc-gateway v2.19.0 // indirect
+ github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 // indirect
)
```
diff --git a/content/docs/guides/adding-dependency.ru.mdx b/content/docs/guides/adding-dependency.ru.mdx
index e330b42..c3aeffc 100644
--- a/content/docs/guides/adding-dependency.ru.mdx
+++ b/content/docs/guides/adding-dependency.ru.mdx
@@ -13,11 +13,14 @@ description: "Добавление зависимостей Protobuf-модул
```bash
easyp get github.com/acme/weather
-# Либо укажите тег или полный Git-коммит:
+# Укажите SemVer-тег, не-SemVer Git-тег или полный Git-коммит:
easyp get github.com/acme/weather@v1.2.3
+easyp get github.com/acme/weather@release-2026-10
+# Задайте проверенный корень импортов для зависимости без метаданных корней:
+easyp get --import-root api/proto github.com/acme/legacy-schemas@v1.0.0
```
-Команда добавляет выбранный модуль как прямой `require`, записывает его транзитивные зависимости с пометкой `// indirect` и обновляет `protobuf.lock` с точными коммитами и хешами содержимого. Вложенный модуль указывают по полному пути, например `github.com/acme/contracts/proto/user`. Тег необязателен: без него EasyP закрепляет текущий HEAD репозитория. Для каждого локального модуля с собственным `protobuf.mod` запускайте команду в его каталоге.
+Команда добавляет выбранный модуль как прямой `require`, записывает его транзитивные зависимости с пометкой `// indirect` и обновляет `protobuf.lock` с точными коммитами и хешами содержимого. Именованные не-SemVer Git-теги (`@<тег>`) предварительно разрешаются в полный SHA коммита до записи в `protobuf.mod`. Вложенный модуль указывают по полному пути, например `github.com/acme/contracts/proto/user`. Тег необязателен: без него EasyP закрепляет текущий HEAD репозитория. Для каждого локального модуля с собственным `protobuf.mod` запускайте команду в его каталоге.
Добавьте нужный protobuf `import` в `.proto`, затем проверьте и закоммитьте `protobuf.mod` и `protobuf.lock`.
@@ -39,9 +42,12 @@ easyp get github.com/acme/weather@v1.2.3
```protobuf
// proto/user/protobuf.mod
+module github.com/acme/contracts/proto/user
+
+roots proto
require (
- github.com/googleapis/googleapis v1.5.0
+ github.com/googleapis/googleapis 03a91044136a014466d4293eb1fe91f2b02075d2
github.com/acme/weather v1.2.3
)
```
@@ -79,20 +85,27 @@ easyp mod tidy
Проект-потребитель по-прежнему объявляет Git-источник через `require`. Репозиторий зависимости может использовать другой формат:
- EasyP v1 `protobuf.mod`: читаются `roots` и `require`.
-- Buf v2 `buf.yaml`: `modules[].path` задаёт корни импортов.
-- Buf v1 `buf.work.yaml`: читаются `directories`; одиночный модуль с `buf.yaml` v1 использует `.`.
-- Buf v1beta1 `buf.yaml`: читаются `build.roots`, по умолчанию `.`.
+- Buf v2 `buf.yaml`: читаются `modules[].path`, а также фильтры `modules[].includes` и `modules[].excludes`.
+- Buf v1 `buf.work.yaml`: читаются `directories` и `build.excludes` вложенных `buf.yaml`; одиночный модуль с `buf.yaml` v1 использует `.` и `build.excludes`.
+- Buf v1beta1 `buf.yaml`: читаются `build.roots` (по умолчанию `.`) и `build.excludes`.
- Старый EasyP: из прежнего `protobuf.mod` читаются зависимости `direct`, а из `easyp.yaml` — локальные `generate.inputs[].directory.root` и Git-входы.
-Если в старой зависимости EasyP у Git-зависимости не указана версия, `mod tidy` разрешает HEAD Git-репозитория и фиксирует его коммит в v1 lock. Тег не нужен. Старый формат EasyP `source@` также читается транзитивно. `deps` из Buf Registry не являются Git-источниками: когда нужны их импорты, укажите соответствующий Git-модуль в `protobuf.mod` проекта-потребителя. Фильтры Buf `includes`/`excludes` для корней Git-зависимости пока не поддерживаются и вызывают явную ошибку.
+Если в старой зависимости EasyP у Git-зависимости не указана версия, `mod tidy` разрешает HEAD Git-репозитория и фиксирует его коммит в v1 lock. Тег не нужен. Старый формат EasyP `source@` также читается транзитивно.
+
+Если Git-зависимость на Buf объявляет `deps` из BSR, встроенный `bsr.StaticResolver` сопоставляет **5 популярных BSR-модулей** (`buf.build/googleapis/googleapis`, `buf.build/grpc-ecosystem/grpc-gateway`, `buf.build/mercari/grpc-federation`, `buf.build/envoyproxy/protoc-gen-validate` и `buf.build/bufbuild/protovalidate`) с зафиксированными Git-снимками и сохраняет привязку в `modules[].bsr` файла `protobuf.lock`. Неизвестные BSR-модули вызывают явную ошибку (Git URL не угадывается), а прямые BSR-зависимости в `protobuf.mod` потребителя не поддерживаются.
-Обновлённый `protobuf.mod`:
+Обновлённый `protobuf.mod` (нативные модули v2+ требуют суффикс мажорной версии `/v2` в пути модуля):
```protobuf
+// proto/user/protobuf.mod
+module github.com/acme/contracts/proto/user
+
+roots proto
+
require (
- github.com/googleapis/googleapis v1.5.0
+ github.com/googleapis/googleapis 03a91044136a014466d4293eb1fe91f2b02075d2
github.com/acme/weather v1.2.3
- github.com/grpc-ecosystem/grpc-gateway v2.19.0 // indirect
+ github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 // indirect
)
```
diff --git a/content/docs/guides/breaking-checks-ci.mdx b/content/docs/guides/breaking-checks-ci.mdx
index b9b5e17..859107e 100644
--- a/content/docs/guides/breaking-checks-ci.mdx
+++ b/content/docs/guides/breaking-checks-ci.mdx
@@ -14,21 +14,22 @@ breaking:
ignore: [proto/experimental]
~~~
-FILE adds declaration-move checks; existing compatibility checks stay enabled. Other categories are unsupported. Set ignore_unstable: true only if you intend to skip packages with supported unstable version suffixes; see the [breaking checker](/docs/cli/breaking-changes) for the exact forms.
+All four descriptor-backed compatibility profiles are supported: FILE, PACKAGE, WIRE_JSON, and WIRE. Multiple profiles apply their union; omitted or empty categories defaults to ["FILE"]. Set ignore_unstable: true only if you intend to skip packages with supported unstable version suffixes; see the [breaking checker](/docs/cli/breaking-changes) for the profile matrix and exact unstable forms.
The ignore path is relative to the file defining the effective breaking section. In proto/easyp.yaml, the same directory would be ignore: [experimental]. Changing --root does not change that base.
## Run the checks
-From the repository root, with the dependency lock prepared:
+From the repository root, with the dependency lock committed, use --frozen in CI so EasyP verifies the committed manifest and lock without rewriting files or allowing local replacements:
~~~bash
-easyp mod download
-easyp lint --path proto
-easyp breaking --path proto
+easyp validate-config
+easyp mod download --frozen
+easyp lint --frozen --path proto
+easyp breaking --frozen --path proto
~~~
-mod download verifies the commits and content hashes recorded in protobuf.lock. The breaking checker uses each revision's own manifests, locks, and dependency context; the baseline may need additional downloads. Keep manifests and locks committed and resolve dependency updates before the CI check.
+mod download --frozen verifies the commits and content hashes recorded in protobuf.lock. The breaking checker uses each revision's own manifests, locks, and dependency context; the baseline may need additional downloads. Keep manifests and locks committed and resolve dependency updates before the CI check.
## Make the baseline available
@@ -36,7 +37,7 @@ The baseline can be a branch, lightweight or annotated tag, full commit SHA, or
An explicit --against overrides breaking.baseline; without either, the default is master. Pass the ref directly to the flag, without git: or git-ref=.
-After provisioning a v1-capable EasyP binary, these GitHub Actions steps compare with the pull request's base commit:
+After installing EasyP v1 (for example from release archives, Homebrew, or `ghcr.io/easyp-tech/easyp:v1.0.0`), these GitHub Actions steps compare with the pull request's base commit:
~~~yaml
- uses: actions/checkout@v4
@@ -45,7 +46,7 @@ After provisioning a v1-capable EasyP binary, these GitHub Actions steps compare
- name: Check protobuf compatibility
env:
BASE_REF: ${{ github.event.pull_request.base.sha }}
- run: easyp breaking --path proto --against "$BASE_REF"
+ run: easyp breaking --frozen --path proto --against "$BASE_REF"
~~~
Use this snippet in a pull_request job. Full history makes the baseline available in ordinary PR checkouts; a missing revision fails the check instead of selecting a different baseline. See the complete [GitHub Actions workflow](/docs/ci-cd/github-actions).
diff --git a/content/docs/guides/breaking-checks-ci.ru.mdx b/content/docs/guides/breaking-checks-ci.ru.mdx
index 19f2b02..9312b3c 100644
--- a/content/docs/guides/breaking-checks-ci.ru.mdx
+++ b/content/docs/guides/breaking-checks-ci.ru.mdx
@@ -14,21 +14,22 @@ breaking:
ignore: [proto/experimental]
~~~
-FILE добавляет проверки перемещения объявлений; существующие проверки совместимости остаются включёнными. Другие категории не поддерживаются. Задавайте ignore_unstable: true, только если нужно пропускать пакеты с поддерживаемыми нестабильными суффиксами версий; точные формы описаны в [справочнике breaking-проверок](/ru/docs/cli/breaking-changes).
+Поддерживаются все четыре профиля совместимости на базе дескрипторов: FILE, PACKAGE, WIRE_JSON и WIRE. Несколько профилей применяются совместно; если categories не задан или пуст, по умолчанию используется ["FILE"]. Задавайте ignore_unstable: true, только если нужно пропускать пакеты с поддерживаемыми нестабильными суффиксами версий; матрица профилей и точные формы описаны в [справочнике breaking-проверок](/ru/docs/cli/breaking-changes).
Путь исключения отсчитывается от файла, задающего эффективную секцию breaking. В proto/easyp.yaml тот же каталог задавался бы как ignore: [experimental]. Изменение --root не меняет эту базу.
## Запуск проверок
-Из корня репозитория с подготовленным lock-файлом зависимостей:
+Из корня репозитория с закоммиченным lock-файлом используйте --frozen в CI, чтобы EasyP проверял сохранённый граф без изменения файлов и запрещал локальные замены:
~~~bash
-easyp mod download
-easyp lint --path proto
-easyp breaking --path proto
+easyp validate-config
+easyp mod download --frozen
+easyp lint --frozen --path proto
+easyp breaking --frozen --path proto
~~~
-mod download проверяет коммиты и хеши содержимого из protobuf.lock. Breaking-проверка использует собственные манифесты, lock-файлы и зависимости каждой ревизии; для базы могут потребоваться дополнительные загрузки. Храните манифесты и lock-файлы в репозитории и разрешайте обновления зависимостей до проверки в CI.
+mod download --frozen проверяет коммиты и хеши содержимого из protobuf.lock. Breaking-проверка использует собственные манифесты, lock-файлы и зависимости каждой ревизии; для базы могут потребоваться дополнительные загрузки. Храните манифесты и lock-файлы в репозитории и разрешайте обновления зависимостей до проверки в CI.
## Доступность базовой ревизии
@@ -36,7 +37,7 @@ easyp breaking --path proto
Явный --against перекрывает breaking.baseline; без обоих значений используется master. Передавайте ссылку прямо во флаг, без git: и git-ref=.
-После подготовки бинарника EasyP с поддержкой v1 эти шаги GitHub Actions сравнят схемы с базовым коммитом pull request:
+После установки EasyP v1 (из архивов релизов, Homebrew или образа `ghcr.io/easyp-tech/easyp:v1.0.0`) эти шаги GitHub Actions сравнят схемы с базовым коммитом pull request:
~~~yaml
- uses: actions/checkout@v4
@@ -45,7 +46,7 @@ easyp breaking --path proto
- name: Check protobuf compatibility
env:
BASE_REF: ${{ github.event.pull_request.base.sha }}
- run: easyp breaking --path proto --against "$BASE_REF"
+ run: easyp breaking --frozen --path proto --against "$BASE_REF"
~~~
Используйте фрагмент в job для pull_request. Полная история обеспечивает доступность базы в обычном checkout PR; отсутствие ревизии завершает проверку ошибкой, а не выбирает другую базу. См. полный [workflow GitHub Actions](/ru/docs/ci-cd/github-actions).
diff --git a/content/docs/guides/buf-migration.mdx b/content/docs/guides/buf-migration.mdx
index 58c7016..c0247c7 100644
--- a/content/docs/guides/buf-migration.mdx
+++ b/content/docs/guides/buf-migration.mdx
@@ -14,7 +14,7 @@ This guide maps Buf configuration to the EasyP v1 files and commands. Review eac
| buf.yaml (deps section) | protobuf.mod | Tool-neutral dependency DSL; uses Git URLs instead of proprietary BSR names. |
| buf.yaml (lint section) | easyp.yaml (linters) | Uses presets and rule lists; each policy section comes whole from its nearest definition. extends explicitly loads a section base from a local file or an existing locked module. |
| buf.yaml (breaking section) | easyp.yaml (breaking) | Explicit git baseline comparison (e.g. git:main). |
-| buf.gen.yaml | easyp.gen.yaml | Resides at consumer project level and selects complete modules. |
+| buf.gen.yaml | easyp.gen.yaml | Resides at consumer project level; selects modules (string or `{ module, paths, packages }`) plus optional global `paths`/`packages`. |
| buf.gen.yaml (managed) | easyp.gen.yaml (generate.managed) | Explicit managed mode; options.go.package_prefix is a separate Go-only convenience. |
| buf.lock | protobuf.lock | Includes Git commit SHAs and content hashes. |
| buf dep update | easyp mod tidy | Resolves declared requirements with MVS and writes the lock; review version updates separately. |
@@ -45,7 +45,7 @@ Extract module dependencies from buf.yaml into protobuf.mod
module github.com/acme/my-service
require (
- github.com/googleapis/googleapis v1.5.0
+ github.com/googleapis/googleapis 03a91044136a014466d4293eb1fe91f2b02075d2
)
~~~
@@ -83,7 +83,7 @@ plugins:
paths: source_relative
~~~
-The local go plugin requires protoc-gen-go in the build environment. Fix its version there; local plugins reject a YAML version. Remote plugins require a separate pinned semantic version. generate.packages selects exact protobuf package names within the selected modules.
+The local go plugin requires protoc-gen-go in the build environment (or use remote: plugins.easyp.tech/protocolbuffers/go with a pinned version). Fix local plugin versions in the environment; local plugins reject a YAML version. Use generate.paths, generate.packages, or object entries (`{ module, paths, packages }`) in generate.modules to narrow generation targets without changing import roots.
### Step 5: Tidy and Verify
@@ -91,10 +91,11 @@ From the repository root, resolve dependencies, lint schemas, and generate the s
~~~bash
easyp mod tidy
+easyp validate-config
easyp lint
easyp generate --project ./backend
~~~
-Review and commit protobuf.mod and protobuf.lock. Active local replacements must be removed before tidy or update; both commands reject them. In CI, use easyp mod download to verify locked dependencies and run easyp breaking --against main with the baseline available locally.
+Review and commit protobuf.mod and protobuf.lock. While a local replace is present, mod tidy and mod update operate on the local effective graph and leave protobuf.lock untouched; remove local replacements before producing a publishable lock, because --frozen in CI rejects every replace. In CI, use easyp mod download --frozen to verify locked dependencies and run easyp breaking --frozen --against main with the baseline available locally.
-Only FILE is supported in breaking.categories; ignore_unstable is available. Check the [policy reference](/docs/reference/easyp-yaml) before translating Buf breaking settings, and compare generated output and consumer tests before retiring the old workflow.
+All four breaking profiles — FILE, PACKAGE, WIRE_JSON, and WIRE (default ["FILE"]) — plus ignore_unstable are supported. Check the [policy reference](/docs/reference/easyp-yaml) before translating Buf breaking settings, and compare generated output and consumer tests before retiring the old workflow.
diff --git a/content/docs/guides/buf-migration.ru.mdx b/content/docs/guides/buf-migration.ru.mdx
index b5d99cc..e2c0969 100644
--- a/content/docs/guides/buf-migration.ru.mdx
+++ b/content/docs/guides/buf-migration.ru.mdx
@@ -14,7 +14,7 @@ description: "Пошаговое руководство по миграции к
| buf.yaml (секция deps) | protobuf.mod | Независимый от инструментов DSL; использует Git URL вместо BSR. |
| buf.yaml (секция lint) | easyp.yaml (linters) | Использует пресеты и списки правил; каждая секция политики берётся целиком из ближайшего определения. extends явно подключает базу секции из локального файла или существующего закреплённого модуля. |
| buf.yaml (секция breaking) | easyp.yaml (breaking) | Явное сравнение с git-baseline (например, git:main). |
-| buf.gen.yaml | easyp.gen.yaml | Находится у потребителя и выбирает целые модули. |
+| buf.gen.yaml | easyp.gen.yaml | Находится у потребителя; выбирает модули (строкой или `{ module, paths, packages }`) и опциональные глобальные `paths`/`packages`. |
| buf.gen.yaml (managed) | easyp.gen.yaml (generate.managed) | Явный managed mode; options.go.package_prefix — отдельная настройка только для Go. |
| buf.lock | protobuf.lock | Включает SHA коммитов Git и хеши содержимого. |
| buf dep update | easyp mod tidy | Разрешает объявленные требования через MVS и записывает lock; обновления версий проверяйте отдельно. |
@@ -45,7 +45,7 @@ easyp init --module github.com/acme/my-service
module github.com/acme/my-service
require (
- github.com/googleapis/googleapis v1.5.0
+ github.com/googleapis/googleapis 03a91044136a014466d4293eb1fe91f2b02075d2
)
~~~
@@ -83,18 +83,19 @@ plugins:
paths: source_relative
~~~
-Локальному плагину go нужен protoc-gen-go в окружении сборки. Фиксируйте версию там: локальные плагины отклоняют version в YAML. Удалённым плагинам нужна отдельная фиксированная семантическая версия. generate.packages выбирает точные имена protobuf-пакетов внутри выбранных модулей.
+Локальному плагину go нужен protoc-gen-go в окружении сборки (либо используйте remote: plugins.easyp.tech/protocolbuffers/go с зафиксированным version). Фиксируйте версию локальных плагинов в окружении: локальные плагины отклоняют version в YAML. Для сужения целей генерации без изменения корней импортов используйте generate.paths, generate.packages или объекты (`{ module, paths, packages }`) в generate.modules.
### Шаг 5: Наведение порядка и проверка
-Из корня репозитория разрешите зависимости, проверьте схемы линтером и запустите выбранный проект генерации:
+Из корня репозитория разрешите зависимости, проверьте конфиги и схемы линтером и запустите выбранный проект генерации:
~~~bash
easyp mod tidy
+easyp validate-config
easyp lint
easyp generate --project ./backend
~~~
-Проверьте и закоммитьте protobuf.mod и protobuf.lock. Перед tidy или update нужно убрать активные локальные замены: обе команды их отклоняют. В CI проверяйте зафиксированные зависимости через easyp mod download и запускайте easyp breaking --against main с доступной локально базой.
+Проверьте и закоммитьте protobuf.mod и protobuf.lock. Пока в манифесте есть локальный replace, команды mod tidy и mod update работают с локальным эффективным графом и оставляют protobuf.lock неизменным; удалите локальные замены перед созданием публикуемого lock-файла, так как --frozen в CI отклоняет любые replace. В CI проверяйте зафиксированные зависимости через easyp mod download --frozen и запускайте easyp breaking --frozen --against main с доступной локально базой.
-В breaking.categories поддерживается только FILE; ignore_unstable доступно. Перед переносом breaking-настроек Buf сверьтесь со [справочником политики](/ru/docs/reference/easyp-yaml), сравните результат генерации и запустите тесты потребителей до отказа от старого workflow.
+Поддерживаются все четыре профиля breaking.categories — FILE, PACKAGE, WIRE_JSON и WIRE (по умолчанию ["FILE"]) — а также ignore_unstable. Перед переносом breaking-настроек Buf сверьтесь со [справочником политики](/ru/docs/reference/easyp-yaml), сравните результат генерации и запустите тесты потребителей до отказа от старого workflow.
diff --git a/content/docs/guides/meta.ru.json b/content/docs/guides/meta.ru.json
new file mode 100644
index 0000000..7ebaf49
--- /dev/null
+++ b/content/docs/guides/meta.ru.json
@@ -0,0 +1,14 @@
+{
+ "title": "Руководства",
+ "pages": [
+ "adding-dependency",
+ "version-diamond",
+ "microservice-isolation",
+ "debugging-replace",
+ "organization-lint-style",
+ "breaking-checks-ci",
+ "multi-target-generation",
+ "reproducibility",
+ "buf-migration"
+ ]
+}
diff --git a/content/docs/guides/microservice-isolation.mdx b/content/docs/guides/microservice-isolation.mdx
index a0f48af..179cd26 100644
--- a/content/docs/guides/microservice-isolation.mdx
+++ b/content/docs/guides/microservice-isolation.mdx
@@ -9,13 +9,13 @@ In large monorepos, forcing all microservices to use the exact same dependency v
## The Problem with Single-Workspace Resolvers
-Tools like Buf v2 perform workspace-wide resolution: every service in a monorepo must settle on a single version for every dependency. If `team-user` needs `common v2.0.0` but `team-order` is not ready to migrate from `common v1.2.0`, the entire workspace build breaks or requires manual coordination.
+Tools like Buf v2 perform workspace-wide resolution: every service in a monorepo must settle on a single version for every dependency. If `team-order` needs `common/v2 v2.0.0` (or a newer minor like `common v1.5.0`) while `team-user` stays on `common v1.2.0`, a single-workspace lock couples both teams together.
---
## The EasyP Per-Module Solution
-EasyP resolves dependencies independently for each Protobuf module defined by a `protobuf.mod` file.
+EasyP resolves dependencies independently for each Protobuf module defined by a `protobuf.mod` file. Nested modules inside a repository include their subdirectory path in their canonical `module` identity:
```text
repo/
@@ -24,14 +24,14 @@ repo/
│ ├── protobuf.mod # Requires common v1.2.0
│ └── protobuf.lock # Locked to common v1.2.0
└── order/
- ├── protobuf.mod # Requires common v2.0.0
- └── protobuf.lock # Locked to common v2.0.0
+ ├── protobuf.mod # Requires common/v2 v2.0.0
+ └── protobuf.lock # Locked to common/v2 v2.0.0
```
### Module 1: `proto/user/protobuf.mod`
```protobuf
-module github.com/acme/user
+module github.com/acme/repo/proto/user
require (
github.com/acme/common v1.2.0
@@ -41,10 +41,10 @@ require (
### Module 2: `proto/order/protobuf.mod`
```protobuf
-module github.com/acme/order
+module github.com/acme/repo/proto/order
require (
- github.com/acme/common v2.0.0
+ github.com/acme/common/v2 v2.0.0
)
```
@@ -52,6 +52,6 @@ require (
## Key Benefits
-1. **Independent Release Cycles**: Team `order` can upgrade to `common v2.0.0` without waiting for Team `user`.
+1. **Independent Release Cycles**: Team `order` can upgrade to `common/v2 v2.0.0` (or a newer `v1.x` release) without waiting for Team `user`.
2. **Independent version decisions**: module lockfiles can change independently. Shared configuration or contract changes still require cross-service review.
3. **Isolated dependency graphs**: each module compiles against its selected version. Generated package namespaces may still collide; configure distinct output/import paths. Incompatible graphs cannot share one descriptor set; use independent exports.
diff --git a/content/docs/guides/microservice-isolation.ru.mdx b/content/docs/guides/microservice-isolation.ru.mdx
index e0c0a9f..df55ecd 100644
--- a/content/docs/guides/microservice-isolation.ru.mdx
+++ b/content/docs/guides/microservice-isolation.ru.mdx
@@ -9,13 +9,13 @@ description: "Как помодульное (per-module) разрешение з
## Проблема единых workspace-резолверов
-Инструменты вроде Buf v2 выполняют резолюцию на весь workspace целиком: каждый сервис в монорепозитории обязан перейти на одну и ту же версию каждой зависимости. Если `team-user` требуется `common v2.0.0`, а `team-order` ещё не готова мигрировать с `common v1.2.0`, сборка всего репозитория блокируется или требует ручного согласования.
+Инструменты вроде Buf v2 выполняют резолюцию на весь workspace целиком: каждый сервис в монорепозитории обязан перейти на одну и ту же версию каждой зависимости. Если `team-order` требуется `common/v2 v2.0.0` (или более новый минор `common v1.5.0`), а `team-user` остаётся на `common v1.2.0`, единый lock-файл workspace жёстко связывает обе команды.
---
## Помодульное решение EasyP
-EasyP выполняет резолюцию зависимостей независимо для каждого Protobuf-модуля, определяемого собственным `protobuf.mod`.
+EasyP выполняет резолюцию зависимостей независимо для каждого Protobuf-модуля, определяемого собственным `protobuf.mod`. Вложенные модули внутри репозитория включают свой подкаталог в канонический идентификатор `module`:
```text
repo/
@@ -24,14 +24,14 @@ repo/
│ ├── protobuf.mod # Запрашивает common v1.2.0
│ └── protobuf.lock # Зафиксирован на common v1.2.0
└── order/
- ├── protobuf.mod # Запрашивает common v2.0.0
- └── protobuf.lock # Зафиксирован на common v2.0.0
+ ├── protobuf.mod # Запрашивает common/v2 v2.0.0
+ └── protobuf.lock # Зафиксирован на common/v2 v2.0.0
```
### Модуль 1: `proto/user/protobuf.mod`
```protobuf
-module github.com/acme/user
+module github.com/acme/repo/proto/user
require (
github.com/acme/common v1.2.0
@@ -41,10 +41,10 @@ require (
### Модуль 2: `proto/order/protobuf.mod`
```protobuf
-module github.com/acme/order
+module github.com/acme/repo/proto/order
require (
- github.com/acme/common v2.0.0
+ github.com/acme/common/v2 v2.0.0
)
```
@@ -52,6 +52,6 @@ require (
## Ключевые преимущества
-1. **Независимые релизные циклы**: Команда `order` может обновиться до `common v2.0.0`, не дожидаясь команды `user`.
+1. **Независимые релизные циклы**: Команда `order` может обновиться до `common/v2 v2.0.0` (или более нового релиза `v1.x`), не дожидаясь команды `user`.
2. **Отдельные решения о версиях**: lock-файлы модулей обновляются независимо. Изменения общей конфигурации или самих контрактов всё равно требуют межкомандной проверки.
3. **Изолированные графы зависимостей**: каждый модуль компилируется со своей выбранной версией. Это не гарантирует отсутствие коллизий сгенерированных пакетов: настройте отдельные output/import paths. Несовместимые графы нельзя объединять в один descriptor set; используйте раздельный экспорт.
diff --git a/content/docs/guides/multi-target-generation.mdx b/content/docs/guides/multi-target-generation.mdx
index 6ee97ba..1258812 100644
--- a/content/docs/guides/multi-target-generation.mdx
+++ b/content/docs/guides/multi-target-generation.mdx
@@ -68,7 +68,8 @@ The nearest explicit options.go.package_prefix wins. The backend ab
## Key Configuration Elements
-- generate.modules selects complete local modules or canonical module identities available in the selected dependency context. With no list, generation uses the nearest enclosing module, or the project directory when no manifest exists.
+- generate.modules accepts plain module strings (local paths or canonical module identities) or module objects (`{ module, paths, packages }`) with per-module source filters intersected with global filters. With no list, generation uses the nearest enclosing module, or the project directory when no manifest exists.
+- generate.paths selects literal files or directory subtrees relative to each selected module directory (usable with or without generate.modules).
- generate.packages selects exact protobuf package names, not prefixes or globs. Empty selects all source files.
- Each plugin selects exactly one source: name, path, command, or remote, and requires out.
- opts accepts a map or a list of option strings. with_imports: true also generates transitive imports for that plugin.
@@ -77,7 +78,7 @@ The nearest explicit options.go.package_prefix wins. The backend ab
| Source | Version control |
| --- | --- |
-| name | Uses the installed executable; supported built-in names fall back to bundled WASM when no matching executable is on PATH. Pin the build environment and EasyP binary. |
+| name | Uses `protoc-gen-` on `PATH`; the 15 built-in WASM names (`cpp`, `csharp`, `java`, `kotlin`, `objc`, `php`, `python`, `ruby`, `grpc_*`) fall back to bundled WASM when not on `PATH` (`go` and `go-grpc` are not bundled WASM). Pin the build environment and EasyP binary. |
| path or command | Uses the executable you provide. Manage its version outside the generator YAML. |
| remote | Requires a separate pinned semantic version; do not embed the version in the remote name. |
@@ -135,15 +136,15 @@ options:
package_prefix: github.com/acme/app/gen/go
~~~
-Run each profile from that directory:
+Run each profile from that directory with command-local --config (or the short alias easyp g):
~~~bash
-easyp generate --gen-config private.easyp.gen.yaml
-easyp generate --gen-config public.easyp.gen.yaml
+easyp generate --config private.easyp.gen.yaml
+easyp generate --config public.easyp.gen.yaml
~~~
The selected packages become generation targets; required imports remain available for linking. Each file keeps the usual module-relative source filters and file-relative plugin outputs, so changing the filename requires no path adjustments. These profiles explicitly repeat the Go prefix: a standard easyp.gen.yaml in the same directory is independent. Only standard files in ancestor directories provide inherited options.
---gen-config selects one file and cannot be combined with --project or --all. Recursive discovery continues to look for standard easyp.gen.yaml files. Use separate commands to run multiple named profiles.
+--config selects one generation file and cannot be combined with --project or --all. Recursive discovery continues to look for standard easyp.gen.yaml files. Use separate commands to run multiple named profiles.
See the [generator reference](/docs/reference/easyp-gen-yaml) and [build reproducibility guide](/docs/guides/reproducibility).
diff --git a/content/docs/guides/multi-target-generation.ru.mdx b/content/docs/guides/multi-target-generation.ru.mdx
index 274e6a4..e3e0454 100644
--- a/content/docs/guides/multi-target-generation.ru.mdx
+++ b/content/docs/guides/multi-target-generation.ru.mdx
@@ -68,7 +68,8 @@ options:
## Ключевые элементы конфигурации
-- generate.modules выбирает целые локальные модули или канонические идентификаторы модулей, доступные в выбранном контексте зависимостей. Без списка используется ближайший вышестоящий модуль, а при отсутствии манифеста — каталог проекта.
+- generate.modules принимает строки (локальные пути или канонические идентификаторы модулей) либо объекты (`{ module, paths, packages }`) с помодульными фильтрами, пересекаемыми с общими. Без списка используется ближайший вышестоящий модуль, а при отсутствии манифеста — каталог проекта.
+- generate.paths выбирает буквальные файлы или подкаталоги относительно каталога каждого выбранного модуля (работает с generate.modules и без него).
- generate.packages выбирает точные имена protobuf-пакетов, не префиксы или glob-шаблоны. Пустой список выбирает все исходники.
- Каждый плагин выбирает ровно один источник: name, path, command или remote, и обязательно задаёт out.
- opts принимает словарь или список строк опций. with_imports: true дополнительно генерирует транзитивные импорты для этого плагина.
@@ -77,7 +78,7 @@ options:
| Источник | Управление версией |
| --- | --- |
-| name | Использует установленный исполняемый файл; поддерживаемые встроенные имена переходят на комплектный WASM, если соответствующего файла нет в PATH. Фиксируйте окружение сборки и бинарник EasyP. |
+| name | Использует `protoc-gen-` из `PATH`; 15 встроенных WASM-имён (`cpp`, `csharp`, `java`, `kotlin`, `objc`, `php`, `python`, `ruby`, `grpc_*`) переходят на комплектный WASM при отсутствии бинарника в `PATH` (`go` и `go-grpc` не встроены в WASM). Фиксируйте окружение сборки и бинарник EasyP. |
| path или command | Использует предоставленный исполняемый файл. Управляйте его версией вне YAML генератора. |
| remote | Требует отдельную фиксированную семантическую version; не включайте версию в имя удалённого плагина. |
@@ -135,15 +136,15 @@ options:
package_prefix: github.com/acme/app/gen/go
~~~
-Запускайте каждый профиль из этого каталога:
+Запускайте каждый профиль из этого каталога через локальный флаг команды --config (или короткий алиас easyp g):
~~~bash
-easyp generate --gen-config private.easyp.gen.yaml
-easyp generate --gen-config public.easyp.gen.yaml
+easyp generate --config private.easyp.gen.yaml
+easyp generate --config public.easyp.gen.yaml
~~~
Выбранные пакеты становятся целями генерации; необходимые импорты остаются доступны для связывания. Каждый файл сохраняет обычные фильтры исходников от каталога модуля и пути результатов от каталога конфига, поэтому смена имени файла не требует правки путей. В примерах Go prefix явно повторён: стандартный easyp.gen.yaml в том же каталоге независим. Наследуемые опции задают только стандартные файлы в родительских каталогах.
---gen-config выбирает один файл и несовместим с --project или --all. Рекурсивный поиск по-прежнему находит стандартные easyp.gen.yaml. Для нескольких именованных профилей используйте отдельные команды.
+--config выбирает один файл генерации и несовместим с --project или --all. Рекурсивный поиск по-прежнему находит стандартные easyp.gen.yaml. Для нескольких именованных профилей используйте отдельные команды.
См. [справочник генератора](/ru/docs/reference/easyp-gen-yaml) и [руководство по воспроизводимости](/ru/docs/guides/reproducibility).
diff --git a/content/docs/guides/organization-lint-style.mdx b/content/docs/guides/organization-lint-style.mdx
index fa20896..ceccb31 100644
--- a/content/docs/guides/organization-lint-style.mdx
+++ b/content/docs/guides/organization-lint-style.mdx
@@ -72,11 +72,11 @@ A common ancestor policy is resolved independently for each checked module, usin
## Validation
~~~bash
-easyp validate-config --cfg easyp.yaml
+easyp validate-config --config easyp.yaml
easyp lint
easyp breaking --against main
~~~
The parser validates reference syntax without network access. The CLI additionally follows local references and verifies already cached dependency content. Missing cached policies produce an actionable error: run easyp mod download, then validate again. Validation itself does not download dependencies. Invalid bases, cycles and boundary violations include the consuming field and the reference chain.
-Loading policies never runs generation plugins or imports a base's issues.exclude-rules. Environment variables are expanded once in each original file, not again after merging. See the [policy reference](/docs/reference/easyp-yaml).
+Loading policies never runs generation plugins or imports a base's issues.exclude-rules. For security, `${...}` environment-variable expansion applies **only** to the consumer's own policy file and its local (`./` / `../`) `extends` chain — expanded once per file, never re-expanded after merging. Policy files loaded from dependency modules or local `replace` targets are parsed literally (`ParsePolicyLiteral`) without expanding environment variables. See the [policy reference](/docs/reference/easyp-yaml).
diff --git a/content/docs/guides/organization-lint-style.ru.mdx b/content/docs/guides/organization-lint-style.ru.mdx
index d70089e..ee8d1ad 100644
--- a/content/docs/guides/organization-lint-style.ru.mdx
+++ b/content/docs/guides/organization-lint-style.ru.mdx
@@ -72,11 +72,11 @@ breaking:
## Проверка
~~~bash
-easyp validate-config --cfg easyp.yaml
+easyp validate-config --config easyp.yaml
easyp lint
easyp breaking --against main
~~~
Парсер проверяет синтаксис ссылки без сетевых запросов. CLI дополнительно разрешает локальные ссылки и проверяет целостность уже закэшированных зависимостей. Если базы нет в кэше, выполните easyp mod download и повторите проверку. Сама validate-config зависимости не скачивает. Ошибки базы, циклы и выходы за границы содержат поле потребителя и цепочку ссылок.
-Загрузка политик не запускает плагины генерации и не наследует issues.exclude-rules базы. Переменные среды раскрываются один раз в каждом исходном файле и не раскрываются повторно после слияния. Подробнее — в [справочнике политики](/ru/docs/reference/easyp-yaml).
+Загрузка политик не запускает плагины генерации и не наследует issues.exclude-rules базы. Из соображений безопасности подстановка переменных окружения `${...}` выполняется **только** в собственном файле политики потребителя и его локальной (`./` / `../`) цепочке `extends` — один раз на файл и без повторного раскрытия после слияния. Файлы политик, загружаемые из модулей зависимостей или локальных `replace`, читаются буквально (`ParsePolicyLiteral`) без подстановки переменных окружения. Подробнее — в [справочнике политики](/ru/docs/reference/easyp-yaml).
diff --git a/content/docs/guides/reproducibility.ru.mdx b/content/docs/guides/reproducibility.ru.mdx
index ac4c7d6..2a8d644 100644
--- a/content/docs/guides/reproducibility.ru.mdx
+++ b/content/docs/guides/reproducibility.ru.mdx
@@ -52,4 +52,4 @@ easyp mod download --frozen
easyp generate --frozen
~~~
-Режим проверяет существующие manifest и lock, запрещает все локальные замены главного модуля и не выбирает новые версии зависимостей, не записывая оба файла. Загрузка точных закреплённых коммитов в кеш разрешена. Переменная CI не включает frozen автоматически. Команды изменения графа, включая tidy/update, отклоняют запуск в frozen; сначала подготовьте опубликованный граф. См. [конфигурацию frozen](/ru/docs/cli/configuration).
+Режим проверяет существующие manifest и lock, запрещает все локальные замены главного модуля и не выбирает новые версии зависимостей, не записывая оба файла. Загрузка точных закреплённых коммитов в кеш разрешена. Переменная CI не включает frozen автоматически. Команды изменения графа, включая tidy/update, отклоняют запуск в frozen; сначала подготовьте опубликованный граф. См. [конфигурацию frozen](/ru/docs/cli/configuration#явный-режим-frozen).
diff --git a/content/docs/guides/version-diamond.mdx b/content/docs/guides/version-diamond.mdx
index ba15967..816f155 100644
--- a/content/docs/guides/version-diamond.mdx
+++ b/content/docs/guides/version-diamond.mdx
@@ -12,8 +12,8 @@ The **diamond dependency problem** occurs when direct and transitive requirement
Consider a service module user that relies on two dependencies: common and weather.
- user explicitly requires common v1.2.0.
-- user explicitly requires weather v2.1.0.
-- weather v2.1.0 transitively requires common v1.3.0.
+- user explicitly requires weather/v2 v2.1.0.
+- weather/v2 v2.1.0 transitively requires common v1.3.0.
~~~text
+-------------------+
@@ -23,16 +23,16 @@ Consider a service module user that relies on two dependencies: user, который зависит от двух пакетов: common и weather.
- user напрямую требует common v1.2.0.
-- user напрямую требует weather v2.1.0.
-- weather v2.1.0 транзитивно требует common v1.3.0.
+- user напрямую требует weather/v2 v2.1.0.
+- weather/v2 v2.1.0 транзитивно требует common v1.3.0.
~~~text
+-------------------+
@@ -23,16 +23,16 @@ description: "Как Minimal Version Selection (MVS) выбирает верси
+-------------+-------------+
| |
v v
-+---------------------+ +---------------------+
-| github.com/acme/ | | github.com/acme/ |
-| common v1.2.0 | | weather v2.1.0 |
-+---------------------+ +----------+----------+
- |
- v
- +---------------------+
- | github.com/acme/ |
- | common v1.3.0 |
- +---------------------+
++---------------------+ +-----------------------+
+| github.com/acme/ | | github.com/acme/ |
+| common v1.2.0 | | weather/v2 v2.1.0 |
++---------------------+ +-----------+-----------+
+ |
+ v
+ +---------------------+
+ | github.com/acme/ |
+ | common v1.3.0 |
+ +---------------------+
~~~
---
diff --git a/content/docs/index.mdx b/content/docs/index.mdx
index 59c58b7..76e1f71 100644
--- a/content/docs/index.mdx
+++ b/content/docs/index.mdx
@@ -1,24 +1,32 @@
---
title: "EasyP Documentation"
-description: "Modern Protocol Buffers toolkit — lint, generate, packages, breaking changes."
+description: "Modern Protocol Buffers toolkit — pure-Go compiler, linting, Git-native dependencies, code generation, and breaking-change checks."
---
-Modern Protocol Buffers toolkit: linting, package management, code generation, and breaking-change detection.
+EasyP v1 is a modern Protocol Buffers toolkit powered by its own pure-Go compiler (`easyprotoc`, no `protoc` required) with Protobuf Editions 2023 support, 44 lint rules, 69 breaking-change checks, Git-native MVS dependency management, 15 built-in WASM plugins, local and remote code generation, and the `easyp-mcp` stdio server for AI tools.
-New here? Start with the [Quickstart](/docs/introduction/quickstart).
+New here? Start with the [Quickstart](/docs/introduction/quickstart) or [Install EasyP v1](/docs/introduction/install). Upgrading from v0? Follow the [Migration from EasyP v0](/docs/migration/easyp-v0) guide.
## Start here
-- [What is EasyP?](/docs/introduction/what-is)
-- [Quickstart](/docs/introduction/quickstart)
-- [Installation](/docs/introduction/install)
+- [What is EasyP?](/docs/introduction/what-is) — architecture, `easyprotoc` compiler, and v1 file model
+- [Install EasyP](/docs/introduction/install) — Homebrew (macOS & Linux), Go 1.26.6+, release archives, Docker, and `easyp-mcp`
+- [Quickstart](/docs/introduction/quickstart) — initialize a v1 module, add dependencies, generate code, lint, and check breaking changes
-## Product areas
+## Core documentation
-- [CLI](/docs/cli) — local lint, generate, packages, breaking checks
-- [API Service](/docs/api-service/overview) — remote plugin execution
-- [Migration](/docs/migration/buf-cli) — from Buf, protoc, and others
-- [CI/CD](/docs/ci-cd/github-actions) — GitHub Actions & GitLab
-- [Blog](/docs/blog/finally-give-up-gin-echo)
+- [CLI](/docs/cli) — commands, flags, linter, breaking changes, code generator, and package manager
+- [Guides](/docs/guides/adding-dependency) — practical workflows for dependencies, multi-target generation, shared lint policies, CI breaking checks, and Buf migration
+- [Reference](/docs/reference/easyp-yaml) — schemas for `easyp.yaml`, `easyp.gen.yaml`, `protobuf.mod`, and `protobuf.lock`
+- [Architecture](/docs/architecture/mvs-dependency-resolution) — Minimal Version Selection (MVS), selective `dirhash`, and lockfile verification
+- [API Service](/docs/api-service/overview) — remote plugin execution service and self-hosted deployment
+- [Migration](/docs/migration/easyp-v0) — migrating from EasyP v0, Buf CLI, `protoc`, `protolock`, and `prototool`
+- [CI/CD](/docs/ci-cd/github-actions) — reproducible pipelines with `--frozen` on GitHub Actions and GitLab CI
+- [Blog](/docs/blog/finally-give-up-gin-echo) — engineering articles and Protobuf patterns
+
+## Ecosystem
+
+- [Plugin Registry](/plugins) — browse hosted remote plugins at `plugins.easyp.tech`
+- [Roadmap](/roadmap) — shipped v1.0 milestones and upcoming work
diff --git a/content/docs/index.ru.mdx b/content/docs/index.ru.mdx
index 91b7aab..f6421bb 100644
--- a/content/docs/index.ru.mdx
+++ b/content/docs/index.ru.mdx
@@ -1,24 +1,32 @@
---
title: "Документация EasyP"
-description: "Современный инструментарий Protocol Buffers — lint, generate, packages, breaking changes."
+description: "Современный инструментарий Protocol Buffers — pure-Go компилятор, линтинг, Git-зависимости, генерация кода и проверка совместимости."
---
-Современный инструментарий Protocol Buffers: линтинг, управление пакетами, генерация кода и проверка breaking changes.
+EasyP v1 — современный инструментарий для Protocol Buffers со встроенным pure-Go компилятором (`easyprotoc`, без установки `protoc`), поддержкой Protobuf Editions 2023, 44 правилами линтинга, 69 проверками breaking changes, Git-нативным управлением зависимостями (MVS), 15 встроенными WASM-плагинами, локальной и удалённой генерацией кода и MCP-сервером `easyp-mcp` для ИИ-инструментов.
-Впервые здесь? Начните с [Quickstart](/ru/docs/introduction/quickstart).
+Впервые здесь? Начните с [Быстрого старта](/ru/docs/introduction/quickstart) или [установки EasyP v1](/ru/docs/introduction/install). Переходите с v0? Используйте руководство по [миграции с EasyP v0](/ru/docs/migration/easyp-v0).
## С чего начать
-- [Что такое EasyP?](/ru/docs/introduction/what-is)
-- [Quickstart](/ru/docs/introduction/quickstart)
-- [Установка](/ru/docs/introduction/install)
+- [Что такое EasyP?](/ru/docs/introduction/what-is) — обзор архитектуры, компилятор `easyprotoc` и структура файлов v1
+- [Установка EasyP](/ru/docs/introduction/install) — Homebrew (macOS и Linux), Go 1.26.6+, архивы релизов, Docker и `easyp-mcp`
+- [Быстрый старт](/ru/docs/introduction/quickstart) — создание модуля v1, добавление зависимостей, генерация, линтинг и проверка совместимости
-## Разделы
+## Основные разделы
-- [CLI](/ru/docs/cli) — lint, generate, packages, breaking checks
-- [API Service](/ru/docs/api-service/overview) — удалённое выполнение плагинов
-- [Миграция](/ru/docs/migration/buf-cli) — с Buf, protoc и других
-- [CI/CD](/ru/docs/ci-cd/github-actions) — GitHub Actions и GitLab
-- [Блог](/ru/docs/blog/finally-give-up-gin-echo)
+- [CLI](/ru/docs/cli) — команды, флаги, линтер, проверка breaking changes, генератор кода и менеджер пакетов
+- [Руководства](/ru/docs/guides/adding-dependency) — практические сценарии: зависимости, мультитаргет-генерация, общие политики линтинга, CI-проверки и миграция с Buf
+- [Справочник](/ru/docs/reference/easyp-yaml) — схемы файлов `easyp.yaml`, `easyp.gen.yaml`, `protobuf.mod` и `protobuf.lock`
+- [Архитектура](/ru/docs/architecture/mvs-dependency-resolution) — алгоритм Minimal Version Selection (MVS), селективный `dirhash` и верификация lock-файла
+- [API Service](/ru/docs/api-service/overview) — удалённое выполнение плагинов и self-hosted развёртывание
+- [Миграция](/ru/docs/migration/easyp-v0) — переход с EasyP v0, Buf CLI, `protoc`, `protolock` и `prototool`
+- [CI/CD](/ru/docs/ci-cd/github-actions) — воспроизводимые пайплайны с `--frozen` в GitHub Actions и GitLab CI
+- [Блог](/ru/docs/blog/finally-give-up-gin-echo) — инженерные статьи и практики работы с Protobuf
+
+## Экосистема
+
+- [Каталог плагинов](/ru/plugins) — готовые удалённые плагины на `plugins.easyp.tech`
+- [Дорожная карта](/ru/roadmap) — вышедшие возможности v1.0 и дальнейшие планы
diff --git a/content/docs/introduction/install.mdx b/content/docs/introduction/install.mdx
index ec3b82b..7ec7ca8 100644
--- a/content/docs/introduction/install.mdx
+++ b/content/docs/introduction/install.mdx
@@ -1,104 +1,83 @@
---
title: "Install EasyP"
+description: "Install EasyP v1 CLI and easyp-mcp via Homebrew (macOS & Linux), Go 1.26.6+, release archives, or Docker."
---
-
-Install EasyP v1 only by an explicitly selected, published nightly tag. The default stable installation remains v0.17.0 while v1 has only prerelease tags. To use the v1 configuration and commands in these docs, follow [the nightly instructions](#opt-into-v1-nightly).
-
+EasyP v1 is the current stable release. Every channel below installs v1; projects still on v0 can move with [`easyp migrate`](/docs/migration/easyp-v0).
-## Install the stable CLI
+## Install the CLI
-
+
#### Homebrew
- You can install a binary release on macOS using brew:
+ On **macOS and Linux**, the Homebrew formula installs `easyp`, the `easyp-mcp` stdio server, and bash/zsh shell completions:
```bash
brew install easyp-tech/tap/easyp
```
- `Work in progress`: support for apt, yum, pacman, etc. is under development.
+ Native system packages for `apt`, `yum`, and `pacman` are planned.
#### Go toolchain
- Install the latest published stable version using the Go toolchain required by that release:
+ Building v1 requires **Go 1.26.6 or later**:
```bash
go install github.com/easyp-tech/easyp/cmd/easyp@latest
+ go install github.com/easyp-tech/easyp/cmd/easyp-mcp@latest
```
+
+
+ `@latest` now selects EasyP v1. If a script or repository still expects the v0 CLI, pin `@v0.17.0` explicitly until you migrate.
+
- Download the archive for your OS and architecture from the [latest stable release](https://github.com/easyp-tech/easyp/releases/latest). Extract it and place the `easyp` binary on `PATH`.
-
-
+ Every release archive contains both `easyp` and `easyp-mcp`. Download the archive for your OS and architecture from the [latest release](https://github.com/easyp-tech/easyp/releases/latest) and verify it with the release checksums. For Linux amd64:
-The stable Docker channel is `ghcr.io/easyp-tech/easyp:latest`; it currently
-points to the same image as `ghcr.io/easyp-tech/easyp:v0.17.0`.
-
-## Opt into v1 nightly
-
-Nightly tags use `v1.0.0-nightly.YYYYMMDD.sequence`. The commands below pin [v1.0.0-nightly.20261009.1](https://github.com/easyp-tech/easyp/releases/tag/v1.0.0-nightly.20261009.1). To select another version, choose an exact published tag from [GitHub Releases](https://github.com/easyp-tech/easyp/releases). Nightly releases do not update the stable Homebrew formula or Docker `latest` image.
+ ```bash
+ TAG=$(curl -fsSL https://api.github.com/repos/easyp-tech/easyp/releases/latest | sed -n 's/.*"tag_name": *"\([^"]*\)".*/\1/p')
+ VERSION="${TAG#v}"
+ ASSET="easyp-${VERSION}-linux-amd64.tar.gz"
+ curl -fLO "https://github.com/easyp-tech/easyp/releases/download/${TAG}/${ASSET}"
+ curl -fLO "https://github.com/easyp-tech/easyp/releases/download/${TAG}/easyp-${VERSION}-checksums.txt"
+ sha256sum --check --ignore-missing "easyp-${VERSION}-checksums.txt"
+ tar -xzf "$ASSET"
+ sudo install "easyp-${VERSION}-linux-amd64/easyp" "easyp-${VERSION}-linux-amd64/easyp-mcp" /usr/local/bin/
+ ```
-### Go: CLI and MCP
+ macOS archives use `darwin`; Windows archives use `.zip` and contain `.exe` binaries. No Go toolchain or `protoc` installation is needed to run these binaries.
+
+
+ The v1 CLI image is published to GHCR as `latest` and as each exact release tag:
-Building v1 requires **Go 1.26.6 or later**. Install both binaries at the same exact version in a separate directory to keep your stable CLI on `PATH`:
+ ```bash
+ docker run --rm -v "$PWD:/workspace" -w /workspace \
+ ghcr.io/easyp-tech/easyp:latest --version
+ ```
-```bash
-# Select an exact published nightly tag.
-NIGHTLY_TAG='v1.0.0-nightly.20261009.1'
-NIGHTLY_BIN="$HOME/.local/share/easyp-nightly/bin"
-mkdir -p "$NIGHTLY_BIN"
-GOBIN="$NIGHTLY_BIN" go install "github.com/easyp-tech/easyp/cmd/easyp@${NIGHTLY_TAG}"
-GOBIN="$NIGHTLY_BIN" go install "github.com/easyp-tech/easyp/cmd/easyp-mcp@${NIGHTLY_TAG}"
-"$NIGHTLY_BIN/easyp" --version
-```
+ Replace `--version` with the EasyP command you need, and pin an exact release tag (for example `ghcr.io/easyp-tech/easyp:v1.0.0`) in CI. This image contains the CLI; use Homebrew, Go install, or a release archive for the `easyp-mcp` stdio server.
+
+
-Invoke the nightly CLI by its full path. Configure your MCP client to run the `easyp-mcp` binary from this directory as a stdio server; it exposes the v1 configuration reference through `easyp_config_describe`. To run the v1 examples with bare `easyp` commands, select the nightly for that terminal session with `export PATH="$NIGHTLY_BIN:$PATH"`. Keep it off your permanent `PATH` to retain stable defaults.
+Configure your MCP client to run `easyp-mcp` as a stdio server; it exposes the v1 configuration reference through `easyp_config_describe`.
-### Release archive: CLI and MCP
+## Staying on v0
-The v1 archive contains both `easyp` and `easyp-mcp`. Download the asset matching your platform and verify it with the release checksums. For Linux amd64:
+v0 remains available by its exact version, for projects that have not migrated yet or to record a baseline before migrating:
```bash
-# Select an exact published nightly tag.
-NIGHTLY_TAG='v1.0.0-nightly.20261009.1'
-NIGHTLY_VERSION="${NIGHTLY_TAG#v}"
-NIGHTLY_ASSET="easyp-${NIGHTLY_VERSION}-linux-amd64.tar.gz"
-NIGHTLY_BIN="$HOME/.local/share/easyp-nightly/bin"
-curl -fLO "https://github.com/easyp-tech/easyp/releases/download/${NIGHTLY_TAG}/${NIGHTLY_ASSET}"
-curl -fLO "https://github.com/easyp-tech/easyp/releases/download/${NIGHTLY_TAG}/easyp-${NIGHTLY_VERSION}-checksums.txt"
-sha256sum --check --ignore-missing "easyp-${NIGHTLY_VERSION}-checksums.txt"
-mkdir -p "$NIGHTLY_BIN"
-tar -xzf "$NIGHTLY_ASSET" --strip-components=1 -C "$NIGHTLY_BIN"
-"$NIGHTLY_BIN/easyp" --version
+go install github.com/easyp-tech/easyp/cmd/easyp@v0.17.0
+docker run --rm -v "$PWD:/workspace" -w /workspace ghcr.io/easyp-tech/easyp:v0.17.0 --version
```
-Invoke the CLI and MCP binaries by their full paths in this separate directory. macOS archives use `darwin`; Windows archives use `.zip` and contain `.exe` binaries. No Go toolchain is needed to run these binaries.
-
-### Docker: CLI
-
-The nightly CLI image uses its exact tag in GHCR:
+## Prereleases
-```bash
-# Select an exact published nightly tag.
-NIGHTLY_TAG='v1.0.0-nightly.20261009.1'
-docker run --rm -v "$PWD:/workspace" -w /workspace \
- "ghcr.io/easyp-tech/easyp:${NIGHTLY_TAG}" --version
-```
-
-Replace `--version` with the EasyP command you need. This image contains the CLI; use the Go install or archive for the MCP stdio server.
+Nightly prerelease builds are opt-in and published as `v1.X.Y-nightly.YYYYMMDD.N` tags on [GitHub Releases](https://github.com/easyp-tech/easyp/releases) and as `ghcr.io/easyp-tech/easyp:`. They are installed only by their exact tag, for example `go install github.com/easyp-tech/easyp/cmd/easyp@`, and never update Homebrew, Go `@latest`, or the Docker `latest` image.
## Go modules: moving from v0 to v1
-EasyP v0 and v1 share the module path `github.com/easyp-tech/easyp`; there is no `/v1` suffix. Go requires a new `/v2` path starting at major version 2 so incompatible major versions can coexist. A v0→v1 upgrade can still require changes to your code and configuration. See [Go's version numbering](https://go.dev/doc/modules/version-numbers).
-
-Merging v1 development into `main` leaves the published `v0.17.0` tag and pinned v0 installations unchanged. When starting from v0, `@latest` and ordinary `go get -u` prefer a published stable version over v1 prereleases; explicitly requesting a nightly opts into v1 and its API/configuration changes. An existing requirement on a higher prerelease is not automatically downgraded. See [Go version queries](https://go.dev/ref/mod#version-queries).
-
-A stable `v1.0.0` Git tag would become eligible for Go's default selection even without a GitHub Release, or if that Release were marked prerelease. For this nightly-only phase, publish only the exact nightly tag format above. `@main` explicitly requests development code; it is not the stable installation channel.
+EasyP v0 and v1 share the module path `github.com/easyp-tech/easyp`; there is no `/v1` suffix. Go requires a new `/v2` path starting at major version 2 so incompatible major versions can coexist. See [Go's version numbering](https://go.dev/doc/modules/version-numbers).
-Go selects one version per module path for a build. A different dependency
-requiring a v1 nightly can also raise the selected EasyP version through
-[minimal version selection](https://go.dev/ref/mod#minimal-version-selection).
-Library consumers keeping v0 need a dependency graph compatible with that version.
+Code that imports EasyP as a library therefore moves to v1 on `go get -u` or `@latest`, and the v1 API and configuration may require changes. Pin `v0.17.0` until that code is ported. Go selects one version per module path for a build, so a different dependency requiring v1 can also raise the selected EasyP version through [minimal version selection](https://go.dev/ref/mod#minimal-version-selection).
diff --git a/content/docs/introduction/install.ru.mdx b/content/docs/introduction/install.ru.mdx
index d40ce86..2b74a5f 100644
--- a/content/docs/introduction/install.ru.mdx
+++ b/content/docs/introduction/install.ru.mdx
@@ -1,104 +1,83 @@
---
title: "Установка EasyP"
+description: "Установка EasyP v1 CLI и easyp-mcp через Homebrew (macOS и Linux), Go 1.26.6+, архивы релизов или Docker."
---
-
-Для установки EasyP v1 явно выберите опубликованный nightly-тег. Стабильная установка по умолчанию остаётся на v0.17.0, пока для v1 существуют только prerelease-теги. Для конфигурации и команд v1 из этой документации используйте [инструкцию nightly](#явная-установка-v1-nightly).
-
+Текущий стабильный релиз — EasyP v1. Все каналы ниже устанавливают v1; проекты на v0 переводятся командой [`easyp migrate`](/ru/docs/migration/easyp-v0).
-## Установка стабильного CLI
+## Установка CLI
-
+
#### Homebrew
- Можно установить бинарный релиз в macOS через Homebrew:
+ На **macOS и Linux** формула Homebrew устанавливает `easyp`, stdio MCP-сервер `easyp-mcp` и автодополнение для bash и zsh:
```bash
brew install easyp-tech/tap/easyp
```
- `Work in progress` — поддержка других системных менеджеров (apt, yum, pacman и т.д.) в процессе.
+ Системные пакеты для `apt`, `yum` и `pacman` запланированы.
#### Go toolchain
- Установите последнюю опубликованную стабильную версию через Go toolchain, требуемый выбранным релизом:
+ Для сборки v1 нужен **Go 1.26.6 или новее**:
```bash
go install github.com/easyp-tech/easyp/cmd/easyp@latest
+ go install github.com/easyp-tech/easyp/cmd/easyp-mcp@latest
```
+
+
+ `@latest` теперь выбирает EasyP v1. Если скрипт или репозиторий ещё рассчитаны на v0, явно закрепите `@v0.17.0` до завершения миграции.
+
- Скачайте архив для своей ОС и архитектуры из [последнего стабильного релиза](https://github.com/easyp-tech/easyp/releases/latest). Распакуйте его и добавьте бинарник `easyp` в `PATH`.
-
-
+ Каждый архив релиза содержит `easyp` и `easyp-mcp`. Скачайте архив для своей ОС и архитектуры из [последнего релиза](https://github.com/easyp-tech/easyp/releases/latest) и проверьте его по контрольным суммам релиза. Для Linux amd64:
-Стабильный Docker-канал — `ghcr.io/easyp-tech/easyp:latest`; сейчас он указывает
-на тот же образ, что и `ghcr.io/easyp-tech/easyp:v0.17.0`.
-
-## Явная установка v1 nightly
-
-Nightly-теги имеют формат `v1.0.0-nightly.YYYYMMDD.sequence`. Команды ниже закреплены на [v1.0.0-nightly.20261009.1](https://github.com/easyp-tech/easyp/releases/tag/v1.0.0-nightly.20261009.1). Для другой версии выберите точный опубликованный тег в [GitHub Releases](https://github.com/easyp-tech/easyp/releases). Nightly не обновляет стабильную формулу Homebrew или Docker-образ `latest`.
+ ```bash
+ TAG=$(curl -fsSL https://api.github.com/repos/easyp-tech/easyp/releases/latest | sed -n 's/.*"tag_name": *"\([^"]*\)".*/\1/p')
+ VERSION="${TAG#v}"
+ ASSET="easyp-${VERSION}-linux-amd64.tar.gz"
+ curl -fLO "https://github.com/easyp-tech/easyp/releases/download/${TAG}/${ASSET}"
+ curl -fLO "https://github.com/easyp-tech/easyp/releases/download/${TAG}/easyp-${VERSION}-checksums.txt"
+ sha256sum --check --ignore-missing "easyp-${VERSION}-checksums.txt"
+ tar -xzf "$ASSET"
+ sudo install "easyp-${VERSION}-linux-amd64/easyp" "easyp-${VERSION}-linux-amd64/easyp-mcp" /usr/local/bin/
+ ```
-### Go: CLI и MCP
+ Архивы для macOS используют `darwin`; для Windows используется `.zip` с бинарниками `.exe`. Для запуска готовых бинарников не требуются ни Go, ни `protoc`.
+
+
+ Образ v1 CLI публикуется в GHCR под тегом `latest` и под точным тегом каждого релиза:
-Для сборки v1 требуется **Go 1.26.6 или новее**. Установите оба бинарника в одной точной версии в отдельный каталог, чтобы сохранить стабильный CLI в `PATH`:
+ ```bash
+ docker run --rm -v "$PWD:/workspace" -w /workspace \
+ ghcr.io/easyp-tech/easyp:latest --version
+ ```
-```bash
-# Выберите точный опубликованный nightly-тег.
-NIGHTLY_TAG='v1.0.0-nightly.20261009.1'
-NIGHTLY_BIN="$HOME/.local/share/easyp-nightly/bin"
-mkdir -p "$NIGHTLY_BIN"
-GOBIN="$NIGHTLY_BIN" go install "github.com/easyp-tech/easyp/cmd/easyp@${NIGHTLY_TAG}"
-GOBIN="$NIGHTLY_BIN" go install "github.com/easyp-tech/easyp/cmd/easyp-mcp@${NIGHTLY_TAG}"
-"$NIGHTLY_BIN/easyp" --version
-```
+ Замените `--version` нужной командой EasyP, а в CI закрепляйте точный тег (например, `ghcr.io/easyp-tech/easyp:v1.0.0`). В образе находится только CLI; для MCP-сервера `easyp-mcp` используйте Homebrew, Go install или архив.
+
+
-Вызывайте nightly CLI по полному пути. Настройте MCP-клиент на запуск `easyp-mcp` из этого каталога как stdio-сервера: он предоставляет справочник конфигурации v1 через `easyp_config_describe`. Для примеров с командой `easyp` выберите nightly в текущем терминале: `export PATH="$NIGHTLY_BIN:$PATH"`. Не добавляйте этот каталог в постоянный `PATH`, чтобы сохранить стабильную версию по умолчанию.
+Подключите `easyp-mcp` в MCP-клиенте как stdio-сервер: он отдаёт справочник конфигурации v1 через `easyp_config_describe`.
-### Архив релиза: CLI и MCP
+## Если нужно остаться на v0
-Архив v1 содержит `easyp` и `easyp-mcp`. Скачайте файл для своей платформы и проверьте его по контрольным суммам релиза. Пример для Linux amd64:
+v0 доступен по точной версии — для проектов, которые ещё не мигрировали, или чтобы снять эталон перед миграцией:
```bash
-# Выберите точный опубликованный nightly-тег.
-NIGHTLY_TAG='v1.0.0-nightly.20261009.1'
-NIGHTLY_VERSION="${NIGHTLY_TAG#v}"
-NIGHTLY_ASSET="easyp-${NIGHTLY_VERSION}-linux-amd64.tar.gz"
-NIGHTLY_BIN="$HOME/.local/share/easyp-nightly/bin"
-curl -fLO "https://github.com/easyp-tech/easyp/releases/download/${NIGHTLY_TAG}/${NIGHTLY_ASSET}"
-curl -fLO "https://github.com/easyp-tech/easyp/releases/download/${NIGHTLY_TAG}/easyp-${NIGHTLY_VERSION}-checksums.txt"
-sha256sum --check --ignore-missing "easyp-${NIGHTLY_VERSION}-checksums.txt"
-mkdir -p "$NIGHTLY_BIN"
-tar -xzf "$NIGHTLY_ASSET" --strip-components=1 -C "$NIGHTLY_BIN"
-"$NIGHTLY_BIN/easyp" --version
+go install github.com/easyp-tech/easyp/cmd/easyp@v0.17.0
+docker run --rm -v "$PWD:/workspace" -w /workspace ghcr.io/easyp-tech/easyp:v0.17.0 --version
```
-Вызывайте CLI и MCP по полным путям в этом отдельном каталоге. Архивы macOS используют `darwin`; архивы Windows имеют расширение `.zip` и содержат `.exe`. Для запуска готовых бинарников Go toolchain не нужен.
-
-### Docker: CLI
-
-Nightly-образ CLI в GHCR выбирается по точному тегу:
+## Предрелизы
-```bash
-# Выберите точный опубликованный nightly-тег.
-NIGHTLY_TAG='v1.0.0-nightly.20261009.1'
-docker run --rm -v "$PWD:/workspace" -w /workspace \
- "ghcr.io/easyp-tech/easyp:${NIGHTLY_TAG}" --version
-```
-
-Замените `--version` нужной командой EasyP. Образ содержит CLI; MCP stdio-сервер устанавливается через Go или архив.
+Ночные предрелизные сборки устанавливаются только по явному выбору и публикуются тегами `v1.X.Y-nightly.YYYYMMDD.N` на [GitHub Releases](https://github.com/easyp-tech/easyp/releases) и образами `ghcr.io/easyp-tech/easyp:`. Они ставятся исключительно по точному тегу (например, `go install github.com/easyp-tech/easyp/cmd/easyp@`) и никогда не обновляют Homebrew, Go `@latest` и Docker-образ `latest`.
## Go modules: переход с v0 на v1
-EasyP v0 и v1 используют один путь модуля: `github.com/easyp-tech/easyp`, без суффикса `/v1`. Начиная с major 2 Go требует новый путь `/v2`, чтобы несовместимые мажорные версии могли сосуществовать. Переход v0→v1 всё же может требовать изменений кода и конфигурации. См. [нумерацию версий Go](https://go.dev/doc/modules/version-numbers).
-
-Слияние разработки v1 в `main` не меняет опубликованный тег `v0.17.0` и установки, закреплённые на v0. При переходе со стабильного v0 команды `@latest` и обычный `go get -u` предпочитают опубликованную стабильную версию prerelease-версиям v1. Явный nightly-тег включает v1 и требует учёта изменений API и конфигурации. Уже выбранная более высокая prerelease-версия автоматически не понижается. См. [запросы версий Go](https://go.dev/ref/mod#version-queries).
-
-Стабильный Git-тег `v1.0.0` попадёт в выбор Go по умолчанию даже без GitHub Release или при флаге prerelease у этого Release. На этапе nightly публикуются только точные nightly-теги указанного выше формата. `@main` явно запрашивает код разработки и не является каналом стабильной установки.
+EasyP v0 и v1 используют один путь модуля `github.com/easyp-tech/easyp`, суффикса `/v1` нет. Go требует новый путь `/v2` начиная со второй мажорной версии, чтобы несовместимые версии могли сосуществовать. См. [нумерацию версий Go](https://go.dev/doc/modules/version-numbers).
-Для одной сборки Go выбирает одну версию каждого module path. Другая зависимость,
-требующая v1 nightly, также может повысить выбранную версию EasyP через
-[minimal version selection](https://go.dev/ref/mod#minimal-version-selection).
-Если вы используете v0 как библиотеку, её граф зависимостей тоже должен быть совместим с v0.
+Поэтому код, который импортирует EasyP как библиотеку, перейдёт на v1 при `go get -u` или `@latest`, а API и конфигурация v1 могут потребовать изменений. Закрепите `v0.17.0`, пока код не перенесён. Go выбирает одну версию на путь модуля в сборке, поэтому другая зависимость, требующая v1, тоже может поднять выбранную версию EasyP через [minimal version selection](https://go.dev/ref/mod#minimal-version-selection).
diff --git a/content/docs/introduction/meta.ru.json b/content/docs/introduction/meta.ru.json
new file mode 100644
index 0000000..1eed9af
--- /dev/null
+++ b/content/docs/introduction/meta.ru.json
@@ -0,0 +1,8 @@
+{
+ "title": "Введение",
+ "pages": [
+ "what-is",
+ "quickstart",
+ "install"
+ ]
+}
diff --git a/content/docs/introduction/quickstart.mdx b/content/docs/introduction/quickstart.mdx
index dc28e1d..ba3c5fb 100644
--- a/content/docs/introduction/quickstart.mdx
+++ b/content/docs/introduction/quickstart.mdx
@@ -1,15 +1,17 @@
---
title: "Quickstart"
-description: "Create a protobuf module and generate code with EasyP v1 nightly."
+description: "Create a protobuf module, add dependencies, generate code, lint, and check breaking changes with EasyP v1."
---
-Install an [explicit v1 nightly](/docs/introduction/install#opt-into-v1-nightly) and make sure Git is available. The `go` plugin uses `protoc-gen-go` from `PATH` when installed, otherwise EasyP uses its bundled WASM generator.
+[Install EasyP v1](/docs/introduction/install) and make sure Git is available. EasyP v1 compiles `.proto` files with its built-in pure-Go `easyprotoc` compiler, so **`protoc` is not required**.
+
+
+EasyP includes **15 built-in WASM plugins** (`cpp`, `csharp`, `java`, `kotlin`, `objc`, `php`, `python`, `ruby`, and their `grpc_*` counterparts). **`go` and `go-grpc` are not built-in WASM plugins**: either run them remotely via `plugins.easyp.tech` (zero local plugin setup) or install `protoc-gen-go` on your `PATH`.
+
## 1. Initialize a module
```bash
-# Use the nightly installed in the installation guide for this terminal session.
-export PATH="$HOME/.local/share/easyp-nightly/bin:$PATH"
easyp --version
mkdir contracts && cd contracts
@@ -17,7 +19,7 @@ git init
easyp init --module github.com/acme/contracts
```
-`init` creates three files: `protobuf.mod` for the module, `easyp.yaml` for lint and breaking policies, and `easyp.gen.yaml` for generation. If a file already exists, EasyP asks before replacing it. Automatic migration from Buf dependencies is not part of the pilot.
+`init` creates three files: `protobuf.mod` for the module, `easyp.yaml` for lint and breaking policies, and `easyp.gen.yaml` for generation. If a file already exists, EasyP asks before replacing it.
## 2. Add a proto file
@@ -44,29 +46,71 @@ module github.com/acme/contracts
roots proto
```
-## 3. Configure generation
+If your protos import external Git modules (for example `google/api/annotations.proto`), add them with `easyp get`:
-Replace the empty plugin list in `easyp.gen.yaml`:
-
-```yaml
-version: v1
-generate:
- modules: [github.com/acme/contracts]
-plugins:
- - name: go
- out: ./gen/go
- opts:
- paths: source_relative
+```bash
+easyp get github.com/googleapis/googleapis
```
-## 4. Run the commands
+`easyp get` adds the direct requirement to `protobuf.mod`, records transitive dependencies as `// indirect`, and pins exact commits and hashes in `protobuf.lock`.
+
+## 3. Configure generation
+
+Replace the empty plugin list in `easyp.gen.yaml`. Choose either a **remote plugin** (no local Go plugin required) or a **local `protoc-gen-go` binary** on `PATH`:
+
+
+
+ ```yaml
+ version: v1
+ generate:
+ modules: [github.com/acme/contracts]
+ plugins:
+ - remote: plugins.easyp.tech/protocolbuffers/go
+ version: v1.36.11
+ out: ./gen/go
+ opts:
+ paths: source_relative
+ ```
+
+
+ Install `protoc-gen-go` on `PATH` first:
+
+ ```bash
+ go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
+ ```
+
+ Then configure `easyp.gen.yaml`:
+
+ ```yaml
+ version: v1
+ generate:
+ modules: [github.com/acme/contracts]
+ plugins:
+ - name: go
+ out: ./gen/go
+ opts:
+ paths: source_relative
+ ```
+
+
+
+## 4. Validate, generate, lint, and check compatibility
```bash
+easyp validate-config
easyp mod tidy
easyp generate
easyp lint --path proto
```
-`mod tidy` creates `protobuf.lock`. Add `require module version` lines to `protobuf.mod` before running it when your sources import another Git module. `mod download` later fetches the exact locked commits. Commit `protobuf.mod` and `protobuf.lock` alongside the source files.
+Commit your initial files to Git (`git add . && git commit -m "init"`). Once you have a baseline commit or branch, verify backward compatibility against it:
+
+```bash
+easyp breaking --against main
+```
+
+- `validate-config` checks `easyp.yaml`, `easyp.gen.yaml`, `protobuf.mod`, and `protobuf.lock` against the v1 schema and semantic rules.
+- `mod tidy` reconciles `protobuf.mod` and writes `protobuf.lock`. Later, `easyp mod download --frozen` fetches the exact locked commits in CI.
+- Commit `protobuf.mod` and `protobuf.lock` alongside your `.proto` files.
-For a full field reference, see [configuration](/docs/cli/configuration), [generation](/docs/cli/generator), and [dependencies](/docs/cli/package-manager).
+For a full field reference, see [configuration](/docs/cli/configuration), [generation](/docs/cli/generator), [dependencies](/docs/cli/package-manager), and [breaking checks](/docs/cli/breaking-changes).
diff --git a/content/docs/introduction/quickstart.ru.mdx b/content/docs/introduction/quickstart.ru.mdx
index c96600d..adf92bc 100644
--- a/content/docs/introduction/quickstart.ru.mdx
+++ b/content/docs/introduction/quickstart.ru.mdx
@@ -1,15 +1,17 @@
---
title: "Быстрый старт"
-description: "Создание protobuf-модуля и генерация кода в EasyP v1 nightly."
+description: "Создание protobuf-модуля, добавление зависимостей, генерация кода, линтинг и проверка совместимости в EasyP v1."
---
-Установите [явно выбранный v1 nightly](/ru/docs/introduction/install#явная-установка-v1-nightly) и убедитесь, что доступен Git. Плагин `go` использует `protoc-gen-go` из `PATH`, если он установлен; иначе EasyP запускает встроенный WASM-генератор.
+[Установите EasyP v1](/ru/docs/introduction/install) и убедитесь, что доступен Git. EasyP v1 компилирует `.proto`-файлы встроенным pure-Go компилятором `easyprotoc`, поэтому **устанавливать `protoc` не нужно**.
+
+
+В EasyP встроены **15 WASM-плагинов** (`cpp`, `csharp`, `java`, `kotlin`, `objc`, `php`, `python`, `ruby` и их gRPC-пары `grpc_*`). **`go` и `go-grpc` не входят во встроенные WASM-плагины**: запускайте их удалённо через `plugins.easyp.tech` (без локальной установки плагинов) или установите `protoc-gen-go` в `PATH`.
+
## 1. Создайте модуль
```bash
-# Выберите nightly из инструкции по установке для текущего терминала.
-export PATH="$HOME/.local/share/easyp-nightly/bin:$PATH"
easyp --version
mkdir contracts && cd contracts
@@ -17,7 +19,7 @@ git init
easyp init --module github.com/acme/contracts
```
-`init` создаёт три файла: `protobuf.mod` для модуля, `easyp.yaml` для политик линтинга и проверки совместимости, `easyp.gen.yaml` для генерации. Перед заменой существующего файла EasyP спрашивает пользователя. Автоматическая миграция зависимостей Buf в пилотную версию не входит.
+`init` создаёт три файла: `protobuf.mod` для модуля, `easyp.yaml` для политик линтинга и проверки совместимости и `easyp.gen.yaml` для генерации. Перед перезаписью существующего файла EasyP запрашивает подтверждение.
## 2. Добавьте proto-файл
@@ -44,29 +46,71 @@ module github.com/acme/contracts
roots proto
```
-## 3. Настройте генерацию
+Если ваши `.proto` импортируют внешние Git-модули (например, `google/api/annotations.proto`), добавьте их командой `easyp get`:
-Замените пустой список плагинов в `easyp.gen.yaml`:
-
-```yaml
-version: v1
-generate:
- modules: [github.com/acme/contracts]
-plugins:
- - name: go
- out: ./gen/go
- opts:
- paths: source_relative
+```bash
+easyp get github.com/googleapis/googleapis
```
-## 4. Запустите команды
+`easyp get` добавляет прямую зависимость в `protobuf.mod`, записывает транзитивные зависимости с пометкой `// indirect` и фиксирует точные коммиты и хеши в `protobuf.lock`.
+
+## 3. Настройте генерацию
+
+Замените пустой список плагинов в `easyp.gen.yaml`. Выберите **удалённый плагин** (не требует локальной установки Go-плагина) или **локальный бинарник `protoc-gen-go`** в `PATH`:
+
+
+
+ ```yaml
+ version: v1
+ generate:
+ modules: [github.com/acme/contracts]
+ plugins:
+ - remote: plugins.easyp.tech/protocolbuffers/go
+ version: v1.36.11
+ out: ./gen/go
+ opts:
+ paths: source_relative
+ ```
+
+
+ Сначала установите `protoc-gen-go` в `PATH`:
+
+ ```bash
+ go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
+ ```
+
+ Затем настройте `easyp.gen.yaml`:
+
+ ```yaml
+ version: v1
+ generate:
+ modules: [github.com/acme/contracts]
+ plugins:
+ - name: go
+ out: ./gen/go
+ opts:
+ paths: source_relative
+ ```
+
+
+
+## 4. Проверьте конфиг, сгенерируйте код, запустите линтер и проверку совместимости
```bash
+easyp validate-config
easyp mod tidy
easyp generate
easyp lint --path proto
```
-`mod tidy` создаёт `protobuf.lock`. Если исходники импортируют другой Git-модуль, сначала добавьте в `protobuf.mod` строку `require module version`. Позже `mod download` скачает точные коммиты из lock. Храните `protobuf.mod` и `protobuf.lock` вместе с исходниками в репозитории.
+Зафиксируйте начальные файлы в Git (`git add . && git commit -m "init"`). Когда в репозитории появится базовая ветка или коммит, проверьте обратную совместимость:
+
+```bash
+easyp breaking --against main
+```
+
+- `validate-config` проверяет `easyp.yaml`, `easyp.gen.yaml`, `protobuf.mod` и `protobuf.lock` по схемам и семантическим правилам v1.
+- `mod tidy` согласовывает `protobuf.mod` и записывает `protobuf.lock`. В CI команда `easyp mod download --frozen` скачивает точные зафиксированные коммиты.
+- Храните `protobuf.mod` и `protobuf.lock` в репозитории вместе с `.proto`-файлами.
-Подробности: [конфигурация](/ru/docs/cli/configuration), [генерация](/ru/docs/cli/generator), [зависимости](/ru/docs/cli/package-manager).
+Подробности: [конфигурация](/ru/docs/cli/configuration), [генерация](/ru/docs/cli/generator), [зависимости](/ru/docs/cli/package-manager) и [проверка breaking changes](/ru/docs/cli/breaking-changes).
diff --git a/content/docs/introduction/what-is.mdx b/content/docs/introduction/what-is.mdx
index b935f06..440dbf2 100644
--- a/content/docs/introduction/what-is.mdx
+++ b/content/docs/introduction/what-is.mdx
@@ -1,135 +1,140 @@
---
title: "What is EasyP?"
+description: "Overview of EasyP v1: pure-Go easyprotoc compiler, Git-native dependencies, linting, breaking-change detection, and code generation."
---
-EasyP is a modern Protocol Buffers toolkit that consolidates your entire protobuf workflow into a single, powerful CLI tool. It combines linting, package management, code generation, and compatibility checking in a unified interface designed to eliminate the complexity of traditional protobuf development.
+EasyP is a modern Protocol Buffers toolkit that consolidates your protobuf workflow into a single CLI tool (`easyp`) plus an optional MCP server (`easyp-mcp`). It combines a pure-Go compiler, linting, Git-native package management, code generation, and breaking-change detection in one cohesive workflow.
-Just want to try it out? Skip to the [Quickstart](/docs/introduction/quickstart).
+Just want to try it out? Skip to the [Quickstart](/docs/introduction/quickstart) or browse hosted plugins in the [Plugin Registry](/plugins).
## The Problem: Fragmented Proto Workflows
-Working with Protocol Buffers across projects creates unnecessary complexity and friction:
+Working with Protocol Buffers across projects often creates unnecessary friction:
### Tool Chaos
-- **Multiple tools for different tasks**: Separate tools for linting, generation, and dependency management
-- **Inconsistent configurations**: Different config formats across projects and teams
-- **Complex setup**: Time-consuming onboarding for new developers joining projects
+- **Multiple tools for different tasks**: Separate binaries for `protoc`, linting, breaking checks, generation, and dependency syncing
+- **Inconsistent configurations**: Different ad-hoc shell scripts and flags across services and teams
+- **Complex onboarding**: Developers must install matching `protoc` and plugin versions locally before compiling a single file
-### Dependency Management Issues
-- **No standardized approach**: Each project handles proto dependencies differently
-- **Version conflicts**: Difficult to resolve conflicts between different proto libraries
-- **Build reproducibility**: Hard to ensure consistent builds across environments
+### Dependency Management Issues
+- **No standardized approach**: Projects copy `.proto` files manually or rely on fragile Git submodules
+- **Version conflicts**: Difficult to resolve transitive proto libraries cleanly across teams
+- **Build reproducibility**: Hard to guarantee identical descriptors and generated code between laptops and CI
-### Development Friction
-- **Manual processes**: Repetitive workflows for common proto tasks
-- **Configuration sprawl**: Multiple config files with different formats
-- **Time-consuming compatibility checks**: Manual verification of API changes
+### Compatibility & Maintenance Risk
+- **Manual reviews**: Breaking API changes slip through without automated checks against Git baselines
+- **Vendor lock-in**: Teams are pushed toward proprietary registries when all their schemas already live in Git
-## The Solution: Unified Proto Toolkit
+## The Solution: EasyP v1
-EasyP addresses these challenges by providing a comprehensive, opinionated toolkit that standardizes protobuf workflows:
+EasyP replaces fragile `protoc` scripts with a self-contained v1 workflow built around four pillars:
-### One Tool, All Tasks
-Instead of juggling multiple tools, EasyP provides everything you need:
-- **Linting** with comprehensive rule sets
-- **Package management** with Git-native dependencies
-- **Code generation** with local and remote plugin support
-- **Breaking change detection** for API compatibility
+### Built-in Pure-Go Compiler (`easyprotoc`)
+EasyP v1 compiles `.proto` files with its own pure-Go compiler, **`easyprotoc`** (`v0.1.1`) — **no `protoc` installation is required** and third-party compiler/parser wrappers (`protocompile`, `go-protoparser`) are no longer needed:
+- Produces `FileDescriptorSet` output equivalent to `protoc` (verified on the full `googleapis` corpus in CI), including source info, comments, and custom options
+- Ships standard `google/protobuf/*.proto` well-known types built in
+- Supports **proto2**, **proto3**, and **Protobuf Editions 2023**
+- Compiles in parallel across all CPU cores (for example, compiling all 7,416 `googleapis` files with `--include_imports --include_source_info` takes ~0.88 s vs ~3.83 s for `protoc` on Apple M5 Pro)
-### Standardized Configuration
-A single `easyp.yaml` file configures your entire protobuf workflow, eliminating configuration sprawl and ensuring consistency across projects.
+### Clear Separation of Concerns in Configuration
+Instead of overloading one file with unrelated concerns, EasyP v1 separates configuration into three focused files plus a lockfile:
+- **`protobuf.mod`** (+ **`protobuf.lock`**) — module identity, source `roots`, Git `require` dependencies with Minimal Version Selection (MVS), and local `replace` overrides
+- **`easyp.yaml`** — lint policies (`44` built-in rules) and breaking-change checks (`69` rules across `FILE`, `PACKAGE`, `WIRE_JSON`, and `WIRE`)
+- **`easyp.gen.yaml`** — generation targets (`modules`, `paths`, `packages`), managed mode, and code-generation `plugins`
### Git-Native Dependencies
-Direct integration with Git repositories for proto dependencies eliminates the need for centralized registries while providing version control and reproducibility.
+Any Git repository (GitHub, GitLab, Bitbucket, or private self-hosted Git) works directly as a protobuf module. EasyP verifies full commit SHAs and selective `dirhash.Hash1` digests in `protobuf.lock`, and supports `--frozen` mode in CI for zero-mutation reproducible builds.
+
+### AI-Ready Configuration via `easyp-mcp`
+Release archives, Homebrew, and Go installs also provide `easyp-mcp`, a stdio Model Context Protocol server exposing `easyp_config_describe` backed by the exact same JSON Schemas used by `easyp validate-config`.
## Key Features
| Feature | Description |
|---------|-------------|
-| 🔍 **Comprehensive Linting** | Built-in support for buf's linting rules with customizable configurations to enforce API design best practices. |
-| 📦 **Smart Package Manager** | Git-based dependency management with lock file support for reproducible builds across environments. |
-| ⚡ **Code Generation** | Multi-language code generation with support for both local protoc plugins and remote plugin execution. |
-| 🔄 **Breaking Change Detection** | Automated API compatibility verification against Git branches to prevent accidental breaking changes. |
-| 🌐 **Remote Plugin Support** | Execute plugins via centralized EasyP API service for consistent, isolated execution without local dependencies. |
-| 🎯 **Developer Experience** | Auto-completion, intuitive commands, clear error messages, and comprehensive documentation. |
+| **Built-in `easyprotoc` Compiler** | Pure-Go `.proto` compiler with zero `protoc` dependency, built-in well-known types, and Protobuf Editions 2023 support. |
+| **Comprehensive Linting** | 44 rules organized across `MINIMAL`, `BASIC`, `DEFAULT`, `COMMENTS`, and `UNARY_RPC` with reusable remote `extends` policies. |
+| **Breaking Change Detection** | 69 descriptor-backed rules across `FILE`, `PACKAGE`, `WIRE_JSON`, and `WIRE` profiles compared against any Git branch, tag, or commit. |
+| **Git-Native Package Manager** | MVS dependency resolution, `easyp get`, `mod tidy`/`download`/`update`/`vendor`, local `replace`, and cryptographic `protobuf.lock` verification. |
+| **Flexible Code Generation** | 15 built-in WASM plugins, local `PATH`/`path`/`command` plugins, and hosted or self-hosted remote plugins via EasyP API Service. |
+| **Developer & Agent Experience** | `easyp validate-config`, `--format json`, bash/zsh completions, and the `easyp-mcp` stdio server. |
-## Supported Plugin Types
+## Supported Plugin Sources
-EasyP provides flexibility in how you execute code generation plugins:
+In `easyp.gen.yaml`, each entry under `plugins:` selects one of four execution sources:
-### Local Plugins
-Standard protoc plugins installed on your system:
+### Local or Built-in WASM Plugins (`name:`)
+Uses `protoc-gen-` from `PATH`, or falls back to one of the **15 built-in WASM plugins** (`cpp`, `csharp`, `java`, `kotlin`, `objc`, `php`, `python`, `ruby`, and `grpc_*` counterparts):
```yaml
+version: v1
plugins:
- - name: go
- out: .
- opts:
- paths: source_relative
+ - name: python
+ out: ./gen/python
```
-### Remote Plugins
-Plugins executed via EasyP API service for consistent results:
+### Explicit Binary Path (`path:`)
+Invokes a specific executable path (resolved relative to the working directory where `easyp generate` starts):
```yaml
+version: v1
plugins:
- - remote: api.easyp.tech/protoc-gen-typescript:latest
- out: ./web/generated
+ - path: ./tools/bin/protoc-gen-custom
+ out: ./gen/custom
```
-### Custom Plugins
-Support for custom plugin development and distribution through the ecosystem.
+### Command + Arguments (`command:`)
+Runs a wrapper script, interpreter, or tool launcher such as `go run` or `npx`:
+```yaml
+version: v1
+plugins:
+ - command: ["go", "run", "./cmd/protoc-gen-internal"]
+ out: ./gen/internal
+```
+
+### Remote Plugins (`remote:` + `version:`)
+Executes pinned plugins remotely via [`plugins.easyp.tech`](/plugins) or a self-hosted [EasyP API Service](/docs/api-service/overview) — no local plugin installation needed:
+```yaml
+version: v1
+plugins:
+ - remote: plugins.easyp.tech/protocolbuffers/go
+ version: v1.36.11
+ out: ./gen/go
+ opts:
+ paths: source_relative
+```
## Decentralized Package Management
-Unlike other tools, EasyP doesn't rely on a centralized server for package distribution. Instead, any Git repository can serve as a package source, giving you:
+Unlike tools centered on a hosted registry, any Git repository can serve as a module source:
-- **Flexibility and Control**: Use any Git hosting service (GitHub, GitLab, self-hosted)
-- **No Vendor Lock-in**: Your dependencies aren't tied to a specific registry
-- **Version Control**: Full Git history and branching for your proto dependencies
-- **Enterprise-Friendly**: Works with private repositories and corporate Git infrastructure
+- **Flexibility and Control**: Works with GitHub, GitLab, Bitbucket, and private corporate Git servers
+- **No Vendor Lock-in**: Schemas stay in your repositories with your existing access controls and review process
+- **Reproducible by Default**: `protobuf.lock` pins full Git commit SHAs and content hashes, enforced by `--frozen` in CI
-## Using Buf-configured dependencies
+## Using Buf-Configured Dependencies
-An EasyP v1 project declares Git dependencies in `protobuf.mod`. When a Git dependency uses Buf v1 or v2 configuration, EasyP reads its declared proto roots for imports. Older EasyP dependency configuration is supported in the same way. The consuming project still uses separate `protobuf.mod`, `easyp.gen.yaml`, and `easyp.yaml` files.
+An EasyP v1 project declares Git dependencies in `protobuf.mod`. When a Git dependency uses Buf v1, v1beta1, or v2 configuration (`buf.yaml` / `buf.work.yaml`), EasyP reads its declared roots, `includes`/`excludes` filters, and supported compatibility BSR mappings automatically. Older EasyP v0 dependency repositories are supported in the same way, while the consuming project uses native `protobuf.mod`, `easyp.gen.yaml`, and `easyp.yaml` files.
See [Buf-configured Git dependencies](/docs/cli/package-manager/easyp-vs-buf) for supported formats and limits.
-## Our Goals for Protobuf
-
-EasyP's mission is to accelerate the adoption of **schema-driven API development** by making Protocol Buffers more accessible and reliable:
-
-### Modern Protobuf Ecosystem
-We're building on Protobuf's proven foundation to create a modern development experience that rivals the simplicity of REST/JSON while providing superior type safety and performance.
-
-### Developer Experience First
-Every feature is designed with developer productivity in mind, from intuitive CLI commands to comprehensive error messages and documentation.
-
-### Enterprise Ready
-Built for teams and organizations with features like reproducible builds, private repository support, and comprehensive CI/CD integration.
-
## Why Choose EasyP?
### For Individual Developers
-- **Quick Setup**: Get started with protobuf projects in minutes, not hours
-- **Unified Workflow**: One tool for all your protobuf needs
-- **Clear Documentation**: Comprehensive guides and examples
+- **Zero `protoc` setup**: Install one binary and start linting, checking compatibility, and generating code in minutes
+- **Unified Workflow**: One consistent CLI across all protobuf tasks
+- **Clear Diagnostics**: Exact file, line, and column diagnostics for syntax, lint, breaking, and config validation
### For Teams
-- **Consistent Standards**: Enforced linting rules and formatting across all projects
-- **Reproducible Builds**: Lock files ensure everyone builds the same way
-- **Easy Onboarding**: New team members can be productive immediately
+- **Consistent Standards**: Share organization-wide lint and breaking policies via Git modules (`extends`)
+- **Reproducible Builds**: `protobuf.lock` and `--frozen` keep laptops and CI in sync
+- **Multi-Language Ready**: Mix built-in WASM, local `path`/`command`, and remote plugins in one `easyp.gen.yaml`
### For Organizations
-- **No Vendor Lock-in**: Git-based dependencies work with your existing infrastructure
-- **Enterprise Security**: Support for private repositories and custom authentication
-- **CI/CD Ready**: Designed for automated workflows and continuous integration
+- **No Vendor Lock-in**: Git-native modules work with existing private repositories and air-gapped networks
+- **Self-Hostable Plugin Service**: Run your own [EasyP API Service](/docs/api-service/overview) for internal plugins
+- **CI/CD Native**: Built for automated verification with [GitHub Actions](/docs/ci-cd/github-actions) and [GitLab CI](/docs/ci-cd/gitlab)
## What's Next?
-EasyP simplifies protobuf development so you can focus on building great APIs instead of managing toolchain complexity. Whether you're starting a new project or migrating from existing tools, EasyP provides a smooth path to modern protobuf development.
-
-Ready to get started? Check out our [Installation Guide](/docs/introduction/install) and [Quickstart Tutorial](/docs/introduction/quickstart).
-
-## Stargazers over time
-[](https://starchart.cc/easyp-tech/easyp)
+Ready to get started? Continue with the [Installation Guide](/docs/introduction/install) and [Quickstart Tutorial](/docs/introduction/quickstart), or check the [Roadmap](/roadmap) to see what is coming next.
diff --git a/content/docs/introduction/what-is.ru.mdx b/content/docs/introduction/what-is.ru.mdx
index bf5c322..c1ec952 100644
--- a/content/docs/introduction/what-is.ru.mdx
+++ b/content/docs/introduction/what-is.ru.mdx
@@ -1,135 +1,140 @@
---
title: "Что такое EasyP?"
+description: "Обзор EasyP v1: pure-Go компилятор easyprotoc, Git-зависимости, линтинг, проверка совместимости и генерация кода."
---
-EasyP — это современный инструментарий для работы с Protocol Buffers, который объединяет весь ваш protobuf‑workflow в один мощный CLI‑инструмент. Он совмещает линтинг, управление пакетами, генерацию кода и проверку совместимости в единой среде и устраняет сложность традиционной работы с protobuf.
+EasyP — современный инструментарий для Protocol Buffers, объединяющий весь рабочий процесс в один CLI (`easyp`) и дополнительный MCP-сервер (`easyp-mcp`). Он совмещает встроенный pure-Go компилятор, линтинг, Git-нативный менеджер пакетов, генерацию кода и проверку совместимости API.
-Хотите просто попробовать? Перейдите сразу к разделу [Quickstart](/ru/docs/introduction/quickstart).
+Хотите сразу попробовать? Переходите к [Быстрому старту](/ru/docs/introduction/quickstart) или откройте [Каталог плагинов](/ru/plugins).
-## Проблема: фрагментированные protobuf‑процессы
+## Проблема: фрагментированные protobuf-процессы
-Работа с Protocol Buffers в разных проектах часто создает лишнюю сложность и трение:
+Работа с Protocol Buffers в командах часто создаёт лишнюю сложность:
### Хаос инструментов
-- **Много отдельных утилит**: Отдельно для линтинга, генерации и управления зависимостями
-- **Несогласованные конфигурации**: Разные форматы и правила в разных командах
-- **Сложный онбординг**: Новым разработчикам нужно долго вникать
+- **Много отдельных утилит**: Разные бинарники для `protoc`, линтинга, проверки совместимости, генерации и синхронизации схем
+- **Несогласованные конфигурации**: Самописные shell-скрипты и разные флаги в каждом сервисе
+- **Сложный онбординг**: Разработчикам приходится вручную ставить совпадающие версии `protoc` и плагинов до первой сборки
### Проблемы управления зависимостями
-- **Нет стандартизированного подхода**: Каждый проект решает это по‑своему
-- **Конфликты версий**: Трудно сводить разные версии одних и тех же proto‑библиотек
-- **Неповторяемость сборок**: Сложно гарантировать одинаковый результат в разных окружениях
+- **Нет единого стандарта**: Проекты копируют `.proto`-файлы вручную или опираются на хрупкие Git submodules
+- **Конфликты версий**: Трудно согласовать транзитивные зависимости между командами
+- **Неповторяемость сборок**: Локальное окружение и CI собирают разные дескрипторы и код
-### Трение в разработке
-- **Ручные операции**: Много повторяющихся шагов
-- **Разрастание конфигураций**: Множество файлов и форматов
-- **Затратная проверка совместимости**: Часто вручную и постфактум
+### Риски совместимости и привязка к вендору
+- **Ручное ревью**: Ломающие изменения API проходят без автоматической проверки относительно Git-базы
+- **Привязка к внешнему реестру**: Командам приходится переносить контракты во внешний реестр, хотя код уже живёт в Git
-## Решение: единый protobuf‑инструментарий
+## Решение: EasyP v1
-EasyP устраняет эти проблемы, предоставляя целостный opinionated‑подход и стандартизируя процессы:
+EasyP заменяет разрозненные скрипты вокруг `protoc` цельной архитектурой v1 на четырёх опорах:
-### Один инструмент — все задачи
-Вместо жонглирования утилитами EasyP даёт:
-- **Linting** с расширенными наборами правил
-- **Package management** с Git‑нативными зависимостями
-- **Code generation** локально и удалённо
-- **Breaking change detection** для контроля совместимости API
+### Встроенный pure-Go компилятор (`easyprotoc`)
+EasyP v1 компилирует `.proto`-файлы собственным pure-Go компилятором **`easyprotoc`** (`v0.1.1`) — **установка `protoc` не требуется**, а сторонние обёртки (`protocompile`, `go-protoparser`) больше не нужны:
+- Формирует `FileDescriptorSet`, эквивалентный выводу `protoc` (проверяется на всём корпусе `googleapis` в CI), включая source info, комментарии и пользовательские опции
+- Поставляется со встроенными стандартными типами `google/protobuf/*.proto`
+- Поддерживает **proto2**, **proto3** и **Protobuf Editions 2023**
+- Компилирует файлы параллельно на всех ядрах CPU (например, компиляция всех 7 416 файлов `googleapis` с `--include_imports --include_source_info` занимает ~0,88 с против ~3,83 с у `protoc` на Apple M5 Pro)
-### Единая конфигурация
-Один файл `easyp.yaml` описывает весь workflow — меньше расхождений, проще сопровождать.
+### Чёткое разделение конфигурационных файлов
+Вместо одного перегруженного файла EasyP v1 разделяет ответственность между тремя понятными файлами и lock-файлом:
+- **`protobuf.mod`** (+ **`protobuf.lock`**) — идентификатор модуля, корни исходников `roots`, Git-зависимости `require` с разрешением версий по MVS и локальные подмены `replace`
+- **`easyp.yaml`** — политики линтинга (`44` встроенных правила) и проверки совместимости (`69` правил в профилях `FILE`, `PACKAGE`, `WIRE_JSON`, `WIRE`)
+- **`easyp.gen.yaml`** — цели генерации (`modules`, `paths`, `packages`), managed mode и список `plugins`
-### Git‑native зависимости
-Прямое использование Git‑репозиториев вместо централизованных реестров: прозрачная история, контроль версий, воспроизводимые сборки.
+### Git-нативные зависимости
+Любой Git-репозиторий (GitHub, GitLab, Bitbucket или корпоративный self-hosted Git) работает как модуль protobuf напрямую. EasyP проверяет полные SHA коммитов и селективные хеши `dirhash.Hash1` в `protobuf.lock`, а флаг `--frozen` в CI гарантирует воспроизводимость без изменений файлов.
+
+### Поддержка ИИ-агентов через `easyp-mcp`
+Архивы релизов, формула Homebrew и сборка через Go также включают `easyp-mcp` — stdio-сервер Model Context Protocol с инструментом `easyp_config_describe`, работающим на тех же JSON Schema, что и `easyp validate-config`.
## Ключевые возможности
-| Feature | Description |
-|---------|-------------|
-| 🔍 **Comprehensive Linting** | Полная поддержка правил buf с настраиваемыми профилями для лучших практик API‑дизайна. |
-| 📦 **Smart Package Manager** | Git‑ориентированное управление зависимостями с lock‑файлом для воспроизводимости. |
-| ⚡ **Code Generation** | Многозадачная генерация кода с поддержкой локальных и удалённых protoc‑плагинов. |
-| 🔄 **Breaking Change Detection** | Автоматическая проверка совместимости API против веток Git. |
-| 🌐 **Remote Plugin Support** | Выполнение плагинов через централизованный EasyP API сервис без локальных установок. |
-| 🎯 **Developer Experience** | Автодополнение, понятные ошибки, единая структура и документация. |
+| Возможность | Описание |
+|-------------|----------|
+| **Встроенный компилятор `easyprotoc`** | Pure-Go компилятор `.proto` без `protoc`, со встроенными well-known типами и поддержкой Protobuf Editions 2023. |
+| **Линтинг API** | 44 правила в группах `MINIMAL`, `BASIC`, `DEFAULT`, `COMMENTS` и `UNARY_RPC` с переиспользуемыми политиками через `extends`. |
+| **Проверка breaking changes** | 69 правил на базе дескрипторов в профилях `FILE`, `PACKAGE`, `WIRE_JSON` и `WIRE` относительно любой ветки, тега или коммита Git. |
+| **Git-нативный менеджер пакетов** | Разрешение версий по MVS, `easyp get`, `mod tidy`/`download`/`update`/`vendor`, локальный `replace` и криптографическая проверка `protobuf.lock`. |
+| **Гибкая генерация кода** | 15 встроенных WASM-плагинов, локальные плагины (`name`, `path`, `command`) и удалённые плагины через EasyP API Service. |
+| **Удобство разработки и агентов** | `easyp validate-config`, вывод `--format json`, автодополнение bash/zsh и stdio-сервер `easyp-mcp`. |
-## Типы поддерживаемых плагинов
+## Поддерживаемые источники плагинов
-EasyP гибко подходит к выполнению генерации:
+В `easyp.gen.yaml` каждый элемент `plugins:` задаёт ровно один из четырёх источников запуска:
-### Local Plugins
-Стандартные установленные protoc‑плагины:
+### Локальные и встроенные WASM-плагины (`name:`)
+Запускает `protoc-gen-` из `PATH` или использует один из **15 встроенных WASM-плагинов** (`cpp`, `csharp`, `java`, `kotlin`, `objc`, `php`, `python`, `ruby` и их gRPC-пары `grpc_*`):
```yaml
+version: v1
plugins:
- - name: go
- out: .
- opts:
- paths: source_relative
+ - name: python
+ out: ./gen/python
```
-### Remote Plugins
-Плагины через EasyP API сервис для воспроизводимости:
+### Явный путь к бинарнику (`path:`)
+Запускает указанный исполняемый файл (относительные пути разрешаются от рабочего каталога запуска `easyp generate`):
```yaml
+version: v1
plugins:
- - remote: api.easyp.tech/protoc-gen-typescript:latest
- out: ./web/generated
+ - path: ./tools/bin/protoc-gen-custom
+ out: ./gen/custom
```
-### Custom Plugins
-Поддержка экосистемы пользовательских расширений.
+### Команда с аргументами (`command:`)
+Запускает обёртку, интерпретатор или команду запуска вроде `go run` или `npx`:
+```yaml
+version: v1
+plugins:
+ - command: ["go", "run", "./cmd/protoc-gen-internal"]
+ out: ./gen/internal
+```
-## Децентрализованный менеджмент пакетов
+### Удалённые плагины (`remote:` + `version:`)
+Выполняет зафиксированные версии плагинов через [`plugins.easyp.tech`](/ru/plugins) или собственный [EasyP API Service](/ru/docs/api-service/overview) без локальной установки плагинов:
+```yaml
+version: v1
+plugins:
+ - remote: plugins.easyp.tech/protocolbuffers/go
+ version: v1.36.11
+ out: ./gen/go
+ opts:
+ paths: source_relative
+```
+
+## Децентрализованное управление пакетами
-В отличие от других решений EasyP не требует централизованного реестра. Любой Git‑репозиторий может быть источником:
+В отличие от инструментов, привязанных к централизованному реестру, любой Git-репозиторий может служить источником модулей:
-- **Гибкость**: Любой Git‑хостинг (GitHub, GitLab, self‑hosted)
-- **Нет vendor lock‑in**: Зависимости не привязаны к одному провайдеру
-- **Полная история**: Ветки, теги, ревью
-- **Enterprise‑совместимость**: Поддержка приватных репозиториев
+- **Гибкость и контроль**: Работает с GitHub, GitLab, Bitbucket и закрытыми корпоративными Git-серверами
+- **Нет привязки к вендору**: Контракты остаются в ваших репозиториях под существующими правами доступа и процессом ревью
+- **Воспроизводимость по умолчанию**: `protobuf.lock` фиксирует полные SHA коммитов и хеши содержимого, которые проверяются флагом `--frozen` в CI
## Зависимости с конфигурацией Buf
-Проект EasyP v1 объявляет Git-зависимости в `protobuf.mod`. Если Git-зависимость использует конфигурацию Buf v1 или v2, EasyP читает её корни `.proto` для разрешения импортов. Старые конфиги EasyP в зависимостях поддерживаются таким же образом. Проект-потребитель использует отдельные `protobuf.mod`, `easyp.gen.yaml` и `easyp.yaml`.
+Проект EasyP v1 объявляет Git-зависимости в `protobuf.mod`. Если Git-зависимость использует конфигурацию Buf v1, v1beta1 или v2 (`buf.yaml` / `buf.work.yaml`), EasyP автоматически читает её корни исходников, фильтры `includes`/`excludes` и поддерживаемые сопоставления BSR. Старые репозитории с конфигом EasyP v0 поддерживаются аналогично, а сам проект-потребитель использует нативные файлы `protobuf.mod`, `easyp.gen.yaml` и `easyp.yaml`.
Поддерживаемые форматы и ограничения описаны на странице [Git-зависимостей с конфигом Buf](/ru/docs/cli/package-manager/easyp-vs-buf).
-## Наши цели для Protobuf
-
-Миссия EasyP — ускорить принятие **schema‑driven API** через удобный, надёжный и прозрачный инструментарий.
-
-### Современная экосистема
-Повышаем DX вокруг protobuf, чтобы конкурентно выглядеть по простоте против REST/JSON, сохраняя типовую строгость и производительность.
-
-### Developer Experience прежде всего
-Интуитивный CLI, понятные ошибки, ясные сообщения, минимальная фрагментация.
+## Почему выбирают EasyP?
-### Готов к Enterprise
-Воспроизводимые сборки, приватные репозитории, интеграция в CI/CD.
-
-## Почему EasyP?
-
-### Для индивидуальных разработчиков
-- Быстрый старт за минуты
-- Один инструмент — меньше когнитивной нагрузки
-- Понятная документация
+### Для разработчиков
+- **Без установки `protoc`**: Один бинарник для компиляции, линтинга, проверки совместимости и генерации за минуты
+- **Единый процесс**: Согласованный CLI для всех задач с Protobuf
+- **Точная диагностика**: Файл, строка и столбец для ошибок синтаксиса, линтинга, совместимости и конфигурации
### Для команд
-- Единые стандарты
-- Повторяемые сборки (lock‑файл)
-- Ускоренный онбординг
+- **Единые стандарты**: Переиспользуйте корпоративные политики линтинга и breaking-проверок через Git-модули (`extends`)
+- **Воспроизводимые сборки**: `protobuf.lock` и `--frozen` синхронизируют локальные машины и CI
+- **Мультиязычная генерация**: Комбинируйте встроенные WASM-, локальные (`path`/`command`) и удалённые плагины в одном `easyp.gen.yaml`
### Для организаций
-- Нет vendor lock‑in
-- Безопасность приватных репозиториев
-- Лёгкая интеграция в существующие пайплайны
+- **Нет vendor lock-in**: Git-нативные модули работают с приватными репозиториями и закрытыми контурами
+- **Собственный сервис плагинов**: Разверните [EasyP API Service](/ru/docs/api-service/overview) для внутренних плагинов
+- **Готовность к CI/CD**: Простая интеграция с [GitHub Actions](/ru/docs/ci-cd/github-actions) и [GitLab CI](/ru/docs/ci-cd/gitlab)
## Что дальше?
-EasyP упрощает работу с protobuf — фокусируйтесь на API, а не на рутине. Хотите начать?
-
-Смотрите [Installation Guide](/ru/docs/introduction/install) и [Quickstart](/ru/docs/introduction/quickstart).
-
-## Stargazers over time
-[](https://starchart.cc/easyp-tech/easyp)
+Готовы начать? Переходите к [руководству по установке](/ru/docs/introduction/install) и [Быстрому старту](/ru/docs/introduction/quickstart), либо посмотрите [дорожную карту](/ru/roadmap).
diff --git a/content/docs/meta.ru.json b/content/docs/meta.ru.json
new file mode 100644
index 0000000..20ba198
--- /dev/null
+++ b/content/docs/meta.ru.json
@@ -0,0 +1,15 @@
+{
+ "title": "Документация",
+ "pages": [
+ "index",
+ "introduction",
+ "cli",
+ "api-service",
+ "guides",
+ "reference",
+ "architecture",
+ "migration",
+ "ci-cd",
+ "blog"
+ ]
+}
diff --git a/content/docs/migration/buf-cli.mdx b/content/docs/migration/buf-cli.mdx
index fa90c61..f0964c1 100644
--- a/content/docs/migration/buf-cli.mdx
+++ b/content/docs/migration/buf-cli.mdx
@@ -1,5 +1,77 @@
---
-title: "Buf CLI"
+title: "Migrating from Buf CLI"
+description: "Quick migration checklist from Buf CLI (buf.yaml, buf.gen.yaml, buf.lock) to EasyP v1."
---
-## Work in progress
+EasyP v1 replaces `buf.yaml`, `buf.gen.yaml`, and `buf.lock` with three focused native files (`protobuf.mod`, `easyp.yaml`, and `easyp.gen.yaml`) plus `protobuf.lock`. EasyP compiles `.proto` files with its built-in pure-Go `easyprotoc` compiler (no `protoc` required) and works directly with Git repositories instead of requiring a hosted schema registry.
+
+
+`easyp migrate` is designed for migrating **EasyP v0** configurations (`easyp.yaml` + `easyp.lock`). Projects currently on Buf CLI migrate by creating native v1 files directly as shown below and in the [step-by-step Buf migration guide](/docs/guides/buf-migration).
+
+
+## File and command mapping
+
+| Buf CLI | EasyP v1 | Notes |
+| --- | --- | --- |
+| `buf.yaml` (`modules`, `deps`) | `protobuf.mod` | Canonical Git `module`, `roots`, `require`, and local `replace` directives |
+| `buf.lock` | `protobuf.lock` | Locked Git commit SHAs, selective `dirhash.Hash1` digests, and BSR compatibility bindings |
+| `buf.yaml` (`lint`, `breaking`) | `easyp.yaml` | 44 lint rules (`MINIMAL`/`BASIC`/`STANDARD`/`COMMENTS`) and 69 breaking rules (`FILE`/`PACKAGE`/`WIRE_JSON`/`WIRE`) |
+| `buf.gen.yaml` | `easyp.gen.yaml` | `generate` (`modules`, `paths`, `packages`, `managed`), `options.go.package_prefix`, and `plugins` (`name`/`path`/`command`/`remote`) |
+| `buf dep update` | `easyp mod tidy` | Reconciles `protobuf.mod` via MVS and writes `protobuf.lock` |
+| `buf lint` | `easyp lint` | Runs effective `easyp.yaml` lint policy |
+| `buf breaking --against .git#branch=main` | `easyp breaking --against main` | Compares against any local Git branch, tag, or commit SHA |
+| `buf generate` | `easyp generate` (`easyp g`) | Runs plugins for the nearest `easyp.gen.yaml` (`--project`, `--all`, or `--config `) |
+
+## Quick checklist
+
+1. **Create `protobuf.mod`** for each module with its canonical Git identity, source `roots`, and Git `require` entries:
+
+```text
+module github.com/acme/contracts
+roots proto
+
+require (
+ github.com/googleapis/googleapis 03a91044136a014466d4293eb1fe91f2b02075d2
+)
+```
+
+Upstream Git repositories that still use Buf v1, v1beta1, or v2 (`buf.yaml` / `buf.work.yaml`, including `includes`/`excludes` filters and 5 commonly used BSR modules via `bsr.StaticResolver`) can be consumed directly without rewriting them. See [Buf-configured Git dependencies](/docs/cli/package-manager/easyp-vs-buf).
+
+2. **Create `easyp.yaml`** for lint and breaking policies:
+
+```yaml
+version: v1
+linters:
+ default: STANDARD
+breaking:
+ baseline: git:main
+ categories: [FILE]
+```
+
+3. **Create `easyp.gen.yaml`** for code generation (use `generate.paths`, `generate.packages`, or `{ module, paths, packages }` entries under `generate.modules` to mirror Buf path/package filters):
+
+```yaml
+version: v1
+generate:
+ modules: [github.com/acme/contracts]
+plugins:
+ - remote: plugins.easyp.tech/protocolbuffers/go
+ version: v1.36.11
+ out: ./gen/go
+ opts:
+ paths: source_relative
+```
+
+4. **Resolve, validate, and verify** before removing `buf.*`:
+
+```bash
+easyp mod tidy
+easyp validate-config
+easyp lint
+easyp breaking --against main
+easyp generate
+```
+
+5. **Enforce lockfiles in CI** with `--frozen` (`easyp mod download --frozen`, `easyp lint --frozen`, `easyp breaking --frozen --against "$BASE_REF"`, `easyp generate --frozen`).
+
+For the full walkthrough including managed mode and multi-module workspaces, see the [Migrating from Buf to EasyP guide](/docs/guides/buf-migration).
diff --git a/content/docs/migration/buf-cli.ru.mdx b/content/docs/migration/buf-cli.ru.mdx
index 3070068..47d1653 100644
--- a/content/docs/migration/buf-cli.ru.mdx
+++ b/content/docs/migration/buf-cli.ru.mdx
@@ -1,5 +1,77 @@
---
-title: "Buf CLI"
+title: "Миграция с Buf CLI"
+description: "Краткий чеклист перехода с Buf CLI (buf.yaml, buf.gen.yaml, buf.lock) на EasyP v1."
---
-## В работе
+EasyP v1 заменяет `buf.yaml`, `buf.gen.yaml` и `buf.lock` тремя специализированными файлами (`protobuf.mod`, `easyp.yaml`, `easyp.gen.yaml`) и `protobuf.lock`. EasyP компилирует `.proto` встроенным pure-Go компилятором `easyprotoc` (без установки `protoc`) и работает напрямую с Git-репозиториями без привязки к внешнему реестру схем.
+
+
+Команда `easyp migrate` предназначена для миграции проектов с **EasyP v0** (`easyp.yaml` + `easyp.lock`). Проекты на Buf CLI переходят путём создания нативных файлов v1 по шагам ниже и в [подробном руководстве по миграции с Buf](/ru/docs/guides/buf-migration).
+
+
+## Соответствие файлов и команд
+
+| Buf CLI | EasyP v1 | Примечание |
+| --- | --- | --- |
+| `buf.yaml` (`modules`, `deps`) | `protobuf.mod` | Канонический Git `module`, `roots`, `require` и локальные `replace` |
+| `buf.lock` | `protobuf.lock` | Зафиксированные SHA Git-коммитов, селективные хеши `dirhash.Hash1` и привязки BSR |
+| `buf.yaml` (`lint`, `breaking`) | `easyp.yaml` | 44 правила линтинга (`MINIMAL`/`BASIC`/`STANDARD`/`COMMENTS`) и 69 правил breaking (`FILE`/`PACKAGE`/`WIRE_JSON`/`WIRE`) |
+| `buf.gen.yaml` | `easyp.gen.yaml` | `generate` (`modules`, `paths`, `packages`, `managed`), `options.go.package_prefix` и `plugins` (`name`/`path`/`command`/`remote`) |
+| `buf dep update` | `easyp mod tidy` | Разрешает `protobuf.mod` по MVS и записывает `protobuf.lock` |
+| `buf lint` | `easyp lint` | Запускает эффективную политику линтинга из `easyp.yaml` |
+| `buf breaking --against .git#branch=main` | `easyp breaking --against main` | Сравнивает с любой локальной веткой, тегом или SHA коммита Git |
+| `buf generate` | `easyp generate` (`easyp g`) | Запускает плагины для ближайшего `easyp.gen.yaml` (`--project`, `--all` или `--config <файл>`) |
+
+## Краткий чеклист
+
+1. **Создайте `protobuf.mod`** для каждого модуля с каноническим Git-именем, корнями `roots` и Git-зависимостями `require`:
+
+```text
+module github.com/acme/contracts
+roots proto
+
+require (
+ github.com/googleapis/googleapis 03a91044136a014466d4293eb1fe91f2b02075d2
+)
+```
+
+Внешние Git-репозитории с конфигом Buf v1, v1beta1 или v2 (`buf.yaml` / `buf.work.yaml`, включая фильтры `includes`/`excludes` и 5 популярных BSR-модулей через `bsr.StaticResolver`) подключаются напрямую без переписывания исходного репозитория. См. [Git-зависимости с конфигом Buf](/ru/docs/cli/package-manager/easyp-vs-buf).
+
+2. **Создайте `easyp.yaml`** для политик линтинга и совместимости:
+
+```yaml
+version: v1
+linters:
+ default: STANDARD
+breaking:
+ baseline: git:main
+ categories: [FILE]
+```
+
+3. **Создайте `easyp.gen.yaml`** для кодогенерации (используйте `generate.paths`, `generate.packages` или объекты `{ module, paths, packages }` в `generate.modules` для точного переноса фильтров Buf):
+
+```yaml
+version: v1
+generate:
+ modules: [github.com/acme/contracts]
+plugins:
+ - remote: plugins.easyp.tech/protocolbuffers/go
+ version: v1.36.11
+ out: ./gen/go
+ opts:
+ paths: source_relative
+```
+
+4. **Разрешите зависимости и проверьте результат** до удаления `buf.*`:
+
+```bash
+easyp mod tidy
+easyp validate-config
+easyp lint
+easyp breaking --against main
+easyp generate
+```
+
+5. **Закрепите проверки в CI** флагом `--frozen` (`easyp mod download --frozen`, `easyp lint --frozen`, `easyp breaking --frozen --against "$BASE_REF"`, `easyp generate --frozen`).
+
+Полное пошаговое руководство с managed mode и мультимодульными проектами — на странице [Миграция с Buf на EasyP](/ru/docs/guides/buf-migration).
diff --git a/content/docs/migration/easyp-v0.mdx b/content/docs/migration/easyp-v0.mdx
index e1baa24..4d25b5d 100644
--- a/content/docs/migration/easyp-v0.mdx
+++ b/content/docs/migration/easyp-v0.mdx
@@ -130,7 +130,7 @@ Historical v0 archive verification remains a separate migration step. A valid hi
## Explicit limitations
-Invalid known fields, invalid or multi-document YAML, ambiguous source selection, unsupported references, and conflicting native outputs are rejected. Keys ignored by v0 are omitted with warnings and remain in the legacy backup. Custom Git-input roots/subdirectories, external or sliced local inputs whose exact selection cannot be preserved, unsafe managed selectors, and full lock conversion with local replacements may require manual migration. Buf configurations are not inputs to this v0 converter.
+Invalid known fields, invalid or multi-document YAML, ambiguous source selection, unsupported references, and conflicting native outputs are rejected. Keys ignored by v0 are omitted with warnings and remain in the legacy backup. External or sliced local inputs whose exact selection cannot be preserved, unsafe managed selectors, and full lock conversion with local replacements may require manual migration. Buf configurations are not inputs to this v0 converter.
The command stages all outputs and checks observed inputs again before applying. Ordinary application failures are rolled back. Several file replacements are not one process-crash-atomic transaction: after a machine or process failure, inspect the preserved backups and Git state before continuing. Uncooperative concurrent writers cannot be made safe by this command.
diff --git a/content/docs/migration/easyp-v0.ru.mdx b/content/docs/migration/easyp-v0.ru.mdx
index b992449..856a782 100644
--- a/content/docs/migration/easyp-v0.ru.mdx
+++ b/content/docs/migration/easyp-v0.ru.mdx
@@ -130,7 +130,7 @@ plugins:
## Явные ограничения
-Некорректные значения известных полей, некорректный YAML или несколько YAML-документов, неоднозначный набор исходников, неподдерживаемые refs и конфликтующие native-файлы отклоняются. Ключи, игнорировавшиеся в v0, пропускаются с предупреждениями и сохраняются в legacy-копии. Нестандартные root/sub_directory Git-input, внешние или частичные локальные inputs с непереносимой выборкой, неоднозначные managed selectors и полный перенос lock при локальных заменах могут потребовать ручной миграции. Buf-конфигурация не является входом этого v0-конвертера.
+Некорректные значения известных полей, некорректный YAML или несколько YAML-документов, неоднозначный набор исходников, неподдерживаемые refs и конфликтующие native-файлы отклоняются. Ключи, игнорировавшиеся в v0, пропускаются с предупреждениями и сохраняются в legacy-копии. Внешние или частичные локальные inputs с непереносимой выборкой, неоднозначные managed selectors и полный перенос lock при локальных заменах могут потребовать ручной миграции. Buf-конфигурация не является входом этого v0-конвертера.
Все результаты сначала подготавливаются, затем состояние входов проверяется повторно. Обычные ошибки применения вызывают откат. Несколько замен файлов не образуют общую транзакцию, атомарную при падении процесса или компьютера: после такого сбоя нужно проверить резервные копии и Git-состояние. Команда не гарантирует безопасность при записи файлов посторонними несогласованными процессами.
diff --git a/content/docs/migration/meta.ru.json b/content/docs/migration/meta.ru.json
new file mode 100644
index 0000000..912e4f9
--- /dev/null
+++ b/content/docs/migration/meta.ru.json
@@ -0,0 +1,10 @@
+{
+ "title": "Миграция",
+ "pages": [
+ "easyp-v0",
+ "buf-cli",
+ "protoc",
+ "protolock",
+ "prototool"
+ ]
+}
diff --git a/content/docs/migration/protoc.mdx b/content/docs/migration/protoc.mdx
index f67e643..354acae 100644
--- a/content/docs/migration/protoc.mdx
+++ b/content/docs/migration/protoc.mdx
@@ -2,7 +2,7 @@
title: "Moving from protoc to EasyP v1"
---
-Map the existing source roots, plugins and checks to v1 explicitly. The easyp migrate command accepts EasyP v0 configuration, not arbitrary scripts or another tool's configuration. Keep the original inputs and generated output for comparison.
+Map the existing source roots, plugins and checks to v1 explicitly. EasyP v1 compiles `.proto` files with its built-in pure-Go `easyprotoc` compiler (including built-in `google/protobuf/*.proto` well-known types and Protobuf Editions 2023), so you no longer need to install `protoc` itself. The easyp migrate command accepts EasyP v0 configuration, not arbitrary scripts or another tool's configuration. Keep the original inputs and generated output for comparison.
## Module and source roots
@@ -13,7 +13,7 @@ module github.com/acme/contracts
roots proto
~~~
-A file at proto/hello/v1/hello.proto has the import name hello/v1/hello.proto. If the previous invocation selected only part of a root, do not silently broaden it: v1 generates complete selected modules.
+A file at proto/hello/v1/hello.proto has the import name hello/v1/hello.proto. If your previous protoc invocation compiled only a subset of files or subdirectories under a root, preserve that exact scope in easyp.gen.yaml using generate.paths, generate.packages, or module objects (`{ module, paths, packages }`) under generate.modules without changing import roots.
## Generation
diff --git a/content/docs/migration/protoc.ru.mdx b/content/docs/migration/protoc.ru.mdx
index 2b6c12a..d4d3be7 100644
--- a/content/docs/migration/protoc.ru.mdx
+++ b/content/docs/migration/protoc.ru.mdx
@@ -2,7 +2,7 @@
title: "Переход с protoc на EasyP v1"
---
-Это ручное сопоставление существующих исходников, плагинов и правил с v1. Команда easyp migrate принимает конфигурацию EasyP v0, а не произвольные скрипты или конфигурацию другого инструмента. Сохраните исходные файлы и результаты прежней генерации для сравнения.
+Это ручное сопоставление существующих исходников, плагинов и правил с v1. EasyP v1 компилирует `.proto`-файлы встроенным pure-Go компилятором `easyprotoc` (со встроенными `google/protobuf/*.proto` и поддержкой Protobuf Editions 2023), поэтому сам `protoc` больше не требуется. Команда easyp migrate принимает конфигурацию EasyP v0, а не произвольные скрипты или конфигурацию другого инструмента. Сохраните исходные файлы и результаты прежней генерации для сравнения.
## Модуль и исходники
@@ -13,7 +13,7 @@ module github.com/acme/contracts
roots proto
~~~
-Путь proto/hello/v1/hello.proto имеет import-имя hello/v1/hello.proto. Если прежний запуск выбирал только часть корня, не переносите его механически на весь модуль: v1 генерирует целые выбранные модули.
+Путь proto/hello/v1/hello.proto имеет import-имя hello/v1/hello.proto. Если прежний вызов protoc компилировал только часть файлов или подкаталогов внутри корня, сохраните ту же выборку в easyp.gen.yaml через generate.paths, generate.packages или объекты (`{ module, paths, packages }`) в generate.modules, не меняя корни импортов.
## Генерация
@@ -61,4 +61,4 @@ easyp generate
Указанный baseline должен быть доступен локально. Сравните с прежней генерацией имена файлов, import paths и содержимое, затем соберите и протестируйте потребляющий проект. Не удаляйте прежние скрипты до этого сравнения. Для нескольких проектов используйте повторяемый --project или явно разрешённый --all.
-Если исходный проект уже использует EasyP v0, начните с [предварительного просмотра миграции](/docs/migration/easyp-v0).
+Если исходный проект уже использует EasyP v0, начните с [предварительного просмотра миграции](/ru/docs/migration/easyp-v0).
diff --git a/content/docs/migration/protolock.mdx b/content/docs/migration/protolock.mdx
index c072948..4bc291e 100644
--- a/content/docs/migration/protolock.mdx
+++ b/content/docs/migration/protolock.mdx
@@ -1,5 +1,60 @@
---
-title: "Protolock"
+title: "Moving from protolock to EasyP v1"
+description: "Replace committed proto.lock snapshots with Git-backed breaking change detection in EasyP v1."
---
-## Work in progress
+`protolock` detects breaking changes by committing and updating a JSON `proto.lock` snapshot alongside your `.proto` files. EasyP v1 replaces that extra lock snapshot with direct descriptor-backed Git comparisons across **69 breaking rules** in four compatibility profiles (`FILE`, `PACKAGE`, `WIRE_JSON`, and `WIRE`).
+
+## Concept mapping
+
+| `protolock` | EasyP v1 | Notes |
+| --- | --- | --- |
+| `protolock init` / `proto.lock` | Git history (`breaking.baseline`) | Compares against any local branch, tag, or commit SHA — no `proto.lock` file to maintain |
+| `protolock status` | `easyp breaking` | Checks compatibility against `breaking.baseline` or `--against [` |
+| `protolock commit` | Normal `git commit` / merge | Once merged into the baseline branch (e.g. `main`), it becomes the new baseline automatically |
+| `protolock status --uptodate` | CI `easyp breaking --frozen --against "$BASE_REF"` | Fails pull requests on breaking changes while enforcing the committed `protobuf.lock` |
+
+## 1. Configure `protobuf.mod` and `easyp.yaml`
+
+Declare your module root in `protobuf.mod`:
+
+```text
+module github.com/acme/contracts
+roots proto
+```
+
+Configure the breaking baseline and compatibility profile in `easyp.yaml`:
+
+```yaml
+version: v1
+breaking:
+ baseline: git:main
+ categories: [FILE]
+ ignore_unstable: false
+```
+
+- Use `FILE` (the default) for full source and generated-code compatibility, `PACKAGE` to allow moving declarations between files in the same package, `WIRE_JSON` for binary + JSON wire compatibility, or `WIRE` for binary wire compatibility only.
+- Use `breaking.ignore` (paths relative to `easyp.yaml`) to exclude experimental or internal subtrees.
+
+## 2. Verify locally and in CI
+
+Prepare `protobuf.lock` once with `easyp mod tidy`, commit `protobuf.mod`, `protobuf.lock`, and `easyp.yaml`, then run:
+
+```bash
+easyp validate-config
+easyp breaking --against main
+```
+
+In CI, fetch full Git history (`fetch-depth: 0` or `GIT_DEPTH: "0"`) and pass `--frozen` so the pipeline checks compatibility against the target branch or PR base commit without modifying files:
+
+```bash
+easyp validate-config
+easyp mod download --frozen
+easyp breaking --frozen --against origin/main
+```
+
+## 3. Retire `proto.lock`
+
+Run `easyp breaking` alongside `protolock status` for a few pull requests to confirm rule coverage matches your team's compatibility guarantees, then remove `proto.lock` and the `protolock` CI job.
+
+See the [Breaking changes reference](/docs/cli/breaking-changes) and [Breaking checks in CI](/docs/guides/breaking-checks-ci) for full rule profiles and workflow examples.
diff --git a/content/docs/migration/protolock.ru.mdx b/content/docs/migration/protolock.ru.mdx
index 17cf2a1..b57ddb5 100644
--- a/content/docs/migration/protolock.ru.mdx
+++ b/content/docs/migration/protolock.ru.mdx
@@ -1,5 +1,60 @@
---
-title: "Protolock"
+title: "Переход с protolock на EasyP v1"
+description: "Замена файла proto.lock на проверку breaking changes по истории Git в EasyP v1."
---
-## В процессе разработки
+`protolock` отслеживает ломающие изменения, храня и обновляя JSON-снимок `proto.lock` рядом с `.proto`-файлами. EasyP v1 заменяет этот дополнительный снимок прямым сравнением дескрипторов по истории Git по **69 правилам совместимости** в четырёх профилях (`FILE`, `PACKAGE`, `WIRE_JSON` и `WIRE`).
+
+## Соответствие концепций
+
+| `protolock` | EasyP v1 | Примечание |
+| --- | --- | --- |
+| `protolock init` / `proto.lock` | История Git (`breaking.baseline`) | Сравнение с любой локальной веткой, тегом или SHA коммита — файл `proto.lock` больше не нужен |
+| `protolock status` | `easyp breaking` | Проверка совместимости относительно `breaking.baseline` или `--against ][` |
+| `protolock commit` | Обычный `git commit` / merge | После слияния в базовую ветку (например `main`) новая схема автоматически становится базой |
+| `protolock status --uptodate` | CI `easyp breaking --frozen --against "$BASE_REF"` | Блокирует PR при ломающих изменениях и проверяет зафиксированный `protobuf.lock` |
+
+## 1. Настройте `protobuf.mod` и `easyp.yaml`
+
+Объявите корень модуля в `protobuf.mod`:
+
+```text
+module github.com/acme/contracts
+roots proto
+```
+
+Задайте базовую ветку и профиль совместимости в `easyp.yaml`:
+
+```yaml
+version: v1
+breaking:
+ baseline: git:main
+ categories: [FILE]
+ ignore_unstable: false
+```
+
+- Выберите `FILE` (по умолчанию) для полной совместимости исходников и сгенерированного кода, `PACKAGE` для разрешения переноса объявлений между файлами одного пакета, `WIRE_JSON` для бинарной + JSON-совместимости или `WIRE` только для бинарной совместимости.
+- Поле `breaking.ignore` (пути относительно `easyp.yaml`) исключает экспериментальные или внутренние подкаталоги.
+
+## 2. Проверьте локально и в CI
+
+Один раз создайте `protobuf.lock` командой `easyp mod tidy`, закоммитьте `protobuf.mod`, `protobuf.lock` и `easyp.yaml`, затем выполните:
+
+```bash
+easyp validate-config
+easyp breaking --against main
+```
+
+В CI выгружайте полную историю Git (`fetch-depth: 0` или `GIT_DEPTH: "0"`) и передавайте `--frozen`, чтобы проверять совместимость относительно целевой ветки или базового коммита PR без изменения файлов:
+
+```bash
+easyp validate-config
+easyp mod download --frozen
+easyp breaking --frozen --against origin/main
+```
+
+## 3. Удалите `proto.lock`
+
+Запускайте `easyp breaking` параллельно с `protolock status` на нескольких pull request, чтобы убедиться в покрытии требований команды, после чего удалите `proto.lock` и старый шаг `protolock` в CI.
+
+Подробнее о профилях и правилах — в [справочнике breaking changes](/ru/docs/cli/breaking-changes) и руководстве [Breaking-проверки в CI](/ru/docs/guides/breaking-checks-ci).
diff --git a/content/docs/migration/prototool.mdx b/content/docs/migration/prototool.mdx
index 4d6480b..0d6e89b 100644
--- a/content/docs/migration/prototool.mdx
+++ b/content/docs/migration/prototool.mdx
@@ -1,64 +1,83 @@
---
title: "Moving from prototool to EasyP v1"
+description: "Translate prototool.yaml (protoc, lint, break, and generate sections) to EasyP v1."
---
-Map the existing source roots, plugins and checks to v1 explicitly. The ]easyp migrate command accepts EasyP v0 configuration, not arbitrary scripts or another tool's configuration. Keep the original inputs and generated output for comparison.
+`prototool` combined `protoc` downloading, linting, breaking checks, and code generation in a single `prototool.yaml`. EasyP v1 replaces `prototool.yaml` with three focused files (`protobuf.mod`, `easyp.yaml`, and `easyp.gen.yaml`) and compiles `.proto` files directly with its built-in pure-Go `easyprotoc` compiler — no `protoc` download or version pinning is required.
-## Module and source roots
+## Mapping `prototool.yaml` to EasyP v1
-protobuf.mod:
+| `prototool.yaml` section | EasyP v1 equivalent | Notes |
+| --- | --- | --- |
+| `protoc.version` | Not needed | EasyP embeds the pure-Go `easyprotoc` compiler and standard `google/protobuf/*.proto` well-known types |
+| `protoc.includes` / `excludes` | `protobuf.mod` (`roots`, `require`) & `easyp.gen.yaml` (`generate.paths`) | External protos become Git `require` entries; sub-directory selection uses `generate.paths` |
+| `lint.group`, `lint.rules.add`/`remove`, `lint.ignores` | `easyp.yaml` (`linters.default`, `enable`, `disable`, `issues.exclude-rules`) | Map individual rules by name; presets (`MINIMAL`, `BASIC`, `STANDARD`, `COMMENTS`) differ from `uber2` |
+| `break.descriptor_set` / `prototool break check` | `easyp.yaml` (`breaking.baseline`, `categories`, `ignore`) + `easyp breaking` | Compares directly against Git branches, tags, or commit SHAs across `FILE`, `PACKAGE`, `WIRE_JSON`, and `WIRE` |
+| `generate.go_options` | `easyp.gen.yaml` (`options.go.package_prefix` or `generate.managed`) | Controls `go_package` without editing `.proto` files |
+| `generate.plugins` | `easyp.gen.yaml` (`plugins[]`) | Supports `name` (local `PATH` or 15 built-in WASM plugins), `path`, `command`, or `remote` + `version` |
-~~~text
-module github.com/acme/contracts
-roots proto
-~~~
-
-A file at proto/hello/v1/hello.proto has the import name hello/v1/hello.proto. If the previous invocation selected only part of a root, do not silently broaden it: v1 generates complete selected modules.
-
-## Generation
-
-easyp.gen.yaml:
+## 1. Declare roots and dependencies in `protobuf.mod`
-~~~yaml
-version: v1
-plugins:
- - name: go
- out: gen/go
- opts: [paths=source_relative]
- - name: go-grpc
- out: gen/go
- opts: [paths=source_relative]
-~~~
+Replace `protoc.includes` and vendored third-party directories with `roots` and Git `require` entries:
-Pin the actual plugin executables in the environment. Preserve existing go_package values and align them with the physical output. Set with_imports: true per plugin when imported contracts also need generated code; this is independent of descriptor export.
+```text
+module github.com/acme/contracts
+roots proto
-## Check policy
+require (
+ github.com/googleapis/googleapis 03a91044136a014466d4293eb1fe91f2b02075d2
+)
+```
-easyp.yaml:
+## 2. Translate lint and breaking rules to `easyp.yaml`
-~~~yaml
+```yaml
version: v1
linters:
- default: BASIC
+ default: STANDARD
+ disable:
+ - PACKAGE_VERSION_SUFFIX
+issues:
+ exclude-rules:
+ - path: proto/legacy
+ linters: [FIELD_LOWER_SNAKE_CASE]
breaking:
baseline: git:main
categories: [FILE]
-~~~
+```
+
+## 3. Translate `generate` to `easyp.gen.yaml`
+
+Replace `generate.go_options` and `generate.plugins` with `easyp.gen.yaml`. If `prototool.yaml` excluded directories or targeted a subset of files, use `generate.paths` or `generate.packages`:
-Map individual checks by their actual identifiers and results; similarly named presets in different tools do not prove equivalence. breaking.ignore contains paths, not rule names.
+```yaml
+version: v1
+generate:
+ paths: [proto/api]
+options:
+ go:
+ package_prefix: github.com/acme/contracts/gen/go
+plugins:
+ - name: go
+ out: ./gen/go
+ opts:
+ paths: source_relative
+ - name: go-grpc
+ out: ./gen/go
+ opts:
+ paths: source_relative
+```
-## Dependencies and result verification
+Install `protoc-gen-go` and `protoc-gen-go-grpc` on `PATH`, or switch them to hosted remote plugins (`remote: plugins.easyp.tech/protocolbuffers/go` + `version:`).
-Declare external dependencies with easyp get or manifest require directives. An arbitrary proto import does not uniquely identify a Git source. Run mod tidy for initial resolution and commit the lock; subsequent checks use mod download, not an implicit version update.
+## 4. Validate and compare output
-~~~bash
-easyp validate-config
+```bash
easyp mod tidy
+easyp validate-config
easyp lint
easyp breaking --against main
easyp generate
-~~~
-
-The selected baseline must exist locally. Compare filenames, import paths and contents with the old generator, then build and test the consumer. Keep the old scripts until this comparison succeeds. Multiple projects require repeated --project or explicit --all.
+```
-For an existing EasyP v0 project, start with the [migration preview](/docs/migration/easyp-v0).
+Diff generated files against your previous `prototool generate` output and run your consumer tests before removing `prototool.yaml`. For an existing EasyP v0 project, start with the [EasyP v0 migration guide](/docs/migration/easyp-v0).
diff --git a/content/docs/migration/prototool.ru.mdx b/content/docs/migration/prototool.ru.mdx
index 747b982..b1e0f66 100644
--- a/content/docs/migration/prototool.ru.mdx
+++ b/content/docs/migration/prototool.ru.mdx
@@ -1,64 +1,83 @@
---
title: "Переход с prototool на EasyP v1"
+description: "Перенос prototool.yaml (секции protoc, lint, break и generate) на EasyP v1."
---
-Это ручное сопоставление существующих исходников, плагинов и правил с v1. Команда easyp migrate принимает конфигурацию EasyP v0, а не произвольные скрипты или конфигурацию другого инструмента. Сохраните исходные файлы и результаты прежней генерации для сравнения.
+`prototool` объединял загрузку `protoc`, линтинг, проверку совместимости и генерацию кода в одном файле `prototool.yaml`. EasyP v1 разделяет эти задачи на три файла (`protobuf.mod`, `easyp.yaml`, `easyp.gen.yaml`) и компилирует `.proto` встроенным pure-Go компилятором `easyprotoc` — скачивать `protoc` и фиксировать его версию больше не нужно.
-## Модуль и исходники
+## Соответствие `prototool.yaml` и EasyP v1
-protobuf.mod:
+| Секция `prototool.yaml` | Эквивалент в EasyP v1 | Примечание |
+| --- | --- | --- |
+| `protoc.version` | Не требуется | В EasyP встроен pure-Go компилятор `easyprotoc` и стандартные типы `google/protobuf/*.proto` |
+| `protoc.includes` / `excludes` | `protobuf.mod` (`roots`, `require`) и `easyp.gen.yaml` (`generate.paths`) | Внешние схемы задаются через Git `require`; выборка подкаталогов — через `generate.paths` |
+| `lint.group`, `lint.rules.add`/`remove`, `lint.ignores` | `easyp.yaml` (`linters.default`, `enable`, `disable`, `issues.exclude-rules`) | Сопоставляйте правила по именам; пресеты (`MINIMAL`, `BASIC`, `STANDARD`, `COMMENTS`) отличаются от `uber2` |
+| `break.descriptor_set` / `prototool break check` | `easyp.yaml` (`breaking.baseline`, `categories`, `ignore`) + `easyp breaking` | Прямое сравнение с ветками, тегами и коммитами Git в профилях `FILE`, `PACKAGE`, `WIRE_JSON`, `WIRE` |
+| `generate.go_options` | `easyp.gen.yaml` (`options.go.package_prefix` или `generate.managed`) | Задаёт `go_package` без правки `.proto`-файлов |
+| `generate.plugins` | `easyp.gen.yaml` (`plugins[]`) | Поддерживает `name` (`PATH` или 15 встроенных WASM-плагинов), `path`, `command` и `remote` + `version` |
-~~~text
-module github.com/acme/contracts
-roots proto
-~~~
-
-Путь proto/hello/v1/hello.proto имеет import-имя hello/v1/hello.proto. Если прежний запуск выбирал только часть корня, не переносите его механически на весь модуль: v1 генерирует целые выбранные модули.
-
-## Генерация
-
-easyp.gen.yaml:
+## 1. Объявите корни и зависимости в `protobuf.mod`
-~~~yaml
-version: v1
-plugins:
- - name: go
- out: gen/go
- opts: [paths=source_relative]
- - name: go-grpc
- out: gen/go
- opts: [paths=source_relative]
-~~~
+Замените `protoc.includes` и скопированные сторонние схемы на `roots` и Git-зависимости `require`:
-Зафиксируйте версии используемых исполняемых плагинов в окружении. Сохраните прежние go_package и согласуйте их с физическим output. При необходимости генерировать также импорты включите with_imports: true у конкретного плагина. Это не параметр descriptor export.
+```text
+module github.com/acme/contracts
+roots proto
-## Политика проверок
+require (
+ github.com/googleapis/googleapis 03a91044136a014466d4293eb1fe91f2b02075d2
+)
+```
-easyp.yaml:
+## 2. Перенесите правила линтинга и совместимости в `easyp.yaml`
-~~~yaml
+```yaml
version: v1
linters:
- default: BASIC
+ default: STANDARD
+ disable:
+ - PACKAGE_VERSION_SUFFIX
+issues:
+ exclude-rules:
+ - path: proto/legacy
+ linters: [FIELD_LOWER_SNAKE_CASE]
breaking:
baseline: git:main
categories: [FILE]
-~~~
+```
+
+## 3. Перенесите `generate` в `easyp.gen.yaml`
+
+Замените `generate.go_options` и `generate.plugins` на `easyp.gen.yaml`. Если `prototool.yaml` исключал каталоги или выбирал подмножество файлов, используйте `generate.paths` или `generate.packages`:
-Сопоставляйте отдельные правила по фактическим именам и результатам; одинаковые названия пресетов разных инструментов не доказывают эквивалентность. breaking.ignore содержит пути, а не имена правил.
+```yaml
+version: v1
+generate:
+ paths: [proto/api]
+options:
+ go:
+ package_prefix: github.com/acme/contracts/gen/go
+plugins:
+ - name: go
+ out: ./gen/go
+ opts:
+ paths: source_relative
+ - name: go-grpc
+ out: ./gen/go
+ opts:
+ paths: source_relative
+```
-## Зависимости и проверка результата
+Установите `protoc-gen-go` и `protoc-gen-go-grpc` в `PATH` или переведите их на удалённые плагины (`remote: plugins.easyp.tech/protocolbuffers/go` + `version:`).
-Объявите внешние зависимости через easyp get или require в manifest. Git-источник нельзя однозначно угадать по произвольному proto-import. Для первоначального разрешения выполните mod tidy и закоммитьте lock; в последующих проверках используйте mod download, а не обновление версий.
+## 4. Проверьте конфиги и сравните вывод
-~~~bash
-easyp validate-config
+```bash
easyp mod tidy
+easyp validate-config
easyp lint
easyp breaking --against main
easyp generate
-~~~
-
-Указанный baseline должен быть доступен локально. Сравните с прежней генерацией имена файлов, import paths и содержимое, затем соберите и протестируйте потребляющий проект. Не удаляйте прежние скрипты до этого сравнения. Для нескольких проектов используйте повторяемый --project или явно разрешённый --all.
+```
-Если исходный проект уже использует EasyP v0, начните с [предварительного просмотра миграции](/docs/migration/easyp-v0).
+Сравните сгенерированные файлы с прежним выводом `prototool generate` и запустите тесты потребителей до удаления `prototool.yaml`. Если исходный проект уже использует EasyP v0, начните с [предварительного просмотра миграции](/ru/docs/migration/easyp-v0).
diff --git a/content/docs/reference/easyp-gen-yaml.mdx b/content/docs/reference/easyp-gen-yaml.mdx
index 9500527..3580988 100644
--- a/content/docs/reference/easyp-gen-yaml.mdx
+++ b/content/docs/reference/easyp-gen-yaml.mdx
@@ -177,7 +177,7 @@ generate:
- proto/user
plugins:
- - remote: gen.easyp.tech/es
+ - remote: plugins.easyp.tech/bufbuild/es
version: v2.0.0
out: ./src/gen
opts:
@@ -224,7 +224,7 @@ The generator selects module sources by default. Nonempty generate.package
Remote plugins require a version such as v2.0.0. EasyP sends that exact version to the remote generator. For local protoc-gen-* executables and bundled WASM plugins, the executable selected at runtime determines the version; the separate version field is rejected because EasyP cannot verify it.
-For bundled names such as go and go-grpc, a matching protoc-gen-* executable on PATH takes precedence. Otherwise EasyP uses the bundled WASM plugin. Use path or command to select an explicit executable.
+For the **15 built-in WASM plugin names** (`cpp`, `csharp`, `java`, `kotlin`, `objc`, `php`, `python`, `ruby`, `grpc_cpp`, `grpc_csharp`, `grpc_java`, `grpc_objc`, `grpc_php`, `grpc_python`, `grpc_ruby`), a matching `protoc-gen-*` executable on `PATH` takes precedence, and EasyP falls back to the bundled WASM binary if none is installed. Other plugin names such as `go` and `go-grpc` are **not** bundled as WASM and require a matching `protoc-gen-*` binary on `PATH` (or use `path`, `command`, or `remote` with `version`).
Each plugin declares exactly one source: name, path, command, or remote. Use path for a specific binary and command for an executable plus arguments. Both run from the directory where easyp generate starts and, like any Protobuf plugin, must read a CodeGeneratorRequest from stdin and write a CodeGeneratorResponse to stdout.
@@ -243,7 +243,7 @@ The separate version field is also unavailable for patheasyp generate selects the closest config in the current directory or a workspace ancestor. Repeat --project to choose multiple consumers explicitly; --all separately opts into recursive selection. --workspace sets the boundary for module paths and inheritance.
-Use easyp generate --gen-config private.easyp.gen.yaml to select one native generation file with a different name. The path is relative to the invocation directory, or absolute, and must remain inside the workspace. This flag is mutually exclusive with --project and --all; the global policy selector --config cannot replace it. A missing or invalid file fails without a fallback. Defaults and recursive discovery still use easyp.gen.yaml.
+Use easyp generate --config private.easyp.gen.yaml to select one native generation file with a different name. The path is relative to the invocation directory, or absolute, and must remain inside the workspace. This flag is mutually exclusive with --project and --all. Names ending in .easyp.yaml are rejected as policy files instead of being parsed as generation configs. A missing or invalid file fails without a fallback. Defaults and recursive discovery still use easyp.gen.yaml.
The selected file's directory remains the base for plugin output paths. Module selectors and source filters keep their existing workspace/module coordinates. Options inherit only from standard easyp.gen.yaml files in ancestor directories, not a sibling file in the same directory. See [named generation configs](/docs/cli/generator#named-generation-configs).
@@ -251,7 +251,7 @@ The selected file's directory remains the base for plugin output paths. Module s
## Managed-option validation
-Both configuration validation and generation reject unknown managed file or field options and values of the wrong type. Boolean options such as java_multiple_files require a YAML boolean, not a quoted string. String options require strings. optimize_for accepts SPEED, CODE_SIZE or LITE_RUNTIME; jstype accepts JS_NORMAL, JS_STRING or JS_NUMBER. Invalid rules cannot silently fall back to managed defaults.
+Both configuration validation and generation reject unknown managed file or field options and values of the wrong type. EasyP supports **19 managed `file_option` values** (`go_package`, `go_package_prefix`, `java_package`, `java_package_prefix`, `java_package_suffix`, `java_multiple_files`, `java_outer_classname`, `java_string_check_utf8`, `csharp_namespace`, `csharp_namespace_prefix`, `ruby_package`, `ruby_package_suffix`, `php_namespace`, `php_metadata_namespace`, `php_metadata_namespace_suffix`, `objc_class_prefix`, `swift_prefix`, `optimize_for`, `cc_enable_arenas`) and **1 managed `field_option`** (`jstype`). Boolean options such as java_multiple_files and cc_enable_arenas require a YAML boolean, not a quoted string. String options require strings. optimize_for accepts SPEED, CODE_SIZE or LITE_RUNTIME; jstype accepts JS_NORMAL, JS_STRING or JS_NUMBER. Invalid rules cannot silently fall back to managed defaults.
Place a remote version in the separate version field, not after a colon in the final plugin path. A server port in the host is allowed. For example, use remote: localhost:8080/go with version: v1.2.3.
diff --git a/content/docs/reference/easyp-gen-yaml.ru.mdx b/content/docs/reference/easyp-gen-yaml.ru.mdx
index ecf2752..f4ecd50 100644
--- a/content/docs/reference/easyp-gen-yaml.ru.mdx
+++ b/content/docs/reference/easyp-gen-yaml.ru.mdx
@@ -175,7 +175,7 @@ generate:
- proto/user
plugins:
- - remote: gen.easyp.tech/es
+ - remote: plugins.easyp.tech/bufbuild/es
version: v2.0.0
out: ./src/gen
opts:
@@ -222,7 +222,7 @@ plugins:
Удалённому плагину нужен version, например v2.0.0. EasyP передаёт именно эту версию удалённому генератору. Для локального protoc-gen-* и встроенного WASM версию определяет выбранный исполняемый файл; отдельное поле version отклоняется, поскольку EasyP не может его проверить.
-Для встроенных имён вроде go и go-grpc приоритет имеет соответствующий protoc-gen-* в PATH. Если его нет, EasyP использует встроенный WASM-плагин. Для явного выбора исполняемого файла задайте path или command.
+Для **15 встроенных WASM-плагинов** (`cpp`, `csharp`, `java`, `kotlin`, `objc`, `php`, `python`, `ruby`, `grpc_cpp`, `grpc_csharp`, `grpc_java`, `grpc_objc`, `grpc_php`, `grpc_python`, `grpc_ruby`) приоритет имеет соответствующий `protoc-gen-*` в `PATH`; если его нет, EasyP запускает встроенный WASM-плагин. Остальные имена, включая `go` и `go-grpc`, **не** встроены в WASM и требуют локального бинарника `protoc-gen-*` в `PATH` (либо явного `path`, `command` или `remote` с `version`).
Для каждого плагина указывают ровно один источник: name, path, command или remote. path запускает конкретный бинарный файл, а command принимает список из программы и её аргументов. Оба варианта работают из каталога запуска easyp generate и, как любой плагин Protobuf, должны принимать CodeGeneratorRequest из stdin и возвращать CodeGeneratorResponse в stdout.
@@ -241,7 +241,7 @@ plugins:
По умолчанию easyp generate выбирает ближайший конфиг в текущем или родительском каталоге workspace. Повторяйте --project для явного выбора нескольких потребителей; --all отдельно включает рекурсивный выбор. --workspace задаёт границу для путей модулей и наследования.
-Команда easyp generate --gen-config private.easyp.gen.yaml выбирает один нативный файл генерации с другим именем. Путь считается от каталога запуска или задаётся абсолютно и должен оставаться внутри workspace. Флаг несовместим с --project и --all; общий флаг выбора политик --config его не заменяет. Отсутствующий или некорректный файл вызывает ошибку без fallback. Автоматический и рекурсивный поиск по-прежнему используют easyp.gen.yaml.
+Команда easyp generate --config private.easyp.gen.yaml выбирает один нативный файл генерации с другим именем. Путь считается от каталога запуска или задаётся абсолютно и должен оставаться внутри workspace. Флаг несовместим с --project и --all. Файлы с суффиксом .easyp.yaml отклоняются как файлы политик. Отсутствующий или некорректный файл вызывает ошибку без fallback. Автоматический и рекурсивный поиск по-прежнему используют easyp.gen.yaml.
Каталог выбранного файла остаётся базой путей результатов плагинов. Пути модулей и фильтры исходников сохраняют прежние координаты workspace/модуля. Опции наследуются только из стандартных easyp.gen.yaml в родительских каталогах, а не из соседнего файла в том же каталоге. См. [конфиги генерации с разными именами](/ru/docs/cli/generator#конфиги-генерации-с-разными-именами).
@@ -249,7 +249,7 @@ plugins:
## Проверка managed-опций
-Валидация конфигурации и генерация отклоняют неизвестные file/field options и значения неподходящего типа. Булевым опциям вроде java_multiple_files нужен YAML boolean, а не строка в кавычках. Строковым опциям нужны строки. optimize_for принимает SPEED, CODE_SIZE или LITE_RUNTIME; jstype — JS_NORMAL, JS_STRING или JS_NUMBER. Неверное правило не должно незаметно заменяться стандартными managed-настройками.
+Валидация конфигурации и генерация отклоняют неизвестные file/field options и значения неподходящего типа. EasyP поддерживает **19 управляемых `file_option`** (`go_package`, `go_package_prefix`, `java_package`, `java_package_prefix`, `java_package_suffix`, `java_multiple_files`, `java_outer_classname`, `java_string_check_utf8`, `csharp_namespace`, `csharp_namespace_prefix`, `ruby_package`, `ruby_package_suffix`, `php_namespace`, `php_metadata_namespace`, `php_metadata_namespace_suffix`, `objc_class_prefix`, `swift_prefix`, `optimize_for`, `cc_enable_arenas`) и **1 управляемую `field_option`** (`jstype`). Булевым опциям вроде java_multiple_files и cc_enable_arenas нужен YAML boolean, а не строка в кавычках. Строковым опциям нужны строки. optimize_for принимает SPEED, CODE_SIZE или LITE_RUNTIME; jstype — JS_NORMAL, JS_STRING или JS_NUMBER. Неверное правило не должно незаметно заменяться стандартными managed-настройками.
Версию remote-плагина указывайте отдельным полем version, а не после двоеточия в последнем сегменте пути. Порт сервера в имени хоста допустим. Например, remote: localhost:8080/go вместе с version: v1.2.3.
diff --git a/content/docs/reference/easyp-yaml.mdx b/content/docs/reference/easyp-yaml.mdx
index 17e9b16..4211dcb 100644
--- a/content/docs/reference/easyp-yaml.mdx
+++ b/content/docs/reference/easyp-yaml.mdx
@@ -58,18 +58,22 @@ description: "Complete specification for easyp.yaml, configuring producer-side l
description: "Relative to the policy file supplying the issues section. Supports *, ?, [], and complete ** segments; a literal directory covers its subtree.",
type: "string"
},
+ "issues.exclude-rules[].linters": {
+ description: "Implemented rule or group names to suppress for matching files. Omitted or empty suppresses all lint rules for matching files.",
+ type: "string[]"
+ },
breaking: {
description: "Breaking change detection settings for CI verification.",
type: "object"
},
"breaking.baseline": {
- description: "Locally available Git branch, tag, full commit SHA, or revision prefixed with git:. Explicit --against wins; otherwise this field applies, then master.",
- type: "string",
- default: "master"
+ description: "Locally available Git branch, tag, full commit SHA, or revision prefixed with git: (the git: prefix is required in YAML). Explicit --against wins; if both are omitted, easyp breaking defaults to master.",
+ type: "string"
},
"breaking.categories": {
- description: "FILE, PACKAGE, WIRE_JSON, WIRE: distinct compatibility profiles. Omitted/empty preserves legacy checks; multiple profiles apply their union.",
- type: "string[]"
+ description: "FILE, PACKAGE, WIRE_JSON, WIRE: descriptor-backed compatibility profiles. Multiple profiles apply their union; omitted or empty defaults to [\"FILE\"].",
+ type: "string[]",
+ default: '["FILE"]'
},
"breaking.ignore_unstable": {
description: "Skip packages with a supported unstable version in their final component on both sides of comparison. See exact forms below.",
@@ -119,11 +123,11 @@ breaking:
The linters, linters-settings, issues, and breaking sections each come as a whole from the nearest file defining that section; fields are not partially merged. A child issues: {} clears inherited exclusions. An inherited exclusion path stays relative to the file defining issues, even when the invocation directory or --root is deeper.
-Policy discovery searches ancestors within the workspace. If no ancestor policy exists, one unambiguous outermost descendant policy may be selected; multiple independent policies require explicit --cfg. Explicit --cfg takes precedence, and explicit --root supplies the default lookup start.
+Policy discovery searches ancestors within the workspace. If no ancestor policy exists, one unambiguous outermost descendant policy may be selected; multiple independent policies require explicit --config (for example easyp lint --config strict.easyp.yaml). Explicit --config takes precedence, and explicit --root supplies the default lookup start.
## Rule selection and exclusions
-Repeated rule or group names are idempotent, and disabling wins over enabling. Unknown names in enable, disable, and exclusions are errors even if also listed on the opposite side. The reserved PACKAGE_NO_IMPORT_CYCLE rule is unimplemented and cannot be selected.
+Repeated rule or group names are idempotent, and disabling wins over enabling. Unknown names in enable, disable, and exclusions are errors even if also listed on the opposite side. PACKAGE_NO_IMPORT_CYCLE is implemented and included in the MINIMAL group and preset.
issues.exclude-rules[].path uses / separators and is anchored to the directory of the file supplying the effective issues section:
@@ -154,7 +158,7 @@ The baseline can name a local branch, a lightweight or annotated tag, a full com
Each selected module uses revision-local roots, manifests, and locks for its current and baseline revisions. The baseline is read from an isolated Git snapshot; the caller's checkout, manifest, and lock are unchanged. Policies come from current configuration and may each select a different baseline. See the [breaking guide](/docs/cli/breaking-changes) for local replacement limits.
-Select FILE for file/source compatibility, PACKAGE to allow moves within a package, WIRE_JSON for binary plus JSON, or WIRE for binary. See the [profile matrix](/docs/cli/breaking-changes). Omitted/empty categories preserve legacy checks. Shared policies remain pinned through the consuming manifest/lock.
+Select FILE for file/source compatibility, PACKAGE to allow moves within a package, WIRE_JSON for binary plus JSON, or WIRE for binary compatibility. See the [profile matrix](/docs/cli/breaking-changes). Omitted or empty categories defaults to ["FILE"]. Shared policies remain pinned through the consuming manifest/lock.
## Unstable packages
diff --git a/content/docs/reference/easyp-yaml.ru.mdx b/content/docs/reference/easyp-yaml.ru.mdx
index 317afee..74160ca 100644
--- a/content/docs/reference/easyp-yaml.ru.mdx
+++ b/content/docs/reference/easyp-yaml.ru.mdx
@@ -58,18 +58,22 @@ description: "Полная спецификация файла easyp.yaml, уп
description: "Путь относительно файла, задающего секцию issues. Поддерживает *, ?, [] и полные сегменты **; буквальный каталог охватывает поддерево.",
type: "string"
},
+ "issues.exclude-rules[].linters": {
+ description: "Имена реализованных правил или групп для подавления в совпавших файлах. Пустой или отсутствующий список подавляет все правила линтинга для совпавших файлов.",
+ type: "string[]"
+ },
breaking: {
description: "Параметры проверки ломающих изменений для CI.",
type: "object"
},
"breaking.baseline": {
- description: "Доступная локально Git-ветка, тег, полный SHA коммита или ревизия с префиксом git:. Явный --against имеет приоритет; далее это поле, затем master.",
- type: "string",
- default: "master"
+ description: "Доступная локально Git-ветка, тег, полный SHA коммита или ревизия с обязательным в YAML префиксом git:. Явный --against имеет приоритет; если оба не заданы, easyp breaking использует master.",
+ type: "string"
},
"breaking.categories": {
- description: "FILE, PACKAGE, WIRE_JSON, WIRE: разные профили совместимости. Отсутствие/пустой список сохраняет прежние проверки; несколько профилей применяются совместно.",
- type: "string[]"
+ description: "FILE, PACKAGE, WIRE_JSON, WIRE: профили совместимости на базе дескрипторов. Несколько профилей применяются совместно; отсутствие или пустой список по умолчанию используют [\"FILE\"].",
+ type: "string[]",
+ default: '["FILE"]'
},
"breaking.ignore_unstable": {
description: "Пропускает пакеты с поддерживаемой нестабильной версией в последнем компоненте имени на обеих сторонах сравнения. Точные формы описаны ниже.",
@@ -119,11 +123,11 @@ breaking:
Секции linters, linters-settings, issues и breaking берутся целиком из ближайшего определяющего файла без частичного слияния. Вложенная issues: {} очищает унаследованные исключения. Унаследованный путь исключения остаётся относительно файла, где определена секция issues, даже если запуск или --root указывает глубже.
-При поиске политики команды идут вверх в пределах workspace. Если политики выше нет, допустима одна однозначная внешняя политика в потомках; несколько независимых политик требуют явного --cfg. Явный --cfg имеет приоритет, а явный --root задаёт начальную точку поиска по умолчанию.
+При поиске политики команды идут вверх в пределах workspace. Если политики выше нет, допустима одна однозначная внешняя политика в потомках; несколько независимых политик требуют явного флага --config (например, easyp lint --config strict.easyp.yaml). Явный --config имеет приоритет, а явный --root задаёт начальную точку поиска по умолчанию.
## Выбор правил и исключения
-Повторные имена правил или групп не добавляют проверок; отключение приоритетнее включения. Неизвестные имена в enable, disable и исключениях — ошибки, даже если имя есть в противоположном списке. Зарезервированное PACKAGE_NO_IMPORT_CYCLE не реализовано и выбирать его нельзя.
+Повторные имена правил или групп не добавляют проверок; отключение приоритетнее включения. Неизвестные имена в enable, disable и исключениях — ошибки, даже если имя есть в противоположном списке. Правило PACKAGE_NO_IMPORT_CYCLE реализовано и входит в группу и пресет MINIMAL.
Пути issues.exclude-rules[].path используют разделитель / и привязаны к каталогу файла, предоставившего эффективную секцию issues:
@@ -154,7 +158,7 @@ breaking:
Для каждого выбранного модуля текущая и базовая ревизии используют собственные корни, манифесты и lock. База читается из изолированного Git-снимка; рабочее дерево, манифест и lock пользователя не изменяются. Политики берутся из текущей конфигурации; каждая может задавать свою базу. Подробности и ограничения локальных замен — в [руководстве breaking](/ru/docs/cli/breaking-changes).
-FILE проверяет совместимость файлов и исходного кода, PACKAGE разрешает переносы внутри пакета, WIRE_JSON защищает бинарное и JSON-представление, WIRE — бинарное. См. [матрицу профилей](/ru/docs/cli/breaking-changes). Отсутствие/пустой список categories сохраняет прежний checker. Общие политики закрепляются через manifest/lock потребителя.
+FILE проверяет совместимость файлов и исходного кода, PACKAGE разрешает переносы внутри пакета, WIRE_JSON защищает бинарное и JSON-представление, WIRE — бинарное. См. [матрицу профилей](/ru/docs/cli/breaking-changes). Отсутствие или пустой список categories по умолчанию применяют профиль ["FILE"]. Общие политики закрепляются через manifest/lock потребителя.
## Нестабильные пакеты
diff --git a/content/docs/reference/meta.ru.json b/content/docs/reference/meta.ru.json
new file mode 100644
index 0000000..56b8eb3
--- /dev/null
+++ b/content/docs/reference/meta.ru.json
@@ -0,0 +1,9 @@
+{
+ "title": "Справочник",
+ "pages": [
+ "easyp-yaml",
+ "easyp-gen-yaml",
+ "protobuf-mod",
+ "protobuf-lock"
+ ]
+}
diff --git a/content/docs/reference/protobuf-lock.mdx b/content/docs/reference/protobuf-lock.mdx
index 69729f9..ce88660 100644
--- a/content/docs/reference/protobuf-lock.mdx
+++ b/content/docs/reference/protobuf-lock.mdx
@@ -13,7 +13,7 @@ description: "Specification for protobuf.lock, the generated lockfile securing r
type={{
version: {
description: "Lockfile format version integer. Currently 1.",
- type: "number",
+ type: "integer",
default: "1"
},
modules: {
@@ -39,6 +39,22 @@ description: "Specification for protobuf.lock, the generated lockfile securing r
"modules[].roots": {
description: "Optional verified fallback import-root directories relative to a metadata-free dependency's pinned Git repository snapshot. Replayed on cold-cache and frozen operations; does not override authoritative dependency metadata.",
type: "string[]"
+ },
+ "modules[].bsr": {
+ description: "Optional BSR dependency bindings recorded on the requiring Git module so frozen commands replay them without consulting a resolver.",
+ type: "object[]"
+ },
+ "modules[].bsr[].dependency": {
+ description: "Original BSR request from the dependency's buf.yaml/buf.lock: required module and config (relative buf.yaml path), plus optional reference, commit (32-hex BSR commit), and digest.",
+ type: "object"
+ },
+ "modules[].bsr[].git": {
+ description: "Resolved Git target: required module identity and pinned version (SemVer or full commit SHA).",
+ type: "object"
+ },
+ "modules[].bsr[].resolution": {
+ description: "Mapping strategy: compatibility_snapshot (fixed Git snapshot; BSR revision equivalence and digest are not verified) or exact_revision.",
+ type: "string"
}
}}
/>
@@ -55,6 +71,18 @@ modules:
version: v1.2.3
commit: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
hash: h1:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
+ - source: github.com/acme/buf-service
+ version: v1.0.0
+ commit: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
+ hash: h1:BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB=
+ bsr:
+ - dependency:
+ module: buf.build/googleapis/googleapis
+ config: buf.yaml
+ git:
+ module: github.com/googleapis/googleapis
+ version: 03a91044136a014466d4293eb1fe91f2b02075d2
+ resolution: compatibility_snapshot
~~~
---
diff --git a/content/docs/reference/protobuf-lock.ru.mdx b/content/docs/reference/protobuf-lock.ru.mdx
index f6f124a..c0e50e7 100644
--- a/content/docs/reference/protobuf-lock.ru.mdx
+++ b/content/docs/reference/protobuf-lock.ru.mdx
@@ -12,8 +12,8 @@ description: "Спецификация файла protobuf.lock, автомат
@@ -55,6 +71,18 @@ modules:
version: v1.2.3
commit: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
hash: h1:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
+ - source: github.com/acme/buf-service
+ version: v1.0.0
+ commit: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
+ hash: h1:BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB=
+ bsr:
+ - dependency:
+ module: buf.build/googleapis/googleapis
+ config: buf.yaml
+ git:
+ module: github.com/googleapis/googleapis
+ version: 03a91044136a014466d4293eb1fe91f2b02075d2
+ resolution: compatibility_snapshot
~~~
---
diff --git a/content/docs/reference/protobuf-mod.ru.mdx b/content/docs/reference/protobuf-mod.ru.mdx
index d3ab318..7df8e68 100644
--- a/content/docs/reference/protobuf-mod.ru.mdx
+++ b/content/docs/reference/protobuf-mod.ru.mdx
@@ -53,7 +53,7 @@ require (
github.com/acme/gateway/v2 v2.19.0 // indirect
)
-// Локальное переопределения для отладки
+// Локальное переопределение для отладки
replace github.com/acme/weather => ../weather-fork
~~~