Luxe 0.1.0: a coding agent harness for the terminal. See README.md to get started and CHANGELOG.md for releases.
18 lines
749 B
Rust
18 lines
749 B
Rust
//! Integration: the permission engine gates tool dispatch end-to-end.
|
|
//!
|
|
//! Drives the real engine with a scripted provider that calls a `bash`-named tool, and asserts:
|
|
//! deny blocks the tool (model sees a denial), and the ask round-trip honors reject / once /
|
|
//! always (session-persisted) — exercising `Event::PermissionRequested` +
|
|
//! `Action::RespondPermission` and the `select!`-serviced turn.
|
|
//!
|
|
//! It also covers the half of the chain that runs *above* the engine: a `BeforeToolUse` hook's
|
|
//! rewrite and escalation, which reach the gate as arguments and as one more check rather than as
|
|
//! a second decision path.
|
|
|
|
#![allow(clippy::unwrap_used)]
|
|
|
|
mod ask_resolution;
|
|
mod fixtures;
|
|
mod hooks_and_guardrails;
|
|
mod rules_and_modes;
|