From 1f8a043b4d56d83c6df10bdae909df89d68fcef6 Mon Sep 17 00:00:00 2001 From: Revincxt <48945715+Revincxt@users.noreply.github.com> Date: Mon, 31 Aug 2026 13:15:02 +0800 Subject: [PATCH] fix: update links after repository rename --- README.md | 8 ++++---- pyproject.toml | 6 +++--- web/README.md | 2 +- web/app/page.tsx | 6 +++--- web/scripts/export-github-pages.mjs | 4 ++-- web/tests/pages-export.test.mjs | 18 +++++++++--------- web/tests/sites-build.test.mjs | 2 +- 7 files changed, 23 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index f5b5163..9a5f6d4 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@ # Adaptive Agent Lab -[![CI](https://github.com/Revincxt/adaptive-agent-lab/actions/workflows/ci.yml/badge.svg)](https://github.com/Revincxt/adaptive-agent-lab/actions/workflows/ci.yml) +[![CI](https://github.com/Revincxt/adaptive-agent/actions/workflows/ci.yml/badge.svg)](https://github.com/Revincxt/adaptive-agent/actions/workflows/ci.yml) [![Python 3.11+](https://img.shields.io/badge/Python-3.11%2B-3776AB.svg)](https://www.python.org/) -[![Live demo](https://img.shields.io/badge/Live_demo-GitHub_Pages-2F81F7.svg?logo=github)](https://revincxt.github.io/adaptive-agent-lab/) +[![Live demo](https://img.shields.io/badge/Live_demo-GitHub_Pages-2F81F7.svg?logo=github)](https://revincxt.github.io/adaptive-agent/) -[![Adaptive Agent Lab warehouse replay](web/public/og.png)](https://revincxt.github.io/adaptive-agent-lab/) +[![Adaptive Agent Lab warehouse replay](web/public/og.png)](https://revincxt.github.io/adaptive-agent/) **A reproducible laboratory for planning, reinforcement learning, and hybrid agents in dynamic single-robot warehouse delivery.** -> **[Open the multi-map replay explorer →](https://revincxt.github.io/adaptive-agent-lab/)** +> **[Open the multi-map replay explorer →](https://revincxt.github.io/adaptive-agent/)** > Inspect six controllers across four structured warehouse layouts. Each case > is an independent non-confirmatory demonstration, not evidence of an > algorithm ranking. diff --git a/pyproject.toml b/pyproject.toml index 6a0a265..154ca60 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,9 +41,9 @@ dev = [ aal = "adaptive_agent_lab.cli:main" [project.urls] -Homepage = "https://github.com/Revincxt/adaptive-agent-lab" -Repository = "https://github.com/Revincxt/adaptive-agent-lab" -Issues = "https://github.com/Revincxt/adaptive-agent-lab/issues" +Homepage = "https://github.com/Revincxt/adaptive-agent" +Repository = "https://github.com/Revincxt/adaptive-agent" +Issues = "https://github.com/Revincxt/adaptive-agent/issues" [tool.setuptools] package-dir = { "" = "src" } diff --git a/web/README.md b/web/README.md index 44a6063..53353f5 100644 --- a/web/README.md +++ b/web/README.md @@ -47,4 +47,4 @@ pnpm build `pnpm test` includes a production build before checking the rendered HTML. `pnpm test:pages` additionally exports and verifies the public -`/adaptive-agent-lab/` artifact used by GitHub Pages. +`/adaptive-agent/` artifact used by GitHub Pages. diff --git a/web/app/page.tsx b/web/app/page.tsx index 05e785b..152a844 100644 --- a/web/app/page.tsx +++ b/web/app/page.tsx @@ -391,7 +391,7 @@ export default function Home() {

Adaptive Agent Lab

Replay gallery unavailable

{error}

