@intuned/runtime-dev 1.0.0-udas.1 → 1.0.0-udas.3

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.
@@ -106,7 +106,6 @@ function runAutomationCLI(importFunction) {
106
106
  });
107
107
  async function messagesLoop() {
108
108
  for await (const data of jsonUnixSocket.receiveJSON()) {
109
- console.log("Received message");
110
109
  const inputParseResult = inputSchema.safeParse(data);
111
110
  if (!inputParseResult.success) {
112
111
  console.error("Validation error:", (0, _formatZodError.formatZodError)(inputParseResult.error));
@@ -170,11 +169,9 @@ function runAutomationCLI(importFunction) {
170
169
  client.end();
171
170
  }
172
171
  void messagesLoop();
173
- console.log("Listening for values");
174
172
  for await (const {
175
173
  value
176
174
  } of stream) {
177
- console.log("Received a value", value);
178
175
  const {
179
176
  done
180
177
  } = await runGeneratorAndSendResult(value);
@@ -73,6 +73,11 @@ async function* runApiGenerator({
73
73
  headless,
74
74
  proxy
75
75
  } = runOptions;
76
+ console.log("Running in standalone mode", {
77
+ headless,
78
+ proxy,
79
+ downloadsPath
80
+ });
76
81
  ({
77
82
  page,
78
83
  context
@@ -82,6 +87,7 @@ async function* runApiGenerator({
82
87
  downloadsPath,
83
88
  storageState: auth === null || auth === void 0 ? void 0 : auth.session
84
89
  }));
90
+ console.log("Got page and context");
85
91
  } else {
86
92
  const {
87
93
  mode,
@@ -108,6 +114,7 @@ async function* runApiGenerator({
108
114
  }
109
115
  }
110
116
  if (tracing.enabled) {
117
+ console.log("Starting trace");
111
118
  await context.tracing.start({
112
119
  screenshots: true,
113
120
  snapshots: true,
@@ -131,6 +138,7 @@ async function* runApiGenerator({
131
138
  }
132
139
  async function* runAutomation() {
133
140
  var _getExecutionContext;
141
+ (0, _cleanEnvironmentVariables.cleanEnvironmentVariables)();
134
142
  if (auth !== null && auth !== void 0 && auth.runCheck) {
135
143
  if (!auth.session) {
136
144
  return (0, _neverthrow.err)(new _errors.AuthRequiredError());
@@ -148,7 +156,7 @@ async function* runApiGenerator({
148
156
  return (0, _neverthrow.err)(new _errors.AuthCheckFailedError());
149
157
  }
150
158
  }
151
- (0, _cleanEnvironmentVariables.cleanEnvironmentVariables)();
159
+ console.log("Running automation");
152
160
  const args = [...(automationFunction.params !== undefined ? [automationFunction.params] : []), page, context];
153
161
  const validatedModuleResult = await importUsingImportFunction(automationFunction.name, importFunction);
154
162
  if (validatedModuleResult.isErr()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.0.0-udas.1",
3
+ "version": "1.0.0-udas.3",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",