chati-dev 2.0.5 → 2.0.6

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 (118) hide show
  1. package/README.md +48 -36
  2. package/framework/agents/{clarity → planning}/architect.md +1 -1
  3. package/framework/agents/{clarity → planning}/brief.md +1 -1
  4. package/framework/agents/{clarity → planning}/brownfield-wu.md +1 -1
  5. package/framework/agents/{clarity → planning}/detail.md +1 -1
  6. package/framework/agents/{clarity → planning}/greenfield-wu.md +1 -1
  7. package/framework/agents/{clarity → planning}/phases.md +1 -1
  8. package/framework/agents/{clarity → planning}/tasks.md +1 -1
  9. package/framework/agents/{clarity → planning}/ux.md +1 -1
  10. package/framework/agents/quality/qa-planning.md +5 -5
  11. package/framework/constitution.md +6 -6
  12. package/framework/context/governance.md +3 -3
  13. package/framework/context/quality.md +1 -1
  14. package/framework/context/root.md +1 -1
  15. package/framework/data/entity-registry.yaml +9 -9
  16. package/framework/domains/agents/qa-implementation.yaml +1 -1
  17. package/framework/domains/constitution.yaml +2 -2
  18. package/framework/domains/global.yaml +1 -1
  19. package/framework/hooks/mode-governance.js +5 -5
  20. package/framework/hooks/prism-engine.js +1 -1
  21. package/framework/hooks/session-digest.js +1 -1
  22. package/framework/i18n/en.yaml +1 -3
  23. package/framework/i18n/es.yaml +1 -3
  24. package/framework/i18n/fr.yaml +1 -3
  25. package/framework/i18n/pt.yaml +1 -3
  26. package/framework/intelligence/context-engine.md +3 -3
  27. package/framework/orchestrator/chati.md +24 -24
  28. package/framework/quality-gates/planning-gate.md +1 -1
  29. package/framework/schemas/context.schema.json +1 -1
  30. package/framework/schemas/session.schema.json +3 -3
  31. package/framework/tasks/architect-api-design.md +1 -1
  32. package/framework/tasks/architect-consolidate.md +1 -1
  33. package/framework/tasks/architect-db-design.md +1 -1
  34. package/framework/tasks/architect-design.md +1 -1
  35. package/framework/tasks/architect-security-review.md +1 -1
  36. package/framework/tasks/architect-stack-selection.md +1 -1
  37. package/framework/tasks/brief-consolidate.md +1 -1
  38. package/framework/tasks/brief-constraint-identify.md +1 -1
  39. package/framework/tasks/brief-extract-requirements.md +1 -1
  40. package/framework/tasks/brief-stakeholder-map.md +1 -1
  41. package/framework/tasks/brief-validate-completeness.md +1 -1
  42. package/framework/tasks/brownfield-wu-architecture-map.md +1 -1
  43. package/framework/tasks/brownfield-wu-deep-discovery.md +1 -1
  44. package/framework/tasks/brownfield-wu-dependency-scan.md +1 -1
  45. package/framework/tasks/brownfield-wu-migration-plan.md +1 -1
  46. package/framework/tasks/brownfield-wu-report.md +1 -1
  47. package/framework/tasks/brownfield-wu-risk-assess.md +1 -1
  48. package/framework/tasks/detail-acceptance-criteria.md +1 -1
  49. package/framework/tasks/detail-consolidate.md +1 -1
  50. package/framework/tasks/detail-edge-case-analysis.md +1 -1
  51. package/framework/tasks/detail-expand-prd.md +1 -1
  52. package/framework/tasks/detail-nfr-extraction.md +1 -1
  53. package/framework/tasks/greenfield-wu-analyze-empty.md +1 -1
  54. package/framework/tasks/greenfield-wu-report.md +1 -1
  55. package/framework/tasks/greenfield-wu-scaffold-detection.md +1 -1
  56. package/framework/tasks/greenfield-wu-tech-stack-assess.md +1 -1
  57. package/framework/tasks/orchestrator-deviation.md +3 -3
  58. package/framework/tasks/orchestrator-escalate.md +2 -2
  59. package/framework/tasks/orchestrator-handoff.md +6 -6
  60. package/framework/tasks/orchestrator-health.md +1 -1
  61. package/framework/tasks/orchestrator-mode-switch.md +20 -20
  62. package/framework/tasks/orchestrator-resume.md +6 -6
  63. package/framework/tasks/orchestrator-route.md +7 -7
  64. package/framework/tasks/orchestrator-status.md +8 -8
  65. package/framework/tasks/orchestrator-suggest-mode.md +13 -13
  66. package/framework/tasks/phases-breakdown.md +1 -1
  67. package/framework/tasks/phases-dependency-mapping.md +1 -1
  68. package/framework/tasks/phases-mvp-scoping.md +1 -1
  69. package/framework/tasks/qa-impl-regression-check.md +2 -2
  70. package/framework/tasks/qa-planning-consolidate.md +3 -3
  71. package/framework/tasks/qa-planning-coverage-plan.md +1 -1
  72. package/framework/tasks/qa-planning-gate-define.md +7 -7
  73. package/framework/tasks/qa-planning-risk-matrix.md +1 -1
  74. package/framework/tasks/qa-planning-test-strategy.md +1 -1
  75. package/framework/tasks/tasks-acceptance-write.md +1 -1
  76. package/framework/tasks/tasks-consolidate.md +1 -1
  77. package/framework/tasks/tasks-decompose.md +1 -1
  78. package/framework/tasks/tasks-estimate.md +1 -1
  79. package/framework/tasks/ux-a11y-check.md +1 -1
  80. package/framework/tasks/ux-component-map.md +1 -1
  81. package/framework/tasks/ux-consolidate.md +1 -1
  82. package/framework/tasks/ux-user-flow.md +1 -1
  83. package/framework/tasks/ux-wireframe.md +1 -1
  84. package/framework/workflows/brownfield-discovery.yaml +7 -7
  85. package/framework/workflows/brownfield-fullstack.yaml +9 -9
  86. package/framework/workflows/brownfield-service.yaml +5 -5
  87. package/framework/workflows/brownfield-ui.yaml +5 -5
  88. package/framework/workflows/greenfield-fullstack.yaml +9 -9
  89. package/package.json +2 -2
  90. package/scripts/bundle-framework.js +1 -1
  91. package/scripts/health-check.js +8 -8
  92. package/scripts/populate-entity-registry.js +1 -1
  93. package/scripts/validate-agents.js +1 -1
  94. package/scripts/validate-tasks.js +1 -1
  95. package/src/autonomy/autonomous-gate.js +1 -1
  96. package/src/autonomy/progress-reporter.js +9 -9
  97. package/src/config/mcp-configs.js +16 -85
  98. package/src/context/engine.js +2 -2
  99. package/src/context/layers/l1-global.js +3 -3
  100. package/src/dashboard/layout.js +7 -7
  101. package/src/dashboard/renderer.js +2 -2
  102. package/src/gates/g1-planning-complete.js +9 -9
  103. package/src/installer/core.js +11 -11
  104. package/src/installer/templates.js +1 -1
  105. package/src/installer/validator.js +8 -8
  106. package/src/intelligence/registry-manager.js +4 -4
  107. package/src/memory/session-digest.js +1 -1
  108. package/src/orchestrator/agent-selector.js +10 -10
  109. package/src/orchestrator/intent-classifier.js +4 -4
  110. package/src/orchestrator/pipeline-manager.js +3 -3
  111. package/src/orchestrator/pipeline-state.js +1 -1
  112. package/src/orchestrator/session-manager.js +3 -3
  113. package/src/tasks/executor.js +1 -1
  114. package/src/tasks/loader.js +1 -1
  115. package/src/terminal/prompt-builder.js +10 -10
  116. package/src/wizard/i18n.js +1 -3
  117. package/src/wizard/index.js +10 -15
  118. package/src/wizard/questions.js +7 -70
