@intuned/runtime-dev 1.0.6-test-ping.0 → 1.1.2-auth-helper.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.
Files changed (53) hide show
  1. package/LICENSE +43 -0
  2. package/bin/check-auth-session +3 -0
  3. package/bin/cli-build +3 -0
  4. package/bin/create-auth-session +3 -0
  5. package/bin/deploy +3 -0
  6. package/bin/init +3 -0
  7. package/bin/run-api +3 -0
  8. package/dist/commands/api/run.js +8 -2
  9. package/dist/commands/auth-sessions/run-check.js +18 -4
  10. package/dist/commands/auth-sessions/run-create.js +2 -1
  11. package/dist/commands/cli-auth-sessions/check.d.ts +2 -0
  12. package/dist/commands/cli-auth-sessions/check.js +40 -0
  13. package/dist/commands/cli-auth-sessions/create.d.ts +2 -0
  14. package/dist/commands/cli-auth-sessions/create.js +53 -0
  15. package/dist/commands/cli-auth-sessions/utils.d.ts +28 -0
  16. package/dist/commands/cli-auth-sessions/utils.js +285 -0
  17. package/dist/commands/cli-build/cli-build.d.ts +2 -0
  18. package/dist/commands/cli-build/cli-build.js +20 -0
  19. package/dist/commands/common/projectExclusions.d.ts +2 -0
  20. package/dist/commands/common/projectExclusions.js +8 -0
  21. package/dist/commands/deploy/deploy.d.ts +2 -0
  22. package/dist/commands/deploy/deploy.js +47 -0
  23. package/dist/commands/deploy/utils.d.ts +16 -0
  24. package/dist/commands/deploy/utils.js +408 -0
  25. package/dist/commands/init/init.d.ts +2 -0
  26. package/dist/commands/init/init.js +22 -0
  27. package/dist/commands/init/utils.d.ts +11 -0
  28. package/dist/commands/init/utils.js +181 -0
  29. package/dist/commands/interface/run.js +2 -0
  30. package/dist/commands/run-api-cli/run-api.d.ts +2 -0
  31. package/dist/commands/run-api-cli/run-api.js +57 -0
  32. package/dist/commands/run-api-cli/utils.d.ts +9 -0
  33. package/dist/commands/run-api-cli/utils.js +144 -0
  34. package/dist/common/asyncLocalStorage/index.d.ts +2 -3
  35. package/dist/common/asyncLocalStorage/index.js +2 -2
  36. package/dist/common/backendFunctions/getAuthSessionParameters.d.ts +1 -0
  37. package/dist/common/backendFunctions/getAuthSessionParameters.js +38 -0
  38. package/dist/common/cli/cliReadme.d.ts +1 -0
  39. package/dist/common/cli/cliReadme.js +92 -0
  40. package/dist/common/cli/constants.d.ts +33 -0
  41. package/dist/common/cli/constants.js +39 -0
  42. package/dist/common/cli/types.d.ts +74 -0
  43. package/dist/common/cli/types.js +13 -0
  44. package/dist/common/cli/utils.d.ts +6 -0
  45. package/dist/common/cli/utils.js +35 -0
  46. package/dist/common/constants.d.ts +1 -0
  47. package/dist/common/constants.js +3 -2
  48. package/dist/common/contextStorageStateHelpers.d.ts +1 -1
  49. package/dist/runtime/export.d.ts +1 -0
  50. package/dist/runtime/extendTimeout.js +0 -7
  51. package/dist/runtime/getAuthSessionParameters.d.ts +1 -0
  52. package/dist/runtime/getAuthSessionParameters.js +20 -0
  53. package/package.json +41 -41
@@ -0,0 +1 @@
1
+ export declare function getAuthSessionParameters(): Promise<any>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getAuthSessionParameters = getAuthSessionParameters;
7
+ var _asyncLocalStorage = require("../common/asyncLocalStorage");
8
+ async function getAuthSessionParameters() {
9
+ const context = (0, _asyncLocalStorage.getExecutionContext)();
10
+ if (!context) {
11
+ throw new Error("getAuthSessionParameters failed due to an internal error.");
12
+ }
13
+ const {
14
+ getAuthSessionParameters
15
+ } = context;
16
+ if (!getAuthSessionParameters) {
17
+ throw new Error("getAuthSessionParameters is not defined.");
18
+ }
19
+ return await getAuthSessionParameters();
20
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.0.6-test-ping.0",
3
+ "version": "1.1.2-auth-helper.0",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
@@ -13,11 +13,12 @@
13
13
  "./dist/common/asyncLocalStorage": "./dist/common/asyncLocalStorage/index.js",
14
14
  "./dist/common/cleanEnvironmentVariables": "./dist/common/cleanEnvironmentVariables.js",
15
15
  "./dist/common/constants": "./dist/common/constants.js",
16
- "./dist/commands/interface/run": "./dist/commands/interface/run.js"
16
+ "./dist/commands/interface/run": "./dist/commands/interface/run.js",
17
+ "./dist/commands/intuned-run/intuned-run": "./dist/commands/intuned-run/intuned-run.js"
17
18
  },
