humanbehavior-js 0.4.28 → 0.5.1

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 (140) hide show
  1. package/README.md +151 -0
  2. package/package.json +116 -78
  3. package/packages/angular/dist/index.d.ts +46 -0
  4. package/packages/angular/dist/index.d.ts.map +1 -0
  5. package/packages/angular/dist/index.js +2 -0
  6. package/packages/angular/dist/index.js.map +1 -0
  7. package/packages/angular/dist/index.mjs +2 -0
  8. package/packages/angular/dist/index.mjs.map +1 -0
  9. package/packages/browser/dist/index.d.ts +5 -0
  10. package/packages/browser/dist/index.d.ts.map +1 -0
  11. package/packages/browser/dist/index.iife.js +12095 -0
  12. package/packages/browser/dist/index.iife.js.map +1 -0
  13. package/packages/browser/dist/index.js +2 -0
  14. package/packages/browser/dist/index.js.map +1 -0
  15. package/packages/browser/dist/index.min.js +2 -0
  16. package/packages/browser/dist/index.min.js.map +1 -0
  17. package/packages/browser/dist/index.mjs +2 -0
  18. package/packages/browser/dist/index.mjs.map +1 -0
  19. package/packages/react/dist/browser.d.ts +2 -0
  20. package/packages/react/dist/browser.d.ts.map +1 -0
  21. package/packages/react/dist/index.d.ts +48 -0
  22. package/packages/react/dist/index.d.ts.map +1 -0
  23. package/packages/react/dist/index.js +2 -0
  24. package/packages/react/dist/index.js.map +1 -0
  25. package/packages/react/dist/index.mjs +2 -0
  26. package/packages/react/dist/index.mjs.map +1 -0
  27. package/packages/remix/dist/index.d.ts +8 -0
  28. package/packages/remix/dist/index.d.ts.map +1 -0
  29. package/packages/remix/dist/index.js +2 -0
  30. package/packages/remix/dist/index.js.map +1 -0
  31. package/packages/remix/dist/index.mjs +2 -0
  32. package/packages/remix/dist/index.mjs.map +1 -0
  33. package/packages/svelte/dist/index.d.ts +11 -0
  34. package/packages/svelte/dist/index.d.ts.map +1 -0
  35. package/packages/svelte/dist/index.js +2 -0
  36. package/packages/svelte/dist/index.js.map +1 -0
  37. package/packages/svelte/dist/index.mjs +2 -0
  38. package/packages/svelte/dist/index.mjs.map +1 -0
  39. package/{dist/types/vue → packages/vue/dist}/index.d.ts +4 -5
  40. package/packages/vue/dist/index.d.ts.map +1 -0
  41. package/packages/vue/dist/index.js +2 -0
  42. package/packages/vue/dist/index.js.map +1 -0
  43. package/packages/vue/dist/index.mjs +2 -0
  44. package/packages/vue/dist/index.mjs.map +1 -0
  45. package/packages/wizard/dist/ai/ai-install-wizard.d.ts +145 -0
  46. package/packages/wizard/dist/ai/ai-install-wizard.d.ts.map +1 -0
  47. package/packages/wizard/dist/ai/manual-framework-wizard.d.ts +52 -0
  48. package/packages/wizard/dist/ai/manual-framework-wizard.d.ts.map +1 -0
  49. package/packages/wizard/dist/cli/ai-auto-install.d.ts +27 -0
  50. package/packages/wizard/dist/cli/ai-auto-install.d.ts.map +1 -0
  51. package/{dist → packages/wizard/dist}/cli/ai-auto-install.js +821 -905
  52. package/packages/wizard/dist/cli/ai-auto-install.js.map +1 -0
  53. package/packages/wizard/dist/cli/auto-install.d.ts +26 -0
  54. package/packages/wizard/dist/cli/auto-install.d.ts.map +1 -0
  55. package/{dist → packages/wizard/dist}/cli/auto-install.js +821 -905
  56. package/packages/wizard/dist/cli/auto-install.js.map +1 -0
  57. package/{dist/types → packages/wizard/dist/core}/install-wizard.d.ts +6 -8
  58. package/packages/wizard/dist/core/install-wizard.d.ts.map +1 -0
  59. package/packages/wizard/dist/index.d.ts +18 -0
  60. package/packages/wizard/dist/index.d.ts.map +1 -0
  61. package/packages/wizard/dist/index.js +2 -0
  62. package/packages/wizard/dist/index.js.map +1 -0
  63. package/packages/wizard/dist/index.mjs +2 -0
  64. package/packages/wizard/dist/index.mjs.map +1 -0
  65. package/packages/wizard/dist/services/centralized-ai-service.d.ts +159 -0
  66. package/packages/wizard/dist/services/centralized-ai-service.d.ts.map +1 -0
  67. package/packages/wizard/dist/services/remote-ai-service.d.ts +58 -0
  68. package/packages/wizard/dist/services/remote-ai-service.d.ts.map +1 -0
  69. package/WIZARD_USAGE_GUIDE.md +0 -381
  70. package/dist/cjs/angular/index.cjs +0 -14979
  71. package/dist/cjs/angular/index.cjs.map +0 -1
  72. package/dist/cjs/index.cjs +0 -14964
  73. package/dist/cjs/index.cjs.map +0 -1
  74. package/dist/cjs/install-wizard.cjs +0 -1576
  75. package/dist/cjs/install-wizard.cjs.map +0 -1
  76. package/dist/cjs/react/index.cjs +0 -15103
  77. package/dist/cjs/react/index.cjs.map +0 -1
  78. package/dist/cjs/remix/index.cjs +0 -15077
  79. package/dist/cjs/remix/index.cjs.map +0 -1
  80. package/dist/cjs/svelte/index.cjs +0 -14933
  81. package/dist/cjs/svelte/index.cjs.map +0 -1
  82. package/dist/cjs/vue/index.cjs +0 -14942
  83. package/dist/cjs/vue/index.cjs.map +0 -1
  84. package/dist/cjs/wizard/index.cjs +0 -3490
  85. package/dist/cjs/wizard/index.cjs.map +0 -1
  86. package/dist/cli/ai-auto-install.js.map +0 -1
  87. package/dist/cli/auto-install.js.map +0 -1
  88. package/dist/esm/angular/index.js +0 -14975
  89. package/dist/esm/angular/index.js.map +0 -1
  90. package/dist/esm/index.js +0 -14941
  91. package/dist/esm/index.js.map +0 -1
  92. package/dist/esm/install-wizard.js +0 -1553
  93. package/dist/esm/install-wizard.js.map +0 -1
  94. package/dist/esm/react/index.js +0 -15097
  95. package/dist/esm/react/index.js.map +0 -1
  96. package/dist/esm/remix/index.js +0 -15073
  97. package/dist/esm/remix/index.js.map +0 -1
  98. package/dist/esm/svelte/index.js +0 -14931
  99. package/dist/esm/svelte/index.js.map +0 -1
  100. package/dist/esm/vue/index.js +0 -14940
  101. package/dist/esm/vue/index.js.map +0 -1
  102. package/dist/esm/wizard/index.js +0 -3459
  103. package/dist/esm/wizard/index.js.map +0 -1
  104. package/dist/index.min.js +0 -2
  105. package/dist/index.min.js.map +0 -1
  106. package/dist/types/angular/index.d.ts +0 -357
  107. package/dist/types/index.d.ts +0 -644
  108. package/dist/types/react/index.d.ts +0 -345
  109. package/dist/types/remix/index.d.ts +0 -336
  110. package/dist/types/svelte/index.d.ts +0 -322
  111. package/dist/types/wizard/index.d.ts +0 -523
  112. package/readme.md +0 -335
  113. package/rollup.config.js +0 -422
  114. package/simple-spa.html +0 -1000
  115. package/src/angular/index.ts +0 -79
  116. package/src/api.ts +0 -416
  117. package/src/index.ts +0 -35
  118. package/src/react/AutoInstallWizard.tsx +0 -557
  119. package/src/react/browser.ts +0 -8
  120. package/src/react/index.tsx +0 -308
  121. package/src/redact.ts +0 -327
  122. package/src/remix/index.ts +0 -16
  123. package/src/svelte/index.ts +0 -14
  124. package/src/tracker.ts +0 -1587
  125. package/src/types/clack.d.ts +0 -31
  126. package/src/utils/ip-detector.ts +0 -158
  127. package/src/utils/logger.ts +0 -144
  128. package/src/utils/property-detector.ts +0 -345
  129. package/src/utils/property-manager.ts +0 -274
  130. package/src/vue/index.ts +0 -29
  131. package/src/wizard/README.md +0 -114
  132. package/src/wizard/ai/ai-install-wizard.ts +0 -897
  133. package/src/wizard/ai/manual-framework-wizard.ts +0 -238
  134. package/src/wizard/cli/ai-auto-install.ts +0 -241
  135. package/src/wizard/cli/auto-install.ts +0 -224
  136. package/src/wizard/core/install-wizard.ts +0 -1794
  137. package/src/wizard/index.ts +0 -23
  138. package/src/wizard/services/centralized-ai-service.ts +0 -668
  139. package/src/wizard/services/remote-ai-service.ts +0 -240
  140. package/tsconfig.json +0 -24
