speccrew 0.7.11 → 0.7.12

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.
@@ -489,6 +489,8 @@
489
489
  <field name="module" value="${module}"/>
490
490
  <field name="sourcePath" value="${sourcePath}"/>
491
491
  <field name="documentPath" value="${documentPath}"/>
492
+ <field name="text">Each node MUST have: id (string, unique), type (string), label (string, human-readable name, REQUIRED), properties (object)</field>
493
+ <field name="text">Example node: {"id": "api-dept-list", "type": "api-endpoint", "label": "GET /system/dept/list - 获取部门列表", "properties": {"method": "GET", "path": "/system/dept/list"}}</field>
492
494
  <field name="output" var="apiNodes"/>
493
495
  </block>
494
496
 
@@ -497,12 +499,16 @@
497
499
  <field name="module" value="${module}"/>
498
500
  <field name="sourcePath" value="${sourcePath}"/>
499
501
  <field name="documentPath" value="${documentPath}"/>
502
+ <field name="text">Each node MUST have: id (string, unique), type (string), label (string, human-readable name, REQUIRED), properties (object)</field>
503
+ <field name="text">Example node: {"id": "svc-dept", "type": "service", "label": "DeptService - 部门服务", "properties": {"className": "DeptService", "methods": ["list", "get", "save", "delete"]}}</field>
500
504
  <field name="output" var="serviceNodes"/>
501
505
  </block>
502
506
 
503
507
  <block type="task" id="B32c" action="analyze" desc="Construct table nodes">
504
508
  <field name="tables" value="${databaseTables}"/>
505
509
  <field name="module" value="${module}"/>
510
+ <field name="text">Each node MUST have: id (string, unique), type (string), label (string, human-readable name, REQUIRED), properties (object)</field>
511
+ <field name="text">Example node: {"id": "tbl-sys-dept", "type": "database-table", "label": "sys_dept - 部门表", "properties": {"tableName": "sys_dept", "schema": "public"}}</field>
506
512
  <field name="output" var="tableNodes"/>
507
513
  </block>
508
514
 
@@ -395,6 +395,8 @@
395
395
  <field name="sourcePath" value="${sourcePath}"/>
396
396
  <field name="documentPath" value="${documentPath}"/>
397
397
  <field name="platform" value="${platform_type}-${platform_subtype}"/>
398
+ <field name="text">Each node MUST have: id (string, unique), type (string), label (string, human-readable name, REQUIRED), properties (object)</field>
399
+ <field name="text">Example node: {"id": "page-system-user", "type": "page", "label": "用户管理页面 - User Management", "properties": {"route": "/system/user", "platform": "web-vue"}}</field>
398
400
  <field name="output" var="pageNode"/>
399
401
  </block>
400
402
 
@@ -402,6 +404,8 @@
402
404
  <field name="components" value="${analysisResult.components}"/>
403
405
  <field name="module" value="${module}"/>
404
406
  <field name="documentPath" value="${documentPath}"/>
407
+ <field name="text">Each node MUST have: id (string, unique), type (string), label (string, human-readable name, REQUIRED), properties (object)</field>
408
+ <field name="text">Example node: {"id": "comp-user-table", "type": "component", "label": "UserTable - 用户列表组件", "properties": {"componentName": "UserTable", "props": ["data", "loading"]}}</field>
405
409
  <field name="output" var="componentNodes"/>
406
410
  </block>
407
411
 
@@ -409,6 +413,8 @@
409
413
  <field name="routes" value="${analysisResult.routes}"/>
410
414
  <field name="module" value="${module}"/>
411
415
  <field name="sourcePath" value="${sourcePath}"/>
416
+ <field name="text">Each node MUST have: id (string, unique), type (string), label (string, human-readable name, REQUIRED), properties (object)</field>
417
+ <field name="text">Example node: {"id": "route-user-edit", "type": "route", "label": "/system/user/edit - 用户编辑路由", "properties": {"path": "/system/user/edit", "name": "UserEdit"}}</field>
412
418
  <field name="output" var="routeNodes"/>
413
419
  </block>
414
420
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speccrew",
3
- "version": "0.7.11",
3
+ "version": "0.7.12",
4
4
  "description": "Spec-Driven Development toolkit for AI-powered IDEs",
5
5
  "author": "charlesmu99",
6
6
  "repository": {