@grafana/assistant 0.1.0 → 0.1.2

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 (66) hide show
  1. package/README.md +87 -1
  2. package/dist/components/{OpenAssistantButton.d.ts → button/OpenAssistantButton.d.ts} +6 -3
  3. package/dist/components/button/OpenAssistantButton.d.ts.map +1 -0
  4. package/dist/components/{OpenAssistantButton.stories.d.ts → button/OpenAssistantButton.stories.d.ts} +1 -0
  5. package/dist/components/button/OpenAssistantButton.stories.d.ts.map +1 -0
  6. package/dist/components/index.d.ts +4 -1
  7. package/dist/components/index.d.ts.map +1 -0
  8. package/dist/components/input/AITextArea.d.ts +12 -0
  9. package/dist/components/input/AITextArea.d.ts.map +1 -0
  10. package/dist/components/input/AITextArea.stories.d.ts +26 -0
  11. package/dist/components/input/AITextArea.stories.d.ts.map +1 -0
  12. package/dist/components/input/AITextInput.d.ts +10 -0
  13. package/dist/components/input/AITextInput.d.ts.map +1 -0
  14. package/dist/components/input/AITextInput.stories.d.ts +22 -0
  15. package/dist/components/input/AITextInput.stories.d.ts.map +1 -0
  16. package/dist/components/input/types.d.ts +14 -0
  17. package/dist/components/input/types.d.ts.map +1 -0
  18. package/dist/context/base.d.ts +1 -0
  19. package/dist/context/base.d.ts.map +1 -0
  20. package/dist/context/chat.d.ts +1 -0
  21. package/dist/context/chat.d.ts.map +1 -0
  22. package/dist/context/component.d.ts +1 -0
  23. package/dist/context/component.d.ts.map +1 -0
  24. package/dist/context/dashboard.d.ts +1 -0
  25. package/dist/context/dashboard.d.ts.map +1 -0
  26. package/dist/context/datasource.d.ts +1 -0
  27. package/dist/context/datasource.d.ts.map +1 -0
  28. package/dist/context/entity.d.ts +1 -0
  29. package/dist/context/entity.d.ts.map +1 -0
  30. package/dist/context/factory.d.ts +1 -0
  31. package/dist/context/factory.d.ts.map +1 -0
  32. package/dist/context/index.d.ts +1 -0
  33. package/dist/context/index.d.ts.map +1 -0
  34. package/dist/context/label.d.ts +1 -0
  35. package/dist/context/label.d.ts.map +1 -0
  36. package/dist/context/page.d.ts +1 -0
  37. package/dist/context/page.d.ts.map +1 -0
  38. package/dist/context/questions.d.ts +1 -0
  39. package/dist/context/questions.d.ts.map +1 -0
  40. package/dist/context/types.d.ts +1 -0
  41. package/dist/context/types.d.ts.map +1 -0
  42. package/dist/functions.d.ts +1 -0
  43. package/dist/functions.d.ts.map +1 -0
  44. package/dist/hook.d.ts +1 -0
  45. package/dist/hook.d.ts.map +1 -0
  46. package/dist/index.d.ts +2 -0
  47. package/dist/index.d.ts.map +1 -0
  48. package/dist/index.js +2 -1
  49. package/dist/index.js.map +1 -0
  50. package/dist/inline/index.d.ts +4 -0
  51. package/dist/inline/index.d.ts.map +1 -0
  52. package/dist/inline/inlineAssistant.d.ts +28 -0
  53. package/dist/inline/inlineAssistant.d.ts.map +1 -0
  54. package/dist/inline/types.d.ts +81 -0
  55. package/dist/inline/types.d.ts.map +1 -0
  56. package/dist/inline/useInlineAssistant.d.ts +44 -0
  57. package/dist/inline/useInlineAssistant.d.ts.map +1 -0
  58. package/dist/plugin.d.ts +1 -0
  59. package/dist/plugin.d.ts.map +1 -0
  60. package/dist/sidebar.d.ts +3 -0
  61. package/dist/sidebar.d.ts.map +1 -0
  62. package/dist/utils/hash.d.ts +1 -0
  63. package/dist/utils/hash.d.ts.map +1 -0
  64. package/dist/utils/theme.d.ts +30 -0
  65. package/dist/utils/theme.d.ts.map +1 -0
  66. package/package.json +4 -2
