@grafana/assistant 0.1.14 → 0.1.17
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 +10 -2
- package/package.json +16 -1
- package/dist/components/button/OpenAssistantButton.d.ts +0 -33
- package/dist/components/button/OpenAssistantButton.d.ts.map +0 -1
- package/dist/components/button/OpenAssistantButton.stories.d.ts +0 -11
- package/dist/components/button/OpenAssistantButton.stories.d.ts.map +0 -1
- package/dist/components/button/OpenAssistantSplitButton.d.ts +0 -32
- package/dist/components/button/OpenAssistantSplitButton.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -5
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/input/AITextArea.d.ts +0 -12
- package/dist/components/input/AITextArea.d.ts.map +0 -1
- package/dist/components/input/AITextArea.stories.d.ts +0 -26
- package/dist/components/input/AITextArea.stories.d.ts.map +0 -1
- package/dist/components/input/AITextInput.d.ts +0 -10
- package/dist/components/input/AITextInput.d.ts.map +0 -1
- package/dist/components/input/AITextInput.stories.d.ts +0 -22
- package/dist/components/input/AITextInput.stories.d.ts.map +0 -1
- package/dist/components/input/types.d.ts +0 -14
- package/dist/components/input/types.d.ts.map +0 -1
- package/dist/context/base.d.ts +0 -49
- package/dist/context/base.d.ts.map +0 -1
- package/dist/context/chat.d.ts +0 -37
- package/dist/context/chat.d.ts.map +0 -1
- package/dist/context/component.d.ts +0 -45
- package/dist/context/component.d.ts.map +0 -1
- package/dist/context/dashboard.d.ts +0 -28
- package/dist/context/dashboard.d.ts.map +0 -1
- package/dist/context/datasource.d.ts +0 -20
- package/dist/context/datasource.d.ts.map +0 -1
- package/dist/context/entity.d.ts +0 -28
- package/dist/context/entity.d.ts.map +0 -1
- package/dist/context/factory.d.ts +0 -57
- package/dist/context/factory.d.ts.map +0 -1
- package/dist/context/index.d.ts +0 -13
- package/dist/context/index.d.ts.map +0 -1
- package/dist/context/label.d.ts +0 -33
- package/dist/context/label.d.ts.map +0 -1
- package/dist/context/page.d.ts +0 -47
- package/dist/context/page.d.ts.map +0 -1
- package/dist/context/playbook.d.ts +0 -13
- package/dist/context/playbook.d.ts.map +0 -1
- package/dist/context/questions.d.ts +0 -42
- package/dist/context/questions.d.ts.map +0 -1
- package/dist/context/types.d.ts +0 -80
- package/dist/context/types.d.ts.map +0 -1
- package/dist/functions.d.ts +0 -12
- package/dist/functions.d.ts.map +0 -1
- package/dist/hook.d.ts +0 -13
- package/dist/hook.d.ts.map +0 -1
- package/dist/index.d.ts +0 -12
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +0 -1
- package/dist/inline/index.d.ts +0 -4
- package/dist/inline/index.d.ts.map +0 -1
- package/dist/inline/inlineAssistant.d.ts +0 -40
- package/dist/inline/inlineAssistant.d.ts.map +0 -1
- package/dist/inline/types.d.ts +0 -84
- package/dist/inline/types.d.ts.map +0 -1
- package/dist/inline/useInlineAssistant.d.ts +0 -65
- package/dist/inline/useInlineAssistant.d.ts.map +0 -1
- package/dist/investigations.d.ts +0 -41
- package/dist/investigations.d.ts.map +0 -1
- package/dist/limits/index.d.ts +0 -73
- package/dist/limits/index.d.ts.map +0 -1
- package/dist/plugin.d.ts +0 -9
- package/dist/plugin.d.ts.map +0 -1
- package/dist/sidebar.d.ts +0 -26
- package/dist/sidebar.d.ts.map +0 -1
- package/dist/terms/index.d.ts +0 -60
- package/dist/terms/index.d.ts.map +0 -1
- package/dist/terms/settings.gen.d.ts +0 -461
- package/dist/terms/settings.gen.d.ts.map +0 -1
- package/dist/terms/versionCompare.d.ts +0 -16
- package/dist/terms/versionCompare.d.ts.map +0 -1
- package/dist/tools/index.d.ts +0 -3
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/toolFactory.d.ts +0 -22
- package/dist/tools/toolFactory.d.ts.map +0 -1
- package/dist/tools/types.d.ts +0 -187
- package/dist/tools/types.d.ts.map +0 -1
- package/dist/utils/hash.d.ts +0 -6
- package/dist/utils/hash.d.ts.map +0 -1
- package/dist/utils/theme.d.ts +0 -30
- package/dist/utils/theme.d.ts.map +0 -1
package/dist/tools/types.d.ts
DELETED
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* JSON object type - simple key-value structure
|
|
3
|
-
*/
|
|
4
|
-
export interface JsonObject {
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Represents a datasource configuration
|
|
9
|
-
*/
|
|
10
|
-
export interface ToolDatasourceInfo {
|
|
11
|
-
uid: string;
|
|
12
|
-
name: string;
|
|
13
|
-
type: string;
|
|
14
|
-
jsonData?: Record<string, unknown>;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Function to determine if a tool should be registered based on available datasources
|
|
18
|
-
*/
|
|
19
|
-
export type ShouldRegisterFunction = (datasources: ToolDatasourceInfo[]) => boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Minimal options for a single request.
|
|
22
|
-
* Tools only need these basic options. This is a standalone type to avoid
|
|
23
|
-
* dependency on ConversationManager types from the main app.
|
|
24
|
-
*/
|
|
25
|
-
export interface SingleRequestOptions {
|
|
26
|
-
weak?: boolean;
|
|
27
|
-
signal?: AbortSignal;
|
|
28
|
-
showThinking?: boolean;
|
|
29
|
-
reasoningLevel?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Minimal tool use content structure.
|
|
33
|
-
* Represents the minimal interface needed by tools without depending on main app types.
|
|
34
|
-
* Matches the structure from the chat API schema (ToolUseContent).
|
|
35
|
-
*/
|
|
36
|
-
export interface MinimalToolUseContent {
|
|
37
|
-
toolId: string;
|
|
38
|
-
toolName: string;
|
|
39
|
-
toolInput?: Record<string, unknown>;
|
|
40
|
-
type?: 'tool_use';
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Minimal response from a single request.
|
|
44
|
-
* Tools primarily need the text and toolUse fields. The output field is available
|
|
45
|
-
* but typed as unknown to avoid dependency on ChatPromptOutput from the main app.
|
|
46
|
-
*/
|
|
47
|
-
export interface SingleRequestResponse {
|
|
48
|
-
text: string;
|
|
49
|
-
toolUse: MinimalToolUseContent[];
|
|
50
|
-
output?: unknown;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Interface for a Conversation Manager that can execute tools.
|
|
54
|
-
* This represents the capability to make single requests to the LLM with tool execution support.
|
|
55
|
-
*/
|
|
56
|
-
export interface ToolExecutingManager {
|
|
57
|
-
/**
|
|
58
|
-
* Make a single request to the model with centralized error handling
|
|
59
|
-
* @param systemPrompt System prompt message
|
|
60
|
-
* @param userMessage User message
|
|
61
|
-
* @param options Options for the single request (weak, signal, showThinking)
|
|
62
|
-
* @returns The model's response text
|
|
63
|
-
*/
|
|
64
|
-
singleRequest(systemPrompt: string, userMessage: string, options?: SingleRequestOptions): Promise<SingleRequestResponse>;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Type for tool invocation options.
|
|
68
|
-
* The manager is typed as `ToolExecutingManager` to avoid dependency on ConversationManager from the main app.
|
|
69
|
-
* Consumers should cast it to the appropriate type when needed.
|
|
70
|
-
*/
|
|
71
|
-
export type ToolInvokeOptions = {
|
|
72
|
-
manager: ToolExecutingManager;
|
|
73
|
-
signal?: AbortSignal;
|
|
74
|
-
timeout?: number;
|
|
75
|
-
/**
|
|
76
|
-
* Unique ID of this tool invocation from the LLM.
|
|
77
|
-
* Can be used to create isolated conversation audiences for retries
|
|
78
|
-
* (e.g., audience: `tool-${toolUseId}`).
|
|
79
|
-
*/
|
|
80
|
-
toolUseId?: string;
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* Tool output can be:
|
|
84
|
-
* - A simple string
|
|
85
|
-
* - A tuple of [string, artifact] where artifact can be any type (string, boolean, number, object, array, etc.)
|
|
86
|
-
* Examples include PanelJSON, but the artifact can be any structured data type
|
|
87
|
-
*/
|
|
88
|
-
export type ToolOutput = string | [string, any | null] | [string, any[]] | [string, Record<string, any>];
|
|
89
|
-
/**
|
|
90
|
-
* Minimal Tool interface - matches the structure needed without extending external Tool type
|
|
91
|
-
*/
|
|
92
|
-
export interface Tool {
|
|
93
|
-
name: string;
|
|
94
|
-
description: string;
|
|
95
|
-
inputSchema: JSONSchema;
|
|
96
|
-
/**
|
|
97
|
-
* When true, this tool is marked for deferred loading via tool search.
|
|
98
|
-
* Deferred tools are not included in the LLM context until Claude searches for them,
|
|
99
|
-
* saving context space (~200-400 tokens per tool).
|
|
100
|
-
*/
|
|
101
|
-
deferLoading?: boolean;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Basic tool interface for inline tools that don't need to support conditional registration
|
|
105
|
-
* with the "Assistant" (aka frontend agent or chat).
|
|
106
|
-
*
|
|
107
|
-
* These tools are typically used for simple, one-off tasks like generating content or executing commands.
|
|
108
|
-
*/
|
|
109
|
-
export interface InlineToolRunnable extends Tool {
|
|
110
|
-
invoke: (input: JsonObject, options: ToolInvokeOptions) => Promise<ToolOutput>;
|
|
111
|
-
metadata?: JsonObject & {
|
|
112
|
-
explainer?: (input?: JsonObject) => string;
|
|
113
|
-
};
|
|
114
|
-
verboseParsingErrors?: boolean;
|
|
115
|
-
responseFormat?: 'content_and_artifact' | string;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* JSON Schema type definition from @types/json-schema
|
|
119
|
-
* Using JSONSchema7 (Draft 7) which is compatible with zod's toJSONSchema output
|
|
120
|
-
* and other JSON Schema converters (yup, joi-to-json, etc.)
|
|
121
|
-
*/
|
|
122
|
-
export type _JSONSchema = boolean | JSONSchema;
|
|
123
|
-
export type JSONSchema = {
|
|
124
|
-
[k: string]: unknown;
|
|
125
|
-
$schema?: 'https://json-schema.org/draft/2020-12/schema' | 'http://json-schema.org/draft-07/schema#' | 'http://json-schema.org/draft-04/schema#';
|
|
126
|
-
$id?: string;
|
|
127
|
-
$anchor?: string;
|
|
128
|
-
$ref?: string;
|
|
129
|
-
$dynamicRef?: string;
|
|
130
|
-
$dynamicAnchor?: string;
|
|
131
|
-
$vocabulary?: Record<string, boolean>;
|
|
132
|
-
$comment?: string;
|
|
133
|
-
$defs?: Record<string, JSONSchema>;
|
|
134
|
-
type?: 'object' | 'array' | 'string' | 'number' | 'boolean' | 'null' | 'integer';
|
|
135
|
-
additionalItems?: _JSONSchema;
|
|
136
|
-
unevaluatedItems?: _JSONSchema;
|
|
137
|
-
prefixItems?: _JSONSchema[];
|
|
138
|
-
items?: _JSONSchema | _JSONSchema[];
|
|
139
|
-
contains?: _JSONSchema;
|
|
140
|
-
additionalProperties?: _JSONSchema;
|
|
141
|
-
unevaluatedProperties?: _JSONSchema;
|
|
142
|
-
properties?: Record<string, _JSONSchema>;
|
|
143
|
-
patternProperties?: Record<string, _JSONSchema>;
|
|
144
|
-
dependentSchemas?: Record<string, _JSONSchema>;
|
|
145
|
-
propertyNames?: _JSONSchema;
|
|
146
|
-
if?: _JSONSchema;
|
|
147
|
-
then?: _JSONSchema;
|
|
148
|
-
else?: _JSONSchema;
|
|
149
|
-
allOf?: JSONSchema[];
|
|
150
|
-
anyOf?: JSONSchema[];
|
|
151
|
-
oneOf?: JSONSchema[];
|
|
152
|
-
not?: _JSONSchema;
|
|
153
|
-
multipleOf?: number;
|
|
154
|
-
maximum?: number;
|
|
155
|
-
exclusiveMaximum?: number | boolean;
|
|
156
|
-
minimum?: number;
|
|
157
|
-
exclusiveMinimum?: number | boolean;
|
|
158
|
-
maxLength?: number;
|
|
159
|
-
minLength?: number;
|
|
160
|
-
pattern?: string;
|
|
161
|
-
maxItems?: number;
|
|
162
|
-
minItems?: number;
|
|
163
|
-
uniqueItems?: boolean;
|
|
164
|
-
maxContains?: number;
|
|
165
|
-
minContains?: number;
|
|
166
|
-
maxProperties?: number;
|
|
167
|
-
minProperties?: number;
|
|
168
|
-
required?: string[];
|
|
169
|
-
dependentRequired?: Record<string, string[]>;
|
|
170
|
-
enum?: Array<string | number | boolean | null>;
|
|
171
|
-
const?: string | number | boolean | null;
|
|
172
|
-
id?: string;
|
|
173
|
-
title?: string;
|
|
174
|
-
description?: string;
|
|
175
|
-
default?: unknown;
|
|
176
|
-
deprecated?: boolean;
|
|
177
|
-
readOnly?: boolean;
|
|
178
|
-
writeOnly?: boolean;
|
|
179
|
-
nullable?: boolean;
|
|
180
|
-
examples?: unknown[];
|
|
181
|
-
format?: string;
|
|
182
|
-
contentMediaType?: string;
|
|
183
|
-
contentEncoding?: string;
|
|
184
|
-
contentSchema?: JSONSchema;
|
|
185
|
-
_prefault?: unknown;
|
|
186
|
-
};
|
|
187
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/tools/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,WAAW,EAAE,kBAAkB,EAAE,KAAK,OAAO,CAAC;AAEpF;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,IAAI,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C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC"}
|
package/dist/utils/hash.d.ts
DELETED
package/dist/utils/hash.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../src/utils/hash.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAS1C"}
|
package/dist/utils/theme.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { GrafanaTheme2 } from '@grafana/data';
|
|
2
|
-
/**
|
|
3
|
-
* Returns the colors of the background gradient based on the theme.
|
|
4
|
-
*
|
|
5
|
-
* @param theme - The Grafana theme object.
|
|
6
|
-
* @returns The colors of the background gradient as tuple.
|
|
7
|
-
*/
|
|
8
|
-
export declare const getBackgroundGradientColors: (theme: GrafanaTheme2) => [string, string];
|
|
9
|
-
/**
|
|
10
|
-
* Creates animation keyframes for a rotating gradient border effect.
|
|
11
|
-
* This is used for loading states in inputs and other components.
|
|
12
|
-
*
|
|
13
|
-
* @param theme - The Grafana theme object
|
|
14
|
-
* @param backgroundColor - The background color to use in the animation
|
|
15
|
-
* @param color1 - First gradient color (optional, defaults to theme purple)
|
|
16
|
-
* @param color2 - Second gradient color (optional, defaults to theme orange)
|
|
17
|
-
* @returns Animation keyframes object for use with @emotion/css keyframes
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* const borderAnimation = keyframes({
|
|
22
|
-
* label: 'border-animation',
|
|
23
|
-
* ...createBorderAnimation(theme, theme.colors.background.primary),
|
|
24
|
-
* });
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare const createBorderAnimation: (theme: GrafanaTheme2, backgroundColor: string, color1?: string, color2?: string) => Record<string, {
|
|
28
|
-
backgroundImage: string;
|
|
29
|
-
}>;
|
|
30
|
-
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/utils/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAY9C;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GAAI,OAAO,aAAa,KAAG,CAAC,MAAM,EAAE,MAAM,CAkBjF,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,qBAAqB,GAChC,OAAO,aAAa,EACpB,iBAAiB,MAAM,EACvB,SAAS,MAAM,EACf,SAAS,MAAM,KACd,MAAM,CAAC,MAAM,EAAE;IAAE,eAAe,EAAE,MAAM,CAAA;CAAE,CAkB5C,CAAC"}
|