@iqai/adk-cli 0.3.33 → 0.3.35
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.35
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 96e9661: Add Context Caching support for ADK Apps using Gemini 2.0+ models.
|
|
8
|
+
|
|
9
|
+
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.
|
|
10
|
+
|
|
11
|
+
All agents within an App can benefit from shared cached context, minimizing redundant data sent to the model while preserving correctness.
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [8f2167a]
|
|
14
|
+
- Updated dependencies [f2dfa13]
|
|
15
|
+
- Updated dependencies [96e9661]
|
|
16
|
+
- @iqai/adk@0.6.2
|
|
17
|
+
|
|
18
|
+
## 0.3.34
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [3f78ed9]
|
|
23
|
+
- @iqai/adk@0.6.1
|
|
24
|
+
|
|
3
25
|
## 0.3.33
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -235,21 +257,17 @@
|
|
|
235
257
|
### Patch Changes
|
|
236
258
|
|
|
237
259
|
- 2da690a: - **Dependency Updates:**
|
|
238
|
-
|
|
239
260
|
- Upgraded dependencies and devDependencies across multiple packages ensuring compatibility with the latest library versions.
|
|
240
261
|
|
|
241
262
|
- **Schema Handling:**
|
|
242
|
-
|
|
243
263
|
- Transitioned schema conversion to use `z.toJSONSchema`, reducing dependencies.
|
|
244
264
|
- Enhanced type safety in the workflow tool's schema handling.
|
|
245
265
|
|
|
246
266
|
- **Error Reporting and Validation:**
|
|
247
|
-
|
|
248
267
|
- Improved error messages in `AgentBuilder` for better debugging.
|
|
249
268
|
- Enhanced output validation for LLM.
|
|
250
269
|
|
|
251
270
|
- **AI SDK and Model Integration:**
|
|
252
|
-
|
|
253
271
|
- Refined model ID handling in `AiSdkLlm`.
|
|
254
272
|
- Updated field references to align with AI SDK changes.
|
|
255
273
|
|
|
@@ -345,7 +363,6 @@
|
|
|
345
363
|
This major enhancement improves the ADK CLI server's agent loading capabilities and adds new features to the core framework:
|
|
346
364
|
|
|
347
365
|
**CLI Server Improvements:**
|
|
348
|
-
|
|
349
366
|
- **Modular Architecture**: Refactored monolithic server file into organized modules (`server/index.ts`, `server/routes.ts`, `server/services.ts`, `server/types.ts`)
|
|
350
367
|
- **Enhanced Agent Resolution**: New `resolveAgentExport` method supports multiple export patterns:
|
|
351
368
|
- Direct agent exports: `export const agent = new LlmAgent(...)`
|
|
@@ -356,13 +373,11 @@
|
|
|
356
373
|
- **Improved TypeScript Import Handling**: Better project root detection and module resolution for TypeScript files
|
|
357
374
|
|
|
358
375
|
**Core Framework Enhancements:**
|
|
359
|
-
|
|
360
376
|
- **New AgentBuilder Method**: Added `withAgent()` method to directly provide existing agent instances with definition locking to prevent accidental configuration overwrites
|
|
361
377
|
- **Two-Tier Tool Deduplication**: Implemented robust deduplication logic to prevent duplicate function declarations that cause errors with LLM providers (especially Google)
|
|
362
378
|
- **Better Type Safety**: Improved type definitions and replaced `any[]` usage with proper typed interfaces
|
|
363
379
|
|
|
364
380
|
**Testing & Reliability:**
|
|
365
|
-
|
|
366
381
|
- **Comprehensive Test Coverage**: New `agent-resolution.test.ts` with extensive fixtures testing various agent export patterns
|
|
367
382
|
- **Multiple Test Fixtures**: Added 6 different agent export pattern examples for validation
|
|
368
383
|
- **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.35",
|
|
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.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/marked-terminal": "^6.1.1",
|