feat: 添加项目详情 Markdown 渲染支持及项目添加脚本

- 新增 MarkdownContent 组件支持 Markdown 渲染
- 新增 scripts 目录下的项目添加工具脚本
- 更新项目详情页面支持 Markdown 内容显示
- 更新依赖包支持 Markdown 解析

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-27 17:19:39 +08:00
co-authored by Claude
parent a0cca1f171
commit bf69555978
7 changed files with 1765 additions and 31 deletions
+59
View File
@@ -0,0 +1,59 @@
const http = require('http');
const data = JSON.stringify({
apiKey: 'sk_live_agent_park_webhook_key_2025',
projects: [{
name: 'AutoGen',
nameEn: 'AutoGen',
description: 'Microsoft 开发的多智能体 AI 应用程序框架,支持自主或与人类协作的智能体',
descriptionEn: 'A programming framework for creating multi-agent AI applications that can act autonomously or work alongside humans',
content: 'AutoGen 是一个由微软开发的创建多智能体 AI 应用程序的框架。主要特性:\n\n1. 核心 API:实现消息传递、事件驱动智能体以及本地和分布式运行时\n2. AgentChat API:提供更简单但更具主见的 API,用于快速原型设计\n3. 扩展 API:支持 LLM 客户端的特定实现(如 OpenAI、Azure OpenAI\n4. AutoGen Studio:用于构建多智能体应用程序的无代码 GUI\n5. AutoGen Bench:用于评估智能体性能的基准测试套件\n\n支持 Python 3.10+ 和 .NET,使用 MIT 许可证。',
contentEn: 'AutoGen is a framework for creating multi-agent AI applications. Key features: Core API, AgentChat API, Extensions API, AutoGen Studio, AutoGen Bench. Supports Python 3.10+ and .NET. MIT licensed.',
status: 'ACTIVE',
source: 'GitHub',
tags: [
{ name: '多智能体', nameEn: 'Multi-Agent' },
{ name: '框架', nameEn: 'Framework' },
{ name: '微软', nameEn: 'Microsoft' },
{ name: 'Python', nameEn: 'Python' },
{ name: 'AI', nameEn: 'AI' },
{ name: 'LLM', nameEn: 'LLM' }
],
links: [
{ type: 'GITHUB', url: 'https://github.com/microsoft/autogen', title: 'GitHub 仓库' },
{ type: 'WEBSITE', url: 'https://microsoft.github.io/autogen/', title: '官方文档' },
{ type: 'WEBSITE', url: 'https://pypi.org/project/autogen-agentchat/', title: 'PyPI 包' }
]
}]
});
const options = {
hostname: '127.0.0.1',
port: 3001,
path: '/api/webhook/projects',
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Content-Length': Buffer.byteLength(data)
}
};
const req = http.request(options, (res) => {
let responseData = '';
res.on('data', (chunk) => {
responseData += chunk;
});
res.on('end', () => {
console.log('Status:', res.statusCode);
console.log('Response:', responseData);
});
});
req.on('error', (error) => {
console.error('Error:', error.message);
});
req.write(data);
req.end();