autotouch-cli 0.2.120__tar.gz → 0.2.123__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.
Files changed (135) hide show
  1. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/PKG-INFO +110 -36
  2. autotouch_cli-0.2.123/README.md +59 -0
  3. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123/autotouch_cli}/README.md +109 -35
  4. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/cli.py +442 -174
  5. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/cli_contracts.py +31 -2
  6. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/auth.py +13 -3
  7. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/columns.py +35 -5
  8. autotouch_cli-0.2.123/autotouch_cli/commands/companies.py +618 -0
  9. autotouch_cli-0.2.123/autotouch_cli/commands/event_streams.py +119 -0
  10. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/integrations.py +118 -8
  11. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/jobs.py +45 -2
  12. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/leads.py +344 -0
  13. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/list_build.py +182 -56
  14. autotouch_cli-0.2.123/autotouch_cli/commands/notes.py +163 -0
  15. autotouch_cli-0.2.123/autotouch_cli/commands/product_http.py +171 -0
  16. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/prompts.py +3 -3
  17. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/rows.py +145 -61
  18. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/search.py +299 -7
  19. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/sequences.py +649 -9
  20. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/tables.py +145 -0
  21. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/tasks.py +24 -0
  22. autotouch_cli-0.2.123/autotouch_cli/commands/workspace_views.py +178 -0
  23. autotouch_cli-0.2.123/autotouch_cli/commands/workspaces.py +80 -0
  24. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/core/auth.py +8 -5
  25. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/core/polling.py +33 -13
  26. autotouch_cli-0.2.123/autotouch_cli/core/receipts.py +54 -0
  27. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/core/run.py +185 -74
  28. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/core/validation.py +10 -37
  29. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/data/CLI_REFERENCE.md +5461 -2421
  30. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/data/cli-manifest.json +30369 -11172
  31. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/exceptions.py +13 -0
  32. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/parser.py +123 -30
  33. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/parser_groups.py +11 -0
  34. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/sequence_support.py +66 -0
  35. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/templates.py +21 -171
  36. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli.egg-info/PKG-INFO +110 -36
  37. autotouch_cli-0.2.123/autotouch_cli.egg-info/SOURCES.txt +126 -0
  38. autotouch_cli-0.2.123/autotouch_shared/add_to_crm_contract.py +497 -0
  39. autotouch_cli-0.2.123/autotouch_shared/automation_predicates.py +494 -0
  40. autotouch_cli-0.2.123/autotouch_shared/business_email.py +11 -0
  41. autotouch_cli-0.2.123/autotouch_shared/classification.py +198 -0
  42. autotouch_cli-0.2.123/autotouch_shared/classification_config.py +58 -0
  43. autotouch_cli-0.2.123/autotouch_shared/company_catalog.py +669 -0
  44. autotouch_cli-0.2.123/autotouch_shared/company_classification_v3_contract.py +104 -0
  45. autotouch_cli-0.2.123/autotouch_shared/company_domain_value.py +13 -0
  46. autotouch_cli-0.2.123/autotouch_shared/company_enrichment_policy.py +52 -0
  47. autotouch_cli-0.2.123/autotouch_shared/company_revenue.py +113 -0
  48. autotouch_cli-0.2.123/autotouch_shared/company_scoring_subject.py +377 -0
  49. autotouch_cli-0.2.123/autotouch_shared/email_finder_inputs.py +377 -0
  50. autotouch_cli-0.2.123/autotouch_shared/email_patterns.py +185 -0
  51. autotouch_cli-0.2.123/autotouch_shared/field_mapping.py +174 -0
  52. autotouch_cli-0.2.123/autotouch_shared/fit_company_profile.py +355 -0
  53. autotouch_cli-0.2.123/autotouch_shared/fit_company_size.py +806 -0
  54. autotouch_cli-0.2.123/autotouch_shared/fit_company_subject.py +2001 -0
  55. autotouch_cli-0.2.123/autotouch_shared/fit_component_receipts.py +85 -0
  56. autotouch_cli-0.2.123/autotouch_shared/fit_headline_title_parser.py +583 -0
  57. autotouch_cli-0.2.123/autotouch_shared/fit_scoring.py +1549 -0
  58. autotouch_cli-0.2.123/autotouch_shared/fit_title_intelligence.py +2804 -0
  59. autotouch_cli-0.2.123/autotouch_shared/fit_title_seniority.py +432 -0
  60. autotouch_cli-0.2.123/autotouch_shared/fit_title_taxonomy.py +1250 -0
  61. autotouch_cli-0.2.123/autotouch_shared/http_retry.py +98 -0
  62. autotouch_cli-0.2.123/autotouch_shared/jev_headline_title.py +393 -0
  63. autotouch_cli-0.2.123/autotouch_shared/lead_company_identity.py +48 -0
  64. autotouch_cli-0.2.123/autotouch_shared/lead_finder_inputs.py +84 -0
  65. autotouch_cli-0.2.123/autotouch_shared/lead_source_lineage.py +106 -0
  66. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_shared/linkedin_contract.py +3 -14
  67. autotouch_cli-0.2.123/autotouch_shared/linkedin_identity.py +46 -0
  68. autotouch_cli-0.2.123/autotouch_shared/list_build_contract.py +246 -0
  69. autotouch_cli-0.2.123/autotouch_shared/logging_filters.py +100 -0
  70. autotouch_cli-0.2.123/autotouch_shared/lookup_outcomes.py +94 -0
  71. autotouch_cli-0.2.123/autotouch_shared/outreach_company_fit.py +289 -0
  72. autotouch_cli-0.2.123/autotouch_shared/people_discovery_contract.py +56 -0
  73. autotouch_cli-0.2.123/autotouch_shared/people_employment_screening.py +234 -0
  74. autotouch_cli-0.2.123/autotouch_shared/person_lookup_inputs.py +69 -0
  75. autotouch_cli-0.2.123/autotouch_shared/person_names.py +48 -0
  76. autotouch_cli-0.2.123/autotouch_shared/person_relationship.py +266 -0
  77. autotouch_cli-0.2.123/autotouch_shared/personal_email_domains.json +64 -0
  78. autotouch_cli-0.2.123/autotouch_shared/phone_finder_inputs.py +443 -0
  79. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_shared/pipeline_patterns.py +172 -141
  80. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_shared/product_lifecycle.py +1 -1
  81. autotouch_cli-0.2.123/autotouch_shared/product_use_cases.py +1704 -0
  82. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_shared/provider_registry.py +1033 -204
  83. autotouch_cli-0.2.123/autotouch_shared/realtime_events.py +6 -0
  84. autotouch_cli-0.2.123/autotouch_shared/research_cell_references.py +51 -0
  85. autotouch_cli-0.2.123/autotouch_shared/research_column_sources.py +99 -0
  86. autotouch_cli-0.2.123/autotouch_shared/research_company_inheritance.py +83 -0
  87. autotouch_cli-0.2.123/autotouch_shared/research_context.py +145 -0
  88. autotouch_cli-0.2.123/autotouch_shared/research_execution.py +468 -0
  89. autotouch_cli-0.2.123/autotouch_shared/research_field_selection.py +92 -0
  90. autotouch_cli-0.2.123/autotouch_shared/research_json_filtering.py +165 -0
  91. autotouch_cli-0.2.123/autotouch_shared/research_llm.py +127 -0
  92. autotouch_cli-0.2.123/autotouch_shared/research_rows.py +157 -0
  93. autotouch_cli-0.2.123/autotouch_shared/score_lifecycle.py +162 -0
  94. autotouch_cli-0.2.123/autotouch_shared/search_contract.py +492 -0
  95. autotouch_cli-0.2.123/autotouch_shared/source_selection.py +320 -0
  96. autotouch_cli-0.2.123/autotouch_shared/task_plan.py +137 -0
  97. autotouch_cli-0.2.123/autotouch_shared/title_attribute_cascade.py +445 -0
  98. autotouch_cli-0.2.123/autotouch_shared/title_org_context.py +67 -0
  99. autotouch_cli-0.2.123/autotouch_shared/typesafe_system_one.py +158 -0
  100. autotouch_cli-0.2.123/autotouch_shared/workflow_field_changes.py +637 -0
  101. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_shared/workflow_plans.py +650 -474
  102. autotouch_cli-0.2.123/autotouch_shared/workflow_score_fields.py +383 -0
  103. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/pyproject.toml +3 -2
  104. autotouch_cli-0.2.120/autotouch_cli/commands/agents.py +0 -808
  105. autotouch_cli-0.2.120/autotouch_cli/commands/companies.py +0 -174
  106. autotouch_cli-0.2.120/autotouch_cli.egg-info/SOURCES.txt +0 -64
  107. autotouch_cli-0.2.120/autotouch_shared/list_build_contract.py +0 -255
  108. autotouch_cli-0.2.120/autotouch_shared/product_use_cases.py +0 -927
  109. autotouch_cli-0.2.120/autotouch_shared/realtime_events.py +0 -113
  110. autotouch_cli-0.2.120/autotouch_shared/search_contract.py +0 -245
  111. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/MANIFEST.in +0 -0
  112. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/__init__.py +0 -0
  113. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/__init__.py +0 -0
  114. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/capacity.py +0 -0
  115. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/cells.py +0 -0
  116. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/crm.py +0 -0
  117. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/linkedin.py +0 -0
  118. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/outreach.py +0 -0
  119. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/sender_accounts.py +0 -0
  120. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/webhooks.py +0 -0
  121. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/commands/workspace_secrets.py +0 -0
  122. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/core/__init__.py +0 -0
  123. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/core/config.py +0 -0
  124. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/core/csv_import.py +0 -0
  125. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/core/http.py +0 -0
  126. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/core/io.py +0 -0
  127. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/core/output.py +0 -0
  128. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli/mongo_status.py +0 -0
  129. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli.egg-info/dependency_links.txt +0 -0
  130. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli.egg-info/entry_points.txt +0 -0
  131. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli.egg-info/requires.txt +0 -0
  132. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_cli.egg-info/top_level.txt +0 -0
  133. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_shared/__init__.py +0 -0
  134. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/autotouch_shared/linkedin_filters.py +0 -0
  135. {autotouch_cli-0.2.120 → autotouch_cli-0.2.123}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: autotouch-cli
