dsh-plugin-panel 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 +3 -1
- package/client.js +12 -4
- package/docs/promo-3x4.png +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# 插件管理 · dsh-plugin-panel
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
DSH 官方插件管理翻不动(还没修),所以自己做了一个。欢迎使用。
|
|
4
|
+
|
|
5
|
+
这是个给 DeepSeek Harness 右侧栏用的插件管理器。装上以后右侧栏会多一个「插件管理」标签,把已安装的插件列出来,并且告诉你每个插件到底从哪里进。
|
|
4
6
|
|
|
5
7
|

|
|
6
8
|
|
package/client.js
CHANGED
|
@@ -3,10 +3,10 @@ window.__ModuleLoader__.load({
|
|
|
3
3
|
factory(require) {
|
|
4
4
|
const React = require('react')
|
|
5
5
|
const h = React.createElement
|
|
6
|
-
const PANEL_ID = 'dsh-
|
|
6
|
+
const PANEL_ID = 'dsh-plugin-panel'
|
|
7
7
|
const TAB_KIND = 'plugin-canvas'
|
|
8
|
-
const NS = 'dsh-
|
|
9
|
-
const VERSION = 'v0.1.
|
|
8
|
+
const NS = 'dsh-plugin-panel'
|
|
9
|
+
const VERSION = 'v0.1.1'
|
|
10
10
|
const PREF_KEY = 'dsh.plugin-list.pref.v2'
|
|
11
11
|
|
|
12
12
|
const COPY = {
|
|
@@ -349,6 +349,14 @@ window.__ModuleLoader__.load({
|
|
|
349
349
|
throw new Error(result && result.error && result.error.message ? result.error.message : 'list failed')
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
+
const SELF_NAMES = new Set(['dsh-plugin-panel', 'dsh-plugins-ui', 'dsh-plugin-canvas'])
|
|
353
|
+
|
|
354
|
+
function isSelf(plugin) {
|
|
355
|
+
const entry = String((plugin && plugin.entryId) || '').replace(/^include:/, '')
|
|
356
|
+
const moduleName = String((plugin && plugin.moduleName) || '')
|
|
357
|
+
return SELF_NAMES.has(entry) || SELF_NAMES.has(moduleName) || SELF_NAMES.has(shortModule(moduleName))
|
|
358
|
+
}
|
|
359
|
+
|
|
352
360
|
function tabKindFor(plugin, entries, localeId) {
|
|
353
361
|
const names = new Set([
|
|
354
362
|
plugin.entryId,
|
|
@@ -380,7 +388,7 @@ window.__ModuleLoader__.load({
|
|
|
380
388
|
function placesFor(plugin, guide, seats, localeId) {
|
|
381
389
|
const names = namesOf(plugin)
|
|
382
390
|
const places = []
|
|
383
|
-
if (tabKindFor(plugin, guide, localeId)) places.push('right')
|
|
391
|
+
if (tabKindFor(plugin, guide, localeId) || isSelf(plugin)) places.push('right')
|
|
384
392
|
for (const seat of seats || []) {
|
|
385
393
|
const id = seat.id || seat.key
|
|
386
394
|
const owner = seat.registrant
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-panel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Plugin manager for the DeepSeek Harness right sidebar: list installed plugins, see where each one lives, pin favourites, and open a plugin folder in Finder.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|