extensions

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2026 License: MIT Imports: 68 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 extensions is the host of the extensions a profile installs: the catalog that offers them, the forms their code runs in, the kinds of things that code registers, the extensions of each profile's extensions folder with what they registered, installing, updating and removing them, and what they may ask of icebath under the grants of their manifests

Index

Constants

View Source
const (
	AnswerServed      = "ok"
	AnswerDenied      = "denied"
	AnswerUnknown     = "unknown"
	AnswerLimited     = "limited"
	AnswerUnavailable = "unavailable"
	AnswerTimeout     = "timeout"
	AnswerCancelled   = "cancelled"
	AnswerFailed      = "failed"
)

How a request an extension made ended, as monitoring counts it

View Source
const (
	// A program of the extension's folder that speaks the protocol on its standard input and output
	Program = "program"
	// A WebAssembly module of the extension's folder, run inside icebath with no access but what its grants allow
	Wasm = "wasm"
)

Forms an extension's code takes

View Source
const (
	// The user allowed it for its files as they are, and it is on
	PlaceOn = "on"
	// The user said no, or turned it off
	PlaceOff = "off"
	// Seen for the first time, waiting for the user's word
	PlaceWaiting = "waiting"
	// Its files changed since the user allowed it, so it waits for their word again
	PlaceChanged = "changed"
	// It can't load, such as a manifest that does not read
	PlaceBroken = "broken"
)

How an extension of a project stands for the sessions working there

View Source
const (
	FromCatalog = "catalog"
	FromGit     = "git"
	FromFolder  = "folder"
)

Where an extension was installed from

View Source
const Itself = "icebath"

Name the widgets icebath brings itself are listed under where an extension's name goes, which no extension may take

View Source
const (
	ManifestFile = "extension.yaml"
)

Files an extension's folder is read from: icebath's own manifest, then one of the Agent Plugins format

Variables

Every way a request an extension made ends, as monitoring labels it

View Source
var Shelves = []string{"memory", "platform", "web", "tools", "voice", "automation", "models", "general"}

Shelves an entry of the catalog is listed on, general for one that names none

View Source
var (
	Tiers = []string{"official", "verified", "community"}
)

Tiers of the catalog, official first, and those whose entries may be installed into every profile

Functions

func CheckCatalog

func CheckCatalog(raw []byte) error

Why a body is no catalog of extensions to publish, nil when it is one: entries and pulled extensions and nothing else, every entry one this build installs from, named once, of a known tier and shelf, on systems icebath is built for, a default one official or verified; every pulled extension named, with a reason and a day, and listed no more

func DataFolder

func DataFolder(cfg *config.Config, name string) string

Own data folder of an extension of the profile

func Folder

func Folder(cfg *config.Config) string

Extensions folder of the profile

func KindOf

func KindOf(spec proto.Message) string

Name of the kind whose spec is of the message's type

func LogPath

func LogPath(cfg *config.Config, name string) string

File of the log of an extension's starts, in the logs folder of the profile

func Older

func Older(needs string) bool

Whether the version of icebath an extension needs is newer than this one. A build that says no version is never older

func On

func On(cfg *config.Config, name string) bool

Whether the profile turned the extension on

func ProjectsOn

func ProjectsOn(cfg *config.Config) bool

Whether the profile loads the extensions projects keep, as the setting or alpha's variable says

func Safe

func Safe(cfg *config.Config) bool

Whether the profile runs in safe mode, which leaves every extension out

func ShippedCatalog

func ShippedCatalog() []byte

Catalog of extensions as icebath ships it, the very file icebath.app publishes at the default address

func Unset

func Unset(cfg *config.Config, names []string) string

First of the variables of the names the profile has not set, empty when it set every one, which a registration that needs them waits for

func ValidName

func ValidName(name string) bool

Name an extension can have: lower case letters, digits, dashes and underscores, 64 at most, none of the area's own settings, nor the name the widgets of icebath's own are listed under

Types

type Adds

type Adds struct {
	Tools words `yaml:"tools"`
	Hooks words `yaml:"hooks"`
}

Tools and hooks an extension says it adds before its code ran

type Agreement

type Agreement struct {
	Dir      string         `json:"dir"`
	Identity string         `json:"identity"`
	Root     string         `json:"root"`
	Name     string         `json:"name"`
	Digest   string         `json:"digest"`
	On       bool           `json:"on"`
	At       time.Time      `json:"at"`
	Reach    Reach          `json:"reach"`
	Settings map[string]any `json:"settings,omitempty"`
}

What the user said of one extension of a project, kept in the profile's record by the identity of its folder: the files it was said of, by their digest, whether it is on, what it reaches, and its settings, which live here and never in the profile's settings file

type Answer

type Answer struct {
	// Message of the request, whose type names it in the protocol
	Request proto.Message
	// Word of the code naming it in the log and in measures, lower case: ask_user
	Name string
	// Word grants.requests of a manifest names for its code to make the request. Empty for one every extension makes. Answers of one word
	// say the same Noun and Trust, the first registered speaking for them
	Grant string
	// What a user calls the right, plural, as a list of what an extension asks for says it: "questions to you"
	Noun string
	// What an extension granted the request may do, one sentence a user reads where it is installed, on its page and in the audit
	Trust string
	// A strong right, such as putting messages into chats as if a user wrote them: said as such where it is granted, audited as high
	Strong bool
	// It starts work, such as a message the agent answers, a subagent or a call of a model or a tool, which an emergency stop over the
	// extension's profile holds: refused as unavailable, with what the stop says, while one is in force
	Starts bool
	// Time one request gets when the timeout of its message is unset, and the most that timeout may ask: the extension's call limit when
	// Limit is zero, Limit when Most is
	Limit, Most time.Duration
	// Most requests of it one extension makes in a minute, and at once. Zero for no bound
	Often, Together int
	// What the user sets for each extension granted the request, such as the MCP servers it may call: the Key of each is the word under
	// the extension's section Allowed, which Asker.Allowed reads, and its copy is any setting's
	Allow []config.Setting
	// Why the request granted to the extension can't be answered as the profile of the settings is set up, such as an allowed MCP server the
	// profile does not have, a sentence a user reads. Empty when it can. Nil when the request has nothing to say of it
	Lacks func(cfg *config.Config, e *Extension) string
	// Serves one request of the extension, the context ending once the extension stops waiting or the time runs out
	Serve func(ctx context.Context, asker Asker, request proto.Message) (proto.Message, error)
}

A request extensions make of icebath that a feature answers, by the type of its message: the host names no feature, and serves each request a registrant of this build answers, under the grants of the asking extension's manifest and the bounds of its answer

