Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/publish-csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: publish-csharp
# after validating GitHub's OIDC token against the trusted-publishing policy
# configured under the `metaobjects` org. See docs/RELEASING.md.
#
# Packages: MetaObjects, MetaObjects.Render, MetaObjects.Codegen, MetaObjects.Cli (dotnet tool).
# Packages: MetaObjects, MetaObjects.Render, MetaObjects.Codegen, MetaObjects.AspNetCore, MetaObjects.Cli (dotnet tool).
#
# One-time setup on nuget.org (your username -> Trusted Publishing -> Create):
# Package Owner: metaobjects (the org)
Expand Down Expand Up @@ -72,6 +72,7 @@ jobs:
dotnet pack server/csharp/MetaObjects/MetaObjects.csproj -c Release -o artifacts $VERSION_ARG
dotnet pack server/csharp/MetaObjects.Render/MetaObjects.Render.csproj -c Release -o artifacts $VERSION_ARG
dotnet pack server/csharp/MetaObjects.Codegen/MetaObjects.Codegen.csproj -c Release -o artifacts $VERSION_ARG
dotnet pack server/csharp/MetaObjects.AspNetCore/MetaObjects.AspNetCore.csproj -c Release -o artifacts $VERSION_ARG
dotnet pack server/csharp/MetaObjects.Cli/MetaObjects.Cli.csproj -c Release -o artifacts $VERSION_ARG
ls -l artifacts

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ cross-port versioning — **do not flag it** (only intra-port skew matters).
operators `eq/ne/gt/gte/lt/lte/in/like/isNull`) validated against the generated filter allowlist
(api-contract corpus, both lanes). **Flag a hand-rolled filter parser as a finding.** Only the
richer list surface (`?search=`, `filter[or][N]` / `filter[and][N]` combinators, leading-wildcard
gating; ADR-0068) passes in TypeScript and is pending in Kotlin until the Kotlin port's 1.3.0
gating; ADR-0068) passes in TypeScript and C#, and is pending in Kotlin until the Kotlin port's 1.3.0
REST-standard work lands — do NOT flag its absence in Kotlin until then.
- **No JVM migrate goal.** Schema migration is Node-`meta`-owned for every port
(ADR-0015). The Maven plugin has no migrate goal; `meta migrate` is correct.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ another) matters.
validated against the generated filter allowlist (api-contract corpus, both lanes). **Flag a
hand-rolled filter parser as a finding.** The richer list surface (`?search=`,
`filter[or][N]` / `filter[and][N]` combinators, leading-wildcard gating; ADR-0068) passes in
TypeScript and is pending in Python until the Python port's 1.3.0 REST-standard work lands — do
TypeScript and C#, and is pending in Python until the Python port's 1.3.0 REST-standard work lands — do
NOT flag its absence in Python until then.
- **Partial relationship + flattened-object codegen.** Relationship navigation,
non-`table` source kinds, and `field.object @storage: flattened` codegen are
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Per the always-on descriptor:
```bash
dotnet tool install --global MetaObjects.Cli # provides `dotnet meta`
dotnet add package MetaObjects.Codegen # the codegen generators
dotnet add package MetaObjects.AspNetCore # in the app: the helpers generated routes call
dotnet meta init # writes codegen/: Generators.cs, Program.cs, Codegen.csproj
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ to nothing, and does not check that each claimed node complies).
is **generated in all five ports** (api-contract corpus, both lanes) — **flag hand-rolled
filter parsing anywhere.** The richer list surface (`?search=`, explicit
`filter[or][N]` / `filter[and][N]` combinators, leading-wildcard gating; ADR-0068) passes in
TypeScript and is pending in each other port until its 1.3.0 REST-standard work lands — do not
TypeScript and C#, and is pending in each other port until its 1.3.0 REST-standard work lands — do not
flag its absence in a port before then.
Output-parser codegen also ships in **all five ports**, keyed on a **responding
`template.prompt`** (`@responseRef`), never on a `template.output` (ADR-0052) — Java's
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ via `metamodelVersion` (see the Phase 0 cross-language consistency item).

TypeScript is the reference implementation — it ships the full feature set:

- Filter-operator codegen: **complete** — the core `?filter[field][op]` grammar (all 9 operators `eq/ne/gt/gte/lt/lte/in/like/isNull`, `<Entity>FilterAllowlist`) generates in every port; the richer list surface (`?search=`, `filter[or][N]` / `filter[and][N]` combinators, leading-wildcard gating; ADR-0068) passes in TypeScript; each other port is pending until its 1.3.0 REST-standard work lands.
- Filter-operator codegen: **complete** — the core `?filter[field][op]` grammar (all 9 operators `eq/ne/gt/gte/lt/lte/in/like/isNull`, `<Entity>FilterAllowlist`) generates in every port; the richer list surface (`?search=`, `filter[or][N]` / `filter[and][N]` combinators, leading-wildcard gating; ADR-0068) passes in TypeScript and C#; each other port is pending until its 1.3.0 REST-standard work lands.
- Output-parser codegen: **complete** (`outputParser()` generator; `parse*`/`safeParse*`/`extract*` emitted as `<Name>.response.ts` per **responding `template.prompt`** — one carrying `@responseRef`; ADR-0052).
- ObjectManager: **complete** (`@metaobjectsdev/runtime-ts`; `kyselyDriver` / `inMemoryDriver`).
- Schema migrate / `meta verify --db`: **complete** (the Node CLI hosts the reference migration helper, one option for every port).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ app.Run();

Filter operators (`eq` `ne` `gt` `gte` `lt` `lte` `in` `like` `isNull`) ship via the
per-entity `<Entity>FilterAllowlist` (from `FilterAllowlistGenerator`); the generated list
handler calls the `FilterParser` / `EfCoreFilterDispatch` runtime helpers in
`MetaObjects.Codegen`, so your ASP.NET host references that assembly at runtime. After
handler calls the `ListQueryParser` / `EfCoreFilterDispatch` runtime helpers in the
`MetaObjects.AspNetCore` package, so your ASP.NET host references that package. After
`dotnet meta eject routes` it calls your own copies in `codegen/runtime/` (namespace
`Codegen.Runtime`) instead: compile that folder into the app and the reference goes away. The same
universal TS/Angular web client consumes those routes unchanged — the wire format matches
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ version across these packages is an intra-port skew finding.
(ADR-0015). `dotnet meta` has no migrate subcommand; `meta migrate` is correct.
- **Core filter-operator codegen ships in C# — do NOT treat it as deferred.** The `routes`
generator (`<Entity>Routes.cs`, Minimal API) generates the `?filter[field][op]=value` grammar
(all 9 operators `eq/ne/gt/gte/lt/lte/in/like/isNull`) via the runtime `FilterParser` +
(all 9 operators `eq/ne/gt/gte/lt/lte/in/like/isNull`) via the runtime `ListQueryParser` +
`EfCoreFilterDispatch`, validated against the generated filter allowlist (api-contract corpus,
both lanes). **Flag a hand-rolled filter parser as a finding.** The richer list surface
(`?search=`, `filter[or][N]` / `filter[and][N]` combinators, leading-wildcard gating; ADR-0068)
passes in TypeScript and is pending in C# until the C# port's 1.3.0 REST-standard work lands —
do NOT flag its absence in C# until then.
passes in TypeScript and C#; it is pending in each other port until that port's 1.3.0
REST-standard work lands — do NOT flag its absence in a port before then.
- **Output-parser codegen ships in C#.** `output-parser` / `extractor` / `render-helper`
generators are available (list `OutputParserGenerator` in `codegen/Generators.cs`). Absence of
wired output parsers where a **responding `template.prompt`** (`@responseRef`) exists IS a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
gated by the api-contract corpus in BOTH lanes. **Flag hand-rolled filter parsing anywhere.**
The *richer* list surface — free-text `?search=`, the explicit `filter[or][N]` /
`filter[and][N]` nested boolean combinators (+ their nesting-depth cap), and leading-wildcard
gating (ADR-0068) — passes in TypeScript and is **pending** in each other port until that port's
gating (ADR-0068) — passes in TypeScript and C#, and is **pending** in each other port until that port's
1.3.0 REST-standard work lands. Do NOT flag the absence of those in a port that has not landed
them yet.
- **Output-parser codegen** ships in **all five ports** — Java's `SpringOutputParserGenerator`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ versioning — **do not flag it** (only intra-port skew matters).
against the generated `<Entity>FilterAllowlist`, and 400s on unknown field / disallowed op /
over-cap `in`-list (api-contract corpus, both lanes). **Flag a hand-rolled filter parser as a
finding.** The *richer* list surface — `?search=`, `filter[or][N]` / `filter[and][N]`
combinators, leading-wildcard gating (ADR-0068) — passes in TypeScript and is pending in Java
until the Java port's 1.3.0 REST-standard work lands — do NOT flag its absence in Java until then.
combinators, leading-wildcard gating (ADR-0068) — passes in TypeScript and C#, and is pending in
Java until the Java port's 1.3.0 REST-standard work lands — do NOT flag its absence in Java until then.
- **Repository interface is a hand-implemented stub.** `SpringRepositoryGenerator`
emits `<Entity>Repository.java` as a stub `interface`; the consumer hand-writes the
implementation against OMDB (or any persistence layer). Hand-written repository
Expand Down
Loading
Loading