package/README.md CHANGED
@@ -571,7 +571,93 @@ A pre-built React component that renders a button to open the Grafana Assistant
571
571
  - `size?: 'xs' | 'sm' | 'md' | 'lg'` - Button size (defaults to `'sm'`)
572
572
  - `iconOnlyButton?: boolean` - If `true`, renders as an icon-only button with tooltip (defaults to `false`)
573
573
 
574
- **Returns:** JSX element or `null` if assistant is not available
574
+ #### `<AITextInput />`
575
+
576
+ An AI-powered text input component that uses the inline assistant to generate content. Features a gradient border animation while generating and an integrated send button. Perfect for generating short-form content like titles, labels, or names.
577
+
578
+ **Parameters:**
579
+
580
+ - `value: string` - **Required** The current value of the input (controlled component)
581
+ - `onChange: (value: string) => void` - **Required** Called when the input value changes
582
+ - `origin: string` - **Required** Origin for analytics tracking (e.g., 'grafana/panel-editor/title')
583
+ - `placeholder?: string` - Placeholder text (defaults to 'Ask AI to generate...')
584
+ - `systemPrompt?: string` - Optional system prompt to guide the assistant's behavior
585
+ - `onComplete?: (text: string) => void` - Callback when generation completes successfully
586
+ - `onError?: (error: Error) => void` - Callback if an error occurs during generation
587
+ - `onDelta?: (delta: string) => void` - Callback for streaming tokens as they are received during generation
588
+ - `disabled?: boolean` - Whether the input is disabled
589
+ - `className?: string` - Additional CSS class name
590
+ - `data-testid?: string` - Test ID for testing
591
+
592
+ **Example:**
593
+
594
+ ```typescript
595
+ import { AITextInput } from '@grafana/assistant';
596
+ import { useState } from 'react';
597
+
598
+ function PanelEditor() {
599
+ const [title, setTitle] = useState('');
600
+
601
+ return (
602
+ <AITextInput
603
+ value={title}
604
+ onChange={setTitle}
605
+ origin="grafana/panel-editor/title"
606
+ systemPrompt="Generate a concise, descriptive panel title. Return only the title text."
607
+ placeholder="Ask AI to generate a title..."
608
+ onComplete={(text) => {
609
+ setTitle(text); // Update state to display the generated text
610
+ console.log('Generated:', text);
611
+ }}
612
+ />
613
+ );
614
+ }
615
+ ```
616
+
617
+ #### `<AITextArea />`
618
+
619
+ An AI-powered textarea component that uses the inline assistant to generate longer content. Features a gradient border animation while generating and an integrated send button. Use Cmd/Ctrl+Enter to submit. Ideal for descriptions, documentation, or multi-line content generation.
620
+
621
+ **Parameters:**
622
+
623
+ - `value: string` - **Required** The current value of the textarea (controlled component)
624
+ - `onChange: (value: string) => void` - **Required** Called when the textarea value changes
625
+ - `origin: string` - **Required** Origin for analytics tracking (e.g., 'grafana/panel-editor/description')
626
+ - `placeholder?: string` - Placeholder text (defaults to 'Ask AI to generate... (Cmd/Ctrl+Enter to send)')
627
+ - `systemPrompt?: string` - Optional system prompt to guide the assistant's behavior
628
+ - `onComplete?: (text: string) => void` - Callback when generation completes successfully
629
+ - `onError?: (error: Error) => void` - Callback if an error occurs during generation
630
+ - `onDelta?: (delta: string) => void` - Callback for streaming tokens as they are received during generation
631
+ - `disabled?: boolean` - Whether the textarea is disabled
632
+ - `rows?: number` - Number of rows for the textarea (defaults to 4)
633
+ - `className?: string` - Additional CSS class name
634
+ - `data-testid?: string` - Test ID for testing
635
+
636
+ **Example:**
637
+
638
+ ```typescript
639
+ import { AITextArea } from '@grafana/assistant';
640
+ import { useState } from 'react';
641
+
642
+ function DashboardEditor() {
643
+ const [description, setDescription] = useState('');
644
+
645
+ return (
646
+ <AITextArea
647
+ value={description}
648
+ onChange={setDescription}
649
+ origin="grafana/dashboard-editor/description"
650
+ systemPrompt="Generate a clear dashboard description in 2-3 sentences."
651
+ placeholder="Ask AI to generate a description... (Cmd/Ctrl+Enter to send)"
652
+ rows={6}
653
+ onComplete={(text) => {
654
+ setDescription(text); // Update state to display the generated text
655
+ console.log('Generated:', text);
656
+ }}
657
+ />
658
+ );
659
+ }
660
+ ```
575
661
 