@@ -15,7 +15,7 @@ workflow:
15
15
  phases:
16
16
  - phase: 0
17
17
  name: Context Detection
18
- category: CLARITY
18
+ category: PLANNING
19
19
  sequence:
20
20
  - agent: brownfield-wu
21
21
  action: context-detection
@@ -23,7 +23,7 @@ phases:
23
23
 
24
24
  - phase: 1
25
25
  name: Architecture Analysis
26
- category: CLARITY
26
+ category: PLANNING
27
27
  sequence:
28
28
  - agent: brownfield-wu
29
29
  action: architecture-scout
@@ -31,7 +31,7 @@ phases:
31
31
 
32
32
  - phase: 2
33
33
  name: UX Analysis
34
- category: CLARITY
34
+ category: PLANNING
35
35
  sequence:
36
36
  - agent: brownfield-wu
37
37
  action: ux-scout
@@ -39,7 +39,7 @@ phases:
39
39
 
40
40
  - phase: 3
41
41
  name: QA Analysis
42
- category: CLARITY
42
+ category: PLANNING
43
43
  sequence:
44
44
  - agent: brownfield-wu
45
45
  action: qa-scout
@@ -47,7 +47,7 @@ phases:
47
47
 
48
48
  - phase: 4
49
49
  name: Integration Mapping
