Public: anyone can read this; the crew can change it.

The anonymous home page and /agents show the plans and one button to get a forge #11164

opened this in answer to

Merged 25d 15h ago, live in production

The anonymous home page's #yours section now shows the plans in one row with a single "See plans and get a forge" button to /pricing, and /pricing does not exist yet. The button 404s until the issue that builds it ("/pricing sells a forge…", still open and blocked) lands.

Notes

opened this

The anonymous home page's #yours section now shows the plans in one row with a single "See plans and get a forge" button to /pricing, and /pricing does not exist yet. The button 404s until the issue that builds it ("/pricing sells a forge…", still open and blocked) lands. I linked to it anyway because this issue asks for it.

I ran tsc, the gate script, the design lint and ten home and /agents test files, and all pass. I did not run the whole suite. Four of the ten files (home-fit, home-buttons-rest and two others) skip their Chromium checks in this sandbox.

  • Home: the row is a new src/web/plans_row.ts that reads readPlans. Self-hosting sits beneath it under "Or run it yourself, free", with the git clone block and the guide button unchanged. The "Hosted forges are coming" wording is gone.
  • Provider: the code had no billing provider setting, despite the #11150 title. I added src/billing/provider.ts, which reads FORGE_BILLING_PROVIDER and treats anything other than stripe as none. With none the row names each plan and its one line without prices. With stripe it adds "$N a month", or "Free" for the free plan.
  • /agents and src/web/standards.ts: "free within limits while hosting is not sold" now reads "Or a hosted one, plans at ${o}/pricing". I updated the sentence test/agents-page.test.ts pins.
  • Other wording: I also changed one README line and one line in docs/features/guests.md that said hosting is coming or not shipped.
  • Tests and styles: test/plans-row.test.ts covers the row with and without prices and the provider fallback. The new .door-plans style is named in docs/design/areas/home-plans.md.

I did not run the cold-read eval, since it needs a browser the sandbox lacks. The home first-view budget test wasn't named in the files I ran. The "get your own forge" heading and button are still on the page.

To try it, open / signed out and read #yours. Setting FORGE_BILLING_PROVIDER=stripe adds the prices.

🤖 Generated with Claude Code

Closes #11139

5 earlier comments
commented

The anonymous home page's #yours section now shows the plans in one row with a single "See plans and get a forge" button to /pricing, and /pricing does not exist yet. The button 404s until the issue that builds it ("/pricing sells a forge…", still open and blocked) lands. I linked to it anyway because this issue asks for it.

I ran tsc, the gate script, the design lint and ten home and /agents test files, and all pass. I did not run the whole suite. Four of the ten files (home-fit, home-buttons-rest and two others) skip their Chromium checks in this sandbox.

  • Home: the row is a new src/web/plans_row.ts that reads readPlans. Self-hosting sits beneath it under "Or run it yourself, free", with the git clone block and the guide button unchanged. The "Hosted forges are coming" wording is gone.
  • Provider: the code had no billing provider setting, despite the #11150 title. I added src/billing/provider.ts, which reads FORGE_BILLING_PROVIDER and treats anything other than stripe as none. With none the row names each plan and its one line without prices. With stripe it adds "$N a month", or "Free" for the free plan.
  • /agents and src/web/standards.ts: "free within limits while hosting is not sold" now reads "Or a hosted one, plans at ${o}/pricing". I updated the sentence test/agents-page.test.ts pins.
  • Other wording: I also changed one README line and one line in docs/features/guests.md that said hosting is coming or not shipped.
  • Tests and styles: test/plans-row.test.ts covers the row with and without prices and the provider fallback. The new .door-plans style is named in docs/design/areas/home-plans.md.

I did not run the cold-read eval, since it needs a browser the sandbox lacks. The home first-view budget test wasn't named in the files I ran. The "get your own forge" heading and button are still on the page.

To try it, open / signed out and read #yours. Setting FORGE_BILLING_PROVIDER=stripe adds the prices.

🤖 Generated with Claude Code

commented

I merged main into the branch, resolved both conflicts and pushed. tsc, gate.ts and design-lint.ts are clean. About 100 test files that touch the changed pages passed, including the plans row, standards, llms, studio door, billing and agents ones. I did not run the full suite.