func (Answer) Type

func (a Answer) Type() string

Name of the request in the protocol, the full name of the type of its message

type Answered

type Answered struct {
	Profile, Extension string
	// Name of the request, as its answer names it. Empty for one no registrant answers
	Request string
	Outcome string
	Took    time.Duration
}

One request an extension made that a feature answers, as it ended

type Answerer

type Answerer interface {
	Answers() []Answer
}

Registrant that answers requests extensions make of icebath

type Asker

type Asker struct {
	Extension *Extension
	// Settings of the profile it runs for
	Config *config.Config
	// contains filtered or unexported fields
}

Extension that asks, as an answer serves it

func (Asker) Allowed

func (a Asker) Allowed(word string) []string

What the user allows the extension to reach through the setting of the word an answer brings, the items of its list

func (Asker) Data

func (a Asker) Data() string

Data folder of the extension

func (Asker) Env

func (a Asker) Env(ctx context.Context, session, cwd string) (*tools.Env, func(), error)

Environment of what the extension runs in the session, or in none, with what lets it go once the run ended: as a registrant binds it, otherwise the folder named, its data folder for none, under its settings alone, where nothing that would ask goes ahead

func (Asker) Owned

func (a Asker) Owned(ctx context.Context, session string) error

Refuses a session that is not one of the profile's, so an extension reaches the sessions of the profile it runs for alone

func (Asker) Readable

func (a Asker) Readable(path string) (string, error)

Absolute path of a file the extension names, when the grants of its manifest let it read the file and the profile's guard of the tools allows that, as its own reads are checked. Refused in words otherwise

func (Asker) Title

func (a Asker) Title() string

Name a user knows the extension by

type Available

type Available struct {
	// What it is at, and what the source is at now: commits, or digests for one copied from a folder
	From, To string
	Checked  time.Time
}

Newer files a check found for an installed extension

type Binder

type Binder interface {
	Bind(ctx context.Context, asker Asker, session, cwd string) (*tools.Env, func(), error)
}

Registrant that gives what an extension runs in a session the session's own environment, as the agent's own calls run there: its folder unless one is named, its approvals and rules asking the user where they would, what it asks shown as the extension's. With no session, the folder named under the extension's settings, where nobody is asked, so whatever would be asked is refused. Its second answer lets go of what the environment holds once the run ended

type Builtin

type Builtin struct {
	Spec  *protocolv1.Widget
	Serve func(ctx context.Context, cfg *config.Config, request proto.Message) (proto.Message, error)
}

A widget icebath brings itself, which the app draws by the very model of an extension's widget: its spec, and what answers the calls of it for a profile, WidgetOpen, WidgetInput, WidgetTick and WidgetRender, as an extension's code answers them

type Cache

type Cache struct {
	Dir string
	// contains filtered or unexported fields
}

Compiled code of the modules of one profile: its folder, and what the runtime of modules keeps open of it until the host closes it

func (*Cache) Close

func (c *Cache) Close() error

func (*Cache) Hold

func (c *Cache) Hold(open func(dir string) (held any, release func() error, err error)) any

What the runtime keeps open of the folder, made by open the first time with what lets it go as the cache closes. nil once the cache closed or when open fails

type Entry

type Entry struct {
	Name        string
	Title       string
	Description string
	// Shelf it is listed on: memory, platform, web, tools, voice, automation, models or general
	Category string
	// official, verified or community
	Tier    string
	Version string
	// Repository its files come from, at a commit and a folder of it
	Repo, Commit, Subdir string
	// Page that documents it
	Docs string
	// Systems it runs on, as Go names them, every one when empty
	Platforms []string
	// Installed into every profile once, for an official or verified entry
	Default bool
	// What it says it adds and the variables it needs
	Tools, Hooks, Needs []string
	// Problems known of it, said before it is installed
	Issues []string
	// Version of icebath it needs at least, empty for any
	Icebath string
	Tags    []string
	License string
}

Extension offered for install

func (Entry) Problem

func (e Entry) Problem() string

Why the entry can't be installed here, empty when it can

func (Entry) Runs

func (e Entry) Runs() bool

Whether the entry runs on this system and this icebath

type EnvSpec

type EnvSpec struct {
	Name   string `yaml:"name"`
	About  string `yaml:"about"`
	URL    string `yaml:"url"`
	Secret *bool  `yaml:"secret"`
}

One variable an extension reads: its name alone, or with what it is and where to get it

func (EnvSpec) Hidden

func (e EnvSpec) Hidden() bool

Whether the variable holds a secret: as the manifest says, otherwise as its name says

func (*EnvSpec) UnmarshalYAML

func (e *EnvSpec) UnmarshalYAML(node *yaml.Node) error

type Examiner

type Examiner interface {
	Examine(cfg *config.Config, manifest *Manifest, dir string) ([]string, error)
}

Registrant that reads what the folder of an extension brings for it as the extension is inspected to be installed or updated, such as its language packs: a folder whose part for it can't be used is refused with the error, in words a user reads. The lines it answers say what the extension brings for it, shown before it is installed

type Extension

type Extension struct {
	Name     string
	Dir      string
	Manifest *Manifest
	Record   Record
	// Turned on in the profile's settings
	On bool
	// Why it can't load, empty when it can
	Problem string
	// Root of the project whose folder it comes from, the sessions working there alone getting what it adds. Empty for one of the
	// profile's extensions folder
	Place string
	// contains filtered or unexported fields
}

One extension of a profile's extensions folder

func (*Extension) Brings

func (e *Extension) Brings(kind Kind) bool

Whether the extension may bring registrations of the kind: its manifest grants the kind when it is one of trust, and a vetted kind comes from the catalog at an official or verified entry

func (*Extension) Configurable

func (e *Extension) Configurable() bool

Whether the extension declares settings of its own beside whether it loads

func (*Extension) DataDir

func (e *Extension) DataDir(cfg *config.Config) string

Own data folder of the extension: its own where it has one, as an extension of a project or one a validation tries out, otherwise the one of its name in the profile's folder

func (*Extension) LogFile

func (e *Extension) LogFile(cfg *config.Config) string

Log of the extension's starts: its own where it has one, otherwise the one of its name in the profile's logs folder

func (*Extension) Title

func (e *Extension) Title() string

Title a user knows the extension by

func (*Extension) Vetted

func (e *Extension) Vetted() bool

Whether the extension was installed from the catalog at an entry the catalog lists as official or verified

type Extensions

type Extensions struct {
	Registry
	// contains filtered or unexported fields
}

The extensions of every profile, the code they run and what it registered

func New

func (*Extensions) Active

