mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-09 04:13:17 +08:00
Merge main into feat/conversation-title
This commit is contained in:
commit
fd303b6c78
16 changed files with 156 additions and 125 deletions
|
|
@ -69,6 +69,7 @@ test('menu and card help advertise Agent Preset, reasoning, and batch commands',
|
|||
assert.match(help, /\/presetlist/);
|
||||
assert.match(help, /\/presets/);
|
||||
assert.match(help, /\/sessions/);
|
||||
assert.match(help, /\/workspace 工作区序号或绝对路径/);
|
||||
assert.match(help, /\/preset \[序号或完整ID\]/);
|
||||
assert.match(help, /\/preset id:<ID>/);
|
||||
assert.match(help, /\/preset --default/);
|
||||
|
|
@ -83,6 +84,7 @@ test('menu and card help advertise Agent Preset, reasoning, and batch commands',
|
|||
const card = helpCard();
|
||||
assert.match(card, /\/presets/);
|
||||
assert.match(card, /\/sessions/);
|
||||
assert.match(card, /\/workspace 工作区序号或绝对路径/);
|
||||
assert.match(card, /\/reasoninglist/);
|
||||
assert.match(card, /\/reasonings/);
|
||||
assert.match(card, /\/reasoning \[序号、等级ID或 --default\]/);
|
||||
|
|
@ -215,6 +217,10 @@ test('reachable Feishu cards contain no Chinese literals in English mode', () =>
|
|||
|
||||
setImHostLanguage('en');
|
||||
try {
|
||||
const englishMenuHelp = menuHelpText();
|
||||
const englishCardHelp = helpCard(['Additional help']);
|
||||
assert.match(englishMenuHelp, /\/workspace <workspace index or absolute path>/);
|
||||
assert.match(englishCardHelp, /\/workspace <workspace index or absolute path>/);
|
||||
rendered.push(
|
||||
menuCard({
|
||||
workspaces: ['/work'],
|
||||
|
|
@ -234,7 +240,7 @@ test('reachable Feishu cards contain no Chinese literals in English mode', () =>
|
|||
model: 'provider/model-two',
|
||||
sessionCount: 1,
|
||||
}),
|
||||
helpCard(['Additional help']),
|
||||
englishCardHelp,
|
||||
sessionListCard('/work', sessions, 0, 1),
|
||||
workspaceListCard(['/work'], '/work'),
|
||||
watchListCard(
|
||||
|
|
@ -245,7 +251,7 @@ test('reachable Feishu cards contain no Chinese literals in English mode', () =>
|
|||
steerCard({ hasSession: true }),
|
||||
customSteerCard(),
|
||||
cardActionProbeCard('0123456789abcdef0123456789abcdef'),
|
||||
menuHelpText(),
|
||||
englishMenuHelp,
|
||||
);
|
||||
} finally {
|
||||
setImHostLanguage('zh');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue