entity

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package entity defines Ref, the plain-data reference to "a thing the user is looking at" that tuigoff components pass around: the row under a grid's cursor, an entry pinned in a sidebar. It carries no behaviour beyond equality and knows nothing about sessions, LLMs or products; higher layers (for example strongo/aichat's session.EntityRef) alias or convert to it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ref

type Ref struct {
	// Type names the kind of entity, e.g. "happening" or "recordset".
	Type string `json:"type" yaml:"type"`
	// Keys identify the entity within its Type, e.g. {"spaceID": "...", "id": "..."}.
	Keys map[string]string `json:"keys" yaml:"keys"`
	// Title is a display hint (a sidebar row, a prompt). It may be stale and
	// is ignored by Same.
	Title string `json:"title,omitempty" yaml:"title,omitempty"`
}

Ref is a stable reference to a product entity.

func (Ref) Same

func (r Ref) Same(o Ref) bool

Same reports whether two refs point at the same entity (Title ignored).

Jump to

Keyboard shortcuts

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