agentv 0.5.0 → 0.5.3

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-THVRLL37.js";
4
+ } from "./chunk-5WBKOCCW.js";
5
5
 
6
6
  // src/cli.ts
7
7
  void runCli();
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createProgram,
3
3
  runCli
4
- } from "./chunk-THVRLL37.js";
4
+ } from "./chunk-5WBKOCCW.js";
5
5
  export {
6
6
  createProgram,
7
7
  runCli
@@ -0,0 +1,35 @@
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
24
+
25
+ # Codex CLI Configuration
26
+ # Either OPENAI_API_KEY or CODEX_API_KEY must be set before running codex targets
27
+ OPENAI_API_KEY=your-openai-or-codex-key
28
+ CODEX_API_KEY=
29
+ CODEX_PROFILE=default
30
+ CODEX_MODEL=gpt-4o-mini
31
+ CODEX_APPROVAL_PRESET=auto
32
+ CODEX_CLI_PATH=C:/Program Files/Codex/bin/codex.exe
33
+ CODEX_WORKSPACE_DIR=C:/Temp/agentv-codex
34
+ # Optional override if your codex config lives outside the default ~/.codex/config
35
+ CODEX_CONFIG_PATH=
@@ -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
@@ -0,0 +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
@@ -0,0 +1,74 @@
1
+ $schema: agentv-targets-v2
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: vscode_projectx
9
+ provider: vscode
10
+ settings:
11
+ workspace_template: PROJECTX_WORKSPACE_PATH
12
+ provider_batching: false
13
+ judge_target: azure_base
14
+
15
+ - name: vscode_insiders_projectx
16
+ provider: vscode-insiders
17
+ settings:
18
+ workspace_template: PROJECTX_WORKSPACE_PATH
19
+ provider_batching: false
20
+ judge_target: azure_base
21
+
22
+ - name: vscode
23
+ provider: vscode
24
+ judge_target: azure_base
25
+
26
+ - name: azure_base
27
+ provider: azure
28
+ settings:
29
+ endpoint: AZURE_OPENAI_ENDPOINT
30
+ api_key: AZURE_OPENAI_API_KEY
31
+ model: AZURE_DEPLOYMENT_NAME
32
+
33
+ - name: default
34
+ provider: azure
35
+ settings:
36
+ endpoint: AZURE_OPENAI_ENDPOINT
37
+ api_key: AZURE_OPENAI_API_KEY
38
+ model: AZURE_DEPLOYMENT_NAME
39
+
40
+ - name: local_cli
41
+ provider: cli
42
+ judge_target: azure_base
43
+ settings:
44
+ # Passes the fully rendered prompt and any attached files to a local Python script
45
+ # NOTE: Do not add quotes around {PROMPT} or {FILES} - they are already shell-escaped
46
+ command_template: uv run ./mock_cli.py --prompt {PROMPT} {FILES}
47
+ # Format for each file in {FILES}. {path} and {basename} are automatically shell-escaped, so no quotes needed
48
+ files_format: --file {path}
49
+ # Optional working directory and env overrides resolved from .env
50
+ cwd: CLI_EVALS_DIR
51
+ env:
52
+ API_TOKEN: LOCAL_AGENT_TOKEN
53
+ timeout_seconds: 30
54
+ healthcheck:
55
+ type: command
56
+ command_template: uv run ./mock_cli.py --healthcheck
57
+
58
+ - name: codex_cli
59
+ provider: codex
60
+ judge_target: azure_base
61
+ settings:
62
+ # Uses the Codex CLI (defaults to `codex` on PATH)
63
+ # executable: CODEX_CLI_PATH # Optional: override executable path
64
+ # args: # Optional additional CLI arguments
65
+ # - --profile
66
+ # - CODEX_PROFILE
67
+ # - --model
68
+ # - CODEX_MODEL
69
+ # - --ask-for-approval
70
+ # - CODEX_APPROVAL_PRESET
71
+ timeout_seconds: 180
72
+ cwd: CODEX_WORKSPACE_DIR # Where scratch workspaces are created
73
+ log_dir: CODEX_LOG_DIR # Optional: where Codex CLI stream logs are stored (defaults to ./.agentv/logs/codex)
74
+ log_format: json # Optional: 'summary' (default) or 'json' for raw event logs
@@ -13,6 +13,7 @@ description: 'Apply when writing evals in YAML format'
13
13
  - Message fields: `role` (required), `content` (required)
14
14
  - Message roles: `system`, `user`, `assistant`, `tool`
15
15
  - Content types: `text` (inline), `file` (relative or absolute path)
16
+ - Attachments (type: `file`) should default to the `user` role
16
17
  - File paths must start with "/" for absolute paths (e.g., "/prompts/file.md")
17
18
 
18
19
  ## Example
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentv",
3
- "version": "0.5.0",
3
+ "version": "0.5.3",
4
4
  "description": "CLI entry point for AgentV",
5
5
  "type": "module",
6
6
  "repository": {
@@ -24,14 +24,15 @@
24
24
  "log-update": "^7.0.1",
25
25
  "micromatch": "^4.0.8",
26
26
  "yaml": "^2.6.1",
27
- "@agentv/core": "0.5.0"
27
+ "@agentv/core": "0.5.3"
28
28
  },
29
29
  "devDependencies": {
30
30
  "execa": "^9.3.0"
31
31
  },
32
32
  "scripts": {
33
33
  "dev": "tsx watch src/index.ts",
34
- "build": "tsup",
34
+ "build": "tsup && pnpm run copy-readme",
35
+ "copy-readme": "node -e \"require('fs').cpSync('../../README.md', 'README.md')\"",
35
36
  "typecheck": "tsc --noEmit",
36
37
  "lint": "eslint . --ext .ts",
37
38
  "test": "vitest run",