@lmnr-ai/lmnr 0.8.49 → 0.8.50

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 (34) hide show
  1. package/dist/cli.cjs +19 -14
  2. package/dist/cli.cjs.map +1 -1
  3. package/dist/cli.d.cts +2 -2
  4. package/dist/cli.d.mts +2 -2
  5. package/dist/cli.mjs +16 -11
  6. package/dist/cli.mjs.map +1 -1
  7. package/dist/{evaluations-4bQ4UuTj.d.mts → evaluations-BVaPPf0j.d.mts} +1679 -1305
  8. package/dist/{evaluations-CbHnDCAY.d.cts → evaluations-C8cI_XIE.d.cts} +1682 -1307
  9. package/dist/{file-utils-Ct8PiWkV.mjs → file-utils-DOEv6ccL.mjs} +47 -18
  10. package/dist/file-utils-DOEv6ccL.mjs.map +1 -0
  11. package/dist/{file-utils-N65ihgSU.cjs → file-utils-RXJzJyiI.cjs} +47 -18
  12. package/dist/file-utils-RXJzJyiI.cjs.map +1 -0
  13. package/dist/index.cjs +164 -62
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +1762 -1284
  16. package/dist/index.d.mts +1762 -1284
  17. package/dist/index.mjs +164 -62
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/opentelemetry-lib/instrumentation/temporal/workflow-interceptors.cjs +114 -102
  20. package/dist/opentelemetry-lib/instrumentation/temporal/workflow-interceptors.cjs.map +1 -1
  21. package/dist/opentelemetry-lib/instrumentation/temporal/workflow-interceptors.d.cts +776 -372
  22. package/dist/opentelemetry-lib/instrumentation/temporal/workflow-interceptors.d.mts +776 -372
  23. package/dist/opentelemetry-lib/instrumentation/temporal/workflow-interceptors.mjs +114 -102
  24. package/dist/opentelemetry-lib/instrumentation/temporal/workflow-interceptors.mjs.map +1 -1
  25. package/dist/{rolldown-runtime-2rV9d50f.mjs → rolldown-runtime-B4iAMlE-.mjs} +2 -2
  26. package/dist/{rolldown-runtime-CVvi-lCc.cjs → rolldown-runtime-Ctb5zv51.cjs} +1 -1
  27. package/dist/{utils-D8kgcFxb.cjs → utils-CNR1tzh5.cjs} +10 -9
  28. package/dist/utils-CNR1tzh5.cjs.map +1 -0
  29. package/dist/{utils-CbvnF9B9.mjs → utils-DRrXCfun.mjs} +9 -8
  30. package/dist/{utils-CbvnF9B9.mjs.map → utils-DRrXCfun.mjs.map} +1 -1
  31. package/package.json +6 -8
  32. package/dist/file-utils-Ct8PiWkV.mjs.map +0 -1
  33. package/dist/file-utils-N65ihgSU.cjs.map +0 -1
  34. package/dist/utils-D8kgcFxb.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_rolldown_runtime = require("../../../rolldown-runtime-CVvi-lCc.cjs");
2
+ const require_rolldown_runtime = require("../../../rolldown-runtime-Ctb5zv51.cjs");
3
3
  require("../../../consts-9rSS0oeR.cjs");
4
4
  //#region ../../node_modules/.pnpm/@temporalio+common@1.22.0/node_modules/@temporalio/common/lib/encoding.js
5
5
  var require_encoding = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
