@metaphi-ai/hum 0.2.49 → 0.2.50
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 -6
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -89508,7 +89508,7 @@ var init_install = __esm({
|
|
|
89508
89508
|
"src/install.js"() {
|
|
89509
89509
|
init_define_HUM_CORE_SUBS();
|
|
89510
89510
|
win = process.platform === "win32";
|
|
89511
|
-
MINE = true ? "0.2.
|
|
89511
|
+
MINE = true ? "0.2.50" : "";
|
|
89512
89512
|
npmFix = (version = "") => `npm i -g @metaphi-ai/hum@${version || "latest"} --foreground-scripts`;
|
|
89513
89513
|
NPM_FIX = npmFix("latest");
|
|
89514
89514
|
humHome = (env3 = process.env) => env3.HUM_HOME || path.join(os3.homedir(), ".hum");
|
|
@@ -89863,10 +89863,10 @@ function clientEnv() {
|
|
|
89863
89863
|
platform: process.platform,
|
|
89864
89864
|
arch: process.arch,
|
|
89865
89865
|
terminal: process.env.TERM_PROGRAM || (process.env.WT_SESSION ? "Windows Terminal" : process.env.TERM || ""),
|
|
89866
|
-
tui: true ? "0.2.
|
|
89866
|
+
tui: true ? "0.2.50" : ""
|
|
89867
89867
|
};
|
|
89868
89868
|
}
|
|
89869
|
-
function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.2.
|
|
89869
|
+
function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.2.50" : "" } = {}) {
|
|
89870
89870
|
const refused = failures.find((f) => f.error && f.error.code !== "ENOENT");
|
|
89871
89871
|
const fix = npm ? npmFix(version) : updateCommand({ kind: "native" }, platform2);
|
|
89872
89872
|
if (!refused) {
|
|
@@ -91381,7 +91381,7 @@ var after = (ms, fn) => {
|
|
|
91381
91381
|
|
|
91382
91382
|
// src/app.jsx
|
|
91383
91383
|
var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
|
|
91384
|
-
var MINE2 = true ? "0.2.
|
|
91384
|
+
var MINE2 = true ? "0.2.50" : "";
|
|
91385
91385
|
var fmtDur = (s) => s < 60 ? `${Math.max(1, Math.round(s))}s` : `${Math.floor(s / 60)}m ${Math.round(s % 60)}s`;
|
|
91386
91386
|
var plural = (n, w) => `${n} ${w}${n === 1 ? "" : "s"}`;
|
|
91387
91387
|
var shortSession = (name) => (name || "").replace(/\.jsonl$/, "");
|
|
@@ -91562,8 +91562,9 @@ function ToolList({ about, tools, indent = 4 }) {
|
|
|
91562
91562
|
let last = null;
|
|
91563
91563
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Box2, { flexDirection: "column", paddingLeft: indent, children: about.map((t) => {
|
|
91564
91564
|
const head = t.group && t.group !== last ? t.group : "";
|
|
91565
|
+
const gap = head && last !== null;
|
|
91565
91566
|
last = t.group || last;
|
|
91566
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Box2, { width, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Text2, { wrap: "truncate-end", children: [
|
|
91567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Box2, { width, marginTop: gap ? 1 : 0, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Text2, { wrap: "truncate-end", children: [
|
|
91567
91568
|
gw ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Text2, { color: ACCENT, children: `${head.padEnd(gw)} ` }) : null,
|
|
91568
91569
|
`${t.name.padEnd(nw)} `,
|
|
91569
91570
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Text2, { dimColor: true, children: t.summary || "" })
|
|
@@ -93995,7 +93996,7 @@ async function sendPending({
|
|
|
93995
93996
|
await init_theme();
|
|
93996
93997
|
var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
|
|
93997
93998
|
import { spawnSync as spawnSync6 } from "node:child_process";
|
|
93998
|
-
var MINE3 = true ? "0.2.
|
|
93999
|
+
var MINE3 = true ? "0.2.50" : "0.0.0";
|
|
93999
94000
|
var layout = installLayout();
|
|
94000
94001
|
function completeInstall() {
|
|
94001
94002
|
if (layout.kind !== "npm" || !needsInstall(MINE3)) return;
|