agentv 0.20.1 → 0.21.2

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/dist/cli.js CHANGED
@@ -1,9 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "./chunk-GDGNKNKP.js";
4
+ } from "./chunk-WOCXZEH4.js";
5
5
  import "./chunk-UE4GLFVL.js";
6
6
 
7
7
  // src/cli.ts
8
- void runCli();
8
+ runCli().catch((error) => {
9
+ console.error(error);
10
+ process.exit(1);
11
+ });
9
12
  //# sourceMappingURL=cli.js.map
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { runCli } from './index.js';\n\nvoid runCli();\n"],"mappings":";;;;;;;AAGA,KAAK,OAAO;","names":[]}
1
+ {"version":3,"sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\r\nimport { runCli } from './index.js';\r\n\r\nrunCli().catch((error) => {\r\n console.error(error);\r\n process.exit(1);\r\n});\r\n"],"mappings":";;;;;;;AAGA,OAAO,EAAE,MAAM,CAAC,UAAU;AACxB,UAAQ,MAAM,KAAK;AACnB,UAAQ,KAAK,CAAC;AAChB,CAAC;","names":[]}
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
- createProgram,
2
+ app,
3
3
  runCli
4
- } from "./chunk-GDGNKNKP.js";
4
+ } from "./chunk-WOCXZEH4.js";
5
5
  import "./chunk-UE4GLFVL.js";
6
6
  export {
7
- createProgram,
7
+ app,
8
8
  runCli
9
9
  };
10
10
  //# sourceMappingURL=index.js.map
@@ -12,7 +12,7 @@ description: Create and maintain AgentV YAML evaluation files for testing AI age
12
12
 
13
13
  ## Structure Requirements
14
14
  - Root level: `description` (optional), `execution` (optional), `evalcases` (required)
15
- - Eval case fields: `id` (required), `outcome` (required), `input_messages` (required), `expected_messages` (required)
15
+ - Eval case fields: `id` (required), `expected_outcome` (required), `input_messages` (required), `expected_messages` (required)
16
16
  - Optional fields: `conversation_id`, `note`, `execution`
17
17
  - Message fields: `role` (required), `content` (required)
18
18
  - Message roles: `system`, `user`, `assistant`, `tool`
@@ -37,7 +37,7 @@ execution:
37
37
  ```
38
38
 
39
39
  **Contract:**
40
- - Input (stdin): JSON with `task`, `outcome`, `expected`, `output`, `system_message`, etc.
40
+ - Input (stdin): JSON with `task`, `expected_outcome`, `expected`, `output`, `system_message`, etc.
41
41
  - Output (stdout): JSON with `score` (0.0-1.0), `hits`, `misses`, `reasoning`
42
42
 
43
43
  **Template:** See `references/custom-evaluators.md` for Python code evaluator template
@@ -76,7 +76,7 @@ execution:
76
76
 
77
77
  evalcases:
78
78
  - id: code-review-basic
79
- outcome: Assistant provides helpful code analysis
79
+ expected_outcome: Assistant provides helpful code analysis
80
80
 
81
81
  input_messages:
82
82
  - role: system
@@ -0,0 +1,23 @@
1
+ # Example environment configuration for AgentV
2
+ # Copy this file to .env and fill in your credentials
3
+
4
+ # Model Provider Selection (Optional - can be configured via targets.yaml)
5
+ PROVIDER=azure
6
+
7
+ # Azure OpenAI Configuration
8
+ # These are the default environment variable names used in the provided targets.yaml
9
+ AZURE_OPENAI_ENDPOINT=https://your-endpoint.openai.azure.com/
10
+ AZURE_OPENAI_API_KEY=your-api-key-here
11
+ AZURE_DEPLOYMENT_NAME=gpt-4o
12
+
13
+ # Anthropic Configuration (if using Anthropic provider)
14
+ ANTHROPIC_API_KEY=your-anthropic-api-key-here
15
+
16
+ # VS Code Workspace Paths for Execution Targets
17
+ # Note: Using forward slashes is recommended for paths in .env files
18
+ # to avoid issues with escape characters.
19
+ PROJECTX_WORKSPACE_PATH=C:/Users/your-username/OneDrive - Company Pty Ltd/sample.code-workspace
20
+
21
+ # CLI provider sample (used by the local_cli target)
22
+ PROJECT_ROOT=D:/GitHub/your-username/agentv/docs/examples/simple
23
+ LOCAL_AGENT_TOKEN=your-cli-token
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentv",
3
- "version": "0.20.1",
3
+ "version": "0.21.2",
4
4
  "description": "CLI entry point for AgentV",
5
5
  "type": "module",
6
6
  "repository": {
@@ -32,10 +32,10 @@
32
32
  "test:coverage": "vitest run --coverage"
33
33
  },
34
34
  "dependencies": {
35
- "@agentv/core": "0.20.0",
36
- "commander": "^12.1.0",
37
- "fast-glob": "^3.3.3",
35
+ "@agentv/core": "0.22.0",
36
+ "cmd-ts": "^0.14.3",
38
37
  "dotenv": "^16.4.5",
38
+ "fast-glob": "^3.3.3",
39
39
  "micromatch": "^4.0.8",
40
40
  "yaml": "^2.6.1"
41
41
  },