@dudousxd/nestjs-durable-core 0.68.0 → 0.69.0

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.cjs CHANGED
@@ -32,6 +32,7 @@ __export(index_exports, {
32
32
  DURABLE_STEP_CONFIG: () => DURABLE_STEP_CONFIG,
33
33
  DURABLE_STEP_NAME: () => DURABLE_STEP_NAME,
34
34
  DurableWorkflow: () => DurableWorkflow,
35
+ ENGINE_MINTED_TAG_PREFIXES: () => ENGINE_MINTED_TAG_PREFIXES,
35
36
  EVENT_BUFFER_SCAN_LIMIT: () => EVENT_BUFFER_SCAN_LIMIT,
36
37
  EVENT_TOKEN_PREFIX: () => EVENT_TOKEN_PREFIX,
37
38
  Entities: () => Entities,
@@ -98,6 +99,7 @@ __export(index_exports, {
98
99
  heartbeatStatus: () => heartbeatStatus,
99
100
  indexWaitersByRun: () => indexWaitersByRun,
100
101
  info: () => info,
102
+ isEngineMintedTag: () => isEngineMintedTag,
101
103
  isEventToken: () => isEventToken,
102
104
  isLegacyDescriptor: () => isLegacyDescriptor,
103
105
  isWorkflowControlFlowSignal: () => isWorkflowControlFlowSignal,
@@ -6142,6 +6144,13 @@ __name(mergeRunFacetRows, "mergeRunFacetRows");
6142
6144
  // src/run-value-facets.ts
6143
6145
  var RUN_VALUE_FACET_LIMIT = 100;
6144
6146
  var RUN_VALUE_FACET_SCAN = 5e3;
6147
+ var ENGINE_MINTED_TAG_PREFIXES = [
6148
+ "singleton:"
6149
+ ];
6150
+ function isEngineMintedTag(value) {
6151
+ return value !== null && ENGINE_MINTED_TAG_PREFIXES.some((prefix) => value.startsWith(prefix));
6152
+ }
6153
+ __name(isEngineMintedTag, "isEngineMintedTag");
6145
6154
  function axisIsRunColumn(axis) {
6146
6155
  return axis.field === "workflow" || axis.field === "status" || axis.field === "origin" || axis.field === "namespace";
6147
6156
  }
@@ -6189,6 +6198,9 @@ function mergeRunValueFacetRows(rows, opts) {
6189
6198
  value,
6190
6199
  count
6191
6200
  })).filter((row) => row.count > 0).sort((a, b) => {
6201
+ const engineA = isEngineMintedTag(a.value);
6202
+ const engineB = isEngineMintedTag(b.value);
6203
+ if (engineA !== engineB) return engineA ? 1 : -1;
6192
6204
  if (b.count !== a.count) return b.count - a.count;
6193
6205
  if (a.value === null) return 1;
6194
6206
  if (b.value === null) return -1;
@@ -7117,6 +7129,7 @@ var InMemoryTransport = class {
7117
7129
  DURABLE_STEP_CONFIG,
7118
7130
  DURABLE_STEP_NAME,
7119
7131
  DurableWorkflow,
7132
+ ENGINE_MINTED_TAG_PREFIXES,
7120
7133
  EVENT_BUFFER_SCAN_LIMIT,
7121
7134
  EVENT_TOKEN_PREFIX,
7122
7135
  Entities,
@@ -7183,6 +7196,7 @@ var InMemoryTransport = class {
7183
7196
  heartbeatStatus,
7184
7197
  indexWaitersByRun,
7185
7198
  info,
7199
+ isEngineMintedTag,
7186
7200
  isEventToken,
7187
7201
  isLegacyDescriptor,
7188
7202
  isWorkflowControlFlowSignal,