@dv.nghiem/flowdeck 0.1.0

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 (331) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +136 -0
  3. package/bin/flowdeck.js +108 -0
  4. package/dist/agents/architect.d.ts +3 -0
  5. package/dist/agents/architect.d.ts.map +1 -0
  6. package/dist/agents/code-explorer.d.ts +3 -0
  7. package/dist/agents/code-explorer.d.ts.map +1 -0
  8. package/dist/agents/coder.d.ts +3 -0
  9. package/dist/agents/coder.d.ts.map +1 -0
  10. package/dist/agents/debug.d.ts +4 -0
  11. package/dist/agents/debug.d.ts.map +1 -0
  12. package/dist/agents/doc-updater.d.ts +3 -0
  13. package/dist/agents/doc-updater.d.ts.map +1 -0
  14. package/dist/agents/flowdeck.d.ts +5 -0
  15. package/dist/agents/flowdeck.d.ts.map +1 -0
  16. package/dist/agents/index.d.ts +38 -0
  17. package/dist/agents/index.d.ts.map +1 -0
  18. package/dist/agents/mapper.d.ts +3 -0
  19. package/dist/agents/mapper.d.ts.map +1 -0
  20. package/dist/agents/orchestrator.d.ts +10 -0
  21. package/dist/agents/orchestrator.d.ts.map +1 -0
  22. package/dist/agents/performance.d.ts +4 -0
  23. package/dist/agents/performance.d.ts.map +1 -0
  24. package/dist/agents/planner.d.ts +3 -0
  25. package/dist/agents/planner.d.ts.map +1 -0
  26. package/dist/agents/policy-enforcer.d.ts +3 -0
  27. package/dist/agents/policy-enforcer.d.ts.map +1 -0
  28. package/dist/agents/researcher.d.ts +3 -0
  29. package/dist/agents/researcher.d.ts.map +1 -0
  30. package/dist/agents/reviewer.d.ts +3 -0
  31. package/dist/agents/reviewer.d.ts.map +1 -0
  32. package/dist/agents/risk-analyst.d.ts +3 -0
  33. package/dist/agents/risk-analyst.d.ts.map +1 -0
  34. package/dist/agents/security-auditor.d.ts +3 -0
  35. package/dist/agents/security-auditor.d.ts.map +1 -0
  36. package/dist/agents/specialist.d.ts +5 -0
  37. package/dist/agents/specialist.d.ts.map +1 -0
  38. package/dist/agents/tester.d.ts +3 -0
  39. package/dist/agents/tester.d.ts.map +1 -0
  40. package/dist/agents/types.d.ts +20 -0
  41. package/dist/agents/types.d.ts.map +1 -0
  42. package/dist/agents/writer.d.ts +3 -0
  43. package/dist/agents/writer.d.ts.map +1 -0
  44. package/dist/commands/analysis/analysis.test.d.ts +2 -0
  45. package/dist/commands/analysis/analysis.test.d.ts.map +1 -0
  46. package/dist/commands/analysis/analyze-change.d.ts +148 -0
  47. package/dist/commands/analysis/analyze-change.d.ts.map +1 -0
  48. package/dist/commands/analysis/evaluate-risk.d.ts +77 -0
  49. package/dist/commands/analysis/evaluate-risk.d.ts.map +1 -0
  50. package/dist/commands/analysis/guarded-edit.d.ts +72 -0
  51. package/dist/commands/analysis/guarded-edit.d.ts.map +1 -0
  52. package/dist/commands/execution/deploy-check.d.ts +91 -0
  53. package/dist/commands/execution/deploy-check.d.ts.map +1 -0
  54. package/dist/commands/execution/fix-bug.d.ts +187 -0
  55. package/dist/commands/execution/fix-bug.d.ts.map +1 -0
  56. package/dist/commands/execution/new-feature.d.ts +171 -0
  57. package/dist/commands/execution/new-feature.d.ts.map +1 -0
  58. package/dist/commands/execution/review-code.d.ts +130 -0
  59. package/dist/commands/execution/review-code.d.ts.map +1 -0
  60. package/dist/commands/execution/write-docs.d.ts +94 -0
  61. package/dist/commands/execution/write-docs.d.ts.map +1 -0
  62. package/dist/commands/governance/approve.d.ts +80 -0
  63. package/dist/commands/governance/approve.d.ts.map +1 -0
  64. package/dist/commands/intelligence/blast-radius.d.ts +67 -0
  65. package/dist/commands/intelligence/blast-radius.d.ts.map +1 -0
  66. package/dist/commands/intelligence/impact-radar.d.ts +71 -0
  67. package/dist/commands/intelligence/impact-radar.d.ts.map +1 -0
  68. package/dist/commands/intelligence/intelligence.test.d.ts +2 -0
  69. package/dist/commands/intelligence/intelligence.test.d.ts.map +1 -0
  70. package/dist/commands/intelligence/regression-predict.d.ts +75 -0
  71. package/dist/commands/intelligence/regression-predict.d.ts.map +1 -0
  72. package/dist/commands/intelligence/review-route.d.ts +65 -0
  73. package/dist/commands/intelligence/review-route.d.ts.map +1 -0
  74. package/dist/commands/intelligence/test-gap.d.ts +73 -0
  75. package/dist/commands/intelligence/test-gap.d.ts.map +1 -0
  76. package/dist/commands/intelligence/translate-intent.d.ts +87 -0
  77. package/dist/commands/intelligence/translate-intent.d.ts.map +1 -0
  78. package/dist/commands/intelligence/volatility-map-cmd.d.ts +68 -0
  79. package/dist/commands/intelligence/volatility-map-cmd.d.ts.map +1 -0
  80. package/dist/commands/planning/ask.d.ts +62 -0
  81. package/dist/commands/planning/ask.d.ts.map +1 -0
  82. package/dist/commands/planning/ask.test.d.ts +2 -0
  83. package/dist/commands/planning/ask.test.d.ts.map +1 -0
  84. package/dist/commands/planning/dashboard.d.ts +30 -0
  85. package/dist/commands/planning/dashboard.d.ts.map +1 -0
  86. package/dist/commands/planning/discuss.d.ts +39 -0
  87. package/dist/commands/planning/discuss.d.ts.map +1 -0
  88. package/dist/commands/planning/plan.d.ts +67 -0
  89. package/dist/commands/planning/plan.d.ts.map +1 -0
  90. package/dist/commands/planning/roadmap.d.ts +105 -0
  91. package/dist/commands/planning/roadmap.d.ts.map +1 -0
  92. package/dist/commands/setup/doctor.d.ts +10 -0
  93. package/dist/commands/setup/doctor.d.ts.map +1 -0
  94. package/dist/commands/setup/map-codebase.d.ts +62 -0
  95. package/dist/commands/setup/map-codebase.d.ts.map +1 -0
  96. package/dist/commands/setup/new-project.d.ts +19 -0
  97. package/dist/commands/setup/new-project.d.ts.map +1 -0
  98. package/dist/commands/setup/settings.d.ts +57 -0
  99. package/dist/commands/setup/settings.d.ts.map +1 -0
  100. package/dist/commands/state/checkpoint.d.ts +27 -0
  101. package/dist/commands/state/checkpoint.d.ts.map +1 -0
  102. package/dist/commands/state/multi-repo.d.ts +63 -0
  103. package/dist/commands/state/multi-repo.d.ts.map +1 -0
  104. package/dist/commands/state/progress.d.ts +57 -0
  105. package/dist/commands/state/progress.d.ts.map +1 -0
  106. package/dist/commands/state/resume.d.ts +11 -0
  107. package/dist/commands/state/resume.d.ts.map +1 -0
  108. package/dist/commands/state/workspace-commands.d.ts +207 -0
  109. package/dist/commands/state/workspace-commands.d.ts.map +1 -0
  110. package/dist/dashboard/lib/port-finder.d.ts +10 -0
  111. package/dist/dashboard/lib/port-finder.d.ts.map +1 -0
  112. package/dist/dashboard/lib/port-finder.test.d.ts +2 -0
  113. package/dist/dashboard/lib/port-finder.test.d.ts.map +1 -0
  114. package/dist/dashboard/lib/state-reader.d.ts +3 -0
  115. package/dist/dashboard/lib/state-reader.d.ts.map +1 -0
  116. package/dist/dashboard/server.d.ts +2 -0
  117. package/dist/dashboard/server.d.ts.map +1 -0
  118. package/dist/dashboard/server.mjs +13649 -0
  119. package/dist/dashboard/types.d.ts +72 -0
  120. package/dist/dashboard/types.d.ts.map +1 -0
  121. package/dist/dashboard/views/index.ejs +391 -0
  122. package/dist/dashboard/views/partials/blockers.ejs +10 -0
  123. package/dist/dashboard/views/partials/header.ejs +20 -0
  124. package/dist/dashboard/views/partials/phase-timeline.ejs +40 -0
  125. package/dist/dashboard/views/partials/progress.ejs +12 -0
  126. package/dist/hooks/approval-hook.d.ts +13 -0
  127. package/dist/hooks/approval-hook.d.ts.map +1 -0
  128. package/dist/hooks/compaction-hook.d.ts +23 -0
  129. package/dist/hooks/compaction-hook.d.ts.map +1 -0
  130. package/dist/hooks/context-window-monitor.d.ts +21 -0
  131. package/dist/hooks/context-window-monitor.d.ts.map +1 -0
  132. package/dist/hooks/decision-trace-hook.d.ts +13 -0
  133. package/dist/hooks/decision-trace-hook.d.ts.map +1 -0
  134. package/dist/hooks/file-tracker.d.ts +29 -0
  135. package/dist/hooks/file-tracker.d.ts.map +1 -0
  136. package/dist/hooks/guard-rails.d.ts +33 -0
  137. package/dist/hooks/guard-rails.d.ts.map +1 -0
  138. package/dist/hooks/index.d.ts +5 -0
  139. package/dist/hooks/index.d.ts.map +1 -0
  140. package/dist/hooks/notifications.d.ts +21 -0
  141. package/dist/hooks/notifications.d.ts.map +1 -0
  142. package/dist/hooks/patch-trust.d.ts +27 -0
  143. package/dist/hooks/patch-trust.d.ts.map +1 -0
  144. package/dist/hooks/patch-trust.test.d.ts +2 -0
  145. package/dist/hooks/patch-trust.test.d.ts.map +1 -0
  146. package/dist/hooks/session-events.d.ts +8 -0
  147. package/dist/hooks/session-events.d.ts.map +1 -0
  148. package/dist/hooks/session-idle-hook.d.ts +21 -0
  149. package/dist/hooks/session-idle-hook.d.ts.map +1 -0
  150. package/dist/hooks/session-start.d.ts +10 -0
  151. package/dist/hooks/session-start.d.ts.map +1 -0
  152. package/dist/hooks/shell-env-hook.d.ts +21 -0
  153. package/dist/hooks/shell-env-hook.d.ts.map +1 -0
  154. package/dist/hooks/telemetry-hook.d.ts +25 -0
  155. package/dist/hooks/telemetry-hook.d.ts.map +1 -0
  156. package/dist/hooks/todo-hook.d.ts +25 -0
  157. package/dist/hooks/todo-hook.d.ts.map +1 -0
  158. package/dist/hooks/tool-guard.d.ts +41 -0
  159. package/dist/hooks/tool-guard.d.ts.map +1 -0
  160. package/dist/hooks/tool-guard.test.d.ts +2 -0
  161. package/dist/hooks/tool-guard.test.d.ts.map +1 -0
  162. package/dist/index.d.ts +4 -0
  163. package/dist/index.d.ts.map +1 -0
  164. package/dist/index.js +6639 -0
  165. package/dist/lib/confirmation.d.ts +20 -0
  166. package/dist/lib/confirmation.d.ts.map +1 -0
  167. package/dist/lib/impact-radar.d.ts +35 -0
  168. package/dist/lib/impact-radar.d.ts.map +1 -0
  169. package/dist/lib/signatures.d.ts +12 -0
  170. package/dist/lib/signatures.d.ts.map +1 -0
  171. package/dist/lib/timestamps.d.ts +23 -0
  172. package/dist/lib/timestamps.d.ts.map +1 -0
  173. package/dist/mcp/index.d.ts +20 -0
  174. package/dist/mcp/index.d.ts.map +1 -0
  175. package/dist/services/agent-performance.d.ts +29 -0
  176. package/dist/services/agent-performance.d.ts.map +1 -0
  177. package/dist/services/approval-manager.d.ts +30 -0
  178. package/dist/services/approval-manager.d.ts.map +1 -0
  179. package/dist/services/index.d.ts +7 -0
  180. package/dist/services/index.d.ts.map +1 -0
  181. package/dist/services/model-router.d.ts +35 -0
  182. package/dist/services/model-router.d.ts.map +1 -0
  183. package/dist/services/policy-compiler.d.ts +27 -0
  184. package/dist/services/policy-compiler.d.ts.map +1 -0
  185. package/dist/services/run-trace.d.ts +34 -0
  186. package/dist/services/run-trace.d.ts.map +1 -0
  187. package/dist/services/services.test.d.ts +2 -0
  188. package/dist/services/services.test.d.ts.map +1 -0
  189. package/dist/services/telemetry.d.ts +34 -0
  190. package/dist/services/telemetry.d.ts.map +1 -0
  191. package/dist/tools/agent-dispatch.test.d.ts +2 -0
  192. package/dist/tools/agent-dispatch.test.d.ts.map +1 -0
  193. package/dist/tools/codebase-state.d.ts +4 -0
  194. package/dist/tools/codebase-state.d.ts.map +1 -0
  195. package/dist/tools/context-generator.d.ts +3 -0
  196. package/dist/tools/context-generator.d.ts.map +1 -0
  197. package/dist/tools/council.d.ts +4 -0
  198. package/dist/tools/council.d.ts.map +1 -0
  199. package/dist/tools/decision-trace.d.ts +16 -0
  200. package/dist/tools/decision-trace.d.ts.map +1 -0
  201. package/dist/tools/delegate.d.ts +4 -0
  202. package/dist/tools/delegate.d.ts.map +1 -0
  203. package/dist/tools/failure-replay.d.ts +19 -0
  204. package/dist/tools/failure-replay.d.ts.map +1 -0
  205. package/dist/tools/failure-replay.test.d.ts +2 -0
  206. package/dist/tools/failure-replay.test.d.ts.map +1 -0
  207. package/dist/tools/hash-edit.d.ts +3 -0
  208. package/dist/tools/hash-edit.d.ts.map +1 -0
  209. package/dist/tools/planning-state-lib.d.ts +65 -0
  210. package/dist/tools/planning-state-lib.d.ts.map +1 -0
  211. package/dist/tools/planning-state.d.ts +3 -0
  212. package/dist/tools/planning-state.d.ts.map +1 -0
  213. package/dist/tools/policy-engine.d.ts +19 -0
  214. package/dist/tools/policy-engine.d.ts.map +1 -0
  215. package/dist/tools/repo-memory.d.ts +20 -0
  216. package/dist/tools/repo-memory.d.ts.map +1 -0
  217. package/dist/tools/repo-memory.test.d.ts +2 -0
  218. package/dist/tools/repo-memory.test.d.ts.map +1 -0
  219. package/dist/tools/run-parallel.d.ts +4 -0
  220. package/dist/tools/run-parallel.d.ts.map +1 -0
  221. package/dist/tools/run-pipeline.d.ts +4 -0
  222. package/dist/tools/run-pipeline.d.ts.map +1 -0
  223. package/dist/tools/volatility-map.d.ts +18 -0
  224. package/dist/tools/volatility-map.d.ts.map +1 -0
  225. package/dist/tools/volatility-map.test.d.ts +2 -0
  226. package/dist/tools/volatility-map.test.d.ts.map +1 -0
  227. package/dist/tools/workspace-state.d.ts +3 -0
  228. package/dist/tools/workspace-state.d.ts.map +1 -0
  229. package/docs/USER_GUIDE.md +20 -0
  230. package/docs/agents.md +562 -0
  231. package/docs/best-practices.md +47 -0
  232. package/docs/command-migration.md +175 -0
  233. package/docs/commands/fd-analyze-change.md +107 -0
  234. package/docs/commands/fd-ask.md +51 -0
  235. package/docs/commands/fd-checkpoint.md +10 -0
  236. package/docs/commands/fd-dashboard.md +11 -0
  237. package/docs/commands/fd-deploy-check.md +11 -0
  238. package/docs/commands/fd-discuss.md +28 -0
  239. package/docs/commands/fd-evaluate-risk.md +134 -0
  240. package/docs/commands/fd-fix-bug.md +24 -0
  241. package/docs/commands/fd-guarded-edit.md +105 -0
  242. package/docs/commands/fd-map-codebase.md +27 -0
  243. package/docs/commands/fd-multi-repo.md +63 -0
  244. package/docs/commands/fd-new-feature.md +25 -0
  245. package/docs/commands/fd-new-project.md +24 -0
  246. package/docs/commands/fd-plan.md +33 -0
  247. package/docs/commands/fd-progress.md +11 -0
  248. package/docs/commands/fd-resume.md +10 -0
  249. package/docs/commands/fd-review-code.md +29 -0
  250. package/docs/commands/fd-roadmap.md +10 -0
  251. package/docs/commands/fd-settings.md +10 -0
  252. package/docs/commands/fd-write-docs.md +10 -0
  253. package/docs/commands.md +476 -0
  254. package/docs/configuration.md +211 -0
  255. package/docs/feature-integration-architecture.md +255 -0
  256. package/docs/index.md +75 -0
  257. package/docs/installation.md +134 -0
  258. package/docs/intelligence.md +294 -0
  259. package/docs/multi-repo.md +201 -0
  260. package/docs/notifications.md +170 -0
  261. package/docs/parallel-execution.md +227 -0
  262. package/docs/quick-start.md +174 -0
  263. package/docs/rules.md +459 -0
  264. package/docs/skills.md +408 -0
  265. package/docs/workflows.md +376 -0
  266. package/package.json +58 -0
  267. package/postinstall.mjs +102 -0
  268. package/src/rules/README.md +37 -0
  269. package/src/rules/common/agent-orchestration.md +86 -0
  270. package/src/rules/common/coding-style.md +120 -0
  271. package/src/rules/common/git-workflow.md +77 -0
  272. package/src/rules/common/security.md +94 -0
  273. package/src/rules/common/testing.md +105 -0
  274. package/src/rules/golang/patterns.md +187 -0
  275. package/src/rules/java/patterns.md +204 -0
  276. package/src/rules/python/patterns.md +141 -0
  277. package/src/rules/rust/patterns.md +210 -0
  278. package/src/rules/typescript/patterns.md +168 -0
  279. package/src/skills/api-design/SKILL.md +143 -0
  280. package/src/skills/arch-constraint-guard/SKILL.md +61 -0
  281. package/src/skills/blast-radius-preview/SKILL.md +65 -0
  282. package/src/skills/change-impact-radar/SKILL.md +63 -0
  283. package/src/skills/code-review/SKILL.md +108 -0
  284. package/src/skills/code-tour/SKILL.md +101 -0
  285. package/src/skills/codebase-mapping/SKILL.md +87 -0
  286. package/src/skills/codebase-onboarding/SKILL.md +133 -0
  287. package/src/skills/confidence-aware-planning/SKILL.md +67 -0
  288. package/src/skills/context-load/SKILL.md +63 -0
  289. package/src/skills/debug-flow/SKILL.md +75 -0
  290. package/src/skills/decision-trace/SKILL.md +72 -0
  291. package/src/skills/dependency-audit/SKILL.md +126 -0
  292. package/src/skills/deploy-check/SKILL.md +87 -0
  293. package/src/skills/documentation-writer/SKILL.md +154 -0
  294. package/src/skills/failure-replay-engine/SKILL.md +59 -0
  295. package/src/skills/git-release/SKILL.md +94 -0
  296. package/src/skills/git-workflow/SKILL.md +177 -0
  297. package/src/skills/golang-patterns/SKILL.md +511 -0
  298. package/src/skills/human-review-routing/SKILL.md +65 -0
  299. package/src/skills/intent-translator/SKILL.md +57 -0
  300. package/src/skills/java-patterns/SKILL.md +479 -0
  301. package/src/skills/multi-repo/SKILL.md +187 -0
  302. package/src/skills/parallel-execute/SKILL.md +92 -0
  303. package/src/skills/patch-trust-score/SKILL.md +44 -0
  304. package/src/skills/performance-profiling/SKILL.md +153 -0
  305. package/src/skills/plan-task/SKILL.md +101 -0
  306. package/src/skills/python-patterns/SKILL.md +529 -0
  307. package/src/skills/refactor-guide/SKILL.md +117 -0
  308. package/src/skills/regression-prediction/SKILL.md +57 -0
  309. package/src/skills/repo-memory-graph/SKILL.md +49 -0
  310. package/src/skills/rust-patterns/SKILL.md +492 -0
  311. package/src/skills/security-scan/SKILL.md +91 -0
  312. package/src/skills/self-healing-policies/SKILL.md +76 -0
  313. package/src/skills/tdd-workflow/SKILL.md +126 -0
  314. package/src/skills/test-coverage/SKILL.md +94 -0
  315. package/src/skills/test-gap-detector/SKILL.md +58 -0
  316. package/src/skills/volatility-map/SKILL.md +52 -0
  317. package/src/workflows/debug-flow.md +119 -0
  318. package/src/workflows/deploy-check-flow.md +98 -0
  319. package/src/workflows/discuss-flow.md +97 -0
  320. package/src/workflows/execute-flow.md +233 -0
  321. package/src/workflows/execute-phase.md +142 -0
  322. package/src/workflows/fix-bug-flow.md +210 -0
  323. package/src/workflows/map-codebase-flow.md +92 -0
  324. package/src/workflows/multi-repo-flow.md +226 -0
  325. package/src/workflows/parallel-execution-flow.md +236 -0
  326. package/src/workflows/plan-flow.md +126 -0
  327. package/src/workflows/plan-phase.md +101 -0
  328. package/src/workflows/refactor-flow.md +122 -0
  329. package/src/workflows/review-code-flow.md +105 -0
  330. package/src/workflows/spec-driven-flow.md +43 -0
  331. package/src/workflows/write-docs-flow.md +95 -0