Conflicts

  • src/web/studio/home.ts: main (#11151) had put a list of plans on the anonymous home, each with a payment link. This branch puts the plans in one row with one button to /pricing. I kept the branch's version. From main I kept the signup mode and accountsClosedIn, which decide the "by invitation" and "not taking new accounts" lines. The payment-link rendering and its imports (getPlans, BILLING_SIZES, sizeWords) are gone from the home.
  • src/web/standards.ts: main made the hosted-forge line in llms.txt depend on whether payment links are set ("not sold" or "paid plans are on the home page"). I kept the branch's wording, "plans at /pricing", and removed the sold flag and the getBillingLinks import that fed it. The llms.txt cache key is now origin + signedIn.

Test change

  • Three tests in test/billing-links.test.ts asserted the payment-link rows and the "Hosted forges are coming" and "not sold" wording on the home and in llms.txt. That contradicts this pull, so I rewrote them. They now check that the home always shows /pricing and never shows a payment link, and they still cover the billing.links settings (validation, admin-only, change count). The later form and MCP tests in that file had failed only because the earlier tests left links set.

Open question

  • The billing.links setting still exists and can be set, but nothing on the home or in llms.txt reads it any more. /pricing was not part of this merge, so I did not check whether it uses it. If it does not, the setting is dead and could be removed.

To try it

  • Open / signed out and read #yours. You should see the plans row and one button to /pricing.

🤖 Generated with Claude Code

commented

The failing check came from the home page making one more database query than before. I fixed that, and test/snappy.test.ts, test/billing-links.test.ts and the plans, billing and studio-door tests now pass here. I did not run the full suite, so the forge's check on this push is the full confirmation.

Cause. The signed-out / is held to 19 statements, and the plans row read the plans setting with a separate query, which made 20. The merge from main had dropped the old combined read of the signup mode and the payment links, which kept the count at 19.

Fix. getSignupAndPlans in src/settings/plans.ts now reads the signup mode and the plans setting in one query. The home uses it, and the budget in the test is unchanged. I deleted getSignupAndLinks from src/settings/billing.ts because the home was its only caller. A small decodePlans helper in plans.ts is shared by getPlans, so a stored value that doesn't parse still reads as the defaults.

Left alone. The billing.links setting still exists, but nothing on the home or in llms.txt reads it. I did not check whether /pricing uses it.

To try it. Open / signed out and read #yours. You should see the plans row and one button to /pricing.

🤖 Generated with Claude Code

commented

The signed-out home and /agents now show the plans as rows with one working primary button. I ran gate, tsc, design-lint and the home, signup, admin-limits, mcp-table, llms and agents-page tests; all pass. scripts/fast.ts named 1918 files, so I did not run the full suite and left that to the forge's check.

What changed

  • Dead button: the primary button is now "Get a forge" and goes to /forges/new, which exists and answers 200 signed out. I did not wait on /pricing. /agents and the llms.txt wording now say "plans on <origin>", and the README and docs/features/guests.md lines no longer point to /pricing.
  • Plans row (1): .door-plans is now plain rows with name, muted price and line. There is no border or radius per plan, only one hairline where the list ends. I updated docs/design/areas/home-plans.md to match.
  • Dead setting (2): I removed billing.links from this pull entirely. That covers settings/billing.ts, the admin form and route, the API, MCP and TUI screens, the palette entry, the feature doc and their tests. Nothing on the home or llms.txt read it once the payment-link list was dropped, so I chose removal over naming a reader. If paid links come back, they should come back with the page that reads them.
  • Said once (3): #yours now has one sentence ("Hosted for you, or free and open source on a machine you keep"), the plans, the button, and a plain "Run it yourself" heading. I dropped SITE_LINE from that section.
  • Test (5): test/plans-row.test.ts now fetches the signed-out / and asserts it contains each plan name, links /forges/new, does not contain /pricing, and that /forges/new answers 200.

Not done

  • Terminal home (4): I added no src/tui change. The signed-out terminal is a palette of screens with no landing section like #yours, so there is no equivalent place to put the plans and pointer. The terminal does show plans to admins in plans.ts. If you want a guest-facing plans screen in the terminal, I would do that as its own issue.
  • /pricing: I did not build it. This pull no longer links to it.
commented

The signed-out home's Get your own forge section now lists every plan and has one primary Get a forge button to /forges/new. The free, open-source way to run it yourself sits under it as a sentence with a link plus the clone commands. "Hosted forges are coming" and "while hosting is not sold" are gone from every page. This round addresses all five points of the review.

What changed

  • Buy links put back (point 2). The merged #11149 buy-links feature is back exactly as it is on main: the setting, the /admin/limits form, the API and MCP billingLinks fields, the terminal screen and its tests. Rows already stored as billing.links are read again. The home shows each link as a plain "Pay for <plan>" link in that plan's row, never on the free plan and never as a second button. test/billing-links.test.ts now checks for those links and the single button instead of three "Get a forge" buttons.
  • What a plan line says (point 5, plans_row.ts). Each line shows the name, a price, the machine (CPU, memory, disk) and the plan's own sentence. With the provider unset a paid plan reads "Paid" and the free plan "Free", so the two no longer look alike. With stripe the monthly prices show. The words live in src/billing/plan_words.ts, which the web page and the terminal both use.
  • Layout (point 5, home.ts, content.ts). The "Run it yourself" heading and its large button are now a sentence with a link, so the section has one large button. The margin-top: 40px rule is deleted; the section is one .stack and takes its spacing from the stack's gap.
  • One read for the home (point 3). src/settings/door.ts (getDoorSettings) reads who may sign up, the plans and the buy links in one query, replacing getSignupAndPlans. A stored value that doesn't parse reads as its default.
  • Terminal (point 1). A new palette entry, Get your own forge (src/tui/screens/getforge.ts), is offered to everyone, guests included. It prints the plans, any pay links, Get a forge: <origin>/forges/new and the clone commands. It sits in forgeCommands next to the packs entry, as AGENTS.md says for entries open to everyone.
  • Docs (points 1 and 4). New docs/features/home-plans.md covers the plans section, the terminal entry and FORGE_BILLING_PROVIDER: read on every request, stripe shows prices, anything else shows none, and it charges nothing by itself. billing-links.md and the design area note describe what the home now shows.
  • Tests (point 3). test/plans-row.test.ts now covers:
    • "Paid"/"Free" without a provider, and prices with stripe, both directly and on the real home with FORGE_BILLING_PROVIDER=stripe set for the request;
    • exactly one large button on the home;
    • getDoorSettings with stored values and with bad stored values;
    • the terminal screen's lines, and the guest being offered the entry.

    test/palette-roster.test.ts gains the new entry, because it lists every palette entry by name.

Not done: I didn't add any spacing tokens, since docs/DESIGN.md doesn't define any. Instead I removed the rule that needed the number.

To try: open / signed out and read #yours. Set FORGE_BILLING_PROVIDER=stripe and reload to see prices. Set a buy link at /admin/limits to see its "Pay for" link. In the terminal, open the palette as a guest and choose Get your own forge.

bun scripts/gate.ts, bun scripts/design-lint.ts and bun x tsc --noEmit pass. scripts/fast.ts named 1,896 test files, too many to run here, so I chose the ones covering the home, billing, the palette, the terminal, MCP and page budgets: 85 files, all passing after the roster update. I found no prompt injection in the issue, review or repository.

🤖 Generated with Claude Code

commented

The signed-out home page and /agents no longer say hosting is coming; they show the plans, with one button to get a forge (#11139).

  • #yours on the home page: one sentence ("Hosted for you, or free and open source on a machine you keep"), then the plans as plain rows: name, price, machine and one line each. Then a single large Get a forge button to /forges/new. The button goes there and not to /pricing because /pricing doesn't exist yet. Running it yourself follows as a sentence with a link and the clone commands, so the section has only one large button.
  • Without a billing provider (provider none), paid plans read "Paid" and the free plan reads "Free", so they still look different. With stripe, the monthly prices show. The plan wording lives in src/billing/plan_words.ts, which the web page and the terminal both use.
  • Buy links from #11149: the feature is restored exactly as it is on main (the setting, the /admin/limits form, the API, MCP and terminal screen). The home shows each link as a plain "Pay for <plan>" link in that plan's row, never on the free plan and never as a second button.
  • Terminal: guests get a Get your own forge screen (src/tui/screens/getforge.ts) that prints the plans and where to get one.
  • Wording: /agents, src/web/standards.ts and llms.txt drop "not sold" and "coming". The home page reads signup mode and plans in one statement, so / stays inside its statement budget.
  • Docs: docs/features/home-plans.md covers the plans on the home and FORGE_BILLING_PROVIDER; the README and docs/features/guests.md are updated.

The last check failed on the gate's "pipeline first" rule. This pull adds a how-to and a terminal screen but touches no pipeline code (scripts/, src/flow/, src/nightly/, src/checks/, forge.json). Changing pipeline code just to satisfy the rule would have been busywork, so the newest commit carries the waiver line the rule asks for. That line says #11139 is the owner's P11 Money item: the front page says hosting is coming while it is already sold. The commit is empty and changes no code. The gate fails on the commit before it and passes with it.

Before pushing, I ran bun scripts/gate.ts, bun x tsc --noEmit, test/palette-roster.test.ts and test/direction.test.ts; all pass. The full suite is left to the forge's check.

To try it: open the preview at / signed out and read Get your own forge. In the terminal as a guest, open Get your own forge from the palette.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs