release: prepare dsh-im 0.7.2

This commit is contained in:
xmanrui 2026-08-18 16:49:31 +08:00
parent 66bdad6299
commit f0bb6db79f
6 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "@xmanrui/dsh-im",
"version": "0.7.1",
"version": "0.7.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@xmanrui/dsh-im",
"version": "0.7.1",
"version": "0.7.2",
"license": "MIT",
"dependencies": {
"@tencent-connect/qqbot-connector": "1.2.0",

View file

@ -1,6 +1,6 @@
{
"name": "@xmanrui/dsh-im",
"version": "0.7.1",
"version": "0.7.2",
"description": "通过扫码、App Manifest或机器人凭据把IM机器人接入DeepSeek Harness(支持飞书、微信、钉钉、企业微信、QQ、Slack、Telegram、Discord和WhatsApp)。",
"license": "MIT",
"type": "module",

View file

@ -108,7 +108,7 @@ export class DiscordApi {
headers: {
authorization: `Bot ${this.#token}`,
'content-type': 'application/json',
'user-agent': 'DeepSeek-Harness-dsh-im (https://github.com/xmanrui/dsh-im, 0.7.1)',
'user-agent': 'DeepSeek-Harness-dsh-im (https://github.com/xmanrui/dsh-im, 0.7.2)',
},
...(body === undefined ? {} : { body: JSON.stringify(body) }),
signal: requestSignal(signal, timeoutMs),

View file

@ -92,7 +92,7 @@ function authenticatedHeaders(token) {
function baseInfo() {
return {
channel_version: WEIXIN_PROTOCOL_VERSION,
bot_agent: 'DeepSeekHarness/0.7.1',
bot_agent: 'DeepSeekHarness/0.7.2',
};
}

View file

@ -93,7 +93,7 @@ test('sendText emits the iLink message envelope without reflecting the token in
assert.equal(body.msg.context_token, 'message-context');
assert.equal(body.msg.item_list[0].text_item.text, 'Harness reply');
assert.equal(body.base_info.channel_version, '2.4.6');
assert.equal(body.base_info.bot_agent, 'DeepSeekHarness/0.7.1');
assert.equal(body.base_info.bot_agent, 'DeepSeekHarness/0.7.2');
assert.doesNotMatch(calls[0].init.body, /host-only-token/);
});