@slack/radar-mcp 1.18.1 → 1.19.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.
@@ -1,4 +1,5 @@
1
1
  import http from "http";
2
+ import type { StatusReason } from "../shared/wire.js";
2
3
  import { type DashboardScreenController } from "../shared/dashboard-screen.js";
3
4
  import type { ProcessState } from "../shared/transport.js";
4
5
  import { type LogFrame } from "./log-session.js";
@@ -211,9 +212,13 @@ export declare function isOpenToAnyCaller(urlPath: string, method: string | unde
211
212
  */
212
213
  export declare function isLocalHostHeader(host: string | string[] | undefined, allowedHosts?: string | undefined): boolean;
213
214
  export declare function enableResultBody(enabled: boolean, onEnabled?: () => void, processState?: ProcessState): {
214
- enabled: boolean;
215
- error?: string;
215
+ enabled: true;
216
+ } | {
217
+ enabled: false;
218
+ error: string;
219
+ instructs: boolean;
216
220
  };
221
+ export declare function _setEnableFaultForTest(err: Error | null, delayMs?: number): void;
217
222
  export declare const DEVICE_SOURCES: Record<string, {
218
223
  segment: string;
219
224
  arrayKey: string;
@@ -235,4 +240,9 @@ type ParsedLog = LogFrame;
235
240
  * Exported for tests.
236
241
  */
237
242
  export declare function parseLogcat(line: string, resolvePkg?: (pid: number) => string | undefined): ParsedLog | null;
243
+ export declare function _setStreamResponseTimeoutForTest(ms: number | null): void;
244
+ export declare function _setOutageDiagnosisTtlForTest(ms: number | null): void;
245
+ export declare function _setOutageProbeForTest(probe: (() => Promise<"present" | "absent" | "unknown">) | null): void;
246
+ export declare function _diagnoseOutageForTest(): Promise<StatusReason | null>;
247
+ export declare function _invalidateOutageDiagnosisForTest(): void;
238
248
  export { WEB_PORT };