dsh-bash-terminal-ts 0.8.8 → 0.9.0

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 (44) hide show
  1. package/CHANGELOG.md +201 -190
  2. package/README.en.md +2 -1
  3. package/README.md +3 -2
  4. package/agent-presets/README.md +171 -170
  5. package/agent-presets/install-presets.mjs +180 -179
  6. package/agent-presets/standard-win-niu/agent.cordis.yml +271 -0
  7. package/agent-presets/standard-win-niu/preset.yml +2 -0
  8. package/cordis.patch.yml +84 -83
  9. package/dist/client.core.js +10 -1
  10. package/dist/client.js +10 -1
  11. package/docs/dsh-plugin-development.md +169 -0
  12. package/docs/niu-backend.md +197 -0
  13. package/dsh.plugin.json +3 -3
  14. package/lib/client.js +10 -1
  15. package/lib/dsh-types.d.ts +14 -2
  16. package/lib/index.d.ts +15 -2
  17. package/lib/index.js +43 -5
  18. package/lib/locales.js +9 -0
  19. package/lib/shell-id.d.ts +1 -1
  20. package/lib/shells.d.ts +1 -0
  21. package/lib/shells.js +8 -2
  22. package/lib/terminal.js +4 -0
  23. package/lib/webterminals/host.js +2 -2
  24. package/lib/webterminals/mount.js +1 -0
  25. package/locale/de.json +6 -6
  26. package/locale/en.json +6 -6
  27. package/locale/es.json +6 -6
  28. package/locale/fr.json +6 -6
  29. package/locale/it.json +6 -6
  30. package/locale/ja.json +6 -6
  31. package/locale/ko.json +6 -6
  32. package/locale/ru.json +6 -6
  33. package/locale/zh.json +6 -6
  34. package/package.json +151 -149
  35. package/scripts/check-artifacts.mjs +96 -96
  36. package/src/client.tsx +685 -685
  37. package/src/dsh-types.ts +332 -320
  38. package/src/index.ts +1316 -1275
  39. package/src/locales.ts +461 -452
  40. package/src/shell-id.ts +11 -11
  41. package/src/shells.ts +279 -272
  42. package/src/terminal.ts +616 -612
  43. package/src/webterminals/host.ts +361 -361
  44. package/src/webterminals/mount.ts +237 -236
