Skip to content

next tracking - #1263

Closed
Wundero wants to merge 812 commits into
AmanVarshney01:nextfrom
Wundero:next
Closed

Wundero wants to merge 812 commits into
AmanVarshney01:nextfrom
Wundero:next

Conversation

@Wundero

@Wundero Wundero commented Sep 29, 2026

Copy link
Copy Markdown

not really gonna merge this. url: https://create.1d.gg

* feat(cli): add vite plus addon support

* fix(cli): tighten vite plus addon behavior

* fix(cli): align fumadocs and oxlint addons

* fix(cli): refresh addon cli compatibility

* fix(cli): honor existing addons for fumadocs add

* refactor(cli): generate vite plus config

* fix(cli): tailor vite plus ignores by stack

* fix(cli): share generated ignores across task runners

* fix(cli): address task runner review feedback
* feat(cli): add Docker deployment support for web and server

Adds 'docker' as a web-deploy and server-deploy option:
- Per-frontend Dockerfiles (nginx for SPAs, standalone/minimal runners
  for Next/Nuxt, workspace runners for TanStack Start/Svelte/Astro)
- Single root docker-compose.yml with inlined database service,
  healthcheck-ordered startup, init, env overrides for container
  networking, and BuildKit cache mounts
- docker:up/down/logs/build scripts; db scripts scoped to the db service
- CLI prompts, validation, stack builder options, docs, and tests
- scripts/docker-smoke.sh: live 13-combination verification matrix

Fixes surfaced by the live matrix (several pre-existing):
- Solid: @tanstack/solid-router-devtools missing with --api none
- Fastify: bind 0.0.0.0 in containers (default is localhost-only)
- pnpm: approve sharp/esbuild/@parcel/watcher/vue-demi build scripts
  so non-interactive installs succeed
- Nuxt: pin vue 3 explicitly so npm resolution stops picking vue 2

Also improves prompt navigation: going back now restores previous
answers as initial values, and bumps @Clack to latest.

* fix(cli): address docker deployment review feedback

- Exclude .env files from Docker build contexts; runtime env flows via
  compose env_file, public client values are baked via build args
  (SKIP_ENV_VALIDATION + prisma/better-auth build placeholders keep
  builds working without env files)
- Split Nuxt server URLs: SSR fetches use a server-only NUXT_SERVER_URL
  (internal compose hostname) while the browser keeps the public URL
- Interpolate database credentials (${POSTGRES_PASSWORD:-password})
- Guard remembered prompt answers against options that are no longer
  valid (preferValidInitial)
- Document docker:build in the generated README scripts list
- Guard cd failures in scripts/docker-smoke.sh

