-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.test
More file actions
130 lines (105 loc) · 3 KB
/
.env.test
File metadata and controls
130 lines (105 loc) · 3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Test environment defaults for agentloop.
#
# MISTRAL_API_KEY is intentionally absent — supply it via the --api-key CLI
# flag so that secrets are never committed to the repository:
#
# npm run oneshot -- agent --api-key "$MISTRAL_API_KEY" -u "Your prompt here"
#
# In CI the GitHub Actions workflow injects the key through that flag using the
# MISTRAL_API_KEY repository secret.
#
# To run locally:
# cp .env.test .env
# npm run oneshot -- agent --api-key "sk-..." -u "Your prompt here"
# Agent loop — keep iterations low for fast, cheap tests
MAX_ITERATIONS=5
MAX_TOKENS_BUDGET=0
MAX_CONTEXT_TOKENS=28000
# LLM retry settings
LLM_RETRY_MAX=2
LLM_RETRY_BASE_DELAY_MS=500
# Per-tool execution timeout
TOOL_TIMEOUT_MS=30000
# LLM provider — use a fast, affordable model for tests
LLM_PROVIDER=mistral
LLM_MODEL=mistral-small-latest
LLM_TEMPERATURE=0.0
# System prompt override (none by default)
SYSTEM_PROMPT_PATH=
# Skip all confirmation prompts in non-interactive test runs
AUTO_APPROVE_ALL=true
TOOL_ALLOWLIST=
TOOL_BLOCKLIST=
# Shell command execution
SHELL_COMMAND_BLOCKLIST=
# Code execution
EXECUTION_TIMEOUT_MS=60000
EXECUTION_ENVIRONMENT=local
# Sandboxing (keep off for tests)
SANDBOX_MODE=none
SANDBOX_DOCKER_IMAGE=node:20-alpine
# Workspace
WORKSPACE_ROOT=
# Instruction files
INSTRUCTIONS_ROOT=
# Prompt templates / history (disabled in tests)
PROMPT_TEMPLATES_DIR=
PROMPT_HISTORY_FILE=
PROMPT_CONTEXT_REFRESH_MS=5000
# MCP (disabled in tests)
MCP_SERVERS=
# Security hardening
MAX_FILE_SIZE_BYTES=10485760
MAX_SHELL_OUTPUT_BYTES=1048576
MAX_CONCURRENT_TOOLS=10
NETWORK_ALLOWED_DOMAINS=
# Streaming — off for deterministic test output
STREAMING_ENABLED=false
# Tracing — off for tests
TRACING_ENABLED=false
TRACE_OUTPUT_DIR=./traces
TRACING_COST_PER_INPUT_TOKEN_USD=0
TRACING_COST_PER_OUTPUT_TOKEN_USD=0
# Logging — minimal output during tests
LOG_LEVEL=warn
LOG_ENABLED=true
LOG_DESTINATION=stdout
LOG_NAME=agentloop
LOG_TIMESTAMP=false
# Web search — disabled by default to avoid network calls in tests
WEB_SEARCH_PROVIDER=none
TAVILY_API_KEY=
TAVILY_MAX_RESULTS=5
LANGSEARCH_API_KEY=
LANGSEARCH_MAX_RESULTS=5
DUCKDUCKGO_MAX_RESULTS=5
DUCKDUCKGO_MIN_DELAY_MS=1000
DUCKDUCKGO_RETRY_MAX=2
DUCKDUCKGO_RETRY_BASE_DELAY_MS=400
DUCKDUCKGO_RATE_LIMIT_PENALTY_MS=1000
DUCKDUCKGO_CACHE_TTL_MS=300000
DUCKDUCKGO_CACHE_MAX_ENTRIES=128
DUCKDUCKGO_SERVE_STALE_ON_ERROR=true
# Web fetch tool
WEB_DOMAIN_BLOCKLIST=
WEB_DOMAIN_ALLOWLIST=
WEB_ALLOW_HTTP=false
WEB_MAX_RESPONSE_BYTES=5242880
WEB_MAX_CONTENT_CHARS=20000
WEB_USER_AGENT=AgentLoop/1.0
WEB_FETCH_TIMEOUT_MS=15000
# Runtime context injection — off for reproducible test output
RUNTIME_CONTEXT_ENABLED=false
# Interactive UI mode
UI_MODE=cli
# Skills / agent profiles (use built-ins only)
SKILLS_DIR=
AGENT_PROFILES_DIR=
# LLM response recording (off for tests)
RECORD_LLM_RESPONSES=false
LLM_FIXTURE_DIR=tests/fixtures/llm-responses
# Orchestrator engine
ORCHESTRATOR=langgraph
# Coordinator (off for tests)
COORDINATOR_ENABLED=false
COORDINATOR_PLAN_THRESHOLD=1