8 Commits
Author SHA1 Message Date
soconnorandClaude Sonnet 5 64d795173c Copy sent mail to Sent folder; add message field to Poke webhook
CI / lint (push) Failing after 5s
CI / build (push) Successful in 5s
CI / docker (push) Skipped
Build & Push Container Image / build-and-push (push) Successful in 30s
- send_email only relayed via SMTP, which doesn't copy the message
  to Sent the way a provider's own webmail/Mail app does — that's a
  client-side IMAP APPEND step that was simply missing, so sent mail
  never showed up anywhere in the account. Added detect_sent_folder
  (mirrors detect_drafts_folder) and append the sent copy after a
  successful SMTP send.
- forward_to_poke's payload never included a top-level "message"
  field, which every documented /api/v1/inbound/api-message example
  uses to give the agent something actionable — without it the
  webhook could get accepted (200/success) but ingested as inert
  context with nothing to surface. Added _build_poke_message() to
  generate one from the email's from/subject/body.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-03 01:56:58 -04:00
soconnorandClaude Sonnet 5 3e816beb6e Speed up CI: switch lint to ruff-action, drop broken pip cache
CI / lint (push) Successful in 8s
CI / build (push) Successful in 4s
Build & Push Container Image / build-and-push (push) Successful in 29s
CI / docker (push) Successful in 15s
- lint job now uses astral-sh/ruff-action instead of provisioning a
  full Python toolchain via setup-python just to pip install ruff —
  the action just downloads the standalone Ruff binary.
- build job's cache: pip was hanging on every run: the Gitea runner
  has no reachable Actions-cache backend, so setup-python's cache
  restore step was timing out on a connect (ETIMEDOUT) before
  falling back and continuing anyway. Removed since deps here are
  tiny and a cold install costs seconds, not minutes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-02 18:25:56 -04:00
soconnorandClaude Sonnet 5 9f26098954 Fix Poke webhook: verify success field, point key setup to Kitchen
CI / build (push) Canceled after 0s
CI / docker (push) Canceled after 0s
Build & Push Container Image / build-and-push (push) Canceled after 0s
CI / lint (push) Canceled after 7m3s
- forward_to_poke now checks the response's success field instead of
  trusting the HTTP status alone; Poke can return 200 with
  success: false on a soft failure, which was previously logged and
  treated as delivered.
- README/start.sh pointed users to Settings > Advanced for the API
  key, which issues a legacy pk_ key incompatible with the
  inbound/api-message endpoint this project uses. Now points to
  poke.com/kitchen -> API Keys for a V2 key.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-02 18:18:56 -04:00
soconnor 35e4d3da86 fix: make docker build/push work with Gitea
CI / lint (push) Successful in 9m22s
CI / build (push) Successful in 9m21s
Build & Push Container Image / build-and-push (push) Successful in 48s
CI / docker (push) Successful in 23s
- Replace type=gha cache (broken on Gitea: unparseable runtime token)
  with type=registry cache using image-manifest/oci-mediatypes options
  that the Gitea registry accepts.
- Push with a Gitea PAT (REGISTRY_TOKEN) since the auto job token
  cannot publish OCI images to the package repo.
- Add registry login to the CI docker smoke-test job.
2026-08-02 16:54:15 -04:00
soconnor 6d1d274457 fix: make ruff lint pass in CI
CI / lint (push) Successful in 4s
CI / build (push) Successful in 9m20s
Build & Push Container Image / build-and-push (push) Failing after 10s
CI / docker (push) Successful in 28s
Add .ruff.toml ignoring BLE001/S110 (intentional mail parsing), apply
ruff auto-fixes (imports, Optional->X|None), and fix format, shebang and
PORT env default.
2026-08-02 16:23:46 -04:00
soconnor b3e44d8ffb fix: update branch references from main to master in CI and publish workflows
CI / lint (push) Failing after 41s
CI / build (push) Successful in 9m33s
CI / docker (push) Skipped
Build & Push Container Image / build-and-push (push) Failing after 2m13s
2026-08-02 16:09:26 -04:00
soconnor a04bd8dedb feat: add CI and publish workflows for container image 2026-08-02 16:07:38 -04:00
soconnor eee315fe3d fix read-only behavior 2026-08-02 16:07:16 -04:00