UNPKG

embedia

Version:

Zero-configuration AI chatbot integration CLI - direct file copy with embedded API keys

56 lines (50 loc) 1.56 kB
// Path constants for Embedia CLI v2.0 - Isolated Component Architecture const PATHS = { // NEW - Isolated component structure EMBEDIA_COMPONENT: 'components/generated/embedia-chat/index.js', EMBEDIA_CONFIG: 'components/generated/embedia-chat/config.json', EMBEDIA_TYPES: 'components/generated/embedia-chat/index.d.ts', EMBEDIA_API: 'components/generated/embedia-chat/api/chat/route.js', EMBEDIA_README: 'components/generated/embedia-chat/README.md', // Component directory EMBEDIA_DIR: 'components/generated/embedia-chat', // OLD - Legacy paths (for migration detection) LEGACY_CHATBOT_COMPONENT: 'components/AutoChat/Chatbot.tsx', LEGACY_CHAT_HOOK: 'components/AutoChat/useChat.ts', LEGACY_CHAT_TYPES: 'components/AutoChat/types.ts', // API route variations API_ROUTES: { APP_ROUTER: [ 'app/api/embedia/chat/route.js', 'src/app/api/embedia/chat/route.js' ], PAGES_ROUTER: [ 'pages/api/embedia/chat.js', 'src/pages/api/embedia/chat.js' ] }, // Layout file possibilities LAYOUT_FILES: { APP_ROUTER: [ 'app/layout.tsx', 'app/layout.ts', 'app/layout.jsx', 'app/layout.js', 'src/app/layout.tsx', 'src/app/layout.ts', 'src/app/layout.jsx', 'src/app/layout.js' ], PAGES_ROUTER: [ 'pages/_app.tsx', 'pages/_app.ts', 'pages/_app.jsx', 'pages/_app.js', 'src/pages/_app.tsx', 'src/pages/_app.ts', 'src/pages/_app.jsx', 'src/pages/_app.js' ] } }; module.exports = PATHS;