fix: [Feature] 为工作区命令增加 /ws、/wsl 和 /workspaces 别名 (#88)

This commit is contained in:
yusuke8h 2026-09-01 17:03:48 +09:00
parent 959e5b9ad2
commit 65c1c55f1a
14 changed files with 35 additions and 13 deletions

View file

@ -4068,7 +4068,7 @@ test('compact card action contains session lookup failures', async () => {
});
test('Feishu list and status command failures share one safe classified format', async () => {
for (const command of ['/sessionlist', '/workspacelist', '/status']) {
for (const command of ['/sessionlist', '/workspacelist', '/workspaces', '/wsl', '/status']) {
const fixture = stateFixture();
const sent = [];
const status = bridgeStatus();
@ -4085,7 +4085,7 @@ test('Feishu list and status command failures share one safe classified format',
ensureRunning: async () => true,
};
if (command === '/sessionlist') harness.listWorkspaceSessions = async () => { throw providerFailure(); };
if (command === '/workspacelist') harness.listWorkspaces = async () => { throw providerFailure(); };
if (['/workspacelist', '/workspaces', '/wsl'].includes(command)) harness.listWorkspaces = async () => { throw providerFailure(); };
if (command === '/status') harness.ensureRunning = async () => { throw providerFailure(); };
const bridge = new FeishuHarnessBridge({
client: textClient(async ({ text }) => sent.push(text)),