Documentation
¶
Overview ¶
ABOUTME: General announcement system for post-update feature notifications. ABOUTME: Each feature registers a check function and message; shown via systemMessage on session start.
ABOUTME: CLI command for fetching session transcripts for the /retro skill. ABOUTME: Fetches condensed transcript from backend; with --output-dir, writes JSON and transcript XML to files.
ABOUTME: Parent command for session-related subcommands (get-summary, download, list-files). ABOUTME: Groups commands for querying and retrieving session data from the backend.
ABOUTME: CLI command to download raw JSONL transcript files from the backend. ABOUTME: Streams main transcript to stdout by default, or downloads all files to a directory with --output-dir.
ABOUTME: CLI command to fetch a condensed session transcript from the backend. ABOUTME: Hosts the shared fetchCondensedTranscript helper used by both get-summary and retro commands.
ABOUTME: CLI command to list raw transcript files for a session. ABOUTME: Prints a human-readable table of file metadata (name, type, lines, last updated).
ABOUTME: CLI commands for managing Claude Code skills installed by confab. ABOUTME: confab skills add/remove — analogous to confab hooks add/remove but for skill files.
ABOUTME: CLI command for saving TILs (Today I Learned) to the backend. ABOUTME: Invoked by the /til Claude Code skill — looks up daemon state, extracts message UUID, POSTs to API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoUpdateIfNeeded ¶
func AutoUpdateIfNeeded()
AutoUpdateIfNeeded checks for updates and if available, downloads the new version and re-execs into it with the same arguments. Only returns if no update is needed or if update fails.
func NotifyIfUpdateAvailable ¶
func NotifyIfUpdateAvailable()
NotifyIfUpdateAvailable checks for updates and prints a notice if available. Does not install - just informs the user.
func RunAnnouncements ¶ added in v0.14.0
func RunAnnouncements() string
RunAnnouncements checks all pending announcements, runs setup for each, and returns a combined systemMessage string (empty if nothing to announce).
func SetVersionInfo ¶
func SetVersionInfo(v, c, d string)
SetVersionInfo is called from main to set version info from ldflags
Types ¶
type APIKeyLimitError ¶
type APIKeyLimitError struct {
BackendURL string
}
APIKeyLimitError is returned when the user has too many API keys
func (*APIKeyLimitError) Error ¶
func (e *APIKeyLimitError) Error() string
type Announcement ¶ added in v0.14.0
type Announcement struct {
// Check returns true if this announcement should be shown.
Check func() bool
// Setup runs if Check returns true (e.g., install a skill file).
Setup func() error
// Message is the text included in the systemMessage.
Message string
}
Announcement represents a feature announcement shown on session start.
type DeviceCodeResponse ¶
type DeviceCodeResponse struct {
DeviceCode string `json:"device_code"`
UserCode string `json:"user_code"`
VerificationURI string `json:"verification_uri"`
ExpiresIn int `json:"expires_in"`
Interval int `json:"interval"`
}
DeviceCodeResponse is the response from /auth/device/code
type DeviceTokenResponse ¶
type DeviceTokenResponse struct {
AccessToken string `json:"access_token,omitempty"`
TokenType string `json:"token_type,omitempty"`
Error string `json:"error,omitempty"`
}
DeviceTokenResponse is the response from /auth/device/token
Source Files
¶
- announce.go
- autoupdate.go
- hook.go
- hook_posttooluse.go
- hook_pretooluse.go
- hook_sessionend.go
- hook_sessionstart.go
- hook_userpromptsubmit.go
- hooks.go
- install.go
- list.go
- list_utils.go
- login.go
- logout.go
- redaction.go
- retro.go
- root.go
- save.go
- session.go
- session_download.go
- session_get_summary.go
- session_list_files.go
- setup.go
- skills.go
- spawn.go
- status.go
- sync.go
- til.go
- update.go
- version.go