Expand description
Git state of live sessions for the task manager: branch, head and dirty count of the
directory each session’s process runs in. Read with git itself (no parsing of .git);
a session outside a repository reports nothing. Unix reads the cwd from /proc/<pid>/cwd;
elsewhere the watcher reports nothing until a portable cwd source exists.
Structs§
- Lifecycle
- A session’s lifecycle as the task manager sees it (
task.session_state). - Nick
Binding - A binding core should learn (
task.session_bind): nick, m4a public key, and where the session lives when the node knows it. - Session
Git
Functions§
- bind_
nick - The m4a nick the node gave session
instance. - exited
- The session’s process exited.
- m4a_
key_ of - nick_of
- provider_
hint - The provider of a live session (from the frame publisher;
runningmay not know it). - read_
repo - Branch / head / dirty of the repository containing
dir. - read_
repo_ full - Like
read_repoplusaheadof the default branch. - read_
session_ repo - The git state of the repository a session worked in (
diritself, or thetask-*repository one level below it), in thetask.session_gitshape. - running
- The session’s process started.
- session_
key - The keystore issued the identity of proxy session
<incarnation>-<instance>: report the live session again with its public key. - session_
m4a_ key - The session account of
nickis open and its public key iskey(base64): remember it and tell core (on change). - set_
binding_ sink - set_
lifecycle_ sink - Install the lifecycle sink (once, at startup). Without one, nothing is sent.
- snapshot
- One snapshot of every live session that sits in a repository.