prophet-cli 0.6.1__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 (47) hide show
  1. prophet_cli-0.6.1/LICENSE +201 -0
  2. prophet_cli-0.6.1/PKG-INFO +317 -0
  3. prophet_cli-0.6.1/README.md +294 -0
  4. prophet_cli-0.6.1/pyproject.toml +42 -0
  5. prophet_cli-0.6.1/setup.cfg +4 -0
  6. prophet_cli-0.6.1/src/prophet_cli/__init__.py +0 -0
  7. prophet_cli-0.6.1/src/prophet_cli/__main__.py +4 -0
  8. prophet_cli-0.6.1/src/prophet_cli/cli.py +5453 -0
  9. prophet_cli-0.6.1/src/prophet_cli/codegen/__init__.py +23 -0
  10. prophet_cli-0.6.1/src/prophet_cli/codegen/artifacts.py +67 -0
  11. prophet_cli-0.6.1/src/prophet_cli/codegen/cache.py +49 -0
  12. prophet_cli-0.6.1/src/prophet_cli/codegen/contracts.py +21 -0
  13. prophet_cli-0.6.1/src/prophet_cli/codegen/pipeline.py +22 -0
  14. prophet_cli-0.6.1/src/prophet_cli/codegen/stack_manifest.py +254 -0
  15. prophet_cli-0.6.1/src/prophet_cli/codegen/stacks.py +156 -0
  16. prophet_cli-0.6.1/src/prophet_cli/core/__init__.py +47 -0
  17. prophet_cli-0.6.1/src/prophet_cli/core/compatibility.py +408 -0
  18. prophet_cli-0.6.1/src/prophet_cli/core/config.py +31 -0
  19. prophet_cli-0.6.1/src/prophet_cli/core/constants.py +18 -0
  20. prophet_cli-0.6.1/src/prophet_cli/core/errors.py +6 -0
  21. prophet_cli-0.6.1/src/prophet_cli/core/ir.py +296 -0
  22. prophet_cli-0.6.1/src/prophet_cli/core/ir_reader.py +192 -0
  23. prophet_cli-0.6.1/src/prophet_cli/core/models.py +131 -0
  24. prophet_cli-0.6.1/src/prophet_cli/core/parser.py +727 -0
  25. prophet_cli-0.6.1/src/prophet_cli/core/validation.py +273 -0
  26. prophet_cli-0.6.1/src/prophet_cli/targets/java_spring_jpa/__init__.py +10 -0
  27. prophet_cli-0.6.1/src/prophet_cli/targets/java_spring_jpa/generator.py +159 -0
  28. prophet_cli-0.6.1/src/prophet_cli.egg-info/PKG-INFO +317 -0
  29. prophet_cli-0.6.1/src/prophet_cli.egg-info/SOURCES.txt +45 -0
  30. prophet_cli-0.6.1/src/prophet_cli.egg-info/dependency_links.txt +1 -0
  31. prophet_cli-0.6.1/src/prophet_cli.egg-info/entry_points.txt +2 -0
  32. prophet_cli-0.6.1/src/prophet_cli.egg-info/requires.txt +1 -0
  33. prophet_cli-0.6.1/src/prophet_cli.egg-info/top_level.txt +1 -0
  34. prophet_cli-0.6.1/tests/test_cli_integration.py +358 -0
  35. prophet_cli-0.6.1/tests/test_codegen_artifacts.py +60 -0
  36. prophet_cli-0.6.1/tests/test_codegen_cache.py +77 -0
  37. prophet_cli-0.6.1/tests/test_codegen_pipeline.py +89 -0
  38. prophet_cli-0.6.1/tests/test_codegen_snapshots.py +253 -0
  39. prophet_cli-0.6.1/tests/test_core_delegation.py +46 -0
  40. prophet_cli-0.6.1/tests/test_core_ir_reader.py +83 -0
  41. prophet_cli-0.6.1/tests/test_dsl_features.py +122 -0
  42. prophet_cli-0.6.1/tests/test_generator_registry.py +27 -0
  43. prophet_cli-0.6.1/tests/test_java_target_ir_reader.py +111 -0
  44. prophet_cli-0.6.1/tests/test_semantic_contracts.py +83 -0
  45. prophet_cli-0.6.1/tests/test_stack_manifest.py +58 -0
  46. prophet_cli-0.6.1/tests/test_stack_matrix.py +89 -0
  47. prophet_cli-0.6.1/tests/test_version_sync.py +30 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Prophet Contributors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,317 @@
