@metaphi-ai/hum 0.2.34 → 0.2.35
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 -7
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -89459,7 +89459,7 @@ var init_install = __esm({
|
|
|
89459
89459
|
"src/install.js"() {
|
|
89460
89460
|
init_define_HUM_CORE_SUBS();
|
|
89461
89461
|
win = process.platform === "win32";
|
|
89462
|
-
MINE = true ? "0.2.
|
|
89462
|
+
MINE = true ? "0.2.35" : "";
|
|
89463
89463
|
npmFix = (version = "") => `npm i -g @metaphi-ai/hum@${version || "latest"} --foreground-scripts`;
|
|
89464
89464
|
NPM_FIX = npmFix("latest");
|
|
89465
89465
|
humHome = (env3 = process.env) => env3.HUM_HOME || path.join(os3.homedir(), ".hum");
|
|
@@ -89805,10 +89805,10 @@ function clientEnv() {
|
|
|
89805
89805
|
platform: process.platform,
|
|
89806
89806
|
arch: process.arch,
|
|
89807
89807
|
terminal: process.env.TERM_PROGRAM || (process.env.WT_SESSION ? "Windows Terminal" : process.env.TERM || ""),
|
|
89808
|
-
tui: true ? "0.2.
|
|
89808
|
+
tui: true ? "0.2.35" : ""
|
|
89809
89809
|
};
|
|
89810
89810
|
}
|
|
89811
|
-
function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.2.
|
|
89811
|
+
function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.2.35" : "" } = {}) {
|
|
89812
89812
|
const refused = failures.find((f) => f.error && f.error.code !== "ENOENT");
|
|
89813
89813
|
const fix = npm ? npmFix(version) : updateCommand({ kind: "native" }, platform2);
|
|
89814
89814
|
if (!refused) {
|
|
@@ -91323,7 +91323,7 @@ var after = (ms, fn) => {
|
|
|
91323
91323
|
|
|
91324
91324
|
// src/app.jsx
|
|
91325
91325
|
var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
|
|
91326
|
-
var MINE2 = true ? "0.2.
|
|
91326
|
+
var MINE2 = true ? "0.2.35" : "";
|
|
91327
91327
|
var fmtDur = (s) => s < 60 ? `${Math.max(1, Math.round(s))}s` : `${Math.floor(s / 60)}m ${Math.round(s % 60)}s`;
|
|
91328
91328
|
var plural = (n, w) => `${n} ${w}${n === 1 ? "" : "s"}`;
|
|
91329
91329
|
var shortSession = (name) => (name || "").replace(/\.jsonl$/, "");
|
|
@@ -91495,8 +91495,8 @@ var serverLine = (s) => s.state === "connected" ? `connected \xB7 ${s.tools.le
|
|
|
91495
91495
|
var serverActions = (s) => [
|
|
91496
91496
|
{ do: "tools", label: "show tools" },
|
|
91497
91497
|
...s.state === "waiting for trust" ? [] : [
|
|
91498
|
-
...s.url
|
|
91499
|
-
...s.url && s.
|
|
91498
|
+
...s.url ? [{ do: "login", label: s.state === "connected" && s.kept ? "sign in again" : "sign in" }] : [],
|
|
91499
|
+
...s.url && s.kept ? [{ do: "logout", label: "sign out" }] : [],
|
|
91500
91500
|
{ do: "reconnect", label: "reconnect" }
|
|
91501
91501
|
]
|
|
91502
91502
|
];
|
|
@@ -93798,7 +93798,7 @@ init_install();
|
|
|
93798
93798
|
await init_theme();
|
|
93799
93799
|
var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
|
|
93800
93800
|
import { spawnSync as spawnSync6 } from "node:child_process";
|
|
93801
|
-
var MINE3 = true ? "0.2.
|
|
93801
|
+
var MINE3 = true ? "0.2.35" : "0.0.0";
|
|
93802
93802
|
var layout = installLayout();
|
|
93803
93803
|
function completeInstall() {
|
|
93804
93804
|
if (layout.kind !== "npm" || !needsInstall(MINE3)) return;
|