refactor: Relocate JavaScript source and Node.js test files to dedicated directories and extract OpenAI stream runtime tool call finalization logic.

This commit is contained in:
CJACK
2026-02-22 22:37:08 +08:00
parent d3b60edb6f
commit d4017b87c1
30 changed files with 201 additions and 192 deletions

View File

@@ -10,7 +10,7 @@ ENTRY_MAX=120
is_entry_file() {
case "$1" in
api/chat-stream.js|\
api/helpers/stream-tool-sieve.js|\
internal/js/helpers/stream-tool-sieve.js|\
webui/src/App.jsx|\
webui/src/components/AccountManager.jsx|\
webui/src/components/ApiTester.jsx|\

View File

@@ -5,4 +5,4 @@ ROOT_DIR="$(cd "$(dirname "$0")/../.." && pwd)"
cd "$ROOT_DIR"
./tests/scripts/check-node-split-syntax.sh
node --test api/helpers/stream-tool-sieve.test.js api/chat-stream.test.js api/compat/js_compat_test.js "$@"
node --test tests/node/stream-tool-sieve.test.js tests/node/chat-stream.test.js tests/node/js_compat_test.js "$@"