dsh-totonai 0.1.0 → 0.1.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.
package/README.md CHANGED
@@ -35,7 +35,7 @@
35
35
  npm pack
36
36
 
37
37
  # 在 DSH 里安装本地包
38
- dsh plugin --profile web add ./dsh-totonai-0.1.0.tgz
38
+ dsh plugin --profile web add ./dsh-totonai-0.1.2.tgz
39
39
  ```
40
40
 
41
41
  ## 配置
package/client/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  // 手写单文件 bundle,无构建链,由 dsh web 客户端的 ModuleLoader 注入。
4
4
  // 硬约束:任何异常只 console.warn,界面挂掉也不能影响 dsh 设置页本身。
5
5
  window.__ModuleLoader__.load({
6
- id: 'totonai',
6
+ id: 'dsh-totonai',
7
7
  factory: (require) => {
8
8
  const module = { exports: {} }
9
9
  const React = require('react')
@@ -290,13 +290,13 @@ window.__ModuleLoader__.load({
290
290
  ]))
291
291
  }
292
292
 
293
- const name = 'llm-totonai'
293
+ const name = 'dsh-totonai'
294
294
  // 用到 slots 服务必须先声明,否则 ctx.slots 读不到
295
295
  const inject = ['slots']
296
296
  function apply(ctx) {
297
297
  try {
298
298
  ctx.slots.inject('settings.section', () =>
299
- ctx.slots.register({ name: 'settings.section', id: 'totonai', order: 30, label: () => 'ToTonAI' }, SettingsSection),
299
+ ctx.slots.register({ name: 'settings.section', id: 'dsh-totonai', order: 30, label: () => 'ToTonAI' }, SettingsSection),
300
300
  )
301
301
  } catch (error) {
302
302
  console.warn('[totonai] 设置页注册失败', error)
package/cordis.patch.yml CHANGED
@@ -1,3 +1,3 @@
1
1
  - insert:
2
- - id: llm-totonai
3
- name: dsh-totonai
2
+ - id: dsh-totonai
3
+ name: dsh-totonai