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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions changelog.d/bun-1-3-14-package-manager.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- **Repository: Bun 1.3.14 is the declared package manager.** The root `package.json` now
declares `bun@1.3.14`, the version every workflow pins, in place of 1.3.8 (which segfaults on
exit). Rebuilding or checking the explorer app (`server/typescript/packages/docs-site/scripts/build-app.ts`,
the `explorer app copies` gate and its unit test) requires that exact version, because the
committed bundle is minified and minified output follows the Bun version; any other Bun stops
with an error naming 1.3.14.
9 changes: 9 additions & 0 deletions changelog.d/explorer-3d-map.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- **docs-site: a 3D model map.** The explorer's map has a **View** control that switches
between the flat map and a 3D one drawn from the same nodes, edges, slice and colouring
(`#/map.html?view=3d`); click a node for the side panel and again to open its page. The 3D
library, 3d-force-graph 1.77.0 (MIT, bundling three.js; the licences of everything it bundles
head the file), ships with the site as `assets/3d-force-graph.min.js` and loads only when a
reader first chooses 3D, so it works offline and no other page pays for its size. A static
export given an `assetBase` loads it from the mirror instead. An owned
`explorer-map.html.mustache` without the control simply has no 3D mode. Generated-output
change — regenerate to pick it up; three-way merge preserves hand edits.
21 changes: 21 additions & 0 deletions changelog.d/explorer-app.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
- **docs-site: the model explorer is one browser app.** `docsSiteFile()` now writes the
explorer as a few files (a shell, the app, the theme, Cytoscape and three data files:
`explorer.json`, `explorer-model.js`, `explorer-stamp.js`) in place of a page per screen.
The app draws every page when it is visited, with the same page code and templates, so each
page is byte-for-byte the one the static site wrote. It runs from `file://` with no server,
addresses each page as `index.html#/<page>`, and follows the model while it is open: it polls
the stamp file about once a second and draws the current page again when `meta gen` rewrites
the model. Cytoscape 3.30.2 (MIT) ships with the site, so the graphs draw offline and the
CDN notice is gone. `docsSiteFile({ output: "static" })` (and `generateExplorerSite({ output:
"static" })`) writes the earlier page-per-screen site from the same code, for publishing
without scripts or for Pagefind; `assetBase` now applies to that export only, which given one
loads Cytoscape from it and ships no copy. The app's files live once at `explorer-app/` and
in every port's package (`scripts/sync-explorer-app.sh`, gated by `explorer app copies`);
the other ports' docs-site generators are still to write them. Generated-output change: the
next `meta gen` replaces the explorer's pages with the app's files, and `meta verify
--codegen` holds the new files to the model as before.
If you ejected the theme on a 1.3.0 candidate, your `codegen/docs-site/assets/explorer.js`
predates the app, which calls `window.MO_THEME` each time it draws a page: without that hook
search, the theme toggle and the graphs do nothing. Copy it again with `meta eject docs-site
--force` and carry your edits into the new copy (the app also needs its `window.MO_APP` link,
query and listener hooks, so adding the one line is not enough).
10 changes: 10 additions & 0 deletions changelog.d/explorer-live-source.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- **runtime-ts: `GET {apiPrefix}/_meta/docs` serves the loaded model's docs view, and the
explorer follows it.** New `mountMetaDocsRoute` (Fastify) and `mountMetaDocsRouteHono` mount
it beside `/_meta`, opt-in and guarded the same way, with `META_DOCS_ROUTE_PATH` and
`metaDocsJson(root, { routes })` for other hosts. The response carries an ETag and answers a
matching `If-None-Match` with `304`; `allowOrigin` opts in to cross-origin reads. Open the
explorer app as `index.html?source=<that URL>` and it reads the running application's model
instead of the generated file, once a second, drawing the open page again when the
application restarts on a changed model. The route's shape is a cross-port contract
(`docs/features/metadata-api.md`); the other ports serve it once they have their docs view
builders.
10 changes: 6 additions & 4 deletions docs/CONFORMANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ regenerate with `ls -d fixtures/<corpus>/*/ | wc -l` for directory-shaped corpor
| [`fixtures/cube-model/`](../fixtures/cube-model/) (FR-044 Plan 4 — the `cube-model` generator's golden Cube files, plus the canonical model's golden) | 46 cases (36 trees + 10 errors) + 1 canonical golden | ✓ (the exporter is TypeScript-only, spec R6; its `cube` lane also loads the files into a real Cube) | — | — | — | — | — |
| [`fixtures/writer-conformance/`](../fixtures/writer-conformance/) (ADR-0063 — the code writer generators write through) | 88 cases (31 core + 10 TypeScript + 9 Java + 12 Kotlin + 6 C# + 12 Python + 8 Rust) | ✓ (the first writer; core and TypeScript dialect) | ✓ (core and Java dialect; `JavaWriter` in `codegen-base`) | ✓ (core and Kotlin dialect; `KotlinWriter` in `codegen-kotlin`) | ✓ (core and C# dialect) | ✓ (core and Python dialect) | ✓ (core and Rust dialect) |
| [`fixtures/contract-conformance/`](../fixtures/contract-conformance/) (FR-022 — the `contract-schema` and `openapi` generators' golden trees and refusals) | 22 cases (17 trees + 5 errors) | ✓ (one neutral engine, ADR-0034 Amendment 10; the generated API lanes also hold real traffic to the documents) | — | — | — | — | — |
| [`fixtures/explorer-conformance/`](../fixtures/explorer-conformance/) (the docs view: a loaded project + the verify payload, manifest and routes in, one `explorer.json` out) | 2 cases (`shop`, `crm`) | ✓ | — | — | — | — | — |
| [`fixtures/explorer-conformance/`](../fixtures/explorer-conformance/) (the docs view: a loaded project + the verify payload, manifest and routes in, one `explorer.json` out) | 3 cases (`shop`, `crm`, `model-alone`) | ✓ | — | — | — | — | — |

**Rust (ADR-0065)** joined the table with its service stack. Its ledgers (the metamodel
corpus's `server/rust/metaobjects/tests/conformance-expected-failures.json`, empty; the YAML
Expand Down Expand Up @@ -897,7 +897,7 @@ message. The case list, with the rule each pins, is the
(`server/typescript/packages/integration-tests/cube-live/cube-model.live.ts`) loads the same
files into a real Cube.

### `fixtures/explorer-conformance/` (2 cases)
### `fixtures/explorer-conformance/` (3 cases)

The docs view → [features/docs-view.md](features/docs-view.md). Each case is a `project/` and
its optional committed inputs (`verify.json`, what `meta verify --format json` writes for it;
Expand All @@ -910,12 +910,14 @@ data-driven provider for vocabulary the core does not register (`page.list`, `bl
`capability.module`): its members and references must appear with no docs code that names them.
It also pins three id rules: a page declared before the entity it shares a name with leaves the
entity its claims, a reference and a claim naming an inherited member land on the owner's row,
and a nameless member keeps its index in its label.
and a nameless member keeps its index in its label. `model-alone` carries no optional input:
its `expected.json` is the body the running application's `GET {apiPrefix}/_meta/docs` serves.

**One port runs it:** TypeScript, in
`server/typescript/packages/metadata/test/docs-view-conformance.test.ts` (the view) and
`server/typescript/packages/cli/test/explorer-fixture.test.ts` (the committed `verify.json` files
are what the gate writes today). A port loads the project with the provider applied, builds its
are what the gate writes today) and `server/typescript/packages/runtime-ts/test/meta-docs-route.test.ts`
(the docs view route serves `model-alone/expected.json`). A port loads the project with the provider applied, builds its
own view and compares; the view reads the port's own loaded model, so it is a port's step, not a
shared input.

Expand Down
Loading
Loading