playwright 1.56.0-alpha-1758818034000 → 1.56.0-alpha-1758839353000

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.
package/lib/program.js CHANGED
@@ -171,18 +171,20 @@ function addTestMCPServerCommand(program3) {
171
171
  });
172
172
  }
173
173
  function addInitAgentsCommand(program3) {
174
- const command = program3.command("init-agents", { hidden: true });
175
- command.description("Initialize repository agents for the Claude Code");
174
+ const command = program3.command("init-agents");
175
+ command.description("Initialize repository agents");
176
176
  const option = command.createOption("--loop <loop>", "Agentic loop provider");
177
- option.choices(["code", "claude", "opencode"]);
177
+ option.choices(["vscode", "claude", "opencode"]);
178
178
  command.addOption(option);
179
179
  command.action(async (opts) => {
180
180
  if (opts.loop === "opencode")
181
181
  await (0, import_generateAgents.initOpencodeRepo)();
182
- else if (opts.loop === "code")
182
+ else if (opts.loop === "vscode")
183
183
  await (0, import_generateAgents.initVSCodeRepo)();
184
184
  else if (opts.loop === "claude")
185
185
  await (0, import_generateAgents.initClaudeCodeRepo)();
186
+ else
187
+ command.help();
186
188
  });
187
189
  }
188
190
  async function runTests(args, opts) {
@@ -39,6 +39,7 @@ class ListReporter extends import_base.TerminalReporter {
39
39
  this._stepIndex = /* @__PURE__ */ new Map();
40
40
  this._needNewLine = false;
41
41
  this._printSteps = (0, import_utils.getAsBooleanFromENV)("PLAYWRIGHT_LIST_PRINT_STEPS", options?.printSteps);
42
+ this._prefixStdio = options?.prefixStdio;
42
43
  }
43
44
  onBegin(suite) {
44
45
  super.onBegin(suite);
@@ -61,11 +62,11 @@ class ListReporter extends import_base.TerminalReporter {
61
62
  }
62
63
  onStdOut(chunk, test, result) {
63
64
  super.onStdOut(chunk, test, result);
64
- this._dumpToStdio(test, chunk, this.screen.stdout);
65
+ this._dumpToStdio(test, chunk, this.screen.stdout, "out");
65
66
  }
66
67
  onStdErr(chunk, test, result) {
67
68
  super.onStdErr(chunk, test, result);
68
- this._dumpToStdio(test, chunk, this.screen.stderr);
69
+ this._dumpToStdio(test, chunk, this.screen.stderr, "err");
69
70
  }
70
71
  getStepIndex(testIndex, result, step) {
71
72
  if (this._stepIndex.has(step))
@@ -137,12 +138,15 @@ class ListReporter extends import_base.TerminalReporter {
137
138
  }
138
139
  }
139
140
  }
140
- _dumpToStdio(test, chunk, stream) {
141
+ _dumpToStdio(test, chunk, stream, stdio) {
141
142
  if (this.config.quiet)
142
143
  return;
143
144
  const text = chunk.toString("utf-8");
144
145
  this._updateLineCountAndNewLineFlagForOutput(text);
145
- stream.write(chunk);
146
+ if (this._prefixStdio)
147
+ stream.write(`[${stdio}] ${chunk}`);
148
+ else
149
+ stream.write(chunk);
146
150
  }
147
151
  onTestEnd(test, result) {
148
152
  super.onTestEnd(test, result);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright",
3
- "version": "1.56.0-alpha-1758818034000",
3
+ "version": "1.56.0-alpha-1758839353000",
4
4
  "description": "A high-level API to automate web browsers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "license": "Apache-2.0",
66
66
  "dependencies": {
67
- "playwright-core": "1.56.0-alpha-1758818034000"
67
+ "playwright-core": "1.56.0-alpha-1758839353000"
68
68
  },
69
69
  "optionalDependencies": {
70
70
  "fsevents": "2.3.2"