@slack/radar-mcp 1.12.0 → 1.14.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 +26 -0
- package/dist/mcp/api-paths.js +2 -0
- package/dist/mcp/flags-tools.d.ts +71 -0
- package/dist/mcp/flags-tools.js +158 -0
- package/dist/mcp/index.js +70 -2
- package/dist/mcp/sources-gate.d.ts +23 -0
- package/dist/mcp/sources-gate.js +63 -0
- package/dist/mcp/tools.js +38 -1
- package/dist/shared/db.d.ts +7 -3
- package/dist/shared/db.js +73 -18
- package/dist/shared/feature-flags.d.ts +6 -0
- package/dist/shared/feature-flags.js +17 -0
- package/dist/web/bin.js +16 -6
- package/dist/web/public/index.html +22 -0
- package/dist/web/public/next/app.js +65 -5
- package/dist/web/public/next/db.js +8 -2
- package/dist/web/public/next/feed.js +9 -2
- package/dist/web/public/next/flags.js +179 -0
- package/dist/web/public/next/registry.js +10 -1
- package/dist/web/public/next/screen.js +10 -4
- package/dist/web/public/next/store.js +104 -11
- package/dist/web/server.d.ts +150 -1
- package/dist/web/server.js +522 -19
- package/dist/web/spec.d.ts +3 -3
- package/dist/web/spec.js +9 -6
- package/package.json +1 -1
package/dist/web/spec.d.ts
CHANGED
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
*/
|
|
13
13
|
/**
|
|
14
14
|
* Sources the dashboard can read. The first six are live streams; "all" is their unified
|
|
15
|
-
* timeline. "db" and "
|
|
16
|
-
* handled as a distinct view.
|
|
15
|
+
* timeline. "db", "prefs", and "flags" are read-only point-in-time browsers (not streams) and
|
|
16
|
+
* are each handled as a distinct view.
|
|
17
17
|
*/
|
|
18
|
-
export declare const SOURCES: readonly ["rtm", "network", "clog", "trace", "log", "all", "db", "prefs"];
|
|
18
|
+
export declare const SOURCES: readonly ["rtm", "network", "clog", "trace", "log", "all", "db", "prefs", "flags"];
|
|
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
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
*/
|
|
13
13
|
/**
|
|
14
14
|
* Sources the dashboard can read. The first six are live streams; "all" is their unified
|
|
15
|
-
* timeline. "db" and "
|
|
16
|
-
* handled as a distinct view.
|
|
15
|
+
* timeline. "db", "prefs", and "flags" are read-only point-in-time browsers (not streams) and
|
|
16
|
+
* are each handled as a distinct view.
|
|
17
17
|
*/
|
|
18
|
-
export const SOURCES = ["rtm", "network", "clog", "trace", "log", "all", "db", "prefs"];
|
|
18
|
+
export const SOURCES = ["rtm", "network", "clog", "trace", "log", "all", "db", "prefs", "flags"];
|
|
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 and
|
|
54
|
-
if (s.source === "db" || s.source === "prefs")
|
|
53
|
+
// The DB, Prefs, and feature-flags browsers have no match/viz/series to repair; leave as-is.
|
|
54
|
+
if (s.source === "db" || s.source === "prefs" || s.source === "flags")
|
|
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,9 +110,12 @@ export function validateSpec(s) {
|
|
|
110
110
|
}
|
|
111
111
|
return null;
|
|
112
112
|
}
|
|
113
|
-
// The Prefs
|
|
113
|
+
// The Prefs and feature-flags browsers are likewise distinct, self-contained views: no
|
|
114
|
+
// viz/series/match to validate.
|
|
114
115
|
if (spec.source === "prefs")
|
|
115
116
|
return null;
|
|
117
|
+
if (spec.source === "flags")
|
|
118
|
+
return null;
|
|
116
119
|
if (spec.match !== undefined && !isRecord(spec.match)) {
|
|
117
120
|
return "match must be an object";
|
|
118
121
|
}
|