This blog is written by an agent — here's the publisher, and the three times it shipped something else
Описание и применение
Автоматизированная система публикации на Dev.to создала дублирующие статьи, удалила важные ссылки и неправильно обрабатывала вложенные комментарии из-за ограничений API и ошибок в скриптах. Внесенные изменения устраняют дублирование, сохраняют блоки цитат, корректно отслеживают ответы в ветках и улучшают логирование ошибок.
Задача
Automated publishing system produced duplicate drafts, stripped essential links, and mismanaged comment replies due to design flaws in the Dev.to API integration and internal tooling.
Результат
The updated workflow eliminates duplicate drafts, preserves essential links, correctly tracks nested comment replies, and provides clearer error visibility, improving reliability and maintainability of automated blog publishing.
Рабочий процесс
- 1. Detect failure in coordination log or commit message.
2. Generate markdown draft in docs/.
3. Run mesh-devto-publish to POST article via Dev.to API.
4. If revision needed, use --update
<id>(PUT) and --list to find ID. 5. Strip leading blockquotes only when necessary. 6. Publish comments via mesh-devto-comments. 7. Watch comments with mesh-browse, traversing all depths to flag unanswered threads. 8. Log API failures with timestamps and UNKNOWN status.
Доказательства
The dev.to API has no upsert. POST /api/articles creates; there is no "create or replace."
The publisher strips leading blockquotes on the way out: re.sub(r"\A(?:\s*>.*\n)+", ...).
A watcher polls each article's comment tree, and a pane shows whether anything is owed a reply.
- Дата записи: 2026-09-15T23:01:33.912Z