builder

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 11 Imported by: 1 module, 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 builder is the Interaction Builder: the owner describes a flow ("triage my inbox", "write an article") and the agent sets the app up for it. That means the windows and how they are arranged, the owner's mode, standing instructions, and reflexes and routing rules that hold while the flow is in use. The result is saved as a flow the owner can come back to and refine.

A flow is a saved layout whose Setup carries the mode, the instructions, the reflexes to switch on and a "flow" record (goal, version). The module keeps every version of each flow in its own store, so a refinement never loses the one before.

The module does not compose anything itself. The agent does, with the builder slot's instructions, the catalog (builder_catalog) and the desk and agent tools. The module supplies the catalog, keeps the flows and draws the view.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flow

type Flow struct {
	Name        string `json:"name"`
	Goal        string `json:"goal"`
	Description string `json:"description,omitempty"`
	Version     int    `json:"version"`
	Created     string `json:"created"`
	Updated     string `json:"updated"`
	// Layout is the flow's current layout, with its setup (in a get).
	Layout *module.Layout `json:"layout,omitempty"`
	// Versions are the flow's versions, newest first (in a get).
	Versions []Version `json:"versions,omitempty"`
}

Flow is one saved flow.

type SaveInput

type SaveInput struct {
	Name        string `json:"name"`
	Goal        string `json:"goal"`
	Description string `json:"description"`
	// Note says what this version changed.
	Note string `json:"note"`
	// Arrange, when given, is the arrangement to put on the desk before saving: mode (tile
	// or float), ratio and windows, as desk_arrange takes them. Without it the desk is saved
	// as it is.
	Arrange *struct {
		Mode    string                `json:"mode"`
		Ratio   float64               `json:"ratio"`
		Windows []module.LayoutWindow `json:"windows"`
	} `json:"arrange"`
	Mode         string   `json:"mode"`
	Instructions string   `json:"instructions"`
	Reflexes     []string `json:"reflexes"`
}

SaveInput is what builder_flow_save takes.

type Version

type Version struct {
	Version int            `json:"version"`
	Note    string         `json:"note,omitempty"`
	Created string         `json:"created"`
	Layout  *module.Layout `json:"layout,omitempty"`
}

Version is one saved state of a flow.

Jump to

Keyboard shortcuts

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