picoclaw/docker/entrypoint.sh
dj-oyu 0ab75d92ec Merge upstream/main: cobra CLI, channel refactoring, media store, reasoning support
Merge upstream changes including:
- Cobra-based CLI command structure migration
- Channel system refactoring (flat files -> subdirectories for telegram, slack)
- Media store abstraction for file handling
- Reasoning channel support for LLM thinking output
- Prompt caching infrastructure (BuildSystemPromptWithCache)
- Bug fixes: goroutine leaks, error propagation, PublishInbound/Outbound context

Resolved 27 merge conflicts, combining HEAD's orchestration system
(AgentReporter, Broadcaster, spawn/subagent, plan mode) with upstream's
architectural changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 21:18:40 +09:00

15 lines
533 B
Bash

#!/bin/sh
set -e
# First-run: neither config nor workspace exists.
# If config.json is already mounted but workspace is missing we skip onboard to
# avoid the interactive "Overwrite? (y/n)" prompt hanging in a non-TTY container.
if [ ! -d "${HOME}/.picoclaw/workspace" ] && [ ! -f "${HOME}/.picoclaw/config.json" ]; then
picoclaw onboard
echo ""
echo "First-run setup complete."
echo "Edit ${HOME}/.picoclaw/config.json (add your API key, etc.) then restart the container."
exit 0
fi
exec picoclaw gateway "$@"