buddhi-cli RTK Module
Portions Copyright 2026 rtk-ai (https://github.com/rtk-ai/rtk)
Portions Copyright 2026 buddhi-cli contributors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

================================================================================
ATTRIBUTION & MODIFICATION STATEMENT
================================================================================
This software incorporates concepts, filter patterns, and declarative rules adapted
from the open-source portions of the rtk project (https://github.com/rtk-ai/rtk),
specifically from `src/filters/*.toml` and `src/cmds/`, released by rtk-ai under the
Apache License, Version 2.0.

MODIFICATIONS:
- Converted upstream TOML filter definitions into native declarative JSON format
  compatible with Python 3.10+ without third-party dependencies.
- Re-implemented execution runner, hook interception, streaming filter engine,
  and tracking logic in pure Python for integration with Google Antigravity and
  the Buddhi CLI Spec-Driven Development (SDD) harness.

EXCLUSION NOTICE:
No components or concepts from the `engine/` (compression engine) or `proxy/`
subdirectories of `rtk-ai/rtk`, which are licensed under the Business Source
License 1.1 (BUSL-1.1), are included, ported, or referenced in this software.

