@intuned/runtime-dev 1.3.21-fix.0 → 1.3.22-dev.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 (117) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/bin/intuned +20 -2
  3. package/dist/commands/api/run.js +1 -1
  4. package/dist/commands/auth-sessions/load.js +4 -1
  5. package/dist/commands/auth-sessions/run-check.js +26 -17
  6. package/dist/commands/auth-sessions/run-create.js +10 -3
  7. package/dist/commands/common/browserUtils.js +10 -1
  8. package/dist/common/env.d.ts +6 -0
  9. package/dist/common/env.js +17 -0
  10. package/dist/common/intunedJson.d.ts +5 -0
  11. package/dist/common/intunedJson.js +1 -0
  12. package/dist/common/launchBrowser.d.ts +7 -0
  13. package/dist/common/launchBrowser.js +34 -2
  14. package/dist/common/playwrightContext.d.ts +2 -0
  15. package/dist/common/playwrightContext.js +10 -4
  16. package/dist/common/runApi/index.js +2 -0
  17. package/dist/common/settingsSchema.d.ts +3 -0
  18. package/dist/common/settingsSchema.js +2 -1
  19. package/dist/vendor/runtime-interface.js +4 -2
  20. package/package.json +3 -3
  21. package/.claude/settings.local.json +0 -7
  22. package/dist/commands/intuned-cli/commands/attempt.command.d.ts +0 -1
  23. package/dist/commands/intuned-cli/commands/attempt.command.js +0 -8
  24. package/dist/commands/intuned-cli/commands/attempt_api.command.d.ts +0 -1
  25. package/dist/commands/intuned-cli/commands/attempt_api.command.js +0 -30
  26. package/dist/commands/intuned-cli/commands/attempt_authsession.command.d.ts +0 -1
  27. package/dist/commands/intuned-cli/commands/attempt_authsession.command.js +0 -8
  28. package/dist/commands/intuned-cli/commands/attempt_authsession_check.command.d.ts +0 -1
  29. package/dist/commands/intuned-cli/commands/attempt_authsession_check.command.js +0 -19
  30. package/dist/commands/intuned-cli/commands/attempt_authsession_create.command.d.ts +0 -1
  31. package/dist/commands/intuned-cli/commands/attempt_authsession_create.command.js +0 -24
  32. package/dist/commands/intuned-cli/commands/authsession.command.d.ts +0 -1
  33. package/dist/commands/intuned-cli/commands/authsession.command.js +0 -8
  34. package/dist/commands/intuned-cli/commands/authsession_record.command.d.ts +0 -1
  35. package/dist/commands/intuned-cli/commands/authsession_record.command.js +0 -32
  36. package/dist/commands/intuned-cli/commands/authsession_scaffold.command.d.ts +0 -1
  37. package/dist/commands/intuned-cli/commands/authsession_scaffold.command.js +0 -16
  38. package/dist/commands/intuned-cli/commands/build.command.d.ts +0 -1
  39. package/dist/commands/intuned-cli/commands/build.command.js +0 -12
  40. package/dist/commands/intuned-cli/commands/command.d.ts +0 -2
  41. package/dist/commands/intuned-cli/commands/command.js +0 -9
  42. package/dist/commands/intuned-cli/commands/deploy.command.d.ts +0 -1
  43. package/dist/commands/intuned-cli/commands/deploy.command.js +0 -42
  44. package/dist/commands/intuned-cli/commands/index.d.ts +0 -18
  45. package/dist/commands/intuned-cli/commands/index.js +0 -203
  46. package/dist/commands/intuned-cli/commands/provision.command.d.ts +0 -13
  47. package/dist/commands/intuned-cli/commands/provision.command.js +0 -50
  48. package/dist/commands/intuned-cli/commands/run.command.d.ts +0 -1
  49. package/dist/commands/intuned-cli/commands/run.command.js +0 -8
  50. package/dist/commands/intuned-cli/commands/run_api.command.d.ts +0 -1
  51. package/dist/commands/intuned-cli/commands/run_api.command.js +0 -46
  52. package/dist/commands/intuned-cli/commands/run_authsession.command.d.ts +0 -35
  53. package/dist/commands/intuned-cli/commands/run_authsession.command.js +0 -17
  54. package/dist/commands/intuned-cli/commands/run_authsession_create.command.d.ts +0 -1
  55. package/dist/commands/intuned-cli/commands/run_authsession_create.command.js +0 -35
  56. package/dist/commands/intuned-cli/commands/run_authsession_update.command.d.ts +0 -1
  57. package/dist/commands/intuned-cli/commands/run_authsession_update.command.js +0 -35
  58. package/dist/commands/intuned-cli/commands/run_authsession_validate.command.d.ts +0 -1
  59. package/dist/commands/intuned-cli/commands/run_authsession_validate.command.js +0 -33
  60. package/dist/commands/intuned-cli/commands/types.d.ts +0 -39
  61. package/dist/commands/intuned-cli/commands/types.js +0 -33
  62. package/dist/commands/intuned-cli/constants/index.d.ts +0 -17
  63. package/dist/commands/intuned-cli/constants/index.js +0 -25
  64. package/dist/commands/intuned-cli/controller/__test__/api.test.js +0 -399
  65. package/dist/commands/intuned-cli/controller/__test__/authSession.test.js +0 -1061
  66. package/dist/commands/intuned-cli/controller/api.d.ts +0 -42
  67. package/dist/commands/intuned-cli/controller/api.js +0 -194
  68. package/dist/commands/intuned-cli/controller/authSession.d.ts +0 -209
  69. package/dist/commands/intuned-cli/controller/authSession.js +0 -425
  70. package/dist/commands/intuned-cli/controller/build.d.ts +0 -1
  71. package/dist/commands/intuned-cli/controller/build.js +0 -35
  72. package/dist/commands/intuned-cli/controller/deploy.d.ts +0 -5
  73. package/dist/commands/intuned-cli/controller/deploy.js +0 -317
  74. package/dist/commands/intuned-cli/controller/index.d.ts +0 -1
  75. package/dist/commands/intuned-cli/controller/index.js +0 -45
  76. package/dist/commands/intuned-cli/controller/provision.d.ts +0 -21
  77. package/dist/commands/intuned-cli/controller/provision.js +0 -299
  78. package/dist/commands/intuned-cli/controller/scaffold.d.ts +0 -1
  79. package/dist/commands/intuned-cli/controller/scaffold.js +0 -77
  80. package/dist/commands/intuned-cli/helpers/__test__/browser.test.js +0 -152
  81. package/dist/commands/intuned-cli/helpers/__test__/tracing.test.js +0 -41
  82. package/dist/commands/intuned-cli/helpers/api.d.ts +0 -3
  83. package/dist/commands/intuned-cli/helpers/api.js +0 -16
  84. package/dist/commands/intuned-cli/helpers/auth.d.ts +0 -46
  85. package/dist/commands/intuned-cli/helpers/auth.js +0 -147
  86. package/dist/commands/intuned-cli/helpers/backend.d.ts +0 -8
  87. package/dist/commands/intuned-cli/helpers/backend.js +0 -35
  88. package/dist/commands/intuned-cli/helpers/browser.d.ts +0 -14
  89. package/dist/commands/intuned-cli/helpers/browser.js +0 -93
  90. package/dist/commands/intuned-cli/helpers/context.d.ts +0 -3
  91. package/dist/commands/intuned-cli/helpers/context.js +0 -33
  92. package/dist/commands/intuned-cli/helpers/errors.d.ts +0 -16
  93. package/dist/commands/intuned-cli/helpers/errors.js +0 -44
  94. package/dist/commands/intuned-cli/helpers/index.d.ts +0 -12
  95. package/dist/commands/intuned-cli/helpers/index.js +0 -137
  96. package/dist/commands/intuned-cli/helpers/intunedJson.d.ts +0 -40
  97. package/dist/commands/intuned-cli/helpers/intunedJson.js +0 -20
  98. package/dist/commands/intuned-cli/helpers/prompts.d.ts +0 -3
  99. package/dist/commands/intuned-cli/helpers/prompts.js +0 -71
  100. package/dist/commands/intuned-cli/helpers/proxy.d.ts +0 -5
  101. package/dist/commands/intuned-cli/helpers/proxy.js +0 -23
  102. package/dist/commands/intuned-cli/helpers/terminal.d.ts +0 -5
  103. package/dist/commands/intuned-cli/helpers/terminal.js +0 -13
  104. package/dist/commands/intuned-cli/helpers/timeout.d.ts +0 -1
  105. package/dist/commands/intuned-cli/helpers/timeout.js +0 -23
  106. package/dist/commands/intuned-cli/helpers/traces.d.ts +0 -2
  107. package/dist/commands/intuned-cli/helpers/traces.js +0 -32
  108. package/dist/commands/intuned-cli/helpers/validation.d.ts +0 -2
  109. package/dist/commands/intuned-cli/helpers/validation.js +0 -14
  110. package/dist/commands/intuned-cli/helpers/wrapper.d.ts +0 -2
  111. package/dist/commands/intuned-cli/helpers/wrapper.js +0 -76
  112. package/dist/commands/intuned-cli/index.d.ts +0 -1
  113. package/dist/commands/intuned-cli/index.js +0 -16
  114. package/dist/commands/intuned-cli/main.d.ts +0 -1
  115. package/dist/commands/intuned-cli/main.js +0 -35
  116. package/dist/commands/intuned-cli/types.d.ts +0 -70
  117. package/dist/commands/intuned-cli/types.js +0 -22
