dsh-plugin-wsl-env 0.1.2 → 0.1.4

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/lib/index.js CHANGED
@@ -228,12 +228,12 @@ export class WslShellExecutor extends LocalBashExecutor {
228
228
  * @returns an absolute path to the shell inside the distro.
229
229
  */
230
230
  async shellName() {
231
- // Consumed by the shell tool after upstream change A: it names and describes
232
- // itself from the executor, so a zsh distro is never presented as bash.
233
- const shell = await this.shell();
234
- const base = String(shell ?? "").split("/").pop() ?? "";
235
- const name = base.replace(/\.exe$/i, "").replace(/^[-.]+/, "");
236
- return /^[a-z0-9_+-]+$/i.test(name) ? name : "bash";
231
+ // Consumed by the shell tool after upstream change A: it names and describes
232
+ // itself from the executor, so a zsh distro is never presented as bash.
233
+ const shell = await this.shell();
234
+ const base = String(shell ?? "").split("/").pop() ?? "";
235
+ const name = base.replace(/\.exe$/i, "").replace(/^[-.]+/, "");
236
+ return /^[a-z0-9_+-]+$/i.test(name) ? name : "bash";
237
237
  }
238
238
 
239
239
  async shell() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-wsl-env",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Run a DeepSeek Harness session against a WSL distro: a ctx.shell executor that runs commands inside the distro and a ctx.fs backend over its UNC share",
5
5
  "keywords": [
6
6
  "deepseek-harness",
@@ -35,13 +35,22 @@
35
35
  "examples/**/*.yml",
36
36
  "README.md",
37
37
  "docs/README.zh.md",
38
+ "docs/CONFIGURATION.md",
39
+ "docs/LIMITATIONS.md",
40
+ "docs/ARCHITECTURE.md",
38
41
  "CHANGELOG.md",
42
+ "CONTRIBUTING.md",
43
+ "SECURITY.md",
44
+ "SUPPORT.md",
39
45
  "LICENSE"
40
46
  ],
41
47
  "scripts": {
42
- "test": "npm run test:syntax && npm run test:unit",
48
+ "test": "npm run lint:style && npm run test:syntax && npm run test:unit",
49
+ "test:coverage": "node --test --experimental-test-coverage --test-coverage-lines=85 --test-coverage-branches=85 --test-coverage-functions=70 test/paths.test.mjs test/listing.test.mjs test/shell.test.mjs test/terminal.test.mjs",
43
50
  "test:syntax": "node test/syntax.mjs",
44
51
  "test:unit": "node --test test/paths.test.mjs test/listing.test.mjs test/shell.test.mjs test/terminal.test.mjs",
52
+ "lint:style": "node test/style.mjs",
53
+ "prepublishOnly": "npm test",
45
54
  "probe": "bash test/probe/run.sh",
46
55
  "probe:terminal": "bash test/probe/terminal.sh",
47
56
  "probe:sandbox": "bash test/probe/sandbox.sh",
@@ -51,7 +60,14 @@
51
60
  "engines": {
52
61
  "node": ">=20"
53
62
  },
54
- "packageManager": "pnpm@11.7.0",
63
+ "author": {
64
+ "name": "Andy Zhao",
65
+ "url": "https://github.com/Big-Dao"
66
+ },
67
+ "publishConfig": {
68
+ "access": "public",
69
+ "registry": "https://registry.npmjs.org/"
70
+ },
55
71
  "license": "MIT",
56
72
  "repository": {
57
73
  "type": "git",