Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

Remove agfs (#13)

kkkwjx3acc6884fa19
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 97d6bb48f..949749765 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -3,8 +3,32 @@ name: CodeQL Security Scan
on:
push:
branches: [ main, develop ]
+ paths-ignore:
+ - 'docs/**'
+ - '**.md'
+ - 'LICENSE'
+ - 'CONTRIBUTING.md'
+ - '**.png'
+ - '**.jpg'
+ - '**.jpeg'
+ - '**.gif'
+ - '**.svg'
+ - '.gitignore'
+ - '.editorconfig'
pull_request:
branches: [ main, develop ]
+ paths-ignore:
+ - 'docs/**'
+ - '**.md'
+ - 'LICENSE'
+ - 'CONTRIBUTING.md'
+ - '**.png'
+ - '**.jpg'
+ - '**.jpeg'
+ - '**.gif'
+ - '**.svg'
+ - '.gitignore'
+ - '.editorconfig'
schedule:
- cron: '0 0 * * 0' # 每周日运行一次
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 40a74b8bd..4e87bee00 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -3,8 +3,32 @@ name: Lint
on:
push:
branches: [ main, develop ]
+ paths-ignore:
+ - 'docs/**'
+ - '**.md'
+ - 'LICENSE'
+ - 'CONTRIBUTING.md'
+ - '**.png'
+ - '**.jpg'
+ - '**.jpeg'
+ - '**.gif'
+ - '**.svg'
+ - '.gitignore'
+ - '.editorconfig'
pull_request:
branches: [ main, develop ]
+ paths-ignore:
+ - 'docs/**'
+ - '**.md'
+ - 'LICENSE'
+ - 'CONTRIBUTING.md'
+ - '**.png'
+ - '**.jpg'
+ - '**.jpeg'
+ - '**.gif'
+ - '**.svg'
+ - '.gitignore'
+ - '.editorconfig'
jobs:
lint:
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index 5d76419b8..1ae3d1a63 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -3,6 +3,18 @@ name: Pull Request Checks
on:
pull_request:
branches: [ main, develop ]
+ paths-ignore:
+ - 'docs/**'
+ - '**.md'
+ - 'LICENSE'
+ - 'CONTRIBUTING.md'
+ - '**.png'
+ - '**.jpg'
+ - '**.jpeg'
+ - '**.gif'
+ - '**.svg'
+ - '.gitignore'
+ - '.editorconfig'
jobs:
lint:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 287eed65a..e6fa7618b 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -3,8 +3,32 @@ name: Test
on:
push:
branches: [ main, develop ]
+ paths-ignore:
+ - 'docs/**'
+ - '**.md'
+ - 'LICENSE'
+ - 'CONTRIBUTING.md'
+ - '**.png'
+ - '**.jpg'
+ - '**.jpeg'
+ - '**.gif'
+ - '**.svg'
+ - '.gitignore'
+ - '.editorconfig'
pull_request:
branches: [ main, develop ]
+ paths-ignore:
+ - 'docs/**'
+ - '**.md'
+ - 'LICENSE'
+ - 'CONTRIBUTING.md'
+ - '**.png'
+ - '**.jpg'
+ - '**.jpeg'
+ - '**.gif'
+ - '**.svg'
+ - '.gitignore'
+ - '.editorconfig'
jobs:
test:
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index a70e5c533..f52343fb1 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -11,6 +11,13 @@ Thank you for your interest in OpenViking! We welcome contributions of all kinds
## Development Setup
+### Prerequisites
+
+- **Python**: 3.9+
+- **Go**: 1.25.1+ (Required for building AGFS components)
+- **C++ Compiler**: GCC 9+ or Clang 11+ (Required for building core extensions, must support C++17)
+- **CMake**: 3.12+
+
### 1. Fork and Clone
```bash
@@ -31,19 +38,9 @@ uv sync
source .venv/bin/activate # Linux/macOS
# or .venv\Scripts\activate # Windows
-# Install AGFS SDK
-uv pip install -e third_party/agfs/agfs-sdk/python
-```
-
-### 3. Build AGFS (First Time Only)
-
-```bash
-cd third_party/agfs/agfs-server && make build
-cp build/agfs-server ../bin/
-cd ../../..
```
-### 4. Configure Environment
+### 3. Configure Environment
Create a configuration file `ov.conf`:
@@ -73,7 +70,7 @@ Set the environment variable:
export OPENVIKING_CONFIG_FILE=ov.conf
```
-### 5. Verify Installation
+### 4. Verify Installation
```python
import asyncio
diff --git a/setup.py b/setup.py
index bfd4e365c..e1fba9d47 100644
--- a/setup.py
+++ b/setup.py
@@ -30,18 +30,16 @@ class CMakeBuildExtension(build_ext):
os.chmod(str(dst), 0o755)
def build_agfs(self):
- """Build AGFS server, fallback to prebuilt binary if build fails."""
+ """Build AGFS server from source."""
# Paths
binary_name = "agfs-server.exe" if sys.platform == "win32" else "agfs-server"
agfs_server_dir = Path("third_party/agfs/agfs-server").resolve()
- agfs_prebuilt_binary = Path(f"third_party/agfs/bin/{binary_name}").resolve()
# Target in source tree (for development/install)
agfs_bin_dir = Path("openviking/bin").resolve()
agfs_target_binary = agfs_bin_dir / binary_name
# 1. Try to build from source
- build_success = False
if agfs_server_dir.exists() and shutil.which("go"):
print("Building AGFS server from source...")
import subprocess
@@ -60,32 +58,21 @@ class CMakeBuildExtension(build_ext):
if agfs_built_binary.exists():
self._copy_binary(agfs_built_binary, agfs_target_binary)
print(f"[OK] AGFS server built successfully from source")
- build_success = True
+ else:
+ raise FileNotFoundError(f"Build succeeded but binary not found at {agfs_built_binary}")
except (subprocess.CalledProcessError, Exception) as e:
- print(f"Warning: Failed to build AGFS from source: {e}")
+ error_msg = f"Failed to build AGFS from source: {e}"
if isinstance(e, subprocess.CalledProcessError):
- if e.stdout: print(f"Build stdout:\n{e.stdout.decode('utf-8', errors='replace')}")
- if e.stderr: print(f"Build stderr:\n{e.stderr.decode('utf-8', errors='replace')}")
+ if e.stdout: error_msg += f"\nBuild stdout:\n{e.stdout.decode('utf-8', errors='replace')}"
+ if e.stderr: error_msg += f"\nBuild stderr:\n{e.stderr.decode('utf-8', errors='replace')}"
+ raise RuntimeError(error_msg)
else:
- if not agfs_server_dir.exists():
- print("Warning: AGFS source directory not found")
- else:
- print("Warning: Go compiler not found, will use prebuilt binary")
-
- # 2. Fallback to prebuilt binary if build failed
- if not build_success:
- if agfs_prebuilt_binary.exists():
- print(f"Using prebuilt AGFS binary from {agfs_prebuilt_binary}")
- self._copy_binary(agfs_prebuilt_binary, agfs_target_binary)
- print(f"[OK] AGFS server copied from prebuilt binary")
+ if not agfs_server_dir.exists():
+ raise FileNotFoundError(f"AGFS source directory not found at {agfs_server_dir}")
else:
- raise FileNotFoundError(
- f"AGFS binary not available. Please either:\n"
- f" 1. Install Go and build from source, or\n"
- f" 2. Ensure prebuilt binary exists at third_party/agfs/bin/{binary_name}"
- )
+ raise RuntimeError("Go compiler not found. Please install Go to build AGFS server.")
- # 3. Ensure AGFS binary is copied to the build directory (where wheel is packaged from)
+ # 2. Ensure AGFS binary is copied to the build directory (where wheel is packaged from)
if self.build_lib:
agfs_bin_dir_build = Path(self.build_lib) / "openviking/bin"
dst = agfs_bin_dir_build / binary_name
diff --git a/third_party/agfs/bin/agfs-server b/third_party/agfs/bin/agfs-server
deleted file mode 100755
index 442fd3bac..000000000
Binary files a/third_party/agfs/bin/agfs-server and /dev/null differ