Documentation
¶
Index ¶
- Constants
- func CommandName(command string) string
- func FormatServerStatus(status core.ServerStatus) string
- func HelpText() string
- func PickerCommandLabel(picker PickerData) string
- func PickerItemCommand(picker PickerData, item PickerItem) string
- func PickerItemDisplayInfo(kind PickerKind, item PickerItem) string
- func PickerItemDisplayTitle(item PickerItem) string
- func PickerPageCommand(kind PickerKind, contextID string) string
- func PickerSelectedPage(items []PickerItem, pageSize int) int
- type AutomationRuntime
- type BrowserModuleRuntime
- type ClientRuntime
- type CommandID
- type CommandMenuResultView
- type CommandSpec
- type CommandView
- type ConfirmData
- type ContextRuntime
- type Dispatcher
- type ExternalAgentRuntime
- type FooterKind
- type FormData
- type FormField
- type InfoData
- type InfoRow
- type MCPRuntime
- type MemoryRuntime
- type MenuItemGroup
- type MenuState
- type PermissionRuntime
- type PickerBuilder
- func (b *PickerBuilder) Action(id string, title string, info string, command string) *PickerBuilder
- func (b *PickerBuilder) Back(command string) *PickerBuilder
- func (b *PickerBuilder) Build() PickerData
- func (b *PickerBuilder) Close(command string) *PickerBuilder
- func (b *PickerBuilder) Context(id string) *PickerBuilder
- func (b *PickerBuilder) Danger(id string, title string, info string, command string) *PickerBuilder
- func (b *PickerBuilder) Item(item PickerItem) *PickerBuilder
- func (b *PickerBuilder) Items(items ...PickerItem) *PickerBuilder
- func (b *PickerBuilder) Meta(meta string) *PickerBuilder
- func (b *PickerBuilder) Ptr() *PickerData
- func (b *PickerBuilder) Row(id string, title string, info string, command string) *PickerBuilder
- func (b *PickerBuilder) Select(closeCommand string) *PickerBuilder
- func (b *PickerBuilder) Static(id string, title string, info string) *PickerBuilder
- type PickerData
- type PickerFooterAction
- type PickerItem
- type PickerItemRole
- type PickerKind
- type PickerPage
- type PickerViewData
- type PickerViewItem
- type PickerViewOptions
- type PlanRuntime
- type PromptData
- type ProviderRuntime
- type RealtimeVoiceRuntime
- type Result
- type ResultView
- type ResultViewFooter
- type ResultViewItem
- type ResultViewOptions
- type ResultViewPaging
- type ScreenKind
- type SearchRuntime
- type ServerRuntime
- type SessionMessageRuntime
- type SessionModelRuntime
- type SessionRuntime
- type SessionRuntimeOptions
- type SessionSendRuntime
- type SkillsRuntime
- type StorageRuntime
- type Surface
- type TelephonyRuntime
- type TextEditData
- type UsageRuntime
- type VoiceModuleRuntime
- type WebSearchRuntime
Constants ¶
View Source
const ( CommandNewSession = commandcatalog.CommandNewSession CommandSessions = commandcatalog.CommandSessions CommandSession = commandcatalog.CommandSession CommandProvider = commandcatalog.CommandProvider CommandPermissions = commandcatalog.CommandPermissions CommandContext = commandcatalog.CommandContext CommandUsage = commandcatalog.CommandUsage CommandPlan = commandcatalog.CommandPlan CommandMemory = commandcatalog.CommandMemory CommandSearch = commandcatalog.CommandSearch CommandSkills = commandcatalog.CommandSkills CommandModules = commandcatalog.CommandModules CommandRemind = commandcatalog.CommandRemind CommandTasks = commandcatalog.CommandTasks CommandServer = commandcatalog.CommandServer CommandStatus = commandcatalog.CommandStatus CommandRestart = commandcatalog.CommandRestart CommandStop = commandcatalog.CommandStop CommandHelp = commandcatalog.CommandHelp )
View Source
const SelectedMarker = "✅"
Variables ¶
This section is empty.
Functions ¶
func CommandName ¶
func FormatServerStatus ¶
func FormatServerStatus(status core.ServerStatus) string
func PickerCommandLabel ¶
func PickerCommandLabel(picker PickerData) string
func PickerItemCommand ¶
func PickerItemCommand(picker PickerData, item PickerItem) string
func PickerItemDisplayInfo ¶
func PickerItemDisplayInfo(kind PickerKind, item PickerItem) string
func PickerItemDisplayTitle ¶
func PickerItemDisplayTitle(item PickerItem) string
func PickerPageCommand ¶ added in v0.1.13
func PickerPageCommand(kind PickerKind, contextID string) string
func PickerSelectedPage ¶
func PickerSelectedPage(items []PickerItem, pageSize int) int
Types ¶
type AutomationRuntime ¶
type AutomationRuntime interface {
ClientRuntime
CreateAutomationJob(ctx context.Context, input automation.CreateJobInput) (automation.Job, error)
ListAutomationJobs(ctx context.Context) ([]automation.Job, error)
PauseAutomationJob(ctx context.Context, jobID string) (automation.Job, error)
ResumeAutomationJob(ctx context.Context, jobID string) (automation.Job, error)
CompleteAutomationJob(ctx context.Context, jobID string) (automation.Job, error)
DeleteAutomationJob(ctx context.Context, jobID string) (automation.Job, error)
RunAutomationJobNow(ctx context.Context, jobID string) (automation.Fire, error)
}
type BrowserModuleRuntime ¶ added in v0.1.15
type BrowserModuleRuntime interface {
BrowserModule(ctx context.Context) (setup.BrowserModuleDescriptor, error)
UpdateBrowserModule(ctx context.Context, update setup.BrowserModuleUpdate) (setup.BrowserModuleDescriptor, error)
BrowserProviderAction(ctx context.Context, providerID string, request setup.BrowserProviderActionRequest) (setup.BrowserProviderOption, error)
}
type ClientRuntime ¶
type ClientRuntime interface {
ClientName() string
}
type CommandID ¶
type CommandID = commandcatalog.CommandID
type CommandMenuResultView ¶ added in v0.1.15
type CommandMenuResultView struct {
Surface Surface
Items []ResultViewItem
}
func CommandMenuView ¶ added in v0.1.15
func CommandMenuView(surface Surface, state MenuState) CommandMenuResultView
type CommandSpec ¶
type CommandSpec = commandcatalog.CommandSpec
func Catalog ¶
func Catalog() []CommandSpec
type CommandView ¶
type CommandView struct {
ID string
Command string
Title string
Status string
Group MenuItemGroup
Public bool
Menu bool
Disabled bool
}
func BuildCommandView ¶
func BuildCommandView(state MenuState) []CommandView
type ConfirmData ¶
type ContextRuntime ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func New ¶
func New(runtime any, workingDir string) *Dispatcher
type ExternalAgentRuntime ¶ added in v0.1.6
type ExternalAgentRuntime interface {
ListExternalAgents(ctx context.Context) ([]core.ExternalAgentDescriptor, error)
UpdateExternalAgent(ctx context.Context, agentID string, update core.UpdateExternalAgentRequest) ([]core.ExternalAgentDescriptor, error)
}
type InfoRow ¶
func FormatServerStatusRows ¶
func FormatServerStatusRows(status core.ServerStatus) []InfoRow
type MCPRuntime ¶ added in v0.1.11
type MCPRuntime interface {
MCPConfig(ctx context.Context) (setup.MCPConfigResponse, error)
UpdateMCPConfig(ctx context.Context, update setup.MCPConfigUpdate) (setup.MCPConfigResponse, error)
CreateMCPServer(ctx context.Context, server setup.MCPServerConfig) (setup.MCPConfigResponse, error)
UpdateMCPServer(ctx context.Context, serverID string, update setup.MCPServerUpdate) (setup.MCPConfigResponse, error)
DeleteMCPServer(ctx context.Context, serverID string) (setup.MCPConfigResponse, error)
}
type MemoryRuntime ¶ added in v0.1.12
type MemoryRuntime interface {
ListMemories(ctx context.Context, filter core.MemoryFilter) ([]core.MemoryEntry, error)
}
type MenuItemGroup ¶
type MenuItemGroup string
const ( MenuItemGroupPrimary MenuItemGroup = "" MenuItemGroupSecondary MenuItemGroup = "secondary" )
type MenuState ¶
type MenuState struct {
SessionTitle string
ProviderID string
ModelID string
PermissionMode core.PermissionMode
Capabilities core.SessionCapabilities
}
type PermissionRuntime ¶
type PickerBuilder ¶
type PickerBuilder struct {
// contains filtered or unexported fields
}
func NewPickerData ¶
func NewPickerData(kind PickerKind, title string) *PickerBuilder
func (*PickerBuilder) Action ¶
func (b *PickerBuilder) Action(id string, title string, info string, command string) *PickerBuilder
func (*PickerBuilder) Back ¶
func (b *PickerBuilder) Back(command string) *PickerBuilder
func (*PickerBuilder) Build ¶
func (b *PickerBuilder) Build() PickerData
func (*PickerBuilder) Close ¶
func (b *PickerBuilder) Close(command string) *PickerBuilder
func (*PickerBuilder) Context ¶
func (b *PickerBuilder) Context(id string) *PickerBuilder
func (*PickerBuilder) Danger ¶
func (b *PickerBuilder) Danger(id string, title string, info string, command string) *PickerBuilder
func (*PickerBuilder) Item ¶
func (b *PickerBuilder) Item(item PickerItem) *PickerBuilder
func (*PickerBuilder) Items ¶
func (b *PickerBuilder) Items(items ...PickerItem) *PickerBuilder
func (*PickerBuilder) Meta ¶ added in v0.1.8
func (b *PickerBuilder) Meta(meta string) *PickerBuilder
func (*PickerBuilder) Ptr ¶
func (b *PickerBuilder) Ptr() *PickerData
func (*PickerBuilder) Row ¶
func (b *PickerBuilder) Row(id string, title string, info string, command string) *PickerBuilder
func (*PickerBuilder) Select ¶ added in v0.1.16
func (b *PickerBuilder) Select(closeCommand string) *PickerBuilder
func (*PickerBuilder) Static ¶ added in v0.1.13
func (b *PickerBuilder) Static(id string, title string, info string) *PickerBuilder
type PickerData ¶
type PickerData struct {
Kind PickerKind
ContextID string
Title string
Meta string
BackCommand string
CloseCommand string
HasBack bool
HasClose bool
Popup bool
Select bool
Items []PickerItem
}
func CommandMenuPicker ¶ added in v0.1.15
func CommandMenuPicker(state MenuState) *PickerData
type PickerFooterAction ¶ added in v0.1.15
type PickerFooterAction struct {
}
func PickerFooter ¶ added in v0.1.15
func PickerFooter(picker PickerData) (PickerFooterAction, bool)
type PickerItem ¶
type PickerItem struct {
ID string
Title string
Info string
Search string
Command string
Selected bool
Focused bool
Disabled bool
Role PickerItemRole
}
func ProviderPickerItems ¶
func ProviderPickerItems(items []setup.ProviderSetupItem, session *core.Session) []PickerItem
func (PickerItem) IsAction ¶
func (item PickerItem) IsAction() bool
func (PickerItem) IsDanger ¶
func (item PickerItem) IsDanger() bool
func (PickerItem) NeedsSeparator ¶
func (item PickerItem) NeedsSeparator() bool
type PickerItemRole ¶
type PickerItemRole string
const ( PickerItemRoleNormal PickerItemRole = "" PickerItemRoleDanger PickerItemRole = "danger" PickerItemRoleAction PickerItemRole = "action" )
type PickerKind ¶
type PickerKind string
const ( PickerCommandMenu PickerKind = "command_menu" PickerSessions PickerKind = "sessions" PickerSessionRuntime PickerKind = "session_runtime" PickerSessionActions PickerKind = "session_actions" PickerSessionModels PickerKind = "session_models" PickerProvider PickerKind = "provider" PickerProviderCustom PickerKind = "provider_custom" PickerProviderActions PickerKind = "provider_actions" PickerPermissions PickerKind = "permissions" PickerContext PickerKind = "context" PickerPlan PickerKind = "plan" PickerModules PickerKind = "modules" PickerTextToSpeech PickerKind = "text_to_speech" PickerSpeechToText PickerKind = "speech_to_text" PickerRealtimeVoice PickerKind = "realtime_voice" PickerTelephony PickerKind = "telephony" PickerVoiceProvider PickerKind = "voice_provider" PickerExternalAgents PickerKind = "external_agents" PickerExternalAgent PickerKind = "external_agent" PickerStorage PickerKind = "storage" PickerStorageFiles PickerKind = "storage_files" PickerStorageFile PickerKind = "storage_file" PickerStorageTemp PickerKind = "storage_temp" PickerStorageCleanup PickerKind = "storage_cleanup" PickerStorageTempFile PickerKind = "storage_temp_file" PickerSessionSkills PickerKind = "session_skills" PickerSessionSkill PickerKind = "session_skill" PickerSkills PickerKind = "skills" PickerSkillsSection PickerKind = "skills_section" PickerSkill PickerKind = "skill" PickerMCP PickerKind = "mcp" PickerBrowser PickerKind = "browser" PickerMCPServer PickerKind = "mcp_server" PickerTasks PickerKind = "tasks" PickerTaskActions PickerKind = "task_actions" PickerTaskArchive PickerKind = "task_archive" PickerServer PickerKind = "server" PickerWebSearch PickerKind = "web_search" PickerWebSearchProvider PickerKind = "web_search_provider" )
type PickerPage ¶
type PickerPage struct {
Items []PickerItem
Trailing []PickerItem
Page int
Pages int
}
func PaginatePicker ¶
func PaginatePicker(picker PickerData, page int, pageSize int) PickerPage
type PickerViewData ¶ added in v0.1.15
type PickerViewData struct {
Kind PickerKind
Title string
Text string
Meta string
Legend string
Items []ResultViewItem
Paging ResultViewPaging
}
func PickerView ¶ added in v0.1.15
func PickerView(picker PickerData, options PickerViewOptions) PickerViewData
type PickerViewItem ¶
type PickerViewItem struct {
Item PickerItem
Command string
SeparatorBefore bool
}
func PickerViewItems ¶
func PickerViewItems(picker PickerData) []PickerViewItem
type PickerViewOptions ¶ added in v0.1.15
type PlanRuntime ¶ added in v0.1.7
type PlanRuntime interface {
SessionPlan(ctx context.Context, sessionID string) (core.SessionPlan, error)
SetSessionGoal(ctx context.Context, sessionID string, goal string) (core.SessionPlan, error)
ClearSessionPlan(ctx context.Context, sessionID string) (core.SessionPlan, error)
AddPlanItem(ctx context.Context, sessionID string, text string, parentID string) (core.SessionPlan, error)
UpdatePlanItem(ctx context.Context, sessionID string, itemID string, status core.PlanItemStatus, text string) (core.SessionPlan, error)
}
type PromptData ¶
type ProviderRuntime ¶
type ProviderRuntime interface {
ListSetupProviders(ctx context.Context) ([]setup.ProviderSetupItem, error)
ConfigureSetupProvider(ctx context.Context, providerID string, update setup.ProviderSetupUpdate) (setup.ProviderSetupItem, error)
ProviderModels(ctx context.Context, providerID string, update setup.ProviderSetupUpdate) ([]string, error)
ProviderModelCatalog(ctx context.Context, providerID string, update setup.ProviderSetupUpdate) (setup.ProviderModelsResponse, error)
DeleteSetupProvider(ctx context.Context, providerID string) error
UpdateSessionProvider(ctx context.Context, sessionID string, providerID string) (core.Session, error)
}
type RealtimeVoiceRuntime ¶ added in v0.1.16
type RealtimeVoiceRuntime interface {
RealtimeVoiceModule(ctx context.Context) (realtime.ModuleDescriptor, error)
UpdateRealtimeVoiceModule(ctx context.Context, update setup.VoiceModuleUpdate) (realtime.ModuleDescriptor, error)
}
type Result ¶
type Result struct {
Handled bool
Text string
ReloadSnapshot bool
Picker *PickerData
Form *FormData
Prompt *PromptData
TextEdit *TextEditData
Confirm *ConfirmData
Info *InfoData
}
type ResultView ¶ added in v0.1.15
type ResultView struct {
Screen ScreenKind
Title string
Text string
Meta string
Items []ResultViewItem
Paging ResultViewPaging
}
func PresentResult ¶ added in v0.1.15
func PresentResult(result Result, options ResultViewOptions) ResultView
type ResultViewFooter ¶ added in v0.1.15
type ResultViewFooter struct {
}
type ResultViewItem ¶ added in v0.1.15
type ResultViewOptions ¶ added in v0.1.15
type ResultViewPaging ¶ added in v0.1.15
type ScreenKind ¶ added in v0.1.15
type ScreenKind string
const ( ScreenText ScreenKind = "text" ScreenPicker ScreenKind = "picker" ScreenForm ScreenKind = "form" ScreenPrompt ScreenKind = "prompt" ScreenTextEdit ScreenKind = "text_edit" ScreenConfirm ScreenKind = "confirm" ScreenInfo ScreenKind = "info" )
type SearchRuntime ¶ added in v0.1.7
type SearchRuntime interface {
Search(ctx context.Context, filter core.SearchFilter) (core.SearchReport, error)
}
type ServerRuntime ¶
type SessionMessageRuntime ¶
type SessionModelRuntime ¶ added in v0.1.12
type SessionRuntime ¶
type SessionRuntime interface {
CurrentBinding(ctx context.Context, externalKey string) (core.ClientBinding, error)
ListSessions(ctx context.Context) ([]core.Session, error)
CreateSession(ctx context.Context, externalKey string, title string, workingDir string) (core.Session, error)
UseSession(ctx context.Context, externalKey string, sessionID string) (core.ClientBinding, error)
RenameSession(ctx context.Context, sessionID string, title string) (core.Session, error)
DeleteSession(ctx context.Context, sessionID string) error
}
type SessionRuntimeOptions ¶ added in v0.1.4
type SessionSendRuntime ¶ added in v0.1.11
type SkillsRuntime ¶ added in v0.1.11
type SkillsRuntime interface {
ListSkills(ctx context.Context, opts skills.SearchOptions) ([]skills.Skill, error)
SearchSkills(ctx context.Context, query string, opts skills.SearchOptions) ([]skills.Skill, error)
GetSkill(ctx context.Context, id string) (skills.SkillDetail, error)
InstallSkill(ctx context.Context, path string) ([]skills.Skill, error)
SkillAction(ctx context.Context, id string, action string) error
SessionSkills(ctx context.Context, sessionID string) ([]skills.Skill, error)
UseSkill(ctx context.Context, sessionID string, skillID string) (skills.SkillDetail, error)
UnloadSkill(ctx context.Context, sessionID string, skillID string) error
CreateSkillDraft(ctx context.Context, name string, description string, tags []string, body string) (skills.Skill, error)
UpdateSkillMetadata(ctx context.Context, id string, update skills.MetadataUpdate) (skills.Skill, error)
UpdateSkillBody(ctx context.Context, id string, body string) error
SetSkillEnabled(ctx context.Context, id string, enabled bool) error
}
type StorageRuntime ¶
type StorageRuntime interface {
ListTemporaryStorageFiles(ctx context.Context, limit int) (localstorage.TempListResult, error)
PromoteTemporaryStorageFile(ctx context.Context, tempPath string, destPath string) (localstorage.Entry, error)
DeleteTemporaryStorageFile(ctx context.Context, tempPath string) (localstorage.TempEntry, error)
CleanupTemporaryStorageFiles(ctx context.Context) (localstorage.CleanupResult, error)
UpdateTemporaryStorageSettings(ctx context.Context, autoCleanup *bool, ttlDays int64, maxGB float64) (localstorage.TempSettings, error)
ListStorageFiles(ctx context.Context, filter localstorage.ListFilter) (localstorage.ListResult, error)
ReadStorageFile(ctx context.Context, storagePath string) (localstorage.ReadResult, error)
DeleteStorageFile(ctx context.Context, storagePath string) (localstorage.Entry, error)
}
type TelephonyRuntime ¶ added in v0.1.16
type TelephonyRuntime interface {
TelephonyModule(ctx context.Context) (setup.TelephonyModuleDescriptor, error)
UpdateTelephonyModule(ctx context.Context, update setup.TelephonyModuleUpdate) (setup.TelephonyModuleDescriptor, error)
}
type TextEditData ¶ added in v0.1.11
type UsageRuntime ¶ added in v0.1.7
type VoiceModuleRuntime ¶ added in v0.1.9
type VoiceModuleRuntime interface {
VoiceModules(ctx context.Context) ([]setup.VoiceModuleDescriptor, error)
UpdateVoiceModule(ctx context.Context, moduleID string, update setup.VoiceModuleUpdate) ([]setup.VoiceModuleDescriptor, error)
VoiceProviderAction(ctx context.Context, moduleID string, providerID string, request setup.VoiceProviderActionRequest) (setup.VoiceProviderOption, error)
}
type WebSearchRuntime ¶ added in v0.1.11
type WebSearchRuntime interface {
GetWebSearchConfig(ctx context.Context) (setup.WebSearchConfigResponse, error)
UpdateWebSearchConfig(ctx context.Context, update setup.WebSearchConfig) (setup.WebSearchConfigResponse, error)
}
Source Files
¶
- automation_commands.go
- automation_format.go
- automation_time.go
- catalog.go
- context.go
- core_commands.go
- dispatcher.go
- memory.go
- menu_view.go
- module_commands.go
- modules.go
- modules_browser.go
- modules_external_agents.go
- modules_mcp.go
- modules_realtime_voice.go
- modules_skills.go
- modules_storage.go
- modules_telephony.go
- modules_voice.go
- modules_voice_actions.go
- modules_voice_language.go
- modules_voice_local.go
- modules_voice_misc.go
- modules_voice_presentation.go
- modules_voice_provider_form.go
- modules_voice_status.go
- modules_voice_tts_stt.go
- modules_web_search.go
- parse.go
- permissions.go
- picker_builder.go
- picker_commands.go
- picker_presentation.go
- picker_view.go
- plan.go
- presentation_text.go
- provider_custom.go
- provider_custom_create.go
- provider_custom_delete.go
- provider_custom_edit.go
- provider_custom_fields.go
- provider_custom_lookup.go
- provider_format.go
- provider_openai_codex_auth.go
- provider_view.go
- providers.go
- reminders.go
- result_types.go
- search.go
- server.go
- session_commands.go
- sessions.go
- storage_files.go
- storage_format.go
- storage_picker.go
- storage_temp.go
- task_commands.go
- tasks_add.go
- tasks_picker.go
- usage.go
- view.go
Click to show internal directories.
Click to hide internal directories.