eggpipe 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. eggpipe-0.3.0/.gitignore +60 -0
  2. eggpipe-0.3.0/CHANGELOG.md +81 -0
  3. eggpipe-0.3.0/CONTRIBUTING.md +55 -0
  4. eggpipe-0.3.0/LICENSE +21 -0
  5. eggpipe-0.3.0/PKG-INFO +251 -0
  6. eggpipe-0.3.0/README.md +209 -0
  7. eggpipe-0.3.0/docs/ai/context.md +70 -0
  8. eggpipe-0.3.0/docs/ai/diagnostics.json +345 -0
  9. eggpipe-0.3.0/docs/ai/index.md +18 -0
  10. eggpipe-0.3.0/docs/ai/invariants.md +31 -0
  11. eggpipe-0.3.0/docs/ai/llms-full.txt +948 -0
  12. eggpipe-0.3.0/docs/ai/llms.txt +32 -0
  13. eggpipe-0.3.0/docs/ai/manifest.json +169 -0
  14. eggpipe-0.3.0/docs/ai/schemas/config.schema.json +339 -0
  15. eggpipe-0.3.0/docs/ai/schemas/manifest.schema.json +115 -0
  16. eggpipe-0.3.0/docs/ai/schemas/model.schema.json +609 -0
  17. eggpipe-0.3.0/docs/ai/schemas/report.schema.json +389 -0
  18. eggpipe-0.3.0/docs/ai/tasks.md +52 -0
  19. eggpipe-0.3.0/docs/assets/brand/favicon.ico +0 -0
  20. eggpipe-0.3.0/docs/assets/brand/lockup/eggpipe-lockup-dark.png +0 -0
  21. eggpipe-0.3.0/docs/assets/brand/lockup/eggpipe-lockup-dark.svg +19 -0
  22. eggpipe-0.3.0/docs/assets/brand/lockup/eggpipe-lockup-light.png +0 -0
  23. eggpipe-0.3.0/docs/assets/brand/lockup/eggpipe-lockup.svg +19 -0
  24. eggpipe-0.3.0/docs/assets/brand/lockup/eggpipe-wordmark-dark.png +0 -0
  25. eggpipe-0.3.0/docs/assets/brand/lockup/eggpipe-wordmark-dark.svg +13 -0
  26. eggpipe-0.3.0/docs/assets/brand/lockup/eggpipe-wordmark-light.png +0 -0
  27. eggpipe-0.3.0/docs/assets/brand/lockup/eggpipe-wordmark.svg +13 -0
  28. eggpipe-0.3.0/docs/assets/brand/png/android-chrome-192x192.png +0 -0
  29. eggpipe-0.3.0/docs/assets/brand/png/android-chrome-512x512.png +0 -0
  30. eggpipe-0.3.0/docs/assets/brand/png/apple-touch-icon.png +0 -0
  31. eggpipe-0.3.0/docs/assets/brand/png/eggpipe-icon-1024.png +0 -0
  32. eggpipe-0.3.0/docs/assets/brand/png/eggpipe-icon-128.png +0 -0
  33. eggpipe-0.3.0/docs/assets/brand/png/eggpipe-icon-16.png +0 -0
  34. eggpipe-0.3.0/docs/assets/brand/png/eggpipe-icon-256.png +0 -0
  35. eggpipe-0.3.0/docs/assets/brand/png/eggpipe-icon-32.png +0 -0
  36. eggpipe-0.3.0/docs/assets/brand/png/eggpipe-icon-48.png +0 -0
  37. eggpipe-0.3.0/docs/assets/brand/png/eggpipe-icon-512.png +0 -0
  38. eggpipe-0.3.0/docs/assets/brand/png/eggpipe-icon-64.png +0 -0
  39. eggpipe-0.3.0/docs/assets/brand/png/eggpipe-icon-dark-1024.png +0 -0
  40. eggpipe-0.3.0/docs/assets/brand/png/eggpipe-icon-dark-512.png +0 -0
  41. eggpipe-0.3.0/docs/assets/brand/png/eggpipe-icon-mono-512.png +0 -0
  42. eggpipe-0.3.0/docs/assets/brand/png/eggpipe-icon-mono-light-512.png +0 -0
  43. eggpipe-0.3.0/docs/assets/brand/png/eggpipe-icon-original-1024.png +0 -0
  44. eggpipe-0.3.0/docs/assets/brand/preview-small-sizes.png +0 -0
  45. eggpipe-0.3.0/docs/assets/brand/preview.png +0 -0
  46. eggpipe-0.3.0/docs/assets/brand/social/eggpipe-social-1280x640.png +0 -0
  47. eggpipe-0.3.0/docs/assets/brand/svg/eggpipe-icon-dark.svg +8 -0
  48. eggpipe-0.3.0/docs/assets/brand/svg/eggpipe-icon-mono-light.svg +8 -0
  49. eggpipe-0.3.0/docs/assets/brand/svg/eggpipe-icon-mono.svg +8 -0
  50. eggpipe-0.3.0/docs/assets/brand/svg/eggpipe-icon-original.svg +8 -0
  51. eggpipe-0.3.0/docs/assets/brand/svg/eggpipe-icon-small-egg-p.svg +5 -0
  52. eggpipe-0.3.0/docs/assets/brand/svg/eggpipe-icon-small-ep.svg +8 -0
  53. eggpipe-0.3.0/docs/assets/brand/svg/eggpipe-icon-small-p.svg +4 -0
  54. eggpipe-0.3.0/docs/assets/brand/svg/eggpipe-icon-square-dark.svg +8 -0
  55. eggpipe-0.3.0/docs/assets/brand/svg/eggpipe-icon-square-mono-light.svg +8 -0
  56. eggpipe-0.3.0/docs/assets/brand/svg/eggpipe-icon-square-mono.svg +8 -0
  57. eggpipe-0.3.0/docs/assets/brand/svg/eggpipe-icon-square.svg +8 -0
  58. eggpipe-0.3.0/docs/assets/brand/svg/eggpipe-icon.svg +8 -0
  59. eggpipe-0.3.0/docs/img/favicon.ico +0 -0
  60. eggpipe-0.3.0/docs/index.md +39 -0
  61. eggpipe-0.3.0/docs/user/api/format.md +66 -0
  62. eggpipe-0.3.0/docs/user/api/generator.md +83 -0
  63. eggpipe-0.3.0/docs/user/api/index.md +66 -0
  64. eggpipe-0.3.0/docs/user/api/models.md +74 -0
  65. eggpipe-0.3.0/docs/user/cli.md +117 -0
  66. eggpipe-0.3.0/docs/user/concepts.md +83 -0
  67. eggpipe-0.3.0/docs/user/configuration.md +120 -0
  68. eggpipe-0.3.0/docs/user/cookbook/index.md +105 -0
  69. eggpipe-0.3.0/docs/user/faq.md +69 -0
  70. eggpipe-0.3.0/docs/user/index.md +38 -0
  71. eggpipe-0.3.0/docs/user/plugins.md +211 -0
  72. eggpipe-0.3.0/docs/user/quickstart.md +91 -0
  73. eggpipe-0.3.0/docs/user/reference/diagnostics.md +69 -0
  74. eggpipe-0.3.0/docs/user/status.md +34 -0
  75. eggpipe-0.3.0/docs/user/troubleshooting.md +67 -0
  76. eggpipe-0.3.0/docs/user/tutorial.md +119 -0
  77. eggpipe-0.3.0/engineering/adr/0001-composition-merge-semantics.md +123 -0
  78. eggpipe-0.3.0/engineering/adr/0002-type-checker-pyrefly.md +43 -0
  79. eggpipe-0.3.0/engineering/adr/0003-null-semantics.md +45 -0
  80. eggpipe-0.3.0/engineering/adr/0004-ownership-manifest-cleanup.md +62 -0
  81. eggpipe-0.3.0/engineering/adr/0005-library-api.md +60 -0
  82. eggpipe-0.3.0/engineering/adr/0006-format-extension.md +45 -0
  83. eggpipe-0.3.0/engineering/adr/0007-format-inheritance.md +120 -0
  84. eggpipe-0.3.0/engineering/adr/0008-model-units-and-source-layouts.md +131 -0
  85. eggpipe-0.3.0/engineering/adr/0009-global-manifest-ownership.md +105 -0
  86. eggpipe-0.3.0/engineering/adr/0010-decorator-generator-api.md +56 -0
  87. eggpipe-0.3.0/engineering/adr/0011-public-api-v2-identity.md +78 -0
  88. eggpipe-0.3.0/engineering/adr/0012-english-only-source.md +52 -0
  89. eggpipe-0.3.0/engineering/adr/0013-diagnostic-code-namespace.md +43 -0
  90. eggpipe-0.3.0/engineering/adr/0014-beta-status-and-compatibility.md +54 -0
  91. eggpipe-0.3.0/engineering/adr/index.md +22 -0
  92. eggpipe-0.3.0/engineering/brand-assets.md +94 -0
  93. eggpipe-0.3.0/engineering/decisions/eggpipe.md +470 -0
  94. eggpipe-0.3.0/engineering/decisions/logo-brief.md +209 -0
  95. eggpipe-0.3.0/engineering/i18n/README.md +19 -0
  96. eggpipe-0.3.0/engineering/i18n/ru-docstrings.yaml +478 -0
  97. eggpipe-0.3.0/engineering/i18n/ru-messages.yaml +1433 -0
  98. eggpipe-0.3.0/engineering/index.md +16 -0
  99. eggpipe-0.3.0/engineering/plan-v2.md +245 -0
  100. eggpipe-0.3.0/engineering/release.md +69 -0
  101. eggpipe-0.3.0/engineering/requirements/index.md +201 -0
  102. eggpipe-0.3.0/engineering/requirements/v1.0.md +654 -0
  103. eggpipe-0.3.0/engineering/requirements/v1.1.md +752 -0
  104. eggpipe-0.3.0/engineering/requirements/v1.2.md +1163 -0
  105. eggpipe-0.3.0/engineering/requirements/v1.3.md +1179 -0
  106. eggpipe-0.3.0/engineering/requirements/v1.4.md +1623 -0
  107. eggpipe-0.3.0/engineering/requirements/v2.0.md +1708 -0
  108. eggpipe-0.3.0/engineering/requirements/v2.1.md +1724 -0
  109. eggpipe-0.3.0/engineering/requirements/v2.2.md +1737 -0
  110. eggpipe-0.3.0/engineering/reviews/2026-11-10-project-review.md +648 -0
  111. eggpipe-0.3.0/engineering/reviews/2026-11-12-v2-review.md +83 -0
  112. eggpipe-0.3.0/engineering/reviews/2026-11-13-code-quality-review.md +351 -0
  113. eggpipe-0.3.0/engineering/reviews/2026-11-13-patterns-review.md +300 -0
  114. eggpipe-0.3.0/engineering/reviews/2026-11-13-project-review.md +192 -0
  115. eggpipe-0.3.0/engineering/system-design/index.md +1595 -0
  116. eggpipe-0.3.0/examples/reference-generator/README.md +12 -0
  117. eggpipe-0.3.0/examples/reference-generator/pyproject.toml +16 -0
  118. eggpipe-0.3.0/examples/reference-generator/src/reference_generator/__init__.py +76 -0
  119. eggpipe-0.3.0/examples/tpc-h/.eggpipe.split.yaml +16 -0
  120. eggpipe-0.3.0/examples/tpc-h/.eggpipe.yaml +14 -0
  121. eggpipe-0.3.0/examples/tpc-h/README.md +84 -0
  122. eggpipe-0.3.0/examples/tpc-h/expected/schema.sql +101 -0
  123. eggpipe-0.3.0/examples/tpc-h/expected/tpch_models.py +100 -0
  124. eggpipe-0.3.0/examples/tpc-h/model/customer/base.yaml +66 -0
  125. eggpipe-0.3.0/examples/tpc-h/model/lineitem/base.yaml +123 -0
  126. eggpipe-0.3.0/examples/tpc-h/model/nation/base.yaml +42 -0
  127. eggpipe-0.3.0/examples/tpc-h/model/orders/base.yaml +72 -0
  128. eggpipe-0.3.0/examples/tpc-h/model/part/base.yaml +65 -0
  129. eggpipe-0.3.0/examples/tpc-h/model/partsupp/base.yaml +55 -0
  130. eggpipe-0.3.0/examples/tpc-h/model/region/base.yaml +29 -0
  131. eggpipe-0.3.0/examples/tpc-h/model/supplier/base.yaml +60 -0
  132. eggpipe-0.3.0/examples/tpc-h-generator/README.md +33 -0
  133. eggpipe-0.3.0/examples/tpc-h-generator/pyproject.toml +18 -0
  134. eggpipe-0.3.0/examples/tpc-h-generator/src/tpch_generator/__init__.py +13 -0
  135. eggpipe-0.3.0/examples/tpc-h-generator/src/tpch_generator/ddl.py +43 -0
  136. eggpipe-0.3.0/examples/tpc-h-generator/src/tpch_generator/generator.py +103 -0
  137. eggpipe-0.3.0/examples/tpc-h-generator/src/tpch_generator/metadata.py +86 -0
  138. eggpipe-0.3.0/examples/tpc-h-generator/src/tpch_generator/pydantic_models.py +69 -0
  139. eggpipe-0.3.0/examples/tpc-h-generator/src/tpch_generator/templates/pydantic.py.j2 +26 -0
  140. eggpipe-0.3.0/examples/tpc-h-generator/src/tpch_generator/templates/schema.sql.j2 +17 -0
  141. eggpipe-0.3.0/mkdocs.yml +41 -0
  142. eggpipe-0.3.0/pyproject.toml +130 -0
  143. eggpipe-0.3.0/pyrightconfig.json +20 -0
  144. eggpipe-0.3.0/src/eggpipe/__init__.py +129 -0
  145. eggpipe-0.3.0/src/eggpipe/cli/__init__.py +0 -0
  146. eggpipe-0.3.0/src/eggpipe/cli/main.py +710 -0
  147. eggpipe-0.3.0/src/eggpipe/config/__init__.py +0 -0
  148. eggpipe-0.3.0/src/eggpipe/config/app_config.py +35 -0
  149. eggpipe-0.3.0/src/eggpipe/config/logging.py +40 -0
  150. eggpipe-0.3.0/src/eggpipe/config/project_config.py +162 -0
  151. eggpipe-0.3.0/src/eggpipe/core/__init__.py +0 -0
  152. eggpipe-0.3.0/src/eggpipe/core/composition.py +431 -0
  153. eggpipe-0.3.0/src/eggpipe/core/discovery.py +566 -0
  154. eggpipe-0.3.0/src/eggpipe/core/document.py +32 -0
  155. eggpipe-0.3.0/src/eggpipe/core/format_registry.py +230 -0
  156. eggpipe-0.3.0/src/eggpipe/core/layers.py +385 -0
  157. eggpipe-0.3.0/src/eggpipe/core/model.py +308 -0
  158. eggpipe-0.3.0/src/eggpipe/core/naming.py +36 -0
  159. eggpipe-0.3.0/src/eggpipe/core/parser.py +96 -0
  160. eggpipe-0.3.0/src/eggpipe/core/paths.py +12 -0
  161. eggpipe-0.3.0/src/eggpipe/core/provenance.py +52 -0
  162. eggpipe-0.3.0/src/eggpipe/core/slicing.py +110 -0
  163. eggpipe-0.3.0/src/eggpipe/core/validator.py +518 -0
  164. eggpipe-0.3.0/src/eggpipe/engine/__init__.py +0 -0
  165. eggpipe-0.3.0/src/eggpipe/engine/artifact_writer.py +741 -0
  166. eggpipe-0.3.0/src/eggpipe/engine/engine.py +679 -0
  167. eggpipe-0.3.0/src/eggpipe/engine/plugin_loader.py +215 -0
  168. eggpipe-0.3.0/src/eggpipe/engine/policy.py +27 -0
  169. eggpipe-0.3.0/src/eggpipe/engine/report.py +90 -0
  170. eggpipe-0.3.0/src/eggpipe/interfaces/__init__.py +0 -0
  171. eggpipe-0.3.0/src/eggpipe/interfaces/diagnostics.py +129 -0
  172. eggpipe-0.3.0/src/eggpipe/interfaces/formats.py +122 -0
  173. eggpipe-0.3.0/src/eggpipe/interfaces/generator.py +235 -0
  174. eggpipe-0.3.0/src/eggpipe/py.typed +0 -0
  175. eggpipe-0.3.0/src/eggpipe/templating.py +84 -0
  176. eggpipe-0.3.0/src/eggpipe/utils/__init__.py +0 -0
  177. eggpipe-0.3.0/src/eggpipe/utils/exceptions.py +65 -0
  178. eggpipe-0.3.0/src/eggpipe/utils/yaml.py +44 -0
  179. eggpipe-0.3.0/src/eggpipe/version.py +3 -0
  180. eggpipe-0.3.0/src/eggpipe/watch/__init__.py +0 -0
  181. eggpipe-0.3.0/src/eggpipe/watch/watcher.py +168 -0
  182. eggpipe-0.3.0/tests/golden/fixtures/expected/basic.json +45 -0
  183. eggpipe-0.3.0/tests/golden/fixtures/models/basic.yaml +18 -0
  184. eggpipe-0.3.0/tests/golden/test_golden.py +39 -0
  185. eggpipe-0.3.0/tests/property/test_properties.py +144 -0
  186. eggpipe-0.3.0/tests/test_artifact_writer.py +358 -0
  187. eggpipe-0.3.0/tests/test_check_docs.py +100 -0
  188. eggpipe-0.3.0/tests/test_check_wheel.py +25 -0
  189. eggpipe-0.3.0/tests/test_cli.py +359 -0
  190. eggpipe-0.3.0/tests/test_composition.py +210 -0
  191. eggpipe-0.3.0/tests/test_config.py +85 -0
  192. eggpipe-0.3.0/tests/test_contract.py +75 -0
  193. eggpipe-0.3.0/tests/test_determinism.py +65 -0
  194. eggpipe-0.3.0/tests/test_engine.py +170 -0
  195. eggpipe-0.3.0/tests/test_engine_composition.py +196 -0
  196. eggpipe-0.3.0/tests/test_formats.py +268 -0
  197. eggpipe-0.3.0/tests/test_generator_api.py +195 -0
  198. eggpipe-0.3.0/tests/test_layers.py +503 -0
  199. eggpipe-0.3.0/tests/test_model.py +88 -0
  200. eggpipe-0.3.0/tests/test_naming.py +22 -0
  201. eggpipe-0.3.0/tests/test_package.py +15 -0
  202. eggpipe-0.3.0/tests/test_parser.py +117 -0
  203. eggpipe-0.3.0/tests/test_plugin_loader.py +190 -0
  204. eggpipe-0.3.0/tests/test_provenance.py +46 -0
  205. eggpipe-0.3.0/tests/test_slicing.py +73 -0
  206. eggpipe-0.3.0/tests/test_templating.py +64 -0
  207. eggpipe-0.3.0/tests/test_tpch_example.py +81 -0
  208. eggpipe-0.3.0/tests/test_validator.py +192 -0
  209. eggpipe-0.3.0/tests/test_watch.py +19 -0
  210. eggpipe-0.3.0/tests/test_watch_integration.py +60 -0
  211. eggpipe-0.3.0/tools/__init__.py +0 -0
  212. eggpipe-0.3.0/tools/build_ai_docs.py +186 -0
  213. eggpipe-0.3.0/tools/check_docs.py +671 -0
  214. eggpipe-0.3.0/tools/check_wheel.py +242 -0