1
+ Metadata-Version: 2.4
2
+ Name: prophet-cli
3
+ Version: 0.6.1
4
+ Summary: Prophet ontology tooling CLI
5
+ Author: Prophet Contributors
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/Chainso/prophet
8
+ Project-URL: Repository, https://github.com/Chainso/prophet
9
+ Project-URL: Issues, https://github.com/Chainso/prophet/issues
10
+ Project-URL: Changelog, https://github.com/Chainso/prophet/blob/main/prophet-cli/CHANGELOG.md
11
+ Keywords: ontology,codegen,dsl,spring,openapi
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Topic :: Software Development :: Code Generators
18
+ Requires-Python: >=3.10
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: PyYAML>=6.0
22
+ Dynamic: license-file
23
+
24
+ # prophet-cli
25
+
26
+ `prophet-cli` is the tooling package for Prophet's ontology workflow:
27
+
28
+ 1. Parse DSL (path configured via `project.ontology_file`)
29
+ 2. Validate model semantics
30
+ 3. Build canonical IR (`.prophet/ir/current.ir.json`) including versioned `query_contracts`
31
+ 4. Generate deterministic artifacts (`gen/sql`, `gen/openapi`, `gen/migrations`, `gen/spring-boot`)
32
+ 5. Check compatibility against baseline IR
33
+
34
+ ## Install
35
+
36
+ From PyPI:
37
+
38
+ ```bash
39
+ python3 -m pip install --upgrade prophet-cli
40
+ prophet --help
41
+ ```
42
+
43
+ From source (editable):
44
+
45
+ From repo root:
46
+
47
+ ```bash
48
+ python3 -m venv .venv --system-site-packages
49
+ .venv/bin/pip install --no-build-isolation -e ./prophet-cli
50
+ ```
51
+
52
+ Run via venv script:
53
+
54
+ ```bash
55
+ .venv/bin/prophet --help
56
+ ```
57
+
58
+ ## Commands
59
+
60
+ ### `prophet init`
61
+ Creates starter `prophet.yaml` and internal `.prophet` directories.
62
+
63
+ ```bash
64
+ prophet init
65
+ ```
66
+
67
+ ### `prophet validate`
68
+ Parses + validates ontology references, IDs, states/transitions, action contracts, list types, and action/event/trigger links.
69
+
70
+ ```bash
71
+ prophet validate
72
+ ```
73
+
74
+ ### `prophet plan`
75
+ Computes deterministic file changes without writing files.
76
+
77
+ ```bash
78
+ prophet plan
79
+ prophet plan --show-reasons
80
+ prophet plan --json
81
+ ```
82
+
83
+ ### `prophet check`
84
+ Runs a CI-style gate in one command:
85
+ 1. ontology validation
86
+ 2. generated output cleanliness check
87
+ 3. compatibility/version-bump check against baseline IR
88
+
89
+ ```bash
90
+ prophet check
91
+ prophet check --show-reasons
92
+ prophet check --json
93
+ prophet check --against .prophet/baselines/main.ir.json
94
+ ```
95
+
96
+ `--json` emits structured diagnostics for CI bots and automation.
97
+
98
+ ### `prophet stacks`
99
+ Lists supported stack ids, framework/ORM pairings, implementation status, and capability metadata.
100
+ Entries come from a schema-validated stack manifest.
101
+ Schema reference: `docs/prophet-stack-manifest-schema-v0.1.md`.
102
+
103
+ ```bash
104
+ prophet stacks
105
+ prophet stacks --json
106
+ ```
107
+
108
+ ### `prophet hooks`
109
+ Lists generated extension hook surfaces from `gen/manifest/extension-hooks.json`.
110
+ Useful for wiring user-owned implementations against generated interfaces.
111
+ Safety/reference docs:
112
+ - `docs/prophet-extension-hooks-safety-v0.1.md`
113
+
114
+ ```bash
115
+ prophet hooks
116
+ prophet hooks --json
117
+ ```
118
+
119
+ ### `prophet generate` / `prophet gen`
120
+ Writes generated artifacts and current IR.
121
+
122
+ ```bash
123
+ prophet generate
124
+ prophet gen
125
+ prophet gen --skip-unchanged
126
+ ```
127
+
128
+ Also syncs generated Spring artifacts into `examples/java/prophet_example_spring` when present.
129
+
130
+ Stack selection is configured in `prophet.yaml`:
131
+
132
+ ```yaml
133
+ generation:
134
+ stack:
135
+ id: java_spring_jpa
136
+ ```
137
+
138
+ Current generator implementation supports artifact generation for `java_spring_jpa`.
139
+ Other declared stacks are validated and reserved for upcoming target implementations.
140
+ Allowed `generation.stack` keys are: `id`, `language`, `framework`, `orm`.
141
+
142
+ Equivalent tuple form is also supported:
143
+
144
+ ```yaml
145
+ generation:
146
+ stack:
147
+ language: java
148
+ framework: spring_boot
149
+ orm: jpa
150
+ ```
151
+
152
+ Default generated targets:
153
+ - `sql`
154
+ - `openapi`
155
+ - `spring_boot`
156
+ - `flyway`
157
+ - `liquibase`
158
+ - `manifest` (generated file ownership + hashes)
159
+
160
+ When baseline IR differs from current IR, Prophet also emits delta migration artifacts:
161
+ - `gen/migrations/flyway/V2__prophet_delta.sql`
162
+ - `gen/migrations/liquibase/prophet/0002-delta.sql`
163
+ - `gen/migrations/delta/report.json`
164
+
165
+ Delta SQL includes safety flags and warnings (`destructive`, `backfill_required`, `manual_review`) as comments.
166
+ Delta report JSON includes:
167
+ - `summary` counts (`safe_auto_apply_count`, `manual_review_count`, `destructive_count`)
168
+ - structured `findings` entries with classification and optional suggestions
169
+ - heuristic rename hints (`object_rename_hint`, `column_rename_hint`) for manual migration planning
170
+
171
+ Generated ownership manifest:
172
+ - `gen/manifest/generated-files.json`
173
+ - includes stack metadata and deterministic hashes for generated outputs
174
+
175
+ Generated extension hook manifest:
176
+ - `gen/manifest/extension-hooks.json`
177
+ - lists generated extension points (for example action handler interfaces + default classes)
178
+
179
+ Spring runtime migration wiring is auto-detected from the host Gradle project:
180
+ - if Flyway dependency/plugin is present, Prophet syncs Flyway resources
181
+ - if Liquibase dependency/plugin is present, Prophet syncs Liquibase resources
182
+ - if neither is present, migration files are still generated under `gen/migrations/**` but not auto-wired into Spring runtime resources
183
+
184
+ ### `prophet gen --wire-gradle`
185
+ Auto-wires the current Gradle project as a multi-module setup:
186
+ - adds `:prophet_generated` in `settings.gradle.kts`/`settings.gradle`
187
+ - maps it to `gen/spring-boot`
188
+ - adds app dependency `implementation(project(\":prophet_generated\"))` in `build.gradle.kts`
189
+
190
+ ```bash
191
+ prophet gen --wire-gradle
192
+ ```
193
+
194
+ Wiring is idempotent (safe to run repeatedly).
195
+
196
+ ### `prophet generate --verify-clean`
197
+ CI mode. Fails if committed generated files differ from current generation.
198
+
199
+ ```bash
200
+ prophet generate --verify-clean
201
+ ```
202
+
203
+ ### `prophet gen --skip-unchanged`
204
+ Skips no-op regeneration when the current config + IR signature matches the last successful generation cache.
205
+
206
+ - cache file: `.prophet/cache/generation.json`
207
+ - ignored when `--wire-gradle` is used
208
+ - incompatible with `--verify-clean`
209
+
210
+ ```bash
211
+ prophet gen --skip-unchanged
212
+ ```
213
+
214
+ ### `prophet clean`
215
+ Removes generated artifacts from current project.
216
+
217
+ Default removals:
218
+ - `gen/`
219
+ - `.prophet/ir/current.ir.json`
220
+ - `.prophet/cache/generation.json`
221
+ - `src/main/java/<base_package>/<ontology_name>/generated`
222
+ - `src/main/resources/application-prophet.yml`
223
+ - `src/main/resources/schema.sql` (only if it looks generated)
224
+ - `src/main/resources/db/migration/V1__prophet_init.sql` (if generated)
225
+ - `src/main/resources/db/migration/V2__prophet_delta.sql` (if generated)
226
+ - `src/main/resources/db/changelog/**` Prophet-managed generated files, including `0002-delta.sql`
227
+ - Gradle multi-module wiring for `:prophet_generated` in `settings.gradle(.kts)` and `build.gradle(.kts)`
228
+
229
+ ```bash
230
+ prophet clean
231
+ prophet clean --verbose
232
+ prophet clean --remove-baseline
233
+ prophet clean --keep-gradle-wire
234
+ ```
235
+
236
+ ### `prophet version check`
237
+ Compares current IR against baseline and reports compatibility + required bump.
238
+
239
+ ```bash
240
+ prophet version check --against .prophet/baselines/main.ir.json
241
+ ```
242
+
243
+ Compatibility rules used by CLI are documented in:
244
+ - `docs/prophet-compatibility-policy-v0.2.md`
245
+
246
+ ## Expected Project Files
247
+
248
+ - `prophet.yaml`
249
+ - `<your ontology file>` (configured in `project.ontology_file`)
250
+ - `.prophet/baselines/main.ir.json`
251
+ - `.prophet/ir/current.ir.json` (generated)
252
+ - `gen/` (generated)
253
+
254
+ ## DSL Notes
255
+
256
+ - Field types support scalars, custom types, object refs (`ref(User)`), lists (`string[]`, `list(string)`), and reusable `struct` types.
257
+ - Nested list types are supported (for example `string[][]`, `list(list(string))`).
258
+ - Description metadata supports both `description "..."` and `documentation "..."`.
259
+ - Object keys support field-level and object-level declarations:
260
+ - `key primary`
261
+ - `key primary (fieldA, fieldB)` (composite)
262
+ - `key display (...)` (metadata marker)
263
+ - Generated Java record component order follows DSL field declaration order.
264
+ - Actions are not auto-implemented; generated endpoints call handler beans.
265
+ - Generated action services (`generated.actions.services.*`) are the API boundary used by controllers.
266
+ - Default generated services delegate to handler beans; generated default handler stubs throw `UnsupportedOperationException` until user handlers are provided.
267
+
268
+ ## Config (`prophet.yaml`)
269
+
270
+ Required keys currently used by CLI:
271
+
272
+ ```yaml
273
+ project:
274
+ ontology_file: path/to/your-ontology.prophet
275
+ generation:
276
+ out_dir: gen
277
+ targets: [sql, openapi, spring_boot, flyway, liquibase]
278
+ spring_boot:
279
+ base_package: com.example.prophet
280
+ boot_version: 3.3
281
+ compatibility:
282
+ baseline_ir: .prophet/baselines/main.ir.json
283
+ strict_enums: false
284
+ ```
285
+
286
+ Note: generated Spring package root is `<base_package>.<ontology_name>`.
287
+
288
+ ## Release Prep
289
+
290
+ - Release process: `prophet-cli/RELEASING.md`
291
+ - Changelog: `prophet-cli/CHANGELOG.md`
292
+ - Version sync is test-enforced between:
293
+ - `prophet-cli/pyproject.toml` `[project].version`
294
+ - `prophet-cli/src/prophet_cli/cli.py` `TOOLCHAIN_VERSION`
295
+
296
+ ## Development Notes
297
+
298
+ - Entry point module: `src/prophet_cli/cli.py`
299
+ - Console script: `prophet`
300
+ - No-op benchmark script: `scripts/benchmark_noop_generation.py`
301
+ - Spring query APIs generated by v0.1 include:
302
+ - `GET /<objects>/{id}` for single-field primary keys
303
+ - `GET /<objects>/{k1}/{k2}/...` for composite primary keys
304
+ - `GET /<objects>` with pagination/sort only
305
+ - `POST /<objects>/query` with typed filter DSL (`eq`, `in`, `gte`, `lte`, `contains`) for all filtering
306
+ - list responses returned as generated `*ListResponse` DTOs (no raw Spring `Page` payload)
307
+ - Generated Spring query layer now uses dedicated `generated.mapping.*DomainMapper` classes for entity-to-domain mapping.
308
+ - Example Spring app includes both `h2` (default) and `postgres` runtime profiles with context tests for both.
309
+
310
+ ## Contributing
311
+
312
+ - See root contribution guide: `CONTRIBUTING.md`
313
+ - Open contributor backlog: `CONTRIBUTING.md` (`Open Items`)
314
+
315
+ ## License
316
+
317
+ Apache-2.0. See `LICENSE`.