@botpress/runtime 1.8.3 → 1.9.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/library.js CHANGED
@@ -48,7 +48,7 @@ var init_define_BUILD = __esm({
48
48
  var define_PACKAGE_VERSIONS_default;
49
49
  var init_define_PACKAGE_VERSIONS = __esm({
50
50
  "<define:__PACKAGE_VERSIONS__>"() {
51
- define_PACKAGE_VERSIONS_default = { runtime: "1.8.3", adk: "1.8.3", sdk: "4.19.0", llmz: "0.0.33", zai: "2.5.0", cognitive: "0.2.0" };
51
+ define_PACKAGE_VERSIONS_default = { runtime: "1.9.0", adk: "1.9.0", sdk: "4.20.2", llmz: "0.0.33", zai: "2.5.0", cognitive: "0.2.0" };
52
52
  }
53
53
  });
54
54
 
@@ -36931,7 +36931,7 @@ var InterceptorManager = class {
36931
36931
  *
36932
36932
  * @param {Number} id The ID that was returned by `use`
36933
36933
  *
36934
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
36934
+ * @returns {void}
36935
36935
  */
36936
36936
  eject(id) {
36937
36937
  if (this.handlers[id]) {
@@ -37612,13 +37612,14 @@ var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
37612
37612
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
37613
37613
  import http2 from "http";
37614
37614
  import https2 from "https";
37615
+ import http22 from "http2";
37615
37616
  import util2 from "util";
37616
37617
  import zlib from "zlib";
37617
37618
 
37618
37619
  // ../../node_modules/axios/lib/env/data.js
37619
37620
  init_define_BUILD();
37620
37621
  init_define_PACKAGE_VERSIONS();
37621
- var VERSION2 = "1.12.2";
37622
+ var VERSION2 = "1.13.2";
37622
37623
 
37623
37624
  // ../../node_modules/axios/lib/helpers/fromDataURI.js
37624
37625
  init_define_BUILD();
@@ -38113,6 +38114,76 @@ var flushOnFinish = (stream5, [throttled, flush]) => {
38113
38114
  stream5.on("end", flush).on("error", flush);
38114
38115
  return throttled;
38115
38116
  };
38117
+ var Http2Sessions = class {
38118
+ constructor() {
38119
+ this.sessions = /* @__PURE__ */ Object.create(null);
38120
+ }
38121
+ getSession(authority, options) {
38122
+ options = Object.assign({
38123
+ sessionTimeout: 1e3
38124
+ }, options);
38125
+ let authoritySessions = this.sessions[authority];
38126
+ if (authoritySessions) {
38127
+ let len = authoritySessions.length;
38128
+ for (let i = 0; i < len; i++) {
38129
+ const [sessionHandle, sessionOptions] = authoritySessions[i];
38130
+ if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
38131
+ return sessionHandle;
38132
+ }
38133
+ }
38134
+ }
38135
+ const session = http22.connect(authority, options);
38136
+ let removed;
38137
+ const removeSession = () => {
38138
+ if (removed) {
38139
+ return;
38140
+ }
38141
+ removed = true;
38142
+ let entries = authoritySessions, len = entries.length, i = len;
38143
+ while (i--) {
38144
+ if (entries[i][0] === session) {
38145
+ if (len === 1) {
38146
+ delete this.sessions[authority];
38147
+ } else {
38148
+ entries.splice(i, 1);
38149
+ }
38150
+ return;
38151
+ }
38152
+ }
38153
+ };
38154
+ const originalRequestFn = session.request;
38155
+ const { sessionTimeout } = options;
38156
+ if (sessionTimeout != null) {
38157
+ let timer;
38158
+ let streamsCount = 0;
38159
+ session.request = function() {
38160
+ const stream5 = originalRequestFn.apply(this, arguments);
38161
+ streamsCount++;
38162
+ if (timer) {
38163
+ clearTimeout(timer);
38164
+ timer = null;
38165
+ }
38166
+ stream5.once("close", () => {
38167
+ if (!--streamsCount) {
38168
+ timer = setTimeout(() => {
38169
+ timer = null;
38170
+ removeSession();
38171
+ }, sessionTimeout);
38172
+ }
38173
+ });
38174
+ return stream5;
38175
+ };
38176
+ }
38177
+ session.once("close", removeSession);
38178
+ let entry = [
38179
+ session,
38180
+ options
38181
+ ];
38182
+ authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
38183
+ return session;
38184
+ }
38185
+ };
38186
+ var http2Sessions = new Http2Sessions();
38116
38187
  function dispatchBeforeRedirect(options, responseDetails) {
38117
38188
  if (options.beforeRedirects.proxy) {
38118
38189
  options.beforeRedirects.proxy(options);
@@ -38185,14 +38256,54 @@ var resolveFamily = ({ address, family }) => {
38185
38256
  };
38186
38257
  };
38187
38258
  var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
38259
+ var http2Transport = {
38260
+ request(options, cb) {
38261
+ const authority = options.protocol + "//" + options.hostname + ":" + (options.port || 80);
38262
+ const { http2Options, headers } = options;
38263
+ const session = http2Sessions.getSession(authority, http2Options);
38264
+ const {
38265
+ HTTP2_HEADER_SCHEME,
38266
+ HTTP2_HEADER_METHOD,
38267
+ HTTP2_HEADER_PATH,
38268
+ HTTP2_HEADER_STATUS
38269
+ } = http22.constants;
38270
+ const http2Headers = {
38271
+ [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
38272
+ [HTTP2_HEADER_METHOD]: options.method,
38273
+ [HTTP2_HEADER_PATH]: options.path
38274
+ };
38275
+ utils_default.forEach(headers, (header, name) => {
38276
+ name.charAt(0) !== ":" && (http2Headers[name] = header);
38277
+ });
38278
+ const req = session.request(http2Headers);
38279
+ req.once("response", (responseHeaders) => {
38280
+ const response = req;
38281
+ responseHeaders = Object.assign({}, responseHeaders);
38282
+ const status = responseHeaders[HTTP2_HEADER_STATUS];
38283
+ delete responseHeaders[HTTP2_HEADER_STATUS];
38284
+ response.headers = responseHeaders;
38285
+ response.statusCode = +status;
38286
+ cb(response);
38287
+ });
38288
+ return req;
38289
+ }
38290
+ };
38188
38291
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
38189
38292
  return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
38190
- let { data, lookup, family } = config;
38293
+ let { data, lookup, family, httpVersion = 1, http2Options } = config;
38191
38294
  const { responseType, responseEncoding } = config;
38192
38295
  const method = config.method.toUpperCase();
38193
38296
  let isDone;
38194
38297
  let rejected = false;
38195
38298
  let req;
38299
+ httpVersion = +httpVersion;
38300
+ if (Number.isNaN(httpVersion)) {
38301
+ throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
38302
+ }
38303
+ if (httpVersion !== 1 && httpVersion !== 2) {
38304
+ throw TypeError(`Unsupported protocol version '${httpVersion}'`);
38305
+ }
38306
+ const isHttp2 = httpVersion === 2;
38196
38307
  if (lookup) {
38197
38308
  const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
38198
38309
  lookup = (hostname, opt, cb) => {
@@ -38205,7 +38316,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
38205
38316
  });
38206
38317
  };
38207
38318
  }
38208
- const emitter = new EventEmitter();
38319
+ const abortEmitter = new EventEmitter();
38320
+ function abort(reason) {
38321
+ try {
38322
+ abortEmitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config, req) : reason);
38323
+ } catch (err) {
38324
+ console.warn("emit error", err);
38325
+ }
38326
+ }
38327
+ abortEmitter.once("abort", reject);
38209
38328
  const onFinished = () => {
38210
38329
  if (config.cancelToken) {
38211
38330
  config.cancelToken.unsubscribe(abort);
@@ -38213,25 +38332,31 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
38213
38332
  if (config.signal) {
38214
38333
  config.signal.removeEventListener("abort", abort);
38215
38334
  }
38216
- emitter.removeAllListeners();
38335
+ abortEmitter.removeAllListeners();
38217
38336
  };
38218
- onDone((value, isRejected) => {
38219
- isDone = true;
38220
- if (isRejected) {
38221
- rejected = true;
38222
- onFinished();
38223
- }
38224
- });
38225
- function abort(reason) {
38226
- emitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config, req) : reason);
38227
- }
38228
- emitter.once("abort", reject);
38229
38337
  if (config.cancelToken || config.signal) {
38230
38338
  config.cancelToken && config.cancelToken.subscribe(abort);
38231
38339
  if (config.signal) {
38232
38340
  config.signal.aborted ? abort() : config.signal.addEventListener("abort", abort);
38233
38341
  }
38234
38342
  }
38343
+ onDone((response, isRejected) => {
38344
+ isDone = true;
38345
+ if (isRejected) {
38346
+ rejected = true;
38347
+ onFinished();
38348
+ return;
38349
+ }
38350
+ const { data: data2 } = response;
38351
+ if (data2 instanceof stream3.Readable || data2 instanceof stream3.Duplex) {
38352
+ const offListeners = stream3.finished(data2, () => {
38353
+ offListeners();
38354
+ onFinished();
38355
+ });
38356
+ } else {
38357
+ onFinished();
38358
+ }
38359
+ });
38235
38360
  const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
38236
38361
  const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
38237
38362
  const protocol = parsed.protocol || supportedProtocols[0];
@@ -38397,7 +38522,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
38397
38522
  protocol,
38398
38523
  family,
38399
38524
  beforeRedirect: dispatchBeforeRedirect,
38400
- beforeRedirects: {}
38525
+ beforeRedirects: {},
38526
+ http2Options
38401
38527
  };
