@metaphi-ai/hum 0.2.36 → 0.2.38

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +6 -8
  2. 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.36" : "";
89462
+ MINE = true ? "0.2.38" : "";
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.36" : ""
89808
+ tui: true ? "0.2.38" : ""
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.36" : "" } = {}) {
89811
+ function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.2.38" : "" } = {}) {
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.36" : "";
91326
+ var MINE2 = true ? "0.2.38" : "";
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$/, "");
@@ -93526,15 +93526,13 @@ ${r.content}`).join("\n\n") };
93526
93526
  (() => {
93527
93527
  const nameW = Math.max(...picker.items.map((m) => m.name.length + (m.current ? 2 : 0)));
93528
93528
  return picker.items.map((m, i) => {
93529
- const price = m.price_per_m && m.price_per_m.length === 2 && (m.price_per_m[0] || m.price_per_m[1]) ? `$${m.price_per_m[0]}/$${m.price_per_m[1]} per M` : "";
93530
- const about = [m.note, price].filter(Boolean).join(" \xB7 ");
93531
93529
  const label = `${i + 1}. ${m.name}${m.current ? " \u2713" : ""}`.padEnd(nameW + 4);
93532
93530
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Box2, { children: [
93533
93531
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Text2, { color: ACCENT, children: i === picker.index ? "\u276F " : " " }),
93534
93532
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Text2, { color: m.current ? "green" : void 0, bold: i === picker.index, children: label }),
93535
93533
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Text2, { dimColor: i !== picker.index, children: [
93536
93534
  " ",
93537
- about
93535
+ m.note
93538
93536
  ] })
93539
93537
  ] }, m.name);
93540
93538
  });
@@ -93798,7 +93796,7 @@ init_install();
93798
93796
  await init_theme();
93799
93797
  var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
93800
93798
  import { spawnSync as spawnSync6 } from "node:child_process";
93801
- var MINE3 = true ? "0.2.36" : "0.0.0";
93799
+ var MINE3 = true ? "0.2.38" : "0.0.0";
93802
93800
  var layout = installLayout();
93803
93801
  function completeInstall() {
93804
93802
  if (layout.kind !== "npm" || !needsInstall(MINE3)) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metaphi-ai/hum",
3
- "version": "0.2.36",
3
+ "version": "0.2.38",
4
4
  "description": "Hum: a self-improving coding agent for your terminal.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",