Skip to content

rework command framework#59

Draft
timkpaine wants to merge 4 commits into
mainfrom
tkp/commandrework
Draft

rework command framework#59
timkpaine wants to merge 4 commits into
mainfrom
tkp/commandrework

Conversation

@timkpaine
Copy link
Copy Markdown
Member

@timkpaine timkpaine commented Apr 21, 2026

No description provided.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 21, 2026

Test Results

158 tests  +70   158 ✅ +70   2s ⏱️ -1s
  1 suites ± 0     0 💤 ± 0 
  1 files   ± 0     0 ❌ ± 0 

Results for commit 28944fc. ± Comparison against base commit 29c72c8.

♻️ This comment has been updated with latest results.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 21, 2026

Codecov Report

❌ Patch coverage is 90.09009% with 99 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.76%. Comparing base (6ead355) to head (28944fc).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
csp_bot/bot.py 64.70% 25 Missing and 11 partials ⚠️
csp_bot/commands/help.py 22.72% 17 Missing ⚠️
csp_bot/commands/executor.py 91.22% 8 Missing and 2 partials ⚠️
csp_bot/commands/context.py 83.33% 7 Missing and 2 partials ⚠️
csp_bot/tests/test_bot_integration.py 92.85% 8 Missing ⚠️
csp_bot/tests/test_command_framework.py 98.57% 7 Missing ⚠️
csp_bot/commands/status.py 14.28% 6 Missing ⚠️
csp_bot/commands/schedule.py 20.00% 4 Missing ⚠️
csp_bot/commands/legacy.py 96.55% 1 Missing ⚠️
csp_bot/gateway/gateway.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main      #59       +/-   ##
===========================================
+ Coverage   65.89%   76.76%   +10.86%     
===========================================
  Files          28       33        +5     
  Lines        1639     2552      +913     
  Branches      166      204       +38     
===========================================
+ Hits         1080     1959      +879     
- Misses        527      549       +22     
- Partials       32       44       +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
…rmattedMessage

executor.py — New _extract_attachments() helper converts FormattedImage/FormattedAttachment from a FormattedMessage into base Attachment objects; _coerce_response() now populates Message.attachments when returning a FormattedMessage
echo.py — Replaced manual mention_users() calls with FormattedMessage + UserMention nodes
help.py — Replaced per-backend if/elif rendering (Symphony <expandable-card>, Slack mrkdwn, Discord markdown table) with FormattedMessage + Heading + Table.from_dict_list() that auto-renders for each backend
status.py — Same migration: builds a Table.from_dict_list() of metrics instead of manual **bold** markdown lines
schedule.py — Same migration for the schedule listing
test_command_framework.py — 3 new tests for _coerce_response() covering images in content, file attachments, and mixed content+attachments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant