react-semaphor 0.1.545 → 0.1.547
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/analytics-protocol/index.js +408 -442
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +100 -76
- package/dist/brand-studio/index.js +4 -4
- package/dist/briefings/index.js +6 -6
- package/dist/chunks/{add-to-dashboard-BuAqfA2Y.js → add-to-dashboard-BQRAAnc3.js} +55 -33
- package/dist/chunks/{analytics-base-schemas-BFAoRlkU.js → analytics-base-schemas-BKs3flFS.js} +2 -2
- package/dist/chunks/applied-constraints-DU-wndZ7.js +47 -0
- package/dist/chunks/{assistant-chat-D7sWTypJ.js → assistant-chat-CK84cPAB.js} +2826 -2595
- package/dist/chunks/{bookmark-state-CXw7lZ50.js → bookmark-state-Cu-a5ie_.js} +8 -15
- package/dist/chunks/comparison-window-caption-C2xF-eWw.js +1433 -0
- package/dist/chunks/{context-ClREvqCZ.js → context-BerEBuFR.js} +11 -6
- package/dist/chunks/custom-visual-inputs-ChL54gGm.js +295 -0
- package/dist/chunks/{dashboard-B1tMju0u.js → dashboard-DCk26-6i.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CePgIu0Z.js → dashboard-briefing-launcher-CQ1eYsGy.js} +1291 -1277
- package/dist/chunks/dashboard-controls-BMeZjF7r.js +2307 -0
- package/dist/chunks/{dashboard-json-CoYRPqxx.js → dashboard-json-BZqCoanC.js} +5 -5
- package/dist/chunks/{document-dashboard-inputs-BesAHZvB.js → document-dashboard-inputs-tYd7ao0o.js} +877 -979
- package/dist/chunks/{edit-dashboard-visual-JPtNfJRb.js → edit-dashboard-visual-Bv3MHM_G.js} +2157 -2243
- package/dist/chunks/filter-reach-copy-CGWsL_ez.js +3480 -0
- package/dist/chunks/{filter-value-text-ff7osJr7.js → filter-value-text-Ddf55Ku1.js} +9 -9
- package/dist/chunks/global-date-filter-utils-BhAu8zIM.js +12137 -0
- package/dist/chunks/index-CtoK1Lgu.js +586 -0
- package/dist/chunks/{index-DRWiuqyd.js → index-DmrLP5Ro.js} +105 -104
- package/dist/chunks/list-filter-DsaTbM3J.js +15 -0
- package/dist/chunks/matrix-analytical-definition-B9vW-osb.js +717 -0
- package/dist/chunks/{matrix-card-DjwWcCo8.js → matrix-card-LiMEipvq.js} +3 -3
- package/dist/chunks/{matrix-formatter-DnCyRXJE.js → matrix-formatter-DWEeC0_c.js} +44 -44
- package/dist/chunks/{matrix-member-presentation-CQGdVks6.js → matrix-member-presentation-DqzG-UhQ.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-8OIO4gob.js → matrix-operation-contract-D6vYkZK4.js} +72 -72
- package/dist/chunks/{metric-comparison-DEwi9uc2.js → metric-comparison-zpGw4lD6.js} +2 -2
- package/dist/chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js +119 -0
- package/dist/chunks/{pivot-header-presentation-DHcx1XGQ.js → pivot-header-presentation-CQnIDtUv.js} +1 -1
- package/dist/chunks/{pivot-result-identity-DJhXXcns.js → pivot-result-identity-C-Q1j1Wb.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-DM4CyGKs.js → pivot-result-lifecycle-pwq3b7LC.js} +571 -380
- package/dist/chunks/{raw-temporal-contract-C51YG48G.js → raw-temporal-contract-WuXA8jBP.js} +1 -1
- package/dist/chunks/{raw-temporal-presentation-C3mUgnEx.js → raw-temporal-presentation-DypB7sMX.js} +8 -8
- package/dist/chunks/{report-preferences-dialog-DUtuUL_5.js → report-preferences-dialog-DoVyriYC.js} +154 -155
- package/dist/chunks/{report-runtime-context-Dq8XyODK.js → report-runtime-context-hWiTCzFV.js} +2 -2
- package/dist/chunks/resolve-dashboard-input-context-D0JDUa4h.js +5576 -0
- package/dist/chunks/{saved-dashboard-context-LrF_kW0l.js → saved-dashboard-context-BfAH5j4L.js} +34 -34
- package/dist/chunks/{selection-reducer-Dj_8xD69.js → selection-reducer-CJzkTZio.js} +15 -15
- package/dist/chunks/{semaphor-ready-indicator-BxF96Yhv.js → semaphor-ready-indicator-CRm17oIP.js} +51771 -52574
- package/dist/chunks/{shelf-drop-preview-context-CNaM_Gmh.js → shelf-drop-preview-context-vy6P9THz.js} +7 -7
- package/dist/chunks/{source-entity-resolution-BYn9giz3.js → source-entity-resolution-BIGRvtbG.js} +13 -13
- package/dist/chunks/{switch-uDtPgQlQ.js → switch-CEBOR4n7.js} +3 -3
- package/dist/chunks/{table-export-sheet-YzMioA7Y.js → table-export-sheet-4X9mAG3V.js} +1 -1
- package/dist/chunks/table-settings-WysCBj62.js +614 -0
- package/dist/chunks/{temporal-bucket-D7NBrrtL.js → temporal-bucket-CQOSbv9-.js} +26 -26
- package/dist/chunks/{token-types-DBbZVQsm.js → token-types-BMqRmT-C.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-CjB7ig1o.js → use-create-flow-overlay-state-Csx_Xjsh.js} +101 -101
- package/dist/chunks/{validators-DMHTpf7a.js → validators-C-aOQlTB.js} +713 -658
- package/dist/chunks/{relative-date-label-Bk2j94pA.js → zoned-wall-clock-MulfA26h.js} +64 -21
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1895 -1163
- package/dist/data-app-sdk/index.js +6 -6
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +14 -14
- package/dist/format-utils/index.js +133 -133
- package/dist/index.js +192 -186
- package/dist/layouts/index.js +5 -242
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/shared/index.js +4 -5
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/surfboard/arrange-layout-button.d.ts +8 -0
- package/dist/types/components/surfboard/filter/types.d.ts +7 -0
- package/dist/types/components/surfboard/screen-size-preview-button.d.ts +10 -0
- package/dist/types/components/visual/matrix-table/matrix-card-view.d.ts +3 -0
- package/dist/types/index.js +6 -6
- package/dist/types/lib/charts/table-chart-types.d.ts +4 -0
- package/dist/types/lib/charts/types.d.ts +2 -2
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +346 -21
- package/dist/types/lib/dashboard-inputs/dashboard-filter-value-identity.d.ts +65 -0
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +6 -0
- package/dist/types/lib/dashboard-inputs/filter-settings.d.ts +2 -0
- package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +15 -0
- package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +3 -3
- package/dist/types/lib/hooks/use-dashboard-card.d.ts +2 -0
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-editor.d.ts +52 -0
- package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +9 -1
- package/dist/types/lib/matrix-table/matrix-runtime.d.ts +5 -1
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +149 -10
- package/dist/types/lib/stores/dashboard-store.d.ts +137 -6
- package/dist/types/lib/types/common-types.d.ts +8 -0
- package/dist/types/lib/types/explorer-types.d.ts +10 -0
- package/dist/types/lib/types/semantic-types.d.ts +84 -0
- package/dist/types/lib/utils/build-saved-editor-card.d.ts +20 -0
- package/dist/types/lib/utils/card-type-change.d.ts +16 -0
- package/dist/types/lib/utils/field-availability-context.d.ts +25 -0
- package/dist/types/lib/utils/field-placement.d.ts +96 -0
- package/dist/types/lib/utils/field-state-calculator.d.ts +161 -0
- package/dist/types/lib/utils/qualified-entity-name.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +57 -1
- package/dist/types/shared/analytics-protocol/field-provenance.d.ts +89 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/query-policies.d.ts +52 -0
- package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/time-window.d.ts +40 -1
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +4 -1
- package/dist/types/shared/assistant-protocol/answer-text.d.ts +20 -0
- package/dist/types/shared/assistant-protocol/context.d.ts +29 -29
- package/dist/types/shared/assistant-protocol/index.d.ts +1 -0
- package/dist/types/shared/assistant-protocol/limits.d.ts +6 -1
- package/dist/types/shared/assistant-protocol/parts.d.ts +43 -3
- package/dist/types/shared/assistant-protocol/request.d.ts +14 -2
- package/dist/types/shared/dashboard-authoring/calculated-field-identity.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +487 -0
- package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +34 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +7886 -0
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +45 -0
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +54 -0
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +96 -0
- package/dist/types/shared/dashboard-authoring/click-to-filter-settings.d.ts +3 -3
- package/dist/types/shared/dashboard-authoring/column-catalog.d.ts +32 -0
- package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -55
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +24 -14
- package/dist/types/shared/dashboard-authoring/dashboard-card-source-index.d.ts +9 -1
- package/dist/types/shared/dashboard-authoring/dashboard-filter-automatic-target.d.ts +4 -4
- package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-contract.d.ts +3 -1
- package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-types.d.ts +27 -1
- package/dist/types/shared/dashboard-authoring/dashboard-filter-value-compatibility.d.ts +12 -3
- package/dist/types/shared/dashboard-authoring/dashboard-input-scope.d.ts +26 -0
- package/dist/types/shared/dashboard-authoring/filter-applicability.d.ts +75 -0
- package/dist/types/shared/dashboard-authoring/filter-reach-copy.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/filter-reach-preview.d.ts +97 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +22 -2
- package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +10 -37
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +189 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +101 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +100 -0
- package/dist/types/shared/dashboard-authoring/semantic-auto-join-card.d.ts +22 -0
- package/dist/types/shared/dashboard-authoring/validators.d.ts +1 -2
- package/dist/types/shared/layouts/engine/grid.d.ts +25 -0
- package/dist/types/shared/layouts/engine/index.d.ts +4 -0
- package/dist/types/shared/layouts/engine/sheet-layout.d.ts +7 -0
- package/dist/types/shared/layouts/engine/types.d.ts +125 -0
- package/dist/types/shared/layouts/index.d.ts +1 -2
- package/package.json +2 -2
- package/dist/chunks/apply-dashboard-operations-CZEMsx8E.js +0 -2080
- package/dist/chunks/calendar-day-equality-dvoQp1xW.js +0 -410
- package/dist/chunks/comparison-window-caption-D4E6IHPD.js +0 -1624
- package/dist/chunks/custom-visual-inputs-DLCD9Y5V.js +0 -329
- package/dist/chunks/dashboard-controls-Cq05n3e0.js +0 -2315
- package/dist/chunks/dashboard-filter-value-compatibility-CwQ_iSNb.js +0 -108
- package/dist/chunks/matrix-analytical-definition-C7Gb0e12.js +0 -117
- package/dist/chunks/normalize-dashboard-for-dirty-check-Bk3VYv_q.js +0 -67
- package/dist/chunks/numeric-presentation-7X_IrD58.js +0 -5226
- package/dist/chunks/resolve-dashboard-input-context-DJ2tICwz.js +0 -9415
- package/dist/chunks/stable-serialize-CfqXeiBP.js +0 -6
- package/dist/chunks/table-settings-CLZocegs.js +0 -501
- package/dist/chunks/use-debounced-dirty-check-BwAbnX_5.js +0 -59
- package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +0 -46
- package/dist/types/shared/dashboard-authoring/change-compiler.d.ts +0 -7
- package/dist/types/shared/dashboard-authoring/layout-compiler.d.ts +0 -2
- package/dist/types/shared/layouts/create-frame-layouts.d.ts +0 -27
- package/dist/types/shared/layouts/frame-layouts.d.ts +0 -23
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as t, b as r, c as o, p as d, d as n, e as p } from "../chunks/saved-dashboard-context-
|
|
1
|
+
import { A as e, a as t, b as r, c as o, p as d, d as n, e as p } from "../chunks/saved-dashboard-context-BfAH5j4L.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AssistantContextSourceError,
|
|
4
4
|
t as assistantCardReplayFields,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { z as e } from "zod";
|
|
2
|
-
import { s as
|
|
3
|
-
import { a as
|
|
4
|
-
import { e as
|
|
5
|
-
import { t as
|
|
6
|
-
import { A as
|
|
7
|
-
import { p as
|
|
8
|
-
import { A as
|
|
9
|
-
const
|
|
2
|
+
import { s as x } from "../chunks/analytics-base-schemas-BKs3flFS.js";
|
|
3
|
+
import { a as g, A as s, b as y, c } from "../chunks/context-BerEBuFR.js";
|
|
4
|
+
import { e as E, j as $, m as F, d as L, l as O, g as U, k as M, h as j, i as w, f as P, r as Y } from "../chunks/context-BerEBuFR.js";
|
|
5
|
+
import { t as T } from "../chunks/add-to-dashboard-BQRAAnc3.js";
|
|
6
|
+
import { A as V, g as K, f as X, q as z, s as G, h as H, e as Q, d as W, a as Z, c as ee, b as se, v as te, w as ae } from "../chunks/add-to-dashboard-BQRAAnc3.js";
|
|
7
|
+
import { p as re, a as ne, r as de } from "../chunks/availability-Bp5Gfu1I.js";
|
|
8
|
+
import { A as ce, a as le, D as ue, i as be } from "../chunks/conversation-sQiWYUOb.js";
|
|
9
|
+
const C = [
|
|
10
10
|
"matrix",
|
|
11
11
|
"no_query",
|
|
12
12
|
"document_section",
|
|
13
13
|
"blocked",
|
|
14
14
|
"pending"
|
|
15
|
-
],
|
|
15
|
+
], _ = e.object({
|
|
16
16
|
turnId: e.string().min(1).max(s.idChars),
|
|
17
17
|
conversationId: e.string().min(1).max(s.idChars).optional(),
|
|
18
18
|
message: e.string().min(1).max(s.messageChars),
|
|
19
|
-
context:
|
|
20
|
-
addedSources: e.array(
|
|
19
|
+
context: g,
|
|
20
|
+
addedSources: e.array(x).max(s.addedSources),
|
|
21
21
|
selectedCardRequest: e.object({
|
|
22
22
|
cardId: e.string().min(1).max(s.idChars),
|
|
23
23
|
connectionId: e.string().min(1).max(s.idChars),
|
|
@@ -25,89 +25,113 @@ const p = [
|
|
|
25
25
|
}).strict().optional(),
|
|
26
26
|
selectedCardUnavailable: e.object({
|
|
27
27
|
cardId: e.string().min(1).max(s.idChars),
|
|
28
|
-
reason: e.enum(
|
|
28
|
+
reason: e.enum(C),
|
|
29
29
|
message: e.string().max(s.textChars).optional()
|
|
30
30
|
}).strict().optional(),
|
|
31
|
-
taggedFields: e.array(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
taggedFields: e.array(y).max(s.taggedFields).optional(),
|
|
32
|
+
// The document's own shape is the dashboard's; propose reads it through
|
|
33
|
+
// the resolver and the save's validation. Here only what routes it.
|
|
34
|
+
openDashboard: e.object({ id: e.string().min(1).max(s.idChars), sheets: e.array(e.unknown()) }).passthrough().optional()
|
|
35
|
+
}).strict(), p = s.requestBytes + s.openDashboardBytes;
|
|
36
|
+
function B(r) {
|
|
37
|
+
var A;
|
|
38
|
+
const n = new TextEncoder().encode(r).length;
|
|
39
|
+
if (n > p)
|
|
40
|
+
return d(`body: ${n} bytes exceeds ${p}`);
|
|
41
|
+
let t;
|
|
39
42
|
try {
|
|
40
|
-
|
|
43
|
+
t = JSON.parse(r);
|
|
41
44
|
} catch {
|
|
42
45
|
return { ok: !1, code: "context_invalid", issues: ["body: not JSON"] };
|
|
43
46
|
}
|
|
44
|
-
const
|
|
45
|
-
if (
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
48
|
-
return
|
|
49
|
-
`
|
|
47
|
+
const l = t && typeof t == "object" ? t.openDashboard : void 0;
|
|
48
|
+
if (l !== void 0) {
|
|
49
|
+
const a = c(l);
|
|
50
|
+
if (a > s.openDashboardBytes)
|
|
51
|
+
return d(
|
|
52
|
+
`openDashboard: ${a} bytes exceeds ${s.openDashboardBytes}`
|
|
53
|
+
);
|
|
54
|
+
const f = c({ ...t, openDashboard: void 0 });
|
|
55
|
+
if (f > s.requestBytes)
|
|
56
|
+
return d(`body without openDashboard: ${f} bytes exceeds ${s.requestBytes}`);
|
|
57
|
+
} else if (n > s.requestBytes)
|
|
58
|
+
return d(`body: ${n} bytes exceeds ${s.requestBytes}`);
|
|
59
|
+
const u = t && typeof t == "object" ? t.context : void 0;
|
|
60
|
+
if (u !== void 0) {
|
|
61
|
+
const a = c(u);
|
|
62
|
+
if (a > s.contextBytes)
|
|
63
|
+
return d(
|
|
64
|
+
`context: ${a} bytes exceeds ${s.contextBytes}`
|
|
50
65
|
);
|
|
51
66
|
}
|
|
52
|
-
const
|
|
53
|
-
if (!
|
|
67
|
+
const o = _.safeParse(t);
|
|
68
|
+
if (!o.success)
|
|
54
69
|
return {
|
|
55
70
|
ok: !1,
|
|
56
71
|
code: "context_invalid",
|
|
57
|
-
issues:
|
|
58
|
-
(
|
|
72
|
+
issues: o.error.issues.map(
|
|
73
|
+
(a) => `${a.path.join(".") || "(body)"}: ${a.message}`
|
|
59
74
|
)
|
|
60
75
|
};
|
|
61
|
-
if (!
|
|
76
|
+
if (!o.data.message.trim())
|
|
62
77
|
return { ok: !1, code: "context_invalid", issues: ["message: must not be blank"] };
|
|
63
|
-
const { selectedCardRequest:
|
|
64
|
-
...
|
|
65
|
-
...
|
|
66
|
-
],
|
|
67
|
-
...
|
|
68
|
-
...
|
|
69
|
-
...
|
|
70
|
-
...
|
|
78
|
+
const { selectedCardRequest: b, selectedCardUnavailable: S } = o.data, m = (A = o.data.context.selectedCard) == null ? void 0 : A.id, i = [
|
|
79
|
+
...b ? [["selectedCardRequest", b.cardId]] : [],
|
|
80
|
+
...S ? [["selectedCardUnavailable", S.cardId]] : []
|
|
81
|
+
], h = [
|
|
82
|
+
...i.length > 1 ? ["selectedCardRequest, selectedCardUnavailable: send one of them, not both"] : [],
|
|
83
|
+
...i.filter(([, a]) => a !== m).map(([a]) => `${a}: not the card the context asks about`),
|
|
84
|
+
...m && i.length === 0 ? ["selectedCardRequest: the asked-about card needs its request or selectedCardUnavailable"] : [],
|
|
85
|
+
...T(o.data.context, o.data.taggedFields ?? []),
|
|
86
|
+
...I(o.data.context, o.data.openDashboard)
|
|
71
87
|
];
|
|
72
|
-
return
|
|
88
|
+
return h.length ? { ok: !1, code: "context_invalid", issues: h } : { ok: !0, value: o.data };
|
|
89
|
+
}
|
|
90
|
+
function I(r, n) {
|
|
91
|
+
var t;
|
|
92
|
+
return n ? r.surface !== "dashboard" ? ["openDashboard: only on the dashboard surface"] : n.id === ((t = r.dashboard) == null ? void 0 : t.id) ? [] : ["openDashboard: not the dashboard the context describes"] : [];
|
|
73
93
|
}
|
|
74
|
-
function
|
|
94
|
+
function d(r) {
|
|
75
95
|
return { ok: !1, code: "context_too_large", issues: [r] };
|
|
76
96
|
}
|
|
77
97
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
98
|
+
V as ASSISTANT_CARD_TYPES,
|
|
99
|
+
C as ASSISTANT_CARD_UNAVAILABLE_REASONS,
|
|
100
|
+
E as ASSISTANT_CONTEXT_VERSION,
|
|
101
|
+
ce as ASSISTANT_LAYOUTS,
|
|
82
102
|
s as ASSISTANT_LIMITS,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
103
|
+
le as ASSISTANT_NAME_MAX_CHARS,
|
|
104
|
+
$ as ASSISTANT_PARTS_VERSION,
|
|
105
|
+
F as ASSISTANT_REFUSAL_MESSAGES,
|
|
106
|
+
p as ASSISTANT_TURN_BODY_BYTES,
|
|
107
|
+
L as AssistantContextTooLargeError,
|
|
108
|
+
ue as DEFAULT_ASSISTANT_NAME,
|
|
109
|
+
K as addableSourceKey,
|
|
110
|
+
X as answerTextOf,
|
|
111
|
+
y as assistantCardFieldSchema,
|
|
112
|
+
g as assistantContextSchema,
|
|
113
|
+
c as assistantJsonBytes,
|
|
114
|
+
O as assistantRefusalMessage,
|
|
115
|
+
U as compareAssistantContexts,
|
|
116
|
+
M as dailyLimitMessage,
|
|
117
|
+
j as describeCardField,
|
|
118
|
+
w as describeSource,
|
|
119
|
+
P as fitAssistantText,
|
|
120
|
+
be as isAssistantLayout,
|
|
121
|
+
re as parseAssistantTokenConfig,
|
|
122
|
+
B as parseAssistantTurnRequest,
|
|
123
|
+
z as questionForModel,
|
|
124
|
+
ne as readAssistantTokenConfig,
|
|
125
|
+
Y as renderContextForModel,
|
|
126
|
+
de as resolveAssistantAvailability,
|
|
127
|
+
G as sameCardField,
|
|
128
|
+
H as sourceRefLabel,
|
|
129
|
+
Q as storedPartKind,
|
|
130
|
+
W as storedTurnEnding,
|
|
131
|
+
Z as taggableFields,
|
|
132
|
+
T as taggedFieldIssues,
|
|
133
|
+
ee as toTranscriptChunks,
|
|
134
|
+
se as toTranscriptPart,
|
|
135
|
+
te as visualInputOf,
|
|
136
|
+
ae as workingNotesOf
|
|
113
137
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as d, jsx as r, Fragment as le } from "react/jsx-runtime";
|
|
2
2
|
import m from "react";
|
|
3
|
-
import { P as ge, a as be, B as C, b as fe, C as De, R as me, L as se, S as ue, c as je, T as Ie, d as Je, e as V, f as Le, g as M, h as $e, i as _e, j as Ue, k as Ve, l as E, m as K, n as Q, o as ee, I as he, p as re, q as oe, r as ke, s as xe, t as ye, u as ve, v as Ce, w as Me } from "../chunks/switch-
|
|
3
|
+
import { P as ge, a as be, B as C, b as fe, C as De, R as me, L as se, S as ue, c as je, T as Ie, d as Je, e as V, f as Le, g as M, h as $e, i as _e, j as Ue, k as Ve, l as E, m as K, n as Q, o as ee, I as he, p as re, q as oe, r as ke, s as xe, t as ye, u as ve, v as Ce, w as Me } from "../chunks/switch-CEBOR4n7.js";
|
|
4
4
|
import { A as Ge, p as We } from "../chunks/color-CJvdlFM_.js";
|
|
5
5
|
import "../chunks/index-CuHybtft.js";
|
|
6
|
-
import "../chunks/validators-
|
|
7
|
-
import "../chunks/matrix-operation-contract-
|
|
8
|
-
import "../chunks/analytics-base-schemas-
|
|
6
|
+
import "../chunks/validators-C-aOQlTB.js";
|
|
7
|
+
import "../chunks/matrix-operation-contract-D6vYkZK4.js";
|
|
8
|
+
import "../chunks/analytics-base-schemas-BKs3flFS.js";
|
|
9
9
|
import "zod";
|
|
10
10
|
import "../value-format-preferences/index.js";
|
|
11
11
|
import { c as ae } from "../chunks/_commonjsHelpers-DimLPMtv.js";
|
package/dist/briefings/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../chunks/temporal-bucket-
|
|
2
|
-
import "../chunks/validators-
|
|
1
|
+
import "../chunks/temporal-bucket-CQOSbv9-.js";
|
|
2
|
+
import "../chunks/validators-C-aOQlTB.js";
|
|
3
3
|
import "../chunks/export-file-format-C-tJsxsf.js";
|
|
4
4
|
import "zod";
|
|
5
|
-
import "../chunks/pivot-result-lifecycle-
|
|
6
|
-
import "../chunks/matrix-operation-contract-
|
|
7
|
-
import "../chunks/analytics-base-schemas-
|
|
5
|
+
import "../chunks/pivot-result-lifecycle-pwq3b7LC.js";
|
|
6
|
+
import "../chunks/matrix-operation-contract-D6vYkZK4.js";
|
|
7
|
+
import "../chunks/analytics-base-schemas-BKs3flFS.js";
|
|
8
8
|
import "../value-format-preferences/index.js";
|
|
9
|
-
import { y as l, H as B, a0 as m, C as c, B as d, A as T, I as E, z as I, D as p, M as A, X as h, i as u, Y as C, Z as b, n as F, l as D, m as S, N as _, k as N, P as R, f as y, e as M, Q as O, t as x, q as G, c as v, d as L, G as U, F as z, h as H, b as J, a as V, a2 as P, g as q, _ as X, T as K, a1 as Q, U as j, E as k, $ as W, r as Y, j as Z, V as $, W as w, o as ii, J as ei, O as ai, L as ri, p as ti, s as si, K as ni, R as oi, S as fi } from "../chunks/index-
|
|
9
|
+
import { y as l, H as B, a0 as m, C as c, B as d, A as T, I as E, z as I, D as p, M as A, X as h, i as u, Y as C, Z as b, n as F, l as D, m as S, N as _, k as N, P as R, f as y, e as M, Q as O, t as x, q as G, c as v, d as L, G as U, F as z, h as H, b as J, a as V, a2 as P, g as q, _ as X, T as K, a1 as Q, U as j, E as k, $ as W, r as Y, j as Z, V as $, W as w, o as ii, J as ei, O as ai, L as ri, p as ti, s as si, K as ni, R as oi, S as fi } from "../chunks/index-DmrLP5Ro.js";
|
|
10
10
|
export {
|
|
11
11
|
l as BRIEFING_ARTIFACT_FORMATS,
|
|
12
12
|
B as BRIEFING_ATTACHMENT_FORMATS,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
function
|
|
1
|
+
import { A as s, h as u, m as d } from "./context-BerEBuFR.js";
|
|
2
|
+
function o(e, t) {
|
|
3
3
|
return e.role === t.role && e.name === t.name && e.aggregate === t.aggregate && e.granularity === t.granularity;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
var n,
|
|
5
|
+
function l(e) {
|
|
6
|
+
var n, a;
|
|
7
7
|
const t = (n = e.selectedCard) == null ? void 0 : n.description;
|
|
8
|
-
return (t == null ? void 0 : t.status) !== "described" || t.sql || ((
|
|
8
|
+
return (t == null ? void 0 : t.status) !== "described" || t.sql || ((a = e.editing) == null ? void 0 : a.mode) === "sql" ? [] : t.fields;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function S(e, t) {
|
|
11
11
|
if (t.length === 0) return [];
|
|
12
|
-
if (t.length >
|
|
13
|
-
return [`taggedFields: at most ${
|
|
14
|
-
const n =
|
|
15
|
-
return t.flatMap((
|
|
12
|
+
if (t.length > s.taggedFields)
|
|
13
|
+
return [`taggedFields: at most ${s.taggedFields}`];
|
|
14
|
+
const n = l(e);
|
|
15
|
+
return t.flatMap((a, i) => n.some((r) => o(r, a)) ? t.slice(0, i).some((r) => o(r, a)) ? [`taggedFields.${i}: tagged twice`] : [] : [`taggedFields.${i}: not a field of the card the context asks about`]);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
return t != null && t.length ? `Fields of the asked-about card the user tagged in this question: ${t.map(
|
|
17
|
+
function k(e, t) {
|
|
18
|
+
return t != null && t.length ? `Fields of the asked-about card the user tagged in this question: ${t.map(u).join("; ")}.
|
|
19
19
|
|
|
20
20
|
${e}` : e;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function f(e) {
|
|
23
23
|
if (e.kind === "text") return { type: "text", text: e.text };
|
|
24
24
|
const { kind: t, ...n } = e;
|
|
25
25
|
return {
|
|
@@ -28,27 +28,46 @@ function c(e) {
|
|
|
28
28
|
data: n
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
return e.kind !== "text" ? [
|
|
31
|
+
function b(e, t) {
|
|
32
|
+
return e.kind !== "text" ? [f(e)] : [
|
|
33
33
|
{ type: "text-start", id: t },
|
|
34
34
|
{ type: "text-delta", id: t, delta: e.text },
|
|
35
35
|
{ type: "text-end", id: t }
|
|
36
36
|
];
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function h(e) {
|
|
39
39
|
if (e === "failed" || e === "interrupted")
|
|
40
|
-
return { kind: "refusal", code: "model_unavailable", message:
|
|
40
|
+
return { kind: "refusal", code: "model_unavailable", message: d.model_unavailable };
|
|
41
41
|
if (e === "running")
|
|
42
|
-
return { kind: "refusal", code: "turn_in_progress", message:
|
|
42
|
+
return { kind: "refusal", code: "turn_in_progress", message: d.turn_in_progress };
|
|
43
|
+
}
|
|
44
|
+
function c(e, t) {
|
|
45
|
+
let n = -1;
|
|
46
|
+
e.forEach((i, r) => {
|
|
47
|
+
t(i) === "text" && (n = r);
|
|
48
|
+
});
|
|
49
|
+
let a = -1;
|
|
50
|
+
return e.forEach((i, r) => {
|
|
51
|
+
r < n && t(i) === "step" && (a = r);
|
|
52
|
+
}), new Set(e.filter((i, r) => r < a && t(i) === "text"));
|
|
53
|
+
}
|
|
54
|
+
function g(e) {
|
|
55
|
+
return e.kind === "text" ? "text" : e.kind === "stage" && !e.change ? "step" : "other";
|
|
43
56
|
}
|
|
44
|
-
function
|
|
57
|
+
function x(e) {
|
|
58
|
+
const t = c(e, g);
|
|
59
|
+
return e.flatMap((n) => n.kind === "text" && !t.has(n) ? [n.text] : []).filter((n) => n.trim().length > 0).join(`
|
|
60
|
+
|
|
61
|
+
`);
|
|
62
|
+
}
|
|
63
|
+
function T(e) {
|
|
45
64
|
if (e.kind === "semantic") return JSON.stringify(["semantic", e.domainId, e.datasetName]);
|
|
46
65
|
if (e.kind === "sql") return JSON.stringify(["sql", e.connectionId]);
|
|
47
66
|
}
|
|
48
|
-
function
|
|
67
|
+
function F(e) {
|
|
49
68
|
return e.label ?? (e.kind === "semantic" ? e.datasetName : e.kind === "physical" ? e.tableName : "SQL");
|
|
50
69
|
}
|
|
51
|
-
function
|
|
70
|
+
function y(e) {
|
|
52
71
|
return {
|
|
53
72
|
columns: e.columns,
|
|
54
73
|
records: e.records,
|
|
@@ -58,7 +77,7 @@ function F(e) {
|
|
|
58
77
|
truncated: e.status.truncated
|
|
59
78
|
};
|
|
60
79
|
}
|
|
61
|
-
const
|
|
80
|
+
const A = {
|
|
62
81
|
number: "kpi",
|
|
63
82
|
line: "line",
|
|
64
83
|
bar: "bar",
|
|
@@ -66,15 +85,18 @@ const y = {
|
|
|
66
85
|
table: "table"
|
|
67
86
|
};
|
|
68
87
|
export {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
88
|
+
A,
|
|
89
|
+
l as a,
|
|
90
|
+
f as b,
|
|
91
|
+
b as c,
|
|
92
|
+
h as d,
|
|
93
|
+
g as e,
|
|
94
|
+
x as f,
|
|
95
|
+
T as g,
|
|
96
|
+
F as h,
|
|
97
|
+
k as q,
|
|
98
|
+
o as s,
|
|
99
|
+
S as t,
|
|
100
|
+
y as v,
|
|
101
|
+
c as w
|
|
80
102
|
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const d = /* @__PURE__ */ new Set([
|
|
2
|
+
"dataset_not_reachable",
|
|
3
|
+
"field_not_resolvable",
|
|
4
|
+
"missing_metadata",
|
|
5
|
+
"unsupported_calculated_filter",
|
|
6
|
+
"relationship_unsupported",
|
|
7
|
+
"relationship_missing",
|
|
8
|
+
"relationship_ambiguous"
|
|
9
|
+
]);
|
|
10
|
+
function n(t) {
|
|
11
|
+
return !!t && typeof t == "object" && !Array.isArray(t);
|
|
12
|
+
}
|
|
13
|
+
function a(t) {
|
|
14
|
+
if (!(!n(t) || typeof t.name != "string"))
|
|
15
|
+
return { name: t.name, ...typeof t.label == "string" ? { label: t.label } : {} };
|
|
16
|
+
}
|
|
17
|
+
function f(t) {
|
|
18
|
+
if (!n(t)) return;
|
|
19
|
+
const r = t.relationshipIds;
|
|
20
|
+
if (!Array.isArray(r) || !r.length || !r.every((s) => typeof s == "string" && s) || t.direction !== "to_one" && t.direction !== "to_many") return;
|
|
21
|
+
const e = Array.isArray(t.datasets) ? t.datasets.map(a) : [];
|
|
22
|
+
if (e.some((s) => !s)) return;
|
|
23
|
+
const i = a(t.matchingDataset), o = a(t.base);
|
|
24
|
+
return {
|
|
25
|
+
relationshipIds: [...r],
|
|
26
|
+
...o ? { base: o } : {},
|
|
27
|
+
datasets: e,
|
|
28
|
+
direction: t.direction,
|
|
29
|
+
...i ? { matchingDataset: i } : {}
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function c(t) {
|
|
33
|
+
if (!n(t) || !Array.isArray(t.filterReach)) return [];
|
|
34
|
+
const r = [];
|
|
35
|
+
for (const e of t.filterReach)
|
|
36
|
+
if (!(!n(e) || typeof e.filterId != "string" || !e.filterId))
|
|
37
|
+
if (e.status === "applied") {
|
|
38
|
+
const i = e.through === void 0 ? void 0 : f(e.through);
|
|
39
|
+
if (e.through !== void 0 && !i) continue;
|
|
40
|
+
r.push({ filterId: e.filterId, status: "applied", ...i ? { through: i } : {} });
|
|
41
|
+
} else e.status === "skipped" && typeof e.reason == "string" && d.has(e.reason) ? r.push({ filterId: e.filterId, status: "skipped", reason: e.reason }) : e.status === "blocked" && typeof e.message == "string" && r.push({ filterId: e.filterId, status: "blocked", message: e.message });
|
|
42
|
+
return r;
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
c as a,
|
|
46
|
+
f as r
|
|
47
|
+
};
|