From 4898ea0a85588b575f717eddbe629c1fc9b66b64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=AE=8F=E5=87=AF?= Date: Wed, 24 Jun 2026 13:05:43 +0800 Subject: [PATCH] =?UTF-8?q?build(harness):=20=E6=98=BE=E5=BC=8F=E6=8A=8A?= =?UTF-8?q?=20no.1/no.2=20HTML=20=E6=A8=A1=E6=9D=BF=E7=BA=B3=E5=85=A5?= =?UTF-8?q?=E6=89=93=E5=8C=85=EF=BC=8C=E4=BF=9D=E8=AF=81=E6=96=B0=E6=9C=BA?= =?UTF-8?q?=E5=99=A8=E5=86=85=E7=BD=AE=E5=8F=AF=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - harness pyproject [tool.hatch.build] artifacts 显式包含 templates/**/*.html, 任何构建方式(wheel/sdist)都带上模板(已验证 wheel 内含 no1/no2) - 模板文件本就 git 跟踪、源码安装直读、内置 agent 启动自动 seed —— 新机器 clone 装好即可直接看到 - 加自检测试 test_all_registered_template_files_exist Co-Authored-By: Claude Opus 4.8 (1M context) --- .../backend/packages/harness/pyproject.toml | 33 +++++++++++-------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/offline-backend-20260512/backend/packages/harness/pyproject.toml b/offline-backend-20260512/backend/packages/harness/pyproject.toml index 3dd565a4..b8b5ff94 100644 --- a/offline-backend-20260512/backend/packages/harness/pyproject.toml +++ b/offline-backend-20260512/backend/packages/harness/pyproject.toml @@ -31,12 +31,12 @@ dependencies = [ "ddgs>=9.10.0", "duckdb>=1.4.4", "langchain-google-genai>=4.2.1", - "langgraph-checkpoint-sqlite>=3.0.3", - "langgraph-checkpoint-postgres>=3.0.5", - "langgraph-sdk>=0.1.51", - "psycopg[binary]>=3.3.3", - "psycopg-pool>=3.3.0", - "sqlalchemy[asyncio]>=2.0,<3.0", + "langgraph-checkpoint-sqlite>=3.0.3", + "langgraph-checkpoint-postgres>=3.0.5", + "langgraph-sdk>=0.1.51", + "psycopg[binary]>=3.3.3", + "psycopg-pool>=3.3.0", + "sqlalchemy[asyncio]>=2.0,<3.0", "aiosqlite>=0.19", "alembic>=1.13", ] @@ -44,14 +44,14 @@ dependencies = [ [project.optional-dependencies] hindsight = ["hindsight-client>=0.4.22"] ollama = ["langchain-ollama>=0.3.0"] -postgres = [ - "asyncpg>=0.29", - "langgraph-checkpoint-postgres>=3.0.5", - "psycopg[binary]>=3.3.3", - "psycopg-pool>=3.3.0", -] -mysql = ["asyncmy>=0.2.10"] -pymupdf = ["pymupdf4llm>=0.0.17"] +postgres = [ + "asyncpg>=0.29", + "langgraph-checkpoint-postgres>=3.0.5", + "psycopg[binary]>=3.3.3", + "psycopg-pool>=3.3.0", +] +mysql = ["asyncmy>=0.2.10"] +pymupdf = ["pymupdf4llm>=0.0.17"] [build-system] requires = ["hatchling"] @@ -59,3 +59,8 @@ build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["deerflow"] + +# 内置 HTML 模板(no.1/no.2 等,非 .py 资源)显式纳入打包,保证任何构建方式(wheel/sdist) +# 都带上,新机器装好即可直接看到这些模板。 +[tool.hatch.build] +artifacts = ["deerflow/runtime/scheduler/templates/**/*.html"]