mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 16:25:51 +00:00
feat: 注册所有新命令到命令系统和工具注册表
- 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>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user