@slack/radar-mcp 1.21.0 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +114 -18
  2. package/dist/mcp/api-paths.d.ts +2 -2
  3. package/dist/mcp/api-paths.js +4 -19
  4. package/dist/mcp/dashboard-identity.d.ts +6 -0
  5. package/dist/mcp/dashboard-identity.js +11 -0
  6. package/dist/mcp/index.js +210 -145
  7. package/dist/mcp/logs-result.d.ts +1 -0
  8. package/dist/mcp/logs-result.js +1 -0
  9. package/dist/mcp/radar-export-get.d.ts +30 -0
  10. package/dist/mcp/radar-export-get.js +49 -0
  11. package/dist/mcp/radar-http.d.ts +22 -0
  12. package/dist/mcp/radar-http.js +61 -0
  13. package/dist/mcp/radar-response.d.ts +5 -1
  14. package/dist/mcp/radar-response.js +8 -3
  15. package/dist/mcp/session-backfill.js +3 -4
  16. package/dist/mcp/session-enable.d.ts +15 -0
  17. package/dist/mcp/session-enable.js +268 -19
  18. package/dist/mcp/snapshot.js +42 -26
  19. package/dist/mcp/sources-gate.js +6 -0
  20. package/dist/mcp/stale-dashboard.d.ts +23 -0
  21. package/dist/mcp/stale-dashboard.js +122 -0
  22. package/dist/mcp/switchboard-spool.d.ts +12 -0
  23. package/dist/mcp/switchboard-spool.js +107 -0
  24. package/dist/mcp/switchboard-tools.d.ts +9 -0
  25. package/dist/mcp/switchboard-tools.js +144 -6
  26. package/dist/mcp/test-cases.d.ts +14 -0
  27. package/dist/mcp/test-cases.js +77 -0
  28. package/dist/mcp/test-runs-tools.d.ts +8 -0
  29. package/dist/mcp/test-runs-tools.js +95 -0
  30. package/dist/mcp/tools.d.ts +4 -1
  31. package/dist/mcp/tools.js +101 -21
  32. package/dist/mcp/web-child-env.d.ts +4 -1
  33. package/dist/mcp/web-child-env.js +4 -1
  34. package/dist/shared/android.d.ts +44 -0
  35. package/dist/shared/android.js +234 -24
  36. package/dist/shared/constants.d.ts +9 -4
  37. package/dist/shared/constants.js +9 -4
  38. package/dist/shared/feature-flags.d.ts +1 -0
  39. package/dist/shared/feature-flags.js +1 -0
  40. package/dist/shared/ios-logs.d.ts +10 -0
  41. package/dist/shared/ios-logs.js +91 -0
  42. package/dist/shared/ios.d.ts +25 -2
  43. package/dist/shared/ios.js +157 -3
  44. package/dist/{web → shared}/log-session.d.ts +45 -31
  45. package/dist/shared/log-session.js +300 -0
  46. package/dist/shared/logcat-capture.js +17 -1
  47. package/dist/shared/radar-request-raw.d.ts +7 -0
  48. package/dist/shared/radar-request-raw.js +89 -0
  49. package/dist/shared/radar-token.d.ts +25 -0
  50. package/dist/shared/radar-token.js +164 -0
  51. package/dist/shared/stream.d.ts +3 -0
  52. package/dist/shared/stream.js +107 -15
  53. package/dist/shared/switchboard-host-store.d.ts +21 -0
  54. package/dist/shared/switchboard-host-store.js +166 -0
  55. package/dist/shared/switchboard-note.d.ts +15 -0
  56. package/dist/shared/switchboard-note.js +92 -0
  57. package/dist/shared/switchboard-report-file.d.ts +5 -0
  58. package/dist/shared/switchboard-report-file.js +26 -0
  59. package/dist/shared/switchboard-report.d.ts +20 -0
  60. package/dist/shared/switchboard-report.js +406 -0
  61. package/dist/shared/switchboard.d.ts +111 -2
  62. package/dist/shared/switchboard.js +436 -3
  63. package/dist/shared/transport.d.ts +49 -3
  64. package/dist/shared/version.d.ts +2 -0
  65. package/dist/shared/version.js +18 -0
  66. package/dist/shared/wire.d.ts +14 -1
  67. package/dist/web/install-app.d.ts +75 -8
  68. package/dist/web/install-app.js +330 -67
  69. package/dist/web/macapp/RadarApp.swift +487 -23
  70. package/dist/web/public/index.html +51 -9
  71. package/dist/web/public/next/app.js +33 -18
  72. package/dist/web/public/next/feed.js +102 -15
  73. package/dist/web/public/next/flags.js +3 -0
  74. package/dist/web/public/next/inspector.js +69 -3
  75. package/dist/web/public/next/prefs.js +5 -2
  76. package/dist/web/public/next/registry.js +18 -5
  77. package/dist/web/public/next/store.js +455 -29
  78. package/dist/web/public/next/switchboard-note.js +93 -0
  79. package/dist/web/public/next/toast.js +9 -5
  80. package/dist/web/public/next/voice-model.js +215 -35
  81. package/dist/web/public/next/voice.js +173 -18
  82. package/dist/web/server.d.ts +15 -11
  83. package/dist/web/server.js +690 -168
  84. package/dist/web/spec.d.ts +2 -1
  85. package/dist/web/spec.js +2 -1
  86. package/package.json +2 -2
  87. package/dist/web/log-session.js +0 -166
