Commit graph

33 commits

Author SHA1 Message Date
Only_Xianzo
7a5f236059 Fix: prioritize explicit provider prefixes and update max_tokens schema 2026-02-11 22:49:47 +08:00
zepan
af47916efb 1. update wechat group qrcode 2026-02-11 22:46:28 +08:00
lxowalle
03e3bc77f4 Merge pull request #23 from yinwm/fix/gateway-cron-tool
feat: Cron tool and agent integration
2026-02-11 21:25:06 +08:00
yinwm
695312cff9 Merge upstream/main 2026-02-11 21:08:30 +08:00
Harshdeep Sharma
872be9159f Fix typos and update API keys in README 2026-02-11 20:46:01 +08:00
Harshdeep Sharma
ae5bf17060 Fix typos and update API keys in README 2026-02-11 20:42:22 +08:00
yinwm
83f8f1351f refactor(tools): remove duplicate truncate functions and add docs
- Remove duplicate truncate/truncateString functions from loop.go and cron.go
- Use utils.Truncate consistently across codebase
- Add Workspace Layout section to README
- Document cron/scheduled tasks functionality

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 20:31:41 +08:00
yinwm
0a8b929776 refactor(agent): improve code quality and restore summarization
Code review fixes:
- Use map for O(n) job lookup in cron service (was O(n²))
- Set DeleteAfterRun=true for one-time cron tasks
- Restore context compression/summarization to prevent context overflow
- Add pkg/utils/string.go with Unicode-aware Truncate function
- Simplify setupCronTool to return only CronService
- Change Chinese comments to English in context.go

Refactoring:
- Replace toolsSummary callback with SetToolsRegistry setter pattern
- This makes dependency injection clearer and easier to test

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 20:31:41 +08:00
yinwm
f3fe539410 fix(cron): add one-time reminders and fix data paths to workspace
- Add at_seconds parameter for one-time reminders (e.g., "remind me in 10 minutes")
- Update every_seconds description to emphasize recurring-only usage
- Route cron delivery: deliver=true sends directly, deliver=false uses agent
- Fix cron data path from ~/.picoclaw/cron to workspace/cron
- Fix sessions path from workspace/../sessions to workspace/sessions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 20:31:41 +08:00
yinwm
af2221b221 feat: add cron tool integration with agent
- Add adhocore/gronx dependency for cron expression parsing
- Fix CronService race conditions and add cron expression support
- Add CronTool with add/list/remove/enable/disable actions
- Add ContextualTool interface for tools needing channel/chatID context
- Add ProcessDirectWithChannel to AgentLoop for cron job execution
- Register CronTool in gateway and wire up onJob handler
- Fix slice bounds panic in addJob for short messages

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 20:28:46 +08:00
Harshdeep Sharma
1475a6681d Fix typos and update API keys in README 2026-02-11 20:26:03 +08:00
lxowalle
1a6813be89 Merge pull request #19 from n0bisuke/main
fix a typo
2026-02-11 19:55:15 +08:00
lxowalle
b9138d1a7a Merge pull request #14 from yinwm/fix/tool-execution
Agent Memory System & Tool Execution Improvements
2026-02-11 19:53:26 +08:00
lxowalle
0ead672613 Merge branch 'pr-12' 2026-02-11 19:47:11 +08:00
lxowalle
c8d3db30b4 Merge pull request #5 from yinwm/add-qq-channel
Add QQ channel support
2026-02-11 17:25:32 +08:00
n0bisuke
3351779e9b fix a typo 2026-02-11 12:56:06 +09:00
yinwm
e5f7ae8699 Fix BuildMessages calls, remove conflict markers, and add skills_available field 2026-02-11 00:30:38 +08:00
yinwm
724053b865 Add memory system, dynamic tool loading, and fix logging issues
- Add MemoryStore for persistent long-term and daily notes
- Add dynamic tool summary generation in system prompt
- Fix YAML frontmatter parsing for nanobot skill format
- Add GetSummaries() method to ToolRegistry
- Fix DebugCF logging to use structured metadata
- Improve web_search and shell tool descriptions
2026-02-11 00:14:33 +08:00
yinwm
4ddffe5cfa Add memory system, debug mode, and tools 2026-02-11 00:14:23 +08:00
yinwm
d33f273941 Add logging to agent loop and tool execution 2026-02-11 00:11:39 +08:00
yinwm
a1dfb4c5ca add QQ channel support 2026-02-11 00:00:53 +08:00
w0x7ce
6416ac909a feat: Add DingTalk channel support via Stream Mode
- Add pkg/channels/dingtalk.go with WebSocket Stream Mode
- Add DingTalkConfig to config.go
- Register DingTalk in manager.go
- Update README with DingTalk setup instructions
- Add open-dingtalk/dingtalk-stream-sdk-go v0.9.1 dependency
2026-02-10 21:33:55 +08:00
lxowalle
6a10db0530 * Discord & Telegram support ASR through groq 2026-02-10 17:11:42 +08:00
zepan
d681f44f46 1. add hardware samples 2026-02-10 15:54:59 +08:00
lxowalle
c78ba6cff8 Merge pull request #6 from imguoguo/fix-feishu
fix: enable Feishu message flow
2026-02-10 15:27:38 +08:00
Guoguo
0d1b5f747a fix: enable Feishu message flow 2026-02-10 15:20:00 +08:00
lxowalle
450f27aad2 Merge pull request #3 from Danieldd28/feature/dynamic-context-compression
feat: implement dynamic context compression
2026-02-10 10:59:13 +08:00
Danieldd28
2df60b2fa3 feat: make context compression dynamic and add thinking animation
- Implement dynamic context window awareness for compression thresholds
- Add 'Thinking' animation for Telegram channel with auto-edit response
- Refactor summarization to handle multi-part batches and oversized messages
2026-02-10 02:00:57 +07:00
Danieldd28
07e624c8da feat: implement dynamic context compression for efficient memory usage
- Added Summary field to Session struct
- Implemented background summarization when history > 20 messages
- Included conversation summary in system prompt for long-term context
- Added thread-safety for concurrent summarization per session
2026-02-10 01:25:46 +07:00
zepan
f7d6a9ca43 1. add discord group 2026-02-09 22:12:15 +08:00
zepan
5baae33911 1. add wechat group 2026-02-09 21:36:11 +08:00
lxowalle
b599a022be * Fix some typos 2026-02-09 19:53:49 +08:00
lxowalle
e17693b17c * First commit 2026-02-09 19:20:19 +08:00