@dai_ming/plugin-deliverables 1.0.5 → 1.0.7

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 CHANGED
@@ -20,7 +20,7 @@ OpenClaw 交付物插件。安装后会把交付物 MCP、skill、AGENTS 规则
20
20
 
21
21
  ```yaml
22
22
  installPlugins:
23
- - "@dai_ming/plugin-deliverables@1.0.5"
23
+ - "@dai_ming/plugin-deliverables@1.0.7"
24
24
  ```
25
25
 
26
26
  现有 chart 会在 init 阶段完成安装。
@@ -31,16 +31,10 @@ installPlugins:
31
31
 
32
32
  ```bash
33
33
  npm config set registry https://registry.npmmirror.com
34
- npm install @dai_ming/plugin-deliverables@1.0.5
34
+ npm install @dai_ming/plugin-deliverables@1.0.7
35
35
  node node_modules/@dai_ming/plugin-deliverables/install.js
36
36
  ```
37
37
 
38
- 也可以直接用 bin:
39
-
40
- ```bash
41
- npx openclaw-deliverables-install
42
- ```
43
-
44
38
  如果 OpenClaw home 不在默认位置,可以显式传入:
45
39
 
46
40
  ```bash
@@ -12,25 +12,32 @@ Tool name note:
12
12
 
13
13
  ### Required output behavior
14
14
 
15
- 0. Your final assistant message MUST start with 1-2 short sentences in your own words, briefly describing what you produced for the user.
15
+ 0. Your final assistant message MUST start with a richer Markdown intro section, not a single short confirmation sentence.
16
16
  1. The intro must be based on the actual content/request, not a fixed boilerplate like `交付物已上传成功,可直接在线预览或下载。`
17
- 2. If tool result contains `reply_markdown`, append that field verbatim after your intro on the following lines. Do not rewrite the links inside it.
18
- 3. If tool result has `preview_url`, include one line:
17
+ 2. The intro SHOULD use Markdown structure, preferably:
18
+ - a short title or summary line
19
+ - a `### 内容概览` section
20
+ - 3-6 bullet points describing the actual sections, highlights, features, or focus of the deliverable
21
+ 3. The intro should be noticeably more informative than one sentence. For normal articles/reports/introductions, aim for roughly 80-200 Chinese characters total before the links.
22
+ 4. The bullet points must describe the real deliverable content. Do not use empty filler like "内容丰富" / "结构清晰" / "值得阅读" unless paired with concrete details.
23
+ 5. If tool result contains `reply_markdown`, append a `### 访问链接` heading and then append that field verbatim on the following lines. Do not rewrite the links inside it.
24
+ 6. If tool result has `preview_url`, include one line:
19
25
  `预览链接:[点击预览](<full_url>)`
20
- 4. If tool result has `download_url`, include one line:
26
+ 7. If tool result has `download_url`, include one line:
21
27
  `下载链接:[点击下载](<full_url>)`
22
- 5. For multi-file/game deliverables, if tool result already formats the second line as
28
+ 8. For multi-file/game deliverables, if tool result already formats the second line as
23
29
  `文件列表:[查看目录](<full_url>)`
24
30
  then keep that exact label and URL. Do not rewrite it back to a raw long link.
25
- 6. Keep URL target value exactly from tool result (no shortening, no masking, no redirect rewrite).
26
- 7. Use short link labels (`点击预览` / `点击下载` / `查看目录`) to avoid exposing long raw URLs.
27
- 8. Do not say "已上传/已完成" without links.
28
- 9. Do not output naked long URLs outside Markdown link syntax.
29
- 10. Keep the intro concise; do not paste the full file content, saved-path text, or a long summary after the Markdown links.
31
+ 9. Keep URL target value exactly from tool result (no shortening, no masking, no redirect rewrite).
32
+ 10. Use short link labels (`点击预览` / `点击下载` / `查看目录`) to avoid exposing long raw URLs.
33
+ 11. Do not say "已上传/已完成" without links.
34
+ 12. Do not output naked long URLs outside Markdown link syntax.
35
+ 13. Keep the intro concise but substantive; do not paste the full file content, saved-path text, or a huge essay after the Markdown links.
30
36
 
31
37
  ### Forbidden output behavior
32
38
 
33
39
  - "可点击预览链接查看" but no actual URL
40
+ - A single short sentence plus links when the deliverable is an article/report/introduction and concrete highlights are available
34
41
  - Replacing URL target with a non-original URL
35
42
  - Omitting both links when tool already returned links
36
43
  - Outputting only naked long URL without Markdown link label
@@ -59,17 +66,22 @@ Tool name note:
59
66
  6. For multi-file deliverables (game/site), you MUST prefer `type=game` with `files[]`, keep files as a folder structure, and do NOT zip before upload unless the user explicitly asks for a zip package.
60
67
  7. Static multi-file game/site deliverables SHOULD include a root `index.html` so the preview link can open the homepage directly.