18
19
  "types": "./dist/index.d.ts",
19
20
  "author": "Intuned Team",
20
- "license": "MIT",
21
+ "license": "Elastic-2.0",
21
22
  "scripts": {
22
23
  "intuned-api-run": "vite-node ./src/commands/api/run.ts",
23
24
  "intuned-browser-save-state": "vite-node ./src/commands/browser/save-state.ts",
@@ -48,54 +49,53 @@
48
49
  "intuned-build": "./bin/intuned-build",
49
50
  "intuned-browser-start": "./bin/intuned-browser-start",
50
51
  "intuned-browser-save-state": "./bin/intuned-browser-save-state",
51
- "intuned-ts-check": "./bin/intuned-ts-check"
52
+ "intuned-ts-check": "./bin/intuned-ts-check",
53
+ "init": "./bin/init",
54
+ "run-api": "./bin/run-api",
55
+ "deploy": "./bin/deploy",
56
+ "cli-build": "./bin/cli-build",
57
+ "create-auth-session": "./bin/create-auth-session",
58
+ "check-auth-session": "./bin/check-auth-session"
52
59
  },
53
60
  "dependencies": {
54
- "@babel/plugin-syntax-dynamic-import": "^7.8.3",
55
- "@rollup/plugin-commonjs": "^25.0.2",
56
- "@rollup/plugin-dynamic-import-vars": "^2.0.4",
57
- "@rollup/plugin-json": "^6.0.0",
58
- "@rollup/plugin-node-resolve": "^15.1.0",
59
- "@rollup/plugin-typescript": "^11.1.2",
60
- "@tinyhttp/app": "^2.1.0",
61
- "@types/async-retry": "^1.4.8",
62
- "@types/fs-extra": "^11.0.1",
63
- "@types/lodash": "^4.14.200",
64
- "@types/node": "^20.4.1",
65
- "applicationinsights": "^2.9.2",
66
- "async-retry": "^1.3.3",
67
- "babel-plugin-dynamic-import-node": "^2.3.3",
61
+ "@babel/plugin-syntax-dynamic-import": "7.8.3",
62
+ "@rollup/plugin-commonjs": "25.0.2",
63
+ "@rollup/plugin-dynamic-import-vars": "2.0.4",
64
+ "@rollup/plugin-json": "6.0.0",
65
+ "@rollup/plugin-node-resolve": "15.1.0",
66
+ "@rollup/plugin-typescript": "11.1.2",
67
+ "@types/fs-extra": "11.0.1",
68
+ "@types/lodash": "4.14.200",
69
+ "@types/node": "20.4.1",
70
+ "applicationinsights": "2.9.2",
71
+ "babel-plugin-dynamic-import-node": "2.3.3",
72
+ "boxen": "8.0.1",
68
73
  "chalk": "^4.1.2",
69
74
  "commander": "^11.0.0",
70
75
  "cross-fetch": "^4.0.0",
71
76
  "dotenv": "^16.3.1",
72
- "express": "4.20.0",
73
- "fastify": "^4.19.2",
74
- "file-type": "16.5.4",
75
77
  "fs-extra": "^11.3.0",
76
- "https-proxy-agent": "^7.0.5",
77
78
  "image-size": "^1.1.1",
78
- "jsonwebtoken": "^9.0.2",
79
- "lodash": "^4.17.21",
80
- "milliparsec": "^2.3.0",
81
- "ms": "^2.1.3",
79
+ "inquirer": "12.6.0",
80
+ "jsonwebtoken": "9.0.2",
81
+ "lodash": "4.17.21",
82
+ "milliparsec": "2.3.0",
83
+ "minimatch": "10.0.1",
82
84
  "nanoid": "3",
83
- "neverthrow": "^6.1.0",
85
+ "neverthrow": "6.1.0",
84
86
  "playwright": "1.44.1",
85
- "playwright-extra": "^4.3.6",
86
- "prettier": "^2.8.0",
87
- "promptly": "^3.2.0",
88
- "read-chunk": "^3.2.0",
89
- "rollup": "^3.26.2",
90
- "source-map": "^0.7.4",
91
- "stack-utils": "^2.0.6",
92
- "ts-morph": "^21.0.1",
93
- "ts-node": "^10.9.1",
94
- "tslib": "^2.6.0",
95
- "typescript": "^5.1.6",
96
- "wait-on": "^7.2.0",
97
- "zod": "^3.21.4",
98
- "zod-validation-error": "^3.0.3"
87
+ "playwright-extra": "4.3.6",
88
+ "prettier": "2.8.0",
89
+ "promptly": "3.2.0",
90
+ "rollup": "3.26.2",
91
+ "source-map": "0.7.4",
92
+ "ts-morph": "21.0.1",
93
+ "ts-node": "10.9.1",
94
+ "tslib": "2.6.0",
95
+ "typescript": "5.1.6",
96
+ "uuid": "11.1.0",
97
+ "wait-on": "7.2.0",
98
+ "zod": "^3.21.4"
99
99
  },
100
100
  "devDependencies": {
101
101
  "@babel/cli": "^7.23.4",