@agent-proxy/gateway 0.17.0 → 0.19.0
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/index.js +1 -12
- package/dist/ui/index.html +5 -5
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -1233,7 +1233,6 @@ function prepareDefaultInstallMigration(paths, env = process.env, platform = pro
|
|
|
1233
1233
|
// src/catalog.ts
|
|
1234
1234
|
var exports_catalog = {};
|
|
1235
1235
|
__export(exports_catalog, {
|
|
1236
|
-
withAgentSystemPrompt: () => withAgentSystemPrompt,
|
|
1237
1236
|
synthesizeModelEntry: () => synthesizeModelEntry,
|
|
1238
1237
|
syncCatalog: () => syncCatalog,
|
|
1239
1238
|
resolveModelMergeJson: () => resolveModelMergeJson,
|
|
@@ -6227,16 +6226,6 @@ function prefixModel(source, prefix, priority) {
|
|
|
6227
6226
|
model.priority = priority;
|
|
6228
6227
|
return model;
|
|
6229
6228
|
}
|
|
6230
|
-
function withAgentSystemPrompt(entry, prompt) {
|
|
6231
|
-
const modelMessages = entry.model_messages;
|
|
6232
|
-
if (!modelMessages || typeof modelMessages !== "object")
|
|
6233
|
-
return { ...entry, base_instructions: prompt };
|
|
6234
|
-
return {
|
|
6235
|
-
...entry,
|
|
6236
|
-
base_instructions: prompt,
|
|
6237
|
-
model_messages: { ...modelMessages, instructions_template: prompt }
|
|
6238
|
-
};
|
|
6239
|
-
}
|
|
6240
6229
|
function findMatchingRule(slug, rules) {
|
|
6241
6230
|
const lower = slug.toLowerCase();
|
|
6242
6231
|
return rules.find((rule) => rule.patterns.some((pattern) => rule.prefix ? lower.startsWith(pattern) : lower === pattern));
|
|
@@ -9193,7 +9182,7 @@ var pluginAwareWebSocketHandler = {
|
|
|
9193
9182
|
}
|
|
9194
9183
|
return socket.data.pluginSession.message(socket, typeof data === "string" ? data : new Uint8Array(data));
|
|
9195
9184
|
}
|
|
9196
|
-
return realtimeWebSocketHandler.message(socket, data);
|
|
9185
|
+
return realtimeWebSocketHandler.message?.(socket, data);
|
|
9197
9186
|
},
|
|
9198
9187
|
drain(socket) {
|
|
9199
9188
|
if (socket.data.pluginSession)
|