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/README.md +39 -187
- package/dist/checks/check-debug-statements.d.ts.map +1 -1
- package/dist/checks/check-debug-statements.js +5 -3
- package/dist/checks/check-debug-statements.js.map +1 -1
- package/dist/checks/check-hardcoded-urls.d.ts.map +1 -1
- package/dist/checks/check-hardcoded-urls.js +5 -0
- package/dist/checks/check-hardcoded-urls.js.map +1 -1
- package/dist/checks/check-secrets.d.ts.map +1 -1
- package/dist/checks/check-secrets.js +5 -0
- package/dist/checks/check-secrets.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +18 -4
- package/dist/cli.js.map +1 -1
- package/dist/utils/file-reader.d.ts +1 -1
- package/dist/utils/file-reader.d.ts.map +1 -1
- package/dist/utils/file-reader.js +29 -2
- package/dist/utils/file-reader.js.map +1 -1
- package/dist/utils/types.d.ts +7 -0
- package/dist/utils/types.d.ts.map +1 -1
- package/dist/utils/types.js +20 -1
- package/dist/utils/types.js.map +1 -1
- package/package.json +1 -1
- package/ralph/loop.sh +5 -0
- package/ralph/verify/lint.sh +402 -173
- package/ralph/verify.sh +66 -0
- package/templates/config/fullstack.json +5 -5
- package/templates/config/go.json +5 -3
- package/templates/config/minimal.json +7 -1
- package/templates/config/node.json +5 -3
- package/templates/config/python.json +5 -3
- package/templates/config/rust.json +5 -3
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
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"test":
|
|
44
|
-
"
|
|
40
|
+
"lint": true,
|
|
41
|
+
"typecheck": true,
|
|
42
|
+
"build": "final",
|
|
43
|
+
"test": true,
|
|
44
|
+
"fastapi": true
|
|
45
45
|
},
|
|
46
46
|
|
|
47
47
|
"api": {
|
package/templates/config/go.json
CHANGED