@iqai/adk-cli 0.1.1 → 0.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # @iqai/adk-cli
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 8bf5d5d: Fixes template selection not working in adk new command
8
+
9
+ ## 0.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 17341fc: Refactor agent loading and resolution logic with enhanced flexibility and reliability
14
+
15
+ This major enhancement improves the ADK CLI server's agent loading capabilities and adds new features to the core framework:
16
+
17
+ **CLI Server Improvements:**
18
+
19
+ - **Modular Architecture**: Refactored monolithic server file into organized modules (`server/index.ts`, `server/routes.ts`, `server/services.ts`, `server/types.ts`)
20
+ - **Enhanced Agent Resolution**: New `resolveAgentExport` method supports multiple export patterns:
21
+ - Direct agent exports: `export const agent = new LlmAgent(...)`
22
+ - Function factories: `export function agent() { return new LlmAgent(...) }`
23
+ - Async factories: `export async function agent() { return new LlmAgent(...) }`
24
+ - Container objects: `export default { agent: ... }`
25
+ - Primitive exports with fallback scanning
26
+ - **Improved TypeScript Import Handling**: Better project root detection and module resolution for TypeScript files
27
+
28
+ **Core Framework Enhancements:**
29
+
30
+ - **New AgentBuilder Method**: Added `withAgent()` method to directly provide existing agent instances with definition locking to prevent accidental configuration overwrites
31
+ - **Two-Tier Tool Deduplication**: Implemented robust deduplication logic to prevent duplicate function declarations that cause errors with LLM providers (especially Google)
32
+ - **Better Type Safety**: Improved type definitions and replaced `any[]` usage with proper typed interfaces
33
+
34
+ **Testing & Reliability:**
35
+
36
+ - **Comprehensive Test Coverage**: New `agent-resolution.test.ts` with extensive fixtures testing various agent export patterns
37
+ - **Multiple Test Fixtures**: Added 6 different agent export pattern examples for validation
38
+ - **Edge Case Handling**: Improved error handling and logging throughout the agent loading pipeline
39
+
40
+ These changes provide a more flexible, reliable, and maintainable foundation for agent development and deployment while maintaining backward compatibility.
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [17341fc]
45
+ - Updated dependencies [1564b7b]
46
+ - @iqai/adk@0.2.0
47
+
3
48
  ## 0.1.1
4
49
 
5
50
  ### Patch Changes