Files
FastGPT/deploy
Jon 57a505f837 Agent skill dev (#6668)
* chore: Rename service & container names for consistency in Docker configs (#6710)

* chore: Rename container names for consistency in Docker configs

* chore: Rename service names for consistency in Docker configs

chore: Update OpenSandbox versions and image repositories (#6709)

* chore: Update OpenSandbox versions and image repositories

* yml version

* images

* init yml

* port

---------

Co-authored-by: archer <545436317@qq.com>

refactor(chat): optimize sandbox status logic and decouple UI/Status hooks (#6713)

* refactor(chat): optimize sandbox status logic and decouple UI/Status hooks

* fix: useRef, rename onClose to afterClose

Update .env.template (#6720)

aiproxy默认的请求地址改成http协议

feat: comprehensive agent skill management and sandbox infrastructure optimization

- Skill System: Implemented a full skill management module including CRUD operations, folder organization, AI-driven skill generation, and versioning (switch/update).
- Sandbox Infrastructure: Introduced 'volume-manager' for PVC and Docker volume lifecycle management, replacing the MinIO sync-agent for better data persistence.
- Workflow Integration: Enhanced the Agent node to support skill selection and configuration, including new UI components and data normalization.
- Permission Management: Added granular permission controls for skills, supporting collaborators, owner transfers, and permission inheritance.
- UI/UX: Added a dedicated Skill dashboard, sandbox debug interface (terminal, logs, and iframe proxy), and comprehensive i18n support.
- Maintenance: Migrated Docker services to named volumes, optimized sandbox instance limits, and improved error handling for sandbox providers.

Co-authored-by: chanzhi82020 <chenzhi@sangfor.com.cn>
Co-authored-by: lavine77
Signed-off-by: Jon <ljp@sangfor.com.cn>

feat: hide skill

prettier

* perf: hide skill code

* fix: ts

* lock

* perf: tool code

* fix: ts

* lock

* fix: test

* fix: openapi

* lock

* fix: test

* null model

---------

Co-authored-by: archer <545436317@qq.com>
2026-04-07 22:52:03 +08:00
..
2026-04-07 22:52:03 +08:00
2026-04-07 22:52:03 +08:00
2026-04-07 22:52:03 +08:00
2026-04-07 22:52:03 +08:00
2026-04-07 22:52:03 +08:00

更新 docker compose 脚本

正常更新(不动服务,只改版本)

  1. 更新 args.json 中的版本号
  2. FastGPT 目录执行 pnpm run gen:deploy 即可

加服务

比如要添加 example 服务:

  1. init.mjsServices Enum 中添加 fastgptExample: fastgpt-example
  2. args.json 中添加 image 和 tag, 注意 args.jsonkey 值,要和 init.mjsvalue 值一致。
  3. 更新 templates/docker-compose.[dev|prod].yml 文件,把服务的相关配置加进去,并且:服务的 image 改为 ${{example.image}}:${{example.tag}}

加向量库

比如添加 exampleDB 向量库:

  1. 添加 vector service 配置在 templates/vector 下面,例如 templates/vector/exampleDB.txt 内容可以参考其他 txt注意缩进image 名字也要替换成 ${{exampleDB.image}}:${{exampleDB:tag}}, service name 必须是 vectorDB
  2. args.json 中添加 exampleDB 的配置
  3. init.mjs vector enum 中添加 vector
  4. init.mjs 中添加 vector 的相关配置:
const vector = {
  // pg, milvus, ob ...
  vector: {
    db: '', // 空即可
    config: `/
  VECTOR_URL:vectordb://xxxxx
    `, //注意 第一行反引号后面的 / 不能少(去除首个换行符); 左边的两个空格的缩进不能变,否则会语法错误
    extra: `` // 额外的配置,可以看 ob 的那个,需要一个 config 字段引入 init.sql
  }
}
  1. init.mjs 读入 vector 配置
{ // 这是个块作用域, 直接搜 read in Vectors
// read in Vectors
// pg, ob ....
const vectordb = fs.readFileSync(path.join(process.cwd(), 'templates', 'vector', 'vector.txt'));
vector.vector.db = String(vectordb);
}
  1. init.mjs 最后生成的时候,需要添加
    fs.promises.writeFile(
      path.join(process.cwd(), 'docker', 'cn', 'docker-compose.vector.yml'),
      replace(template, 'cn', VectorEnum.vector)
    ),
    fs.promises.writeFile(
      path.join(process.cwd(), 'docker', 'global', 'docker-compose.ziliiz.yml'),
      replace(template, 'global', VectorEnum.vector)
    ),

yaml 的锚点和引用

& 标志一个锚点

x-share-config: &x-share-config 'I am the config content'
x-share-config-list: &x-share-config-list
  key1: value
  key2: value

* 引用一个锚点

some_other_example: *x-share-config-list