Add selectable CASAN IDE integrations

This commit is contained in:
thanhnv
2026-07-23 23:04:54 +07:00
parent ff4e9d5a53
commit ce708fafe5
28 changed files with 1658 additions and 407 deletions
@@ -62,7 +62,7 @@ if ls "$CASAN_STATE_ROOT/logs/trace"/agentops-*.json >/dev/null 2>&1; then
done
fi
rm -rf "$CASAN_STATE_ROOT/logs"
rm -f "$CASAN_HARNESS_ROOT/agentops/alerts.log"
rm -f "$CASAN_TELEMETRY_ALERTS_LOG"
mkdir -p "$CASAN_STATE_ROOT/logs/trace" "$CASAN_STATE_ROOT/logs/audit" "$CASAN_STATE_ROOT/logs/cost"
# Restore retention-gap stubs so context-validate.sh can verify pipeline-context.yaml
cp "$RETENTION_STUBS_DIR"/agentops-*.json "$CASAN_STATE_ROOT/logs/trace/" 2>/dev/null || true
@@ -154,7 +154,7 @@ CASAN_AGENT_NAME=demo.agent CASAN_STEP_NAME=failing-step \
FAIL_RC=$?
set -e
[[ "$FAIL_RC" -eq 7 ]] && pass "H6 preserves failing command exit code" || fail "H6 did not preserve failing command exit code"
assert_contains "$CASAN_HARNESS_ROOT/agentops/alerts.log" "execution-failed"
assert_contains "$CASAN_TELEMETRY_ALERTS_LOG" "execution-failed"
assert_contains "$CASAN_STATE_ROOT/logs/audit/tool-calls.jsonl" '"tool": "Bash"'
# H5: audit hash-chain validates