state

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package state stores small pieces of CLI state that persist between runs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearLastAgent

func ClearLastAgent() error

ClearLastAgent removes the stored agent name.

func Dir

func Dir() string

Dir returns the user data directory (~/.oni3).

func LastAgent

func LastAgent() string

LastAgent returns the agent name used in the previous session, or "".

func RememberedModel

func RememberedModel(agentName string) string

RememberedModel returns the model remembered for an agent, or "".

func SetLastAgent

func SetLastAgent(name string) error

SetLastAgent records the agent used in this session.

func SetRememberedModel

func SetRememberedModel(agentName, model string) error

SetRememberedModel records the model chosen for an agent. An empty model removes the entry, so the agent falls back to its configured model.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL