@happyvertical/ai 0.102.1 → 0.102.2

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 (64) hide show
  1. package/AGENT.md +1 -1
  2. package/README.md +123 -2
  3. package/dist/chunks/{anthropic-6ZDF32jo.js → anthropic-CxOrttgj.js} +3 -4
  4. package/dist/chunks/{anthropic-6ZDF32jo.js.map → anthropic-CxOrttgj.js.map} +1 -1
  5. package/dist/chunks/{bedrock-BQi3Z9jR.js → bedrock-B0cNEXFa.js} +3 -4
  6. package/dist/chunks/{bedrock-BQi3Z9jR.js.map → bedrock-B0cNEXFa.js.map} +1 -1
  7. package/dist/chunks/{bifrost-DsI2I4ka.js → bifrost-CyO3-hBv.js} +4 -4
  8. package/dist/chunks/{bifrost-DsI2I4ka.js.map → bifrost-CyO3-hBv.js.map} +1 -1
  9. package/dist/chunks/{byteplus-modelark-Dq8AgCQD.js → byteplus-modelark-DZ0YL2vl.js} +3 -4
  10. package/dist/chunks/{byteplus-modelark-Dq8AgCQD.js.map → byteplus-modelark-DZ0YL2vl.js.map} +1 -1
  11. package/dist/chunks/{claude-cli-DIFxvG3c.js → claude-cli-CtBp-Uk-.js} +3 -4
  12. package/dist/chunks/{claude-cli-DIFxvG3c.js.map → claude-cli-CtBp-Uk-.js.map} +1 -1
  13. package/dist/chunks/{continuation-D0NisZA1.js → continuation-7o7400bp.js} +3 -3
  14. package/dist/chunks/continuation-7o7400bp.js.map +1 -0
  15. package/dist/chunks/{gateway-audio-models-Dn7Wrc6P.js → gateway-audio-models-BSZGgjd8.js} +2 -2
  16. package/dist/chunks/{gateway-audio-models-Dn7Wrc6P.js.map → gateway-audio-models-BSZGgjd8.js.map} +1 -1
  17. package/dist/chunks/{gemini-BLFwWN90.js → gemini-DUk4ssth.js} +3 -4
  18. package/dist/chunks/{gemini-BLFwWN90.js.map → gemini-DUk4ssth.js.map} +1 -1
  19. package/dist/chunks/{huggingface-BuRwlABZ.js → huggingface-C41BZOoI.js} +3 -4
  20. package/dist/chunks/{huggingface-BuRwlABZ.js.map → huggingface-C41BZOoI.js.map} +1 -1
  21. package/dist/chunks/{litellm-CpfCT6jN.js → litellm-BLR5cs8B.js} +4 -4
  22. package/dist/chunks/{litellm-CpfCT6jN.js.map → litellm-BLR5cs8B.js.map} +1 -1
  23. package/dist/chunks/{ollama-CnrskTUg.js → ollama--y88p8Bz.js} +4 -5
  24. package/dist/chunks/{ollama-CnrskTUg.js.map → ollama--y88p8Bz.js.map} +1 -1
  25. package/dist/chunks/{openai-compat-video-CJIDdkUO.js → openai-compat-video-erarPEz-.js} +3 -4
  26. package/dist/chunks/{openai-compat-video-CJIDdkUO.js.map → openai-compat-video-erarPEz-.js.map} +1 -1
  27. package/dist/chunks/{qwen-tts-PzEkWcEb.js → qwen-tts-C9w7teY6.js} +2 -2
  28. package/dist/chunks/{qwen-tts-PzEkWcEb.js.map → qwen-tts-C9w7teY6.js.map} +1 -1
  29. package/dist/chunks/{rate-limit-BzWfHA0e.js → rate-limit-Bln_w0rH.js} +3 -280
  30. package/dist/chunks/rate-limit-Bln_w0rH.js.map +1 -0
  31. package/dist/chunks/rolldown-runtime-D7D4PA-g.js +13 -0
  32. package/dist/chunks/{seevio-D2y5Io7C.js → seevio-CosohVa0.js} +3 -4
  33. package/dist/chunks/{seevio-D2y5Io7C.js.map → seevio-CosohVa0.js.map} +1 -1
  34. package/dist/chunks/{src-CLT6r1W0.js → src-DDEz_uOe.js} +25 -30
  35. package/dist/chunks/{src-CLT6r1W0.js.map → src-DDEz_uOe.js.map} +1 -1
  36. package/dist/chunks/{typesafe-CVUqQ8N1.js → typesafe-BNM-QAJ2.js} +3 -4
  37. package/dist/chunks/{typesafe-CVUqQ8N1.js.map → typesafe-BNM-QAJ2.js.map} +1 -1
  38. package/dist/chunks/usage-BaQKo8bc.js +484 -0
  39. package/dist/chunks/usage-BaQKo8bc.js.map +1 -0
  40. package/dist/chunks/webllm-CWgY5nnP.js +584 -0
  41. package/dist/chunks/webllm-CWgY5nnP.js.map +1 -0
  42. package/dist/index.js +3 -4
  43. package/dist/local.d.ts +33 -0
  44. package/dist/local.d.ts.map +1 -0
  45. package/dist/local.js +3 -0
  46. package/dist/node.js +4 -5
  47. package/dist/node.js.map +1 -1
  48. package/dist/shared/continuation.d.ts +1 -1
  49. package/dist/shared/continuation.d.ts.map +1 -1
  50. package/dist/shared/factory.d.ts.map +1 -1
  51. package/dist/shared/providers/webllm-shim.d.ts +9 -0
  52. package/dist/shared/providers/webllm-shim.d.ts.map +1 -0
  53. package/dist/shared/providers/webllm.d.ts +115 -0
  54. package/dist/shared/providers/webllm.d.ts.map +1 -0
  55. package/dist/shared/types.d.ts +73 -2
  56. package/dist/shared/types.d.ts.map +1 -1
  57. package/metadata.json +1 -0
  58. package/package.json +15 -2
  59. package/dist/chunks/continuation-D0NisZA1.js.map +0 -1
  60. package/dist/chunks/rate-limit-BzWfHA0e.js.map +0 -1
  61. package/dist/chunks/types-DB5W6_F-.js +0 -153
  62. package/dist/chunks/types-DB5W6_F-.js.map +0 -1
  63. package/dist/chunks/usage-C1Y1Nlg4.js +0 -35
  64. package/dist/chunks/usage-C1Y1Nlg4.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"usage-C1Y1Nlg4.js","names":[],"sources":["../../src/shared/providers/usage.ts"],"sourcesContent":["/**\n * Shared usage-event emission helper.\n *\n * Every provider delegates to this so the tag-merge + try/catch semantics\n * are defined in exactly one place.\n */\n\nimport type { BaseAIOptions, TokenUsage, UsageEvent } from '../types';\n\n/**\n * Emit a usage event to the `onUsage` callback configured on provider options.\n *\n * @param providerOptions - The provider's stored options (for `onUsage` and global `usageTags`).\n * @param providerName - Provider identifier (e.g. `'openai'`).\n * @param operation - The operation type that generated this usage.\n * @param model - Model that was used.\n * @param usage - Token usage breakdown, if available.\n * @param startTime - `Date.now()` captured before the API call.\n * @param callTags - Per-call `usageTags` from the method's options.\n */\nexport function emitUsage(\n providerOptions: BaseAIOptions,\n providerName: string,\n operation: UsageEvent['operation'],\n model: string,\n usage: TokenUsage | undefined,\n startTime: number,\n callTags?: Record<string, string>,\n): void {\n if (!providerOptions.onUsage) return;\n\n const globalTags = providerOptions.usageTags;\n const tags =\n globalTags || callTags ? { ...globalTags, ...callTags } : undefined;\n\n try {\n providerOptions.onUsage({\n provider: providerName,\n model,\n operation,\n usage,\n duration: Date.now() - startTime,\n timestamp: new Date(),\n tags,\n });\n } catch {\n // Silently swallow consumer errors\n }\n}\n"],"mappings":";;;;;;;;;;;;AAoBA,SAAgB,UACd,iBACA,cACA,WACA,OACA,OACA,WACA,UACM;CACN,IAAI,CAAC,gBAAgB,SAAS;CAE9B,MAAM,aAAa,gBAAgB;CACnC,MAAM,OACJ,cAAc,WAAW;EAAE,GAAG;EAAY,GAAG;CAAS,IAAI,KAAA;CAE5D,IAAI;EACF,gBAAgB,QAAQ;GACtB,UAAU;GACV;GACA;GACA;GACA,UAAU,KAAK,IAAI,IAAI;GACvB,2BAAW,IAAI,KAAK;GACpB;EACF,CAAC;CACH,QAAQ,CAER;AACF"}