react-semaphor 0.1.539 → 0.1.540

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 (33) hide show
  1. package/dist/assistant-context/index.js +1 -1
  2. package/dist/assistant-protocol/index.js +63 -54
  3. package/dist/brand-studio/index.js +1 -1
  4. package/dist/chunks/add-to-dashboard-BuAqfA2Y.js +80 -0
  5. package/dist/chunks/{assistant-chat-DgiSuFT4.js → assistant-chat-ya7xopaC.js} +2448 -2228
  6. package/dist/chunks/{context-HD9usB1P.js → context-ClREvqCZ.js} +101 -102
  7. package/dist/chunks/{dashboard-y5BwcvzT.js → dashboard-B6Bithfl.js} +1 -1
  8. package/dist/chunks/{dashboard-briefing-launcher-Bl3gCeBR.js → dashboard-briefing-launcher-DJI-zfEq.js} +116 -116
  9. package/dist/chunks/{dashboard-controls-0EX0HiJt.js → dashboard-controls-Dh7HqoKy.js} +5 -5
  10. package/dist/chunks/{dashboard-json-6X_2BDiL.js → dashboard-json-BnmlB71h.js} +2 -2
  11. package/dist/chunks/{edit-dashboard-visual-Bzchfgga.js → edit-dashboard-visual-CydOkSko.js} +4 -4
  12. package/dist/chunks/report-preferences-dialog-neMDolLg.js +1950 -0
  13. package/dist/chunks/{saved-dashboard-context-Dqve2jlB.js → saved-dashboard-context-CCrLpfSQ.js} +1 -1
  14. package/dist/chunks/{semaphor-ready-indicator-ldcwmLoY.js → semaphor-ready-indicator--4DWtVBu.js} +20103 -20048
  15. package/dist/chunks/{shelf-drop-preview-context-BWxunXTq.js → shelf-drop-preview-context-CpdB5ois.js} +2 -2
  16. package/dist/chunks/{switch-CvItuC1Q.js → switch-DWEWiv1J.js} +53 -52
  17. package/dist/chunks/{use-create-flow-overlay-state-RHgzVfcz.js → use-create-flow-overlay-state-8g6Zhphh.js} +2 -2
  18. package/dist/dashboard/index.js +1 -1
  19. package/dist/index.js +9 -9
  20. package/dist/style.css +1 -1
  21. package/dist/surfboard/index.js +1 -1
  22. package/dist/types/components/assistant/assistant-entry-points.d.ts +3 -0
  23. package/dist/types/components/assistant/assistant-store.d.ts +49 -1
  24. package/dist/types/components/assistant/use-assistant.d.ts +10 -1
  25. package/dist/types/shared/assistant-protocol/context.d.ts +88 -66
  26. package/dist/types/shared/assistant-protocol/conversation.d.ts +3 -0
  27. package/dist/types/shared/assistant-protocol/index.d.ts +1 -0
  28. package/dist/types/shared/assistant-protocol/limits.d.ts +2 -0
  29. package/dist/types/shared/assistant-protocol/request.d.ts +6 -1
  30. package/dist/types/shared/assistant-protocol/tagged-fields.d.ts +29 -0
  31. package/package.json +2 -1
  32. package/dist/chunks/add-to-dashboard-CxtTfISD.js +0 -56
  33. package/dist/chunks/report-preferences-dialog-CWhSbc5_.js +0 -1808
@@ -1,56 +0,0 @@
1
- import { k as t } from "./context-HD9usB1P.js";
2
- function a(e) {
3
- if (e.kind === "text") return { type: "text", text: e.text };
4
- const { kind: n, ...i } = e;
5
- return {
6
- type: `data-${n}`,
7
- ...e.kind === "stage" ? { id: e.stageId } : {},
8
- data: i
9
- };
10
- }
11
- function s(e, n) {
12
- return e.kind !== "text" ? [a(e)] : [
13
- { type: "text-start", id: n },
14
- { type: "text-delta", id: n, delta: e.text },
15
- { type: "text-end", id: n }
16
- ];
17
- }
18
- function d(e) {
19
- if (e === "failed" || e === "interrupted")
20
- return { kind: "refusal", code: "model_unavailable", message: t.model_unavailable };
21
- if (e === "running")
22
- return { kind: "refusal", code: "turn_in_progress", message: t.turn_in_progress };
23
- }
24
- function u(e) {
25
- if (e.kind === "semantic") return JSON.stringify(["semantic", e.domainId, e.datasetName]);
26
- if (e.kind === "sql") return JSON.stringify(["sql", e.connectionId]);
27
- }
28
- function l(e) {
29
- return e.label ?? (e.kind === "semantic" ? e.datasetName : e.kind === "physical" ? e.tableName : "SQL");
30
- }
31
- function o(e) {
32
- return {
33
- columns: e.columns,
34
- records: e.records,
35
- rowCount: e.rowCount,
36
- governed: e.status.governed,
37
- complete: e.status.complete,
38
- truncated: e.status.truncated
39
- };
40
- }
41
- const c = {
42
- number: "kpi",
43
- line: "line",
44
- bar: "bar",
45
- stackedBar: "stackedBar",
46
- table: "table"
47
- };
48
- export {
49
- c as A,
50
- s as a,
51
- u as b,
52
- l as c,
53
- d as s,
54
- a as t,
55
- o as v
56
- };