@iqai/adk-cli 0.3.34 → 0.3.36
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 +22 -7
- package/LICENSE.md +1 -1
- package/README.md +9 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @iqai/adk-cli
|
|
2
2
|
|
|
3
|
+
## 0.3.36
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [ad1b38b]
|
|
8
|
+
- @iqai/adk@0.6.3
|
|
9
|
+
|
|
10
|
+
## 0.3.35
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 96e9661: Add Context Caching support for ADK Apps using Gemini 2.0+ models.
|
|
15
|
+
|
|
16
|
+
This feature allows agents to reuse extended instructions or large contextual data across requests, reducing token usage and improving performance. Caching behavior is configurable at the App or Agent level via `contextCacheConfig`, with controls for minimum token threshold, cache TTL, and maximum usage intervals.
|
|
17
|
+
|
|
18
|
+
All agents within an App can benefit from shared cached context, minimizing redundant data sent to the model while preserving correctness.
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [8f2167a]
|
|
21
|
+
- Updated dependencies [f2dfa13]
|
|
22
|
+
- Updated dependencies [96e9661]
|
|
23
|
+
- @iqai/adk@0.6.2
|
|
24
|
+
|
|
3
25
|
## 0.3.34
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -242,21 +264,17 @@
|
|
|
242
264
|
### Patch Changes
|
|
243
265
|
|
|
244
266
|
- 2da690a: - **Dependency Updates:**
|
|
245
|
-
|
|
246
267
|
- Upgraded dependencies and devDependencies across multiple packages ensuring compatibility with the latest library versions.
|
|
247
268
|
|
|
248
269
|
- **Schema Handling:**
|
|
249
|
-
|
|
250
270
|
- Transitioned schema conversion to use `z.toJSONSchema`, reducing dependencies.
|
|
251
271
|
- Enhanced type safety in the workflow tool's schema handling.
|
|
252
272
|
|
|
253
273
|
- **Error Reporting and Validation:**
|
|
254
|
-
|
|
255
274
|
- Improved error messages in `AgentBuilder` for better debugging.
|
|
256
275
|
- Enhanced output validation for LLM.
|
|
257
276
|
|
|
258
277
|
- **AI SDK and Model Integration:**
|
|
259
|
-
|
|
260
278
|
- Refined model ID handling in `AiSdkLlm`.
|
|
261
279
|
- Updated field references to align with AI SDK changes.
|
|
262
280
|
|
|
@@ -352,7 +370,6 @@
|
|
|
352
370
|
This major enhancement improves the ADK CLI server's agent loading capabilities and adds new features to the core framework:
|
|
353
371
|
|
|
354
372
|
**CLI Server Improvements:**
|
|
355
|
-
|
|
356
373
|
- **Modular Architecture**: Refactored monolithic server file into organized modules (`server/index.ts`, `server/routes.ts`, `server/services.ts`, `server/types.ts`)
|
|
357
374
|
- **Enhanced Agent Resolution**: New `resolveAgentExport` method supports multiple export patterns:
|
|
358
375
|
- Direct agent exports: `export const agent = new LlmAgent(...)`
|
|
@@ -363,13 +380,11 @@
|
|
|
363
380
|
- **Improved TypeScript Import Handling**: Better project root detection and module resolution for TypeScript files
|
|
364
381
|
|
|
365
382
|
**Core Framework Enhancements:**
|
|
366
|
-
|
|
367
383
|
- **New AgentBuilder Method**: Added `withAgent()` method to directly provide existing agent instances with definition locking to prevent accidental configuration overwrites
|
|
368
384
|
- **Two-Tier Tool Deduplication**: Implemented robust deduplication logic to prevent duplicate function declarations that cause errors with LLM providers (especially Google)
|
|
369
385
|
- **Better Type Safety**: Improved type definitions and replaced `any[]` usage with proper typed interfaces
|
|
370
386
|
|
|
371
387
|
**Testing & Reliability:**
|
|
372
|
-
|
|
373
388
|
- **Comprehensive Test Coverage**: New `agent-resolution.test.ts` with extensive fixtures testing various agent export patterns
|
|
374
389
|
- **Multiple Test Fixtures**: Added 6 different agent export pattern examples for validation
|
|
375
390
|
- **Edge Case Handling**: Improved error handling and logging throughout the agent loading pipeline
|
package/LICENSE.md
CHANGED
|
@@ -6,4 +6,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
|
6
6
|
|
|
7
7
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
8
|
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ Before contributing to the ADK CLI, ensure you have:
|
|
|
72
72
|
```bash
|
|
73
73
|
# Link the CLI globally for testing
|
|
74
74
|
npm link
|
|
75
|
-
|
|
75
|
+
|
|
76
76
|
# Or run directly with pnpm
|
|
77
77
|
pnpm start --help
|
|
78
78
|
```
|
|
@@ -184,7 +184,7 @@ We welcome various types of contributions to improve the CLI:
|
|
|
184
184
|
# Build and link for testing
|
|
185
185
|
pnpm build
|
|
186
186
|
npm link
|
|
187
|
-
|
|
187
|
+
|
|
188
188
|
# Test commands
|
|
189
189
|
adk --help
|
|
190
190
|
adk new test-project
|
|
@@ -236,11 +236,11 @@ To add a new CLI command:
|
|
|
236
236
|
|
|
237
237
|
```typescript
|
|
238
238
|
// src/cli/my-command.ts
|
|
239
|
-
import { Command, CommandRunner } from
|
|
240
|
-
|
|
239
|
+
import { Command, CommandRunner } from "nest-commander";
|
|
240
|
+
|
|
241
241
|
@Command({
|
|
242
|
-
name:
|
|
243
|
-
description:
|
|
242
|
+
name: "my-command",
|
|
243
|
+
description: "Description of what the command does",
|
|
244
244
|
})
|
|
245
245
|
export class MyCommand extends CommandRunner {
|
|
246
246
|
async run(passedParams: string[]): Promise<void> {
|
|
@@ -253,8 +253,8 @@ To add a new CLI command:
|
|
|
253
253
|
|
|
254
254
|
```typescript
|
|
255
255
|
// src/cli/cli.module.ts
|
|
256
|
-
import { MyCommand } from
|
|
257
|
-
|
|
256
|
+
import { MyCommand } from "./my-command";
|
|
257
|
+
|
|
258
258
|
@Module({
|
|
259
259
|
providers: [
|
|
260
260
|
// ... other commands
|
|
@@ -268,7 +268,7 @@ To add a new CLI command:
|
|
|
268
268
|
|
|
269
269
|
```typescript
|
|
270
270
|
// src/cli/my-command.spec.ts
|
|
271
|
-
describe(
|
|
271
|
+
describe("MyCommand", () => {
|
|
272
272
|
// Test implementation
|
|
273
273
|
});
|
|
274
274
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iqai/adk-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.36",
|
|
4
4
|
"description": "CLI tool for creating, running, and testing ADK agents",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"types": "dist/main.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"rxjs": "^7.8.2",
|
|
42
42
|
"swagger-ui-express": "^5.0.1",
|
|
43
43
|
"zod": "^4.1.5",
|
|
44
|
-
"@iqai/adk": "0.6.
|
|
44
|
+
"@iqai/adk": "0.6.3"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/marked-terminal": "^6.1.1",
|