rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:XiaoYuOvO/dsh-composer-enter-invert
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DSH Web bundle plugin that changes Composer keyboard semantics only while the focused element is the conversation textarea.
default (the durable default): Enter sends; Shift+Enter inserts a newline.inverted: Enter inserts a newline; Shift+Enter sends.isComposing or key code 229) is never intercepted.Open Settings -> General -> Composer send keys and choose the desired mode. Changes take effect immediately in the current Web page.
The plugin does not replace the Composer or call the conversation transport itself.
In inverted mode, it installs one native capture-phase keydown listener and limits it to an enabled, writable textarea inside [data-composer-card] that is the active element.
document.execCommand("insertText", false, "\n"). A setRangeText plus bubbling input fallback is used only when the browser rejects execCommand, so React's existing onChange continues to update the official draft machine and undo stack.shiftKey removed. The replay is guarded with a WeakSet, letting the shipped Composer onKeyDown execute unchanged. That path still calls its keyboard.arbitrate("enter", composing) and keyboard.submit(resolveSubmitMode(...)) logic.Consequently, command-menu Enter arbitration, empty-draft protection, attachment-only sends, draft commit/restore, busy queue/steer policy, accelerated Ctrl/Cmd behavior, and image attachment handling stay in the shipped state machine. ui-conversation.busyEnter remains the authority for Queue versus Steer whenever a send is accepted during a running conversation.
If the setting is default, or this Client half is stopped/uninstalled, no event is intercepted and the shipped key behavior is untouched.
The selected mode is stored in browser localStorage under dsh-composer-enter-invert.v1. This keeps the setting self-contained, so a GitHub install does not require a matching Host settings namespace or a patch to dsh-host-apiproxy. The setting is browser-local rather than shared through settings.yaml; each browser profile can choose its own mode.
The browser loader artifact is intentionally committed in lib/client.js; Git/local installs do not need a bundler during installation.
pnpm run build
pnpm run check
pnpm run test
The package includes the generated lib/ artifacts and can be installed directly from a public Git repository. Replace <owner>/<repo> with the repository containing this directory:
node "G:\Deepseek Harness Desktop\dependencies\dsh\node_modules\@deepseek-ai\dsh\lib\bin.js" plugin --profile web add "https://github.com/<owner>/<repo>.git"
node "G:\Deepseek Harness Desktop\dependencies\dsh\node_modules\@deepseek-ai\dsh\lib\bin.js" --profile web --dump-config
A tagged or commit-pinned source is preferable for repeatable installs, for example https://github.com/<owner>/<repo>.git#v0.2.0. The install command writes only to the selected web profile. Restart the existing DSH Web process after installation, then refresh http://127.0.0.1:3080. No global npm install, Host whitelist edit, or extra dependency installation is required.
Inverted under Settings -> General -> Composer send keys.busyEnter Queue/Steer choice.Default and verify shipped Enter/Shift+Enter behavior resumes immediately.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。