pdd-skills 3.1.0 → 3.1.1

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.
package/package.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {"name": "pdd-skills",
2
- "version": "3.1.0",
2
+ "version": "3.1.1",
3
3
  "description": "PDD Skills - PRD驱动开发框架 | 41+技能: 核心(12)/专家(8)/熵减(4)/OpenSpec(10)/PR管理(7) | AI原生开发工作流 | Bug模式库(14) | PRD规则(30) | 4级门控引擎", "type": "module", "main": "index.js", "bin": {"pdd": "./bin/pdd.js", "pdd-skills": "./bin/pdd.js"}, "files": ["bin/", "lib/", "skills/", "templates/", "scaffolds/", "scripts/", "config/", "hooks/", "docs/", "index.js"], "scripts": {"start": "node bin/pdd.js", "list": "node bin/pdd.js list", "lint": "node bin/pdd.js linter --type code prd sql activiti", "generate": "node bin/pdd.js generate", "verify": "node bin/pdd.js verify", "report": "node bin/pdd.js report", "config": "node bin/pdd.js config --list", "api": "node bin/pdd.js api", "api:dev": "node bin/pdd.js api -p 3000 --cors", "init": "node bin/pdd.js init", "update": "node bin/pdd.js update", "cso": "node bin/pdd.js cso", "eval": "node bin/pdd.js eval", "token": "node bin/pdd.js token", "i18n": "node bin/pdd.js i18n"}, "keywords": ["pdd", "prd-driven-development", "ai", "claude", "skills", "tdd", "code-generation", "linter", "api-server", "cli"], "author": "PDD Team", "license": "MIT", "engines": {"node": ">=18.0.0"}, "dependencies": {"commander": "^12.0.0", "chalk": "^5.3.0", "fs-extra": "^11.2.0", "yaml": "^2.3.0"}}
@@ -52,6 +52,11 @@ function parseSimpleYaml(raw) {
52
52
  if (listItemMatch && currentSection === 'gate_levels') {
53
53
  currentItem = {};
54
54
  config.gate_levels.push(currentItem);
55
+ const inlineKv = listItemMatch[1].match(/^([a-z_]+):\s*(.+)$/);
56
+ if (inlineKv) {
57
+ let val = inlineKv[2].trim().replace(/^["']|["']$/g, '');
58
+ currentItem[inlineKv[1]] = isNaN(Number(val)) ? val : Number(val);
59
+ }
55
60
  continue;
56
61
  }
57
62