| 1 | # Third-party notices |
| 2 | |
| 3 | Codewhale is MIT licensed (see [`LICENSE`](../LICENSE)). Portions of it are |
| 4 | adapted from other open-source projects. Their copyright and permission |
| 5 | notices are reproduced here, and each adapted file carries an attribution |
| 6 | header pointing back to its origin. |
| 7 | |
| 8 | Rust crate dependencies are covered by `cargo deny` (see [`deny.toml`](../deny.toml)) |
| 9 | and are not duplicated here; this file records source-level adaptations, where |
| 10 | the licence obligation travels with the code rather than with a package. |
| 11 | |
| 12 | --- |
| 13 | |
| 14 | ## pi-mono — credential resolution design |
| 15 | |
| 16 | - **Project:** pi-mono (<https://github.com/earendil-works/pi-mono>) |
| 17 | - **Author:** Mario Zechner |
| 18 | - **Licence:** MIT |
| 19 | - **Used in:** `crates/tui/src/credentials/` and |
| 20 | `crates/tui/src/config/credential_resolve.rs` |
| 21 | - **What was taken:** the design of `packages/ai/src/auth/` — one type-tagged |
| 22 | credential per provider, `modify` as the only serialized write path, a single |
| 23 | stated precedence rule enforced in one place, an injectable auth context, and |
| 24 | a resolution result that names its source. This is a design port into |
| 25 | idiomatic synchronous Rust over Codewhale's existing stores, not a |
| 26 | line-for-line copy; several doc comments are adapted closely. |
| 27 | |
| 28 | ``` |
| 29 | MIT License |
| 30 | |
| 31 | Copyright (c) 2025 Mario Zechner |
| 32 | |
| 33 | Permission is hereby granted, free of charge, to any person obtaining a copy |
| 34 | of this software and associated documentation files (the "Software"), to deal |
| 35 | in the Software without restriction, including without limitation the rights |
| 36 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 37 | copies of the Software, and to permit persons to whom the Software is |
| 38 | furnished to do so, subject to the following conditions: |
| 39 | |
| 40 | The above copyright notice and this permission notice shall be included in all |
| 41 | copies or substantial portions of the Software. |
| 42 | |
| 43 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 44 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 45 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 46 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 47 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 48 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 49 | SOFTWARE. |
| 50 | ``` |
| 51 | |
| 52 | --- |
| 53 | |
| 54 | ## Other source-level adaptations |
| 55 | |
| 56 | These predate this file. Each already names its origin in a header comment on |
| 57 | the adapting file; they are listed here so the set is discoverable from one |
| 58 | place. Their licence text has not been reproduced below — that is a gap, not a |
| 59 | claim that none is required. |
| 60 | |
| 61 | | Codewhale file | Adapted from | |
| 62 | | --- | --- | |
| 63 | | `crates/tui/src/tui/frame_rate_limiter.rs` | `codex-rs/tui/src/tui/frame_rate_limiter.rs`, [openai/codex](https://github.com/openai/codex) | |
| 64 | | `crates/tui/src/tui/display_refresh.rs` | Grok CLI's host display-refresh probe | |
| 65 | | `patches/unicode-width-0.2.2/` | vendored patch; upstream `LICENSE-MIT` retained in-tree | |
| 66 |