docs: update portal for WRNexusJS 0.8.72

- Bump every @wrnexus/* dependency to its latest release (ui 0.8.88,
  styles 0.8.26, cli 0.8.72, core 0.8.16, i18n 0.8.12, ...) and refresh
  bun.lock and package-lock.json. graphql/native 0.8.8 were republished,
  so their stale lockfile integrity entries were re-resolved.
- wrnexus.config.ts: drop `functions` and `compatibility`, both removed
  from the framework.
- Regenerate package, portal and discovery docs from the installed
  packages, including the new 0.8.72 release page.
- Package pages now install each package's own released version
  (ui 0.8.88, core 0.8.16) instead of stamping the CLI version on all.
- llms.txt / llms-full.txt: the generator kept every earlier run's CLI
  reference and appended another; it now replaces it, so the guide holds
  one current reference and no longer advertises the removed
  `wrnexus compatibility` command.
- docs.test.ts: compileWireFile was renamed compileWrnFile; tests follow
  the per-package install versions and the removed command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClintchizandClaude Opus 5.5 committed 2026-09-30 16:46:32 +05:30
1 parent 5c591ab7de
commit b536b57447
105 files changed
+24822 -12503

No files matched your search

+9 -4
View File
@@ -3,7 +3,7 @@ import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync } from
import { tmpdir } from "node:os";
import { join } from "node:path";
import { pathToFileURL } from "node:url";
import { compileWireFile } from "@wrnexus/compiler";
import { compileWrnFile } from "@wrnexus/compiler";
import { mountHtml } from "@wrnexus/test";
const root = join(import.meta.dir, "..");
@@ -70,7 +70,10 @@ test("generates one detailed page for every published package", () => {
test("every package page contains installation, guide, and complete API sections", () => {
for (const name of expected) {
const source = readFileSync(join(packagePages, `${name}.wrn`), "utf8");
expect(source).toContain(`bun add @wrnexus/${name}@${frameworkVersion}`);
const installed = JSON.parse(
readFileSync(join(root, "node_modules", "@wrnexus", name, "package.json"), "utf8"),
).version;
expect(source).toContain(`bun add @wrnexus/${name}@${installed}`);
expect(source).toContain('id="guide"');
expect(source).toContain('id="api"');
expect(source).toContain("Complete TypeScript API");
@@ -186,7 +189,9 @@ test("portal exposes truthful access and machine discovery", () => {
expect(llms).toContain("https://component.wrnexusjs.dev/");
expect(llms).toContain("# Complete CLI command reference");
expect(llms).toContain("wrnexus production [workspace-dir]");
expect(llms).toContain("wrnexus compatibility <check|explain|upgrade>");
// The compatibility command was removed from the CLI along with the
// compatibility config surface; the guide must not advertise it.
expect(llms).not.toContain("wrnexus compatibility <check|explain|upgrade>");
expect(llms).toContain("wrnexus inspect component <name>");
expect(llms).toContain("## CLI workflows with expected output");
expect(llms).toContain("✓ Application types are valid");
@@ -273,7 +278,7 @@ test("clicking a category hides packages from other categories", async () => {
const directory = join(tmpdir(), "wrnexus-doc-tests");
mkdirSync(directory, { recursive: true });
const modulePath = join(directory, `packages-${Date.now()}.ts`);
writeFileSync(modulePath, compileWireFile(source));
writeFileSync(modulePath, compileWrnFile(source));
const page = (await import(pathToFileURL(modulePath).href)).default as () => string;
const mounted = mountHtml(page());
const dataButton = mounted