Documentation
¶
Index ¶
- func GetActiveSession(store *kvstore.Store, agentName, projectKey, workspaceName, projectDir string) (string, error)
- func ListNames(workspaceName, agentName, projectDir string) ([]string, error)
- func ListNamesKV(store *kvstore.Store, agentName, projectKey, workspaceName, projectDir string) ([]string, error)
- func LoadResumeToken(store *kvstore.Store, ...) (string, error)
- func ProjectResumeDir(workspaceName, agentName, projectDir string) string
- func ProjectSessionsDir(workspaceName, agentName, projectDir string) string
- func RemoveByName(workspaceName, agentName, projectDir, sessionName string) (bool, error)
- func RemoveByNameKV(store *kvstore.Store, ...) (bool, error)
- func ResolveSelector(workspaceName, agentName, projectDir, selector string) (string, bool, error)
- func SaveResumeToken(store *kvstore.Store, agentName, projectKey, sessionKey, token string) error
- func SaveSessionName(store *kvstore.Store, agentName, projectKey, sessionKey, name string) error
- func SetActiveSession(store *kvstore.Store, agentName, projectKey, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetActiveSession ¶ added in v0.1.7
func GetActiveSession(store *kvstore.Store, agentName, projectKey, workspaceName, projectDir string) (string, error)
GetActiveSession reads the active session name from the KV store, falling back to the filesystem.
func ListNamesKV ¶ added in v0.1.7
func ListNamesKV(store *kvstore.Store, agentName, projectKey, workspaceName, projectDir string) ([]string, error)
ListNamesKV returns all named sessions from the KV store for an agent/project, falling back to the filesystem when KV has no entries.
func LoadResumeToken ¶ added in v0.1.7
func LoadResumeToken(store *kvstore.Store, agentName, projectKey, sessionKey, workspaceName, projectDir string) (string, error)
LoadResumeToken reads a resume token from the KV store, falling back to the filesystem for backward compatibility.
func ProjectResumeDir ¶
ProjectResumeDir returns the project-scoped resume directory for a workspace/agent.
func ProjectSessionsDir ¶
ProjectSessionsDir returns the project-scoped sessions directory.
func RemoveByName ¶
RemoveByName removes all stored instances of a named session. Returns true when at least one session directory was removed.
func RemoveByNameKV ¶ added in v0.1.7
func RemoveByNameKV(store *kvstore.Store, agentName, projectKey, workspaceName, projectDir, sessionName string) (bool, error)
RemoveByNameKV removes a named session from the KV store and filesystem.
func ResolveSelector ¶
ResolveSelector resolves a session selector to the canonical session name. Selector may be:
- exact session name
- exact session directory key/id
- unique prefix of a session directory key/id
func SaveResumeToken ¶ added in v0.1.7
SaveResumeToken writes a resume token to the KV store for the given session.
func SaveSessionName ¶ added in v0.1.7
SaveSessionName writes the session name to the KV store for a given session key.
Types ¶
This section is empty.