@kesike/dsh-exit 0.1.2 → 0.1.3

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
@@ -7,7 +7,7 @@
7
7
  [![dsh web plugin](https://img.shields.io/badge/dsh-web%20plugin-4f46e5?style=for-the-badge)](https://npmjs.com/package/@deepseek-ai/dsh)
8
8
  [![npm](https://img.shields.io/npm/v/%40kesike%2Fdsh-exit?style=for-the-badge&label=npm)](https://www.npmjs.com/package/@kesike/dsh-exit)
9
9
  [![Platform](https://img.shields.io/badge/platform-web-0ea5e9?style=for-the-badge)](https://github.com/KeS1Ke/dsh-exit)
10
- [![Version](https://img.shields.io/badge/version-0.1.2-64748b?style=for-the-badge)](package.json)
10
+ [![Version](https://img.shields.io/badge/version-0.1.3-64748b?style=for-the-badge)](package.json)
11
11
  [![Dependencies](https://img.shields.io/badge/runtime%20dependencies-none-16a34a?style=for-the-badge)](package.json)
12
12
 
13
13
  [简体中文](https://github.com/KeS1Ke/dsh-exit/blob/main/README.zh-CN.md)
@@ -28,10 +28,20 @@
28
28
  - Keeps the terminal window and browser tab available for the next action.
29
29
  - Uses the existing dsh design tokens and the Lucide `power` icon.
30
30
 
31
- ## 🎬 Animated exit flow
31
+ ## 🎬 GitHub showcase
32
+
33
+ The animation, video, and screenshot below are repository showcase assets. They stay in GitHub for documentation and are intentionally excluded from the npm package.
34
+
35
+ <p align="center">
36
+ <img src="docs/dsh-exit-landscape.webp" alt="Landscape animated dsh-exit flow generated by Archify" width="720">
37
+ </p>
32
38
 
33
39
  <p align="center">
34
- <img src="https://raw.githubusercontent.com/KeS1Ke/dsh-exit/main/docs/dsh-exit-landscape.webp" alt="Landscape animated dsh-exit flow generated by Archify" width="720">
40
+ <video controls muted loop playsinline width="720" poster="docs/dsh-exit-landscape.webp">
41
+ <source src="docs/dsh-exit-landscape.mp4" type="video/mp4">
42
+ <source src="docs/dsh-exit-landscape.webm" type="video/webm">
43
+ <a href="https://github.com/KeS1Ke/dsh-exit/blob/main/docs/dsh-exit-landscape.mp4">Download the exit-flow video</a>
44
+ </video>
35
45
  </p>
36
46
 
37
47
  ## 📸 Real dsh UI
@@ -39,10 +49,10 @@
39
49
  The capture below comes from a running dsh Web profile with `dsh-exit` installed. The red power button is the actual plugin control rendered at the lower-right corner.
40
50
 
41
51
  <p align="center">
42
- <img src="https://raw.githubusercontent.com/KeS1Ke/dsh-exit/main/docs/dsh-exit-real.png" alt="Running dsh Web UI with the dsh-exit power button in the lower-right corner" width="720">
52
+ <img src="docs/dsh-exit-real.png" alt="Running dsh Web UI with the dsh-exit power button in the lower-right corner" width="720">
43
53
  </p>
44
54
 
45
- ## 🧱 What ships
55
+ ## 🧱 npm package contents
46
56
 
47
57
  | Layer | File | Responsibility |
48
58
  | --- | --- | --- |
@@ -50,8 +60,14 @@ The capture below comes from a running dsh Web profile with `dsh-exit` installed
50
60
  | Client | [`lib/client.js`](lib/client.js) | Self-contained browser bundle: button, CSS, modal, keyboard handling, and Remote mounting. |
51
61
  | Bundle patch | [`cordis.patch.yml`](cordis.patch.yml) | Inserts the plugin row into the dsh profile. |
52
62
  | Package metadata | [`package.json`](package.json) | Declares the host entry, web client, and bundle patch. |
53
- | Animated flow | [`docs/dsh-exit-landscape.webp`](https://github.com/KeS1Ke/dsh-exit/blob/main/docs/dsh-exit-landscape.webp) | Landscape Archify trace animation rendered inline as animated WebP. |
54
- | Real UI capture | [`docs/dsh-exit-real.png`](https://github.com/KeS1Ke/dsh-exit/blob/main/docs/dsh-exit-real.png) | Running dsh Web profile with the actual button visible. |
63
+
64
+ The npm package contains only the four core runtime files above plus package metadata and README files. GitHub-only media is kept separately:
65
+
66
+ | Showcase asset | Location |
67
+ | --- | --- |
68
+ | Animated WebP | [`docs/dsh-exit-landscape.webp`](https://github.com/KeS1Ke/dsh-exit/blob/main/docs/dsh-exit-landscape.webp) |
69
+ | MP4 / WebM video | [`docs/dsh-exit-landscape.mp4`](https://github.com/KeS1Ke/dsh-exit/blob/main/docs/dsh-exit-landscape.mp4) · [`docs/dsh-exit-landscape.webm`](https://github.com/KeS1Ke/dsh-exit/blob/main/docs/dsh-exit-landscape.webm) |
70
+ | Real UI capture | [`docs/dsh-exit-real.png`](https://github.com/KeS1Ke/dsh-exit/blob/main/docs/dsh-exit-real.png) |
55
71
 
56
72
 
57
73
  ## 🚀 Install from npm
package/README.zh-CN.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![dsh Web 插件](https://img.shields.io/badge/dsh-Web%20%E6%8F%92%E4%BB%B6-4f46e5?style=for-the-badge)](https://npmjs.com/package/@deepseek-ai/dsh)
8
8
  [![npm](https://img.shields.io/npm/v/%40kesike%2Fdsh-exit?style=for-the-badge&label=npm)](https://www.npmjs.com/package/@kesike/dsh-exit)
9
9
  [![平台](https://img.shields.io/badge/%E5%B9%B3%E5%8F%B0-Web-0ea5e9?style=for-the-badge)](https://github.com/KeS1Ke/dsh-exit)
10
- [![版本](https://img.shields.io/badge/%E7%89%88%E6%9C%AC-0.1.2-64748b?style=for-the-badge)](package.json)
10
+ [![版本](https://img.shields.io/badge/%E7%89%88%E6%9C%AC-0.1.3-64748b?style=for-the-badge)](package.json)
11
11
  [![依赖](https://img.shields.io/badge/%E8%BF%90%E8%A1%8C%E6%97%B6%E4%BE%9D%E8%B5%96-%E6%97%A0-16a34a?style=for-the-badge)](package.json)
12
12
 
13
13
  **简体中文** | [English](https://github.com/KeS1Ke/dsh-exit/blob/main/README.md)
@@ -28,10 +28,20 @@
28
28
  - 保留宿主终端窗口和浏览器标签页,方便后续操作。
29
29
  - 使用 dsh 现有设计令牌与 Lucide `power` 电源图标。
30
30
 
31
- ## 🎬 动态退出流程
31
+ ## 🎬 GitHub 展示区
32
+
33
+ 下面的动画、视频和截图是仓库专用展示素材,保留在 GitHub 用于文档展示,并明确排除在 npm 包之外。
34
+
35
+ <p align="center">
36
+ <img src="docs/dsh-exit-landscape.webp" alt="由 Archify 生成的横版 dsh-exit 动态流程图" width="720">
37
+ </p>
32
38
 
33
39
  <p align="center">
34
- <img src="https://raw.githubusercontent.com/KeS1Ke/dsh-exit/main/docs/dsh-exit-landscape.webp" alt="由 Archify 生成的横版 dsh-exit 动态流程图" width="720">
40
+ <video controls muted loop playsinline width="720" poster="docs/dsh-exit-landscape.webp">
41
+ <source src="docs/dsh-exit-landscape.mp4" type="video/mp4">
42
+ <source src="docs/dsh-exit-landscape.webm" type="video/webm">
43
+ <a href="https://github.com/KeS1Ke/dsh-exit/blob/main/docs/dsh-exit-landscape.mp4">下载退出流程视频</a>
44
+ </video>
35
45
  </p>
36
46
 
37
47
  ## 📸 真实 dsh 界面
@@ -39,10 +49,10 @@
39
49
  下图来自已经安装 `dsh-exit` 的真实 dsh Web profile;右下角的红色电源按钮就是插件实际渲染的控件。
40
50
 
41
51
  <p align="center">
42
- <img src="https://raw.githubusercontent.com/KeS1Ke/dsh-exit/main/docs/dsh-exit-real.png" alt="运行中的 dsh Web 界面与右下角 dsh-exit 电源按钮" width="720">
52
+ <img src="docs/dsh-exit-real.png" alt="运行中的 dsh Web 界面与右下角 dsh-exit 电源按钮" width="720">
43
53
  </p>
44
54
 
45
- ## 🧱 项目组成
55
+ ## 🧱 npm 包内容
46
56
 
47
57
  | 层次 | 文件 | 职责 |
48
58
  | --- | --- | --- |
@@ -50,8 +60,14 @@
50
60
  | 客户端 | [`lib/client.js`](lib/client.js) | 自包含浏览器 bundle:按钮、样式、弹窗、键盘交互和 Remote 挂载。 |
51
61
  | Bundle 补丁 | [`cordis.patch.yml`](cordis.patch.yml) | 向 dsh profile 插入插件行。 |
52
62
  | 包元数据 | [`package.json`](package.json) | 声明宿主入口、Web 客户端和 Bundle 补丁。 |
53
- | 动态流程 | [`docs/dsh-exit-landscape.webp`](https://github.com/KeS1Ke/dsh-exit/blob/main/docs/dsh-exit-landscape.webp) | 横版 Archify trace 动画,以动画 WebP 直接内嵌。 |
54
- | 真实界面截图 | [`docs/dsh-exit-real.png`](https://github.com/KeS1Ke/dsh-exit/blob/main/docs/dsh-exit-real.png) | 已运行 dsh Web profile 中的实际按钮。 |
63
+
64
+ npm 包只包含上面四个核心运行文件、包元数据和 README;GitHub 展示素材单独保留在仓库中:
65
+
66
+ | 展示素材 | 位置 |
67
+ | --- | --- |
68
+ | 动画 WebP | [`docs/dsh-exit-landscape.webp`](https://github.com/KeS1Ke/dsh-exit/blob/main/docs/dsh-exit-landscape.webp) |
69
+ | MP4 / WebM 视频 | [`docs/dsh-exit-landscape.mp4`](https://github.com/KeS1Ke/dsh-exit/blob/main/docs/dsh-exit-landscape.mp4) · [`docs/dsh-exit-landscape.webm`](https://github.com/KeS1Ke/dsh-exit/blob/main/docs/dsh-exit-landscape.webm) |
70
+ | 真实界面截图 | [`docs/dsh-exit-real.png`](https://github.com/KeS1Ke/dsh-exit/blob/main/docs/dsh-exit-real.png) |
55
71
 
56
72
 
57
73
  ## 🚀 从 npm 安装
package/lib/client.js CHANGED
@@ -8,8 +8,8 @@
8
8
  * 无外部依赖:全部逻辑在本工厂内完成,不 require 任何模块。
9
9
  */
10
10
  window.__ModuleLoader__.load({
11
- // The bundle row is addressed by the stable dsh patch id, not the npm scope.
12
- id: "dsh-exit",
11
+ // The loader key follows the resolved npm package name, including its scope.
12
+ id: "@kesike/dsh-exit",
13
13
  factory: () => {
14
14
  var module = { exports: {} };
15
15
  var exports = module.exports;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kesike/dsh-exit",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "description": "在 dsh web 界面提供退出按钮:确认后结束宿主进程并释放端口",
6
6
  "keywords": [