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

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
@@ -108,6 +113,7 @@ async function* runApiGenerator({
108
113
  }
109
114
  }
110
115
  if (tracing.enabled) {
116
+ console.log("Starting trace");
111
117
  await context.tracing.start({
112
118
  screenshots: true,
113
119
  snapshots: true,
@@ -131,6 +137,7 @@ async function* runApiGenerator({
131
137
  }
132
138
  async function* runAutomation() {
133
139
  var _getExecutionContext;
140
+ (0, _cleanEnvironmentVariables.cleanEnvironmentVariables)();
134
141
  if (auth !== null && auth !== void 0 && auth.runCheck) {
135
142
  if (!auth.session) {
136
143
  return (0, _neverthrow.err)(new _errors.AuthRequiredError());
@@ -148,7 +155,7 @@ async function* runApiGenerator({
148
155
  return (0, _neverthrow.err)(new _errors.AuthCheckFailedError());
149
156
  }
150
157
  }
151
- (0, _cleanEnvironmentVariables.cleanEnvironmentVariables)();
158
+ console.log("Running automation");
152
159
  const args = [...(automationFunction.params !== undefined ? [automationFunction.params] : []), page, context];
153
160
  const validatedModuleResult = await importUsingImportFunction(automationFunction.name, importFunction);
154
161
  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.2",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",