@umituz/web-ai 1.0.0 → 1.0.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 (53) hide show
  1. package/dist/{ABTesting-DDqNhHtP.d.ts → AIErrors-B2ogd1PB.d.ts} +14 -1
  2. package/dist/{ABTesting-DWBtKTMQ.d.cts → AIErrors-C5EasV_c.d.cts} +14 -1
  3. package/dist/{ProviderConfig-a55tLhWT.d.cts → ProviderConfig-DIFa9nmG.d.cts} +10 -1
  4. package/dist/{ProviderConfig-a55tLhWT.d.ts → ProviderConfig-DIFa9nmG.d.ts} +10 -1
  5. package/dist/chat/index.cjs +114 -23
  6. package/dist/chat/index.cjs.map +1 -1
  7. package/dist/chat/index.d.cts +4 -4
  8. package/dist/chat/index.d.ts +4 -4
  9. package/dist/chat/index.js +114 -23
  10. package/dist/chat/index.js.map +1 -1
  11. package/dist/{chat.service-DBKq9I2c.d.cts → chat.service-CL1qtYxe.d.cts} +7 -7
  12. package/dist/{chat.service-RQn8UTXD.d.ts → chat.service-q05GnhEm.d.ts} +7 -7
  13. package/dist/content/index.cjs +393 -186
  14. package/dist/content/index.cjs.map +1 -1
  15. package/dist/content/index.d.cts +7 -8
  16. package/dist/content/index.d.ts +7 -8
  17. package/dist/content/index.js +393 -186
  18. package/dist/content/index.js.map +1 -1
  19. package/dist/core/index.cjs +112 -15
  20. package/dist/core/index.cjs.map +1 -1
  21. package/dist/core/index.d.cts +5 -33
  22. package/dist/core/index.d.ts +5 -33
  23. package/dist/core/index.js +111 -16
  24. package/dist/core/index.js.map +1 -1
  25. package/dist/{create-ai-DGZFBOA1.d.cts → create-ai-DOI9jD3v.d.cts} +4 -21
  26. package/dist/{create-ai-BhNaz86i.d.ts → create-ai-DXEoke8-.d.ts} +4 -21
  27. package/dist/hooks/index.cjs +359 -169
  28. package/dist/hooks/index.cjs.map +1 -1
  29. package/dist/hooks/index.d.cts +6 -6
  30. package/dist/hooks/index.d.ts +6 -6
  31. package/dist/hooks/index.js +359 -169
  32. package/dist/hooks/index.js.map +1 -1
  33. package/dist/index-DIHz8_OJ.d.ts +48 -0
  34. package/dist/index-DKHNcMbl.d.cts +48 -0
  35. package/dist/index.cjs +245 -94
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.cts +6 -6
  38. package/dist/index.d.ts +6 -6
  39. package/dist/index.js +244 -95
  40. package/dist/index.js.map +1 -1
  41. package/dist/{provider.factory-COsnprLH.d.cts → provider.factory-BxsfK4WW.d.cts} +1 -1
  42. package/dist/{provider.factory-CpWFyjbw.d.ts → provider.factory-DfDfk0dK.d.ts} +1 -1
  43. package/dist/providers/index.cjs +281 -124
  44. package/dist/providers/index.cjs.map +1 -1
  45. package/dist/providers/index.d.cts +11 -12
  46. package/dist/providers/index.d.ts +11 -12
  47. package/dist/providers/index.js +281 -124
  48. package/dist/providers/index.js.map +1 -1
  49. package/dist/wizard/index.d.cts +1 -1
  50. package/dist/wizard/index.d.ts +1 -1
  51. package/package.json +4 -1
  52. package/dist/index-DjX9ZKuM.d.cts +0 -14
  53. package/dist/index-DxLvE588.d.ts +0 -14
@@ -1,5 +1,5 @@
1
1
  import { B as BlogGenerationRequest, b as SocialContentRequest, V as VideoScriptRequest } from '../ContentGeneration-B6iK2B33.cjs';
