oneie 1.2.2 → 1.2.3

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.
@@ -0,0 +1,661 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Enhanced Template Generation System
5
+ * Dynamic template creation with deep context detection and personalization
6
+ */
7
+
8
+ import fs from 'fs-extra';
9
+ import path from 'path';
10
+ import yaml from 'js-yaml';
11
+
12
+ export class TemplateGenerator {
13
+ constructor(context, architecture, projectPath) {
14
+ this.context = context;
15
+ this.architecture = architecture;
16
+ this.projectPath = projectPath;
17
+ this.templates = new Map();
18
+ }
19
+
20
+ async generateAllTemplates() {
21
+ await this.generateMissionTemplate();
22
+ await this.generateStoryTemplate();
23
+ await this.generateTaskTemplate();
24
+ await this.generateWorkflowTemplate();
25
+ await this.generateAgentConfiguration();
26
+ await this.generateSpaceConfiguration();
27
+ return this.templates;
28
+ }
29
+
30
+ async generateMissionTemplate() {
31
+ const template = {
32
+ context: this.context.type,
33
+ template: this.createMissionTemplate(),
34
+ filename: 'mission-template.md'
35
+ };
36
+
37
+ this.templates.set('mission', template);
38
+
39
+ const templatePath = path.join(this.projectPath, '.one/templates/mission-template.md');
40
+ await fs.writeFile(templatePath, template.template);
41
+ }
42
+
43
+ createMissionTemplate() {
44
+ const contextTemplates = {
45
+ 'elementary-school': this.createSchoolMissionTemplate(),
46
+ 'university-research': this.createResearchMissionTemplate(),
47
+ 'professional-business': this.createBusinessMissionTemplate(),
48
+ 'government-agency': this.createGovernmentMissionTemplate()
49
+ };
50
+
51
+ return contextTemplates[this.context.type] || contextTemplates['professional-business'];
52
+ }
53
+
54
+ createSchoolMissionTemplate() {
55
+ const detectedSubjects = this.detectSubjects();
56
+ const gradeLevel = this.estimateGradeLevel();
57
+
58
+ return `# 🎯 Learning Mission Template
59
+
60
+ ## Mission Objective
61
+ **What do you want to learn or achieve?**
62
+ - [ ] Complete ${detectedSubjects.length > 0 ? detectedSubjects[0] : 'your subject'} assignment
63
+ - [ ] Understand new concepts
64
+ - [ ] Practice problem-solving skills
65
+ - [ ] Prepare for upcoming test
66
+
67
+ ## Learning Partners
68
+ **Your AI Study Group:**
69
+ ${this.context.agents.map(agent => `- 🤖 **${agent}**: ${this.getAgentDescription(agent)}`).join('\n')}
70
+
71
+ ## Success Criteria
72
+ **How will you know you've succeeded?**
73
+ - [ ] Assignment completed with good understanding
74
+ - [ ] Can explain concepts to someone else
75
+ - [ ] Feel confident about the material
76
+ - [ ] Ready for next lesson
77
+
78
+ ## Learning Plan
79
+ **Step by step approach:**
80
+ 1. **Review** - Look at what you already know
81
+ 2. **Learn** - Study new material with AI helpers
82
+ 3. **Practice** - Try problems and get feedback
83
+ 4. **Review** - Make sure you understand everything
84
+
85
+ ## Fun Factor
86
+ **Make it enjoyable:**
87
+ - 🎮 Turn difficult concepts into games
88
+ - 🏆 Celebrate small wins
89
+ - 👥 Work together with your AI friends
90
+ - ✨ Discover cool connections
91
+
92
+ ---
93
+ *Created by your AI Study Group - Learning Helper, Creative Friend & Study Partner*`;
94
+ }
95
+
96
+ createResearchMissionTemplate() {
97
+ const researchArea = this.detectResearchArea();
98
+ const methodology = this.suggestMethodology();
99
+
100
+ return `# 📚 Research Mission Template
101
+
102
+ ## Research Objective
103
+ **Primary research question:**
104
+ ${researchArea ? `Focus area: ${researchArea}` : 'Define your research question'}
105
+
106
+ **Hypothesis/Expected outcomes:**
107
+ - [ ] Literature review complete
108
+ - [ ] Methodology defined
109
+ - [ ] Data collection strategy established
110
+ - [ ] Analysis framework ready
111
+
112
+ ## Research Collaboration Team
113
+ **Your Academic Partners:**
114
+ ${this.context.agents.map(agent => `- 🎓 **${agent}**: ${this.getAgentDescription(agent)}`).join('\n')}
115
+
116
+ ## Methodology Framework
117
+ **Suggested approach: ${methodology}**
118
+ - [ ] Literature review and gap analysis
119
+ - [ ] Research design validation
120
+ - [ ] Data collection protocols
121
+ - [ ] Analysis and interpretation methods
122
+
123
+ ## Academic Standards
124
+ **Quality gates:**
125
+ - [ ] Peer review by AI Research Collaborator
126
+ - [ ] Methodology validation by expert systems
127
+ - [ ] Statistical significance confirmed
128
+ - [ ] Ethical considerations addressed
129
+
130
+ ## Timeline & Milestones
131
+ - **Week 1-2**: Literature review and theoretical framework
132
+ - **Week 3-4**: Methodology design and validation
133
+ - **Week 5-6**: Data collection phase
134
+ - **Week 7-8**: Analysis and interpretation
135
+ - **Week 9**: Conclusions and recommendations
136
+
137
+ ---
138
+ *Academic collaboration with Research Collaborator, Data Analyst & Methodology Guide*`;
139
+ }
140
+
141
+ createBusinessMissionTemplate() {
142
+ const businessType = this.detectBusinessType();
143
+ const industry = this.detectIndustry();
144
+
145
+ return `# 🚀 Strategic Business Mission Template
146
+
147
+ ## Business Objective
148
+ **Strategic goal:**
149
+ ${businessType ? `Business model: ${businessType}` : 'Define your business objective'}
150
+ ${industry ? `Industry: ${industry}` : ''}
151
+
152
+ **Key results:**
153
+ - [ ] Market opportunity validated
154
+ - [ ] Product-market fit achieved
155
+ - [ ] Revenue targets met
156
+ - [ ] Customer satisfaction improved
157
+
158
+ ## Executive Partnership
159
+ **Your AI Co-Founders:**
160
+ ${this.context.agents.map(agent => `- 💼 **${agent}**: ${this.getAgentDescription(agent)}`).join('\n')}
161
+
162
+ ## Strategic Framework
163
+ **Business strategy approach:**
164
+ - [ ] Market analysis and competitive positioning
165
+ - [ ] Customer discovery and validation
166
+ - [ ] Product development and iteration
167
+ - [ ] Go-to-market strategy execution
168
+
169
+ ## Success Metrics
170
+ **KPIs to track:**
171
+ - Revenue growth: ___% target
172
+ - Customer acquisition: ___ new customers
173
+ - Market share: ___% target
174
+ - Customer satisfaction: ___/10 rating
175
+
176
+ ## Execution Plan
177
+ - **Phase 1**: Foundation and strategy
178
+ - **Phase 2**: Product development and validation
179
+ - **Phase 3**: Market launch and scaling
180
+ - **Phase 4**: Optimization and growth
181
+
182
+ ## Risk Management
183
+ - [ ] Identify key risks and mitigation strategies
184
+ - [ ] Establish monitoring and alert systems
185
+ - [ ] Create contingency plans
186
+ - [ ] Regular strategy review and adjustment
187
+
188
+ ---
189
+ *Strategic partnership with Executive Partner, Strategy Analyst & Implementation Lead*`;
190
+ }
191
+
192
+ createGovernmentMissionTemplate() {
193
+ return `# 🏛️ Public Service Mission Template
194
+
195
+ ## Public Service Objective
196
+ **Citizen-focused goal:**
197
+ [Define the public benefit and service improvement]
198
+
199
+ **Stakeholder impact:**
200
+ - [ ] Citizens served effectively
201
+ - [ ] Regulatory compliance maintained
202
+ - [ ] Transparency standards met
203
+ - [ ] Public accountability ensured
204
+
205
+ ## Institutional Partnership
206
+ **Your AI Public Service Team:**
207
+ ${this.context.agents.map(agent => `- 🏢 **${agent}**: ${this.getAgentDescription(agent)}`).join('\n')}
208
+
209
+ ## Governance Framework
210
+ **Public service standards:**
211
+ - [ ] Regulatory compliance verification
212
+ - [ ] Transparency and accountability measures
213
+ - [ ] Citizen feedback integration
214
+ - [ ] Performance measurement systems
215
+
216
+ ## Public Accountability
217
+ **Transparency measures:**
218
+ - [ ] Public consultation completed
219
+ - [ ] Impact assessment published
220
+ - [ ] Progress reports scheduled
221
+ - [ ] Citizen feedback channels active
222
+
223
+ ## Implementation Timeline
224
+ - **Planning Phase**: Stakeholder consultation and requirements
225
+ - **Development Phase**: Solution design and compliance review
226
+ - **Testing Phase**: Pilot programs and citizen feedback
227
+ - **Deployment Phase**: Full implementation and monitoring
228
+
229
+ ---
230
+ *Public service collaboration with Policy Analyst, Compliance Partner & Public Service Guide*`;
231
+ }
232
+
233
+ async generateStoryTemplate() {
234
+ const template = {
235
+ context: this.context.type,
236
+ template: this.createStoryTemplate(),
237
+ filename: 'story-template.md'
238
+ };
239
+
240
+ this.templates.set('story', template);
241
+
242
+ const templatePath = path.join(this.projectPath, '.one/templates/story-template.md');
243
+ await fs.writeFile(templatePath, template.template);
244
+ }
245
+
246
+ createStoryTemplate() {
247
+ const contextPrompts = {
248
+ 'elementary-school': {
249
+ title: '📖 Learning Story',
250
+ description: 'A fun learning adventure with your AI study buddies',
251
+ participants: 'you and your AI friends',
252
+ outcome: 'master new skills and have fun learning'
253
+ },
254
+ 'university-research': {
255
+ title: '🔬 Research Story',
256
+ description: 'Collaborative academic investigation with peer AI researchers',
257
+ participants: 'research team including AI collaborators',
258
+ outcome: 'advance knowledge and contribute to your field'
259
+ },
260
+ 'professional-business': {
261
+ title: '💼 Business Story',
262
+ description: 'Strategic business initiative with AI co-founders',
263
+ participants: 'business team with AI executive partners',
264
+ outcome: 'achieve business objectives and drive growth'
265
+ },
266
+ 'government-agency': {
267
+ title: '🏛️ Public Service Story',
268
+ description: 'Citizen-focused initiative with institutional AI partners',
269
+ participants: 'public service team with AI policy experts',
270
+ outcome: 'serve citizens effectively and maintain public trust'
271
+ }
272
+ };
273
+
274
+ const context = contextPrompts[this.context.type] || contextPrompts['professional-business'];
275
+
276
+ return `# ${context.title} Template
277
+
278
+ ## Story Overview
279
+ **Narrative:** ${context.description}
280
+
281
+ **From Mission:** [Link to parent mission]
282
+
283
+ **Participants:** ${context.participants}
284
+ - Humans: []
285
+ ${this.context.agents.map(agent => `- AI: ${agent}`).join('\n')}
286
+
287
+ ## Story Arc
288
+ **Beginning:** What situation or opportunity starts this story?
289
+
290
+ **Middle:** What challenges and solutions emerge along the way?
291
+
292
+ **End:** What success looks like when the story concludes?
293
+
294
+ ## Collaborative Elements
295
+ **Human Contributions:**
296
+ - [ ] Strategic decisions and creative insights
297
+ - [ ] Domain expertise and intuition
298
+ - [ ] Stakeholder relationships and communication
299
+
300
+ **AI Contributions:**
301
+ - [ ] Data analysis and pattern recognition
302
+ - [ ] 24/7 availability and consistent execution
303
+ - [ ] Rapid prototyping and iteration
304
+
305
+ ## Success Criteria
306
+ **Story completion requires:**
307
+ - [ ] All participants agree on outcomes
308
+ - [ ] Quality standards met through peer review
309
+ - [ ] Knowledge captured and documented
310
+ - [ ] Lessons learned integrated for future stories
311
+
312
+ ## Conversation Threads
313
+ **Active dialogues:**
314
+ - Main planning conversation: [link]
315
+ - Technical discussion: [link]
316
+ - Review and validation: [link]
317
+
318
+ ## Story Outcome
319
+ **Expected result:** ${context.outcome}
320
+
321
+ **Next story possibilities:**
322
+ - [ ] Follow-up story based on results
323
+ - [ ] Parallel story for related objectives
324
+ - [ ] Spin-off story for new opportunities
325
+
326
+ ---
327
+ *${this.context.style.replace('_', ' ')} between humans and AI agents*`;
328
+ }
329
+
330
+ async generateTaskTemplate() {
331
+ const template = {
332
+ context: this.context.type,
333
+ template: this.createTaskTemplate(),
334
+ filename: 'task-template.md'
335
+ };
336
+
337
+ this.templates.set('task', template);
338
+
339
+ const templatePath = path.join(this.projectPath, '.one/templates/task-template.md');
340
+ await fs.writeFile(templatePath, template.template);
341
+ }
342
+
343
+ createTaskTemplate() {
344
+ const contextTasks = {
345
+ 'elementary-school': 'learning activity',
346
+ 'university-research': 'research task',
347
+ 'professional-business': 'business task',
348
+ 'government-agency': 'public service task'
349
+ };
350
+
351
+ const taskType = contextTasks[this.context.type] || 'collaborative task';
352
+
353
+ return `# ✅ Task Template
354
+
355
+ ## Task Details
356
+ **Type:** ${taskType}
357
+ **From Story:** [Link to parent story]
358
+ **Assigned to:** [Human and/or AI agent]
359
+ **Priority:** [High/Medium/Low]
360
+ **Estimated effort:** [Time estimate]
361
+
362
+ ## Task Description
363
+ **What needs to be done:**
364
+ [Clear, specific description of the task]
365
+
366
+ **Why it matters:**
367
+ [Connection to story and mission objectives]
368
+
369
+ ## Acceptance Criteria
370
+ **Task is complete when:**
371
+ - [ ] Specific deliverable 1 completed
372
+ - [ ] Specific deliverable 2 completed
373
+ - [ ] Quality review passed
374
+ - [ ] Documentation updated
375
+
376
+ ## Collaboration Approach
377
+ **Human role:**
378
+ [What the human contributor focuses on]
379
+
380
+ **AI agent role:**
381
+ [What the AI agent contributes]
382
+
383
+ **Consensus required on:**
384
+ - [ ] Approach and methodology
385
+ - [ ] Quality standards met
386
+ - [ ] Completion criteria satisfied
387
+
388
+ ## Resources Needed
389
+ - [ ] Information/data: [specify]
390
+ - [ ] Tools/software: [specify]
391
+ - [ ] People/expertise: [specify]
392
+ - [ ] Time/availability: [specify]
393
+
394
+ ## Dependencies
395
+ **Blocked by:** [Other tasks that must complete first]
396
+ **Blocking:** [Tasks waiting for this to complete]
397
+
398
+ ## Progress Tracking
399
+ - **Started:** [date]
400
+ - **Key milestones:**
401
+ - [ ] Milestone 1: [description] - [target date]
402
+ - [ ] Milestone 2: [description] - [target date]
403
+ - **Completed:** [date]
404
+
405
+ ## Notes & Insights
406
+ **Conversation log:** [Link to task discussion thread]
407
+ **Lessons learned:** [Captured during and after completion]
408
+ **Recommendations:** [For similar future tasks]
409
+
410
+ ---
411
+ *Collaborative execution with equal human-AI participation*`;
412
+ }
413
+
414
+ async generateWorkflowTemplate() {
415
+ const workflow = this.createWorkflowConfiguration();
416
+
417
+ const templatePath = path.join(this.projectPath, '.one/templates/workflow-template.yaml');
418
+ await fs.writeFile(templatePath, yaml.dump(workflow));
419
+
420
+ this.templates.set('workflow', { context: this.context.type, template: workflow });
421
+ }
422
+
423
+ createWorkflowConfiguration() {
424
+ return {
425
+ name: `${this.context.type}-workflow`,
426
+ description: `Collaborative workflow optimized for ${this.context.type} context`,
427
+ version: '1.0.0',
428
+ workflow_type: this.context.type,
429
+
430
+ participants: {
431
+ humans: [],
432
+ ai_agents: this.context.agents
433
+ },
434
+
435
+ phases: this.createWorkflowPhases(),
436
+
437
+ collaboration_rules: {
438
+ consensus_required: true,
439
+ equal_participation: true,
440
+ quality_gates: this.createQualityGates(),
441
+ communication_style: this.context.tone
442
+ },
443
+
444
+ success_metrics: this.createSuccessMetrics()
445
+ };
446
+ }
447
+
448
+ createWorkflowPhases() {
449
+ const phaseTemplates = {
450
+ 'elementary-school': [
451
+ { name: 'understand', duration: '30 minutes', description: 'Make sure we understand what to learn' },
452
+ { name: 'explore', duration: '45 minutes', description: 'Discover and learn new things together' },
453
+ { name: 'practice', duration: '60 minutes', description: 'Try problems and get better' },
454
+ { name: 'celebrate', duration: '15 minutes', description: 'Share what we learned and celebrate!' }
455
+ ],
456
+ 'university-research': [
457
+ { name: 'literature_review', duration: '2-3 weeks', description: 'Comprehensive analysis of existing research' },
458
+ { name: 'methodology_design', duration: '1-2 weeks', description: 'Research design and validation' },
459
+ { name: 'data_collection', duration: '3-4 weeks', description: 'Systematic data gathering' },
460
+ { name: 'analysis', duration: '2-3 weeks', description: 'Statistical analysis and interpretation' },
461
+ { name: 'publication', duration: '2-3 weeks', description: 'Results documentation and peer review' }
462
+ ],
463
+ 'professional-business': [
464
+ { name: 'strategy', duration: '1-2 weeks', description: 'Strategic planning and market analysis' },
465
+ { name: 'development', duration: '4-6 weeks', description: 'Product/service development' },
466
+ { name: 'validation', duration: '2-3 weeks', description: 'Market validation and testing' },
467
+ { name: 'launch', duration: '2-3 weeks', description: 'Go-to-market execution' },
468
+ { name: 'optimization', duration: 'ongoing', description: 'Performance monitoring and improvement' }
469
+ ],
470
+ 'government-agency': [
471
+ { name: 'consultation', duration: '3-4 weeks', description: 'Stakeholder engagement and requirements' },
472
+ { name: 'compliance_review', duration: '2-3 weeks', description: 'Regulatory and policy compliance' },
473
+ { name: 'development', duration: '6-8 weeks', description: 'Solution development and testing' },
474
+ { name: 'pilot', duration: '4-6 weeks', description: 'Pilot program and citizen feedback' },
475
+ { name: 'deployment', duration: '2-3 weeks', description: 'Full implementation and monitoring' }
476
+ ]
477
+ };
478
+
479
+ return phaseTemplates[this.context.type] || phaseTemplates['professional-business'];
480
+ }
481
+
482
+ createQualityGates() {
483
+ const qualityTemplates = {
484
+ 'elementary-school': [
485
+ 'understanding_verified',
486
+ 'practice_completed',
487
+ 'ai_helper_approval',
488
+ 'learning_celebrated'
489
+ ],
490
+ 'university-research': [
491
+ 'literature_review_complete',
492
+ 'methodology_validated',
493
+ 'data_quality_assured',
494
+ 'peer_review_passed'
495
+ ],
496
+ 'professional-business': [
497
+ 'market_validation_complete',
498
+ 'product_quality_verified',
499
+ 'business_metrics_achieved',
500
+ 'stakeholder_approval'
501
+ ],
502
+ 'government-agency': [
503
+ 'regulatory_compliance_verified',
504
+ 'public_consultation_complete',
505
+ 'transparency_standards_met',
506
+ 'citizen_impact_measured'
507
+ ]
508
+ };
509
+
510
+ return qualityTemplates[this.context.type] || qualityTemplates['professional-business'];
511
+ }
512
+
513
+ createSuccessMetrics() {
514
+ const metricsTemplates = {
515
+ 'elementary-school': [
516
+ 'understanding_level',
517
+ 'problem_solving_improvement',
518
+ 'confidence_gained',
519
+ 'fun_factor_rating'
520
+ ],
521
+ 'university-research': [
522
+ 'research_contribution_significance',
523
+ 'methodology_innovation',
524
+ 'peer_review_scores',
525
+ 'citation_potential'
526
+ ],
527
+ 'professional-business': [
528
+ 'revenue_growth',
529
+ 'customer_satisfaction',
530
+ 'market_share_increase',
531
+ 'team_productivity'
532
+ ],
533
+ 'government-agency': [
534
+ 'citizen_satisfaction',
535
+ 'service_efficiency',
536
+ 'compliance_score',
537
+ 'transparency_rating'
538
+ ]
539
+ };
540
+
541
+ return metricsTemplates[this.context.type] || metricsTemplates['professional-business'];
542
+ }
543
+
544
+ // Context detection helpers
545
+ detectSubjects() {
546
+ const subjectKeywords = {
547
+ 'math': ['math', 'algebra', 'geometry', 'calculus', 'statistics'],
548
+ 'science': ['biology', 'chemistry', 'physics', 'science'],
549
+ 'english': ['english', 'literature', 'writing', 'essay'],
550
+ 'history': ['history', 'social', 'studies', 'government'],
551
+ 'computer': ['programming', 'coding', 'computer', 'technology']
552
+ };
553
+
554
+ const detectedSubjects = [];
555
+ const fileNames = this.architecture.files.map(f => f.toLowerCase());
556
+
557
+ for (const [subject, keywords] of Object.entries(subjectKeywords)) {
558
+ if (keywords.some(keyword => fileNames.some(file => file.includes(keyword)))) {
559
+ detectedSubjects.push(subject);
560
+ }
561
+ }
562
+
563
+ return detectedSubjects;
564
+ }
565
+
566
+ estimateGradeLevel() {
567
+ // Simple heuristic based on folder structure and file complexity
568
+ if (this.architecture.files.some(f => f.includes('elementary') || f.includes('basic'))) {
569
+ return 'elementary';
570
+ }
571
+ if (this.architecture.files.some(f => f.includes('middle') || f.includes('intermediate'))) {
572
+ return 'middle_school';
573
+ }
574
+ if (this.architecture.files.some(f => f.includes('high') || f.includes('advanced'))) {
575
+ return 'high_school';
576
+ }
577
+ return 'general';
578
+ }
579
+
580
+ detectResearchArea() {
581
+ const researchKeywords = [
582
+ 'machine-learning', 'artificial-intelligence', 'data-science',
583
+ 'psychology', 'sociology', 'economics', 'biology', 'chemistry',
584
+ 'physics', 'computer-science', 'engineering', 'medicine'
585
+ ];
586
+
587
+ const fileNames = this.architecture.files.map(f => f.toLowerCase());
588
+ const detectedAreas = researchKeywords.filter(area =>
589
+ fileNames.some(file => file.includes(area.replace('-', '')))
590
+ );
591
+
592
+ return detectedAreas[0] || null;
593
+ }
594
+
595
+ suggestMethodology() {
596
+ const hasData = this.architecture.files.some(f =>
597
+ f.toLowerCase().includes('data') || f.endsWith('.csv') || f.endsWith('.json')
598
+ );
599
+
600
+ const hasCode = this.architecture.files.some(f =>
601
+ f.endsWith('.py') || f.endsWith('.r') || f.endsWith('.js')
602
+ );
603
+
604
+ if (hasData && hasCode) return 'quantitative_analysis';
605
+ if (hasData) return 'data_driven_research';
606
+ if (hasCode) return 'computational_research';
607
+ return 'qualitative_research';
608
+ }
609
+
610
+ detectBusinessType() {
611
+ const businessKeywords = {
612
+ 'saas': ['saas', 'software', 'api', 'platform'],
613
+ 'ecommerce': ['shop', 'store', 'product', 'inventory', 'cart'],
614
+ 'consulting': ['consulting', 'service', 'client', 'advisory'],
615
+ 'startup': ['startup', 'mvp', 'prototype', 'funding']
616
+ };
617
+
618
+ const fileNames = this.architecture.files.map(f => f.toLowerCase());
619
+
620
+ for (const [type, keywords] of Object.entries(businessKeywords)) {
621
+ if (keywords.some(keyword => fileNames.some(file => file.includes(keyword)))) {
622
+ return type;
623
+ }
624
+ }
625
+
626
+ return null;
627
+ }
628
+
629
+ detectIndustry() {
630
+ const industries = [
631
+ 'fintech', 'healthcare', 'education', 'retail', 'manufacturing',
632
+ 'real-estate', 'entertainment', 'automotive', 'agriculture'
633
+ ];
634
+
635
+ const fileNames = this.architecture.files.map(f => f.toLowerCase());
636
+ const detectedIndustry = industries.find(industry =>
637
+ fileNames.some(file => file.includes(industry))
638
+ );
639
+
640
+ return detectedIndustry || null;
641
+ }
642
+
643
+ getAgentDescription(agent) {
644
+ const descriptions = {
645
+ 'Learning Helper': 'Patient guide for understanding difficult concepts',
646
+ 'Creative Friend': 'Makes learning fun with games and creative activities',
647
+ 'Study Partner': 'Peer-level support for homework and practice',
648
+ 'Research Collaborator': 'Academic peer for methodology and analysis',
649
+ 'Data Analyst': 'Statistical analysis and data interpretation expert',
650
+ 'Methodology Guide': 'Research design and validation specialist',
651
+ 'Executive Partner': 'Strategic business decisions and leadership',
652
+ 'Strategy Analyst': 'Market analysis and competitive intelligence',
653
+ 'Implementation Lead': 'Execution coordination and project management',
654
+ 'Policy Analyst': 'Regulatory compliance and governance expert',
655
+ 'Compliance Partner': 'Risk management and audit support',
656
+ 'Public Service Guide': 'Citizen-focused service delivery optimization'
657
+ };
658
+
659
+ return descriptions[agent] || 'Collaborative AI partner';
660
+ }
661
+ }