dsh-neotui 0.1.28 → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/panels.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-neotui",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "Neo-TUI: mouse-driven terminal UI client for DeepSeek Harness (B-tier per dsh-tui-design.md)",
5
5
  "type": "module",
6
6
  "bin": {
package/src/panels.js CHANGED
@@ -1839,7 +1839,9 @@ export class EditPopup extends Popup {
1839
1839
  multi: true, maxLines: 4, app,
1840
1840
  prompt: "> ", placeholder: "输入值…(Ctrl+Shift+V 粘贴,Enter 确定,Esc 取消)",
1841
1841
  });
1842
- this.input.setValue(String(value ?? ""), { select: true });
1842
+ // the cursor starts at the END of the existing value: typing appends and
1843
+ // edits in place instead of wiping the original (modify, not replace)
1844
+ this.input.setValue(String(value ?? ""));
1843
1845
  this.#layout();
1844
1846
  }
1845
1847
  #layout() {
@@ -1930,6 +1932,7 @@ export class ModelPanel extends Widget {
1930
1932
  // the route key only appears for a brand-new draft (rename once)
1931
1933
  if (this.draftRoute === route) items.push({ kind: "field", key: "route", label: "路由名", value: route });
1932
1934
  items.push({ kind: "field", key: "displayName", label: "显示名", value: p.displayName ?? "" });
1935
+ items.push({ kind: "field", key: "api", label: "协议 api", value: p.api ?? "openai-completions" });
1933
1936
  items.push({ kind: "field", key: "baseURL", label: "baseURL", value: p.baseURL ?? "" });
1934
1937
  items.push({ kind: "field", key: "apiKeyEnv", label: "apiKeyEnv", value: p.apiKeyEnv ?? "", note: "环境变量名(密钥不落盘)" });
1935
1938
  // models are NOT flat here: one 模型管理 entry summarizing the first