1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! Protocol v2: gRPC-based raw-data model.
//!
//! Unlike v1 (JSON-RPC with cell grids), v2 uses gRPC and provides
//! raw buffer data. Clients (TUI, GUI, Web) render their own views.
//!
//! # Philosophy
//!
//! - **Server = mechanism** (provides WHAT: buffer content, cursor, options)
//! - **Client = policy** (decides HOW: gutters, decorations, styling)
//!
//! The server has no concept of "screen" or "cell grid". It only knows about
//! buffers, windows (abstract containers), and editor state. How that gets
//! rendered is 100% client policy.
//!
//! # Services
//!
//! - [`InputService`] - Send keys to the editor
//! - [`StateService`] - Query editor state (mode, cursor, layout)
//! - [`BufferService`] - Access raw buffer content
//! - [`EditorService`] - Editor-level operations (resize, quit)
//! - [`ModuleService`] - Dynamic module management
//! - [`ServerService`] - Server management (kill, info)
//! - [`NotificationService`] - Server-to-client streaming
//!
//! # Usage
//!
//! ```ignore
//! // Server side
//! use reovim_protocol::v2::buffer_service_server::BufferServiceServer;
//!
//! // Client side
//! use reovim_protocol::v2::buffer_service_client::BufferServiceClient;
//! ```
//!
//! # Feature Flag
//!
//! This module requires the `grpc` feature:
//!
//! ```toml
//! reovim-protocol = { version = "0.9", features = ["grpc"] }
//! ```
// Generated code from tonic-build is wrapped in a submodule to isolate clippy allows
pub use *;