capture

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package capture gathers ambient context at memory-ingest time: the current git branch, commit SHA, and repo identity. All operations are best-effort: callers invoke capture.Git and use whatever subset of keys was populated. Failures (not a git repo, git not on PATH, timeout) return an empty map with no error — capture must never block or fail a `memo remember` call.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Git

func Git(cwd string) map[string]string

Git returns ambient capture context derived from the given working directory. Recognised keys: branch, commit, project, cwd_name. Keys with no value are omitted. The function never errors; on any failure it returns whatever partial map it managed to assemble (possibly empty).

Types

This section is empty.

Jump to

Keyboard shortcuts

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