feat(bot/extension/watcher): Discord 아티팩트 알림 개선 — 파일 첨부 전송, truncation 확대, 동적 .md 감시
This commit is contained in:
@@ -333,10 +333,11 @@ class RemoteTransport(BridgeTransport):
|
||||
"conversation_id": conv_id, "project_name": project,
|
||||
})
|
||||
|
||||
async def asend_chat(self, project: str, content: str) -> None:
|
||||
await self._arequest_retry("POST", "/api/chat", {
|
||||
"project_name": project, "content": content,
|
||||
})
|
||||
async def asend_chat(self, project: str, content: str, *, attached_files: list[dict] | None = None) -> None:
|
||||
payload: dict = {"project_name": project, "content": content}
|
||||
if attached_files:
|
||||
payload["attached_files"] = attached_files
|
||||
await self._arequest_retry("POST", "/api/chat", payload)
|
||||
|
||||
async def asend_event(self, event_data: dict) -> None:
|
||||
await self._arequest_retry("POST", "/api/event", event_data)
|
||||
|
||||
Reference in New Issue
Block a user