Skip to content

Commit ae684fc

Browse files
authored
Merge pull request #23 from initializ/ui/skill-builder
feat: skill builder UI, daemon lifecycle, update notifications
2 parents 63a2e6d + fc2bc83 commit ae684fc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

forge-ui/process.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"fmt"
55
"os/exec"
66
"strconv"
7+
"strings"
78
"sync"
89
)
910

@@ -71,7 +72,11 @@ func (pm *ProcessManager) Start(agentID string, info *AgentInfo, passphrase stri
7172
port := pm.ports.Allocate()
7273
pm.allocated[agentID] = port
7374

74-
cmd := exec.Command(pm.exePath, "serve", "start", "--port", strconv.Itoa(port), "--no-auth")
75+
args := []string{"serve", "start", "--port", strconv.Itoa(port)}
76+
if len(info.Channels) > 0 {
77+
args = append(args, "--with", strings.Join(info.Channels, ","))
78+
}
79+
cmd := exec.Command(pm.exePath, args...)
7580
cmd.Dir = info.Directory
7681

7782
if passphrase != "" {

0 commit comments

Comments
 (0)