autotouch-cli 0.2.126__tar.gz → 0.2.130__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 (145) hide show
  1. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/PKG-INFO +110 -19
  2. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/README.md +108 -18
  3. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/cli.py +18 -2
  4. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/cli_contracts.py +5 -0
  5. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/auth.py +12 -118
  6. autotouch_cli-0.2.130/autotouch_cli/commands/cells.py +175 -0
  7. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/columns.py +13 -1
  8. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/crm.py +4 -4
  9. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/leads.py +7 -1
  10. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/notes.py +12 -9
  11. autotouch_cli-0.2.130/autotouch_cli/commands/plays.py +541 -0
  12. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/product_http.py +86 -5
  13. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/sequences.py +57 -6
  14. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/signals.py +13 -11
  15. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/tasks.py +0 -17
  16. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/webhooks.py +23 -7
  17. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/core/auth.py +6 -24
  18. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/core/http.py +12 -0
  19. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/data/CLI_REFERENCE.md +2158 -910
  20. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/data/cli-manifest.json +11751 -4040
  21. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/parser.py +36 -1
  22. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/parser_groups.py +8 -9
  23. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/templates.py +72 -94
  24. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli.egg-info/PKG-INFO +110 -19
  25. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli.egg-info/SOURCES.txt +11 -2
  26. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli.egg-info/requires.txt +1 -0
  27. autotouch_cli-0.2.130/autotouch_shared/contact_channels.py +178 -0
  28. autotouch_cli-0.2.130/autotouch_shared/dedupe_normalizers.py +145 -0
  29. autotouch_cli-0.2.130/autotouch_shared/employer_match.py +313 -0
  30. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/fit_component_receipts.py +47 -1
  31. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/fit_scoring.py +1 -64
  32. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/fit_title_intelligence.py +62 -1
  33. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/fit_title_seniority.py +1 -1
  34. autotouch_cli-0.2.130/autotouch_shared/linkedin_identity.py +84 -0
  35. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/list_build_contract.py +5 -0
  36. autotouch_cli-0.2.130/autotouch_shared/list_items.py +78 -0
  37. autotouch_cli-0.2.130/autotouch_shared/people_employment.py +184 -0
  38. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/product_use_cases.py +57 -11
  39. autotouch_cli-0.2.130/autotouch_shared/projection_values.py +281 -0
  40. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/provider_registry.py +16 -0
  41. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/research_execution.py +46 -1
  42. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/research_rows.py +1 -10
  43. autotouch_cli-0.2.130/autotouch_shared/research_table_filters.py +610 -0
  44. autotouch_cli-0.2.130/autotouch_shared/schedule_holidays.py +92 -0
  45. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/search_contract.py +0 -35
  46. autotouch_cli-0.2.130/autotouch_shared/signal_guidance.py +50 -0
  47. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/title_attribute_cascade.py +46 -7
  48. autotouch_cli-0.2.130/autotouch_shared/type_detection.py +162 -0
  49. autotouch_cli-0.2.130/autotouch_shared/value_coercion.py +110 -0
  50. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/pyproject.toml +2 -1
  51. autotouch_cli-0.2.126/autotouch_cli/commands/cells.py +0 -103
  52. autotouch_cli-0.2.126/autotouch_shared/contact_channels.py +0 -47
  53. autotouch_cli-0.2.126/autotouch_shared/linkedin_identity.py +0 -46
  54. autotouch_cli-0.2.126/autotouch_shared/people_employment_screening.py +0 -234
  55. autotouch_cli-0.2.126/autotouch_shared/research_json_filtering.py +0 -165
  56. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/MANIFEST.in +0 -0
  57. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/README.md +0 -0
  58. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/__init__.py +0 -0
  59. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/__init__.py +0 -0
  60. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/capacity.py +0 -0
  61. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/companies.py +0 -0
  62. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/event_streams.py +0 -0
  63. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/integrations.py +0 -0
  64. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/jobs.py +0 -0
  65. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/linkedin.py +0 -0
  66. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/list_build.py +0 -0
  67. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/outreach.py +0 -0
  68. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/prompts.py +0 -0
  69. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/rows.py +0 -0
  70. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/search.py +0 -0
  71. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/sender_accounts.py +0 -0
  72. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/tables.py +0 -0
  73. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/workspace_secrets.py +0 -0
  74. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/workspace_views.py +0 -0
  75. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/commands/workspaces.py +0 -0
  76. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/core/__init__.py +0 -0
  77. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/core/config.py +0 -0
  78. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/core/csv_import.py +0 -0
  79. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/core/io.py +0 -0
  80. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/core/output.py +0 -0
  81. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/core/polling.py +0 -0
  82. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/core/receipts.py +0 -0
  83. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/core/run.py +0 -0
  84. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/core/validation.py +0 -0
  85. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/exceptions.py +0 -0
  86. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/mongo_status.py +0 -0
  87. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli/sequence_support.py +0 -0
  88. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli.egg-info/dependency_links.txt +0 -0
  89. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli.egg-info/entry_points.txt +0 -0
  90. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_cli.egg-info/top_level.txt +0 -0
  91. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/__init__.py +0 -0
  92. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/add_to_crm_contract.py +0 -0
  93. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/automation_predicates.py +0 -0
  94. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/business_email.py +0 -0
  95. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/classification.py +0 -0
  96. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/classification_config.py +0 -0
  97. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/company_catalog.py +0 -0
  98. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/company_classification_v3_contract.py +0 -0
  99. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/company_domain_value.py +0 -0
  100. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/company_enrichment_policy.py +0 -0
  101. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/company_revenue.py +0 -0
  102. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/company_scoring_subject.py +0 -0
  103. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/email_finder_inputs.py +0 -0
  104. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/email_patterns.py +0 -0
  105. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/field_mapping.py +0 -0
  106. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/fit_company_profile.py +0 -0
  107. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/fit_company_size.py +0 -0
  108. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/fit_company_subject.py +0 -0
  109. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/fit_headline_title_parser.py +0 -0
  110. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/fit_title_taxonomy.py +0 -0
  111. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/http_retry.py +0 -0
  112. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/jev_headline_title.py +0 -0
  113. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/lead_company_identity.py +0 -0
  114. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/lead_finder_inputs.py +0 -0
  115. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/lead_identity.py +0 -0
  116. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/lead_source_lineage.py +0 -0
  117. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/linkedin_contract.py +0 -0
  118. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/linkedin_filters.py +0 -0
  119. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/logging_filters.py +0 -0
  120. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/lookup_outcomes.py +0 -0
  121. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/outreach_company_fit.py +0 -0
  122. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/people_discovery_contract.py +0 -0
  123. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/person_lookup_inputs.py +0 -0
  124. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/person_names.py +0 -0
  125. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/person_relationship.py +0 -0
  126. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/personal_email_domains.json +0 -0
  127. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/phone_finder_inputs.py +0 -0
  128. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/pipeline_patterns.py +0 -0
  129. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/product_lifecycle.py +0 -0
  130. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/realtime_events.py +0 -0
  131. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/research_cell_references.py +0 -0
  132. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/research_column_sources.py +0 -0
  133. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/research_company_inheritance.py +0 -0
  134. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/research_context.py +0 -0
  135. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/research_field_selection.py +0 -0
  136. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/research_llm.py +0 -0
  137. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/score_lifecycle.py +0 -0
  138. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/source_selection.py +0 -0
  139. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/task_plan.py +0 -0
  140. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/title_org_context.py +0 -0
  141. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/typesafe_system_one.py +0 -0
  142. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/workflow_field_changes.py +0 -0
  143. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/workflow_plans.py +0 -0
  144. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/autotouch_shared/workflow_score_fields.py +0 -0
  145. {autotouch_cli-0.2.126 → autotouch_cli-0.2.130}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: autotouch-cli