@@ -0,0 +1,148 @@
1
+ /**
2
+ * /fd-analyze-change — umbrella analysis command
3
+ *
4
+ * Combines: impact radar, blast radius, regression prediction,
5
+ * test gap detection, volatility map, and reviewer routing into a
6
+ * single consolidated pre-change report.
7
+ *
8
+ * Replaces individual: /fd-impact-radar, /fd-blast-radius,
9
+ * /fd-regression-predict, /fd-test-gap, /fd-volatility-map, /fd-review-route
10
+ */
11
+ export interface AnalyzeChangeArgs {
12
+ change?: string;
13
+ scope?: string;
14
+ files?: string;
15
+ depth?: string;
16
+ impact?: boolean;
17
+ "blast-radius"?: boolean;
18
+ regression?: boolean;
19
+ "test-gap"?: boolean;
20
+ volatility?: boolean;
21
+ "review-route"?: boolean;
22
+ all?: boolean;
23
+ json?: boolean;
24
+ }
25
+ export declare const analyzeChangeCommand: {
26
+ name: string;
27
+ description: string;
28
+ execute(context: any, args?: AnalyzeChangeArgs): Promise<{
29
+ error: string;
30
+ code: string;
31
+ success?: undefined;
32
+ data?: undefined;
33
+ meta?: undefined;
34
+ message?: undefined;
35
+ modules_run?: undefined;
36
+ affected_zones?: undefined;
37
+ recommended_reviewers?: undefined;
38
+ risk_summary?: undefined;
39
+ risk_score?: undefined;
40
+ config?: undefined;
41
+ phase?: undefined;
42
+ } | {
43
+ success: boolean;
44
+ data: {
45
+ modules_run: string[];
46
+ affected_zones: string[];
47
+ regression_categories: string[];
48
+ test_gap_types: string[];
49
+ recommended_reviewers: string[];
50
+ risk_summary: string;
51
+ risk_score: number;
52
+ config: {
53
+ change_description: string;
54
+ scope: string;
55
+ files: string[];
56
+ modules_run: string[];
57
+ agents: (false | {
58
+ name: string;
59
+ role: string;
60
+ })[];
61
+ data: {
62
+ hotspots: string[];
63
+ known_failures: string[];
64
+ related_modules: string[];
65
+ volatile_zones: {
66
+ path: string;
67
+ stability: string;
68
+ }[];
69
+ fragile_patterns: number;
70
+ repo_memory_nodes: number;
71
+ regression_categories: string[];
72
+ past_regression_signals: string[];
73
+ test_gap_types: string[];
74
+ recommended_reviewers: string[];
75
+ trust_score: number | null;
76
+ trust_verdict: string;
77
+ prior_failures: string[];
78
+ };
79
+ risk_score: number;
80
+ risk_summary: string;
81
+ traversal_depth: number;
82
+ };
83
+ phase: number;
84
+ };
85
+ meta: {
86
+ formatted: string;
87
+ timestamp: string;
88
+ };
89
+ error?: undefined;
90
+ code?: undefined;
91
+ message?: undefined;
92
+ modules_run?: undefined;
93
+ affected_zones?: undefined;
94
+ recommended_reviewers?: undefined;
95
+ risk_summary?: undefined;
96
+ risk_score?: undefined;
97
+ config?: undefined;
98
+ phase?: undefined;
99
+ } | {
100
+ success: boolean;
101
+ message: string;
102
+ modules_run: string[];
103
+ affected_zones: string[];
104
+ recommended_reviewers: string[];
105
+ risk_summary: string;
106
+ risk_score: number;
107
+ config: {
108
+ change_description: string;
109
+ scope: string;
110
+ files: string[];
111
+ modules_run: string[];
112
+ agents: (false | {
113
+ name: string;
114
+ role: string;
115
+ })[];
116
+ data: {
117
+ hotspots: string[];
118
+ known_failures: string[];
119
+ related_modules: string[];
120
+ volatile_zones: {
121
+ path: string;
122
+ stability: string;
123
+ }[];
124
+ fragile_patterns: number;
125
+ repo_memory_nodes: number;
126
+ regression_categories: string[];
127
+ past_regression_signals: string[];
128
+ test_gap_types: string[];
129
+ recommended_reviewers: string[];
130
+ trust_score: number | null;
131
+ trust_verdict: string;
132
+ prior_failures: string[];
133
+ };
134
+ risk_score: number;
135
+ risk_summary: string;
136
+ traversal_depth: number;
137
+ };
138
+ phase: number;
139
+ meta: {
140
+ formatted: string;
141
+ timestamp: string;
142
+ };
143
+ error?: undefined;
144
+ code?: undefined;
145
+ data?: undefined;
146
+ }>;
147
+ };
148
+ //# sourceMappingURL=analyze-change.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analyze-change.d.ts","sourceRoot":"","sources":["../../../src/commands/analysis/analyze-change.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAmCH,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,eAAO,MAAM,oBAAoB;;;qBAGR,GAAG,SAAS,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAoFjB,MAAM;mCAAa,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAAzB,MAAM;+BAAa,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CAwI7D,CAAA"}
@@ -0,0 +1,77 @@
1
+ /**
2
+ * /fd-evaluate-risk — standalone risk assessment command
3
+ *
4
+ * Estimates change risk, confidence, likely regressions, whether
5
+ * approval is needed, and suggests safer alternatives when risk is high.
6
+ *
7
+ * Works without a --file if --change is provided (keyword-based analysis).
8
+ */
9
+ type RiskLevel = "low" | "medium" | "high" | "critical";
10
+ export declare const evaluateRiskCommand: {
11
+ name: string;
12
+ description: string;
13
+ execute(context: any, args?: {
14
+ change?: string;
15
+ file?: string;
16
+ volatility?: boolean;
17
+ confidence?: boolean;
18
+ "risk-score"?: boolean;
19
+ json?: boolean;
20
+ }): Promise<{
21
+ error: string;
22
+ code: string;
23
+ success?: undefined;
24
+ data?: undefined;
25
+ meta?: undefined;
26
+ } | {
27
+ success: boolean;
28
+ data: {
29
+ agents: ({
30
+ name: string;
31
+ role: string;
32
+ } | null)[];
33
+ phase: number;
34
+ risk_score: number;
35
+ risk_level: RiskLevel;
36
+ confidence: number;
37
+ approval_needed: boolean;
38
+ likely_regressions: string[];
39
+ volatile_zones: number;
40
+ volatile_matches: string[];
41
+ safer_alternative: string | null;
42
+ trust_signals: string[];
43
+ };
44
+ meta: {
45
+ formatted: string;
46
+ timestamp: string;
47
+ };
48
+ error?: undefined;
49
+ code?: undefined;
50
+ } | {
51
+ agents: ({
52
+ name: string;
53
+ role: string;
54
+ } | null)[];
55
+ phase: number;
56
+ meta: {
57
+ formatted: string;
58
+ timestamp: string;
59
+ };
60
+ risk_score: number;
61
+ risk_level: RiskLevel;
62
+ confidence: number;
63
+ approval_needed: boolean;
64
+ likely_regressions: string[];
65
+ volatile_zones: number;
66
+ volatile_matches: string[];
67
+ safer_alternative: string | null;
68
+ trust_signals: string[];
69
+ success: boolean;
70
+ message: string;
71
+ error?: undefined;
72
+ code?: undefined;
73
+ data?: undefined;
74
+ }>;
75
+ };
76
+ export {};
77
+ //# sourceMappingURL=evaluate-risk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evaluate-risk.d.ts","sourceRoot":"","sources":["../../../src/commands/analysis/evaluate-risk.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAiCH,KAAK,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAA;AAuDvD,eAAO,MAAM,mBAAmB;;;qBAGP,GAAG,SAAS;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAC;QAAC,YAAY,CAAC,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2I1J,CAAA"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * /fd-guarded-edit — edit gate command
3
+ *
4
+ * Runs before a risky edit to determine whether to:
5
+ * auto-approve → safe to apply without confirmation
6
+ * require-confirmation → apply with inline warning and human ACK
7
+ * require-review → route to a human reviewer before applying
8
+ * block → do not apply; violation of arch constraint or critical policy
9
+ *
10
+ * Combines: policy engine, patch trust score, volatility, arch constraints,
11
+ * failure history, and safe execution mode resolution.
12
+ */
13
+ export type GateDecision = "auto-approve" | "require-confirmation" | "require-review" | "block";
14
+ export interface GuardedEditResult {
15
+ decision: GateDecision;
16
+ reason: string;
17
+ risk_score: number;
18
+ execution_mode: "auto" | "guarded" | "review-only";
19
+ policy_violations: string[];
20
+ volatile_files: string[];
21
+ prior_failures: string[];
22
+ arch_constraint: boolean;
23
+ recommended_action: string;
24
+ }
25
+ export declare const guardedEditCommand: {
26
+ name: string;
27
+ description: string;
28
+ execute(context: any, args?: {
29
+ file?: string;
30
+ change?: string;
31
+ "dry-run"?: boolean;
32
+ json?: boolean;
33
+ }): Promise<{
34
+ error: string;
35
+ code: string;
36
+ hint: string;
37
+ success?: undefined;
38
+ data?: undefined;
39
+ meta?: undefined;
40
+ } | {
41
+ success: boolean;
42
+ data: GuardedEditResult;
43
+ meta: {
44
+ formatted: string;
45
+ timestamp: string;
46
+ };
47
+ error?: undefined;
48
+ code?: undefined;
49
+ hint?: undefined;
50
+ } | {
51
+ meta: {
52
+ formatted: string;
53
+ timestamp: string;
54
+ };
55
+ decision: GateDecision;
56
+ reason: string;
57
+ risk_score: number;
58
+ execution_mode: "auto" | "guarded" | "review-only";
59
+ policy_violations: string[];
60
+ volatile_files: string[];
61
+ prior_failures: string[];
62
+ arch_constraint: boolean;
63
+ recommended_action: string;
64
+ success: boolean;
65
+ message: string;
66
+ error?: undefined;
67
+ code?: undefined;
68
+ hint?: undefined;
69
+ data?: undefined;
70
+ }>;
71
+ };
72
+ //# sourceMappingURL=guarded-edit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guarded-edit.d.ts","sourceRoot":"","sources":["../../../src/commands/analysis/guarded-edit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AASH,MAAM,MAAM,YAAY,GAAG,cAAc,GAAG,sBAAsB,GAAG,gBAAgB,GAAG,OAAO,CAAA;AAE/F,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,YAAY,CAAA;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,CAAA;IAClD,iBAAiB,EAAE,MAAM,EAAE,CAAA;IAC3B,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,eAAe,EAAE,OAAO,CAAA;IACxB,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAqFD,eAAO,MAAM,kBAAkB;;;qBAGN,GAAG,SAAS;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;kBAjGhG,YAAY;gBACd,MAAM;oBACF,MAAM;wBACF,MAAM,GAAG,SAAS,GAAG,aAAa;2BAC/B,MAAM,EAAE;wBACX,MAAM,EAAE;wBACR,MAAM,EAAE;yBACP,OAAO;4BACJ,MAAM;;;;;;;;CAyM3B,CAAA"}
@@ -0,0 +1,91 @@
1
+ import type { CommandContext } from "../../types/command-context";
2
+ export declare const deployCheckCommand: {
3
+ name: string;
4
+ description: string;
5
+ execute(context: CommandContext, args?: {
6
+ json?: boolean;
7
+ }): Promise<{
8
+ error: string;
9
+ code: string;
10
+ success?: undefined;
11
+ data?: undefined;
12
+ meta?: undefined;
13
+ message?: undefined;
14
+ workflow?: undefined;
15
+ config?: undefined;
16
+ phase?: undefined;
17
+ } | {
18
+ success: boolean;
19
+ data: {
20
+ workflow: string;
21
+ config: {
22
+ agents: {
23
+ name: string;
24
+ budget: number;
25
+ action: string;
26
+ }[];
27
+ parallel: boolean;
28
+ aggregation: {
29
+ go_signals: string[];
30
+ no_go_signals: string[];
31
+ };
32
+ decision: {
33
+ go: string;
34
+ no_go: string;
35
+ };
36
+ tdd_aware_checks: {
37
+ new_feature_changes_have_tests: string;
38
+ bugfix_has_regression_coverage: string;
39
+ no_suspicious_test_omissions: string;
40
+ overrides_logged: string;
41
+ };
42
+ };
43
+ phase: number;
44
+ };
45
+ meta: {
46
+ formatted: string;
47
+ timestamp: string;
48
+ };
49
+ error?: undefined;
50
+ code?: undefined;
51
+ message?: undefined;
52
+ workflow?: undefined;
53
+ config?: undefined;
54
+ phase?: undefined;
55
+ } | {
56
+ success: boolean;
57
+ message: string;
58
+ workflow: string;
59
+ config: {
60
+ agents: {
61
+ name: string;
62
+ budget: number;
63
+ action: string;
64
+ }[];
65
+ parallel: boolean;
66
+ aggregation: {
67
+ go_signals: string[];
68
+ no_go_signals: string[];
69
+ };
70
+ decision: {
71
+ go: string;
72
+ no_go: string;
73
+ };
74
+ tdd_aware_checks: {
75
+ new_feature_changes_have_tests: string;
76
+ bugfix_has_regression_coverage: string;
77
+ no_suspicious_test_omissions: string;
78
+ overrides_logged: string;
79
+ };
80
+ };
81
+ phase: number;
82
+ meta: {
83
+ formatted: string;
84
+ timestamp: string;
85
+ };
86
+ error?: undefined;
87
+ code?: undefined;
88
+ data?: undefined;
89
+ }>;
90
+ };
91
+ //# sourceMappingURL=deploy-check.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy-check.d.ts","sourceRoot":"","sources":["../../../src/commands/execution/deploy-check.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAIjE,eAAO,MAAM,kBAAkB;;;qBAGN,cAAc,SAAS;QAAE,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4EjE,CAAA"}
@@ -0,0 +1,187 @@
1
+ import type { CommandContext } from "../../types/command-context";
2
+ export declare const fixBugCommand: {
3
+ name: string;
4
+ description: string;
5
+ execute(context: CommandContext, args?: {
6
+ scope?: string;
7
+ bug?: string;
8
+ json?: boolean;
9
+ }): Promise<{
10
+ error: string;
11
+ code: string;
12
+ hint?: undefined;
13
+ success?: undefined;
14
+ data?: undefined;
15
+ meta?: undefined;
16
+ message?: undefined;
17
+ workflow?: undefined;
18
+ config?: undefined;
19
+ phase?: undefined;
20
+ impact_radar?: undefined;
21
+ prior_failures?: undefined;
22
+ } | {
23
+ error: string;
24
+ code: string;
25
+ hint: string;
26
+ success?: undefined;
27
+ data?: undefined;
28
+ meta?: undefined;
29
+ message?: undefined;
30
+ workflow?: undefined;
31
+ config?: undefined;
32
+ phase?: undefined;
33
+ impact_radar?: undefined;
34
+ prior_failures?: undefined;
35
+ } | {
36
+ success: boolean;
37
+ data: {
38
+ workflow: string;
39
+ config: {
40
+ phases: ({
41
+ step: number;
42
+ name: string;
43
+ agent: string;
44
+ action: string;
45
+ mode?: undefined;
46
+ require_regression_pass?: undefined;
47
+ tool?: undefined;
48
+ tool_action?: undefined;
49
+ } | {
50
+ step: number;
51
+ name: string;
52
+ agent: string;
53
+ action: string;
54
+ mode: string;
55
+ require_regression_pass?: undefined;
56
+ tool?: undefined;
57
+ tool_action?: undefined;
58
+ } | {
59
+ step: number;
60
+ name: string;
61
+ agent: string;
62
+ action: string;
63
+ require_regression_pass: boolean;
64
+ mode?: undefined;
65
+ tool?: undefined;
66
+ tool_action?: undefined;
67
+ } | {
68
+ step: number;
69
+ name: string;
70
+ agent: string;
71
+ action: string;
72
+ tool: string;
73
+ tool_action: string;
74
+ mode?: undefined;
75
+ require_regression_pass?: undefined;
76
+ })[];
77
+ run_id: string;
78
+ scope: string;
79
+ architecture_context: string | null;
80
+ impact_radar: import("../../lib/impact-radar").ImpactRadarResult;
81
+ prior_failures: {
82
+ id: string;
83
+ type: "reverted_commit" | "failed_deployment" | "flaky_test" | "bug_fix" | "build_failure";
84
+ description: string;
85
+ affected_paths: string[];
86
+ root_cause: string | null;
87
+ fix_applied: string | null;
88
+ recurrence_count: number;
89
+ }[];
90
+ policy_violations: import("../../services").PolicyViolation[];
91
+ proposed_policies: (import("../../services").ProposedPolicy | null)[];
92
+ };
93
+ phase: number;
94
+ };
95
+ meta: {
96
+ formatted: string;
97
+ timestamp: string;
98
+ };
99
+ error?: undefined;
100
+ code?: undefined;
101
+ hint?: undefined;
102
+ message?: undefined;
103
+ workflow?: undefined;
104
+ config?: undefined;
105
+ phase?: undefined;
106
+ impact_radar?: undefined;
107
+ prior_failures?: undefined;
108
+ } | {
109
+ success: boolean;
110
+ message: string;
111
+ workflow: string;
112
+ config: {
113
+ phases: ({
114
+ step: number;
115
+ name: string;
116
+ agent: string;
117
+ action: string;
118
+ mode?: undefined;
119
+ require_regression_pass?: undefined;
120
+ tool?: undefined;
121
+ tool_action?: undefined;
122
+ } | {
123
+ step: number;
124
+ name: string;
125
+ agent: string;
126
+ action: string;
127
+ mode: string;
128
+ require_regression_pass?: undefined;
129
+ tool?: undefined;
130
+ tool_action?: undefined;
131
+ } | {
132
+ step: number;
133
+ name: string;
134
+ agent: string;
135
+ action: string;
136
+ require_regression_pass: boolean;
137
+ mode?: undefined;
138
+ tool?: undefined;
139
+ tool_action?: undefined;
140
+ } | {
141
+ step: number;
142
+ name: string;
143
+ agent: string;
144
+ action: string;
145
+ tool: string;
146
+ tool_action: string;
147
+ mode?: undefined;
148
+ require_regression_pass?: undefined;
149
+ })[];
150
+ run_id: string;
151
+ scope: string;
152
+ architecture_context: string | null;
153
+ impact_radar: import("../../lib/impact-radar").ImpactRadarResult;
154
+ prior_failures: {
155
+ id: string;
156
+ type: "reverted_commit" | "failed_deployment" | "flaky_test" | "bug_fix" | "build_failure";
157
+ description: string;
158
+ affected_paths: string[];
159
+ root_cause: string | null;
160
+ fix_applied: string | null;
161
+ recurrence_count: number;
162
+ }[];
163
+ policy_violations: import("../../services").PolicyViolation[];
164
+ proposed_policies: (import("../../services").ProposedPolicy | null)[];
165
+ };
166
+ phase: number;
167
+ impact_radar: import("../../lib/impact-radar").ImpactRadarResult;
168
+ prior_failures: {
169
+ id: string;
170
+ type: "reverted_commit" | "failed_deployment" | "flaky_test" | "bug_fix" | "build_failure";
171
+ description: string;
172
+ affected_paths: string[];
173
+ root_cause: string | null;
174
+ fix_applied: string | null;
175
+ recurrence_count: number;
176
+ }[];
177
+ meta: {
178
+ formatted: string;
179
+ timestamp: string;
180
+ };
181
+ error?: undefined;
182
+ code?: undefined;
183
+ hint?: undefined;
184
+ data?: undefined;
185
+ }>;
186
+ };
187
+ //# sourceMappingURL=fix-bug.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fix-bug.d.ts","sourceRoot":"","sources":["../../../src/commands/execution/fix-bug.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAEjE,eAAO,MAAM,aAAa;;;qBAGD,cAAc,SAAS;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqK/F,CAAA"}