mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +00:00
- commands.ts: 注册所有新命令(memory-stores、vault、schedule 等), 移除 require() 动态加载,统一为 ESM import - tools.ts: 注册 LocalMemoryRecallTool、VaultHttpFetchTool - 补充命令测试(bridge-kick、commit、commit-push-pr、init-verifiers) - 补充工具测试(AgentTool、RemoteTrigger、SkillTool、WebFetch、WebSearch) - 集成测试:autonomy-lifecycle-user-flow 更新 - 探测脚本和功能文档 Co-Authored-By: glm-5-turbo <zai-org@claude-code-best.win>
20 lines
629 B
TypeScript
20 lines
629 B
TypeScript
import { describe, expect, mock, test } from 'bun:test'
|
|
|
|
mock.module('bun:bundle', () => ({
|
|
feature: (_name: string) => true,
|
|
}))
|
|
|
|
describe('resumeAgent', () => {
|
|
test('module exports resumeAgentBackground', async () => {
|
|
const mod = await import('../resumeAgent.js')
|
|
expect(typeof mod.resumeAgentBackground).toBe('function')
|
|
})
|
|
|
|
test('module exports ResumeAgentResult type (compile-time)', async () => {
|
|
// TypeScript-only: just ensure the module loads cleanly so the type
|
|
// surface is in the patch coverage trace.
|
|
const mod = await import('../resumeAgent.js')
|
|
expect(mod).toBeDefined()
|
|
})
|
|
})
|