randmarcomps 1.658.0 → 1.660.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/dist/hooks/useAIAssistant.d.ts +5 -3
- package/dist/randmarcomps.cjs +26 -26
- package/dist/randmarcomps.js +4271 -4197
- package/dist/utils/api-functions.d.ts +39 -0
- package/package.json +3 -2
- package/dist/utils/assistant-mcp.d.ts +0 -8
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal function-calling schema types used by the Randmar assistant pipeline.
|
|
3
|
+
* These are intentionally lightweight and avoid taking a runtime dependency on `@google/genai`.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum Type {
|
|
6
|
+
STRING = "string",
|
|
7
|
+
NUMBER = "number",
|
|
8
|
+
BOOLEAN = "boolean",
|
|
9
|
+
OBJECT = "object"
|
|
10
|
+
}
|
|
11
|
+
export interface FunctionDeclaration {
|
|
12
|
+
name: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
parameters?: {
|
|
15
|
+
type: Type;
|
|
16
|
+
properties?: Record<string, {
|
|
17
|
+
type?: Type;
|
|
18
|
+
description: string;
|
|
19
|
+
}>;
|
|
20
|
+
required?: string[];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Represents a dynamically generated API function, including its declaration for the model,
|
|
25
|
+
* and a handler to execute the API call.
|
|
26
|
+
*/
|
|
27
|
+
export interface ApiFunction {
|
|
28
|
+
declaration: FunctionDeclaration;
|
|
29
|
+
prettyName: string;
|
|
30
|
+
details: string;
|
|
31
|
+
handler: (args: object) => Promise<string>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Fetches a Swagger/OpenAPI specification and dynamically generates API functions from it.
|
|
35
|
+
* @returns A promise that resolves to an array of ApiFunction objects.
|
|
36
|
+
*/
|
|
37
|
+
export declare function fetchApiFunctions(options?: {
|
|
38
|
+
swaggerJsonUrl?: string;
|
|
39
|
+
}): Promise<ApiFunction[]>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "randmarcomps",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.660.0",
|
|
5
5
|
"description": "The UI library enabling speed and consistency in Randmar frontends.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -110,10 +110,11 @@
|
|
|
110
110
|
"dompurify": "^3.3.3",
|
|
111
111
|
"html-react-parser": "^5.2.10",
|
|
112
112
|
"input-otp": "^1.4.2",
|
|
113
|
+
"js-md5": "^0.8.3",
|
|
113
114
|
"lucide-react": "^0.562.0",
|
|
114
115
|
"marked": "^17.0.1",
|
|
115
116
|
"next-themes": "^0.4.6",
|
|
116
|
-
"randmar-api-client": "
|
|
117
|
+
"randmar-api-client": "1.521.0",
|
|
117
118
|
"react-day-picker": "^9.8.1",
|
|
118
119
|
"react-google-charts": "^5.2.1",
|
|
119
120
|
"react-hook-form": "^7.56.2",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RandmarAssistantV2FunctionCall, RandmarAssistantV2FunctionResponse } from 'randmar-api-client';
|
|
2
|
-
export declare function getMcpToolTitle(functionCall: RandmarAssistantV2FunctionCall): string;
|
|
3
|
-
export declare function executeMcpTool(functionCall: RandmarAssistantV2FunctionCall, token?: string, signal?: AbortSignal): Promise<{
|
|
4
|
-
title: string;
|
|
5
|
-
output: string;
|
|
6
|
-
functionResponse: RandmarAssistantV2FunctionResponse;
|
|
7
|
-
}>;
|
|
8
|
-
export declare function getAssistantAccessToken(): string | undefined;
|