Skip to content

Commit 2354e86

Browse files
committed
Warp adapter and auto-update
1 parent 6b5271e commit 2354e86

File tree

16 files changed

+1349
-11
lines changed

16 files changed

+1349
-11
lines changed

cmd/sidecar/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
_ "github.com/sst/sidecar/internal/adapter/claudecode"
1515
_ "github.com/sst/sidecar/internal/adapter/codex"
1616
_ "github.com/sst/sidecar/internal/adapter/opencode"
17+
_ "github.com/sst/sidecar/internal/adapter/warp"
1718
"github.com/sst/sidecar/internal/app"
1819
"github.com/sst/sidecar/internal/config"
1920
"github.com/sst/sidecar/internal/event"
@@ -113,7 +114,8 @@ func main() {
113114
}
114115

115116
// Create and run application
116-
model := app.New(registry, km)
117+
currentVersion := effectiveVersion(Version)
118+
model := app.New(registry, km, currentVersion)
117119
p := tea.NewProgram(model, tea.WithAltScreen())
118120

119121
if _, err := p.Run(); err != nil {

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ require (
3232
github.com/mattn/go-isatty v0.0.20 // indirect
3333
github.com/mattn/go-localereader v0.0.1 // indirect
3434
github.com/mattn/go-runewidth v0.0.16 // indirect
35+
github.com/mattn/go-sqlite3 v1.14.32 // indirect
3536
github.com/microcosm-cc/bluemonday v1.0.27 // indirect
3637
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
3738
github.com/muesli/cancelreader v0.2.2 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+Ei
5959
github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
6060
github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc=
6161
github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
62+
github.com/mattn/go-sqlite3 v1.14.32 h1:JD12Ag3oLy1zQA+BNn74xRgaBbdhbNIDYvQUEuuErjs=
63+
github.com/mattn/go-sqlite3 v1.14.32/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=
6264
github.com/microcosm-cc/bluemonday v1.0.27 h1:MpEUotklkwCSLeH+Qdx1VJgNqLlpY2KXwXFM08ygZfk=
6365
github.com/microcosm-cc/bluemonday v1.0.27/go.mod h1:jFi9vgW+H7c3V0lb6nR74Ib/DIB5OBs92Dimizgw2cA=
6466
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 h1:ZK8zHtRHOkbHy6Mmr5D264iyp3TiX5OmNcI5cIARiQI=

0 commit comments

Comments
 (0)