@metaphi-ai/hum 0.1.73 → 0.1.74
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
|
@@ -83410,8 +83410,8 @@ function updateNotice(mine, { running = "", latest = "", env: env3 = process.env
|
|
|
83410
83410
|
if (readState(env3).version === latest) return `hum ${latest} is still installing in the background (${path2.join(humHome2(env3), "update.log")} has the details)`;
|
|
83411
83411
|
return "";
|
|
83412
83412
|
}
|
|
83413
|
-
function watchReady(latest, onReady, { env: env3 = process.env, layout: layout2 = installLayout(process.execPath, env3), every = 15e3, ready = readyVersion } = {}) {
|
|
83414
|
-
if (!latest || env3.HUM_NO_UPDATE_CHECK || env3.HUM_NO_AUTO_UPDATE || layout2.kind === "python") return () => {
|
|
83413
|
+
function watchReady(mine, latest, onReady, { env: env3 = process.env, layout: layout2 = installLayout(process.execPath, env3), every = 15e3, ready = readyVersion } = {}) {
|
|
83414
|
+
if (!mine || !latest || !newer(latest, mine) || env3.HUM_NO_UPDATE_CHECK || env3.HUM_NO_AUTO_UPDATE || layout2.kind === "python") return () => {
|
|
83415
83415
|
};
|
|
83416
83416
|
if (ready(layout2, latest)) {
|
|
83417
83417
|
onReady(latest, true);
|
|
@@ -83580,7 +83580,7 @@ function runningVersion(candidates = engineCandidates(), opts = {}) {
|
|
|
83580
83580
|
}
|
|
83581
83581
|
return null;
|
|
83582
83582
|
}
|
|
83583
|
-
function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.1.
|
|
83583
|
+
function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.1.74" : "" } = {}) {
|
|
83584
83584
|
const refused = failures.find((f) => f.error && f.error.code !== "ENOENT");
|
|
83585
83585
|
const fix = npm ? npmFix(version) : updateCommand({ kind: "native" }, platform2);
|
|
83586
83586
|
if (!refused) {
|
|
@@ -85599,7 +85599,7 @@ var input_default = MultilineInput;
|
|
|
85599
85599
|
|
|
85600
85600
|
// src/app.jsx
|
|
85601
85601
|
var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
|
|
85602
|
-
var MINE = true ? "0.1.
|
|
85602
|
+
var MINE = true ? "0.1.74" : "";
|
|
85603
85603
|
var fmtDur = (s) => s < 60 ? `${Math.max(1, Math.round(s))}s` : `${Math.floor(s / 60)}m ${Math.round(s % 60)}s`;
|
|
85604
85604
|
var plural = (n, w) => `${n} ${w}${n === 1 ? "" : "s"}`;
|
|
85605
85605
|
var firstResp = (e) => e.first_response_s ? ` \xB7 first response ${e.first_response_s.toFixed(1)}s` : "";
|
|
@@ -86333,7 +86333,7 @@ function App2({ engine: engine2, task, resume, images = [], peek = peekSession,
|
|
|
86333
86333
|
noticedRef.current = line;
|
|
86334
86334
|
append({ kind: "info", text: line });
|
|
86335
86335
|
}
|
|
86336
|
-
return watch(want, (v, already) => {
|
|
86336
|
+
return watch(mine, want, (v, already) => {
|
|
86337
86337
|
setReady(v);
|
|
86338
86338
|
if (!already) append({ kind: "info", text: `hum ${v} is ready \xB7 restart hum to use it` });
|
|
86339
86339
|
});
|
|
@@ -87356,7 +87356,7 @@ init_update();
|
|
|
87356
87356
|
init_install();
|
|
87357
87357
|
var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1);
|
|
87358
87358
|
import { spawnSync as spawnSync5 } from "node:child_process";
|
|
87359
|
-
var MINE2 = true ? "0.1.
|
|
87359
|
+
var MINE2 = true ? "0.1.74" : "0.0.0";
|
|
87360
87360
|
var layout = installLayout();
|
|
87361
87361
|
function completeInstall() {
|
|
87362
87362
|
if (layout.kind !== "npm" || !needsInstall(MINE2)) return;
|