Verified: 13/13 live smoke-matrix combinations passing.
Use the full Node 24 image for Vite+ Docker web builds so vp build has access to the system CA bundle. Keep non-Vite+ Docker web builds on node:24-slim.
… and RPC stacks (AmanVarshney01#1084)

* feat(templates): update AI and RPC stacks

* fix(templates): make Electrobun desktop builds static

* fix(cli): update evlog next instrumentation

* fix(cli): avoid evlog ai sdk 7 wrapper

* feat(templates): use shadcn ai chat components

* chore(templates): refresh react component dependencies

* fix(templates): refresh deps and serialize electrobun builds

* fix(templates): address review feedback

* fix(templates): use explicit turbo run commands

* feat(templates): refresh ai chat ux

* fix(templates): align message scroller styling

* fix(templates): remove fake ai tool menu

* fix(templates): remove ai chat disclaimer

* fix(cli): block static desktop self backends

* fix(web): align desktop addon compatibility

* feat(native): improve ai chat template

* chore(native): update heroui native dependencies

* fix(templates): address ai review feedback

* fix(cli): stop scrubbing evlog ai telemetry

* fix(cli): tighten electrobun build ordering

* fix(templates): align env runtime types

* fix(templates): guard convex desktop auth stacks

* fix(templates): declare electrobun turbo tasks

* fix(templates): support electrobun hmr dev

* fix(templates): correct convex chat key and align electrobun config

- Convex AI chat used message.key, which no longer exists on
  @convex-dev/agent useUIMessages results (UIMessageLike); key on
  order/stepOrder instead across all 7 chat templates (TS2339 fix).
- Restore the dev-server fetch guard in the electrobun bun entry so
  'electrobun dev' falls back to bundled assets when no web dev server
  is running (matches the official react-tailwind-vite template).
- Drop the non-doc isDevCommand conditional copy; always declare copy
  (a missing build dir is a non-fatal warning, verified by running it).
- Keep @types/three in the desktop devDependencies: electrobun's own
  source imports three, so tsc --noEmit needs it (TS7016 fix).

* fix(cli): simplify electrobun dev orchestration

- Drop the desktop `dev` script and the getElectrobunRootDevCommand
  `!desktop` filtering. The desktop has no `dev` script, so the standard
  root `dev` aggregate skips it and never auto-launches the native window;
  use `dev:desktop` (dev:hmr) instead, which inlines `electrobun dev --watch`.
- npm aggregates use --if-present so workspaces lacking a script (the desktop
  shell, packages/config, etc.) are skipped instead of erroring Missing script.
- Drop the redundant --if-present from bun (it skips missing scripts natively).
- Keep the desktop build as the official electrobun pattern: build the web app,
  then electrobun (`<webBuild> && electrobun build`).
…anVarshney01#1086)

* feat(plugin): add Better-T-Stack agent plugin for Claude Code and Codex

Ship an installable agent plugin under plugin/ that bundles the existing
create-better-t-stack MCP server with user-facing skills, slash commands,
and a stack-architect agent, so an assistant scaffolds and extends projects
with Better-T-Stack instead of hand-rolling boilerplate.

- plugin/.claude-plugin + plugin/.codex-plugin manifests (dual-target),
  reusing one skills/ dir and .mcp.json
- Claude marketplace (.claude-plugin/marketplace.json) and Codex marketplace
  (.agents/plugins/marketplace.json), both sourcing ./plugin
- skills: scaffold-project, add-to-project; commands: /better-t-stack:new,
  /better-t-stack:add; agent: stack-architect
- official $_ brand mark as plugin/assets/icon.svg
- docs: 'Use it inside your AI agent' (Claude Code, Codex, opencode, pi/other)
  plus README pointer

Also fix two docs/CLI gaps found while auditing docs against the CLI:
- document the 'mcp' command on the Commands reference page
- document the nx/turborepo/vite-plus task-runner exclusivity rule

* docs(repo): note plugin/ directory in AGENTS.md project structure

* chore(plugin): improve and align marketplace/plugin keywords

* fix(plugin): drop redundant commands/agents arrays from Claude manifest

Claude Code auto-scans ./commands/ and ./agents/. Listing default-dir
files explicitly is redundant and was interfering with registration
(agent reported as 0 in the inventory). Removing the arrays lets the
commands and stack-architect agent auto-discover correctly.

* chore(plugin): sync plugin version with CLI and bump it in the release flow

- Set the Claude Code + Codex plugin manifests to the current CLI version (3.34.0)
- Update scripts/bump-version.ts to bump both plugin manifests alongside the
  CLI/types/template-generator packages, so the plugin stays in lockstep on release

* docs(plugin): fix MCP install command for agents

'add --addons mcp' is the project addon (wires recommended MCP servers into
a generated Better-T-Stack project), not a way to install the BTS MCP server
into an agent. Use the standalone 'add-mcp' command (or a manual config entry)
to wire 'create-better-t-stack mcp' into Codex/opencode/Cursor/etc.

* fix(plugin): use correct config filename bts.jsonc

The CLI only reads/writes bts.jsonc (utils/bts-config.ts). Removed the
non-existent 'better-t-stack.jsonc' from the add-to-project skill pathPatterns
and the add command/skill prose.

* docs(web): add AI agent plugin path to quickstart

Surface the Better-T-Stack plugin alongside the CLI and Stack Builder paths
in the quickstart, plus a Next Steps card, so users can discover scaffolding
via their AI assistant (Claude Code, Codex, opencode, MCP agents).

* chore(plugin): sync plugin version to 3.35.0 (matches CLI release)
… sets) (AmanVarshney01#1087)

* fix(plugin): broaden scaffold-project triggering for framework-named requests

'create a hono app' was losing to a dedicated hono skill because the
description excluded framework-committed requests. Name the supported
frameworks and example phrasings, and drop the counterproductive
'has not committed to a specific boilerplate' clause, so new-project
requests that mention a framework trigger Better-T-Stack scaffolding.

* fix(plugin): present full valid option sets when prompting

The agent was offering a curated subset (e.g. Better Auth + none) and
silently dropping valid choices like Clerk for a Hono + Next.js app.
Add a rule to enumerate the full valid option set from bts_get_schema
when asking the user to choose.

* docs(plugin): map framework names to schema values in scaffold description

Keep the natural-language names users type (TanStack, React Native) but
add the schema values (tanstack-router/start, native-bare/uniwind/unistyles)
so the agent resolves intent to the right frontend options.
…router (AmanVarshney01#1089)

The shared webPort formula in the README generator and the CLI
post-install note bucketed tanstack-router under 5173, but its
vite.config sets server.port: 3001. Every other place in the codebase
(vite configs, electrobun DEV_SERVER_PORT template, env-vars CORS/URL
logic) already treats tanstack-router as 3001, so both docs reported a
URL that didn't match the running dev server.

Remove tanstack-router from the 5173 bucket so it falls through to 3001.
…Varshney01#1093)

* feat(web): rebuild analytics charts on bklit-ui and fix avg/day

Fix the home + analytics "avg/day" stat, which divided the all-time
total by a fixed 30-day window (~1667); it now divides by the actual
tracked span so both pages agree (~239/day). Remove the pre-Convex
"legacy" archive callout from the analytics header.

Migrate every analytics chart from evilcharts to bklit-ui (shadcn
@bklit registry, composable visx + motion) behind two thin wrappers
(TrendAreaChart, CategoryBarChart). Charts are themed through the
--chart-* CSS vars mapped onto site tokens (primary / border /
muted-foreground / popover) for a minimal terminal look that adapts
to light and dark automatically.

Horizontal bars get a configurable left gutter so category names stay
readable. Also fixes a vendored shimmering-text import path and adds
@types/d3-array. Removes the evilcharts library and evil-chart-utils.

* fix(web): tighten analytics chart layout and remove padding gaps

- denser horizontal preference bars (30px/row instead of 38)
- drop leftover min-h wrappers that padded empty space below short charts
- lay CLI versions in a single 4-column row instead of a 2x2 wall

* fix(web): give each area chart a unique reveal clip id

bklit's AreaChart hardcoded clipPathId="chart-area-grow-clip", so the
two area charts on the analytics page (metrics sparkline + daily
timeline) emitted duplicate document-scoped SVG ids and could resolve
each other's reveal clip. Derive a per-instance id from useId, matching
how the rest of the chart library already generates ids.
…anVarshney01#1094)

Add optional websiteLabel to the Sponsor type and a getSponsorUrlLabel
helper so a sponsor's website link can show custom text while still
linking to websiteUrl (e.g. show "CodeRabbit.ai" but link to a
redirect URL). Falls back to the formatted URL when no label is set.
…k builder dx (AmanVarshney01#1097)

OG images:
- add per-stack dynamic og image route (/og/stack) rendering the project
  name and color-coded tech chips from the share url params
- add designed og cards for home, /new, /showcase, /analytics
  (/og/site/[page]) replacing the misdeclared 3166x1909 raw screenshot
- extract shared OgShell terminal frame and refactor the docs og route
  onto it; /stack metadata now emits the per-stack image, stack summary
  as description, and keeps query params in og:url

Share flow:
- rebuild ShareDialog: live social-card preview, copy link + copy cli
  command rows, native share, better X post text, on-demand QR
- normalize project names (spaces to dashes) consistently across the
  dialog, /stack page, and builder hook

Stack builder:
- collapse cli command to one line with a flags toggle
- flatten selected-stack badges into a chip cloud; badges now jump to
  their category section (X removes)
- add sticky category rail with scroll-spy active state and jump-to-section
- consolidate actions into one panel; inline YOLO toggle, drop the
  single-item settings menu and "no saved stack" placeholder
- responsive fixes: narrower sidebar until lg, mobile rail, a11y wiring
  for the project name error

Compatibility:
- mirror the cli rule blocking tauri with convex better-auth on next.js
  or tanstack start (disable reason + auto-adjust)
- add property test: 3000 random stacks converge and contain no
  disabled selections after adjustment
…docker templates (AmanVarshney01#1098)

* feat(template-generator): upgrade template deps to latest and harden docker templates

Dependency upgrades:
- react-router v7 -> v8 (imports unchanged; drop v8_middleware future flag, now default)
- react-router-devtools ^1 -> ^6, @clerk/react-router ^3.5 (RR8-compatible)
- vite-plus 0.1.24 -> 0.2.2; drop discontinued vite-plus-test vitest override
- @tanstack/svelte-query v5 -> v6: thunk options + runes results in svelte templates
- @hono/node-server ^2, stripe SDKs (^9/^6), shiki ^4, nx ^23
- ~140 minor/patch bumps across dependencyVersionMap and template pins
- expo/native pins left untouched (verified against SDK 57 bundledNativeModules)
- remove unused @types/three from electrobun desktop template

Docker template fixes:
- block webDeploy=docker with tauri/electrobun on next/svelte/astro (desktop
  addons force static export, breaking the SSR docker images)
- copy public/ into next standalone runner when pwa addon emits it
- generate root .env for compose build-arg interpolation (CONVEX_URL,
  CLERK_PUBLISHABLE_KEY were silently baked empty)
- pin db images (postgres:18, mysql:8.4, mongo:8) and pnpm@11 in Dockerfiles
- add web service healthcheck to generated docker-compose

* fix(template-generator): address pr review on docker env keys and next public dir

- compose build args now interpolate the same frontend-prefixed env names
  users fill in apps/web/.env (NEXT_PUBLIC_/VITE_/PUBLIC_ variants), and the
  generated root .env mirrors those names
- next docker runner always copies public/ (user-added static assets), with
  mkdir -p in the builder so the copy never fails when the dir is absent

* fix(template-generator): keep polar/stripe and react-router deps within peer ranges

Codex review findings, verified against npm peer metadata and proven with strict-peer npm installs:
- @polar-sh/better-auth@1.8.4 peers @polar-sh/sdk ^0.47.0 and @polar-sh/checkout@0.4.0 peers stripe react <=^5.6.1 / stripe-js <=^8.11.0, so the ^0.48.1/^6.7.0/^9.9.0 bumps made fresh polar scaffolds fail npm installs with ERESOLVE; pins now sit at the top of the supported ranges (^0.47.1/^5.6.1/^8.11.0)
- react-router-devtools@6.2.1 (latest) depends on @tanstack/devtools-vite ^0.4.1, which peers vite ^6||^7 only, so the react-router template pins vite ^7.3.6 (RR8 supports ^7||^8) until a devtools release supports vite 8
Both combos re-verified: npm installs clean, react-router app builds on vite 7.
Wundero and others added 28 commits September 25, 2026 04:55
Replace the Convex client/provider with a zod-validated fetch client against
the frozen worker API and a React Query provider. Add RED->GREEN unit tests
covering valid, null, and malformed stats payloads.
Migrate home/showcase/sponsors build-time fetches to the api client with
offline fallbacks, move analytics SSR to React Query initialData with polling,
and switch live logs, live feed, and project stats to the new endpoints
(id/createdAt instead of _id/_creationTime).
Conflicts:
- apps/cli/src/utils/compatibility-rules.ts + config-validation.ts: union imports (portless + turnstile).
- alchemy/plan.ts: union interface fields, consts, and return object (email + turnstile).
- alchemy/render.ts: union emailSes + hasTurnstile resource blocks.
- processors/env-vars.ts: buildServerVars takes both emailDeploy and addons; call site passes both.
- processors/readme-generator.ts: kept hasTurnstile and HEAD hasAlchemyCompute (isAlchemyDeployTarget);
  dropped stale hasCloudflare/hasPrismaCompute from the older branch base.
- template-handlers/deploy.ts: union guard -> isAlchemyDeployTarget + axiom + turnstile + ses.
- apps/cli/README.md, docs/index.mdx, docs/project-structure.mdx: union docs (heading table
  keeps email+aws rows and adds Turnstile; addons lists add turnstile).
- templates.generated.ts: regenerated.
Latent branch type error fixed: turnstile-generation.test.ts uses
NonNullable<CreateOptions["frontend"]>[number].
Gate: tg tsc PASS, CLI check-types/test-types PASS, web check-types PASS.
Conflicts:
- apps/cli/src/utils/display-config.ts: kept polar/react-email/ses labels (payment branch had
  dropped polar); payment provider labels come from getPaymentProvider elsewhere.
- apps/web/src/lib/constant.ts: kept payment ALL_PAYMENT_IDS.map structure and re-added the
  emailRenderer/emailDeploy option arrays.
- apps/web/src/lib/stack-validation.ts: union imports (getPaymentsCapabilityIssue + existing).
- apps/web/content/docs/index.mdx: union payments + addons lists (eslint + turnstile kept).
- templates providers.tsx.hbs (next): kept theme migration fragment and wrapped with
  AutumnProvider when payments=autumn.
- root.tsx.hbs (react-router), __root.tsx.hbs (tanstack-router/tanstack-start): union
  DirectionProvider (rtl) + AutumnProvider wrappers/imports.
- auth better-auth server index.ts.hbs: union turnstile + all payment env vars.
- templates.generated.ts: regenerated (599 templates).
Gate: tg tsc PASS, CLI check-types/test-types PASS, web check-types PASS.
- remove unused imports (supportsPaymentsAuth, isAlchemyDeployTarget) left by union merges.
- portless.ts: give getPortlessNames a named PortlessNames contract (no-known-value-widening).
- portless-cli.test.ts: derive CreateInputArgs from the input schema's safeParse boundary
  instead of an explicit unknown parameter (no-unknown-parameters).
- oxfmt reformatting of README.md, render.ts state ternary, eslint addon config template.
- regenerate templates.generated.ts for the reformatted template.
Gate: bun run check PASS, tg tsc PASS, CLI check-types PASS, web check-types PASS.
…ixture

Union fallout: ProjectConfigSchema requires emailRenderer/emailDeploy after the email-support merge.
…d features

- catalog-paths.test.ts legacy list now includes packages/email/package.json.
- portless-compatibility.test.ts ProjectConfig fixture adds required emailRenderer/emailDeploy.
Union fallout from email-support merge.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Cloudflare workerd forbids new Function, and Handlebars compile() emits
code through it, so every /api/rpc/preview request returned 500.

Compile every .hbs at build time with Handlebars.precompile, embed the
resulting spec objects in templates.generated.ts, and render them at
runtime with handlebars/runtime's Handlebars.template(spec). The partials
are precompiled too and registered as runtime templates. No code
generation happens on the request path anymore.
Add @opennextjs/cloudflare + wrangler and the open-next.config.ts /
wrangler.jsonc deploy target, and bundle handlebars instead of leaving it
external so the worker can render precompiled templates.
Next 16.3.x Turbopack font fetch is a single un-retried request; a flaky
network response on CI runners surfaces as a bogus 'Module not found'
(next/font/google queries have exactly one entry). Use the geist package's
local woff2 fonts via next/font/local instead.
Add help text under the preset code box pointing at https://ui.shadcn.com/create so users can build a theme and copy its preset code.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@vercel

vercel Bot commented Sep 29, 2026

Copy link
Copy Markdown

@github-actions[bot] is attempting to deploy a commit to the Better T Stack Team on Vercel.

A member of the Team first needs to authorize it.

@Wundero Wundero closed this Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants