agentic-loop 3.0.1 → 3.1.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/ralph/verify.sh CHANGED
@@ -239,6 +239,72 @@ save_failure_context() {
239
239
  echo ""
240
240
  fi
241
241
 
242
+ if [[ -f "$RALPH_DIR/last_lint_failure.log" ]]; then
243
+ echo "--- Lint Failure ---"
244
+ echo "Fix these lint errors. The auto-fixer couldn't resolve them, but you can:"
245
+ echo ""
246
+ cat "$RALPH_DIR/last_lint_failure.log"
247
+ echo ""
248
+ echo "Common fixes:"
249
+ echo " - E722 bare except: Change 'except:' to 'except Exception:'"
250
+ echo " - F401 unused import: Remove the unused import"
251
+ echo " - F841 unused variable: Remove or use the variable"
252
+ echo ""
253
+ fi
254
+
255
+ if [[ -f "$RALPH_DIR/last_typescript_failure.log" ]]; then
256
+ echo "--- TypeScript Failure ---"
257
+ echo "Fix these TypeScript type errors:"
258
+ echo ""
259
+ cat "$RALPH_DIR/last_typescript_failure.log"
260
+ echo ""
261
+ echo "Common fixes:"
262
+ echo " - TS2322: Type mismatch - ensure assigned value matches expected type"
263
+ echo " - TS2339: Property not found - check spelling or add to interface"
264
+ echo " - TS2345: Argument type mismatch - cast or fix the argument type"
265
+ echo " - TS7006: Implicit any - add explicit type annotation"
266
+ echo ""
267
+ fi
268
+
269
+ if [[ -f "$RALPH_DIR/last_build_failure.log" ]]; then
270
+ echo "--- Build Failure ---"
271
+ echo "Fix these build errors:"
272
+ echo ""
273
+ cat "$RALPH_DIR/last_build_failure.log"
274
+ echo ""
275
+ echo "Common causes:"
276
+ echo " - Import errors: Check file paths and exports"
277
+ echo " - SSR issues (Next.js): Use dynamic imports for client-only code"
278
+ echo " - Missing dependencies: Run npm install"
279
+ echo ""
280
+ fi
281
+
282
+ if [[ -f "$RALPH_DIR/last_go_failure.log" ]]; then
283
+ echo "--- Go Failure ---"
284
+ echo "Fix these Go errors:"
285
+ echo ""
286
+ cat "$RALPH_DIR/last_go_failure.log"
287
+ echo ""
288
+ echo "Common fixes:"
289
+ echo " - Unused variable: Remove or use with _ prefix"
290
+ echo " - Undefined: Check imports and spelling"
291
+ echo " - Type mismatch: Ensure types align or use type assertion"
292
+ echo ""
293
+ fi
294
+
295
+ if [[ -f "$RALPH_DIR/last_rust_failure.log" ]]; then
296
+ echo "--- Rust Failure ---"
297
+ echo "Fix these Rust errors:"
298
+ echo ""
299
+ cat "$RALPH_DIR/last_rust_failure.log"
300
+ echo ""
301
+ echo "Common fixes:"
302
+ echo " - Unused variable: Prefix with _ or remove"
303
+ echo " - Borrow checker: Check ownership and lifetimes"
304
+ echo " - Missing trait: Add #[derive(...)] or impl"
305
+ echo ""
306
+ fi
307
+
242
308
  if [[ -f "$RALPH_DIR/last_precommit_failure.log" ]]; then
243
309
  echo "--- Pre-commit / Lint Failure ---"
244
310
  echo "Fix these errors before the story can be completed:"
@@ -37,11 +37,11 @@
37
37
  },
38
38
 
39
39
  "checks": {
40
- "typescript": "cd frontend && npx tsc --noEmit",
41
- "lint": "ruff check .",
42
- "lintFrontend": "cd frontend && npm run lint",
43
- "test": "python manage.py test --keepdb --parallel",
44
- "testFrontend": "cd frontend && npm test"
40
+ "lint": true,
41
+ "typecheck": true,
42
+ "build": "final",
43
+ "test": true,
44
+ "fastapi": true
45
45
  },
46
46
 
47
47
  "api": {
@@ -35,9 +35,11 @@
35
35
  },
36
36
 
37
37
  "checks": {
38
- "build": "go build ./...",
39
- "lint": "golangci-lint run",
40
- "test": "go test ./..."
38
+ "lint": true,
39
+ "typecheck": false,
40
+ "build": true,
41
+ "test": true,
42
+ "fastapi": false
41
43
  },
42
44
 
43
45
  "api": {
@@ -34,7 +34,13 @@
34
34
  "pattern": ""
35
35
  },
36
36
 
37
- "checks": {},
37
+ "checks": {
38
+ "lint": true,
39
+ "typecheck": true,
40
+ "build": "final",
41
+ "test": true,
42
+ "fastapi": false
43
+ },
38
44
 
39
45
  "api": {
40
46
  "baseUrl": "http://localhost:3000",
@@ -35,9 +35,11 @@
35
35
  },
36
36
 
37
37
  "checks": {
38
- "typescript": "npx tsc --noEmit",
39
- "lint": "npm run lint",
40
- "test": "npm test"
38
+ "lint": true,
39
+ "typecheck": true,
40
+ "build": "final",
41
+ "test": true,
42
+ "fastapi": false
41
43
  },
42
44
 
43
45
  "api": {
@@ -35,9 +35,11 @@
35
35
  },
36
36
 
37
37
  "checks": {
38
- "lint": "ruff check .",
39
- "typecheck": "mypy .",
40
- "test": "pytest"
38
+ "lint": true,
39
+ "typecheck": false,
40
+ "build": false,
41
+ "test": true,
42
+ "fastapi": true
41
43
  },
42
44
 
43
45
  "api": {
@@ -35,9 +35,11 @@
35
35
  },
36
36
 
37
37
  "checks": {
38
- "build": "cargo build",
39
- "lint": "cargo clippy -- -D warnings",
40
- "test": "cargo test"
38
+ "lint": true,
39
+ "typecheck": false,
40
+ "build": true,
41
+ "test": true,
42
+ "fastapi": false
41
43
  },
42
44
 
43
45
  "api": {