50
- category: CLARITY
50
+ category: PLANNING
51
51
  sequence:
52
52
  - agent: brownfield-wu
53
53
  action: integration-mapping
@@ -55,7 +55,7 @@ phases:
55
55
 
56
56
  - phase: 5
57
57
  name: Technical Debt Assessment
58
- category: CLARITY
58
+ category: PLANNING
59
59
  sequence:
60
60
  - agent: brownfield-wu
61
61
  action: tech-debt-assessment
@@ -63,7 +63,7 @@ phases:
63
63
 
64
64
  - phase: 6
65
65
  name: Synthesis
66
- category: CLARITY
66
+ category: PLANNING
67
67
  sequence:
68
68
  - agent: brownfield-wu
69
69
  action: compile-report
@@ -15,7 +15,7 @@ workflow:
15
15
  phases:
16
16
  - phase: 0
17
17
  name: Deep Discovery
18
- category: CLARITY
18
+ category: PLANNING
19
19
  sequence:
20
20
  - agent: brownfield-wu
21
21
  action: full-discovery
@@ -26,7 +26,7 @@ phases:
26
26
 
27
27
  - phase: 1
28
28
  name: Problem Definition
29
- category: CLARITY
29
+ category: PLANNING
30
30
  sequence:
31
31
  - agent: brief
32
32
  action: problem-extraction
@@ -35,7 +35,7 @@ phases:
35
35
 
36
36
  - phase: 2
37
37
  name: Architecture Assessment
38
- category: CLARITY
38
+ category: PLANNING
39
39
  sequence:
40
40
  - agent: architect
41
41
  action: assess-architecture
@@ -47,7 +47,7 @@ phases:
47
47
 
48
48
  - phase: 3
49
49
  name: Product Specification
50
- category: CLARITY
50
+ category: PLANNING
51
51
  sequence:
52
52
  - agent: detail
53
53
  action: create-prd
@@ -61,7 +61,7 @@ phases:
61
61
 
62
62
  - phase: 4
63
63
  name: Execution Planning
64
- category: CLARITY
64
+ category: PLANNING
65
65
  sequence:
66
66
  - agent: phases
67
67
  action: create-roadmap
@@ -73,7 +73,7 @@ phases:
73
73
 
74
74
  - phase: 5
75
75
  name: Planning Quality Gate
76
- category: CLARITY
76
+ category: PLANNING
77
77
  sequence:
78
78
  - agent: qa-planning
79
79
  action: validate-traceability
@@ -99,7 +99,7 @@ phases:
99
99
  creates: [chati.dev/artifacts/8-Validation/deploy-report.md]
100
100
 
101
101
  transitions:
102
- clarity_to_build:
102
+ planning_to_build:
103
103
  trigger: "qa-planning.score >= 95"
104
104
  type: automatic
105
105
  action: "Update project.state = build"
@@ -115,7 +115,7 @@ transitions:
115
115
  trigger: "devops.status == completed"
116
116
  type: automatic
117
117
  action: "Update project.state = completed"
118
- backward_to_clarity:
118
+ backward_to_planning:
119
119
  trigger: "qa-implementation.issue_type in [spec, architecture]"
120
120
  type: backward
121
- action: "Update project.state = clarity, route to responsible agent"
121
+ action: "Update project.state = planning, route to responsible agent"
@@ -16,7 +16,7 @@ workflow:
16
16
  phases:
17
17
  - phase: 0
18
18
  name: Deep Discovery
19
- category: CLARITY
19
+ category: PLANNING
20
20
  sequence:
21
21
  - agent: brownfield-wu
22
22
  action: full-discovery
@@ -24,7 +24,7 @@ phases:
24
24
 
25
25
  - phase: 1
26
26
  name: Problem Definition
27
- category: CLARITY
27
+ category: PLANNING
28
28
  sequence:
29
29
  - agent: brief
30
30
  action: problem-extraction
@@ -32,7 +32,7 @@ phases:
32
32
 
33
33
  - phase: 2
34
34
  name: Architecture & Specification
35
- category: CLARITY
35
+ category: PLANNING
36
36
  sequence:
37
37
  - agent: architect
38
38
  action: assess-architecture
@@ -45,7 +45,7 @@ phases:
45
45
 
46
46
  - phase: 3
47
47
  name: Execution Planning
