Files
Sebastian Lorenz 45e47e7477 Add @effect/protobuf-generator, a self-hosted protoc plugin for effect/protobuf
protoc-gen-effect runs through protoc or buf and generates, per .proto file,
its resolved FileDescriptor, an interface and a MessageDescriptor per message,
and the descriptors of enums, extensions and services.

The plugin reads its requests with effect/protobuf's own generated
plugin.proto module. ProtobufDescriptorProto and the new ProtobufPluginProto
re-export the plugin's plain output, regenerated with `pnpm bootstrap`; the
first generation used @bufbuild/protoplugin, which is no longer a dependency.
This replaces packages/effect/scripts/protobuf/generate.mjs.

Generated modules resolve against the modules they import with the new
`dependencies` option of ProtobufDescriptor.make. To break the import cycle
with the generated descriptor.proto module, ProtobufDescriptor no longer
re-exports descriptor.proto, and fromFileDescriptorSet moved to
ProtobufDescriptorProto. Codegen.Module gains isReserved.
2026-11-18 07:52:50 +00:00
..