@burdenoff/microfe-semanticfed 2026.1031.3 → 2026.1031.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.
- package/dist/node_modules/clsx/dist/clsx.js +18 -0
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1716 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/semanticfed/SemanticFedRoutes.js +24 -20
- package/dist/semanticfed/SemanticFedRoutes.js.map +1 -1
- package/dist/semanticfed/api/quotaRefusal.js +2 -1
- package/dist/semanticfed/api/quotaRefusal.js.map +1 -1
- package/dist/semanticfed/components/AskQuestionPanel.js +161 -0
- package/dist/semanticfed/components/AskQuestionPanel.js.map +1 -0
- package/dist/semanticfed/hooks/useLineage.js +62 -0
- package/dist/semanticfed/hooks/useLineage.js.map +1 -0
- package/dist/semanticfed/hooks/useNlQuery.js +52 -0
- package/dist/semanticfed/hooks/useNlQuery.js.map +1 -0
- package/dist/semanticfed/pages/LineagePage.js +441 -0
- package/dist/semanticfed/pages/LineagePage.js.map +1 -0
- package/dist/semanticfed/pages/QueryConsolePage.js +139 -116
- package/dist/semanticfed/pages/QueryConsolePage.js.map +1 -1
- package/dist/semanticfed/utils/cn.js +10 -0
- package/dist/semanticfed/utils/cn.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { useTr as e } from "../hooks/useTr.js";
|
|
2
|
+
import { useSemAskQuestion as t, useSemNlSuggestions as n } from "../hooks/useNlQuery.js";
|
|
3
|
+
import { sqlErrorMessage as r } from "../hooks/useSqlConsole.js";
|
|
4
|
+
import { useState as i } from "react";
|
|
5
|
+
import { HelpCircle as a, Loader2 as o, MessageSquareText as s, PencilLine as c, Send as l } from "lucide-react";
|
|
6
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
|
+
import { Badge as f, Button as p, Card as m, CardContent as h, CardHeader as g, CardTitle as _ } from "@burdenoff/fe-libs/ui";
|
|
8
|
+
//#region src/semanticfed/components/AskQuestionPanel.tsx
|
|
9
|
+
var v = 1e3, y = 6;
|
|
10
|
+
function b(e) {
|
|
11
|
+
return e == null ? "NULL" : typeof e == "string" ? `'${e}'` : typeof e == "object" ? JSON.stringify(e) : String(e);
|
|
12
|
+
}
|
|
13
|
+
function x(e, t) {
|
|
14
|
+
let n = [e.entity, e.field].filter(Boolean).join(".");
|
|
15
|
+
switch (e.kind) {
|
|
16
|
+
case "MEASURE": return `${e.aggregation ?? ""}(${n})${e.governed ? ` ${t}` : ""}`;
|
|
17
|
+
case "FILTER": return `${n} ${e.operator ?? "="} ${b(e.value)}`;
|
|
18
|
+
case "ORDER": return `${n} ${e.direction ?? ""}`.trim();
|
|
19
|
+
case "LIMIT": return String(e.count ?? "");
|
|
20
|
+
case "JOIN": return e.relationship ? `${n} (${e.relationship})` : n;
|
|
21
|
+
default: return n;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function S({ modelId: b, maxRows: S, onAnswer: C, onError: w, onOpenInEditor: T }) {
|
|
25
|
+
let E = e(), [D, O] = i(""), [k, A] = i(null), j = n(b), M = t(), N = async (e) => {
|
|
26
|
+
let t = e.trim();
|
|
27
|
+
if (!(!b || t === "" || M.isPending)) try {
|
|
28
|
+
let e = await M.mutateAsync({
|
|
29
|
+
question: t,
|
|
30
|
+
modelId: b,
|
|
31
|
+
maxRows: S
|
|
32
|
+
});
|
|
33
|
+
A(e), C(e);
|
|
34
|
+
} catch (e) {
|
|
35
|
+
A(null), w(r(e));
|
|
36
|
+
}
|
|
37
|
+
}, P = (e) => {
|
|
38
|
+
O(e), N(e);
|
|
39
|
+
}, F = k?.translation ?? null, I = (F?.status === "NEEDS_CLARIFICATION" ? F.suggestions : j.data ?? []).slice(0, y), L = E("semanticfed.queryConsole.ask.governed", "(governed)");
|
|
40
|
+
return /* @__PURE__ */ d(m, {
|
|
41
|
+
"data-testid": "nl-ask-panel",
|
|
42
|
+
children: [/* @__PURE__ */ d(g, {
|
|
43
|
+
className: "pb-3",
|
|
44
|
+
children: [/* @__PURE__ */ d(_, {
|
|
45
|
+
className: "flex items-center gap-2 text-base",
|
|
46
|
+
children: [/* @__PURE__ */ u(s, { className: "h-4 w-4" }), E("semanticfed.queryConsole.ask.title", "Ask a question")]
|
|
47
|
+
}), /* @__PURE__ */ u("p", {
|
|
48
|
+
className: "text-xs text-muted-foreground",
|
|
49
|
+
children: E("semanticfed.queryConsole.ask.description", "Ask in plain English. The question is answered from the model’s governed metrics and dimensions, with your access policies applied, and the SQL it ran is shown below.")
|
|
50
|
+
})]
|
|
51
|
+
}), /* @__PURE__ */ d(h, {
|
|
52
|
+
className: "space-y-3",
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ d("form", {
|
|
55
|
+
className: "flex flex-col gap-2 sm:flex-row",
|
|
56
|
+
onSubmit: (e) => {
|
|
57
|
+
e.preventDefault(), N(D);
|
|
58
|
+
},
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ u("label", {
|
|
61
|
+
className: "sr-only",
|
|
62
|
+
htmlFor: "nl-ask-input",
|
|
63
|
+
children: E("semanticfed.queryConsole.ask.inputLabel", "Your question")
|
|
64
|
+
}),
|
|
65
|
+
/* @__PURE__ */ u("input", {
|
|
66
|
+
id: "nl-ask-input",
|
|
67
|
+
"data-testid": "nl-ask-input",
|
|
68
|
+
className: "min-w-0 flex-1 rounded border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary",
|
|
69
|
+
value: D,
|
|
70
|
+
maxLength: v,
|
|
71
|
+
onChange: (e) => O(e.target.value),
|
|
72
|
+
placeholder: E("semanticfed.queryConsole.ask.placeholder", "e.g. top 5 regions by revenue"),
|
|
73
|
+
disabled: !b
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ d(p, {
|
|
76
|
+
type: "submit",
|
|
77
|
+
size: "sm",
|
|
78
|
+
className: "sm:self-stretch",
|
|
79
|
+
disabled: !b || D.trim() === "" || M.isPending,
|
|
80
|
+
"data-testid": "nl-ask-submit",
|
|
81
|
+
children: [M.isPending ? /* @__PURE__ */ u(o, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ u(l, { className: "mr-2 h-4 w-4" }), E("semanticfed.queryConsole.ask.submit", "Ask")]
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
}),
|
|
85
|
+
I.length > 0 && /* @__PURE__ */ u("div", {
|
|
86
|
+
className: "flex flex-wrap gap-2",
|
|
87
|
+
"data-testid": "nl-ask-suggestions",
|
|
88
|
+
children: I.map((e) => /* @__PURE__ */ u("button", {
|
|
89
|
+
type: "button",
|
|
90
|
+
className: "rounded-full border px-3 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
91
|
+
onClick: () => P(e),
|
|
92
|
+
disabled: M.isPending,
|
|
93
|
+
children: e
|
|
94
|
+
}, e))
|
|
95
|
+
}),
|
|
96
|
+
F?.status === "NEEDS_CLARIFICATION" && /* @__PURE__ */ d("div", {
|
|
97
|
+
className: "flex items-start gap-2 rounded border border-dashed p-3 text-sm",
|
|
98
|
+
"data-testid": "nl-ask-clarification",
|
|
99
|
+
children: [/* @__PURE__ */ u(a, { className: "mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" }), /* @__PURE__ */ d("div", {
|
|
100
|
+
className: "min-w-0 space-y-1",
|
|
101
|
+
children: [/* @__PURE__ */ u("p", { children: F.clarification }), F.unmatchedTerms.length > 0 && /* @__PURE__ */ u("p", {
|
|
102
|
+
className: "text-xs text-muted-foreground",
|
|
103
|
+
children: E("semanticfed.queryConsole.ask.unmatched", "Not found in the model: {terms}", { terms: F.unmatchedTerms.join(", ") })
|
|
104
|
+
})]
|
|
105
|
+
})]
|
|
106
|
+
}),
|
|
107
|
+
F?.status === "TRANSLATED" && F.sql && /* @__PURE__ */ d("div", {
|
|
108
|
+
className: "space-y-2 rounded border p-3",
|
|
109
|
+
"data-testid": "nl-ask-interpretation",
|
|
110
|
+
children: [
|
|
111
|
+
/* @__PURE__ */ d("div", {
|
|
112
|
+
className: "flex flex-wrap items-center justify-between gap-2",
|
|
113
|
+
children: [/* @__PURE__ */ d("div", {
|
|
114
|
+
className: "flex flex-wrap items-center gap-2 text-xs",
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ u("span", {
|
|
117
|
+
className: "font-medium",
|
|
118
|
+
children: E("semanticfed.queryConsole.ask.interpretation", "Interpretation")
|
|
119
|
+
}),
|
|
120
|
+
/* @__PURE__ */ u(f, {
|
|
121
|
+
variant: "outline",
|
|
122
|
+
"data-testid": "nl-ask-confidence",
|
|
123
|
+
children: E("semanticfed.queryConsole.ask.confidence", "Confidence {value}%", { value: Math.round(F.confidence * 100) })
|
|
124
|
+
}),
|
|
125
|
+
F.steps.map((e, t) => /* @__PURE__ */ d(f, {
|
|
126
|
+
variant: "secondary",
|
|
127
|
+
className: "font-mono",
|
|
128
|
+
children: [
|
|
129
|
+
e.kind.replace("_", " "),
|
|
130
|
+
": ",
|
|
131
|
+
x(e, L)
|
|
132
|
+
]
|
|
133
|
+
}, `${e.kind}-${t}`))
|
|
134
|
+
]
|
|
135
|
+
}), /* @__PURE__ */ d(p, {
|
|
136
|
+
size: "sm",
|
|
137
|
+
variant: "outline",
|
|
138
|
+
onClick: () => T(F.sql ?? ""),
|
|
139
|
+
"data-testid": "nl-ask-open-editor",
|
|
140
|
+
children: [/* @__PURE__ */ u(c, { className: "mr-2 h-4 w-4" }), E("semanticfed.queryConsole.ask.openInEditor", "Edit as SQL")]
|
|
141
|
+
})]
|
|
142
|
+
}),
|
|
143
|
+
/* @__PURE__ */ u("pre", {
|
|
144
|
+
className: "overflow-x-auto rounded bg-muted p-3 font-mono text-xs text-foreground",
|
|
145
|
+
"data-testid": "nl-ask-sql",
|
|
146
|
+
children: F.sql
|
|
147
|
+
}),
|
|
148
|
+
F.unmatchedTerms.length > 0 && /* @__PURE__ */ u("p", {
|
|
149
|
+
className: "text-xs text-muted-foreground",
|
|
150
|
+
children: E("semanticfed.queryConsole.ask.ignored", "Ignored words: {terms}", { terms: F.unmatchedTerms.join(", ") })
|
|
151
|
+
})
|
|
152
|
+
]
|
|
153
|
+
})
|
|
154
|
+
]
|
|
155
|
+
})]
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
//#endregion
|
|
159
|
+
export { S as AskQuestionPanel };
|
|
160
|
+
|
|
161
|
+
//# sourceMappingURL=AskQuestionPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AskQuestionPanel.js","names":[],"sources":["../../../src/semanticfed/components/AskQuestionPanel.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { Badge, Button, Card, CardContent, CardHeader, CardTitle } from '@burdenoff/fe-libs/ui';\nimport { HelpCircle, Loader2, MessageSquareText, PencilLine, Send } from 'lucide-react';\n\nimport {\n type SemNlAnswer,\n type SemNlStep,\n useSemAskQuestion,\n useSemNlSuggestions,\n} from '../hooks/useNlQuery';\nimport { sqlErrorMessage } from '../hooks/useSqlConsole';\nimport { useTr } from '../hooks/useTr';\n\n/** Longest question the service accepts (MAX_QUESTION_LENGTH in wspace-semanticfed-svc). */\nconst MAX_QUESTION_LENGTH = 1000;\n/** Example questions shown under the input. */\nconst SUGGESTION_LIMIT = 6;\n\nexport interface AskQuestionPanelProps {\n modelId: string | null;\n maxRows: number;\n /** Called with every answer, so the page can show its governed result rows. */\n onAnswer: (answer: SemNlAnswer) => void;\n /** Called when a question fails before it is answered (network, quota, access). */\n onError: (message: string) => void;\n /** Open the generated SQL in the console's editor for review or editing. */\n onOpenInEditor: (sql: string) => void;\n}\n\nfunction formatValue(value: unknown): string {\n if (value === null || value === undefined) return 'NULL';\n if (typeof value === 'string') return `'${value}'`;\n if (typeof value === 'object') return JSON.stringify(value);\n return String(value);\n}\n\n/** One interpretation step as a short phrase, e.g. \"SUM(revenue) (governed)\". */\nfunction describeStep(step: SemNlStep, governedLabel: string): string {\n const target = [step.entity, step.field].filter(Boolean).join('.');\n switch (step.kind) {\n case 'MEASURE':\n return `${step.aggregation ?? ''}(${target})${step.governed ? ` ${governedLabel}` : ''}`;\n case 'FILTER':\n return `${target} ${step.operator ?? '='} ${formatValue(step.value)}`;\n case 'ORDER':\n return `${target} ${step.direction ?? ''}`.trim();\n case 'LIMIT':\n return String(step.count ?? '');\n case 'JOIN':\n return step.relationship ? `${target} (${step.relationship})` : target;\n default:\n return target;\n }\n}\n\n/**\n * \"Ask a question\" — natural-language questions over the semantic layer\n * (BOFF-4276). The question is translated into SQL over the model's governed\n * metrics and dimensions and run with the caller's access policies; the\n * interpretation (generated SQL, steps, confidence, ignored words) is always\n * shown so the answer can be checked, and opened in the SQL editor.\n */\nexport function AskQuestionPanel({\n modelId,\n maxRows,\n onAnswer,\n onError,\n onOpenInEditor,\n}: AskQuestionPanelProps) {\n const tr = useTr();\n const [question, setQuestion] = useState('');\n const [answer, setAnswer] = useState<SemNlAnswer | null>(null);\n const suggestions = useSemNlSuggestions(modelId);\n const ask = useSemAskQuestion();\n\n const submit = async (text: string) => {\n const trimmed = text.trim();\n if (!modelId || trimmed === '' || ask.isPending) return;\n try {\n const data = await ask.mutateAsync({ question: trimmed, modelId, maxRows });\n setAnswer(data);\n onAnswer(data);\n } catch (e) {\n setAnswer(null);\n onError(sqlErrorMessage(e));\n }\n };\n\n const askSuggestion = (text: string) => {\n setQuestion(text);\n void submit(text);\n };\n\n const translation = answer?.translation ?? null;\n const shownSuggestions = (\n translation?.status === 'NEEDS_CLARIFICATION'\n ? translation.suggestions\n : (suggestions.data ?? [])\n ).slice(0, SUGGESTION_LIMIT);\n const governedLabel = tr('semanticfed.queryConsole.ask.governed', '(governed)');\n\n return (\n <Card data-testid=\"nl-ask-panel\">\n <CardHeader className=\"pb-3\">\n <CardTitle className=\"flex items-center gap-2 text-base\">\n <MessageSquareText className=\"h-4 w-4\" />\n {tr('semanticfed.queryConsole.ask.title', 'Ask a question')}\n </CardTitle>\n <p className=\"text-xs text-muted-foreground\">\n {tr(\n 'semanticfed.queryConsole.ask.description',\n 'Ask in plain English. The question is answered from the model’s governed metrics and dimensions, with your access policies applied, and the SQL it ran is shown below.'\n )}\n </p>\n </CardHeader>\n <CardContent className=\"space-y-3\">\n <form\n className=\"flex flex-col gap-2 sm:flex-row\"\n onSubmit={(e) => {\n e.preventDefault();\n void submit(question);\n }}\n >\n <label className=\"sr-only\" htmlFor=\"nl-ask-input\">\n {tr('semanticfed.queryConsole.ask.inputLabel', 'Your question')}\n </label>\n <input\n id=\"nl-ask-input\"\n data-testid=\"nl-ask-input\"\n className=\"min-w-0 flex-1 rounded border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary\"\n value={question}\n maxLength={MAX_QUESTION_LENGTH}\n onChange={(e) => setQuestion(e.target.value)}\n placeholder={tr(\n 'semanticfed.queryConsole.ask.placeholder',\n 'e.g. top 5 regions by revenue'\n )}\n disabled={!modelId}\n />\n <Button\n type=\"submit\"\n size=\"sm\"\n className=\"sm:self-stretch\"\n disabled={!modelId || question.trim() === '' || ask.isPending}\n data-testid=\"nl-ask-submit\"\n >\n {ask.isPending ? (\n <Loader2 className=\"mr-2 h-4 w-4 animate-spin\" />\n ) : (\n <Send className=\"mr-2 h-4 w-4\" />\n )}\n {tr('semanticfed.queryConsole.ask.submit', 'Ask')}\n </Button>\n </form>\n\n {shownSuggestions.length > 0 && (\n <div className=\"flex flex-wrap gap-2\" data-testid=\"nl-ask-suggestions\">\n {shownSuggestions.map((text) => (\n <button\n key={text}\n type=\"button\"\n className=\"rounded-full border px-3 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground\"\n onClick={() => askSuggestion(text)}\n disabled={ask.isPending}\n >\n {text}\n </button>\n ))}\n </div>\n )}\n\n {translation?.status === 'NEEDS_CLARIFICATION' && (\n <div\n className=\"flex items-start gap-2 rounded border border-dashed p-3 text-sm\"\n data-testid=\"nl-ask-clarification\"\n >\n <HelpCircle className=\"mt-0.5 h-4 w-4 shrink-0 text-muted-foreground\" />\n <div className=\"min-w-0 space-y-1\">\n <p>{translation.clarification}</p>\n {translation.unmatchedTerms.length > 0 && (\n <p className=\"text-xs text-muted-foreground\">\n {tr('semanticfed.queryConsole.ask.unmatched', 'Not found in the model: {terms}', {\n terms: translation.unmatchedTerms.join(', '),\n })}\n </p>\n )}\n </div>\n </div>\n )}\n\n {translation?.status === 'TRANSLATED' && translation.sql && (\n <div className=\"space-y-2 rounded border p-3\" data-testid=\"nl-ask-interpretation\">\n <div className=\"flex flex-wrap items-center justify-between gap-2\">\n <div className=\"flex flex-wrap items-center gap-2 text-xs\">\n <span className=\"font-medium\">\n {tr('semanticfed.queryConsole.ask.interpretation', 'Interpretation')}\n </span>\n <Badge variant=\"outline\" data-testid=\"nl-ask-confidence\">\n {tr('semanticfed.queryConsole.ask.confidence', 'Confidence {value}%', {\n value: Math.round(translation.confidence * 100),\n })}\n </Badge>\n {translation.steps.map((step, index) => (\n <Badge key={`${step.kind}-${index}`} variant=\"secondary\" className=\"font-mono\">\n {step.kind.replace('_', ' ')}: {describeStep(step, governedLabel)}\n </Badge>\n ))}\n </div>\n <Button\n size=\"sm\"\n variant=\"outline\"\n onClick={() => onOpenInEditor(translation.sql ?? '')}\n data-testid=\"nl-ask-open-editor\"\n >\n <PencilLine className=\"mr-2 h-4 w-4\" />\n {tr('semanticfed.queryConsole.ask.openInEditor', 'Edit as SQL')}\n </Button>\n </div>\n <pre\n className=\"overflow-x-auto rounded bg-muted p-3 font-mono text-xs text-foreground\"\n data-testid=\"nl-ask-sql\"\n >\n {translation.sql}\n </pre>\n {translation.unmatchedTerms.length > 0 && (\n <p className=\"text-xs text-muted-foreground\">\n {tr('semanticfed.queryConsole.ask.ignored', 'Ignored words: {terms}', {\n terms: translation.unmatchedTerms.join(', '),\n })}\n </p>\n )}\n </div>\n )}\n </CardContent>\n </Card>\n );\n}\n"],"mappings":";;;;;;;;AAc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AA;MACL,EAAY,eAAe,SAAS,KACnC,kBAAC,KAAD;OAAG,WAAU;iBACV,EAAG,wCAAwC,0BAA0B,EACpE,OAAO,EAAY,eAAe,KAAK,KAAK,EAC7C,CAAC;OACA,CAAA;MAEF;;IAEI;KACT"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { useSemanticFed as e } from "../providers/SemanticFedProvider.js";
|
|
2
|
+
import { SemRequestError as t, semRequest as n } from "../api/semanticfedGraphql.js";
|
|
3
|
+
import { useQuery as r } from "@tanstack/react-query";
|
|
4
|
+
//#region src/semanticfed/hooks/useLineage.ts
|
|
5
|
+
var i = [
|
|
6
|
+
"CONNECTOR",
|
|
7
|
+
"DATA_SOURCE",
|
|
8
|
+
"ENTITY",
|
|
9
|
+
"DIMENSION",
|
|
10
|
+
"METRIC",
|
|
11
|
+
"MODEL",
|
|
12
|
+
"QUERY"
|
|
13
|
+
];
|
|
14
|
+
function a(e) {
|
|
15
|
+
return !e.refId || !i.includes(e.kind) ? null : {
|
|
16
|
+
kind: e.kind,
|
|
17
|
+
id: e.refId
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
var o = "query SemLineage(\n $rootKind: SemLineageRootKind\n $rootId: ID\n $direction: SemLineageDirection\n $depth: Int\n) {\n semLineage(rootKind: $rootKind, rootId: $rootId, direction: $direction, depth: $depth) {\n rootId\n direction\n truncated\n nodes {\n id\n kind\n refId\n label\n detail\n status\n parentId\n }\n edges {\n id\n kind\n from\n to\n detail\n observedAt\n }\n warnings {\n nodeId\n message\n }\n }\n}";
|
|
21
|
+
function s() {
|
|
22
|
+
let { apiGatewayUrl: t, workspaceId: i } = e();
|
|
23
|
+
return r({
|
|
24
|
+
queryKey: [
|
|
25
|
+
"semanticfed",
|
|
26
|
+
"lineage",
|
|
27
|
+
i ?? "no-workspace",
|
|
28
|
+
"workspace"
|
|
29
|
+
],
|
|
30
|
+
enabled: !!i,
|
|
31
|
+
queryFn: async () => (await n(o, {}, t)).semLineage
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function c(t, i, a) {
|
|
35
|
+
let { apiGatewayUrl: s, workspaceId: c } = e();
|
|
36
|
+
return r({
|
|
37
|
+
queryKey: [
|
|
38
|
+
"semanticfed",
|
|
39
|
+
"lineage",
|
|
40
|
+
c ?? "no-workspace",
|
|
41
|
+
"record",
|
|
42
|
+
t?.kind ?? null,
|
|
43
|
+
t?.id ?? null,
|
|
44
|
+
i,
|
|
45
|
+
a
|
|
46
|
+
],
|
|
47
|
+
enabled: !!(c && t),
|
|
48
|
+
queryFn: async () => (await n(o, {
|
|
49
|
+
rootKind: t?.kind,
|
|
50
|
+
rootId: t?.id,
|
|
51
|
+
direction: i,
|
|
52
|
+
depth: a
|
|
53
|
+
}, s)).semLineage
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function l(e) {
|
|
57
|
+
return e instanceof t && e.detail && e.code !== "INTERNAL_SERVER_ERROR" ? e.detail : e instanceof Error ? e.message : String(e);
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
export { l as lineageErrorMessage, a as lineageRootFor, c as useSemRecordLineage, s as useSemWorkspaceLineage };
|
|
61
|
+
|
|
62
|
+
//# sourceMappingURL=useLineage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLineage.js","names":[],"sources":["../../../src/semanticfed/hooks/useLineage.ts"],"sourcesContent":["/**\n * Lineage hooks, wired to the `wspace-semanticfed-svc` lineage API\n * (BOFF-4279). `semLineage` computes end-to-end lineage on read from the\n * semantic layer: connector → data source → physical table → entity →\n * dimension / metric → saved query, plus model membership and the data\n * sources each query's latest successful run actually read.\n */\nimport { useQuery } from '@tanstack/react-query';\n\nimport { SemRequestError, semRequest } from '../api/semanticfedGraphql';\nimport { useSemanticFed } from '../providers/SemanticFedProvider';\n\nexport type SemLineageNodeKind =\n | 'CONNECTOR'\n | 'DATA_SOURCE'\n | 'TABLE'\n | 'ENTITY'\n | 'DIMENSION'\n | 'METRIC'\n | 'COLUMN'\n | 'MODEL'\n | 'QUERY';\n\nexport type SemLineageRootKind = Exclude<SemLineageNodeKind, 'TABLE' | 'COLUMN'>;\n\nexport type SemLineageEdgeKind =\n | 'PROVIDES'\n | 'HOSTS'\n | 'MAPS_TO'\n | 'DEFINES'\n | 'MEMBER_OF'\n | 'JOINS'\n | 'SERVES'\n | 'READ_BY'\n | 'EXECUTED_ON';\n\nexport type SemLineageDirection = 'UPSTREAM' | 'DOWNSTREAM' | 'BOTH';\n\nexport interface SemLineageNode {\n id: string;\n kind: SemLineageNodeKind;\n refId: string | null;\n label: string;\n detail: string | null;\n status: string | null;\n parentId: string | null;\n}\n\nexport interface SemLineageEdge {\n id: string;\n kind: SemLineageEdgeKind;\n from: string;\n to: string;\n detail: string | null;\n observedAt: string | null;\n}\n\nexport interface SemLineageWarning {\n nodeId: string | null;\n message: string;\n}\n\nexport interface SemLineageGraph {\n rootId: string | null;\n direction: SemLineageDirection;\n nodes: SemLineageNode[];\n edges: SemLineageEdge[];\n warnings: SemLineageWarning[];\n truncated: boolean;\n}\n\nexport interface SemLineageRoot {\n kind: SemLineageRootKind;\n id: string;\n}\n\nconst ROOT_KINDS: readonly SemLineageNodeKind[] = [\n 'CONNECTOR',\n 'DATA_SOURCE',\n 'ENTITY',\n 'DIMENSION',\n 'METRIC',\n 'MODEL',\n 'QUERY',\n];\n\n/** The traversal root for a node, or null for node kinds the API cannot start from. */\nexport function lineageRootFor(node: SemLineageNode): SemLineageRoot | null {\n if (!node.refId || !ROOT_KINDS.includes(node.kind)) return null;\n return { kind: node.kind as SemLineageRootKind, id: node.refId };\n}\n\nconst LINEAGE_QUERY = `query SemLineage(\n $rootKind: SemLineageRootKind\n $rootId: ID\n $direction: SemLineageDirection\n $depth: Int\n) {\n semLineage(rootKind: $rootKind, rootId: $rootId, direction: $direction, depth: $depth) {\n rootId\n direction\n truncated\n nodes {\n id\n kind\n refId\n label\n detail\n status\n parentId\n }\n edges {\n id\n kind\n from\n to\n detail\n observedAt\n }\n warnings {\n nodeId\n message\n }\n }\n}`;\n\n/** The whole-workspace lineage graph. */\nexport function useSemWorkspaceLineage() {\n const { apiGatewayUrl, workspaceId } = useSemanticFed();\n return useQuery({\n queryKey: ['semanticfed', 'lineage', workspaceId ?? 'no-workspace', 'workspace'] as const,\n enabled: Boolean(workspaceId),\n queryFn: async () => {\n const data = await semRequest<{ semLineage: SemLineageGraph }>(\n LINEAGE_QUERY,\n {},\n apiGatewayUrl\n );\n return data.semLineage;\n },\n });\n}\n\n/** The upstream / downstream lineage of one record; idle until a root is chosen. */\nexport function useSemRecordLineage(\n root: SemLineageRoot | null,\n direction: SemLineageDirection,\n depth: number | null\n) {\n const { apiGatewayUrl, workspaceId } = useSemanticFed();\n return useQuery({\n queryKey: [\n 'semanticfed',\n 'lineage',\n workspaceId ?? 'no-workspace',\n 'record',\n root?.kind ?? null,\n root?.id ?? null,\n direction,\n depth,\n ] as const,\n enabled: Boolean(workspaceId && root),\n queryFn: async () => {\n const data = await semRequest<{ semLineage: SemLineageGraph }>(\n LINEAGE_QUERY,\n { rootKind: root?.kind, rootId: root?.id, direction, depth },\n apiGatewayUrl\n );\n return data.semLineage;\n },\n });\n}\n\n/** The text to show for a failed lineage request, preferring the service's own explanation. */\nexport function lineageErrorMessage(error: unknown): string {\n if (error instanceof SemRequestError && error.detail && error.code !== 'INTERNAL_SERVER_ERROR') {\n return error.detail;\n }\n return error instanceof Error ? error.message : String(error);\n}\n"],"mappings":";;;;AA4EA,IAAM,IAA4C;CAChD;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAGD,SAAgB,EAAe,GAA6C;AAE1E,QADI,CAAC,EAAK,SAAS,CAAC,EAAW,SAAS,EAAK,KAAK,GAAS,OACpD;EAAE,MAAM,EAAK;EAA4B,IAAI,EAAK;EAAO;;AAGlE,IAAM,IAAgB;AAmCtB,SAAgB,IAAyB;CACvC,IAAM,EAAE,kBAAe,mBAAgB,GAAgB;AACvD,QAAO,EAAS;EACd,UAAU;GAAC;GAAe;GAAW,KAAe;GAAgB;GAAY;EAChF,SAAS,EAAQ;EACjB,SAAS,aACM,MAAM,EACjB,GACA,EAAE,EACF,EACD,EACW;EAEf,CAAC;;AAIJ,SAAgB,EACd,GACA,GACA,GACA;CACA,IAAM,EAAE,kBAAe,mBAAgB,GAAgB;AACvD,QAAO,EAAS;EACd,UAAU;GACR;GACA;GACA,KAAe;GACf;GACA,GAAM,QAAQ;GACd,GAAM,MAAM;GACZ;GACA;GACD;EACD,SAAS,GAAQ,KAAe;EAChC,SAAS,aACM,MAAM,EACjB,GACA;GAAE,UAAU,GAAM;GAAM,QAAQ,GAAM;GAAI;GAAW;GAAO,EAC5D,EACD,EACW;EAEf,CAAC;;AAIJ,SAAgB,EAAoB,GAAwB;AAI1D,QAHI,aAAiB,KAAmB,EAAM,UAAU,EAAM,SAAS,0BAC9D,EAAM,SAER,aAAiB,QAAQ,EAAM,UAAU,OAAO,EAAM"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { useSemanticFed as e } from "../providers/SemanticFedProvider.js";
|
|
2
|
+
import { semRequest as t } from "../api/semanticfedGraphql.js";
|
|
3
|
+
import { useMutation as n, useQuery as r } from "@tanstack/react-query";
|
|
4
|
+
//#region src/semanticfed/hooks/useNlQuery.ts
|
|
5
|
+
var i = "\n modelId\n modelName\n question\n status\n sql\n confidence\n steps {\n kind\n entity\n field\n aggregation\n governed\n operator\n value\n direction\n count\n relationship\n }\n unmatchedTerms\n clarificationReason\n clarification\n suggestions\n engine", a = "query SemNlSuggestions($input: SemNlQuestionInput!) {\n semTranslateQuestion(input: $input) {\n modelId\n suggestions\n }\n}", o = `mutation SemAskQuestion($input: SemNlQuestionInput!) {
|
|
6
|
+
semAskQuestion(input: $input) {
|
|
7
|
+
translation {${i}
|
|
8
|
+
}
|
|
9
|
+
result {
|
|
10
|
+
modelId
|
|
11
|
+
columns {
|
|
12
|
+
name
|
|
13
|
+
entity
|
|
14
|
+
field
|
|
15
|
+
aggregation
|
|
16
|
+
dataType
|
|
17
|
+
masked
|
|
18
|
+
mask
|
|
19
|
+
}
|
|
20
|
+
rows
|
|
21
|
+
rowCount
|
|
22
|
+
truncated
|
|
23
|
+
durationMs
|
|
24
|
+
sourcesTouched
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}`;
|
|
28
|
+
function s(n) {
|
|
29
|
+
let { apiGatewayUrl: i, workspaceId: o } = e();
|
|
30
|
+
return r({
|
|
31
|
+
queryKey: [
|
|
32
|
+
"semanticfed",
|
|
33
|
+
"nl",
|
|
34
|
+
"suggestions",
|
|
35
|
+
o ?? "no-workspace",
|
|
36
|
+
n
|
|
37
|
+
],
|
|
38
|
+
enabled: !!(o && n),
|
|
39
|
+
queryFn: async () => (await t(a, { input: {
|
|
40
|
+
question: "",
|
|
41
|
+
modelId: n
|
|
42
|
+
} }, i)).semTranslateQuestion.suggestions
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function c() {
|
|
46
|
+
let { apiGatewayUrl: r } = e();
|
|
47
|
+
return n({ mutationFn: async (e) => (await t(o, { input: e }, r)).semAskQuestion });
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
export { c as useSemAskQuestion, s as useSemNlSuggestions };
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=useNlQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNlQuery.js","names":[],"sources":["../../../src/semanticfed/hooks/useNlQuery.ts"],"sourcesContent":["/**\n * Natural-language question hooks (BOFF-4276), wired to the\n * `wspace-semanticfed-svc` NL module:\n *\n * - `semTranslateQuestion` translates a question into SQL over the model's\n * governed entities, dimensions and metrics without running it. Asked with\n * an empty question it returns only the example questions the model can\n * answer, which the console offers as starting points.\n * - `semAskQuestion` translates the question and runs the generated SQL\n * through the SQL endpoint with the caller's access policies applied. It is\n * metered as one query run.\n */\nimport { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { semRequest } from '../api/semanticfedGraphql';\nimport { useSemanticFed } from '../providers/SemanticFedProvider';\nimport type { SemSqlResult } from './useSqlConsole';\n\nexport type SemNlStatus = 'TRANSLATED' | 'NEEDS_CLARIFICATION';\n\nexport type SemNlClarificationReason =\n | 'EMPTY_QUESTION'\n | 'TOO_LONG'\n | 'NO_MATCH'\n | 'NO_JOIN_PATH'\n | 'UNSUPPORTED_AGGREGATION'\n | 'INVALID_FILTER'\n | 'LOW_CONFIDENCE'\n | 'INVALID_QUERY';\n\nexport type SemNlStepKind =\n | 'ENTITY'\n | 'JOIN'\n | 'COLUMN'\n | 'MEASURE'\n | 'GROUP_BY'\n | 'FILTER'\n | 'ORDER'\n | 'LIMIT';\n\nexport interface SemNlStep {\n kind: SemNlStepKind;\n entity: string | null;\n field: string | null;\n aggregation: string | null;\n governed: boolean;\n operator: string | null;\n value: unknown;\n direction: string | null;\n count: number | null;\n relationship: string | null;\n}\n\nexport interface SemNlTranslation {\n modelId: string;\n modelName: string;\n question: string;\n status: SemNlStatus;\n sql: string | null;\n confidence: number;\n steps: SemNlStep[];\n unmatchedTerms: string[];\n clarificationReason: SemNlClarificationReason | null;\n clarification: string | null;\n suggestions: string[];\n engine: string;\n}\n\nexport interface SemNlAnswer {\n translation: SemNlTranslation;\n result: SemSqlResult | null;\n}\n\nexport interface SemNlQuestionInput {\n question: string;\n modelId: string;\n maxRows?: number;\n}\n\nconst TRANSLATION_FIELDS = `\n modelId\n modelName\n question\n status\n sql\n confidence\n steps {\n kind\n entity\n field\n aggregation\n governed\n operator\n value\n direction\n count\n relationship\n }\n unmatchedTerms\n clarificationReason\n clarification\n suggestions\n engine`;\n\nconst SUGGESTIONS_QUERY = `query SemNlSuggestions($input: SemNlQuestionInput!) {\n semTranslateQuestion(input: $input) {\n modelId\n suggestions\n }\n}`;\n\nconst ASK_QUESTION_MUTATION = `mutation SemAskQuestion($input: SemNlQuestionInput!) {\n semAskQuestion(input: $input) {\n translation {${TRANSLATION_FIELDS}\n }\n result {\n modelId\n columns {\n name\n entity\n field\n aggregation\n dataType\n masked\n mask\n }\n rows\n rowCount\n truncated\n durationMs\n sourcesTouched\n }\n }\n}`;\n\n/** Example questions the model can answer (translation only: reads no data, not metered). */\nexport function useSemNlSuggestions(modelId: string | null) {\n const { apiGatewayUrl, workspaceId } = useSemanticFed();\n return useQuery({\n queryKey: ['semanticfed', 'nl', 'suggestions', workspaceId ?? 'no-workspace', modelId] as const,\n enabled: Boolean(workspaceId && modelId),\n queryFn: async () => {\n const data = await semRequest<{\n semTranslateQuestion: Pick<SemNlTranslation, 'modelId' | 'suggestions'>;\n }>(SUGGESTIONS_QUERY, { input: { question: '', modelId } }, apiGatewayUrl);\n return data.semTranslateQuestion.suggestions;\n },\n });\n}\n\n/** Translate a question and run it with the caller's access policies (one metered query run). */\nexport function useSemAskQuestion() {\n const { apiGatewayUrl } = useSemanticFed();\n return useMutation({\n mutationFn: async (input: SemNlQuestionInput) => {\n const data = await semRequest<{ semAskQuestion: SemNlAnswer }>(\n ASK_QUESTION_MUTATION,\n { input },\n apiGatewayUrl\n );\n return data.semAskQuestion;\n },\n });\n}\n"],"mappings":";;;;AA+EA,IAAM,IAAqB,6VAyBrB,IAAoB,wIAOpB,IAAwB;;mBAEX,EAAmB;;;;;;;;;;;;;;;;;;;;;AAuBtC,SAAgB,EAAoB,GAAwB;CAC1D,IAAM,EAAE,kBAAe,mBAAgB,GAAgB;AACvD,QAAO,EAAS;EACd,UAAU;GAAC;GAAe;GAAM;GAAe,KAAe;GAAgB;GAAQ;EACtF,SAAS,GAAQ,KAAe;EAChC,SAAS,aACM,MAAM,EAEhB,GAAmB,EAAE,OAAO;GAAE,UAAU;GAAI;GAAS,EAAE,EAAE,EAAc,EAC9D,qBAAqB;EAEpC,CAAC;;AAIJ,SAAgB,IAAoB;CAClC,IAAM,EAAE,qBAAkB,GAAgB;AAC1C,QAAO,EAAY,EACjB,YAAY,OAAO,OACJ,MAAM,EACjB,GACA,EAAE,UAAO,EACT,EACD,EACW,gBAEf,CAAC"}
|