agentv 1.3.1 → 1.6.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/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "./chunk-6R2YRXCQ.js";
4
+ } from "./chunk-HU4B6ODF.js";
5
5
  import "./chunk-UE4GLFVL.js";
6
6
 
7
7
  // src/cli.ts
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  app,
3
3
  runCli
4
- } from "./chunk-6R2YRXCQ.js";
4
+ } from "./chunk-HU4B6ODF.js";
5
5
  import "./chunk-UE4GLFVL.js";
6
6
  export {
7
7
  app,
@@ -1,23 +1,23 @@
1
- # Copy this file to .env and fill in your credentials
2
-
3
- # Azure OpenAI Configuration
4
- AZURE_OPENAI_ENDPOINT=https://your-endpoint.openai.azure.com/
5
- AZURE_OPENAI_API_KEY=your-openai-api-key-here
6
- AZURE_DEPLOYMENT_NAME=gpt-5-chat
7
- AZURE_OPENAI_API_VERSION=2024-12-01-preview
8
-
9
- # Google Gemini
10
- GOOGLE_GENERATIVE_AI_API_KEY=your-gemini-api-key-here
11
- GEMINI_MODEL_NAME=gemini-2.5-flash
12
-
13
- # Anthropic
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
- CLI_EVALS_DIR=./docs/examples/simple/evals/local-cli
23
- LOCAL_AGENT_TOKEN=dummytoken
1
+ # Copy this file to .env and fill in your credentials
2
+
3
+ # Azure OpenAI Configuration
4
+ AZURE_OPENAI_ENDPOINT=https://your-endpoint.openai.azure.com/
5
+ AZURE_OPENAI_API_KEY=your-openai-api-key-here
6
+ AZURE_DEPLOYMENT_NAME=gpt-5-chat
7
+ AZURE_OPENAI_API_VERSION=2024-12-01-preview
8
+
9
+ # Google Gemini
10
+ GOOGLE_GENERATIVE_AI_API_KEY=your-gemini-api-key-here
11
+ GEMINI_MODEL_NAME=gemini-2.5-flash
12
+
13
+ # Anthropic
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
+ CLI_EVALS_DIR=./docs/examples/simple/evals/local-cli
23
+ LOCAL_AGENT_TOKEN=dummytoken
@@ -1,15 +1,15 @@
1
- $schema: agentv-config-v2
2
-
3
- # Customize which files are treated as guidelines vs regular file content
4
-
5
- # Custom guideline patterns:
6
- guideline_patterns:
7
- - "**/*.instructions.md"
8
- - "**/*.prompt.md"
9
- - "**/SKILL.md"
10
-
11
- # Notes:
12
- # - Patterns use standard glob syntax (via micromatch library)
13
- # - Paths are normalized to forward slashes for cross-platform compatibility
14
- # - Only files matching these patterns are loaded as guidelines
15
- # - All other files referenced in eval cases are treated as regular file content
1
+ $schema: agentv-config-v2
2
+
3
+ # Customize which files are treated as guidelines vs regular file content
4
+
5
+ # Custom guideline patterns:
6
+ guideline_patterns:
7
+ - "**/*.instructions.md"
8
+ - "**/*.prompt.md"
9
+ - "**/SKILL.md"
10
+
11
+ # Notes:
12
+ # - Patterns use standard glob syntax (via micromatch library)
13
+ # - Paths are normalized to forward slashes for cross-platform compatibility
14
+ # - Only files matching these patterns are loaded as guidelines
15
+ # - All other files referenced in eval cases are treated as regular file content
@@ -1,73 +1,71 @@
1
- $schema: agentv-targets-v2.2
2
-
3
- # A list of all supported evaluation targets for the project.
4
- # Each target defines a provider and its specific configuration.
5
- # Actual values for paths/keys are stored in the local .env file.
6
-
7
- targets:
8
- - name: default
9
- provider: azure
10
- endpoint: ${{ AZURE_OPENAI_ENDPOINT }}
11
- api_key: ${{ AZURE_OPENAI_API_KEY }}
12
- model: ${{ AZURE_DEPLOYMENT_NAME }}
13
- # version: ${{ AZURE_OPENAI_API_VERSION }} # Optional: uncomment to override default (2024-12-01-preview)
14
-
15
- - name: vscode
16
- provider: vscode
17
- judge_target: azure_base
18
-
19
- - name: codex
20
- provider: codex
21
- judge_target: azure_base
22
- # Uses the Codex CLI (defaults to `codex` on PATH)
23
- # executable: ${{ CODEX_CLI_PATH }} # Optional: override executable path
24
- # args: # Optional additional CLI arguments
25
- # - --profile
26
- # - ${{ CODEX_PROFILE }}
27
- # - --model
28
- # - ${{ CODEX_MODEL }}
29
- # - --ask-for-approval
30
- # - ${{ CODEX_APPROVAL_PRESET }}
31
- timeout_seconds: 180
32
- cwd: ${{ CODEX_WORKSPACE_DIR }} # Where scratch workspaces are created
33
- log_dir: ${{ CODEX_LOG_DIR }} # Optional: where Codex CLI stream logs are stored (defaults to ./.agentv/logs/codex)
34
- log_format: json # Optional: 'summary' (default) or 'json' for raw event logs
35
-
36
- - name: vscode_projectx
37
- provider: vscode
38
- workspace_template: ${{ PROJECTX_WORKSPACE_PATH }}
39
- provider_batching: false
40
- judge_target: azure_base
41
-
42
- - name: vscode_insiders_projectx
43
- provider: vscode-insiders
44
- workspace_template: ${{ PROJECTX_WORKSPACE_PATH }}
45
- provider_batching: false
46
- judge_target: azure_base
47
-
48
- - name: azure_base
49
- provider: azure
50
- endpoint: ${{ AZURE_OPENAI_ENDPOINT }}
51
- api_key: ${{ AZURE_OPENAI_API_KEY }}
52
- model: ${{ AZURE_DEPLOYMENT_NAME }}
53
- version: ${{ AZURE_OPENAI_API_VERSION }}
54
-
55
- - name: gemini_base
56
- provider: gemini
57
- api_key: ${{ GOOGLE_GENERATIVE_AI_API_KEY }}
58
- model: ${{ GEMINI_MODEL_NAME }}
59
-
60
- - name: local_cli
61
- provider: cli
62
- judge_target: azure_base
63
- # Passes the fully rendered prompt and any attached files to a local Python script
64
- # NOTE: Do not add quotes around {PROMPT} or {FILES} - they are already shell-escaped
65
- command_template: uv run ./mock_cli.py --prompt {PROMPT} {FILES} --output {OUTPUT_FILE}
66
- # Format for each file in {FILES}. {path} and {basename} are automatically shell-escaped, so no quotes needed
67
- files_format: --file {path}
68
- # Optional working directory resolved from .env
69
- cwd: ${{ CLI_EVALS_DIR }}
70
- timeout_seconds: 30
71
- healthcheck:
72
- type: command
73
- command_template: uv run ./mock_cli.py --healthcheck
1
+ # A list of all supported evaluation targets for the project.
2
+ # Each target defines a provider and its specific configuration.
3
+ # Actual values for paths/keys are stored in the local .env file.
4
+
5
+ targets:
6
+ - name: default
7
+ provider: azure
8
+ endpoint: ${{ AZURE_OPENAI_ENDPOINT }}
9
+ api_key: ${{ AZURE_OPENAI_API_KEY }}
10
+ model: ${{ AZURE_DEPLOYMENT_NAME }}
11
+ # version: ${{ AZURE_OPENAI_API_VERSION }} # Optional: uncomment to override default (2024-12-01-preview)
12
+
13
+ - name: vscode
14
+ provider: vscode
15
+ judge_target: azure_base
16
+
17
+ - name: codex
18
+ provider: codex
19
+ judge_target: azure_base
20
+ # Uses the Codex CLI (defaults to `codex` on PATH)
21
+ # executable: ${{ CODEX_CLI_PATH }} # Optional: override executable path
22
+ # args: # Optional additional CLI arguments
23
+ # - --profile
24
+ # - ${{ CODEX_PROFILE }}
25
+ # - --model
26
+ # - ${{ CODEX_MODEL }}
27
+ # - --ask-for-approval
28
+ # - ${{ CODEX_APPROVAL_PRESET }}
29
+ timeout_seconds: 180
30
+ cwd: ${{ CODEX_WORKSPACE_DIR }} # Where scratch workspaces are created
31
+ log_dir: ${{ CODEX_LOG_DIR }} # Optional: where Codex CLI stream logs are stored (defaults to ./.agentv/logs/codex)
32
+ log_format: json # Optional: 'summary' (default) or 'json' for raw event logs
33
+
34
+ - name: vscode_projectx
35
+ provider: vscode
36
+ workspace_template: ${{ PROJECTX_WORKSPACE_PATH }}
37
+ provider_batching: false
38
+ judge_target: azure_base
39
+
40
+ - name: vscode_insiders_projectx
41
+ provider: vscode-insiders
42
+ workspace_template: ${{ PROJECTX_WORKSPACE_PATH }}
43
+ provider_batching: false
44
+ judge_target: azure_base
45
+
46
+ - name: azure_base
47
+ provider: azure
48
+ endpoint: ${{ AZURE_OPENAI_ENDPOINT }}
49
+ api_key: ${{ AZURE_OPENAI_API_KEY }}
50
+ model: ${{ AZURE_DEPLOYMENT_NAME }}
51
+ version: ${{ AZURE_OPENAI_API_VERSION }}
52
+
53
+ - name: gemini_base
54
+ provider: gemini
55
+ api_key: ${{ GOOGLE_GENERATIVE_AI_API_KEY }}
56
+ model: ${{ GEMINI_MODEL_NAME }}
57
+
58
+ - name: local_cli
59
+ provider: cli
60
+ judge_target: azure_base
61
+ # Passes the fully rendered prompt and any attached files to a local Python script
62
+ # NOTE: Do not add quotes around {PROMPT} or {FILES} - they are already shell-escaped
63
+ command_template: uv run ./mock_cli.py --prompt {PROMPT} {FILES} --output {OUTPUT_FILE}
64
+ # Format for each file in {FILES}. {path} and {basename} are automatically shell-escaped, so no quotes needed
65
+ files_format: --file {path}
66
+ # Optional working directory resolved from .env
67
+ cwd: ${{ CLI_EVALS_DIR }}
68
+ timeout_seconds: 30
69
+ healthcheck:
70
+ type: command
71
+ command_template: uv run ./mock_cli.py --healthcheck