@opencxh/domain 1.171.0 → 1.172.1

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 (38) hide show
  1. package/dist/entities/ai-budget/types.d.ts +7 -3
  2. package/dist/entities/ai-profile/types.d.ts +7 -5
  3. package/dist/entities/analytics/dashboard.d.ts +1 -1
  4. package/dist/entities/artifact/types.d.ts +1 -1
  5. package/dist/entities/calendar-event/types.d.ts +1 -1
  6. package/dist/entities/communication/message-template.d.ts +1 -1
  7. package/dist/entities/company/types.d.ts +1 -1
  8. package/dist/entities/contact/provider.d.ts +2 -1
  9. package/dist/entities/contact/types.d.ts +1 -10
  10. package/dist/entities/live-lens/types.d.ts +1 -1
  11. package/dist/entities/memory/ingest.d.ts +14 -1
  12. package/dist/entities/memory/kind.d.ts +1 -1
  13. package/dist/entities/playbook/actor.d.ts +3 -2
  14. package/dist/entities/playbook/types.d.ts +1 -1
  15. package/dist/entities/scope/actor.d.ts +16 -0
  16. package/dist/entities/{note → scope}/index.d.ts +1 -0
  17. package/dist/entities/scope/scope.test.d.ts +1 -0
  18. package/dist/entities/scope/types.d.ts +53 -0
  19. package/dist/entities/task/types.d.ts +1 -1
  20. package/dist/entities/time-entry/types.d.ts +1 -1
  21. package/dist/entities/topic/types.d.ts +7 -5
  22. package/dist/entities/work/types.d.ts +1 -1
  23. package/dist/index.cjs +6 -6
  24. package/dist/index.d.ts +1 -6
  25. package/dist/index.js +473 -471
  26. package/dist/platform/api.d.ts +3 -1
  27. package/dist/platform/provider.d.ts +0 -61
  28. package/dist/platform/scope.d.ts +1 -1
  29. package/dist/platform/settings.d.ts +0 -14
  30. package/dist/platform/storage.d.ts +1 -1
  31. package/package.json +1 -4
  32. package/dist/entities/note/types.d.ts +0 -14
  33. package/dist/entities/shopify/index.d.ts +0 -1
  34. package/dist/entities/shopify/types.d.ts +0 -79
  35. package/dist/platform/lifecycle.d.ts +0 -13
  36. package/dist/platform/reactive.d.ts +0 -13
  37. package/dist/platform/sdk.d.ts +0 -182
  38. package/dist/platform/service-registry.d.ts +0 -13
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- function kn(e) {
1
+ function wn(e) {
2
2
  return e.type === "EMAIL_RECEIVED" || e.type === "EMAIL_SENT";
3
3
  }
4
- function wn(e) {
4
+ function Nn(e) {
5
5
  return e.type === "CHAT_MESSAGE_SENT" || e.type === "CHAT_MESSAGE_RECEIVED";
6
6
  }
7
7
  const L = 10, T = 10, I = 10, M = 5, we = /* @__PURE__ */ new Set([
@@ -20,7 +20,7 @@ function C(e) {
20
20
  const t = e;
21
21
  return typeof t.key == "string" || typeof t.value == "string";
22
22
  }
23
- function Nn(e, t = () => {
23
+ function vn(e, t = () => {
24
24
  }) {
25
25
  if (!Array.isArray(e)) return [];
26
26
  const n = [];
@@ -420,34 +420,34 @@ function K(e) {
420
420
  function d(e) {
421
421
  return m[e];
422
422
  }
423
- function vn(e) {
423
+ function xn(e) {
424
424
  return d(e)?.icon ?? "circle";
425
425
  }
426
- function xn(e) {
426
+ function On(e) {
427
427
  return d(e)?.channelKind;
428
428
  }
429
429
  function ce(e) {
430
430
  return e === "message" || e === "note";
431
431
  }
432
- function On(e) {
432
+ function $n(e) {
433
433
  return ce(d(e)?.shape);
434
434
  }
435
- function $n(e) {
435
+ function Rn(e) {
436
436
  return d(e)?.replyable === !0;
437
437
  }
438
- function Rn(e) {
438
+ function Ln(e) {
439
439
  return d(e)?.carriesText === !0;
440
440
  }
441
- function Ln(e) {
441
+ function Dn(e) {
442
442
  return d(e)?.countsAs;
443
443
  }
444
- function Dn(e) {
444
+ function Pn(e) {
445
445
  return d(e)?.playbookAuthored === !0;
446
446
  }
447
- function Pn(e) {
447
+ function Kn(e) {
448
448
  return d(e)?.connected === !0;
449
449
  }
450
- function Kn(e) {
450
+ function Un(e) {
451
451
  const t = d(e);
452
452
  return t?.shape === "artifact" && t?.carriesText === !0;
453
453
  }
@@ -455,11 +455,11 @@ function ve(e) {
455
455
  const t = d(e.type)?.snippet;
456
456
  return t ? t(e) : "";
457
457
  }
458
- function Un(e, t) {
458
+ function jn(e, t) {
459
459
  const n = d(e.type)?.timeline;
460
460
  return n ? n(e, t) : e.type.replace(/_/g, " ").toLowerCase();
461
461
  }
462
- function jn(e) {
462
+ function Gn(e) {
463
463
  const t = d(e.type)?.joinUrl;
464
464
  return t ? t(e) : void 0;
465
465
  }
@@ -607,12 +607,12 @@ class $e {
607
607
  return this.translate;
608
608
  }
609
609
  }
610
- const Gn = new $e(), G = 140;
610
+ const Bn = new $e(), G = 140;
611
611
  function Re(e) {
612
612
  const t = e.trim();
613
613
  return t.length <= G ? t : t.slice(0, G - 1).trimEnd() + "…";
614
614
  }
615
- function Bn(e, t) {
615
+ function Fn(e, t) {
616
616
  const n = xe(t?.text, e), r = t ? O(t.text, e, (i) => i) : null;
617
617
  return {
618
618
  activityId: e.id,
@@ -624,16 +624,16 @@ function Bn(e, t) {
624
624
  ...n ? { snippetKey: n.key, snippetParams: n.params } : {}
625
625
  };
626
626
  }
627
- function Fn(e, t, n = []) {
627
+ function Vn(e, t, n = []) {
628
628
  const r = e.createdAt;
629
629
  if (!r) return [];
630
630
  const i = new Set(n);
631
631
  return e.author.type === "user" && e.author.id && i.add(e.author.id), Object.entries(t).filter(([a, o]) => o >= r && !i.has(a)).map(([a]) => a);
632
632
  }
633
- function Vn(e) {
633
+ function Hn(e) {
634
634
  return e.createdAt ?? 0;
635
635
  }
636
- const Hn = [
636
+ const Wn = [
637
637
  { id: "agent", label: "Agent", labelSource: "user" },
638
638
  { id: "team", label: "Team", labelSource: "team" },
639
639
  { id: "inbox", label: "Inbox", labelSource: "inbox" },
@@ -643,7 +643,7 @@ const Hn = [
643
643
  { id: "handledBy", label: "Afhandelaar", labelSource: "raw" },
644
644
  { id: "time", label: "Tijd", labelSource: "raw" }
645
645
  ];
646
- function Wn(e) {
646
+ function zn(e) {
647
647
  const t = [];
648
648
  for (const n of Object.keys(e))
649
649
  for (const r of Object.keys(e[n]))
@@ -662,7 +662,7 @@ function De(e, t) {
662
662
  return n.setUTCMinutes(0, 0, 0), t === "day" && n.setUTCHours(0), n.getTime();
663
663
  }
664
664
  const Pe = 36e5, Ke = 864e5;
665
- function zn(e, t, n) {
665
+ function Xn(e, t, n) {
666
666
  const r = n === "hour" ? Pe : Ke, i = [];
667
667
  for (let a = De(e, n); a <= t; a += r)
668
668
  i.push(Le(a, n));
@@ -675,7 +675,7 @@ const Ue = [
675
675
  function Ge(e, t) {
676
676
  return `${e}.usage.${t}`;
677
677
  }
678
- function Xn(e, t) {
678
+ function Yn(e, t) {
679
679
  return t.map((n) => ({
680
680
  id: Ge(e, n.unit),
681
681
  label: n.label,
@@ -690,7 +690,7 @@ function Xn(e, t) {
690
690
  ]
691
691
  }));
692
692
  }
693
- const ue = /* @__PURE__ */ new Set(["info", "success", "warning", "destructive"]), B = 200, F = 100, V = 200, H = 12, W = 4, de = 4e3, N = 500, Yn = 256 * 1024, Be = /* @__PURE__ */ new Set([
693
+ const ue = /* @__PURE__ */ new Set(["info", "success", "warning", "destructive"]), B = 200, F = 100, V = 200, H = 12, W = 4, de = 4e3, N = 500, qn = 256 * 1024, Be = /* @__PURE__ */ new Set([
694
694
  "heading",
695
695
  "paragraph",
696
696
  "list",
@@ -759,7 +759,7 @@ function Xe(e, t = de) {
759
759
  function Ye(e, t = "info") {
760
760
  return typeof e == "string" && ue.has(e) ? e : t;
761
761
  }
762
- function qn(e, t = () => {
762
+ function Jn(e, t = () => {
763
763
  }) {
764
764
  if (!Array.isArray(e)) return [];
765
765
  const n = [];
@@ -913,10 +913,10 @@ function qn(e, t = () => {
913
913
  }
914
914
  return n;
915
915
  }
916
- function Jn(e) {
916
+ function Zn(e) {
917
917
  return JSON.stringify(e).length;
918
918
  }
919
- function Zn(e) {
919
+ function Qn(e) {
920
920
  return {
921
921
  blocks: e.length,
922
922
  types: e.map((t) => t.type),
@@ -968,7 +968,7 @@ function qe(e) {
968
968
  return (e.title ? `**${e.title}** ${e.text}` : e.text).split(/\r?\n/).map((n) => `> ${n}`);
969
969
  }
970
970
  }
971
- function Qn(e, t) {
971
+ function er(e, t) {
972
972
  const n = [], r = e.some((i) => i.type === "heading" && i.level === 1);
973
973
  t && !r && n.push(`# ${t}`);
974
974
  for (const i of e) {
@@ -982,40 +982,40 @@ function Qn(e, t) {
982
982
  `;
983
983
  }
984
984
  const fe = (e) => `user:${e}`, me = (e) => `team:${e}`;
985
- function er(e) {
985
+ function tr(e) {
986
986
  const t = /* @__PURE__ */ new Set();
987
987
  for (const n of e ?? [])
988
988
  n?.id && (n.kind === "user" && t.add(fe(n.id)), n.kind === "team" && t.add(me(n.id)));
989
989
  return [...t].sort();
990
990
  }
991
- function tr(e, t) {
991
+ function nr(e, t) {
992
992
  return [fe(e), ...t.map(me)];
993
993
  }
994
- function nr(e) {
994
+ function rr(e) {
995
995
  const t = /* @__PURE__ */ new Set();
996
996
  for (const n of e ?? [])
997
997
  n?.kind && t.add(n.kind);
998
998
  return [...t];
999
999
  }
1000
1000
  const Je = ["done", "escalated"];
1001
- function rr(e) {
1001
+ function ir(e) {
1002
1002
  return Je.includes(e);
1003
1003
  }
1004
1004
  const Ze = "assignment";
1005
- function ir(e) {
1005
+ function ar(e) {
1006
1006
  return `${Ze}:${e}`;
1007
1007
  }
1008
- function ar(e, t, n) {
1008
+ function or(e, t, n) {
1009
1009
  if (e.direction === "inbound") return !0;
1010
1010
  if (e.author?.type === "user" && e.author.id === t) return !1;
1011
1011
  const r = e.payload?.mentions;
1012
1012
  return Array.isArray(r) && r.includes(t) ? !0 : n === "reply";
1013
1013
  }
1014
- function or(e) {
1014
+ function sr(e) {
1015
1015
  return e.subjectKind && e.subjectId ? { type: e.subjectKind, id: e.subjectId } : void 0;
1016
1016
  }
1017
1017
  const Qe = 12;
1018
- function sr(e, t, n = Qe) {
1018
+ function lr(e, t, n = Qe) {
1019
1019
  const r = t + 1;
1020
1020
  return e ? e.kind === "done" ? { status: "done", waitingOn: null, turns: r, reason: e.note } : e.kind === "escalate" ? { status: "escalated", waitingOn: null, turns: r, reason: e.reason } : r >= n ? {
1021
1021
  status: "escalated",
@@ -1056,13 +1056,13 @@ function et(e, t) {
1056
1056
  return e.userId === t.userId;
1057
1057
  }
1058
1058
  }
1059
- function lr(e, t) {
1059
+ function cr(e, t) {
1060
1060
  return e.filter((n) => n.enabled && et(n.ownerScope, t));
1061
1061
  }
1062
- function cr(e) {
1062
+ function ur(e) {
1063
1063
  return (e.startsWith("tool:") ? e.slice(5) : e).replace(/__/g, " · ").replace(/\./g, " · ").replace(/_/g, " ");
1064
1064
  }
1065
- const ur = [
1065
+ const dr = [
1066
1066
  { name: "text", type: "string" },
1067
1067
  { name: "subject", type: "string" },
1068
1068
  { name: "from", type: "string" },
@@ -1090,7 +1090,7 @@ const ur = [
1090
1090
  // dus `buildTriggerVars` kan hem niet zelf vullen: de job doet dat met de catalogus in de
1091
1091
  // hand, vóór het trigger-filter draait — net als contactId/companyId hierboven.
1092
1092
  { name: "assigneeUserId", type: "string" }
1093
- ], dr = {
1093
+ ], pr = {
1094
1094
  topics: [
1095
1095
  { name: "topicId", type: "string" },
1096
1096
  { name: "topic", type: "string" },
@@ -1114,7 +1114,7 @@ function tt(e) {
1114
1114
  return "org";
1115
1115
  }
1116
1116
  }
1117
- function pr(e) {
1117
+ function fr(e) {
1118
1118
  if (typeof e != "string") return;
1119
1119
  const t = e.trim();
1120
1120
  if (t === "org") return { kind: "org" };
@@ -1139,13 +1139,14 @@ function rt(e) {
1139
1139
  return { kind: "org" };
1140
1140
  }
1141
1141
  }
1142
- function fr(e) {
1143
- return e.agentId ? { kind: "user", userId: e.agentId } : rt(e.ownerScope);
1144
- }
1142
+ const it = rt;
1145
1143
  function mr(e) {
1144
+ return e.agentId ? { kind: "user", userId: e.agentId } : it(e.ownerScope);
1145
+ }
1146
+ function gr(e) {
1146
1147
  return nt(e);
1147
1148
  }
1148
- function gr(e, t) {
1149
+ function hr(e, t) {
1149
1150
  if (!t) return;
1150
1151
  let n = e;
1151
1152
  for (const r of t.split(".")) {
@@ -1154,65 +1155,65 @@ function gr(e, t) {
1154
1155
  }
1155
1156
  return n;
1156
1157
  }
1157
- function hr(e, t) {
1158
+ function yr(e, t) {
1158
1159
  return e.targets.find((n) => n.activityTypes.includes(t));
1159
1160
  }
1160
- function yr(e, t) {
1161
+ function Ar(e, t) {
1161
1162
  if (t)
1162
1163
  return e.targets.find((n) => n.id === t);
1163
1164
  }
1164
- function it(e) {
1165
+ function at(e) {
1165
1166
  return e?.kind === "assignment";
1166
1167
  }
1167
- function Ar(e) {
1168
+ function br(e) {
1168
1169
  const { trigger: t, agentId: n, target: r, activityType: i, assigneeUserId: a, authorUserId: o } = e;
1169
- return it(t) ? n ? r ? r.activityTypes.includes(i) ? a ? a !== n ? "assigned to someone else" : o && o === n ? "the agent assigned this to itself, which would restart its own run" : null : `no assignee found at ${r.assigneePath}` : `activity type ${i} does not announce an assignment for ${r.id}` : `assignment target kind "${t.targetKind}" is not declared by any installed app` : "this playbook has no agent, so an assignment can never be for it" : "trigger is not an assignment trigger";
1170
+ return at(t) ? n ? r ? r.activityTypes.includes(i) ? a ? a !== n ? "assigned to someone else" : o && o === n ? "the agent assigned this to itself, which would restart its own run" : null : `no assignee found at ${r.assigneePath}` : `activity type ${i} does not announce an assignment for ${r.id}` : `assignment target kind "${t.targetKind}" is not declared by any installed app` : "this playbook has no agent, so an assignment can never be for it" : "trigger is not an assignment trigger";
1170
1171
  }
1171
- function at(e) {
1172
+ function ot(e) {
1172
1173
  return `${e.type}:${e.id}`;
1173
1174
  }
1174
- const ot = "interaction";
1175
- function st(e) {
1176
- return e?.type === ot ? e.id : void 0;
1175
+ const st = "interaction";
1176
+ function lt(e) {
1177
+ return e?.type === st ? e.id : void 0;
1177
1178
  }
1178
- const lt = 64, ct = 8e3;
1179
- function br(e) {
1179
+ const ct = 64, ut = 8e3;
1180
+ function Er(e) {
1180
1181
  const t = typeof e == "number" ? e : Number(String(e ?? "").trim());
1181
1182
  if (!(!Number.isFinite(t) || t <= 0))
1182
- return Math.min(Math.max(Math.round(t), lt), ct);
1183
+ return Math.min(Math.max(Math.round(t), ct), ut);
1183
1184
  }
1184
- const Er = { kind: "workflow", steps: [] };
1185
- function Sr(e) {
1185
+ const Sr = { kind: "workflow", steps: [] };
1186
+ function _r(e) {
1186
1187
  return e?.kind === "workflow" ? e.steps : [];
1187
1188
  }
1188
- function _r(e) {
1189
+ function Tr(e) {
1189
1190
  return e?.kind === "procedure" ? e.procedure : void 0;
1190
1191
  }
1191
- const ut = ["done", "escalated", "failed", "stopped"];
1192
- function Tr(e) {
1193
- return ut.includes(e);
1192
+ const dt = ["done", "escalated", "failed", "stopped"];
1193
+ function Ir(e) {
1194
+ return dt.includes(e);
1194
1195
  }
1195
- function dt(e) {
1196
+ function pt(e) {
1196
1197
  return e === "waiting";
1197
1198
  }
1198
- function Ir(e) {
1199
- return e === "running" || dt(e);
1199
+ function Mr(e) {
1200
+ return e === "running" || pt(e);
1200
1201
  }
1201
1202
  function ge(e) {
1202
1203
  return e.subjectKind && e.subjectId ? { type: e.subjectKind, id: e.subjectId } : void 0;
1203
1204
  }
1204
- function Mr(e) {
1205
+ function Cr(e) {
1205
1206
  const t = ge(e);
1206
- return t ? at(t) : void 0;
1207
+ return t ? ot(t) : void 0;
1207
1208
  }
1208
- function Cr(e) {
1209
- return st(ge(e));
1209
+ function kr(e) {
1210
+ return lt(ge(e));
1210
1211
  }
1211
- function kr(e, t) {
1212
+ function wr(e, t) {
1212
1213
  const n = e.labels ?? [];
1213
1214
  return n.find((r) => r.locale === t)?.label ?? n[0]?.label ?? e.url;
1214
1215
  }
1215
- function wr(e, t, n) {
1216
+ function Nr(e, t, n) {
1216
1217
  const r = e.translations ?? [];
1217
1218
  return r.find((i) => i.locale === t) ?? (n ? r.find((i) => i.locale === n) : void 0) ?? { locale: t };
1218
1219
  }
@@ -1235,15 +1236,15 @@ function he(e) {
1235
1236
  const t = (e ?? "").toLowerCase();
1236
1237
  return Z.find((n) => n.code === t) ?? Z.find((n) => n.code === t.split("-")[0]);
1237
1238
  }
1238
- function Nr(e) {
1239
+ function vr(e) {
1239
1240
  return he(e)?.label ?? e;
1240
1241
  }
1241
- function vr(e) {
1242
+ function xr(e) {
1242
1243
  const t = he(e);
1243
1244
  return t ? t.english === t.label ? `${t.english} (${t.code})` : `${t.english} — ${t.label} (${t.code})` : e;
1244
1245
  }
1245
1246
  const ye = 3;
1246
- function pt(e, t) {
1247
+ function ft(e, t) {
1247
1248
  const n = /* @__PURE__ */ new Set();
1248
1249
  let r = 1, i = t.get(e)?.parentId;
1249
1250
  for (; i; ) {
@@ -1252,15 +1253,15 @@ function pt(e, t) {
1252
1253
  }
1253
1254
  return r;
1254
1255
  }
1255
- function xr(e, t, n) {
1256
+ function Or(e, t, n) {
1256
1257
  if (!e) return !0;
1257
1258
  if (e === t) return !1;
1258
1259
  const r = new Map(n.map((o) => [o.id, o]));
1259
- if (!r.has(e) || t && ft(e, t, r)) return !1;
1260
- const i = pt(e, r), a = t ? Ae(t, n) : 1;
1260
+ if (!r.has(e) || t && mt(e, t, r)) return !1;
1261
+ const i = ft(e, r), a = t ? Ae(t, n) : 1;
1261
1262
  return i + a <= ye;
1262
1263
  }
1263
- function ft(e, t, n) {
1264
+ function mt(e, t, n) {
1264
1265
  const r = /* @__PURE__ */ new Set();
1265
1266
  let i = n.get(e)?.parentId;
1266
1267
  for (; i; ) {
@@ -1276,32 +1277,32 @@ function Ae(e, t, n = /* @__PURE__ */ new Set()) {
1276
1277
  const r = t.filter((i) => i.parentId === e);
1277
1278
  return r.length ? 1 + Math.max(...r.map((i) => Ae(i.id, t, n))) : 1;
1278
1279
  }
1279
- const mt = "en";
1280
- function gt(e) {
1281
- return e.defaultLocale || e.locale || mt;
1280
+ const gt = "en";
1281
+ function ht(e) {
1282
+ return e.defaultLocale || e.locale || gt;
1282
1283
  }
1283
- function Or(e) {
1284
+ function $r(e) {
1284
1285
  const t = /* @__PURE__ */ new Set(), n = [];
1285
- for (const r of [gt(e), ...e.locales ?? []])
1286
+ for (const r of [ht(e), ...e.locales ?? []])
1286
1287
  !r || t.has(r) || (t.add(r), n.push(r));
1287
1288
  return n;
1288
1289
  }
1289
- function $r(e, t, n) {
1290
+ function Rr(e, t, n) {
1290
1291
  const r = e.translations ?? [];
1291
1292
  return r.find((i) => i.locale === t)?.name ?? (n ? r.find((i) => i.locale === n)?.name : void 0) ?? e.name;
1292
1293
  }
1293
- const ht = 20, yt = 20, v = 300;
1294
+ const yt = 20, At = 20, v = 300;
1294
1295
  function g(e) {
1295
1296
  return e.toLowerCase().replace(/[^\p{L}\p{N}\s]/gu, " ").replace(/\s+/g, " ").trim();
1296
1297
  }
1297
- function At(e) {
1298
+ function bt(e) {
1298
1299
  const t = e.replace(/\s+/g, " ").trim();
1299
1300
  if (t.length <= v) return t;
1300
1301
  const n = t.slice(0, v), r = Math.max(n.lastIndexOf(". "), n.lastIndexOf("! "), n.lastIndexOf("? "));
1301
1302
  return r > v * 0.6 ? n.slice(0, r + 1) : `${n.trimEnd()}…`;
1302
1303
  }
1303
- function Rr(e, t) {
1304
- const n = At(t.text), r = g(n);
1304
+ function Lr(e, t) {
1305
+ const n = bt(t.text), r = g(n);
1305
1306
  if (!r || (e.examples ?? []).some((o) => g(o) === r)) return null;
1306
1307
  const i = e.exampleCandidates ?? [], a = i.findIndex((o) => g(o.text) === r);
1307
1308
  if (a >= 0) {
@@ -1309,25 +1310,25 @@ function Rr(e, t) {
1309
1310
  const o = [...i];
1310
1311
  return o[a] = { ...o[a], corrected: !0, addedAt: t.addedAt }, Q(o);
1311
1312
  }
1312
- return Q([{ ...t, text: n }, ...i]).slice(0, yt);
1313
+ return Q([{ ...t, text: n }, ...i]).slice(0, At);
1313
1314
  }
1314
1315
  function Q(e) {
1315
1316
  return [...e].sort((t, n) => Number(n.corrected) - Number(t.corrected) || n.addedAt - t.addedAt);
1316
1317
  }
1317
- function Lr(e, t) {
1318
+ function Dr(e, t) {
1318
1319
  const n = g(t), r = (e.examples ?? []).filter((a) => a.trim());
1319
- return { examples: r.some((a) => g(a) === n) ? r : [...r, t].slice(-ht), exampleCandidates: bt(e, t) };
1320
+ return { examples: r.some((a) => g(a) === n) ? r : [...r, t].slice(-yt), exampleCandidates: Et(e, t) };
1320
1321
  }
1321
- function bt(e, t) {
1322
+ function Et(e, t) {
1322
1323
  const n = g(t);
1323
1324
  return (e.exampleCandidates ?? []).filter((r) => g(r.text) !== n);
1324
1325
  }
1325
- function Et(e, t) {
1326
+ function St(e, t) {
1326
1327
  const n = e.ownerScope;
1327
1328
  return n ? n.kind === "org" ? !0 : n.kind === "team" ? !!t && n.teamId === t : !1 : !1;
1328
1329
  }
1329
- function Dr(e, t) {
1330
- return e.filter((n) => Et(n, t));
1330
+ function Pr(e, t) {
1331
+ return e.filter((n) => St(n, t));
1331
1332
  }
1332
1333
  const be = [
1333
1334
  {
@@ -1423,23 +1424,23 @@ const be = [
1423
1424
  function S(e) {
1424
1425
  return be.find((t) => t.id === e);
1425
1426
  }
1426
- function Pr(e) {
1427
+ function Kr(e) {
1427
1428
  return S(e)?.label ?? e;
1428
1429
  }
1429
- function Kr(e, t = "gpt-5-mini") {
1430
+ function Ur(e, t = "gpt-5-mini") {
1430
1431
  return S(e)?.defaultModel ?? t;
1431
1432
  }
1432
- function Ur(e) {
1433
+ function jr(e) {
1433
1434
  return be.filter((t) => t.capabilities.includes(e));
1434
1435
  }
1435
- function jr(e) {
1436
+ function Gr(e) {
1436
1437
  const t = S(e);
1437
1438
  return !!t && !t.baseUrl;
1438
1439
  }
1439
- function Gr(e, t) {
1440
+ function Br(e, t) {
1440
1441
  return t === "text" ? !0 : S(e)?.attachmentKinds?.includes(t) === !0;
1441
1442
  }
1442
- function Br(e, t) {
1443
+ function Fr(e, t) {
1443
1444
  if (!e.enabled) return "ok";
1444
1445
  const n = ee(e.hardLimitNanos), r = ee(e.softLimitNanos);
1445
1446
  return n !== void 0 && t >= n ? "hard" : r !== void 0 && t >= r ? "soft" : "ok";
@@ -1447,76 +1448,76 @@ function Br(e, t) {
1447
1448
  function ee(e) {
1448
1449
  return typeof e == "number" ? e : void 0;
1449
1450
  }
1450
- function St(e, t = "month") {
1451
+ function _t(e, t = "month") {
1451
1452
  const n = new Date(e);
1452
1453
  return Date.UTC(n.getUTCFullYear(), n.getUTCMonth(), 1);
1453
1454
  }
1454
- function Fr(e, t = "month") {
1455
- const n = new Date(St(e, t));
1455
+ function Vr(e, t = "month") {
1456
+ const n = new Date(_t(e, t));
1456
1457
  return `${n.getUTCFullYear()}-${String(n.getUTCMonth() + 1).padStart(2, "0")}`;
1457
1458
  }
1458
- function Vr(e) {
1459
+ function Hr(e) {
1459
1460
  return e?.listeningEnabled !== !1;
1460
1461
  }
1461
- function Hr(e) {
1462
+ function Wr(e) {
1462
1463
  return e.credentialScope ? e.credentialScope : (e.authMode ?? "header") === "header" || e.oauth?.scope === "org" ? "shared" : "per-user";
1463
1464
  }
1464
- function Wr(e) {
1465
+ function zr(e) {
1465
1466
  return `mcp__${e}__`;
1466
1467
  }
1467
- const zr = /* @__PURE__ */ new Set(["mail", "message"]);
1468
- function _t(e, t) {
1468
+ const Xr = /* @__PURE__ */ new Set(["mail", "message"]);
1469
+ function Tt(e, t) {
1469
1470
  const n = e.settings?.signatures?.[t];
1470
1471
  return !n || !n.enabled || !n.body || n.body.trim() === "" ? null : n;
1471
1472
  }
1472
- function Xr(e, t, n, r = "html") {
1473
+ function Yr(e, t, n, r = "html") {
1473
1474
  if (!e) return n;
1474
- const i = _t(e, t);
1475
+ const i = Tt(e, t);
1475
1476
  return i ? `${n}${r === "text" ? `
1476
1477
 
1477
1478
  ` : t === "mail" ? "<br><br>-- <br>" : "<br><br>"}${i.body}` : n;
1478
1479
  }
1479
- function Yr(e) {
1480
+ function qr(e) {
1480
1481
  return e.endpoints ?? [];
1481
1482
  }
1482
- const qr = (e) => !!e.assignedUserId || !!e.assignedInboxId, Jr = (e) => e.status === "closed", Zr = (e) => ({
1483
+ const Jr = (e) => !!e.assignedUserId || !!e.assignedInboxId, Zr = (e) => e.status === "closed", Qr = (e) => ({
1483
1484
  urgent: 10,
1484
1485
  high: 5,
1485
1486
  normal: 2,
1486
1487
  low: 1
1487
- })[e.priority] || 0, Qr = (e, t = 30) => e.title?.length <= t ? e.title : `${e.title.substring(0, t)}...`;
1488
- function ei(e, t) {
1488
+ })[e.priority] || 0, ei = (e, t = 30) => e.title?.length <= t ? e.title : `${e.title.substring(0, t)}...`;
1489
+ function ti(e, t) {
1489
1490
  return e.lastActivityAt ? !(e.seenBy ?? []).includes(t) : !1;
1490
1491
  }
1491
- const ti = 1e3, ni = 2e3, ri = 500, ii = 12e3, ai = 4e3, Tt = ["contact", "company"];
1492
- function oi(e) {
1492
+ const ni = 1e3, ri = 2e3, ii = 500, ai = 12e3, oi = 4e3, It = ["contact", "company"];
1493
+ function si(e) {
1493
1494
  if (!e) return !1;
1494
1495
  const t = e.slice(0, e.indexOf(":"));
1495
- return Tt.includes(t);
1496
+ return It.includes(t);
1496
1497
  }
1497
- function si(e, t) {
1498
+ function li(e, t) {
1498
1499
  const n = e.accumulatedSeconds || 0;
1499
1500
  return e.runningSince ? n + Math.max(0, Math.floor((t - e.runningSince) / 1e3)) : n;
1500
1501
  }
1501
- function li(e, t) {
1502
+ function ci(e, t) {
1502
1503
  const n = Math.max(1, Math.ceil(Math.max(0, e) / 60));
1503
1504
  if (!t || t === "exact") return n * 60;
1504
1505
  const r = Number(t);
1505
1506
  return !Number.isFinite(r) || r <= 0 ? n * 60 : Math.ceil(n / r) * r * 60;
1506
1507
  }
1507
- function ci(e) {
1508
+ function ui(e) {
1508
1509
  const t = Math.max(0, Math.round(e / 60));
1509
1510
  return `${Math.floor(t / 60)}:${String(t % 60).padStart(2, "0")}`;
1510
1511
  }
1511
- function ui(e) {
1512
+ function di(e) {
1512
1513
  const t = Math.max(0, Math.floor(e)), n = (a) => String(a).padStart(2, "0"), r = Math.floor(t / 60) % 60, i = Math.floor(t / 3600);
1513
1514
  return i > 0 ? `${i}:${n(r)}:${n(t % 60)}` : `${n(r)}:${n(t % 60)}`;
1514
1515
  }
1515
- function It(e) {
1516
+ function Mt(e) {
1516
1517
  return (e || "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").slice(0, 48).replace(/^-+|-+$/g, "");
1517
1518
  }
1518
- function di(e, t) {
1519
- const n = It(e) || "werksoort", r = new Set(t);
1519
+ function pi(e, t) {
1520
+ const n = Mt(e) || "werksoort", r = new Set(t);
1520
1521
  if (!r.has(n)) return n;
1521
1522
  for (let i = 2; i < 500; i++) {
1522
1523
  const a = `${n}-${i}`;
@@ -1524,32 +1525,32 @@ function di(e, t) {
1524
1525
  }
1525
1526
  return `${n}-${r.size + 1}`;
1526
1527
  }
1527
- function pi(e, t) {
1528
+ function fi(e, t) {
1528
1529
  const n = e.ownerScope;
1529
1530
  return !n || n.kind === "org" ? !0 : t.includes(n.teamId);
1530
1531
  }
1531
- function fi(e) {
1532
- return e.filter((t) => !t.archived).sort(Mt);
1532
+ function mi(e) {
1533
+ return e.filter((t) => !t.archived).sort(Ct);
1533
1534
  }
1534
- function Mt(e, t) {
1535
+ function Ct(e, t) {
1535
1536
  const n = (e.order ?? 0) - (t.order ?? 0);
1536
1537
  return n !== 0 ? n : (e.label || "").localeCompare(t.label || "");
1537
1538
  }
1538
- function mi(e) {
1539
+ function gi(e) {
1539
1540
  return e.type === "agent";
1540
1541
  }
1541
- const Ct = "work_item", kt = "work_project";
1542
- function wt(e) {
1543
- return `${Ct}:${e}`;
1542
+ const kt = "work_item", wt = "work_project";
1543
+ function Nt(e) {
1544
+ return `${kt}:${e}`;
1544
1545
  }
1545
1546
  function Ee(e) {
1546
- return `${kt}:${e}`;
1547
+ return `${wt}:${e}`;
1547
1548
  }
1548
- function gi(e, t, n) {
1549
+ function hi(e, t, n) {
1549
1550
  const r = `${e}-${t}`;
1550
1551
  return n ? `${r}-${n}` : r;
1551
1552
  }
1552
- function hi(e) {
1553
+ function yi(e) {
1553
1554
  const t = /^([A-Za-z0-9]{2,8})-(\d+)(?:-(\d+))?$/.exec((e || "").trim());
1554
1555
  return t ? {
1555
1556
  projectKey: t[1].toUpperCase(),
@@ -1557,17 +1558,17 @@ function hi(e) {
1557
1558
  ...t[3] ? { subSequence: Number(t[3]) } : {}
1558
1559
  } : null;
1559
1560
  }
1560
- function yi(e) {
1561
+ function Ai(e) {
1561
1562
  return (e || "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toUpperCase().replace(/[^A-Z0-9]/g, "").slice(0, 3) || "PRJ";
1562
1563
  }
1563
- function Ai(e, t = 25) {
1564
- const n = /* @__PURE__ */ new Set([wt(e.id)]);
1564
+ function bi(e, t = 25) {
1565
+ const n = /* @__PURE__ */ new Set([Nt(e.id)]);
1565
1566
  e.projectId && n.add(Ee(e.projectId));
1566
1567
  for (const r of e.ancestorKeys ?? []) n.add(r);
1567
1568
  for (const r of e.partyKeys ?? []) n.add(r);
1568
1569
  return Array.from(n).slice(0, t);
1569
1570
  }
1570
- function bi(e) {
1571
+ function Ei(e) {
1571
1572
  return [Ee(e.id)];
1572
1573
  }
1573
1574
  const $ = [
@@ -1575,33 +1576,33 @@ const $ = [
1575
1576
  { key: "in_progress", label: "status_in_progress", category: "in_progress", order: 1 },
1576
1577
  { key: "done", label: "status_done", category: "done", order: 2 }
1577
1578
  ], Se = $.map((e) => e.key);
1578
- function Nt(e) {
1579
+ function vt(e) {
1579
1580
  return e?.statuses?.length ? e.statuses : $;
1580
1581
  }
1581
- function vt(e, t) {
1582
+ function xt(e, t) {
1582
1583
  return t.find((n) => n.key === e)?.category ?? "todo";
1583
1584
  }
1584
- function Ei(e, t) {
1585
+ function Si(e, t) {
1585
1586
  return t.find((n) => n.key === e);
1586
1587
  }
1587
- function Si(e) {
1588
- const t = Nt(e), n = e?.defaultStatusKey;
1589
- return n && t.some((r) => r.key === n) ? n : xt(t)[0]?.key ?? $[0].key;
1588
+ function _i(e) {
1589
+ const t = vt(e), n = e?.defaultStatusKey;
1590
+ return n && t.some((r) => r.key === n) ? n : Ot(t)[0]?.key ?? $[0].key;
1590
1591
  }
1591
- function xt(e) {
1592
+ function Ot(e) {
1592
1593
  return [...e].sort((t, n) => {
1593
1594
  const r = (t.order ?? 0) - (n.order ?? 0);
1594
1595
  return r !== 0 ? r : (t.label || "").localeCompare(n.label || "");
1595
1596
  });
1596
1597
  }
1597
- function _i(e, t) {
1598
- return vt(e, t) === "done";
1598
+ function Ti(e, t) {
1599
+ return xt(e, t) === "done";
1599
1600
  }
1600
- function Ot(e) {
1601
+ function $t(e) {
1601
1602
  return (e || "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").slice(0, 48).replace(/^-+|-+$/g, "");
1602
1603
  }
1603
- function Ti(e, t) {
1604
- const n = Ot(e) || "status", r = /* @__PURE__ */ new Set([...t, ...Se]);
1604
+ function Ii(e, t) {
1605
+ const n = $t(e) || "status", r = /* @__PURE__ */ new Set([...t, ...Se]);
1605
1606
  if (!r.has(n)) return n;
1606
1607
  for (let i = 2; i < 500; i++) {
1607
1608
  const a = `${n}-${i}`;
@@ -1609,7 +1610,7 @@ function Ti(e, t) {
1609
1610
  }
1610
1611
  return `${n}-${r.size + 1}`;
1611
1612
  }
1612
- function Ii(e) {
1613
+ function Mi(e) {
1613
1614
  const t = [];
1614
1615
  if (!e.length) return [{ index: -1, reason: "empty" }];
1615
1616
  const n = /* @__PURE__ */ new Set();
@@ -1644,7 +1645,7 @@ const R = {
1644
1645
  PL: { callingCode: "48", nsnMin: 9, nsnMax: 9 },
1645
1646
  US: { callingCode: "1", nsnMin: 10, nsnMax: 10 },
1646
1647
  CA: { callingCode: "1", nsnMin: 10, nsnMax: 10 }
1647
- }, $t = "NL", Rt = 15, Lt = 8, Dt = Array.from(
1648
+ }, Rt = "NL", Lt = 15, Dt = 8, Pt = Array.from(
1648
1649
  new Set(Object.values(R).map((e) => e.callingCode))
1649
1650
  ).sort((e, t) => t.length - e.length);
1650
1651
  function te(e) {
@@ -1655,8 +1656,8 @@ function E(e, t) {
1655
1656
  return e.length >= t.nsnMin && e.length <= t.nsnMax;
1656
1657
  }
1657
1658
  function ne(e) {
1658
- if (e.length > Rt) return null;
1659
- for (const t of Dt) {
1659
+ if (e.length > Lt) return null;
1660
+ for (const t of Pt) {
1660
1661
  if (!e.startsWith(t)) continue;
1661
1662
  const n = e.slice(t.length);
1662
1663
  for (const r of Object.values(R)) {
@@ -1666,16 +1667,16 @@ function ne(e) {
1666
1667
  }
1667
1668
  return null;
1668
1669
  }
1669
- return e.length < Lt ? null : `+${e}`;
1670
+ return e.length < Dt ? null : `+${e}`;
1670
1671
  }
1671
- function Pt(e) {
1672
+ function Kt(e) {
1672
1673
  let t = e.trim();
1673
1674
  const n = t.match(/^(sips?|tel|whatsapp):/i);
1674
1675
  n && (t = t.slice(n[0].length));
1675
1676
  const r = t.indexOf("@");
1676
1677
  return r >= 0 && (t = t.slice(0, r)), t.trim();
1677
1678
  }
1678
- function Mi(e) {
1679
+ function Ci(e) {
1679
1680
  if (!e) return !1;
1680
1681
  const t = e.indexOf("@");
1681
1682
  if (t <= 0) return !1;
@@ -1684,13 +1685,13 @@ function Mi(e) {
1684
1685
  }
1685
1686
  function re(e, t) {
1686
1687
  if (!e) return null;
1687
- const n = Pt(e);
1688
+ const n = Kt(e);
1688
1689
  if (!n) return null;
1689
1690
  const r = n.startsWith("+"), i = n.replace(/\D/g, "");
1690
1691
  if (!i) return null;
1691
1692
  if (r) return ne(i);
1692
1693
  if (i.startsWith("00")) return ne(i.slice(2));
1693
- const a = te(t) ?? te($t);
1694
+ const a = te(t) ?? te(Rt);
1694
1695
  if (!a) return null;
1695
1696
  const o = a.trunkPrefix;
1696
1697
  if (o && i.startsWith(o)) {
@@ -1703,7 +1704,7 @@ function re(e, t) {
1703
1704
  }
1704
1705
  return !o && E(i, a) ? `+${a.callingCode}${i}` : null;
1705
1706
  }
1706
- function Ci(e, t = 9) {
1707
+ function ki(e, t = 9) {
1707
1708
  const n = (e ?? "").replace(/\D/g, "");
1708
1709
  return n.length < t ? null : n.slice(-t);
1709
1710
  }
@@ -1714,11 +1715,11 @@ function _e(e) {
1714
1715
  const r = t.slice(0, n).split("+")[0], i = t.slice(n + 1);
1715
1716
  return !r || !i.includes(".") ? null : `${r}@${i}`;
1716
1717
  }
1717
- function ki(e) {
1718
+ function wi(e) {
1718
1719
  const t = _e(e);
1719
1720
  return t ? t.slice(t.lastIndexOf("@") + 1) : null;
1720
1721
  }
1721
- const Kt = /* @__PURE__ */ new Set([
1722
+ const Ut = /* @__PURE__ */ new Set([
1722
1723
  "co.uk",
1723
1724
  "org.uk",
1724
1725
  "gov.uk",
@@ -1728,14 +1729,14 @@ const Kt = /* @__PURE__ */ new Set([
1728
1729
  "com.br",
1729
1730
  "co.za"
1730
1731
  ]);
1731
- function Ut(e) {
1732
+ function jt(e) {
1732
1733
  if (!e) return null;
1733
1734
  const t = e.trim().toLowerCase().replace(/\.$/, "").split(".").filter(Boolean);
1734
1735
  if (t.length < 2) return null;
1735
1736
  const n = t.slice(-2).join(".");
1736
- return Kt.has(n) && t.length >= 3 ? t.slice(-3).join(".") : n;
1737
+ return Ut.has(n) && t.length >= 3 ? t.slice(-3).join(".") : n;
1737
1738
  }
1738
- const jt = /* @__PURE__ */ new Set([
1739
+ const Gt = /* @__PURE__ */ new Set([
1739
1740
  "gmail.com",
1740
1741
  "googlemail.com",
1741
1742
  "outlook.com",
@@ -1780,16 +1781,16 @@ const jt = /* @__PURE__ */ new Set([
1780
1781
  "proximus.be",
1781
1782
  "scarlet.be"
1782
1783
  ]);
1783
- function wi(e) {
1784
- const t = Ut(e);
1785
- return t ? jt.has(t) : !1;
1786
- }
1787
1784
  function Ni(e) {
1785
+ const t = jt(e);
1786
+ return t ? Gt.has(t) : !1;
1787
+ }
1788
+ function vi(e) {
1788
1789
  if (!e) return !1;
1789
1790
  const t = e.trim().toLowerCase();
1790
1791
  return t === "tel" || t === "sms" || t === "whatsapp" || t === "fax";
1791
1792
  }
1792
- function vi(e, t, n) {
1793
+ function xi(e, t, n) {
1793
1794
  if (!e || !t) return null;
1794
1795
  const r = e.trim().toLowerCase();
1795
1796
  if (r === "tel" || r === "sms" || r === "whatsapp") {
@@ -1807,17 +1808,17 @@ function vi(e, t, n) {
1807
1808
  const i = t.trim().toLowerCase();
1808
1809
  return i ? `${r}:${i}` : null;
1809
1810
  }
1810
- const Gt = /(\*\*|__)(?=\S)([\s\S]*?\S)\1/g, Bt = /(\*|_)(?=\S)([^*_\n]*?\S)\1/g;
1811
- function xi(e) {
1811
+ const Bt = /(\*\*|__)(?=\S)([\s\S]*?\S)\1/g, Ft = /(\*|_)(?=\S)([^*_\n]*?\S)\1/g;
1812
+ function Oi(e) {
1812
1813
  if (typeof e != "string" || !e) return "";
1813
1814
  let t = e;
1814
1815
  return t = t.replace(/```[a-z]*\n?/gi, "").replace(/~~~[a-z]*\n?/gi, ""), t = t.replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1"), t = t.replace(/\[([^\]]*)\]\([^)]*\)/g, "$1"), t = t.replace(/\[([^\]]*)\]\[[^\]]*\]/g, "$1"), t = t.replace(/<((?:https?|mailto):[^>\s]+)>/gi, "$1"), t = t.split(`
1815
1816
  `).map(
1816
1817
  (n) => n.replace(/^\s{0,3}#{1,6}\s+/, "").replace(/^\s{0,3}>\s?/, "").replace(/^\s*[-*+]\s+/, "").replace(/^\s*\d+[.)]\s+/, "").replace(/^\s*(?:[-*_]\s*){3,}$/, "")
1817
1818
  ).join(`
1818
- `), t = t.replace(Gt, "$2"), t = t.replace(Bt, "$2"), t = t.replace(/~~(?=\S)([\s\S]*?\S)~~/g, "$1"), t = t.replace(/`([^`\n]+)`/g, "$1"), t.replace(/\s+/g, " ").trim();
1819
+ `), t = t.replace(Bt, "$2"), t = t.replace(Ft, "$2"), t = t.replace(/~~(?=\S)([\s\S]*?\S)~~/g, "$1"), t = t.replace(/`([^`\n]+)`/g, "$1"), t.replace(/\s+/g, " ").trim();
1819
1820
  }
1820
- const Ft = [
1821
+ const Vt = [
1821
1822
  /<blockquote/i,
1822
1823
  /class="?gmail_quote/i,
1823
1824
  // Gmail quote container
@@ -1830,12 +1831,12 @@ const Ft = [
1830
1831
  // Outlook underscore separator before "From:"
1831
1832
  /\bOn\b[\s\S]{0,200}?\bwrote:/i
1832
1833
  // Gmail "On <date> <name> wrote:"
1833
- ], ie = /^\s*(?:>+\s*)?(?:from|van|sent|verzonden|to|aan|cc|subject|onderwerp|date|datum)\s*:/i, Vt = /^\s*(?:on|op)\b.{0,200}?\b(?:wrote|schreef|geschreven)\s*:?\s*$/i;
1834
- function Ht(e) {
1834
+ ], ie = /^\s*(?:>+\s*)?(?:from|van|sent|verzonden|to|aan|cc|subject|onderwerp|date|datum)\s*:/i, Ht = /^\s*(?:on|op)\b.{0,200}?\b(?:wrote|schreef|geschreven)\s*:?\s*$/i;
1835
+ function Wt(e) {
1835
1836
  const t = e.split(`
1836
1837
  `);
1837
1838
  for (let n = 0; n < t.length; n++)
1838
- if (Vt.test(t[n]) || ie.test(t[n]) && t.slice(n + 1, n + 4).some((r) => ie.test(r)))
1839
+ if (Ht.test(t[n]) || ie.test(t[n]) && t.slice(n + 1, n + 4).some((r) => ie.test(r)))
1839
1840
  return t.slice(0, n).join(`
1840
1841
  `).trim();
1841
1842
  return e;
@@ -1860,26 +1861,26 @@ function le(e) {
1860
1861
 
1861
1862
  `).trim();
1862
1863
  }
1863
- function Oi(e) {
1864
+ function $i(e) {
1864
1865
  if (typeof e != "string" || !e) return "";
1865
1866
  let t = e.length;
1866
- for (const a of Ft) {
1867
+ for (const a of Vt) {
1867
1868
  const o = e.search(a);
1868
1869
  o >= 0 && o < t && (t = o);
1869
1870
  }
1870
1871
  const n = e.slice(0, t);
1871
1872
  let r = le(se(ae(n)));
1872
- return r || (r = le(se(ae(e)))), Ht(r) || r;
1873
- }
1874
- const Wt = /(^|[._+-])(no-?reply|noreply|donotreply|do-not-reply|newsletter|nieuwsbrief|mailer|mailing|notifications?|bounce|postmaster|marketing)@/i, zt = /\b(unsubscribe|afmelden|uitschrijven|opt[\s-]?out|manage (your )?preferences|geen (e-?mails?|nieuwsbrief|berichten) meer)\b/i;
1875
- function $i(e, t) {
1876
- return !!(e && Wt.test(e) || t && zt.test(t));
1873
+ return r || (r = le(se(ae(e)))), Wt(r) || r;
1877
1874
  }
1878
- const Xt = 3, Yt = 600;
1875
+ const zt = /(^|[._+-])(no-?reply|noreply|donotreply|do-not-reply|newsletter|nieuwsbrief|mailer|mailing|notifications?|bounce|postmaster|marketing)@/i, Xt = /\b(unsubscribe|afmelden|uitschrijven|opt[\s-]?out|manage (your )?preferences|geen (e-?mails?|nieuwsbrief|berichten) meer)\b/i;
1879
1876
  function Ri(e, t) {
1880
- return e >= Xt || t >= Yt;
1877
+ return !!(e && zt.test(e) || t && Xt.test(t));
1881
1878
  }
1882
- const qt = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "image/gif", "image/webp"]), Jt = /* @__PURE__ */ new Set([
1879
+ const Yt = 3, qt = 600;
1880
+ function Li(e, t) {
1881
+ return e >= Yt || t >= qt;
1882
+ }
1883
+ const Jt = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "image/gif", "image/webp"]), Zt = /* @__PURE__ */ new Set([
1883
1884
  "text/plain",
1884
1885
  "text/markdown",
1885
1886
  "text/csv",
@@ -1888,55 +1889,55 @@ const qt = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "ima
1888
1889
  "application/xml",
1889
1890
  "text/xml"
1890
1891
  ]);
1891
- function Zt(e) {
1892
+ function Qt(e) {
1892
1893
  const t = (e ?? "").trim().toLowerCase().split(";")[0];
1893
- return t ? qt.has(t) ? "image" : t === "application/pdf" ? "pdf" : Jt.has(t) ? "text" : t.startsWith("audio/") ? "audio" : "unsupported" : "unsupported";
1894
+ return t ? Jt.has(t) ? "image" : t === "application/pdf" ? "pdf" : Zt.has(t) ? "text" : t.startsWith("audio/") ? "audio" : "unsupported" : "unsupported";
1894
1895
  }
1895
- const h = 1024 * 1024, Qt = {
1896
+ const h = 1024 * 1024, en = {
1896
1897
  image: 5 * h,
1897
1898
  pdf: 20 * h,
1898
1899
  text: 1 * h,
1899
1900
  audio: 20 * h
1900
- }, Li = 25 * h, Di = 5;
1901
- function Pi(e, t) {
1902
- const n = Zt(e);
1903
- return n === "unsupported" ? "unsupported" : t > Qt[n] ? "too-large" : null;
1901
+ }, Di = 25 * h, Pi = 5;
1902
+ function Ki(e, t) {
1903
+ const n = Qt(e);
1904
+ return n === "unsupported" ? "unsupported" : t > en[n] ? "too-large" : null;
1904
1905
  }
1905
- function en(e) {
1906
+ function tn(e) {
1906
1907
  return `${e.kind}:${e.id || e.url || e.title}`;
1907
1908
  }
1908
- function Ki(e, t = []) {
1909
+ function Ui(e, t = []) {
1909
1910
  const n = new Set(t), r = [], i = [];
1910
1911
  for (const a of e) {
1911
- const o = en(a);
1912
+ const o = tn(a);
1912
1913
  n.has(o) || (n.add(o), r.push(a), i.push(o));
1913
1914
  }
1914
1915
  return { sources: r, keys: i };
1915
1916
  }
1916
- function Ui(e) {
1917
+ function ji(e) {
1917
1918
  return e.sessions.filter(
1918
1919
  (t) => t.id !== e.exceptSessionId && t.state === "connected" && e.canHold(t.providerId)
1919
1920
  );
1920
1921
  }
1921
- function ji(e) {
1922
+ function Gi(e) {
1922
1923
  return e.sessions.filter(
1923
1924
  (t) => t.id !== e.exceptSessionId && t.state === "connected" && !e.canHold(t.providerId)
1924
1925
  );
1925
1926
  }
1926
- function Gi(e) {
1927
+ function Bi(e) {
1927
1928
  return e.sessions.some(
1928
1929
  (n) => n.id !== e.exceptSessionId && (n.state === "connected" || n.state === "on_hold")
1929
1930
  ) ? { admit: !1, reason: "busy" } : { admit: !0 };
1930
1931
  }
1931
- function tn(e, t) {
1932
- const n = new Set(e.disabledIntents ?? []), r = e.intentOverrides ?? {}, i = t.intents.filter((o) => !n.has(o.intent)).map((o) => rn(o, r[o.intent]));
1932
+ function nn(e, t) {
1933
+ const n = new Set(e.disabledIntents ?? []), r = e.intentOverrides ?? {}, i = t.intents.filter((o) => !n.has(o.intent)).map((o) => an(o, r[o.intent]));
1933
1934
  if (!e.extraIntents || e.extraIntents.length === 0) return i;
1934
1935
  const a = new Set(i.map((o) => o.intent));
1935
1936
  for (const o of e.extraIntents)
1936
1937
  a.has(o.intent) || (i.push(o), a.add(o.intent));
1937
1938
  return i;
1938
1939
  }
1939
- function nn(e, t) {
1940
+ function rn(e, t) {
1940
1941
  const n = {};
1941
1942
  for (const r of e.intents) {
1942
1943
  if (!r.togglable) continue;
@@ -1945,46 +1946,46 @@ function nn(e, t) {
1945
1946
  }
1946
1947
  return n;
1947
1948
  }
1948
- function Bi(e, t) {
1949
- const n = nn(e, t);
1949
+ function Fi(e, t) {
1950
+ const n = rn(e, t);
1950
1951
  return Object.entries(n).filter(([, r]) => !r).map(([r]) => r);
1951
1952
  }
1952
- function rn(e, t) {
1953
+ function an(e, t) {
1953
1954
  return t ? {
1954
1955
  intent: t.intent ?? e.intent,
1955
1956
  targetSchemes: t.targetSchemes ?? e.targetSchemes,
1956
1957
  transport: t.transport ?? e.transport
1957
1958
  } : e;
1958
1959
  }
1959
- function Fi(e, t) {
1960
+ function Vi(e, t) {
1960
1961
  const n = [];
1961
1962
  for (const r of e) {
1962
1963
  if (!r.enabled) continue;
1963
1964
  const i = t[r.providerId];
1964
1965
  if (i)
1965
- for (const a of tn(r, i))
1966
+ for (const a of nn(r, i))
1966
1967
  n.push({ channel: r, description: i, capability: a });
1967
1968
  }
1968
1969
  return n;
1969
1970
  }
1970
- function Vi(e, t) {
1971
+ function Hi(e, t) {
1971
1972
  return t.filter((n) => n.capability.intent === e);
1972
1973
  }
1973
- function an(e, t) {
1974
+ function on(e, t) {
1974
1975
  return t.filter((n) => n.capability.targetSchemes.includes(e));
1975
1976
  }
1976
- function Hi(e, t) {
1977
- return an(e.scheme, t);
1977
+ function Wi(e, t) {
1978
+ return on(e.scheme, t);
1978
1979
  }
1979
- function Wi(e, t, n) {
1980
+ function zi(e, t, n) {
1980
1981
  const r = [];
1981
1982
  for (const i of e)
1982
1983
  for (const a of n)
1983
1984
  a.capability.intent === t && a.capability.targetSchemes.includes(i.scheme) && r.push({ channelIntent: a, endpoint: i });
1984
1985
  return r;
1985
1986
  }
1986
- var on = /* @__PURE__ */ ((e) => (e.MAILTO = "mailto", e.SIP = "sip", e.TEL = "tel", e.WEBHOOK = "webhook", e.USERNAME = "username", e.ID = "id", e.CUSTOM = "custom", e.URL = "url", e.TELEGRAM = "telegram", e.WHATSAPP = "whatsapp", e.MESSENGER = "messenger", e.INSTAGRAM = "instagram", e.VIBER = "viber", e.SMS = "sms", e.FAX = "fax", e.TEAMS = "teams", e.CALENDAR = "calendar", e))(on || {});
1987
- const sn = {
1987
+ var sn = /* @__PURE__ */ ((e) => (e.MAILTO = "mailto", e.SIP = "sip", e.TEL = "tel", e.WEBHOOK = "webhook", e.USERNAME = "username", e.ID = "id", e.CUSTOM = "custom", e.URL = "url", e.TELEGRAM = "telegram", e.WHATSAPP = "whatsapp", e.MESSENGER = "messenger", e.INSTAGRAM = "instagram", e.VIBER = "viber", e.SMS = "sms", e.FAX = "fax", e.TEAMS = "teams", e.CALENDAR = "calendar", e))(sn || {});
1988
+ const ln = {
1988
1989
  mailto: "mail",
1989
1990
  sip: "tel",
1990
1991
  tel: "tel",
@@ -2006,10 +2007,10 @@ const sn = {
2006
2007
  id: "note",
2007
2008
  custom: "note"
2008
2009
  };
2009
- function zi(e) {
2010
- return e ? sn[e] ?? "note" : "note";
2010
+ function Xi(e) {
2011
+ return e ? ln[e] ?? "note" : "note";
2011
2012
  }
2012
- const Xi = "message_window", Yi = "message_templates", qi = {
2013
+ const Yi = "message_window", qi = "message_templates", Ji = {
2013
2014
  // E-mail
2014
2015
  FROM: "from",
2015
2016
  TO: "to",
@@ -2026,8 +2027,8 @@ const Xi = "message_window", Yi = "message_templates", qi = {
2026
2027
  // Voice/conference
2027
2028
  HOST: "host",
2028
2029
  PARTICIPANT: "participant"
2029
- }, Ji = (e, t) => ({ intent: e, ...t }), Zi = "folder_management", Qi = "remote_search", ea = { ok: !1, code: "UNSUPPORTED", message: "Provider does not support this op" }, ta = "resources.describe", na = "resources.search", ra = "resources.resolve";
2030
- function ia(e) {
2030
+ }, Zi = (e, t) => ({ intent: e, ...t }), Qi = "folder_management", ea = "remote_search", ta = { ok: !1, code: "UNSUPPORTED", message: "Provider does not support this op" }, na = "resources.describe", ra = "resources.search", ia = "resources.resolve";
2031
+ function aa(e) {
2031
2032
  const t = e.indexOf(":");
2032
2033
  return t === -1 ? e : e.slice(0, t);
2033
2034
  }
@@ -2036,21 +2037,21 @@ function Ie(e) {
2036
2037
  const t = typeof e == "string" ? e.match(/apps\/([^/?#]+)/) : null;
2037
2038
  return t ? t[1] : null;
2038
2039
  }
2039
- function aa(e) {
2040
+ function oa(e) {
2040
2041
  const t = Ie(e);
2041
2042
  return t ? t !== Te : typeof e == "string" && e.startsWith("/wake");
2042
2043
  }
2043
- function oa(e) {
2044
+ function sa(e) {
2044
2045
  return typeof e != "string" || e === "" || e === "/" ? !0 : Ie(e) === Te;
2045
2046
  }
2046
- function ln(e) {
2047
+ function cn(e) {
2047
2048
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2048
2049
  }
2049
- function cn(e) {
2050
- const n = e.split("/").filter(Boolean).map((r) => r.startsWith(":") ? r.endsWith("?") ? "(?:/[^/]+)?" : "/[^/]+" : "/" + ln(r)).join("");
2050
+ function un(e) {
2051
+ const n = e.split("/").filter(Boolean).map((r) => r.startsWith(":") ? r.endsWith("?") ? "(?:/[^/]+)?" : "/[^/]+" : "/" + cn(r)).join("");
2051
2052
  return new RegExp(`^${n}\\/?$`);
2052
2053
  }
2053
- function un(e, t) {
2054
+ function dn(e, t) {
2054
2055
  const n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean), i = {};
2055
2056
  return n.forEach((a, o) => {
2056
2057
  if (a.startsWith(":")) {
@@ -2059,14 +2060,14 @@ function un(e, t) {
2059
2060
  }
2060
2061
  }), i;
2061
2062
  }
2062
- function dn(e) {
2063
+ function pn(e) {
2063
2064
  return e.publicBasePath ?? `/apps/${e.name}`;
2064
2065
  }
2065
- function sa(e) {
2066
+ function la(e) {
2066
2067
  const t = [];
2067
2068
  for (const n of e) {
2068
2069
  if (!n?.name) continue;
2069
- const r = dn(n);
2070
+ const r = pn(n);
2070
2071
  for (const i of n.routes ?? []) {
2071
2072
  if (!i.public) continue;
2072
2073
  const a = i.path === "/" ? "" : i.path;
@@ -2080,7 +2081,7 @@ function sa(e) {
2080
2081
  }
2081
2082
  return t;
2082
2083
  }
2083
- function pn(e, t) {
2084
+ function fn(e, t) {
2084
2085
  const n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
2085
2086
  for (let i = 0; i < Math.min(n.length, r.length); i++) {
2086
2087
  const a = n[i].startsWith(":"), o = r[i].startsWith(":");
@@ -2088,17 +2089,17 @@ function pn(e, t) {
2088
2089
  }
2089
2090
  return n.length > r.length;
2090
2091
  }
2091
- function fn(e, t) {
2092
+ function mn(e, t) {
2092
2093
  if (typeof e != "string") return null;
2093
2094
  let n = null;
2094
2095
  for (const r of t)
2095
- cn(r.pattern).test(e) && (!n || pn(r.pattern, n.pattern)) && (n = r);
2096
- return n ? { ...n, params: { ...n.props, ...un(n.pattern, e) } } : null;
2096
+ un(r.pattern).test(e) && (!n || fn(r.pattern, n.pattern)) && (n = r);
2097
+ return n ? { ...n, params: { ...n.props, ...dn(n.pattern, e) } } : null;
2097
2098
  }
2098
- function la(e, t) {
2099
- return fn(e, t) !== null;
2099
+ function ca(e, t) {
2100
+ return mn(e, t) !== null;
2100
2101
  }
2101
- const ca = "sync-source", ua = "sync-target", da = 20, mn = {
2102
+ const ua = "sync-source", da = "sync-target", pa = 20, gn = {
2102
2103
  afrikaans: [
2103
2104
  "[Muziek]",
2104
2105
  "(C) TV GELDERLAND 2021",
@@ -2248,14 +2249,14 @@ const ca = "sync-source", ua = "sync-target", da = 20, mn = {
2248
2249
  "[MÚSICA]",
2249
2250
  "[Music cuts in British]"
2250
2251
  ]
2251
- }, gn = (e) => {
2252
+ }, hn = (e) => {
2252
2253
  let t = e;
2253
- return Object.values(mn).forEach((n) => {
2254
+ return Object.values(gn).forEach((n) => {
2254
2255
  n.forEach((r) => {
2255
2256
  t = t.replaceAll(r, "");
2256
2257
  });
2257
2258
  }), t = t.replace(/\(.*?\)/g, ""), t = t.replace(/\[.*?\]/g, ""), t;
2258
- }, hn = 6e4, yn = 8e3, An = 2, bn = 0.4, En = 3, Sn = /* @__PURE__ */ new Set([
2259
+ }, yn = 6e4, An = 8e3, bn = 2, En = 0.4, Sn = 3, _n = /* @__PURE__ */ new Set([
2259
2260
  "aan",
2260
2261
  "als",
2261
2262
  "ben",
@@ -2368,13 +2369,13 @@ const ca = "sync-source", ua = "sync-target", da = 20, mn = {
2368
2369
  "you",
2369
2370
  "your"
2370
2371
  ]);
2371
- function _n(e) {
2372
+ function Tn(e) {
2372
2373
  const t = /* @__PURE__ */ new Set();
2373
2374
  for (const n of e.toLowerCase().split(/[^a-z0-9À-ɏ]+/))
2374
- n.length < En || Sn.has(n) || t.add(n);
2375
+ n.length < Sn || _n.has(n) || t.add(n);
2375
2376
  return [...t];
2376
2377
  }
2377
- function Tn(e, t) {
2378
+ function In(e, t) {
2378
2379
  if (!e.length) return 0;
2379
2380
  if (!t.length) return 1;
2380
2381
  const n = new Set(t), r = new Set(e);
@@ -2382,58 +2383,58 @@ function Tn(e, t) {
2382
2383
  for (const a of r) n.has(a) || (i += 1);
2383
2384
  return i / r.size;
2384
2385
  }
2385
- function In(e, t = hn) {
2386
+ function Mn(e, t = yn) {
2386
2387
  const n = e.filter((o) => !o.partial && typeof o.text == "string");
2387
2388
  if (!n.length) return { text: "", segmentCount: 0 };
2388
2389
  const i = n.reduce((o, s) => Math.max(o, s.endedAt ?? 0), 0) - t;
2389
- return { text: n.filter((o) => (o.endedAt ?? 0) >= i).map((o) => gn(o.text).trim()).filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), segmentCount: n.length };
2390
+ return { text: n.filter((o) => (o.endedAt ?? 0) >= i).map((o) => hn(o.text).trim()).filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), segmentCount: n.length };
2390
2391
  }
2391
- const Mn = 60;
2392
- function pa(e, t, n = Mn) {
2392
+ const Cn = 60;
2393
+ function fa(e, t, n = Cn) {
2393
2394
  const r = new Set(e), i = [...e];
2394
2395
  for (const a of t)
2395
2396
  !a || r.has(a) || (r.add(a), i.push(a));
2396
2397
  return i.slice(-n);
2397
2398
  }
2398
- function fa(e) {
2399
+ function ma(e) {
2399
2400
  const { segments: t, now: n, state: r } = e;
2400
- if (r.lastTriggerAt && n - r.lastTriggerAt < yn)
2401
+ if (r.lastTriggerAt && n - r.lastTriggerAt < An)
2401
2402
  return { trigger: !1, reason: "too_soon" };
2402
- const i = In(t, e.windowMs);
2403
+ const i = Mn(t, e.windowMs);
2403
2404
  if (!i.text) return { trigger: !1, reason: "no_speech" };
2404
2405
  const a = i.segmentCount - (r.lastSegmentCount ?? 0);
2405
- if (r.lastQueryTerms && a < An)
2406
+ if (r.lastQueryTerms && a < bn)
2406
2407
  return { trigger: !1, reason: "too_few_new" };
2407
- const o = _n(i.text);
2408
- return o.length ? r.lastQueryTerms?.length && Tn(o, r.lastQueryTerms) < bn ? { trigger: !1, reason: "same_topic" } : { trigger: !0, text: i.text, terms: o, segmentCount: i.segmentCount } : { trigger: !1, reason: "no_speech" };
2408
+ const o = Tn(i.text);
2409
+ return o.length ? r.lastQueryTerms?.length && In(o, r.lastQueryTerms) < En ? { trigger: !1, reason: "same_topic" } : { trigger: !0, text: i.text, terms: o, segmentCount: i.segmentCount } : { trigger: !1, reason: "no_speech" };
2409
2410
  }
2410
- const Me = 9e4, Cn = ["out_of_office"], Ce = (e) => Cn.includes(e);
2411
- function ma(e, t, n) {
2411
+ const Me = 9e4, kn = ["out_of_office"], Ce = (e) => kn.includes(e);
2412
+ function ga(e, t, n) {
2412
2413
  const r = n - e < Me, i = t?.status && (!t.expiresAt || t.expiresAt > n) ? t : void 0;
2413
2414
  if (!i?.status) return { online: r, status: r ? "available" : "offline" };
2414
2415
  const a = i.status;
2415
2416
  return !r && !Ce(a) ? { online: !1, status: "offline" } : { online: r, status: a, message: i.message };
2416
2417
  }
2417
- function ga(e, t) {
2418
+ function ha(e, t) {
2418
2419
  const n = t - e.lastSeenAt < Me, r = n || Ce(e.status) ? e.status : "offline";
2419
2420
  return n === e.online && r === e.status ? e : { ...e, online: n, status: r };
2420
2421
  }
2421
- function ha(e, t) {
2422
+ function ya(e, t) {
2422
2423
  return e?.teamId && t.includes(e.teamId) ? { teamId: e.teamId, mustChoose: !1 } : t.length === 1 ? { teamId: t[0], mustChoose: !1 } : { teamId: void 0, mustChoose: t.length > 1 };
2423
2424
  }
2424
- function ya(e) {
2425
+ function Aa(e) {
2425
2426
  return e.providerAvailable && e.allowed;
2426
2427
  }
2427
- const Aa = "installation-id";
2428
+ const ba = "installation-id";
2428
2429
  export {
2429
2430
  m as ACTIVITY_CATALOG,
2430
- Qt as AI_ATTACHMENT_LIMITS,
2431
- Di as AI_ATTACHMENT_MAX_PER_TURN,
2432
- Li as AI_ATTACHMENT_TURN_BUDGET,
2431
+ en as AI_ATTACHMENT_LIMITS,
2432
+ Pi as AI_ATTACHMENT_MAX_PER_TURN,
2433
+ Di as AI_ATTACHMENT_TURN_BUDGET,
2433
2434
  be as AI_VENDORS,
2434
2435
  Fe as ALLOWED_LINK_SCHEMES,
2435
2436
  B as ARTIFACT_MAX_BLOCKS,
2436
- Yn as ARTIFACT_MAX_BODY_BYTES,
2437
+ qn as ARTIFACT_MAX_BODY_BYTES,
2437
2438
  N as ARTIFACT_MAX_CELL_LEN,
2438
2439
  W as ARTIFACT_MAX_KPI_ITEMS,
2439
2440
  F as ARTIFACT_MAX_LIST_ITEMS,
@@ -2443,23 +2444,23 @@ export {
2443
2444
  Ze as ASSIGNMENT_SCOPE_KIND,
2444
2445
  Te as AUTH_APP_NAME,
2445
2446
  $e as ActivityTypeRegistry,
2446
- Gn as BUILT_IN_ONLY,
2447
- yn as CADENCE_FLOOR_MS,
2448
- An as CADENCE_MIN_NEW_SEGMENTS,
2449
- bn as CADENCE_MIN_NOVELTY,
2450
- hn as CADENCE_WINDOW_MS,
2451
- dr as CLASSIFY_VARS,
2452
- Hn as CORE_DIMENSIONS,
2453
- on as CommunicationScheme,
2454
- ai as DEFAULT_MEMORY_BUDGET,
2455
- $t as DEFAULT_PHONE_REGION,
2456
- Er as EMPTY_WORKFLOW,
2457
- Zi as FEATURE_FOLDER_MANAGEMENT,
2458
- Qi as FEATURE_REMOTE_SEARCH,
2459
- Aa as INSTALLATION_HEADER,
2460
- ot as INTERACTION_KIND,
2461
- qi as InteractionParticipantRole,
2462
- mt as KB_FALLBACK_LOCALE,
2447
+ Bn as BUILT_IN_ONLY,
2448
+ An as CADENCE_FLOOR_MS,
2449
+ bn as CADENCE_MIN_NEW_SEGMENTS,
2450
+ En as CADENCE_MIN_NOVELTY,
2451
+ yn as CADENCE_WINDOW_MS,
2452
+ pr as CLASSIFY_VARS,
2453
+ Wn as CORE_DIMENSIONS,
2454
+ sn as CommunicationScheme,
2455
+ oi as DEFAULT_MEMORY_BUDGET,
2456
+ Rt as DEFAULT_PHONE_REGION,
2457
+ Sr as EMPTY_WORKFLOW,
2458
+ Qi as FEATURE_FOLDER_MANAGEMENT,
2459
+ ea as FEATURE_REMOTE_SEARCH,
2460
+ ba as INSTALLATION_HEADER,
2461
+ st as INTERACTION_KIND,
2462
+ Ji as InteractionParticipantRole,
2463
+ gt as KB_FALLBACK_LOCALE,
2463
2464
  Z as KB_LOCALES,
2464
2465
  $ as LOOSE_STATUSES,
2465
2466
  M as MAX_ACTIONS,
@@ -2468,227 +2469,228 @@ export {
2468
2469
  ye as MAX_COLLECTION_DEPTH,
2469
2470
  T as MAX_FIELDS,
2470
2471
  I as MAX_LIST_ITEMS,
2471
- ti as MAX_MEMORY_BROWSE,
2472
- ii as MAX_MEMORY_BUDGET,
2473
- ni as MAX_MEMORY_CHARS,
2474
- Mn as MAX_SHOWN_KEYS,
2475
- yt as MAX_TOPIC_CANDIDATES,
2476
- ht as MAX_TOPIC_EXAMPLES,
2472
+ ni as MAX_MEMORY_BROWSE,
2473
+ ai as MAX_MEMORY_BUDGET,
2474
+ ri as MAX_MEMORY_CHARS,
2475
+ Cn as MAX_SHOWN_KEYS,
2476
+ At as MAX_TOPIC_CANDIDATES,
2477
+ yt as MAX_TOPIC_EXAMPLES,
2477
2478
  v as MAX_TOPIC_EXAMPLE_CHARS,
2478
- ri as MIN_MEMORY_BUDGET,
2479
+ ii as MIN_MEMORY_BUDGET,
2479
2480
  R as PHONE_REGIONS,
2480
2481
  Me as PRESENCE_ONLINE_WINDOW_MS,
2481
- Cn as PRESENCE_SURVIVES_OFFLINE,
2482
- Yi as PROVIDER_FEATURE_MESSAGE_TEMPLATES,
2483
- Xi as PROVIDER_FEATURE_MESSAGE_WINDOW,
2484
- jt as PUBLIC_EMAIL_DOMAINS,
2482
+ kn as PRESENCE_SURVIVES_OFFLINE,
2483
+ qi as PROVIDER_FEATURE_MESSAGE_TEMPLATES,
2484
+ Yi as PROVIDER_FEATURE_MESSAGE_WINDOW,
2485
+ Gt as PUBLIC_EMAIL_DOMAINS,
2485
2486
  q as READ_STEP_TYPES,
2486
- Tt as RELATED_SUBJECT_KINDS,
2487
+ It as RELATED_SUBJECT_KINDS,
2487
2488
  Se as RESERVED_STATUS_KEYS,
2488
- ta as RESOURCE_DESCRIBE_SERVICE,
2489
- ra as RESOURCE_RESOLVE_SERVICE,
2490
- na as RESOURCE_SEARCH_SERVICE,
2491
- zr as SIGNATURE_INTENTS,
2492
- ct as STEP_MAX_TOKENS_MAX,
2493
- lt as STEP_MAX_TOKENS_MIN,
2494
- Yt as SUMMARY_MIN_LAST_CHARS,
2495
- Xt as SUMMARY_MIN_MESSAGES,
2496
- da as SYNC_RUN_MAX_ERRORS,
2497
- ca as SYNC_SOURCE_PROVIDER_GROUP,
2498
- ua as SYNC_TARGET_PROVIDER_GROUP,
2489
+ na as RESOURCE_DESCRIBE_SERVICE,
2490
+ ia as RESOURCE_RESOLVE_SERVICE,
2491
+ ra as RESOURCE_SEARCH_SERVICE,
2492
+ Xr as SIGNATURE_INTENTS,
2493
+ ut as STEP_MAX_TOKENS_MAX,
2494
+ ct as STEP_MAX_TOKENS_MIN,
2495
+ qt as SUMMARY_MIN_LAST_CHARS,
2496
+ Yt as SUMMARY_MIN_MESSAGES,
2497
+ pa as SYNC_RUN_MAX_ERRORS,
2498
+ ua as SYNC_SOURCE_PROVIDER_GROUP,
2499
+ da as SYNC_TARGET_PROVIDER_GROUP,
2499
2500
  Je as TERMINAL_ASSIGNMENT_STATUSES,
2500
- ut as TERMINAL_RUN_STATUSES,
2501
- ur as TRIGGER_VARS,
2502
- ea as UNSUPPORTED,
2501
+ dt as TERMINAL_RUN_STATUSES,
2502
+ dr as TRIGGER_VARS,
2503
+ ta as UNSUPPORTED,
2503
2504
  Ue as USAGE_DIMENSIONS,
2504
2505
  je as USAGE_DIMENSION_IDS,
2505
- Ct as WORK_ITEM_SCOPE_KIND,
2506
- kt as WORK_PROJECT_SCOPE_KIND,
2507
- Lr as acceptExampleCandidate,
2506
+ kt as WORK_ITEM_SCOPE_KIND,
2507
+ wt as WORK_PROJECT_SCOPE_KIND,
2508
+ Dr as acceptExampleCandidate,
2508
2509
  nt as actingIdentityKey,
2509
- fi as activeWorkTypes,
2510
- vn as activityIconOf,
2511
- jn as activityJoinUrl,
2510
+ mi as activeWorkTypes,
2511
+ xn as activityIconOf,
2512
+ Gn as activityJoinUrl,
2512
2513
  ve as activitySnippet,
2513
2514
  xe as activityTextParams,
2514
- Un as activityTimelineText,
2515
- Vn as activityTimestamp,
2515
+ jn as activityTimelineText,
2516
+ Hn as activityTimestamp,
2516
2517
  d as activityTypeInfo,
2517
- mr as actorKey,
2518
- Rr as addExampleCandidate,
2519
- ga as agePresenceEntry,
2520
- Zt as aiAttachmentKind,
2521
- Pi as aiAttachmentRejection,
2518
+ gr as actorKey,
2519
+ Lr as addExampleCandidate,
2520
+ ha as agePresenceEntry,
2521
+ Qt as aiAttachmentKind,
2522
+ Ki as aiAttachmentRejection,
2522
2523
  ee as aiBudgetLimit,
2523
- Fr as aiBudgetPeriodKey,
2524
- St as aiBudgetPeriodStart,
2525
- Br as aiBudgetState,
2526
- Gr as aiVendorAcceptsAttachment,
2527
- Kr as aiVendorDefaultModel,
2528
- Pr as aiVendorLabel,
2529
- jr as aiVendorNeedsBaseUrl,
2530
- Ur as aiVendorsWith,
2524
+ Vr as aiBudgetPeriodKey,
2525
+ _t as aiBudgetPeriodStart,
2526
+ Fr as aiBudgetState,
2527
+ Br as aiVendorAcceptsAttachment,
2528
+ Ur as aiVendorDefaultModel,
2529
+ Kr as aiVendorLabel,
2530
+ Gr as aiVendorNeedsBaseUrl,
2531
+ jr as aiVendorsWith,
2531
2532
  Ie as appNameFromPath,
2532
- li as applyRounding,
2533
- Xr as applySignature,
2534
- Jn as artifactBodyBytes,
2535
- Zn as artifactOutline,
2536
- Qn as artifactToMarkdown,
2537
- Ar as assignmentMismatch,
2538
- ir as assignmentScopeKey,
2539
- or as assignmentSubject,
2540
- Bn as buildActivityPreview,
2541
- Fi as buildChannelIntents,
2542
- er as buildShareKeys,
2543
- In as buildWindow,
2544
- xr as canNestUnder,
2545
- Rn as carriesText,
2546
- $r as categoryLabel,
2547
- vt as categoryOf,
2548
- zi as channelKindForScheme,
2549
- xn as channelKindOf,
2550
- br as clampStepMaxTokens,
2551
- Oi as cleanMessageText,
2552
- Mt as compareWorkTypes,
2553
- sr as decideAssignmentState,
2554
- fa as decideCadence,
2555
- Gi as decideIncomingCall,
2556
- gt as defaultLocaleOf,
2557
- Si as defaultStatusKey,
2558
- Ji as defineIntent,
2559
- pt as depthOf,
2560
- ma as derivePresence,
2561
- Bi as disabledIntentsFromCapabilities,
2562
- si as elapsedSeconds,
2563
- ki as emailDomain,
2564
- vi as endpointKey,
2565
- un as extractParams,
2566
- _n as extractTerms,
2567
- Hi as filterByEndpoint,
2568
- Vi as filterByIntent,
2569
- an as filterByTargetScheme,
2533
+ ci as applyRounding,
2534
+ Yr as applySignature,
2535
+ Zn as artifactBodyBytes,
2536
+ Qn as artifactOutline,
2537
+ er as artifactToMarkdown,
2538
+ br as assignmentMismatch,
2539
+ ar as assignmentScopeKey,
2540
+ sr as assignmentSubject,
2541
+ Fn as buildActivityPreview,
2542
+ Vi as buildChannelIntents,
2543
+ tr as buildShareKeys,
2544
+ Mn as buildWindow,
2545
+ Or as canNestUnder,
2546
+ Ln as carriesText,
2547
+ Rr as categoryLabel,
2548
+ xt as categoryOf,
2549
+ Xi as channelKindForScheme,
2550
+ On as channelKindOf,
2551
+ Er as clampStepMaxTokens,
2552
+ $i as cleanMessageText,
2553
+ Ct as compareWorkTypes,
2554
+ lr as decideAssignmentState,
2555
+ ma as decideCadence,
2556
+ Bi as decideIncomingCall,
2557
+ ht as defaultLocaleOf,
2558
+ _i as defaultStatusKey,
2559
+ Zi as defineIntent,
2560
+ ft as depthOf,
2561
+ ga as derivePresence,
2562
+ Fi as disabledIntentsFromCapabilities,
2563
+ li as elapsedSeconds,
2564
+ wi as emailDomain,
2565
+ xi as endpointKey,
2566
+ dn as extractParams,
2567
+ Tn as extractTerms,
2568
+ Wi as filterByEndpoint,
2569
+ Hi as filterByIntent,
2570
+ on as filterByTargetScheme,
2570
2571
  S as findAiVendor,
2571
- Wn as flattenLocales,
2572
+ zn as flattenLocales,
2572
2573
  De as floorToPeriod,
2573
2574
  tt as formatActingIdentity,
2574
- ui as formatClock,
2575
- ci as formatHm,
2576
- gi as formatItemKey,
2575
+ di as formatClock,
2576
+ ui as formatHm,
2577
+ hi as formatItemKey,
2577
2578
  Le as formatPeriod,
2578
- Ki as freshSources,
2579
- Fn as getActivitySeenUserIds,
2580
- Yr as getContactEndpoints,
2581
- Qr as getShortTitle,
2582
- Zr as getUrgencyScore,
2579
+ Ui as freshSources,
2580
+ Vn as getActivitySeenUserIds,
2581
+ qr as getContactEndpoints,
2582
+ ei as getShortTitle,
2583
+ Qr as getUrgencyScore,
2583
2584
  Ae as heightOf,
2584
- wr as helpCenterText,
2585
- cr as humanizeAction,
2586
- st as interactionIdOf,
2587
- mi as isAgentUser,
2588
- qr as isAssigned,
2589
- rr as isAssignmentTerminal,
2590
- it as isAssignmentTrigger,
2591
- wn as isChatMessageActivity,
2592
- Jr as isClosed,
2593
- Pn as isConnectedType,
2594
- aa as isDeepLink,
2595
- ft as isDescendant,
2596
- kn as isEmailActivity,
2597
- Ir as isInFlight,
2598
- ei as isInteractionUnseen,
2599
- oa as isLandingPath,
2600
- $i as isLikelyBulk,
2585
+ Nr as helpCenterText,
2586
+ ur as humanizeAction,
2587
+ lt as interactionIdOf,
2588
+ gi as isAgentUser,
2589
+ Jr as isAssigned,
2590
+ ir as isAssignmentTerminal,
2591
+ at as isAssignmentTrigger,
2592
+ Nn as isChatMessageActivity,
2593
+ Zr as isClosed,
2594
+ Kn as isConnectedType,
2595
+ oa as isDeepLink,
2596
+ mt as isDescendant,
2597
+ wn as isEmailActivity,
2598
+ Mr as isInFlight,
2599
+ ti as isInteractionUnseen,
2600
+ sa as isLandingPath,
2601
+ Ri as isLikelyBulk,
2601
2602
  ce as isMessageShape,
2602
- On as isMessageType,
2603
- pn as isMoreSpecificPattern,
2604
- dt as isPaused,
2605
- Dn as isPlaybookAuthoredType,
2606
- wi as isPublicEmailDomain,
2607
- la as isPublicPath,
2608
- $n as isReplyableType,
2609
- Tr as isTerminal,
2610
- Ri as isThreadLongEnough,
2611
- Kn as isTranscriptType,
2612
- _i as isWorkClosed,
2613
- pi as isWorkTypeVisible,
2614
- Ai as itemDossierKeys,
2615
- Nt as ladderFor,
2616
- kr as linkLabel,
2617
- Vr as listeningAllowed,
2618
- vr as localeInstruction,
2619
- Nr as localeName,
2620
- Or as localesOf,
2621
- Mi as looksLikeEmail,
2622
- Wi as matchContactToIntents,
2623
- fn as matchPublicRoute,
2624
- Hr as mcpCredentialScope,
2625
- Wr as mcpToolPrefix,
2626
- pa as mergeShownKeys,
2627
- Ln as messageCountsAs,
2628
- Ni as needsPhoneRegion,
2629
- qn as normalizeArtifactBlocks,
2630
- Nn as normalizeBlocks,
2603
+ $n as isMessageType,
2604
+ fn as isMoreSpecificPattern,
2605
+ pt as isPaused,
2606
+ Pn as isPlaybookAuthoredType,
2607
+ Ni as isPublicEmailDomain,
2608
+ ca as isPublicPath,
2609
+ Rn as isReplyableType,
2610
+ Ir as isTerminal,
2611
+ Li as isThreadLongEnough,
2612
+ Un as isTranscriptType,
2613
+ Ti as isWorkClosed,
2614
+ fi as isWorkTypeVisible,
2615
+ bi as itemDossierKeys,
2616
+ vt as ladderFor,
2617
+ wr as linkLabel,
2618
+ Hr as listeningAllowed,
2619
+ xr as localeInstruction,
2620
+ vr as localeName,
2621
+ $r as localesOf,
2622
+ Ci as looksLikeEmail,
2623
+ zi as matchContactToIntents,
2624
+ mn as matchPublicRoute,
2625
+ Wr as mcpCredentialScope,
2626
+ zr as mcpToolPrefix,
2627
+ fa as mergeShownKeys,
2628
+ Dn as messageCountsAs,
2629
+ vi as needsPhoneRegion,
2630
+ Jn as normalizeArtifactBlocks,
2631
+ vn as normalizeBlocks,
2631
2632
  _e as normalizeEmail,
2632
2633
  g as normalizeExample,
2633
- Tn as novelty,
2634
- pr as parseActingIdentity,
2635
- hi as parseItemKey,
2636
- cn as pathToRegex,
2637
- zn as periodsInRange,
2638
- Ci as phoneSuffix,
2639
- xi as plainTextFromMarkdown,
2640
- rt as playbookActor,
2641
- _r as procedureOf,
2642
- bi as projectDossierKeys,
2643
- dn as publicBasePathFor,
2644
- sa as publicRoutePatterns,
2634
+ In as novelty,
2635
+ fr as parseActingIdentity,
2636
+ yi as parseItemKey,
2637
+ un as pathToRegex,
2638
+ Xn as periodsInRange,
2639
+ ki as phoneSuffix,
2640
+ Oi as plainTextFromMarkdown,
2641
+ it as playbookActor,
2642
+ Tr as procedureOf,
2643
+ Ei as projectDossierKeys,
2644
+ pn as publicBasePathFor,
2645
+ la as publicRoutePatterns,
2645
2646
  x as readPath,
2646
2647
  J as readStepError,
2647
- at as refKey,
2648
- Ut as registrableDomain,
2649
- bt as rejectExampleCandidate,
2650
- oi as relatedByDefault,
2651
- nn as resolveAccountCapabilities,
2648
+ ot as refKey,
2649
+ jt as registrableDomain,
2650
+ Et as rejectExampleCandidate,
2651
+ si as relatedByDefault,
2652
+ rn as resolveAccountCapabilities,
2652
2653
  O as resolveActivityText,
2653
- tn as resolveChannelIntents,
2654
- _t as resolveSignature,
2655
- ha as resolveWorkMode,
2656
- ia as resourceKindOf,
2657
- fr as runActor,
2658
- Cr as runInteractionId,
2654
+ nn as resolveChannelIntents,
2655
+ Tt as resolveSignature,
2656
+ ya as resolveWorkMode,
2657
+ aa as resourceKindOf,
2658
+ mr as runActor,
2659
+ kr as runInteractionId,
2659
2660
  ze as sanitizeInline,
2660
- gn as sanitizeTranscript,
2661
- lr as selectLenses,
2662
- ji as sessionsHoldCannotReach,
2663
- Ui as sessionsToHold,
2661
+ hn as sanitizeTranscript,
2662
+ cr as selectLenses,
2663
+ Gi as sessionsHoldCannotReach,
2664
+ ji as sessionsToHold,
2664
2665
  me as shareKeyForTeam,
2665
2666
  fe as shareKeyForUser,
2666
- tr as shareKeysForViewer,
2667
- ya as shouldRunAudioPipeline,
2668
- xt as sortStatuses,
2669
- en as sourceKey,
2670
- Ei as statusIn,
2671
- Sr as stepsOf,
2667
+ nr as shareKeysForViewer,
2668
+ Aa as shouldRunAudioPipeline,
2669
+ Ot as sortStatuses,
2670
+ tn as sourceKey,
2671
+ Si as statusIn,
2672
+ _r as stepsOf,
2672
2673
  Ne as stripHtml,
2673
- Mr as subjectKeyOf,
2674
+ Cr as subjectKeyOf,
2674
2675
  ge as subjectOf,
2675
- yi as suggestProjectKey,
2676
- yr as targetById,
2677
- hr as targetForActivityType,
2676
+ Ai as suggestProjectKey,
2677
+ Ar as targetById,
2678
+ yr as targetForActivityType,
2679
+ rt as toActingIdentity,
2678
2680
  re as toE164,
2679
- nr as toolSourceKinds,
2680
- Et as topicOfferedForTeam,
2681
- Dr as topicsForTeam,
2682
- At as truncateExample,
2683
- Ti as uniqueWorkStatusKey,
2684
- di as uniqueWorkTypeKey,
2681
+ rr as toolSourceKinds,
2682
+ St as topicOfferedForTeam,
2683
+ Pr as topicsForTeam,
2684
+ bt as truncateExample,
2685
+ Ii as uniqueWorkStatusKey,
2686
+ pi as uniqueWorkTypeKey,
2685
2687
  Ge as usageMetricId,
2686
- Xn as usageMetrics,
2687
- Ii as validateStatuses,
2688
- gr as valueAtPath,
2689
- ar as wakesAssignment,
2690
- wt as workItemScopeKey,
2688
+ Yn as usageMetrics,
2689
+ Mi as validateStatuses,
2690
+ hr as valueAtPath,
2691
+ or as wakesAssignment,
2692
+ Nt as workItemScopeKey,
2691
2693
  Ee as workProjectScopeKey,
2692
- Ot as workStatusKey,
2693
- It as workTypeKey
2694
+ $t as workStatusKey,
2695
+ Mt as workTypeKey
2694
2696
  };