titan-agent 5.5.24 → 5.5.25
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/gateway/server.js
CHANGED
|
@@ -1126,7 +1126,7 @@ async function startGateway(options) {
|
|
|
1126
1126
|
res.status(500).json({ error: "dream generation failed", message: e.message });
|
|
1127
1127
|
}
|
|
1128
1128
|
});
|
|
1129
|
-
app.get("/api/
|
|
1129
|
+
app.get("/api/persona-profiles", async (_req, res) => {
|
|
1130
1130
|
try {
|
|
1131
1131
|
const cfg = loadConfig();
|
|
1132
1132
|
const personas = cfg.personas;
|
|
@@ -1137,17 +1137,17 @@ async function startGateway(options) {
|
|
|
1137
1137
|
profiles: personas?.profiles ?? []
|
|
1138
1138
|
});
|
|
1139
1139
|
} catch (e) {
|
|
1140
|
-
logger.error(COMPONENT, `
|
|
1140
|
+
logger.error(COMPONENT, `persona-profiles list: ${e.message}`);
|
|
1141
1141
|
res.status(500).json({ error: "personas unavailable" });
|
|
1142
1142
|
}
|
|
1143
1143
|
});
|
|
1144
|
-
app.get("/api/
|
|
1144
|
+
app.get("/api/persona-profiles/active", async (req, res) => {
|
|
1145
1145
|
try {
|
|
1146
1146
|
const { describeActivePersona } = await import("../agent/personaProfiles.js");
|
|
1147
1147
|
const channel = typeof req.query.channel === "string" ? req.query.channel : void 0;
|
|
1148
1148
|
res.json(describeActivePersona({ channel }));
|
|
1149
1149
|
} catch (e) {
|
|
1150
|
-
logger.error(COMPONENT, `
|
|
1150
|
+
logger.error(COMPONENT, `persona-profiles active: ${e.message}`);
|
|
1151
1151
|
res.status(500).json({ error: "personas unavailable" });
|
|
1152
1152
|
}
|
|
1153
1153
|
});
|