consoleLibrary({...})
from @bijectionhq/library-console says what it shows: the panels (your
libraries and mounted apps, by kind), the queries and mutations a member
may explore, the record types a graph expands over, and the people a member
may mention. Every read runs in the member’s own frame, so the console never
shows what a member may not read.
Graphs
A saved graph holds console links and records. A member adds a record by its type and key, and expands it over its type’s relations:- a relation with
fieldfollows the record’s own key field (or a list of keys) to the related records; - a relation with
byfinds the related type’s facts whose field holds the record’s key, one bounded page at a time. That table declares an index of exactly that field (index: [["customer"]]), which a labelled table needs for the page.
style (a chart colour 1 to 8 or #rrggbb, and a shape: box, round,
circle or diamond) is how the console draws it. A graph may override a
type’s style for itself.
People
Withpeople, members pick the people they mention from a search
(people.search). The people are the holders of the console’s member roles,
or of people.roles, read from sys.grants through the read verb. Their
names and emails come from your directory table, keyed by principal. The
library that stores a mention still checks it: give the same table to
comments({ people }).
Processes
Aprocesses panel shows the attention queues, each stage’s cases and one
case’s path. On a case it also shows:
- Diagnosis: why the case needs a person (late in its stage, its stage’s attention, nobody working it, past its due date), and its last move.
- Who changes its stages: its moves counted by who started them. A move in a reaction, a continuation or a task, or made by a service, counts as a program; a move made by an agent principal counts as an agent; a direct call by a person counts as a person.
- AI usage: the model calls and tokens your app recorded for the case
with
process.work(ctx, key, { executions, tokens, source }), typically from an agents turn’s result (rounds,tokens,turn).
Maps
Amaps panel holds the deployment’s map settings, its keyed tile providers
and the export audit. See Map settings, keyed tiles and exports.