memorysearch

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package memorysearch reports search access for one selected agent and workspace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Availability

type Availability string

Availability describes effective search access, not saved knowledge.

const (
	Available   Availability = "available"
	Unavailable Availability = "unavailable"
	Unknown     Availability = "unknown"
	Absent      Availability = "absent"
)

type Input

type Input struct {
	Agent     string
	Workspace string
	CodexHome string
	Config    config.Config
	ConfigErr error
	Launch    LaunchEvidence
}

type LaunchEvidence

type LaunchEvidence struct {
	Agent        string
	Workspace    string
	CodexHome    string
	Plugins      []Plugin
	PluginsKnown bool
	ChildPATH    *string
	// ChildRunsAsDaemon asserts that the selected child inherits the daemon's
	// UID and GID, so an access check in this process applies to that child.
	ChildRunsAsDaemon  bool
	HostCLIs           []string
	HostCLIsKnown      bool
	MCPStatus          *turnevent.MCPStatus
	MCPStatusEffective bool
}

LaunchEvidence must describe the selected child, not the operator's host setup. A nil ChildPATH or MCPStatus means that check could not be completed.

type Plugin

type Plugin struct {
	ID      string
	Enabled bool
}

Plugin is one entry from the selected launch's effective agent plugin inventory.

type Provider

type Provider struct {
	ID           string
	DisplayName  string
	Installed    bool
	Enabled      bool
	Availability Availability
}

type Result

type Result struct {
	Availability Availability
	Providers    []Provider
}

func Detect

func Detect(in Input) (Result, error)

Detect classifies a bounded, read-only snapshot. It never launches a search program or consults the daemon's PATH or an operator's personal agent home.

Jump to

Keyboard shortcuts

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