3
- Version: 0.2.120
3
+ Version: 0.2.123
4
4
  Summary: Autotouch Smart Table CLI
5
5
  Project-URL: Homepage, https://app.autotouch.ai
6
6
  Project-URL: Documentation, https://github.com/nicolonic/autotouch_main/tree/main/docs/research-table/reference
@@ -25,6 +25,9 @@ Requires-Dist: pymongo>=4.7; extra == "mongo"
25
25
 
26
26
  # Autotouch CLI
27
27
 
28
+ This is the package README published with `autotouch-cli`. For the full
29
+ application repository map, see the repository-level `README.md`.
30
+
28
31
  Installable CLI for the Smart Table developer API.
29
32
 
30
33
  Use it when you want command-driven access to search, tables, columns, runs, jobs, leads, sequences, and task workflows without hand-writing raw HTTP requests.
@@ -40,9 +43,9 @@ Autotouch helps GTM teams source records, land them in Smart Table, research and
40
43
 
41
44
  Use the lifecycle to choose commands:
42
45
 
43
- 1. Source Records: use `autotouch list-build`, `autotouch search`, `autotouch agents`, imports, or webhooks.
46
+ 1. Source Records: use `autotouch list-build`, `autotouch search`, imports, or webhooks.
44
47
  2. Land In Smart Table: use `autotouch list-build sync-to-table`, `autotouch tables`, `autotouch rows`, or import/webhook ingest.
