Documentation
¶
Overview ¶
Package peer exchanges explicit messages with a server workspace. It has no NATS upstream, sharing, pane-control or agent-execution dependencies.
Index ¶
- Constants
- func Display(text string) string
- func FormatMessage(m Message) string
- func Save(root, session string, c Connection) error
- func ValidBoard(name string) bool
- func ValidateURL(raw string) error
- type Args
- type Client
- type Connection
- type CoordinationClient
- type Message
- type Page
- type Post
- type Receipt
- type Status
Constants ¶
View Source
const Usage = `` /* 618-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func FormatMessage ¶
func Save ¶
func Save(root, session string, c Connection) error
Save is atomic and stores only a secret's name, never its value.
func ValidBoard ¶
func ValidateURL ¶
Types ¶
type Args ¶
type Client ¶
type Client struct {
Connection Connection
Key string
}
func (Client) ResolveWorkspace ¶
type Connection ¶
type Connection struct {
Enabled bool `json:"enabled"`
URL string `json:"url"`
Workspace string `json:"workspace"`
Board string `json:"board"`
KeySecret string `json:"key_secret"`
SessionID string `json:"session_id"`
}
func Load ¶
func Load(root, session string) (Connection, error)
type CoordinationClient ¶
Coordination uses the existing workspace authorization plus a registration credential. Credentials stay in the local daemon, not task prompts.
type Message ¶
type Message struct {
WorkspaceID string `json:"workspace_id"`
Board string `json:"board"`
Sequence int64 `json:"sequence"`
ID string `json:"id"`
ThreadID string `json:"thread_id"`
UserID string `json:"user_id"`
SessionID string `json:"session_id"`
SessionName string `json:"session_name"`
AgentID string `json:"agent_id"`
AgentName string `json:"agent_name"`
Text string `json:"text"`
CreatedAt time.Time `json:"created_at"`
}
Click to show internal directories.
Click to hide internal directories.