3
- Version: 0.2.126
3
+ Version: 0.2.130
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
@@ -19,6 +19,7 @@ Classifier: Topic :: Utilities
19
19
  Requires-Python: >=3.9
20
20
  Description-Content-Type: text/markdown
21
21
  Requires-Dist: requests>=2.31.0
22
+ Requires-Dist: certifi>=2026.10.19
22
23
  Requires-Dist: python-dotenv>=1.0.0
23
24
  Provides-Extra: mongo
24
25
  Requires-Dist: pymongo>=4.7; extra == "mongo"
@@ -112,6 +113,57 @@ autotouch columns update --help
112
113
  autotouch cli-reference --source bundled | grep -n "valueSchema"
113
114
  ```
114
115
 
116
+ Deal commands are available as `autotouch deals list|get|pipelines|create|update|delete`.
117
+ Developer keys need `deals:read` for reads and `deals:write` for create,
118
+ update, or archive. `deals delete` archives the canonical Deal. For example:
119
+
120
+ ```bash
121
+ autotouch deals pipelines --output json
122
+ autotouch deals list --company-id <COMPANY_ID> --state open --output json
123
+ autotouch deals update --deal-id <DEAL_ID> --data-json '{"next_step":"Review proposal"}' --output json
124
+ ```
125
+
126
+ Actions: `autotouch actions list|get|plan|assign`. `list` reads the queue (your
127
+ open actions by default; `--view unassigned` for the ones with no owner,
128
+ `--view all` for the organization's, `--tab completed` for handled ones, plus
129
+ `--state`, `--category`, `--search`, `--sort` and fit-range filters; page with
130
+ `--limit` and `--offset`), `get` reads one action with its plan, `plan` asks
131
+ the planner to plan an action or plan it again, optionally with `--note` (your
132
+ words, which the planner follows first, up to 500 characters) and
133
+ `--sequence-id` (pin a sequence), and `assign` makes you the action's owner
134
+ (Assign to me: any open action that is not being worked, unassigned or a
135
+ teammate's). Developer keys need `actions:read` for `list` and `get` and
136
+ `actions:write` for `plan` and `assign`. Planning and ownership send nothing:
137
+ the plan is a proposal a person approves in the app, and there is no CLI
138
+ command or developer-key route for approving or dismissing. For example:
139
+
140
+ ```bash
141
+ autotouch actions list --view all --state not_planned --output json
142
+ autotouch actions get --action-id <ACTION_ID>
143
+ autotouch actions plan --action-id <ACTION_ID> --note 'find the head of support instead'
144
+ autotouch actions list --view unassigned --limit 200 --offset 200 --output json
145
+ autotouch actions assign --action-id <ACTION_ID>
146
+ ```
147
+
148
+ Actions plays and persona suggestions: `autotouch plays list|get|propose|update|activate|retire|promote|shadow`
149
+ (`create` is an alias of `propose`) and `autotouch personas suggestions
150
+ list|propose|propose-update|propose-retire|edit|accept|dismiss`. Developer keys
151
+ need `actions:read` for reads and `actions:write` for every write
152
+ (`plays shadow` recomputes and stores the shadow numbers). A play always starts
153
+ `proposed`; `plays activate` is the person's confirmation. `plays promote` and
154
+ the persona `edit`, `accept` and `dismiss` commands are admin-only (checked on
155
+ the server). Pass the structured `when` / `prefer` bodies with `--when-json` /
156
+ `--prefer-json` (or `--when-file`), or the whole body with `--data-json` /
157
+ `--data-file`. For example:
158
+
159
+ ```bash
160
+ autotouch plays list --scope mine --status proposed --output json
161
+ autotouch plays propose --title 'Funding signal: call the founder' --category outreach --persona-id <PERSONA_ID> \
162
+ --when-json '{"signal_types":["funding"]}' --prefer-json '{"action":{"kind":"task","channel":"call"}}'
163
+ autotouch plays activate --play-id <PLAY_ID>
164
+ autotouch personas suggestions propose-update --persona-id <PERSONA_ID> --add-title 'VP Sales' --rationale 'Seen on 5 accounts'
165
+ ```
166
+
115
167
  If `pipx upgrade autotouch-cli` or `python -m pip install -U autotouch-cli`
116
168
  reports success but `which autotouch` still points at an older shim, fix `PATH`
117
169
  or run the upgraded binary directly before using production commands.
@@ -135,25 +187,13 @@ autotouch auth check --base-url https://app.autotouch.ai
135
187
 
136
188
  Fresh account:
137
189
 
138
- ```bash
139
- export AUTOTOUCH_CONFIG_PATH=/tmp/autotouch-audit.json
140
- read -s AUTOTOUCH_BOOTSTRAP_PASSWORD
141
- export AUTOTOUCH_BOOTSTRAP_PASSWORD
142
-
143
- autotouch auth bootstrap \
144
- --first-name Ada \
145
- --last-name Lovelace \
146
- --email ada+audit@example.com \
147
- --password "$AUTOTOUCH_BOOTSTRAP_PASSWORD" \
148
- --organization-name "Audit Org" \
149
- --save-key
150
-
151
- autotouch auth check
152
- ```
190
+ Register and sign in through the web app, create a developer API key from the
191
+ authenticated workspace, and then configure that key with `autotouch setup`.
192
+ The former public `autotouch auth bootstrap` flow is retired.
153
193
 
154
194
  Demo accounts:
155
195
 
156
- - For a brand-new demo org plus developer key, use `autotouch auth bootstrap` as shown above.
196
+ - For a brand-new demo org plus developer key, register normally and create the key from the authenticated workspace.
157
197
  - For a demo login inside an existing seeded demo org, create the org with `apps/api/scripts/create_demo_org.py`, then add the user through the invite/register flow in `docs/operations/demo-accounts.md`.
158
198
 
159
199
  Config precedence:
@@ -205,6 +245,8 @@ autotouch rows get --table-id "$TABLE_ID" --row-id "$ROW_ID" --output json
205
245
  - Add rows: `autotouch rows add`
206
246
  - Inspect rows: `autotouch rows list`, `autotouch rows get`
207
247
  - Inspect one cell: `autotouch cells get`
248
+ - Write cells: `autotouch cells patch` sends at most 500 updates and 100 distinct rows per request and splits larger payloads automatically; writes to lead-owned or source-managed columns are rejected with 400, so write to a column you created.
249
+ - `autotouch leads create-research-table` needs the scopes `leads:read`, `leads:write`, `companies:read`, `tables:read` and `tables:write`.
208
250
  - Create a workflow column: `autotouch columns recipe`, `autotouch columns create`
209
251
  - Run Exa Company Search for basic company discovery, competitors, and lookalikes: `autotouch search companies`, `autotouch search similar-companies`
210
252
  - Inspect list-build inputs: `autotouch list-build inputs`
@@ -242,6 +284,36 @@ filters and limit. A page with `has_more=true` is incomplete; an empty result
242
284
  describes only the selected filters and time window. The command does not start
243
285
  a scan, save a subscription, or create a run.
244
286
 
287
+ ## Query Calls
288
+
289
+ `autotouch calls query` reads the organization's call log (every rep): one row
290
+ per dialed call, newest first, including calls not tied to a task. Developer API
291
+ keys need `calls:read`. The body is a `CallQueryRequest`: a `filter`
292
+ (FilterDescriptor on `started_at`, `agent_id`, `outcome`, `disposition`,
293
+ `connected`, `duration_sec`, `has_recording`, `has_transcript` and the task
294
+ query's `lead.*` / `company.*` fields), `pagination` (`limit` 1-500, `cursor`)
295
+ and `sort` on `started_at`.
296
+
297
+ ```bash
298
+ autotouch calls query --data-json '{"filter":{"root":{"kind":"group","logic":"and","children":[
299
+ {"kind":"rule","field":"started_at","operator":"gte","value":"2026-11-01T00:00:00Z"},
300
+ {"kind":"rule","field":"connected","operator":"eq","value":true}]}},"pagination":{"limit":100}}'
301
+ autotouch calls query --group-by company.industry \
302
+ --data-json '{"filter":{"root":{"kind":"rule","field":"started_at","operator":"gte","value":"2026-11-01T00:00:00Z"}}}'
303
+ ```
304
+
305
+ Rows carry `rep`, `lead`, `company`, `outcome {key, label}`, `disposition`,
306
+ `connected`, `duration_sec`, `talk_time_sec`, `task_id`, `has_recording` and
307
+ `has_transcript`; never transcript text or a recording link (read one transcript
308
+ with `GET /api/reports/call-review/transcripts/{call_log_id}`). Pass `next_cursor`
309
+ back as `pagination.cursor` while `has_more` is true. `--group-by` (`outcome`,
310
+ `agent_id`, `company.industry`, `company.company_size_bucket`,
311
+ `company.company_size_segment`, `lead.title_features.seniority`, `day`, `week`;
312
+ `--timezone` for day/week) returns up to 200 groups with `calls`, `connected`,
313
+ `connect_rate`, `total_duration_sec` and `avg_duration_sec`, plus `totals`.
314
+ `autotouch tasks query` can filter by a task's call outcome with the
315
+ `last_outcome` field.
316
+
245
317
  ## Manage Discovery Monitors
246
318
 
247
319
  CLI source 0.2.126 supports creating and editing recurring discovery monitors,
@@ -268,6 +340,22 @@ filter. Job-change roles are custom phrases, independent of the separate
268
340
  bounded role-change search's fixed positions. Read the catalog for source
269
341
  criteria, supported cadences and current billing.
270
342
 
343
+ For job-opening monitors, frequency also selects the search window: daily uses
344
+ the past day and weekly the past seven days. Do not supply a separate
345
+ `datePosted` or `linkedinDateRestrict` monitor setting. Automatic routing can use
346
+ Indeed, Google Jobs and LinkedIn when the other filters are compatible. Indeed
347
+ checks returned posting dates and excludes old, future or unverifiable dates;
348
+ LinkedIn uses a search-date restriction, which is not a verified posting-date
349
+ cutoff. Omit `jobType` or use `""` for Any job type; saved full-time selections
350
+ are unrestricted. CLI 0.2.127 includes this guidance; backend deployment is
351
+ separate, so inspect the selected server's current catalog.
352
+
353
+ ```bash
354
+ autotouch signals create-discovery-monitor --name 'SDR hiring' \
355
+ --source jobs --criteria-json '{"query":"Sales Development Representative","providerSelection":"automatic"}' \
356
+ --frequency daily --no-enabled --no-run-now --output json
357
+ ```
358
+
271
359
  Update, pause and resume require the exact monitor ID and current revision;
272
360
  conflicts return without automatic rereading or retry. Pause/resume sends only
273
361
  `expectedRevision` and `enabled`, preserving omitted criteria. Pause cancels
@@ -290,7 +378,9 @@ When a user asks to create a campaign sequence, distinguish these separate decis
290
378
 
291
379
  If the user says "automate the sequence" without asking for AI-written sends, choose the template-based automated path. Offer manual AI-draft review as the higher-personalization path, but call out that it creates upfront manual tasks while the system learns.
292
380
 
293
- Do not mix `aiDraft=true` with non-empty `subjectTemplate`, `bodyTemplate`, or `scriptTemplate`. Template fields send exact variable-filled copy when `aiDraft=false`; AI-draft steps should leave template fields empty and use sequence/source-table context. The CLI and developer-key API reject the mixed shape.
381
+ `sourceTableId` on a sequence is optional; set it when templates use research-table columns as variables or when enrollments should carry research context. Enrolling into a DRAFT or PAUSED sequence requires `--review-only` (the enrollments are held and start only when the sequence is activated). Enrollment variable mappings and values are fixed when a lead is first enrolled: if a template later uses a new variable or a newly filled research column, already-enrolled leads will not pick it up; exit them and enroll again. Sends from a connected personal mailbox are spaced minutes apart (default 5 to 12 minutes), so a short daily send window caps daily volume.
382
+
383
+ Do not mix `aiDraft=true` with non-empty `subjectTemplate`, `bodyTemplate`, or `scriptTemplate`. Template fields send exact variable-filled copy when `aiDraft=false`; AI-draft steps should leave template fields empty and use sequence/source-table context. The CLI and developer-key API reject the mixed shape (`ai_draft_template_conflict`).
294
384
 
295
385
  For bulk Instantly/Smartlead sequences, email sender accounts live on the provider campaign, not on each enrollment. Use `autotouch sequences sync-accounts --sequence-id <SEQUENCE_ID> --account-selection all_eligible` for the org's eligible provider-account group, or `--account-selection selected --selected-account sender@example.com` for specific provider mailboxes. For personal mailbox or LinkedIn steps, use enrollment sender routing only when the user asks for explicit sender pinning or team routing.
296
386
 
@@ -362,7 +452,7 @@ also requires a stable `idempotencyKey` of 8-200 characters. An occurrence's
362
452
  `operationRunId` and eventual `threadId` identify its durable execution.
363
453
 
364
454
  The bounded search adapters include `search catalog-companies`, `search
