mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-19 09:13:18 +08:00
release: prepare dsh-im 0.14.0
This commit is contained in:
parent
605ea44c5f
commit
f12315e30d
4 changed files with 5 additions and 5 deletions
File diff suppressed because one or more lines are too long
|
|
@ -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.13.0)',
|
'user-agent': 'DeepSeek-Harness-dsh-im (https://github.com/xmanrui/dsh-im, 0.14.0)',
|
||||||
},
|
},
|
||||||
...(body === undefined ? {} : { body: JSON.stringify(body) }),
|
...(body === undefined ? {} : { body: JSON.stringify(body) }),
|
||||||
signal: requestSignal(signal, timeoutMs),
|
signal: requestSignal(signal, timeoutMs),
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,7 @@ function authenticatedHeaders(token) {
|
||||||
function baseInfo() {
|
function baseInfo() {
|
||||||
return {
|
return {
|
||||||
channel_version: WEIXIN_PROTOCOL_VERSION,
|
channel_version: WEIXIN_PROTOCOL_VERSION,
|
||||||
bot_agent: 'DeepSeekHarness/0.13.0',
|
bot_agent: 'DeepSeekHarness/0.14.0',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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/0.13.0');
|
assert.equal(body.base_info.bot_agent, 'DeepSeekHarness/0.14.0');
|
||||||
assert.doesNotMatch(calls[0].init.body, /host-only-token/);
|
assert.doesNotMatch(calls[0].init.body, /host-only-token/);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue