2026-01-22 11:57:47 +08:00
|
|
|
# DeerFlow - Unified Development Environment
|
|
|
|
|
|
refactor: split backend into harness (deerflow.*) and app (app.*) (#1131)
* refactor: extract shared utils to break harness→app cross-layer imports
Move _validate_skill_frontmatter to src/skills/validation.py and
CONVERTIBLE_EXTENSIONS + convert_file_to_markdown to src/utils/file_conversion.py.
This eliminates the two reverse dependencies from client.py (harness layer)
into gateway/routers/ (app layer), preparing for the harness/app package split.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: split backend/src into harness (deerflow.*) and app (app.*)
Physically split the monolithic backend/src/ package into two layers:
- **Harness** (`packages/harness/deerflow/`): publishable agent framework
package with import prefix `deerflow.*`. Contains agents, sandbox, tools,
models, MCP, skills, config, and all core infrastructure.
- **App** (`app/`): unpublished application code with import prefix `app.*`.
Contains gateway (FastAPI REST API) and channels (IM integrations).
Key changes:
- Move 13 harness modules to packages/harness/deerflow/ via git mv
- Move gateway + channels to app/ via git mv
- Rename all imports: src.* → deerflow.* (harness) / app.* (app layer)
- Set up uv workspace with deerflow-harness as workspace member
- Update langgraph.json, config.example.yaml, all scripts, Docker files
- Add build-system (hatchling) to harness pyproject.toml
- Add PYTHONPATH=. to gateway startup commands for app.* resolution
- Update ruff.toml with known-first-party for import sorting
- Update all documentation to reflect new directory structure
Boundary rule enforced: harness code never imports from app.
All 429 tests pass. Lint clean.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: add harness→app boundary check test and update docs
Add test_harness_boundary.py that scans all Python files in
packages/harness/deerflow/ and fails if any `from app.*` or
`import app.*` statement is found. This enforces the architectural
rule that the harness layer never depends on the app layer.
Update CLAUDE.md to document the harness/app split architecture,
import conventions, and the boundary enforcement test.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add config versioning with auto-upgrade on startup
When config.example.yaml schema changes, developers' local config.yaml
files can silently become outdated. This adds a config_version field and
auto-upgrade mechanism so breaking changes (like src.* → deerflow.*
renames) are applied automatically before services start.
- Add config_version: 1 to config.example.yaml
- Add startup version check warning in AppConfig.from_file()
- Add scripts/config-upgrade.sh with migration registry for value replacements
- Add `make config-upgrade` target
- Auto-run config-upgrade in serve.sh and start-daemon.sh before starting services
- Add config error hints in service failure messages
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix comments
* fix: update src.* import in test_sandbox_tools_security to deerflow.*
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: handle empty config and search parent dirs for config.example.yaml
Address Copilot review comments on PR #1131:
- Guard against yaml.safe_load() returning None for empty config files
- Search parent directories for config.example.yaml instead of only
looking next to config.yaml, fixing detection in common setups
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: correct skills root path depth and config_version type coercion
- loader.py: fix get_skills_root_path() to use 5 parent levels (was 3)
after harness split, file lives at packages/harness/deerflow/skills/
so parent×3 resolved to backend/packages/harness/ instead of backend/
- app_config.py: coerce config_version to int() before comparison in
_check_config_version() to prevent TypeError when YAML stores value
as string (e.g. config_version: "1")
- tests: add regression tests for both fixes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix: update test imports from src.* to deerflow.*/app.* after harness refactor
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 22:55:52 +08:00
|
|
|
.PHONY: help config config-upgrade check install dev dev-daemon start stop up down clean docker-init docker-start docker-stop docker-logs docker-logs-frontend docker-logs-gateway
|
2026-01-22 11:57:47 +08:00
|
|
|
|
2026-03-13 21:33:12 +08:00
|
|
|
PYTHON ?= python
|
2026-03-24 23:01:45 +08:00
|
|
|
BASH ?= bash
|
|
|
|
|
|
|
|
|
|
# Detect OS for Windows compatibility
|
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
|
SHELL := cmd.exe
|
|
|
|
|
endif
|
2026-03-13 21:33:12 +08:00
|
|
|
|
2026-01-22 11:57:47 +08:00
|
|
|
help:
|
|
|
|
|
@echo "DeerFlow Development Commands:"
|
2026-03-04 09:51:15 +08:00
|
|
|
@echo " make config - Generate local config files (aborts if config already exists)"
|
refactor: split backend into harness (deerflow.*) and app (app.*) (#1131)
* refactor: extract shared utils to break harness→app cross-layer imports
Move _validate_skill_frontmatter to src/skills/validation.py and
CONVERTIBLE_EXTENSIONS + convert_file_to_markdown to src/utils/file_conversion.py.
This eliminates the two reverse dependencies from client.py (harness layer)
into gateway/routers/ (app layer), preparing for the harness/app package split.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: split backend/src into harness (deerflow.*) and app (app.*)
Physically split the monolithic backend/src/ package into two layers:
- **Harness** (`packages/harness/deerflow/`): publishable agent framework
package with import prefix `deerflow.*`. Contains agents, sandbox, tools,
models, MCP, skills, config, and all core infrastructure.
- **App** (`app/`): unpublished application code with import prefix `app.*`.
Contains gateway (FastAPI REST API) and channels (IM integrations).
Key changes:
- Move 13 harness modules to packages/harness/deerflow/ via git mv
- Move gateway + channels to app/ via git mv
- Rename all imports: src.* → deerflow.* (harness) / app.* (app layer)
- Set up uv workspace with deerflow-harness as workspace member
- Update langgraph.json, config.example.yaml, all scripts, Docker files
- Add build-system (hatchling) to harness pyproject.toml
- Add PYTHONPATH=. to gateway startup commands for app.* resolution
- Update ruff.toml with known-first-party for import sorting
- Update all documentation to reflect new directory structure
Boundary rule enforced: harness code never imports from app.
All 429 tests pass. Lint clean.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: add harness→app boundary check test and update docs
Add test_harness_boundary.py that scans all Python files in
packages/harness/deerflow/ and fails if any `from app.*` or
`import app.*` statement is found. This enforces the architectural
rule that the harness layer never depends on the app layer.
Update CLAUDE.md to document the harness/app split architecture,
import conventions, and the boundary enforcement test.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add config versioning with auto-upgrade on startup
When config.example.yaml schema changes, developers' local config.yaml
files can silently become outdated. This adds a config_version field and
auto-upgrade mechanism so breaking changes (like src.* → deerflow.*
renames) are applied automatically before services start.
- Add config_version: 1 to config.example.yaml
- Add startup version check warning in AppConfig.from_file()
- Add scripts/config-upgrade.sh with migration registry for value replacements
- Add `make config-upgrade` target
- Auto-run config-upgrade in serve.sh and start-daemon.sh before starting services
- Add config error hints in service failure messages
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix comments
* fix: update src.* import in test_sandbox_tools_security to deerflow.*
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: handle empty config and search parent dirs for config.example.yaml
Address Copilot review comments on PR #1131:
- Guard against yaml.safe_load() returning None for empty config files
- Search parent directories for config.example.yaml instead of only
looking next to config.yaml, fixing detection in common setups
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: correct skills root path depth and config_version type coercion
- loader.py: fix get_skills_root_path() to use 5 parent levels (was 3)
after harness split, file lives at packages/harness/deerflow/skills/
so parent×3 resolved to backend/packages/harness/ instead of backend/
- app_config.py: coerce config_version to int() before comparison in
_check_config_version() to prevent TypeError when YAML stores value
as string (e.g. config_version: "1")
- tests: add regression tests for both fixes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix: update test imports from src.* to deerflow.*/app.* after harness refactor
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 22:55:52 +08:00
|
|
|
@echo " make config-upgrade - Merge new fields from config.example.yaml into config.yaml"
|
2026-02-03 20:41:36 +08:00
|
|
|
@echo " make check - Check if all required tools are installed"
|
|
|
|
|
@echo " make install - Install all dependencies (frontend + backend)"
|
|
|
|
|
@echo " make setup-sandbox - Pre-pull sandbox container image (recommended)"
|
2026-03-11 13:46:05 +08:00
|
|
|
@echo " make dev - Start all services in development mode (with hot-reloading)"
|
2026-03-11 16:00:40 +08:00
|
|
|
@echo " make dev-daemon - Start all services in background (daemon mode)"
|
2026-03-11 13:46:05 +08:00
|
|
|
@echo " make start - Start all services in production mode (optimized, no hot-reloading)"
|
2026-02-03 20:41:36 +08:00
|
|
|
@echo " make stop - Stop all running services"
|
|
|
|
|
@echo " make clean - Clean up processes and temporary files"
|
2026-01-24 22:01:00 +08:00
|
|
|
@echo ""
|
2026-03-12 22:18:18 +08:00
|
|
|
@echo "Docker Production Commands:"
|
|
|
|
|
@echo " make up - Build and start production Docker services (localhost:2026)"
|
|
|
|
|
@echo " make down - Stop and remove production Docker containers"
|
|
|
|
|
@echo ""
|
2026-01-24 22:01:00 +08:00
|
|
|
@echo "Docker Development Commands:"
|
2026-03-16 22:53:58 +09:00
|
|
|
@echo " make docker-init - Pull the sandbox image"
|
2026-02-24 08:31:52 +08:00
|
|
|
@echo " make docker-start - Start Docker services (mode-aware from config.yaml, localhost:2026)"
|
2026-01-24 22:01:00 +08:00
|
|
|
@echo " make docker-stop - Stop Docker development services"
|
2026-02-03 20:41:36 +08:00
|
|
|
@echo " make docker-logs - View Docker development logs"
|
2026-02-09 21:59:13 +08:00
|
|
|
@echo " make docker-logs-frontend - View Docker frontend logs"
|
|
|
|
|
@echo " make docker-logs-gateway - View Docker gateway logs"
|
2026-01-22 11:57:47 +08:00
|
|
|
|
2026-02-19 09:04:37 +08:00
|
|
|
config:
|
2026-03-13 21:33:12 +08:00
|
|
|
@$(PYTHON) ./scripts/configure.py
|
2026-02-19 09:04:37 +08:00
|
|
|
|
refactor: split backend into harness (deerflow.*) and app (app.*) (#1131)
* refactor: extract shared utils to break harness→app cross-layer imports
Move _validate_skill_frontmatter to src/skills/validation.py and
CONVERTIBLE_EXTENSIONS + convert_file_to_markdown to src/utils/file_conversion.py.
This eliminates the two reverse dependencies from client.py (harness layer)
into gateway/routers/ (app layer), preparing for the harness/app package split.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: split backend/src into harness (deerflow.*) and app (app.*)
Physically split the monolithic backend/src/ package into two layers:
- **Harness** (`packages/harness/deerflow/`): publishable agent framework
package with import prefix `deerflow.*`. Contains agents, sandbox, tools,
models, MCP, skills, config, and all core infrastructure.
- **App** (`app/`): unpublished application code with import prefix `app.*`.
Contains gateway (FastAPI REST API) and channels (IM integrations).
Key changes:
- Move 13 harness modules to packages/harness/deerflow/ via git mv
- Move gateway + channels to app/ via git mv
- Rename all imports: src.* → deerflow.* (harness) / app.* (app layer)
- Set up uv workspace with deerflow-harness as workspace member
- Update langgraph.json, config.example.yaml, all scripts, Docker files
- Add build-system (hatchling) to harness pyproject.toml
- Add PYTHONPATH=. to gateway startup commands for app.* resolution
- Update ruff.toml with known-first-party for import sorting
- Update all documentation to reflect new directory structure
Boundary rule enforced: harness code never imports from app.
All 429 tests pass. Lint clean.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: add harness→app boundary check test and update docs
Add test_harness_boundary.py that scans all Python files in
packages/harness/deerflow/ and fails if any `from app.*` or
`import app.*` statement is found. This enforces the architectural
rule that the harness layer never depends on the app layer.
Update CLAUDE.md to document the harness/app split architecture,
import conventions, and the boundary enforcement test.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add config versioning with auto-upgrade on startup
When config.example.yaml schema changes, developers' local config.yaml
files can silently become outdated. This adds a config_version field and
auto-upgrade mechanism so breaking changes (like src.* → deerflow.*
renames) are applied automatically before services start.
- Add config_version: 1 to config.example.yaml
- Add startup version check warning in AppConfig.from_file()
- Add scripts/config-upgrade.sh with migration registry for value replacements
- Add `make config-upgrade` target
- Auto-run config-upgrade in serve.sh and start-daemon.sh before starting services
- Add config error hints in service failure messages
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix comments
* fix: update src.* import in test_sandbox_tools_security to deerflow.*
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: handle empty config and search parent dirs for config.example.yaml
Address Copilot review comments on PR #1131:
- Guard against yaml.safe_load() returning None for empty config files
- Search parent directories for config.example.yaml instead of only
looking next to config.yaml, fixing detection in common setups
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: correct skills root path depth and config_version type coercion
- loader.py: fix get_skills_root_path() to use 5 parent levels (was 3)
after harness split, file lives at packages/harness/deerflow/skills/
so parent×3 resolved to backend/packages/harness/ instead of backend/
- app_config.py: coerce config_version to int() before comparison in
_check_config_version() to prevent TypeError when YAML stores value
as string (e.g. config_version: "1")
- tests: add regression tests for both fixes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix: update test imports from src.* to deerflow.*/app.* after harness refactor
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 22:55:52 +08:00
|
|
|
config-upgrade:
|
|
|
|
|
@./scripts/config-upgrade.sh
|
|
|
|
|
|
2026-01-22 11:57:47 +08:00
|
|
|
# Check required tools
|
|
|
|
|
check:
|
2026-03-13 21:33:12 +08:00
|
|
|
@$(PYTHON) ./scripts/check.py
|
2026-01-22 11:57:47 +08:00
|
|
|
|
|
|
|
|
# Install all dependencies
|
|
|
|
|
install:
|
|
|
|
|
@echo "Installing backend dependencies..."
|
|
|
|
|
@cd backend && uv sync
|
|
|
|
|
@echo "Installing frontend dependencies..."
|
|
|
|
|
@cd frontend && pnpm install
|
|
|
|
|
@echo "✓ All dependencies installed"
|
2026-02-03 20:41:36 +08:00
|
|
|
@echo ""
|
|
|
|
|
@echo "=========================================="
|
|
|
|
|
@echo " Optional: Pre-pull Sandbox Image"
|
|
|
|
|
@echo "=========================================="
|
|
|
|
|
@echo ""
|
|
|
|
|
@echo "If you plan to use Docker/Container-based sandbox, you can pre-pull the image:"
|
|
|
|
|
@echo " make setup-sandbox"
|
|
|
|
|
@echo ""
|
|
|
|
|
|
|
|
|
|
# Pre-pull sandbox Docker image (optional but recommended)
|
|
|
|
|
setup-sandbox:
|
|
|
|
|
@echo "=========================================="
|
|
|
|
|
@echo " Pre-pulling Sandbox Container Image"
|
|
|
|
|
@echo "=========================================="
|
|
|
|
|
@echo ""
|
|
|
|
|
@IMAGE=$$(grep -A 20 "# sandbox:" config.yaml 2>/dev/null | grep "image:" | awk '{print $$2}' | head -1); \
|
|
|
|
|
if [ -z "$$IMAGE" ]; then \
|
|
|
|
|
IMAGE="enterprise-public-cn-beijing.cr.volces.com/vefaas-public/all-in-one-sandbox:latest"; \
|
|
|
|
|
echo "Using default image: $$IMAGE"; \
|
|
|
|
|
else \
|
|
|
|
|
echo "Using configured image: $$IMAGE"; \
|
|
|
|
|
fi; \
|
|
|
|
|
echo ""; \
|
|
|
|
|
if command -v container >/dev/null 2>&1 && [ "$$(uname)" = "Darwin" ]; then \
|
|
|
|
|
echo "Detected Apple Container on macOS, pulling image..."; \
|
|
|
|
|
container pull "$$IMAGE" || echo "⚠ Apple Container pull failed, will try Docker"; \
|
|
|
|
|
fi; \
|
|
|
|
|
if command -v docker >/dev/null 2>&1; then \
|
|
|
|
|
echo "Pulling image using Docker..."; \
|
2026-03-18 22:06:35 +08:00
|
|
|
if docker pull "$$IMAGE"; then \
|
|
|
|
|
echo ""; \
|
|
|
|
|
echo "✓ Sandbox image pulled successfully"; \
|
|
|
|
|
else \
|
|
|
|
|
echo ""; \
|
|
|
|
|
echo "⚠ Failed to pull sandbox image (this is OK for local sandbox mode)"; \
|
|
|
|
|
fi; \
|
2026-02-03 20:41:36 +08:00
|
|
|
else \
|
|
|
|
|
echo "✗ Neither Docker nor Apple Container is available"; \
|
|
|
|
|
echo " Please install Docker: https://docs.docker.com/get-docker/"; \
|
|
|
|
|
exit 1; \
|
|
|
|
|
fi
|
2026-01-22 11:57:47 +08:00
|
|
|
|
2026-03-11 13:46:05 +08:00
|
|
|
# Start all services in development mode (with hot-reloading)
|
2026-01-22 11:57:47 +08:00
|
|
|
dev:
|
2026-03-24 23:01:45 +08:00
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
|
@echo "Detected Windows - using Git Bash..."
|
|
|
|
|
@$(BASH) ./scripts/serve.sh --dev
|
|
|
|
|
else
|
2026-03-11 13:46:05 +08:00
|
|
|
@./scripts/serve.sh --dev
|
2026-03-24 23:01:45 +08:00
|
|
|
endif
|
2026-03-11 13:46:05 +08:00
|
|
|
|
|
|
|
|
# Start all services in production mode (with optimizations)
|
|
|
|
|
start:
|
2026-03-24 23:01:45 +08:00
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
|
@echo "Detected Windows - using Git Bash..."
|
|
|
|
|
@$(BASH) ./scripts/serve.sh --prod
|
|
|
|
|
else
|
2026-03-11 13:46:05 +08:00
|
|
|
@./scripts/serve.sh --prod
|
2026-03-24 23:01:45 +08:00
|
|
|
endif
|
2026-01-22 11:57:47 +08:00
|
|
|
|
2026-03-11 15:10:40 +08:00
|
|
|
# Start all services in daemon mode (background)
|
|
|
|
|
dev-daemon:
|
|
|
|
|
@./scripts/start-daemon.sh
|
|
|
|
|
|
2026-01-22 11:57:47 +08:00
|
|
|
# Stop all services
|
|
|
|
|
stop:
|
|
|
|
|
@echo "Stopping all services..."
|
|
|
|
|
@-pkill -f "langgraph dev" 2>/dev/null || true
|
refactor: split backend into harness (deerflow.*) and app (app.*) (#1131)
* refactor: extract shared utils to break harness→app cross-layer imports
Move _validate_skill_frontmatter to src/skills/validation.py and
CONVERTIBLE_EXTENSIONS + convert_file_to_markdown to src/utils/file_conversion.py.
This eliminates the two reverse dependencies from client.py (harness layer)
into gateway/routers/ (app layer), preparing for the harness/app package split.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: split backend/src into harness (deerflow.*) and app (app.*)
Physically split the monolithic backend/src/ package into two layers:
- **Harness** (`packages/harness/deerflow/`): publishable agent framework
package with import prefix `deerflow.*`. Contains agents, sandbox, tools,
models, MCP, skills, config, and all core infrastructure.
- **App** (`app/`): unpublished application code with import prefix `app.*`.
Contains gateway (FastAPI REST API) and channels (IM integrations).
Key changes:
- Move 13 harness modules to packages/harness/deerflow/ via git mv
- Move gateway + channels to app/ via git mv
- Rename all imports: src.* → deerflow.* (harness) / app.* (app layer)
- Set up uv workspace with deerflow-harness as workspace member
- Update langgraph.json, config.example.yaml, all scripts, Docker files
- Add build-system (hatchling) to harness pyproject.toml
- Add PYTHONPATH=. to gateway startup commands for app.* resolution
- Update ruff.toml with known-first-party for import sorting
- Update all documentation to reflect new directory structure
Boundary rule enforced: harness code never imports from app.
All 429 tests pass. Lint clean.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: add harness→app boundary check test and update docs
Add test_harness_boundary.py that scans all Python files in
packages/harness/deerflow/ and fails if any `from app.*` or
`import app.*` statement is found. This enforces the architectural
rule that the harness layer never depends on the app layer.
Update CLAUDE.md to document the harness/app split architecture,
import conventions, and the boundary enforcement test.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add config versioning with auto-upgrade on startup
When config.example.yaml schema changes, developers' local config.yaml
files can silently become outdated. This adds a config_version field and
auto-upgrade mechanism so breaking changes (like src.* → deerflow.*
renames) are applied automatically before services start.
- Add config_version: 1 to config.example.yaml
- Add startup version check warning in AppConfig.from_file()
- Add scripts/config-upgrade.sh with migration registry for value replacements
- Add `make config-upgrade` target
- Auto-run config-upgrade in serve.sh and start-daemon.sh before starting services
- Add config error hints in service failure messages
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix comments
* fix: update src.* import in test_sandbox_tools_security to deerflow.*
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: handle empty config and search parent dirs for config.example.yaml
Address Copilot review comments on PR #1131:
- Guard against yaml.safe_load() returning None for empty config files
- Search parent directories for config.example.yaml instead of only
looking next to config.yaml, fixing detection in common setups
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: correct skills root path depth and config_version type coercion
- loader.py: fix get_skills_root_path() to use 5 parent levels (was 3)
after harness split, file lives at packages/harness/deerflow/skills/
so parent×3 resolved to backend/packages/harness/ instead of backend/
- app_config.py: coerce config_version to int() before comparison in
_check_config_version() to prevent TypeError when YAML stores value
as string (e.g. config_version: "1")
- tests: add regression tests for both fixes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix: update test imports from src.* to deerflow.*/app.* after harness refactor
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 22:55:52 +08:00
|
|
|
@-pkill -f "uvicorn app.gateway.app:app" 2>/dev/null || true
|
2026-01-22 11:57:47 +08:00
|
|
|
@-pkill -f "next dev" 2>/dev/null || true
|
2026-03-11 13:46:05 +08:00
|
|
|
@-pkill -f "next start" 2>/dev/null || true
|
|
|
|
|
@-pkill -f "next-server" 2>/dev/null || true
|
|
|
|
|
@-pkill -f "next-server" 2>/dev/null || true
|
2026-01-24 22:01:00 +08:00
|
|
|
@-nginx -c $(PWD)/docker/nginx/nginx.local.conf -p $(PWD) -s quit 2>/dev/null || true
|
2026-01-22 11:57:47 +08:00
|
|
|
@sleep 1
|
|
|
|
|
@-pkill -9 nginx 2>/dev/null || true
|
2026-01-30 21:58:43 +08:00
|
|
|
@echo "Cleaning up sandbox containers..."
|
2026-02-03 20:41:36 +08:00
|
|
|
@-./scripts/cleanup-containers.sh deer-flow-sandbox 2>/dev/null || true
|
2026-01-22 11:57:47 +08:00
|
|
|
@echo "✓ All services stopped"
|
|
|
|
|
|
|
|
|
|
# Clean up
|
|
|
|
|
clean: stop
|
|
|
|
|
@echo "Cleaning up..."
|
2026-03-11 13:46:05 +08:00
|
|
|
@-rm -rf backend/.deer-flow 2>/dev/null || true
|
|
|
|
|
@-rm -rf backend/.langgraph_api 2>/dev/null || true
|
2026-01-22 11:57:47 +08:00
|
|
|
@-rm -rf logs/*.log 2>/dev/null || true
|
|
|
|
|
@echo "✓ Cleanup complete"
|
2026-01-24 22:01:00 +08:00
|
|
|
|
|
|
|
|
# ==========================================
|
|
|
|
|
# Docker Development Commands
|
|
|
|
|
# ==========================================
|
|
|
|
|
|
|
|
|
|
# Initialize Docker containers and install dependencies
|
|
|
|
|
docker-init:
|
|
|
|
|
@./scripts/docker.sh init
|
|
|
|
|
|
|
|
|
|
# Start Docker development environment
|
|
|
|
|
docker-start:
|
|
|
|
|
@./scripts/docker.sh start
|
|
|
|
|
|
|
|
|
|
# Stop Docker development environment
|
|
|
|
|
docker-stop:
|
|
|
|
|
@./scripts/docker.sh stop
|
|
|
|
|
|
|
|
|
|
# View Docker development logs
|
|
|
|
|
docker-logs:
|
|
|
|
|
@./scripts/docker.sh logs
|
|
|
|
|
|
|
|
|
|
# View Docker development logs
|
2026-02-09 21:59:13 +08:00
|
|
|
docker-logs-frontend:
|
|
|
|
|
@./scripts/docker.sh logs --frontend
|
|
|
|
|
docker-logs-gateway:
|
2026-03-11 16:00:40 +08:00
|
|
|
@./scripts/docker.sh logs --gateway
|
2026-03-12 22:18:18 +08:00
|
|
|
|
|
|
|
|
# ==========================================
|
|
|
|
|
# Production Docker Commands
|
|
|
|
|
# ==========================================
|
|
|
|
|
|
|
|
|
|
# Build and start production services
|
|
|
|
|
up:
|
|
|
|
|
@./scripts/deploy.sh
|
|
|
|
|
|
|
|
|
|
# Stop and remove production containers
|
|
|
|
|
down:
|
|
|
|
|
@./scripts/deploy.sh down
|