diff --git a/.claude/skills/releasing/SKILL.md b/.claude/skills/releasing/SKILL.md index 826e14a148..b298a752ee 100644 --- a/.claude/skills/releasing/SKILL.md +++ b/.claude/skills/releasing/SKILL.md @@ -39,7 +39,7 @@ Do not bump or publish anything until every check is green. Print each result. | **CI green on the exact release SHA** | `gh run list --branch main --limit 5`; `gh pr checks <#>` | all required checks `pass` on `HEAD` — not "passed sometime" | | Published vs local version | `npm view @metaobjectsdev/cli dist-tags.latest`; compare to `package.json` | you know current `latest` and the target bump | | **Target version is free** | `npm view @metaobjectsdev/cli@ version` (a 404 = free); `git tag -l v` | the target version is NOT already published or tagged (npm versions are permanent — a taken version can never be reused) | -| CHANGELOG ready | `sed -n '1,20p' CHANGELOG.md` | an entry exists or you will add one (see Phase 8) | +| CHANGELOG ready | `sed -n '1,20p' CHANGELOG.md`; `ls changelog.d/` | an entry or a fragment exists, or you will add one (see Phase 8). `release.mjs` assembles the `changelog.d/` fragments into `[Unreleased]`; `node scripts/changelog-fragments.mjs --assemble` does it by hand | | **`metamodelVersion` moved if the metamodel did** | `node scripts/check-metamodel-version.mjs` | exit 0. It diffs `expected-registry.json` against the last release tag and fails if the vocabulary changed without the version moving. Read its PROSE warning too — a rule can change with no machine-readable footprint (#210 changed only a `rules` string). Fix with `--set `; detail with `--explain`. | | **You CAN publish** | `npm whoami` | prints your username (see the note under this table) | diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 84b5c52d74..27fc1392e3 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -11,6 +11,7 @@ - [ ] Named constants used for metamodel strings; no `any` (TS) - [ ] **Public-repo hygiene:** no private/other-project names, personal info, or absolute local paths — in code, docs, fixtures, **or commit messages** - [ ] Docs updated if behavior/CLI changed +- [ ] User-visible change: a changelog fragment added under `changelog.d/` (not an edit to `CHANGELOG.md`; see `changelog.d/README.md`) ## Notes for reviewers diff --git a/AGENTS.md b/AGENTS.md index 8149e58836..bc1185979e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -68,9 +68,9 @@ PyPI has had no product change since `0.25.0` — nothing is broken. **All five ports ship loader + canonical serializer + conformance + codegen + render + payload-VO + `verify`:** - **TypeScript** — `codegen-ts` (Vite-style plugins; Drizzle, Zod, Fastify) + `runtime-ts` + `migrate-ts` + the universal web client packages (`runtime-web`, `react`, `tanstack`). -- **C#** — `MetaObjects` (loader + canonical serializer + conformance) + `MetaObjects.Render` (Mustache + payload-VO + `verify`) + `MetaObjects.Codegen` (EF Core entities + `AppDbContext` + CRUD minimal-API routes). Schema migrations are TS-owned (ADR-0015): the C# migrate engine and the `migrate`/`--from-db` CLI surface were removed; the C# CLI is codegen (`init`/`gen`/`eject`), `verify` and `fmt` only, packaged as a .NET tool invoked **`dotnet meta`** (not a bare `meta` — that name belongs to the Node schema CLI). EF Core runtime data-access stays per-port. -- **Java** — `metadata` + `omdb` + `om` + `core-spring` + `metadata-ktx` (Kotlin facade) + `codegen-spring` (Spring controllers + DTOs + repositories + filter allowlists + payload records + output parsers) + `codegen-mustache` + `codegen-plantuml` + `render` + `maven-plugin` (`metaobjects:generate`/`metaobjects:editor` + a `metaobjects:verify` **codegen-drift** goal — distinct from the removed live-DB `metaobjects:verify`; Kotlin generators run through `metaobjects:generate` via the shared SPI). FR-003 (OMDB runtime persistence + binding registry + typed jsonb + Spring-tx + source/origin metamodel) fully shipped, including Plan 4 (engine-debt remediation: atomic mapping cache, JDBC codec registry, `inTransaction` template). **Schema migrations are owned by the TypeScript toolchain** (`@metaobjectsdev/cli migrate`); the Java port's diff-and-converge migration engine and its `metaobjects:migrate` / live-DB-drift `metaobjects:verify` Maven goals were removed, and per ADR-0015 Decision 2 the dev/test runtime auto-create path (`MetaClassDBValidatorService` + the drivers' `createTable`/`createIndex`/`createForeignKey`/`createSequence` DDL) is **also** removed — **OMDB is pure data-access** (CRUD/query/codec/transactions only). -- **Python** — `metaobjects` (loader + canonical serializer + conformance + render + verify + codegen) + an `ObjectManager` runtime layer. The `migrate` module was removed (schema is TS-owned, ADR-0015); Python is pure data-access (codegen + ObjectManager runtime), with a **`metaobjects` console-script** (`gen`/`verify` codegen — no `migrate`). All five conformance corpora green. +- **C#** — `MetaObjects` (loader + canonical serializer + conformance) + `MetaObjects.Render` (Mustache + payload-VO + `verify`) + `MetaObjects.Codegen` (EF Core entities + `AppDbContext` + CRUD minimal-API routes). Schema migrations run in EF Core Migrations or the Node `meta migrate` reference helper (ADR-0015): the C# migrate engine and the `migrate`/`--from-db` CLI surface were removed; the C# CLI is codegen (`init`/`gen`/`eject`), `verify` and `fmt` only, packaged as a .NET tool invoked **`dotnet meta`** (not a bare `meta` — that name belongs to the Node schema CLI). EF Core runtime data-access stays per-port. +- **Java** — `metadata` + `omdb` + `om` + `core-spring` + `metadata-ktx` (Kotlin facade) + `codegen-spring` (Spring controllers + DTOs + repositories + filter allowlists + payload records + output parsers) + `codegen-mustache` + `codegen-plantuml` + `render` + `maven-plugin` (`metaobjects:generate`/`metaobjects:editor` + a `metaobjects:verify` **codegen-drift** goal — distinct from the removed live-DB `metaobjects:verify`; Kotlin generators run through `metaobjects:generate` via the shared SPI). FR-003 (OMDB runtime persistence + binding registry + typed jsonb + Spring-tx + source/origin metamodel) fully shipped, including Plan 4 (engine-debt remediation: atomic mapping cache, JDBC codec registry, `inTransaction` template). **Schema migrations run in the project's own tool or the reference migration helper** (`@metaobjectsdev/cli migrate`); the Java port's diff-and-converge migration engine and its `metaobjects:migrate` / live-DB-drift `metaobjects:verify` Maven goals were removed, and per ADR-0015 Decision 2 the dev/test runtime auto-create path (`MetaClassDBValidatorService` + the drivers' `createTable`/`createIndex`/`createForeignKey`/`createSequence` DDL) is **also** removed — **OMDB is pure data-access** (CRUD/query/codec/transactions only). +- **Python** — `metaobjects` (loader + canonical serializer + conformance + render + verify + codegen) + an `ObjectManager` runtime layer. The `migrate` module was removed (migrations run in the project's own tool or the Node `meta migrate` reference helper, ADR-0015); Python is pure data-access (codegen + ObjectManager runtime), with a **`metaobjects` console-script** (`gen`/`verify` codegen — no `migrate`). All five conformance corpora green. - **Kotlin** — `codegen-kotlin` (KotlinPoet on JVM): entity + Exposed table + Spring controller + payload + relations + filter allowlist + validator + stored-proc + output-parser generators. `integration-tests-kotlin` runs the persistence-conformance corpus through Exposed against Testcontainers Postgres. **Cross-port conformance corpora** (every port runs the shared corpus): @@ -264,7 +264,7 @@ import { EntityFetcherProvider, EntityGrid } from "@metaobjectsdev/tanstack"; - **TS runtime**: Bun-first for development (zero-config TS, native test runner). Node-compatible for distribution; users install via npm/pnpm/bun without lock-in to Bun's runtime. - **Module system**: ESM only. No CommonJS, no transpile step required. - **Storage format**: JSON files in `metaobjects/meta..json` at project root. `.metaobjects/.gen-state/` holds the codegen merge base: the snapshot **bodies are gitignored** (a second full copy of all generated output), but **`.hashes/` (one file per model package) is COMMITTED** — one hash per generated path, and the only thing that lets `meta gen` tell "this file is exactly what I wrote" from "somebody edited this" on a machine that did not generate it. Ignore it and a fresh clone or CI runner silently overwrites hand edits; commit it and an edited file is refused by name instead. -- **Codegen substrate**: the vendored ts-poet printer (`codegen-ts/src/poet.ts`) for greenfield emit, ts-morph for in-place edits, no formatter in generation (the generator's writer lays out the text, ADR-0063), `git merge-file --diff3` for hand-edit-preserving regen. +- **Codegen substrate**: the code writer (`codegen-ts/src/writer/`, ADR-0063) for greenfield emit, ts-morph for in-place edits, no formatter in generation (the generator's writer lays out the text, ADR-0063), `git merge-file --diff3` for hand-edit-preserving regen. - **Runtime substrate**: Kysely for TS (user-provided connection, async-only). - **Migration substrate**: Postgres + SQLite for TS v0.3. - **Metadata location**: resolved via `resolveCollection()` (`@metaobjectsdev/sdk`) — the single authority. `metaobjects/` is the **default value of `sources`** and nothing else: no other module, command or user-facing message may assert that a directory of that name exists or is where metadata lives. Exactly five sites may name it — `sdk/src/metadata-files.ts` (`DEFAULT_METADATA_DIR`, its single definition), `sdk/src/sources.ts` (`DEFAULT_SOURCES`, **the** default), `sdk/src/collection.ts` (inside `resolveCollection`, *applying* that default), `sdk/src/index.ts` (the barrel re-export of the constant, no use), and `cli/src/commands/init.ts` (the scaffolder **writing** the layout). Enforced by `sdk/test/no-hardcoded-metadata-dir.test.ts`, whose allowlist demands a written reason per entry. See [docs/features/metadata-sources.md](docs/features/metadata-sources.md). @@ -437,11 +437,12 @@ meta types [] --format json|toon # what vocabulary this build actually reg meta fmt [...] [--check] # rewrite metadata into canonical form; --check lists drift (#304, every port) ``` -The above is the **Node `meta`** (schema + TS codegen). Each non-TS port runs +The above is the **Node `meta`** (schema commands + TS codegen). Each non-TS port runs codegen through its own build tool — `dotnet meta gen`/`verify` (C#), `mvn metaobjects:generate`/`:verify` (Java/Kotlin), `metaobjects gen`/`verify` -(Python). Schema (`migrate`, `verify --db`) is Node-`meta`-only. `fmt` is the -one exception to "codegen is per-port, schema is Node-only" — every port ships +(Python). The schema commands (`schema`, `migrate`, `verify --db`) are Node-`meta`-only; +`meta migrate` is the reference migration helper, one option beside each language's own +tool. `fmt` is the one exception to "codegen is per-port, schema commands are Node-only" — every port ships its own canonical serializer already, so `fmt` runs locally everywhere: `dotnet meta fmt` (C#), `mvn metaobjects:fmt` (Java/Kotlin), `metaobjects fmt` (Python). Full matrix + rationale: [docs/features/cli.md](docs/features/cli.md) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8e3bf9fd00..630b683d58 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -36,8 +36,11 @@ conformance corpora. This guide covers how to propose changes. unit and conformance tests of the ports your change touches (`pr-ci.yml`); the docker integration suites run on release tags and on manual dispatch — see the *Local CI* section below. -4. Open a **pull request** against `main` and fill out the PR template. -5. A maintainer reviews the change and the checks on the pull request before merge. Who can +4. If users would notice the change, add a changelog entry as a new file under + [`changelog.d/`](changelog.d/README.md). Do not edit `CHANGELOG.md` directly: the release + folds the fragments into it. +5. Open a **pull request** against `main` and fill out the PR template. +6. A maintainer reviews the change and the checks on the pull request before merge. Who can approve what, and which changes need a core maintainer, is in [GOVERNANCE.md](GOVERNANCE.md#how-decisions-are-made). @@ -144,7 +147,12 @@ a selection without running anything. The flagless run above is unchanged and is The full run does its tree-writing steps first (install, the drift gates, one workspace build), then runs the rest as parallel lanes: at most `MO_CI_JOBS` at once, default 8. Each lane's output prints as one block when the lane finishes, so lanes never interleave. The -summary gives every step's time, the slowest steps and each lane's wall time. `--quick` and +summary gives every step's time, the slowest steps and each lane's wall time. A waiting lane +starts only while the machine has `MO_CI_LANE_MIN_FREE_MB` of memory available (default +8192, plus as much again for each lane started in the last 30 seconds; `0` turns it off), so +a run on a busy machine queues its lanes. Without that check the run drove the machine down +to the out-of-memory killer, and a killed test host looked like a test crash. +`scripts/test-ci-lane-memory.sh` (in the `gates` lane) pins the rule. `--quick` and `--only` run serially. `MO_CI_PY_WORKERS` (default 8), `MO_CI_TS_WORKERS` (default 6) and `MO_CI_JVM_FORKS` (default 3) set the worker counts for pytest-xdist, the TypeScript integration suite and the TypeScript `codegen-ts` conformance suite, and the JVM diff --git a/README.md b/README.md index fa659e4d84..768cbff558 100644 --- a/README.md +++ b/README.md @@ -170,7 +170,7 @@ first-week wedge plan — and `meta init` picks up from there. | Java | **Maven Central `8.2.0`** (`com.metaobjects:*` — the JVM major is npm major + 7) — loader + OMDB + render + Maven plugin all shipped; full conformance green | [`docs/ports/java.md`](docs/ports/java.md) | [`server/java/`](server/java/) | | Kotlin | **Maven Central `8.2.0`** — codegen tier on top of Java: 17 generators (entity, Exposed table, names, relations, repository, output-parser, output-prompt, render-helper, extractor, filter-allowlist, validator, Spring config, storedProc, Spring controller, requirement-tests, api-docs, report-export); 24 / 24 persistence-conformance | [`docs/ports/kotlin.md`](docs/ports/kotlin.md) | [`server/java/codegen-kotlin/`](server/java/codegen-kotlin/) · [`server/java/metadata-ktx/`](server/java/metadata-ktx/) | | C# | **NuGet `1.2.0`** — loader + conformance + EF Core codegen + render engine + `dotnet meta` CLI all shipped | [`docs/ports/csharp.md`](docs/ports/csharp.md) | [`server/csharp/`](server/csharp/) | -| Python | **PyPI `1.2.0`** — loader + conformance + render + entity-model codegen + ObjectManager runtime shipped; schema migrations are TS-owned (ADR-0015) | [`docs/ports/python.md`](docs/ports/python.md) | [`server/python/`](server/python/) | +| Python | **PyPI `1.2.0`** — loader + conformance + render + entity-model codegen + ObjectManager runtime shipped; schema migrations in your own tool or the Node `meta migrate` reference helper (ADR-0015) | [`docs/ports/python.md`](docs/ports/python.md) | [`server/python/`](server/python/) | | Rust | **Crates ready to publish, not yet published** — loader (JSON + YAML), project and source resolution, naming and all 41 validation passes; 584 / 584 metamodel conformance; prompt render and the reply parser (`metaobjects-render`); `cargo meta init` / `gen` / `verify` / `eject` with the `entity`, `client` and `commands` generators (ADR-0065). Schema migrations stay with the Node `meta` tool | [`docs/ports/rust.md`](docs/ports/rust.md) | [`server/rust/`](server/rust/) | ## Capability matrix diff --git a/agent-context-shipped/README.md b/agent-context-shipped/README.md index 3b9cb07462..3c79759608 100644 --- a/agent-context-shipped/README.md +++ b/agent-context-shipped/README.md @@ -27,22 +27,26 @@ files/.md each distinct file once, named by its content hash | Key | Meaning | |---|---| -| `schema` | The manifest's shape, `1`. Refuse a manifest whose schema you do not know. | +| `schema` | The manifest's shape, `2`. Refuse a manifest whose schema you do not know. | | `docsRef` | The git ref every guide link in the files is pinned to (`main`). | | `docsLinkPrefix` | What comes before the ref in a guide link: the repository's `.../blob/`. | | `skillsDir` | The directory every skill's path starts with (`.claude/skills`). | -| `stacks` | One entry per stack: `id`, `servers`, `clients`, and `files`, each a `path` (relative to the project root) and the `file` under `files/` it copies. | +| `stacks` | One entry per stack: `id`, `servers`, `clients`, `migration`, and `files`, each a `path` (relative to the project root) and the `file` under `files/` it copies. | The stacks are every server language alone (`typescript`, `java`, `kotlin`, `csharp`, `python`, `rust`) and Java with Kotlin together (one Maven goal serves both), each with every client -choice: none, `react`, `react` with `tanstack`, and `angular`. +choice: none, `react`, `react` with `tanstack`, and `angular`. Each of those is shipped twice: +without and with the reference migration helper's steps (`migration: true`), which the +always-on file carries only for a project that chose a `meta migrate` dialect. ## What a port's command does 1. **Find the stack.** Its id is the server languages, then the clients, each in this order and joined by `-`: servers `typescript, java, kotlin, csharp, python, rust`; clients `react, tanstack, angular`. So `--server kotlin --server java --client tanstack --client react` - is `java-kotlin-react-tanstack`. Refuse a stack with no entry, and name the ids that exist. + is `java-kotlin-react-tanstack`. When the project's `.metaobjects/config.json` sets + `migrate.dialect`, append `-migrate`: `java-kotlin-react-tanstack-migrate`. Refuse a stack + with no entry, and name the ids that exist. 2. **Pin the links.** In every file, replace each `docsLinkPrefix + docsRef + "/"` with `docsLinkPrefix + + "/"`, where `` is the release tag: `v` and the release's npm-line version, so 1.3.0 is `v1.3.0` (Maven's 8.3.0 is also `v1.3.0`: its major is the npm diff --git a/agent-context-shipped/files/22c4d86c67650ab0.md b/agent-context-shipped/files/003a2dff540a3c7b.md similarity index 98% rename from agent-context-shipped/files/22c4d86c67650ab0.md rename to agent-context-shipped/files/003a2dff540a3c7b.md index b39b6d6862..937f26fa4f 100644 --- a/agent-context-shipped/files/22c4d86c67650ab0.md +++ b/agent-context-shipped/files/003a2dff540a3c7b.md @@ -1,8 +1,9 @@ # Java port — audit reference The Java port targets Spring Boot consumers on Maven. Codegen runs as a build-time -Maven plugin goal (`mvn metaobjects:generate`). Schema migration and live-DB drift -are **Node-`meta`-only** (ADR-0015) — the Maven plugin has no migrate goal. +Maven plugin goal (`mvn metaobjects:generate`). Schema migration is the project's own +tool (Flyway, Liquibase) or the Node `meta migrate` reference helper, and live-DB drift is +the Node `meta verify --db` (ADR-0015) — the Maven plugin has no migrate goal. The runtime persistence tier is **OMDB** (`metaobjects-omdb`, `com.metaobjects.manager.db.ObjectManagerDB`). diff --git a/agent-context-shipped/files/0132834de586f051.md b/agent-context-shipped/files/0132834de586f051.md new file mode 100644 index 0000000000..b8454b5732 --- /dev/null +++ b/agent-context-shipped/files/0132834de586f051.md @@ -0,0 +1,89 @@ +# Working with MetaObjects in this project + +> Stack: java server, angular client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Java: generate with `mvn metaobjects:generate` + +1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator + list, one `` each, under `` pointing at the metadata. + Nothing is generated until it is listed; the build names any generator a listed one needs. + Which classes to list (the Spring REST tier, requirement tests, API docs) is in the + `metaobjects-codegen` skill's `references/java.md`. +2. **Generate.** `mvn metaobjects:generate`. `mvn metaobjects:eject -Dnames= -Dport=java` + copies a generator to change what it emits. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `mvn metaobjects:verify` (the generated code and the requirements). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/0440a95faf89e271.md b/agent-context-shipped/files/0440a95faf89e271.md deleted file mode 100644 index 6f0302b540..0000000000 --- a/agent-context-shipped/files/0440a95faf89e271.md +++ /dev/null @@ -1,225 +0,0 @@ ---- -name: metaobjects-runtime-ui -description: Use when wiring MetaObjects generated code into an app — runtime queries/CRUD, REST routes, and the web client (forms, grids, filters). ---- - -# Wiring MetaObjects runtime + web client - -This skill is the procedure for putting generated code to work: querying/persisting -through the runtime tier, serving the REST contract, and consuming it from the -universal web client. It is port-agnostic — the cross-cutting contracts are here; -the server- and client-specific imports/types live in reference fragments (see -the table below). - -## Reference files — open the ones for your stack - -Only the files for the servers and clients in this project's stack are installed. Read your -server language's file and your client framework's file before wiring anything. - -| File | Open it when | -|---|---| -| `references/typescript.md`, `references/java.md`, `references/kotlin.md`, `references/csharp.md`, `references/python.md` | the project's server language is that one: the runtime and REST specifics | -| `references/react.md` | the web client is React | -| `references/tanstack.md` | the web client uses TanStack Query or Table (grids, hooks, filters) | - -## The runtime return-type contract - -A port's runtime returns **native in-process language types**, never wire strings. -Query the runtime and you get back the language's natural type for each field: - -- `field.decimal` → the language's exact-decimal type (`BigDecimal` / `decimal` / - `Decimal`). Decimal is **lossless end-to-end** — no float round-tripping. -- temporal fields → native date/instant types. -- `field.object` (jsonb) → a native map/object. -- **TypeScript is the documented outlier: `field.decimal` is a `string`** in the - TS runtime (JS has no native exact decimal), preserving precision as text. - -Wire canonicalization (integer minor units for currency, ISO-8601 strings for -temporals, canonical hex for UUID) is applied only at the **serialization -boundary** — when a row leaves over HTTP — never inside the runtime query path. So: -compute with native types in-process; the HTTP layer handles wire encoding. - -## Generated repo / query helpers take the context as a parameter - -Generated finders and CRUD helpers **do not** reach for a module-level `db` -singleton. They take the persistence context (connection / session / data-access -handle) as an explicit **parameter**. You own the connection's lifecycle and pass -it in: - -``` -const rows = await findPostsForAuthor(db, authorId); // db is passed, not imported -``` - -This keeps generated code free of global state, makes it testable, and lets one -process talk to multiple databases (multi-tenant, read-replica). Construct/own the -context in your app; thread it through every generated call. - -## Physical names come from the generated names artifact, never a literal - -The runtime tier is where the code codegen leaves to you gets written — a repository -implementation, a raw query, a migration script, a log line — and that is where a table -or column name gets respelled. Don't. A physical name is declared **once**, in metadata -(`@table` / `@view` / `@column` / `@schema`), and every port emits a per-object names -artifact carrying it: `ProgramNames.fields.createdAt.column` on TypeScript, -`ProgramNames.CreatedAtColumn` on C#, `ProgramNames.CREATED_AT_COLUMN` on the JVM, -`PROGRAM_CREATED_AT_COLUMN` on Python. Reference it. `@column` is free-form — -`callPurpose` may live in `purpose_code` — so deriving a column from the field name is a -guess that fails silently, and a literal is a second spelling of a fact the metadata -owns: rename the column in metadata and the constant follows, the literal does not, and -nothing tells you. - -**Prefer a typed handle where one exists.** A Drizzle column object, an Exposed `Column`, -an EF Core property is type-checked against the schema; swapping it for a string constant -trades a compile error for a runtime one. The constants are for the places with no -handle: raw SQL, a string-keyed query builder, and a hand-written repository on a port -whose generated model carries no persistence binding at all (Java, Python). Your server -reference names the handle and the artifact for this stack. - -**First check the artifact exists — it is opt-in on EVERY port, and an existing project -almost certainly has none.** Every port's generator list is now the COMPLETE list: C# and -Python dropped their default suites (ADR-0034 Amendment 2), TypeScript's `generators: []` -starts empty, and the JVM's `` never had a default. Upgrading the package -never edits a config that was written earlier, so `names` arrives only when someone wires -it. Look for `.names.ts` / `Names` in the generated output before you -write `ProgramNames.fields.x.column` against it; if it is not there, wiring the generator -is the first step and the `metaobjects-codegen` skill says how. Writing raw SQL -with literal names because "there is no constant" is the loop this closes. - -## The REST contract - -Generated (or hand-written) routes speak one cross-port HTTP contract so the same -universal web client serves any backend language. One part of the path grammar — -the `` collection segment — is a known cross-port divergence (below); -the verbs, filters, sort/pagination, and wire format are uniform. - -### URL grammar - -`apiPrefix` (default `/api`, set in project config) flows to both the server routes -and the client fetch URLs. - -The `` collection segment is the **entity name `snake_case`d and then -pluralized** — one rule, identical in all five ports, and derived from the NAME, -never from the physical `@table`: - -| Name | Segment | Rule | -|---|---|---| -| `Author` | `authors` | a single regular word takes `s` | -| `PostCategory` | `post_categories` | multi-word: the capitals carry the word boundary | -| `Address` | `addresses` | ending `s`/`x`/`z`/`ch`/`sh` takes `es` | -| `Category` | `categories` | consonant + `y` becomes `ies` | -| `Day` | `days` | a VOWEL before the `y` does not | -| `HTTPServer` | `http_servers` | a run of capitals stays together until the final one that begins a word | - -An `object.projection` uses the same rule, so `OrderSummary` is at -`/order_summaries` either way. The generated web-client hooks and grids build -their fetch URLs from the TypeScript `$path`, and every backend now mounts that -same spelling, so a React/TanStack client works against any port's server. -A view-backed `object.report` has a generated list route at the same rule and, in -TypeScript, a generated list hook named `use` + the plural of the report's name -(`useMemberUtilizations` for `MemberUtilization`; `useList` only when the plural is -the name itself, as in `useSeriesList`); it has no grid, form or detail hook. - -**This is a change, and it was a breaking one.** Each port used to spell the -segment differently and they agreed only on single regular words — which was -every collection base in the corpus, so all five lanes were green while -`OrderSummary` was served at four different URLs: `/order_summaries` (TS entity), -`/order-summaries` (TS projection), `/ordersummaries` (C#) and `/ordersummarys` -(Java, Kotlin, Python). A project whose entity names are all single regular words -saw nothing move. Any multi-word or irregular-plural name had its collection URL -renamed, and clients had to follow. - -The rule is gated, not just documented: `fixtures/api-contract-conformance/m2m/` -declares `PostCategory` — multi-word AND ending consonant+`y`, so it separates -every spelling the ports used to produce — and asserts both retired spellings -404, on each port's reference AND generated lane. The JVM ports share one -implementation (`RouteNaming` in `codegen-base`); the acronym case is pinned by -unit test in each port, since no corpus entity carries one. - -| Verb | Path | Purpose | -|---|---|---| -| `GET` | `//?filter[...][...]=...&sort=...&limit=N&offset=N&withCount=1` | List | -| `GET` | `///:id` | Get by id | -| `POST` | `//` | Create (201) | -| `PATCH` | `///:id` | Update (partial) | -| `PUT` | `///:id` | Update (replace) — optional | -| `DELETE` | `///:id` | Delete (204) | - -### Filter operators by field subtype - -Filters use a bracketed qs: `filter[][]=`. A bare -`filter[]=` is sugar for `eq`. The operator set is **gated by field -subtype** via the generated `FilterAllowlist` — an unsupported operator for -a field → HTTP 400. - -| Operator | Strings | Numbers / Dates | Booleans | -|---|---|---|---| -| `eq`, `ne`, `isNull` | yes | yes | `eq` + `isNull` only | -| `in`, `like` | yes | `in` only | – | -| `gt`, `gte`, `lt`, `lte` | – | yes | – | - -These nine (`eq` `ne` `gt` `gte` `lt` `lte` `in` `like` `isNull`) are the whole -closed set — every port implements these and only these. - -### Sort + pagination - -- `sort=:asc|desc` — single sort key; the field must be in - `SortAllowlist`. -- `limit=N` / `offset=N` — page size + offset, identical across every endpoint. -- `withCount=1` — switches the list response from `[...]` to - `{ rows: [...], total: N }` (grids always send it). - -### Wire format - -JSON bodies (`application/json; charset=utf-8`). Single-row responses (`GET /:id`, -`POST`, `PATCH`, `PUT`) have **no envelope** — the body is the row. Type encodings: - -| Field type | JSON | Notes | -|---|---|---| -| `field.string` / `field.uuid` / `field.enum` | string | UUID is canonical hex `8-4-4-4-12` | -| `field.int` / `field.long` / `field.double` | number | `long` may be string on overflow (per-port) | -| `field.boolean` | boolean | | -| `field.date` | string | ISO 8601 `YYYY-MM-DD` | -| `field.timestamp` | string | ISO 8601 with timezone | -| `field.currency` | **integer minor units** | cents/yen; float arithmetic forbidden; server never formats | -| `field.object` | object | per the sub-object schema | - -The currency invariant is load-bearing: integer minor units on the wire, always. -Formatting happens client-side with locale-aware code. - -Errors: non-2xx returns `{ "error": "", "message"?: "..." }`. 400 for -validation/filter-parser errors, 404 for not-found (`{ "error": "not_found" }`), -5xx implementation-defined. Treat any 4xx as user-facing, any 5xx as retryable. - -## The EntityFetcher browser contract - -The web client never calls `fetch` directly. Every generated hook delegates to a -single `EntityFetcher` you supply once at the app root: - -```ts -export type EntityFetcher = (path: string, init?: RequestInit) => Promise; -``` - -Your fetcher resolves the `path` (always starting with `apiPrefix`) to a full URL, -attaches auth (cookie / bearer / API key) per your policy, parses the JSON, and -throws on non-2xx (the hooks rely on the throw for error state). Provide it via the -fetcher-provider at the tree root; every generated hook reads it from context. The -generated grid and form components, filter-qs serializer, and cell renderers all -sit on top of this one seam. - -## Grids are opt-in per entity - -Read/CRUD hooks are generated for **every** entity. Grids are the exception: -wherever your stack generates them (the TanStack client today), an entity produces -grid artifacts only when it declares a `layout.dataGrid` child. So wiring the grid -generator and seeing no grid files is expected metadata, not a broken build — the -run says so in its `meta gen` warnings. Opt an entity in with: - -```jsonc -{ "layout.dataGrid": { "name": "default", "@columns": ["name", "email"] } } -``` - -Generated grid components are fully **controlled** — they need row-count and -sort/pagination/filter state on top of the column definitions — so pair the columns -generator with the grid-**hook** generator, which generates that state plumbing -instead of leaving you to hand-write it. Your client's reference fragment has the -generator names and a rendered example. diff --git a/agent-context-shipped/files/08e1de86f82554ae.md b/agent-context-shipped/files/08e1de86f82554ae.md new file mode 100644 index 0000000000..f0c6361c25 --- /dev/null +++ b/agent-context-shipped/files/08e1de86f82554ae.md @@ -0,0 +1,244 @@ +--- +name: metaobjects-verify +description: Use when checking a MetaObjects project for drift or changing its database schema — running and reading `meta verify` (--db, --codegen, --templates, --deps), emitting and applying migrations with `meta migrate`, fixing a model that will not load after an upgrade (`meta upgrade`), and interpreting conformance or test failures. +--- + +# MetaObjects verify + migrations + +Metadata is the source of truth; generated code, the database schema and prompt text are +derived from it. `verify` finds where a derived artifact has stopped matching, and +`meta migrate` brings the database back in line. + +## Essentials + +- **Run a bare `meta verify` before you call MetaObjects work done, and `meta verify --db + ` after anything that touched the schema.** A bare run covers the code gates only; the + database gate is opt-in, and a skipped gate did not guard the build. +- **Each language's own migration tool is first-class; `meta migrate` is the reference + helper, one option.** Hand your tool the schema `npx meta schema` prints, or let `meta migrate` + emit the SQL. `meta verify --db` checks the live database whichever tool migrated it, in every + port. Codegen and template drift run through each port's own build tool (table below). +- **Never change a live database by hand.** The schema is derived like generated code: change + the metadata, then migrate (`meta migrate` or your own tool). A column added in `psql` is in + no migration, so the next migration fails on it or quietly diverges. +- **A failure almost always means the metadata changed and a derived artifact did not + follow.** Fix the artifact (regenerate, migrate) or the metadata, not the gate. +- **A model that does not load is not drift.** A retired name is a load error with no + compatibility shim; `meta upgrade` rewrites it. +- **`verify` proves the artifacts match the model, never that the model is right.** A + consistently wrong model passes clean; guard those rules with a ratchet lint. + +## Reference files + +| File | Open it when | +|---|---| +| `references/migration.md` | emitting or applying a migration, baselining, a first migration on a new database, view ownership (`@sql` / `@unmanaged`) | +| `references/requirements.md` | the project declares `requirement.*` nodes, or a requirement diagnostic appears in a run | +| `references/upgrading.md` | before upgrading MetaObjects, or when the project runs more than one port | + +## What drifts + +- **Database against metadata**: a column the metadata no longer declares, a missing index, a + type mismatch. A modeled projection's view body is compared too. +- **Generated code against metadata**: committed generated code is not what the current + metadata would emit (someone skipped a regen, or edited a generated file). +- **Prompt text against payload**: a template references a `{{field}}` that is not on its + `@payloadRef` value object, so a renamed field quietly degrades a prompt. +- **A dependency's artifact against the lock file** (`--deps`). + +Migrations cannot drift from metadata: they are emitted from a metadata diff. + +One view case `verify --db` cannot see. A view body `origin.*` cannot express (a recursive +CTE, a window function) is declared with `source.rdb` `@sql` and stays drift-checked; a +database object owned elsewhere (Flyway, another application) is marked `@unmanaged: true` and +reported as external. A hand-written view carrying neither marker is reported as +informational and never failed, so an undeclared view standing in for an expressible +`object.projection` gets past this gate; the `metaobjects-audit` skill is what finds it. +`references/migration.md` has the full contract. + +## The model has to load first: `meta upgrade` + +`verify` cannot report drift in a model it could not read. The registry is sealed, so a +retired name has no deprecation shim: it is a load error (`ERR_UNKNOWN_ATTR` and the like) and +the run stops before the first drift check. Loosening strictness does not bring the name back. +Retirements an existing project meets: `@readOnly` became `@mutability`; `origin.collection` +became `origin.aggregate @agg: collect`; on `requirement.*`, `@violation` became +`@counterexample` and `@verifiedBy`, `@supersededBy` and `@status: abandoned | superseded` +were retired; an index key declaring both `@fields` and `@expr` is refused. + +``` +meta upgrade # previews every rewrite; writes nothing +meta upgrade --apply # makes them +``` + +It is Node-only because it edits the metadata documents every port shares: a Java, Python or +C# project runs `npx meta upgrade` against its own sources, canonical JSON and YAML alike. It +fixes only what has one correct answer and refuses the rest with a non-zero exit, so a +pipeline cannot record a partial migration as done. `references/requirements.md` says what it +refuses on a requirement ledger. + +A stale dependency snapshot is also a load failure, in every command: +`ERR_DEPENDENCY_SNAPSHOT_STALE` names the fix, `meta deps sync`. + +## A bare `meta verify` + +In every port a bare run covers codegen drift, prompt-template drift, the requirement ledger +and the business-rules gate. `--db `, `--deps` and `--replay` are opt-in. A run skips a +gate it has no configuration for and says so (Node `meta` with no `metaobjects.config.ts`, +Python with no `metaobjects.config.yaml`, `dotnet meta` with no `--out ` or +`codegen/Generators.cs`, Maven with no `templateRoot`). Node `meta verify` ends every run with +a `not run:` line naming each gate it skipped and the flag that selects it. Read that line. + +Three advisory passes ride along. None fails the build, and each finding names its fix: + +- **Anti-pattern pass** (also on every `meta gen`): flags hand-written code the metadata could + model and names the construct that replaces it. A hand-written aggregate (`AVG`, a + `reduce` sum) → `origin.aggregate` on an `object.projection`; money as a float → `field.currency`; + a `CHECK (... IN ...)` value set → `field.enum`. It is how a build that declares a + projection but still aggregates by hand in a route gets noticed: model it and call the + generated query. +- **Requirements**: requirements are metadata, so they are checked on every run with no + subverb. The severity of a broken link depends on the requirement's `@status` + (`references/requirements.md`). +- **Overlay lint**: a top-level node declared in two or more files where more than one + declaration lacks `overlay: true`. One unflagged declaration is the base; each further one + is a finding, because that is the state that forks into a second, disconnected object when + the target is renamed, where a flagged overlay would fail loudly with + `ERR_OVERLAY_NO_TARGET`. Mute with `--no-overlay-lint`. + +**Read the whole report.** Text output caps each advisory section at 20 lines and says how +many it held back (`--limit `, `--limit all`). On a pipe the default format is TOON: one +machine-readable document on stdout with every gate's verdict and every finding, uncapped, +and narration on stderr (`--format json` for JSON). A pass that did not run reports +`status: "skipped"` and why, so an empty list means "found nothing", never "did not look". + +## The drift checks + +- **`--db`**: introspects the live database and fails if it has diverged from the metadata. + Node `meta` only, for every port and whatever tool migrated the database; the other ports' + `verify` rejects `--db` with exit 2. +- **`--codegen`**: regenerates in memory and compares with the committed generated files, so a + skipped regen fails the build. + + **A hand edit inside a generated file is reported apart from drift.** The Node gate judges + the generated contribution against the committed `.metaobjects/.gen-state/.hashes/`, then + lists each generated file carrying a hand edit. Whether that list fails the build is + `verify.handEdits` in `.metaobjects/config.json`: `"fail"` exits 1 (what `meta init` writes + for a new project); `"notice"`, and a project without the key, exits 0, so a weakened + validator passes there. Check the key. `--forbid-hand-edits` forces `fail` for one run and + `--allow-hand-edits` relaxes it for one run. To see one edit: delete the file, run + `meta gen` (it re-emits the pristine generation), then `git diff -R -- `; + `git checkout -- ` restores it. If the edit changed a rule the model declares (a + length, a range, a required field), make the change in the metadata so the database and + every port follow it. An `.names.ts` artifact always fails on a hand edit, and the + C#, Java, Kotlin and Python gates compare bytes, so any edit fails there. +- **`--templates`**: for every `template.prompt` and `template.output`, resolves the text, + parses each `{{...}}` reference, and fails if one is not on the payload value object. +- **`--deps`**: re-resolves each declared dependency and compares its artifact's hash with + `.metaobjects/deps.lock.json` (the same check as `meta deps check`). Node `meta` resolves + every transport; the other ports resolve `path` only and report anything else `unresolved`. + `drifted` or `unresolved` fails with `ERR_DEPENDENCY_UPSTREAM_DRIFT`: review the artifact + diff, then `meta deps sync`. It is not in the bare default because it needs the publisher's + path reachable, which a CI checkout of only your repo may not have. + +| Port | Codegen drift | Template drift | Dependency drift | Schema drift | +|---|---|---|---|---| +| TS | `meta verify --codegen` | `meta verify --templates` | `meta verify --deps`, `meta deps check` | `meta verify --db ` | +| Java / Kotlin | `mvn metaobjects:verify -Dmeta.verify.mode=codegen` | `mvn metaobjects:verify -Dmeta.verify.mode=templates` | `mvn metaobjects:verify -Dmeta.verify.mode=deps` | Node `meta verify --db` | +| C# | `dotnet meta verify --codegen` | `dotnet meta verify --templates` | `dotnet meta verify --deps` | Node `meta verify --db` | +| Python | `metaobjects verify` (codegen is in the default) | n/a | `metaobjects verify --deps`, `metaobjects deps check` | Node `meta verify --db` | + +A clean run is silent. A failure names the entity or template, the drifted artifact and, for +templates, the missing reference. + +## Schema migrations: `meta migrate` is the reference helper, one option for every port + +Each language's native migration tool is first-class (EF Core Migrations, Flyway or Liquibase, +Exposed, Alembic, sqlx), handed the schema `npx meta schema` prints. The Node `meta migrate` is +the reference migration helper, one option for TypeScript, Java, Kotlin, C#, Python and Rust +alike. When the project uses it, it diffs metadata against the schema, emits the migration SQL +and applies it. Point it at the same database your server connects to: + +``` +meta migrate --from-db --db postgresql://... --dialect postgres --slug init --apply + # first migration on a brand-new database +meta migrate --dialect postgres --slug add-user-shipping # everyday: emit migration SQL +meta migrate --dialect postgres --slug add-user-shipping --apply --db postgresql://... + # ...and apply it +meta migrate --dialect postgres --slug add-user-shipping --dry-run # preview without writing +``` + +- Always pass `--dialect`: it selects the diff pipeline, not only the SQL flavor. It is + required offline and on `baseline`; with `--db` it can be detected from the URL. +- Do not run `meta migrate baseline` on a database that does not exist yet + (`references/migration.md`). +- Dialects: `postgres` (default), `sqlite` and `d1` (Cloudflare D1, TypeScript only). MySQL is + a codegen and runtime dialect only: `meta migrate --dialect mysql` is refused and you own + the DDL. +- The JVM, C# and Python ports have no migration command of their own and no runtime schema + auto-create. Their dev, test and production databases are provisioned by the project's + migration tool, which may be `meta migrate`. Each port's `gen` tooling stays native to its + language. + +## Never hand-edit the live database + +No `psql` or console `ALTER TABLE` / `CREATE` / `DROP`: not to preview a column, not to patch +a mismatch, not to unblock a boot. It is the usual way a database reaches a state no +migration can reproduce. The column exists but no migration recorded it, so the next +`meta migrate` tries to add it again and fails on `column ... already exists`, or the +difference surfaces days later. "Just adding it quickly to see it" does not feel like a +schema change, which is why it skips the metadata-first step; it is one. + +Apply every schema change the same way: change the metadata, then `meta migrate` (or, in a +project that drives its own migrator, a migration written to match the regenerated schema). +To see a new column in a tool or an app, apply the migration and look again. + +`meta verify --db` is a done-check, not only a CI gate. Run it after any work that touched the +database or the metadata that shapes it: it fails on exactly this drift (a hand-added column, +a missing index, a mismatched type) at once, not at the next boot. + +## What `verify` cannot catch: a model that is wrong but consistent + +The drift checks compare derived artifacts with the metadata. They do not ask whether the +metadata models the right thing. The usual case is a UUID column modeled as `field.string` +with `@dbColumnType: uuid`: the generated property is a string, the column really is `uuid`, +so `verify --db` passes while every consumer converts between string and UUID (the +`metaobjects-authoring` skill covers the smell). Nothing drifted; the model is wrong. + +For a rule like that, add a project-local CI lint over the metadata sources. A grep is enough: + +``` +# fail the build if any field.string carries @dbColumnType: uuid. +# Illustrative: tune the matcher to your source format (canonical JSON or sigil-free YAML). +! grep -rEzl '"field\.string"[^}]*"@dbColumnType"[^}]*"uuid"' metaobjects/ +``` + +Make it a ratchet: it stays red until the last offending field is `field.uuid`, so it is both +the migration's completion check and a permanent guard against the smell coming back. + +The other rule worth a ratchet is **no physical name as a literal**. Nothing in `verify` +reads the code you wrote: `--codegen` compares generated files with a fresh generation and +`--db` compares the database with the metadata. Build the alternation from the metadata's own +`@table` / `@view` / `@column` values and fail on any hit outside generated output: + +``` +# fail the build if a declared physical name is spelled in hand-written source. +# Illustrative: generate the alternation from your metadata. A typed ORM handle never matches. +! grep -rEn '"(orders|created_at|purpose_code)"' src/ --exclude-dir=generated +``` + +The fix for a hit is the `Names` constant (`metaobjects-runtime-ui`). + +## Reading conformance and test failures + +MetaObjects' behavior is pinned by cross-port conformance corpora (metamodel, render, +persistence, API contract, verify). The corpus is the contract, so when output disagrees with +a fixture the output is what is wrong: + +- A **loader** failure cites an `ERR_*` code (`ERR_RESERVED_ATTR`, `ERR_UNRESOLVED_SUPER`, + `ERR_MISSING_REQUIRED_ATTR`, `ERR_BAD_ATTR_VALUE`, `ERR_YAML_COERCION`): fix the metadata, + not the loader. +- A **render or verify** failure means rendered bytes or a template-drift result diverged + from the pinned expectation, usually a payload and text mismatch. +- A **persistence or API-contract** failure means a query row or an HTTP response shape + diverged: a bug in the code under test, not in the corpus. diff --git a/agent-context-shipped/files/83fa1bfb70e0da93.md b/agent-context-shipped/files/0ca6e2534824415a.md similarity index 98% rename from agent-context-shipped/files/83fa1bfb70e0da93.md rename to agent-context-shipped/files/0ca6e2534824415a.md index 1c36c656f5..02a5328d86 100644 --- a/agent-context-shipped/files/83fa1bfb70e0da93.md +++ b/agent-context-shipped/files/0ca6e2534824415a.md @@ -4,7 +4,8 @@ The Java runtime tier is **OMDB** (`metaobjects-omdb`) — `com.metaobjects.manager.db.ObjectManagerDB`, a metadata-driven persistence engine on modernized JDBC + Spring-tx. It reads the same metadata at runtime and drives CRUD with no per-entity ORM boilerplate. OMDB is pure data-access (CRUD / query / -codec / transactions); schema is owned by the Node `meta` migration tool, not OMDB. +codec / transactions); schema migrations run in your own tool or the Node `meta migrate` +reference helper, not OMDB. ## Contents - Construct an `ObjectManagerDB` diff --git a/agent-context-shipped/files/0dba45b723790cf0.md b/agent-context-shipped/files/0dba45b723790cf0.md new file mode 100644 index 0000000000..f556d7abd1 --- /dev/null +++ b/agent-context-shipped/files/0dba45b723790cf0.md @@ -0,0 +1,97 @@ +# Working with MetaObjects in this project + +> Stack: csharp server, angular client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### C#: generate with `dotnet meta gen` + +1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. + Nothing is generated until it is listed. The EF Core data layer and its routes: + + ```csharp + new MetaObjects.Codegen.Generators.EntityGenerator(), + new MetaObjects.Codegen.Generators.DbContextGenerator(), + new MetaObjects.Codegen.Generators.FilterAllowlistGenerator(), + new MetaObjects.Codegen.Generators.RoutesGenerator(), + ``` + + `RequirementTestsGenerator { OutDir = "/Generated" }` writes one test per + requirement; `ApiDocsGenerator` writes `api/csharp/AGENT-API.md`. `dotnet meta gen --list` + is the catalog. +2. **Generate.** `dotnet meta gen`. `dotnet meta eject ` copies a generator into the repo + to change what it emits. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `dotnet meta verify --codegen` (the generated code and the requirements). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/a1e428980be88708.md b/agent-context-shipped/files/10df1ee61cf20440.md similarity index 94% rename from agent-context-shipped/files/a1e428980be88708.md rename to agent-context-shipped/files/10df1ee61cf20440.md index ea7fbd4a42..5252ddc164 100644 --- a/agent-context-shipped/files/a1e428980be88708.md +++ b/agent-context-shipped/files/10df1ee61cf20440.md @@ -35,9 +35,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -74,7 +76,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/152b9f8ca0e76719.md b/agent-context-shipped/files/152b9f8ca0e76719.md new file mode 100644 index 0000000000..56a91191db --- /dev/null +++ b/agent-context-shipped/files/152b9f8ca0e76719.md @@ -0,0 +1,99 @@ +# Working with MetaObjects in this project + +> Stack: typescript server, angular client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### TypeScript: generate with `npx meta gen` + +1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is + `"sqlite"`) and list the generators. Nothing is generated until it is listed. The usual data + layer: + + ```ts + import { entityFile, namesFile, barrel } from "@metaobjectsdev/codegen-ts/generators"; + // generators: [entityFile(), namesFile(), barrel()] + ``` + + Per entity: `.ts` (Drizzle table, row types, Zod schemas, enum types) and + `.names.ts` (physical names), plus an `index.ts` barrel. Install what they import: + `npm i drizzle-orm zod` and your database driver. Every other generator (CRUD `queriesFile()` + / `routesFile()`, docs, `requirementTests()`) is one line too; `npx meta gen --list` is the + catalog. `npx meta eject ` copies one into `codegen/generators/` to change it; + `npx meta generator new ` writes a new one. +2. **Generate.** `npx meta gen`. See a file's exports with `grep -n "^export" `. When + `agentDocsFile()` / `apiDocsFile()` are wired, read the `agent/*.md` or `api/AGENT-API.md` + page for the tier you touch. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `npx meta verify --codegen` (the generated code and docs pages; the requirement gate runs on every `meta verify`). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/bc46fc3358130871.md b/agent-context-shipped/files/1950100affa0047a.md similarity index 93% rename from agent-context-shipped/files/bc46fc3358130871.md rename to agent-context-shipped/files/1950100affa0047a.md index 7174b9b4b9..679c4d6bcb 100644 --- a/agent-context-shipped/files/bc46fc3358130871.md +++ b/agent-context-shipped/files/1950100affa0047a.md @@ -28,9 +28,11 @@ truth. Code, schema and migrations are generated from it and are disposable. 2. **Generate.** `dotnet meta gen`. `dotnet meta eject ` copies a generator into the repo to change what it emits. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -66,7 +68,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/1c121e2c927ea194.md b/agent-context-shipped/files/1c121e2c927ea194.md new file mode 100644 index 0000000000..ae8fe356af --- /dev/null +++ b/agent-context-shipped/files/1c121e2c927ea194.md @@ -0,0 +1,98 @@ +# Working with MetaObjects in this project + +> Stack: python server, react client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Python: generate with `metaobjects gen` + +1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing + is generated until it is listed: + + ```yaml + targets: + app: + outDir: generated + generators: [entity, names] # Pydantic models + physical-name constants + ``` + + `routes` and `filter-allowlist` add FastAPI routers over a repository `Protocol` you + implement; `requirement-tests` writes one pytest file per package of requirements; + `api-docs` writes `api/python/AGENT-API.md`. `metaobjects gen --list` is the catalog. + Install what the output imports: `pip install "pydantic[email]>=2" fastapi`. +2. **Generate.** `metaobjects gen`. `metaobjects eject ` copies a generator into the repo + to change what it emits. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `metaobjects verify` (the generated code and the requirements; `--codegen` is its default). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/1d524c263d08c292.md b/agent-context-shipped/files/1d524c263d08c292.md new file mode 100644 index 0000000000..a627306182 --- /dev/null +++ b/agent-context-shipped/files/1d524c263d08c292.md @@ -0,0 +1,99 @@ +# Working with MetaObjects in this project + +> Stack: typescript server, react, tanstack client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### TypeScript: generate with `npx meta gen` + +1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is + `"sqlite"`) and list the generators. Nothing is generated until it is listed. The usual data + layer: + + ```ts + import { entityFile, namesFile, barrel } from "@metaobjectsdev/codegen-ts/generators"; + // generators: [entityFile(), namesFile(), barrel()] + ``` + + Per entity: `.ts` (Drizzle table, row types, Zod schemas, enum types) and + `.names.ts` (physical names), plus an `index.ts` barrel. Install what they import: + `npm i drizzle-orm zod` and your database driver. Every other generator (CRUD `queriesFile()` + / `routesFile()`, docs, `requirementTests()`) is one line too; `npx meta gen --list` is the + catalog. `npx meta eject ` copies one into `codegen/generators/` to change it; + `npx meta generator new ` writes a new one. +2. **Generate.** `npx meta gen`. See a file's exports with `grep -n "^export" `. When + `agentDocsFile()` / `apiDocsFile()` are wired, read the `agent/*.md` or `api/AGENT-API.md` + page for the tier you touch. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `npx meta verify --codegen` (the generated code and docs pages; the requirement gate runs on every `meta verify`). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/a3b90af6984e5058.md b/agent-context-shipped/files/1d5dedccd6f4f5c2.md similarity index 94% rename from agent-context-shipped/files/a3b90af6984e5058.md rename to agent-context-shipped/files/1d5dedccd6f4f5c2.md index 51d69a1b19..6d92f6833e 100644 --- a/agent-context-shipped/files/a3b90af6984e5058.md +++ b/agent-context-shipped/files/1d5dedccd6f4f5c2.md @@ -29,9 +29,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -68,7 +70,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/9fbf06132414b6be.md b/agent-context-shipped/files/1ff8fe71a4ec5b60.md similarity index 98% rename from agent-context-shipped/files/9fbf06132414b6be.md rename to agent-context-shipped/files/1ff8fe71a4ec5b60.md index e3c3b4737c..3a27812195 100644 --- a/agent-context-shipped/files/9fbf06132414b6be.md +++ b/agent-context-shipped/files/1ff8fe71a4ec5b60.md @@ -26,7 +26,7 @@ The full hunt for each axis of Phase 1b (Partial / Deep path). Each axis runs in - [ ] **D. Prompt pillar.** Every LLM prompt-construction site (see `prompt-anti-patterns.md`), including the **unlinked payload** count: for each `@payloadRef` object, how many of its fields are linked to the entity field they copy. -- [ ] **E. Owned generators & scaffold-and-own** (see "Owned-codegen & scaffold-and-own assessment" in `SKILL.md`). +- [ ] **E. Owned generators & scaffold-and-own** (see "Owned generators and generator gaps" in `SKILL.md`). - [ ] **E2. Capability ledger — `requirement.*`** (see `references/requirements.md` and the Requirement axis of the capability checklist). The one axis whose hunt is hand-written PROSE rather than hand-written code: a `CAPABILITIES.md`, a README features table, a @@ -240,7 +240,8 @@ The full hunt for each axis of Phase 1b (Partial / Deep path). Each axis runs in `object.projection`; `value` carrying identity/source, ADR-0028); copy-pasted base-field blocks — or the same-named field re-declared across objects (drift signature 10) — instead of abstract + `extends`; `@`-prefixed YAML keys (ADR-0006); DB-type-as-logical-subtype (ADR-0013); per-port - migration engine where schema is Node-`meta`-owned (ADR-0015). + migration engine where the project's own tool or the `meta migrate` reference helper + already migrates (ADR-0015). - [ ] **H2. Wrong native type — `field.` + `@dbColumnType` that hides the real type (CORRECTNESS-ADJACENT finding, NOT advisory axis-I).** The headline instance is a **UUID diff --git a/agent-context-shipped/files/969f739fa94d7a76.md b/agent-context-shipped/files/20569df7000013eb.md similarity index 67% rename from agent-context-shipped/files/969f739fa94d7a76.md rename to agent-context-shipped/files/20569df7000013eb.md index 459023b776..06bcfd8098 100644 --- a/agent-context-shipped/files/969f739fa94d7a76.md +++ b/agent-context-shipped/files/20569df7000013eb.md @@ -5,16 +5,34 @@ description: Use when authoring or modifying MetaObjects metadata — fields, en # Authoring MetaObjects metadata -MetaObjects metadata is the durable spine of your app: typed entity declarations -that drive code generation, runtime behavior, and drift detection. You author it, -the loader reads it, the codegen emits idiomatic per-language code from it. This -skill is the procedure for writing it correctly. - -Metadata lives in files under the project's metadata directory (`metaobjects/` unless -the project's configuration names another: `sources` in `.metaobjects/config.json`, or the -port's own setting), one file per domain -concept (`meta.commerce.json`, `meta.users.yaml`, …). Each file declares a -`package` on its root node. Files in the same `package` with the same object +Metadata is the typed declaration of the application's model. The loader reads it, codegen +emits code in each language from it, and the drift gates check everything against it. + +## Essentials + +- **Declare it; do not hand-write it.** Persistence, data access, validation, APIs and UI + scaffolding are derived from metadata. When you reach for a hand-written query, route, + validator, relationship or aggregate, that is usually metadata nobody has declared yet: + look for the construct first (`meta types `). +- **Adoption reverses the direction.** When working code or a populated schema already + exists, it is the specification and the metadata reproduces it: its names, types and + nullability. Read `references/adopting-existing-code.md` before modeling anything. +- **Every node is `{ ".": { } }`.** Reserved keys (`name`, `isArray`, + `children`, …) are bare; every attribute is `@`-prefixed in JSON and bare in YAML. +- **Never invent a subtype or attribute.** The loader is strict, so an unregistered name + fails the load. `meta types` says what exists; vocabulary of your own is a provider class. +- **Choose a field's shape by what the value is, not how it is stored**: a UUID is + `field.uuid`, money is `field.currency`, a list is `isArray: true`, and a JSON column takes + the type its writer already declares. The canonical-form table below covers the common + cases. +- **A relationship's subtype sets the default delete action, and the FK-owning (child) side + governs.** Modeling every link as `composition` arms cascades nobody asked for. +- **In YAML, quote any scalar that looks like a boolean, number, date or null.** + +Metadata lives in files under the project's metadata directory (`metaobjects/` unless the +project's configuration names another: `sources` in `.metaobjects/config.json`, or the port's +own setting), one file per domain concept (`meta.commerce.json`, `meta.users.yaml`, …). Each +file declares a `package` on its root node. Files in the same `package` with the same object `name` are merged by the loader. ## Reference files — open only the one your task needs @@ -40,66 +58,48 @@ This file covers what almost every model needs. The topics below live in | `references/reporting.md` | what a declared report gives you: what columns a report gets, time grains, null rules, rows with no facts (`@spine`), defaults (`@default`), engine differences | | `references/requirements.md` | you add, change or review a `requirement.*` node | -## The operating principle: model-first, generate-first - -You are not hand-writing an application — you are **declaring the model it is -generated from.** Persistence, data access, validation, APIs, and UI scaffolding are -**derived from metadata, never authored by hand.** Model-first is the default for -*every* capability; hand-writing one of these layers is an exception you must -**justify**, not a convenience you reach for. - -**This requires thinking differently.** Imperative code asks *"how do I implement -this endpoint?"* Model-first asks *"what is this resource, and what is true about -it?"* — and lets codegen own the *how*. **Describe WHAT, not HOW.** The metadata is -the source of truth; generated code is a disposable, regenerable artifact — delete -it and `meta gen` restores it identically. - -**Before you hand-write anything data-shaped, STOP and find the model.** The moment -you reach for a hand-written query, route, validator, form, relationship, or -aggregate — that is almost always **metadata you have not declared yet.** In order: -1. **Check whether the design already ships.** `meta gen --list --format json` - carries `kind: "library"` rows — declared design MetaObjects ships, each with a - `useWhen`. If one matches the capability you are about to declare, opt in and adapt - rather than author it from scratch: you inherit its entities, its requirements, and - the rulings recorded with them. The bare name is the core layer (sourceless — no - tables, no generated code); `/db` is the separate opt-in that adds the schema. -2. **Search the vocabulary** — `meta types `, or `meta types --all - ` to search by behavior. There are field subtypes, relationships, - projections, origins, identities, sources, and attributes you may not know exist. - Find the construct that models it. Add `--detail` for one construct's valid - `@attrs`, or `--format json` for the same answer as one machine-readable document - — that form carries every match (`--limit` never truncates it) with each attr's - `allowedValues`, so you read the accepted values rather than guessing them. -3. **Declare it and generate** — then *consume* the generated query/type/route; - never reimplement it alongside. -4. **If the model is right but the generated OUTPUT is wrong, change your generator.** - Naming, file layout, imports, framework, signatures are generator concerns, not - reasons to hand-write. The generators are in *your* repo and are yours to edit — a - standing rule not to change the MetaObjects repo does not reach them; they are a - different repository. Editing one is ordinary work, not an escalation. (See - `metaobjects-codegen` → "Your generators are yours".) -5. **Only if no construct can express it** — and you have actually looked — - hand-write it, wired to generated types. Business algorithms, external - integrations, and bespoke interactions are legitimately hand-written; CRUD, - validation, finders, relationships, and derived/aggregate data are not. - -Rule of thumb: **if the metadata could describe it, declaring it is never the wrong -call** — even when a one-off hand-write would be faster today. - -## Adopting onto an existing codebase — metadata FOLLOWS the code - -The principle above is the **greenfield** default. **Adoption reverses the direction:** when -working code or a populated schema already exists for what you are modeling, that code is the -specification, and the metadata's first job is to reproduce it — its native types, column and -table names, nullability, and the types its JSON writers already declare. Tune the generator to -match the code before you change the code, and default to the choice that changes the least -existing code. **Read `references/adopting-existing-code.md` before you model anything in an -adoption.** - -## The fused-key encoding (non-negotiable) +## Model first, then generate + +You are declaring the model the application is generated from: the question is "what is this +resource, and what is true about it?", and codegen owns the "how". Hand-writing a layer the +model can describe is the exception, because a hand-written copy is checked by nothing and +drifts the day the model changes. + +When you are about to hand-write something data-shaped, find the model for it: + +1. **Check whether the design already ships.** `meta gen --list --format json` carries + `kind: "library"` rows, each with a `useWhen`. If one matches, opt in and adapt it: you + inherit its entities, requirements and recorded rulings. The bare name is the core layer + (sourceless: no tables, no generated code); `/db` adds the schema. +2. **Search the vocabulary.** `meta types `, or `meta types --all ` to + search by behavior; there are subtypes, origins, identities and attributes you may not + know exist. `--detail` shows one construct's valid `@attrs`; `--format json` gives every + match with each attr's `allowedValues`, so you read the accepted values, not guess them. +3. **Declare it, generate, and consume the generated query, type or route.** Do not + reimplement it alongside. +4. **If the model is right and the generated output is wrong, change your generator.** + Naming, file layout, imports, framework and signatures are generator concerns. The + generators are in your repo and yours to edit; a rule against changing MetaObjects itself + does not reach them (`metaobjects-codegen`, "When generated output does not fit"). +5. **Hand-write only what no construct can express**, wired to the generated types: business + algorithms, external integrations, bespoke interactions. CRUD, validation, finders, + relationships and derived or aggregate data are not in that group. + +If the metadata could describe it, declaring it is the right call even when a one-off +hand-write would be faster today (`references/model-first-rationale.md`). + +## Adopting onto an existing codebase: metadata follows the code + +Model-first is the greenfield default. When working code or a populated schema already exists +for what you are modeling, that code is the specification and the metadata's first job is to +reproduce it: its native types, column and table names, nullability, and the types its JSON +writers already declare. Tune the generator to match the code before you change the code. +`references/adopting-existing-code.md` has the rules; read it before modeling. + +## The fused-key encoding Every node is `{ ".": { } }`. The wrapper key fuses type and -subtype — there is **no** separate `subType` body key. +subtype; there is no separate `subType` body key. ```json { "object.entity": { "name": "User" } } @@ -165,16 +165,12 @@ name package extends abstract overlay isArray children value load with `ERR_RESERVED_ATTR`. Use the bare `isArray: true` (YAML) or the `[]` key-suffix sugar (`field.long[]: weekIds`). -## Two violation rules — internalize these +## Declare each attribute once -1. **Attribute-name uniqueness within a node.** A node body must not declare the - same attribute name twice. `{ "field.string": { "name": "x", "@maxLength": 10, - "@maxLength": 20 } }` is malformed. - -2. **An inline `@attr` IS an `attr` child — never both.** An inline attribute and - a child `attr.*` node with the same name are the same slot expressed two ways. - Declare a given attribute once, in one form. Don't set `@required` inline AND - also add an `attr.boolean` child named `required` — that's a double-declaration. +A node body must not declare the same attribute name twice. An inline `@attr` and a child +`attr.*` node with the same name are the same slot written two ways, so use one form: setting +`@required` inline and also adding an `attr.boolean` child named `required` is a double +declaration. ## Field subtypes (closed vocabulary) @@ -199,23 +195,16 @@ name package extends abstract overlay isArray children value Common field attributes: `@required`, `@maxLength`, `@column` (physical column name), `@default`, `@filterable`, `@sortable`. On temporal fields (`field.date`/`field.time`/`field.timestamp`) `@autoSet` stamps the value -automatically (see "Four rules behind those rows" below). - -#### What `@required` actually means +automatically (`references/choosing-a-shape.md`). -`@required: true` is **NOT NULL** (presence). Two consequences that are easy to -get wrong: +#### What `@required` means -1. **On a non-array string it also rejects `""` — but only at the wire tier.** - Generated *input* validation (the create/patch models behind POST/PATCH) - rejects the empty string by default; whitespace-only IS accepted. Generated - in-process read models never enforce this at construction, so reading an - existing row containing `""` does not throw. -2. **To say "must be provided, but may be empty", author an explicit - `validator.length` with `@min: 0`.** An explicitly authored `@min` is always - authoritative over that implicit non-empty floor; the floor applies only when - no `@min` is authored at all. Dropping `@required` is NOT the way to express - this — that makes the field optional and loses presence typing. +`@required: true` is NOT NULL (presence). On a non-array string, generated *input* validation +(the create and patch models behind POST and PATCH) also rejects `""`; whitespace-only is +accepted, and read models never enforce it, so reading an existing row containing `""` does +not throw. To say "must be provided, but may be empty", author a `validator.length` with +`@min: 0`: an authored `@min` always wins over the implicit non-empty floor. Dropping +`@required` is not the way to say it, because that makes the field optional. ```jsonc // must be provided; empty string allowed @@ -233,7 +222,7 @@ Reach for these before inventing anything. When no row fits, run the decision pr | Need | Author it as | Note | |---|---|---| -| IDs / unique keys / **any UUID column** | `field.uuid` | native UUID type. **NEVER `field.string` + `@dbColumnType: uuid`** — see "Four rules behind those rows" below | +| IDs / unique keys / any UUID column | `field.uuid` | native UUID type. `field.string` + `@dbColumnType: uuid` generates a string over a uuid column: a smell no drift gate catches | | Money | `field.currency` | integer minor units; never a float | | Closed set of symbols | `field.enum` | `@values` required | | Instant / event time (created/updated) | `field.timestamp` + `@autoSet` | instant / tz-aware by default (Postgres `timestamptz`; native `Instant`/`DateTimeOffset`/aware `datetime`); `@autoSet: onCreate` for `createdAt`, `@autoSet: onUpdate` for `updatedAt` — never hand-stamp | @@ -248,13 +237,6 @@ Reach for these before inventing anything. When no row fits, run the decision pr | Elapsed time / timeout / delay | `field.duration` | native `TimeSpan`/`Duration`/`timedelta`; Postgres `interval` column; wire form is the port's native one by default, canonical ISO-8601 (`PT1H30M`) under `wire.durations: iso`. Not for a calendar span ("every 3 months"): that is an int and a unit. Never a string or a count of seconds | | Validated plain string (email / hostname) | `field.string` + `@stringFormat` | `@stringFormat: email` or `@stringFormat: hostname` — idiomatic per-port validation; don't hand-write the `validator.regex` | -Four rules behind those rows, in short (full text: `references/choosing-a-shape.md`): -**a UUID is `field.uuid`** — `field.string` + `@dbColumnType: uuid` generates a `String` over a -uuid column and is a smell; **`field.timestamp` is an instant**, and `@localTime: true` is the -opt-out for a wall clock; **`field.uri` / `field.inet` are strict**, and `@lenient: true` stores -any string; **`@autoSet: onCreate` / `onUpdate`** stamps created/updated times, so never set them -by hand. - ### Currency `field.currency` stores money as **integer minor units** (cents for USD, yen for @@ -307,15 +289,15 @@ generated Postgres column is typed `.$type()` and the Zod schema is ### A JSON column — choose the rung by the type the WRITER already declares -**"Add a jsonb column and cast on read" is the ORM-tutorial reflex, and it is the one column -shape this metamodel exists to replace.** Every other subtype binds a native type in five -languages; `field.string` + `@dbColumnType: jsonb` binds `unknown` / `Any` / `Object` — so every -reader casts, the keys live in N call sites instead of one declaration, and no gate can see it -(`verify --db` sees a jsonb column that matches; `--codegen` sees output that is correct for a -bag). **The cast you write on read is the shape you declined to declare.** +"Add a jsonb column and cast on read" is the habit to drop here. Every other subtype binds a +native type in five languages; `field.string` + `@dbColumnType: jsonb` binds `unknown` / `Any` +/ `Object`, so every reader casts, the keys live in each call site and not in one +declaration, and no gate can see it (`verify --db` sees a jsonb column that matches; +`--codegen` sees output that is correct for a bag). The cast you write on read is the shape +you did not declare. -**The test is mechanical and language-agnostic: read the signature of the function that WRITES -the column.** It already names the type — that is the metadata. Take the first rung that fits: +**The test: read the signature of the function that writes the column.** It already names the +type, and that is the metadata. Take the first rung that fits: | The writer's type | Author it as | What comes back | |---|---|---| @@ -411,12 +393,10 @@ no Drizzle `many()` member; reverse navigation is the generated finder Reverse finders (`findBy` and the batched `…In`) are **generated** for every FK, so never hand-write a `WHERE fk = ?` helper. -**Adoption footgun — pin BOTH actions.** `@onDelete` defaults *per subtype* (above) -and `@onUpdate` defaults to `cascade` — but a plain SQL foreign key is `NO ACTION` on -both. If you're adopting an existing database (matching metadata to a live schema), -leaving these implicit makes the metadata declare a referential action the DB doesn't -have — a perpetual `verify --db` drift. Pin **both** explicitly to the DB's real -behavior: +**Adopting an existing database: pin both actions.** `@onDelete` defaults per subtype +(above) and `@onUpdate` defaults to `cascade`, but a plain SQL foreign key is `NO ACTION` on +both. Left implicit, the metadata declares a referential action the database does not have, +which is a permanent `verify --db` drift. Pin both to what the database really does: ```json { "relationship.association": { "name": "author", "@objectRef": "User", @@ -461,27 +441,42 @@ Several variants of one thing sharing **one table**: the base `object.entity` de `@discriminatorValue`. Codegen emits per-subtype routes with the discriminator injected and immutable. Supported in all five ports; the worked example is in `references/inheritance-tph.md`. -## Your own vocabulary — a provider class, in every language - -A subtype or attribute the core does not ship (a `layout.picker`, `@searchable` on fields) is registered by a **provider class** in the project's own language — never a side file, never a loosened `strict`. Decide the shape first (`references/choosing-a-shape.md`, which also has the register/extend rules). List the provider once in the port's project configuration and every command that loads metadata — gen and its docs generators, verify, fmt — composes it. Where each port lists it, plus a worked example: `references/typescript-providers.md`, `references/python-providers.md`, `references/csharp-providers.md`, `references/java-providers.md`, `references/kotlin-providers.md` (only this stack's are installed). +## Your own vocabulary: a provider class, in every language -**Every port whose tools load the metadata needs its own copy**: a TypeScript-only provider leaves the Java, Python or C# side, and its docs build, failing with `ERR_UNKNOWN_SUBTYPE` / `ERR_UNKNOWN_ATTR`. +A subtype or attribute the core does not ship (a `layout.picker`, `@searchable` on fields) is +registered by a **provider class** in the project's own language, never a side file and +never a loosened `strict`. Decide the shape first (`references/choosing-a-shape.md`, which +also has the register and extend rules). List the provider once in the port's project +configuration and every command that loads metadata (gen and its docs generators, verify, +fmt) composes it. Where each port lists it, with a worked example: +`references/typescript-providers.md`, `references/python-providers.md`, +`references/csharp-providers.md`, `references/java-providers.md`, +`references/kotlin-providers.md` (only this stack's are installed). -## Requirements — capability ledger (opt-in) +Every port whose tools load the metadata needs its own copy: a TypeScript-only provider +leaves the Java, Python or C# side, and its docs build, failing with `ERR_UNKNOWN_SUBTYPE` / +`ERR_UNKNOWN_ATTR`. -**This capability exists whether or not the project uses it yet.** `requirement.functional` and `requirement.architectural` are registered metadata types, declared in the metadata directory beside the entities they describe and loaded by the same loader — no side file, no bespoke parser. They record *why* each part of the model exists, so a field with no reason to exist becomes visible as one. +## Requirements: a capability ledger (opt-in) -Reach for it when the project needs to answer any of: +`requirement.functional` and `requirement.architectural` are registered metadata types, +declared beside the entities they describe and loaded by the same loader, available whether +or not the project uses them yet. They record why each part of the model exists, so a field +with no reason to exist becomes visible. Reach for them when the project needs to answer: -- **"Why is this field here?"** — an L5 requirement binds a claim to a specific member. Authoring these exhaustively is what surfaces columns nothing reads and vocabularies nobody documented. -- **"What is broken but known?"** — `@status: partial` plus `@disposition: accepted | deferred`. Absent disposition means *undecided*, and `meta verify` counts those: the gaps nobody has ruled on. -- **"What did we say we would build and have not?"** — `@status: planned` is the one status where a dangling `@implementedBy` is *correct*, because the entry precedes the nodes. -- **"What have we committed to build?"** — `@status: planned`. Its references may dangle, and it never counts toward object coverage. -- **"Which ticket covers this?"** — `@trackedBy`. +- **"Why is this field here?"** A requirement binds a claim to a specific member. +- **"What is broken but known?"** `@status: partial` plus `@disposition: accepted | deferred`. + No disposition means undecided, and `meta verify` counts those. +- **"What have we committed to build and not built yet?"** `@status: planned`: the one status + where a dangling `@implementedBy` is correct. It never counts toward object coverage. +- **"Which ticket covers this?"** `@trackedBy`. -Every requirement must be **violable**: if you cannot say what breaking it looks like, it is a description, not a requirement. +Every requirement must be violable: if you cannot say what breaking it looks like, it is a +description, not a requirement. -**A commit that adds, changes or removes behaviour updates the ledger in the same commit** (the new or changed claim, its `@status` and `@implementedBy`), or says in the commit message why it does not. `verify` checks that links resolve, not that the ledger is current. +A commit that adds, changes or removes behaviour updates the ledger in the same commit (the +claim, its `@status` and `@implementedBy`), or says in the commit message why it does not: +`verify` checks that links resolve, not that the ledger is current. `references/requirements.md` has the full authoring rules. The shape of one node: @@ -493,8 +488,3 @@ Every requirement must be **violable**: if you cannot say what breaking it looks counterexample: A row that can be inserted but never pointed at. implementedBy: [acme::shop::Order] ``` - ---- - -For non-trivial schema design, use `/superpowers:brainstorming` if installed; -otherwise proceed. diff --git a/agent-context-shipped/files/2a7abe06e9935eb9.md b/agent-context-shipped/files/2a7abe06e9935eb9.md new file mode 100644 index 0000000000..4f6b4e80ca --- /dev/null +++ b/agent-context-shipped/files/2a7abe06e9935eb9.md @@ -0,0 +1,85 @@ +# Working with MetaObjects in this project + +> Stack: rust server, no client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Rust: generate with `cargo meta gen` + +1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the + generator list. Nothing is generated until it is listed: + + ```json + { "generators": ["entity", "client", "commands"] } + ``` + + `entity` writes the model crate, `client` a typed client for the REST API the model implies, + and `commands` command-line commands over that client (`client` needs `entity`; `commands` + needs both). There is no server-side route or ORM generator for Rust yet. `cargo meta gen + --list` is the catalog. +2. **Generate.** `cargo meta gen`. `cargo meta eject ` copies a generator into the repo + to change what it emits. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `cargo meta verify` (the generated crates and the business rules; `--codegen` runs the drift gate alone). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/250eaeca5c4d1c38.md b/agent-context-shipped/files/2afdc196a5f5d77d.md similarity index 93% rename from agent-context-shipped/files/250eaeca5c4d1c38.md rename to agent-context-shipped/files/2afdc196a5f5d77d.md index f593a7e8ec..515c26e7a3 100644 --- a/agent-context-shipped/files/250eaeca5c4d1c38.md +++ b/agent-context-shipped/files/2afdc196a5f5d77d.md @@ -26,9 +26,11 @@ truth. Code, schema and migrations are generated from it and are disposable. 2. **Generate.** `cargo meta gen`. `cargo meta eject ` copies a generator into the repo to change what it emits. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -64,7 +66,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/2eef37e385b987d7.md b/agent-context-shipped/files/2eef37e385b987d7.md new file mode 100644 index 0000000000..9cc3110fd8 --- /dev/null +++ b/agent-context-shipped/files/2eef37e385b987d7.md @@ -0,0 +1,79 @@ +# Working with MetaObjects in this project + +> Stack: kotlin server, no client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Kotlin: generate with `mvn metaobjects:generate` + +1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator + list, one `` each. Nothing is generated until it is listed. Which + classes to list (the Exposed and Spring tier, requirement tests, API docs) is in the + `metaobjects-codegen` skill's `references/kotlin.md`. +2. **Generate.** `mvn metaobjects:generate`. `mvn metaobjects:eject -Dnames= -Dport=kotlin` + copies a generator to change what it emits. Several Kotlin generators truncate their output + on every run, so never put your own code in a generated file. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `mvn metaobjects:verify` (the generated code and the requirements). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/2f9b37c453594ee3.md b/agent-context-shipped/files/2f9b37c453594ee3.md new file mode 100644 index 0000000000..8fcd5a5eaf --- /dev/null +++ b/agent-context-shipped/files/2f9b37c453594ee3.md @@ -0,0 +1,95 @@ +# Working with MetaObjects in this project + +> Stack: rust server, react, tanstack client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Rust: generate with `cargo meta gen` + +1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the + generator list. Nothing is generated until it is listed: + + ```json + { "generators": ["entity", "client", "commands"] } + ``` + + `entity` writes the model crate, `client` a typed client for the REST API the model implies, + and `commands` command-line commands over that client (`client` needs `entity`; `commands` + needs both). There is no server-side route or ORM generator for Rust yet. `cargo meta gen + --list` is the catalog. +2. **Generate.** `cargo meta gen`. `cargo meta eject ` copies a generator into the repo + to change what it emits. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `cargo meta verify` (the generated crates and the business rules; `--codegen` runs the drift gate alone). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/34d60341c7210314.md b/agent-context-shipped/files/432f9889e514face.md similarity index 94% rename from agent-context-shipped/files/34d60341c7210314.md rename to agent-context-shipped/files/432f9889e514face.md index ea15ffb6e5..c082f84a63 100644 --- a/agent-context-shipped/files/34d60341c7210314.md +++ b/agent-context-shipped/files/432f9889e514face.md @@ -1,18 +1,16 @@ -# Schema migrations — the shared TypeScript engine (every port) - -Schema migration is owned by **one shared TypeScript engine** regardless of your -server language (ADR-0015). The Node `meta` CLI (`@metaobjectsdev/cli`, on top of -`@metaobjectsdev/migrate-ts`) is the migration + live-DB-drift toolchain for **TS, -Java, Kotlin, C#, and Python alike**. The non-TS ports have **no** migration command -of their own — their former migrate goals/modules were removed, and (ADR-0015 -Decision 2) the JVM runtime's own dev/test schema auto-create path -(`MetaClassDBValidatorService` + the drivers' DDL) was removed too: OMDB is pure -data-access. Every port's schema — dev, test, and production alike — is always the -Node migrate engine's output. - -So even in a Java / Python / C# / Kotlin project you run `meta migrate` and -`meta verify --db` through Node. Only schema crosses to Node; per-port `gen`/codegen -stays native to the language. +# Schema migrations — `meta migrate`, the reference migration helper (every port) + +`meta migrate` is **one option** for any port. Each language's native migration tool +is first-class — EF Core Migrations, Flyway or Liquibase, Exposed, Alembic, sqlx — +handed the schema `npx meta schema` prints. The Node `meta` CLI +(`@metaobjectsdev/cli`, on top of `@metaobjectsdev/migrate-ts`) hosts the reference +helper, and `meta verify --db` checks a live database whichever tool migrated it. The +non-TS ports ship **no** migration command of their own, and (ADR-0015 Decision 2) the +JVM runtime's dev/test schema auto-create path (`MetaClassDBValidatorService` + the +drivers' DDL) was removed: OMDB is pure data-access. + +This page is for a project that chose `meta migrate` (any server language). Only schema +crosses to Node; per-port `gen`/codegen stays native to the language. ## Contents - Install (Node, dev-only) diff --git a/agent-context-shipped/files/9984405efdf695f3.md b/agent-context-shipped/files/43a4f77d88acbd3b.md similarity index 98% rename from agent-context-shipped/files/9984405efdf695f3.md rename to agent-context-shipped/files/43a4f77d88acbd3b.md index 345e4b9c92..487543bf0e 100644 --- a/agent-context-shipped/files/9984405efdf695f3.md +++ b/agent-context-shipped/files/43a4f77d88acbd3b.md @@ -189,8 +189,8 @@ soft-delete / status / type view it models. "end ≥ start"), `validator.atLeastOne` (one-of-N present), `validator.exactlyOne` (exactly one of N present), `validator.requiredWhen` (conditional-required), `validator.presentIff` (mutual presence). Hunt these as hand-coded - multi-field rules — they ARE modelable (see the Semantic-constraint ratification section in - `SKILL.md` to decide what belongs in shared metadata vs port-local). + multi-field rules — they ARE modelable (see "Ratifying constraints before they enter the + model" in `SKILL.md` to decide what belongs in shared metadata vs port-local). - **`validator.base`** — abstract base. ## View / Layout — `view.*`, `layout.*` @@ -360,7 +360,8 @@ to nothing, and does not check that each claimed node complies). non-`table` source-kind / flattened-object codegen is partial). **C#** has no ObjectManager runtime tier (EF Core *is* the runtime) — hand services over the generated `DbContext` are expected. -- **Single-source config** — `apiPrefix` (URL prefix wired into routes + hooks), the +- **Single-source config** — `apiPrefix` (where the generated routes mount; the web client + takes its prefix from `baseUrl` on the fetcher provider, so check the two agree), the `naming` block of `.metaobjects/config.json` (column and table rules, read by every port) and per-target output dirs: hunt these values hard-coded in multiple places instead of resolved from config. diff --git a/agent-context-shipped/files/38afc85e1f586918.md b/agent-context-shipped/files/44b8f296355a0c08.md similarity index 94% rename from agent-context-shipped/files/38afc85e1f586918.md rename to agent-context-shipped/files/44b8f296355a0c08.md index 19bb9ecd92..3c118649dc 100644 --- a/agent-context-shipped/files/38afc85e1f586918.md +++ b/agent-context-shipped/files/44b8f296355a0c08.md @@ -35,9 +35,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -74,7 +76,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/45382c4022671361.md b/agent-context-shipped/files/45382c4022671361.md new file mode 100644 index 0000000000..f4d2efa054 --- /dev/null +++ b/agent-context-shipped/files/45382c4022671361.md @@ -0,0 +1,89 @@ +# Working with MetaObjects in this project + +> Stack: java server, react client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Java: generate with `mvn metaobjects:generate` + +1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator + list, one `` each, under `` pointing at the metadata. + Nothing is generated until it is listed; the build names any generator a listed one needs. + Which classes to list (the Spring REST tier, requirement tests, API docs) is in the + `metaobjects-codegen` skill's `references/java.md`. +2. **Generate.** `mvn metaobjects:generate`. `mvn metaobjects:eject -Dnames= -Dport=java` + copies a generator to change what it emits. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `mvn metaobjects:verify` (the generated code and the requirements). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/45e4cc4ff5fb0d8c.md b/agent-context-shipped/files/45e4cc4ff5fb0d8c.md new file mode 100644 index 0000000000..cba375b893 --- /dev/null +++ b/agent-context-shipped/files/45e4cc4ff5fb0d8c.md @@ -0,0 +1,90 @@ +# Working with MetaObjects in this project + +> Stack: typescript server, no client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### TypeScript: generate with `npx meta gen` + +1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is + `"sqlite"`) and list the generators. Nothing is generated until it is listed. The usual data + layer: + + ```ts + import { entityFile, namesFile, barrel } from "@metaobjectsdev/codegen-ts/generators"; + // generators: [entityFile(), namesFile(), barrel()] + ``` + + Per entity: `.ts` (Drizzle table, row types, Zod schemas, enum types) and + `.names.ts` (physical names), plus an `index.ts` barrel. Install what they import: + `npm i drizzle-orm zod` and your database driver. Every other generator (CRUD `queriesFile()` + / `routesFile()`, docs, `requirementTests()`) is one line too; `npx meta gen --list` is the + catalog. `npx meta eject ` copies one into `codegen/generators/` to change it; + `npx meta generator new ` writes a new one. +2. **Generate.** `npx meta gen`. See a file's exports with `grep -n "^export" `. When + `agentDocsFile()` / `apiDocsFile()` are wired, read the `agent/*.md` or `api/AGENT-API.md` + page for the tier you touch. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `npx meta verify --codegen` (the generated code and docs pages; the requirement gate runs on every `meta verify`). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/15057721b9d06e77.md b/agent-context-shipped/files/47a2e3d1b87512e8.md similarity index 94% rename from agent-context-shipped/files/15057721b9d06e77.md rename to agent-context-shipped/files/47a2e3d1b87512e8.md index 65ba72807b..cd51a3e609 100644 --- a/agent-context-shipped/files/15057721b9d06e77.md +++ b/agent-context-shipped/files/47a2e3d1b87512e8.md @@ -37,9 +37,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -76,7 +78,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/47b76f5cc12c4941.md b/agent-context-shipped/files/47b76f5cc12c4941.md new file mode 100644 index 0000000000..4fe0ab3b17 --- /dev/null +++ b/agent-context-shipped/files/47b76f5cc12c4941.md @@ -0,0 +1,98 @@ +# Working with MetaObjects in this project + +> Stack: python server, react, tanstack client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Python: generate with `metaobjects gen` + +1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing + is generated until it is listed: + + ```yaml + targets: + app: + outDir: generated + generators: [entity, names] # Pydantic models + physical-name constants + ``` + + `routes` and `filter-allowlist` add FastAPI routers over a repository `Protocol` you + implement; `requirement-tests` writes one pytest file per package of requirements; + `api-docs` writes `api/python/AGENT-API.md`. `metaobjects gen --list` is the catalog. + Install what the output imports: `pip install "pydantic[email]>=2" fastapi`. +2. **Generate.** `metaobjects gen`. `metaobjects eject ` copies a generator into the repo + to change what it emits. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `metaobjects verify` (the generated code and the requirements; `--codegen` is its default). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/4803fe4f98ccbfed.md b/agent-context-shipped/files/4803fe4f98ccbfed.md new file mode 100644 index 0000000000..d2603c5dab --- /dev/null +++ b/agent-context-shipped/files/4803fe4f98ccbfed.md @@ -0,0 +1,99 @@ +# Working with MetaObjects in this project + +> Stack: java, kotlin server, angular client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Java: generate with `mvn metaobjects:generate` + +1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator + list, one `` each, under `` pointing at the metadata. + Nothing is generated until it is listed; the build names any generator a listed one needs. + Which classes to list (the Spring REST tier, requirement tests, API docs) is in the + `metaobjects-codegen` skill's `references/java.md`. +2. **Generate.** `mvn metaobjects:generate`. `mvn metaobjects:eject -Dnames= -Dport=java` + copies a generator to change what it emits. + +### Kotlin: generate with `mvn metaobjects:generate` + +1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator + list, one `` each. Nothing is generated until it is listed. Which + classes to list (the Exposed and Spring tier, requirement tests, API docs) is in the + `metaobjects-codegen` skill's `references/kotlin.md`. +2. **Generate.** `mvn metaobjects:generate`. `mvn metaobjects:eject -Dnames= -Dport=kotlin` + copies a generator to change what it emits. Several Kotlin generators truncate their output + on every run, so never put your own code in a generated file. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `mvn metaobjects:verify` (the generated code and the requirements). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/1c25799a074fff7d.md b/agent-context-shipped/files/4bad6e820c600d09.md similarity index 98% rename from agent-context-shipped/files/1c25799a074fff7d.md rename to agent-context-shipped/files/4bad6e820c600d09.md index d9b9ccac55..9803e89532 100644 --- a/agent-context-shipped/files/1c25799a074fff7d.md +++ b/agent-context-shipped/files/4bad6e820c600d09.md @@ -270,6 +270,7 @@ rather than editing `render_wire(..., _WIRE)` in a router. `metaobjects verify` ## Re-scaffold this context -`metaobjects agent-docs` does not scaffold anything: it prints a pointer and exits 1. -Run `npx meta agent-docs --server python` (the Node `meta` CLI) to (re)scaffold the slim -always-on Markdown + these `metaobjects-*` skills into the project. +Run `metaobjects agent-docs` to (re)scaffold the slim always-on Markdown and these +`metaobjects-*` skills into the project. It needs no Node: the files ship inside the +`metaobjects` package. Add `--client ` for a web client and `--out ` for another +project root. diff --git a/agent-context-shipped/files/1bba4aff747882dd.md b/agent-context-shipped/files/4d50908a399c8c2a.md similarity index 94% rename from agent-context-shipped/files/1bba4aff747882dd.md rename to agent-context-shipped/files/4d50908a399c8c2a.md index 3c38bd734c..650967df2a 100644 --- a/agent-context-shipped/files/1bba4aff747882dd.md +++ b/agent-context-shipped/files/4d50908a399c8c2a.md @@ -29,9 +29,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -68,7 +70,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/4dcb7faed7929ed0.md b/agent-context-shipped/files/4dcb7faed7929ed0.md new file mode 100644 index 0000000000..882a17956f --- /dev/null +++ b/agent-context-shipped/files/4dcb7faed7929ed0.md @@ -0,0 +1,95 @@ +# Working with MetaObjects in this project + +> Stack: rust server, angular client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Rust: generate with `cargo meta gen` + +1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the + generator list. Nothing is generated until it is listed: + + ```json + { "generators": ["entity", "client", "commands"] } + ``` + + `entity` writes the model crate, `client` a typed client for the REST API the model implies, + and `commands` command-line commands over that client (`client` needs `entity`; `commands` + needs both). There is no server-side route or ORM generator for Rust yet. `cargo meta gen + --list` is the catalog. +2. **Generate.** `cargo meta gen`. `cargo meta eject ` copies a generator into the repo + to change what it emits. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `cargo meta verify` (the generated crates and the business rules; `--codegen` runs the drift gate alone). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/5012fcaf4eb615f0.md b/agent-context-shipped/files/5012fcaf4eb615f0.md new file mode 100644 index 0000000000..fd7fc55865 --- /dev/null +++ b/agent-context-shipped/files/5012fcaf4eb615f0.md @@ -0,0 +1,97 @@ +# Working with MetaObjects in this project + +> Stack: csharp server, react, tanstack client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### C#: generate with `dotnet meta gen` + +1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. + Nothing is generated until it is listed. The EF Core data layer and its routes: + + ```csharp + new MetaObjects.Codegen.Generators.EntityGenerator(), + new MetaObjects.Codegen.Generators.DbContextGenerator(), + new MetaObjects.Codegen.Generators.FilterAllowlistGenerator(), + new MetaObjects.Codegen.Generators.RoutesGenerator(), + ``` + + `RequirementTestsGenerator { OutDir = "/Generated" }` writes one test per + requirement; `ApiDocsGenerator` writes `api/csharp/AGENT-API.md`. `dotnet meta gen --list` + is the catalog. +2. **Generate.** `dotnet meta gen`. `dotnet meta eject ` copies a generator into the repo + to change what it emits. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `dotnet meta verify --codegen` (the generated code and the requirements). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/f4a1f275fa640c0f.md b/agent-context-shipped/files/56cb8eb782227155.md similarity index 94% rename from agent-context-shipped/files/f4a1f275fa640c0f.md rename to agent-context-shipped/files/56cb8eb782227155.md index 72071d302e..e0d8e20910 100644 --- a/agent-context-shipped/files/f4a1f275fa640c0f.md +++ b/agent-context-shipped/files/56cb8eb782227155.md @@ -39,9 +39,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -78,7 +80,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/5a401d2225cfe3b7.md b/agent-context-shipped/files/5a401d2225cfe3b7.md new file mode 100644 index 0000000000..140e83b177 --- /dev/null +++ b/agent-context-shipped/files/5a401d2225cfe3b7.md @@ -0,0 +1,89 @@ +# Working with MetaObjects in this project + +> Stack: kotlin server, angular client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Kotlin: generate with `mvn metaobjects:generate` + +1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator + list, one `` each. Nothing is generated until it is listed. Which + classes to list (the Exposed and Spring tier, requirement tests, API docs) is in the + `metaobjects-codegen` skill's `references/kotlin.md`. +2. **Generate.** `mvn metaobjects:generate`. `mvn metaobjects:eject -Dnames= -Dport=kotlin` + copies a generator to change what it emits. Several Kotlin generators truncate their output + on every run, so never put your own code in a generated file. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `mvn metaobjects:verify` (the generated code and the requirements). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/60bc04713b62baba.md b/agent-context-shipped/files/5c2fce4a848a11f3.md similarity index 94% rename from agent-context-shipped/files/60bc04713b62baba.md rename to agent-context-shipped/files/5c2fce4a848a11f3.md index 206568d0cc..2218c8f3c9 100644 --- a/agent-context-shipped/files/60bc04713b62baba.md +++ b/agent-context-shipped/files/5c2fce4a848a11f3.md @@ -29,9 +29,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -68,7 +70,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/ca05e997cc76ca60.md b/agent-context-shipped/files/6c8e4466f6db30b9.md similarity index 98% rename from agent-context-shipped/files/ca05e997cc76ca60.md rename to agent-context-shipped/files/6c8e4466f6db30b9.md index dc5efe21aa..b786548088 100644 --- a/agent-context-shipped/files/ca05e997cc76ca60.md +++ b/agent-context-shipped/files/6c8e4466f6db30b9.md @@ -6,8 +6,8 @@ persistence with no per-entity ORM boilerplate. It is the DB-API implementation abstract `ObjectManager` contract and the cross-port analog of Java's `ObjectManagerDB` (OMDB): a method-based API (`find_by_id` / `find_many` / `count` / `create` / `update` / `delete` / `relate`) that compiles a Filter dict to parameterized SQL and runs it via a -pluggable driver. It is **pure data-access** (CRUD / query / codec); schema is owned by -the Node `meta` migration tool, not the runtime. +pluggable driver. It is **pure data-access** (CRUD / query / codec); schema migrations run +in your own tool or the Node `meta migrate` reference helper, not the runtime. ## Contents - Construct an `ObjectManagerDb` diff --git a/agent-context-shipped/files/6e466a4d852ffd2e.md b/agent-context-shipped/files/6e466a4d852ffd2e.md new file mode 100644 index 0000000000..bc50fba9c9 --- /dev/null +++ b/agent-context-shipped/files/6e466a4d852ffd2e.md @@ -0,0 +1,324 @@ +--- +name: metaobjects-audit +description: Use when assessing how well a project that already uses MetaObjects has adopted it — a first-pass or deep audit that finds hand-written code the metadata could own and produces a scored, prioritized adoption-audit report (JSON plus Markdown) covering codegen, runtime, drift gates and prompts. Read-only. +--- + +# MetaObjects adoption audit + +Typed metadata is what lasts; generated code is replaceable. A hand-written layer the +metadata could own is a second source of truth for one fact, and it will drift. This audit +finds those second sources and proposes folding them into the model where that pays: the +generator plus its output and added metadata is fewer lines than the hand-written code it +replaces, more of that shape are coming, or silent drift is the risk. A one-off layer that +fails that cost test is acceptable, not a defect. + +## Essentials + +- **Read-only.** The deliverables are `.metaobjects/adoption-audit.json` and a rendered + Markdown report. The audit never edits code and never authors metadata: each finding's + `metadata_sketch` is a proposal for a human to review, and cutovers run through the other + skills (the bridge at the end). +- **Metadata follows the code.** This is an existing project, so its code and live schema are + the specification. Every `metadata_sketch` reproduces the code's native types, names and + nullability (`field.uuid` where the code uses `UUID`; carry over `@column` / `@table` / + `@required`), and every cutover leaves code the generator is not replacing alone: propose + customizing the generator to match the existing shape before proposing edits to working + call sites. When a choice is ambiguous, flag it for the human; do not pick the option + with more churn. (`metaobjects-authoring`, "Adopting onto an existing codebase".) +- **Read the code behind every hit before raising a finding, and check + `references/calibration.md` first.** A grep hit is a lead. Calibration lists the port gaps + and non-defects that are never the adopter's fault. Under-flag: a false finding costs the + report more trust than a missed one. +- **Parity-gate every cutover.** Prove the generated replacement behaves the same before + hand-written code is deleted; generated schemas are often looser. +- **Check the database artifact, not only the types.** A contract can claim a computed + column the view DDL dropped. +- **One bespoke action does not block generating the entity.** Generate the CRUD and mount + the custom action beside it. +- **Check resolved package versions, not declared ones.** Consuming a fix means a coordinated + version bump and rebuild, not a copied dist file. + +## Reference files — open the one your task needs + +| File | Open it when | +|---|---| +| `references/calibration.md` | Before raising any finding: it lists the port gaps and non-defects that are never the adopter's fault. | +| `references/surface-review-axes.md` | Working any axis (A–I) of Phase 1b. | +| `references/capability-checklist.md` | On every axis: the exhaustive list of what the metamodel can express, one hunt per capability. | +| `references/drift-signatures.md` | Hunting hand-written second sources of truth (validators, mappers, comments, views, JSON bags, physical-name literals, enum-member and event-name literals). | +| `references/prompt-anti-patterns.md` | Axis D: the project builds text sent to an LLM or parses a reply. | +| `references/vocabulary-hygiene.md` | Axis I: retired or deprecated authoring forms, custom vocabulary, vocabulary opportunities. | +| `references/requirements.md` | Axis E2: the project declares `requirement.*` nodes. | +| `references/typescript.md`, `java.md`, `kotlin.md`, `csharp.md`, `python.md` | The server port the project uses (only the ports in the project's stack are installed). | + +## Phase 0: triage + +- Is MetaObjects present? (A `metaobjects/` directory or other metadata sources; the + `@metaobjectsdev/*` / `com.metaobjects:*` / `metaobjects` / `MetaObjects.*` dependencies.) +- Count metadata source lines and every `@generated` / `DO NOT EDIT` file in the repo. +- Run the owned-generators check and the version check below. +- Classify the project **Greenfield** (none or minimal), **Partial** or **Deep**, and take + the matching path. + +### Owned generators + +Find which generators the project owns at `codegen/generators/*` (through `meta eject`, or +`meta init` on a CLI before 1.0.4) and which it imports from +`@metaobjectsdev/codegen-ts/generators`. Both are supported from 1.1. The import is the right +choice for a generator the project does not change, and is never a finding by itself. + +Every port owns generators the same way. Run each port's listing (TypeScript +`meta eject --list --format text`, Python `metaobjects gen --list`, Java / Kotlin +`mvn metaobjects:eject -Dlist`, C# `dotnet meta gen --list`) and read each row for what it +proves: + +| The listing says | What that proves | What to do | +|---|---|---| +| `identical to the reference` | The copy is unmodified. This is the only mark that proves it. | Duplication that falls behind the reference: recommend the package import. | +| `same content as the reference, your formatting`, or `DIFFERS` with `0 line(s) of your own` | No added or edited lines. Removed or reordered lines are not ruled out. | Confirm from the file's history (`git log -p -- codegen/generators/.ts` shows no edit after the eject). A copy you cannot confirm is reported as "possibly customized: check its history", not as a copy to drop. | +| `DIFFERS` with lines of its own | Nothing by itself. The listing prints `DIFFERS` both for a deliberate customization and for a copy gone stale by version, and `M of your own` includes every line the reference has since removed or rewritten, which are older upstream lines. | Run the history check on every such row. Report two figures separately: lines behind the reference, and lines of the project's own that the history confirms. A copy stale by version is a finding (`owned-generator-stale`). | + +- **Runtime adapters.** For `entity`, `routes` and `routes-hono`, "unmodified" holds only when + every `codegen/runtime/` file the copy reaches is also marked identical: an edited adapter + is a customization, and such a copy is not a finding. Those runtime rows appear only with + `--format text` (or as the `runtimeCopy` array inside the row's `source` object in + `meta gen --list --format json`); a listing with no runtime rows is not evidence that the + adapter is unmodified. +- **A 1.0.x install.** An import of `entityFile` / `queriesFile` / `routesFile` / `barrel` + fails to load there, because 1.0 removed those four and 1.1 restored them. That is an + upgrade blocker, fixed by upgrading to 1.1 or by `meta eject ` if the project has to + stay on 1.0.x. +- **One total across every port:** unmodified owned-generator lines over all owned-generator + lines, where unmodified counts only copies proven unmodified. Report the proven copies + together as one finding, `owned-generator-stock-copies`, listing each copy and its port's + undo command. + +### Cross-language version consistency + +If the project uses MetaObjects in more than one language (a TypeScript web client with a +Java, Python or C# backend, say), list every MetaObjects package across every ecosystem (npm +`@metaobjectsdev/*`, Maven `com.metaobjects:*`, PyPI `metaobjects`, NuGet `MetaObjects.*`) and +record each resolved version. + +**The version lines differ by ecosystem, so drift cannot be judged by eye.** npm, PyPI and +NuGet are on `0.x` / `1.x` and Maven on `7.x` / `8.x`: a `0.12` beside a `7.7` looks fine and +can be badly out of step. Compare instead: + +- **The `metamodelVersion` each port reports** (the shared spec version on the registry + manifest). A mismatch is real cross-language drift and a finding: the ports disagree on + vocabulary or wire behavior. +- **Each port's release.** A match on `metamodelVersion` is not enough, because added + vocabulary does not move it. Line up each ecosystem's version for the same CHANGELOG entry; + a port on an older release is a finding when the model uses vocabulary that release lacks. +- **The latest release.** Also flag any port not on the latest release for its ecosystem. + +This failure has been seen in practice: newest backend, stale client, invisible because the +numbers differ. + +## Phase 1a: the Greenfield path + +- **Shape inventory.** Catalog the modelable shapes: entities and tables, DTOs, validation + schemas, routes, UI lists and forms, prompt sites. +- **Pick a wedge:** one real entity (single-column PK, standard CRUD) to model first. +- **From-zero roadmap:** `meta init` → model the wedge → `meta gen` the data layer → author a + projection view → expand to routes and UI → add the prompt pillar where LLM calls exist. + Choosing and owning generators from day one is part of the roadmap. + +## Phase 1b: the Partial / Deep path + +**Census.** Generated output line and file counts, plus metadata and owned-generator lines. +Compute the **leverage ratio**, `generated_lines / (metadata_lines + generator_lines)`; a +healthy one is a multiple (for example about 4.7k lines of model and generators to about +15.7k generated, 3.3×). Do not report a generated-share or leverage figure alone, or as a +target: pair it with the **net hand-written line change** (hand-written lines removed minus +generator and metadata lines added), because a share can rise while total hand-written code +grows. + +**Coverage matrix.** Per entity, projection and value object: query helpers? view? routes? +UI? The gap between "modeled, with query helpers" and "has view, route and UI" is the +headline lopsidedness. + +**Shape coverage census.** The coverage matrix lists modelled entities only, so a shape +nobody modelled never appears in it. Count the other side too. List every shape that crosses +a boundary: database tables and views, request and response bodies, queue and socket +messages, prompt inputs, LLM replies, and file formats the project reads or writes. For each +shape, record whether it is modelled, and for each layer that states it (DDL or migration, +ORM model, validator, DTO, client type, prompt payload, reply parser) whether that statement +is **generated**, **derived** from generated code (a type built from a generated type, a +`z.infer` of a generated schema), or **hand-declared**. Report +`generated or derived statements / all statements` and list the unmodelled shapes. A table +present in the database or the migrations with no entity or projection behind it is a +finding (`unmodelled-table`). Like the leverage ratio this is a measurement, never a target: +an unmodelled shape is a finding only where the cost test says modelling it pays, or it is a +table. + +**Surface review.** The axes can be run independently. Work the full +`references/capability-checklist.md` on every axis; the hunt for each axis is in +`references/surface-review-axes.md`. For a "duplicate" validator, the place where it +diverges from the model is the finding. + +- **A.** Codegen candidates — API / server routes · **B.** Codegen candidates — web / client +- **C.** Drift hotspot — validators, mappers, runtime models · **D.** Prompt pillar +- **E.** Owned generators and scaffold-and-own · **E2.** Capability ledger (`requirement.*`, opt-in) +- **F.** Drift-gate adoption — does it block? · **F2.** Over-generation and generated-but-bypassed (codegen waste) +- **G.** Runtime-contract anti-patterns · **G2.** `own*()` accessor discipline (a correctness defect, not advisory) · **G3.** Guarded status transitions (every write to a status-like enum column is conditional on the current value; the fix goes through the port's ORM with generated constants, never raw SQL) +- **H.** Authoring correctness / ADR conformance · **H2.** Wrong native type (`field.string` + `@dbColumnType: uuid`) +- **I.** Vocabulary hygiene / modernization (advisory, never a failing finding) + +Then synthesize the findings into the tiered roadmap and write both artifacts. + +## Classifying a surface (on codegen and on runtime) + +| Class | Meaning | Action | +|---|---|---| +| **GENERATED** | Driven by metadata (regenerable). | Confirm it regenerates clean. | +| **OWNED-GENERATOR** | `codegen/generators/*` file the project owns. | Confirm clean regen; flag drift from reference template. | +| **CODEGEN CANDIDATE (high)** | Standard CRUD/list/form over a modeled or modelable entity. | Author the view + generate; parity-gate. | +| **CODEGEN CANDIDATE (partial)** | Generatable data layer, bespoke presentation. | Generate data layer; keep viz hand-written. | +| **DYNAMIC-RUNTIME CANDIDATE** | Behavior that could be metadata-driven at runtime. | Assess runtime-metadata feasibility. | +| **ACCEPTABLE (one-off)** | A hand-written layer the metadata could own, but an owned generator for it would cost more lines than it replaces, no more instances are expected, and nothing drifts silently (it reads typed generated properties). | Report as acceptable. Not a defect, not a recommendation to generate. Re-class if it recurs or drift appears. | +| **BESPOKE (keep)** | Genuine custom: irreducible SQL (recursive CTEs, window functions, set ops — NOT plain count/sum/avg rollups, which are `origin.aggregate` on a projection), graph, SSE, auth, search, viz. | Leave hand-written — still import generated types. | +| **VOCAB CANDIDATE (advisory)** | A recurring, closed hand-coded pattern (parallel integration modules / an ad-hoc string discriminator) that project-registered vocabulary — a custom subtype/attr via a provider — plus a small owned generator would own. | Propose the provider + `metadata_sketch`; apply the ADR-0037 ordered test; advisory only. | + +**A hand-written component that derives from generated metadata cannot drift: flag it as +good.** A "bespoke" component hardcoding a shape the metadata knows is a hidden candidate. +A demo-data route has nothing to replace: classify it "candidate (future), not DB-backed". + +## Owned generators and generator gaps + +- **Audit each owned generator.** Does it regenerate clean? Has it drifted from the + reference on purpose (good) or gone stale (a missed upstream fix)? Decide that from the + copy's history, as in Phase 0, not from the listing's count. Does it hand-roll a walk that + a declarative `scope` + `outputPattern` could replace? Would a bespoke shape be better as a + `templateGenerator` than a forked generator? +- **The authoring ladder to recommend from:** a built-in fits → import it as shipped; close → + eject it and customize the copy; a new shape → author a declarative template-spec or a + custom generator from the metadata; cannot be modelled → hand-write, still importing the + generated types. +- **Generator gaps.** Are missing generators blocking the biggest wins? Recommend per gap: + own and customize, author a template-spec, fix upstream, or a stopgap. Cost-test every + recommendation to generate (`metaobjects-codegen`, `references/owning-generators.md`): an + owned generator is worth it only if generator plus output is smaller than the code it + replaces, more instances are expected, or drift protection is the point. A layer that + fails is ACCEPTABLE, and an owned generator larger than the code it replaced is itself a + finding. A general-shape generator belongs in the library, not in each app. +- **An undeclared hand-written database view is invisible to `meta verify --db`.** A view + that is neither modeled nor carried in the `source.rdb` `@sql` / `@unmanaged` escapes is + reported as informational only, so a hand-written view standing in for an expressible + `object.projection` or entity read-view can only be found here (drift signature 8 in + `references/drift-signatures.md`). Once carried in `@sql` it is registered and + drift-checked. + +## Ratifying constraints before they enter the model + +When folding hand-written validators into metadata, each constraint needs a human decision, +because a constraint in shared metadata reaches every port. It belongs there only if it is a +true cross-language domain invariant; one consumer's preference stays in a thin local +refinement layer. + +Cross-field rules are modelable (`comparison` / `atLeastOne` / `exactlyOne` / +`requiredWhen` / `presentIff`); ratification decides which belong in shared metadata. Output +a **ratification table**: KEEP-IN-METADATA / LOCAL-REFINEMENT / DROP, with the rationale, +for a human to approve. Never apply it silently. Tell `required` apart from has-a-safe-default +(`@default` often fixes an over-requiring bug). + +## Scoring: no single score, bands not decimals + +1. **Headline maturity tier.** Greenfield → Partial → Deep → Exemplary, worst-of with + prerequisite gating (a missing pillar cannot be averaged away), shown with the single + next unmet check ("you're Partial; the next rung needs a blocking `verify` in CI"). +2. **Per-pillar breakdown, never rolled into one number.** `pillar | tier | top gap` over + codegen / runtime / drift-gate / prompts. This is the core deliverable. +3. **Binary CI drift gate**, prominent and separate: "Does `meta verify` drift detection + block every route to production?" It is binary because the risk is. YES only when axis F + scores the gate **BLOCKING**; RUNS BUT DOES NOT BLOCK and ABSENT both answer NO, with the + reason (exit code swallowed, tolerated error count, a deploy path that skips it, no CI). + Local hooks with no tracked installer do not count. +4. **Used as described.** One line, separate from the tier: does the project use what it + adopted the way MetaObjects documents it? Built from four measurements, each shown with + its numbers: generated artifacts consumed rather than bypassed (axis F2, `consumed / + emitted` and the `generated-and-bypassed` count); the gate blocks (axis F score); prompt + payload fields linked to entity fields (axis D, `linked / (linked + unlinked copies)`); + and boundary shapes generated or derived (the shape coverage census). Render it as + `Used as described: — generated forms 5/12 consumed · gate RUNS BUT DOES NOT + BLOCK · payload fields 6/10 linked · shapes 50% generated or derived`, banded by its worst + part. + +Coarse bands only (none / some / most / all), worst-of within a pillar. Lead with the gaps, +not the grade. Vocabulary hygiene (axis I) is advisory: it appears as modernization +opportunities in the roadmap and never gates a tier, because dated vocabulary that works is +not a defect. + +**On a re-run, compare with the previous audit.** If `.metaobjects/adoption-audit.json` +already exists, read it before starting and keep it as the baseline. Match each earlier +finding to this run's by `id` plus location, and give every earlier finding a `status`: +**fixed** (the location no longer shows it; say what changed), **open** (still present, +carrying its original `first_seen`), or **deferred** (the project recorded a decision not to +fix it now, in a commit, an ADR, a tracked issue or a code comment, quoted as +`deferred_reason`). A finding that is still present with no recorded decision is open, never +deferred. New findings are `new`. Report the counts per status at the top of the report, +and show each scorecard line beside its previous value. + +## The report + +Two artifacts: `.metaobjects/adoption-audit.json` and the rendered Markdown. + +**Markdown sections, Scorecard first:** 0. Scorecard (tier, pillar table, CI gate, used as +described; on a re-run, the fixed / open / deferred / new counts) · 1. Triage and census +(including the owned-generator unmodified-lines total and the shape coverage census) · +2. Coverage matrix · 3. Per-surface classification tables · 4. Drift findings (active bugs +first) · 5. Owned generators and generator gaps · 6. Drift-gate adoption · +7. Runtime-contract and authoring-correctness (axes G and H) · 8. Constraint ratification · +9. Prompt-pillar assessment · 10. Prioritized roadmap: Tier 1 drift kill → Tier 2 existing +generators → Tier 3 new generators and projections → Tier 4 dynamic runtime, prompts, +cross-port. Each roadmap item: lines retired, prerequisite, and the parity gate to pass +before hand-written code is deleted. + +**Each finding in `.metaobjects/adoption-audit.json`:** + +| Field | Content | +|---|---| +| `id` | stable kebab id (e.g. `handwritten-crud-route`, `manual-zod-validator`, `enum-literal-spelling`, `unguarded-status-transition`, `owned-generator-stale`) | +| `title` | "you hand-wrote X that metadata can generate / model" | +| `pillar` | `codegen` / `runtime` / `drift` / `prompt` | +| `surface` | `entity` / `route` / `validator` / `repository` / `dto` / `hooks` / `prompt` / `migration` | +| `capability` | the capability-checklist capability this maps to (e.g. `field.currency`, `relationship.@through`) | +| `locations[]` | exact `file:line` spans | +| `impact` | LOC eliminated + N call-sites + drift-risk (high/med/low) | +| `effort` | `trivial` / `small` / `medium` / `large` | +| `confidence` | bias to under-flagging (false-positive rate >15% is a kill criterion) | +| `metadata_sketch` | metadata you'd author to replace it — **read-only proposal only; never applied** | +| `next_command` | the exact command / skill that performs the cutover (see bridge below) | +| `parity_gate` | the specific check proving behavior-equivalence | +| `tier` | 1–4 | +| `status` | `new` / `open` / `fixed` / `deferred` against the previous audit (`new` on a first run) | +| `first_seen` | date of the audit that first raised it (carried forward on re-runs) | +| `deferred_reason` | for `deferred` only: the recorded decision, quoted, and where it is recorded | + +Fixed findings stay in the file with `status: fixed` for one run, so the next reader sees +what closed. + +**Top-level fields**, beside `findings[]`: + +| Field | Content | +|---|---| +| `audited_at`, `commit` | when the audit ran and the commit it read | +| `previous` | `audited_at` and `commit` of the baseline audit, or `null` on a first run | +| `tier`, `pillars[]` | headline tier and `{ pillar, tier, top_gap }` per pillar | +| `ci_gate` | `{ score: "BLOCKING" \| "RUNS_BUT_DOES_NOT_BLOCK" \| "ABSENT", exit_code, error_count, swallowed_at[], deploy_paths_skipping[] }` | +| `used_as_described` | `{ band, generated_consumed, generated_emitted, bypassed_count, gate_score, payload_fields_linked, payload_fields_unlinked, shape_statements_generated_or_derived, shape_statements_total, unmodelled_shapes[] }` | +| `owned_generators` | `{ unmodified_lines, total_lines, copies[] }`, one total across every port | +| `status_counts` | `{ new, open, fixed, deferred }` | + +Within each tier, sort by impact ÷ effort (quick wins first). Tier 1 leads. + +### From audit to action + +The audit never edits code. The pattern for whoever acts on it is dry-run → review the diff → +apply, one surface at a time, one commit each. + +- Propose metadata → `metaobjects-authoring`, with a human reviewing. +- Generate → `meta gen`; `meta gen --dry-run` is the review-the-diff step → `metaobjects-codegen`. +- Prove parity → `meta verify --codegen` is the drift gate → `metaobjects-verify`. +- Routes, runtime, web → `metaobjects-runtime-ui`. +- Prompts → `metaobjects-prompts`. diff --git a/agent-context-shipped/files/9a4c5782dabd6c6e.md b/agent-context-shipped/files/71f3aede2e59870d.md similarity index 97% rename from agent-context-shipped/files/9a4c5782dabd6c6e.md rename to agent-context-shipped/files/71f3aede2e59870d.md index f047af58ed..21722e10af 100644 --- a/agent-context-shipped/files/9a4c5782dabd6c6e.md +++ b/agent-context-shipped/files/71f3aede2e59870d.md @@ -5,8 +5,9 @@ render engine, and Maven plugin are all Java; `metaobjects-codegen-kotlin` emits idiomatic Kotlin (KotlinPoet: `data class` (no `@Serializable` — entities are Jackson-compatible, not kotlinx-serialized), Exposed `Table` objects, Spring `@RestController`). Codegen runs as the same Maven plugin goal the Java port -uses (`mvn metaobjects:generate`). Schema migration and live-DB drift are -**Node-`meta`-only** (ADR-0015). The runtime persistence tier is **JetBrains Exposed** +uses (`mvn metaobjects:generate`). Schema migration is the project's own tool or the +Node `meta migrate` reference helper, and live-DB drift is the Node `meta verify --db` +(ADR-0015). The runtime persistence tier is **JetBrains Exposed** (hand-written transaction bodies around the generated table objects), or optionally **OMDB** (the Java `ObjectManagerDB`, callable from Kotlin). diff --git a/agent-context-shipped/files/e626029a53526f92.md b/agent-context-shipped/files/7324dedeb09d7f35.md similarity index 99% rename from agent-context-shipped/files/e626029a53526f92.md rename to agent-context-shipped/files/7324dedeb09d7f35.md index 92401736a4..4ae0b3964a 100644 --- a/agent-context-shipped/files/e626029a53526f92.md +++ b/agent-context-shipped/files/7324dedeb09d7f35.md @@ -93,7 +93,7 @@ export default defineConfig({ dialect: "postgres", // "postgres" | "sqlite" | "d1" | "mysql" (mysql: codegen + runtime; migrate does not own it) // orm: "prisma", // keep Prisma: contract-only targets + prismaSchemaFile(); see `typescript-prisma.md` extStyle: "js", // "js" (default) for Node ESM / plain tsc; "none" for a bundler-resolution toolchain — see `owning-generators.md` "Your framework isn't the default" - apiPrefix: "/api", // flows to routes AND client fetch URLs + apiPrefix: "/api", // where the generated routes mount; the web client sets `baseUrl` on its fetcher provider timestampMode: "string", // "string" (default, ISO-8601 wire contract) | "date" (Drizzle native Date) pluralizeCollections: true, // default; table VARS auto-pluralize (AgentConfig → agentConfigs) collectionNameOverrides: { // per-entity escape hatch for names the rule gets wrong diff --git a/agent-context-shipped/files/e1054bf83aaaa224.md b/agent-context-shipped/files/74622d492d119958.md similarity index 94% rename from agent-context-shipped/files/e1054bf83aaaa224.md rename to agent-context-shipped/files/74622d492d119958.md index 07650cfc8e..2784571e68 100644 --- a/agent-context-shipped/files/e1054bf83aaaa224.md +++ b/agent-context-shipped/files/74622d492d119958.md @@ -40,9 +40,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -78,7 +80,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/fd0c7ac49fc2b38d.md b/agent-context-shipped/files/7bf85ab44b2d3091.md similarity index 94% rename from agent-context-shipped/files/fd0c7ac49fc2b38d.md rename to agent-context-shipped/files/7bf85ab44b2d3091.md index 055811fcc1..dae99ce354 100644 --- a/agent-context-shipped/files/fd0c7ac49fc2b38d.md +++ b/agent-context-shipped/files/7bf85ab44b2d3091.md @@ -29,9 +29,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -68,7 +70,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/8043368fa42ba3f6.md b/agent-context-shipped/files/8043368fa42ba3f6.md new file mode 100644 index 0000000000..0bbacae3e4 --- /dev/null +++ b/agent-context-shipped/files/8043368fa42ba3f6.md @@ -0,0 +1,89 @@ +# Working with MetaObjects in this project + +> Stack: java, kotlin server, no client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Java: generate with `mvn metaobjects:generate` + +1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator + list, one `` each, under `` pointing at the metadata. + Nothing is generated until it is listed; the build names any generator a listed one needs. + Which classes to list (the Spring REST tier, requirement tests, API docs) is in the + `metaobjects-codegen` skill's `references/java.md`. +2. **Generate.** `mvn metaobjects:generate`. `mvn metaobjects:eject -Dnames= -Dport=java` + copies a generator to change what it emits. + +### Kotlin: generate with `mvn metaobjects:generate` + +1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator + list, one `` each. Nothing is generated until it is listed. Which + classes to list (the Exposed and Spring tier, requirement tests, API docs) is in the + `metaobjects-codegen` skill's `references/kotlin.md`. +2. **Generate.** `mvn metaobjects:generate`. `mvn metaobjects:eject -Dnames= -Dport=kotlin` + copies a generator to change what it emits. Several Kotlin generators truncate their output + on every run, so never put your own code in a generated file. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `mvn metaobjects:verify` (the generated code and the requirements). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/80606ed514438d51.md b/agent-context-shipped/files/80606ed514438d51.md deleted file mode 100644 index c5f0d69812..0000000000 --- a/agent-context-shipped/files/80606ed514438d51.md +++ /dev/null @@ -1,342 +0,0 @@ ---- -name: metaobjects-verify -description: Use when verifying MetaObjects — drift checks (verify --db/--codegen/--templates), schema migrations, and interpreting conformance/test failures. ---- - -# MetaObjects verify + migrations - -The third pillar: **drift detection.** MetaObjects treats metadata as the source of -truth and generated code + DB schema + prompts as derived. `verify` is the -cross-cutting discipline that catches divergence; schema migration is the build-time -pipeline that brings the database into line with metadata. This skill is the -procedure for running both and reading the failures. - -## The drift sources - -Drift is any place where a derived artifact has fallen out of sync with the -metadata that should define it. The ones a developer must actively guard: - -- **DB-vs-metadata** — the live database schema has diverged from the metadata - (a column the metadata no longer declares, a missing index, a type mismatch). A - **modeled projection's** view body is compared too — a changed `CREATE VIEW` emits - a `replace-view`. For a genuinely irreducible view body (recursive CTE, window - function, set operation) that `origin.*` can't express, use the `source.rdb` - `@sql` escape: a hand-written body the tool still registers, fingerprints, and - drift-checks — emitted verbatim instead of synthesized (adopt a pre-existing - hand-written view once with `meta migrate --allow adopt-view`). For a DB object - — view **or table** — owned entirely elsewhere (Flyway, a hand-migration, - another app's schema), mark it `@unmanaged: true`; `meta migrate` never - touches it and `verify --db` reports it as *external (declared)* rather than - silently. `@sql` and `@unmanaged` are mutually exclusive on one source. But a - hand-authored view carrying **neither** marker is *unmanaged by omission* - (reported as informational, never failed, never dropped) — so an **undeclared** - hand-written view standing in for an expressible `object.projection` is the one - drift class `verify --db` can't catch; the `metaobjects-audit` skill is the only - gate that sees it. See `references/migration.md` → "DDL-ownership escape - valves (`@sql` / `@unmanaged`) — #208" for the full contract. -- **Generated-vs-metadata (codegen)** — committed generated code no longer matches - what the current metadata would emit (someone edited a `@generated` file, or - forgot to regenerate after changing metadata). -- **Prompt-vs-payload (templates)** — a template references a `{{field}}` that - isn't on its `@payloadRef` payload VO (a renamed source field silently degrading - a prompt). - -Two more are caught structurally rather than by a command: **generated-edited** -(the `@generated` header + three-way merge surface hand-edits at code review) and -**migration-vs-metadata** (migrations are emitted *from* metadata diffs, so they -can't drift by construction). - -## Before any of this: the metadata has to LOAD — `meta upgrade` for retired vocabulary - -`verify` cannot report drift in a model it could not read. The registry is sealed -(ADR-0023), so a retired name has **no deprecation shim** — it is a load error, and -the run stops before the first drift check. Retirements that bite an existing estate: -`@readOnly` → `@mutability` and `origin.collection` → `origin.aggregate @agg: collect` -(0.24.0); `@violation` → `@counterexample`, plus `@verifiedBy`, `@supersededBy` and -`@status: abandoned | superseded` on `requirement.*` (0.24.0, FR-038); and an index key -declaring **both** `@fields` and `@expr`, refused since 0.24.1. - -``` -meta upgrade # previews every rewrite; writes nothing -meta upgrade --apply # makes them -``` - -Node-only, because it edits the metadata documents every port shares — a Java, Python -or C# project runs `npx meta upgrade` against its own sources. Canonical JSON and YAML -alike. It rewrites from the same table the loader's errors are generated from, fixes -only what has one correct answer, and **refuses the rest with a non-zero exit** so a -pipeline cannot record a partial migration as done. See -`references/requirements.md` for what it refuses on a ledger and why. - -## Run `meta verify` before you call a build done - -Make a bare `meta verify` the last step before you consider any MetaObjects work -finished — not only in CI. Besides the drift checks below, a bare `verify` (and -every `meta gen`) runs an **advisory anti-pattern pass**: it scans your authored -source and flags where you hand-rolled something the metadata could model, naming -the construct that replaces it — a hand-written aggregate (`AVG`/`reduce`-sum → -`origin.aggregate` on an `object.projection`), money as a float (`* 100`/`toFixed` -→ `field.currency`), a `CHECK (... IN ...)` value set (→ `field.enum`). It is -advisory (never fails the build), but each line is the fix: when you see one, model -it and call the generated query/field instead of keeping the hand-rolled version. -This is the most common way a build ends up *declaring* a projection yet still -hand-aggregating in a route — verify catches exactly that. - -**Read the whole report, not the first twenty lines.** Text output caps each -advisory section at 20 lines and then says how many it held back; raise it with -`--limit ` or remove it with `--limit all`. You are on a pipe, so your default -format is already TOON: `meta verify` puts one machine-readable document on stdout -carrying every gate's verdict, every anti-pattern finding and every requirement -diagnostic — **uncapped** — with narration on stderr. `--format json` if you want -JSON. A pass that did not run reports `status: "skipped"` and why, so an empty list -always means "found nothing", never "never looked"; what the payload does not carry -is named in its own `notRepresented[]`. - -**A bare `verify` runs the code gates, not the database gate.** In every port a bare -run covers codegen drift (stale generated code), prompt-template drift, the -requirement ledger and the business-rules gate, paired with the advisory anti-pattern pass above. `verify --db -`, `--deps` and `--replay` stay opt-in (`--db` is Node `meta` only). A bare run -skips a gate it has no configuration for and says so in one line: Node `meta` with -no `metaobjects.config.ts`, Python with no `metaobjects.config.yaml`, `dotnet meta` -with no `--out ` or `codegen/Generators.cs`, Maven with no `templateRoot`. The -Node `meta verify` ends every run, bare or not, with a `not run:` line naming each -gate it skipped and the flag that selects it; read it, because a skipped gate is a -gate that did not guard the build. - -## Requirements are checked on every run - -If this project declares `requirement.functional` / `requirement.architectural` nodes, read -`references/requirements.md`: requirements are metadata, so they are checked on **every** -`meta verify` — there is no subverb — and the severity of a broken link depends on the -requirement's `@status`, which is the part that surprises people reading a failure. - -## The overlay authoring lint runs on every run, dependencies or not - -`meta verify` always runs an ADVISORY overlay lint, no subverb needed and -regardless of whether this project declares `dependencies` in -`.metaobjects/config.json` (`docs/features/metadata-dependencies.md`): a -top-level `(type, resolutionKey)` declared in two or more collection files — -dependency artifacts included when there are any, since they are the base a -consumer's own files amend, but a plain multi-file **local** overlay (no -dependencies at all — e.g. the layered-overlay pattern in `AGENTS.md`, or any -project that re-opens its own node from a second file) triggers it exactly the -same way — where MORE THAN ONE declaration lacks `overlay: true`. Exactly one -unflagged declaration is the base and is fine; every additional one is a -finding naming its file, because it is exactly the state that turns loud -(`ERR_OVERLAY_NO_TARGET`) the day the target is renamed or removed, instead of -quietly forking into a second, disconnected object. Never fails the build; -mute it with `--no-overlay-lint` or `META_NO_OVERLAY_LINT=1` the same way the -anti-pattern pass is muted. - -**A stale dependency snapshot is a load-time failure, not a `verify` finding.** -If `.metaobjects/deps//` disagrees with `.metaobjects/deps.lock.json` — a -missing snapshot, a hand-edited one, or a lock entry with no matching config -declaration — every command (not just `verify`) fails to even LOAD the metadata, -with `ERR_DEPENDENCY_SNAPSHOT_STALE` naming the fix: run `meta deps sync`. - -## The `verify` subverbs - -`verify` has four drift checks. Run the ones your project uses in CI. - -- **`--db`** — schema drift. Introspects the live database and fails if it has - diverged from metadata. This is a **schema concern, so it is the Node toolchain's - job regardless of your server language** (see migrations below). The JVM ports - have no schema surface of their own — ADR-0015 Decision 2 removed the old - dev/test auto-create validator (OMDB is pure data-access) — so a JVM, Python, or - C# project's dev/test databases are provisioned the same way production is: by - applying the Node-emitted SQL. The Node `verify --db` is the only DB-vs-metadata - gate, for every port. - -- **`--codegen`** — regeneration drift. Re-runs generation and diffs the result - against the committed generated files; a stale generated part (someone skipped a - regen) fails the build. Wire it into CI so a stale `@generated` file fails. - **A hand edit inside a generated file is reported apart from drift** — `meta gen` - three-way-merges hand edits by design, and the Node gate judges the *generated - contribution* against the committed `.metaobjects/.gen-state/.hashes/`, not the - bytes, then lists every generated file carrying a hand edit (count + paths). Whether - that list fails the build is `verify.handEdits` in `.metaobjects/config.json`: - `"fail"` exits 1 (what `meta init` writes for a new project), `"notice"` (and a - project without the key) exits 0, so a weakened validator passes there. Check the - key; `--allow-hand-edits` relaxes `fail` for one run, `--forbid-hand-edits` forces it - for one run. If an edit changed a rule the model declares (a length, a range, a - required field), make the change in the metadata instead, so the database and every - port follow it. To see one edit: delete the file, run `meta gen` (it re-emits the - pristine generation), then `git diff -R -- `; `git checkout -- ` - restores it. An `.names.ts` artifact always fails on a hand edit. The C#, - Java, Kotlin and Python gates compare bytes, so any edit fails there. - -- **`--templates`** — prompt/payload drift. For every `template.prompt` / - `template.output`, resolves the text, parses each `{{...}}` reference, and fails - if any reference isn't on the payload VO. This is the build-time gate for the - prompt-construction pillar. - -- **`--deps`** — dependency drift (FR-023). Re-resolves each declared dependency - right now and compares its installed artifact's hash against - `.metaobjects/deps.lock.json` — the same comparison `meta deps check` runs. Node - `meta` resolves every transport (`path`, `npm`, `python`, `maven`, `nuget`); the - Python, Java/Kotlin and C# checks resolve `path` only and report any other - transport `unresolved`, naming Node `meta deps check` (a check that cannot check - must not pass). Every port also loads the committed snapshot and honours the - default-exclusion it implies. Never part of the bare-`verify` default: it - needs the publisher's `path` reachable, which CI checking out only your own repo - may not have. Reports `current` / `drifted` / `unresolved` per dependency; - `drifted` or `unresolved` fails with `ERR_DEPENDENCY_UPSTREAM_DRIFT`, fix is - "review the artifact diff, then `meta deps sync`." - -**Only `--db` is Node-universal.** `--codegen` / `--templates` run through each -port's own build tool, not the Node `meta`: - -| Port | Codegen drift | Template drift | Schema drift | -|---|---|---|---| -| TS | `meta verify --codegen` | `meta verify --templates` | `meta verify --db ` | -| Java / Kotlin | `mvn metaobjects:verify -Dmeta.verify.mode=codegen` | `mvn metaobjects:verify -Dmeta.verify.mode=templates` | Node `meta verify --db` only | -| C# | `dotnet meta verify --codegen` | `dotnet meta verify --templates` | Node `meta verify --db` only | -| Python | `metaobjects verify` (`--codegen` is in the default) | n/a | Node `meta verify --db` only | - -Dependency drift (`--deps`) per port: - -| Port | Dependency drift | -|---|---| -| TS | `meta deps check`, `meta verify --deps` | -| Python | `metaobjects deps check`, `metaobjects verify --deps` | -| Java / Kotlin | `mvn metaobjects:verify -Dmeta.verify.mode=deps` | -| C# | `dotnet meta verify --deps` | - -Every non-TS port's `verify` rejects `--db` outright (exit 2, "schema verify is the -migrate engine") — schema drift always runs through the Node `meta verify --db`, -per the shared-migration-engine doctrine below. - -A clean run is silent; a failure names the entity/template, the drifted artifact, -and (for templates) the missing reference. **Bias toward trusting the tool** — a -verify failure almost always means the metadata changed and a derived artifact -didn't follow. - -## What `verify` can't catch — semantic mismodeling (add a CI ratchet lint) - -The three subverbs check that derived artifacts *match the metadata*. They do **not** -check that the metadata *models the right thing* — so a semantically wrong metadata -choice that is internally consistent passes clean. The canonical case: a UUID column -modeled **`field.string` + `@dbColumnType: uuid`**. The generated property is a `String`, -the DB column is genuinely `uuid`, so **`verify --db` passes** while every consumer coerces -`String↔UUID` and the native type is wrong throughout the code (see `metaobjects-authoring` -→ the UUID smell). No drift subverb can see it, because nothing has drifted — the model -itself is wrong. - -For semantic invariants like this, add a **project-local CI ratchet lint** over the -metadata sources — a grep-level gate is enough: - -``` -# fail the build if any field.string carries @dbColumnType: uuid (a UUID-column-as-string smell). -# Illustrative — tune the matcher to your source format (canonical JSON vs sigil-free YAML) and -# tighten to per-node scope if a coarse co-occurrence match is too broad for your files. -! grep -rEzl '"field\.string"[^}]*"@dbColumnType"[^}]*"uuid"' metaobjects/ -``` - -Make it a **ratchet**: it can't go green until the last offending field is migrated to -`field.uuid`, so it doubles as the migration's completion criterion **and** a permanent -backstop against reintroducing the smell. The same pattern generalizes to any semantic -metadata rule your project wants enforced that `verify` structurally can't express. - -The other invariant worth a ratchet is **no physical name as a literal**. A table or -column string in hand-written code is a second spelling of a declared fact, and nothing -in `verify` compares your code to the schema — `--codegen` diffs generated files against -a fresh regen, `--db` diffs the database against the metadata. Neither reads the -repository you wrote. Build the alternation from the metadata's own `@table` / `@view` / -`@column` values and fail on any hit outside generated output: - -``` -# fail the build if a declared physical name is spelled in hand-written source. -# Illustrative — generate the alternation from your metadata, scope it to the -# directories you hand-write. A typed ORM handle never matches this; a literal does. -! grep -rEn '"(orders|created_at|purpose_code)"' src/ --exclude-dir=generated -``` - -Generated output is already covered upstream — every port's generators reference the -names artifact instead of embedding the literal — so this ratchet is only ever about your -code. The remedy for a hit is the `Names` constant (`metaobjects-runtime-ui`). - -## Schema migrations are the shared TypeScript engine — for every port - -This is the load-bearing architectural fact (ADR-0015): **schema migrations are -owned by one shared TypeScript engine, regardless of your server language.** The -Node `meta migrate` and `meta verify --db` are the migration + live-DB-drift -toolchain for TS, Java, Kotlin, C#, and Python alike. - -What this means in practice: - -- The Node `meta` CLI emits the migration SQL (diffing metadata → DDL) and applies - it. You point it at the same database your server connects to: - - ``` - meta migrate --from-db --db postgresql://... --dialect postgres --slug init --apply - # first migration on a brand-new database - meta migrate --dialect postgres --slug add-user-shipping # everyday: emit migration SQL - meta migrate --dialect postgres --slug add-user-shipping --apply --db postgresql://... - # ...and apply it - meta migrate --dialect postgres --slug add-user-shipping --dry-run # preview without writing - ``` - - Always pass `--dialect` — it selects the diff pipeline, not just the SQL flavor. - It is *required* on the offline path and on `baseline`; with `--db` the CLI can - auto-detect it from the URL scheme, but being explicit keeps the two paths - reading the same. Do **not** run `meta migrate baseline` on a database that does - not exist yet; see `references/migration.md`. - -- Dialects: `postgres` (default), `sqlite`, and `d1` (Cloudflare D1, TS-only). MySQL is a - codegen and runtime dialect only: `meta migrate --dialect mysql` is refused, and you own the DDL. -- The JVM and Python ports have **no** migration command of their own — their - former migrate goals/modules were removed, and (ADR-0015 Decision 2) the JVM - runtime's own dev/test schema auto-create path - (`MetaClassDBValidatorService` + the drivers' DDL) was removed too: OMDB is - pure data-access. Every port's schema — dev, test, and production alike — is - always the Node migrate engine's output. - -So even in a Java or Python or C# project, schema migration and `verify --db` run -through the Node `meta` tool. The per-port `gen`/codegen tooling stays native to -the language; only schema crosses to Node. - -## Never hand-edit the live database — apply schema only through the tool - -The live schema is a derived artifact, exactly like generated code. **Do not mutate a running -database by hand** — no `psql`/console `ALTER TABLE` / `CREATE` / `DROP`, not to preview a column, not -to patch a mismatch, not to "just unblock" a boot. It is the single most common way a database ends up -in a state no migration can reproduce: - -- The column now exists but no migration recorded it, so the next `meta migrate` tries to add it - again and dies on `column ... already exists` — or worse, silently diverges and the drift only - surfaces days later. -- "I'll just add it real quick so I can see it in the tool" is the exact rationalization to catch. It - doesn't *feel* like a schema change, so it skips the metadata-first check — but it is one. - -Apply every schema change the same way: change the metadata, then let `meta migrate` (or, for a -project still driving its own migrator, a migration authored *to match* the regenerated schema) apply -it. Want to see a new column in a tool or an app? Apply the migration and re-read — never reach for -`psql`. - -**Make `meta verify --db` a done-check, not just a CI gate.** Run it after any work that touched the -database or the schema-shaping metadata, before you consider the task finished — it introspects the -live DB against the metadata and fails on exactly this drift (a hand-added column, a missing index, a -mismatched type), catching a manual poke immediately instead of at the next boot. - -## Interpreting conformance / test failures - -MetaObjects' behavior is pinned by cross-port **conformance corpora** (metamodel, -render, persistence, API-contract, verify). When a test or conformance fixture -fails: - -- A **loader** failure cites an `ERR_*` code (e.g. `ERR_RESERVED_ATTR`, - `ERR_UNRESOLVED_SUPER`, `ERR_MISSING_REQUIRED_ATTR`, `ERR_BAD_ATTR_VALUE`, - `ERR_YAML_COERCION`) — fix the metadata, not the loader. -- A **render/verify** failure means the rendered bytes or the template-drift - result diverged from the pinned expectation — usually a payload/text mismatch. -- A **persistence / API-contract** failure means a query result row or an HTTP - response shape diverged from the cross-port expectation — treat a deviation as a - bug in the code under test, not in the corpus. - -The corpus is the contract: when output disagrees with a fixture, the output is -what's wrong. - ---- - -For the migration tooling read `references/migration.md`. Before upgrading MetaObjects, or -when a project runs more than one port, read `references/upgrading.md`. diff --git a/agent-context-shipped/files/5bf46c119eb2f22b.md b/agent-context-shipped/files/82bc554e6d4a2a14.md similarity index 94% rename from agent-context-shipped/files/5bf46c119eb2f22b.md rename to agent-context-shipped/files/82bc554e6d4a2a14.md index dbd2363e8f..238437208b 100644 --- a/agent-context-shipped/files/5bf46c119eb2f22b.md +++ b/agent-context-shipped/files/82bc554e6d4a2a14.md @@ -37,9 +37,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -76,7 +78,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/8c2f34607e5f23fa.md b/agent-context-shipped/files/8e5978224add0b68.md similarity index 95% rename from agent-context-shipped/files/8c2f34607e5f23fa.md rename to agent-context-shipped/files/8e5978224add0b68.md index 1968fb15f3..d0f9766c6d 100644 --- a/agent-context-shipped/files/8c2f34607e5f23fa.md +++ b/agent-context-shipped/files/8e5978224add0b68.md @@ -1,8 +1,9 @@ # Python port — audit reference The Python port targets FastAPI consumers. Codegen runs through the **`metaobjects` -console-script** (`pip install metaobjects`). Schema migration and live-DB drift -are **Node-`meta`-only** (ADR-0015) — the `metaobjects` console-script has no +console-script** (`pip install metaobjects`). Schema migration is the project's own +tool (Alembic) or the Node `meta migrate` reference helper, and live-DB drift is the Node +`meta verify --db` (ADR-0015) — the `metaobjects` console-script has no `migrate` subcommand and `metaobjects verify --db` is rejected with exit 2. The runtime persistence tier is the `ObjectManager` (metadata-driven CRUD over SQLAlchemy Core or asyncpg), or a hand-written repository implementation. @@ -118,11 +119,11 @@ hand-written layer the model fully describes, resolves to a generator the projec refs under `metaobjects gen --templates `) where the shape is what matters. Recommend it; it is the primary path. Worked template example: `docs/ports/python.md`. -To re-scaffold the agent-context into a Python project, use the Node `meta` CLI (the -single agent-docs assembler per ADR-0033): +To re-scaffold the agent-context into a Python project, run the Python CLI. It writes the +files the single assembler built (ADR-0033 Amendment 1), with no Node: ```bash -npx meta agent-docs --server python [--out ] +metaobjects agent-docs [--client ] [--out ] ``` --- diff --git a/agent-context-shipped/files/9082aff5c83c7f28.md b/agent-context-shipped/files/9082aff5c83c7f28.md new file mode 100644 index 0000000000..7a33714c84 --- /dev/null +++ b/agent-context-shipped/files/9082aff5c83c7f28.md @@ -0,0 +1,89 @@ +# Working with MetaObjects in this project + +> Stack: kotlin server, react client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Kotlin: generate with `mvn metaobjects:generate` + +1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator + list, one `` each. Nothing is generated until it is listed. Which + classes to list (the Exposed and Spring tier, requirement tests, API docs) is in the + `metaobjects-codegen` skill's `references/kotlin.md`. +2. **Generate.** `mvn metaobjects:generate`. `mvn metaobjects:eject -Dnames= -Dport=kotlin` + copies a generator to change what it emits. Several Kotlin generators truncate their output + on every run, so never put your own code in a generated file. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `mvn metaobjects:verify` (the generated code and the requirements). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/5d83d3b0cfa8b1d3.md b/agent-context-shipped/files/9135cd6f5ba4a137.md similarity index 94% rename from agent-context-shipped/files/5d83d3b0cfa8b1d3.md rename to agent-context-shipped/files/9135cd6f5ba4a137.md index d1ff84f607..92cd8520ba 100644 --- a/agent-context-shipped/files/5d83d3b0cfa8b1d3.md +++ b/agent-context-shipped/files/9135cd6f5ba4a137.md @@ -29,9 +29,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -68,7 +70,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/f4c144c093105bb1.md b/agent-context-shipped/files/91986d36789efeb0.md similarity index 94% rename from agent-context-shipped/files/f4c144c093105bb1.md rename to agent-context-shipped/files/91986d36789efeb0.md index 6d9bb0ed76..d267c573ce 100644 --- a/agent-context-shipped/files/f4c144c093105bb1.md +++ b/agent-context-shipped/files/91986d36789efeb0.md @@ -38,9 +38,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -77,7 +79,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/51b5c54862c75382.md b/agent-context-shipped/files/930156daf0efbdb6.md similarity index 97% rename from agent-context-shipped/files/51b5c54862c75382.md rename to agent-context-shipped/files/930156daf0efbdb6.md index d87d07ce36..756fac5b6d 100644 --- a/agent-context-shipped/files/51b5c54862c75382.md +++ b/agent-context-shipped/files/930156daf0efbdb6.md @@ -71,9 +71,9 @@ export function App() { } ``` -The fetcher resolves `path` (always starting with `apiPrefix`) to a full URL, -attaches auth per your policy, parses JSON, and **throws on non-2xx** — the hooks -depend on the throw for error state. +The fetcher receives `path` with the provider's `baseUrl` already prepended, attaches +auth per your policy, parses JSON, and **throws on non-2xx** — the hooks depend on +the throw for error state. ## Generated hooks (`tanstackQuery()`) diff --git a/agent-context-shipped/files/fe7f8817bfc35bb5.md b/agent-context-shipped/files/94d63d7a344e36cf.md similarity index 97% rename from agent-context-shipped/files/fe7f8817bfc35bb5.md rename to agent-context-shipped/files/94d63d7a344e36cf.md index 6fd985d885..71c53fb20d 100644 --- a/agent-context-shipped/files/fe7f8817bfc35bb5.md +++ b/agent-context-shipped/files/94d63d7a344e36cf.md @@ -5,7 +5,8 @@ The C# runtime tier **is the generated EF Core stack itself** — there is no se `.g.cs` classes plus one `AppDbContext.g.cs` that ARE the persistence layer (EF Core), and `RoutesGenerator` emits ASP.NET minimal-API routes that mount on your `WebApplication`. Unlike the other ports, C# leaves **no repository seam** — the generated -code is what runs. Schema is TS-owned (ADR-0015); EF Core is pure data-access at runtime. +code is what runs. Schema migrations are EF Core Migrations or the Node `meta migrate` +reference helper (ADR-0015); EF Core is pure data-access at runtime. ## Contents - The generated persistence layer diff --git a/agent-context-shipped/files/7ecd2af92a967b5e.md b/agent-context-shipped/files/9a968c09f5a225b5.md similarity index 94% rename from agent-context-shipped/files/7ecd2af92a967b5e.md rename to agent-context-shipped/files/9a968c09f5a225b5.md index a0a50dd0b8..8262025c6d 100644 --- a/agent-context-shipped/files/7ecd2af92a967b5e.md +++ b/agent-context-shipped/files/9a968c09f5a225b5.md @@ -30,9 +30,11 @@ truth. Code, schema and migrations are generated from it and are disposable. copies a generator to change what it emits. Several Kotlin generators truncate their output on every run, so never put your own code in a generated file. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -68,7 +70,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/9bed4818282c5ace.md b/agent-context-shipped/files/9bed4818282c5ace.md new file mode 100644 index 0000000000..4ad1453704 --- /dev/null +++ b/agent-context-shipped/files/9bed4818282c5ace.md @@ -0,0 +1,99 @@ +# Working with MetaObjects in this project + +> Stack: java, kotlin server, react client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Java: generate with `mvn metaobjects:generate` + +1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator + list, one `` each, under `` pointing at the metadata. + Nothing is generated until it is listed; the build names any generator a listed one needs. + Which classes to list (the Spring REST tier, requirement tests, API docs) is in the + `metaobjects-codegen` skill's `references/java.md`. +2. **Generate.** `mvn metaobjects:generate`. `mvn metaobjects:eject -Dnames= -Dport=java` + copies a generator to change what it emits. + +### Kotlin: generate with `mvn metaobjects:generate` + +1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator + list, one `` each. Nothing is generated until it is listed. Which + classes to list (the Exposed and Spring tier, requirement tests, API docs) is in the + `metaobjects-codegen` skill's `references/kotlin.md`. +2. **Generate.** `mvn metaobjects:generate`. `mvn metaobjects:eject -Dnames= -Dport=kotlin` + copies a generator to change what it emits. Several Kotlin generators truncate their output + on every run, so never put your own code in a generated file. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `mvn metaobjects:verify` (the generated code and the requirements). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/dd80d926c56ea1e3.md b/agent-context-shipped/files/9d8b243f6f1b2dfa.md similarity index 93% rename from agent-context-shipped/files/dd80d926c56ea1e3.md rename to agent-context-shipped/files/9d8b243f6f1b2dfa.md index 6308156c9d..3dd57407f1 100644 --- a/agent-context-shipped/files/dd80d926c56ea1e3.md +++ b/agent-context-shipped/files/9d8b243f6f1b2dfa.md @@ -14,7 +14,7 @@ reasons. Read it when a rule there does not settle the case in front of you. - **Adopting onto existing code? Metadata FOLLOWS the code.** On a migration (existing working code / live DB), author metadata + tune codegen to *reproduce* what the code already is — native types (`field.uuid` when the code uses `UUID`, not `field.string`; and the type a JSON column's WRITER declares — `list[str]`, a dataclass, `dict[str, X]` — not an open jsonb bag), names, nullability — so regen changes as little existing code as possible. The only existing code that should change is the hand-written layer codegen replaces; ask when a modeling choice is ambiguous. (Greenfield: model-first, below.) - Pattern-derivable from metadata = codegen, never hand-write — FKs, CRUD, validators, finders, and the database schema and migrations. The schema is a disposable, generated artifact: change the metadata and regenerate. Don't hand-write divergent SQL; where a stack owns its own migration files, GENERATE them — `meta migrate --migration-format flyway` emits the paired `V__`/`U__` files a Flyway runner expects, and leaves applying them to Flyway. The one exception is a schema this project deliberately owns outside MetaObjects (hand-written migrations by rule, or another team's database): when the root `AGENTS.md` or `CLAUDE.md` says so, follow it, and keep `meta verify --db` catching drift. - **Once this project declares any `template.prompt`, every LLM prompt is one** — the text in the template, the data in a payload value object, rendered by the render engine. A structured reply is read through a response model (`@responseRef` and its generated extractor), never a regex or string search. This covers code that does not look like MetaObjects: a format string, text block, template literal or string builder sent to an LLM, and it covers every module, including test harnesses and scripts. Changing a prompt that is still hand-built means migrating it first (snapshot its current output and keep the rendered text byte-identical), not adding a line to it; the `metaobjects-prompts` skill has the steps. -- The **live database** is a derived artifact too — never hand-apply a schema change to a running DB (ad-hoc `psql`/console `ALTER`/`CREATE`/`DROP`), not even to preview a column or unblock a boot. Drive every schema change from the metadata, never ad-hoc: on the Node/TS-owned migrate stack that is `meta migrate` (metadata → DDL, ADR-0015); on a **Flyway**-owned JVM stack that is `meta migrate --migration-format flyway`, which emits the migration and deliberately refuses `--apply` because Flyway owns applying it. Hand-authoring a migration to match the generated schema is the LAST resort — for a runner MetaObjects has no writer for — never the default for Flyway. A hand-applied ad-hoc change drifts the live DB from the metadata + migration history and collides at the next migrate/boot ("column already exists") — a state no migration can reproduce. Run `meta verify --db ` after any DB-touching work to catch that drift early — the URL is required, and the bare form exits 2. +- The **live database** is a derived artifact too — never hand-apply a schema change to a running DB (ad-hoc `psql`/console `ALTER`/`CREATE`/`DROP`), not even to preview a column or unblock a boot. Drive every schema change from the metadata, never ad-hoc: with the reference migration helper that is `meta migrate` (metadata → DDL, ADR-0015); with a native tool (EF Core, Exposed, Alembic, sqlx) it is a migration written from the schema `meta schema` prints; on a **Flyway**-owned JVM stack that is `meta migrate --migration-format flyway`, which emits the migration and deliberately refuses `--apply` because Flyway owns applying it. Hand-authoring a migration to match the generated schema is the LAST resort — for a runner MetaObjects has no writer for — never the default for Flyway. A hand-applied ad-hoc change drifts the live DB from the metadata + migration history and collides at the next migrate/boot ("column already exists") — a state no migration can reproduce. Run `meta verify --db ` after any DB-touching work to catch that drift early — the URL is required, and the bare form exits 2. - **If this project declares `requirement.*` nodes, a commit that adds, changes or removes behaviour updates them in the same commit** (the claim, its `@status` and `@implementedBy`), or says in the commit message why not. `meta verify` checks that the links resolve, not that the ledger is current. - Never hand-edit generated **output** — change the metadata and regenerate. (That bounds the files codegen *emits*; it says nothing about the generator that emits them — next bullet.) What survives a regen DIFFERS BY TOOLCHAIN, so never rely on it: the Node/TS `meta gen` path three-way-merges, so an edit inside a generated file is preserved (and is refused rather than guessed at when it cannot tell yours from its own stale output); the JVM generators overwrite, and several Kotlin ones — including `.kt` — truncate unconditionally with no marker check. Put your own code in a subclass or a separate file, never in the generated one. - **Nothing is generated until you wire it — one generator list per port, documentation included.** No port ships a default generator suite, and there is no separate docs command or docs config block on any port: a docs page is one more entry in the same list as every other generator. The list lives in `generators` in `metaobjects.config.ts` (TypeScript; a fresh `meta init` writes `generators: []`), `codegen/Generators.cs` (C#, scaffolded by `dotnet meta init`), a target's `generators` in `metaobjects.config.yaml` (Python), or `` in the Maven plugin's `` (Java, Kotlin). `meta gen --list --probe` is the catalog — it runs every generator against your model and reports how many files each would emit — and each generator runs as shipped from its package: import it on the Node/TS path (the catalog row prints the line), select it by name on the others. `--generators ` (TypeScript, C#, Python; a second Maven `` of `generate`) NARROWS a run to entries the list already declares — it never adds one, and naming an undeclared entry is refused. Copy nothing you are not going to change. `meta eject ...` copies one into your repo when you need to change what it emits. diff --git a/agent-context-shipped/files/d07ddba3c9a84355.md b/agent-context-shipped/files/9f8fab59bbebfa03.md similarity index 93% rename from agent-context-shipped/files/d07ddba3c9a84355.md rename to agent-context-shipped/files/9f8fab59bbebfa03.md index 8fd8f38601..0f01a7b09e 100644 --- a/agent-context-shipped/files/d07ddba3c9a84355.md +++ b/agent-context-shipped/files/9f8fab59bbebfa03.md @@ -20,9 +20,11 @@ truth. Code, schema and migrations are generated from it and are disposable. copies a generator to change what it emits. Several Kotlin generators truncate their output on every run, so never put your own code in a generated file. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -58,7 +60,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/a1b81119468f84a9.md b/agent-context-shipped/files/a1b81119468f84a9.md deleted file mode 100644 index 37377ba255..0000000000 --- a/agent-context-shipped/files/a1b81119468f84a9.md +++ /dev/null @@ -1,337 +0,0 @@ ---- -name: metaobjects-prompts -description: Use when writing, editing or reviewing code that builds text sent to an LLM (string formatting, f-strings, text blocks, template literals, string builders, concatenation) or reads an LLM reply (regex, string search, JSON or XML parsing), in a project that declares template.prompt nodes; test harnesses and scripts count. That code belongs in a template, a payload VO and a response model. Also for declaring template.prompt/template.output, typed payload projections, provider-resolved text, deterministic render, prompt-drift verify and parser-on-receipt, including a MetaObjects project that has no template.prompt yet and wants to move existing LLM code onto them. Do not use to edit existing LLM code in a project that declares no template.prompt when the task is not declaring prompts. ---- - -# MetaObjects prompt construction - -The fourth pillar: **a prompt is code, not a string scattered across services.** -Declare a prompt's payload as a typed projection (payload bloat becomes a diff), -keep its text external and provider-resolved, and render it deterministically — -snapshot-testable, cache-stable, and drift-checked at build time. The same -machinery renders any text artifact: emails, exports, docs, `llms.txt`. - -This skill is port-agnostic. The exact render/parse API for *this* project's server -language lives in a reference fragment (see the table below). - -## Reference files — open the one for your server language - -Only the files for the server languages in this project's stack are installed. Read yours -before you write or review any prompt code: it has the render and parse API, the generated -parser and the output-format fragment for that language. - -| File | Open it when | -|---|---| -| `references/typescript.md` | the project's server language is TypeScript | -| `references/java.md` | the project's server language is Java | -| `references/kotlin.md` | the project's server language is Kotlin | -| `references/csharp.md` | the project's server language is C# | -| `references/python.md` | the project's server language is Python | - -## Touching a hand-built prompt? Migrate it, don't extend it - -This skill applies to code that does not look like MetaObjects: a `String.format` or text -block, an f-string, a template literal, a `StringBuilder`, or a string concatenation whose -result is sent to an LLM, and a regex or string search that pulls fields out of the reply. -Once a project declares any `template.prompt`, every LLM prompt should be one. When a task -asks you to change a prompt that is still hand-built, **migrate it first, then make the -change** — adding a line to the hand-built string is how a migrated codebase slides back. - -1. **Snapshot the current output.** Capture the exact text the existing code produces for - one or more representative inputs, as a test fixture. -2. **Declare the payload.** An `object.value` for caller-supplied fields, or a sourceless - `object.projection` when fields are derived (see below). Only the fields the text uses. -3. **Declare the `template.prompt`** and move the text into its external template file. - Values come from the payload, never from string formatting at the call site. -4. **If the code reads the reply**, add `@responseRef` to a response model and replace the - regex or ad-hoc parsing with the generated extractor. -5. **Render, then compare with the snapshot.** Keep it byte-identical. If a difference is - intended, review it on its own before you make the change the task asked for. -6. **Then make the change** — in the template text or the payload. - -Look in every module, not only the application: test harnesses, simulators, evaluation -scripts and tooling build prompts too, and a census scoped to "the app" misses them. - -## The two template subtypes - -A **template** is a typed pair: a logical reference to external text + a payload -value-object declaring exactly what data the text expects. - -A template subtype's axis is **DIRECTION** — which way the text travels, not what it -is about (ADR-0052). - -| Subtype | Direction | Use | Extra attrs | -|---|---|---|---| -| `template.prompt` | outbound, and optionally inbound | LLM-targeted | `@maxTokens`, `@requiredSlots`, `@requiredTags`, `@model`, `@responseRef`, `@responseFormat`, `@promptStyle` | -| `template.output` | outbound ONLY | email / docs / config / export | `@kind: document \| email` (default `document`), `@requiredTags`; `@kind: email` adds `@subjectRef` / `@htmlBodyRef` / `@textBodyRef` | - -Both carry the generic attrs: - -| Attr | Required | Purpose | -|---|---|---| -| `@payloadRef` | yes | the `object.value` — or sourceless `object.projection` (#210) — declaring the payload shape | -| `@textRef` | yes for `template.prompt` and a `template.output @kind: document` (the default) — a `template.output @kind: email` carries **no** `@textRef`; it uses `@subjectRef` + `@htmlBodyRef` (+ optional `@textBodyRef`) instead | the 2-layer logical text reference `group/source`, resolved by a provider | -| `@format` | no | `text` (default) / `html` / `xml` / `csv` / `json` / `markdown` / `spreadsheet` — drives the escaper | -| `@maxChars` | no | build-time size budget | - -`template.output @kind: email` renders a structured `EmailDocument` (subject + HTML -body + optional plain-text body) instead of one string — the TS render helper emits -an `EmailDocument`-returning function for it (see the `render-example-email` -conformance fixture). `@requiredTags` names output tags the rendered text must contain -(`verify` checks it) on both subtypes. - -**The INBOUND half belongs to `template.prompt` alone.** `@responseRef` names the -response shape (an `object.value` or sourceless `object.projection`, #210) a model's -reply is parsed into, and its PRESENCE is what asks for the whole inbound tier: the -response record, the response-format fragment, the parser-on-receipt and the tolerant -extractor. `@responseFormat` (`json` default / `xml`, ADR-0053) is the syntax of that -REPLY; `@promptStyle` (`guide` / `inline` / `exampleOnly`, FR-010) selects how the -fragment presents the shape. - -> **`@format` and `@responseFormat` are different facts.** `@format` is the syntax of -> the BODY you render; `@responseFormat` is the syntax of the answer you expect. A -> plain-text prompt asking for a JSON object is the common case. Putting `@promptStyle` -> or `@responseFormat` on a `template.output` is a LOAD ERROR — an output renders a -> document and nothing reads a reply to it. - -A third, structurally different subtype is also registered core vocabulary: -**`template.toolcall`** (`@toolName` + `@payloadRef`, ADR-0011) — a vendor-agnostic -LLM tool-call envelope with no renderable text body (the body IS the -`@payloadRef`-typed output schema, so it does not carry the generic `@textRef`/ -`@format` attrs above). The vocabulary exists today; MCP exposure of declared -prompts/tools is roadmap, not shipped — don't promise it. - -## The payload is a shape you declare — an `object.value`, or a sourceless `object.projection` - -The payload is **not** an entity — it's a declared shape whose fields ARE the -prompt's typed surface: an `object.value` (caller-supplied fields; -`origin.passthrough` only — FR-015 parameter lineage), or a **sourceless -`object.projection`** (#210 — no `source.*` child, own or inherited) when fields -derive by assembly. Every port's payload codegen is -**declared-type-authoritative (#270)**: a field's generated type comes only from its -declared `field.` + `isArray` + `@objectRef`, and a nested payload is a -declared `field.object @objectRef` to another `object.value` (`isArray: true` for a -list — nested targets stay value-only, loader-enforced). The caller supplies the -field values at render time. An `origin.*` child on a payload field is IGNORED for -typing — and the assembly origins (`aggregate` / `computed` / -`first`) are ILLEGAL on an `object.value` host (`ERR_SUBTYPE_RULE_VIOLATION`, #210): -an origin-derived payload lives on the sourceless projection, which `@payloadRef` -accepts. Projections generally are covered by the `metaobjects-authoring` skill and -`docs/features/source-kinds.md`, not here. - -Declaring the payload shape is what makes payload bloat visible: adding a field to -the prompt is a diff on the declared shape, and `verify` catches template/payload -drift at build time instead of letting a prompt silently degrade. - -```json -{ - "metadata.root": { - "package": "acme::blog", - "children": [ - { - "object.value": { - "name": "WelcomePayload", - "children": [ - { "field.string": { "name": "displayName" } }, - { "field.long": { "name": "postCount" } }, - { "field.object": { "name": "posts", "@objectRef": "PostSummary", - "isArray": true } } - ] - } - }, - { - "object.value": { - "name": "PostSummary", - "children": [ - { "field.string": { "name": "title" } } - ] - } - }, - { - "template.prompt": { - "name": "WelcomePrompt", - "@payloadRef": "WelcomePayload", - "@textRef": "lobby/welcome", - "@format": "xml", - "@maxTokens": 500 - } - } - ] - } -} -``` - -## Prompt text is external + provider-resolved (never inlined) - -`@textRef` is a 2-layer logical reference `group/source` (folder/file, -table/key, collection/document). The prompt text itself **never lives in -metadata** — at runtime a configured **provider** resolves the reference to the -actual template text (Mustache in every port; Python and TypeScript also accept Jinja, see -below): - -- a filesystem provider (L1 = folder, L2 = file) — the dev default: - `lobby/welcome` → `/lobby/welcome.mustache`. It is `FilesystemProvider` in every - port; in TypeScript it is Node-only and imported from a subpath so the package root - stays browser-safe — `import { FilesystemProvider } from "@metaobjectsdev/render/providers"` - (Python `metaobjects.render`, C# `MetaObjects.Render`, JVM `com.metaobjects.render`); -- an in-memory provider (a string map) — tests (`InMemoryProvider`, from the package root); -- a classpath/resource provider on the JVM; -- or a consumer-supplied provider (RDB / vector store / …) — implement `Provider`'s one - `resolve(ref)` method. - -Locale, A/B, dynamic, and evolutionary prompt variants all live behind the -provider seam without touching metadata. - -**Jinja bodies (Python and TypeScript only, ADR-0061).** A body may be a Jinja file — -`lobby/welcome.jinja` (or `.j2` / `.jinja2`) — instead of `welcome.mustache`; the -`@textRef` does not change, and the metadata never names an engine. Python renders it with -jinja2 (the `metaobjects[jinja]` extra), TypeScript with nunjucks. The same `verify` gate -checks it against the payload, walking the parsed template, and reports what it cannot -settle statically (`user[key]`, a computed include name) as `ERR_TEMPLATE_NOT_STATIC`. Java, -Kotlin and C# refuse a Jinja body with `ERR_TEMPLATE_ENGINE_UNSUPPORTED`, so a model that -must render in those ports keeps Mustache. Prefer Mustache for new templates: it is the -cross-port engine, and its logic-less shape is what pushes conditionals into the payload -(next sections). Jinja is for adopting existing Jinja templates without rewriting them; per -port reference files say how. - -## `render()` is deterministic + byte-stable - -Rendering is a pure function: `(payload VO, resolved text) → string`. Same inputs, -byte-identical output — across runs and across every language port. That stability -is what protects **exact-prefix prompt-cache hits**: a stray whitespace change can't -silently break a cache prefix because the output doesn't drift. Determinism rules -the engine enforces: - -- arrays only for iteration (no object-key iteration); -- no locale/number/date formatting in the engine — pre-format on the payload; -- pinned trailing-newline + Mustache standalone-tag whitespace; -- `@format` drives an engine-owned escaper (CSV/spreadsheet escapers neutralize a - leading `= + - @ \t \r` per the OWASP CSV-injection guard). - -For the `xml`-format example above with payload `{ displayName: "Ada", postCount: -12, posts: [{title:"Hello"}, {title:"Mustache"}] }`, every port renders the same -bytes. You render the prompt, call your LLM client (provider-agnostic — codegen -emits no provider-side schema), then parse the response. - -## Conditional content: data and flags, never branched prose - -When a prompt's wording varies along some dimension — audience, tier, mode, -locale, entitlement, a domain variant — do NOT branch the prose in code and -concatenate strings. Branching prompt text in a service is the anti-pattern this -pillar exists to remove: it scatters the same distinction across call sites, each -re-encoded and free to drift, and none of it snapshot-tested. The variation -belongs in exactly two places, with a third for the rare genuine divergence: - -- **Vocabulary as payload data.** The words and values that differ become typed - payload fields, pre-computed once from the varying dimension — a noun, a label, - a set of verbs (a list), an example. The template stays single and references - `{{term}}` / `{{#items}}…{{/items}}`. The prose *structure* is identical across - variants; only the data differs, so there is nothing to branch. -- **Presence as boolean flags.** When a whole block exists-or-not for a variant, - gate it with a section flag the payload sets: `{{#showBlock}}…{{/showBlock}}`. - Reserve flags for entire blocks — never mid-sentence word swaps, which are - vocabulary. -- **Variant text only when prose truly diverges.** If a section's wording — not - just its vocabulary — genuinely differs, select a per-variant text through the - provider seam (a `@textRef` variant, or an included partial) so the shared - prose still lives in one place. Expect to need this rarely. - -A single resolver maps the varying dimension to that payload (the flags + the -vocabulary), so the distinction is defined ONCE and every template that depends -on it stays consistent. - -``` -// WRONG — prose branched and concatenated in a service: -if (tier.isPremium()) sb.append("Your plan includes priority support."); -else sb.append("Upgrade any time for priority support."); -``` -```mustache -{{! RIGHT — text in the template; the variant is data + a flag }} -{{supportLine}} -{{#isPremium}}(Priority queue enabled.){{/isPremium}} -``` - -This stays deterministic and golden-testable per variant: render the template -against each value of the dimension and snapshot every variant. - -## `verify` fails the build on prompt-drift - -For every template, the verify step resolves the text, parses each `{{...}}` -reference (Mustache, or a Jinja body in Python and TypeScript), and checks it exists on the -payload VO. If the text references -`{{authorName}}` but the payload only has `displayName`, **the build fails.** This -is the prompt-vs-payload drift gate — run it in CI. It walks both `template.prompt` -and `template.output` nodes the same way (both RENDER; only the direction of what comes -back differs). - -## A RESPONDING `template.prompt` generates a parser-on-receipt - -For every `template.prompt` declaring `@responseRef`, codegen emits a **typed parser** -that turns a model's reply back into that shape. It binds `@responseRef`, never -`@payloadRef` — `@payloadRef` types the request the prompt renders outbound, and the -question and the answer are usually different shapes. Each port emits the parser -idiomatically: a throw-on-invalid parse plus, where the language has the precedent, a -Result-style "safe" variant that doesn't throw. - -**A `template.output` gets no parser, ever.** Nothing reads a reply to a document. (Before -ADR-0052 it did, with no format filter at all — so an `@format: markdown` document got a -generated `JSON.parse` over rendered prose.) - -The strict tier is JSON-only: an `@responseFormat: xml` reply gets the tolerant extract -and nothing strict, because strict all-or-nothing semantics layered over a REPAIRING XML -reader would raise or accept based on how much repair happened. - -The three-step consumer pattern is identical everywhere: render the prompt → call -your LLM client → parse the reply with the generated parser. - -**Which parser for a raw model reply.** The strict parse expects the reply to BE the -JSON document. A chat model's raw reply usually is not — `Sure!` followed by a fenced JSON -block fails it outright (TypeScript: `invalid JSON: Unexpected token 'S'`). Use the strict parse -only when the provider guarantees a bare JSON body (a structured-output / JSON mode). For a -raw reply use the **tolerant extract**: it strips the prose and code fences, repairs what it -can, and returns the data with a per-field report (recovered / defaulted / lost / malformed) -instead of throwing on a bad reply; check the report's lost-required list (or call -`orThrow` on the result, in the ports that ship it) when a lost `@required` field should be -an error. The tolerant extract reads the LIVE metadata, so -it takes a loaded root (or loader) as well as the text — its exact name and signature are in -this port's reference below. - -## A RESPONDING `template.prompt` generates the response-format fragment (FR-010) - -For every `template.prompt` whose `@responseRef` resolves, codegen additionally emits a -`renderFormat(...)`-shaped function backed by the render engine's output-format -renderer — the "produce your answer like this" instruction fragment you splice into the -prompt text so the model returns exactly the shape the parser above expects. The gate is -`@responseRef` PRESENCE, not a format value: the old `@format ∈ {json,xml}` gate read the -syntax of the OUTBOUND body to decide whether to instruct the model about the syntax of -its REPLY, so a text-bodied prompt asking for a JSON answer got no fragment at all. -`@responseFormat` selects which syntax the fragment teaches; the fragment and the -extractor agree on the same root name. - -`@promptStyle` on the `template.prompt` controls the fragment's presentation -(default `guide`): - -| `@promptStyle` | Presentation | -|---|---| -| `guide` (default) | a prose field list ("Fill in each field…") followed by an example skeleton | -| `inline` | a single skeleton whose field values are inline placeholders / enum choices | -| `exampleOnly` | just a filled example skeleton, nothing else | - -A field's `@example` fills its slot in the skeleton. With none, a string/number shows a -`{fieldName}` placeholder and an enum shows its allowed members -(`"urgency": "low | medium | high"`) — never one pre-filled member, which a model copies -into every reply. Declare `@example` when you do want a concrete value shown. - -Guidance is **never** emitted as code comments — models routinely ignore comments, -so the instruction has to live in the rendered text itself. - -The fragment is **baked directly from the payload's field tree at codegen time** -(not hand-authored Mustache text), so it cannot itself drift out of sync with the -payload the way a hand-written `@textRef` can — regenerating it after a payload -change is the gate. The JVM render module (Java, shared by Kotlin) additionally -exposes a field-presence check, `Verify.checkOutputPrompt(fragment, -requiredFieldNames)`, for asserting a *rendered instance* of the fragment actually -names every required field — useful in a test of the renderer output itself, -distinct from the `{{field}}`-vs-payload drift check `verify` runs on hand-authored -template text. Check the language reference for whether this project's port ships -the equivalent. diff --git a/agent-context-shipped/files/636d4309c12de5cb.md b/agent-context-shipped/files/a6809eba63ed0e31.md similarity index 97% rename from agent-context-shipped/files/636d4309c12de5cb.md rename to agent-context-shipped/files/a6809eba63ed0e31.md index cdf4b1bf7d..fd57b3b524 100644 --- a/agent-context-shipped/files/636d4309c12de5cb.md +++ b/agent-context-shipped/files/a6809eba63ed0e31.md @@ -10,8 +10,8 @@ from the same metadata. (If you want a fully metadata-driven engine instead of hand-written Exposed, the Java **OMDB** runtime — `metaobjects-omdb`, `ObjectManagerDB` — is on the JVM and callable from Kotlin; see the Java runtime reference. OMDB is pure data-access: -CRUD / query / codec / transactions. Schema is owned by the Node `meta` migration -tool, not the runtime.) +CRUD / query / codec / transactions. Schema migrations run in your own tool or the Node +`meta migrate` reference helper, not the runtime.) ## Contents - The generated table diff --git a/agent-context-shipped/files/2ded112f119f825b.md b/agent-context-shipped/files/b1f382e94710538f.md similarity index 94% rename from agent-context-shipped/files/2ded112f119f825b.md rename to agent-context-shipped/files/b1f382e94710538f.md index 6db127fdcb..be5fa0ef11 100644 --- a/agent-context-shipped/files/2ded112f119f825b.md +++ b/agent-context-shipped/files/b1f382e94710538f.md @@ -40,9 +40,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -78,7 +80,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/15ee1bc0f67e8e01.md b/agent-context-shipped/files/b441cf5d34a266e2.md similarity index 94% rename from agent-context-shipped/files/15ee1bc0f67e8e01.md rename to agent-context-shipped/files/b441cf5d34a266e2.md index 32b5ffb51a..8b65ba7bc9 100644 --- a/agent-context-shipped/files/15ee1bc0f67e8e01.md +++ b/agent-context-shipped/files/b441cf5d34a266e2.md @@ -39,9 +39,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -78,7 +80,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/eaadb644cb1f809e.md b/agent-context-shipped/files/b8d3d3a7e1e287ce.md similarity index 99% rename from agent-context-shipped/files/eaadb644cb1f809e.md rename to agent-context-shipped/files/b8d3d3a7e1e287ce.md index 12990f46cb..dfba5e06a5 100644 --- a/agent-context-shipped/files/eaadb644cb1f809e.md +++ b/agent-context-shipped/files/b8d3d3a7e1e287ce.md @@ -214,5 +214,5 @@ 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`, `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. - Output-parser codegen: **complete** (`outputParser()` generator; `parse*`/`safeParse*`/`extract*` emitted as `.response.ts` per **responding `template.prompt`** — one carrying `@responseRef`; ADR-0052). - ObjectManager: **complete** (`@metaobjectsdev/runtime-ts`; `kyselyDriver` / `inMemoryDriver`). -- Schema migrate / `meta verify --db`: **complete** (TS owns the shared migrate engine — ADR-0015). +- Schema migrate / `meta verify --db`: **complete** (the Node CLI hosts the reference migration helper, one option for every port). - D1 dialect: **TS-only by design** — `migrate.dialect: "d1"` (and `meta migrate --dialect d1`) targets Cloudflare D1 via the Wrangler CLI layout; codegen's `dialect` in `metaobjects.config.ts` is `"sqlite"` for D1 and `"d1"` there is refused. Do NOT recommend porting D1 support to other languages. diff --git a/agent-context-shipped/files/bd862d11d81b237f.md b/agent-context-shipped/files/bd862d11d81b237f.md new file mode 100644 index 0000000000..31884a1f5f --- /dev/null +++ b/agent-context-shipped/files/bd862d11d81b237f.md @@ -0,0 +1,98 @@ +# Working with MetaObjects in this project + +> Stack: python server, angular client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Python: generate with `metaobjects gen` + +1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing + is generated until it is listed: + + ```yaml + targets: + app: + outDir: generated + generators: [entity, names] # Pydantic models + physical-name constants + ``` + + `routes` and `filter-allowlist` add FastAPI routers over a repository `Protocol` you + implement; `requirement-tests` writes one pytest file per package of requirements; + `api-docs` writes `api/python/AGENT-API.md`. `metaobjects gen --list` is the catalog. + Install what the output imports: `pip install "pydantic[email]>=2" fastapi`. +2. **Generate.** `metaobjects gen`. `metaobjects eject ` copies a generator into the repo + to change what it emits. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `metaobjects verify` (the generated code and the requirements; `--codegen` is its default). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/bf473d791eb12d8a.md b/agent-context-shipped/files/bf473d791eb12d8a.md new file mode 100644 index 0000000000..3e53619990 --- /dev/null +++ b/agent-context-shipped/files/bf473d791eb12d8a.md @@ -0,0 +1,87 @@ +# Working with MetaObjects in this project + +> Stack: csharp server, no client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### C#: generate with `dotnet meta gen` + +1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. + Nothing is generated until it is listed. The EF Core data layer and its routes: + + ```csharp + new MetaObjects.Codegen.Generators.EntityGenerator(), + new MetaObjects.Codegen.Generators.DbContextGenerator(), + new MetaObjects.Codegen.Generators.FilterAllowlistGenerator(), + new MetaObjects.Codegen.Generators.RoutesGenerator(), + ``` + + `RequirementTestsGenerator { OutDir = "/Generated" }` writes one test per + requirement; `ApiDocsGenerator` writes `api/csharp/AGENT-API.md`. `dotnet meta gen --list` + is the catalog. +2. **Generate.** `dotnet meta gen`. `dotnet meta eject ` copies a generator into the repo + to change what it emits. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `dotnet meta verify --codegen` (the generated code and the requirements). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/0de6aba8a666dd9d.md b/agent-context-shipped/files/bfc0389692a9e36d.md similarity index 94% rename from agent-context-shipped/files/0de6aba8a666dd9d.md rename to agent-context-shipped/files/bfc0389692a9e36d.md index 930c6e8ab7..67ac2d1eaf 100644 --- a/agent-context-shipped/files/0de6aba8a666dd9d.md +++ b/agent-context-shipped/files/bfc0389692a9e36d.md @@ -38,9 +38,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -77,7 +79,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/c40ef830a9d3219e.md b/agent-context-shipped/files/c40ef830a9d3219e.md new file mode 100644 index 0000000000..6ab239d2e9 --- /dev/null +++ b/agent-context-shipped/files/c40ef830a9d3219e.md @@ -0,0 +1,95 @@ +# Working with MetaObjects in this project + +> Stack: rust server, react client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Rust: generate with `cargo meta gen` + +1. **Config.** `metaobjects.config.json` at the project root (written by `cargo meta init`) is the + generator list. Nothing is generated until it is listed: + + ```json + { "generators": ["entity", "client", "commands"] } + ``` + + `entity` writes the model crate, `client` a typed client for the REST API the model implies, + and `commands` command-line commands over that client (`client` needs `entity`; `commands` + needs both). There is no server-side route or ORM generator for Rust yet. `cargo meta gen + --list` is the catalog. +2. **Generate.** `cargo meta gen`. `cargo meta eject ` copies a generator into the repo + to change what it emits. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `cargo meta verify` (the generated crates and the business rules; `--codegen` runs the drift gate alone). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/c47789a566e1164a.md b/agent-context-shipped/files/c47789a566e1164a.md new file mode 100644 index 0000000000..e9c8b920da --- /dev/null +++ b/agent-context-shipped/files/c47789a566e1164a.md @@ -0,0 +1,88 @@ +# Working with MetaObjects in this project + +> Stack: python server, no client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Python: generate with `metaobjects gen` + +1. **Config.** `metaobjects.config.yaml` names each target's `outDir` and its generators. Nothing + is generated until it is listed: + + ```yaml + targets: + app: + outDir: generated + generators: [entity, names] # Pydantic models + physical-name constants + ``` + + `routes` and `filter-allowlist` add FastAPI routers over a repository `Protocol` you + implement; `requirement-tests` writes one pytest file per package of requirements; + `api-docs` writes `api/python/AGENT-API.md`. `metaobjects gen --list` is the catalog. + Install what the output imports: `pip install "pydantic[email]>=2" fastapi`. +2. **Generate.** `metaobjects gen`. `metaobjects eject ` copies a generator into the repo + to change what it emits. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `metaobjects verify` (the generated code and the requirements; `--codegen` is its default). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/61d8a218ffd3b20c.md b/agent-context-shipped/files/c80914930d7e04cc.md similarity index 94% rename from agent-context-shipped/files/61d8a218ffd3b20c.md rename to agent-context-shipped/files/c80914930d7e04cc.md index a6b2a8d6ea..63ed873d67 100644 --- a/agent-context-shipped/files/61d8a218ffd3b20c.md +++ b/agent-context-shipped/files/c80914930d7e04cc.md @@ -40,9 +40,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -78,7 +80,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/c99d78077736fd2d.md b/agent-context-shipped/files/c99d78077736fd2d.md deleted file mode 100644 index 5331ea6a0a..0000000000 --- a/agent-context-shipped/files/c99d78077736fd2d.md +++ /dev/null @@ -1,478 +0,0 @@ ---- -name: metaobjects-codegen -description: Use when you need ANY output derived from the MetaObjects model — write your own generator (Zod, DTOs, a client, docs, anything) or eject a reference one — and when configuring or running code generation: editing the gen config (metaobjects.config.ts) to choose generators, targets or the SQL dialect (e.g. postgres to sqlite), the gen command, and hand-edit-preserving regeneration. ---- - -# MetaObjects code generation - -Codegen is the first pillar: MetaObjects reads your typed metadata and emits -**idiomatic per-language code** — entity types, DB tables/schemas, query helpers, -REST routes, validators, payload value-objects, output parsers. The metadata is the -durable spine; the generated code is a disposable artifact. It has **no -proprietary runtime**: entity and model code imports nothing from MetaObjects, and the -REST, prompt and client tiers import ordinary Apache-2.0 packages you can vendor or -replace — if the libraries disappeared tomorrow, you keep working code. - -**MetaObjects is the core; the generators are yours** (ADR-0034 Amendments 3 and 4). The -core — model, loader, registry, `verify`, `migrate`, prompt render and reply extract — is -what MetaObjects guarantees. On it, you build the generators the application needs. The -generators MetaObjects ships are reference helpers: run one as shipped when it already -emits what you want, copy it with `eject` when it is close and you need to change it, and -write your own when nothing fits. When a generated file is -wrong, fix the generator that emitted it — do not hand-edit around it, and do not treat it -as a broken core guarantee. - -This skill is the port-agnostic procedure. The exact config file, generator names, -and command for *this* project's server language live in a reference fragment -(see the table below). - -## Reference files — open only the one your task needs - -Your server language's file (`references/typescript.md`, `references/java.md`, -`references/kotlin.md`, `references/csharp.md` or `references/python.md`) has the -exact config, generator names and commands for this project; read it. The other files in -`references/` are topics — open one when its row matches what you are doing. - -| File | Open it when | -|---|---| -| `references/principles.md` | a rule in the always-on file does not settle the case: the full standing principles (adopting onto existing code, the schema and live database, prompts, requirements, owning and writing generators, physical names) with their reasons | -| `references/any-stack.md` | **the database, data store, HTTP framework or UI framework is not one a reference generator targets** — MySQL, MongoDB, DynamoDB, Express, NestJS, Next.js, Vue, … | -| `references/owning-generators.md` | generated output is wrong; your framework is not the one a reference emits for; you write or review a generator (the `own*()` accessor table) | -| `references/choosing-layers.md` | the generated API does not fit, you need joined or derived data, or you are adopting onto existing code | -| `references/template-or-code.md` | choosing between a code generator and a Mustache template | -| `references/physical-names.md` | before you write a table, column or index name as a string | -| `references/wire-format.md` | a generated API's JSON for decimals or null value-object members is not what a client expects, or you are about to edit a JSON converter or annotation | -| `references/dependencies-and-shared-models.md` | the project consumes or publishes metadata across projects | -| `references/typescript-document-store.md` | a TypeScript project on MongoDB, or any store MetaObjects does not manage, wanting a tested repository generator | -| `references/typescript-mysql.md` | a TypeScript project on a MySQL database | -| `references/typescript-prisma.md` | a TypeScript project that keeps Prisma as its ORM | -| `references/typescript-retargeting.md` | a TypeScript project on a framework other than Fastify, Hono or React | -| `references/typescript-templates.md` | declarative Mustache template-codegen in a TypeScript project | -| `references/typescript-docs.md` | the docs generators (`docsFile`, `apiDocsFile`, `agentDocsFile`, `requirementsFile`, `metamodelDocsFile`, `docsSiteFile`) in a TypeScript project | - -## Upgrading a project from 1.0 to 1.1 - -Read the one upgrade guide, https://github.com/metaobjectsdev/metaobjects/blob/main/docs/features/migrations/upgrading-1.0-to-1.1.md, before the first `gen`, for every -port the project uses; the build can stay green while the result is wrong. It lists the steps -in order and every change that needs action. - -- The default column and table names are now `snake_case` in every port (C#, Java, Kotlin's - runtime and Python defaulted to the field names). A database whose columns are named like - its fields needs `"naming": { "columns": "literal" }` in `.metaobjects/config.json`, or - regenerated code queries columns that do not exist. The per-port naming flags and generator - args are removed. -- Documentation is a generator in the project's list, and the docs commands are removed. C# - and Python also need a generator list (`dotnet meta init`; `metaobjects.config.yaml`). -- Upgrade to 1.1.2 or later. With no `wire` setting, each port writes its language's standard - JSON (C#, Java and Kotlin keep their 1.0.x decimals and null members). A project whose clients - expect 1.1.0's canonical decimal strings declares `"wire": { "decimals": "string", - "nullMembers": "omit" }`; see `references/wire-format.md`. A fractional validator `@min` or - `@max` is refused (write an integer bound). -- **Resync the generators you own.** An ejected copy keeps the logic it was copied with, and a - plain `gen` does not refresh it. `meta eject --list` (TypeScript; `metaobjects gen --list` in Python, which has no - `eject --list`; `dotnet meta gen --list`; `mvn metaobjects:eject -Dlist=true` in Java and Kotlin) - reports each copy that differs from the reference; - `eject --force` takes the new reference for a copy you never edited, and a copy you - edited is three-way merged instead. Steps for 1.0.x: https://github.com/metaobjectsdev/metaobjects/blob/main/docs/features/migrations/upgrading-within-1.0.md. - -## Need an output? Write the generator — this is the primary path - -**When.** You need an output the model fully describes and no reference generator emits — -or none emits it the way this application needs it. Zod schemas, -DTOs or a client for a framework nothing here ships, a service layer in the house style, -a data dictionary, a search-index mapping, test fixtures. That is a generator, and you -write it now, in this change — once it passes the cost test in `references/owning-generators.md` -(smaller than the code it replaces, generator counted; more instances expected; or drift -protection is the point). Do not hand-write the output (it drifts the day the model -changes and nothing notices), do not wait for MetaObjects to ship it, and do not ask -permission: a generator in this repo is ordinary source you own. - -**How — the shape is about 20 lines in every port.** A generator is a `name` plus a -function from the loaded model to a list of `{ path, content }` files: - -```ts -import { isAbstract, perEntity, type Generator } from "@metaobjectsdev/codegen-ts"; - -export function fieldListGenerator(): Generator { - return { - name: "field-list", // shows in diagnostics - filter: (obj) => !isAbstract(obj), // TypeScript's own seam; ctx.entities has EVERY object, abstract ones too - generate: perEntity((obj) => ({ // perPackage / perModel for other scopes - path: `field-list/${obj.name}.txt`, // relative to outDir - content: obj.fields() // fields() includes inherited fields - .map((f) => `${f.name}: ${f.subType}${f.resolvedIsArray() ? "[]" : ""}${f.isRequired ? "" : "?"}`) - .join("\n") + "\n", - })), - }; -} -``` - -**Start from the scaffold (TypeScript):** `meta generator new [--scope -entity|package|model]` writes a working, commented generator into `codegen/generators/` -and wires it into `metaobjects.config.ts`. `meta gen` runs it straight away. Then change -what it emits. - -**Register it** — the one step per port: - -| Port | Registration | Model helpers | -|---|---|---| -| TypeScript | import it in `metaobjects.config.ts`, add it to `generators: [...]` (the scaffold does both) | `@metaobjectsdev/codegen-ts`: `objectRefTarget`, `enumValues`, `effectivePackage`, `packageToPath`, `servedPath`, `toCamelCase`/`toPascalCase`/`toSnakeCase`/`pluralize`, `isAbstract`, `hasAnyRdbSource`, `servesReadApi`/`servesWriteApi` | -| Python | a `module:symbol` entry in a target's `generators` in `metaobjects.config.yaml`; the symbol is an instance or a function returning one, never the class | `metaobjects.codegen.model_walk` | -| C# | `new Codegen.Generators.YourGenerator()` in `codegen/Generators.cs` (`dotnet meta init` writes it); `dotnet meta gen` / `verify --codegen` run that list | node accessors, `ValueObjectNames.ResolveFieldRef`, `CSharpNaming.RoutePath` | -| Java / Kotlin | `` plus ``, from a module on the plugin's classpath; extend `FileEmittingGenerator` | `com.metaobjects.generator.ModelWalk` | - -**Verify it** — nothing to register. `verify --codegen` (`mvn metaobjects:verify` on the -JVM) re-runs the same generator list and fails when committed output is stale. Typecheck -a TypeScript generator with `npx tsc -p tsconfig.codegen.json`: `meta gen` loads it -without typechecking, so a wrong accessor runs silently. - -**Read the model correctly — the rules that make a generator right:** - -- **Which objects.** The runner hands you every object — entities, value objects, - projections and abstract bases. Filter: abstract bases only contribute fields to what - `extends` them. To scope a generator that ships with the tool to some objects, use the - port's own idiom (a TypeScript `filter`, a C# `Include`, a Python `filter=` argument; the - table in `references/owning-generators.md`), never emit everything and delete files by name. -- **Resolving accessors, always (ADR-0039).** `fields()`, `attr()`, `isRequired`, - `resolvedIsArray()` see what a field or object inherits through `extends`; the `own*()` - forms and the raw `isArray` flag do not, and the output is silently wrong on any model - that uses inheritance. In Python `attr()` is the OWN read — use `model_walk` or - `attrs().get()`. On the JVM `getName()` is the fully-qualified name — use - `ModelWalk.name`. Full table: `references/owning-generators.md`. -- **Names from the model, resolved by the engine's rules.** An `@objectRef` resolves - package-locally through the port's helper (`objectRefTarget` and its equivalents), - never by matching a short name. A REST address is `servedPath` / `route_path` / - `RoutePath` / `ModelWalk.collectionSegment`, the same rule the reference routes use. -- **Any format.** `content` is written as given — no port formats it or adds a header. - Make it deterministic: the same model must give the same bytes, or verify reports drift. - -Every port's minimal generator (each run through gen, verify and a convicted model -change) and two worked examples to copy — JSON Schema and OpenAPI 3.1, examples of writing a -generator and not a product surface — are in the guide "Write your own generator": -. -For the documents themselves, the stock `contract-schema` and `openapi` generators emit them, from -1.2.1 (run through the Node `meta` CLI on any port): -. - -**Use a stock generator as shipped** when one already emits what you need: -`meta gen --list --probe` is the catalog, and each row says how to wire it with nothing -copied into the repo (an import line on TypeScript, a stable name on the other ports). An -upgrade is then how its fixes reach you. **Eject** when a reference generator is close and -you need to change what it emits: `meta eject ` copies it in. Do not eject a -generator you are not going to change, because an unmodified copy only duplicates the -reference and falls behind it. -**Hand-write** only what the model cannot express — business logic, calls to other -systems — and have it import the generated types. - -## What codegen does - -You run a `gen` step. The runner: - -1. Loads the project's metadata from wherever its configuration points (the same loader - the runtime uses): `sources` in `.metaobjects/config.json` (TypeScript, and C# when gen - names no ``), `metadata` in `metaobjects.config.yaml` (Python), the - plugin's `` (Java, Kotlin). `metaobjects/` is only the default. -2. Resolves output targets and precomputes shared render state. -3. Runs each configured **generator** — most emit one file per entity; some emit a - single shared file (a barrel, a DB-context, an app-config). -4. Decides whether it may overwrite a file, by a committed **hash manifest** - (`.metaobjects/.gen-state/.hashes/`) on every port. If a file still hashes to what - the generator recorded writing, it is safe to overwrite; if it was edited, or there is - no record of it, the write is **refused by name**. TypeScript additionally - three-way-merges against a snapshot when one is present locally. **Commit the - manifest.** Java and Kotlin have used it since 8.1.0: there, a file with no record that - carries the bare **`GENERATED`** header token (not `@generated`) is adopted as generated - output, which is how the first run after upgrading from 8.0.x records everything. - - **A refusal FAILS the run — exit 1 on TypeScript, C# and Python** (Python and C# warned - and exited 0 until 1.0, so a `gen` wired into CI was green while codegen refused to - write). On Java and Kotlin a refusal is a warning and `mvn metaobjects:verify` is the - gate that fails. The one-time fix for a project that predates the committed manifest - is **`gen --baseline=adopt`**: it records the files you have as the baseline and writes - nothing, so there is finally a `.hashes/` to commit — then `gen` again, and the - regeneration lands as its own diff. Adopting DECLARES those files to be generated - output, so an edit already inside one is part of the baseline and that regeneration - replaces it; commit before you run it. (TypeScript additionally has - `--baseline=fresh`: write fresh output now and discard the edits.) - - **Output nobody should edit: set `handEdits: overwrite` on its generator entry.** The - default, `keep`, refuses an edited file. `overwrite` replaces it with fresh output, names - it, and re-baselines it; `verify --codegen` then reports the edit as drift that `gen` - fixes. A file the manifest has no record of is refused either way. TypeScript - `{ ...entityFile(), handEdits: "overwrite" }`; Python `{ name: entity, handEdits: overwrite }` - in `metaobjects.config.yaml`; C# `new EntityGenerator().WithHandEdits(HandEdits.Overwrite)`; - Java and Kotlin `overwrite` on the ``. - - **A full `gen` deletes generated files it no longer emits** (a renamed or deleted object, - a page that moved package). Only files the manifest records, only when untouched, and - never on a run narrowed by `--generators` or an entity filter. An edited one is refused by - name, and `verify --codegen` says to delete it: regeneration cannot follow a rename, so - move the edits into the new file first if you want them. Details: - `docs/features/own-your-codegen.md`, "Files that are no longer generated". - - On every port *editing the content* is what takes ownership — that is what breaks the - hash — and deleting the header is just another edit. (Through Maven 8.0.x, Java and - Kotlin did the reverse: an edit was overwritten and only removing the `GENERATED` token - protected a file. Do not carry that habit forward.) - - (The header text differs per port and is not the write decision: TypeScript and Python - emit `@generated by …`, C# emits ``, Java and Kotlin emit `GENERATED`.) - -The output is normal idiomatic code in your language — you import it and use it -like any hand-written module. - -## The `@generated` header + hand-edit-preserving regen - -Every file a reference generator emits carries a `@generated` header (a generator you -write adds one only if it chooses to — the runner adds none, and JSON cannot hold one). -Treat any generated file this way: - -- **Never hand-edit a file with a `@generated` header for a change you want to - keep.** The next `gen` run overwrites it. If you need different output, change the - metadata, or change the generator that emits it. -- **This rule is about emitted output — it is not a rule about your generators.** A - generator you own carries no `@generated` header and is edited like any other source - file in your repo. See the next section before you conclude a shape is unreachable. -- **Hand-written regions are preserved by three-way merge.** Where the codegen - supports designated hand-editable regions, regeneration runs a three-way merge - (base → yours → newly-generated) so your edits survive a regen. Code review is - the backstop: a diff on a `@generated` file that wasn't produced by `gen` is a - smell. - -Practical rule: **pattern-derivable-from-metadata = regenerate; business logic = -hand-write in a non-generated file.** FK columns, CRUD, validator chains, -type-safe finders, `relations()` blocks — all derived, never hand-coded. What you -hand-write is what metadata genuinely can't express: regex from outside metadata and -domain logic. Most views are NOT irreducible — model them as an `object.projection` -and the view DDL is generated (see `references/choosing-layers.md`); a hand-written view -for a shape origins can express is drift the drift gate can't even see. A genuinely -*irreducible* view body (recursive CTE, window function, set op) isn't hand-written -loose either — it goes in the `source.rdb` **`@sql`** escape (#208, ADR-0043) so the -tool still registers, fingerprints, and drift-checks it. - -## Your generators are yours — editing one needs no permission - -A generator in your repo is your code, not a vendor artifact. ADR-0034 is -**scaffold-and-own**: the generators the scaffolded config wires are copied into your -repo at init, and every reference template's header says so in its own first line -("copy this into your repo … and own it", "now YOURS to change"). None carries a -`@generated` header. Editing one is ordinary work. - -**A standing rule not to change the MetaObjects repo is not a rule about your -generators.** They are different repositories, and you own yours outright. That -generalisation is the observed failure mode, not a hypothetical: an agent told not to -touch upstream quietly drops "edit the generator" from the moves available to it and -hand-writes the layer instead — the single outcome the rest of this skill exists to -prevent. If you are about to hand-write something data-shaped because the generated -shape is wrong, the generator is the file to open, and you do not need to ask first. - -**The order when generated output does not fit:** - -1. **The metadata**, if the model is wrong — wrong column type, missing relationship, - a join that should be a projection. Fix the spine first; it fixes every port at once. -2. **Your own generator**, if the model is right and the *emit* is wrong — naming, file - layout, imports, framework, signatures. -3. **Hand-write**, only for what metadata genuinely cannot express — and wire it to the - generated types. - -Hand-writing something the metadata already describes is step 3 used as step 1. - -**A defect in generated code is a defect in your generator.** When generated output does not -compile, has the wrong shape, or collides with your code, fix the generator that emitted it (or -the runtime file `eject` copied beside it) in the same change. Do not file an issue upstream, -pin an older release, or patch a clone of MetaObjects for it. What is legitimately upstream is -only what you cannot own: the loader and metamodel, the core runtime, the codegen engine, and -`meta migrate`. Per-port steps: `references/owning-generators.md`. - -**Wire a generator only for output you will consume.** An emitted file nobody imports still -reads as an invitation to adopt the surface you decided against. - -## Selecting generators — NOTHING is generated until you choose it - -**`meta init` wires no generators, and no port ships a default suite.** A fresh TypeScript -scaffold has `generators: []` and an empty `codegen/generators/`; a fresh C# scaffold -(`dotnet meta init`) has an empty `codegen/Generators.cs`; Java and Python have never had a -default set. In every port the project's own generator list — `generators` in -`metaobjects.config.ts`, `codegen/Generators.cs`, a target's `generators` in -`metaobjects.config.yaml`, or `` in the pom — is the COMPLETE list, -documentation included (ADR-0034 Amendment 9); `--generators` (Maven: a second -``) only narrows a run to entries already in it. Choosing what an application -needs is a judgment over its purpose and stack, and the tool's job is to make that choice -cheap and truthful, not to make it for you. - -Each generator has a **stable name** (kebab-case) that is the same in every port and -surfaces in diagnostics — reference generators by that name, never by inlining what -they emit. - -### The procedure - -1. **Read the app's purpose and stack.** What is it for; what does it already use. -2. **`meta gen --list --format json --probe`** — the catalog. Every generator with its - `layer`, `framework`, what it emits, what it requires, what it costs to install, - and — with `--probe`, which constructs each generator and dry-runs it against YOUR - model — how many files each would actually emit. -3. **Check the libraries before you choose generators.** The same catalog carries - `kind: "library"` rows — declared design MetaObjects ships, each with a `useWhen`. - If one matches a capability you are about to model, **opt in and adapt rather than - author**: you inherit its entities, its requirements, and the rulings recorded with - them. Layers are how much of it you take. The bare name is the CORE layer — the - model and its ledger, sourceless, so it adds **no tables and no generated code**; - `/db` is the separate opt-in that proposes the schema. Opt in with - `"libraries": ["iam", "iam/db"]` in `.metaobjects/config.json`. -4. **Choose by `layer`.** Satisfy every `requires`. Take what `wouldEmit > 0` says your - model is already asking for. - - Pick **ONE** framework on the `api` layer: `routes` and `routes-hono` are - alternatives, and wiring both silently produces two complete HTTP surfaces. - - Do **NOT** apply that rule to `client`. `@metaobjectsdev/tanstack` peers on - `react`, so a form generator plus the TanStack hook/grid generators is the - intended composition, not a conflict. -5. **Wire what you chose.** A generator you will run unchanged is wired from its package: - on TypeScript each catalog row carries `wire.import`, plus `install` and `configKeys`, - and you write the call from the generator's documented options; on the other ports you - select it by its stable name. Copy nothing. - For a generator whose output you need to change, - **`meta eject --format json`** copies each into `codegen/generators/` - (yours to edit), and reports the import line, the entry to add to `generators`, one - consolidated install command, and any config keys those generators read. On - TypeScript, a generator whose output calls an HTTP adapter (`routes`, `routes-hono`, - `entity`) also gets that adapter's source copied into `codegen/runtime/`, and each JSON - row lists those files under `runtime`. -6. **`meta gen`** — read its warnings, then typecheck. - -A library row also carries `provides` (what is in the box) and, under `--probe`, a -`project` block: which layers you selected, how many tables and requirements they -added here, which of your entities `extends` into it, and any generator the library -implies that you have not wired. - -### The seven layers, and what picks them - -| layer | what it is | chosen by | -|---|---|---| -| `model` | entity/DTO/value-object modules and the constants beside them | app shape | -| `persistence` | how rows are read and written | app shape | -| `service` | one module per package that runs each operation in a transaction with the write rules (ADR-0067); its transport is on `api` | app shape | -| `api` | the HTTP surface — pick one framework | app shape | -| `client` | the browser tier | app shape | -| `docs` | model pages, api reference, agent pages, requirement ledger — each its own generator entry, like any other | app shape | -| `capability` | prompts, parsers, payloads, traces, test stubs | **`--probe`** | - -At intent level: a **headless data service** is `model` + `persistence`; an **HTTP API** -adds `api` with one framework; an **admin UI** adds `client`. Members come from the live -catalog, never from a list in prose — a list here would go stale the day a generator is -added, and `--probe` cannot, because it runs the generators rather than describing them. - -`capability` looking like one large bucket is the point: you are not meant to choose -inside it by reading labels. You declared a `template.prompt`, or a -`requirement.functional`, or a stored-proc source — `--probe` reports the file count -that follows, for your model. - -An abstract entity never emits instance/write artifacts regardless of what is wired. - -**A dependency's metadata is load-only by default:** codegen excludes nodes from a package a -dependency owns unless `scope.include` names that package literally. See -`references/dependencies-and-shared-models.md`, which also covers publishing with -`sharedModelFile()`. - -## You don't have to generate everything — pick your layers - -Codegen is à la carte. When the app's API does not match generated CRUD, **generate the data -layer and hand-write only the routes**, calling the generated queries — never abandon codegen -for the data access too. An entity's own columns plus a joined extra is an **entity read-view**, -not a projection; derived or aggregate data is a projection whose generated query you call. -Details and the adoption rules: `references/choosing-layers.md`. - -## Two ways to author a generator - -A generator is **programmatic** (code that builds the output) or **declarative** (a Mustache -template plus a `scope` and an `outputPattern`). Both ship in every port. Use programmatic code -when the logic is involved; use a template when the shape is what you are iterating on, or you -want one output across languages. The per-port wiring is in -`references/template-or-code.md`. Whether a base/extension split or a write-if-absent -file exists is answered in `docs/features/codegen-concepts.md` §5-§7: MetaObjects ships one -hand-edit strategy, and no shipped generator emits either. - -## Never hand-write a physical name - -A table, column, schema or index name is declared in metadata. Every port can emit a per-object -names artifact (`.names.ts`, `Names.java`, …) — **but only when you wire the -`names` generator**, since no port generates it by default. Reference its constants from raw SQL, -migration scripts and external mappings; prefer the ORM's typed column handle where one exists. -Details: `references/physical-names.md`. - -## The JSON your API writes is a project setting - -Each port writes what its language's standard serializer writes: a C# decimal is a JSON -number, a Python one `str(Decimal)`. Identical output across ports is opt-in, through `wire` in -`.metaobjects/config.json` (`"decimals": "string"`, `"nullMembers": "omit"` or `"emit"`). Never -change one port to match another or to match a conformance corpus, and never hand-edit a -generated converter or annotation: change the setting and regenerate. Input rules hold in every -mode. Details and the per-port table: `references/wire-format.md`. - -## Dialects - -Generated DB schema/DDL targets a SQL **dialect**: - -- `postgres` — the default, fullest-featured. -- `sqlite` — supported; rejects non-default DB schemas. -- `d1` (Cloudflare D1) — **TypeScript-only**. It is SQLite at the SQL level; the - non-TS server ports have no analogue, so it never appears in their config. -- `mysql` — **TypeScript codegen and runtime only.** `meta migrate` does not own a MySQL - schema and refuses `--dialect mysql`; you keep the DDL yourself. - -Set the dialect once in the project's codegen config. Field subtypes map to the -dialect's column types deterministically (`field.string` + `@maxLength` → -`varchar(N)`, `field.currency` → integer, `field.uuid` → native `uuid` on -Postgres, `field.enum` → `varchar` + `CHECK`, etc.). - -Codegen only ever maps the **shapes you authored** — so author them right. If you -find the generator emitting the wrong column type, the fix is the field shape, not a -template hack. See the decision procedure in the **`metaobjects-authoring`** skill -(`references/choosing-a-shape.md`) for the ordered derive→`@dbColumnType`→subtype/ -`@kind`/attribute routing (ADR-0037) — e.g. arrays are `isArray: true` (never an -array column type) and a native UUID is `field.uuid` (not a string + `@dbColumnType`). -When you register custom vocabulary for a custom generator, the same ADR-0037 -procedure decides whether it's a subtype, a `@kind` variant, or an attribute. -The vocabulary itself is a provider class, listed once in the port's project -configuration so `gen`, `verify --codegen` and the docs generators all load it (the -**`metaobjects-authoring`** skill, "Your own vocabulary", has the per-language example). -A generator then reads the custom attribute like any other: through the resolving -accessor on the node, never by re-parsing the file. - -## Per-target output - -Generated code can be routed to **multiple output directories/packages** so each -artifact lands with its runtime concern: the entity model in a database package, -routes in the API app, client hooks/forms/grids in the web app. Each generator can -declare which named target it writes to; same-target references stay relative, -cross-target references go through the target's configured import base. With no -targets configured, everything lands in a single output directory — output is -byte-identical to the single-directory case. Use multiple targets only when the -project's package boundaries justify it. - -## Running gen - -The shape is always the same — a `gen` verb that loads metadata, renders, merges, -and writes — but the binary differs per server language (the Node `meta`, a -language-native console tool, or a build-plugin goal). A dry-run mode previews -without writing; a watch mode re-runs on metadata changes where supported. Pass -specific entity names to scope a run to those entities. - -**`gen` skips a run when nothing changed.** After loading, every port computes a key from the -loaded model and everything the generators are built from; when it matches the last successful run -and every generated file still holds the bytes that run left, `gen` says so and writes nothing -(ADR-0064). Pass `--force` (Maven: `-Dmetaobjects.force=true`) to render anyway, and -`verify --codegen --full` to render and compare in a local run. A generator that reads something -the key does not cover declares it as an input or sets `cache: false`. - -**C#: one resolver names every property.** To spell a field's C# property differently (an -acronym, say), set `GenConfig.PropertyNaming` (`Func`). The entity classes, the -`AppDbContext`, the reverse finders, the routes, the filter map and the credential stripping all -read it, so they agree. A subclass hook (`EntityGenerator.PropertyName`, -`DbContextGenerator.PropertyName`) that disagrees with the resolver is refused rather than -emitting two spellings. - ---- - -For this project's codegen specifics, read the `references/.md` file for each server -language in this project's stack (only those are installed). Open the topic files in -`references/` only when the table at the top points you to one. diff --git a/agent-context-shipped/files/cd5623fc21c3134f.md b/agent-context-shipped/files/cd5623fc21c3134f.md new file mode 100644 index 0000000000..eb93276a1b --- /dev/null +++ b/agent-context-shipped/files/cd5623fc21c3134f.md @@ -0,0 +1,79 @@ +# Working with MetaObjects in this project + +> Stack: java server, no client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Java: generate with `mvn metaobjects:generate` + +1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator + list, one `` each, under `` pointing at the metadata. + Nothing is generated until it is listed; the build names any generator a listed one needs. + Which classes to list (the Spring REST tier, requirement tests, API docs) is in the + `metaobjects-codegen` skill's `references/java.md`. +2. **Generate.** `mvn metaobjects:generate`. `mvn metaobjects:eject -Dnames= -Dport=java` + copies a generator to change what it emits. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `mvn metaobjects:verify` (the generated code and the requirements). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/f53bebd852a41ec3.md b/agent-context-shipped/files/ce7130ca4922c867.md similarity index 97% rename from agent-context-shipped/files/f53bebd852a41ec3.md rename to agent-context-shipped/files/ce7130ca4922c867.md index 0a1d6a3fd3..f1fdd94246 100644 --- a/agent-context-shipped/files/f53bebd852a41ec3.md +++ b/agent-context-shipped/files/ce7130ca4922c867.md @@ -1,9 +1,10 @@ # C# port — audit reference The C# port targets .NET consumers (EF Core + ASP.NET Minimal API). Codegen runs -through the `dotnet meta` .NET tool (`MetaObjects.Cli`). Schema migration and -live-DB drift are **Node-`meta`-only** (ADR-0015) — `dotnet meta` has no `migrate` -subcommand and `dotnet meta verify --db` is rejected with exit 2. +through the `dotnet meta` .NET tool (`MetaObjects.Cli`). Schema migration is EF Core +Migrations or the Node `meta migrate` reference helper, and live-DB drift is the Node +`meta verify --db` (ADR-0015) — `dotnet meta` has no `migrate` subcommand and +`dotnet meta verify --db` is rejected with exit 2. --- diff --git a/agent-context-shipped/files/d7bb54e3ae783252.md b/agent-context-shipped/files/d7bb54e3ae783252.md new file mode 100644 index 0000000000..9f5e044e45 --- /dev/null +++ b/agent-context-shipped/files/d7bb54e3ae783252.md @@ -0,0 +1,97 @@ +# Working with MetaObjects in this project + +> Stack: csharp server, react client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### C#: generate with `dotnet meta gen` + +1. **Config.** `codegen/Generators.cs` (written by `dotnet meta init`) is the generator list. + Nothing is generated until it is listed. The EF Core data layer and its routes: + + ```csharp + new MetaObjects.Codegen.Generators.EntityGenerator(), + new MetaObjects.Codegen.Generators.DbContextGenerator(), + new MetaObjects.Codegen.Generators.FilterAllowlistGenerator(), + new MetaObjects.Codegen.Generators.RoutesGenerator(), + ``` + + `RequirementTestsGenerator { OutDir = "/Generated" }` writes one test per + requirement; `ApiDocsGenerator` writes `api/csharp/AGENT-API.md`. `dotnet meta gen --list` + is the catalog. +2. **Generate.** `dotnet meta gen`. `dotnet meta eject ` copies a generator into the repo + to change what it emits. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `dotnet meta verify --codegen` (the generated code and the requirements). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/0b3cd53eedd718e2.md b/agent-context-shipped/files/d92b15996eb3991d.md similarity index 93% rename from agent-context-shipped/files/0b3cd53eedd718e2.md rename to agent-context-shipped/files/d92b15996eb3991d.md index 066fdb050c..367b815f1a 100644 --- a/agent-context-shipped/files/0b3cd53eedd718e2.md +++ b/agent-context-shipped/files/d92b15996eb3991d.md @@ -20,9 +20,11 @@ truth. Code, schema and migrations are generated from it and are disposable. 2. **Generate.** `mvn metaobjects:generate`. `mvn metaobjects:eject -Dnames= -Dport=java` copies a generator to change what it emits. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -58,7 +60,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/db66e0e785a6cf50.md b/agent-context-shipped/files/db66e0e785a6cf50.md deleted file mode 100644 index 36be5db541..0000000000 --- a/agent-context-shipped/files/db66e0e785a6cf50.md +++ /dev/null @@ -1,331 +0,0 @@ ---- -name: metaobjects-audit -description: Use when assessing how well a project has adopted MetaObjects — greenfield first-pass or deep double-check; produces a scored, prioritized adoption-audit report covering codegen, runtime, drift-gates, and prompts. ---- - -# MetaObjects adoption audit - -**Thesis.** Typed metadata is the durable spine; generated code is the disposable -artifact. Hand-writing a layer the metadata could own creates a second source of -truth for one fact — it will drift. This audit hunts those second sources of truth -and proposes folding them into the spine — where the generator code plus its generated output -and added metadata is fewer lines than the hand-written code it replaces, more of that shape -are coming, or silent drift is the risk. A one-off layer -that fails that cost test is acceptable, not a defect. - -**Boundary — read-only.** Deliverables: `.metaobjects/adoption-audit.json` (machine-readable -findings) + a rendered Markdown report. The audit **never edits code, never authors -metadata** — `metadata_sketch` per finding is a read-only proposal for human review. -Actual cutovers run through the existing skills mapped per finding tier (§ Bridge). - -## Reference files — open the one your task needs - -| File | Open it when | -|---|---| -| `references/calibration.md` | Before raising any finding: it lists the port gaps and non-defects that are never the adopter's fault. | -| `references/surface-review-axes.md` | Working any axis (A–I) of Phase 1b. | -| `references/capability-checklist.md` | On every axis: the exhaustive list of what the metamodel can express, one hunt per capability. | -| `references/drift-signatures.md` | Hunting hand-written second sources of truth (validators, mappers, comments, views, JSON bags, physical-name literals, enum-member and event-name literals). | -| `references/prompt-anti-patterns.md` | Axis D: the project builds text sent to an LLM or parses a reply. | -| `references/vocabulary-hygiene.md` | Axis I: retired or deprecated authoring forms, custom vocabulary, vocabulary opportunities. | -| `references/requirements.md` | Axis E2: the project declares `requirement.*` nodes. | -| `references/typescript.md`, `java.md`, `kotlin.md`, `csharp.md`, `python.md` | The server port the project uses (only the ports in the project's stack are installed). | - -## Guardrails - -- **Adoption direction — metadata follows the code.** This is a brownfield project: existing - code and the live schema are the spec. Every `metadata_sketch` must **reproduce the code's - existing native types, names, and nullability** (model `field.uuid` where the code uses - `UUID`, carry over `@column`/`@table`/`@required`) and every cutover must **minimize churn to - code the generator is not replacing** — customize the codegen to match the existing shape - before proposing edits to working call sites. A sketch that would re-type or rename working - code the generator isn't replacing is modeling the wrong thing; when a choice is ambiguous, - flag it for the human rather than proposing the churnier option. (Full doctrine: - `metaobjects-authoring` → "Adopting onto an existing codebase".) -- **Parity-gate every cutover** — prove behavior-equivalent before deleting hand-written code; generated schemas are often looser. -- **Verify, don't assume** — read the code behind a grep hit. -- **Calibrate before flagging** — `references/calibration.md` lists what is never the adopter's fault. -- **Verify the DB artifact, not just the types** — the contract may claim a column the view DDL dropped. -- **Don't let one bespoke action block generating the entity** — generate CRUD; mount the custom action alongside. -- **Consumption ≠ a dist copy across versions** — bump + rebuild lockstep and install. - -## Phase 0 — Triage (fast, mechanical) - -- [ ] MetaObjects present? (`metaobjects/` dir, metadata sources, `@metaobjectsdev/*` / - `com.metaobjects:*` / `metaobjects` / `MetaObjects.*` deps). -- [ ] Count metadata source lines + all `@generated` / `DO NOT EDIT` files repo-wide. -- [ ] **Owned-generators check:** which generators does the project own at - `codegen/generators/*` (via `meta eject`, or `meta init` on a CLI before 1.0.4), and - which does it import from `@metaobjectsdev/codegen-ts/generators`? Both are supported - from 1.1. Two findings to look for. **An unmodified owned copy** is duplication that - falls behind the reference: `meta eject --list --format text` marks each copy, and one - marked `identical to the reference` should be replaced by the package import. That is - the only mark that proves a copy unmodified. `same content as the reference, your - formatting` and `DIFFERS` with `0 line(s) of your own` rule out added or edited lines, - not removed or reordered ones: confirm those from the file's history - (`git log -p -- codegen/generators/.ts` shows no edit after the eject) first, and - report a copy you cannot confirm as "possibly customized: check its history", not as a - copy to drop. **A copy with lines of its own is not proof of a customization either.** - `meta eject --list` (and each port's listing) prints `DIFFERS` for BOTH a deliberate - customization and a copy gone stale by version, and its `M of your own` count includes - every line the reference has since removed or rewritten, which are older upstream lines. - Run the history check on every `DIFFERS` row, `M` above 0 included, and report the two - figures separately: lines behind the reference, and lines of the project's own that the - history confirms. A copy stale by version is a finding (`owned-generator-stale`). For `entity`, - `routes` and `routes-hono` that holds only when every `codegen/runtime/` file the copy - reaches is also marked identical: an edited adapter is a customization, and such a copy - is not a finding. Those runtime rows appear only with `--format text` (or as the - `runtimeCopy` array inside the row's `source` object in `meta gen --list --format - json`); a listing with no runtime rows is not evidence that the adapter is unmodified. **An import of `entityFile` / - `queriesFile` / `routesFile` / `barrel` on a 1.0.x install** fails to load, because 1.0 - removed those four and 1.1 restored them: there it is an upgrade blocker, fixed by - upgrading to 1.1 or by ejecting. Importing anything from that subpath is otherwise - correct and is never a finding by itself. **Every port owns generators the same way**: - run the owned-copy check in each port reference the project uses (TypeScript - `meta eject --list --format text`, Python `metaobjects gen --list`, Java / Kotlin - `mvn metaobjects:eject -Dlist`, C# `dotnet meta gen --list`), and report ONE total across - all of them: **unmodified owned-generator lines / all owned-generator lines**, where - unmodified counts only copies proven unmodified. Report the proven copies together as - one finding, `owned-generator-stock-copies`, listing each copy and the port's undo command. -- [ ] **Cross-language version consistency (silent-drift check).** If the project uses MetaObjects in more than one language (e.g. a TS web client + a Java/Python/C# backend), enumerate EVERY MetaObjects package across ALL ecosystems (npm `@metaobjectsdev/*`, Maven `com.metaobjects:*`, PyPI `metaobjects`, NuGet `MetaObjects.*`) and record each version. **The version-number LINES differ by ecosystem (npm/PyPI/NuGet `0.x`/`1.x` vs Maven `7.x`/`8.x`), so you CANNOT eyeball drift** — a `0.12` next to a `7.7` looks fine but can be badly out of sync. Compare the **`metamodelVersion`** each port reports (the shared spec version on the registry manifest): a mismatch is real cross-language drift and a **finding** — the ports disagree on vocabulary/wire behavior. A match is not enough on its own: added vocabulary does not move `metamodelVersion`, so also compare each port's release (each ecosystem's version for one CHANGELOG entry). A port on an older release is a **finding** when the model uses vocabulary that release lacks. Also flag any port not on the latest release for its ecosystem. (This is a known real-world failure mode: newest backend, stale client, invisible because the numbers differ.) -- [ ] Classify: **Greenfield** (none/minimal) · **Partial** · **Deep** → choose path below. - ---- - -## Phase 1a — Greenfield path - -- [ ] **Shape inventory.** Catalog modelable shapes: entities/tables, DTOs, validation - schemas, routes, UI lists/forms, prompt sites. -- [ ] **Pick wedge:** one real entity (single-column PK, standard CRUD) to model first. -- [ ] **From-zero roadmap:** `meta init` → model the wedge → `meta gen` the data layer → - author a projection view → expand to routes/UI → add prompt pillar where LLM calls exist. - Owning the generators from day 1 is part of the roadmap. - -## Phase 1b — Partial / Deep path - -**Census:** generated output line/file counts + metadata/owned-generator lines. -Compute **leverage ratio** = `generated_lines / (metadata_lines + generator_lines)`; -healthy = multi-× (example: ~4.7k spine → ~15.7k generated ≈ 3.3×). **Never report a -generated-share or leverage figure alone, and never as a target:** pair it with the **net -hand-written line change**, a figure to report and not the cost test (hand-written lines -removed minus generator and metadata lines added). A share can rise while total hand-written -code grows. - -**Coverage matrix:** per entity/projection/value — query helpers? view? routes? UI? -The gap between "modeled + query helpers" and "has view + route + UI" is the headline -lopsidedness. - -**Shape coverage census.** The coverage matrix lists modelled entities only, so a shape -nobody modelled never appears in it. Count the other side too. List every shape that crosses -a boundary: database tables and views, request and response bodies, queue and socket -messages, prompt inputs, LLM replies, and file formats the project reads or writes. For each -shape, record whether it is modelled, and for each layer that states it (DDL or migration, -ORM model, validator, DTO, client type, prompt payload, reply parser) whether that statement -is **generated**, **derived** from generated code (a type built from a generated type, a -`z.infer` of a generated schema), or **hand-declared**. Report -`generated or derived statements / all statements` and list the unmodelled shapes. A table -present in the database or the migrations with no entity or projection behind it is a -finding (`unmodelled-table`). Like the leverage ratio this is a measurement, never a target: -an unmodelled shape is a finding only where the cost test in § Owned-codegen says modelling it -pays, or it is a table. - -**Surface review — 8 axes (independently runnable).** -Work the full `references/capability-checklist.md` on every axis. Check calibration -guards (`references/calibration.md`) before raising a finding. **Verify, don't assume** — read the -code behind a grep hit; a "duplicate" validator's *divergence* is the finding. - -Axes (the full hunt for each is in `references/surface-review-axes.md` — open it before working an axis): - -- **A.** Codegen candidates — API / server routes · **B.** Codegen candidates — web / client -- **C.** Drift hotspot — validators, mappers, runtime models · **D.** Prompt pillar -- **E.** Owned generators and scaffold-and-own · **E2.** Capability ledger (`requirement.*`, opt-in) -- **F.** Drift-gate adoption — does it block? · **F2.** Over-generation and generated-but-bypassed (codegen waste) -- **G.** Runtime-contract anti-patterns · **G2.** `own*()` accessor discipline (a correctness defect, not advisory) · **G3.** Guarded status transitions (every write to a status-like enum column is conditional on the current value; the fix goes through the port's ORM with generated constants, never raw SQL) -- **H.** Authoring correctness / ADR conformance · **H2.** Wrong native type (`field.string` + `@dbColumnType: uuid`) -- **I.** Vocabulary hygiene / modernization (advisory, never a failing finding) - -**Phase 4 — Synthesize** into the tiered roadmap and populate both artifacts. - ---- - -## Classification scheme (every surface; classify on codegen AND runtime) - -| Class | Meaning | Action | -|---|---|---| -| **GENERATED** | Driven by metadata (regenerable). | Confirm it regenerates clean. | -| **OWNED-GENERATOR** | `codegen/generators/*` file the project owns. | Confirm clean regen; flag drift from reference template. | -| **CODEGEN CANDIDATE (high)** | Standard CRUD/list/form over a modeled or modelable entity. | Author the view + generate; parity-gate. | -| **CODEGEN CANDIDATE (partial)** | Generatable data layer, bespoke presentation. | Generate data layer; keep viz hand-written. | -| **DYNAMIC-RUNTIME CANDIDATE** | Behavior that could be metadata-driven at runtime. | Assess runtime-metadata feasibility. | -| **ACCEPTABLE (one-off)** | A hand-written layer the metadata could own, but an owned generator for it would cost more lines than it replaces, no more instances are expected, and nothing drifts silently (it reads typed generated properties). | Report as acceptable. Not a defect, not a recommendation to generate. Re-class if it recurs or drift appears. | -| **BESPOKE (keep)** | Genuine custom: irreducible SQL (recursive CTEs, window functions, set ops — NOT plain count/sum/avg rollups, which are `origin.aggregate` on a projection), graph, SSE, auth, search, viz. | Leave hand-written — still import generated types. | -| **VOCAB CANDIDATE (advisory)** | A recurring, closed hand-coded pattern (parallel integration modules / an ad-hoc string discriminator) that project-registered vocabulary — a custom subtype/attr via a provider — plus a small owned generator would own. | Propose the provider + `metadata_sketch`; apply the ADR-0037 ordered test; advisory only. | - -**Gold-standard exception.** A hand-written component that *derives* from generated metadata -cannot drift — flag as good. A "bespoke" component hardcoding a shape metadata knows is a -hidden candidate. **Stub trap:** demo-data routes have nothing to replace — classify -"candidate (future) — not DB-backed". - ---- - -## Owned-codegen & scaffold-and-own assessment - -- A config may import `entityFile` / `queriesFile` / `routesFile` / `barrel` from - `@metaobjectsdev/codegen-ts/generators` or from owned `codegen/generators/*`. Both are - supported from 1.1, and the import is the right choice for a generator the project does - not change. The import is a blocker only on a 1.0.x install, where those four do not - resolve: recommend upgrading to 1.1, or `meta eject ` if the project has to stay - on 1.0.x. On 1.1 the finding is the reverse case, an owned copy proven unmodified by - the Phase 0 owned-generators check: recommend the package import. Importing any other - generator from that subpath is correct and is not a finding. -- Audit owned generators: (a) regenerate clean? (b) drifted from reference templates — - intentional (good) vs stale/accidental (missed upstream fix)? Decide it from the copy's - history, not from the listing's `own` count: `DIFFERS` reads the same for both, and lines - the reference has since removed count as "own" (Phase 0, owned-generators check). (c) hand-rolling a walk - that a declarative `scope` + `outputPattern` could replace? (d) bespoke shape better as - a `templateGenerator` than a forked generator? -- **Authoring ladder:** built-in fits → import it as shipped · close → **eject it and - customize the copy** - · new shape → **author a declarative template-spec / custom generator from the metadata** - · genuinely un-modelable → hand-write (still import the generated types). -- **Generator-gap check:** missing generators that block the biggest wins? Recommend per gap: - own + customize / author a template-spec / fix upstream / stopgap. **Cost-test every - recommendation to generate** (`metaobjects-codegen` → `references/owning-generators.md`): an - owned generator is worth it only if generator + output is smaller than the code it replaces, - more instances are expected, or drift protection is the point. A layer that fails is - ACCEPTABLE, and an owned generator larger than the code it replaced is itself a finding. - A general-shape generator belongs in the library, not in each app. -- **Verify the DB artifact, not just the types** — computed view columns may appear in the - contract but be dropped from the view DDL; the contract may lie. -- **An *undeclared* hand-authored DB view is invisible to `meta verify --db`.** A view that is - neither modeled nor carried in the `source.rdb` `@sql` / `@unmanaged` escapes is *unmanaged* - (informational only — never actionable drift, never auto-dropped), so a hand-written view - standing in for an expressible `object.projection` / entity read-view can never be outsourced - to the drift gate; hunt it here (drift signature 8 in `references/drift-signatures.md`). Once carried in `@sql` (#208) it IS - registered, fingerprinted, and drift-checked — no longer audit-only. -- **Version skew:** check *actually-resolved* package versions, not declared; consuming a fix - requires a coordinated lockstep bump, not a source-file copy. - ---- - -## Semantic-constraint ratification (prevents over-modeling) - -When folding hand validators into metadata, apply human judgment per constraint. -A constraint enters **shared metadata** only if it is a **true cross-language domain -invariant**; a one-consumer preference stays in a thin local refinement layer. - -Cross-field rules **are** modelable (`comparison` / `atLeastOne` / `exactlyOne` / -`requiredWhen` / `presentIff`); ratification decides *which* belong in shared metadata. Output a -**ratification table**: KEEP-IN-METADATA / LOCAL-REFINEMENT / DROP + rationale — -human-approved, never applied silently. Distinguish `required` from has-a-safe-default -(`@default` often fixes the over-requiring bug). A core attr ripples cross-port; for a -one-consumer need, read it codegen-locally. - ---- - -## Scoring & maturity model — three surfaces (no single global score; bands not decimals) - -1. **Headline MATURITY TIER** — Greenfield → Partial → Deep → Exemplary; worst-of with - prerequisite gating (a missing pillar can't be averaged away); rendered with **the single - next unmet check** ("you're Partial; the next rung needs a blocking `verify` in CI"). -2. **Per-pillar breakdown (never rolled into one number)** — `pillar | tier | top gap` over - codegen / runtime / drift-gate / prompts. This is the core deliverable. -3. **Binary CI drift gate** — prominent and separate: **"Does `meta verify` drift detection - block every route to production?"** It is binary because the risk is binary. YES only - when axis F scores the gate **BLOCKING**; RUNS BUT DOES NOT BLOCK and ABSENT both answer - NO, with the reason (exit code swallowed, tolerated error count, a deploy path that - skips it, no CI). Local hooks with no tracked installer do not count. -4. **Used as described** — one line, separate from the tier: does the project use what it - adopted the way MetaObjects documents it? Built from four measurements, each shown with - its numbers: generated artifacts consumed rather than bypassed (axis F2, `consumed / - emitted` and the `generated-and-bypassed` count); the gate blocks (axis F score); prompt - payload fields linked to entity fields (axis D, `linked / (linked + unlinked copies)`); - and boundary shapes generated or derived (Phase 1b shape coverage census). Render it as - `Used as described: — generated forms 5/12 consumed · gate RUNS BUT DOES NOT - BLOCK · payload fields 6/10 linked · shapes 50% generated or derived`, banded by its worst - part. - -Coarse bands only (none / some / most / all). Worst-of within a pillar. Lead with gaps, not -the grade. - -**Re-run: compare against the previous audit.** If `.metaobjects/adoption-audit.json` -already exists, read it before starting and keep it as the baseline. Match each earlier -finding to this run's by `id` plus location, and give every earlier finding a `status`: -**fixed** (the location no longer shows it; say what changed), **open** (still present, -carrying its original `first_seen`), or **deferred** (the project recorded a decision not to -fix it now, in a commit, an ADR, a tracked issue or a code comment, quoted as -`deferred_reason`). A finding that is still present with no recorded decision is open, never -deferred. New findings are `new`. Report the counts per status at the top of the report, -and show each scorecard line beside its previous value. - -**Vocabulary hygiene (axis I) is advisory** — it surfaces as modernization -opportunities in the roadmap, scored as such, and **never gates a tier or fails the -audit.** Dated-but-working vocabulary is a quality nudge, not a defect. - ---- - -## Report - -**Two artifacts:** `.metaobjects/adoption-audit.json` + rendered Markdown. - -**Markdown sections (lead with Scorecard):** 0. Scorecard (tier + pillar table + CI gate + -used as described; on a re-run, the fixed / open / deferred / new counts) · -1. Triage + census (including the owned-generator unmodified-lines total and the shape -coverage census) · 2. Coverage matrix · 3. Per-surface classification tables · 4. Drift -findings (active bugs first) · 5. Owned-codegen + generator gaps · 6. Drift-gate adoption · -7. Runtime-contract + authoring-correctness (axes G+H) · 8. Semantic-constraint ratification · -9. Prompt-pillar assessment · 10. Prioritized roadmap: Tier 1 drift kill → Tier 2 existing -generators → Tier 3 new generators/projections → Tier 4 dynamic-runtime/prompts/cross-port. -Each roadmap item: LOC retired, prerequisite, **parity-gate before deleting hand-written code**. - -**Each finding in `.metaobjects/adoption-audit.json`:** - -| Field | Content | -|---|---| -| `id` | stable kebab id (e.g. `handwritten-crud-route`, `manual-zod-validator`, `enum-literal-spelling`, `unguarded-status-transition`, `owned-generator-stale`) | -| `title` | "you hand-wrote X that metadata can generate / model" | -| `pillar` | `codegen` / `runtime` / `drift` / `prompt` | -| `surface` | `entity` / `route` / `validator` / `repository` / `dto` / `hooks` / `prompt` / `migration` | -| `capability` | the capability-checklist capability this maps to (e.g. `field.currency`, `relationship.@through`) | -| `locations[]` | exact `file:line` spans | -| `impact` | LOC eliminated + N call-sites + drift-risk (high/med/low) | -| `effort` | `trivial` / `small` / `medium` / `large` | -| `confidence` | bias to under-flagging (false-positive rate >15% is a kill criterion) | -| `metadata_sketch` | metadata you'd author to replace it — **read-only proposal only; never applied** | -| `next_command` | the exact command / skill that performs the cutover (see bridge below) | -| `parity_gate` | the specific check proving behavior-equivalence | -| `tier` | 1–4 | -| `status` | `new` / `open` / `fixed` / `deferred` against the previous audit (`new` on a first run) | -| `first_seen` | date of the audit that first raised it (carried forward on re-runs) | -| `deferred_reason` | for `deferred` only: the recorded decision, quoted, and where it is recorded | - -Fixed findings stay in the file with `status: fixed` for one run, so the next reader sees -what closed. - -**Top-level fields in `.metaobjects/adoption-audit.json`**, beside `findings[]`: - -| Field | Content | -|---|---| -| `audited_at`, `commit` | when the audit ran and the commit it read | -| `previous` | `audited_at` and `commit` of the baseline audit, or `null` on a first run | -| `tier`, `pillars[]` | headline tier and `{ pillar, tier, top_gap }` per pillar | -| `ci_gate` | `{ score: "BLOCKING" \| "RUNS_BUT_DOES_NOT_BLOCK" \| "ABSENT", exit_code, error_count, swallowed_at[], deploy_paths_skipping[] }` | -| `used_as_described` | `{ band, generated_consumed, generated_emitted, bypassed_count, gate_score, payload_fields_linked, payload_fields_unlinked, shape_statements_generated_or_derived, shape_statements_total, unmodelled_shapes[] }` | -| `owned_generators` | `{ unmodified_lines, total_lines, copies[] }`, one total across every port | -| `status_counts` | `{ new, open, fixed, deferred }` | - -Within each tier, sort by impact ÷ effort (quick wins first). Tier 1 leads. - -### Audit → action bridge - -The audit never edits code. Pattern: **dry-run → review the diff → apply**. - -- Propose metadata → `metaobjects-authoring` + brainstorming flow (human reviews). -- Generate → `meta gen`; **`meta gen --dry-run`** is the review-the-diff step → skill: - `metaobjects-codegen`. -- Prove parity → **`meta verify --codegen`** is the drift gate → skill: `metaobjects-verify`. -- Routes / runtime / web → skill: `metaobjects-runtime-ui`. -- Prompts → skill: `metaobjects-prompts`. -- Cut over **one surface at a time, one commit each**. -- A separate guided-cutover skill (not this one) reads `adoption-audit.json` and walks - findings one tier/surface at a time with human approval at each step. diff --git a/agent-context-shipped/files/dba8a4cf627beb17.md b/agent-context-shipped/files/dba8a4cf627beb17.md new file mode 100644 index 0000000000..eb1622750d --- /dev/null +++ b/agent-context-shipped/files/dba8a4cf627beb17.md @@ -0,0 +1,282 @@ +--- +name: metaobjects-prompts +description: Use when writing, editing or reviewing code that builds text sent to an LLM (string formatting, f-strings, text blocks, template literals, string builders, concatenation) or reads an LLM reply (regex, string search, JSON or XML parsing), in a project that declares template.prompt nodes; test harnesses and scripts count. That code belongs in a template, a payload VO and a response model. Also for declaring template.prompt/template.output, typed payload projections, provider-resolved text, deterministic render, prompt-drift verify and parser-on-receipt, including a MetaObjects project that has no template.prompt yet and wants to move existing LLM code onto them. Do not use to edit existing LLM code in a project that declares no template.prompt when the task is not declaring prompts. +--- + +# MetaObjects prompt construction + +**A prompt is code, not a string scattered across services.** Declare its payload as a typed +shape (payload bloat becomes a diff), keep its text external and provider-resolved, and render +it deterministically: snapshot-testable, cache-stable and drift-checked at build time. The +same machinery renders any text artifact: emails, exports, docs, `llms.txt`. + +## Essentials + +- **Read your server language's reference file before writing or reviewing prompt code.** It + has the render and parse API, the generated parser names and the format fragment for that + language; this file has the rules every port shares. +- **Once a project declares any `template.prompt`, every LLM prompt should be one.** Asked to + change a hand-built prompt, migrate it first and then make the change: a line added to the + hand-built string is how a migrated codebase slides back. +- **Prompt text never lives in metadata or in code.** `@textRef` names it and a provider + resolves it; values come from the payload, never from string formatting at the call site. +- **Wording that varies is payload data and flags, never prose branched in a service.** +- **`@responseRef` on a `template.prompt` is what generates the reply side** (response type, + format fragment, parsers). For a raw chat reply use the tolerant extract; the strict parse + is for a guaranteed bare-JSON body. A `template.output` never has a reply side. +- **`@format` is the syntax of the body you render; `@responseFormat` is the syntax of the + answer you expect.** A plain-text prompt asking for JSON is the common case. +- **Run the template drift check in CI.** It fails the build when the text references a + field the payload does not have. + +## Reference files — open the one for your server language + +Only the files for the server languages in this project's stack are installed. + +| File | Open it when | +|---|---| +| `references/typescript.md` | the project's server language is TypeScript | +| `references/java.md` | the project's server language is Java | +| `references/kotlin.md` | the project's server language is Kotlin | +| `references/csharp.md` | the project's server language is C# | +| `references/python.md` | the project's server language is Python | + +## Touching a hand-built prompt? Migrate it, don't extend it + +This skill applies to code that does not look like MetaObjects: a `String.format` or text +block, an f-string, a template literal, a `StringBuilder`, or a string concatenation whose +result is sent to an LLM, and a regex or string search that pulls fields out of the reply. +Look in every module, not only the application: test harnesses, simulators, evaluation +scripts and tooling build prompts too. + +The migration is safe because it is checked against the old output: + +1. **Snapshot the current output** for one or more representative inputs, as a test fixture. +2. **Declare the payload**: an `object.value` for caller-supplied fields, or a sourceless + `object.projection` when fields are derived. Only the fields the text uses. +3. **Declare the `template.prompt`** and move the text into its external template file. +4. **If the code reads the reply**, add `@responseRef` to a response model and replace the + regex or ad-hoc parsing with the generated extractor. +5. **Render and compare with the snapshot.** Keep it byte-identical; review any intended + difference on its own. +6. **Then make the change the task asked for**, in the template text or the payload. + +## The template subtypes + +A template is a typed pair: a logical reference to external text, and a payload shape +declaring exactly the data the text expects. The subtype says which way text travels. + +| Subtype | Direction | Use | Extra attrs | +|---|---|---|---| +| `template.prompt` | outbound, and optionally inbound | LLM-targeted | `@maxTokens`, `@requiredSlots`, `@requiredTags`, `@model`, `@responseRef`, `@responseFormat`, `@promptStyle` | +| `template.output` | outbound only | email / docs / config / export | `@kind: document \| email` (default `document`), `@requiredTags`; `@kind: email` adds `@subjectRef` / `@htmlBodyRef` / `@textBodyRef` | + +Both carry: + +| Attr | Required | Purpose | +|---|---|---| +| `@payloadRef` | yes | the `object.value`, or sourceless `object.projection`, declaring the payload shape | +| `@textRef` | yes, except on a `template.output @kind: email`, which carries `@subjectRef` + `@htmlBodyRef` (+ optional `@textBodyRef`) and no `@textRef` | the two-layer logical text reference `group/source`, resolved by a provider | +| `@format` | no | `text` (default) / `html` / `xml` / `csv` / `json` / `markdown` / `spreadsheet`; drives the escaper | +| `@maxChars` | no | build-time size budget | + +A `template.output @kind: email` renders a structured `EmailDocument` (subject, HTML body, +optional plain-text body), not one string. `@requiredTags` names tags the rendered text must +contain, checked by `verify`, on both subtypes. + +**The reply side belongs to `template.prompt` alone.** `@responseRef` names the shape (an +`object.value` or sourceless `object.projection`) a model's reply is parsed into, and its +presence is what asks for the whole inbound tier. `@responseFormat` (`json` default, or +`xml`) is the syntax of the reply; `@promptStyle` selects how the format fragment presents +the shape. Putting `@responseFormat` or `@promptStyle` on a `template.output` is a load +error: an output renders a document and nothing reads a reply to it. + +**`template.toolcall`** (`@toolName` + `@payloadRef`) is a third subtype: a vendor-neutral +LLM tool-call envelope with no text body, so it carries no `@textRef` or `@format`. The +vocabulary exists; MCP exposure of declared prompts and tools has not shipped, so do not +promise it. + +## The payload is a shape you declare + +The payload is not an entity. It is a declared shape whose fields are the prompt's typed +surface: an `object.value` when the caller supplies the fields, or a sourceless +`object.projection` (no `source.*` child) when fields are derived by assembly. A field's +generated type comes only from its declared `field.`, `isArray` and `@objectRef`. A +nested payload is a `field.object` with `@objectRef` to another `object.value` +(`isArray: true` for a list). The assembly origins (`origin.aggregate`, `origin.computed`, +`origin.first`) are refused on an `object.value` (`ERR_SUBTYPE_RULE_VIOLATION`); a derived +payload goes on the sourceless projection. Projections in general are covered by the +`metaobjects-authoring` skill. + +Declaring the shape is what makes payload bloat visible: adding a field to the prompt is a +diff on the declared shape. + +```json +{ + "metadata.root": { + "package": "acme::blog", + "children": [ + { + "object.value": { + "name": "WelcomePayload", + "children": [ + { "field.string": { "name": "displayName" } }, + { "field.long": { "name": "postCount" } }, + { "field.object": { "name": "posts", "@objectRef": "PostSummary", + "isArray": true } } + ] + } + }, + { + "object.value": { + "name": "PostSummary", + "children": [ + { "field.string": { "name": "title" } } + ] + } + }, + { + "template.prompt": { + "name": "WelcomePrompt", + "@payloadRef": "WelcomePayload", + "@textRef": "lobby/welcome", + "@format": "xml", + "@maxTokens": 500 + } + } + ] + } +} +``` + +## Prompt text is external and provider-resolved + +`@textRef` is a two-layer logical reference `group/source` (folder/file, table/key, +collection/document). At runtime a configured provider resolves it to the template text: + +- a filesystem provider, the dev default: `lobby/welcome` → `/lobby/welcome.mustache`. + It is `FilesystemProvider` in every port. In TypeScript it is Node-only and imported from a + subpath so the package root stays browser-safe: + `import { FilesystemProvider } from "@metaobjectsdev/render/providers"` (Python + `metaobjects.render`, C# `MetaObjects.Render`, JVM `com.metaobjects.render`); +- an in-memory provider (a string map) for tests (`InMemoryProvider`, from the package root); +- a classpath or resource provider on the JVM; +- your own (a database, a vector store): implement `Provider`'s one `resolve(ref)` method. + +Locale, A/B and dynamic prompt variants all live behind the provider without touching +metadata. + +**Jinja bodies (Python and TypeScript only).** A body may be `lobby/welcome.jinja` (or `.j2` +/ `.jinja2`) in place of `welcome.mustache`; the `@textRef` does not change and the metadata +never names an engine. Python renders it with jinja2 (the `metaobjects[jinja]` extra), +TypeScript with nunjucks. The same drift check walks the parsed template and reports what it +cannot settle statically (`user[key]`, a computed include name) as +`ERR_TEMPLATE_NOT_STATIC`. Java, Kotlin and C# refuse a Jinja body with +`ERR_TEMPLATE_ENGINE_UNSUPPORTED`. Prefer Mustache for new templates: it is the engine every +port has, and its logic-less shape is what pushes conditionals into the payload. Jinja is for +adopting existing Jinja templates without rewriting them. + +## Render is deterministic and byte-stable + +Rendering is a pure function of the payload and the resolved text: the same inputs give +byte-identical output, across runs and across every port. That is what protects exact-prefix +prompt-cache hits and makes a snapshot test meaningful. The engine holds to it this way: + +- arrays only for iteration (no object-key iteration); +- no locale, number or date formatting in the engine: pre-format on the payload; +- pinned trailing-newline and Mustache standalone-tag whitespace; +- `@format` drives an engine-owned escaper (the CSV and spreadsheet escapers neutralize a + leading `= + - @ \t \r`, the CSV-injection guard). + +You render the prompt, call your own LLM client (codegen emits nothing provider-specific), +then parse the reply. + +## Conditional content: data and flags, never branched prose + +When wording varies along some dimension (audience, tier, mode, locale, entitlement), do not +branch the prose in code and concatenate strings. That scatters one distinction across call +sites, each free to drift and none snapshot-tested. The variation belongs in two places, with +a third for real divergence: + +- **Vocabulary as payload data.** The words that differ become typed payload fields computed + once from the dimension: a noun, a label, a list of verbs, an example. The template stays + single and references `{{term}}` / `{{#items}}…{{/items}}`. +- **Presence as boolean flags.** When a whole block exists or not for a variant, gate it with + a section the payload sets: `{{#showBlock}}…{{/showBlock}}`. Flags are for whole blocks; a + mid-sentence word swap is vocabulary. +- **Variant text only when the prose really diverges.** Select a per-variant text through the + provider (a `@textRef` variant, or an included partial) so the shared prose still lives in + one place. Expect to need this rarely. + +One resolver maps the dimension to the payload (the flags and the vocabulary), so the +distinction is defined once and every template that depends on it stays consistent. + +``` +// WRONG: prose branched and concatenated in a service +if (tier.isPremium()) sb.append("Your plan includes priority support."); +else sb.append("Upgrade any time for priority support."); +``` +```mustache +{{! RIGHT: text in the template; the variant is data plus a flag }} +{{supportLine}} +{{#isPremium}}(Priority queue enabled.){{/isPremium}} +``` + +Render the template against each value of the dimension and snapshot every variant. + +## `verify` fails the build on prompt drift + +For every `template.prompt` and `template.output`, the verify step resolves the text, parses +each `{{...}}` reference (Mustache, or a Jinja body in Python and TypeScript) and checks it +exists on the payload. If the text references `{{authorName}}` and the payload only has +`displayName`, the build fails. Run it in CI. + +## A responding `template.prompt` generates parsers + +For every `template.prompt` declaring `@responseRef`, codegen emits a typed parser that turns +a model's reply back into that shape. It binds `@responseRef`, never `@payloadRef`: the +question and the answer are usually different shapes. Each port emits a throw-on-invalid +parse and, where the language has the idiom, a result-style variant that does not throw. A +`template.output` gets no parser. + +**Which parser for a raw model reply.** The strict parse expects the reply to *be* the JSON +document. A chat model's raw reply usually is not: `Sure!` followed by a fenced JSON block +fails it outright. Use the strict parse only when the provider guarantees a bare JSON body +(a structured-output or JSON mode). For a raw reply use the **tolerant extract**: it strips +prose and code fences, repairs what it can, and returns the data with a per-field report +(recovered / defaulted / lost / malformed) where the strict parse would throw. Check the +report's lost-required list, or call `orThrow` on the result in the ports that ship it, when +a lost `@required` field should be an error. The tolerant extract reads the live metadata, so +it takes a loaded root (or loader) as well as the text; its name and signature are in your +port's reference. + +The strict tier is JSON-only. An `@responseFormat: xml` reply gets the tolerant extract and +nothing strict, because all-or-nothing semantics over a repairing XML reader would accept or +reject depending on how much repair happened. + +## A responding `template.prompt` generates the response-format fragment + +For the same templates codegen also emits a `renderFormat(...)`-shaped function: the +"produce your answer like this" fragment you splice into the prompt text so the model returns +the shape the parser expects. `@responseFormat` selects the syntax it teaches, and the +fragment and the extractor agree on the root name. It is generated from the response shape's +field tree, so it cannot fall out of step with that shape the way hand-written instructions +can: regenerate after a change. + +`@promptStyle` controls its presentation: + +| `@promptStyle` | Presentation | +|---|---| +| `guide` (default) | a prose field list ("Fill in each field…") followed by an example skeleton | +| `inline` | a single skeleton whose field values are inline placeholders / enum choices | +| `exampleOnly` | just a filled example skeleton, nothing else | + +A field's `@example` fills its slot in the skeleton. With none, a string or number shows a +`{fieldName}` placeholder and an enum shows its allowed members +(`"urgency": "low | medium | high"`), never one pre-filled member, which a model would copy +into every reply. Guidance is rendered as text, never as code comments, because models +routinely ignore comments. + +The JVM render module (Java, shared by Kotlin) also has `Verify.checkOutputPrompt(fragment, +requiredFieldNames)`, which asserts that a rendered fragment names every required field. Your +language reference says whether this port ships an equivalent. diff --git a/agent-context-shipped/files/eb35a94b8d48d17d.md b/agent-context-shipped/files/dd9b687544dbb709.md similarity index 94% rename from agent-context-shipped/files/eb35a94b8d48d17d.md rename to agent-context-shipped/files/dd9b687544dbb709.md index 527e827b29..c287372f8b 100644 --- a/agent-context-shipped/files/eb35a94b8d48d17d.md +++ b/agent-context-shipped/files/dd9b687544dbb709.md @@ -37,9 +37,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -76,7 +78,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/98558523cbdb9e82.md b/agent-context-shipped/files/df319fdb2b45f4a4.md similarity index 93% rename from agent-context-shipped/files/98558523cbdb9e82.md rename to agent-context-shipped/files/df319fdb2b45f4a4.md index 69de0d93a1..ca704c1303 100644 --- a/agent-context-shipped/files/98558523cbdb9e82.md +++ b/agent-context-shipped/files/df319fdb2b45f4a4.md @@ -31,9 +31,11 @@ truth. Code, schema and migrations are generated from it and are disposable. `agentDocsFile()` / `apiDocsFile()` are wired, read the `agent/*.md` or `api/AGENT-API.md` page for the tier you touch. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -69,7 +71,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/f745f2c1411ab2f0.md b/agent-context-shipped/files/e0879c95ed161b9e.md similarity index 98% rename from agent-context-shipped/files/f745f2c1411ab2f0.md rename to agent-context-shipped/files/e0879c95ed161b9e.md index a81e972a50..b020be919c 100644 --- a/agent-context-shipped/files/f745f2c1411ab2f0.md +++ b/agent-context-shipped/files/e0879c95ed161b9e.md @@ -24,8 +24,8 @@ here.** §5 (*Preserving hand edits*) states MetaObjects ships exactly one hand- no shipped generator on any port emits a generated-base + hand-owned-concrete pair, or a write-if-absent file; §6 names the `skip-existing` merge strategy `runGen` accepts for building that pair yourself, reachable only from a programmatic caller (no CLI flag selects -it); §7 (*Safety*) is the per-port write-decision mechanism behind "What codegen does" step 4 -above. +it); §7 (*Safety*) is the per-port write-decision mechanism behind "What a `gen` run does, +and when it refuses to write" in `SKILL.md`. **A template is not limited to documents.** It emits source as readily as docs — that is what the neutral data dict is for. diff --git a/agent-context-shipped/files/ed5ffcac71d3cf75.md b/agent-context-shipped/files/e3dc1e273494556c.md similarity index 94% rename from agent-context-shipped/files/ed5ffcac71d3cf75.md rename to agent-context-shipped/files/e3dc1e273494556c.md index 7257ff9ed9..bfb1b32b77 100644 --- a/agent-context-shipped/files/ed5ffcac71d3cf75.md +++ b/agent-context-shipped/files/e3dc1e273494556c.md @@ -38,9 +38,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -77,7 +79,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/e4390a15f912c4e6.md b/agent-context-shipped/files/e4390a15f912c4e6.md new file mode 100644 index 0000000000..fd81784828 --- /dev/null +++ b/agent-context-shipped/files/e4390a15f912c4e6.md @@ -0,0 +1,391 @@ +--- +name: metaobjects-codegen +description: Use when you need ANY output derived from the MetaObjects model — write your own generator (Zod, DTOs, a client, docs, anything) or eject a reference one — and when configuring or running code generation: editing the gen config (metaobjects.config.ts) to choose generators, targets or the SQL dialect (e.g. postgres to sqlite), the gen command, and hand-edit-preserving regeneration. +--- + +# MetaObjects code generation + +MetaObjects reads the typed metadata and emits ordinary code in your language: entity types, +tables, query helpers, REST routes, validators, payload types, reply parsers. The metadata is +what lasts; generated code is replaceable. Entity and model code imports nothing from +MetaObjects, and the REST, prompt and client tiers import ordinary Apache-2.0 packages you +can vendor or replace. + +## Essentials + +- **MetaObjects is the core; the generators are yours.** The model, loader, registry, + `verify`, `migrate` and prompt render are what MetaObjects guarantees. The generators it + ships are reference helpers: run one as shipped, copy it with `eject` to change it, or write + your own. A generator in this repo is ordinary source you own, and editing or writing one + needs no permission. A rule against changing MetaObjects itself is about a different + repository. +- **When generated output is wrong, fix what produced it, in this order:** the metadata if + the model is wrong; your generator if the model is right and the emit is wrong; hand-write + only what metadata cannot express. Hand-editing generated files, or hand-writing a layer + the model describes, restates the model somewhere nothing checks. +- **Need an output the model describes? Write a generator now, in this change.** It is about + 20 lines in every port. +- **Nothing is generated until you choose it.** No port has a default generator set; the + project's generator list is the complete list. `meta gen --list --format json --probe` is + the catalog. +- **Do not eject a generator you will not change.** Wire it from its package so upgrades + reach you; an unmodified copy only falls behind. +- **Commit `.metaobjects/.gen-state/.hashes/`.** It is how `gen` tells a file it wrote from + one somebody edited, and it refuses by name to overwrite the second. +- **Read your server language's reference file** for the config file, generator names and + commands: this file is the part every port shares. + +## Reference files — open only the one your task needs + +Your server language's file (`references/typescript.md`, `references/java.md`, +`references/kotlin.md`, `references/csharp.md` or `references/python.md`) has the exact +config, generator names and commands for this project; only the ones for this project's +stack are installed. The other files are topics: open one when its row matches the task. + +| File | Open it when | +|---|---| +| `references/principles.md` | a rule in the always-on file does not settle the case: the full standing principles (adopting onto existing code, the schema and live database, prompts, requirements, owning and writing generators, physical names) with their reasons | +| `references/any-stack.md` | **the database, data store, HTTP framework or UI framework is not one a reference generator targets** — MySQL, MongoDB, DynamoDB, Express, NestJS, Next.js, Vue, … | +| `references/owning-generators.md` | generated output is wrong; your framework is not the one a reference emits for; you write or review a generator (the `own*()` accessor table) | +| `references/choosing-layers.md` | the generated API does not fit, you need joined or derived data, or you are adopting onto existing code | +| `references/template-or-code.md` | choosing between a code generator and a Mustache template | +| `references/physical-names.md` | before you write a table, column or index name as a string | +| `references/wire-format.md` | a generated API's JSON for decimals or null value-object members is not what a client expects, or you are about to edit a JSON converter or annotation | +| `references/dependencies-and-shared-models.md` | the project consumes or publishes metadata across projects | +| `references/typescript-document-store.md` | a TypeScript project on MongoDB, or any store MetaObjects does not manage, wanting a tested repository generator | +| `references/typescript-mysql.md` | a TypeScript project on a MySQL database | +| `references/typescript-prisma.md` | a TypeScript project that keeps Prisma as its ORM | +| `references/typescript-retargeting.md` | a TypeScript project on a framework other than Fastify, Hono or React | +| `references/typescript-templates.md` | declarative Mustache template-codegen in a TypeScript project | +| `references/typescript-docs.md` | the docs generators (`docsFile`, `apiDocsFile`, `agentDocsFile`, `requirementsFile`, `metamodelDocsFile`, `docsSiteFile`) in a TypeScript project | + +## When generated output does not fit + +1. **The metadata**, if the model is wrong: a wrong column type, a missing relationship, a + join that should be a projection. Fixing the model fixes every port at once. +2. **Your own generator**, if the model is right and the emit is wrong: naming, file layout, + imports, framework, signatures. +3. **Hand-write** only what metadata cannot express (business logic, calls to other systems), + in a non-generated file that imports the generated types. + +Hand-writing something the metadata already describes is step 3 used as step 1. Whatever +follows a pattern from the metadata is regenerated, never hand-coded: FK columns, CRUD, +validator chains, type-safe finders, `relations()` blocks. Most views are in that group too: +model one as an `object.projection` and the view DDL is generated +(`references/choosing-layers.md`). A view body origins cannot express (a recursive CTE, a +window function, a set operation) goes in the `source.rdb` `@sql` escape, so the tool still +registers and drift-checks it. + +**Your generators are yours.** The model is scaffold-and-own: a reference generator you eject +is copied into your repo, its header says it is now yours to change, and it carries no +`@generated` header. The mistake to avoid has been seen in practice: an agent told not to +touch upstream drops "edit the generator" from its options and hand-writes the layer. If the +generated shape is wrong, the generator is the file to open. + +**A defect in generated code is a defect in your generator.** When output does not compile, +has the wrong shape or collides with your code, fix the generator that emitted it (or the +runtime file `eject` copied beside it) in the same change. Do not file an issue upstream, pin +an older release or patch a clone of MetaObjects for it. What is upstream is only what you +cannot own: the loader and metamodel, the core runtime, the codegen engine and +`meta migrate`. Per-port steps: `references/owning-generators.md`. + +**Do not hand-edit generated output for a change you want to keep.** Every file a reference +generator emits carries a generated header (`@generated by …` on TypeScript and Python, +`` on C#, `GENERATED` on Java and Kotlin; a generator you write adds one +only if it chooses to). An edit inside one is a second copy of a rule the model owns, and a +diff on a generated file that `gen` did not produce is a smell in review. This is a rule +about emitted output, not about your generators, which are edited like any other source. + +**Wire a generator only for output you will consume.** An emitted file nobody imports reads +as an invitation to adopt a surface you decided against. + +## Need an output? Write the generator + +**When.** You need an output the model fully describes and no reference generator emits, or +none emits it the way this application needs: Zod schemas, DTOs or a client for a framework +nothing here ships, a service layer in the house style, a data dictionary, a search-index +mapping, test fixtures. Write it once it passes the cost test in +`references/owning-generators.md` (smaller than the code it replaces, generator counted; more +instances expected; or drift protection is the point). Hand-written output drifts the day the +model changes and nothing notices, and waiting for MetaObjects to ship it is not needed. + +**How.** A generator is a `name` plus a function from the loaded model to a list of +`{ path, content }` files: + +```ts +import { isAbstract, perEntity, type Generator } from "@metaobjectsdev/codegen-ts"; + +export function fieldListGenerator(): Generator { + return { + name: "field-list", // shows in diagnostics + filter: (obj) => !isAbstract(obj), // TypeScript's own seam; ctx.entities has EVERY object, abstract ones too + generate: perEntity((obj) => ({ // perPackage / perModel for other scopes + path: `field-list/${obj.name}.txt`, // relative to outDir + content: obj.fields() // fields() includes inherited fields + .map((f) => `${f.name}: ${f.subType}${f.resolvedIsArray() ? "[]" : ""}${f.isRequired ? "" : "?"}`) + .join("\n") + "\n", + })), + }; +} +``` + +**Start from the scaffold (TypeScript):** `meta generator new [--scope +entity|package|model]` writes a working, commented generator into `codegen/generators/` and +wires it into `metaobjects.config.ts`. `meta gen` runs it straight away. + +**Register it**, the one step per port: + +| Port | Registration | Model helpers | +|---|---|---| +| TypeScript | import it in `metaobjects.config.ts`, add it to `generators: [...]` (the scaffold does both) | `@metaobjectsdev/codegen-ts`: `objectRefTarget`, `enumValues`, `effectivePackage`, `packageToPath`, `servedPath`, `toCamelCase`/`toPascalCase`/`toSnakeCase`/`pluralize`, `isAbstract`, `hasAnyRdbSource`, `servesReadApi`/`servesWriteApi` | +| Python | a `module:symbol` entry in a target's `generators` in `metaobjects.config.yaml`; the symbol is an instance or a function returning one, never the class | `metaobjects.codegen.model_walk` | +| C# | `new Codegen.Generators.YourGenerator()` in `codegen/Generators.cs` (`dotnet meta init` writes it); `dotnet meta gen` / `verify --codegen` run that list | node accessors, `ValueObjectNames.ResolveFieldRef`, `CSharpNaming.RoutePath` | +| Java / Kotlin | `` plus ``, from a module on the plugin's classpath; extend `FileEmittingGenerator` | `com.metaobjects.generator.ModelWalk` | + +**Verify it.** Nothing to register: `verify --codegen` (`mvn metaobjects:verify` on the JVM) +re-runs the same generator list and fails when committed output is stale. Typecheck a +TypeScript generator with `npx tsc -p tsconfig.codegen.json`, because `meta gen` loads it +without typechecking and a wrong accessor runs silently. + +**Read the model correctly.** These are what make a generator right: + +- **Which objects.** The runner hands you every object: entities, value objects, projections + and abstract bases. Filter, because an abstract base only contributes fields to what + `extends` it. To scope a shipped generator to some objects use the port's own idiom (a + TypeScript `filter`, a C# `Include`, a Python `filter=` argument; the table is in + `references/owning-generators.md`), not emit-everything-then-delete. +- **Resolving accessors.** `fields()`, `attr()`, `isRequired` and `resolvedIsArray()` see what + a field or object inherits through `extends`; the `own*()` forms and the raw `isArray` flag + do not, so the output is silently wrong on any model that uses inheritance. In Python + `attr()` is the own read: use `model_walk` or `attrs().get()`. On the JVM `getName()` is the + fully-qualified name: use `ModelWalk.name`. Full table: `references/owning-generators.md`. +- **Names by the engine's rules.** An `@objectRef` resolves package-locally through the + port's helper (`objectRefTarget` and its equivalents), never by matching a short name. A + REST address is `servedPath` / `route_path` / `RoutePath` / + `ModelWalk.collectionSegment`, the same rule the reference routes use. +- **Any format, deterministic.** `content` is written as given; no port formats it or adds a + header. The same model must give the same bytes, or verify reports drift. + +Every port's minimal generator and two worked examples to copy (JSON Schema and OpenAPI 3.1) +are in "Write your own generator": +. +For those two documents themselves, the stock `contract-schema` and `openapi` generators emit +them from 1.2.1, run through the Node `meta` CLI on any port: +. + +## Selecting generators + +`meta init` wires no generators. A fresh TypeScript scaffold has `generators: []` and an empty +`codegen/generators/`; a fresh C# scaffold (`dotnet meta init`) has an empty +`codegen/Generators.cs`; Java and Python have never had a default set. In every port the +project's own list (`generators` in `metaobjects.config.ts`, `codegen/Generators.cs`, a +target's `generators` in `metaobjects.config.yaml`, or `` in the pom) is the +complete list, documentation included. `--generators` (Maven: a second ``) only +narrows a run to entries already in it. So a `gen` that writes nothing on a fresh project is +not broken. Each generator has a stable kebab-case name, the same in every port. + +Choosing what an application needs is a judgment over its purpose and stack. The catalog +makes that choice cheap: + +1. **`meta gen --list --format json --probe`.** Every generator with its `layer`, + `framework`, what it emits, what it requires and what it costs to install. `--probe` + constructs each generator and dry-runs it against your model, so `wouldEmit` is how many + files it would write here. +2. **Check the libraries first.** The catalog also carries `kind: "library"` rows: declared + design MetaObjects ships, each with a `useWhen`. If one matches a capability you are about + to model, opt in and adapt it: you inherit its entities, its requirements and the rulings + recorded with them. The bare name is the core layer, which is sourceless and so adds no + tables and no generated code; `/db` is the separate opt-in that proposes the schema. + Opt in with `"libraries": ["iam", "iam/db"]` in `.metaobjects/config.json`. A library row + carries `provides` and, under `--probe`, a `project` block: the layers selected, the tables + and requirements they added, which of your entities `extends` into it, and any generator it + implies that is not wired. +3. **Choose by `layer`.** Satisfy every `requires`, and take what `wouldEmit > 0` says your + model is already asking for. + - Pick **one** framework on the `api` layer: `routes` and `routes-hono` are alternatives, + and wiring both silently produces two complete HTTP surfaces. + - That rule does not apply to `client`. `@metaobjectsdev/tanstack` peers on `react`, so a + form generator plus the TanStack hook and grid generators is the intended composition. +4. **Wire what you chose.** A generator you run unchanged is wired from its package: on + TypeScript each catalog row carries `wire.import`, `install` and `configKeys`; on the + other ports you select it by its stable name. Nothing is copied. For a generator whose + output you need to change, `meta eject --format json` copies each into + `codegen/generators/` and reports the import line, the entry to add to `generators`, one + install command and the config keys it reads. On TypeScript a generator whose output + calls an HTTP adapter (`routes`, `routes-hono`, `entity`) also gets that adapter's source + in `codegen/runtime/`, listed under `runtime` in the JSON. +5. **`meta gen`**, read its warnings, then typecheck. + +| layer | what it is | chosen by | +|---|---|---| +| `model` | entity/DTO/value-object modules and the constants beside them | app shape | +| `persistence` | how rows are read and written | app shape | +| `service` | one module per package that runs each operation in a transaction with the write rules (ADR-0067); its transport is on `api` | app shape | +| `api` | the HTTP surface — pick one framework | app shape | +| `client` | the browser tier | app shape | +| `docs` | model pages, api reference, agent pages, requirement ledger — each its own generator entry, like any other | app shape | +| `capability` | prompts, parsers, payloads, traces, test stubs | **`--probe`** | + +A headless data service is `model` + `persistence`; an HTTP API adds `api` with one +framework; an admin UI adds `client`. Take the members from the live catalog, not from a +list in prose, which goes stale when a generator is added. You do not choose inside +`capability` by reading labels: you declared a `template.prompt`, a `requirement.functional` +or a stored-proc source, and `--probe` reports the file count that follows. + +An abstract entity never emits instance or write artifacts, whatever is wired. A +dependency's metadata is load-only by default: codegen excludes nodes from a package a +dependency owns unless `scope.include` names that package +(`references/dependencies-and-shared-models.md`, which also covers publishing with +`sharedModelFile()`). + +## You don't have to generate everything + +Codegen is à la carte. When the app's API does not match generated CRUD, generate the data +layer and hand-write only the routes, calling the generated queries; do not abandon codegen +for the data access too. An entity's own columns plus a joined extra is an entity read-view, +not a projection; derived or aggregate data is a projection whose generated query you call. +Details and the adoption rules: `references/choosing-layers.md`. + +## What a `gen` run does, and when it refuses to write + +The runner loads the metadata from wherever the project's configuration points (`sources` in +`.metaobjects/config.json` for TypeScript, and for C# when gen names no ``; +`metadata` in `metaobjects.config.yaml` for Python; the plugin's `` for +Java and Kotlin; `metaobjects/` is only the default), resolves output targets, and runs each +configured generator. Most emit one file per entity; some emit one shared file (a barrel, a +DB context). + +**Whether it may overwrite a file is decided by the committed hash manifest** +(`.metaobjects/.gen-state/.hashes/`), on every port. A file that still hashes to what the +generator recorded writing is safe to overwrite. A file that was edited, or that the +manifest has no record of, is refused by name. TypeScript also three-way merges against a +snapshot when one is present locally. Editing the content is what takes ownership of a file, +because that is what changes the hash; the header is not the write decision, and deleting it +is just another edit. (Java and Kotlin before 8.1.0 worked the other way round: an edit was +overwritten and only removing the `GENERATED` token protected a file. That no longer holds. +On those ports a file with no record that carries the bare `GENERATED` token is adopted as +generated output, which is how the first run after upgrading records everything.) + +- **A refusal fails the run**: exit 1 on TypeScript, C# and Python. On Java and Kotlin a + refusal is a warning and `mvn metaobjects:verify` is the gate that fails. +- **A project that predates the committed manifest** runs `gen --baseline=adopt` once: it + records the files you have as the baseline and writes nothing, so there is a `.hashes/` to + commit. Then `gen` again, and the regeneration lands as its own diff. Adopting declares + those files generated output, so an edit already inside one is replaced by that + regeneration: commit before you run it. (TypeScript also has `--baseline=fresh`: write + fresh output now and discard the edits.) +- **Output nobody should edit: `handEdits: overwrite` on its generator entry.** The default, + `keep`, refuses an edited file. `overwrite` replaces it with fresh output, names it and + re-baselines it, and `verify --codegen` reports the edit as drift that `gen` fixes. A file + the manifest has no record of is refused either way. TypeScript + `{ ...entityFile(), handEdits: "overwrite" }`; Python `{ name: entity, handEdits: overwrite }` + in `metaobjects.config.yaml`; C# `new EntityGenerator().WithHandEdits(HandEdits.Overwrite)`; + Java and Kotlin `overwrite` on the ``. +- **A full `gen` deletes generated files it no longer emits** (a renamed or deleted object): + only files the manifest records, only when untouched, and never on a run narrowed by + `--generators` or an entity filter. An edited one is refused by name and + `verify --codegen` says to delete it. Regeneration cannot follow a rename, so move the + edits into the new file first if you want them. +- **`gen` skips a run when nothing changed.** Every port computes a key from the loaded model + and everything the generators are built from; when it matches the last successful run and + every generated file still holds the bytes that run left, `gen` says so and writes + nothing. `--force` (Maven: `-Dmetaobjects.force=true`) renders anyway, and + `verify --codegen --full` renders and compares in a local run. A generator that reads + something the key does not cover declares it as an input or sets `cache: false`. + +The binary differs per server language (the Node `meta`, a language-native console tool, or +a build-plugin goal). A dry-run mode previews without writing, a watch mode re-runs on +metadata changes where supported, and entity names scope a run to those entities. + +## Two ways to author a generator + +A generator is **programmatic** (code that builds the output) or **declarative** (a Mustache +template plus a `scope` and an `outputPattern`). Both ship in every port. Use code when the +logic is involved; use a template when the shape is what you are iterating on, or you want +one output across languages. The per-port wiring is in `references/template-or-code.md`. +Whether a base/extension split or a write-if-absent file exists is answered in +`docs/features/codegen-concepts.md` §5-§7: MetaObjects ships one hand-edit strategy, and no +shipped generator emits either. + +## Never hand-write a physical name + +A table, column, schema or index name is declared in metadata. Every port can emit a +per-object names artifact (`.names.ts`, `Names.java`, …), but only when you +wire the `names` generator, since no port generates it by default. Reference its constants +from raw SQL, migration scripts and external mappings; prefer the ORM's typed column handle +where one exists. Details: `references/physical-names.md`. + +## The JSON your API writes is a project setting + +Each port writes what its language's standard serializer writes: a C# decimal is a JSON +number, a Python one `str(Decimal)`. Identical output across ports is opt-in, through `wire` +in `.metaobjects/config.json` (`"decimals": "string"`, `"nullMembers": "omit"` or `"emit"`). +Do not change one port to match another or to match a conformance corpus, and do not +hand-edit a generated converter or annotation: change the setting and regenerate. Input +rules hold in every mode. Details and the per-port table: `references/wire-format.md`. + +## Dialects + +Generated schema targets a SQL dialect, set once in the project's codegen config: + +- `postgres`: the default, fullest-featured. +- `sqlite`: supported; rejects non-default DB schemas. +- `d1` (Cloudflare D1): TypeScript only. It is SQLite at the SQL level. +- `mysql`: TypeScript codegen and runtime only. `meta migrate` does not own a MySQL schema + and refuses `--dialect mysql`; you keep the DDL yourself. + +Field subtypes map to the dialect's column types deterministically (`field.string` + +`@maxLength` → `varchar(N)`, `field.currency` → integer, `field.uuid` → native `uuid` on +Postgres, `field.enum` → `varchar` + `CHECK`). Codegen maps the shapes you authored, so when +a generator emits the wrong column type the fix is the field shape, not a template hack: the +`metaobjects-authoring` skill's `references/choosing-a-shape.md` has the decision procedure +(an array is `isArray: true`, never an array column type; a native UUID is `field.uuid`, not +a string plus `@dbColumnType`). The same procedure decides whether custom vocabulary for a +custom generator is a subtype, a `@kind` variant or an attribute. That vocabulary is a +provider class listed once in the port's project configuration, so `gen`, `verify --codegen` +and the docs generators all load it (`metaobjects-authoring`, "Your own vocabulary"); a +generator reads the custom attribute through the resolving accessor like any other. + +## Per-target output + +Generated code can be routed to several output directories or packages so each artifact +lands with its runtime concern: the entity model in a database package, routes in the API +app, client hooks, forms and grids in the web app. Each generator declares which named +target it writes to; same-target references stay relative and cross-target references go +through the target's configured import base. With no targets configured everything lands in +one output directory. Use several targets only when the project's package boundaries +justify it. + +**C#: one resolver names every property.** To spell a field's C# property differently (an +acronym, say), set `GenConfig.PropertyNaming` (`Func`). The entity +classes, the `AppDbContext`, the reverse finders, the routes, the filter map and the +credential stripping all read it, so they agree. A subclass hook +(`EntityGenerator.PropertyName`, `DbContextGenerator.PropertyName`) that disagrees with the +resolver is refused. + +## Upgrading a project from 1.0 to 1.1 + +Read the upgrade guide, +https://github.com/metaobjectsdev/metaobjects/blob/main/docs/features/migrations/upgrading-1.0-to-1.1.md, +before the first `gen`, for every port the project uses: the build can stay green while the +result is wrong. It lists the steps in order and every change that needs action. + +- Default column and table names are `snake_case` in every port (C#, Java, Kotlin's runtime + and Python used to default to the field names). A database whose columns are named like + its fields needs `"naming": { "columns": "literal" }` in `.metaobjects/config.json`, or + regenerated code queries columns that do not exist. The per-port naming flags and + generator args are removed. +- Documentation is a generator in the project's list, and the docs commands are removed. C# + and Python also need a generator list (`dotnet meta init`; `metaobjects.config.yaml`). +- Upgrade to 1.1.2 or later. With no `wire` setting, each port writes its language's + standard JSON (C#, Java and Kotlin keep their 1.0.x decimals and null members). A project + whose clients expect 1.1.0's canonical decimal strings declares `"wire": { "decimals": + "string", "nullMembers": "omit" }`; see `references/wire-format.md`. A fractional + validator `@min` or `@max` is refused (write an integer bound). +- **Resync the generators you own.** An ejected copy keeps the logic it was copied with, and + a plain `gen` does not refresh it. `meta eject --list` (TypeScript; + `metaobjects gen --list` in Python, which has no `eject --list`; `dotnet meta gen --list`; + `mvn metaobjects:eject -Dlist=true` in Java and Kotlin) reports each copy that differs + from the reference. `eject --force` takes the new reference for a copy you never + edited; a copy you edited is three-way merged. Steps for 1.0.x: + https://github.com/metaobjectsdev/metaobjects/blob/main/docs/features/migrations/upgrading-within-1.0.md. diff --git a/agent-context-shipped/files/e722c0b063087726.md b/agent-context-shipped/files/e722c0b063087726.md new file mode 100644 index 0000000000..6e193d8f1e --- /dev/null +++ b/agent-context-shipped/files/e722c0b063087726.md @@ -0,0 +1,196 @@ +--- +name: metaobjects-runtime-ui +description: Use when wiring MetaObjects generated code into an app — calling or serving the generated REST API (collection URLs, filters, sort, pagination, wire format), runtime queries and CRUD, and the web client (fetcher and base URL, forms, grids). +--- + +# Wiring MetaObjects runtime + web client + +How generated code is put to work: querying and persisting through the runtime tier, serving +the REST contract, and consuming it from the web client. The contracts here hold in every port; +the imports and types for this project's stack are in the reference files. + +## Essentials + +- **Read your stack's reference file before wiring anything.** This file has the contracts; + the names you type (imports, generated symbols, generator names) are per language. +- **Generated finders and CRUD helpers take the persistence context as a parameter.** They + never import a module-level `db`, so you own the connection and pass it in. +- **A table or column name comes from the generated names artifact, never a string literal.** + `@column` is free-form, so a name guessed from the field is wrong silently. The artifact is + opt-in: check it exists first. +- **A collection URL is the entity NAME `snake_case`d, then pluralized** (`PostCategory` → + `/post_categories`), never the physical table. +- **Currency is integer minor units on the wire.** Format it in the client; never do float + arithmetic on it. +- **The client's base URL is `baseUrl` on the fetcher provider, not the server's `apiPrefix`.** + Omit it and every generated hook drops the prefix while compiling clean. +- **Grids are opt-in per entity** (`layout.dataGrid`). No grid files for an entity without one + is expected, not a broken build. + +## Reference files — open the ones for your stack + +Only the files for the servers and clients in this project's stack are installed. + +| File | Open it when | +|---|---| +| `references/typescript.md`, `references/java.md`, `references/kotlin.md`, `references/csharp.md`, `references/python.md` | the project's server language is that one: the runtime and REST specifics | +| `references/react.md` | the web client is React | +| `references/tanstack.md` | the web client uses TanStack Query or Table (grids, hooks, filters) | + +## The runtime returns native types + +A port's runtime returns the language's own in-process types, never wire strings: + +- `field.decimal` → the exact-decimal type (`BigDecimal` / `decimal` / `Decimal`), lossless end + to end. **TypeScript is the exception: `field.decimal` is a `string`**, because JS has no + exact decimal. +- temporal fields → native date and instant types. +- `field.object` (jsonb) → a native map or object. + +Wire encoding (integer minor units, ISO-8601 strings, canonical UUID hex) is applied only where +a row leaves over HTTP. Compute with native types in-process and let the HTTP layer encode. + +## The persistence context is a parameter + +``` +const rows = await findPostsForAuthor(db, authorId); // db is passed, not imported +``` + +That keeps generated code free of global state, testable, and able to talk to more than one +database (tenants, a read replica). Build the context in your app and thread it through every +generated call. + +## Physical names come from the names artifact + +The runtime tier is where you write the code codegen leaves to you (a repository, a raw query, +a migration script), and that is where a table or column name gets respelled. A physical name +is declared once, in metadata (`@table` / `@view` / `@column` / `@schema`), and every port can +emit it per object: `ProgramNames.fields.createdAt.column` on TypeScript, +`ProgramNames.CreatedAtColumn` on C#, `ProgramNames.CREATED_AT_COLUMN` on the JVM, +`PROGRAM_CREATED_AT_COLUMN` on Python. Reference that. A literal is a second spelling of a fact +the metadata owns: rename the column in metadata and the constant follows, the literal does +not, and nothing reports it. `callPurpose` may well live in `purpose_code`. + +**Prefer a typed handle where one exists.** A Drizzle column object, an Exposed `Column` or an +EF Core property is checked against the schema at compile time; a string constant is not. The +constants are for the places with no handle: raw SQL, a string-keyed query builder, and a +hand-written repository on a port whose generated model has no persistence binding (Java, +Python). Your server reference names both for this stack. + +**Check the artifact exists first.** No port generates it by default: every port's generator +list is the complete list, and upgrading never edits a config written earlier. Look for +`.names.ts` / `Names` in the generated output. If it is missing, wiring the +`names` generator is the first step (the `metaobjects-codegen` skill says how), not writing the +literal because there is no constant. + +## The REST contract + +Generated routes, and hand-written ones that want the same clients, speak one HTTP contract in +every port, so one web client serves any backend language. + +### URLs + +`apiPrefix` in the project config is where the server mounts the routes. The collection segment +is the entity name `snake_case`d and then pluralized, derived from the name and never from +`@table`: + +| Name | Segment | Rule | +|---|---|---| +| `Author` | `authors` | a single regular word takes `s` | +| `PostCategory` | `post_categories` | multi-word: the capitals carry the word boundary | +| `Address` | `addresses` | ending `s`/`x`/`z`/`ch`/`sh` takes `es` | +| `Category` | `categories` | consonant + `y` becomes `ies` | +| `Day` | `days` | a vowel before the `y` does not | +| `HTTPServer` | `http_servers` | a run of capitals stays together until the last one that begins a word | + +An `object.projection` and a view-backed `object.report` use the same rule (`OrderSummary` is +`/order_summaries`). A report has a list route only and, in TypeScript, a list hook named `use` ++ the plural of its name (`useMemberUtilizations`; `useList` when the plural is the +name itself); it has no grid, form or detail hook. Before 1.0 the ports spelled multi-word and +irregular names differently (`/order-summaries`, `/ordersummaries`, `/ordersummarys`); those +spellings now 404, so a client written against one has to follow. + +| Verb | Path | Purpose | +|---|---|---| +| `GET` | `//?filter[...][...]=...&sort=...&limit=N&offset=N&withCount=1` | List | +| `GET` | `///:id` | Get by id | +| `POST` | `//` | Create (201) | +| `PATCH` | `///:id` | Partial update | +| `PUT` | `///:id` | The same partial update as `PATCH`, not a replace | +| `DELETE` | `///:id` | Delete (204) | + +### Filters, by field subtype + +`filter[][]=`; a bare `filter[]=` means `eq`. The generated +`FilterAllowlist` gates the operators by subtype, and an operator a field does not +support is HTTP 400. + +| Operator | Strings | Numbers / Dates | Booleans | +|---|---|---|---| +| `eq`, `ne`, `isNull` | yes | yes | `eq` + `isNull` only | +| `in`, `like` | yes | `in` only | – | +| `gt`, `gte`, `lt`, `lte` | – | yes | – | + +These nine are the whole set, in every port. `like` is case-sensitive SQL `LIKE`: the caller +supplies `%` and `_`. + +### Sort and pagination + +- `sort=:asc|desc`: one sort key, which must be in `SortAllowlist`. +- `limit=N` / `offset=N`. +- `withCount=1` changes the list body from `[...]` to `{ rows: [...], total: N }` (grids + always send it). + +### Wire format + +JSON bodies. A single-row response (`GET /:id`, `POST`, `PATCH`, `PUT`) has no envelope: the +body is the row. + +| Field type | JSON | Notes | +|---|---|---| +| `field.string` / `field.uuid` / `field.enum` | string | UUID is canonical hex `8-4-4-4-12` | +| `field.int` / `field.long` / `field.double` | number | `long` may be a string on overflow (per port) | +| `field.boolean` | boolean | | +| `field.date` | string | ISO 8601 `YYYY-MM-DD` | +| `field.timestamp` | string | ISO 8601 with timezone | +| `field.currency` | **integer minor units** | cents, yen; the server never formats it | +| `field.object` | object | per the value object's schema | + +Errors are `{ "error": "", "message"?: "..." }`: 400 for a validation or filter +error, 404 `not_found`, 409 for a unique or foreign-key conflict. Treat a 4xx as user-facing +and a 5xx as retryable. + +## The web client: one fetcher, one base URL + +The client never calls `fetch` directly. Every generated hook delegates to one `EntityFetcher` +you supply at the app root: + +```ts +export type EntityFetcher = (path: string, init?: RequestInit) => Promise; +``` + +```tsx + +``` + +Generated hooks pass an entity-relative path (`/customers`) and the provider prepends +`baseUrl`. The base URL is a deployment fact (a separate API host, a dev proxy, a preview +environment), which is why it is supplied at runtime and not generated from the server's +`apiPrefix`. It defaults to `""`, which is right only when the server mounts at the root. +Your fetcher attaches auth, parses the JSON, and **throws on a non-2xx response**: the hooks +rely on the throw for their error state. Grids, forms, the filter serializer and the cell +renderers all sit on this one seam. + +## Grids are opt-in per entity + +Read and CRUD hooks are generated for every entity. Grid artifacts are generated only for an +entity that declares a `layout.dataGrid` child, and `meta gen` says so in its warnings: + +```jsonc +{ "layout.dataGrid": { "name": "default", "@columns": ["name", "email"] } } +``` + +A generated grid component is fully controlled: it needs row-count, sort, pagination and +filter state on top of the column definitions. Pair the columns generator with the grid-hook +generator, which emits that state plumbing. Your client's reference has the generator names +and a rendered example. diff --git a/agent-context-shipped/files/10563ac017ebf8fb.md b/agent-context-shipped/files/e765bfe0daa19f5c.md similarity index 93% rename from agent-context-shipped/files/10563ac017ebf8fb.md rename to agent-context-shipped/files/e765bfe0daa19f5c.md index bb4ba49c80..c13e50137c 100644 --- a/agent-context-shipped/files/10563ac017ebf8fb.md +++ b/agent-context-shipped/files/e765bfe0daa19f5c.md @@ -29,9 +29,11 @@ truth. Code, schema and migrations are generated from it and are disposable. 2. **Generate.** `metaobjects gen`. `metaobjects eject ` copies a generator into the repo to change what it emits. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -67,7 +69,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/ef48b6a7a5e0f4f5.md b/agent-context-shipped/files/ef48b6a7a5e0f4f5.md new file mode 100644 index 0000000000..70cf00f719 --- /dev/null +++ b/agent-context-shipped/files/ef48b6a7a5e0f4f5.md @@ -0,0 +1,89 @@ +# Working with MetaObjects in this project + +> Stack: java server, react, tanstack client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Java: generate with `mvn metaobjects:generate` + +1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator + list, one `` each, under `` pointing at the metadata. + Nothing is generated until it is listed; the build names any generator a listed one needs. + Which classes to list (the Spring REST tier, requirement tests, API docs) is in the + `metaobjects-codegen` skill's `references/java.md`. +2. **Generate.** `mvn metaobjects:generate`. `mvn metaobjects:eject -Dnames= -Dport=java` + copies a generator to change what it emits. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `mvn metaobjects:verify` (the generated code and the requirements). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/d8bac77e560c9b70.md b/agent-context-shipped/files/f22712e99c347b84.md similarity index 94% rename from agent-context-shipped/files/d8bac77e560c9b70.md rename to agent-context-shipped/files/f22712e99c347b84.md index 9e6769cdf1..9e0997bb84 100644 --- a/agent-context-shipped/files/d8bac77e560c9b70.md +++ b/agent-context-shipped/files/f22712e99c347b84.md @@ -39,9 +39,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -78,7 +80,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/8bc54bbb493091cd.md b/agent-context-shipped/files/f48a88c503d4e3c8.md similarity index 94% rename from agent-context-shipped/files/8bc54bbb493091cd.md rename to agent-context-shipped/files/f48a88c503d4e3c8.md index d9ca62e4c1..cd0e9c6a67 100644 --- a/agent-context-shipped/files/8bc54bbb493091cd.md +++ b/agent-context-shipped/files/f48a88c503d4e3c8.md @@ -35,9 +35,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -74,7 +76,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/1d4442064bb430d5.md b/agent-context-shipped/files/f6d3e2f9f6d3c9d4.md similarity index 94% rename from agent-context-shipped/files/1d4442064bb430d5.md rename to agent-context-shipped/files/f6d3e2f9f6d3c9d4.md index 7823446531..37297a0071 100644 --- a/agent-context-shipped/files/1d4442064bb430d5.md +++ b/agent-context-shipped/files/f6d3e2f9f6d3c9d4.md @@ -29,9 +29,11 @@ from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` `baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every hook without an error. The `metaobjects-runtime-ui` skill has the detail. -### Schema (every stack: the Node `meta` CLI owns it, so Java, Kotlin, C#, Python and Rust projects need Node too) +### Schema, with the reference migration helper (`meta migrate`, in the Node `meta` CLI) -Never hand-write DDL, and never `ALTER` a live database by hand. +`meta migrate` is one option: a project may migrate with its own language's tool instead, handed +the schema `npx meta schema` prints. Either way, never hand-write DDL, and never `ALTER` a live +database by hand. - First migration (needs a reachable, empty database): `npx meta migrate --from-db --db --dialect --slug init` writes @@ -68,7 +70,7 @@ When the project serves the generated routes (any port): fields filter. - `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with - none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400. + none set C# returns every row, the other ports 50; above `maxLimit` is 400. - `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is 400 `unknown_fields` (unless `api.unknownFields` is `drop`). - Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for diff --git a/agent-context-shipped/files/f737f1c77bcc1a63.md b/agent-context-shipped/files/f737f1c77bcc1a63.md new file mode 100644 index 0000000000..e2c106a8bb --- /dev/null +++ b/agent-context-shipped/files/f737f1c77bcc1a63.md @@ -0,0 +1,89 @@ +# Working with MetaObjects in this project + +> Stack: kotlin server, react, tanstack client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Kotlin: generate with `mvn metaobjects:generate` + +1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator + list, one `` each. Nothing is generated until it is listed. Which + classes to list (the Exposed and Spring tier, requirement tests, API docs) is in the + `metaobjects-codegen` skill's `references/kotlin.md`. +2. **Generate.** `mvn metaobjects:generate`. `mvn metaobjects:eject -Dnames= -Dport=kotlin` + copies a generator to change what it emits. Several Kotlin generators truncate their output + on every run, so never put your own code in a generated file. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `mvn metaobjects:verify` (the generated code and the requirements). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/f91f6ac4022e70c6.md b/agent-context-shipped/files/f91f6ac4022e70c6.md new file mode 100644 index 0000000000..b2011f27a5 --- /dev/null +++ b/agent-context-shipped/files/f91f6ac4022e70c6.md @@ -0,0 +1,99 @@ +# Working with MetaObjects in this project + +> Stack: typescript server, react client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### TypeScript: generate with `npx meta gen` + +1. **Config.** In `metaobjects.config.ts` set `dialect` (`"postgres" | "sqlite" | "mysql"`; D1 is + `"sqlite"`) and list the generators. Nothing is generated until it is listed. The usual data + layer: + + ```ts + import { entityFile, namesFile, barrel } from "@metaobjectsdev/codegen-ts/generators"; + // generators: [entityFile(), namesFile(), barrel()] + ``` + + Per entity: `.ts` (Drizzle table, row types, Zod schemas, enum types) and + `.names.ts` (physical names), plus an `index.ts` barrel. Install what they import: + `npm i drizzle-orm zod` and your database driver. Every other generator (CRUD `queriesFile()` + / `routesFile()`, docs, `requirementTests()`) is one line too; `npx meta gen --list` is the + catalog. `npx meta eject ` copies one into `codegen/generators/` to change it; + `npx meta generator new ` writes a new one. +2. **Generate.** `npx meta gen`. See a file's exports with `grep -n "^export" `. When + `agentDocsFile()` / `apiDocsFile()` are wired, read the `agent/*.md` or `api/AGENT-API.md` + page for the tier you touch. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `npx meta verify --codegen` (the generated code and docs pages; the requirement gate runs on every `meta verify`). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/files/fb1013a9465df54e.md b/agent-context-shipped/files/fb1013a9465df54e.md new file mode 100644 index 0000000000..faa6d2eb70 --- /dev/null +++ b/agent-context-shipped/files/fb1013a9465df54e.md @@ -0,0 +1,99 @@ +# Working with MetaObjects in this project + +> Stack: java, kotlin server, react, tanstack client. +> +> Generated by MetaObjects (refresh: `meta init --refresh-docs`). Put project notes in your +> root `AGENTS.md` or `CLAUDE.md`, not here: this file is regenerated. + +The metadata (`metaobjects/` unless `.metaobjects/config.json` says otherwise) is the source of +truth. Code, schema and migrations are generated from it and are disposable. + +## Start here: the whole loop, in order + +### Java: generate with `mvn metaobjects:generate` + +1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator + list, one `` each, under `` pointing at the metadata. + Nothing is generated until it is listed; the build names any generator a listed one needs. + Which classes to list (the Spring REST tier, requirement tests, API docs) is in the + `metaobjects-codegen` skill's `references/java.md`. +2. **Generate.** `mvn metaobjects:generate`. `mvn metaobjects:eject -Dnames= -Dport=java` + copies a generator to change what it emits. + +### Kotlin: generate with `mvn metaobjects:generate` + +1. **Config.** The `metaobjects-maven-plugin`'s `` in `pom.xml` is the generator + list, one `` each. Nothing is generated until it is listed. Which + classes to list (the Exposed and Spring tier, requirement tests, API docs) is in the + `metaobjects-codegen` skill's `references/kotlin.md`. +2. **Generate.** `mvn metaobjects:generate`. `mvn metaobjects:eject -Dnames= -Dport=kotlin` + copies a generator to change what it emits. Several Kotlin generators truncate their output + on every run, so never put your own code in a generated file. + +### Web client: generated by the Node `npx meta gen` + +The client tiers are generators in `metaobjects.config.ts`, whatever the backend: `formFile()` +from `@metaobjectsdev/codegen-ts-react`, `tanstackQuery()` and `tanstackGrid()` from +`@metaobjectsdev/codegen-ts-tanstack`, with the runtime packages `@metaobjectsdev/react` and +`@metaobjectsdev/tanstack`. Wrap the app in ``: +`baseUrl` is where the server mounts its routes, and leaving it out drops that prefix from every +hook without an error. The `metaobjects-runtime-ui` skill has the detail. + +### Requirements, when the metadata declares `requirement.*` nodes + +A commit that changes behaviour updates them in the same commit: `@status: live` once a claim +is built (never before), a new node for new behaviour. + +### Before you call it done + +- `mvn metaobjects:verify` (the generated code and the requirements). +- `npx meta verify --codegen` (the generated web client). + +Commit the metadata, the generated code and `.metaobjects/.gen-state/.hashes/`. + +## Calling the generated REST API + +When the project serves the generated routes (any port): + +- Filter as `?filter[][]=`: `?filter[status][eq]=active`, never + `?status=active` (TypeScript refuses that with 400; the other ports ignore it). Operators: `eq`, `ne`, `isNull` (`true`/`false`), `in` (comma list, at most 100), `like` + (case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable` + fields filter. +- `?sort=:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`. + Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with + none set C# returns every row, the other ports 50; above `maxLimit` is 400. +- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is + 400 `unknown_fields` (unless `api.unknownFields` is `drop`). +- Errors are `{"error": ""}`: 400 for validation (`issues` lists each problem) and for + a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming + `field`), 404 `not_found`, 409 for a unique or foreign-key conflict. + +## Rules + +- What the metadata describes is generated, never hand-written (tables, types, validators, + foreign keys, schema, migrations). Hand-write only what it cannot describe, on top. +- Never hand-edit generated output: change the metadata and regenerate. Output wrong for you, or + broken? Fix the generator: eject it and it is yours, no permission needed, nothing to wait on. +- Never spell a table or column name as a string; use the generated table or names constants. +- Wire a generator only for output you will import. +- An LLM prompt in a project that declares `template.prompt` is a declared template + (`metaobjects-prompts`); a grouped total or report view is an `object.report` + (`metaobjects-authoring`). Open the skill before writing either by hand. +- Never invent metadata vocabulary. Search it: `npx meta types `, and + `npx meta types . --detail` for one construct's valid attributes. +- Metadata nodes are fused-key maps, `{"field.string": {"name": "email"}}`. Attribute names are + unique within a node, and package paths use `::`. + +## Going deeper + +The loop above needs no skill. For less common work load a `metaobjects-*` skill by name, or open +`.claude/skills//SKILL.md` if your assistant does not load skills: `metaobjects-authoring` +(unusual shapes, reports, adopting existing code), `metaobjects-codegen` (owning or writing a +generator), `metaobjects-runtime-ui` (REST routes, the web client), `metaobjects-prompts` (LLM +prompts), `metaobjects-verify` (migration edge cases, drift, upgrades), `metaobjects-audit` (an +adoption review). Each names the one reference page to open. + +`meta init --refresh-docs` regenerates this file and the skills, so keep project guidance in +the root `AGENTS.md` or `CLAUDE.md` (or copy a skill to a new name). A refresh never overwrites a +file you edited; it writes `.new` beside it, which you merge into `` and delete. +Never `--force` a refresh over local edits. diff --git a/agent-context-shipped/manifest.json b/agent-context-shipped/manifest.json index f4b44e8178..6b6f993c7e 100644 --- a/agent-context-shipped/manifest.json +++ b/agent-context-shipped/manifest.json @@ -1,5 +1,5 @@ { - "schema": 1, + "schema": 2, "docsRef": "main", "docsLinkPrefix": "https://github.com/metaobjectsdev/metaobjects/blob/", "skillsDir": ".claude/skills", @@ -10,10 +10,11 @@ "typescript" ], "clients": [], + "migration": false, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -21,7 +22,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", @@ -37,11 +38,11 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/typescript.md", - "file": "eaadb644cb1f809e.md" + "file": "b8d3d3a7e1e287ce.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -49,7 +50,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -117,7 +118,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -141,11 +142,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/typescript-docs.md", @@ -173,7 +174,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "e626029a53526f92.md" + "file": "7324dedeb09d7f35.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -181,7 +182,7 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" }, { "path": ".claude/skills/metaobjects-prompts/references/typescript.md", @@ -189,7 +190,7 @@ }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "file": "e722c0b063087726.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/references/typescript.md", @@ -197,11 +198,11 @@ }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -213,22 +214,21 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "98558523cbdb9e82.md" + "file": "45e4cc4ff5fb0d8c.md" } ] }, { - "id": "typescript-react", + "id": "typescript-migrate", "servers": [ "typescript" ], - "clients": [ - "react" - ], + "clients": [], + "migration": true, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -236,7 +236,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", @@ -252,11 +252,11 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/typescript.md", - "file": "eaadb644cb1f809e.md" + "file": "b8d3d3a7e1e287ce.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -264,7 +264,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -332,7 +332,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -356,11 +356,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/typescript-docs.md", @@ -388,7 +388,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "e626029a53526f92.md" + "file": "7324dedeb09d7f35.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -396,7 +396,7 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" }, { "path": ".claude/skills/metaobjects-prompts/references/typescript.md", @@ -404,11 +404,7 @@ }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" - }, - { - "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", - "file": "1ed66f8d84192ee1.md" + "file": "e722c0b063087726.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/references/typescript.md", @@ -416,11 +412,11 @@ }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -432,23 +428,23 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "e1054bf83aaaa224.md" + "file": "df319fdb2b45f4a4.md" } ] }, { - "id": "typescript-react-tanstack", + "id": "typescript-react", "servers": [ "typescript" ], "clients": [ - "react", - "tanstack" + "react" ], + "migration": false, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -456,7 +452,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", @@ -472,11 +468,11 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/typescript.md", - "file": "eaadb644cb1f809e.md" + "file": "b8d3d3a7e1e287ce.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -484,7 +480,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -552,7 +548,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -576,11 +572,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/typescript-docs.md", @@ -608,7 +604,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "e626029a53526f92.md" + "file": "7324dedeb09d7f35.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -616,7 +612,7 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" }, { "path": ".claude/skills/metaobjects-prompts/references/typescript.md", @@ -624,27 +620,23 @@ }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "file": "e722c0b063087726.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", "file": "1ed66f8d84192ee1.md" }, - { - "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", - "file": "51b5c54862c75382.md" - }, { "path": ".claude/skills/metaobjects-runtime-ui/references/typescript.md", "file": "494853543fba1c5f.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -656,22 +648,23 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "61d8a218ffd3b20c.md" + "file": "f91f6ac4022e70c6.md" } ] }, { - "id": "typescript-angular", + "id": "typescript-react-migrate", "servers": [ "typescript" ], "clients": [ - "angular" + "react" ], + "migration": true, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -679,7 +672,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", @@ -695,11 +688,11 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/typescript.md", - "file": "eaadb644cb1f809e.md" + "file": "b8d3d3a7e1e287ce.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -707,7 +700,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -775,7 +768,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -799,11 +792,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/typescript-docs.md", @@ -831,7 +824,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/typescript.md", - "file": "e626029a53526f92.md" + "file": "7324dedeb09d7f35.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -839,7 +832,7 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" }, { "path": ".claude/skills/metaobjects-prompts/references/typescript.md", @@ -847,7 +840,11 @@ }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/references/typescript.md", @@ -855,11 +852,11 @@ }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -871,20 +868,24 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "2ded112f119f825b.md" + "file": "74622d492d119958.md" } ] }, { - "id": "java", + "id": "typescript-react-tanstack", "servers": [ - "java" + "typescript" ], - "clients": [], + "clients": [ + "react", + "tanstack" + ], + "migration": false, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -892,16 +893,12 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", "file": "2fe5f67ab529af0c.md" }, - { - "path": ".claude/skills/metaobjects-audit/references/java.md", - "file": "22c4d86c67650ab0.md" - }, { "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", "file": "bfe25e4bd2cf097d.md" @@ -912,7 +909,11 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/typescript.md", + "file": "b8d3d3a7e1e287ce.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -920,7 +921,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -950,10 +951,6 @@ "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", "file": "46659a758d40373b.md" }, - { - "path": ".claude/skills/metaobjects-authoring/references/java-providers.md", - "file": "eab139844783c8e7.md" - }, { "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", "file": "6afa98a9c7fd23f6.md" @@ -986,9 +983,13 @@ "path": ".claude/skills/metaobjects-authoring/references/sources.md", "file": "123dcfb6c65640a0.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/typescript-providers.md", + "file": "1e0fda1afdd26e1a.md" + }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -1002,10 +1003,6 @@ "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", "file": "58d380101a100501.md" }, - { - "path": ".claude/skills/metaobjects-codegen/references/java.md", - "file": "e413f6fcd012b1f3.md" - }, { "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", "file": "e899275df4b48c66.md" @@ -1016,11 +1013,39 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/typescript-docs.md", + "file": "c5b68292c9103dcc.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/typescript-document-store.md", + "file": "c7994468651aa905.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/typescript-mysql.md", + "file": "b55c2620ee7609d3.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/typescript-prisma.md", + "file": "1e292839ec10ca12.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/typescript-retargeting.md", + "file": "6935df5f6afbbf93.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/typescript-templates.md", + "file": "5a2f3bbdcf835d47.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/typescript.md", + "file": "7324dedeb09d7f35.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -1028,27 +1053,35 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" }, { - "path": ".claude/skills/metaobjects-prompts/references/java.md", - "file": "84b5d02029893745.md" + "path": ".claude/skills/metaobjects-prompts/references/typescript.md", + "file": "01fcc1b45dff7950.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "file": "e722c0b063087726.md" }, { - "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", - "file": "83fa1bfb70e0da93.md" + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", + "file": "930156daf0efbdb6.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/typescript.md", + "file": "494853543fba1c5f.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -1060,22 +1093,24 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "0b3cd53eedd718e2.md" + "file": "1d524c263d08c292.md" } ] }, { - "id": "java-react", + "id": "typescript-react-tanstack-migrate", "servers": [ - "java" + "typescript" ], "clients": [ - "react" + "react", + "tanstack" ], + "migration": true, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -1083,16 +1118,12 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", "file": "2fe5f67ab529af0c.md" }, - { - "path": ".claude/skills/metaobjects-audit/references/java.md", - "file": "22c4d86c67650ab0.md" - }, { "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", "file": "bfe25e4bd2cf097d.md" @@ -1103,7 +1134,11 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/typescript.md", + "file": "b8d3d3a7e1e287ce.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -1111,7 +1146,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -1141,10 +1176,6 @@ "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", "file": "46659a758d40373b.md" }, - { - "path": ".claude/skills/metaobjects-authoring/references/java-providers.md", - "file": "eab139844783c8e7.md" - }, { "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", "file": "6afa98a9c7fd23f6.md" @@ -1177,9 +1208,13 @@ "path": ".claude/skills/metaobjects-authoring/references/sources.md", "file": "123dcfb6c65640a0.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/typescript-providers.md", + "file": "1e0fda1afdd26e1a.md" + }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -1193,10 +1228,6 @@ "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", "file": "58d380101a100501.md" }, - { - "path": ".claude/skills/metaobjects-codegen/references/java.md", - "file": "e413f6fcd012b1f3.md" - }, { "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", "file": "e899275df4b48c66.md" @@ -1207,11 +1238,39 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/typescript-docs.md", + "file": "c5b68292c9103dcc.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/typescript-document-store.md", + "file": "c7994468651aa905.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/typescript-mysql.md", + "file": "b55c2620ee7609d3.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/typescript-prisma.md", + "file": "1e292839ec10ca12.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/typescript-retargeting.md", + "file": "6935df5f6afbbf93.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/typescript-templates.md", + "file": "5a2f3bbdcf835d47.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/typescript.md", + "file": "7324dedeb09d7f35.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -1219,31 +1278,35 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" }, { - "path": ".claude/skills/metaobjects-prompts/references/java.md", - "file": "84b5d02029893745.md" + "path": ".claude/skills/metaobjects-prompts/references/typescript.md", + "file": "01fcc1b45dff7950.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" - }, - { - "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", - "file": "83fa1bfb70e0da93.md" + "file": "e722c0b063087726.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", "file": "1ed66f8d84192ee1.md" }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", + "file": "930156daf0efbdb6.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/typescript.md", + "file": "494853543fba1c5f.md" + }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -1255,23 +1318,23 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "60bc04713b62baba.md" + "file": "c80914930d7e04cc.md" } ] }, { - "id": "java-react-tanstack", + "id": "typescript-angular", "servers": [ - "java" + "typescript" ], "clients": [ - "react", - "tanstack" + "angular" ], + "migration": false, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -1279,16 +1342,12 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", "file": "2fe5f67ab529af0c.md" }, - { - "path": ".claude/skills/metaobjects-audit/references/java.md", - "file": "22c4d86c67650ab0.md" - }, { "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", "file": "bfe25e4bd2cf097d.md" @@ -1299,7 +1358,11 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/typescript.md", + "file": "b8d3d3a7e1e287ce.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -1307,7 +1370,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -1337,10 +1400,6 @@ "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", "file": "46659a758d40373b.md" }, - { - "path": ".claude/skills/metaobjects-authoring/references/java-providers.md", - "file": "eab139844783c8e7.md" - }, { "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", "file": "6afa98a9c7fd23f6.md" @@ -1373,9 +1432,13 @@ "path": ".claude/skills/metaobjects-authoring/references/sources.md", "file": "123dcfb6c65640a0.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/typescript-providers.md", + "file": "1e0fda1afdd26e1a.md" + }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -1389,10 +1452,6 @@ "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", "file": "58d380101a100501.md" }, - { - "path": ".claude/skills/metaobjects-codegen/references/java.md", - "file": "e413f6fcd012b1f3.md" - }, { "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", "file": "e899275df4b48c66.md" @@ -1403,47 +1462,67 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { - "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", - "file": "f425eaf3566cf602.md" + "path": ".claude/skills/metaobjects-codegen/references/typescript-docs.md", + "file": "c5b68292c9103dcc.md" }, { - "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "path": ".claude/skills/metaobjects-codegen/references/typescript-document-store.md", + "file": "c7994468651aa905.md" }, { - "path": ".claude/skills/metaobjects-prompts/references/java.md", - "file": "84b5d02029893745.md" + "path": ".claude/skills/metaobjects-codegen/references/typescript-mysql.md", + "file": "b55c2620ee7609d3.md" }, { - "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "path": ".claude/skills/metaobjects-codegen/references/typescript-prisma.md", + "file": "1e292839ec10ca12.md" }, { - "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", - "file": "83fa1bfb70e0da93.md" + "path": ".claude/skills/metaobjects-codegen/references/typescript-retargeting.md", + "file": "6935df5f6afbbf93.md" }, { - "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", - "file": "1ed66f8d84192ee1.md" + "path": ".claude/skills/metaobjects-codegen/references/typescript-templates.md", + "file": "5a2f3bbdcf835d47.md" }, { - "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", - "file": "51b5c54862c75382.md" + "path": ".claude/skills/metaobjects-codegen/references/typescript.md", + "file": "7324dedeb09d7f35.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/typescript.md", + "file": "01fcc1b45dff7950.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/typescript.md", + "file": "494853543fba1c5f.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -1455,22 +1534,23 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "1bba4aff747882dd.md" + "file": "152b9f8ca0e76719.md" } ] }, { - "id": "java-angular", + "id": "typescript-angular-migrate", "servers": [ - "java" + "typescript" ], "clients": [ "angular" ], + "migration": true, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -1478,16 +1558,12 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", "file": "2fe5f67ab529af0c.md" }, - { - "path": ".claude/skills/metaobjects-audit/references/java.md", - "file": "22c4d86c67650ab0.md" - }, { "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", "file": "bfe25e4bd2cf097d.md" @@ -1498,7 +1574,11 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/typescript.md", + "file": "b8d3d3a7e1e287ce.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -1506,7 +1586,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -1536,10 +1616,6 @@ "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", "file": "46659a758d40373b.md" }, - { - "path": ".claude/skills/metaobjects-authoring/references/java-providers.md", - "file": "eab139844783c8e7.md" - }, { "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", "file": "6afa98a9c7fd23f6.md" @@ -1572,9 +1648,13 @@ "path": ".claude/skills/metaobjects-authoring/references/sources.md", "file": "123dcfb6c65640a0.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/typescript-providers.md", + "file": "1e0fda1afdd26e1a.md" + }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -1588,10 +1668,6 @@ "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", "file": "58d380101a100501.md" }, - { - "path": ".claude/skills/metaobjects-codegen/references/java.md", - "file": "e413f6fcd012b1f3.md" - }, { "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", "file": "e899275df4b48c66.md" @@ -1602,39 +1678,67 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { - "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", - "file": "f425eaf3566cf602.md" + "path": ".claude/skills/metaobjects-codegen/references/typescript-docs.md", + "file": "c5b68292c9103dcc.md" }, { - "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "path": ".claude/skills/metaobjects-codegen/references/typescript-document-store.md", + "file": "c7994468651aa905.md" }, { - "path": ".claude/skills/metaobjects-prompts/references/java.md", - "file": "84b5d02029893745.md" + "path": ".claude/skills/metaobjects-codegen/references/typescript-mysql.md", + "file": "b55c2620ee7609d3.md" }, { - "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "path": ".claude/skills/metaobjects-codegen/references/typescript-prisma.md", + "file": "1e292839ec10ca12.md" }, { - "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", - "file": "83fa1bfb70e0da93.md" + "path": ".claude/skills/metaobjects-codegen/references/typescript-retargeting.md", + "file": "6935df5f6afbbf93.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/typescript-templates.md", + "file": "5a2f3bbdcf835d47.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/typescript.md", + "file": "7324dedeb09d7f35.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/typescript.md", + "file": "01fcc1b45dff7950.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/typescript.md", + "file": "494853543fba1c5f.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -1646,20 +1750,21 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "a3b90af6984e5058.md" + "file": "b1f382e94710538f.md" } ] }, { - "id": "kotlin", + "id": "java", "servers": [ - "kotlin" + "java" ], "clients": [], + "migration": false, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -1667,15 +1772,15 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", "file": "2fe5f67ab529af0c.md" }, { - "path": ".claude/skills/metaobjects-audit/references/kotlin.md", - "file": "9a4c5782dabd6c6e.md" + "path": ".claude/skills/metaobjects-audit/references/java.md", + "file": "003a2dff540a3c7b.md" }, { "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", @@ -1687,7 +1792,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -1695,7 +1800,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -1725,13 +1830,203 @@ "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", "file": "46659a758d40373b.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/java-providers.md", + "file": "eab139844783c8e7.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", "file": "6afa98a9c7fd23f6.md" }, { - "path": ".claude/skills/metaobjects-authoring/references/kotlin-providers.md", - "file": "d6bd70c9bf36eb46.md" + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/java.md", + "file": "e413f6fcd012b1f3.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/java.md", + "file": "84b5d02029893745.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", + "file": "0ca6e2534824415a.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "cd5623fc21c3134f.md" + } + ] + }, + { + "id": "java-migrate", + "servers": [ + "java" + ], + "clients": [], + "migration": true, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/java.md", + "file": "003a2dff540a3c7b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/java-providers.md", + "file": "eab139844783c8e7.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" }, { "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", @@ -1763,7 +2058,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -1778,8 +2073,8 @@ "file": "58d380101a100501.md" }, { - "path": ".claude/skills/metaobjects-codegen/references/kotlin.md", - "file": "d3eaa47c0bbd9332.md" + "path": ".claude/skills/metaobjects-codegen/references/java.md", + "file": "e413f6fcd012b1f3.md" }, { "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", @@ -1791,11 +2086,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -1803,27 +2098,27 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" }, { - "path": ".claude/skills/metaobjects-prompts/references/kotlin.md", - "file": "ce8ecdef3b83fec0.md" + "path": ".claude/skills/metaobjects-prompts/references/java.md", + "file": "84b5d02029893745.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "file": "e722c0b063087726.md" }, { - "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", - "file": "636d4309c12de5cb.md" + "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", + "file": "0ca6e2534824415a.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -1835,22 +2130,23 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "d07ddba3c9a84355.md" + "file": "d92b15996eb3991d.md" } ] }, { - "id": "kotlin-react", + "id": "java-react", "servers": [ - "kotlin" + "java" ], "clients": [ "react" ], + "migration": false, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -1858,15 +2154,15 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", "file": "2fe5f67ab529af0c.md" }, { - "path": ".claude/skills/metaobjects-audit/references/kotlin.md", - "file": "9a4c5782dabd6c6e.md" + "path": ".claude/skills/metaobjects-audit/references/java.md", + "file": "003a2dff540a3c7b.md" }, { "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", @@ -1878,7 +2174,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -1886,7 +2182,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -1916,13 +2212,5277 @@ "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", "file": "46659a758d40373b.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/java-providers.md", + "file": "eab139844783c8e7.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", "file": "6afa98a9c7fd23f6.md" }, { - "path": ".claude/skills/metaobjects-authoring/references/kotlin-providers.md", - "file": "d6bd70c9bf36eb46.md" + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/java.md", + "file": "e413f6fcd012b1f3.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/java.md", + "file": "84b5d02029893745.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", + "file": "0ca6e2534824415a.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "45382c4022671361.md" + } + ] + }, + { + "id": "java-react-migrate", + "servers": [ + "java" + ], + "clients": [ + "react" + ], + "migration": true, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/java.md", + "file": "003a2dff540a3c7b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/java-providers.md", + "file": "eab139844783c8e7.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/java.md", + "file": "e413f6fcd012b1f3.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/java.md", + "file": "84b5d02029893745.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", + "file": "0ca6e2534824415a.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "5c2fce4a848a11f3.md" + } + ] + }, + { + "id": "java-react-tanstack", + "servers": [ + "java" + ], + "clients": [ + "react", + "tanstack" + ], + "migration": false, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/java.md", + "file": "003a2dff540a3c7b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/java-providers.md", + "file": "eab139844783c8e7.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/java.md", + "file": "e413f6fcd012b1f3.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/java.md", + "file": "84b5d02029893745.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", + "file": "0ca6e2534824415a.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", + "file": "930156daf0efbdb6.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "ef48b6a7a5e0f4f5.md" + } + ] + }, + { + "id": "java-react-tanstack-migrate", + "servers": [ + "java" + ], + "clients": [ + "react", + "tanstack" + ], + "migration": true, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/java.md", + "file": "003a2dff540a3c7b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/java-providers.md", + "file": "eab139844783c8e7.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/java.md", + "file": "e413f6fcd012b1f3.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/java.md", + "file": "84b5d02029893745.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", + "file": "0ca6e2534824415a.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", + "file": "930156daf0efbdb6.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "4d50908a399c8c2a.md" + } + ] + }, + { + "id": "java-angular", + "servers": [ + "java" + ], + "clients": [ + "angular" + ], + "migration": false, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/java.md", + "file": "003a2dff540a3c7b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/java-providers.md", + "file": "eab139844783c8e7.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/java.md", + "file": "e413f6fcd012b1f3.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/java.md", + "file": "84b5d02029893745.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", + "file": "0ca6e2534824415a.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "0132834de586f051.md" + } + ] + }, + { + "id": "java-angular-migrate", + "servers": [ + "java" + ], + "clients": [ + "angular" + ], + "migration": true, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/java.md", + "file": "003a2dff540a3c7b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/java-providers.md", + "file": "eab139844783c8e7.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/java.md", + "file": "e413f6fcd012b1f3.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/java.md", + "file": "84b5d02029893745.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", + "file": "0ca6e2534824415a.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "1d5dedccd6f4f5c2.md" + } + ] + }, + { + "id": "kotlin", + "servers": [ + "kotlin" + ], + "clients": [], + "migration": false, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/kotlin.md", + "file": "71f3aede2e59870d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/kotlin-providers.md", + "file": "d6bd70c9bf36eb46.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/kotlin.md", + "file": "d3eaa47c0bbd9332.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/kotlin.md", + "file": "ce8ecdef3b83fec0.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", + "file": "a6809eba63ed0e31.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "2eef37e385b987d7.md" + } + ] + }, + { + "id": "kotlin-migrate", + "servers": [ + "kotlin" + ], + "clients": [], + "migration": true, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/kotlin.md", + "file": "71f3aede2e59870d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/kotlin-providers.md", + "file": "d6bd70c9bf36eb46.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/kotlin.md", + "file": "d3eaa47c0bbd9332.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/kotlin.md", + "file": "ce8ecdef3b83fec0.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", + "file": "a6809eba63ed0e31.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "9f8fab59bbebfa03.md" + } + ] + }, + { + "id": "kotlin-react", + "servers": [ + "kotlin" + ], + "clients": [ + "react" + ], + "migration": false, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/kotlin.md", + "file": "71f3aede2e59870d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/kotlin-providers.md", + "file": "d6bd70c9bf36eb46.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/kotlin.md", + "file": "d3eaa47c0bbd9332.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/kotlin.md", + "file": "ce8ecdef3b83fec0.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", + "file": "a6809eba63ed0e31.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "9082aff5c83c7f28.md" + } + ] + }, + { + "id": "kotlin-react-migrate", + "servers": [ + "kotlin" + ], + "clients": [ + "react" + ], + "migration": true, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/kotlin.md", + "file": "71f3aede2e59870d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/kotlin-providers.md", + "file": "d6bd70c9bf36eb46.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/kotlin.md", + "file": "d3eaa47c0bbd9332.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/kotlin.md", + "file": "ce8ecdef3b83fec0.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", + "file": "a6809eba63ed0e31.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "9135cd6f5ba4a137.md" + } + ] + }, + { + "id": "kotlin-react-tanstack", + "servers": [ + "kotlin" + ], + "clients": [ + "react", + "tanstack" + ], + "migration": false, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/kotlin.md", + "file": "71f3aede2e59870d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/kotlin-providers.md", + "file": "d6bd70c9bf36eb46.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/kotlin.md", + "file": "d3eaa47c0bbd9332.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/kotlin.md", + "file": "ce8ecdef3b83fec0.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", + "file": "a6809eba63ed0e31.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", + "file": "930156daf0efbdb6.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "f737f1c77bcc1a63.md" + } + ] + }, + { + "id": "kotlin-react-tanstack-migrate", + "servers": [ + "kotlin" + ], + "clients": [ + "react", + "tanstack" + ], + "migration": true, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/kotlin.md", + "file": "71f3aede2e59870d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/kotlin-providers.md", + "file": "d6bd70c9bf36eb46.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/kotlin.md", + "file": "d3eaa47c0bbd9332.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/kotlin.md", + "file": "ce8ecdef3b83fec0.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", + "file": "a6809eba63ed0e31.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", + "file": "930156daf0efbdb6.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "f6d3e2f9f6d3c9d4.md" + } + ] + }, + { + "id": "kotlin-angular", + "servers": [ + "kotlin" + ], + "clients": [ + "angular" + ], + "migration": false, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/kotlin.md", + "file": "71f3aede2e59870d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/kotlin-providers.md", + "file": "d6bd70c9bf36eb46.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/kotlin.md", + "file": "d3eaa47c0bbd9332.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/kotlin.md", + "file": "ce8ecdef3b83fec0.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", + "file": "a6809eba63ed0e31.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "5a401d2225cfe3b7.md" + } + ] + }, + { + "id": "kotlin-angular-migrate", + "servers": [ + "kotlin" + ], + "clients": [ + "angular" + ], + "migration": true, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/kotlin.md", + "file": "71f3aede2e59870d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/kotlin-providers.md", + "file": "d6bd70c9bf36eb46.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/kotlin.md", + "file": "d3eaa47c0bbd9332.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/kotlin.md", + "file": "ce8ecdef3b83fec0.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", + "file": "a6809eba63ed0e31.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "7bf85ab44b2d3091.md" + } + ] + }, + { + "id": "csharp", + "servers": [ + "csharp" + ], + "clients": [], + "migration": false, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/csharp.md", + "file": "ce7130ca4922c867.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/csharp-providers.md", + "file": "0080df7715486e4c.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/csharp.md", + "file": "6e3f75ac9b8e8680.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/csharp.md", + "file": "940c3d118c7ab1dc.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/csharp.md", + "file": "94d63d7a344e36cf.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "bf473d791eb12d8a.md" + } + ] + }, + { + "id": "csharp-migrate", + "servers": [ + "csharp" + ], + "clients": [], + "migration": true, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/csharp.md", + "file": "ce7130ca4922c867.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/csharp-providers.md", + "file": "0080df7715486e4c.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/csharp.md", + "file": "6e3f75ac9b8e8680.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/csharp.md", + "file": "940c3d118c7ab1dc.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/csharp.md", + "file": "94d63d7a344e36cf.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "1950100affa0047a.md" + } + ] + }, + { + "id": "csharp-react", + "servers": [ + "csharp" + ], + "clients": [ + "react" + ], + "migration": false, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/csharp.md", + "file": "ce7130ca4922c867.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/csharp-providers.md", + "file": "0080df7715486e4c.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/csharp.md", + "file": "6e3f75ac9b8e8680.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/csharp.md", + "file": "940c3d118c7ab1dc.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/csharp.md", + "file": "94d63d7a344e36cf.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "d7bb54e3ae783252.md" + } + ] + }, + { + "id": "csharp-react-migrate", + "servers": [ + "csharp" + ], + "clients": [ + "react" + ], + "migration": true, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/csharp.md", + "file": "ce7130ca4922c867.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/csharp-providers.md", + "file": "0080df7715486e4c.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/csharp.md", + "file": "6e3f75ac9b8e8680.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/csharp.md", + "file": "940c3d118c7ab1dc.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/csharp.md", + "file": "94d63d7a344e36cf.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "82bc554e6d4a2a14.md" + } + ] + }, + { + "id": "csharp-react-tanstack", + "servers": [ + "csharp" + ], + "clients": [ + "react", + "tanstack" + ], + "migration": false, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/csharp.md", + "file": "ce7130ca4922c867.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/csharp-providers.md", + "file": "0080df7715486e4c.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/csharp.md", + "file": "6e3f75ac9b8e8680.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/csharp.md", + "file": "940c3d118c7ab1dc.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/csharp.md", + "file": "94d63d7a344e36cf.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", + "file": "930156daf0efbdb6.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "5012fcaf4eb615f0.md" + } + ] + }, + { + "id": "csharp-react-tanstack-migrate", + "servers": [ + "csharp" + ], + "clients": [ + "react", + "tanstack" + ], + "migration": true, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/csharp.md", + "file": "ce7130ca4922c867.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/csharp-providers.md", + "file": "0080df7715486e4c.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/csharp.md", + "file": "6e3f75ac9b8e8680.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/csharp.md", + "file": "940c3d118c7ab1dc.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/csharp.md", + "file": "94d63d7a344e36cf.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", + "file": "930156daf0efbdb6.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "dd9b687544dbb709.md" + } + ] + }, + { + "id": "csharp-angular", + "servers": [ + "csharp" + ], + "clients": [ + "angular" + ], + "migration": false, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/csharp.md", + "file": "ce7130ca4922c867.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/csharp-providers.md", + "file": "0080df7715486e4c.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/csharp.md", + "file": "6e3f75ac9b8e8680.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/csharp.md", + "file": "940c3d118c7ab1dc.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/csharp.md", + "file": "94d63d7a344e36cf.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "0dba45b723790cf0.md" + } + ] + }, + { + "id": "csharp-angular-migrate", + "servers": [ + "csharp" + ], + "clients": [ + "angular" + ], + "migration": true, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/csharp.md", + "file": "ce7130ca4922c867.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/csharp-providers.md", + "file": "0080df7715486e4c.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/csharp.md", + "file": "6e3f75ac9b8e8680.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/csharp.md", + "file": "940c3d118c7ab1dc.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/csharp.md", + "file": "94d63d7a344e36cf.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "47a2e3d1b87512e8.md" + } + ] + }, + { + "id": "python", + "servers": [ + "python" + ], + "clients": [], + "migration": false, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/python.md", + "file": "8e5978224add0b68.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/python-providers.md", + "file": "4244641a71a9c537.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/python.md", + "file": "4bad6e820c600d09.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/python.md", + "file": "d3f2f83fe9835f64.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/python.md", + "file": "6c8e4466f6db30b9.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "c47789a566e1164a.md" + } + ] + }, + { + "id": "python-migrate", + "servers": [ + "python" + ], + "clients": [], + "migration": true, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/python.md", + "file": "8e5978224add0b68.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/python-providers.md", + "file": "4244641a71a9c537.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/python.md", + "file": "4bad6e820c600d09.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/python.md", + "file": "d3f2f83fe9835f64.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/python.md", + "file": "6c8e4466f6db30b9.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "e765bfe0daa19f5c.md" + } + ] + }, + { + "id": "python-react", + "servers": [ + "python" + ], + "clients": [ + "react" + ], + "migration": false, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/python.md", + "file": "8e5978224add0b68.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/python-providers.md", + "file": "4244641a71a9c537.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/python.md", + "file": "4bad6e820c600d09.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/python.md", + "file": "d3f2f83fe9835f64.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/python.md", + "file": "6c8e4466f6db30b9.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "1c121e2c927ea194.md" + } + ] + }, + { + "id": "python-react-migrate", + "servers": [ + "python" + ], + "clients": [ + "react" + ], + "migration": true, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/python.md", + "file": "8e5978224add0b68.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/python-providers.md", + "file": "4244641a71a9c537.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/python.md", + "file": "4bad6e820c600d09.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/python.md", + "file": "d3f2f83fe9835f64.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/python.md", + "file": "6c8e4466f6db30b9.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "bfc0389692a9e36d.md" + } + ] + }, + { + "id": "python-react-tanstack", + "servers": [ + "python" + ], + "clients": [ + "react", + "tanstack" + ], + "migration": false, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/python.md", + "file": "8e5978224add0b68.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", + "file": "608f89f60afad4b9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", + "file": "fda1a58ac1585828.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/python-providers.md", + "file": "4244641a71a9c537.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", + "file": "b8371541b1d36c6b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/relationships.md", + "file": "e985f8151935157d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/reporting.md", + "file": "f80806308b356cb6.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/requirements.md", + "file": "e5c6430567eecae4.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/sources.md", + "file": "123dcfb6c65640a0.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/SKILL.md", + "file": "e4390a15f912c4e6.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", + "file": "4426fbef79f236fb.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", + "file": "8cd1bca8a659b6ef.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", + "file": "58d380101a100501.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", + "file": "e899275df4b48c66.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/physical-names.md", + "file": "c37f1e343d6e2832.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/principles.md", + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/python.md", + "file": "4bad6e820c600d09.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", + "file": "e0879c95ed161b9e.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", + "file": "f425eaf3566cf602.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/SKILL.md", + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/python.md", + "file": "d3f2f83fe9835f64.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/python.md", + "file": "6c8e4466f6db30b9.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", + "file": "930156daf0efbdb6.md" + }, + { + "path": ".claude/skills/metaobjects-verify/SKILL.md", + "file": "08e1de86f82554ae.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/migration.md", + "file": "432f9889e514face.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/requirements.md", + "file": "0ee567e8d039312d.md" + }, + { + "path": ".claude/skills/metaobjects-verify/references/upgrading.md", + "file": "4f6d18160c694c41.md" + }, + { + "path": ".metaobjects/AGENTS.md", + "file": "47b76f5cc12c4941.md" + } + ] + }, + { + "id": "python-react-tanstack-migrate", + "servers": [ + "python" + ], + "clients": [ + "react", + "tanstack" + ], + "migration": true, + "files": [ + { + "path": ".claude/skills/metaobjects-audit/SKILL.md", + "file": "6e466a4d852ffd2e.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/calibration.md", + "file": "a41cb586bdd98720.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", + "file": "43a4f77d88acbd3b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", + "file": "2fe5f67ab529af0c.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", + "file": "bfe25e4bd2cf097d.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/python.md", + "file": "8e5978224add0b68.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/requirements.md", + "file": "651a126eaa501924.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", + "file": "1ff8fe71a4ec5b60.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", + "file": "b28302f5febaea38.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/SKILL.md", + "file": "20569df7000013eb.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", + "file": "fb3d3670ae387530.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-code.md", + "file": "378f755bb43b1e71.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/adopting-existing-models.md", + "file": "e1f6478444c1e120.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", + "file": "c1a4896ebda79dd9.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", + "file": "6b42cc8511e0eb7d.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/identities-and-indexes.md", + "file": "8a9c3f4a4119022a.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", + "file": "46659a758d40373b.md" + }, + { + "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", + "file": "6afa98a9c7fd23f6.md" }, { "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", @@ -1932,6 +7492,10 @@ "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", "file": "fda1a58ac1585828.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/python-providers.md", + "file": "4244641a71a9c537.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", "file": "b8371541b1d36c6b.md" @@ -1954,7 +7518,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -1968,10 +7532,6 @@ "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", "file": "58d380101a100501.md" }, - { - "path": ".claude/skills/metaobjects-codegen/references/kotlin.md", - "file": "d3eaa47c0bbd9332.md" - }, { "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", "file": "e899275df4b48c66.md" @@ -1982,11 +7542,15 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/python.md", + "file": "4bad6e820c600d09.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -1994,31 +7558,35 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" }, { - "path": ".claude/skills/metaobjects-prompts/references/kotlin.md", - "file": "ce8ecdef3b83fec0.md" + "path": ".claude/skills/metaobjects-prompts/references/python.md", + "file": "d3f2f83fe9835f64.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "file": "e722c0b063087726.md" }, { - "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", - "file": "636d4309c12de5cb.md" + "path": ".claude/skills/metaobjects-runtime-ui/references/python.md", + "file": "6c8e4466f6db30b9.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", "file": "1ed66f8d84192ee1.md" }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", + "file": "930156daf0efbdb6.md" + }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -2030,23 +7598,23 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "5d83d3b0cfa8b1d3.md" + "file": "91986d36789efeb0.md" } ] }, { - "id": "kotlin-react-tanstack", + "id": "python-angular", "servers": [ - "kotlin" + "python" ], "clients": [ - "react", - "tanstack" + "angular" ], + "migration": false, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -2054,27 +7622,27 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", "file": "2fe5f67ab529af0c.md" }, - { - "path": ".claude/skills/metaobjects-audit/references/kotlin.md", - "file": "9a4c5782dabd6c6e.md" - }, { "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", "file": "bfe25e4bd2cf097d.md" }, + { + "path": ".claude/skills/metaobjects-audit/references/python.md", + "file": "8e5978224add0b68.md" + }, { "path": ".claude/skills/metaobjects-audit/references/requirements.md", "file": "651a126eaa501924.md" }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -2082,7 +7650,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2116,10 +7684,6 @@ "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", "file": "6afa98a9c7fd23f6.md" }, - { - "path": ".claude/skills/metaobjects-authoring/references/kotlin-providers.md", - "file": "d6bd70c9bf36eb46.md" - }, { "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", "file": "608f89f60afad4b9.md" @@ -2128,6 +7692,10 @@ "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", "file": "fda1a58ac1585828.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/python-providers.md", + "file": "4244641a71a9c537.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", "file": "b8371541b1d36c6b.md" @@ -2150,7 +7718,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -2164,10 +7732,6 @@ "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", "file": "58d380101a100501.md" }, - { - "path": ".claude/skills/metaobjects-codegen/references/kotlin.md", - "file": "d3eaa47c0bbd9332.md" - }, { "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", "file": "e899275df4b48c66.md" @@ -2178,11 +7742,15 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/python.md", + "file": "4bad6e820c600d09.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -2190,35 +7758,27 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" }, { - "path": ".claude/skills/metaobjects-prompts/references/kotlin.md", - "file": "ce8ecdef3b83fec0.md" + "path": ".claude/skills/metaobjects-prompts/references/python.md", + "file": "d3f2f83fe9835f64.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" - }, - { - "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", - "file": "636d4309c12de5cb.md" - }, - { - "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", - "file": "1ed66f8d84192ee1.md" + "file": "e722c0b063087726.md" }, { - "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", - "file": "51b5c54862c75382.md" + "path": ".claude/skills/metaobjects-runtime-ui/references/python.md", + "file": "6c8e4466f6db30b9.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -2230,22 +7790,23 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "1d4442064bb430d5.md" + "file": "bd862d11d81b237f.md" } ] }, { - "id": "kotlin-angular", + "id": "python-angular-migrate", "servers": [ - "kotlin" + "python" ], "clients": [ "angular" ], + "migration": true, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -2253,27 +7814,27 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", "file": "2fe5f67ab529af0c.md" }, - { - "path": ".claude/skills/metaobjects-audit/references/kotlin.md", - "file": "9a4c5782dabd6c6e.md" - }, { "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", "file": "bfe25e4bd2cf097d.md" }, + { + "path": ".claude/skills/metaobjects-audit/references/python.md", + "file": "8e5978224add0b68.md" + }, { "path": ".claude/skills/metaobjects-audit/references/requirements.md", "file": "651a126eaa501924.md" }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -2281,7 +7842,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2315,10 +7876,6 @@ "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", "file": "6afa98a9c7fd23f6.md" }, - { - "path": ".claude/skills/metaobjects-authoring/references/kotlin-providers.md", - "file": "d6bd70c9bf36eb46.md" - }, { "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", "file": "608f89f60afad4b9.md" @@ -2327,6 +7884,10 @@ "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", "file": "fda1a58ac1585828.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/python-providers.md", + "file": "4244641a71a9c537.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", "file": "b8371541b1d36c6b.md" @@ -2349,7 +7910,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -2363,10 +7924,6 @@ "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", "file": "58d380101a100501.md" }, - { - "path": ".claude/skills/metaobjects-codegen/references/kotlin.md", - "file": "d3eaa47c0bbd9332.md" - }, { "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", "file": "e899275df4b48c66.md" @@ -2377,11 +7934,15 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/python.md", + "file": "4bad6e820c600d09.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -2389,27 +7950,27 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" }, { - "path": ".claude/skills/metaobjects-prompts/references/kotlin.md", - "file": "ce8ecdef3b83fec0.md" + "path": ".claude/skills/metaobjects-prompts/references/python.md", + "file": "d3f2f83fe9835f64.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "file": "e722c0b063087726.md" }, { - "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", - "file": "636d4309c12de5cb.md" + "path": ".claude/skills/metaobjects-runtime-ui/references/python.md", + "file": "6c8e4466f6db30b9.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -2421,20 +7982,21 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "fd0c7ac49fc2b38d.md" + "file": "e3dc1e273494556c.md" } ] }, { - "id": "csharp", + "id": "rust", "servers": [ - "csharp" + "rust" ], "clients": [], + "migration": false, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -2442,11 +8004,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" - }, - { - "path": ".claude/skills/metaobjects-audit/references/csharp.md", - "file": "f53bebd852a41ec3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", @@ -2462,7 +8020,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -2470,7 +8028,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2488,10 +8046,6 @@ "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "c1a4896ebda79dd9.md" }, - { - "path": ".claude/skills/metaobjects-authoring/references/csharp-providers.md", - "file": "0080df7715486e4c.md" - }, { "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", "file": "6b42cc8511e0eb7d.md" @@ -2538,7 +8092,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -2548,10 +8102,6 @@ "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", "file": "8cd1bca8a659b6ef.md" }, - { - "path": ".claude/skills/metaobjects-codegen/references/csharp.md", - "file": "6e3f75ac9b8e8680.md" - }, { "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", "file": "58d380101a100501.md" @@ -2566,11 +8116,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -2578,27 +8128,19 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" - }, - { - "path": ".claude/skills/metaobjects-prompts/references/csharp.md", - "file": "940c3d118c7ab1dc.md" + "file": "dba8a4cf627beb17.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" - }, - { - "path": ".claude/skills/metaobjects-runtime-ui/references/csharp.md", - "file": "fe7f8817bfc35bb5.md" + "file": "e722c0b063087726.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -2610,22 +8152,21 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "bc46fc3358130871.md" + "file": "2a7abe06e9935eb9.md" } ] }, { - "id": "csharp-react", + "id": "rust-migrate", "servers": [ - "csharp" - ], - "clients": [ - "react" + "rust" ], + "clients": [], + "migration": true, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -2633,11 +8174,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" - }, - { - "path": ".claude/skills/metaobjects-audit/references/csharp.md", - "file": "f53bebd852a41ec3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", @@ -2653,7 +8190,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -2661,7 +8198,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2679,10 +8216,6 @@ "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "c1a4896ebda79dd9.md" }, - { - "path": ".claude/skills/metaobjects-authoring/references/csharp-providers.md", - "file": "0080df7715486e4c.md" - }, { "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", "file": "6b42cc8511e0eb7d.md" @@ -2729,7 +8262,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -2739,10 +8272,6 @@ "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", "file": "8cd1bca8a659b6ef.md" }, - { - "path": ".claude/skills/metaobjects-codegen/references/csharp.md", - "file": "6e3f75ac9b8e8680.md" - }, { "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", "file": "58d380101a100501.md" @@ -2757,11 +8286,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -2769,31 +8298,19 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" - }, - { - "path": ".claude/skills/metaobjects-prompts/references/csharp.md", - "file": "940c3d118c7ab1dc.md" + "file": "dba8a4cf627beb17.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" - }, - { - "path": ".claude/skills/metaobjects-runtime-ui/references/csharp.md", - "file": "fe7f8817bfc35bb5.md" - }, - { - "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", - "file": "1ed66f8d84192ee1.md" + "file": "e722c0b063087726.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -2805,23 +8322,23 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "5bf46c119eb2f22b.md" + "file": "2afdc196a5f5d77d.md" } ] }, { - "id": "csharp-react-tanstack", + "id": "rust-react", "servers": [ - "csharp" + "rust" ], "clients": [ - "react", - "tanstack" + "react" ], + "migration": false, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -2829,11 +8346,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" - }, - { - "path": ".claude/skills/metaobjects-audit/references/csharp.md", - "file": "f53bebd852a41ec3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", @@ -2849,7 +8362,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -2857,7 +8370,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -2875,10 +8388,6 @@ "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "c1a4896ebda79dd9.md" }, - { - "path": ".claude/skills/metaobjects-authoring/references/csharp-providers.md", - "file": "0080df7715486e4c.md" - }, { "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", "file": "6b42cc8511e0eb7d.md" @@ -2925,7 +8434,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -2935,10 +8444,6 @@ "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", "file": "8cd1bca8a659b6ef.md" }, - { - "path": ".claude/skills/metaobjects-codegen/references/csharp.md", - "file": "6e3f75ac9b8e8680.md" - }, { "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", "file": "58d380101a100501.md" @@ -2953,11 +8458,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -2965,35 +8470,23 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" - }, - { - "path": ".claude/skills/metaobjects-prompts/references/csharp.md", - "file": "940c3d118c7ab1dc.md" + "file": "dba8a4cf627beb17.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" - }, - { - "path": ".claude/skills/metaobjects-runtime-ui/references/csharp.md", - "file": "fe7f8817bfc35bb5.md" + "file": "e722c0b063087726.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", "file": "1ed66f8d84192ee1.md" }, - { - "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", - "file": "51b5c54862c75382.md" - }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -3005,22 +8498,23 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "eb35a94b8d48d17d.md" + "file": "c40ef830a9d3219e.md" } ] }, { - "id": "csharp-angular", + "id": "rust-react-migrate", "servers": [ - "csharp" + "rust" ], "clients": [ - "angular" + "react" ], + "migration": true, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -3028,11 +8522,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" - }, - { - "path": ".claude/skills/metaobjects-audit/references/csharp.md", - "file": "f53bebd852a41ec3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", @@ -3048,7 +8538,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -3056,7 +8546,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3074,10 +8564,6 @@ "path": ".claude/skills/metaobjects-authoring/references/choosing-a-shape.md", "file": "c1a4896ebda79dd9.md" }, - { - "path": ".claude/skills/metaobjects-authoring/references/csharp-providers.md", - "file": "0080df7715486e4c.md" - }, { "path": ".claude/skills/metaobjects-authoring/references/declaring-reports.md", "file": "6b42cc8511e0eb7d.md" @@ -3124,7 +8610,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -3134,10 +8620,6 @@ "path": ".claude/skills/metaobjects-codegen/references/choosing-layers.md", "file": "8cd1bca8a659b6ef.md" }, - { - "path": ".claude/skills/metaobjects-codegen/references/csharp.md", - "file": "6e3f75ac9b8e8680.md" - }, { "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", "file": "58d380101a100501.md" @@ -3152,11 +8634,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -3164,27 +8646,23 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" - }, - { - "path": ".claude/skills/metaobjects-prompts/references/csharp.md", - "file": "940c3d118c7ab1dc.md" + "file": "dba8a4cf627beb17.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "file": "e722c0b063087726.md" }, { - "path": ".claude/skills/metaobjects-runtime-ui/references/csharp.md", - "file": "fe7f8817bfc35bb5.md" + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -3196,20 +8674,24 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "15057721b9d06e77.md" + "file": "10df1ee61cf20440.md" } ] }, { - "id": "python", + "id": "rust-react-tanstack", "servers": [ - "python" + "rust" ], - "clients": [], + "clients": [ + "react", + "tanstack" + ], + "migration": false, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -3217,7 +8699,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", @@ -3227,17 +8709,13 @@ "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", "file": "bfe25e4bd2cf097d.md" }, - { - "path": ".claude/skills/metaobjects-audit/references/python.md", - "file": "8c2f34607e5f23fa.md" - }, { "path": ".claude/skills/metaobjects-audit/references/requirements.md", "file": "651a126eaa501924.md" }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -3245,7 +8723,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3287,10 +8765,6 @@ "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", "file": "fda1a58ac1585828.md" }, - { - "path": ".claude/skills/metaobjects-authoring/references/python-providers.md", - "file": "4244641a71a9c537.md" - }, { "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", "file": "b8371541b1d36c6b.md" @@ -3313,7 +8787,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -3337,15 +8811,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" - }, - { - "path": ".claude/skills/metaobjects-codegen/references/python.md", - "file": "1c25799a074fff7d.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -3353,27 +8823,27 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" }, { - "path": ".claude/skills/metaobjects-prompts/references/python.md", - "file": "d3f2f83fe9835f64.md" + "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", + "file": "e722c0b063087726.md" }, { - "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" }, { - "path": ".claude/skills/metaobjects-runtime-ui/references/python.md", - "file": "ca05e997cc76ca60.md" + "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", + "file": "930156daf0efbdb6.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -3385,22 +8855,24 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "10563ac017ebf8fb.md" + "file": "2f9b37c453594ee3.md" } ] }, { - "id": "python-react", + "id": "rust-react-tanstack-migrate", "servers": [ - "python" + "rust" ], "clients": [ - "react" + "react", + "tanstack" ], + "migration": true, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -3408,7 +8880,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", @@ -3418,17 +8890,13 @@ "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", "file": "bfe25e4bd2cf097d.md" }, - { - "path": ".claude/skills/metaobjects-audit/references/python.md", - "file": "8c2f34607e5f23fa.md" - }, { "path": ".claude/skills/metaobjects-audit/references/requirements.md", "file": "651a126eaa501924.md" }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -3436,7 +8904,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3478,10 +8946,6 @@ "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", "file": "fda1a58ac1585828.md" }, - { - "path": ".claude/skills/metaobjects-authoring/references/python-providers.md", - "file": "4244641a71a9c537.md" - }, { "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", "file": "b8371541b1d36c6b.md" @@ -3504,7 +8968,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -3528,15 +8992,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" - }, - { - "path": ".claude/skills/metaobjects-codegen/references/python.md", - "file": "1c25799a074fff7d.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -3544,31 +9004,27 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" - }, - { - "path": ".claude/skills/metaobjects-prompts/references/python.md", - "file": "d3f2f83fe9835f64.md" + "file": "dba8a4cf627beb17.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" - }, - { - "path": ".claude/skills/metaobjects-runtime-ui/references/python.md", - "file": "ca05e997cc76ca60.md" + "file": "e722c0b063087726.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", "file": "1ed66f8d84192ee1.md" }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", + "file": "930156daf0efbdb6.md" + }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -3580,23 +9036,23 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "0de6aba8a666dd9d.md" + "file": "44b8f296355a0c08.md" } ] }, { - "id": "python-react-tanstack", + "id": "rust-angular", "servers": [ - "python" + "rust" ], "clients": [ - "react", - "tanstack" + "angular" ], + "migration": false, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -3604,7 +9060,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", @@ -3614,17 +9070,13 @@ "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", "file": "bfe25e4bd2cf097d.md" }, - { - "path": ".claude/skills/metaobjects-audit/references/python.md", - "file": "8c2f34607e5f23fa.md" - }, { "path": ".claude/skills/metaobjects-audit/references/requirements.md", "file": "651a126eaa501924.md" }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -3632,7 +9084,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3674,10 +9126,6 @@ "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", "file": "fda1a58ac1585828.md" }, - { - "path": ".claude/skills/metaobjects-authoring/references/python-providers.md", - "file": "4244641a71a9c537.md" - }, { "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", "file": "b8371541b1d36c6b.md" @@ -3700,7 +9148,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -3724,15 +9172,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" - }, - { - "path": ".claude/skills/metaobjects-codegen/references/python.md", - "file": "1c25799a074fff7d.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -3740,35 +9184,19 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" - }, - { - "path": ".claude/skills/metaobjects-prompts/references/python.md", - "file": "d3f2f83fe9835f64.md" + "file": "dba8a4cf627beb17.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" - }, - { - "path": ".claude/skills/metaobjects-runtime-ui/references/python.md", - "file": "ca05e997cc76ca60.md" - }, - { - "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", - "file": "1ed66f8d84192ee1.md" - }, - { - "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", - "file": "51b5c54862c75382.md" + "file": "e722c0b063087726.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -3780,22 +9208,23 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "f4c144c093105bb1.md" + "file": "4dcb7faed7929ed0.md" } ] }, { - "id": "python-angular", + "id": "rust-angular-migrate", "servers": [ - "python" + "rust" ], "clients": [ "angular" ], + "migration": true, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -3803,7 +9232,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", @@ -3813,17 +9242,13 @@ "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", "file": "bfe25e4bd2cf097d.md" }, - { - "path": ".claude/skills/metaobjects-audit/references/python.md", - "file": "8c2f34607e5f23fa.md" - }, { "path": ".claude/skills/metaobjects-audit/references/requirements.md", "file": "651a126eaa501924.md" }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -3831,7 +9256,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -3873,10 +9298,6 @@ "path": ".claude/skills/metaobjects-authoring/references/model-first-rationale.md", "file": "fda1a58ac1585828.md" }, - { - "path": ".claude/skills/metaobjects-authoring/references/python-providers.md", - "file": "4244641a71a9c537.md" - }, { "path": ".claude/skills/metaobjects-authoring/references/read-views-and-projections.md", "file": "b8371541b1d36c6b.md" @@ -3899,7 +9320,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -3923,15 +9344,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" - }, - { - "path": ".claude/skills/metaobjects-codegen/references/python.md", - "file": "1c25799a074fff7d.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -3939,27 +9356,19 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" - }, - { - "path": ".claude/skills/metaobjects-prompts/references/python.md", - "file": "d3f2f83fe9835f64.md" + "file": "dba8a4cf627beb17.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" - }, - { - "path": ".claude/skills/metaobjects-runtime-ui/references/python.md", - "file": "ca05e997cc76ca60.md" + "file": "e722c0b063087726.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -3971,20 +9380,22 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "ed5ffcac71d3cf75.md" + "file": "f48a88c503d4e3c8.md" } ] }, { - "id": "rust", + "id": "java-kotlin", "servers": [ - "rust" + "java", + "kotlin" ], "clients": [], + "migration": false, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -3992,12 +9403,20 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", "file": "2fe5f67ab529af0c.md" }, + { + "path": ".claude/skills/metaobjects-audit/references/java.md", + "file": "003a2dff540a3c7b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/kotlin.md", + "file": "71f3aede2e59870d.md" + }, { "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", "file": "bfe25e4bd2cf097d.md" @@ -4008,7 +9427,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -4016,7 +9435,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4046,10 +9465,18 @@ "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", "file": "46659a758d40373b.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/java-providers.md", + "file": "eab139844783c8e7.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", "file": "6afa98a9c7fd23f6.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/kotlin-providers.md", + "file": "d6bd70c9bf36eb46.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", "file": "608f89f60afad4b9.md" @@ -4080,7 +9507,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -4094,6 +9521,14 @@ "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", "file": "58d380101a100501.md" }, + { + "path": ".claude/skills/metaobjects-codegen/references/java.md", + "file": "e413f6fcd012b1f3.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/kotlin.md", + "file": "d3eaa47c0bbd9332.md" + }, { "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", "file": "e899275df4b48c66.md" @@ -4104,11 +9539,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -4116,19 +9551,35 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/java.md", + "file": "84b5d02029893745.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/kotlin.md", + "file": "ce8ecdef3b83fec0.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", + "file": "0ca6e2534824415a.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", + "file": "a6809eba63ed0e31.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -4140,22 +9591,22 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "250eaeca5c4d1c38.md" + "file": "8043368fa42ba3f6.md" } ] }, { - "id": "rust-react", + "id": "java-kotlin-migrate", "servers": [ - "rust" - ], - "clients": [ - "react" + "java", + "kotlin" ], + "clients": [], + "migration": true, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -4163,12 +9614,20 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", "file": "2fe5f67ab529af0c.md" }, + { + "path": ".claude/skills/metaobjects-audit/references/java.md", + "file": "003a2dff540a3c7b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/kotlin.md", + "file": "71f3aede2e59870d.md" + }, { "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", "file": "bfe25e4bd2cf097d.md" @@ -4179,7 +9638,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -4187,7 +9646,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4217,10 +9676,18 @@ "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", "file": "46659a758d40373b.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/java-providers.md", + "file": "eab139844783c8e7.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", "file": "6afa98a9c7fd23f6.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/kotlin-providers.md", + "file": "d6bd70c9bf36eb46.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", "file": "608f89f60afad4b9.md" @@ -4251,7 +9718,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -4265,6 +9732,14 @@ "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", "file": "58d380101a100501.md" }, + { + "path": ".claude/skills/metaobjects-codegen/references/java.md", + "file": "e413f6fcd012b1f3.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/kotlin.md", + "file": "d3eaa47c0bbd9332.md" + }, { "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", "file": "e899275df4b48c66.md" @@ -4275,11 +9750,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -4287,23 +9762,35 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/java.md", + "file": "84b5d02029893745.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/kotlin.md", + "file": "ce8ecdef3b83fec0.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "file": "e722c0b063087726.md" }, { - "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", - "file": "1ed66f8d84192ee1.md" + "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", + "file": "0ca6e2534824415a.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", + "file": "a6809eba63ed0e31.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -4315,23 +9802,24 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "a1e428980be88708.md" + "file": "9a968c09f5a225b5.md" } ] }, { - "id": "rust-react-tanstack", + "id": "java-kotlin-react", "servers": [ - "rust" + "java", + "kotlin" ], "clients": [ - "react", - "tanstack" + "react" ], + "migration": false, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -4339,12 +9827,20 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", "file": "2fe5f67ab529af0c.md" }, + { + "path": ".claude/skills/metaobjects-audit/references/java.md", + "file": "003a2dff540a3c7b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/kotlin.md", + "file": "71f3aede2e59870d.md" + }, { "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", "file": "bfe25e4bd2cf097d.md" @@ -4355,7 +9851,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -4363,7 +9859,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4393,10 +9889,18 @@ "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", "file": "46659a758d40373b.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/java-providers.md", + "file": "eab139844783c8e7.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", "file": "6afa98a9c7fd23f6.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/kotlin-providers.md", + "file": "d6bd70c9bf36eb46.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", "file": "608f89f60afad4b9.md" @@ -4427,7 +9931,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -4441,6 +9945,14 @@ "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", "file": "58d380101a100501.md" }, + { + "path": ".claude/skills/metaobjects-codegen/references/java.md", + "file": "e413f6fcd012b1f3.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/kotlin.md", + "file": "d3eaa47c0bbd9332.md" + }, { "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", "file": "e899275df4b48c66.md" @@ -4451,11 +9963,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -4463,27 +9975,39 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/java.md", + "file": "84b5d02029893745.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/kotlin.md", + "file": "ce8ecdef3b83fec0.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "file": "e722c0b063087726.md" }, { - "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", - "file": "1ed66f8d84192ee1.md" + "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", + "file": "0ca6e2534824415a.md" }, { - "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", - "file": "51b5c54862c75382.md" + "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", + "file": "a6809eba63ed0e31.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -4495,22 +10019,24 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "38afc85e1f586918.md" + "file": "9bed4818282c5ace.md" } ] }, { - "id": "rust-angular", + "id": "java-kotlin-react-migrate", "servers": [ - "rust" + "java", + "kotlin" ], "clients": [ - "angular" + "react" ], + "migration": true, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -4518,12 +10044,20 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", "file": "2fe5f67ab529af0c.md" }, + { + "path": ".claude/skills/metaobjects-audit/references/java.md", + "file": "003a2dff540a3c7b.md" + }, + { + "path": ".claude/skills/metaobjects-audit/references/kotlin.md", + "file": "71f3aede2e59870d.md" + }, { "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", "file": "bfe25e4bd2cf097d.md" @@ -4534,7 +10068,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -4542,7 +10076,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4572,10 +10106,18 @@ "path": ".claude/skills/metaobjects-authoring/references/inheritance-tph.md", "file": "46659a758d40373b.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/java-providers.md", + "file": "eab139844783c8e7.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/json-columns.md", "file": "6afa98a9c7fd23f6.md" }, + { + "path": ".claude/skills/metaobjects-authoring/references/kotlin-providers.md", + "file": "d6bd70c9bf36eb46.md" + }, { "path": ".claude/skills/metaobjects-authoring/references/metadata-dependencies.md", "file": "608f89f60afad4b9.md" @@ -4606,7 +10148,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -4620,6 +10162,14 @@ "path": ".claude/skills/metaobjects-codegen/references/dependencies-and-shared-models.md", "file": "58d380101a100501.md" }, + { + "path": ".claude/skills/metaobjects-codegen/references/java.md", + "file": "e413f6fcd012b1f3.md" + }, + { + "path": ".claude/skills/metaobjects-codegen/references/kotlin.md", + "file": "d3eaa47c0bbd9332.md" + }, { "path": ".claude/skills/metaobjects-codegen/references/owning-generators.md", "file": "e899275df4b48c66.md" @@ -4630,11 +10180,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -4642,19 +10192,39 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/java.md", + "file": "84b5d02029893745.md" + }, + { + "path": ".claude/skills/metaobjects-prompts/references/kotlin.md", + "file": "ce8ecdef3b83fec0.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "file": "e722c0b063087726.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", + "file": "0ca6e2534824415a.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", + "file": "a6809eba63ed0e31.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -4666,21 +10236,25 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "8bc54bbb493091cd.md" + "file": "56cb8eb782227155.md" } ] }, { - "id": "java-kotlin", + "id": "java-kotlin-react-tanstack", "servers": [ "java", "kotlin" ], - "clients": [], + "clients": [ + "react", + "tanstack" + ], + "migration": false, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -4688,7 +10262,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", @@ -4696,11 +10270,11 @@ }, { "path": ".claude/skills/metaobjects-audit/references/java.md", - "file": "22c4d86c67650ab0.md" + "file": "003a2dff540a3c7b.md" }, { "path": ".claude/skills/metaobjects-audit/references/kotlin.md", - "file": "9a4c5782dabd6c6e.md" + "file": "71f3aede2e59870d.md" }, { "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", @@ -4712,7 +10286,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -4720,7 +10294,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -4792,7 +10366,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -4824,11 +10398,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -4836,7 +10410,7 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" }, { "path": ".claude/skills/metaobjects-prompts/references/java.md", @@ -4848,23 +10422,31 @@ }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "file": "e722c0b063087726.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", - "file": "83fa1bfb70e0da93.md" + "file": "0ca6e2534824415a.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", - "file": "636d4309c12de5cb.md" + "file": "a6809eba63ed0e31.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", + "file": "1ed66f8d84192ee1.md" + }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", + "file": "930156daf0efbdb6.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -4876,23 +10458,25 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "7ecd2af92a967b5e.md" + "file": "fb1013a9465df54e.md" } ] }, { - "id": "java-kotlin-react", + "id": "java-kotlin-react-tanstack-migrate", "servers": [ "java", "kotlin" ], "clients": [ - "react" + "react", + "tanstack" ], + "migration": true, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -4900,7 +10484,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", @@ -4908,11 +10492,11 @@ }, { "path": ".claude/skills/metaobjects-audit/references/java.md", - "file": "22c4d86c67650ab0.md" + "file": "003a2dff540a3c7b.md" }, { "path": ".claude/skills/metaobjects-audit/references/kotlin.md", - "file": "9a4c5782dabd6c6e.md" + "file": "71f3aede2e59870d.md" }, { "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", @@ -4924,7 +10508,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -4932,7 +10516,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5004,7 +10588,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -5036,11 +10620,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -5048,7 +10632,7 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" }, { "path": ".claude/skills/metaobjects-prompts/references/java.md", @@ -5060,27 +10644,31 @@ }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "file": "e722c0b063087726.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", - "file": "83fa1bfb70e0da93.md" + "file": "0ca6e2534824415a.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", - "file": "636d4309c12de5cb.md" + "file": "a6809eba63ed0e31.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", "file": "1ed66f8d84192ee1.md" }, + { + "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", + "file": "930156daf0efbdb6.md" + }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -5092,24 +10680,24 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "f4a1f275fa640c0f.md" + "file": "f22712e99c347b84.md" } ] }, { - "id": "java-kotlin-react-tanstack", + "id": "java-kotlin-angular", "servers": [ "java", "kotlin" ], "clients": [ - "react", - "tanstack" + "angular" ], + "migration": false, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -5117,7 +10705,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", @@ -5125,11 +10713,11 @@ }, { "path": ".claude/skills/metaobjects-audit/references/java.md", - "file": "22c4d86c67650ab0.md" + "file": "003a2dff540a3c7b.md" }, { "path": ".claude/skills/metaobjects-audit/references/kotlin.md", - "file": "9a4c5782dabd6c6e.md" + "file": "71f3aede2e59870d.md" }, { "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", @@ -5141,7 +10729,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -5149,7 +10737,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5221,7 +10809,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -5253,11 +10841,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -5265,7 +10853,7 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" }, { "path": ".claude/skills/metaobjects-prompts/references/java.md", @@ -5277,31 +10865,23 @@ }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "file": "e722c0b063087726.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", - "file": "83fa1bfb70e0da93.md" + "file": "0ca6e2534824415a.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", - "file": "636d4309c12de5cb.md" - }, - { - "path": ".claude/skills/metaobjects-runtime-ui/references/react.md", - "file": "1ed66f8d84192ee1.md" - }, - { - "path": ".claude/skills/metaobjects-runtime-ui/references/tanstack.md", - "file": "51b5c54862c75382.md" + "file": "a6809eba63ed0e31.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -5313,12 +10893,12 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "d8bac77e560c9b70.md" + "file": "4803fe4f98ccbfed.md" } ] }, { - "id": "java-kotlin-angular", + "id": "java-kotlin-angular-migrate", "servers": [ "java", "kotlin" @@ -5326,10 +10906,11 @@ "clients": [ "angular" ], + "migration": true, "files": [ { "path": ".claude/skills/metaobjects-audit/SKILL.md", - "file": "db66e0e785a6cf50.md" + "file": "6e466a4d852ffd2e.md" }, { "path": ".claude/skills/metaobjects-audit/references/calibration.md", @@ -5337,7 +10918,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/capability-checklist.md", - "file": "9984405efdf695f3.md" + "file": "43a4f77d88acbd3b.md" }, { "path": ".claude/skills/metaobjects-audit/references/drift-signatures.md", @@ -5345,11 +10926,11 @@ }, { "path": ".claude/skills/metaobjects-audit/references/java.md", - "file": "22c4d86c67650ab0.md" + "file": "003a2dff540a3c7b.md" }, { "path": ".claude/skills/metaobjects-audit/references/kotlin.md", - "file": "9a4c5782dabd6c6e.md" + "file": "71f3aede2e59870d.md" }, { "path": ".claude/skills/metaobjects-audit/references/prompt-anti-patterns.md", @@ -5361,7 +10942,7 @@ }, { "path": ".claude/skills/metaobjects-audit/references/surface-review-axes.md", - "file": "9fbf06132414b6be.md" + "file": "1ff8fe71a4ec5b60.md" }, { "path": ".claude/skills/metaobjects-audit/references/vocabulary-hygiene.md", @@ -5369,7 +10950,7 @@ }, { "path": ".claude/skills/metaobjects-authoring/SKILL.md", - "file": "969f739fa94d7a76.md" + "file": "20569df7000013eb.md" }, { "path": ".claude/skills/metaobjects-authoring/references/abstracts-and-overlay.md", @@ -5441,7 +11022,7 @@ }, { "path": ".claude/skills/metaobjects-codegen/SKILL.md", - "file": "c99d78077736fd2d.md" + "file": "e4390a15f912c4e6.md" }, { "path": ".claude/skills/metaobjects-codegen/references/any-stack.md", @@ -5473,11 +11054,11 @@ }, { "path": ".claude/skills/metaobjects-codegen/references/principles.md", - "file": "dd80d926c56ea1e3.md" + "file": "9d8b243f6f1b2dfa.md" }, { "path": ".claude/skills/metaobjects-codegen/references/template-or-code.md", - "file": "f745f2c1411ab2f0.md" + "file": "e0879c95ed161b9e.md" }, { "path": ".claude/skills/metaobjects-codegen/references/wire-format.md", @@ -5485,7 +11066,7 @@ }, { "path": ".claude/skills/metaobjects-prompts/SKILL.md", - "file": "a1b81119468f84a9.md" + "file": "dba8a4cf627beb17.md" }, { "path": ".claude/skills/metaobjects-prompts/references/java.md", @@ -5497,23 +11078,23 @@ }, { "path": ".claude/skills/metaobjects-runtime-ui/SKILL.md", - "file": "0440a95faf89e271.md" + "file": "e722c0b063087726.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/references/java.md", - "file": "83fa1bfb70e0da93.md" + "file": "0ca6e2534824415a.md" }, { "path": ".claude/skills/metaobjects-runtime-ui/references/kotlin.md", - "file": "636d4309c12de5cb.md" + "file": "a6809eba63ed0e31.md" }, { "path": ".claude/skills/metaobjects-verify/SKILL.md", - "file": "80606ed514438d51.md" + "file": "08e1de86f82554ae.md" }, { "path": ".claude/skills/metaobjects-verify/references/migration.md", - "file": "34d60341c7210314.md" + "file": "432f9889e514face.md" }, { "path": ".claude/skills/metaobjects-verify/references/requirements.md", @@ -5525,7 +11106,7 @@ }, { "path": ".metaobjects/AGENTS.md", - "file": "15ee1bc0f67e8e01.md" + "file": "b441cf5d34a266e2.md" } ] } diff --git a/agent-context/evals/README.md b/agent-context/evals/README.md index 355d6de9ec..1c5c200e9b 100644 --- a/agent-context/evals/README.md +++ b/agent-context/evals/README.md @@ -31,3 +31,41 @@ subset. It is manual-only and not part of CI, because model behaviour is not det Re-run it after editing either description. A `Reached maximum number of turns` note on a case is expected: the runs are capped at 3 turns because only the first tool call matters. + +# Skill body A/B (`skill-ab/`) + +The trigger cases above test a skill's `description`. This harness tests its body: the same +23 tasks answered once with one version of the skills installed and once with another, so a +rewrite or a cut can be compared with what it replaced. Run it before merging a change that +removes or restates rules in a `SKILL.md`, and put back any cut that loses a rubric point. + +- `mk_tasks.py ` writes the task set: a small fixture project and one directory per + task (three or four per skill, all seven skills). Each task tells the model which skill to + load, gives it no shell and asks for the answer in `ANSWER.md`. +- `build-arm.ts ` assembles one arm: the installed skill + tree for three stacks from an `agent-context/` directory. Build one arm from the commit you + are comparing against (`git archive agent-context | tar -x -C `) and one from + the working tree. +- `run.sh