45
- 3. Research And Operate: use `autotouch columns recipe`, `autotouch columns run-next`, `autotouch jobs`, `autotouch rows`, and `autotouch cells`.
48
+ 3. Research And Operate: use `autotouch columns recipe`, `autotouch columns run-next`, `autotouch columns run`, `autotouch rows`, and `autotouch cells`; use `autotouch jobs` only for native executor diagnostics or domains that still own bulk jobs.
46
49
  4. Engage: use `to_leads`, `to_sequence`, `to_outreach`, `to_crm`, `autotouch sequences`, and `autotouch tasks`.
47
50
 
48
51
  Smart Table is the operating layer. Most workflows should land records there before enrichment, dedupe, routing, or engagement. Run `autotouch workflows list --output json` for lifecycle-grouped plans.
@@ -53,12 +56,12 @@ The CLI is designed to be used like a Codex tool surface: inspect the local cont
53
56
 
54
57
  Recommended loop:
55
58
 
56
- 1. Discover / inspect: `autotouch auth check --output json`, `autotouch capabilities --output json`, `autotouch capabilities operations search "<goal>"`, `autotouch cli-manifest --output json`, and the relevant `recipe` / `schema` command.
59
+ 1. Discover / inspect: `autotouch auth check --output json`, `autotouch capabilities --output json`, `autotouch capabilities operations list --cli-available`, `autotouch cli-manifest --output json`, and the relevant `recipe` / `schema` command.
57
60
  2. Plan: choose a lifecycle workflow from `autotouch workflows list --output json`; prefer Smart Table as the operating layer.
58
61
  3. Preview/scaffold: write payloads to files with `recipe` / `schema` / `workflows scaffold` before mutation-heavy runs.
59
62
  4. Execute a bounded slice: use `--scope firstN`, `--first-n`, `--unprocessed-only`, `--wait`, or small list-build targets when validating.
60
- 5. Observe: treat `autotouch jobs get`, `rows get`, and `cells get` as source of truth; do not infer success from terminal text alone.
61
- 6. Continue: pass explicit `TABLE_ID`, `ROW_ID`, `COLUMN_ID`, `JOB_ID`, `LEAD_ID`, and `SEQUENCE_ID` values into the next command instead of relying on hidden session state.
63
+ 5. Observe: for Research Table runs, treat the `operation_run` receipt returned by `columns run --wait` as the lifecycle source of truth; use `rows get` and `cells get` for persisted results. Use `autotouch jobs get/watch` only for native executor diagnostics or domains that still own bulk jobs. Do not infer success from terminal text alone.
64
+ 6. Continue: pass explicit `TABLE_ID`, `ROW_ID`, `COLUMN_ID`, `OPERATION_RUN_ID`, `JOB_ID`, `LEAD_ID`, and `SEQUENCE_ID` values into the next command instead of relying on hidden session state.
62
65
 
63
66
  For the detailed agent operating model, use `docs/research-table/guides/autotouch-cli-agent-playbook.md`. For maintainer rules, use `docs/development/autotouch-cli-architecture.md`. The local Codex reference checkout at `/private/tmp/openai-codex` may be used as inspiration for operating-model patterns only; never make that temporary repository a package dependency or source of truth.
64
67
 
@@ -66,17 +69,17 @@ Discovery is a phase, not a separate top-level command. Use the existing inspect
66
69
 
67
70
  | Need | Command |
68
71
  | --- | --- |
69
- | Product operations and whether CLI can run them | `autotouch capabilities operations search "<goal>" --cli-available` |
72
+ | Product operations and whether CLI can run them | `autotouch capabilities operations list --cli-available` |
70
73
  | Exact operation detail and CLI lifecycle steps | `autotouch capabilities operations get <operation_id>` |
71
74
  | Goal-level workflow choices | `autotouch workflows list --output json` and `autotouch workflows plan --type <TYPE>` |
