chat.go 409 B

12345678910111213141516171819202122
  1. package chat
  2. import (
  3. "github.com/sst/opencode/internal/app"
  4. "github.com/sst/opencode/internal/styles"
  5. "github.com/sst/opencode/internal/theme"
  6. )
  7. type SendMsg struct {
  8. Text string
  9. Attachments []app.Attachment
  10. }
  11. func repo(width int) string {
  12. repo := "github.com/sst/opencode"
  13. t := theme.CurrentTheme()
  14. return styles.BaseStyle().
  15. Foreground(t.TextMuted()).
  16. Width(width).
  17. Render(repo)
  18. }