release: prepare dsh-im 1.1.0

This commit is contained in:
xmanrui 2026-08-23 20:10:02 +08:00
parent d472dd5a75
commit 908941f303
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": "1.0.2", "version": "1.1.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@xmanrui/dsh-im", "name": "@xmanrui/dsh-im",
"version": "1.0.2", "version": "1.1.0",
"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": "1.0.2", "version": "1.1.0",
"description": "把九种 IM 机器人和公网 AI Office 接入本机 DeepSeek Harness。 Connect nine IM channels and a public AI Office to a local DeepSeek Harness.", "description": "把九种 IM 机器人和公网 AI Office 接入本机 DeepSeek Harness。 Connect nine IM channels and a public AI Office to a local DeepSeek Harness.",
"keywords": [ "keywords": [
"deepseek-harness", "deepseek-harness",

View file

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

View file

@ -256,7 +256,7 @@ function authenticatedHeaders(token) {
function baseInfo() { function baseInfo() {
return { return {
channel_version: WEIXIN_PROTOCOL_VERSION, channel_version: WEIXIN_PROTOCOL_VERSION,
bot_agent: 'DeepSeekHarness/1.0.2', bot_agent: 'DeepSeekHarness/1.1.0',
}; };
} }

View file

@ -167,7 +167,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/1.0.2'); assert.equal(body.base_info.bot_agent, 'DeepSeekHarness/1.1.0');
assert.doesNotMatch(calls[0].init.body, /host-only-token/); assert.doesNotMatch(calls[0].init.body, /host-only-token/);
}); });