Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
eb7ac5d
chore: remove workspaces for each single tools
FinleyGe Oct 11, 2025
7a4352e
chore: remove workspaces for each single tools
FinleyGe Oct 13, 2025
ce8995a
chore: remove workspaces for each single tools
FinleyGe Oct 13, 2025
085d65f
chore: remove workspaces for each single tools
FinleyGe Oct 13, 2025
52935ca
chore: add locks to all tools
FinleyGe Oct 14, 2025
9ab58ac
chore: add remove-empty-tools.ts script
FinleyGe Oct 15, 2025
a067635
chore: tool init
FinleyGe Oct 17, 2025
31e10f6
fix: tsc
FinleyGe Oct 22, 2025
8002b52
chore: change all @type/bun latest
FinleyGe Oct 22, 2025
eb9aa72
chore: build all tools, generate bun.lock for each tool
FinleyGe Oct 22, 2025
7a90004
chore: update new tool script template
FinleyGe Oct 22, 2025
a821183
chore: build to marketplace-importable json
FinleyGe Oct 23, 2025
56db785
chore: build runtime dockerfile
FinleyGe Oct 23, 2025
e50ee35
chore: upload assets files to s3
FinleyGe Oct 26, 2025
74a8de3
chore: sdk types
FinleyGe Oct 27, 2025
d9ee244
fix: dev when sprase-checkout
FinleyGe Oct 27, 2025
c92ef1f
chore: confirmUpload can confirm a bunch of tools
FinleyGe Oct 27, 2025
1ee9763
chore: dev tool list parentId
FinleyGe Oct 27, 2025
c8c3102
feat: install directly
FinleyGe Oct 27, 2025
5923d07
fix: type
FinleyGe Oct 27, 2025
a129a5f
chore: deploy marketplace script
FinleyGe Oct 28, 2025
8ebc560
fix: external s3 ak/sk
FinleyGe Oct 28, 2025
0372259
fix: delete tools; init tools clean the dir
FinleyGe Oct 28, 2025
ef1b8ec
fix: install
FinleyGe Oct 28, 2025
9903771
chore: github action deploy marketplace data script
FinleyGe Oct 28, 2025
d3354be
feat: run tool openapi doc
FinleyGe Oct 28, 2025
09f83fe
fix: some logos
FinleyGe Oct 29, 2025
c0da166
chore: sparse-checkout
FinleyGe Oct 29, 2025
7118bcc
fix: only load active plugins
FinleyGe Oct 29, 2025
eca4570
feat: support auto delete plugin inactivated in 10mins
FinleyGe Oct 29, 2025
ff9c644
perf: tool install logic
FinleyGe Oct 29, 2025
45e7783
fix: somebug
FinleyGe Oct 29, 2025
03edb32
fix: dev tool filename
FinleyGe Oct 29, 2025
83bf767
fix: dev tool children icon
FinleyGe Oct 29, 2025
0abff9b
chore: dev contentType
FinleyGe Oct 29, 2025
6b7a530
fix: race condition for init tools
FinleyGe Oct 29, 2025
94abaa9
fix: dev icon
FinleyGe Oct 29, 2025
5b55104
chore: adjust
FinleyGe Oct 29, 2025
686b566
fix: fix minioKey
FinleyGe Oct 29, 2025
82ab729
chore: sdk publish 0.2.0
FinleyGe Oct 29, 2025
b8698a2
fix: children icon
FinleyGe Oct 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.deploy.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
S3_ENDPOINT=http://localhost:9000
S3_BUCKET=fastgpt-plugins
S3_ACCESS_KEY=minioadmin
S3_SECRET_KEY=minioadmin
4 changes: 4 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
sparse-checkout: |
/*
!modules/tool/packages
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/deploy-marketplace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Deploy to Marketplace

on:
push:
branches: [main]
workflow_dispatch:
inputs:
environment:
description: 'Deployment environment'
required: true
default: 'production'
type: choice
options:
- production
- staging

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.2.23

- name: Install root dependencies
run: bun install --frozen-lockfile

- name: Install tool package dependencies
run: bun run ./scripts/install-all.ts

- name: Build and deploy to marketplace
env:
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
S3_BUCKET: ${{ secrets.S3_BUCKET }}
run: bun run deploy:marketplace-data

- name: Notify deployment success
if: success()
run: |
echo "🚀 Marketplace deployment completed successfully!"
echo "Environment: ${{ github.event.inputs.environment || 'default' }}"
echo "Commit: ${{ github.sha }}"

- name: Notify deployment failure
if: failure()
run: |
echo "❌ Marketplace deployment failed!"
echo "Environment: ${{ github.event.inputs.environment || 'default' }}"
echo "Commit: ${{ github.sha }}"
exit 1
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ coverage
dist
node_modules
.DS_Store
.tsbuildinfo
*.tsbuildinfo
public/imgs/
pnpm-lock.yaml
.local
*.local
*.local.*
local/
.env.*
!.env.*.template
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN --mount=type=cache,target=/root/.bun \
done

# 构建
RUN bun run build
RUN bun run build:runtime

# --------- runner -----------
FROM node:22-alpine AS runner
Expand All @@ -25,7 +25,6 @@ RUN apk add --no-cache\

# copy running files
COPY --from=builder /app/dist/ ./dist/
COPY --from=builder /app/dist/public/ ./public/

ENV NODE_ENV=production
ENV PORT=3000
Expand Down
10 changes: 5 additions & 5 deletions README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ FastGPT 已有系统工具已经迁移到这个仓库,新工具也将在这个
## 系统工具基础设施

- [x] 工具独立运行
- [ ] 热插拔
- [x] 热插拔
- [x] 工具版本管理
- [x] SSE 流响应
- [ ] 更优雅的 Secret 配置
- [ ] 可视化调试
- [ ] 反向调用 FastGPT
- [ ] 工具版本管理
- [ ] SSE 流响应
- [ ] 更多安全策略

## 文档

- [系统工具开发指南](https://doc.tryfastgpt.ai/docs/introduction/guide/plugins/dev_system_tool)
- [设计文档](https://doc.tryfastgpt.ai/docs/introduction/development/design/design_plugin)
- [系统工具开发指南](https://doc.fastgpt.io/docs/introduction/guide/plugins/dev_system_tool)
- [设计文档](https://doc.fastgpt.io/docs/introduction/development/design/design_plugin)
- [开发规范](./dev_zh_CN.md)
Loading
Loading