@grafana/assistant 0.1.32 → 0.1.34

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.
Files changed (110) hide show
  1. package/README.md +12 -2
  2. package/dist/esm/components/button/OpenAssistantButton.js +106 -0
  3. package/dist/esm/components/button/OpenAssistantButton.js.map +1 -0
  4. package/dist/esm/components/button/OpenAssistantSplitButton.js +135 -0
  5. package/dist/esm/components/button/OpenAssistantSplitButton.js.map +1 -0
  6. package/dist/esm/components/button/QueryWithAssistantButton.js +62 -0
  7. package/dist/esm/components/button/QueryWithAssistantButton.js.map +1 -0
  8. package/dist/esm/components/index.js +8 -0
  9. package/dist/esm/components/index.js.map +1 -0
  10. package/dist/esm/components/input/AITextArea.js +91 -0
  11. package/dist/esm/components/input/AITextArea.js.map +1 -0
  12. package/dist/esm/components/input/AITextInput.js +70 -0
  13. package/dist/esm/components/input/AITextInput.js.map +1 -0
  14. package/dist/esm/components/input/types.js +2 -0
  15. package/dist/esm/components/input/types.js.map +1 -0
  16. package/dist/esm/components/input/useAIGeneration.js +58 -0
  17. package/dist/esm/components/input/useAIGeneration.js.map +1 -0
  18. package/dist/esm/components/input/useGeneratingPlaceholder.js +38 -0
  19. package/dist/esm/components/input/useGeneratingPlaceholder.js.map +1 -0
  20. package/dist/esm/components/prompt-card/AssistantPromptCard.js +115 -0
  21. package/dist/esm/components/prompt-card/AssistantPromptCard.js.map +1 -0
  22. package/dist/esm/components/prompt-card/useAnimatedPlaceholder.js +68 -0
  23. package/dist/esm/components/prompt-card/useAnimatedPlaceholder.js.map +1 -0
  24. package/dist/esm/context/base.js +47 -0
  25. package/dist/esm/context/base.js.map +1 -0
  26. package/dist/esm/context/chat.js +78 -0
  27. package/dist/esm/context/chat.js.map +1 -0
  28. package/dist/esm/context/component.js +141 -0
  29. package/dist/esm/context/component.js.map +1 -0
  30. package/dist/esm/context/dashboard.js +49 -0
  31. package/dist/esm/context/dashboard.js.map +1 -0
  32. package/dist/esm/context/datasource.js +25 -0
  33. package/dist/esm/context/datasource.js.map +1 -0
  34. package/dist/esm/context/entity.js +35 -0
  35. package/dist/esm/context/entity.js.map +1 -0
  36. package/dist/esm/context/factory.js +60 -0
  37. package/dist/esm/context/factory.js.map +1 -0
  38. package/dist/esm/context/index.js +13 -0
  39. package/dist/esm/context/index.js.map +1 -0
  40. package/dist/esm/context/label.js +62 -0
  41. package/dist/esm/context/label.js.map +1 -0
  42. package/dist/esm/context/page.js +365 -0
  43. package/dist/esm/context/page.js.map +1 -0
  44. package/dist/esm/context/questions.js +111 -0
  45. package/dist/esm/context/questions.js.map +1 -0
  46. package/dist/esm/context/skill.js +28 -0
  47. package/dist/esm/context/skill.js.map +1 -0
  48. package/dist/esm/context/types.js +2 -0
  49. package/dist/esm/context/types.js.map +1 -0
  50. package/dist/esm/extension/extension.js +45 -0
  51. package/dist/esm/extension/extension.js.map +1 -0
  52. package/dist/esm/extension/index.js +2 -0
  53. package/dist/esm/extension/index.js.map +1 -0
  54. package/dist/esm/functions.js +22 -0
  55. package/dist/esm/functions.js.map +1 -0
  56. package/dist/esm/hook.js +23 -0
  57. package/dist/esm/hook.js.map +1 -0
  58. package/dist/esm/index.js +16 -0
  59. package/dist/esm/index.js.map +1 -0
  60. package/dist/esm/inline/index.js +3 -0
  61. package/dist/esm/inline/index.js.map +1 -0
  62. package/dist/esm/inline/inlineAssistant.js +75 -0
  63. package/dist/esm/inline/inlineAssistant.js.map +1 -0
  64. package/dist/esm/inline/types.js +2 -0
  65. package/dist/esm/inline/types.js.map +1 -0
  66. package/dist/esm/inline/useInlineAssistant.js +158 -0
  67. package/dist/esm/inline/useInlineAssistant.js.map +1 -0
  68. package/dist/esm/k6.js +33 -0
  69. package/dist/esm/k6.js.map +1 -0
  70. package/dist/esm/lens/index.js +3 -0
  71. package/dist/esm/lens/index.js.map +1 -0
  72. package/dist/esm/lens/investigationLens.js +103 -0
  73. package/dist/esm/lens/investigationLens.js.map +1 -0
  74. package/dist/esm/lens/types.js +2 -0
  75. package/dist/esm/lens/types.js.map +1 -0
  76. package/dist/esm/lens/useInvestigationThroughLens.js +125 -0
  77. package/dist/esm/lens/useInvestigationThroughLens.js.map +1 -0
  78. package/dist/esm/limits/index.js +140 -0
  79. package/dist/esm/limits/index.js.map +1 -0
  80. package/dist/esm/plugin.js +52 -0
  81. package/dist/esm/plugin.js.map +1 -0
  82. package/dist/esm/sidebar.js +81 -0
  83. package/dist/esm/sidebar.js.map +1 -0
  84. package/dist/esm/terms/index.js +136 -0
  85. package/dist/esm/terms/index.js.map +1 -0
  86. package/dist/esm/terms/settings.gen.js +6 -0
  87. package/dist/esm/terms/settings.gen.js.map +1 -0
  88. package/dist/esm/terms/versionCompare.js +83 -0
  89. package/dist/esm/terms/versionCompare.js.map +1 -0
  90. package/dist/esm/tools/index.js +2 -0
  91. package/dist/esm/tools/index.js.map +1 -0
  92. package/dist/esm/tools/toolFactory.js +64 -0
  93. package/dist/esm/tools/toolFactory.js.map +1 -0
  94. package/dist/esm/tools/types.js +2 -0
  95. package/dist/esm/tools/types.js.map +1 -0
  96. package/dist/esm/utils/errorHandling.js +95 -0
  97. package/dist/esm/utils/errorHandling.js.map +1 -0
  98. package/dist/esm/utils/hash.js +13 -0
  99. package/dist/esm/utils/hash.js.map +1 -0
  100. package/dist/esm/utils/theme.js +65 -0
  101. package/dist/esm/utils/theme.js.map +1 -0
  102. package/dist/extension/extension.d.ts +81 -20
  103. package/dist/extension/extension.d.ts.map +1 -1
  104. package/dist/extension/index.d.ts +1 -1
  105. package/dist/extension/index.d.ts.map +1 -1
  106. package/dist/index.js +1 -1
  107. package/dist/index.js.map +1 -1
  108. package/dist/terms/settings.gen.d.ts +134 -0
  109. package/dist/terms/settings.gen.d.ts.map +1 -1
  110. package/package.json +12 -6
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versionCompare.js","sourceRoot":"","sources":["../../../src/terms/versionCompare.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AASH;;;;GAIG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EAAE,CAAC,CAAC;IACvC,OAAO,MAAM,KAAK,CAAC,CAAC;AACtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createTool } from './toolFactory';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Creates a tool with the given implementation, schema, and metadata.
3
+ * This is a zod-free implementation that accepts JSON Schema directly and a validation function.
4
+ *
5
+ * @param func The function implementation for the tool
6
+ * @param options Tool configuration options
7
+ * @returns A tool object that can be used in the agent
8
+ */
9
+ export function createTool(func, options) {
10
+ var _a;
11
+ const { explainer, ...metadata } = (_a = options.metadata) !== null && _a !== void 0 ? _a : {};
12
+ const toolObj = {
13
+ name: options.name,
14
+ description: options.description,
15
+ inputSchema: options.inputSchema,
16
+ metadata: explainer
17
+ ? {
18
+ ...metadata,
19
+ explainer: (input) => explainer(input),
20
+ }
21
+ : metadata,
22
+ responseFormat: options.responseFormat,
23
+ verboseParsingErrors: options.verboseParsingErrors,
24
+ async invoke(input, invokeOptions) {
25
+ var _a;
26
+ try {
27
+ if ((_a = invokeOptions.signal) === null || _a === void 0 ? void 0 : _a.aborted) {
28
+ throw new Error(`Tool ${options.name} execution was aborted`);
29
+ }
30
+ // Use the provided validation function instead of zod.parse()
31
+ const parsedInput = options.validate(input);
32
+ const functionPromise = func(parsedInput, invokeOptions);
33
+ const promises = [functionPromise];
34
+ if (invokeOptions.signal) {
35
+ promises.push(new Promise((_, reject) => {
36
+ var _a;
37
+ (_a = invokeOptions.signal) === null || _a === void 0 ? void 0 : _a.addEventListener('abort', () => {
38
+ reject(new Error(`Tool ${options.name} execution was aborted`));
39
+ }, { once: true });
40
+ }));
41
+ }
42
+ // If we have a timeout, add a promise to handle it
43
+ if (invokeOptions.timeout && invokeOptions.timeout > 0) {
44
+ promises.push(new Promise((_, reject) => {
45
+ setTimeout(() => {
46
+ reject(new Error(`Tool ${options.name} execution timed out after ${invokeOptions.timeout}ms`));
47
+ }, invokeOptions.timeout);
48
+ }));
49
+ }
50
+ // Race the function promise against the abort and timeout promises
51
+ return Promise.race(promises);
52
+ }
53
+ catch (error) {
54
+ // Handle parsing errors and wrap them in ToolError
55
+ if (options.verboseParsingErrors) {
56
+ console.error(`Error invoking tool ${options.name}:`, error, input);
57
+ }
58
+ throw error;
59
+ }
60
+ },
61
+ };
62
+ return toolObj;
63
+ }
64
+ //# sourceMappingURL=toolFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolFactory.js","sourceRoot":"","sources":["../../../src/tools/toolFactory.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,MAAM,UAAU,UAAU,CACxB,IAAmE,EACnE,OAWC;;IAED,MAAM,EAAE,SAAS,EAAE,GAAG,QAAQ,EAAE,GAAG,MAAA,OAAO,CAAC,QAAQ,mCAAI,EAAE,CAAC;IAC1D,MAAM,OAAO,GAAuB;QAClC,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,QAAQ,EAAE,SAAS;YACjB,CAAC,CAAC;gBACE,GAAG,QAAQ;gBACX,SAAS,EAAE,CAAC,KAAiB,EAAE,EAAE,CAAC,SAAS,CAAC,KAAU,CAAC;aACxD;YACH,CAAC,CAAC,QAAQ;QACZ,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;QAClD,KAAK,CAAC,MAAM,CAAC,KAAiB,EAAE,aAAgC;;YAC9D,IAAI,CAAC;gBACH,IAAI,MAAA,aAAa,CAAC,MAAM,0CAAE,OAAO,EAAE,CAAC;oBAClC,MAAM,IAAI,KAAK,CAAC,QAAQ,OAAO,CAAC,IAAI,wBAAwB,CAAC,CAAC;gBA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BAAuB,OAAO,CAAC,IAAI,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;gBACtE,CAAC;gBACD,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;KACF,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/tools/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,95 @@
1
+ const nestedErrorKeys = ['message', 'error', 'err', 'detail', 'details'];
2
+ function getStringValue(value) {
3
+ if (typeof value !== 'string') {
4
+ return null;
5
+ }
6
+ const trimmedValue = value.trim();
7
+ return trimmedValue === '' ? null : trimmedValue;
8
+ }
9
+ function isUnhelpfulErrorMessage(message) {
10
+ if (!message) {
11
+ return true;
12
+ }
13
+ return message === '[object Object]' || message === 'Error' || message === 'Unknown error';
14
+ }
15
+ function extractNestedErrorMessage(error, visited = new Set()) {
16
+ var _a;
17
+ const directString = getStringValue(error);
18
+ if (directString) {
19
+ return directString;
20
+ }
21
+ if (error instanceof Error) {
22
+ const errorMessage = getStringValue(error.message);
23
+ if (!isUnhelpfulErrorMessage(errorMessage)) {
24
+ return errorMessage;
25
+ }
26
+ const nestedErrorMessage = extractNestedErrorMessage(error.cause, visited);
27
+ if (nestedErrorMessage) {
28
+ return nestedErrorMessage;
29
+ }
30
+ const ownPropertiesMessage = extractNestedErrorMessage(Object.fromEntries(Object.entries(error).filter(([key]) => key !== 'message' && key !== 'name')), visited);
31
+ if (ownPropertiesMessage) {
32
+ return ownPropertiesMessage;
33
+ }
34
+ return (_a = errorMessage !== null && errorMessage !== void 0 ? errorMessage : getStringValue(error.name)) !== null && _a !== void 0 ? _a : null;
35
+ }
36
+ if (!error || typeof error !== 'object') {
37
+ return null;
38
+ }
39
+ if (visited.has(error)) {
40
+ return null;
41
+ }
42
+ visited.add(error);
43
+ const errorRecord = error;
44
+ if ('data' in errorRecord) {
45
+ const nestedDataMessage = extractNestedErrorMessage(errorRecord.data, visited);
46
+ if (nestedDataMessage) {
47
+ return nestedDataMessage;
48
+ }
49
+ }
50
+ for (const key of nestedErrorKeys) {
51
+ if (key in errorRecord) {
52
+ const nestedMessage = extractNestedErrorMessage(errorRecord[key], visited);
53
+ if (nestedMessage) {
54
+ return nestedMessage;
55
+ }
56
+ }
57
+ }
58
+ const status = errorRecord.status;
59
+ const statusText = getStringValue(errorRecord.statusText);
60
+ if ((typeof status === 'number' || typeof status === 'string') && statusText) {
61
+ return `HTTP ${status}: ${statusText}`;
62
+ }
63
+ if (Array.isArray(error)) {
64
+ const nestedMessages = error
65
+ .map((item) => extractNestedErrorMessage(item, visited))
66
+ .filter((message) => Boolean(message));
67
+ if (nestedMessages.length > 0) {
68
+ return nestedMessages.join('; ');
69
+ }
70
+ }
71
+ return null;
72
+ }
73
+ /**
74
+ * Extract error message from backend errors (handles various error formats).
75
+ *
76
+ * @internal SDK-private helper for useInlineAssistant. Not part of the public
77
+ * `@grafana/assistant` surface — do not re-export from `index.ts`.
78
+ */
79
+ export function extractErrorMessage(error) {
80
+ const extractedMessage = extractNestedErrorMessage(error);
81
+ if (extractedMessage) {
82
+ return extractedMessage;
83
+ }
84
+ // Objects that expose no message are not serialized: fetch-like errors carry
85
+ // the request URL, headers and body on `config`, which would end up in the
86
+ // messages this helper feeds back to callers.
87
+ if (error && typeof error === 'object') {
88
+ return 'Unknown error';
89
+ }
90
+ if (error == null) {
91
+ return 'Unknown error';
92
+ }
93
+ return String(error);
94
+ }
95
+ //# sourceMappingURL=errorHandling.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errorHandling.js","sourceRoot":"","sources":["../../../src/utils/errorHandling.ts"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAU,CAAC;AAElF,SAAS,cAAc,CAAC,KA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AAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,MAAM,cAAc,GAAG,KAAK;aACzB,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,yBAAyB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;aACvD,MAAM,CAAC,CAAC,OAAO,EAAqB,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;QAE5D,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC9B,OAAO,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnC,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAc;IAChD,MAAM,gBAAgB,GAAG,yBAAyB,CAAC,KAAK,CAAC,CAAC;IAC1D,IAAI,gBAAgB,EAAE,CAAC;QACrB,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,6EAA6E;IAC7E,2EAA2E;IAC3E,8CAA8C;IAC9C,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACvC,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Simple hash function that generates a deterministic hash for a given input string.
3
+ * Uses the djb2 algorithm for simplicity and good distribution.
4
+ */
5
+ export function hash(input) {
6
+ let hash = 5381;
7
+ for (let i = 0; i < input.length; i++) {
8
+ hash = (hash << 5) + hash + input.charCodeAt(i);
9
+ }
10
+ // Convert to positive hex string
11
+ return (hash >>> 0).toString(16);
12
+ }
13
+ //# sourceMappingURL=hash.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hash.js","sourceRoot":"","sources":["../../../src/utils/hash.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,UAAU,IAAI,CAAC,KAAa;IAChC,IAAI,IAAI,GAAG,IAAI,CAAC;IAEhB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,IAAI,GAAG,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAClD,CAAC;IAED,iCAAiC;IACjC,OAAO,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AACnC,CAAC"}
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Default gradient colors for the assistant
3
+ */
4
+ const GRADIENT_COLORS = {
5
+ PURPLE: 'rgb(168, 85, 247)',
6
+ ORANGE: 'rgb(249, 115, 22)',
7
+ };
8
+ // FIXME: use SDK as single source of truth for these color schemes?
9
+ /**
10
+ * Returns the colors of the background gradient based on the theme.
11
+ *
12
+ * @param theme - The Grafana theme object.
13
+ * @returns The colors of the background gradient as tuple.
14
+ */
15
+ export const getBackgroundGradientColors = (theme) => {
16
+ const defaultGradientColors = [GRADIENT_COLORS.PURPLE, GRADIENT_COLORS.ORANGE];
17
+ // Check if the theme does not use gradients by default
18
+ if (theme.name.toLowerCase() === 'dark' || theme.name.toLowerCase() === 'light') {
19
+ return defaultGradientColors;
20
+ }
21
+ // If the theme uses gradients, extract the colors from the gradient string
22
+ const gradientString = theme.colors.gradients.brandHorizontal;
23
+ const hexColorRegex = /#[0-9A-Fa-f]{6}/g;
24
+ const matches = gradientString.match(hexColorRegex);
25
+ if (!matches || matches.length < 2) {
26
+ // Fallback to default colors if extraction fails
27
+ return defaultGradientColors;
28
+ }
29
+ return [matches[0], matches[1]];
30
+ };
31
+ /**
32
+ * Creates animation keyframes for a rotating gradient border effect.
33
+ * This is used for loading states in inputs and other components.
34
+ *
35
+ * @param theme - The Grafana theme object
36
+ * @param backgroundColor - The background color to use in the animation
37
+ * @param color1 - First gradient color (optional, defaults to theme purple)
38
+ * @param color2 - Second gradient color (optional, defaults to theme orange)
39
+ * @returns Animation keyframes object for use with @emotion/css keyframes
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * const borderAnimation = keyframes({
44
+ * label: 'border-animation',
45
+ * ...createBorderAnimation(theme, theme.colors.background.primary),
46
+ * });
47
+ * ```
48
+ */
49
+ export const createBorderAnimation = (theme, backgroundColor, color1, color2) => {
50
+ const animationSteps = Array.from({ length: 101 }, (_, i) => i);
51
+ const animationFrames = {};
52
+ const [gradientColor1, gradientColor2] = getBackgroundGradientColors(theme);
53
+ const finalColor1 = color1 !== null && color1 !== void 0 ? color1 : gradientColor1;
54
+ const finalColor2 = color2 !== null && color2 !== void 0 ? color2 : gradientColor2;
55
+ for (const step of animationSteps) {
56
+ animationFrames[`${step}%`] = {
57
+ backgroundImage: `
58
+ linear-gradient(${backgroundColor}, ${backgroundColor}),
59
+ conic-gradient(from ${step * 3.6}deg, transparent 60%, ${finalColor1} 80%, ${finalColor2} 100%, transparent 15%)
60
+ `,
61
+ };
62
+ }
63
+ return animationFrames;
64
+ };
65
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/utils/theme.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,eAAe,GAAG;IACtB,MAAM,EAAE,mBAAmB;IAC3B,MAAM,EAAE,mBAAmB;CACnB,CAAC;AAEX,oEAAoE;AAEpE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,KAAoB,EAAoB,EAAE;IACpF,MAAM,qBAAqB,GAAqB,CAAC,eAAe,CAAC,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAEjG,uDAAuD;IACvD,IAAI,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,MAAM,IAA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yBAAyB,WAAW,SAAS,WAAW;OACzF;SACF,CAAC;IACJ,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC,CAAC"}
@@ -12,10 +12,11 @@ import type { ComponentType, ReactNode } from 'react';
12
12
  */
