gormes

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultWorkspaceID = goncho.DefaultWorkspaceID
	DefaultObserverID  = goncho.DefaultObserverPeerID
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DatabasePath       string
	ProfilesDirectory  string
	ProfileID          string
	WorkspaceID        string
	ObserverID         string
	RecentMessages     int
	MemoryMarkdownPath string
	Logger             *slog.Logger
}

type LiveRootReport added in v0.3.1

type LiveRootReport struct {
	Root             string              `json:"root"`
	RootSessionIndex SessionIndexSummary `json:"root_session_index"`
	Profiles         []ProfileSummary    `json:"profiles"`
	MemoryFiles      []MemoryFileSummary `json:"memory_files"`
}

func InspectLiveRoot added in v0.3.1

func InspectLiveRoot(ctx context.Context, root string) (LiveRootReport, error)

func (LiveRootReport) GonchoMentionCount added in v0.3.1

func (r LiveRootReport) GonchoMentionCount() int

func (LiveRootReport) Profile added in v0.3.1

func (r LiveRootReport) Profile(profileID string) (ProfileSummary, bool)

func (LiveRootReport) SessionEvidenceInput added in v0.3.1

func (r LiveRootReport) SessionEvidenceInput(workspaceID string) goncho.SessionEvidenceInput

func (LiveRootReport) String added in v0.3.1

func (r LiveRootReport) String() string

type MemoryFileSummary added in v0.3.1

type MemoryFileSummary struct {
	Path           string    `json:"path"`
	Kind           string    `json:"kind"`
	SizeBytes      int64     `json:"size_bytes"`
	ModifiedAt     time.Time `json:"modified_at"`
	NonEmptyLines  int       `json:"non_empty_lines"`
	HeadingCount   int       `json:"heading_count"`
	GonchoMentions int       `json:"goncho_mentions"`
	GormesMentions int       `json:"gormes_mentions"`
}

type ProfileSummary added in v0.3.1

type ProfileSummary struct {
	ProfileID    string              `json:"profile_id"`
	SessionIndex SessionIndexSummary `json:"session_index"`
	MemoryFiles  []MemoryFileSummary `json:"memory_files"`
}

type Runtime

type Runtime struct {
	Store        *memory.SqliteStore
	DB           *sql.DB
	Service      *goncho.Service
	ContextTool  *goncho.GonchoContextTool
	SearchTool   *goncho.GonchoSearchTool
	RecallTool   *goncho.GonchoRecallTool
	RememberTool *goncho.GonchoRememberTool
	ReviewTool   *goncho.ReviewTool
	HandoffTool  *goncho.GonchoHandoffTool
	// contains filtered or unexported fields
}

func Open

func Open(ctx context.Context, cfg Config) (*Runtime, error)

func (*Runtime) Close

func (r *Runtime) Close(ctx context.Context) error

func (*Runtime) Status

func (r *Runtime) Status() Status

type SessionIndexSummary added in v0.3.1

type SessionIndexSummary struct {
	Path         string    `json:"path"`
	Present      bool      `json:"present"`
	SessionCount int       `json:"session_count"`
	LineageCount int       `json:"lineage_count"`
	UpdatedAt    time.Time `json:"updated_at,omitempty"`
}

type Status

type Status struct {
	Ready              bool             `json:"ready"`
	WorkspaceID        string           `json:"workspace_id"`
	ObserverID         string           `json:"observer_id"`
	ProfileID          string           `json:"profile_id,omitempty"`
	ProfilesDirectory  string           `json:"profiles_directory,omitempty"`
	ProfileDirectory   string           `json:"profile_directory,omitempty"`
	DatabasePath       string           `json:"database_path"`
	MemoryMarkdownPath string           `json:"memory_markdown_path,omitempty"`
	ToolNames          []string         `json:"tool_names"`
	ToolSpecs          []StatusToolSpec `json:"tool_specs"`
	Capabilities       []string         `json:"capabilities"`
}

func (Status) RequireCapabilities added in v0.2.0

func (s Status) RequireCapabilities(required ...string) error

func (Status) SupportsCapability added in v0.2.0

func (s Status) SupportsCapability(capability string) bool

type StatusToolSpec added in v0.2.0

type StatusToolSpec struct {
	Name        string          `json:"name"`
	Description string          `json:"description"`
	Schema      json.RawMessage `json:"schema"`
	Mutating    bool            `json:"mutating"`
	Idempotent  bool            `json:"idempotent"`
	PromptSafe  bool            `json:"prompt_safe"`
	TrustClass  []string        `json:"trust_class"`
	AuditKind   string          `json:"audit_kind"`
}

Jump to

Keyboard shortcuts

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