@metaphi-ai/hum 0.1.35 → 0.1.37
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 +14 -6
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -75838,7 +75838,7 @@ function runningVersion(candidates = engineCandidates(), opts = {}) {
|
|
|
75838
75838
|
}
|
|
75839
75839
|
return null;
|
|
75840
75840
|
}
|
|
75841
|
-
function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.1.
|
|
75841
|
+
function startFailure(failures, { npm = /^(node|bun)(\.exe)?$/i.test(String(process.execPath).split(/[\\/]/).pop()), platform: platform2 = process.platform, version = true ? "0.1.37" : "" } = {}) {
|
|
75842
75842
|
const refused = failures.find((f) => f.error && f.error.code !== "ENOENT");
|
|
75843
75843
|
const fix = npm ? npmFix(version) : updateCommand({ kind: "native" }, platform2);
|
|
75844
75844
|
if (!refused) {
|
|
@@ -84541,7 +84541,7 @@ var input_default = MultilineInput;
|
|
|
84541
84541
|
|
|
84542
84542
|
// src/app.jsx
|
|
84543
84543
|
var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
|
|
84544
|
-
var MINE = true ? "0.1.
|
|
84544
|
+
var MINE = true ? "0.1.37" : "";
|
|
84545
84545
|
var fmtDur = (s) => s < 60 ? `${Math.max(1, Math.round(s))}s` : `${Math.floor(s / 60)}m ${Math.round(s % 60)}s`;
|
|
84546
84546
|
var plural = (n, w) => `${n} ${w}${n === 1 ? "" : "s"}`;
|
|
84547
84547
|
var firstResp = (e) => e.first_response_s ? ` \xB7 first response ${e.first_response_s.toFixed(1)}s` : "";
|
|
@@ -85004,7 +85004,10 @@ function App2({ engine: engine2, task, resume, images = [] }) {
|
|
|
85004
85004
|
question: ev.question || "",
|
|
85005
85005
|
options: ev.options || [],
|
|
85006
85006
|
default: ev.default || null,
|
|
85007
|
-
questions: ev.questions || null
|
|
85007
|
+
questions: ev.questions || null,
|
|
85008
|
+
kind: ev.kind || null,
|
|
85009
|
+
summary: ev.summary || "",
|
|
85010
|
+
evidence: ev.evidence || []
|
|
85008
85011
|
});
|
|
85009
85012
|
setQStep(0);
|
|
85010
85013
|
setQAnswers({});
|
|
@@ -85715,6 +85718,11 @@ function App2({ engine: engine2, task, resume, images = [] }) {
|
|
|
85715
85718
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { dimColor: true, children: spinnerLabel })
|
|
85716
85719
|
] }),
|
|
85717
85720
|
question && step && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Box_default, { flexDirection: "column", borderStyle: "round", borderColor: ACCENT, paddingX: 1, marginTop: 1, children: [
|
|
85721
|
+
question.kind === "feedback" && qStep === 0 ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Box_default, { flexDirection: "column", marginBottom: 1, children: [
|
|
85722
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { color: ACCENT, bold: true, children: "\u2726 hum asks for your judgment" }) }),
|
|
85723
|
+
question.summary.split("\n").map((l, i) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { children: ` ${l}` }, `s${i}`)),
|
|
85724
|
+
question.evidence.map((e, i) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { dimColor: true, children: ` evidence: ${e}` }, `e${i}`))
|
|
85725
|
+
] }) : null,
|
|
85718
85726
|
step.header ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Text, { dimColor: true, children: [
|
|
85719
85727
|
" ",
|
|
85720
85728
|
step.header
|
|
@@ -85738,8 +85746,8 @@ function App2({ engine: engine2, task, resume, images = [] }) {
|
|
|
85738
85746
|
] }, i)),
|
|
85739
85747
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Text, { dimColor: true, children: [
|
|
85740
85748
|
" ",
|
|
85741
|
-
stepLabels.length ? step.multi ? "a number ticks \xB7 space ticks the one marked \xB7 " : "a number picks \xB7 " : "",
|
|
85742
|
-
"type an answer",
|
|
85749
|
+
stepLabels.length ? step.multi ? "a number ticks \xB7 space ticks the one marked \xB7 " : step.graded ? "a number marks \xB7 words after it if you like \xB7 " : "a number picks \xB7 " : "",
|
|
85750
|
+
step.graded ? "" : "type an answer",
|
|
85743
85751
|
step.default ? " \xB7 enter takes the default" : "",
|
|
85744
85752
|
step.multi && stepLabels.length ? " \xB7 enter takes what is ticked" : "",
|
|
85745
85753
|
step.secret ? " \xB7 it is not shown and not recorded" : ""
|
|
@@ -86000,7 +86008,7 @@ init_update();
|
|
|
86000
86008
|
init_install();
|
|
86001
86009
|
var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
|
|
86002
86010
|
import { spawnSync as spawnSync5 } from "node:child_process";
|
|
86003
|
-
var MINE2 = true ? "0.1.
|
|
86011
|
+
var MINE2 = true ? "0.1.37" : "0.0.0";
|
|
86004
86012
|
var layout = installLayout();
|
|
86005
86013
|
function completeInstall() {
|
|
86006
86014
|
if (layout.kind !== "npm" || !needsInstall(MINE2)) return;
|