@wix/create-app 0.0.241 → 0.0.243

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/bin/index.cjs CHANGED
@@ -30,6 +30,28 @@
30
30
  }
31
31
  })();
32
32
 
33
+ /**
34
+ * Opt non-interactive stdout into Ink's static render path.
35
+ *
36
+ * When stdout is not a TTY (piped to a file, captured by an AI agent, or
37
+ * otherwise redirected), Ink's animated spinner is emitted as a stream of ANSI
38
+ * cursor-control redraw frames, which piles up as thousands of near-identical
39
+ * lines in the captured output. Ink already renders statically (finalized
40
+ * lines only, no redraws) when it detects CI, so we opt into that same path.
41
+ *
42
+ * Real CI is untouched (`CI` is already set), and an explicit `CI=false` is
43
+ * respected, since Ink honors it.
44
+ *
45
+ * This has to live in the bin script rather than in `src`: Ink reads
46
+ * `process.env.CI` once at module-initialization time, and ESM evaluates every
47
+ * static import before any statement in the importing module's body. Inside
48
+ * the bundle there is no way to guarantee we run first once esbuild splits Ink
49
+ * into a shared chunk. This file is never bundled, so it always does.
50
+ */
51
+ if (process.env.CI === undefined && process.stdout.isTTY !== true) {
52
+ process.env.CI = 'true';
53
+ }
54
+
33
55
  process.setSourceMapsEnabled(true);
34
56
 
35
57
  require('./import.cjs');
package/build/index.js CHANGED
@@ -31097,6 +31097,7 @@ var require_dist4 = __commonJS({
31097
31097
  var OPENCODE = "opencode";
31098
31098
  var GITHUB_COPILOT = "github-copilot";
31099
31099
  var GITHUB_COPILOT_CLI = "github-copilot-cli";
31100
+ var V0 = "v0";
31100
31101
  var KNOWN_AGENTS = {
31101
31102
  CURSOR,
31102
31103
  CURSOR_CLI,
@@ -31109,7 +31110,8 @@ var require_dist4 = __commonJS({
31109
31110
  ANTIGRAVITY,
31110
31111
  AUGMENT_CLI,
31111
31112
  OPENCODE,
31112
- GITHUB_COPILOT
31113
+ GITHUB_COPILOT,
31114
+ V0
31113
31115
  };
31114
31116
  async function determineAgent2() {
31115
31117
  if (process.env.AI_AGENT) {
@@ -31121,6 +31123,12 @@ var require_dist4 = __commonJS({
31121
31123
  agent: { name: GITHUB_COPILOT }
31122
31124
  };
31123
31125
  }
31126
+ if (name === V0) {
31127
+ return {
31128
+ isAgent: true,
31129
+ agent: { name: V0 }
31130
+ };
31131
+ }
31124
31132
  return {
31125
31133
  isAgent: true,
31126
31134
  agent: { name }
@@ -31130,7 +31138,7 @@ var require_dist4 = __commonJS({
31130
31138
  if (process.env.CURSOR_TRACE_ID) {
31131
31139
  return { isAgent: true, agent: { name: CURSOR } };
31132
31140
  }
31133
- if (process.env.CURSOR_AGENT) {
31141
+ if (process.env.CURSOR_AGENT || process.env.CURSOR_EXTENSION_HOST_ROLE === "agent-exec") {
31134
31142
  return { isAgent: true, agent: { name: CURSOR_CLI } };
31135
31143
  }
31136
31144
  if (process.env.GEMINI_CLI) {
@@ -36386,7 +36394,7 @@ init_esm_shims();
36386
36394
  // ../../node_modules/ink/build/render-node-to-output.js
36387
36395
  init_esm_shims();
36388
36396
 
36389
- // ../../node_modules/ink/node_modules/indent-string/index.js
36397
+ // ../../node_modules/indent-string/index.js
36390
36398
  init_esm_shims();
36391
36399
  function indentString(string, count = 1, options = {}) {
36392
36400
  const {
@@ -56796,7 +56804,7 @@ init_esm_shims();
56796
56804
  var package_default = {
56797
56805
  name: "@wix/create-app",
56798
56806
  description: "Create Wix apps",
56799
- version: "0.0.241",
56807
+ version: "0.0.243",
56800
56808
  author: "Ihor Machuzhak",
56801
56809
  bin: "bin/index.cjs",
56802
56810
  devDependencies: {
@@ -56806,7 +56814,7 @@ var package_default = {
56806
56814
  "@types/react": "^18.3.3",
56807
56815
  "@types/semver": "^7.5.8",
56808
56816
  "@types/validate-npm-package-name": "^4.0.2",
56809
- "@vercel/detect-agent": "^1.2.1",
56817
+ "@vercel/detect-agent": "^1.2.3",
56810
56818
  "@wix/bi-logger-dev-tools-data": "^1.169.0",
56811
56819
  "@wix/cli-auth": "workspace:*",
56812
56820
  "@wix/cli-error": "workspace:*",