@zeyue0329/xiaoma-cli 1.0.37 → 1.0.38

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 (89) hide show
  1. package/.idea/workspace.xml +27 -26
  2. package/JAVA-BACKEND-COMMANDS-REFERENCE.md +62 -52
  3. package/JAVA-BACKEND-ITERATION-GUIDE.md +125 -18
  4. package/README.md +1 -1
  5. package/common/utils/bmad-doc-template.md +5 -5
  6. package/dist/agents/analyst.txt +35 -5
  7. package/dist/agents/architect.txt +217 -31
  8. package/dist/agents/automation-orchestrator.txt +4 -4
  9. package/dist/agents/dev.txt +3 -3
  10. package/dist/agents/full-requirement-orchestrator.txt +11 -11
  11. package/dist/agents/qa.txt +102 -102
  12. package/dist/agents/sm.txt +6 -6
  13. package/dist/agents/ux-expert.txt +6 -1
  14. package/dist/agents/workflow-executor.txt +879 -0
  15. package/dist/agents/xiaoma-master.txt +258 -37
  16. package/dist/teams/team-all.txt +1223 -445
  17. package/dist/teams/team-fullstack-with-database.txt +384 -446
  18. package/dist/teams/team-fullstack.txt +258 -37
  19. package/dist/teams/team-ide-minimal.txt +111 -111
  20. package/dist/teams/team-no-ui.txt +252 -36
  21. package/docs/architecture-sharding-modification.md +623 -0
  22. package/docs/automated-requirements-analysis-outputs.md +896 -0
  23. package/package.json +1 -1
  24. package/tools/builders/web-builder.js +292 -142
  25. package/tools/bump-all-versions.js +50 -32
  26. package/tools/cli.js +52 -47
  27. package/tools/flattener/aggregate.js +30 -12
  28. package/tools/flattener/binary.js +46 -43
  29. package/tools/flattener/discovery.js +23 -15
  30. package/tools/flattener/files.js +6 -6
  31. package/tools/flattener/ignoreRules.js +122 -121
  32. package/tools/flattener/main.js +249 -144
  33. package/tools/flattener/projectRoot.js +74 -69
  34. package/tools/flattener/prompts.js +12 -10
  35. package/tools/flattener/stats.helpers.js +90 -61
  36. package/tools/flattener/stats.js +1 -1
  37. package/tools/flattener/test-matrix.js +225 -170
  38. package/tools/flattener/xml.js +31 -23
  39. package/tools/installer/bin/xiaoma.js +199 -153
  40. package/tools/installer/lib/config-loader.js +76 -47
  41. package/tools/installer/lib/file-manager.js +101 -44
  42. package/tools/installer/lib/ide-base-setup.js +49 -39
  43. package/tools/installer/lib/ide-setup.js +694 -380
  44. package/tools/installer/lib/installer.js +802 -469
  45. package/tools/installer/lib/memory-profiler.js +22 -12
  46. package/tools/installer/lib/module-manager.js +16 -14
  47. package/tools/installer/lib/resource-locator.js +61 -35
  48. package/tools/lib/dependency-resolver.js +34 -23
  49. package/tools/lib/yaml-utils.js +7 -2
  50. package/tools/preview-release-notes.js +33 -25
  51. package/tools/shared/bannerArt.js +3 -3
  52. package/tools/sync-installer-version.js +16 -7
  53. package/tools/upgraders/v3-to-v4-upgrader.js +244 -163
  54. package/tools/version-bump.js +24 -18
  55. package/tools/xiaoma-npx-wrapper.js +15 -10
  56. package/tools/yaml-format.js +60 -36
  57. package/xiaoma-core/agent-teams/team-fullstack-with-database.yaml +0 -1
  58. package/xiaoma-core/agents/automated-fix-validator.yaml +2 -1
  59. package/xiaoma-core/agents/automated-quality-validator.yaml +10 -5
  60. package/xiaoma-core/agents/automation-orchestrator.md +4 -4
  61. package/xiaoma-core/agents/dev.md +4 -4
  62. package/xiaoma-core/agents/enhanced-workflow-orchestrator.yaml +2 -1
  63. package/xiaoma-core/agents/full-requirement-orchestrator.md +11 -11
  64. package/xiaoma-core/agents/global-requirements-auditor.yaml +11 -3
  65. package/xiaoma-core/agents/intelligent-template-adapter.yaml +19 -5
  66. package/xiaoma-core/agents/master-execution-engine.yaml +19 -5
  67. package/xiaoma-core/agents/workflow-executor.md +8 -4
  68. package/xiaoma-core/agents/xiaoma-master.md +1 -1
  69. package/xiaoma-core/data/test-levels-framework.md +12 -12
  70. package/xiaoma-core/tasks/analyze-existing-database.md +1 -1
  71. package/xiaoma-core/tasks/apply-qa-fixes.md +3 -3
  72. package/xiaoma-core/tasks/batch-story-generation.md +22 -22
  73. package/xiaoma-core/tasks/create-enhanced-story-with-database.md +6 -6
  74. package/xiaoma-core/tasks/nfr-assess.md +6 -6
  75. package/xiaoma-core/tasks/project-integration-testing.md +42 -42
  76. package/xiaoma-core/tasks/qa-gate.md +23 -23
  77. package/xiaoma-core/tasks/review-story.md +18 -18
  78. package/xiaoma-core/tasks/risk-profile.md +25 -25
  79. package/xiaoma-core/tasks/serial-development-orchestration.md +51 -51
  80. package/xiaoma-core/tasks/test-design.md +9 -9
  81. package/xiaoma-core/tasks/trace-requirements.md +21 -21
  82. package/xiaoma-core/templates/competitor-analysis-tmpl.yaml +35 -5
  83. package/xiaoma-core/templates/front-end-architecture-tmpl.yaml +77 -11
  84. package/xiaoma-core/templates/front-end-spec-tmpl.yaml +6 -1
  85. package/xiaoma-core/templates/fullstack-architecture-tmpl.yaml +140 -20
  86. package/xiaoma-core/templates/global-qa-monitoring-tmpl.yaml +2 -1
  87. package/xiaoma-core/templates/requirements-coverage-audit.yaml +2 -1
  88. package/xiaoma-core/workflows/automated-requirements-analysis.yaml +4 -4
  89. package/dist/agents/database-architect.txt +0 -322
