@metaphi-ai/hum 0.1.38 → 0.1.39

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 +15 -5
  2. package/package.json +1 -1
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.38" : "" } = {}) {
75864
+ function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.1.39" : "" } = {}) {
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) {
@@ -84576,7 +84576,7 @@ var input_default = MultilineInput;
84576
84576
 
84577
84577
  // src/app.jsx
84578
84578
  var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
84579
- var MINE = true ? "0.1.38" : "";
84579
+ var MINE = true ? "0.1.39" : "";
84580
84580
  var fmtDur = (s) => s < 60 ? `${Math.max(1, Math.round(s))}s` : `${Math.floor(s / 60)}m ${Math.round(s % 60)}s`;
84581
84581
  var plural = (n, w) => `${n} ${w}${n === 1 ? "" : "s"}`;
84582
84582
  var firstResp = (e) => e.first_response_s ? ` \xB7 first response ${e.first_response_s.toFixed(1)}s` : "";
@@ -85796,14 +85796,24 @@ function App2({ engine: engine2, task, resume, images = [] }) {
85796
85796
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { dimColor: true, children: ` \xB7 ${reflection.category.replace(/_/g, " ")}${reflection.area ? ` \xB7 ${reflection.area}` : ""}` })
85797
85797
  ] }),
85798
85798
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { bold: true, children: reflection.title }),
85799
- reflection.details.split("\n").map((l, i) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { children: ` ${l}` }, `d${i}`)),
85799
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { children: " " }),
85800
+ reflection.details.split("\n").map((l, i) => {
85801
+ const m = l.match(/^\s*(What happened|What the person said|Evidence|Cause|Repro)\s*:\s*(.*)$/i);
85802
+ if (m) {
85803
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Box_default, { flexDirection: "column", marginTop: i === 0 ? 0 : 1, children: [
85804
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { dimColor: true, children: ` ${m[1]}` }),
85805
+ m[2] ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { children: ` ${m[2]}` }) : null
85806
+ ] }, `d${i}`);
85807
+ }
85808
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { children: ` ${l}` }, `d${i}`);
85809
+ }),
85800
85810
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { children: " " }),
85801
85811
  why === reflection.id ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Text, { children: [
85802
85812
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { bold: true, children: "What did it get wrong? " }),
85803
85813
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { dimColor: true, children: "type a line and press enter \xB7 enter alone records the no without a reason" })
85804
85814
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Text, { children: [
85805
85815
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { bold: true, children: "Is this true? " }),
85806
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { dimColor: true, children: `press 1 for yes \xB7 2 for no \xB7 enter to skip${reflections.length > 1 ? ` \xB7 ${reflections.length - 1} more after this` : ""}` })
85816
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { dimColor: true, children: `1 yes \xB7 2 no \xB7 enter skips \xB7 or just keep typing${reflections.length > 1 ? ` \xB7 ${reflections.length - 1} more` : ""}` })
85807
85817
  ] })
85808
85818
  ] })
85809
85819
  ] }),
@@ -86043,7 +86053,7 @@ init_update();
86043
86053
  init_install();
86044
86054
  var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
86045
86055
  import { spawnSync as spawnSync5 } from "node:child_process";
86046
- var MINE2 = true ? "0.1.38" : "0.0.0";
86056
+ var MINE2 = true ? "0.1.39" : "0.0.0";
86047
86057
  var layout = installLayout();
86048
86058
  function completeInstall() {
86049
86059
  if (layout.kind !== "npm" || !needsInstall(MINE2)) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metaphi-ai/hum",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "description": "Hum (हम): a self-improving coding agent for your terminal.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",