@metaphi-ai/hum 0.2.12 → 0.2.13
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.mjs +6 -6
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -88634,7 +88634,7 @@ var win, MINE, npmFix, NPM_FIX, humHome, versionsDir, versionDir, pkgDir, coreDi
|
|
|
88634
88634
|
var init_install = __esm({
|
|
88635
88635
|
"src/install.js"() {
|
|
88636
88636
|
win = process.platform === "win32";
|
|
88637
|
-
MINE = true ? "0.2.
|
|
88637
|
+
MINE = true ? "0.2.13" : "";
|
|
88638
88638
|
npmFix = (version = "") => `npm i -g @metaphi-ai/hum@${version || "latest"} --foreground-scripts`;
|
|
88639
88639
|
NPM_FIX = npmFix("latest");
|
|
88640
88640
|
humHome = (env3 = process.env) => env3.HUM_HOME || path.join(os3.homedir(), ".hum");
|
|
@@ -88835,7 +88835,7 @@ var init_update = __esm({
|
|
|
88835
88835
|
"src/update.js"() {
|
|
88836
88836
|
init_install();
|
|
88837
88837
|
init_install();
|
|
88838
|
-
dist = (env3 = process.env) => (env3.HUM_DIST || "https://
|
|
88838
|
+
dist = (env3 = process.env) => (env3.HUM_DIST || "https://hum.metaphi.ai").replace(/\/+$/, "");
|
|
88839
88839
|
humHome2 = (env3 = process.env) => env3.HUM_HOME || path2.join(os4.homedir(), ".hum");
|
|
88840
88840
|
win2 = () => process.platform === "win32";
|
|
88841
88841
|
updateCommand = (layout2 = installLayout(), platform2 = process.platform) => {
|
|
@@ -88970,10 +88970,10 @@ function clientEnv() {
|
|
|
88970
88970
|
platform: process.platform,
|
|
88971
88971
|
arch: process.arch,
|
|
88972
88972
|
terminal: process.env.TERM_PROGRAM || (process.env.WT_SESSION ? "Windows Terminal" : process.env.TERM || ""),
|
|
88973
|
-
tui: true ? "0.2.
|
|
88973
|
+
tui: true ? "0.2.13" : ""
|
|
88974
88974
|
};
|
|
88975
88975
|
}
|
|
88976
|
-
function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.2.
|
|
88976
|
+
function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.2.13" : "" } = {}) {
|
|
88977
88977
|
const refused = failures.find((f) => f.error && f.error.code !== "ENOENT");
|
|
88978
88978
|
const fix = npm ? npmFix(version) : updateCommand({ kind: "native" }, platform2);
|
|
88979
88979
|
if (!refused) {
|
|
@@ -90431,7 +90431,7 @@ var input_default = MultilineInput;
|
|
|
90431
90431
|
|
|
90432
90432
|
// src/app.jsx
|
|
90433
90433
|
var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
|
|
90434
|
-
var MINE2 = true ? "0.2.
|
|
90434
|
+
var MINE2 = true ? "0.2.13" : "";
|
|
90435
90435
|
var fmtDur = (s) => s < 60 ? `${Math.max(1, Math.round(s))}s` : `${Math.floor(s / 60)}m ${Math.round(s % 60)}s`;
|
|
90436
90436
|
var plural = (n, w) => `${n} ${w}${n === 1 ? "" : "s"}`;
|
|
90437
90437
|
var firstResp = (e) => e.first_response_s ? ` \xB7 first response ${e.first_response_s.toFixed(1)}s` : "";
|
|
@@ -92256,7 +92256,7 @@ init_update();
|
|
|
92256
92256
|
init_install();
|
|
92257
92257
|
var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1);
|
|
92258
92258
|
import { spawnSync as spawnSync5 } from "node:child_process";
|
|
92259
|
-
var MINE3 = true ? "0.2.
|
|
92259
|
+
var MINE3 = true ? "0.2.13" : "0.0.0";
|
|
92260
92260
|
var layout = installLayout();
|
|
92261
92261
|
function completeInstall() {
|
|
92262
92262
|
if (layout.kind !== "npm" || !needsInstall(MINE3)) return;
|