Ассистент: llmtest- только для тестовых проектов (agent.testJobIds), POST /chat/apply для разового поручения агенту
All checks were successful
ci / test (push) Successful in 21s
ci / deploy (push) Successful in 1m37s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-15 22:25:04 +03:00
parent 9b5f445ba1
commit 1722a87915
4 changed files with 20 additions and 1 deletions

View File

@@ -63,6 +63,11 @@ const chat = chatDeps
[{ channel: m.slackChannelId ?? "simulated", ts: String(Date.now() / 1000), text: o.text, fileIds: [], localFiles: o.files }],
);
},
async apply(o: { managerId: string; text: string; publish?: boolean }) {
const m = (await managers(service.modes)).find((x) => x.personId === o.managerId);
if (!m) throw new Error("менеджер не найден");
return handleManagerMessages({ ...chatDeps, dryPublish: !o.publish }, m, [], { systemEvent: o.text });
},
async event(kind: string) {
const text = EVENT_TEXT[kind];
if (!text) throw new Error(`неизвестное событие ${kind}`);