dsh-better-sidebar-left 0.3.0 → 0.3.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/package.json +1 -1
- package/src/client.js +32 -11
- package/src/components.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-better-sidebar-left",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Session management for DeepSeek Harness in one install: delete a session with a risk-checked confirmation, move one across workspaces (menu and drag), rename one by double-clicking its title, show per-workspace session counts, and declutter both the sidebar and the conversation's collapsed turns. Self-contained: the plugin list shows this one row, and the five components are vendored inside it - installing this plugin installs nothing else.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
package/src/client.js
CHANGED
|
@@ -10450,7 +10450,7 @@ window.__ModuleLoader__.load({
|
|
|
10450
10450
|
const NS = 'dsh-better-sidebar-left'
|
|
10451
10451
|
|
|
10452
10452
|
/** Keep in sync with package.json and src/components.js. */
|
|
10453
|
-
const PLUGIN_VERSION = '0.3.
|
|
10453
|
+
const PLUGIN_VERSION = '0.3.1'
|
|
10454
10454
|
|
|
10455
10455
|
/** Presence marker the live verifier reads. */
|
|
10456
10456
|
const DEBUG_KEY = '__DSH_BETTER_SIDEBAR_LEFT__'
|
|
@@ -10821,19 +10821,35 @@ window.__ModuleLoader__.load({
|
|
|
10821
10821
|
"settingsCards": [
|
|
10822
10822
|
{
|
|
10823
10823
|
"component": "dsh-declutter",
|
|
10824
|
-
"exportPath": "__settings.SettingsCard"
|
|
10824
|
+
"exportPath": "__settings.SettingsCard",
|
|
10825
|
+
"label": {
|
|
10826
|
+
"zh": "收纳与整理",
|
|
10827
|
+
"en": "Declutter"
|
|
10828
|
+
}
|
|
10825
10829
|
},
|
|
10826
10830
|
{
|
|
10827
10831
|
"component": "dsh-delete-session",
|
|
10828
|
-
"exportPath": "__settings.SettingsCard"
|
|
10832
|
+
"exportPath": "__settings.SettingsCard",
|
|
10833
|
+
"label": {
|
|
10834
|
+
"zh": "删除会话",
|
|
10835
|
+
"en": "Delete a session"
|
|
10836
|
+
}
|
|
10829
10837
|
},
|
|
10830
10838
|
{
|
|
10831
10839
|
"component": "dsh-session-relocate",
|
|
10832
|
-
"exportPath": "__settings.ChildrenSetting"
|
|
10840
|
+
"exportPath": "__settings.ChildrenSetting",
|
|
10841
|
+
"label": {
|
|
10842
|
+
"zh": "连同子对话",
|
|
10843
|
+
"en": "Include child conversations"
|
|
10844
|
+
}
|
|
10833
10845
|
},
|
|
10834
10846
|
{
|
|
10835
10847
|
"component": "dsh-settings-launcher",
|
|
10836
|
-
"exportPath": "__settings.SwitchCard"
|
|
10848
|
+
"exportPath": "__settings.SwitchCard",
|
|
10849
|
+
"label": {
|
|
10850
|
+
"zh": "账号入口",
|
|
10851
|
+
"en": "Account entry"
|
|
10852
|
+
}
|
|
10837
10853
|
}
|
|
10838
10854
|
]
|
|
10839
10855
|
}
|
|
@@ -11197,11 +11213,15 @@ window.__ModuleLoader__.load({
|
|
|
11197
11213
|
return railText('panelEntry')
|
|
11198
11214
|
}
|
|
11199
11215
|
|
|
11200
|
-
|
|
11201
|
-
|
|
11202
|
-
|
|
11203
|
-
|
|
11204
|
-
|
|
11216
|
+
// One tab per component that exports a card, in manifest order: a component
|
|
11217
|
+
// that starts exporting one gets a tab without a second place to edit.
|
|
11218
|
+
const RAIL_TABS = INTEROP.settingsCards.map((card) => ({ id: card.component, label: card.label }))
|
|
11219
|
+
|
|
11220
|
+
/** The tab's label in the reader's language, from the manifest. */
|
|
11221
|
+
function railTabLabel(tab) {
|
|
11222
|
+
const label = tab.label === undefined || tab.label === null ? null : tab.label[currentLocale()]
|
|
11223
|
+
return typeof label === 'string' && label !== '' ? label : tab.id
|
|
11224
|
+
}
|
|
11205
11225
|
|
|
11206
11226
|
function availableTabs() {
|
|
11207
11227
|
return RAIL_TABS.filter((tab) => vendoredConfigCard(tab.id) !== null)
|
|
@@ -11223,7 +11243,7 @@ window.__ModuleLoader__.load({
|
|
|
11223
11243
|
className: on ? 'dbsl-tab dbsl-tabOn' : 'dbsl-tab',
|
|
11224
11244
|
onClick: () => select(tab.id),
|
|
11225
11245
|
},
|
|
11226
|
-
|
|
11246
|
+
railTabLabel(tab),
|
|
11227
11247
|
),
|
|
11228
11248
|
)
|
|
11229
11249
|
}
|
|
@@ -11376,6 +11396,7 @@ window.__ModuleLoader__.load({
|
|
|
11376
11396
|
exports.applyVendored = applyVendored
|
|
11377
11397
|
exports.MANIFEST = MANIFEST
|
|
11378
11398
|
exports.INTEROP = INTEROP
|
|
11399
|
+
exports.RAIL_TABS = RAIL_TABS
|
|
11379
11400
|
exports.VENDORED = VENDORED
|
|
11380
11401
|
exports.SERVICES = SERVICES
|
|
11381
11402
|
exports.failures = failures
|
package/src/components.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
export const PLUGIN_ID = 'dsh-better-sidebar-left'
|
|
25
25
|
|
|
26
26
|
/** Keep in sync with package.json and src/sidebar.js. */
|
|
27
|
-
export const PLUGIN_VERSION = '0.3.
|
|
27
|
+
export const PLUGIN_VERSION = '0.3.1'
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* The five components, in the order the user meets them in the sidebar.
|