Commit Graph
2464 Commits
Author SHA1 Message Date
Matthew Meszaros 67c4dbfdfb feat: add API key and webhook management agent tools gated on manage-api-keys and manage-settings 2026-07-22 17:05:37 +02:00
Matthew Meszaros 1efc722458 feat: add JWT-only team, org-settings, voice-profile, and read-only billing agent tools that API keys and MCP cannot reach 2026-07-22 17:05:37 +02:00
Matthew Meszaros 49507b0244 feat: add mailbox management agent tools for reading, updating sending limits and warmup, tracking domains, warmup appeals, and disconnecting a mailbox 2026-07-22 17:05:37 +02:00
Matthew Meszaros 64ccd1b273 feat: add send_reply and compose_email agent tools as RiskSend with a recipient-suppression gate, so the assistant can send with per-action approval and never over MCP 2026-07-22 17:05:37 +02:00
Matthew Meszaros ae99322f29 feat: add unified-inbox agent tools for mark-seen, thread labels, snooze, and scheduled-send review and cancel 2026-07-22 17:05:24 +02:00
Matthew Meszaros 6d8385c89e feat: add campaign sequence-step agent tools to list, add, update, and delete steps 2026-07-22 17:05:24 +02:00
Matthew Meszaros 2efffda0f6 feat: add campaign get, update, delete, sender-set, tracking-domain verify, and logs agent tools 2026-07-22 17:05:24 +02:00
Matthew Meszaros 66c49bddc0 feat: add full CRM agent tools covering deals, tasks, task types, notes, pipelines, and stages end to end 2026-07-22 17:05:24 +02:00
Matthew Meszaros 2fba098313 feat: add contact create, delete, bulk-edit, timeline, and sent-email agent tools, each gated by the caller's contact permission and org 2026-07-22 17:05:24 +02:00
Matthew Meszaros 97461cd0cb feat: expand aitools Deps with mailbox, send, compose, warmup, sequence, org, api-key, webhook, subscription, and suppression services and register the new tool groups 2026-07-22 17:05:24 +02:00
Matthew Meszaros 0f86917880 feat: add a JWTOnly gate to the aitools registry so tools whose HTTP route has no API-key scope are hidden from API-key and MCP callers 2026-07-22 17:05:24 +02:00
Matthew Meszaros 887106c3d9 feat: add BuildInlineSnippetRules humanization prompt for AI variables so inline fragments read plainly and fit the surrounding sentence instead of copywriting rhythm 2026-07-22 17:05:08 +02:00
Matthew Meszaros 5bb449f682 feat: add the POST /generation/ai-variable preview endpoint that resolves a block for a sample or selected contact with the same credit semantics as write 2026-07-22 17:05:08 +02:00
Matthew Meszaros f2eddb0c4b feat: resolve per-recipient AI variables in the campaign task before tracking, threading surrounding email context and caching results per contact and step 2026-07-22 17:05:08 +02:00
Matthew Meszaros 8fc9cb7dba feat: add migration 000077 for the campaign_contact_progress ai_variables_resolved cache column so retried sends never regenerate a snippet 2026-07-22 17:05:08 +02:00
Matthew Meszaros ef713d2c7b feat: register the contacts custom-fields and generation ai-variable routes with matching view_contacts and use_ai permission gates 2026-07-22 17:04:51 +02:00
Matthew Meszaros d25f635b72 feat: add ListCustomFieldKeys to the contact service and repository plus the GET /contacts/custom-fields handler returning the org's distinct contact custom-field keys 2026-07-22 17:04:51 +02:00
Matthew Meszaros c1c9a31b1f Merge pull request #82 from warmbly/warmup/messaging-automation
Automate warmup content and replies
2026-07-22 12:44:04 +02:00
Matthew Meszaros f768029ec0 feat: automate warmup conversation generation, coherent replies, adaptive rotation, and admin observability 2026-07-22 12:11:19 +02:00
Matthew Meszaros bb040828b1 feat: rework automation AI steps to mirror campaign step types with one agentic AI step plus an AI switch, per-case switch handles on the canvas, a Stop node, and a step-type add menu 2026-07-22 10:58:35 +02:00
Matthew Meszaros 66aaaa6584 feat: add an ai agent step to campaign sequences 2026-07-21 17:35:11 +02:00
Matthew Meszaros 93b64e2afa feat: add shared run time listing and arg resolving for ai agents 2026-07-21 17:35:11 +02:00
Matthew Meszaros a44b7b0215 feat: add the unified ai step and ai switch to automations 2026-07-21 17:35:11 +02:00
Matthew Meszaros b465f30d42 fix: scope account analytics by org id not user id 2026-07-21 17:34:59 +02:00
Matthew Meszaros 912a07b6e1 feat: make the sandbox seed a full realistic demo org 2026-07-21 17:34:59 +02:00
Matthew Meszaros 8055c2f05f Merge remote-tracking branch 'origin/main' into self-host/local-stack
# Conflicts:
#	cmd/backend/main.go
2026-07-20 11:53:21 +02:00
Matthew Meszaros bbc1377a80 fix: point sandbox mailboxes at the worker that actually runs, seed that worker row, and wire in the analytics dataset 2026-07-20 11:12:37 +02:00
Matthew Meszaros 332851a0d3 feat: seed deliverability, contact activity, reply intents, suppression, mailbox errors, an audit trail, a teammate, an api key, and completed/paused campaigns for the sandbox 2026-07-20 11:12:37 +02:00
Matthew Meszaros 897da46e6c feat: drop the cloud-provisioning and billing admin routes 2026-07-20 09:56:29 +02:00
Matthew Meszaros 866e096a2b feat: add a billing-off mode that unlocks every feature 2026-07-20 09:56:17 +02:00
Matthew Meszaros fc91d71492 feat: make google, apple and turnstile optional at boot 2026-07-20 09:56:17 +02:00
Matthew Meszaros f94215d27a feat: move kafka behind a build tag so the default build is cgo-free 2026-07-20 09:56:16 +02:00
Matthew Meszaros fb853ea23d refactor: publish mailbox validation over the bus and drop the raw kafka producer 2026-07-20 09:56:16 +02:00
Matthew Meszaros 19f753e163 refactor: route worker events and tracking through the event bus 2026-07-20 09:56:16 +02:00
Matthew Meszaros e8de52ce30 refactor: put the task client behind a scheduler interface 2026-07-20 09:56:16 +02:00
Matthew Meszaros e38de91fec feat: add an in-process postgres task scheduler so delayed sends need no cloud tasks 2026-07-20 09:56:02 +02:00
Matthew Meszaros 8de314ae8b feat: serve public blobs from the backend and fix avatar uploads on filesystem 2026-07-20 09:56:02 +02:00
Matthew Meszaros 0f1886b9dd feat: add a filesystem blob storage backend 2026-07-20 09:56:02 +02:00
Matthew Meszaros 7e84da7f2a feat: add config helpers for the provider switches 2026-07-20 09:56:01 +02:00
Matthew Meszaros d90e07659e chore: remove the dead astra/cassandra code and deps 2026-07-20 09:56:01 +02:00
Matthew Meszaros 85ab4ad7b5 feat: replace the notification email cadence enum with a configurable bundling window and drop the instant mode entirely: email_digest_minutes (30 minute floor, 30 default, 1440 max, constants in config) replaces email_digest with no per-event option or NOTIFICATION_EMAIL_ALLOW_INSTANT escape hatch, the handler validates the range and email_delivery now returns min/max minutes so clients render the bounds, the web settings page offers window presets (30m/1h/3h/daily) plus a Custom minutes NumberInput and iOS swaps the cadence menu for window presets including the server value when it matches none, the repo clamps stored values on read, and the guide plus deployment guide describe the window and keep only the NOTIFICATION_EMAIL_DAILY_CAP env 2026-07-20 08:01:22 +02:00
Matthew Meszaros 682ef3ac24 feat: cost guards on the notification email channel: the per-event instant cadence becomes self-host opt-in (NOTIFICATION_EMAIL_ALLOW_INSTANT, default off - PUT rejects it, stored values read back as smart, holds degrade to smart) with the capability exposed as email_delivery on the preferences GET so web and iOS hide the option on hosted deploys, each user gets a rolling 24h budget of non-security notification emails (NOTIFICATION_EMAIL_DAILY_CAP, default 25, 0 unlimited) counted off sent rows with over-budget alerts skipped to the in-app feed while security sign-ins always send, and coalesced group emails re-verify org membership at flush time so a member removed during the hold is dropped from To; deployment guide documents the three envs and the guide notes both limits 2026-07-20 07:44:43 +02:00
Matthew Meszaros a534ef1908 feat: notification email channel becomes digest-first: email-channel notifications queue as pending rows (migration 000076 adds group_key/email_state/email_due_at/email_attempts) with a due time from a new per-user email_digest cadence (instant/smart 15m/hourly/daily, security sign-ins always immediate), a 30s flush loop with SKIP LOCKED claims bundles a user's pending rows into one digest email and coalesces org-shared group_key events into a single email with every recipient in To, reading a notification in-app cancels its pending email, and NotifyOrg targets only members holding a permission (Slack fires once per group) with new producers: dead-worker downtime to manage_emails members (SetNX-deduped per incident), trial expiry to manage_billing members via new billing_alert category (replacing the direct owner email), and invitation accepts to manage_team members via new team_activity category 2026-07-20 07:16:25 +02:00
Matthew Meszaros f20300a280 feat: tag-scoped auto mailbox pick on compose: POST /unibox/compose accepts from_tag_id which restricts the automatic sender choice to active mailboxes carrying that tag (best-with-budget-first within the group, 400 when the tag has no active members, ignored with an explicit account; GetByTags is user-scoped so foreign tag ids resolve to no members) 2026-07-20 05:28:05 +02:00
Matthew Meszaros db400ac086 feat: undo send window on the backend: migration 000075 adds users.undo_send_seconds (default 30, CHECK 5-120), emailsend queues instant sends (compose, reply, agent-draft approvals) that many seconds into the future so the existing DELETE /unibox/scheduled/:task_id cancel path can still stop them, the value rides /auth/me and a new JWT-only PUT /me/send-preferences updates it with bounds validation and user-cache invalidation 2026-07-19 18:45:50 +02:00
Matthew Meszaros e1750d8988 feat: add PATCH /emails/tags for bulk mailbox tagging: add_tags/remove_tags set semantics across up to 1000 mailboxes in one transaction (ownership of both mailboxes and tags enforced in SQL so stale ids are skipped, composite-PK insert makes re-adds no-ops), naturally idempotent so no Idempotency-Key needed, one audit entry with account/added/removed counts riding the email_account spine, and the endpoint registered in the docs scope map under WRITE_EMAILS 2026-07-19 16:13:43 +02:00
Matthew Meszaros f7a1027367 feat: add workspace-shared assistant history: a manage_settings toggle on the organization (assistant_shared_history, off by default) makes every conversation visible to and continuable by every member with the use-AI permission — the service resolves a session to its owner's rows so open/continue/approve/delete all work cross-member while credits still charge the acting member, the org-wide listing joins owner names for attribution in the history rail, the workspace settings page gains the AI assistant section with the toggle and an explicit exposure warning, and the assistant guide's access and privacy sections describe both modes 2026-07-19 13:22:56 +02:00
Matthew Meszaros 68e3ca6b6b feat: extend the per-member AI limit to all three windows: member_limit_daily and member_limit_weekly join the monthly ceiling on org_ai_settings, MemberSpentInWindows sums the acting member's debits per window in one query, checkSpendLimits enforces day/week/month member ceilings with window-specific 429 messages, and the billing card's Per-member limits row grows the same three fields as the workspace caps 2026-07-19 13:22:56 +02:00
Matthew Meszaros 458234cd5d feat: add clear-all assistant history: DELETE /ai/sessions wipes every conversation the member owns in the workspace (transcripts cascade, count returned, audited as an ai_session delete with clear_history metadata), the history rail gains a Clear history footer action behind the in-app confirm that also closes all session-backed tabs, and the assistant guide documents access gating, per-member limits, privacy, and both delete paths 2026-07-19 11:05:18 +02:00
Matthew Meszaros f4014b8b73 feat: add a per-member monthly AI credit limit to the org spend controls: new member_limit_monthly on org_ai_settings flows through the settings repo, PATCH endpoint, and billing UI (its own Per-member limit field on the AI usage card), and checkSpendLimits enforces it by summing the acting member's debits this calendar month via the ledger's actor attribution (new MemberSpentSince query on the partial index from migration 000073), returning a 429-mapped member-limit error while unattributed scheduled work stays exempt 2026-07-19 11:05:18 +02:00