dsh-plugin-toolkit 0.8.3 → 0.8.4
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.md +9 -0
- package/README.md +29 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 0.8.4
|
|
2
|
+
|
|
3
|
+
- README: `## When the panel does not appear` — the five checks that explain a
|
|
4
|
+
successful install with nothing on screen (restart, root export, tarball,
|
|
5
|
+
patch row, a bundle that throws). Each one is a failure this tool has already
|
|
6
|
+
hit. A test keeps the section from losing a step.
|
|
7
|
+
- `doctor` table lists the new `root export` check; the verify example no longer
|
|
8
|
+
pins an old version in its own docs.
|
|
9
|
+
|
|
1
10
|
## 0.8.3
|
|
2
11
|
|
|
3
12
|
`verify` now imports the host half it just installed.
|
package/README.md
CHANGED
|
@@ -247,6 +247,7 @@ latest release.
|
|
|
247
247
|
| `patch file` | The path declared above must be a real file |
|
|
248
248
|
| `client entry` | If `dsh.client` is declared, the bundle has to be there |
|
|
249
249
|
| `files list` | Every path `package.json` points at (`exports`, patch, client) must be covered by `files` |
|
|
250
|
+
| `root export` | The loader imports the bare package name; if that module is the CLI (or exports no `apply`), the row mounts nothing while the install reports success |
|
|
250
251
|
|
|
251
252
|
Exit code is `0` when the plugin can be installed and `1` when it cannot, so it drops into CI unchanged.
|
|
252
253
|
|
|
@@ -255,7 +256,7 @@ Exit code is `0` when the plugin can be installed and `1` when it cannot, so it
|
|
|
255
256
|
`doctor` reads your working copy. Users install the tarball, and a `files` list can ship everything except the panel — `doctor` will not notice.
|
|
256
257
|
|
|
257
258
|
```sh
|
|
258
|
-
$ npx dsh-plugin-toolkit
|
|
259
|
+
$ npx dsh-plugin-toolkit verify .
|
|
259
260
|
ok packed 5 file(s), installed the tarball, mounted the panel
|
|
260
261
|
My panel This panel came from dsh-plugin init. Clicks: 0
|
|
261
262
|
```
|
|
@@ -263,11 +264,37 @@ ok packed 5 file(s), installed the tarball, mounted the panel
|
|
|
263
264
|
It packs, installs that tarball into a throwaway directory, then mounts the bundle **from the installed copy**. When the `files` list drops the panel:
|
|
264
265
|
|
|
265
266
|
```sh
|
|
266
|
-
$ npx dsh-plugin-toolkit
|
|
267
|
+
$ npx dsh-plugin-toolkit verify .
|
|
267
268
|
dsh-plugin verify: stopped at pack
|
|
268
269
|
✗ pack: the tarball does not contain client.js, so the installed plugin has no panel
|
|
269
270
|
```
|
|
270
271
|
|
|
272
|
+
## When the panel does not appear
|
|
273
|
+
|
|
274
|
+
The install reports success and nothing shows up. In this order:
|
|
275
|
+
|
|
276
|
+
1. **Did the host restart?** Client bundles are read at startup. `dsh plugin add`
|
|
277
|
+
writes the profile; the running window still has the old bundle.
|
|
278
|
+
2. **Is the root export the plugin?**
|
|
279
|
+
```sh
|
|
280
|
+
node -e "import('my-plugin').then((m) => console.log(typeof m.apply))"
|
|
281
|
+
```
|
|
282
|
+
`function` is what the loader needs. `undefined` means `exports["."]` points
|
|
283
|
+
at the CLI — `0.8.0` of this tool shipped exactly that.
|
|
284
|
+
3. **Does the tarball ship the panel?** `dsh-plugin verify .` installs what users
|
|
285
|
+
get and mounts it. `doctor` cannot see this.
|
|
286
|
+
4. **Is the patch row shaped right?** `cordis.patch.yml` needs one `- insert:`
|
|
287
|
+
entry with `id` and `name`:
|
|
288
|
+
```yaml
|
|
289
|
+
- insert:
|
|
290
|
+
- id: my-plugin
|
|
291
|
+
name: my-plugin
|
|
292
|
+
config: {}
|
|
293
|
+
```
|
|
294
|
+
5. **Did the client bundle throw?** The host logs the loader error with the
|
|
295
|
+
plugin id; a bundle that throws at factory time looks identical to one that
|
|
296
|
+
never loaded.
|
|
297
|
+
|
|
271
298
|
## What `release` does
|
|
272
299
|
|
|
273
300
|
`release` runs the sequence in the order that fails cheapest first:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-toolkit",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Preflight, release and test DeepSeek Harness plugins: checks what the host needs, waits for npm to actually serve the version, and keeps the market index honest.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|