@stolyarovmn/dsh-ui-registry-aggregator 0.4.17-rc.3 → 0.5.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 CHANGED
@@ -1,227 +1,114 @@
1
- # Registry Aggregator for DeepSeek Harness
1
+ # Registry Aggregator for DeepSeek Harness 0.2.x
2
2
 
3
- Registry Aggregator is a federated plugin-discovery UI for DeepSeek Harness. It combines trusted plugin registries, GitHub repositories, and compatible JSON catalogs into one normalized index while leaving installation and plugin lifecycle management to the native DSH Plugin Manager.
3
+ This branch is the clean DSH `0.2.0` implementation line. It does **not** carry compatibility code or UI workarounds from DSH `0.1.x`.
4
4
 
5
- ## Screenshots
5
+ Current stable version: `0.5.0`
6
+ Current validation baseline: DSH `v0.2.0-rc.2`. Compatibility checks use the actual running DSH version from the active installation manifest rather than a hardcoded RC.
6
7
 
7
- ### Connected sources
8
+ ## Install from npm
8
9
 
9
- Built-in npm and GitHub sources are health-checked, counted, and managed from the **Sources** view.
10
+ ```powershell
11
+ $DSH_VERSION = "0.2.0-rc.2"
12
+ $PROFILE = "dsh-020-test"
13
+ $env:DSH_HOME = "$env:USERPROFILE\.dsh-020-test"
10
14
 
11
- ![Registry Aggregator — connected sources](docs/screenshots/registry-sources.webp)
12
-
13
- ### Browse and search
14
-
15
- Search across connected sources, filter results, inspect evidence, and install a verified DSH bundle without leaving DeepSeek Harness.
16
-
17
- ![Registry Aggregator — Browse search](docs/screenshots/registry-browse.webp)
18
-
19
- ## Highlights
20
-
21
- - **Federated Sources** — combine npm, GitHub, and compatible JSON catalogs.
22
- - **Browse** — search all enabled sources as one deduplicated index.
23
- - **Verified DSH bundles** — npm/GitHub candidates are checked for a root `dsh.bundle.patch` before they are exposed as installable results.
24
- - **Evidence** — display release channel, GitHub stars, npm 30-day downloads, freshness, source metadata, and declared DSH compatibility when available.
25
- - **Filters** — stable releases, age, category, and DSH metadata.
26
- - **Multi-sort** — compose Stars, Downloads, Freshness, and Name; each criterion can be ascending or descending.
27
- - **Pagination** — 20, 50, or 100 items per page with navigation above and below results.
28
- - **Native install** — one-click installation through the DSH Plugin Manager Host API.
29
- - **Fallback command** — installable results also expose their `dsh plugin add …` command.
30
- - **Responsive popularity metadata** — missing GitHub star counts are hydrated after Browse renders, so GitHub metadata cannot block the initial search result.
31
-
32
- ## What's new in 0.4.16
33
-
34
- 0.4.16 brings Registry Aggregator directly into the native DSH Plugins page and hardens Installed/Browse metadata behavior.
35
-
36
- - Registry UI self-embeds below native **Installed** on stock DSH; no manual DSH UI patch is required.
37
- - Native Installed cards gain expandable registry metadata and advisory update badges without replacing DSH controls.
38
- - Installed metadata uses exact npm package lookup with 30-day downloads, GitHub stars/freshness, bundle verification, and DSH compatibility.
39
- - Expanded Installed cards reuse the same visual card primitives as Browse while suppressing information already shown by the native card.
40
- - Missing GitHub stars are resolved before **Stars** sorting, so displayed values and server-side order stay consistent.
41
- - GitHub stars use the same warning/yellow treatment in Browse and Installed.
42
- - Browse preferences persist across openings, including query, filters, ordered sorts, and page size.
43
- - DSH compatibility is resolved from the active runtime and declared DSH peer ranges.
44
- - Source metadata/evidence caches are bounded and identical in-flight requests are coalesced.
15
+ pnpm dlx "@deepseek-ai/dsh@$DSH_VERSION" plugin --profile $PROFILE add "@stolyarovmn/dsh-ui-registry-aggregator@0.5.0"
16
+ pnpm dlx "@deepseek-ai/dsh@$DSH_VERSION" --profile $PROFILE
17
+ ```
45
18
 
