react-semaphor 0.1.544 → 0.1.546

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 (179) hide show
  1. package/dist/analytics-protocol/index.js +405 -441
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +100 -76
  4. package/dist/brand-studio/index.js +5 -5
  5. package/dist/briefings/index.js +55 -52
  6. package/dist/chunks/{class-utils-Df1OVOT1.js → _commonjsHelpers-DimLPMtv.js} +124 -98
  7. package/dist/chunks/{add-to-dashboard-BuAqfA2Y.js → add-to-dashboard-BQRAAnc3.js} +55 -33
  8. package/dist/chunks/{analytics-base-schemas-BFAoRlkU.js → analytics-base-schemas-BKs3flFS.js} +2 -2
  9. package/dist/chunks/{assistant-chat-BNLkCDml.js → assistant-chat-BPXhulAx.js} +2792 -2562
  10. package/dist/chunks/{bookmark-state-CXw7lZ50.js → bookmark-state-C4vetoa0.js} +7 -8
  11. package/dist/chunks/column-catalog-BYnochWQ.js +3363 -0
  12. package/dist/chunks/comparison-window-caption-C2xF-eWw.js +1433 -0
  13. package/dist/chunks/{context-ClREvqCZ.js → context-BerEBuFR.js} +11 -6
  14. package/dist/chunks/custom-visual-inputs-CkJW9pBS.js +295 -0
  15. package/dist/chunks/{dashboard-g5a4DKWq.js → dashboard-C3CoKbGY.js} +1 -1
  16. package/dist/chunks/dashboard-briefing-launcher-Be4h-7My.js +3734 -0
  17. package/dist/chunks/dashboard-controls-bxPrlSyp.js +2307 -0
  18. package/dist/chunks/{dashboard-json-7qT9jmfL.js → dashboard-json-BrjxIiRt.js} +6 -6
  19. package/dist/chunks/document-dashboard-inputs-CRVHpIHp.js +3010 -0
  20. package/dist/chunks/{edit-dashboard-visual-BfJwnRIZ.js → edit-dashboard-visual-DYYYDjY6.js} +5986 -6063
  21. package/dist/chunks/{filter-value-text-CYsVYPuD.js → filter-value-text-Ddf55Ku1.js} +8 -8
  22. package/dist/chunks/global-date-filter-utils-9d6m9-FE.js +11859 -0
  23. package/dist/chunks/index-CtoK1Lgu.js +586 -0
  24. package/dist/chunks/{index-DkAyQvC6.js → index-DkQkMKa1.js} +385 -339
  25. package/dist/chunks/list-filter-DsaTbM3J.js +15 -0
  26. package/dist/chunks/matrix-analytical-definition-B9vW-osb.js +717 -0
  27. package/dist/chunks/{matrix-card-DjwWcCo8.js → matrix-card-LiMEipvq.js} +3 -3
  28. package/dist/chunks/{matrix-formatter-CxJLkztA.js → matrix-formatter-DWEeC0_c.js} +55 -55
  29. package/dist/chunks/{matrix-member-presentation-CQGdVks6.js → matrix-member-presentation-DqzG-UhQ.js} +1 -1
  30. package/dist/chunks/{matrix-operation-contract-8OIO4gob.js → matrix-operation-contract-D6vYkZK4.js} +72 -72
  31. package/dist/chunks/{metric-comparison-DEwi9uc2.js → metric-comparison-zpGw4lD6.js} +2 -2
  32. package/dist/chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js +119 -0
  33. package/dist/chunks/{pivot-header-presentation-DHcx1XGQ.js → pivot-header-presentation-CQnIDtUv.js} +1 -1
  34. package/dist/chunks/{pivot-result-identity-DJhXXcns.js → pivot-result-identity-C-Q1j1Wb.js} +1 -1
  35. package/dist/chunks/{pivot-result-lifecycle-DM4CyGKs.js → pivot-result-lifecycle-pwq3b7LC.js} +571 -380
  36. package/dist/chunks/{raw-temporal-contract-C51YG48G.js → raw-temporal-contract-WuXA8jBP.js} +1 -1
  37. package/dist/chunks/{raw-temporal-presentation-CLiVi90c.js → raw-temporal-presentation-CBzrDOjM.js} +8 -8
  38. package/dist/chunks/rendered-file-D8xEuVVx.js +108 -0
  39. package/dist/chunks/{report-preferences-dialog-Df7VpRVW.js → report-preferences-dialog-4QEZWe5U.js} +637 -610
  40. package/dist/chunks/{report-runtime-context-Dq8XyODK.js → report-runtime-context-hWiTCzFV.js} +2 -2
  41. package/dist/chunks/resolve-dashboard-input-context-UpK_LBpL.js +5677 -0
  42. package/dist/chunks/{saved-dashboard-context-B-mQ--nV.js → saved-dashboard-context-D_I3Lxk0.js} +184 -212
  43. package/dist/chunks/selection-filter-compiler-BKXmyLrS.js +79 -0
  44. package/dist/chunks/{selection-reducer-Dj_8xD69.js → selection-reducer-CJzkTZio.js} +15 -15
  45. package/dist/chunks/{semaphor-ready-indicator-DDAxk8us.js → semaphor-ready-indicator-4zpRHE-X.js} +56832 -59068
  46. package/dist/chunks/{shelf-drop-preview-context-BSRPwaED.js → shelf-drop-preview-context-Cfw7TRAx.js} +890 -871
  47. package/dist/chunks/{source-entity-resolution-BYn9giz3.js → source-entity-resolution-BIGRvtbG.js} +13 -13
  48. package/dist/chunks/{switch-C3jLxlG0.js → switch-CEBOR4n7.js} +47 -48
  49. package/dist/chunks/{table-export-sheet-CPfGAQ9X.js → table-export-sheet-4X9mAG3V.js} +1 -1
  50. package/dist/chunks/table-settings-CunhoDUi.js +605 -0
  51. package/dist/chunks/{temporal-bucket-D7NBrrtL.js → temporal-bucket-CQOSbv9-.js} +26 -26
  52. package/dist/chunks/{token-types-DBbZVQsm.js → token-types-BMqRmT-C.js} +1 -1
  53. package/dist/chunks/{use-create-flow-overlay-state-BxzFviM-.js → use-create-flow-overlay-state-DZBZiiD-.js} +83 -83
  54. package/dist/chunks/{validators-DMHTpf7a.js → validators-C-aOQlTB.js} +713 -658
  55. package/dist/dashboard/index.js +2 -2
  56. package/dist/dashboard-authoring/index.js +1800 -1135
  57. package/dist/data-app-sdk/index.js +6 -6
  58. package/dist/data-app-sdk-adapters/index.js +3 -3
  59. package/dist/data-app-sdk-validation/index.js +14 -14
  60. package/dist/format-utils/index.js +198 -187
  61. package/dist/index.js +359 -325
  62. package/dist/layouts/index.js +5 -242
  63. package/dist/report-runtime-context/index.js +2 -2
  64. package/dist/shared/index.js +4 -5
  65. package/dist/style.css +1 -1
  66. package/dist/surfboard/index.js +2 -2
  67. package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
  68. package/dist/types/briefings/attachments.d.ts +33 -6
  69. package/dist/types/briefings/index.d.ts +6 -5
  70. package/dist/types/components/index.d.ts +2 -0
  71. package/dist/types/components/surfboard/arrange-layout-button.d.ts +8 -0
  72. package/dist/types/components/surfboard/filter/types.d.ts +0 -14
  73. package/dist/types/components/surfboard/screen-size-preview-button.d.ts +7 -0
  74. package/dist/types/index.js +6 -6
  75. package/dist/types/lib/charts/table-chart-types.d.ts +4 -0
  76. package/dist/types/lib/charts/types.d.ts +2 -2
  77. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +68 -82
  78. package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +0 -8
  79. package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +41 -1
  80. package/dist/types/lib/dashboard-inputs/filter-settings.d.ts +201 -0
  81. package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +15 -0
  82. package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +7 -2
  83. package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +1 -1
  84. package/dist/types/lib/dashboard-viewer/captured-runtime-values.d.ts +40 -0
  85. package/dist/types/lib/dashboard-viewer/compatibility-input-storage.d.ts +16 -16
  86. package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +11 -9
  87. package/dist/types/lib/download-pdf.d.ts +75 -1
  88. package/dist/types/lib/hooks/use-date-filter.d.ts +5 -0
  89. package/dist/types/lib/hooks/use-text-filter.d.ts +5 -0
  90. package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +5 -4
  91. package/dist/types/lib/matrix-table/matrix-editor.d.ts +52 -0
  92. package/dist/types/lib/query-context/assemble-card-query.d.ts +158 -0
  93. package/dist/types/lib/query-context/build-card-query-context.d.ts +3 -3
  94. package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +15 -6
  95. package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +11 -13
  96. package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +22 -12
  97. package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +69 -0
  98. package/dist/types/lib/stores/dashboard-store.d.ts +159 -56
  99. package/dist/types/lib/stores/editor-store.d.ts +0 -3
  100. package/dist/types/lib/types/common-types.d.ts +29 -6
  101. package/dist/types/lib/types/explorer-types.d.ts +10 -0
  102. package/dist/types/lib/types/semantic-types.d.ts +84 -0
  103. package/dist/types/lib/utils/build-saved-editor-card.d.ts +20 -0
  104. package/dist/types/lib/utils/card-type-change.d.ts +16 -0
  105. package/dist/types/lib/utils/field-availability-context.d.ts +25 -0
  106. package/dist/types/lib/utils/field-placement.d.ts +96 -0
  107. package/dist/types/lib/utils/field-state-calculator.d.ts +161 -0
  108. package/dist/types/lib/utils/qualified-entity-name.d.ts +2 -0
  109. package/dist/types/shared/analytics-protocol/field-provenance.d.ts +89 -0
  110. package/dist/types/shared/analytics-protocol/index.d.ts +2 -0
  111. package/dist/types/shared/analytics-protocol/query-policies.d.ts +52 -0
  112. package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +1 -1
  113. package/dist/types/shared/analytics-protocol/time-window.d.ts +40 -1
  114. package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +8 -12
  115. package/dist/types/shared/assistant-protocol/answer-text.d.ts +20 -0
  116. package/dist/types/shared/assistant-protocol/context.d.ts +21 -21
  117. package/dist/types/shared/assistant-protocol/index.d.ts +1 -0
  118. package/dist/types/shared/assistant-protocol/limits.d.ts +6 -1
  119. package/dist/types/shared/assistant-protocol/parts.d.ts +43 -3
  120. package/dist/types/shared/assistant-protocol/request.d.ts +14 -2
  121. package/dist/types/shared/dashboard-authoring/calculated-field-identity.d.ts +3 -0
  122. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +487 -0
  123. package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +34 -0
  124. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +7886 -0
  125. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +43 -0
  126. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +54 -0
  127. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +89 -0
  128. package/dist/types/shared/dashboard-authoring/column-catalog.d.ts +32 -0
  129. package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -55
  130. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +16 -6
  131. package/dist/types/shared/dashboard-authoring/dashboard-card-source-index.d.ts +9 -1
  132. package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-contract.d.ts +7 -0
  133. package/dist/types/shared/dashboard-authoring/dashboard-input-scope.d.ts +118 -0
  134. package/dist/types/shared/dashboard-authoring/filter-applicability.d.ts +75 -0
  135. package/dist/types/shared/dashboard-authoring/filter-model/ad-hoc-filter-values.d.ts +10 -0
  136. package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +29 -0
  137. package/dist/types/shared/dashboard-authoring/filter-model/filter-values.d.ts +58 -0
  138. package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +7 -0
  139. package/dist/types/shared/dashboard-authoring/filter-model/prototype-document-inputs.d.ts +15 -0
  140. package/dist/types/shared/dashboard-authoring/filter-model/read-dashboard-filter-model.d.ts +78 -0
  141. package/dist/types/shared/dashboard-authoring/filter-model/stored-dashboard.d.ts +18 -0
  142. package/dist/types/shared/dashboard-authoring/filter-model/toolbar-filter-reach.d.ts +23 -0
  143. package/dist/types/shared/dashboard-authoring/index.d.ts +20 -2
  144. package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +10 -37
  145. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +189 -0
  146. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +94 -0
  147. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +78 -0
  148. package/dist/types/shared/dashboard-authoring/validators.d.ts +1 -2
  149. package/dist/types/shared/format-utils/exporters/index.d.ts +2 -0
  150. package/dist/types/shared/format-utils/exporters/rendered-file.d.ts +106 -0
  151. package/dist/types/shared/layouts/engine/grid.d.ts +25 -0
  152. package/dist/types/shared/layouts/engine/index.d.ts +4 -0
  153. package/dist/types/shared/layouts/engine/sheet-layout.d.ts +7 -0
  154. package/dist/types/shared/layouts/engine/types.d.ts +125 -0
  155. package/dist/types/shared/layouts/index.d.ts +1 -2
  156. package/package.json +2 -2
  157. package/dist/chunks/_commonjsHelpers-BkfeUUK-.js +0 -28
  158. package/dist/chunks/apply-dashboard-operations-Bz4n1Lq6.js +0 -2260
  159. package/dist/chunks/calendar-day-equality-BmJAWduY.js +0 -460
  160. package/dist/chunks/comparison-window-caption-BTkrN3W4.js +0 -1623
  161. package/dist/chunks/custom-visual-inputs-DUtpYZOk.js +0 -323
  162. package/dist/chunks/dashboard-briefing-launcher-DQ_8O_e2.js +0 -3725
  163. package/dist/chunks/dashboard-controls-8RyBTQUO.js +0 -2315
  164. package/dist/chunks/dashboard-filter-value-compatibility-CwQ_iSNb.js +0 -108
  165. package/dist/chunks/document-dashboard-inputs-BC6p-ESg.js +0 -8087
  166. package/dist/chunks/document-sheet-utils-Duo9uLoH.js +0 -3619
  167. package/dist/chunks/matrix-analytical-definition-C7Gb0e12.js +0 -117
  168. package/dist/chunks/normalize-dashboard-for-dirty-check-Bk3VYv_q.js +0 -67
  169. package/dist/chunks/numeric-presentation-DESvLiu9.js +0 -5227
  170. package/dist/chunks/sort-target-MT1WK1vX.js +0 -29
  171. package/dist/chunks/stable-serialize-CfqXeiBP.js +0 -6
  172. package/dist/chunks/table-settings-CLZocegs.js +0 -501
  173. package/dist/chunks/use-debounced-dirty-check-BwAbnX_5.js +0 -59
  174. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +0 -88
  175. package/dist/types/lib/dashboard-inputs/dashboard-input-scope.d.ts +0 -10
  176. package/dist/types/shared/dashboard-authoring/change-compiler.d.ts +0 -7
  177. package/dist/types/shared/dashboard-authoring/layout-compiler.d.ts +0 -2
  178. package/dist/types/shared/layouts/create-frame-layouts.d.ts +0 -27
  179. 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-B-mQ--nV.js";
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-D_I3Lxk0.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 g } from "../chunks/analytics-base-schemas-BFAoRlkU.js";
3
- import { a as x, b as f, A as s, c as T } from "../chunks/context-ClREvqCZ.js";
4
- import { e as k, j as E, m as q, d as F, l as L, g as M, k as U, h as B, i as O, f as $, r as j } from "../chunks/context-ClREvqCZ.js";
5
- import { t as C } from "../chunks/add-to-dashboard-BuAqfA2Y.js";
6
- import { A as P, e as J, q as V, s as w, f as X, d as Y, a as z, c as G, b as H, v as K } from "../chunks/add-to-dashboard-BuAqfA2Y.js";
7
- import { p as W, a as Z, r as ee } from "../chunks/availability-Bp5Gfu1I.js";
8
- import { A as te, a as ae, D as oe, i as re } from "../chunks/conversation-sQiWYUOb.js";
9
- const p = [
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
- ], b = e.object({
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: x,
20
- addedSources: e.array(g).max(s.addedSources),
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(p),
28
+ reason: e.enum(C),
29
29
  message: e.string().max(s.textChars).optional()
30
30
  }).strict().optional(),
