Documentation
¶
Overview ¶
Package outputs tells what a tool call made that the person opens (wire.TurnOutput): a page the Artifact tool or the artifacts CLI published, a design of the library the agent wrote into, a document of the repository, a merge request a command opened, a stand. A plain file is not one. The feed reads it per turn, the sources index per chat.
Index ¶
- Constants
- func ArtifactLink(cfg Config, link string) bool
- func Clip(s string) string
- func IsDeliverTool(tool string) bool
- func LinksIn(text string) []string
- func Of(cfg Config, c Call, links []string) []wire.TurnOutput
- func Publishes(c Call) bool
- func SlugOf(link string) string
- func StandLink(cfg Config, link string) bool
- func Wrote(p string, created bool) (wire.TurnOutput, bool)
- type Call
- type Config
Constants ¶
const TitleMax = 120
TitleMax is the longest title a card gets, in runes.
Variables ¶
This section is empty.
Functions ¶
func ArtifactLink ¶
ArtifactLink tells a claude.ai artifact or a page of the team's catalogue, the host RUNTIME_DOCS_HOST names.
func IsDeliverTool ¶
IsDeliverTool: the MCP tool deliver_file, under whatever name its server is given.
func Of ¶
func Of(cfg Config, c Call, links []string) []wire.TurnOutput
Of is what one call made, by its kind.
func Publishes ¶
Publishes: the call puts a new page out (the Artifact tool, the artifacts CLI), as against one that only shows or reads a page.
Types ¶
type Call ¶
Call is what a tool call says of itself that its result completes: the command it ran, what an Artifact call publishes, and whether it is the MCP tool that hands a file over.
type Config ¶
type Config struct {
// DocsHost serves the team's published pages (RUNTIME_DOCS_HOST); StandDomain the feature stands (RUNTIME_STAND_DOMAIN).
DocsHost, StandDomain string
// ReaderHost and ReaderPath are where the platform reads a document (https://<ReaderHost><ReaderPath><slug>,
// RUNTIME_PLATFORM_HOST and RUNTIME_DOCS_READER_PATH): a document too, never a stand. "" for none.
ReaderHost, ReaderPath string
// CLI is the name the deployment gives the harnessly command (RUNTIME_CLI_NAME): `<CLI> open <link>` is read as
// `harnessly open <link>` is.
CLI string
// TrackerURL is the tracker's origin (RUNTIME_TRACKER_URL, or the organization's, hub_links.go): its tasks are
// <TrackerURL>/issue/<KEY>, and `open <KEY>` shows one.
TrackerURL string
// TaskKey is a task's key (RUNTIME_TASK_KEY_RE); nil for the tracker's usual PROJECT-123.
TaskKey *regexp.Regexp
}
Config names the hosts that tell a page of the catalogue and a stand.