@supatest/cli 0.0.29 → 0.0.30

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 (2) hide show
  1. package/dist/index.js +10 -10
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -5296,7 +5296,9 @@ function getPlaywrightVersion() {
5296
5296
  try {
5297
5297
  const result = spawnSync("npx", ["playwright", "--version"], {
5298
5298
  encoding: "utf-8",
5299
- stdio: ["ignore", "pipe", "ignore"]
5299
+ stdio: ["ignore", "pipe", "ignore"],
5300
+ shell: true
5301
+ // Required for Windows where npx is npx.cmd
5300
5302
  });
5301
5303
  if (result.status === 0 && result.stdout) {
5302
5304
  return result.stdout.trim().replace("Version ", "");
@@ -5364,7 +5366,9 @@ function installChromium() {
5364
5366
  console.log("");
5365
5367
  try {
5366
5368
  const result = spawnSync("npx", ["playwright", "install", "chromium"], {
5367
- stdio: "inherit"
5369
+ stdio: "inherit",
5370
+ shell: true
5371
+ // Required for Windows where npx is npx.cmd
5368
5372
  });
5369
5373
  if (result.status === 0) {
5370
5374
  return {
@@ -5518,7 +5522,7 @@ var CLI_VERSION;
5518
5522
  var init_version = __esm({
5519
5523
  "src/version.ts"() {
5520
5524
  "use strict";
5521
- CLI_VERSION = "0.0.29";
5525
+ CLI_VERSION = "0.0.30";
5522
5526
  }
5523
5527
  });
5524
5528
 
@@ -6484,9 +6488,6 @@ var init_agent = __esm({
6484
6488
  async run(config2) {
6485
6489
  this.abortController = new AbortController();
6486
6490
  this.presenter.onStart(config2);
6487
- if (config2.providerSessionId) {
6488
- this.presenter.onLog(`Resuming with providerSessionId: ${config2.providerSessionId}`);
6489
- }
6490
6491
  const claudeCodePath = await this.resolveClaudeCodePath();
6491
6492
  let prompt = config2.task;
6492
6493
  if (config2.logs) {
@@ -8544,7 +8545,8 @@ function openBrowser(url) {
8544
8545
  default:
8545
8546
  command = "xdg-open";
8546
8547
  }
8547
- spawn2(command, [url], { detached: true, stdio: "ignore" }).unref();
8548
+ const options = { detached: true, stdio: "ignore", shell: os3 === "win32" };
8549
+ spawn2(command, [url], options).unref();
8548
8550
  }
8549
8551
  function startCallbackServer(port, expectedState) {
8550
8552
  return new Promise((resolve2, reject) => {
@@ -11970,9 +11972,7 @@ var init_interactive = __esm({
11970
11972
  const uiMessages = convertQueriesToUIMessages(queries);
11971
11973
  setSessionId(session.id);
11972
11974
  setContextSessionId(session.id);
11973
- const resumeProviderSessionId = session.providerSessionId || void 0;
11974
- logger.debug(`Resume session: ${session.id}, providerSessionId: ${resumeProviderSessionId || "NOT SET"}`);
11975
- setProviderSessionId(resumeProviderSessionId);
11975
+ setProviderSessionId(session.providerSessionId || void 0);
11976
11976
  const contextData = await apiClient.getSessionContext(session.id);
11977
11977
  if (contextData.contextTokens > 0) {
11978
11978
  const cacheRead = contextData.cacheReadTokens || 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supatest/cli",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "description": "Supatest CLI - AI-powered task automation for CI/CD",
5
5
  "type": "module",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  "access": "public"
39
39
  },
40
40
  "dependencies": {
41
- "@anthropic-ai/claude-agent-sdk": "^0.2.1",
41
+ "@anthropic-ai/claude-agent-sdk": "^0.1.61",
42
42
  "@anthropic-ai/sdk": "^0.71.2",
43
43
  "@types/inquirer": "^9.0.0",
44
44
  "ansi-escapes": "^7.0.0",
@@ -52,7 +52,6 @@
52
52
  "ink-gradient": "^3.0.0",
53
53
  "ink-spinner": "^5.0.0",
54
54
  "inquirer": "^10.0.0",
55
- "latest-version": "^9.0.0",
56
55
  "lowlight": "^3.3.0",
57
56
  "marked": "^15.0.0",
58
57
  "marked-terminal": "^7.3.0",
@@ -60,17 +59,18 @@
60
59
  "patch-package": "^8.0.1",
61
60
  "postinstall-postinstall": "^2.1.0",
62
61
  "react": "^19.0.0",
63
- "semver": "^7.6.0",
64
62
  "string-width": "^8.1.0",
65
63
  "strip-ansi": "^7.1.2",
66
64
  "undici": "^7.16.0",
67
- "wrap-ansi": "^9.0.2"
65
+ "wrap-ansi": "^9.0.2",
66
+ "latest-version": "^9.0.0",
67
+ "semver": "^7.6.0"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@types/node": "^20.12.12",
71
- "@types/react": "^19.0.0",
72
- "@types/semver": "^7.5.8",
73
71
  "dotenv": "^16.6.1",
72
+ "@types/semver": "^7.5.8",
73
+ "@types/react": "^19.0.0",
74
74
  "nodemon": "^3.1.11",
75
75
  "tsup": "^8.5.1",
76
76
  "tsx": "^4.10.0",