Skip to content

Commit 38f8a84

Browse files
committed
fully working
1 parent 45a856f commit 38f8a84

198 files changed

Lines changed: 34080 additions & 8463 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.

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"cSpell.enabled": false
3+
}

PROJECT_FLOW_DOCUMENTATION.md

Lines changed: 708 additions & 0 deletions
Large diffs are not rendered by default.

bot-configuration-schema.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"config": {
3+
"persona": "string (required) - The bot's personality and character description",
4+
"botthesis": "string (required) - The bot's core thesis or purpose",
5+
"greetings": "string | null - Default greeting message (optional)",
6+
"fallback_message": "string | null - Message shown when bot cannot respond (optional)",
7+
"version": "number (default: 1) - Configuration version number"
8+
},
9+
"settings": {
10+
"business_name": "string (required) - Name of the business",
11+
"business_type": "string (required) - Type of business",
12+
"business_description": "string | null - Description of the business (optional)",
13+
"product_name": "string (required) - Name of the product or service",
14+
"product_description": "string | null - Description of the product or service (optional)",
15+
"support_email": "string | null - Support email address (must be valid email format, optional)",
16+
"contacts": "string | null - Contact information (optional)",
17+
"supported_languages": "string[] (required, min 1) - Array of supported language codes (e.g., ['en', 'es'])"
18+
},
19+
"runtime_settings": {
20+
"rate_limit_per_min": "number (default: 60, min: 1, max: 1000) - Rate limit per minute (read-only)",
21+
"token_quota": "number (default: 50000, min: 0) - Token quota limit (read-only)",
22+
"api_calls_this_month": "number (default: 0, min: 0) - Counter for API calls made this month (read-only)"
23+
},
24+
"ui_settings": {
25+
"theme": "string - Options: 'modern' | 'classic' | 'minimal' | 'bubble' | 'retro'",
26+
"chatbot_name": "string (required) - Display name of the chatbot",
27+
"welcome_message": "string (required) - Welcome message shown to users",
28+
"quick_questions": "string[] (max 5) - Array of quick question prompts (up to 5)",
29+
"support_info": "string | null - Support information or contact details",
30+
"position": "string - Options: 'bottom-right' | 'bottom-left'",
31+
"auto_open_delay_ms": "number (min: 0) - Delay in milliseconds before auto-opening chat (0 = disabled)",
32+
"auto_greet_on_open": "boolean - Whether to automatically greet when chat opens",
33+
"ask_email_before_chat": "boolean - Whether to require email before starting chat",
34+
"persist_chat": "boolean (default: true) - Whether to persist chat history",
35+
"show_timestamps": "boolean (default: true) - Whether to show timestamps on messages"
36+
}
37+
}

components.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010
"cssVariables": true,
1111
"prefix": ""
1212
},
13+
"iconLibrary": "lucide",
1314
"aliases": {
1415
"components": "@/components",
1516
"utils": "@/lib/utils",
1617
"ui": "@/components/ui",
1718
"lib": "@/lib",
1819
"hooks": "@/hooks"
1920
},
20-
"iconLibrary": "lucide"
21-
}
21+
"registries": {
22+
"@react-bits": "https://reactbits.dev/r/{name}.json"
23+
}
24+
}

next.config.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
44
/* config options here */
5-
webpack: (config) => {
5+
webpack: (config, { isServer }) => {
66
config.ignoreWarnings = [
77
...(config.ignoreWarnings || []),
88
{
@@ -11,6 +11,15 @@ const nextConfig: NextConfig = {
1111
/Critical dependency: the request of a dependency is an expression/,
1212
},
1313
];
14+
15+
// Handle external dependencies from @qb/quickbot package
16+
if (!isServer) {
17+
// For client-side, ensure Supabase is resolved from node_modules
18+
config.resolve.alias = {
19+
...config.resolve.alias,
20+
};
21+
}
22+
1423
return config;
1524
},
1625
};

0 commit comments

Comments
 (0)