opencode-bridge 0.1.4__py3-none-any.whl → 0.1.5__py3-none-any.whl
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.
- opencode_bridge/server.py +8 -12
- {opencode_bridge-0.1.4.dist-info → opencode_bridge-0.1.5.dist-info}/METADATA +1 -1
- opencode_bridge-0.1.5.dist-info/RECORD +7 -0
- opencode_bridge-0.1.4.dist-info/RECORD +0 -7
- {opencode_bridge-0.1.4.dist-info → opencode_bridge-0.1.5.dist-info}/WHEEL +0 -0
- {opencode_bridge-0.1.4.dist-info → opencode_bridge-0.1.5.dist-info}/entry_points.txt +0 -0
opencode_bridge/server.py
CHANGED
|
@@ -303,18 +303,14 @@ Set via:
|
|
|
303
303
|
session = self.sessions[sid]
|
|
304
304
|
session.add_message("user", message)
|
|
305
305
|
|
|
306
|
-
#
|
|
307
|
-
temp_file =
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
args = ["run", "Respond to the message in the attached file."]
|
|
315
|
-
files = (files or []) + [temp_file.name]
|
|
316
|
-
else:
|
|
317
|
-
args = ["run", message]
|
|
306
|
+
# Always write message to temp file to avoid shell escaping issues
|
|
307
|
+
temp_file = tempfile.NamedTemporaryFile(
|
|
308
|
+
mode='w', suffix='.md', delete=False, prefix='opencode_msg_'
|
|
309
|
+
)
|
|
310
|
+
temp_file.write(message)
|
|
311
|
+
temp_file.close()
|
|
312
|
+
args = ["run", "Respond to the request in the attached message file."]
|
|
313
|
+
files = (files or []) + [temp_file.name]
|
|
318
314
|
|
|
319
315
|
args.extend(["--model", session.model])
|
|
320
316
|
args.extend(["--agent", session.agent])
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
opencode_bridge/__init__.py,sha256=SkXVg907MuInd7UEYOjHjiiIIT46y4S2l20hE9cShKo,92
|
|
2
|
+
opencode_bridge/install.py,sha256=VOJNYUPxq88g0XizkHSQ9noM3Qcd3AfZxPUZInEKErk,1796
|
|
3
|
+
opencode_bridge/server.py,sha256=wPaHkfWvi_LtIIrOOO20x2Eg8vM19eXrS03N2RZZDtc,28933
|
|
4
|
+
opencode_bridge-0.1.5.dist-info/METADATA,sha256=fTj3RGmp8dn_Ra1XZBmQFVDm9UcwR1zvc-5jLrCun3I,3924
|
|
5
|
+
opencode_bridge-0.1.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
6
|
+
opencode_bridge-0.1.5.dist-info/entry_points.txt,sha256=8elAgeI-Sk7EPoV7kUr3CCgQyIAW2VfDj5ZXQ_9slCc,184
|
|
7
|
+
opencode_bridge-0.1.5.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
opencode_bridge/__init__.py,sha256=SkXVg907MuInd7UEYOjHjiiIIT46y4S2l20hE9cShKo,92
|
|
2
|
-
opencode_bridge/install.py,sha256=VOJNYUPxq88g0XizkHSQ9noM3Qcd3AfZxPUZInEKErk,1796
|
|
3
|
-
opencode_bridge/server.py,sha256=aufAiF37ZZY_PjA-vDGVp_1FhFDV5VWESQTH4qOChjI,29064
|
|
4
|
-
opencode_bridge-0.1.4.dist-info/METADATA,sha256=sXUUJpr2z_83exM4t0HJuCwEu4NgJTptbgsDDQx1ww8,3924
|
|
5
|
-
opencode_bridge-0.1.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
6
|
-
opencode_bridge-0.1.4.dist-info/entry_points.txt,sha256=8elAgeI-Sk7EPoV7kUr3CCgQyIAW2VfDj5ZXQ_9slCc,184
|
|
7
|
-
opencode_bridge-0.1.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|