其他
完整应用
deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
DSH 插件:命名/大小写风格转换工具,注册一个 case_convert 工具。
纯 ESM、零依赖、无构建步骤。
dsh plugin --profile <name> add file:./plugins/dsh-case
# 或发布后
dsh plugin --profile <name> add dsh-case
case_convert参数:
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
text |
string | 是 | 待转换文本 |
target |
string(enum) | 是 | 目标风格 |
source |
string(enum) | 否 | 源风格,默认 auto 自动检测 |
返回值(规范 JSON 对象):
{ "input": "...", "target": "camelCase", "source": "snake_case", "output": "...", "words": ["..."] }
以 hello_world(snake_case)为输入:
| target | 输出 |
|---|---|
camelCase |
helloWorld |
PascalCase |
HelloWorld |
snake_case |
hello_world |
kebab-case |
hello-world |
CONSTANT_CASE |
HELLO_WORLD |
UPPER |
HELLO WORLD |
lower |
hello world |
Title Case |
Hello World |
-、_、空白、. 切词。helloWorld → hello / World)HTTPApi → HTTP / Api)my2Factor → my2 / Factor)version2 → version2;开头的 2FA 保持为一个整体不拆分。words 为空数组。source 用于 auto 检测时的判定(分隔符 + 连续大写规则);分词算法对全部分隔符与大小写边界一视同仁,因此 source 主要作为结果中的标注,不影响转换正确性。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。