motifcode 0.3.0 → 0.3.1
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/build-info.json +2 -2
- package/dist/motif.js +8 -6
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
package/dist/motif.js
CHANGED
|
@@ -7094,7 +7094,6 @@ async function doctor(opts) {
|
|
|
7094
7094
|
} : { name: "reasoning parser", state: "unknown", detail: "no reasoning in the probe response" }
|
|
7095
7095
|
);
|
|
7096
7096
|
let cached2 = json.usage?.prompt_tokens_details?.cached_tokens;
|
|
7097
|
-
const reports = cached2 !== void 0;
|
|
7098
7097
|
try {
|
|
7099
7098
|
const again = await fetchImpl(`${endpoint}/v1/chat/completions`, {
|
|
7100
7099
|
method: "POST",
|
|
@@ -7108,6 +7107,7 @@ async function doctor(opts) {
|
|
|
7108
7107
|
}
|
|
7109
7108
|
} catch {
|
|
7110
7109
|
}
|
|
7110
|
+
const reports = cached2 !== void 0;
|
|
7111
7111
|
checks.push(
|
|
7112
7112
|
typeof cached2 === "number" && cached2 > 0 ? {
|
|
7113
7113
|
name: "prefix caching",
|
|
@@ -9090,10 +9090,12 @@ function loadPlugins(opts) {
|
|
|
9090
9090
|
};
|
|
9091
9091
|
}
|
|
9092
9092
|
function describePlugins(loaded) {
|
|
9093
|
-
if (loaded.plugins.length === 0
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
)
|
|
9093
|
+
if (loaded.plugins.length === 0 && loaded.problems.length === 0) {
|
|
9094
|
+
return ["no plugins; add one under ~/.motif/plugins/{name}/ or .motif/plugins/{name}/ with a plugin.json"];
|
|
9095
|
+
}
|
|
9096
|
+
const lines = loaded.plugins.map(function(p) {
|
|
9097
|
+
return `${p.name.padEnd(16)} ${p.description}${p.version ? ` (${p.version})` : ""} \xB7 ${p.source} \xB7 ${p.skills.length} skill(s)${p.skills.length ? `: ${p.skills.join(", ")}` : ""}${p.agents.length ? ` \xB7 ${p.agents.length} agent(s): ${p.agents.join(", ")}` : ""}`;
|
|
9098
|
+
});
|
|
9097
9099
|
for (const p of loaded.problems) lines.push(`! ${p}`);
|
|
9098
9100
|
return lines;
|
|
9099
9101
|
}
|
|
@@ -9209,7 +9211,7 @@ function saveUserSetting(key, value, home = homedir4()) {
|
|
|
9209
9211
|
}
|
|
9210
9212
|
|
|
9211
9213
|
// packages/cli/src/main.ts
|
|
9212
|
-
var VERSION = "0.3.
|
|
9214
|
+
var VERSION = "0.3.1";
|
|
9213
9215
|
var SHORT_FLAGS = { p: "print", c: "continue", i: "interactive", v: "verbose", h: "help" };
|
|
9214
9216
|
var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
|
|
9215
9217
|
"print",
|