agent-office 0.0.16 → 0.2.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/server/routes.js +0 -9
- package/package.json +1 -1
package/dist/server/routes.js
CHANGED
|
@@ -216,15 +216,6 @@ export function createRouter(sql, agenticCodingServer, serverUrl, scheduler, mem
|
|
|
216
216
|
res.status(500).json({ error: "Internal server error" });
|
|
217
217
|
return;
|
|
218
218
|
}
|
|
219
|
-
try {
|
|
220
|
-
const { humanName, humanDescription } = await loadHumanConfig(sql);
|
|
221
|
-
const token = `${row.agent_code}@${serverUrl}`;
|
|
222
|
-
const system = generateSystemPrompt(trimmedName, null, humanName, humanDescription, token);
|
|
223
|
-
await agenticCodingServer.sendMessage(opencodeSessionId, "You are now active. Begin your work.", trimmedAgent, system);
|
|
224
|
-
}
|
|
225
|
-
catch (err) {
|
|
226
|
-
console.warn("Warning: could not send first message to session:", err);
|
|
227
|
-
}
|
|
228
219
|
res.status(201).json(row);
|
|
229
220
|
});
|
|
230
221
|
router.post("/sessions/:name/regenerate-code", async (req, res) => {
|