@intuned/runtime 1.3.10 → 1.3.11

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 (212) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/WebTemplate.zip +0 -0
  3. package/dist/commands/intuned-cli/commands/attempt_api.command.js +1 -1
  4. package/dist/commands/intuned-cli/commands/attempt_authsession_create.command.js +1 -1
  5. package/dist/commands/intuned-cli/commands/run_api.command.js +1 -1
  6. package/dist/commands/intuned-cli/controller/deploy.d.ts +1 -0
  7. package/dist/commands/intuned-cli/controller/deploy.js +143 -6
  8. package/dist/commands/intuned-cli/controller/save.d.ts +4 -1
  9. package/dist/commands/intuned-cli/controller/save.js +8 -2
  10. package/dist/commands/intuned-cli/helpers/backend.js +1 -1
  11. package/dist/commands/intuned-cli/helpers/errors.d.ts +3 -0
  12. package/dist/commands/intuned-cli/helpers/errors.js +8 -1
  13. package/dist/commands/intuned-cli/helpers/intunedJson.d.ts +113 -11
  14. package/dist/commands/intuned-cli/helpers/intunedJson.js +19 -3
  15. package/dist/commands/intuned-cli/helpers/wrapper.js +5 -0
  16. package/package.json +13 -12
  17. package/package/dist/commands/api/run.d.ts +0 -6
  18. package/package/dist/commands/api/run.js +0 -123
  19. package/package/dist/commands/auth-sessions/load.d.ts +0 -2
  20. package/package/dist/commands/auth-sessions/load.js +0 -35
  21. package/package/dist/commands/auth-sessions/run-check.d.ts +0 -2
  22. package/package/dist/commands/auth-sessions/run-check.js +0 -74
  23. package/package/dist/commands/auth-sessions/run-create.d.ts +0 -2
  24. package/package/dist/commands/auth-sessions/run-create.js +0 -78
  25. package/package/dist/commands/browser/save-state.d.ts +0 -2
  26. package/package/dist/commands/browser/save-state.js +0 -17
  27. package/package/dist/commands/browser/start-browser.d.ts +0 -2
  28. package/package/dist/commands/browser/start-browser.js +0 -14
  29. package/package/dist/commands/build.d.ts +0 -1
  30. package/package/dist/commands/build.js +0 -84
  31. package/package/dist/commands/common/browserUtils.d.ts +0 -14
  32. package/package/dist/commands/common/browserUtils.js +0 -58
  33. package/package/dist/commands/common/getFirstLineNumber.d.ts +0 -9
  34. package/package/dist/commands/common/getFirstLineNumber.js +0 -101
  35. package/package/dist/commands/common/getFirstLineNumber.test.js +0 -228
  36. package/package/dist/commands/common/projectExclusions.d.ts +0 -2
  37. package/package/dist/commands/common/projectExclusions.js +0 -8
  38. package/package/dist/commands/common/sendMessageToClient.d.ts +0 -1
  39. package/package/dist/commands/common/sendMessageToClient.js +0 -10
  40. package/package/dist/commands/common/tsNodeImport.d.ts +0 -2
  41. package/package/dist/commands/common/tsNodeImport.js +0 -34
  42. package/package/dist/commands/common/utils/fileUtils.d.ts +0 -6
  43. package/package/dist/commands/common/utils/fileUtils.js +0 -33
  44. package/package/dist/commands/common/utils/settings.d.ts +0 -2
  45. package/package/dist/commands/common/utils/settings.js +0 -31
  46. package/package/dist/commands/common/utils/template.d.ts +0 -2
  47. package/package/dist/commands/common/utils/template.js +0 -31
  48. package/package/dist/commands/common/utils/unixSocket.d.ts +0 -9
  49. package/package/dist/commands/common/utils/unixSocket.js +0 -44
  50. package/package/dist/commands/interface/run.d.ts +0 -1
  51. package/package/dist/commands/interface/run.js +0 -216
  52. package/package/dist/commands/intuned-cli/commands/attempt.command.d.ts +0 -1
  53. package/package/dist/commands/intuned-cli/commands/attempt.command.js +0 -8
  54. package/package/dist/commands/intuned-cli/commands/attempt_api.command.d.ts +0 -1
  55. package/package/dist/commands/intuned-cli/commands/attempt_api.command.js +0 -30
  56. package/package/dist/commands/intuned-cli/commands/attempt_authsession.command.d.ts +0 -1
  57. package/package/dist/commands/intuned-cli/commands/attempt_authsession.command.js +0 -8
  58. package/package/dist/commands/intuned-cli/commands/attempt_authsession_check.command.d.ts +0 -1
  59. package/package/dist/commands/intuned-cli/commands/attempt_authsession_check.command.js +0 -19
  60. package/package/dist/commands/intuned-cli/commands/attempt_authsession_create.command.d.ts +0 -1
  61. package/package/dist/commands/intuned-cli/commands/attempt_authsession_create.command.js +0 -24
  62. package/package/dist/commands/intuned-cli/commands/authsession.command.d.ts +0 -1
  63. package/package/dist/commands/intuned-cli/commands/authsession.command.js +0 -8
  64. package/package/dist/commands/intuned-cli/commands/authsession_record.command.d.ts +0 -1
  65. package/package/dist/commands/intuned-cli/commands/authsession_record.command.js +0 -31
  66. package/package/dist/commands/intuned-cli/commands/build.command.d.ts +0 -1
  67. package/package/dist/commands/intuned-cli/commands/build.command.js +0 -12
  68. package/package/dist/commands/intuned-cli/commands/command.d.ts +0 -2
  69. package/package/dist/commands/intuned-cli/commands/command.js +0 -9
  70. package/package/dist/commands/intuned-cli/commands/deploy.command.d.ts +0 -1
  71. package/package/dist/commands/intuned-cli/commands/deploy.command.js +0 -38
  72. package/package/dist/commands/intuned-cli/commands/index.d.ts +0 -18
  73. package/package/dist/commands/intuned-cli/commands/index.js +0 -203
  74. package/package/dist/commands/intuned-cli/commands/init.command.d.ts +0 -1
  75. package/package/dist/commands/intuned-cli/commands/init.command.js +0 -13
  76. package/package/dist/commands/intuned-cli/commands/run.command.d.ts +0 -1
  77. package/package/dist/commands/intuned-cli/commands/run.command.js +0 -8
  78. package/package/dist/commands/intuned-cli/commands/run_api.command.d.ts +0 -1
  79. package/package/dist/commands/intuned-cli/commands/run_api.command.js +0 -46
  80. package/package/dist/commands/intuned-cli/commands/run_authsession.command.d.ts +0 -28
  81. package/package/dist/commands/intuned-cli/commands/run_authsession.command.js +0 -17
  82. package/package/dist/commands/intuned-cli/commands/run_authsession_create.command.d.ts +0 -1
  83. package/package/dist/commands/intuned-cli/commands/run_authsession_create.command.js +0 -35
  84. package/package/dist/commands/intuned-cli/commands/run_authsession_update.command.d.ts +0 -1
  85. package/package/dist/commands/intuned-cli/commands/run_authsession_update.command.js +0 -35
  86. package/package/dist/commands/intuned-cli/commands/run_authsession_validate.command.d.ts +0 -1
  87. package/package/dist/commands/intuned-cli/commands/run_authsession_validate.command.js +0 -33
  88. package/package/dist/commands/intuned-cli/commands/save.command.d.ts +0 -13
  89. package/package/dist/commands/intuned-cli/commands/save.command.js +0 -42
  90. package/package/dist/commands/intuned-cli/commands/types.d.ts +0 -31
  91. package/package/dist/commands/intuned-cli/commands/types.js +0 -29
  92. package/package/dist/commands/intuned-cli/constants/index.d.ts +0 -17
  93. package/package/dist/commands/intuned-cli/constants/index.js +0 -25
  94. package/package/dist/commands/intuned-cli/controller/__test__/api.test.js +0 -397
  95. package/package/dist/commands/intuned-cli/controller/__test__/authSession.test.js +0 -1059
  96. package/package/dist/commands/intuned-cli/controller/api.d.ts +0 -42
  97. package/package/dist/commands/intuned-cli/controller/api.js +0 -189
  98. package/package/dist/commands/intuned-cli/controller/authSession.d.ts +0 -209
  99. package/package/dist/commands/intuned-cli/controller/authSession.js +0 -420
  100. package/package/dist/commands/intuned-cli/controller/build.d.ts +0 -1
  101. package/package/dist/commands/intuned-cli/controller/build.js +0 -36
  102. package/package/dist/commands/intuned-cli/controller/deploy.d.ts +0 -4
  103. package/package/dist/commands/intuned-cli/controller/deploy.js +0 -139
  104. package/package/dist/commands/intuned-cli/controller/index.d.ts +0 -1
  105. package/package/dist/commands/intuned-cli/controller/index.js +0 -46
  106. package/package/dist/commands/intuned-cli/controller/save.d.ts +0 -14
  107. package/package/dist/commands/intuned-cli/controller/save.js +0 -345
  108. package/package/dist/commands/intuned-cli/helpers/__test__/browser.test.js +0 -103
  109. package/package/dist/commands/intuned-cli/helpers/__test__/tracing.test.js +0 -40
  110. package/package/dist/commands/intuned-cli/helpers/api.d.ts +0 -3
  111. package/package/dist/commands/intuned-cli/helpers/api.js +0 -19
  112. package/package/dist/commands/intuned-cli/helpers/auth.d.ts +0 -46
  113. package/package/dist/commands/intuned-cli/helpers/auth.js +0 -144
  114. package/package/dist/commands/intuned-cli/helpers/backend.d.ts +0 -8
  115. package/package/dist/commands/intuned-cli/helpers/backend.js +0 -27
  116. package/package/dist/commands/intuned-cli/helpers/browser.d.ts +0 -14
  117. package/package/dist/commands/intuned-cli/helpers/browser.js +0 -57
  118. package/package/dist/commands/intuned-cli/helpers/context.d.ts +0 -3
  119. package/package/dist/commands/intuned-cli/helpers/context.js +0 -33
  120. package/package/dist/commands/intuned-cli/helpers/errors.d.ts +0 -13
  121. package/package/dist/commands/intuned-cli/helpers/errors.js +0 -37
  122. package/package/dist/commands/intuned-cli/helpers/index.d.ts +0 -12
  123. package/package/dist/commands/intuned-cli/helpers/index.js +0 -137
  124. package/package/dist/commands/intuned-cli/helpers/intunedJson.d.ts +0 -69
  125. package/package/dist/commands/intuned-cli/helpers/intunedJson.js +0 -71
  126. package/package/dist/commands/intuned-cli/helpers/proxy.d.ts +0 -5
  127. package/package/dist/commands/intuned-cli/helpers/proxy.js +0 -23
  128. package/package/dist/commands/intuned-cli/helpers/terminal.d.ts +0 -5
  129. package/package/dist/commands/intuned-cli/helpers/terminal.js +0 -13
  130. package/package/dist/commands/intuned-cli/helpers/timeout.d.ts +0 -1
  131. package/package/dist/commands/intuned-cli/helpers/timeout.js +0 -23
  132. package/package/dist/commands/intuned-cli/helpers/traces.d.ts +0 -2
  133. package/package/dist/commands/intuned-cli/helpers/traces.js +0 -32
  134. package/package/dist/commands/intuned-cli/helpers/validation.d.ts +0 -2
  135. package/package/dist/commands/intuned-cli/helpers/validation.js +0 -14
  136. package/package/dist/commands/intuned-cli/helpers/wrapper.d.ts +0 -2
  137. package/package/dist/commands/intuned-cli/helpers/wrapper.js +0 -60
  138. package/package/dist/commands/intuned-cli/index.d.ts +0 -1
  139. package/package/dist/commands/intuned-cli/index.js +0 -16
  140. package/package/dist/commands/intuned-cli/main.d.ts +0 -1
  141. package/package/dist/commands/intuned-cli/main.js +0 -22
  142. package/package/dist/commands/intuned-cli/types.d.ts +0 -41
  143. package/package/dist/commands/intuned-cli/types.js +0 -12
  144. package/package/dist/commands/ts-check.d.ts +0 -2
  145. package/package/dist/commands/ts-check.js +0 -56
  146. package/package/dist/common/Logger/Logger/index.d.ts +0 -12
  147. package/package/dist/common/Logger/Logger/index.js +0 -60
  148. package/package/dist/common/Logger/Logger/types.d.ts +0 -8
  149. package/package/dist/common/Logger/Logger/types.js +0 -5
  150. package/package/dist/common/Logger/index.d.ts +0 -12
  151. package/package/dist/common/Logger/index.js +0 -60
  152. package/package/dist/common/Logger/types.d.ts +0 -8
  153. package/package/dist/common/Logger/types.js +0 -5
  154. package/package/dist/common/assets/browser_scripts.js +0 -2580
  155. package/package/dist/common/asyncLocalStorage/index.d.ts +0 -16
  156. package/package/dist/common/asyncLocalStorage/index.js +0 -17
  157. package/package/dist/common/backendFunctions/getAuthSessionParameters.d.ts +0 -1
  158. package/package/dist/common/backendFunctions/getAuthSessionParameters.js +0 -38
  159. package/package/dist/common/cleanEnvironmentVariables.d.ts +0 -1
  160. package/package/dist/common/cleanEnvironmentVariables.js +0 -16
  161. package/package/dist/common/constants.d.ts +0 -10
  162. package/package/dist/common/constants.js +0 -16
  163. package/package/dist/common/contextStorageStateHelpers.d.ts +0 -21
  164. package/package/dist/common/contextStorageStateHelpers.js +0 -81
  165. package/package/dist/common/extensionsHelpers.d.ts +0 -8
  166. package/package/dist/common/extensionsHelpers.js +0 -80
  167. package/package/dist/common/formatZodError.d.ts +0 -2
  168. package/package/dist/common/formatZodError.js +0 -18
  169. package/package/dist/common/jwtTokenManager.d.ts +0 -17
  170. package/package/dist/common/jwtTokenManager.js +0 -109
  171. package/package/dist/common/launchBrowser.d.ts +0 -25
  172. package/package/dist/common/launchBrowser.js +0 -172
  173. package/package/dist/common/playwrightContext.d.ts +0 -31
  174. package/package/dist/common/playwrightContext.js +0 -144
  175. package/package/dist/common/runApi/errors.d.ts +0 -72
  176. package/package/dist/common/runApi/errors.js +0 -169
  177. package/package/dist/common/runApi/importUsingImportFunction.d.ts +0 -9
  178. package/package/dist/common/runApi/importUsingImportFunction.js +0 -46
  179. package/package/dist/common/runApi/index.d.ts +0 -11
  180. package/package/dist/common/runApi/index.js +0 -199
  181. package/package/dist/common/runApi/types.d.ts +0 -830
  182. package/package/dist/common/runApi/types.js +0 -73
  183. package/package/dist/common/settingsSchema.d.ts +0 -518
  184. package/package/dist/common/settingsSchema.js +0 -57
  185. package/package/dist/common/setupContextHook.d.ts +0 -17
  186. package/package/dist/common/setupContextHook.js +0 -22
  187. package/package/dist/common/telemetry.d.ts +0 -3
  188. package/package/dist/common/telemetry.js +0 -32
  189. package/package/dist/index.d.ts +0 -4
  190. package/package/dist/index.js +0 -69
  191. package/package/dist/runtime/RunError.d.ts +0 -5
  192. package/package/dist/runtime/RunError.js +0 -19
  193. package/package/dist/runtime/attemptStore.d.ts +0 -2
  194. package/package/dist/runtime/attemptStore.js +0 -23
  195. package/package/dist/runtime/downloadDirectory.d.ts +0 -1
  196. package/package/dist/runtime/downloadDirectory.js +0 -19
  197. package/package/dist/runtime/enums.d.js +0 -5
  198. package/package/dist/runtime/enums.d.ts +0 -11
  199. package/package/dist/runtime/enums.js +0 -18
  200. package/package/dist/runtime/executionHelpers.test.js +0 -52
  201. package/package/dist/runtime/export.d.js +0 -5
  202. package/package/dist/runtime/export.d.ts +0 -228
  203. package/package/dist/runtime/extendPayload.d.ts +0 -2
  204. package/package/dist/runtime/extendPayload.js +0 -21
  205. package/package/dist/runtime/extendTimeout.d.ts +0 -1
  206. package/package/dist/runtime/extendTimeout.js +0 -23
  207. package/package/dist/runtime/getAuthSessionParameters.d.ts +0 -1
  208. package/package/dist/runtime/getAuthSessionParameters.js +0 -20
  209. package/package/dist/runtime/index.d.ts +0 -7
  210. package/package/dist/runtime/index.js +0 -54
  211. package/package/dist/runtime/runInfo.d.ts +0 -2
  212. package/package/dist/runtime/runInfo.js +0 -21
