Browse Source

Revert "fix(examples): drop the dev HMR row the native source launch cannot load"

This reverts commit 8ca499e33dd2b6e1f4e80189a1a3ab9e6873ddf7.
Yichen Jiang 2 months ago
parent
commit
4bb101e002
1 changed files with 8 additions and 5 deletions
  1. 8 5
      examples/tui-agent/cordis.yml

+ 8 - 5
examples/tui-agent/cordis.yml

@@ -1,11 +1,14 @@
 # Full-screen TUI coding agent with swappable DeepSeek and local-bash backends.
 # `dsh-tui-demo` supplies the agent spine, workspace instructions, generic
 # task controls, JSONL persistence, the pi-tui front door, and `main`.
-# The app bin loads the gitignored root `.env` into the process environment;
-# entry configs here are the composition base, while user-plane values resolve
-# per request through the settings and credentials providers below.
-# No dev HMR row: vendored @cordisjs/plugin-hmr uses decorators, which the
-# native --experimental-transform-types source launch cannot load.
+# HMR remains a leaf because it depends on Loader internals. The app bin loads
+# the gitignored root `.env`; this file reads `DEEPSEEK_API_KEY` and optional
+# `DEEPSEEK_BASE_URL` through `!!js`.
+
+- id: hmr
+  name: '@cordisjs/plugin-hmr'
+  config:
+    root: ['.']
 
 # User-settings document (`$DSH_HOME/settings.yaml`, hot-reloaded): a
 # `llm-deepseek:` section there overrides the adapter entry below without a