dsh-modellix 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/CHANGELOG.md ADDED
@@ -0,0 +1,52 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format follows Keep a Changelog.
6
+
7
+ ## [Unreleased]
8
+
9
+ ### Added
10
+
11
+ - DeepSeek Harness Profile Bundle registration with Host and Web Client entry points.
12
+ - Write-only Modellix credential onboarding with Design, LLM, and Web switches enabled by default.
13
+ - Settings UI for credential status, replacement/removal, feature switches, and LLM catalog refresh.
14
+ - Schema-driven Design workspace with searchable/filterable image, video, and audio model discovery, prompt-first exact parameter editing, reviewed LLM-backed parameter proposals, one-shot generation, task polling, and unexpired result previews.
15
+ - Image enlargement, native audio/video playback, safe result downloads, and manual Design catalog refresh.
16
+ - Persistent Design task WAL containing replay identifiers, task state, and result metadata without API keys or prompts.
17
+ - Dynamic Modellix LLM catalog materialization into the Harness `llm-pi-ai` adapter with zero provider retries.
18
+ - Modellix search and fetch providers for the Harness native Web seam, with both native Tools enabled and Modellix selected for both capabilities.
19
+ - Chinese and English Client strings, responsive layouts, explicit dialog focus handling, keyboard behavior, and accessible async status feedback.
20
+ - An English-default `README.md`, a complete `README.zh-CN.md`, and equivalent English and Chinese user guides covering installation, onboarding, Settings, Design, LLM, Web, billing semantics, recovery, accessibility, troubleshooting, and uninstall.
21
+ - A shared nine-image documentation set specification with safe alt text and capture rules; the default screenshots use Chinese UI and one narrow-screen Design capture proves English localization.
22
+
23
+ ### Changed
24
+
25
+ - Credential recovery now coalesces concurrent 401 responses into one prompt, keeps 402, 429, offline, timeout, and 5xx states distinct, and creates a new prompt only after a later explicit capability request.
26
+ - Environment-provided `MODELLIX_API_KEY` remains read-only in the UI and reports the required external update and Harness restart path.
27
+ - Design Host diagnostics use stable presentation codes that the Client localizes instead of displaying fixed English notices.
28
+ - JSON syntax errors are distinguished from valid JSON that violates the current model Schema; image, video, and audio previews expose localized accessible names.
29
+ - Coarse-pointer controls, including inputs, selects, disclosure summaries, links, and actions, use 48px targets while desktop and narrow layouts retain the Harness token system.
30
+ - Published artifacts include the English and Chinese README files, both user guides, and their shared documentation assets.
31
+
32
+ ### Security
33
+
34
+ - Kept saved credentials inside the Harness Host Credential service and out of Client state, settings documents, task records, logs, and user-visible errors.
35
+ - Restricted authenticated requests to fixed Modellix HTTPS origins and required Design submissions to match the current model Schema's authoritative endpoint.
36
+ - Prevented automatic replay of billed Design submissions; uncertain outcomes remain explicit and require user action.
37
+ - Added bounded parsing and response limits for Modellix catalog, Schema, prediction, LLM, and Web contracts.
38
+ - Made saved Credentials write-only to the Client, cleared unsaved Key drafts on every exit path, and prohibited Secrets in documentation screenshots, request recordings, diagnostics, and packaged files.
39
+ - Added exact tarball allowlisting, bare and quoted Secret-assignment checks (including embedded Source Map source), strict decoded WebP size/dimension/metadata checks, and explicit exclusion of source, tests, coverage, Agent instructions, local configuration, logs, HAR, and development scripts.
40
+
41
+ ### Verification
42
+
43
+ - Added reproducible environment, type, lint, unit, global and critical-file coverage, Host/Client build, exact pack-content, isolated tarball fresh-install, mandatory Node 22 runtime smoke, and commit-bound release-evidence commands.
44
+ - Fresh-install verification builds and packs the final worktree, installs the tarball into a temporary project with the declared Harness peers, imports the Host entry, executes the browser Client factory with its injected public modules, resolves patch/package subpath exports, compiles consumer declarations, and removes the temporary project.
45
+ - Pack verification validates every public entry target, bilingual documentation, all nine fully decoded metadata-free WebP screenshots, embedded Source Map sources, and the absence of unexpected or sensitive development artifacts.
46
+ - Release verification requires exact Secret-free browser and real API/Agent checklists bound to the final clean Git commit and package version; it records authorization evidence without executing or retrying billed calls.
47
+
48
+ ### Known limitations
49
+
50
+ - Design parameter proposals use a fixed, schema-constrained Modellix planner rather than an open-ended Agent.
51
+ - Upstream generation cancellation is not exposed.
52
+ - Result metadata stores upstream URLs, not permanent local media copies.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,266 @@
1
+ [English](README.md) | [简体中文](README.zh-CN.md)
2
+
3
+ # dsh-modellix
4
+
5
+ A Modellix Profile Bundle for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness): one Modellix API Key provides schema-driven Design media generation, a live LLM model catalog, and native Web providers.
6
+
7
+ > Harness and this plugin currently use prerelease interfaces. Before upgrading Harness, check this package's peer dependencies and [CHANGELOG](CHANGELOG.md).
8
+
9
+ ![Chinese-language Modellix Design desktop layout with model, prompt, and parameters on the left and generation results on the right](docs/assets/design-desktop.webp)
10
+
11
+ ## Feature overview
12
+
13
+ | Feature | User experience | Actual behavior |
14
+ | --- | --- | --- |
15
+ | Design | Select a model, enter a prompt, and adjust parameters on the left; review tasks and results on the right | Reads the live image, video, and audio catalog and each model's public Schema; submits a billed generation only once |
16
+ | LLM | Quickly switch Modellix models in the Harness model selector | Merges the live catalog into the Harness `llm-pi-ai` Modellix provider |
17
+ | Web | Use the native Harness `web_search` and `web_fetch` tools | Registers Modellix Search/Fetch providers without creating duplicate custom tools |
18
+
19
+ The first-run dialog contains an API Key field and Design, LLM, and Web switches. All three switches are on by default and can later be disabled independently in Modellix settings.
20
+
21
+ ## Requirements
22
+
23
+ - DeepSeek Harness `0.1.1-rc.2`
24
+ - Published-package runtime: Node.js `^22.19.0 || >=24.0.0`
25
+ - Source development and release verification: Node.js `24.18.1` and pnpm `11.24.0` (see `.nvmrc` and `packageManager`)
26
+ - A valid [Modellix API Key](https://docs.modellix.ai/get-started)
27
+
28
+ `dsh-modellix` contains its own Harness integration. It neither installs nor invokes `modellix-cli` at runtime.
29
+
30
+ ## Installation
31
+
32
+ For a Windows-first walkthrough from this source checkout, see [Using dsh-modellix locally](docs/en-US/LOCAL_USAGE.md) or its [Chinese edition](docs/zh-CN/LOCAL_USAGE.md).
33
+
34
+ Install the published package into the target Web profile, inspect the merged configuration, then start or restart that profile:
35
+
36
+ ```sh
37
+ dsh plugin --profile web add dsh-modellix
38
+ dsh --profile web --dump-config
39
+ dsh --profile web
40
+ ```
41
+
42
+ `--dump-config` should show the `dsh-modellix` Bundle layer and a plugin row whose id is `modellix`. Replace `web` if you use a different profile.
43
+
44
+ You can also build a tarball from trusted source and install the artifact:
45
+
46
+ ```sh
47
+ pnpm install --frozen-lockfile
48
+ pnpm run verify:release:static
49
+ pnpm pack
50
+ dsh plugin --profile web add ./dsh-modellix-0.1.0.tgz
51
+ ```
52
+
53
+ Installing TypeScript source directly from Git requires the installation phase to produce `lib/`. Until the package provides a verified `prepare` flow, use the published package or a local tarball.
54
+
55
+ ## First-time setup
56
+
57
+ 1. Open the Harness Web UI and wait for the “Connect Modellix” dialog.
58
+ 2. Enter the API Key and confirm whether the three default-on Design, LLM, and Web switches match your needs.
59
+ 3. Select “Save and enable.” After a successful save, the browser never displays the Key again; it only shows Credential status and source.
60
+ 4. Select “Configure later” if you are not ready. This does not mark the plugin as usable; the next explicit use of an enabled Modellix capability that needs a Credential requests it again.
61
+
62
+ The API Key can come from either source:
63
+
64
+ - Enter it during first-time setup or in settings, where the Harness Credential service stores it.
65
+ - Supply `MODELLIX_API_KEY` in the Harness launch environment. An environment-sourced Key is read-only in the UI; restart Harness after updating it.
66
+
67
+ Never put a real Key in a repository, command argument, log, screenshot, HAR, recording, or test snapshot.
68
+
69
+ See the [user guide: first-time setup and Credentials](docs/en-US/USER_GUIDE.md#first-time-setup) for the complete flow.
70
+
71
+ ## Quick use
72
+
73
+ ### Design: generate images, video, or audio
74
+
75
+ 1. Open the **Design** view in Harness.
76
+ 2. Search, filter by output type, and select a model. The plugin first restores the most recently selected available model; otherwise it chooses a preferred available model from the current catalog.
77
+ 3. Enter the primary prompt. Many models need only a prompt; all other fields come from the model's current `api_schema`, including public defaults.
78
+ 4. For exact control, edit enum, switch, numeric, text, or JSON parameters directly. Values that violate the Schema prevent submission.
79
+ 5. To adjust parameters in natural language, describe the change under “Adjust parameters by chat.” This uses the same Key with the fixed `openai/gpt-5.6-luna` model and may incur LLM usage. It produces a reviewable diff and never starts media generation by itself.
80
+ 6. Review parameters and the billing notice, then select “Confirm and generate” once. The billed POST is never retried automatically; read-only task status checks use only bounded safe retries.
81
+ 7. The right results pane groups records as Running, Succeeded, or Diagnostics and supports enlarged images, video/audio playback, and safe downloads.
82
+
83
+ For example, select an available image model whose live Schema exposes `quality` and `size`, then enter this acceptance prompt:
84
+
85
+ > A premium editorial architectural photograph of a quiet cliffside library above a misty alpine lake at blue hour, carved pale stone arches, warm amber reading lamps, one thoughtful reader, subtle greenery, natural reflections, cinematic but realistic lighting, restrained navy and ivory palette, precise composition, no text, no logo.
86
+
87
+ This is the exact prompt used for the documented real-API image, not a placeholder. The screenshot below was captured after the task completed in the real Design results list.
88
+
89
+ Set `quality` to `high` and `size` to `1536x1024`, leaving other fields at the model's current defaults. You can edit those controls directly or ask the parameter assistant to propose the two changes, then review and apply the diff. The proposal may incur LLM usage but does not generate an image. Only the final “Confirm and generate” action starts the billed media request, and the plugin does not retry it automatically. If the selected model does not advertise either field, do not add it manually—choose values and fields from that model's live Schema.
90
+
91
+ Results remain accessible only while the upstream resource is valid. If the upstream response has no expiry, the plugin uses a seven-day local display limit. This does not extend the upstream URL or copy media into permanent local storage.
92
+
93
+ ### LLM: switch models quickly
94
+
95
+ 1. Keep LLM enabled and configure a valid Key.
96
+ 2. In Modellix settings, inspect catalog status, model count, and last refresh time; refresh manually when needed.
97
+ 3. Select a model under the Modellix provider in the Harness model selector. The choice applies to the next model call.
98
+
99
+ LLM uses the OpenAI Completions-compatible endpoint `https://llm.modellix.ai/v1`. The plugin sets provider retries to `0` to avoid repeating model calls at the plugin layer; it never fabricates a static model list when the catalog is unavailable.
100
+
101
+ ### Web: search and fetch
102
+
103
+ When Web is enabled and a Key is available, ask Harness to search the public Web and, when needed, fetch a selected result. The native `web_search` and `web_fetch` tools run through the Modellix provider; the plugin does not add a duplicate Tool UI. The provider is unavailable when Web is disabled or no valid Key exists. Web requests may incur Modellix usage and are not automatically retried by the provider. If a paid Fetch outcome is unknown, inspect the Harness transcript or Modellix-side record before repeating it manually.
104
+
105
+ ## Settings, states, and recovery
106
+
107
+ The Modellix settings page provides:
108
+
109
+ - Credential configuration, source, and verification status, plus replacement and removal for a local writable Credential;
110
+ - independent Design, LLM, and Web switches;
111
+ - LLM catalog health, model count, last refresh time, and manual refresh.
112
+
113
+ Only an explicit HTTP 401 marks the current Credential invalid and opens recovery. A 402, 429, network failure, or 5xx is not reported as an invalid Key. If an environment-sourced Key is invalid, update `MODELLIX_API_KEY` in the launch environment and restart Harness; the UI cannot override it.
114
+
115
+ Recovery is coordinated across plugin dialogs: concurrent 401 responses produce one Credential dialog. An already-open local Key editor upgrades in place; if an ordinary removal confirmation or image viewer is open, recovery waits until it closes instead of stacking another modal. Save a replacement Key and retry the intended capability. For an environment-sourced Key, update it outside the UI and restart Harness.
116
+
117
+ If a disconnected billed submission has an unknown outcome, Design shows “Submission outcome unknown.” Check Results or the Modellix-side record before any manual resubmission to avoid duplicate charges.
118
+
119
+ ## Accessibility and responsive behavior
120
+
121
+ - Dialogs explicitly manage initial focus, `Tab` / `Shift+Tab` wrapping, background inertness, and focus restoration after closing.
122
+ - A mandatory Credential gate cannot close implicitly through Escape or the backdrop, but always has a visible “Configure later” action. Ordinary confirmation dialogs support Escape.
123
+ - Fields have visible labels, linked errors, busy states, and live status announcements; state is not conveyed by color alone.
124
+ - Design uses a left-workspace/right-results layout when its container is wider than `992px`; narrower host slots stack into one column, with a viewport fallback at `768px`. The implementation targets `320px`, 200% text zoom, light/dark themes, forced colors, 48px coarse-pointer targets, and reduced motion.
125
+ - UI text follows the current Harness locale. `README.md` is the default English entry, with a complete Chinese edition alongside it.
126
+
127
+ ## Uninstallation
128
+
129
+ If the Key is stored in a local writable Credential, remove it from Modellix settings first. Revoke an environment-sourced Key in the external launch environment or secret manager. Then remove the plugin from the target profile and restart it:
130
+
131
+ ```sh
132
+ dsh plugin --profile web remove dsh-modellix
133
+ dsh --profile web --dump-config
134
+ dsh --profile web
135
+ ```
136
+
137
+ Uninstalling the plugin does not promise to remove external environment variables, upstream tasks, or every piece of persisted Harness data. Handle each system separately if your policy requires cleanup.
138
+
139
+ ## UI previews and safe screenshots
140
+
141
+ - [完整中文用户指南](docs/zh-CN/USER_GUIDE.md)
142
+ - [Complete English user guide](docs/en-US/USER_GUIDE.md)
143
+ - [Chinese README](README.zh-CN.md)
144
+
145
+ The repository includes nine safety-reviewed UI screenshots. None contains a real account, Key, Network request details, HAR, or Credential file. Both languages reuse the same images. Most plugin copy is Chinese; `design-mobile-en.webp` and `llm-model-selector.webp` use English Harness chrome, while `web-tools.webp` uses English Harness chrome around a Chinese public-documentation request and response:
146
+
147
+ | Suggested file | Alt text |
148
+ | --- | --- |
149
+ | `docs/assets/onboarding-defaults.webp` | Chinese-language Modellix first-time setup dialog with an empty API Key field and Design, LLM, and Web switches enabled |
150
+ | `docs/assets/settings-ready.webp` | Chinese-language Modellix settings showing a verified Credential, three feature switches, and LLM catalog status |
151
+ | `docs/assets/design-desktop.webp` | Chinese-language Modellix Design desktop layout with model, prompt, and parameters on the left and generation results on the right |
152
+ | `docs/assets/design-proposal.webp` | Chinese-language Design parameter proposal showing before-and-after changes with Apply and Reject actions |
153
+ | `docs/assets/design-results-media.webp` | Chinese-language Design results pane with the image created during real acceptance, its expiry, and download action |
154
+ | `docs/assets/design-mobile-en.webp` | English-language Modellix Design in a single-column layout at 320 pixels with the workspace above Results |
155
+ | `docs/assets/credential-recovery.webp` | Chinese-language Modellix recovery dialog after an invalid API Key with an empty field and Configure later action |
156
+ | `docs/assets/llm-model-selector.webp` | English-language Harness model selector expanded to the Modellix provider with models synchronized from the live catalog |
157
+ | `docs/assets/web-tools.webp` | English-language Harness conversation showing native web_search and web_fetch completed by the Modellix provider for a Chinese public-documentation request |
158
+
159
+ Use only an empty Key or an explicitly fake Key, a generic prompt, and results without personal information. Do not capture Network, HAR, Console, Credential files, or any real-Secret flow.
160
+
161
+ ## Current limitations
162
+
163
+ - The Design parameter assistant is constrained by the current Schema; it is not an open-ended agent.
164
+ - There is no upstream cancellation call, and the UI has no task cancellation button.
165
+ - The results pane persists task metadata and upstream resource URLs, not the API Key, prompt, or media copies.
166
+ - A complex Schema with a blocking unsupported constraint disables submission instead of guessing parameter meaning.
167
+ - LLM materializes only models advertised by the live catalog and does not provide fabricated fallback models.
168
+
169
+ ## Development and verification
170
+
171
+ ```sh
172
+ pnpm install --frozen-lockfile
173
+ pnpm run verify:env
174
+ pnpm run typecheck
175
+ pnpm run lint
176
+ pnpm run test
177
+ pnpm run build
178
+ pnpm run verify:pack
179
+ pnpm run verify:fresh-install
180
+ pnpm run verify:node22-install
181
+ pnpm run verify:release:static
182
+ ```
183
+
184
+ `pnpm run check` runs environment verification, type checking, lint, the complete unit/contract suite, global hard coverage thresholds, and file-specific regression floors for the Host runtime and Design parameter planner. `verify:pack` checks the exact artifact allowlist, bilingual documentation, nine metadata-free WebP screenshots by actually decoding them, entries, embedded Source Map source, and sensitive-file exclusions. `verify:fresh-install` installs the final tarball in a temporary project, loads Host, executes the Client factory, checks subpath exports, and compiles consumer type smokes. `verify:node22-install` repeats the tarball runtime smoke with an explicitly configured or NVM-discovered Node.js `^22.19.0` binary and fails instead of silently skipping when none exists. `pnpm run verify:release:static` chains these static gates with the production dependency audit.
185
+
186
+ ### Complete release evidence gate
187
+
188
+ Use `pnpm run verify:release` for an actual release. First commit the final code, documentation, and screenshots and keep the worktree clean. Create two Secret-free JSON files outside the repository. Each must be smaller than 32 KiB, target the current package version and lowercase 40-character HEAD, and use a canonical UTC ISO-8601 `completedAt` no more than 72 hours old. Browser evidence must contain every fixed check below:
189
+
190
+ ```json
191
+ {
192
+ "version": 1,
193
+ "kind": "browser",
194
+ "status": "passed",
195
+ "package": { "name": "dsh-modellix", "version": "0.1.0" },
196
+ "commit": "<current-40-character-lowercase-git-head>",
197
+ "completedAt": "<canonical-utc-iso-8601>",
198
+ "checks": {
199
+ "onboarding": "passed",
200
+ "settings": "passed",
201
+ "design": "passed",
202
+ "llm": "passed",
203
+ "web": "passed",
204
+ "401": "passed",
205
+ "a11y": "passed",
206
+ "theme": "passed",
207
+ "viewports": "passed"
208
+ }
209
+ }
210
+ ```
211
+
212
+ Real API/Agent evidence must cover catalogs, parameter planning, all three media types, the LLM Agent, and Web. `billedCallsExplicitlyAuthorized` attests only that the operator explicitly authorized this run's billed calls; never put a Key, request header, or any other Secret in evidence:
213
+
214
+ ```json
215
+ {
216
+ "version": 1,
217
+ "kind": "api-agent",
218
+ "status": "passed",
219
+ "package": { "name": "dsh-modellix", "version": "0.1.0" },
220
+ "commit": "<current-40-character-lowercase-git-head>",
221
+ "completedAt": "<canonical-utc-iso-8601>",
222
+ "checks": {
223
+ "catalogs": "passed",
224
+ "planner": "passed",
225
+ "image": "passed",
226
+ "video": "passed",
227
+ "audio": "passed",
228
+ "llm-agent": "passed",
229
+ "web": "passed"
230
+ },
231
+ "billedCallsExplicitlyAuthorized": true
232
+ }
233
+ ```
234
+
235
+ To produce this evidence from live services, first complete and verify one Modellix-backed DSH Agent turn in an isolated Web profile. Then let the acceptance process supply `MODELLIX_API_KEY` directly from a controlled environment, file, or Credential and run `pnpm run test:real:modellix` with these non-secret controls:
236
+
237
+ ```powershell
238
+ $env:MODELLIX_ALLOW_BILLED_E2E = '1'
239
+ $env:MODELLIX_REAL_AGENT_ATTESTED = '1'
240
+ $env:MODELLIX_REAL_E2E_OUTPUT_DIR = 'D:\outside-repo\modellix-real-results'
241
+ $env:MODELLIX_API_AGENT_E2E_EVIDENCE_FILE = 'D:\outside-repo\api-agent-evidence.json'
242
+ pnpm run test:real:modellix
243
+ ```
244
+
245
+ The runner performs live authenticated catalogs and Schema planning, submits exactly one billed image, video, and audio POST, polls those tasks with bounded reads, executes real Web Search/Fetch, saves all media outside the repository for independent decoding checks, and writes Secret-free evidence. It refuses to run without both explicit billing authorization and the prior Agent attestation. It never supplies or accepts a Key as a command argument.
246
+
247
+ Supply both absolute paths and run the gate. Paths may be environment variables; the API Key must not be:
248
+
249
+ ```sh
250
+ MODELLIX_BROWSER_EVIDENCE_FILE=/absolute/path/browser-evidence.json \
251
+ MODELLIX_API_AGENT_E2E_EVIDENCE_FILE=/absolute/path/api-agent-evidence.json \
252
+ pnpm run verify:release
253
+ ```
254
+
255
+ Evidence is a strictly shaped acceptance attestation; it does not execute or retry billed calls. The gate fails for a missing, failed, or unknown check, unknown field, in-repository or stale file, package/commit mismatch, or dirty worktree.
256
+
257
+ ## References
258
+
259
+ - [Modellix getting started](https://docs.modellix.ai/get-started)
260
+ - [Modellix LLM overview](https://docs.modellix.ai/llm/overview)
261
+ - [Modellix GPT Image 2 example](https://www.modellix.ai/zh_CN/models/openai/gpt-image-2)
262
+ - [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)
263
+
264
+ ## License
265
+
266
+ See [LICENSE](LICENSE).