-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Description
Add a log viewing command for inspecting job/run history and events.
depends on #177
Use Case
Enable developers and operators to:
- View execution history for debugging
- Inspect specific checkpoints
- Filter events with jq-like queries
- Analyze run behavior post-execution
Proposed Solution
Add command to apps/perstack/src/:
src/
├── log.ts # New command
└── lib/
└── log-filter.ts # jq-like query implementation
CLI Options
perstack log --job <jobId>
perstack log --run <runId>
perstack log --checkpoint <checkpointId>
perstack log --filter <jq-like-query>Options can be combined:
perstack log --job abc123 --filter '.type == "completeRun"'Filter Examples
# Show only completeRun events
perstack log --job abc123 --filter '.type == "completeRun"'
# Show tool calls for specific skill
perstack log --run xyz789 --filter '.toolCalls[]? | select(.skillName == "base")'
# Show events after step 5
perstack log --job abc123 --filter '.stepNumber > 5'Output Format
- Terminal output with colors (event type, timestamp, summary)
- JSON output with --json flag
- Pagination for large result sets
Acceptance Criteria
-
--jobshows all events for a job -
--runshows events for specific run -
--checkpointshows checkpoint details (messages, status, etc.) -
--filtersupports basic jq-like queries - Output formatted for terminal with colors
-
--jsonflag for machine-readable output - Graceful handling of non-existent job/run/checkpoint
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request