feat(agent): improve tiktoken initialization and device registration

- Configure tiktoken cache directory to isolate encoding files
- Add logging and timing for tiktoken initialization process
- Make Huawei CE and Ruijie Telnet device registration idempotent
- Add duplicate registration prevention with global flags
- Add logging for device type registration status
- Update .gitignore to exclude tiktoken cache files
This commit is contained in:
YueGuobin committed 2026-03-15 21:25:14 +08:00
1 parent 9a01e2194e
commit b71b323fd4
5 files changed
+67 -1

No files matched your search

+3
View File
@@ -72,3 +72,6 @@ venv
.claude/
!.claude/development.md # Exception: allow development docs
# PROJECT_CONTEXT.md # Commented out: allow tracking project context
# Tiktoken cache files
gns3server/agent/gns3_copilot/cache/tiktoken/