13
13
  export declare const ASSISTANT_EXTENSION_POINT = "grafana-assistant-app/extension/v1";
14
14
  /**
15
- * Props passed to a `tool-card` chit component registered via {@link ChitContribution}.
15
+ * Props passed to a `tool-details` chit component registered via {@link ChitContribution}.
16
16
  *
17
17
  * These are the normalized props every tool row in the Assistant chat track receives; a
18
- * registered card renders in place of the generic tool card with the same information.
18
+ * registered component renders inside the expanded details area of the standard tool card,
19
+ * in place of the generic expanded content.
19
20
  *
20
21
  * @experimental This API is under active development and may change in future releases.
21
22
  */
@@ -30,14 +31,21 @@ export interface ToolChitProps {
30
31
  status: 'running' | 'success' | 'error';
31
32
  }
32
33
  /**
33
- * A contribution to the Assistant chat track ("chits"): either a rich card keyed by tool name,
34
- * or a widget detector that renders inline widgets from message text.
34
+ * A contribution to the Assistant chat track ("chits"): either an expanded-details renderer
35
+ * keyed by tool name, or a component rendered in place of a tag inside assistant text.
35
36
  *
36
- * - `tool-card`: renders in place of the generic tool card for the listed tool names. A plugin
37
- * may only register cards for tools it owns (tool names are namespaced by the tool pipeline
38
- * and checked against the contributing plugin id).
39
- * - `widget`: extends the Assistant's widget detector chain. Built-in detectors run first,
40
- * plugin detectors after; the first match wins.
37
+ * - `tool-details`: renders inside the expanded details area of the standard tool card for the
38
+ * listed tool names, replacing the generic expanded content (Query/Result). The compact tool
39
+ * row, its status, and the Allow/Deny confirmation flow are always built in — a plugin never
40
+ * replaces the tool row and never renders while a confirmation is pending. A plugin may only
41
+ * register details for tools it owns (tool names are namespaced by the tool pipeline and
42
+ * checked against the contributing plugin id).
43
+ * - `inline`: registers a component rendered in place of a custom tag inside assistant message
44
+ * text. The full tag name is the plugin id with non-alphanumerics collapsed to underscores,
45
+ * followed by an underscore and `name` — for example plugin `grafana-k6-app` with
46
+ * `name: 'result'` renders `<grafana_k6_app_result>…</grafana_k6_app_result>`. Tag children
47
+ * and allow-listed attributes are passed through as props. Nothing teaches the model the tag
48
+ * exists; teach it from your own prompt contribution or page context.
41
49
  *
42
50
  * Component and function references are the only non-JSON-serializable parts of a manifest —
43
51
  * refer to {@link AssistantExtensionManifest} for the serializability contract.
@@ -45,17 +53,19 @@ export interface ToolChitProps {
45
53
  * @experimental This API is under active development and may change in future releases.
46
54
  */
