@akira-yylm/session-calendar 0.0.0-stage → 1.0.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/CHANGELOG.md +35 -0
- package/LICENSE +21 -0
- package/README.en.md +99 -0
- package/README.md +102 -2
- package/client.js +1282 -0
- package/cordis.patch.yml +4 -0
- package/icon.svg +8 -0
- package/index.js +111 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +55 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.0.4
|
|
4
|
+
|
|
5
|
+
- 发布到 npm:安装方式改为「在 DSH 中安装(推荐)」直接粘贴包名 `@akira-yylm/session-calendar`,升级走插件页的 Update;GitHub 直装保留为备选(固定 40 位 SHA 才可更新,并注明国内网络较慢)。
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## 1.0.3
|
|
9
|
+
|
|
10
|
+
- 文档:安装一节新增「在 DSH 中安装(推荐)」——插件页粘贴一行即可;「从 GitHub 安装」改为进阶说明(固定 40 位 SHA 才被识别为可更新)。中英文同步。
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## 1.0.2
|
|
14
|
+
|
|
15
|
+
- 文档:补齐英文 `README.en.md`、非官方声明,以及安装(GitHub / 命令行 / 本地目录)、升级、数据与隐私、兼容性、开发说明;安装示例改用本仓库地址与 tag。
|
|
16
|
+
- 文档:补充「`client.js` 注册 id 必须等于包名」的注意事项。
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## 1.0.1
|
|
20
|
+
|
|
21
|
+
- 修复:客户端模块注册用的 id 仍是旧包名 `@local/session-calendar`,与包名(也是 boot entry 的 id)不一致,导致从 GitHub 安装后界面上不出现「会话日历」按钮——Host 半边(创建时间接口)一直正常。现改为 `@akira-yylm/session-calendar`。
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## 1.0.0
|
|
25
|
+
|
|
26
|
+
- 新增「会话日历」入口:左侧导航「免费会话」下方第三个入口,折叠成细栏时显示图标。
|
|
27
|
+
- 入口刻意与上面两个会话按钮**不同样式**:不用填充按钮,改为描边(日历主色 38%)+ 主色图标 + 次级文字,悬停/展开时铺 10–12% 主色底;细栏里是描边图标按钮。它逻辑上是浏览工具,不是「开始对话」,所以视觉上要与「新会话」「免费会话」区分开。
|
|
28
|
+
- 点开后在左侧栏右边弹出小窗月历:六周固定网格、只用当月日期、有会话的日子带圆点;`‹ ›` 翻月(自动落在该月最早有会话的一天),「今天」回到当天。
|
|
29
|
+
- 点日期后按工作区顺序分组列出当天创建的会话(标题 + 创建时间),点条目直接打开该会话并收起小窗。
|
|
30
|
+
- 与左侧栏同规则隐藏子代理会话、空白会话、已归档会话;不在任何工作区里的目录按文件夹名单独成组。
|
|
31
|
+
- 日期与会话都带 1px 边框:每个日期格是中性淡描边,有会话的日子换成日历主色 34%,今天 62%,选中日实心主色边 + 16% 主色底;会话行按所属工作区换色(蓝 / 绿 / 琥珀 / 珊瑚循环),行内有 4% 同色底、悬停 12%。
|
|
32
|
+
- 小窗样式沿用宿主浮层配方(`--dsw-specific-menu` + `--dsw-elevation-prominent`),日历格子沿用宿主日期选择器(ghost-active 选中态、today 描边、8px 圆角)。
|
|
33
|
+
- 关闭方式:再点按钮、点小窗外面、`Esc`、改变窗口大小;关闭后焦点回到按钮。
|
|
34
|
+
- 宿主新增只读接口 `GET /dsh-session-calendar/created.json`,仅从会话持久层读取创建时间(约 30 ms / 70+ 会话),不写任何会话或工作区,不打开日志正文。
|
|
35
|
+
- 发布准备:包名改为 `@akira-yylm/session-calendar`,补 MIT 许可证、`engines.dsh` 版本范围与「从 GitHub 安装」的说明。
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Akira-yylm
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.en.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Session calendar
|
|
2
|
+
|
|
3
|
+
> An unofficial DeepSeek Harness (DSH) plugin. Not affiliated with DeepSeek. 中文 → [README.md](README.md)
|
|
4
|
+
|
|
5
|
+
Adds a **Session calendar** row just below the **Free session** row in the left sidebar. Clicking it opens a small month calendar beside the sidebar: pick a day, and every session created that day is listed below the grid, grouped by the workspace it belongs to, in the same order as the sidebar. Clicking a row opens that session.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
1. Click **Session calendar** under **New session** / **Free session** in the left sidebar.
|
|
10
|
+
2. The calendar opens to the right of the sidebar: month grid on top, that day's sessions below.
|
|
11
|
+
3. Days with sessions carry a dot; click a day to list them.
|
|
12
|
+
4. `‹` / `›` page months (landing on that month's earliest day with sessions); **Today** returns.
|
|
13
|
+
5. Sessions are grouped in sidebar workspace order, each row showing title and creation time.
|
|
14
|
+
6. Click a row to open that session; the window closes.
|
|
15
|
+
7. Dismiss with the row again, a click outside, `Esc`, or a window resize.
|
|
16
|
+
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
Requires DSH 0.2.2-rc.5 or a later 0.2.x.
|
|
20
|
+
|
|
21
|
+
### Install in DSH (recommended)
|
|
22
|
+
|
|
23
|
+
1. Sidebar → **Plugins** → **Add plugin**.
|
|
24
|
+
2. Paste the package name and install:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
@akira-yylm/session-calendar
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
3. The bundle is enabled by default; restart DSH if the page says `restart-required`, then refresh. The **Session calendar** row appears under **Free session**.
|
|
31
|
+
|
|
32
|
+
An npm install gains a **Versions** section in the plugin page, so upgrades are one **Update** click.
|
|
33
|
+
|
|
34
|
+
### From GitHub
|
|
35
|
+
|
|
36
|
+
To bypass npm, or to pin an exact commit, install from the repository instead:
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
github:Akira-yylm/dsh-session-calendar#v1.0.4
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
To let Plugin Manager treat the install as an **updatable** Git plugin, replace the tag with the full 40-char commit SHA (`git rev-parse v1.0.4`); a tag or branch also installs, but never follows updates.
|
|
43
|
+
|
|
44
|
+
> Git installs can be very slow from mainland China; prefer the npm method above.
|
|
45
|
+
|
|
46
|
+
### From the command line
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
dsh plugin --profile <profile> add @akira-yylm/session-calendar
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### From a local checkout
|
|
53
|
+
|
|
54
|
+
`git clone`, then **Add plugin** → choose the directory (linked install). Refresh after editing.
|
|
55
|
+
|
|
56
|
+
## Upgrade
|
|
57
|
+
|
|
58
|
+
- **npm install**: click **Update** in the plugin page when a new version appears.
|
|
59
|
+
- **GitHub install**: no one-click updater; remove the old version and install the new commit.
|
|
60
|
+
|
|
61
|
+
## Data and privacy
|
|
62
|
+
|
|
63
|
+
- One same-origin **read-only** Host route: `GET /dsh-session-calendar/created.json`, reading each session's `createdAt` from `sessionPersistence.list()`.
|
|
64
|
+
- Never opens session log bodies, writes no files, makes no external requests, uploads nothing.
|
|
65
|
+
- Titles, workspaces, ordering, and archived state come from the page's existing session/workspace data.
|
|
66
|
+
- Nothing leaves the machine; no leftovers after removal: no config, cache, or database.
|
|
67
|
+
|
|
68
|
+
## Limitations
|
|
69
|
+
|
|
70
|
+
- Days use the **browser's local time zone**; sessions stay on the day they were **created**.
|
|
71
|
+
- Subagent, blank, and archived sessions are hidden by the same rules the sidebar uses.
|
|
72
|
+
- Sessions outside any registered workspace fall back to a folder-name group.
|
|
73
|
+
- The grid shows the current month only; paging lands on the earliest day with sessions.
|
|
74
|
+
- In very narrow windows the card may cover the sidebar; use its × to dismiss.
|
|
75
|
+
- The row lives inside the New-session row's slot, so it hides whenever DSH hides that row.
|
|
76
|
+
|
|
77
|
+
## Compatibility
|
|
78
|
+
|
|
79
|
+
- Tested on **DSH 0.2.2-rc.5 (macOS desktop)**. The manifest declares `engines.dsh: >=0.2.2-rc.5 <0.3.0`; DSH refuses to install or update outside that range.
|
|
80
|
+
- Plain Web UI plus one read-only Host route; not OS-specific. Windows / Linux untested.
|
|
81
|
+
- Inserts only its own `session-calendar` row; overrides no official row.
|
|
82
|
+
|
|
83
|
+
## Development
|
|
84
|
+
|
|
85
|
+
| File | Role |
|
|
86
|
+
|---|---|
|
|
87
|
+
| `index.js` | Host half: the read-only route |
|
|
88
|
+
| `client.js` | Client half: sidebar row + `shell.overlay` calendar card |
|
|
89
|
+
| `cordis.patch.yml` | Inserts the `session-calendar` row |
|
|
90
|
+
| `locale/zh.json`, `locale/en.json` | Plugin page title and description |
|
|
91
|
+
| `icon.svg` | 36×36 transparent icon |
|
|
92
|
+
|
|
93
|
+
Note: the `id` passed to `window.__ModuleLoader__.load({ id })` in `client.js` must equal the package name exactly, or the Host half loads while nothing appears in the UI.
|
|
94
|
+
|
|
95
|
+
With a linked local install, client changes appear after a refresh; Host changes need a DSH restart.
|
|
96
|
+
|
|
97
|
+
## License
|
|
98
|
+
|
|
99
|
+
[MIT](LICENSE) © 2026 Akira-yylm
|
package/README.md
CHANGED
|
@@ -1,3 +1,103 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 会话日历 · Session calendar
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> 非官方(unofficial)DeepSeek Harness 插件,与 DeepSeek 官方无关。English → [README.en.md](README.en.md)
|
|
4
|
+
|
|
5
|
+
在 DSH 左侧导航「免费会话」下方增加一个同款按钮,点开后会在左侧栏右边弹出小窗日历。选中某一天,就能看到**那一天创建的全部会话**,并按它们各自所属的**工作区分组**排列,和左侧栏的会话属于同一个工作区结构;点任意一条直接打开该会话。
|
|
6
|
+
|
|
7
|
+
## 怎么用
|
|
8
|
+
|
|
9
|
+
1. 点左侧导航里「新会话」「免费会话」下方的 **「会话日历」**。
|
|
10
|
+
2. 小窗出现在左侧栏右边:上方是月历,下方是当天列表。
|
|
11
|
+
3. 有会话的日期下面有圆点;点日期即可查看当天会话。
|
|
12
|
+
4. `‹` `›` 翻月(会自动落到该月最早有会话的那一天),「今天」回到当天。
|
|
13
|
+
5. 下方按工作区顺序分组,每组标题是该工作区的名字;每条显示会话标题和创建时间(时:分)。
|
|
14
|
+
6. 点某条会话即在右侧对话区打开它,小窗自动关闭。
|
|
15
|
+
7. 关掉小窗:再点一次按钮、点小窗外面、按 `Esc`,或改变窗口大小。
|
|
16
|
+
|
|
17
|
+
## 安装
|
|
18
|
+
|
|
19
|
+
需要在 DSH 0.2.2-rc.5 或更高的 0.2.x 上使用。
|
|
20
|
+
|
|
21
|
+
### 在 DSH 中安装(推荐)
|
|
22
|
+
|
|
23
|
+
1. 打开 DSH 侧栏 **插件** → **添加插件**。
|
|
24
|
+
2. 粘贴包名,点安装:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
@akira-yylm/session-calendar
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
3. 装好后插件默认启用;页面提示 `restart-required` 时重启 DSH,再刷新页面。左侧「免费会话」下方就会出现「会话日历」。
|
|
31
|
+
|
|
32
|
+
从 npm 安装的版本,插件页会显示 **Versions** 区,升级可以直接点 **Update**。
|
|
33
|
+
|
|
34
|
+
### 从 GitHub 安装
|
|
35
|
+
|
|
36
|
+
不想经过 npm、或者想锁死某个提交时,用 GitHub 地址:
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
github:Akira-yylm/dsh-session-calendar#v1.0.4
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
想让 Plugin Manager 把它识别为**可更新**的 Git 安装,把 tag 换成完整的 40 位 commit SHA(`git rev-parse v1.0.4` 可查);写 tag 或分支名也能装,但不会跟随更新。
|
|
43
|
+
|
|
44
|
+
> 中国大陆网络下 Git 直装可能很慢,建议优先用上面的 npm 方式。
|
|
45
|
+
|
|
46
|
+
### 用命令安装
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
dsh plugin --profile <profile> add @akira-yylm/session-calendar
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### 从本地目录安装
|
|
53
|
+
|
|
54
|
+
`git clone` 本仓库后,在 **添加插件** 里选择该目录(本地目录会被 link 安装)。改完代码刷新页面即生效,适合自己改代码时用。
|
|
55
|
+
|
|
56
|
+
## 升级
|
|
57
|
+
|
|
58
|
+
- **npm 安装**:插件页出现新版本时点 **Update** 即可。
|
|
59
|
+
- **GitHub 安装**:没有一键更新,换新版本 = 移除旧版 → 用新 commit 重新装。
|
|
60
|
+
|
|
61
|
+
## 数据与隐私
|
|
62
|
+
|
|
63
|
+
- 只新增一个同 origin 的**只读**宿主接口:`GET /dsh-session-calendar/created.json`,由会话持久层(`sessionPersistence.list()`)读出每个会话的 `createdAt`(创建时间)。
|
|
64
|
+
- 不打开会话日志正文,不写任何文件,不发外网请求,不上传任何数据。
|
|
65
|
+
- 会话标题、工作区、排序与归档状态都取自页面已有的会话/工作区数据,不额外复制一份。
|
|
66
|
+
- 数据不出本机;卸载后无残留:本插件不创建配置文件、缓存或数据库。
|
|
67
|
+
|
|
68
|
+
## 限制
|
|
69
|
+
|
|
70
|
+
- 日期按**浏览器本地时区**划分(例如 Asia/Shanghai),不是 UTC;会话按**创建**日期归档,今天继续聊的旧会话仍留在它创建的那一天。
|
|
71
|
+
- 与左侧栏一致地隐藏:**子代理会话**、**空白会话**、**已归档会话**。
|
|
72
|
+
- 不属于任何已注册工作区的会话(例如目录已从工作区列表移除)会按文件夹名单独成组。
|
|
73
|
+
- 月历只显示当月日期(相邻月份留空),翻月会自动落到该月最早有会话的一天。
|
|
74
|
+
- 窗口很矮时会改为整张卡片滚动,窗口很窄时卡片会收窄并可能盖住左侧栏,此时用卡片右上角的关闭按钮收起。
|
|
75
|
+
- 入口挂在「新会话」这一行的插槽里,所以当 DSH 自己隐藏该行时(例如当前会话不允许新建会话),「会话日历」按钮也会一起隐藏。
|
|
76
|
+
|
|
77
|
+
## 关掉或卸载后
|
|
78
|
+
|
|
79
|
+
「会话日历」按钮与小窗消失。DSH 的会话、工作区、会话顺序、归档状态都不受影响;菜单元数据里也不会留下任何东西。
|
|
80
|
+
|
|
81
|
+
## 兼容性
|
|
82
|
+
|
|
83
|
+
- 在 **DSH 0.2.2-rc.5(macOS 桌面端)** 实测;包内声明 `engines.dsh: >=0.2.2-rc.5 <0.3.0`,超出范围 DSH 会拒绝安装或升级。
|
|
84
|
+
- 纯 Web UI + 一个只读 Host 路由,不依赖操作系统;Windows / Linux 未实测。
|
|
85
|
+
- 与官方插件无冲突:只插入自己的 `session-calendar` 行,不覆盖任何官方 row。
|
|
86
|
+
|
|
87
|
+
## 开发
|
|
88
|
+
|
|
89
|
+
| 文件 | 作用 |
|
|
90
|
+
|---|---|
|
|
91
|
+
| `index.js` | Host 半边:注册只读路由 |
|
|
92
|
+
| `client.js` | Client 半边:侧栏入口按钮 + `shell.overlay` 小窗月历 |
|
|
93
|
+
| `cordis.patch.yml` | 插入 `session-calendar` 行 |
|
|
94
|
+
| `locale/zh.json`、`locale/en.json` | 插件页标题与描述 |
|
|
95
|
+
| `icon.svg` | 36×36 透明底图标 |
|
|
96
|
+
|
|
97
|
+
注意:`client.js` 里的 `window.__ModuleLoader__.load({ id })` 必须与包名完全一致,否则 Host 正常但界面不出现。
|
|
98
|
+
|
|
99
|
+
本地 link 安装时,改完刷新页面即可看到客户端改动;Host 侧改动需要重启 DSH。
|
|
100
|
+
|
|
101
|
+
## License
|
|
102
|
+
|
|
103
|
+
[MIT](LICENSE) © 2026 Akira-yylm
|