@juspay/neurolink 7.14.1 → 7.14.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [7.14.2](https://github.com/juspay/neurolink/compare/v7.14.1...v7.14.2) (2025-08-16)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **(sdk):** add generateText backward compatibility and fix formatting consistency ([93ff23c](https://github.com/juspay/neurolink/commit/93ff23c766ca71cbe7f77821b35cf5156bbe9d1f))
6
+
1
7
  ## [7.14.1](https://github.com/juspay/neurolink/compare/v7.14.0...v7.14.1) (2025-08-15)
2
8
 
3
9
  ### Bug Fixes
package/dist/index.d.ts CHANGED
@@ -84,3 +84,21 @@ export declare function getTelemetryStatus(): {
84
84
  enabled: boolean;
85
85
  initialized: boolean;
86
86
  };
87
+ export type { TextGenerationOptions, TextGenerationResult, AnalyticsData, EvaluationData, } from "./core/types.js";
88
+ /**
89
+ * BACKWARD COMPATIBILITY: Legacy generateText function
90
+ * Provides standalone generateText function for existing code that uses it
91
+ *
92
+ * @example
93
+ * ```typescript
94
+ * import { generateText } from '@juspay/neurolink';
95
+ *
96
+ * const result = await generateText({
97
+ * prompt: 'Hello, AI!',
98
+ * provider: 'bedrock',
99
+ * model: 'claude-3-sonnet'
100
+ * });
101
+ * console.log(result.content);
102
+ * ```
103
+ */
104
+ export declare function generateText(options: import("./core/types.js").TextGenerationOptions): Promise<import("./core/types.js").TextGenerationResult>;
package/dist/index.js CHANGED
@@ -107,3 +107,24 @@ export function getTelemetryStatus() {
107
107
  }
108
108
  return { enabled: false, initialized: false };
109
109
  }
110
+ /**
111
+ * BACKWARD COMPATIBILITY: Legacy generateText function
112
+ * Provides standalone generateText function for existing code that uses it
113
+ *
114
+ * @example
115
+ * ```typescript
116
+ * import { generateText } from '@juspay/neurolink';
117
+ *
118
+ * const result = await generateText({
119
+ * prompt: 'Hello, AI!',
120
+ * provider: 'bedrock',
121
+ * model: 'claude-3-sonnet'
122
+ * });
123
+ * console.log(result.content);
124
+ * ```
125
+ */
126
+ export async function generateText(options) {
127
+ // Import neurolink instance to avoid circular dependencies
128
+ const { neurolink } = await import("./neurolink.js");
129
+ return await neurolink.generateText(options);
130
+ }
@@ -84,3 +84,21 @@ export declare function getTelemetryStatus(): {
84
84
  enabled: boolean;
85
85
  initialized: boolean;
86
86
  };
87
+ export type { TextGenerationOptions, TextGenerationResult, AnalyticsData, EvaluationData, } from "./core/types.js";
88
+ /**
89
+ * BACKWARD COMPATIBILITY: Legacy generateText function
90
+ * Provides standalone generateText function for existing code that uses it
91
+ *
92
+ * @example
93
+ * ```typescript
94
+ * import { generateText } from '@juspay/neurolink';
95
+ *
96
+ * const result = await generateText({
97
+ * prompt: 'Hello, AI!',
98
+ * provider: 'bedrock',
99
+ * model: 'claude-3-sonnet'
100
+ * });
101
+ * console.log(result.content);
102
+ * ```
103
+ */
104
+ export declare function generateText(options: import("./core/types.js").TextGenerationOptions): Promise<import("./core/types.js").TextGenerationResult>;
package/dist/lib/index.js CHANGED
@@ -107,3 +107,24 @@ export function getTelemetryStatus() {
107
107
  }
108
108
  return { enabled: false, initialized: false };
109
109
  }
110
+ /**
111
+ * BACKWARD COMPATIBILITY: Legacy generateText function
112
+ * Provides standalone generateText function for existing code that uses it
113
+ *
114
+ * @example
115
+ * ```typescript
116
+ * import { generateText } from '@juspay/neurolink';
117
+ *
118
+ * const result = await generateText({
119
+ * prompt: 'Hello, AI!',
120
+ * provider: 'bedrock',
121
+ * model: 'claude-3-sonnet'
122
+ * });
123
+ * console.log(result.content);
124
+ * ```
125
+ */
126
+ export async function generateText(options) {
127
+ // Import neurolink instance to avoid circular dependencies
128
+ const { neurolink } = await import("./neurolink.js");
129
+ return await neurolink.generateText(options);
130
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/neurolink",
3
- "version": "7.14.1",
3
+ "version": "7.14.2",
4
4
  "description": "Universal AI Development Platform with working MCP integration, multi-provider support, and professional CLI. Built-in tools operational, 58+ external MCP servers discoverable. Connect to filesystem, GitHub, database operations, and more. Build, test, and deploy AI applications with 9 major providers: OpenAI, Anthropic, Google AI, AWS Bedrock, Azure, Hugging Face, Ollama, and Mistral AI.",
5
5
  "author": {
6
6
  "name": "Juspay Technologies",