72
75
  | Current command grammar | `autotouch cli-manifest --output json` or `autotouch cli-reference` |
73
76
  | Connected sources and destinations | `autotouch integrations list` and `autotouch integrations status --provider <provider>` |
74
77
  | List-build filter IDs and pricing | `autotouch list-build inputs` and `autotouch list-build pricing` |
75
- | Scheduled-agent signal choices | `autotouch agents signals --target LEADS` or `--target ACCOUNTS` |
78
+ | Scheduled Chat definitions and occurrences | `autotouch scheduled list`, `autotouch scheduled get <SCHEDULE_ID>`, and `autotouch scheduled runs <SCHEDULE_ID>` (user session) |
76
79
 
77
80
  ## Install
78
81
 
79
- Released package:
82
+ Released package from the configured package index:
80
83
 
81
84
  ```bash
82
85
  pipx install autotouch-cli
@@ -89,7 +92,7 @@ pipx upgrade autotouch-cli
89
92
  python -m pip install --upgrade autotouch-cli
90
93
  ```
91
94
 
92
- Unreleased branch or pre-publish build:
95
+ Current repo branch or pre-publish build:
93
96
 
94
97
  ```bash
95
98
  pipx install --force "git+ssh://git@github.com/nicolonic/autotouch_main.git@<branch-or-sha>"
@@ -97,7 +100,21 @@ pipx install --force "git+ssh://git@github.com/nicolonic/autotouch_main.git@<bra
97
100
  python -m pip install -U "git+ssh://git@github.com/nicolonic/autotouch_main.git@<branch-or-sha>"
98
101
  ```
99
102
 
100
- The `autotouch-cli` package name installs the latest published package from the configured package index. Use the git/source install form when testing a version bump before the release tag has published.
103
+ The `autotouch-cli` package name installs only the latest published artifact.
104
+ Use the git/source install form when testing a version bump, docs/help changes,
105
+ or new command contracts before the release tag has published.
106
+
107
+ Verify the installed binary and bundled docs:
108
+
109
+ ```bash
110
+ autotouch --version
111
+ autotouch columns update --help
112
+ autotouch cli-reference --source bundled | grep -n "valueSchema"
113
+ ```
114
+
115
+ If `pipx upgrade autotouch-cli` or `python -m pip install -U autotouch-cli`
116
+ reports success but `which autotouch` still points at an older shim, fix `PATH`
117
+ or run the upgraded binary directly before using production commands.
101
118
 
102
119
  ## First Run
103
120
 
@@ -169,19 +186,16 @@ autotouch columns recipe --type lead_finder --out-file column.json
169
186
  # 5) Create the column and capture its id
170
187
  COLUMN_ID=$(autotouch columns create --table-id "$TABLE_ID" --data-file column.json --output json --select id)
171
188
 
172
- # 6) Run a small controlled slice and capture the bulk job id
173
- JOB_ID=$(autotouch columns run-next \
189
+ # 6) Run a small controlled slice and observe the canonical operation receipt
190
+ autotouch columns run-next \
174
191
  --table-id "$TABLE_ID" \
175
192
  --column-id "$COLUMN_ID" \
176
193
  --count 2 \
177
194
  --show-estimate \
178
195
  --wait \
179
- --output json --select job_id)
180
-
181
- # 7) Verify backend truth
182
- autotouch jobs get --job-id "$JOB_ID" --output json
196
+ --output json
183
197
 
184
- # 8) Inspect exactly what changed
198
+ # 7) Inspect exactly what changed
185
199
  autotouch rows get --table-id "$TABLE_ID" --row-id "$ROW_ID" --output json
