Synced from monorepo Changes: - Shell: accept target response id on rewind execute - Shell: stamp response id on chat user message chunks - Worktree: optional rebuild and stale git registration cleanup in auto-GC - Worktree: kind-aware auto-GC TTLs and config knobs - Worktree: macOS process CWD scan and Unix PID liveness for GC guards - Worktree: automatic throttled GC on startup (Linux age-based; non-Linux dead-only) - Pager: add `[ui].combine_queued_prompts` to batch queued follow-ups - Shell: stop overwriting user skills - Tools: read markdown in `skills/` directories untruncated - `/usage` shows per-session token and dollar usage in the TUI - Security: prompt on environment-dumping `ps` variants - Security: always-safe `kubectl` no longer runs arbitrary kubeconfig credential plugins without permission - Tools: make scheduler deletion durable - Shell: add relocation storage primitives - Shell: give side model calls their own conversation ids - Fix five workflow-runtime bugs (budget, pause, cancel, reconnect) - Security: peel `env -S` / `--split-string` operands in the Bash permission gate (managed deny/ask) - Pager: expose doctor in the TUI - Security: block unauthorized RCE via abused safe commands - Pager idle watcher cue: "1 subagent still running" instead of "watching · 1 subagent" - Security: block `rg --pre` arbitrary code execution in auto-mode - Voice: diagnose silent-mic failures (macOS permission) and add doctor/terminal-setup Voice section - App builder deployer: `allow_forking` and `show_built_with_grok` - Pager: stop stacking duplicate "Worked for" markers on parked turns - Shell: support `max` as a distinct reasoning effort tier - Tools: serialize background `/loop` fires on the whole work unit - Shell: add working-directory relocation state primitives - Proto: `ClientToolResult` and `ChatConfig` client-side tools - Shell: model providers - Chat: select App Builder product on the Build path - Shell: attach author identity to feedback when the deployment opts in - Doctor: fix for SSH wrap setup - Workflow authoring skills: create-workflow and import-claude-workflow docs - Add read-only grok doctor - Sandbox: apply Landlock without a controlling TTY - Pager: recover image paste over grok wrap on headless remotes - Pager: make actions screen-mode aware - Shell: resume sessions when the working directory moves - Pager: centralize terminal diagnostics - Workspace: gate inline shell file access - Pager: centralize terminal probes - Pager: edit minimal prompts in an external editor - Pager: standardize backgrounding on Ctrl+B - Shell: recap rides the parent turn's prompt cache - Tools: add scheduler lifecycle version clock Source-Revision: 0f4d7c91b8b2b408333f6de1e8a76cb8eaa71899
96 lines
3.4 KiB
TOML
96 lines
3.4 KiB
TOML
[package]
|
|
name = "xai-grok-pager-bin"
|
|
version = "0.2.109"
|
|
edition.workspace = true
|
|
license = "Apache-2.0"
|
|
authors = ["xAI"]
|
|
default-run = "xai-grok-pager"
|
|
|
|
# Composition-root binary for the Grok Build TUI. The artifact is still named
|
|
# `xai-grok-pager`. This package exists so the binary can link both the pager
|
|
# library and the optional `xai-grok-pager-minimal` render mode: `minimal`
|
|
# depends on `xai-grok-pager`, so the pager library cannot depend back on it
|
|
# (cargo cycle). The binary installs the minimal-mode IoC hooks at startup.
|
|
[[bin]]
|
|
name = "xai-grok-pager"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# The pager library (all application logic + the public API main.rs drives).
|
|
xai-grok-pager = { path = "../xai-grok-pager" }
|
|
# Optional scrollback-native render mode, wired in via the fn-pointer seam.
|
|
xai-grok-pager-minimal = { path = "../xai-grok-pager-minimal" }
|
|
|
|
# Agent runtime + leader/stdio/headless entry points.
|
|
xai-grok-shell = { workspace = true }
|
|
xai-grok-update = { path = "../xai-grok-update" }
|
|
xai-grok-version = { workspace = true }
|
|
xai-grok-telemetry = { workspace = true }
|
|
xai-grok-workspace = { workspace = true }
|
|
xai-crash-handler = { path = "../xai-crash-handler" }
|
|
xai-acp-lib = { workspace = true }
|
|
|
|
# Async runtime + misc.
|
|
tokio = { workspace = true, features = [
|
|
"sync",
|
|
"rt",
|
|
"macros",
|
|
"rt-multi-thread",
|
|
"signal",
|
|
"io-util",
|
|
"io-std",
|
|
] }
|
|
tokio-util = { workspace = true, features = ["compat"] }
|
|
anyhow = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
dunce = { workspace = true }
|
|
semver = { workspace = true }
|
|
xai-tty-utils = { workspace = true }
|
|
xai-grok-config = { workspace = true }
|
|
xai-grok-sandbox = { path = "../xai-grok-sandbox", default-features = false }
|
|
rustls = { version = "0.23", default-features = false, features = [
|
|
"ring",
|
|
"logging",
|
|
"std",
|
|
"tls12",
|
|
] }
|
|
|
|
# Binary hardening: compile-time string + control-flow obfuscation.
|
|
obfstr = { workspace = true }
|
|
cryptify = { workspace = true }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = { workspace = true }
|
|
# Default allocator on Unix; gated by the `jemalloc` feature (see main.rs
|
|
# `#[global_allocator]`, cfg(all(feature = "jemalloc", unix))).
|
|
# `stats` is binary-scoped only (not workspace-wide) so this CLI jemalloc
|
|
# link gets --enable-stats for stats.allocated / stats.resident mallctl.
|
|
tikv-jemallocator = { workspace = true, optional = true, features = ["stats"] }
|
|
# Raw mallctl for the memory-cliff arena purge hook (see
|
|
# `purge_jemalloc_retained_pages` + the `install_release_hook` call in
|
|
# main.rs). Same version family as the
|
|
# allocator; adds no new build units beyond what tikv-jemallocator pulls in.
|
|
tikv-jemalloc-sys = { workspace = true, optional = true }
|
|
# Heap-profile / stats mallctl helpers (prof.active, prof.dump, epoch, stats.*).
|
|
tikv-jemalloc-ctl = { workspace = true, optional = true, features = ["stats", "use_std"] }
|
|
|
|
[dev-dependencies]
|
|
serial_test = { workspace = true }
|
|
# `PagerArgs::try_parse_from` in the CLI-parsing unit tests (needs the
|
|
# `clap::Parser` trait in scope).
|
|
clap = { workspace = true, features = ["derive"] }
|
|
|
|
[features]
|
|
default = [
|
|
"jemalloc",
|
|
"sandbox-enforce",
|
|
]
|
|
default-bazel = [
|
|
"jemalloc",
|
|
"sandbox-enforce",
|
|
]
|
|
jemalloc = ["dep:tikv-jemallocator", "dep:tikv-jemalloc-sys", "dep:tikv-jemalloc-ctl"]
|
|
sandbox-enforce = ["xai-grok-pager/sandbox-enforce"]
|
|
release-dist = ["xai-grok-pager/release-dist"]
|