2
- import { I as ImageGenerationRequest, V as VideoGenerationRequest, a as ImageToVideoRequest, b as VideoToVideoRequest } from '../ProviderConfig-a55tLhWT.cjs';
2
+ import { I as ImageGenerationRequest, V as VideoGenerationRequest, a as ImageToVideoRequest, b as VideoToVideoRequest } from '../ProviderConfig-DIFa9nmG.cjs';
3
3
 
4
4
  interface WizardStep<T extends string = string> {
5
5
  id: T;
@@ -1,5 +1,5 @@
1
1
  import { B as BlogGenerationRequest, b as SocialContentRequest, V as VideoScriptRequest } from '../ContentGeneration-B6iK2B33.js';
2
- import { I as ImageGenerationRequest, V as VideoGenerationRequest, a as ImageToVideoRequest, b as VideoToVideoRequest } from '../ProviderConfig-a55tLhWT.js';
2
+ import { I as ImageGenerationRequest, V as VideoGenerationRequest, a as ImageToVideoRequest, b as VideoToVideoRequest } from '../ProviderConfig-DIFa9nmG.js';
3
3
 
4
4
  interface WizardStep<T extends string = string> {
5
5
  id: T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/web-ai",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Provider-agnostic AI engine for web and edge — text, chat, structured output and streaming over swappable providers (Anthropic, Groq, Gemini, fal, Pruna), plus a content generation suite",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -94,9 +94,12 @@
94
94
  "@eslint/js": "^9.32.0",
95
95
  "@types/node": "^20.0.0",
96
96
  "@types/react": "^18.2.0",
97
+ "@types/react-dom": "^18.3.7",
97
98
  "@umituz/pruna-provider": "^1.0.9",
98
99
  "eslint": "^9.32.0",
100
+ "happy-dom": "^21.0.4",
99
101
  "react": "18.3.1",
102
+ "react-dom": "^18.3.1",
100
103
  "tsup": "^8.0.0",
101
104
  "typescript": "~5.9.2",
102
105
  "typescript-eslint": "^8.38.0",
@@ -1,14 +0,0 @@
1
- import { c as TextTier } from './index-fXjxTR5W.cjs';
2
-
3
- /**
4
- * Per-provider default model per tier. Config can override any slot; an
5
- * explicit `model` on a request overrides everything. This table is the knob
6
- * that turns "switch from Claude to Groq" into a config edit.
7
- */
8
- type TierModelMap = Readonly<Partial<Record<TextTier, string>>>;
9
- declare const TEXT_TIERS: ReadonlyArray<TextTier>;
10
- declare function isTextTier(value: unknown): value is TextTier;
11
- declare function resolveModel(tiers: TierModelMap, tier: TextTier, providerId: string): string;
12
- declare function mergeTierOverrides(defaults: TierModelMap, overrides?: TierModelMap): TierModelMap;
13
-
14
- export { TEXT_TIERS as T, type TierModelMap as a, isTextTier as i, mergeTierOverrides as m, resolveModel as r };
@@ -1,14 +0,0 @@
1
- import { c as TextTier } from './index-fXjxTR5W.js';
2
-
3
- /**
4
- * Per-provider default model per tier. Config can override any slot; an
5
- * explicit `model` on a request overrides everything. This table is the knob
6
- * that turns "switch from Claude to Groq" into a config edit.
7
- */
8
- type TierModelMap = Readonly<Partial<Record<TextTier, string>>>;
9
- declare const TEXT_TIERS: ReadonlyArray<TextTier>;
10
- declare function isTextTier(value: unknown): value is TextTier;
11
- declare function resolveModel(tiers: TierModelMap, tier: TextTier, providerId: string): string;
12
- declare function mergeTierOverrides(defaults: TierModelMap, overrides?: TierModelMap): TierModelMap;
13
-
14
- export { TEXT_TIERS as T, type TierModelMap as a, isTextTier as i, mergeTierOverrides as m, resolveModel as r };