@mastra/mcp-apps-components 0.1.0-alpha.1 → 0.1.0-alpha.3

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/dist/index.d.ts CHANGED
@@ -1,4 +1,7 @@
1
- export { QUERY_OBSERVABILITY_TOOL } from './apps/observability-widget/tool.js';
1
+ export { OBSERVABILITY_DATE_PRESETS, OBSERVABILITY_READ_ACTIONS, QUERY_OBSERVABILITY_TOOL, } from './apps/observability-widget/tool.js';
2
+ export type { ObservabilityDatePreset, ObservabilityReadAction } from './apps/observability-widget/tool.js';
3
+ export { OBSERVABILITY_CATALOG_MAX_METRIC_NAMES, createObservabilityDashboardInputSchema, observabilityDashboardInputSchema, observabilityDashboardOutputSchema, toObservabilityDashboard, } from './observability-dashboard.js';
4
+ export type { ObservabilityCatalog, ObservabilityDashboardDraft, ObservabilityDashboardInput, ObservabilityDashboardOpened, ObservabilityWidgetDraft, } from './observability-dashboard.js';
2
5
  /** An MCP App resource: register it under a `ui://` URI in `MCPServer`'s `appResources`. */
3
6
  export interface McpAppResource {
4
7
  name: string;
@@ -11,10 +14,11 @@ export interface McpAppResource {
11
14
  */
12
15
  export declare const greetingApp: McpAppResource;
13
16
  /**
14
- * Draws one Studio dashboard widget. The tool that opens it returns `{ widget, datePreset? }` as
15
- * structured content; the app reads every metric, score and aggregate through the server's
16
- * app-only `queryObservability` tool (`{ action, args }` in, where `action` is a `MastraClient`
17
- * observability method, and `{ data }` out).
17
+ * Draws a Studio dashboard. The tool that opens it returns `{ dashboard, datePreset? }` as
18
+ * structured content, where `dashboard` passes `dashboardDefinitionSchema` (build it with
19
+ * `toObservabilityDashboard`); the app reads every metric, score and aggregate through the server's
20
+ * app-only `queryObservability` tool (`{ action, args }` in, where `action` is one of
21
+ * `OBSERVABILITY_READ_ACTIONS`, and `{ data }` out).
18
22
  */
19
- export declare const observabilityWidgetApp: McpAppResource;
23
+ export declare const observabilityDashboardApp: McpAppResource;
20
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,4FAA4F;AAC5F,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,cAIzB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,EAAE,cAIpC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,GACzB,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AACzG,OAAO,EACL,sCAAsC,EACtC,uCAAuC,EACvC,iCAAiC,EACjC,kCAAkC,EAClC,wBAAwB,GACzB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACV,oBAAoB,EACpB,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,2BAA2B,CAAC;AAEnC,4FAA4F;AAC5F,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,cAIzB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,EAAE,cAIvC,CAAC"}