@intuned/runtime-dev 1.0.6-playwright-1.46.0 → 1.1.1-nt.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 (50) hide show
  1. package/InterfaceTemplate/utils.ts +53 -31
  2. package/WebTemplate.zip +0 -0
  3. package/bin/check-auth-session +3 -0
  4. package/bin/cli-build +3 -0
  5. package/bin/create-auth-session +3 -0
  6. package/bin/deploy +3 -0
  7. package/bin/init +3 -0
  8. package/bin/run-api +3 -0
  9. package/dist/commands/cli-auth-sessions/check.d.ts +2 -0
  10. package/dist/commands/cli-auth-sessions/check.js +40 -0
  11. package/dist/commands/cli-auth-sessions/create.d.ts +2 -0
  12. package/dist/commands/cli-auth-sessions/create.js +53 -0
  13. package/dist/commands/cli-auth-sessions/utils.d.ts +28 -0
  14. package/dist/commands/cli-auth-sessions/utils.js +285 -0
  15. package/dist/commands/cli-build/cli-build.d.ts +2 -0
  16. package/dist/commands/cli-build/cli-build.js +20 -0
  17. package/dist/commands/common/projectExclusions.d.ts +2 -0
  18. package/dist/commands/common/projectExclusions.js +8 -0
  19. package/dist/commands/common/tsNodeImport.d.ts +2 -1
  20. package/dist/commands/common/tsNodeImport.js +19 -5
  21. package/dist/commands/common/utils/unixSocket.d.ts +1 -0
  22. package/dist/commands/deploy/deploy.d.ts +2 -0
  23. package/dist/commands/deploy/deploy.js +47 -0
  24. package/dist/commands/deploy/utils.d.ts +16 -0
  25. package/dist/commands/deploy/utils.js +408 -0
  26. package/dist/commands/init/init.d.ts +2 -0
  27. package/dist/commands/init/init.js +22 -0
  28. package/dist/commands/init/utils.d.ts +11 -0
  29. package/dist/commands/init/utils.js +181 -0
  30. package/dist/commands/interface/run.js +30 -3
  31. package/dist/commands/run-api-cli/run-api.d.ts +2 -0
  32. package/dist/commands/run-api-cli/run-api.js +57 -0
  33. package/dist/commands/run-api-cli/utils.d.ts +9 -0
  34. package/dist/commands/run-api-cli/utils.js +144 -0
  35. package/dist/common/asyncLocalStorage/index.d.ts +2 -1
  36. package/dist/common/asyncLocalStorage/index.js +2 -2
  37. package/dist/common/cli/cliReadme.d.ts +1 -0
  38. package/dist/common/cli/cliReadme.js +92 -0
  39. package/dist/common/cli/constants.d.ts +33 -0
  40. package/dist/common/cli/constants.js +39 -0
  41. package/dist/common/cli/types.d.ts +74 -0
  42. package/dist/common/cli/types.js +13 -0
  43. package/dist/common/cli/utils.d.ts +6 -0
  44. package/dist/common/cli/utils.js +35 -0
  45. package/dist/common/constants.d.ts +1 -0
  46. package/dist/common/constants.js +3 -2
  47. package/dist/common/runApi/index.d.ts +1 -0
  48. package/dist/common/runApi/index.js +9 -2
  49. package/dist/common/runApi/types.d.ts +9 -3
  50. package/package.json +16 -5
@@ -545,12 +545,12 @@ export declare const runApiParametersSchema: z.ZodObject<{
545
545
  } | undefined;
546
546
  }, {
547
547
  environment: "standalone";
548
+ headless?: boolean | undefined;
548
549
  proxy?: {
549
550
  server: string;
550
551
  username: string;
551
552
  password: string;
552
553
  } | undefined;
553
- headless?: boolean | undefined;
554
554
  }>, z.ZodObject<{
555
555
  environment: z.ZodLiteral<"cdp">;
556
556
  cdpAddress: z.ZodString;
@@ -673,12 +673,12 @@ export declare const runApiParametersSchema: z.ZodObject<{
673
673
  } | undefined;
674
674
  runOptions?: {
675
675
  environment: "standalone";
676
+ headless?: boolean | undefined;
676
677
  proxy?: {
677
678
  server: string;
678
679
  username: string;
679
680
  password: string;
680
681
  } | undefined;
681
- headless?: boolean | undefined;
682
682
  } | {
683
683
  mode: "vanilla" | "playwright" | "playwright-standalone" | "playwright-headless";
684
684
  environment: "cdp";
@@ -688,9 +688,15 @@ export declare const runApiParametersSchema: z.ZodObject<{
688
688
  }>;
689
689
  export type RunApiSession = z.infer<typeof runApiSessionSchema>;
690
690
  export type RunApiParameters = z.input<typeof runApiParametersSchema>;
691
+ export type ImportFunctionError = {
692
+ type: "not_found";
693
+ } | {
694
+ type: "other";
695
+ error: any;
696
+ };
691
697
  export type ExtendedRunApiParameters = RunApiParameters & {
692
698
  abortSignal?: AbortSignal;
693
- importFunction?: (name: string) => Promise<any> | undefined;
699
+ importFunction: (name: string) => Promise<Result<any, ImportFunctionError>>;
694
700
  };
695
701
  export type RunApiResultOk<R = any> = {
696
702
  result: R;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.0.6-playwright-1.46.0",
3
+ "version": "1.1.1-nt.0",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
@@ -13,7 +13,8 @@
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",
@@ -48,7 +49,13 @@
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
61
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
@@ -65,6 +72,7 @@
65
72
  "applicationinsights": "^2.9.2",
66
73
  "async-retry": "^1.3.3",
67
74
  "babel-plugin-dynamic-import-node": "^2.3.3",
75
+ "boxen": "8.0.1",
68
76
  "chalk": "^4.1.2",
69
77
  "commander": "^11.0.0",
70
78
  "cross-fetch": "^4.0.0",
@@ -75,13 +83,15 @@
75
83
  "fs-extra": "^11.3.0",
76
84
  "https-proxy-agent": "^7.0.5",
77
85
  "image-size": "^1.1.1",
86
+ "inquirer": "12.6.0",
78
87
  "jsonwebtoken": "^9.0.2",
79
88
  "lodash": "^4.17.21",
80
89
  "milliparsec": "^2.3.0",
90
+ "minimatch": "10.0.1",
81
91
  "ms": "^2.1.3",
82
92
  "nanoid": "3",
83
- "neverthrow": "^6.1.0",
84
- "playwright": "1.46.0",
93
+ "neverthrow": "6.1.0",
94
+ "playwright": "1.44.1",
85
95
  "playwright-extra": "^4.3.6",
86
96
  "prettier": "^2.8.0",
87
97
  "promptly": "^3.2.0",
@@ -93,6 +103,7 @@
93
103
  "ts-node": "^10.9.1",
94
104
  "tslib": "^2.6.0",
95
105
  "typescript": "^5.1.6",
106
+ "uuid": "11.1.0",
96
107
  "wait-on": "^7.2.0",
97
108
  "zod": "^3.21.4",
98
109
  "zod-validation-error": "^3.0.3"