lili ab6791cf34 feat(gen-worker): AgentScope Service 注册进 Nacos discovery(替硬编码@8200)(切片一 阶段〇 D1)
nacos_registry 注册实例+心跳+优雅注销,advertise_ip 指 mini-desktop Tailscale;代理旁路;
NACOS_REGISTER=1 才开、best-effort 失败不中断 Service。单测 mock client 锁注册+旁路+best-effort。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-01 17:40:40 -07:00

24 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# tier2 富游戏自治生成线 · Python worker 依赖
# 独立锁版,不复用 wg1/gen-worker 的 agentscope==2.0.1。
# 框架接缝据迁移取证与 wg1 种子兼容;锁 2.0.2 的理由见
# docs/plans/2026-06-22-003-feat-tier2-富游戏自治生成线-plan.md(KTD2)。
agentscope==2.0.2
openai>=2.41.1 # 便宜档(deepseek-v4 等)走 OpenAI 兼容端点(new-api)
json-repair # 脏 JSON 兜底(承袭裸路)
pyyaml # 模型路由 models.yaml + infra.yaml 基建配置
# U2 第二装载落库(BackendStore,仅 TIER2_STORE=backend 启用;worker/store.py 内惰性 import,
# 6c6g 不装这俩也能 py_compile / import store.py;真跑/部署在 mini-desktop 时装)。
pymysql # MySQL 源工程版本 manifest 表(tier2_source_project_version)
minio # MinIO(S3 兼容 OSS)源文件全文落库
# 服务发现(配置控制面 §3.7 Part D · D1):Agent Service 注册进 Nacos discovery,让 Java 按服务名发现,
# 替硬编码 @8200。钉 v1(<2)—— v1 的同步 nacos.NacosClient(add/remove_naming_instance + 自带守护心跳
# 线程,免 asyncio event-loop);与 agentscope==2.0.2 同「钉版本」纪律,锁 1.0.0 保可复现。仅
# service/nacos_registry.py 惰性 import,且 NACOS_REGISTER=1 才用;默认关 / 本地 / 6c6g 不装也能
# py_compile + import service.app。
nacos-sdk-python==1.0.0
# 注:M3 走 AgentScope 内置 AnthropicChatModel(已含在 agentscope)。
# 注:Phaser / esbuild 是 JS 侧工具链(game-runtime / tier2/harness),不在此 Python 依赖内。