@revealui/mcp 0.7.1 → 0.8.1

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.
@@ -2102,6 +2102,127 @@ declare const SCHEMA_REGISTRY: {
2102
2102
  marketplace: "marketplace";
2103
2103
  }>>;
2104
2104
  }, z.core.$strip>;
2105
+ }, z.core.$strip>, z.ZodObject<{
2106
+ id: z.ZodString;
2107
+ style: z.ZodOptional<z.ZodObject<{
2108
+ align: z.ZodOptional<z.ZodEnum<{
2109
+ left: "left";
2110
+ center: "center";
2111
+ right: "right";
2112
+ justify: "justify";
2113
+ }>>;
2114
+ backgroundColor: z.ZodOptional<z.ZodString>;
2115
+ textColor: z.ZodOptional<z.ZodString>;
2116
+ padding: z.ZodOptional<z.ZodString>;
2117
+ margin: z.ZodOptional<z.ZodString>;
2118
+ borderRadius: z.ZodOptional<z.ZodString>;
2119
+ className: z.ZodOptional<z.ZodString>;
2120
+ style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2121
+ }, z.core.$strip>>;
2122
+ meta: z.ZodOptional<z.ZodObject<{
2123
+ version: z.ZodOptional<z.ZodNumber>;
2124
+ description: z.ZodOptional<z.ZodString>;
2125
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2126
+ aiGenerated: z.ZodOptional<z.ZodBoolean>;
2127
+ sourcePrompt: z.ZodOptional<z.ZodString>;
2128
+ lastEditor: z.ZodOptional<z.ZodString>;
2129
+ lastEditedAt: z.ZodOptional<z.ZodString>;
2130
+ }, z.core.$strip>>;
2131
+ type: z.ZodLiteral<"hero">;
2132
+ data: z.ZodObject<{
2133
+ eyebrow: z.ZodOptional<z.ZodString>;
2134
+ title: z.ZodString;
2135
+ subtitle: z.ZodOptional<z.ZodString>;
2136
+ support: z.ZodOptional<z.ZodString>;
2137
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
2138
+ label: z.ZodString;
2139
+ href: z.ZodString;
2140
+ variant: z.ZodOptional<z.ZodEnum<{
2141
+ primary: "primary";
2142
+ secondary: "secondary";
2143
+ }>>;
2144
+ }, z.core.$strip>>>;
2145
+ }, z.core.$strip>;
2146
+ }, z.core.$strip>, z.ZodObject<{
2147
+ id: z.ZodString;
2148
+ style: z.ZodOptional<z.ZodObject<{
2149
+ align: z.ZodOptional<z.ZodEnum<{
2150
+ left: "left";
2151
+ center: "center";
2152
+ right: "right";
2153
+ justify: "justify";
2154
+ }>>;
2155
+ backgroundColor: z.ZodOptional<z.ZodString>;
2156
+ textColor: z.ZodOptional<z.ZodString>;
2157
+ padding: z.ZodOptional<z.ZodString>;
2158
+ margin: z.ZodOptional<z.ZodString>;
2159
+ borderRadius: z.ZodOptional<z.ZodString>;
2160
+ className: z.ZodOptional<z.ZodString>;
2161
+ style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2162
+ }, z.core.$strip>>;
2163
+ meta: z.ZodOptional<z.ZodObject<{
2164
+ version: z.ZodOptional<z.ZodNumber>;
2165
+ description: z.ZodOptional<z.ZodString>;
2166
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2167
+ aiGenerated: z.ZodOptional<z.ZodBoolean>;
2168
+ sourcePrompt: z.ZodOptional<z.ZodString>;
2169
+ lastEditor: z.ZodOptional<z.ZodString>;
2170
+ lastEditedAt: z.ZodOptional<z.ZodString>;
2171
+ }, z.core.$strip>>;
2172
+ type: z.ZodLiteral<"ctaSection">;
2173
+ data: z.ZodObject<{
2174
+ heading: z.ZodString;
2175
+ body: z.ZodOptional<z.ZodString>;
2176
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
2177
+ label: z.ZodString;
2178
+ href: z.ZodString;
2179
+ variant: z.ZodOptional<z.ZodEnum<{
2180
+ primary: "primary";
2181
+ secondary: "secondary";
2182
+ }>>;
2183
+ }, z.core.$strip>>>;
2184
+ snippet: z.ZodOptional<z.ZodObject<{
2185
+ lines: z.ZodArray<z.ZodString>;
2186
+ caption: z.ZodOptional<z.ZodString>;
2187
+ }, z.core.$strip>>;
2188
+ }, z.core.$strip>;
2189
+ }, z.core.$strip>, z.ZodObject<{
2190
+ id: z.ZodString;
2191
+ style: z.ZodOptional<z.ZodObject<{
2192
+ align: z.ZodOptional<z.ZodEnum<{
2193
+ left: "left";
2194
+ center: "center";
2195
+ right: "right";
2196
+ justify: "justify";
2197
+ }>>;
2198
+ backgroundColor: z.ZodOptional<z.ZodString>;
2199
+ textColor: z.ZodOptional<z.ZodString>;
2200
+ padding: z.ZodOptional<z.ZodString>;
2201
+ margin: z.ZodOptional<z.ZodString>;
2202
+ borderRadius: z.ZodOptional<z.ZodString>;
2203
+ className: z.ZodOptional<z.ZodString>;
2204
+ style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2205
+ }, z.core.$strip>>;
2206
+ meta: z.ZodOptional<z.ZodObject<{
2207
+ version: z.ZodOptional<z.ZodNumber>;
2208
+ description: z.ZodOptional<z.ZodString>;
2209
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2210
+ aiGenerated: z.ZodOptional<z.ZodBoolean>;
2211
+ sourcePrompt: z.ZodOptional<z.ZodString>;
2212
+ lastEditor: z.ZodOptional<z.ZodString>;
2213
+ lastEditedAt: z.ZodOptional<z.ZodString>;
2214
+ }, z.core.$strip>>;
2215
+ type: z.ZodLiteral<"section">;
2216
+ data: z.ZodObject<{
2217
+ eyebrow: z.ZodOptional<z.ZodString>;
2218
+ heading: z.ZodString;
2219
+ body: z.ZodOptional<z.ZodString>;
2220
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
2221
+ label: z.ZodOptional<z.ZodString>;
2222
+ title: z.ZodOptional<z.ZodString>;
2223
+ body: z.ZodString;
2224
+ }, z.core.$strip>>>;
2225
+ }, z.core.$strip>;
2105
2226
  }, z.core.$strip>]>;
