humanbehavior-js 0.4.27 → 0.5.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 (140) hide show
  1. package/README.md +151 -0
  2. package/package.json +114 -71
  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
@@ -0,0 +1,11 @@
1
+ import { HumanBehaviorTracker } from '@humanbehavior/core';
2
+ export declare const humanBehaviorStore: {
3
+ init: (apiKey: string, options?: {
4
+ ingestionUrl?: string;
5
+ logLevel?: "none" | "error" | "warn" | "info" | "debug";
6
+ redactFields?: string[];
7
+ suppressConsoleErrors?: boolean;
8
+ recordCanvas?: boolean;
9
+ }) => HumanBehaviorTracker;
10
+ };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAG3D,eAAO,MAAM,kBAAkB;mBACd,MAAM,YAAY;QAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;QACxD,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QACxB,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,YAAY,CAAC,EAAE,OAAO,CAAC;KACxB;CAGF,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";var r=require("@humanbehavior/core");const e={init:(e,i)=>r.HumanBehaviorTracker.init(e,i)};exports.humanBehaviorStore=e;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { HumanBehaviorTracker } from '@humanbehavior/core';\n\n// Create a Svelte store-like interface for HumanBehavior\nexport const humanBehaviorStore = {\n init: (apiKey: string, options?: {\n ingestionUrl?: string;\n logLevel?: 'none' | 'error' | 'warn' | 'info' | 'debug';\n redactFields?: string[];\n suppressConsoleErrors?: boolean;\n recordCanvas?: boolean; // Enable canvas recording with protection\n }) => {\n return HumanBehaviorTracker.init(apiKey, options);\n }\n}; "],"names":["humanBehaviorStore","init","apiKey","options","HumanBehaviorTracker"],"mappings":"kDAGO,MAAMA,EAAqB,CAChCC,KAAM,CAACC,EAAgBC,IAOdC,uBAAqBH,KAAKC,EAAQC"}
@@ -0,0 +1,2 @@
1
+ import{HumanBehaviorTracker as i}from"@humanbehavior/core";const o={init:(o,r)=>i.init(o,r)};export{o as humanBehaviorStore};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import { HumanBehaviorTracker } from '@humanbehavior/core';\n\n// Create a Svelte store-like interface for HumanBehavior\nexport const humanBehaviorStore = {\n init: (apiKey: string, options?: {\n ingestionUrl?: string;\n logLevel?: 'none' | 'error' | 'warn' | 'info' | 'debug';\n redactFields?: string[];\n suppressConsoleErrors?: boolean;\n recordCanvas?: boolean; // Enable canvas recording with protection\n }) => {\n return HumanBehaviorTracker.init(apiKey, options);\n }\n}; "],"names":["humanBehaviorStore","init","apiKey","options","HumanBehaviorTracker"],"mappings":"2DAGO,MAAMA,EAAqB,CAChCC,KAAM,CAACC,EAAgBC,IAOdC,EAAqBH,KAAKC,EAAQC"}
@@ -1,5 +1,4 @@
1
- import { App } from 'vue';
2
-
1
+ import type { App } from 'vue';
3
2
  interface HumanBehaviorPluginOptions {
4
3
  apiKey: string;
5
4
  ingestionUrl?: string;
@@ -8,8 +7,8 @@ interface HumanBehaviorPluginOptions {
8
7
  suppressConsoleErrors?: boolean;
9
8
  recordCanvas?: boolean;
10
9
  }
11
- declare const HumanBehaviorPlugin: {
10
+ export declare const HumanBehaviorPlugin: {
12
11
  install: (app: App, options: HumanBehaviorPluginOptions) => void;
13
12
  };
14
-
15
- export { HumanBehaviorPlugin };
13
+ export {};
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE/B,UAAU,0BAA0B;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACxD,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,mBAAmB;mBACf,GAAG,WAAW,0BAA0B;CAexD,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";var r=require("@humanbehavior/core");const e={install:(e,o)=>{const s=r.HumanBehaviorTracker.init(o.apiKey,{ingestionUrl:o.ingestionUrl,logLevel:o.logLevel,redactFields:o.redactFields,suppressConsoleErrors:o.suppressConsoleErrors,recordCanvas:o.recordCanvas});e.config.globalProperties.$humanBehavior=s,e.provide("humanBehavior",s)}};exports.HumanBehaviorPlugin=e;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { HumanBehaviorTracker } from '@humanbehavior/core';\nimport type { App } from 'vue';\n\ninterface HumanBehaviorPluginOptions {\n apiKey: string;\n ingestionUrl?: string;\n logLevel?: 'none' | 'error' | 'warn' | 'info' | 'debug';\n redactFields?: string[];\n suppressConsoleErrors?: boolean;\n recordCanvas?: boolean; // Enable canvas recording with protection\n}\n\nexport const HumanBehaviorPlugin = {\n install: (app: App, options: HumanBehaviorPluginOptions) => {\n const tracker = HumanBehaviorTracker.init(options.apiKey, {\n ingestionUrl: options.ingestionUrl,\n logLevel: options.logLevel,\n redactFields: options.redactFields,\n suppressConsoleErrors: options.suppressConsoleErrors,\n recordCanvas: options.recordCanvas, // Pass canvas recording option\n });\n \n // Make tracker available globally\n app.config.globalProperties.$humanBehavior = tracker;\n \n // Also provide it via inject/provide\n app.provide('humanBehavior', tracker);\n }\n}; "],"names":["HumanBehaviorPlugin","install","app","options","tracker","HumanBehaviorTracker","init","apiKey","ingestionUrl","logLevel","redactFields","suppressConsoleErrors","recordCanvas","config","globalProperties","$humanBehavior","provide"],"mappings":"kDAYO,MAAMA,EAAsB,CACjCC,QAAS,CAACC,EAAUC,KAClB,MAAMC,EAAUC,EAAAA,qBAAqBC,KAAKH,EAAQI,OAAQ,CACxDC,aAAcL,EAAQK,aACtBC,SAAUN,EAAQM,SAClBC,aAAcP,EAAQO,aACtBC,sBAAuBR,EAAQQ,sBAC/BC,aAAcT,EAAQS,eAIxBV,EAAIW,OAAOC,iBAAiBC,eAAiBX,EAG7CF,EAAIc,QAAQ,gBAAiBZ"}
@@ -0,0 +1,2 @@
1
+ import{HumanBehaviorTracker as r}from"@humanbehavior/core";const e={install:(e,o)=>{const s=r.init(o.apiKey,{ingestionUrl:o.ingestionUrl,logLevel:o.logLevel,redactFields:o.redactFields,suppressConsoleErrors:o.suppressConsoleErrors,recordCanvas:o.recordCanvas});e.config.globalProperties.$humanBehavior=s,e.provide("humanBehavior",s)}};export{e as HumanBehaviorPlugin};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import { HumanBehaviorTracker } from '@humanbehavior/core';\nimport type { App } from 'vue';\n\ninterface HumanBehaviorPluginOptions {\n apiKey: string;\n ingestionUrl?: string;\n logLevel?: 'none' | 'error' | 'warn' | 'info' | 'debug';\n redactFields?: string[];\n suppressConsoleErrors?: boolean;\n recordCanvas?: boolean; // Enable canvas recording with protection\n}\n\nexport const HumanBehaviorPlugin = {\n install: (app: App, options: HumanBehaviorPluginOptions) => {\n const tracker = HumanBehaviorTracker.init(options.apiKey, {\n ingestionUrl: options.ingestionUrl,\n logLevel: options.logLevel,\n redactFields: options.redactFields,\n suppressConsoleErrors: options.suppressConsoleErrors,\n recordCanvas: options.recordCanvas, // Pass canvas recording option\n });\n \n // Make tracker available globally\n app.config.globalProperties.$humanBehavior = tracker;\n \n // Also provide it via inject/provide\n app.provide('humanBehavior', tracker);\n }\n}; "],"names":["HumanBehaviorPlugin","install","app","options","tracker","HumanBehaviorTracker","init","apiKey","ingestionUrl","logLevel","redactFields","suppressConsoleErrors","recordCanvas","config","globalProperties","$humanBehavior","provide"],"mappings":"2DAYO,MAAMA,EAAsB,CACjCC,QAAS,CAACC,EAAUC,KAClB,MAAMC,EAAUC,EAAqBC,KAAKH,EAAQI,OAAQ,CACxDC,aAAcL,EAAQK,aACtBC,SAAUN,EAAQM,SAClBC,aAAcP,EAAQO,aACtBC,sBAAuBR,EAAQQ,sBAC/BC,aAAcT,EAAQS,eAIxBV,EAAIW,OAAOC,iBAAiBC,eAAiBX,EAG7CF,EAAIc,QAAQ,gBAAiBZ"}
@@ -0,0 +1,145 @@
1
+ /**
2
+ * AI-Enhanced HumanBehavior SDK Auto-Installation Wizard
3
+ *
4
+ * This wizard uses AI to intelligently detect frameworks, analyze code patterns,
5
+ * and generate optimal integration code that's both future-proof and backward-compatible.
6
+ *
7
+ * 🚀 KEY FEATURES:
8
+ * - AI-powered framework detection beyond package.json
9
+ * - Intelligent code pattern analysis
10
+ * - Future-proof integration strategies
11
+ * - Backward compatibility with legacy frameworks
12
+ * - Adaptive code generation for new frameworks
13
+ * - Smart conflict resolution
14
+ * - Learning from user feedback
15
+ * - Centralized AI service (no user API keys required)
16
+ */
17
+ import { AutoInstallationWizard, FrameworkInfo, InstallationResult } from '../core/install-wizard';
18
+ export interface AICodeAnalysis {
19
+ framework: FrameworkInfo;
20
+ confidence: number;
21
+ patterns: string[];
22
+ conflicts: string[];
23
+ recommendations: string[];
24
+ integrationStrategy: 'provider' | 'plugin' | 'module' | 'script' | 'standalone';
25
+ compatibilityMode: 'modern' | 'legacy' | 'hybrid';
26
+ }
27
+ export interface AIInstallationResult extends InstallationResult {
28
+ aiAnalysis: AICodeAnalysis;
29
+ learningData: {
30
+ patterns: string[];
31
+ framework: string;
32
+ success: boolean;
33
+ userFeedback?: string;
34
+ };
35
+ }
36
+ /**
37
+ * Centralized AI Service Interface
38
+ * This runs on your backend infrastructure, not in the user's environment
39
+ */
40
+ interface CentralizedAIService {
41
+ analyzeCodePatterns(codeSamples: string[]): Promise<AICodeAnalysis>;
42
+ resolveConflicts(conflicts: string[], framework: FrameworkInfo): Promise<string[]>;
43
+ generateOptimizations(framework: FrameworkInfo, patterns: string[]): Promise<string[]>;
44
+ }
45
+ export declare class AIEnhancedInstallationWizard extends AutoInstallationWizard {
46
+ private aiService;
47
+ private learningCache;
48
+ private patternDatabase;
49
+ constructor(apiKey: string, projectRoot?: string, aiService?: CentralizedAIService);
50
+ /**
51
+ * AI-enhanced installation with intelligent analysis
52
+ */
53
+ install(): Promise<AIInstallationResult>;
54
+ /**
55
+ * AI-powered code analysis using centralized service
56
+ */
57
+ performAICodeAnalysis(): Promise<AICodeAnalysis>;
58
+ /**
59
+ * Scan project files for analysis
60
+ */
61
+ private scanProjectFiles;
62
+ /**
63
+ * Check if file is relevant for analysis
64
+ */
65
+ private isRelevantFile;
66
+ /**
67
+ * Extract code samples for AI analysis
68
+ */
69
+ private extractCodeSamples;
70
+ /**
71
+ * Extract relevant code patterns
72
+ */
73
+ private extractCodePatterns;
74
+ /**
75
+ * AI-enhanced framework detection
76
+ */
77
+ private detectFrameworkWithAI;
78
+ /**
79
+ * Generate AI-optimized modifications
80
+ */
81
+ private generateAIOptimizedModifications;
82
+ /**
83
+ * Enhance modification with AI insights
84
+ */
85
+ private enhanceModificationWithAI;
86
+ /**
87
+ * Generate AI-specific optimizations
88
+ */
89
+ private generateAIOptimizations;
90
+ /**
91
+ * Apply modifications with AI conflict resolution
92
+ */
93
+ private applyModificationsWithAI;
94
+ /**
95
+ * Detect potential conflicts
96
+ */
97
+ private detectConflicts;
98
+ /**
99
+ * Resolve conflicts with AI
100
+ */
101
+ private resolveConflicts;
102
+ /**
103
+ * Apply single modification
104
+ */
105
+ private applyModification;
106
+ /**
107
+ * Generate AI-enhanced next steps
108
+ */
109
+ private generateAINextSteps;
110
+ /**
111
+ * Learn from installation for future improvements
112
+ */
113
+ private learnFromInstallation;
114
+ /**
115
+ * Load learning data from disk
116
+ */
117
+ private loadLearningData;
118
+ /**
119
+ * Save learning data to disk
120
+ */
121
+ private saveLearningData;
122
+ /**
123
+ * Get AI insights for a specific framework
124
+ */
125
+ getAIInsights(frameworkName: string): any[];
126
+ /**
127
+ * Get learning statistics
128
+ */
129
+ getLearningStats(): any;
130
+ }
131
+ /**
132
+ * Browser-based AI installation wizard
133
+ */
134
+ export declare class AIBrowserInstallationWizard {
135
+ private apiKey;
136
+ private aiService;
137
+ constructor(apiKey: string, aiService?: CentralizedAIService);
138
+ install(): Promise<AIInstallationResult>;
139
+ private performBrowserAIAnalysis;
140
+ private detectBrowserFramework;
141
+ private analyzeBrowserPatterns;
142
+ private generateAIBrowserModifications;
143
+ }
144
+ export {};
145
+ //# sourceMappingURL=ai-install-wizard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-install-wizard.d.ts","sourceRoot":"","sources":["../../src/ai/ai-install-wizard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAoB,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAErH,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,aAAa,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,mBAAmB,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,YAAY,CAAC;IAChF,iBAAiB,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;CACnD;AAED,MAAM,WAAW,oBAAqB,SAAQ,kBAAkB;IAC9D,UAAU,EAAE,cAAc,CAAC;IAC3B,YAAY,EAAE;QACZ,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;QACjB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH;AAED;;;GAGG;AACH,UAAU,oBAAoB;IAC5B,mBAAmB,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACpE,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACnF,qBAAqB,CAAC,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CACxF;AAyHD,qBAAa,4BAA6B,SAAQ,sBAAsB;IACtE,OAAO,CAAC,SAAS,CAAuB;IACxC,OAAO,CAAC,aAAa,CAA+B;IACpD,OAAO,CAAC,eAAe,CAAiC;gBAE5C,MAAM,EAAE,MAAM,EAAE,WAAW,GAAE,MAAsB,EAAE,SAAS,CAAC,EAAE,oBAAoB;IAMjG;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,oBAAoB,CAAC;IA0D9C;;OAEG;IACU,qBAAqB,IAAI,OAAO,CAAC,cAAc,CAAC;IAQ7D;;OAEG;YACW,gBAAgB;IA0B9B;;OAEG;IACH,OAAO,CAAC,cAAc;IAgBtB;;OAEG;YACW,kBAAkB;IAqBhC;;OAEG;IACH,OAAO,CAAC,mBAAmB;IA+G3B;;OAEG;YACW,qBAAqB;IA2BnC;;OAEG;YACW,gCAAgC;IAe9C;;OAEG;IACH,OAAO,CAAC,yBAAyB;IAyBjC;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAS/B;;OAEG;YACW,wBAAwB;IAoBtC;;OAEG;YACW,eAAe;IAyB7B;;OAEG;YACW,gBAAgB;IAiC9B;;OAEG;YACW,iBAAiB;IAqB/B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAiB3B;;OAEG;YACW,qBAAqB;IAwBnC;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAKxB;;OAEG;YACW,gBAAgB;IAK9B;;OAEG;IACI,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,GAAG,EAAE;IAIlD;;OAEG;IACI,gBAAgB,IAAI,GAAG;CAa/B;AAED;;GAEG;AACH,qBAAa,2BAA2B;IACtC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,SAAS,CAAuB;gBAE5B,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,oBAAoB;IAKtD,OAAO,IAAI,OAAO,CAAC,oBAAoB,CAAC;YAoDhC,wBAAwB;IAYtC,OAAO,CAAC,sBAAsB;IAgB9B,OAAO,CAAC,sBAAsB;IAwB9B,OAAO,CAAC,8BAA8B;CAsDvC"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Manual Framework Installation Wizard
3
+ *
4
+ * This wizard allows users to manually specify their framework instead of auto-detection.
5
+ * Useful when auto-detection fails or users want more control.
6
+ */
7
+ import { AutoInstallationWizard, FrameworkInfo, InstallationResult } from '../core/install-wizard';
8
+ export interface ManualInstallationResult extends InstallationResult {
9
+ selectedFramework: string;
10
+ manualMode: boolean;
11
+ }
12
+ export declare class ManualFrameworkInstallationWizard extends AutoInstallationWizard {
13
+ private selectedFramework;
14
+ constructor(apiKey: string, projectRoot: string | undefined, framework: string);
15
+ /**
16
+ * Manual installation with user-specified framework
17
+ */
18
+ install(): Promise<ManualInstallationResult>;
19
+ /**
20
+ * Run full detection logic to find entry points, file names, bundler, etc.
21
+ */
22
+ private runFullDetection;
23
+ /**
24
+ * Scan project files for analysis
25
+ */
26
+ private scanProjectFiles;
27
+ /**
28
+ * Check if file is relevant for analysis
29
+ */
30
+ private isRelevantFile;
31
+ /**
32
+ * Extract code samples for AI analysis
33
+ */
34
+ private extractCodeSamples;
35
+ /**
36
+ * Create framework info based on user selection
37
+ */
38
+ private createFrameworkInfo;
39
+ /**
40
+ * Override framework detection to use manual selection
41
+ */
42
+ detectFramework(): Promise<FrameworkInfo>;
43
+ /**
44
+ * Generate next steps with manual mode info
45
+ */
46
+ private generateManualNextSteps;
47
+ /**
48
+ * Get integration strategy based on framework
49
+ */
50
+ private getIntegrationStrategy;
51
+ }
52
+ //# sourceMappingURL=manual-framework-wizard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manual-framework-wizard.d.ts","sourceRoot":"","sources":["../../src/ai/manual-framework-wizard.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAoB,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAGrH,MAAM,WAAW,wBAAyB,SAAQ,kBAAkB;IAClE,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,qBAAa,iCAAkC,SAAQ,sBAAsB;IAC3E,OAAO,CAAC,iBAAiB,CAAS;gBAEtB,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAgB,EAAE,SAAS,EAAE,MAAM;IAMlF;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,wBAAwB,CAAC;IAwDlD;;OAEG;YACW,gBAAgB;IAoB9B;;OAEG;YACW,gBAAgB;IA0B9B;;OAEG;IACH,OAAO,CAAC,cAAc;IAetB;;OAEG;YACW,kBAAkB;IAgBhC;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAsB3B;;OAEG;IACU,eAAe,IAAI,OAAO,CAAC,aAAa,CAAC;IAItD;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAU/B;;OAEG;IACH,OAAO,CAAC,sBAAsB;CAe/B"}
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * AI-Enhanced HumanBehavior SDK Auto-Installation CLI
4
+ *
5
+ * Usage: npx humanbehavior-js ai-auto-install [api-key]
6
+ *
7
+ * This tool uses AI to intelligently detect frameworks, analyze code patterns,
8
+ * and generate optimal integration code that's both future-proof and backward-compatible.
9
+ */
10
+ interface AICLIOptions {
11
+ apiKey?: string;
12
+ projectPath?: string;
13
+ yes?: boolean;
14
+ dryRun?: boolean;
15
+ framework?: string;
16
+ }
17
+ declare class AIAutoInstallCLI {
18
+ private options;
19
+ constructor(options: AICLIOptions);
20
+ run(): Promise<void>;
21
+ private getApiKey;
22
+ private confirmInstallation;
23
+ private chooseFramework;
24
+ private displayResults;
25
+ }
26
+ export { AIAutoInstallCLI };
27
+ //# sourceMappingURL=ai-auto-install.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-auto-install.d.ts","sourceRoot":"","sources":["../../src/cli/ai-auto-install.ts"],"names":[],"mappings":";AAEA;;;;;;;GAOG;AAUH,UAAU,YAAY;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,cAAM,gBAAgB;IACpB,OAAO,CAAC,OAAO,CAAe;gBAElB,OAAO,EAAE,YAAY;IAI3B,GAAG;YAgDK,SAAS;YAsBT,mBAAmB;YAQnB,eAAe;IAoB7B,OAAO,CAAC,cAAc;CAoCvB;AAwED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}