refactor: Rename command-registry.js to command-registry.cjs and update references

This commit is contained in:
catlog22
2026-01-23 23:54:08 +08:00
parent e727a07fc5
commit 24a28f289d
4 changed files with 95 additions and 28 deletions

View File

@@ -5,8 +5,8 @@
## 命令注册表集成
```javascript
// 从 ./tools/command-registry.js 按需提取命令元数据
const CommandRegistry = require('./tools/command-registry.js');
// 从 ./tools/command-registry.cjs 按需提取命令元数据
const CommandRegistry = require('./tools/command-registry.cjs');
const registry = new CommandRegistry();
// 只提取当前任务链中的命令