sprag-cli 3.103.0 → 3.103.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprag-cli",
3
- "version": "3.103.0",
3
+ "version": "3.103.1",
4
4
  "description": "Model-delegation router for Claude Code and Codex: lookups, checks and test runs go to cheaper models, documents go in as compact Markdown, and a live statusline shows spend and savings.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -77,7 +77,10 @@ async function readRunEffort(jsonlPath) {
77
77
  try { entry = JSON.parse(line); } catch { continue; }
78
78
  if (effort === null && typeof entry.effort === 'string' && entry.effort) effort = entry.effort;
79
79
  if (raised === null && entry.type === 'user' && entry.message) {
80
- raised = messageText(entry.message.content).includes(EFFORT_RAISE_MARKER);
80
+ // The guard appends the marker as the prompt's last line, so only a
81
+ // prompt that ends with it was raised. A prompt that merely quotes the
82
+ // line (a delegation about this very feature did) is not one.
83
+ raised = messageText(entry.message.content).trimEnd().endsWith(EFFORT_RAISE_MARKER);
81
84
  }
82
85
  if (raised !== null && effort !== null) break;
83
86
  }