chati-dev 1.0.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 (63) hide show
  1. package/assets/logo.txt +6 -0
  2. package/bin/chati.js +175 -0
  3. package/framework/agents/build/dev.md +342 -0
  4. package/framework/agents/clarity/architect.md +263 -0
  5. package/framework/agents/clarity/brief.md +277 -0
  6. package/framework/agents/clarity/brownfield-wu.md +288 -0
  7. package/framework/agents/clarity/detail.md +274 -0
  8. package/framework/agents/clarity/greenfield-wu.md +231 -0
  9. package/framework/agents/clarity/phases.md +272 -0
  10. package/framework/agents/clarity/tasks.md +279 -0
  11. package/framework/agents/clarity/ux.md +293 -0
  12. package/framework/agents/deploy/devops.md +321 -0
  13. package/framework/agents/quality/qa-implementation.md +310 -0
  14. package/framework/agents/quality/qa-planning.md +289 -0
  15. package/framework/config.yaml +8 -0
  16. package/framework/constitution.md +238 -0
  17. package/framework/frameworks/decision-heuristics.yaml +64 -0
  18. package/framework/frameworks/quality-dimensions.yaml +59 -0
  19. package/framework/i18n/en.yaml +78 -0
  20. package/framework/i18n/es.yaml +78 -0
  21. package/framework/i18n/fr.yaml +78 -0
  22. package/framework/i18n/pt.yaml +78 -0
  23. package/framework/intelligence/confidence.yaml +42 -0
  24. package/framework/intelligence/gotchas.yaml +51 -0
  25. package/framework/intelligence/patterns.yaml +32 -0
  26. package/framework/migrations/v1.0-to-v1.1.yaml +48 -0
  27. package/framework/orchestrator/chati.md +333 -0
  28. package/framework/patterns/elicitation.md +137 -0
  29. package/framework/quality-gates/implementation-gate.md +64 -0
  30. package/framework/quality-gates/planning-gate.md +52 -0
  31. package/framework/schemas/config.schema.json +42 -0
  32. package/framework/schemas/session.schema.json +103 -0
  33. package/framework/schemas/task.schema.json +71 -0
  34. package/framework/templates/brownfield-prd-tmpl.yaml +103 -0
  35. package/framework/templates/fullstack-architecture-tmpl.yaml +101 -0
  36. package/framework/templates/prd-tmpl.yaml +94 -0
  37. package/framework/templates/qa-gate-tmpl.yaml +96 -0
  38. package/framework/templates/task-tmpl.yaml +85 -0
  39. package/framework/workflows/brownfield-discovery.yaml +75 -0
  40. package/framework/workflows/brownfield-fullstack.yaml +104 -0
  41. package/framework/workflows/brownfield-service.yaml +81 -0
  42. package/framework/workflows/brownfield-ui.yaml +87 -0
  43. package/framework/workflows/greenfield-fullstack.yaml +108 -0
  44. package/package.json +60 -0
  45. package/scripts/bundle-framework.js +58 -0
  46. package/src/config/ide-configs.js +80 -0
  47. package/src/config/mcp-configs.js +136 -0
  48. package/src/dashboard/data-reader.js +99 -0
  49. package/src/dashboard/layout.js +161 -0
  50. package/src/dashboard/renderer.js +104 -0
  51. package/src/installer/core.js +221 -0
  52. package/src/installer/templates.js +97 -0
  53. package/src/installer/validator.js +114 -0
  54. package/src/upgrade/backup.js +107 -0
  55. package/src/upgrade/checker.js +105 -0
  56. package/src/upgrade/migrator.js +171 -0
  57. package/src/utils/colors.js +18 -0
  58. package/src/utils/detector.js +51 -0
  59. package/src/utils/logger.js +41 -0
  60. package/src/wizard/feedback.js +76 -0
  61. package/src/wizard/i18n.js +168 -0
  62. package/src/wizard/index.js +107 -0
  63. package/src/wizard/questions.js +169 -0
