hyperframes 0.6.119 → 0.6.121

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/cli.js CHANGED
@@ -50,7 +50,7 @@ var VERSION;
50
50
  var init_version = __esm({
51
51
  "src/version.ts"() {
52
52
  "use strict";
53
- VERSION = true ? "0.6.119" : "0.0.0-dev";
53
+ VERSION = true ? "0.6.121" : "0.0.0-dev";
54
54
  }
55
55
  });
56
56
 
@@ -45797,6 +45797,19 @@ var init_transcribe = __esm({
45797
45797
  }
45798
45798
  });
45799
45799
 
45800
+ // src/utils/npxCommand.ts
45801
+ function buildNpxCommand(args, platform10 = process.platform) {
45802
+ if (platform10 === "win32") {
45803
+ return { command: "cmd.exe", args: ["/d", "/s", "/c", "npx.cmd", ...args] };
45804
+ }
45805
+ return { command: "npx", args: [...args] };
45806
+ }
45807
+ var init_npxCommand = __esm({
45808
+ "src/utils/npxCommand.ts"() {
45809
+ "use strict";
45810
+ }
45811
+ });
45812
+
45800
45813
  // src/commands/skills.ts
45801
45814
  var skills_exports = {};
45802
45815
  __export(skills_exports, {
@@ -45804,16 +45817,18 @@ __export(skills_exports, {
45804
45817
  });
45805
45818
  import { execFileSync as execFileSync4, spawn as spawn7 } from "child_process";
45806
45819
  function hasNpx() {
45820
+ const npx = buildNpxCommand(["--version"]);
45807
45821
  try {
45808
- execFileSync4("npx", ["--version"], { stdio: "ignore", timeout: 5e3 });
45822
+ execFileSync4(npx.command, npx.args, { stdio: "ignore", timeout: 5e3 });
45809
45823
  return true;
45810
45824
  } catch {
45811
45825
  return false;
45812
45826
  }
45813
45827
  }
45814
45828
  function runSkillsAdd(repo) {
45829
+ const npx = buildNpxCommand(["skills", "add", repo, "--all"]);
45815
45830
  return new Promise((resolve58, reject) => {
45816
- const child = spawn7("npx", ["skills", "add", repo, "--all"], {
45831
+ const child = spawn7(npx.command, npx.args, {
45817
45832
  stdio: "inherit",
45818
45833
  timeout: 12e4,
45819
45834
  // GH #316 — the upstream `skills` CLI shells out to `git clone`.
@@ -45840,6 +45855,7 @@ var init_skills = __esm({
45840
45855
  init_dist();
45841
45856
  init_dist5();
45842
45857
  init_colors();
45858
+ init_npxCommand();
45843
45859
  SOURCES = [{ name: "HyperFrames", repo: "heygen-com/hyperframes" }];
45844
45860
  skills_default = defineCommand({
45845
45861
  meta: {
@@ -102984,7 +103000,8 @@ async function runLocalStudioMode(dir, options) {
102984
103000
  ge(c.bold("hyperframes preview") + c.dim(" (local studio)"));
102985
103001
  const s2 = ft();
102986
103002
  s2.start("Starting studio...");
102987
- const child = spawn12("npx", ["vite"], {
103003
+ const viteCommand = buildNpxCommand(["vite"]);
103004
+ const child = spawn12(viteCommand.command, viteCommand.args, {
102988
103005
  cwd: studioPkgPath,
102989
103006
  stdio: ["ignore", "pipe", "pipe"]
102990
103007
  });
@@ -103166,6 +103183,7 @@ var init_preview2 = __esm({
103166
103183
  init_dist5();
103167
103184
  init_colors();
103168
103185
  init_env();
103186
+ init_npxCommand();
103169
103187
  init_openBrowser();
103170
103188
  init_lintProject();
103171
103189
  init_lintFormat();