@metaphi-ai/hum 0.1.58 → 0.1.59
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 +7 -4
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -83558,6 +83558,9 @@ function engineCandidates(env3 = process.env) {
|
|
|
83558
83558
|
out.push({ bin: path3.join(os5.homedir(), ".local", "bin", win3 ? "hum-engine.exe" : "hum-engine"), args: [], where: "uv's bin dir" });
|
|
83559
83559
|
return out;
|
|
83560
83560
|
}
|
|
83561
|
+
function wantsPlain(argv, env3 = process.env) {
|
|
83562
|
+
return argv.includes("--plain") || !!env3.HUM_PLAIN;
|
|
83563
|
+
}
|
|
83561
83564
|
function engineCommand(argv, candidates = engineCandidates()) {
|
|
83562
83565
|
for (const c of candidates) {
|
|
83563
83566
|
if (c.args[c.args.length - 1] !== "engine") continue;
|
|
@@ -83586,7 +83589,7 @@ function runningVersion(candidates = engineCandidates(), opts = {}) {
|
|
|
83586
83589
|
}
|
|
83587
83590
|
return null;
|
|
83588
83591
|
}
|
|
83589
|
-
function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.1.
|
|
83592
|
+
function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.1.59" : "" } = {}) {
|
|
83590
83593
|
const refused = failures.find((f) => f.error && f.error.code !== "ENOENT");
|
|
83591
83594
|
const fix = npm ? npmFix(version) : updateCommand({ kind: "native" }, platform2);
|
|
83592
83595
|
if (!refused) {
|
|
@@ -85565,7 +85568,7 @@ var input_default = MultilineInput;
|
|
|
85565
85568
|
|
|
85566
85569
|
// src/app.jsx
|
|
85567
85570
|
var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
|
|
85568
|
-
var MINE = true ? "0.1.
|
|
85571
|
+
var MINE = true ? "0.1.59" : "";
|
|
85569
85572
|
var fmtDur = (s) => s < 60 ? `${Math.max(1, Math.round(s))}s` : `${Math.floor(s / 60)}m ${Math.round(s % 60)}s`;
|
|
85570
85573
|
var plural = (n, w) => `${n} ${w}${n === 1 ? "" : "s"}`;
|
|
85571
85574
|
var firstResp = (e) => e.first_response_s ? ` \xB7 first response ${e.first_response_s.toFixed(1)}s` : "";
|
|
@@ -87245,7 +87248,7 @@ init_update();
|
|
|
87245
87248
|
init_install();
|
|
87246
87249
|
var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1);
|
|
87247
87250
|
import { spawnSync as spawnSync5 } from "node:child_process";
|
|
87248
|
-
var MINE2 = true ? "0.1.
|
|
87251
|
+
var MINE2 = true ? "0.1.59" : "0.0.0";
|
|
87249
87252
|
var layout = installLayout();
|
|
87250
87253
|
function completeInstall() {
|
|
87251
87254
|
if (layout.kind !== "npm" || !needsInstall(MINE2)) return;
|
|
@@ -87273,7 +87276,7 @@ if (argv0[0] === "doctor") {
|
|
|
87273
87276
|
const { doctor: doctor2 } = await Promise.resolve().then(() => (init_doctor(), doctor_exports));
|
|
87274
87277
|
process.exit(await doctor2({ json: argv0.includes("--json"), mine: MINE2, layout }));
|
|
87275
87278
|
}
|
|
87276
|
-
if (ENGINE_COMMANDS.has(argv0[0]) || argv0[0] === "agents" && argv0.includes("--json")) {
|
|
87279
|
+
if (ENGINE_COMMANDS.has(argv0[0]) || argv0[0] === "agents" && argv0.includes("--json") || wantsPlain(argv0)) {
|
|
87277
87280
|
completeInstall();
|
|
87278
87281
|
const cmd = engineCommand(argv0);
|
|
87279
87282
|
if (!cmd) {
|