fix: resolve plugin anti-pattern violations #79

Merged
k9ert merged 2 commits from fix/antipattern-cleanup into main 2026-02-22 13:16:46 +00:00
Collaborator

Summary

Fixes easy anti-pattern violations identified in the plugin compliance audit.

Hidden Service Locator Fixes

Plugin Change
cron Add optional_dependencies for subagent, communication, filedrop
pairing Add optional_dependencies for communication

print() → log_*() Fixes

Plugin Change
loop Pass log_error callback to AggregatedToolProvider helper class
knowledge Replace print(..., file=sys.stderr) with self.log_info()

Remaining Violations

These are blocked on other work:

  • Environment Grab Bag (6 violations) — Needs #50 (secret management)
  • wallet, nostr, telegram, ppq, security, tools

Testing

  • All 345 tests pass
  • Lint passes
## Summary Fixes easy anti-pattern violations identified in the plugin compliance audit. ## Hidden Service Locator Fixes | Plugin | Change | |--------|--------| | cron | Add `optional_dependencies` for subagent, communication, filedrop | | pairing | Add `optional_dependencies` for communication | ## print() → log_*() Fixes | Plugin | Change | |--------|--------| | loop | Pass `log_error` callback to `AggregatedToolProvider` helper class | | knowledge | Replace `print(..., file=sys.stderr)` with `self.log_info()` | ## Remaining Violations These are blocked on other work: - **Environment Grab Bag (6 violations)** — Needs #50 (secret management) - wallet, nostr, telegram, ppq, security, tools ## Testing - All 345 tests pass - Lint passes
fix: resolve plugin anti-pattern violations
Some checks failed
CI / lint (pull_request) Failing after 9s
CI / test (3.11) (pull_request) Successful in 21s
CI / test (3.12) (pull_request) Successful in 24s
E2E Tests / e2e (pull_request) Successful in 11s
CI / test (3.13) (pull_request) Successful in 24s
CI / build (pull_request) Has been skipped
469a3a751b
Hidden Service Locator fixes:
- cron: add optional_dependencies for subagent, communication, filedrop
- pairing: add optional_dependencies for communication

print() → log_*() fixes:
- loop: pass log_error callback to AggregatedToolProvider
- knowledge: replace print() with self.log_info()

All 345 tests pass.
style: fix line length in loop plugin
All checks were successful
CI / lint (pull_request) Successful in 9s
CI / test (3.11) (pull_request) Successful in 21s
E2E Tests / e2e (pull_request) Successful in 10s
CI / test (3.12) (pull_request) Successful in 24s
CI / test (3.13) (pull_request) Successful in 24s
CI / build (pull_request) Successful in 7s
4a7a55a5b2
k9ert merged commit 3b10112fd3 into main 2026-02-22 13:16:46 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ultanio/cobot!79
No description provided.