31
- taggedFields: e.array(f).max(s.taggedFields).optional()
32
- }).strict();
33
- function N(r) {
34
- var m;
35
- const d = new TextEncoder().encode(r).length;
36
- if (d > s.requestBytes)
37
- return A(`body: ${d} bytes exceeds ${s.requestBytes}`);
38
- let o;
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
- o = JSON.parse(r);
43
+ t = JSON.parse(r);
41
44
  } catch {
42
45
  return { ok: !1, code: "context_invalid", issues: ["body: not JSON"] };
43
46
  }
44
- const i = o && typeof o == "object" ? o.context : void 0;
45
- if (i !== void 0) {
46
- const t = T(i);
47
- if (t > s.contextBytes)
48
- return A(
49
- `context: ${t} bytes exceeds ${s.contextBytes}`
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 a = b.safeParse(o);
53
- if (!a.success)
67
+ const o = _.safeParse(t);
68
+ if (!o.success)
54
69
  return {
55
70
  ok: !1,
56
71
  code: "context_invalid",
57
- issues: a.error.issues.map(
58
- (t) => `${t.path.join(".") || "(body)"}: ${t.message}`
72
+ issues: o.error.issues.map(
73
+ (a) => `${a.path.join(".") || "(body)"}: ${a.message}`
59
74
  )
60
75
  };
61
- if (!a.data.message.trim())
76
+ if (!o.data.message.trim())
62
77
  return { ok: !1, code: "context_invalid", issues: ["message: must not be blank"] };
63
- const { selectedCardRequest: c, selectedCardUnavailable: l } = a.data, u = (m = a.data.context.selectedCard) == null ? void 0 : m.id, n = [
64
- ...c ? [["selectedCardRequest", c.cardId]] : [],
65
- ...l ? [["selectedCardUnavailable", l.cardId]] : []
66
- ], S = [
67
- ...n.length > 1 ? ["selectedCardRequest, selectedCardUnavailable: send one of them, not both"] : [],
68
- ...n.filter(([, t]) => t !== u).map(([t]) => `${t}: not the card the context asks about`),
69
- ...u && n.length === 0 ? ["selectedCardRequest: the asked-about card needs its request or selectedCardUnavailable"] : [],
70
- ...C(a.data.context, a.data.taggedFields ?? [])
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 S.length ? { ok: !1, code: "context_invalid", issues: S } : { ok: !0, value: a.data };
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 A(r) {
94
+ function d(r) {
75
95
  return { ok: !1, code: "context_too_large", issues: [r] };
76
96
  }
77
97
  export {
78
- P as ASSISTANT_CARD_TYPES,
79
- p as ASSISTANT_CARD_UNAVAILABLE_REASONS,
80
- k as ASSISTANT_CONTEXT_VERSION,
81
- te as ASSISTANT_LAYOUTS,
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
- ae as ASSISTANT_NAME_MAX_CHARS,
84
- E as ASSISTANT_PARTS_VERSION,
85
- q as ASSISTANT_REFUSAL_MESSAGES,
86
- F as AssistantContextTooLargeError,
87
- oe as DEFAULT_ASSISTANT_NAME,
88
- J as addableSourceKey,
89
- f as assistantCardFieldSchema,
90
- x as assistantContextSchema,
91
- T as assistantJsonBytes,
92
- L as assistantRefusalMessage,
93
- M as compareAssistantContexts,
94
- U as dailyLimitMessage,
95
- B as describeCardField,
96
- O as describeSource,
97
- $ as fitAssistantText,
98
- re as isAssistantLayout,
99
- W as parseAssistantTokenConfig,
100
- N as parseAssistantTurnRequest,
101
- V as questionForModel,
102
- Z as readAssistantTokenConfig,
103
- j as renderContextForModel,
104
- ee as resolveAssistantAvailability,
105
- w as sameCardField,
106
- X as sourceRefLabel,
107
- Y as storedTurnEnding,
108
- z as taggableFields,
109
- C as taggedFieldIssues,
110
- G as toTranscriptChunks,
111
- H as toTranscriptPart,
112
- K as visualInputOf
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,14 +1,14 @@
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-C3jLxlG0.js";
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-DMHTpf7a.js";
7
- import "../chunks/matrix-operation-contract-8OIO4gob.js";
8
- import "../chunks/analytics-base-schemas-BFAoRlkU.js";
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
- import { c as ae } from "../chunks/class-utils-Df1OVOT1.js";
11
+ import { c as ae } from "../chunks/_commonjsHelpers-DimLPMtv.js";
12
12
  import { r as He, v as Xe, A as Ye } from "../chunks/index-CLIro-EG.js";
13
13
  import { P as G } from "../chunks/palette-D10o_yYX.js";
14
14
  import { B as qe } from "../chunks/braces-o9UiRQes.js";
@@ -1,61 +1,64 @@
1
- import "../chunks/temporal-bucket-D7NBrrtL.js";
2
- import "../chunks/validators-DMHTpf7a.js";
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-DM4CyGKs.js";
6
- import "../chunks/matrix-operation-contract-8OIO4gob.js";
7
- import "../chunks/analytics-base-schemas-BFAoRlkU.js";
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, Z as B, C as m, B as d, A as c, H as p, z as E, D as I, M as T, i as u, W as C, n as h, l as b, m as A, L as D, k as S, O as F, f as _, e as N, P as y, t as R, q as M, c as x, d as O, G as v, F as G, h as L, b as U, a as z, $ as J, g as V, X as H, S as q, _ as P, T as X, E as K, Y as Q, r as j, j as k, U as W, V as Y, o as Z, I as $, N as w, K as ii, p as ei, s as ai, J as ri, Q as ti, R as si } from "../chunks/index-DkAyQvC6.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-DkQkMKa1.js";
10
10
  export {
11
11
  l as BRIEFING_ARTIFACT_FORMATS,
12
- B as BRIEFING_ATTACHMENT_OMISSION_CODES,
13
- m as BRIEFING_CONTENT_LIMITS,
12
+ B as BRIEFING_ATTACHMENT_FORMATS,
13
+ m as BRIEFING_ATTACHMENT_OMISSION_CODES,
14
+ c as BRIEFING_CONTENT_LIMITS,
14
15
  d as BRIEFING_KIND,
15
- c as BRIEFING_TEXT_LIMITS,
16
- p as BriefingContractError,
17
- E as DEFAULT_BRIEFING_ARTIFACT_FORMATS,
18
- I as DEFAULT_BRIEFING_SCHEDULE,
19
- T as MAX_BRIEFING_ATTACHMENTS,
16
+ T as BRIEFING_TEXT_LIMITS,
17
+ E as BriefingContractError,
18
+ I as DEFAULT_BRIEFING_ARTIFACT_FORMATS,
19
+ p as DEFAULT_BRIEFING_SCHEDULE,
20
+ A as MAX_BRIEFING_ATTACHMENTS,
21
+ h as briefingAttachmentFileTraits,
20
22
  u as briefingAttachmentFormatLabel,
21
23
  C as briefingAttachmentNeedsExportJob,
22
- h as briefingScheduleDayOccurs,
23
- b as briefingScheduleMonths,
24
- A as briefingScheduleShortMonths,
25
- D as buildBriefingJobConfig,
26
- S as buildBriefingScheduleExpr,
27
- F as buildCreateBriefingRequest,
28
- _ as buildDashboardTemporalSnapshotEntries,
29
- N as buildMatrixDeliveryEnvelope,
30
- y as buildUpdateBriefingRequest,
31
- R as canCreateBriefingForUser,
32
- M as canonicalBriefingMonthDays,
33
- x as captureMatrixExport,
34
- O as describeBriefingSchedule,
35
- v as formatBriefingComparisonValues,
36
- G as formatBriefingDisplayValue,
37
- L as getBriefingCardAttachmentCapability,
38
- U as getBriefingCardAttachmentFormats,
39
- z as getBriefingCreationIntents,
40
- J as getBriefingDisplayTypeLabel,
41
- V as getBriefingPresentation,
42
- H as getDefaultBriefingCardAttachmentFormat,
43
- q as isBriefingArtifactFormat,
44
- P as isBriefingAttachmentOmissionCode,
45
- X as isBriefingDeliveryChannel,
46
- K as isBriefingNumericValue,
47
- Q as isBriefingTableExportCardType,
48
- j as isEmailOnlyBriefingDelivery,
49
- k as isValidBriefingTimezone,
50
- W as matrixDeliveryPayloadSchema,
51
- Y as matrixDeliveryQuerySchema,
52
- Z as nextBriefingScheduleDates,
53
- $ as normalizeBriefingContentDocument,
54
- w as normalizeBriefingDraft,
55
- ii as normalizeBriefingJobConfig,
56
- ei as parseBriefingScheduleExpr,
57
- ai as readBriefingOmittedAttachments,
58
- ri as validateBriefingContentDocument,
59
- ti as validateBriefingDraft,
60
- si as validateBriefingJobConfig
24
+ b as briefingAttachmentProduction,
25
+ F as briefingScheduleDayOccurs,
26
+ D as briefingScheduleMonths,
27
+ S as briefingScheduleShortMonths,
28
+ _ as buildBriefingJobConfig,
29
+ N as buildBriefingScheduleExpr,
30
+ R as buildCreateBriefingRequest,
31
+ y as buildDashboardTemporalSnapshotEntries,
32
+ M as buildMatrixDeliveryEnvelope,
33
+ O as buildUpdateBriefingRequest,
34
+ x as canCreateBriefingForUser,
35
+ G as canonicalBriefingMonthDays,
36
+ v as captureMatrixExport,
37
+ L as describeBriefingSchedule,
38
+ U as formatBriefingComparisonValues,
39
+ z as formatBriefingDisplayValue,
40
+ H as getBriefingCardAttachmentCapability,
41
+ J as getBriefingCardAttachmentFormats,
42
+ V as getBriefingCreationIntents,
43
+ P as getBriefingDisplayTypeLabel,
44
+ q as getBriefingPresentation,
45
+ X as getDefaultBriefingCardAttachmentFormat,
46
+ K as isBriefingArtifactFormat,
47
+ Q as isBriefingAttachmentOmissionCode,
48
+ j as isBriefingDeliveryChannel,
49
+ k as isBriefingNumericValue,
50
+ W as isBriefingTableExportCardType,
51
+ Y as isEmailOnlyBriefingDelivery,
52
+ Z as isValidBriefingTimezone,
53
+ $ as matrixDeliveryPayloadSchema,
54
+ w as matrixDeliveryQuerySchema,
55
+ ii as nextBriefingScheduleDates,
56
+ ei as normalizeBriefingContentDocument,
57
+ ai as normalizeBriefingDraft,
58
+ ri as normalizeBriefingJobConfig,
59
+ ti as parseBriefingScheduleExpr,
60
+ si as readBriefingOmittedAttachments,
61
+ ni as validateBriefingContentDocument,
62
+ oi as validateBriefingDraft,
63
+ fi as validateBriefingJobConfig
61
64
  };