@@ -1,70 +0,0 @@
1
- import { z } from "zod";
2
- declare const fileNodeSchema: z.ZodObject<{
3
- file: z.ZodObject<{
4
- contents: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
5
- }, "strip", z.ZodTypeAny, {
6
- contents: string | Uint8Array;
7
- }, {
8
- contents: string | Uint8Array;
9
- }>;
10
- }, "strip", z.ZodTypeAny, {
11
- file: {
12
- contents: string | Uint8Array;
13
- };
14
- }, {
15
- file: {
16
- contents: string | Uint8Array;
17
- };
18
- }>;
19
- export type FileNode = z.infer<typeof fileNodeSchema>;
20
- export type DirectoryNode = {
21
- directory: {
22
- [key: string]: FileNode | DirectoryNode;
23
- };
24
- };
25
- export declare const fileSystemTreeSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<DirectoryNode, z.ZodTypeDef, DirectoryNode>, z.ZodObject<{
26
- file: z.ZodObject<{
27
- contents: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
28
- }, "strip", z.ZodTypeAny, {
29
- contents: string | Uint8Array;
30
- }, {
31
- contents: string | Uint8Array;
32
- }>;
33
- }, "strip", z.ZodTypeAny, {
34
- file: {
35
- contents: string | Uint8Array;
36
- };
37
- }, {
38
- file: {
39
- contents: string | Uint8Array;
40
- };
41
- }>]>>;
42
- export type FileSystemTree = z.infer<typeof fileSystemTreeSchema>;
43
- export interface AuthCredentials {
44
- workspaceId: string;
45
- apiKey: string;
46
- }
47
- export declare enum ApiAuthSessionBehavior {
48
- PERFORM_CHECK_AND_REFRESH = "PERFORM_CHECK_AND_REFRESH",
49
- SKIP_CHECK_AND_REFRESH = "SKIP_CHECK_AND_REFRESH"
50
- }
51
- export declare const CHECK_FAILED_ERROR_MESSAGE = "AuthSession check failed";
52
- export type AuthSessionType = "API" | "MANUAL";
53
- export type AuthSessionMetadata = {
54
- createdAt: string;
55
- updatedAt: string;
56
- authSessionId: string;
57
- authSessionType: AuthSessionType;
58
- authSessionInput?: Record<string, any>;
59
- authSessionProxy?: string;
60
- recorderStartUrl?: string;
61
- recorderEndUrl?: string;
62
- };
63
- export interface SessionStorageState {
64
- origin: string;
65
- sessionStorage: {
66
- name: string;
67
- value: string;
68
- }[];
69
- }
70
- export {};
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.fileSystemTreeSchema = exports.CHECK_FAILED_ERROR_MESSAGE = exports.ApiAuthSessionBehavior = void 0;
7
- var _zod = require("zod");
8
- const fileNodeSchema = _zod.z.object({
9
- file: _zod.z.object({
10
- contents: _zod.z.union([_zod.z.string(), _zod.z.instanceof(Uint8Array)])
11
- })
12
- });
13
- const directoryNodeSchema = _zod.z.lazy(() => _zod.z.object({
14
- directory: fileSystemTreeSchema
15
- }));
16
- const fileSystemTreeSchema = exports.fileSystemTreeSchema = _zod.z.record(_zod.z.union([directoryNodeSchema, fileNodeSchema]));
17
- let ApiAuthSessionBehavior = exports.ApiAuthSessionBehavior = function (ApiAuthSessionBehavior) {
18
- ApiAuthSessionBehavior["PERFORM_CHECK_AND_REFRESH"] = "PERFORM_CHECK_AND_REFRESH";
19
- ApiAuthSessionBehavior["SKIP_CHECK_AND_REFRESH"] = "SKIP_CHECK_AND_REFRESH";
20
- return ApiAuthSessionBehavior;
21
- }({});
22
- const CHECK_FAILED_ERROR_MESSAGE = exports.CHECK_FAILED_ERROR_MESSAGE = "AuthSession check failed";