@finos/legend-lego 2.0.202 → 2.0.203
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/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/legend-ai/LegendAIDocEnrichment.d.ts +34 -1
- package/lib/legend-ai/LegendAIDocEnrichment.d.ts.map +1 -1
- package/lib/legend-ai/LegendAIDocEnrichment.js +890 -1
- package/lib/legend-ai/LegendAIDocEnrichment.js.map +1 -1
- package/lib/legend-ai/LegendAIServiceRetrieval.d.ts +36 -0
- package/lib/legend-ai/LegendAIServiceRetrieval.d.ts.map +1 -0
- package/lib/legend-ai/LegendAIServiceRetrieval.js +179 -0
- package/lib/legend-ai/LegendAIServiceRetrieval.js.map +1 -0
- package/lib/legend-ai/LegendAITypes.d.ts +62 -2
- package/lib/legend-ai/LegendAITypes.d.ts.map +1 -1
- package/lib/legend-ai/LegendAITypes.js +56 -30
- package/lib/legend-ai/LegendAITypes.js.map +1 -1
- package/lib/legend-ai/LegendAI_LegendApplicationPlugin_Extension.d.ts +29 -6
- package/lib/legend-ai/LegendAI_LegendApplicationPlugin_Extension.d.ts.map +1 -1
- package/lib/legend-ai/LegendAI_LegendApplicationPlugin_Extension.js +9 -0
- package/lib/legend-ai/LegendAI_LegendApplicationPlugin_Extension.js.map +1 -1
- package/lib/legend-ai/__test-utils__/LegendAITestUtils.d.ts +5 -0
- package/lib/legend-ai/__test-utils__/LegendAITestUtils.d.ts.map +1 -1
- package/lib/legend-ai/__test-utils__/LegendAITestUtils.js +18 -2
- package/lib/legend-ai/__test-utils__/LegendAITestUtils.js.map +1 -1
- package/lib/legend-ai/components/LegendAIAnalysisPanel.d.ts.map +1 -1
- package/lib/legend-ai/components/LegendAIAnalysisPanel.js +27 -8
- package/lib/legend-ai/components/LegendAIAnalysisPanel.js.map +1 -1
- package/lib/legend-ai/components/LegendAIAnalysisUtils.d.ts +1 -0
- package/lib/legend-ai/components/LegendAIAnalysisUtils.d.ts.map +1 -1
- package/lib/legend-ai/components/LegendAIAnalysisUtils.js +144 -22
- package/lib/legend-ai/components/LegendAIAnalysisUtils.js.map +1 -1
- package/lib/legend-ai/components/LegendAICharts.d.ts +4 -0
- package/lib/legend-ai/components/LegendAICharts.d.ts.map +1 -1
- package/lib/legend-ai/components/LegendAICharts.js +60 -1
- package/lib/legend-ai/components/LegendAICharts.js.map +1 -1
- package/lib/legend-ai/components/LegendAIChat.d.ts.map +1 -1
- package/lib/legend-ai/components/LegendAIChat.js +46 -17
- package/lib/legend-ai/components/LegendAIChat.js.map +1 -1
- package/lib/legend-ai/components/LegendAIChatHelpers.d.ts +1 -1
- package/lib/legend-ai/components/LegendAIChatHelpers.d.ts.map +1 -1
- package/lib/legend-ai/components/LegendAIChatHelpers.js +220 -15
- package/lib/legend-ai/components/LegendAIChatHelpers.js.map +1 -1
- package/lib/legend-ai/components/LegendAIChatInput.d.ts.map +1 -1
- package/lib/legend-ai/components/LegendAIChatInput.js +1 -0
- package/lib/legend-ai/components/LegendAIChatInput.js.map +1 -1
- package/lib/legend-ai/components/LegendAIScopeSelector.d.ts.map +1 -1
- package/lib/legend-ai/components/LegendAIScopeSelector.js +5 -2
- package/lib/legend-ai/components/LegendAIScopeSelector.js.map +1 -1
- package/lib/legend-ai/index.d.ts +4 -3
- package/lib/legend-ai/index.d.ts.map +1 -1
- package/lib/legend-ai/index.js +4 -3
- package/lib/legend-ai/index.js.map +1 -1
- package/lib/legend-ai/stores/LegendAIChatProcessors.d.ts +30 -13
- package/lib/legend-ai/stores/LegendAIChatProcessors.d.ts.map +1 -1
- package/lib/legend-ai/stores/LegendAIChatProcessors.js +776 -216
- package/lib/legend-ai/stores/LegendAIChatProcessors.js.map +1 -1
- package/lib/legend-ai/stores/LegendAIChatState.d.ts +2 -2
- package/lib/legend-ai/stores/LegendAIChatState.d.ts.map +1 -1
- package/lib/legend-ai/stores/LegendAIChatState.js +26 -25
- package/lib/legend-ai/stores/LegendAIChatState.js.map +1 -1
- package/package.json +3 -3
- package/src/legend-ai/LegendAIDocEnrichment.ts +1198 -1
- package/src/legend-ai/LegendAIServiceRetrieval.ts +228 -0
- package/src/legend-ai/LegendAITypes.ts +138 -32
- package/src/legend-ai/LegendAI_LegendApplicationPlugin_Extension.ts +62 -0
- package/src/legend-ai/__test-utils__/LegendAITestUtils.ts +28 -0
- package/src/legend-ai/components/LegendAIAnalysisPanel.tsx +36 -17
- package/src/legend-ai/components/LegendAIAnalysisUtils.ts +178 -22
- package/src/legend-ai/components/LegendAICharts.tsx +160 -0
- package/src/legend-ai/components/LegendAIChat.tsx +107 -14
- package/src/legend-ai/components/LegendAIChatHelpers.ts +334 -20
- package/src/legend-ai/components/LegendAIChatInput.tsx +2 -1
- package/src/legend-ai/components/LegendAIScopeSelector.tsx +7 -2
- package/src/legend-ai/index.ts +22 -1
- package/src/legend-ai/stores/LegendAIChatProcessors.ts +1205 -321
- package/src/legend-ai/stores/LegendAIChatState.ts +80 -69
- package/tsconfig.json +1 -0
package/src/legend-ai/index.ts
CHANGED
|
@@ -56,22 +56,36 @@ export {
|
|
|
56
56
|
cleanLlmSqlResponse,
|
|
57
57
|
isValidSqlCorrection,
|
|
58
58
|
sanitizeJoinOrderBy,
|
|
59
|
+
sanitizeJoinSameKeyColumns,
|
|
59
60
|
sanitizeLiteralColumns,
|
|
60
61
|
stripGuessedNonDateServiceParams,
|
|
61
62
|
ensureDateParameters,
|
|
62
63
|
detectMissingServiceParams,
|
|
63
64
|
buildMissingParamsWarning,
|
|
64
65
|
ensureSafeLimit,
|
|
65
|
-
|
|
66
|
+
ensurePureSafetyLimit,
|
|
67
|
+
detectUnsupportedEnginePattern,
|
|
68
|
+
type UnsupportedEnginePattern,
|
|
69
|
+
supplementMissingCoverage,
|
|
70
|
+
normalizeQuestion,
|
|
71
|
+
applyMultiTurnBias,
|
|
72
|
+
categorizeExecutionError,
|
|
73
|
+
ExecutionErrorCategory,
|
|
66
74
|
type MessageSetter,
|
|
67
75
|
type LegendAIOperationContext,
|
|
68
76
|
type MissingParamInfo,
|
|
69
77
|
} from './stores/LegendAIChatProcessors.js';
|
|
78
|
+
export {
|
|
79
|
+
preFilterServicesByRelevance,
|
|
80
|
+
isFuzzyMatch,
|
|
81
|
+
levenshteinDistance,
|
|
82
|
+
} from './LegendAIServiceRetrieval.js';
|
|
70
83
|
export { LegendAIResultGrid } from './components/LegendAIResultGrid.js';
|
|
71
84
|
export { LegendAIAnalysisPanel } from './components/LegendAIAnalysisPanel.js';
|
|
72
85
|
export {
|
|
73
86
|
LegendAIBarChart,
|
|
74
87
|
LegendAIDonutChart,
|
|
88
|
+
LegendAILineChart,
|
|
75
89
|
} from './components/LegendAICharts.js';
|
|
76
90
|
export {
|
|
77
91
|
type LegendAIGridAnalysis,
|
|
@@ -88,4 +102,11 @@ export {
|
|
|
88
102
|
inferServiceRelationshipsFromAssociations,
|
|
89
103
|
extractLambdaPreFilters,
|
|
90
104
|
formatPreFiltersForContext,
|
|
105
|
+
extractModelContext,
|
|
106
|
+
buildEnrichedBusinessContext,
|
|
107
|
+
buildModelContextEnrichmentText,
|
|
108
|
+
findBestAlternateRoot,
|
|
109
|
+
resolveEntitiesDeterministic,
|
|
110
|
+
buildSemanticPropertyIndex,
|
|
111
|
+
splitIdentifierTokens,
|
|
91
112
|
} from './LegendAIDocEnrichment.js';
|