@metaphi-ai/hum 0.1.14 → 0.1.16
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 +4 -15
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -83590,18 +83590,6 @@ function bannerLines(ev, homeRel2 = (p) => p) {
|
|
|
83590
83590
|
const agents = ev.agents_model ? ` \xB7 agents on ${ev.agents_model}` : "";
|
|
83591
83591
|
return [`hum ${ev.version || ""}`.trim() + state, `${ev.model || ""}${agents}${ev.user ? ` \xB7 ${ev.user}` : ""}`, where];
|
|
83592
83592
|
}
|
|
83593
|
-
function mcpLines(ev) {
|
|
83594
|
-
const servers = ev && ev.mcp || [];
|
|
83595
|
-
if (servers.length === 0) {
|
|
83596
|
-
return ["no MCP servers in this session \u2014 add one to ~/.hum/config.toml ([[mcp]] with a name and a url or a command); the ones your deployment provides arrive when you sign in"];
|
|
83597
|
-
}
|
|
83598
|
-
return servers.map((s) => {
|
|
83599
|
-
const at = s.url || s.command || "";
|
|
83600
|
-
if (s.error) return `${s.name} \xB7 ${at} \xB7 not mounted \u2014 ${s.error}`;
|
|
83601
|
-
const n = (s.tools || []).length;
|
|
83602
|
-
return `${s.name} \xB7 ${at} \xB7 ${n} tool${n === 1 ? "" : "s"}${n ? `: ${s.tools.join(", ")}` : ""}`;
|
|
83603
|
-
});
|
|
83604
|
-
}
|
|
83605
83593
|
|
|
83606
83594
|
// src/update.js
|
|
83607
83595
|
import fs2 from "node:fs";
|
|
@@ -84271,7 +84259,7 @@ function App2({ engine: engine2, task, resume, images = [] }) {
|
|
|
84271
84259
|
(0, import_react24.useEffect)(() => {
|
|
84272
84260
|
if (!hello) return void 0;
|
|
84273
84261
|
let live = true;
|
|
84274
|
-
updateNotice(true ? "0.1.
|
|
84262
|
+
updateNotice(true ? "0.1.16" : hello.version || "0.0.0").then((line) => {
|
|
84275
84263
|
if (live && line) append({ kind: "info", text: line });
|
|
84276
84264
|
}).catch(() => {
|
|
84277
84265
|
});
|
|
@@ -84422,7 +84410,8 @@ function App2({ engine: engine2, task, resume, images = [] }) {
|
|
|
84422
84410
|
append({ kind: "info", text: `${(hello?.tools || []).join(", ")} \xB7 sandbox: ${hello?.sandbox || "none"}` });
|
|
84423
84411
|
break;
|
|
84424
84412
|
case "/mcp":
|
|
84425
|
-
|
|
84413
|
+
if (hello?.mcp === void 0) append({ kind: "warn", text: "this engine does not say what is mounted; update hum (/stop, then hum)" });
|
|
84414
|
+
else engine2.send({ cmd: "mcp" });
|
|
84426
84415
|
break;
|
|
84427
84416
|
case "/hooks":
|
|
84428
84417
|
engine2.send({ cmd: "hooks" });
|
|
@@ -84976,7 +84965,7 @@ import { spawnSync as spawnSync3 } from "node:child_process";
|
|
|
84976
84965
|
var ENGINE_COMMANDS = /* @__PURE__ */ new Set(["run", "login", "logout", "whoami", "model", "key", "sessions", "show", "sync", "skill", "ps", "stop", "hooks", "engine"]);
|
|
84977
84966
|
var argv0 = process.argv.slice(2);
|
|
84978
84967
|
if (argv0[0] === "--version" || argv0[0] === "-V") {
|
|
84979
|
-
process.stdout.write(`hum ${true ? "0.1.
|
|
84968
|
+
process.stdout.write(`hum ${true ? "0.1.16" : "0.0.0"}
|
|
84980
84969
|
`);
|
|
84981
84970
|
process.exit(0);
|
|
84982
84971
|
}
|