@@ -2877,11 +2877,29 @@ sections:
2877
2877
  rows:
2878
2878
  - category: "核心功能"
2879
2879
  items:
2880
- - ["功能A", "{{status}}", "{{status}}", "{{status}}", "{{status}}"]
2881
- - ["功能B", "{{status}}", "{{status}}", "{{status}}", "{{status}}"]
2880
+ - [
2881
+ "功能A",
2882
+ "{{status}}",
2883
+ "{{status}}",
2884
+ "{{status}}",
2885
+ "{{status}}",
2886
+ ]
2887
+ - [
2888
+ "功能B",
2889
+ "{{status}}",
2890
+ "{{status}}",
2891
+ "{{status}}",
2892
+ "{{status}}",
2893
+ ]
2882
2894
  - category: "用户体验"
2883
2895
  items:
2884
- - ["移动应用", "{{rating}}", "{{rating}}", "{{rating}}", "{{rating}}"]
2896
+ - [
2897
+ "移动应用",
2898
+ "{{rating}}",
2899
+ "{{rating}}",
2900
+ "{{rating}}",
2901
+ "{{rating}}",
2902
+ ]
2885
2903
  - ["上手时间", "{{time}}", "{{time}}", "{{time}}", "{{time}}"]
2886
2904
  - category: "集成与生态系统"
2887
2905
  items:
@@ -2892,11 +2910,23 @@ sections:
2892
2910
  "{{availability}}",
2893
2911
  "{{availability}}",
2894
2912
  ]
2895
- - ["第三方集成", "{{number}}", "{{number}}", "{{number}}", "{{number}}"]
2913
+ - [
2914
+ "第三方集成",
2915
+ "{{number}}",
2916
+ "{{number}}",
2917
+ "{{number}}",
2918
+ "{{number}}",
2919
+ ]
2896
2920
  - category: "定价与计划"
2897
2921
  items:
2898
2922
  - ["起步价", "{{price}}", "{{price}}", "{{price}}", "{{price}}"]
2899
- - ["免费套餐", "{{yes_no}}", "{{yes_no}}", "{{yes_no}}", "{{yes_no}}"]
2923
+ - [
2924
+ "免费套餐",
2925
+ "{{yes_no}}",
2926
+ "{{yes_no}}",
2927
+ "{{yes_no}}",
2928
+ "{{yes_no}}",
2929
+ ]
2900
2930
  - id: swot-comparison
2901
2931
  title: SWOT 对比
2902
2932
  instruction: 为你的解决方案与主要竞争对手创建 SWOT 分析
@@ -6490,17 +6520,83 @@ sections:
6490
6520
  columns: [类别, 技术, 版本, 用途, 选型理由]
