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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.3",
3
- "bytes": 2742410,
4
- "node": "v22.23.3"
2
+ "version": "0.4.4",
3
+ "bytes": 2742619,
4
+ "node": "v22.23.4"
5
5
  }
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 text = body.replace(/<tool_call>[\s\S]*?<\/tool_call>/g, "").trim();
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.3";
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "motifcode",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "type": "module",
5
5
  "description": "Unofficial coding agent harness built for Motif-3: a Claude Code-style terminal session over the hosted endpoint",
6
6
  "keywords": [