diff --git a/AGENTS.md b/AGENTS.md index 2fa7ae8f33..d6277f7059 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -434,7 +434,7 @@ meta migrate --dry-run # preview without writing migration file meta migrate apply-pending # replay the committed chain against --db (no diff, no metadata) meta verify --codegen --templates # drift gates: generated code and docs pages, prompt bodies meta verify --db | --replay # schema drift vs a live DB | the chain applies to an empty one -meta gen --generators docs,api-docs # only these declared entries; docs are generators (docsFile(), apiDocsFile(), agentDocsFile(), ...) +meta gen --generators docs-site,api-docs # only these declared entries; docs are generators (docsSiteFile(), apiDocsFile(), agentDocsFile(), ...) meta upgrade --apply # rewrite metadata a retirement made illegal meta types [] --format json|toon # what vocabulary this build actually registers meta fmt [...] [--check] # rewrite metadata into canonical form; --check lists drift (#304, every port) diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/f80806308b356cb6.md b/agent-context-shipped/files/1798b962425d3bb5.md similarity index 98% rename from server/rust/metaobjects-cli/agent-context-shipped/files/f80806308b356cb6.md rename to agent-context-shipped/files/1798b962425d3bb5.md index eaa55e3356..be43b2d95e 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/f80806308b356cb6.md +++ b/agent-context-shipped/files/1798b962425d3bb5.md @@ -171,7 +171,7 @@ A concrete report whose read source is `@kind: view` is served by every port's g - **Every derived field with filter operators is filterable and sortable**, dimension and measure alike, with its type's own operators. You cannot narrow that set: a report has no field to put `@filterable` on. A field of the `@from` entity that the report does not expose is refused with a `400`. - A time dimension at `day` or coarser is `YYYY-MM-DD`; a null measure is `null` with the key present (a measure with `@default` is never null); `currency` is integer minor units. - **A decimal (`avg`, a ratio, a `sum` of a decimal) is written per the project's `wire` setting**: by default, the port's language-standard form (a JSON number in C#, Java and Kotlin; a string in Python and TypeScript), and under `"wire": { "decimals": "string" }` one canonical string in every port (`12.5`, never `12.50` or an exponent). Do not parse it as a float to compare. -- `meta gen` writes a model page for every report (`docsFile()`; a sourceless one is marked "Not served") and an API page for a served one (`apiDocsFile()`) — each an ordinary entry in `generators`. +- `meta gen` shows every report in the model explorer (`docsSiteFile()`; a sourceless one is marked "Not served") and writes an API page for a served one (`apiDocsFile()`) — each an ordinary entry in `generators`. The files each port generates are in the `metaobjects-codegen` skill's reference for that language ("Reports"). diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/7324dedeb09d7f35.md b/agent-context-shipped/files/ad2ac665832abd65.md similarity index 97% rename from server/rust/metaobjects-cli/agent-context-shipped/files/7324dedeb09d7f35.md rename to agent-context-shipped/files/ad2ac665832abd65.md index 4ae0b3964a..3c3b010c8f 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/7324dedeb09d7f35.md +++ b/agent-context-shipped/files/ad2ac665832abd65.md @@ -48,7 +48,7 @@ Everything a generator reads comes from `@metaobjectsdev/codegen-ts`: `perEntity `perPackage` / `perModel`, `isAbstract`, `hasAnyRdbSource`, `isProjection`, `servesReadApi` / `servesWriteApi`, `objectRefTarget`, `enumValues`, `effectivePackage`, `packageToPath`, `servedPath`, `toCamelCase` / `toPascalCase` / `toSnakeCase` / -`pluralize`, and `formatTs` (a no-op kept so an owned copy still loads). The config's `apiPrefix` is +`pluralize`. (The `formatTs` no-op export was removed in 1.3.0; delete the import from an owned copy.) The config's `apiPrefix` is `ctx.renderContext?.apiPrefix`. Worked JSON Schema and OpenAPI 3.1 generators to copy: `docs/recipes/generators/typescript/` in the MetaObjects repository. @@ -146,18 +146,19 @@ package, and an owned copy imports it from `@metaobjectsdev/codegen-ts/engine`. Some ejectable entries behave differently from the rest: -- **`docs`, `api-docs`, `requirements` and `agent-docs` are run by `meta gen`, like any +- **`api-docs`, `requirements` and `agent-docs` are run by `meta gen`, like any other entry.** There is no separate docs command (removed in 1.1.0, ADR-0034 Amendment - 9): list `docsFile()`, `apiDocsFile()`, `requirementsFile()` and `agentDocsFile()` in + 9): list `apiDocsFile()`, `requirementsFile()` and `agentDocsFile()` in `generators` the same way you list `entityFile()`. Each defaults to a target named `docs` (`targets.docs.outDir`) unless given its own `target`, and a run that lists one while `targets` has no `docs` entry is refused, naming the generator. To change the - pages, `meta eject docs` (or `api-docs`, `requirements`, `agent-docs`) and list the copy + pages, `meta eject api-docs` (or `requirements`, `agent-docs`) and list the copy in `generators` in place of the packaged factory — there is no separate `docs` block to - put it in. To change only a page's wording, put your own - `templates/docs/entity-page.md.mustache` in the project instead. Full reference: + put it in. To change only a page's wording, point the factory's `templates` option at your own + directory. For people, list `docsSiteFile()` (the model explorer); `docsFile()` (per-object + Markdown pages) was removed in 1.3.0 and `meta gen` refuses it. Full reference: `typescript-docs.md`. -- **The ER diagram comes from `docsFile()`** (overview page, and each entity's page). The +- **The ER diagram is in the model explorer** (`docsSiteFile()`). The standalone `mermaidErDiagram()` / `"mermaid-er"` generator was removed in 1.1; a config that still wires it fails with a message saying so. Remove it and run `meta gen`. - **`shared-model` ejects with its artifact builder.** The copy decides which source files diff --git a/server/rust/metaobjects-cli/agent-context-shipped/files/c5b68292c9103dcc.md b/agent-context-shipped/files/b0da43ca5875f8a4.md similarity index 88% rename from server/rust/metaobjects-cli/agent-context-shipped/files/c5b68292c9103dcc.md rename to agent-context-shipped/files/b0da43ca5875f8a4.md index ff88a88e8a..4b84b257c4 100644 --- a/server/rust/metaobjects-cli/agent-context-shipped/files/c5b68292c9103dcc.md +++ b/agent-context-shipped/files/b0da43ca5875f8a4.md @@ -18,29 +18,28 @@ generate, docs included). Each factory is an ordinary entry in `generators`, fro | Factory | Registry name | Writes | |---|---|---| -| `docsFile()` | `docs` | the neutral model surface — one page per entity and per template (`.md`, `