@robota-sdk/agent-provider-openai 3.0.0-beta.55

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 ADDED
@@ -0,0 +1,543 @@
1
+ # @robota-sdk/agent-provider-openai
2
+
3
+ ## 3.0.0-beta.55
4
+
5
+ ### Patch Changes
6
+
7
+ - 38a72bf: fix: resolve ESLint tsconfig parsing errors and improve pnpm CI reliability
8
+ - Add tsconfig.eslint.json to all packages for per-package ESLint runs
9
+ - Migrate typecheck from pnpm -r exec tsc to per-package typecheck scripts
10
+ - Add --if-present to all recursive pnpm run scripts
11
+ - Fix React type imports, dynamic imports in tests, Express.Multer types
12
+
13
+ - Updated dependencies [38a72bf]
14
+ - @robota-sdk/agent-core@3.0.0-beta.55
15
+
16
+ ## 3.0.0-beta.54
17
+
18
+ ### Patch Changes
19
+
20
+ - fix: resolve all typecheck errors across packages
21
+ - Updated dependencies
22
+ - @robota-sdk/agent-core@3.0.0-beta.54
23
+
24
+ ## 3.0.0-beta.53
25
+
26
+ ### Patch Changes
27
+
28
+ - refactor: monolith decomposition — all agent-\* files under 300 lines
29
+ - Updated dependencies
30
+ - Updated dependencies
31
+ - @robota-sdk/agent-core@3.0.0-beta.53
32
+
33
+ ## 3.0.0-beta.52
34
+
35
+ ### Patch Changes
36
+
37
+ - @robota-sdk/agent-core@3.0.0-beta.52
38
+
39
+ ## 3.0.0-beta.51
40
+
41
+ ### Patch Changes
42
+
43
+ - @robota-sdk/agent-core@3.0.0-beta.51
44
+
45
+ ## 3.0.0-beta.50
46
+
47
+ ### Patch Changes
48
+
49
+ - @robota-sdk/agent-core@3.0.0-beta.50
50
+
51
+ ## 3.0.0-beta.49
52
+
53
+ ### Patch Changes
54
+
55
+ - @robota-sdk/agent-core@3.0.0-beta.49
56
+
57
+ ## 3.0.0-beta.48
58
+
59
+ ### Patch Changes
60
+
61
+ - @robota-sdk/agent-core@3.0.0-beta.48
62
+
63
+ ## 3.0.0-beta.47
64
+
65
+ ### Patch Changes
66
+
67
+ - @robota-sdk/agent-core@3.0.0-beta.47
68
+
69
+ ## 3.0.0-beta.46
70
+
71
+ ### Patch Changes
72
+
73
+ - @robota-sdk/agent-core@3.0.0-beta.46
74
+
75
+ ## 3.0.0-beta.45
76
+
77
+ ### Patch Changes
78
+
79
+ - @robota-sdk/agent-core@3.0.0-beta.45
80
+
81
+ ## 3.0.0-beta.44
82
+
83
+ ### Patch Changes
84
+
85
+ - Updated dependencies
86
+ - @robota-sdk/agent-core@3.0.0-beta.44
87
+
88
+ ## 2.0.9
89
+
90
+ ### Patch Changes
91
+
92
+ - Add environment-specific builds and conditional exports for optimal browser compatibility
93
+
94
+ This update introduces major build optimizations for better browser performance:
95
+
96
+ ## 🚀 Environment-Specific Builds
97
+ - **Node.js builds**: `dist/node/` with full ESM and CJS support
98
+ - **Browser builds**: `dist/browser/` with optimized ESM bundles
99
+ - **Automatic selection**: Bundlers automatically choose the right build
100
+
101
+ ## 📦 Bundle Size Optimizations
102
+ - **team package**: 36% smaller browser bundles (37.52KB → 24.12KB)
103
+ - **sessions package**: 48% smaller browser bundles (10.64KB → 5.55KB)
104
+ - **Tree-shaking**: Eliminates Node.js-specific code from browser builds
105
+ - **Production optimizations**: Removes console logs and debug code in browser builds
106
+
107
+ ## 🔧 Conditional Exports
108
+
109
+ All packages now support conditional exports for seamless environment detection:
110
+
111
+ ```json
112
+ {
113
+ "exports": {
114
+ "node": "./dist/node/index.js",
115
+ "browser": "./dist/browser/index.js",
116
+ "default": "./dist/node/index.js"
117
+ }
118
+ }
119
+ ```
120
+
121
+ ## 🌐 Enhanced Browser Support
122
+ - **Zero breaking changes**: Existing code continues to work unchanged
123
+ - **Better performance**: Optimized bundles for faster loading
124
+ - **Smaller footprint**: Reduced JavaScript bundle sizes for web applications
125
+ - **Universal API**: Same API works across all environments
126
+
127
+ This update completes the browser compatibility optimization phase, making Robota SDK production-ready for web applications with optimal performance characteristics.
128
+
129
+ - Updated dependencies
130
+ - @robota-sdk/agent-core@2.0.9
131
+
132
+ ## 2.0.8
133
+
134
+ ### Patch Changes
135
+
136
+ - # Model Configuration Refactoring
137
+
138
+ ## 🚀 **Breaking Changes**
139
+
140
+ ### **Provider Interface Simplification**
141
+ - **OpenAI Provider**: Removed `model`, `temperature`, `maxTokens`, `topP` from provider options
142
+ - **Anthropic Provider**: Removed `model`, `temperature`, `maxTokens` from provider options
143
+ - **Google Provider**: Removed `model`, `temperature`, `maxTokens` from provider options
144
+ - **All Providers**: `client` is now optional, automatically created from `apiKey`
145
+
146
+ ### **Centralized Model Configuration**
147
+ - Model configuration is now exclusively handled through `defaultModel` in Robota constructor
148
+ - Providers are simplified to handle only connection-related settings
149
+ - Runtime model switching via `setModel()` method is now the recommended approach
150
+
151
+ ## ✨ **Improvements**
152
+
153
+ ### **Simplified Provider Creation**
154
+
155
+ ```typescript
156
+ // Before
157
+ const provider = new OpenAIProvider({
158
+ client: openaiClient,
159
+ model: 'gpt-3.5-turbo',
160
+ });
161
+
162
+ // After
163
+ const provider = new OpenAIProvider({
164
+ apiKey: process.env.OPENAI_API_KEY,
165
+ });
166
+ ```
167
+
168
+ ### **Enhanced Validation**
169
+ - Added strict validation for required model configuration
170
+ - Removed default model fallbacks to prevent ambiguous behavior
171
+ - Clear error messages when model is not specified
172
+
173
+ ### **Documentation Updates**
174
+ - Updated all README files with new usage patterns
175
+ - Regenerated API documentation
176
+ - Updated all example files (11 examples)
177
+
178
+ ## 🔧 **Migration Guide**
179
+ 1. **Remove model settings from Provider constructors**
180
+ 2. **Use `apiKey` instead of `client` injection (recommended)**
181
+ 3. **Ensure `defaultModel` is properly configured in Robota constructor**
182
+ 4. **Update any hardcoded model references to use runtime switching**
183
+
184
+ ## 🎯 **Benefits**
185
+ - **Eliminates configuration confusion** - Single source of truth for models
186
+ - **Simplifies provider setup** - Just provide API credentials
187
+ - **Enables better runtime control** - Centralized model management
188
+ - **Improves consistency** - All providers follow same pattern
189
+
190
+ - Updated dependencies
191
+ - @robota-sdk/agent-core@2.0.8
192
+
193
+ ## 2.0.7
194
+
195
+ ### Patch Changes
196
+
197
+ - Browser compatibility improvements
198
+ - feat: Implement SimpleLogger system to replace direct console usage for better browser compatibility
199
+ - feat: Centralize SimpleLogger in @robota-sdk/agent-core package and export for other packages
200
+ - feat: Add support for silent and stderr-only logging modes via SilentLogger and StderrLogger
201
+ - refactor: Update all packages (@robota-sdk/agent-provider-openai, @robota-sdk/agent-provider-anthropic, etc.) to use centralized SimpleLogger
202
+ - chore: Add ESLint rules to prevent direct console usage while allowing legitimate cases
203
+ - fix: Remove unused AIProvider import from examples to clean up warnings
204
+
205
+ These changes ensure the SDK works properly in browser environments by removing Node.js-specific console behavior while maintaining full backward compatibility.
206
+
207
+ - Updated dependencies
208
+ - @robota-sdk/agent-core@2.0.7
209
+
210
+ ## 2.0.6
211
+
212
+ ### Patch Changes
213
+
214
+ - Add browser compatibility by removing Node.js dependencies
215
+ - Replace NodeJS.Timeout with cross-platform TimerId type
216
+ - Remove process.env dependency from logger configuration
217
+ - Replace Node.js crypto module with jsSHA library for webhook signatures
218
+ - Update OpenAI stream handlers to work in browser environments
219
+ - Maintain 100% backward compatibility with existing Node.js applications
220
+
221
+ This update enables Robota SDK to run seamlessly in both Node.js and browser environments without breaking changes.
222
+
223
+ - Updated dependencies
224
+ - @robota-sdk/agent-core@2.0.6
225
+
226
+ ## 2.0.5
227
+
228
+ ### Patch Changes
229
+
230
+ - ## 🎯 TypeScript Declaration File Optimization
231
+ - Updated dependencies
232
+ - @robota-sdk/agent-core@2.0.5
233
+
234
+ ## 2.0.4
235
+
236
+ ### Patch Changes
237
+
238
+ - 9f17ac6: Restore README.md files and prevent deletion during build process
239
+ - Updated dependencies [9f17ac6]
240
+ - @robota-sdk/agent-core@2.0.4
241
+
242
+ ## 2.0.3
243
+
244
+ ### Patch Changes
245
+
246
+ - @robota-sdk/agent-core@2.0.3
247
+
248
+ ## 2.0.2
249
+
250
+ ### Patch Changes
251
+
252
+ - Fix npm package documentation by ensuring README.md files are included
253
+ - Updated dependencies
254
+ - @robota-sdk/agent-core@2.0.2
255
+
256
+ ## 2.0.1
257
+
258
+ ### Patch Changes
259
+
260
+ - Remove unused dependencies from agents and sessions packages
261
+ - Updated dependencies
262
+ - @robota-sdk/agent-core@2.0.1
263
+
264
+ ## 2.0.0
265
+
266
+ ### Major Changes
267
+
268
+ - a3a464c: # Robota SDK v2.0.0-rc.1 - Unified Architecture
269
+
270
+ ## 🚀 Major Changes
271
+
272
+ ### New Unified Core
273
+ - **@robota-sdk/agent-core**: New unified core package consolidating all functionality
274
+ - **Zero `any` types**: Complete TypeScript type safety across all packages
275
+ - **Provider-agnostic design**: Seamless switching between OpenAI, Anthropic, and Google
276
+
277
+ ### Key Features
278
+ - **Multi-Provider Support**: Dynamic provider switching with type safety
279
+ - **Advanced Function Calling**: Type-safe tool system with Zod validation
280
+ - **Real-time Streaming**: Improved streaming with proper error handling
281
+ - **Task Delegation**: Improved delegated workflow support
282
+ - **Plugin Architecture**: Comprehensive plugin system with facade pattern
283
+
284
+ ### Breaking Changes
285
+ - `@robota-sdk/core` functionality moved to `@robota-sdk/agent-core`
286
+ - Redesigned provider interfaces with generic type parameters
287
+ - Updated agent configuration format
288
+
289
+ Complete architecture overhaul focused on type safety and developer experience.
290
+
291
+ ### Patch Changes
292
+
293
+ - Updated dependencies [a3a464c]
294
+ - @robota-sdk/agent-core@2.0.0
295
+
296
+ ## 1.0.5
297
+
298
+ ### Patch Changes
299
+
300
+ - Simplify team API, update docs, fix lint issues, add task coordinator template
301
+ - Updated dependencies
302
+ - @robota-sdk/agent-tools@1.0.5
303
+ - @robota-sdk/core@1.0.5
304
+
305
+ ## 1.0.4
306
+
307
+ ### Patch Changes
308
+
309
+ - Add task delegation tooling with assignTask MCP tools
310
+ - Updated dependencies
311
+ - @robota-sdk/core@1.0.4
312
+ - @robota-sdk/agent-tools@1.0.4
313
+
314
+ ## 1.0.3
315
+
316
+ ### Patch Changes
317
+
318
+ - Complete examples restructure and enhanced provider architecture
319
+ - Updated dependencies
320
+ - @robota-sdk/agent-tools@1.0.3
321
+ - @robota-sdk/core@1.0.3
322
+
323
+ ## 1.0.2
324
+
325
+ ### Patch Changes
326
+
327
+ - Refactor examples and improve resource management
328
+ - Simplified examples from 18+ files to 4 core examples (basic conversation, tool calling, multi-providers, advanced features)
329
+ - Added proper resource cleanup with `robota.close()` method to prevent hanging processes
330
+ - Implemented `ToolProviderManager.close()` for proper tool provider cleanup
331
+ - Added BaseAIProvider abstract class with common functionality for all AI providers
332
+ - Updated package.json scripts and README documentation for better user experience
333
+ - Removed duplicate and redundant example files
334
+ - Added .env.example file for easier setup
335
+
336
+ - Updated dependencies
337
+ - @robota-sdk/core@1.0.2
338
+ - @robota-sdk/agent-tools@1.0.2
339
+
340
+ ## 1.0.1
341
+
342
+ ### Patch Changes
343
+
344
+ - Fix facade pattern tests and conversation history message limits
345
+ - Updated dependencies
346
+ - @robota-sdk/agent-tools@1.0.1
347
+ - @robota-sdk/core@1.0.1
348
+
349
+ ## 1.0.0
350
+
351
+ ### Patch Changes
352
+
353
+ - feat: implement comprehensive performance optimization system
354
+ - Add caching system with LRU + TTL algorithms
355
+ - Implement lazy loading system for on-demand resource loading
356
+ - Add resource manager for memory leak prevention
357
+ - Implement real-time performance monitoring
358
+ - Translate all Korean text to English for internationalization
359
+ - Integrate performance monitoring into BaseToolProvider
360
+
361
+ - Updated dependencies
362
+ - @robota-sdk/agent-tools@1.0.0
363
+ - @robota-sdk/core@1.0.0
364
+
365
+ ## 0.3.7
366
+
367
+ ### Patch Changes
368
+
369
+ - Major code quality improvements and architectural refactoring:
370
+ - **Facade Pattern Implementation**: Simplified Robota class interface with manager-based architecture (ai, system, functions, analytics, tools, limits, conversation)
371
+ - **Deprecated Methods Removal**: Removed 20+ deprecated methods, replaced with clean option-based constructor
372
+ - **File Modularization**: Split large files into focused modules (function.ts → 4 modules, conversation-history refactoring)
373
+ - **State Management Enhancement**: Implemented state machine pattern for sessions with improved error handling
374
+ - **Pure Function Optimization**: Reduced complexity with pure functions and better separation of concerns
375
+ - **TypeScript Improvements**: Fixed all compilation errors and improved type safety
376
+ - **Example Updates**: Updated examples to use new API patterns
377
+
378
+ Breaking changes are minimal as the core functionality remains the same, but the internal architecture is significantly cleaner and more maintainable.
379
+
380
+ - Updated dependencies
381
+ - @robota-sdk/agent-tools@0.3.7
382
+ - @robota-sdk/core@0.3.7
383
+
384
+ ## 0.3.6
385
+
386
+ ### Patch Changes
387
+
388
+ - Update publishing docs with proper deployment guidelines
389
+ - Updated dependencies
390
+ - @robota-sdk/agent-tools@0.3.6
391
+ - @robota-sdk/core@0.3.6
392
+
393
+ ## 0.3.5
394
+
395
+ ### Patch Changes
396
+
397
+ - Fix workspace dependencies & update README docs for all packages
398
+ - Updated dependencies
399
+ - @robota-sdk/agent-tools@0.3.5
400
+ - @robota-sdk/core@0.3.5
401
+
402
+ ## 0.3.4
403
+
404
+ ### Patch Changes
405
+
406
+ - f77f18e: Add sessions package for multi-session & chat management in workspaces
407
+ - Updated dependencies [f77f18e]
408
+ - @robota-sdk/agent-tools@0.3.4
409
+ - @robota-sdk/core@0.3.4
410
+
411
+ ## 0.3.3
412
+
413
+ ### Patch Changes
414
+
415
+ - Fix type imports and external deps; update docs paths and build config
416
+ - Updated dependencies
417
+ - @robota-sdk/core@0.3.3
418
+ - @robota-sdk/agent-tools@0.3.3
419
+
420
+ ## 0.3.2
421
+
422
+ ### Patch Changes
423
+
424
+ - e69ce1c: Enhance SEO and update URLs to robota.io domain
425
+ - Updated dependencies [e69ce1c]
426
+ - @robota-sdk/core@0.3.2
427
+
428
+ ## 0.3.1
429
+
430
+ ### Patch Changes
431
+
432
+ - Add README.md files to packages for better npm documentation.
433
+ - Updated dependencies
434
+ - @robota-sdk/core@0.3.1
435
+
436
+ ## 0.3.0
437
+
438
+ ### Patch Changes
439
+
440
+ - Remove tools re-exports from core. Import from @robota-sdk/agent-tools instead of @robota-sdk/core.
441
+ - Updated dependencies
442
+ - @robota-sdk/core@0.3.0
443
+
444
+ ## 0.2.10
445
+
446
+ ### Patch Changes
447
+
448
+ - Add Google provider documentation and improve docs build process
449
+ - Add comprehensive documentation for @robota-sdk/agent-provider-google package
450
+ - Update sidebar and navigation to include Google provider
451
+ - Integrate Google provider into automated API docs generation
452
+ - Improve build scripts to auto-generate docs during build/publish
453
+
454
+ - Updated dependencies
455
+ - @robota-sdk/core@0.2.10
456
+
457
+ ## 0.2.9
458
+
459
+ ### Patch Changes
460
+
461
+ - Update README.md files across all packages:
462
+ - Add npm package badges with direct links to npmjs.com
463
+ - Remove outdated memory-related content from core package
464
+ - Update API examples to match current implementation (provider-based architecture)
465
+ - Fix function calling examples to use new toolProviders structure
466
+ - Remove references to deleted MCP package
467
+ - Updated dependencies
468
+ - @robota-sdk/core@0.2.9
469
+
470
+ ## 0.2.8
471
+
472
+ ### Patch Changes
473
+
474
+ - 20fbf3c: Add Anthropic and Google packages to npm registry
475
+ - Enable publishing for @robota-sdk/agent-provider-anthropic package (remove private flag)
476
+ - Add @robota-sdk/agent-provider-google package to workspace and build configuration
477
+ - Fix build scripts for Anthropic package
478
+ - Synchronize package versions across all packages
479
+
480
+ - Updated dependencies [20fbf3c]
481
+ - @robota-sdk/core@0.2.8
482
+
483
+ ## 0.2.7
484
+
485
+ ### Patch Changes
486
+
487
+ - e896862: Update codebase and documentation to English
488
+ - Update all comments and error messages to English across all packages
489
+ - Standardize documentation to English-only for better international accessibility
490
+ - Update VitePress configuration for English documentation site
491
+ - Update package descriptions to English
492
+ - Convert build script messages to English for consistency
493
+
494
+ - Updated dependencies [e896862]
495
+ - @robota-sdk/core@0.2.7
496
+
497
+ ## 0.2.6
498
+
499
+ ### Patch Changes
500
+
501
+ - Initial release of Robota SDK - A comprehensive JavaScript/TypeScript library for building Agentic AI applications with ease. This release includes core functionality, provider integrations for OpenAI and Anthropic, essential tools, comprehensive documentation, and example implementations.
502
+ - Updated dependencies
503
+ - @robota-sdk/core@0.2.6
504
+
505
+ ## 0.2.5
506
+
507
+ ### Patch Changes
508
+
509
+ - be155aa: Repository URL change and package metadata update.
510
+
511
+ Migrated from the previous repository to a new one and updated package metadata including descriptions, keywords, and license information. This change provides the correct repository links on the npm package page.
512
+
513
+ - Updated dependencies [be155aa]
514
+ - @robota-sdk/core@0.2.5
515
+
516
+ ## 0.2.4
517
+
518
+ ### Patch Changes
519
+
520
+ - Changed package dependencies to workspace:\* and added external option in tsup config to optimize bundle size
521
+ - Updated dependencies
522
+ - @robota-sdk/core@0.2.4
523
+
524
+ ## 0.2.3
525
+
526
+ ### Patch Changes
527
+
528
+ - Change package scope from `@robota/` to `@robota-sdk/` in all files: source code, JSDoc comments, documentation, and examples.
529
+ - Updated dependencies
530
+ - @robota-sdk/core@0.2.3
531
+
532
+ ## 0.2.2
533
+
534
+ ### Patch Changes
535
+
536
+ - Standardize package versions and dependencies across all packages in the Robota SDK monorepo. This update:
537
+ - Ensures consistent versioning across all packages
538
+ - Updates internal dependencies to reference the new package names
539
+ - Improves documentation with detailed README files for each package
540
+ - Prepares packages for a unified release process
541
+
542
+ - Updated dependencies
543
+ - @robota-sdk/core@0.2.2
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Robota Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.