运维与排障

FAQ

使用 Downcity 的高频问题

FAQ

downcitytown 有区别吗?

没有。town 是同一个可执行文件的短命令。

为什么我执行 town task ... 返回连接失败?

task/chat/memory/contact/shell/skill/asr/tts/plugin 这类命令通常依赖运行中的 daemon:

town agent start

downcity.json 里为什么不能写 ${VAR}

当前版本已经移除了 downcity.json 的环境变量占位符解析。

请改用这两种方式之一:

  1. 运行时需要的值放到项目根目录 .env
  2. 由宿主在 new Agent({ env }) 时显式注入

如何切换模型?

town city status
town config get execution.modelId
town config set execution.modelId <modelId>

如何查看当前服务状态?

town agent list --running
town plugin list
town memory status

安装依赖时看到 deprecated eslint@8 和一堆子依赖告警怎么办?

这类告警通常是开发依赖链路(lint/build tooling)引起的,不影响 runtime 功能使用。

  • eslint@8 告警:说明当前依赖树里还在解析 8.x。
  • glob@7 / rimraf@3 / inflight 等:多为上游工具的传递依赖。

如果你只运行 town,可暂时忽略;如果要清理告警,优先做两件事:

  1. 把项目里直接声明的 eslint 升到 9.x。
  2. 升级触发告警的工具包到最新主版本(若其已支持)。