Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
356 commits
Select commit Hold shift + click to select a range
86212a2
refactor(chat): 移除 self_action_ctrl 中的结果笔记存储功能
This-is-XiaoDeng Jun 6, 2026
8112609
格式化代码
pre-commit-ci[bot] Jun 6, 2026
0449304
Auto update from GitHub Actions
github-actions[bot] Jun 6, 2026
dbd5ec6
Merge pull request #1180 from Moonlark-Dev/fix/remove-self-action-note
This-is-XiaoDeng Jun 6, 2026
16eef5d
refactor(chat): remove unused identity_prompt injection from self_act…
This-is-XiaoDeng Jun 6, 2026
c39bf71
Merge pull request #1181 from Moonlark-Dev/fix/remove-identity-from-s…
This-is-XiaoDeng Jun 6, 2026
4c6d0ad
Merge branch 'main' into feat/command-stats
This-is-XiaoDeng Jun 6, 2026
34a549b
feat(chat): add daily diary generation from ActionDecider history
This-is-XiaoDeng Jun 6, 2026
d154a49
格式化代码
pre-commit-ci[bot] Jun 6, 2026
1e05630
feat(chat): add daily diary generation from ActionDecider history
This-is-XiaoDeng Jun 6, 2026
310fc2c
格式化代码
pre-commit-ci[bot] Jun 6, 2026
6796b3d
Merge pull request #1182 from Moonlark-Dev/feat/diary
This-is-XiaoDeng Jun 7, 2026
87d6810
fix: code review fixes - remove duplicate indexes, use server_default…
This-is-XiaoDeng Jun 7, 2026
e610dd2
Merge branch 'main' into feat/command-stats
This-is-XiaoDeng Jun 7, 2026
1ba10c2
Merge pull request #1162 from This-is-XiaoDeng/feat/command-stats
This-is-XiaoDeng Jun 7, 2026
b21ead6
fix: on_alconna 第一个参数需要用 Alconna 对象包装
This-is-XiaoDeng Jun 7, 2026
ddafecf
fix: 恢复 index=True,避免 autogenerate 检测到索引差异
This-is-XiaoDeng Jun 7, 2026
a7e4007
fix: 添加复合索引 used_at_command 到模型,匹配迁移文件
This-is-XiaoDeng Jun 7, 2026
79fbe56
New translations chat.yaml (Chinese Traditional)
This-is-XiaoDeng Jun 7, 2026
2bf6f45
New translations chat.yaml (English)
This-is-XiaoDeng Jun 7, 2026
0cf9c7a
New translations command_stats.yaml (Chinese Traditional)
This-is-XiaoDeng Jun 7, 2026
10b2ea7
New translations command_stats.yaml (English)
This-is-XiaoDeng Jun 7, 2026
f45f3e4
feat(prompt): implement Jinja2-based prompt management system
This-is-XiaoDeng Jun 7, 2026
801f4bb
refactor(openai): remove unused completion utility functions
This-is-XiaoDeng Jun 7, 2026
62c06e6
feat(processor): integrate jinja2 template for system prompt generation
This-is-XiaoDeng Jun 7, 2026
d30effd
refactor(openai): simplify tool management and implement function def…
This-is-XiaoDeng Jun 7, 2026
4c69f53
feat(ego): migrate action decider to jinja2 prompt templates
This-is-XiaoDeng Jun 7, 2026
50b9ff8
feat(prompt): migrate all prompts to Jinja2 template files
This-is-XiaoDeng Jun 7, 2026
6a7ce30
格式化代码
pre-commit-ci[bot] Jun 7, 2026
68d63c8
Auto update from GitHub Actions
github-actions[bot] Jun 7, 2026
29cc962
refactor(openai): support dynamic description formatting in function …
This-is-XiaoDeng Jun 7, 2026
b438d9e
docs(lang): remove tool descriptions from zh_hans chat configuration
This-is-XiaoDeng Jun 7, 2026
a38321e
fix
This-is-XiaoDeng Jun 7, 2026
cc04749
Auto update from GitHub Actions
github-actions[bot] Jun 7, 2026
d4fd635
Merge pull request #1183 from Moonlark-Dev/feat/store-prompt-with-jinja
This-is-XiaoDeng Jun 7, 2026
42bdcaa
fix a bug
This-is-XiaoDeng Jun 7, 2026
520f465
fix: pin mcstatus<13 to fix picmcstat import error
This-is-XiaoDeng Jun 7, 2026
365fbc9
fix a bug
This-is-XiaoDeng Jun 7, 2026
cea09e9
fix: 修复 command_stats help.yaml 格式,添加 plugin 字段并修正 commands 为 dict 格式
This-is-XiaoDeng Jun 7, 2026
851aa1b
fix a bug
This-is-XiaoDeng Jun 7, 2026
0437429
Auto update from GitHub Actions
github-actions[bot] Jun 7, 2026
064754d
Merge remote-tracking branch 'origin/main' into fix/picmcstat-mcstatu…
This-is-XiaoDeng Jun 7, 2026
dd00e41
Merge branch 'fix/picmcstat-mcstatus-compat' of https://github.com/Mo…
This-is-XiaoDeng Jun 7, 2026
a08ec96
Merge pull request #1184 from Moonlark-Dev/fix/picmcstat-mcstatus-compat
This-is-XiaoDeng Jun 7, 2026
6102c0d
feat(ego): pass friend list to system message generator
This-is-XiaoDeng Jun 7, 2026
62e6985
Merge branch 'main' of https://github.com/Moonlark-Dev/Moonlark
This-is-XiaoDeng Jun 7, 2026
37bee3d
refactor(prompt): rename note management tools and clean up chat prompt
This-is-XiaoDeng Jun 7, 2026
779e578
fix a bug
This-is-XiaoDeng Jun 7, 2026
889354d
fix a bug
This-is-XiaoDeng Jun 7, 2026
06918c8
New translations chat.yaml (Chinese Traditional)
This-is-XiaoDeng Jun 7, 2026
c7a2cbb
New translations chat.yaml (English)
This-is-XiaoDeng Jun 7, 2026
29f3ab5
New translations message_summary.yaml (Chinese Traditional)
This-is-XiaoDeng Jun 7, 2026
124a8af
New translations message_summary.yaml (English)
This-is-XiaoDeng Jun 7, 2026
7592bd7
fix a bug
This-is-XiaoDeng Jun 7, 2026
71e0be1
fix a bug
This-is-XiaoDeng Jun 7, 2026
4e68a66
fix a bug
This-is-XiaoDeng Jun 7, 2026
3ad0250
feat(jrrp): implement June luck bias and beyond perfect luck state
This-is-XiaoDeng Jun 7, 2026
0e8d95c
格式化代码
pre-commit-ci[bot] Jun 7, 2026
23019f1
Merge pull request #1185 from Moonlark-Dev/feat/jrrp-improve-at-june
This-is-XiaoDeng Jun 7, 2026
d88f846
New translations jrrp.yaml (Chinese Traditional)
This-is-XiaoDeng Jun 7, 2026
74d5083
New translations jrrp.yaml (English)
This-is-XiaoDeng Jun 7, 2026
da4f3b4
feat(chat): add support for message sending task type
This-is-XiaoDeng Jun 7, 2026
da0e3cf
refactor(chat): optimize tool call history management
This-is-XiaoDeng Jun 7, 2026
e18fefe
fix a bug
This-is-XiaoDeng Jun 7, 2026
e8212fa
feat(diary): 添加 current_time 并禁止永不过期
This-is-XiaoDeng Jun 8, 2026
7da39a2
Merge pull request #1187 from Moonlark-Dev/feat/diary-current-time
This-is-XiaoDeng Jun 8, 2026
e6afe03
feat(diary): 日记存入 DiaryPost 独立表,从 Note 迁移数据
This-is-XiaoDeng Jun 8, 2026
fa475e9
Merge pull request #1188 from Moonlark-Dev/feat/diarypost-table
This-is-XiaoDeng Jun 8, 2026
0d686c0
refactor(diary): DiaryPost 删除 title 字段
This-is-XiaoDeng Jun 8, 2026
db0ebd5
Merge pull request #1189 from Moonlark-Dev/feat/diarypost-remove-title
This-is-XiaoDeng Jun 8, 2026
9c86d44
feat(chat): pass specific current_time to diary generation
This-is-XiaoDeng Jun 8, 2026
92c507b
格式化代码
pre-commit-ci[bot] Jun 8, 2026
5e81f54
Merge pull request #1190 from Moonlark-Dev/feat/diary-change-current-…
This-is-XiaoDeng Jun 8, 2026
551a404
feat(chat): inject recent events summary before fetching reply
This-is-XiaoDeng Jun 9, 2026
36fc6c8
fix(command_stats): fix recording not working due to get_group_id Dep…
This-is-XiaoDeng Jun 9, 2026
f6989b8
Merge pull request #1193 from Moonlark-Dev/fix/command-stats-recording
This-is-XiaoDeng Jun 9, 2026
ec9461f
fix(command_stats): allow empty matcher type for AlconnaMatchers
This-is-XiaoDeng Jun 9, 2026
5ea8fbe
Merge pull request #1194 from Moonlark-Dev/fix/command-stats-recording
This-is-XiaoDeng Jun 9, 2026
2121bcf
fix(migration): use FROM_UNIXTIME for MySQL in diarypost migration
This-is-XiaoDeng Jun 9, 2026
b472cfd
Merge pull request #1195 from Moonlark-Dev/fix/command-stats-recording
This-is-XiaoDeng Jun 9, 2026
a6ccfa8
Auto update from GitHub Actions
github-actions[bot] Jun 9, 2026
d43d4c0
fix(migration): skip diarypost migration if table already exists
This-is-XiaoDeng Jun 9, 2026
47978e2
Merge pull request #1196 from Moonlark-Dev/fix/command-stats-recording
This-is-XiaoDeng Jun 9, 2026
77d07ec
fix(command_stats): fix template variables not being rendered
This-is-XiaoDeng Jun 9, 2026
496ea19
Merge pull request #1197 from Moonlark-Dev/fix/command-stats-recording
This-is-XiaoDeng Jun 9, 2026
dc0d7c1
fix(command_stats): pass days as keyword arg to lang.text()
This-is-XiaoDeng Jun 9, 2026
d3f4da5
Merge pull request #1198 from Moonlark-Dev/fix/command-stats-recording
This-is-XiaoDeng Jun 9, 2026
d5b935a
fix(command_stats): pre-render user_detail per ranking item
This-is-XiaoDeng Jun 9, 2026
a5b7227
Merge pull request #1199 from Moonlark-Dev/fix/command-stats-recording
This-is-XiaoDeng Jun 9, 2026
6f6f478
fix(command_stats): use single braces {days} not {{days}} for str.for…
This-is-XiaoDeng Jun 9, 2026
9effb31
Merge pull request #1200 from Moonlark-Dev/fix/command-stats-recording
This-is-XiaoDeng Jun 9, 2026
88ff125
New translations command_stats.yaml (Chinese Traditional)
This-is-XiaoDeng Jun 9, 2026
4f59142
New translations command_stats.yaml (English)
This-is-XiaoDeng Jun 9, 2026
db71aed
fix(command_stats): filter out empty command names in ranking queries
This-is-XiaoDeng Jun 10, 2026
8177c8b
debug(command_stats): add debug logging to see actual DB data
This-is-XiaoDeng Jun 10, 2026
0c0bd31
chore: remove accidental matchers.py
This-is-XiaoDeng Jun 10, 2026
c57112c
debug: write cmd stats debug to /tmp file
This-is-XiaoDeng Jun 10, 2026
8d51ca1
debug: write to project dir instead of /tmp
This-is-XiaoDeng Jun 10, 2026
3bb3147
fix(command_stats): fix invisible command name - white text on light …
This-is-XiaoDeng Jun 10, 2026
22c2b34
fix(command_stats): unify command prefix and name color to #2c3e50
This-is-XiaoDeng Jun 10, 2026
ed19bd9
docs: update CLAUDE.md with accurate project info
This-is-XiaoDeng Jun 11, 2026
652e18e
格式化代码
pre-commit-ci[bot] Jun 11, 2026
83c6a5f
Auto update from GitHub Actions
github-actions[bot] Jun 11, 2026
466af05
fix: change cmd-rank category from 'system' to 'tools'
This-is-XiaoDeng Jun 11, 2026
1cae0fb
格式化代码
pre-commit-ci[bot] Jun 11, 2026
163ffc0
Auto update from GitHub Actions
github-actions[bot] Jun 11, 2026
cd3d668
fix: 视频输入改为 base64 内联上传(适配 Gemini 2.0+)
This-is-XiaoDeng Jun 12, 2026
3ca633e
Auto update from GitHub Actions
github-actions[bot] Jun 12, 2026
cfc7f30
fix: 工具调用失败提示只保留报错最后一行
This-is-XiaoDeng Jun 12, 2026
cb8e266
格式化代码
pre-commit-ci[bot] Jun 12, 2026
c72b16c
Auto update from GitHub Actions
github-actions[bot] Jun 12, 2026
79e7cef
Merge pull request #1201 from Moonlark-Dev/update-claude-md
This-is-XiaoDeng Jun 12, 2026
9dc9da0
Merge branch 'main' into fix/cmd-rank-category
This-is-XiaoDeng Jun 12, 2026
535ecc1
Merge pull request #1202 from Moonlark-Dev/fix/cmd-rank-category
This-is-XiaoDeng Jun 12, 2026
db5b376
Merge branch 'main' into fix/bilibili-video-base64
This-is-XiaoDeng Jun 12, 2026
5704116
Update src/plugins/nonebot_plugin_chat/utils/tools/bilibili.py
This-is-XiaoDeng Jun 12, 2026
3f2b83e
Update src/plugins/nonebot_plugin_chat/utils/file.py
xxtg666 Jun 12, 2026
1e7b078
Merge pull request #1203 from Moonlark-Dev/fix/bilibili-video-base64
This-is-XiaoDeng Jun 12, 2026
f4e61a8
Merge branch 'main' into fix/tool-error-last-line
This-is-XiaoDeng Jun 12, 2026
944ba30
Merge pull request #1204 from Moonlark-Dev/fix/tool-error-last-line
This-is-XiaoDeng Jun 12, 2026
40c02e3
更新 interaction.md.jinja
This-is-XiaoDeng Jun 12, 2026
fe98180
更新 identity.md.jinja
This-is-XiaoDeng Jun 12, 2026
2c10b0a
Auto update from GitHub Actions
github-actions[bot] Jun 12, 2026
1eaeb5c
更新 interaction.md.jinja
This-is-XiaoDeng Jun 12, 2026
ec6f8a1
Merge branch 'main' into This-is-XiaoDeng-patch-1
This-is-XiaoDeng Jun 12, 2026
06778ca
Merge pull request #1205 from Moonlark-Dev/This-is-XiaoDeng-patch-1
This-is-XiaoDeng Jun 13, 2026
0540bd4
feat: 私聊回复延迟三分钟并生成事件总结;重命名群聊事件总结为QQ中的事件总结
This-is-XiaoDeng Jun 13, 2026
9f7a16e
格式化代码
pre-commit-ci[bot] Jun 13, 2026
c4a8e9f
Merge pull request #1206 from Moonlark-Dev/feat/chat/private-reply-delay
This-is-XiaoDeng Jun 13, 2026
74eac36
feat: 将排行榜默认显示用户数量从 12 改为 7
This-is-XiaoDeng Jun 14, 2026
1c02584
格式化代码
pre-commit-ci[bot] Jun 14, 2026
cf56187
Auto update from GitHub Actions
github-actions[bot] Jun 14, 2026
a76e187
feat: 添加 query_gift 工具定义
This-is-XiaoDeng Jun 14, 2026
38ded4d
feat: 在 ToolManager 中添加 query_gift 工具
This-is-XiaoDeng Jun 14, 2026
078db83
格式化代码
pre-commit-ci[bot] Jun 14, 2026
d9fc87a
Auto update from GitHub Actions
github-actions[bot] Jun 14, 2026
6091078
feat: 为 chat 会话添加 query_gift 工具
This-is-XiaoDeng Jun 14, 2026
9d22097
feat(chat): 添加 chat compact 指令
This-is-XiaoDeng Jun 16, 2026
84980f7
更新 identity.md.jinja
This-is-XiaoDeng Jun 16, 2026
64b38af
Auto update from GitHub Actions
github-actions[bot] Jun 16, 2026
5d8e763
Merge pull request #1210 from Moonlark-Dev/feat/chat-compact
This-is-XiaoDeng Jun 16, 2026
2ff828c
feat: add draw_image tool for AI image generation
This-is-XiaoDeng Jun 16, 2026
94e6a2a
feat: add size and quality params to draw_image tool
This-is-XiaoDeng Jun 16, 2026
c8d5294
格式化代码
pre-commit-ci[bot] Jun 16, 2026
2611dbe
refactor: use identity-based model config for image generation
This-is-XiaoDeng Jun 16, 2026
d9f1e7a
Merge pull request #1211 from Moonlark-Dev/feat/draw-image-tool
This-is-XiaoDeng Jun 16, 2026
c1b9454
更新 interaction.md.jinja
This-is-XiaoDeng Jun 16, 2026
98da7d5
fix: use typing_extensions.TypedDict instead of typing.TypedDict
This-is-XiaoDeng Jun 16, 2026
a64f5ae
fix: 使用 traceback.format_exception_only 处理工具调用错误
This-is-XiaoDeng Jun 17, 2026
0e155a8
Auto update from GitHub Actions
github-actions[bot] Jun 17, 2026
18c3659
Merge pull request #1212 from Moonlark-Dev/fix/tool-call-error-format
This-is-XiaoDeng Jun 17, 2026
c2070aa
fix: jrrp 上报 chat 事件时包含响应消息 ID
This-is-XiaoDeng Jun 17, 2026
6c51e07
Merge pull request #1213 from Moonlark-Dev/fix/jrrp-reply-message-id
This-is-XiaoDeng Jun 17, 2026
f49dbda
Merge main into feat/ranking-default-7: resolve poetry.lock conflicts
This-is-XiaoDeng Jun 17, 2026
99febcb
Merge pull request #1207 from Moonlark-Dev/feat/ranking-default-7
This-is-XiaoDeng Jun 17, 2026
965b0a8
feat(chat): add moonlark main chat cooldown tool
This-is-XiaoDeng Jun 18, 2026
258e056
Auto update from GitHub Actions
github-actions[bot] Jun 18, 2026
10d618b
添加临时无限制 token 申请
This-is-XiaoDeng Jun 18, 2026
2867733
Auto update from GitHub Actions
github-actions[bot] Jun 18, 2026
0864bc3
feat(timers): persist chat timers across restarts
This-is-XiaoDeng Jun 18, 2026
7dcdb62
Auto update from GitHub Actions
github-actions[bot] Jun 18, 2026
3694da4
fix(template): correct GitHub body conditional rendering
This-is-XiaoDeng Jun 18, 2026
23178ff
Merge pull request #1215 from Moonlark-Dev/feat/chat/unlimit-token-apply
This-is-XiaoDeng Jun 18, 2026
92bc062
Merge pull request #1214 from Moonlark-Dev/feat/moonlark_main/chat
This-is-XiaoDeng Jun 18, 2026
8ef0574
Merge pull request #1217 from Moonlark-Dev/fix/github/jinja
This-is-XiaoDeng Jun 18, 2026
fd8e811
Merge pull request #1216 from Moonlark-Dev/feat/chat/timer-store
This-is-XiaoDeng Jun 18, 2026
fff632c
fix a bug
This-is-XiaoDeng Jun 18, 2026
7bcfd71
😡
This-is-XiaoDeng Jun 19, 2026
107362e
fix(prompt): conditionally render note and recent activity sections
This-is-XiaoDeng Jun 19, 2026
7dd168e
chore: switch picmcstat from git dependency to PyPI
This-is-XiaoDeng Jun 19, 2026
464a42b
Merge branch 'main' into switch-picmcstat-to-pypi
This-is-XiaoDeng Jun 19, 2026
073717b
Merge pull request #1218 from This-is-XiaoDeng/switch-picmcstat-to-pypi
This-is-XiaoDeng Jun 19, 2026
8c68c2d
fix a bug
This-is-XiaoDeng Jun 19, 2026
43409db
fix(chat): return HTTP status for non-200 link fetches
This-is-XiaoDeng Jun 19, 2026
9b1d42c
feat(openai): parse JSON codefenced model responses
This-is-XiaoDeng Jun 19, 2026
16e45b7
docs(prompt): strengthen help-request guidance
This-is-XiaoDeng Jun 19, 2026
80c41d9
refactor(prompt): consolidate session-specific chat guidance
This-is-XiaoDeng Jun 19, 2026
e8d4c38
迁移截断检查的提示词
This-is-XiaoDeng Jun 19, 2026
ac9fee6
添加预检查
This-is-XiaoDeng Jun 19, 2026
c3b6ca2
Auto update from GitHub Actions
github-actions[bot] Jun 19, 2026
9467e92
Merge pull request #1219 from Moonlark-Dev/feat/chat/pre-check
This-is-XiaoDeng Jun 19, 2026
a956560
更新 processor.py
This-is-XiaoDeng Jun 20, 2026
0f7bd34
chore(deps): bump actions/checkout from 6 to 7
dependabot[bot] Jun 22, 2026
35f23ac
feat(neko-finder): 使用 render 模板替换 matplotlib 柱状图
This-is-XiaoDeng Jun 23, 2026
e481f78
格式化代码
pre-commit-ci[bot] Jun 23, 2026
c6e98d1
Auto update from GitHub Actions
github-actions[bot] Jun 23, 2026
cd0a1c9
fix(neko-finder): 模板文字改用 i18n key
This-is-XiaoDeng Jun 23, 2026
dffb47b
feat(lastseen): 支持通过QQ号查询最后上线时间
This-is-XiaoDeng Jun 23, 2026
c36291f
Auto update from GitHub Actions
github-actions[bot] Jun 23, 2026
370f6d8
feat: 给需要请求 LLM 的指令添加"正在分析中"提示
This-is-XiaoDeng Jun 23, 2026
718a72f
Auto update from GitHub Actions
github-actions[bot] Jun 23, 2026
a5eb79d
Auto update from GitHub Actions
github-actions[bot] Jun 24, 2026
75da304
Auto update from GitHub Actions
github-actions[bot] Jun 24, 2026
6855e53
Merge pull request #1224 from Moonlark-Dev/feat/lastseen-qq-input
This-is-XiaoDeng Jun 24, 2026
c24ba48
feat: add /wdym plugin - What Do You Mean
This-is-XiaoDeng Jun 24, 2026
4240e3b
格式化代码
pre-commit-ci[bot] Jun 25, 2026
1931417
Auto update from GitHub Actions
github-actions[bot] Jun 25, 2026
791175c
refactor: precise context matching for /wdym
This-is-XiaoDeng Jun 25, 2026
e6b9fc1
格式化代码
pre-commit-ci[bot] Jun 25, 2026
6ad7604
fix: matching direction and fallback for /wdym context
This-is-XiaoDeng Jun 25, 2026
0dd1172
refactor: use get_messages instead of manual message assembly
This-is-XiaoDeng Jun 25, 2026
0684b38
perf: use id_ range query for context messages
This-is-XiaoDeng Jun 25, 2026
a0593d0
格式化代码
pre-commit-ci[bot] Jun 25, 2026
c854034
refactor: simplify _get_replied_raw_text to OB11 only
This-is-XiaoDeng Jun 25, 2026
58d26bf
Merge branch 'main' into feat/analyzing-hint
This-is-XiaoDeng Jun 25, 2026
1144e83
Merge pull request #1225 from Moonlark-Dev/feat/analyzing-hint
This-is-XiaoDeng Jun 25, 2026
880570d
Merge branch 'main' into feat/neko-finder-render
This-is-XiaoDeng Jun 25, 2026
23a8f85
Merge pull request #1223 from Moonlark-Dev/feat/neko-finder-render
This-is-XiaoDeng Jun 25, 2026
231f698
fix: neko_finder ranking bar not showing, use CSS custom property for…
This-is-XiaoDeng Jun 25, 2026
fe7819c
fix: increase neko_finder ranking bar opacity for better visibility
This-is-XiaoDeng Jun 25, 2026
e9ae6e5
fix(ranking): remove negative margin from myrank in wide theme
This-is-XiaoDeng Jun 28, 2026
e1ee2c8
Merge pull request #1228 from Moonlark-Dev/fix-wide-ranking-my-rank-h…
This-is-XiaoDeng Jun 28, 2026
519e5d8
fix(ranking): replace nested card with plain div to fix wide theme bg…
This-is-XiaoDeng Jun 28, 2026
3ea8d4f
fix(ranking): use theme-specific markup for myrank section
This-is-XiaoDeng Jun 28, 2026
0989de7
更新 functions.py
This-is-XiaoDeng Jun 28, 2026
30e5f5e
merge: resolve conflict in src/templates/ranking.html.jinja by adopti…
This-is-XiaoDeng Jun 29, 2026
0c7c265
chore(deps-dev): bump ruff from 0.15.19 to 0.15.20
dependabot[bot] Jun 29, 2026
f01b8c9
chore(larkcave): remove submission report to chat plugin
This-is-XiaoDeng Jun 30, 2026
a73a060
Merge branch 'main' into feat/wdym-plugin
This-is-XiaoDeng Jun 30, 2026
b641713
chore: switch adapter-qq to upstream pypi version
This-is-XiaoDeng Jun 30, 2026
d8a046d
Auto update from GitHub Actions
github-actions[bot] Jun 30, 2026
ad397d4
feat(chat): add query_history_message tool
This-is-XiaoDeng Jun 30, 2026
ad69c3a
格式化代码
pre-commit-ci[bot] Jun 30, 2026
1e69dd0
fix(chat): rename instant memory tool to recall_global_events, distin…
This-is-XiaoDeng Jun 30, 2026
968324f
fix(chat): query_history_message now fetches all messages and uses AI…
This-is-XiaoDeng Jun 30, 2026
78bcd90
格式化代码
pre-commit-ci[bot] Jun 30, 2026
bb88087
refactor(chat): use openai plugin, extract prompt to src/prompt, clea…
This-is-XiaoDeng Jun 30, 2026
3ea11b0
refactor(chat): split query_history prompt into system/user, update t…
This-is-XiaoDeng Jun 30, 2026
cfde966
chore(chat): update prompt with current time, update tool example
This-is-XiaoDeng Jun 30, 2026
9e1115d
refactor(chat): use get_messages instead of separate get_message calls
This-is-XiaoDeng Jun 30, 2026
8e2e222
Merge pull request #1230 from Moonlark-Dev/dependabot/pip/ruff-0.15.20
This-is-XiaoDeng Jun 30, 2026
f298afd
Merge branch 'main' into feat/wdym-plugin
This-is-XiaoDeng Jun 30, 2026
1279990
Merge branch 'main' into chore/switch-adapter-qq-to-pypi
This-is-XiaoDeng Jun 30, 2026
99f8c42
Merge branch 'main' into chore/remove-larkcave-chat-report
This-is-XiaoDeng Jun 30, 2026
e4ab557
Auto update from GitHub Actions
github-actions[bot] Jun 30, 2026
9af42d6
refactor: simplify wdym user prompt
This-is-XiaoDeng Jun 30, 2026
7a4fe27
Merge pull request #1233 from Moonlark-Dev/chore/switch-adapter-qq-to…
This-is-XiaoDeng Jun 30, 2026
d2f5cba
Merge branch 'main' into feat/wdym-plugin
This-is-XiaoDeng Jun 30, 2026
e5764c2
Merge pull request #1226 from Moonlark-Dev/feat/wdym-plugin
This-is-XiaoDeng Jun 30, 2026
19ed3e0
Merge branch 'main' into chore/remove-larkcave-chat-report
This-is-XiaoDeng Jun 30, 2026
41a0b7f
Merge branch 'main' into feat/chat/query-history-message
This-is-XiaoDeng Jun 30, 2026
5c270a6
Merge pull request #1234 from Moonlark-Dev/feat/chat/query-history-me…
This-is-XiaoDeng Jun 30, 2026
13cc07a
Merge branch 'main' into dependabot/github_actions/actions/checkout-7
This-is-XiaoDeng Jun 30, 2026
5192c90
Merge pull request #1220 from Moonlark-Dev/dependabot/github_actions/…
This-is-XiaoDeng Jun 30, 2026
dc47eb1
revert: remove unrelated ranking.html.jinja changes
This-is-XiaoDeng Jun 30, 2026
f4a7495
Merge branch 'main' into chore/remove-larkcave-chat-report
This-is-XiaoDeng Jun 30, 2026
b7c01ba
Merge pull request #1232 from Moonlark-Dev/chore/remove-larkcave-chat…
This-is-XiaoDeng Jun 30, 2026
7821376
fix: correct function name in query_history import
This-is-XiaoDeng Jun 30, 2026
fc5e712
Merge pull request #1235 from Moonlark-Dev/fix/import-query-history-m…
This-is-XiaoDeng Jul 1, 2026
ea6bbc4
fix: resolve merge conflicts in PR #1157 (l10n localization merge)
This-is-XiaoDeng Jul 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
Expand All @@ -21,7 +21,7 @@ jobs:
python-version: 3.11