46
- Tested with DSH `0.1.7-rc.2`.
19
+ The package declares DSH compatibility as `>=0.2.0-rc.2 <0.3.0`. Registry compatibility badges are evaluated against the DSH version that is actually running.
20
+
21
+ ## Current milestone
22
+
23
+ The native Plugin Manager remains responsible for package lifecycle. Registry Aggregator adds discovery capabilities around it.
24
+
25
+ Implemented in this milestone:
26
+
27
+ - native `plugins.bundle.config` integration;
28
+ - `Sources | Browse | Updates` navigation;
29
+ - live source configuration through `ctx.configForms.get('registry-aggregator')`; the bundle slot is presentation-only because DSH does not guarantee a single `form` for bundle-wide pages;
30
+ - built-in npm and GitHub sources;
31
+ - custom JSON and corporate catalog sources;
32
+ - Host-side health checks and discovered-item counts;
33
+ - per-source enable/disable, add, remove, refresh, copy-address, count, and error state;
34
+ - DSH 0.2-native switch geometry and icon-action sizing copied under the plugin namespace;
35
+ - authenticated Host RPC over the DSH Connection service;
36
+ - bounded responses, request timeouts, redirect validation, DNS pinning, and private-network blocking;
37
+ - no duplicate `Installed` view;
38
+ - live federated Browse search across enabled npm, GitHub, custom JSON, and corporate sources;
39
+ - compact single-row source/release/freshness/tag/compatibility/page-size filters on desktop, with responsive wrapping below 900px, multi-source metadata, and 20/50/100 pagination; compatibility uses the native DSH shield contour as its neutral filter icon;
40
+ - combinable multi-sort criteria for relevance, stars, downloads, freshness, and name with per-criterion direction; when several are active they contribute equally through percentile-normalized composite ranking, so every selected criterion can affect the order;
41
+ - npm 30-day download enrichment plus lazy paired `30d | total` stats for visible npm rows; lifetime totals are summed from the package creation date (or npm's 2015-01-10 data floor) in bounded windows, and the UI never presents a partial lifetime sum as a real total;
42
+ - package freshness distinguishes npm release time from GitHub repository push time, so GitHub metadata churn does not make every item look newly released;
43
+ - best-effort package artwork discovery from the DSH top-level manifest `icon` field, returned to the Client as bounded data URLs with the same SVG/PNG/JPEG/WebP and 256 KiB policy as native DSH metadata;
44
+ - popular/default Browse results when the query is empty;
45
+ - real npm/GitHub source marks and a package icon exposed through the DSH 0.2 manifest contract;
46
+ - horizontal layout containment for narrow Plugin Manager detail panes;
47
+ - one-click Browse installation through the native DSH `remote.pluginManager` service: `inspect` → `installBundle`, installed-state synchronization via `listBundles` / `plugin-manager/changed`, and inline failure reporting;
48
+ - icon-only Browse install states using the same local DSH-style glyph language as the rest of the page;
49
+ - explicit `v<version>` package versions plus lazy manifest evidence for GitHub/npm rows;
50
+ - compatibility evidence against the actual running DSH version, following DSH peer semantics for `@deepseek-ai/dsh` and `@deepseek-ai/dsh-*`; Browse shows `Compatible`, `Incompatible`, or neutral `Not verified` as plain colored text, and can filter by compatibility;
51
+ - live Updates discovery from native installed bundles plus latest npm manifests, with per-package update through `remote.pluginManager.installBundle`;
52
+ - no runtime import of Harness Client implementation packages;
53
+ - Harness-provided React and DSH theme tokens.
54
+
55
+ Known limitations in `0.5.0`:
56
+
57
+ - build-script approval UI remains in the native **Add plugin** dialog;
58
+ - bulk **Update all** / cancel orchestration is not part of the DSH 0.2 line yet;
59
+ - update discovery for GitHub-only installed dependencies without npm package identity is not implemented yet.
47
60
 
48
61
  ## Architecture
49
62
 
50
63
  ```text
51
- Plugins → Installed → @stolyarovmn/dsh-ui-registry-aggregator
52
- ├─ Sources / Browse UI
53
- ├─ ctx.configForms → source configuration
54
- ├─ authenticated Connection RPC (/api/plugin-sources/*)
55
- │ └─ Host adapters
56
- │ └─ normalize → deduplicate → verify → filter → sort → paginate
57
- └─ ctx.remote.pluginManager
64
+ DSH Plugins
65
+ └─ Installed
66
+ └─ Registry Aggregator
67
+ └─ plugins.bundle.config
68
+ ├─ Sources
69
+ ├─ Browse
70
+ └─ Updates
71
+
72
+ Sources UI
73
+ ├─ ctx.configForms.get('registry-aggregator')
74
+ │ ├─ snapshot subscription
75
+ │ └─ form.mutate(...) → Host Config.sources
76
+ └─ ctx.connection.rpc.call
77
+ └─ /api/plugin-sources/{health,counts,browse,icons,metadata,download-stats}
78
+ └─ Host source adapters
79
+ ├─ npm
80
+ ├─ GitHub
81
+ ├─ custom-json
82
+ └─ corporate
83
+
84
+ Browse Install / Updates
85
+ └─ native DSH remote.pluginManager
58
86
  ├─ inspect(spec)
59
- └─ installBundle(spec)
60
- ```
61
-
62
- The browser does not fetch arbitrary catalog URLs directly. External source access happens on the Host side through the authenticated DSH Connection RPC boundary.
63
-
64
- GitHub star enrichment is intentionally separate from the Browse critical path:
65
-
66
- ```text
67
- Browse request
68
- → discover / verify / filter / sort / paginate
69
- → render cards
70
- → request missing GitHub stars for visible repositories
71
- → update cards in place
72
- ```
73
-
74
- ## Install
75
-
76
- ### npm
87
+ ├─ installBundle(spec)
88
+ └─ listBundles() / plugin-manager/changed
77
89
 
78
- ```sh
79
- dsh plugin --profile web add @stolyarovmn/dsh-ui-registry-aggregator
90
+ Enable / disable / uninstall
91
+ └─ native DSH Plugin Manager
80
92
  ```
81
93
 
82
- If you run DSH through `pnpm dlx`:
94
+ ## Test from GitHub
83
95
 
84
- ```sh
85
- pnpm dlx @deepseek-ai/dsh@0.1.7-rc.2 plugin --profile web add @stolyarovmn/dsh-ui-registry-aggregator
86
- ```
96
+ Use a commit SHA from this branch rather than publishing a test package:
87
97
 
88
- ### GitHub
98
+ ```powershell
99
+ $DSH_VERSION = "0.2.0-rc.2"
100
+ $PROFILE = "dsh-020-test"
101
+ $COMMIT = "<commit-sha>"
102
+ $env:DSH_HOME = "$env:USERPROFILE\.dsh-020-test"
89
103
 
90
- ```sh
91
- pnpm dlx @deepseek-ai/dsh@0.1.7-rc.2 plugin --profile web add "git+https://github.com/Stolyarovmn/dsh-ui-registry-aggregator.git"
104
+ pnpm dlx "@deepseek-ai/dsh@$DSH_VERSION" plugin --profile $PROFILE add "github:Stolyarovmn/dsh-ui-registry-aggregator#$COMMIT"
105
+ pnpm dlx "@deepseek-ai/dsh@$DSH_VERSION" --profile $PROFILE
92
106
  ```
93
107
 
94
- Enable the installed bundle, then open:
95
-
96
- ```text
97
- Plugins → Installed → @stolyarovmn/dsh-ui-registry-aggregator
98
- ```
99
-
100
- npm and GitHub sources are added automatically on first use.
101
-
102
- ## Source types
103
-
104
- | Type | Behavior |
105
- | --- | --- |
106
- | `npm` | npm registry discovery using DSH-related package metadata and keywords. |
107
- | `github` | GitHub repository discovery using DeepSeek-Harness-specific topic intersections. |
108
- | `dsh-plugin-shop` | JSON catalog adapter for a compatible source endpoint. |
109
- | `dshplugin-app` | JSON catalog adapter for a dshplugin.app-compatible endpoint. |
110
- | `custom-json` | Public JSON catalog. |
111
- | `corporate` | JSON catalog with Host-controlled private-network and credential permissions. |
112
-
113
- A JSON source may return a bare array or an object containing `plugins`, `items`, or `results`.
114
-
115
- Example:
116
-
117
- ```json
118
- {
119
- "plugins": [
120
- {
121
- "id": "pdf-tools",
122
- "name": "PDF Tools",
123
- "description": "Extract and merge PDF documents.",
124
- "version": "1.2.0",
125
- "package": "@example/dsh-plugin-pdf",
126
- "repository": "https://github.com/example/dsh-plugin-pdf",
127
- "install": {
128
- "type": "npm",
129
- "spec": "@example/dsh-plugin-pdf@1.2.0"
130
- }
131
- }
132
- ]
133
- }
134
- ```
135
-
136
- Identity precedence is npm package, canonical repository URL, then source-specific id. Duplicate records preserve source attribution, versions, and normalized category tags.
137
-
138
- ## Discovery quality
139
-
140
- Registry Aggregator treats registry search hits as **candidates**, not automatically as installable DSH plugins.
141
-
142
- - npm candidates are verified against their published package metadata.
143
- - Exact npm package names can be resolved from the registry packument instead of relying only on the eventually-consistent search index.
144
- - Short and partial queries combine cached discovery with query-specific npm/GitHub discovery.
145
- - GitHub discovery uses DeepSeek-Harness-specific topic intersections instead of the broad `dsh-plugin` topic alone.
146
- - npm/GitHub candidates must declare a root `dsh.bundle.patch` before the UI exposes **Install** or the fallback command.
147
- - Candidates that are not valid DSH bundles are removed before totals, sorting, pagination, and rendering.
148
- - npm/GitHub source counters represent verified installable bundle candidates rather than raw keyword/topic cardinality.
149
-
150
- ## Popularity evidence
151
-
152
- - npm download counts come from npm package/download metadata.
153
- - GitHub stars are taken from GitHub discovery when the result already contains them.
154
- - If a visible npm-discovered plugin has a GitHub repository but no star count, the client requests the missing repository statistics **after the Browse result is rendered**.
155
- - Async star lookup is cached and limited to visible results; failures are ignored rather than failing Browse.
156
-
157
- ## Sorting
158
-
159
- Sorting criteria are independent and composable:
160
-
161
- - **Stars**
162
- - **Downloads**
163
- - **Freshness**
164
- - **Name**
165
-
166
- Clicking a criterion cycles:
167
-
168
- ```text
169
- off → descending → ascending → off
170
- ```
171
-
172
- The order in which criteria are enabled defines priority.
173
-
174
- ## Compatibility
175
-
176
- - DSH: `>=0.1.7-rc.2 <0.2.0`
177
- - Tested with DSH `0.1.7-rc.2`
178
-
179
- Exact package compatibility is read from package metadata when a publisher declares it. Installation is validated again by the native DSH Plugin Manager.
180
-
181
- ## Security
182
-
183
- Browser-editable source settings never contain credentials.
184
-
185
- Host protections include:
186
-
187
- - HTTP(S)-only source URLs;
188
- - rejection of URL-embedded credentials;
189
- - blocking of loopback, link-local, private, multicast, reserved, and other non-global-unicast destinations by default;
190
- - DNS pinning and redirect destination revalidation;
191
- - source, response-size, result-count, concurrency, and RPC-size limits;
192
- - Host-controlled allowlists for private sources and environment-based bearer tokens;
193
- - install-spec validation before a command is exposed or sent to the Plugin Manager.
194
-
195
- The Install action executes third-party code through the native DSH Plugin Manager. Review the source and package before installation.
196
-
197
- ## Host configuration
198
-
199
- ```yaml
200
- - id: registry-aggregator
201
- name: '@stolyarovmn/dsh-ui-registry-aggregator'
202
- config:
203
- timeoutMs: 10000
204
- maxResponseBytes: 2097152
205
- maxPlugins: 2000
206
- maxSources: 20
207
- maxTotalPlugins: 5000
208
- maxRpcBytes: 4194304
209
- concurrency: 4
210
- privateSourceIds:
211
- - corporate
212
- auth:
213
- - sourceId: corporate
214
- tokenEnv: DSH_CORPORATE_REGISTRY_TOKEN
215
- ```
216
-
217
- ## Development
218
-
219
- ```sh
220
- npm install
221
- npm test
222
- npm run test:pack
223
- ```
108
+ Then open **Plugins → Installed → Registry Aggregator** and verify **Sources**, **Browse**, installation, compatibility filtering, download statistics, and **Updates** in the real Harness UI.
224
109
 
225
- ## License
110
+ ## Historical lines
226
111
 
227
- MIT
112
+ - `dsh-0.1.7` — stable `v0.4.17` line for DSH `0.1.7-rc.2`.
113
+ - `dsh-0.1.5` — historical DSH `0.1.5-rc.3` compatibility line.
114
+ - `main` — neutral project landing branch.