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.
- package/CHANGELOG.md +201 -190
- package/README.en.md +2 -1
- package/README.md +3 -2
- package/agent-presets/README.md +171 -170
- package/agent-presets/install-presets.mjs +180 -179
- package/agent-presets/standard-win-niu/agent.cordis.yml +271 -0
- package/agent-presets/standard-win-niu/preset.yml +2 -0
- package/cordis.patch.yml +84 -83
- package/dist/client.core.js +10 -1
- package/dist/client.js +10 -1
- package/docs/dsh-plugin-development.md +169 -0
- package/docs/niu-backend.md +197 -0
- package/dsh.plugin.json +3 -3
- package/lib/client.js +10 -1
- package/lib/dsh-types.d.ts +14 -2
- package/lib/index.d.ts +15 -2
- package/lib/index.js +43 -5
- package/lib/locales.js +9 -0
- package/lib/shell-id.d.ts +1 -1
- package/lib/shells.d.ts +1 -0
- package/lib/shells.js +8 -2
- package/lib/terminal.js +4 -0
- package/lib/webterminals/host.js +2 -2
- package/lib/webterminals/mount.js +1 -0
- package/locale/de.json +6 -6
- package/locale/en.json +6 -6
- package/locale/es.json +6 -6
- package/locale/fr.json +6 -6
- package/locale/it.json +6 -6
- package/locale/ja.json +6 -6
- package/locale/ko.json +6 -6
- package/locale/ru.json +6 -6
- package/locale/zh.json +6 -6
- package/package.json +151 -149
- package/scripts/check-artifacts.mjs +96 -96
- package/src/client.tsx +685 -685
- package/src/dsh-types.ts +332 -320
- package/src/index.ts +1316 -1275
- package/src/locales.ts +461 -452
- package/src/shell-id.ts +11 -11
- package/src/shells.ts +279 -272
- package/src/terminal.ts +616 -612
- package/src/webterminals/host.ts +361 -361
- package/src/webterminals/mount.ts +237 -236
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
# The `standard` agent preset: the full coding agent, mounted once per process.
|
|
2
|
+
#
|
|
3
|
+
# This file is an AGENT-PLANE composition. The roster mounts it ONCE under a
|
|
4
|
+
# standing scope; every session naming it joins by scope parentage, so the
|
|
5
|
+
# tools and prompt sections registered here cover each joined agent while a
|
|
6
|
+
# session's own state stays keyed per Session/Agent inside the plugins. The
|
|
7
|
+
# host composition (`base.cordis.yml` + `web.cordis.yml`) keeps everything a
|
|
8
|
+
# preset must not own: the registries themselves, the sandbox and approval
|
|
9
|
+
# stack, persistence, and the model route.
|
|
10
|
+
#
|
|
11
|
+
# A service row here MUST sit inside a group carrying an `isolate` realm.
|
|
12
|
+
# Without one it publishes into the root realm, where it is process-global —
|
|
13
|
+
# another preset publishing the same name collides, and a host reader would
|
|
14
|
+
# resolve one preset's instance for every session; `dsh-agent-presets` rejects
|
|
15
|
+
# that at mount. `true` means an entry-local realm: this standing mount's own
|
|
16
|
+
# private instance, apart from every other preset's. (A shared label does NOT
|
|
17
|
+
# pool instances — `provide()` throws on the second registration under the
|
|
18
|
+
# same realm symbol; labels join REALMS, and are not what this file needs.)
|
|
19
|
+
|
|
20
|
+
# ── identity ────────────────────────────────────────────────────────────────
|
|
21
|
+
|
|
22
|
+
# The preset's own persona, shadowing the deployment default for this agent.
|
|
23
|
+
# `{{model}}` and `{{cwd}}` resolve from the agent's own route and workspace.
|
|
24
|
+
- id: persona
|
|
25
|
+
name: '@deepseek-ai/dsh-persona'
|
|
26
|
+
config:
|
|
27
|
+
prefix: |-
|
|
28
|
+
You are a coding agent powered by the {{model}} model. Your working directory is {{cwd}}.
|
|
29
|
+
You are running on a Windows host, and your default shell tool is Niubash (niu — a Rust-native bash 5.3-compatible shell, no MSYS emulation layer).
|
|
30
|
+
Write every command in Bash syntax (GNU bash 5.3 semantics — including 5.3-only features such as no-fork command substitution `${ cmd; }`): use the bundled WinuxCmd utilities (178 applets: ls, cp, rm, grep, find, cat, sed, awk, etc.) and shell constructs (pipes, redirections, subshells, &&, ||, ;, brace expansion, process substitution). Do NOT use PowerShell cmdlets or syntax — they will fail in this environment. Niubash keeps Windows paths as the native representation and translates path-shaped arguments (`/c/Windows` → `C:\Windows`) by a deterministic documented contract; `name=value` forms (`--prefix=/c/x`) are left alone.
|
|
31
|
+
|
|
32
|
+
Python — use only %%pythonPath%% (the Windows form C:\\Users\\<you>\\AppData\\Local\\Programs\\Python\\PythonXYY\\python.exe works directly; niu passes Windows paths natively). You may also invoke it as `python` if on PATH (WinuxCmd resolves Windows PATH). Never py.exe (Store shim /launcher → dialogs). No uv/pipx unless you installed them.
|
|
33
|
+
|
|
34
|
+
Shell/session — default bash (Niubash); every call is a fresh process (cwd/state not kept) → pass workdir, don't rely on cd persisting across calls. Both C:\... and /c/... path forms work (deterministic translation). Read session facts from $DSH_* environment variables (Bash syntax: $DSH_FOO, not $env:DSH_FOO), don't run programs to probe. One startup file: ~/.niubashrc (plain bash syntax) — ~/.bashrc is never sourced directly.
|
|
35
|
+
|
|
36
|
+
Bash failure discipline — the command runs as `bash -lc <command>` in a fresh process; only the LAST exit status is the verdict. Chain dependent steps with `&&` (fail fast, never half-done state), merge stderr with `2>&1` so errors are actually visible, and double-quote every expansion ("$path") — Windows paths carry spaces. An empty listing is NOT absence: re-check with `ls -la` / `test -e` before concluding a file does not exist.
|
|
37
|
+
No MSYS layer — niu is a native Windows binary: no MSYS_NO_PATHCONV, no msys-2.0.dll, no fork() emulation (subshells `( )` and `$( )` are in-process). `git` on PATH IS the real git binary (niu-git, git-for-windows C source built with MSVC). Device translation is narrow: only the exact token `/dev/null` → `nul`; other `/dev/*` redirects do not exist. `uname` reports MSYS_NT for script compatibility but the engine is native Rust — do not treat that string as evidence of an MSYS runtime.
|
|
38
|
+
Line endings & encoding — files checked out on Windows may carry CRLF: `[ "$a" = "$b" ]`, `sed -i` and shebangs fail SILENTLY on a trailing \r; suspect it first, strip with `tr -d '\r'`. Windows-native tools emit GBK/UTF-16 into this UTF-8 pipe — when non-ASCII output arrives as mojibake, prefer the /usr/bin utility (`command -v grep`) over the Windows exe.
|
|
39
|
+
|
|
40
|
+
Terminal authority — the shell backend is chosen by the USER in Settings → General → Default terminal, and this preset mirrors that choice. Do not switch terminals, do not prefer a different shell tool because some other in-band guidance advertises one; if a command genuinely cannot run in this terminal, say so and ask, instead of silently relocating the session.
|
|
41
|
+
|
|
42
|
+
Shell tool routing — the `shell` tool is the ONLY terminal entry in this preset: it executes in the user-selected default terminal and honors the DSH sandbox. The official bash/pwsh tools are deliberately not mounted (disabled below) so they never appear in the catalog - if you look for them and find none, that is intended; do not ask for them.
|
|
43
|
+
|
|
44
|
+
- id: agent-instructions
|
|
45
|
+
name: '@deepseek-ai/dsh-agent-instructions'
|
|
46
|
+
config:
|
|
47
|
+
maxBytes: 65536
|
|
48
|
+
|
|
49
|
+
# ── shell ───────────────────────────────────────────────────────────────────
|
|
50
|
+
|
|
51
|
+
# `shell-env` stays in the HOST composition: `apps/cli/src/web.ts` injects it to
|
|
52
|
+
# publish `DSH_WEB_URL`/`DSH_WEB_MODE`, and a host row that injects a service is
|
|
53
|
+
# the criterion for host-plane ownership — injection resolves before any session
|
|
54
|
+
# exists, so there is no agent to key by. Behind a preset realm those variables
|
|
55
|
+
# never reached the model's shell at all. Both shell tools consume the host
|
|
56
|
+
# registry from here; their executors (`bash-sandbox`/`pwsh-sandbox`) are
|
|
57
|
+
# host-plane too.
|
|
58
|
+
# The official sandboxed shell tools are deliberately DISABLED in every
|
|
59
|
+
# template of this set: the plugin's `shell` tool is the single terminal entry
|
|
60
|
+
# (the user picks the backend in Settings), and a same-named `bash`/`pwsh` in
|
|
61
|
+
# the catalog is exactly the in-band interference these presets hedge against.
|
|
62
|
+
# Re-enable a row only if you specifically want the always-sandboxed surface
|
|
63
|
+
# alongside `shell`.
|
|
64
|
+
- id: tool-bash
|
|
65
|
+
name: '@deepseek-ai/dsh-tool-bash'
|
|
66
|
+
disabled: true
|
|
67
|
+
|
|
68
|
+
- id: tool-pwsh
|
|
69
|
+
name: '@deepseek-ai/dsh-tool-pwsh'
|
|
70
|
+
disabled: true
|
|
71
|
+
|
|
72
|
+
# ── filesystem ──────────────────────────────────────────────────────────────
|
|
73
|
+
|
|
74
|
+
# Both register into the host `tools` registry and provide nothing, so
|
|
75
|
+
# they need no realm. The `fs` service and its policy stay in the host.
|
|
76
|
+
- id: tool-fs
|
|
77
|
+
name: '@deepseek-ai/dsh-tool-fs'
|
|
78
|
+
|
|
79
|
+
- id: tool-fs-search
|
|
80
|
+
name: '@deepseek-ai/dsh-tool-fs-search'
|
|
81
|
+
config:
|
|
82
|
+
sampleOverCapGlobResults: false
|
|
83
|
+
|
|
84
|
+
# ── background jobs ────────────────────────────────────────────────────────
|
|
85
|
+
|
|
86
|
+
# Only the model-facing controls. The task REGISTRY stays on the host plane:
|
|
87
|
+
# its producers sit outside any realm this file could put it in — `tool-bash`
|
|
88
|
+
# above resolves it with `ctx.get`, and an entry-local realm here is invisible
|
|
89
|
+
# to every sibling row, so `run_in_background` would answer "background jobs
|
|
90
|
+
# unavailable" while these controls sat in the catalog. The registry is keyed by
|
|
91
|
+
# owning agent anyway, so one host instance serves every session. What a preset
|
|
92
|
+
# chooses is whether its agent can collect and stop background work at all.
|
|
93
|
+
- id: tool-jobs
|
|
94
|
+
name: '@deepseek-ai/dsh-tool-jobs'
|
|
95
|
+
|
|
96
|
+
# ── skills ──────────────────────────────────────────────────────────────────
|
|
97
|
+
|
|
98
|
+
# The skill REGISTRY lives in the host composition and is layered per scope:
|
|
99
|
+
# these rows register into THIS preset's layer of it, so they need no realm.
|
|
100
|
+
# `skill-filesystem` contributes local-root discovery for agents on this preset, and
|
|
101
|
+
# `tool-skill` gives them the catalog and loader; the merged catalog also
|
|
102
|
+
# carries whatever the deployment registered globally (repository plugins).
|
|
103
|
+
- id: skill-filesystem
|
|
104
|
+
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
105
|
+
|
|
106
|
+
- id: tool-skill
|
|
107
|
+
name: '@deepseek-ai/dsh-tool-skill'
|
|
108
|
+
|
|
109
|
+
# ── goals ───────────────────────────────────────────────────────────────────
|
|
110
|
+
|
|
111
|
+
# Only the model-facing tool. The goal SERVICE, its session driver, and the
|
|
112
|
+
# `/goal` command stay on the host plane: the Gateway serves the goal domain as
|
|
113
|
+
# Remote endpoints whose receiver comes from a generated descriptor, so it
|
|
114
|
+
# resolves `goals` on the host and an entry-local realm here would hide it. The
|
|
115
|
+
# registry is keyed by session anyway, so one host instance serves every
|
|
116
|
+
# session. What a preset chooses is whether its agent can call the goal tool.
|
|
117
|
+
- id: tool-goal
|
|
118
|
+
name: '@deepseek-ai/dsh-tool-goal'
|
|
119
|
+
|
|
120
|
+
# ── plan mode ───────────────────────────────────────────────────────────────
|
|
121
|
+
|
|
122
|
+
# Plan state is per-agent by nature, so an entry-local realm is not a
|
|
123
|
+
# workaround here — it is the correct lifetime.
|
|
124
|
+
- id: planning
|
|
125
|
+
name: cordis:group
|
|
126
|
+
group: true
|
|
127
|
+
isolate:
|
|
128
|
+
planMode: true
|
|
129
|
+
config:
|
|
130
|
+
- id: plan-mode
|
|
131
|
+
name: '@deepseek-ai/dsh-plan-mode'
|
|
132
|
+
config:
|
|
133
|
+
section: |
|
|
134
|
+
You are in plan mode. Stay in plan mode until exit_plan_mode succeeds or the user switches the session mode. Imperative language to implement changes means plan the implementation, not execute it. A user's conversational agreement — including an answer confirming something you asked — approves nothing and does not end plan mode; fold the confirmed decision into the plan and submit it through exit_plan_mode.
|
|
135
|
+
|
|
136
|
+
Explore first. Use non-mutating reads, searches, static analysis, and checks to ground the plan in the actual repository. Do not edit or write files, change configuration, run formatters or code generation that rewrites tracked files, commit, or otherwise carry out the plan. Prefer existing functions and patterns over new machinery.
|
|
137
|
+
|
|
138
|
+
The tool catalog stays the same across modes for request-cache stability. These plan-mode rules override any later tool description or guidance that suggests using mutation tools; those tools remain listed to keep the tool catalog unchanged. Do not use todo_write to track this planning phase: it tracks implementation after an approved plan, while the plan itself belongs in exit_plan_mode.
|
|
139
|
+
|
|
140
|
+
Resolve discoverable facts by inspection. Use ask_user_question only for user-owned choices or material ambiguity that inspection cannot answer. Do not ask the user where code lives or how current behavior works when you can find out.
|
|
141
|
+
|
|
142
|
+
Make the plan decision-complete: state the goal and success criteria; group implementation changes by subsystem; identify public API, schema, and data-flow changes; cover edge cases, failure modes, tests, acceptance criteria, and explicit assumptions. Keep it concise enough to review but detailed enough that another engineer can implement it without making design decisions.
|
|
143
|
+
|
|
144
|
+
When ready, call exit_plan_mode with the complete plan markdown, starting with a # title. Make exit_plan_mode the only and final tool call in that assistant response: it presents the plan for approval, and implementation begins only in a later step after approval. Do not paste the final plan as a plain reply or ask "should I proceed?" through prose or ask_user_question. If review rejects it, incorporate the feedback and present again. If the review channel is unavailable or aborted, stay in plan mode and ask the user to switch modes manually; do not proceed with implementation.
|
|
145
|
+
|
|
146
|
+
# ── compaction ──────────────────────────────────────────────────────────────
|
|
147
|
+
|
|
148
|
+
# `compaction-basic` reads `toolResultPrune` through `ctx.get`, so the pruner must
|
|
149
|
+
# share this realm rather than sit outside it.
|
|
150
|
+
#
|
|
151
|
+
# `tokenMeter` is deliberately NOT in this realm: the meter stays on the HOST
|
|
152
|
+
# plane, and the rows here resolve that one instance. It takes no configuration,
|
|
153
|
+
# keys every fold by Session, and owns the context-meter projection units the
|
|
154
|
+
# browser reads for every session — behind a realm those units would come and go
|
|
155
|
+
# with whichever presets happen to be mounted. What a preset chooses is whether
|
|
156
|
+
# its agent compacts at all, which is `compaction-basic` below.
|
|
157
|
+
- id: compaction
|
|
158
|
+
name: cordis:group
|
|
159
|
+
group: true
|
|
160
|
+
isolate:
|
|
161
|
+
compaction: true
|
|
162
|
+
toolResultPruner: true
|
|
163
|
+
config:
|
|
164
|
+
- id: compaction-basic
|
|
165
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
166
|
+
|
|
167
|
+
- id: command-compact
|
|
168
|
+
name: '@deepseek-ai/dsh-command-compact'
|
|
169
|
+
|
|
170
|
+
- id: tool-result-pruner
|
|
171
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
172
|
+
config:
|
|
173
|
+
thresholdChars: 8192
|
|
174
|
+
headChars: 4096
|
|
175
|
+
tailChars: 1024
|
|
176
|
+
|
|
177
|
+
# ── delegation and workflows ────────────────────────────────────────────────
|
|
178
|
+
|
|
179
|
+
# The `subagents` registry and its spawn/fork backends live in the HOST
|
|
180
|
+
# composition: the registry is a process singleton whose cross-session queries
|
|
181
|
+
# the api-proxy serves to the browser, and a provider name may only be
|
|
182
|
+
# registered once. This preset contributes the delegation TOOLS, which resolve
|
|
183
|
+
# that host registry.
|
|
184
|
+
#
|
|
185
|
+
# `workflows` is different — nothing outside an agent reads it — so every row
|
|
186
|
+
# that reaches it shares one entry-local realm here, and a consumer left
|
|
187
|
+
# outside would resolve a host registry this preset does not populate.
|
|
188
|
+
#
|
|
189
|
+
# `tool-subagent-report` is host-plane for the same reason as the registry,
|
|
190
|
+
# not because a preset may not want it: it registers a CONTINUABLE SETUP on
|
|
191
|
+
# that singleton rather than a tool this agent calls, and the setup list is
|
|
192
|
+
# not scope-aware — one copy per mounted preset means every child gets
|
|
193
|
+
# `report` registered once per live session, which throws on the second.
|
|
194
|
+
- id: delegation
|
|
195
|
+
name: cordis:group
|
|
196
|
+
group: true
|
|
197
|
+
isolate:
|
|
198
|
+
workflowEngine: true
|
|
199
|
+
config:
|
|
200
|
+
- id: tool-subagent-control
|
|
201
|
+
name: '@deepseek-ai/dsh-tool-subagent-control'
|
|
202
|
+
|
|
203
|
+
- id: tool-subagent-list-agents
|
|
204
|
+
name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
|
|
205
|
+
|
|
206
|
+
- id: tool-subagent
|
|
207
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
208
|
+
config:
|
|
209
|
+
provider: spawn
|
|
210
|
+
toolName: subagent
|
|
211
|
+
backgroundMode: continuable
|
|
212
|
+
|
|
213
|
+
- id: tool-subagent-fork
|
|
214
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
215
|
+
config:
|
|
216
|
+
provider: fork
|
|
217
|
+
toolName: subagent_fork
|
|
218
|
+
backgroundMode: continuable
|
|
219
|
+
|
|
220
|
+
# Production dsh does not install these optional providers. An opting-in
|
|
221
|
+
# Profile mounts each provider once on the host plane; copy this preset,
|
|
222
|
+
# then remove `disabled` from the matching tool row.
|
|
223
|
+
- id: tool-subagent-codex
|
|
224
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
225
|
+
disabled: true
|
|
226
|
+
config:
|
|
227
|
+
provider: codex
|
|
228
|
+
toolName: subagent_codex
|
|
229
|
+
backgroundMode: one-shot
|
|
230
|
+
maxDepth: provider-managed
|
|
231
|
+
|
|
232
|
+
- id: tool-subagent-claude-code
|
|
233
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
234
|
+
disabled: true
|
|
235
|
+
config:
|
|
236
|
+
provider: claude-code
|
|
237
|
+
toolName: subagent_claude_code
|
|
238
|
+
backgroundMode: one-shot
|
|
239
|
+
maxDepth: provider-managed
|
|
240
|
+
|
|
241
|
+
- id: workflow-worker-thread
|
|
242
|
+
name: '@deepseek-ai/dsh-workflow-worker-thread'
|
|
243
|
+
config:
|
|
244
|
+
provider: spawn
|
|
245
|
+
|
|
246
|
+
- id: tool-workflow
|
|
247
|
+
name: '@deepseek-ai/dsh-tool-workflow'
|
|
248
|
+
|
|
249
|
+
- id: tool-ralph
|
|
250
|
+
name: '@deepseek-ai/dsh-tool-ralph'
|
|
251
|
+
config:
|
|
252
|
+
subagentProvider: spawn
|
|
253
|
+
maxRounds: 64
|
|
254
|
+
|
|
255
|
+
# ── remaining model-facing rows ─────────────────────────────────────────────
|
|
256
|
+
|
|
257
|
+
- id: tool-ask-user
|
|
258
|
+
name: '@deepseek-ai/dsh-tool-ask-user'
|
|
259
|
+
|
|
260
|
+
- id: tool-todo
|
|
261
|
+
name: '@deepseek-ai/dsh-tool-todo'
|
|
262
|
+
config:
|
|
263
|
+
allowParallelInProgress: true
|
|
264
|
+
|
|
265
|
+
# The `web` service and its search provider stay in the host composition; only
|
|
266
|
+
# the model-facing tool is per-session.
|
|
267
|
+
- id: tool-web
|
|
268
|
+
name: '@deepseek-ai/dsh-tool-web'
|
|
269
|
+
config:
|
|
270
|
+
fetch: false
|
|
271
|
+
searchTimeoutMs: 60000
|
package/cordis.patch.yml
CHANGED
|
@@ -1,83 +1,84 @@
|
|
|
1
|
-
# dsh-bash-terminal-ts bundle layer — applied automatically when a profile lists
|
|
2
|
-
# this package in dsh.profile.bundles (dsh.bundle.patch declaration).
|
|
3
|
-
- insert:
|
|
4
|
-
- id: tool-bash-terminal
|
|
5
|
-
name: 'dsh-bash-terminal-ts'
|
|
6
|
-
|
|
7
|
-
# ---------------------------------------------------------------------------
|
|
8
|
-
# The host's own right-sidebar terminal: which shells its selector offers.
|
|
9
|
-
#
|
|
10
|
-
# Why a plugin touches this at all (user decision, 2026-10-13, overriding the
|
|
11
|
-
# original "never modify the host terminal row" rule): the official menu builds
|
|
12
|
-
# its list from `shellCandidates` through `discoverShells`, which keys a Map by
|
|
13
|
-
# the executable FILE NAME (`shellKind` = basename, lower-cased, `.exe`
|
|
14
|
-
# stripped) and keeps the earliest entry. Git Bash and MSYS2 are both
|
|
15
|
-
# `bash.exe`, so on the stock list MSYS2 can never appear. A hard link at
|
|
16
|
-
# `C:\msys64\usr\bin\msys-bash.exe` gives it a distinct kind; measured over a
|
|
17
|
-
# real PTY, bash does not mis-classify itself under the new name
|
|
18
|
-
# (`argv0=/usr/bin/msys-bash`, `$BASH_VERSION` 5.3.15, `gcc` resolving to
|
|
19
|
-
# /mingw64/bin, correct `-dumpmachine`).
|
|
20
|
-
#
|
|
21
|
-
# Why all twelve keys are spelled out: a patch replaces the targeted row's WHOLE
|
|
22
|
-
# config. Omit one and that limit silently reverts to nothing at all - each
|
|
23
|
-
# field's `.default()` applies when the field is absent from the schema input,
|
|
24
|
-
# and a replaced row provides no input for the keys it does not mention.
|
|
25
|
-
# `scripts/check-artifacts.mjs` asserts the full key set, so a host upgrade that
|
|
26
|
-
# adds a thirteenth key fails the build instead of quietly dropping a limit.
|
|
27
|
-
#
|
|
28
|
-
# Which entries are prepended, and why nothing is displaced: `discoverShells` keeps the
|
|
29
|
-
# EARLIEST entry per executable file name, and on Windows a bare `bash` resolves to
|
|
30
|
-
# `C:\Windows\System32\bash.exe` - the WSL forwarder. Listing `Git\bin\bash.exe` here (an
|
|
31
|
-
# earlier revision did exactly that) would claim that key for Git and silently DELETE WSL
|
|
32
|
-
# from the menu. Both additions therefore carry their own file name: `msys-bash.exe` is a
|
|
33
|
-
# hard link in the user-writable MSYS2 tree, and `git-bash.exe` is a hard link inside
|
|
34
|
-
# `C:\Program Files\Git\bin\`, which needs one elevated step by the operator:
|
|
35
|
-
#
|
|
36
|
-
# New-Item -ItemType HardLink -Path 'C:\Program Files\Git\bin\git-bash.exe' -Target 'C:\Program Files\Git\bin\bash.exe'
|
|
37
|
-
#
|
|
38
|
-
# (It has to live in that directory: bash derives its POSIX root from its own path, and a
|
|
39
|
-
# link elsewhere cannot even be created - CreateHardLink needs write access to the source
|
|
40
|
-
# file, which Program Files denies a standard user.) Until that link exists the candidate
|
|
41
|
-
# is skipped, so the row is correct either way and the stock candidates stay untouched.
|
|
42
|
-
#
|
|
43
|
-
# The third addition is the pinned POSIX payload's own menu entry, and it is the reason
|
|
44
|
-
# the link is named `bash-terminal.exe` rather than anything containing a bare `bash`:
|
|
45
|
-
# the stock list already spends the `bash` key on the WSL forwarder, and re-using it
|
|
46
|
-
# would DELETE that row from the menu. The path is built from LOCALAPPDATA with `!!js`
|
|
47
|
-
# because the payload store lives per-user, and it points at the STABLE junction
|
|
48
|
-
# (`payloads\bash-terminal`) so re-provisioning a new version does not need a patch
|
|
49
|
-
# edit. Both the link and the junction are created by scripts/provision-payload.mjs /
|
|
50
|
-
# link-shells.mjs only AFTER the digest gate passed, and a machine that never
|
|
51
|
-
# provisioned a payload simply has no file here - skipped per candidate, like the
|
|
52
|
-
# others. See scripts/payload-alias.mjs for the full layout.
|
|
53
|
-
#
|
|
54
|
-
# `shell` is deliberately absent: that means "no explicit default", so the
|
|
55
|
-
# controller uses the execution environment's default shell - the stock
|
|
56
|
-
# behaviour, unchanged.
|
|
57
|
-
#
|
|
58
|
-
# Degradation: `discoverShells` catches SubprocessExecutableNotFoundError per
|
|
59
|
-
# candidate, so a machine without Git, or without the link, simply offers fewer
|
|
60
|
-
# shells. This row cannot fail.
|
|
61
|
-
# ---------------------------------------------------------------------------
|
|
62
|
-
- id: terminal-controller
|
|
63
|
-
config:
|
|
64
|
-
shellCandidates:
|
|
65
|
-
- !!js '(process.env.LOCALAPPDATA || "") + "\\dsh-bash-terminal-ts\\payloads\\bash-terminal\\bin\\bash-terminal.exe"'
|
|
66
|
-
- 'C:\Program Files\Git\bin\git-bash.exe'
|
|
67
|
-
- 'C:\msys64\usr\bin\msys-bash.exe'
|
|
68
|
-
- zsh
|
|
69
|
-
- bash
|
|
70
|
-
- fish
|
|
71
|
-
- pwsh
|
|
72
|
-
- powershell
|
|
73
|
-
- cmd
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
1
|
+
# dsh-bash-terminal-ts bundle layer — applied automatically when a profile lists
|
|
2
|
+
# this package in dsh.profile.bundles (dsh.bundle.patch declaration).
|
|
3
|
+
- insert:
|
|
4
|
+
- id: tool-bash-terminal
|
|
5
|
+
name: 'dsh-bash-terminal-ts'
|
|
6
|
+
|
|
7
|
+
# ---------------------------------------------------------------------------
|
|
8
|
+
# The host's own right-sidebar terminal: which shells its selector offers.
|
|
9
|
+
#
|
|
10
|
+
# Why a plugin touches this at all (user decision, 2026-10-13, overriding the
|
|
11
|
+
# original "never modify the host terminal row" rule): the official menu builds
|
|
12
|
+
# its list from `shellCandidates` through `discoverShells`, which keys a Map by
|
|
13
|
+
# the executable FILE NAME (`shellKind` = basename, lower-cased, `.exe`
|
|
14
|
+
# stripped) and keeps the earliest entry. Git Bash and MSYS2 are both
|
|
15
|
+
# `bash.exe`, so on the stock list MSYS2 can never appear. A hard link at
|
|
16
|
+
# `C:\msys64\usr\bin\msys-bash.exe` gives it a distinct kind; measured over a
|
|
17
|
+
# real PTY, bash does not mis-classify itself under the new name
|
|
18
|
+
# (`argv0=/usr/bin/msys-bash`, `$BASH_VERSION` 5.3.15, `gcc` resolving to
|
|
19
|
+
# /mingw64/bin, correct `-dumpmachine`).
|
|
20
|
+
#
|
|
21
|
+
# Why all twelve keys are spelled out: a patch replaces the targeted row's WHOLE
|
|
22
|
+
# config. Omit one and that limit silently reverts to nothing at all - each
|
|
23
|
+
# field's `.default()` applies when the field is absent from the schema input,
|
|
24
|
+
# and a replaced row provides no input for the keys it does not mention.
|
|
25
|
+
# `scripts/check-artifacts.mjs` asserts the full key set, so a host upgrade that
|
|
26
|
+
# adds a thirteenth key fails the build instead of quietly dropping a limit.
|
|
27
|
+
#
|
|
28
|
+
# Which entries are prepended, and why nothing is displaced: `discoverShells` keeps the
|
|
29
|
+
# EARLIEST entry per executable file name, and on Windows a bare `bash` resolves to
|
|
30
|
+
# `C:\Windows\System32\bash.exe` - the WSL forwarder. Listing `Git\bin\bash.exe` here (an
|
|
31
|
+
# earlier revision did exactly that) would claim that key for Git and silently DELETE WSL
|
|
32
|
+
# from the menu. Both additions therefore carry their own file name: `msys-bash.exe` is a
|
|
33
|
+
# hard link in the user-writable MSYS2 tree, and `git-bash.exe` is a hard link inside
|
|
34
|
+
# `C:\Program Files\Git\bin\`, which needs one elevated step by the operator:
|
|
35
|
+
#
|
|
36
|
+
# New-Item -ItemType HardLink -Path 'C:\Program Files\Git\bin\git-bash.exe' -Target 'C:\Program Files\Git\bin\bash.exe'
|
|
37
|
+
#
|
|
38
|
+
# (It has to live in that directory: bash derives its POSIX root from its own path, and a
|
|
39
|
+
# link elsewhere cannot even be created - CreateHardLink needs write access to the source
|
|
40
|
+
# file, which Program Files denies a standard user.) Until that link exists the candidate
|
|
41
|
+
# is skipped, so the row is correct either way and the stock candidates stay untouched.
|
|
42
|
+
#
|
|
43
|
+
# The third addition is the pinned POSIX payload's own menu entry, and it is the reason
|
|
44
|
+
# the link is named `bash-terminal.exe` rather than anything containing a bare `bash`:
|
|
45
|
+
# the stock list already spends the `bash` key on the WSL forwarder, and re-using it
|
|
46
|
+
# would DELETE that row from the menu. The path is built from LOCALAPPDATA with `!!js`
|
|
47
|
+
# because the payload store lives per-user, and it points at the STABLE junction
|
|
48
|
+
# (`payloads\bash-terminal`) so re-provisioning a new version does not need a patch
|
|
49
|
+
# edit. Both the link and the junction are created by scripts/provision-payload.mjs /
|
|
50
|
+
# link-shells.mjs only AFTER the digest gate passed, and a machine that never
|
|
51
|
+
# provisioned a payload simply has no file here - skipped per candidate, like the
|
|
52
|
+
# others. See scripts/payload-alias.mjs for the full layout.
|
|
53
|
+
#
|
|
54
|
+
# `shell` is deliberately absent: that means "no explicit default", so the
|
|
55
|
+
# controller uses the execution environment's default shell - the stock
|
|
56
|
+
# behaviour, unchanged.
|
|
57
|
+
#
|
|
58
|
+
# Degradation: `discoverShells` catches SubprocessExecutableNotFoundError per
|
|
59
|
+
# candidate, so a machine without Git, or without the link, simply offers fewer
|
|
60
|
+
# shells. This row cannot fail.
|
|
61
|
+
# ---------------------------------------------------------------------------
|
|
62
|
+
- id: terminal-controller
|
|
63
|
+
config:
|
|
64
|
+
shellCandidates:
|
|
65
|
+
- !!js '(process.env.LOCALAPPDATA || "") + "\\dsh-bash-terminal-ts\\payloads\\bash-terminal\\bin\\bash-terminal.exe"'
|
|
66
|
+
- 'C:\Program Files\Git\bin\git-bash.exe'
|
|
67
|
+
- 'C:\msys64\usr\bin\msys-bash.exe'
|
|
68
|
+
- zsh
|
|
69
|
+
- bash
|
|
70
|
+
- fish
|
|
71
|
+
- pwsh
|
|
72
|
+
- powershell
|
|
73
|
+
- cmd
|
|
74
|
+
- niu.exe
|
|
75
|
+
maxTerminals: 8
|
|
76
|
+
maxCols: 500
|
|
77
|
+
maxRows: 200
|
|
78
|
+
scrollback: 1000
|
|
79
|
+
maxBufferedBytes: 2097152
|
|
80
|
+
maxInputBytes: 65536
|
|
81
|
+
disposeGraceMs: 1000
|
|
82
|
+
unattendedTimeoutMs: 7200000
|
|
83
|
+
activityPollIntervalMs: 30000
|
|
84
|
+
cleanupRetryMs: 60000
|
package/dist/client.core.js
CHANGED
|
@@ -6152,6 +6152,7 @@ var zh = {
|
|
|
6152
6152
|
"dock.state.notInstalled": "\u672A\u63A2\u6D4B\u5230",
|
|
6153
6153
|
"dock.state.wslPreferred": "\u5DF2\u68C0\u6D4B\u5230 WSL \u53D1\u884C\u7248\uFF08\u4F18\u5148\u7528 WSL bash\uFF09",
|
|
6154
6154
|
"shell.payload": "POSIX payload",
|
|
6155
|
+
"shell.niu": "Niubash",
|
|
6155
6156
|
"dock.state.noDistro": "\u65E0\u5DF2\u5B89\u88C5\u53D1\u884C\u7248",
|
|
6156
6157
|
"dock.state.launcherOnly": "\u53EA\u627E\u5230\u542F\u52A8\u5668\uFF0C\u65E0\u6CD5\u5185\u5D4C",
|
|
6157
6158
|
"dock.powershell.locked": "PowerShell \u662F\u4FDD\u5E95\u540E\u7AEF\uFF0C\u65E0\u6CD5\u5173\u95ED\u3002",
|
|
@@ -6199,6 +6200,7 @@ var en = {
|
|
|
6199
6200
|
"dock.state.notInstalled": "Not found",
|
|
6200
6201
|
"dock.state.wslPreferred": "WSL distro detected (WSL bash preferred)",
|
|
6201
6202
|
"shell.payload": "POSIX payload",
|
|
6203
|
+
"shell.niu": "Niubash",
|
|
6202
6204
|
"dock.state.noDistro": "No distro installed",
|
|
6203
6205
|
"dock.state.launcherOnly": "Only a launcher was found; it cannot be embedded",
|
|
6204
6206
|
"dock.powershell.locked": "PowerShell is the fallback backend and cannot be turned off.",
|
|
@@ -6246,6 +6248,7 @@ var ja = {
|
|
|
6246
6248
|
"dock.state.notInstalled": "\u898B\u3064\u304B\u308A\u307E\u305B\u3093",
|
|
6247
6249
|
"dock.state.wslPreferred": "WSL \u30C7\u30A3\u30B9\u30C8\u30EA\u691C\u51FA\u6E08\u307F\uFF08WSL bash \u512A\u5148\uFF09",
|
|
6248
6250
|
"shell.payload": "POSIX payload",
|
|
6251
|
+
"shell.niu": "Niubash",
|
|
6249
6252
|
"dock.state.noDistro": "\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u6E08\u307F\u30C7\u30A3\u30B9\u30C8\u30EA\u30D3\u30E5\u30FC\u30B7\u30E7\u30F3\u306A\u3057",
|
|
6250
6253
|
"dock.state.launcherOnly": "\u30E9\u30F3\u30C1\u30E3\u30FC\u306E\u307F\u691C\u51FA\u3001\u57CB\u3081\u8FBC\u307F\u4E0D\u53EF",
|
|
6251
6254
|
"dock.powershell.locked": "PowerShell \u306F\u6700\u5F8C\u306E\u4EE3\u66FF\u306E\u305F\u3081\u7121\u52B9\u5316\u3067\u304D\u307E\u305B\u3093\u3002",
|
|
@@ -6293,6 +6296,7 @@ var ko = {
|
|
|
6293
6296
|
"dock.state.notInstalled": "\uD0D0\uC9C0\uB418\uC9C0 \uC54A\uC74C",
|
|
6294
6297
|
"dock.state.wslPreferred": "WSL \uBC30\uD3EC\uD310 \uAC10\uC9C0\uB428 (WSL bash \uC6B0\uC120)",
|
|
6295
6298
|
"shell.payload": "POSIX payload",
|
|
6299
|
+
"shell.niu": "Niubash",
|
|
6296
6300
|
"dock.state.noDistro": "\uC124\uCE58\uB41C \uBC30\uD3EC\uD310 \uC5C6\uC74C",
|
|
6297
6301
|
"dock.state.launcherOnly": "\uB7F0\uCC98\uB9CC \uBC1C\uACAC\uB418\uC5B4 \uB0B4\uC7A5\uD560 \uC218 \uC5C6\uC74C",
|
|
6298
6302
|
"dock.powershell.locked": "PowerShell\uC740 \uCD5C\uC885 \uB300\uCCB4 \uD56D\uBAA9\uC774\uBBC0\uB85C \uB04C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
@@ -6340,6 +6344,7 @@ var fr = {
|
|
|
6340
6344
|
"dock.state.notInstalled": "Non d\xE9tect\xE9",
|
|
6341
6345
|
"dock.state.wslPreferred": "Distro WSL d\xE9tect\xE9e (bash WSL pr\xE9f\xE9r\xE9)",
|
|
6342
6346
|
"shell.payload": "POSIX payload",
|
|
6347
|
+
"shell.niu": "Niubash",
|
|
6343
6348
|
"dock.state.noDistro": "Aucune distribution install\xE9e",
|
|
6344
6349
|
"dock.state.launcherOnly": "Seuls des lanceurs ont \xE9t\xE9 trouv\xE9s; int\xE9gration impossible",
|
|
6345
6350
|
"dock.powershell.locked": "PowerShell sert de repli final et ne peut pas \xEAtre d\xE9sactiv\xE9.",
|
|
@@ -6387,6 +6392,7 @@ var de = {
|
|
|
6387
6392
|
"dock.state.notInstalled": "Nicht gefunden",
|
|
6388
6393
|
"dock.state.wslPreferred": "WSL-Distro erkannt (WSL bash bevorzugt)",
|
|
6389
6394
|
"shell.payload": "POSIX payload",
|
|
6395
|
+
"shell.niu": "Niubash",
|
|
6390
6396
|
"dock.state.noDistro": "Keine Distribution installiert",
|
|
6391
6397
|
"dock.state.launcherOnly": "Nur Launcher gefunden; Einbettung nicht m\xF6glich",
|
|
6392
6398
|
"dock.powershell.locked": "PowerShell ist die letzte R\xFCckfallm\xF6glichkeit und kann nicht deaktiviert werden.",
|
|
@@ -6434,6 +6440,7 @@ var it = {
|
|
|
6434
6440
|
"dock.state.notInstalled": "Non trovato",
|
|
6435
6441
|
"dock.state.wslPreferred": "Distro WSL rilevata (bash WSL preferito)",
|
|
6436
6442
|
"shell.payload": "POSIX payload",
|
|
6443
|
+
"shell.niu": "Niubash",
|
|
6437
6444
|
"dock.state.noDistro": "Nessuna distribuzione installata",
|
|
6438
6445
|
"dock.state.launcherOnly": "Trovato solo un launcher; incorporamento non possibile",
|
|
6439
6446
|
"dock.powershell.locked": "PowerShell \xE8 il ripiego finale e non pu\xF2 essere disattivato.",
|
|
@@ -6481,6 +6488,7 @@ var ru = {
|
|
|
6481
6488
|
"dock.state.notInstalled": "\u041D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D",
|
|
6482
6489
|
"dock.state.wslPreferred": "\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 WSL (\u043F\u0440\u0435\u0434\u043F\u043E\u0447\u0442\u0438\u0442\u0435\u043B\u044C\u043D\u0435\u0435 WSL bash)",
|
|
6483
6490
|
"shell.payload": "POSIX payload",
|
|
6491
|
+
"shell.niu": "Niubash",
|
|
6484
6492
|
"dock.state.noDistro": "\u041D\u0435\u0442 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044B\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043E\u0432",
|
|
6485
6493
|
"dock.state.launcherOnly": "\u041D\u0430\u0439\u0434\u0435\u043D \u0442\u043E\u043B\u044C\u043A\u043E \u043B\u0430\u0443\u043D\u0447\u0435\u0440, \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u0435 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E",
|
|
6486
6494
|
"dock.powershell.locked": "PowerShell \u2014 \u0440\u0435\u0437\u0435\u0440\u0432\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442, \u0435\u0433\u043E \u043D\u0435\u043B\u044C\u0437\u044F \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C.",
|
|
@@ -6528,6 +6536,7 @@ var es = {
|
|
|
6528
6536
|
"dock.state.notInstalled": "No detectado",
|
|
6529
6537
|
"dock.state.wslPreferred": "Distro de WSL detectada (se prefiere bash de WSL)",
|
|
6530
6538
|
"shell.payload": "POSIX payload",
|
|
6539
|
+
"shell.niu": "Niubash",
|
|
6531
6540
|
"dock.state.noDistro": "Sin distribuci\xF3n instalada",
|
|
6532
6541
|
"dock.state.launcherOnly": "Solo se encontr\xF3 un lanzador; no se puede incrustar",
|
|
6533
6542
|
"dock.powershell.locked": "PowerShell es el respaldo final y no puede desactivarse.",
|
|
@@ -7693,7 +7702,7 @@ function MultiShellTerminal(props) {
|
|
|
7693
7702
|
// src/client.tsx
|
|
7694
7703
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
7695
7704
|
var SETTINGS_NS = "settings.bash-terminal";
|
|
7696
|
-
var SHELLS = ["powershell", "gitbash", "msys2", "wsl", "payload"];
|
|
7705
|
+
var SHELLS = ["powershell", "gitbash", "msys2", "wsl", "payload", "niu"];
|
|
7697
7706
|
var ROW_CSS = ".btRow{border-bottom:1px solid var(--dsw-alias-border-l2);align-items:center;gap:8px;padding:16px 0;display:flex}.btRowText{flex-direction:column;flex:1;gap:4px;min-width:0;padding-right:48px;display:flex}.btTitle{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:400;line-height:22px}.btDesc{color:var(--dsw-alias-label-tertiary);font-size:12px;font-weight:400;line-height:18px}.btSelector{background:var(--dsw-alias-bg-module-platform);height:36px;font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;border:none;border-radius:18px;align-items:center;gap:12px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.btSelector:hover{background:var(--dsw-alias-interactive-bg-hover)}.btGear{position:fixed;right:16px;bottom:110px;z-index:10000;width:40px;height:40px;border-radius:50%;border:1px solid rgba(127,127,127,.4);background:rgba(30,30,32,.85);color:inherit;cursor:pointer;font-size:17px;box-shadow:0 4px 16px rgba(0,0,0,.35)}.btOverlay{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.45)}.btPanel{position:fixed;top:6vh;left:50%;transform:translateX(-50%);width:min(760px,92vw);max-height:84vh;overflow-y:auto;z-index:10001;background:var(--dsw-alias-bg-module-platform,rgba(30,30,32,.92));border:1px solid var(--dsw-alias-border-l2,rgba(127,127,127,.3));border-radius:14px;padding:20px;color:var(--dsw-alias-label-primary)}.btBadge{border-radius:10px;padding:2px 8px;font-size:11px;line-height:16px;background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-tertiary);white-space:nowrap}.btBadgeOk{color:var(--dsw-alias-label-primary)}.btNotice{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px;padding:8px 0}.btWarn{color:var(--dsw-status-warning-default,#b8860b)}.btRowSwitch{padding-right:0}.btSwitch{width:40px;height:24px;border-radius:12px;border:none;cursor:pointer;background:var(--dsw-alias-bg-module-platform);position:relative;flex:none;transition:background .15s ease;box-shadow:inset 0 0 0 1px var(--dsw-alias-border-l2)}.btSwitch::after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--dsw-alias-label-tertiary);transition:transform .15s ease,background .15s ease}.btSwitchOn{background:var(--dsw-alias-interactive-brand,#2f6fed)}.btSwitchOn::after{transform:translateX(16px);background:#fff}.btSwitch:disabled{cursor:not-allowed;opacity:.4}.btSwitch:disabled::after{background:var(--dsw-alias-label-quaternary,#8a8a8a)}.btInput{background:var(--dsw-alias-bg-module-platform);height:32px;border:none;border-radius:8px;color:var(--dsw-alias-label-primary);padding:0 10px;font:inherit;min-width:0;flex:1}.btPick{position:relative;display:inline-block}.btPickBtn{gap:6px}.btPickSm{height:28px;padding:0 10px;border-radius:14px;font-size:12px;line-height:18px}.btPickBtn:disabled{opacity:.4;cursor:not-allowed}.btPickText{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btPickCaret{color:var(--dsw-alias-label-tertiary);font-size:10px;line-height:1}.btPickList{position:absolute;z-index:1000;top:calc(100% + 4px);left:0;min-width:100%;max-height:260px;overflow-y:auto;padding:4px;border:1px solid var(--dsw-alias-border-l2);border-radius:10px;background:var(--dsw-alias-bg-overlay);box-shadow:0 8px 24px rgba(0,0,0,.28)}.btPickOpt{padding:6px 10px;font-size:12px;line-height:18px;border-radius:6px;color:var(--dsw-alias-label-primary);cursor:pointer;white-space:nowrap}.btPickOpt:hover{background:var(--dsw-alias-interactive-bg-hover)}.btPickOptOn{color:var(--dsw-alias-interactive-brand);font-weight:600}";
|
|
7698
7707
|
if (typeof document !== "undefined" && document.querySelector('style[data-plugin-css="bash-terminal-row"]') === null) {
|
|
7699
7708
|
const tag = document.createElement("style");
|
package/dist/client.js
CHANGED
|
@@ -6157,6 +6157,7 @@ var zh = {
|
|
|
6157
6157
|
"dock.state.notInstalled": "\u672A\u63A2\u6D4B\u5230",
|
|
6158
6158
|
"dock.state.wslPreferred": "\u5DF2\u68C0\u6D4B\u5230 WSL \u53D1\u884C\u7248\uFF08\u4F18\u5148\u7528 WSL bash\uFF09",
|
|
6159
6159
|
"shell.payload": "POSIX payload",
|
|
6160
|
+
"shell.niu": "Niubash",
|
|
6160
6161
|
"dock.state.noDistro": "\u65E0\u5DF2\u5B89\u88C5\u53D1\u884C\u7248",
|
|
6161
6162
|
"dock.state.launcherOnly": "\u53EA\u627E\u5230\u542F\u52A8\u5668\uFF0C\u65E0\u6CD5\u5185\u5D4C",
|
|
6162
6163
|
"dock.powershell.locked": "PowerShell \u662F\u4FDD\u5E95\u540E\u7AEF\uFF0C\u65E0\u6CD5\u5173\u95ED\u3002",
|
|
@@ -6204,6 +6205,7 @@ var en = {
|
|
|
6204
6205
|
"dock.state.notInstalled": "Not found",
|
|
6205
6206
|
"dock.state.wslPreferred": "WSL distro detected (WSL bash preferred)",
|
|
6206
6207
|
"shell.payload": "POSIX payload",
|
|
6208
|
+
"shell.niu": "Niubash",
|
|
6207
6209
|
"dock.state.noDistro": "No distro installed",
|
|
6208
6210
|
"dock.state.launcherOnly": "Only a launcher was found; it cannot be embedded",
|
|
6209
6211
|
"dock.powershell.locked": "PowerShell is the fallback backend and cannot be turned off.",
|
|
@@ -6251,6 +6253,7 @@ var ja = {
|
|
|
6251
6253
|
"dock.state.notInstalled": "\u898B\u3064\u304B\u308A\u307E\u305B\u3093",
|
|
6252
6254
|
"dock.state.wslPreferred": "WSL \u30C7\u30A3\u30B9\u30C8\u30EA\u691C\u51FA\u6E08\u307F\uFF08WSL bash \u512A\u5148\uFF09",
|
|
6253
6255
|
"shell.payload": "POSIX payload",
|
|
6256
|
+
"shell.niu": "Niubash",
|
|
6254
6257
|
"dock.state.noDistro": "\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u6E08\u307F\u30C7\u30A3\u30B9\u30C8\u30EA\u30D3\u30E5\u30FC\u30B7\u30E7\u30F3\u306A\u3057",
|
|
6255
6258
|
"dock.state.launcherOnly": "\u30E9\u30F3\u30C1\u30E3\u30FC\u306E\u307F\u691C\u51FA\u3001\u57CB\u3081\u8FBC\u307F\u4E0D\u53EF",
|
|
6256
6259
|
"dock.powershell.locked": "PowerShell \u306F\u6700\u5F8C\u306E\u4EE3\u66FF\u306E\u305F\u3081\u7121\u52B9\u5316\u3067\u304D\u307E\u305B\u3093\u3002",
|
|
@@ -6298,6 +6301,7 @@ var ko = {
|
|
|
6298
6301
|
"dock.state.notInstalled": "\uD0D0\uC9C0\uB418\uC9C0 \uC54A\uC74C",
|
|
6299
6302
|
"dock.state.wslPreferred": "WSL \uBC30\uD3EC\uD310 \uAC10\uC9C0\uB428 (WSL bash \uC6B0\uC120)",
|
|
6300
6303
|
"shell.payload": "POSIX payload",
|
|
6304
|
+
"shell.niu": "Niubash",
|
|
6301
6305
|
"dock.state.noDistro": "\uC124\uCE58\uB41C \uBC30\uD3EC\uD310 \uC5C6\uC74C",
|
|
6302
6306
|
"dock.state.launcherOnly": "\uB7F0\uCC98\uB9CC \uBC1C\uACAC\uB418\uC5B4 \uB0B4\uC7A5\uD560 \uC218 \uC5C6\uC74C",
|
|
6303
6307
|
"dock.powershell.locked": "PowerShell\uC740 \uCD5C\uC885 \uB300\uCCB4 \uD56D\uBAA9\uC774\uBBC0\uB85C \uB04C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
@@ -6345,6 +6349,7 @@ var fr = {
|
|
|
6345
6349
|
"dock.state.notInstalled": "Non d\xE9tect\xE9",
|
|
6346
6350
|
"dock.state.wslPreferred": "Distro WSL d\xE9tect\xE9e (bash WSL pr\xE9f\xE9r\xE9)",
|
|
6347
6351
|
"shell.payload": "POSIX payload",
|
|
6352
|
+
"shell.niu": "Niubash",
|
|
6348
6353
|
"dock.state.noDistro": "Aucune distribution install\xE9e",
|
|
6349
6354
|
"dock.state.launcherOnly": "Seuls des lanceurs ont \xE9t\xE9 trouv\xE9s; int\xE9gration impossible",
|
|
6350
6355
|
"dock.powershell.locked": "PowerShell sert de repli final et ne peut pas \xEAtre d\xE9sactiv\xE9.",
|
|
@@ -6392,6 +6397,7 @@ var de = {
|
|
|
6392
6397
|
"dock.state.notInstalled": "Nicht gefunden",
|
|
6393
6398
|
"dock.state.wslPreferred": "WSL-Distro erkannt (WSL bash bevorzugt)",
|
|
6394
6399
|
"shell.payload": "POSIX payload",
|
|
6400
|
+
"shell.niu": "Niubash",
|
|
6395
6401
|
"dock.state.noDistro": "Keine Distribution installiert",
|
|
6396
6402
|
"dock.state.launcherOnly": "Nur Launcher gefunden; Einbettung nicht m\xF6glich",
|
|
6397
6403
|
"dock.powershell.locked": "PowerShell ist die letzte R\xFCckfallm\xF6glichkeit und kann nicht deaktiviert werden.",
|
|
@@ -6439,6 +6445,7 @@ var it = {
|
|
|
6439
6445
|
"dock.state.notInstalled": "Non trovato",
|
|
6440
6446
|
"dock.state.wslPreferred": "Distro WSL rilevata (bash WSL preferito)",
|
|
6441
6447
|
"shell.payload": "POSIX payload",
|
|
6448
|
+
"shell.niu": "Niubash",
|
|
6442
6449
|
"dock.state.noDistro": "Nessuna distribuzione installata",
|
|
6443
6450
|
"dock.state.launcherOnly": "Trovato solo un launcher; incorporamento non possibile",
|
|
6444
6451
|
"dock.powershell.locked": "PowerShell \xE8 il ripiego finale e non pu\xF2 essere disattivato.",
|
|
@@ -6486,6 +6493,7 @@ var ru = {
|
|
|
6486
6493
|
"dock.state.notInstalled": "\u041D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D",
|
|
6487
6494
|
"dock.state.wslPreferred": "\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 WSL (\u043F\u0440\u0435\u0434\u043F\u043E\u0447\u0442\u0438\u0442\u0435\u043B\u044C\u043D\u0435\u0435 WSL bash)",
|
|
6488
6495
|
"shell.payload": "POSIX payload",
|
|
6496
|
+
"shell.niu": "Niubash",
|
|
6489
6497
|
"dock.state.noDistro": "\u041D\u0435\u0442 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044B\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043E\u0432",
|
|
6490
6498
|
"dock.state.launcherOnly": "\u041D\u0430\u0439\u0434\u0435\u043D \u0442\u043E\u043B\u044C\u043A\u043E \u043B\u0430\u0443\u043D\u0447\u0435\u0440, \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u0435 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E",
|
|
6491
6499
|
"dock.powershell.locked": "PowerShell \u2014 \u0440\u0435\u0437\u0435\u0440\u0432\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442, \u0435\u0433\u043E \u043D\u0435\u043B\u044C\u0437\u044F \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C.",
|
|
@@ -6533,6 +6541,7 @@ var es = {
|
|
|
6533
6541
|
"dock.state.notInstalled": "No detectado",
|
|
6534
6542
|
"dock.state.wslPreferred": "Distro de WSL detectada (se prefiere bash de WSL)",
|
|
6535
6543
|
"shell.payload": "POSIX payload",
|
|
6544
|
+
"shell.niu": "Niubash",
|
|
6536
6545
|
"dock.state.noDistro": "Sin distribuci\xF3n instalada",
|
|
6537
6546
|
"dock.state.launcherOnly": "Solo se encontr\xF3 un lanzador; no se puede incrustar",
|
|
6538
6547
|
"dock.powershell.locked": "PowerShell es el respaldo final y no puede desactivarse.",
|
|
@@ -7698,7 +7707,7 @@ function MultiShellTerminal(props) {
|
|
|
7698
7707
|
// src/client.tsx
|
|
7699
7708
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
7700
7709
|
var SETTINGS_NS = "settings.bash-terminal";
|
|
7701
|
-
var SHELLS = ["powershell", "gitbash", "msys2", "wsl", "payload"];
|
|
7710
|
+
var SHELLS = ["powershell", "gitbash", "msys2", "wsl", "payload", "niu"];
|
|
7702
7711
|
var ROW_CSS = ".btRow{border-bottom:1px solid var(--dsw-alias-border-l2);align-items:center;gap:8px;padding:16px 0;display:flex}.btRowText{flex-direction:column;flex:1;gap:4px;min-width:0;padding-right:48px;display:flex}.btTitle{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:400;line-height:22px}.btDesc{color:var(--dsw-alias-label-tertiary);font-size:12px;font-weight:400;line-height:18px}.btSelector{background:var(--dsw-alias-bg-module-platform);height:36px;font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;border:none;border-radius:18px;align-items:center;gap:12px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.btSelector:hover{background:var(--dsw-alias-interactive-bg-hover)}.btGear{position:fixed;right:16px;bottom:110px;z-index:10000;width:40px;height:40px;border-radius:50%;border:1px solid rgba(127,127,127,.4);background:rgba(30,30,32,.85);color:inherit;cursor:pointer;font-size:17px;box-shadow:0 4px 16px rgba(0,0,0,.35)}.btOverlay{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.45)}.btPanel{position:fixed;top:6vh;left:50%;transform:translateX(-50%);width:min(760px,92vw);max-height:84vh;overflow-y:auto;z-index:10001;background:var(--dsw-alias-bg-module-platform,rgba(30,30,32,.92));border:1px solid var(--dsw-alias-border-l2,rgba(127,127,127,.3));border-radius:14px;padding:20px;color:var(--dsw-alias-label-primary)}.btBadge{border-radius:10px;padding:2px 8px;font-size:11px;line-height:16px;background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-tertiary);white-space:nowrap}.btBadgeOk{color:var(--dsw-alias-label-primary)}.btNotice{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px;padding:8px 0}.btWarn{color:var(--dsw-status-warning-default,#b8860b)}.btRowSwitch{padding-right:0}.btSwitch{width:40px;height:24px;border-radius:12px;border:none;cursor:pointer;background:var(--dsw-alias-bg-module-platform);position:relative;flex:none;transition:background .15s ease;box-shadow:inset 0 0 0 1px var(--dsw-alias-border-l2)}.btSwitch::after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--dsw-alias-label-tertiary);transition:transform .15s ease,background .15s ease}.btSwitchOn{background:var(--dsw-alias-interactive-brand,#2f6fed)}.btSwitchOn::after{transform:translateX(16px);background:#fff}.btSwitch:disabled{cursor:not-allowed;opacity:.4}.btSwitch:disabled::after{background:var(--dsw-alias-label-quaternary,#8a8a8a)}.btInput{background:var(--dsw-alias-bg-module-platform);height:32px;border:none;border-radius:8px;color:var(--dsw-alias-label-primary);padding:0 10px;font:inherit;min-width:0;flex:1}.btPick{position:relative;display:inline-block}.btPickBtn{gap:6px}.btPickSm{height:28px;padding:0 10px;border-radius:14px;font-size:12px;line-height:18px}.btPickBtn:disabled{opacity:.4;cursor:not-allowed}.btPickText{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btPickCaret{color:var(--dsw-alias-label-tertiary);font-size:10px;line-height:1}.btPickList{position:absolute;z-index:1000;top:calc(100% + 4px);left:0;min-width:100%;max-height:260px;overflow-y:auto;padding:4px;border:1px solid var(--dsw-alias-border-l2);border-radius:10px;background:var(--dsw-alias-bg-overlay);box-shadow:0 8px 24px rgba(0,0,0,.28)}.btPickOpt{padding:6px 10px;font-size:12px;line-height:18px;border-radius:6px;color:var(--dsw-alias-label-primary);cursor:pointer;white-space:nowrap}.btPickOpt:hover{background:var(--dsw-alias-interactive-bg-hover)}.btPickOptOn{color:var(--dsw-alias-interactive-brand);font-weight:600}";
|
|
7703
7712
|
if (typeof document !== "undefined" && document.querySelector('style[data-plugin-css="bash-terminal-row"]') === null) {
|
|
7704
7713
|
const tag = document.createElement("style");
|