c810437aa5
A pipelines-claude-host process owns each claude -p CLI and its pipes, spools its stream-json output with offsets and serves a private Unix socket. The server detaches on shutdown and reattaches on start, replaying the spool to rebuild turns, approvals, questions, background tasks and the live model. Explicit close, idle release and CLI exit stop the host; a crashed host falls back to --resume with a notice.
15 lines
349 B
Go
15 lines
349 B
Go
// Command pipelines-claude-host keeps one Claude Code CLI process alive across
|
|
// Pipelines server restarts. The server starts it; it is not run by hand. See
|
|
// internal/claudehost and docs/chat-backends.md.
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"git.a-wan.net/alan/pipelines/internal/claudehost"
|
|
)
|
|
|
|
func main() {
|
|
os.Exit(claudehost.Main(os.Args[1:]))
|
|
}
|