@iqai/adk-cli 0.3.34 → 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 +15 -7
- package/LICENSE.md +1 -1
- package/README.md +9 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
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
|
+
|
|
3
18
|
## 0.3.34
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -242,21 +257,17 @@
|
|
|
242
257
|
### Patch Changes
|
|
243
258
|
|
|
244
259
|
- 2da690a: - **Dependency Updates:**
|
|
245
|
-
|
|
246
260
|
- Upgraded dependencies and devDependencies across multiple packages ensuring compatibility with the latest library versions.
|
|
247
261
|
|
|
248
262
|
- **Schema Handling:**
|
|
249
|
-
|
|
250
263
|
- Transitioned schema conversion to use `z.toJSONSchema`, reducing dependencies.
|
|
251
264
|
- Enhanced type safety in the workflow tool's schema handling.
|
|
252
265
|
|
|
253
266
|
- **Error Reporting and Validation:**
|
|
254
|
-
|
|
255
267
|
- Improved error messages in `AgentBuilder` for better debugging.
|
|
256
268
|
- Enhanced output validation for LLM.
|
|
257
269
|
|
|
258
270
|
- **AI SDK and Model Integration:**
|
|
259
|
-
|
|
260
271
|
- Refined model ID handling in `AiSdkLlm`.
|
|
261
272
|
- Updated field references to align with AI SDK changes.
|
|
262
273
|
|
|
@@ -352,7 +363,6 @@
|
|
|
352
363
|
This major enhancement improves the ADK CLI server's agent loading capabilities and adds new features to the core framework:
|
|
353
364
|
|
|
354
365
|
**CLI Server Improvements:**
|
|
355
|
-
|
|
356
366
|
- **Modular Architecture**: Refactored monolithic server file into organized modules (`server/index.ts`, `server/routes.ts`, `server/services.ts`, `server/types.ts`)
|
|
357
367
|
- **Enhanced Agent Resolution**: New `resolveAgentExport` method supports multiple export patterns:
|
|
358
368
|
- Direct agent exports: `export const agent = new LlmAgent(...)`
|
|
@@ -363,13 +373,11 @@
|
|
|
363
373
|
- **Improved TypeScript Import Handling**: Better project root detection and module resolution for TypeScript files
|
|
364
374
|
|
|
365
375
|
**Core Framework Enhancements:**
|
|
366
|
-
|
|
367
376
|
- **New AgentBuilder Method**: Added `withAgent()` method to directly provide existing agent instances with definition locking to prevent accidental configuration overwrites
|
|
368
377
|
- **Two-Tier Tool Deduplication**: Implemented robust deduplication logic to prevent duplicate function declarations that cause errors with LLM providers (especially Google)
|
|
369
378
|
- **Better Type Safety**: Improved type definitions and replaced `any[]` usage with proper typed interfaces
|
|
370
379
|
|
|
371
380
|
**Testing & Reliability:**
|
|
372
|
-
|
|
373
381
|
- **Comprehensive Test Coverage**: New `agent-resolution.test.ts` with extensive fixtures testing various agent export patterns
|
|
374
382
|
- **Multiple Test Fixtures**: Added 6 different agent export pattern examples for validation
|
|
375
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",
|