dsh-plugin-shop 0.1.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 +64 -0
- package/README.zh.md +57 -0
- package/cordis.patch.yml +9 -0
- package/lib/client.js +5246 -0
- package/lib/index.js +725 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +312 -0
- package/lib/typert.remote-client.d.ts +30 -0
- package/lib/typert.remote-client.js +200 -0
- package/lib/types/client/StoreTab.d.ts +30 -0
- package/lib/types/client/index.d.ts +30 -0
- package/lib/types/client/locales.d.ts +103 -0
- package/lib/types/client/present.d.ts +78 -0
- package/lib/types/client/useInstall.d.ts +14 -0
- package/lib/types/host/catalog.d.ts +37 -0
- package/lib/types/host/executor.d.ts +32 -0
- package/lib/types/host/index.d.ts +130 -0
- package/lib/types/host/install.d.ts +21 -0
- package/lib/types/host/profile.d.ts +30 -0
- package/lib/types/host/types.d.ts +31 -0
- package/lib/types/index.d.ts +3 -0
- package/package.json +120 -0
package/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# dsh-plugin-shop
|
|
2
|
+
|
|
3
|
+
English | [中文](README.zh.md)
|
|
4
|
+
|
|
5
|
+
The plugin store for [DeepSeek Harness](https://github.com/deepseek-harness), as a
|
|
6
|
+
tab inside the Harness settings surface: browse a catalog of dsh plugins, install
|
|
7
|
+
one with a single confirmation, enable or disable what is installed, and see what
|
|
8
|
+
has a newer version.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
dsh plugin --profile <your-profile> add dsh-plugin-shop
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Restart `dsh` once. The tab appears under **Settings → Plugins → Plugin store**.
|
|
17
|
+
|
|
18
|
+
## What it does
|
|
19
|
+
|
|
20
|
+
- **Browse and search** the catalog — 1800+ packages harvested from npm by the
|
|
21
|
+
`dsh-plugin` keyword, with the author's own summary when they declared one.
|
|
22
|
+
- **Install** with one confirmation. An unreviewed plugin requires an explicit
|
|
23
|
+
acknowledgement first, because an installed plugin holds the same privileges as
|
|
24
|
+
a built-in one: your files, your shell, and the requests sent to the model.
|
|
25
|
+
- **Enable / disable** an installed plugin without a restart.
|
|
26
|
+
- **Spot outdated installs** against the catalog's current version.
|
|
27
|
+
|
|
28
|
+
## How it is put together
|
|
29
|
+
|
|
30
|
+
Two halves, one package:
|
|
31
|
+
|
|
32
|
+
- **Host** (`dsh-plugin-shop`) — fetches the catalog over the network, verifies its
|
|
33
|
+
sha256 against the pointer, caches it, and runs `dsh plugin add` under a
|
|
34
|
+
per-profile mutex. It exposes exactly five `store/*` Remote methods and nothing
|
|
35
|
+
else.
|
|
36
|
+
- **Client** (`dsh-plugin-shop/client`) — the settings tab. It touches neither the
|
|
37
|
+
network nor the filesystem; every effect goes through those five methods.
|
|
38
|
+
|
|
39
|
+
## The catalog
|
|
40
|
+
|
|
41
|
+
Built daily from the public npm registry and published as static JSON:
|
|
42
|
+
|
|
43
|
+
- `https://LivXue.github.io/dsh-plugin-shop/v1/index.json` — the pointer, carrying
|
|
44
|
+
`schemaVersion`, `builtAt`, and the content hash
|
|
45
|
+
- `https://LivXue.github.io/dsh-plugin-shop/v1/plugins.<sha256>.json` — the data
|
|
46
|
+
|
|
47
|
+
Point the store at your own mirror with `DSH_STORE_CATALOG_URL`.
|
|
48
|
+
|
|
49
|
+
## What it does not claim
|
|
50
|
+
|
|
51
|
+
A listing is not an endorsement. `capabilities` is whatever the author wrote about
|
|
52
|
+
their own package — there is no sandbox in v0, and the UI never renders it as an
|
|
53
|
+
enforced permission list. The `verified` tier means a human read that exact
|
|
54
|
+
version; a newer publish downgrades to `verified-stale` and keeps the review
|
|
55
|
+
pinned to the version it was given.
|
|
56
|
+
|
|
57
|
+
## Author-facing docs
|
|
58
|
+
|
|
59
|
+
Declaring a `dsh.catalog` section so your plugin lists with your own words:
|
|
60
|
+
[docs/schema.md](https://github.com/LivXue/dsh-plugin-shop/blob/main/docs/schema.md).
|
|
61
|
+
|
|
62
|
+
## License
|
|
63
|
+
|
|
64
|
+
MIT
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# dsh-plugin-shop
|
|
2
|
+
|
|
3
|
+
[English](README.md) | 中文
|
|
4
|
+
|
|
5
|
+
[DeepSeek Harness](https://github.com/deepseek-harness) 的插件市场,以设置页里的一个
|
|
6
|
+
标签呈现:浏览 dsh 插件目录、一次确认完成安装、启停已安装的插件、看到哪些有了新版本。
|
|
7
|
+
|
|
8
|
+
## 安装
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
dsh plugin --profile <你的 profile> add dsh-plugin-shop
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
重启一次 `dsh`,标签出现在 **设置 → 插件 → 插件市场**。
|
|
15
|
+
|
|
16
|
+
## 能做什么
|
|
17
|
+
|
|
18
|
+
- **浏览与搜索**目录——按 `dsh-plugin` 关键字从 npm 采集的 1800+ 个包;作者若自己声明了
|
|
19
|
+
简介,就用作者的原话。
|
|
20
|
+
- **一次确认完成安装**。未经评审的插件需要先显式确认,因为装上之后它与内置插件权限等同:
|
|
21
|
+
你的文件、你的 shell、以及发往模型的请求。
|
|
22
|
+
- **启停**已安装的插件,无需重启。
|
|
23
|
+
- **发现过期安装**,与目录中的当前版本比对。
|
|
24
|
+
|
|
25
|
+
## 结构
|
|
26
|
+
|
|
27
|
+
一个包,两半:
|
|
28
|
+
|
|
29
|
+
- **Host**(`dsh-plugin-shop`)——通过网络取目录,用指针里的 sha256 校验,缓存,并在
|
|
30
|
+
per-profile 互斥锁下执行 `dsh plugin add`。它只暴露五个 `store/*` Remote 方法,别无其他。
|
|
31
|
+
- **Client**(`dsh-plugin-shop/client`)——设置页标签。它既不碰网络也不碰文件系统,一切副作用
|
|
32
|
+
都经由那五个方法。
|
|
33
|
+
|
|
34
|
+
## 目录
|
|
35
|
+
|
|
36
|
+
每日从公共 npm registry 构建,以静态 JSON 发布:
|
|
37
|
+
|
|
38
|
+
- `https://LivXue.github.io/dsh-plugin-shop/v1/index.json` —— 指针,携带
|
|
39
|
+
`schemaVersion`、`builtAt` 和内容哈希
|
|
40
|
+
- `https://LivXue.github.io/dsh-plugin-shop/v1/plugins.<sha256>.json` —— 数据
|
|
41
|
+
|
|
42
|
+
用 `DSH_STORE_CATALOG_URL` 可以指向你自己的镜像。
|
|
43
|
+
|
|
44
|
+
## 不作何承诺
|
|
45
|
+
|
|
46
|
+
出现在货架上不等于背书。`capabilities` 只是作者对自己包的自述——v0 没有沙箱,界面也从不把它
|
|
47
|
+
渲染成一份被强制执行的权限清单。`verified` 层的含义是有人读过**那个确切版本**;一旦发布更新
|
|
48
|
+
版本就降级为 `verified-stale`,评审记录仍钉在它当初对应的版本上。
|
|
49
|
+
|
|
50
|
+
## 面向插件作者
|
|
51
|
+
|
|
52
|
+
想用自己的文案上架,声明 `dsh.catalog` 段:
|
|
53
|
+
[docs/schema.zh.md](https://github.com/LivXue/dsh-plugin-shop/blob/main/docs/schema.zh.md)。
|
|
54
|
+
|
|
55
|
+
## 许可
|
|
56
|
+
|
|
57
|
+
MIT
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# The dsh-plugin-shop bundle patch: one row, the store Remote gateway.
|
|
2
|
+
# `dshHomePath` and `process.env` are in scope for !!js scalars, exactly as
|
|
3
|
+
# the dsh-base bundle uses them.
|
|
4
|
+
- insert:
|
|
5
|
+
- id: store
|
|
6
|
+
name: 'dsh-plugin-shop'
|
|
7
|
+
config:
|
|
8
|
+
catalogUrl: !!js process.env.DSH_STORE_CATALOG_URL ?? 'https://LivXue.github.io/dsh-plugin-shop/v1/'
|
|
9
|
+
cacheDir: !!js dshHomePath('store')
|