Documentation
¶
Overview ¶
Package attach writes the places a message points at (wire.MessageRef: a design, a document, a board, a file of the project, a merge request, a task) into the words the agent gets: one block under the person's text, a line per place, each led by a tag the page reads back into a chip. The block is plain enough for the agent to read and stable enough for the page to strip: `<attached>`, a header, `<ref kind=".." id=".." title=".."/> line`, `</attached>`.
Index ¶
Constants ¶
const ( // Open and Close bound the block. Open = "<attached>" Close = "</attached>" )
Variables ¶
This section is empty.
Functions ¶
func LineOf ¶
func LineOf(r wire.MessageRef) string
LineOf is the line of a place the runtime needs nothing more to describe: everything but a design.
func OneLine ¶
OneLine is s on one line, without control characters and without the block's own tags.
Types ¶
type Item ¶
type Item struct {
Ref wire.MessageRef
Line string
}
Item is a place and the line the agent reads about it.