dsh-plugin-marginalia 0.0.0-stage → 0.2.0
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/LICENSE +21 -0
- package/README.md +31 -2
- package/client.js +1571 -0
- package/cordis.patch.yml +4 -0
- package/icon.svg +6 -0
- package/index.js +270 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +51 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Marginalia Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Marginalia (`dsh-plugin-marginalia`)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**旁注问 · Marginalia** — A DeepSeek Harness (DSH) right-sidebar plugin for asking side-channel questions about your active conversation or sending prompts directly to the main chat.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Right-Sidebar Entry & Header Quick-Launch**: Adds a **Marginalia** entry to the right sidebar's Guide tab and a one-click icon button in the session header utilities bar (`conversation.session.header.utilities`).
|
|
8
|
+
- **Side-Ask Mode (旁注提问)**: Ask follow-up or clarifying questions using the active session's recent conversation context and model via a local Host SSE endpoint (`/api/marginalia/ask`), without interrupting or cluttering the main conversation thread.
|
|
9
|
+
- **Direct Main-Chat Mode (直发主对话)**: Switch to **To Main Chat** (or click **Send to main** on any message) to queue or steer a prompt directly into the main session.
|
|
10
|
+
- **Persistent Per-Session Thread**: Side-Ask history is saved per session in `localStorage`, with copy, clear, stop-streaming, and light/dark theme support using native `--dsw-alias-*` tokens.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
### From Local Directory (Development)
|
|
15
|
+
In DSH Web/Desktop: **Plugins** → **Add plugin** → select the `dsh-plugin-marginalia` directory.
|
|
16
|
+
|
|
17
|
+
### From npm / DSH Plugin Market
|
|
18
|
+
```bash
|
|
19
|
+
npm install dsh-plugin-marginalia
|
|
20
|
+
```
|
|
21
|
+
Or install via a DSH Plugin Market index that lists `dsh-plugin-marginalia`.
|
|
22
|
+
|
|
23
|
+
## Publishing to Marketplaces
|
|
24
|
+
|
|
25
|
+
1. **npm Registry**:
|
|
26
|
+
```bash
|
|
27
|
+
cd dsh-plugin-marginalia
|
|
28
|
+
npm publish --access public
|
|
29
|
+
```
|
|
30
|
+
2. **GitHub + DSH Plugin Market Index**:
|
|
31
|
+
- Push this directory to a public GitHub repository.
|
|
32
|
+
- Add the entry from `market-index.example.json` (with your repository URL, commit hash, and npm version) to any `dsh-plugin-market-index` v1 JSON feed.
|