365
- people-basic`, `search linkedin-posts`, `search linkedin-post-engagers`,
455
+ people-basic`, `search linkedin-posts`,
366
456
  `search role-changes`, and `search board-jobs`. Use their help for limits and `--data-file` for their
367
457
  exact HTTP request bodies. These return search artifacts and do not create
368
458
  durable list-build jobs.
@@ -496,6 +586,7 @@ For automation or agent-driven setup, use:
496
586
  - `autotouch sequences recipe --type linkedin_outreach` only when the campaign should include LinkedIn touches; the emitted branch waits for connection acceptance before LinkedIn chat and uses email fallback after the wait window
497
587
  - `autotouch rows list` / `autotouch rows get` / `autotouch cells get` for read-back and audit
498
588
  - `autotouch sequences ...` and `autotouch tasks ...` for sequence/task workflows
589
+ - `autotouch calls query` for the call log (rows or `--group-by` reporting)
499
590
  - `pip install 'autotouch-cli[mongo]'` if you need the Mongo-backed `status` / `watch` commands
500
591
 
501
592
  ## Realtime Table Updates
@@ -87,6 +87,57 @@ autotouch columns update --help
87
87
  autotouch cli-reference --source bundled | grep -n "valueSchema"
88
88
  ```
89
89
 
90
+ Deal commands are available as `autotouch deals list|get|pipelines|create|update|delete`.
91
+ Developer keys need `deals:read` for reads and `deals:write` for create,
92
+ update, or archive. `deals delete` archives the canonical Deal. For example:
93
+
94
+ ```bash
95
+ autotouch deals pipelines --output json
96
+ autotouch deals list --company-id <COMPANY_ID> --state open --output json
97
+ autotouch deals update --deal-id <DEAL_ID> --data-json '{"next_step":"Review proposal"}' --output json
98
+ ```
99
+
100
+ Actions: `autotouch actions list|get|plan|assign`. `list` reads the queue (your
101
+ open actions by default; `--view unassigned` for the ones with no owner,
102
+ `--view all` for the organization's, `--tab completed` for handled ones, plus
103
+ `--state`, `--category`, `--search`, `--sort` and fit-range filters; page with
104
+ `--limit` and `--offset`), `get` reads one action with its plan, `plan` asks
105
+ the planner to plan an action or plan it again, optionally with `--note` (your
106
+ words, which the planner follows first, up to 500 characters) and
107
+ `--sequence-id` (pin a sequence), and `assign` makes you the action's owner
108
+ (Assign to me: any open action that is not being worked, unassigned or a
109
+ teammate's). Developer keys need `actions:read` for `list` and `get` and
110
+ `actions:write` for `plan` and `assign`. Planning and ownership send nothing:
111
+ the plan is a proposal a person approves in the app, and there is no CLI
112
+ command or developer-key route for approving or dismissing. For example:
113
+
114
+ ```bash
115
+ autotouch actions list --view all --state not_planned --output json
116
+ autotouch actions get --action-id <ACTION_ID>
117
+ autotouch actions plan --action-id <ACTION_ID> --note 'find the head of support instead'
118
+ autotouch actions list --view unassigned --limit 200 --offset 200 --output json
119
+ autotouch actions assign --action-id <ACTION_ID>
120
+ ```
121
+
122
+ Actions plays and persona suggestions: `autotouch plays list|get|propose|update|activate|retire|promote|shadow`
123
+ (`create` is an alias of `propose`) and `autotouch personas suggestions
124
+ list|propose|propose-update|propose-retire|edit|accept|dismiss`. Developer keys
125
+ need `actions:read` for reads and `actions:write` for every write
126
+ (`plays shadow` recomputes and stores the shadow numbers). A play always starts
127
+ `proposed`; `plays activate` is the person's confirmation. `plays promote` and
128
+ the persona `edit`, `accept` and `dismiss` commands are admin-only (checked on
129
+ the server). Pass the structured `when` / `prefer` bodies with `--when-json` /
130
+ `--prefer-json` (or `--when-file`), or the whole body with `--data-json` /
131
+ `--data-file`. For example:
132
+
133
+ ```bash
134
+ autotouch plays list --scope mine --status proposed --output json
135
+ autotouch plays propose --title 'Funding signal: call the founder' --category outreach --persona-id <PERSONA_ID> \
136
+ --when-json '{"signal_types":["funding"]}' --prefer-json '{"action":{"kind":"task","channel":"call"}}'
137
+ autotouch plays activate --play-id <PLAY_ID>
138
+ autotouch personas suggestions propose-update --persona-id <PERSONA_ID> --add-title 'VP Sales' --rationale 'Seen on 5 accounts'
139
+ ```
140
+
90
141
  If `pipx upgrade autotouch-cli` or `python -m pip install -U autotouch-cli`
91
142
  reports success but `which autotouch` still points at an older shim, fix `PATH`
92
143
  or run the upgraded binary directly before using production commands.
@@ -110,25 +161,13 @@ autotouch auth check --base-url https://app.autotouch.ai
110
161
 
111
162
  Fresh account:
112
163
 
113
- ```bash
114
- export AUTOTOUCH_CONFIG_PATH=/tmp/autotouch-audit.json
115
- read -s AUTOTOUCH_BOOTSTRAP_PASSWORD
116
- export AUTOTOUCH_BOOTSTRAP_PASSWORD
117
-
118
- autotouch auth bootstrap \
119
- --first-name Ada \
120
- --last-name Lovelace \
121
- --email ada+audit@example.com \
122
- --password "$AUTOTOUCH_BOOTSTRAP_PASSWORD" \
123
- --organization-name "Audit Org" \
124
- --save-key
125
-
126
- autotouch auth check
127
- ```
164
+ Register and sign in through the web app, create a developer API key from the
165
+ authenticated workspace, and then configure that key with `autotouch setup`.
166
+ The former public `autotouch auth bootstrap` flow is retired.
128
167
 
129
168
  Demo accounts:
130
169
 
131
- - For a brand-new demo org plus developer key, use `autotouch auth bootstrap` as shown above.
170
+ - For a brand-new demo org plus developer key, register normally and create the key from the authenticated workspace.
132
171
  - For a demo login inside an existing seeded demo org, create the org with `apps/api/scripts/create_demo_org.py`, then add the user through the invite/register flow in `docs/operations/demo-accounts.md`.
133
172
 
134
173
  Config precedence:
@@ -180,6 +219,8 @@ autotouch rows get --table-id "$TABLE_ID" --row-id "$ROW_ID" --output json
180
219
  - Add rows: `autotouch rows add`
181
220
  - Inspect rows: `autotouch rows list`, `autotouch rows get`
182
221
  - Inspect one cell: `autotouch cells get`
222
+ - Write cells: `autotouch cells patch` sends at most 500 updates and 100 distinct rows per request and splits larger payloads automatically; writes to lead-owned or source-managed columns are rejected with 400, so write to a column you created.
223
+ - `autotouch leads create-research-table` needs the scopes `leads:read`, `leads:write`, `companies:read`, `tables:read` and `tables:write`.
183
224
  - Create a workflow column: `autotouch columns recipe`, `autotouch columns create`
184
225
  - Run Exa Company Search for basic company discovery, competitors, and lookalikes: `autotouch search companies`, `autotouch search similar-companies`
185
226
  - Inspect list-build inputs: `autotouch list-build inputs`
@@ -217,6 +258,36 @@ filters and limit. A page with `has_more=true` is incomplete; an empty result
217
258
  describes only the selected filters and time window. The command does not start
218
259
  a scan, save a subscription, or create a run.
219
260
 
261
+ ## Query Calls
262
+
263
+ `autotouch calls query` reads the organization's call log (every rep): one row
264
+ per dialed call, newest first, including calls not tied to a task. Developer API
265
+ keys need `calls:read`. The body is a `CallQueryRequest`: a `filter`
266
+ (FilterDescriptor on `started_at`, `agent_id`, `outcome`, `disposition`,
267
+ `connected`, `duration_sec`, `has_recording`, `has_transcript` and the task
268
+ query's `lead.*` / `company.*` fields), `pagination` (`limit` 1-500, `cursor`)
269
+ and `sort` on `started_at`.
270
+
271
+ ```bash
272
+ autotouch calls query --data-json '{"filter":{"root":{"kind":"group","logic":"and","children":[
273
+ {"kind":"rule","field":"started_at","operator":"gte","value":"2026-11-01T00:00:00Z"},
274
+ {"kind":"rule","field":"connected","operator":"eq","value":true}]}},"pagination":{"limit":100}}'
275
+ autotouch calls query --group-by company.industry \
276
+ --data-json '{"filter":{"root":{"kind":"rule","field":"started_at","operator":"gte","value":"2026-11-01T00:00:00Z"}}}'
277
+ ```
278
+
279
+ Rows carry `rep`, `lead`, `company`, `outcome {key, label}`, `disposition`,
280
+ `connected`, `duration_sec`, `talk_time_sec`, `task_id`, `has_recording` and
281
+ `has_transcript`; never transcript text or a recording link (read one transcript
282
+ with `GET /api/reports/call-review/transcripts/{call_log_id}`). Pass `next_cursor`
283
+ back as `pagination.cursor` while `has_more` is true. `--group-by` (`outcome`,
284
+ `agent_id`, `company.industry`, `company.company_size_bucket`,
285
+ `company.company_size_segment`, `lead.title_features.seniority`, `day`, `week`;
286
+ `--timezone` for day/week) returns up to 200 groups with `calls`, `connected`,
287
+ `connect_rate`, `total_duration_sec` and `avg_duration_sec`, plus `totals`.
288
+ `autotouch tasks query` can filter by a task's call outcome with the
289
+ `last_outcome` field.
290
+
220
291
  ## Manage Discovery Monitors
221
292
 
222
293
  CLI source 0.2.126 supports creating and editing recurring discovery monitors,
@@ -243,6 +314,22 @@ filter. Job-change roles are custom phrases, independent of the separate
243
314
  bounded role-change search's fixed positions. Read the catalog for source
244
315
  criteria, supported cadences and current billing.
245
316
 
317
+ For job-opening monitors, frequency also selects the search window: daily uses
318
+ the past day and weekly the past seven days. Do not supply a separate
319
+ `datePosted` or `linkedinDateRestrict` monitor setting. Automatic routing can use
320
+ Indeed, Google Jobs and LinkedIn when the other filters are compatible. Indeed
321
+ checks returned posting dates and excludes old, future or unverifiable dates;
322
+ LinkedIn uses a search-date restriction, which is not a verified posting-date
323
+ cutoff. Omit `jobType` or use `""` for Any job type; saved full-time selections
324
+ are unrestricted. CLI 0.2.127 includes this guidance; backend deployment is
325
+ separate, so inspect the selected server's current catalog.
326
+
327
+ ```bash
328
+ autotouch signals create-discovery-monitor --name 'SDR hiring' \
329
+ --source jobs --criteria-json '{"query":"Sales Development Representative","providerSelection":"automatic"}' \
330
+ --frequency daily --no-enabled --no-run-now --output json
331
+ ```
332
+
246
333
  Update, pause and resume require the exact monitor ID and current revision;
247
334
  conflicts return without automatic rereading or retry. Pause/resume sends only
248
335
  `expectedRevision` and `enabled`, preserving omitted criteria. Pause cancels
@@ -265,7 +352,9 @@ When a user asks to create a campaign sequence, distinguish these separate decis
265
352
 
266
353
  If the user says "automate the sequence" without asking for AI-written sends, choose the template-based automated path. Offer manual AI-draft review as the higher-personalization path, but call out that it creates upfront manual tasks while the system learns.
267
354
 
268
- Do not mix `aiDraft=true` with non-empty `subjectTemplate`, `bodyTemplate`, or `scriptTemplate`. Template fields send exact variable-filled copy when `aiDraft=false`; AI-draft steps should leave template fields empty and use sequence/source-table context. The CLI and developer-key API reject the mixed shape.
355
+ `sourceTableId` on a sequence is optional; set it when templates use research-table columns as variables or when enrollments should carry research context. Enrolling into a DRAFT or PAUSED sequence requires `--review-only` (the enrollments are held and start only when the sequence is activated). Enrollment variable mappings and values are fixed when a lead is first enrolled: if a template later uses a new variable or a newly filled research column, already-enrolled leads will not pick it up; exit them and enroll again. Sends from a connected personal mailbox are spaced minutes apart (default 5 to 12 minutes), so a short daily send window caps daily volume.
356
+
357
+ Do not mix `aiDraft=true` with non-empty `subjectTemplate`, `bodyTemplate`, or `scriptTemplate`. Template fields send exact variable-filled copy when `aiDraft=false`; AI-draft steps should leave template fields empty and use sequence/source-table context. The CLI and developer-key API reject the mixed shape (`ai_draft_template_conflict`).
269
358
 
270
359
  For bulk Instantly/Smartlead sequences, email sender accounts live on the provider campaign, not on each enrollment. Use `autotouch sequences sync-accounts --sequence-id <SEQUENCE_ID> --account-selection all_eligible` for the org's eligible provider-account group, or `--account-selection selected --selected-account sender@example.com` for specific provider mailboxes. For personal mailbox or LinkedIn steps, use enrollment sender routing only when the user asks for explicit sender pinning or team routing.
271
360
 
@@ -337,7 +426,7 @@ also requires a stable `idempotencyKey` of 8-200 characters. An occurrence's
337
426
  `operationRunId` and eventual `threadId` identify its durable execution.
338
427
 
339
428
  The bounded search adapters include `search catalog-companies`, `search