47
55
  export type ChitContribution = {
48
- kind: 'tool-card';
49
- /** Fully namespaced tool names this card renders for. Must be owned by the contributing plugin. */
56
+ kind: 'tool-details';
57
+ /** Fully namespaced tool names this details renderer applies to. Must be owned by the contributing plugin. */
50
58
  toolNames: string[];
51
- /** The card component, rendered inside a per-chit error boundary. */
59
+ /** The details component, rendered inside a per-chit error boundary. */
52
60
  component: ComponentType<ToolChitProps>;
53
61
  } | {
54
- kind: 'widget';
55
- /** Returns true when this widget should render for the given message text. */
56
- detect: (text: string, meta: unknown) => boolean;
57
- /** Renders the widget for a matched message. */
58
- render: (text: string, meta: unknown) => ReactNode;
62
+ kind: 'inline';
63
+ /** Plugin-local tag suffix: lowercase, `[a-z][a-z0-9]*`. Namespaced by the plugin id into the full tag name. */
64
+ name: string;
65
+ /** Rendered in place of the tag, inside a per-chit error boundary. Receives tag children and allow-listed attributes as props. */
66
+ component: ComponentType<{
67
+ children?: ReactNode;
68
+ }>;
59
69
  };
60
70
  /**
61
71
  * The artifact file node handed to plugin artifact renderers and toolbars.
@@ -248,9 +258,49 @@ export interface AssistantStarter {
248
258
  /** The user message sent, visibly and as-is, when the starter is selected. Max 500 characters. */
