grok-build-upstream-mirror/crates/codegen/xai-grok-pager-pty-harness/Cargo.toml
grokkybara[bot] a5727c5960 Synced from monorepo
Changes:
- Non-blocking coding-data sharing upsell banner
- Consolidate remediation in Doctor
- Auto mode defers fail-closed gate asks to the classifier
- Coalesce marketplace list fetches
- Allow removing a marketplace source by name
- Contain hung git marketplace sources (timeouts, non-blocking refresh, unbrick modal)
- Label failed workspace RPCs with error_kind
- Drop redundant explicit tonic/prost deps from xai-grok-shell
- Report real exit codes for completed background shells
- Narrow the date-rollover reminder to date-bearing templates
- Wire toolOverrides through the session and agent
- Security: Bash(git:*) allowlist matches whole command chain by prefix
- Split prompt-trigger telemetry and record classifier provenance
- Raise connectors-manager timeout to 60s
- Auto classifier honors recorded approvals for repeat actions
- Apply doctor fixes in the TUI
- Auto-mode classifier timeouts prompt instead of silently denying
- Scope subagent completion drains to the owning session
- Add the toolOverrides wire types
- Set client_identifier=grok-agent-sdk
- Accept both spellings of the workspace-teleport kill switch
- Persist one-shot occurrence journal
- Stop turns that poll the exact same tool call 16x in a row
- Copy compaction checkpoint files when forking sessions
- Auto-focus permission prompt from scrollback
- Esc cancels the running turn in non-vim and minimal modes
- List Ctrl+Z undo and redo in keyboard shortcuts
- Out-of-process macOS mic capture
- Show active auth mode on session-info
- Install the npm binary under $GROK_HOME
- Remove hover/click dead zones between dashboard items
- Route startup warnings to doctor
- Document [feedback.user] author identity config
- Extend bang command timeout
- Close combine-queued edit-hold race
- Integrate relocation recovery
- Expose privacy notice rollout flag
- Break harness discovery ref cycle so connections can idle-evict
- Shift/Alt+Enter inserts newline when editing a queued prompt
- Gate project Claude permissions on folder trust
- Echo response.create.event_id on response.created
- Toast when session creation fails from disk full
- Add shared test process lifecycle
- Enable dynamic workflows by default
- Add relocation transaction state machine
- Add shared test sandbox
- Surface auth failures on model-switch compact
- Persist durable scheduler expiry
- Confirm before removing extensions-modal items
- Re-run compact and prompt after login when compact hit expired auth
- Recap sends hosted tools under backend search
2026-07-22 19:22:27 +01:00

92 lines
2.8 KiB
TOML

[package]
name = "xai-grok-pager-pty-harness"
version = "0.1.0"
edition.workspace = true
license = "Apache-2.0"
authors = ["xAI"]
description = "Shared PTY harness + scenario library for xai-grok-pager e2e tests and benchmarks."
publish = false
# Not imported into the production pager binary — the pager's Cargo.toml
# only references this crate via [dev-dependencies], so `cargo build -p
# xai-grok-pager` never compiles any of this.
[dependencies]
# Headless PTY controller with alacritty_terminal-based terminal emulation,
# vim key notation parser, styled/HTML output, and HTTP server.
dunce = { workspace = true }
ptyctl = { path = "../ptyctl" }
# PTY spawning + input/output
portable-pty = { workspace = true }
# Real OS signals (libc::kill) for the SIGINT/SIGTERM/SIGHUP e2e path.
libc = { workspace = true }
# alacritty_terminal re-exports `vte` which timing.rs uses for frame marker
# detection. screen.rs uses ptyctl's Terminal (backed by alacritty_terminal)
# instead of the old vt100 dependency.
alacritty_terminal = { workspace = true }
# Shared mock inference server used to drive content into the pager
# during scenarios (content.rs wraps it).
xai-grok-test-support = { workspace = true }
# Async runtime + common helpers shared with the pager.
tokio = { workspace = true, features = [
"sync",
"rt",
"macros",
"rt-multi-thread",
"io-util",
"io-std",
"time",
"net",
] }
anyhow = { workspace = true }
base64 = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
serde_yaml = { workspace = true }
image = { workspace = true, features = ["png"] }
tempfile = { workspace = true }
xai-tty-utils = { workspace = true }
clap = { workspace = true, features = ["derive"] }
[dev-dependencies]
reqwest = { workspace = true }
tracing-subscriber = { workspace = true }
tracing = { workspace = true }
[[test]]
name = "env_op_compile"
path = "tests/env_op_compile.rs"
[[bin]]
name = "pty-scenario"
path = "src/bin/pty_scenario.rs"
# scroll-matrix — scroll validation matrix sweep. The curated tier also runs
# in CI (tests/scroll_matrix_curated.rs); this binary is the local full-sweep
# and single-cell-rerun entry point.
[[bin]]
name = "scroll-matrix"
path = "src/bin/scroll_matrix.rs"
# pty_bench scenario runner — produces a standalone binary the CI pipeline
# pre-compiles and executes directly against a release pager artifact.
# Lives here (not in the pager crate) so it can share the harness source
# without any path hacks.
[[bench]]
name = "pty_bench"
path = "benches/pty_bench.rs"
harness = false
# paste_latency — clipboard paste latency CLI (macOS-only at runtime: drives
# the REAL host pasteboard). Standalone so `--binary` can target old pager
# artifacts for before/after comparisons.
[[bench]]
name = "paste_latency"
path = "benches/paste_latency.rs"
harness = false