340
- people-basic`, `search linkedin-posts`, `search linkedin-post-engagers`,
429
+ people-basic`, `search linkedin-posts`,
341
430
  `search role-changes`, and `search board-jobs`. Use their help for limits and `--data-file` for their
342
431
  exact HTTP request bodies. These return search artifacts and do not create
343
432
  durable list-build jobs.
@@ -471,6 +560,7 @@ For automation or agent-driven setup, use:
471
560
  - `autotouch sequences recipe --type linkedin_outreach` only when the campaign should include LinkedIn touches; the emitted branch waits for connection acceptance before LinkedIn chat and uses email fallback after the wait window
472
561
  - `autotouch rows list` / `autotouch rows get` / `autotouch cells get` for read-back and audit
473
562
  - `autotouch sequences ...` and `autotouch tasks ...` for sequence/task workflows
563
+ - `autotouch calls query` for the call log (rows or `--group-by` reporting)
474
564
  - `pip install 'autotouch-cli[mongo]'` if you need the Mongo-backed `status` / `watch` commands
475
565
 
476
566
  ## Realtime Table Updates
@@ -215,6 +215,7 @@ from autotouch_cli.commands.product_http import (
215
215
  ProductHttpRuntime, OPERATIONS as HTTP_OPERATIONS,
216
216
  cmd_product_http, command_name as http_command_name,
217
217
  )
