dsh-context-mode 0.2.0 → 0.2.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/routing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,WAAW,EAAE,MAAM,wBAAwB,CAAA;AA+DxE,wEAAwE;AACxE,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,IAAI,CAiCtE;AAED,2FAA2F;AAC3F,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAM1D;AAED,8EAA8E;AAC9E,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAK1D;AAED,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAcvD"}
1
+ {"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/routing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAgExE,wEAAwE;AACxE,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,IAAI,CAiCtE;AAED,2FAA2F;AAC3F,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAM1D;AAED,8EAA8E;AAC9E,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAK1D;AAED,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAcvD"}
@@ -12,8 +12,8 @@ const BLOCKED_HTTP_PATTERNS = [
12
12
  * the right tool. Anything not listed here is judged by the flood rules below.
13
13
  */
14
14
  const SAFE_COMMAND_PATTERNS = [
15
- // File mutations and navigation.
16
- /^(mkdir|rmdir|mv|cp|ln|touch|chmod|chown|cd|pwd|which|command|type|rm|unlink)\b/,
15
+ // File mutations, navigation, and short directory listings.
16
+ /^(mkdir|rmdir|mv|cp|ln|touch|chmod|chown|cd|pwd|which|command|type|rm|unlink|ls)\b/,
17
17
  // Process control.
18
18
  /^(kill|pkill|killall|jobs|fg|bg)\b/,
19
19
  // Package management (progress output, no data payload).
@@ -28,9 +28,10 @@ const FLOOD_COMMAND_PATTERNS = [
28
28
  // Tests, builds, linters, type checks.
29
29
  /^(npm|pnpm|yarn|bun)\s+(run\s+)?(test|build|lint|check|typecheck|coverage|audit|outdated|why|ls|view)\b/,
30
30
  /^(jest|vitest|mocha|ava|pytest|tox|nose|go\s+test|cargo\s+(test|build|check|clippy)|mvn|gradle|make|tsc|eslint|ruff|mypy|flake8)\b/,
31
- // Filesystem and text dumps.
31
+ // Filesystem and text dumps. `ls` is deliberately absent: it stays on Bash
32
+ // because a directory listing is short in practice and is used constantly.
32
33
  /^(cat|bat|less|more|head|tail|nl|tac|xxd|od|strings|wc)\b/,
33
- /^(find|fd|tree|ls|du|df|stat|file)\b/,
34
+ /^(find|fd|tree|du|df|stat|file)\b/,
34
35
  // Log and stream readers.
35
36
  /^(journalctl|dmesg|log\s+show|syslog)\b/,
36
37
  // Repository history and search.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-context-mode",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Expose context-mode MCP tools as native DeepSeek Harness tools",
5
5
  "keywords": [
6
6
  "dsh",