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>
29 lines
602 B
Go
29 lines
602 B
Go
package onboard
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestNewOnboardCommand(t *testing.T) {
|
|
cmd := NewOnboardCommand()
|
|
|
|
require.NotNil(t, cmd)
|
|
|
|
assert.Equal(t, "onboard", cmd.Use)
|
|
assert.Equal(t, "Initialize picoclaw configuration and workspace", cmd.Short)
|
|
|
|
assert.Len(t, cmd.Aliases, 1)
|
|
assert.True(t, cmd.HasAlias("o"))
|
|
|
|
assert.NotNil(t, cmd.Run)
|
|
assert.Nil(t, cmd.RunE)
|
|
|
|
assert.Nil(t, cmd.PersistentPreRun)
|
|
assert.Nil(t, cmd.PersistentPostRun)
|
|
|
|
assert.False(t, cmd.HasFlags())
|
|
assert.False(t, cmd.HasSubCommands())
|
|
}
|