@intuned/runtime-dev 1.3.14-ts-runtime-helpers-1 → 1.3.15-ts-helpers

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.
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Retrieves the base URL and API key for the Intuned AI Gateway.
3
+
4
+ * Returns:
5
+ * { baseUrl: string, apiKey: string }: An object containing the base URL and API key
6
+ */
7
+ export declare function getAiGatewayConfig(): {
8
+ baseUrl: string;
9
+ apiKey: string;
10
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getAiGatewayConfig = getAiGatewayConfig;
7
+ var _constants = require("../common/constants");
8
+ var _jwtTokenManager = require("../common/jwtTokenManager");
9
+ function getAiGatewayConfig() {
10
+ const baseUrl = `${_jwtTokenManager.backendFunctionsTokenManager.backendFunctionsBaseUrl}/intuned-ai-gateway`;
11
+ const apiKey = _jwtTokenManager.backendFunctionsTokenManager.token ?? process.env[_constants.API_KEY_ENV_VAR_KEY] ?? "";
12
+ return {
13
+ baseUrl,
14
+ apiKey
15
+ };
16
+ }
@@ -6,4 +6,5 @@ export { getAuthSessionParameters } from "./getAuthSessionParameters";
6
6
  export { runInfo } from "./runInfo";
7
7
  export { RunError } from "./RunError";
8
8
  export { waitForCaptchaSolve, withWaitForCaptchaSolve, onCaptchaEvent, onceCaptchaEvent, removeCaptchaEventListener, pauseCaptchaSolver, resumeCaptchaSolver, } from "./captcha";
9
+ export { getAiGatewayConfig } from "./getAiGatewayConfig";
9
10
  export { getDownloadDirectoryPath } from "./downloadDirectory";
@@ -27,6 +27,12 @@ Object.defineProperty(exports, "extendTimeout", {
27
27
  return _extendTimeout.extendTimeout;
28
28
  }
29
29
  });
30
+ Object.defineProperty(exports, "getAiGatewayConfig", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _getAiGatewayConfig.getAiGatewayConfig;
34
+ }
35
+ });
30
36
  Object.defineProperty(exports, "getAuthSessionParameters", {
31
37
  enumerable: true,
32
38
  get: function () {
@@ -101,4 +107,5 @@ var _getAuthSessionParameters = require("./getAuthSessionParameters");
101
107
  var _runInfo = require("./runInfo");
102
108
  var _RunError = require("./RunError");
103
109
  var _captcha = require("./captcha");
110
+ var _getAiGatewayConfig = require("./getAiGatewayConfig");
104
111
  var _downloadDirectory = require("./downloadDirectory");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.3.14-ts-runtime-helpers-1",
3
+ "version": "1.3.15-ts-helpers",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
@@ -80,6 +80,7 @@
80
80
  "minimatch": "10.0.1",
81
81
  "nanoid": "3",
82
82
  "neverthrow": "6.1.0",
83
+ "playwright-extra": "4.3.6",
83
84
  "portfinder": "^1.0.37",
84
85
  "prettier": "2.8.0",
85
86
  "promptly": "3.2.0",
@@ -136,7 +137,6 @@
136
137
  "vitest": "^1.1.3"
137
138
  },
138
139
  "peerDependencies": {
139
- "playwright": "*",
140
- "playwright-extra": "*"
140
+ "playwright": "*"
141
141
  }
142
142
  }