package/CHANGELOG.md CHANGED
@@ -1,6 +1,15 @@
1
1
  # UNRELEASED
2
2
 
3
+ -
4
+
5
+ # 1.3.11
6
+
7
+ - Deployment flow enhancements
8
+
9
+ <!----------------------------------------------------------->
10
+
3
11
  # 1.3.0
12
+
4
13
  - Limit Automation response size to 2MB at MAX.
5
14
 
6
15
  # 1.2.0
Binary file
@@ -15,7 +15,7 @@ const optionsSchema = _types.baseCommandOptionsSchema.extend({
15
15
  authSession: _zod.z.string().optional(),
16
16
  outputFile: _zod.z.string().optional()
17
17
  });
18
- const attemptApiCommand = exports.attemptApiCommand = (0, _types.withBaseOptions)(_attempt.attemptCommand.command("api").description("Execute an Intuned API attempt with parameters").argument("<api-name>", "Name of the API to run").argument("<parameters>", "Path to the JSON file containing API parameters OR the parameters as a JSON string").option("-a, --auth-session <id>", "ID of the auth session to use for the API. This is expected to be in ./auth-session-instances/<id>.json").option("-o, --output-file <path>", "output file path")).action((0, _helpers.cliCommandWrapper)(argsSchema, optionsSchema, async ([apiName, parameters], {
18
+ const attemptApiCommand = exports.attemptApiCommand = (0, _types.withBaseOptions)(_attempt.attemptCommand.command("api").description("Execute an Intuned API attempt with parameters").argument("<api-name>", "Name of the API to run").argument("<parameters>", "Path to the JSON file containing API parameters OR the parameters as a JSON string").option("-a, --auth-session <id>", "ID of the auth session to use for the API. This is expected to be in ./auth-sessions-instances/<id>.json").option("-o, --output-file <path>", "output file path")).action((0, _helpers.cliCommandWrapper)(argsSchema, optionsSchema, async ([apiName, parameters], {
19
19
  authSession,
20
20
  ...rest
21
21
  }) => {
@@ -14,7 +14,7 @@ const argsSchema = _zod.z.tuple([_zod.z.string().min(1, "Parameters are required
14
14
  const optionsSchema = _types.baseCommandOptionsSchema.extend({
15
15
  id: _zod.z.string().optional()
16
16
  });
17
- const attemptAuthSessionCreateCommand = exports.attemptAuthSessionCreateCommand = (0, _types.withBaseOptions)(_attempt_authsession.attemptAuthSessionCommand.command("create").description("Create a new auth session").argument("<parameters>", "Parameters for the auth session command").option("--id <id>", "ID of the auth session to use for the command. Defaults to ./auth-session-instances/[current timestamp].json")).action((0, _helpers.cliCommandWrapper)(argsSchema, optionsSchema, async ([parameters], options) => {
17
+ const attemptAuthSessionCreateCommand = exports.attemptAuthSessionCreateCommand = (0, _types.withBaseOptions)(_attempt_authsession.attemptAuthSessionCommand.command("create").description("Create a new auth session").argument("<parameters>", "Parameters for the auth session command").option("--id <id>", "ID of the auth session to use for the command. Defaults to ./auth-sessions-instances/[current timestamp].json")).action((0, _helpers.cliCommandWrapper)(argsSchema, optionsSchema, async ([parameters], options) => {
18
18
  await (0, _helpers.assertAuthEnabled)();
19
19
  const authSessionInput = (await (0, _controller.loadParameters)(parameters)) ?? {};
20
20
  await (0, _authSession.executeAttemptCreateAuthSessionCLI)({
@@ -19,7 +19,7 @@ const optionsSchema = _types.baseCommandOptionsSchema.extend({
19
19
  authSessionCheckAttempts: _types.authSessionCheckAttemptsSchema,
20
20
  authSessionCreateAttempts: _types.authSessionCreateAttemptsSchema
21
21
  });
22
- const runApiCommand = exports.runApiCommand = (0, _types.withBaseOptions)(_run.runCommand.command("api").description("Execute an Intuned API run with parameters").argument("<api-name>", "Name of the API to run").argument("<parameters>", "Path to the JSON file containing API parameters OR the parameters as a JSON string").option("-a, --auth-session <id>", "ID of the auth session to use for the API. This is expected to be in ./auth-session-instances/<id>").option("--retries <number>", "Number of retries for the API call", "1").option("--no-auth-session-auto-recreate", "disable auto recreate for auth session").option("--auth-session-check-attempts <number>", "auth session check attempts", "1").option("--auth-session-create-attempts <number>", "auth session create attempts", "1").option("-o, --output-file <path>", "output file path")).action((0, _helpers.cliCommandWrapper)(argsSchema, optionsSchema, async ([apiName, parameters], {
22
+ const runApiCommand = exports.runApiCommand = (0, _types.withBaseOptions)(_run.runCommand.command("api").description("Execute an Intuned API run with parameters").argument("<api-name>", "Name of the API to run").argument("<parameters>", "Path to the JSON file containing API parameters OR the parameters as a JSON string").option("-a, --auth-session <id>", "ID of the auth session to use for the API. This is expected to be in ./auth-sessions-instances/<id>").option("--retries <number>", "Number of retries for the API call", "1").option("--no-auth-session-auto-recreate", "disable auto recreate for auth session").option("--auth-session-check-attempts <number>", "auth session check attempts", "1").option("--auth-session-create-attempts <number>", "auth session create attempts", "1").option("-o, --output-file <path>", "output file path")).action((0, _helpers.cliCommandWrapper)(argsSchema, optionsSchema, async ([apiName, parameters], {
23
23
  retries,
24
24
  outputFile,
25
25
  authSession,
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import type { AuthCredentials } from "../types";
3
+ export declare const START_RUN_INPUT_QUERY_PARAM_KEY = "startRunInput";
3
4
  export declare function runDeployProject(projectName: string, auth: AuthCredentials): Promise<void>;
4
5
  export declare const projectNameSchema: z.ZodEffects<z.ZodString, string, string>;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.projectNameSchema = void 0;
6
+ exports.projectNameSchema = exports.START_RUN_INPUT_QUERY_PARAM_KEY = void 0;
7
7
  exports.runDeployProject = runDeployProject;
8
8
  var _zod = require("zod");
9
9
  var _constants = require("../constants");
@@ -13,9 +13,22 @@ var _promises = require("timers/promises");
13
13
  var _ms = _interopRequireDefault(require("ms"));
14
14
  var _save = require("./save");
15
15
  var _constants2 = require("../../../common/constants");
16
+ var _path = _interopRequireDefault(require("path"));
17
+ var fs = _interopRequireWildcard(require("fs-extra"));
18
+ var _prompts = _interopRequireDefault(require("prompts"));
19
+ var _terminalLink = _interopRequireDefault(require("terminal-link"));
20
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
21
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
22
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
23
+ const START_RUN_INPUT_QUERY_PARAM_KEY = exports.START_RUN_INPUT_QUERY_PARAM_KEY = "startRunInput";
17
24
  async function runDeployProject(projectName, auth) {
18
- await (0, _save.runSaveProject)(projectName, auth);
25
+ const result = await (0, _save.runSaveProject)(projectName, auth);
26
+ const enableFirstRunExperience = result?.enableFirstRunExperience ?? false;
27
+ let firstRunExperienceInput = undefined;
28
+ const settings = await (0, _helpers.loadIntunedJson)();
29
+ if (enableFirstRunExperience) {
30
+ firstRunExperienceInput = await promptFirstRunExperience(settings);
31
+ }
19
32
  const {
20
33
  workspaceId,
21
34
  apiKey
@@ -28,7 +41,10 @@ async function runDeployProject(projectName, auth) {
28
41
  };
29
42
  const response = await fetch(url, {
30
43
  headers,
31
- method: "POST"
44
+ method: "POST",
45
+ body: JSON.stringify({
46
+ firstRunExperienceInput
47
+ })
32
48
  });
33
49
  if (!response.ok) {
34
50
  if (response.status === 401) {
@@ -85,8 +101,40 @@ async function runDeployProject(projectName, auth) {
85
101
  }
86
102
  if (status === "completed") {
87
103
  const url = (0, _helpers.getBaseUrl)();
88
- (0, _terminal.terminal)(`\n^g^+Project deployed successfully!^:\n`);
89
- (0, _terminal.terminal)(`^+You can check your project on the platform:^s ^c^_${url}/projects/${projectId}/details^:\n`);
104
+ (0, _terminal.terminal)(`\n^g^+Project deployed successfully!^:\n\n`);
105
+ const projectUrl = `${url}/projects/${projectId}`;
106
+ const runsUrl = `${projectUrl}/runs`;
107
+ const jobsUrl = `${projectUrl}/jobs`;
108
+ const runsPlaygroundUrl = `${runsUrl}?${buildRunsPlaygroundQueryParams({
109
+ enableFirstRunExperience,
110
+ settings,
111
+ testAuthSessionId: rest.testAuthSessionId
112
+ })}`;
113
+ const defaultJobTriggerUrl = rest.defaultJobId ? `${jobsUrl}/${rest.defaultJobId}?action=trigger` : undefined;
114
+ const actions = [{
115
+ label: "View Project",
116
+ url: runsUrl
117
+ }, ...(settings.apiAccess.enabled ? [{
118
+ label: "Run Playground",
119
+ url: runsPlaygroundUrl
120
+ }] : []), {
121
+ label: "Manage Jobs",
122
+ url: jobsUrl
123
+ }, ...(defaultJobTriggerUrl !== undefined ? [{
124
+ label: "Trigger Default Job",
125
+ url: defaultJobTriggerUrl
126
+ }] : [])];
127
+ if (_terminalLink.default.isSupported) {
128
+ for (const action of actions) {
129
+ const link = (0, _terminalLink.default)(`[ ${action.label} ]`, action.url);
130
+ (0, _terminal.terminal)(`^+${link.replaceAll("%", "%%")}^ `);
131
+ }
132
+ (0, _terminal.terminal)("\n");
133
+ } else {
134
+ for (const action of actions) {
135
+ (0, _terminal.terminal)(`^+${action.label}:^ ^c^_${action.url}^:\n`);
136
+ }
137
+ }
90
138
  return;
91
139
  }
92
140
  let errorMessage = `^r^+An error occurred while deploying project:^:\n^R${message}^:\n`;
@@ -136,4 +184,93 @@ const checkIntunedProjectDeployStatus = async (workspaceId, projectName, apiKey)
136
184
  status: "failed",
137
185
  message: `Deployment failed, please try again: ${data.message}`
138
186
  };
139
- };
187
+ };
188
+ async function promptFirstRunExperience(settings) {
189
+ let testAuthSessionInput = undefined;
190
+ const shouldPromptForTestAuthSession = settings.authSessions.enabled && settings.authSessions.type === "API";
191
+ const defaultJobInput = settings.metadata?.defaultJobInput;
192
+ const shouldPromptForDefaultJob = defaultJobInput !== undefined;
193
+ if (shouldPromptForTestAuthSession) {
194
+ testAuthSessionInput = await promptFirstRunExperienceTestAuthSessionParameters({
195
+ shouldPromptForDefaultJob
196
+ });
197
+ if (!testAuthSessionInput) {
198
+ return {};
199
+ }
200
+ }
201
+ return {
202
+ testAuthSessionInput,
203
+ defaultJobInput: shouldPromptForDefaultJob ? await promptFirstRunExperienceDefaultJobParameters({
204
+ defaultJobInput
205
+ }) : undefined
206
+ };
207
+ }
208
+ async function promptFirstRunExperienceTestAuthSessionParameters({
209
+ shouldPromptForDefaultJob
210
+ }) {
211
+ const authSessionInstancesDirectory = _path.default.join(process.cwd(), _constants2.AUTH_SESSIONS_INSTANCES_FOLDER_NAME);
212
+ if (!(await fs.exists(authSessionInstancesDirectory))) {
213
+ return;
214
+ }
215
+ const authSessionId = (await fs.readdir(authSessionInstancesDirectory)).shift();
216
+ if (!authSessionId) {
217
+ return;
218
+ }
219
+ const {
220
+ metadata
221
+ } = await (0, _helpers.loadAuthSessionInstance)(authSessionId);
222
+ if (!metadata.authSessionId) {
223
+ return;
224
+ }
225
+ const message = shouldPromptForDefaultJob ? `^:^+Create a test auth session using^ ^c${authSessionId}^:^+ parameters?^ ^/(required for creating default job)^:` : `^:^+Create a test auth session using^ ^c${authSessionId}^:^+ parameters?^:`;
226
+ const {
227
+ value
228
+ } = await (0, _prompts.default)({
229
+ type: "confirm",
230
+ name: "value",
231
+ message: _terminal.terminal.str(message).toString(),
232
+ initial: true
233
+ });
234
+ if (value === undefined) {
235
+ throw new _helpers.AbortedCLIError();
236
+ }
237
+ if (value) {
238
+ return metadata.authSessionInput;
239
+ }
240
+ }
241
+ async function promptFirstRunExperienceDefaultJobParameters({
242
+ defaultJobInput
243
+ }) {
244
+ const {
245
+ value
246
+ } = await (0, _prompts.default)({
247
+ type: "confirm",
248
+ name: "value",
249
+ message: _terminal.terminal.str(`^:^+Create a default job with sample parameters?^:`).toString(),
250
+ initial: true
251
+ });
252
+ if (value === undefined) {
253
+ throw new _helpers.AbortedCLIError();
254
+ }
255
+ if (value) {
256
+ return defaultJobInput;
257
+ }
258
+ }
259
+ function buildRunsPlaygroundQueryParams({
260
+ enableFirstRunExperience,
261
+ settings,
262
+ testAuthSessionId
263
+ }) {
264
+ const params = new URLSearchParams();
265
+ if (!enableFirstRunExperience) return params.toString();
266
+ params.set(START_RUN_INPUT_QUERY_PARAM_KEY, JSON.stringify({}));
267
+ const input = settings.metadata?.defaultRunPlaygroundInput;
268
+ if (!input) return params.toString();
269
+ if (testAuthSessionId) {
270
+ input.authSessionId = testAuthSessionId;
271
+ }
272
+ params.set(START_RUN_INPUT_QUERY_PARAM_KEY, JSON.stringify({
273
+ ...input
274
+ }));
275
+ return params.toString();
276
+ }
@@ -1,6 +1,9 @@
1
1
  import { z } from "zod";
2
2
  import type { AuthCredentials } from "../types";
3
- export declare function runSaveProject(projectName: string, auth: AuthCredentials): Promise<void>;
3
+ export declare function runSaveProject(projectName: string, auth: AuthCredentials): Promise<{
4
+ projectId: string;
5
+ enableFirstRunExperience: boolean | undefined;
6
+ } | undefined>;
4
7
  export declare const projectNameSchema: z.ZodEffects<z.ZodString, string, string>;
5
8
  export declare const validateProjectName: (projectName: string) => {
6
9
  isValid: true;
@@ -33,7 +33,8 @@ const saveProjectApiResponseSchema = _zod.z.string().transform((val, ctx) => {
33
33
  return _zod.z.NEVER;
34
34
  }
35
35
  }).pipe(_zod.z.object({
36
- id: _zod.z.string().uuid()
36
+ id: _zod.z.string().uuid(),
37
+ enableFirstRunExperience: _zod.z.boolean().optional()
37
38
  }));
38
39
  async function runSaveProject(projectName, auth) {
39
40
  const {
@@ -86,7 +87,8 @@ async function runSaveProject(projectName, auth) {
86
87
  return;
87
88
  }
88
89
  const {
89
- id: projectId
90
+ id: projectId,
91
+ enableFirstRunExperience
90
92
  } = parseResult.data;
91
93
  const dotEnvPath = path.join(projectPath, ".env");
92
94
  if (!(await fs.exists(dotEnvPath))) {
@@ -111,6 +113,10 @@ ${_constants2.API_KEY_ENV_VAR_KEY}=${apiKey}`);
111
113
  await fs.appendFile(dotEnvPath, contentToAppend + "\n");
112
114
  (0, _terminal.terminal)(`^g^+Updated .env file with project credentials.^:\n`);
113
115
  }
116
+ return {
117
+ projectId,
118
+ enableFirstRunExperience
119
+ };
114
120
  }
115
121
  const projectNameSchema = exports.projectNameSchema = _zod.z.string().min(1, "Project Name is required").max(200, "Name must be 200 characters or less").regex(/^[a-z0-9]+(?:[-_][a-z0-9]+)*$/, "Name can only contain lowercase letters, numbers, hyphens, and underscores in between").refine(value => !_zod.z.string().uuid().safeParse(value).success, {
116
122
  message: "Name cannot be a UUID"
@@ -23,5 +23,5 @@ async function getAuthCredentials(options) {
23
23
  };
24
24
  }
25
25
  function getBaseUrl() {
26
- return process.env[_constants.API_BASE_URL_ENV_VAR_KEY] || process.env.INTUNED_API_DOMAIN || `https://app.intuned.io`;
26
+ return new URL(process.env[_constants.API_BASE_URL_ENV_VAR_KEY] || process.env.INTUNED_API_DOMAIN || `https://app.intuned.io`).origin;
27
27
  }
@@ -5,6 +5,9 @@ export declare class CLIError extends Error {
5
5
  autoColor?: boolean;
6
6
  });
7
7
  }
8
+ export declare class AbortedCLIError extends CLIError {
9
+ constructor();
10
+ }
8
11
  export declare class CLIAssertionError extends CLIError {
9
12
  constructor(message: string, options?: {
10
13
  autoColor?: boolean;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.CLIError = exports.CLIAssertionError = void 0;
6
+ exports.CLIError = exports.CLIAssertionError = exports.AbortedCLIError = void 0;
7
7
  exports.logAutomationError = logAutomationError;
8
8
  var _runApi = require("../../../common/runApi");
9
9
  var _terminal = require("./terminal");
@@ -15,6 +15,13 @@ class CLIError extends Error {
15
15
  }
16
16
  }
17
17
  exports.CLIError = CLIError;
18
+ class AbortedCLIError extends CLIError {
19
+ constructor() {
20
+ super("Aborted");
21
+ this.name = "AbortedCLIError";
22
+ }
23
+ }
24
+ exports.AbortedCLIError = AbortedCLIError;
18
25
  class CLIAssertionError extends CLIError {
19
26
  constructor(message, options) {
20
27
  super(message, options);
@@ -1,5 +1,82 @@
1
1
  import { z } from "zod";
2
- export declare const intunedJsonSchema: z.ZodObject<{
2
+ export declare const intunedJsonSchema: z.ZodIntersection<z.ZodObject<{
3
+ projectName: z.ZodOptional<z.ZodString>;
4
+ workspaceId: z.ZodOptional<z.ZodString>;
5
+ metadata: z.ZodCatch<z.ZodOptional<z.ZodObject<{
6
+ defaultJobInput: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
7
+ defaultRunPlaygroundInput: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
8
+ testAuthSessionInput: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ defaultJobInput?: Record<string, any> | undefined;
11
+ defaultRunPlaygroundInput?: Record<string, any> | undefined;
12
+ testAuthSessionInput?: Record<string, any> | undefined;
13
+ }, {
14
+ defaultJobInput?: unknown;
15
+ defaultRunPlaygroundInput?: unknown;
16
+ testAuthSessionInput?: unknown;
17
+ }>>>;
18
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
19
+ projectName: z.ZodOptional<z.ZodString>;
20
+ workspaceId: z.ZodOptional<z.ZodString>;
21
+ metadata: z.ZodCatch<z.ZodOptional<z.ZodObject<{
22
+ defaultJobInput: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
23
+ defaultRunPlaygroundInput: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
24
+ testAuthSessionInput: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ defaultJobInput?: Record<string, any> | undefined;
27
+ defaultRunPlaygroundInput?: Record<string, any> | undefined;
28
+ testAuthSessionInput?: Record<string, any> | undefined;
29
+ }, {
30
+ defaultJobInput?: unknown;
31
+ defaultRunPlaygroundInput?: unknown;
32
+ testAuthSessionInput?: unknown;
33
+ }>>>;
34
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
35
+ projectName: z.ZodOptional<z.ZodString>;
36
+ workspaceId: z.ZodOptional<z.ZodString>;
37
+ metadata: z.ZodCatch<z.ZodOptional<z.ZodObject<{
38
+ defaultJobInput: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
39
+ defaultRunPlaygroundInput: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
40
+ testAuthSessionInput: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ defaultJobInput?: Record<string, any> | undefined;
43
+ defaultRunPlaygroundInput?: Record<string, any> | undefined;
44
+ testAuthSessionInput?: Record<string, any> | undefined;
45
+ }, {
46
+ defaultJobInput?: unknown;
47
+ defaultRunPlaygroundInput?: unknown;
48
+ testAuthSessionInput?: unknown;
49
+ }>>>;
50
+ }, z.ZodTypeAny, "passthrough">>, z.ZodUnion<[z.ZodObject<{
51
+ authSessions: z.ZodObject<{
52
+ enabled: z.ZodLiteral<false>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ enabled: false;
55
+ }, {
56
+ enabled: false;
57
+ }>;
58
+ apiAccess: z.ZodObject<{
59
+ enabled: z.ZodLiteral<false>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ enabled: false;
62
+ }, {
63
+ enabled: false;
64
+ }>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ authSessions: {
67
+ enabled: false;
68
+ };
69
+ apiAccess: {
70
+ enabled: false;
71
+ };
72
+ }, {
73
+ authSessions: {
74
+ enabled: false;
75
+ };
76
+ apiAccess: {
77
+ enabled: false;
78
+ };
79
+ }>, z.ZodObject<{
3
80
  authSessions: z.ZodUnion<[z.ZodObject<{
4
81
  enabled: z.ZodLiteral<false>;
5
82
  }, "strip", z.ZodTypeAny, {
@@ -22,8 +99,13 @@ export declare const intunedJsonSchema: z.ZodObject<{
22
99
  startUrl?: string | undefined;
23
100
  finishUrl?: string | undefined;
24
101
  }>]>;
25
- projectName: z.ZodOptional<z.ZodString>;
26
- workspaceId: z.ZodOptional<z.ZodString>;
102
+ apiAccess: z.ZodObject<{
103
+ enabled: z.ZodLiteral<true>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ enabled: true;
106
+ }, {
107
+ enabled: true;
108
+ }>;
27
109
  }, "strip", z.ZodTypeAny, {
28
110
  authSessions: {
29
111
  enabled: false;
@@ -33,8 +115,9 @@ export declare const intunedJsonSchema: z.ZodObject<{
33
115
  startUrl?: string | undefined;
34
116
  finishUrl?: string | undefined;
35
117
  };
36
- projectName?: string | undefined;
37
- workspaceId?: string | undefined;
118
+ apiAccess: {
119
+ enabled: true;
120
+ };
38
121
  }, {
39
122
  authSessions: {
40
123
  enabled: false;
@@ -44,12 +127,30 @@ export declare const intunedJsonSchema: z.ZodObject<{
44
127
  startUrl?: string | undefined;
45
128
  finishUrl?: string | undefined;
46
129
  };
47
- projectName?: string | undefined;
48
- workspaceId?: string | undefined;
49
- }>;
130
+ apiAccess: {
131
+ enabled: true;
132
+ };
133
+ }>]>>;
50
134
  export type IntunedJson = z.infer<typeof intunedJsonSchema>;
51
135
  export declare const intunedSettingsFileNames: readonly ["Intuned.json", "Intuned.jsonc", "Intuned.yaml", "Intuned.yml", "Intuned.toml"];
52
136
  export declare function loadIntunedJson(): Promise<{
137
+ projectName?: string | undefined;
138
+ workspaceId?: string | undefined;
139
+ metadata?: {
140
+ defaultJobInput?: Record<string, any> | undefined;
141
+ defaultRunPlaygroundInput?: Record<string, any> | undefined;
142
+ testAuthSessionInput?: Record<string, any> | undefined;
143
+ } | undefined;
144
+ } & {
145
+ [k: string]: unknown;
146
+ } & ({
147
+ authSessions: {
148
+ enabled: false;
149
+ };
150
+ apiAccess: {
151
+ enabled: false;
152
+ };
153
+ } | {
53
154
  authSessions: {
54
155
  enabled: false;
55
156
  } | {
@@ -58,9 +159,10 @@ export declare function loadIntunedJson(): Promise<{
58
159
  startUrl?: string | undefined;
59
160
  finishUrl?: string | undefined;
60
161
  };
61
- projectName?: string | undefined;
62
- workspaceId?: string | undefined;
63
- }>;
162
+ apiAccess: {
163
+ enabled: true;
164
+ };
165
+ })>;
64
166
  export declare function getIntunedSettingsFile(): Promise<{
65
167
  name: typeof intunedSettingsFileNames[number];
66
168
  path: string;
@@ -18,6 +18,21 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
18
18
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
19
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
20
20
  const intunedJsonSchema = exports.intunedJsonSchema = _zod.z.object({
21
+ projectName: _zod.z.string().optional(),
22
+ workspaceId: _zod.z.string().optional(),
23
+ metadata: _zod.z.object({
24
+ defaultJobInput: _zod.z.record(_zod.z.any()).optional().catch(undefined),
25
+ defaultRunPlaygroundInput: _zod.z.record(_zod.z.any()).optional().catch(undefined),
26
+ testAuthSessionInput: _zod.z.record(_zod.z.any()).optional().catch(undefined)
27
+ }).optional().catch(undefined)
28
+ }).passthrough().and(_zod.z.union([_zod.z.object({
29
+ authSessions: _zod.z.object({
30
+ enabled: _zod.z.literal(false)
31
+ }),
32
+ apiAccess: _zod.z.object({
33
+ enabled: _zod.z.literal(false)
34
+ })
35
+ }), _zod.z.object({
21
36
  authSessions: _zod.z.union([_zod.z.object({
22
37
  enabled: _zod.z.literal(false)
23
38
  }), _zod.z.object({
@@ -26,9 +41,10 @@ const intunedJsonSchema = exports.intunedJsonSchema = _zod.z.object({
26
41
  startUrl: _zod.z.string().optional(),
27
42
  finishUrl: _zod.z.string().optional()
28
43
  })]),
29
- projectName: _zod.z.string().optional(),
30
- workspaceId: _zod.z.string().optional()
31
- });
44
+ apiAccess: _zod.z.object({
45
+ enabled: _zod.z.literal(true)
46
+ })
47
+ })]));
32
48
  const intunedSettingsFileNames = exports.intunedSettingsFileNames = ["Intuned.json", "Intuned.jsonc", "Intuned.yaml", "Intuned.yml", "Intuned.toml"];
33
49
  async function loadIntunedJson() {
34
50
  const settingsFile = await getIntunedSettingsFile();
@@ -34,6 +34,11 @@ function cliCommandWrapper(argsSchema, optionsSchema, fn) {
34
34
  await (0, _browser.closeCliBrowser)();
35
35
  process.exit(0);
36
36
  } catch (error) {
37
+ if (error instanceof _errors.AbortedCLIError) {
38
+ (0, _terminal.terminal)(`\n^r^+Aborted.^:\n`);
39
+ await (0, _browser.closeCliBrowser)();
40
+ process.exit(1);
41
+ }
37
42
  if (error instanceof _errors.CLIError) {
38
43
  if (error.autoColor) {
39
44
  (0, _terminal.terminal)(`^r^+${error.message}^:\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime",
3
- "version": "1.3.10",
3
+ "version": "1.3.11",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
@@ -27,7 +27,6 @@
27
27
  "intuned-build": "yarn prepublishOnly && vite-node ./src/commands/build.ts",
28
28
  "intuned-auth-session-check": "vite-node ./src/commands/auth/run-check.ts",
29
29
  "intuned-auth-session-create": "vite-node ./src/commands/auth/run-create.ts",
30
- "intuned-auth-session-refresh": "vite-node ./src/commands/auth/run-refresh.ts",
31
30
  "intuned-auth-session-load": "vite-node ./src/commands/auth/load.ts",
32
31
  "intuned-ts-check": "yarn prepublishOnly && vite-node ./src/commands/ts-check.ts",
33
32
  "intuned": "vite-node ./src/commands/intuned-cli/main.ts",
@@ -43,16 +42,15 @@
43
42
  "copy-dts": "copyfiles -u 1 \"src/**/*.d.ts\" dist"
44
43
  },
45
44
  "bin": {
46
- "intuned-api-run": "./bin/intuned-api-run",
47
- "intuned-auth-session-create": "./bin/intuned-auth-session-create",
48
- "intuned-auth-session-refresh": "./bin/intuned-auth-session-refresh",
49
- "intuned-auth-session-load": "./bin/intuned-auth-session-load",
50
- "intuned-auth-session-check": "./bin/intuned-auth-session-check",
51
- "intuned-build": "./bin/intuned-build",
52
- "intuned-browser-start": "./bin/intuned-browser-start",
53
- "intuned-browser-save-state": "./bin/intuned-browser-save-state",
54
- "intuned-ts-check": "./bin/intuned-ts-check",
55
- "intuned": "./bin/intuned"
45
+ "intuned-api-run": "bin/intuned-api-run",
46
+ "intuned-auth-session-create": "bin/intuned-auth-session-create",
47
+ "intuned-auth-session-load": "bin/intuned-auth-session-load",
48
+ "intuned-auth-session-check": "bin/intuned-auth-session-check",
49
+ "intuned-build": "bin/intuned-build",
50
+ "intuned-browser-start": "bin/intuned-browser-start",
51
+ "intuned-browser-save-state": "bin/intuned-browser-save-state",
52
+ "intuned-ts-check": "bin/intuned-ts-check",
53
+ "intuned": "bin/intuned"
56
54
  },
57
55
  "dependencies": {
58
56
  "@babel/plugin-syntax-dynamic-import": "7.8.3",
@@ -83,10 +81,12 @@
83
81
  "portfinder": "^1.0.37",
84
82
  "prettier": "2.8.0",
85
83
  "promptly": "3.2.0",
84
+ "prompts": "^2.4.2",
86
85
  "rollup": "3.26.2",
87
86
  "smol-toml": "^1.4.2",
88
87
  "source-map": "0.7.4",
89
88
  "terminal-kit": "^3.1.2",
89
+ "terminal-link": "2.1.1",
90
90
  "ts-morph": "21.0.1",
91
91
  "ts-node": "10.9.1",
92
92
  "tslib": "2.6.0",
@@ -108,6 +108,7 @@
108
108
  "@types/jsdom": "^21.1.1",
109
109
  "@types/ms": "^2.1.0",
110
110
  "@types/promptly": "^3.0.4",
111
+ "@types/prompts": "^2.4.9",
111
112
  "@types/terminal-kit": "^2.5.7",
112
113
  "@types/wait-on": "^5.3.4",
113
114
  "@typescript-eslint/eslint-plugin": "^5.47.1",
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env node
2
- export declare function executeCLI(apiName: string, mode: "vanilla" | "playwright" | "playwright-standalone" | "playwright-headless", inputData: object | null | undefined, options: {
3
- cdpAddress: string;
4
- authSessionPath: undefined | string;
5
- outputFileId: string | undefined;
6
- }): Promise<void>;