Skip to main content

Module activity

Module activity 

Source
Expand description

What happened in the app, as an episodic memory (kitchen-ui’s Timeline): every command run (from a menu, a key, the search, the title bar or an agent) with who ran it, the time spent in each workspace, and every job from its start to its end. Attention, not content: a command’s arguments are kept in short, never the data it worked on.

The registry and the frame record into it by themselves; an app adds what a step produced (produced) so the timeline can say where a file came from. view is a timeline that follows the log as it grows; view_of shows only what a filter keeps (what was made).

The log lives in memory for the app’s session and is never written anywhere: it is the session’s story, not a record of the person. Each activity names who it was done for (crate::people::who: a person’s name, or guest).

Enums§

Actor
Who did it.

Functions§

all
Everything so far; spans still open end now.
clear
Forgets everything (a new project).
close
Closes the span key now.
command
Records a command run: by whom, how (via: menu, key, search, title bar, agent), with what arguments and what came of it.
focus
The workspace shown now: a span on the Focus lane, until the next one.
generation
Bumped on every change (redraw when it moves).
job_ended
A job ended.
job_started
A job started (its span on the Jobs lane, until job_ended).
made
What was made: a job, or an activity that produced something (a view_of filter).
now
Seconds since 1970 (UTC).
open
Opens a span key (a job, a workspace shown) that lasts until close; one open with the same key is closed first.
produced
What a step produced (files, ids): added to the last activity titled title, or as one of its own on the person’s lane.
record
Adds an activity (for the person working, unless it names one).
view
A timeline titled title that follows the log (read again when it changed, every second).
view_of
A timeline of the activities keep keeps (e.g. made: what the session produced, not every command), following the log.