agents-relay 1.0.13 → 1.0.14

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": "agents-relay",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Durable async agent jobs coordinated through GitHub pull requests",
5
5
  "type": "module",
6
6
  "bin": {
@@ -55,6 +55,11 @@ def _composer_text(selector):
55
55
  }})()""") or ""
56
56
 
57
57
 
58
+ def _same_text(observed, expected):
59
+ normalize = lambda value: re.sub(r"\\s+", " ", value or "").strip()
60
+ return normalize(expected) in normalize(observed)
61
+
62
+
58
63
  def _normalized_text(value):
59
64
  return re.sub(r"\s+", " ", value or "").strip()
60
65
 
@@ -149,7 +154,7 @@ attachments = _upload_files(CFG.get("file", []))
149
154
  selector = _composer()
150
155
  before_count = len(_user_turns())
151
156
  fill_input(selector, CFG["prompt"], clear_first=True)
152
- if CFG["prompt"].strip() not in _composer_text(selector):
157
+ if not _same_text(_composer_text(selector), CFG["prompt"]):
153
158
  info = js(f"""(() => {{
154
159
  const e=document.querySelector({json.dumps(selector)});
155
160
  const r=e.getBoundingClientRect();