Skip to content

Commit 98b6b08

Browse files
committed
- feat: add chat components and conversation management
- chore: remove templates from pnpm workspace and add .npmrc to nextjs chat auth template
1 parent 075e591 commit 98b6b08

Some content is hidden

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

45 files changed

+11919
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
4+
"image": "mcr.microsoft.com/devcontainers/javascript-node:22-bookworm",
5+
6+
"features": {
7+
"git-lfs": "latest"
8+
}
9+
}

.env.example

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# The ChatBotKit Secret Token
2+
# obtain a new token from https://chatbotkit.com/tokens
3+
CHATBOTKIT_API_SECRET=
4+
5+
# Comma-separated list of bot IDs to show in the agent dropdown.
6+
# Leave empty to show all bots from your ChatBotKit account.
7+
# Example: CHATBOTKIT_BOT_IDS=bot_abc123,bot_def456
8+
CHATBOTKIT_BOT_IDS=
9+
10+
# NextAuth configuration
11+
NEXTAUTH_SECRET=
12+
NEXTAUTH_URL=http://localhost:3000
13+
14+
# Google OAuth credentials
15+
# create credentials at https://console.cloud.google.com/apis/credentials
16+
GOOGLE_CLIENT_ID=
17+
GOOGLE_CLIENT_SECRET=

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

.github/workflows/backmerge.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Backmerge releases from main to next
2+
#
3+
# This workflow ensures that any commits on `main` (releases, version bumps)
4+
# are automatically merged back into `next` to keep branches in sync.
5+
#
6+
# This prevents divergence where main has commits that next doesn't have.
7+
8+
name: Backmerge to next
9+
10+
on:
11+
push:
12+
branches: [main]
13+
14+
permissions:
15+
contents: write
16+
17+
jobs:
18+
backmerge:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
ref: next
25+
fetch-depth: 0
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Merge main into next
29+
run: |
30+
git config user.name "github-actions[bot]"
31+
git config user.email "github-actions[bot]@users.noreply.github.com"
32+
33+
git fetch origin main
34+
35+
if git merge-base --is-ancestor origin/main HEAD; then
36+
echo "next already contains all commits from main. Nothing to merge."
37+
exit 0
38+
fi
39+
40+
git merge origin/main -m "chore: backmerge from main"
41+
git push origin next

.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
.yarn/install-state.gz
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# local env files
29+
.env*.local
30+
.env
31+
32+
# vercel
33+
.vercel
34+
35+
# typescript
36+
*.tsbuildinfo
37+
next-env.d.ts

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Prevent npm from resolving packages from parent directories.
2+
# This ensures the lockfile is self-contained and works when the
3+
# project is deployed standalone (e.g. on Vercel) outside the monorepo.
4+
install-links=false

.prettierrc.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"plugins": ["@trivago/prettier-plugin-sort-imports"],
3+
"semi": false,
4+
"trailingComma": "es5",
5+
"singleQuote": true,
6+
"printWidth": 80,
7+
"tabWidth": 2,
8+
"useTabs": false,
9+
"bracketSpacing": true,
10+
"bracketSameLine": false,
11+
"arrowParens": "always",
12+
"importOrder": [
13+
".css$",
14+
"^core-js-pure",
15+
"^jest",
16+
"^@/styles",
17+
"^dotenv",
18+
"^react",
19+
"^react-*",
20+
"^next/*",
21+
"^@/",
22+
"^:/",
23+
"^#/",
24+
"^[./]",
25+
"^@",
26+
"^."
27+
],
28+
"importOrderSeparation": true,
29+
"importOrderSortSpecifiers": true
30+
}

.vscode/extensions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"esbenp.prettier-vscode",
4+
"dbaeumer.vscode-eslint",
5+
"bradlc.vscode-tailwindcss",
6+
"csstools.postcss"
7+
]
8+
}

.vscode/mcp.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"servers": {
3+
"cbk": {
4+
"type": "http",
5+
"url": "https://mcp.cbk.ai/mcp",
6+
"headers": {
7+
// @note uncomment the following line to use an authorization token
8+
// "Authorization": "Bearer ${input:cbki-api-token}"
9+
}
10+
}
11+
}
12+
}

.vscode/settings.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib",
3+
"typescript.enablePromptUseWorkspaceTsdk": false,
4+
"editor.tabSize": 2,
5+
"editor.rulers": [80],
6+
"editor.defaultFormatter": "esbenp.prettier-vscode",
7+
"editor.formatOnSave": true,
8+
"terminal.integrated.scrollback": 100000,
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll.eslint": "explicit"
11+
},
12+
"githubPullRequests.remotes": ["origin"],
13+
"files.autoSave": "off",
14+
"files.associations": {
15+
"*.xml": "html",
16+
"*.svg": "html"
17+
}
18+
}

0 commit comments

Comments
 (0)