Three provider kinds have a browser sign-in, but the add-provider dialog only accepted a pasted key. A per-account login record now runs the adapter's InteractiveLogin on the server, reports the instruction, URL, and code to the dialog, and stores the credential before the browser sees completion. The credential never reaches the client. The dialog gets a sign-in stage for flow kinds, with a link, a copyable code, and retry after failure. Closing the dialog cancels the flow. ChatGPT's callback lands on the server's loopback port, and the instruction names the port to forward.
58 lines
2.0 KiB
TOML
58 lines
2.0 KiB
TOML
[package]
|
|
name = "rhema-together"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
rust-version = "1.89"
|
|
license = "MIT"
|
|
description = "A shared room where people and a Rhema agent work on code together."
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
argon2 = "0.5"
|
|
async-stream = "0.3"
|
|
async-trait = "0.1"
|
|
axum = { version = "0.8", features = ["ws", "macros"] }
|
|
axum-extra = { version = "0.10", features = ["cookie"] }
|
|
base64 = "0.22"
|
|
chacha20poly1305 = "0.10"
|
|
flate2 = "1"
|
|
futures = "0.3"
|
|
hex = "0.4"
|
|
hmac = "0.12"
|
|
hyper = { version = "1", features = ["client", "http1"] }
|
|
hyper-util = { version = "0.1", features = ["tokio"] }
|
|
mime_guess = "2"
|
|
percent-encoding = "2"
|
|
rand = "0.8"
|
|
rhema-bash = { path = "../rhema/crates/rhema-bash" }
|
|
rhema-core = { path = "../rhema/crates/rhema-core" }
|
|
rhema-host-agent = { path = "../rhema/crates/rhema-host-agent" }
|
|
rhema-provider = { path = "../rhema/crates/rhema-provider" }
|
|
rhema-provider-chatgpt = { path = "../rhema/crates/rhema-provider-chatgpt" }
|
|
rhema-provider-copilot = { path = "../rhema/crates/rhema-provider-copilot" }
|
|
rhema-provider-mistral = { path = "../rhema/crates/rhema-provider-mistral" }
|
|
rhema-provider-registry = { path = "../rhema/crates/rhema-provider-registry" }
|
|
rhema-sandbox = { path = "../rhema/crates/rhema-sandbox" }
|
|
rhema-sandbox-ssh = { path = "../rhema/crates/rhema-sandbox-ssh" }
|
|
rhema-transcript = { path = "../rhema/crates/rhema-transcript" }
|
|
russh = { version = "0.65", default-features = false, features = ["ring", "rsa"] }
|
|
rusqlite = { version = "0.37", features = ["bundled"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
serde_yaml = "0.9"
|
|
sha2 = "0.10"
|
|
ssh-key = { version = "0.6", features = ["ed25519", "rand_core"] }
|
|
tar = "0.4"
|
|
thiserror = "2"
|
|
time = "0.3"
|
|
tokio = { version = "1", features = ["full"] }
|
|
tokio-stream = { version = "0.1", features = ["sync"] }
|
|
tower-http = { version = "0.6", features = ["fs", "trace", "compression-gzip"] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
uuid = { version = "1", features = ["v4"] }
|
|
|
|
[profile.release]
|
|
strip = true
|
|
codegen-units = 1
|