返回 CodeWhale
THIRD_PARTY_NOTICES.md
根目录 / THIRD_PARTY_NOTICES.md
1 # Third-party notices
2
3 Source vendored or ported into this repository, beyond the crates resolved by
4 Cargo (whose licences are enforced by `deny.toml`).
5
6 ## pi (`pi-mono`) — MIT
7
8 `crates/config/src/device_code.rs` is a Rust port of pi's OAuth device-code
9 polling loop and verification-URI check:
10
11 - `packages/ai/src/auth/oauth/device-code.ts` (`pollOAuthDeviceCodeFlow`,
12 the RFC 8628 polling behaviours)
13 - `packages/ai/src/auth/oauth/xai.ts` (`validateVerificationUri`)
14
15 Upstream: <https://github.com/badlogic/pi-mono>
16
17 ```
18 MIT License
19
20 Copyright (c) 2025 Mario Zechner
21
22 Permission is hereby granted, free of charge, to any person obtaining a copy
23 of this software and associated documentation files (the "Software"), to deal
24 in the Software without restriction, including without limitation the rights
25 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26 copies of the Software, and to permit persons to whom the Software is
27 furnished to do so, subject to the following conditions:
28
29 The above copyright notice and this permission notice shall be included in all
30 copies or substantial portions of the Software.
31
32 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38 SOFTWARE.
39 ```
40
40 lines MARKDOWN