dsh-bash-terminal-ts 0.8.1 → 0.8.3
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/README.de.md +1 -1
- package/README.en.md +6 -2
- package/README.es.md +1 -1
- package/README.fr.md +1 -1
- package/README.it.md +1 -1
- package/README.md +5 -1
- package/README.ru.md +1 -1
- package/agent-presets/README.md +170 -0
- package/agent-presets/install-presets.mjs +179 -0
- package/agent-presets/standard-win/agent.cordis.yml +271 -0
- package/agent-presets/standard-win/preset.yml +2 -0
- package/agent-presets/standard-win-gitbash/agent.cordis.yml +271 -0
- package/agent-presets/standard-win-gitbash/preset.yml +2 -0
- package/agent-presets/standard-win-msys2/agent.cordis.yml +272 -0
- package/agent-presets/standard-win-msys2/preset.yml +2 -0
- package/agent-presets/standard-win-payload/agent.cordis.yml +271 -0
- package/agent-presets/standard-win-payload/preset.yml +2 -0
- package/agent-presets/standard-win-wsl2/agent.cordis.yml +271 -0
- package/agent-presets/standard-win-wsl2/preset.yml +2 -0
- package/cordis.patch.yml +12 -0
- package/dist/client.core.js +43 -12
- package/dist/client.js +43 -12
- package/dsh.plugin.json +2 -2
- package/lib/client.js +43 -12
- package/lib/dsh-types.d.ts +3 -1
- package/lib/index.d.ts +23 -2
- package/lib/index.js +79 -18
- package/lib/locales.js +27 -9
- package/lib/payload.d.ts +72 -0
- package/lib/payload.js +279 -0
- package/lib/shell-id.d.ts +2 -2
- package/lib/shells.d.ts +11 -2
- package/lib/shells.js +18 -4
- package/lib/terminal.js +1 -0
- package/lib/webterminals/catalog.d.ts +2 -0
- package/lib/webterminals/catalog.js +1 -0
- package/lib/webterminals/host.js +2 -2
- package/lib/webterminals/mount.d.ts +5 -0
- package/lib/webterminals/mount.js +4 -0
- package/package.json +17 -11
- package/scripts/check-artifacts.mjs +1 -1
- package/scripts/link-shells.mjs +22 -0
- package/scripts/payload-alias.mjs +97 -0
- package/scripts/provision-payload.mjs +233 -0
- package/src/client.tsx +29 -4
- package/src/dsh-types.ts +3 -1
- package/src/index.ts +117 -16
- package/src/locales.ts +27 -9
- package/src/payload.ts +322 -0
- package/src/shell-id.ts +2 -2
- package/src/shells.ts +27 -5
- package/src/terminal.ts +1 -0
- package/src/webterminals/browser/api.ts +1 -1
- package/src/webterminals/catalog.ts +3 -0
- package/src/webterminals/host.ts +2 -2
- package/src/webterminals/mount.ts +9 -0
|
@@ -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 WSL2 (bash).
|
|
30
|
+
Write every command in Bash syntax: use standard Unix utilities (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. Use WSL paths (e.g., /mnt/c/Users/<you>/project) or /c/... format; WSL auto-translates between Windows and Linux path spaces.
|
|
31
|
+
|
|
32
|
+
Python — use WSL Python `/usr/bin/python3` or `/usr/bin/python` for native Linux execution; if you must reach the Windows interpreter, use its WSL-mounted path %%winPythonWslPath%% (form: /mnt/c/Users/<you>/AppData/Local/Programs/Python/PythonXYY/python.exe). No uv/pipx unless you installed them.
|
|
33
|
+
|
|
34
|
+
Shell/session — default bash (WSL2); every call is a fresh process (cwd/state not kept) → pass workdir, don't rely on cd persisting across calls. Use WSL paths (/mnt/c/... or native Linux paths). Read session facts from $DSH_* environment variables (Bash syntax: $DSH_FOO, not $env:DSH_FOO), don't run programs to probe.
|
|
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"). An empty listing is NOT absence: re-check with `ls -la` / `test -e` before concluding a file does not exist.
|
|
37
|
+
Real Linux, no MSYS layer — path arguments are NOT rewritten; /mnt/c/... is the Windows side verbatim. Linux filesystems are case-SENSITIVE while /mnt/c is not — the same file reached via both paths is a classic split-brain. /mnt/c I/O is slow and shows every file as 0777/exec; keep repos and build outputs in the Linux home when you can.
|
|
38
|
+
Cross-boundary traps — Windows-authored text carries CRLF: a shebang line fails with `bash\r: No such file or directory`, sed and `[ ]` comparisons fail silently; strip with `tr -d '\r'` / dos2unix. Running a Windows .exe from WSL is possible but it speaks C:\ paths — translate with `wslpath`. `python` may not exist on a stock distro: use `python3` and `python3 -m pip`.
|
|
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 (an MSYS/bash payload included by another plugin is NOT a reason to leave WSL: a real Linux bash outranks it); 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
|
@@ -40,6 +40,17 @@
|
|
|
40
40
|
# file, which Program Files denies a standard user.) Until that link exists the candidate
|
|
41
41
|
# is skipped, so the row is correct either way and the stock candidates stay untouched.
|
|
42
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
|
+
#
|
|
43
54
|
# `shell` is deliberately absent: that means "no explicit default", so the
|
|
44
55
|
# controller uses the execution environment's default shell - the stock
|
|
45
56
|
# behaviour, unchanged.
|
|
@@ -51,6 +62,7 @@
|
|
|
51
62
|
- id: terminal-controller
|
|
52
63
|
config:
|
|
53
64
|
shellCandidates:
|
|
65
|
+
- !!js '(process.env.LOCALAPPDATA || "") + "\\dsh-bash-terminal-ts\\payloads\\bash-terminal\\bin\\bash-terminal.exe"'
|
|
54
66
|
- 'C:\Program Files\Git\bin\git-bash.exe'
|
|
55
67
|
- 'C:\msys64\usr\bin\msys-bash.exe'
|
|
56
68
|
- zsh
|
package/dist/client.core.js
CHANGED
|
@@ -6147,9 +6147,11 @@ var zh = {
|
|
|
6147
6147
|
"shell.wsl": "WSL",
|
|
6148
6148
|
"shell.unavailable": "\u8BBE\u7F6E\u9762\u4E0D\u53EF\u7528\uFF1A\u5BBF\u4E3B\u914D\u7F6E\u6865\u672A\u54CD\u5E94\uFF08\u68C0\u67E5\u5BBF\u4E3B\u662F\u5426\u4E3A compat \u7248\uFF09",
|
|
6149
6149
|
"dock.title": "\u5E95\u90E8\u7EC8\u7AEF",
|
|
6150
|
-
"dock.hint": "\u5F00\u5173\
|
|
6150
|
+
"dock.hint": "\u5F00\u5173\u540C\u65F6\u7EA6\u675F\u5E95\u90E8\u7EC8\u7AEF\u4E0E shell \u5DE5\u5177\u7684\u53EF\u9009\u540E\u7AEF\uFF08PowerShell \u4E3A\u4FDD\u5E95\uFF0C\u6052\u53EF\u9009\uFF09\uFF1B\u4E0D\u6539\u53D8\u5B98\u65B9\u53F3\u680F\u7EC8\u7AEF\u3002",
|
|
6151
6151
|
"dock.state.available": "\u53EF\u7528",
|
|
6152
6152
|
"dock.state.notInstalled": "\u672A\u63A2\u6D4B\u5230",
|
|
6153
|
+
"dock.state.wslPreferred": "\u5DF2\u68C0\u6D4B\u5230 WSL \u53D1\u884C\u7248\uFF08\u4F18\u5148\u7528 WSL bash\uFF09",
|
|
6154
|
+
"shell.payload": "POSIX payload",
|
|
6153
6155
|
"dock.state.noDistro": "\u65E0\u5DF2\u5B89\u88C5\u53D1\u884C\u7248",
|
|
6154
6156
|
"dock.state.launcherOnly": "\u53EA\u627E\u5230\u542F\u52A8\u5668\uFF0C\u65E0\u6CD5\u5185\u5D4C",
|
|
6155
6157
|
"dock.powershell.locked": "PowerShell \u662F\u4FDD\u5E95\u540E\u7AEF\uFF0C\u65E0\u6CD5\u5173\u95ED\u3002",
|
|
@@ -6192,9 +6194,11 @@ var en = {
|
|
|
6192
6194
|
"shell.wsl": "WSL",
|
|
6193
6195
|
"shell.unavailable": "Settings unavailable: the host config bridge did not respond (is the host a compat build?)",
|
|
6194
6196
|
"dock.title": "Bottom terminal",
|
|
6195
|
-
"dock.hint": "These switches
|
|
6197
|
+
"dock.hint": "These switches gate both the bottom dock terminal and the shell tool's selectable backends (PowerShell is the floor and always available). The official right-hand terminal is untouched.",
|
|
6196
6198
|
"dock.state.available": "Available",
|
|
6197
6199
|
"dock.state.notInstalled": "Not found",
|
|
6200
|
+
"dock.state.wslPreferred": "WSL distro detected (WSL bash preferred)",
|
|
6201
|
+
"shell.payload": "POSIX payload",
|
|
6198
6202
|
"dock.state.noDistro": "No distro installed",
|
|
6199
6203
|
"dock.state.launcherOnly": "Only a launcher was found; it cannot be embedded",
|
|
6200
6204
|
"dock.powershell.locked": "PowerShell is the fallback backend and cannot be turned off.",
|
|
@@ -6237,9 +6241,11 @@ var ja = {
|
|
|
6237
6241
|
"shell.wsl": "WSL",
|
|
6238
6242
|
"shell.unavailable": "\u8A2D\u5B9A\u9762\u3092\u5229\u7528\u3067\u304D\u307E\u305B\u3093\uFF1A\u30DB\u30B9\u30C8\u306E\u8A2D\u5B9A\u30D6\u30EA\u30C3\u30B8\u304C\u5FDC\u7B54\u3057\u307E\u305B\u3093\uFF08compat \u30D3\u30EB\u30C9\u3067\u3059\u304B\uFF1F\uFF09",
|
|
6239
6243
|
"dock.title": "\u4E0B\u90E8\u30BF\u30FC\u30DF\u30CA\u30EB",
|
|
6240
|
-
"dock.hint": "\u3053\u306E\u30B9\u30A4\u30C3\u30C1\u306F\u4E0B\u90E8\u30C9\u30C3\u30AF\u306E\u30BF\u30FC\u30DF\u30CA\u30EB\u306E\
|
|
6244
|
+
"dock.hint": "\u3053\u306E\u30B9\u30A4\u30C3\u30C1\u306F\u4E0B\u90E8\u30C9\u30C3\u30AF\u306E\u30BF\u30FC\u30DF\u30CA\u30EB\u3068 shell \u30C4\u30FC\u30EB\u306E\u9078\u629E\u53EF\u80FD\u30D0\u30C3\u30AF\u30A8\u30F3\u30C9\u306E\u4E21\u65B9\u306B\u5F71\u97FF\u3057\u307E\u3059\uFF08PowerShell \u306F\u6700\u7D42\u4EE3\u66FF\u306E\u305F\u3081\u5E38\u306B\u9078\u629E\u53EF\uFF09\u3002\u516C\u5F0F\u306E\u53F3\u5074\u30BF\u30FC\u30DF\u30CA\u30EB\u306F\u5909\u66F4\u3055\u308C\u307E\u305B\u3093\u3002",
|
|
6241
6245
|
"dock.state.available": "\u5229\u7528\u53EF",
|
|
6242
6246
|
"dock.state.notInstalled": "\u898B\u3064\u304B\u308A\u307E\u305B\u3093",
|
|
6247
|
+
"dock.state.wslPreferred": "WSL \u30C7\u30A3\u30B9\u30C8\u30EA\u691C\u51FA\u6E08\u307F\uFF08WSL bash \u512A\u5148\uFF09",
|
|
6248
|
+
"shell.payload": "POSIX payload",
|
|
6243
6249
|
"dock.state.noDistro": "\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u6E08\u307F\u30C7\u30A3\u30B9\u30C8\u30EA\u30D3\u30E5\u30FC\u30B7\u30E7\u30F3\u306A\u3057",
|
|
6244
6250
|
"dock.state.launcherOnly": "\u30E9\u30F3\u30C1\u30E3\u30FC\u306E\u307F\u691C\u51FA\u3001\u57CB\u3081\u8FBC\u307F\u4E0D\u53EF",
|
|
6245
6251
|
"dock.powershell.locked": "PowerShell \u306F\u6700\u5F8C\u306E\u4EE3\u66FF\u306E\u305F\u3081\u7121\u52B9\u5316\u3067\u304D\u307E\u305B\u3093\u3002",
|
|
@@ -6282,9 +6288,11 @@ var ko = {
|
|
|
6282
6288
|
"shell.wsl": "WSL",
|
|
6283
6289
|
"shell.unavailable": "\uC124\uC815\uBA74\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: \uD638\uC2A4\uD2B8 \uC124\uC815 \uBE0C\uB9AC\uC9C0\uAC00 \uC751\uB2F5\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 (compat \uBE4C\uB4DC\uC778\uAC00\uC694?)",
|
|
6284
6290
|
"dock.title": "\uD558\uB2E8 \uD130\uBBF8\uB110",
|
|
6285
|
-
"dock.hint": "\uC774 \uC2A4\uC704\uCE58\uB294 \uD558\uB2E8 \uB3C5
|
|
6291
|
+
"dock.hint": "\uC774 \uC2A4\uC704\uCE58\uB294 \uD558\uB2E8 \uB3C5 \uD130\uBBF8\uB110\uACFC shell \uB3C4\uAD6C\uC758 \uC120\uD0DD \uAC00\uB2A5 \uBC31\uC5D4\uB4DC \uBAA8\uB450\uC5D0 \uC601\uD5A5\uC744 \uC90D\uB2C8\uB2E4(PowerShell\uC740 \uD56D\uC0C1 \uC120\uD0DD \uAC00\uB2A5). \uACF5\uC2DD \uC624\uB978\uCABD \uD130\uBBF8\uB110\uC740 \uBCC0\uACBD\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
6286
6292
|
"dock.state.available": "\uC0AC\uC6A9 \uAC00\uB2A5",
|
|
6287
6293
|
"dock.state.notInstalled": "\uD0D0\uC9C0\uB418\uC9C0 \uC54A\uC74C",
|
|
6294
|
+
"dock.state.wslPreferred": "WSL \uBC30\uD3EC\uD310 \uAC10\uC9C0\uB428 (WSL bash \uC6B0\uC120)",
|
|
6295
|
+
"shell.payload": "POSIX payload",
|
|
6288
6296
|
"dock.state.noDistro": "\uC124\uCE58\uB41C \uBC30\uD3EC\uD310 \uC5C6\uC74C",
|
|
6289
6297
|
"dock.state.launcherOnly": "\uB7F0\uCC98\uB9CC \uBC1C\uACAC\uB418\uC5B4 \uB0B4\uC7A5\uD560 \uC218 \uC5C6\uC74C",
|
|
6290
6298
|
"dock.powershell.locked": "PowerShell\uC740 \uCD5C\uC885 \uB300\uCCB4 \uD56D\uBAA9\uC774\uBBC0\uB85C \uB04C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
@@ -6327,9 +6335,11 @@ var fr = {
|
|
|
6327
6335
|
"shell.wsl": "WSL",
|
|
6328
6336
|
"shell.unavailable": "Param\xE8tres indisponibles: le pont de configuration de l'h\xF4te n'a pas r\xE9pondu",
|
|
6329
6337
|
"dock.title": "Terminal inf\xE9rieur",
|
|
6330
|
-
"dock.hint": "Ces interrupteurs
|
|
6338
|
+
"dock.hint": "Ces interrupteurs r\xE9gissent \xE0 la fois le terminal du dock bas et les backends s\xE9lectionnables de l'outil shell (PowerShell reste toujours disponible). Le terminal officiel de droite reste inchang\xE9.",
|
|
6331
6339
|
"dock.state.available": "Disponible",
|
|
6332
6340
|
"dock.state.notInstalled": "Non d\xE9tect\xE9",
|
|
6341
|
+
"dock.state.wslPreferred": "Distro WSL d\xE9tect\xE9e (bash WSL pr\xE9f\xE9r\xE9)",
|
|
6342
|
+
"shell.payload": "POSIX payload",
|
|
6333
6343
|
"dock.state.noDistro": "Aucune distribution install\xE9e",
|
|
6334
6344
|
"dock.state.launcherOnly": "Seuls des lanceurs ont \xE9t\xE9 trouv\xE9s; int\xE9gration impossible",
|
|
6335
6345
|
"dock.powershell.locked": "PowerShell sert de repli final et ne peut pas \xEAtre d\xE9sactiv\xE9.",
|
|
@@ -6372,9 +6382,11 @@ var de = {
|
|
|
6372
6382
|
"shell.wsl": "WSL",
|
|
6373
6383
|
"shell.unavailable": "Einstellungen nicht verf\xFCgbar: Die Konfigurationsbr\xFCcke des Hosts hat nicht geantwortet",
|
|
6374
6384
|
"dock.title": "Unteres Terminal",
|
|
6375
|
-
"dock.hint": "Diese Schalter
|
|
6385
|
+
"dock.hint": "Diese Schalter steuern sowohl das Terminal im unteren Dock als auch die w\xE4hlbaren Backends des shell-Werkzeugs (PowerShell bleibt immer verf\xFCgbar). Das offizielle rechte Terminal bleibt unber\xFChrt.",
|
|
6376
6386
|
"dock.state.available": "Verf\xFCgbar",
|
|
6377
6387
|
"dock.state.notInstalled": "Nicht gefunden",
|
|
6388
|
+
"dock.state.wslPreferred": "WSL-Distro erkannt (WSL bash bevorzugt)",
|
|
6389
|
+
"shell.payload": "POSIX payload",
|
|
6378
6390
|
"dock.state.noDistro": "Keine Distribution installiert",
|
|
6379
6391
|
"dock.state.launcherOnly": "Nur Launcher gefunden; Einbettung nicht m\xF6glich",
|
|
6380
6392
|
"dock.powershell.locked": "PowerShell ist die letzte R\xFCckfallm\xF6glichkeit und kann nicht deaktiviert werden.",
|
|
@@ -6417,9 +6429,11 @@ var it = {
|
|
|
6417
6429
|
"shell.wsl": "WSL",
|
|
6418
6430
|
"shell.unavailable": "Impostazioni non disponibili: il bridge di configurazione dell'host non ha risposto",
|
|
6419
6431
|
"dock.title": "Terminale inferiore",
|
|
6420
|
-
"dock.hint": "Questi interruttori
|
|
6432
|
+
"dock.hint": "Questi interruttori controllano sia il terminale nella barra inferiore sia i backend selezionabili dello strumento shell (PowerShell resta sempre disponibile). Il terminale ufficiale a destra non cambia.",
|
|
6421
6433
|
"dock.state.available": "Disponibile",
|
|
6422
6434
|
"dock.state.notInstalled": "Non trovato",
|
|
6435
|
+
"dock.state.wslPreferred": "Distro WSL rilevata (bash WSL preferito)",
|
|
6436
|
+
"shell.payload": "POSIX payload",
|
|
6423
6437
|
"dock.state.noDistro": "Nessuna distribuzione installata",
|
|
6424
6438
|
"dock.state.launcherOnly": "Trovato solo un launcher; incorporamento non possibile",
|
|
6425
6439
|
"dock.powershell.locked": "PowerShell \xE8 il ripiego finale e non pu\xF2 essere disattivato.",
|
|
@@ -6462,9 +6476,11 @@ var ru = {
|
|
|
6462
6476
|
"shell.wsl": "WSL",
|
|
6463
6477
|
"shell.unavailable": "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B: \u043C\u043E\u0441\u0442 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0445\u043E\u0441\u0442\u0430 \u043D\u0435 \u043E\u0442\u0432\u0435\u0442\u0438\u043B",
|
|
6464
6478
|
"dock.title": "\u041D\u0438\u0436\u043D\u0438\u0439 \u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B",
|
|
6465
|
-
"dock.hint": "\u042D\u0442\u0438 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0430\u0442\u0435\u043B\u0438 \u0432\u043B\u0438\u044F\u044E\u0442 \
|
|
6479
|
+
"dock.hint": "\u042D\u0442\u0438 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0430\u0442\u0435\u043B\u0438 \u0432\u043B\u0438\u044F\u044E\u0442 \u0438 \u043D\u0430 \u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B \u0432 \u043D\u0438\u0436\u043D\u0435\u0439 \u043F\u0430\u043D\u0435\u043B\u0438, \u0438 \u043D\u0430 \u0432\u044B\u0431\u0438\u0440\u0430\u0435\u043C\u044B\u0435 \u0431\u044D\u043A\u0435\u043D\u0434\u044B \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u0430 shell (PowerShell \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u0432\u0441\u0435\u0433\u0434\u0430). \u041E\u0444\u0438\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u043F\u0440\u0430\u0432\u044B\u0439 \u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B \u043D\u0435 \u043C\u0435\u043D\u044F\u0435\u0442\u0441\u044F.",
|
|
6466
6480
|
"dock.state.available": "\u0414\u043E\u0441\u0442\u0443\u043F\u0435\u043D",
|
|
6467
6481
|
"dock.state.notInstalled": "\u041D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D",
|
|
6482
|
+
"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
|
+
"shell.payload": "POSIX payload",
|
|
6468
6484
|
"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",
|
|
6469
6485
|
"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",
|
|
6470
6486
|
"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.",
|
|
@@ -6507,9 +6523,11 @@ var es = {
|
|
|
6507
6523
|
"shell.wsl": "WSL",
|
|
6508
6524
|
"shell.unavailable": "Configuraci\xF3n no disponible: el puente de configuraci\xF3n del host no respondi\xF3",
|
|
6509
6525
|
"dock.title": "Terminal inferior",
|
|
6510
|
-
"dock.hint": "Estos interruptores
|
|
6526
|
+
"dock.hint": "Estos interruptores afectan tanto al terminal del panel inferior como a los backends seleccionables de la herramienta shell (PowerShell siempre est\xE1 disponible). El terminal oficial derecho no cambia.",
|
|
6511
6527
|
"dock.state.available": "Disponible",
|
|
6512
6528
|
"dock.state.notInstalled": "No detectado",
|
|
6529
|
+
"dock.state.wslPreferred": "Distro de WSL detectada (se prefiere bash de WSL)",
|
|
6530
|
+
"shell.payload": "POSIX payload",
|
|
6513
6531
|
"dock.state.noDistro": "Sin distribuci\xF3n instalada",
|
|
6514
6532
|
"dock.state.launcherOnly": "Solo se encontr\xF3 un lanzador; no se puede incrustar",
|
|
6515
6533
|
"dock.powershell.locked": "PowerShell es el respaldo final y no puede desactivarse.",
|
|
@@ -7675,7 +7693,7 @@ function MultiShellTerminal(props) {
|
|
|
7675
7693
|
// src/client.tsx
|
|
7676
7694
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
7677
7695
|
var SETTINGS_NS = "settings.bash-terminal";
|
|
7678
|
-
var SHELLS = ["powershell", "gitbash", "msys2", "wsl"];
|
|
7696
|
+
var SHELLS = ["powershell", "gitbash", "msys2", "wsl", "payload"];
|
|
7679
7697
|
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}";
|
|
7680
7698
|
if (typeof document !== "undefined" && document.querySelector('style[data-plugin-css="bash-terminal-row"]') === null) {
|
|
7681
7699
|
const tag = document.createElement("style");
|
|
@@ -7701,10 +7719,22 @@ function catalogOf(snapshot) {
|
|
|
7701
7719
|
function badgeKey(row) {
|
|
7702
7720
|
if (!row.togglable) return "dock.state.floor";
|
|
7703
7721
|
if (row.available) return "dock.state.available";
|
|
7704
|
-
return row.reason === "no-distro" ? "dock.state.noDistro" : row.reason === "launcher-only" ? "dock.state.launcherOnly" : "dock.state.notInstalled";
|
|
7722
|
+
return row.reason === "no-distro" ? "dock.state.noDistro" : row.reason === "launcher-only" ? "dock.state.launcherOnly" : row.reason === "wsl-preferred" ? "dock.state.wslPreferred" : "dock.state.notInstalled";
|
|
7723
|
+
}
|
|
7724
|
+
function dropdownRows(snapshot, chosen) {
|
|
7725
|
+
const all = SHELLS.map((id) => ({ id, label: tr("shell." + id) }));
|
|
7726
|
+
const rows = catalogOf(snapshot);
|
|
7727
|
+
if (rows === null) return all;
|
|
7728
|
+
const usable = rows.filter((row) => row.activated && row.available).map((row) => ({ id: row.id, label: tr("shell." + row.id) }));
|
|
7729
|
+
if (chosen.length > 0 && !usable.some((row) => row.id === chosen)) {
|
|
7730
|
+
const extra = all.find((row) => row.id === chosen);
|
|
7731
|
+
if (extra !== void 0) usable.push(extra);
|
|
7732
|
+
}
|
|
7733
|
+
return usable;
|
|
7705
7734
|
}
|
|
7706
7735
|
function ShellPreferenceRow({ snapshot }) {
|
|
7707
7736
|
const [shell, setShell] = (0, import_react3.useState)("powershell");
|
|
7737
|
+
const [snap, setSnap] = (0, import_react3.useState)(snapshot ?? null);
|
|
7708
7738
|
const [status, setStatus] = (0, import_react3.useState)("loading");
|
|
7709
7739
|
(0, import_react3.useEffect)(() => {
|
|
7710
7740
|
let alive = true;
|
|
@@ -7713,6 +7743,7 @@ function ShellPreferenceRow({ snapshot }) {
|
|
|
7713
7743
|
if (!alive) return;
|
|
7714
7744
|
if (v && v.defaultShell) {
|
|
7715
7745
|
setShell(v.defaultShell);
|
|
7746
|
+
setSnap(v);
|
|
7716
7747
|
setStatus("ready");
|
|
7717
7748
|
} else {
|
|
7718
7749
|
setStatus("unavailable");
|
|
@@ -7746,7 +7777,7 @@ function ShellPreferenceRow({ snapshot }) {
|
|
|
7746
7777
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
7747
7778
|
ShellPicker,
|
|
7748
7779
|
{
|
|
7749
|
-
rows:
|
|
7780
|
+
rows: dropdownRows(snap, shell),
|
|
7750
7781
|
value: shell,
|
|
7751
7782
|
onChange: (next) => change(next)
|
|
7752
7783
|
}
|