@@ -0,0 +1,75 @@
1
+ # Brownfield Discovery Workflow
2
+ # Deep technical analysis of existing codebase (standalone)
3
+
4
+ workflow:
5
+ id: brownfield-discovery
6
+ name: Brownfield Deep Discovery
7
+ version: "1.0.0"
8
+ type: brownfield
9
+ project_types: [technical-audit, tech-debt-assessment, migration-planning]
10
+ description: >
11
+ Standalone discovery workflow for deep analysis of an existing codebase.
12
+ Can be used independently (not as part of a full development pipeline)
13
+ for technical audits, tech debt assessment, or migration planning.
14
+
15
+ phases:
16
+ - phase: 0
17
+ name: Context Detection
18
+ category: CLARITY
19
+ sequence:
20
+ - agent: brownfield-wu
21
+ action: context-detection
22
+ notes: "Automated scan of project structure, stack, tools"
23
+
24
+ - phase: 1
25
+ name: Architecture Analysis
26
+ category: CLARITY
27
+ sequence:
28
+ - agent: brownfield-wu
29
+ action: architecture-scout
30
+ notes: "Scout call to Architect for patterns, tech debt"
31
+
32
+ - phase: 2
33
+ name: UX Analysis
34
+ category: CLARITY
35
+ sequence:
36
+ - agent: brownfield-wu
37
+ action: ux-scout
38
+ notes: "Scout call to UX for design tokens, components"
39
+
40
+ - phase: 3
41
+ name: QA Analysis
42
+ category: CLARITY
43
+ sequence:
44
+ - agent: brownfield-wu
45
+ action: qa-scout
46
+ notes: "Scout call to QA for test coverage, CI/CD"
47
+
48
+ - phase: 4
49
+ name: Integration Mapping
50
+ category: CLARITY
51
+ sequence:
52
+ - agent: brownfield-wu
53
+ action: integration-mapping
54
+ notes: "External APIs, services, databases"
55
+
56
+ - phase: 5
57
+ name: Technical Debt Assessment
58
+ category: CLARITY
59
+ sequence:
60
+ - agent: brownfield-wu
61
+ action: tech-debt-assessment
62
+ notes: "Categorize by severity: critical, high, medium, low"
63
+
64
+ - phase: 6
65
+ name: Synthesis
66
+ category: CLARITY
67
+ sequence:
68
+ - agent: brownfield-wu
69
+ action: compile-report
70
+ creates: [chati.dev/artifacts/0-WU/wu-full-report.md]
71
+ notes: "Consolidate all findings into comprehensive report"
72
+
73
+ output:
74
+ primary: chati.dev/artifacts/0-WU/wu-full-report.md
75
+ duration: "1-4 hours depending on codebase size"
@@ -0,0 +1,104 @@
1
+ # Brownfield Fullstack Workflow
2
+ # Handles: feature addition, refactoring, modernization
3
+
4
+ workflow:
5
+ id: brownfield-fullstack
6
+ name: Brownfield Fullstack Development
7
+ version: "1.0.0"
8
+ type: brownfield
9
+ project_types: [feature-addition, refactoring, modernization, enhancement]
10
+ description: >
11
+ Development pipeline for existing projects. Key difference from greenfield:
12
+ Architect comes BEFORE Detail to understand existing constraints first.
13
+ brownfield-wu ALWAYS runs Deep Discovery with 3 scout calls.
14
+
15
+ phases:
16
+ - phase: 0
17
+ name: Deep Discovery
18
+ category: CLARITY
19
+ sequence:
20
+ - agent: brownfield-wu
21
+ action: full-discovery
22
+ creates: [chati.dev/artifacts/0-WU/wu-full-report.md]
23
+ notes: >
24
+ Both axes (technical + operational). ALWAYS runs Deep Discovery
25
+ with 3 scout calls: Architect, UX, QA in scout mode.
26
+
27
+ - phase: 1
28
+ name: Problem Definition
29
+ category: CLARITY
30
+ sequence:
31
+ - agent: brief
32
+ action: problem-extraction
33
+ creates: [chati.dev/artifacts/1-Brief/brief-report.md]
34
+ notes: "Informed by existing codebase context from WU"
35
+
36
+ - phase: 2
37
+ name: Architecture Assessment
38
+ category: CLARITY
39
+ sequence:
40
+ - agent: architect
41
+ action: assess-architecture
42
+ creates: [chati.dev/artifacts/3-Architecture/architecture.md]
43
+ template: fullstack-architecture-tmpl.yaml
44
+ notes: >
45
+ Architect comes BEFORE Detail in brownfield.
46
+ Assesses existing architecture, proposes changes.
47
+
48
+ - phase: 3
49
+ name: Product Specification
50
+ category: CLARITY
51
+ sequence:
52
+ - agent: detail
53
+ action: create-prd
54
+ creates: [chati.dev/artifacts/2-PRD/prd.md]
55
+ template: brownfield-prd-tmpl.yaml
56
+ notes: "PRD informed by architectural constraints"
57
+ - agent: ux
58
+ action: define-experience
59
+ creates: [chati.dev/artifacts/4-UX/ux-specification.md]
60
+ notes: "Includes Design System audit of existing code"
61
+
62
+ - phase: 4
63
+ name: Execution Planning
64
+ category: CLARITY
65
+ sequence:
66
+ - agent: phases
67
+ action: create-roadmap
68
+ creates: [chati.dev/artifacts/5-Phases/phases.md]
69
+ - agent: tasks
70
+ action: create-tasks
71
+ creates: [chati.dev/artifacts/6-Tasks/tasks.md]
72
+ template: task-tmpl.yaml
73
+
74
+ - phase: 5
75
+ name: Planning Quality Gate
76
+ category: CLARITY
77
+ sequence:
78
+ - agent: qa-planning
79
+ action: validate-traceability
80
+ creates: [chati.dev/artifacts/7-QA-Planning/qa-planning-report.md]
81
+ template: qa-gate-tmpl.yaml
82
+
83
+ - phase: 6
84
+ name: Implementation
85
+ category: BUILD
86
+ sequence:
87
+ - agent: dev
88
+ action: implement-tasks
89
+ - agent: qa-implementation
90
+ action: validate-code
91
+ creates: [chati.dev/artifacts/8-Validation/qa-implementation-report.md]
92
+
93
+ - phase: 7
94
+ name: Deployment
95
+ category: DEPLOY
96
+ sequence:
97
+ - agent: devops
98
+ action: deploy
99
+ creates: [chati.dev/artifacts/8-Validation/deploy-report.md]
100
+
101
+ transitions:
102
+ clarity_to_build: "QA-Planning score >= 95%"
103
+ build_to_deploy: "QA-Implementation APPROVED"
104
+ deploy_to_completed: "DevOps deployment verified"
@@ -0,0 +1,81 @@
1
+ # Brownfield Service Workflow
2
+ # Backend/API enhancements for existing projects
3
+
4
+ workflow:
5
+ id: brownfield-service
6
+ name: Brownfield Service Enhancement
7
+ version: "1.0.0"
8
+ type: brownfield
9
+ project_types: [api-enhancement, service-modernization, backend-refactoring]
10
+ description: >
11
+ Pipeline for backend/API changes in existing projects.
12
+ Same as brownfield-fullstack but Architect focuses on
13
+ API design, data model, and service architecture.
14
+ UX agent runs in minimal mode (API documentation only).
15
+
16
+ phases:
17
+ - phase: 0
18
+ name: Deep Discovery
19
+ category: CLARITY
20
+ sequence:
21
+ - agent: brownfield-wu
22
+ action: full-discovery
23
+ creates: [chati.dev/artifacts/0-WU/wu-full-report.md]
24
+
25
+ - phase: 1
26
+ name: Problem Definition
27
+ category: CLARITY
28
+ sequence:
29
+ - agent: brief
30
+ action: problem-extraction
31
+ creates: [chati.dev/artifacts/1-Brief/brief-report.md]
32
+
33
+ - phase: 2
34
+ name: Architecture & Specification
35
+ category: CLARITY
36
+ sequence:
37
+ - agent: architect
38
+ action: assess-architecture
39
+ creates: [chati.dev/artifacts/3-Architecture/architecture.md]
40
+ notes: "Focus on API design, data model, service patterns"
41
+ - agent: detail
42
+ action: create-prd
43
+ creates: [chati.dev/artifacts/2-PRD/prd.md]
44
+ template: brownfield-prd-tmpl.yaml
45
+
46
+ - phase: 3
47
+ name: Execution Planning
48
+ category: CLARITY
49
+ sequence:
50
+ - agent: phases
51
+ action: create-roadmap
52
+ creates: [chati.dev/artifacts/5-Phases/phases.md]
53
+ - agent: tasks
54
+ action: create-tasks
55
+ creates: [chati.dev/artifacts/6-Tasks/tasks.md]
56
+
57
+ - phase: 4
58
+ name: Planning Quality Gate
59
+ category: CLARITY
60
+ sequence:
61
+ - agent: qa-planning
62
+ action: validate-traceability
63
+ creates: [chati.dev/artifacts/7-QA-Planning/qa-planning-report.md]
64
+
65
+ - phase: 5
66
+ name: Implementation
67
+ category: BUILD
68
+ sequence:
69
+ - agent: dev
70
+ action: implement-tasks
71
+ - agent: qa-implementation
72
+ action: validate-code
73
+ creates: [chati.dev/artifacts/8-Validation/qa-implementation-report.md]
74
+
75
+ - phase: 6
76
+ name: Deployment
77
+ category: DEPLOY
78
+ sequence:
79
+ - agent: devops
80
+ action: deploy
81
+ creates: [chati.dev/artifacts/8-Validation/deploy-report.md]
@@ -0,0 +1,87 @@
1
+ # Brownfield UI Workflow
2
+ # Frontend/UI changes for existing projects
3
+
4
+ workflow:
5
+ id: brownfield-ui
6
+ name: Brownfield UI Enhancement
7
+ version: "1.0.0"
8
+ type: brownfield
9
+ project_types: [ui-modernization, frontend-migration, component-library, design-system-update]
10
+ description: >
11
+ Pipeline for frontend/UI changes in existing projects.
12
+ Same as brownfield-fullstack but UX agent takes a larger role,
13
+ including Design System audit and component inventory.
14
+ Architect focuses on frontend architecture and state management.
15
+
16
+ phases:
17
+ - phase: 0
18
+ name: Deep Discovery
19
+ category: CLARITY
20
+ sequence:
21
+ - agent: brownfield-wu
22
+ action: full-discovery
23
+ creates: [chati.dev/artifacts/0-WU/wu-full-report.md]
24
+ notes: "UX scout call gets extra attention for component audit"
25
+
26
+ - phase: 1
27
+ name: Problem Definition
28
+ category: CLARITY
29
+ sequence:
30
+ - agent: brief
31
+ action: problem-extraction
32
+ creates: [chati.dev/artifacts/1-Brief/brief-report.md]
33
+
34
+ - phase: 2
35
+ name: Architecture & Experience
36
+ category: CLARITY
37
+ sequence:
38
+ - agent: architect
39
+ action: assess-architecture
40
+ creates: [chati.dev/artifacts/3-Architecture/architecture.md]
41
+ notes: "Focus on frontend architecture, state management, component patterns"
42
+ - agent: detail
43
+ action: create-prd
44
+ creates: [chati.dev/artifacts/2-PRD/prd.md]
45
+ template: brownfield-prd-tmpl.yaml
46
+ - agent: ux
47
+ action: define-experience
48
+ creates: [chati.dev/artifacts/4-UX/ux-specification.md]
49
+ notes: "Full Design System audit + new token definitions"
50
+
51
+ - phase: 3
52
+ name: Execution Planning
53
+ category: CLARITY
54
+ sequence:
55
+ - agent: phases
56
+ action: create-roadmap
57
+ creates: [chati.dev/artifacts/5-Phases/phases.md]
58
+ - agent: tasks
59
+ action: create-tasks
60
+ creates: [chati.dev/artifacts/6-Tasks/tasks.md]
61
+
62
+ - phase: 4
63
+ name: Planning Quality Gate
64
+ category: CLARITY
65
+ sequence:
66
+ - agent: qa-planning
67
+ action: validate-traceability
68
+ creates: [chati.dev/artifacts/7-QA-Planning/qa-planning-report.md]
69
+
70
+ - phase: 5
71
+ name: Implementation
72
+ category: BUILD
73
+ sequence:
74
+ - agent: dev
75
+ action: implement-tasks
76
+ notes: "Design System token enforcement is critical for UI work"
77
+ - agent: qa-implementation
78
+ action: validate-code
79
+ creates: [chati.dev/artifacts/8-Validation/qa-implementation-report.md]
80
+
81
+ - phase: 6
82
+ name: Deployment
83
+ category: DEPLOY
84
+ sequence:
85
+ - agent: devops
86
+ action: deploy
87
+ creates: [chati.dev/artifacts/8-Validation/deploy-report.md]
@@ -0,0 +1,108 @@
1
+ # Greenfield Fullstack Workflow
2
+ # Handles: web apps, SaaS, MVP, enterprise, prototypes
3
+ # The single unified pipeline for all greenfield project types
4
+
5
+ workflow:
6
+ id: greenfield-fullstack
7
+ name: Greenfield Fullstack Development
8
+ version: "1.0.0"
9
+ type: greenfield
10
+ project_types: [web-app, saas, enterprise, prototype, mvp, api, mobile-web]
11
+ description: >
12
+ Complete development pipeline for new projects. The Architect agent
13
+ adapts scope based on project needs (full-stack, service-only, or UI-only)
14
+ rather than requiring separate workflow definitions.
15
+
16
+ phases:
17
+ - phase: 0
18
+ name: Discovery
19
+ category: CLARITY
20
+ sequence:
21
+ - agent: greenfield-wu
22
+ action: operational-discovery
23
+ creates: [chati.dev/artifacts/0-WU/wu-operational-report.md]
24
+ notes: "Operational context only (no codebase to analyze)"
25
+
26
+ - phase: 1
27
+ name: Problem Definition
28
+ category: CLARITY
29
+ sequence:
30
+ - agent: brief
31
+ action: problem-extraction
32
+ creates: [chati.dev/artifacts/1-Brief/brief-report.md]
33
+ notes: "5-phase extraction process"
34
+
35
+ - phase: 2
36
+ name: Product Specification
37
+ category: CLARITY
38
+ sequence:
39
+ - agent: detail
40
+ action: create-prd
41
+ creates: [chati.dev/artifacts/2-PRD/prd.md]
42
+ template: prd-tmpl.yaml
43
+ notes: "Detail comes BEFORE Architect in greenfield"
44
+
45
+ - phase: 3
46
+ name: Technical Design
47
+ category: CLARITY
48
+ sequence:
49
+ - agent: architect
50
+ action: design-architecture
51
+ creates: [chati.dev/artifacts/3-Architecture/architecture.md]
52
+ template: fullstack-architecture-tmpl.yaml
53
+ notes: "Tech stack selection, data model, deployment strategy"
54
+ - agent: ux
55
+ action: define-experience
56
+ creates: [chati.dev/artifacts/4-UX/ux-specification.md]
57
+ notes: "UX follows Architect (needs to know the stack)"
58
+
59
+ - phase: 4
60
+ name: Execution Planning
61
+ category: CLARITY
62
+ sequence:
63
+ - agent: phases
64
+ action: create-roadmap
65
+ creates: [chati.dev/artifacts/5-Phases/phases.md]
66
+ notes: "MVP-first phase breakdown"
67
+ - agent: tasks
68
+ action: create-tasks
69
+ creates: [chati.dev/artifacts/6-Tasks/tasks.md]
70
+ template: task-tmpl.yaml
71
+ notes: "Atomic tasks with Given-When-Then criteria"
72
+
73
+ - phase: 5
74
+ name: Planning Quality Gate
75
+ category: CLARITY
76
+ sequence:
77
+ - agent: qa-planning
78
+ action: validate-traceability
79
+ creates: [chati.dev/artifacts/7-QA-Planning/qa-planning-report.md]
80
+ template: qa-gate-tmpl.yaml
81
+ notes: "Must score >= 95% to proceed to BUILD"
82
+
83
+ - phase: 6
84
+ name: Implementation
85
+ category: BUILD
86
+ sequence:
87
+ - agent: dev
88
+ action: implement-tasks
89
+ notes: "Interactive or autonomous (Ralph Wiggum) mode"
90
+ - agent: qa-implementation
91
+ action: validate-code
92
+ creates: [chati.dev/artifacts/8-Validation/qa-implementation-report.md]
93
+ template: qa-gate-tmpl.yaml
94
+ notes: "Tests + SAST + code review. Must pass to deploy"
95
+
96
+ - phase: 7
97
+ name: Deployment
98
+ category: DEPLOY
99
+ sequence:
100
+ - agent: devops
101
+ action: deploy
102
+ creates: [chati.dev/artifacts/8-Validation/deploy-report.md]
103
+ notes: "Git operations, deployment, documentation"
104
+
105
+ transitions:
106
+ clarity_to_build: "QA-Planning score >= 95%"
107
+ build_to_deploy: "QA-Implementation APPROVED"
108
+ deploy_to_completed: "DevOps deployment verified"
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "chati-dev",
3
+ "version": "1.0.0",
4
+ "description": "AI-Powered Multi-Agent Development Framework — 13 agents, 7 IDEs, 4 languages",
5
+ "type": "module",
6
+ "bin": {
7
+ "chati": "bin/chati.js",
8
+ "chati-dev": "bin/chati.js"
9
+ },
10
+ "main": "src/wizard/index.js",
11
+ "files": [
12
+ "bin/",
13
+ "src/",
14
+ "assets/",
15
+ "framework/",
16
+ "scripts/"
17
+ ],
18
+ "scripts": {
19
+ "start": "node bin/chati.js",
20
+ "bundle": "node scripts/bundle-framework.js",
21
+ "prepublishOnly": "node scripts/bundle-framework.js",
22
+ "test": "node --test"
23
+ },
24
+ "keywords": [
25
+ "ai",
26
+ "agents",
27
+ "development",
28
+ "framework",
29
+ "planning",
30
+ "multi-agent",
31
+ "cli",
32
+ "claude",
33
+ "orchestration",
34
+ "fullstack"
35
+ ],
36
+ "author": "chati.dev",
37
+ "license": "MIT",
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "https://github.com/ogabrielalonso/chati-dev.git",
41
+ "directory": "packages/chati-dev"
42
+ },
43
+ "homepage": "https://github.com/ogabrielalonso/chati-dev#readme",
44
+ "bugs": {
45
+ "url": "https://github.com/ogabrielalonso/chati-dev/issues"
46
+ },
47
+ "dependencies": {
48
+ "@clack/prompts": "^0.7.0",
49
+ "chalk": "^5.3.0",
50
+ "ora": "^8.0.1",
51
+ "cli-progress": "^3.12.0",
52
+ "fs-extra": "^11.2.0",
53
+ "js-yaml": "^4.1.0",
54
+ "semver": "^7.6.0",
55
+ "blessed": "^0.1.81"
56
+ },
57
+ "engines": {
58
+ "node": ">=18.0.0"
59
+ }
60
+ }
@@ -0,0 +1,58 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Bundle framework files into the npm package.
5
+ * Run before `npm publish` — copies chati.dev/ source files
6
+ * into packages/chati-dev/framework/ so they ship with the package.
7
+ */
8
+
9
+ import { cpSync, mkdirSync, rmSync, existsSync } from 'fs';
10
+ import { join, dirname } from 'path';
11
+ import { fileURLToPath } from 'url';
12
+
13
+ const __dirname = dirname(fileURLToPath(import.meta.url));
14
+ const PACKAGE_ROOT = join(__dirname, '..');
15
+ const MONOREPO_ROOT = join(PACKAGE_ROOT, '..', '..');
16
+ const SOURCE = join(MONOREPO_ROOT, 'chati.dev');
17
+ const DEST = join(PACKAGE_ROOT, 'framework');
18
+
19
+ if (!existsSync(SOURCE)) {
20
+ console.error('Error: chati.dev/ source directory not found at:', SOURCE);
21
+ process.exit(1);
22
+ }
23
+
24
+ // Clean previous bundle
25
+ if (existsSync(DEST)) {
26
+ rmSync(DEST, { recursive: true });
27
+ }
28
+
29
+ // Copy framework files
30
+ console.log('Bundling framework files...');
31
+ mkdirSync(DEST, { recursive: true });
32
+
33
+ const dirs = [
34
+ 'orchestrator',
35
+ 'agents/clarity', 'agents/quality', 'agents/build', 'agents/deploy',
36
+ 'templates', 'workflows', 'quality-gates',
37
+ 'schemas', 'frameworks', 'intelligence', 'patterns',
38
+ 'i18n', 'migrations',
39
+ ];
40
+
41
+ for (const dir of dirs) {
42
+ const src = join(SOURCE, dir);
43
+ if (existsSync(src)) {
44
+ cpSync(src, join(DEST, dir), { recursive: true });
45
+ }
46
+ }
47
+
48
+ // Copy root files
49
+ const rootFiles = ['constitution.md', 'config.yaml'];
50
+ for (const file of rootFiles) {
51
+ const src = join(SOURCE, file);
52
+ if (existsSync(src)) {
53
+ cpSync(src, join(DEST, file));
54
+ }
55
+ }
56
+
57
+ console.log('Framework bundled to:', DEST);
58
+ console.log('Done.');
@@ -0,0 +1,80 @@
1
+ /**
2
+ * IDE Configuration Mapping (7 IDEs)
3
+ * Defines where chati.dev agents are deployed per IDE
4
+ */
5
+ export const IDE_CONFIGS = {
6
+ 'claude-code': {
7
+ name: 'Claude Code',
8
+ description: 'Anthropic official CLI',
9
+ recommended: true,
10
+ configPath: '.claude/commands/',
11
+ rulesFile: '.claude/CLAUDE.md',
12
+ mcpConfigFile: '.claude/mcp.json',
13
+ formatNotes: 'Native markdown format',
14
+ },
15
+ 'vscode': {
16
+ name: 'VS Code',
17
+ description: 'Extensions: Continue, Copilot Chat, etc',
18
+ recommended: false,
19
+ configPath: '.vscode/chati/',
20
+ rulesFile: '.vscode/chati/rules.md',
21
+ mcpConfigFile: null,
22
+ formatNotes: 'Markdown with VS Code extension support',
23
+ },
24
+ 'antigravity': {
25
+ name: 'AntiGravity',
26
+ description: 'Google agentic development platform',
27
+ recommended: false,
28
+ configPath: '.antigravity/agents/',
29
+ rulesFile: '.antigravity/rules.md',
30
+ mcpConfigFile: null,
31
+ formatNotes: 'Google platform format',
32
+ },
33
+ 'cursor': {
34
+ name: 'Cursor',
35
+ description: 'AI-first code editor',
36
+ recommended: false,
37
+ configPath: '.cursor/rules/',
38
+ rulesFile: '.cursorrules',
39
+ mcpConfigFile: null,
40
+ formatNotes: 'Cursor rules format',
41
+ },
42
+ 'windsurf': {
43
+ name: 'Windsurf',
44
+ description: 'AI-powered development environment',
45
+ recommended: false,
46
+ configPath: '.windsurf/rules/',
47
+ rulesFile: '.windsurfrules',
48
+ mcpConfigFile: null,
49
+ formatNotes: 'Windsurf rules format',
50
+ },
51
+ 'gemini-cli': {
52
+ name: 'Gemini CLI',
53
+ description: 'Google AI for development',
54
+ recommended: false,
55
+ configPath: '.gemini/agents/',
56
+ rulesFile: '.gemini/instructions.md',
57
+ mcpConfigFile: null,
58
+ formatNotes: 'Gemini agent format',
59
+ },
60
+ 'github-copilot': {
61
+ name: 'GitHub Copilot',
62
+ description: 'GitHub AI pair programmer',
63
+ recommended: false,
64
+ configPath: '.github/agents/',
65
+ rulesFile: '.github/copilot-instructions.md',
66
+ mcpConfigFile: null,
67
+ formatNotes: 'GitHub Copilot format',
68
+ },
69
+ };
70
+
71
+ /**
72
+ * Get list of IDEs for selection prompt
73
+ */
74
+ export function getIDEChoices() {
75
+ return Object.entries(IDE_CONFIGS).map(([key, config]) => ({
76
+ value: key,
77
+ label: `${config.name}${config.recommended ? ' (Recommended)' : ''}`,
78
+ hint: config.description,
79
+ }));
80
+ }