Summary:
Add a developer tool to the repository that allows the assistant (and developers) to review, export, and extract runtime/log data produced during Copilot/assistant sessions. This will help with debugging, auditability, and building summarized reports from background tasks.
Requirements:
- Implement a lightweight CLI tool (Node.js script or Python) under tools/log-reviewer/ that can:
- Locate session folders (sessions/*) and list available sessions with metadata (timestamp, task name, agent id).
- Extract key files: report.md, screenshots, and any stdout/stderr logs into a single ZIP for download.
- Produce a short JSON summary for each session (products found, links, gitSync status if present).
- Optionally filter sessions by date range or keyword.
- Include unit tests for core parsing functions.
- Add README with usage examples and how to run locally (npm install / python -m venv instructions).
- Ensure tool writes outputs to ./exports/ and does not modify original session files.
Acceptance criteria:
- CLI can list sessions and export a selected session into a ZIP containing report.md, screenshots, and a metadata.json.
- README documents usage and example commands.
- Tests cover parsing of report.md metadata and ZIP creation.
- Include a sample export generated from an existing session in sessions/ (if present) saved to sessions/sample-exports/.
Workflow requested for Copilot agent:
- Create a branch feat/log-reviewer.
- Implement the tool under tools/log-reviewer/ (Node.js or Python).
- Run tests and generate a sample export from the latest session.
- Commit and push the branch and open a PR linking to this issue. If push fails, attach the created files to the issue and note the push failure.
Priority: Medium
Labels: enhancement, tooling, developer-experience
Notes for implementer:
- Security: do not commit any secrets. The tool should handle file paths safely.
- The Master (user) expects this tool to enable the assistant to locate and extract session logs autonomously in future tasks.
Summary:
Add a developer tool to the repository that allows the assistant (and developers) to review, export, and extract runtime/log data produced during Copilot/assistant sessions. This will help with debugging, auditability, and building summarized reports from background tasks.
Requirements:
Acceptance criteria:
Workflow requested for Copilot agent:
Priority: Medium
Labels: enhancement, tooling, developer-experience
Notes for implementer: