dsh-session-title-stamp 0.4.4 → 0.5.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/README.md +5 -4
- package/README.zh.md +6 -5
- package/lib/format.js +27 -17
- package/market/index.json +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,8 @@ For example, with `categoryPreset: en`:
|
|
|
30
30
|
```text
|
|
31
31
|
1028 | Analysis | Short-drama platform verification
|
|
32
32
|
1027 | Fix | Four-device acceptance rework
|
|
33
|
-
1026 |
|
|
33
|
+
1026 | Release | Ubuntu environment setup
|
|
34
|
+
1025 | Optimize | Reduce memory usage in the renderer
|
|
34
35
|
```
|
|
35
36
|
|
|
36
37
|
Dates are computed by the plugin from the session's creation time, never by the
|
|
@@ -59,7 +60,7 @@ and mirrors conventions used by other coding agents.
|
|
|
59
60
|
Add this market index source in **Plugins → Discover → Index sources**:
|
|
60
61
|
|
|
61
62
|
```text
|
|
62
|
-
https://cdn.jsdelivr.net/gh/xuedipiaofei/dsh-session-title-stamp@v0.
|
|
63
|
+
https://cdn.jsdelivr.net/gh/xuedipiaofei/dsh-session-title-stamp@v0.5.0/market/index.json
|
|
63
64
|
```
|
|
64
65
|
|
|
65
66
|
Then install **Session title stamp** from the list. The plugin installs as a
|
|
@@ -129,7 +130,7 @@ mode using `retitleEvery`.
|
|
|
129
130
|
|
|
130
131
|
### Header button and hover stats
|
|
131
132
|
|
|
132
|
-
0.
|
|
133
|
+
0.5.0 adds a small browser half:
|
|
133
134
|
|
|
134
135
|
- a **refresh icon** in the conversation header; it runs the same `/retitle`
|
|
135
136
|
command as typing it, and is disabled while the session is running.
|
|
@@ -209,7 +210,7 @@ typo is visible instead of silently disappearing. The template owns the final
|
|
|
209
210
|
format; `maxTitleBytes` still clips the result.
|
|
210
211
|
|
|
211
212
|
The default taxonomy is Chinese. `categoryPreset: en` switches it to
|
|
212
|
-
`Analysis / Build / Fix / Debug / QA /
|
|
213
|
+
`Analysis / Build / Fix / Optimize / Debug / QA / Release / Docs / Other`; `categories`
|
|
213
214
|
overrides either preset with any labels you want. The prompt lists the configured
|
|
214
215
|
labels and the local fallback maps common keywords onto them.
|
|
215
216
|
|
package/README.zh.md
CHANGED
|
@@ -21,8 +21,9 @@
|
|
|
21
21
|
|
|
22
22
|
```text
|
|
23
23
|
1028 | 分析 | 绿洲短剧平台验证
|
|
24
|
-
1027 |
|
|
25
|
-
1026 |
|
|
24
|
+
1027 | 修复 | 四台设备第十题验收返修
|
|
25
|
+
1026 | 发布 | Ubuntu 环境初始化
|
|
26
|
+
1025 | 优化 | 降低渲染器内存占用
|
|
26
27
|
```
|
|
27
28
|
|
|
28
29
|
日期由插件从**会话创建时间**计算,不交给模型;分类只能从可配置词表中选择,并在本地校验;模型只负责提出分类和名称,最终格式由模板决定。
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
在 **插件 → 发现(Discover)→ 索引源** 添加:
|
|
44
45
|
|
|
45
46
|
```text
|
|
46
|
-
https://cdn.jsdelivr.net/gh/xuedipiaofei/dsh-session-title-stamp@v0.
|
|
47
|
+
https://cdn.jsdelivr.net/gh/xuedipiaofei/dsh-session-title-stamp@v0.5.0/market/index.json
|
|
47
48
|
```
|
|
48
49
|
|
|
49
50
|
然后在列表里安装 **Session title stamp / 会话标题印章**。插件以 profile bundle 的形式安装,之后可在插件页启停。
|
|
@@ -93,7 +94,7 @@ fork 子会话、子代理会话,以及用户手动改名固定的标题都会
|
|
|
93
94
|
|
|
94
95
|
### 会话头按钮与悬停统计
|
|
95
96
|
|
|
96
|
-
0.
|
|
97
|
+
0.5.0 增加了一个很小的浏览器半边:
|
|
97
98
|
|
|
98
99
|
- 会话头有一个**刷新图标**,效果等同输入 `/retitle`,会话运行中禁用;
|
|
99
100
|
- 鼠标悬停会话行时,在原生相对时间下面多一行:
|
|
@@ -161,7 +162,7 @@ fork 子会话、子代理会话,以及用户手动改名固定的标题都会
|
|
|
161
162
|
不认识的占位符会**原样保留**(`{MMDD} {bogus}` 会保留 `{bogus}`),方便一眼看出模板写错,而不是悄悄消失。最终仍受 `maxTitleBytes` 截断。
|
|
162
163
|
|
|
163
164
|
默认分类是中文。`categoryPreset: en` 可切到
|
|
164
|
-
`Analysis / Build / Fix / Debug / QA /
|
|
165
|
+
`Analysis / Build / Fix / Optimize / Debug / QA / Release / Docs / Other`;`categories`
|
|
165
166
|
可以覆盖任意预设。提示词使用配置的标签,本地兜底也会把常见中英文关键词映射过去。
|
|
166
167
|
|
|
167
168
|
## 隐私与成本
|
package/lib/format.js
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export const CATEGORY_PRESETS = Object.freeze({
|
|
10
|
-
zh: ['分析', '实现', '
|
|
11
|
-
en: ['Analysis', 'Build', 'Fix', 'Debug', 'QA', '
|
|
10
|
+
zh: ['分析', '实现', '修复', '优化', '排查', '验收', '发布', '文档', '其他'],
|
|
11
|
+
en: ['Analysis', 'Build', 'Fix', 'Optimize', 'Debug', 'QA', 'Release', 'Docs', 'Other'],
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
export const DEFAULT_CATEGORIES = [...CATEGORY_PRESETS.zh]
|
|
@@ -20,18 +20,20 @@ export const DEFAULT_TEMPLATE = '{date} | {type} | {topic}'
|
|
|
20
20
|
export const CATEGORY_HINTS = {
|
|
21
21
|
分析: '调研、评估、方案对比、根因分析、可行性判断',
|
|
22
22
|
实现: '新功能开发、编码、脚本实现',
|
|
23
|
-
|
|
23
|
+
修复: '修复缺陷、返工、验收问题修复',
|
|
24
|
+
优化: '性能优化、内存/体积优化、重构、提速',
|
|
24
25
|
排查: '故障定位、调试、日志排查',
|
|
25
26
|
验收: '测试、验收、逐项核对、复测',
|
|
26
|
-
|
|
27
|
+
发布: '上线、发布、环境配置、运维',
|
|
27
28
|
文档: '文档编写、整理、总结',
|
|
28
29
|
其他: '以上都不合适',
|
|
29
30
|
Analysis: 'research, evaluation, options, root-cause analysis',
|
|
30
31
|
Build: 'new implementation, coding, scripts',
|
|
31
32
|
Fix: 'defect repair, rework, acceptance fixes',
|
|
33
|
+
Optimize: 'performance, memory/size, refactoring, speed',
|
|
32
34
|
Debug: 'troubleshooting, diagnosis, logs',
|
|
33
35
|
QA: 'testing, acceptance, verification',
|
|
34
|
-
|
|
36
|
+
Release: 'release, deployment, environment setup, operations',
|
|
35
37
|
Docs: 'documentation, cleanup, summary',
|
|
36
38
|
Other: 'none of the above',
|
|
37
39
|
}
|
|
@@ -47,21 +49,27 @@ const CATEGORY_ALIASES = {
|
|
|
47
49
|
开发: '实现',
|
|
48
50
|
编码: '实现',
|
|
49
51
|
功能: '实现',
|
|
50
|
-
修复: '
|
|
51
|
-
返工: '
|
|
52
|
-
缺陷: '
|
|
53
|
-
bug: '
|
|
54
|
-
问题: '
|
|
52
|
+
修复: '修复',
|
|
53
|
+
返工: '修复',
|
|
54
|
+
缺陷: '修复',
|
|
55
|
+
bug: '修复',
|
|
56
|
+
问题: '修复',
|
|
57
|
+
整改: '修复',
|
|
58
|
+
优化: '优化',
|
|
59
|
+
性能: '优化',
|
|
60
|
+
重构: '优化',
|
|
61
|
+
提速: '优化',
|
|
55
62
|
调试: '排查',
|
|
56
63
|
定位: '排查',
|
|
57
64
|
故障: '排查',
|
|
58
65
|
测试: '验收',
|
|
59
66
|
复测: '验收',
|
|
60
67
|
核对: '验收',
|
|
61
|
-
上线: '
|
|
62
|
-
发布: '
|
|
63
|
-
运维: '
|
|
64
|
-
环境: '
|
|
68
|
+
上线: '发布',
|
|
69
|
+
发布: '发布',
|
|
70
|
+
运维: '发布',
|
|
71
|
+
环境: '发布',
|
|
72
|
+
部署: '发布',
|
|
65
73
|
写作: '文档',
|
|
66
74
|
整理: '文档',
|
|
67
75
|
说明: '文档',
|
|
@@ -69,16 +77,18 @@ const CATEGORY_ALIASES = {
|
|
|
69
77
|
|
|
70
78
|
/** Ordered keyword table for the deterministic fallback classifier. */
|
|
71
79
|
const CATEGORY_KEYWORDS = [
|
|
72
|
-
['
|
|
80
|
+
['修复', ['修复', '整改', '返工', '缺陷', 'bug', '报错', '不通过', '失败', '问题', 'fix', 'repair']],
|
|
81
|
+
['优化', ['优化', '性能', '内存', '重构', '提速', 'optimize', 'performance', 'refactor', 'memory', 'speed']],
|
|
73
82
|
['验收', ['验收', '测试', '复测', '核对', '检查', 'acceptance', 'validation']],
|
|
74
|
-
['
|
|
83
|
+
['发布', ['发布', '部署', '上线', '环境', '运维', 'docker', 'nginx', 'deploy', 'release', 'ship']],
|
|
75
84
|
['排查', ['排查', '定位', '调试', '诊断', '崩溃', '异常', 'debug', 'troubleshoot', 'traceback']],
|
|
76
85
|
['文档', ['文档', 'readme', '整理', '总结', '说明', 'document']],
|
|
77
86
|
['实现', ['实现', '开发', '新增', '编码', '功能', 'implement', 'develop', 'feature']],
|
|
78
87
|
['分析', ['分析', '评估', '调研', '方案', '对比', '验证', '研究', 'analyze', 'research', 'review']],
|
|
79
88
|
['Fix', ['fix', 'bug', 'repair', 'defect', 'error', 'issue', 'broken']],
|
|
89
|
+
['Optimize', ['optimize', 'performance', 'refactor', 'memory', 'speed', 'tune']],
|
|
80
90
|
['QA', ['test', 'acceptance', 'verify', 'qa', 'validation']],
|
|
81
|
-
['
|
|
91
|
+
['Release', ['release', 'deploy', 'ops', 'environment', 'docker', 'nginx', 'ship']],
|
|
82
92
|
['Debug', ['debug', 'troubleshoot', 'diagnose', 'crash', 'traceback', 'log']],
|
|
83
93
|
['Docs', ['doc', 'readme', 'document', 'writeup', 'summarize']],
|
|
84
94
|
['Build', ['build', 'implement', 'develop', 'feature', 'code', 'script']],
|
package/market/index.json
CHANGED
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
},
|
|
58
58
|
"versions": [
|
|
59
59
|
{
|
|
60
|
-
"version": "0.
|
|
61
|
-
"publishTimestamp":
|
|
60
|
+
"version": "0.5.0",
|
|
61
|
+
"publishTimestamp": 1793541552,
|
|
62
62
|
"source": {
|
|
63
63
|
"type": "git",
|
|
64
64
|
"url": "https://github.com/xuedipiaofei/dsh-session-title-stamp",
|
|
65
|
-
"commit": "
|
|
65
|
+
"commit": "ddc96d61ef60bd4c4a627adc0e067b917227e315"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
|
68
68
|
"dsh": ">=0.2.1-rc.3 <0.3.0"
|
package/package.json
CHANGED