mirror of
https://github.com/vercel/chat.git
synced 2026-09-14 18:32:29 +08:00
8f3af76565
Adds `create-chat-sdk`, a CLI that scaffolds a Next.js Chat SDK bot project: ```bash npm create chat-sdk@latest my-bot # non-interactive npm create chat-sdk@latest -- my-bot --adapter slack redis -y ``` The user picks platform and state adapters interactively or via `--adapter`, and the CLI generates a webhook-only project with `src/lib/bot.ts`, `.env.example`, `next.config.ts`, `package.json`, and a README, then optionally runs `git init` and installs dependencies. There are no pages or client UI in the template. Adapter choices come straight from the `chat/adapters` catalog, so the CLI has no adapter registry of its own. When a coding agent such as Cursor or Claude Code runs the CLI, it uses non-interactive defaults and requires an explicit platform adapter. `--interactive` forces prompts. ## also in this pr - `google-chat` is renamed to `gchat` everywhere, including docs pages, the OG image, and adapter catalog. Old URLs redirect permanently, including language-prefixed and `/og` paths - a new docs page is available at `chat-sdk.dev/docs/create-chat-sdk`, and the CLI is promoted on the homepage, package READMEs, and agent skill - `create-chat-sdk` releases independently with a minor changeset for its initial `0.1.0` release --------- Co-authored-by: Ben Sabic <bensabic@users.noreply.github.com> Co-authored-by: dancer <josh@afterima.ge>
16 lines
443 B
JSON
16 lines
443 B
JSON
{
|
|
"$schema": "https://unpkg.com/knip@5/schema.json",
|
|
"ignoreDependencies": ["@biomejs/biome"],
|
|
"ignore": [
|
|
"apps/docs/**/*",
|
|
"packages/create-chat-sdk/_template/next.config.ts",
|
|
"packages/create-chat-sdk/_template/src/app/api/webhooks/[platform]/route.ts",
|
|
"examples/nextjs-chat/src/app/.well-known/workflow/**/*"
|
|
],
|
|
"rules": {
|
|
"duplicates": "off",
|
|
"types": "off",
|
|
"optionalPeerDependencies": "off"
|
|
}
|
|
}
|