package/lib/locales.js CHANGED
@@ -25,6 +25,7 @@ const zh = {
25
25
  "dock.state.notInstalled": "未探测到",
26
26
  "dock.state.wslPreferred": "已检测到 WSL 发行版(优先用 WSL bash)",
27
27
  "shell.payload": "POSIX payload",
28
+ "shell.niu": "Niubash",
28
29
  "dock.state.noDistro": "无已安装发行版",
29
30
  "dock.state.launcherOnly": "只找到启动器,无法内嵌",
30
31
  "dock.powershell.locked": "PowerShell 是保底后端,无法关闭。",
@@ -72,6 +73,7 @@ const en = {
72
73
  "dock.state.notInstalled": "Not found",
73
74
  "dock.state.wslPreferred": "WSL distro detected (WSL bash preferred)",
74
75
  "shell.payload": "POSIX payload",
76
+ "shell.niu": "Niubash",
75
77
  "dock.state.noDistro": "No distro installed",
76
78
  "dock.state.launcherOnly": "Only a launcher was found; it cannot be embedded",
77
79
  "dock.powershell.locked": "PowerShell is the fallback backend and cannot be turned off.",
@@ -119,6 +121,7 @@ const ja = {
119
121
  "dock.state.notInstalled": "見つかりません",
120
122
  "dock.state.wslPreferred": "WSL ディストリ検出済み(WSL bash 優先)",
121
123
  "shell.payload": "POSIX payload",
124
+ "shell.niu": "Niubash",
122
125
  "dock.state.noDistro": "インストール済みディストリビューションなし",
123
126
  "dock.state.launcherOnly": "ランチャーのみ検出、埋め込み不可",
124
127
  "dock.powershell.locked": "PowerShell は最後の代替のため無効化できません。",
@@ -166,6 +169,7 @@ const ko = {
166
169
  "dock.state.notInstalled": "탐지되지 않음",
167
170
  "dock.state.wslPreferred": "WSL 배포판 감지됨 (WSL bash 우선)",
168
171
  "shell.payload": "POSIX payload",
172
+ "shell.niu": "Niubash",
169
173
  "dock.state.noDistro": "설치된 배포판 없음",
170
174
  "dock.state.launcherOnly": "런처만 발견되어 내장할 수 없음",
171
175
  "dock.powershell.locked": "PowerShell은 최종 대체 항목이므로 끌 수 없습니다.",
@@ -213,6 +217,7 @@ const fr = {
213
217
  "dock.state.notInstalled": "Non détecté",
214
218
  "dock.state.wslPreferred": "Distro WSL détectée (bash WSL préféré)",
215
219
  "shell.payload": "POSIX payload",
220
+ "shell.niu": "Niubash",
216
221
  "dock.state.noDistro": "Aucune distribution installée",
217
222
  "dock.state.launcherOnly": "Seuls des lanceurs ont été trouvés; intégration impossible",
218
223
  "dock.powershell.locked": "PowerShell sert de repli final et ne peut pas être désactivé.",
@@ -260,6 +265,7 @@ const de = {
260
265
  "dock.state.notInstalled": "Nicht gefunden",
261
266
  "dock.state.wslPreferred": "WSL-Distro erkannt (WSL bash bevorzugt)",
262
267
  "shell.payload": "POSIX payload",
268
+ "shell.niu": "Niubash",
263
269
  "dock.state.noDistro": "Keine Distribution installiert",
264
270
  "dock.state.launcherOnly": "Nur Launcher gefunden; Einbettung nicht möglich",
265
271
  "dock.powershell.locked": "PowerShell ist die letzte Rückfallmöglichkeit und kann nicht deaktiviert werden.",
@@ -307,6 +313,7 @@ const it = {
307
313
  "dock.state.notInstalled": "Non trovato",
308
314
  "dock.state.wslPreferred": "Distro WSL rilevata (bash WSL preferito)",
309
315
  "shell.payload": "POSIX payload",
316
+ "shell.niu": "Niubash",
310
317
  "dock.state.noDistro": "Nessuna distribuzione installata",
311
318
  "dock.state.launcherOnly": "Trovato solo un launcher; incorporamento non possibile",
312
319
  "dock.powershell.locked": "PowerShell è il ripiego finale e non può essere disattivato.",
@@ -354,6 +361,7 @@ const ru = {
354
361
  "dock.state.notInstalled": "Не найден",
355
362
  "dock.state.wslPreferred": "Обнаружен дистрибутив WSL (предпочтительнее WSL bash)",
356
363
  "shell.payload": "POSIX payload",
364
+ "shell.niu": "Niubash",
357
365
  "dock.state.noDistro": "Нет установленных дистрибутивов",
358
366
  "dock.state.launcherOnly": "Найден только лаунчер, встраивание невозможно",
359
367
  "dock.powershell.locked": "PowerShell — резервный вариант, его нельзя отключить.",
@@ -401,6 +409,7 @@ const es = {
401
409
  "dock.state.notInstalled": "No detectado",
402
410
  "dock.state.wslPreferred": "Distro de WSL detectada (se prefiere bash de WSL)",
403
411
  "shell.payload": "POSIX payload",
412
+ "shell.niu": "Niubash",
404
413
  "dock.state.noDistro": "Sin distribución instalada",
405
414
  "dock.state.launcherOnly": "Solo se encontró un lanzador; no se puede incrustar",
406
415
  "dock.powershell.locked": "PowerShell es el respaldo final y no puede desactivarse.",
package/lib/shell-id.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  /** The five backends, in catalog order (`payload` = the pinned POSIX runtime). */
2
- export type ShellId = "powershell" | "gitbash" | "msys2" | "wsl" | "payload";
2
+ export type ShellId = "powershell" | "gitbash" | "msys2" | "wsl" | "payload" | "niu";
package/lib/shells.d.ts CHANGED
@@ -29,6 +29,7 @@ export interface ShellSwitches {
29
29
  gitbash: boolean;
30
30
  msys2: boolean;
31
31
  wsl: boolean;
32
+ niu: boolean;
32
33
  payload: boolean;
33
34
  }
34
35
  /** Everything the catalog builder needs from the outside world. */
package/lib/shells.js CHANGED
@@ -18,13 +18,14 @@
18
18
  /** Catalog order = fallback order: powershell is BOTH first choice and floor. The
19
19
  * pinned POSIX payload sits last: it only earns a seat when the machine's own
20
20
  * shells are absent, and a detected WSL distro vetoes it before that. */
21
- export const SHELL_PRIORITY = ["powershell", "gitbash", "msys2", "wsl", "payload"];
21
+ export const SHELL_PRIORITY = ["powershell", "gitbash", "msys2", "wsl", "niu", "payload"];
22
22
  /** Display labels. The catalog id/label pair is DECIDED BY THIS TABLE. */
23
23
  const LABELS = {
24
24
  powershell: "PowerShell",
25
25
  gitbash: "Git Bash",
26
26
  msys2: "MSYS2",
27
27
  wsl: "WSL bash",
28
+ niu: "Niubash",
28
29
  payload: "POSIX payload",
29
30
  };
30
31
  /**
@@ -70,6 +71,10 @@ export function uiArgv(shell, paths, wslDistro = "") {
70
71
  // The payload is a Git-for-Windows tree: the interactive rules are the
71
72
  // gitbash ones (an interactive non-login shell; its /etc still works).
72
73
  return [requirePath(paths.payload, shell), "-i"];
74
+ case "niu":
75
+ // Interactive non-login: niu reads ~/.niubashrc (its only Windows
76
+ // startup file), so the user's prompt and colours survive.
77
+ return [requirePath(paths.niu, shell), "-i"];
73
78
  case "wsl": {
74
79
  const distro = wslDistro.trim();
75
80
  return distro.length > 0
@@ -110,7 +115,8 @@ function probe(id, facts) {
110
115
  : id === "gitbash" ? facts.paths.gitbash
111
116
  : id === "msys2" ? facts.paths.msys2
112
117
  : id === "payload" ? facts.paths.payload
113
- : facts.paths.wsl;
118
+ : id === "niu" ? facts.paths.niu
119
+ : facts.paths.wsl;
114
120
  if (path === undefined || path.length === 0) {
115
121
  if (id === "payload" && facts.payloadSuppressed === true)
116
122
  return { available: false, reason: "wsl-preferred" };
package/lib/terminal.js CHANGED
@@ -50,6 +50,10 @@ export function terminalArgv(shell, paths, distro) {
50
50
  case "powershell": return [paths.pwsh, "-NoLogo", "-NoProfile"];
51
51
  case "gitbash": return [paths.gitbash, "-i"];
52
52
  case "payload": return [paths.payload, "-i"];
53
+ case "niu":
54
+ // Interactive non-login: reads ~/.niubashrc (the only startup file niu
55
+ // reads on Windows), keeps the user's prompt and colours.
56
+ return [paths.niu, "-i"];
53
57
  case "msys2":
54
58
  // -l, NOT -lc: this argv carries no command (the PTY itself is the
55
59
  // session), and `bash -lc` with no operand dies immediately with
@@ -51,7 +51,7 @@ function num(value, fallback, max) {
51
51
  * persist nothing, and look fine in the settings page. Two spellings of one fact
52
52
  * always drift, so this table is the single place the name appears.
53
53
  */
54
- const SWITCH_FIELD = { gitbash: "shellGitBash", msys2: "shellMsys2", wsl: "shellWsl", payload: "shellPayload" };
54
+ const SWITCH_FIELD = { gitbash: "shellGitBash", msys2: "shellMsys2", wsl: "shellWsl", payload: "shellPayload", niu: "shellNiu" };
55
55
  /**
56
56
  * Register the terminal routes.
57
57
  * @param webServer - the host webserver (may lack upgrade support).
@@ -159,7 +159,7 @@ async function dispatch(body, deps) {
159
159
  const next = requested;
160
160
  // Persist first, then answer with a rebuilt catalog: a switch that cannot be
161
161
  // stored must not look applied in the settings row.
162
- for (const key of ["gitbash", "msys2", "wsl", "payload"]) {
162
+ for (const key of ["gitbash", "msys2", "wsl", "payload", "niu"]) {
163
163
  if (typeof next[key] === "boolean")
164
164
  await deps.writeConfig([SWITCH_FIELD[key]], next[key]);
165
165
  }
@@ -65,6 +65,7 @@ export function mountBrowserTerminals(input) {
65
65
  // Opt-in twice over: enablePosixPayload provisions the runtime, this
66
66
  // switch decides whether a provisioned payload may show in pickers.
67
67
  payload: readField("shellPayload", false),
68
+ niu: readField("shellNiu", true),
68
69
  });
69
70
  const wslDistro = () => readField("wslDistro", "").trim();
70
71
  /** The master switch: off hides the child switches and refuses allocations. */
package/locale/de.json CHANGED
@@ -1,6 +1,6 @@
1
- {
2
- "meta": {
3
- "title": "Unteres Terminal",
4
- "description": "Shell-Werkzeug plus eingebettetes Terminal im unteren Dock (PowerShell / Git Bash / MSYS2 / WSL), mit Aktivierung pro Shell und Rückfallkette."
5
- }
6
- }
1
+ {
2
+ "meta": {
3
+ "title": "Unteres Terminal",
4
+ "description": "Shell-Werkzeug plus eingebettetes Terminal im unteren Dock (PowerShell / Git Bash / MSYS2 / WSL / Niubash), mit Aktivierung pro Shell und Rückfallkette."
5
+ }
6
+ }
package/locale/en.json CHANGED
@@ -1,6 +1,6 @@
1
- {
2
- "meta": {
3
- "title": "Bottom terminal",
4
- "description": "The shell tool plus an embedded terminal for the bottom dock (PowerShell / Git Bash / MSYS2 / WSL), with per-shell activation switches and a default-shell fallback chain."
5
- }
6
- }
1
+ {
2
+ "meta": {
3
+ "title": "Bottom terminal",
4
+ "description": "The shell tool plus an embedded terminal for the bottom dock (PowerShell / Git Bash / MSYS2 / WSL / Niubash), with per-shell activation switches and a default-shell fallback chain."
5
+ }
6
+ }
package/locale/es.json CHANGED
@@ -1,6 +1,6 @@
1
- {
2
- "meta": {
3
- "title": "Terminal inferior",
4
- "description": "La herramienta shell y un terminal incrustado del panel inferior (PowerShell / Git Bash / MSYS2 / WSL), con activación por shell y cadena de sustitución."
5
- }
6
- }
1
+ {
2
+ "meta": {
3
+ "title": "Terminal inferior",
4
+ "description": "La herramienta shell y un terminal incrustado del panel inferior (PowerShell / Git Bash / MSYS2 / WSL / Niubash), con activación por shell y cadena de sustitución."
5
+ }
6
+ }
package/locale/fr.json CHANGED
@@ -1,6 +1,6 @@
1
- {
2
- "meta": {
3
- "title": "Terminal inférieur",
4
- "description": "L'outil shell et un terminal intégré du dock bas (PowerShell / Git Bash / MSYS2 / WSL), avec activation par shell et chaîne de repli."
5
- }
6
- }
1
+ {
2
+ "meta": {
3
+ "title": "Terminal inférieur",
4
+ "description": "L'outil shell et un terminal intégré du dock bas (PowerShell / Git Bash / MSYS2 / WSL / Niubash), avec activation par shell et chaîne de repli."
5
+ }
6
+ }
package/locale/it.json CHANGED
@@ -1,6 +1,6 @@
1
- {
2
- "meta": {
3
- "title": "Terminale inferiore",
4
- "description": "Strumento shell e terminale incorporato del dock inferiore (PowerShell / Git Bash / MSYS2 / WSL), con attivazione per shell e catena di ripiego."
5
- }
6
- }
1
+ {
2
+ "meta": {
3
+ "title": "Terminale inferiore",
4
+ "description": "Strumento shell e terminale incorporato del dock inferiore (PowerShell / Git Bash / MSYS2 / WSL / Niubash), con attivazione per shell e catena di ripiego."
5
+ }
6
+ }
package/locale/ja.json CHANGED
@@ -1,6 +1,6 @@
1
- {
2
- "meta": {
3
- "title": "下部ターミナル",
4
- "description": "shell ツールと下部ドックの埋め込みターミナル(PowerShell / Git Bash / MSYS2 / WSL)。shell 単位の有効化スイッチと既定 shell の代替チェーン付き。"
5
- }
6
- }
1
+ {
2
+ "meta": {
3
+ "title": "下部ターミナル",
4
+ "description": "shell ツールと下部ドックの埋め込みターミナル(PowerShell / Git Bash / MSYS2 / WSL / Niubash)。shell 単位の有効化スイッチと既定 shell の代替チェーン付き。"
5
+ }
6
+ }
package/locale/ko.json CHANGED
@@ -1,6 +1,6 @@
1
- {
2
- "meta": {
3
- "title": "하단 터미널",
4
- "description": "shell 도구와 하단 독의 내장 터미널(PowerShell / Git Bash / MSYS2 / WSL). shell별 활성화 스위치와 기본 shell 대체 체인을 제공합니다."
5
- }
6
- }
1
+ {
2
+ "meta": {
3
+ "title": "하단 터미널",
4
+ "description": "shell 도구와 하단 독의 내장 터미널(PowerShell / Git Bash / MSYS2 / WSL / Niubash). shell별 활성화 스위치와 기본 shell 대체 체인을 제공합니다."
5
+ }
6
+ }
package/locale/ru.json CHANGED
@@ -1,6 +1,6 @@
1
- {
2
- "meta": {
3
- "title": "Нижний терминал",
4
- "description": "Инструмент shell и встроенный терминал нижней панели (PowerShell / Git Bash / MSYS2 / WSL) с активацией по оболочкам и цепочкой замещения."
5
- }
6
- }
1
+ {
2
+ "meta": {
3
+ "title": "Нижний терминал",
4
+ "description": "Инструмент shell и встроенный терминал нижней панели (PowerShell / Git Bash / MSYS2 / WSL / Niubash) с активацией по оболочкам и цепочкой замещения."
5
+ }
6
+ }
package/locale/zh.json CHANGED
@@ -1,6 +1,6 @@
1
- {
2
- "meta": {
3
- "title": "底部终端",
4
- "description": "shell 工具与底部工作台终端(PowerShell / Git Bash / MSYS2 / WSL),带激活开关与默认 shell 回落链。"
5
- }
6
- }
1
+ {
2
+ "meta": {
3
+ "title": "底部终端",
4
+ "description": "shell 工具与底部工作台终端(PowerShell / Git Bash / MSYS2 / WSL / Niubash),带激活开关与默认 shell 回落链。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,149 +1,151 @@
1
- {
2
- "name": "dsh-bash-terminal-ts",
3
- "version": "0.8.8",
4
- "publishConfig": {
5
- "tag": "latest"
6
- },
7
- "description": "DSH plugin: one shell tool that runs commands through PowerShell, Git Bash, MSYS2, or WSL on Windows, plus an embedded terminal for the bottom dock (dsh-better-sidebar's terminal tab) with per-shell activation switches and a default-shell fallback chain.",
8
- "author": "drscrewdriver",
9
- "license": "MIT",
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/drscrewdriver/dsh-bash-terminal-ts.git"
13
- },
14
- "bugs": {
15
- "url": "https://github.com/drscrewdriver/dsh-bash-terminal-ts/issues"
16
- },
17
- "homepage": "https://github.com/drscrewdriver/dsh-bash-terminal-ts#readme",
18
- "keywords": [
19
- "deepseek-harness",
20
- "dsh",
21
- "plugin",
22
- "terminal",
23
- "terminal-ui",
24
- "bottom-dock",
25
- "shell",
26
- "powershell",
27
- "git-bash",
28
- "wsl",
29
- "windows",
30
- "typescript"
31
- ],
32
- "engines": {
33
- "node": ">=22",
34
- "dsh": ">=0.1.0-rc.2 <0.3.0-0"
35
- },
36
- "type": "module",
37
- "main": "lib/index.js",
38
- "exports": {
39
- ".": "./lib/index.js",
40
- "./client": "./lib/client.js",
41
- "./locale/*.json": "./locale/*.json",
42
- "./package.json": "./package.json"
43
- },
44
- "files": [
45
- "lib",
46
- "dist",
47
- "src",
48
- "scripts",
49
- "template",
50
- "agent-presets",
51
- "locale",
52
- "tsconfig.json",
53
- "tsconfig.client.json",
54
- "tsconfig.test.json",
55
- "README.md",
56
- "README.en.md",
57
- "README.de.md",
58
- "README.fr.md",
59
- "README.it.md",
60
- "README.ru.md",
61
- "README.es.md",
62
- "CHANGELOG.de.md",
63
- "CHANGELOG.fr.md",
64
- "CHANGELOG.it.md",
65
- "CHANGELOG.ru.md",
66
- "CHANGELOG.es.md",
67
- "LICENSE",
68
- "CHANGELOG.md",
69
- "cordis.patch.yml",
70
- "dsh.plugin.json",
71
- "screenshots.json"
72
- ],
73
- "scripts": {
74
- "build": "tsc -p tsconfig.json && tsc -p tsconfig.client.json && node scripts/build-client.mjs && tsc -p tsconfig.test.json && node scripts/build-browser-tests.mjs && node scripts/check-artifacts.mjs",
75
- "check:artifacts": "node scripts/check-artifacts.mjs",
76
- "prepack": "npm run build",
77
- "build:client": "node scripts/build-client.mjs",
78
- "test": "node test-dist/unit.js && node test-dist/apply.js && node test-dist/client.js && node test-dist/terminal.js && node test-dist/shells.js && node test-dist/webterminals.js && node test/browser.mjs",
79
- "lint": "eslint .",
80
- "link:shells": "node scripts/link-shells.mjs",
81
- "payload:provision": "node scripts/provision-payload.mjs",
82
- "presets:install": "node agent-presets/install-presets.mjs"
83
- },
84
- "dsh": {
85
- "bundle": {
86
- "patch": "./cordis.patch.yml"
87
- },
88
- "client": {
89
- "platform": "web",
90
- "immediately": true,
91
- "inject": [
92
- "@deepseek-ai/dsh-client-locale"
93
- ]
94
- }
95
- },
96
- "optionalDependencies": {
97
- "@drscrewdriver/posix-runtime-win32-x64": "0.1.2"
98
- },
99
- "peerDependencies": {
100
- "@deepseek-ai/cordis": "^4.0.2",
101
- "@deepseek-ai/dsh-client-locale": ">=0.1.0-rc.2 <0.3.0-0",
102
- "@deepseek-ai/dsh-client-ui-slots": ">=0.1.0-rc.2 <0.3.0-0",
103
- "@deepseek-ai/dsh-llm": ">=0.1.0-rc.2 <0.3.0-0",
104
- "@deepseek-ai/dsh-sandbox": ">=0.1.0-rc.2 <0.3.0-0",
105
- "@deepseek-ai/dsh-settings": ">=0.1.0-rc.2 <0.3.0-0",
106
- "@deepseek-ai/dsh-shell": ">=0.1.0-rc.2 <0.3.0-0",
107
- "@deepseek-ai/dsh-timeout": ">=0.1.0-rc.2 <0.3.0-0",
108
- "@deepseek-ai/dsh-tools": ">=0.1.0-rc.2 <0.3.0-0",
109
- "react": "^18.2.0"
110
- },
111
- "dependencies": {
112
- "@deepseek-ai/schemastery": "^3.18.4",
113
- "@xterm/addon-fit": "^0.10.0",
114
- "@xterm/xterm": "^5.5.0",
115
- "node-pty": "1.2.0-beta.15",
116
- "ws": "^8.18.0"
117
- },
118
- "devDependencies": {
119
- "@deepseek-ai/cordis": "^4.0.2",
120
- "@deepseek-ai/dsh-client-locale": "0.2.0-rc.1",
121
- "@deepseek-ai/dsh-client-store": "0.2.0-rc.1",
122
- "@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.1",
123
- "@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.1",
124
- "@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.1",
125
- "@deepseek-ai/dsh-http-proxy": "0.2.0-rc.1",
126
- "@deepseek-ai/dsh-llm": "0.2.0-rc.1",
127
- "@deepseek-ai/dsh-sandbox": "0.2.0-rc.1",
128
- "@deepseek-ai/dsh-sandbox-policy": "0.2.0-rc.1",
129
- "@deepseek-ai/dsh-scope": "0.2.0-rc.1",
130
- "@deepseek-ai/dsh-settings": "0.2.0-rc.1",
131
- "@deepseek-ai/dsh-shell": "0.2.0-rc.1",
132
- "@deepseek-ai/dsh-subprocess": "0.2.0-rc.1",
133
- "@deepseek-ai/dsh-timeout": "0.2.0-rc.1",
134
- "@deepseek-ai/dsh-tools": "0.2.0-rc.1",
135
- "@eslint/js": "^10.0.1",
136
- "@types/node": "^22.10.0",
137
- "@types/react": "^18.2.0",
138
- "@types/react-dom": "^18.2.0",
139
- "@types/ws": "^8.5.13",
140
- "esbuild": "^0.28.2",
141
- "eslint": "^10.11.0",
142
- "eslint-plugin-react-hooks": "^7.1.1",
143
- "globals": "^17.12.0",
144
- "react": "^18.2.0",
145
- "react-dom": "^18.2.0",
146
- "typescript": "^5.9.0",
147
- "typescript-eslint": "^8.71.0"
148
- }
149
- }
1
+ {
2
+ "name": "dsh-bash-terminal-ts",
3
+ "version": "0.9.0",
4
+ "publishConfig": {
5
+ "registry": "https://registry.npmjs.org",
6
+ "tag": "latest"
7
+ },
8
+ "description": "DSH plugin: one shell tool that runs commands through PowerShell, Git Bash, MSYS2, WSL or Niubash on Windows, plus an embedded terminal for the bottom dock (dsh-better-sidebar's terminal tab) with per-shell activation switches and a default-shell fallback chain.",
9
+ "author": "drscrewdriver",
10
+ "license": "MIT",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/drscrewdriver/dsh-bash-terminal-ts.git"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/drscrewdriver/dsh-bash-terminal-ts/issues"
17
+ },
18
+ "homepage": "https://github.com/drscrewdriver/dsh-bash-terminal-ts#readme",
19
+ "keywords": [
20
+ "deepseek-harness",
21
+ "dsh",
22
+ "plugin",
23
+ "terminal",
24
+ "terminal-ui",
25
+ "bottom-dock",
26
+ "shell",
27
+ "powershell",
28
+ "git-bash",
29
+ "wsl",
30
+ "windows",
31
+ "typescript"
32
+ ],
33
+ "engines": {
34
+ "node": ">=22",
35
+ "dsh": ">=0.1.0-rc.2 <0.3.0-0"
36
+ },
37
+ "type": "module",
38
+ "main": "lib/index.js",
39
+ "exports": {
40
+ ".": "./lib/index.js",
41
+ "./client": "./lib/client.js",
42
+ "./locale/*.json": "./locale/*.json",
43
+ "./package.json": "./package.json"
44
+ },
45
+ "files": [
46
+ "lib",
47
+ "dist",
48
+ "src",
49
+ "scripts",
50
+ "template",
51
+ "agent-presets",
52
+ "docs",
53
+ "locale",
54
+ "tsconfig.json",
55
+ "tsconfig.client.json",
56
+ "tsconfig.test.json",
57
+ "README.md",
58
+ "README.en.md",
59
+ "README.de.md",
60
+ "README.fr.md",
61
+ "README.it.md",
62
+ "README.ru.md",
63
+ "README.es.md",
64
+ "CHANGELOG.de.md",
65
+ "CHANGELOG.fr.md",
66
+ "CHANGELOG.it.md",
67
+ "CHANGELOG.ru.md",
68
+ "CHANGELOG.es.md",
69
+ "LICENSE",
70
+ "CHANGELOG.md",
71
+ "cordis.patch.yml",
72
+ "dsh.plugin.json",
73
+ "screenshots.json"
74
+ ],
75
+ "scripts": {
76
+ "build": "tsc -p tsconfig.json && tsc -p tsconfig.client.json && node scripts/build-client.mjs && tsc -p tsconfig.test.json && node scripts/build-browser-tests.mjs && node scripts/check-artifacts.mjs",
77
+ "check:artifacts": "node scripts/check-artifacts.mjs",
78
+ "prepack": "npm run build",
79
+ "build:client": "node scripts/build-client.mjs",
80
+ "test": "node test-dist/unit.js && node test-dist/apply.js && node test-dist/client.js && node test-dist/terminal.js && node test-dist/shells.js && node test-dist/webterminals.js && node test/browser.mjs",
81
+ "lint": "eslint .",
82
+ "link:shells": "node scripts/link-shells.mjs",
83
+ "payload:provision": "node scripts/provision-payload.mjs",
84
+ "presets:install": "node agent-presets/install-presets.mjs"
85
+ },
86
+ "dsh": {
87
+ "bundle": {
88
+ "patch": "./cordis.patch.yml"
89
+ },
90
+ "client": {
91
+ "platform": "web",
92
+ "immediately": true,
93
+ "inject": [
94
+ "@deepseek-ai/dsh-client-locale"
95
+ ]
96
+ }
97
+ },
98
+ "optionalDependencies": {
99
+ "@drscrewdriver/posix-runtime-win32-x64": "0.1.2"
100
+ },
101
+ "peerDependencies": {
102
+ "@deepseek-ai/cordis": "^4.0.2",
103
+ "@deepseek-ai/dsh-client-locale": ">=0.1.0-rc.2 <0.3.0-0",
104
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.1.0-rc.2 <0.3.0-0",
105
+ "@deepseek-ai/dsh-llm": ">=0.1.0-rc.2 <0.3.0-0",
106
+ "@deepseek-ai/dsh-sandbox": ">=0.1.0-rc.2 <0.3.0-0",
107
+ "@deepseek-ai/dsh-settings": ">=0.1.0-rc.2 <0.3.0-0",
108
+ "@deepseek-ai/dsh-shell": ">=0.1.0-rc.2 <0.3.0-0",
109
+ "@deepseek-ai/dsh-timeout": ">=0.1.0-rc.2 <0.3.0-0",
110
+ "@deepseek-ai/dsh-tools": ">=0.1.0-rc.2 <0.3.0-0",
111
+ "react": "^18.2.0"
112
+ },
113
+ "dependencies": {
114
+ "@deepseek-ai/schemastery": "^3.18.4",
115
+ "@xterm/addon-fit": "^0.10.0",
116
+ "@xterm/xterm": "^5.5.0",
117
+ "node-pty": "1.2.0-beta.15",
118
+ "ws": "^8.18.0"
119
+ },
120
+ "devDependencies": {
121
+ "@deepseek-ai/cordis": "^4.0.2",
122
+ "@deepseek-ai/dsh-client-locale": "0.2.0-rc.1",
123
+ "@deepseek-ai/dsh-client-store": "0.2.0-rc.1",
124
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.1",
125
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.1",
126
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.1",
127
+ "@deepseek-ai/dsh-http-proxy": "0.2.0-rc.1",
128
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.1",
129
+ "@deepseek-ai/dsh-sandbox": "0.2.0-rc.1",
130
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.0-rc.1",
131
+ "@deepseek-ai/dsh-scope": "0.2.0-rc.1",
132
+ "@deepseek-ai/dsh-settings": "0.2.0-rc.1",
133
+ "@deepseek-ai/dsh-shell": "0.2.0-rc.1",
134
+ "@deepseek-ai/dsh-subprocess": "0.2.0-rc.1",
135
+ "@deepseek-ai/dsh-timeout": "0.2.0-rc.1",
136
+ "@deepseek-ai/dsh-tools": "0.2.0-rc.1",
137
+ "@eslint/js": "^10.0.1",
138
+ "@types/node": "^22.10.0",
139
+ "@types/react": "^18.2.0",
140
+ "@types/react-dom": "^18.2.0",
141
+ "@types/ws": "^8.5.13",
142
+ "esbuild": "^0.28.2",
143
+ "eslint": "^10.11.0",
144
+ "eslint-plugin-react-hooks": "^7.1.1",
145
+ "globals": "^17.12.0",
146
+ "react": "^18.2.0",
147
+ "react-dom": "^18.2.0",
148
+ "typescript": "^5.9.0",
149
+ "typescript-eslint": "^8.71.0"
150
+ }
151
+ }