@@ -0,0 +1,60 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+
8
+ # Build artifacts
9
+ build/
10
+ dist/
11
+ *.egg-info/
12
+
13
+ # Virtual environments
14
+ venv/
15
+ ENV/
16
+ .venv/
17
+
18
+ # IDE
19
+ .idea/
20
+ .vscode/
21
+ *.swp
22
+ *.swo
23
+
24
+ # Output (сгенерированные файлы)
25
+ /output/
26
+ /outputs/
27
+
28
+ # Testing
29
+ .pytest_cache/
30
+ .coverage
31
+ .coverage.*
32
+ coverage.xml
33
+ htmlcov/
34
+ .tox/
35
+ .nox/
36
+ .hypothesis/
37
+
38
+ # Distribution
39
+ MANIFEST
40
+
41
+ # Type checking / linting
42
+ .mypy_cache/
43
+ .ruff_cache/
44
+ .pyright/
45
+
46
+ # Eggpipe runtime (lock, manifest, staging)
47
+ .eggpipe/
48
+
49
+ # Logs
50
+ *.log
51
+
52
+ # Local notes (not tracked)
53
+ /.local/
54
+
55
+ # Docs site
56
+ site/
57
+
58
+ # OS
59
+ .DS_Store
60
+ Thumbs.db
@@ -0,0 +1,81 @@
1
+ # Changelog
2
+
3
+ Все заметные изменения проекта. Формат — [Keep a Changelog](https://keepachangelog.com/ru/1.1.0/),
4
+ версионирование — [SemVer](https://semver.org/lang/ru/).
5
+
6
+ ## [Unreleased]
7
+
8
+ ## [0.3.0] - 2026-11-13
9
+
10
+ ### Changed
11
+
12
+ - ТЗ v2.2: English-only source code, comments, docstrings, CLI help и diagnostics.
13
+ - Диагностические коды `MGxxx` → `EGxxx`; номера сохранены (ADR-0013).
14
+ - `GeneratorRules`/`GeneratorRulesLoader` → `ProjectConfig`/`ProjectConfigLoader`;
15
+ `config/generator_rules.py` → `config/project_config.py`.
16
+ - Удалён `InputSlice`; публичный тип выбора входа — `InputSelection`.
17
+ - Удалены legacy-поля `CompositionResult.format`/`version`.
18
+ - Унифицированы ignore-константы; `WIN_RESERVED` → `WINDOWS_RESERVED_NAMES`.
19
+ - Translation memory русских сообщений и docstrings: `engineering/i18n/`.
20
+ - ADR-0012 (English-only) и ADR-0013 (EG-коды).
21
+ - Проект объявлен beta (0.x): до 1.0 breaking changes возможны (ADR-0014).
22
+ - CI-матрица расширена до Python 3.11–3.15.
23
+ - Проект переименован в **Eggpipe**: CLI `eggpipe`, конфиг `.eggpipe.yaml`, state `.eggpipe/`,
24
+ package/import `eggpipe`.
25
+ - ТЗ v2.0: breaking changes, решения v1.4 вошли без изменения смысла.
26
+ - CLI/UX, diagnostics и JSON-отчёт v2 зафиксированы.
27
+ - Переименование кода/пакета выполнено: `eggpipe`, `eggpipe.*`, `.eggpipe*`.
28
+ - Реализованы форматы/наследование, model units и слои, resources, decorator API,
29
+ `input_formats`/EG033, глобальный manifest/ownership/cleanup, CLI и JSON v2.
30
+ - TPC-H example переведён на `directory-per-model` и decorator API.
31
+
32
+ ## [0.1.0] - 2026-11-11
33
+
34
+ ### Added
35
+
36
+ - Ядро v0.1, первый слой: `ModelDocument`/`SourceModel`/`ModelSlice`, `FieldDef`, `EnumDef`,
37
+ `CustomType`, `UNSET`, YAML-парсер на `ruamel.yaml`, формат `entity-model`, семантический
38
+ валидатор, срезы с замыканием по enums/types и naming-утилиты.
39
+ - Writer: ownership, per-generator manifest, atomic write, lock, `--plan`/`--check`.
40
+ - `Engine` (`build()`/`generate()`/`check()`), `GeneratorPlugin` и контракты генераторов.
41
+ - CLI `mg`: `generate`, `init`, `config show/validate`, `model validate`, `gen list/info`,
42
+ `format list`, `clean`.
43
+ - Reference-плагин `examples/reference-generator` и golden-тест.
44
+ - v0.2: composition — `imports`, `entity.extends`, discovery каталогов, merge по ADR-0001,
45
+ project-root boundary и `--allow-outside-imports`.
46
+ - Cleanup owned-артефактов (`off|prompt|enabled`), `--clean`, MG050.
47
+ - `sources[].input` и MG014 (`updated_at`).
48
+ - v0.3: format-плагины из entry points, `mg watch`, JSON-отчёт, provenance-утилита,
49
+ `--plugin` для локальной разработки.
50
+ - Стабилизация: integration-тест watch, contract-тесты плагинов, security-тест symlink,
51
+ руководство `docs/plugin-guide.md`.
52
+ - ADR-0003 (null-семантика/UNSET), ADR-0004 (ownership/cleanup), ADR-0005 (library API),
53
+ ADR-0006 (format extension) и индекс ADR.
54
+ - `UNSET` больше не сериализуется как `default: null` — ключ опускается.
55
+ - `on_conflict: error` теперь даёт MG041 для любого существующего файла; `mg clean` берёт lock.
56
+ - Provenance на уровне entity: `Entity.source` заполняется парсером, исключён из сериализации;
57
+ `git_provenance()` доступен плагинам.
58
+ - Docs-site: `mkdocs.yml`, `docs/index.md`, сборка `mkdocs build --strict` в CI.
59
+ - Property-based тесты (Hypothesis) для парсера и round-trip; determinism-тест повторной генерации.
60
+ - Backlog P1/P2: `mg model schema`, `mg config schema`, единая точка logging,
61
+ интерактивный `mg clean --yes`, устойчивый plugin loader с issues, флаги watch.
62
+ - ТЗ v1.3: зарегистрированы MG030/MG300, диапазоны кодов и публичный API синхронизированы
63
+ с реализацией; `Entity.source` и fallback `cleanup: prompt`.
64
+ - TPC-H example: 8 таблиц, PostgreSQL DDL и Pydantic-модели; варианты одного/split генератора
65
+ на одном наборе `model/`; Jinja2-шаблоны с `options.templates_dir`.
66
+ - Опциональный `metadata_generator.templating` (extra `[jinja]`): загрузка Jinja2-окружения
67
+ и `render_template`, ядро не импортирует Jinja2 при старте.
68
+ - Каталог диагностик `docs/reference/diagnostics.md`.
69
+ - ТЗ v1.2: модель `ModelDocument` → `SourceModel` → `ModelSlice`, контракты плагинов,
70
+ ownership/manifest, CLI и диагностики.
71
+ - System Design v1.2 и ADR-0001 (семантика композиции).
72
+ - Agent harness: `AGENTS.md`, `opencode.json`, команды, skills и read-only `spec-reviewer`.
73
+ - Python-чекер документации `tools/check_docs.py` и docs-CI.
74
+ - Test harness: `pyproject.toml`, `uv.lock`, ruff, Pyrefly (strict), pytest, coverage.
75
+ - ADR-0002: Pyrefly вместо mypy.
76
+ - Delivery harness: сборка wheel/sdist, проверка артефактов и release-workflow.
77
+ - MIT License.
78
+
79
+ ### Fixed
80
+
81
+ - `Entity.updated_at` сохраняет `datetime` при JSON round-trip, включая значения на полночь.
@@ -0,0 +1,55 @@
1
+ # Contributing
2
+
3
+ Спасибо за интерес к `eggpipe`. Проект развивается по ТЗ и System Design, поэтому
4
+ изменения должны быть согласованы с документацией.
5
+
6
+ ## Перед началом
7
+
8
+ 1. Прочитай [README](./README.md), [ТЗ](./engineering/requirements/index.md) и
9
+ [System Design](./engineering/system-design/index.md).
10
+ 2. Проверь принятые решения в [ADR](./engineering/adr/).
11
+ 3. Для агентов действуют дополнительные правила в [AGENTS.md](./AGENTS.md).
12
+
13
+ ## Окружение
14
+
15
+ Проект использует Python 3.11+ и [uv](https://docs.astral.sh/uv/).
16
+
17
+ ```bash
18
+ uv sync --extra dev
19
+ ```
20
+
21
+ `uv.lock` коммитится. Для установки пакета пользователями остаётся `pip install eggpipe`.
22
+
23
+ Для basedpyright/Pyright в корне есть `pyrightconfig.json`: он задаёт src-layout, `extraPaths` и `.venv`.
24
+ Перед проверкой убедитесь, что окружение создано через `uv sync --extra dev`.
25
+
26
+ ## Проверки
27
+
28
+ Перед pull request:
29
+
30
+ ```bash
31
+ uv run ruff check .
32
+ uv run ruff format --check src tests tools examples
33
+ uv run pyrefly check
34
+ uv run pytest --cov
35
+ uv run python tools/check_docs.py --strict
36
+ uv build
37
+ uv run python tools/check_wheel.py dist
38
+ ```
39
+
40
+ Все проверки должны проходить. Покрытие ядра — не ниже 80%.
41
+
42
+ ## Документация
43
+
44
+ - `engineering/requirements/v1.0.md`–`v1.4.md` — история, не редактировать.
45
+ - Новое поведение оформляется новой версией ТЗ `vX.Y`, а не правкой текущей.
46
+ - Архитектурные решения — новый ADR в `engineering/adr/`, существующие ADR не переписываются.
47
+ - При изменении версии обнови `engineering/requirements/index.md`, System Design, README,
48
+ `.session-context.md` и harness-файлы, где указана актуальная версия.
49
+
50
+ ## Pull request
51
+
52
+ - Один PR — одна логическая задача.
53
+ - Добавляй тесты на новое поведение и запись в `CHANGELOG.md`.
54
+ - Не коммить `dist/`, `.venv/`, `.eggpipe/` и сгенерированные артефакты.
55
+ - Для изменений публичного API или контрактов плагинов — сначала обнови ТЗ и ADR.
eggpipe-0.3.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 The metadata-generator Authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
eggpipe-0.3.0/PKG-INFO ADDED
@@ -0,0 +1,251 @@
1
+ Metadata-Version: 2.5
2
+ Name: eggpipe
3
+ Version: 0.3.0
4
+ Summary: CLI tool and library for metadata-driven code generation
5
+ Project-URL: Homepage, https://github.com/SpiGit/eggpipe
6
+ Project-URL: Documentation, https://github.com/SpiGit/eggpipe/tree/main/docs
7
+ Project-URL: Repository, https://github.com/SpiGit/eggpipe
8
+ Project-URL: Changelog, https://github.com/SpiGit/eggpipe/blob/main/CHANGELOG.md
9
+ Project-URL: Issues, https://github.com/SpiGit/eggpipe/issues
10
+ License-Expression: MIT
11
+ License-File: LICENSE
12
+ Keywords: code-generation,metadata,pydantic,yaml
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.14
19
+ Classifier: Programming Language :: Python :: 3.15
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: >=3.11
22
+ Requires-Dist: pydantic-settings>=2.2.0
23
+ Requires-Dist: pydantic>=2.6.0
24
+ Requires-Dist: rich>=13.7.0
25
+ Requires-Dist: ruamel-yaml>=0.18.6
26
+ Requires-Dist: typer>=0.12.0
27
+ Requires-Dist: typing-extensions>=4.10.0
28
+ Provides-Extra: dev
29
+ Requires-Dist: hypothesis>=6.100.0; extra == 'dev'
30
+ Requires-Dist: jinja2>=3.1.0; extra == 'dev'
31
+ Requires-Dist: mkdocs>=1.6.0; extra == 'dev'
32
+ Requires-Dist: pyrefly>=1.4.0; extra == 'dev'
33
+ Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
34
+ Requires-Dist: pytest>=8.0.0; extra == 'dev'
35
+ Requires-Dist: ruff>=0.4.0; extra == 'dev'
36
+ Requires-Dist: watchdog>=4.0.0; extra == 'dev'
37
+ Provides-Extra: jinja
38
+ Requires-Dist: jinja2>=3.1.0; extra == 'jinja'
39
+ Provides-Extra: watch
40
+ Requires-Dist: watchdog>=4.0.0; extra == 'watch'
41
+ Description-Content-Type: text/markdown
42
+
43
+ # Eggpipe
44
+
45
+ <p align="center">
46
+ <picture>
47
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/SpiGit/eggpipe/main/docs/assets/brand/lockup/eggpipe-wordmark-dark.png">
48
+ <img src="https://raw.githubusercontent.com/SpiGit/eggpipe/main/docs/assets/brand/lockup/eggpipe-wordmark-light.png" alt="Eggpipe" width="420">
49
+ </picture>
50
+ </p>
51
+
52
+ > Инструмент для генерации артефактов (SQL, Python, TypeScript, etc.) из YAML-описания модели данных.
53
+
54
+ > **Статус: beta (0.x).** Проект находится в стадии бета-тестирования. До версии 1.0
55
+ > публичный API, CLI, формат `.eggpipe.yaml`, JSON-отчёт и генерируемые артефакты могут
56
+ > меняться без сохранения обратной совместимости. Для production фиксируйте версию и
57
+ > читайте `CHANGELOG.md`. Подробнее — [Статус и совместимость](https://github.com/SpiGit/eggpipe/blob/main/docs/user/status.md).
58
+
59
+ ## Концепция
60
+
61
+ **Один источник истины → произвольные форматы вывода.**
62
+
63
+ Описываете структуру данных один раз в YAML — получаете:
64
+ - SQL-миграции и схемы
65
+ - Python-модели (Pydantic, Django, SQLAlchemy, dataclasses)
66
+ - TypeScript-типы и Zod-схемы
67
+ - OpenAPI-спецификации
68
+ - Go-структуры
69
+ - И всё остальное через плагинную систему
70
+
71
+ Ключевые свойства:
72
+
73
+ - **Сущности изолированы**: базовая модель не знает о связях между ними — ядро остаётся нейтральным.
74
+ - **Нет встроенных генераторов**: все генераторы и все форматы (кроме базового `entity-model`) — плагины.
75
+ - **Модель — просто данные**: метаконфиг решает, что, из чего и куда генерировать.
76
+
77
+ ## Режимы использования
78
+
79
+ ### Как CLI
80
+
81
+ ```bash
82
+ pip install eggpipe
83
+ eggpipe generate model.yaml
84
+ eggpipe watch model.yaml
85
+ ```
86
+
87
+ ### Как библиотека
88
+
89
+ ```python
90
+ from eggpipe import Engine, AppConfig, ProjectConfigLoader
91
+
92
+ rules = ProjectConfigLoader().load(".eggpipe.yaml")
93
+ engine = Engine(AppConfig(), rules)
94
+
95
+ report = engine.build() # парсинг/валидация/генерация без записи
96
+ report = engine.generate() # build + запись артефактов
97
+ report = engine.check() # проверить актуальность без записи
98
+
99
+ if not report.success:
100
+ for d in report.diagnostics:
101
+ print(d.code, d.message)
102
+ ```
103
+
104
+ `Engine` не вызывает `sys.exit`, не настраивает root-logger и не пишет файлы в `build()` — это обычная библиотека. Детали — System Design §2.8.
105
+
106
+ ### Как библиотека + CLI (рекомендуемый сценарий)
107
+
108
+ **Сценарий:** Проект N подключает eggpipe как библиотеку, пишет свои плагины генерации, запускает через CLI.
109
+
110
+ 1. Подключение как зависимость:
111
+ ```toml
112
+ # pyproject.toml проекта N
113
+ [project]
114
+ dependencies = ["eggpipe"]
115
+ ```
116
+
117
+ 2. Плагин генерации:
118
+ ```python
119
+ # my_project/plugins.py
120
+ from eggpipe import Artifact, GeneratorConfig, GenerationContext, ModelSlice, generator
121
+
122
+ @generator(id="my-project-generator", input_formats={"entity-model"})
123
+ def my_project_generator(
124
+ model: ModelSlice,
125
+ context: GenerationContext,
126
+ config: GeneratorConfig,
127
+ ) -> list[Artifact]:
128
+ # model — замкнутый срез модели (entities/enums/types)
129
+ # context — variables, naming_hint, formats, импортированные файлы
130
+ # config — блок этого генератора из .eggpipe.yaml
131
+ return [Artifact(path="user.py", content=render(model.entities))]
132
+ ```
133
+
134
+ 3. Регистрация через entry points:
135
+ ```toml
136
+ # pyproject.toml проекта N
137
+ [project.entry-points."eggpipe.generators"]
138
+ my-project-generator = "my_project.plugins:my_project_generator"
139
+ ```
140
+
141
+ 4. Запуск:
142
+ - CLI: `eggpipe generate` — обнаруживает плагины из entry points
143
+ - Library: `engine.generate()` — тот же результат
144
+
145
+ **Примеры инструментов с такой архитектурой:** ruff, pytest, mypy.
146
+
147
+ Плагин также может регистрировать **формат документа** (например `sql-model` с SQL-спецификой и собственными правилами) — группа entry points `eggpipe.formats`.
148
+
149
+ ## Быстрый старт
150
+
151
+ ```bash
152
+ pip install eggpipe
153
+
154
+ # Для watch-режима
155
+ pip install "eggpipe[watch]"
156
+
157
+ # Для Jinja2-helper в плагинах
158
+ pip install "eggpipe[jinja]"
159
+
160
+ # Инициализация конфигурации
161
+ eggpipe init
162
+
163
+ # Генерация
164
+ eggpipe generate model.yaml
165
+ eggpipe generate --plan # посмотреть план без записи
166
+ eggpipe generate --check # проверить актуальность (CI)
167
+
168
+ # Режим watch
169
+ eggpipe watch model.yaml
170
+
171
+ # Разработка своего плагина — editable install
172
+ pip install -e ./plugins/my-generator
173
+ eggpipe gen list
174
+
175
+ # JSON Schema
176
+ eggpipe model schema
177
+ eggpipe config schema
178
+
179
+ # Очистка owned-артефактов
180
+ eggpipe clean --dry-run
181
+ eggpipe clean --yes
182
+
183
+ # Локальный плагин без установки
184
+ eggpipe generate --plugin ./my_plugin.py
185
+ ```
186
+
187
+ ## Разработка
188
+
189
+ ```bash
190
+ uv sync --extra dev
191
+
192
+ uv run ruff check .
193
+ uv run ruff format --check src tests tools examples
194
+ uv run pyrefly check
195
+ uv run pytest --cov
196
+ uv run python tools/check_docs.py --strict
197
+ uv build
198
+ uv run python tools/check_wheel.py dist
199
+ ```
200
+
201
+ Dev/CI используют [uv](https://docs.astral.sh/uv/) и закоммиченный `uv.lock`.
202
+ Для установки пакета пользователями остаётся `pip install eggpipe`.
203
+
204
+ Типизация — [Pyrefly](https://pyrefly.org/) в strict-режиме (встроенная поддержка Pydantic v2).
205
+ mypy не входит в блокирующий CI; решение зафиксировано в
206
+ [ADR-0002](./engineering/adr/0002-type-checker-pyrefly.md).
207
+
208
+ Для basedpyright/Pyright в корне лежит `pyrightconfig.json` (src-layout, `extraPaths`, `.venv`).
209
+ Перед проверкой выполните `uv sync --extra dev`.
210
+
211
+ ## Документация
212
+
213
+ Проверка согласованности документации:
214
+
215
+ ```bash
216
+ uv run python tools/check_docs.py --strict
217
+ ```
218
+
219
+ - [Документация](./docs/index.md) — пользователям и AI-агентам
220
+ - [Инженерная документация](./engineering/index.md) — ТЗ, ADR, System Design, ревью
221
+ - [Быстрый старт](./docs/user/quickstart.md)
222
+ - [Плагины](./docs/user/plugins.md)
223
+ - [Техническое задание](./engineering/requirements/index.md) — актуальная версия v2.2
224
+ - [System Design](./engineering/system-design/index.md)
225
+ - [ADR index](./engineering/adr/index.md)
226
+ - [ADR-0001: семантика композиции](./engineering/adr/0001-composition-merge-semantics.md)
227
+ - [ADR-0002: type checker — Pyrefly](./engineering/adr/0002-type-checker-pyrefly.md)
228
+ - [ADR-0003: null-семантика](./engineering/adr/0003-null-semantics.md)
229
+ - [ADR-0004: ownership и cleanup](./engineering/adr/0004-ownership-manifest-cleanup.md)
230
+ - [ADR-0005: library API](./engineering/adr/0005-library-api.md)
231
+ - [ADR-0006: расширение формата](./engineering/adr/0006-format-extension.md)
232
+ - [ADR-0007: наследование форматов](./engineering/adr/0007-format-inheritance.md)
233
+ - [ADR-0008: model units и раскладки источников](./engineering/adr/0008-model-units-and-source-layouts.md)
234
+ - [ADR-0009: глобальный manifest](./engineering/adr/0009-global-manifest-ownership.md)
235
+ - [ADR-0010: decorator API генераторов](./engineering/adr/0010-decorator-generator-api.md)
236
+ - [Ревью проекта (2026-11-10)](./engineering/reviews/2026-11-10-project-review.md)
237
+ - [Contributing](./CONTRIBUTING.md)
238
+ - [Changelog](./CHANGELOG.md)
239
+ - [Каталог диагностик](./docs/user/reference/diagnostics.md)
240
+ - [Релиз](./engineering/release.md)
241
+ - [TPC-H example](./examples/tpc-h/README.md)
242
+ - [Reference generator](./examples/reference-generator/README.md)
243
+
244
+ ## Лицензия
245
+
246
+ [MIT](./LICENSE).
247
+
248
+ ## Статус
249
+
250
+ **Стадия:** Eggpipe 0.3.0, ТЗ v2.2. Реализованы E0–E8 и E9: пакет/CLI/config/state,
251
+ форматы и слои, decorator API, глобальный manifest, CLI/JSON v2, CI и release workflow.
@@ -0,0 +1,209 @@
1
+ # Eggpipe
2
+
3
+ <p align="center">
4
+ <picture>
5
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/SpiGit/eggpipe/main/docs/assets/brand/lockup/eggpipe-wordmark-dark.png">
6
+ <img src="https://raw.githubusercontent.com/SpiGit/eggpipe/main/docs/assets/brand/lockup/eggpipe-wordmark-light.png" alt="Eggpipe" width="420">
7
+ </picture>
8
+ </p>
9
+
10
+ > Инструмент для генерации артефактов (SQL, Python, TypeScript, etc.) из YAML-описания модели данных.
11
+
12
+ > **Статус: beta (0.x).** Проект находится в стадии бета-тестирования. До версии 1.0
13
+ > публичный API, CLI, формат `.eggpipe.yaml`, JSON-отчёт и генерируемые артефакты могут
14
+ > меняться без сохранения обратной совместимости. Для production фиксируйте версию и
15
+ > читайте `CHANGELOG.md`. Подробнее — [Статус и совместимость](https://github.com/SpiGit/eggpipe/blob/main/docs/user/status.md).
16
+
17
+ ## Концепция
18
+
19
+ **Один источник истины → произвольные форматы вывода.**
20
+
21
+ Описываете структуру данных один раз в YAML — получаете:
22
+ - SQL-миграции и схемы
23
+ - Python-модели (Pydantic, Django, SQLAlchemy, dataclasses)
24
+ - TypeScript-типы и Zod-схемы
25
+ - OpenAPI-спецификации
26
+ - Go-структуры
27
+ - И всё остальное через плагинную систему
28
+
29
+ Ключевые свойства:
30
+
31
+ - **Сущности изолированы**: базовая модель не знает о связях между ними — ядро остаётся нейтральным.
32
+ - **Нет встроенных генераторов**: все генераторы и все форматы (кроме базового `entity-model`) — плагины.
33
+ - **Модель — просто данные**: метаконфиг решает, что, из чего и куда генерировать.
34
+
35
+ ## Режимы использования
36
+
37
+ ### Как CLI
38
+
39
+ ```bash
40
+ pip install eggpipe
41
+ eggpipe generate model.yaml
42
+ eggpipe watch model.yaml
43
+ ```
44
+
45
+ ### Как библиотека
46
+
47
+ ```python
48
+ from eggpipe import Engine, AppConfig, ProjectConfigLoader
49
+
50
+ rules = ProjectConfigLoader().load(".eggpipe.yaml")
51
+ engine = Engine(AppConfig(), rules)
52
+
53
+ report = engine.build() # парсинг/валидация/генерация без записи
54
+ report = engine.generate() # build + запись артефактов
55
+ report = engine.check() # проверить актуальность без записи
56
+
57
+ if not report.success:
58
+ for d in report.diagnostics:
59
+ print(d.code, d.message)
60
+ ```
61
+
62
+ `Engine` не вызывает `sys.exit`, не настраивает root-logger и не пишет файлы в `build()` — это обычная библиотека. Детали — System Design §2.8.
63
+
64
+ ### Как библиотека + CLI (рекомендуемый сценарий)
65
+
66
+ **Сценарий:** Проект N подключает eggpipe как библиотеку, пишет свои плагины генерации, запускает через CLI.
67
+
68
+ 1. Подключение как зависимость:
69
+ ```toml
70
+ # pyproject.toml проекта N
71
+ [project]
72
+ dependencies = ["eggpipe"]
73
+ ```
74
+
75
+ 2. Плагин генерации:
76
+ ```python
77
+ # my_project/plugins.py
78
+ from eggpipe import Artifact, GeneratorConfig, GenerationContext, ModelSlice, generator
79
+
80
+ @generator(id="my-project-generator", input_formats={"entity-model"})
81
+ def my_project_generator(
82
+ model: ModelSlice,
83
+ context: GenerationContext,
84
+ config: GeneratorConfig,
85
+ ) -> list[Artifact]:
86
+ # model — замкнутый срез модели (entities/enums/types)
87
+ # context — variables, naming_hint, formats, импортированные файлы
88
+ # config — блок этого генератора из .eggpipe.yaml
89
+ return [Artifact(path="user.py", content=render(model.entities))]
90
+ ```
91
+
92
+ 3. Регистрация через entry points:
93
+ ```toml
94
+ # pyproject.toml проекта N
95
+ [project.entry-points."eggpipe.generators"]
96
+ my-project-generator = "my_project.plugins:my_project_generator"
97
+ ```
98
+
99
+ 4. Запуск:
100
+ - CLI: `eggpipe generate` — обнаруживает плагины из entry points
101
+ - Library: `engine.generate()` — тот же результат
102
+
103
+ **Примеры инструментов с такой архитектурой:** ruff, pytest, mypy.
104
+
105
+ Плагин также может регистрировать **формат документа** (например `sql-model` с SQL-спецификой и собственными правилами) — группа entry points `eggpipe.formats`.
106
+
107
+ ## Быстрый старт
108
+
109
+ ```bash
110
+ pip install eggpipe
111
+
112
+ # Для watch-режима
113
+ pip install "eggpipe[watch]"
114
+
115
+ # Для Jinja2-helper в плагинах
116
+ pip install "eggpipe[jinja]"
117
+
118
+ # Инициализация конфигурации
119
+ eggpipe init
120
+
121
+ # Генерация
122
+ eggpipe generate model.yaml
123
+ eggpipe generate --plan # посмотреть план без записи
124
+ eggpipe generate --check # проверить актуальность (CI)
125
+
126
+ # Режим watch
127
+ eggpipe watch model.yaml
128
+
129
+ # Разработка своего плагина — editable install
130
+ pip install -e ./plugins/my-generator
131
+ eggpipe gen list
132
+
133
+ # JSON Schema
134
+ eggpipe model schema
135
+ eggpipe config schema
136
+
137
+ # Очистка owned-артефактов
138
+ eggpipe clean --dry-run
139
+ eggpipe clean --yes
140
+
141
+ # Локальный плагин без установки
142
+ eggpipe generate --plugin ./my_plugin.py
143
+ ```
144
+
145
+ ## Разработка
146
+
147
+ ```bash
148
+ uv sync --extra dev
149
+
150
+ uv run ruff check .
151
+ uv run ruff format --check src tests tools examples
152
+ uv run pyrefly check
153
+ uv run pytest --cov
154
+ uv run python tools/check_docs.py --strict
155
+ uv build
156
+ uv run python tools/check_wheel.py dist
157
+ ```
158
+
159
+ Dev/CI используют [uv](https://docs.astral.sh/uv/) и закоммиченный `uv.lock`.
160
+ Для установки пакета пользователями остаётся `pip install eggpipe`.
161
+
162
+ Типизация — [Pyrefly](https://pyrefly.org/) в strict-режиме (встроенная поддержка Pydantic v2).
163
+ mypy не входит в блокирующий CI; решение зафиксировано в
164
+ [ADR-0002](./engineering/adr/0002-type-checker-pyrefly.md).
165
+
166
+ Для basedpyright/Pyright в корне лежит `pyrightconfig.json` (src-layout, `extraPaths`, `.venv`).
167
+ Перед проверкой выполните `uv sync --extra dev`.
168
+
169
+ ## Документация
170
+
171
+ Проверка согласованности документации:
172
+
173
+ ```bash
174
+ uv run python tools/check_docs.py --strict
175
+ ```
176
+
177
+ - [Документация](./docs/index.md) — пользователям и AI-агентам
178
+ - [Инженерная документация](./engineering/index.md) — ТЗ, ADR, System Design, ревью
179
+ - [Быстрый старт](./docs/user/quickstart.md)
180
+ - [Плагины](./docs/user/plugins.md)
181
+ - [Техническое задание](./engineering/requirements/index.md) — актуальная версия v2.2
182
+ - [System Design](./engineering/system-design/index.md)
183
+ - [ADR index](./engineering/adr/index.md)
184
+ - [ADR-0001: семантика композиции](./engineering/adr/0001-composition-merge-semantics.md)
185
+ - [ADR-0002: type checker — Pyrefly](./engineering/adr/0002-type-checker-pyrefly.md)
186
+ - [ADR-0003: null-семантика](./engineering/adr/0003-null-semantics.md)
187
+ - [ADR-0004: ownership и cleanup](./engineering/adr/0004-ownership-manifest-cleanup.md)
188
+ - [ADR-0005: library API](./engineering/adr/0005-library-api.md)
189
+ - [ADR-0006: расширение формата](./engineering/adr/0006-format-extension.md)
190
+ - [ADR-0007: наследование форматов](./engineering/adr/0007-format-inheritance.md)
191
+ - [ADR-0008: model units и раскладки источников](./engineering/adr/0008-model-units-and-source-layouts.md)
192
+ - [ADR-0009: глобальный manifest](./engineering/adr/0009-global-manifest-ownership.md)
193
+ - [ADR-0010: decorator API генераторов](./engineering/adr/0010-decorator-generator-api.md)
194
+ - [Ревью проекта (2026-11-10)](./engineering/reviews/2026-11-10-project-review.md)
195
+ - [Contributing](./CONTRIBUTING.md)
196
+ - [Changelog](./CHANGELOG.md)
197
+ - [Каталог диагностик](./docs/user/reference/diagnostics.md)
198
+ - [Релиз](./engineering/release.md)
199
+ - [TPC-H example](./examples/tpc-h/README.md)
200
+ - [Reference generator](./examples/reference-generator/README.md)
201
+
202
+ ## Лицензия
203
+
204
+ [MIT](./LICENSE).
205
+
206
+ ## Статус
207
+
208
+ **Стадия:** Eggpipe 0.3.0, ТЗ v2.2. Реализованы E0–E8 и E9: пакет/CLI/config/state,
209
+ форматы и слои, decorator API, глобальный manifest, CLI/JSON v2, CI и release workflow.