clementine-agent 1.18.202 → 1.18.203

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.
@@ -98,10 +98,21 @@ function contextOverflowFallbackMessage() {
98
98
  ].join('\n');
99
99
  }
100
100
  function detectOverflowResumeReply(message) {
101
- const text = message.trim().toLowerCase();
101
+ let text = message.trim().toLowerCase().replace(/[.!?]+$/g, '').replace(/\s+/g, ' ').trim();
102
102
  if (!text)
103
103
  return 'other';
104
- if (/^(?:continue|resume|proceed|keep going|carry on|yes|yep|yeah|sure|ok|okay|go|go ahead|do it|run it)[\s.!]*$/.test(text)) {
104
+ // Humans naturally add politeness around the control word. Keep this
105
+ // parser narrow, but do not drop a pending resume just because the owner
106
+ // replied "continue please" instead of the exact token "continue".
107
+ text = text
108
+ .replace(/^(?:please|pls)\s+/, '')
109
+ .replace(/\s+(?:please|pls)$/, '')
110
+ .replace(/^(?:ok|okay|yes|yep|yeah|sure),?\s+/, '')
111
+ .trim();
112
+ if (/^(?:continue|resume|proceed|keep going|carry on|yes|yep|yeah|sure|ok|okay|go|go ahead|do it|run it)$/.test(text)) {
113
+ return 'continue';
114
+ }
115
+ if (/^(?:continue|resume|proceed|keep going|carry on)\s+(?:from\s+(?:there|here|that state|this state)|where you left off|with\s+(?:that|it)|the work)$/.test(text)) {
105
116
  return 'continue';
106
117
  }
107
118
  if (/^(?:done|stop|cancel|abort|no|nope|that's all|that is all|leave it|do not continue|don't continue)\b/.test(text)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clementine-agent",
3
- "version": "1.18.202",
3
+ "version": "1.18.203",
4
4
  "description": "Clementine — Personal AI Assistant (TypeScript)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",