func (h *Extensions) Active(cfg *config.Config) []*Extension

Extensions of the profile that are on and can load, none in safe mode

func (*Extensions) Agreements

func (h *Extensions) Agreements(cfg *config.Config) []Agreement

What the user said of the extensions of projects in the profile, in the order they said it

func (*Extensions) AllowPlace

func (h *Extensions) AllowPlace(cfg *config.Config, folder, dir string, on bool) error

Allows an extension of a project the user reviewed, or keeps it off when on is false, for its files as they are now: the extension of the folder the session works in found again, so what is said of is what is there

func (*Extensions) Allowances

func (h *Extensions) Allowances(e *Extension) []config.Setting

What the user sets for the extension through the requests its manifest grants, each setting once, its key under the extension's section Allowed

func (*Extensions) Allows

func (h *Extensions) Allows(m *Manifest) []string

What the extension may do, one line each in a user's words: what its grants reach, then what each kind of trust it brings and each request it is granted may do, a strong right said as such, and the kinds and requests its manifest grants that this build takes none of

func (*Extensions) Answering

func (h *Extensions) Answering(fn func(Answered))

Has fn told of each request an extension made that a feature answers, as it ended, such as for the measures of monitoring

func (*Extensions) Asks

func (h *Extensions) Asks(r *Review) []string

Why what a review fetched needs the user's own word beyond a quiet yes, such as beside the one they give a pack, a sentence each: each kind of trust it brings, each strong right it is granted, what its scan found, a build from its source, and more reach than the version the profile has

func (*Extensions) Brought

func (h *Extensions) Brought(cfg *config.Config, name string) (extensions, skills []string, err error)

What removing a pack takes along when the user asks: the extensions and skills it brought that the profile still has and no other pack the profile installed names

func (*Extensions) Cancel

func (h *Extensions) Cancel(cfg *config.Config, token string)

Lets go of a review of the profile the user turned down

func (*Extensions) CancelPack

func (h *Extensions) CancelPack(cfg *config.Config, token string)

Lets go of a pack of the profile the user turned down, with what its parts fetched

func (*Extensions) Check

func (h *Extensions) Check(cfg *config.Config, name string) (bool, string, error)

Whether the files of an installed extension are those it was installed with, a program it built from source aside. Why not when they are not

func (*Extensions) CheckUpdates

func (h *Extensions) CheckUpdates(ctx context.Context, cfg *config.Config) (map[string]Available, error)

Looks for newer files of every installed extension of the profile, keeping what it found. A source that can't be reached is left as it was, and the catalog is read only when an extension came from it

func (*Extensions) Close

func (h *Extensions) Close() error

Stops the extensions of every profile as icebath exits, each given its unload, and closes the caches of compiled modules

func (*Extensions) Commanding

func (h *Extensions) Commanding(commands func(cfg *config.Config) []slash.Command)

Has the validation tell an extension's slash commands taken by others from the commands of the profile

func (*Extensions) Config

func (h *Extensions) Config(profile string) *config.Config

Settings of the profile with the name, the one in use for none

func (*Extensions) Declared

func (h *Extensions) Declared(e *Extension) []string

What the code of an extension that ran offered to register held against what it declares and is granted, a sentence each, none when they agree: alpha's Plugin Doctor for an extension installed

func (*Extensions) Delete

func (h *Extensions) Delete(profile string) error

Lets go of a deleted profile's extensions, the reviews waiting for it and the updates found for them. Its folder goes with the profile

func (*Extensions) Enter

func (h *Extensions) Enter(env *tools.Env)

Readies the extensions of the project a session works in as its tools are listed: each the user has not given their word for, or whose files changed since, asked of them in the session with what an install shows, strictly, whatever the mode of approvals. Never asked of a run nobody watches, where it stays off and that is said. Then those allowed started

func (*Extensions) ExportPack

func (h *Extensions) ExportPack(cfg *config.Config, name string, on bool) ([]byte, []string, error)

The YAML of a pack of the profile's extensions, those turned on alone when on says so: each pinned to the commit it is installed at, by its name in the catalog or by its repository and folder. The settings of each that differ from their defaults, secrets and what the host keeps of its own left out. And the skills the hub installed. What can't travel is left out and said, in the file as comment lines and in what it answers

func (*Extensions) Extension

func (h *Extensions) Extension(cfg *config.Config, name string) (*Extension, bool)

Extension of the profile with the name, false when its folder has none

func (*Extensions) ForgetPlace

func (h *Extensions) ForgetPlace(cfg *config.Config, dir string) error

Forgets what the user said of an extension of a project, by its folder, so it asks again the next time a session works there; its code stops and its settings go

func (*Extensions) Go

func (h *Extensions) Go(fn func())

Runs fn behind the caller, waited for as the host closes. Nothing once the host is closing, so none is added while it waits

func (*Extensions) Granted

func (h *Extensions) Granted(m *Manifest) []Answer

Requests of trust the manifest grants that a registrant of this build answers, the first answer of each word, in the order they were registered

func (*Extensions) Guest

func (h *Extensions) Guest(cfg *config.Config, name string) (*Guest, bool)

Guest of an extension of the profile that is on, started, false when the profile has no such extension running code

func (*Extensions) Guests

func (h *Extensions) Guests(cfg *config.Config) []*Guest

Guests of the extensions of the profile that are on and run code, each started, those that fail to start left with why. None in safe mode. Asked through the settings of a request some extension asks as part of its load, those still starting are left starting rather than waited for, as they may be waiting on that load. The profile is looked after in the background from then on

func (*Extensions) Has

func (h *Extensions) Has(cfg *config.Config, name string) bool

Has reports whether the profile's extensions folder contains an extension with that name, using the same lookup as Extension but without reading the extension

func (*Extensions) Holds

func (h *Extensions) Holds(profile string) string

Why the profile's folder must not move or go now, empty when it may: extensions are being fetched into it

func (*Extensions) Inspect

func (h *Extensions) Inspect(ctx context.Context, cfg *config.Config, source, ref string) (*Review, error)

Inspects a source without installing it: a catalog entry by name, a GitHub owner/repo, a git address, or a folder of this computer, a repository's folder after # and a ref after @. What it holds stays staged in the profile's cache until it is installed or the review runs out

func (*Extensions) Install

func (h *Extensions) Install(ctx context.Context, cfg *config.Config, token string, values map[string]string, anyway bool) (*Extension, error)

Installs what a review staged: built when it is Go source, moved into the extensions folder over the extension it replaces, its record written, the variables given kept in the profile's keys file and the extension turned on. Something dangerous the scan found stops it unless the user installs it anyway

func (*Extensions) InstallPack

