@metaphi-ai/hum 0.2.51 → 0.2.52
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 +13 -10
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -38878,7 +38878,7 @@ async function detectTheme({ env: env3 = process.env, stdin = process.stdin, std
|
|
|
38878
38878
|
if (!stdin.isTTY || !stdout.isTTY) return "dark";
|
|
38879
38879
|
return await probeBackground({ stdin, stdout, timeout }) || "dark";
|
|
38880
38880
|
}
|
|
38881
|
-
var import_react34, ACCENT_DARK, ON_LIGHT, shade, onGround, light, ACCENT, setTheme, themeFromEnv, dimText, accentInk, accentText, parseBackground;
|
|
38881
|
+
var import_react34, ACCENT_DARK, GOLD_DARK, ON_LIGHT, shade, onGround, light, ACCENT, GOLD, setTheme, themeFromEnv, dimText, accentInk, accentText, parseBackground;
|
|
38882
38882
|
var init_theme = __esm({
|
|
38883
38883
|
async "src/theme.js"() {
|
|
38884
38884
|
init_define_HUM_CORE_SUBS();
|
|
@@ -38886,18 +38886,21 @@ var init_theme = __esm({
|
|
|
38886
38886
|
await init_build2();
|
|
38887
38887
|
init_source();
|
|
38888
38888
|
ACCENT_DARK = "#56B6C2";
|
|
38889
|
-
|
|
38889
|
+
GOLD_DARK = "#DFA46A";
|
|
38890
|
+
ON_LIGHT = { accent: ["#0B6E78", 23], cyan: ["#0E7490", 24], yellow: ["#92400E", 94], gold: ["#8A5A1F", 94] };
|
|
38890
38891
|
shade = (name) => {
|
|
38891
38892
|
const pair = ON_LIGHT[name];
|
|
38892
38893
|
if (!pair) return name;
|
|
38893
|
-
return source_default.level >= 3 ? pair[0] : source_default.level === 2 ? `ansi256(${pair[1]})` : name === "accent" ? pair[0] : name;
|
|
38894
|
+
return source_default.level >= 3 ? pair[0] : source_default.level === 2 ? `ansi256(${pair[1]})` : name === "accent" || name === "gold" ? pair[0] : name;
|
|
38894
38895
|
};
|
|
38895
38896
|
onGround = (color) => light && (color === "cyan" || color === "yellow") ? shade(color) : color;
|
|
38896
38897
|
light = false;
|
|
38897
38898
|
ACCENT = ACCENT_DARK;
|
|
38899
|
+
GOLD = GOLD_DARK;
|
|
38898
38900
|
setTheme = (name) => {
|
|
38899
38901
|
light = name === "light";
|
|
38900
38902
|
ACCENT = light ? shade("accent") : ACCENT_DARK;
|
|
38903
|
+
GOLD = light ? shade("gold") : GOLD_DARK;
|
|
38901
38904
|
};
|
|
38902
38905
|
themeFromEnv = (env3 = process.env) => {
|
|
38903
38906
|
const v = String(env3.HUM_THEME || "").trim().toLowerCase();
|
|
@@ -89508,7 +89511,7 @@ var init_install = __esm({
|
|
|
89508
89511
|
"src/install.js"() {
|
|
89509
89512
|
init_define_HUM_CORE_SUBS();
|
|
89510
89513
|
win = process.platform === "win32";
|
|
89511
|
-
MINE = true ? "0.2.
|
|
89514
|
+
MINE = true ? "0.2.52" : "";
|
|
89512
89515
|
npmFix = (version = "") => `npm i -g @metaphi-ai/hum@${version || "latest"} --foreground-scripts`;
|
|
89513
89516
|
NPM_FIX = npmFix("latest");
|
|
89514
89517
|
humHome = (env3 = process.env) => env3.HUM_HOME || path.join(os3.homedir(), ".hum");
|
|
@@ -89863,10 +89866,10 @@ function clientEnv() {
|
|
|
89863
89866
|
platform: process.platform,
|
|
89864
89867
|
arch: process.arch,
|
|
89865
89868
|
terminal: process.env.TERM_PROGRAM || (process.env.WT_SESSION ? "Windows Terminal" : process.env.TERM || ""),
|
|
89866
|
-
tui: true ? "0.2.
|
|
89869
|
+
tui: true ? "0.2.52" : ""
|
|
89867
89870
|
};
|
|
89868
89871
|
}
|
|
89869
|
-
function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.2.
|
|
89872
|
+
function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.2.52" : "" } = {}) {
|
|
89870
89873
|
const refused = failures.find((f) => f.error && f.error.code !== "ENOENT");
|
|
89871
89874
|
const fix = npm ? npmFix(version) : updateCommand({ kind: "native" }, platform2);
|
|
89872
89875
|
if (!refused) {
|
|
@@ -91381,7 +91384,7 @@ var after = (ms, fn) => {
|
|
|
91381
91384
|
|
|
91382
91385
|
// src/app.jsx
|
|
91383
91386
|
var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
|
|
91384
|
-
var MINE2 = true ? "0.2.
|
|
91387
|
+
var MINE2 = true ? "0.2.52" : "";
|
|
91385
91388
|
var fmtDur = (s) => s < 60 ? `${Math.max(1, Math.round(s))}s` : `${Math.floor(s / 60)}m ${Math.round(s % 60)}s`;
|
|
91386
91389
|
var plural = (n, w) => `${n} ${w}${n === 1 ? "" : "s"}`;
|
|
91387
91390
|
var shortSession = (name) => (name || "").replace(/\.jsonl$/, "");
|
|
@@ -91565,8 +91568,8 @@ function ToolList({ about, tools, indent = 4 }) {
|
|
|
91565
91568
|
const gap = head && last !== null;
|
|
91566
91569
|
last = t.group || last;
|
|
91567
91570
|
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: [
|
|
91568
|
-
gw ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Text2, { color:
|
|
91569
|
-
`${t.name.padEnd(nw)}
|
|
91571
|
+
gw ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Text2, { color: t.featured ? GOLD : void 0, dimColor: !t.featured, children: `${head.padEnd(gw)} ` }) : null,
|
|
91572
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Text2, { color: t.featured ? GOLD : void 0, children: `${t.name.padEnd(nw)} ` }),
|
|
91570
91573
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Text2, { dimColor: true, children: t.summary || "" })
|
|
91571
91574
|
] }) }, t.name);
|
|
91572
91575
|
}) });
|
|
@@ -93996,7 +93999,7 @@ async function sendPending({
|
|
|
93996
93999
|
await init_theme();
|
|
93997
94000
|
var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
|
|
93998
94001
|
import { spawnSync as spawnSync6 } from "node:child_process";
|
|
93999
|
-
var MINE3 = true ? "0.2.
|
|
94002
|
+
var MINE3 = true ? "0.2.52" : "0.0.0";
|
|
94000
94003
|
var layout = installLayout();
|
|
94001
94004
|
function completeInstall() {
|
|
94002
94005
|
if (layout.kind !== "npm" || !needsInstall(MINE3)) return;
|