dsh-bash-encoding

DSH bash 输出编码自动识别插件:替换 ctx.bash,自管 spawn 收集原始字节,自动检测 UTF-16LE/UTF-8/GBK 等编码并正确解码,修复 WSL/Windows 下 bash 工具的中文乱码。

Plugin终端桌面终端 / Shell
验证
L2 · Structured
安全
Pending
健康
Active
信任
Bronze

功能介绍AI

Automatically detects and decodes bash output encodings (UTF-16LE/UTF-8/GBK) to fix garbled Chinese text under WSL/Windows.

  • Replaces ctx.bash to manage subprocess spawn
  • Auto-detects UTF-16LE/UTF-8/GBK from raw bytes
  • Fixes Chinese mojibake for WSL/Windows bash

由 AI 基于 README 自动生成,仅供参考。

安装

dsh plugin --profile web add dsh-bash-encoding

Install method: npm · 尚未在容器中测试 (L3+)

兼容性

DSH VersionStatus
not statedDeclared — not tested

要求

  • • Node.js: not stated
  • • DSH: declared "not stated"
  • • External credentials: none detected

Security Report

自动扫描,非人工审核。

• Dependency vulnerabilities: — (pending)

• Suspicious permissions: — (pending)

• Hardcoded secrets: — (pending)

• Supply chain risks: — (pending)

⚠ 安全审计已排期 — 下次扫描后结果将显示在这里。

Activity

Last commit 2026-08-13 · activity: active

6 mo

Source

GitHub: github.com/lhh010/dsh-bash-encoding