2106
2227
  readonly blockMeta: z.ZodObject<{
2107
2228
  version: z.ZodOptional<z.ZodNumber>;
@@ -2864,10 +2985,10 @@ declare const SCHEMA_REGISTRY: {
2864
2985
  readonly description: "DevKit profile id (Max-tier paywall feature) — one of revealui, agents, claude, cursor, zed.";
2865
2986
  readonly schemas: {
2866
2987
  readonly profileId: z.ZodEnum<{
2867
- cursor: "cursor";
2868
2988
  revealui: "revealui";
2869
2989
  agents: "agents";
2870
2990
  claude: "claude";
2991
+ cursor: "cursor";
2871
2992
  zed: "zed";
2872
2993
  }>;
2873
2994
  };
@@ -3795,6 +3916,127 @@ declare const SCHEMA_REGISTRY: {
3795
3916
  marketplace: "marketplace";
3796
3917
  }>>;
3797
3918
  }, z.core.$strip>;
3919
+ }, z.core.$strip>, z.ZodObject<{
3920
+ id: z.ZodString;
3921
+ style: z.ZodOptional<z.ZodObject<{
3922
+ align: z.ZodOptional<z.ZodEnum<{
3923
+ left: "left";
3924
+ center: "center";
3925
+ right: "right";
3926
+ justify: "justify";
3927
+ }>>;
3928
+ backgroundColor: z.ZodOptional<z.ZodString>;
3929
+ textColor: z.ZodOptional<z.ZodString>;
3930
+ padding: z.ZodOptional<z.ZodString>;
3931
+ margin: z.ZodOptional<z.ZodString>;
3932
+ borderRadius: z.ZodOptional<z.ZodString>;
3933
+ className: z.ZodOptional<z.ZodString>;
3934
+ style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3935
+ }, z.core.$strip>>;
3936
+ meta: z.ZodOptional<z.ZodObject<{
3937
+ version: z.ZodOptional<z.ZodNumber>;
3938
+ description: z.ZodOptional<z.ZodString>;
3939
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3940
+ aiGenerated: z.ZodOptional<z.ZodBoolean>;
3941
+ sourcePrompt: z.ZodOptional<z.ZodString>;
3942
+ lastEditor: z.ZodOptional<z.ZodString>;
3943
+ lastEditedAt: z.ZodOptional<z.ZodString>;
3944
+ }, z.core.$strip>>;
3945
+ type: z.ZodLiteral<"hero">;
3946
+ data: z.ZodObject<{
3947
+ eyebrow: z.ZodOptional<z.ZodString>;
3948
+ title: z.ZodString;
3949
+ subtitle: z.ZodOptional<z.ZodString>;
3950
+ support: z.ZodOptional<z.ZodString>;
3951
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
3952
+ label: z.ZodString;
3953
+ href: z.ZodString;
3954
+ variant: z.ZodOptional<z.ZodEnum<{
3955
+ primary: "primary";
3956
+ secondary: "secondary";
3957
+ }>>;
3958
+ }, z.core.$strip>>>;
3959
+ }, z.core.$strip>;
3960
+ }, z.core.$strip>, z.ZodObject<{
3961
+ id: z.ZodString;
3962
+ style: z.ZodOptional<z.ZodObject<{
3963
+ align: z.ZodOptional<z.ZodEnum<{
3964
+ left: "left";
3965
+ center: "center";
3966
+ right: "right";
3967
+ justify: "justify";
3968
+ }>>;
3969
+ backgroundColor: z.ZodOptional<z.ZodString>;
3970
+ textColor: z.ZodOptional<z.ZodString>;
3971
+ padding: z.ZodOptional<z.ZodString>;
3972
+ margin: z.ZodOptional<z.ZodString>;
3973
+ borderRadius: z.ZodOptional<z.ZodString>;
3974
+ className: z.ZodOptional<z.ZodString>;
3975
+ style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3976
+ }, z.core.$strip>>;
3977
+ meta: z.ZodOptional<z.ZodObject<{
3978
+ version: z.ZodOptional<z.ZodNumber>;
3979
+ description: z.ZodOptional<z.ZodString>;
3980
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3981
+ aiGenerated: z.ZodOptional<z.ZodBoolean>;
3982
+ sourcePrompt: z.ZodOptional<z.ZodString>;
3983
+ lastEditor: z.ZodOptional<z.ZodString>;
3984
+ lastEditedAt: z.ZodOptional<z.ZodString>;
3985
+ }, z.core.$strip>>;
3986
+ type: z.ZodLiteral<"ctaSection">;
3987
+ data: z.ZodObject<{
3988
+ heading: z.ZodString;
3989
+ body: z.ZodOptional<z.ZodString>;
3990
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
3991
+ label: z.ZodString;
3992
+ href: z.ZodString;
3993
+ variant: z.ZodOptional<z.ZodEnum<{
3994
+ primary: "primary";
3995
+ secondary: "secondary";
3996
+ }>>;
3997
+ }, z.core.$strip>>>;
3998
+ snippet: z.ZodOptional<z.ZodObject<{
3999
+ lines: z.ZodArray<z.ZodString>;
4000
+ caption: z.ZodOptional<z.ZodString>;
4001
+ }, z.core.$strip>>;
4002
+ }, z.core.$strip>;
4003
+ }, z.core.$strip>, z.ZodObject<{
4004
+ id: z.ZodString;
4005
+ style: z.ZodOptional<z.ZodObject<{
4006
+ align: z.ZodOptional<z.ZodEnum<{
4007
+ left: "left";
4008
+ center: "center";
4009
+ right: "right";
4010
+ justify: "justify";
4011
+ }>>;
4012
+ backgroundColor: z.ZodOptional<z.ZodString>;
4013
+ textColor: z.ZodOptional<z.ZodString>;
4014
+ padding: z.ZodOptional<z.ZodString>;
4015
+ margin: z.ZodOptional<z.ZodString>;
4016
+ borderRadius: z.ZodOptional<z.ZodString>;
4017
+ className: z.ZodOptional<z.ZodString>;
4018
+ style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4019
+ }, z.core.$strip>>;
4020
+ meta: z.ZodOptional<z.ZodObject<{
4021
+ version: z.ZodOptional<z.ZodNumber>;
4022
+ description: z.ZodOptional<z.ZodString>;
4023
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
4024
+ aiGenerated: z.ZodOptional<z.ZodBoolean>;
4025
+ sourcePrompt: z.ZodOptional<z.ZodString>;
4026
+ lastEditor: z.ZodOptional<z.ZodString>;
4027
+ lastEditedAt: z.ZodOptional<z.ZodString>;
4028
+ }, z.core.$strip>>;
4029
+ type: z.ZodLiteral<"section">;
4030
+ data: z.ZodObject<{
4031
+ eyebrow: z.ZodOptional<z.ZodString>;
4032
+ heading: z.ZodString;
4033
+ body: z.ZodOptional<z.ZodString>;
4034
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
4035
+ label: z.ZodOptional<z.ZodString>;
4036
+ title: z.ZodOptional<z.ZodString>;
4037
+ body: z.ZodString;
4038
+ }, z.core.$strip>>>;
4039
+ }, z.core.$strip>;
3798
4040
  }, z.core.$strip>]>>;
