Commit a3eadee
committed
feat: instrument telemetry for dev command
Add telemetry recording to the dev command across all execution paths:
- Invoke: wrapped with withCommandRunTelemetry, emits on success/failure
- Exec: wrapped with withCommandRunTelemetry for container exec
- Server modes (--logs, --no-browser, browser): emit on SIGINT/exit
Schema changes:
- Expand Action enum to include 'exec'
- Add UiMode enum ('browser' | 'terminal')
- Add 'agui' to Protocol enum
- Add ui_mode field to DevAttrs
Refactored invoke helpers to throw instead of process.exit(1) so
telemetry wrapper can record failures before exit.
Attributes emitted: action, ui_mode, has_stream, protocol, invoke_count1 parent ce00f57 commit a3eadee
5 files changed
Lines changed: 266 additions & 108 deletions
File tree
- integ-tests
- src/cli
- commands/dev
- telemetry/schemas
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| 86 | + | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
| |||
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
104 | 132 | | |
105 | 133 | | |
106 | 134 | | |
| |||
0 commit comments