249
259
  message: string;
250
260
  }
261
+ /**
262
+ * A plugin-contributed skill: a documented workflow the Assistant can load on demand.
263
+ *
264
+ * A skill is the recommended way for a plugin to teach the Assistant a workflow. By design only
265
+ * a bounded catalog line (title, description, handle) is ever resident in the Assistant's
266
+ * prompt; `content` enters model context only when the user attaches the skill or the model
267
+ * loads it. Contrast with {@link PromptContribution}, which splices resident text into the
268
+ * system prompt and ships behind a stricter flag and allowlist tier — skills need neither.
269
+ *
270
+ * Rollout status: today a registered skill appears read-only on the Assistant's Skills settings
271
+ * page, attributed to your plugin. The catalog/load path that puts skills in front of the model
272
+ * ships with the Assistant's agent-skills runtime and lights up automatically when it lands —
273
+ * no plugin-side change needed.
274
+ *
275
+ * Each skill is identified by the handle `plugin:{yourPluginId}:{id}`, with the plugin id taken
276
+ * from the extension registry — so skills can never collide with built-in or tenant skills, or
277
+ * with another plugin's. Plugin skills are never persisted or indexed: they exist only while
278
+ * your registration is live, and disappear everywhere at once when it is removed.
279
+ *
280
+ * Enforced bounds (entries violating any bound are dropped whole by the Assistant, never
281
+ * truncated): max 5 skills per plugin; `id` matching `[a-z][a-z0-9-]*`, at most 64 characters;
282
+ * `title` at most 80 characters; `description` at most 500 characters; `content` at most
283
+ * 32768 UTF-8 bytes.
284
+ *
285
+ * Skills are pure data (fully JSON-serializable), making them ideal for the future static
286
+ * `plugin.json` transport — refer to {@link AssistantExtensionManifest} for the serializability
287
+ * contract.
288
+ *
289
+ * @experimental This API is under active development and may change in future releases.
290
+ */
291
+ export interface SkillContribution {
292
+ /** Plugin-local skill id: `[a-z][a-z0-9-]*`, max 64 characters. Namespaced by the plugin id into the catalog handle. */
293
+ id: string;
294
+ /** Human-readable skill title shown in the catalog and in settings. Max 80 characters. */
295
+ title: string;
296
+ /** One or two sentences describing what the skill does and when to use it. Max 500 characters. */
297
+ description: string;
298
+ /** The skill body, loaded only on invocation — never resident in the system prompt. Max 32768 UTF-8 bytes. */
299
+ content: string;
300
+ }
251
301
  /**
252
302
  * The manifest a Grafana app plugin returns from its assistant extension function to contribute
253
- * chits, starters, artifact kinds, and prompt/mode variants to the Grafana Assistant.
303
+ * chits, starters, skills, artifact kinds, and prompt/mode variants to the Grafana Assistant.
254
304
  *
255
305
  * Serializability contract: every field of the manifest is JSON-serializable **except**
256
306
  * component and function references (`ChitContribution.component` / `detect` / `render`,
@@ -266,7 +316,7 @@ export interface AssistantStarter {
266
316
  export interface AssistantExtensionManifest {
267
317
  /** Manifest schema version. Always 1 for this SDK version. */
