@sakka6868/dsh-voice-input 0.1.0 → 0.1.1
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/README.md +2 -0
- package/lib/client.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> DeepSeek Harness Web UI 的「语音输入」插件 —— 点一下麦克风(或按 `Ctrl+Shift+M`),边说边把话实时变成输入框里的文字,停止后自动校对。
|
|
4
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/@sakka6868/dsh-voice-input)
|
|
6
|
+
[](https://github.com/sakka6868/dsh-voice-input)
|
|
5
7
|
[](LICENSE)
|
|
6
8
|

|
|
7
9
|

|
package/lib/client.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
//
|
|
3
3
|
// Adapted from the dynamic plugin form for the STATIC plugin shape:
|
|
4
4
|
// - registered via window.__ModuleLoader__.load({ id, factory });
|
|
5
|
+
// IMPORTANT: `id` must be the exact npm package name — DSH resolves the
|
|
6
|
+
// loader entry by package name and rejects a bundle that registers another id.
|
|
5
7
|
// - React arrives through require('react');
|
|
6
8
|
// - the dynamic plugin's host.call('voice.proofread') is replaced by
|
|
7
9
|
// fetch('/dsh-voice-input/proofread');
|
|
@@ -12,7 +14,7 @@
|
|
|
12
14
|
// Component logic, state machine, slot ids, button placement (flex order 1)
|
|
13
15
|
// and CSS rules are unchanged from the dynamic form.
|
|
14
16
|
window.__ModuleLoader__.load({
|
|
15
|
-
id: 'dsh-voice-input',
|
|
17
|
+
id: '@sakka6868/dsh-voice-input',
|
|
16
18
|
factory: (require) => {
|
|
17
19
|
var module = { exports: {} };
|
|
18
20
|
var exports = module.exports;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sakka6868/dsh-voice-input",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "DeepSeek Harness Web UI 语音输入插件:发送按钮左侧的麦克风按钮,调用浏览器 Web Speech API(Edge 中即微软语音服务)实时把语音转成文字写入输入框,停止后自动校对(错别字/同音偏差/繁体转简体/标点)。支持 Ctrl+Shift+M 快捷键,零依赖、无需 API Key。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|