@chen_hu_hu/pi-qq 1.4.1 → 1.4.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/CHANGELOG.md +10 -1
- package/README-zh.md +3 -3
- package/README.md +2 -2
- package/package.json +1 -1
- package/src/infra/i18n.ts +3 -1
- package/src/relay/stream-block-format.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.4.2] - 2026-11-05
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Thinking bubbles now start with the `## 💭 <label>` heading, matching the `##` heading syntax used by tool and skill blocks.
|
|
15
|
+
- The English `en-us` thinking label is now `Thinking` instead of `思考`.
|
|
16
|
+
- Skill blocks are localized: `## 🧩 Skill` in `en-us` and `## 🧩 技能` in `zh-cn`.
|
|
17
|
+
|
|
10
18
|
## [1.4.1] - 2026-11-04
|
|
11
19
|
|
|
12
20
|
### Changed
|
|
@@ -103,7 +111,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
103
111
|
- Added thinking labels, per-tool icons, model-error recovery, and idle-safe session handling.
|
|
104
112
|
- Reorganized modules by bounded context and updated settings and delivery documentation.
|
|
105
113
|
|
|
106
|
-
[Unreleased]: https://github.com/CQ-Developer/pi-qq/compare/v1.4.
|
|
114
|
+
[Unreleased]: https://github.com/CQ-Developer/pi-qq/compare/v1.4.2...HEAD
|
|
115
|
+
[1.4.2]: https://github.com/CQ-Developer/pi-qq/compare/v1.4.1...v1.4.2
|
|
107
116
|
[1.4.1]: https://github.com/CQ-Developer/pi-qq/compare/v1.4.0...v1.4.1
|
|
108
117
|
[1.4.0]: https://github.com/CQ-Developer/pi-qq/compare/v1.3.6...v1.4.0
|
|
109
118
|
[1.3.6]: https://github.com/CQ-Developer/pi-qq/compare/v1.3.5...v1.3.6
|
package/README-zh.md
CHANGED
|
@@ -75,7 +75,7 @@ Summarize this file.
|
|
|
75
75
|
|
|
76
76
|
### 回复格式
|
|
77
77
|
|
|
78
|
-
- **思考**:独立气泡,纯文本,首行
|
|
78
|
+
- **思考**:独立气泡,纯文本,首行 `## 💭 思考`。长思考可能续到新气泡,并重复标题。
|
|
79
79
|
- **工具**:每次调用独立气泡,首行 `## <图标> <工具名>`;`bash` 命令使用 `bash` 代码块,其他参数使用行内代码;结果按工具/文件类型使用 `text`、`markdown`、`python`、`json` 等代码块。
|
|
80
80
|
- **普通消息**:原文,不加标题。
|
|
81
81
|
- **工具图标**:💻 bash、📖 read、📝 write、✏️ edit、🔎 grep、🔍 search、🗂️ find、📁 ls、📋 list、🌐 web、📡 fetch、🗑️ delete、❌ remove、✅ todo、🧪 test;未配置工具使用 🔧。
|
|
@@ -127,7 +127,7 @@ QQ 侧命令:
|
|
|
127
127
|
|
|
128
128
|
| 配置项 | 默认值 | 说明 |
|
|
129
129
|
| --------------- | ---------- | ------------------------------------------------------ |
|
|
130
|
-
| `thinkingRelay` | `true` | 以本地化的
|
|
130
|
+
| `thinkingRelay` | `true` | 以本地化的 `## 💭` 标题纯文本回传思考;`false` 时隐藏 |
|
|
131
131
|
| `deliverAs` | `"steer"` | 忙碌时新消息的排队方式:`steer` 或 `followUp` |
|
|
132
132
|
| `fileMaxSize` | `52428800` | QQ 附件下载上限(字节,50MB) |
|
|
133
133
|
| `language` | `"zh-cn"` | UI 和日志语言:`zh-cn` 或 `en-us` |
|
|
@@ -164,7 +164,7 @@ npm run format:check
|
|
|
164
164
|
- 图片会保存为文件,并通过 pi 的 `read` 工具查看;当前模型必须支持图片输入才能看到内容。
|
|
165
165
|
- 保存的附件位于工作区 `.pi/` 下;如有需要,请把 `.pi/` 加入你自己的项目 `.gitignore`。
|
|
166
166
|
- QQ 对每条入站消息的被动回复次数有限制。可用 `/qq-test-budget` 查看本地额度。
|
|
167
|
-
- 读取 `SKILL.md` 时,QQ 显示 `## 🧩
|
|
167
|
+
- 读取 `SKILL.md` 时,QQ 显示 `## 🧩 技能` 和 skill 名称,不转发文件内容。
|
|
168
168
|
|
|
169
169
|
## 许可证
|
|
170
170
|
|
package/README.md
CHANGED
|
@@ -75,7 +75,7 @@ Debug logs include the raw `asr_refer_text` and attachment metadata when `logLev
|
|
|
75
75
|
|
|
76
76
|
### Reply format
|
|
77
77
|
|
|
78
|
-
- **Thinking**: its own bubble, plain text, starting with
|
|
78
|
+
- **Thinking**: its own bubble, plain text, starting with `## 💭 思考`. Long thinking may continue in a new bubble with the header repeated.
|
|
79
79
|
- **Tools**: one bubble per call: `## <icon> <name>`; `bash` commands use a `bash` code block, other arguments use inline code, and results use `text`, `markdown`, `python`, `json`, etc. depending on the tool and file type.
|
|
80
80
|
- **Regular messages**: raw text with no header.
|
|
81
81
|
- **Tool icons**: 💻 bash, 📖 read, 📝 write, ✏️ edit, 🔎 grep, 🔍 search, 🗂️ find, 📁 ls, 📋 list, 🌐 web, 📡 fetch, 🗑️ delete, ❌ remove, ✅ todo, 🧪 test; unconfigured tools use 🔧.
|
|
@@ -127,7 +127,7 @@ Create `~/.pi/agent/pi-qq.json` to override defaults. It stores settings only; c
|
|
|
127
127
|
|
|
128
128
|
| Key | Default | Description |
|
|
129
129
|
| --------------- | ---------- | ------------------------------------------------------------ |
|
|
130
|
-
| `thinkingRelay` | `true` | Relay thinking as plain text with a localized
|
|
130
|
+
| `thinkingRelay` | `true` | Relay thinking as plain text with a localized `## 💭` header |
|
|
131
131
|
| `deliverAs` | `"steer"` | Queue new messages while busy: `steer` or `followUp` |
|
|
132
132
|
| `fileMaxSize` | `52428800` | QQ attachment download limit in bytes (50MB) |
|
|
133
133
|
| `language` | `"zh-cn"` | UI and log language: `zh-cn` or `en-us` |
|
package/package.json
CHANGED
package/src/infra/i18n.ts
CHANGED
|
@@ -138,7 +138,8 @@ const enUS = {
|
|
|
138
138
|
"diagnostics.budget.expired": "expired",
|
|
139
139
|
"diagnostics.budget.recorded": "Recorded: passive {passive} / stream {stream} / {tracked} msgId(s)",
|
|
140
140
|
|
|
141
|
-
"stream.thinking": "
|
|
141
|
+
"stream.thinking": "Thinking",
|
|
142
|
+
"stream.skill": "Skill",
|
|
142
143
|
"stream.noOutput": "(no output)",
|
|
143
144
|
"stream.unavailable": "Stream unavailable; falling back to text ({reason}).",
|
|
144
145
|
"outbound.passiveFailed": "Passive reply failed; falling back to proactive.",
|
|
@@ -353,6 +354,7 @@ const zhCN: Record<TranslationKey, string> = {
|
|
|
353
354
|
"diagnostics.budget.recorded": "已记录:被动 {passive} / 流式 {stream} / {tracked} 个 msgId",
|
|
354
355
|
|
|
355
356
|
"stream.thinking": "思考",
|
|
357
|
+
"stream.skill": "技能",
|
|
356
358
|
"stream.noOutput": "(无输出)",
|
|
357
359
|
"stream.unavailable": "流式不可用,回退为文本({reason})。",
|
|
358
360
|
"outbound.passiveFailed": "被动回复失败,改用主动消息。",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t } from "../infra/i18n";
|
|
2
2
|
|
|
3
3
|
export function thinkingHeader(): string {
|
|
4
|
-
return
|
|
4
|
+
return `## 💭 ${t("stream.thinking")}\n\n`;
|
|
5
5
|
}
|
|
6
6
|
const ARG_MAX_CHARS = 200;
|
|
7
7
|
const RESULT_MAX_CHARS = 600;
|
|
@@ -99,7 +99,7 @@ export function detectSkillRead(toolName: string, args: unknown): SkillRead | un
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
export function formatSkillBlock(name: string): string {
|
|
102
|
-
return `## 🧩
|
|
102
|
+
return `## 🧩 ${t("stream.skill")}\n\n${inlineCode(name)}\n`;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
export function formatToolLine(name: string, args: unknown): string {
|