@hellix-ai/cubes 0.1.3 → 0.1.4

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/upgrade.js +9 -2
  2. package/package.json +1 -1
package/dist/upgrade.js CHANGED
@@ -37,12 +37,19 @@ export function installerFor(scriptPath) {
37
37
  return "yarn";
38
38
  return "npm";
39
39
  }
40
+ /**
41
+ * ⚠ FORCE A FRESH LOOK AT THE REGISTRY. npm keeps a local copy of a package's version list and trusts
42
+ * it for the registry's `max-age=300`, so within five minutes of any earlier install it does not know a
43
+ * release we just read from `/latest` exists: measured as `ETARGET No matching version found for
44
+ * @hellix-ai/cubes@0.1.3` four minutes after 0.1.3 was published. `--prefer-online` makes npm revalidate
45
+ * that copy; bun's `--no-cache` does the same for its manifest cache. pnpm and yarn revalidate already.
46
+ */
40
47
  export function installCommand(installer, spec) {
41
48
  switch (installer) {
42
49
  case "pnpm": return ["pnpm", "add", "-g", spec];
43
- case "bun": return ["bun", "add", "-g", spec];
50
+ case "bun": return ["bun", "add", "-g", "--no-cache", spec];
44
51
  case "yarn": return ["yarn", "global", "add", spec];
45
- default: return ["npm", "install", "-g", spec];
52
+ default: return ["npm", "install", "-g", "--prefer-online", spec];
46
53
  }
47
54
  }
48
55
  export async function latestVersion(pkg, fetchImpl = fetch) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hellix-ai/cubes",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Attach to your Cubes sessions from your own terminal (Warp, iTerm, Ghostty, anything).",
5
5
  "type": "module",
6
6
  "bin": {