@@ -1,523 +0,0 @@
1
- /**
2
- * HumanBehavior SDK Auto-Installation Wizard
3
- *
4
- * This wizard automatically detects the user's framework and modifies their codebase
5
- * to integrate the SDK with minimal user intervention.
6
- */
7
- interface FrameworkInfo$2 {
8
- name: string;
9
- type: 'react' | 'vue' | 'angular' | 'svelte' | 'nextjs' | 'nuxt' | 'remix' | 'vanilla' | 'astro' | 'gatsby' | 'node' | 'auto';
10
- bundler?: 'vite' | 'webpack' | 'esbuild' | 'rollup';
11
- packageManager?: 'npm' | 'yarn' | 'pnpm';
12
- hasTypeScript?: boolean;
13
- hasRouter?: boolean;
14
- projectRoot?: string;
15
- version?: string;
16
- majorVersion?: number;
17
- features?: {
18
- hasReact18?: boolean;
19
- hasVue3?: boolean;
20
- hasNuxt3?: boolean;
21
- hasAngularStandalone?: boolean;
22
- hasNextAppRouter?: boolean;
23
- hasSvelteKit?: boolean;
24
- };
25
- }
26
- interface CodeModification {
27
- filePath: string;
28
- action: 'create' | 'modify' | 'append';
29
- content: string;
30
- description: string;
31
- }
32
- interface InstallationResult {
33
- success: boolean;
34
- framework: FrameworkInfo$2;
35
- modifications: CodeModification[];
36
- errors: string[];
37
- nextSteps: string[];
38
- }
39
- declare class AutoInstallationWizard {
40
- protected apiKey: string;
41
- protected projectRoot: string;
42
- protected framework: FrameworkInfo$2 | null;
43
- constructor(apiKey: string, projectRoot?: string);
44
- /**
45
- * Simple version comparison utility
46
- */
47
- private compareVersions;
48
- private isVersionGte;
49
- private getMajorVersion;
50
- /**
51
- * Main installation method - detects framework and auto-installs
52
- */
53
- install(): Promise<InstallationResult>;
54
- /**
55
- * Detect the current framework and project setup
56
- */
57
- detectFramework(): Promise<FrameworkInfo$2>;
58
- /**
59
- * Install the SDK package with latest version range
60
- */
61
- protected installPackage(): Promise<void>;
62
- /**
63
- * Generate code modifications based on framework
64
- */
65
- protected generateModifications(): Promise<CodeModification[]>;
66
- /**
67
- * Generate React-specific modifications
68
- */
69
- private generateReactModifications;
70
- /**
71
- * Generate Next.js-specific modifications
72
- */
73
- private generateNextJSModifications;
74
- /**
75
- * Generate Astro-specific modifications
76
- */
77
- private generateAstroModifications;
78
- /**
79
- * Generate Nuxt-specific modifications
80
- */
81
- private generateNuxtModifications;
82
- /**
83
- * Generate Remix-specific modifications
84
- */
85
- private generateRemixModifications;
86
- /**
87
- * Generate Vue-specific modifications
88
- */
89
- private generateVueModifications;
90
- /**
91
- * Generate Angular-specific modifications
92
- */
93
- private generateAngularModifications;
94
- /**
95
- * Generate Svelte-specific modifications
96
- */
97
- private generateSvelteModifications;
98
- /**
99
- * Generate vanilla JS/TS modifications
100
- */
101
- private generateVanillaModifications;
102
- /**
103
- * Generate Gatsby-specific modifications
104
- */
105
- private generateGatsbyModifications;
106
- /**
107
- * Apply modifications to the codebase
108
- */
109
- protected applyModifications(modifications: CodeModification[]): Promise<void>;
110
- /**
111
- * Generate next steps for the user
112
- */
113
- private generateNextSteps;
114
- private findReactAppFile;
115
- private findVueMainFile;
116
- private findSvelteMainFile;
117
- private findHTMLFile;
118
- private injectReactProvider;
119
- private injectNextJSAppRouter;
120
- private injectNextJSPagesRouter;
121
- private injectRemixProvider;
122
- private injectVuePlugin;
123
- private injectAngularModule;
124
- private injectAngularStandaloneInit;
125
- private injectSvelteStore;
126
- private injectSvelteKitLayout;
127
- private injectVanillaScript;
128
- /**
129
- * Inject Astro layout with HumanBehavior component
130
- */
131
- private injectAstroLayout;
132
- private injectNuxtConfig;
133
- private injectGatsbyLayout;
134
- private injectGatsbyBrowser;
135
- /**
136
- * Helper method to find the best environment file for a framework
137
- */
138
- private findBestEnvFile;
139
- /**
140
- * Helper method to create or append to environment files
141
- */
142
- private createEnvironmentModification;
143
- }
144
-
145
- /**
146
- * AI-Enhanced HumanBehavior SDK Auto-Installation Wizard
147
- *
148
- * This wizard uses AI to intelligently detect frameworks, analyze code patterns,
149
- * and generate optimal integration code that's both future-proof and backward-compatible.
150
- *
151
- * 🚀 KEY FEATURES:
152
- * - AI-powered framework detection beyond package.json
153
- * - Intelligent code pattern analysis
154
- * - Future-proof integration strategies
155
- * - Backward compatibility with legacy frameworks
156
- * - Adaptive code generation for new frameworks
157
- * - Smart conflict resolution
158
- * - Learning from user feedback
159
- * - Centralized AI service (no user API keys required)
160
- */
161
-
162
- interface AICodeAnalysis {
163
- framework: FrameworkInfo$2;
164
- confidence: number;
165
- patterns: string[];
166
- conflicts: string[];
167
- recommendations: string[];
168
- integrationStrategy: 'provider' | 'plugin' | 'module' | 'script' | 'standalone';
169
- compatibilityMode: 'modern' | 'legacy' | 'hybrid';
170
- }
171
- interface AIInstallationResult extends InstallationResult {
172
- aiAnalysis: AICodeAnalysis;
173
- learningData: {
174
- patterns: string[];
175
- framework: string;
176
- success: boolean;
177
- userFeedback?: string;
178
- };
179
- }
180
- /**
181
- * Centralized AI Service Interface
182
- * This runs on your backend infrastructure, not in the user's environment
183
- */
184
- interface CentralizedAIService$1 {
185
- analyzeCodePatterns(codeSamples: string[]): Promise<AICodeAnalysis>;
186
- resolveConflicts(conflicts: string[], framework: FrameworkInfo$2): Promise<string[]>;
187
- generateOptimizations(framework: FrameworkInfo$2, patterns: string[]): Promise<string[]>;
188
- }
189
- declare class AIEnhancedInstallationWizard extends AutoInstallationWizard {
190
- private aiService;
191
- private learningCache;
192
- private patternDatabase;
193
- constructor(apiKey: string, projectRoot?: string, aiService?: CentralizedAIService$1);
194
- /**
195
- * AI-enhanced installation with intelligent analysis
196
- */
197
- install(): Promise<AIInstallationResult>;
198
- /**
199
- * AI-powered code analysis using centralized service
200
- */
201
- performAICodeAnalysis(): Promise<AICodeAnalysis>;
202
- /**
203
- * Scan project files for analysis
204
- */
205
- private scanProjectFiles;
206
- /**
207
- * Check if file is relevant for analysis
208
- */
209
- private isRelevantFile;
210
- /**
211
- * Extract code samples for AI analysis
212
- */
213
- private extractCodeSamples;
214
- /**
215
- * Extract relevant code patterns
216
- */
217
- private extractCodePatterns;
218
- /**
219
- * AI-enhanced framework detection
220
- */
221
- private detectFrameworkWithAI;
222
- /**
223
- * Generate AI-optimized modifications
224
- */
225
- private generateAIOptimizedModifications;
226
- /**
227
- * Enhance modification with AI insights
228
- */
229
- private enhanceModificationWithAI;
230
- /**
231
- * Generate AI-specific optimizations
232
- */
233
- private generateAIOptimizations;
234
- /**
235
- * Apply modifications with AI conflict resolution
236
- */
237
- private applyModificationsWithAI;
238
- /**
239
- * Detect potential conflicts
240
- */
241
- private detectConflicts;
242
- /**
243
- * Resolve conflicts with AI
244
- */
245
- private resolveConflicts;
246
- /**
247
- * Apply single modification
248
- */
249
- private applyModification;
250
- /**
251
- * Generate AI-enhanced next steps
252
- */
253
- private generateAINextSteps;
254
- /**
255
- * Learn from installation for future improvements
256
- */
257
- private learnFromInstallation;
258
- /**
259
- * Load learning data from disk
260
- */
261
- private loadLearningData;
262
- /**
263
- * Save learning data to disk
264
- */
265
- private saveLearningData;
266
- /**
267
- * Get AI insights for a specific framework
268
- */
269
- getAIInsights(frameworkName: string): any[];
270
- /**
271
- * Get learning statistics
272
- */
273
- getLearningStats(): any;
274
- }
275
- /**
276
- * Browser-based AI installation wizard
277
- */
278
- declare class AIBrowserInstallationWizard {
279
- private apiKey;
280
- private aiService;
281
- constructor(apiKey: string, aiService?: CentralizedAIService$1);
282
- install(): Promise<AIInstallationResult>;
283
- private performBrowserAIAnalysis;
284
- private detectBrowserFramework;
285
- private analyzeBrowserPatterns;
286
- private generateAIBrowserModifications;
287
- }
288
-
289
- /**
290
- * AI-Enhanced HumanBehavior SDK Auto-Installation CLI
291
- *
292
- * Usage: npx humanbehavior-js ai-auto-install [api-key]
293
- *
294
- * This tool uses AI to intelligently detect frameworks, analyze code patterns,
295
- * and generate optimal integration code that's both future-proof and backward-compatible.
296
- */
297
- interface AICLIOptions {
298
- apiKey?: string;
299
- projectPath?: string;
300
- yes?: boolean;
301
- dryRun?: boolean;
302
- framework?: string;
303
- }
304
- declare class AIAutoInstallCLI {
305
- private options;
306
- constructor(options: AICLIOptions);
307
- run(): Promise<void>;
308
- private getApiKey;
309
- private confirmInstallation;
310
- private chooseFramework;
311
- private displayResults;
312
- }
313
-
314
- /**
315
- * HumanBehavior SDK Auto-Installation CLI
316
- *
317
- * Usage: npx humanbehavior-js auto-install [api-key]
318
- *
319
- * This tool automatically detects the user's framework and modifies their codebase
320
- * to integrate the SDK with minimal user intervention.
321
- */
322
- interface CLIOptions {
323
- apiKey?: string;
324
- projectPath?: string;
325
- yes?: boolean;
326
- dryRun?: boolean;
327
- }
328
- declare class AutoInstallCLI {
329
- private options;
330
- constructor(options: CLIOptions);
331
- run(): Promise<void>;
332
- private getApiKey;
333
- private chooseFramework;
334
- private confirmInstallation;
335
- private displayResults;
336
- }
337
-
338
- /**
339
- * Remote AI Service Implementation
340
- *
341
- * This connects to your deployed Lambda function via API Gateway
342
- */
343
-
344
- interface FrameworkInfo$1 {
345
- name: string;
346
- type: 'react' | 'vue' | 'angular' | 'svelte' | 'nextjs' | 'nuxt' | 'remix' | 'vanilla' | 'astro' | 'gatsby' | 'node';
347
- bundler?: 'vite' | 'webpack' | 'esbuild' | 'rollup';
348
- packageManager?: 'npm' | 'yarn' | 'pnpm';
349
- hasTypeScript?: boolean;
350
- hasRouter?: boolean;
351
- projectRoot?: string;
352
- version?: string;
353
- majorVersion?: number;
354
- features?: {
355
- hasReact18?: boolean;
356
- hasVue3?: boolean;
357
- hasNuxt3?: boolean;
358
- hasAngularStandalone?: boolean;
359
- hasNextAppRouter?: boolean;
360
- hasSvelteKit?: boolean;
361
- };
362
- }
363
- interface RemoteAIServiceConfig {
364
- apiEndpoint: string;
365
- timeout?: number;
366
- }
367
- declare class RemoteAIService {
368
- private config;
369
- constructor(config: RemoteAIServiceConfig);
370
- /**
371
- * Analyze code patterns using your deployed AI service
372
- */
373
- analyzeCodePatterns(codeSamples: string[]): Promise<AICodeAnalysis>;
374
- /**
375
- * Resolve conflicts using your deployed AI service
376
- */
377
- resolveConflicts(conflicts: string[], framework: FrameworkInfo$1): Promise<string[]>;
378
- /**
379
- * Generate optimizations using your deployed AI service
380
- */
381
- generateOptimizations(framework: FrameworkInfo$1, patterns: string[]): Promise<string[]>;
382
- /**
383
- * Heuristic analysis fallback
384
- */
385
- private performHeuristicAnalysis;
386
- /**
387
- * Heuristic conflict resolution
388
- */
389
- private resolveConflictsHeuristic;
390
- /**
391
- * Heuristic optimization generation
392
- */
393
- private generateOptimizationsHeuristic;
394
- }
395
-
396
- /**
397
- * Centralized AI Service Implementation
398
- *
399
- * This service runs on your backend infrastructure and provides AI-powered
400
- * code analysis without requiring users to provide their own API keys.
401
- *
402
- * The service can be deployed as:
403
- * - AWS Lambda function
404
- * - Docker container
405
- * - Express.js server
406
- * - Cloud function
407
- */
408
-
409
- interface FrameworkInfo {
410
- name: string;
411
- type: 'react' | 'vue' | 'angular' | 'svelte' | 'nextjs' | 'nuxt' | 'remix' | 'vanilla' | 'astro' | 'node';
412
- bundler?: 'vite' | 'webpack' | 'esbuild' | 'rollup';
413
- packageManager?: 'npm' | 'yarn' | 'pnpm';
414
- hasTypeScript?: boolean;
415
- hasRouter?: boolean;
416
- projectRoot?: string;
417
- }
418
- interface CentralizedAIServiceConfig {
419
- openaiApiKey: string;
420
- openaiModel?: string;
421
- maxTokens?: number;
422
- temperature?: number;
423
- enableCaching?: boolean;
424
- cacheTTL?: number;
425
- }
426
- /**
427
- * Centralized AI Service Implementation
428
- * This runs on your backend infrastructure
429
- */
430
- declare class CentralizedAIService {
431
- private config;
432
- private cache;
433
- private openai;
434
- constructor(config: CentralizedAIServiceConfig);
435
- /**
436
- * Initialize OpenAI client
437
- */
438
- private initializeOpenAI;
439
- /**
440
- * Analyze code patterns using AI
441
- */
442
- analyzeCodePatterns(codeSamples: string[]): Promise<AICodeAnalysis>;
443
- /**
444
- * Resolve conflicts using AI
445
- */
446
- resolveConflicts(conflicts: string[], framework: FrameworkInfo): Promise<string[]>;
447
- /**
448
- * Generate optimizations using AI
449
- */
450
- generateOptimizations(framework: FrameworkInfo, patterns: string[]): Promise<string[]>;
451
- /**
452
- * Perform AI analysis
453
- */
454
- private performAIAnalysis;
455
- /**
456
- * Build analysis prompt
457
- */
458
- private buildAnalysisPrompt;
459
- /**
460
- * Build conflict resolution prompt
461
- */
462
- private buildConflictResolutionPrompt;
463
- /**
464
- * Build optimization prompt
465
- */
466
- private buildOptimizationPrompt;
467
- /**
468
- * Parse analysis result
469
- */
470
- private parseAnalysisResult;
471
- /**
472
- * Parse conflict resolutions
473
- */
474
- private parseConflictResolutions;
475
- /**
476
- * Parse optimizations
477
- */
478
- private parseOptimizations;
479
- /**
480
- * Heuristic analysis fallback
481
- */
482
- private performHeuristicAnalysis;
483
- /**
484
- * Heuristic conflict resolution
485
- */
486
- private resolveConflictsHeuristic;
487
- /**
488
- * Heuristic optimization generation
489
- */
490
- private generateOptimizationsHeuristic;
491
- /**
492
- * Generate cache key
493
- */
494
- private generateCacheKey;
495
- /**
496
- * Check if cache is valid
497
- */
498
- private isCacheValid;
499
- /**
500
- * Get default analysis
501
- */
502
- private getDefaultAnalysis;
503
- /**
504
- * Get service statistics
505
- */
506
- getStats(): {
507
- cacheSize: number;
508
- config: {
509
- model: string | undefined;
510
- maxTokens: number | undefined;
511
- temperature: number | undefined;
512
- caching: boolean | undefined;
513
- };
514
- openaiAvailable: boolean;
515
- };
516
- /**
517
- * Clear cache
518
- */
519
- clearCache(): void;
520
- }
521
-
522
- export { AIAutoInstallCLI, AIBrowserInstallationWizard, AIEnhancedInstallationWizard, AutoInstallCLI, AutoInstallationWizard, CentralizedAIService, AutoInstallationWizard as InstallWizard, RemoteAIService };
523
- export type { AICodeAnalysis, AIInstallationResult, CentralizedAIServiceConfig, CodeModification, FrameworkInfo$2 as FrameworkInfo, InstallationResult, RemoteAIServiceConfig };