@slack/radar-mcp 1.11.0 → 1.12.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 +2 -2
- package/dist/mcp/index.js +42 -5
- package/dist/mcp/prefs-tools.d.ts +15 -0
- package/dist/mcp/prefs-tools.js +204 -0
- package/dist/mcp/session-enable.d.ts +2 -1
- package/dist/mcp/session-enable.js +29 -2
- package/dist/mcp/snapshot.js +6 -1
- package/dist/mcp/tools.js +65 -2
- package/dist/shared/android.d.ts +33 -1
- package/dist/shared/android.js +203 -6
- package/dist/shared/constants.d.ts +8 -0
- package/dist/shared/constants.js +13 -1
- package/dist/shared/db.d.ts +14 -0
- package/dist/shared/db.js +16 -5
- package/dist/shared/prefs.d.ts +78 -0
- package/dist/shared/prefs.js +416 -0
- package/dist/shared/transport.d.ts +68 -0
- package/dist/web/log-session.d.ts +13 -0
- package/dist/web/log-session.js +16 -0
- package/dist/web/public/index.html +108 -3
- package/dist/web/public/next/app.js +58 -2
- package/dist/web/public/next/feed.js +261 -12
- package/dist/web/public/next/filter.js +200 -0
- package/dist/web/public/next/prefs.js +399 -0
- package/dist/web/public/next/registry.js +7 -6
- package/dist/web/public/next/store.js +201 -10
- package/dist/web/server.js +214 -5
- package/dist/web/spec.d.ts +7 -7
- package/dist/web/spec.js +12 -9
- package/package.json +1 -1
package/dist/web/spec.d.ts
CHANGED
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
* and the same validate/coerce pass runs on every push so a malformed spec surfaces
|
|
6
6
|
* an error instead of rendering silent zeros.
|
|
7
7
|
*
|
|
8
|
-
* Most sources are live STREAMS (network/rtm/clog/trace/log/all). `db`
|
|
9
|
-
*
|
|
10
|
-
* series / match (
|
|
11
|
-
* validate passes short-circuit for
|
|
8
|
+
* Most sources are live STREAMS (network/rtm/clog/trace/log/all). `db` and `prefs` are the
|
|
9
|
+
* odd ones out: read-only, point-in-time BROWSERS (SQLite databases, SharedPreferences files)
|
|
10
|
+
* with no viz / series / match (each has its own list -> detail view). The coerce and
|
|
11
|
+
* validate passes short-circuit for both accordingly.
|
|
12
12
|
*/
|
|
13
13
|
/**
|
|
14
14
|
* Sources the dashboard can read. The first six are live streams; "all" is their unified
|
|
15
|
-
* timeline. "db"
|
|
16
|
-
*
|
|
15
|
+
* timeline. "db" and "prefs" are read-only point-in-time browsers (not streams) and are each
|
|
16
|
+
* handled as a distinct view.
|
|
17
17
|
*/
|
|
18
|
-
export declare const SOURCES: readonly ["rtm", "network", "clog", "trace", "log", "all", "db"];
|
|
18
|
+
export declare const SOURCES: readonly ["rtm", "network", "clog", "trace", "log", "all", "db", "prefs"];
|
|
19
19
|
export type Source = (typeof SOURCES)[number];
|
|
20
20
|
/** Widgets a spec may compose. */
|
|
21
21
|
export declare const VIZ: readonly ["counter", "rate", "sparkline", "feed", "inspector", "graph"];
|
package/dist/web/spec.js
CHANGED
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
* and the same validate/coerce pass runs on every push so a malformed spec surfaces
|
|
6
6
|
* an error instead of rendering silent zeros.
|
|
7
7
|
*
|
|
8
|
-
* Most sources are live STREAMS (network/rtm/clog/trace/log/all). `db`
|
|
9
|
-
*
|
|
10
|
-
* series / match (
|
|
11
|
-
* validate passes short-circuit for
|
|
8
|
+
* Most sources are live STREAMS (network/rtm/clog/trace/log/all). `db` and `prefs` are the
|
|
9
|
+
* odd ones out: read-only, point-in-time BROWSERS (SQLite databases, SharedPreferences files)
|
|
10
|
+
* with no viz / series / match (each has its own list -> detail view). The coerce and
|
|
11
|
+
* validate passes short-circuit for both accordingly.
|
|
12
12
|
*/
|
|
13
13
|
/**
|
|
14
14
|
* Sources the dashboard can read. The first six are live streams; "all" is their unified
|
|
15
|
-
* timeline. "db"
|
|
16
|
-
*
|
|
15
|
+
* timeline. "db" and "prefs" are read-only point-in-time browsers (not streams) and are each
|
|
16
|
+
* handled as a distinct view.
|
|
17
17
|
*/
|
|
18
|
-
export const SOURCES = ["rtm", "network", "clog", "trace", "log", "all", "db"];
|
|
18
|
+
export const SOURCES = ["rtm", "network", "clog", "trace", "log", "all", "db", "prefs"];
|
|
19
19
|
/** Widgets a spec may compose. */
|
|
20
20
|
export const VIZ = [
|
|
21
21
|
"counter",
|
|
@@ -50,8 +50,8 @@ export function coerceSpec(input) {
|
|
|
50
50
|
if (!isRecord(input))
|
|
51
51
|
return BLANK_SPEC;
|
|
52
52
|
const s = input;
|
|
53
|
-
// The DB
|
|
54
|
-
if (s.source === "db")
|
|
53
|
+
// The DB and Prefs browsers have no match/viz/series to repair; leave them untouched.
|
|
54
|
+
if (s.source === "db" || s.source === "prefs")
|
|
55
55
|
return s;
|
|
56
56
|
if (typeof s.match === "string") {
|
|
57
57
|
// "all" mixes types whose summary fields differ, so a single field guess
|
|
@@ -110,6 +110,9 @@ export function validateSpec(s) {
|
|
|
110
110
|
}
|
|
111
111
|
return null;
|
|
112
112
|
}
|
|
113
|
+
// The Prefs browser is likewise a distinct, self-contained view: no viz/series/match.
|
|
114
|
+
if (spec.source === "prefs")
|
|
115
|
+
return null;
|
|
113
116
|
if (spec.match !== undefined && !isRecord(spec.match)) {
|
|
114
117
|
return "match must be an object";
|
|
115
118
|
}
|