dsh-gitbash-shell 0.4.0 → 0.4.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.md +5 -17
- package/README_EN.md +2 -5
- package/cordis.patch.yml +2 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,32 +24,20 @@
|
|
|
24
24
|
Git Bash host 下会拿到"暗示 PowerShell 语法的工具",请改用上面的变体;
|
|
25
25
|
已装 dsh-ptc-cordis-preset 的话,`PTC 创造模式` 用户 preset 不受影响。
|
|
26
26
|
|
|
27
|
-
## 安装(公开
|
|
27
|
+
## 安装(公开 npm 插件,推荐)
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
npm: [dsh-gitbash-shell](https://www.npmjs.com/package/dsh-gitbash-shell),
|
|
30
|
+
源码与 Release: [github.com/KannaKuron/dsh-gitbash-shell](https://github.com/KannaKuron/dsh-gitbash-shell)
|
|
30
31
|
|
|
31
32
|
```sh
|
|
32
33
|
# web 图形界面
|
|
33
|
-
dsh plugin --profile web add
|
|
34
|
-
|
|
35
|
-
# 可选:TUI / 自定义 TUI 也启用(命令行各 profile 需要)
|
|
36
|
-
dsh plugin --profile tui add github:KannaKuron/dsh-gitbash-shell
|
|
37
|
-
dsh plugin --profile cc-tui add github:KannaKuron/dsh-gitbash-shell
|
|
34
|
+
dsh plugin --profile web add dsh-gitbash-shell
|
|
38
35
|
```
|
|
39
36
|
|
|
40
|
-
`dsh plugin add` 会自动:① pnpm 安装 `
|
|
37
|
+
`dsh plugin add` 会自动:① pnpm 安装 npm 包 `dsh-gitbash-shell`;
|
|
41
38
|
② 检测到包声明的 `dsh.bundle` 后把它追加进该 profile 的
|
|
42
39
|
`dsh.profile.bundles`。**重启该 profile 的 host 后生效。**
|
|
43
40
|
|
|
44
|
-
TUI/cc-tui 额外:在其 `cordis.patch.yml` 里翻转 host 工具行(web 不需要):
|
|
45
|
-
|
|
46
|
-
```yaml
|
|
47
|
-
- id: tool-bash
|
|
48
|
-
disabled: false
|
|
49
|
-
- id: tool-pwsh
|
|
50
|
-
disabled: true
|
|
51
|
-
```
|
|
52
|
-
|
|
53
41
|
## 它做了什么
|
|
54
42
|
|
|
55
43
|
bundle patch(`cordis.patch.yml`)应用三个改动:
|
package/README_EN.md
CHANGED
|
@@ -4,13 +4,10 @@
|
|
|
4
4
|
> Harness (dsh) — replaces the PowerShell executor and materializes Git Bash
|
|
5
5
|
> variants of all four agent presets.
|
|
6
6
|
|
|
7
|
-
## Install (public
|
|
7
|
+
## Install (public npm package)
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
dsh plugin --profile web add
|
|
11
|
-
# optional TUI surfaces
|
|
12
|
-
dsh plugin --profile tui add github:KannaKuron/dsh-gitbash-shell
|
|
13
|
-
dsh plugin --profile cc-tui add github:KannaKuron/dsh-gitbash-shell
|
|
10
|
+
dsh plugin --profile web add dsh-gitbash-shell
|
|
14
11
|
```
|
|
15
12
|
|
|
16
13
|
`dsh plugin add` installs the dependency via pnpm and, seeing the
|
package/cordis.patch.yml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#
|
|
3
3
|
# Installed through the official CLI —
|
|
4
4
|
#
|
|
5
|
-
# dsh plugin --profile <name> add
|
|
5
|
+
# dsh plugin --profile <name> add dsh-gitbash-shell
|
|
6
6
|
#
|
|
7
7
|
# — the command reconciles `dsh.profile.bundles` against installed packages
|
|
8
8
|
# and, seeing this declaration, appends dsh-gitbash-shell to the bundle
|
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
#
|
|
23
23
|
# This patch deliberately does NOT flip the base host tool-bash/tool-pwsh
|
|
24
24
|
# rows: the web surface disables them and lets agent presets provide the
|
|
25
|
-
# model-facing shell tools
|
|
26
|
-
# their own patch layer.
|
|
25
|
+
# model-facing shell tools instead.
|
|
27
26
|
- id: pwsh-sandbox
|
|
28
27
|
disabled: true
|
|
29
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-gitbash-shell",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "DSH plugin: run every agent shell command through Git for Windows bash on Windows instead of PowerShell. Replaces the pwsh executor with a Git Bash ctx.shell provider and materializes Git Bash variants of the standard/minimal/code/cordis agent presets into your user preset root at startup.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|