- Open the repository + Open the repository ); } @@ -487,7 +487,7 @@ export default function Home() {
Recorded demonstrations Method - GitHub ↗ + GitHub ↗
@@ -959,7 +959,7 @@ export default function Home() { diff --git a/web/scripts/export-github-pages.mjs b/web/scripts/export-github-pages.mjs index 25fa3e0..61d461b 100644 --- a/web/scripts/export-github-pages.mjs +++ b/web/scripts/export-github-pages.mjs @@ -3,7 +3,7 @@ import { spawn } from "node:child_process"; import { cp, mkdir, readFile, rm, writeFile } from "node:fs/promises"; import { fileURLToPath } from "node:url"; -const pagesBase = process.env.GITHUB_PAGES_BASE_PATH ?? "/adaptive-agent-lab/"; +const pagesBase = process.env.GITHUB_PAGES_BASE_PATH ?? "/adaptive-agent/"; assert.match( pagesBase, @@ -107,7 +107,7 @@ assert.doesNotMatch( ); assert.doesNotMatch( html, - /adaptive-agent-lab\/adaptive-agent-lab/, + /adaptive-agent\/adaptive-agent/, "already-based public URLs must not be rebased twice", ); diff --git a/web/tests/pages-export.test.mjs b/web/tests/pages-export.test.mjs index d176e99..5c7e08f 100644 --- a/web/tests/pages-export.test.mjs +++ b/web/tests/pages-export.test.mjs @@ -7,40 +7,40 @@ test("exports a self-contained GitHub Pages artifact under the repository path", new URL("../dist/pages/index.html", import.meta.url), "utf8", ); - const pagesBase = "/adaptive-agent-lab/"; + const pagesBase = "/adaptive-agent/"; assert.match( html, /Adaptive Agent Lab — Multi-map Replay Explorer<\/title>/i, ); - assert.match(html, /href="\/adaptive-agent-lab\/assets\/[^" ]+\.css"/); - assert.match(html, /import\("\/adaptive-agent-lab\/assets\/[^" ]+\.js"\)/); + assert.match(html, /href="\/adaptive-agent\/assets\/[^" ]+\.css"/); + assert.match(html, /import\("\/adaptive-agent\/assets\/[^" ]+\.js"\)/); assert.match( html, - /href="https:\/\/revincxt\.github\.io\/adaptive-agent-lab\/favicon\.svg"/, + /href="https:\/\/revincxt\.github\.io\/adaptive-agent\/favicon\.svg"/, ); assert.match( html, - /property="og:image" content="https:\/\/revincxt\.github\.io\/adaptive-agent-lab\/og\.png"/, + /property="og:image" content="https:\/\/revincxt\.github\.io\/adaptive-agent\/og\.png"/, ); assert.match( html, - /name="twitter:image" content="https:\/\/revincxt\.github\.io\/adaptive-agent-lab\/og\.png"/, + /name="twitter:image" content="https:\/\/revincxt\.github\.io\/adaptive-agent\/og\.png"/, ); assert.match( html, - /rel="canonical" href="https:\/\/revincxt\.github\.io\/adaptive-agent-lab\/"/, + /rel="canonical" href="https:\/\/revincxt\.github\.io\/adaptive-agent\/"/, ); assert.doesNotMatch( html, /(?:href|src|content)=["']\/(?:assets\/|favicon\.svg|og\.png)/, ); assert.doesNotMatch(html, /import\(["']\/assets\//); - assert.doesNotMatch(html, /adaptive-agent-lab\/adaptive-agent-lab/); + assert.doesNotMatch(html, /adaptive-agent\/adaptive-agent/); const assetUrls = new Set( html.match( - /\/adaptive-agent-lab\/(?:assets\/[^"'\\\s<]+|favicon\.svg|og\.png)/g, + /\/adaptive-agent\/(?:assets\/[^"'\\\s<]+|favicon\.svg|og\.png)/g, ) ?? [], ); assert.ok(assetUrls.size >= 7); diff --git a/web/tests/sites-build.test.mjs b/web/tests/sites-build.test.mjs index 0a58630..2cdc034 100644 --- a/web/tests/sites-build.test.mjs +++ b/web/tests/sites-build.test.mjs @@ -30,7 +30,7 @@ test("builds a self-contained root-path Sites artifact", async () => { html, new RegExp(`property="og:image" content="${canonicalOrigin}/og\\.png"`), ); - assert.doesNotMatch(html, /\/adaptive-agent-lab\/assets\//); + assert.doesNotMatch(html, /\/adaptive-agent\/assets\//); const assetUrls = new Set(html.match(/\/assets\/[^"'\\\s<]+/g) ?? []); assert.ok(assetUrls.size >= 5);