@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.
- package/README.md +114 -18
- package/dist/mcp/api-paths.d.ts +2 -2
- package/dist/mcp/api-paths.js +4 -19
- package/dist/mcp/dashboard-identity.d.ts +6 -0
- package/dist/mcp/dashboard-identity.js +11 -0
- package/dist/mcp/index.js +210 -145
- package/dist/mcp/logs-result.d.ts +1 -0
- package/dist/mcp/logs-result.js +1 -0
- package/dist/mcp/radar-export-get.d.ts +30 -0
- package/dist/mcp/radar-export-get.js +49 -0
- package/dist/mcp/radar-http.d.ts +22 -0
- package/dist/mcp/radar-http.js +61 -0
- package/dist/mcp/radar-response.d.ts +5 -1
- package/dist/mcp/radar-response.js +8 -3
- package/dist/mcp/session-backfill.js +3 -4
- package/dist/mcp/session-enable.d.ts +15 -0
- package/dist/mcp/session-enable.js +268 -19
- package/dist/mcp/snapshot.js +42 -26
- package/dist/mcp/sources-gate.js +6 -0
- package/dist/mcp/stale-dashboard.d.ts +23 -0
- package/dist/mcp/stale-dashboard.js +122 -0
- package/dist/mcp/switchboard-spool.d.ts +12 -0
- package/dist/mcp/switchboard-spool.js +107 -0
- package/dist/mcp/switchboard-tools.d.ts +9 -0
- package/dist/mcp/switchboard-tools.js +144 -6
- package/dist/mcp/test-cases.d.ts +14 -0
- package/dist/mcp/test-cases.js +77 -0
- package/dist/mcp/test-runs-tools.d.ts +8 -0
- package/dist/mcp/test-runs-tools.js +95 -0
- package/dist/mcp/tools.d.ts +4 -1
- package/dist/mcp/tools.js +101 -21
- package/dist/mcp/web-child-env.d.ts +4 -1
- package/dist/mcp/web-child-env.js +4 -1
- package/dist/shared/android.d.ts +44 -0
- package/dist/shared/android.js +234 -24
- package/dist/shared/constants.d.ts +9 -4
- package/dist/shared/constants.js +9 -4
- package/dist/shared/feature-flags.d.ts +1 -0
- package/dist/shared/feature-flags.js +1 -0
- package/dist/shared/ios-logs.d.ts +10 -0
- package/dist/shared/ios-logs.js +91 -0
- package/dist/shared/ios.d.ts +25 -2
- package/dist/shared/ios.js +157 -3
- package/dist/{web → shared}/log-session.d.ts +45 -31
- package/dist/shared/log-session.js +300 -0
- package/dist/shared/logcat-capture.js +17 -1
- package/dist/shared/radar-request-raw.d.ts +7 -0
- package/dist/shared/radar-request-raw.js +89 -0
- package/dist/shared/radar-token.d.ts +25 -0
- package/dist/shared/radar-token.js +164 -0
- package/dist/shared/stream.d.ts +3 -0
- package/dist/shared/stream.js +107 -15
- package/dist/shared/switchboard-host-store.d.ts +21 -0
- package/dist/shared/switchboard-host-store.js +166 -0
- package/dist/shared/switchboard-note.d.ts +15 -0
- package/dist/shared/switchboard-note.js +92 -0
- package/dist/shared/switchboard-report-file.d.ts +5 -0
- package/dist/shared/switchboard-report-file.js +26 -0
- package/dist/shared/switchboard-report.d.ts +20 -0
- package/dist/shared/switchboard-report.js +406 -0
- package/dist/shared/switchboard.d.ts +111 -2
- package/dist/shared/switchboard.js +436 -3
- package/dist/shared/transport.d.ts +49 -3
- package/dist/shared/version.d.ts +2 -0
- package/dist/shared/version.js +18 -0
- package/dist/shared/wire.d.ts +14 -1
- package/dist/web/install-app.d.ts +75 -8
- package/dist/web/install-app.js +330 -67
- package/dist/web/macapp/RadarApp.swift +487 -23
- package/dist/web/public/index.html +51 -9
- package/dist/web/public/next/app.js +33 -18
- package/dist/web/public/next/feed.js +102 -15
- package/dist/web/public/next/flags.js +3 -0
- package/dist/web/public/next/inspector.js +69 -3
- package/dist/web/public/next/prefs.js +5 -2
- package/dist/web/public/next/registry.js +18 -5
- package/dist/web/public/next/store.js +455 -29
- package/dist/web/public/next/switchboard-note.js +93 -0
- package/dist/web/public/next/toast.js +9 -5
- package/dist/web/public/next/voice-model.js +215 -35
- package/dist/web/public/next/voice.js +173 -18
- package/dist/web/server.d.ts +15 -11
- package/dist/web/server.js +690 -168
- package/dist/web/spec.d.ts +2 -1
- package/dist/web/spec.js +2 -1
- package/package.json +2 -2
- 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
|
-
|
|
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
|
|
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"];
|