Commit Graph

96 Commits

Author SHA1 Message Date
lxowalle
68abf6b2ee * fix: docker build failed 2026-02-13 12:10:00 +08:00
Guoguo
92b8710f59 fix(version): default to dev (#95)
`make build` injects the real version from git tags via ldflags. Avoid hardcoded version strings here.

Signed-off-by: Guoguo <i@qwq.trade>
2026-02-13 10:33:07 +08:00
Guoguo
8e15c9093b ci: add release workflow 2026-02-13 10:03:04 +08:00
zepan
aa0ab7294b 1. update wechat group qrcode 2026-02-13 09:20:47 +08:00
lxowalle
d83fb6e081 * Fix typos 2026-02-13 00:25:08 +08:00
Sunwood-ai-labs
d2a372e7cc Add openrouter config sample 2026-02-13 00:25:08 +08:00
Sunwood-ai-labs
759f4cfe25 refactor(docker): consolidate compose files and move config to config/ directory
- Deleted docker-compose.discord.yml and merged into docker-compose.yml
- Moved config.example.json to config/
- Updated volume mounts to use ./config/config.json
- Updated verify script permissions (implied if valid)
2026-02-13 00:25:08 +08:00
Sunwood-ai-labs
2997ea0b01 ci: add GitHub Actions workflow for Docker image build & push 🐳 2026-02-13 00:25:08 +08:00
Sunwood-ai-labs
1b45195acb feat: add Docker Compose support for Discord bot deployment
- Add Dockerfile with multi-stage build for picoclaw
- Add docker-compose.discord.yml for Discord bot service
- Add docker-compose.yml for agent mode service
- Add .env.example with environment variable template
- Add .dockerignore for optimized builds
- Update README.md with Docker Compose section and language switch
- Add README.ja.md (Japanese documentation)
- Update .gitignore with Docker-related entries
2026-02-13 00:25:08 +08:00
Guoguo
d165fde011 build: add darwin arm64 target (#76) 2026-02-12 23:37:40 +08:00
lxowalle
e2862c721d Merge pull request #74 from SatyamDevv/main
feat(cron): Add support for direct shell command execution in scheduled jobs
2026-02-12 23:31:36 +08:00
Satyam Tiwari
0b7f8c1e82 Merge remote-tracking branch 'upstream/main' 2026-02-12 20:58:36 +05:30
lxowalle
19fc918e9c Merge pull request #73 from Leeaandrob/feat/claude-cli-provider
feat: add cli-based LLM provider
2026-02-12 23:27:29 +08:00
lxowalle
bba44cf89c Merge pull request #72 from xray918/add-clawdchat-social-network
Add ClawdChat Agent Social Network section
2026-02-12 23:07:58 +08:00
Satyam Tiwari
19b9f93935 Merge remote-tracking branch 'upstream/main' 2026-02-12 20:35:25 +05:30
Satyam Tiwari
2855764712 Merge branch 'main' of https://github.com/SatyamDevv/picoclaw 2026-02-12 20:30:13 +05:30
lxowalle
a8cd784636 Merge pull request #64 from DevEverything01/fix/heartbeat-service-start-bug
fix(heartbeat): resolve bug where service could never start
2026-02-12 22:59:50 +08:00
Satyam Tiwari
7c16afbe62 merged and fixed the issues 2026-02-12 20:29:15 +05:30
Satyam Tiwari
71a81eb297 Merge branch 'main' of https://github.com/SatyamDevv/picoclaw 2026-02-12 20:25:31 +05:30
xiexinfa
ae2501d943 Add ClawdChat Agent Social Network section to README
- Add new section introducing ClawdChat.ai agent social network
- Include ClawdChat icon with transparent background
- Provide clear instructions for joining the network
- Position section before Configuration for better visibility

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 22:53:04 +08:00
Leandro Barbosa
f6362ce7b1 feat: add cli-based LLM provider
Add ClaudeCliProvider that executes the local CLI as a subprocess,
enabling PicoClaw to leverage advanced capabilities (MCP tools,
workspace awareness, session management) through any messaging channel.

- Implement LLMProvider interface via subprocess execution
- Support --system-prompt, --model, --output-format json flags
- Parse real v2.x JSON response format including usage tokens
- Handle error responses, stderr, context cancellation
- Register "claude-cli", "claude-code", "claudecode" aliases in CreateProvider
- 56 unit tests with mock scripts + 3 integration tests against real binary
- 100% coverage on all functions except stripToolCallsJSON (85.7%)
2026-02-12 11:51:51 -03:00
Satyam Tiwari
9c98c11351 Enhance CronTool to support executing shell commands and update job handling 2026-02-12 20:21:49 +05:30
lxowalle
930080f603 Merge pull request #56 from jmahotiedu/fix/openai-device-code-interval
fix(auth): support string interval in OpenAI device-code flow
2026-02-12 22:51:37 +08:00
lxowalle
5b6ad3f7cf Merge pull request #55 from Diegox-17/patch-1
Fix LLM error by cleaning up CONSCIOUSLY message history
2026-02-12 22:49:57 +08:00
mxrain
a9a7a89c07 feat: add Moonshot/Kimi and NVIDIA provider support with proxy 2026-02-12 22:39:38 +08:00
mxrain
53c69ae41e fix: use cmd /c on Windows for shell command execution
The exec tool was hardcoded to use 'sh -c' which doesn't exist on Windows,
causing all tool calls to fail silently in gateway mode.
2026-02-12 22:38:47 +08:00
mxrain
1d143fa10a feat: add Telegram proxy support and flexible allow_from matching
- Add proxy config field for Telegram channel to support HTTP/SOCKS proxies
- Use telego.WithHTTPClient to route all Telegram API requests through proxy
- Add FlexibleStringSlice type so allow_from accepts both strings and numbers
- Improve IsAllowed to match numeric ID, username, and @username formats
- Update config.example.json with proxy field
2026-02-12 22:38:47 +08:00
Guoguo
0661d05541 ci: add build check workflow (#71)
Signed-off-by: Guoguo <i@qwq.trade>
2026-02-12 22:28:27 +08:00
lxowalle
8661d54406 * Delete unused file 2026-02-12 21:58:40 +08:00
lxowalle
8d155988a9 Merge pull request #26 from RinZ27/fix-path-traversal-and-unrestricted-exec
Enforce workspace directory boundaries for system tools
2026-02-12 21:57:29 +08:00
lxowalle
df1e4d0494 Merge branch 'main' into fix-path-traversal-and-unrestricted-exec 2026-02-12 21:57:16 +08:00
yinwm
8968d58fed Merge pull request #51 from victorhdchagas/fix/telegram-permission-check
Fix Telegram channel permission check
2026-02-12 18:41:34 +08:00
yinwm
2fb2604b0e Merge pull request #48 from victorhdchagas/fix/provider-field-support
Add provider field support for explicit provider selection
2026-02-12 18:34:57 +08:00
Together
bab78de6a4 fix(heartbeat): resolve bug where service could never start
HeartbeatService.Start() always returned early because running()
checked stopChan closure state, which is "open" (= true) for a
newly created service. This caused Start() to interpret a fresh
service as "already running" and skip launching the goroutine.

Introduce a `started` bool field to separate "has been started"
from "has not been stopped", fixing both the start failure and
a potential double-close panic on Stop().
2026-02-12 17:56:04 +08:00
Jared Mahotiere
a7bbda147e fix(auth): handle string interval in device-code login
planned-date: 2026-02-12

why: Device-code login was failing because the interval field can arrive as a quoted number, which breaks strict integer decoding and blocks login in shell-only environments.

what: Added flexible interval parsing for numeric or quoted values, wired LoginDeviceCode to the parser, printed the browser auth URL before waiting, and added parser tests for numeric, quoted, and invalid interval payloads.

verification: c:\projects\toolchains\go\bin\go.exe test ./pkg/auth -run Test(ParseDeviceCodeResponse|BuildAuthorizeURL)
2026-02-12 02:22:59 -05:00
zepan
13fcbe6c59 1. update wechat group qrcode 2026-02-12 15:00:30 +08:00
Diegox-17
481eee672e Fix LLM error by cleaning up CONSCIOUSLY message history
Added logic to remove orphaned tool messages from history to prevent LLM errors.
2026-02-12 00:42:40 -06:00
RinZ27
792639d813 Enforce workspace boundaries with configurable restriction option
Implemented a unified path validation helper to ensure filesystem operations stay within the designated workspace. This now supports a 'restrict_to_workspace' option in config.json (enabled by default) to allow flexibility for specific environments while maintaining a secure default posture. I've updated read_file, write_file, list_dir, append_file, edit_file, and exec tools to respect this setting and included tests for both restricted and unrestricted modes.
2026-02-12 12:46:32 +07:00
Wutachi
d7da39d62b Fix telegram channel permission check 2026-02-12 02:39:55 -03:00
yinwm
4a7c48112a Merge pull request #49 from yinwm/main
refactor(channels): consolidate media handling and improve resource cleanup
2026-02-12 12:47:31 +08:00
yinwm
5c8626f07b refactor(channels): consolidate media handling and improve resource cleanup
Extract common file download and audio detection logic to utils package,
implement consistent temp file cleanup with defer, add allowlist checks
before downloading attachments, and improve context management across
Discord, Slack, and Telegram channels. Replace logging with structured
logger and prevent context leaks in transcription and thinking animations.
2026-02-12 12:46:28 +08:00
yinwm
4a39658e61 Merge pull request #45 from jadeydi/main
better version info
2026-02-12 12:07:42 +08:00
yinwm
64295955a5 Merge pull request #40 from mymmrac/telegram-using-telego
feat(telegram): Use Telego instead of go-telegram-bot-api
2026-02-12 12:07:00 +08:00
yinwm
fe4962794d Merge branch 'main' into telegram-using-telego 2026-02-12 12:06:48 +08:00
Wutachi
f4a8ff7571 Add provider field support for explicit provider selection
- Add Provider field to AgentDefaults struct
- Modify CreateProvider to use explicit provider field first, fallback to model name detection
- Allows using models without provider prefix (e.g., llama-3.1-8b-instant instead of groq/llama-3.1-8b-instant)
- Supports all providers: groq, openai, anthropic, openrouter, zhipu, gemini, vllm
- Backward compatible with existing configs

Fixes issue where models without provider prefix could not use configured API keys.
2026-02-12 01:01:23 -03:00
yinwm
292a371dca Merge pull request #34 from corylanou/issue-31-feat-add-slack-channel-integration-with-socket-mode-threads-reactions-and-slash-commands
feat(channels): add Slack channel integration with Socket Mode
2026-02-12 12:01:19 +08:00
yinwm
44e33d8b1c Merge branch 'main' into issue-31-feat-add-slack-channel-integration-with-socket-mode-threads-reactions-and-slash-commands 2026-02-12 11:59:05 +08:00
yinwm
167efc55e0 Merge pull request #33 from corylanou/issue-27-feat-add-picoclaw-migrate-command-for-openclaw-workspace-migration
feat(migrate): add picoclaw migrate command for OpenClaw workspace migration

Adds migrate command to migrate workspace and config from OpenClaw to PicoClaw.

- Migrates workspace files (SOUL.md, AGENTS.md, USER.md, TOOLS.md, HEARTBEAT.md, memory/, skills/)
- Converts config from camelCase (OpenClaw) to snake_case (PicoClaw) format
- Supports --dry-run, --refresh, --config-only, --workspace-only, --force flags
- Safety: backups (.bak), confirmation prompts, no silent overwrites

Closes #27
2026-02-12 11:28:50 +08:00
yinwm
66669d6635 Merge branch 'main' into issue-27-feat-add-picoclaw-migrate-command-for-openclaw-workspace-migration 2026-02-12 11:22:06 +08:00
yinwm
5f1caedec2 Merge pull request #32 from corylanou/issue-18-add-support-for-openai-anthropic-oauth-based-login
feat(auth): add OAuth login with SDK-based subscription providers
2026-02-12 11:05:12 +08:00