func (h *Extensions) InstallPack(ctx context.Context, cfg *config.Config, token string, answer PackAnswer) ([]PackStep, error)

InstallPack installs a pack the user agreed to, each part with its own install: an extension that needs the user's approval is installed only with it, one the scan found dangerous only when the user chose anyway, each with its given values. Then the settings are seeded, keeping the user's own values, then the skills go through the hub's scan. Installed parts stay even when a later part fails, each part reports its outcome, and the profile records the pack and its additions, so installing it again completes it.

func (*Extensions) Installed

func (h *Extensions) Installed(cfg *config.Config) []*Extension

Every extension of the profile's extensions folder, by name

func (*Extensions) Known

func (h *Extensions) Known(profile string) []*Guest

Guests of the profile the host made, running or not, which keep why they stopped

func (*Extensions) Lacking

func (h *Extensions) Lacking(cfg *config.Config, e *Extension) []string

What each request the extension is granted lacks as the profile of the settings is set up, a sentence each, none when nothing does

func (*Extensions) Listen

func (h *Extensions) Listen(fn func(profile string)) (stop func())

Adds a function told the profile whenever how its extensions stand changed, such as what they registered, until the function it answers runs

func (*Extensions) LocalAt

func (h *Extensions) LocalAt(cfg *config.Config, folder, dir string) (*Local, error)

The extension of the project a session works in at the folder, by its folder

func (*Extensions) Locals

func (h *Extensions) Locals(cfg *config.Config, folder string) ([]*Local, []places.Refused)

The extensions of the project a session works in at the folder: each found in the project's folders of extensions, read, and said how it stands against what the user said of it. With the folders refused. None while the profile loads no extensions of projects

func (*Extensions) Move

func (h *Extensions) Move(old, renamed string) ([]string, error)

Moves the updates found for a profile's extensions to its new name once its folder moved. Its extensions start again under that name

func (*Extensions) Offered

func (h *Extensions) Offered(ctx context.Context, cfg *config.Config, fresh bool) ([]Entry, []Removed, error)

What the catalog the profile reads offers it, by tier and name, with the extensions the document pulled. A document that can't be read leaves its entries out, the error saying why

func (*Extensions) Offers

func (h *Extensions) Offers(e *Extension) []*protocolv1.Registration

Registrations the extension's code offered last, before the host took any. None while its code never ran

func (*Extensions) Pack

func (h *Extensions) Pack(ctx context.Context, cfg *config.Config, source string) (*PackReview, error)

Reads a pack from a whole path of this computer or an https address, and resolves every part of it without installing anything: each extension the profile has at its pin found, each other one fetched at its pin and inspected as an install inspects it, each setting said as a change from what to what, each skill as the hub finds it. What was fetched waits under the review's token until it is installed or the review runs out

func (*Extensions) PackGaps

func (h *Extensions) PackGaps(cfg *config.Config, record PackRecord) []string

What a pack the profile installed lacks now: its extensions the profile no longer has, and what failed as it last installed, a sentence each. None when every part is there

func (*Extensions) Packs

func (h *Extensions) Packs(cfg *config.Config) []PackRecord

The packs the profile installed, in the order it installed them

func (*Extensions) PacksOf

func (h *Extensions) PacksOf(cfg *config.Config, name string) []string

Packs that name the extension, by name

func (*Extensions) Pausing

func (h *Extensions) Pausing(paused func(profile string) (string, bool))

Hands over whether an emergency stop holds the work of a profile and what a user is told of it, so the requests of its extensions that start work are refused while it does

func (*Extensions) PlaceReview

func (h *Extensions) PlaceReview(ctx context.Context, cfg *config.Config, l *Local) []string

What a user reads before they allow an extension of a project: exactly what an install shows, what it replaces, what of it is left out in a project, and what the scan found

func (*Extensions) PlaceSettings

func (h *Extensions) PlaceSettings(l *Local) []PlaceSetting

The settings an extension of a project declares, each with what it holds: what its record keeps, otherwise its default

func (*Extensions) Placed

func (h *Extensions) Placed(profile string) []*Guest

Guests of extensions of projects of the profile whose code runs now, by name

func (*Extensions) PlacedOn

func (h *Extensions) PlacedOn(cfg *config.Config) []*Extension

PlacedOn returns the project extensions in effect for the profile: each extension the user allowed and left on, in its allowed folder, with its files unchanged since the user allowed it and not writable by anyone else, read from its folder with its project as its Place. Parts that do not need code, such as the prompts in their manifests, apply to the sessions in their projects whether or not their code runs yet, and each replaces the profile's extension with the same name there. The list is read again when it is older than a moment, or after the user changes a choice

func (*Extensions) Profiles

func (h *Extensions) Profiles() []string

Profiles of the guests the host made, running or stopped, by name: those whose extensions ran code since icebath started

func (*Extensions) ReadPlaceSetting

func (h *Extensions) ReadPlaceSetting(e *Extension, key, text string) (any, error)

Text a user typed for a setting of an extension of a project, read as the setting its manifest declares takes it: on or off for a toggle, a number for a number, a length of time as 90s or 5m, a list as items split by its Split or as YAML, a table as YAML. nil for nothing typed, which puts back the default. The setting then checks what was read as it checks every value

func (*Extensions) RefusedPlaces

func (h *Extensions) RefusedPlaces(profile string) map[string]string

Folders of extensions of projects the profile's sessions met lately that were refused, with why

func (*Extensions) Register

func (h *Extensions) Register(registrant Registrant)

Adds a registrant. A registry nested in the host reaches it through Host

func (*Extensions) Remove

func (h *Extensions) Remove(cfg *config.Config, name string, purge bool) error

Removes an extension of the profile: its code stopped, whether it loads forgotten and its folder deleted. Its data folder and settings too when purge is set

func (*Extensions) RemovePack

func (h *Extensions) RemovePack(ctx context.Context, cfg *config.Config, name string, take bool) ([]PackStep, error)

Forgets a pack the profile installed, and with take removes what only it brought, as Brought lists it. Each removal says what became of it

func (*Extensions) Restart

func (h *Extensions) Restart(cfg *config.Config, name string) error

Stops an extension's code and starts it again at once, its failures of late forgotten

func (*Extensions) Running

func (h *Extensions) Running(profile string) []*Guest

Guests of the profile whose code runs now, by name. None of them is started

func (*Extensions) Runs

func (h *Extensions) Runs(profile, name string) (*Guest, bool)

Guest of the extension of the profile when its code runs now

func (*Extensions) Seed

func (h *Extensions) Seed(making profile.Making) ([]string, error)

