release: prepare dsh-im 0.7.1

This commit is contained in:
xmanrui 2026-08-18 14:16:25 +08:00
parent cd8175d341
commit ce8b9e80e7
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", "name": "@xmanrui/dsh-im",
"version": "0.7.0", "version": "0.7.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@xmanrui/dsh-im", "name": "@xmanrui/dsh-im",
"version": "0.7.0", "version": "0.7.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@tencent-connect/qqbot-connector": "1.2.0", "@tencent-connect/qqbot-connector": "1.2.0",

View file

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

View file

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

View file

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

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.context_token, 'message-context');
assert.equal(body.msg.item_list[0].text_item.text, 'Harness reply'); 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.channel_version, '2.4.6');
assert.equal(body.base_info.bot_agent, 'DeepSeekHarness/0.7.0'); assert.equal(body.base_info.bot_agent, 'DeepSeekHarness/0.7.1');
assert.doesNotMatch(calls[0].init.body, /host-only-token/); assert.doesNotMatch(calls[0].init.body, /host-only-token/);
}); });