186
200
  ```
187
201
 
@@ -197,7 +211,7 @@ autotouch rows get --table-id "$TABLE_ID" --row-id "$ROW_ID" --output json
197
211
  - Build durable company, lead, and job-posting lists on Smart Table workers: `autotouch list-build companies`, `autotouch list-build leads`, `autotouch list-build jobs`
198
212
  - Check connected LinkedIn account status/limits: `autotouch linkedin status`, `autotouch linkedin limits`
199
213
  - Run controlled slices: `autotouch columns run-next`
200
- - Poll authoritative state: `autotouch jobs get`
214
+ - Poll Research Table state: `autotouch columns run --wait` (canonical `operation_run` receipt); use `autotouch jobs get/watch` only for native executor diagnostics.
201
215
  - Create/activate sequences: `autotouch sequences recipe`, `autotouch sequences create`, `autotouch sequences activate`
202
216
  - Choose Instantly/Smartlead sender pools for bulk sequences: `autotouch sequences sync-accounts`
203
217
  - Query leads: `autotouch leads query`
@@ -223,7 +237,7 @@ Keep `requiredVariables` limited to variables that the sequence actually needs.
223
237
 
224
238
  Version guard:
225
239
 
226
- - Use `autotouch --version` before relying on recipe defaults. This repo expects `autotouch-cli` `0.2.120` or newer.
240
+ - Use `autotouch --version` before relying on recipe defaults. This repo expects `autotouch-cli` `0.2.121` or newer.
227
241
  - If `python3 -m pip install -U autotouch-cli` upgrades the package but `which autotouch` still points at an older shim, run the upgraded binary directly or fix PATH before creating production sequences.
228
242
  - Before authoring a LinkedIn sequence, inspect the live recipe:
229
243
 
@@ -253,19 +267,70 @@ Autotouch has two different company/people discovery paths.
253
267
 
254
268
  Use `autotouch search companies` for Exa Company Search when the target is basic company discovery, competitors, lookalikes, or a semantic company search. Put company constraints directly in natural language: industry, geography, funding, headcount, technology, founded date, and similarity. Examples: "AI workflow platforms for healthcare", "US education software startups focused on AI math tutoring with 1-50 employees", or "companies like Rippling for HR and workforce management". Exa company search returns up to 100 results per API call and costs 1 credit per 10 returned results.
255
269
 
256
- Use `autotouch search similar-companies` as a convenience wrapper for Exa Company Search similarity. Prefer `--query` for Exa's documented semantic patterns, such as "companies like Notion", "competitors of Stripe", or "companies working on making space travel cheaper". The older seed fields `company_name`, `company_domain`, and `company_description` remain available when you want the CLI/API to compose that query; it does not use Exa `/findSimilar`.
270
+ Use `autotouch search similar-companies` as a convenience wrapper for Exa Company Search similarity. `--query` is required and is sent unchanged; use Exa's documented semantic patterns, such as "companies like Notion", "competitors of Stripe", or "companies working on making space travel cheaper". Optional `--company-name` and `--company-domain` identify the seed only so it can be excluded from results; they never compose or rewrite the query. This command does not use Exa `/findSimilar`.
257
271
 
258
272
  Use `autotouch search people` for provider-hidden people search when the target is niche, semantic, or hard to express with structured filters. Send `--person-description` / `person_description` as a responsibility, for example "person responsible for endpoint management and SaaS app access", and use only company, domain, or location as optional public-search anchors. The CLI still accepts `--query` as a deprecated alias. Legacy `lead_description`, title, skills, and plural criteria are rejected by the backend people-search contract so the provider does not guess from ambiguous fields. People search currently returns at most 10 results per API call and costs 1 credit per API call.
259
273
 
260
- Use `autotouch list-build companies`, `autotouch list-build leads`, and `autotouch list-build jobs` for structured, repeatable list construction. Companies/leads are the LinkedIn/Sales Navigator-sourced path; jobs are for recent job-posting lists such as SDR hiring signals. Treat list builds as the sourcing step for the Smart Table research workspace: build company/account, lead, or job-posting records, sync the records to a research table with `autotouch list-build sync-to-table`, then enrich, score, segment, find related leads, attach signals/notes, and continue downstream workflows from that table. Use lead builds directly when the request is explicitly person/contact focused. Use job builds when the target is hiring or job-posting intent and pass `--lookback 1h|24h|7d` for recency. This path uses Autotouch-managed provider access, so users do not need to connect their own LinkedIn account. Use filters like geography IDs, company size, industry IDs, title/persona, current company IDs, job query/title, location, and lookback; call `autotouch list-build inputs` for supported values. Durable list builds run as background jobs with status/results endpoints and cost 1 credit per successful non-empty result page.
274
+ Use native company and people search for structured durable lists. Inspect `autotouch capabilities operations get lists.build_companies` or `lists.build_people` for the full filter contract. CLI 0.2.122 adds native defaults, JSON filters and saved-list continuation. Exact help comes from the installed CLI; capability metadata comes from the selected API server.
261
275
 
262
- LinkedIn is an optional campaign channel, not the default for every outbound workflow. Use it when the user explicitly wants LinkedIn-sourced lists, profile visits, connection requests, or LinkedIn follow-up tasks. Prefer email/call/custom sequences or research-table workflows when LinkedIn would unnecessarily constrain output because of provider limits, cooldowns, missing profile URLs, or campaign fit.
276
+ ```bash
277
+ autotouch list-build companies --country-code US --filters-json '{"max_employees":24}' --num-results 20 --table-name "Small companies" --wait
278
+ autotouch list-build leads --title "SDR Manager" --title "Sales Development Manager" --city "New York" --country-code US --num-results 20 --table-name "SDR managers" --wait
279
+ autotouch list-build leads --from-job-id lb_prior --num-results 20 --wait
280
+ ```
281
+
282
+ `--filters-json` exposes the full source filter vocabulary; `--data-file` accepts the complete API request. Person geography belongs in `people_filters`; employer constraints belong in `company_filters`. No user-owned LinkedIn connection is needed. Read `list-build pricing` for current costs. For more of the same list, resume the completed delivered job with `--from-job-id`; the backend restores its filters, cursor and table. Changed criteria require a fresh search. Broader candidates should remain separate until qualified.
263
283
 
264
- For structured company builds, start with industry IDs plus geo/company-size filters. User-supplied `keywords` are optional when structured filters are present; use them only to refine, disambiguate, or recover hard-to-classify targets instead of carrying the whole target definition.
284
+ Use `autotouch scheduled ...` for recurring Command Center work. Scheduled Chat
285
+ creates a fresh task for each occurrence and uses the owner's user session,
286
+ resource references, and reviewed standing authority. Run `autotouch auth login`
287
+ first; these commands do not accept developer API keys. Create a draft from the
288
+ HTTP request body, review its returned version and authority, then activate it:
265
289
 
266
- For account-first prospecting from LinkedIn/Sales Navigator, build companies/accounts first, inspect the returned company IDs, then pass those IDs to `autotouch list-build leads --current-company-id ...`. Do not use Exa company search as a default pre-step for every LinkedIn list build; use it when the user's target is genuinely semantic, niche, competitor-based, or not meant to be LinkedIn-sourced.
290
+ ```bash
291
+ autotouch scheduled create --data-file schedule.json
292
+ autotouch scheduled get <SCHEDULE_ID>
293
+ autotouch scheduled activate <SCHEDULE_ID> --expected-version <VERSION>
294
+ autotouch scheduled runs <SCHEDULE_ID>
295
+ ```
267
296
 
268
- Use `autotouch agents ...` for recurring signal-based discovery. Scheduled agents support `--target ACCOUNTS` for company/account output and `--target LEADS` for people output. Every agent writes a source/signal table for the evidence it used; lead agents then write `candidate_research.candidates[]` on source rows and list-sync those candidates into the lead/candidate output table. LinkedIn engagement lead agents screen all harvested engagers by headline/title before company resolution and final lead scoring; company agents can keep matches in review or auto-promote qualified matches into the Companies workspace. See the agent playbook and `docs/systems/scheduled-agents.md` for the full source-table, candidate-sync, company-promotion, and runtime contract.
297
+ The draft body contains `name`, `prompt`, and `recurrence: {rrule, timezone}`;
298
+ optional `resourceRefs` identify exact host resources. Updating, activating,
299
+ pausing, archiving, and running now use the current `expectedVersion`. Run now
300
+ also requires a stable `idempotencyKey` of 8-200 characters. An occurrence's
301
+ `operationRunId` and eventual `threadId` identify its durable execution.
302
+
303
+ The bounded search adapters include `search catalog-companies`, `search
304
+ people-basic`, `search linkedin-posts`, `search linkedin-post-engagers`,
305
+ `search role-changes`, and `search board-jobs`. Use their help for limits and `--data-file` for their
306
+ exact HTTP request bodies. These return search artifacts and do not create
307
+ durable list-build jobs.
308
+
309
+ `autotouch organization users --query <TEXT> --limit 20 --offset 0` reads the
310
+ current organization user catalog (`users:read`). `autotouch sequences
311
+ table-readiness --sequence-id <ID> --source-lead-column <KEY>` reads the linked
312
+ table's canonical Sync to Leads results without enrolling anyone; developer
313
+ keys need `sequences:read`, `tables:read`, and `leads:read`.
314
+
315
+ `autotouch calendar` is available only when the target deployment enables
316
+ Calendar. Reads require `calendar:read`, writes require `calendar:write`, and
317
+ the backend checks the caller's connected account and event access. Agenda
318
+ reads accept explicit timezone-aware `--start`/`--end` ranges and pagination;
319
+ `get-agenda-event` reads an exact provider event. Event mutation commands act
320
+ on the Lead-associated event contract. `send-lead-invite` requires explicit CRM
321
+ Lead IDs and a caller-supplied UUID `request_id` in its body.
322
+
323
+ Exact company actions use `companies promote`, `companies
324
+ refresh-firmographics`, and `companies refresh-firmographics-status`, all with a
325
+ user session. The refresh returns a canonical `operation_run_id`; the status
326
+ command accepts the returned native `job_id` for provider result inspection.
327
+
328
+ Use `tables enrich-and-score-preflight --table-id <ID> --data-file plan.json`
329
+ to obtain the server's reviewed plan. `tables enrich-and-score` accepts that
330
+ plan's inputs, returned `planId`/`planVersion`, and a stable `idempotencyKey`.
331
+ Use `tables enrich-and-score-retry` with the exact terminal parent operation
332
+ ID to retry only unfinished rows. These commands print durable admission
333
+ receipts; inspect the canonical operation run to establish completion.
269
334
 
270
335
  ## Workflow Plans
271
336
 
@@ -280,7 +345,7 @@ discover -> plan -> scaffold -> run primitives -> inspect
280
345
  - `autotouch workflows scaffold --type <TYPE> --out-dir <DIR>` writes payload files and a command runbook.
281
346
  - `autotouch columns recipe` and `autotouch sequences recipe` remain leaf-level templates.
282
347
 
283
- Goal-level workflow types include `bulk_outreach`, `company_table_to_people`, `table_to_outreach`, `research_to_sequence`, `agent_to_sequence`, `agent_to_leads`, `account_research`, `signal_outreach`, `website_visitors`, `list_build_to_table`, and `system_to_table`. These keep CRM, outreach providers, Autotouch Leads, Autotouch Sequences, scheduled agents, webhooks, visitor sources, external intent sources, and existing Autotouch workspace records as sources/destinations inside one organized workflow layer instead of creating one-off top-level commands.
348
+ Goal-level workflow types include `bulk_outreach`, `company_rows_to_people_table`, `table_to_outreach`, `research_to_sequence`, `sequence_launch`, `table_to_routed_sequence`, `account_research`, `signal_outreach`, `website_visitors`, `list_build_to_table`, `company_discovery_to_contacts`, `external_api_to_table`, and `system_to_table`. These keep CRM, outreach providers, Autotouch Leads, Autotouch Sequences, webhooks, visitor sources, external intent sources, and existing Autotouch workspace records as sources/destinations inside one organized workflow layer instead of creating one-off top-level commands.
284
349
 
285
350
  ## Sources And Destinations
286
351
 
@@ -292,7 +357,11 @@ Use `autotouch integrations list` before wiring data movement. It returns connec
292
357
  - `to_leads`: sync research-table rows into Autotouch Leads before sequencing. Start with `autotouch columns recipe --type to_leads`.
293
358
  - `to_sequence`: enroll Autotouch Leads into an Autotouch Sequence and assign generated tasks. Start with `autotouch columns recipe --type to_sequence`.
294
359
 
295
- Use the direction in the user's wording. "Pull from HubSpot" means `from_crm`. "Push to HubSpot" means `to_crm`. "Add these leads to this Autotouch sequence" means `to_leads` first when lead IDs do not exist, then `to_sequence`.
360
+ Use the direction in the user's wording. "Pull from HubSpot" means `from_crm`.
361
+ "Push to HubSpot" means `to_crm`. For a request involving Autotouch Leads and
362
+ Sequences, inspect the current table/resource state and choose the typed
363
+ operation or recipe that matches the missing effect; the CLI does not impose a
364
+ fixed operation order.
296
365
 
297
366
  For sequence handoffs, keep the common path simple: set `assignedToUserId` and omit sender routing fields. Autotouch uses that user's default connected email and LinkedIn sender accounts. Use `autotouch sender-accounts list` only when the user wants explicit sender pinning, round-robin/team routing, or wants to manage sender accounts on behalf of users. Sender-account default/delegation changes are owner/admin user-session operations.
298
367
 
@@ -352,13 +421,11 @@ For automation or agent-driven setup, use:
352
421
  - `autotouch cli-manifest --output json` for the local machine-readable command contract
353
422
  - `autotouch cli-reference` for the shipped parser-generated reference
354
423
  - `autotouch capabilities --output json` for provider/workflow contracts
355
- - `autotouch capabilities operations search "find work emails"` and `autotouch capabilities operations get research_table.email_finder` to map product operations to the current CLI command path
356
- - `autotouch --version` should be `0.2.120` or newer for product-operation discovery via `capabilities operations list/search/get`, `cli.lifecycle[]` command-step projections, CRM custom-field catalog/create/update commands, lead/company custom-field value writes, structured company list builds without user-supplied keywords, stored list-build input lookup, research-workspace list-build guidance, durable job-posting list builds with `--lookback 1h|24h|7d`, the cleaned single LinkedIn-sourced list-build path, Exa Company Search up to 100 results, scheduled agent `--target ACCOUNTS|LEADS`, `agents signals --target`, the `agent_to_sequence` and `agent_to_leads` workflow scaffolds, paced HTTP Request column contracts, branch-aware LinkedIn sequence recipes, `LINKEDIN_MESSAGE` best-available delivery versus `LINKEDIN_CHAT_MESSAGE` chat-only guidance, sequence campaign intake guards before mutating objects, real agent soft-delete with associated-table handling, research-table sequence handoff assignee and active-sequence-conflict guard config, backend-owned directional source/destination helpers, goal-level workflow plans, website visitor/external intent webhook workflow guidance, create-time agent assignment defaults, company-page signal configuration guidance, sequence authoring warnings when AI draft is mixed with fixed templates, sender-account discovery/management for explicit sequence routing, mixed parent-row/child-list Sync to Table and Sync to Leads recipe configs, and company variable guidance for `company_name_clean` versus internal match keys
357
- - `autotouch capabilities --output json --select list_builds` for documented list-build inputs such as geography IDs, company size buckets, profile language, and company IDs
424
+ - `autotouch capabilities operations list --surface research_table --cli-available` and `autotouch capabilities operations get research_table.email_finder` to map an exact product operation to the current CLI command path
425
+ - Check `autotouch --version`, then inspect the installed manifest for the exact supported command set; repository source does not establish the version installed from PyPI.
426
+ - `autotouch capabilities --output json --select list_builds` for source-specific list-build metadata; use operation detail for the full native filter schema
358
427
  - `autotouch integrations list` and `autotouch integrations status --provider <provider>` before choosing source/destination workflows
359
428
  - `autotouch workflows plan --type bulk_outreach` and `autotouch workflows scaffold --type bulk_outreach --out-dir workflow` for goal-level workflow planning
360
- - `autotouch workflows plan --type agent_to_leads` and `autotouch workflows scaffold --type agent_to_leads --out-dir workflow` for scheduled agent discovery into qualified Autotouch Leads without sequence tasks
361
- - `autotouch workflows plan --type agent_to_sequence` and `autotouch workflows scaffold --type agent_to_sequence --out-dir workflow` for scheduled agent discovery into Autotouch Sequence tasks
362
429
  - `autotouch workflows plan --type website_visitors` and `autotouch workflows scaffold --type website_visitors --out-dir workflow` for website visitor or external intent provider webhook workflows
363
430
  - `autotouch integrations recipe --type from_crm --provider hubspot` for CRM-to-research-table imports
364
431
  - `autotouch columns recipe --type to_crm|to_outreach|to_leads|to_sequence` for research-table destination workflows
@@ -374,15 +441,22 @@ For automation or agent-driven setup, use:
374
441
 
375
442
  Research-table cell updates are persistence-first. Writers update Mongo `cells`; the API-side Mongo change-stream listener emits table-scoped `cells_update_batch` events. Workers should not emit per-cell socket events directly, and `/api/events/emit` is not a cell-update transport.
376
443
 
377
- CSV import/export and long-running worker flows still emit low-rate lifecycle/progress events such as `table_update`, but saved cell state is the source of truth for table rendering. For the full contract, see `docs/platform/realtime-events.md` and `docs/workers/bulk-jobs.md`.
444
+ CSV import/export and long-running workflows still emit low-rate lifecycle/progress events such as `table_update`, but saved cell state is the source of truth for table rendering. For the full contract, see `docs/platform/realtime-events.md` and `docs/infra/azure/runtime-v2.md`.
378
445
 
379
446
  ## LLM Columns
380
447
 
381
- For `llm_enrichment` in `agent` mode, the recommended path is:
448
+ For `llm_enrichment` in either `basic` or `agent` mode, the recommended path is:
382
449
  - provide `config.instructions`
383
- - let the API compile the runnable prompt
450
+ - let the API compile and persist the canonical `config.advancedPrompt`
384
451
  - keep `config.useAutoSchema = true`
385
452
 
453
+ When exact prompt text is required, send `config.advancedPrompt` directly and
454
+ set `config.promptSource = "manual"`. Runtime reads only the materialized
455
+ `advancedPrompt`; removed `config.prompt` and `config.advanced_prompt` aliases
456
+ are rejected. For controller-backed research, keep tool protocol, source
457
+ progression, evidence memory, coverage, and finalization in the host/controller
458
+ instead of embedding them in the column prompt.
459
+
386
460
  Only send `user_schema` / `response_schema` when you intentionally want to override the generated schema and keep it aligned yourself. The installed recipe surface at `autotouch columns recipe --type llm_enrichment` follows this contract.
387
461
 
388
462
  Schema ownership rules:
@@ -0,0 +1,59 @@
1
+ # Smart Table
2
+
3
+ Smart Table is the Autotouch product repository. It contains the API, web
4
+ application, CRM integrations, Durable Task runtime, CLI, shared
5
+ libraries, infrastructure, and their tests.
6
+
7
+ ## Start here
8
+
9
+ - [Documentation map](docs/README.md) — canonical product, runtime, data, and
10
+ operations documentation.
11
+ - [Applications](apps/README.md) — API, web, Attio, and
12
+ Salesforce entrypoints.
13
+ - [Backend placement guide](docs/development/backend/README.md) — where API
14
+ routers and services belong.
15
+ - [Frontend placement guide](docs/development/frontend/README.md) — where web
16
+ systems, shared UI, and types belong.
17
+ - [Runtime v2 architecture](docs/infra/azure/runtime-v2.md) — deployed runtime
18
+ topology and ownership.
19
+ - [MongoDB access and query audits](docs/operations/mongodb-access.md) — safe
20
+ production access, Atlas slow-query evidence, and index validation.
21
+ - [Autotouch CLI](autotouch_cli/README.md) — installation and command guide.
22
+ - [Finder and enrichment docs](docs/enrichment/README.md) — current email,
23
+ phone, validation, caching, and provider-fallback behavior.
24
+
25
+ ## Repository map
26
+
27
+ | Location | Purpose |
28
+ | --- | --- |
29
+ | `apps/` | User-facing and integration applications |
30
+ | `autotouch_runtime/` | Durable Task workflows, activities, scheduling, and worker registration |
31
+ | `autotouch_shared/` | Deterministic contracts shared by the API, runtime, and CLI |
32
+ | `autotouch_cli/` | Published `autotouch` command-line package |
33
+ | `docs/` | Canonical architecture, product, data, integration, and operations documentation |
34
+ | `infra/` | Azure, AWS, and sandbox infrastructure definitions |
35
+ | `scripts/` | Operational tools, migrations, diagnostics, and release helpers |
36
+ | `tests/` | Cross-package unit and integration tests |
37
+ | `artifacts/` | Documented local runtime inputs that are intentionally excluded from Git |
38
+
39
+ `apps/workers/` no longer exists. Background execution is owned by
40
+ `autotouch_runtime/`; API-facing orchestration remains under `apps/api/`.
41
+
42
+ ## Common commands
43
+
44
+ ```bash
45
+ # Start or stop the local Runtime v2 product stack
46
+ ./run_runtime_v2_local.sh
47
+ ./stop_runtime_v2_local.sh
48
+
49
+ # Start the frontend by itself
50
+ cd apps/web
51
+ npm run dev
52
+
53
+ # Deploy through the canonical production launcher
54
+ ./push.sh
55
+ ```
56
+
57
+ Local credentials, virtual environments, generated builds, and tool state are
58
+ ignored. OAuth secret files under `configs/auth/` are local runtime inputs and
59
+ must never be committed or copied into a container image.