Looks after a profile just made, its default extensions installed behind the making so it is not held up by a download. One cloned with every file keeps the extensions it was copied with

func (*Extensions) SetPlaceSetting

func (h *Extensions) SetPlaceSetting(cfg *config.Config, e *Extension, key string, value any) error

Keeps a setting of an extension of a project in its record, checked by the setting its manifest declares when it declares one. A user's change and the code's own go the same way. A value nil goes back to its default

func (*Extensions) Settled

func (h *Extensions) Settled(ctx context.Context, cfg *config.Config) []*Guest

Guests of the profile as Guests answers them, those still starting waited for no longer than the start limit of the profile, the default one when it sets none, and not past the context: one still starting then is answered as it stands, and the listeners are told once its start ended, as after every start

func (*Extensions) Silent

func (h *Extensions) Silent(g *Guest) map[string]int

Calls of the guest that ran out of time in the last hour, by the kind of registration asked

func (*Extensions) Start

func (h *Extensions) Start(ctx context.Context)

Start checks each attended profile's installed extensions for updates as often as its settings say, and puts quiet ones in. It sleeps until the earliest check or project idle end is due, and an install, a removal, a settings change or a project's extensions starting wake it. It stops with the sessions or the host.

func (*Extensions) Stop

func (h *Extensions) Stop(profile string) error

Stops the extensions of a profile, looks after it no longer, lets go of the reviews waiting for it with what they staged and closes its cache of compiled modules, before its folder moves or once it is deleted

func (*Extensions) Styles

func (h *Extensions) Styles(cfg *config.Config) []Style

Color themes the extensions of the profile that are on ship, each file read again only once it changed

func (*Extensions) Trusted

func (h *Extensions) Trusted(m *Manifest) []Kind

Kinds of trust the manifest grants that a registrant of this build takes, in the order they were registered

func (*Extensions) Turn

func (h *Extensions) Turn(cfg *config.Config, name string, on bool) error

Turns an extension of the profile on or off, what follows its extensions told either way, one of files alone too

func (*Extensions) TurnPlace

func (h *Extensions) TurnPlace(cfg *config.Config, dir string, on bool) error

Turns an extension of a project the user allowed on or off, or takes back what they said of it, by its folder

func (*Extensions) Unasked

func (h *Extensions) Unasked(profile string) map[string]string

Extensions of projects the profile's sessions met that wait without having been asked, by folder, with why

func (*Extensions) Up

func (h *Extensions) Up(cfg *config.Config, name string) (*Guest, error)

Guest of an extension of the profile that is on, started when its code does not run, or why it can't be in a sentence a user reads: it is off or gone, safe mode leaves extensions out, or its code did not start

func (*Extensions) Update

func (h *Extensions) Update(ctx context.Context, cfg *config.Config, name string) (*Review, error)

Fetches the extension again from where it came from and inspects it as an install does, the review replacing the installed extension

func (*Extensions) Updates

func (h *Extensions) Updates(cfg *config.Config) map[string]Available

Updates the last checks found for the extensions of the profile, by name

func (*Extensions) Use

func (h *Extensions) Use(name string) error

Starts looking after a profile once a window here is on it or a session of it runs here

func (*Extensions) Used

func (h *Extensions) Used(g *Guest) (map[string]bool, time.Time)

Grants the guest's code used since it started, as Used names them, and when it started. The zero time while it never ran

func (*Extensions) Validate

func (h *Extensions) Validate(ctx context.Context, cfg *config.Config, path string) (*Report, error)

Validates an extension's folder or a pack's file for the user writing it, against everything an install refuses or warns of: a folder's manifest key by key at its lines, its code found and of the right form, its source's SDK, what the host's examiners say of it, its scan, the names it takes, and a trial run of its code whose registrations are held against what it declares and is granted; a pack's every key, pin and seed. The path is named whole or under ~

type Grants

type Grants struct {
	Read     words `yaml:"read"`
	Write    words `yaml:"write"`
	Net      words `yaml:"net"`
	Env      words `yaml:"env"`
	Kinds    words `yaml:"kinds"`
	Requests words `yaml:"requests"`
}

What an extension may reach through icebath: files, hosts and variables, the kinds of registration of trust its code brings, each by the word its kind is granted by, such as memory, and the requests its code makes that features of icebath answer, each by the word its answer is granted by, such as tools, messages or questions

type Guest

type Guest struct {
	// contains filtered or unexported fields
}

Code of one extension of one profile: started the first time it is needed, started again after it ended on its own unless it keeps ending, and what it registered

func (*Guest) Ask

func (g *Guest) Ask(ctx context.Context, kind, key string, request, result proto.Message, limit time.Duration) error

Asks a registration of the extension while it runs, never starting it, as Call does otherwise

func (*Guest) Call

func (g *Guest) Call(ctx context.Context, kind, key string, request, result proto.Message, limit time.Duration) error

Asks a registration of the extension, starting it first when it does not run, the answer read into result unless it is nil. The call ends once the limit given runs out, the extension's call limit for none. Asked as part of a load, an extension still starting is answered that it is rather than waited for

func (*Guest) Extension

func (g *Guest) Extension() *Extension

Extension the guest runs

func (*Guest) Failed

func (g *Guest) Failed() error

Why the extension is not running, nil while it runs or has not started

func (*Guest) Fetching

func (g *Guest) Fetching() func()

Marks a fetch of the extension's secret stores under way until the function it answers runs

func (*Guest) Held

func (g *Guest) Held() error

Why the extension is not started again when it is needed, nil when it is: it was stopped, or it ended too often of late, until a person starts it again

func (*Guest) Profile

func (g *Guest) Profile() string

Profile the guest runs for

func (*Guest) Registrations

func (g *Guest) Registrations() []*protocolv1.Registration

What the extension registered, nothing before it started

func (*Guest) Running

func (g *Guest) Running() bool

Whether its code runs now

func (*Guest) Serves

func (g *Guest) Serves(cfg *config.Config, folder string) bool

Whether what the guest registered belongs in a session of the settings' profile working in the folder: the profile's own extension's in every session but those of a project whose extension of its name stands in its place. A project's extension's only in the sessions working in that project

func (*Guest) Spent

func (g *Guest) Spent() bool

Whether the guest ended too often of late to be started again when it is needed, until a user starts it again

func (*Guest) Stop

func (g *Guest) Stop() error

Ends the extension's code after its unload, never to start it again. A start under way is ended first and waited for, so nothing of it runs once this returns

type Hub

