Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 16 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,22 @@ jobs:
steps:
- uses: actions/checkout@v4

# python-version sets UV_PYTHON for every later step, which overrides
# .python-version. Installing the interpreter alone does not: uv sync
# and uv run would keep using the pin in that file.
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: uv sync --all-extras

- name: Confirm the interpreter
run: |
uv run python -c "import sys; got=f'{sys.version_info[0]}.{sys.version_info[1]}'; want='${{ matrix.python-version }}'; assert got==want, f'{got} != {want}: {sys.version}'"

- name: Type check (mypy, strict)
run: uv run mypy src/fim_one/

Expand Down Expand Up @@ -84,17 +89,22 @@ jobs:
steps:
- uses: actions/checkout@v4

# The smoke's backend is `uv run python` (see frontend/playwright.config.ts).
# That follows UV_PYTHON. python-version 3.12 is the interpreter this job
# means to run; .python-version must not redirect it.
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true

- name: Set up Python
run: uv python install 3.12
python-version: "3.12"

- name: Install backend dependencies
run: uv sync --all-extras

- name: Confirm the e2e interpreter
run: |
uv run python -c "import sys; got=f'{sys.version_info[0]}.{sys.version_info[1]}'; assert got=='3.12', sys.version"

- uses: pnpm/action-setup@v4
with:
package_json_file: frontend/package.json
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ This avoids wasted effort if the direction doesn't align.

### Prerequisites

