@intuned/runtime 1.3.13 → 1.3.15
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/commands/run_authsession.command.d.ts +6 -6
- package/dist/commands/intuned-cli/commands/types.d.ts +2 -2
- package/dist/commands/intuned-cli/controller/authSession.d.ts +6 -6
- package/dist/commands/intuned-cli/helpers/auth.d.ts +1 -1
- package/dist/common/constants.d.ts +0 -2
- package/dist/common/constants.js +2 -4
- package/dist/common/{extensionsHelpers.d.ts → extension/extensionsHelpers.d.ts} +1 -1
- package/dist/common/{extensionsHelpers.js → extension/extensionsHelpers.js} +47 -6
- package/dist/common/extension/intunedExtensionServer.d.ts +27 -0
- package/dist/common/extension/intunedExtensionServer.js +181 -0
- package/dist/common/extension/types.d.ts +212 -0
- package/dist/common/extension/types.js +51 -0
- package/dist/common/launchBrowser.js +3 -1
- package/dist/common/runApi/index.js +0 -6
- package/dist/common/runApi/types.d.ts +20 -20
- package/dist/common/settingsSchema.d.ts +15 -1
- package/dist/common/settingsSchema.js +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +50 -1
- package/dist/runtime/captcha.d.ts +15 -0
- package/dist/runtime/captcha.js +177 -0
- package/dist/runtime/captcha.test.js +821 -0
- package/dist/runtime/getAiGatewayConfig.d.ts +10 -0
- package/dist/runtime/getAiGatewayConfig.js +16 -0
- package/dist/runtime/index.d.ts +2 -0
- package/dist/runtime/index.js +50 -0
- package/package.json +2 -1
|
@@ -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
|
@@ -5,4 +5,6 @@ export { persistentStore } from "./persistentStore";
|
|
|
5
5
|
export { getAuthSessionParameters } from "./getAuthSessionParameters";
|
|
6
6
|
export { runInfo } from "./runInfo";
|
|
7
7
|
export { RunError } from "./RunError";
|
|
8
|
+
export { waitForCaptchaSolve, withWaitForCaptchaSolve, onCaptchaEvent, onceCaptchaEvent, removeCaptchaEventListener, pauseCaptchaSolver, resumeCaptchaSolver, } from "./captcha";
|
|
9
|
+
export { getAiGatewayConfig } from "./getAiGatewayConfig";
|
|
8
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 () {
|
|
@@ -39,18 +45,60 @@ Object.defineProperty(exports, "getDownloadDirectoryPath", {
|
|
|
39
45
|
return _downloadDirectory.getDownloadDirectoryPath;
|
|
40
46
|
}
|
|
41
47
|
});
|
|
48
|
+
Object.defineProperty(exports, "onCaptchaEvent", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _captcha.onCaptchaEvent;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "onceCaptchaEvent", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _captcha.onceCaptchaEvent;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "pauseCaptchaSolver", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _captcha.pauseCaptchaSolver;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
42
66
|
Object.defineProperty(exports, "persistentStore", {
|
|
43
67
|
enumerable: true,
|
|
44
68
|
get: function () {
|
|
45
69
|
return _persistentStore.persistentStore;
|
|
46
70
|
}
|
|
47
71
|
});
|
|
72
|
+
Object.defineProperty(exports, "removeCaptchaEventListener", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _captcha.removeCaptchaEventListener;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "resumeCaptchaSolver", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _captcha.resumeCaptchaSolver;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
48
84
|
Object.defineProperty(exports, "runInfo", {
|
|
49
85
|
enumerable: true,
|
|
50
86
|
get: function () {
|
|
51
87
|
return _runInfo.runInfo;
|
|
52
88
|
}
|
|
53
89
|
});
|
|
90
|
+
Object.defineProperty(exports, "waitForCaptchaSolve", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () {
|
|
93
|
+
return _captcha.waitForCaptchaSolve;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "withWaitForCaptchaSolve", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return _captcha.withWaitForCaptchaSolve;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
54
102
|
var _extendPayload = require("./extendPayload");
|
|
55
103
|
var _extendTimeout = require("./extendTimeout");
|
|
56
104
|
var _attemptStore = require("./attemptStore");
|
|
@@ -58,4 +106,6 @@ var _persistentStore = require("./persistentStore");
|
|
|
58
106
|
var _getAuthSessionParameters = require("./getAuthSessionParameters");
|
|
59
107
|
var _runInfo = require("./runInfo");
|
|
60
108
|
var _RunError = require("./RunError");
|
|
109
|
+
var _captcha = require("./captcha");
|
|
110
|
+
var _getAiGatewayConfig = require("./getAiGatewayConfig");
|
|
61
111
|
var _downloadDirectory = require("./downloadDirectory");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intuned/runtime",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.15",
|
|
4
4
|
"description": "Intuned runtime",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"commander": "14.0.0",
|
|
71
71
|
"cross-fetch": "^4.0.0",
|
|
72
72
|
"dotenv": "^16.3.1",
|
|
73
|
+
"fastify": "4.29.0",
|
|
73
74
|
"fs-extra": "^11.3.0",
|
|
74
75
|
"image-size": "^1.1.1",
|
|
75
76
|
"jsonc-parser": "^3.3.1",
|