outputs

package
v0.16.521 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: AGPL-3.0 Imports: 9 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 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

View Source
const TitleMax = 120

TitleMax is the longest title a card gets, in runes.

Variables

This section is empty.

Functions

func ArtifactLink(cfg Config, link string) bool

ArtifactLink tells a claude.ai artifact or a page of the team's catalogue, the host RUNTIME_DOCS_HOST names.

func Clip

func Clip(s string) string

func IsDeliverTool

func IsDeliverTool(tool string) bool

IsDeliverTool: the MCP tool deliver_file, under whatever name its server is given.

func LinksIn

func LinksIn(text string) []string

func Of

func Of(cfg Config, c Call, links []string) []wire.TurnOutput

Of is what one call made, by its kind.

func Publishes

func Publishes(c Call) bool

Publishes: the call puts a new page out (the Artifact tool, the artifacts CLI), as against one that only shows or reads a page.

func SlugOf

func SlugOf(link string) string

SlugOf is the last part of a page's address, its name when nothing else names it.

func StandLink(cfg Config, link string) bool

StandLink tells a feature stand, a preview of a branch: one name under RUNTIME_STAND_DOMAIN (`.preview.example.com`).

func Wrote

func Wrote(p string, created bool) (wire.TurnOutput, bool)

Wrote is what a write or an edit of a file made: a design of the library, a document of the repository; nothing for any other file.

Types

type Call

type Call struct {
	Tool    string
	Command string
	Publish *jsvalue.Object
	Deliver bool
}

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.

func FromEnv

func FromEnv() Config

FromEnv is the Config the environment names.

Jump to

Keyboard shortcuts

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