Spaces:
Running
Running
Commit History
-
Mission M-D β Flow Builder Revampβ
Ashraf Al-Kassem +1: Claude Sonnet 4.6- Unlocks CONDITION and WAIT_DELAY nodes (no longer blocked from publish) - Adds PARALLEL, AGENT_HANDOFF, QUALIFICATION_GATE, INTENT_ROUTER node types - builder_translator.translate() now returns dual output: (definition_json, adk_pipeline_config) - New translate_to_adk_pipeline() function maps builder graph β ADK orchestrator config - FlowVersion.adk_pipeline_config column (JSON) populated on publish - ExecutionInstance.resume_at + resume_node_id columns for WAIT_DELAY resumption - Alembic migration s9t0u1v2w3x4 - build_orchestrator() accepts pipeline_config; applies builder tone/routing overrides - build_reply_agent() accepts tone + max_length params - Celery: resume_waiting_instances_task (every 60s) resumes WAITING instances - Frontend: ActionNode multi-handle (CONDITION: true/false, QUALIFICATION_GATE: qualified/unqualified) - Frontend: NodePalette groups (Triggers, Agent Nodes, Flow Control, Routing) - Frontend: full config forms for all new node types - 352 tests passing (8 new)β¦68e389f -
Mission M-A β ADK Core Integrationβ
Ashraf Al-Kassem +1: Claude Sonnet 4.6Replace sequential MVP runtime with Google ADK LlmAgent + tool system. The AI now autonomously decides which tools to call (send_reply, upsert_zoho_lead, escalate_to_human, tag_contact) instead of walking a fixed node graph. Changes: - Add google-adk>=1.0.0 to requirements.txt (installed: 1.27.3) - Make ExecutionStepLog.node_id nullable (Alembic migration p6q7r8s9t0u1) - Create app/core/adk/ package: tools.py, agent.py, runner.py - tasks.py: replace execute_instance() call with run_for_contact() - runtime.py: remove execute_instance + handle_ai_reply (ADK handles AI now) - 6 new tests in test_adk_runner.py β 333/333 passing Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>695c56b
-
feat: HuggingFace dataset export β ashrafkassem/leadpilot-dataβ
Ashraf Al-Kassem +1: Claude Sonnet 4.6- Add export_to_hf.py script: exports 12 automation templates + 3 plans (static) and all user-generated data (contacts, conversations, messages, flows, executions, audit logs) with PII pseudonymized via SHA-256 hashes - Add export_to_hf_task Celery Beat task (daily 02:00 UTC), no-ops silently if HF_TOKEN is not set so existing deployments are unaffected - Add HF_TOKEN and HF_DATASET_REPO settings to config.py - Link HF Space β dataset via datasets: YAML in README.md - Dry-run: python scripts/export_to_hf.py --dry-run Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1648997 -
feat: Mission 34 β Admin Plan Overrides + Expiry + Audit Trailβ
Ashraf Al-Kassem +1: Claude Sonnet 4.6- Add PlanOverride model (time-bound workspace plan grants) - Update entitlement resolver: override > base plan precedence with self-heal - Expose plan_source + override_expires_at in GET /entitlements - Add admin_plans.py: 3 endpoints (plan-status, plan-override, revoke) - Celery beat job expire_plan_overrides_task every 5 min - Admin workspace detail UI: Plan Override card with apply/revoke form - 3 admin-api.ts methods for override CRUD - Alembic migration m3n4o5p6q7r8 for planoverride table - 6 passing tests: apply, self-heal, worker expiry, revoke, dedup, audit Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>a21ab3d
-
feat: Mission 31 β Meta Platform: Instagram DM, Messenger, and Lead Ads Full Lifecycleβ
Ashraf Al-Kassem +1: Claude Opus 4.6- OAuth 2.0 connect flow (start + callback with JWT state, token exchange chain) - Webhook subscription API (auto-subscribe after OAuth, manual trigger endpoint) - Message normalization: Instagram DM + Messenger channel discrimination, attachment parsing - Meta delivery/read status webhooks via watermark-based updates - Lead Ads ingestion: fetch lead data from Graph API, enrich contacts - MetaAdapter: send_media implementation + get_user_profile - Dispatch service: Meta media dispatch (mirrors WhatsApp pattern) - Channel-level observability metrics (instagram/messenger discrimination) - 21 new tests (288 total), all passing + 15/15 E2E checks Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>eed40fb -
feat: Mission 30 β WhatsApp Cloud Production Hardeningβ
Ashraf Al-Kassem +1: Claude Opus 4.6- Webhook signature enforcement (HMAC SHA-256) + payload size guard (1MB) - Delivery status lifecycle: DELIVERED/READ/DEAD_LETTER statuses with forward-only progression - Phone number normalization (digits-only) to prevent duplicate contacts - Media message handling: inbound image/audio/video/document parsing + local storage - Dead-letter queue: endpoints for listing and retrying permanently failed messages - Adapter abstraction: MessagingAdapter ABC for WhatsApp and Meta adapters - Observability: in-memory metrics service + admin metrics endpoint - Celery worker fix: expire_on_commit=False prevents MissingGreenlet errors - Catalog registry updated with new delivery statuses - 21 new tests (267 total), all passing Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>f187462
-
fix: resolve 149 ruff lint violations for CI pipelineβ
Ashraf Al-Kassem +1: Claude Opus 4.6- Auto-fix 104 unused imports (F401) across 40 files - Fix F821: add missing `wrap_error` import in diagnostics.py - Fix F841: remove unused `now` variables in auth.py - Fix E722: replace bare `except` with `except Exception` in dispatch - Fix re-exports: explicit `as` syntax for meta/whatsapp __init__.py - Update pyproject.toml ruff config: - Ignore E711/E712 (SQLAlchemy needs `== None`/`== False`) - Ignore E402/E701 (intentional patterns in workers/tests) - Add per-file ignores for alembic/ and tests/ All 197 tests pass. Ruff checks clean. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>b1aa633 -
feat: Mission 27 β Automation Builder v2 + Template Catalog Foundationβ
Ashraf Al-Kassem +1: Claude Sonnet 4.6- Visual canvas editor (ReactFlow @xyflow/react v12) with TriggerNode, ActionNode, NodePalette, NodeConfigPanel - FlowDraft model: per-flow mutable builder graph, separate from immutable FlowVersion - Builder v2 endpoints: GET/PUT draft, validate, publish, simulate, rollback, versions - builder_translator.py: validate_graph, translate, simulate β 21 unit tests passing - AutomationTemplate + AutomationTemplateVersion with admin CRUD + workspace clone - GET/POST /templates/ workspace catalog; POST /templates/:slug/clone - Admin: GET/POST /admin/templates, versions, publish endpoints - Alembic migration g7h8i9j0k1l2 + merge migration 2163b9b16da8 (M20+M27) - Frontend: automations-api.ts, templates-api.ts; admin/templates pages - All 57 tests passing Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>d4d1956
-
feat: Mission 18 β High-Volume Runtime Event Trailβ
Ashraf Al-Kassem +1: Claude Opus 4.6Unified runtime event logging across all subsystems (webhooks, runtime execution, dispatch, email, inbox, Zoho sync) with retention policies, correlation IDs, and support replay capabilities. - RuntimeEventLog model with 4 composite indexes + JSON related_ids - Non-throwing log_event() service with payload redaction (SG.*, Bearer, truncation) - Instrumented ~30 flows: webhook (5), runtime (8), dispatch (6), inbox (2), email (3) - Support Timeline API: workspace-scoped with JSON path filters - Admin Runtime Events: cross-workspace list/detail with full filter set - Frontend: TimelinePanel in inbox + admin runtime-events page - Celery beat daily purge (03:00 UTC, batch 1000) - Alembic migration e5f6g7h8i9j0 - 8 unit tests + 98 E2E tests passing Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>eab9f11
-
fix: add missing backend application code (app/, migrations, tests, templates)β
Ashraf Al-Kassem +1: Claude Opus 4.6The initial full project commit omitted the core backend directories. This adds the complete backend application package including all API routes, models, services, workers, 10 Alembic migrations, 13 test files (57 tests), and email templates. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>8ca4657