create-rstack 1.9.1 → 1.9.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.
package/dist/index.js CHANGED
@@ -9,6 +9,7 @@ import node_tty from "node:tty";
9
9
  import node_os from "node:os";
10
10
  import { createRequire } from "node:module";
11
11
  import { spawn } from "node:child_process";
12
+ import { pipeline } from "node:stream/promises";
12
13
  import { PassThrough } from "node:stream";
13
14
  import { createRequire as __rspack_createRequire } from "node:module";
14
15
  const __rspack_createRequire_require = __rspack_createRequire(import.meta.url);
@@ -50,7 +51,7 @@ __webpack_require__.m = __webpack_modules__;
50
51
  __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
51
52
  })();
52
53
  __webpack_require__.add({
53
- "./node_modules/.pnpm/@vercel+detect-agent@1.2.1/node_modules/@vercel/detect-agent/dist/index.js" (module, __unused_rspack_exports, __webpack_require__) {
54
+ "./node_modules/.pnpm/@vercel+detect-agent@1.2.2/node_modules/@vercel/detect-agent/dist/index.js" (module, __unused_rspack_exports, __webpack_require__) {
54
55
  var __defProp = Object.defineProperty;
55
56
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
56
57
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -80,7 +81,7 @@ __webpack_require__.add({
80
81
  });
81
82
  module.exports = __toCommonJS(src_exports);
82
83
  var import_promises = __webpack_require__("node:fs/promises");
83
- var import_node_fs = __webpack_require__("node:fs?31c0");
84
+ var import_node_fs = __webpack_require__("node:fs?9592");
84
85
  const DEVIN_LOCAL_PATH = "/opt/.devin";
85
86
  const CURSOR = "cursor";
86
87
  const CURSOR_CLI = "cursor-cli";
@@ -133,7 +134,7 @@ __webpack_require__.add({
133
134
  name: CURSOR
134
135
  }
135
136
  };
136
- if (process.env.CURSOR_AGENT) return {
137
+ if (process.env.CURSOR_AGENT || "agent-exec" === process.env.CURSOR_EXTENSION_HOST_ROLE) return {
137
138
  isAgent: true,
138
139
  agent: {
139
140
  name: CURSOR_CLI
@@ -526,7 +527,7 @@ __webpack_require__.add({
526
527
  beep
527
528
  };
528
529
  },
529
- "node:fs?31c0" (module) {
530
+ "node:fs?9592" (module) {
530
531
  module.exports = __rspack_createRequire_require("node:fs");
531
532
  },
532
533
  "node:fs/promises" (module) {
@@ -2301,18 +2302,18 @@ let createLogger = (options = {})=>{
2301
2302
  return logger;
2302
2303
  };
2303
2304
  let src_logger = createLogger();
2304
- var main_l = (e, t)=>()=>(t || e((t = {
2305
+ var main_d = (e, t)=>()=>(t || e((t = {
2305
2306
  exports: {}
2306
2307
  }).exports, t), t.exports);
2307
- var main_u = /* @__PURE__ */ createRequire(import.meta.url);
2308
- const main_d = /^path$/i;
2309
- const main_f = {
2308
+ var main_f = /* @__PURE__ */ createRequire(import.meta.url);
2309
+ const main_p = /^path$/i;
2310
+ const main_m = {
2310
2311
  key: "PATH",
2311
2312
  value: ""
2312
2313
  };
2313
- function main_p(e) {
2314
+ function main_h(e) {
2314
2315
  for(const t in e){
2315
- if (!Object.prototype.hasOwnProperty.call(e, t) || !main_d.test(t)) continue;
2316
+ if (!Object.prototype.hasOwnProperty.call(e, t) || !main_p.test(t)) continue;
2316
2317
  const n = e[t];
2317
2318
  if (!n) break;
2318
2319
  return {
@@ -2320,51 +2321,49 @@ function main_p(e) {
2320
2321
  value: n
2321
2322
  };
2322
2323
  }
2323
- return main_f;
2324
+ return main_m;
2324
2325
  }
2325
- function main_m(e, t) {
2326
- const i = t.value.split(delimiter);
2327
- const o = [];
2326
+ function main_g(e, t) {
2327
+ const n = t.value.split(delimiter);
2328
+ const a = [];
2328
2329
  let s = e;
2329
2330
  let c;
2330
2331
  do {
2331
- o.push(resolve(s, "node_modules", ".bin"));
2332
+ a.push(resolve(s, "node_modules", ".bin"));
2332
2333
  c = s;
2333
2334
  s = dirname(s);
2334
2335
  }while (s !== c);
2335
- const l = o.concat(i).join(delimiter);
2336
+ a.push(dirname(process.execPath));
2337
+ const l = a.concat(n).join(delimiter);
2336
2338
  return {
2337
2339
  key: t.key,
2338
2340
  value: l
2339
2341
  };
2340
2342
  }
2341
- function main_h(e, t) {
2343
+ function main_(e, t) {
2342
2344
  const n = {
2343
2345
  ...process.env,
2344
2346
  ...t
2345
2347
  };
2346
- const r = main_m(e, main_p(n));
2348
+ const r = main_g(e, main_h(n));
2347
2349
  n[r.key] = r.value;
2348
2350
  return n;
2349
2351
  }
2350
- const main_g = (e)=>{
2352
+ const main_v = (e)=>{
2351
2353
  let t = e.length;
2352
2354
  const n = new PassThrough();
2353
2355
  const r = ()=>{
2354
- if (0 === --t) n.emit("end");
2356
+ if (0 === --t) n.end();
2355
2357
  };
2356
- for (const t of e){
2357
- t.pipe(n, {
2358
- end: false
2359
- });
2360
- t.on("end", r);
2361
- }
2358
+ for (const t of e)pipeline(t, n, {
2359
+ end: false
2360
+ }).then(r).catch(r);
2362
2361
  return n;
2363
2362
  };
2364
- var main_ = /* @__PURE__ */ main_l((e, t)=>{
2363
+ var main_y = /* @__PURE__ */ main_d((e, t)=>{
2365
2364
  t.exports = a;
2366
2365
  a.sync = o;
2367
- var n = main_u("fs");
2366
+ var n = main_f("fs");
2368
2367
  function r(e, t) {
2369
2368
  var n = void 0 !== t.pathExt ? t.pathExt : process.env.PATHEXT;
2370
2369
  if (!n) return true;
@@ -2389,10 +2388,10 @@ var main_ = /* @__PURE__ */ main_l((e, t)=>{
2389
2388
  return i(n.statSync(e), e, t);
2390
2389
  }
2391
2390
  });
2392
- var main_v = /* @__PURE__ */ main_l((e, t)=>{
2391
+ var main_b = /* @__PURE__ */ main_d((e, t)=>{
2393
2392
  t.exports = r;
2394
2393
  r.sync = i;
2395
- var n = main_u("fs");
2394
+ var n = main_f("fs");
2396
2395
  function r(e, t, r) {
2397
2396
  n.stat(e, function(e, n) {
2398
2397
  r(e, e ? false : a(n, t));
@@ -2417,10 +2416,10 @@ var main_v = /* @__PURE__ */ main_l((e, t)=>{
2417
2416
  return n & l || n & c && i === o || n & s && r === a || n & u && 0 === a;
2418
2417
  }
2419
2418
  });
2420
- var main_y = /* @__PURE__ */ main_l((e, t)=>{
2421
- main_u("fs");
2419
+ var main_x = /* @__PURE__ */ main_d((e, t)=>{
2420
+ main_f("fs");
2422
2421
  var n;
2423
- n = "win32" === process.platform || global.TESTING_WINDOWS ? main_() : main_v();
2422
+ n = "win32" === process.platform || global.TESTING_WINDOWS ? main_y() : main_b();
2424
2423
  t.exports = r;
2425
2424
  r.sync = i;
2426
2425
  function r(e, t, i) {
@@ -2456,11 +2455,11 @@ var main_y = /* @__PURE__ */ main_l((e, t)=>{
2456
2455
  }
2457
2456
  }
2458
2457
  });
2459
- var main_b = /* @__PURE__ */ main_l((e, t)=>{
2458
+ var main_S = /* @__PURE__ */ main_d((e, t)=>{
2460
2459
  const n = "win32" === process.platform || "cygwin" === process.env.OSTYPE || "msys" === process.env.OSTYPE;
2461
- const r = main_u("path");
2460
+ const r = main_f("path");
2462
2461
  const i = n ? ";" : ":";
2463
- const a = main_y();
2462
+ const a = main_x();
2464
2463
  const o = (e)=>Object.assign(/* @__PURE__ */ new Error(`not found: ${e}`), {
2465
2464
  code: "ENOENT"
2466
2465
  });
@@ -2541,7 +2540,7 @@ var main_b = /* @__PURE__ */ main_l((e, t)=>{
2541
2540
  t.exports = c;
2542
2541
  c.sync = l;
2543
2542
  });
2544
- var main_x = /* @__PURE__ */ main_l((e, t)=>{
2543
+ var main_C = /* @__PURE__ */ main_d((e, t)=>{
2545
2544
  const n = (e = {})=>{
2546
2545
  const t = e.env || process.env;
2547
2546
  if ("win32" !== (e.platform || process.platform)) return "PATH";
@@ -2550,10 +2549,10 @@ var main_x = /* @__PURE__ */ main_l((e, t)=>{
2550
2549
  t.exports = n;
2551
2550
  t.exports.default = n;
2552
2551
  });
2553
- var main_S = /* @__PURE__ */ main_l((e, t)=>{
2554
- const n = main_u("path");
2555
- const r = main_b();
2556
- const i = main_x();
2552
+ var main_w = /* @__PURE__ */ main_d((e, t)=>{
2553
+ const n = main_f("path");
2554
+ const r = main_S();
2555
+ const i = main_C();
2557
2556
  function a(e, t) {
2558
2557
  const a = e.options.env || process.env;
2559
2558
  const o = process.cwd();
@@ -2581,7 +2580,7 @@ var main_S = /* @__PURE__ */ main_l((e, t)=>{
2581
2580
  }
2582
2581
  t.exports = o;
2583
2582
  });
2584
- var main_C = /* @__PURE__ */ main_l((e, t)=>{
2583
+ var main_T = /* @__PURE__ */ main_d((e, t)=>{
2585
2584
  const n = /([()\][%!^"`<>&|;, *?])/g;
2586
2585
  function r(e) {
2587
2586
  e = e.replace(n, "^$1");
@@ -2599,11 +2598,11 @@ var main_C = /* @__PURE__ */ main_l((e, t)=>{
2599
2598
  t.exports.command = r;
2600
2599
  t.exports.argument = i;
2601
2600
  });
2602
- var main_w = /* @__PURE__ */ main_l((e, t)=>{
2601
+ var main_E = /* @__PURE__ */ main_d((e, t)=>{
2603
2602
  t.exports = /^#!(.*)/;
2604
2603
  });
2605
- var main_T = /* @__PURE__ */ main_l((e, t)=>{
2606
- const n = main_w();
2604
+ var main_D = /* @__PURE__ */ main_d((e, t)=>{
2605
+ const n = main_E();
2607
2606
  t.exports = (e = "")=>{
2608
2607
  const t = e.match(n);
2609
2608
  if (!t) return null;
@@ -2613,9 +2612,9 @@ var main_T = /* @__PURE__ */ main_l((e, t)=>{
2613
2612
  return i ? `${a} ${i}` : a;
2614
2613
  };
2615
2614
  });
2616
- var main_E = /* @__PURE__ */ main_l((e, t)=>{
2617
- const n = main_u("fs");
2618
- const r = main_T();
2615
+ var main_O = /* @__PURE__ */ main_d((e, t)=>{
2616
+ const n = main_f("fs");
2617
+ const r = main_D();
2619
2618
  function i(e) {
2620
2619
  const t = 150;
2621
2620
  const i = Buffer.alloc(t);
@@ -2629,11 +2628,11 @@ var main_E = /* @__PURE__ */ main_l((e, t)=>{
2629
2628
  }
2630
2629
  t.exports = i;
2631
2630
  });
2632
- var main_D = /* @__PURE__ */ main_l((e, t)=>{
2633
- const n = main_u("path");
2634
- const r = main_S();
2635
- const i = main_C();
2636
- const a = main_E();
2631
+ var main_k = /* @__PURE__ */ main_d((e, t)=>{
2632
+ const n = main_f("path");
2633
+ const r = main_w();
2634
+ const i = main_T();
2635
+ const a = main_O();
2637
2636
  const o = "win32" === process.platform;
2638
2637
  const s = /\.(?:com|exe)$/i;
2639
2638
  const c = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
@@ -2647,7 +2646,7 @@ var main_D = /* @__PURE__ */ main_l((e, t)=>{
2647
2646
  }
2648
2647
  return e.file;
2649
2648
  }
2650
- function d(e) {
2649
+ function u(e) {
2651
2650
  if (!o) return e;
2652
2651
  const t = l(e);
2653
2652
  const r = !s.test(t);
@@ -2669,7 +2668,7 @@ var main_D = /* @__PURE__ */ main_l((e, t)=>{
2669
2668
  }
2670
2669
  return e;
2671
2670
  }
2672
- function f(e, t, n) {
2671
+ function d(e, t, n) {
2673
2672
  if (t && !Array.isArray(t)) {
2674
2673
  n = t;
2675
2674
  t = null;
@@ -2686,11 +2685,11 @@ var main_D = /* @__PURE__ */ main_l((e, t)=>{
2686
2685
  args: t
2687
2686
  }
2688
2687
  };
2689
- return n.shell ? r : d(r);
2688
+ return n.shell ? r : u(r);
2690
2689
  }
2691
- t.exports = f;
2690
+ t.exports = d;
2692
2691
  });
2693
- var main_O = /* @__PURE__ */ main_l((e, t)=>{
2692
+ var main_A = /* @__PURE__ */ main_d((e, t)=>{
2694
2693
  const n = "win32" === process.platform;
2695
2694
  function r(e, t) {
2696
2695
  return Object.assign(/* @__PURE__ */ new Error(`${t} ${e.command} ENOENT`), {
@@ -2727,10 +2726,10 @@ var main_O = /* @__PURE__ */ main_l((e, t)=>{
2727
2726
  notFoundError: r
2728
2727
  };
2729
2728
  });
2730
- var main_k = /* @__PURE__ */ main_l((e, t)=>{
2731
- const n = main_u("child_process");
2732
- const r = main_D();
2733
- const i = main_O();
2729
+ var main_j = /* @__PURE__ */ main_d((e, t)=>{
2730
+ const n = main_f("child_process");
2731
+ const r = main_k();
2732
+ const i = main_A();
2734
2733
  function a(e, t, a) {
2735
2734
  const o = r(e, t, a);
2736
2735
  const s = n.spawn(o.command, o.args, o.options);
@@ -2749,10 +2748,8 @@ var main_k = /* @__PURE__ */ main_l((e, t)=>{
2749
2748
  t.exports._parse = r;
2750
2749
  t.exports._enoent = i;
2751
2750
  });
2752
- var main_A = main_k();
2753
- var main_j = class extends Error {
2754
- result;
2755
- output;
2751
+ var main_M = main_j();
2752
+ var main_N = class extends Error {
2756
2753
  get exitCode() {
2757
2754
  if (null !== this.result.exitCode) return this.result.exitCode;
2758
2755
  }
@@ -2762,20 +2759,20 @@ var main_j = class extends Error {
2762
2759
  this.output = t;
2763
2760
  }
2764
2761
  };
2765
- const main_M = {
2762
+ const main_F = {
2766
2763
  timeout: void 0,
2767
2764
  persist: false
2768
2765
  };
2769
- const main_N = {
2766
+ const main_L = {
2770
2767
  windowsHide: true
2771
2768
  };
2772
- function P(e, t) {
2769
+ function main_R(e, t) {
2773
2770
  return {
2774
2771
  command: external_node_path_normalize(e),
2775
2772
  args: t ?? []
2776
2773
  };
2777
2774
  }
2778
- function main_F(e) {
2775
+ function main_z(e) {
2779
2776
  const t = new AbortController();
2780
2777
  for (const n of e){
2781
2778
  if (n.aborted) {
@@ -2791,12 +2788,14 @@ function main_F(e) {
2791
2788
  }
2792
2789
  return t.signal;
2793
2790
  }
2794
- async function main_I(e) {
2791
+ async function main_B(e) {
2795
2792
  let t = "";
2796
- for await (const n of e)t += n.toString();
2793
+ try {
2794
+ for await (const n of e)t += n.toString();
2795
+ } catch {}
2797
2796
  return t;
2798
2797
  }
2799
- var main_L = class {
2798
+ var main_V = class {
2800
2799
  _process;
2801
2800
  _aborted = false;
2802
2801
  _options;
@@ -2816,7 +2815,7 @@ var main_L = class {
2816
2815
  }
2817
2816
  constructor(e, t, n){
2818
2817
  this._options = {
2819
- ...main_M,
2818
+ ...main_F,
2820
2819
  ...n
2821
2820
  };
2822
2821
  this._command = e;
@@ -2835,7 +2834,7 @@ var main_L = class {
2835
2834
  return this._process?.killed === true;
2836
2835
  }
2837
2836
  pipe(e, t, n) {
2838
- return main_z(e, t, {
2837
+ return main_W(e, t, {
2839
2838
  ...n,
2840
2839
  stdin: this
2841
2840
  });
@@ -2846,7 +2845,7 @@ var main_L = class {
2846
2845
  const t = [];
2847
2846
  if (this._streamErr) t.push(this._streamErr);
2848
2847
  if (this._streamOut) t.push(this._streamOut);
2849
- const n = main_g(t);
2848
+ const n = main_v(t);
2850
2849
  const r = node_readline.createInterface({
2851
2850
  input: n
2852
2851
  });
@@ -2854,26 +2853,27 @@ var main_L = class {
2854
2853
  await this._processClosed;
2855
2854
  e.removeAllListeners();
2856
2855
  if (this._thrownError) throw this._thrownError;
2857
- if (this._options?.throwOnError && 0 !== this.exitCode && void 0 !== this.exitCode) throw new main_j(this);
2856
+ if (this._options?.throwOnError && 0 !== this.exitCode && void 0 !== this.exitCode) throw new main_N(this);
2858
2857
  }
2859
2858
  async _waitForOutput() {
2860
2859
  const e = this._process;
2861
2860
  if (!e) throw new Error("No process was started");
2862
2861
  const [t, n] = await Promise.all([
2863
- this._streamOut ? main_I(this._streamOut) : "",
2864
- this._streamErr ? main_I(this._streamErr) : ""
2862
+ this._streamOut ? main_B(this._streamOut) : "",
2863
+ this._streamErr ? main_B(this._streamErr) : ""
2865
2864
  ]);
2866
2865
  await this._processClosed;
2867
- if (this._options?.stdin) await this._options.stdin;
2866
+ const { stdin: r } = this._options;
2867
+ if (r && "string" != typeof r) await r;
2868
2868
  e.removeAllListeners();
2869
2869
  if (this._thrownError) throw this._thrownError;
2870
- const r = {
2870
+ const i = {
2871
2871
  stderr: n,
2872
2872
  stdout: t,
2873
2873
  exitCode: this.exitCode
2874
2874
  };
2875
- if (this._options.throwOnError && 0 !== this.exitCode && void 0 !== this.exitCode) throw new main_j(this, r);
2876
- return r;
2875
+ if (this._options.throwOnError && 0 !== this.exitCode && void 0 !== this.exitCode) throw new main_N(this, i);
2876
+ return i;
2877
2877
  }
2878
2878
  then(e, t) {
2879
2879
  return this._waitForOutput().then(e, t);
@@ -2884,7 +2884,7 @@ var main_L = class {
2884
2884
  const e = external_node_process_cwd();
2885
2885
  const n = this._options;
2886
2886
  const r = {
2887
- ...main_N,
2887
+ ...main_L,
2888
2888
  ...n.nodeOptions
2889
2889
  };
2890
2890
  const i = [];
@@ -2892,19 +2892,20 @@ var main_L = class {
2892
2892
  if (void 0 !== n.timeout) i.push(AbortSignal.timeout(n.timeout));
2893
2893
  if (void 0 !== n.signal) i.push(n.signal);
2894
2894
  if (true === n.persist) r.detached = true;
2895
- if (i.length > 0) r.signal = main_F(i);
2896
- r.env = main_h(e, r.env);
2897
- const { command: a, args: s } = P(this._command, this._args);
2898
- const c = (0, main_A._parse)(a, s, r);
2895
+ if (i.length > 0) r.signal = main_z(i);
2896
+ r.env = main_(e, r.env);
2897
+ const { command: a, args: o } = main_R(this._command, this._args);
2898
+ const c = (0, main_M._parse)(a, o, r);
2899
2899
  const l = spawn(c.command, c.args, c.options);
2900
2900
  if (l.stderr) this._streamErr = l.stderr;
2901
2901
  if (l.stdout) this._streamOut = l.stdout;
2902
2902
  this._process = l;
2903
2903
  l.once("error", this._onError);
2904
2904
  l.once("close", this._onClose);
2905
- if (void 0 !== n.stdin && l.stdin && n.stdin.process) {
2906
- const { stdout: e } = n.stdin.process;
2907
- if (e) e.pipe(l.stdin);
2905
+ if (l.stdin) {
2906
+ const { stdin: e } = n;
2907
+ if ("string" == typeof e) l.stdin.end(e);
2908
+ else e?.process?.stdout?.pipe(l.stdin);
2908
2909
  }
2909
2910
  }
2910
2911
  _resetState() {
@@ -2925,13 +2926,13 @@ var main_L = class {
2925
2926
  if (this._resolveClose) this._resolveClose();
2926
2927
  };
2927
2928
  };
2928
- const main_R = (e, t, n)=>{
2929
- const r = new main_L(e, t, n);
2929
+ const main_U = (e, t, n)=>{
2930
+ const r = new main_V(e, t, n);
2930
2931
  r.spawn();
2931
2932
  return r;
2932
2933
  };
2933
- const main_z = main_R;
2934
- const dist_0 = __webpack_require__("./node_modules/.pnpm/@vercel+detect-agent@1.2.1/node_modules/@vercel/detect-agent/dist/index.js");
2934
+ const main_W = main_U;
2935
+ const dist_0 = __webpack_require__("./node_modules/.pnpm/@vercel+detect-agent@1.2.2/node_modules/@vercel/detect-agent/dist/index.js");
2935
2936
  const cjs = __webpack_require__("./node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js");
2936
2937
  var cjs_default = /*#__PURE__*/ __webpack_require__.n(cjs);
2937
2938
  const minimist = __webpack_require__("./node_modules/.pnpm/minimist@1.2.8/node_modules/minimist/index.js");
@@ -3118,7 +3119,7 @@ async function runCommand(command, cwd, packageManager) {
3118
3119
  if (replacement) command = command.replace('npm create ', replacement).replace(' -- --', ' --');
3119
3120
  if ('yarn' === packageManager) command = command.replace('@latest', '');
3120
3121
  }
3121
- const result = await main_R(command, [], {
3122
+ const result = await main_U(command, [], {
3122
3123
  nodeOptions: {
3123
3124
  shell: true,
3124
3125
  stdio: 'inherit',
@@ -3133,25 +3134,31 @@ async function runCommand(command, cwd, packageManager) {
3133
3134
  throw new Error(`Failed to run command: ${command}${details ? `\n${details}` : ''}`);
3134
3135
  }
3135
3136
  }
3136
- async function runSkillCommand(skill, cwd) {
3137
+ async function runSkillCommand(skills, cwd) {
3138
+ const [firstSkill] = skills;
3139
+ const installArgs = skills.flatMap((skill)=>[
3140
+ '--skill',
3141
+ skill.skill ?? skill.value
3142
+ ]);
3137
3143
  const args = [
3138
3144
  '-y',
3139
3145
  'skills',
3140
3146
  'add',
3141
- skill.source,
3147
+ firstSkill.source,
3142
3148
  '--agent',
3143
3149
  'universal',
3144
3150
  '--yes',
3145
3151
  '--copy',
3146
- '--skill',
3147
- skill.skill ?? skill.value
3152
+ ...installArgs
3148
3153
  ];
3149
3154
  const command = `npx ${args.join(' ')}`;
3150
3155
  dist_O.info(`Running skill install command: ${color.dim(command)}`);
3156
+ const skillLabel = skills.map((skill)=>skill.value).join(', ');
3157
+ const skillNoun = 1 === skills.length ? 'skill' : 'skills';
3151
3158
  const installationTaskLog = Gt({
3152
- title: `Installing skill ${skill.value}`
3159
+ title: `Installing ${skillNoun} ${skillLabel}`
3153
3160
  });
3154
- const proc = main_R('npx', args, {
3161
+ const proc = main_U('npx', args, {
3155
3162
  nodeOptions: {
3156
3163
  cwd,
3157
3164
  stdio: 'pipe'
@@ -3160,11 +3167,12 @@ async function runSkillCommand(skill, cwd) {
3160
3167
  for await (const line of proc)installationTaskLog.message(line);
3161
3168
  const result = await proc;
3162
3169
  if (0 !== result.exitCode) {
3163
- const message = `Failed to install skill "${skill.value}" from "${skill.source}" using command: ${command}`;
3170
+ const quotedSkillLabel = skills.map((skill)=>`"${skill.value}"`).join(', ');
3171
+ const message = `Failed to install ${skillNoun} ${quotedSkillLabel} from "${firstSkill.source}" using command: ${command}`;
3164
3172
  installationTaskLog.error(message);
3165
3173
  throw new Error(message);
3166
3174
  }
3167
- installationTaskLog.success(`Installed skill ${skill.value}`);
3175
+ installationTaskLog.success(`Installed ${skillNoun} ${skillLabel}`);
3168
3176
  }
3169
3177
  async function create({ name, root, templates, skipFiles, getTemplateName, mapESLintTemplate, version, noteInformation, extraTools, extraSkills, argv: processArgv = process.argv }) {
3170
3178
  src_logger.greet(`\n◆ Create ${upperFirst(name)} Project`);
@@ -3232,10 +3240,22 @@ async function create({ name, root, templates, skipFiles, getTemplateName, mapES
3232
3240
  templateParameters,
3233
3241
  skipFiles
3234
3242
  });
3243
+ const skillsByValue = new Map((filteredExtraSkills ?? []).map((extraSkill)=>[
3244
+ extraSkill.value,
3245
+ extraSkill
3246
+ ]));
3247
+ let currentSkillBatch = [];
3235
3248
  for (const skillValue of skills){
3236
- const matchedSkill = filteredExtraSkills?.find((extraSkill)=>extraSkill.value === skillValue);
3237
- if (matchedSkill) await runSkillCommand(matchedSkill, distFolder);
3249
+ const matchedSkill = skillsByValue.get(skillValue);
3250
+ if (matchedSkill) {
3251
+ if (currentSkillBatch.length > 0 && currentSkillBatch[0].source !== matchedSkill.source) {
3252
+ await runSkillCommand(currentSkillBatch, distFolder);
3253
+ currentSkillBatch = [];
3254
+ }
3255
+ currentSkillBatch.push(matchedSkill);
3256
+ }
3238
3257
  }
3258
+ if (currentSkillBatch.length > 0) await runSkillCommand(currentSkillBatch, distFolder);
3239
3259
  const packageRoot = node_path.resolve(src_dirname, '..');
3240
3260
  const agentsMdSearchDirs = [
3241
3261
  commonFolder,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rstack",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "Create a new Rstack project",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,22 +40,22 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@clack/prompts": "^1.2.0",
43
- "@microsoft/api-extractor": "^7.58.1",
44
- "@rslib/core": "0.20.3",
45
- "@rslint/core": "^0.3.4",
46
- "@rstest/core": "0.9.6",
43
+ "@microsoft/api-extractor": "^7.58.2",
44
+ "@rslib/core": "0.21.0",
45
+ "@rslint/core": "^0.4.1",
46
+ "@rstest/core": "0.9.7",
47
47
  "@types/fs-extra": "^11.0.4",
48
48
  "@types/minimist": "^1.2.5",
49
49
  "@types/node": "24.12.2",
50
- "@vercel/detect-agent": "^1.2.1",
50
+ "@vercel/detect-agent": "^1.2.2",
51
51
  "deepmerge": "^4.3.1",
52
52
  "fs-extra": "^11.3.4",
53
53
  "minimist": "^1.2.8",
54
- "prettier": "^3.8.1",
54
+ "prettier": "^3.8.2",
55
55
  "rimraf": "^6.1.3",
56
56
  "rslog": "^2.1.1",
57
57
  "simple-git-hooks": "^2.13.1",
58
- "tinyexec": "^1.0.4",
58
+ "tinyexec": "^1.1.1",
59
59
  "typescript": "^6.0.2"
60
60
  },
61
61
  "engines": {
@@ -7,6 +7,6 @@
7
7
  "format": "biome format --write"
8
8
  },
9
9
  "devDependencies": {
10
- "@biomejs/biome": "2.4.10"
10
+ "@biomejs/biome": "2.4.11"
11
11
  }
12
12
  }
@@ -10,6 +10,6 @@
10
10
  "eslint": "^9.39.4",
11
11
  "eslint-plugin-react-hooks": "^7.0.1",
12
12
  "eslint-plugin-react-refresh": "^0.5.2",
13
- "globals": "^17.4.0"
13
+ "globals": "^17.5.0"
14
14
  }
15
15
  }
@@ -10,7 +10,7 @@
10
10
  "eslint": "^9.39.4",
11
11
  "eslint-plugin-react-hooks": "^7.0.1",
12
12
  "eslint-plugin-react-refresh": "^0.5.2",
13
- "globals": "^17.4.0",
14
- "typescript-eslint": "^8.58.0"
13
+ "globals": "^17.5.0",
14
+ "typescript-eslint": "^8.58.1"
15
15
  }
16
16
  }
@@ -9,6 +9,6 @@
9
9
  "@eslint/js": "^9.39.4",
10
10
  "eslint": "^9.39.4",
11
11
  "eslint-plugin-svelte": "^3.17.0",
12
- "globals": "^17.4.0"
12
+ "globals": "^17.5.0"
13
13
  }
14
14
  }
@@ -9,8 +9,8 @@
9
9
  "@eslint/js": "^9.39.4",
10
10
  "eslint": "^9.39.4",
11
11
  "eslint-plugin-svelte": "^3.17.0",
12
- "globals": "^17.4.0",
13
- "typescript-eslint": "^8.58.0"
12
+ "globals": "^17.5.0",
13
+ "typescript-eslint": "^8.58.1"
14
14
  },
15
15
  "type": "module"
16
16
  }
@@ -8,6 +8,6 @@
8
8
  "devDependencies": {
9
9
  "@eslint/js": "^9.39.4",
10
10
  "eslint": "^9.39.4",
11
- "globals": "^17.4.0"
11
+ "globals": "^17.5.0"
12
12
  }
13
13
  }
@@ -8,7 +8,7 @@
8
8
  "devDependencies": {
9
9
  "@eslint/js": "^9.39.4",
10
10
  "eslint": "^9.39.4",
11
- "globals": "^17.4.0",
12
- "typescript-eslint": "^8.58.0"
11
+ "globals": "^17.5.0",
12
+ "typescript-eslint": "^8.58.1"
13
13
  }
14
14
  }
@@ -9,6 +9,6 @@
9
9
  "@eslint/js": "^9.39.4",
10
10
  "eslint": "^9.39.4",
11
11
  "eslint-plugin-vue": "^10.8.0",
12
- "globals": "^17.4.0"
12
+ "globals": "^17.5.0"
13
13
  }
14
14
  }
@@ -9,7 +9,7 @@
9
9
  "@vue/eslint-config-typescript": "^14.7.0",
10
10
  "eslint": "^9.39.4",
11
11
  "eslint-plugin-vue": "^10.8.0",
12
- "globals": "^17.4.0",
13
- "typescript-eslint": "^8.58.0"
12
+ "globals": "^17.5.0",
13
+ "typescript-eslint": "^8.58.1"
14
14
  }
15
15
  }
@@ -6,6 +6,6 @@
6
6
  "format": "prettier --write ."
7
7
  },
8
8
  "devDependencies": {
9
- "prettier": "^3.8.1"
9
+ "prettier": "^3.8.2"
10
10
  }
11
11
  }