From ed79d42a55176cb82ed9955af7cfb6379281792d Mon Sep 17 00:00:00 2001 From: luijait Date: Fri, 9 May 2025 13:37:14 +0200 Subject: [PATCH] Update docs --- tools/replay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/replay.py b/tools/replay.py index 921e8537..96e0f9a5 100644 --- a/tools/replay.py +++ b/tools/replay.py @@ -4,10 +4,10 @@ Tool to convert JSONL files to a replay format that simulates the CLI output. This allows reviewing conversations in a more readable format. Usage: - JSONL_FILE_PATH="path/to/file.jsonl" REPLAY_DELAY="0.5" python3 tools/jsonl_to_replay.py + JSONL_FILE_PATH="path/to/file.jsonl" REPLAY_DELAY="0.5" python3 tools/replay.py Usage with asciinema rec, generating a .cast file and then converting it to a gif: - asciinema rec --command="JSONL_FILE_PATH=\"/workspace/caiextensions-memory/caiextensions/memory/it/htb/challenges/insomnia/cai_20250307_114836.jsonl\" REPLAY_DELAY=\"0.5\" python3 tools/jsonl_to_replay.py" --overwrite + asciinema rec --command="JSONL_FILE_PATH=\"/workspace/caiextensions-memory/caiextensions/memory/it/htb/challenges/insomnia/cai_20250307_114836.jsonl\" REPLAY_DELAY=\"0.5\" python3 tools/replay.py" --overwrite Or alternatively: asciinema rec --command="JSONL_FILE_PATH='caiextensions-memory/caiextensions/memory/it/pentestperf/hackableii/hackableII_autonomo.jsonl' REPLAY_DELAY='0.05' cai-replay"