6491
6521
  instruction: 根据所选框架和项目需求,填写适当的技术选型。
6492
6522
  rows:
6493
- - ["框架", "{{framework}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6494
- - ["UI 库", "{{ui_library}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6495
- - ["状态管理", "{{state_management}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6496
- - ["路由", "{{routing_library}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6497
- - ["构建工具", "{{build_tool}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6498
- - ["样式方案", "{{styling_solution}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6499
- - ["测试", "{{test_framework}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6500
- - ["组件库", "{{component_lib}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6501
- - ["表单处理", "{{form_library}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6502
- - ["动画", "{{animation_lib}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6503
- - ["开发工具", "{{dev_tools}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6523
+ - [
6524
+ "框架",
6525
+ "{{framework}}",
6526
+ "{{version}}",
6527
+ "{{purpose}}",
6528
+ "{{why_chosen}}",
6529
+ ]
6530
+ - [
6531
+ "UI ",
6532
+ "{{ui_library}}",
6533
+ "{{version}}",
6534
+ "{{purpose}}",
6535
+ "{{why_chosen}}",
6536
+ ]
6537
+ - [
6538
+ "状态管理",
6539
+ "{{state_management}}",
6540
+ "{{version}}",
6541
+ "{{purpose}}",
6542
+ "{{why_chosen}}",
6543
+ ]
6544
+ - [
6545
+ "路由",
6546
+ "{{routing_library}}",
6547
+ "{{version}}",
6548
+ "{{purpose}}",
6549
+ "{{why_chosen}}",
6550
+ ]
6551
+ - [
6552
+ "构建工具",
6553
+ "{{build_tool}}",
6554
+ "{{version}}",
6555
+ "{{purpose}}",
6556
+ "{{why_chosen}}",
6557
+ ]
6558
+ - [
6559
+ "样式方案",
6560
+ "{{styling_solution}}",
6561
+ "{{version}}",
6562
+ "{{purpose}}",
6563
+ "{{why_chosen}}",
6564
+ ]
6565
+ - [
6566
+ "测试",
6567
+ "{{test_framework}}",
6568
+ "{{version}}",
6569
+ "{{purpose}}",
6570
+ "{{why_chosen}}",
6571
+ ]
6572
+ - [
6573
+ "组件库",
6574
+ "{{component_lib}}",
6575
+ "{{version}}",
6576
+ "{{purpose}}",
6577
+ "{{why_chosen}}",
6578
+ ]
6579
+ - [
6580
+ "表单处理",
6581
+ "{{form_library}}",
6582
+ "{{version}}",
6583
+ "{{purpose}}",
6584
+ "{{why_chosen}}",
6585
+ ]
6586
+ - [
6587
+ "动画",
6588
+ "{{animation_lib}}",
6589
+ "{{version}}",
6590
+ "{{purpose}}",
6591
+ "{{why_chosen}}",
6592
+ ]
6593
+ - [
6594
+ "开发工具",
6595
+ "{{dev_tools}}",
6596
+ "{{version}}",
6597
+ "{{purpose}}",
6598
+ "{{why_chosen}}",
6599
+ ]
6504
6600
 
6505
6601
  - id: project-structure
6506
6602
  title: 项目结构
@@ -6781,27 +6877,147 @@ sections:
6781
6877
  type: table
6782
6878
  columns: [类别, 技术, 版本, 用途, 理由]
6783
6879
  rows:
6784
- - ["前端语言", "{{fe_language}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6785
- - ["前端框架", "{{fe_framework}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6786
- - ["UI 组件库", "{{ui_library}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6787
- - ["状态管理", "{{state_mgmt}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6788
- - ["后端语言", "{{be_language}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6789
- - ["后端框架", "{{be_framework}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6790
- - ["API 风格", "{{api_style}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6791
- - ["数据库", "{{database}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6792
- - ["缓存", "{{cache}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6793
- - ["文件存储", "{{storage}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6880
+ - [
6881
+ "前端语言",
6882
+ "{{fe_language}}",
6883
+ "{{version}}",
6884
+ "{{purpose}}",
6885
+ "{{why_chosen}}",
6886
+ ]
6887
+ - [
6888
+ "前端框架",
6889
+ "{{fe_framework}}",
6890
+ "{{version}}",
6891
+ "{{purpose}}",
6892
+ "{{why_chosen}}",
6893
+ ]
6894
+ - [
6895
+ "UI 组件库",
6896
+ "{{ui_library}}",
6897
+ "{{version}}",
6898
+ "{{purpose}}",
6899
+ "{{why_chosen}}",
6900
+ ]
6901
+ - [
6902
+ "状态管理",
6903
+ "{{state_mgmt}}",
6904
+ "{{version}}",
6905
+ "{{purpose}}",
6906
+ "{{why_chosen}}",
6907
+ ]
6908
+ - [
6909
+ "后端语言",
6910
+ "{{be_language}}",
6911
+ "{{version}}",
6912
+ "{{purpose}}",
6913
+ "{{why_chosen}}",
6914
+ ]
6915
+ - [
6916
+ "后端框架",
6917
+ "{{be_framework}}",
6918
+ "{{version}}",
6919
+ "{{purpose}}",
6920
+ "{{why_chosen}}",
6921
+ ]
6922
+ - [
6923
+ "API 风格",
6924
+ "{{api_style}}",
6925
+ "{{version}}",
6926
+ "{{purpose}}",
6927
+ "{{why_chosen}}",
6928
+ ]
6929
+ - [
6930
+ "数据库",
6931
+ "{{database}}",
6932
+ "{{version}}",
6933
+ "{{purpose}}",
6934
+ "{{why_chosen}}",
6935
+ ]
6936
+ - [
6937
+ "缓存",
6938
+ "{{cache}}",
6939
+ "{{version}}",
6940
+ "{{purpose}}",
6941
+ "{{why_chosen}}",
6942
+ ]
6943
+ - [
6944
+ "文件存储",
6945
+ "{{storage}}",
6946
+ "{{version}}",
6947
+ "{{purpose}}",
6948
+ "{{why_chosen}}",
6949
+ ]
6794
6950
  - ["认证", "{{auth}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6795
- - ["前端测试", "{{fe_test}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6796
- - ["后端测试", "{{be_test}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6797
- - ["E2E 测试", "{{e2e_test}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6798
- - ["构建工具", "{{build_tool}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6799
- - ["打包工具", "{{bundler}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6800
- - ["IaC 工具", "{{iac_tool}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6801
- - ["CI/CD", "{{cicd}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6802
- - ["监控", "{{monitoring}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6803
- - ["日志", "{{logging}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6804
- - ["CSS 框架", "{{css_framework}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
6951
+ - [
6952
+ "前端测试",
6953
+ "{{fe_test}}",
6954
+ "{{version}}",
6955
+ "{{purpose}}",
6956
+ "{{why_chosen}}",
6957
+ ]
6958
+ - [
6959
+ "后端测试",
6960
+ "{{be_test}}",
6961
+ "{{version}}",
6962
+ "{{purpose}}",
6963
+ "{{why_chosen}}",
6964
+ ]
6965
+ - [
6966
+ "E2E 测试",
6967
+ "{{e2e_test}}",
6968
+ "{{version}}",
6969
+ "{{purpose}}",
6970
+ "{{why_chosen}}",
6971
+ ]
6972
+ - [
6973
+ "构建工具",
6974
+ "{{build_tool}}",
6975
+ "{{version}}",
6976
+ "{{purpose}}",
6977
+ "{{why_chosen}}",
6978
+ ]
6979
+ - [
6980
+ "打包工具",
6981
+ "{{bundler}}",
6982
+ "{{version}}",
6983
+ "{{purpose}}",
6984
+ "{{why_chosen}}",
6985
+ ]
6986
+ - [
6987
+ "IaC 工具",
6988
+ "{{iac_tool}}",
6989
+ "{{version}}",
6990
+ "{{purpose}}",
6991
+ "{{why_chosen}}",
6992
+ ]
6993
+ - [
6994
+ "CI/CD",
6995
+ "{{cicd}}",
6996
+ "{{version}}",
6997
+ "{{purpose}}",
6998
+ "{{why_chosen}}",
6999
+ ]
7000
+ - [
7001
+ "监控",
7002
+ "{{monitoring}}",
7003
+ "{{version}}",
7004
+ "{{purpose}}",
7005
+ "{{why_chosen}}",
7006
+ ]
7007
+ - [
7008
+ "日志",
7009
+ "{{logging}}",
7010
+ "{{version}}",
7011
+ "{{purpose}}",
7012
+ "{{why_chosen}}",
7013
+ ]
7014
+ - [
7015
+ "CSS 框架",
7016
+ "{{css_framework}}",
7017
+ "{{version}}",
7018
+ "{{purpose}}",
7019
+ "{{why_chosen}}",
7020
+ ]
6805
7021
 
6806
7022
  - id: data-models
6807
7023
  title: 数据模型