type Hub interface {
	// What the hub finds of the skill the identifier names, without installing it: its name, source and trust, and whether the profile has
	// it. An error a user reads when no source has it
	Find(ctx context.Context, cfg *config.Config, id string) (Skill, error)
	// Fetches, scans and installs the skill, refused in words when its scan or its place does not let it in. One the profile has is left as
	// it is
	Get(ctx context.Context, cfg *config.Config, id string) (Skill, error)
	// Skills the hub installed into the profile, by name
	Held(cfg *config.Config) []Skill
	// Removes a skill the hub installed into the profile
	Drop(ctx context.Context, cfg *config.Config, name string) error
}

Registrant that installs skills from the hub, as a pack names them: each fetched, set aside and scanned by the hub's own pipeline before it is placed and recorded in the hub's lock

type Item

type Item[M proto.Message] struct {
	Key  string
	Spec M
}

One registration of a kind, its spec read into the message of the kind

func Specs

func Specs[T any, M interface {
	*T
	proto.Message
}](g *Guest) []Item[M]

What the guest registered of the kind of M, in the order it did, a spec that does not read left out

type JobSpec

type JobSpec struct {
	Name     string     `yaml:"name"`
	Title    string     `yaml:"title"`
	About    string     `yaml:"about"`
	Category string     `yaml:"category"`
	Schedule string     `yaml:"schedule"`
	Prompt   string     `yaml:"prompt"`
	Slots    []SlotSpec `yaml:"slots"`
	Deliver  string     `yaml:"deliver"`
	Skills   words      `yaml:"skills"`
}

Blueprint of a scheduled job an extension offers: what a user knows it by, the heading it is listed under, its schedule and prompt with the slots in braces, where it delivers when the user picks nothing else and the skills it loads

type Kind

type Kind struct {
	Noun string
	Spec proto.Message
	// Each is a slash command, shown with its slash
	Slash bool
	// Word the grants of a manifest name under kinds for its code to bring the kind, which reaches far enough to be a matter of trust, such
	// as being the agent's memory. Empty for a kind every extension brings
	Grant string
	// What an extension that brings the kind may do, one sentence a user reads where it is installed, on its page and in the audit
	Trust string
	// Taken only from an extension installed from the catalog at an official or verified entry
	Vetted bool
	// Each serves one session at a time, so an extension a project keeps may bring it to the sessions working in that project alone
	Project bool
	// What is wrong with one registration of the kind that its spec reading does not say, a whole sentence each that a validation and
	// Doctor tell whoever wrote the extension, such as a voice that streams at no rate. nil for a kind with nothing more to check
	Faults func(spec proto.Message) []string
}

Kind of thing the code of an extension registers, such as a tool: what a user calls one, and the message one holds, whose type names the kind in the protocol

func (Kind) Name

func (k Kind) Name() string

Name of the kind in the protocol, the full name of the type of its spec

type Limits

type Limits struct {
	MemoryMB    int `yaml:"memory_mb"`
	CallSeconds int `yaml:"call_seconds"`
}

Memory a module may use and the longest one call may run

type Local

type Local struct {
	// The extension, its Place the root of the project
	Extension *Extension
	Found     places.Found
	// What tells its folder from every other and the digest of its files now
	Identity, Digest string
	State            string
	// Why it stands so, a sentence: why it can't load, or why it waits
	Why string
	// The profile installed an extension of its name, which it replaces in the sessions of the project
	Replaces bool
	// What the user said of it last, nil before they said anything
	Agreed *Agreement
}

An extension of a project's folder as a session working there finds it

type Manifest

type Manifest struct {
	// Format of the manifest, the first when unset
	Format      int    `yaml:"format"`
	Name        string `yaml:"name"`
	Title       string `yaml:"title"`
	Version     string `yaml:"version"`
	Description string `yaml:"description"`
	Author      person `yaml:"author"`
	Homepage    string `yaml:"homepage"`
	License     string `yaml:"license"`
	Tags        words  `yaml:"tags"`
	// Version of icebath it needs at least, empty for any
	Icebath string `yaml:"icebath"`
	// Extensions it works with, by name, which are said but not enforced
	Works words `yaml:"works"`
	// Form of its code and what starts it, none for an extension of files alone
	Runtime string `yaml:"runtime"`
	Entry   words  `yaml:"entry"`
	// Variables it can't run without, and those it reads when they are set
	Needs    []EnvSpec `yaml:"needs"`
	Optional []EnvSpec `yaml:"optional"`
	// Settings it declares, kept under extensions.<name>
	Settings []SettingSpec `yaml:"settings"`
	// Folders of skills, files of color themes, slash commands that send a prompt, and folders of language packs laid out as a profile's
	// own catalogs, all of its folder
	Skills   words           `yaml:"skills"`
	Styles   words           `yaml:"styles"`
	Commands []PromptCommand `yaml:"commands"`
	Locales  words           `yaml:"locales"`
	// Scheduled jobs it offers to start from among the blueprints of Jobs, a person filling in their slots
	Jobs []JobSpec `yaml:"jobs"`
	// MCP servers it ships, by name
	Servers map[string]Server `yaml:"servers"`
	Grants  Grants            `yaml:"grants"`
	Limits  Limits            `yaml:"limits"`
	// What it says it adds, shown before it is installed
	Adds Adds `yaml:"adds"`
	// Read from a manifest of the Agent Plugins format
	Portable bool `yaml:"-"`
}

What an extension's folder says of it

func ReadManifest

func ReadManifest(dir string) (*Manifest, error)

Reads the manifest of an extension's folder, its own or one of the Agent Plugins format

func (*Manifest) Code

func (m *Manifest) Code() bool

Whether the extension runs code of its own

func (*Manifest) Lines

func (m *Manifest) Lines() []string

What the extension may do, one line each in a user's words: the files, hosts and variables its grants name, and the MCP servers it ships. What its kinds of trust and its requests may do is said by the host, which knows them

func (*Manifest) Reach

func (m *Manifest) Reach() Reach

What the extension reaches, as the user agrees to it

func (*Manifest) Readable

func (m *Manifest) Readable() []string

Variables the extension may read: those its grants name, those it needs or reads when set, those its settings read, and those its MCP servers name

type PackAnswer

type PackAnswer struct {
	Values map[string]map[string]string
	Agreed []string
	Anyway []string
}

What the user says to installing a pack beside their word for the whole: the values each extension needs, by extension and variable, the extensions they give their own word to, and those they install although the scan found something dangerous in them

type PackPart

type PackPart struct {
	Entry packs.Entry
	// What its fetch found, waiting to be installed. nil for one the profile has at its pin and one that could not be fetched
	Review *Review
	// Extension of the profile it is already, at its pin. nil when it is not
	Installed *Extension
	// Why it can't be installed, empty when it can
	Problem string
	// Why it needs the user's own word beside the one they give the pack, a sentence each. None when the pack's word is enough
	Asks []string
}