61
68
  8. If a generated project requires starting a separate backend service, custom port, database, or long-running process to work, do NOT pretend the deliverables preview can run it. Tell the user that deliverables preview only supports static output, and that runtime projects need deployment/ingress instead.
62
- 9. After successful upload, the final assistant message MUST start with 1-2 short sentences in your own words, briefly describing what you generated for the user.
69
+ 9. After successful upload, the final assistant message MUST start with a richer Markdown intro section, not just one short sentence.
63
70
  10. The intro must be based on the actual deliverable content/request, not a fixed sentence like `交付物已上传成功,可直接在线预览或下载。`
64
- 11. If tool result contains `reply_markdown`, append that field verbatim after your intro on the following lines.
65
- 12. Otherwise final reply MUST include Markdown links (short label + full URL target):
71
+ 11. Prefer this Markdown structure:
72
+ - a short title or summary line
73
+ - `### 内容概览`
74
+ - 3-6 bullet points summarizing the actual content sections, highlights, or key features
75
+ 12. For ordinary articles/reports/introductions, the intro before the links should normally reach roughly 80-200 Chinese characters total.
76
+ 13. If tool result contains `reply_markdown`, add `### 访问链接` and append that field verbatim on the following lines.
77
+ 14. Otherwise final reply MUST include Markdown links (short label + full URL target):
66
78
  `预览链接:[点击预览](<full_url>)`
67
79
  `下载链接:[点击下载](<full_url>)`
68
- 13. For multi-file/game deliverables, if the tool gives directory-style output, the second line may be:
80
+ 15. For multi-file/game deliverables, if the tool gives directory-style output, the second line may be:
69
81
  `文件列表:[查看目录](<full_url>)`
70
82
  Keep that format instead of forcing a zip link.
71
- 14. Do NOT only say "已保存到工作空间".
72
- 15. Do NOT append workspace path or a raw URL block after the Markdown links.
83
+ 16. Do NOT only say "已保存到工作空间".
84
+ 17. Do NOT append workspace path or a raw URL block after the Markdown links.
73
85
 
74
86
  ### Exception
75
87
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plugin-deliverables",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "npm_package": "@dai_ming/plugin-deliverables",
5
5
  "description": "Deliverables plugin: MCP server + skill + AGENTS rules for AI-generated file uploads",
6
6
  "mcp_servers": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dai_ming/plugin-deliverables",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "OpenClaw deliverables plugin — upload AI-generated files to OSS and return shareable preview/download links",
5
5
  "keywords": [
6
6
  "openclaw",
@@ -8,9 +8,6 @@
8
8
  "deliverables",
9
9
  "mcp"
10
10
  ],
11
- "bin": {
12
- "openclaw-deliverables-install": "./install.js"
13
- },
14
11
  "license": "MIT",
15
12
  "files": [
16
13
  "install.js",
@@ -57,13 +57,19 @@ files: [
57
57
  ## 上传成功后
58
58
 
59
59
  优先规则:
60
- - 最终消息必须先用你自己的话写 1-2 句简短介绍,粗略说明你生成了什么内容、包含哪些重点。
61
- - 这句介绍必须基于实际产物内容,不要使用固定模板,例如:`交付物已上传成功,可直接在线预览或下载。`
62
- - 如果工具结果里有 `reply_markdown`,把它原样放在这句介绍后面,不要改写其中的链接。
60
+ - 最终消息必须先给出一段更完整的 Markdown 介绍,不要只写一句短确认。
61
+ - 建议结构是:
62
+ - 一行简短标题或总结
63
+ - `### 内容概览`
64
+ - 3-6 个 bullet,概括这份产物实际包含的章节、重点、亮点或功能
65
+ - 这段介绍必须基于实际产物内容,不要使用固定模板,例如:`交付物已上传成功,可直接在线预览或下载。`
66
+ - 对于常见文章、介绍、报告类交付物,链接前的介绍通常应达到约 80-200 个中文字符,明显长于一句话确认。
67
+ - bullet 必须写具体内容,例如“基本信息、代表作品、奖项与影响力”,不要只写“内容完整、结构清晰”这类空话。
68
+ - 如果工具结果里有 `reply_markdown`,先输出 `### 访问链接`,再把它原样放在后面,不要改写其中的链接。
63
69
 
64
70
  否则只发给用户:
65
71
  - 预览链接(`preview_url`,必须用 Markdown 链接格式)
66
72
  - 下载链接(`download_url`,必须用 Markdown 链接格式)
67
73
  - 多文件/游戏目录场景下,第二行也可以是 `文件列表:[查看目录](...)`,不要改成裸 URL 或 zip 描述。
68
74
 
69
- 不要在消息里输出文件的完整内容、工作区保存路径或裸链接。
75
+ 不要在消息里输出文件的完整内容、工作区保存路径或裸链接,也不要只输出“一句简介 + 两个链接”这种过短格式。