mirror of
https://github.com/Twigpine/zero.git
synced 2026-11-09 05:19:33 -10:00
Update the Go module path, imports, install scripts, docs, workflows, packaging and action defaults from Gitlawb/zero to Twigpine/zero. The npm scope (already @twigpine/zero on main, with its @gitlawb/zero migration notes), LICENSE, action author, the OpenGateway provider and historical CHANGELOG links are unchanged. The X-AIMLAPI-Integration-Repo header keeps Gitlawb/zero: it is what AIMLAPI sees for attribution, so changing it needs a maintainer's yes. docs/INSTALL.md keeps `go install github.com/Gitlawb/zero/...`, because every tagged release so far declares that module path. The Homebrew formula comment names the Twigpine/homebrew-tap tap. Co-authored-by: Claude Opus 5.5 <[email protected]>
20 lines
595 B
Go
20 lines
595 B
Go
package tui
|
|
|
|
import (
|
|
tea "charm.land/bubbletea/v2"
|
|
|
|
"github.com/Twigpine/zero/internal/agentinit"
|
|
)
|
|
|
|
// handleInitCommand runs the guided /init flow: build a bootstrap prompt seeded
|
|
// with repo facts (agentinit.BuildPrompt) and launch a normal agent turn that
|
|
// investigates the repo and writes AGENTS.md. It reuses launchPrompt, so the
|
|
// run, tools, and AGENTS.md write path are exactly the standard ones.
|
|
func (m model) handleInitCommand() (tea.Model, tea.Cmd) {
|
|
if m.exiting {
|
|
return m, nil
|
|
}
|
|
prompt := agentinit.BuildPrompt(m.ctx, m.cwd, m.now())
|
|
return m.launchPrompt(prompt)
|
|
}
|