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