dsh-gpt-image-playground 0.2.2 → 0.2.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/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  把 [CookSleep/gpt_image_playground](https://github.com/CookSleep/gpt_image_playground) 的**原版工作台**装进 [DeepSeek Harness](https://github.com/deepseek-ai)(DSH):左栏多一个「生图工作台」,点开就是完整的画廊 / Agent 双模式、参考图与遮罩编辑、多供应商、收藏夹、历史管理。
8
8
 
9
- 界面与功能来自上游官方构建(v0.8.3,原样 vendor),插件自己只负责**同源托管**和**可选的 API 代理**。
9
+ 界面与功能来自上游官方构建(v0.8.4,原样 vendor),插件自己只负责**同源托管**和**可选的 API 代理**。
10
10
 
11
11
  ![工作台](docs/screenshot-gallery.png)
12
12
 
@@ -10,16 +10,23 @@ publishing or shipping it.
10
10
  - Source: https://github.com/CookSleep/gpt_image_playground
11
11
  - Build redistributed: `vendor-app/` — the official production build published
12
12
  at https://cooksleep.github.io/gpt_image_playground/ (application version
13
- **v0.8.3**, as shown in its own about panel)
13
+ **v0.8.4**, per the build's own service-worker cache tag)
14
14
  - License: MIT
15
15
 
16
16
  Changes made to the redistributed build:
17
17
 
18
18
  1. `vendor-app/announcements.json` is replaced with `[]`, which turns off the
19
19
  upstream announcement cards. No code was modified for this.
20
- 2. Three header controls ("安装为应用", "下载客户端", "操作指南") are hidden at
20
+ 2. Two oversized UI fonts (`HarmonyOS_Sans_SC_Regular`, `HarmonyOS_Sans_SC_Medium`,
21
+ ~15.7 MB total) are removed to keep the package small. The app makes no font
22
+ requests in its default configuration and falls back to the system font.
23
+ 3. Interface elements that only apply to the standalone site are hidden at
21
24
  runtime by CSS injected into the frame by `lib/client.js`. The shipped
22
- JavaScript is untouched.
25
+ JavaScript is untouched:
26
+ - header controls "安装为应用", "下载客户端", "操作指南"
27
+ - the red "NEW" update badge next to the title (and the update dialog it opens)
28
+ - the settings "关于" tab
29
+ - the settings header's upstream version, replaced with this plugin's version
23
30
 
24
31
  No other files of the build were edited.
25
32
 
package/lib/client.js CHANGED
@@ -34,6 +34,11 @@ window.__ModuleLoader__.load({
34
34
  * download) and "操作指南" (upstream guide). Hidden inside the frame by
35
35
  * `aria-label`, so upstream markup changes cannot break the rest of the UI.
36
36
  *
37
+ * The red "NEW" badge next to the title announces an upstream release and
38
+ * opens an "update available" dialog — pointless here, since updating means
39
+ * replacing the vendored build. It has no aria-label, so it is matched by
40
+ * its title prefix and, as a fallback, by the badge's red background.
41
+ *
37
42
  * The settings "关于" tab is marked by `decorateFrame` (its label is text,
38
43
  * which CSS cannot match) and hidden through the `data-dsh-gipg-about` rule.
39
44
  */
@@ -42,14 +47,13 @@ window.__ModuleLoader__.load({
42
47
  'a[aria-label="下载客户端"]',
43
48
  'button[aria-label="操作指南"]',
44
49
  'button[data-dsh-gipg-about="1"]',
50
+ 'header button[title^="新版本"]',
51
+ 'header h1 > button[class*="bg-red-500"]',
45
52
  ]
46
53
  const TRIM_STYLE_ID = 'dsh-gipg-trim'
47
54
  const ABOUT_LABEL = '关于'
48
55
 
49
- /**
50
- * What the settings header shows. The badge carries the plugin's own
51
- * version; the vendored upstream build stays available in the tooltip.
52
- */
56
+ /** What the settings header shows: the plugin's own version, nothing else. */
53
57
  function versionLabel(pluginVersion) {
54
58
  return pluginVersion ? `v${pluginVersion}` : undefined
55
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-gpt-image-playground",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "GPT Image Playground as a DeepSeek Harness plugin: the upstream image generation and editing workbench, vendored, served same-origin, with an optional API proxy.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "upstream": {
33
33
  "name": "gpt-image-playground",
34
- "version": "0.8.3",
34
+ "version": "0.8.4",
35
35
  "repository": "https://github.com/CookSleep/gpt_image_playground",
36
36
  "build": "vendor-app"
37
37
  }
@@ -1 +1 @@
1
- []
1
+ []