chore: 项目基线(基于 WeKnora 定制版,整理文件忽略规则)

This commit is contained in:
runny committed 2026-11-13 17:54:56 +08:00
commit 9097ee699d
5769 files changed
+1446466

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import assert from 'node:assert/strict'
import test from 'node:test'
import { showLiveShellOutput } from './shellProgress.ts'
test('async shell progress stays visible after the tool call has returned', () => {
assert.equal(showLiveShellOutput({
tool_name: 'shell_exec_async',
pending: false,
command_output: { done: false },
}), true)
assert.equal(showLiveShellOutput({
tool_name: 'shell_exec',
pending: false,
command_output: { done: false },
}), false, '同步命令只在工具还在跑时显示进度')
assert.equal(showLiveShellOutput({
tool_name: 'shell_exec_async',
pending: false,
command_output: { done: true },
}), false)
})