@trilogy-data/trilogy-studio-components 0.1.4 → 0.1.5

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 (134) hide show
  1. package/dist/{ChatCreatorModal-CIwitCJr.js → ChatCreatorModal-BdUJ9uoW.js} +1 -1
  2. package/dist/{Dashboard-D3jI63BM.js → Dashboard-BGpN0Ixs.js} +3 -3
  3. package/dist/{DashboardCreatorInline-BVr9jK0d.js → DashboardCreatorInline-CZQ5JsIB.js} +1 -1
  4. package/dist/{DashboardMobile-CZfQYJND.js → DashboardMobile-leXuc7Vi.js} +18 -18
  5. package/dist/{LLMConnectionList-1HRJp3QF.js → LLMConnectionList-BfseODm5.js} +115 -115
  6. package/dist/{LLMView-CSLjYSdW.js → LLMView-CkW6UDnK.js} +9 -9
  7. package/dist/Manager-sE56hYtJ.js +4 -0
  8. package/dist/ResultComponent-CcThUn60.js +271 -0
  9. package/dist/{Sidebar-CLZWmBSc.js → Sidebar-gsKRqjCv.js} +3 -3
  10. package/dist/{TutorialPage-DC3pNBJ-.js → TutorialPage-DEOrK1-3.js} +4 -4
  11. package/dist/{WelcomePage-CzoMUeo0.js → WelcomePage-DhWLhWSJ.js} +5 -5
  12. package/dist/chats/chat.d.ts +11 -3
  13. package/dist/chats/chat.d.ts.map +1 -1
  14. package/dist/components/SimpleEditor.vue.d.ts.map +1 -1
  15. package/dist/components/StatusIcon.vue.d.ts +1 -1
  16. package/dist/components/StatusIcon.vue.d.ts.map +1 -1
  17. package/dist/components/VegaLiteChart.vue.d.ts +1 -1
  18. package/dist/components/VegaLiteChart.vue.d.ts.map +1 -1
  19. package/dist/components/dashboard/DashboardChart.vue.d.ts +1 -1
  20. package/dist/components/dashboard/DashboardHeader.vue.d.ts +2 -2
  21. package/dist/components/editor/Editor.vue.d.ts +72 -0
  22. package/dist/components/editor/Editor.vue.d.ts.map +1 -1
  23. package/dist/components/editor/ResultComponent.vue.d.ts +3885 -385
  24. package/dist/components/editor/ResultComponent.vue.d.ts.map +1 -1
  25. package/dist/components/editor/Results.vue.d.ts +33 -15
  26. package/dist/components/editor/Results.vue.d.ts.map +1 -1
  27. package/dist/components/layout/TabbedBrowser.vue.d.ts +15 -3
  28. package/dist/components/layout/TabbedBrowser.vue.d.ts.map +1 -1
  29. package/dist/components/llm/ChatArtifact.vue.d.ts +2 -2
  30. package/dist/components/llm/LLMChat.vue.d.ts +95 -23
  31. package/dist/components/llm/LLMChat.vue.d.ts.map +1 -1
  32. package/dist/components/llm/LLMChatSplitView.vue.d.ts +565 -110
  33. package/dist/components/llm/LLMChatSplitView.vue.d.ts.map +1 -1
  34. package/dist/components/llm/LLMEditorRefinement.vue.d.ts +2079 -0
  35. package/dist/components/llm/LLMEditorRefinement.vue.d.ts.map +1 -0
  36. package/dist/components/llm/LLMValidationView.vue.d.ts +20 -0
  37. package/dist/components/llm/LLMValidationView.vue.d.ts.map +1 -1
  38. package/dist/components/llm/index.d.ts +1 -1
  39. package/dist/components/llm/index.d.ts.map +1 -1
  40. package/dist/components/model/ModelCard.vue.d.ts +143 -0
  41. package/dist/components/model/ModelCard.vue.d.ts.map +1 -1
  42. package/dist/components/sidebar/ConnectionList.vue.d.ts +71 -0
  43. package/dist/components/sidebar/ConnectionList.vue.d.ts.map +1 -1
  44. package/dist/components/sidebar/EditorList.vue.d.ts +71 -0
  45. package/dist/components/sidebar/EditorList.vue.d.ts.map +1 -1
  46. package/dist/components/sidebar/LLMConnectionCreator.vue.d.ts.map +1 -1
  47. package/dist/components/sidebar/LLMConnectionList.vue.d.ts +4 -3
  48. package/dist/components/sidebar/LLMConnectionList.vue.d.ts.map +1 -1
  49. package/dist/components/sidebar/LLMConnectionListItem.vue.d.ts.map +1 -1
  50. package/dist/components/sidebar/LLMProviderIcon.vue.d.ts.map +1 -1
  51. package/dist/components/tutorial/TutorialPrompt.vue.d.ts +3962 -321
  52. package/dist/components/tutorial/TutorialPrompt.vue.d.ts.map +1 -1
  53. package/dist/composables/useChatWithTools.d.ts.map +1 -1
  54. package/dist/composables/useEditorRefinement.d.ts +60 -0
  55. package/dist/composables/useEditorRefinement.d.ts.map +1 -0
  56. package/dist/composables/useToolLoop.d.ts +41 -0
  57. package/dist/composables/useToolLoop.d.ts.map +1 -0
  58. package/dist/{cssMode-BkaQoZFt.js → cssMode-BqpD-bsS.js} +1 -1
  59. package/dist/dashboards/helpers.d.ts +1 -0
  60. package/dist/dashboards/helpers.d.ts.map +1 -1
  61. package/dist/data/githubStorage.d.ts.map +1 -1
  62. package/dist/data/localStorage.d.ts.map +1 -1
  63. package/dist/editors/editor.d.ts +33 -4
  64. package/dist/editors/editor.d.ts.map +1 -1
  65. package/dist/editors/results.d.ts.map +1 -1
  66. package/dist/{freemarker2-CNS10-fC.js → freemarker2-3f3Yc8DD.js} +1 -1
  67. package/dist/{handlebars-p2RiA3nK.js → handlebars-BOGnwoZY.js} +1 -1
  68. package/dist/{html-DPuxm26R.js → html-kwxiJtb9.js} +1 -1
  69. package/dist/{htmlMode-n-1DOFL9.js → htmlMode-BSQWll85.js} +1 -1
  70. package/dist/{javascript-DZ2T7Nqs.js → javascript-Cw2M92n9.js} +1 -1
  71. package/dist/{jsonMode-i7Kirheh.js → jsonMode-Cj3eACe9.js} +1 -1
  72. package/dist/{liquid-hX1l2fnN.js → liquid-D_YCsjzx.js} +1 -1
  73. package/dist/llm/anthropic.d.ts +28 -0
  74. package/dist/llm/anthropic.d.ts.map +1 -1
  75. package/dist/llm/base.d.ts +30 -1
  76. package/dist/llm/base.d.ts.map +1 -1
  77. package/dist/llm/chatAgentPrompt.d.ts +65 -78
  78. package/dist/llm/chatAgentPrompt.d.ts.map +1 -1
  79. package/dist/llm/chatHelpers.d.ts.map +1 -1
  80. package/dist/llm/consts.d.ts +1 -1
  81. package/dist/llm/data/constants.d.ts +1 -1
  82. package/dist/llm/data/constants.d.ts.map +1 -1
  83. package/dist/llm/data/prompts.d.ts.map +1 -1
  84. package/dist/llm/editorRefinementToolExecutor.d.ts +67 -0
  85. package/dist/llm/editorRefinementToolExecutor.d.ts.map +1 -0
  86. package/dist/llm/editorRefinementTools.d.ts +185 -0
  87. package/dist/llm/editorRefinementTools.d.ts.map +1 -0
  88. package/dist/llm/googlev2.d.ts +29 -1
  89. package/dist/llm/googlev2.d.ts.map +1 -1
  90. package/dist/llm/index.d.ts +5 -3
  91. package/dist/llm/index.d.ts.map +1 -1
  92. package/dist/llm/models.d.ts +1 -7
  93. package/dist/llm/models.d.ts.map +1 -1
  94. package/dist/llm/openai.d.ts +41 -0
  95. package/dist/llm/openai.d.ts.map +1 -0
  96. package/dist/llm/sharedToolSchemas.d.ts +93 -0
  97. package/dist/llm/sharedToolSchemas.d.ts.map +1 -0
  98. package/dist/llm/toolLoopCore.d.ts +67 -0
  99. package/dist/llm/toolLoopCore.d.ts.map +1 -0
  100. package/dist/llm/utils.d.ts +5 -1
  101. package/dist/llm/utils.d.ts.map +1 -1
  102. package/dist/{main-Dd5lVGEz.js → main-CMnVPECM.js} +34067 -32789
  103. package/dist/main.css +1 -1
  104. package/dist/main.js +1 -1
  105. package/dist/main.umd.cjs +664 -594
  106. package/dist/{mdx-Cd5SqFY2.js → mdx-D1QYgPt9.js} +1 -1
  107. package/dist/{python-B4N2TTBz.js → python-Bd7oj_ae.js} +1 -1
  108. package/dist/{razor-VmL1UHQI.js → razor-B-2sUawM.js} +1 -1
  109. package/dist/stores/Manager.vue.d.ts.map +1 -1
  110. package/dist/stores/chatStore.d.ts +3 -0
  111. package/dist/stores/chatStore.d.ts.map +1 -1
  112. package/dist/stores/editorStore.d.ts +119 -3
  113. package/dist/stores/editorStore.d.ts.map +1 -1
  114. package/dist/stores/llmStore.d.ts.map +1 -1
  115. package/dist/{tsMode-COLogGl9.js → tsMode-Ba44DEjT.js} +1 -1
  116. package/dist/{typescript-CvklvdUQ.js → typescript-DV6B_8EM.js} +1 -1
  117. package/dist/{useDashboard-DwNI2E0x.js → useDashboard-DyjtNooA.js} +136 -136
  118. package/dist/views/LLMView.vue.d.ts +2509 -412
  119. package/dist/views/LLMView.vue.d.ts.map +1 -1
  120. package/dist/views/ModelView.vue.d.ts +286 -0
  121. package/dist/views/ModelView.vue.d.ts.map +1 -1
  122. package/dist/views/TutorialPage.vue.d.ts +9597 -2029
  123. package/dist/views/TutorialPage.vue.d.ts.map +1 -1
  124. package/dist/{xml-D_weTR40.js → xml-7ZhThnGO.js} +1 -1
  125. package/dist/{yaml-BKP5OwFJ.js → yaml-ngaWkYBh.js} +1 -1
  126. package/package.json +1 -1
  127. package/dist/Manager-DZQXeAg1.js +0 -4
  128. package/dist/ResultComponent-JonPxGw9.js +0 -155
  129. package/dist/components/llm/LLMChatRefinement.vue.d.ts +0 -135
  130. package/dist/components/llm/LLMChatRefinement.vue.d.ts.map +0 -1
  131. package/dist/llm/mistral.d.ts +0 -12
  132. package/dist/llm/mistral.d.ts.map +0 -1
  133. package/dist/llm/openAI.d.ts +0 -13
  134. package/dist/llm/openAI.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../llm/openai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAe,MAAM,QAAQ,CAAA;AACrF,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3D;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,MAAM,GACZ;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,CAoBxE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CA6BhE;AAED,qBAAa,cAAe,SAAQ,WAAW;IAC7C,OAAO,CAAC,iBAAiB,CAAuD;IAChF,OAAO,CAAC,YAAY,CAA6C;IAC1D,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,IAAI,EAAE,MAAM,CAAW;IAC9B,OAAO,CAAC,YAAY,CAAc;gBAGhC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,cAAc,GAAE,OAAe,EAC/B,YAAY,CAAC,EAAE,YAAY;IAgBvB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IA8BtB,kBAAkB,CACtB,OAAO,EAAE,iBAAiB,EAC1B,OAAO,GAAE,UAAU,EAAE,GAAG,IAAW,GAClC,OAAO,CAAC,WAAW,CAAC;IAoIvB;;;;OAIG;IACH,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE;IAS/C;;;;;OAKG;IACH,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM;CAUjD"}