268
318
  schemaVersion: 1;
269
- /** Chat-track contributions: tool cards and widget detectors. */
319
+ /** Chat-track contributions: tool-details renderers and inline components. */
270
320
  chits?: ChitContribution[];
271
321
  /**
272
322
  * Proposed first messages offered on fresh chats, attributed to the plugin. Max 3.
@@ -279,6 +329,17 @@ export interface AssistantExtensionManifest {
279
329
  * future). They intentionally share the same rendering surface and send path.
280
330
  */
281
331
  starters?: AssistantStarter[];
332
+ /**
333
+ * Skills teaching the Assistant plugin-specific workflows, loaded on demand. Max 5.
334
+ *
335
+ * When to use which: use `skills` to document a workflow the Assistant should follow when a
336
+ * conversation enters your plugin's territory — only a one-line catalog entry is resident, and
337
+ * the body loads on invocation. Use `promptContributions` only for a full mode whose resident
338
+ * prompt text must always be present; that surface sits behind a stricter flag and allowlist
339
+ * tier. Skill content reaches the model only where the Assistant's agent-skills runtime is
340
+ * enabled; the read-only settings listing needs no additional flag.
341
+ */
342
+ skills?: SkillContribution[];
282
343
  /** Canvas artifact kinds. */
283
344
  artifactKinds?: ArtifactKindContribution[];