One extension of a pack as installing it would go

func (PackPart) Name

func (p PackPart) Name() string

What the extension is called: as its manifest names it, otherwise as the pack does

func (PackPart) Title

func (p PackPart) Title() string

What a user knows the extension by: its title, otherwise its name, otherwise what the pack calls it

type PackRecord

type PackRecord struct {
	Name    string `json:"name"`
	Version string `json:"version,omitempty"`
	Author  string `json:"author,omitempty"`
	// Where it was read from, as the user named it
	Source    string    `json:"source"`
	Installed time.Time `json:"installed"`
	// Every extension the pack names, by the name it has in the profile, or as the pack calls one that never came in
	Parts []string `json:"parts"`
	// Extensions and skills it installed that the profile did not have, which removing it offers to remove
	Brought []string `json:"brought,omitempty"`
	Skills  []string `json:"skills,omitempty"`
	// Settings it seeded, by key
	Seeded []string `json:"seeded,omitempty"`
	// What did not go in, each with why, which installing the pack again tries again
	Failed []string `json:"failed,omitempty"`
}

What the profile keeps of a pack it installed

type PackReview

type PackReview struct {
	Token string
	Pack  *packs.Pack
	// Where it was read from, as the user named it
	Source   string
	Parts    []PackPart
	Settings []PackSetting
	Skills   []PackSkill
}

A pack read and resolved, waiting for the user's word: what installing it does, part by part

type PackSetting

type PackSetting struct {
	// Extension it is of, and its key in full
	Extension, Key string
	Title          string
	// What it holds now and what the pack sets it to, as a user reads them
	From, To string
	// The user set it already, so the pack leaves it as it is
	Kept bool
	// Why the pack can't set it, empty when it can
	Problem string
	// contains filtered or unexported fields
}

One setting a pack seeds, as it changes the profile

type PackSkill

type PackSkill struct {
	Skill
	// Why it can't be installed, empty when it can
	Problem string
}

One skill a pack brings, as the hub finds it

type PackStep

type PackStep struct {
	// The extension, setting or skill, as a user reads it
	Part string
	// It went in, or the profile had it already. false for one that failed or was left out
	Done bool
	// What became of it, one sentence
	Said string
}

What became of one part of a pack as it installed

type Parts

type Parts struct {
	Run   []Runtime
	Take  []Kind
	Serve []Answer
}

Forms, kinds and answers fixed once they are registered

func (Parts) Answers

func (p Parts) Answers() []Answer

func (Parts) Kinds

func (p Parts) Kinds() []Kind

func (Parts) Runtimes

func (p Parts) Runtimes() []Runtime

type PlaceSetting

type PlaceSetting struct {
	Key, Title, About string
	// What it holds in words, and as text a user types back to keep it as it is
	Value, Typed string
	// The user set it, otherwise its default stands
	Kept bool
}

One setting of an extension of a project as a user reads it

type Process

type Process interface {
	// Frames the extension sends, and those sent to it
	io.Reader
	io.Writer
	// Ends it, its unload given the time it had
	Stop() error
	// Closed once it ended, with why
	Done() <-chan struct{}
	Err() error
}

Code of one extension as it runs

type PromptCommand

type PromptCommand struct {
	Name   string `yaml:"name"`
	About  string `yaml:"about"`
	Prompt string `yaml:"prompt"`
}

Slash command of an extension of files: the text of its prompt, $ARGUMENTS standing for what follows the command

type Reach

type Reach struct {
	Grants
	Runtime string   `json:"runtime,omitempty"`
	Servers []string `json:"servers,omitempty"`
}

What the user agrees to an extension reaching as it installs, kept in its record: its grants with every variable it may read in place of those they name, the form its code runs in, and how each MCP server it ships starts or where it is

func (Reach) Covers

func (r Reach) Covers(asked Reach) bool

Whether what was agreed to covers all the reach asks for: every file, host and variable, every kind of trust and request, a form of code that reaches no further, and MCP servers each started or found as before

type Record

type Record struct {
	Source string `json:"source"`
	// Catalog entry it was installed as, empty for one of an address, and the tier the catalog gave that entry then
	Entry string `json:"entry,omitempty"`
	Tier  string `json:"tier,omitempty"`
	// Repository, the ref asked for, the commit it was at and the folder of it, or the folder of this computer it was copied from
	URL    string `json:"url,omitempty"`
	Ref    string `json:"ref,omitempty"`
	Commit string `json:"commit,omitempty"`
	Subdir string `json:"subdir,omitempty"`
	// Digest of the files installed, which a check of the folder compares against
	Digest    string    `json:"digest,omitempty"`
	Installed time.Time `json:"installed"`
	Updated   time.Time `json:"updated,omitzero"`
	// What it reached when the user agreed to it
	Reach Reach `json:"reach"`
}

Where an extension came from and what it was installed at, which an update fetches from again

type Registrant

type Registrant interface {
	Runtimes() []Runtime
	Kinds() []Kind
}

What adds to the host: the forms the code of extensions runs in, and the kinds of things that code registers. One may also answer requests that code makes of icebath (Answerer)

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func (*Registry) Answers

func (r *Registry) Answers() []Answer

Every request some registrant answers, in the order they were registered

func (*Registry) Builtin

func (r *Registry) Builtin(cfg *config.Config, id string) (Builtin, bool)

Widget of icebath's own of the id for the profile, false for none

func (*Registry) Builtins

func (r *Registry) Builtins(cfg *config.Config) []Builtin

Widgets of icebath's own every registrant brings for the profile, those of registries nested in this one among them

func (*Registry) Examine

func (r *Registry) Examine(cfg *config.Config, manifest *Manifest, dir string) ([]string, error)

What every registrant that examines extensions says of the folder, in the order they were registered. The first error refuses it

func (*Registry) Forms

func (r *Registry) Forms() []string

Forms of code some registrant runs

func (*Registry) Host

func (r *Registry) Host() *Extensions

Host the registry is nested in, through which plugins reach the extensions each profile installed

func (*Registry) Kinds

func (r *Registry) Kinds() []Kind

Every kind some registrant takes, in the order they were registered

func (*Registry) Register

func (r *Registry) Register(registrant Registrant)

func (*Registry) Runtime

func (r *Registry) Runtime(name string) (Runtime, bool)

Runtime of the form, false when no registrant runs it

func (*Registry) Runtimes

func (r *Registry) Runtimes() []Runtime

Every form some registrant runs, in the order they were registered

type Removed

