dsh-quick-toc 0.9.0 → 0.9.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/CHANGELOG.en.md +10 -0
- package/CHANGELOG.md +10 -0
- package/lib/client.js +22 -24
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +3 -1
package/CHANGELOG.en.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to **dsh-quick-toc** are documented here. Chinese version: [CHANGELOG.md](CHANGELOG.md).
|
|
4
4
|
|
|
5
|
+
## [0.9.2] - 2026-10-04
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
- **The card showed the package name only**: the installed card's name line showed just the package name. It now reads "对话大纲(dsh-quick-toc)", or "Conversation Outline (dsh-quick-toc)" in an English interface.
|
|
9
|
+
|
|
10
|
+
## [0.9.1] - 2026-10-03
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **The settings entry sat in the Official group**: the Plugins page listed this plugin's settings entry among the official plugins. The complete settings now live on this plugin's own card in the Installed group, the official group no longer shows this plugin, and the card's title and description ship with the package.
|
|
14
|
+
|
|
5
15
|
## [0.9.0] - 2026-10-03
|
|
6
16
|
|
|
7
17
|
### Added
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
**dsh-quick-toc** 的重要变更都记录在这里。英文版见 [CHANGELOG.en.md](CHANGELOG.en.md)。
|
|
4
4
|
|
|
5
|
+
## [0.9.2] - 2026-10-04
|
|
6
|
+
|
|
7
|
+
### 变更
|
|
8
|
+
- **已安装卡片只显示包名**:插件卡片的名称此前只显示包名。现在显示为「对话大纲(dsh-quick-toc)」,界面为英文时显示「Conversation Outline (dsh-quick-toc)」。
|
|
9
|
+
|
|
10
|
+
## [0.9.1] - 2026-10-03
|
|
11
|
+
|
|
12
|
+
### 修复
|
|
13
|
+
- **设置条目列在官方分组下**:插件页把本插件的设置条目列进了「官方」分组。现在完整设置在「已安装」分组里本插件自己的卡片中,官方分组不再出现本插件,卡片的标题与简介也随包提供。
|
|
14
|
+
|
|
5
15
|
## [0.9.0] - 2026-10-03
|
|
6
16
|
|
|
7
17
|
### 新增
|
package/lib/client.js
CHANGED
|
@@ -1338,6 +1338,12 @@ window.__ModuleLoader__.load({
|
|
|
1338
1338
|
var SETTINGS_NAV_ITEM_VALUE = "plugins";
|
|
1339
1339
|
var SETTINGS_NAV_CURRENT_ATTR = "aria-current";
|
|
1340
1340
|
var SETTINGS_LAUNCHER_HASPOPUP = "dialog";
|
|
1341
|
+
// The plugin's own card, host-published: the Installed-group card of this
|
|
1342
|
+
// PACKAGE (measured on 0.2.0-rc.2) and, on hosts that still render one, the
|
|
1343
|
+
// older item seat. THIS plugin registers neither by hand — the package card
|
|
1344
|
+
// comes from its installation, and the item seat belongs to official plugins.
|
|
1345
|
+
var PLUGIN_PKG_ATTR = "data-plugin-package";
|
|
1346
|
+
var PLUGIN_PKG_VALUE = "dsh-quick-toc";
|
|
1341
1347
|
var PLUGIN_ITEM_ATTR = "data-plugin-item";
|
|
1342
1348
|
var PLUGIN_ITEM_VALUE = "quick-toc";
|
|
1343
1349
|
// Labels are compared for EQUALITY, never as substrings: a sidebar session
|
|
@@ -1473,20 +1479,22 @@ window.__ModuleLoader__.load({
|
|
|
1473
1479
|
}
|
|
1474
1480
|
return card;
|
|
1475
1481
|
}
|
|
1476
|
-
// THIS plugin's own
|
|
1477
|
-
//
|
|
1478
|
-
//
|
|
1479
|
-
//
|
|
1480
|
-
//
|
|
1481
|
-
//
|
|
1482
|
-
//
|
|
1483
|
-
//
|
|
1482
|
+
// THIS plugin's own card in the Plugins page, or null. Three shapes, in the
|
|
1483
|
+
// order they can be trusted: the Installed-group card of this PACKAGE (its
|
|
1484
|
+
// title button is the host's own open gesture), the older item seat for hosts
|
|
1485
|
+
// that still render one, and — for a host that publishes neither — a node that
|
|
1486
|
+
// is clickable itself and labelled exactly with one of this plugin's names.
|
|
1487
|
+
// Nothing else: a loose label match on a container, then a click on whatever
|
|
1488
|
+
// button sat inside it, is what used to send this button somewhere else
|
|
1489
|
+
// entirely.
|
|
1484
1490
|
function settingsPluginEntry(doc) {
|
|
1485
1491
|
if (doc === null || doc === undefined || typeof doc.querySelectorAll !== "function") return null;
|
|
1486
1492
|
var card = null;
|
|
1493
|
+
var i;
|
|
1487
1494
|
try {
|
|
1488
1495
|
if (typeof doc.querySelector === "function") {
|
|
1489
|
-
card = doc.querySelector("[" +
|
|
1496
|
+
card = doc.querySelector("[" + PLUGIN_PKG_ATTR + '="' + PLUGIN_PKG_VALUE + '"]')
|
|
1497
|
+
|| doc.querySelector("[" + PLUGIN_ITEM_ATTR + '="' + PLUGIN_ITEM_VALUE + '"]');
|
|
1490
1498
|
}
|
|
1491
1499
|
} catch (e) { card = null; }
|
|
1492
1500
|
if (card !== null && card !== undefined && !isForeignNode(card)) return pluginCardTarget(card);
|
|
@@ -8617,21 +8625,11 @@ window.__ModuleLoader__.load({
|
|
|
8617
8625
|
locale: "dsh-quick-toc"
|
|
8618
8626
|
}, TocSettingsCard);
|
|
8619
8627
|
});
|
|
8620
|
-
//
|
|
8621
|
-
//
|
|
8622
|
-
//
|
|
8623
|
-
//
|
|
8624
|
-
//
|
|
8625
|
-
// own pages (shell 10 / agent loop 20 / subagent 30 / web search 40).
|
|
8626
|
-
ctx.slots.inject("plugins.item", function () {
|
|
8627
|
-
return ctx.slots.register({
|
|
8628
|
-
name: "plugins.item",
|
|
8629
|
-
id: "quick-toc",
|
|
8630
|
-
order: 50,
|
|
8631
|
-
label: function () { return T("panel.title"); },
|
|
8632
|
-
locale: "dsh-quick-toc"
|
|
8633
|
-
}, TocCardPage);
|
|
8634
|
-
});
|
|
8628
|
+
// (the `plugins.item` seat is gone on purpose: that slot renders in the
|
|
8629
|
+
// Plugins page's OFFICIAL group, and this plugin is not an official one.
|
|
8630
|
+
// The complete card lives on the package's own page in the Installed group
|
|
8631
|
+
// instead — the `plugins.bundle.config` seat above, whose entry carries the
|
|
8632
|
+
// package's localized title/description from locale/*.json.)
|
|
8635
8633
|
ctx.slots.inject("settings.plugin.item", function () {
|
|
8636
8634
|
return ctx.slots.register({
|
|
8637
8635
|
name: "settings.plugin.item",
|
package/locale/en.json
ADDED
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-quick-toc",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Conversation TOC for DeepSeek Harness (DSH): a whole-session, turn-grouped Markdown outline with hover previews, heading-level preferences, a full-width curtain, jump-to-end buttons, title/prompts/full-text/cross-session search and a Chinese/English interface.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"files": [
|
|
8
8
|
"lib",
|
|
9
|
+
"locale",
|
|
9
10
|
"cordis.patch.yml",
|
|
10
11
|
"README.md",
|
|
11
12
|
"README.en.md",
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
"exports": {
|
|
23
24
|
".": "./lib/index.js",
|
|
24
25
|
"./client": "./lib/client.js",
|
|
26
|
+
"./locale/*": "./locale/*",
|
|
25
27
|
"./package.json": "./package.json"
|
|
26
28
|
},
|
|
27
29
|
"dsh": {
|