@elizaos/sweagent-root 2.0.0-alpha.41 → 2.0.0-alpha.44

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elizaos/sweagent-root",
3
3
  "private": false,
4
- "version": "2.0.0-alpha.41",
4
+ "version": "2.0.0-alpha.44",
5
5
  "description": "SWE-agent: AI software engineering agent with Python, TypeScript, and Rust implementations",
6
6
  "type": "module",
7
7
  "main": "typescript/dist/index.js",
@@ -42,24 +42,37 @@
42
42
  },
43
43
  "scripts": {
44
44
  "build": "bun run build:ts && bun run build:rust && bun run build:python",
45
- "build:ts": "cd typescript && (test -d node_modules || bun install) && (cd tools && test -d node_modules || bun install) && bun run build",
45
+ "build:ts": "cd typescript && bun run build",
46
46
  "build:rust": "test -d rust && cd rust && cargo build --release || echo 'Rust build skipped - no rust directory'",
47
47
  "build:python": "test -n \"$SKIP_PYTHON_BUILD\" && echo 'Python build skipped (SKIP_PYTHON_BUILD set)' || (test -d python && cd python && (timeout 120 python3 -m build 2>/dev/null || timeout 120 pyproject-build 2>/dev/null) || echo 'Python build skipped or timed out')",
48
48
  "dev": "cd typescript && bun --hot build.ts",
49
49
  "test": "bun run test:ts && bun run test:rust && bun run test:python",
50
50
  "test:ts": "cd typescript && bun run build && vitest run",
51
51
  "test:rust": "test -d rust && cd rust && cargo test || echo 'Rust tests skipped'",
52
- "test:python": "test -d python && cd python && timeout 120 pytest -p no:anchorpy --asyncio-mode=auto -x --forked 2>/dev/null || timeout 120 pytest -p no:anchorpy --asyncio-mode=auto -x || echo 'Python tests timed out or skipped (may require Docker)'",
53
- "typecheck": "cd typescript && (test -d node_modules || bun install) && bun run typecheck",
52
+ "test:python": "test -d python && (command -v pytest >/dev/null 2>&1 && cd python && pytest -p no:anchorpy --asyncio-mode=auto || echo 'Python tests skipped - pytest not found') || echo 'Python tests skipped - no python dir'",
53
+ "typecheck": "tsc --noEmit -p typescript/tsconfig.json",
54
54
  "lint": "bunx @biomejs/biome check --write ./typescript",
55
55
  "lint:check": "bunx @biomejs/biome check ./typescript",
56
56
  "lint:rust": "test -d rust && cd rust && cargo clippy --all-targets --fix --allow-dirty --allow-staged -- -D warnings && cargo fmt || echo 'Rust lint skipped'",
57
57
  "lint:python": "test -d python && cd python && ruff check --fix . && ruff format . || echo 'Python lint skipped'",
58
58
  "clean": "rm -rf typescript/dist python/dist rust/target .turbo node_modules"
59
59
  },
60
+ "dependencies": {
61
+ "axios": "^1.7.0",
62
+ "chalk": "^5.3.0",
63
+ "commander": "^12.1.0",
64
+ "dockerode": "^4.0.7",
65
+ "dotenv": "^16.4.0",
66
+ "express": "^4.21.0",
67
+ "glob": "^10.4.5",
68
+ "pino": "^9.5.0",
69
+ "pino-pretty": "^10.3.1",
70
+ "playwright": "^1.55.0"
71
+ },
60
72
  "devDependencies": {
61
73
  "@biomejs/biome": "^2.3.11",
62
74
  "@types/bun": "^1.3.5",
75
+ "@types/express": "^4.17.21",
63
76
  "@types/node": "^25.0.3",
64
77
  "typescript": "^5.9.3",
65
78
  "vitest": "^4.0.17"
@@ -67,5 +80,5 @@
67
80
  "publishConfig": {
68
81
  "access": "public"
69
82
  },
70
- "gitHead": "b3e37e421bcd49b6bc7a34373edc7b3b3a282b8b"
83
+ "gitHead": "2b27a4e70ebdf054b117b87ed9e8f9f709fe006b"
71
84
  }
@@ -1,4 +1,3 @@
1
-
2
1
  import pytest
3
2
  import yaml
4
3
  from swerex.exceptions import SwerexException
@@ -50,16 +49,9 @@ def function_calling_agent_config():
50
49
 
51
50
  @pytest.fixture
52
51
  def default_agent_config():
53
- import os
54
- print(f"DEBUG: CWD={os.getcwd()}")
55
- print(f"DEBUG: CONFIG_DIR={CONFIG_DIR}")
56
- target = CONFIG_DIR / "sweagent_0_7/07.yaml"
57
- print(f"DEBUG: Target={target}")
58
- print(f"DEBUG: Target exists={target.exists()}")
59
-
60
- config = yaml.safe_load(target.read_text())
52
+ config = yaml.safe_load((CONFIG_DIR / "sweagent_0_7/07.yaml").read_text())
61
53
  config["agent"]["model"] = {"name": "instant_empty_submit"}
62
- # print(yaml.dump(config))
54
+ print(yaml.dump(config))
63
55
  return DefaultAgentConfig.model_validate(config["agent"])
64
56
 
65
57
 
@@ -195,20 +195,12 @@ impl HistoryProcessor for ChainedHistoryProcessor {
195
195
  pub enum HistoryProcessorConfig {
196
196
  #[default]
197
197
  Default,
198
- LastNObservations {
199
- n: usize,
200
- },
201
- TagToolCallObservations {
202
- tag: String,
203
- },
198
+ LastNObservations { n: usize },
199
+ TagToolCallObservations { tag: String },
204
200
  ClosedWindow,
205
201
  CacheControl,
206
- RemoveRegex {
207
- pattern: String,
208
- },
209
- ImageParsing {
210
- disable_images: bool,
211
- },
202
+ RemoveRegex { pattern: String },
203
+ ImageParsing { disable_images: bool },
212
204
  }
213
205
 
214
206
  /// Create a history processor from configuration
@@ -217,14 +217,8 @@ impl WebhookAlertHandler {
217
217
  matches!(
218
218
  (self.min_severity, severity),
219
219
  (AlertSeverity::Critical, AlertSeverity::Critical)
220
- | (
221
- AlertSeverity::Error,
222
- AlertSeverity::Critical | AlertSeverity::Error
223
- )
224
- | (
225
- AlertSeverity::Warning,
226
- AlertSeverity::Critical | AlertSeverity::Error | AlertSeverity::Warning
227
- )
220
+ | (AlertSeverity::Error, AlertSeverity::Critical | AlertSeverity::Error)
221
+ | (AlertSeverity::Warning, AlertSeverity::Critical | AlertSeverity::Error | AlertSeverity::Warning)
228
222
  | (AlertSeverity::Info, _)
229
223
  )
230
224
  }