@salesforce/mcp-provider-lwc-experts 0.1.1 → 0.3.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/index.bundle.d.ts +72 -3
- package/index.bundle.js +124 -91
- package/package.json +9 -6
package/index.bundle.d.ts
CHANGED
|
@@ -1,10 +1,79 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { Connection } from '@salesforce/core';
|
|
4
|
+
import { McpProvider, McpTool, McpToolConfig, ReleaseState, Services, Toolset } from '@salesforce/mcp-provider-api';
|
|
5
|
+
import { z } from 'zod';
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
declare const McpToolEmptySchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
8
|
+
export type McpToolInputArgsShape = typeof McpToolEmptySchema.shape;
|
|
9
|
+
export type OutputArgsShape = z.ZodRawShape;
|
|
10
|
+
/**
|
|
11
|
+
* Configuration for MCP tools compatible with DX MCP
|
|
12
|
+
*/
|
|
13
|
+
export type AdkMcpToolConfig<TInputArgsShape extends z.ZodRawShape = McpToolInputArgsShape> = {
|
|
14
|
+
name: string;
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
inputSchema?: TInputArgsShape;
|
|
18
|
+
/**
|
|
19
|
+
* Optional release state of the tool, overrides one from reviewers map
|
|
20
|
+
*/
|
|
21
|
+
toolReleaseState?: DxMcpReleaseState | undefined;
|
|
22
|
+
reviewersMaturity: DxMcpReleaseState;
|
|
23
|
+
/**
|
|
24
|
+
* Dependencies of the tool, to be used to determine if the tool should be enabled based on the release state of the dependencies
|
|
25
|
+
*/
|
|
26
|
+
toolDependencies?: AdkMcpTool[];
|
|
27
|
+
/**
|
|
28
|
+
* Optional annotations for the tool
|
|
29
|
+
*/
|
|
30
|
+
annotations?: Record<string, unknown>;
|
|
31
|
+
};
|
|
32
|
+
export type DxMcpServices = Services;
|
|
33
|
+
/**
|
|
34
|
+
* Type for any release state value that represents GA or NON_GA
|
|
35
|
+
* Can accept:
|
|
36
|
+
* - ReleaseState enum values (ReleaseState.GA, ReleaseState.NON_GA)
|
|
37
|
+
* - MaturityLevel enum values (MaturityLevel.GA, MaturityLevel.NON_GA)
|
|
38
|
+
* - String literals ('ga', 'non-ga', 'GA', 'NON_GA')
|
|
39
|
+
*/
|
|
40
|
+
export type DxMcpReleaseState = ReleaseState | "ga" | "non-ga" | "GA" | "NON_GA";
|
|
41
|
+
export type DxMcpMaturityOptions = {
|
|
42
|
+
isEnforceNonGAMode?: boolean | undefined;
|
|
43
|
+
overrideReleaseState?: DxMcpReleaseState | undefined;
|
|
44
|
+
};
|
|
45
|
+
declare abstract class AdkMcpTool<TInputArgsShape extends z.ZodRawShape = McpToolInputArgsShape> extends McpTool<TInputArgsShape, OutputArgsShape> {
|
|
46
|
+
private description;
|
|
47
|
+
private title;
|
|
48
|
+
private name;
|
|
49
|
+
private inputSchema;
|
|
50
|
+
private toolDependencies;
|
|
51
|
+
private maturity;
|
|
52
|
+
private releaseState;
|
|
53
|
+
private annotations;
|
|
54
|
+
constructor(config: AdkMcpToolConfig<TInputArgsShape>, services: DxMcpServices);
|
|
55
|
+
getReleaseState(): ReleaseState;
|
|
56
|
+
getToolsets(): Toolset[];
|
|
6
57
|
getName(): string;
|
|
7
|
-
|
|
58
|
+
getConfig(): McpToolConfig<TInputArgsShape, OutputArgsShape>;
|
|
59
|
+
getMaturityOptions(): DxMcpMaturityOptions;
|
|
60
|
+
/**
|
|
61
|
+
* Allows filter out workflow tools in case all dependencies are disabled based on ReleaseStatus
|
|
62
|
+
*
|
|
63
|
+
* @returns true if the tool is enabled, false otherwise
|
|
64
|
+
*/
|
|
65
|
+
isEnabled(): boolean;
|
|
66
|
+
}
|
|
67
|
+
declare abstract class AdkMcpToolsProvider extends McpProvider {
|
|
68
|
+
private name;
|
|
69
|
+
constructor(name: string);
|
|
70
|
+
getName(): string;
|
|
71
|
+
protected abstract getTools(services: DxMcpServices): AdkMcpTool[];
|
|
72
|
+
provideTools(services: DxMcpServices): Promise<McpTool[]>;
|
|
73
|
+
}
|
|
74
|
+
export declare class LwcExpertsMcpProvider extends AdkMcpToolsProvider {
|
|
75
|
+
constructor();
|
|
76
|
+
protected getTools(services: DxMcpServices): AdkMcpTool[];
|
|
8
77
|
}
|
|
9
78
|
|
|
10
79
|
export {};
|