mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-07 01:02:55 +08:00
aaa7d17ef1
* feat: encapsulate logger (#6535) * feat: encapsulate logger * update engines --------- Co-authored-by: archer <545436317@qq.com> * next config * dev shell * Agent sandbox (#6532) * docs: switch to docs layout and apply black theme (#6533) * feat: add Gemini 3.1 models - Add gemini-3.1-pro-preview (released February 19, 2026) - Add gemini-3.1-flash-lite-preview (released March 3, 2026) Both models support: - 1M context window - 64k max response - Vision - Tool choice * docs: switch to docs layout and apply black theme - Change layout from notebook to docs - Update logo to icon + text format - Apply fumadocs black theme - Simplify global.css (keep only navbar and TOC styles) - Fix icon components to properly accept className props - Add mobile text overflow handling - Update Node engine requirement to >=20.x * doc * doc * lock * fix: ts * doc * doc --------- Co-authored-by: archer <archer@archerdeMac-mini.local> Co-authored-by: archer <545436317@qq.com> * Doc (#6493) * cloud doc * doc refactor * doc move * seo * remove doc * yml * doc * fix: tsconfig * fix: tsconfig * sandbox version (#6497) * sandbox version * add sandbox log * update lock * fix * fix: sandbox * doc * add console * i18n * sandbxo in agent * feat: agent sandbox * lock * feat: sandbox ui * sandbox check exists * env tempalte * doc * lock * sandbox in chat window * sandbox entry * fix: test * rename var * sandbox config tip * update sandbox lifecircle * update prompt * rename provider test * sandbox logger * yml --------- Co-authored-by: Archer <archer@fastgpt.io> Co-authored-by: archer <archer@archerdeMac-mini.local> * perf: sandbox error tip * Add sandbox limit and fix some issue (#6550) * sandbox in plan * fix: some issue * fix: test * editor default path * fix: comment * perf: sandbox worksapce * doc * perf: del sandbox * sandbox build * fix: test * fix: pr comment --------- Co-authored-by: Ryo <whoeverimf5@gmail.com> Co-authored-by: Archer <archer@fastgpt.io> Co-authored-by: archer <archer@archerdeMac-mini.local>
29 lines
825 B
Bash
Executable File
29 lines
825 B
Bash
Executable File
#!/bin/bash
|
||
set -e
|
||
|
||
echo "Building sandbox..."
|
||
|
||
# 清理旧的构建产物
|
||
rm -rf dist
|
||
|
||
# 编译主入口文件,打包所有依赖
|
||
echo "Building main entry..."
|
||
bun build src/index.ts --outdir dist --target bun --minify --packages=bundle
|
||
|
||
# 编译 JS worker,打包所有依赖
|
||
echo "Building JS worker..."
|
||
bun build src/pool/worker.ts --outdir dist --target bun --minify --packages=bundle
|
||
mv dist/worker.js dist/worker.ts
|
||
|
||
# 复制 Python worker(Python 不需要编译)
|
||
echo "Copying Python worker..."
|
||
cp src/pool/worker.py dist/worker.py
|
||
|
||
echo ""
|
||
echo "Build complete!"
|
||
echo " - index.js: $(du -h dist/index.js | cut -f1)"
|
||
echo " - worker.ts: $(du -h dist/worker.ts | cut -f1)"
|
||
echo " - worker.py: $(du -h dist/worker.py | cut -f1)"
|
||
echo ""
|
||
echo "✅ dist 目录现在是完全独立的,不需要 node_modules"
|