callstack / callstack/agent-device
Compact network dump output for long React Native flows
- Lenguaje dominante
- TypeScript
- Estrellas
- 4.6k
- Forks
- 299
- Merge medio
- 10 h 42 min
- PR fusionados (30 d)
- 493
Descripción
## Problem
`network dump` can burn thousands of tokens on opaque URLs, heartbeat/poll endpoints, and large Pusher JSON payloads during long React Native flows such as New Expensify expense creation.
## Desired behavior
Make default network output compact and useful, with explicit flags for full detail.
## Acceptance criteria
- Default `network dump` truncates or redacts opaque long query params.
- Heartbeat/poll endpoints are filtered or summarized by default.
- Pusher `multipleEvents` payloads summarize event count, first action/type, relevant keys, and timing when possible.
- Full URLs/noise/detail remain available behind explicit include flags or modes.
- Existing `summary|headers|body|all` behavior remains compatible or has a clear migration path.
## Testing
Unit/fixture:
- Expensify-shaped `/api/fl?...` fixture.
- Pusher `multipleEvents` fixture.
- Heartbeat/poll endpoint fixture.
- Explicit full-detail mode preserves raw URL/payload data.
New Expensify Android verification:
- Run the camera-scan expense flow with log markers.
- Run `network dump` and confirm output is compact but still identifies relevant create/IOU/Pusher activity.
- Confirm full-detail mode can still expose the raw request data when intentionally requested.
Guía de contribución
Línea de trabajo
Comienza con el comando `network dump` y sigue el manejo existente de `summary|headers|body|all`. Ejecuta o añade los fixtures con formato de Expensify, de Pusher `multipleEvents` y de heartbeat/poll; después verifica la salida compacta predeterminada y los datos sin procesar en el modo explícito de detalle completo. La verificación en Android utiliza el flujo de gastos de escaneo con cámara de New Expensify y sus marcadores de log.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- react-native, typescript
- Área
- cli, performance, testing
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 55/100