218
+ from autotouch_cli.commands import plays as plays_commands
218
219
  from autotouch_cli.commands.signals import (
219
220
  SignalCommandRuntime,
220
221
  cmd_signals_query as cmd_signals_query_impl,
@@ -233,6 +234,7 @@ from autotouch_cli.commands.sequences import (
233
234
  cmd_sequences_get as cmd_sequences_get_impl,
234
235
  cmd_sequences_list as cmd_sequences_list_impl,
235
236
  cmd_sequences_pause_enrollment as cmd_sequences_pause_enrollment_impl,
237
+ cmd_sequences_retry_paused as cmd_sequences_retry_paused_impl,
236
238
  cmd_sequences_preview_audience as cmd_sequences_preview_audience_impl,
237
239
  cmd_sequences_preview_draft as cmd_sequences_preview_draft_impl,
238
240
  cmd_sequences_resolve_draft as cmd_sequences_resolve_draft_impl,
@@ -284,7 +286,6 @@ from autotouch_cli.commands.tasks import (
284
286
  cmd_tasks_bulk_delete as cmd_tasks_bulk_delete_impl,
285
287
  cmd_tasks_bulk_update as cmd_tasks_bulk_update_impl,
286
288
  cmd_tasks_count as cmd_tasks_count_impl,
287
- cmd_tasks_create as cmd_tasks_create_impl,
288
289
  cmd_tasks_create_from_leads as cmd_tasks_create_from_leads_impl,
289
290
  cmd_tasks_delete as cmd_tasks_delete_impl,
290
291
  cmd_tasks_draft as cmd_tasks_draft_impl,
@@ -1415,6 +1416,15 @@ def _signal_command_runtime() -> SignalCommandRuntime:
1415
1416
  )
1416
1417
 
1417
1418
 
1419
+ def _play_command_runtime() -> plays_commands.PlayCommandRuntime:
1420
+ return plays_commands.PlayCommandRuntime(
1421
+ resolve_token=_resolve_token,
1422
+ request_api=_request_api,
1423
+ print_json=lambda data, compact=False: _print_json(data, compact=compact),
1424
+ load_json_input=_load_json_input,
1425
+ )
1426
+
1427
+
1418
1428
  def _workspace_command_runtime() -> WorkspaceCommandHandlerRuntime:
1419
1429
  return WorkspaceCommandHandlerRuntime(
1420
1430
  resolve_token=_resolve_token,
@@ -1784,6 +1794,12 @@ _register("signals_discovery_industries", cmd_signals_discovery_industries_impl,
1784
1794
  _register("signals_list_discovery_monitors", cmd_signals_list_discovery_monitors_impl, _signal_command_runtime)
1785
1795
  for _signal_write_action in ("create", "update", "pause", "resume"):
1786
1796
  _register("signals_" + _signal_write_action + "_discovery_monitor", cmd_signals_write_discovery_monitor_impl, _signal_command_runtime)
1797
+ for _play_key in ("list", "get", "propose", "update", "activate", "retire", "promote", "shadow"):
1798
+ _register("plays_" + _play_key, getattr(plays_commands, "cmd_plays_" + _play_key), _play_command_runtime)
1799
+ for _persona_key in ("list", "propose", "propose_update", "propose_retire", "suggest_role", "edit", "accept", "dismiss"):
1800
+ _register("personas_suggestions_" + _persona_key, getattr(plays_commands, "cmd_personas_suggestions_" + _persona_key), _play_command_runtime)
1801
+ for _persona_read in ("roles_preview", "resolve"):
1802
+ _register("personas_" + _persona_read, getattr(plays_commands, "cmd_personas_" + _persona_read), _play_command_runtime)
1787
1803
  for _http_key in HTTP_OPERATIONS:
1788
1804
  _register(http_command_name(_http_key), cmd_product_http, _product_http_runtime)
1789
1805
 
@@ -1801,6 +1817,7 @@ _register("sequences_status", cmd_sequences_status_impl, _sequence_command_runti
1801
1817
  _register("sequences_sync_accounts", cmd_sequences_sync_accounts_impl, _sequence_command_runtime)
1802
1818
  _register("sequences_enroll", cmd_sequences_enroll_impl, _sequence_command_runtime)
1803
1819
  _register("sequences_pause_enrollment", cmd_sequences_pause_enrollment_impl, _sequence_command_runtime)
1820
+ _register("sequences_retry_paused", cmd_sequences_retry_paused_impl, _sequence_command_runtime)
1804
1821
  _register("sequences_preview_audience", cmd_sequences_preview_audience_impl, _sequence_command_runtime)
1805
1822
  _register("sequences_preview_draft", cmd_sequences_preview_draft_impl, _sequence_command_runtime)
1806
1823
  _register("sequences_resolve_draft", cmd_sequences_resolve_draft_impl, _sequence_command_runtime)
@@ -1898,7 +1915,6 @@ _register("tasks_count", cmd_tasks_count_impl, _task_command_runtime)
1898
1915
  _register("tasks_assignee_counts", cmd_tasks_assignee_counts_impl, _task_command_runtime)
1899
1916
  _register("tasks_get", cmd_tasks_get_impl, _task_command_runtime)
1900
1917
  _register("tasks_stats", cmd_tasks_stats_impl, _task_command_runtime)
1901
- _register("tasks_create", cmd_tasks_create_impl, _task_command_runtime)
1902
1918
  _register("tasks_create_from_leads", cmd_tasks_create_from_leads_impl, _task_command_runtime)
1903
1919
  _register("tasks_update", cmd_tasks_update_impl, _task_command_runtime)
1904
1920
  _register("tasks_delete", cmd_tasks_delete_impl, _task_command_runtime)
@@ -58,9 +58,14 @@ _AUTH_MODE_PREFIXES: Tuple[Tuple[str, str], ...] = (
58
58
  ("leads.", "developer_key_or_user_session"),
59
59
  ("notes.", "developer_key_or_user_session"),
60
60
  ("companies.", "developer_key_or_user_session"),
61
+ ("deals.", "developer_key_or_user_session"),
62
+ ("actions.", "developer_key_or_user_session"),
63
+ ("plays.", "developer_key_or_user_session"),
64
+ ("personas.", "developer_key_or_user_session"),
61
65
  ("signals.", "developer_key_or_user_session"),
62
66
  ("workspace-views.", "developer_key_or_user_session"),
63
67
  ("tasks.", "developer_key_or_user_session"),
68
+ ("calls.", "developer_key_or_user_session"),
64
69
  ("jobs.", "developer_key_or_user_session"),
65
70
  ("webhooks.", "developer_key_or_user_session"),
66
71
  ("search.", "developer_key_or_user_session"),
@@ -154,124 +154,11 @@ def cmd_auth_set_key(args: argparse.Namespace, *, runtime: AuthCommandRuntime) -
154
154
 
155
155
 
156
156
  def cmd_auth_bootstrap(args: argparse.Namespace, *, runtime: AuthCommandRuntime) -> None:
157
- payload = runtime.load_json_input(
158
- inline_json=getattr(args, "data_json", None),
159
- file_path=getattr(args, "data_file", None),
160
- context="data",
161
- default=None,
157
+ del args, runtime
158
+ raise AutotouchInputError(
159
+ "auth bootstrap is retired. Register and sign in through the web app, "
160
+ "then create a developer API key from the authenticated workspace."
162
161
  )
163
- if payload is None:
164
- payload = {}
165
- field_map = {
166
- "first_name": "first_name",
167
- "last_name": "last_name",
168
- "email": "email",
169
- "password": "password",
170
- "organization_name": "organization_name",
171
- "utm_source": "utm_source",
172
- "utm_medium": "utm_medium",
173
- "utm_campaign": "utm_campaign",
174
- "utm_term": "utm_term",
175
- "utm_content": "utm_content",
176
- }
177
- for arg_name, payload_key in field_map.items():
178
- value = getattr(args, arg_name, None)
179
- if value is not None and str(value).strip():
180
- payload[payload_key] = str(value).strip()
181
-
182
- key_name = str(getattr(args, "key_name", "") or "").strip()
183
- if key_name:
184
- payload["keyName"] = key_name
185
-
186
- expires_at = str(getattr(args, "expires_at", "") or "").strip()
187
- if expires_at:
188
- payload["expiresAt"] = expires_at
189
-
190
- scopes_payload = runtime.load_json_input(
191
- inline_json=getattr(args, "scopes_json", None),
192
- file_path=getattr(args, "scopes_file", None),
193
- context="scopes",
194
- default=None,
195
- )
196
- if scopes_payload is not None:
197
- if not isinstance(scopes_payload, list):
198
- raise AutotouchInputError("bootstrap scopes must be a JSON array")
199
- payload["scopes"] = scopes_payload
200
-
201
- if not isinstance(payload, dict):
202
- raise AutotouchInputError("auth bootstrap payload must be a JSON object")
203
-
204
- required_keys = ["first_name", "last_name", "email", "password", "organization_name"]
205
- missing = [key for key in required_keys if not str(payload.get(key) or "").strip()]
206
- if missing:
207
- raise AutotouchInputError(f"auth bootstrap missing required fields: {', '.join(missing)}")
208
-
209
- data = runtime.request_api(
210
- "POST",
211
- "/api/auth/agent-bootstrap",
212
- base_url=args.base_url,
213
- token=None,
214
- use_x_api_key=False,
215
- payload=payload,
216
- timeout=args.timeout,
217
- verbose=args.verbose,
218
- )
219
-
220
- output: Any = data
221
- if getattr(args, "save_key", False) and isinstance(data, dict):
222
- api_key = str(data.get("apiKey") or data.get("api_key") or "").strip()
223
- email = str(payload.get("email") or "").strip().lower()
224
- password = str(payload.get("password") or "").strip()
225
- session_data: Optional[Dict[str, Any]] = None
226
- session_error: Optional[str] = None
227
-
228
- if email and password:
229
- try:
230
- session_data = runtime.request_api(
231
- "POST",
232
- "/api/auth/login",
233
- base_url=args.base_url,
234
- token=None,
235
- use_x_api_key=False,
236
- payload={"email": email, "password": password},
237
- timeout=args.timeout,
238
- verbose=args.verbose,
239
- )
240
- except SystemExit as exc:
241
- session_error = f"login failed with exit code {exc.code}"
242
- except Exception as exc:
243
- session_error = str(exc)
244
-
245
- if api_key:
246
- cfg = runtime.load_config()
247
- cfg["api_key"] = api_key
248
- access_token = runtime.normalize_string_value((session_data or {}).get("access_token"))
249
- refresh_token = runtime.normalize_string_value((session_data or {}).get("refresh_token"))
250
- if access_token:
251
- cfg["auth_token"] = access_token
252
- cfg["auth_email"] = email
253
- if refresh_token:
254
- cfg["refresh_token"] = refresh_token
255
- cfg["base_url"] = str(args.base_url or runtime.api_url(None)).rstrip("/")
256
- cfg["updated_at_epoch"] = int(time.time())
257
- config_path = runtime.save_config(cfg)
258
- output = dict(data)
259
- output["saved"] = True
260
- output["saved_api_key"] = True
261
- output["saved_session"] = bool(access_token)
262
- output["config_path"] = str(config_path)
263
- output["api_key_masked"] = runtime.mask_api_key(api_key)
264
- if access_token:
265
- output["access_token_masked"] = runtime.mask_secret(access_token)
266
- if refresh_token:
267
- output["refresh_token_masked"] = runtime.mask_secret(refresh_token)
268
- if session_error:
269
- output["session_warning"] = session_error
270
- else:
271
- output = dict(data)
272
- output["saved"] = False
273
-
274
- runtime.print_json(output, args.compact)
275
162
 
276
163
 
277
164
  def cmd_auth_login(args: argparse.Namespace, *, runtime: AuthCommandRuntime) -> None:
@@ -459,7 +346,14 @@ def register_auth_subcommands(
459
346
  add_api_common_arguments(pastatus)
460
347
  pastatus.set_defaults(func=handlers["status"])
461
348
 
462
- pab = auth_sub.add_parser("bootstrap", help="Register an account/org and return a developer key")
349
+ pab = auth_sub.add_parser(
350
+ "bootstrap",
351
+ help="Retired public account-and-key bootstrap",
352
+ description=(
353
+ "This command is retired. Register and sign in through the web app, "
354
+ "then create a developer API key from the authenticated workspace."
355
+ ),
356
+ )
463
357
  pab.add_argument("--first-name", help="First name")
464
358
  pab.add_argument("--last-name", help="Last name")
465
359
  pab.add_argument("--email", help="User email")