aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-daemon/proto
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@atuin.sh>2026-04-11 01:32:24 +0100
committerGitHub <noreply@github.com>2026-04-11 01:32:24 +0100
commit7e47f4df6ceb0fe7e32c166776e4e3b960039b67 (patch)
tree5e512c17c6c9d36c6e347a579a9baacc56832817 /crates/atuin-daemon/proto
parentchore: Prepare 18.14.0-beta.1 release (#3393) (diff)
downloadatuin-7e47f4df6ceb0fe7e32c166776e4e3b960039b67.zip
feat: add history tail for live monitoring view (#3389)
Useful for watching what agents are doing, or viewing live info from other machines. Regardless I am liking it for debugging ## Checks - [ ] I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle - [ ] I have checked that there are no existing pull requests for the same thing
Diffstat (limited to 'crates/atuin-daemon/proto')
-rw-r--r--crates/atuin-daemon/proto/history.proto27
1 files changed, 27 insertions, 0 deletions
diff --git a/crates/atuin-daemon/proto/history.proto b/crates/atuin-daemon/proto/history.proto
index 2a45b7cf..59c12471 100644
--- a/crates/atuin-daemon/proto/history.proto
+++ b/crates/atuin-daemon/proto/history.proto
@@ -46,9 +46,36 @@ message ShutdownReply {
bool accepted = 1;
}
+message TailHistoryRequest {}
+
+enum HistoryEventKind {
+ HISTORY_EVENT_KIND_UNSPECIFIED = 0;
+ HISTORY_EVENT_KIND_STARTED = 1;
+ HISTORY_EVENT_KIND_ENDED = 2;
+}
+
+message HistoryEntry {
+ uint64 timestamp = 1; // nanosecond unix epoch
+ string id = 2;
+ string command = 3;
+ string cwd = 4;
+ string session = 5;
+ string hostname = 6;
+ string author = 7;
+ string intent = 8;
+ int64 exit = 9;
+ int64 duration = 10;
+}
+
+message TailHistoryReply {
+ HistoryEventKind kind = 1;
+ HistoryEntry history = 2;
+}
+
service History {
rpc StartHistory(StartHistoryRequest) returns (StartHistoryReply);
rpc EndHistory(EndHistoryRequest) returns (EndHistoryReply);
+ rpc TailHistory(TailHistoryRequest) returns (stream TailHistoryReply);
rpc Status(StatusRequest) returns (StatusReply);
rpc Shutdown(ShutdownRequest) returns (ShutdownReply);
}