Skip to content

Commit 9df5008

Browse files
authored
chore(landing): remove the public website now served by simstudioai/site (#10759)
* chore(landing): remove the public website now served by simstudioai/site The marketing site moved to its own static service. The load balancer sends its paths there (simstudioai/infra#594), so the platform stops serving them and keeps only what it must answer. - / stays platform-owned: a session cookie hint goes to the app entry, self-hosted deployments go to sign-in, and anonymous Sim Cloud visitors get the website's homepage from LANDING_INTERNAL_ORIGIN through a bounded private fetch (5 s, 2 MiB, HTML only, no redirects, no upstream cookies, no visitor headers forwarded) with a minimal sign-in fallback page. - /integrations/* redirects to each integration's docs page, by catalog, docs or retired slug, alongside the /models redirects from the docs move. - Removes the (landing) route group, blog/library/changelog/customer content and assets, sitemap, robots, llms.txt, feeds, Markdown negotiation, the contact and integration-request APIs, landing-only libs, scripts, CI jobs, dependencies, CSP allowances (Cal.com, X pixel, changelog media) and the Docker content copy. Keeps /api/demo-requests, short links, icons (adds /apple-touch-icon.png), share-preview font and email assets. - Legal links now point at the website, since self-hosted no longer serves those pages. * chore(landing): remove exports, icons and deps the website left unused knip found the marketing-only icons, emcn and renderer exports, root devDependencies and the cookie-preferences trigger that only the landing used. The MCP host e2e no longer expects the Markdown 404, which left with the website. * fix(landing): harden the homepage bridge and keep what old links still load - The website's page policy is carried over only when it is the single policy and keeps script-src (or default-src) free of 'unsafe-inline', 'unsafe-eval', *, data: and http:; a missing, repeated or unsafe policy, or an empty page, falls back to the sign-in page. No copy of the policy lives here any more. - The homepage is cached for a minute in one lru-cache entry, concurrent misses share one fetch, and the last good page is served for up to an hour while the website fails. Failures log at most once a minute and the 503 fallback logs as a degraded response, not a server error. - The proxy runs its scanner filter before handing / to the route. - Restores robots.txt for self-hosted deployments and hosts the website does not answer, the newsletter hero artwork (with its immutable cache rule), and keeps the IndexNow key. - The Slack docs page carries the App Directory install steps, privacy line and paid-plan AI disclaimer that /integrations/slack used to show. - Settings' Sim home button navigates by document, since / is outside the app router; the mobile e2e expects self-hosted to land back in the app. * feat(landing): serve the website's Markdown homepage to clients that ask A GET or HEAD of / whose Accept names text/markdown at a nonzero quality gets the website's /index.md through the same bridge (private fetch, no visitor data, size and time bounds, no redirects or cookies), checked as text/markdown instead of HTML and cached in its own entry. It carries Link: <https://www.sim.ai/>; rel="canonical", and every answer at / varies on Accept and Cookie. text/markdown;q=0 keeps the HTML page. * chore(landing): remove what only the website used and rename its e2e - Drops the website-only PostHog events, hero animations, auth button and landing theme tokens, the landing workflow seed and its home branch, the unused LandingPromptStorage.hasPrompt, README-era static GIFs and the unused landing logo; keeps the logo, newsletter images and IndexNow key that delivered emails and the site still load. - The proxy now runs for /enterprise/claim (its CSP and indexing policy); the matcher no longer skips paths that have no files. - Enterprise claims and GitHub knowledge setup keep their light theme. - The landing workflow templates move to the corpus test fixtures. - The seo e2e group becomes public-routes and also checks the IndexNow key. - Drops the CI prerender assertion for blog and library posts and updates stale comments and docs that described the website. * fix(landing): never make visitors wait on a stale homepage, and log why - A homepage over a minute old is served at once while one background refresh runs (allowStale), so a hanging website no longer delays every visitor; past the hour cap the visitor waits for a refresh instead of getting a 503 when the website has recovered. - A Markdown request falls back to the HTML homepage when the website has no Markdown copy or it fails; the 503 is served only when HTML fails too. - The page-policy check also covers script-src-elem and script-src-attr and refuses bare scheme sources and wildcard hosts; the site's production policy is a passing fixture. - The real refusal reason is logged for a cold failure and for a stale serve, with separate throttles for unavailable, stale and Markdown. * fix(landing): type the homepage cache status with its context lru-cache's Status takes the key, value and fetch-context types. * fix(landing): keep the website's indexing directives at / The website's X-Robots-Tag (noindex on a non-indexable build) now reaches the HTML and Markdown answers at /, so the homepage isn't indexable there while the website's own copy isn't. Only known directives pass; a header with anything else is dropped. * feat(docs): give integration pages the search wording the website pages had The website's /integrations/* addresses now redirect to the docs, so the docs pages keep what made those pages rank: - Each integration page's title reads "<Name> integration for AI agents" (or the hand-tuned title the website used, such as GitHub's and Apollo's), with the website's catalog-built description. - Each page ends with the website's FAQ, built from the catalog (tools, triggers, auth) or the hand-tuned one, shown on the page and as FAQPage structured data. New integrations get both with no extra step. - The integrations index lists every integration by category with the catalog totals, and carries the website's five catalog questions. - A test checks every former integration address redirects to a docs page that exists. * fix(docs): register the integration catalog component and give it a Markdown form The docs compiler allows only listed MDX components; the catalog now is one, and the Markdown copy of the integrations index lists the same categories and integrations. * fix(docs): compile the integration catalog and FAQs as page content - The integrations index's catalog and each integration page's FAQ are expanded into the page's Markdown at compile time, so they are in the table of contents, the anchor and link checks, the Markdown copy, llms-full.txt and search, each under its own section. FAQPage structured data stays, and TechArticle uses the search description. - The compile cache now invalidates when the catalog, its totals or the integration SEO data change. - The index description states the counts correctly. - The route test for indexing directives checks an allowlisted directive passes through. * fix(docs): keep evaluation models out of model FAQ answers and say retired models are listed for reference * fix(docs): mention cached input cost only for models that publish one * fix(docs): name only priced models as cheapest and format near-million counts as 1M * fix(docs): say a model's pricing is unpublished instead of listing it at $0 * chore(ci): format the CI plan query * test(docs): give the catalog compile tests room for the compiler's cold start
1 parent 4a74051 commit 9df5008

1,603 files changed

Lines changed: 2714 additions & 152844 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/skills/design-taste-frontend/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ source: https://github.com/leonxlnx/taste-skill — skills/taste-skill/SKILL.md
44
description: Anti-slop frontend skill for landing pages, portfolios, and redesigns. The agent reads the brief, infers the right design direction, and ships interfaces that do not look templated. Real design systems when applicable, audit-first on redesigns, strict pre-flight check.
55
---
66

7-
> **In this repo:** Tailwind 4 (CSS-first config in `apps/sim/app/_styles/globals.css`); animation via `import { motion } from 'framer-motion'` (not `motion/react`); icons from `@sim/emcn/icons`; colors through the CSS-variable tokens in `.claude/rules/sim-styling.md` (no hardcoded `text-gray-*`/hex/`zinc` utilities, no paired `dark:` utilities). This note overrides any conflicting guidance or code sample anywhere in this file. Fonts are fixed (Season body, Inter); never introduce new families, and never use Martian Mono on landing (`apps/sim/app/(landing)/CLAUDE.md`). Font weight is only `font-normal`/`font-medium`/`font-semibold`. Elevation uses the `shadow-subtle|medium|overlay|card` tokens. Type size uses named tokens, never `text-[Npx]`. Every labeled field inside a `ChipModalBody` is a `ChipModalField`. Use `bunx`, never `npx`. Do not add GSAP, Lenis, Three, or shadcn. On landing pages, motion is CSS first; an animation library stays out of the initial bundle and loads below the fold through `next/dynamic` (`apps/sim/app/(landing)/CLAUDE.md`). Landing copy and SEO follow `.claude/rules/constitution.md` and `.claude/rules/landing-seo-geo.md`.
7+
> **In this repo:** Tailwind 4 (CSS-first config in `apps/sim/app/_styles/globals.css`); animation via `import { motion } from 'framer-motion'` (not `motion/react`); icons from `@sim/emcn/icons`; colors through the CSS-variable tokens in `.claude/rules/sim-styling.md` (no hardcoded `text-gray-*`/hex/`zinc` utilities, no paired `dark:` utilities). This note overrides any conflicting guidance or code sample anywhere in this file. Fonts are fixed (Season body, Inter); never introduce new families. Font weight is only `font-normal`/`font-medium`/`font-semibold`. Elevation uses the `shadow-subtle|medium|overlay|card` tokens. Type size uses named tokens, never `text-[Npx]`. Every labeled field inside a `ChipModalBody` is a `ChipModalField`. Use `bunx`, never `npx`. Do not add GSAP, Lenis, Three, or shadcn. The public website lives in `simstudioai/site`, not this repo; product copy follows `.claude/rules/constitution.md`.
88
99
# tasteskill: Anti-Slop Frontend Skill
1010

‎.agents/skills/ship/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ When the user runs `/ship`:
5959
```
6060
Then `git status --short` to see what regenerated — those files must be staged in step 7 alongside your own changes.
6161
62-
**Do NOT blanket-run the domain generators here.** `mship-tools:generate` merges Sim's tool contracts into the base tool catalog in the **external** Mothership worker checkout (`<mothership>/worker/packages/contracts/tool-catalog-v1.json`), which most worktrees lack, so it hard-fails with `ENOENT` and would abort ship for an unrelated reason. The other mothership contracts in `apps/sim/lib/mothership/generated/` are copied in by the worker's `contracts:sync`, never generated here. `generate:pi-model-catalog` (under `apps/sim`) likewise regenerates from the installed Pi package, not repo source. `scripts/generate-docs.ts` rewrites the integration docs and client-safe catalog; run it when this PR changes their block/icon/landing-content inputs or when `check:integration-catalog` reports drift, then review its broad generated diff. Only when **this PR's diff actually touches** a domain generator's input do you regenerate it deliberately and run its matching `:check` (e.g. `bun run mship-tools:check`) — with the external source present.
62+
**Do NOT blanket-run the domain generators here.** `mship-tools:generate` merges Sim's tool contracts into the base tool catalog in the **external** Mothership worker checkout (`<mothership>/worker/packages/contracts/tool-catalog-v1.json`), which most worktrees lack, so it hard-fails with `ENOENT` and would abort ship for an unrelated reason. The other mothership contracts in `apps/sim/lib/mothership/generated/` are copied in by the worker's `contracts:sync`, never generated here. `generate:pi-model-catalog` (under `apps/sim`) likewise regenerates from the installed Pi package, not repo source. `scripts/generate-docs.ts` rewrites the integration docs and client-safe catalog; run it when this PR changes their block or icon inputs or when `check:integration-catalog` reports drift, then review its broad generated diff. Only when **this PR's diff actually touches** a domain generator's input do you regenerate it deliberately and run its matching `:check` (e.g. `bun run mship-tools:check`) — with the external source present.
6363
6464
**Phase B — run lint + every audit CI enforces, in parallel, and abort ship if any fails.** Before running the commands, compare this list with `.github/workflows/checks.yml`; when CI adds an audit, run it and update this skill instead of trusting a stale snapshot. The env-flag audit is currently an inline workflow block rather than a package script: when `apps/sim/lib/core/config/env-flags.ts` changed, run that current workflow block verbatim instead of copying a second version into this skill. Run `bun run lint` first (it autofixes formatting and mutates files, so don't parallelize it with the read-only audits), then run the base-sensitive block-registry check, then fan the independent audits out and collect exit codes:
6565
```bash

‎.claude/rules/constitution.md‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
---
22
description: Sim product language, positioning, and tone guidelines
33
paths:
4-
- "apps/sim/app/(landing)/**"
5-
- "apps/sim/lib/landing/**"
6-
- "apps/sim/content/**"
74
- "apps/sim/emails/broadcasts/**"
85
- "apps/sim/app/layout.tsx"
96
- "apps/sim/app/manifest.ts"
10-
- "apps/sim/app/llms*.txt/**"
11-
- "apps/sim/app/changelog.xml/**"
127
- "apps/docs/**"
138
---
149

1510
# Sim — Language & Positioning
1611

17-
When editing user-facing copy (landing pages, docs, metadata, marketing), follow these rules.
12+
When editing user-facing copy (docs, metadata, emails, marketing), follow these rules. The public website's copy lives in `simstudioai/site`.
1813

1914
## Identity
2015

‎.claude/rules/landing-seo-geo.md‎

Lines changed: 0 additions & 48 deletions
This file was deleted.

‎.claude/rules/sim-ui-copy.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ paths:
99

1010
**Do not add subtitles, helper text, or descriptive copy beneath headings, labels, cards, or settings by default.** Prefer one concise, self-explanatory heading or label. Only add supporting copy when the user explicitly asks for it, or when it is necessary to prevent misunderstanding or error — and never use it to restate the heading.
1111

12-
This applies to product surfaces: settings rows, modals, panels, cards, list rows, empty states, form fields, and section headers. Marketing surfaces (`app/(landing)`, docs) are governed by `constitution.md` instead.
12+
This applies to product surfaces: settings rows, modals, panels, cards, list rows, empty states, form fields, and section headers. Marketing surfaces (docs, emails) are governed by `constitution.md` instead.
1313

1414
**Carve-out — settings section metadata.** `SettingsNavigationItem.description` in `components/settings/navigation.ts` stays required, and `SettingsPanel` keeps rendering it as the page subtitle. Settings sections are reached through a nav list where the description is the only thing distinguishing adjacent sections, so it earns its place by the "prevents misunderstanding" test. Keep those descriptions verb-first and one line, per `sim-settings-pages.md`. Everything else on a settings page — inline `<p>` blurbs under section headings, field hints, modal bodies, row subtitles — follows the default rule above.
1515

‎.cursor/rules/constitution.mdc‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
description: "Sim product language, positioning, and tone guidelines"
3-
globs: ["apps/sim/app/(landing)/**","apps/sim/lib/landing/**","apps/sim/content/**","apps/sim/emails/broadcasts/**","apps/sim/app/layout.tsx","apps/sim/app/manifest.ts","apps/sim/app/llms*.txt/**","apps/sim/app/changelog.xml/**","apps/docs/**"]
3+
globs: ["apps/sim/emails/broadcasts/**","apps/sim/app/layout.tsx","apps/sim/app/manifest.ts","apps/docs/**"]
44
---
55

66
<!-- Generated from .claude/rules/constitution.md by `bun run skills:sync`. Edit the source, not this file. -->
77

88
# Sim — Language & Positioning
99

10-
When editing user-facing copy (landing pages, docs, metadata, marketing), follow these rules.
10+
When editing user-facing copy (docs, metadata, emails, marketing), follow these rules. The public website's copy lives in `simstudioai/site`.
1111

1212
## Identity
1313

0 commit comments

Comments
 (0)