build(harness): 显式把 no.1/no.2 HTML 模板纳入打包,保证新机器内置可见

- 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) <noreply@anthropic.com>
This commit is contained in:
董宏凯andClaude Opus 4.8 committed 2026-06-24 13:05:43 +08:00
1 parent 7d9a0637ca
commit 4898ea0a85
1 file changed
+19 -14
@@ -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"]