- name: Setup Poetry
uses: snok/install-poetry@v1.4.1
uses: snok/install-poetry@v1.4.2

- name: Install and update requirements
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Setup Node.js
uses: actions/setup-node@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reviewer-lottery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Reviewer lottery
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- uses: uesteibar/reviewer-lottery@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
20 changes: 15 additions & 5 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co

## Project Overview

Moonlark is a multi-functional chatbot built on Python 3.11+ and the Nonebot2 framework. It supports multiple chat platforms (QQ, Discord) through various adapters (OneBot V11/V12, QQ official adapter). The project follows a plugin-based architecture with 60+ custom plugins located in `src/plugins/`.
Moonlark is a multi-functional chatbot built on Python 3.11+ and the Nonebot2 framework. It supports multiple chat platforms (QQ, Discord) through various adapters (OneBot V11/V12, QQ official adapter). The project follows a plugin-based architecture with 67 custom plugins located in `src/plugins/`.

## Development Setup

Expand Down Expand Up @@ -53,7 +53,7 @@ poetry run nb test tests/test_name.py
### Database Migrations
```bash
# Create new migration
poetry run nb orm revision --autogenerate -m "description"
poetry run nb orm revision

# Apply migrations
poetry run nb orm upgrade
Expand Down Expand Up @@ -150,35 +150,45 @@ All user-facing text must be localized using LarkLang:

## Environment Variables

Key variables in `.env`:
Key variables in `.env` (see `.env.template` for full list):
- `SQLALCHEMY_DATABASE_URL`: Database connection string
- `OPENAI_API_KEY`, `OPENAI_BASE_URL`: OpenAI API configuration
- `OPENAI_DEFAULT_MODEL`: Default model for OpenAI-compatible APIs
- `MODEL_OVERRIDE`: JSON mapping for model overrides per application
- `WOLFRAM_API_KEY`: Wolfram Alpha API
- `BAIDU_API_KEY`, `BAIDU_SECRET_KEY`: Baidu translation API
- `SENTRY_DSN`: Error tracking
- `MOONLARK_API_BASE`: Moonlark API base URL
- `WAKATIME_APP_ID`, `WAKATIME_APP_SECRET`: WakaTime integration
- `TRANSLATE_DEEPLX_URL`: DeepLX translation endpoint
- `METASO_API_KEY`: Metaso search API
- `HTMLRENDER_BROWSER`: Browser for HTML rendering (default: firefox)

## Adapters

Supported chat platforms:
- OneBot V11 (QQ)
- OneBot V12
- QQ Official (custom fork: `github.com/Moonlark-Dev/adapter-qq`)
- QQ Official (uses custom fork `github.com/Moonlark-Dev/adapter-qq`, imported as `nonebot.adapters.qq`)

## Project Structure

```
Moonlark/
├── src/
│ ├── plugins/ # 60+ custom plugins
│ ├── plugins/ # 67 custom plugins
│ ├── lang/ # Localization files
│ ├── prompt/ # Jinja2 prompt templates for AI features
│ ├── static/ # Static assets
│ └── templates/ # Jinja2 templates
├── migrations/ # Alembic database migrations
├── tests/ # Test files
├── docs/ # Documentation
├── pyproject.toml # Root project config
├── src/pyproject.toml # Custom plugins package config
├── COMMANDS.md # Auto-generated command documentation
├── CONTRIBUTING.md # Contribution guidelines
├── CODE_OF_CONDUCT.md # Code of conduct
└── .env # Environment configuration (not in git)
```

Expand Down
Loading