type Removed struct {
	Name   string `json:"name"`
	Repo   string `json:"repo,omitempty"`
	Reason string `json:"reason"`
	Date   string `json:"date,omitempty"`
}

Extension pulled from the catalog, which installing refuses

func PulledFrom

func PulledFrom(removed []Removed, e *Extension) (Removed, bool)

The entry the catalog pulled that names the extension or its repository, false when none does

func (Removed) Told

func (r Removed) Told(title string) string

Sentences saying an extension of the title was pulled from the catalog, on the day the document gives, and why

type Report

type Report struct {
	// What was validated, named whole, and whether it is a pack
	Path string
	Pack bool
	// Name and title of the extension or of the pack, empty where its manifest gives none
	Name, Title string
	// What it may do as its install shows it, none for a pack
	Allows []string
	// What its code registered as a trial ran it, the names of each kind by what a user calls the kind. None when it runs no code or did
	// not load
	Registered map[string][]string
	Findings   []manifests.Finding
}

What a validation of an extension's folder or of a pack found, for the user writing it

func (*Report) Refused

func (r *Report) Refused() bool

Whether an install refuses what was validated

type Review

type Review struct {
	Token    string
	Manifest *Manifest
	Record   Record
	// Entry of the catalog it is, nil for an address
	Entry *Entry
	// Extension of the profile it replaces, nil for a new one
	Replaces *Extension
	// What the scan found, empty when the scan was off or found nothing. Whether it found something dangerous, and something to look at
	Report    string
	Dangerous bool
	Caution   bool
	// What it may do, and whether it reaches past what the user agreed to for the extension it replaces
	Grants  []string
	Widened bool
	// Variables it needs that the profile has not set
	Missing []EnvSpec
	// What the user is told, such as the known issues of a catalog entry
	Notes []string
	// Built from its Go source as it installs, its entry missing from the source
	Builds bool
}

What an inspected source holds, shown before it is installed

func (*Review) Quiet

func (r *Review) Quiet() bool

Whether a review can be installed without asking: nothing more is granted, nothing was found, nothing is missing and nothing is built

type Runtime

type Runtime interface {
	// Form it runs, as a manifest's runtime names it
	Name() string
	// Starts the extension's code, the frames of the protocol read from and written to the process it answers
	Start(ctx context.Context, spec Spec) (Process, error)
}

Runs the code of extensions of one form

type Server

type Server struct {
	Command string            `yaml:"command" json:"command"`
	Args    []string          `yaml:"args" json:"args"`
	Env     map[string]string `yaml:"env" json:"env"`
	URL     string            `yaml:"url" json:"url"`
	Headers map[string]string `yaml:"headers" json:"headers"`
}

MCP server an extension ships

type SettingSpec

type SettingSpec struct {
	Key   string `yaml:"key"`
	Title string `yaml:"title"`
	About string `yaml:"about"`
	Help  string `yaml:"help"`
	// toggle, number, decimal, list, duration, secret or text
	Type    string    `yaml:"type"`
	Default yaml.Node `yaml:"default"`
	Options []choice  `yaml:"options"`
	Env     words     `yaml:"env"`
	// How a list written as one text splits into its items, by a word of config.SplitNames: words, the default, at commas and spaces;
	// names at commas and new lines; lines, one item for each. Or arguments, as a shell splits a command line
	Split string `yaml:"split"`
}

One setting an extension declares

type Skill

type Skill struct {
	// Identifier the hub and a pack know it by, such as official/devops/docker, and the name it is installed under
	ID, Name string
	// Registry it comes from and how far that is trusted: builtin, trusted or community
	Source, Trust string
	// The profile has it
	Installed bool
}

A skill of the hub

type SlotSpec

type SlotSpec struct {
	Name string `yaml:"name"`
	// time, enum, text or weekdays, text when not given
	Kind    string `yaml:"kind"`
	Label   string `yaml:"label"`
	Default string `yaml:"default"`
	Help    string `yaml:"help"`
	Options words  `yaml:"options"`
	// It may be left empty, and only its options are taken
	Optional bool `yaml:"optional"`
	Strict   bool `yaml:"strict"`
}

One value a user fills in a job an extension offers, named in braces in its schedule or prompt

type Spec

type Spec struct {
	Name string
	// Profile it runs for, the folder it is installed in and its own data folder
	Profile   string
	Dir, Data string
	Entry     []string
	// Environment of a program, as NAME=value
	Env []string
	// Command a program runs under, such as a sandbox
	Launcher []string
	// Most memory of a module, and the longest one call into it may run
	MemoryMB  int
	CallLimit time.Duration
	// Cache of the profile's compiled modules, closed with the host
	Cache *Cache
	// Where what the extension writes to its standard error goes
	Log io.Writer
}

What a runtime starts

type Style

type Style struct {
	Extension string
	Name      string
	Data      []byte
}

Color theme an extension ships: the extension, its name and the text of its file

type Tone

type Tone int

What a word saying how an extension stands calls for, which the color it takes says

const (
	Fine Tone = iota
	Idle
	Heed
	Broken
)

func Stands

func Stands(e *extensionsv1.Extension, safe bool) (string, Tone)

How an extension the service lists stands, in one word of the one vocabulary every screen and command of the extensions says it in, with its tone

type Widgeter

type Widgeter interface {
	Builtins(cfg *config.Config) []Builtin
}

Registrant that brings widgets of icebath's own, such as the weather, for the profile of the settings. Read quickly

Directories

Path Synopsis
The extensions screens of the terminal app: the page of the installed extensions with each one's own page, installing one from the catalog or an address after a review of what it may do, and the widgets and styles the extensions bring
The extensions screens of the terminal app: the page of the installed extensions with each one's own page, installing one from the catalog or an address after a review of what it may do, and the widgets and styles the extensions bring
The extensions from the command line: those the profile installed with how each stands, one in full, the catalog, installing one after its review, looking for and putting in updates, turning one on or off, checking its files, starting it again, removing it, the widgets and styles they bring, one widget drawn once, and how they stand as it changes
The extensions from the command line: those the profile installed with how each stands, one in full, the catalog, installing one after its review, looking for and putting in updates, turning one on or off, checking its files, starting it again, removing it, the widgets and styles they bring, one widget drawn once, and how they stand as it changes
What extensions need on this machine: the Go toolchain, which builds an extension of Go source as it installs
What extensions need on this machine: the Go toolchain, which builds an extension of Go source as it installs
Connect service of the extensions host, through which the terminal app manages the extensions of each profile on the machine the server runs on
Connect service of the extensions host, through which the terminal app manages the extensions of each profile on the machine the server runs on

Jump to

Keyboard shortcuts

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