aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-daemon/proto/history.proto
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-11 00:54:30 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-11 00:54:30 +0200
commit5c39e7cf284a1f6e9a1657f2deb44e359fc47eb8 (patch)
treec64baa8d5866c8e339eaf660dd3f94f30a3f7d8a /crates/atuin-daemon/proto/history.proto
parentchore: Somewhat simplify sync code (diff)
downloadatuin-5c39e7cf284a1f6e9a1657f2deb44e359fc47eb8.zip
chore: Move everything into one big crate
That helps remove duplicated code and rustc/cargo will now also show dead code correctly.
Diffstat (limited to 'crates/atuin-daemon/proto/history.proto')
-rw-r--r--crates/atuin-daemon/proto/history.proto81
1 files changed, 0 insertions, 81 deletions
diff --git a/crates/atuin-daemon/proto/history.proto b/crates/atuin-daemon/proto/history.proto
deleted file mode 100644
index 59c12471..00000000
--- a/crates/atuin-daemon/proto/history.proto
+++ /dev/null
@@ -1,81 +0,0 @@
-syntax = "proto3";
-package history;
-
-message StartHistoryRequest {
- // If people are still using my software in ~530 years, they can figure out a u128 migration
- uint64 timestamp = 1; // nanosecond unix epoch
- string command = 2;
- string cwd = 3;
- string session = 4;
- string hostname = 5;
- string author = 6;
- string intent = 7;
-}
-
-message EndHistoryRequest {
- string id = 1;
- int64 exit = 2;
- uint64 duration = 3;
-}
-
-message StartHistoryReply {
- string id = 1;
- string version = 2;
- uint32 protocol = 3;
-}
-
-message EndHistoryReply {
- string id = 1;
- uint64 idx = 2;
- string version = 3;
- uint32 protocol = 4;
-}
-
-message StatusRequest {}
-
-message StatusReply {
- bool healthy = 1;
- string version = 2;
- uint32 pid = 3;
- uint32 protocol = 4;
-}
-
-message ShutdownRequest {}
-
-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);
-}