Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
64 changes: 64 additions & 0 deletions .claude/settings.local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"permissions": {
"allow": [
"WebSearch",
"WebFetch(domain:github.com)",
"WebFetch(domain:docs.rsshub.app)",
"Bash(npm cache *)",
"Bash(npm install *)",
"Bash(/d/caozuo/rustup-init.exe *)",
"Bash(pip --version)",
"Bash(pip install *)",
"Bash(uv --version)",
"Bash(python *)",
"Bash(pip show *)",
"Read(//d/anaconda/Lib/site-packages/**)",
"Bash(cargo check *)",
"Bash(powershell *)",
"Bash(curl -s http://127.0.0.1:10809/health)",
"Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:5173/)",
"Bash(curl -s --connect-timeout 10 -w \"\\\\nHTTP_CODE:%{http_code}\" https://api.deepseek.com/v1/chat/completions -H \"Content-Type: application/json\" -H \"Authorization: Bearer $DEEPSEEK_API_KEY\" -d \"{\\\\\"model\\\\\":\\\\\"deepseek-chat\\\\\",\\\\\"messages\\\\\":[{\\\\\"role\\\\\":\\\\\"user\\\\\",\\\\\"content\\\\\":\\\\\"hi\\\\\"}],\\\\\"max_tokens\\\\\":10}\")",
"Bash(pip search *)",
"Bash(pip index *)",
"Bash(curl -s http://127.0.0.1:10809/api/trendradar/health)",
"Bash(netstat -ano)",
"Bash(curl -s -X POST http://127.0.0.1:3333/mcp -H \"Content-Type: application/json\" -d \"{\\\\\"jsonrpc\\\\\":\\\\\"2.0\\\\\",\\\\\"id\\\\\":1,\\\\\"method\\\\\":\\\\\"tools/list\\\\\",\\\\\"params\\\\\":{}}\")",
"Bash(curl -s -X POST http://127.0.0.1:3333/mcp -H \"Content-Type: application/json\" -H \"Accept: application/json, text/event-stream\" -d \"{\\\\\"jsonrpc\\\\\":\\\\\"2.0\\\\\",\\\\\"id\\\\\":1,\\\\\"method\\\\\":\\\\\"tools/list\\\\\",\\\\\"params\\\\\":{}}\")",
"Bash(curl -s http://127.0.0.1:10810/api/trendradar/tools)",
"Bash(npm run *)",
"Bash(curl -s http://127.0.0.1:9090/health)",
"Bash(curl -s http://127.0.0.1:9090/api/trendradar/health)",
"Bash(curl -s http://127.0.0.1:9090/api/trendradar/tools)",
"Bash(curl *)",
"Bash(awk '{print $2}')",
"Bash(awk '{print $5}')",
"Bash(read pid *)",
"Bash(cargo clean *)",
"Bash(curl -s --max-time 10 -X POST http://127.0.0.1:9090/api/trendradar/call -H 'Content-Type: application/json' -d '{\"tool\":\"resolve_date_range\",\"arguments\":{\"expression\":\"today\"}}')",
"Bash(curl -s --max-time 40 -X POST http://127.0.0.1:9090/api/trendradar/tools)",
"Read(//d//**)",
"Bash(nohup uv run python -m mcp_server.server --transport http --host 0.0.0.0 --port 3333)",
"Bash(echo \"PID=$!\")",
"Bash(curl -s -X POST http://127.0.0.1:3333/mcp -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -H 'Mcp-Session-Id: 28a0a9af7833476d840fbb1a2f471de3' -d '{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/list\",\"params\":{}}')",
"Bash(python3 -c ' *)",
"Bash(python3 -c \"import sys,json; [print\\(json.dumps\\(json.loads\\(l[6:]\\)['result']['content'][0]['text'], ensure_ascii=False, indent=2\\)\\) for l in sys.stdin if l.startswith\\('data:'\\)]\")",
"Bash(python3 *)",
"Bash(touch /d/caozuo/_testfile)",
"Bash(rm /d/caozuo/_testfile)",
"Bash(git config *)",
"Bash(git --version)",
"Bash(gh auth *)",
"Bash(git init *)",
"Bash(git checkout *)",
"Bash(git branch *)",
"Bash(git add *)",
"Bash(git commit *)",
"Bash(git remote *)",
"Bash(git push *)",
"Bash(ssh-keyscan github.com)",
"Bash(ssh -T git@github.com)",
"Bash(git rebase *4)",
"Bash(GIT_EDITOR=true git rebase *)"
]
}
}
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,25 @@ apps/omninova-ios/build/
apps/omninova-ios/DerivedData/
apps/omninova-ios/release-assets/
apps/omninova-ios/*.xcuserdatad/

# npm cache
.npm-cache/

# rust installer
rustup-init.exe

# python
__pycache__/
*.pyc

# IDE
.vscode/
.idea/

Thumbs.db

# temp files
_demo_raw.json
_req.json
_resp_*.txt
_test.json
35 changes: 35 additions & 0 deletions TrendRadar-master/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.git/
.gitignore
*.md
README.md

output/

__pycache__/
*.pyc
*.pyo
*.pyd
.Python
*.so
.pytest_cache/

.vscode/
.idea/
*.swp
*.swo
*~

.DS_Store
Thumbs.db

docker/.env

_image/

.github/

*.log
.env.local
.env.*.local
version
index.html
122 changes: 122 additions & 0 deletions TrendRadar-master/.github/ISSUE_TEMPLATE/01-bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-issue-forms.json

name: 🐛 遇到问题了
description: 程序运行不正常、报错或功能失效(含 AI 分析问题)
title: "[问题] "
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
### ⚠️ 提交前必读
**请确保你正在使用 TrendRadar 的最新版本。**
很多问题在最新代码中可能已经修复。如果你使用的是旧版本,我将无法处理,请先更新后再试。

**简单的描述 + 关键截图** 是最有效的沟通方式。

---
### 📌 如何查看版本号?

| 部署方式 | 查看方法 |
|---------|---------|
| **Docker** | 查看容器启动日志,版本号显示在日志开头 |
| **GitHub Actions** | 查看 [README 文档](https://github.com/sansan0/TrendRadar) 顶部的 ![version](https://img.shields.io/badge/version-blue) 徽章 |
| **本地 Python** | 查看项目根目录的 `version` 文件 |

- type: input
id: version
attributes:
label: 📦 TrendRadar 版本
description: |
请务必提供版本号(如:v5.2.0 或 git commit id)
💡 Docker 用户:查看容器启动日志 | GitHub Actions 用户:查看文档顶部 version 徽章
placeholder: v5.2.0 或 commit hash
validations:
required: true

- type: input
id: mcp-version
attributes:
label: 🔌 MCP Server 版本 (可选)
description: 如果你是通过 MCP 使用,请填写 MCP Server 的版本。
placeholder: v3.1.6 (非 MCP 用户留空)
validations:
required: false

- type: dropdown
id: bug-category
attributes:
label: 🏷️ 问题类别
options:
- AI 分析相关(报错、内容异常、提示词失效等)
- 数据获取相关(爬不到新闻、平台失效等)
- 通知推送相关(收不到消息、推送报错等)
- 部署运行相关(Docker、Actions、Python 报错)
- 其他
validations:
required: true

- type: input
id: ai-model
attributes:
label: 🤖 AI 模型名称(AI 问题必填)
description: |
如果是 AI 分析相关问题,请提供你使用的具体模型名称。
AI 问题与模型能力密切相关,不同模型表现差异很大。
placeholder: "例如:deepseek/deepseek-chat、openai/gpt-4o、gemini/gemini-2.5-flash"
validations:
required: false

- type: textarea
id: bug-description
attributes:
label: 📝 描述发生了什么
placeholder: |
请描述:
1. 你在做什么?
2. 出现了什么错误?(如果是 AI 问题,请贴出分析失败的错误提示)
3. 建议上传一张截图,这比文字更有力!
validations:
required: true

- type: textarea
id: error-logs
attributes:
label: 📋 错误日志/配置(可选)
description: |
贴出相关的错误日志或 config.yaml 片段(记得隐藏 API Key 等敏感信息)
💡 Docker 用户:使用 `docker logs trendradar` 查看日志
placeholder: |
贴出相关的错误日志或 config.yaml 片段:
```
在这里贴内容...
```
validations:
required: false

- type: textarea
id: screenshots
attributes:
label: 📷 截图(强烈建议)
description: |
⚠️ **重要提示**:请提供**完整截图**,不要只截取局部!
- 错误截图应包含完整的错误信息和上下文
- 推送截图应包含完整的消息内容
- 配置截图应包含相关配置段的完整内容

局部截图往往缺少关键信息,会导致问题难以定位。
placeholder: 拖拽截图到这里,请确保截图完整,包含足够的上下文信息。
validations:
required: false

- type: dropdown
id: environment
attributes:
label: 🖥️ 使用环境
options:
- Docker (本地/NAS)
- GitHub Actions
- 本地 Python 运行
- MCP Server 客户端 (Cherry Studio等)
validations:
required: true
39 changes: 39 additions & 0 deletions TrendRadar-master/.github/ISSUE_TEMPLATE/02-feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-issue-forms.json

name: 💡 我有个想法
description: 建议新功能、推送样式改进或体验优化
title: "[建议] "
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
### 💝 欢迎分享你的创意
你的好点子能让 TrendRadar 变得更好!

目前主要关注以下方向的改进:
- ✨ **AI 分析能力**:更智能的解读、更丰富的分析维度
- 🎨 **推送体验**:更好看的排版、更合理的信息展示
- 🛠️ **易用性优化**:配置更简单、运行更稳定

*注:目前暂不接受新爬虫平台的接入申请,感谢理解。*

- type: textarea
id: feature-description
attributes:
label: 💭 你的想法是什么?
placeholder: |
请简要描述:
- 你希望增加什么功能?
- 它能解决什么问题?
- 如果有参考的图片或工具,欢迎上传截图。
validations:
required: true

- type: textarea
id: use-case
attributes:
label: 🎯 使用场景(可选)
placeholder: 例如:当我在...的时候,如果能...就太棒了。
validations:
required: false
83 changes: 83 additions & 0 deletions TrendRadar-master/.github/ISSUE_TEMPLATE/03-ai-and-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-issue-forms.json

name: ✨ AI 提示词分享与配置求助
description: 分享你调优的 ai_analysis_prompt.txt 或寻求设置帮助
title: "[AI/配置] "
labels: ["config", "AI"]
body:
- type: markdown
attributes:
value: |
### ✨ 提示词分享计划
欢迎在此分享你精心调优的 `ai_analysis_prompt.txt` 内容!
优秀的提示词可以让 AI 分析更精准、更有趣。

---
如果是**寻求配置帮助**,请尽量贴出你的错误表现。

---
### 📌 如何查看版本号?

| 部署方式 | 查看方法 |
|---------|---------|
| **Docker** | 查看容器启动日志,版本号显示在日志开头 |
| **GitHub Actions** | 查看 [README 文档](https://github.com/sansan0/TrendRadar) 顶部的 ![version](https://img.shields.io/badge/version-blue) 徽章 |
| **本地 Python** | 查看项目根目录的 `version` 文件 |

- type: dropdown
id: category
attributes:
label: 🏷️ 目的
options:
- 分享我的 AI 提示词 (ai_analysis_prompt.txt)
- 寻求 AI 分析设置帮助
- 寻求基础功能配置帮助 (Webhook/RSS等)
validations:
required: true

- type: input
id: version
attributes:
label: 📦 TrendRadar 版本(求助时必填)
description: |
如果是寻求帮助,请提供版本号。
💡 Docker 用户:查看容器启动日志 | GitHub Actions 用户:查看文档顶部 version 徽章
placeholder: v5.2.0 或 commit hash(分享提示词可留空)
validations:
required: false

- type: input
id: ai-model
attributes:
label: 🤖 AI 模型名称
description: |
请提供你使用的具体模型名称。
AI 分析效果与模型能力密切相关,不同模型表现差异很大。
分享提示词时也请注明,方便其他用户参考。
placeholder: "例如:deepseek/deepseek-chat、openai/gpt-4o、gemini/gemini-2.5-flash"
validations:
required: false

- type: textarea
id: share-content
attributes:
label: 📄 内容描述
placeholder: |
- 如果是分享:请贴出你的提示词代码块,并简述它的分析风格。
- 如果是求助:请贴出你的配置片段(隐藏 Key)和遇到的现象。
validations:
required: true

- type: textarea
id: screenshots
attributes:
label: 📷 效果截图(推荐)
description: |
⚠️ **重要提示**:请提供**完整截图**,不要只截取局部!
- 分享时:展示 AI 分析的完整输出效果
- 求助时:展示完整的错误信息或异常表现

局部截图往往缺少关键信息,会导致问题难以定位。
placeholder: 拖拽分析结果截图或配置截图到这里,请确保截图完整。
validations:
required: false
3 changes: 3 additions & 0 deletions TrendRadar-master/.github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-issue-config.json

blank_issues_enabled: false
Loading