All your AI agent sessions in one place — browse, search, resume. Rust + GPUI.
Rust
chore(web): rename the website directory to web/
Corey Chiu710caaa1d3c4
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 000468e..2a97d9d 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -180,10 +180,10 @@ jobs:}}- # 官网(site/,托管在 Vercel)的下载按钮在构建时从 GitHub 读最新的完整 Release+ # 官网(web/,托管在 Vercel)的下载按钮在构建时从 GitHub 读最新的完整 Release# (六个产物齐了才算)。三端都传完后触发一次重新部署,新版本的下载链接才会# 在发版当下就换上;没配 VERCEL_DEPLOY_HOOK 这个 secret 时什么都不做。- site:+ web:name: Refresh wake.coolneeds: [macos, linux, windows]runs-on: ubuntu-24.04diff --git a/.github/workflows/site-refresh.yml b/.github/workflows/web-refresh.ymlsimilarity index 86%rename from .github/workflows/site-refresh.ymlrename to .github/workflows/web-refresh.ymlindex 2eb391a..194bfc7 100644--- a/.github/workflows/site-refresh.yml+++ b/.github/workflows/web-refresh.yml@@ -1,4 +1,4 @@-# 官网(site/,托管在 Vercel)的 GitHub 星数与下载链接是构建时取的,两次构建之间不变。+# 官网(web/,托管在 Vercel)的 GitHub 星数与下载链接是构建时取的,两次构建之间不变。# 每天让 Vercel 重新构建一次,数字最多晚一天;没配 VERCEL_DEPLOY_HOOK 这个 secret 时# 什么都不做。也可以在 Actions 页手动点 Run workflow。name: Refresh wake.cooldiff --git a/site/.gitignore b/web/.gitignoresimilarity index 100%rename from site/.gitignorerename to web/.gitignorediff --git a/site/README.md b/web/README.mdsimilarity index 69%rename from site/README.mdrename to web/README.mdindex 0a31e9d..74feee5 100644--- a/site/README.md+++ b/web/README.md@@ -19,6 +19,6 @@ pnpm build # static site in dist/## Deploying-The Vercel project's Root Directory is `site`, and "Include files outside the root directory" must stay on (the build reads `../docs`, `../CHANGELOG.md`, `../Cargo.toml` and `../crates/wake/assets`). Pushes to `main` deploy automatically.+The Vercel project's Root Directory is `web`, and "Include files outside the root directory" must stay on (the build reads `../docs`, `../CHANGELOG.md`, `../Cargo.toml` and `../crates/wake/assets`). Pushes to `main` deploy automatically.-After a release, the `site` job at the end of `.github/workflows/release.yml` calls a Vercel deploy hook once all packages are uploaded, so the download buttons switch to the new version. Create the hook in Vercel (Settings → Git → Deploy Hooks, branch `main`) and store its URL as the `VERCEL_DEPLOY_HOOK` repository secret. The same hook is called once a day by `.github/workflows/site-refresh.yml`, so the GitHub star count in the header is never more than a day old.+After a release, the `web` job at the end of `.github/workflows/release.yml` calls a Vercel deploy hook once all packages are uploaded, so the download buttons switch to the new version. Create the hook in Vercel (Settings → Git → Deploy Hooks, branch `main`) and store its URL as the `VERCEL_DEPLOY_HOOK` repository secret. The same hook is called once a day by `.github/workflows/web-refresh.yml`, so the GitHub star count in the header is never more than a day old.diff --git a/site/astro.config.mjs b/web/astro.config.mjssimilarity index 100%rename from site/astro.config.mjsrename to web/astro.config.mjsdiff --git a/site/package.json b/web/package.jsonsimilarity index 96%rename from site/package.jsonrename to web/package.jsonindex f0e9dcc..1a532d3 100644--- a/site/package.json+++ b/web/package.json@@ -1,5 +1,5 @@{- "name": "wake-site",+ "name": "wake-web","private": true,"type": "module","engines": {diff --git a/site/pnpm-lock.yaml b/web/pnpm-lock.yamlsimilarity index 100%rename from site/pnpm-lock.yamlrename to web/pnpm-lock.yamldiff --git a/site/public/og.png b/web/public/og.pngsimilarity index 100%rename from site/public/og.pngrename to web/public/og.pngdiff --git a/site/scripts/sync-assets.mjs b/web/scripts/sync-assets.mjssimilarity index 100%rename from site/scripts/sync-assets.mjsrename to web/scripts/sync-assets.mjsdiff --git a/site/src/components/Agents.astro b/web/src/components/Agents.astrosimilarity index 100%rename from site/src/components/Agents.astrorename to web/src/components/Agents.astrodiff --git a/site/src/components/ChangelogPage.astro b/web/src/components/ChangelogPage.astrosimilarity index 97%rename from site/src/components/ChangelogPage.astrorename to web/src/components/ChangelogPage.astroindex 5b8587d..f9857e5 100644--- a/site/src/components/ChangelogPage.astro+++ b/web/src/components/ChangelogPage.astro@@ -14,7 +14,7 @@ interface Props {const { lang } = Astro.props;const t = COPY[lang].docs;-// Builds run from site/; the bundled page no longer sits next to its source.+// Builds run from web/; the bundled page no longer sits next to its source.const raw = await readFile(path.resolve(process.cwd(), '../CHANGELOG.md'), 'utf8');const esc = (s: string) => s.replace(/[&<>"]/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"' })[c]!);diff --git a/site/src/components/Connect.astro b/web/src/components/Connect.astrosimilarity index 100%rename from site/src/components/Connect.astrorename to web/src/components/Connect.astrodiff --git a/site/src/components/Demo.astro b/web/src/components/Demo.astrosimilarity index 100%rename from site/src/components/Demo.astrorename to web/src/components/Demo.astrodiff --git a/site/src/components/DocPage.astro b/web/src/components/DocPage.astrosimilarity index 100%rename from site/src/components/DocPage.astrorename to web/src/components/DocPage.astrodiff --git a/site/src/components/Download.astro b/web/src/components/Download.astrosimilarity index 100%rename from site/src/components/Download.astrorename to web/src/components/Download.astrodiff --git a/site/src/components/Faq.astro b/web/src/components/Faq.astrosimilarity index 100%rename from site/src/components/Faq.astrorename to web/src/components/Faq.astrodiff --git a/site/src/components/Footer.astro b/web/src/components/Footer.astrosimilarity index 100%rename from site/src/components/Footer.astrorename to web/src/components/Footer.astrodiff --git a/site/src/components/Hero.astro b/web/src/components/Hero.astrosimilarity index 100%rename from site/src/components/Hero.astrorename to web/src/components/Hero.astrodiff --git a/site/src/components/Home.astro b/web/src/components/Home.astrosimilarity index 100%rename from site/src/components/Home.astrorename to web/src/components/Home.astrodiff --git a/site/src/components/Icon.astro b/web/src/components/Icon.astrosimilarity index 100%rename from site/src/components/Icon.astrorename to web/src/components/Icon.astrodiff --git a/site/src/components/Insights.astro b/web/src/components/Insights.astrosimilarity index 100%rename from site/src/components/Insights.astrorename to web/src/components/Insights.astrodiff --git a/site/src/components/LangSwitch.astro b/web/src/components/LangSwitch.astrosimilarity index 100%rename from site/src/components/LangSwitch.astrorename to web/src/components/LangSwitch.astrodiff --git a/site/src/components/LocalizeLinks.astro b/web/src/components/LocalizeLinks.astrosimilarity index 100%rename from site/src/components/LocalizeLinks.astrorename to web/src/components/LocalizeLinks.astrodiff --git a/site/src/components/More.astro b/web/src/components/More.astrosimilarity index 100%rename from site/src/components/More.astrorename to web/src/components/More.astrodiff --git a/site/src/components/Nav.astro b/web/src/components/Nav.astrosimilarity index 100%rename from site/src/components/Nav.astrorename to web/src/components/Nav.astrodiff --git a/site/src/components/Principles.astro b/web/src/components/Principles.astrosimilarity index 100%rename from site/src/components/Principles.astrorename to web/src/components/Principles.astrodiff --git a/site/src/components/Resume.astro b/web/src/components/Resume.astrosimilarity index 100%rename from site/src/components/Resume.astrorename to web/src/components/Resume.astrodiff --git a/site/src/content.config.ts b/web/src/content.config.tssimilarity index 100%rename from site/src/content.config.tsrename to web/src/content.config.tsdiff --git a/site/src/layouts/Base.astro b/web/src/layouts/Base.astrosimilarity index 100%rename from site/src/layouts/Base.astrorename to web/src/layouts/Base.astrodiff --git a/site/src/lib/agents.ts b/web/src/lib/agents.tssimilarity index 100%rename from site/src/lib/agents.tsrename to web/src/lib/agents.tsdiff --git a/site/src/lib/copy.ts b/web/src/lib/copy.tssimilarity index 100%rename from site/src/lib/copy.tsrename to web/src/lib/copy.tsdiff --git a/site/src/lib/demo-data.ts b/web/src/lib/demo-data.tssimilarity index 100%rename from site/src/lib/demo-data.tsrename to web/src/lib/demo-data.tsdiff --git a/site/src/lib/insights-data.ts b/web/src/lib/insights-data.tssimilarity index 100%rename from site/src/lib/insights-data.tsrename to web/src/lib/insights-data.tsdiff --git a/site/src/lib/rehype-repo-links.mjs b/web/src/lib/rehype-repo-links.mjssimilarity index 100%rename from site/src/lib/rehype-repo-links.mjsrename to web/src/lib/rehype-repo-links.mjsdiff --git a/site/src/lib/release.ts b/web/src/lib/release.tssimilarity index 96%rename from site/src/lib/release.tsrename to web/src/lib/release.tsindex cd06103..487a24b 100644--- a/site/src/lib/release.ts+++ b/web/src/lib/release.ts@@ -19,7 +19,7 @@ export interface Release {}async function gh(endpoint: string): Promise<any | null> {- const headers: Record<string, string> = { Accept: 'application/vnd.github+json', 'User-Agent': 'wake-site' };+ const headers: Record<string, string> = { Accept: 'application/vnd.github+json', 'User-Agent': 'wake-web' };if (process.env.GITHUB_TOKEN) headers.Authorization = `Bearer ${process.env.GITHUB_TOKEN}`;try {const res = await fetch(`https://api.github.com/repos/${REPO}${endpoint}`, { headers, signal: AbortSignal.timeout(8000) });@@ -30,7 +30,7 @@ async function gh(endpoint: string): Promise<any | null> {}async function workspaceVersion(): Promise<string> {- // Builds run from site/ (the bundled module no longer sits next to its source).+ // Builds run from web/ (the bundled module no longer sits next to its source).const toml = await readFile(path.resolve(process.cwd(), '../Cargo.toml'), 'utf8');const m = toml.match(/^version\s*=\s*"([^"]+)"/m);if (!m) throw new Error('No version in Cargo.toml');diff --git a/site/src/pages/404.astro b/web/src/pages/404.astrosimilarity index 100%rename from site/src/pages/404.astrorename to web/src/pages/404.astrodiff --git a/site/src/pages/changelog.astro b/web/src/pages/changelog.astrosimilarity index 100%rename from site/src/pages/changelog.astrorename to web/src/pages/changelog.astrodiff --git a/site/src/pages/docs/[slug].astro b/web/src/pages/docs/[slug].astrosimilarity index 100%rename from site/src/pages/docs/[slug].astrorename to web/src/pages/docs/[slug].astrodiff --git a/site/src/pages/index.astro b/web/src/pages/index.astrosimilarity index 100%rename from site/src/pages/index.astrorename to web/src/pages/index.astrodiff --git a/site/src/pages/zh/changelog.astro b/web/src/pages/zh/changelog.astrosimilarity index 100%rename from site/src/pages/zh/changelog.astrorename to web/src/pages/zh/changelog.astrodiff --git a/site/src/pages/zh/docs/[slug].astro b/web/src/pages/zh/docs/[slug].astrosimilarity index 100%rename from site/src/pages/zh/docs/[slug].astrorename to web/src/pages/zh/docs/[slug].astrodiff --git a/site/src/pages/zh/index.astro b/web/src/pages/zh/index.astrosimilarity index 100%rename from site/src/pages/zh/index.astrorename to web/src/pages/zh/index.astrodiff --git a/site/src/scripts/dawn.ts b/web/src/scripts/dawn.tssimilarity index 100%rename from site/src/scripts/dawn.tsrename to web/src/scripts/dawn.tsdiff --git a/site/src/scripts/demo.ts b/web/src/scripts/demo.tssimilarity index 100%rename from site/src/scripts/demo.tsrename to web/src/scripts/demo.tsdiff --git a/site/src/styles/global.css b/web/src/styles/global.csssimilarity index 100%rename from site/src/styles/global.cssrename to web/src/styles/global.cssdiff --git a/site/tsconfig.json b/web/tsconfig.jsonsimilarity index 100%rename from site/tsconfig.jsonrename to web/tsconfig.jsondiff --git a/site/vercel.json b/web/vercel.jsonsimilarity index 100%rename from site/vercel.jsonrename to web/vercel.json