Synced from monorepo Changes: - Release a shell session's resources in one drop - Make the tools blocking-wait cap client-configurable and self-describing - Recognize API "exceeds budget" errors as context overflow - Retry /btw on model overload - Carry running background tasks and subagents across compaction - Require round-trip time for SDK liveness checks - Background-subagent completion reminders with a selectable delivery surface - Make a PTY shell reap itself until it reaches the registry - Recover the OS error code from a TLS-phase connection reset - Consume the attached-client signal and report why idle is withheld - Treat `.grok/sandbox.toml` edits as protected so auto mode prompts before writing - Surface history/search in the Ctrl+. cheatsheet and keep it working in history view - Delete sessions from the dashboard and welcome list - Release a session's activity record when the session ends - Stop charging auth-retry budget for fail-closed 401s; reset it across suspends - Scope skills watches on project vendor roots - Make [stop] cancel in-flight compaction - Make the leader soak measure the leader, not its harness Source-Revision: 8d69c91f02bcacf01e98d5aebbf2f92547c45738
50 lines
1.8 KiB
TOML
50 lines
1.8 KiB
TOML
[package]
|
|
license = "Apache-2.0"
|
|
name = "xai-grok-shell-base"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
description = "Foundation modules for the grok shell crate family: environment presets, CPU profiling, and process/filesystem utilities."
|
|
|
|
[features]
|
|
# Forwarded from shell; empty here (no local-ws code in this crate).
|
|
local-workspace = []
|
|
# Exposes `#[cfg(test)]`-only helpers (`env::EnvVarGuard`,
|
|
# `cpu_profile` test seams) to downstream crates' test targets. Enabled by
|
|
test-support = ["xai-grok-env/test-support"]
|
|
default-bazel = ["test-support"]
|
|
|
|
[dependencies]
|
|
anyhow = { workspace = true }
|
|
chrono = { workspace = true }
|
|
reqwest = { workspace = true, features = ["blocking"] }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
tokio = { workspace = true, features = ["sync"] }
|
|
tracing = { workspace = true }
|
|
url = { workspace = true }
|
|
xai-grok-config = { workspace = true }
|
|
xai-grok-env = { workspace = true }
|
|
xai-grok-shared = { workspace = true }
|
|
xai-grok-version = { workspace = true }
|
|
xai-tty-utils = { workspace = true }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = { workspace = true }
|
|
nix = { workspace = true }
|
|
# No `flamegraph` feature: that pulls in inferno (CDDL-1.0), which we keep out
|
|
# of shipped binaries. stop() emits folded stacks via pprof's public Report
|
|
# API instead; render externally with speedscope or inferno-flamegraph.
|
|
pprof = { workspace = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
tempfile = { workspace = true }
|
|
# `cfg(test)` in this crate does not enable features on dependencies, so the
|
|
# tests' `EnvVarGuard` re-export needs the feature turned on explicitly.
|
|
xai-grok-env = { workspace = true, features = ["test-support"] }
|
|
|
|
[lints]
|
|
workspace = true
|