digest

package
v0.16.9 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package digest builds the shareable/handoff text slices of a session: noise-filtered problem statements, conclusions, and the live tail.

Index

Constants

View Source
const ShareBudget = 6 * 1024

Variables

This section is empty.

Functions

func Handoff

func Handoff(s model.Session, budget int) string

Handoff is the package the target agent starts from: framing header, the user's problem statements, key conclusions, and the tail of the conversation — the "where it stopped" part a plain summary loses.

func IsAgentArtifact

func IsAgentArtifact(text string) bool

func MessageText

func MessageText(s string) string

func ProjectNameCandidates

func ProjectNameCandidates(cwd string) []string

func Share

func Share(s model.Session, budget int) string

func Short

func Short(s string) string

Short keeps an id readable in a line without destroying the thing it names.

A flat cut printed "deja-2026-08" for a note whose id is "deja-2026-08-01-ops/db" — an id no session has, in an error message telling the reader which session was refused (#741). Ids are meaningful at both ends, so the middle goes; #707 made the same change for search result lines.

func UTF8SafeCut

func UTF8SafeCut(s string, n int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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