autotouch-cli 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- autotouch_cli-0.2.1/PKG-INFO +171 -0
- autotouch_cli-0.2.1/autotouch_cli.egg-info/PKG-INFO +171 -0
- autotouch_cli-0.2.1/autotouch_cli.egg-info/SOURCES.txt +59 -0
- autotouch_cli-0.2.1/autotouch_cli.egg-info/dependency_links.txt +1 -0
- autotouch_cli-0.2.1/autotouch_cli.egg-info/entry_points.txt +3 -0
- autotouch_cli-0.2.1/autotouch_cli.egg-info/requires.txt +2 -0
- autotouch_cli-0.2.1/autotouch_cli.egg-info/top_level.txt +1 -0
- autotouch_cli-0.2.1/docs/README.md +162 -0
- autotouch_cli-0.2.1/pyproject.toml +22 -0
- autotouch_cli-0.2.1/scripts/__init__.py +1 -0
- autotouch_cli-0.2.1/scripts/add_column_unique_index.py +112 -0
- autotouch_cli-0.2.1/scripts/attach_csv_import_leads_to_research_table.py +130 -0
- autotouch_cli-0.2.1/scripts/bundle_sequences_backend.py +250 -0
- autotouch_cli-0.2.1/scripts/check_agent_traces.py +125 -0
- autotouch_cli-0.2.1/scripts/check_column_mode.py +87 -0
- autotouch_cli-0.2.1/scripts/exit_terminal_leads_from_sequences.py +302 -0
- autotouch_cli-0.2.1/scripts/fetch_lead.py +12 -0
- autotouch_cli-0.2.1/scripts/fix_lead_titles_from_csv.py +217 -0
- autotouch_cli-0.2.1/scripts/migrations/20250106_add_column_position.py +66 -0
- autotouch_cli-0.2.1/scripts/migrations/20250108_fix_legacy_column_fields.py +91 -0
- autotouch_cli-0.2.1/scripts/migrations/20250109_add_user_fields_to_tables.py +84 -0
- autotouch_cli-0.2.1/scripts/migrations/20250117_add_call_logs_webhook_indexes.py +84 -0
- autotouch_cli-0.2.1/scripts/migrations/20250117_rename_call_logs_collection.py +91 -0
- autotouch_cli-0.2.1/scripts/migrations/20250119_create_leads_unique_email_index.py +263 -0
- autotouch_cli-0.2.1/scripts/migrations/20250123_add_filter_indexes.py +134 -0
- autotouch_cli-0.2.1/scripts/migrations/20250123_add_llm_responses_collection.py +108 -0
- autotouch_cli-0.2.1/scripts/migrations/20250128_migrate_user_ids_to_objectid.py +166 -0
- autotouch_cli-0.2.1/scripts/migrations/20250208_backfill_task_research_values.py +150 -0
- autotouch_cli-0.2.1/scripts/migrations/20250604_add_origin_indexes.py +52 -0
- autotouch_cli-0.2.1/scripts/migrations/20250608_cleanup_agent_metadata.py +85 -0
- autotouch_cli-0.2.1/scripts/migrations/20250608_rename_agent_metadata_to_metadata.py +103 -0
- autotouch_cli-0.2.1/scripts/migrations/20250922_add_activity_indexes.py +215 -0
- autotouch_cli-0.2.1/scripts/migrations/20250926_migrate_single_to_arrays.py +465 -0
- autotouch_cli-0.2.1/scripts/migrations/20250928_add_missing_timestamp_fields.py +133 -0
- autotouch_cli-0.2.1/scripts/migrations/20250929_add_task_join_indexes.py +245 -0
- autotouch_cli-0.2.1/scripts/migrations/20250929_add_task_join_indexes_safe.py +107 -0
- autotouch_cli-0.2.1/scripts/migrations/20250929_create_shared_phone_cache.py +213 -0
- autotouch_cli-0.2.1/scripts/migrations/20251007_add_rows_position_id_index.py +46 -0
- autotouch_cli-0.2.1/scripts/migrations/20251109_add_ttl_for_llm_and_preview_traces.py +99 -0
- autotouch_cli-0.2.1/scripts/migrations/20260113_normalize_table_filter_operators.py +113 -0
- autotouch_cli-0.2.1/scripts/migrations/20260113_set_user_permissions_user_admin.py +100 -0
- autotouch_cli-0.2.1/scripts/migrations/20260204_sync_lead_owner_from_tasks.py +269 -0
- autotouch_cli-0.2.1/scripts/migrations/migrate_org_user_credits.py +117 -0
- autotouch_cli-0.2.1/scripts/migrations/set_default_lead_status.py +49 -0
- autotouch_cli-0.2.1/scripts/migrations/update_lead_owner_from_tasks.py +152 -0
- autotouch_cli-0.2.1/scripts/reassign_sequence_owner.py +136 -0
- autotouch_cli-0.2.1/scripts/run_sidecar_orchestrator_demo.py +106 -0
- autotouch_cli-0.2.1/scripts/smart_table_cli.py +1374 -0
- autotouch_cli-0.2.1/scripts/test_crm_company_policy.py +277 -0
- autotouch_cli-0.2.1/scripts/test_sequences_instantly_e2e.py +249 -0
- autotouch_cli-0.2.1/scripts/test_sequences_personal_e2e.py +215 -0
- autotouch_cli-0.2.1/scripts/test_task_error_logger.py +44 -0
- autotouch_cli-0.2.1/setup.cfg +4 -0
- autotouch_cli-0.2.1/tests/test_contactout_custom.py +227 -0
- autotouch_cli-0.2.1/tests/test_contactout_integration.py +214 -0
- autotouch_cli-0.2.1/tests/test_contactout_multi_titles.py +126 -0
- autotouch_cli-0.2.1/tests/test_contactout_pipeline.py +376 -0
- autotouch_cli-0.2.1/tests/test_contactout_simple.py +284 -0
- autotouch_cli-0.2.1/tests/test_contactout_v2_bulk.py +248 -0
- autotouch_cli-0.2.1/tests/test_lead_required_fields.py +122 -0
- autotouch_cli-0.2.1/tests/test_phone_provider_pipeline.py +651 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: autotouch-cli
|
|
3
|
+
Version: 0.2.1
|
|
4
|
+
Summary: Autotouch Smart Table CLI
|
|
5
|
+
Requires-Python: >=3.9
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
Requires-Dist: requests>=2.31.0
|
|
8
|
+
Requires-Dist: python-dotenv>=1.0.0
|
|
9
|
+
|
|
10
|
+
# Smart Table Documentation
|
|
11
|
+
|
|
12
|
+
This README is the front door to the `docs/` folder. Treat it as both the table of contents and the checklist that tells you which neighbouring docs must be updated when you change the product.
|
|
13
|
+
|
|
14
|
+
## How to use this README
|
|
15
|
+
|
|
16
|
+
- Start with **Where to look depending on the work** to route yourself to the right doc set before opening the repo.
|
|
17
|
+
- Use **Directory Map** when you need the canonical path for a document or when you are adding a new area of knowledge.
|
|
18
|
+
- Keep the sections below in sync: if you add a doc, rename a directory, or ship a new workflow, update this file in the same PR so the next contributor lands in the right place.
|
|
19
|
+
|
|
20
|
+
## Where to look depending on the work
|
|
21
|
+
|
|
22
|
+
- **Backend services or new integrations** - Begin with [development/backend/README.md](development/backend/README.md) for the target package layout, then confirm router/auth conventions + the canonical structure diagram in [platform/endpoint-patterns.md](platform/endpoint-patterns.md).
|
|
23
|
+
- **MongoDB query patterns (paved road)**: see [development/backend/mongo-paved-road.md](development/backend/mongo-paved-road.md) for preferred lookup/prefetch patterns. For production access and safe querying, see [operations/mongodb-access.md](operations/mongodb-access.md).
|
|
24
|
+
- **Sequence reply handling (Gmail/Outlook)**: use [systems/sequences.md](systems/sequences.md) for webhook/polling flow, `reply_tracking` correlation, `stopOnReply`, and enrollment exit behavior.
|
|
25
|
+
- **Frontend components, hooks, or shared UI patterns** - Start with [development/frontend/README.md](development/frontend/README.md), then review [development/frontend/component-patterns.md](development/frontend/component-patterns.md) and [development/frontend/type-system.md](development/frontend/type-system.md) before moving domain types.
|
|
26
|
+
- Enrichment dialogs now share a shell + column-picker pattern (documented in component-patterns). When updating Email/Phone/Lead/LLM modals, use `EnrichmentDialogShell` and `ColumnPicker` from shared UI to keep sizing, headers, and data-aware dropdowns consistent.
|
|
27
|
+
- Sequences now use the same workspace source selector pattern (research table chip) as Leads/Tasks; keep that wiring aligned with component-patterns.
|
|
28
|
+
- **Assist sidecar (Tasks) or JSON rendering** - Consult [development/frontend/sidecar-architecture.md](development/frontend/sidecar-architecture.md) for layout/interaction rules (including Conditional Smart Pins) and the current persistence model (`/api/sidecar/preferences` + local cache fallback), then [development/frontend/json-field-renderers.md](development/frontend/json-field-renderers.md) for typed renderers.
|
|
29
|
+
- **Notes / call disposition behavior** - See [platform/tasks-workspace.md](platform/tasks-workspace.md) (Tasks session orchestration, Sidecar context + lead notes), [features/immediate-followup.md](features/immediate-followup.md) (Call -> immediate manual follow-up pivot), and [data/tasks.md](data/tasks.md) (task completion + dialer dispositions).
|
|
30
|
+
- **Company insights / signals (dismiss/check feed)** - See [platform/insights.md](platform/insights.md) for the `insight_events` schema, endpoints, and call-sourced extraction flow. This is the foundation for future automated company signals (hiring, website, social).
|
|
31
|
+
- **AI drafts + step memory** - Start with [platform/drafts.md](platform/drafts.md) for the draft generator + payload mapping, then use [platform/ai-draft-send-tracking.md](platform/ai-draft-send-tracking.md) for how edits/sends refresh step memory (`step_training_profiles`) and how `_memory` is injected on subsequent drafts.
|
|
32
|
+
- **Usage/computing review** - See [platform/usage-and-compute-review.md](platform/usage-and-compute-review.md) for the current playbook to review billing usage, preview tracing, and compute telemetry. Supporting docs: [platform/credits.md](platform/credits.md), [development/backend/enrichment-service-usage.md](development/backend/enrichment-service-usage.md), [enrichment/preview/preview-and-improve.md](enrichment/preview/preview-and-improve.md), and [operations/azure-migration.md](operations/azure-migration.md) (for production log evidence).
|
|
33
|
+
- **Research table -> Tasks/Sequences flows** - Pair [platform/tasks-workspace.md](platform/tasks-workspace.md) with [systems/sequences.md](systems/sequences.md) and [features/immediate-followup.md](features/immediate-followup.md) plus the `research-table/` docs listed below to keep research_context and post-call follow-up behavior aligned.
|
|
34
|
+
- **Enrichment/LLM verification pipelines** - Review the `enrichment/` guides (preview, agent skills/overview) and [enrichment/hallucination-prevention.md](enrichment/hallucination-prevention.md) before modifying agent orchestration.
|
|
35
|
+
- **Operations, deployments, and worker health** - Start with [operations/README.md](operations/README.md) and [operations/deployment-quickstart.md](operations/deployment-quickstart.md), then pair with `workers/` queue docs (moving into `operations/`) to troubleshoot clusters and Celery topology. Worker tasks are now domain-split under `apps/workers/tasks/` (communications, enrichment `{llm|research|formula}`, leads `{finders|ingest|export}`, data_io, email schedulers, orchestration, ops); keep `apps/workers/tasks/README.md` updated when moving or rerouting tasks. Backend helpers: use `apps/workers/utils/` (shared/API-safe) or `apps/workers/utils/common/` (worker-only). Frontend/system helpers stay under their system (e.g., `apps/web/src/systems/*/utils/`).
|
|
36
|
+
- **Support / internal-admin workflows (impersonation)** - See [platform/authentication.md](platform/authentication.md#internal-admin-impersonation) and [operations/demo-accounts.md](operations/demo-accounts.md). Note: impersonation is org-context, but some user-scoped features (notably the dialer) require a real user in the target org.
|
|
37
|
+
- **Twilio media streams + transcription** - Start with [integrations/twilio/media-streams-transcription.md](integrations/twilio/media-streams-transcription.md), then cross-check [integrations/dialer-integration.md](integrations/dialer-integration.md) and [integrations/twilio/overview.md](integrations/twilio/overview.md). Includes transcription gating + wrap‑up timing anchor rules.
|
|
38
|
+
- **Lead contact channel status (bad phone / bounced email)** - Use [integrations/dialer-integration.md](integrations/dialer-integration.md), [data/leads.md](data/leads.md), and [data/email.md](data/email.md). Canonical backend writes live in `apps/api/services/leads/contact_status.py`.
|
|
39
|
+
- Monthly ContactOut provider QA workflow (hard Twilio vs soft-signal review) is in [operations/contactout-monthly-phone-quality-review.md](operations/contactout-monthly-phone-quality-review.md).
|
|
40
|
+
- **Import flows (CSV / Webhook / CRM / Leads)** - Start with [platform/import-patterns.md](platform/import-patterns.md) for the shared import shell, status contract, and anti-flood guardrails. Then use [systems/leads-imports.md](systems/leads-imports.md), [integrations/crm-imports.md](integrations/crm-imports.md), and [platform/realtime-events.md](platform/realtime-events.md) for domain behavior and event contracts. Keep shared status/polling infrastructure in `apps/api/services/shared/imports/` and `apps/web/src/shared/imports/`; keep row/domain ingestion logic under the domain service/worker packages.
|
|
41
|
+
- **Domain modeling questions (leads, companies, activities)** - Check `data/` research notes (including `research-table/guides/add-to-leads.md`) before adjusting schemas or contracts.
|
|
42
|
+
- **Agent/API integrations (developer keys, scopes, table automation)** - Start with [platform/authentication.md](platform/authentication.md#developer-api-keys) for key/scoping auth rules, then [research-table/reference/tables-api.md](research-table/reference/tables-api.md#developer-api-workflow-endpoints) for the executable endpoint workflow and [platform/credits.md](platform/credits.md) for billable/non-billable behavior.
|
|
43
|
+
- CLI distribution + local auth bootstrap (`autotouch auth set-key`, `pipx install autotouch-cli`) are documented in [research-table/reference/tables-api.md](research-table/reference/tables-api.md#public-cli-quickstart-autotouch).
|
|
44
|
+
|
|
45
|
+
## Directory Map (Where to Start)
|
|
46
|
+
|
|
47
|
+
- [platform/](platform/) - Core platform behavior (auth, tenancy, API conventions, Smart Table structure, end-to-end prospecting lifecycle).
|
|
48
|
+
- [platform/authentication.md](platform/authentication.md) - Auth system, developer API keys/scopes, tenancy rules, and internal-admin impersonation.
|
|
49
|
+
- [platform/credits.md](platform/credits.md) - Credit policy (what charges when), ledger invariants, and UI semantics on insufficient balance.
|
|
50
|
+
- [platform/email/](platform/email/) - Email management (blacklist, policies). See [platform/email/blacklist.md](platform/email/blacklist.md).
|
|
51
|
+
- [platform/endpoint-patterns.md](platform/endpoint-patterns.md) - Canonical backend routing/auth/filtering patterns, including Sequences orchestrator/scheduler/webhooks.
|
|
52
|
+
- [platform/permissions.md](platform/permissions.md) - Permission matrix, enforcement helpers, rollout checklist.
|
|
53
|
+
- [platform/realtime-events.md](platform/realtime-events.md) - Socket event contracts, including bulk operation progress payloads.
|
|
54
|
+
- [platform/import-patterns.md](platform/import-patterns.md) - Canonical import architecture: shared shell + status contract, domain-specific processors, and anti-flood defaults.
|
|
55
|
+
- [platform/tasks-workspace.md](platform/tasks-workspace.md) - Tasks workspace behavior (research-column formatting, scope defaults, research-table restrictions when creating tasks).
|
|
56
|
+
- [systems/sequences.md](systems/sequences.md) - Legacy "Add to campaign" sync: provider detection, merge-variable mapping, Instantly/Smartlead webhook flows.
|
|
57
|
+
- [platform/ai_company_research.md](platform/ai_company_research.md) - AI Company Research pipeline: forked list-builder flow, condition columns, and neural-search batching rules.
|
|
58
|
+
- [platform/insights.md](platform/insights.md) - Company insights feed (`insight_events`): dismiss/check UX, endpoints, and call-sourced extraction flow (foundation for future company signals).
|
|
59
|
+
- [platform/drafts.md](platform/drafts.md) - Draft generation service used by sequences/tasks (LLM meta prompts + task drafts).
|
|
60
|
+
- [platform/ai-draft-send-tracking.md](platform/ai-draft-send-tracking.md) - How AI drafts are tracked (generate vs send/complete) and how edits refresh step memory used by `_memory`.
|
|
61
|
+
- [systems/](systems/) - System-specific architecture docs and feature wiring.
|
|
62
|
+
- [systems/README.md](systems/README.md) - Entry point for system docs.
|
|
63
|
+
- [systems/sequences.md](systems/sequences.md) - Sequences tool architecture, endpoints, scheduler/webhook scaffold, and the Instantly/Smartlead provider bridge.
|
|
64
|
+
- Enrollment now persists `research_context` plus `research_snapshot.row_id` per lead; integration mode pushes normalized variables into provider campaigns.
|
|
65
|
+
- [systems/leads-crm.md](systems/leads-crm.md) - Leads CRM workspace behavior, research context, and UI decisions.
|
|
66
|
+
- [systems/leads-imports.md](systems/leads-imports.md) - CSV lead imports, mapping, dedupe, and company linkage.
|
|
67
|
+
- [systems/leads-query-endpoint.md](systems/leads-query-endpoint.md) - Leads query endpoint contract and filtering payloads.
|
|
68
|
+
- [development/](development/) - Engineering practices and coding patterns.
|
|
69
|
+
- [development/backend/](development/backend/) - Service architecture and migration guidance; start with [development/backend/README.md](development/backend/README.md) when adding/moving services.
|
|
70
|
+
- [development/backend/chat-service.md](development/backend/chat-service.md) - Provider-agnostic streaming Chat service (SSE message frames, adapters, env vars, persistence roadmap).
|
|
71
|
+
- [development/backend/mongo-paved-road.md](development/backend/mongo-paved-road.md) - Preferred MongoDB lookup/prefetch patterns (avoid N+1, keep projections tight, index-friendly query shapes).
|
|
72
|
+
- [development/backend/enrichment-service-usage.md](development/backend/enrichment-service-usage.md) - Unified preview streaming schema and entry points.
|
|
73
|
+
- [development/backend/helpers.md](development/backend/helpers.md) - Shared backend helpers (research snapshots, context providers, lead/company services) plus the unified enrichment schema used by drawers and cells.
|
|
74
|
+
- [development/backend/mcp-tools-integration.md](development/backend/mcp-tools-integration.md) - MCP tool integration + registry scaffolding for chat tool frames.
|
|
75
|
+
- [development/backend/review-checklist.md](development/backend/review-checklist.md) - Backend checklist covering endpoints, streaming, limits, observability, security.
|
|
76
|
+
- [development/frontend/](development/frontend/) - System-first architecture references; start with [development/frontend/README.md](development/frontend/README.md).
|
|
77
|
+
- [development/frontend/README.md](development/frontend/README.md) - Frontend placement checklist and doc map.
|
|
78
|
+
- [development/frontend/component-patterns.md](development/frontend/component-patterns.md) - Table/toolbar architecture and shared checkbox behavior across research/leads/tasks.
|
|
79
|
+
- [development/frontend/command-palette.md](development/frontend/command-palette.md) - Global Cmd+K command palette roadmap and command-bar integration plan.
|
|
80
|
+
- [development/frontend/type-system.md](development/frontend/type-system.md) - Domain-driven type layout, audit checklist, maintenance guidance.
|
|
81
|
+
- [development/frontend/table-layout-persistence.md](development/frontend/table-layout-persistence.md) - How table layouts/sort/filters persist to localStorage and how to version/reset defaults.
|
|
82
|
+
- [development/frontend/sidecar-architecture.md](development/frontend/sidecar-architecture.md) - Assist sidecar geometry, Lead-first tabs, close/toggle behavior, AI chat composition, and Conditional Smart Pins (MVP rules).
|
|
83
|
+
- [development/frontend/sidecar-meta-prompt.md](development/frontend/sidecar-meta-prompt.md) - Meta prompt for continuing the Assist Sidecar + AI Chat implementation.
|
|
84
|
+
- [development/frontend/json-field-renderers.md](development/frontend/json-field-renderers.md) - Typed renderers, array slice chips, object micro-grids, raw JSON overlay, copy actions.
|
|
85
|
+
- [development/frontend/review-checklist.md](development/frontend/review-checklist.md) - Frontend checklist for sidecar/chat (geometry, perf, a11y, telemetry).
|
|
86
|
+
- [development/frontend/ai-elements.md](development/frontend/ai-elements.md) - Composition docs for AI chat UI primitives.
|
|
87
|
+
- [development/patterns.md](development/patterns.md) - End-to-end workflow tying backend and frontend practices together.
|
|
88
|
+
- [research-table/](research-table/) - Everything specific to the research table experience (concepts, guides, reference).
|
|
89
|
+
- [concepts/pinned-columns.md](research-table/concepts/pinned-columns.md) - Sticky/pinned column behavior, hover/shadow rules, and localStorage persistence per table.
|
|
90
|
+
- [guides/object-drawer.md](research-table/guides/object-drawer.md) - Row detail drawer interaction (hover swap, keyboard open, grouped vertical layout).
|
|
91
|
+
- [guides/add-to-leads.md](research-table/guides/add-to-leads.md) - Add-to-Leads flow, field mapping, and worker orchestration.
|
|
92
|
+
- [concepts/formatter-columns.md](research-table/concepts/formatter-columns.md) - JavaScript formatter columns (AI + manual formulas, dependency tracking, hybrid execution engine).
|
|
93
|
+
- [concepts/projection-columns.md](research-table/concepts/projection-columns.md) - JSON splits (virtual by default; optional materialization for fast filter/sort) with API contract, filtering, and export behavior.
|
|
94
|
+
- Reports (implementation notes and migrations):
|
|
95
|
+
- [reports/materialized-projection-columns.md](research-table/reports/materialized-projection-columns.md) - Materialized projections rollout notes (jobs, queues, routing, observability).
|
|
96
|
+
- [reference/research-context-coverage.md](research-table/reference/research-context-coverage.md) - `/research-context` coverage calculation, nested projection handling, limitations.
|
|
97
|
+
- [reference/filtering.md](research-table/reference/filtering.md) - End-to-end filtering semantics, operator matrix, Mongo vs Python routing, and column-run scoping (`filtered` vs `subset`) with the centralized run-scope resolver.
|
|
98
|
+
- [reference/formatter-editing.md](research-table/reference/formatter-editing.md) - Canonical formatter storage (`config.formula`), editing surfaces, lookup normalization, preview/run behavior, and troubleshooting.
|
|
99
|
+
- [reference/tables-api.md](research-table/reference/tables-api.md) - Table + column endpoints (column keys are unique per table; the backend owns suffixing and returns the final key; 409 is returned on conflicts).
|
|
100
|
+
- Socket ingress note: see [platform/realtime-events.md](platform/realtime-events.md#common-issues) - `/socket.io/*` must route to the API service in split ingress setups.
|
|
101
|
+
- Keep enrichment columns aligned with the unified schema in [development/backend/helpers.md](development/backend/helpers.md) so drawers render Steps/details consistently; see [enrichment/hallucination-prevention.md](enrichment/hallucination-prevention.md) for verification rules.
|
|
102
|
+
- Research Agent & Generator references live under `enrichment/`:
|
|
103
|
+
- [enrichment/concepts/prompt-generator-concepts.md](enrichment/concepts/prompt-generator-concepts.md)
|
|
104
|
+
- [enrichment/guides/prompt-generator-usage.md](enrichment/guides/prompt-generator-usage.md)
|
|
105
|
+
- [enrichment/reference/react-kernel.md](enrichment/reference/react-kernel.md)
|
|
106
|
+
- [enrichment/reference/assembler.md](enrichment/reference/assembler.md)
|
|
107
|
+
- [enrichment/reference/context-pipeline.md](enrichment/reference/context-pipeline.md)
|
|
108
|
+
- [enrichment/reference/placeholder-policy.md](enrichment/reference/placeholder-policy.md)
|
|
109
|
+
- [enrichment/reference/verification-pipeline.md](enrichment/reference/verification-pipeline.md)
|
|
110
|
+
- [integrations/](integrations/) - External system integrations (Aircall, RingCentral, auto-dialer).
|
|
111
|
+
- [integrations/dialer-integration.md](integrations/dialer-integration.md) - Auto-dialer backend integration: session/queue model, provider registry, endpoints.
|
|
112
|
+
- [integrations/twilio/media-streams-transcription.md](integrations/twilio/media-streams-transcription.md) - Twilio media streams + AssemblyAI transcription pipeline, storage, and training format.
|
|
113
|
+
- [integrations/twilio/](integrations/twilio/) - Managed Twilio dialer integration and local presence notes.
|
|
114
|
+
- [integrations/crm-imports.md](integrations/crm-imports.md) - CRM imports (Attio/HubSpot) status, config, and next steps for Research-table -> CRM workflows.
|
|
115
|
+
- [integrations/crm-roadmap.md](integrations/crm-roadmap.md) - CRM long-term vision and roadmap (imports now, exports/backfill, sync, activities later).
|
|
116
|
+
- [operations/](operations/) - Runbooks covering deployment, monitoring, and worker operations.
|
|
117
|
+
- [operations/deployment-quickstart.md](operations/deployment-quickstart.md) - Build/deploy, auth keys, routing, autoscaling, and post-deploy checks.
|
|
118
|
+
- [operations/contactout-monthly-phone-quality-review.md](operations/contactout-monthly-phone-quality-review.md) - Monthly ContactOut phone quality QA workflow (exports, hard evidence vendor packet, soft-signal analysis).
|
|
119
|
+
- [operations/azure-migration.md](operations/azure-migration.md) - AKS/ACR/Ingress/Redis migration status + runbook.
|
|
120
|
+
- Backend log access (AKS + Log Analytics) is documented under `operations/azure-migration.md#monitoring-aks--logs`.
|
|
121
|
+
- Incident audit (time-window logs, Mongo/Atlas correlation, checklist): [operations/incident-audit.md](operations/incident-audit.md).
|
|
122
|
+
- [operations/hardware.md](operations/hardware.md) - Current AKS hardware snapshot (nodes, allocatable, scheduling headroom).
|
|
123
|
+
- [operations/mongodb-migration-2025-11.md](operations/mongodb-migration-2025-11.md) - Atlas move (GCP -> Azure), current DB layout, and connection guidance.
|
|
124
|
+
- [operations/mongodb-access.md](operations/mongodb-access.md) - How to connect/query Mongo in production safely (uses `MONGODB_PROD_CONNECTION_STRING`).
|
|
125
|
+
- [operations/mongodb-ssl-handshake-troubleshooting.md](operations/mongodb-ssl-handshake-troubleshooting.md) - SSL/TLS handshake failures troubleshooting, connection pool tuning, and retry logic fixes.
|
|
126
|
+
- Slack monitoring: [operations/slack-error-logging.md](operations/slack-error-logging.md) (setup + config, automatic coverage, and credit alerts).
|
|
127
|
+
- [workers/](workers/) - Background job notes and queue-specific documentation (moving into `operations/`).
|
|
128
|
+
- [workers/celery.md](workers/celery.md) - Celery topology (communications/enrichment/leads/data_io/ops queues), deployment commands, routing patterns aligned with the domain-split worker tree.
|
|
129
|
+
- [workers/bulk-jobs.md](workers/bulk-jobs.md) - Bulk job orchestration (providers, status tracking, progress updates, adding a provider).
|
|
130
|
+
- Worker code layout: `apps/workers/tasks/README.md` (domain map + routing notes).
|
|
131
|
+
- [data/](data/) - Domain write-ups about leads, companies, activities, and related data-model research.
|
|
132
|
+
- [research-table/guides/add-to-leads.md](research-table/guides/add-to-leads.md) - How research tables pipe leads into the CRM.
|
|
133
|
+
- [enrichment/](enrichment/) - Contact enrichment overviews and guides.
|
|
134
|
+
- [enrichment/README.md](enrichment/README.md) - Entry point for enrichment docs.
|
|
135
|
+
- [enrichment/pipeline-conventions.md](enrichment/pipeline-conventions.md) - Shared real-time events, credits, and schema conventions for pipelines.
|
|
136
|
+
- [enrichment/preview/preview-and-improve.md](enrichment/preview/preview-and-improve.md) - LLM preview + coach architecture, agent skills for research.
|
|
137
|
+
- [enrichment/prompt-templates.md](enrichment/prompt-templates.md) - Prompt library templates (simple vs raw), mode/scope filtering, save/load behavior, and API shape.
|
|
138
|
+
- [enrichment/skills/README.md](enrichment/skills/README.md) - Research agent skills spec (YAML), discovery model, selector/assembler overview, authoring tips.
|
|
139
|
+
- [enrichment/SYSTEM_ARCHITECTURE.md](enrichment/SYSTEM_ARCHITECTURE.md) - Research agent architecture (ReAct loop, skills, MCP gateway/tools) and common pitfalls.
|
|
140
|
+
- [enrichment/research-agent-overview.md](enrichment/research-agent-overview.md) - Research agent one-pager (skills gating, MCP tools, preview vs batch, validation, config).
|
|
141
|
+
- [enrichment/hallucination-prevention.md](enrichment/hallucination-prevention.md) - LLM hallucination detection/prevention pipeline.
|
|
142
|
+
- [enrichment/AUDIT_HALLUCINATION_PREVENTION.md](enrichment/AUDIT_HALLUCINATION_PREVENTION.md) - Meta-prompt for auditing verification strictness.
|
|
143
|
+
- [enrichment/schema-generator.md](enrichment/schema-generator.md) - How `/api/llm/generate-schema` works, reasoning-field rules, and when auto-generated schemas are used.
|
|
144
|
+
- [enrichment/guides/provider-overrides.md](enrichment/guides/provider-overrides.md) - How to request specific providers/models when calling the MCP gateway.
|
|
145
|
+
- [enrichment/phone_finder/overview.md](enrichment/phone_finder/overview.md) - Phone discovery pipeline and Leads mapping.
|
|
146
|
+
- [enrichment/email_finder/overview.md](enrichment/email_finder/overview.md) - Email discovery + verification flow and Leads mapping.
|
|
147
|
+
- [enrichment/email_validation/overview.md](enrichment/email_validation/overview.md) - Validation-only pipeline with positional updates.
|
|
148
|
+
- [enrichment/lead_finder/overview.md](enrichment/lead_finder/overview.md) - Contact discovery at target companies (provider limits, retry strategy).
|
|
149
|
+
- [enrichment/lead_finder/research-table.md](enrichment/lead_finder/research-table.md) - Lead Finder as a research-table enrichment column (submission/parallel env controls, rate-limit handling).
|
|
150
|
+
- [enrichment/lead_finder/leads-crm.md](enrichment/lead_finder/leads-crm.md) - Bulk enrichment actions in the Leads CRM.
|
|
151
|
+
- [infra/](infra/) - Infrastructure provisioning notes and migration anchors.
|
|
152
|
+
- [infra/README.md](infra/README.md) - Entry point for infra docs.
|
|
153
|
+
- [infra/azure/README.md](infra/azure/README.md) - Azure provisioning inventory and commands.
|
|
154
|
+
- [meta/](meta/) - Temporary prompts, audits, and planning notes (not canonical product docs; intentionally not indexed here).
|
|
155
|
+
|
|
156
|
+
When you introduce a new document, decide where it belongs in this map and add (or update) the entry in the same pull request. If a directory description stops matching reality, fix it here while you are already in context.
|
|
157
|
+
|
|
158
|
+
## Keeping Docs Manageable
|
|
159
|
+
|
|
160
|
+
- Prefer focused documents over encyclopedias; split long write-ups into concept, guide, and reference files when possible.
|
|
161
|
+
- Cross-link related docs instead of duplicating large sections of content.
|
|
162
|
+
- Trim outdated context when updating a file; point to source code or dashboards for canonical details.
|
|
163
|
+
|
|
164
|
+
Whenever you touch the docs, glance at this README to confirm the structure still makes sense. Update it in the same pull request if the hierarchy shifts or if you create a new area so other contributors can navigate quickly.
|
|
165
|
+
|
|
166
|
+
## Keeping this README Accurate
|
|
167
|
+
|
|
168
|
+
- Update the **Directory Map** entry (and add new bullets) whenever you add, remove, or rename docs/directories.
|
|
169
|
+
- Extend **Where to look depending on the work** when a new workflow spans multiple areas so future contributors know which sibling docs to audit.
|
|
170
|
+
- Verify every link you touch in this file; keep them relative and clickable so the README remains the fastest navigation surface.
|
|
171
|
+
- Call out "docs README updated" in your PR description when you touch this file; reviewers should confirm the map still mirrors the repo.
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: autotouch-cli
|
|
3
|
+
Version: 0.2.1
|
|
4
|
+
Summary: Autotouch Smart Table CLI
|
|
5
|
+
Requires-Python: >=3.9
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
Requires-Dist: requests>=2.31.0
|
|
8
|
+
Requires-Dist: python-dotenv>=1.0.0
|
|
9
|
+
|
|
10
|
+
# Smart Table Documentation
|
|
11
|
+
|
|
12
|
+
This README is the front door to the `docs/` folder. Treat it as both the table of contents and the checklist that tells you which neighbouring docs must be updated when you change the product.
|
|
13
|
+
|
|
14
|
+
## How to use this README
|
|
15
|
+
|
|
16
|
+
- Start with **Where to look depending on the work** to route yourself to the right doc set before opening the repo.
|
|
17
|
+
- Use **Directory Map** when you need the canonical path for a document or when you are adding a new area of knowledge.
|
|
18
|
+
- Keep the sections below in sync: if you add a doc, rename a directory, or ship a new workflow, update this file in the same PR so the next contributor lands in the right place.
|
|
19
|
+
|
|
20
|
+
## Where to look depending on the work
|
|
21
|
+
|
|
22
|
+
- **Backend services or new integrations** - Begin with [development/backend/README.md](development/backend/README.md) for the target package layout, then confirm router/auth conventions + the canonical structure diagram in [platform/endpoint-patterns.md](platform/endpoint-patterns.md).
|
|
23
|
+
- **MongoDB query patterns (paved road)**: see [development/backend/mongo-paved-road.md](development/backend/mongo-paved-road.md) for preferred lookup/prefetch patterns. For production access and safe querying, see [operations/mongodb-access.md](operations/mongodb-access.md).
|
|
24
|
+
- **Sequence reply handling (Gmail/Outlook)**: use [systems/sequences.md](systems/sequences.md) for webhook/polling flow, `reply_tracking` correlation, `stopOnReply`, and enrollment exit behavior.
|
|
25
|
+
- **Frontend components, hooks, or shared UI patterns** - Start with [development/frontend/README.md](development/frontend/README.md), then review [development/frontend/component-patterns.md](development/frontend/component-patterns.md) and [development/frontend/type-system.md](development/frontend/type-system.md) before moving domain types.
|
|
26
|
+
- Enrichment dialogs now share a shell + column-picker pattern (documented in component-patterns). When updating Email/Phone/Lead/LLM modals, use `EnrichmentDialogShell` and `ColumnPicker` from shared UI to keep sizing, headers, and data-aware dropdowns consistent.
|
|
27
|
+
- Sequences now use the same workspace source selector pattern (research table chip) as Leads/Tasks; keep that wiring aligned with component-patterns.
|
|
28
|
+
- **Assist sidecar (Tasks) or JSON rendering** - Consult [development/frontend/sidecar-architecture.md](development/frontend/sidecar-architecture.md) for layout/interaction rules (including Conditional Smart Pins) and the current persistence model (`/api/sidecar/preferences` + local cache fallback), then [development/frontend/json-field-renderers.md](development/frontend/json-field-renderers.md) for typed renderers.
|
|
29
|
+
- **Notes / call disposition behavior** - See [platform/tasks-workspace.md](platform/tasks-workspace.md) (Tasks session orchestration, Sidecar context + lead notes), [features/immediate-followup.md](features/immediate-followup.md) (Call -> immediate manual follow-up pivot), and [data/tasks.md](data/tasks.md) (task completion + dialer dispositions).
|
|
30
|
+
- **Company insights / signals (dismiss/check feed)** - See [platform/insights.md](platform/insights.md) for the `insight_events` schema, endpoints, and call-sourced extraction flow. This is the foundation for future automated company signals (hiring, website, social).
|
|
31
|
+
- **AI drafts + step memory** - Start with [platform/drafts.md](platform/drafts.md) for the draft generator + payload mapping, then use [platform/ai-draft-send-tracking.md](platform/ai-draft-send-tracking.md) for how edits/sends refresh step memory (`step_training_profiles`) and how `_memory` is injected on subsequent drafts.
|
|
32
|
+
- **Usage/computing review** - See [platform/usage-and-compute-review.md](platform/usage-and-compute-review.md) for the current playbook to review billing usage, preview tracing, and compute telemetry. Supporting docs: [platform/credits.md](platform/credits.md), [development/backend/enrichment-service-usage.md](development/backend/enrichment-service-usage.md), [enrichment/preview/preview-and-improve.md](enrichment/preview/preview-and-improve.md), and [operations/azure-migration.md](operations/azure-migration.md) (for production log evidence).
|
|
33
|
+
- **Research table -> Tasks/Sequences flows** - Pair [platform/tasks-workspace.md](platform/tasks-workspace.md) with [systems/sequences.md](systems/sequences.md) and [features/immediate-followup.md](features/immediate-followup.md) plus the `research-table/` docs listed below to keep research_context and post-call follow-up behavior aligned.
|
|
34
|
+
- **Enrichment/LLM verification pipelines** - Review the `enrichment/` guides (preview, agent skills/overview) and [enrichment/hallucination-prevention.md](enrichment/hallucination-prevention.md) before modifying agent orchestration.
|
|
35
|
+
- **Operations, deployments, and worker health** - Start with [operations/README.md](operations/README.md) and [operations/deployment-quickstart.md](operations/deployment-quickstart.md), then pair with `workers/` queue docs (moving into `operations/`) to troubleshoot clusters and Celery topology. Worker tasks are now domain-split under `apps/workers/tasks/` (communications, enrichment `{llm|research|formula}`, leads `{finders|ingest|export}`, data_io, email schedulers, orchestration, ops); keep `apps/workers/tasks/README.md` updated when moving or rerouting tasks. Backend helpers: use `apps/workers/utils/` (shared/API-safe) or `apps/workers/utils/common/` (worker-only). Frontend/system helpers stay under their system (e.g., `apps/web/src/systems/*/utils/`).
|
|
36
|
+
- **Support / internal-admin workflows (impersonation)** - See [platform/authentication.md](platform/authentication.md#internal-admin-impersonation) and [operations/demo-accounts.md](operations/demo-accounts.md). Note: impersonation is org-context, but some user-scoped features (notably the dialer) require a real user in the target org.
|
|
37
|
+
- **Twilio media streams + transcription** - Start with [integrations/twilio/media-streams-transcription.md](integrations/twilio/media-streams-transcription.md), then cross-check [integrations/dialer-integration.md](integrations/dialer-integration.md) and [integrations/twilio/overview.md](integrations/twilio/overview.md). Includes transcription gating + wrap‑up timing anchor rules.
|
|
38
|
+
- **Lead contact channel status (bad phone / bounced email)** - Use [integrations/dialer-integration.md](integrations/dialer-integration.md), [data/leads.md](data/leads.md), and [data/email.md](data/email.md). Canonical backend writes live in `apps/api/services/leads/contact_status.py`.
|
|
39
|
+
- Monthly ContactOut provider QA workflow (hard Twilio vs soft-signal review) is in [operations/contactout-monthly-phone-quality-review.md](operations/contactout-monthly-phone-quality-review.md).
|
|
40
|
+
- **Import flows (CSV / Webhook / CRM / Leads)** - Start with [platform/import-patterns.md](platform/import-patterns.md) for the shared import shell, status contract, and anti-flood guardrails. Then use [systems/leads-imports.md](systems/leads-imports.md), [integrations/crm-imports.md](integrations/crm-imports.md), and [platform/realtime-events.md](platform/realtime-events.md) for domain behavior and event contracts. Keep shared status/polling infrastructure in `apps/api/services/shared/imports/` and `apps/web/src/shared/imports/`; keep row/domain ingestion logic under the domain service/worker packages.
|
|
41
|
+
- **Domain modeling questions (leads, companies, activities)** - Check `data/` research notes (including `research-table/guides/add-to-leads.md`) before adjusting schemas or contracts.
|
|
42
|
+
- **Agent/API integrations (developer keys, scopes, table automation)** - Start with [platform/authentication.md](platform/authentication.md#developer-api-keys) for key/scoping auth rules, then [research-table/reference/tables-api.md](research-table/reference/tables-api.md#developer-api-workflow-endpoints) for the executable endpoint workflow and [platform/credits.md](platform/credits.md) for billable/non-billable behavior.
|
|
43
|
+
- CLI distribution + local auth bootstrap (`autotouch auth set-key`, `pipx install autotouch-cli`) are documented in [research-table/reference/tables-api.md](research-table/reference/tables-api.md#public-cli-quickstart-autotouch).
|
|
44
|
+
|
|
45
|
+
## Directory Map (Where to Start)
|
|
46
|
+
|
|
47
|
+
- [platform/](platform/) - Core platform behavior (auth, tenancy, API conventions, Smart Table structure, end-to-end prospecting lifecycle).
|
|
48
|
+
- [platform/authentication.md](platform/authentication.md) - Auth system, developer API keys/scopes, tenancy rules, and internal-admin impersonation.
|
|
49
|
+
- [platform/credits.md](platform/credits.md) - Credit policy (what charges when), ledger invariants, and UI semantics on insufficient balance.
|
|
50
|
+
- [platform/email/](platform/email/) - Email management (blacklist, policies). See [platform/email/blacklist.md](platform/email/blacklist.md).
|
|
51
|
+
- [platform/endpoint-patterns.md](platform/endpoint-patterns.md) - Canonical backend routing/auth/filtering patterns, including Sequences orchestrator/scheduler/webhooks.
|
|
52
|
+
- [platform/permissions.md](platform/permissions.md) - Permission matrix, enforcement helpers, rollout checklist.
|
|
53
|
+
- [platform/realtime-events.md](platform/realtime-events.md) - Socket event contracts, including bulk operation progress payloads.
|
|
54
|
+
- [platform/import-patterns.md](platform/import-patterns.md) - Canonical import architecture: shared shell + status contract, domain-specific processors, and anti-flood defaults.
|
|
55
|
+
- [platform/tasks-workspace.md](platform/tasks-workspace.md) - Tasks workspace behavior (research-column formatting, scope defaults, research-table restrictions when creating tasks).
|
|
56
|
+
- [systems/sequences.md](systems/sequences.md) - Legacy "Add to campaign" sync: provider detection, merge-variable mapping, Instantly/Smartlead webhook flows.
|
|
57
|
+
- [platform/ai_company_research.md](platform/ai_company_research.md) - AI Company Research pipeline: forked list-builder flow, condition columns, and neural-search batching rules.
|
|
58
|
+
- [platform/insights.md](platform/insights.md) - Company insights feed (`insight_events`): dismiss/check UX, endpoints, and call-sourced extraction flow (foundation for future company signals).
|
|
59
|
+
- [platform/drafts.md](platform/drafts.md) - Draft generation service used by sequences/tasks (LLM meta prompts + task drafts).
|
|
60
|
+
- [platform/ai-draft-send-tracking.md](platform/ai-draft-send-tracking.md) - How AI drafts are tracked (generate vs send/complete) and how edits refresh step memory used by `_memory`.
|
|
61
|
+
- [systems/](systems/) - System-specific architecture docs and feature wiring.
|
|
62
|
+
- [systems/README.md](systems/README.md) - Entry point for system docs.
|
|
63
|
+
- [systems/sequences.md](systems/sequences.md) - Sequences tool architecture, endpoints, scheduler/webhook scaffold, and the Instantly/Smartlead provider bridge.
|
|
64
|
+
- Enrollment now persists `research_context` plus `research_snapshot.row_id` per lead; integration mode pushes normalized variables into provider campaigns.
|
|
65
|
+
- [systems/leads-crm.md](systems/leads-crm.md) - Leads CRM workspace behavior, research context, and UI decisions.
|
|
66
|
+
- [systems/leads-imports.md](systems/leads-imports.md) - CSV lead imports, mapping, dedupe, and company linkage.
|
|
67
|
+
- [systems/leads-query-endpoint.md](systems/leads-query-endpoint.md) - Leads query endpoint contract and filtering payloads.
|
|
68
|
+
- [development/](development/) - Engineering practices and coding patterns.
|
|
69
|
+
- [development/backend/](development/backend/) - Service architecture and migration guidance; start with [development/backend/README.md](development/backend/README.md) when adding/moving services.
|
|
70
|
+
- [development/backend/chat-service.md](development/backend/chat-service.md) - Provider-agnostic streaming Chat service (SSE message frames, adapters, env vars, persistence roadmap).
|
|
71
|
+
- [development/backend/mongo-paved-road.md](development/backend/mongo-paved-road.md) - Preferred MongoDB lookup/prefetch patterns (avoid N+1, keep projections tight, index-friendly query shapes).
|
|
72
|
+
- [development/backend/enrichment-service-usage.md](development/backend/enrichment-service-usage.md) - Unified preview streaming schema and entry points.
|
|
73
|
+
- [development/backend/helpers.md](development/backend/helpers.md) - Shared backend helpers (research snapshots, context providers, lead/company services) plus the unified enrichment schema used by drawers and cells.
|
|
74
|
+
- [development/backend/mcp-tools-integration.md](development/backend/mcp-tools-integration.md) - MCP tool integration + registry scaffolding for chat tool frames.
|
|
75
|
+
- [development/backend/review-checklist.md](development/backend/review-checklist.md) - Backend checklist covering endpoints, streaming, limits, observability, security.
|
|
76
|
+
- [development/frontend/](development/frontend/) - System-first architecture references; start with [development/frontend/README.md](development/frontend/README.md).
|
|
77
|
+
- [development/frontend/README.md](development/frontend/README.md) - Frontend placement checklist and doc map.
|
|
78
|
+
- [development/frontend/component-patterns.md](development/frontend/component-patterns.md) - Table/toolbar architecture and shared checkbox behavior across research/leads/tasks.
|
|
79
|
+
- [development/frontend/command-palette.md](development/frontend/command-palette.md) - Global Cmd+K command palette roadmap and command-bar integration plan.
|
|
80
|
+
- [development/frontend/type-system.md](development/frontend/type-system.md) - Domain-driven type layout, audit checklist, maintenance guidance.
|
|
81
|
+
- [development/frontend/table-layout-persistence.md](development/frontend/table-layout-persistence.md) - How table layouts/sort/filters persist to localStorage and how to version/reset defaults.
|
|
82
|
+
- [development/frontend/sidecar-architecture.md](development/frontend/sidecar-architecture.md) - Assist sidecar geometry, Lead-first tabs, close/toggle behavior, AI chat composition, and Conditional Smart Pins (MVP rules).
|
|
83
|
+
- [development/frontend/sidecar-meta-prompt.md](development/frontend/sidecar-meta-prompt.md) - Meta prompt for continuing the Assist Sidecar + AI Chat implementation.
|
|
84
|
+
- [development/frontend/json-field-renderers.md](development/frontend/json-field-renderers.md) - Typed renderers, array slice chips, object micro-grids, raw JSON overlay, copy actions.
|
|
85
|
+
- [development/frontend/review-checklist.md](development/frontend/review-checklist.md) - Frontend checklist for sidecar/chat (geometry, perf, a11y, telemetry).
|
|
86
|
+
- [development/frontend/ai-elements.md](development/frontend/ai-elements.md) - Composition docs for AI chat UI primitives.
|
|
87
|
+
- [development/patterns.md](development/patterns.md) - End-to-end workflow tying backend and frontend practices together.
|
|
88
|
+
- [research-table/](research-table/) - Everything specific to the research table experience (concepts, guides, reference).
|
|
89
|
+
- [concepts/pinned-columns.md](research-table/concepts/pinned-columns.md) - Sticky/pinned column behavior, hover/shadow rules, and localStorage persistence per table.
|
|
90
|
+
- [guides/object-drawer.md](research-table/guides/object-drawer.md) - Row detail drawer interaction (hover swap, keyboard open, grouped vertical layout).
|
|
91
|
+
- [guides/add-to-leads.md](research-table/guides/add-to-leads.md) - Add-to-Leads flow, field mapping, and worker orchestration.
|
|
92
|
+
- [concepts/formatter-columns.md](research-table/concepts/formatter-columns.md) - JavaScript formatter columns (AI + manual formulas, dependency tracking, hybrid execution engine).
|
|
93
|
+
- [concepts/projection-columns.md](research-table/concepts/projection-columns.md) - JSON splits (virtual by default; optional materialization for fast filter/sort) with API contract, filtering, and export behavior.
|
|
94
|
+
- Reports (implementation notes and migrations):
|
|
95
|
+
- [reports/materialized-projection-columns.md](research-table/reports/materialized-projection-columns.md) - Materialized projections rollout notes (jobs, queues, routing, observability).
|
|
96
|
+
- [reference/research-context-coverage.md](research-table/reference/research-context-coverage.md) - `/research-context` coverage calculation, nested projection handling, limitations.
|
|
97
|
+
- [reference/filtering.md](research-table/reference/filtering.md) - End-to-end filtering semantics, operator matrix, Mongo vs Python routing, and column-run scoping (`filtered` vs `subset`) with the centralized run-scope resolver.
|
|
98
|
+
- [reference/formatter-editing.md](research-table/reference/formatter-editing.md) - Canonical formatter storage (`config.formula`), editing surfaces, lookup normalization, preview/run behavior, and troubleshooting.
|
|
99
|
+
- [reference/tables-api.md](research-table/reference/tables-api.md) - Table + column endpoints (column keys are unique per table; the backend owns suffixing and returns the final key; 409 is returned on conflicts).
|
|
100
|
+
- Socket ingress note: see [platform/realtime-events.md](platform/realtime-events.md#common-issues) - `/socket.io/*` must route to the API service in split ingress setups.
|
|
101
|
+
- Keep enrichment columns aligned with the unified schema in [development/backend/helpers.md](development/backend/helpers.md) so drawers render Steps/details consistently; see [enrichment/hallucination-prevention.md](enrichment/hallucination-prevention.md) for verification rules.
|
|
102
|
+
- Research Agent & Generator references live under `enrichment/`:
|
|
103
|
+
- [enrichment/concepts/prompt-generator-concepts.md](enrichment/concepts/prompt-generator-concepts.md)
|
|
104
|
+
- [enrichment/guides/prompt-generator-usage.md](enrichment/guides/prompt-generator-usage.md)
|
|
105
|
+
- [enrichment/reference/react-kernel.md](enrichment/reference/react-kernel.md)
|
|
106
|
+
- [enrichment/reference/assembler.md](enrichment/reference/assembler.md)
|
|
107
|
+
- [enrichment/reference/context-pipeline.md](enrichment/reference/context-pipeline.md)
|
|
108
|
+
- [enrichment/reference/placeholder-policy.md](enrichment/reference/placeholder-policy.md)
|
|
109
|
+
- [enrichment/reference/verification-pipeline.md](enrichment/reference/verification-pipeline.md)
|
|
110
|
+
- [integrations/](integrations/) - External system integrations (Aircall, RingCentral, auto-dialer).
|
|
111
|
+
- [integrations/dialer-integration.md](integrations/dialer-integration.md) - Auto-dialer backend integration: session/queue model, provider registry, endpoints.
|
|
112
|
+
- [integrations/twilio/media-streams-transcription.md](integrations/twilio/media-streams-transcription.md) - Twilio media streams + AssemblyAI transcription pipeline, storage, and training format.
|
|
113
|
+
- [integrations/twilio/](integrations/twilio/) - Managed Twilio dialer integration and local presence notes.
|
|
114
|
+
- [integrations/crm-imports.md](integrations/crm-imports.md) - CRM imports (Attio/HubSpot) status, config, and next steps for Research-table -> CRM workflows.
|
|
115
|
+
- [integrations/crm-roadmap.md](integrations/crm-roadmap.md) - CRM long-term vision and roadmap (imports now, exports/backfill, sync, activities later).
|
|
116
|
+
- [operations/](operations/) - Runbooks covering deployment, monitoring, and worker operations.
|
|
117
|
+
- [operations/deployment-quickstart.md](operations/deployment-quickstart.md) - Build/deploy, auth keys, routing, autoscaling, and post-deploy checks.
|
|
118
|
+
- [operations/contactout-monthly-phone-quality-review.md](operations/contactout-monthly-phone-quality-review.md) - Monthly ContactOut phone quality QA workflow (exports, hard evidence vendor packet, soft-signal analysis).
|
|
119
|
+
- [operations/azure-migration.md](operations/azure-migration.md) - AKS/ACR/Ingress/Redis migration status + runbook.
|
|
120
|
+
- Backend log access (AKS + Log Analytics) is documented under `operations/azure-migration.md#monitoring-aks--logs`.
|
|
121
|
+
- Incident audit (time-window logs, Mongo/Atlas correlation, checklist): [operations/incident-audit.md](operations/incident-audit.md).
|
|
122
|
+
- [operations/hardware.md](operations/hardware.md) - Current AKS hardware snapshot (nodes, allocatable, scheduling headroom).
|
|
123
|
+
- [operations/mongodb-migration-2025-11.md](operations/mongodb-migration-2025-11.md) - Atlas move (GCP -> Azure), current DB layout, and connection guidance.
|
|
124
|
+
- [operations/mongodb-access.md](operations/mongodb-access.md) - How to connect/query Mongo in production safely (uses `MONGODB_PROD_CONNECTION_STRING`).
|
|
125
|
+
- [operations/mongodb-ssl-handshake-troubleshooting.md](operations/mongodb-ssl-handshake-troubleshooting.md) - SSL/TLS handshake failures troubleshooting, connection pool tuning, and retry logic fixes.
|
|
126
|
+
- Slack monitoring: [operations/slack-error-logging.md](operations/slack-error-logging.md) (setup + config, automatic coverage, and credit alerts).
|
|
127
|
+
- [workers/](workers/) - Background job notes and queue-specific documentation (moving into `operations/`).
|
|
128
|
+
- [workers/celery.md](workers/celery.md) - Celery topology (communications/enrichment/leads/data_io/ops queues), deployment commands, routing patterns aligned with the domain-split worker tree.
|
|
129
|
+
- [workers/bulk-jobs.md](workers/bulk-jobs.md) - Bulk job orchestration (providers, status tracking, progress updates, adding a provider).
|
|
130
|
+
- Worker code layout: `apps/workers/tasks/README.md` (domain map + routing notes).
|
|
131
|
+
- [data/](data/) - Domain write-ups about leads, companies, activities, and related data-model research.
|
|
132
|
+
- [research-table/guides/add-to-leads.md](research-table/guides/add-to-leads.md) - How research tables pipe leads into the CRM.
|
|
133
|
+
- [enrichment/](enrichment/) - Contact enrichment overviews and guides.
|
|
134
|
+
- [enrichment/README.md](enrichment/README.md) - Entry point for enrichment docs.
|
|
135
|
+
- [enrichment/pipeline-conventions.md](enrichment/pipeline-conventions.md) - Shared real-time events, credits, and schema conventions for pipelines.
|
|
136
|
+
- [enrichment/preview/preview-and-improve.md](enrichment/preview/preview-and-improve.md) - LLM preview + coach architecture, agent skills for research.
|
|
137
|
+
- [enrichment/prompt-templates.md](enrichment/prompt-templates.md) - Prompt library templates (simple vs raw), mode/scope filtering, save/load behavior, and API shape.
|
|
138
|
+
- [enrichment/skills/README.md](enrichment/skills/README.md) - Research agent skills spec (YAML), discovery model, selector/assembler overview, authoring tips.
|
|
139
|
+
- [enrichment/SYSTEM_ARCHITECTURE.md](enrichment/SYSTEM_ARCHITECTURE.md) - Research agent architecture (ReAct loop, skills, MCP gateway/tools) and common pitfalls.
|
|
140
|
+
- [enrichment/research-agent-overview.md](enrichment/research-agent-overview.md) - Research agent one-pager (skills gating, MCP tools, preview vs batch, validation, config).
|
|
141
|
+
- [enrichment/hallucination-prevention.md](enrichment/hallucination-prevention.md) - LLM hallucination detection/prevention pipeline.
|
|
142
|
+
- [enrichment/AUDIT_HALLUCINATION_PREVENTION.md](enrichment/AUDIT_HALLUCINATION_PREVENTION.md) - Meta-prompt for auditing verification strictness.
|
|
143
|
+
- [enrichment/schema-generator.md](enrichment/schema-generator.md) - How `/api/llm/generate-schema` works, reasoning-field rules, and when auto-generated schemas are used.
|
|
144
|
+
- [enrichment/guides/provider-overrides.md](enrichment/guides/provider-overrides.md) - How to request specific providers/models when calling the MCP gateway.
|
|
145
|
+
- [enrichment/phone_finder/overview.md](enrichment/phone_finder/overview.md) - Phone discovery pipeline and Leads mapping.
|
|
146
|
+
- [enrichment/email_finder/overview.md](enrichment/email_finder/overview.md) - Email discovery + verification flow and Leads mapping.
|
|
147
|
+
- [enrichment/email_validation/overview.md](enrichment/email_validation/overview.md) - Validation-only pipeline with positional updates.
|
|
148
|
+
- [enrichment/lead_finder/overview.md](enrichment/lead_finder/overview.md) - Contact discovery at target companies (provider limits, retry strategy).
|
|
149
|
+
- [enrichment/lead_finder/research-table.md](enrichment/lead_finder/research-table.md) - Lead Finder as a research-table enrichment column (submission/parallel env controls, rate-limit handling).
|
|
150
|
+
- [enrichment/lead_finder/leads-crm.md](enrichment/lead_finder/leads-crm.md) - Bulk enrichment actions in the Leads CRM.
|
|
151
|
+
- [infra/](infra/) - Infrastructure provisioning notes and migration anchors.
|
|
152
|
+
- [infra/README.md](infra/README.md) - Entry point for infra docs.
|
|
153
|
+
- [infra/azure/README.md](infra/azure/README.md) - Azure provisioning inventory and commands.
|
|
154
|
+
- [meta/](meta/) - Temporary prompts, audits, and planning notes (not canonical product docs; intentionally not indexed here).
|
|
155
|
+
|
|
156
|
+
When you introduce a new document, decide where it belongs in this map and add (or update) the entry in the same pull request. If a directory description stops matching reality, fix it here while you are already in context.
|
|
157
|
+
|
|
158
|
+
## Keeping Docs Manageable
|
|
159
|
+
|
|
160
|
+
- Prefer focused documents over encyclopedias; split long write-ups into concept, guide, and reference files when possible.
|
|
161
|
+
- Cross-link related docs instead of duplicating large sections of content.
|
|
162
|
+
- Trim outdated context when updating a file; point to source code or dashboards for canonical details.
|
|
163
|
+
|
|
164
|
+
Whenever you touch the docs, glance at this README to confirm the structure still makes sense. Update it in the same pull request if the hierarchy shifts or if you create a new area so other contributors can navigate quickly.
|
|
165
|
+
|
|
166
|
+
## Keeping this README Accurate
|
|
167
|
+
|
|
168
|
+
- Update the **Directory Map** entry (and add new bullets) whenever you add, remove, or rename docs/directories.
|
|
169
|
+
- Extend **Where to look depending on the work** when a new workflow spans multiple areas so future contributors know which sibling docs to audit.
|
|
170
|
+
- Verify every link you touch in this file; keep them relative and clickable so the README remains the fastest navigation surface.
|
|
171
|
+
- Call out "docs README updated" in your PR description when you touch this file; reviewers should confirm the map still mirrors the repo.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
pyproject.toml
|
|
2
|
+
autotouch_cli.egg-info/PKG-INFO
|
|
3
|
+
autotouch_cli.egg-info/SOURCES.txt
|
|
4
|
+
autotouch_cli.egg-info/dependency_links.txt
|
|
5
|
+
autotouch_cli.egg-info/entry_points.txt
|
|
6
|
+
autotouch_cli.egg-info/requires.txt
|
|
7
|
+
autotouch_cli.egg-info/top_level.txt
|
|
8
|
+
docs/README.md
|
|
9
|
+
scripts/__init__.py
|
|
10
|
+
scripts/add_column_unique_index.py
|
|
11
|
+
scripts/attach_csv_import_leads_to_research_table.py
|
|
12
|
+
scripts/bundle_sequences_backend.py
|
|
13
|
+
scripts/check_agent_traces.py
|
|
14
|
+
scripts/check_column_mode.py
|
|
15
|
+
scripts/exit_terminal_leads_from_sequences.py
|
|
16
|
+
scripts/fetch_lead.py
|
|
17
|
+
scripts/fix_lead_titles_from_csv.py
|
|
18
|
+
scripts/reassign_sequence_owner.py
|
|
19
|
+
scripts/run_sidecar_orchestrator_demo.py
|
|
20
|
+
scripts/smart_table_cli.py
|
|
21
|
+
scripts/test_crm_company_policy.py
|
|
22
|
+
scripts/test_sequences_instantly_e2e.py
|
|
23
|
+
scripts/test_sequences_personal_e2e.py
|
|
24
|
+
scripts/test_task_error_logger.py
|
|
25
|
+
scripts/migrations/20250106_add_column_position.py
|
|
26
|
+
scripts/migrations/20250108_fix_legacy_column_fields.py
|
|
27
|
+
scripts/migrations/20250109_add_user_fields_to_tables.py
|
|
28
|
+
scripts/migrations/20250117_add_call_logs_webhook_indexes.py
|
|
29
|
+
scripts/migrations/20250117_rename_call_logs_collection.py
|
|
30
|
+
scripts/migrations/20250119_create_leads_unique_email_index.py
|
|
31
|
+
scripts/migrations/20250123_add_filter_indexes.py
|
|
32
|
+
scripts/migrations/20250123_add_llm_responses_collection.py
|
|
33
|
+
scripts/migrations/20250128_migrate_user_ids_to_objectid.py
|
|
34
|
+
scripts/migrations/20250208_backfill_task_research_values.py
|
|
35
|
+
scripts/migrations/20250604_add_origin_indexes.py
|
|
36
|
+
scripts/migrations/20250608_cleanup_agent_metadata.py
|
|
37
|
+
scripts/migrations/20250608_rename_agent_metadata_to_metadata.py
|
|
38
|
+
scripts/migrations/20250922_add_activity_indexes.py
|
|
39
|
+
scripts/migrations/20250926_migrate_single_to_arrays.py
|
|
40
|
+
scripts/migrations/20250928_add_missing_timestamp_fields.py
|
|
41
|
+
scripts/migrations/20250929_add_task_join_indexes.py
|
|
42
|
+
scripts/migrations/20250929_add_task_join_indexes_safe.py
|
|
43
|
+
scripts/migrations/20250929_create_shared_phone_cache.py
|
|
44
|
+
scripts/migrations/20251007_add_rows_position_id_index.py
|
|
45
|
+
scripts/migrations/20251109_add_ttl_for_llm_and_preview_traces.py
|
|
46
|
+
scripts/migrations/20260113_normalize_table_filter_operators.py
|
|
47
|
+
scripts/migrations/20260113_set_user_permissions_user_admin.py
|
|
48
|
+
scripts/migrations/20260204_sync_lead_owner_from_tasks.py
|
|
49
|
+
scripts/migrations/migrate_org_user_credits.py
|
|
50
|
+
scripts/migrations/set_default_lead_status.py
|
|
51
|
+
scripts/migrations/update_lead_owner_from_tasks.py
|
|
52
|
+
tests/test_contactout_custom.py
|
|
53
|
+
tests/test_contactout_integration.py
|
|
54
|
+
tests/test_contactout_multi_titles.py
|
|
55
|
+
tests/test_contactout_pipeline.py
|
|
56
|
+
tests/test_contactout_simple.py
|
|
57
|
+
tests/test_contactout_v2_bulk.py
|
|
58
|
+
tests/test_lead_required_fields.py
|
|
59
|
+
tests/test_phone_provider_pipeline.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
scripts
|