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
package/rollup.config.js DELETED
@@ -1,422 +0,0 @@
1
- import typescript from '@rollup/plugin-typescript';
2
- import resolve from '@rollup/plugin-node-resolve';
3
- import commonjs from '@rollup/plugin-commonjs';
4
- import terser from '@rollup/plugin-terser';
5
- import dts from 'rollup-plugin-dts';
6
- import json from '@rollup/plugin-json';
7
-
8
- // External dependencies that shouldn't be bundled
9
- const external = ['react', 'react-dom', 'react/jsx-runtime'];
10
- const nodeExternal = ['fs', 'path', 'child_process', 'readline', '@clack/prompts'];
11
-
12
- // Global variables for UMD build
13
- const globals = {
14
- react: 'React',
15
- 'react-dom': 'ReactDOM',
16
- fs: 'fs',
17
- path: 'path'
18
- };
19
-
20
- export default [
21
- // Main SDK bundle
22
- {
23
- input: 'src/index.ts',
24
- output: [
25
- {
26
- file: 'dist/cjs/index.cjs',
27
- format: 'cjs',
28
- name: 'HumanBehaviorTracker',
29
- globals,
30
- exports: 'named',
31
- sourcemap: true
32
- },
33
- {
34
- file: 'dist/esm/index.js',
35
- format: 'es',
36
- sourcemap: true
37
- },
38
- {
39
- file: 'dist/index.min.js',
40
- format: 'umd',
41
- name: 'HumanBehaviorTracker',
42
- globals,
43
- exports: 'auto',
44
- sourcemap: true,
45
- plugins: [terser()]
46
- }
47
- ],
48
- plugins: [
49
- resolve({
50
- preferBuiltins: false
51
- }),
52
- commonjs(),
53
- typescript({
54
- tsconfig: './tsconfig.json',
55
- declaration: false,
56
- declarationMap: false
57
- })
58
- ],
59
- external: [...external, ...nodeExternal]
60
- },
61
-
62
- // React component bundle
63
- {
64
- input: './src/react/index.tsx',
65
- output: [
66
- {
67
- file: 'dist/cjs/react/index.cjs',
68
- format: 'cjs',
69
- name: 'HumanBehaviorReact',
70
- globals: {
71
- ...globals,
72
- '../index': 'HumanBehaviorTracker'
73
- },
74
- exports: 'named',
75
- sourcemap: true
76
- },
77
- {
78
- file: 'dist/esm/react/index.js',
79
- format: 'es',
80
- sourcemap: true
81
- }
82
- ],
83
- plugins: [
84
- resolve({
85
- preferBuiltins: false
86
- }),
87
- commonjs(),
88
- typescript({
89
- tsconfig: './tsconfig.json',
90
- declaration: false,
91
- declarationMap: false
92
- })
93
- ],
94
- external: [...external] // Only externalize React, bundle the main SDK
95
- },
96
-
97
- // Svelte bundle
98
- {
99
- input: './src/svelte/index.ts',
100
- output: [
101
- {
102
- file: 'dist/cjs/svelte/index.cjs',
103
- format: 'cjs',
104
- name: 'HumanBehaviorSvelte',
105
- globals: {
106
- ...globals,
107
- '../index': 'HumanBehaviorTracker'
108
- },
109
- exports: 'named',
110
- sourcemap: true
111
- },
112
- {
113
- file: 'dist/esm/svelte/index.js',
114
- format: 'es',
115
- sourcemap: true
116
- }
117
- ],
118
- plugins: [
119
- resolve({
120
- preferBuiltins: false
121
- }),
122
- commonjs(),
123
- typescript({
124
- tsconfig: './tsconfig.json',
125
- declaration: false,
126
- declarationMap: false
127
- })
128
- ],
129
- external: [...external, '../index', ...nodeExternal] // Externalize the main SDK
130
- },
131
-
132
- // Vue bundle
133
- {
134
- input: './src/vue/index.ts',
135
- output: [
136
- {
137
- file: 'dist/cjs/vue/index.cjs',
138
- format: 'cjs',
139
- name: 'HumanBehaviorVue',
140
- globals: {
141
- ...globals,
142
- '../index': 'HumanBehaviorTracker',
143
- 'vue': 'Vue'
144
- },
145
- exports: 'named',
146
- sourcemap: true
147
- },
148
- {
149
- file: 'dist/esm/vue/index.js',
150
- format: 'es',
151
- sourcemap: true
152
- }
153
- ],
154
- plugins: [
155
- resolve({
156
- preferBuiltins: false
157
- }),
158
- commonjs(),
159
- typescript({
160
- tsconfig: './tsconfig.json',
161
- declaration: false,
162
- declarationMap: false
163
- })
164
- ],
165
- external: [...external, '../index', 'vue', ...nodeExternal] // Externalize Vue and the main SDK
166
- },
167
-
168
- // Remix bundle
169
- {
170
- input: './src/remix/index.ts',
171
- output: [
172
- {
173
- file: 'dist/cjs/remix/index.cjs',
174
- format: 'cjs',
175
- name: 'HumanBehaviorRemix',
176
- globals: {
177
- ...globals,
178
- '../index': 'HumanBehaviorTracker',
179
- '../react': 'HumanBehaviorReact',
180
- '@remix-run/node': 'RemixNode'
181
- },
182
- exports: 'named',
183
- sourcemap: true
184
- },
185
- {
186
- file: 'dist/esm/remix/index.js',
187
- format: 'es',
188
- sourcemap: true
189
- }
190
- ],
191
- plugins: [
192
- resolve({
193
- preferBuiltins: false
194
- }),
195
- commonjs(),
196
- typescript({
197
- tsconfig: './tsconfig.json',
198
- declaration: false,
199
- declarationMap: false
200
- })
201
- ],
202
- external: [...external, '../index', '../react', '@remix-run/node', ...nodeExternal] // Externalize dependencies
203
- },
204
-
205
- // Angular bundle
206
- {
207
- input: './src/angular/index.ts',
208
- output: [
209
- {
210
- file: 'dist/cjs/angular/index.cjs',
211
- format: 'cjs',
212
- name: 'HumanBehaviorAngular',
213
- globals: {
214
- ...globals,
215
- '../index': 'HumanBehaviorTracker'
216
- },
217
- exports: 'named',
218
- sourcemap: true
219
- },
220
- {
221
- file: 'dist/esm/angular/index.js',
222
- format: 'es',
223
- sourcemap: true
224
- }
225
- ],
226
- plugins: [
227
- resolve({
228
- preferBuiltins: false
229
- }),
230
- commonjs(),
231
- typescript({
232
- tsconfig: './tsconfig.json',
233
- declaration: false,
234
- declarationMap: false
235
- })
236
- ],
237
- external: [...external, '../index', ...nodeExternal] // Externalize the main SDK
238
- },
239
-
240
- // Type definition bundles - generate these separately
241
- {
242
- input: 'src/index.ts',
243
- output: {
244
- file: 'dist/types/index.d.ts',
245
- format: 'es'
246
- },
247
- plugins: [dts()],
248
- external: [...external, ...nodeExternal]
249
- },
250
- {
251
- input: 'src/react/index.tsx',
252
- output: {
253
- file: 'dist/types/react/index.d.ts',
254
- format: 'es'
255
- },
256
- plugins: [dts()],
257
- external: [...external, '..', ...nodeExternal]
258
- },
259
- {
260
- input: 'src/svelte/index.ts',
261
- output: {
262
- file: 'dist/types/svelte/index.d.ts',
263
- format: 'es'
264
- },
265
- plugins: [dts()],
266
- external: [...external, '..', ...nodeExternal]
267
- },
268
- {
269
- input: 'src/vue/index.ts',
270
- output: {
271
- file: 'dist/types/vue/index.d.ts',
272
- format: 'es'
273
- },
274
- plugins: [dts()],
275
- external: [...external, '..', 'vue', ...nodeExternal]
276
- },
277
- {
278
- input: 'src/remix/index.ts',
279
- output: {
280
- file: 'dist/types/remix/index.d.ts',
281
- format: 'es'
282
- },
283
- plugins: [dts()],
284
- external: [...external, '..', '../react', '@remix-run/node', ...nodeExternal]
285
- },
286
- {
287
- input: 'src/angular/index.ts',
288
- output: {
289
- file: 'dist/types/angular/index.d.ts',
290
- format: 'es'
291
- },
292
- plugins: [dts()],
293
- external: [...external, '..', ...nodeExternal]
294
- },
295
-
296
- // CLI bundle
297
- {
298
- input: 'src/wizard/cli/auto-install.ts',
299
- output: {
300
- file: 'dist/cli/auto-install.js',
301
- format: 'es',
302
- sourcemap: true
303
- },
304
- plugins: [
305
- resolve({
306
- preferBuiltins: true
307
- }),
308
- commonjs(),
309
- json(),
310
- typescript({
311
- tsconfig: './tsconfig.json',
312
- declaration: false,
313
- declarationMap: false
314
- })
315
- ],
316
- external: nodeExternal
317
- },
318
-
319
- // AI CLI bundle
320
- {
321
- input: 'src/wizard/cli/ai-auto-install.ts',
322
- output: {
323
- file: 'dist/cli/ai-auto-install.js',
324
- format: 'es',
325
- sourcemap: true
326
- },
327
- plugins: [
328
- resolve({
329
- preferBuiltins: true
330
- }),
331
- commonjs(),
332
- json(),
333
- typescript({
334
- tsconfig: './tsconfig.json',
335
- declaration: false,
336
- declarationMap: false
337
- })
338
- ],
339
- external: nodeExternal
340
- },
341
-
342
- // Install wizard bundle
343
- {
344
- input: 'src/wizard/core/install-wizard.ts',
345
- output: [
346
- {
347
- file: 'dist/cjs/install-wizard.cjs',
348
- format: 'cjs',
349
- sourcemap: true
350
- },
351
- {
352
- file: 'dist/esm/install-wizard.js',
353
- format: 'es',
354
- sourcemap: true
355
- }
356
- ],
357
- plugins: [
358
- resolve({
359
- preferBuiltins: true
360
- }),
361
- commonjs(),
362
- typescript({
363
- tsconfig: './tsconfig.json',
364
- declaration: false,
365
- declarationMap: false
366
- })
367
- ],
368
- external: nodeExternal
369
- },
370
-
371
- // Install wizard types
372
- {
373
- input: 'src/wizard/core/install-wizard.ts',
374
- output: {
375
- file: 'dist/types/install-wizard.d.ts',
376
- format: 'es'
377
- },
378
- plugins: [dts()],
379
- external: nodeExternal
380
- },
381
-
382
- // Wizard module bundle
383
- {
384
- input: 'src/wizard/index.ts',
385
- output: [
386
- {
387
- file: 'dist/cjs/wizard/index.cjs',
388
- format: 'cjs',
389
- sourcemap: true
390
- },
391
- {
392
- file: 'dist/esm/wizard/index.js',
393
- format: 'es',
394
- sourcemap: true
395
- }
396
- ],
397
- plugins: [
398
- resolve({
399
- preferBuiltins: true
400
- }),
401
- commonjs(),
402
- json(),
403
- typescript({
404
- tsconfig: './tsconfig.json',
405
- declaration: false,
406
- declarationMap: false
407
- })
408
- ],
409
- external: nodeExternal
410
- },
411
-
412
- // Wizard module types
413
- {
414
- input: 'src/wizard/index.ts',
415
- output: {
416
- file: 'dist/types/wizard/index.d.ts',
417
- format: 'es'
418
- },
419
- plugins: [dts()],
420
- external: nodeExternal
421
- }
422
- ];