- Python 3.11+
- Python 3.11.5+
- [uv](https://docs.astral.sh/uv/) (Python package manager)
- Node.js 20+ with [pnpm](https://pnpm.io/)
- Git
Expand Down
4 changes: 2 additions & 2 deletions GEMINI.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
FIM One is an AI agent platform for enterprise systems: agents plan and execute tasks across existing systems (ERP, CRM, OA, databases) through APIs, database connections, and MCP servers.

### Core Architecture
- **Backend**: FastAPI (Python 3.11+) asynchronous framework.
- **Backend**: FastAPI (Python 3.11.5+) asynchronous framework.
- **Agent Core**: ReAct reasoning loops and dynamic DAG planning with concurrent execution.
- **Provider Agnostic**: Protocol-first architecture using LiteLLM to support OpenAI, Anthropic, DeepSeek, Ollama, etc.
- **RAG Pipeline**: LanceDB vector store with hybrid retrieval (FTS + RRF) and reranking.
Expand All @@ -15,7 +15,7 @@ FIM One is an AI agent platform for enterprise systems: agents plan and execute
## Building and Running

### Prerequisites
- **Python 3.11+** with `uv` package manager.
- **Python 3.11.5+** with `uv` package manager.
- **Node.js 18+** with `pnpm`.
- **Docker** (optional, for sandboxed code execution).

Expand Down
6 changes: 3 additions & 3 deletions README.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![FIM One Banner](./assets/banner.jpg)

![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue)
![Python 3.11.5+](https://img.shields.io/badge/python-3.11.5%2B-blue)
[![CI](https://github.com/fim-ai/fim-one/actions/workflows/test.yml/badge.svg)](https://github.com/fim-ai/fim-one/actions/workflows/test.yml)
![License](https://img.shields.io/badge/license-Source%20Available-orange)
[![Discord](https://img.shields.io/discord/1480638265206771742?logo=discord&label=discord)](https://discord.gg/z64czxdC7z)
Expand Down Expand Up @@ -93,7 +93,7 @@ docker compose logs -f # view logs

### Lokale Entwicklung

Voraussetzungen: Python 3.11+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.
Voraussetzungen: Python 3.11.5+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.

```bash
git clone https://github.com/fim-ai/fim-one.git && cd fim-one
Expand Down Expand Up @@ -209,7 +209,7 @@ JINA_API_KEY=jina_... # unlocks web tools + RAG

| Layer | Technology |
| ----------- | ------------------------------------------------------------------- |
| Backend | Python 3.11+, FastAPI, SQLAlchemy, Alembic, asyncio |
| Backend | Python 3.11.5+, FastAPI, SQLAlchemy, Alembic, asyncio |
| Frontend | Next.js 15, React 18, Tailwind CSS, shadcn/ui, React Flow v12 |
| AI / RAG | OpenAI-compatible LLMs, Jina AI (embed + search), LanceDB |
| Database | SQLite (dev) / PostgreSQL (prod) |
Expand Down
6 changes: 3 additions & 3 deletions README.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Bannière FIM One](./assets/banner.jpg)

![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue)
![Python 3.11.5+](https://img.shields.io/badge/python-3.11.5%2B-blue)
[![CI](https://github.com/fim-ai/fim-one/actions/workflows/test.yml/badge.svg)](https://github.com/fim-ai/fim-one/actions/workflows/test.yml)
![License](https://img.shields.io/badge/license-Source%20Available-orange)
[![Discord](https://img.shields.io/discord/1480638265206771742?logo=discord&label=discord)](https://discord.gg/z64czxdC7z)
Expand Down Expand Up @@ -95,7 +95,7 @@ docker compose logs -f # view logs

### Développement local

Prérequis : Python 3.11+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.
Prérequis : Python 3.11.5+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.

```bash
git clone https://github.com/fim-ai/fim-one.git && cd fim-one
Expand Down Expand Up @@ -211,7 +211,7 @@ JINA_API_KEY=jina_... # unlocks web tools + RAG

| Layer | Technology |
| ----------- | ------------------------------------------------------------------- |
| Backend | Python 3.11+, FastAPI, SQLAlchemy, Alembic, asyncio |
| Backend | Python 3.11.5+, FastAPI, SQLAlchemy, Alembic, asyncio |
| Frontend | Next.js 15, React 18, Tailwind CSS, shadcn/ui, React Flow v12 |
| AI / RAG | OpenAI-compatible LLMs, Jina AI (embed + search), LanceDB |
| Database | SQLite (dev) / PostgreSQL (prod) |
Expand Down
6 changes: 3 additions & 3 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![FIM One バナー](./assets/banner.jpg)

![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue)
![Python 3.11.5+](https://img.shields.io/badge/python-3.11.5%2B-blue)
[![CI](https://github.com/fim-ai/fim-one/actions/workflows/test.yml/badge.svg)](https://github.com/fim-ai/fim-one/actions/workflows/test.yml)
![License](https://img.shields.io/badge/license-Source%20Available-orange)
[![Discord](https://img.shields.io/discord/1480638265206771742?logo=discord&label=discord)](https://discord.gg/z64czxdC7z)
Expand Down Expand Up @@ -93,7 +93,7 @@ docker compose logs -f # view logs

### ローカル開発

前提条件: Python 3.11+、[uv](https://docs.astral.sh/uv/)、Node.js 18+、pnpm。
前提条件: Python 3.11.5+、[uv](https://docs.astral.sh/uv/)、Node.js 18+、pnpm。

```bash
git clone https://github.com/fim-ai/fim-one.git && cd fim-one
Expand Down Expand Up @@ -209,7 +209,7 @@ JINA_API_KEY=jina_... # unlocks web tools + RAG

| Layer | Technology |
| ----------- | ------------------------------------------------------------------- |
| Backend | Python 3.11+, FastAPI, SQLAlchemy, Alembic, asyncio |
| Backend | Python 3.11.5+, FastAPI, SQLAlchemy, Alembic, asyncio |
| Frontend | Next.js 15, React 18, Tailwind CSS, shadcn/ui, React Flow v12 |
| AI / RAG | OpenAI-compatible LLMs, Jina AI (embed + search), LanceDB |
| Database | SQLite (dev) / PostgreSQL (prod) |
Expand Down
6 changes: 3 additions & 3 deletions README.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![FIM One 배너](./assets/banner.jpg)

![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue)
![Python 3.11.5+](https://img.shields.io/badge/python-3.11.5%2B-blue)
[![CI](https://github.com/fim-ai/fim-one/actions/workflows/test.yml/badge.svg)](https://github.com/fim-ai/fim-one/actions/workflows/test.yml)
![License](https://img.shields.io/badge/license-Source%20Available-orange)
[![Discord](https://img.shields.io/discord/1480638265206771742?logo=discord&label=discord)](https://discord.gg/z64czxdC7z)
Expand Down Expand Up @@ -93,7 +93,7 @@ docker compose logs -f # view logs

### 로컬 개발

필수 요구사항: Python 3.11+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.
필수 요구사항: Python 3.11.5+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.

```bash
git clone https://github.com/fim-ai/fim-one.git && cd fim-one
Expand Down Expand Up @@ -209,7 +209,7 @@ JINA_API_KEY=jina_... # unlocks web tools + RAG

| Layer | Technology |
| ----------- | ------------------------------------------------------------------- |
| Backend | Python 3.11+, FastAPI, SQLAlchemy, Alembic, asyncio |
| Backend | Python 3.11.5+, FastAPI, SQLAlchemy, Alembic, asyncio |
| Frontend | Next.js 15, React 18, Tailwind CSS, shadcn/ui, React Flow v12 |
| AI / RAG | OpenAI-compatible LLMs, Jina AI (embed + search), LanceDB |
| Database | SQLite (dev) / PostgreSQL (prod) |
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![FIM One Banner](./assets/banner.jpg)

![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue)
![Python 3.11.5+](https://img.shields.io/badge/python-3.11.5%2B-blue)
[![CI](https://github.com/fim-ai/fim-one/actions/workflows/test.yml/badge.svg)](https://github.com/fim-ai/fim-one/actions/workflows/test.yml)
![License](https://img.shields.io/badge/license-Source%20Available-orange)
[![Discord](https://img.shields.io/discord/1480638265206771742?logo=discord&label=discord)](https://discord.gg/z64czxdC7z)
Expand Down Expand Up @@ -93,7 +93,7 @@ docker compose logs -f # view logs

### Local Development

Prerequisites: Python 3.11+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.
Prerequisites: Python 3.11.5+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.

```bash
git clone https://github.com/fim-ai/fim-one.git && cd fim-one
Expand Down Expand Up @@ -209,7 +209,7 @@ JINA_API_KEY=jina_... # unlocks web tools + RAG

| Layer | Technology |
| ----------- | ------------------------------------------------------------------- |
| Backend | Python 3.11+, FastAPI, SQLAlchemy, Alembic, asyncio |
| Backend | Python 3.11.5+, FastAPI, SQLAlchemy, Alembic, asyncio |
| Frontend | Next.js 15, React 18, Tailwind CSS, shadcn/ui, React Flow v12 |
| AI / RAG | OpenAI-compatible LLMs, Jina AI (embed + search), LanceDB |
| Database | SQLite (dev) / PostgreSQL (prod) |
Expand Down
6 changes: 3 additions & 3 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![FIM One Banner](./assets/banner.jpg)

![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue)
![Python 3.11.5+](https://img.shields.io/badge/python-3.11.5%2B-blue)
[![CI](https://github.com/fim-ai/fim-one/actions/workflows/test.yml/badge.svg)](https://github.com/fim-ai/fim-one/actions/workflows/test.yml)
![License](https://img.shields.io/badge/license-Source%20Available-orange)
[![Discord](https://img.shields.io/discord/1480638265206771742?logo=discord&label=discord)](https://discord.gg/z64czxdC7z)
Expand Down Expand Up @@ -93,7 +93,7 @@ docker compose logs -f # view logs

### 本地开发

前置条件:Python 3.11+、[uv](https://docs.astral.sh/uv/)、Node.js 18+、pnpm。
前置条件:Python 3.11.5+、[uv](https://docs.astral.sh/uv/)、Node.js 18+、pnpm。

```bash
git clone https://github.com/fim-ai/fim-one.git && cd fim-one
Expand Down Expand Up @@ -209,7 +209,7 @@ JINA_API_KEY=jina_... # unlocks web tools + RAG

| Layer | Technology |
| ----------- | ------------------------------------------------------------------- |
| Backend | Python 3.11+, FastAPI, SQLAlchemy, Alembic, asyncio |
| Backend | Python 3.11.5+, FastAPI, SQLAlchemy, Alembic, asyncio |
| Frontend | Next.js 15, React 18, Tailwind CSS, shadcn/ui, React Flow v12 |
| AI / RAG | OpenAI-compatible LLMs, Jina AI (embed + search), LanceDB |
| Database | SQLite (dev) / PostgreSQL (prod) |
Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ Format follows [Keep a Changelog](https://keepachangelog.com/). Versions corresp

### Security

- **A client the sandbox proxy turns away receives the refusal.** The proxy used to close the socket while the request was still unread, which aborted the connection, so the client saw a reset instead of the 403, 401, 502 or 503. It now finishes that response before closing. Nothing that was refused is forwarded.
- **Denial-of-service fixes in HTML selection and trace-context parsing.** Document and page selection uses soupsieve 4.1.3 or newer, and inbound trace headers are parsed with OpenTelemetry API 1.45.2 or newer. FIM One now requires Python 3.11.5 or newer, because no patched soupsieve release installs on an earlier 3.11.
- **Only system administrators can configure stdio MCP servers, and only theirs are started.** A stdio MCP server is a command run inside the application container. Creating, editing, copying, testing and publishing one requires a system administrator, and a stdio server is started only while its owner is an active administrator, wherever it is used (chats, workflow steps, the step editor's tool listing, the test-connection button). Stdio servers owned by other users are kept, shown as "Not started", and can be deleted or turned into HTTP servers by their owner. `ALLOWED_STDIO_COMMANDS` is documented as what it is: a list of command names, not a security boundary. The `MCP_SERVERS` environment variable is no longer read. See [Security → Code execution and the Docker socket](/security#code-execution-and-the-docker-socket).
- **A user's own credential for a shared stdio MCP server only fills in the variables its administrator declared.** Users who are not administrators can set the environment variables the administrator listed on the server and no others, and never one that decides what a process loads, fetches or trusts (path, loader, proxy and certificate settings). A credential saved earlier that does not fit is refused when the server is used. Administrators: declare every variable users should fill in.
- **The application container no longer holds the Docker socket.** The socket belongs to a `docker-socket-proxy` service that starts sandbox containers and nothing else: a configured image, the conversation's workspace as the only mount, no network, one fixed non-root user, no capabilities, bounded memory, CPU and processes, removed on exit. The proxy sends the Docker daemon requests it builds itself from the values it checked, and asks for a token that only the API process holds. The application image contains no Docker CLI. **Operators must update `docker-compose.yml`**; the steps are in [Security → Upgrading an existing deployment](/security#upgrading-an-existing-deployment).
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: "Development conventions, type safety, testing, and code quality st

## Setup

Prerequisites: Python 3.11+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.
Prerequisites: Python 3.11.5+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.

```bash
git clone https://github.com/fim-ai/fim-one.git && cd fim-one
Expand Down
2 changes: 1 addition & 1 deletion docs/de/contributing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: "Entwicklungskonventionen, Typsicherheit, Tests und Code-Qualitäts

## Einrichtung

Voraussetzungen: Python 3.11+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.
Voraussetzungen: Python 3.11.5+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.

```bash
git clone https://github.com/fim-ai/fim-one.git && cd fim-one
Expand Down
4 changes: 2 additions & 2 deletions docs/de/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ description: "Häufig gestellte Fragen zu FIM One — Setup, Funktionen, Lizenzi

| Resource | Requirement |
|----------|-------------|
| **Python** | 3.11+ |
| **Python** | 3.11.5+ |
| **RAM** | 2 GB minimum |
| **Disk** | 1 GB free (plus space for uploaded documents and vector store) |
| **Node.js** | 18+ (for local development) |
Expand Down Expand Up @@ -219,7 +219,7 @@ description: "Häufig gestellte Fragen zu FIM One — Setup, Funktionen, Lizenzi
<Accordion title="Was ist der Tech Stack?">
| Schicht | Technologie |
|-------|-----------|
| **Backend** | Python 3.11+, FastAPI, SQLAlchemy, Alembic, asyncio |
| **Backend** | Python 3.11.5+, FastAPI, SQLAlchemy, Alembic, asyncio |
| **Frontend** | Next.js, React, TypeScript, Tailwind CSS, shadcn/ui |
| **LLM-Integration** | OpenAI-kompatible API (anbieterunabhängig) |
| **Vektorsuche** | LanceDB + Jina embeddings |
Expand Down
2 changes: 1 addition & 1 deletion docs/de/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Data is persisted in the bind-mounted `./data` and `./uploads` directories and i

## Option B: Local Development

Prerequisites: Python 3.11+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.
Prerequisites: Python 3.11.5+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.

```bash
git clone https://github.com/fim-ai/fim-one.git
Expand Down
4 changes: 2 additions & 2 deletions docs/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ description: "Frequently asked questions about FIM One — setup, features, lice

| Resource | Requirement |
|----------|-------------|
| **Python** | 3.11+ |
| **Python** | 3.11.5+ |
| **RAM** | 2 GB minimum |
| **Disk** | 1 GB free (plus space for uploaded documents and vector store) |
| **Node.js** | 18+ (for local development) |
Expand Down Expand Up @@ -219,7 +219,7 @@ description: "Frequently asked questions about FIM One — setup, features, lice
<Accordion title="What is the tech stack?">
| Layer | Technology |
|-------|-----------|
| **Backend** | Python 3.11+, FastAPI, SQLAlchemy, Alembic, asyncio |
| **Backend** | Python 3.11.5+, FastAPI, SQLAlchemy, Alembic, asyncio |
| **Frontend** | Next.js, React, TypeScript, Tailwind CSS, shadcn/ui |
| **LLM integration** | OpenAI-compatible API (provider-agnostic) |
| **Vector search** | LanceDB + Jina embeddings |
Expand Down
2 changes: 1 addition & 1 deletion docs/fr/contributing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: "Conventions de développement, sécurité des types, tests et norm

## Configuration

Prérequis : Python 3.11+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.
Prérequis : Python 3.11.5+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.

```bash
git clone https://github.com/fim-ai/fim-one.git && cd fim-one
Expand Down
4 changes: 2 additions & 2 deletions docs/fr/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ description: "Questions fréquemment posées sur FIM One — configuration, fonc

| Resource | Requirement |
|----------|-------------|
| **Python** | 3.11+ |
| **Python** | 3.11.5+ |
| **RAM** | 2 GB minimum |
| **Disk** | 1 GB free (plus space for uploaded documents and vector store) |
| **Node.js** | 18+ (for local development) |
Expand Down Expand Up @@ -219,7 +219,7 @@ description: "Questions fréquemment posées sur FIM One — configuration, fonc
<Accordion title="Quelle est la pile technologique ?">
| Couche | Technologie |
|-------|-----------|
| **Backend** | Python 3.11+, FastAPI, SQLAlchemy, Alembic, asyncio |
| **Backend** | Python 3.11.5+, FastAPI, SQLAlchemy, Alembic, asyncio |
| **Frontend** | Next.js, React, TypeScript, Tailwind CSS, shadcn/ui |
| **Intégration LLM** | API compatible OpenAI (agnostique du fournisseur) |
| **Recherche vectorielle** | LanceDB + embeddings Jina |
Expand Down
2 changes: 1 addition & 1 deletion docs/fr/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Data is persisted in the bind-mounted `./data` and `./uploads` directories and i

## Option B: Local Development

Prerequisites: Python 3.11+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.
Prerequisites: Python 3.11.5+, [uv](https://docs.astral.sh/uv/), Node.js 18+, pnpm.

```bash
git clone https://github.com/fim-ai/fim-one.git
Expand Down
2 changes: 1 addition & 1 deletion docs/ja/contributing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: "FIM One貢献者向けの開発規約、型安全性、テスト

## セットアップ

前提条件: Python 3.11+、[uv](https://docs.astral.sh/uv/)、Node.js 18+、pnpm。
前提条件: Python 3.11.5+、[uv](https://docs.astral.sh/uv/)、Node.js 18+、pnpm。

```bash
git clone https://github.com/fim-ai/fim-one.git && cd fim-one
Expand Down
Loading
Loading