@metaphi-ai/hum 0.1.40 → 0.1.42
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 +8 -8
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -75861,7 +75861,7 @@ function runningVersion(candidates = engineCandidates(), opts = {}) {
|
|
|
75861
75861
|
}
|
|
75862
75862
|
return null;
|
|
75863
75863
|
}
|
|
75864
|
-
function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.1.
|
|
75864
|
+
function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.1.42" : "" } = {}) {
|
|
75865
75865
|
const refused = failures.find((f) => f.error && f.error.code !== "ENOENT");
|
|
75866
75866
|
const fix = npm ? npmFix(version) : updateCommand({ kind: "native" }, platform2);
|
|
75867
75867
|
if (!refused) {
|
|
@@ -84415,7 +84415,6 @@ var WORDMARK = [
|
|
|
84415
84415
|
"\u2588\u2588\u2551 \u2588\u2588\u2551\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u255A\u2550\u255D \u2588\u2588\u2551",
|
|
84416
84416
|
"\u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D"
|
|
84417
84417
|
];
|
|
84418
|
-
var TAGLINE = "\u0939\u092E \xB7 human and model, one harness";
|
|
84419
84418
|
var MASCOT = [
|
|
84420
84419
|
" \u2584\u2584 \u2584\u2588\u2598",
|
|
84421
84420
|
"\u2584\u2584\u259F\u2599\u2588\u2588\u2588\u2599\u2596",
|
|
@@ -84576,7 +84575,7 @@ var input_default = MultilineInput;
|
|
|
84576
84575
|
|
|
84577
84576
|
// src/app.jsx
|
|
84578
84577
|
var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
|
|
84579
|
-
var MINE = true ? "0.1.
|
|
84578
|
+
var MINE = true ? "0.1.42" : "";
|
|
84580
84579
|
var fmtDur = (s) => s < 60 ? `${Math.max(1, Math.round(s))}s` : `${Math.floor(s / 60)}m ${Math.round(s % 60)}s`;
|
|
84581
84580
|
var plural = (n, w) => `${n} ${w}${n === 1 ? "" : "s"}`;
|
|
84582
84581
|
var firstResp = (e) => e.first_response_s ? ` \xB7 first response ${e.first_response_s.toFixed(1)}s` : "";
|
|
@@ -84646,6 +84645,7 @@ var COMMANDS = [
|
|
|
84646
84645
|
{ name: "/diff", desc: "what has changed since this session began (/diff last: the last exchange; /diff <path>: one file)" },
|
|
84647
84646
|
{ name: "/rewind", desc: "go back to something you said: the files, the conversation, or both (esc esc opens it too)" },
|
|
84648
84647
|
{ name: "/cost", desc: "tokens and cost so far" },
|
|
84648
|
+
{ name: "/usage-credits", desc: "your credits on our models, and the page that adds more (a code from Metaphi, or a purchase)" },
|
|
84649
84649
|
{ name: "/approve", desc: "approvals on|off \u2014 whether every change and command waits for you first (leaving the sandbox always asks)" },
|
|
84650
84650
|
{ name: "/continue", desc: "after a pause: let the agent carry on" },
|
|
84651
84651
|
{ name: "/goal", desc: "what must hold before the work is done (/goal <condition>; /goal clear) \u2014 it outlives compaction and resume, and is checked against the workspace before every stop" },
|
|
@@ -85509,6 +85509,9 @@ function App2({ engine: engine2, task, resume, images = [] }) {
|
|
|
85509
85509
|
case "/hooks":
|
|
85510
85510
|
engine2.send({ cmd: "hooks" });
|
|
85511
85511
|
break;
|
|
85512
|
+
case "/usage-credits":
|
|
85513
|
+
engine2.send({ cmd: "credits" });
|
|
85514
|
+
break;
|
|
85512
85515
|
case "/permissions":
|
|
85513
85516
|
engine2.send({ cmd: "permissions" });
|
|
85514
85517
|
break;
|
|
@@ -85584,10 +85587,7 @@ function App2({ engine: engine2, task, resume, images = [] }) {
|
|
|
85584
85587
|
const spinnerLabel = phase === "connecting" ? " starting \u2026" : ` ${status || "working"}${elapsed >= 2 ? ` \xB7 ${fmtDur(elapsed)}` : ""}` + (thinkChars.current > 4e3 ? ` \xB7 ${(thinkChars.current / 1e3).toFixed(0)}k thinking` : "");
|
|
85585
85588
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Box_default, { flexDirection: "column", children: [
|
|
85586
85589
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Static, { items, children: (item) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Box_default, { flexDirection: "column", marginBottom: ["hum", "you", "banner", "turn"].includes(item.kind) ? 1 : 0, children: [
|
|
85587
|
-
item.kind === "wordmark" && /* @__PURE__ */ (0, import_jsx_runtime2.
|
|
85588
|
-
WORDMARK.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { color: ACCENT, bold: true, children: row }, i)),
|
|
85589
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { dimColor: true, children: TAGLINE })
|
|
85590
|
-
] }),
|
|
85590
|
+
item.kind === "wordmark" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Box_default, { flexDirection: "column", paddingLeft: 1, children: WORDMARK.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { color: ACCENT, bold: true, children: row }, i)) }),
|
|
85591
85591
|
item.kind === "banner" && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Box_default, { flexDirection: "column", paddingLeft: 1, children: [
|
|
85592
85592
|
MASCOT.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Box_default, { children: [
|
|
85593
85593
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Box_default, { width: MASCOT_WIDTH + 2, flexShrink: 0, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { color: ACCENT, bold: true, children: row }) }),
|
|
@@ -86053,7 +86053,7 @@ init_update();
|
|
|
86053
86053
|
init_install();
|
|
86054
86054
|
var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
|
|
86055
86055
|
import { spawnSync as spawnSync5 } from "node:child_process";
|
|
86056
|
-
var MINE2 = true ? "0.1.
|
|
86056
|
+
var MINE2 = true ? "0.1.42" : "0.0.0";
|
|
86057
86057
|
var layout = installLayout();
|
|
86058
86058
|
function completeInstall() {
|
|
86059
86059
|
if (layout.kind !== "npm" || !needsInstall(MINE2)) return;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metaphi-ai/hum",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Hum
|
|
3
|
+
"version": "0.1.42",
|
|
4
|
+
"description": "Hum: a self-improving coding agent for your terminal.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": { "hum": "bin/hum.js" },
|