576
662
  ### Availability Functions
577
663
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { ChatContextItem } from '../context/types';
3
- import { OpenAssistantProps } from '../sidebar';
2
+ import { ChatContextItem } from '../../context/types';
3
+ import { OpenAssistantProps } from '../../sidebar';
4
4
  export interface OpenAssistantButtonProps {
5
5
  /** Prompt to pass to the openAssistant function. */
6
6
  prompt: string;
@@ -16,6 +16,8 @@ export interface OpenAssistantButtonProps {
16
16
  size?: 'xs' | 'sm' | 'md' | 'lg';
17
17
  /** If true, the button will be Assistant icon only with name as title. Defaults to false. */
18
18
  iconOnlyButton?: boolean;
19
+ /** Function to call when the button is clicked. Optional, defaults to undefined. */
20
+ onClick?: () => void;
19
21
  }
20
22
  /**
21
23
  * A button component that opens the Grafana Assistant with configurable prompt and context.
@@ -25,6 +27,7 @@ export declare function OpenAssistantButton(props: OpenAssistantButtonProps): Re
25
27
  * Presentational component separated from OpenAssistantButton to avoid hook dependencies in Storybook.
26
28
  * It is not exported for users of the package.
27
29
  */
28
- export declare function OpenAssistantButtonView({ prompt, origin, context, autoSend, title, size, iconOnlyButton, openAssistant, }: OpenAssistantButtonProps & {
30
+ export declare function OpenAssistantButtonView({ prompt, origin, context, autoSend, title, size, iconOnlyButton, openAssistant, onClick, }: OpenAssistantButtonProps & {
29
31
  openAssistant: (props: OpenAssistantProps) => void;
30
32
  }): React.JSX.Element;
33
+ //# sourceMappingURL=OpenAssistantButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenAssistantButton.d.ts","sourceRoot":"","sources":["../../../src/components/button/OpenAssistantButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAGzC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGnD,MAAM,WAAW,wBAAwB;IACvC,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,iUAAiU;IACjU,MAAM,EAAE,MAAM,CAAC;IACf,iIAAiI;IACjI,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC,6FAA6F;IAC7F,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oFAAoF;IACpF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,4BAOlE;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,MAAM,EACN,OAAO,EACP,QAAe,EACf,KAAgC,EAChC,IAAW,EACX,cAAsB,EACtB,aAAa,EACb,OAAO,GACR,EAAE,wBAAwB,GAAG;IAC5B,aAAa,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACpD,qBA6CA"}
@@ -8,3 +8,4 @@ export declare const IconOnly: Story;
8
8
  export declare const LargeButton: Story;
9
9
  export declare const CustomTitle: Story;
10
10
  export declare const WithBackground: Story;
11
+ //# sourceMappingURL=OpenAssistantButton.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenAssistantButton.stories.d.ts","sourceRoot":"","sources":["../../../src/components/button/OpenAssistantButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAGhE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,uBAAuB,CA0B9C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEtD,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAStB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KASzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KASzB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAgC5B,CAAC"}
@@ -1 +1,4 @@
1
- export { OpenAssistantButton, type OpenAssistantButtonProps } from './OpenAssistantButton';
1
+ export { OpenAssistantButton, type OpenAssistantButtonProps } from './button/OpenAssistantButton';
2
+ export { AITextInput, type AITextInputProps } from './input/AITextInput';
3
+ export { AITextArea, type AITextAreaProps } from './input/AITextArea';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAClG,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { AIInputProps } from './types';
3
+ export interface AITextAreaProps extends AIInputProps {
4
+ /** Number of rows for the textarea */
5
+ rows?: number;
6
+ }
7
+ /**
8
+ * An AI-powered controlled textarea component that uses the Grafana Assistant engine to generate content.
9
+ * Features an integrated send button as well as a gradient border animation while generating.
10
+ */
11
+ export declare function AITextArea({ value, onChange, placeholder, origin, systemPrompt, onComplete, onError, onDelta, disabled, rows, className, 'data-testid': dataTestId, }: AITextAreaProps): React.JSX.Element;
12
+ //# sourceMappingURL=AITextArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AITextArea.d.ts","sourceRoot":"","sources":["../../../src/components/input/AITextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAM7C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,WAAW,EACX,MAAM,EACN,YAAY,EACZ,UAAU,EACV,OAAO,EACP,OAAO,EACP,QAAgB,EAChB,IAAQ,EACR,SAAS,EACT,aAAa,EAAE,UAAU,GAC1B,EAAE,eAAe,qBAkEjB"}
@@ -0,0 +1,26 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { AITextArea } from './AITextArea';
3
+ declare const meta: Meta<typeof AITextArea>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AITextArea>;
6
+ /**
7
+ * Basic usage with controlled state
8
+ */
9
+ export declare const Basic: Story;
10
+ /**
11
+ * Larger textarea for longer content
12
+ */
13
+ export declare const LargeTextArea: Story;
14
+ /**
15
+ * Disabled state
16
+ */
17
+ export declare const Disabled: Story;
18
+ /**
19
+ * Custom width
20
+ */
21
+ export declare const CustomWidth: Story;
22
+ /**
23
+ * With error handling
24
+ */
25
+ export declare const WithErrorHandling: Story;
26
+ //# sourceMappingURL=AITextArea.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AITextArea.stories.d.ts","sourceRoot":"","sources":["../../../src/components/input/AITextArea.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAyCjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KA6BnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAuB3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAatB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KAazB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAiD/B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { AIInputProps } from './types';
3
+ export interface AITextInputProps extends AIInputProps {
4
+ }
5
+ /**
6
+ * An AI-powered controlled text input component that uses the Grafana Assistant engine to generate content.
7
+ * Features an integrated send button as well as a gradient border animation while generating.
8
+ */
9
+ export declare function AITextInput({ value, onChange, placeholder, origin, systemPrompt, onComplete, onError, onDelta, disabled, className, 'data-testid': dataTestId, }: AITextInputProps): React.JSX.Element;
10
+ //# sourceMappingURL=AITextInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AITextInput.d.ts","sourceRoot":"","sources":["../../../src/components/input/AITextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAM7C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,WAAW,gBAAiB,SAAQ,YAAY;CAAG;AAEzD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,WAAW,EACX,MAAM,EACN,YAAY,EACZ,UAAU,EACV,OAAO,EACP,OAAO,EACP,QAAgB,EAChB,SAAS,EACT,aAAa,EAAE,UAAU,GAC1B,EAAE,gBAAgB,qBA+DlB"}
@@ -0,0 +1,22 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { AITextInput } from './AITextInput';
3
+ declare const meta: Meta<typeof AITextInput>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AITextInput>;
6
+ /**
7
+ * Basic usage with controlled state
8
+ */
9
+ export declare const Basic: Story;
10
+ /**
11
+ * Disabled state
12
+ */
13
+ export declare const Disabled: Story;
14
+ /**
15
+ * Custom width
16
+ */
17
+ export declare const CustomWidth: Story;
18
+ /**
19
+ * With error handling
20
+ */
21
+ export declare const WithErrorHandling: Story;
22
+ //# sourceMappingURL=AITextInput.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AITextInput.stories.d.ts","sourceRoot":"","sources":["../../../src/components/input/AITextInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAqClC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KA0BnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAatB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KAazB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAsC/B,CAAC"}
@@ -0,0 +1,14 @@
1
+ export interface AIInputProps {
2
+ value: string;
3
+ onChange: (value: string) => void;
4
+ placeholder?: string;
5
+ origin: string;
6
+ systemPrompt?: string;
7
+ onComplete?: (text: string) => void;
8
+ onError?: (error: Error) => void;
9
+ onDelta?: (delta: string) => void;
10
+ disabled?: boolean;
11
+ className?: string;
12
+ 'data-testid'?: string;
13
+ }
14
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/input/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -28,3 +28,4 @@ export declare class StructuredNodeData extends NodeData {
28
28
  constructor(params: StructuredNodeDataParams);
29
29
  formatForLLM(codeElementIds?: string[]): ContextItemData;
30
30
  }
31
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/context/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,KAAK,eAAe,EAAwB,MAAM,SAAS,CAAC;AAGnF,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,MAAM,WAAW,cAAe,SAAQ,UAAU;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,QAAQ;IAKA,MAAM,EAAE,cAAc;IAJlC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,SAAM;IACV,IAAI,EAAE,YAAY,CAAC;gBAEP,MAAM,EAAE,cAAc;IAKzC,YAAY,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,eAAe;IAWxD,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;CAMhC;AAED,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B;AAED,qBAAa,kBAAmB,SAAQ,QAAQ;IACvC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;gBACrB,MAAM,EAAE,wBAAwB;IAK5C,YAAY,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,eAAe;CAOzD"}
@@ -34,3 +34,4 @@ import { ChatContextItem } from './types';
34
34
  * ```
35
35
  */
36
36
  export declare function createAssistantContextItem<T extends keyof ContextTypeRegistry>(type: T, params: ContextTypeRegistry[T]['params']): ChatContextItem;
37
+ //# sourceMappingURL=chat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/context/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuB,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EAAE,eAAe,EAAgB,MAAM,SAAS,CAAC;AA2BxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,MAAM,mBAAmB,EAC5E,IAAI,EAAE,CAAC,EACP,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GACvC,eAAe,CAgBjB"}
@@ -36,3 +36,4 @@ export declare function usePageComponents(): Record<string, ComponentImplementat
36
36
  export declare function provideComponents(prompt: string, namespace: string, components: Record<string, ComponentImplementation>, urlPattern?: string | RegExp): ((context: import("./types").ChatContextItem[]) => void) & {
37
37
  unregister: () => void;
38
38
  };
39
+ //# sourceMappingURL=component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/context/component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAW,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,KAAK,eAAe,EAA0B,MAAM,SAAS,CAAC;AAIvE,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;AACzD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,UAAU;IAC9D,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,iBAAkB,SAAQ,QAAQ;IACtC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;gBAEb,MAAM,EAAE,4BAA4B;IAQhD,YAAY,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,eAAe;CAWzD;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CA0B3E;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,EACnD,UAAU,GAAE,MAAM,GAAG,MAAa;;EASnC"}
@@ -25,3 +25,4 @@ export declare class FolderNodeData extends NodeData {
25
25
  constructor(params: CreateFolderContextParams);
26
26
  formatForLLM(codeElementIds?: string[]): ContextItemData;
27
27
  }
28
+ //# sourceMappingURL=dashboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../src/context/dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,KAAK,eAAe,EAA+C,MAAM,SAAS,CAAC;AAE5F,MAAM,WAAW,4BAA6B,SAAQ,UAAU;IAC9D,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,yBAA0B,SAAQ,UAAU;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,iBAAkB,SAAQ,QAAQ;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;gBAEhB,MAAM,EAAE,4BAA4B;IAShD,YAAY,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,eAAe;CAczD;AAED,qBAAa,cAAe,SAAQ,QAAQ;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,SAAM;gBAEL,MAAM,EAAE,yBAAyB;IAO7C,YAAY,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,eAAe;CAYzD"}
@@ -17,3 +17,4 @@ export declare class DatasourceNodeData extends NodeData {
17
17
  constructor(params: CreateDatasourceContextParams & DatasourceMeta);
18
18
  formatForLLM(codeElementIds?: string[]): ContextItemData;
19
19
  }
20
+ //# sourceMappingURL=datasource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datasource.d.ts","sourceRoot":"","sources":["../../src/context/datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,KAAK,eAAe,EAA2B,MAAM,SAAS,CAAC;AAExE;;;;GAIG;AACH,MAAM,WAAW,6BAA8B,SAAQ,UAAU;IAC/D,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,kBAAmB,SAAQ,QAAQ;IACvC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;gBAER,MAAM,EAAE,6BAA6B,GAAG,cAAc;IASlE,YAAY,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,eAAe;CAazD"}
@@ -25,3 +25,4 @@ export declare class EntityNodeData extends NodeData {
25
25
  constructor(params: CreateEntityContextParams);
26
26
  formatForLLM(codeElementIds?: string[]): ContextItemData;
27
27
  }
28
+ //# sourceMappingURL=entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../src/context/entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,KAAK,eAAe,EAAuB,MAAM,SAAS,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,UAAU;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE;QACN,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC;AAED,qBAAa,cAAe,SAAQ,QAAQ;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACK,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;gBAE5B,MAAM,EAAE,yBAAyB;IAiB7C,YAAY,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,eAAe;CAazD"}
@@ -54,3 +54,4 @@ export type DatasourceMeta = {
54
54
  * Creates context nodes based on type with full type safety using generics
55
55
  */
56
56
  export declare function createContextByType<T extends keyof ContextTypeRegistry>(type: T, params: ContextTypeRegistry[T]['params']): ContextTypeRegistry[T]['node'];
57
+ //# sourceMappingURL=factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/context/factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,KAAK,4BAA4B,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC/B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,KAAK,6BAA6B,EAAE,MAAM,cAAc,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,KAAK,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EACnC,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE;QAAE,MAAM,EAAE,6BAA6B,CAAC;QAAC,IAAI,EAAE,kBAAkB,CAAA;KAAE,CAAC;IAChF,UAAU,EAAE;QAAE,MAAM,EAAE,4BAA4B,CAAC;QAAC,IAAI,EAAE,iBAAiB,CAAA;KAAE,CAAC;IAC9E,WAAW,EAAE;QAAE,MAAM,EAAE,6BAA6B,CAAC;QAAC,IAAI,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACjF,SAAS,EAAE;QAAE,MAAM,EAAE,4BAA4B,CAAC;QAAC,IAAI,EAAE,iBAAiB,CAAA;KAAE,CAAC;IAC7E,gBAAgB,EAAE;QAAE,MAAM,EAAE,yBAAyB,CAAC;QAAC,IAAI,EAAE,cAAc,CAAA;KAAE,CAAC;IAC9E,UAAU,EAAE;QAAE,MAAM,EAAE,wBAAwB,CAAC;QAAC,IAAI,EAAE,kBAAkB,CAAA;KAAE,CAAC;IAC3E,SAAS,EAAE;QAAE,MAAM,EAAE,4BAA4B,CAAC;QAAC,IAAI,EAAE,iBAAiB,CAAA;KAAE,CAAC;IAC7E,MAAM,EAAE;QAAE,MAAM,EAAE,yBAAyB,CAAC;QAAC,IAAI,EAAE,cAAc,CAAA;KAAE,CAAC;IACpE,OAAO,EAAE;QAAE,MAAM,EAAE,cAAc,CAAC;QAAC,IAAI,EAAE,QAAQ,CAAA;KAAE,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAcF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,mBAAmB,EACrE,IAAI,EAAE,CAAC,EACP,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GACvC,mBAAmB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAoChC"}
@@ -9,3 +9,4 @@ export * from './label';
9
9
  export * from './page';
10
10
  export * from './questions';
11
11
  export * from './types';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
@@ -27,3 +27,4 @@ export declare class LabelValueNodeData extends NodeData {
27
27
  constructor(params: CreateLabelValueContextParams & DatasourceMeta);
28
28
  formatForLLM(codeElementIds?: string[]): ContextItemData;
29
29
  }
30
+ //# sourceMappingURL=label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../src/context/label.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,KAAK,eAAe,EAAmD,MAAM,SAAS,CAAC;AAEhG,MAAM,WAAW,4BAA6B,SAAQ,UAAU;IAC9D,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,6BAA8B,SAAQ,4BAA4B;IACjF,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,iBAAkB,SAAQ,QAAQ;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;gBAER,MAAM,EAAE,4BAA4B,GAAG,cAAc;IAUjE,YAAY,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,eAAe;CAezD;AAED,qBAAa,kBAAmB,SAAQ,QAAQ;IACvC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;gBAER,MAAM,EAAE,6BAA6B,GAAG,cAAc;IAWlE,YAAY,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,eAAe;CAgBzD"}
@@ -39,3 +39,4 @@ export declare function generateRegistrationId(prefix?: string): string;
39
39
  * @internal This is for testing purposes only
40
40
  */
41
41
  export declare function __clearPageContextRegistryForTesting(): void;
42
+ //# sourceMappingURL=page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../src/context/page.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,OAAO,EAAE,eAAe,EAAE,CAAC;CAC5B;AA8DD;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GAAG,MAAM,EAC3B,cAAc,EAAE,eAAe,EAAE,GAChC,CAAC,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC,GAAG;IAAE,UAAU,EAAE,MAAM,IAAI,CAAA;CAAE,CAiDrE;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GAAG,MAAM,EAC3B,cAAc,GAAE,eAAe,EAAO,GACrC,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,IAAI,CAgCtC;AAoCD,wBAAgB,cAAc,CAC5B,OAAO,GAAE;IAAE,cAAc,EAAE,OAAO,CAAC;IAAC,eAAe,EAAE,OAAO,CAAA;CAAsD,GACjH,eAAe,EAAE,CAkEnB;AAED,wBAAgB,sBAAsB,CAAC,MAAM,SAAiB,GAAG,MAAM,CAEtE;AAyBD;;;;;GAKG;AACH,wBAAgB,oCAAoC,IAAI,IAAI,CAE3D"}
@@ -38,3 +38,4 @@ export declare function useProvideQuestions(urlPattern: string | RegExp, initial
38
38
  * @returns Array of questions from all matching registrations
39
39
  */
40
40
  export declare function useQuestions(): Question[];
41
+ //# sourceMappingURL=questions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../src/context/questions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,SAAS,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GAAG,MAAM,EAC3B,gBAAgB,EAAE,QAAQ,EAAE,GAC3B,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC,GAAG;IAAE,UAAU,EAAE,MAAM,IAAI,CAAA;CAAE,CAmChE;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GAAG,MAAM,EAC3B,gBAAgB,GAAE,QAAQ,EAAO,GAChC,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,IAAI,CAmCjC;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,IAAI,QAAQ,EAAE,CAKzC"}
@@ -66,3 +66,4 @@ export interface ChatContextItem {
66
66
  node: TreeNode;
67
67
  occurrences: string[];
68
68
  }
69
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/context/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eAAgB,SAAQ,YAAY;CAAG;AACxD,MAAM,MAAM,YAAY,GACpB,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,WAAW,GACX,kBAAkB,GAClB,YAAY,GACZ,WAAW,GACX,QAAQ,CAAC;AAEb,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,YAAY,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B;AAGD,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,SAAS,EAAE,OAAO,CAAC;IAEnB,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,IAAI,CAAC,EAAE,QAAQ,CAAC;IAEhB,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ;AAED,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACtD,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE;QACN,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,QAAQ,CAAC;IACf,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB"}
@@ -9,3 +9,4 @@ export type FunctionNamespace = {
9
9
  };
10
10
  export declare function newFunctionNamespace(namespace: string, functions: NamedFunctions): FunctionNamespace;
11
11
  export declare function getExposeAssistantFunctionsConfig(namespaces: FunctionNamespace[]): PluginExtensionAddedFunctionConfig<() => FunctionNamespace[]>;
12
+ //# sourceMappingURL=functions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../src/functions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,eAAe,CAAC;AAEnE,MAAM,MAAM,gBAAgB,GAAG,MAAM,iBAAiB,EAAE,CAAC;AACzD,MAAM,MAAM,sBAAsB,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AAC7D,eAAO,MAAM,wBAAwB,4CAA4C,CAAC;AAElF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;AACpE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,cAAc,CAAC;CAC3B,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,GAAG,iBAAiB,CAKpG;AAED,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,iBAAiB,EAAE,GAC9B,kCAAkC,CAAC,MAAM,iBAAiB,EAAE,CAAC,CAa/D"}
package/dist/hook.d.ts CHANGED
@@ -10,3 +10,4 @@ export type AssistantHook = {
10
10
  * @returns {AssistantHook}
11
11
  */
12
12
  export declare function useAssistant(): AssistantHook;
13
+ //# sourceMappingURL=hook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../src/hook.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkD,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/F,MAAM,MAAM,aAAa,GAAG;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,CAAC,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IACjE,cAAc,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACzC,eAAe,EAAE,CAAC,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACpE,CAAC;AACF;;;GAGG;AACH,wBAAgB,YAAY,IAAI,aAAa,CAgB5C"}
package/dist/index.d.ts CHANGED
@@ -4,3 +4,5 @@ export * from './hook';
4
4
  export * from './plugin';
5
5
  export * from './sidebar';
6
6
  export * from './components';
7
+ export * from './inline';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,QAAQ,EACR,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,QAAQ,EACR,oBAAoB,EAEpB,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,eAAe,GAChB,MAAM,iBAAiB,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}