48
- category: CLARITY
48
+ category: PLANNING
49
49
  sequence:
50
50
  - agent: phases
51
51
  action: create-roadmap
@@ -56,7 +56,7 @@ phases:
56
56
 
57
57
  - phase: 4
58
58
  name: Planning Quality Gate
59
- category: CLARITY
59
+ category: PLANNING
60
60
  sequence:
61
61
  - agent: qa-planning
62
62
  action: validate-traceability
@@ -16,7 +16,7 @@ workflow:
16
16
  phases:
17
17
  - phase: 0
18
18
  name: Deep Discovery
19
- category: CLARITY
19
+ category: PLANNING
20
20
  sequence:
21
21
  - agent: brownfield-wu
22
22
  action: full-discovery
@@ -25,7 +25,7 @@ phases:
25
25
 
26
26
  - phase: 1
27
27
  name: Problem Definition
28
- category: CLARITY
28
+ category: PLANNING
29
29
  sequence:
30
30
  - agent: brief
31
31
  action: problem-extraction
@@ -33,7 +33,7 @@ phases:
33
33
 
34
34
  - phase: 2
35
35
  name: Architecture & Experience
36
- category: CLARITY
36
+ category: PLANNING
37
37
  sequence:
38
38
  - agent: architect
39
39
  action: assess-architecture
@@ -50,7 +50,7 @@ phases:
50
50
 
51
51
  - phase: 3
52
52
  name: Execution Planning
53
- category: CLARITY
53
+ category: PLANNING
54
54
  sequence:
55
55
  - agent: phases
56
56
  action: create-roadmap
@@ -61,7 +61,7 @@ phases:
61
61
 
62
62
  - phase: 4
63
63
  name: Planning Quality Gate
64
- category: CLARITY
64
+ category: PLANNING
65
65
  sequence:
66
66
  - agent: qa-planning
67
67
  action: validate-traceability
@@ -16,7 +16,7 @@ workflow:
16
16
  phases:
17
17
  - phase: 0
18
18
  name: Discovery
19
- category: CLARITY
19
+ category: PLANNING
20
20
  sequence:
21
21
  - agent: greenfield-wu
22
22
  action: operational-discovery
@@ -25,7 +25,7 @@ phases:
25
25
 
26
26
  - phase: 1
27
27
  name: Problem Definition
28
- category: CLARITY
28
+ category: PLANNING
29
29
  sequence:
30
30
  - agent: brief
31
31
  action: problem-extraction
@@ -34,7 +34,7 @@ phases:
34
34
 
35
35
  - phase: 2
36
36
  name: Product Specification
37
- category: CLARITY
37
+ category: PLANNING
38
38
  sequence:
39
39
  - agent: detail
40
40
  action: create-prd
@@ -44,7 +44,7 @@ phases:
44
44
 
45
45
  - phase: 3
46
46
  name: Technical Design
47
- category: CLARITY
47
+ category: PLANNING
48
48
  sequence:
49
49
  - agent: architect
50
50
  action: design-architecture
@@ -58,7 +58,7 @@ phases:
58
58
 
59
59
  - phase: 4
60
60
  name: Execution Planning
61
- category: CLARITY
61
+ category: PLANNING
62
62
  sequence:
63
63
  - agent: phases
64
64
  action: create-roadmap
@@ -72,7 +72,7 @@ phases:
72
72
 
73
73
  - phase: 5
74
74
  name: Planning Quality Gate
75
- category: CLARITY
75
+ category: PLANNING
76
76
  sequence:
77
77
  - agent: qa-planning
78
78
  action: validate-traceability
@@ -103,7 +103,7 @@ phases:
103
103
  notes: "Git operations, deployment, documentation"
104
104
 
105
105
  transitions:
106
- clarity_to_build:
106
+ planning_to_build:
107
107
  trigger: "qa-planning.score >= 95"
108
108
  type: automatic
109
109
  action: "Update project.state = build"
@@ -119,7 +119,7 @@ transitions:
119
119
  trigger: "devops.status == completed"
120
120
  type: automatic
121
121
  action: "Update project.state = completed"
122
- backward_to_clarity:
122
+ backward_to_planning:
123
123
  trigger: "qa-implementation.issue_type in [spec, architecture]"
124
124
  type: backward
