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.