Repository navigation
feat!: finish the 1.3.0 codegen move — writer-only TypeScript, non-Long JVM/Python keys, every port on the xpkg corpus - #678
Merged
Conversation
…and xpkg corpora The Python loader now ports the TypeScript origin.function, dotted-path origin.computed, correlated origin.first filter, grain passthrough and derived-cycle checks, so error-origin-function-free-sql and projection-view-vocabulary-rc21 pass and the expected-failures ledger is empty. A bare @from on a projection resolves in the file's default package. The generated key-types api-contract lane and the xpkg-value-object-refs codegen corpus now run in Python; the docs no longer claim single-int keys.
fixtures/api-contract-conformance/key-types/ drives generated CRUD for a client-assigned uuid, natural string and int primary key. It runs in the C#, Rust and TypeScript generated lanes. C# found that a Guid key's routes did not compile (no using System); the key type is now spelled global::System.Guid. Removes the obsolete C# ValueObjectNames.Names shim and the string forms of XmlDocBuilder (AppendTo, Indent, Prepend); output is unchanged.
… page The docs, the agent-context skills and their shipped copies no longer describe docsFile(), the classic site, the legacy generator markers, formatTs or the Biome owned-copy comparison as current. A new upgrade page covers owned 1.2 generator copies, which no longer load.
mountCrudRoutes (Fastify and Hono) read the key from the id column, so an entity keyed on a natural code or an int rank answered every item route with a 500. The mounts take idColumn, and the generated routes pass it when the key field has another name (the key-types corpus found it). Also adds the changelog fragments for the removals and fixes so far.
…oet and the 1.2 shims
TypeScript codegen is writer-only. Removed:
- docsFile() / "docs" and its builders, templates and corpora; meta gen
names the removal and points at docsSiteFile() and agentDocsFile();
meta init --with-docs wires docsSiteFile() and apiDocsFile()
- the classic docs site (docsSiteFile({ site: "classic" }) now throws)
- the vendored ts-poet printer (poet.ts) and its exports; every template,
client-directive and the requirement-test scaffolds write through
TsWriter, and api-doc-render.ts through the code writer
- the nine legacy Generator markers, provides.modelDocs and the name
fallbacks; the runner refuses a generator still setting a marker
- formatTs, the ts-poet import rewrite and the Biome owned-copy compare
Generated CRUD routes pass idColumn for a key not named id. The metamodel
index page now names the explorer. Owned 1.2 generator copies must be
re-ejected; contract-types output changes layout only.
…e install budget The CLI install is 12 MB smaller (34.6 MB from 46.6 MB) now that the owned-copy compare runs no formatter and nothing imports ts-poet.
…cific Closes #549's two rows. A type can carry ports, the type-level twin of the attr marker, for vocabulary that is language-specific by nature and never pending: the generic view.* controls are ports [typescript] (the TS client tier serves every backend) and @object is ports [java, kotlin]. The rc.21 view vocabulary is implementedIn csharp, python, typescript now that Python validates it. Every port still loads all of it strictly; the manifest, the metamodel docs (a 'Language-specific to' line) and meta types read the new field. Also regenerates the agent-context conformance corpus for the 1.3 skill edits, re-syncs the example owned copies for idColumn, and rewrites the CONFORMANCE.md split-coverage entry.
…docs writer Java and Kotlin run the key-types api-contract corpus in their generated lanes (uuid, string and int keys). The Kotlin controller writes an assigned key from the body on create. The Java entity generator writes same-named types from two packages fully qualified instead of refusing the model, and Java and Kotlin run xpkg-value-object-refs. KotlinApiDocsRenderer moves onto KotlinWriter, byte for byte. CONFORMANCE.md records the key-types sub-corpus on every port and the xpkg corpus on every port but Rust.
- Kotlin: a TPH subtype create with an assigned key 400s a body that omits it (invalid_type), instead of a 500 from dto.pk!!. - C#: M:N traversal routes over uuid junction keys spell the key type global::System.Guid, as the item routes do; WriteReadId's comment is back above it. - TS: meta gen warns about a generator copy that carries a shipped name and declares no provides at all (SHIPPED_PROVIDES_BY_NAME, held to the shipped generators by a cli test); runtime-ts tests idColumn on both mounts. - The install-size gates no longer describe a vendored printer. - CI: one change per changelog fragment, the api-contract count 191, site-reference rebuilt, the install budget set 0.5 MB above the measurement (still 11.5 MB under main's), and the showcase regenerated (layout only: the Kotlin and Python writers).
The Python and Kotlin site excerpts follow the regenerated showcase (layout only), and the comment on undeclaredProvides names the test that holds it, ui-tier-marker-parity.test.ts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Finishes the 1.3.0 codegen move: TypeScript generation now runs only through the code writer (ADR-0063), and the old codegen is gone. The PR also fixes non-Long primary keys on the JVM and in Python, runs the cross-package value-object corpus in every port, and removes the last C# shims.
Refs #547
Refs #549
Removed
TypeScript printer and shims:
poet.ts) and every tagged-template importer;format.tsshim (formatTs, a no-op);emitsEntityModule,emitsQueries,emitsNames,emitsReportExport,emitsUiTier,emitsHonoRoutes,mountsRoutes,emitsApiDocs,emitsModelDocs,provides.modelDocs);Docs generators:
docs-file.tsand its builders);requirements.toonandagent/requirements.mdrender exactly as before. A config that still lists a removed docs generator now failsmeta genwith an error that names it and its replacement.Owned 1.2 shims:
Owned 1.2 copies that import poet names no longer compile.
docs/features/migrations/owned-generators-1.2-to-1.3.mdcovers the upgrade.Dependencies: Biome, ts-poet and
yaml(the last fromdocs-site). The install-size budget comes down by about 11.5 MB.C#: the
ValueObjectNames.Namesshim and the string forms ofXmlDocBuilder.Converted to the writers
client-directive.tsnow useTsWriter. Code that spliced one fragment into another uses the writer's fragments:frag,joinFrags,importName,importType,Frag,TsImport.KotlinWriter.D fixes
key-types/sub-corpus (12 scenarios) proves it in the generated lane on every port, Rust included.KNOWN_GAPSentries are updated.main. The full Java, Kotlin and Python suites pass on this branch.portsin the registry.view.*is TypeScript-only, and@object/@objectAdapterare Java/Kotlin-only. Nothing in them is shown as pending in another port.docs/CONFORMANCE.mdnow says which vocabulary is cross-port but not yet in every port and which is language-specific. The rc.21origin.functionattributes stay recorded as pending in Java and Kotlin.xpkg-value-object-refsruns in every port except Rust, which has no generator for it.docs/CONFORMANCE.mdis updated.Output changes that are not layout
Every other diff in the generated output and the showcase is layout from the writers.
idnow passesidColumn: "<key>", andruntime-tsaddresses that column. Before this, every item route on such an entity answered 500.global::System.Guid.long.invalid_typeinstead of 500.site-reference/is rebuilt to match.meta eject --list: a statement re-wrapped across lines now readsDIFFERS. The Biome pass used to hide it.meta genwarning: a generator copy that keeps a shipped name but declares noprovidesstill runs, andmeta gennow warns, naming the declaration the shipped generator makes. A CLI test checks the name-to-providestable against the shipped generators.meta init --with-docs: wires the generator-based docs instead of the removed classic site.contract-types: the layout of the emitted file changed. Its content did not.Tests
The full
scripts/ci-local.shran once on every lane. After the fixes, the lanes those fixes touched ran again: ts, csharp, java (with Kotlin), rust and gates.MetaObjects.Codegen.Tests2047 passed, 1 skippedcargo publish --dry-runpassesmypy: the Python package reports 202 errors on this branch and on
mainalike. This PR adds no new errors. #547 lists only 3 known errors, so that baseline is out of date.Releases: #547's "done when" also asks for the ports to be released. Publishing is not part of this PR.
Validation: not run through no-mistakes.
🤖 Generated with Claude Code