@@ -20,10 +20,11 @@ export const MATCH_FIELDS = {
20
20
  // No `level` here: a substring on the level name next to the toolbar's "level ≥" floor was two
21
21
  // controls with one word and different meanings. A spec that already carries match.level still
22
22
  // works and still shows as a row (the row select keeps an unknown field), it is just not offered.
23
- log: ["tag", "message", "pid", "package"],
23
+ log: ["tag", "message", "pid", "package", "subsystem", "process"],
24
24
  // The voice transport's records: `kind` picks the record shape, the rest are that shape's key
25
- // fields (frame: direction/frame_type, state: state_kind, phase: phase, session/player: event).
26
- switchboard: ["kind", "session_id", "direction", "frame_type", "state_kind", "phase", "event"],
25
+ // fields (frame: direction/frame_type, state: state_kind, phase: phase, session/player: event,
26
+ // turn: clock, saved_turn: outcome).
27
+ switchboard: ["kind", "session_id", "direction", "frame_type", "state_kind", "phase", "event", "clock", "outcome"],
27
28
  };
28
29
  // `all` = the union of every streaming source's fields (deduped, order-stable). Derived, not
29
30
  // hand-maintained, so adding a source's fields above surfaces them in the unified Live tab too.
@@ -84,6 +85,18 @@ export const STREAM_KINDS = Object.entries(SOURCES)
84
85
  export const DEVICE_STREAM_KINDS = Object.entries(SOURCES)
85
86
  .filter(([, v]) => v.kind === "stream" && v.origin === "device")
86
87
  .map(([k]) => k);
88
+ // Plugin discovery and some iOS observer builds use route/source names, while the dashboard
89
+ // row model uses singular event kinds. Backfill already performs this conversion through
90
+ // DEVICE_SOURCES; live SSE must do the same or rows appear only after a tab-switch backfill.
91
+ export function normalizeStreamType(type) {
92
+ if (type === "clogs")
93
+ return "clog";
94
+ if (type === "traces")
95
+ return "trace";
96
+ if (type === "feature_flags")
97
+ return "feature_flag";
98
+ return type;
99
+ }
87
100
  // The kinds that have a /detail endpoint (inspector click-fetch). Derived from
88
101
  // hasDetailEndpoint so adding a detailable source is one SOURCES edit.
89
102
  export const DETAILABLE_KINDS = Object.entries(SOURCES)
@@ -114,7 +127,7 @@ export const SOURCE_ORDER = ["all", "network", "rtm", "clog", "trace", "log", "s
114
127
  // are their own containers, not feed filters). Derived from SOURCES so adding a streaming source
115
128
  // surfaces it in Filters with no edit there. Ordered by SOURCE_ORDER (the modebar order) for a stable, familiar list.
116
129
  export const FILTER_SOURCES = SOURCE_ORDER.filter((s) => SOURCES[s]?.kind === "stream");
117
- // The five switchboard record kinds, in the order the toolbar's kind chips show them. Each chip
130
+ // The eight switchboard record kinds, in the order the toolbar's kind chips show them. Each chip
118
131
  // writes the exclude term `kind:<name>`; a spec listing that term shows the chip off. These are
119
132
  // the kinds switchboardFields (store.ts) knows fields for; a test holds the two lists together.
120
- export const SWITCHBOARD_KINDS = ["session", "state", "frame", "phase", "player"];
133
+ export const SWITCHBOARD_KINDS = ["session", "state", "frame", "phase", "player", "levels", "turn", "saved_turn"];