Ассистент: llmtest- только для тестовых проектов (agent.testJobIds), POST /chat/apply для разового поручения агенту
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user