@@ -9,7 +9,7 @@ var require_encoding = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((
9
9
  exports.decode = decode;
10
10
  const fromCharCode = String.fromCharCode;
11
11
  const encoderRegexp = /[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g;
12
- const tmpBufferU16 = new Uint16Array(32);
12
+ const tmpBufferU16 = /* @__PURE__ */ new Uint16Array(32);
13
13
  var TextDecoder = class {
14
14
  decode(inputArrayOrBuffer) {
15
15
  const inputAs8 = inputArrayOrBuffer instanceof Uint8Array ? inputArrayOrBuffer : new Uint8Array(inputArrayOrBuffer);
@@ -157,37 +157,39 @@ var require_encoding = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((
157
157
  const u8ArrLen = u8Arr.length | 0;
158
158
  const inputLength = inputString.length | 0;
159
159
  if (u8ArrLen < len) len = u8ArrLen;
160
- putChars: for (; i < len; i = i + 1 | 0) {
161
- char = encodedString.charCodeAt(i) | 0;
162
- switch (char >> 4) {
163
- case 0:
164
- case 1:
165
- case 2:
166
- case 3:
167
- case 4:
168
- case 5:
169
- case 6:
170
- case 7: read = read + 1 | 0;
171
- case 8:
172
- case 9:
173
- case 10:
174
- case 11: break;
175
- case 12:
176
- case 13: if ((i + 1 | 0) < u8ArrLen) {
177
- read = read + 1 | 0;
178
- break;
179
- }
180
- case 14: if ((i + 2 | 0) < u8ArrLen) {
181
- read = read + 1 | 0;
182
- break;
183
- }
184
- case 15: if ((i + 3 | 0) < u8ArrLen) {
185
- read = read + 1 | 0;
186
- break;
160
+ putChars: {
161
+ for (; i < len; i = i + 1 | 0) {
162
+ char = encodedString.charCodeAt(i) | 0;
163
+ switch (char >> 4) {
164
+ case 0:
165
+ case 1:
166
+ case 2:
167
+ case 3:
168
+ case 4:
169
+ case 5:
170
+ case 6:
171
+ case 7: read = read + 1 | 0;
172
+ case 8:
173
+ case 9:
174
+ case 10:
175
+ case 11: break;
176
+ case 12:
177
+ case 13: if ((i + 1 | 0) < u8ArrLen) {
178
+ read = read + 1 | 0;
179
+ break;
180
+ }
181
+ case 14: if ((i + 2 | 0) < u8ArrLen) {
182
+ read = read + 1 | 0;
183
+ break;
184
+ }
185
+ case 15: if ((i + 3 | 0) < u8ArrLen) {
186
+ read = read + 1 | 0;
187
+ break;
188
+ }
189
+ default: break putChars;
187
190
  }
188
- default: break putChars;
191
+ u8Arr[i] = char;
189
192
  }
190
- u8Arr[i] = char;
191
193
  }
192
194
  return {
193
195
  written: i,
@@ -2102,10 +2104,12 @@ var require_umd = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((expor
2102
2104
  radix = radix || 10;
2103
2105
  if (radix < 2 || 36 < radix) throw RangeError("radix");
2104
2106
  if (this.isZero()) return "0";
2105
- if (this.isNegative()) if (this.eq(MIN_VALUE)) {
2106
- var radixLong = fromNumber(radix), div = this.div(radixLong), rem1 = div.mul(radixLong).sub(this);
2107
- return div.toString(radix) + rem1.toInt().toString(radix);
2108
- } else return "-" + this.neg().toString(radix);
2107
+ if (this.isNegative()) {
2108
+ if (this.eq(MIN_VALUE)) {
2109
+ var radixLong = fromNumber(radix), div = this.div(radixLong), rem1 = div.mul(radixLong).sub(this);
2110
+ return div.toString(radix) + rem1.toInt().toString(radix);
2111
+ } else return "-" + this.neg().toString(radix);
2112
+ }
2109
2113
  var radixToPower = fromNumber(pow_dbl(radix, 6), this.unsigned), rem = this;
2110
2114
  var result = "";
2111
2115
  while (true) {
@@ -2435,9 +2439,10 @@ var require_umd = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((expor
2435
2439
  if (multiplier.isZero()) return this.unsigned ? UZERO : ZERO;
2436
2440
  if (this.eq(MIN_VALUE)) return multiplier.isOdd() ? MIN_VALUE : ZERO;
2437
2441
  if (multiplier.eq(MIN_VALUE)) return this.isOdd() ? MIN_VALUE : ZERO;
2438
- if (this.isNegative()) if (multiplier.isNegative()) return this.neg().mul(multiplier.neg());
2439
- else return this.neg().mul(multiplier).neg();
2440
- else if (multiplier.isNegative()) return this.mul(multiplier.neg()).neg();
2442
+ if (this.isNegative()) {
2443
+ if (multiplier.isNegative()) return this.neg().mul(multiplier.neg());
2444
+ else return this.neg().mul(multiplier).neg();
2445
+ } else if (multiplier.isNegative()) return this.mul(multiplier.neg()).neg();
2441
2446
  if (this.lt(TWO_PWR_24) && multiplier.lt(TWO_PWR_24)) return fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);
2442
2447
  var a48 = this.high >>> 16;
2443
2448
  var a32 = this.high & 65535;
@@ -2494,18 +2499,19 @@ var require_umd = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((expor
2494
2499
  if (this.isZero()) return this.unsigned ? UZERO : ZERO;
2495
2500
  var approx, rem, res;
2496
2501
  if (!this.unsigned) {
2497
- if (this.eq(MIN_VALUE)) if (divisor.eq(ONE) || divisor.eq(NEG_ONE)) return MIN_VALUE;
2498
- else if (divisor.eq(MIN_VALUE)) return ONE;
2499
- else {
2500
- approx = this.shr(1).div(divisor).shl(1);
2501
- if (approx.eq(ZERO)) return divisor.isNegative() ? ONE : NEG_ONE;
2502
+ if (this.eq(MIN_VALUE)) {
2503
+ if (divisor.eq(ONE) || divisor.eq(NEG_ONE)) return MIN_VALUE;
2504
+ else if (divisor.eq(MIN_VALUE)) return ONE;
2502
2505
  else {
2503
- rem = this.sub(divisor.mul(approx));
2504
- res = approx.add(rem.div(divisor));
2505
- return res;
2506
+ approx = this.shr(1).div(divisor).shl(1);
2507
+ if (approx.eq(ZERO)) return divisor.isNegative() ? ONE : NEG_ONE;
2508
+ else {
2509
+ rem = this.sub(divisor.mul(approx));
2510
+ res = approx.add(rem.div(divisor));
2511
+ return res;
2512
+ }
2506
2513
  }
2507
- }
2508
- else if (divisor.eq(MIN_VALUE)) return this.unsigned ? UZERO : ZERO;
2514
+ } else if (divisor.eq(MIN_VALUE)) return this.unsigned ? UZERO : ZERO;
2509
2515
  if (this.isNegative()) {
2510
2516
  if (divisor.isNegative()) return this.neg().div(divisor.neg());
2511
2517
  return this.neg().div(divisor).neg();
@@ -2877,7 +2883,9 @@ var require_failure = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((e
2877
2883
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
2878
2884
  return c > 3 && r && Object.defineProperty(target, key, r), r;
2879
2885
  };
2880
- var _a, _b, _c;
2886
+ var _a;
2887
+ var _b;
2888
+ var _c;
2881
2889
  Object.defineProperty(exports, "__esModule", { value: true });
2882
2890
  exports.WorkflowExecutionAlreadyStartedError = exports.NexusOperationFailure = exports.ChildWorkflowFailure = exports.ActivityFailure = exports.TimeoutFailure = exports.TerminatedFailure = exports.CancelledFailure = exports.ApplicationFailure = exports.ServerFailure = exports.TemporalFailure = exports.decodeApplicationFailureCategory = exports.encodeApplicationFailureCategory = exports.ApplicationFailureCategory = exports.decodeRetryState = exports.encodeRetryState = exports.RetryState = exports.decodeTimeoutType = exports.encodeTimeoutType = exports.TimeoutType = exports.FAILURE_SOURCE = void 0;
2883
2891
  exports.ensureApplicationFailure = ensureApplicationFailure;
@@ -3836,9 +3844,7 @@ var require_failure_converter = /* @__PURE__ */ require_rolldown_runtime.__commo
3836
3844
  case "RETRYABLE":
3837
3845
  retryableOverride = true;
3838
3846
  break;
3839
- case "NON_RETRYABLE":
3840
- retryableOverride = false;
3841
- break;
3847
+ case "NON_RETRYABLE": retryableOverride = false;
3842
3848
  }
3843
3849
  const rawErrorType = failure.nexusHandlerFailureInfo.type || "";
3844
3850
  const resolvedType = Object.hasOwn(nexus.HandlerErrorType, rawErrorType) ? nexus.HandlerErrorType[rawErrorType] : "UNKNOWN";
@@ -3935,24 +3941,24 @@ var require_failure_converter = /* @__PURE__ */ require_rolldown_runtime.__commo
3935
3941
  ...base,
3936
3942
  terminatedFailureInfo: {}
3937
3943
  };
3938
- if (err instanceof nexus.HandlerError) if (err.originalFailure) return this.nexusFailureToTemporalFailure(err.originalFailure, err.retryable);
3939
- else {
3940
- let retryBehavior = void 0;
3941
- switch (err.retryableOverride) {
3942
- case true:
3943
- retryBehavior = encodeNexusHandlerErrorRetryBehavior("RETRYABLE");
3944
- break;
3945
- case false:
3946
- retryBehavior = encodeNexusHandlerErrorRetryBehavior("NON_RETRYABLE");
3947
- break;
3948
- }
3949
- return {
3950
- ...base,
3951
- nexusHandlerFailureInfo: {
3952
- type: err.type,
3953
- retryBehavior
3944
+ if (err instanceof nexus.HandlerError) {
3945
+ if (err.originalFailure) return this.nexusFailureToTemporalFailure(err.originalFailure, err.retryable);
3946
+ else {
3947
+ let retryBehavior = void 0;
3948
+ switch (err.retryableOverride) {
3949
+ case true:
3950
+ retryBehavior = encodeNexusHandlerErrorRetryBehavior("RETRYABLE");
3951
+ break;
3952
+ case false: retryBehavior = encodeNexusHandlerErrorRetryBehavior("NON_RETRYABLE");
3954
3953
  }
3955
- };
3954
+ return {
3955
+ ...base,
3956
+ nexusHandlerFailureInfo: {
3957
+ type: err.type,
3958
+ retryBehavior
3959
+ }
3960
+ };
3961
+ }
3956
3962
  }
3957
3963
  if (err instanceof failure_1.NexusOperationFailure) return {
3958
3964
  ...base,
@@ -4081,7 +4087,7 @@ var require_extstore = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((
4081
4087
  };
4082
4088
  exports.StorageDriverClaim = StorageDriverClaim;
4083
4089
  /** Default {@link ExternalStorage.payloadSizeThreshold}: 256 KiB. */
4084
- const DEFAULT_PAYLOAD_SIZE_THRESHOLD = 256 * 1024;
4090
+ const DEFAULT_PAYLOAD_SIZE_THRESHOLD = 262144;
4085
4091
  /**
4086
4092
  * Configuration for external storage. Holds the registered drivers, an
4087
4093
  * optional selector, and the size threshold above which payloads are
@@ -4728,7 +4734,8 @@ var require_retry_policy = /* @__PURE__ */ require_rolldown_runtime.__commonJSMi
4728
4734
  //#endregion
4729
4735
  //#region ../../node_modules/.pnpm/@temporalio+common@1.22.0/node_modules/@temporalio/common/lib/worker-deployments.js
4730
4736
  var require_worker_deployments = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
4731
- var _a, _b;
4737
+ var _a;
4738
+ var _b;
4732
4739
  Object.defineProperty(exports, "__esModule", { value: true });
4733
4740
  exports.decodeInitialVersioningBehavior = exports.encodeInitialVersioningBehavior = exports.InitialVersioningBehavior = exports.decodeVersioningBehavior = exports.encodeVersioningBehavior = exports.VersioningBehavior = void 0;
4734
4741
  exports.toCanonicalString = toCanonicalString;
@@ -4819,7 +4826,8 @@ var require_workflow_handle = /* @__PURE__ */ require_rolldown_runtime.__commonJ
4819
4826
  //#endregion
4820
4827
  //#region ../../node_modules/.pnpm/@temporalio+common@1.22.0/node_modules/@temporalio/common/lib/workflow-options.js
4821
4828
  var require_workflow_options = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
4822
- var _a, _b;
4829
+ var _a;
4830
+ var _b;
4823
4831
  Object.defineProperty(exports, "__esModule", { value: true });
4824
4832
  exports.decodeWorkflowIdConflictPolicy = exports.encodeWorkflowIdConflictPolicy = exports.WorkflowIdConflictPolicy = exports.decodeWorkflowIdReusePolicy = exports.encodeWorkflowIdReusePolicy = exports.WorkflowIdReusePolicy = void 0;
4825
4833
  exports.extractWorkflowType = extractWorkflowType;
@@ -5712,7 +5720,8 @@ var require_interfaces = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(
5712
5720
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5713
5721
  return c > 3 && r && Object.defineProperty(target, key, r), r;
5714
5722
  };
5715
- var _a, _b;
5723
+ var _a;
5724
+ var _b;
5716
5725
  Object.defineProperty(exports, "__esModule", { value: true });
5717
5726
  exports.decodeParentClosePolicy = exports.encodeParentClosePolicy = exports.ParentClosePolicy = exports.decodeChildWorkflowCancellationType = exports.encodeChildWorkflowCancellationType = exports.ChildWorkflowCancellationType = exports.ContinueAsNew = void 0;
5718
5727
  const type_helpers_1 = require_type_helpers();
@@ -6271,7 +6280,7 @@ var require_reserved = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((
6271
6280
  * the {@link TEMPORAL_RESERVED_PREFIX} check at registration time. Registering
6272
6281
  * the same name as a different entity type is still rejected.
6273
6282
  */
6274
- const INTERNAL_RESERVED_NAME_ALLOWLIST = new Map([
6283
+ const INTERNAL_RESERVED_NAME_ALLOWLIST = /* @__PURE__ */ new Map([
6275
6284
  ["__temporal_workflow_stream_publish", "signal"],
6276
6285
  ["__temporal_workflow_stream_poll", "update"],
6277
6286
  ["__temporal_workflow_stream_offset", "query"],
@@ -7138,36 +7147,39 @@ var require_workflow = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((
7138
7147
  const activator = (0, global_attributes_1.assertInWorkflowContext)("Workflow.setHandler(...) may only be used from a Workflow Execution.");
7139
7148
  (0, reserved_1.throwIfReservedName)(def.type, def.name);
7140
7149
  const description = options?.description;
7141
- if (def.type === "update") if (typeof handler === "function") {
7142
- const updateOptions = options;
7143
- const validator = updateOptions?.validator;
7144
- const unfinishedPolicy = updateOptions?.unfinishedPolicy ?? common_1.HandlerUnfinishedPolicy.WARN_AND_ABANDON;
7145
- activator.updateHandlers.set(def.name, {
7146
- handler,
7147
- validator,
7148
- description,
7149
- unfinishedPolicy
7150
- });
7151
- activator.dispatchBufferedUpdates();
7152
- } else if (handler == null) activator.updateHandlers.delete(def.name);
7153
- else throw new TypeError(`Expected handler to be either a function or 'undefined'. Got: '${typeof handler}'`);
7154
- else if (def.type === "signal") if (typeof handler === "function") {
7155
- const unfinishedPolicy = options?.unfinishedPolicy ?? common_1.HandlerUnfinishedPolicy.WARN_AND_ABANDON;
7156
- activator.signalHandlers.set(def.name, {
7150
+ if (def.type === "update") {
7151
+ if (typeof handler === "function") {
7152
+ const updateOptions = options;
7153
+ const validator = updateOptions?.validator;
7154
+ const unfinishedPolicy = updateOptions?.unfinishedPolicy ?? common_1.HandlerUnfinishedPolicy.WARN_AND_ABANDON;
7155
+ activator.updateHandlers.set(def.name, {
7156
+ handler,
7157
+ validator,
7158
+ description,
7159
+ unfinishedPolicy
7160
+ });
7161
+ activator.dispatchBufferedUpdates();
7162
+ } else if (handler == null) activator.updateHandlers.delete(def.name);
7163
+ else throw new TypeError(`Expected handler to be either a function or 'undefined'. Got: '${typeof handler}'`);
7164
+ } else if (def.type === "signal") {
7165
+ if (typeof handler === "function") {
7166
+ const unfinishedPolicy = options?.unfinishedPolicy ?? common_1.HandlerUnfinishedPolicy.WARN_AND_ABANDON;
7167
+ activator.signalHandlers.set(def.name, {
7168
+ handler,
7169
+ description,
7170
+ unfinishedPolicy
7171
+ });
7172
+ activator.dispatchBufferedSignals();
7173
+ } else if (handler == null) activator.signalHandlers.delete(def.name);
7174
+ else throw new TypeError(`Expected handler to be either a function or 'undefined'. Got: '${typeof handler}'`);
7175
+ } else if (def.type === "query") {
7176
+ if (typeof handler === "function") activator.queryHandlers.set(def.name, {
7157
7177
  handler,
7158
- description,
7159
- unfinishedPolicy
7178
+ description
7160
7179
  });
7161
- activator.dispatchBufferedSignals();
7162
- } else if (handler == null) activator.signalHandlers.delete(def.name);
7163
- else throw new TypeError(`Expected handler to be either a function or 'undefined'. Got: '${typeof handler}'`);
7164
- else if (def.type === "query") if (typeof handler === "function") activator.queryHandlers.set(def.name, {
7165
- handler,
7166
- description
7167
- });
7168
- else if (handler == null) activator.queryHandlers.delete(def.name);
7169
- else throw new TypeError(`Expected handler to be either a function or 'undefined'. Got: '${typeof handler}'`);
7170
- else throw new TypeError(`Invalid definition type: ${def.type}`);
7180
+ else if (handler == null) activator.queryHandlers.delete(def.name);
7181
+ else throw new TypeError(`Expected handler to be either a function or 'undefined'. Got: '${typeof handler}'`);
7182
+ } else throw new TypeError(`Invalid definition type: ${def.type}`);
7171
7183
  }
7172
7184
  /**
7173
7185
  * Set a signal handler function that will handle signals calls for non-registered signal names.