Versions in this module Expand all Collapse all v0 v0.1.5 Mar 23, 2026 Changes in this version + const APIPrefix + const BaseURL + func AuthLoginURL(cliPort int) string + func DeleteToken() error + func LoadLastSync() time.Time + func LoadToken() string + func Login() error + func SaveLastSync(t time.Time) error + func SaveToken(token string) error + func SlugFromRef(ref string) string + func SyncPath() string + func TokenPath() string + type APIError struct + Message string + StatusCode int + func (e *APIError) Error() string + type Client struct + func NewClient() *Client + func NewClientWithToken(token string) *Client + func (c *Client) CreateRecipe(markdown string) (*RecipeEntry, error) + func (c *Client) DeleteRecipe(id string) error + func (c *Client) GetRecipe(ref string) (*RecipeEntry, error) + func (c *Client) GetRecipeRaw(ref string) (string, error) + func (c *Client) IsLoggedIn() bool + func (c *Client) ListRecipes(page, perPage int, author, query string) (*RecipeList, error) + func (c *Client) Logout() error + func (c *Client) Me() (*User, error) + func (c *Client) SetBaseURL(u string) + func (c *Client) UpdateRecipe(id, markdown string) (*RecipeEntry, error) + func (c *Client) UploadPreferences(payload PreferenceUpload) (int, error) + type PreferenceUpload struct + Sessions []SessionUpload + type RecipeEntry struct + AuthorID string + AuthorUsername string + Content string + ContentHash string + CreatedAt string + ID string + Metadata map[string]any + Name string + ParserVersion int + Slug string + UpdatedAt string + func (r *RecipeEntry) Ref() string + type RecipeList struct + Page int + PerPage int + Recipes []RecipeEntry + Total int + type RunUpload struct + ConfigHash string + CostsUSD map[string]float64 + InputTokens map[string]int64 + LatenciesMS map[string]int64 + Models []string + OutputTokens map[string]int64 + PromptHash string + ProposedWritesCount map[string]int + Rating string + Selected string + Timestamp time.Time + ToolCalls map[string]map[string]int + Type string + type SessionUpload struct + ConfigHash string + CreatedAt time.Time + ID string + LastActiveAt time.Time + Models []string + PromptCount int + RecipeName string + Runs []RunUpload + type User struct + AvatarURL string + DisplayName string + ID string + Username string