apps

package
v0.9.22 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodexAppLaunchTarget added in v0.9.5

func CodexAppLaunchTarget() (string, error)

CodexAppLaunchTarget resolves the local Codex App bundle path for desktop launch.

func ResolveLaunchBinary added in v0.9.5

func ResolveLaunchBinary(appID, binaryName string) (string, bool)

ResolveLaunchBinary returns a launchable binary path using the same lookup profile that install detection uses.

func SetCodexAppLaunchTarget added in v0.9.16

func SetCodexAppLaunchTarget(target string) error

SetCodexAppLaunchTarget records a user-specified Codex App location in the launch-target file, which sits at the top of the detection and launch resolution order. This is the manual escape hatch for installs that live outside every scanned location.

func XiaozhiURL added in v0.9.20

func XiaozhiURL() string

func ZCodeLaunchTarget added in v0.9.19

func ZCodeLaunchTarget() (string, error)

ZCodeLaunchTarget resolves a managed or externally installed ZCode desktop target.

Types

type LogBuffer

type LogBuffer struct {
	// contains filtered or unexported fields
}

func NewLogBuffer

func NewLogBuffer(maxSize int) *LogBuffer

func (*LogBuffer) Append

func (lb *LogBuffer) Append(line string)

func (*LogBuffer) Recent

func (lb *LogBuffer) Recent(n int) []string

func (*LogBuffer) Reset

func (lb *LogBuffer) Reset()

func (*LogBuffer) Subscribe

func (lb *LogBuffer) Subscribe() chan string

func (*LogBuffer) Unsubscribe

func (lb *LogBuffer) Unsubscribe(ch chan string)

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(cfg *config.Config) *Manager

func (*Manager) EnrichCachedLatestVersion

func (m *Manager) EnrichCachedLatestVersion(info *api.AIAppInfo)

func (*Manager) EnrichLatestVersion

func (m *Manager) EnrichLatestVersion(ctx context.Context, info *api.AIAppInfo)

func (*Manager) Get

func (m *Manager) Get(ctx context.Context, appID string) (api.AIAppInfo, error)

func (*Manager) Install

func (m *Manager) Install(appID string) (api.AIAppInfo, error)

func (*Manager) List

func (m *Manager) List(ctx context.Context) ([]api.AIAppInfo, error)

func (*Manager) RecentLogs

func (m *Manager) RecentLogs(appID string, n int) ([]string, error)

func (*Manager) RefreshAll

func (m *Manager) RefreshAll(ctx context.Context) error

func (*Manager) RefreshLatestVersionAsync

func (m *Manager) RefreshLatestVersionAsync(info api.AIAppInfo)

func (*Manager) StartXiaozhi added in v0.9.20

func (m *Manager) StartXiaozhi(ctx context.Context) error

func (*Manager) StopXiaozhi added in v0.9.20

func (m *Manager) StopXiaozhi(ctx context.Context) error

func (*Manager) SubscribeLogs

func (m *Manager) SubscribeLogs(appID string) (chan string, error)

func (*Manager) Uninstall

func (m *Manager) Uninstall(appID string) (api.AIAppInfo, error)

func (*Manager) UnsubscribeLogs

func (m *Manager) UnsubscribeLogs(appID string, ch chan string)

func (*Manager) XiaozhiRunning added in v0.9.20

func (m *Manager) XiaozhiRunning(ctx context.Context) (bool, error)

Jump to

Keyboard shortcuts

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