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
|
@@ -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
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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
|
|