284
345
  /** Assistant mode / system prompt contributions. */
@@ -302,7 +363,7 @@ export interface AssistantExtensionManifest {
302
363
  * export const plugin = new AppPlugin().addFunction(
303
364
  * getAssistantExtensionConfig({
304
365
  * schemaVersion: 1,
305
- * chits: [{ kind: 'tool-card', toolNames: ['myplugin_run_check'], component: MyToolCard }],
366
+ * chits: [{ kind: 'tool-details', toolNames: ['myplugin_run_check'], component: MyToolDetails }],
306
367
  * })
307
368
  * );
308
369
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../src/extension/extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC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0BAA0B,CAAC,CAQtE"}
@@ -1,2 +1,2 @@
1
- export { ASSISTANT_EXTENSION_POINT, getAssistantExtensionConfig, type ArtifactKindContribution, type AssistantArtifactFs, type ArtifactRendererProps, type ArtifactToolbarProps, type ChitContribution, type PromptContribution, type PromptContributionAvailability, type ToolChitProps, type AssistantArtifactNode, type AssistantExtensionManifest, type AssistantStarter, } from './extension';
1
+ export { ASSISTANT_EXTENSION_POINT, getAssistantExtensionConfig, type ArtifactKindContribution, type AssistantArtifactFs, type ArtifactRendererProps, type ArtifactToolbarProps, type ChitContribution, type PromptContribution, type PromptContributionAvailability, type ToolChitProps, type AssistantArtifactNode, type AssistantExtensionManifest, type AssistantStarter, type SkillContribution, } from './extension';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/extension/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,GACtB,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/extension/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,GACvB,MAAM,aAAa,CAAC"}