# Sources and third-party notices

## amlyczz/pi-feishu-link

- Source: https://github.com/amlyczz/pi-feishu-link
- Baseline: v0.2.3
- License: MIT; original copyright is retained in [LICENSE](LICENSE).
- This repository is a derivative of that project. Its Git history and pre-0.3.0 changelog are retained.
- Core retained components include authentication setup, daemon hosting, transport, persistent outbox, Pi SDK sessions, command routing, media handling and diagnostics.

## Tieboyh/pi-feishu-bot

- Source: https://github.com/Tieboyh/pi-feishu-bot
- Reviewed commit: `5a79aea8517a5f3b68b0a292df75dabfb83a5180`
- Reviewed files: `src/index.ts`, `src/messaging/event-routing.ts`, `src/sessions/conversation-lifecycle.ts`, `src/sessions/conversation-pool.ts`, `README.md`, `SECURITY.md`.
- Adapted patterns: gate output on an active request; associate callbacks with the current session; reserve work before idle eviction; release failed session setup; keep persisted data separate from connection lifecycle.
- Implemented in the existing `ConversationManager` and daemon lifecycle rather than importing the second bot or running two connectors. These changes are covered by local regression tests.
- Not ported: independent RPC processes, group-history prefetch, single-card streaming architecture, fixed-group Webhook notifications and its subagent policy.

MIT License

Copyright (c) 2026 Tieboyh

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

## Earlier upstream acknowledgements

pi-feishu-link credited AX1202/pi-feishu-lark, yangtuooc/pi-feishu-lark,
my-pi-scheduler and pi-agent-qqbot as architectural references. Those credits
remain in the README. Runtime dependencies retain their own licenses.
