react-semaphor 0.1.551 → 0.1.553
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 +8 -8
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +64 -57
- package/dist/brand-studio/index.js +3 -3
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{assistant-chat-B8kslmny.js → assistant-chat-DaIdRbbd.js} +3152 -2817
- package/dist/chunks/{bookmark-state-Cu-a5ie_.js → bookmark-state-aGO7_ryE.js} +3 -3
- package/dist/chunks/{comparison-window-caption-C2xF-eWw.js → comparison-window-caption-BugAu7zS.js} +7 -7
- package/dist/chunks/{custom-visual-inputs-CwAcigQS.js → custom-visual-inputs-D7ez5sab.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DnnvLeAs.js → dashboard-briefing-launcher-DBJ0xrfF.js} +62 -62
- package/dist/chunks/{dashboard-controls-BYDt0QZL.js → dashboard-controls-CDX74NTl.js} +46 -46
- package/dist/chunks/{dashboard-json-BligXqcU.js → dashboard-json-Cf5dpYTr.js} +4 -4
- package/dist/chunks/{dashboard-BcAQSgm-.js → dashboard-z3GYw7xR.js} +1 -1
- package/dist/chunks/{document-dashboard-inputs-DPQ_wUGD.js → document-dashboard-inputs-LMMWPOwU.js} +119 -119
- package/dist/chunks/{edit-dashboard-visual-8-Fd4EcE.js → edit-dashboard-visual-hCGiyxgm.js} +18 -18
- package/dist/chunks/{filter-reach-copy-8vnDYToV.js → filter-reach-copy-BG5qVZKS.js} +48 -48
- package/dist/chunks/{filter-value-text-Ddf55Ku1.js → filter-value-text-DwP5dN9m.js} +2 -2
- package/dist/chunks/{global-date-filter-utils-CnumW4j2.js → global-date-filter-utils-Ce6Ydv2W.js} +5934 -5723
- package/dist/chunks/{index-DzsdV1o4.js → index-C_UIqop8.js} +9 -9
- package/dist/chunks/{matrix-analytical-definition-B9vW-osb.js → matrix-analytical-definition-cvzKdxPE.js} +2 -2
- package/dist/chunks/{matrix-card-LiMEipvq.js → matrix-card-VFE-yDlr.js} +2 -2
- package/dist/chunks/{matrix-formatter-DWEeC0_c.js → matrix-formatter-B27bz08Y.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-DqzG-UhQ.js → matrix-member-presentation-DyC-e9pD.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-D6vYkZK4.js → matrix-operation-contract-L_SiObB7.js} +1 -1
- package/dist/chunks/{metric-comparison-zpGw4lD6.js → metric-comparison-B5gyyW9k.js} +1 -1
- package/dist/chunks/model-change-B0rAK-5w.js +230 -0
- package/dist/chunks/{pivot-header-presentation-CQnIDtUv.js → pivot-header-presentation-BQFfowp1.js} +1 -1
- package/dist/chunks/{pivot-result-identity-C-Q1j1Wb.js → pivot-result-identity-dZIYsMrY.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-pwq3b7LC.js → pivot-result-lifecycle-D0kSz5QX.js} +6 -6
- package/dist/chunks/{raw-temporal-presentation-CBKeEPYA.js → raw-temporal-presentation-BWRH754b.js} +6 -6
- package/dist/chunks/{report-preferences-dialog-DAQEooIW.js → report-preferences-dialog-DvabpYcC.js} +49 -49
- package/dist/chunks/{report-runtime-context-hWiTCzFV.js → report-runtime-context-CKiIubIu.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-DVWF7p5C.js → resolve-dashboard-input-context-Ctq1YCDV.js} +2049 -1975
- package/dist/chunks/{saved-dashboard-context-BMqMzNAo.js → saved-dashboard-context-Bt1E9d1l.js} +8 -8
- package/dist/chunks/{selection-reducer-CJzkTZio.js → selection-reducer-DdPwKDDQ.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-Dq1ElALH.js → semaphor-ready-indicator-Cc1TG_gw.js} +10388 -10390
- package/dist/chunks/{shelf-drop-preview-context-CHm8lqfo.js → shelf-drop-preview-context-Ch9XqytU.js} +119 -119
- package/dist/chunks/{source-entity-resolution-D195CrYS.js → source-entity-resolution-DkW3Iek5.js} +1 -1
- package/dist/chunks/{switch-wJP6O7ZT.js → switch-gm7RW-PW.js} +2 -2
- package/dist/chunks/{table-export-sheet-4X9mAG3V.js → table-export-sheet-C7bDdC8r.js} +1 -1
- package/dist/chunks/{table-settings-WysCBj62.js → table-settings-CBm7G0yx.js} +224 -201
- package/dist/chunks/{temporal-bucket-CQOSbv9-.js → temporal-bucket-BikY3FFR.js} +1 -1
- package/dist/chunks/{token-types-BMqRmT-C.js → token-types-B1p9F_wS.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-b_fGSj_5.js → use-create-flow-overlay-state-CZdDRUpc.js} +6 -6
- package/dist/chunks/{validators-C-aOQlTB.js → validators-BdBzm_EV.js} +17 -16
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +273 -264
- package/dist/data-app-sdk/index.js +5 -5
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.js +5 -5
- package/dist/format-utils/index.js +15 -15
- package/dist/index.js +21 -21
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/index.js +6 -6
- package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +3 -0
- package/dist/types/lib/utils/card-config-utils.d.ts +61 -0
- package/dist/types/lib/utils/card-type-change.d.ts +5 -1
- package/dist/types/shared/analytics-protocol/explorer-input-schemas.d.ts +2 -0
- package/dist/types/shared/assistant-protocol/answer-text.d.ts +23 -0
- package/dist/types/shared/assistant-protocol/conversation-text.d.ts +29 -0
- package/dist/types/shared/assistant-protocol/conversation.d.ts +24 -3
- package/dist/types/shared/assistant-protocol/index.d.ts +2 -0
- package/dist/types/shared/assistant-protocol/model-change.d.ts +19 -0
- package/dist/types/shared/assistant-protocol/parts.d.ts +45 -1
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +8 -3
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +7 -1
- package/dist/types/shared/dashboard-authoring/document-section-cards.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +64 -0
- package/package.json +2 -2
- package/dist/chunks/add-to-dashboard-BQRAAnc3.js +0 -102
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
var Fe = Object.defineProperty;
|
|
2
2
|
var Re = (e, n, t) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var L = (e, n, t) => Re(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
-
import { r as ae, q as se, j as Ne } from "./temporal-bucket-
|
|
5
|
-
import { Y as J, ab as Be, o as Me } from "./validators-
|
|
4
|
+
import { r as ae, q as se, j as Ne } from "./temporal-bucket-BikY3FFR.js";
|
|
5
|
+
import { Y as J, ab as Be, o as Me } from "./validators-BdBzm_EV.js";
|
|
6
6
|
import { l as Le, C as Ue } from "./export-file-format-C-tJsxsf.js";
|
|
7
7
|
import { z as y } from "zod";
|
|
8
|
-
import { I as Pe, q as ze, o as Ve, P as B } from "./pivot-result-lifecycle-
|
|
9
|
-
import { af as je, ah as qe, U as Ke } from "./matrix-operation-contract-
|
|
8
|
+
import { I as Pe, q as ze, o as Ve, P as B } from "./pivot-result-lifecycle-D0kSz5QX.js";
|
|
9
|
+
import { af as je, ah as qe, U as Ke } from "./matrix-operation-contract-L_SiObB7.js";
|
|
10
10
|
import "./analytics-base-schemas-BKs3flFS.js";
|
|
11
11
|
import "../value-format-preferences/index.js";
|
|
12
12
|
import { r as He } from "./rendered-file-D8xEuVVx.js";
|
|
13
|
-
import {
|
|
14
|
-
import { r as Je } from "./matrix-card-
|
|
15
|
-
import { z as Qe } from "./table-settings-
|
|
16
|
-
import { r as et, a as tt, b as nt, c as rt, d as ot } from "./raw-temporal-presentation-
|
|
13
|
+
import { cR as Ge, cS as We, cT as Xe, r as Ze, n as Ye } from "./global-date-filter-utils-Ce6Ydv2W.js";
|
|
14
|
+
import { r as Je } from "./matrix-card-VFE-yDlr.js";
|
|
15
|
+
import { z as Qe } from "./table-settings-CBm7G0yx.js";
|
|
16
|
+
import { r as et, a as tt, b as nt, c as rt, d as ot } from "./raw-temporal-presentation-BWRH754b.js";
|
|
17
17
|
import "./index-CtoK1Lgu.js";
|
|
18
18
|
import "./index-CuHybtft.js";
|
|
19
19
|
import "./_commonjsHelpers-DimLPMtv.js";
|
|
20
|
-
import { f as at, r as it, b as ct, g as lt } from "./custom-visual-inputs-
|
|
20
|
+
import { f as at, r as it, b as ct, g as lt } from "./custom-visual-inputs-D7ez5sab.js";
|
|
21
21
|
const dt = /* @__PURE__ */ new Set([
|
|
22
22
|
"table",
|
|
23
23
|
"aggregateTable",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as G } from "./metric-comparison-
|
|
2
|
-
import { ab as E, aw as Y, av as V, ax as J, au as X, at as ee, a0 as $, O as j, x as te } from "./validators-
|
|
1
|
+
import { r as G } from "./metric-comparison-B5gyyW9k.js";
|
|
2
|
+
import { ab as E, aw as Y, av as V, ax as J, au as X, at as ee, a0 as $, O as j, x as te } from "./validators-BdBzm_EV.js";
|
|
3
3
|
import { b as ne, w as h, z as F } from "./zoned-wall-clock-MulfA26h.js";
|
|
4
4
|
import { z as u } from "zod";
|
|
5
5
|
import { c as ie } from "./analytics-base-schemas-BKs3flFS.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as a, o as s, q as f } from "./validators-
|
|
2
|
-
import "./matrix-operation-contract-
|
|
1
|
+
import { l as a, o as s, q as f } from "./validators-BdBzm_EV.js";
|
|
2
|
+
import "./matrix-operation-contract-L_SiObB7.js";
|
|
3
3
|
import "./analytics-base-schemas-BKs3flFS.js";
|
|
4
4
|
import "zod";
|
|
5
5
|
function u(i, r = {}) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { aI as ge, t as U, ab as ye, S as we } from "./validators-
|
|
2
|
-
import "./matrix-operation-contract-
|
|
1
|
+
import { aI as ge, t as U, ab as ye, S as we } from "./validators-BdBzm_EV.js";
|
|
2
|
+
import "./matrix-operation-contract-L_SiObB7.js";
|
|
3
3
|
import { j as be } from "./analytics-base-schemas-BKs3flFS.js";
|
|
4
4
|
import "zod";
|
|
5
|
-
import { W as Me, X as se, S as Z, U as F, Y as oe, Z as ue, Q as xe, k as De, i as q, F as pe, f as Oe, p as Te, r as ve, u as Pe, j as Se, m as ke } from "./temporal-bucket-
|
|
5
|
+
import { W as Me, X as se, S as Z, U as F, Y as oe, Z as ue, Q as xe, k as De, i as q, F as pe, f as Oe, p as Te, r as ve, u as Pe, j as Se, m as ke } from "./temporal-bucket-BikY3FFR.js";
|
|
6
6
|
function d(e) {
|
|
7
7
|
const t = Object.prototype.toString.call(e);
|
|
8
8
|
return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
|
package/dist/chunks/{matrix-operation-contract-D6vYkZK4.js → matrix-operation-contract-L_SiObB7.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z as t } from "zod";
|
|
2
2
|
import { z as je, E as Fe, F as Le, I as Ue, J as qe, s as U, x as Z, n as De, C as Me, D as ce, f as Be, r as Ge, y as ze, m as Ve, o as We, t as le, u as Xe } from "./analytics-base-schemas-BKs3flFS.js";
|
|
3
|
-
import { I as w, A as ue, Q as G, aN as ee, t as b, J as Ke, aG as $, aO as Ze, B as $e, s as Ye, x as de, a8 as He, r as Qe, m as Je } from "./validators-
|
|
3
|
+
import { I as w, A as ue, Q as G, aN as ee, t as b, J as Ke, aG as $, aO as Ze, B as $e, s as Ye, x as de, a8 as He, r as Qe, m as Je } from "./validators-BdBzm_EV.js";
|
|
4
4
|
const Y = {
|
|
5
5
|
answerSummary: "string",
|
|
6
6
|
responseDetail: "responseDetail",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as g, T as m, a as C } from "./analytics-base-schemas-BKs3flFS.js";
|
|
2
|
-
import { r as k } from "./validators-
|
|
2
|
+
import { r as k } from "./validators-BdBzm_EV.js";
|
|
3
3
|
function w(e) {
|
|
4
4
|
const r = g.safeParse(e);
|
|
5
5
|
return r.success ? { ok: !0, value: r.data } : {
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { A as c, h as k, m as f } from "./context-BerEBuFR.js";
|
|
2
|
+
function g(e, t) {
|
|
3
|
+
return e.role === t.role && e.name === t.name && e.aggregate === t.aggregate && e.granularity === t.granularity;
|
|
4
|
+
}
|
|
5
|
+
function $(e) {
|
|
6
|
+
var s, o;
|
|
7
|
+
const t = (s = e.selectedCard) == null ? void 0 : s.description;
|
|
8
|
+
return (t == null ? void 0 : t.status) !== "described" || t.sql || ((o = e.editing) == null ? void 0 : o.mode) === "sql" ? [] : t.fields;
|
|
9
|
+
}
|
|
10
|
+
function v(e, t) {
|
|
11
|
+
if (t.length === 0) return [];
|
|
12
|
+
if (t.length > c.taggedFields)
|
|
13
|
+
return [`taggedFields: at most ${c.taggedFields}`];
|
|
14
|
+
const s = $(e);
|
|
15
|
+
return t.flatMap((o, n) => s.some((a) => g(a, o)) ? t.slice(0, n).some((a) => g(a, o)) ? [`taggedFields.${n}: tagged twice`] : [] : [`taggedFields.${n}: not a field of the card the context asks about`]);
|
|
16
|
+
}
|
|
17
|
+
function x(e, t) {
|
|
18
|
+
return t != null && t.length ? `Fields of the asked-about card the user tagged in this question: ${t.map(k).join("; ")}.
|
|
19
|
+
|
|
20
|
+
${e}` : e;
|
|
21
|
+
}
|
|
22
|
+
function _(e) {
|
|
23
|
+
if (e.kind === "text") return { type: "text", text: e.text };
|
|
24
|
+
const { kind: t, ...s } = e;
|
|
25
|
+
return {
|
|
26
|
+
type: `data-${t}`,
|
|
27
|
+
...e.kind === "stage" ? { id: e.stageId } : {},
|
|
28
|
+
data: s
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function E(e, t) {
|
|
32
|
+
return e.kind !== "text" ? [_(e)] : [
|
|
33
|
+
{ type: "text-start", id: t },
|
|
34
|
+
{ type: "text-delta", id: t, delta: e.text },
|
|
35
|
+
{ type: "text-end", id: t }
|
|
36
|
+
];
|
|
37
|
+
}
|
|
38
|
+
function S(e) {
|
|
39
|
+
if (e === "failed" || e === "interrupted")
|
|
40
|
+
return { kind: "refusal", code: "model_unavailable", message: f.model_unavailable };
|
|
41
|
+
if (e === "running")
|
|
42
|
+
return { kind: "refusal", code: "turn_in_progress", message: f.turn_in_progress };
|
|
43
|
+
}
|
|
44
|
+
function b(e, t) {
|
|
45
|
+
let s = -1;
|
|
46
|
+
e.forEach((n, a) => {
|
|
47
|
+
t(n) === "text" && (s = a);
|
|
48
|
+
});
|
|
49
|
+
let o = -1;
|
|
50
|
+
return e.forEach((n, a) => {
|
|
51
|
+
a < s && t(n) === "step" && (o = a);
|
|
52
|
+
}), new Set(e.filter((n, a) => a < o && t(n) === "text"));
|
|
53
|
+
}
|
|
54
|
+
const p = {
|
|
55
|
+
conversation: "nowhere",
|
|
56
|
+
text: "body",
|
|
57
|
+
stage: "details",
|
|
58
|
+
using: "details",
|
|
59
|
+
clarify: "body",
|
|
60
|
+
artifact: "body",
|
|
61
|
+
refusal: "body",
|
|
62
|
+
trace: "details",
|
|
63
|
+
proposal: "body",
|
|
64
|
+
proposal_operations: "nowhere",
|
|
65
|
+
proposal_refused: "body",
|
|
66
|
+
model_change: "body"
|
|
67
|
+
};
|
|
68
|
+
function F(e) {
|
|
69
|
+
return Object.hasOwn(p, e) && p[e] === "body";
|
|
70
|
+
}
|
|
71
|
+
function w(e) {
|
|
72
|
+
return e.kind === "text" ? "text" : e.kind === "stage" && !e.change ? "step" : "other";
|
|
73
|
+
}
|
|
74
|
+
function O(e) {
|
|
75
|
+
const t = b(e, w);
|
|
76
|
+
return e.flatMap((s) => s.kind === "text" && !t.has(s) ? [s.text] : []).filter((s) => s.trim().length > 0).join(`
|
|
77
|
+
|
|
78
|
+
`);
|
|
79
|
+
}
|
|
80
|
+
const L = {
|
|
81
|
+
conversationId: "with tool calls",
|
|
82
|
+
addedSources: "left out",
|
|
83
|
+
allows: "left out",
|
|
84
|
+
turns: "shown"
|
|
85
|
+
}, q = {
|
|
86
|
+
turnId: "left out",
|
|
87
|
+
startedAt: "shown",
|
|
88
|
+
// the first turn's, in the header
|
|
89
|
+
message: "shown",
|
|
90
|
+
taggedFields: "shown",
|
|
91
|
+
// before the question, as the assistant reads them
|
|
92
|
+
parts: "shown",
|
|
93
|
+
outcome: "shown",
|
|
94
|
+
// a turn that didn't end with its answer says so
|
|
95
|
+
toolCalls: "with tool calls",
|
|
96
|
+
model: "with tool calls",
|
|
97
|
+
instructionsVersion: "with tool calls"
|
|
98
|
+
};
|
|
99
|
+
function D(e, t) {
|
|
100
|
+
var a;
|
|
101
|
+
const s = (a = e.turns[0]) == null ? void 0 : a.startedAt, o = [
|
|
102
|
+
`${t.assistantName} conversation${s ? ` · ${s.slice(0, 16).replace("T", " ")} UTC` : ""}`,
|
|
103
|
+
...t.toolCalls ? [`Conversation ${e.conversationId}`] : []
|
|
104
|
+
], n = e.turns.map((r) => {
|
|
105
|
+
const d = [`You: ${y(r)}`, "", `${t.assistantName}:`], i = S(r.outcome), l = [...r.parts, ...i ? [i] : []];
|
|
106
|
+
return d.push(...C(l)), t.toolCalls && r.toolCalls && d.push(...T(r.toolCalls, r.model, r.instructionsVersion)), d.join(`
|
|
107
|
+
`);
|
|
108
|
+
});
|
|
109
|
+
return [o.join(`
|
|
110
|
+
`), ...n].join(`
|
|
111
|
+
|
|
112
|
+
`) + `
|
|
113
|
+
`;
|
|
114
|
+
}
|
|
115
|
+
function y(e) {
|
|
116
|
+
return [...(e.taggedFields ?? []).map((s) => `@${s.label}`), e.message].join(" ");
|
|
117
|
+
}
|
|
118
|
+
function C(e) {
|
|
119
|
+
const t = b(e, w), s = /* @__PURE__ */ new Set(), o = [];
|
|
120
|
+
for (const n of e)
|
|
121
|
+
switch (n.kind) {
|
|
122
|
+
case "text":
|
|
123
|
+
!t.has(n) && n.text.trim() && o.push(n.text.trim());
|
|
124
|
+
break;
|
|
125
|
+
case "proposal":
|
|
126
|
+
o.push("Dashboard changes", ...n.changes.filter((a) => a.sentence).map((a) => `+ ${a.sentence}`));
|
|
127
|
+
break;
|
|
128
|
+
case "proposal_refused":
|
|
129
|
+
o.push("Not added", `! ${n.message}`);
|
|
130
|
+
break;
|
|
131
|
+
case "model_change":
|
|
132
|
+
o.push("Data model change (proposed)", ...n.changes.filter((a) => a.sentence).map((a) => `+ ${a.sentence}`));
|
|
133
|
+
break;
|
|
134
|
+
case "clarify":
|
|
135
|
+
o.push(
|
|
136
|
+
n.multiple ? `${n.question} (pick any)` : n.question,
|
|
137
|
+
...n.options.map((a, r) => ` ${r + 1}. ${a.label}`)
|
|
138
|
+
);
|
|
139
|
+
break;
|
|
140
|
+
case "artifact":
|
|
141
|
+
o.push(`[Result: ${n.artifact.title}]`);
|
|
142
|
+
break;
|
|
143
|
+
case "refusal":
|
|
144
|
+
o.push(n.message);
|
|
145
|
+
break;
|
|
146
|
+
case "stage":
|
|
147
|
+
s.add(n.stageId);
|
|
148
|
+
break;
|
|
149
|
+
case "using":
|
|
150
|
+
case "trace":
|
|
151
|
+
case "conversation":
|
|
152
|
+
case "proposal_operations":
|
|
153
|
+
break;
|
|
154
|
+
default:
|
|
155
|
+
return n;
|
|
156
|
+
}
|
|
157
|
+
return s.size && o.push(`(${s.size} ${s.size === 1 ? "step" : "steps"})`), o;
|
|
158
|
+
}
|
|
159
|
+
function T(e, t, s) {
|
|
160
|
+
const o = ["", "Tool calls:"];
|
|
161
|
+
return (t || s) && o.push(` model ${t ?? "unknown"}${s ? ` · instructions ${s}` : ""}`), e.length || o.push(" none"), e.forEach((n, a) => {
|
|
162
|
+
var u;
|
|
163
|
+
const r = n.durationMs === void 0 ? "" : ` · ${n.durationMs} ms`, d = n.rowCount === void 0 ? "" : ` · ${n.rowCount} ${n.rowCount === 1 ? "row" : "rows"}`, i = n.ok || (u = n.error) == null ? void 0 : u.trim(), l = i && !i.includes(`
|
|
164
|
+
`) ? `: ${i}` : "";
|
|
165
|
+
o.push(` ${a + 1}. ${A(n.tool)}${r}${d} · ${n.ok ? "ok" : `failed${l}`}`), i && !l && o.push(" error:", ...h(i)), i && !l && o.push(" input:"), o.push(...h(JSON.stringify(n.input ?? {}, null, 2)));
|
|
166
|
+
}), o;
|
|
167
|
+
}
|
|
168
|
+
function h(e) {
|
|
169
|
+
return e.split(`
|
|
170
|
+
`).map((t) => ` ${t}`);
|
|
171
|
+
}
|
|
172
|
+
function A(e) {
|
|
173
|
+
return e.replace(/^semaphor_/, "");
|
|
174
|
+
}
|
|
175
|
+
function R(e) {
|
|
176
|
+
if (e.kind === "semantic") return JSON.stringify(["semantic", e.domainId, e.datasetName]);
|
|
177
|
+
if (e.kind === "sql") return JSON.stringify(["sql", e.connectionId]);
|
|
178
|
+
}
|
|
179
|
+
function j(e) {
|
|
180
|
+
return e.label ?? (e.kind === "semantic" ? e.datasetName : e.kind === "physical" ? e.tableName : "SQL");
|
|
181
|
+
}
|
|
182
|
+
function M(e) {
|
|
183
|
+
return {
|
|
184
|
+
columns: e.columns,
|
|
185
|
+
records: e.records,
|
|
186
|
+
rowCount: e.rowCount,
|
|
187
|
+
governed: e.status.governed,
|
|
188
|
+
complete: e.status.complete,
|
|
189
|
+
truncated: e.status.truncated
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
const P = {
|
|
193
|
+
number: "kpi",
|
|
194
|
+
line: "line",
|
|
195
|
+
bar: "bar",
|
|
196
|
+
stackedBar: "stackedBar",
|
|
197
|
+
table: "table"
|
|
198
|
+
}, m = {
|
|
199
|
+
proposal_not_found: "This suggestion has expired. Ask again for a new one.",
|
|
200
|
+
proposal_stale: "The data model changed since this was suggested. Ask again for a new one.",
|
|
201
|
+
not_permitted: "You don’t have permission to change the data model.",
|
|
202
|
+
apply_in_progress: "It’s still being added. Try again in a moment.",
|
|
203
|
+
apply_outcome_unknown: "It isn’t clear whether it was added. Check the data model before adding it again."
|
|
204
|
+
}, I = "It couldn’t be added. Try again.";
|
|
205
|
+
function U(e) {
|
|
206
|
+
return typeof e == "string" && Object.hasOwn(m, e) ? m[e] : I;
|
|
207
|
+
}
|
|
208
|
+
export {
|
|
209
|
+
p as A,
|
|
210
|
+
L as C,
|
|
211
|
+
$ as a,
|
|
212
|
+
_ as b,
|
|
213
|
+
E as c,
|
|
214
|
+
S as d,
|
|
215
|
+
q as e,
|
|
216
|
+
D as f,
|
|
217
|
+
A as g,
|
|
218
|
+
F as h,
|
|
219
|
+
w as i,
|
|
220
|
+
O as j,
|
|
221
|
+
R as k,
|
|
222
|
+
j as l,
|
|
223
|
+
P as m,
|
|
224
|
+
U as n,
|
|
225
|
+
x as q,
|
|
226
|
+
g as s,
|
|
227
|
+
v as t,
|
|
228
|
+
M as v,
|
|
229
|
+
b as w
|
|
230
|
+
};
|
package/dist/chunks/{pivot-header-presentation-CQnIDtUv.js → pivot-header-presentation-BQFfowp1.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
2
|
var c = (e, r, t) => r in e ? d(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
|
|
3
3
|
var i = (e, r, t) => c(e, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
-
import { f } from "./temporal-bucket-
|
|
4
|
+
import { f } from "./temporal-bucket-BikY3FFR.js";
|
|
5
5
|
class v extends Error {
|
|
6
6
|
constructor(t, a) {
|
|
7
7
|
super(`${t}: ${a}`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var y = Object.defineProperty;
|
|
2
2
|
var c = (t, e, r) => e in t ? y(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var u = (t, e, r) => c(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
-
import { v as d } from "./metric-comparison-
|
|
4
|
+
import { v as d } from "./metric-comparison-B5gyyW9k.js";
|
|
5
5
|
function f(t) {
|
|
6
6
|
return !!(t != null && t.isSubtotal && t.subtotalScope === "pivot-value");
|
|
7
7
|
}
|
package/dist/chunks/{pivot-result-lifecycle-pwq3b7LC.js → pivot-result-lifecycle-D0kSz5QX.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var G = Object.defineProperty;
|
|
2
2
|
var Q = (e, t, o) => t in e ? G(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
3
|
var h = (e, t, o) => Q(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
-
import { N as q, O as L, P as y, q as ee, H as te, E as oe, i as re, Q as K, f as ne, F as ae, r as ie, M as se, v as ce } from "./temporal-bucket-
|
|
4
|
+
import { N as q, O as L, P as y, q as ee, H as te, E as oe, i as re, Q as K, f as ne, F as ae, r as ie, M as se, v as ce } from "./temporal-bucket-BikY3FFR.js";
|
|
5
5
|
import { z as d } from "zod";
|
|
6
6
|
import { E as B, l as Y } from "./export-file-format-C-tJsxsf.js";
|
|
7
|
-
import { aM as le, l as de, X as me, O as T, o as ue } from "./validators-
|
|
8
|
-
import { b as fe } from "./report-runtime-context-
|
|
7
|
+
import { aM as le, l as de, X as me, O as T, o as ue } from "./validators-BdBzm_EV.js";
|
|
8
|
+
import { b as fe } from "./report-runtime-context-CKiIubIu.js";
|
|
9
9
|
import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as pe } from "../value-format-preferences/index.js";
|
|
10
10
|
import { z as ye } from "./zoned-wall-clock-MulfA26h.js";
|
|
11
11
|
import { S as he } from "./analytics-base-schemas-BKs3flFS.js";
|
|
12
|
-
import "./matrix-operation-contract-
|
|
13
|
-
import { r as we, i as ge } from "./metric-comparison-
|
|
14
|
-
import { d as ve, P as be } from "./pivot-result-identity-
|
|
12
|
+
import "./matrix-operation-contract-L_SiObB7.js";
|
|
13
|
+
import { r as we, i as ge } from "./metric-comparison-B5gyyW9k.js";
|
|
14
|
+
import { d as ve, P as be } from "./pivot-result-identity-dZIYsMrY.js";
|
|
15
15
|
function Ot(e, t) {
|
|
16
16
|
const r = Ie(e);
|
|
17
17
|
let n;
|
package/dist/chunks/{raw-temporal-presentation-CBKeEPYA.js → raw-temporal-presentation-BWRH754b.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./analytics-base-schemas-BKs3flFS.js";
|
|
2
|
-
import { r as P } from "./pivot-result-identity-
|
|
3
|
-
import { r as R, n as M } from "./global-date-filter-utils-
|
|
4
|
-
import "./validators-
|
|
5
|
-
import "./matrix-operation-contract-
|
|
2
|
+
import { r as P } from "./pivot-result-identity-dZIYsMrY.js";
|
|
3
|
+
import { r as R, n as M } from "./global-date-filter-utils-Ce6Ydv2W.js";
|
|
4
|
+
import "./validators-BdBzm_EV.js";
|
|
5
|
+
import "./matrix-operation-contract-L_SiObB7.js";
|
|
6
6
|
import { v as S } from "./raw-temporal-contract-WuXA8jBP.js";
|
|
7
7
|
import "zod";
|
|
8
8
|
import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as A } from "../value-format-preferences/index.js";
|
|
9
|
-
import { f as E, M as O } from "./pivot-result-lifecycle-
|
|
10
|
-
import { p as g, r as b, c as q, R as z, v as L } from "./temporal-bucket-
|
|
9
|
+
import { f as E, M as O } from "./pivot-result-lifecycle-D0kSz5QX.js";
|
|
10
|
+
import { p as g, r as b, c as q, R as z, v as L } from "./temporal-bucket-BikY3FFR.js";
|
|
11
11
|
const $ = "SEMAPHOR_CALCULATED_FIELD";
|
|
12
12
|
function j(e, a, t) {
|
|
13
13
|
if (t && (a === "groupby" || a === "pivotby"))
|