@blue-labs/document-processor 3.4.0 → 3.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -18,10 +18,10 @@ function Qi(i) {
18
18
  function Xi(i) {
19
19
  return !i.ok;
20
20
  }
21
- function Yi(i, e) {
21
+ function Zi(i, e) {
22
22
  return i.ok ? Nt(e(i.value)) : i;
23
23
  }
24
- function Zi(i, e) {
24
+ function Yi(i, e) {
25
25
  return i.ok ? i : Ot(e(i.error));
26
26
  }
27
27
  function eo(i, e) {
@@ -36,7 +36,7 @@ function no(i, e) {
36
36
  function ro(i, e) {
37
37
  return i.ok ? e.ok(i.value) : e.err(i.error);
38
38
  }
39
- const v = {
39
+ const S = {
40
40
  capabilityFailure(i, e, t) {
41
41
  return { kind: "CapabilityFailure", capability: i, reason: e, details: t };
42
42
  },
@@ -125,15 +125,15 @@ const io = {
125
125
  PROCESSOR_MANAGED_CHANNEL_BLUE_IDS: Ce,
126
126
  isReservedContractKey: _t,
127
127
  isProcessorManagedChannelBlueId: je
128
- }, V = "/contracts", pe = `${V}/${Ge}`, Je = `${V}/${qe}`, Lt = `${V}/${We}`, Qe = `${V}/${A}`, Xe = "/lastEvents", Ye = "/lastSignatures";
128
+ }, V = "/contracts", pe = `${V}/${Ge}`, Je = `${V}/${qe}`, Lt = `${V}/${We}`, Qe = `${V}/${A}`, Xe = "/lastEvents", Ze = "/lastSignatures";
129
129
  function ie(i) {
130
130
  return `${V}/${i}`;
131
131
  }
132
- function Ze(i, e) {
132
+ function Ye(i, e) {
133
133
  return `${ie(i)}${Xe}/${e}`;
134
134
  }
135
135
  function et(i, e) {
136
- return `${ie(i)}${Ye}/${e}`;
136
+ return `${ie(i)}${Ze}/${e}`;
137
137
  }
138
138
  const oo = {
139
139
  RELATIVE_CONTRACTS: V,
@@ -142,9 +142,9 @@ const oo = {
142
142
  RELATIVE_EMBEDDED: Lt,
143
143
  RELATIVE_CHECKPOINT: Qe,
144
144
  LAST_EVENTS_SUFFIX: Xe,
145
- LAST_SIGNATURES_SUFFIX: Ye,
145
+ LAST_SIGNATURES_SUFFIX: Ze,
146
146
  relativeContractsEntry: ie,
147
- relativeCheckpointLastEvent: Ze,
147
+ relativeCheckpointLastEvent: Ye,
148
148
  relativeCheckpointLastSignature: et
149
149
  };
150
150
  function tt(i) {
@@ -185,11 +185,11 @@ function Ft(i, e) {
185
185
  const r = n.substring(t.length);
186
186
  return r.length === 0 ? "/" : r.startsWith("/") ? r : `/${r}`;
187
187
  }
188
- function Ut(i) {
188
+ function $t(i) {
189
189
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
190
190
  }
191
191
  var ce, Re;
192
- function $t() {
192
+ function Ut() {
193
193
  return Re || (Re = 1, ce = function i(e) {
194
194
  if (typeof e == "number" && isNaN(e))
195
195
  throw new Error("NaN is not allowed");
@@ -203,8 +203,8 @@ function $t() {
203
203
  }, "")}}`;
204
204
  }), ce;
205
205
  }
206
- var zt = $t();
207
- const Ht = /* @__PURE__ */ Ut(zt);
206
+ var zt = Ut();
207
+ const Ht = /* @__PURE__ */ $t(zt);
208
208
  function Vt(i, e) {
209
209
  return i.nodeToJson(e, "official");
210
210
  }
@@ -253,7 +253,7 @@ const it = rt(
253
253
  "currentContract",
254
254
  "currentContractCanonical"
255
255
  ]);
256
- class ve {
256
+ class Se {
257
257
  // Serialize evaluations to avoid races when updating host handler bindings.
258
258
  evaluationQueue = Promise.resolve();
259
259
  handlerState = {
@@ -302,14 +302,14 @@ class ve {
302
302
  remaining: c.gasRemaining
303
303
  }), !c.ok)
304
304
  throw en(c);
305
- return Z(c.value);
305
+ return Y(c.value);
306
306
  } catch (c) {
307
307
  throw tn(c);
308
308
  }
309
309
  }
310
310
  prepareBindings(e) {
311
311
  const t = e ?? {};
312
- Yt(t);
312
+ Zt(t);
313
313
  const n = W(t.event, null, "event"), r = W(
314
314
  t.eventCanonical ?? n,
315
315
  n,
@@ -333,7 +333,7 @@ class ve {
333
333
  h ?? u
334
334
  );
335
335
  const d = this.extractEmitBinding(t);
336
- return this.handlerState.emit = Zt(d), c;
336
+ return this.handlerState.emit = Yt(d), c;
337
337
  }
338
338
  extractDocumentBinding(e) {
339
339
  if (!Object.prototype.hasOwnProperty.call(e, "document"))
@@ -363,7 +363,7 @@ ${e}
363
363
  })()`;
364
364
  }
365
365
  }
366
- function Yt(i) {
366
+ function Zt(i) {
367
367
  for (const e of Object.keys(i))
368
368
  if (!Xt.has(e))
369
369
  throw new TypeError(`Unsupported QuickJS binding: "${e}"`);
@@ -396,10 +396,10 @@ function Oe(i) {
396
396
  }
397
397
  } : () => ({ ok: null, units: O });
398
398
  }
399
- function Zt(i) {
399
+ function Yt(i) {
400
400
  return i ? (e) => {
401
401
  try {
402
- if (i(Z(e)) instanceof Promise)
402
+ if (i(Y(e)) instanceof Promise)
403
403
  throw new Error("Async emit handlers are not supported");
404
404
  return { ok: null, units: O };
405
405
  } catch {
@@ -410,18 +410,18 @@ function Zt(i) {
410
410
  }
411
411
  } : () => ({ ok: null, units: O });
412
412
  }
413
- function Z(i) {
413
+ function Y(i) {
414
414
  if (i == null)
415
415
  return i;
416
416
  if (Array.isArray(i))
417
- return i.map((e) => Z(e));
417
+ return i.map((e) => Y(e));
418
418
  if (typeof i == "object") {
419
419
  const e = Object.getPrototypeOf(i);
420
420
  if (e !== Object.prototype && e !== null)
421
421
  return i;
422
422
  const t = {};
423
423
  for (const [n, r] of Object.entries(i))
424
- t[n] = Z(r);
424
+ t[n] = Y(r);
425
425
  return t;
426
426
  }
427
427
  return i;
@@ -552,10 +552,10 @@ async function te(i) {
552
552
  }
553
553
  return h;
554
554
  }
555
- const S = h.getItems?.();
556
- if (Array.isArray(S)) {
555
+ const v = h.getItems?.();
556
+ if (Array.isArray(v)) {
557
557
  const E = await Promise.all(
558
- S.map(
558
+ v.map(
559
559
  (C, M) => te({
560
560
  ...i,
561
561
  node: C,
@@ -584,12 +584,12 @@ const oe = g(m["Core/Contract"])(l.object({
584
584
  description: l.string().optional(),
585
585
  name: l.string().optional(),
586
586
  order: l.number().optional()
587
- })), Se = oe, _ = g(m["Core/Channel"])(oe.extend({
587
+ })), ve = oe, _ = g(m["Core/Channel"])(oe.extend({
588
588
  description: l.string().optional(),
589
589
  event: k().optional(),
590
590
  name: l.string().optional()
591
591
  })), L = _.merge(
592
- Se
592
+ ve
593
593
  ).extend({
594
594
  path: l.string().optional(),
595
595
  definition: k().optional()
@@ -598,10 +598,10 @@ const oe = g(m["Core/Contract"])(l.object({
598
598
  description: l.string().optional(),
599
599
  event: k().optional(),
600
600
  name: l.string().optional()
601
- })), ut = lt.merge(Se), K = g(m["Core/Marker"])(oe.extend({
601
+ })), ut = lt.merge(ve), K = g(m["Core/Marker"])(oe.extend({
602
602
  description: l.string().optional(),
603
603
  name: l.string().optional()
604
- })), N = K.merge(Se), ln = l.object({
604
+ })), N = K.merge(ve), ln = l.object({
605
605
  op: l.enum(["ADD", "REPLACE", "REMOVE"]),
606
606
  path: l.string(),
607
607
  val: k().optional()
@@ -640,7 +640,7 @@ const oe = g(m["Core/Contract"])(l.object({
640
640
  })), En = gn.merge(L), w = {
641
641
  "Conversation/Actor": "CN5efWVizJbRsMCw8YWRfT2q9vM9XfeGDN9wFvYcvMnQ",
642
642
  "Conversation/Composite Timeline Channel": "HsNatiPt2YvmkWQoqtfrFCbdp75ZUBLBUkWeq84WTfnr",
643
- "Conversation/JavaScript Code": "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK",
643
+ "Conversation/JavaScript Code": "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS",
644
644
  "Conversation/Operation": "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC",
645
645
  "Conversation/Operation Request": "HM4Ku4LFcjC5MxnhPMRwQ8w3BbHmJKKZfHTTzsd4jbJq",
646
646
  "Conversation/Sequential Workflow": "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe",
@@ -649,8 +649,8 @@ const oe = g(m["Core/Contract"])(l.object({
649
649
  "Conversation/Timeline": "3Ge54FsGJaaeZmm8nTKJdS6HVdYhiR3g18fDwg3Ev1Sa",
650
650
  "Conversation/Timeline Channel": "EvuCWsG1E6WJQg8QXmk6rwMANYTZjoLWVZ1vYQWUwdTH",
651
651
  "Conversation/Timeline Entry": "EzDiC9Frs8V5yQBMtDYh1DobVnWtWpFemXDX5fGUULBn",
652
- "Conversation/Trigger Event": "GxUtWr3eH9a6YQeioQkujEnsPjD5s9RU8ZhEfmsV1vuU",
653
- "Conversation/Update Document": "BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM"
652
+ "Conversation/Trigger Event": "2bSWEoMSZwzf32Hnr4BDVsuq8NRjrWEpnhZvMZAJGhh2",
653
+ "Conversation/Update Document": "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa"
654
654
  }, ht = g(w["Conversation/Timeline Channel"])(_.extend({
655
655
  description: l.string().optional(),
656
656
  name: l.string().optional(),
@@ -673,11 +673,11 @@ const oe = g(m["Core/Contract"])(l.object({
673
673
  description: l.string().optional(),
674
674
  email: l.string().optional(),
675
675
  name: l.string().optional()
676
- })), vn = Cn.merge(L), Sn = g(w["Conversation/Composite Timeline Channel"])(_.extend({
676
+ })), Sn = Cn.merge(L), vn = g(w["Conversation/Composite Timeline Channel"])(_.extend({
677
677
  channels: l.array(l.string()).optional(),
678
678
  description: l.string().optional(),
679
679
  name: l.string().optional()
680
- })), dt = Sn.merge(L), wn = g(m["Core/Channel Event Checkpoint"])(K.extend({
680
+ })), dt = vn.merge(L), wn = g(m["Core/Channel Event Checkpoint"])(K.extend({
681
681
  description: l.string().optional(),
682
682
  lastEvents: l.record(l.string(), k()).optional(),
683
683
  name: l.string().optional()
@@ -717,9 +717,9 @@ const oe = g(m["Core/Contract"])(l.object({
717
717
  N
718
718
  ), Ln = g(I["MyOS/MyOS Participants Orchestration"])(l.object({
719
719
  name: l.string().optional()
720
- })), Fn = Ln.merge(N), Un = g(I["MyOS/MyOS Session Interaction"])(l.object({
720
+ })), Fn = Ln.merge(N), $n = g(I["MyOS/MyOS Session Interaction"])(l.object({
721
721
  name: l.string().optional()
722
- })), $n = Un.merge(N), zn = g(I["MyOS/MyOS Worker Agency"])(l.object({
722
+ })), Un = $n.merge(N), zn = g(I["MyOS/MyOS Worker Agency"])(l.object({
723
723
  name: l.string().optional()
724
724
  })), Hn = zn.merge(
725
725
  N
@@ -900,19 +900,19 @@ class Xn {
900
900
  throw new Error(
901
901
  `No processor registered for child channel '${u}' (${h.blueId})`
902
902
  );
903
- const S = n.clone(), f = {
903
+ const v = n.clone(), f = {
904
904
  ...t,
905
- event: S,
905
+ event: v,
906
906
  bindingKey: u
907
907
  }, E = h.contract, C = E.event;
908
- if (C && !t.blue.isTypeOfNode(S, C) || !await d.matches(E, f))
908
+ if (C && !t.blue.isTypeOfNode(v, C) || !await d.matches(E, f))
909
909
  continue;
910
- const D = d.channelize, ke = (D ? D.call(d, E, f) : void 0) ?? S.clone();
910
+ const D = d.channelize, ke = (D ? D.call(d, E, f) : void 0) ?? v.clone();
911
911
  this.enrichEvent(ke, u);
912
912
  const Ie = Jn(
913
913
  t.bindingKey,
914
914
  u
915
- ), St = await this.shouldProcessChild({
915
+ ), vt = await this.shouldProcessChild({
916
916
  childProcessor: d,
917
917
  childContract: E,
918
918
  context: {
@@ -926,7 +926,7 @@ class Xn {
926
926
  eventNode: ke,
927
927
  eventId: a,
928
928
  checkpointKey: Ie,
929
- shouldProcess: St
929
+ shouldProcess: vt
930
930
  });
931
931
  }
932
932
  return {
@@ -974,7 +974,7 @@ class Xn {
974
974
  return Qn(t) ? t : null;
975
975
  }
976
976
  }
977
- const Yn = g(w["Conversation/Actor"])(l.object({
977
+ const Zn = g(w["Conversation/Actor"])(l.object({
978
978
  description: l.string().optional(),
979
979
  name: l.string().optional()
980
980
  })), ft = g(w["Conversation/Timeline"])(l.object({
@@ -982,21 +982,21 @@ const Yn = g(w["Conversation/Actor"])(l.object({
982
982
  name: l.string().optional(),
983
983
  timelineId: l.string().optional()
984
984
  })), R = g(w["Conversation/Timeline Entry"])(l.object({
985
- actor: Yn.optional(),
985
+ actor: Zn.optional(),
986
986
  description: l.string().optional(),
987
987
  message: k().optional(),
988
988
  name: l.string().optional(),
989
989
  prevEntry: k().optional(),
990
990
  timeline: ft.optional(),
991
991
  timestamp: l.number().optional()
992
- })), Zn = g(I["MyOS/MyOS Timeline"])(ft.extend({
992
+ })), Yn = g(I["MyOS/MyOS Timeline"])(ft.extend({
993
993
  accountId: l.string().optional(),
994
994
  description: l.string().optional(),
995
995
  name: l.string().optional()
996
996
  })), De = g(I["MyOS/MyOS Timeline Entry"])(R.extend({
997
997
  description: l.string().optional(),
998
998
  name: l.string().optional(),
999
- timeline: Zn.optional()
999
+ timeline: Yn.optional()
1000
1000
  }));
1001
1001
  function Be(i, e) {
1002
1002
  return e && i.isTypeOf(e, R, { checkSchemaExtensions: !0 }) ? i.nodeToSchemaOutput(e, R) : null;
@@ -1014,7 +1014,7 @@ function xe(i, e) {
1014
1014
  class er {
1015
1015
  kind = "channel";
1016
1016
  blueIds = [I["MyOS/MyOS Timeline Channel"]];
1017
- schema = vn;
1017
+ schema = Sn;
1018
1018
  matches(e, t) {
1019
1019
  const { event: n, blue: r } = t;
1020
1020
  if (!n)
@@ -1093,7 +1093,7 @@ class ir {
1093
1093
  supportedBlueIds = [
1094
1094
  w["Conversation/Trigger Event"]
1095
1095
  ];
1096
- evaluator = new ve();
1096
+ evaluator = new Se();
1097
1097
  async execute(e) {
1098
1098
  const { stepNode: t, context: n } = e;
1099
1099
  if (!n.blue.isTypeOf(t, _e))
@@ -1135,7 +1135,7 @@ class ar {
1135
1135
  supportedBlueIds = [
1136
1136
  w["Conversation/JavaScript Code"]
1137
1137
  ];
1138
- evaluator = new ve();
1138
+ evaluator = new Se();
1139
1139
  wasmGasLimit;
1140
1140
  constructor(e = {}) {
1141
1141
  this.wasmGasLimit = e.wasmGasLimit ?? it;
@@ -1191,7 +1191,7 @@ class lr {
1191
1191
  supportedBlueIds = [
1192
1192
  w["Conversation/Update Document"]
1193
1193
  ];
1194
- evaluator = new ve();
1194
+ evaluator = new Se();
1195
1195
  async execute(e) {
1196
1196
  const { context: t, stepNode: n } = e, { blue: r } = t;
1197
1197
  if (!r.isTypeOf(n, Fe))
@@ -1266,7 +1266,7 @@ class gt {
1266
1266
  `Unsupported workflow step type "${E}"`
1267
1267
  );
1268
1268
  }
1269
- const S = {
1269
+ const v = {
1270
1270
  workflow: t,
1271
1271
  stepNode: u,
1272
1272
  eventNode: n,
@@ -1274,7 +1274,7 @@ class gt {
1274
1274
  stepResults: a,
1275
1275
  stepIndex: c,
1276
1276
  contractNode: o
1277
- }, f = await d.execute(S);
1277
+ }, f = await d.execute(v);
1278
1278
  if (f !== void 0) {
1279
1279
  const E = this.stepResultKey(u, c);
1280
1280
  a[E] = f;
@@ -1480,7 +1480,7 @@ const ge = m["Core/Channel Event Checkpoint"];
1480
1480
  function yt(i) {
1481
1481
  return typeof i.order == "number" ? i.order : 0;
1482
1482
  }
1483
- class vr {
1483
+ class Sr {
1484
1484
  constructor(e, t, n, r) {
1485
1485
  this.bindingKey = e, this.bindingContract = t, this.bindingBlueId = n, this.bindingNode = r;
1486
1486
  }
@@ -1500,7 +1500,7 @@ class vr {
1500
1500
  return yt(this.bindingContract);
1501
1501
  }
1502
1502
  }
1503
- class Sr {
1503
+ class vr {
1504
1504
  constructor(e, t, n, r) {
1505
1505
  this.bindingKey = e, this.bindingContract = t, this.bindingBlueId = n, this.bindingNode = r;
1506
1506
  }
@@ -1577,7 +1577,7 @@ class H {
1577
1577
  handlersFor(e) {
1578
1578
  const t = this.handlersByChannel.get(e);
1579
1579
  return !t || t.length === 0 ? [] : [...t].map(
1580
- (n) => new Sr(
1580
+ (n) => new vr(
1581
1581
  n.key,
1582
1582
  n.contract,
1583
1583
  n.blueId,
@@ -1599,7 +1599,7 @@ class H {
1599
1599
  }
1600
1600
  channelsOfType(...e) {
1601
1601
  const t = e.length > 0 ? new Set(e) : null, n = Array.from(this.channels.values()).filter((r) => !t || t.has(r.blueId)).map(
1602
- (r) => new vr(
1602
+ (r) => new Sr(
1603
1603
  r.key,
1604
1604
  r.contract,
1605
1605
  r.blueId,
@@ -1674,7 +1674,7 @@ class y extends Error {
1674
1674
  super(e || "Processor fatal error"), this.processorError = t, this.name = "ProcessorFatalError";
1675
1675
  }
1676
1676
  }
1677
- function Y(i, e, t) {
1677
+ function Z(i, e, t) {
1678
1678
  for (const [n, r] of t.entries())
1679
1679
  if (i.isTypeOfBlueId(e, n))
1680
1680
  return r;
@@ -1705,7 +1705,7 @@ class br {
1705
1705
  if (!h)
1706
1706
  throw new y(
1707
1707
  `Handler ${t} references unknown channel '${u}'`,
1708
- v.invalidContract(
1708
+ S.invalidContract(
1709
1709
  o,
1710
1710
  `Channel '${u}' is not declared in this scope`,
1711
1711
  `/contracts/${u}`
@@ -1714,7 +1714,7 @@ class br {
1714
1714
  if (!this.isRegisteredChannel(h))
1715
1715
  throw new y(
1716
1716
  `Contract '${u}' is not a channel`,
1717
- v.invalidContract(
1717
+ S.invalidContract(
1718
1718
  h.nodeTypeBlueId,
1719
1719
  `Contract '${u}' is not a channel`,
1720
1720
  `/contracts/${u}`
@@ -1731,7 +1731,7 @@ class br {
1731
1731
  if (this.isZodError(a))
1732
1732
  throw new y(
1733
1733
  "Failed to parse handler contract",
1734
- v.invalidContract(
1734
+ S.invalidContract(
1735
1735
  o,
1736
1736
  "Failed to parse handler contract",
1737
1737
  t,
@@ -1741,7 +1741,7 @@ class br {
1741
1741
  const c = a?.message ?? "Failed to register handler contract";
1742
1742
  throw new y(
1743
1743
  c,
1744
- v.illegalState(c)
1744
+ S.illegalState(c)
1745
1745
  );
1746
1746
  }
1747
1747
  }
@@ -1765,14 +1765,14 @@ class br {
1765
1765
  if (!o)
1766
1766
  throw new y(
1767
1767
  `Handler ${r} must declare channel (missing explicit channel and derivation failed)`,
1768
- v.illegalState(
1768
+ S.illegalState(
1769
1769
  `Handler ${r} must declare channel (missing explicit channel and derivation failed)`
1770
1770
  )
1771
1771
  );
1772
1772
  return o;
1773
1773
  }
1774
1774
  isRegisteredChannel(e) {
1775
- return Y(this.blue, e.node, this.builtinChannelSchemas) ? !0 : this.registry.lookupChannelForNode(this.blue, e.node) != null;
1775
+ return Z(this.blue, e.node, this.builtinChannelSchemas) ? !0 : this.registry.lookupChannelForNode(this.blue, e.node) != null;
1776
1776
  }
1777
1777
  setContractChannel(e, t) {
1778
1778
  const r = e.getProperties()?.channel;
@@ -1811,7 +1811,7 @@ function Ir(i) {
1811
1811
  if (Tr(C))
1812
1812
  throw new y(
1813
1813
  "Failed to parse channel contract",
1814
- v.invalidContract(
1814
+ S.invalidContract(
1815
1815
  E.nodeTypeBlueId,
1816
1816
  "Failed to parse channel contract",
1817
1817
  `/contracts/${f}`,
@@ -1821,15 +1821,15 @@ function Ir(i) {
1821
1821
  const M = C?.message ?? "Failed to parse channel contract";
1822
1822
  throw new y(
1823
1823
  M,
1824
- v.illegalState(M)
1824
+ S.illegalState(M)
1825
1825
  );
1826
1826
  }
1827
- }, S = (f) => {
1827
+ }, v = (f) => {
1828
1828
  if (a.has(f)) {
1829
1829
  const C = c.indexOf(f), D = [...c.slice(C), f].join(" -> ");
1830
1830
  throw new y(
1831
1831
  `Composite channel ${e} has a cyclic reference: ${D}`,
1832
- v.invalidContract(
1832
+ S.invalidContract(
1833
1833
  r,
1834
1834
  `Composite channel '${e}' has a cyclic reference: ${D}`,
1835
1835
  `/contracts/${e}`
@@ -1843,16 +1843,16 @@ function Ir(i) {
1843
1843
  if (E)
1844
1844
  for (const C of E.channels ?? []) {
1845
1845
  const M = n.get(C);
1846
- M && h(M) && S(C);
1846
+ M && h(M) && v(C);
1847
1847
  }
1848
1848
  c.pop(), a.delete(f), s.add(f);
1849
1849
  };
1850
- S(e);
1850
+ v(e);
1851
1851
  }
1852
1852
  function Tr(i) {
1853
1853
  return i instanceof Ee;
1854
1854
  }
1855
- const Pr = m["Core/Document Update Channel"], Mr = m["Core/Embedded Node Channel"], Rr = m["Core/Lifecycle Event Channel"], Nr = m["Core/Triggered Event Channel"], Ue = m["Core/Process Embedded"], Or = m["Core/Processing Initialized Marker"], Ar = m["Core/Processing Terminated Marker"], Dr = m["Core/Channel Event Checkpoint"], Br = I["MyOS/Document Anchors"], xr = I["MyOS/Document Links"], _r = I["MyOS/MyOS Participants Orchestration"], Lr = I["MyOS/MyOS Session Interaction"], Fr = I["MyOS/MyOS Worker Agency"], Ur = w["Conversation/Composite Timeline Channel"], le = /* @__PURE__ */ new Map([
1855
+ const Pr = m["Core/Document Update Channel"], Mr = m["Core/Embedded Node Channel"], Rr = m["Core/Lifecycle Event Channel"], Nr = m["Core/Triggered Event Channel"], $e = m["Core/Process Embedded"], Or = m["Core/Processing Initialized Marker"], Ar = m["Core/Processing Terminated Marker"], Dr = m["Core/Channel Event Checkpoint"], Br = I["MyOS/Document Anchors"], xr = I["MyOS/Document Links"], _r = I["MyOS/MyOS Participants Orchestration"], Lr = I["MyOS/MyOS Session Interaction"], Fr = I["MyOS/MyOS Worker Agency"], $r = w["Conversation/Composite Timeline Channel"], le = /* @__PURE__ */ new Map([
1856
1856
  [
1857
1857
  Pr,
1858
1858
  hn
@@ -1869,7 +1869,7 @@ const Pr = m["Core/Document Update Channel"], Mr = m["Core/Embedded Node Channel
1869
1869
  Nr,
1870
1870
  En
1871
1871
  ]
1872
- ]), $r = /* @__PURE__ */ new Map([
1872
+ ]), Ur = /* @__PURE__ */ new Map([
1873
1873
  [
1874
1874
  Or,
1875
1875
  In
@@ -1896,7 +1896,7 @@ const Pr = m["Core/Document Update Channel"], Mr = m["Core/Embedded Node Channel
1896
1896
  ],
1897
1897
  [
1898
1898
  Lr,
1899
- $n
1899
+ Un
1900
1900
  ],
1901
1901
  [
1902
1902
  Fr,
@@ -1927,7 +1927,7 @@ class zr {
1927
1927
  const r = n?.message ?? "Failed to load contracts";
1928
1928
  throw new y(
1929
1929
  `Failed to load contracts for scope ${t}: ${r}`,
1930
- v.runtimeFatal(
1930
+ S.runtimeFatal(
1931
1931
  `Failed to load contracts for scope ${t}`,
1932
1932
  n
1933
1933
  )
@@ -1938,20 +1938,20 @@ class zr {
1938
1938
  const o = n.getType()?.getBlueId();
1939
1939
  if (!o)
1940
1940
  return;
1941
- if (this.blue.isTypeOfBlueId(n, Ue)) {
1941
+ if (this.blue.isTypeOfBlueId(n, $e)) {
1942
1942
  this.handleProcessEmbedded(e, t, n);
1943
1943
  return;
1944
1944
  }
1945
- const s = Y(
1945
+ const s = Z(
1946
1946
  this.blue,
1947
1947
  n,
1948
- $r
1948
+ Ur
1949
1949
  );
1950
1950
  if (s) {
1951
1951
  this.handleMarker(e, t, n, s, o);
1952
1952
  return;
1953
1953
  }
1954
- const a = Y(
1954
+ const a = Z(
1955
1955
  this.blue,
1956
1956
  n,
1957
1957
  le
@@ -2010,7 +2010,7 @@ class zr {
2010
2010
  }
2011
2011
  throw je(o) ? new y(
2012
2012
  "Built-in processor-managed channel is missing schema registration",
2013
- v.invalidContract(
2013
+ S.invalidContract(
2014
2014
  o,
2015
2015
  "Built-in processor-managed channel is missing schema registration",
2016
2016
  t
@@ -2027,15 +2027,15 @@ class zr {
2027
2027
  } catch (r) {
2028
2028
  throw ue(r) ? new y(
2029
2029
  "Failed to parse ProcessEmbedded marker",
2030
- v.invalidContract(
2031
- Ue,
2030
+ S.invalidContract(
2031
+ $e,
2032
2032
  "Failed to parse ProcessEmbedded marker",
2033
2033
  t,
2034
2034
  r
2035
2035
  )
2036
2036
  ) : new y(
2037
2037
  r?.message ?? "Failed to register ProcessEmbedded marker",
2038
- v.illegalState(
2038
+ S.illegalState(
2039
2039
  r?.message ?? "Failed to register ProcessEmbedded marker"
2040
2040
  )
2041
2041
  );
@@ -2047,7 +2047,7 @@ class zr {
2047
2047
  n,
2048
2048
  r
2049
2049
  );
2050
- this.blue.isTypeOfBlueId(n, Ur) && this.validateCompositeChannel(
2050
+ this.blue.isTypeOfBlueId(n, $r) && this.validateCompositeChannel(
2051
2051
  t,
2052
2052
  a,
2053
2053
  s,
@@ -2059,7 +2059,7 @@ class zr {
2059
2059
  if (ue(a))
2060
2060
  throw new y(
2061
2061
  "Failed to parse channel contract",
2062
- v.invalidContract(
2062
+ S.invalidContract(
2063
2063
  o,
2064
2064
  "Failed to parse channel contract",
2065
2065
  t,
@@ -2069,7 +2069,7 @@ class zr {
2069
2069
  const c = a?.message ?? "Failed to register channel contract";
2070
2070
  throw new y(
2071
2071
  c,
2072
- v.illegalState(c)
2072
+ S.illegalState(c)
2073
2073
  );
2074
2074
  }
2075
2075
  }
@@ -2081,7 +2081,7 @@ class zr {
2081
2081
  if (!a)
2082
2082
  throw new y(
2083
2083
  `Composite channel ${e} references unknown channel '${s}'`,
2084
- v.invalidContract(
2084
+ S.invalidContract(
2085
2085
  r,
2086
2086
  `Channel '${s}' is not declared in this scope`,
2087
2087
  `/contracts/${s}`
@@ -2090,7 +2090,7 @@ class zr {
2090
2090
  if (!this.isRegisteredChannel(a))
2091
2091
  throw new y(
2092
2092
  `Contract '${s}' is not a channel`,
2093
- v.invalidContract(
2093
+ S.invalidContract(
2094
2094
  a.nodeTypeBlueId,
2095
2095
  `Contract '${s}' is not a channel`,
2096
2096
  `/contracts/${s}`
@@ -2107,7 +2107,7 @@ class zr {
2107
2107
  }
2108
2108
  }
2109
2109
  isRegisteredChannel(e) {
2110
- return Y(this.blue, e.node, le) ? !0 : this.registry.lookupChannelForNode(this.blue, e.node) != null;
2110
+ return Z(this.blue, e.node, le) ? !0 : this.registry.lookupChannelForNode(this.blue, e.node) != null;
2111
2111
  }
2112
2112
  handleMarker(e, t, n, r, o) {
2113
2113
  try {
@@ -2120,7 +2120,7 @@ class zr {
2120
2120
  if (ue(s))
2121
2121
  throw new y(
2122
2122
  "Failed to parse marker contract",
2123
- v.invalidContract(
2123
+ S.invalidContract(
2124
2124
  o,
2125
2125
  "Failed to parse marker contract",
2126
2126
  t,
@@ -2130,7 +2130,7 @@ class zr {
2130
2130
  const a = s?.message ?? "Failed to register marker contract";
2131
2131
  throw new y(
2132
2132
  a,
2133
- v.illegalState(a)
2133
+ S.illegalState(a)
2134
2134
  );
2135
2135
  }
2136
2136
  }
@@ -2162,7 +2162,7 @@ function Kr() {
2162
2162
  lastSignatures: {}
2163
2163
  };
2164
2164
  }
2165
- function $e(i) {
2165
+ function Ue(i) {
2166
2166
  return i != null && Object.prototype.hasOwnProperty.call(i, "lastEvents") && Object.prototype.hasOwnProperty.call(i, "lastSignatures");
2167
2167
  }
2168
2168
  class Wr {
@@ -2186,14 +2186,14 @@ class Gr {
2186
2186
  this.runtime.directWrite(r, o), t.registerCheckpointMarker(Kr());
2187
2187
  return;
2188
2188
  }
2189
- if (!$e(n))
2189
+ if (!Ue(n))
2190
2190
  throw new Error(
2191
2191
  `Reserved key 'checkpoint' must contain a Channel Event Checkpoint at ${r}`
2192
2192
  );
2193
2193
  }
2194
2194
  findCheckpoint(e, t) {
2195
2195
  for (const [n, r] of e.markerEntries()) {
2196
- if (!$e(r))
2196
+ if (!Ue(r))
2197
2197
  continue;
2198
2198
  const s = (r.lastEvents?.[t] ?? null)?.clone() ?? null, c = r.lastSignatures?.[t] ?? null ?? this.signatureFn(s);
2199
2199
  return new Wr(
@@ -2214,7 +2214,7 @@ class Gr {
2214
2214
  return;
2215
2215
  const s = T(
2216
2216
  e,
2217
- Ze(n.markerKey, n.channelKey)
2217
+ Ye(n.markerKey, n.channelKey)
2218
2218
  ), a = o?.clone() ?? null;
2219
2219
  this.runtime.gasMeter().chargeCheckpointUpdate(), this.runtime.directWrite(s, a), n.checkpoint.lastEvents || (n.checkpoint.lastEvents = {}), a ? n.checkpoint.lastEvents[n.channelKey] = a.clone() ?? null : delete n.checkpoint.lastEvents[n.channelKey], n.lastEventNode = a?.clone() ?? null;
2220
2220
  const c = T(
@@ -2354,9 +2354,9 @@ class qr {
2354
2354
  function jr(i, e) {
2355
2355
  return e.isResolved() ? i.createResolvedNode(e) : i.resolve(e);
2356
2356
  }
2357
- class $ extends y {
2357
+ class U extends y {
2358
2358
  constructor(e) {
2359
- super(e, v.illegalState(e)), this.name = "IllegalStateException";
2359
+ super(e, S.illegalState(e)), this.name = "IllegalStateException";
2360
2360
  }
2361
2361
  }
2362
2362
  class F extends Error {
@@ -2364,7 +2364,7 @@ class F extends Error {
2364
2364
  super(e), this.name = "BoundaryViolationException";
2365
2365
  }
2366
2366
  }
2367
- const Jr = m["Core/Document Update Channel"], Qr = m["Core/Embedded Node Channel"], Xr = m["Core/Triggered Event Channel"], Yr = m["Core/Lifecycle Event Channel"], ze = m["Core/Processing Initialized Marker"], Zr = m["Core/Document Processing Initiated"];
2367
+ const Jr = m["Core/Document Update Channel"], Qr = m["Core/Embedded Node Channel"], Xr = m["Core/Triggered Event Channel"], Zr = m["Core/Lifecycle Event Channel"], ze = m["Core/Processing Initialized Marker"], Yr = m["Core/Document Processing Initiated"];
2368
2368
  class ei {
2369
2369
  runtime;
2370
2370
  contractLoader;
@@ -2386,18 +2386,18 @@ class ei {
2386
2386
  if (!d)
2387
2387
  return;
2388
2388
  s || (s = d.clone()), o = this.loadBundle(d, n), this.bundles.set(n, o);
2389
- const S = o.embeddedPaths().find((C) => !r.has(C)) ?? null;
2390
- if (!S)
2389
+ const v = o.embeddedPaths().find((C) => !r.has(C)) ?? null;
2390
+ if (!v)
2391
2391
  break;
2392
- r.add(S);
2393
- const f = T(n, S);
2392
+ r.add(v);
2393
+ const f = T(n, v);
2394
2394
  this.nodeAt(f) && await this.initializeScope(f, !0);
2395
2395
  }
2396
2396
  if (!o)
2397
2397
  return;
2398
2398
  const a = this.hasInitializationMarker(n);
2399
2399
  if (!a && o.hasCheckpoint())
2400
- throw new $(
2400
+ throw new U(
2401
2401
  `Reserved key 'checkpoint' must not appear before initialization at scope ${n}`
2402
2402
  );
2403
2403
  if (a)
@@ -2515,7 +2515,7 @@ class ei {
2515
2515
  await this.hooks.enterFatalTermination(e, t, s);
2516
2516
  return;
2517
2517
  }
2518
- if (o instanceof $ || o instanceof Error && !(o instanceof y)) {
2518
+ if (o instanceof U || o instanceof Error && !(o instanceof y)) {
2519
2519
  const s = this.hooks.fatalReason(o, "Runtime fatal");
2520
2520
  await this.hooks.enterFatalTermination(e, t, s);
2521
2521
  return;
@@ -2529,7 +2529,7 @@ class ei {
2529
2529
  return;
2530
2530
  const o = this.channelsMatching(
2531
2531
  t,
2532
- Yr
2532
+ Zr
2533
2533
  );
2534
2534
  for (const s of o)
2535
2535
  if (await this.channelRunner.runHandlers(
@@ -2583,7 +2583,7 @@ class ei {
2583
2583
  const r = n?.message ?? "Failed to load contracts";
2584
2584
  throw new y(
2585
2585
  r,
2586
- v.runtimeFatal(
2586
+ S.runtimeFatal(
2587
2587
  `Failed to load contracts for scope ${t}`,
2588
2588
  n
2589
2589
  )
@@ -2615,8 +2615,8 @@ class ei {
2615
2615
  for (const c of a) {
2616
2616
  let u = !1;
2617
2617
  for (const h of n) {
2618
- const S = h.contract().childPath ?? "/";
2619
- T(e, S) === o && (u || (this.runtime.gasMeter().chargeBridge(), u = !0), await this.channelRunner.runHandlers(
2618
+ const v = h.contract().childPath ?? "/";
2619
+ T(e, v) === o && (u || (this.runtime.gasMeter().chargeBridge(), u = !0), await this.channelRunner.runHandlers(
2620
2620
  e,
2621
2621
  t,
2622
2622
  h.key(),
@@ -2725,16 +2725,16 @@ class ei {
2725
2725
  return !1;
2726
2726
  if (!(n instanceof p)) {
2727
2727
  const o = `Reserved key 'initialized' must contain a Processing Initialized Marker at ${t}`;
2728
- throw new $(o);
2728
+ throw new U(o);
2729
2729
  }
2730
2730
  if (n.getType()?.getBlueId() !== ze) {
2731
2731
  const o = `Reserved key 'initialized' must contain a Processing Initialized Marker at ${t}`;
2732
- throw new $(o);
2732
+ throw new U(o);
2733
2733
  }
2734
2734
  return !0;
2735
2735
  }
2736
2736
  createLifecycleEvent(e) {
2737
- return new p().setType(new p().setBlueId(Zr)).setProperties({
2737
+ return new p().setType(new p().setBlueId(Yr)).setProperties({
2738
2738
  type: new p().setValue("Core/Document Processing Initiated"),
2739
2739
  documentId: new p().setValue(e)
2740
2740
  });
@@ -2828,7 +2828,7 @@ class ai {
2828
2828
  `Direct write does not support append token '-' for path ${n}`
2829
2829
  );
2830
2830
  const a = o.getItems();
2831
- if (a && U(s)) {
2831
+ if (a && $(s)) {
2832
2832
  this.directWriteArray(o, a, s, t, n);
2833
2833
  return;
2834
2834
  }
@@ -2881,7 +2881,7 @@ class ai {
2881
2881
  `Append token '-' must be final segment: ${G(n, r)}`
2882
2882
  );
2883
2883
  const o = e.getItems();
2884
- if (o && U(t)) {
2884
+ if (o && $(t)) {
2885
2885
  const c = x(t, G(n, r));
2886
2886
  if (c < 0 || c >= o.length)
2887
2887
  throw new Error(
@@ -2907,7 +2907,7 @@ class ai {
2907
2907
  "ADD"
2908
2908
  );
2909
2909
  try {
2910
- if (U(o)) {
2910
+ if ($(o)) {
2911
2911
  const u = r.getItems(), h = o === j;
2912
2912
  if (!u)
2913
2913
  throw new Error(
@@ -2938,7 +2938,7 @@ class ai {
2938
2938
  "REPLACE"
2939
2939
  );
2940
2940
  try {
2941
- if (U(o)) {
2941
+ if ($(o)) {
2942
2942
  const c = r.getItems();
2943
2943
  if (!c)
2944
2944
  throw new Error(`Array index segment requires array at ${t}`);
@@ -2962,7 +2962,7 @@ class ai {
2962
2962
  t,
2963
2963
  "REMOVE"
2964
2964
  );
2965
- if (U(r)) {
2965
+ if ($(r)) {
2966
2966
  const a = n.getItems();
2967
2967
  if (!a)
2968
2968
  throw new Error(`Array index segment requires array at ${t}`);
@@ -2985,14 +2985,14 @@ class ai {
2985
2985
  const o = [];
2986
2986
  for (let a = 0; a < e.length - 1; a += 1) {
2987
2987
  const c = e[a], u = G(e, a + 1);
2988
- if (U(c)) {
2989
- const S = r.getItems();
2990
- if (!S)
2988
+ if ($(c)) {
2989
+ const v = r.getItems();
2990
+ if (!v)
2991
2991
  throw new Error(`Array index segment requires array at ${u}`);
2992
2992
  const f = x(c, u);
2993
- if (f < 0 || f >= S.length)
2993
+ if (f < 0 || f >= v.length)
2994
2994
  throw new Error(`Array index out of bounds in path: ${u}`);
2995
- const E = S[f];
2995
+ const E = v[f];
2996
2996
  if (!(E instanceof p))
2997
2997
  throw new Error(`Array index out of bounds in path: ${u}`);
2998
2998
  r = E;
@@ -3099,7 +3099,7 @@ function X(i) {
3099
3099
  const t = { ...e };
3100
3100
  return i.setProperties(t), t;
3101
3101
  }
3102
- function U(i) {
3102
+ function $(i) {
3103
3103
  return i === j || /^\d+$/.test(i);
3104
3104
  }
3105
3105
  function q(i) {
@@ -3206,7 +3206,7 @@ function fi(i) {
3206
3206
  function mi(i, e) {
3207
3207
  return 8 + pi(i) + Ct(e);
3208
3208
  }
3209
- const gi = 1e3, Ei = 5, yi = 50, Ci = 2, vi = 10, Si = 10, wi = 10, bi = 20, ki = 20, Ii = 30, Ti = 30, Pi = 100;
3209
+ const gi = 1e3, Ei = 5, yi = 50, Ci = 2, Si = 10, vi = 10, wi = 10, bi = 20, ki = 20, Ii = 30, Ti = 30, Pi = 100;
3210
3210
  function Mi(i) {
3211
3211
  return 50 + 10 * i;
3212
3212
  }
@@ -3249,7 +3249,7 @@ class Ai {
3249
3249
  this.add(Ri(this.payloadSizeCharge(e)));
3250
3250
  }
3251
3251
  chargePatchRemove() {
3252
- this.add(vi);
3252
+ this.add(Si);
3253
3253
  }
3254
3254
  chargeCascadeRouting(e) {
3255
3255
  e > 0 && this.add(Ni(e));
@@ -3258,7 +3258,7 @@ class Ai {
3258
3258
  this.add(Oi(this.payloadSizeCharge(e)));
3259
3259
  }
3260
3260
  chargeBridge() {
3261
- this.add(Si);
3261
+ this.add(vi);
3262
3262
  }
3263
3263
  chargeDrainEvent() {
3264
3264
  this.add(wi);
@@ -3386,7 +3386,7 @@ class _i {
3386
3386
  const h = `No processor registered for handler contract ${s.blueId()}`;
3387
3387
  throw new y(
3388
3388
  h,
3389
- v.illegalState(h)
3389
+ S.illegalState(h)
3390
3390
  );
3391
3391
  }
3392
3392
  const u = c.matches;
@@ -3557,7 +3557,7 @@ class _i {
3557
3557
  const r = `No processor registered for handler contract ${e.blueId()}`;
3558
3558
  throw new y(
3559
3559
  r,
3560
- v.illegalState(r)
3560
+ S.illegalState(r)
3561
3561
  );
3562
3562
  }
3563
3563
  await n.execute(e.contract(), t, {
@@ -3612,7 +3612,7 @@ class re {
3612
3612
  }
3613
3613
  async initializeDocument(e) {
3614
3614
  if (this.isInitialized(e))
3615
- throw new $("Document already initialized");
3615
+ throw new U("Document already initialized");
3616
3616
  const t = this.createExecution(e.clone());
3617
3617
  return this.run(e, t, async () => {
3618
3618
  await t.initializeScope("/", !0);
@@ -3620,7 +3620,7 @@ class re {
3620
3620
  }
3621
3621
  async processDocument(e, t) {
3622
3622
  if (!this.isInitialized(e))
3623
- throw new $("Document not initialized");
3623
+ throw new U("Document not initialized");
3624
3624
  const n = this.createExecution(e.clone()), r = t.clone();
3625
3625
  return this.run(e, n, async () => {
3626
3626
  n.loadBundles("/"), await n.processExternalEvent("/", r);
@@ -3661,14 +3661,14 @@ class re {
3661
3661
  if (!(n instanceof p))
3662
3662
  throw new y(
3663
3663
  "Initialization Marker must be a BlueNode",
3664
- v.illegalState(
3664
+ S.illegalState(
3665
3665
  "Initialization Marker must be a BlueNode"
3666
3666
  )
3667
3667
  );
3668
3668
  if (n.getType()?.getBlueId() !== Bi)
3669
3669
  throw new y(
3670
3670
  "Initialization Marker must declare type 'Processing Initialized Marker'",
3671
- v.illegalState(
3671
+ S.illegalState(
3672
3672
  "Initialization Marker must declare type 'Processing Initialized Marker'"
3673
3673
  )
3674
3674
  );
@@ -3775,7 +3775,7 @@ class Li {
3775
3775
  this.shouldSkipTerminatedWork() || this.execution.runtime().addGas(e);
3776
3776
  }
3777
3777
  throwFatal(e) {
3778
- throw new y(e, v.runtimeFatal(e));
3778
+ throw new y(e, S.runtimeFatal(e));
3779
3779
  }
3780
3780
  resolvePointer(e) {
3781
3781
  return this.execution.resolvePointer(this.scopePathValue, e);
@@ -3836,7 +3836,7 @@ class Li {
3836
3836
  const Fi = new Mt({
3837
3837
  repositories: [Rt]
3838
3838
  });
3839
- class Ui {
3839
+ class $i {
3840
3840
  blue;
3841
3841
  registryRef;
3842
3842
  contractLoaderRef;
@@ -3875,10 +3875,10 @@ class Ui {
3875
3875
  return this.contractLoaderRef;
3876
3876
  }
3877
3877
  static builder() {
3878
- return new $i();
3878
+ return new Ui();
3879
3879
  }
3880
3880
  }
3881
- class $i {
3881
+ class Ui {
3882
3882
  contractRegistry;
3883
3883
  blueInstance;
3884
3884
  constructor() {
@@ -3894,13 +3894,13 @@ class $i {
3894
3894
  return this.blueInstance = e, this;
3895
3895
  }
3896
3896
  build() {
3897
- return new Ui({
3897
+ return new $i({
3898
3898
  registry: this.contractRegistry,
3899
3899
  blue: this.blueInstance
3900
3900
  });
3901
3901
  }
3902
3902
  }
3903
- class vt {
3903
+ class St {
3904
3904
  process(e, t) {
3905
3905
  const n = t.getValue();
3906
3906
  if (ee(n)) {
@@ -3923,12 +3923,12 @@ class vt {
3923
3923
  }
3924
3924
  const lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3925
3925
  __proto__: null,
3926
- ExpressionPreserver: vt
3926
+ ExpressionPreserver: St
3927
3927
  }, Symbol.toStringTag, { value: "Module" }));
3928
3928
  function uo() {
3929
3929
  return new B.SequentialMergingProcessor([
3930
3930
  new B.ValuePropagator(),
3931
- new vt(),
3931
+ new St(),
3932
3932
  new B.TypeAssigner(),
3933
3933
  new B.ListProcessor(),
3934
3934
  new B.DictionaryProcessor(),
@@ -3937,7 +3937,7 @@ function uo() {
3937
3937
  ]);
3938
3938
  }
3939
3939
  export {
3940
- vr as ChannelBinding,
3940
+ Sr as ChannelBinding,
3941
3941
  qr as ChannelRunner,
3942
3942
  Gr as CheckpointManager,
3943
3943
  Wr as CheckpointRecord,
@@ -3949,11 +3949,11 @@ export {
3949
3949
  ae as ContractProcessorRegistryBuilder,
3950
3950
  Ke as DocumentProcessingResult,
3951
3951
  Di as DocumentProcessingRuntime,
3952
- Ui as DocumentProcessor,
3953
- $i as DocumentProcessorBuilder,
3952
+ $i as DocumentProcessor,
3953
+ Ui as DocumentProcessorBuilder,
3954
3954
  di as EmissionRegistry,
3955
3955
  Ai as GasMeter,
3956
- Sr as HandlerBinding,
3956
+ vr as HandlerBinding,
3957
3957
  A as KEY_CHECKPOINT,
3958
3958
  We as KEY_EMBEDDED,
3959
3959
  Ge as KEY_INITIALIZED,
@@ -3963,12 +3963,12 @@ export {
3963
3963
  ai as PatchEngine,
3964
3964
  io as ProcessorContractConstants,
3965
3965
  re as ProcessorEngine,
3966
- v as ProcessorErrors,
3966
+ S as ProcessorErrors,
3967
3967
  _i as ProcessorExecution,
3968
3968
  Li as ProcessorExecutionContext,
3969
3969
  y as ProcessorFatalError,
3970
3970
  oo as ProcessorPointerConstants,
3971
- ve as QuickJSEvaluator,
3971
+ Se as QuickJSEvaluator,
3972
3972
  Qe as RELATIVE_CHECKPOINT,
3973
3973
  V as RELATIVE_CONTRACTS,
3974
3974
  Lt as RELATIVE_EMBEDDED,
@@ -3986,7 +3986,7 @@ export {
3986
3986
  bn as channelEventCheckpointSchema,
3987
3987
  dt as compositeTimelineChannelSchema,
3988
3988
  sn as containsExpression,
3989
- Se as contractBaseSchema,
3989
+ ve as contractBaseSchema,
3990
3990
  uo as createDefaultMergingProcessor,
3991
3991
  ct as createPicomatchShouldResolve,
3992
3992
  Dn as documentAnchorsMarkerSchema,
@@ -4006,13 +4006,13 @@ export {
4006
4006
  so as joinRelativePointers,
4007
4007
  ao as jsonPatchSchema,
4008
4008
  mn as lifecycleChannelSchema,
4009
- Yi as map,
4010
- Zi as mapErr,
4009
+ Zi as map,
4010
+ Yi as mapErr,
4011
4011
  N as markerContractBaseSchema,
4012
4012
  ro as match,
4013
4013
  Fn as myosParticipantsOrchestrationMarkerSchema,
4014
- $n as myosSessionInteractionMarkerSchema,
4015
- vn as myosTimelineChannelSchema,
4014
+ Un as myosSessionInteractionMarkerSchema,
4015
+ Sn as myosTimelineChannelSchema,
4016
4016
  Hn as myosWorkerAgencyMarkerSchema,
4017
4017
  P as normalizePointer,
4018
4018
  b as normalizeScope,
@@ -4020,7 +4020,7 @@ export {
4020
4020
  Nn as operationMarkerSchema,
4021
4021
  Pn as processEmbeddedMarkerSchema,
4022
4022
  Rn as processingTerminatedMarkerSchema,
4023
- Ze as relativeCheckpointLastEvent,
4023
+ Ye as relativeCheckpointLastEvent,
4024
4024
  et as relativeCheckpointLastSignature,
4025
4025
  ie as relativeContractsEntry,
4026
4026
  Ft as relativizePointer,
@@ -3,7 +3,7 @@ interface JavaScriptCodeStepExecutorOptions {
3
3
  readonly wasmGasLimit?: bigint | number;
4
4
  }
5
5
  export declare class JavaScriptCodeStepExecutor implements SequentialWorkflowStepExecutor {
6
- readonly supportedBlueIds: readonly ["3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK"];
6
+ readonly supportedBlueIds: readonly ["ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS"];
7
7
  private readonly evaluator;
8
8
  private readonly wasmGasLimit;
9
9
  constructor(options?: JavaScriptCodeStepExecutorOptions);
@@ -1,6 +1,6 @@
1
1
  import { SequentialWorkflowStepExecutor, StepExecutionArgs } from '../workflow/step-runner.js';
2
2
  export declare class TriggerEventStepExecutor implements SequentialWorkflowStepExecutor {
3
- readonly supportedBlueIds: readonly ["GxUtWr3eH9a6YQeioQkujEnsPjD5s9RU8ZhEfmsV1vuU"];
3
+ readonly supportedBlueIds: readonly ["2bSWEoMSZwzf32Hnr4BDVsuq8NRjrWEpnhZvMZAJGhh2"];
4
4
  private readonly evaluator;
5
5
  execute(args: StepExecutionArgs): Promise<unknown>;
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { SequentialWorkflowStepExecutor, StepExecutionArgs } from '../workflow/step-runner.js';
2
2
  export declare class UpdateDocumentStepExecutor implements SequentialWorkflowStepExecutor {
3
- readonly supportedBlueIds: readonly ["BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM"];
3
+ readonly supportedBlueIds: readonly ["FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa"];
4
4
  private readonly evaluator;
5
5
  execute(args: StepExecutionArgs): Promise<unknown>;
6
6
  private extractChanges;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blue-labs/document-processor",
3
- "version": "3.4.0",
3
+ "version": "3.4.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",