@progress/kendo-react-mcp 1.6.0-dev.fb926bc2.0 → 1.6.1-beta.079a6439.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 +15 -72
- package/dist/index.js +2775 -208
- package/package.json +1 -1
- package/proto/service.proto +71 -0
package/package.json
CHANGED
package/proto/service.proto
CHANGED
|
@@ -62,6 +62,10 @@ message LogEventRequest {
|
|
|
62
62
|
map<string, string> fields = 2;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
message RecordToolUserRequestMessage {
|
|
66
|
+
string tool_name = 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
65
69
|
message ProductInfo {
|
|
66
70
|
int32 id = 1;
|
|
67
71
|
string code = 2;
|
|
@@ -112,6 +116,71 @@ message ValidateUserLicenseResponse {
|
|
|
112
116
|
bool has_exceeded_rate_limit = 3;
|
|
113
117
|
}
|
|
114
118
|
|
|
119
|
+
// ============================================================================
|
|
120
|
+
// Figma Design-to-Code (D2C) Messages
|
|
121
|
+
// ============================================================================
|
|
122
|
+
|
|
123
|
+
// DEPRECATED: Variables endpoint requires enterprise plan.
|
|
124
|
+
// Design tokens are now extracted from Figma Styles in the nodes API response.
|
|
125
|
+
message VariableData {
|
|
126
|
+
string id = 1; // e.g., "VariableID:21239:123254"
|
|
127
|
+
string name = 2; // e.g., "spacing/xs"
|
|
128
|
+
string resolved_type = 3; // e.g., "FLOAT", "COLOR", "STRING"
|
|
129
|
+
string value = 4; // Serialized value (e.g., "8", "rgba(255,255,255,1)")
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
message ProcessFigmaDesignRequest {
|
|
133
|
+
// DEPRECATED: Use node_jsons for single or multiple nodes
|
|
134
|
+
string root_node_json = 1; // Raw Figma JSON for the main frame (deprecated, kept for backward compatibility)
|
|
135
|
+
// Multiple Figma node JSONs to process together
|
|
136
|
+
repeated string node_jsons = 3; // Array of Figma node JSON strings
|
|
137
|
+
// DEPRECATED: Variables endpoint requires enterprise plan.
|
|
138
|
+
// Design tokens are now extracted from Figma Styles embedded in node JSON.
|
|
139
|
+
repeated VariableData variables = 2; // Figma design tokens/variables (deprecated)
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
message ProcessFigmaDesignResponse {
|
|
143
|
+
oneof result {
|
|
144
|
+
FigmaDesignSuccessPayload success = 1;
|
|
145
|
+
FigmaDesignErrorPayload error = 2;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
message FigmaDesignSuccessPayload {
|
|
150
|
+
// DEPRECATED: Use layout_pseudo_codes for single or multiple nodes
|
|
151
|
+
string layout_pseudo_code = 1; // The clean XML-like structure (deprecated, kept for backward compatibility)
|
|
152
|
+
string design_tokens = 2; // Extracted design tokens (CSS variables) - merged from all nodes
|
|
153
|
+
ProcessingStats stats = 3; // Processing metrics
|
|
154
|
+
// Layout pseudo-code for each processed node (in the same order as node_jsons in request)
|
|
155
|
+
repeated string layout_pseudo_codes = 4; // Array of layout pseudo-code strings, one per node
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
message FigmaDesignErrorPayload {
|
|
159
|
+
D2CErrorCode code = 1;
|
|
160
|
+
string message = 2;
|
|
161
|
+
map<string, string> details = 3; // Additional context (e.g., "node_count": "15000")
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
message ProcessingStats {
|
|
165
|
+
int32 total_nodes = 1;
|
|
166
|
+
int64 processing_time_ms = 2;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
enum D2CErrorCode {
|
|
170
|
+
D2C_ERROR_UNKNOWN = 0;
|
|
171
|
+
D2C_ERROR_INVALID_JSON = 1;
|
|
172
|
+
D2C_ERROR_TREE_TOO_LARGE = 2;
|
|
173
|
+
D2C_ERROR_TREE_TOO_DEEP = 3;
|
|
174
|
+
D2C_ERROR_PAYLOAD_TOO_LARGE = 4;
|
|
175
|
+
D2C_ERROR_EMBEDDING_FAILED = 5;
|
|
176
|
+
D2C_ERROR_TIMEOUT = 6;
|
|
177
|
+
D2C_ERROR_INTERNAL = 7;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// ============================================================================
|
|
181
|
+
// Service Definition
|
|
182
|
+
// ============================================================================
|
|
183
|
+
|
|
115
184
|
service ContextQueryService {
|
|
116
185
|
rpc Query(ContextQueryRequest) returns (StringArray);
|
|
117
186
|
rpc GetApiRefMatches(ContextQueryRequest) returns (StringArray);
|
|
@@ -122,5 +191,7 @@ service ContextQueryService {
|
|
|
122
191
|
rpc GenerateTheme(ThemeGenerateRequest) returns (ThemeGenerateResponse);
|
|
123
192
|
rpc ValidateUserLicense(google.protobuf.Empty) returns (ValidateUserLicenseResponse);
|
|
124
193
|
rpc RecordOrchestratorUserRequest(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
194
|
+
rpc RecordToolUserRequest(RecordToolUserRequestMessage) returns (google.protobuf.Empty);
|
|
125
195
|
rpc LogEvent(LogEventRequest) returns (google.protobuf.Empty);
|
|
196
|
+
rpc ProcessFigmaDesign(ProcessFigmaDesignRequest) returns (ProcessFigmaDesignResponse);
|
|
126
197
|
}
|