dsh-plugin-shop 0.1.4 → 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/README.md +6 -6
- package/cordis.patch.yml +4 -4
- package/lib/client.js +237 -236
- package/lib/index.js +13 -13
- package/lib/typert.host.js +63 -63
- package/lib/typert.remote-client.d.ts +13 -13
- package/lib/typert.remote-client.js +41 -41
- package/lib/types/client/{StoreTab.d.ts → ShopTab.d.ts} +11 -11
- package/lib/types/client/index.d.ts +12 -12
- package/lib/types/client/locales.d.ts +3 -3
- package/lib/types/client/present.d.ts +12 -11
- package/lib/types/client/useInstall.d.ts +3 -3
- package/lib/types/host/executor.d.ts +1 -1
- package/lib/types/host/index.d.ts +22 -22
- package/lib/types/host/types.d.ts +1 -1
- package/lib/types/index.d.ts +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# dsh-plugin-shop
|
|
4
4
|
|
|
5
|
-
**The plugin
|
|
5
|
+
**The plugin shop for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)** — browse a catalog of
|
|
6
6
|
dsh plugins, install one with a single confirmation, and manage what you have, from a tab inside Settings.
|
|
7
7
|
|
|
8
8
|
[](https://www.npmjs.com/package/dsh-plugin-shop)
|
|
@@ -19,7 +19,7 @@ English | [中文](https://github.com/LivXue/dsh-plugin-shop/blob/main/packages/
|
|
|
19
19
|
## 🖼️ Screenshots
|
|
20
20
|
|
|
21
21
|
<div align="center">
|
|
22
|
-
<img src="https://raw.githubusercontent.com/LivXue/dsh-plugin-shop/main/docs/images/shelf-light.png" alt="The plugin
|
|
22
|
+
<img src="https://raw.githubusercontent.com/LivXue/dsh-plugin-shop/main/docs/images/shelf-light.png" alt="The plugin shop shelf inside dsh Settings" width="860">
|
|
23
23
|
</div>
|
|
24
24
|
|
|
25
25
|
<table>
|
|
@@ -46,7 +46,7 @@ dsh plugin --profile web add dsh-plugin-shop
|
|
|
46
46
|
Replace `web` with your profile if you use another one. Then restart `dsh` once — a
|
|
47
47
|
newly added bundle is not applied to a running process — and open
|
|
48
48
|
|
|
49
|
-
> **Settings → Plugins → Plugin
|
|
49
|
+
> **Settings → Plugins → Plugin shop**
|
|
50
50
|
|
|
51
51
|
You land on a shelf of plugin cards with a search box. The first load reads the catalog
|
|
52
52
|
over the network and can take a few seconds; a shimmering skeleton stands in until the
|
|
@@ -114,7 +114,7 @@ boundary:
|
|
|
114
114
|
| Half | Entry | Can reach | Cannot reach |
|
|
115
115
|
|---|---|---|---|
|
|
116
116
|
| **Host** | `dsh-plugin-shop` | The network (catalog fetch and sha256 verify), the filesystem (cache), `dsh plugin add` under a per-profile mutex | — |
|
|
117
|
-
| **Client** | `dsh-plugin-shop/client` | Exactly five `
|
|
117
|
+
| **Client** | `dsh-plugin-shop/client` | Exactly five `shop/*` Remote methods | The network, the filesystem |
|
|
118
118
|
|
|
119
119
|
Compromising the browser half buys an attacker those five calls and nothing more.
|
|
120
120
|
|
|
@@ -122,7 +122,7 @@ Compromising the browser half buys an attacker those five calls and nothing more
|
|
|
122
122
|
|
|
123
123
|
| Variable | Effect |
|
|
124
124
|
|---|---|
|
|
125
|
-
| `
|
|
125
|
+
| `DSH_SHOP_CATALOG_URL` | Point the shop at your own catalog mirror instead of the public one |
|
|
126
126
|
|
|
127
127
|
## 📚 The catalog
|
|
128
128
|
|
|
@@ -131,7 +131,7 @@ Built daily from the public npm registry and published as static JSON:
|
|
|
131
131
|
- [`/v1/index.json`](https://LivXue.github.io/dsh-plugin-shop/v1/index.json) — the pointer, carrying `schemaVersion`, `builtAt`, and the content hash
|
|
132
132
|
- `/v1/plugins.<sha256>.json` — the data, content-addressed and safe to cache indefinitely
|
|
133
133
|
|
|
134
|
-
The pointer is small enough to poll. The
|
|
134
|
+
The pointer is small enough to poll. The shop verifies the data file's sha256 against
|
|
135
135
|
the pointer before trusting a byte of it.
|
|
136
136
|
|
|
137
137
|
## ⚠️ What it does not claim
|
package/cordis.patch.yml
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# The dsh-plugin-shop bundle patch: one row, the
|
|
1
|
+
# The dsh-plugin-shop bundle patch: one row, the shop Remote gateway.
|
|
2
2
|
# `dshHomePath` and `process.env` are in scope for !!js scalars, exactly as
|
|
3
3
|
# the dsh-base bundle uses them.
|
|
4
4
|
- insert:
|
|
5
|
-
- id:
|
|
5
|
+
- id: shop
|
|
6
6
|
name: 'dsh-plugin-shop'
|
|
7
7
|
config:
|
|
8
|
-
catalogUrl: !!js process.env.
|
|
9
|
-
cacheDir: !!js dshHomePath('
|
|
8
|
+
catalogUrl: !!js process.env.DSH_SHOP_CATALOG_URL ?? 'https://LivXue.github.io/dsh-plugin-shop/v1/'
|
|
9
|
+
cacheDir: !!js dshHomePath('shop')
|