summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/spike/main.go20
1 files changed, 14 insertions, 6 deletions
diff --git a/cmd/spike/main.go b/cmd/spike/main.go
index 7fc0bf2..2841436 100644
--- a/cmd/spike/main.go
+++ b/cmd/spike/main.go
@@ -38,15 +38,17 @@ import (
"time"
"github.com/thepeterstone/claudomator/internal/executor"
+ "github.com/thepeterstone/claudomator/internal/role"
)
type recordingChannel struct {
- mu sync.Mutex
- asks []string
- summary string
- progress []string
- subtasks []executor.SubtaskSpec
- epics []executor.EpicProposal
+ mu sync.Mutex
+ asks []string
+ summary string
+ progress []string
+ subtasks []executor.SubtaskSpec
+ epics []executor.EpicProposal
+ roleConfig []role.RoleConfig
}
func (c *recordingChannel) AskUser(_ context.Context, q string) (string, error) {
@@ -79,6 +81,12 @@ func (c *recordingChannel) ProposeEpic(_ context.Context, spec executor.EpicProp
c.mu.Unlock()
return "spike-epic-1", nil
}
+func (c *recordingChannel) ProposeRoleConfig(_ context.Context, cfg role.RoleConfig) (int, error) {
+ c.mu.Lock()
+ c.roleConfig = append(c.roleConfig, cfg)
+ c.mu.Unlock()
+ return 1, nil
+}
func main() {
agent := "claude"