github-copilot-sdk 1.0.32-preview.0

Rust SDK for programmatic control of the GitHub Copilot CLI via JSON-RPC.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Typed, same-checkout calls for the CLI host.
//!
//! These accessors grant no authority. Only the native CLI host can provision its connection.
//!
//! The SDK has no privileged startup helper, including with `local-runtime` enabled:
//!
//! ```compile_fail
//! use github_copilot_sdk::cli_host::start;
//! ```

use crate::Client;
pub use crate::generated::cli_api_types::*;

/// Typed internal calls on the CLI's existing connection. This grants no authority.
pub fn rpc(client: &Client) -> crate::generated::cli_rpc::ClientRpc<'_> {
    crate::generated::cli_rpc::ClientRpc { client }
}