@dsh-cc/command-release-notes 0.6.1 → 0.6.2
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.i18n.yaml +6 -0
- package/README.md +25 -0
- package/README.zh.md +25 -0
- package/package.json +2 -2
package/README.i18n.yaml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
|
|
2
|
+
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
|
+
# after editing either side, bring the other along and re-record with:
|
|
4
|
+
# pnpm check:readme --write
|
|
5
|
+
README.md: 31a648683e710e7b6a2bf0a0a82b6916de2db7d7
|
|
6
|
+
README.zh.md: c278877c26a6aad84ebc37b017f4181938046f07
|
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# @dsh-cc/command-release-notes
|
|
2
|
+
|
|
3
|
+
English | [中文](README.zh.md)
|
|
4
|
+
|
|
5
|
+
Human-facing `/release-notes` slash command: prints the bundled changelog offline and deterministically — the changelog ships as a TS string constant, so there is no filesystem or network access at call time.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
The plugin mounts one command (register it on the `commands` service):
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { apply, name } from '@dsh-cc/command-release-notes'
|
|
13
|
+
|
|
14
|
+
ctx.plugin({ name, inject: ['commands'], apply })
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
- `/release-notes` — print the full bundled release notes, newest section first.
|
|
18
|
+
- `/release-notes <lines>` — trim the output to the first `<lines>` lines (a positive integer; anything else renders the full text).
|
|
19
|
+
|
|
20
|
+
Like every command wrapped with `@dsh-cc/command-usage`'s `helpable`, `/release-notes help` returns deterministic plain-text help.
|
|
21
|
+
|
|
22
|
+
## Notes
|
|
23
|
+
|
|
24
|
+
- The changelog is seeded at author time from the repository's tracked history and README; update the bundled `CHANGELOG` constant when cutting a new version.
|
|
25
|
+
- For programmatic use, `./release-notes` exports `CHANGELOG` and `renderReleaseNotes(markdown?, maxLines?)`.
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# @dsh-cc/command-release-notes
|
|
2
|
+
|
|
3
|
+
[English](README.md) | 中文
|
|
4
|
+
|
|
5
|
+
面向用户的 `/release-notes` 斜杠命令:离线、确定性地打印内置更新日志——更新日志以 TS 字符串常量的形式随包分发,调用时不访问文件系统或网络。
|
|
6
|
+
|
|
7
|
+
## 用法
|
|
8
|
+
|
|
9
|
+
该插件挂载一个命令(注册到 `commands` 服务上):
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { apply, name } from '@dsh-cc/command-release-notes'
|
|
13
|
+
|
|
14
|
+
ctx.plugin({ name, inject: ['commands'], apply })
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
- `/release-notes` — 打印完整的内置发布说明,最新小节在前。
|
|
18
|
+
- `/release-notes <lines>` — 将输出截断为前 `<lines>` 行(正整数;其他输入渲染全文)。
|
|
19
|
+
|
|
20
|
+
与所有经 `@dsh-cc/command-usage` 的 `helpable` 包装的命令一样,`/release-notes help` 会返回确定性的纯文本帮助。
|
|
21
|
+
|
|
22
|
+
## 说明
|
|
23
|
+
|
|
24
|
+
- 更新日志在编写时从仓库的已跟踪历史和 README 生成;发布新版本时请更新内置的 `CHANGELOG` 常量。
|
|
25
|
+
- 如需编程式使用,`./release-notes` 导出 `CHANGELOG` 和 `renderReleaseNotes(markdown?, maxLines?)`。
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-cc/command-release-notes",
|
|
3
3
|
"description": "Human-facing slash command to print the bundled release notes changelog",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/dsh-cc/dsh-cc.git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@dsh-cc/command-usage": "^0.6.
|
|
28
|
+
"@dsh-cc/command-usage": "^0.6.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@deepseek-ai/dsh-commands": ">=0.1.2-rc.1",
|