@wix/create-new 0.0.102 → 0.0.104

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
@@ -29,6 +29,28 @@
29
29
  }
30
30
  })();
31
31
 
32
+ /**
33
+ * Opt non-interactive stdout into Ink's static render path.
34
+ *
35
+ * When stdout is not a TTY (piped to a file, captured by an AI agent, or
36
+ * otherwise redirected), Ink's animated spinner is emitted as a stream of ANSI
37
+ * cursor-control redraw frames, which piles up as thousands of near-identical
38
+ * lines in the captured output. Ink already renders statically (finalized
39
+ * lines only, no redraws) when it detects CI, so we opt into that same path.
40
+ *
41
+ * Real CI is untouched (`CI` is already set), and an explicit `CI=false` is
42
+ * respected, since Ink honors it.
43
+ *
44
+ * This has to live in the bin script rather than in `src`: Ink reads
45
+ * `process.env.CI` once at module-initialization time, and ESM evaluates every
46
+ * static import before any statement in the importing module's body. Inside
47
+ * the bundle there is no way to guarantee we run first once esbuild splits Ink
48
+ * into a shared chunk. This file is never bundled, so it always does.
49
+ */
50
+ if (process.env.CI === undefined && process.stdout.isTTY !== true) {
51
+ process.env.CI = 'true';
52
+ }
53
+
32
54
  process.setSourceMapsEnabled(true);
33
55
 
34
56
  require('./import.cjs');
package/build/index.js CHANGED
@@ -47946,6 +47946,7 @@ var require_dist4 = __commonJS({
47946
47946
  var OPENCODE = "opencode";
47947
47947
  var GITHUB_COPILOT = "github-copilot";
47948
47948
  var GITHUB_COPILOT_CLI = "github-copilot-cli";
47949
+ var V0 = "v0";
47949
47950
  var KNOWN_AGENTS = {
47950
47951
  CURSOR,
47951
47952
  CURSOR_CLI,
@@ -47958,7 +47959,8 @@ var require_dist4 = __commonJS({
47958
47959
  ANTIGRAVITY,
47959
47960
  AUGMENT_CLI,
47960
47961
  OPENCODE,
47961
- GITHUB_COPILOT
47962
+ GITHUB_COPILOT,
47963
+ V0
47962
47964
  };
47963
47965
  async function determineAgent2() {
47964
47966
  if (process.env.AI_AGENT) {
@@ -47970,6 +47972,12 @@ var require_dist4 = __commonJS({
47970
47972
  agent: { name: GITHUB_COPILOT }
47971
47973
  };
47972
47974
  }
47975
+ if (name === V0) {
47976
+ return {
47977
+ isAgent: true,
47978
+ agent: { name: V0 }
47979
+ };
47980
+ }
47973
47981
  return {
47974
47982
  isAgent: true,
47975
47983
  agent: { name }
@@ -47979,7 +47987,7 @@ var require_dist4 = __commonJS({
47979
47987
  if (process.env.CURSOR_TRACE_ID) {
47980
47988
  return { isAgent: true, agent: { name: CURSOR } };
47981
47989
  }
47982
- if (process.env.CURSOR_AGENT) {
47990
+ if (process.env.CURSOR_AGENT || process.env.CURSOR_EXTENSION_HOST_ROLE === "agent-exec") {
47983
47991
  return { isAgent: true, agent: { name: CURSOR_CLI } };
47984
47992
  }
47985
47993
  if (process.env.GEMINI_CLI) {
@@ -52629,7 +52637,7 @@ init_esm_shims();
52629
52637
  // ../../node_modules/ink/build/render-node-to-output.js
52630
52638
  init_esm_shims();
52631
52639
 
52632
- // ../../node_modules/ink/node_modules/indent-string/index.js
52640
+ // ../../node_modules/indent-string/index.js
52633
52641
  init_esm_shims();
52634
52642
  function indentString(string, count = 1, options = {}) {
52635
52643
  const {
@@ -95295,11 +95303,11 @@ import { randomUUID as randomUUID3 } from "node:crypto";
95295
95303
  var package_default = {
95296
95304
  name: "@wix/create-new",
95297
95305
  description: "General entry point for creating Wix projects",
95298
- version: "0.0.102",
95306
+ version: "0.0.104",
95299
95307
  bin: "bin/index.cjs",
95300
95308
  devDependencies: {
95301
95309
  "@commander-js/extra-typings": "^13.0.0",
95302
- "@vercel/detect-agent": "^1.2.1",
95310
+ "@vercel/detect-agent": "^1.2.3",
95303
95311
  "@wix/app-command": "workspace:*",
95304
95312
  "@wix/cli-auth": "workspace:*",
95305
95313
  "@wix/cli-error-reporting": "workspace:*",