{"modulePath":"github.com/OpenSIN-Code/SIN-Code-Bundle","version":"v1.9.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package chat\n\nSPDX-License-Identifier: MIT Purpose: chat input widget — textarea with attachment support and slash commands. Used by the TUI 2.0 chat mode (Phase 5 of st-3t5v).\n\n## Types\n\n```go\ntype Input struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewInput(store *attachments.Store) *Input\n```\n\n```go\nfunc (i *Input) Attach(path string) error\n```\n\n```go\nfunc (i *Input) AttachBytes(data []byte, name string) error\n```\n\n```go\nfunc (i *Input) Attachments() []*attachments.Attachment\n```\n\n```go\nfunc (i *Input) Blur()\n```\n\n```go\nfunc (i *Input) Clear()\n```\n\n```go\nfunc (i *Input) Focus() tea.Cmd\n```\n\n```go\nfunc (i *Input) HandlePasteBytes(data []byte)\n```\nHandlePasteBytes is a public entry-point for paste events that carry raw bytes (e.g. an image dragged into the terminal, or a future Bubbletea v2 tea.PasteMsg adapter). The Bubbletea v1 KeyMsg.Paste path runs the payload through utf8.DecodeRune which corrupts non-UTF-8 image data, so programmatic callers (tests, future drag-and-drop handlers) should use this method to preserve byte fidelity.\n\n```go\nfunc (i *Input) HandleSlashCommand(line string) (handled bool, err error)\n```\n\n```go\nfunc (i *Input) Init() tea.Cmd\n```\n\n```go\nfunc (i *Input) RawValue() string\n```\n\n```go\nfunc (i *Input) RenderStatus() string\n```\n\n```go\nfunc (i *Input) SetSize(w, h int)\n```\n\n```go\nfunc (i *Input) Update(msg tea.Msg) (tea.Cmd, *SubmitMsg)\n```\n\n```go\nfunc (i *Input) Value() string\n```\n\n```go\nfunc (i *Input) View() string\n```\n\n```go\ntype SubmitMsg struct {\n\tText        string\n\tAttachments []*attachments.Attachment\n}\n```\n\n","path":"github.com/OpenSIN-Code/SIN-Code-Bundle/cmd/sin-code/tui/chat","name":"chat","synopsis":"SPDX-License-Identifier: MIT Purpose: chat input widget — textarea with attachment support and slash commands.","isRedistributable":true}
