runtimecontract

package
v0.0.1-dev.22 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 1 module, 1 package

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

Index

Constants

View Source
const (
	BuildPath        = "/.holon/build"
	BuildFile        = ".holon/build.json"
	BuildTokenHeader = "X-Holon-Build-Token"
	BaseImageEnv     = "HOLON_BASE_IMAGE"
)
View Source
const (
	ContextHeader = "X-Holon-Context"
	CallerHeader  = "X-Holon-Caller"
)

Holon's waypoint sets these on a request it admits, after removing any X-Holon-* header the client sent. ContextHeader carries the signed caller context. CallerHeader carries "<session>/<app>", the app of the same session that calls, a lifecycle hook's job calling as its app, and is absent when a person or the platform calls.

View Source
const (
	ReloadPath       = "/.holon/reload"
	OverlayFileEnv   = "HOLON_OVERLAY_FILE"
	OverlayMediaType = "application/vnd.holon.source-overlay.v0.tar+zstd"
	PlanFile         = ".holon/plan.json"
)

Variables

View Source
var CatalogMethods = []string{"tools/list", "resources/list", "events/list"}

CatalogMethods are the MCP methods that list what a server serves, which types are generated from.

Functions

func AppDiscoveryRequest

func AppDiscoveryRequest(method, path, mcpMethod string) bool

AppDiscoveryRequest reports a request the platform may make of an app without a caller context: the methods that describe what the app serves.

func DecodeContextClaims

func DecodeContextClaims(token string, claims any) error

Types

type Build

type Build struct {
	Freeze *Freeze  `json:"freeze,omitempty"`
	Run    []string `json:"run,omitempty"`
}

type BuildReply

type BuildReply struct {
	ReloadReply
	Image string `json:"image,omitempty"`
	Ran   *Ran   `json:"ran,omitempty"`
}

type Freeze

type Freeze struct {
	Dependencies []string `json:"dependencies,omitempty"`
}

type Install

type Install struct {
	Inputs   string     `json:"inputs"`
	Commands [][]string `json:"commands,omitempty"`
}

type OverlayRecord

type OverlayRecord struct {
	Registry   string `json:"registry"`
	Repository string `json:"repository"`
	Tag        string `json:"tag"`
	Token      string `json:"token"`
}

func (OverlayRecord) Location

func (r OverlayRecord) Location() *url.URL

type Plan

type Plan struct {
	Install Install    `json:"install"`
	Prepare [][]string `json:"prepare,omitempty"`
	Start   []string   `json:"start"`
}

type Ran

type Ran struct {
	ExitCode int    `json:"exitCode"`
	Stdout   string `json:"stdout,omitempty"`
	Stderr   string `json:"stderr,omitempty"`
}

type ReloadReply

type ReloadReply struct {
	Error  string `json:"error,omitempty"`
	Output string `json:"output,omitempty"`
}

Jump to

Keyboard shortcuts

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