agent installation; OLLIE_DEFAULT_AGENT
This commit is contained in:
parent
40abd7a096
commit
f201a0a737
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"prompt": "",
|
||||
"mcpServers": {
|
||||
"superpowers-mcp-server": {
|
||||
"command": "superpowers-mcp-server",
|
||||
"args": [],
|
||||
"env": {
|
||||
"SUPERPOWERD_SESSION_TOKEN": "${SUPERPOWERD_SESSION_TOKEN}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"hooks": {
|
||||
"agentSpawn": "anvillm-hook agentSpawn",
|
||||
"userPromptSubmit": "anvillm-hook userPromptSubmit",
|
||||
"stop": "anvillm-hook stop"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"prompt": "",
|
||||
"mcpServers": {
|
||||
"superpowers-mcp-server": {
|
||||
"command": "superpowers-mcp-server",
|
||||
"args": [],
|
||||
"env": {
|
||||
"SUPERPOWERD_SESSION_TOKEN": "${SUPERPOWERD_SESSION_TOKEN}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"hooks": {
|
||||
"agentSpawn": "true",
|
||||
"userPromptSubmit": "true",
|
||||
"stop": "true"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"globalShortcut": "Ctrl+Space",
|
||||
"mcpServers": {
|
||||
"superpowers-mcp-server": {
|
||||
"command": "superpowers-mcp-server",
|
||||
"args": [],
|
||||
"env": {
|
||||
"SUPERPOWERD_SESSION_TOKEN": "${SUPERPOWERD_SESSION_TOKEN}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"hooks": {
|
||||
"agentSpawn": "anvillm-hook agentSpawn",
|
||||
"userPromptSubmit": "anvillm-hook userPromptSubmit",
|
||||
"stop": "anvillm-hook stop"
|
||||
}
|
||||
}
|
||||
7
main.go
7
main.go
|
|
@ -274,7 +274,10 @@ func main() {
|
|||
)
|
||||
|
||||
// Load the default agent config.
|
||||
agentName := "default"
|
||||
agentName := os.Getenv("OLLIE_AGENT")
|
||||
if agentName == "" {
|
||||
agentName = "default"
|
||||
}
|
||||
if len(os.Args) > 2 {
|
||||
agentName = os.Args[2]
|
||||
}
|
||||
|
|
@ -539,7 +542,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||
|
||||
case "ctrl+c":
|
||||
now := time.Now()
|
||||
|
||||
|
||||
// Handle double-press to quit
|
||||
if m.quitPending && now.Sub(m.lastCtrlC) <= 1*time.Second {
|
||||
// Double Ctrl+C within 1 second: quit
|
||||
|
|
|
|||
Reference in New Issue