agents-relay 1.0.11 → 1.0.12

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.11",
3
+ "version": "1.0.12",
4
4
  "description": "Durable async agent jobs coordinated through GitHub pull requests",
5
5
  "type": "module",
6
6
  "bin": {
@@ -144,13 +144,16 @@ else:
144
144
  attachments = _upload_files(CFG.get("file", []))
145
145
  selector = _composer()
146
146
  before_count = len(_user_turns())
147
- info = js(f"""(() => {{
148
- const e=document.querySelector({json.dumps(selector)});
149
- const r=e.getBoundingClientRect();
150
- return {{x:r.x+r.width/2,y:r.y+r.height/2}};
151
- }})()""")
152
- click_at_xy(info["x"], info["y"])
153
- type_text(CFG["prompt"])
147
+ fill_input(selector, CFG["prompt"], clear_first=True)
148
+ if CFG["prompt"].strip() not in _composer_text(selector):
149
+ info = js(f"""(() => {{
150
+ const e=document.querySelector({json.dumps(selector)});
151
+ const r=e.getBoundingClientRect();
152
+ return {{x:r.x+r.width/2,y:r.y+r.height/2}};
153
+ }})()""")
154
+ click_at_xy(info["x"], info["y"])
155
+ press_key("CTRL+A")
156
+ type_text(CFG["prompt"])
154
157
  if CFG["prompt"].strip() not in _composer_text(selector):
155
158
  raise RuntimeError("Temporary Chat prompt was not observed in the composer")
156
159