@rynx-ai/runtime 0.1.11-beta.26 → 0.1.11-beta.27
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/models-catalog.js +12 -3
- package/dist/runner/child.js +2 -1
- package/package.json +2 -2
package/dist/models-catalog.js
CHANGED
|
@@ -172,19 +172,28 @@ function normalizeTraexModels(value, configuredDefault) {
|
|
|
172
172
|
return [];
|
|
173
173
|
const models = [];
|
|
174
174
|
const seen = new Set();
|
|
175
|
+
let foundConfiguredDefault = false;
|
|
175
176
|
for (const item of value) {
|
|
176
177
|
if (!item || typeof item !== "object" || Array.isArray(item))
|
|
177
178
|
continue;
|
|
178
179
|
const record = item;
|
|
179
|
-
const
|
|
180
|
+
const name = typeof record.name === "string" ? record.name.trim() : "";
|
|
181
|
+
// Traex 0.201.1 exposes the launchable model slug as real_name; name is its label/config alias.
|
|
182
|
+
const realName = typeof record.real_name === "string" ? record.real_name.trim() : "";
|
|
183
|
+
const id = realName || name;
|
|
180
184
|
if (!id || seen.has(id))
|
|
181
185
|
continue;
|
|
182
186
|
seen.add(id);
|
|
187
|
+
const isDefault = configuredDefault
|
|
188
|
+
? configuredDefault === id || configuredDefault === name
|
|
189
|
+
: models.length === 0;
|
|
190
|
+
foundConfiguredDefault ||= isDefault;
|
|
183
191
|
models.push({
|
|
184
192
|
id,
|
|
185
193
|
model: id,
|
|
194
|
+
...(name && name !== id ? { displayName: name } : {}),
|
|
186
195
|
...(typeof record.description === "string" ? { description: record.description } : {}),
|
|
187
|
-
isDefault
|
|
196
|
+
isDefault,
|
|
188
197
|
...(typeof record.context_window === "number" ? { contextWindow: record.context_window } : {}),
|
|
189
198
|
...(Array.isArray(record.supported_mime_types)
|
|
190
199
|
? { supportedMimeTypes: record.supported_mime_types }
|
|
@@ -192,7 +201,7 @@ function normalizeTraexModels(value, configuredDefault) {
|
|
|
192
201
|
...(record._meta && typeof record._meta === "object" ? { _meta: record._meta } : {}),
|
|
193
202
|
});
|
|
194
203
|
}
|
|
195
|
-
if (configuredDefault && !
|
|
204
|
+
if (configuredDefault && !foundConfiguredDefault) {
|
|
196
205
|
models.unshift({ id: configuredDefault, model: configuredDefault, isDefault: true });
|
|
197
206
|
}
|
|
198
207
|
return models;
|
package/dist/runner/child.js
CHANGED
|
@@ -697,7 +697,8 @@ export class RunnerSession {
|
|
|
697
697
|
},
|
|
698
698
|
{
|
|
699
699
|
id: "migration",
|
|
700
|
-
matches: (pane) => pane.includes("legacy
|
|
700
|
+
matches: (pane) => (pane.includes("legacy traecode cli data detected") ||
|
|
701
|
+
pane.includes("legacy trae cli data detected")) &&
|
|
701
702
|
pane.includes("select what to import") &&
|
|
702
703
|
(pane.includes("skip for now") || pane.includes("don't ask again")),
|
|
703
704
|
dismiss: () => terminal.interrupt(),
|
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.27",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/rynx-ai/rynx.git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"node-pty": "1.2.0-beta.15",
|
|
28
28
|
"smol-toml": "1.7.1",
|
|
29
29
|
"ws": "^8.21.0",
|
|
30
|
-
"@rynx-ai/core": "0.1.11-beta.
|
|
30
|
+
"@rynx-ai/core": "0.1.11-beta.27"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/ws": "^8.18.1"
|