tasks.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. {
  2. "version": "2.0.0",
  3. "tasks": [
  4. {
  5. "label": "AceFlow: 检查项目状态",
  6. "type": "shell",
  7. "command": "python3",
  8. "args": [".aceflow/scripts/aceflow", "status", "--format", "json"],
  9. "group": {
  10. "kind": "build",
  11. "isDefault": false
  12. },
  13. "presentation": {
  14. "echo": true,
  15. "reveal": "always",
  16. "focus": false,
  17. "panel": "shared"
  18. },
  19. "options": {
  20. "cwd": "${workspaceFolder}"
  21. },
  22. "problemMatcher": []
  23. },
  24. {
  25. "label": "AceFlow: 智能工作流推荐",
  26. "type": "shell",
  27. "command": "python3",
  28. "args": [".aceflow/scripts/aceflow", "suggest", "--task", "${input:taskDescription}", "--format", "json"],
  29. "group": {
  30. "kind": "build",
  31. "isDefault": false
  32. },
  33. "presentation": {
  34. "echo": true,
  35. "reveal": "always",
  36. "focus": false,
  37. "panel": "shared"
  38. },
  39. "options": {
  40. "cwd": "${workspaceFolder}"
  41. },
  42. "problemMatcher": []
  43. },
  44. {
  45. "label": "AceFlow: 开始阶段",
  46. "type": "shell",
  47. "command": "python3",
  48. "args": [".aceflow/scripts/aceflow", "start", "${input:stageName}", "--auto-docs"],
  49. "group": {
  50. "kind": "build",
  51. "isDefault": false
  52. },
  53. "presentation": {
  54. "echo": true,
  55. "reveal": "always",
  56. "focus": false,
  57. "panel": "shared"
  58. },
  59. "options": {
  60. "cwd": "${workspaceFolder}"
  61. },
  62. "problemMatcher": []
  63. },
  64. {
  65. "label": "AceFlow: 更新进度",
  66. "type": "shell",
  67. "command": "python3",
  68. "args": [".aceflow/scripts/aceflow", "progress", "--progress", "${input:progressPercentage}"],
  69. "group": {
  70. "kind": "build",
  71. "isDefault": false
  72. },
  73. "presentation": {
  74. "echo": true,
  75. "reveal": "always",
  76. "focus": false,
  77. "panel": "shared"
  78. },
  79. "options": {
  80. "cwd": "${workspaceFolder}"
  81. },
  82. "problemMatcher": []
  83. },
  84. {
  85. "label": "AceFlow: 完成阶段",
  86. "type": "shell",
  87. "command": "python3",
  88. "args": [".aceflow/scripts/aceflow", "complete", "${input:stageName}", "--generate"],
  89. "group": {
  90. "kind": "build",
  91. "isDefault": false
  92. },
  93. "presentation": {
  94. "echo": true,
  95. "reveal": "always",
  96. "focus": false,
  97. "panel": "shared"
  98. },
  99. "options": {
  100. "cwd": "${workspaceFolder}"
  101. },
  102. "problemMatcher": []
  103. },
  104. {
  105. "label": "AceFlow: 启动Web界面",
  106. "type": "shell",
  107. "command": "python3",
  108. "args": [".aceflow/scripts/aceflow", "web"],
  109. "group": {
  110. "kind": "build",
  111. "isDefault": false
  112. },
  113. "presentation": {
  114. "echo": true,
  115. "reveal": "always",
  116. "focus": false,
  117. "panel": "shared"
  118. },
  119. "options": {
  120. "cwd": "${workspaceFolder}"
  121. },
  122. "problemMatcher": []
  123. }
  124. ],
  125. "inputs": [
  126. {
  127. "id": "taskDescription",
  128. "description": "请描述你要完成的任务",
  129. "default": "修复bug",
  130. "type": "promptString"
  131. },
  132. {
  133. "id": "stageName",
  134. "description": "阶段名称(留空自动选择)",
  135. "default": "",
  136. "type": "promptString"
  137. },
  138. {
  139. "id": "progressPercentage",
  140. "description": "进度百分比(0-100)",
  141. "default": "50",
  142. "type": "promptString"
  143. }
  144. ]
  145. }