38402
38528
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
38403
38529
  if (config.socketPath) {
@@ -38410,18 +38536,22 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
38410
38536
  let transport;
38411
38537
  const isHttpsRequest = isHttps.test(options.protocol);
38412
38538
  options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
38413
- if (config.transport) {
38414
- transport = config.transport;
38415
- } else if (config.maxRedirects === 0) {
38416
- transport = isHttpsRequest ? https2 : http2;
38539
+ if (isHttp2) {
38540
+ transport = http2Transport;
38417
38541
  } else {
38418
- if (config.maxRedirects) {
38419
- options.maxRedirects = config.maxRedirects;
38420
- }
38421
- if (config.beforeRedirect) {
38422
- options.beforeRedirects.config = config.beforeRedirect;
38542
+ if (config.transport) {
38543
+ transport = config.transport;
38544
+ } else if (config.maxRedirects === 0) {
38545
+ transport = isHttpsRequest ? https2 : http2;
38546
+ } else {
38547
+ if (config.maxRedirects) {
38548
+ options.maxRedirects = config.maxRedirects;
38549
+ }
38550
+ if (config.beforeRedirect) {
38551
+ options.beforeRedirects.config = config.beforeRedirect;
38552
+ }
38553
+ transport = isHttpsRequest ? httpsFollow : httpFollow;
38423
38554
  }
38424
- transport = isHttpsRequest ? httpsFollow : httpFollow;
38425
38555
  }
38426
38556
  if (config.maxBodyLength > -1) {
38427
38557
  options.maxBodyLength = config.maxBodyLength;
@@ -38434,7 +38564,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
38434
38564
  req = transport.request(options, function handleResponse(res) {
38435
38565
  if (req.destroyed) return;
38436
38566
  const streams2 = [res];
38437
- const responseLength = +res.headers["content-length"];
38567
+ const responseLength = utils_default.toFiniteNumber(res.headers["content-length"]);
38438
38568
  if (onDownloadProgress || maxDownloadRate) {
38439
38569
  const transformStream = new AxiosTransformStream_default({
38440
38570
  maxRate: utils_default.toFiniteNumber(maxDownloadRate)
@@ -38476,10 +38606,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
38476
38606
  }
38477
38607
  }
38478
38608
  responseStream = streams2.length > 1 ? stream3.pipeline(streams2, utils_default.noop) : streams2[0];
38479
- const offListeners = stream3.finished(responseStream, () => {
38480
- offListeners();
38481
- onFinished();
38482
- });
38483
38609
  const response = {
38484
38610
  status: res.statusCode,
38485
38611
  statusText: res.statusMessage,
@@ -38499,7 +38625,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
38499
38625
  if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
38500
38626
  rejected = true;
38501
38627
  responseStream.destroy();
38502
- reject(new AxiosError_default(
38628
+ abort(new AxiosError_default(
38503
38629
  "maxContentLength size of " + config.maxContentLength + " exceeded",
38504
38630
  AxiosError_default.ERR_BAD_RESPONSE,
38505
38631
  config,
@@ -38540,16 +38666,19 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
38540
38666
  settle(resolve, reject, response);
38541
38667
  });
38542
38668
  }
38543
- emitter.once("abort", (err) => {
38669
+ abortEmitter.once("abort", (err) => {
38544
38670
  if (!responseStream.destroyed) {
38545
38671
  responseStream.emit("error", err);
38546
38672
  responseStream.destroy();
38547
38673
  }
38548
38674
  });
38549
38675
  });
38550
- emitter.once("abort", (err) => {
38551
- reject(err);
38552
- req.destroy(err);
38676
+ abortEmitter.once("abort", (err) => {
38677
+ if (req.close) {
38678
+ req.close();
38679
+ } else {
38680
+ req.destroy(err);
38681
+ }
38553
38682
  });
38554
38683
  req.on("error", function handleRequestError(err) {
38555
38684
  reject(AxiosError_default.from(err, null, config, req));
@@ -38560,7 +38689,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
38560
38689
  if (config.timeout) {
38561
38690
  const timeout = parseInt(config.timeout, 10);
38562
38691
  if (Number.isNaN(timeout)) {
38563
- reject(new AxiosError_default(
38692
+ abort(new AxiosError_default(
38564
38693
  "error trying to parse `config.timeout` to int",
38565
38694
  AxiosError_default.ERR_BAD_OPTION_VALUE,
38566
38695
  config,
@@ -38575,14 +38704,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
38575
38704
  if (config.timeoutErrorMessage) {
38576
38705
  timeoutErrorMessage = config.timeoutErrorMessage;
38577
38706
  }
38578
- reject(new AxiosError_default(
38707
+ abort(new AxiosError_default(
38579
38708
  timeoutErrorMessage,
38580
38709
  transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
38581
38710
  config,
38582
38711
  req
38583
38712
  ));
38584
- abort();
38585
38713
  });
38714
+ } else {
38715
+ req.setTimeout(0);
38586
38716
  }
38587
38717
  if (utils_default.isStream(data)) {
38588
38718
  let ended = false;
@@ -38601,7 +38731,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
38601
38731
  });
38602
38732
  data.pipe(req);
38603
38733
  } else {
38604
- req.end(data);
38734
+ data && req.write(data);
38735
+ req.end();
38605
38736
  }
38606
38737
  });
38607
38738
  };
@@ -38631,20 +38762,33 @@ init_define_PACKAGE_VERSIONS();
38631
38762
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
38632
38763
  // Standard browser envs support document.cookie
38633
38764
  {
38634
- write(name, value, expires, path4, domain, secure) {
38635
- const cookie = [name + "=" + encodeURIComponent(value)];
38636
- utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
38637
- utils_default.isString(path4) && cookie.push("path=" + path4);
38638
- utils_default.isString(domain) && cookie.push("domain=" + domain);
38639
- secure === true && cookie.push("secure");
38765
+ write(name, value, expires, path4, domain, secure, sameSite) {
38766
+ if (typeof document === "undefined") return;
38767
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
38768
+ if (utils_default.isNumber(expires)) {
38769
+ cookie.push(`expires=${new Date(expires).toUTCString()}`);
38770
+ }
38771
+ if (utils_default.isString(path4)) {
38772
+ cookie.push(`path=${path4}`);
38773
+ }
38774
+ if (utils_default.isString(domain)) {
38775
+ cookie.push(`domain=${domain}`);
38776
+ }
38777
+ if (secure === true) {
38778
+ cookie.push("secure");
38779
+ }
38780
+ if (utils_default.isString(sameSite)) {
38781
+ cookie.push(`SameSite=${sameSite}`);
38782
+ }
38640
38783
  document.cookie = cookie.join("; ");
38641
38784
  },
38642
38785
  read(name) {
38643
- const match2 = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
38644
- return match2 ? decodeURIComponent(match2[3]) : null;
38786
+ if (typeof document === "undefined") return null;
38787
+ const match2 = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
38788
+ return match2 ? decodeURIComponent(match2[1]) : null;
38645
38789
  },
38646
38790
  remove(name) {
38647
- this.write(name, "", Date.now() - 864e5);
38791
+ this.write(name, "", Date.now() - 864e5, "/");
38648
38792
  }
38649
38793
  }
38650
38794
  ) : (
@@ -39221,7 +39365,7 @@ var factory = (env2) => {
39221
39365
  };
39222
39366
  var seedCache = /* @__PURE__ */ new Map();
39223
39367
  var getFetch = (config) => {
39224
- let env2 = config ? config.env : {};
39368
+ let env2 = config && config.env || {};
39225
39369
  const { fetch: fetch2, Request, Response } = env2;
39226
39370
  const seeds = [
39227
39371
  Request,
@@ -39258,40 +39402,49 @@ utils_default.forEach(knownAdapters, (fn, value) => {
39258
39402
  });
39259
39403
  var renderReason = (reason) => `- ${reason}`;
39260
39404
  var isResolvedHandle = (adapter2) => utils_default.isFunction(adapter2) || adapter2 === null || adapter2 === false;
39261
- var adapters_default = {
39262
- getAdapter: (adapters, config) => {
39263
- adapters = utils_default.isArray(adapters) ? adapters : [adapters];
39264
- const { length } = adapters;
39265
- let nameOrAdapter;
39266
- let adapter2;
39267
- const rejectedReasons = {};
39268
- for (let i = 0; i < length; i++) {
39269
- nameOrAdapter = adapters[i];
39270
- let id;
39271
- adapter2 = nameOrAdapter;
39272
- if (!isResolvedHandle(nameOrAdapter)) {
39273
- adapter2 = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
39274
- if (adapter2 === void 0) {
39275
- throw new AxiosError_default(`Unknown adapter '${id}'`);
39276
- }
39277
- }
39278
- if (adapter2 && (utils_default.isFunction(adapter2) || (adapter2 = adapter2.get(config)))) {
39279
- break;
39280
- }
39281
- rejectedReasons[id || "#" + i] = adapter2;
39282
- }
39283
- if (!adapter2) {
39284
- const reasons = Object.entries(rejectedReasons).map(
39285
- ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
39286
- );
39287
- let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
39288
- throw new AxiosError_default(
39289
- `There is no suitable adapter to dispatch the request ` + s,
39290
- "ERR_NOT_SUPPORT"
39291
- );
39405
+ function getAdapter(adapters, config) {
39406
+ adapters = utils_default.isArray(adapters) ? adapters : [adapters];
39407
+ const { length } = adapters;
39408
+ let nameOrAdapter;
39409
+ let adapter2;
39410
+ const rejectedReasons = {};
39411
+ for (let i = 0; i < length; i++) {
39412
+ nameOrAdapter = adapters[i];
39413
+ let id;
39414
+ adapter2 = nameOrAdapter;
39415
+ if (!isResolvedHandle(nameOrAdapter)) {
39416
+ adapter2 = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
39417
+ if (adapter2 === void 0) {
39418
+ throw new AxiosError_default(`Unknown adapter '${id}'`);
39419
+ }
39420
+ }
39421
+ if (adapter2 && (utils_default.isFunction(adapter2) || (adapter2 = adapter2.get(config)))) {
39422
+ break;
39292
39423
  }
39293
- return adapter2;
39294
- },
39424
+ rejectedReasons[id || "#" + i] = adapter2;
39425
+ }
39426
+ if (!adapter2) {
39427
+ const reasons = Object.entries(rejectedReasons).map(
39428
+ ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
39429
+ );
39430
+ let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
39431
+ throw new AxiosError_default(
39432
+ `There is no suitable adapter to dispatch the request ` + s,
39433
+ "ERR_NOT_SUPPORT"
39434
+ );
39435
+ }
39436
+ return adapter2;
39437
+ }
39438
+ var adapters_default = {
39439
+ /**
39440
+ * Resolve an adapter from a list of adapter names or functions.
39441
+ * @type {Function}
39442
+ */
39443
+ getAdapter,
39444
+ /**
39445
+ * Exposes all known adapters
39446
+ * @type {Object<string, Function|Object>}
39447
+ */
39295
39448
  adapters: knownAdapters
39296
39449
  };
39297
39450
 
@@ -39760,7 +39913,13 @@ var HttpStatusCode = {
39760
39913
  InsufficientStorage: 507,
39761
39914
  LoopDetected: 508,
39762
39915
  NotExtended: 510,
39763
- NetworkAuthenticationRequired: 511
39916
+ NetworkAuthenticationRequired: 511,
39917
+ WebServerIsDown: 521,
39918
+ ConnectionTimedOut: 522,
39919
+ OriginIsUnreachable: 523,
39920
+ TimeoutOccurred: 524,
39921
+ SslHandshakeFailed: 525,
39922
+ InvalidSslCertificate: 526
39764
39923
  };
39765
39924
  Object.entries(HttpStatusCode).forEach(([key, value]) => {
39766
39925
  HttpStatusCode[value] = key;
@@ -39816,7 +39975,7 @@ var {
39816
39975
  AxiosHeaders: AxiosHeaders2,
39817
39976
  HttpStatusCode: HttpStatusCode2,
39818
39977
  formToJSON,
39819
- getAdapter,
39978
+ getAdapter: getAdapter2,
39820
39979
  mergeConfig: mergeConfig2
39821
39980
  } = axios_default;
39822
39981
 
@@ -41618,6 +41777,7 @@ var BaseWorkflowInstance = class _BaseWorkflowInstance {
41618
41777
  },
41619
41778
  abort: () => {
41620
41779
  workflowControlContext.aborted = true;
41780
+ workflowControlContext.acked = true;
41621
41781
  },
41622
41782
  fail: (reason) => {
41623
41783
  workflowControlContext.failed = true;