@@ -0,0 +1,93 @@
1
+ import { ChartConfig } from '../editors/results';
2
+ export declare const CHART_TYPES: readonly ["line", "bar", "barh", "point", "geo-map", "tree", "area", "headline", "donut", "heatmap", "boxplot", "treemap", "beeswarm"];
3
+ export declare const CHART_CONFIG_EXAMPLE: ChartConfig;
4
+ export declare const chartConfigSchema: {
5
+ readonly type: "object";
6
+ readonly description: "Chart configuration object";
7
+ readonly properties: {
8
+ readonly chartType: {
9
+ readonly type: "string";
10
+ readonly enum: readonly ["line", "bar", "barh", "point", "geo-map", "tree", "area", "headline", "donut", "heatmap", "boxplot", "treemap", "beeswarm"];
11
+ readonly description: "Type of chart to render";
12
+ };
13
+ readonly xField: {
14
+ readonly type: "string";
15
+ readonly description: "Field name for x-axis. Longitude for geo-map charts if geofield not provided.";
16
+ };
17
+ readonly yField: {
18
+ readonly type: "string";
19
+ readonly description: "Field name for y-axis. Latitude for geo-map charts if geofield not provided.";
20
+ };
21
+ readonly yField2: {
22
+ readonly type: "string";
23
+ readonly description: "Secondary y-axis field (optional)";
24
+ };
25
+ readonly colorField: {
26
+ readonly type: "string";
27
+ readonly description: "Field for color encoding (optional)";
28
+ };
29
+ readonly sizeField: {
30
+ readonly type: "string";
31
+ readonly description: "Field for size encoding (optional)";
32
+ };
33
+ readonly groupField: {
34
+ readonly type: "string";
35
+ readonly description: "Field for grouping data (optional)";
36
+ };
37
+ readonly trellisField: {
38
+ readonly type: "string";
39
+ readonly description: "Field for small multiples/faceting columns (optional)";
40
+ };
41
+ readonly trellisRowField: {
42
+ readonly type: "string";
43
+ readonly description: "Field for small multiples/faceting rows (optional)";
44
+ };
45
+ readonly geoField: {
46
+ readonly type: "string";
47
+ readonly description: "Field for geographic data (optional)";
48
+ };
49
+ readonly annotationField: {
50
+ readonly type: "string";
51
+ readonly description: "Field for data point annotations/labels (optional)";
52
+ };
53
+ readonly hideLegend: {
54
+ readonly type: "boolean";
55
+ readonly description: "Whether to hide the legend (optional)";
56
+ };
57
+ readonly showTitle: {
58
+ readonly type: "boolean";
59
+ readonly description: "Whether to show the chart title (optional)";
60
+ };
61
+ readonly scaleX: {
62
+ readonly type: "string";
63
+ readonly enum: readonly ["linear", "log", "sqrt"];
64
+ readonly description: "Scale type for x-axis (optional)";
65
+ };
66
+ readonly scaleY: {
67
+ readonly type: "string";
68
+ readonly enum: readonly ["linear", "log", "sqrt"];
69
+ readonly description: "Scale type for y-axis (optional)";
70
+ };
71
+ readonly linkY2: {
72
+ readonly type: "boolean";
73
+ readonly description: "Whether to link the secondary y-axis scale to the primary y-axis (optional)";
74
+ };
75
+ };
76
+ };
77
+ export declare const CHART_TYPES_LIST: string;
78
+ export declare const chartConfigGuidance: string;
79
+ export declare const connectDataConnectionTool: {
80
+ readonly name: "connect_data_connection";
81
+ readonly description: "Connect or reconnect a data connection that is not currently active. Use this when a query fails because the connection is not active, or when you need to establish a connection before running queries.";
82
+ readonly input_schema: {
83
+ readonly type: "object";
84
+ readonly properties: {
85
+ readonly connection: {
86
+ readonly type: "string";
87
+ readonly description: "The name of the data connection to connect";
88
+ };
89
+ };
90
+ readonly required: readonly ["connection"];
91
+ };
92
+ };
93
+ //# sourceMappingURL=sharedToolSchemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sharedToolSchemas.d.ts","sourceRoot":"","sources":["../../llm/sharedToolSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAc,MAAM,oBAAoB,CAAA;AAGjE,eAAO,MAAM,WAAW,wIAcd,CAAA;AAGV,eAAO,MAAM,oBAAoB,EAAE,WAiBlC,CAAA;AAGD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEpB,CAAA;AAGV,eAAO,MAAM,gBAAgB,QAA8C,CAAA;AAG3E,eAAO,MAAM,mBAAmB,QAWU,CAAA;AAG1C,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;CAc5B,CAAA"}
@@ -0,0 +1,67 @@
1
+ import { LLMMessage, LLMRequestOptions, LLMResponse } from './base';
2
+ import { ChatMessage, ChatArtifact, ChatToolCall } from '../chats/chat';
3
+ import { ToolCallResult } from './editorRefinementToolExecutor';
4
+ /** Interface for LLM operations needed by the tool loop */
5
+ export interface LLMAdapter {
6
+ generateCompletion(connectionName: string, options: LLMRequestOptions, messages: LLMMessage[]): Promise<LLMResponse>;
7
+ shouldAutoContinue(connectionName: string, responseText: string): Promise<boolean>;
8
+ }
9
+ /** Interface for persisting messages during tool loop execution */
10
+ export interface MessagePersistence {
11
+ /** Add a message to the conversation history */
12
+ addMessage(message: ChatMessage): void;
13
+ /** Add an artifact produced by a tool */
14
+ addArtifact(artifact: ChatArtifact): void;
15
+ /** Get current messages for building LLM history */
16
+ getMessages(): ChatMessage[];
17
+ }
18
+ /** Interface for tool execution */
19
+ export interface ToolExecutorFactory {
20
+ /** Create/get a tool executor. Called at the start of each iteration to allow fresh context. */
21
+ getToolExecutor(): {
22
+ executeToolCall(toolName: string, toolInput: Record<string, any>): Promise<ToolCallResult>;
23
+ };
24
+ }
25
+ /** Interface for updating execution state (loading, active tool, etc.) */
26
+ export interface ExecutionStateUpdater {
27
+ setActiveToolName(name: string): void;
28
+ checkAborted(): boolean;
29
+ }
30
+ /** Options for running the tool loop */
31
+ export interface ToolLoopConfig {
32
+ /** Tool definitions in JSON Schema format */
33
+ tools: any[];
34
+ /** Maximum iterations before stopping (safety limit) */
35
+ maxIterations?: number;
36
+ /** Maximum auto-continue attempts when LLM doesn't call tools */
37
+ maxAutoContinue?: number;
38
+ /** Build system prompt - called each iteration to allow dynamic prompts */
39
+ buildSystemPrompt: () => string;
40
+ /** Optional callback invoked after each tool execution */
41
+ onToolResult?: (toolName: string, result: ToolCallResult) => void;
42
+ /** Optional callback when a tool returns awaitsUserInput */
43
+ onAwaitsUserInput?: (result: ToolCallResult, executedToolCalls: ChatToolCall[]) => void;
44
+ }
45
+ /** Result from running the tool loop */
46
+ export interface ToolLoopResult {
47
+ terminated: boolean;
48
+ finalMessage?: string;
49
+ stopped?: boolean;
50
+ }
51
+ /**
52
+ * Format a tool result for sending to the LLM.
53
+ * Handles artifacts, messages, and errors consistently.
54
+ */
55
+ export declare function formatToolResultText(result: ToolCallResult): string;
56
+ /**
57
+ * Core tool loop execution.
58
+ * Runs the LLM conversation with tool calls until:
59
+ * - LLM responds without tool calls
60
+ * - A tool returns terminatesLoop: true
61
+ * - A tool returns awaitsUserInput: true
62
+ * - Max iterations reached
63
+ * - Abort signal triggered
64
+ * - An error occurs
65
+ */
66
+ export declare function runToolLoop(userMessage: string, llmConnectionName: string, llmAdapter: LLMAdapter, messagePersistence: MessagePersistence, toolExecutorFactory: ToolExecutorFactory, stateUpdater: ExecutionStateUpdater, config: ToolLoopConfig): Promise<ToolLoopResult>;
67
+ //# sourceMappingURL=toolLoopCore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolLo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GAAG,EAAE,CAAA;IACZ,wDAAwD;IACxD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,iEAAiE;IACjE,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,2EAA2E;IAC3E,iBAAiB,EAAE,MAAM,MAAM,CAAA;IAC/B,0DAA0D;IAC1D,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,KAAK,IAAI,CAAA;IACjE,4DAA4D;IAC5D,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,YAAY,EAAE,KAAK,IAAI,CAAA;CACxF;AAED,wCAAwC;AACxC,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CA2BnE;AAED;;;;;;;;;GASG;AACH,wBAAsB,WAAW,CAC/B,WAAW,EAAE,MAAM,EACnB,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,kBAAkB,EACtC,mBAAmB,EAAE,mBAAmB,EACxC,YAAY,EAAE,qBAAqB,EACnC,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,cAAc,CAAC,CAkQzB"}
@@ -16,11 +16,15 @@ export interface RetryOptions {
16
16
  retryStatusCodes?: number[];
17
17
  /** Optional callback function to execute before each retry */
18
18
  onRetry?: (attempt: number, delayMs: number, error: Error) => void;
19
+ /** Optional AbortSignal for cancellation */
20
+ signal?: AbortSignal;
19
21
  }
20
22
  /**
21
23
  * Default retry configuration
22
24
  */
23
- export declare const DEFAULT_RETRY_OPTIONS: Required<RetryOptions>;
25
+ export declare const DEFAULT_RETRY_OPTIONS: Omit<Required<RetryOptions>, 'signal'> & {
26
+ signal?: AbortSignal;
27
+ };
24
28
  /**
25
29
  * Type definition for errors that might contain response information
26
30
  */
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../llm/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACtD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,oCAAoC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,yCAAyC;IACzC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,+CAA+C;IAC/C,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,8DAA8D;IAC9D,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CACnE;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,YAAY,CAOxD,CAAA;AAED;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,KAAK;IAC1C,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED;;;;;;;GAOG;AACH,wBAAsB,sBAAsB,CAAC,CAAC,EAC5C,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACpB,OAAO,GAAE,YAAiB,GACzB,OAAO,CAAC,CAAC,CAAC,CAiDZ;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,MAAM,OAAO,CAAC,QAAQ,CAAC,EAChC,OAAO,GAAE,YAAiB,GACzB,OAAO,CAAC,QAAQ,CAAC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