3799
4041
  seo: z.ZodOptional<z.ZodObject<{
3800
4042
  title: z.ZodOptional<z.ZodString>;
@@ -6796,6 +7038,8 @@ declare const SCHEMA_REGISTRY: {
6796
7038
  readonly description: "Supported LLM provider id — one of groq, huggingface, inference-snaps, ollama. Open models only.";
6797
7039
  readonly schemas: {
6798
7040
  readonly providerId: z.ZodEnum<{
7041
+ anthropic: "anthropic";
7042
+ openai: "openai";
6799
7043
  groq: "groq";
6800
7044
  huggingface: "huggingface";
6801
7045
  "inference-snaps": "inference-snaps";
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../src/servers/factories/contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAWnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAoK3B,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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35
35
  import { z } from 'zod/v4';
36
+ /** Resolved REST credentials for one tool call. */
37
+ export interface ResolvedApiCredentials {
38
+ apiUrl: string;
39
+ apiKey: string;
40
+ }
41
+ /**
42
+ * Per-request context handed to the governed seams. Derived from the MCP
43
+ * request handler's `extra` (the transport threads `authInfo` from the
44
+ * authenticated HTTP request; `sessionId` is the routing key). `undefined`
45
+ * on the stdio path.
46
+ */
47
+ export interface McpToolCallContext {
48
+ authInfo?: unknown;
49
+ sessionId?: string;
50
+ }
51
+ /**
52
+ * Governed-path credential resolver. Returns the credentials to forward for a
53
+ * single tool call — on the governed path, the caller's own bearer token so
54
+ * the REST layer enforces `access.read` against the real user. May throw /
55
+ * reject when no per-request credential exists; the call then fails closed.
56
+ */
57
+ export type CredentialsProvider = (ctx: McpToolCallContext) => Promise<ResolvedApiCredentials> | ResolvedApiCredentials;
58
+ /** Terminal outcome of a governed tool call, as recorded in the receipt. */
59
+ export type McpToolAuditOutcome = 'invoked' | 'denied' | 'failed';
60
+ /**
61
+ * A governed tool-call receipt. Raw arguments are NEVER included — only a
62
+ * sha256 digest of the canonical JSON plus an allowlisted scalar subset
63
+ * (`collection`, `site_id`) that is safe to store in the clear.
64
+ */
65
+ export interface McpToolAuditRecord {
66
+ outcome: McpToolAuditOutcome;
67
+ tool: string;
68
+ /** sha256 (hex) of the canonical JSON of the raw arguments. */
69
+ argsDigest: string;
70
+ /** Allowlisted non-secret identifiers pulled from the validated args. */
71
+ scalars: Record<string, string>;
72
+ durationMs: number;
73
+ httpStatus?: number;
74
+ /**
75
+ * Why a call was denied, when `outcome === 'denied'`. `'authz'` for a
76
+ * deny-by-default tool-permission miss (I-7); `'rate-limit'` when the
77
+ * per-user quota is exhausted (I-8). Absent for a validation/unknown-tool
78
+ * denial and for non-denied outcomes.
79
+ */
80
+ reason?: string;
81
+ /** The MCP client that connected (from the `initialize` handshake). */
82
+ clientInfo?: {
83
+ name: string;
84
+ version: string;
85
+ };
86
+ context: McpToolCallContext;
87
+ }
88
+ /**
89
+ * Governed-path audit sink. Resolves when the receipt is durably written;
90
+ * rejects when the write failed. For a mutating tool a rejection fails the
91
+ * call (fail-closed); for a read tool it degrades to log-and-continue.
92
+ */
93
+ export type McpToolAuditSink = (record: McpToolAuditRecord) => Promise<void>;
94
+ /**
95
+ * Deny-by-default per-tool authorization gate (GAP-371 Phase 2, I-7). Returns
96
+ * true iff the identity threaded through `ctx.authInfo` may execute `toolName`
97
+ * at its server-derived tier and role. Governs BOTH `tools/list` filtering and
98
+ * `tools/call` execution — a tool absent from the list is still independently
99
+ * denied on a direct call. Absent on the stdio path (every tool allowed).
100
+ */
101
+ export type McpToolAuthorizer = (ctx: McpToolCallContext, toolName: string) => boolean;
102
+ /**
103
+ * Per-call rate-limit gate (GAP-371 Phase 2, I-8). Consumed once per authorized
104
+ * `tools/call`, keyed by the caller's user + tool with limits from the
105
+ * server-derived tier. Returns false when the quota is exhausted. Absent on the
106
+ * stdio path (unlimited). Never consumed for `tools/list` or for a denied call.
107
+ */
108
+ export type McpToolRateLimiter = (ctx: McpToolCallContext, toolName: string) => Promise<boolean> | boolean;
109
+ /** One usage-meter event, emitted once per EXECUTED tool call (I-8 tail). */
110
+ export interface McpToolMeterEvent {
111
+ tool: string;
112
+ durationMs: number;
113
+ /** True when the tool surfaced an error (bad args reaching the backend, throw, non-2xx). */
114
+ errored: boolean;
115
+ }
116
+ /**
117
+ * Usage-meter sink (GAP-371 Phase 2). Fired once per tool call that actually
118
+ * executed (success or failure) — never for an authz/rate-limit denial, which
119
+ * are audit events, not billable usage. Sink errors are swallowed: metering
120
+ * must never break the underlying tool call. Billing and audit are separate
121
+ * sinks by design.
122
+ */
123
+ export type McpToolMeterSink = (ctx: McpToolCallContext, event: McpToolMeterEvent) => void | Promise<void>;
36
124
  /**
37
125
  * Set credential overrides for this server. Called by the hypervisor with
38
126
  * resolved tenant credentials (or by an HTTP launcher before handing the
@@ -98,6 +186,44 @@ export interface CreateRevealuiContentServerOptions {
98
186
  * directly; out-of-process subprocess consumers leave it unset.
99
187
  */
100
188
  collectionsProvider?: CollectionsProvider;
189
+ /**
190
+ * Governed-path (GAP-371) per-request credential resolver. When set, it is
191
+ * the SOLE source of tool-call credentials — the `REVEALUI_API_KEY` /
192
+ * `setCredentials()` fallback is never consulted (invariant I-4). Leave
193
+ * unset for the stdio launcher to keep the process-global env-key model.
194
+ */
195
+ credentialsProvider?: CredentialsProvider;
196
+ /**
197
+ * Governed-path audit sink. When set, every `tools/call` produces a receipt
198
+ * (invariant I-5). Mutating tools (see `mutatingTools`) fail closed if the
199
+ * receipt cannot be written; read tools degrade to log-and-continue.
200
+ */
201
+ auditSink?: McpToolAuditSink;
202
+ /**
203
+ * Names of tools that mutate state and therefore require a durable receipt
204
+ * BEFORE they run. Phase 1 exposes read tools only, so this is empty in
205
+ * production; it exists so Phase 2 write tools inherit the fail-closed path
206
+ * (and so the branch is testable now with a simulated mutating tool).
207
+ */
208
+ mutatingTools?: ReadonlySet<string>;
209
+ /**
210
+ * Governed-path deny-by-default per-tool authorization (I-7). When set, it
211
+ * gates BOTH `tools/list` (advertised set) and `tools/call` (execution). A
212
+ * tool the caller may not execute is neither listed nor callable. Leave unset
213
+ * for the stdio launcher (no per-tool authz — the OS account is the boundary).
214
+ */
215
+ toolAuthorizer?: McpToolAuthorizer;
216
+ /**
217
+ * Governed-path per-call rate limiter (I-8). When set, an authorized
218
+ * `tools/call` consumes one token; exhaustion yields a JSON-RPC error and a
219
+ * `mcp:tool:denied` receipt with `reason: 'rate-limit'`. Unset → unlimited.
220
+ */
221
+ rateLimiter?: McpToolRateLimiter;
222
+ /**
223
+ * Governed-path usage-meter sink. When set, one meter event fires per
224
+ * executed tool call (source `agent` downstream). Unset → no metering.
225
+ */
226
+ meterSink?: McpToolMeterSink;
101
227
  }
102
228
  /**
103
229
  * Create a fresh `revealui-content` MCP Server instance. Safe to call
@@ -1 +1 @@
1
- {"version":3,"file":"revealui-content.d.ts","sourceRoot":"","sources":["../../../src/servers/factories/revealui-content.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAWnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAS3B;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAElE;AAiDD,eAAO,MAAM,mBAAmB;;;kBAKrB,CAAC;AAEZ,eAAO,MAAM,qBAAqB;;;;;;kBAQvB,CAAC;AAEZ,eAAO,MAAM,oBAAoB;;;kBAKtB,CAAC;AAEZ,eAAO,MAAM,mBAAmB;;;;kBAMrB,CAAC;AAEZ,eAAO,MAAM,mBAAmB;;kBAIrB,CAAC;AAuFZ;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,CAAC,oBAAoB,EAAE,GAAG,IAAI,CAAC,CAAC;AAE/E,MAAM,WAAW,kCAAkC;IACjD;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;CAC3C;AAuID;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,CAAC,EAAE,kCAAkC,GAAG,MAAM,CA6NhG"}
1
+ {"version":3,"file":"revealui-content.d.ts","sourceRoot":"","sources":["../../../src/servers/factories/revealui-content.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAWnE,OAAO,EAA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