inbox

package
v0.69.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 34 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 inbox is the f10 inbox command: the questions driven agents wait on, listed, answered, or walked in a terminal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnswerAsk

func AnswerAsk(ctx context.Context, w io.Writer, dir, token string, values []string, by string, d Deliverer) error

AnswerAsk answers token's open ask in the inbox in dir with d moving it on, served in process: the inbox command's answer for a test's inbox.

func AsksAlias

func AsksAlias() *cli.Command

AsksAlias is the inbox under its old name, hidden, for a session started before a same-version local rebuild: its hooks.json still runs f10 asks hook against the new binary. Drop it in v0.68.

func Command

func Command() *cli.Command

Command is the inbox noun: the questions driven agents wait on, listed, answered or walked in a terminal.

func InboxContext

func InboxContext(dir, stateDir, session, event, checkout, project string) []byte

InboxContext is the hook's additional context: the open asks of the project at project that this session was not told, leaving out its own checkout's. An empty project takes every project's. None gives nothing.

func ListAsks

func ListAsks(ctx context.Context, w io.Writer, dir, project string, now time.Time, asJSON bool) error

ListAsks prints the inbox in dir for the project at project, every project's when empty, served in process: the inbox command's list for a test's inbox.

func ProjectOf added in v0.68.0

func ProjectOf(l *layout.Layout) string

ProjectOf is the storage root a layout's asks name as their project. Outside git it is "", because no project's asks get mixed there.

func WalkAsks

func WalkAsks(ctx context.Context, w io.Writer, in *bufio.Reader, dir string, d Deliverer) error

WalkAsks walks the inbox in dir with d moving answers on, served in process: the inbox command's walk for a test's inbox, every project's.

func WriteProject added in v0.68.0

func WriteProject(stateDir, session, root string)

WriteProject records the hash of the session's project for the status line, or removes it outside any project, where every project's asks count.

Types

type AskList

type AskList struct {
	Open     []askView `json:"open"`
	Answered []askView `json:"answered"`
}

type Deliverer

type Deliverer = agents.Deliverer

A Deliverer moves a claimed answer on (agents.Deliverer).

Jump to

Keyboard shortcuts

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