@kwirthmagnify/kwirth-common-ai 0.5.59 → 0.5.60

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.
package/dist/back.d.ts CHANGED
@@ -30,6 +30,7 @@ export interface IVisionOptions<T> {
30
30
  export declare const generateVision: <T>(opts: IVisionOptions<T>) => Promise<IVisionResult<T>>;
31
31
  export declare const loadModels: (providers: ILlmProvider[], log: ILogChannel) => Promise<void>;
32
32
  export { generateText, Output, stepCountIs, tool } from 'ai';
33
+ export type { LanguageModel, ToolSet } from 'ai';
33
34
  export { z } from 'zod';
34
35
  export declare const zodFromExample: (example: Record<string, unknown>) => z.ZodObject<Record<string, z.ZodTypeAny>>;
35
36
  export interface ISourceRepoCred {
package/dist/back.js CHANGED
@@ -258,6 +258,8 @@ const inferZod = (value) => {
258
258
  return zod_1.z.unknown();
259
259
  };
260
260
  // Re-export AI SDK symbols so plugins can use them without bundling the SDK
261
+ // Se re-exportan tambien los TIPOS que necesita quien escriba un helper alrededor de generateText: sin
262
+ // LanguageModel y ToolSet, un plugin no puede tipar sus propias funciones y acaba con 'any'.
261
263
  var ai_2 = require("ai");
262
264
  Object.defineProperty(exports, "generateText", { enumerable: true, get: function () { return ai_2.generateText; } });
263
265
  Object.defineProperty(exports, "Output", { enumerable: true, get: function () { return ai_2.Output; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwirthmagnify/kwirth-common-ai",
3
- "version": "0.5.59",
3
+ "version": "0.5.60",
4
4
  "description": "Shared AI/LLM types and utilities for Kwirth AI plugins",
5
5
  "scripts": {
6
6
  "build": "del .\\dist\\* /s /q 2>nul & tsc",