Documentation
¶
Overview ¶
Package builtin is the Go vocabulary manifests name: builtins by slot, reserved names and keys, and the facts predicates read. The implementations live in internal/cli and internal/daemon and register at wiring.
Index ¶
- Constants
- Variables
- func AnswerSamples(fields []AnswerField) []map[string]any
- func ApprovalEnv(auto bool, slots ...string) expr.Env
- func ApprovalRule(when string, a draft.Approval, env expr.Env) (draft.Rule, error)
- func BoardOf(workspace string) string
- func ClassifyFact(workflow, field string) string
- func DeliveryPosts(d string) bool
- func DynamicFacts(src string) []string
- func EffectNames() []string
- func EndedFact(p unit.ProviderID) (string, bool)
- func EnumProblem(v string, values []Value) (msg, near string)
- func Env(slot FactSlot, inputs []dintent.Input) expr.Env
- func ExtraFacts(props []jsonschema.Property) expr.Env
- func FactProvider(name string) unit.ProviderID
- func FactType(name string) (expr.Type, bool)
- func Install(v *Vocabulary)
- func IsPredKey(last string) bool
- func IsUntrusted(name string) bool
- func KeyRenamedTo(old string) string
- func Localized(s Surface, path []string) bool
- func ManifestKeyRenamedTo(old string) string
- func Narrow(env expr.Env, providers []unit.ProviderID)
- func NeverNamesADelivery(r draft.Rule) bool
- func OfSlot(name, slot string) bool
- func OfferEnv() expr.Env
- func OrList(names []string) string
- func PayloadFact(name string) bool
- func PredicateEnv(p unit.ProviderID, name string) (expr.Env, bool)
- func PropFactType(t task.PropType) expr.Type
- func RenamedTo(old string) string
- func RenderToolText(w io.Writer, name, src string, data map[string]any) error
- func RoleNames() []string
- func SilentEffect(name string) bool
- func StepArgs(use string) []string
- func TimeVarying(name string) bool
- func TriggerEventKinds() []string
- func TurnEffectNames() []string
- func TurnEnv() expr.Env
- func TurnOf(owedBy string) string
- func UnitSlots() []string
- func ValueNames(values []Value) []string
- func Verdicts(serves func(unit.ProviderID) bool) []string
- func WithdrawEnv(slot string) expr.Env
- func WorkflowEnv(slot string) expr.Env
- func WorkflowEnvAll() expr.Env
- type AllowListError
- type AnswerField
- type Applies
- type Effect
- type Fact
- type FactSlot
- type GateKey
- type GateRole
- type Key
- type Kind
- type Mark
- type Problem
- type Rename
- type Role
- type RowWord
- type Slot
- type StepDef
- type SubjectsError
- type Surface
- type ToolAnswer
- type ToolData
- type UntrustedError
- type Value
- func DecisionKinds() []Value
- func GateModes() []Value
- func HomeTimes() []Value
- func NameValues(slot Slot) []Value
- func OmniboxOps() []Value
- func ShowParts() []Value
- func ShowValues() []Value
- func StepValuesOf(use, arg string) []Value
- func StripColors() []Value
- func ValuesOf(surface Surface, path string) []Value
- type VerbHandler
- type Vocabulary
Constants ¶
const ( WorkspaceReview = "review" WorkspaceAuthor = "author" )
The workspaces of a round on someone else's pull request and on one you develop.
const ( EventMuted = "muted" EventUnmuted = "unmuted" EventHeld = "held" EventReleased = "released" EventAdopted = "adopted" EventTracked = "tracked" EventUntracked = "untracked" EventRemoved = "removed" // EventClassified is recorded on a unit each time a classify step runs with an output stored for it; its // data is the workflow's name. EventClassified = "classified" // EventRoundSent and EventRoundUnblocked are a round's, which the // host records when a person sends or unblocks it. EventRoundSent = "round_sent" EventRoundUnblocked = "round_unblocked" )
The loop's event kinds the host records itself.
const ( EffectPlanCleared = "plan.cleared" EffectGuidanceHanded = "turn.guidance_handed" EffectRoundSent = "turn.round_sent" EffectTaskNudged = "task.nudged" EffectUnitClosed = "unit.closed" )
The effects the host applies by name.
const ( TurnMe = "me" TurnOthers = "others" TurnNobody = "nobody" )
The values of task.turn.
const ( DraftPurpose = "draft.purpose" DraftEffects = "draft.effects" )
DraftPurpose and DraftEffects are the approval facts an intent's rules may not read: a turn's agent names its drafts' purpose and effects.
const ( // NoticeAttachNeedsSession is the notice of task attach run outside a workspace manager's session. NoticeAttachNeedsSession = "attach_needs_session" NoticeVerbForYou = "verb_for_you" NoticeTaskMerged = "task_merged" NoticeNothingToPick = "nothing_to_pick" NoticeChat = "chat" NoticeChatTyped = "chat_typed" NoticeChatNotYours = "chat_not_yours" NoticeChatQueued = "chat_queued" NoticeChatStarted = "chat_started" NoticeDraftSent = "draft_sent" NoticeDraftSaved = "draft_saved" NoticeDraftRuleSends = "draft_rule_sends" NoticeDraftWaits = "draft_waits" NoticeDraftByRule = "draft_by_rule" NoticeReplyPlaceholder = "reply_placeholder" NoticeReplyButton = "reply_button" NoticeSendReplyPlaceholder = "send_reply_placeholder" NoticeSendReplyButton = "send_reply_button" NoticeAnswerPlaceholder = "answer_placeholder" NoticeAnswerButton = "answer_button" NoticeDigestTitle = "digest_title" NoticeDigestNew = "digest_new" NoticeDigestView = "digest_view" NoticeNotifyInbox = "notify_inbox" NoticeNotifyDraftForMe = "notify_draft_for_me" NoticeNotifyReply = "notify_reply" NoticeNotifySendReply = "notify_send_reply" NoticeNotifyQuestion = "notify_question" NoticeNotifyPinned = "notify_pinned" NoticeNotifyProposal = "notify_proposal" NoticeNotifyPost = "notify_post" NoticeNotifyYes = "notify_yes" NoticeNotifyNo = "notify_no" NoticeNotifyRecommended = "notify_recommended" NoticeNotifyDraft = "notify_draft" NoticeNotifyDraftFailed = "notify_draft_failed" NoticeNotifyOpen = "notify_open" NoticeNotifyDiscard = "notify_discard" NoticeWorkflowUnknown = "workflow_unknown" )
The notices Go names.
const ( PickOpen = "open" // the open tasks but this one PickMerged = "merged" // the tasks merged into this one: its property of role merged PickRelated = "related" // the tasks related to this one: its property of role related )
The tasks a verb that takes another task lets a person pick it from, by TaskPicks.
const ( ViewLayoutList = "list" ViewLayoutBoard = "board" ViewLayoutOutbox = "outbox" )
The layouts a view is drawn in.
const ( ShowDoc = "" /* 393-byte string literal not displayed */ ShowValuesDoc = "How many of an item's values the part shows: all, or the first alone." ShowWhenDoc = "" /* 242-byte string literal not displayed */ ShowWhenElem = "The values one facet must hold." ShowMaxDoc = "How many of an item's values the part shows at most; the rest count into one piece in the `more` row word. Absent or 0, all." ShowLabelDoc = "" /* 228-byte string literal not displayed */ ColorsDoc = "" /* 126-byte string literal not displayed */ )
ShowDoc and ShowValuesDoc are the docs of a facet's show and show_values, in views.toml and in ui.toml.
const ( RoleReview = "pr.review" RoleAddress = "pr.address" RoleNudge = "pr.nudge" RoleProbe = "probe" RoleHeadless = "headless" RoleAttach = "attach" )
The roles Go resolves an intent by (Registry.ByRole).
const ( RoundKindReview = "review" RoundKindAddress = "address" )
The round kinds a role binds: a review round, first or follow-up by the step's stage, and an address round.
const ( PolicyRound = "round" PolicyProbe = "probe" )
The agent policies a role binds: a round's, and the probe's.
const ( ContextPR = "pr" ContextSynthetic = "synthetic" )
The contexts a role binds: a real pull request, and a made-up one.
const ( StepTurnDismiss = "turn.dismiss" StepAnswerRefuse = "answer.refuse" StepClassify = "classify" StepNotifySelf = "notify.self" StepTaskVerb = "task.verb" StepGateOpen = "gate.open" StepTaskSet = "task.set" StepItemsResolve = "items.resolve" )
The steps whose arguments the grammar names.
const ( RefusalNoOpenItem = "the task holds no open item" RefusalNotDerived = "the task is not derived from items: its items do not close it" )
The refusals of items.resolve, which a plan item shows as its reason.
const BriefSlot = "brief"
BriefSlot is the slot of the facts of a unit's brief.
const BriefText = "text"
BriefText is the field of a brief record that holds a brief a person or an agent wrote, as markdown.
const BuildsBrief = "brief"
BuildsBrief is what the brief intent builds, and the kind of the record, of records.toml, that a brief is.
const ClassifyPrefix = "classify."
ClassifyPrefix names a classify step's output as a fact.
const DeliveryForm = `draft.delivery == "<delivery>" as a term of the top-level &&`
DeliveryForm is how a rule names a delivery.
const DraftDelivery = "draft.delivery"
DraftDelivery is the approval fact a rule must pin to a delivery to release a draft of it whose delivery posts.
const DraftSlot = "draft"
DraftSlot is the slot of the facts a workflow's [withdraw] when reads of each draft it proposed.
const DraftTargetPerson = "person"
DraftTargetPerson is draft.propose's target that posts each per-person draft in the direct conversation between the user and the person it is to.
const ExtraPrefix = "brief.extra."
ExtraPrefix names a brief's extra field as a fact.
const GateSlot = "gate"
GateSlot is the slot of a gate's facts, which a view over gates reads.
const GroupStart = "start"
GroupStart is the action group of the actions that start or continue a unit's turn, the intents' default.
const HandlerProject = "project"
HandlerProject is the handler that files a task under a parent, which shapes the task by hand as a move to a state does (task.clarified).
const LaunchProbe = "probe"
LaunchProbe is the launch of a probe: a synthetic pull request in the workspace the request names.
const LinkSignalPrefix = "task.link_signal."
LinkSignalPrefix names a signal the plugins report per link, such as stalled, aggregated over the task's links as a bool fact.
const OfferKind = PropPrefix + "kind"
OfferKind is the task's kind property as an offer reads it, typed a string whatever tasks.toml declares, so an offer compiles before the properties load.
const PrepareAction = "action:"
PrepareAction prefixes a role's prepare: the plugin action that fills its turn's inputs or refuses the turn, such as "action:nudge.prepare".
const PropByPrefix = "task.prop_by."
PropByPrefix names who last wrote a task property as a fact, task.prop_by.<name>: person, workflow, agent or plugin, empty while unset.
const PropPrefix = "task.prop."
PropPrefix names a task property of tasks.toml as a fact, typed from its declaration.
const QuestionReplaceIfMoved = "replace_if_moved"
QuestionReplaceIfMoved is the open_question of a turn.start whose round replaces a question the unit moved past.
const ReconcileMyReview = "my_review"
ReconcileMyReview reconciles a review turn with the review the viewer published.
const RowKindFact = "row.kind"
RowKindFact is the row's situation kind, which each plugin's row_kinds close on its units.
const StepDraftPropose = "draft.propose"
StepDraftPropose is the step that proposes a draft in the Outbox.
const StepTurnStart = "turn.start"
StepTurnStart is the step that starts an agent turn: its reach is its intent's.
const TurnDueWhen = "when"
TurnDueWhen is the due of a turn.start whose workflow's when alone decides that its round is due.
const WorkspaceLinkedElseMain = "linked_else_main"
WorkspaceLinkedElseMain runs a turn in the workspace linked to its unit, else in the repository's main checkout.
Variables ¶
var ( RoundKinds = []string{RoundKindReview, RoundKindAddress} Reconciles = []string{ReconcileMyReview} Launches = []string{LaunchProbe} Contexts = []string{ContextPR, ContextSynthetic} Policies = []string{PolicyRound, PolicyProbe} )
The host mechanisms a plugin's role may name, by the manifest key that names them.
var ( // DraftDeliveries are the deliveries the merged plugins declare, which Install sets. DraftDeliveries []string // DraftEmojiDeliveries are the deliveries the merged plugins mark emoji, which need the reaction argument, // and no text; Install sets them. DraftEmojiDeliveries []string DraftItems = []string{"owed", "resolved", "unowned", "unowned_aged", "all"} DraftPer = []string{"unit", "person"} DraftTargets = []string{"unit", "item", DraftTargetPerson} // DraftTo are whom of the people a draft would address it addresses: all of them, those who can read the // conversation it posts on, or those who cannot. DraftTo = []string{"all", "members", "non_members"} // DraftEnded is what a draft withdrawn as its task ended does to draft.propose while that task stays ended: // hold the workflow's proposals of no task or of that task, or hold them only for repeat_after. DraftEnded = []string{"hold", "repeat"} // RepeatForever is repeat_after_sent's value that never proposes again // after a draft was sent. RepeatForever = "forever" )
The values of draft.propose's arguments.
var ActionFacts = slices.Concat(rowActionFacts, draftActionFacts)
ActionFacts are the facts only the action slot reads, what a row offers decides on them, then the draft actions' facts.
var ActionGroups = []string{GroupStart, "turn", "control", "workspace", "brief", "intake"}
ActionGroups are the groups an action is listed under.
var ActionKeys = map[string]string{
"open": "O",
"take_over": "A",
"pause": "H",
"resume": "H",
"mute": "M",
"unmute": "M",
"copy_review_request": "Y",
}
ActionKeys are the keys of the built-in actions, by id; internal/keys holds the rule they follow.
var ActionSurfaces = []string{"row", "detail", "task", "tui", "menubar", "notification", "cli", "explore"}
ActionSurfaces are where an action may be offered.
var AnsweringEvents = map[unit.ProviderID]map[string]map[string]string{}
AnsweringEvents are the event kinds of each provider that answer the turn that asked for them, each with the record verdict of its states: what reconcile = "my_review" reads.
var AutoOnly = []string{DraftPurpose, DraftEffects}
AutoOnly are the approval facts only a workflow's rules and the configuration's read.
var Boards = []string{"review", "author"}
Boards are the workspaces whose board an intent's turns move: a turn in the review or the author workspace moves that board, any other none.
var Bookkeeping = []string{task.EventCreated, task.EventLinked, EventClassified}
Bookkeeping are the loop's event kinds that only trigger workflows, which no task's timeline shows.
var BriefSubjects = []string{"task"}
BriefSubjects are the workflow slots whose units may have a brief, which read the brief slot's facts: the task's, and those of the plugins whose manifest says brief_subject.
var Builds = []string{BuildsBrief}
Builds are what a builder intent may build.
var BuiltinActionIDs = []string{
"take_over", "pause", "resume", "mute", "unmute", "track", "untrack",
"open", "remove", "remove_force",
"brief_refresh", "copy_review_request", "intake_without", "intake_cancel",
"draft.edit", "draft.retry", "draft.close-silently", "draft.skip-workflow",
"plan_apply", "plan_dismiss", "plan_guide",
"run.open", "run.enter", "run.transcript",
}
BuiltinActionIDs are the built-in actions actions.toml words, one table each: a row's, a draft's, a plan item's and a task run's. plan_guide is the plan item's guide, whose wire id is guide.
var ConfigTiers = cfgValues("fast", "balanced", "frontier")
ConfigTiers are the model tiers a configured call takes, the set core/turns.Tiers holds.
var CopyActions = []string{"copy_review_request"}
CopyActions are the built-in actions whose only effect is the copy their actions.toml table words, the only tables a copy may sit in.
var DraftKinds = &draft.Catalog{}
DraftKinds are the merged plugins' draft kinds and deliveries; the host derives a draft's kind, delivery and payload schema through them.
var DraftRefusals = []string{"", "plugin_off", "state", "posts_nothing", "no_effects", "effect_posts", "not_from_workflow", "skipped"}
DraftRefusals are why a draft's action is disabled: its plugin is off, the draft is in a state the action does not move it from, its plugin posts nothing, it applies no effect without its message, one of its effects needs its message, no workflow proposed it, or its workflow is already stopped on its conversation.
var Effects = slices.Clone(coreEffects)
Effects is the effect vocabulary of turns and drafts: the core's, then each plugin's.
var ErrRuleMarks = errors.New("a rule reads no marks: handled() is for a workflow's when")
ErrRuleMarks refuses a rule's when that calls handled().
var EventKinds = []Value{
{Name: "held", Doc: "Automatic rounds paused on the unit."},
{Name: "released", Doc: "Automatic rounds resumed."},
{Name: "muted", Doc: "The unit's task deferred, out of the lists that wait on you."},
{Name: "unmuted", Doc: "The deferral lifted."},
{Name: "adopted", Doc: "Someone else's pull request taken over."},
{Name: "status", Doc: "The unit's board status changed."},
{Name: "removed", Doc: "The unit's workspace removed."},
{Name: "nudged", Doc: "A nudge posted."},
{Name: "tracked", Doc: "The unit followed."},
{Name: "untracked", Doc: "The unit no longer followed."},
{Name: "answered", Doc: "An agent's question answered."},
{Name: "turn_sent", Doc: "A turn sent to an agent session."},
{Name: "turn_started", Doc: "A turn started."},
{Name: "turn_ended", Doc: "A turn ended."},
{Name: "turn_resumed", Doc: "A turn resumed."},
{Name: "turn_withdrawn", Doc: "A turn withdrawn."},
{Name: "question_dismissed", Doc: "An agent's question dismissed."},
{Name: "turn_delivered", Doc: "A turn delivered to its session."},
{Name: "answer_routed", Doc: "An answer routed to its session."},
{Name: "late_record", Doc: "A record that arrived after its turn ended."},
{Name: "stop_blocked", Doc: "An agent's stop blocked for a reason the loop gave."},
{Name: "turn_stopped", Doc: "A turn stopped."},
{Name: "guide_trimmed", Doc: "A turn's guide trimmed to its limit."},
{Name: "dossier_restored", Doc: "A dossier file restored."},
{Name: "dossier_granted", Doc: "A dossier granted to a session."},
{Name: "dossier_call", Doc: "A dossier compaction call, with its cost."},
{Name: "omnibox_call", Doc: "An omnibox agent call, with its cost."},
{Name: "brief_waiting", Doc: "A request waiting for its brief."},
{Name: "intake_accepted", Doc: "A request accepted."},
{Name: "intake_briefing", Doc: "A request waiting for its brief."},
{Name: "intake_starting", Doc: "A request starting."},
{Name: "intake_started", Doc: "A request started."},
{Name: "intake_failed", Doc: "A request that failed."},
{Name: "intake_canceled", Doc: "A request canceled."},
{Name: "intake_guidance", Doc: "A request's guidance replaced."},
{Name: "workflow_step_ran", Doc: "A workflow's step ran."},
{Name: "session_started", Doc: "An agent session started."},
{Name: "session_launched", Doc: "An agent session launched."},
{Name: "session_abandoned", Doc: "An agent session abandoned before it started."},
{Name: "session_idle", Doc: "An agent session went idle."},
{Name: "session_active", Doc: "An agent session became active again."},
{Name: "session_closed", Doc: "An agent session closed."},
{Name: "session_typed", Doc: "Someone typed in an agent session."},
{Name: "session_prompted", Doc: "An agent session got a prompt."},
{Name: "session_unit", Doc: "An agent session tied to the unit."},
{Name: "session_adopted", Doc: "An agent session adopted."},
{Name: "session_dormant", Doc: "An agent session went dormant."},
{Name: "session_woken", Doc: "A dormant agent session woken."},
{Name: "session_merged", Doc: "An agent session merged into another."},
{Name: "mcp_seen", Doc: "An agent session reached the loop's tools."},
{Name: "turn_dismissed", Doc: "A turn dismissed by a rule."},
{Name: "answer_refused", Doc: "An answer refused."},
{Name: "answer_read", Doc: "An answer read by its session."},
{Name: "view_applied", Doc: "A view's change applied."},
{Name: "record", Doc: "A record written, such as a brief."},
{Name: "gate_resolved", Doc: "A decision that waited on you resolved."},
{Name: "gate_withdrawn", Doc: "A step that waited on you withdrawn by its workflow, its subject gone; its data is the workflow's reason."},
{Name: "message", Doc: "A message in the task's conversation with its agent."},
}
EventKinds are the kinds of the events the core records on a unit's timeline; a plugin's own kinds are in its manifest.
var EventProviders = coreEventProviders()
EventProviders are the event kinds only one provider's units record, by kind: a workflow reacting to one needs that provider. The kinds of the profile's verbs are the task provider's; the loader reads them from tasks.toml.
var Facts = slices.Concat(ActionFacts, otherFacts, proposalFacts, copyFacts)
Facts are the fields predicates read, by slot; inputs.<name> are added per intent by Env. A workflow fact may share a name with an intent fact.
var GateHandlers = []string{"approve", "answer", "edit", "retry", "drop"}
GateHandlers are the task verb handlers that resolve or act on a gate, which no omnibox verb runs: a gate is resolved by the user on the gate itself.
var GateKeys = []GateKey{ {gate.KindPlan, GateApproves, "R"}, {gate.KindPlan, GateTakesText, "G"}, {gate.KindPlan, GateRefuses, "S"}, {gate.KindTrust, GateApproves, "T"}, {gate.KindTrust, GateRefuses, "D"}, {gate.KindQuestion, GateTakesText, "W"}, {gate.KindQuestion, GateApproves, "C"}, {gate.KindQuestion, GateRefuses, "X"}, }
GateKeys are the keys of the row actions of the gates a row offers: a pending round's plan gate and a start block's trust gate.
var GatedActions = []string{"draft.edit", "draft.retry", "draft.close-silently", "draft.skip-workflow", "plan_apply", "plan_dismiss", "remove_force"}
GatedActions are the built-in actions that resolve a gate, post or discard unpublished work, which no omnibox verb runs: each is the user's on the draft, plan or workspace it acts on, behind its own confirmation.
var Grammar = slices.Concat(intentGrammar, workflowGrammar, stepGrammar, actionsGrammar, configGrammar, profileGrammar, toolsGrammar, tasksGrammar, viewsGrammar, gatesGrammar, recordsGrammar, keysGrammar, noticesGrammar, uiGrammar, rowWordRows(SurfaceViews, true), rowWordRows(SurfaceUI, false), retiredRowWordRows(SurfaceViews), retiredRowWordRows(SurfaceUI), showRows(SurfaceViews), showRows(SurfaceUI), gateApprovalRows(SurfaceIntent), gateApprovalRows(SurfaceWorkflow), stringsGrammar, timelineGrammar, decisionsGrammar, uiPluralGrammar, homeGrammar, omniboxGrammar, predsGrammar)
Grammar is every reserved key of the language.
var HandlerArgs = map[string][]string{ "promise": {"by"}, "schedule": {"until", "on_activity"}, "waiting": {"on", "resurface"}, "context": {"set"}, "area": {"set"}, "merge": {task.ArgTask}, "split": {task.ArgTask}, "relate": {task.ArgTask}, "unrelate": {task.ArgTask}, }
HandlerArgs are the arguments a verb takes by its handler, which a task.verb step may pass; a verb with no handler, or another, takes none.
var InputHandlers = []string{"waiting", "schedule", "project", "context", "area", "delegate", "reply", "promise", "merge", "split", "relate",
"unrelate"}
InputHandlers are the handlers that ask for a value before they run: a verb that names one puts its question in input.
var InputTypes = map[string]expr.Type{"bool": expr.Bool, "text": expr.String, "list": expr.List}
InputTypes are the types an input declares, with the type its fact has.
var IntentDims = []string{dintent.DimStage, dintent.DimReviewer}
IntentDims are the profile dimensions a manifest's dims may list.
var IntentVerbs = []string{string(task.VerbApprove), string(task.VerbDelegate), string(task.VerbDismiss)}
IntentVerbs are the verbs a manifest's verb may name: those a task bridges to its unit's served action.
var LanguageFacts = map[unit.ProviderID]string{}
LanguageFacts are, by provider, the fact that tells the language a unit's people write in, as a plugin's language_fact names it; a provider absent writes its drafts in the user's locale.
var LinkSignals []string
LinkSignals are the link signals the merged plugins declare, each read as the Bool fact task.link_signal.<name>.
var LocalizedFiles = []string{"text.md.tmpl", "why.md.tmpl"}
LocalizedFiles are the whole-file texts a person reads, by file name under workflows/<name>/.
var LoopEventKinds = []string{EventMuted, EventUnmuted, EventHeld, EventReleased, EventAdopted, EventTracked, EventUntracked, "nudged", EventRemoved, "status", gate.EventResolved, gate.EventWithdrawn, task.EventCreated, task.EventLinked, merge.RecordKind, EventClassified}
LoopEventKinds are the event kinds the loop records on a unit of any provider, which a workflow's trigger.on names.
var ManifestRenamedKeys = []Rename{
{"drafts.approval", "gates.approval"},
{"drafts.approval.", "gates.approval."},
{"approval", "gates.approval"},
{"approval.", "gates.approval."},
}
ManifestRenamedKeys are the keys of an intent's or a workflow's manifest a release renamed, as RenamedKeys.
var Marks []Mark
Marks are the merged plugins' marks a workflow may read; the core writes none.
var MembersFacts = map[unit.ProviderID]string{}
MembersFacts are, by provider, the list fact that holds who can read a unit's conversation, as a plugin's members_fact names it; a provider absent never tells.
var Names = map[Slot][]string{ SlotWorkspace: {WorkspaceReview, WorkspaceAuthor, WorkspaceLinkedElseMain, "given"}, SlotBefore: {"take_over"}, }
Names are the builtins a manifest names, by the key that names them.
var NoRole = Role{Context: ContextPR, Policy: PolicyRound}
NoRole is what an intent without a role binds.
var Notices = []ToolAnswer{ {Name: "answered", Doc: "Typed into an idle session, or the reason that blocks its stop while it works: the user answered Gate of the session's turn, 0 for an answer stored before answers named their gate, of the unit named as the loop's commands read it.", Fields: []AnswerField{num("Gate"), str("Unit")}}, {Name: NoticeChat, Doc: "Typed into a live session of a task when the user writes on the task's chat, or the reason that blocks its next stop while its agent works: the task's id, its own unit as the loop's commands read it, and Capable, whether the session loaded the MCP server. The notice carries no message: the agent reads it with task_read, or with the turn answer command.", Fields: []AnswerField{str("Task"), str("Unit"), {Name: "Capable"}}}, {Name: NoticeChatNotYours, Doc: "Why turn answer refuses a session that has no turn on the task it names, or on a unit the task holds: the unit as the command reads it.", Fields: []AnswerField{str("Unit")}}, {Name: NoticeChatTyped, Doc: "Tells the person that their chat message reached a live session of the task."}, {Name: NoticeChatQueued, Doc: "Tells the person that their chat message waits for the busy agent of a live session of the task, which is told of it when it stops."}, {Name: NoticeChatStarted, Doc: "Tells the person that their chat message started a turn of Intent, Resumed when it resumes the task's last session.", Fields: []AnswerField{str("Intent"), {Name: "Resumed"}}}, {Name: NoticeDraftSent, Doc: "Tells the person that the reply they sent at once, Draft, is approved and goes out.", Fields: []AnswerField{num("Draft")}}, {Name: NoticeDraftByRule, Doc: "Tells the person that a rule of theirs, Rule (its name as the gates record it, such as \"workflows/review gates.approval rule 0\"), posted draft Draft to Where, at Link once it is known; the notification and the draft's card show it.", Fields: []AnswerField{num("Draft"), str("Where"), str("Rule"), str("Link")}}, {Name: NoticeDraftSaved, Doc: "Tells the person that the reply they wrote, Draft, waits for their approval.", Fields: []AnswerField{num("Draft")}}, {Name: NoticeDraftRuleSends, Doc: "Tells an agent session that asked to send the reply it wrote, Draft, that a rule of the user's, Rule (its name as the gates record it), sends it.", Fields: []AnswerField{num("Draft"), str("Rule")}}, {Name: NoticeDraftWaits, Doc: "Tells an agent session that asked to send the reply it wrote, Draft, that no rule of the user's sends it: it waits for the user's approval.", Fields: []AnswerField{num("Draft")}}, {Name: NoticeReplyPlaceholder, Doc: "The placeholder of a notification's input that saves a reply for approval."}, {Name: NoticeReplyButton, Doc: "The button of a notification's input that saves a reply for approval."}, {Name: NoticeSendReplyPlaceholder, Doc: "The placeholder of a notification's input that sends a reply at once."}, {Name: NoticeSendReplyButton, Doc: "The button of a notification's input that sends a reply at once."}, {Name: NoticeAnswerPlaceholder, Doc: "The placeholder of a notification's input that answers an agent."}, {Name: NoticeAnswerButton, Doc: "The button of a notification's input that answers an agent."}, {Name: NoticeDigestTitle, Doc: "The title of the daily digest notification."}, {Name: NoticeDigestNew, Doc: "The digest's first line: Count, the tasks of the badge's views that moved since the last digest.", Fields: []AnswerField{num("Count")}}, {Name: NoticeDigestView, Doc: "The digest's line for one view the badge counts: View, its label, and Count, its tasks.", Fields: []AnswerField{str("View"), num("Count")}}, {Name: NoticeNotifyInbox, Doc: "The title of the notification of a task in the Inbox that says what it is itself."}, {Name: NoticeNotifyDraftForMe, Doc: "The button of an Inbox task's notification that delegates it to an agent headless."}, {Name: NoticeNotifyReply, Doc: "The button of a notification whose text input saves a reply for approval, or answers an agent."}, {Name: NoticeNotifySendReply, Doc: "The button of a notification whose text input sends a reply at once."}, {Name: NoticeNotifyPinned, Doc: "The line a question's notification adds when an answer to it approves a draft: the notification offers no such answer, and the question's card shows the draft."}, {Name: NoticeNotifyQuestion, Doc: "The title of the notification of an agent's open question."}, {Name: NoticeNotifyProposal, Doc: "The title of the notification of an open proposal."}, {Name: NoticeNotifyPost, Doc: "The title of the notification of an agent's open post."}, {Name: NoticeNotifyYes, Doc: "The button that answers yes to an agent's confirmation."}, {Name: NoticeNotifyNo, Doc: "The button that answers no to an agent's confirmation."}, {Name: NoticeNotifyRecommended, Doc: "The button of the option an agent recommends: Label, the option's label.", Fields: []AnswerField{str("Label")}}, {Name: NoticeNotifyDraft, Doc: "The title of the notification of a draft that waits for your approval."}, {Name: NoticeNotifyDraftFailed, Doc: "The title of the notification of a draft whose delivery failed."}, {Name: NoticeNotifyOpen, Doc: "The button that opens the notification's task in the cockpit."}, {Name: NoticeNotifyDiscard, Doc: "The button that discards a draft from its notification."}, {Name: NoticeVerbForYou, Doc: "Why a task's page, read from a session the user does not drive, offers Verb disabled: a verb acts for the user, so only the user runs it, or a session they drive.", Fields: []AnswerField{str("Verb")}}, {Name: NoticeTaskMerged, Doc: "Why a verb sent to a task merged into another is refused: Task, the merged task's id, Into, the task it reads as now, and Verb, the verb sent. Split runs on such an id, and splits it out.", Fields: []AnswerField{str("Task"), str("Into"), str("Verb")}}, {Name: NoticeNothingToPick, Doc: "Why a task's page offers Verb disabled when it picks from the tasks of Pick (merged or related) and the task lists none.", Fields: []AnswerField{str("Verb"), str("Pick")}}, {Name: "record_owed", Doc: "The reason that blocks the stop of a session whose turn has no record: the unit, the turn's id and the directory a record file goes in.", Fields: []AnswerField{str("Unit"), str("Turn"), str("ScratchDir")}}, {Name: NoticeConfigUnavailable, Doc: "Why a request to change the configuration, such as stopping a workflow, is refused by a daemon that edits no config file."}, {Name: NoticeSkipsUnavailable, Doc: "Why a request to skip a workflow on a unit, or to undo it, is refused by a daemon that keeps no skips."}, {Name: NoticeWorkflowUnknown, Doc: "Why a request naming Workflow is refused when the profile loads no workflow of that name.", Fields: []AnswerField{str("Workflow")}}, {Name: NoticeAttachNeedsSession, Doc: "Why task attach refuses to run outside an agent session a workspace manager started: the task named as the command reads it, and the enabled workspace managers as displayed.", Fields: []AnswerField{str("Task"), str("Managers")}}, }
Notices are what the loop tells an agent's session, and the person about what they wrote, which notices.toml words, and the fields each reads besides Name and Command.
var OfferFacts = []string{"task.id", OfferKind, "task.state", "task.unit", "task.unit_provider"}
OfferFacts are the facts a verb's offer reads: a task's own, which a list of tasks reads without a store.
var PRStates = []string{"OPEN", "CLOSED", "MERGED"}
PRStates are a pull request's states as GitHub spells them.
var PayloadProviders = map[string]unit.ProviderID{}
PayloadProviders are the template roots a provider's payload alone holds, which only an intent of that provider may read: each plugin's payload.
var PersonNotices = []string{ NoticeReplyPlaceholder, NoticeReplyButton, NoticeSendReplyPlaceholder, NoticeSendReplyButton, NoticeAnswerPlaceholder, NoticeAnswerButton, NoticeDigestTitle, NoticeDigestNew, NoticeDigestView, NoticeNotifyInbox, NoticeNotifyDraftForMe, NoticeNotifyReply, NoticeNotifySendReply, NoticeNotifyQuestion, NoticeNotifyPinned, NoticeNotifyProposal, NoticeNotifyPost, NoticeNotifyYes, NoticeNotifyNo, NoticeNotifyRecommended, NoticeNotifyDraft, NoticeNotifyDraftFailed, NoticeNotifyOpen, NoticeNotifyDiscard, NoticeDraftSent, NoticeDraftSaved, NoticeDraftRuleSends, NoticeDraftWaits, NoticeDraftByRule, NoticeChatTyped, NoticeChatQueued, NoticeChatStarted, NoticeTaskMerged, NoticeNothingToPick, NoticeWorkflowUnknown, NoticeConfigUnavailable, NoticeSkipsUnavailable, }
PersonNotices are the notices a person reads; the others an agent reads, in English.
var PickRoles = map[string]task.Role{PickMerged: task.RoleMerged, PickRelated: task.RoleRelated}
PickRoles are the picks that offer the tasks a property of the task lists, by the role of that property; a verb of such a pick is offered disabled while that list is empty.
var PluginPredicates = map[unit.ProviderID][]manifest.Predicate{}
PluginPredicates are the predicates each merged plugin's profile layer sets in predicates.toml, by provider.
var PluginSignals = map[unit.ProviderID][]string{}
PluginSignals are the link signals each merged plugin reports, by provider.
var PluginSituations = map[unit.ProviderID][]string{}
PluginSituations are the situations each merged plugin derives, by provider, in its manifest's order.
var PluginSteps = []string{StepAnswerRefuse}
PluginSteps are the steps that run only on the units of the plugins whose manifest lists them in steps; with none, a workflow cannot name them.
var PluginTaskKinds []string
PluginTaskKinds are the values of the task's kind property the merged plugins' units give their tasks, which tasks.toml's kind takes besides its own.
var PluralForms = []string{"zero", "one", "two", "few", "many", "other"}
PluralForms are the CLDR plural categories a text's forms are named by.
Providers are the providers an intent may serve: those of Slots, and a plugin whose units have no workflow facts adds its own.
var RecordStates = []string{string(record.Done), string(record.Settled), string(record.Asked), string(record.Failed)}
RecordStates are the states a manifest's record.states may list.
var Renamed = []Rename{
{"entry.units_ended", "task.link_ended"},
{"entry.unit_started_by_me", "task.link_started_by_me"},
{"entry.unit_closure_posted", "task.link_closure_posted"},
{"entry.waiting_on", "task.owed_by"},
{"entry.items_owed", "task.owed_by"},
{"entry.kind", "task.prop.kind"},
{"entry.resurface_at", "task.check_on"},
{"entry.waiting_days", "task.owed_since"},
{"entry.since_nudge", "task.prop.last_nudge"},
{"entry.nudge_due_at", "task.prop.last_nudge"},
{"entry.muted", "task.wake_until"},
{"entry.", "task."},
{"slack.live_entry", "slack.live_task"},
{"config.gtd.", "config.tasks."},
{"gtd.", "tasks."},
{"gtd", "tasks"},
{"entry", "task"},
{"entry-results-ended", "task-results-ended"},
{"guidance.handed", "turn.guidance_handed"},
{"pr.guidance_handed", "turn.guidance_handed"},
{"pr.round_sent", "turn.round_sent"},
{"pr.muted", "task.wake_until"},
{"pr.mute.refusal", "task.wake_when"},
{"config.github.", "config.plugins.github."},
{"draft.approve", "gates.draft.intents.approve"},
{"draft.discard", "gates.draft.intents.discard"},
{"run_now", "gates.plan.intents.run_now"},
{"guide", "gates.plan.intents.guide"},
{"skip", "gates.plan.intents.skip"},
{"trust_run", "gates.trust.intents.trust_run"},
{"unblock", "gates.trust.intents.unblock"},
{"answer", "gates.question.intents.answer"},
{"continue", "gates.question.intents.continue"},
{"dismiss", "gates.question.intents.dismiss"},
{"session.unread_answers", "session.unread_gates"},
{"inbox_post", "task_post"},
{"inbox_read", "task_read"},
}
Renamed are the names a release renamed. A user profile, manifest or config.toml that still writes an old one fails to load, its problem naming the new one: no old name is accepted beside its new one.
var RenamedFiles = map[string]string{
"gtd.toml": "its verbs are read from tasks.toml, its views and review from views.toml",
}
RenamedFiles are the profile files a release renamed or split, and where what each held is read now.
var RenamedKeys = []Rename{
{"workflows.*.approval", "workflows.*.gates.approval"},
{"workflows.*.approval.", "workflows.*.gates.approval."},
{"workflows.*.drafts.approval", "workflows.*.gates.approval"},
{"workflows.*.drafts.approval.", "workflows.*.gates.approval."},
{"plugins.*.drafts.approval", "plugins.*.gates.approval"},
{"plugins.*.drafts.approval.", "plugins.*.gates.approval."},
{"github.drafts.approval", "plugins.github.gates.approval"},
{"github.drafts.approval.", "plugins.github.gates.approval."},
{"slack.drafts.approval", "plugins.slack.gates.approval"},
{"slack.drafts.approval.", "plugins.slack.gates.approval."},
{"github", "plugins.github"},
{"github.", "plugins.github."},
{"slack", "plugins.slack"},
{"slack.", "plugins.slack."},
}
RenamedKeys are the configuration keys a release renamed or moved, each with the key that replaced it, the most specific first. An Old ending in "." renames every key it prefixes.
var ReservedFlags = []string{"--no-wait", "--no-brief", "--turn", "--help", "--manager", "--parent"}
ReservedFlags are flags the CLI owns; no input may declare them.
var ReservedNames = []string{
"app", "brief", "config", "doctor", "draft", "eval-correlation", "eval-instructions", "explore", "help", "hook", "init", "install",
"instructions", "intake", "mute", "open", "outbox", "pause", "plan", "profile", "remove", "resume",
"serve", "slack", "status", "store", "take-over", "task", "timings", "track", "trust", "tui", "turn", "uninstall", "unmute", "untrack",
"version", "workflows",
"answer", "brief_refresh", "continue", "copy_review_request", "dismiss", "guide", "intake_cancel", "intake_without", "remove_force", "skip",
"plan_apply", "plan_dismiss", "run_now", "take_over", "trust_run", "unblock",
"eval", "intents", "settings", "tags", "try",
"association", "base", "kind", "label", "organization", "repo", "reviewer", "risk", "size", "stage", "team", "user",
}
ReservedNames are names a user intent may not take: CLI commands, built-in action ids, profile words, dimensions. The loader checks them against user layers only.
var ResolutionSays = map[items.Resolution]string{ items.Done: "resolved as done", items.Answered: "resolved as answered", items.Fixed: "resolved as fixed", items.Delegated: "resolved as delegated", items.Declined: "resolved as declined", items.Dismissed: "resolved as dismissed", items.Superseded: "resolved as superseded", items.Moot: "resolved as moot", }
ResolutionSays are the catalog keys of how an item resolves, by resolution, as items.resolve's resolution reads.
var RetiredRowWords = []RowWord{
{Key: "col_who", Doc: "The head of the list column of whom a row waits on."},
{Key: "col_age", Doc: "The head of the list column of a row's age."},
{Key: "col_why", Doc: "The head of the list column of why a row waits."},
{Key: "col_aside", Doc: "The head of the list column of a row's workspace and links."},
{Key: "col_actions", Doc: "The head of the list column of a row's actions."},
{Key: "changed", Doc: "The flag of a task that changed since you last opened it."},
}
RetiredRowWords are the row words a release stopped reading, each with what it named. A [lens] that still sets one loads, so a profile that copied a whole file keeps working.
var RoleDocs = map[task.Role]string{ task.RoleArea: "A string: the area filter of the lists and the counters reads it, the area handler sets it, and a new parent takes it from the task it starts with.", task.RoleContexts: "A string[]: the contexts filter reads it, the context handler sets it, and a task takes it from the item or the request that opens it.", task.RoleStar: "An enum: the star handler toggles it between its first value, starred, and its second.", task.RoleDeadline: "A date: a task takes it from its items' deadline, and a draft's task from its gate's window.", task.RolePromise: "A date: the promise handler sets it to the time you promise the task by, and task.promised reads it.", task.RoleRelated: "A string[] of task ids: the relate handler adds each of two tasks to the other's, unrelate takes it off both.", task.RoleMerged: "A string[] of task ids, in merge order: the merge handler adds the task it folds in, split takes it off; a task that holds one settles item by item.", }
RoleDocs say what each role does with the property that takes it.
var Roles = slices.Clone(coreRoles)
Roles are what Go resolves an intent by, a manifest's role: the core's, then each plugin's.
var RoundProviders []unit.ProviderID
RoundProviders are the providers whose plugin keeps a per-unit count of turns, their manifest's rounds: every automated turn.start on their units spends turns.per_unit_per_day; a workflow starting turns on any other must set limits.per_day.
var RowGateKinds = []gate.Kind{gate.KindQuestion, gate.KindPlan, gate.KindTrust}
RowGateKinds are the kinds of the gates whose intents a row offers as its actions.
var RowWords = []RowWord{ {Key: "age_now", Vars: []string{}, Doc: "A row's age under a minute."}, {Key: "age_minutes", Vars: []string{"m"}, Doc: "A row's age under an hour, over its minutes as `{{.m}}`."}, {Key: "age_hours", Vars: []string{"h", "m"}, Doc: "A row's age under a day, over its hours `{{.h}}` and the minutes past them `{{.m}}`."}, {Key: "age_days", Vars: []string{"d", "h"}, Doc: "A row's age from a day, over its days `{{.d}}` and the hours past them `{{.h}}`."}, {Key: "filter_label", Vars: []string{"label", "value"}, Doc: "What a facet button on a row says to a screen reader, over the facet's `{{.label}}` and the `{{.value}}`."}, {Key: "filter_title", Vars: []string{"label", "value"}, Doc: "A facet button's tooltip, over the facet's `{{.label}}` and the `{{.value}}`."}, {Key: "filter_title_group", Vars: []string{"label", "value", "group"}, Doc: "A facet button's tooltip when its facet groups, over `{{.label}}`, `{{.value}}` and the `{{.group}}` field's label."}, {Key: "filter_group", Vars: []string{}, Doc: "What a facet button calls whom a row waits on when the value is a group of people, such as a Slack user group, in place of the facet's label."}, {Key: "list_count", Vars: []string{"unit", "shown", "total"}, Doc: "A row view's summary, over its `{{.unit}}`, how many rows the filter `{{.shown}}` and how many the view holds, `{{.total}}`."}, {Key: "list_empty", Vars: []string{}, Doc: "What a plugin view's list says when it holds no row and the plugin gives no words of its own."}, {Key: "countdown_title", Vars: []string{"time"}, Doc: "The tooltip of a pending round's countdown, over the `{{.time}}` it sends at."}, {Key: "countdown_sending", Vars: []string{}, Doc: "A pending round's countdown once its deadline passed."}, {Key: "countdown_seconds", Vars: []string{"s"}, Doc: "A pending round's countdown under 100 seconds, over the seconds `{{.s}}`."}, {Key: "countdown_minutes", Vars: []string{"m", "s"}, Doc: "A pending round's countdown from 100 seconds, over its minutes `{{.m}}` and the seconds past them, two digits, `{{.s}}`."}, {Key: "tip_named", Vars: []string{"strip", "who"}, Doc: "A row's tooltip's start when it names whom the row waits on, over the `{{.strip}}` value's label and `{{.who}}`."}, {Key: "tip_kind", Vars: []string{"tip", "kind"}, Doc: "A row's tooltip with its situation, over the `{{.tip}}` so far and the `{{.kind}}` labels."}, {Key: "tip_why", Vars: []string{"tip", "why"}, Doc: "A row's tooltip with why it waits, over the `{{.tip}}` so far and the `{{.why}}`."}, {Key: "legend_title", Vars: []string{}, Doc: "The tooltip of the legend of a view's strip, the colors of its strip facet's values."}, {Key: "sort_by", Vars: []string{"label"}, Doc: "The tooltip of the list toolbar's Sort chip, over the `{{.label}}` of the facet it sorts by."}, {Key: "col_unit", Vars: []string{}, Doc: "What a row view whose rows mix kinds calls its unit, as `list_count`'s `{{.unit}}`."}, {Key: "stale", Vars: []string{}, Doc: "The flag of a row whose plugin is not reporting."}, {Key: "stale_title", Vars: []string{}, Doc: "The stale flag's tooltip."}, {Key: "briefing", Vars: []string{}, Doc: "The flag of a row whose intake waits for its brief."}, {Key: "briefing_title", Vars: []string{"seq"}, Doc: "The briefing flag's tooltip, over the intake's `{{.seq}}`."}, {Key: "briefing_attempt", Vars: []string{"n"}, Doc: "What the briefing flag's tooltip adds of a retried intake, over the attempt `{{.n}}`."}, {Key: "briefing_error", Vars: []string{"error"}, Doc: "What the briefing flag's tooltip adds of an intake's last error, over the `{{.error}}`."}, {Key: "questions", Vars: []string{"n"}, Doc: "The pill of a brief's open questions, over their number `{{.n}}`."}, {Key: "questions_title", Vars: []string{"n"}, Doc: "That pill's tooltip, over `{{.n}}`."}, {Key: "starred", Vars: []string{}, Doc: "The tooltip of a starred task's star."}, {Key: "until", Vars: []string{"date"}, Doc: "The flag of a task asleep until a date, over the `{{.date}}`."}, {Key: "due", Vars: []string{"date"}, Doc: "The flag of a task's deadline, over the `{{.date}}`."}, {Key: "unread", Vars: []string{"lag"}, Doc: "The flag of a task whose links hold messages the extraction has not read, over how long the oldest waited, `{{.lag}}`."}, {Key: "unread_title", Vars: []string{}, Doc: "The unread flag's tooltip."}, {Key: "review_due", Vars: []string{}, Doc: "The flag of a project past its review."}, {Key: "no_next_action", Vars: []string{}, Doc: "The flag of a project with no open child."}, {Key: "open_children", Vars: []string{"n"}, Doc: "A project's open children, over their number `{{.n}}`."}, {Key: "sequential", Vars: []string{}, Doc: "The flag of a project that takes its children one at a time."}, {Key: "every", Vars: []string{"every"}, Doc: "How often a project is reviewed, over the `{{.every}}`."}, {Key: "reviewed", Vars: []string{"date"}, Doc: "When a project was last reviewed, over the `{{.date}}`."}, {Key: "more", Vars: []string{"n"}, Doc: "The piece that counts the values a facet's `show_max` leaves off a row, over their number `{{.n}}`."}, }
RowWords are the words of a row, in the order the reference lists them.
var SafeActions = []string{"take_over", "pause", "resume", "mute", "unmute", "track", "untrack", "open", "remove",
"brief_refresh", "copy_review_request", "intake_without", "intake_cancel", "plan_guide", "run.open", "run.enter", "run.transcript"}
SafeActions are the other built-in actions, which an omnibox verb may run. Every built-in action is in exactly one of GatedActions and SafeActions.
var Slots = coreSlots()
Slots name each provider's fact slot: the core providers', and each plugin's.
var Stages = []string{"first", "follow-up"}
Stages are the passes over a unit: the first, and each one after.
var StepDrafts = []string{StepDraftPropose}
StepDrafts are the steps whose message posts once you approve its draft: a plan item running one may post.
var StepRefusals = []string{RefusalNoOpenItem, RefusalNotDerived}
StepRefusals are the refusals of the core steps a plan item shows as its reason, each a key of strings.toml and of api.PlanReasons, which the clients word it by.
var StepSays = map[string]string{ "session.close": "Close the agent session", "workspace.remove": "Remove the workspace", "workspace.unregister": "Forget the workspace whose folder is gone", StepTurnDismiss: "Dismiss the agent's open turn", StepAnswerRefuse: "Refuse a queued answer whose route is gone", "session.mark_dormant": "Mark the agent session dormant", StepTurnStart: "Start an agent turn: {intent}", StepDraftPropose: "Draft a message you approve before it posts", StepClassify: "Classify it with an agent call", StepNotifySelf: "Notify you", StepTaskVerb: "Run {verb} on the task", StepGateOpen: "Ask you to decide", StepItemsResolve: "Resolve its open items as {resolution}", StepTaskSet: "Set {prop} to {value}", }
StepSays are the catalog keys of what each core step does to a plan item's unit, as strings.toml words them for a person; a {name} is a step argument as the clients read it.
var StepSaysWithTask = map[string]string{StepTaskVerb: "Run {verb} on the task, with “{task}”"}
StepSaysWithTask is the catalog key of what a step that names another task does, by step.
var Steps = stepsWith(nil)
Steps is the step vocabulary of workflow manifests.
var TaskPicks = map[string]string{"merge": PickOpen, "relate": PickOpen, "split": PickMerged, "unrelate": PickRelated}
TaskPicks are the handlers that ask for another task rather than a text, by the tasks the person picks it from; the pick is sent as the argument task.ArgTask.
var TaskSlot = Slots[unit.Task]
TaskSlot is the slot of a task's facts, which the task.prop.* facts of the profile's tasks.toml extend.
var Tones = []Value{
{Name: "", Doc: "No tone."},
{Name: "loop", Doc: "The loop's or an agent's doing."},
{Name: "me", Doc: "Your doing, or what waits on you."},
{Name: "people", Doc: "Someone else's doing."},
}
Tones are the tones a timeline draws an event or a fact in.
var ToolAnswers = func() []ToolAnswer { out := answersOf([]string{"turn_end", "task_post", "task_read", "draft_read", "draft_update", "draft_withdraw"}) out = append(out, answer("turn_end", "problem_extra_arguments", "A problem: arguments besides turn and record.", str("Keys")), answer("turn_end", "problem_turn_type", "A problem: turn is not a string."), answer("turn_end", "problem_turn_required", "A problem: turn is missing or empty."), answer("turn_end", "problem_record_required", "A problem: record is missing."), answer("turn_end", "problem_record", "A problem: record does not decode.", str("Error")), answer("turn_end", "problem_pin", "A problem: the question pins, at Where, draft Draft, which no answer decides: its state, \"\" when there is no such draft, is not held, or its gate's status, \"\" when it has none, is not open.", str("Where"), num("Draft"), str("State"), str("Gate")), answer("turn_end", "refused_record", "The turn refused the record.", str("Reason")), answer("turn_end", "store_failed", "The record could not be stored.", str("Error")), answer("turn_end", "recorded", "The record is stored: its state and unit, a note and what was dropped when any, and the ledger's outcome, \"\" when none.", str("State"), str("Unit"), str("Note"), str("Dropped"), str("Ledger")), answer("turn_end", "ledger_applied", "A part of the ledger's outcome: ops applied.", num("Count")), answer("turn_end", "ledger_unchanged", "A part of the ledger's outcome: ops that changed nothing.", num("Count")), answer("turn_end", "ledger_proposed", "A part of the ledger's outcome: ops proposed to the user.", num("Count")), answer("turn_end", "ledger_refused", "A part of the ledger's outcome: ops refused, and why.", num("Count"), str("Why")), answer("turn_end", "ledger_refusal", "Why one op was refused.", num("Index"), str("Reason")), answer("task_post", "text_required", "The text is missing."), answer("task_post", "capped", "The turn has too many posts waiting.", str("Error")), answer("task_post", "not_in_turn", "The session has no started turn.", str("Error")), answer("task_post", "post_failed", "The message could not be posted.", str("Error")), answer("task_post", "posted", "The message is on the task, waiting on gate Gate.", num("Gate")), answer("task_read", "no_turn", "The session has no turn.", str("Error")), answer("task_read", "no_gate", "No answer of the session's resolved gate ID.", num("ID")), answer("task_read", "not_the_tasks", "The session's turns are on no unit of the task it would read.", str("Error")), answer("task_read", "read_failed", "The task could not be read.", str("Error")), answer("task_read", "nothing", "Nothing to read: the session's turns are on no task, and no answer of gate ID, or of any gate when ID is 0, waits.", num("ID")), answer("task_read", "read", "What was read: the task, its brief record's data, its open gates, the chat since the last read and the conversations, each \"\" when empty.", str("Task"), str("Brief"), str("Gates"), str("Chat"), str("Conversations")), answer("task_read", "task", "A part of read: the task's id, title and state.", str("ID"), str("Title"), str("State")), answer("task_read", "gate", "A part of read: one open gate of the task, its kind, its name in gates.toml and the intents that resolve it.", num("ID"), str("Kind"), str("Name"), str("Intents")), answer("task_read", "chat_message", "A part of read: one message the user wrote on the task's chat, and when.", str("Text"), str("At")), answer("task_read", "conversation", "A part of read: a message, the gate its answers resolved (0 for one stored before answers named their gate), its kind (question or agent_post), its text and options, and its answers.", num("Gate"), str("Kind"), str("Text"), str("Options"), str("Answers")), answer("task_read", "turn_answers", "A part of read: answers to the session's turns stored before each answer named its message.", str("Answers")), answer("task_read", "option", "A part of conversation: one option of the message.", str("ID"), str("Label")), answer("task_read", "answer", "A part of conversation: one answer, with its option and the option's label, yes or no, its text and when it was given.", str("Option"), str("Label"), str("Choice"), str("Text"), str("At")), answer("draft_read", "read", "The draft, as JSON.", str("Draft")), answer("draft_update", "updated", "The revised draft, as JSON.", str("Draft")), answer("draft_withdraw", "withdrawn", "The withdrawn draft, as JSON.", str("Draft")), answer("draft_update", "rev_conflict", "The draft is at another rev than the one given.", str("Error")), answer("draft_withdraw", "rev_conflict", "The draft is at another rev than the one given.", str("Error")), answer("draft_update", "stale", "The basis given is not the unit's live one.", str("Error")), ) for _, tool := range []string{"draft_read", "draft_update", "draft_withdraw"} { out = append(out, answer(tool, "not_found", "No such draft.", str("Error")), answer(tool, "out_of_scope", "The draft is neither on the session's turn's unit nor proposed from it, or, to revise, a person's or a workflow's.", str("Error")), answer(tool, "failed", "The call failed.", str("Error")), ) } return out }()
ToolAnswers are the texts each tool answers with, which tools.toml words under [<tool>.answers].
var ToolProviders = map[string]unit.ProviderID{}
ToolProviders are the merged plugins' tools, by name, to the plugin that declares each; a core tool is not one of them.
var Tools = []Value{
{Name: "turn_end", Doc: "Records how the session's turn ended."},
{Name: "task_post", Doc: "Posts a question or a note on the session's task during a turn, waiting on a gate."},
{Name: "task_read", Doc: "Reads the session's task: the task, its brief, its open gates, the chat since the last read and the user's answers, and marks them read."},
{Name: "draft_read", Doc: "Reads a draft on the session's turn's unit or proposed from it: its content, delivery state and revisions."},
{Name: "draft_update", Doc: "Revises a draft an agent proposed on the session's turn's unit or from it, at the rev it read; the revision waits for the user's approval again."},
{Name: "draft_withdraw", Doc: "Withdraws a draft an agent proposed on the session's turn's unit or from it, at the rev it read."},
}
Tools are the tools of the loop's MCP server, which tools.toml describes, one table each.
var TurnDue = []string{"plan", TurnDueWhen}
TurnDue are the values of turn.start's due, its default first: plan sends a round only when the unit's plan holds it due; when sends one whenever the workflow's when matches.
var TurnOpenQuestion = []string{"hold", QuestionReplaceIfMoved}
TurnOpenQuestion are the values of turn.start's open_question, its default first.
var TurnRunners = []string{"session", "headless"}
TurnRunners are the values of turn.start's runner.
var TurnStates = []string{"", string(dturn.Sent), string(dturn.Started), string(dturn.Asked), string(dturn.Done), string(dturn.Settled), string(dturn.Failed), string(dturn.Unrecorded), string(dturn.Dismissed), string(dturn.Replaced), string(dturn.Withdrawn)}
TurnStates are the states a turn is in, and the empty value of none.
var UnitDraftFacts = []string{DraftSlot + ".failed", DraftSlot + ".stale", DraftSlot + ".failed_kind", DraftSlot + ".failed_ref"}
UnitDraftFacts are the facts of a unit whose draft failed to send, which every plugin's unit slot reads: a plugin publishes drafts.
var VerbHandlers = []VerbHandler{ {"finish", "Moves the task to the verb's to; a project's dossier starts its lifecycle."}, {"drop", "Moves the task to the verb's to; a kind another service serves drops its subject: a draft is discarded, a message's gate refused."}, {"focus", "Stars the task, or takes the star off: toggles the property of role star."}, {"schedule", "Hides the task until a date or until its unit moves, then brings it back where it was."}, {"wake", "Brings a deferred task back where its wake returns it, the first ready state when it names none, and drops the wake."}, {"waiting", "Records who the task waits on and when it resurfaces."}, {"approve", "Resolves the task's open gate as approved, or runs its unit's approve action."}, {"delegate", "Starts a turn on the task, headless or in a session."}, {"answer", "Answers the task's open question gate with the text it asks for."}, {"edit", "Edits the text of the task's draft."}, {"retry", "Sends again the task's approved draft whose delivery failed."}, {"reply", "Posts a reply or a reaction on the task's unit; the composer's verb."}, {HandlerProject, "Files the task under a parent, creating it from a title."}, {"context", "Sets the task's contexts: the property of role contexts."}, {"area", "Sets the task's area: the property of role area."}, {"seen", "Marks the task seen; clients send it when it opens."}, {"promise", "Sets the property of role promise to the time its by names: HH:MM, today or tomorrow once that passed; YYYY-MM-DD, 18:00 that day; or an RFC 3339 time. An empty by clears it."}, {"reviewed", "Marks a parent task reviewed."}, {"sequential", "Switches a parent task's children between sequential and parallel."}, {"merge", "Folds the task and the other task its task argument names into one: the one the verb's survivor holds on alone stays, else the older; the other's items, units, gates, drafts and messages move to it, its id leads to it, and split gives it back."}, {"split", "Gives back a task merged into this one, as it was before the merge: its items, units, gates, drafts and messages; what reached this task after the merge stays."}, {"relate", "Links the task and the other task its task argument names as related, distinct work: nothing moves, and each lists the other in its property of role related."}, {"unrelate", "Takes the link between the task and a related one off both."}, }
VerbHandlers are the handlers a verb names with handler.
var ViewLayouts = []string{ViewLayoutList, ViewLayoutBoard, ViewLayoutOutbox}
ViewLayouts are the layouts of views.*.layout.
var WorkflowSlots = slices.Concat(coreUnitSlots, nonUnitSlots)
WorkflowSlots are the slots of workflow facts: each provider's, then the brief's, the draft's, the gate's, the trigger's and the config's.
Functions ¶
func AnswerSamples ¶ added in v0.3.0
func AnswerSamples(fields []AnswerField) []map[string]any
AnswerSamples are the data a check renders an answer over, the tool data's included: every field set, then every field empty, so that both branches of a condition on a field run.
func ApprovalEnv ¶ added in v0.2.0
ApprovalEnv is the env of a draft gate's rule's when: the approval slot's facts, without AutoOnly unless auto, and the facts of each of slots, never a brief's, which an agent writes.
func ApprovalRule ¶ added in v0.2.0
ApprovalRule is the [gates.approval] rule of a draft gate, a, whose when is compiled over env. A task.prop.* fact it reads must be typed in env, which only the profile does; one env marks untrusted refuses the rule like an untrusted fact of the table. It names a delivery when its top-level conjunction holds draft.delivery == "<delivery>", the only way a rule releases a draft whose delivery posts.
func ClassifyFact ¶ added in v0.4.0
ClassifyFact names field of workflow's classify output as a fact: classify.<workflow>.<field>, each - of the workflow's name an _, so a predicate can name it.
func DeliveryPosts ¶ added in v0.3.0
DeliveryPosts says whether a draft of delivery d reaches people: a delivery a merged plugin declares posts unless no plugin marks it posts, and one none declares always does.
func DynamicFacts ¶ added in v0.2.0
DynamicFacts are the brief.extra.*, classify.* and task.prop.* facts src names outside its string literals: facts the profile declares, which a check without the profile cannot type, so it refuses them in a rule that releases. A brief's extra field and a classification's output are untrusted whatever their name; a property is untrusted when an agent or a plugin writes it, which only the profile says.
func EffectNames ¶ added in v0.2.0
func EffectNames() []string
EffectNames are the names of the draft effects: what a draft's effects, a draft.propose's effects and an intent's allowed_effects list.
func EndedFact ¶ added in v0.3.0
func EndedFact(p unit.ProviderID) (string, bool)
EndedFact is the workflow fact provider p's plugin says one of its units has ended with; false for a provider whose plugin says nothing.
func EnumProblem ¶ added in v0.2.0
EnumProblem says why v is none of values, "" when it is one: the values and the near one, never a value that releases, which a guess must not turn a typo into.
func ExtraFacts ¶ added in v0.2.0
func ExtraFacts(props []jsonschema.Property) expr.Env
ExtraFacts are the brief.extra.<name> facts the brief intent's extra schema declares, typed from its properties: a string (with or without an enum), an integer, a boolean or an array of strings, the types the loader lets a builder's schema hold. A predicate's env is extended with them at load, so naming an undeclared extra fails there.
func FactProvider ¶
func FactProvider(name string) unit.ProviderID
FactProvider is the provider whose units an intent fact describes; "" for a fact of every provider, or a name that is no intent fact.
func Install ¶ added in v0.3.0
func Install(v *Vocabulary)
Install makes v the tables. The composition root installs once, before the configuration and the profile load and before anything else reads the tables; a test that swaps the tables runs alone and restores them.
func IsPredKey ¶ added in v0.2.0
IsPredKey says whether a key named last holds a predicate somewhere in the language, so a value written without quotes gets the quoting hint.
func IsUntrusted ¶ added in v0.2.0
IsUntrusted says whether a rule may not trust the fact name: an agent or a third party sets its value. A brief's extra fields and a classification's output are untrusted whatever their name.
func KeyRenamedTo ¶ added in v0.3.0
KeyRenamedTo is the configuration key that replaced old, "" when old was never renamed.
func Localized ¶ added in v0.4.0
Localized says whether the key at path of a file of surface s holds a text a person reads; path holds concrete segments, an array index written "[3]".
func ManifestKeyRenamedTo ¶ added in v0.3.0
ManifestKeyRenamedTo is the manifest key that replaced old, "" when old was never renamed.
func Narrow ¶ added in v0.2.0
func Narrow(env expr.Env, providers []unit.ProviderID)
Narrow closes, in env, each fact whose values are declared per provider to the values of providers: their union when each of them declares a set, and any value when one does not or providers is empty.
func NeverNamesADelivery ¶ added in v0.3.0
NeverNamesADelivery says that r releases and reads draft.delivery, yet pins it to no delivery: a form such as draft.delivery in ["comment"] reads as one that may release a draft that posts, and never does.
func OfSlot ¶ added in v0.5.0
OfSlot says whether the workflow fact name is one of slot's units: named slot.<field>, or a fact of another slot that slot reads, such as a unit's draft facts.
func PayloadFact ¶ added in v0.5.0
PayloadFact says whether name is a payload fact a merged plugin's draft kind declares.
func PredicateEnv ¶ added in v0.4.0
PredicateEnv is the env of plugin p's predicate name: the facts its manifest says p hands with the question; false when p declares no such predicate.
func PropFactType ¶ added in v0.3.0
PropFactType is the type of the fact task.prop.<name> of a property of type t: an enum, an actor and a string read as a string (an actor as its key), a list type as a list. An int or a duration of 0 reads as unset.
func RenamedTo ¶ added in v0.3.0
RenamedTo is the name that replaced old, "" when old was never renamed.
func RenderToolText ¶ added in v0.3.0
RenderToolText writes the tools.toml text src, named name, over data.
func SilentEffect ¶ added in v0.4.0
SilentEffect says whether draft effect name applies without the draft's post.
func TimeVarying ¶ added in v0.2.0
TimeVarying says whether the workflow fact name changes as time passes with nothing else changing; false for a name that is no workflow fact.
func TriggerEventKinds ¶ added in v0.3.0
func TriggerEventKinds() []string
TriggerEventKinds are the event kinds a workflow's trigger.on names: the loop's, the plugins' and the task's.
func TurnEffectNames ¶ added in v0.2.0
func TurnEffectNames() []string
TurnEffectNames are the names of the turn effects: what an intent's effects list.
func TurnEnv ¶ added in v0.3.0
TurnEnv is every provider's own facts of the turn slot, the ones a turn reads before it is built.
func UnitSlots ¶ added in v0.2.0
func UnitSlots() []string
UnitSlots are the workflow slots of every provider's units.
func ValueNames ¶ added in v0.2.0
ValueNames are the names of values.
func Verdicts ¶ added in v0.5.0
func Verdicts(serves func(unit.ProviderID) bool) []string
Verdicts are the verdicts the draft kinds of the merged plugins serves takes declare, in their order, once each.
func WithdrawEnv ¶ added in v0.2.0
WithdrawEnv is the env of a workflow's [withdraw] when: WorkflowEnv(slot) and the draft slot's facts.
func WorkflowEnv ¶
WorkflowEnv is the env of a workflow's when: the facts of slot, the brief's when slot is one of BriefSubjects, trigger.* and config.*.
func WorkflowEnvAll ¶
WorkflowEnvAll is WorkflowEnv over every slot, for a predicate whose workflow is not known yet.
Types ¶
type AllowListError ¶ added in v0.5.0
type AllowListError struct{ Fact string }
AllowListError refuses a rule that releases and reads a payload fact other than as an allow-list: an absent fact reads as the empty string, so a rule such as fact != "APPROVE" would release a draft that lacks it.
func (*AllowListError) Error ¶ added in v0.5.0
func (e *AllowListError) Error() string
type AnswerField ¶ added in v0.3.0
AnswerField is a field an answer reads: a string, or a number when Number.
type Applies ¶ added in v0.2.0
type Applies int
Applies says what an effect applies on: a sent turn (an intent's effects) or a sent draft (a draft.propose's effects and an intent's [drafts] allowed_effects).
type Effect ¶ added in v0.2.0
type Effect struct {
Name string
// Provider is the provider whose turns or drafts alone may name it; ""
// any.
Provider unit.ProviderID
Applies Applies
Doc string
// Plugin says a draft effect applies through the unit's plugin, so it
// waits while that plugin is not built.
Plugin bool
// Silent says a draft effect applies without the draft's post, so a
// person may close the conversation without the message.
Silent bool
}
Effect is what sending a turn or a draft applies, by name.
type Fact ¶
type Fact struct {
Name string
Type expr.Type
Slots []FactSlot
Doc string
Slot string // a workflow fact's slot: one of WorkflowSlots
// Provider is the provider whose intents alone may read the fact; "" for every provider.
Provider unit.ProviderID
// Subjects are the workflow slots besides Slot whose when reads the
// fact: the brief slot's facts are read on every unit that has a brief.
Subjects []string
// Dim makes the fact a profile dimension: a block path condition under
// the intents of its provider.
Dim bool
// Enum are the fact's values by provider, "" standing for every
// provider; a provider absent takes any value.
Enum map[unit.ProviderID][]string
// Untrusted says that a third party's text, read by the extraction, the
// proposing turn itself or an agent's brief sets the fact's value, so
// no rule of a draft gate, nor one that releases a gate, may read it.
Untrusted bool
// TimeVarying says that the fact changes as time passes with nothing
// else changing, so no workflow key may hold it.
TimeVarying bool
// Costly says that the fact reads the store across every task, so its provider computes it only for a
// reader that names it (workflow.WithReads); any other reader gets workflow.Unrequested, which fails to evaluate.
Costly bool
}
type FactSlot ¶
type FactSlot string
const ( ActionSlot FactSlot = "action" TurnSlot FactSlot = "turn" WorkflowSlot FactSlot = "workflow" // ApprovalSlot holds the draft's own facts a draft gate's rule // reads besides its unit's. ApprovalSlot FactSlot = "approval" // NameSlot holds the facts a manifest's session.name reads. NameSlot FactSlot = "name" )
const CopySlot FactSlot = "copy"
CopySlot holds the facts the copy texts of a built-in action read: the unit it runs on and its brief.
const DraftActionSlot FactSlot = "draft_action"
DraftActionSlot holds the facts the texts of a draft's built-in actions read.
const ProposalSlot FactSlot = "proposal"
ProposalSlot holds the facts the words of a proposal gate read: an item proposal's, or a verb's gate.
type GateKey ¶ added in v0.3.0
GateKey is the key of the row action an intent of a row's open gate of Kind takes when it has Role: the first intent of each role takes it.
type GateRole ¶ added in v0.3.0
type GateRole string
GateRole is what an intent of a gate does, which its status and answer say: approves the gate, takes text, or refuses it.
type Key ¶ added in v0.2.0
type Key struct {
Path string
In Surface
// Step is the step whose argument the key is, for In == SurfaceStep.
Step string
Kind Kind
// Elem is a list's element kind, for Kind == KindList.
Elem Kind
// Values are an enum's values, from the table that owns the set.
Values func() []Value
Default string
Doc string
// Required says that the table holding the key must set it.
Required bool
// Localized says that the key holds a text a person reads, which a layer's locales/<tag>/ mirror
// translates.
Localized bool
// Retired says that a release stopped reading the key: a file that still sets it loads, and the key
// does nothing.
Retired bool
}
Key is one reserved key of the language. Path is dotted, "[]" marks an array of tables and "*" a name the author chooses: "action.refuse[].why", "inputs.*.type", "workflows.*.approval.mode".
type Kind ¶ added in v0.2.0
type Kind int
Kind is what a key's value is.
const ( KindPred Kind = iota + 1 // a predicate's source KindFact // a fact's name KindTemplate // an inline text/template KindFile // a file beside the manifest KindEnum // one of Values KindDur // a duration (internal/domain/duration) KindBool KindInt KindText KindList // a list of Elem KindTable KindMap // a table whose keys an author names KindAny // more than one form, which its decoder reads KindNumber // an integer or a decimal )
type Problem ¶ added in v0.2.0
type Problem struct {
Path string
Msg string
// Near is the value or key the message suggests, "" when none.
Near string
// Unknown says that no row names the key.
Unknown bool
}
Problem is a key Check refuses, at its dotted path in the document.
type Rename ¶ added in v0.3.0
type Rename struct {
Old, New string
}
Rename is a name the profile language no longer has and the name that replaced it. An Old ending in "." renames every name it prefixes.
type Role ¶ added in v0.2.0
type Role struct {
Name string
Doc string
// Provider is the provider whose units the role's turns run on; "" any.
Provider unit.ProviderID
// RoundKind is the sweep round its turns are; "" none.
RoundKind string
// Reconcile, Prepare, Launch: builtins its turns run; "" none.
Reconcile, Prepare, Launch string
// Workspace is the workspace builtin its holder names; "" any.
Workspace string
// Context is what its turn is about; Policy the agent policy of its
// sessions.
Context, Policy string
// DrivesRow says its turns drive the row of the workspace they run in;
// a user intent taking the role takes it over.
DrivesRow bool
// PerSession says a turn of its intent replaces only the open turns of
// that intent on its own session, so every session holding it is a run
// of its own.
PerSession bool
}
Role is what an intent's role binds it to: the plugin mechanism Go runs its turns with.
type RowWord ¶ added in v0.4.0
RowWord is a word of a row in views.toml's [lens], which a plugin's ui.toml may replace for its rows: its key, the {{.name}} actions it may hold and what it is.
type StepDef ¶
type StepDef struct {
Name string
Providers []unit.ProviderID // empty means any
Reach workflow.Reach // "" for turn.start: the intent decides
Trigger []workflow.TriggerKind // empty means any
Doc string
}
StepDef is a workflow step the engine can run: the providers whose units it acts on, its reach, the triggers it runs under and what it does. Its arguments are its rows of the grammar (StepArgs).
type SubjectsError ¶ added in v0.2.0
type SubjectsError struct{ Subjects []string }
SubjectsError refuses a rule's when that reads the facts of two subjects, which no draft has.
func (*SubjectsError) Error ¶ added in v0.2.0
func (e *SubjectsError) Error() string
type Surface ¶ added in v0.2.0
type Surface string
Surface is a file kind of the profile language, or the configuration.
const ( SurfaceIntent Surface = "intent" // intents/<name>/intent.toml SurfaceWorkflow Surface = "workflow" // workflows/<name>/workflow.toml SurfaceStep Surface = "step" // a workflow step's arguments SurfaceActions Surface = "actions" // actions.toml SurfaceDefaults Surface = "defaults" // defaults.toml SurfaceLabels Surface = "labels" // labels.toml SurfaceTools Surface = "tools" // tools.toml SurfaceTasks Surface = "tasks" // tasks.toml SurfaceViews Surface = "views" // views.toml SurfaceGates Surface = "gates" // gates.toml SurfaceRecords Surface = "records" // records.toml SurfaceKeys Surface = "keys" // keys.toml SurfaceNotices Surface = "notices" // notices.toml SurfaceUI Surface = "ui" // a plugin layer's ui.toml SurfacePreds Surface = "preds" // a plugin layer's predicates.toml SurfaceBlock Surface = "block" // a judgment block's front matter SurfaceConfig Surface = "config" // config.toml )
const SurfaceDecisions Surface = "decisions"
SurfaceDecisions is decisions.toml, of the default and the plugin layers.
const SurfaceHome Surface = "home"
SurfaceHome is home.toml, the cockpit's home: the briefing's counters and words, its sections and the capture field.
const SurfaceOmnibox Surface = "omnibox"
SurfaceOmnibox is omnibox.toml: how the omnibox groups what it finds, and the verbs it knows.
const SurfaceStrings Surface = "strings"
SurfaceStrings is strings.toml, the client strings.
const SurfaceTimeline Surface = "timeline"
SurfaceTimeline is timeline.toml, the words and tones of the core's event kinds and the facts a timeline folds its events into.
type ToolAnswer ¶ added in v0.3.0
type ToolAnswer struct {
Tool, Name, Doc string
Fields []AnswerField
}
ToolAnswer is a text a tool answers with, by name, and the fields it reads besides the ToolData's.
func AnswerOf ¶ added in v0.3.0
func AnswerOf(tool, name string) (ToolAnswer, bool)
AnswerOf is tool's answer name, false when the tool has none.
func NoticeOf ¶ added in v0.3.0
func NoticeOf(name string) (ToolAnswer, bool)
NoticeOf is the notice name, false when there is none.
type ToolData ¶ added in v0.3.0
type ToolData struct {
// Name is the product's name, Command its command.
Name, Command string
// PostsPerTurn is how many task_post messages of a turn wait at once.
PostsPerTurn int
}
ToolData is what every tools.toml text reads.
type UntrustedError ¶ added in v0.2.0
type UntrustedError struct{ Fact string }
UntrustedError refuses a rule's when that reads an untrusted fact.
func (*UntrustedError) Error ¶ added in v0.2.0
func (e *UntrustedError) Error() string
type Value ¶ added in v0.2.0
type Value struct {
Name string
Doc string
// Releases says that the value lets a send or a run go with no person
// approving it, which no did-you-mean suggests.
Releases bool
}
Value is one value of an enum key.
func DecisionKinds ¶ added in v0.4.0
func DecisionKinds() []Value
DecisionKinds are the decision kinds as enum values, in decision.Kinds order: what decisions.toml maps gate kinds, situations and signals to.
func GateModes ¶ added in v0.3.0
func GateModes() []Value
GateModes are the modes of a [gates.approval] table, gate.Modes.
func HomeTimes ¶ added in v0.4.0
func HomeTimes() []Value
HomeTimes are what a home section's rows show the time of.
func NameValues ¶ added in v0.2.0
NameValues are the builtins of slot, with what each is.
func OmniboxOps ¶ added in v0.4.0
func OmniboxOps() []Value
OmniboxOps are what an omnibox verb runs on text that names no unit or task.
func ShowParts ¶ added in v0.4.0
func ShowParts() []Value
ShowParts are the parts of a row a facet's show may name.
func ShowValues ¶ added in v0.4.0
func ShowValues() []Value
ShowValues are how many of an item's values a facet shows.
func StepValuesOf ¶ added in v0.2.0
StepValuesOf are the values of step use's enum argument arg.
func StripColors ¶ added in v0.4.0
func StripColors() []Value
StripColors are the hues a strip facet's value may take, the design's colors of whom a row waits on.
type VerbHandler ¶ added in v0.3.0
type VerbHandler struct{ Name, Doc string }
VerbHandler is a handler a verb of tasks.toml may run besides its move.
type Vocabulary ¶ added in v0.3.0
type Vocabulary struct {
// contains filtered or unexported fields
}
Vocabulary is the tables the core rows and some source plugins' vocabularies make. Install makes it the tables every reader reads.
func Installed ¶ added in v0.3.0
func Installed() *Vocabulary
Installed is the vocabulary the tables hold, for a test to restore.
func Merge ¶ added in v0.3.0
func Merge(srcs ...*manifest.Source) (*Vocabulary, error)
Merge is the vocabulary of the core rows and the [source] tables of srcs: their slots, facts, effects, roles, row kinds, deliveries, event kinds, payload root, brief subject, rounds and task kinds. A source that does not fit the host (a core provider or slot, a name another plugin or the core declares, a role naming no host mechanism) is left out, and the error names it; the vocabulary holds the others.
func (*Vocabulary) DraftKinds ¶ added in v0.5.0
func (v *Vocabulary) DraftKinds() *draft.Catalog
DraftKinds are the draft kinds and deliveries of v's plugins.
Source Files
¶
- approval.go
- builtin.go
- decisions.go
- effects.go
- facts.go
- facts_action.go
- facts_copy.go
- facts_proposal.go
- grammar.go
- grammar_actions.go
- grammar_check.go
- grammar_config.go
- grammar_gates.go
- grammar_home.go
- grammar_intent.go
- grammar_keys.go
- grammar_localized.go
- grammar_notices.go
- grammar_omnibox.go
- grammar_profile.go
- grammar_records.go
- grammar_rowwords.go
- grammar_step.go
- grammar_tasks.go
- grammar_timeline.go
- grammar_tools.go
- grammar_ui.go
- grammar_views.go
- grammar_workflow.go
- marks.go
- merge.go
- renamed.go
- roles.go
- steps.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package builtintest swaps the builtin tables for a test.
|
Package builtintest swaps the builtin tables for a test. |
|
cmd
|
|
|
factsdoc
command
Command factsdoc prints the facts reference page: the intents' facts and the workflow facts, each grouped by slot, the draft approval facts, the workflow steps, then the draft effects.
|
Command factsdoc prints the facts reference page: the intents' facts and the workflow facts, each grouped by slot, the draft approval facts, the workflow steps, then the draft effects. |
|
grammardoc
command
Command grammardoc writes what the grammar table derives: the JSON schemas of the profile files and the configuration, the generated tables of the manifest and configuration reference pages, and the language page.
|
Command grammardoc writes what the grammar table derives: the JSON schemas of the profile files and the configuration, the generated tables of the manifest and configuration reference pages, and the language page. |