125
- action: "Update project.state = clarity, route to responsible agent"
125
+ action: "Update project.state = planning, route to responsible agent"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "chati-dev",
3
- "version": "2.0.5",
4
- "description": "AI-Powered Multi-Agent Orchestration System — 13 agents, 6 IDEs, 4 languages",
3
+ "version": "2.0.6",
4
+ "description": "AI-Powered Multi-Agent Orchestration System — Structured vibe coding for Full Stack Development",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "chati": "bin/chati.js",
@@ -32,7 +32,7 @@ mkdirSync(DEST, { recursive: true });
32
32
 
33
33
  const dirs = [
34
34
  'orchestrator',
35
- 'agents/clarity', 'agents/quality', 'agents/build', 'agents/deploy',
35
+ 'agents/planning', 'agents/quality', 'agents/build', 'agents/deploy',
36
36
  'templates', 'workflows', 'quality-gates',
37
37
  'schemas', 'frameworks', 'intelligence', 'patterns',
38
38
  'hooks', 'domains',
@@ -146,14 +146,14 @@ function checkAgents(frameworkDir) {
146
146
  const orchestratorDir = join(frameworkDir, 'orchestrator');
147
147
 
148
148
  const expectedAgents = {
149
- 'clarity/greenfield-wu.md': 'greenfield-wu',
150
- 'clarity/brownfield-wu.md': 'brownfield-wu',
151
- 'clarity/brief.md': 'brief',
152
- 'clarity/detail.md': 'detail',
153
- 'clarity/architect.md': 'architect',
154
- 'clarity/ux.md': 'ux',
155
- 'clarity/phases.md': 'phases',
156
- 'clarity/tasks.md': 'tasks',
149
+ 'planning/greenfield-wu.md': 'greenfield-wu',
150
+ 'planning/brownfield-wu.md': 'brownfield-wu',
151
+ 'planning/brief.md': 'brief',
152
+ 'planning/detail.md': 'detail',
153
+ 'planning/architect.md': 'architect',
154
+ 'planning/ux.md': 'ux',
155
+ 'planning/phases.md': 'phases',
156
+ 'planning/tasks.md': 'tasks',
157
157
  'quality/qa-planning.md': 'qa-planning',
158
158
  'quality/qa-implementation.md': 'qa-implementation',
159
159
  'build/dev.md': 'dev',
@@ -161,7 +161,7 @@ function scanEntities(frameworkDir, relDir, category) {
161
161
 
162
162
  for (const entry of entries) {
163
163
  if (entry.isDirectory()) {
164
- // Recurse into subdirectories (e.g., agents/clarity/, agents/build/)
164
+ // Recurse into subdirectories (e.g., agents/planning/, agents/build/)
165
165
  const subEntities = scanEntities(frameworkDir, join(relDir, entry.name), category);
166
166
  entities.push(...subEntities);
167
167
  continue;
@@ -19,7 +19,7 @@ import yaml from 'js-yaml';
19
19
  * Expected agents organized by category.
20
20
  */
21
21
  export const EXPECTED_AGENTS = {
22
- clarity: ['greenfield-wu', 'brownfield-wu', 'brief', 'detail', 'architect', 'ux', 'phases', 'tasks'],
22
+ planning: ['greenfield-wu', 'brownfield-wu', 'brief', 'detail', 'architect', 'ux', 'phases', 'tasks'],
23
23
  quality: ['qa-planning', 'qa-implementation'],
24
24
  build: ['dev'],
25
25
  deploy: ['devops'],
@@ -24,7 +24,7 @@ const REQUIRED_FIELDS = ['id', 'agent'];
24
24
  /**
25
25
  * Valid phase values.
26
26
  */
27
- const VALID_PHASES = ['clarity', 'build', 'deploy', 'validate', 'quality'];
27
+ const VALID_PHASES = ['planning', 'build', 'deploy', 'validate', 'quality'];
28
28
 
29
29
  // ---------------------------------------------------------------------------
30
30
  // Internal Helpers
@@ -16,7 +16,7 @@ export const GATE_RESULTS = {
16
16
 
17
17
  // Minimum passing scores per agent (conservative: 90 default)
18
18
  const GATE_THRESHOLDS = {
19
- 'qa-planning': 95, // Highest — gates clarity→build transition
19
+ 'qa-planning': 95, // Highest — gates planning→build transition
20
20
  'qa-implementation': 90, // Gates build→deploy transition
21
21
  'brief': 90, // Requirements are critical
22
22
  'detail': 90,
@@ -35,7 +35,7 @@ export function buildProgressReport(pipelineState, options = {}) {
35
35
 
36
36
  /**
37
37
  * Format progress as a compact one-line status.
38
- * Example: "[CLARITY 3/8] brief ✅ → detail 🔄 (score: 92%)"
38
+ * Example: "[PLANNING 3/8] brief ✅ → detail 🔄 (score: 92%)"
39
39
  * @param {object} pipelineState
40
40
  * @returns {string}
41
41
  */
@@ -75,10 +75,10 @@ export function formatDetailedReport(pipelineState) {
75
75
  lines.push(`Stage: ${stage}`);
76
76
  lines.push('');
77
77
 
78
- // CLARITY agents
79
- lines.push('CLARITY:');
80
- const clarityAgents = getStageAgents('CLARITY');
81
- clarityAgents.forEach(agent => {
78
+ // PLANNING agents
79
+ lines.push('PLANNING:');
80
+ const planningAgents = getStageAgents('PLANNING');
81
+ planningAgents.forEach(agent => {
82
82
  const status = agentStatus[agent] || 'pending';
83
83
  const icon = getStatusIcon(status);
84
84
  const isActive = agent === pipelineState.current_agent;
@@ -146,7 +146,7 @@ export function calculateCompletion(pipelineState) {
146
146
  */
147
147
  function getStageAgents(stage) {
148
148
  const stages = {
149
- CLARITY: [
149
+ PLANNING: [
150
150
  'greenfield-wu',
151
151
  'brownfield-wu',
152
152
  'brief',
@@ -170,7 +170,7 @@ function getStageAgents(stage) {
170
170
  */
171
171
  function getAllAgents() {
172
172
  return [
173
- ...getStageAgents('CLARITY'),
173
+ ...getStageAgents('PLANNING'),
174
174
  ...getStageAgents('BUILD'),
175
175
  ...getStageAgents('DEPLOY'),
176
176
  ];
@@ -249,7 +249,7 @@ function countTotalAgents(_pipelineState) {
249
249
  /**
250
250
  * Get progress summary by stage.
251
251
  * @param {object} pipelineState
252
- * @returns {{ clarity: number, build: number, deploy: number }}
252
+ * @returns {{ planning: number, build: number, deploy: number }}
253
253
  */
254
254
  export function getStageProgress(pipelineState) {
255
255
  const agentStatus = pipelineState.agent_status || {};
@@ -261,7 +261,7 @@ export function getStageProgress(pipelineState) {
261
261
  };
262
262
 
263
263
  return {
264
- clarity: getProgress('CLARITY'),
264
+ planning: getProgress('PLANNING'),
265
265
  build: getProgress('BUILD'),
266
266
  deploy: getProgress('DEPLOY'),
267
267
  };
@@ -2,11 +2,13 @@
2
2
  * MCP Registry and Configuration
3
3
  * Defines available MCPs and their agent dependencies
4
4
  */
5
+
6
+ export const DEFAULT_MCPS = ['context7', 'browser'];
7
+
5
8
  export const MCP_CONFIGS = {
6
9
  browser: {
7
10
  name: 'Browser (Playwright)',
8
11
  description: 'Web automation and testing',
9
- defaultSelected: true,
10
12
  requiresEnv: [],
11
13
  claudeConfig: {
12
14
  command: 'npx',
@@ -16,104 +18,33 @@ export const MCP_CONFIGS = {
16
18
  context7: {
17
19
  name: 'Context7',
18
20
  description: 'Library documentation search',
19
- defaultSelected: true,
20
21
  requiresEnv: [],
21
22
  claudeConfig: {
22
23
  command: 'npx',
23
24
  args: ['-y', '@context7/mcp'],
24
25
  },
25
26
  },
26
- exa: {
27
- name: 'Exa',
28
- description: 'Advanced web search',
29
- defaultSelected: true,
30
- requiresEnv: ['EXA_API_KEY'],
31
- claudeConfig: {
32
- command: 'npx',
33
- args: ['-y', '@exa/mcp'],
34
- env: { EXA_API_KEY: '${EXA_API_KEY}' },
35
- },
36
- },
37
- 'desktop-commander': {
38
- name: 'Desktop Commander',
39
- description: 'File system access',
40
- defaultSelected: false,
41
- requiresEnv: [],
42
- claudeConfig: {
43
- command: 'npx',
44
- args: ['-y', '@anthropic/desktop-commander-mcp'],
45
- },
46
- },
47
- 'sequential-thinking': {
48
- name: 'Sequential Thinking',
49
- description: 'Step-by-step reasoning',
50
- defaultSelected: false,
51
- requiresEnv: [],
52
- claudeConfig: {
53
- command: 'npx',
54
- args: ['-y', '@anthropic/sequential-thinking-mcp'],
55
- },
56
- },
57
- github: {
58
- name: 'GitHub',
59
- description: 'GitHub API integration',
60
- defaultSelected: false,
61
- requiresEnv: ['GITHUB_TOKEN'],
62
- claudeConfig: {
63
- command: 'npx',
64
- args: ['-y', '@anthropic/github-mcp'],
65
- env: { GITHUB_TOKEN: '${GITHUB_TOKEN}' },
66
- },
67
- },
68
27
  };
69
28
 
70
29
  /**
71
30
  * Agent-MCP dependency matrix
72
31
  */
73
32
  export const AGENT_MCP_DEPS = {
74
- orchestrator: { required: [], optional: ['git'] },
75
- 'greenfield-wu': { required: [], optional: [] },
76
- 'brownfield-wu': { required: ['git'], optional: ['browser'] },
77
- brief: { required: [], optional: [] },
78
- detail: { required: [], optional: ['exa'] },
79
- architect: { required: ['context7'], optional: ['exa', 'git'] },
80
- ux: { required: [], optional: ['browser'] },
81
- phases: { required: [], optional: [] },
82
- tasks: { required: [], optional: [] },
83
- 'qa-planning': { required: [], optional: [] },
84
- dev: { required: ['context7', 'git'], optional: ['browser', 'coderabbit'] },
85
- 'qa-implementation':{ required: ['git'], optional: ['browser', 'coderabbit'] },
86
- devops: { required: ['git', 'github'], optional: [] },
33
+ orchestrator: { required: [], optional: [] },
34
+ 'greenfield-wu': { required: [], optional: [] },
35
+ 'brownfield-wu': { required: [], optional: ['browser'] },
36
+ brief: { required: [], optional: [] },
37
+ detail: { required: [], optional: [] },
38
+ architect: { required: ['context7'], optional: [] },
39
+ ux: { required: [], optional: ['browser'] },
40
+ phases: { required: [], optional: [] },
41
+ tasks: { required: [], optional: [] },
42
+ 'qa-planning': { required: [], optional: [] },
43
+ dev: { required: ['context7'], optional: ['browser'] },
44
+ 'qa-implementation': { required: [], optional: ['browser'] },
45
+ devops: { required: [], optional: [] },
87
46
  };
88
47
 
89
- /**
90
- * Get list of MCPs for selection prompt
91
- */
92
- export function getMCPChoices() {
93
- return Object.entries(MCP_CONFIGS).map(([key, config]) => ({
94
- value: key,
95
- label: config.name,
96
- hint: config.description,
97
- initialValue: config.defaultSelected,
98
- }));
99
- }
100
-
101
- /**
102
- * Check MCP warnings for selected project type and MCPs
103
- */
104
- export function getMCPWarnings(projectType, selectedMCPs) {
105
- const warnings = [];
106
-
107
- if (projectType === 'brownfield' && !selectedMCPs.includes('git')) {
108
- warnings.push({
109
- level: 'critical',
110
- message: "You selected Brownfield but did not enable 'git' MCP. The brownfield-wu agent requires git for codebase analysis.",
111
- });
112
- }
113
-
114
- return warnings;
115
- }
116
-
117
48
  /**
118
49
  * Generate MCP config for Claude Code (.claude/mcp.json)
119
50
  */
@@ -23,7 +23,7 @@ const LAYER_TIMEOUT_MS = 100;
23
23
  * @param {object} input
24
24
  * @param {string} input.domainsDir - Path to chati.dev/domains/
25
25
  * @param {number} input.remainingPercent - Context window remaining (0-100)
26
- * @param {string} [input.mode] - Current mode (clarity, build, deploy)
26
+ * @param {string} [input.mode] - Current mode (planning, build, deploy)
27
27
  * @param {string} [input.agent] - Active agent name
28
28
  * @param {string} [input.workflow] - Active workflow name
29
29
  * @param {string} [input.pipelinePosition] - Current pipeline step
@@ -43,7 +43,7 @@ export function runPrism(input) {
43
43
  // 2. Build context for layer processors
44
44
  const ctx = {
45
45
  domainsDir: input.domainsDir,
46
- mode: input.mode || 'clarity',
46
+ mode: input.mode || 'planning',
47
47
  bracket: bracket.bracket,
48
48
  agent: input.agent || null,
49
49
  workflow: input.workflow || null,
@@ -2,7 +2,7 @@
2
2
  * L1 Global Layer — ALWAYS active.
3
3
  *
4
4
  * Loads global rules: coding standards, bracket-specific behavioral rules,
5
- * mode governance constraints (clarity/build/deploy).
5
+ * mode governance constraints (planning/build/deploy).
6
6
  */
7
7
 
8
8
  import { loadGlobalDomain, extractRules } from '../domain-loader.js';
@@ -11,14 +11,14 @@ import { loadGlobalDomain, extractRules } from '../domain-loader.js';
11
11
  * Process L1: load global rules + mode governance.
12
12
  * @param {object} ctx - Pipeline context
13
13
  * @param {string} ctx.domainsDir - Path to chati.dev/domains/
14
- * @param {string} ctx.mode - Current mode (clarity, build, deploy)
14
+ * @param {string} ctx.mode - Current mode (planning, build, deploy)
15
15
  * @param {string} ctx.bracket - Current bracket (FRESH, MODERATE, etc.)
16
16
  * @returns {{ layer: string, rules: Array, mode: string, modeRules: object }}
17
17
  */
18
18
  export function processL1(ctx) {
19
19
  const domain = loadGlobalDomain(ctx.domainsDir);
20
20
  const rules = extractRules(domain);
21
- const mode = ctx.mode || 'clarity';
21
+ const mode = ctx.mode || 'planning';
22
22
 
23
23
  const modeRules = domain?.modes?.[mode] || {};
24
24
  const bracketRules = domain?.brackets?.[ctx.bracket] || {};
@@ -21,7 +21,7 @@ function formatScore(score, status) {
21
21
  */
22
22
  function formatState(state) {
23
23
  const stateMap = {
24
- clarity: brand('CLARITY'),
24
+ planning: brand('PLANNING'),
25
25
  build: yellow('BUILD'),
26
26
  validate: bold('VALIDATE'),
27
27
  deploy: green('DEPLOY'),
@@ -73,12 +73,12 @@ export function buildProjectInfo(data) {
73
73
  }
74
74
 
75
75
  /**
76
- * Build CLARITY section with agent scores
76
+ * Build PLANNING section with agent scores
77
77
  */
78
- export function buildClaritySection(data) {
78
+ export function buildPlanningSection(data) {
79
79
  const scores = data.agentScores || {};
80
80
 
81
- const clarityAgents = [
81
+ const planningAgents = [
82
82
  ['WU', scores['greenfield-wu'] || scores['brownfield-wu'] || { status: 'pending', score: 0 }],
83
83
  ['Brief', scores['brief'] || { status: 'pending', score: 0 }],
84
84
  ['Detail', scores['detail'] || { status: 'pending', score: 0 }],
@@ -89,16 +89,16 @@ export function buildClaritySection(data) {
89
89
  ['QA-P', scores['qa-planning'] || { status: 'pending', score: 0 }],
90
90
  ];
91
91
 
92
- const row1 = clarityAgents.slice(0, 4)
92
+ const row1 = planningAgents.slice(0, 4)
93
93
  .map(([name, info]) => `${dim(name.padEnd(8))} ${formatScore(info.score, info.status)}`)
94
94
  .join(' ');
95
95
 
96
- const row2 = clarityAgents.slice(4)
96
+ const row2 = planningAgents.slice(4)
97
97
  .map(([name, info]) => `${dim(name.padEnd(8))} ${formatScore(info.score, info.status)}`)
98
98
  .join(' ');
99
99
 
100
100
  return [
101
- brand('│') + ` ${brand('── CLARITY')} ${'─'.repeat(46)}` + brand('│'),
101
+ brand('│') + ` ${brand('── PLANNING')} ${'─'.repeat(46)}` + brand('│'),
102
102
  brand('│') + ` │ ${row1}` + ' '.repeat(5) + brand('│'),
103
103
  brand('│') + ` │ ${row2}` + ' '.repeat(5) + brand('│'),
104
104
  brand('│') + ` ${'─'.repeat(57)}` + brand('│'),
@@ -2,7 +2,7 @@ import { readDashboardData } from './data-reader.js';
2
2
  import {
3
3
  buildHeader,
4
4
  buildProjectInfo,
5
- buildClaritySection,
5
+ buildPlanningSection,
6
6
  buildBuildSection,
7
7
  buildValidateSection,
8
8
  buildIntelligenceSection,
@@ -25,7 +25,7 @@ export async function renderDashboard(targetDir) {
25
25
  ...buildHeader(data),
26
26
  ...buildProjectInfo(data),
27
27
  '',
28
- ...buildClaritySection(data),
28
+ ...buildPlanningSection(data),
29
29
  '',
30
30
  ...buildBuildSection(data),
31
31
  '',