@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.
- package/dist/commands/intuned-cli/helpers/intunedJson.d.ts +1 -1
- package/dist/common/constants.d.ts +0 -2
- package/dist/common/constants.js +2 -4
- package/dist/common/extension/extensionsHelpers.js +2 -17
- package/dist/common/extension/intunedExtensionServer.d.ts +3 -1
- package/dist/common/extension/intunedExtensionServer.js +36 -19
- package/dist/common/extension/types.d.ts +206 -15
- package/dist/common/extension/types.js +47 -1
- package/dist/common/intunedJson.d.ts +6 -6
- package/dist/common/runApi/index.js +0 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -0
- package/dist/runtime/captcha.d.ts +4 -7
- package/dist/runtime/captcha.js +14 -27
- package/dist/runtime/captcha.test.js +662 -55
- package/dist/runtime/getAiGatewayConfig.d.ts +10 -0
- package/dist/runtime/getAiGatewayConfig.js +16 -0
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.js +7 -0
- package/package.json +3 -3
|
@@ -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
|
+
}
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -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";
|
package/dist/runtime/index.js
CHANGED
|
@@ -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.
|
|
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
|
}
|