@cnbcool/cnb-api-generate 2.18.20 → 2.19.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/client/shortcuts.ts +1 -1
- package/package.json +1 -1
- package/quick-commands.json +1 -0
- package/skills-template/SKILL.md +2 -0
package/client/shortcuts.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface ShortcutDefinition {
|
|
|
24
24
|
custom?: boolean;
|
|
25
25
|
/** 显示用的中文说明 */
|
|
26
26
|
description: string;
|
|
27
|
-
/** 自动注入的 data 参数(如 close/open
|
|
27
|
+
/** 自动注入的 data 参数(如 close/open 的状态值、create 的 work_mode) */
|
|
28
28
|
autoData?: Record<string, any>;
|
|
29
29
|
/** --data 的使用提示(展示用) */
|
|
30
30
|
dataTip?: string;
|
package/package.json
CHANGED
package/quick-commands.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"issues": [
|
|
3
|
+
{ "shortName": "create", "realTool": "create-issue", "description": "创建 issue", "autoData": { "work_mode": true }, "dataTip": "--title 标题" },
|
|
3
4
|
{ "shortName": "get", "realTool": "get-issue", "description": "获取详情" },
|
|
4
5
|
{ "shortName": "list-comments", "realTool": "list-issue-comments", "description": "获取评论列表" },
|
|
5
6
|
{ "shortName": "comment", "realTool": "post-issue-comment", "description": "评论", "dataTip": "--body 内容" },
|
package/skills-template/SKILL.md
CHANGED
|
@@ -13,6 +13,8 @@ description: CNB 平台交互命令,支持代码仓库、Issue、PR、CI、制
|
|
|
13
13
|
|
|
14
14
|
- **默认摘要省流**:默认精简输出,加 `--verbose` 输出完整数据。
|
|
15
15
|
- **多行用单引号**:bash 参数为多行文本时用单引号,降低命令注入风险。
|
|
16
|
+
- **创建 issue 默认带 `--work-mode`**:`cnb issues create` 已默认开启工作模式,不用再显式传。
|
|
17
|
+
用真实 tool 名 `cnb issues create-issue` 时则需自己加 `--work-mode`,否则创建出来的是普通 issue。
|
|
16
18
|
|
|
17
19
|
## issue/pr 访问说明
|
|
18
20
|
|