hypeframe 0.6.0 → 0.6.1

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 -14
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -609,7 +609,7 @@ import path7 from "node:path";
609
609
  // package.json
610
610
  var package_default = {
611
611
  name: "hypeframe",
612
- version: "0.6.0",
612
+ version: "0.6.1",
613
613
  description: "Local engine for HypeFrame Web: code clips, video renders and AI agents run on your own machine; the web is just the view.",
614
614
  keywords: [
615
615
  "hypeframe",
@@ -736,18 +736,16 @@ function onPath(name) {
736
736
 
737
737
  // src/agent/linux.ts
738
738
  var DISTRO = "ubuntu";
739
- var prefix = () => process.env.PREFIX || "/data/data/com.termux/files/usr";
740
739
  function linuxDir() {
741
740
  const d = path4.join(dataDir(), "linux");
742
741
  fs7.mkdirSync(path4.join(d, "bin"), { recursive: true });
743
742
  return d;
744
743
  }
745
- var rootfs = () => path4.join(prefix(), "var", "lib", "proot-distro", "installed-rootfs", DISTRO);
746
744
  var readyFile = () => path4.join(linuxDir(), "siap");
747
745
  var openFile = () => path4.join(linuxDir(), "buka-url");
748
746
  var bridgeScript = () => path4.join(linuxDir(), "bin", "hf-mcp-bridge");
749
747
  function linuxReady() {
750
- return !!onPath("proot-distro") && fs7.existsSync(path4.join(rootfs(), "usr", "bin", "env")) && fs7.existsSync(readyFile());
748
+ return !!onPath("proot-distro") && fs7.existsSync(readyFile());
751
749
  }
752
750
  var shQuote = (s) => `'${String(s).replace(/'/g, `'\\''`)}'`;
753
751
  var VAR = /^[A-Za-z_][A-Za-z0-9_]*$/;
@@ -802,10 +800,10 @@ printf '%s\\n' "$1" >> "${openFile()}"
802
800
  fs7.writeFileSync(path4.join(bin, n), open, { mode: 493 });
803
801
  fs7.writeFileSync(bridgeScript(), BRIDGE_SH, { mode: 493 });
804
802
  }
803
+ var runShown = (cmd, args) => spawnSync2(cmd, args, { stdio: ["ignore", "inherit", "inherit"], env: { ...process.env, DEBIAN_FRONTEND: "noninteractive" } }).status === 0;
805
804
  function prepareLinux(say = () => {
806
805
  return;
807
- }) {
808
- const run = (cmd, args) => spawnSync2(cmd, args, { stdio: ["ignore", "inherit", "inherit"], env: { ...process.env, DEBIAN_FRONTEND: "noninteractive" } }).status === 0;
806
+ }, run = runShown) {
809
807
  writeHelpers();
810
808
  if (linuxReady())
811
809
  return;
@@ -815,14 +813,14 @@ function prepareLinux(say = () => {
815
813
  if (!run("pkg", ["install", "-y", "proot-distro"]))
816
814
  throw new Error("pkg install proot-distro");
817
815
  }
818
- if (!fs7.existsSync(path4.join(rootfs(), "usr", "bin", "env"))) {
816
+ const exists = () => run(...linuxCommand("/bin/true", []));
817
+ if (!exists()) {
819
818
  say("linux.distro");
820
- if (!run("proot-distro", ["install", DISTRO]))
819
+ if (!run("proot-distro", ["install", DISTRO]) && !exists())
821
820
  throw new Error(`proot-distro install ${DISTRO}`);
822
821
  }
823
822
  say("linux.apt");
824
- const [cmd, args] = linuxCommand("/bin/sh", ["-c", "apt-get update -q && DEBIAN_FRONTEND=noninteractive apt-get install -y -q ca-certificates curl"]);
825
- if (!run(cmd, args))
823
+ if (!run(...linuxCommand("/bin/sh", ["-c", "apt-get update -q && DEBIAN_FRONTEND=noninteractive apt-get install -y -q ca-certificates curl"])))
826
824
  throw new Error("apt-get install ca-certificates curl");
827
825
  fs7.writeFileSync(readyFile(), `${DISTRO}
828
826
  `);
@@ -3565,10 +3563,8 @@ var findFile = (dir, name) => {
3565
3563
  async function installInLinux(a, id, progress, steps, arch) {
3566
3564
  steps.prepare();
3567
3565
  if (id === "antigravity-acp") {
3568
- if (!steps.run("curl -fsSL https://antigravity.google/cli/install.sh | bash"))
3569
- throw new Error("Antigravity: Google's installer did not finish in the Linux mini");
3570
- if (!fs20.existsSync(path16.join(rootfs(), "root", ".local", "bin", "agy")))
3571
- throw new Error("Antigravity: agy was not installed in the Linux mini");
3566
+ if (!steps.run("(test -x /root/.local/bin/agy || curl -fsSL https://antigravity.google/cli/install.sh | bash) && test -x /root/.local/bin/agy"))
3567
+ throw new Error("Antigravity: Google's installer did not finish in the Linux mini, or agy is not at /root/.local/bin/agy");
3572
3568
  return { launch: { cmd: "/root/.local/bin/agy", args: ["acp"], env: {}, linux: true }, version: a.version };
3573
3569
  }
3574
3570
  if (id === "codex-acp") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypeframe",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Local engine for HypeFrame Web: code clips, video renders and AI agents run on your own machine; the web is just the view.",
5
5
  "keywords": [
6
6
  "hypeframe",