@rynx-ai/runtime 0.1.11-beta.52 → 0.1.11-beta.54
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/dist/input-resources.js +8 -3
- package/package.json +2 -2
package/dist/input-resources.js
CHANGED
|
@@ -25,11 +25,16 @@ export function codexUserContent(input) {
|
|
|
25
25
|
* Host sees the completed userMessage item. */
|
|
26
26
|
export function codexUserEchoContent(input) {
|
|
27
27
|
const parts = codexUserContent(input);
|
|
28
|
-
if (parts.length === 0)
|
|
29
|
-
return undefined;
|
|
30
28
|
if (parts.every((part) => part.type === "input_text")) {
|
|
31
29
|
const text = parts.map((part) => part.text).join("").trim();
|
|
32
|
-
|
|
30
|
+
if (text)
|
|
31
|
+
return text;
|
|
32
|
+
// A provider may replace an injected local image with its own remote URL.
|
|
33
|
+
// Keep the media-only user record even without safe content;
|
|
34
|
+
// the server restores pending attachments before persistence and broadcast.
|
|
35
|
+
return input.some((part) => part.type === "image" || part.type === "localImage")
|
|
36
|
+
? []
|
|
37
|
+
: undefined;
|
|
33
38
|
}
|
|
34
39
|
return parts;
|
|
35
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rynx-ai/runtime",
|
|
3
|
-
"version": "0.1.11-beta.
|
|
3
|
+
"version": "0.1.11-beta.54",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/rynx-ai/rynx.git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"smol-toml": "1.7.1",
|
|
28
28
|
"ws": "^8.21.0",
|
|
29
|
-
"@rynx-ai/core": "0.1.11-beta.
|
|
29
|
+
"@rynx-ai/core": "0.1.11-beta.54"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/ws": "^8.18.1"
|