dsh-session-span 1.0.1 → 1.0.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.
Files changed (3) hide show
  1. package/README.en.md +14 -3
  2. package/README.md +14 -3
  3. package/package.json +9 -4
package/README.en.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  [简体中文](README.md) | **English**
4
4
 
5
+ [![npm version](https://img.shields.io/npm/v/dsh-session-span.svg)](https://www.npmjs.com/package/dsh-session-span)
6
+ [![license](https://img.shields.io/npm/l/dsh-session-span.svg)](LICENSE)
7
+
5
8
  ## Introduction
6
9
 
7
10
  When work is organized as one task per session, two questions come up regularly: how much time this task has taken so far, and when it began. The current sidebar shows only the time since the most recent message, so neither question can be answered from it. This plugin therefore adds only the start time and the total elapsed time of the session, and nothing else.
@@ -24,9 +27,11 @@ First message 2026-11-19 10:57 This plugin: when it began
24
27
 
25
28
  ## Installation
26
29
 
27
- In the application, open **Settings → Plugins → Add plugin**, enter `dsh-session-span`, and enable the **Session elapsed time** bundle.
30
+ The plugin is published on npm: [dsh-session-span](https://www.npmjs.com/package/dsh-session-span).
31
+
32
+ **In the application (recommended)**: open **Settings → Plugins → Add plugin**, enter `dsh-session-span`, and enable the **Session elapsed time** bundle. The application installs the latest version from npm.
28
33
 
29
- In a `web` or other profile managed from a shell:
34
+ **From a shell**, for a `web` or other profile managed from the command line:
30
35
 
31
36
  ```sh
32
37
  dsh plugin --profile web add dsh-session-span
@@ -34,7 +39,7 @@ dsh plugin --profile web add dsh-session-span
34
39
 
35
40
  The Desktop profile is managed by the application, so install from the Plugins page there.
36
41
 
37
- Requirements: DSH `>=0.2.2-rc.3` and Node `>=22.6`. The package has no dependencies and no installation scripts.
42
+ Requirements: verified on DSH `0.2.2-rc.3`. The package declares `engines.dsh` as `>=0.2.0-0`, so every stable or prerelease version from 0.2.0 onward can install it; the Node version is whatever DSH itself requires, since the package adds no restriction of its own. If a 0.2.0 or 0.2.1 installation misbehaves, upgrade to 0.2.2 or later.
38
43
 
39
44
  ## How the start time is determined
40
45
 
@@ -58,6 +63,12 @@ The package is published as is, with no build step: the Host side is a plain ESM
58
63
  dsh plugin --profile web add /absolute/path/to/this/directory
59
64
  ```
60
65
 
66
+ ## Links
67
+
68
+ - npm: [dsh-session-span](https://www.npmjs.com/package/dsh-session-span)
69
+ - Repository: [github.com/aNoWhale/dsh-session-span](https://github.com/aNoWhale/dsh-session-span)
70
+ - Issues: [github.com/aNoWhale/dsh-session-span/issues](https://github.com/aNoWhale/dsh-session-span/issues)
71
+
61
72
  ## License
62
73
 
63
74
  MIT
package/README.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  **简体中文** | [English](README.en.md)
4
4
 
5
+ [![npm version](https://img.shields.io/npm/v/dsh-session-span.svg)](https://www.npmjs.com/package/dsh-session-span)
6
+ [![license](https://img.shields.io/npm/l/dsh-session-span.svg)](LICENSE)
7
+
5
8
  ## 引言
6
9
 
7
10
  按“一个任务对应一个会话”的方式工作时,往往会关心两件事:这项任务已经投入了多少时间,以及它是从什么时候开始的。当前版本的侧边栏只显示最近一条消息距今的时间,无法回答这两个问题。为此,本插件只补充会话的起始时间与总用时,不涉及其他功能。
@@ -24,9 +27,11 @@ C:\Users\Administrator
24
27
 
25
28
  ## 安装
26
29
 
27
- 在应用内打开「设置 → 插件 → 添加插件」,填写 `dsh-session-span`,然后启用「会话历时」插件包。
30
+ 本插件发布在 npm:[dsh-session-span](https://www.npmjs.com/package/dsh-session-span)。
31
+
32
+ **在应用内安装(推荐)**:打开「设置 → 插件 → 添加插件」,填写 `dsh-session-span`,然后启用「会话历时」插件包。应用会从 npm 安装最新版本。
28
33
 
29
- 在由命令行管理的 `web` 等配置中安装:
34
+ **在命令行安装**,用于 `web` 等由命令行管理的配置:
30
35
 
31
36
  ```sh
32
37
  dsh plugin --profile web add dsh-session-span
@@ -34,7 +39,7 @@ dsh plugin --profile web add dsh-session-span
34
39
 
35
40
  桌面版的配置由应用管理,请在应用内的插件页面安装。
36
41
 
37
- 运行要求:DSH `>=0.2.2-rc.3`,Node `>=22.6`。本插件没有依赖,也没有安装脚本。
42
+ 运行要求:本插件在 DSH `0.2.2-rc.3` 上验证。`engines.dsh` 声明为 `>=0.2.0-0`,因此 0.2.0 及以上的正式版与预发布版都可以安装;Node 版本由 DSH 自身要求决定,本插件不额外限制。若在 0.2.0 或 0.2.1 上出现异常,请升级到 0.2.2 及以上。
38
43
 
39
44
  ## 起始时间的确定方式
40
45
 
@@ -58,6 +63,12 @@ dsh plugin --profile web add dsh-session-span
58
63
  dsh plugin --profile web add /absolute/path/to/this/directory
59
64
  ```
60
65
 
66
+ ## 链接
67
+
68
+ - npm:[dsh-session-span](https://www.npmjs.com/package/dsh-session-span)
69
+ - 仓库:[github.com/aNoWhale/dsh-session-span](https://github.com/aNoWhale/dsh-session-span)
70
+ - 问题反馈:[Issues](https://github.com/aNoWhale/dsh-session-span/issues)
71
+
61
72
  ## 许可
62
73
 
63
74
  MIT
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "dsh-session-span",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "在侧边栏会话行的悬停卡片中显示会话的已用时长与起始时间 / Session elapsed time and start time in the sidebar hover card.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
- "author": "cks <940962289@qq.com>",
7
+ "author": {
8
+ "name": "aNoWhale",
9
+ "url": "https://github.com/aNoWhale"
10
+ },
8
11
  "keywords": [
9
12
  "dsh-plugin",
10
13
  "deepseek-harness",
@@ -21,9 +24,11 @@
21
24
  "bugs": {
22
25
  "url": "https://github.com/aNoWhale/dsh-session-span/issues"
23
26
  },
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
24
30
  "engines": {
25
- "node": ">=22.6",
26
- "dsh": ">=0.2.2-rc.3"
31
+ "dsh": ">=0.2.0-0"
27
32
  },
28
33
  "exports": {
29
34
  ".": "./index.js",