mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-02 17:32:39 +00:00
Require a single user message, reject mismatched models, document the OpenAI-compatible API, and exclude api/ from core agent line counts so the interface matches nanobot's minimal fixed-session runtime.
22 lines
832 B
Bash
Executable File
22 lines
832 B
Bash
Executable File
#!/bin/bash
|
|
# Count core agent lines (excluding channels/, cli/, api/, providers/ adapters)
|
|
cd "$(dirname "$0")" || exit 1
|
|
|
|
echo "nanobot core agent line count"
|
|
echo "================================"
|
|
echo ""
|
|
|
|
for dir in agent agent/tools bus config cron heartbeat session utils; do
|
|
count=$(find "nanobot/$dir" -maxdepth 1 -name "*.py" -exec cat {} + | wc -l)
|
|
printf " %-16s %5s lines\n" "$dir/" "$count"
|
|
done
|
|
|
|
root=$(cat nanobot/__init__.py nanobot/__main__.py | wc -l)
|
|
printf " %-16s %5s lines\n" "(root)" "$root"
|
|
|
|
echo ""
|
|
total=$(find nanobot -name "*.py" ! -path "*/channels/*" ! -path "*/cli/*" ! -path "*/api/*" ! -path "*/command/*" ! -path "*/providers/*" ! -path "*/skills/*" | xargs cat | wc -l)
|
|
echo " Core total: $total lines"
|
|
echo ""
|
|
echo " (excludes: channels/, cli/, api/, command/, providers/, skills/)"
|