MCPcopy Index your code
hub / github.com/IamLiuLv/business-component-codegen

github.com/IamLiuLv/business-component-codegen @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
136 symbols 331 edges 62 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

快读开始

第一步,安装依赖:

pnpm install

第二步,将 .env.example 文件重命名为 .env,并输入你的 OpenAI API_KEY

OPENAI_API_KEY=your-api-key

第三步,生成 ./data 目录中文档的 Embedding:

pnpm run generate

最后,运行开发服务器:

pnpm run dev

用浏览器打开 http://localhost:3000 查看结果。

了解更多

要了解有关前端 AI 的更多信息,请查看以下资源:

《AI赋能前端研发》

Extension points exported contracts — how you extend this code

InputProps (Interface)
(no doc)
app/components/ui/input.tsx
DocumentPreviewProps (Interface)
(no doc)
app/components/ui/document-preview.tsx
ButtonProps (Interface)
(no doc)
app/components/ui/button.tsx
FileUploaderProps (Interface)
(no doc)
app/components/ui/file-uploader.tsx
ChatHandler (Interface)
(no doc)
app/components/ui/chat/chat.interface.ts

Core symbols most depended-on inside this repo

cn
called by 23
app/components/ui/lib/utils.ts
getAnnotationData
called by 6
app/components/ui/chat/index.ts
useClientConfig
called by 4
app/components/ui/chat/hooks/use-config.ts
appendEventData
called by 4
app/api/chat/llamaindex/streaming/events.ts
readContent
called by 3
app/components/ui/chat/hooks/use-file.ts
useCopyToClipboard
called by 3
app/components/ui/chat/hooks/use-copy-to-clipboard.tsx
copyToClipboard
called by 3
app/components/ui/chat/hooks/use-copy-to-clipboard.tsx
initSettings
called by 3
app/api/chat/engine/settings.ts

Shape

Function 119
Interface 12
Class 2
Method 2
Enum 1

Languages

TypeScript100%

Modules by API surface

app/api/chat/engine/settings.ts12 symbols
app/components/ui/chat/hooks/use-file.ts9 symbols
app/api/chat/llamaindex/streaming/events.ts9 symbols
app/components/ui/chat/chat-message/markdown.tsx8 symbols
app/components/ui/file-uploader.tsx7 symbols
app/components/ui/chat/widgets/LlamaCloudSelector.tsx5 symbols
app/components/ui/chat/chat-message/codeblock.tsx5 symbols
app/components/ui/chat/chat-message/chat-sources.tsx5 symbols
app/components/ui/document-preview.tsx4 symbols
app/components/ui/chat/index.ts4 symbols
app/components/ui/chat/chat-input.tsx4 symbols
app/api/chat/llamaindex/streaming/annotations.ts4 symbols

For agents

$ claude mcp add business-component-codegen \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact