motifcode 0.4.3 → 0.4.4
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 +3 -3
- package/dist/motif.js +6 -2
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
package/dist/motif.js
CHANGED
|
@@ -49008,7 +49008,11 @@ The person asked the summary to concentrate on: ${opts.focus}` : SUMMARIZATION_P
|
|
|
49008
49008
|
...opts.signal ? { signal: opts.signal } : {}
|
|
49009
49009
|
});
|
|
49010
49010
|
const body = response.reasoningContent !== void 0 ? response.content : splitThinking(response.rawText).content;
|
|
49011
|
-
const
|
|
49011
|
+
const callBody = body.replace(/(["'`])<tool_call>\1/g, "");
|
|
49012
|
+
if ((response.toolCalls?.length ?? 0) > 0 || callBody.includes("<tool_call>")) {
|
|
49013
|
+
throw new Error("the model called a tool instead of writing a summary; the context was left as it was");
|
|
49014
|
+
}
|
|
49015
|
+
const text = body.trim();
|
|
49012
49016
|
if (text === "") throw new Error("the model returned no summary; the context was left as it was");
|
|
49013
49017
|
return text;
|
|
49014
49018
|
}
|
|
@@ -62664,7 +62668,7 @@ function pluginConnectionUi(signal) {
|
|
|
62664
62668
|
}
|
|
62665
62669
|
|
|
62666
62670
|
// packages/cli/src/main.ts
|
|
62667
|
-
var VERSION = "0.4.
|
|
62671
|
+
var VERSION = "0.4.4";
|
|
62668
62672
|
var SHORT_FLAGS = { p: "print", c: "continue", i: "interactive", v: "verbose", h: "help" };
|
|
62669
62673
|
var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
|
|
62670
62674
|
"print",
|