Initial public release
Luxe 0.1.0: a coding agent harness for the terminal. See README.md to get started and CHANGELOG.md for releases.
This commit is contained in:
17
crates/luxe-core/tests/permission/main.rs
Normal file
17
crates/luxe-core/tests/permission/main.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
//! 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;
|
||||
Reference in New Issue
Block a user