@devflow-tools/plugin-nest 0.8.10 → 0.8.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +28 -6
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @devflow-tools/plugin-nest
2
2
 
3
- NestJS expert plugin for DevFlow module architecture, guard debugging, microservice config, and Swagger generation.
3
+ NestJS 专家插件模块架构、守卫调试、微服务配置、Swagger 生成。
4
4
 
5
5
  ## Installation
6
6
 
@@ -8,12 +8,34 @@ NestJS expert plugin for DevFlow — module architecture, guard debugging, micro
8
8
  npm install @devflow-tools/plugin-nest
9
9
  ```
10
10
 
11
- ## Workflows
11
+ ## MCP Tools
12
12
 
13
- | Workflow | Description |
14
- |----------|-------------|
15
- | `nest:new-module` | Create NestJS module (Controller + Service + DTO + tests) |
16
- | `nest:diagnose-bug` | Diagnose NestJS bugs via dependency chain tracing |
13
+ | Tool | 说明 | 关键参数 |
14
+ |------|------|---------|
15
+ | `nest_diagnose_bug` | Bug 诊断:异常定位 依赖链追踪 修复 | `projectRoot`, `errorMessage`, `stackTrace` |
16
+ | `nest_new_module` | 新建 NestJS 模块(Controller + Service + Module + DTO + 测试) | `moduleName` |
17
+
18
+ ## Knowledge Sources
19
+
20
+ | 来源 | URL | SPA |
21
+ |------|-----|-----|
22
+ | NestJS 官方文档 | https://docs.nestjs.com | Yes |
23
+
24
+ ## Memory
25
+
26
+ 插件自动注入以下最佳实践:
27
+ - 模块化架构:每个功能域一个 Module
28
+ - Controller 薄层,业务逻辑在 Service
29
+ - DTO 使用 class-validator 装饰器
30
+ - 全局异常过滤器统一错误响应格式
31
+ - 使用 @nestjs/config 管理环境变量
32
+
33
+ ## Usage
34
+
35
+ ```bash
36
+ # 在 Claude Code 中使用
37
+ /devflow:nest 创建 users 模块
38
+ ```
17
39
 
18
40
  ## License
19
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devflow-tools/plugin-nest",
3
- "version": "0.8.10",
3
+ "version": "0.8.11",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -26,5 +26,5 @@
26
26
  "files": [
27
27
  "dist"
28
28
  ],
29
- "gitHead": "ac4f93d6a52fa40b4126b514e899eee581f8f46e"
29
+ "gitHead": "a0a0b61377aa88ebbd380f50a5d532f63175ef45"
30
30
  }